/** * Commerce7 API Type Definitions * Based on Commerce7 Developer Documentation */ export interface Customer { id: string; avatar?: string | null; honorific?: string; firstName?: string; lastName?: string; birthDate?: string; city?: string; stateCode?: string; zipCode?: string; countryCode?: string; emailMarketingStatus?: 'Subscribed' | 'Unsubscribed'; lastActivityDate?: string; metaData?: Record; appData?: any; appSync?: any; flags?: Array<{ id: string; content: string; }>; notifications?: Array<{ id: string; type: string; content: string; objectId: string; }>; createdAt?: string; updatedAt?: string; orderInformation?: { currentWebCartId?: string | null; lastOrderId?: string; lastOrderDate?: string; orderCount: number; lifetimeValue: number; rank: number; rankTrend: string; grossProfit: number; currentClubTitle?: string; daysInCurrentClub?: number; }; emails?: Array<{ id: string; email: string; }>; phones?: Array<{ id: string; phone: string; }>; tags?: Array<{ id: string; title: string; objectType: string; type: string; }>; groups?: Array<{ id: string; title: string; objectType: string; type: string; }>; clubs?: Array<{ clubId: string; clubTitle: string; cancelDate?: string | null; signupDate: string; clubMembershipId: string; }>; products?: Array<{ product: { sku: string; image?: string; price: number; title: string; quantity: number; }; purchaseDate: string; }>; hasAccount?: boolean; } export interface ClubMembership { id: string; status: 'Active' | 'Cancelled' | 'On Hold'; customerId: string; clubId: string; billToCustomerAddressId: string; orderDeliveryMethod: 'Pickup' | 'Ship'; shipToCustomerAddressId: string; customerCreditCardId: string; signupDate: string; cancelDate?: string | null; lastProcessedDate?: string | null; currentNumberOfShipments?: number; createdAt?: string; updatedAt?: string; customer?: Customer; club?: { id: string; title: string; slug: string; seo?: { title?: string; description?: string | null; }; }; onHolds?: any[]; subscription?: { frequency: string; nextProcessDate: string; }; } export interface Order { id: string; orderNumber?: string; status?: string; customerId?: string; total?: number; createdAt?: string; updatedAt?: string; } export interface Product { id: string; sku?: string; title?: string; price?: number; image?: string; } export interface CustomerAddress { id: string; customerId: string; address1?: string; address2?: string; city?: string; stateCode?: string; zipCode?: string; countryCode?: string; } export interface CustomerCreditCard { id: string; customerId: string; cardType?: string; lastFour?: string; expirationMonth?: string; expirationYear?: string; } //# sourceMappingURL=types.d.ts.map