arky-sdk 0.7.134 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/types/index.ts"],"names":["PaymentMethodType"],"mappings":";;;AAEO,IAAK,iBAAA,qBAAAA,kBAAAA,KAAL;AACN,EAAAA,mBAAA,MAAA,CAAA,GAAO,MAAA;AACP,EAAAA,mBAAA,YAAA,CAAA,GAAa,aAAA;AAFF,EAAA,OAAAA,kBAAAA;AAAA,CAAA,EAAA,iBAAA,IAAA,EAAA","file":"types.cjs","sourcesContent":["export * from './api';\n\nexport enum PaymentMethodType {\n\tCash = \"cash\",\n\tCreditCard = \"credit_card\",\n}\n\nexport interface PaymentTaxLine {\n\trate_bps: number;\n\tamount: number;\n\tlabel?: string;\n\tscope?: string;\n}\n\nexport interface OrderPaymentTax {\n\tamount: number;\n\tmode_snapshot?: string;\n\trate_bps: number;\n\tlines: OrderPaymentTaxLine[];\n}\n\nexport interface OrderPaymentTaxLine {\n\trate_bps: number;\n\tamount: number;\n\tlabel?: string;\n\tscope?: string;\n}\n\nexport interface OrderPaymentPromoCode {\n\tid: string;\n\tcode: string;\n\ttype: string;\n\tvalue: number;\n}\n\n\nexport type OrderPaymentProvider = {\n\ttype: 'stripe';\n\tcustomer_id: string;\n\tpayment_intent_id?: string;\n};\n\nexport interface OrderPaymentRefund {\n\tid: string;\n\ttotal: number;\n\tprovider_refund_id?: string;\n\tstatus: string;\n\tcreated_at: number;\n}\n\nexport interface OrderPayment {\n\tcurrency: string;\n\tmarket: string;\n\tsubtotal: number;\n\tshipping: number;\n\tdiscount: number;\n\ttotal: number;\n\tpaid: number;\n\ttax?: OrderPaymentTax;\n\tpromo_code?: OrderPaymentPromoCode;\n\tprovider?: OrderPaymentProvider;\n\trefunds: OrderPaymentRefund[];\n\tzone_id?: string;\n\tpayment_method_id?: string;\n\tshipping_method_id?: string;\n\tmethod_type: PaymentMethodType;\n}\n\nexport interface PromoCodeValidation {\n\tpromo_code_id: string;\n\tcode: string;\n\tdiscounts: import('./api').Discount[];\n\tconditions: import('./api').Condition[];\n}\n\nexport interface OrderQuote {\n\tid?: string;\n\texpires_at?: number;\n\tmarket: string;\n\tzone: Zone | null;\n\titems: QuoteLine[];\n\tsubtotal: number;\n\tshipping: number;\n\tdiscount: number;\n\ttax: number;\n\ttotal: number;\n\tshipping_method: ShippingMethod | null;\n\tpayment_method: PaymentMethod | null;\n\tpayment_methods: PaymentMethod[];\n\tpromo_code: PromoCodeValidation | null;\n\tpayment: OrderPayment;\n\tcharge_amount: number;\n}\n\n\nexport interface Price {\n\tcurrency: string;\n\tmarket: string;\n\tamount: number;\n\tcompare_at?: number;\n\taudience_id?: string;\n}\n\n\nexport type IntervalPeriod = 'month' | 'year';\n\n\nexport interface SubscriptionInterval {\n\tperiod: IntervalPeriod;\n\tcount: number;\n}\n\n\nexport interface PriceProvider {\n\ttype: string;\n\tid: string;\n}\n\n\nexport interface SubscriptionPrice {\n\tcurrency: string;\n\tamount: number;\n\tcompare_at?: number;\n\tinterval?: SubscriptionInterval;\n\tproviders: PriceProvider[];\n}\n\n\nexport interface Address {\n\tname?: string | null;\n\tcompany?: string | null;\n\tstreet1?: string | null;\n\tstreet2?: string | null;\n\tcity?: string | null;\n\tstate?: string | null;\n\tpostal_code?: string | null;\n\tcountry?: string | null;\n\tphone?: string | null;\n\temail?: string | null;\n}\n\n\nexport interface GeoLocation {\n\tcoordinates?: { lat: number; lon: number } | null;\n\tlabel?: string | null;\n}\n\n\nexport interface ZoneLocation {\n\tcountry?: string | null;\n\tstate?: string | null;\n\tcity?: string | null;\n\tpostal_code?: string | null;\n}\n\nexport interface EshopCartItem {\n\tid: string;\n\tproduct_id: string;\n\tvariant_id: string;\n\tproduct_name: string;\n\tproduct_slug: string;\n\tvariant_attributes: Record<string, any>;\n\tprice: Price;\n\tquantity: number;\n\tadded_at: number;\n\tmax_stock?: number;\n}\n\nexport type CartStatus = 'active' | 'abandoned' | 'converted' | 'expired';\nexport type CartOrigin = 'storefront' | 'admin';\n\nexport interface Cart {\n\tid: string;\n\tstore_id: string;\n\tcustomer_id: string;\n\ttoken: string;\n\tstatus: CartStatus;\n\torigin: CartOrigin;\n\tcreated_by_account_id?: string | null;\n\tmarket: string;\n\titems: import('./api').OrderCheckoutItemInput[];\n\tshipping_address?: Address | null;\n\tbilling_address?: Address | null;\n\tforms: FormEntry[];\n\tpromo_code?: string | null;\n\tpayment_method_id?: string | null;\n\tshipping_method_id?: string | null;\n\tquote_snapshot?: OrderQuote | null;\n\tconverted_order_id?: string | null;\n\titem_count: number;\n\tlast_activity_at: number;\n\tabandoned_at?: number | null;\n\trecovery_sent_at?: number | null;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport type IntegrationProvider =\n\t| { type: 'stripe'; secret_key?: string; publishable_key: string; webhook_secret?: string; currency: string }\n\t| { type: 'shippo'; api_token?: string }\n\t| { type: 'google'; client_id?: string; client_secret?: string; access_token?: string; refresh_token?: string;\n\t\ttoken_expires_at?: number; scopes: string[]; account_email?: string | null; connected_at: number }\n\t| { type: 'telegram_bot'; bot_token?: string }\n\t| { type: 'deep_seek'; api_key?: string; model?: string }\n\n\t| { type: 'open_ai'; api_key?: string; model?: string }\n\t| { type: 'slack'; api_key?: string }\n\t| { type: 'discord'; api_key?: string }\n\t| { type: 'whats_app'; api_key?: string }\n\t| { type: 'resend'; api_key?: string }\n\t| { type: 'send_grid'; api_key?: string }\n\t| { type: 'airtable'; api_key?: string }\n\t| { type: 'linear'; api_key?: string }\n\t| { type: 'git_hub'; api_key?: string }\n\t| { type: 'git_lab'; api_key?: string }\n\t| { type: 'dropbox'; api_key?: string }\n\t| { type: 'hub_spot'; api_key?: string }\n\t| { type: 'monday'; api_key?: string }\n\t| { type: 'click_up'; api_key?: string }\n\t| { type: 'pipedrive'; api_key?: string }\n\t| { type: 'calendly'; api_key?: string }\n\t| { type: 'typeform'; api_key?: string }\n\t| { type: 'webflow'; api_key?: string }\n\t| { type: 'trello'; api_key?: string }\n\t| { type: 'replicate'; api_key?: string }\n\t| { type: 'asana'; api_key?: string }\n\t| { type: 'brevo'; api_key?: string }\n\t| { type: 'intercom'; api_key?: string }\n\t| { type: 'notion'; api_key?: string }\n\t| { type: 'eleven_labs'; api_key?: string }\n\t| { type: 'active_campaign'; api_key?: string; account_url: string }\n\t| { type: 'shopify'; api_key?: string; store_domain: string }\n\t| { type: 'supabase'; api_key?: string; project_url: string }\n\t| { type: 'mailchimp'; api_key?: string }\n\n\t| { type: 'twilio'; account_sid?: string; auth_token?: string }\n\t| { type: 'jira'; email?: string; api_token?: string; domain: string }\n\t| { type: 'woo_commerce'; consumer_key?: string; consumer_secret?: string; store_url: string }\n\t| { type: 'freshdesk'; api_key?: string; domain: string }\n\t| { type: 'zendesk'; api_token?: string; email?: string; subdomain: string }\n\n\t| { type: 'salesforce'; access_token?: string; instance_url: string }\n\t| { type: 'zoom'; api_key?: string }\n\t| { type: 'microsoft_teams'; api_key?: string }\n\t| { type: 'firebase'; api_key?: string }\n\t| { type: 'arky'; api_key?: string }\n\n\t| { type: 'vercel_deploy_hook'; url?: string }\n\t| { type: 'netlify_deploy_hook'; url?: string }\n\t| { type: 'cloudflare_deploy_hook'; url?: string }\n\t| { type: 'custom_deploy_hook'; url?: string };\n\n\nexport interface Integration {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\tprovider: IntegrationProvider;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface ShippingWeightTier {\n\tup_to_grams: number;\n\tamount: number;\n}\n\nexport interface PaymentMethod {\n\tid: string;\n\tintegration_id?: string;\n}\n\nexport interface ShippingMethod {\n\tid: string;\n\ttaxable: boolean;\n\teta_text: string;\n\tlocation_id?: string;\n\tintegration_id?: string;\n\tamount: number;\n\tfree_above?: number;\n\tweight_tiers?: ShippingWeightTier[];\n}\n\nexport interface Location {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\taddress: Address;\n\tis_pickup_location: boolean;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface InventoryLevel {\n\tlocation_id: string;\n\tavailable: number;\n\treserved: number;\n}\n\nexport interface ProductInventory {\n\tid: string;\n\tstore_id: string;\n\tproduct_id: string;\n\tvariant_id: string;\n\tlocation_id: string;\n\tavailable: number;\n\treserved: number;\n\tupdated_at: number;\n}\n\nexport interface ProductVariant {\n\tid: string;\n\tsku?: string;\n\tprices: Price[];\n\tinventory: ProductInventory[];\n\tattributes: Block[];\n\tweight?: number;\n}\n\nexport interface Product {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\tslug: Record<string, string>;\n\tblocks: Block[];\n\ttaxonomies: TaxonomyEntry[];\n\tfilters?: TaxonomyEntry[];\n\tvariants: ProductVariant[];\n\tstatus: ProductStatus;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface GalleryItem {\n\tid: string;\n\turl: string;\n\talt?: string;\n\tcaption?: string;\n}\n\nexport interface ProductLineItemSnapshot {\n\tproduct_key: string;\n\tvariant_sku?: string;\n\tvariant_attributes: Block[];\n\tprice: Price;\n}\n\nexport interface ServiceLineItemSnapshot {\n\tservice_key: string;\n\tprovider_key: string;\n\tprice: Price;\n}\n\nexport type OrderItemSnapshot = ProductLineItemSnapshot | ServiceLineItemSnapshot;\n\nexport type ProductQuoteLineAvailability =\n\t| { ok: true; available?: number }\n\t| { ok: false; reason: string };\n\nexport type ServiceQuoteLineAvailability =\n\t| { ok: true; spots: number }\n\t| { ok: false; reason: string };\n\nexport interface ProductQuoteLine {\n\ttype: 'product';\n\tline_id: string;\n\tproduct_id: string;\n\tvariant_id: string;\n\tquantity: number;\n\tunit_price: number;\n\tsubtotal: number;\n\tdiscount: number;\n\ttax: number;\n\ttotal: number;\n\tsnapshot: ProductLineItemSnapshot;\n\tavailability: ProductQuoteLineAvailability;\n}\n\nexport interface ServiceQuoteLine {\n\ttype: 'service';\n\tline_id: string;\n\tservice_id: string;\n\tprovider_id: string;\n\tfrom: number;\n\tto: number;\n\tquantity: 1;\n\tunit_price: number;\n\tsubtotal: number;\n\tdiscount: number;\n\ttax: number;\n\ttotal: number;\n\tsnapshot: ServiceLineItemSnapshot;\n\tavailability: ServiceQuoteLineAvailability;\n}\n\nexport type QuoteLine = ProductQuoteLine | ServiceQuoteLine;\n\nexport interface ProductLineItem {\n\ttype: 'product';\n\tid: string;\n\tproduct_id: string;\n\tvariant_id: string;\n\tquantity: number;\n\tlocation_id?: string;\n\tsnapshot: ProductLineItemSnapshot;\n\tstatus: OrderItemStatus;\n}\n\nexport interface ServiceLineItem {\n\ttype: 'service';\n\tid: string;\n\tservice_id: string;\n\tprovider_id: string;\n\tfrom: number;\n\tto: number;\n\tforms: FormEntry[];\n\tsnapshot: ServiceLineItemSnapshot;\n\tstatus: OrderItemStatus;\n}\n\nexport type OrderItem = ProductLineItem | ServiceLineItem;\n\nexport interface HistoryEntry {\n\taction: string;\n\treason?: string;\n\ttimestamp: number;\n}\n\nexport interface Order {\n\tid: string;\n\tnumber: string;\n\tstore_id: string;\n\tsource_cart_id: string;\n\tcustomer_id: string;\n\tverified: boolean;\n\titems: OrderItem[];\n\tpayment: OrderPayment;\n\tshipping_address?: Address;\n\tbilling_address?: Address;\n\tforms: FormEntry[];\n\tshipments: Shipment[];\n\thistory: HistoryEntry[];\n\taudience_id?: string;\n\tfired_reminders: number[];\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface OrderCheckoutResult {\n\torder_id: string;\n\tnumber: string;\n\tclient_secret: string | null;\n\tpayment: OrderPayment;\n}\n\nexport interface Zone {\n\tid: string;\n\tstore_id: string;\n\tmarket_id: string;\n\tcountries: string[];\n\tstates: string[];\n\tpostal_codes: string[];\n\ttax_bps: number;\n\tshipping_methods: ShippingMethod[];\n}\n\nexport interface Market {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\tcurrency: string;\n\ttax_mode: \"exclusive\" | \"inclusive\";\n\tpayment_methods: PaymentMethod[];\n\tzones: Zone[];\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface Language {\n\tid: string;\n}\n\nexport interface StoreEmails {\n\tbilling: string;\n\tsupport: string;\n}\n\nexport type WebhookEventSubscription =\n\t| { event: 'node.created'; parent_id?: string }\n\t| { event: 'node.updated'; key?: string }\n\t| { event: 'node.deleted'; key?: string }\n\t| { event: 'order.created' }\n\t| { event: 'order.updated' }\n\t| { event: 'order.confirmed' }\n\t| { event: 'order.payment_received' }\n\t| { event: 'order.payment_failed' }\n\t| { event: 'order.refunded' }\n\t| { event: 'order.cancelled' }\n\t| { event: 'order.reminder' }\n\t| { event: 'order.shipment_created' }\n\t| { event: 'order.shipment_in_transit' }\n\t| { event: 'order.shipment_out_for_delivery' }\n\t| { event: 'order.shipment_delivered' }\n\t| { event: 'order.shipment_failed' }\n\t| { event: 'order.shipment_returned' }\n\t| { event: 'order.shipment_status_changed' }\n\t| { event: 'cart.created' }\n\t| { event: 'cart.updated' }\n\t| { event: 'cart.abandoned' }\n\t| { event: 'cart.converted' }\n\t| { event: 'product.created' }\n\t| { event: 'product.updated' }\n\t| { event: 'product.deleted' }\n\t| { event: 'provider.created' }\n\t| { event: 'provider.updated' }\n\t| { event: 'provider.deleted' }\n\t| { event: 'service.created' }\n\t| { event: 'service.updated' }\n\t| { event: 'service.deleted' }\n\t| { event: 'media.created' }\n\t| { event: 'media.deleted' }\n\t| { event: 'store.created' }\n\t| { event: 'store.updated' }\n\t| { event: 'store.deleted' }\n\t| { event: 'audience.created' }\n\t| { event: 'audience.updated' }\n\t| { event: 'audience.deleted' };\n\nexport interface Webhook {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\turl: string;\n\tevents: WebhookEventSubscription[];\n\theaders: Record<string, string>;\n\tsecret: string;\n\tenabled: boolean;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\n\nexport type StoreSubscriptionStatus =\n\t| 'pending'\n\t| 'active'\n\t| 'cancellation_scheduled'\n\t| 'cancelled'\n\t| 'expired';\n\nexport type StoreSubscriptionSource = 'signup' | 'admin' | 'import';\n\nexport type StoreSubscriptionProvider = {\n\ttype: 'stripe';\n\tcustomer_id: string;\n\tsubscription_id?: string;\n\tprice_id?: string;\n};\n\nexport interface StoreSubscriptionPayment {\n\tcurrency: string;\n\tmarket: string;\n\tprovider?: StoreSubscriptionProvider;\n}\n\nexport interface StoreSubscription {\n\tid: string;\n\ttarget: string;\n\tplan_id: string;\n\tpending_plan_id: string | null;\n\tpayment: StoreSubscriptionPayment;\n\tstatus: StoreSubscriptionStatus;\n\tstart_date: number;\n\tend_date: number;\n\ttoken: string;\n\tsource: StoreSubscriptionSource;\n}\n\nexport type AudienceSubscriptionStatus =\n\t| 'pending'\n\t| 'active'\n\t| 'cancellation_scheduled'\n\t| 'cancelled'\n\t| 'expired';\n\nexport type AudienceSubscriptionSource = 'signup' | 'admin' | 'import';\n\nexport type AudienceSubscriptionProvider = {\n\ttype: 'stripe';\n\tcustomer_id: string;\n\tsubscription_id?: string;\n\tprice_id?: string;\n};\n\nexport interface AudienceSubscriptionPayment {\n\tcurrency: string;\n\tmarket: string;\n\tprovider?: AudienceSubscriptionProvider;\n}\n\nexport interface AudienceSubscription {\n\tid: string;\n\tstore_id: string;\n\tcustomer_id: string;\n\taudience_id: string;\n\tplan_id: string;\n\tpending_plan_id: string | null;\n\tpayment: AudienceSubscriptionPayment;\n\tstatus: AudienceSubscriptionStatus;\n\tstart_date: number;\n\tend_date: number;\n\ttoken: string;\n\tsource: AudienceSubscriptionSource;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface Store {\n\tid: string;\n\tkey: string;\n\ttimezone: string;\n\tlanguages?: Language[];\n\temails?: StoreEmails;\n\tsubscription?: StoreSubscription;\n\tcounts?: Record<string, number>;\n}\n\nexport interface EshopStoreState {\n\tstore_id: string;\n\tselected_shipping_method_id: string | null;\n\tuser_token: string | null;\n\tprocessing_checkout: boolean;\n\tloading: boolean;\n\terror: string | null;\n}\n\nexport interface Block {\n\tid: string;\n\tkey: string;\n\ttype: string;\n\tproperties?: any;\n\tvalue?: any;\n}\n\nexport type TaxonomySchemaType = \"text\" | \"number\" | \"boolean\" | \"geo_location\";\n\nexport interface TaxonomySchema {\n\tid: string;\n\tkey: string;\n\ttype: TaxonomySchemaType;\n\tvalue?: string[];\n\tmin?: number | null;\n\tmax?: number | null;\n}\n\nexport interface TaxonomyField {\n\tid: string;\n\tkey: string;\n\ttype: TaxonomySchemaType;\n\tvalue: any;\n}\n\nexport interface TaxonomyFieldQuery {\n\tkey: string;\n\ttype: TaxonomySchemaType;\n\toperation?: string;\n\tvalue: any;\n\tcenter?: { lat: number; lon: number };\n\tradius?: number;\n}\n\nexport interface TaxonomyEntry {\n\ttaxonomy_id: string;\n\tfields: TaxonomyField[];\n}\n\nexport interface TaxonomyQuery {\n\ttaxonomy_id: string;\n\tquery: TaxonomyFieldQuery[];\n}\n\nexport type FormSchemaType = \"text\" | \"number\" | \"boolean\" | \"date\" | \"geo_location\" | \"select\";\n\nexport interface FormSchema {\n\tid: string;\n\tkey: string;\n\ttype: FormSchemaType;\n\trequired?: boolean;\n\tmin?: number | null;\n\tmax?: number | null;\n\toptions?: string[];\n}\n\nexport type FormFieldType = \"text\" | \"number\" | \"boolean\" | \"date\" | \"geo_location\" | \"select\";\n\nexport interface FormField {\n\tid: string;\n\tkey: string;\n\ttype: FormFieldType;\n\tvalue?: any;\n}\n\nexport interface FormEntry {\n\tform_id: string;\n\tfields: FormField[];\n}\n\nexport type BlockType =\n\t| \"text\"\n\t| \"localized_text\"\n\t| \"number\"\n\t| \"boolean\"\n\t| \"list\"\n\t| \"map\"\n\t| \"relationship_entry\"\n\t| \"relationship_media\"\n\t| \"markdown\"\n\t| \"geo_location\";\n\nexport interface GeoLocationBlockProperties {}\n\n\nexport type GeoLocationValue = GeoLocation;\n\nexport interface GeoLocationBlock extends Block {\n\ttype: \"geo_location\";\n\tproperties: GeoLocationBlockProperties;\n\tvalue: GeoLocation | null;\n}\n\nexport type Access = 'public' | 'private';\n\nexport interface MediaResolution {\n\tid: string;\n\tsize: string;\n\turl: string;\n}\n\nexport interface Media {\n\tid: string;\n\tresolutions: { [key: string]: MediaResolution };\n\tmime_type: string;\n\ttitle?: string | null;\n\tdescription?: string | null;\n\talt?: string | null;\n\tstore_id: string;\n\tentity?: string;\n\tmetadata?: string | null;\n\tcreated_at: number;\n\tslug: Record<string, string>;\n}\n\nexport interface SubscriptionPlan {\n\tid: string;\n\tprovider_price_id?: string | null;\n\tprovider_product_id?: string | null;\n\tname: string;\n\ttier: number;\n\tamount: number;\n\tcurrency: string;\n\tinterval: string;\n\tinterval_count: number;\n\ttrial_period_days: number;\n}\n\nexport interface AccountToken {\n\tid: string;\n\tvalue?: string;\n\tname?: string | null;\n\tcreated_at: number;\n\texpires_at?: number | null;\n\ttype?: string;\n}\n\nexport interface StoreMembership {\n\tstore_id: string;\n\trole: import('./api').StoreRole;\n\tinvitation_token?: AccountToken | null;\n\tjoined_at?: number | null;\n}\n\nexport interface AccountLifecycle {\n\tlast_login_at?: number | null;\n\tonboarding_completed: boolean;\n}\n\nexport interface Account {\n\tid: string;\n\temail: string;\n\tmemberships: StoreMembership[];\n\tapi_tokens: AccountToken[];\n\tauth_tokens?: import('./api').AuthToken[];\n\tverification_codes?: unknown[];\n\tlifecycle?: AccountLifecycle;\n}\n\nexport interface AccountUpdateResponse {\n\tsuccess: boolean;\n\tnewly_created_tokens: AccountToken[];\n}\n\nexport interface ApiResponse<T> {\n\tsuccess: boolean;\n\tdata?: T;\n\terror?: string;\n\tcursor?: string;\n\ttotal?: number;\n}\n\nexport interface PaginatedResponse<T> {\n\titems: T[];\n\tcursor: string | null;\n\tdata?: T[];\n\tmeta?: {\n\t\ttotal: number;\n\t\tpage: number;\n\t\tper_page: number;\n\t};\n}\n\nexport type ServiceStatus = 'active' | 'draft' | 'archived';\nexport type ProviderStatus = 'active' | 'draft' | 'archived';\n\nexport type ProductStatus = 'active' | 'draft' | 'archived';\nexport type CustomerStatus = 'active' | 'archived';\nexport type AudienceStatus = 'active' | 'draft' | 'archived';\nexport type AgentChatStatus = 'active' | 'draft' | 'archived';\nexport type WorkflowStatus = 'active' | 'draft' | 'archived';\nexport type PromoCodeStatus = 'active' | 'draft' | 'archived';\nexport type NodeStatus = 'active' | 'draft' | 'archived';\nexport type EmailTemplateStatus = 'active' | 'draft' | 'archived';\nexport type FormStatus = 'active' | 'draft' | 'archived';\nexport type TaxonomyStatus = 'active' | 'draft' | 'archived';\n\nexport type OrderCancellationReason =\n\t| 'admin_rejected'\n\t| 'customer_cancelled'\n\t| 'payment_failed'\n\t| 'expired'\n\t| 'other';\n\nexport type OrderItemStatus =\n\t| { status: 'pending'; expires_at: number }\n\t| { status: 'confirmed' }\n\t| { status: 'cancelled'; reason: OrderCancellationReason };\n\nexport type OrderPaymentStatus =\n\t| { status: 'pending'; at: number }\n\t| { status: 'authorized'; at: number; amount: number }\n\t| { status: 'captured'; at: number; amount: number }\n\t| { status: 'failed'; at: number; reason?: string };\n\nexport interface TimeRange {\n\tfrom: number;\n\tto: number;\n}\n\nexport interface Node {\n\tid: string;\n\tkey: string;\n\tstore_id: string;\n\tparent_id?: string | null;\n\tblocks: Block[];\n\ttaxonomies: TaxonomyEntry[];\n\tstatus: NodeStatus;\n\tslug: Record<string, string>;\n\tchildren: Node[];\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface EmailTemplate {\n\tid: string;\n\tkey: string;\n\tstore_id: string;\n\tsubject: Record<string, string>;\n\tbody: string;\n\tfrom_name: string;\n\tfrom_email: string;\n\treply_to?: string;\n\tpreheader?: string;\n\tstatus: EmailTemplateStatus;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface Form {\n\tid: string;\n\tkey: string;\n\tstore_id: string;\n\tschema: FormSchema[];\n\tstatus: FormStatus;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface FormSubmission {\n\tid: string;\n\tform_id: string;\n\tstore_id: string;\n\tcustomer_id: string;\n\tfields: FormField[];\n\tcreated_at: number;\n}\n\nexport interface Taxonomy {\n\tid: string;\n\tkey: string;\n\tstore_id: string;\n\tparent_id?: string | null;\n\tschema?: TaxonomySchema[];\n\tstatus: TaxonomyStatus;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface ServiceDuration {\n\tduration: number;\n\tis_pause: boolean;\n}\n\nexport interface WorkingHour {\n\tfrom: number;\n\tto: number;\n}\n\nexport interface WorkingDay {\n\tday: string;\n\tworking_hours: WorkingHour[];\n}\n\nexport interface SpecificDate {\n\tdate: number;\n\tworking_hours: WorkingHour[];\n}\n\nexport interface ServiceProvider {\n\tid: string;\n\tservice_id: string;\n\tprovider_id: string;\n\tstore_id: string;\n\tworking_days: WorkingDay[];\n\tspecific_dates: SpecificDate[];\n\tprices: Price[];\n\tdurations: ServiceDuration[];\n\tslot_interval: number;\n\tforms: FormEntry[];\n\treminders: number[];\n\tmin_advance: number;\n\tmax_advance: number;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface Service {\n\tid: string;\n\tkey: string;\n\tslug: Record<string, string>;\n\tstore_id: string;\n\tblocks: Block[];\n\ttaxonomies: TaxonomyEntry[];\n\tfilters?: TaxonomyEntry[];\n\tcreated_at: number;\n\tupdated_at: number;\n\tstatus: ServiceStatus;\n}\n\n\nexport interface ProviderTimelinePoint {\n\ttimestamp: number;\n\tbooked: number;\n}\n\nexport interface Provider {\n\tid: string;\n\tkey: string;\n\tslug: Record<string, string>;\n\tstore_id: string;\n\tstatus: ProviderStatus;\n\tblocks: Block[];\n\ttaxonomies: TaxonomyEntry[];\n\tfilters?: TaxonomyEntry[];\n\ttimeline: ProviderTimelinePoint[];\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface WorkflowEdge {\n\tsource: string;\n\ttarget: string;\n\toutput: string;\n\tback_edge: boolean;\n}\n\nexport interface Workflow {\n\tid: string;\n\tkey: string;\n\tstore_id: string;\n\tsecret: string;\n\tstatus: WorkflowStatus;\n\tnodes: Record<string, WorkflowNode>;\n\tedges: WorkflowEdge[];\n\n\tschedule?: string;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport type WorkflowNode =\n\t| WorkflowTriggerNode\n\t| WorkflowHttpNode\n\t| WorkflowSwitchNode\n\t| WorkflowTransformNode\n\t| WorkflowLoopNode;\n\nexport interface WorkflowTriggerNode {\n\ttype: 'trigger';\n\tevent?: string;\n\tdelay_ms?: number;\n\tschema?: Block[];\n}\n\nexport interface WorkflowHttpNode {\n\ttype: 'http';\n\tmethod: WorkflowHttpMethod;\n\turl: string;\n\theaders?: Record<string, string>;\n\tbody?: any;\n\ttimeout_ms?: number;\n\tintegration_id?: string;\n\tintegration_provider_id?: string;\n\tdelay_ms?: number;\n\tretries?: number;\n\tretry_delay_ms?: number;\n}\n\nexport interface WorkflowSwitchRule {\n\tcondition: string;\n}\n\nexport interface WorkflowSwitchNode {\n\ttype: 'switch';\n\trules: WorkflowSwitchRule[];\n\tdelay_ms?: number;\n}\n\nexport interface WorkflowTransformNode {\n\ttype: 'transform';\n\tcode: string;\n\tdelay_ms?: number;\n}\n\nexport interface WorkflowLoopNode {\n\ttype: 'loop';\n\texpression: string;\n\tdelay_ms?: number;\n}\n\nexport type WorkflowHttpMethod = 'get' | 'post' | 'put' | 'patch' | 'delete';\n\nexport type ExecutionStatus = 'pending' | 'running' | 'completed' | 'failed' | 'cancelled';\n\nexport interface NodeResult {\n\toutput: any;\n\troute: string;\n\tstarted_at: number;\n\tcompleted_at: number;\n\tduration_ms: number;\n\terror?: string;\n}\n\nexport interface WorkflowExecution {\n\tid: string;\n\tworkflow_id: string;\n\tstore_id: string;\n\tstatus: ExecutionStatus;\n\tinput: Record<string, any>;\n\tresults: Record<string, NodeResult>;\n\terror?: string;\n\tscheduled_at: number;\n\tstarted_at: number;\n\tcompleted_at?: number;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport type AudienceType =\n\t| { type: 'standard' }\n\t| { type: 'confirmation'; confirm_template_id: string }\n\t| { type: 'paid'; prices: SubscriptionPrice[]; payment_integration_id?: string };\n\nexport interface Audience {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\tstatus: AudienceStatus;\n\ttype: AudienceType;\n}\n\nexport interface AudienceAccessResponse {\n\thas_access: boolean;\n\tsubscription?: AudienceSubscription;\n}\n\nexport interface AudienceSubscribeResponse {\n\tcheckout_url?: string;\n\tsubscription?: AudienceSubscription;\n}\n\nexport type EventAction =\n\t\n\t| { action: 'order_created' }\n\t| { action: 'order_updated' }\n\t| { action: 'order_confirmed' }\n\t| { action: 'order_payment_received'; data: { amount: number; currency: string } }\n\t| { action: 'order_payment_failed'; data: { reason?: string } }\n\t| { action: 'order_refunded'; data: { amount: number; currency: string; reason?: string } }\n\t| { action: 'order_cancelled'; data: { reason?: string } }\n\t\n\t| { action: 'order_shipment_created'; data: { shipment_id: string } }\n\t| { action: 'order_shipment_in_transit'; data: { shipment_id: string } }\n\t| { action: 'order_shipment_out_for_delivery'; data: { shipment_id: string } }\n\t| { action: 'order_shipment_delivered'; data: { shipment_id: string } }\n\t| { action: 'order_shipment_failed'; data: { shipment_id: string; reason?: string } }\n\t| { action: 'order_shipment_returned'; data: { shipment_id: string } }\n\t| { action: 'order_shipment_status_changed'; data: { shipment_id: string; from: string; to: string } }\n\t\n\t\t| { action: 'product_created' }\n\t| { action: 'product_updated' }\n\t| { action: 'product_deleted' }\n\t\n\t| { action: 'node_created' }\n\t| { action: 'node_updated' }\n\t| { action: 'node_deleted' }\n\t\n\t| { action: 'provider_created' }\n\t| { action: 'provider_updated' }\n\t| { action: 'provider_deleted' }\n\t\n\t| { action: 'service_created' }\n\t| { action: 'service_updated' }\n\t| { action: 'service_deleted' }\n\t\n\t| { action: 'account_created' }\n\t| { action: 'account_updated' }\n\t| { action: 'account_deleted' }\n\t\n\t| { action: 'media_created' }\n\t| { action: 'media_deleted' }\n\t\n\t| { action: 'store_created' }\n\t| { action: 'store_updated' }\n\t| { action: 'store_deleted' }\n\t\n\t| { action: 'audience_created' }\n\t| { action: 'audience_updated' }\n\t| { action: 'audience_deleted' };\n\nexport interface Event {\n\tid: string;\n\tentity: string;\n\tevent: EventAction;\n\tactor: string;\n\tcreated_at: number;\n}\n\n\nexport type ShippingStatus =\n\t| 'pending'\n\t| 'label_created'\n\t| 'in_transit'\n\t| 'out_for_delivery'\n\t| 'delivered'\n\t| 'failed'\n\t| 'returned';\n\n\nexport interface OrderShipping {\n\tcarrier: string;\n\tservice: string;\n\ttracking_number?: string | null;\n\ttracking_url?: string | null;\n\tlabel_url?: string | null;\n\tstatus: ShippingStatus;\n}\n\n\nexport interface ShipmentLine {\n\torder_item_id: string;\n\tquantity: number;\n}\n\n\nexport interface Shipment {\n\tid: string;\n\tlocation_id: string;\n\tlines: ShipmentLine[];\n\tcarrier?: string | null;\n\tservice?: string | null;\n\ttracking_number?: string | null;\n\ttracking_url?: string | null;\n\tlabel_url?: string | null;\n\tstatus: ShippingStatus;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\n\nexport interface ShippingRate {\n\tid: string;\n\tprovider: string;\n\tcarrier: string;\n\tservice: string;\n\tdisplay_name: string;\n\tamount: number;\n\tcurrency: string;\n\testimated_days?: number | null;\n}\n\n\nexport type ShippingAddress = Address;\n\n\nexport interface Parcel {\n\tlength: number;\n\twidth: number;\n\theight: number;\n\tweight: number;\n\tdistance_unit: 'in' | 'cm';\n\tmass_unit: 'oz' | 'lb' | 'g' | 'kg';\n}\n\n\nexport interface PurchaseLabelResult {\n\ttracking_number: string;\n\ttracking_url?: string | null;\n\tlabel_url: string;\n\tcarrier: string;\n\tservice: string;\n}\n\n\nexport interface ShipResult {\n\tshipment_id: string;\n\ttracking_number: string;\n\ttracking_url?: string | null;\n\tlabel_url: string;\n}\n\n\nexport interface CustomsItem {\n\tdescription: string;\n\tquantity: number;\n\tnet_weight: string;\n\tmass_unit: string;\n\tvalue_amount: string;\n\tvalue_currency: string;\n\torigin_country: string;\n\ttariff_number?: string | null;\n}\n\n\nexport interface CustomsDeclaration {\n\tcontents_type: string;\n\tcontents_explanation?: string | null;\n\tnon_delivery_option: string;\n\tcertify: boolean;\n\tcertify_signer: string;\n\titems: CustomsItem[];\n}\n\nexport interface Agent {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\tprompt: string;\n\tstatus: import('./api').AgentStatus;\n\tmodel_id: string;\n\tchannel_ids: string[];\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface AgentChat {\n\tid: string;\n\tstore_id: string;\n\tagent_id: string;\n\taccount_id: string;\n\tstatus: AgentChatStatus;\n\trating?: number;\n\trating_comment?: string;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface AgentChatMessage {\n\tid: string;\n\tstore_id: string;\n\tagent_id?: string;\n\tchat_id?: string;\n\tmessage: string;\n\tcreated_at: number;\n}\n\nexport interface PromoCode {\n\tid: string;\n\tstore_id: string;\n\tcode: string;\n\tdiscounts: import('./api').Discount[];\n\tconditions: import('./api').Condition[];\n\tstatus: PromoCodeStatus;\n\tuses: number;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n"]}
1
+ {"version":3,"sources":["../src/types/index.ts"],"names":["PaymentMethodType"],"mappings":";;;AAEO,IAAK,iBAAA,qBAAAA,kBAAAA,KAAL;AACN,EAAAA,mBAAA,MAAA,CAAA,GAAO,MAAA;AACP,EAAAA,mBAAA,YAAA,CAAA,GAAa,aAAA;AAFF,EAAA,OAAAA,kBAAAA;AAAA,CAAA,EAAA,iBAAA,IAAA,EAAA","file":"types.cjs","sourcesContent":["export * from './api';\n\nexport enum PaymentMethodType {\n\tCash = \"cash\",\n\tCreditCard = \"credit_card\",\n}\n\nexport interface PaymentTaxLine {\n\trate_bps: number;\n\tamount: number;\n\tlabel?: string;\n\tscope?: string;\n}\n\nexport interface OrderPaymentTax {\n\tamount: number;\n\tmode_snapshot?: string;\n\trate_bps: number;\n\tlines: OrderPaymentTaxLine[];\n}\n\nexport interface OrderPaymentTaxLine {\n\trate_bps: number;\n\tamount: number;\n\tlabel?: string;\n\tscope?: string;\n}\n\nexport interface OrderPaymentPromoCode {\n\tid: string;\n\tcode: string;\n\ttype: string;\n\tvalue: number;\n}\n\n\nexport type OrderPaymentProvider = {\n\ttype: 'stripe';\n\tcustomer_id: string;\n\tpayment_intent_id?: string;\n};\n\nexport interface OrderPaymentRefund {\n\tid: string;\n\ttotal: number;\n\tprovider_refund_id?: string;\n\tstatus: string;\n\tcreated_at: number;\n}\n\nexport interface OrderPayment {\n\tcurrency: string;\n\tmarket: string;\n\tsubtotal: number;\n\tshipping: number;\n\tdiscount: number;\n\ttotal: number;\n\tpaid: number;\n\ttax?: OrderPaymentTax;\n\tpromo_code?: OrderPaymentPromoCode;\n\tprovider?: OrderPaymentProvider;\n\trefunds: OrderPaymentRefund[];\n\tzone_id?: string;\n\tpayment_method_id?: string;\n\tshipping_method_id?: string;\n\tmethod_type: PaymentMethodType;\n}\n\nexport interface PromoCodeValidation {\n\tpromo_code_id: string;\n\tcode: string;\n\tdiscounts: import('./api').Discount[];\n\tconditions: import('./api').Condition[];\n}\n\nexport interface OrderQuote {\n\tid?: string;\n\texpires_at?: number;\n\tmarket: string;\n\tzone: Zone | null;\n\titems: QuoteLine[];\n\tsubtotal: number;\n\tshipping: number;\n\tdiscount: number;\n\ttax: number;\n\ttotal: number;\n\tshipping_method: ShippingMethod | null;\n\tpayment_method: PaymentMethod | null;\n\tpayment_methods: PaymentMethod[];\n\tpromo_code: PromoCodeValidation | null;\n\tpayment: OrderPayment;\n\tcharge_amount: number;\n}\n\n\nexport interface Price {\n\tcurrency: string;\n\tmarket: string;\n\tamount: number;\n\tcompare_at?: number;\n\taudience_id?: string;\n}\n\n\nexport type IntervalPeriod = 'month' | 'year';\n\n\nexport interface SubscriptionInterval {\n\tperiod: IntervalPeriod;\n\tcount: number;\n}\n\n\nexport interface PriceProvider {\n\ttype: string;\n\tid: string;\n}\n\n\nexport interface SubscriptionPrice {\n\tcurrency: string;\n\tamount: number;\n\tcompare_at?: number;\n\tinterval?: SubscriptionInterval;\n\tproviders: PriceProvider[];\n}\n\n\nexport interface Address {\n\tname?: string | null;\n\tcompany?: string | null;\n\tstreet1?: string | null;\n\tstreet2?: string | null;\n\tcity?: string | null;\n\tstate?: string | null;\n\tpostal_code?: string | null;\n\tcountry?: string | null;\n\tphone?: string | null;\n\temail?: string | null;\n}\n\n\nexport interface GeoLocation {\n\tcoordinates?: { lat: number; lon: number } | null;\n\tlabel?: string | null;\n}\n\n\nexport interface ZoneLocation {\n\tcountry?: string | null;\n\tstate?: string | null;\n\tcity?: string | null;\n\tpostal_code?: string | null;\n}\n\nexport interface EshopCartItem {\n\tid: string;\n\tproduct_id: string;\n\tvariant_id: string;\n\tproduct_name: string;\n\tproduct_slug: string;\n\tvariant_attributes: Record<string, any>;\n\tprice: Price;\n\tquantity: number;\n\tadded_at: number;\n\tmax_stock?: number;\n}\n\nexport type CartStatus = 'active' | 'abandoned' | 'converted' | 'expired';\nexport type CartOrigin = 'storefront' | 'admin';\n\nexport interface Cart {\n\tid: string;\n\tstore_id: string;\n\tcustomer_id: string;\n\ttoken: string;\n\tstatus: CartStatus;\n\torigin: CartOrigin;\n\tcreated_by_account_id?: string | null;\n\tmarket: string;\n\titems: import('./api').OrderCheckoutItemInput[];\n\tshipping_address?: Address | null;\n\tbilling_address?: Address | null;\n\tforms: FormEntry[];\n\tpromo_code?: string | null;\n\tpayment_method_id?: string | null;\n\tshipping_method_id?: string | null;\n\tquote_snapshot?: OrderQuote | null;\n\tconverted_order_id?: string | null;\n\titem_count: number;\n\tlast_activity_at: number;\n\tabandoned_at?: number | null;\n\trecovery_sent_at?: number | null;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport type IntegrationProvider =\n\t| { type: 'stripe'; secret_key?: string; publishable_key: string; webhook_secret?: string; currency: string }\n\t| { type: 'shippo'; api_token?: string }\n\t| { type: 'google'; client_id?: string; client_secret?: string; access_token?: string; refresh_token?: string;\n\t\ttoken_expires_at?: number; scopes: string[]; account_email?: string | null; connected_at: number }\n\t| { type: 'telegram_bot'; bot_token?: string }\n\t| { type: 'deep_seek'; api_key?: string; model?: string }\n\n\t| { type: 'open_ai'; api_key?: string; model?: string }\n\t| { type: 'slack'; api_key?: string }\n\t| { type: 'discord'; api_key?: string }\n\t| { type: 'whats_app'; api_key?: string }\n\t| { type: 'resend'; api_key?: string }\n\t| { type: 'send_grid'; api_key?: string }\n\t| { type: 'airtable'; api_key?: string }\n\t| { type: 'linear'; api_key?: string }\n\t| { type: 'git_hub'; api_key?: string }\n\t| { type: 'git_lab'; api_key?: string }\n\t| { type: 'dropbox'; api_key?: string }\n\t| { type: 'hub_spot'; api_key?: string }\n\t| { type: 'monday'; api_key?: string }\n\t| { type: 'click_up'; api_key?: string }\n\t| { type: 'pipedrive'; api_key?: string }\n\t| { type: 'calendly'; api_key?: string }\n\t| { type: 'typeform'; api_key?: string }\n\t| { type: 'webflow'; api_key?: string }\n\t| { type: 'trello'; api_key?: string }\n\t| { type: 'replicate'; api_key?: string }\n\t| { type: 'asana'; api_key?: string }\n\t| { type: 'brevo'; api_key?: string }\n\t| { type: 'intercom'; api_key?: string }\n\t| { type: 'notion'; api_key?: string }\n\t| { type: 'eleven_labs'; api_key?: string }\n\t| { type: 'active_campaign'; api_key?: string; account_url: string }\n\t| { type: 'shopify'; api_key?: string; store_domain: string }\n\t| { type: 'supabase'; api_key?: string; project_url: string }\n\t| { type: 'mailchimp'; api_key?: string }\n\n\t| { type: 'twilio'; account_sid?: string; auth_token?: string }\n\t| { type: 'jira'; email?: string; api_token?: string; domain: string }\n\t| { type: 'woo_commerce'; consumer_key?: string; consumer_secret?: string; store_url: string }\n\t| { type: 'freshdesk'; api_key?: string; domain: string }\n\t| { type: 'zendesk'; api_token?: string; email?: string; subdomain: string }\n\n\t| { type: 'salesforce'; access_token?: string; instance_url: string }\n\t| { type: 'zoom'; api_key?: string }\n\t| { type: 'microsoft_teams'; api_key?: string }\n\t| { type: 'firebase'; api_key?: string }\n\t| { type: 'arky'; api_key?: string }\n\n\t| { type: 'vercel_deploy_hook'; url?: string }\n\t| { type: 'netlify_deploy_hook'; url?: string }\n\t| { type: 'cloudflare_deploy_hook'; url?: string }\n\t| { type: 'custom_deploy_hook'; url?: string };\n\n\nexport interface Integration {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\tprovider: IntegrationProvider;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface ShippingWeightTier {\n\tup_to_grams: number;\n\tamount: number;\n}\n\nexport interface PaymentMethod {\n\tid: string;\n\tintegration_id?: string;\n}\n\nexport interface ShippingMethod {\n\tid: string;\n\ttaxable: boolean;\n\teta_text: string;\n\tlocation_id?: string;\n\tintegration_id?: string;\n\tamount: number;\n\tfree_above?: number;\n\tweight_tiers?: ShippingWeightTier[];\n}\n\nexport interface Location {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\taddress: Address;\n\tis_pickup_location: boolean;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface InventoryLevel {\n\tlocation_id: string;\n\tavailable: number;\n\treserved: number;\n}\n\nexport interface ProductInventory {\n\tid: string;\n\tstore_id: string;\n\tproduct_id: string;\n\tvariant_id: string;\n\tlocation_id: string;\n\tavailable: number;\n\treserved: number;\n\tupdated_at: number;\n}\n\nexport interface ProductVariant {\n\tid: string;\n\tsku?: string;\n\tprices: Price[];\n\tinventory: ProductInventory[];\n\tattributes: Block[];\n\tweight?: number;\n}\n\nexport interface Product {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\tslug: Record<string, string>;\n\tblocks: Block[];\n\ttaxonomies: TaxonomyEntry[];\n\tfilters?: TaxonomyEntry[];\n\tvariants: ProductVariant[];\n\tstatus: ProductStatus;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface GalleryItem {\n\tid: string;\n\turl: string;\n\talt?: string;\n\tcaption?: string;\n}\n\nexport interface ProductLineItemSnapshot {\n\tproduct_key: string;\n\tvariant_sku?: string;\n\tvariant_attributes: Block[];\n\tprice: Price;\n}\n\nexport interface ServiceLineItemSnapshot {\n\tservice_key: string;\n\tprovider_key: string;\n\tprice: Price;\n}\n\nexport type OrderItemSnapshot = ProductLineItemSnapshot | ServiceLineItemSnapshot;\n\nexport type ProductQuoteLineAvailability =\n\t| { ok: true; available?: number }\n\t| { ok: false; reason: string };\n\nexport type ServiceQuoteLineAvailability =\n\t| { ok: true; spots: number }\n\t| { ok: false; reason: string };\n\nexport interface ProductQuoteLine {\n\ttype: 'product';\n\tline_id: string;\n\tproduct_id: string;\n\tvariant_id: string;\n\tquantity: number;\n\tunit_price: number;\n\tsubtotal: number;\n\tdiscount: number;\n\ttax: number;\n\ttotal: number;\n\tsnapshot: ProductLineItemSnapshot;\n\tavailability: ProductQuoteLineAvailability;\n}\n\nexport interface ServiceQuoteLine {\n\ttype: 'service';\n\tline_id: string;\n\tservice_id: string;\n\tprovider_id: string;\n\tfrom: number;\n\tto: number;\n\tquantity: 1;\n\tunit_price: number;\n\tsubtotal: number;\n\tdiscount: number;\n\ttax: number;\n\ttotal: number;\n\tsnapshot: ServiceLineItemSnapshot;\n\tavailability: ServiceQuoteLineAvailability;\n}\n\nexport type QuoteLine = ProductQuoteLine | ServiceQuoteLine;\n\nexport interface ProductLineItem {\n\ttype: 'product';\n\tid: string;\n\tproduct_id: string;\n\tvariant_id: string;\n\tquantity: number;\n\tlocation_id?: string;\n\tsnapshot: ProductLineItemSnapshot;\n\tstatus: OrderItemStatus;\n}\n\nexport interface ServiceLineItem {\n\ttype: 'service';\n\tid: string;\n\tservice_id: string;\n\tprovider_id: string;\n\tfrom: number;\n\tto: number;\n\tforms: FormEntry[];\n\tsnapshot: ServiceLineItemSnapshot;\n\tstatus: OrderItemStatus;\n}\n\nexport type OrderItem = ProductLineItem | ServiceLineItem;\n\nexport interface HistoryEntry {\n\taction: string;\n\treason?: string;\n\ttimestamp: number;\n}\n\nexport interface Order {\n\tid: string;\n\tnumber: string;\n\tstore_id: string;\n\tsource_cart_id: string;\n\tcustomer_id: string;\n\tstatus: OrderStatus;\n\tverified: boolean;\n\titems: OrderItem[];\n\tpayment: OrderPayment;\n\tshipping_address?: Address;\n\tbilling_address?: Address;\n\tforms: FormEntry[];\n\tshipments: Shipment[];\n\thistory: HistoryEntry[];\n\taudience_id?: string;\n\tfired_reminders: number[];\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface OrderCheckoutResult {\n\torder_id: string;\n\tnumber: string;\n\tclient_secret: string | null;\n\tpayment: OrderPayment;\n}\n\nexport interface Zone {\n\tid: string;\n\tstore_id: string;\n\tmarket_id: string;\n\tcountries: string[];\n\tstates: string[];\n\tpostal_codes: string[];\n\ttax_bps: number;\n\tshipping_methods: ShippingMethod[];\n}\n\nexport interface Market {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\tcurrency: string;\n\ttax_mode: \"exclusive\" | \"inclusive\";\n\tpayment_methods: PaymentMethod[];\n\tzones: Zone[];\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface Language {\n\tid: string;\n}\n\nexport interface StoreEmails {\n\tbilling: string;\n\tsupport: string;\n}\n\nexport type WebhookEventSubscription =\n\t| { event: 'node.created'; parent_id?: string }\n\t| { event: 'node.updated'; key?: string }\n\t| { event: 'node.deleted'; key?: string }\n\t| { event: 'order.created' }\n\t| { event: 'order.updated' }\n\t| { event: 'order.confirmed' }\n\t| { event: 'order.payment_received' }\n\t| { event: 'order.payment_failed' }\n\t| { event: 'order.refunded' }\n\t| { event: 'order.cancelled' }\n\t| { event: 'order.reminder' }\n\t| { event: 'order.shipment_created' }\n\t| { event: 'order.shipment_in_transit' }\n\t| { event: 'order.shipment_out_for_delivery' }\n\t| { event: 'order.shipment_delivered' }\n\t| { event: 'order.shipment_failed' }\n\t| { event: 'order.shipment_returned' }\n\t| { event: 'order.shipment_status_changed' }\n\t| { event: 'cart.created' }\n\t| { event: 'cart.updated' }\n\t| { event: 'cart.abandoned' }\n\t| { event: 'cart.converted' }\n\t| { event: 'product.created' }\n\t| { event: 'product.updated' }\n\t| { event: 'product.deleted' }\n\t| { event: 'provider.created' }\n\t| { event: 'provider.updated' }\n\t| { event: 'provider.deleted' }\n\t| { event: 'service.created' }\n\t| { event: 'service.updated' }\n\t| { event: 'service.deleted' }\n\t| { event: 'media.created' }\n\t| { event: 'media.deleted' }\n\t| { event: 'store.created' }\n\t| { event: 'store.updated' }\n\t| { event: 'store.deleted' }\n\t| { event: 'audience.created' }\n\t| { event: 'audience.updated' }\n\t| { event: 'audience.deleted' };\n\nexport interface Webhook {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\turl: string;\n\tevents: WebhookEventSubscription[];\n\theaders: Record<string, string>;\n\tsecret: string;\n\tenabled: boolean;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\n\nexport type StoreSubscriptionStatus =\n\t| 'pending'\n\t| 'active'\n\t| 'cancellation_scheduled'\n\t| 'cancelled'\n\t| 'expired';\n\nexport type StoreSubscriptionSource = 'signup' | 'admin' | 'import';\n\nexport type StoreSubscriptionProvider = {\n\ttype: 'stripe';\n\tcustomer_id: string;\n\tsubscription_id?: string;\n\tprice_id?: string;\n};\n\nexport interface StoreSubscriptionPayment {\n\tcurrency: string;\n\tmarket: string;\n\tprovider?: StoreSubscriptionProvider;\n}\n\nexport interface StoreSubscription {\n\tid: string;\n\ttarget: string;\n\tplan_id: string;\n\tpending_plan_id: string | null;\n\tpayment: StoreSubscriptionPayment;\n\tstatus: StoreSubscriptionStatus;\n\tstart_date: number;\n\tend_date: number;\n\ttoken: string;\n\tsource: StoreSubscriptionSource;\n}\n\nexport type AudienceSubscriptionStatus =\n\t| 'pending'\n\t| 'active'\n\t| 'cancellation_scheduled'\n\t| 'cancelled'\n\t| 'expired';\n\nexport type AudienceSubscriptionSource = 'signup' | 'admin' | 'import';\n\nexport type AudienceSubscriptionProvider = {\n\ttype: 'stripe';\n\tcustomer_id: string;\n\tsubscription_id?: string;\n\tprice_id?: string;\n};\n\nexport interface AudienceSubscriptionPayment {\n\tcurrency: string;\n\tmarket: string;\n\tprovider?: AudienceSubscriptionProvider;\n}\n\nexport interface AudienceSubscription {\n\tid: string;\n\tstore_id: string;\n\tcustomer_id: string;\n\taudience_id: string;\n\tplan_id: string;\n\tpending_plan_id: string | null;\n\tpayment: AudienceSubscriptionPayment;\n\tstatus: AudienceSubscriptionStatus;\n\tstart_date: number;\n\tend_date: number;\n\ttoken: string;\n\tsource: AudienceSubscriptionSource;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface Store {\n\tid: string;\n\tkey: string;\n\ttimezone: string;\n\tlanguages?: Language[];\n\temails?: StoreEmails;\n\tsubscription?: StoreSubscription;\n\tcounts?: Record<string, number>;\n}\n\nexport interface EshopStoreState {\n\tstore_id: string;\n\tselected_shipping_method_id: string | null;\n\tuser_token: string | null;\n\tprocessing_checkout: boolean;\n\tloading: boolean;\n\terror: string | null;\n}\n\nexport interface Block {\n\tid: string;\n\tkey: string;\n\ttype: string;\n\tproperties?: any;\n\tvalue?: any;\n}\n\nexport type TaxonomySchemaType = \"text\" | \"number\" | \"boolean\" | \"geo_location\";\n\nexport interface TaxonomySchema {\n\tid: string;\n\tkey: string;\n\ttype: TaxonomySchemaType;\n\tvalue?: string[];\n\tmin?: number | null;\n\tmax?: number | null;\n}\n\nexport interface TaxonomyField {\n\tid: string;\n\tkey: string;\n\ttype: TaxonomySchemaType;\n\tvalue: any;\n}\n\nexport interface TaxonomyFieldQuery {\n\tkey: string;\n\ttype: TaxonomySchemaType;\n\toperation?: string;\n\tvalue: any;\n\tcenter?: { lat: number; lon: number };\n\tradius?: number;\n}\n\nexport interface TaxonomyEntry {\n\ttaxonomy_id: string;\n\tfields: TaxonomyField[];\n}\n\nexport interface TaxonomyQuery {\n\ttaxonomy_id: string;\n\tquery: TaxonomyFieldQuery[];\n}\n\nexport type FormSchemaType = \"text\" | \"number\" | \"boolean\" | \"date\" | \"geo_location\" | \"select\";\n\nexport interface FormSchema {\n\tid: string;\n\tkey: string;\n\ttype: FormSchemaType;\n\trequired?: boolean;\n\tmin?: number | null;\n\tmax?: number | null;\n\toptions?: string[];\n}\n\nexport type FormFieldType = \"text\" | \"number\" | \"boolean\" | \"date\" | \"geo_location\" | \"select\";\n\nexport interface FormField {\n\tid: string;\n\tkey: string;\n\ttype: FormFieldType;\n\tvalue?: any;\n}\n\nexport interface FormEntry {\n\tform_id: string;\n\tfields: FormField[];\n}\n\nexport type BlockType =\n\t| \"text\"\n\t| \"localized_text\"\n\t| \"number\"\n\t| \"boolean\"\n\t| \"list\"\n\t| \"map\"\n\t| \"relationship_entry\"\n\t| \"relationship_media\"\n\t| \"markdown\"\n\t| \"geo_location\";\n\nexport interface GeoLocationBlockProperties {}\n\n\nexport type GeoLocationValue = GeoLocation;\n\nexport interface GeoLocationBlock extends Block {\n\ttype: \"geo_location\";\n\tproperties: GeoLocationBlockProperties;\n\tvalue: GeoLocation | null;\n}\n\nexport type Access = 'public' | 'private';\n\nexport interface MediaResolution {\n\tid: string;\n\tsize: string;\n\turl: string;\n}\n\nexport interface Media {\n\tid: string;\n\tresolutions: { [key: string]: MediaResolution };\n\tmime_type: string;\n\ttitle?: string | null;\n\tdescription?: string | null;\n\talt?: string | null;\n\tstore_id: string;\n\tentity?: string;\n\tmetadata?: string | null;\n\tcreated_at: number;\n\tslug: Record<string, string>;\n}\n\nexport interface SubscriptionPlan {\n\tid: string;\n\tprovider_price_id?: string | null;\n\tprovider_product_id?: string | null;\n\tname: string;\n\ttier: number;\n\tamount: number;\n\tcurrency: string;\n\tinterval: string;\n\tinterval_count: number;\n\ttrial_period_days: number;\n}\n\nexport interface AccountToken {\n\tid: string;\n\tvalue?: string;\n\tname?: string | null;\n\tcreated_at: number;\n\texpires_at?: number | null;\n\ttype?: string;\n}\n\nexport interface StoreMembership {\n\tstore_id: string;\n\trole: import('./api').StoreRole;\n\tinvitation_token?: AccountToken | null;\n\tjoined_at?: number | null;\n}\n\nexport interface AccountLifecycle {\n\tlast_login_at?: number | null;\n\tonboarding_completed: boolean;\n}\n\nexport interface Account {\n\tid: string;\n\temail: string;\n\tmemberships: StoreMembership[];\n\tapi_tokens: AccountToken[];\n\tauth_tokens?: import('./api').AuthToken[];\n\tverification_codes?: unknown[];\n\tlifecycle?: AccountLifecycle;\n}\n\nexport interface AccountUpdateResponse {\n\tsuccess: boolean;\n\tnewly_created_tokens: AccountToken[];\n}\n\nexport interface ApiResponse<T> {\n\tsuccess: boolean;\n\tdata?: T;\n\terror?: string;\n\tcursor?: string;\n\ttotal?: number;\n}\n\nexport interface PaginatedResponse<T> {\n\titems: T[];\n\tcursor: string | null;\n\tdata?: T[];\n\tmeta?: {\n\t\ttotal: number;\n\t\tpage: number;\n\t\tper_page: number;\n\t};\n}\n\nexport type ServiceStatus = 'active' | 'draft' | 'archived';\nexport type ProviderStatus = 'active' | 'draft' | 'archived';\n\nexport type ProductStatus = 'active' | 'draft' | 'archived';\nexport type CustomerStatus = 'active' | 'archived';\nexport type AudienceStatus = 'active' | 'draft' | 'archived';\nexport type AgentChatStatus = 'active' | 'draft' | 'archived';\nexport type WorkflowStatus = 'active' | 'draft' | 'archived';\nexport type PromoCodeStatus = 'active' | 'draft' | 'archived';\nexport type NodeStatus = 'active' | 'draft' | 'archived';\nexport type EmailTemplateStatus = 'active' | 'draft' | 'archived';\nexport type FormStatus = 'active' | 'draft' | 'archived';\nexport type TaxonomyStatus = 'active' | 'draft' | 'archived';\n\nexport type OrderCancellationReason =\n\t| 'admin_rejected'\n\t| 'customer_cancelled'\n\t| 'payment_failed'\n\t| 'expired'\n\t| 'other';\n\nexport type OrderItemStatus =\n\t| { status: 'pending'; expires_at: number }\n\t| { status: 'confirmed' }\n\t| { status: 'cancelled'; reason: OrderCancellationReason };\n\nexport type OrderStatus =\n\t| 'pending'\n\t| 'partially_confirmed'\n\t| 'confirmed'\n\t| 'partially_cancelled'\n\t| 'cancelled';\n\nexport type OrderPaymentStatus =\n\t| { status: 'pending'; at: number }\n\t| { status: 'authorized'; at: number; amount: number }\n\t| { status: 'captured'; at: number; amount: number }\n\t| { status: 'failed'; at: number; reason?: string };\n\nexport interface TimeRange {\n\tfrom: number;\n\tto: number;\n}\n\nexport interface Node {\n\tid: string;\n\tkey: string;\n\tstore_id: string;\n\tparent_id?: string | null;\n\tblocks: Block[];\n\ttaxonomies: TaxonomyEntry[];\n\tstatus: NodeStatus;\n\tslug: Record<string, string>;\n\tchildren: Node[];\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface EmailTemplate {\n\tid: string;\n\tkey: string;\n\tstore_id: string;\n\tsubject: Record<string, string>;\n\tbody: string;\n\tfrom_name: string;\n\tfrom_email: string;\n\treply_to?: string;\n\tpreheader?: string;\n\tstatus: EmailTemplateStatus;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface Form {\n\tid: string;\n\tkey: string;\n\tstore_id: string;\n\tschema: FormSchema[];\n\tstatus: FormStatus;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface FormSubmission {\n\tid: string;\n\tform_id: string;\n\tstore_id: string;\n\tcustomer_id: string;\n\tfields: FormField[];\n\tcreated_at: number;\n}\n\nexport interface Taxonomy {\n\tid: string;\n\tkey: string;\n\tstore_id: string;\n\tparent_id?: string | null;\n\tschema?: TaxonomySchema[];\n\tstatus: TaxonomyStatus;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface ServiceDuration {\n\tduration: number;\n\tis_pause: boolean;\n}\n\nexport interface WorkingHour {\n\tfrom: number;\n\tto: number;\n}\n\nexport interface WorkingDay {\n\tday: string;\n\tworking_hours: WorkingHour[];\n}\n\nexport interface SpecificDate {\n\tdate: number;\n\tworking_hours: WorkingHour[];\n}\n\nexport interface ServiceProvider {\n\tid: string;\n\tservice_id: string;\n\tprovider_id: string;\n\tstore_id: string;\n\tworking_days: WorkingDay[];\n\tspecific_dates: SpecificDate[];\n\tprices: Price[];\n\tdurations: ServiceDuration[];\n\tslot_interval: number;\n\tforms: FormEntry[];\n\treminders: number[];\n\tmin_advance: number;\n\tmax_advance: number;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface Service {\n\tid: string;\n\tkey: string;\n\tslug: Record<string, string>;\n\tstore_id: string;\n\tblocks: Block[];\n\ttaxonomies: TaxonomyEntry[];\n\tfilters?: TaxonomyEntry[];\n\tcreated_at: number;\n\tupdated_at: number;\n\tstatus: ServiceStatus;\n}\n\n\nexport interface ProviderTimelinePoint {\n\ttimestamp: number;\n\tbooked: number;\n}\n\nexport interface Provider {\n\tid: string;\n\tkey: string;\n\tslug: Record<string, string>;\n\tstore_id: string;\n\tstatus: ProviderStatus;\n\tblocks: Block[];\n\ttaxonomies: TaxonomyEntry[];\n\tfilters?: TaxonomyEntry[];\n\ttimeline: ProviderTimelinePoint[];\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface WorkflowEdge {\n\tsource: string;\n\ttarget: string;\n\toutput: string;\n\tback_edge: boolean;\n}\n\nexport interface Workflow {\n\tid: string;\n\tkey: string;\n\tstore_id: string;\n\tsecret: string;\n\tstatus: WorkflowStatus;\n\tnodes: Record<string, WorkflowNode>;\n\tedges: WorkflowEdge[];\n\n\tschedule?: string;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport type WorkflowNode =\n\t| WorkflowTriggerNode\n\t| WorkflowHttpNode\n\t| WorkflowSwitchNode\n\t| WorkflowTransformNode\n\t| WorkflowLoopNode;\n\nexport interface WorkflowTriggerNode {\n\ttype: 'trigger';\n\tevent?: string;\n\tdelay_ms?: number;\n\tschema?: Block[];\n}\n\nexport interface WorkflowHttpNode {\n\ttype: 'http';\n\tmethod: WorkflowHttpMethod;\n\turl: string;\n\theaders?: Record<string, string>;\n\tbody?: any;\n\ttimeout_ms?: number;\n\tintegration_id?: string;\n\tintegration_provider_id?: string;\n\tdelay_ms?: number;\n\tretries?: number;\n\tretry_delay_ms?: number;\n}\n\nexport interface WorkflowSwitchRule {\n\tcondition: string;\n}\n\nexport interface WorkflowSwitchNode {\n\ttype: 'switch';\n\trules: WorkflowSwitchRule[];\n\tdelay_ms?: number;\n}\n\nexport interface WorkflowTransformNode {\n\ttype: 'transform';\n\tcode: string;\n\tdelay_ms?: number;\n}\n\nexport interface WorkflowLoopNode {\n\ttype: 'loop';\n\texpression: string;\n\tdelay_ms?: number;\n}\n\nexport type WorkflowHttpMethod = 'get' | 'post' | 'put' | 'patch' | 'delete';\n\nexport type ExecutionStatus = 'pending' | 'running' | 'completed' | 'failed' | 'cancelled';\n\nexport interface NodeResult {\n\toutput: any;\n\troute: string;\n\tstarted_at: number;\n\tcompleted_at: number;\n\tduration_ms: number;\n\terror?: string;\n}\n\nexport interface WorkflowExecution {\n\tid: string;\n\tworkflow_id: string;\n\tstore_id: string;\n\tstatus: ExecutionStatus;\n\tinput: Record<string, any>;\n\tresults: Record<string, NodeResult>;\n\terror?: string;\n\tscheduled_at: number;\n\tstarted_at: number;\n\tcompleted_at?: number;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport type AudienceType =\n\t| { type: 'standard' }\n\t| { type: 'confirmation'; confirm_template_id: string }\n\t| { type: 'paid'; prices: SubscriptionPrice[]; payment_integration_id?: string };\n\nexport interface Audience {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\tstatus: AudienceStatus;\n\ttype: AudienceType;\n}\n\nexport interface AudienceAccessResponse {\n\thas_access: boolean;\n\tsubscription?: AudienceSubscription;\n}\n\nexport interface AudienceSubscribeResponse {\n\tcheckout_url?: string;\n\tsubscription?: AudienceSubscription;\n}\n\nexport type EventAction =\n\t\n\t| { action: 'order_created' }\n\t| { action: 'order_updated' }\n\t| { action: 'order_confirmed' }\n\t| { action: 'order_payment_received'; data: { amount: number; currency: string } }\n\t| { action: 'order_payment_failed'; data: { reason?: string } }\n\t| { action: 'order_refunded'; data: { amount: number; currency: string; reason?: string } }\n\t| { action: 'order_cancelled'; data: { reason?: string } }\n\t\n\t| { action: 'order_shipment_created'; data: { shipment_id: string } }\n\t| { action: 'order_shipment_in_transit'; data: { shipment_id: string } }\n\t| { action: 'order_shipment_out_for_delivery'; data: { shipment_id: string } }\n\t| { action: 'order_shipment_delivered'; data: { shipment_id: string } }\n\t| { action: 'order_shipment_failed'; data: { shipment_id: string; reason?: string } }\n\t| { action: 'order_shipment_returned'; data: { shipment_id: string } }\n\t| { action: 'order_shipment_status_changed'; data: { shipment_id: string; from: string; to: string } }\n\t\n\t\t| { action: 'product_created' }\n\t| { action: 'product_updated' }\n\t| { action: 'product_deleted' }\n\t\n\t| { action: 'node_created' }\n\t| { action: 'node_updated' }\n\t| { action: 'node_deleted' }\n\t\n\t| { action: 'provider_created' }\n\t| { action: 'provider_updated' }\n\t| { action: 'provider_deleted' }\n\t\n\t| { action: 'service_created' }\n\t| { action: 'service_updated' }\n\t| { action: 'service_deleted' }\n\t\n\t| { action: 'account_created' }\n\t| { action: 'account_updated' }\n\t| { action: 'account_deleted' }\n\t\n\t| { action: 'media_created' }\n\t| { action: 'media_deleted' }\n\t\n\t| { action: 'store_created' }\n\t| { action: 'store_updated' }\n\t| { action: 'store_deleted' }\n\t\n\t| { action: 'audience_created' }\n\t| { action: 'audience_updated' }\n\t| { action: 'audience_deleted' };\n\nexport interface Event {\n\tid: string;\n\tentity: string;\n\tevent: EventAction;\n\tactor: string;\n\tcreated_at: number;\n}\n\n\nexport type ShippingStatus =\n\t| 'pending'\n\t| 'label_created'\n\t| 'in_transit'\n\t| 'out_for_delivery'\n\t| 'delivered'\n\t| 'failed'\n\t| 'returned';\n\n\nexport interface OrderShipping {\n\tcarrier: string;\n\tservice: string;\n\ttracking_number?: string | null;\n\ttracking_url?: string | null;\n\tlabel_url?: string | null;\n\tstatus: ShippingStatus;\n}\n\n\nexport interface ShipmentLine {\n\torder_item_id: string;\n\tquantity: number;\n}\n\n\nexport interface Shipment {\n\tid: string;\n\tlocation_id: string;\n\tlines: ShipmentLine[];\n\tcarrier?: string | null;\n\tservice?: string | null;\n\ttracking_number?: string | null;\n\ttracking_url?: string | null;\n\tlabel_url?: string | null;\n\tstatus: ShippingStatus;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\n\nexport interface ShippingRate {\n\tid: string;\n\tprovider: string;\n\tcarrier: string;\n\tservice: string;\n\tdisplay_name: string;\n\tamount: number;\n\tcurrency: string;\n\testimated_days?: number | null;\n}\n\n\nexport type ShippingAddress = Address;\n\n\nexport interface Parcel {\n\tlength: number;\n\twidth: number;\n\theight: number;\n\tweight: number;\n\tdistance_unit: 'in' | 'cm';\n\tmass_unit: 'oz' | 'lb' | 'g' | 'kg';\n}\n\n\nexport interface PurchaseLabelResult {\n\ttracking_number: string;\n\ttracking_url?: string | null;\n\tlabel_url: string;\n\tcarrier: string;\n\tservice: string;\n}\n\n\nexport interface ShipResult {\n\tshipment_id: string;\n\ttracking_number: string;\n\ttracking_url?: string | null;\n\tlabel_url: string;\n}\n\n\nexport interface CustomsItem {\n\tdescription: string;\n\tquantity: number;\n\tnet_weight: string;\n\tmass_unit: string;\n\tvalue_amount: string;\n\tvalue_currency: string;\n\torigin_country: string;\n\ttariff_number?: string | null;\n}\n\n\nexport interface CustomsDeclaration {\n\tcontents_type: string;\n\tcontents_explanation?: string | null;\n\tnon_delivery_option: string;\n\tcertify: boolean;\n\tcertify_signer: string;\n\titems: CustomsItem[];\n}\n\nexport interface Agent {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\tprompt: string;\n\tstatus: import('./api').AgentStatus;\n\tmodel_id: string;\n\tchannel_ids: string[];\n\ttools: string[];\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface AgentChat {\n\tid: string;\n\tstore_id: string;\n\tagent_id: string;\n\tcustomer_id: string;\n\tstatus: AgentChatStatus;\n\trating?: number;\n\trating_comment?: string;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface AgentChatMessage {\n\tid: string;\n\tstore_id: string;\n\tagent_id?: string;\n\tchat_id?: string;\n\tmessage: string;\n\tcreated_at: number;\n}\n\nexport interface PromoCode {\n\tid: string;\n\tstore_id: string;\n\tcode: string;\n\tdiscounts: import('./api').Discount[];\n\tconditions: import('./api').Condition[];\n\tstatus: PromoCodeStatus;\n\tuses: number;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n"]}
package/dist/types.d.cts CHANGED
@@ -502,6 +502,7 @@ interface Order {
502
502
  store_id: string;
503
503
  source_cart_id: string;
504
504
  customer_id: string;
505
+ status: OrderStatus;
505
506
  verified: boolean;
506
507
  items: OrderItem[];
507
508
  payment: OrderPayment;
@@ -888,6 +889,7 @@ type OrderItemStatus = {
888
889
  status: 'cancelled';
889
890
  reason: OrderCancellationReason;
890
891
  };
892
+ type OrderStatus = 'pending' | 'partially_confirmed' | 'confirmed' | 'partially_cancelled' | 'cancelled';
891
893
  type OrderPaymentStatus = {
892
894
  status: 'pending';
893
895
  at: number;
@@ -1334,6 +1336,7 @@ interface Agent {
1334
1336
  status: AgentStatus;
1335
1337
  model_id: string;
1336
1338
  channel_ids: string[];
1339
+ tools: string[];
1337
1340
  created_at: number;
1338
1341
  updated_at: number;
1339
1342
  }
@@ -1341,7 +1344,7 @@ interface AgentChat {
1341
1344
  id: string;
1342
1345
  store_id: string;
1343
1346
  agent_id: string;
1344
- account_id: string;
1347
+ customer_id: string;
1345
1348
  status: AgentChatStatus;
1346
1349
  rating?: number;
1347
1350
  rating_comment?: string;
@@ -1473,11 +1476,18 @@ interface ServiceCheckoutItemInput {
1473
1476
  provider_id: string;
1474
1477
  slots: SlotRange[];
1475
1478
  forms?: FormEntry[];
1476
- price?: Price;
1477
1479
  }
1478
1480
  type OrderCheckoutItemInput = ProductCheckoutItemInput | ServiceCheckoutItemInput;
1479
1481
  type CheckoutItemInput = OrderCheckoutItemInput;
1480
1482
  type OrderCheckoutCompatibleItemInput = OrderCheckoutItemInput | EshopItem | ServiceCheckoutPart;
1483
+ interface TrustedProductCheckoutItemInput extends ProductCheckoutItemInput {
1484
+ price?: Price;
1485
+ }
1486
+ interface TrustedServiceCheckoutItemInput extends ServiceCheckoutItemInput {
1487
+ price?: Price;
1488
+ }
1489
+ type TrustedOrderCheckoutItemInput = TrustedProductCheckoutItemInput | TrustedServiceCheckoutItemInput;
1490
+ type TrustedOrderCheckoutCompatibleItemInput = TrustedOrderCheckoutItemInput | EshopItem | ServiceCheckoutPart;
1481
1491
  interface GetQuoteParams {
1482
1492
  store_id?: string;
1483
1493
  market?: string;
@@ -1523,7 +1533,7 @@ interface CreateCartParams {
1523
1533
  store_id?: string;
1524
1534
  customer_id: string;
1525
1535
  market: string;
1526
- items?: OrderCheckoutCompatibleItemInput[];
1536
+ items?: TrustedOrderCheckoutCompatibleItemInput[];
1527
1537
  shipping_address?: Address | null;
1528
1538
  billing_address?: Address | null;
1529
1539
  forms?: FormEntry[];
@@ -1887,6 +1897,7 @@ interface GetOrderParams {
1887
1897
  interface GetOrdersParams {
1888
1898
  store_id?: string;
1889
1899
  customer_id?: string;
1900
+ statuses?: string[];
1890
1901
  item_statuses?: string[];
1891
1902
  product_ids?: string[];
1892
1903
  verified?: boolean;
@@ -1909,7 +1920,7 @@ interface UpdateOrderParams {
1909
1920
  shipping_address?: Address | null;
1910
1921
  billing_address?: Address | null;
1911
1922
  forms?: FormEntry[];
1912
- items?: OrderCheckoutCompatibleItemInput[];
1923
+ items?: TrustedOrderCheckoutCompatibleItemInput[];
1913
1924
  payment?: OrderPayment;
1914
1925
  }
1915
1926
  interface CreateProviderParams {
@@ -2498,6 +2509,7 @@ interface CreateAgentParams {
2498
2509
  status?: AgentStatus;
2499
2510
  model_id: string;
2500
2511
  channel_ids?: string[];
2512
+ tools?: string[];
2501
2513
  }
2502
2514
  interface UpdateAgentParams {
2503
2515
  id: string;
@@ -2507,6 +2519,7 @@ interface UpdateAgentParams {
2507
2519
  status: AgentStatus;
2508
2520
  model_id: string;
2509
2521
  channel_ids?: string[];
2522
+ tools?: string[];
2510
2523
  }
2511
2524
  interface DeleteAgentParams {
2512
2525
  id: string;
@@ -2520,6 +2533,7 @@ interface GetAgentsParams {
2520
2533
  store_id?: string;
2521
2534
  limit?: number;
2522
2535
  cursor?: string;
2536
+ status?: AgentStatus;
2523
2537
  }
2524
2538
  interface RunAgentParams {
2525
2539
  id: string;
@@ -2537,6 +2551,7 @@ interface GetAgentChatsParams {
2537
2551
  interface GetStoreChatsParams {
2538
2552
  store_id?: string;
2539
2553
  agent_id?: string;
2554
+ customer_id?: string;
2540
2555
  status?: AgentChatStatus;
2541
2556
  query?: string | number;
2542
2557
  sort_field?: string;
@@ -2648,4 +2663,4 @@ interface MergeCustomersParams {
2648
2663
  store_id?: string;
2649
2664
  }
2650
2665
 
2651
- export { type Access, type Account, type AccountAddress, type AccountApiToken, type AccountLifecycle, type AccountToken, type AccountUpdateResponse, type AddAudienceSubscriberParams, type AddAudienceSubscriberResponse, type AddCartItemParams, type Address, type Agent, type AgentChat, type AgentChatMessage, type AgentChatStatus, type AgentStatus, type ApiResponse, type Audience, type AudienceAccessResponse, type AudienceStatus, type AudienceSubscribeResponse, type AudienceSubscriber, type AudienceSubscription, type AudienceSubscriptionPayment, type AudienceSubscriptionProvider, type AudienceSubscriptionSource, type AudienceSubscriptionStatus, type AudienceType, type AuthToken, type AvailabilityResponse, type AvailabilitySlot, type Block, type BlockType, type Cart, type CartOrigin, type CartStatus, type CheckoutCartParams, type CheckoutItemInput, type ClearCartParams, type Condition, type ConditionValue, type CreateAgentParams, type CreateAudienceParams, type CreateCartParams, type CreateCustomerParams, type CreateEmailTemplateParams, type CreateFormParams, type CreateIntegrationParams, type CreateLocationParams, type CreateMarketParams, type CreateNodeParams, type CreatePortalSessionParams, type CreateProductParams, type CreateProductVariantInput, type CreatePromoCodeParams, type CreateProviderParams, type CreateServiceParams, type CreateServiceProviderParams, type CreateStoreParams, type CreateTaxonomyParams, type CreateWebhookParams, type CreateWorkflowParams, type Customer, type CustomerAuthToken, type CustomerDetail, type CustomerInfo, type CustomerStatus, type CustomerVerificationCode, type CustomsDeclaration, type CustomsItem, type DaySlots, type DeleteAccountParams, type DeleteAgentParams, type DeleteAudienceParams, type DeleteEmailTemplateParams, type DeleteFormParams, type DeleteIntegrationParams, type DeleteLocationParams, type DeleteMarketParams, type DeleteNodeParams, type DeleteProductParams, type DeletePromoCodeParams, type DeleteProviderParams, type DeleteServiceParams, type DeleteServiceProviderParams, type DeleteStoreMediaParams, type DeleteStoreParams, type DeleteTaxonomyParams, type DeleteWebhookParams, type DeleteWorkflowParams, type Discount, type EmailTemplate, type EmailTemplateStatus, type EshopCartItem, type EshopItem, type EshopQuoteItem, type EshopStoreState, type Event, type EventAction, type ExecutionStatus, type FindActivitiesParams, type FindCartsParams, type FindCustomersParams, type FindServiceProvidersParams, type Form, type FormEntry, type FormField, type FormFieldType, type FormSchema, type FormSchemaType, type FormStatus, type FormSubmission, type GalleryItem, type GeoLocation, type GeoLocationBlock, type GeoLocationBlockProperties, type GeoLocationValue, type GetAgentChatParams, type GetAgentChatsParams, type GetAgentParams, type GetAgentsParams, type GetAnalyticsHealthParams, type GetAnalyticsParams, type GetAudienceParams, type GetAudienceSubscribersParams, type GetAudiencesParams, type GetAvailabilityParams, type GetCartParams, type GetCurrentCartParams, type GetCustomerParams, type GetDeliveryStatsParams, type GetEmailTemplateParams, type GetEmailTemplatesParams, type GetFormParams, type GetFormSubmissionParams, type GetFormSubmissionsParams, type GetFormsParams, type GetIntegrationParams, type GetMeParams, type GetMediaParams, type GetNodeChildrenParams, type GetNodeParams, type GetNodesParams, type GetOrderParams, type GetOrdersParams, type GetProductParams, type GetProductsParams, type GetPromoCodeParams, type GetPromoCodesParams, type GetProviderParams, type GetProvidersParams, type GetQuoteParams, type GetServiceParams, type GetServicesParams, type GetShippingRatesParams, type GetStoreChatsParams, type GetStoreMediaParams, type GetStoreMediaParams2, type GetStoreParams, type GetStoresParams, type GetSubscriptionPlansParams, type GetTaxonomiesParams, type GetTaxonomyChildrenParams, type GetTaxonomyParams, type GetWorkflowExecutionParams, type GetWorkflowExecutionsParams, type GetWorkflowParams, type GetWorkflowsParams, type HandleInvitationParams, type HistoryEntry, type Integration, type IntegrationProvider, type IntervalPeriod, type InventoryLevel, type InviteUserParams, type Language, type ListIntegrationsParams, type ListWebhooksParams, type Location, type LoginAccountParams, type LogoutParams, type MagicLinkRequestParams, type MagicLinkVerifyParams, type Market, type Media, type MediaResolution, type MergeCustomersParams, type Node, type NodeResult, type NodeStatus, type OAuthConnectParams, type OAuthDisconnectParams, type Order, type OrderCancellationReason, type OrderCheckoutCompatibleItemInput, type OrderCheckoutItemInput, type OrderCheckoutParams, type OrderCheckoutResult, type OrderItem, type OrderItemSnapshot, type OrderItemStatus, type OrderPayment, type OrderPaymentPromoCode, type OrderPaymentProvider, type OrderPaymentRefund, type OrderPaymentStatus, type OrderPaymentTax, type OrderPaymentTaxLine, type OrderQuote, type OrderQuoteCompatibleItemInput, type OrderQuoteItemInput, type OrderShipping, type OrderUpdateItem, type PaginatedResponse, type Parcel, type PaymentMethod, PaymentMethodType, type PaymentTaxLine, type Price, type PriceProvider, type ProcessOrderRefundParams, type Product, type ProductCheckoutItemInput, type ProductInventory, type ProductLineItem, type ProductLineItemSnapshot, type ProductQuoteItemInput, type ProductQuoteLine, type ProductQuoteLineAvailability, type ProductStatus, type ProductVariant, type PromoCode, type PromoCodeStatus, type PromoCodeValidation, type PromoUsage, type Provider, type ProviderAvailability, type ProviderStatus, type ProviderTimelinePoint, type ProviderWithTimeline, type PurchaseLabelResult, type QuoteCartParams, type QuoteItemInput, type QuoteLine, type RateAgentChatParams, type RemoveAudienceSubscriberParams, type RemoveCartItemParams, type RemoveMemberParams, type RequestOptions, type RunAgentParams, type SearchAccountsParams, type SearchOrderServiceItemsParams, type Service, type ServiceCheckoutItemInput, type ServiceCheckoutPart, type ServiceDuration, type ServiceLineItem, type ServiceLineItemSnapshot, type ServiceProvider, type ServiceProviderInput, type ServiceQuoteItem, type ServiceQuoteItemInput, type ServiceQuoteLine, type ServiceQuoteLineAvailability, type ServiceStatus, type SetCustomerEmailParams, type SetupAnalyticsParams, type ShipParams, type ShipResult, type Shipment, type ShipmentLine, type ShippingAddress, type ShippingMethod, type ShippingRate, type ShippingStatus, type ShippingWeightTier, type Slot, type SlotRange, type SpecificDate, type Store, type StoreEmails, type StoreMembership, type StoreRole, type StoreSubscription, type StoreSubscriptionPayment, type StoreSubscriptionProvider, type StoreSubscriptionSource, type StoreSubscriptionStatus, type SubmitFormParams, type SubscribeAudienceParams, type SubscribeParams, type SubscriptionInterval, type SubscriptionPlan, type SubscriptionPrice, type SystemTemplateKey, type Taxonomy, type TaxonomyEntry, type TaxonomyField, type TaxonomyFieldQuery, type TaxonomyQuery, type TaxonomySchema, type TaxonomySchemaType, type TaxonomyStatus, type TestWebhookParams, type TimeRange, type TimelinePoint, type TrackEmailOpenParams, type TriggerNotificationParams, type TriggerWorkflowParams, type UpdateAccountProfileParams, type UpdateAgentChatParams, type UpdateAgentParams, type UpdateAudienceParams, type UpdateCartParams, type UpdateCustomerParams, type UpdateEmailTemplateParams, type UpdateFormParams, type UpdateFormSubmissionParams, type UpdateIntegrationParams, type UpdateLocationParams, type UpdateMarketParams, type UpdateMediaParams, type UpdateNodeParams, type UpdateOrderParams, type UpdateProductParams, type UpdateProductVariantInput, type UpdatePromoCodeParams, type UpdateProviderParams, type UpdateServiceParams, type UpdateServiceProviderParams, type UpdateStoreParams, type UpdateTaxonomyParams, type UpdateWebhookParams, type UpdateWorkflowParams, type UploadStoreMediaParams, type Webhook, type WebhookEventSubscription, type Workflow, type WorkflowEdge, type WorkflowExecution, type WorkflowHttpMethod, type WorkflowHttpNode, type WorkflowLoopNode, type WorkflowNode, type WorkflowStatus, type WorkflowSwitchNode, type WorkflowSwitchRule, type WorkflowTransformNode, type WorkflowTriggerNode, type WorkingDay, type WorkingHour, type Zone, type ZoneLocation };
2666
+ export { type Access, type Account, type AccountAddress, type AccountApiToken, type AccountLifecycle, type AccountToken, type AccountUpdateResponse, type AddAudienceSubscriberParams, type AddAudienceSubscriberResponse, type AddCartItemParams, type Address, type Agent, type AgentChat, type AgentChatMessage, type AgentChatStatus, type AgentStatus, type ApiResponse, type Audience, type AudienceAccessResponse, type AudienceStatus, type AudienceSubscribeResponse, type AudienceSubscriber, type AudienceSubscription, type AudienceSubscriptionPayment, type AudienceSubscriptionProvider, type AudienceSubscriptionSource, type AudienceSubscriptionStatus, type AudienceType, type AuthToken, type AvailabilityResponse, type AvailabilitySlot, type Block, type BlockType, type Cart, type CartOrigin, type CartStatus, type CheckoutCartParams, type CheckoutItemInput, type ClearCartParams, type Condition, type ConditionValue, type CreateAgentParams, type CreateAudienceParams, type CreateCartParams, type CreateCustomerParams, type CreateEmailTemplateParams, type CreateFormParams, type CreateIntegrationParams, type CreateLocationParams, type CreateMarketParams, type CreateNodeParams, type CreatePortalSessionParams, type CreateProductParams, type CreateProductVariantInput, type CreatePromoCodeParams, type CreateProviderParams, type CreateServiceParams, type CreateServiceProviderParams, type CreateStoreParams, type CreateTaxonomyParams, type CreateWebhookParams, type CreateWorkflowParams, type Customer, type CustomerAuthToken, type CustomerDetail, type CustomerInfo, type CustomerStatus, type CustomerVerificationCode, type CustomsDeclaration, type CustomsItem, type DaySlots, type DeleteAccountParams, type DeleteAgentParams, type DeleteAudienceParams, type DeleteEmailTemplateParams, type DeleteFormParams, type DeleteIntegrationParams, type DeleteLocationParams, type DeleteMarketParams, type DeleteNodeParams, type DeleteProductParams, type DeletePromoCodeParams, type DeleteProviderParams, type DeleteServiceParams, type DeleteServiceProviderParams, type DeleteStoreMediaParams, type DeleteStoreParams, type DeleteTaxonomyParams, type DeleteWebhookParams, type DeleteWorkflowParams, type Discount, type EmailTemplate, type EmailTemplateStatus, type EshopCartItem, type EshopItem, type EshopQuoteItem, type EshopStoreState, type Event, type EventAction, type ExecutionStatus, type FindActivitiesParams, type FindCartsParams, type FindCustomersParams, type FindServiceProvidersParams, type Form, type FormEntry, type FormField, type FormFieldType, type FormSchema, type FormSchemaType, type FormStatus, type FormSubmission, type GalleryItem, type GeoLocation, type GeoLocationBlock, type GeoLocationBlockProperties, type GeoLocationValue, type GetAgentChatParams, type GetAgentChatsParams, type GetAgentParams, type GetAgentsParams, type GetAnalyticsHealthParams, type GetAnalyticsParams, type GetAudienceParams, type GetAudienceSubscribersParams, type GetAudiencesParams, type GetAvailabilityParams, type GetCartParams, type GetCurrentCartParams, type GetCustomerParams, type GetDeliveryStatsParams, type GetEmailTemplateParams, type GetEmailTemplatesParams, type GetFormParams, type GetFormSubmissionParams, type GetFormSubmissionsParams, type GetFormsParams, type GetIntegrationParams, type GetMeParams, type GetMediaParams, type GetNodeChildrenParams, type GetNodeParams, type GetNodesParams, type GetOrderParams, type GetOrdersParams, type GetProductParams, type GetProductsParams, type GetPromoCodeParams, type GetPromoCodesParams, type GetProviderParams, type GetProvidersParams, type GetQuoteParams, type GetServiceParams, type GetServicesParams, type GetShippingRatesParams, type GetStoreChatsParams, type GetStoreMediaParams, type GetStoreMediaParams2, type GetStoreParams, type GetStoresParams, type GetSubscriptionPlansParams, type GetTaxonomiesParams, type GetTaxonomyChildrenParams, type GetTaxonomyParams, type GetWorkflowExecutionParams, type GetWorkflowExecutionsParams, type GetWorkflowParams, type GetWorkflowsParams, type HandleInvitationParams, type HistoryEntry, type Integration, type IntegrationProvider, type IntervalPeriod, type InventoryLevel, type InviteUserParams, type Language, type ListIntegrationsParams, type ListWebhooksParams, type Location, type LoginAccountParams, type LogoutParams, type MagicLinkRequestParams, type MagicLinkVerifyParams, type Market, type Media, type MediaResolution, type MergeCustomersParams, type Node, type NodeResult, type NodeStatus, type OAuthConnectParams, type OAuthDisconnectParams, type Order, type OrderCancellationReason, type OrderCheckoutCompatibleItemInput, type OrderCheckoutItemInput, type OrderCheckoutParams, type OrderCheckoutResult, type OrderItem, type OrderItemSnapshot, type OrderItemStatus, type OrderPayment, type OrderPaymentPromoCode, type OrderPaymentProvider, type OrderPaymentRefund, type OrderPaymentStatus, type OrderPaymentTax, type OrderPaymentTaxLine, type OrderQuote, type OrderQuoteCompatibleItemInput, type OrderQuoteItemInput, type OrderShipping, type OrderStatus, type OrderUpdateItem, type PaginatedResponse, type Parcel, type PaymentMethod, PaymentMethodType, type PaymentTaxLine, type Price, type PriceProvider, type ProcessOrderRefundParams, type Product, type ProductCheckoutItemInput, type ProductInventory, type ProductLineItem, type ProductLineItemSnapshot, type ProductQuoteItemInput, type ProductQuoteLine, type ProductQuoteLineAvailability, type ProductStatus, type ProductVariant, type PromoCode, type PromoCodeStatus, type PromoCodeValidation, type PromoUsage, type Provider, type ProviderAvailability, type ProviderStatus, type ProviderTimelinePoint, type ProviderWithTimeline, type PurchaseLabelResult, type QuoteCartParams, type QuoteItemInput, type QuoteLine, type RateAgentChatParams, type RemoveAudienceSubscriberParams, type RemoveCartItemParams, type RemoveMemberParams, type RequestOptions, type RunAgentParams, type SearchAccountsParams, type SearchOrderServiceItemsParams, type Service, type ServiceCheckoutItemInput, type ServiceCheckoutPart, type ServiceDuration, type ServiceLineItem, type ServiceLineItemSnapshot, type ServiceProvider, type ServiceProviderInput, type ServiceQuoteItem, type ServiceQuoteItemInput, type ServiceQuoteLine, type ServiceQuoteLineAvailability, type ServiceStatus, type SetCustomerEmailParams, type SetupAnalyticsParams, type ShipParams, type ShipResult, type Shipment, type ShipmentLine, type ShippingAddress, type ShippingMethod, type ShippingRate, type ShippingStatus, type ShippingWeightTier, type Slot, type SlotRange, type SpecificDate, type Store, type StoreEmails, type StoreMembership, type StoreRole, type StoreSubscription, type StoreSubscriptionPayment, type StoreSubscriptionProvider, type StoreSubscriptionSource, type StoreSubscriptionStatus, type SubmitFormParams, type SubscribeAudienceParams, type SubscribeParams, type SubscriptionInterval, type SubscriptionPlan, type SubscriptionPrice, type SystemTemplateKey, type Taxonomy, type TaxonomyEntry, type TaxonomyField, type TaxonomyFieldQuery, type TaxonomyQuery, type TaxonomySchema, type TaxonomySchemaType, type TaxonomyStatus, type TestWebhookParams, type TimeRange, type TimelinePoint, type TrackEmailOpenParams, type TriggerNotificationParams, type TriggerWorkflowParams, type TrustedOrderCheckoutCompatibleItemInput, type TrustedOrderCheckoutItemInput, type TrustedProductCheckoutItemInput, type TrustedServiceCheckoutItemInput, type UpdateAccountProfileParams, type UpdateAgentChatParams, type UpdateAgentParams, type UpdateAudienceParams, type UpdateCartParams, type UpdateCustomerParams, type UpdateEmailTemplateParams, type UpdateFormParams, type UpdateFormSubmissionParams, type UpdateIntegrationParams, type UpdateLocationParams, type UpdateMarketParams, type UpdateMediaParams, type UpdateNodeParams, type UpdateOrderParams, type UpdateProductParams, type UpdateProductVariantInput, type UpdatePromoCodeParams, type UpdateProviderParams, type UpdateServiceParams, type UpdateServiceProviderParams, type UpdateStoreParams, type UpdateTaxonomyParams, type UpdateWebhookParams, type UpdateWorkflowParams, type UploadStoreMediaParams, type Webhook, type WebhookEventSubscription, type Workflow, type WorkflowEdge, type WorkflowExecution, type WorkflowHttpMethod, type WorkflowHttpNode, type WorkflowLoopNode, type WorkflowNode, type WorkflowStatus, type WorkflowSwitchNode, type WorkflowSwitchRule, type WorkflowTransformNode, type WorkflowTriggerNode, type WorkingDay, type WorkingHour, type Zone, type ZoneLocation };
package/dist/types.d.ts CHANGED
@@ -502,6 +502,7 @@ interface Order {
502
502
  store_id: string;
503
503
  source_cart_id: string;
504
504
  customer_id: string;
505
+ status: OrderStatus;
505
506
  verified: boolean;
506
507
  items: OrderItem[];
507
508
  payment: OrderPayment;
@@ -888,6 +889,7 @@ type OrderItemStatus = {
888
889
  status: 'cancelled';
889
890
  reason: OrderCancellationReason;
890
891
  };
892
+ type OrderStatus = 'pending' | 'partially_confirmed' | 'confirmed' | 'partially_cancelled' | 'cancelled';
891
893
  type OrderPaymentStatus = {
892
894
  status: 'pending';
893
895
  at: number;
@@ -1334,6 +1336,7 @@ interface Agent {
1334
1336
  status: AgentStatus;
1335
1337
  model_id: string;
1336
1338
  channel_ids: string[];
1339
+ tools: string[];
1337
1340
  created_at: number;
1338
1341
  updated_at: number;
1339
1342
  }
@@ -1341,7 +1344,7 @@ interface AgentChat {
1341
1344
  id: string;
1342
1345
  store_id: string;
1343
1346
  agent_id: string;
1344
- account_id: string;
1347
+ customer_id: string;
1345
1348
  status: AgentChatStatus;
1346
1349
  rating?: number;
1347
1350
  rating_comment?: string;
@@ -1473,11 +1476,18 @@ interface ServiceCheckoutItemInput {
1473
1476
  provider_id: string;
1474
1477
  slots: SlotRange[];
1475
1478
  forms?: FormEntry[];
1476
- price?: Price;
1477
1479
  }
1478
1480
  type OrderCheckoutItemInput = ProductCheckoutItemInput | ServiceCheckoutItemInput;
1479
1481
  type CheckoutItemInput = OrderCheckoutItemInput;
1480
1482
  type OrderCheckoutCompatibleItemInput = OrderCheckoutItemInput | EshopItem | ServiceCheckoutPart;
1483
+ interface TrustedProductCheckoutItemInput extends ProductCheckoutItemInput {
1484
+ price?: Price;
1485
+ }
1486
+ interface TrustedServiceCheckoutItemInput extends ServiceCheckoutItemInput {
1487
+ price?: Price;
1488
+ }
1489
+ type TrustedOrderCheckoutItemInput = TrustedProductCheckoutItemInput | TrustedServiceCheckoutItemInput;
1490
+ type TrustedOrderCheckoutCompatibleItemInput = TrustedOrderCheckoutItemInput | EshopItem | ServiceCheckoutPart;
1481
1491
  interface GetQuoteParams {
1482
1492
  store_id?: string;
1483
1493
  market?: string;
@@ -1523,7 +1533,7 @@ interface CreateCartParams {
1523
1533
  store_id?: string;
1524
1534
  customer_id: string;
1525
1535
  market: string;
1526
- items?: OrderCheckoutCompatibleItemInput[];
1536
+ items?: TrustedOrderCheckoutCompatibleItemInput[];
1527
1537
  shipping_address?: Address | null;
1528
1538
  billing_address?: Address | null;
1529
1539
  forms?: FormEntry[];
@@ -1887,6 +1897,7 @@ interface GetOrderParams {
1887
1897
  interface GetOrdersParams {
1888
1898
  store_id?: string;
1889
1899
  customer_id?: string;
1900
+ statuses?: string[];
1890
1901
  item_statuses?: string[];
1891
1902
  product_ids?: string[];
1892
1903
  verified?: boolean;
@@ -1909,7 +1920,7 @@ interface UpdateOrderParams {
1909
1920
  shipping_address?: Address | null;
1910
1921
  billing_address?: Address | null;
1911
1922
  forms?: FormEntry[];
1912
- items?: OrderCheckoutCompatibleItemInput[];
1923
+ items?: TrustedOrderCheckoutCompatibleItemInput[];
1913
1924
  payment?: OrderPayment;
1914
1925
  }
1915
1926
  interface CreateProviderParams {
@@ -2498,6 +2509,7 @@ interface CreateAgentParams {
2498
2509
  status?: AgentStatus;
2499
2510
  model_id: string;
2500
2511
  channel_ids?: string[];
2512
+ tools?: string[];
2501
2513
  }
2502
2514
  interface UpdateAgentParams {
2503
2515
  id: string;
@@ -2507,6 +2519,7 @@ interface UpdateAgentParams {
2507
2519
  status: AgentStatus;
2508
2520
  model_id: string;
2509
2521
  channel_ids?: string[];
2522
+ tools?: string[];
2510
2523
  }
2511
2524
  interface DeleteAgentParams {
2512
2525
  id: string;
@@ -2520,6 +2533,7 @@ interface GetAgentsParams {
2520
2533
  store_id?: string;
2521
2534
  limit?: number;
2522
2535
  cursor?: string;
2536
+ status?: AgentStatus;
2523
2537
  }
2524
2538
  interface RunAgentParams {
2525
2539
  id: string;
@@ -2537,6 +2551,7 @@ interface GetAgentChatsParams {
2537
2551
  interface GetStoreChatsParams {
2538
2552
  store_id?: string;
2539
2553
  agent_id?: string;
2554
+ customer_id?: string;
2540
2555
  status?: AgentChatStatus;
2541
2556
  query?: string | number;
2542
2557
  sort_field?: string;
@@ -2648,4 +2663,4 @@ interface MergeCustomersParams {
2648
2663
  store_id?: string;
2649
2664
  }
2650
2665
 
2651
- export { type Access, type Account, type AccountAddress, type AccountApiToken, type AccountLifecycle, type AccountToken, type AccountUpdateResponse, type AddAudienceSubscriberParams, type AddAudienceSubscriberResponse, type AddCartItemParams, type Address, type Agent, type AgentChat, type AgentChatMessage, type AgentChatStatus, type AgentStatus, type ApiResponse, type Audience, type AudienceAccessResponse, type AudienceStatus, type AudienceSubscribeResponse, type AudienceSubscriber, type AudienceSubscription, type AudienceSubscriptionPayment, type AudienceSubscriptionProvider, type AudienceSubscriptionSource, type AudienceSubscriptionStatus, type AudienceType, type AuthToken, type AvailabilityResponse, type AvailabilitySlot, type Block, type BlockType, type Cart, type CartOrigin, type CartStatus, type CheckoutCartParams, type CheckoutItemInput, type ClearCartParams, type Condition, type ConditionValue, type CreateAgentParams, type CreateAudienceParams, type CreateCartParams, type CreateCustomerParams, type CreateEmailTemplateParams, type CreateFormParams, type CreateIntegrationParams, type CreateLocationParams, type CreateMarketParams, type CreateNodeParams, type CreatePortalSessionParams, type CreateProductParams, type CreateProductVariantInput, type CreatePromoCodeParams, type CreateProviderParams, type CreateServiceParams, type CreateServiceProviderParams, type CreateStoreParams, type CreateTaxonomyParams, type CreateWebhookParams, type CreateWorkflowParams, type Customer, type CustomerAuthToken, type CustomerDetail, type CustomerInfo, type CustomerStatus, type CustomerVerificationCode, type CustomsDeclaration, type CustomsItem, type DaySlots, type DeleteAccountParams, type DeleteAgentParams, type DeleteAudienceParams, type DeleteEmailTemplateParams, type DeleteFormParams, type DeleteIntegrationParams, type DeleteLocationParams, type DeleteMarketParams, type DeleteNodeParams, type DeleteProductParams, type DeletePromoCodeParams, type DeleteProviderParams, type DeleteServiceParams, type DeleteServiceProviderParams, type DeleteStoreMediaParams, type DeleteStoreParams, type DeleteTaxonomyParams, type DeleteWebhookParams, type DeleteWorkflowParams, type Discount, type EmailTemplate, type EmailTemplateStatus, type EshopCartItem, type EshopItem, type EshopQuoteItem, type EshopStoreState, type Event, type EventAction, type ExecutionStatus, type FindActivitiesParams, type FindCartsParams, type FindCustomersParams, type FindServiceProvidersParams, type Form, type FormEntry, type FormField, type FormFieldType, type FormSchema, type FormSchemaType, type FormStatus, type FormSubmission, type GalleryItem, type GeoLocation, type GeoLocationBlock, type GeoLocationBlockProperties, type GeoLocationValue, type GetAgentChatParams, type GetAgentChatsParams, type GetAgentParams, type GetAgentsParams, type GetAnalyticsHealthParams, type GetAnalyticsParams, type GetAudienceParams, type GetAudienceSubscribersParams, type GetAudiencesParams, type GetAvailabilityParams, type GetCartParams, type GetCurrentCartParams, type GetCustomerParams, type GetDeliveryStatsParams, type GetEmailTemplateParams, type GetEmailTemplatesParams, type GetFormParams, type GetFormSubmissionParams, type GetFormSubmissionsParams, type GetFormsParams, type GetIntegrationParams, type GetMeParams, type GetMediaParams, type GetNodeChildrenParams, type GetNodeParams, type GetNodesParams, type GetOrderParams, type GetOrdersParams, type GetProductParams, type GetProductsParams, type GetPromoCodeParams, type GetPromoCodesParams, type GetProviderParams, type GetProvidersParams, type GetQuoteParams, type GetServiceParams, type GetServicesParams, type GetShippingRatesParams, type GetStoreChatsParams, type GetStoreMediaParams, type GetStoreMediaParams2, type GetStoreParams, type GetStoresParams, type GetSubscriptionPlansParams, type GetTaxonomiesParams, type GetTaxonomyChildrenParams, type GetTaxonomyParams, type GetWorkflowExecutionParams, type GetWorkflowExecutionsParams, type GetWorkflowParams, type GetWorkflowsParams, type HandleInvitationParams, type HistoryEntry, type Integration, type IntegrationProvider, type IntervalPeriod, type InventoryLevel, type InviteUserParams, type Language, type ListIntegrationsParams, type ListWebhooksParams, type Location, type LoginAccountParams, type LogoutParams, type MagicLinkRequestParams, type MagicLinkVerifyParams, type Market, type Media, type MediaResolution, type MergeCustomersParams, type Node, type NodeResult, type NodeStatus, type OAuthConnectParams, type OAuthDisconnectParams, type Order, type OrderCancellationReason, type OrderCheckoutCompatibleItemInput, type OrderCheckoutItemInput, type OrderCheckoutParams, type OrderCheckoutResult, type OrderItem, type OrderItemSnapshot, type OrderItemStatus, type OrderPayment, type OrderPaymentPromoCode, type OrderPaymentProvider, type OrderPaymentRefund, type OrderPaymentStatus, type OrderPaymentTax, type OrderPaymentTaxLine, type OrderQuote, type OrderQuoteCompatibleItemInput, type OrderQuoteItemInput, type OrderShipping, type OrderUpdateItem, type PaginatedResponse, type Parcel, type PaymentMethod, PaymentMethodType, type PaymentTaxLine, type Price, type PriceProvider, type ProcessOrderRefundParams, type Product, type ProductCheckoutItemInput, type ProductInventory, type ProductLineItem, type ProductLineItemSnapshot, type ProductQuoteItemInput, type ProductQuoteLine, type ProductQuoteLineAvailability, type ProductStatus, type ProductVariant, type PromoCode, type PromoCodeStatus, type PromoCodeValidation, type PromoUsage, type Provider, type ProviderAvailability, type ProviderStatus, type ProviderTimelinePoint, type ProviderWithTimeline, type PurchaseLabelResult, type QuoteCartParams, type QuoteItemInput, type QuoteLine, type RateAgentChatParams, type RemoveAudienceSubscriberParams, type RemoveCartItemParams, type RemoveMemberParams, type RequestOptions, type RunAgentParams, type SearchAccountsParams, type SearchOrderServiceItemsParams, type Service, type ServiceCheckoutItemInput, type ServiceCheckoutPart, type ServiceDuration, type ServiceLineItem, type ServiceLineItemSnapshot, type ServiceProvider, type ServiceProviderInput, type ServiceQuoteItem, type ServiceQuoteItemInput, type ServiceQuoteLine, type ServiceQuoteLineAvailability, type ServiceStatus, type SetCustomerEmailParams, type SetupAnalyticsParams, type ShipParams, type ShipResult, type Shipment, type ShipmentLine, type ShippingAddress, type ShippingMethod, type ShippingRate, type ShippingStatus, type ShippingWeightTier, type Slot, type SlotRange, type SpecificDate, type Store, type StoreEmails, type StoreMembership, type StoreRole, type StoreSubscription, type StoreSubscriptionPayment, type StoreSubscriptionProvider, type StoreSubscriptionSource, type StoreSubscriptionStatus, type SubmitFormParams, type SubscribeAudienceParams, type SubscribeParams, type SubscriptionInterval, type SubscriptionPlan, type SubscriptionPrice, type SystemTemplateKey, type Taxonomy, type TaxonomyEntry, type TaxonomyField, type TaxonomyFieldQuery, type TaxonomyQuery, type TaxonomySchema, type TaxonomySchemaType, type TaxonomyStatus, type TestWebhookParams, type TimeRange, type TimelinePoint, type TrackEmailOpenParams, type TriggerNotificationParams, type TriggerWorkflowParams, type UpdateAccountProfileParams, type UpdateAgentChatParams, type UpdateAgentParams, type UpdateAudienceParams, type UpdateCartParams, type UpdateCustomerParams, type UpdateEmailTemplateParams, type UpdateFormParams, type UpdateFormSubmissionParams, type UpdateIntegrationParams, type UpdateLocationParams, type UpdateMarketParams, type UpdateMediaParams, type UpdateNodeParams, type UpdateOrderParams, type UpdateProductParams, type UpdateProductVariantInput, type UpdatePromoCodeParams, type UpdateProviderParams, type UpdateServiceParams, type UpdateServiceProviderParams, type UpdateStoreParams, type UpdateTaxonomyParams, type UpdateWebhookParams, type UpdateWorkflowParams, type UploadStoreMediaParams, type Webhook, type WebhookEventSubscription, type Workflow, type WorkflowEdge, type WorkflowExecution, type WorkflowHttpMethod, type WorkflowHttpNode, type WorkflowLoopNode, type WorkflowNode, type WorkflowStatus, type WorkflowSwitchNode, type WorkflowSwitchRule, type WorkflowTransformNode, type WorkflowTriggerNode, type WorkingDay, type WorkingHour, type Zone, type ZoneLocation };
2666
+ export { type Access, type Account, type AccountAddress, type AccountApiToken, type AccountLifecycle, type AccountToken, type AccountUpdateResponse, type AddAudienceSubscriberParams, type AddAudienceSubscriberResponse, type AddCartItemParams, type Address, type Agent, type AgentChat, type AgentChatMessage, type AgentChatStatus, type AgentStatus, type ApiResponse, type Audience, type AudienceAccessResponse, type AudienceStatus, type AudienceSubscribeResponse, type AudienceSubscriber, type AudienceSubscription, type AudienceSubscriptionPayment, type AudienceSubscriptionProvider, type AudienceSubscriptionSource, type AudienceSubscriptionStatus, type AudienceType, type AuthToken, type AvailabilityResponse, type AvailabilitySlot, type Block, type BlockType, type Cart, type CartOrigin, type CartStatus, type CheckoutCartParams, type CheckoutItemInput, type ClearCartParams, type Condition, type ConditionValue, type CreateAgentParams, type CreateAudienceParams, type CreateCartParams, type CreateCustomerParams, type CreateEmailTemplateParams, type CreateFormParams, type CreateIntegrationParams, type CreateLocationParams, type CreateMarketParams, type CreateNodeParams, type CreatePortalSessionParams, type CreateProductParams, type CreateProductVariantInput, type CreatePromoCodeParams, type CreateProviderParams, type CreateServiceParams, type CreateServiceProviderParams, type CreateStoreParams, type CreateTaxonomyParams, type CreateWebhookParams, type CreateWorkflowParams, type Customer, type CustomerAuthToken, type CustomerDetail, type CustomerInfo, type CustomerStatus, type CustomerVerificationCode, type CustomsDeclaration, type CustomsItem, type DaySlots, type DeleteAccountParams, type DeleteAgentParams, type DeleteAudienceParams, type DeleteEmailTemplateParams, type DeleteFormParams, type DeleteIntegrationParams, type DeleteLocationParams, type DeleteMarketParams, type DeleteNodeParams, type DeleteProductParams, type DeletePromoCodeParams, type DeleteProviderParams, type DeleteServiceParams, type DeleteServiceProviderParams, type DeleteStoreMediaParams, type DeleteStoreParams, type DeleteTaxonomyParams, type DeleteWebhookParams, type DeleteWorkflowParams, type Discount, type EmailTemplate, type EmailTemplateStatus, type EshopCartItem, type EshopItem, type EshopQuoteItem, type EshopStoreState, type Event, type EventAction, type ExecutionStatus, type FindActivitiesParams, type FindCartsParams, type FindCustomersParams, type FindServiceProvidersParams, type Form, type FormEntry, type FormField, type FormFieldType, type FormSchema, type FormSchemaType, type FormStatus, type FormSubmission, type GalleryItem, type GeoLocation, type GeoLocationBlock, type GeoLocationBlockProperties, type GeoLocationValue, type GetAgentChatParams, type GetAgentChatsParams, type GetAgentParams, type GetAgentsParams, type GetAnalyticsHealthParams, type GetAnalyticsParams, type GetAudienceParams, type GetAudienceSubscribersParams, type GetAudiencesParams, type GetAvailabilityParams, type GetCartParams, type GetCurrentCartParams, type GetCustomerParams, type GetDeliveryStatsParams, type GetEmailTemplateParams, type GetEmailTemplatesParams, type GetFormParams, type GetFormSubmissionParams, type GetFormSubmissionsParams, type GetFormsParams, type GetIntegrationParams, type GetMeParams, type GetMediaParams, type GetNodeChildrenParams, type GetNodeParams, type GetNodesParams, type GetOrderParams, type GetOrdersParams, type GetProductParams, type GetProductsParams, type GetPromoCodeParams, type GetPromoCodesParams, type GetProviderParams, type GetProvidersParams, type GetQuoteParams, type GetServiceParams, type GetServicesParams, type GetShippingRatesParams, type GetStoreChatsParams, type GetStoreMediaParams, type GetStoreMediaParams2, type GetStoreParams, type GetStoresParams, type GetSubscriptionPlansParams, type GetTaxonomiesParams, type GetTaxonomyChildrenParams, type GetTaxonomyParams, type GetWorkflowExecutionParams, type GetWorkflowExecutionsParams, type GetWorkflowParams, type GetWorkflowsParams, type HandleInvitationParams, type HistoryEntry, type Integration, type IntegrationProvider, type IntervalPeriod, type InventoryLevel, type InviteUserParams, type Language, type ListIntegrationsParams, type ListWebhooksParams, type Location, type LoginAccountParams, type LogoutParams, type MagicLinkRequestParams, type MagicLinkVerifyParams, type Market, type Media, type MediaResolution, type MergeCustomersParams, type Node, type NodeResult, type NodeStatus, type OAuthConnectParams, type OAuthDisconnectParams, type Order, type OrderCancellationReason, type OrderCheckoutCompatibleItemInput, type OrderCheckoutItemInput, type OrderCheckoutParams, type OrderCheckoutResult, type OrderItem, type OrderItemSnapshot, type OrderItemStatus, type OrderPayment, type OrderPaymentPromoCode, type OrderPaymentProvider, type OrderPaymentRefund, type OrderPaymentStatus, type OrderPaymentTax, type OrderPaymentTaxLine, type OrderQuote, type OrderQuoteCompatibleItemInput, type OrderQuoteItemInput, type OrderShipping, type OrderStatus, type OrderUpdateItem, type PaginatedResponse, type Parcel, type PaymentMethod, PaymentMethodType, type PaymentTaxLine, type Price, type PriceProvider, type ProcessOrderRefundParams, type Product, type ProductCheckoutItemInput, type ProductInventory, type ProductLineItem, type ProductLineItemSnapshot, type ProductQuoteItemInput, type ProductQuoteLine, type ProductQuoteLineAvailability, type ProductStatus, type ProductVariant, type PromoCode, type PromoCodeStatus, type PromoCodeValidation, type PromoUsage, type Provider, type ProviderAvailability, type ProviderStatus, type ProviderTimelinePoint, type ProviderWithTimeline, type PurchaseLabelResult, type QuoteCartParams, type QuoteItemInput, type QuoteLine, type RateAgentChatParams, type RemoveAudienceSubscriberParams, type RemoveCartItemParams, type RemoveMemberParams, type RequestOptions, type RunAgentParams, type SearchAccountsParams, type SearchOrderServiceItemsParams, type Service, type ServiceCheckoutItemInput, type ServiceCheckoutPart, type ServiceDuration, type ServiceLineItem, type ServiceLineItemSnapshot, type ServiceProvider, type ServiceProviderInput, type ServiceQuoteItem, type ServiceQuoteItemInput, type ServiceQuoteLine, type ServiceQuoteLineAvailability, type ServiceStatus, type SetCustomerEmailParams, type SetupAnalyticsParams, type ShipParams, type ShipResult, type Shipment, type ShipmentLine, type ShippingAddress, type ShippingMethod, type ShippingRate, type ShippingStatus, type ShippingWeightTier, type Slot, type SlotRange, type SpecificDate, type Store, type StoreEmails, type StoreMembership, type StoreRole, type StoreSubscription, type StoreSubscriptionPayment, type StoreSubscriptionProvider, type StoreSubscriptionSource, type StoreSubscriptionStatus, type SubmitFormParams, type SubscribeAudienceParams, type SubscribeParams, type SubscriptionInterval, type SubscriptionPlan, type SubscriptionPrice, type SystemTemplateKey, type Taxonomy, type TaxonomyEntry, type TaxonomyField, type TaxonomyFieldQuery, type TaxonomyQuery, type TaxonomySchema, type TaxonomySchemaType, type TaxonomyStatus, type TestWebhookParams, type TimeRange, type TimelinePoint, type TrackEmailOpenParams, type TriggerNotificationParams, type TriggerWorkflowParams, type TrustedOrderCheckoutCompatibleItemInput, type TrustedOrderCheckoutItemInput, type TrustedProductCheckoutItemInput, type TrustedServiceCheckoutItemInput, type UpdateAccountProfileParams, type UpdateAgentChatParams, type UpdateAgentParams, type UpdateAudienceParams, type UpdateCartParams, type UpdateCustomerParams, type UpdateEmailTemplateParams, type UpdateFormParams, type UpdateFormSubmissionParams, type UpdateIntegrationParams, type UpdateLocationParams, type UpdateMarketParams, type UpdateMediaParams, type UpdateNodeParams, type UpdateOrderParams, type UpdateProductParams, type UpdateProductVariantInput, type UpdatePromoCodeParams, type UpdateProviderParams, type UpdateServiceParams, type UpdateServiceProviderParams, type UpdateStoreParams, type UpdateTaxonomyParams, type UpdateWebhookParams, type UpdateWorkflowParams, type UploadStoreMediaParams, type Webhook, type WebhookEventSubscription, type Workflow, type WorkflowEdge, type WorkflowExecution, type WorkflowHttpMethod, type WorkflowHttpNode, type WorkflowLoopNode, type WorkflowNode, type WorkflowStatus, type WorkflowSwitchNode, type WorkflowSwitchRule, type WorkflowTransformNode, type WorkflowTriggerNode, type WorkingDay, type WorkingHour, type Zone, type ZoneLocation };
package/dist/types.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/types/index.ts"],"names":["PaymentMethodType"],"mappings":";AAEO,IAAK,iBAAA,qBAAAA,kBAAAA,KAAL;AACN,EAAAA,mBAAA,MAAA,CAAA,GAAO,MAAA;AACP,EAAAA,mBAAA,YAAA,CAAA,GAAa,aAAA;AAFF,EAAA,OAAAA,kBAAAA;AAAA,CAAA,EAAA,iBAAA,IAAA,EAAA","file":"types.js","sourcesContent":["export * from './api';\n\nexport enum PaymentMethodType {\n\tCash = \"cash\",\n\tCreditCard = \"credit_card\",\n}\n\nexport interface PaymentTaxLine {\n\trate_bps: number;\n\tamount: number;\n\tlabel?: string;\n\tscope?: string;\n}\n\nexport interface OrderPaymentTax {\n\tamount: number;\n\tmode_snapshot?: string;\n\trate_bps: number;\n\tlines: OrderPaymentTaxLine[];\n}\n\nexport interface OrderPaymentTaxLine {\n\trate_bps: number;\n\tamount: number;\n\tlabel?: string;\n\tscope?: string;\n}\n\nexport interface OrderPaymentPromoCode {\n\tid: string;\n\tcode: string;\n\ttype: string;\n\tvalue: number;\n}\n\n\nexport type OrderPaymentProvider = {\n\ttype: 'stripe';\n\tcustomer_id: string;\n\tpayment_intent_id?: string;\n};\n\nexport interface OrderPaymentRefund {\n\tid: string;\n\ttotal: number;\n\tprovider_refund_id?: string;\n\tstatus: string;\n\tcreated_at: number;\n}\n\nexport interface OrderPayment {\n\tcurrency: string;\n\tmarket: string;\n\tsubtotal: number;\n\tshipping: number;\n\tdiscount: number;\n\ttotal: number;\n\tpaid: number;\n\ttax?: OrderPaymentTax;\n\tpromo_code?: OrderPaymentPromoCode;\n\tprovider?: OrderPaymentProvider;\n\trefunds: OrderPaymentRefund[];\n\tzone_id?: string;\n\tpayment_method_id?: string;\n\tshipping_method_id?: string;\n\tmethod_type: PaymentMethodType;\n}\n\nexport interface PromoCodeValidation {\n\tpromo_code_id: string;\n\tcode: string;\n\tdiscounts: import('./api').Discount[];\n\tconditions: import('./api').Condition[];\n}\n\nexport interface OrderQuote {\n\tid?: string;\n\texpires_at?: number;\n\tmarket: string;\n\tzone: Zone | null;\n\titems: QuoteLine[];\n\tsubtotal: number;\n\tshipping: number;\n\tdiscount: number;\n\ttax: number;\n\ttotal: number;\n\tshipping_method: ShippingMethod | null;\n\tpayment_method: PaymentMethod | null;\n\tpayment_methods: PaymentMethod[];\n\tpromo_code: PromoCodeValidation | null;\n\tpayment: OrderPayment;\n\tcharge_amount: number;\n}\n\n\nexport interface Price {\n\tcurrency: string;\n\tmarket: string;\n\tamount: number;\n\tcompare_at?: number;\n\taudience_id?: string;\n}\n\n\nexport type IntervalPeriod = 'month' | 'year';\n\n\nexport interface SubscriptionInterval {\n\tperiod: IntervalPeriod;\n\tcount: number;\n}\n\n\nexport interface PriceProvider {\n\ttype: string;\n\tid: string;\n}\n\n\nexport interface SubscriptionPrice {\n\tcurrency: string;\n\tamount: number;\n\tcompare_at?: number;\n\tinterval?: SubscriptionInterval;\n\tproviders: PriceProvider[];\n}\n\n\nexport interface Address {\n\tname?: string | null;\n\tcompany?: string | null;\n\tstreet1?: string | null;\n\tstreet2?: string | null;\n\tcity?: string | null;\n\tstate?: string | null;\n\tpostal_code?: string | null;\n\tcountry?: string | null;\n\tphone?: string | null;\n\temail?: string | null;\n}\n\n\nexport interface GeoLocation {\n\tcoordinates?: { lat: number; lon: number } | null;\n\tlabel?: string | null;\n}\n\n\nexport interface ZoneLocation {\n\tcountry?: string | null;\n\tstate?: string | null;\n\tcity?: string | null;\n\tpostal_code?: string | null;\n}\n\nexport interface EshopCartItem {\n\tid: string;\n\tproduct_id: string;\n\tvariant_id: string;\n\tproduct_name: string;\n\tproduct_slug: string;\n\tvariant_attributes: Record<string, any>;\n\tprice: Price;\n\tquantity: number;\n\tadded_at: number;\n\tmax_stock?: number;\n}\n\nexport type CartStatus = 'active' | 'abandoned' | 'converted' | 'expired';\nexport type CartOrigin = 'storefront' | 'admin';\n\nexport interface Cart {\n\tid: string;\n\tstore_id: string;\n\tcustomer_id: string;\n\ttoken: string;\n\tstatus: CartStatus;\n\torigin: CartOrigin;\n\tcreated_by_account_id?: string | null;\n\tmarket: string;\n\titems: import('./api').OrderCheckoutItemInput[];\n\tshipping_address?: Address | null;\n\tbilling_address?: Address | null;\n\tforms: FormEntry[];\n\tpromo_code?: string | null;\n\tpayment_method_id?: string | null;\n\tshipping_method_id?: string | null;\n\tquote_snapshot?: OrderQuote | null;\n\tconverted_order_id?: string | null;\n\titem_count: number;\n\tlast_activity_at: number;\n\tabandoned_at?: number | null;\n\trecovery_sent_at?: number | null;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport type IntegrationProvider =\n\t| { type: 'stripe'; secret_key?: string; publishable_key: string; webhook_secret?: string; currency: string }\n\t| { type: 'shippo'; api_token?: string }\n\t| { type: 'google'; client_id?: string; client_secret?: string; access_token?: string; refresh_token?: string;\n\t\ttoken_expires_at?: number; scopes: string[]; account_email?: string | null; connected_at: number }\n\t| { type: 'telegram_bot'; bot_token?: string }\n\t| { type: 'deep_seek'; api_key?: string; model?: string }\n\n\t| { type: 'open_ai'; api_key?: string; model?: string }\n\t| { type: 'slack'; api_key?: string }\n\t| { type: 'discord'; api_key?: string }\n\t| { type: 'whats_app'; api_key?: string }\n\t| { type: 'resend'; api_key?: string }\n\t| { type: 'send_grid'; api_key?: string }\n\t| { type: 'airtable'; api_key?: string }\n\t| { type: 'linear'; api_key?: string }\n\t| { type: 'git_hub'; api_key?: string }\n\t| { type: 'git_lab'; api_key?: string }\n\t| { type: 'dropbox'; api_key?: string }\n\t| { type: 'hub_spot'; api_key?: string }\n\t| { type: 'monday'; api_key?: string }\n\t| { type: 'click_up'; api_key?: string }\n\t| { type: 'pipedrive'; api_key?: string }\n\t| { type: 'calendly'; api_key?: string }\n\t| { type: 'typeform'; api_key?: string }\n\t| { type: 'webflow'; api_key?: string }\n\t| { type: 'trello'; api_key?: string }\n\t| { type: 'replicate'; api_key?: string }\n\t| { type: 'asana'; api_key?: string }\n\t| { type: 'brevo'; api_key?: string }\n\t| { type: 'intercom'; api_key?: string }\n\t| { type: 'notion'; api_key?: string }\n\t| { type: 'eleven_labs'; api_key?: string }\n\t| { type: 'active_campaign'; api_key?: string; account_url: string }\n\t| { type: 'shopify'; api_key?: string; store_domain: string }\n\t| { type: 'supabase'; api_key?: string; project_url: string }\n\t| { type: 'mailchimp'; api_key?: string }\n\n\t| { type: 'twilio'; account_sid?: string; auth_token?: string }\n\t| { type: 'jira'; email?: string; api_token?: string; domain: string }\n\t| { type: 'woo_commerce'; consumer_key?: string; consumer_secret?: string; store_url: string }\n\t| { type: 'freshdesk'; api_key?: string; domain: string }\n\t| { type: 'zendesk'; api_token?: string; email?: string; subdomain: string }\n\n\t| { type: 'salesforce'; access_token?: string; instance_url: string }\n\t| { type: 'zoom'; api_key?: string }\n\t| { type: 'microsoft_teams'; api_key?: string }\n\t| { type: 'firebase'; api_key?: string }\n\t| { type: 'arky'; api_key?: string }\n\n\t| { type: 'vercel_deploy_hook'; url?: string }\n\t| { type: 'netlify_deploy_hook'; url?: string }\n\t| { type: 'cloudflare_deploy_hook'; url?: string }\n\t| { type: 'custom_deploy_hook'; url?: string };\n\n\nexport interface Integration {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\tprovider: IntegrationProvider;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface ShippingWeightTier {\n\tup_to_grams: number;\n\tamount: number;\n}\n\nexport interface PaymentMethod {\n\tid: string;\n\tintegration_id?: string;\n}\n\nexport interface ShippingMethod {\n\tid: string;\n\ttaxable: boolean;\n\teta_text: string;\n\tlocation_id?: string;\n\tintegration_id?: string;\n\tamount: number;\n\tfree_above?: number;\n\tweight_tiers?: ShippingWeightTier[];\n}\n\nexport interface Location {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\taddress: Address;\n\tis_pickup_location: boolean;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface InventoryLevel {\n\tlocation_id: string;\n\tavailable: number;\n\treserved: number;\n}\n\nexport interface ProductInventory {\n\tid: string;\n\tstore_id: string;\n\tproduct_id: string;\n\tvariant_id: string;\n\tlocation_id: string;\n\tavailable: number;\n\treserved: number;\n\tupdated_at: number;\n}\n\nexport interface ProductVariant {\n\tid: string;\n\tsku?: string;\n\tprices: Price[];\n\tinventory: ProductInventory[];\n\tattributes: Block[];\n\tweight?: number;\n}\n\nexport interface Product {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\tslug: Record<string, string>;\n\tblocks: Block[];\n\ttaxonomies: TaxonomyEntry[];\n\tfilters?: TaxonomyEntry[];\n\tvariants: ProductVariant[];\n\tstatus: ProductStatus;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface GalleryItem {\n\tid: string;\n\turl: string;\n\talt?: string;\n\tcaption?: string;\n}\n\nexport interface ProductLineItemSnapshot {\n\tproduct_key: string;\n\tvariant_sku?: string;\n\tvariant_attributes: Block[];\n\tprice: Price;\n}\n\nexport interface ServiceLineItemSnapshot {\n\tservice_key: string;\n\tprovider_key: string;\n\tprice: Price;\n}\n\nexport type OrderItemSnapshot = ProductLineItemSnapshot | ServiceLineItemSnapshot;\n\nexport type ProductQuoteLineAvailability =\n\t| { ok: true; available?: number }\n\t| { ok: false; reason: string };\n\nexport type ServiceQuoteLineAvailability =\n\t| { ok: true; spots: number }\n\t| { ok: false; reason: string };\n\nexport interface ProductQuoteLine {\n\ttype: 'product';\n\tline_id: string;\n\tproduct_id: string;\n\tvariant_id: string;\n\tquantity: number;\n\tunit_price: number;\n\tsubtotal: number;\n\tdiscount: number;\n\ttax: number;\n\ttotal: number;\n\tsnapshot: ProductLineItemSnapshot;\n\tavailability: ProductQuoteLineAvailability;\n}\n\nexport interface ServiceQuoteLine {\n\ttype: 'service';\n\tline_id: string;\n\tservice_id: string;\n\tprovider_id: string;\n\tfrom: number;\n\tto: number;\n\tquantity: 1;\n\tunit_price: number;\n\tsubtotal: number;\n\tdiscount: number;\n\ttax: number;\n\ttotal: number;\n\tsnapshot: ServiceLineItemSnapshot;\n\tavailability: ServiceQuoteLineAvailability;\n}\n\nexport type QuoteLine = ProductQuoteLine | ServiceQuoteLine;\n\nexport interface ProductLineItem {\n\ttype: 'product';\n\tid: string;\n\tproduct_id: string;\n\tvariant_id: string;\n\tquantity: number;\n\tlocation_id?: string;\n\tsnapshot: ProductLineItemSnapshot;\n\tstatus: OrderItemStatus;\n}\n\nexport interface ServiceLineItem {\n\ttype: 'service';\n\tid: string;\n\tservice_id: string;\n\tprovider_id: string;\n\tfrom: number;\n\tto: number;\n\tforms: FormEntry[];\n\tsnapshot: ServiceLineItemSnapshot;\n\tstatus: OrderItemStatus;\n}\n\nexport type OrderItem = ProductLineItem | ServiceLineItem;\n\nexport interface HistoryEntry {\n\taction: string;\n\treason?: string;\n\ttimestamp: number;\n}\n\nexport interface Order {\n\tid: string;\n\tnumber: string;\n\tstore_id: string;\n\tsource_cart_id: string;\n\tcustomer_id: string;\n\tverified: boolean;\n\titems: OrderItem[];\n\tpayment: OrderPayment;\n\tshipping_address?: Address;\n\tbilling_address?: Address;\n\tforms: FormEntry[];\n\tshipments: Shipment[];\n\thistory: HistoryEntry[];\n\taudience_id?: string;\n\tfired_reminders: number[];\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface OrderCheckoutResult {\n\torder_id: string;\n\tnumber: string;\n\tclient_secret: string | null;\n\tpayment: OrderPayment;\n}\n\nexport interface Zone {\n\tid: string;\n\tstore_id: string;\n\tmarket_id: string;\n\tcountries: string[];\n\tstates: string[];\n\tpostal_codes: string[];\n\ttax_bps: number;\n\tshipping_methods: ShippingMethod[];\n}\n\nexport interface Market {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\tcurrency: string;\n\ttax_mode: \"exclusive\" | \"inclusive\";\n\tpayment_methods: PaymentMethod[];\n\tzones: Zone[];\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface Language {\n\tid: string;\n}\n\nexport interface StoreEmails {\n\tbilling: string;\n\tsupport: string;\n}\n\nexport type WebhookEventSubscription =\n\t| { event: 'node.created'; parent_id?: string }\n\t| { event: 'node.updated'; key?: string }\n\t| { event: 'node.deleted'; key?: string }\n\t| { event: 'order.created' }\n\t| { event: 'order.updated' }\n\t| { event: 'order.confirmed' }\n\t| { event: 'order.payment_received' }\n\t| { event: 'order.payment_failed' }\n\t| { event: 'order.refunded' }\n\t| { event: 'order.cancelled' }\n\t| { event: 'order.reminder' }\n\t| { event: 'order.shipment_created' }\n\t| { event: 'order.shipment_in_transit' }\n\t| { event: 'order.shipment_out_for_delivery' }\n\t| { event: 'order.shipment_delivered' }\n\t| { event: 'order.shipment_failed' }\n\t| { event: 'order.shipment_returned' }\n\t| { event: 'order.shipment_status_changed' }\n\t| { event: 'cart.created' }\n\t| { event: 'cart.updated' }\n\t| { event: 'cart.abandoned' }\n\t| { event: 'cart.converted' }\n\t| { event: 'product.created' }\n\t| { event: 'product.updated' }\n\t| { event: 'product.deleted' }\n\t| { event: 'provider.created' }\n\t| { event: 'provider.updated' }\n\t| { event: 'provider.deleted' }\n\t| { event: 'service.created' }\n\t| { event: 'service.updated' }\n\t| { event: 'service.deleted' }\n\t| { event: 'media.created' }\n\t| { event: 'media.deleted' }\n\t| { event: 'store.created' }\n\t| { event: 'store.updated' }\n\t| { event: 'store.deleted' }\n\t| { event: 'audience.created' }\n\t| { event: 'audience.updated' }\n\t| { event: 'audience.deleted' };\n\nexport interface Webhook {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\turl: string;\n\tevents: WebhookEventSubscription[];\n\theaders: Record<string, string>;\n\tsecret: string;\n\tenabled: boolean;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\n\nexport type StoreSubscriptionStatus =\n\t| 'pending'\n\t| 'active'\n\t| 'cancellation_scheduled'\n\t| 'cancelled'\n\t| 'expired';\n\nexport type StoreSubscriptionSource = 'signup' | 'admin' | 'import';\n\nexport type StoreSubscriptionProvider = {\n\ttype: 'stripe';\n\tcustomer_id: string;\n\tsubscription_id?: string;\n\tprice_id?: string;\n};\n\nexport interface StoreSubscriptionPayment {\n\tcurrency: string;\n\tmarket: string;\n\tprovider?: StoreSubscriptionProvider;\n}\n\nexport interface StoreSubscription {\n\tid: string;\n\ttarget: string;\n\tplan_id: string;\n\tpending_plan_id: string | null;\n\tpayment: StoreSubscriptionPayment;\n\tstatus: StoreSubscriptionStatus;\n\tstart_date: number;\n\tend_date: number;\n\ttoken: string;\n\tsource: StoreSubscriptionSource;\n}\n\nexport type AudienceSubscriptionStatus =\n\t| 'pending'\n\t| 'active'\n\t| 'cancellation_scheduled'\n\t| 'cancelled'\n\t| 'expired';\n\nexport type AudienceSubscriptionSource = 'signup' | 'admin' | 'import';\n\nexport type AudienceSubscriptionProvider = {\n\ttype: 'stripe';\n\tcustomer_id: string;\n\tsubscription_id?: string;\n\tprice_id?: string;\n};\n\nexport interface AudienceSubscriptionPayment {\n\tcurrency: string;\n\tmarket: string;\n\tprovider?: AudienceSubscriptionProvider;\n}\n\nexport interface AudienceSubscription {\n\tid: string;\n\tstore_id: string;\n\tcustomer_id: string;\n\taudience_id: string;\n\tplan_id: string;\n\tpending_plan_id: string | null;\n\tpayment: AudienceSubscriptionPayment;\n\tstatus: AudienceSubscriptionStatus;\n\tstart_date: number;\n\tend_date: number;\n\ttoken: string;\n\tsource: AudienceSubscriptionSource;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface Store {\n\tid: string;\n\tkey: string;\n\ttimezone: string;\n\tlanguages?: Language[];\n\temails?: StoreEmails;\n\tsubscription?: StoreSubscription;\n\tcounts?: Record<string, number>;\n}\n\nexport interface EshopStoreState {\n\tstore_id: string;\n\tselected_shipping_method_id: string | null;\n\tuser_token: string | null;\n\tprocessing_checkout: boolean;\n\tloading: boolean;\n\terror: string | null;\n}\n\nexport interface Block {\n\tid: string;\n\tkey: string;\n\ttype: string;\n\tproperties?: any;\n\tvalue?: any;\n}\n\nexport type TaxonomySchemaType = \"text\" | \"number\" | \"boolean\" | \"geo_location\";\n\nexport interface TaxonomySchema {\n\tid: string;\n\tkey: string;\n\ttype: TaxonomySchemaType;\n\tvalue?: string[];\n\tmin?: number | null;\n\tmax?: number | null;\n}\n\nexport interface TaxonomyField {\n\tid: string;\n\tkey: string;\n\ttype: TaxonomySchemaType;\n\tvalue: any;\n}\n\nexport interface TaxonomyFieldQuery {\n\tkey: string;\n\ttype: TaxonomySchemaType;\n\toperation?: string;\n\tvalue: any;\n\tcenter?: { lat: number; lon: number };\n\tradius?: number;\n}\n\nexport interface TaxonomyEntry {\n\ttaxonomy_id: string;\n\tfields: TaxonomyField[];\n}\n\nexport interface TaxonomyQuery {\n\ttaxonomy_id: string;\n\tquery: TaxonomyFieldQuery[];\n}\n\nexport type FormSchemaType = \"text\" | \"number\" | \"boolean\" | \"date\" | \"geo_location\" | \"select\";\n\nexport interface FormSchema {\n\tid: string;\n\tkey: string;\n\ttype: FormSchemaType;\n\trequired?: boolean;\n\tmin?: number | null;\n\tmax?: number | null;\n\toptions?: string[];\n}\n\nexport type FormFieldType = \"text\" | \"number\" | \"boolean\" | \"date\" | \"geo_location\" | \"select\";\n\nexport interface FormField {\n\tid: string;\n\tkey: string;\n\ttype: FormFieldType;\n\tvalue?: any;\n}\n\nexport interface FormEntry {\n\tform_id: string;\n\tfields: FormField[];\n}\n\nexport type BlockType =\n\t| \"text\"\n\t| \"localized_text\"\n\t| \"number\"\n\t| \"boolean\"\n\t| \"list\"\n\t| \"map\"\n\t| \"relationship_entry\"\n\t| \"relationship_media\"\n\t| \"markdown\"\n\t| \"geo_location\";\n\nexport interface GeoLocationBlockProperties {}\n\n\nexport type GeoLocationValue = GeoLocation;\n\nexport interface GeoLocationBlock extends Block {\n\ttype: \"geo_location\";\n\tproperties: GeoLocationBlockProperties;\n\tvalue: GeoLocation | null;\n}\n\nexport type Access = 'public' | 'private';\n\nexport interface MediaResolution {\n\tid: string;\n\tsize: string;\n\turl: string;\n}\n\nexport interface Media {\n\tid: string;\n\tresolutions: { [key: string]: MediaResolution };\n\tmime_type: string;\n\ttitle?: string | null;\n\tdescription?: string | null;\n\talt?: string | null;\n\tstore_id: string;\n\tentity?: string;\n\tmetadata?: string | null;\n\tcreated_at: number;\n\tslug: Record<string, string>;\n}\n\nexport interface SubscriptionPlan {\n\tid: string;\n\tprovider_price_id?: string | null;\n\tprovider_product_id?: string | null;\n\tname: string;\n\ttier: number;\n\tamount: number;\n\tcurrency: string;\n\tinterval: string;\n\tinterval_count: number;\n\ttrial_period_days: number;\n}\n\nexport interface AccountToken {\n\tid: string;\n\tvalue?: string;\n\tname?: string | null;\n\tcreated_at: number;\n\texpires_at?: number | null;\n\ttype?: string;\n}\n\nexport interface StoreMembership {\n\tstore_id: string;\n\trole: import('./api').StoreRole;\n\tinvitation_token?: AccountToken | null;\n\tjoined_at?: number | null;\n}\n\nexport interface AccountLifecycle {\n\tlast_login_at?: number | null;\n\tonboarding_completed: boolean;\n}\n\nexport interface Account {\n\tid: string;\n\temail: string;\n\tmemberships: StoreMembership[];\n\tapi_tokens: AccountToken[];\n\tauth_tokens?: import('./api').AuthToken[];\n\tverification_codes?: unknown[];\n\tlifecycle?: AccountLifecycle;\n}\n\nexport interface AccountUpdateResponse {\n\tsuccess: boolean;\n\tnewly_created_tokens: AccountToken[];\n}\n\nexport interface ApiResponse<T> {\n\tsuccess: boolean;\n\tdata?: T;\n\terror?: string;\n\tcursor?: string;\n\ttotal?: number;\n}\n\nexport interface PaginatedResponse<T> {\n\titems: T[];\n\tcursor: string | null;\n\tdata?: T[];\n\tmeta?: {\n\t\ttotal: number;\n\t\tpage: number;\n\t\tper_page: number;\n\t};\n}\n\nexport type ServiceStatus = 'active' | 'draft' | 'archived';\nexport type ProviderStatus = 'active' | 'draft' | 'archived';\n\nexport type ProductStatus = 'active' | 'draft' | 'archived';\nexport type CustomerStatus = 'active' | 'archived';\nexport type AudienceStatus = 'active' | 'draft' | 'archived';\nexport type AgentChatStatus = 'active' | 'draft' | 'archived';\nexport type WorkflowStatus = 'active' | 'draft' | 'archived';\nexport type PromoCodeStatus = 'active' | 'draft' | 'archived';\nexport type NodeStatus = 'active' | 'draft' | 'archived';\nexport type EmailTemplateStatus = 'active' | 'draft' | 'archived';\nexport type FormStatus = 'active' | 'draft' | 'archived';\nexport type TaxonomyStatus = 'active' | 'draft' | 'archived';\n\nexport type OrderCancellationReason =\n\t| 'admin_rejected'\n\t| 'customer_cancelled'\n\t| 'payment_failed'\n\t| 'expired'\n\t| 'other';\n\nexport type OrderItemStatus =\n\t| { status: 'pending'; expires_at: number }\n\t| { status: 'confirmed' }\n\t| { status: 'cancelled'; reason: OrderCancellationReason };\n\nexport type OrderPaymentStatus =\n\t| { status: 'pending'; at: number }\n\t| { status: 'authorized'; at: number; amount: number }\n\t| { status: 'captured'; at: number; amount: number }\n\t| { status: 'failed'; at: number; reason?: string };\n\nexport interface TimeRange {\n\tfrom: number;\n\tto: number;\n}\n\nexport interface Node {\n\tid: string;\n\tkey: string;\n\tstore_id: string;\n\tparent_id?: string | null;\n\tblocks: Block[];\n\ttaxonomies: TaxonomyEntry[];\n\tstatus: NodeStatus;\n\tslug: Record<string, string>;\n\tchildren: Node[];\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface EmailTemplate {\n\tid: string;\n\tkey: string;\n\tstore_id: string;\n\tsubject: Record<string, string>;\n\tbody: string;\n\tfrom_name: string;\n\tfrom_email: string;\n\treply_to?: string;\n\tpreheader?: string;\n\tstatus: EmailTemplateStatus;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface Form {\n\tid: string;\n\tkey: string;\n\tstore_id: string;\n\tschema: FormSchema[];\n\tstatus: FormStatus;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface FormSubmission {\n\tid: string;\n\tform_id: string;\n\tstore_id: string;\n\tcustomer_id: string;\n\tfields: FormField[];\n\tcreated_at: number;\n}\n\nexport interface Taxonomy {\n\tid: string;\n\tkey: string;\n\tstore_id: string;\n\tparent_id?: string | null;\n\tschema?: TaxonomySchema[];\n\tstatus: TaxonomyStatus;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface ServiceDuration {\n\tduration: number;\n\tis_pause: boolean;\n}\n\nexport interface WorkingHour {\n\tfrom: number;\n\tto: number;\n}\n\nexport interface WorkingDay {\n\tday: string;\n\tworking_hours: WorkingHour[];\n}\n\nexport interface SpecificDate {\n\tdate: number;\n\tworking_hours: WorkingHour[];\n}\n\nexport interface ServiceProvider {\n\tid: string;\n\tservice_id: string;\n\tprovider_id: string;\n\tstore_id: string;\n\tworking_days: WorkingDay[];\n\tspecific_dates: SpecificDate[];\n\tprices: Price[];\n\tdurations: ServiceDuration[];\n\tslot_interval: number;\n\tforms: FormEntry[];\n\treminders: number[];\n\tmin_advance: number;\n\tmax_advance: number;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface Service {\n\tid: string;\n\tkey: string;\n\tslug: Record<string, string>;\n\tstore_id: string;\n\tblocks: Block[];\n\ttaxonomies: TaxonomyEntry[];\n\tfilters?: TaxonomyEntry[];\n\tcreated_at: number;\n\tupdated_at: number;\n\tstatus: ServiceStatus;\n}\n\n\nexport interface ProviderTimelinePoint {\n\ttimestamp: number;\n\tbooked: number;\n}\n\nexport interface Provider {\n\tid: string;\n\tkey: string;\n\tslug: Record<string, string>;\n\tstore_id: string;\n\tstatus: ProviderStatus;\n\tblocks: Block[];\n\ttaxonomies: TaxonomyEntry[];\n\tfilters?: TaxonomyEntry[];\n\ttimeline: ProviderTimelinePoint[];\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface WorkflowEdge {\n\tsource: string;\n\ttarget: string;\n\toutput: string;\n\tback_edge: boolean;\n}\n\nexport interface Workflow {\n\tid: string;\n\tkey: string;\n\tstore_id: string;\n\tsecret: string;\n\tstatus: WorkflowStatus;\n\tnodes: Record<string, WorkflowNode>;\n\tedges: WorkflowEdge[];\n\n\tschedule?: string;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport type WorkflowNode =\n\t| WorkflowTriggerNode\n\t| WorkflowHttpNode\n\t| WorkflowSwitchNode\n\t| WorkflowTransformNode\n\t| WorkflowLoopNode;\n\nexport interface WorkflowTriggerNode {\n\ttype: 'trigger';\n\tevent?: string;\n\tdelay_ms?: number;\n\tschema?: Block[];\n}\n\nexport interface WorkflowHttpNode {\n\ttype: 'http';\n\tmethod: WorkflowHttpMethod;\n\turl: string;\n\theaders?: Record<string, string>;\n\tbody?: any;\n\ttimeout_ms?: number;\n\tintegration_id?: string;\n\tintegration_provider_id?: string;\n\tdelay_ms?: number;\n\tretries?: number;\n\tretry_delay_ms?: number;\n}\n\nexport interface WorkflowSwitchRule {\n\tcondition: string;\n}\n\nexport interface WorkflowSwitchNode {\n\ttype: 'switch';\n\trules: WorkflowSwitchRule[];\n\tdelay_ms?: number;\n}\n\nexport interface WorkflowTransformNode {\n\ttype: 'transform';\n\tcode: string;\n\tdelay_ms?: number;\n}\n\nexport interface WorkflowLoopNode {\n\ttype: 'loop';\n\texpression: string;\n\tdelay_ms?: number;\n}\n\nexport type WorkflowHttpMethod = 'get' | 'post' | 'put' | 'patch' | 'delete';\n\nexport type ExecutionStatus = 'pending' | 'running' | 'completed' | 'failed' | 'cancelled';\n\nexport interface NodeResult {\n\toutput: any;\n\troute: string;\n\tstarted_at: number;\n\tcompleted_at: number;\n\tduration_ms: number;\n\terror?: string;\n}\n\nexport interface WorkflowExecution {\n\tid: string;\n\tworkflow_id: string;\n\tstore_id: string;\n\tstatus: ExecutionStatus;\n\tinput: Record<string, any>;\n\tresults: Record<string, NodeResult>;\n\terror?: string;\n\tscheduled_at: number;\n\tstarted_at: number;\n\tcompleted_at?: number;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport type AudienceType =\n\t| { type: 'standard' }\n\t| { type: 'confirmation'; confirm_template_id: string }\n\t| { type: 'paid'; prices: SubscriptionPrice[]; payment_integration_id?: string };\n\nexport interface Audience {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\tstatus: AudienceStatus;\n\ttype: AudienceType;\n}\n\nexport interface AudienceAccessResponse {\n\thas_access: boolean;\n\tsubscription?: AudienceSubscription;\n}\n\nexport interface AudienceSubscribeResponse {\n\tcheckout_url?: string;\n\tsubscription?: AudienceSubscription;\n}\n\nexport type EventAction =\n\t\n\t| { action: 'order_created' }\n\t| { action: 'order_updated' }\n\t| { action: 'order_confirmed' }\n\t| { action: 'order_payment_received'; data: { amount: number; currency: string } }\n\t| { action: 'order_payment_failed'; data: { reason?: string } }\n\t| { action: 'order_refunded'; data: { amount: number; currency: string; reason?: string } }\n\t| { action: 'order_cancelled'; data: { reason?: string } }\n\t\n\t| { action: 'order_shipment_created'; data: { shipment_id: string } }\n\t| { action: 'order_shipment_in_transit'; data: { shipment_id: string } }\n\t| { action: 'order_shipment_out_for_delivery'; data: { shipment_id: string } }\n\t| { action: 'order_shipment_delivered'; data: { shipment_id: string } }\n\t| { action: 'order_shipment_failed'; data: { shipment_id: string; reason?: string } }\n\t| { action: 'order_shipment_returned'; data: { shipment_id: string } }\n\t| { action: 'order_shipment_status_changed'; data: { shipment_id: string; from: string; to: string } }\n\t\n\t\t| { action: 'product_created' }\n\t| { action: 'product_updated' }\n\t| { action: 'product_deleted' }\n\t\n\t| { action: 'node_created' }\n\t| { action: 'node_updated' }\n\t| { action: 'node_deleted' }\n\t\n\t| { action: 'provider_created' }\n\t| { action: 'provider_updated' }\n\t| { action: 'provider_deleted' }\n\t\n\t| { action: 'service_created' }\n\t| { action: 'service_updated' }\n\t| { action: 'service_deleted' }\n\t\n\t| { action: 'account_created' }\n\t| { action: 'account_updated' }\n\t| { action: 'account_deleted' }\n\t\n\t| { action: 'media_created' }\n\t| { action: 'media_deleted' }\n\t\n\t| { action: 'store_created' }\n\t| { action: 'store_updated' }\n\t| { action: 'store_deleted' }\n\t\n\t| { action: 'audience_created' }\n\t| { action: 'audience_updated' }\n\t| { action: 'audience_deleted' };\n\nexport interface Event {\n\tid: string;\n\tentity: string;\n\tevent: EventAction;\n\tactor: string;\n\tcreated_at: number;\n}\n\n\nexport type ShippingStatus =\n\t| 'pending'\n\t| 'label_created'\n\t| 'in_transit'\n\t| 'out_for_delivery'\n\t| 'delivered'\n\t| 'failed'\n\t| 'returned';\n\n\nexport interface OrderShipping {\n\tcarrier: string;\n\tservice: string;\n\ttracking_number?: string | null;\n\ttracking_url?: string | null;\n\tlabel_url?: string | null;\n\tstatus: ShippingStatus;\n}\n\n\nexport interface ShipmentLine {\n\torder_item_id: string;\n\tquantity: number;\n}\n\n\nexport interface Shipment {\n\tid: string;\n\tlocation_id: string;\n\tlines: ShipmentLine[];\n\tcarrier?: string | null;\n\tservice?: string | null;\n\ttracking_number?: string | null;\n\ttracking_url?: string | null;\n\tlabel_url?: string | null;\n\tstatus: ShippingStatus;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\n\nexport interface ShippingRate {\n\tid: string;\n\tprovider: string;\n\tcarrier: string;\n\tservice: string;\n\tdisplay_name: string;\n\tamount: number;\n\tcurrency: string;\n\testimated_days?: number | null;\n}\n\n\nexport type ShippingAddress = Address;\n\n\nexport interface Parcel {\n\tlength: number;\n\twidth: number;\n\theight: number;\n\tweight: number;\n\tdistance_unit: 'in' | 'cm';\n\tmass_unit: 'oz' | 'lb' | 'g' | 'kg';\n}\n\n\nexport interface PurchaseLabelResult {\n\ttracking_number: string;\n\ttracking_url?: string | null;\n\tlabel_url: string;\n\tcarrier: string;\n\tservice: string;\n}\n\n\nexport interface ShipResult {\n\tshipment_id: string;\n\ttracking_number: string;\n\ttracking_url?: string | null;\n\tlabel_url: string;\n}\n\n\nexport interface CustomsItem {\n\tdescription: string;\n\tquantity: number;\n\tnet_weight: string;\n\tmass_unit: string;\n\tvalue_amount: string;\n\tvalue_currency: string;\n\torigin_country: string;\n\ttariff_number?: string | null;\n}\n\n\nexport interface CustomsDeclaration {\n\tcontents_type: string;\n\tcontents_explanation?: string | null;\n\tnon_delivery_option: string;\n\tcertify: boolean;\n\tcertify_signer: string;\n\titems: CustomsItem[];\n}\n\nexport interface Agent {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\tprompt: string;\n\tstatus: import('./api').AgentStatus;\n\tmodel_id: string;\n\tchannel_ids: string[];\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface AgentChat {\n\tid: string;\n\tstore_id: string;\n\tagent_id: string;\n\taccount_id: string;\n\tstatus: AgentChatStatus;\n\trating?: number;\n\trating_comment?: string;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface AgentChatMessage {\n\tid: string;\n\tstore_id: string;\n\tagent_id?: string;\n\tchat_id?: string;\n\tmessage: string;\n\tcreated_at: number;\n}\n\nexport interface PromoCode {\n\tid: string;\n\tstore_id: string;\n\tcode: string;\n\tdiscounts: import('./api').Discount[];\n\tconditions: import('./api').Condition[];\n\tstatus: PromoCodeStatus;\n\tuses: number;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n"]}
1
+ {"version":3,"sources":["../src/types/index.ts"],"names":["PaymentMethodType"],"mappings":";AAEO,IAAK,iBAAA,qBAAAA,kBAAAA,KAAL;AACN,EAAAA,mBAAA,MAAA,CAAA,GAAO,MAAA;AACP,EAAAA,mBAAA,YAAA,CAAA,GAAa,aAAA;AAFF,EAAA,OAAAA,kBAAAA;AAAA,CAAA,EAAA,iBAAA,IAAA,EAAA","file":"types.js","sourcesContent":["export * from './api';\n\nexport enum PaymentMethodType {\n\tCash = \"cash\",\n\tCreditCard = \"credit_card\",\n}\n\nexport interface PaymentTaxLine {\n\trate_bps: number;\n\tamount: number;\n\tlabel?: string;\n\tscope?: string;\n}\n\nexport interface OrderPaymentTax {\n\tamount: number;\n\tmode_snapshot?: string;\n\trate_bps: number;\n\tlines: OrderPaymentTaxLine[];\n}\n\nexport interface OrderPaymentTaxLine {\n\trate_bps: number;\n\tamount: number;\n\tlabel?: string;\n\tscope?: string;\n}\n\nexport interface OrderPaymentPromoCode {\n\tid: string;\n\tcode: string;\n\ttype: string;\n\tvalue: number;\n}\n\n\nexport type OrderPaymentProvider = {\n\ttype: 'stripe';\n\tcustomer_id: string;\n\tpayment_intent_id?: string;\n};\n\nexport interface OrderPaymentRefund {\n\tid: string;\n\ttotal: number;\n\tprovider_refund_id?: string;\n\tstatus: string;\n\tcreated_at: number;\n}\n\nexport interface OrderPayment {\n\tcurrency: string;\n\tmarket: string;\n\tsubtotal: number;\n\tshipping: number;\n\tdiscount: number;\n\ttotal: number;\n\tpaid: number;\n\ttax?: OrderPaymentTax;\n\tpromo_code?: OrderPaymentPromoCode;\n\tprovider?: OrderPaymentProvider;\n\trefunds: OrderPaymentRefund[];\n\tzone_id?: string;\n\tpayment_method_id?: string;\n\tshipping_method_id?: string;\n\tmethod_type: PaymentMethodType;\n}\n\nexport interface PromoCodeValidation {\n\tpromo_code_id: string;\n\tcode: string;\n\tdiscounts: import('./api').Discount[];\n\tconditions: import('./api').Condition[];\n}\n\nexport interface OrderQuote {\n\tid?: string;\n\texpires_at?: number;\n\tmarket: string;\n\tzone: Zone | null;\n\titems: QuoteLine[];\n\tsubtotal: number;\n\tshipping: number;\n\tdiscount: number;\n\ttax: number;\n\ttotal: number;\n\tshipping_method: ShippingMethod | null;\n\tpayment_method: PaymentMethod | null;\n\tpayment_methods: PaymentMethod[];\n\tpromo_code: PromoCodeValidation | null;\n\tpayment: OrderPayment;\n\tcharge_amount: number;\n}\n\n\nexport interface Price {\n\tcurrency: string;\n\tmarket: string;\n\tamount: number;\n\tcompare_at?: number;\n\taudience_id?: string;\n}\n\n\nexport type IntervalPeriod = 'month' | 'year';\n\n\nexport interface SubscriptionInterval {\n\tperiod: IntervalPeriod;\n\tcount: number;\n}\n\n\nexport interface PriceProvider {\n\ttype: string;\n\tid: string;\n}\n\n\nexport interface SubscriptionPrice {\n\tcurrency: string;\n\tamount: number;\n\tcompare_at?: number;\n\tinterval?: SubscriptionInterval;\n\tproviders: PriceProvider[];\n}\n\n\nexport interface Address {\n\tname?: string | null;\n\tcompany?: string | null;\n\tstreet1?: string | null;\n\tstreet2?: string | null;\n\tcity?: string | null;\n\tstate?: string | null;\n\tpostal_code?: string | null;\n\tcountry?: string | null;\n\tphone?: string | null;\n\temail?: string | null;\n}\n\n\nexport interface GeoLocation {\n\tcoordinates?: { lat: number; lon: number } | null;\n\tlabel?: string | null;\n}\n\n\nexport interface ZoneLocation {\n\tcountry?: string | null;\n\tstate?: string | null;\n\tcity?: string | null;\n\tpostal_code?: string | null;\n}\n\nexport interface EshopCartItem {\n\tid: string;\n\tproduct_id: string;\n\tvariant_id: string;\n\tproduct_name: string;\n\tproduct_slug: string;\n\tvariant_attributes: Record<string, any>;\n\tprice: Price;\n\tquantity: number;\n\tadded_at: number;\n\tmax_stock?: number;\n}\n\nexport type CartStatus = 'active' | 'abandoned' | 'converted' | 'expired';\nexport type CartOrigin = 'storefront' | 'admin';\n\nexport interface Cart {\n\tid: string;\n\tstore_id: string;\n\tcustomer_id: string;\n\ttoken: string;\n\tstatus: CartStatus;\n\torigin: CartOrigin;\n\tcreated_by_account_id?: string | null;\n\tmarket: string;\n\titems: import('./api').OrderCheckoutItemInput[];\n\tshipping_address?: Address | null;\n\tbilling_address?: Address | null;\n\tforms: FormEntry[];\n\tpromo_code?: string | null;\n\tpayment_method_id?: string | null;\n\tshipping_method_id?: string | null;\n\tquote_snapshot?: OrderQuote | null;\n\tconverted_order_id?: string | null;\n\titem_count: number;\n\tlast_activity_at: number;\n\tabandoned_at?: number | null;\n\trecovery_sent_at?: number | null;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport type IntegrationProvider =\n\t| { type: 'stripe'; secret_key?: string; publishable_key: string; webhook_secret?: string; currency: string }\n\t| { type: 'shippo'; api_token?: string }\n\t| { type: 'google'; client_id?: string; client_secret?: string; access_token?: string; refresh_token?: string;\n\t\ttoken_expires_at?: number; scopes: string[]; account_email?: string | null; connected_at: number }\n\t| { type: 'telegram_bot'; bot_token?: string }\n\t| { type: 'deep_seek'; api_key?: string; model?: string }\n\n\t| { type: 'open_ai'; api_key?: string; model?: string }\n\t| { type: 'slack'; api_key?: string }\n\t| { type: 'discord'; api_key?: string }\n\t| { type: 'whats_app'; api_key?: string }\n\t| { type: 'resend'; api_key?: string }\n\t| { type: 'send_grid'; api_key?: string }\n\t| { type: 'airtable'; api_key?: string }\n\t| { type: 'linear'; api_key?: string }\n\t| { type: 'git_hub'; api_key?: string }\n\t| { type: 'git_lab'; api_key?: string }\n\t| { type: 'dropbox'; api_key?: string }\n\t| { type: 'hub_spot'; api_key?: string }\n\t| { type: 'monday'; api_key?: string }\n\t| { type: 'click_up'; api_key?: string }\n\t| { type: 'pipedrive'; api_key?: string }\n\t| { type: 'calendly'; api_key?: string }\n\t| { type: 'typeform'; api_key?: string }\n\t| { type: 'webflow'; api_key?: string }\n\t| { type: 'trello'; api_key?: string }\n\t| { type: 'replicate'; api_key?: string }\n\t| { type: 'asana'; api_key?: string }\n\t| { type: 'brevo'; api_key?: string }\n\t| { type: 'intercom'; api_key?: string }\n\t| { type: 'notion'; api_key?: string }\n\t| { type: 'eleven_labs'; api_key?: string }\n\t| { type: 'active_campaign'; api_key?: string; account_url: string }\n\t| { type: 'shopify'; api_key?: string; store_domain: string }\n\t| { type: 'supabase'; api_key?: string; project_url: string }\n\t| { type: 'mailchimp'; api_key?: string }\n\n\t| { type: 'twilio'; account_sid?: string; auth_token?: string }\n\t| { type: 'jira'; email?: string; api_token?: string; domain: string }\n\t| { type: 'woo_commerce'; consumer_key?: string; consumer_secret?: string; store_url: string }\n\t| { type: 'freshdesk'; api_key?: string; domain: string }\n\t| { type: 'zendesk'; api_token?: string; email?: string; subdomain: string }\n\n\t| { type: 'salesforce'; access_token?: string; instance_url: string }\n\t| { type: 'zoom'; api_key?: string }\n\t| { type: 'microsoft_teams'; api_key?: string }\n\t| { type: 'firebase'; api_key?: string }\n\t| { type: 'arky'; api_key?: string }\n\n\t| { type: 'vercel_deploy_hook'; url?: string }\n\t| { type: 'netlify_deploy_hook'; url?: string }\n\t| { type: 'cloudflare_deploy_hook'; url?: string }\n\t| { type: 'custom_deploy_hook'; url?: string };\n\n\nexport interface Integration {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\tprovider: IntegrationProvider;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface ShippingWeightTier {\n\tup_to_grams: number;\n\tamount: number;\n}\n\nexport interface PaymentMethod {\n\tid: string;\n\tintegration_id?: string;\n}\n\nexport interface ShippingMethod {\n\tid: string;\n\ttaxable: boolean;\n\teta_text: string;\n\tlocation_id?: string;\n\tintegration_id?: string;\n\tamount: number;\n\tfree_above?: number;\n\tweight_tiers?: ShippingWeightTier[];\n}\n\nexport interface Location {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\taddress: Address;\n\tis_pickup_location: boolean;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface InventoryLevel {\n\tlocation_id: string;\n\tavailable: number;\n\treserved: number;\n}\n\nexport interface ProductInventory {\n\tid: string;\n\tstore_id: string;\n\tproduct_id: string;\n\tvariant_id: string;\n\tlocation_id: string;\n\tavailable: number;\n\treserved: number;\n\tupdated_at: number;\n}\n\nexport interface ProductVariant {\n\tid: string;\n\tsku?: string;\n\tprices: Price[];\n\tinventory: ProductInventory[];\n\tattributes: Block[];\n\tweight?: number;\n}\n\nexport interface Product {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\tslug: Record<string, string>;\n\tblocks: Block[];\n\ttaxonomies: TaxonomyEntry[];\n\tfilters?: TaxonomyEntry[];\n\tvariants: ProductVariant[];\n\tstatus: ProductStatus;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface GalleryItem {\n\tid: string;\n\turl: string;\n\talt?: string;\n\tcaption?: string;\n}\n\nexport interface ProductLineItemSnapshot {\n\tproduct_key: string;\n\tvariant_sku?: string;\n\tvariant_attributes: Block[];\n\tprice: Price;\n}\n\nexport interface ServiceLineItemSnapshot {\n\tservice_key: string;\n\tprovider_key: string;\n\tprice: Price;\n}\n\nexport type OrderItemSnapshot = ProductLineItemSnapshot | ServiceLineItemSnapshot;\n\nexport type ProductQuoteLineAvailability =\n\t| { ok: true; available?: number }\n\t| { ok: false; reason: string };\n\nexport type ServiceQuoteLineAvailability =\n\t| { ok: true; spots: number }\n\t| { ok: false; reason: string };\n\nexport interface ProductQuoteLine {\n\ttype: 'product';\n\tline_id: string;\n\tproduct_id: string;\n\tvariant_id: string;\n\tquantity: number;\n\tunit_price: number;\n\tsubtotal: number;\n\tdiscount: number;\n\ttax: number;\n\ttotal: number;\n\tsnapshot: ProductLineItemSnapshot;\n\tavailability: ProductQuoteLineAvailability;\n}\n\nexport interface ServiceQuoteLine {\n\ttype: 'service';\n\tline_id: string;\n\tservice_id: string;\n\tprovider_id: string;\n\tfrom: number;\n\tto: number;\n\tquantity: 1;\n\tunit_price: number;\n\tsubtotal: number;\n\tdiscount: number;\n\ttax: number;\n\ttotal: number;\n\tsnapshot: ServiceLineItemSnapshot;\n\tavailability: ServiceQuoteLineAvailability;\n}\n\nexport type QuoteLine = ProductQuoteLine | ServiceQuoteLine;\n\nexport interface ProductLineItem {\n\ttype: 'product';\n\tid: string;\n\tproduct_id: string;\n\tvariant_id: string;\n\tquantity: number;\n\tlocation_id?: string;\n\tsnapshot: ProductLineItemSnapshot;\n\tstatus: OrderItemStatus;\n}\n\nexport interface ServiceLineItem {\n\ttype: 'service';\n\tid: string;\n\tservice_id: string;\n\tprovider_id: string;\n\tfrom: number;\n\tto: number;\n\tforms: FormEntry[];\n\tsnapshot: ServiceLineItemSnapshot;\n\tstatus: OrderItemStatus;\n}\n\nexport type OrderItem = ProductLineItem | ServiceLineItem;\n\nexport interface HistoryEntry {\n\taction: string;\n\treason?: string;\n\ttimestamp: number;\n}\n\nexport interface Order {\n\tid: string;\n\tnumber: string;\n\tstore_id: string;\n\tsource_cart_id: string;\n\tcustomer_id: string;\n\tstatus: OrderStatus;\n\tverified: boolean;\n\titems: OrderItem[];\n\tpayment: OrderPayment;\n\tshipping_address?: Address;\n\tbilling_address?: Address;\n\tforms: FormEntry[];\n\tshipments: Shipment[];\n\thistory: HistoryEntry[];\n\taudience_id?: string;\n\tfired_reminders: number[];\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface OrderCheckoutResult {\n\torder_id: string;\n\tnumber: string;\n\tclient_secret: string | null;\n\tpayment: OrderPayment;\n}\n\nexport interface Zone {\n\tid: string;\n\tstore_id: string;\n\tmarket_id: string;\n\tcountries: string[];\n\tstates: string[];\n\tpostal_codes: string[];\n\ttax_bps: number;\n\tshipping_methods: ShippingMethod[];\n}\n\nexport interface Market {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\tcurrency: string;\n\ttax_mode: \"exclusive\" | \"inclusive\";\n\tpayment_methods: PaymentMethod[];\n\tzones: Zone[];\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface Language {\n\tid: string;\n}\n\nexport interface StoreEmails {\n\tbilling: string;\n\tsupport: string;\n}\n\nexport type WebhookEventSubscription =\n\t| { event: 'node.created'; parent_id?: string }\n\t| { event: 'node.updated'; key?: string }\n\t| { event: 'node.deleted'; key?: string }\n\t| { event: 'order.created' }\n\t| { event: 'order.updated' }\n\t| { event: 'order.confirmed' }\n\t| { event: 'order.payment_received' }\n\t| { event: 'order.payment_failed' }\n\t| { event: 'order.refunded' }\n\t| { event: 'order.cancelled' }\n\t| { event: 'order.reminder' }\n\t| { event: 'order.shipment_created' }\n\t| { event: 'order.shipment_in_transit' }\n\t| { event: 'order.shipment_out_for_delivery' }\n\t| { event: 'order.shipment_delivered' }\n\t| { event: 'order.shipment_failed' }\n\t| { event: 'order.shipment_returned' }\n\t| { event: 'order.shipment_status_changed' }\n\t| { event: 'cart.created' }\n\t| { event: 'cart.updated' }\n\t| { event: 'cart.abandoned' }\n\t| { event: 'cart.converted' }\n\t| { event: 'product.created' }\n\t| { event: 'product.updated' }\n\t| { event: 'product.deleted' }\n\t| { event: 'provider.created' }\n\t| { event: 'provider.updated' }\n\t| { event: 'provider.deleted' }\n\t| { event: 'service.created' }\n\t| { event: 'service.updated' }\n\t| { event: 'service.deleted' }\n\t| { event: 'media.created' }\n\t| { event: 'media.deleted' }\n\t| { event: 'store.created' }\n\t| { event: 'store.updated' }\n\t| { event: 'store.deleted' }\n\t| { event: 'audience.created' }\n\t| { event: 'audience.updated' }\n\t| { event: 'audience.deleted' };\n\nexport interface Webhook {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\turl: string;\n\tevents: WebhookEventSubscription[];\n\theaders: Record<string, string>;\n\tsecret: string;\n\tenabled: boolean;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\n\nexport type StoreSubscriptionStatus =\n\t| 'pending'\n\t| 'active'\n\t| 'cancellation_scheduled'\n\t| 'cancelled'\n\t| 'expired';\n\nexport type StoreSubscriptionSource = 'signup' | 'admin' | 'import';\n\nexport type StoreSubscriptionProvider = {\n\ttype: 'stripe';\n\tcustomer_id: string;\n\tsubscription_id?: string;\n\tprice_id?: string;\n};\n\nexport interface StoreSubscriptionPayment {\n\tcurrency: string;\n\tmarket: string;\n\tprovider?: StoreSubscriptionProvider;\n}\n\nexport interface StoreSubscription {\n\tid: string;\n\ttarget: string;\n\tplan_id: string;\n\tpending_plan_id: string | null;\n\tpayment: StoreSubscriptionPayment;\n\tstatus: StoreSubscriptionStatus;\n\tstart_date: number;\n\tend_date: number;\n\ttoken: string;\n\tsource: StoreSubscriptionSource;\n}\n\nexport type AudienceSubscriptionStatus =\n\t| 'pending'\n\t| 'active'\n\t| 'cancellation_scheduled'\n\t| 'cancelled'\n\t| 'expired';\n\nexport type AudienceSubscriptionSource = 'signup' | 'admin' | 'import';\n\nexport type AudienceSubscriptionProvider = {\n\ttype: 'stripe';\n\tcustomer_id: string;\n\tsubscription_id?: string;\n\tprice_id?: string;\n};\n\nexport interface AudienceSubscriptionPayment {\n\tcurrency: string;\n\tmarket: string;\n\tprovider?: AudienceSubscriptionProvider;\n}\n\nexport interface AudienceSubscription {\n\tid: string;\n\tstore_id: string;\n\tcustomer_id: string;\n\taudience_id: string;\n\tplan_id: string;\n\tpending_plan_id: string | null;\n\tpayment: AudienceSubscriptionPayment;\n\tstatus: AudienceSubscriptionStatus;\n\tstart_date: number;\n\tend_date: number;\n\ttoken: string;\n\tsource: AudienceSubscriptionSource;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface Store {\n\tid: string;\n\tkey: string;\n\ttimezone: string;\n\tlanguages?: Language[];\n\temails?: StoreEmails;\n\tsubscription?: StoreSubscription;\n\tcounts?: Record<string, number>;\n}\n\nexport interface EshopStoreState {\n\tstore_id: string;\n\tselected_shipping_method_id: string | null;\n\tuser_token: string | null;\n\tprocessing_checkout: boolean;\n\tloading: boolean;\n\terror: string | null;\n}\n\nexport interface Block {\n\tid: string;\n\tkey: string;\n\ttype: string;\n\tproperties?: any;\n\tvalue?: any;\n}\n\nexport type TaxonomySchemaType = \"text\" | \"number\" | \"boolean\" | \"geo_location\";\n\nexport interface TaxonomySchema {\n\tid: string;\n\tkey: string;\n\ttype: TaxonomySchemaType;\n\tvalue?: string[];\n\tmin?: number | null;\n\tmax?: number | null;\n}\n\nexport interface TaxonomyField {\n\tid: string;\n\tkey: string;\n\ttype: TaxonomySchemaType;\n\tvalue: any;\n}\n\nexport interface TaxonomyFieldQuery {\n\tkey: string;\n\ttype: TaxonomySchemaType;\n\toperation?: string;\n\tvalue: any;\n\tcenter?: { lat: number; lon: number };\n\tradius?: number;\n}\n\nexport interface TaxonomyEntry {\n\ttaxonomy_id: string;\n\tfields: TaxonomyField[];\n}\n\nexport interface TaxonomyQuery {\n\ttaxonomy_id: string;\n\tquery: TaxonomyFieldQuery[];\n}\n\nexport type FormSchemaType = \"text\" | \"number\" | \"boolean\" | \"date\" | \"geo_location\" | \"select\";\n\nexport interface FormSchema {\n\tid: string;\n\tkey: string;\n\ttype: FormSchemaType;\n\trequired?: boolean;\n\tmin?: number | null;\n\tmax?: number | null;\n\toptions?: string[];\n}\n\nexport type FormFieldType = \"text\" | \"number\" | \"boolean\" | \"date\" | \"geo_location\" | \"select\";\n\nexport interface FormField {\n\tid: string;\n\tkey: string;\n\ttype: FormFieldType;\n\tvalue?: any;\n}\n\nexport interface FormEntry {\n\tform_id: string;\n\tfields: FormField[];\n}\n\nexport type BlockType =\n\t| \"text\"\n\t| \"localized_text\"\n\t| \"number\"\n\t| \"boolean\"\n\t| \"list\"\n\t| \"map\"\n\t| \"relationship_entry\"\n\t| \"relationship_media\"\n\t| \"markdown\"\n\t| \"geo_location\";\n\nexport interface GeoLocationBlockProperties {}\n\n\nexport type GeoLocationValue = GeoLocation;\n\nexport interface GeoLocationBlock extends Block {\n\ttype: \"geo_location\";\n\tproperties: GeoLocationBlockProperties;\n\tvalue: GeoLocation | null;\n}\n\nexport type Access = 'public' | 'private';\n\nexport interface MediaResolution {\n\tid: string;\n\tsize: string;\n\turl: string;\n}\n\nexport interface Media {\n\tid: string;\n\tresolutions: { [key: string]: MediaResolution };\n\tmime_type: string;\n\ttitle?: string | null;\n\tdescription?: string | null;\n\talt?: string | null;\n\tstore_id: string;\n\tentity?: string;\n\tmetadata?: string | null;\n\tcreated_at: number;\n\tslug: Record<string, string>;\n}\n\nexport interface SubscriptionPlan {\n\tid: string;\n\tprovider_price_id?: string | null;\n\tprovider_product_id?: string | null;\n\tname: string;\n\ttier: number;\n\tamount: number;\n\tcurrency: string;\n\tinterval: string;\n\tinterval_count: number;\n\ttrial_period_days: number;\n}\n\nexport interface AccountToken {\n\tid: string;\n\tvalue?: string;\n\tname?: string | null;\n\tcreated_at: number;\n\texpires_at?: number | null;\n\ttype?: string;\n}\n\nexport interface StoreMembership {\n\tstore_id: string;\n\trole: import('./api').StoreRole;\n\tinvitation_token?: AccountToken | null;\n\tjoined_at?: number | null;\n}\n\nexport interface AccountLifecycle {\n\tlast_login_at?: number | null;\n\tonboarding_completed: boolean;\n}\n\nexport interface Account {\n\tid: string;\n\temail: string;\n\tmemberships: StoreMembership[];\n\tapi_tokens: AccountToken[];\n\tauth_tokens?: import('./api').AuthToken[];\n\tverification_codes?: unknown[];\n\tlifecycle?: AccountLifecycle;\n}\n\nexport interface AccountUpdateResponse {\n\tsuccess: boolean;\n\tnewly_created_tokens: AccountToken[];\n}\n\nexport interface ApiResponse<T> {\n\tsuccess: boolean;\n\tdata?: T;\n\terror?: string;\n\tcursor?: string;\n\ttotal?: number;\n}\n\nexport interface PaginatedResponse<T> {\n\titems: T[];\n\tcursor: string | null;\n\tdata?: T[];\n\tmeta?: {\n\t\ttotal: number;\n\t\tpage: number;\n\t\tper_page: number;\n\t};\n}\n\nexport type ServiceStatus = 'active' | 'draft' | 'archived';\nexport type ProviderStatus = 'active' | 'draft' | 'archived';\n\nexport type ProductStatus = 'active' | 'draft' | 'archived';\nexport type CustomerStatus = 'active' | 'archived';\nexport type AudienceStatus = 'active' | 'draft' | 'archived';\nexport type AgentChatStatus = 'active' | 'draft' | 'archived';\nexport type WorkflowStatus = 'active' | 'draft' | 'archived';\nexport type PromoCodeStatus = 'active' | 'draft' | 'archived';\nexport type NodeStatus = 'active' | 'draft' | 'archived';\nexport type EmailTemplateStatus = 'active' | 'draft' | 'archived';\nexport type FormStatus = 'active' | 'draft' | 'archived';\nexport type TaxonomyStatus = 'active' | 'draft' | 'archived';\n\nexport type OrderCancellationReason =\n\t| 'admin_rejected'\n\t| 'customer_cancelled'\n\t| 'payment_failed'\n\t| 'expired'\n\t| 'other';\n\nexport type OrderItemStatus =\n\t| { status: 'pending'; expires_at: number }\n\t| { status: 'confirmed' }\n\t| { status: 'cancelled'; reason: OrderCancellationReason };\n\nexport type OrderStatus =\n\t| 'pending'\n\t| 'partially_confirmed'\n\t| 'confirmed'\n\t| 'partially_cancelled'\n\t| 'cancelled';\n\nexport type OrderPaymentStatus =\n\t| { status: 'pending'; at: number }\n\t| { status: 'authorized'; at: number; amount: number }\n\t| { status: 'captured'; at: number; amount: number }\n\t| { status: 'failed'; at: number; reason?: string };\n\nexport interface TimeRange {\n\tfrom: number;\n\tto: number;\n}\n\nexport interface Node {\n\tid: string;\n\tkey: string;\n\tstore_id: string;\n\tparent_id?: string | null;\n\tblocks: Block[];\n\ttaxonomies: TaxonomyEntry[];\n\tstatus: NodeStatus;\n\tslug: Record<string, string>;\n\tchildren: Node[];\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface EmailTemplate {\n\tid: string;\n\tkey: string;\n\tstore_id: string;\n\tsubject: Record<string, string>;\n\tbody: string;\n\tfrom_name: string;\n\tfrom_email: string;\n\treply_to?: string;\n\tpreheader?: string;\n\tstatus: EmailTemplateStatus;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface Form {\n\tid: string;\n\tkey: string;\n\tstore_id: string;\n\tschema: FormSchema[];\n\tstatus: FormStatus;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface FormSubmission {\n\tid: string;\n\tform_id: string;\n\tstore_id: string;\n\tcustomer_id: string;\n\tfields: FormField[];\n\tcreated_at: number;\n}\n\nexport interface Taxonomy {\n\tid: string;\n\tkey: string;\n\tstore_id: string;\n\tparent_id?: string | null;\n\tschema?: TaxonomySchema[];\n\tstatus: TaxonomyStatus;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface ServiceDuration {\n\tduration: number;\n\tis_pause: boolean;\n}\n\nexport interface WorkingHour {\n\tfrom: number;\n\tto: number;\n}\n\nexport interface WorkingDay {\n\tday: string;\n\tworking_hours: WorkingHour[];\n}\n\nexport interface SpecificDate {\n\tdate: number;\n\tworking_hours: WorkingHour[];\n}\n\nexport interface ServiceProvider {\n\tid: string;\n\tservice_id: string;\n\tprovider_id: string;\n\tstore_id: string;\n\tworking_days: WorkingDay[];\n\tspecific_dates: SpecificDate[];\n\tprices: Price[];\n\tdurations: ServiceDuration[];\n\tslot_interval: number;\n\tforms: FormEntry[];\n\treminders: number[];\n\tmin_advance: number;\n\tmax_advance: number;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface Service {\n\tid: string;\n\tkey: string;\n\tslug: Record<string, string>;\n\tstore_id: string;\n\tblocks: Block[];\n\ttaxonomies: TaxonomyEntry[];\n\tfilters?: TaxonomyEntry[];\n\tcreated_at: number;\n\tupdated_at: number;\n\tstatus: ServiceStatus;\n}\n\n\nexport interface ProviderTimelinePoint {\n\ttimestamp: number;\n\tbooked: number;\n}\n\nexport interface Provider {\n\tid: string;\n\tkey: string;\n\tslug: Record<string, string>;\n\tstore_id: string;\n\tstatus: ProviderStatus;\n\tblocks: Block[];\n\ttaxonomies: TaxonomyEntry[];\n\tfilters?: TaxonomyEntry[];\n\ttimeline: ProviderTimelinePoint[];\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface WorkflowEdge {\n\tsource: string;\n\ttarget: string;\n\toutput: string;\n\tback_edge: boolean;\n}\n\nexport interface Workflow {\n\tid: string;\n\tkey: string;\n\tstore_id: string;\n\tsecret: string;\n\tstatus: WorkflowStatus;\n\tnodes: Record<string, WorkflowNode>;\n\tedges: WorkflowEdge[];\n\n\tschedule?: string;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport type WorkflowNode =\n\t| WorkflowTriggerNode\n\t| WorkflowHttpNode\n\t| WorkflowSwitchNode\n\t| WorkflowTransformNode\n\t| WorkflowLoopNode;\n\nexport interface WorkflowTriggerNode {\n\ttype: 'trigger';\n\tevent?: string;\n\tdelay_ms?: number;\n\tschema?: Block[];\n}\n\nexport interface WorkflowHttpNode {\n\ttype: 'http';\n\tmethod: WorkflowHttpMethod;\n\turl: string;\n\theaders?: Record<string, string>;\n\tbody?: any;\n\ttimeout_ms?: number;\n\tintegration_id?: string;\n\tintegration_provider_id?: string;\n\tdelay_ms?: number;\n\tretries?: number;\n\tretry_delay_ms?: number;\n}\n\nexport interface WorkflowSwitchRule {\n\tcondition: string;\n}\n\nexport interface WorkflowSwitchNode {\n\ttype: 'switch';\n\trules: WorkflowSwitchRule[];\n\tdelay_ms?: number;\n}\n\nexport interface WorkflowTransformNode {\n\ttype: 'transform';\n\tcode: string;\n\tdelay_ms?: number;\n}\n\nexport interface WorkflowLoopNode {\n\ttype: 'loop';\n\texpression: string;\n\tdelay_ms?: number;\n}\n\nexport type WorkflowHttpMethod = 'get' | 'post' | 'put' | 'patch' | 'delete';\n\nexport type ExecutionStatus = 'pending' | 'running' | 'completed' | 'failed' | 'cancelled';\n\nexport interface NodeResult {\n\toutput: any;\n\troute: string;\n\tstarted_at: number;\n\tcompleted_at: number;\n\tduration_ms: number;\n\terror?: string;\n}\n\nexport interface WorkflowExecution {\n\tid: string;\n\tworkflow_id: string;\n\tstore_id: string;\n\tstatus: ExecutionStatus;\n\tinput: Record<string, any>;\n\tresults: Record<string, NodeResult>;\n\terror?: string;\n\tscheduled_at: number;\n\tstarted_at: number;\n\tcompleted_at?: number;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport type AudienceType =\n\t| { type: 'standard' }\n\t| { type: 'confirmation'; confirm_template_id: string }\n\t| { type: 'paid'; prices: SubscriptionPrice[]; payment_integration_id?: string };\n\nexport interface Audience {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\tstatus: AudienceStatus;\n\ttype: AudienceType;\n}\n\nexport interface AudienceAccessResponse {\n\thas_access: boolean;\n\tsubscription?: AudienceSubscription;\n}\n\nexport interface AudienceSubscribeResponse {\n\tcheckout_url?: string;\n\tsubscription?: AudienceSubscription;\n}\n\nexport type EventAction =\n\t\n\t| { action: 'order_created' }\n\t| { action: 'order_updated' }\n\t| { action: 'order_confirmed' }\n\t| { action: 'order_payment_received'; data: { amount: number; currency: string } }\n\t| { action: 'order_payment_failed'; data: { reason?: string } }\n\t| { action: 'order_refunded'; data: { amount: number; currency: string; reason?: string } }\n\t| { action: 'order_cancelled'; data: { reason?: string } }\n\t\n\t| { action: 'order_shipment_created'; data: { shipment_id: string } }\n\t| { action: 'order_shipment_in_transit'; data: { shipment_id: string } }\n\t| { action: 'order_shipment_out_for_delivery'; data: { shipment_id: string } }\n\t| { action: 'order_shipment_delivered'; data: { shipment_id: string } }\n\t| { action: 'order_shipment_failed'; data: { shipment_id: string; reason?: string } }\n\t| { action: 'order_shipment_returned'; data: { shipment_id: string } }\n\t| { action: 'order_shipment_status_changed'; data: { shipment_id: string; from: string; to: string } }\n\t\n\t\t| { action: 'product_created' }\n\t| { action: 'product_updated' }\n\t| { action: 'product_deleted' }\n\t\n\t| { action: 'node_created' }\n\t| { action: 'node_updated' }\n\t| { action: 'node_deleted' }\n\t\n\t| { action: 'provider_created' }\n\t| { action: 'provider_updated' }\n\t| { action: 'provider_deleted' }\n\t\n\t| { action: 'service_created' }\n\t| { action: 'service_updated' }\n\t| { action: 'service_deleted' }\n\t\n\t| { action: 'account_created' }\n\t| { action: 'account_updated' }\n\t| { action: 'account_deleted' }\n\t\n\t| { action: 'media_created' }\n\t| { action: 'media_deleted' }\n\t\n\t| { action: 'store_created' }\n\t| { action: 'store_updated' }\n\t| { action: 'store_deleted' }\n\t\n\t| { action: 'audience_created' }\n\t| { action: 'audience_updated' }\n\t| { action: 'audience_deleted' };\n\nexport interface Event {\n\tid: string;\n\tentity: string;\n\tevent: EventAction;\n\tactor: string;\n\tcreated_at: number;\n}\n\n\nexport type ShippingStatus =\n\t| 'pending'\n\t| 'label_created'\n\t| 'in_transit'\n\t| 'out_for_delivery'\n\t| 'delivered'\n\t| 'failed'\n\t| 'returned';\n\n\nexport interface OrderShipping {\n\tcarrier: string;\n\tservice: string;\n\ttracking_number?: string | null;\n\ttracking_url?: string | null;\n\tlabel_url?: string | null;\n\tstatus: ShippingStatus;\n}\n\n\nexport interface ShipmentLine {\n\torder_item_id: string;\n\tquantity: number;\n}\n\n\nexport interface Shipment {\n\tid: string;\n\tlocation_id: string;\n\tlines: ShipmentLine[];\n\tcarrier?: string | null;\n\tservice?: string | null;\n\ttracking_number?: string | null;\n\ttracking_url?: string | null;\n\tlabel_url?: string | null;\n\tstatus: ShippingStatus;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\n\nexport interface ShippingRate {\n\tid: string;\n\tprovider: string;\n\tcarrier: string;\n\tservice: string;\n\tdisplay_name: string;\n\tamount: number;\n\tcurrency: string;\n\testimated_days?: number | null;\n}\n\n\nexport type ShippingAddress = Address;\n\n\nexport interface Parcel {\n\tlength: number;\n\twidth: number;\n\theight: number;\n\tweight: number;\n\tdistance_unit: 'in' | 'cm';\n\tmass_unit: 'oz' | 'lb' | 'g' | 'kg';\n}\n\n\nexport interface PurchaseLabelResult {\n\ttracking_number: string;\n\ttracking_url?: string | null;\n\tlabel_url: string;\n\tcarrier: string;\n\tservice: string;\n}\n\n\nexport interface ShipResult {\n\tshipment_id: string;\n\ttracking_number: string;\n\ttracking_url?: string | null;\n\tlabel_url: string;\n}\n\n\nexport interface CustomsItem {\n\tdescription: string;\n\tquantity: number;\n\tnet_weight: string;\n\tmass_unit: string;\n\tvalue_amount: string;\n\tvalue_currency: string;\n\torigin_country: string;\n\ttariff_number?: string | null;\n}\n\n\nexport interface CustomsDeclaration {\n\tcontents_type: string;\n\tcontents_explanation?: string | null;\n\tnon_delivery_option: string;\n\tcertify: boolean;\n\tcertify_signer: string;\n\titems: CustomsItem[];\n}\n\nexport interface Agent {\n\tid: string;\n\tstore_id: string;\n\tkey: string;\n\tprompt: string;\n\tstatus: import('./api').AgentStatus;\n\tmodel_id: string;\n\tchannel_ids: string[];\n\ttools: string[];\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface AgentChat {\n\tid: string;\n\tstore_id: string;\n\tagent_id: string;\n\tcustomer_id: string;\n\tstatus: AgentChatStatus;\n\trating?: number;\n\trating_comment?: string;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n\nexport interface AgentChatMessage {\n\tid: string;\n\tstore_id: string;\n\tagent_id?: string;\n\tchat_id?: string;\n\tmessage: string;\n\tcreated_at: number;\n}\n\nexport interface PromoCode {\n\tid: string;\n\tstore_id: string;\n\tcode: string;\n\tdiscounts: import('./api').Discount[];\n\tconditions: import('./api').Condition[];\n\tstatus: PromoCodeStatus;\n\tuses: number;\n\tcreated_at: number;\n\tupdated_at: number;\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arky-sdk",
3
- "version": "0.7.134",
3
+ "version": "0.9.0",
4
4
  "description": "Official TypeScript SDK for Arky - All-in-one store platform",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",