@cohostvip/types
v0.0.6
Published
TypeScript type definitions for GuestWho
Downloads
102
Readme
@cohostvip/types
TypeScript type definitions for GuestWho application.
Installation
npm install @cohostvip/types
# or
pnpm add @cohostvip/types
# or
yarn add @cohostvip/typesUsage
Import the TypeScript types:
import type { Order, Customer, OrderItem, Attendee } from '@cohostvip/types';
// Use the types
const order: Order = {
orderNumber: 'GW-12345',
currency: 'USD',
// ... other fields
};
const customer: Customer = {
name: 'John Doe',
email: '[email protected]',
// ... other fields
};Available Types
Main Types
Order- Order data structureCustomer- Customer/user informationOrderItem- Individual order itemsAttendee- Attendee/ticket holder informationBarcode- Barcode/ticket information
Supporting Types
OrderCosts- Order cost breakdownOrderItemCosts- Item-level cost breakdownAttendeeCosts- Attendee cost breakdownPersonAddress- Address informationCouponSummary- Coupon details
Development
Building
pnpm buildGenerating Types
pnpm build:generated-typesThis will generate dist/generated-types.d.ts from the Zod schemas.
Publishing
# Version bump
npm version patch|minor|major
# Publish to npm
npm publishThe prepublishOnly script automatically runs builds before publishing.
public-types
Public types is pushed into cohostvip/types using a subtree
License
MIT
