arky-sdk 0.9.0 → 0.9.6

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.
package/dist/types.d.cts CHANGED
@@ -1,2666 +1 @@
1
- declare enum PaymentMethodType {
2
- Cash = "cash",
3
- CreditCard = "credit_card"
4
- }
5
- interface PaymentTaxLine {
6
- rate_bps: number;
7
- amount: number;
8
- label?: string;
9
- scope?: string;
10
- }
11
- interface OrderPaymentTax {
12
- amount: number;
13
- mode_snapshot?: string;
14
- rate_bps: number;
15
- lines: OrderPaymentTaxLine[];
16
- }
17
- interface OrderPaymentTaxLine {
18
- rate_bps: number;
19
- amount: number;
20
- label?: string;
21
- scope?: string;
22
- }
23
- interface OrderPaymentPromoCode {
24
- id: string;
25
- code: string;
26
- type: string;
27
- value: number;
28
- }
29
- type OrderPaymentProvider = {
30
- type: 'stripe';
31
- customer_id: string;
32
- payment_intent_id?: string;
33
- };
34
- interface OrderPaymentRefund {
35
- id: string;
36
- total: number;
37
- provider_refund_id?: string;
38
- status: string;
39
- created_at: number;
40
- }
41
- interface OrderPayment {
42
- currency: string;
43
- market: string;
44
- subtotal: number;
45
- shipping: number;
46
- discount: number;
47
- total: number;
48
- paid: number;
49
- tax?: OrderPaymentTax;
50
- promo_code?: OrderPaymentPromoCode;
51
- provider?: OrderPaymentProvider;
52
- refunds: OrderPaymentRefund[];
53
- zone_id?: string;
54
- payment_method_id?: string;
55
- shipping_method_id?: string;
56
- method_type: PaymentMethodType;
57
- }
58
- interface PromoCodeValidation {
59
- promo_code_id: string;
60
- code: string;
61
- discounts: Discount[];
62
- conditions: Condition[];
63
- }
64
- interface OrderQuote {
65
- id?: string;
66
- expires_at?: number;
67
- market: string;
68
- zone: Zone | null;
69
- items: QuoteLine[];
70
- subtotal: number;
71
- shipping: number;
72
- discount: number;
73
- tax: number;
74
- total: number;
75
- shipping_method: ShippingMethod | null;
76
- payment_method: PaymentMethod | null;
77
- payment_methods: PaymentMethod[];
78
- promo_code: PromoCodeValidation | null;
79
- payment: OrderPayment;
80
- charge_amount: number;
81
- }
82
- interface Price {
83
- currency: string;
84
- market: string;
85
- amount: number;
86
- compare_at?: number;
87
- audience_id?: string;
88
- }
89
- type IntervalPeriod = 'month' | 'year';
90
- interface SubscriptionInterval {
91
- period: IntervalPeriod;
92
- count: number;
93
- }
94
- interface PriceProvider {
95
- type: string;
96
- id: string;
97
- }
98
- interface SubscriptionPrice {
99
- currency: string;
100
- amount: number;
101
- compare_at?: number;
102
- interval?: SubscriptionInterval;
103
- providers: PriceProvider[];
104
- }
105
- interface Address {
106
- name?: string | null;
107
- company?: string | null;
108
- street1?: string | null;
109
- street2?: string | null;
110
- city?: string | null;
111
- state?: string | null;
112
- postal_code?: string | null;
113
- country?: string | null;
114
- phone?: string | null;
115
- email?: string | null;
116
- }
117
- interface GeoLocation {
118
- coordinates?: {
119
- lat: number;
120
- lon: number;
121
- } | null;
122
- label?: string | null;
123
- }
124
- interface ZoneLocation {
125
- country?: string | null;
126
- state?: string | null;
127
- city?: string | null;
128
- postal_code?: string | null;
129
- }
130
- interface EshopCartItem {
131
- id: string;
132
- product_id: string;
133
- variant_id: string;
134
- product_name: string;
135
- product_slug: string;
136
- variant_attributes: Record<string, any>;
137
- price: Price;
138
- quantity: number;
139
- added_at: number;
140
- max_stock?: number;
141
- }
142
- type CartStatus = 'active' | 'abandoned' | 'converted' | 'expired';
143
- type CartOrigin = 'storefront' | 'admin';
144
- interface Cart {
145
- id: string;
146
- store_id: string;
147
- customer_id: string;
148
- token: string;
149
- status: CartStatus;
150
- origin: CartOrigin;
151
- created_by_account_id?: string | null;
152
- market: string;
153
- items: OrderCheckoutItemInput[];
154
- shipping_address?: Address | null;
155
- billing_address?: Address | null;
156
- forms: FormEntry[];
157
- promo_code?: string | null;
158
- payment_method_id?: string | null;
159
- shipping_method_id?: string | null;
160
- quote_snapshot?: OrderQuote | null;
161
- converted_order_id?: string | null;
162
- item_count: number;
163
- last_activity_at: number;
164
- abandoned_at?: number | null;
165
- recovery_sent_at?: number | null;
166
- created_at: number;
167
- updated_at: number;
168
- }
169
- type IntegrationProvider = {
170
- type: 'stripe';
171
- secret_key?: string;
172
- publishable_key: string;
173
- webhook_secret?: string;
174
- currency: string;
175
- } | {
176
- type: 'shippo';
177
- api_token?: string;
178
- } | {
179
- type: 'google';
180
- client_id?: string;
181
- client_secret?: string;
182
- access_token?: string;
183
- refresh_token?: string;
184
- token_expires_at?: number;
185
- scopes: string[];
186
- account_email?: string | null;
187
- connected_at: number;
188
- } | {
189
- type: 'telegram_bot';
190
- bot_token?: string;
191
- } | {
192
- type: 'deep_seek';
193
- api_key?: string;
194
- model?: string;
195
- } | {
196
- type: 'open_ai';
197
- api_key?: string;
198
- model?: string;
199
- } | {
200
- type: 'slack';
201
- api_key?: string;
202
- } | {
203
- type: 'discord';
204
- api_key?: string;
205
- } | {
206
- type: 'whats_app';
207
- api_key?: string;
208
- } | {
209
- type: 'resend';
210
- api_key?: string;
211
- } | {
212
- type: 'send_grid';
213
- api_key?: string;
214
- } | {
215
- type: 'airtable';
216
- api_key?: string;
217
- } | {
218
- type: 'linear';
219
- api_key?: string;
220
- } | {
221
- type: 'git_hub';
222
- api_key?: string;
223
- } | {
224
- type: 'git_lab';
225
- api_key?: string;
226
- } | {
227
- type: 'dropbox';
228
- api_key?: string;
229
- } | {
230
- type: 'hub_spot';
231
- api_key?: string;
232
- } | {
233
- type: 'monday';
234
- api_key?: string;
235
- } | {
236
- type: 'click_up';
237
- api_key?: string;
238
- } | {
239
- type: 'pipedrive';
240
- api_key?: string;
241
- } | {
242
- type: 'calendly';
243
- api_key?: string;
244
- } | {
245
- type: 'typeform';
246
- api_key?: string;
247
- } | {
248
- type: 'webflow';
249
- api_key?: string;
250
- } | {
251
- type: 'trello';
252
- api_key?: string;
253
- } | {
254
- type: 'replicate';
255
- api_key?: string;
256
- } | {
257
- type: 'asana';
258
- api_key?: string;
259
- } | {
260
- type: 'brevo';
261
- api_key?: string;
262
- } | {
263
- type: 'intercom';
264
- api_key?: string;
265
- } | {
266
- type: 'notion';
267
- api_key?: string;
268
- } | {
269
- type: 'eleven_labs';
270
- api_key?: string;
271
- } | {
272
- type: 'active_campaign';
273
- api_key?: string;
274
- account_url: string;
275
- } | {
276
- type: 'shopify';
277
- api_key?: string;
278
- store_domain: string;
279
- } | {
280
- type: 'supabase';
281
- api_key?: string;
282
- project_url: string;
283
- } | {
284
- type: 'mailchimp';
285
- api_key?: string;
286
- } | {
287
- type: 'twilio';
288
- account_sid?: string;
289
- auth_token?: string;
290
- } | {
291
- type: 'jira';
292
- email?: string;
293
- api_token?: string;
294
- domain: string;
295
- } | {
296
- type: 'woo_commerce';
297
- consumer_key?: string;
298
- consumer_secret?: string;
299
- store_url: string;
300
- } | {
301
- type: 'freshdesk';
302
- api_key?: string;
303
- domain: string;
304
- } | {
305
- type: 'zendesk';
306
- api_token?: string;
307
- email?: string;
308
- subdomain: string;
309
- } | {
310
- type: 'salesforce';
311
- access_token?: string;
312
- instance_url: string;
313
- } | {
314
- type: 'zoom';
315
- api_key?: string;
316
- } | {
317
- type: 'microsoft_teams';
318
- api_key?: string;
319
- } | {
320
- type: 'firebase';
321
- api_key?: string;
322
- } | {
323
- type: 'arky';
324
- api_key?: string;
325
- } | {
326
- type: 'vercel_deploy_hook';
327
- url?: string;
328
- } | {
329
- type: 'netlify_deploy_hook';
330
- url?: string;
331
- } | {
332
- type: 'cloudflare_deploy_hook';
333
- url?: string;
334
- } | {
335
- type: 'custom_deploy_hook';
336
- url?: string;
337
- };
338
- interface Integration {
339
- id: string;
340
- store_id: string;
341
- key: string;
342
- provider: IntegrationProvider;
343
- created_at: number;
344
- updated_at: number;
345
- }
346
- interface ShippingWeightTier {
347
- up_to_grams: number;
348
- amount: number;
349
- }
350
- interface PaymentMethod {
351
- id: string;
352
- integration_id?: string;
353
- }
354
- interface ShippingMethod {
355
- id: string;
356
- taxable: boolean;
357
- eta_text: string;
358
- location_id?: string;
359
- integration_id?: string;
360
- amount: number;
361
- free_above?: number;
362
- weight_tiers?: ShippingWeightTier[];
363
- }
364
- interface Location {
365
- id: string;
366
- store_id: string;
367
- key: string;
368
- address: Address;
369
- is_pickup_location: boolean;
370
- created_at: number;
371
- updated_at: number;
372
- }
373
- interface InventoryLevel {
374
- location_id: string;
375
- available: number;
376
- reserved: number;
377
- }
378
- interface ProductInventory {
379
- id: string;
380
- store_id: string;
381
- product_id: string;
382
- variant_id: string;
383
- location_id: string;
384
- available: number;
385
- reserved: number;
386
- updated_at: number;
387
- }
388
- interface ProductVariant {
389
- id: string;
390
- sku?: string;
391
- prices: Price[];
392
- inventory: ProductInventory[];
393
- attributes: Block[];
394
- weight?: number;
395
- }
396
- interface Product {
397
- id: string;
398
- store_id: string;
399
- key: string;
400
- slug: Record<string, string>;
401
- blocks: Block[];
402
- taxonomies: TaxonomyEntry[];
403
- filters?: TaxonomyEntry[];
404
- variants: ProductVariant[];
405
- status: ProductStatus;
406
- created_at: number;
407
- updated_at: number;
408
- }
409
- interface GalleryItem {
410
- id: string;
411
- url: string;
412
- alt?: string;
413
- caption?: string;
414
- }
415
- interface ProductLineItemSnapshot {
416
- product_key: string;
417
- variant_sku?: string;
418
- variant_attributes: Block[];
419
- price: Price;
420
- }
421
- interface ServiceLineItemSnapshot {
422
- service_key: string;
423
- provider_key: string;
424
- price: Price;
425
- }
426
- type OrderItemSnapshot = ProductLineItemSnapshot | ServiceLineItemSnapshot;
427
- type ProductQuoteLineAvailability = {
428
- ok: true;
429
- available?: number;
430
- } | {
431
- ok: false;
432
- reason: string;
433
- };
434
- type ServiceQuoteLineAvailability = {
435
- ok: true;
436
- spots: number;
437
- } | {
438
- ok: false;
439
- reason: string;
440
- };
441
- interface ProductQuoteLine {
442
- type: 'product';
443
- line_id: string;
444
- product_id: string;
445
- variant_id: string;
446
- quantity: number;
447
- unit_price: number;
448
- subtotal: number;
449
- discount: number;
450
- tax: number;
451
- total: number;
452
- snapshot: ProductLineItemSnapshot;
453
- availability: ProductQuoteLineAvailability;
454
- }
455
- interface ServiceQuoteLine {
456
- type: 'service';
457
- line_id: string;
458
- service_id: string;
459
- provider_id: string;
460
- from: number;
461
- to: number;
462
- quantity: 1;
463
- unit_price: number;
464
- subtotal: number;
465
- discount: number;
466
- tax: number;
467
- total: number;
468
- snapshot: ServiceLineItemSnapshot;
469
- availability: ServiceQuoteLineAvailability;
470
- }
471
- type QuoteLine = ProductQuoteLine | ServiceQuoteLine;
472
- interface ProductLineItem {
473
- type: 'product';
474
- id: string;
475
- product_id: string;
476
- variant_id: string;
477
- quantity: number;
478
- location_id?: string;
479
- snapshot: ProductLineItemSnapshot;
480
- status: OrderItemStatus;
481
- }
482
- interface ServiceLineItem {
483
- type: 'service';
484
- id: string;
485
- service_id: string;
486
- provider_id: string;
487
- from: number;
488
- to: number;
489
- forms: FormEntry[];
490
- snapshot: ServiceLineItemSnapshot;
491
- status: OrderItemStatus;
492
- }
493
- type OrderItem = ProductLineItem | ServiceLineItem;
494
- interface HistoryEntry {
495
- action: string;
496
- reason?: string;
497
- timestamp: number;
498
- }
499
- interface Order {
500
- id: string;
501
- number: string;
502
- store_id: string;
503
- source_cart_id: string;
504
- customer_id: string;
505
- status: OrderStatus;
506
- verified: boolean;
507
- items: OrderItem[];
508
- payment: OrderPayment;
509
- shipping_address?: Address;
510
- billing_address?: Address;
511
- forms: FormEntry[];
512
- shipments: Shipment[];
513
- history: HistoryEntry[];
514
- audience_id?: string;
515
- fired_reminders: number[];
516
- created_at: number;
517
- updated_at: number;
518
- }
519
- interface OrderCheckoutResult {
520
- order_id: string;
521
- number: string;
522
- client_secret: string | null;
523
- payment: OrderPayment;
524
- }
525
- interface Zone {
526
- id: string;
527
- store_id: string;
528
- market_id: string;
529
- countries: string[];
530
- states: string[];
531
- postal_codes: string[];
532
- tax_bps: number;
533
- shipping_methods: ShippingMethod[];
534
- }
535
- interface Market {
536
- id: string;
537
- store_id: string;
538
- key: string;
539
- currency: string;
540
- tax_mode: "exclusive" | "inclusive";
541
- payment_methods: PaymentMethod[];
542
- zones: Zone[];
543
- created_at: number;
544
- updated_at: number;
545
- }
546
- interface Language {
547
- id: string;
548
- }
549
- interface StoreEmails {
550
- billing: string;
551
- support: string;
552
- }
553
- type WebhookEventSubscription = {
554
- event: 'node.created';
555
- parent_id?: string;
556
- } | {
557
- event: 'node.updated';
558
- key?: string;
559
- } | {
560
- event: 'node.deleted';
561
- key?: string;
562
- } | {
563
- event: 'order.created';
564
- } | {
565
- event: 'order.updated';
566
- } | {
567
- event: 'order.confirmed';
568
- } | {
569
- event: 'order.payment_received';
570
- } | {
571
- event: 'order.payment_failed';
572
- } | {
573
- event: 'order.refunded';
574
- } | {
575
- event: 'order.cancelled';
576
- } | {
577
- event: 'order.reminder';
578
- } | {
579
- event: 'order.shipment_created';
580
- } | {
581
- event: 'order.shipment_in_transit';
582
- } | {
583
- event: 'order.shipment_out_for_delivery';
584
- } | {
585
- event: 'order.shipment_delivered';
586
- } | {
587
- event: 'order.shipment_failed';
588
- } | {
589
- event: 'order.shipment_returned';
590
- } | {
591
- event: 'order.shipment_status_changed';
592
- } | {
593
- event: 'cart.created';
594
- } | {
595
- event: 'cart.updated';
596
- } | {
597
- event: 'cart.abandoned';
598
- } | {
599
- event: 'cart.converted';
600
- } | {
601
- event: 'product.created';
602
- } | {
603
- event: 'product.updated';
604
- } | {
605
- event: 'product.deleted';
606
- } | {
607
- event: 'provider.created';
608
- } | {
609
- event: 'provider.updated';
610
- } | {
611
- event: 'provider.deleted';
612
- } | {
613
- event: 'service.created';
614
- } | {
615
- event: 'service.updated';
616
- } | {
617
- event: 'service.deleted';
618
- } | {
619
- event: 'media.created';
620
- } | {
621
- event: 'media.deleted';
622
- } | {
623
- event: 'store.created';
624
- } | {
625
- event: 'store.updated';
626
- } | {
627
- event: 'store.deleted';
628
- } | {
629
- event: 'audience.created';
630
- } | {
631
- event: 'audience.updated';
632
- } | {
633
- event: 'audience.deleted';
634
- };
635
- interface Webhook {
636
- id: string;
637
- store_id: string;
638
- key: string;
639
- url: string;
640
- events: WebhookEventSubscription[];
641
- headers: Record<string, string>;
642
- secret: string;
643
- enabled: boolean;
644
- created_at: number;
645
- updated_at: number;
646
- }
647
- type StoreSubscriptionStatus = 'pending' | 'active' | 'cancellation_scheduled' | 'cancelled' | 'expired';
648
- type StoreSubscriptionSource = 'signup' | 'admin' | 'import';
649
- type StoreSubscriptionProvider = {
650
- type: 'stripe';
651
- customer_id: string;
652
- subscription_id?: string;
653
- price_id?: string;
654
- };
655
- interface StoreSubscriptionPayment {
656
- currency: string;
657
- market: string;
658
- provider?: StoreSubscriptionProvider;
659
- }
660
- interface StoreSubscription {
661
- id: string;
662
- target: string;
663
- plan_id: string;
664
- pending_plan_id: string | null;
665
- payment: StoreSubscriptionPayment;
666
- status: StoreSubscriptionStatus;
667
- start_date: number;
668
- end_date: number;
669
- token: string;
670
- source: StoreSubscriptionSource;
671
- }
672
- type AudienceSubscriptionStatus = 'pending' | 'active' | 'cancellation_scheduled' | 'cancelled' | 'expired';
673
- type AudienceSubscriptionSource = 'signup' | 'admin' | 'import';
674
- type AudienceSubscriptionProvider = {
675
- type: 'stripe';
676
- customer_id: string;
677
- subscription_id?: string;
678
- price_id?: string;
679
- };
680
- interface AudienceSubscriptionPayment {
681
- currency: string;
682
- market: string;
683
- provider?: AudienceSubscriptionProvider;
684
- }
685
- interface AudienceSubscription {
686
- id: string;
687
- store_id: string;
688
- customer_id: string;
689
- audience_id: string;
690
- plan_id: string;
691
- pending_plan_id: string | null;
692
- payment: AudienceSubscriptionPayment;
693
- status: AudienceSubscriptionStatus;
694
- start_date: number;
695
- end_date: number;
696
- token: string;
697
- source: AudienceSubscriptionSource;
698
- created_at: number;
699
- updated_at: number;
700
- }
701
- interface Store {
702
- id: string;
703
- key: string;
704
- timezone: string;
705
- languages?: Language[];
706
- emails?: StoreEmails;
707
- subscription?: StoreSubscription;
708
- counts?: Record<string, number>;
709
- }
710
- interface EshopStoreState {
711
- store_id: string;
712
- selected_shipping_method_id: string | null;
713
- user_token: string | null;
714
- processing_checkout: boolean;
715
- loading: boolean;
716
- error: string | null;
717
- }
718
- interface Block {
719
- id: string;
720
- key: string;
721
- type: string;
722
- properties?: any;
723
- value?: any;
724
- }
725
- type TaxonomySchemaType = "text" | "number" | "boolean" | "geo_location";
726
- interface TaxonomySchema {
727
- id: string;
728
- key: string;
729
- type: TaxonomySchemaType;
730
- value?: string[];
731
- min?: number | null;
732
- max?: number | null;
733
- }
734
- interface TaxonomyField {
735
- id: string;
736
- key: string;
737
- type: TaxonomySchemaType;
738
- value: any;
739
- }
740
- interface TaxonomyFieldQuery {
741
- key: string;
742
- type: TaxonomySchemaType;
743
- operation?: string;
744
- value: any;
745
- center?: {
746
- lat: number;
747
- lon: number;
748
- };
749
- radius?: number;
750
- }
751
- interface TaxonomyEntry {
752
- taxonomy_id: string;
753
- fields: TaxonomyField[];
754
- }
755
- interface TaxonomyQuery {
756
- taxonomy_id: string;
757
- query: TaxonomyFieldQuery[];
758
- }
759
- type FormSchemaType = "text" | "number" | "boolean" | "date" | "geo_location" | "select";
760
- interface FormSchema {
761
- id: string;
762
- key: string;
763
- type: FormSchemaType;
764
- required?: boolean;
765
- min?: number | null;
766
- max?: number | null;
767
- options?: string[];
768
- }
769
- type FormFieldType = "text" | "number" | "boolean" | "date" | "geo_location" | "select";
770
- interface FormField {
771
- id: string;
772
- key: string;
773
- type: FormFieldType;
774
- value?: any;
775
- }
776
- interface FormEntry {
777
- form_id: string;
778
- fields: FormField[];
779
- }
780
- type BlockType = "text" | "localized_text" | "number" | "boolean" | "list" | "map" | "relationship_entry" | "relationship_media" | "markdown" | "geo_location";
781
- interface GeoLocationBlockProperties {
782
- }
783
- type GeoLocationValue = GeoLocation;
784
- interface GeoLocationBlock extends Block {
785
- type: "geo_location";
786
- properties: GeoLocationBlockProperties;
787
- value: GeoLocation | null;
788
- }
789
- type Access = 'public' | 'private';
790
- interface MediaResolution {
791
- id: string;
792
- size: string;
793
- url: string;
794
- }
795
- interface Media {
796
- id: string;
797
- resolutions: {
798
- [key: string]: MediaResolution;
799
- };
800
- mime_type: string;
801
- title?: string | null;
802
- description?: string | null;
803
- alt?: string | null;
804
- store_id: string;
805
- entity?: string;
806
- metadata?: string | null;
807
- created_at: number;
808
- slug: Record<string, string>;
809
- }
810
- interface SubscriptionPlan {
811
- id: string;
812
- provider_price_id?: string | null;
813
- provider_product_id?: string | null;
814
- name: string;
815
- tier: number;
816
- amount: number;
817
- currency: string;
818
- interval: string;
819
- interval_count: number;
820
- trial_period_days: number;
821
- }
822
- interface AccountToken {
823
- id: string;
824
- value?: string;
825
- name?: string | null;
826
- created_at: number;
827
- expires_at?: number | null;
828
- type?: string;
829
- }
830
- interface StoreMembership {
831
- store_id: string;
832
- role: StoreRole;
833
- invitation_token?: AccountToken | null;
834
- joined_at?: number | null;
835
- }
836
- interface AccountLifecycle {
837
- last_login_at?: number | null;
838
- onboarding_completed: boolean;
839
- }
840
- interface Account {
841
- id: string;
842
- email: string;
843
- memberships: StoreMembership[];
844
- api_tokens: AccountToken[];
845
- auth_tokens?: AuthToken[];
846
- verification_codes?: unknown[];
847
- lifecycle?: AccountLifecycle;
848
- }
849
- interface AccountUpdateResponse {
850
- success: boolean;
851
- newly_created_tokens: AccountToken[];
852
- }
853
- interface ApiResponse<T> {
854
- success: boolean;
855
- data?: T;
856
- error?: string;
857
- cursor?: string;
858
- total?: number;
859
- }
860
- interface PaginatedResponse<T> {
861
- items: T[];
862
- cursor: string | null;
863
- data?: T[];
864
- meta?: {
865
- total: number;
866
- page: number;
867
- per_page: number;
868
- };
869
- }
870
- type ServiceStatus = 'active' | 'draft' | 'archived';
871
- type ProviderStatus = 'active' | 'draft' | 'archived';
872
- type ProductStatus = 'active' | 'draft' | 'archived';
873
- type CustomerStatus = 'active' | 'archived';
874
- type AudienceStatus = 'active' | 'draft' | 'archived';
875
- type AgentChatStatus = 'active' | 'draft' | 'archived';
876
- type WorkflowStatus = 'active' | 'draft' | 'archived';
877
- type PromoCodeStatus = 'active' | 'draft' | 'archived';
878
- type NodeStatus = 'active' | 'draft' | 'archived';
879
- type EmailTemplateStatus = 'active' | 'draft' | 'archived';
880
- type FormStatus = 'active' | 'draft' | 'archived';
881
- type TaxonomyStatus = 'active' | 'draft' | 'archived';
882
- type OrderCancellationReason = 'admin_rejected' | 'customer_cancelled' | 'payment_failed' | 'expired' | 'other';
883
- type OrderItemStatus = {
884
- status: 'pending';
885
- expires_at: number;
886
- } | {
887
- status: 'confirmed';
888
- } | {
889
- status: 'cancelled';
890
- reason: OrderCancellationReason;
891
- };
892
- type OrderStatus = 'pending' | 'partially_confirmed' | 'confirmed' | 'partially_cancelled' | 'cancelled';
893
- type OrderPaymentStatus = {
894
- status: 'pending';
895
- at: number;
896
- } | {
897
- status: 'authorized';
898
- at: number;
899
- amount: number;
900
- } | {
901
- status: 'captured';
902
- at: number;
903
- amount: number;
904
- } | {
905
- status: 'failed';
906
- at: number;
907
- reason?: string;
908
- };
909
- interface TimeRange {
910
- from: number;
911
- to: number;
912
- }
913
- interface Node {
914
- id: string;
915
- key: string;
916
- store_id: string;
917
- parent_id?: string | null;
918
- blocks: Block[];
919
- taxonomies: TaxonomyEntry[];
920
- status: NodeStatus;
921
- slug: Record<string, string>;
922
- children: Node[];
923
- created_at: number;
924
- updated_at: number;
925
- }
926
- interface EmailTemplate {
927
- id: string;
928
- key: string;
929
- store_id: string;
930
- subject: Record<string, string>;
931
- body: string;
932
- from_name: string;
933
- from_email: string;
934
- reply_to?: string;
935
- preheader?: string;
936
- status: EmailTemplateStatus;
937
- created_at: number;
938
- updated_at: number;
939
- }
940
- interface Form {
941
- id: string;
942
- key: string;
943
- store_id: string;
944
- schema: FormSchema[];
945
- status: FormStatus;
946
- created_at: number;
947
- updated_at: number;
948
- }
949
- interface FormSubmission {
950
- id: string;
951
- form_id: string;
952
- store_id: string;
953
- customer_id: string;
954
- fields: FormField[];
955
- created_at: number;
956
- }
957
- interface Taxonomy {
958
- id: string;
959
- key: string;
960
- store_id: string;
961
- parent_id?: string | null;
962
- schema?: TaxonomySchema[];
963
- status: TaxonomyStatus;
964
- created_at: number;
965
- updated_at: number;
966
- }
967
- interface ServiceDuration {
968
- duration: number;
969
- is_pause: boolean;
970
- }
971
- interface WorkingHour {
972
- from: number;
973
- to: number;
974
- }
975
- interface WorkingDay {
976
- day: string;
977
- working_hours: WorkingHour[];
978
- }
979
- interface SpecificDate {
980
- date: number;
981
- working_hours: WorkingHour[];
982
- }
983
- interface ServiceProvider {
984
- id: string;
985
- service_id: string;
986
- provider_id: string;
987
- store_id: string;
988
- working_days: WorkingDay[];
989
- specific_dates: SpecificDate[];
990
- prices: Price[];
991
- durations: ServiceDuration[];
992
- slot_interval: number;
993
- forms: FormEntry[];
994
- reminders: number[];
995
- min_advance: number;
996
- max_advance: number;
997
- created_at: number;
998
- updated_at: number;
999
- }
1000
- interface Service {
1001
- id: string;
1002
- key: string;
1003
- slug: Record<string, string>;
1004
- store_id: string;
1005
- blocks: Block[];
1006
- taxonomies: TaxonomyEntry[];
1007
- filters?: TaxonomyEntry[];
1008
- created_at: number;
1009
- updated_at: number;
1010
- status: ServiceStatus;
1011
- }
1012
- interface ProviderTimelinePoint {
1013
- timestamp: number;
1014
- booked: number;
1015
- }
1016
- interface Provider {
1017
- id: string;
1018
- key: string;
1019
- slug: Record<string, string>;
1020
- store_id: string;
1021
- status: ProviderStatus;
1022
- blocks: Block[];
1023
- taxonomies: TaxonomyEntry[];
1024
- filters?: TaxonomyEntry[];
1025
- timeline: ProviderTimelinePoint[];
1026
- created_at: number;
1027
- updated_at: number;
1028
- }
1029
- interface WorkflowEdge {
1030
- source: string;
1031
- target: string;
1032
- output: string;
1033
- back_edge: boolean;
1034
- }
1035
- interface Workflow {
1036
- id: string;
1037
- key: string;
1038
- store_id: string;
1039
- secret: string;
1040
- status: WorkflowStatus;
1041
- nodes: Record<string, WorkflowNode>;
1042
- edges: WorkflowEdge[];
1043
- schedule?: string;
1044
- created_at: number;
1045
- updated_at: number;
1046
- }
1047
- type WorkflowNode = WorkflowTriggerNode | WorkflowHttpNode | WorkflowSwitchNode | WorkflowTransformNode | WorkflowLoopNode;
1048
- interface WorkflowTriggerNode {
1049
- type: 'trigger';
1050
- event?: string;
1051
- delay_ms?: number;
1052
- schema?: Block[];
1053
- }
1054
- interface WorkflowHttpNode {
1055
- type: 'http';
1056
- method: WorkflowHttpMethod;
1057
- url: string;
1058
- headers?: Record<string, string>;
1059
- body?: any;
1060
- timeout_ms?: number;
1061
- integration_id?: string;
1062
- integration_provider_id?: string;
1063
- delay_ms?: number;
1064
- retries?: number;
1065
- retry_delay_ms?: number;
1066
- }
1067
- interface WorkflowSwitchRule {
1068
- condition: string;
1069
- }
1070
- interface WorkflowSwitchNode {
1071
- type: 'switch';
1072
- rules: WorkflowSwitchRule[];
1073
- delay_ms?: number;
1074
- }
1075
- interface WorkflowTransformNode {
1076
- type: 'transform';
1077
- code: string;
1078
- delay_ms?: number;
1079
- }
1080
- interface WorkflowLoopNode {
1081
- type: 'loop';
1082
- expression: string;
1083
- delay_ms?: number;
1084
- }
1085
- type WorkflowHttpMethod = 'get' | 'post' | 'put' | 'patch' | 'delete';
1086
- type ExecutionStatus = 'pending' | 'running' | 'completed' | 'failed' | 'cancelled';
1087
- interface NodeResult {
1088
- output: any;
1089
- route: string;
1090
- started_at: number;
1091
- completed_at: number;
1092
- duration_ms: number;
1093
- error?: string;
1094
- }
1095
- interface WorkflowExecution {
1096
- id: string;
1097
- workflow_id: string;
1098
- store_id: string;
1099
- status: ExecutionStatus;
1100
- input: Record<string, any>;
1101
- results: Record<string, NodeResult>;
1102
- error?: string;
1103
- scheduled_at: number;
1104
- started_at: number;
1105
- completed_at?: number;
1106
- created_at: number;
1107
- updated_at: number;
1108
- }
1109
- type AudienceType = {
1110
- type: 'standard';
1111
- } | {
1112
- type: 'confirmation';
1113
- confirm_template_id: string;
1114
- } | {
1115
- type: 'paid';
1116
- prices: SubscriptionPrice[];
1117
- payment_integration_id?: string;
1118
- };
1119
- interface Audience {
1120
- id: string;
1121
- store_id: string;
1122
- key: string;
1123
- status: AudienceStatus;
1124
- type: AudienceType;
1125
- }
1126
- interface AudienceAccessResponse {
1127
- has_access: boolean;
1128
- subscription?: AudienceSubscription;
1129
- }
1130
- interface AudienceSubscribeResponse {
1131
- checkout_url?: string;
1132
- subscription?: AudienceSubscription;
1133
- }
1134
- type EventAction = {
1135
- action: 'order_created';
1136
- } | {
1137
- action: 'order_updated';
1138
- } | {
1139
- action: 'order_confirmed';
1140
- } | {
1141
- action: 'order_payment_received';
1142
- data: {
1143
- amount: number;
1144
- currency: string;
1145
- };
1146
- } | {
1147
- action: 'order_payment_failed';
1148
- data: {
1149
- reason?: string;
1150
- };
1151
- } | {
1152
- action: 'order_refunded';
1153
- data: {
1154
- amount: number;
1155
- currency: string;
1156
- reason?: string;
1157
- };
1158
- } | {
1159
- action: 'order_cancelled';
1160
- data: {
1161
- reason?: string;
1162
- };
1163
- } | {
1164
- action: 'order_shipment_created';
1165
- data: {
1166
- shipment_id: string;
1167
- };
1168
- } | {
1169
- action: 'order_shipment_in_transit';
1170
- data: {
1171
- shipment_id: string;
1172
- };
1173
- } | {
1174
- action: 'order_shipment_out_for_delivery';
1175
- data: {
1176
- shipment_id: string;
1177
- };
1178
- } | {
1179
- action: 'order_shipment_delivered';
1180
- data: {
1181
- shipment_id: string;
1182
- };
1183
- } | {
1184
- action: 'order_shipment_failed';
1185
- data: {
1186
- shipment_id: string;
1187
- reason?: string;
1188
- };
1189
- } | {
1190
- action: 'order_shipment_returned';
1191
- data: {
1192
- shipment_id: string;
1193
- };
1194
- } | {
1195
- action: 'order_shipment_status_changed';
1196
- data: {
1197
- shipment_id: string;
1198
- from: string;
1199
- to: string;
1200
- };
1201
- } | {
1202
- action: 'product_created';
1203
- } | {
1204
- action: 'product_updated';
1205
- } | {
1206
- action: 'product_deleted';
1207
- } | {
1208
- action: 'node_created';
1209
- } | {
1210
- action: 'node_updated';
1211
- } | {
1212
- action: 'node_deleted';
1213
- } | {
1214
- action: 'provider_created';
1215
- } | {
1216
- action: 'provider_updated';
1217
- } | {
1218
- action: 'provider_deleted';
1219
- } | {
1220
- action: 'service_created';
1221
- } | {
1222
- action: 'service_updated';
1223
- } | {
1224
- action: 'service_deleted';
1225
- } | {
1226
- action: 'account_created';
1227
- } | {
1228
- action: 'account_updated';
1229
- } | {
1230
- action: 'account_deleted';
1231
- } | {
1232
- action: 'media_created';
1233
- } | {
1234
- action: 'media_deleted';
1235
- } | {
1236
- action: 'store_created';
1237
- } | {
1238
- action: 'store_updated';
1239
- } | {
1240
- action: 'store_deleted';
1241
- } | {
1242
- action: 'audience_created';
1243
- } | {
1244
- action: 'audience_updated';
1245
- } | {
1246
- action: 'audience_deleted';
1247
- };
1248
- interface Event {
1249
- id: string;
1250
- entity: string;
1251
- event: EventAction;
1252
- actor: string;
1253
- created_at: number;
1254
- }
1255
- type ShippingStatus = 'pending' | 'label_created' | 'in_transit' | 'out_for_delivery' | 'delivered' | 'failed' | 'returned';
1256
- interface OrderShipping {
1257
- carrier: string;
1258
- service: string;
1259
- tracking_number?: string | null;
1260
- tracking_url?: string | null;
1261
- label_url?: string | null;
1262
- status: ShippingStatus;
1263
- }
1264
- interface ShipmentLine {
1265
- order_item_id: string;
1266
- quantity: number;
1267
- }
1268
- interface Shipment {
1269
- id: string;
1270
- location_id: string;
1271
- lines: ShipmentLine[];
1272
- carrier?: string | null;
1273
- service?: string | null;
1274
- tracking_number?: string | null;
1275
- tracking_url?: string | null;
1276
- label_url?: string | null;
1277
- status: ShippingStatus;
1278
- created_at: number;
1279
- updated_at: number;
1280
- }
1281
- interface ShippingRate {
1282
- id: string;
1283
- provider: string;
1284
- carrier: string;
1285
- service: string;
1286
- display_name: string;
1287
- amount: number;
1288
- currency: string;
1289
- estimated_days?: number | null;
1290
- }
1291
- type ShippingAddress = Address;
1292
- interface Parcel {
1293
- length: number;
1294
- width: number;
1295
- height: number;
1296
- weight: number;
1297
- distance_unit: 'in' | 'cm';
1298
- mass_unit: 'oz' | 'lb' | 'g' | 'kg';
1299
- }
1300
- interface PurchaseLabelResult {
1301
- tracking_number: string;
1302
- tracking_url?: string | null;
1303
- label_url: string;
1304
- carrier: string;
1305
- service: string;
1306
- }
1307
- interface ShipResult {
1308
- shipment_id: string;
1309
- tracking_number: string;
1310
- tracking_url?: string | null;
1311
- label_url: string;
1312
- }
1313
- interface CustomsItem {
1314
- description: string;
1315
- quantity: number;
1316
- net_weight: string;
1317
- mass_unit: string;
1318
- value_amount: string;
1319
- value_currency: string;
1320
- origin_country: string;
1321
- tariff_number?: string | null;
1322
- }
1323
- interface CustomsDeclaration {
1324
- contents_type: string;
1325
- contents_explanation?: string | null;
1326
- non_delivery_option: string;
1327
- certify: boolean;
1328
- certify_signer: string;
1329
- items: CustomsItem[];
1330
- }
1331
- interface Agent {
1332
- id: string;
1333
- store_id: string;
1334
- key: string;
1335
- prompt: string;
1336
- status: AgentStatus;
1337
- model_id: string;
1338
- channel_ids: string[];
1339
- tools: string[];
1340
- created_at: number;
1341
- updated_at: number;
1342
- }
1343
- interface AgentChat {
1344
- id: string;
1345
- store_id: string;
1346
- agent_id: string;
1347
- customer_id: string;
1348
- status: AgentChatStatus;
1349
- rating?: number;
1350
- rating_comment?: string;
1351
- created_at: number;
1352
- updated_at: number;
1353
- }
1354
- interface AgentChatMessage {
1355
- id: string;
1356
- store_id: string;
1357
- agent_id?: string;
1358
- chat_id?: string;
1359
- message: string;
1360
- created_at: number;
1361
- }
1362
- interface PromoCode {
1363
- id: string;
1364
- store_id: string;
1365
- code: string;
1366
- discounts: Discount[];
1367
- conditions: Condition[];
1368
- status: PromoCodeStatus;
1369
- uses: number;
1370
- created_at: number;
1371
- updated_at: number;
1372
- }
1373
-
1374
- interface CreateLocationParams {
1375
- key: string;
1376
- address: Address;
1377
- is_pickup_location?: boolean;
1378
- }
1379
- interface UpdateLocationParams {
1380
- id: string;
1381
- key: string;
1382
- address: Address;
1383
- is_pickup_location?: boolean;
1384
- }
1385
- interface DeleteLocationParams {
1386
- id: string;
1387
- }
1388
- interface CreateMarketParams {
1389
- key: string;
1390
- currency: string;
1391
- tax_mode: 'inclusive' | 'exclusive';
1392
- payment_methods?: PaymentMethod[];
1393
- zones?: Zone[];
1394
- }
1395
- interface UpdateMarketParams {
1396
- id: string;
1397
- key?: string;
1398
- currency?: string;
1399
- tax_mode?: 'inclusive' | 'exclusive';
1400
- payment_methods?: PaymentMethod[];
1401
- zones?: Zone[];
1402
- }
1403
- interface DeleteMarketParams {
1404
- id: string;
1405
- }
1406
- interface RequestOptions<T = any> {
1407
- headers?: Record<string, string>;
1408
- params?: Record<string, any>;
1409
- transformRequest?: (data: any) => any;
1410
- onSuccess?: (ctx: {
1411
- data: T;
1412
- method: string;
1413
- url: string;
1414
- status: number;
1415
- request?: any;
1416
- duration_ms?: number;
1417
- request_id?: string | null;
1418
- }) => void | Promise<void>;
1419
- onError?: (ctx: {
1420
- error: any;
1421
- method: string;
1422
- url: string;
1423
- status?: number;
1424
- request?: any;
1425
- response?: any;
1426
- duration_ms?: number;
1427
- request_id?: string | null;
1428
- aborted?: boolean;
1429
- }) => void | Promise<void>;
1430
- }
1431
- interface EshopItem {
1432
- product_id: string;
1433
- variant_id: string;
1434
- quantity: number;
1435
- }
1436
- interface EshopQuoteItem {
1437
- product_id: string;
1438
- variant_id: string;
1439
- quantity: number;
1440
- price?: Price;
1441
- }
1442
- interface SlotRange {
1443
- from: number;
1444
- to: number;
1445
- }
1446
- interface ServiceQuoteItem {
1447
- service_id: string;
1448
- provider_id: string;
1449
- slots: SlotRange[];
1450
- forms?: FormEntry[];
1451
- price?: Price;
1452
- }
1453
- interface ServiceCheckoutPart {
1454
- service_id: string;
1455
- provider_id: string;
1456
- slots: SlotRange[];
1457
- forms: FormEntry[];
1458
- }
1459
- interface ProductQuoteItemInput extends EshopQuoteItem {
1460
- type: "product";
1461
- }
1462
- interface ServiceQuoteItemInput extends ServiceQuoteItem {
1463
- type: "service";
1464
- }
1465
- type OrderQuoteItemInput = ProductQuoteItemInput | ServiceQuoteItemInput;
1466
- type QuoteItemInput = OrderQuoteItemInput;
1467
- type OrderQuoteCompatibleItemInput = OrderQuoteItemInput | EshopQuoteItem | ServiceQuoteItem;
1468
- interface ProductCheckoutItemInput extends EshopItem {
1469
- type: "product";
1470
- id?: string;
1471
- }
1472
- interface ServiceCheckoutItemInput {
1473
- type: "service";
1474
- id?: string;
1475
- service_id: string;
1476
- provider_id: string;
1477
- slots: SlotRange[];
1478
- forms?: FormEntry[];
1479
- }
1480
- type OrderCheckoutItemInput = ProductCheckoutItemInput | ServiceCheckoutItemInput;
1481
- type CheckoutItemInput = OrderCheckoutItemInput;
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;
1491
- interface GetQuoteParams {
1492
- store_id?: string;
1493
- market?: string;
1494
- items: OrderQuoteCompatibleItemInput[];
1495
- shipping_address?: Address;
1496
- billing_address?: Address;
1497
- forms?: FormEntry[];
1498
- payment_method_id?: string;
1499
- promo_code?: string;
1500
- shipping_method_id?: string;
1501
- location?: ZoneLocation;
1502
- }
1503
- interface OrderCheckoutParams {
1504
- store_id?: string;
1505
- market?: string;
1506
- items: OrderCheckoutCompatibleItemInput[];
1507
- payment_method_id?: string;
1508
- shipping_address?: Address;
1509
- billing_address?: Address;
1510
- forms?: FormEntry[];
1511
- promo_code_id?: string;
1512
- shipping_method_id?: string;
1513
- }
1514
- interface GetCurrentCartParams {
1515
- store_id?: string;
1516
- market?: string;
1517
- }
1518
- interface GetCartParams {
1519
- id: string;
1520
- store_id?: string;
1521
- token?: string;
1522
- }
1523
- interface FindCartsParams {
1524
- store_id?: string;
1525
- customer_id?: string;
1526
- statuses?: CartStatus[];
1527
- origins?: CartOrigin[];
1528
- has_items?: boolean;
1529
- limit?: number;
1530
- cursor?: string;
1531
- }
1532
- interface CreateCartParams {
1533
- store_id?: string;
1534
- customer_id: string;
1535
- market: string;
1536
- items?: TrustedOrderCheckoutCompatibleItemInput[];
1537
- shipping_address?: Address | null;
1538
- billing_address?: Address | null;
1539
- forms?: FormEntry[];
1540
- promo_code?: string | null;
1541
- payment_method_id?: string | null;
1542
- shipping_method_id?: string | null;
1543
- }
1544
- interface UpdateCartParams {
1545
- id: string;
1546
- store_id?: string;
1547
- market?: string;
1548
- items?: OrderCheckoutCompatibleItemInput[];
1549
- shipping_address?: Address;
1550
- billing_address?: Address;
1551
- forms?: FormEntry[];
1552
- promo_code?: string;
1553
- payment_method_id?: string;
1554
- shipping_method_id?: string;
1555
- }
1556
- interface AddCartItemParams {
1557
- id: string;
1558
- store_id?: string;
1559
- item: OrderCheckoutCompatibleItemInput;
1560
- }
1561
- interface RemoveCartItemParams {
1562
- id: string;
1563
- store_id?: string;
1564
- item_id?: string;
1565
- product_id?: string;
1566
- variant_id?: string;
1567
- }
1568
- interface ClearCartParams {
1569
- id: string;
1570
- store_id?: string;
1571
- }
1572
- interface QuoteCartParams {
1573
- id: string;
1574
- store_id?: string;
1575
- }
1576
- interface CheckoutCartParams {
1577
- id: string;
1578
- store_id?: string;
1579
- payment_method_id?: string;
1580
- }
1581
- interface GetProductsParams {
1582
- store_id?: string;
1583
- ids?: string[];
1584
- taxonomy_query?: TaxonomyQuery[];
1585
- match_all?: boolean;
1586
- status?: ProductStatus;
1587
- query?: string | number;
1588
- limit?: number;
1589
- cursor?: string;
1590
- sort_field?: string;
1591
- sort_direction?: 'asc' | 'desc';
1592
- created_at_from?: number | null;
1593
- created_at_to?: number | null;
1594
- }
1595
- interface GetNodesParams {
1596
- store_id?: string;
1597
- ids?: string[];
1598
- parent_id?: string;
1599
- key?: string;
1600
- limit?: number;
1601
- cursor?: string;
1602
- query?: string | number;
1603
- status?: NodeStatus;
1604
- sort_field?: string;
1605
- sort_direction?: 'asc' | 'desc';
1606
- created_at_from?: number;
1607
- created_at_to?: number;
1608
- }
1609
- interface CreateNodeParams {
1610
- store_id?: string;
1611
- key: string;
1612
- parent_id?: string | null;
1613
- blocks?: Block[];
1614
- taxonomies?: TaxonomyEntry[];
1615
- slug?: Record<string, string>;
1616
- }
1617
- interface UpdateNodeParams {
1618
- id: string;
1619
- store_id?: string;
1620
- key?: string;
1621
- parent_id?: string | null;
1622
- blocks?: Block[];
1623
- taxonomies?: TaxonomyEntry[];
1624
- status?: NodeStatus;
1625
- slug?: Record<string, string>;
1626
- }
1627
- interface GetNodeParams {
1628
- id?: string;
1629
- slug?: string;
1630
- key?: string;
1631
- store_id?: string;
1632
- }
1633
- interface DeleteNodeParams {
1634
- id: string;
1635
- store_id?: string;
1636
- }
1637
- interface GetNodeChildrenParams {
1638
- id: string;
1639
- store_id?: string;
1640
- limit?: number;
1641
- cursor?: string;
1642
- }
1643
- interface UploadStoreMediaParams {
1644
- store_id?: string;
1645
- files?: File[];
1646
- urls?: string[];
1647
- }
1648
- interface DeleteStoreMediaParams {
1649
- id: string;
1650
- media_id: string;
1651
- }
1652
- interface GetMediaParams {
1653
- media_id: string;
1654
- store_id?: string;
1655
- }
1656
- interface UpdateMediaParams {
1657
- media_id: string;
1658
- store_id?: string;
1659
- slug?: Record<string, string>;
1660
- }
1661
- interface GetStoreMediaParams {
1662
- store_id?: string;
1663
- cursor?: string | null;
1664
- limit: number;
1665
- ids?: string[];
1666
- query?: string;
1667
- mime_type?: string;
1668
- sort_field?: string;
1669
- sort_direction?: 'asc' | 'desc';
1670
- }
1671
- interface LoginAccountParams {
1672
- email?: string;
1673
- provider: string;
1674
- token?: string;
1675
- }
1676
- interface MagicLinkRequestParams {
1677
- email: string;
1678
- store_id?: string;
1679
- }
1680
- interface MagicLinkVerifyParams {
1681
- email: string;
1682
- code: string;
1683
- }
1684
- interface GetServicesParams {
1685
- store_id?: string;
1686
- ids?: string[];
1687
- provider_id?: string;
1688
- limit?: number;
1689
- cursor?: string;
1690
- query?: string | number;
1691
- status?: ServiceStatus;
1692
- sort_field?: string;
1693
- sort_direction?: 'asc' | 'desc';
1694
- created_at_from?: number;
1695
- created_at_to?: number;
1696
- taxonomy_query?: TaxonomyQuery[];
1697
- match_all?: boolean;
1698
- from?: number;
1699
- to?: number;
1700
- }
1701
- interface TimelinePoint {
1702
- timestamp: number;
1703
- booked: number;
1704
- }
1705
- interface ProviderWithTimeline {
1706
- id: string;
1707
- key: string;
1708
- store_id: string;
1709
- slug: Record<string, string>;
1710
- status: ProviderStatus;
1711
- blocks: Block[];
1712
- taxonomies: TaxonomyEntry[];
1713
- created_at: number;
1714
- updated_at: number;
1715
- working_days?: WorkingDay[];
1716
- specific_dates?: SpecificDate[];
1717
- timeline: TimelinePoint[];
1718
- }
1719
- interface GetAnalyticsParams {
1720
- metrics?: string[];
1721
- period?: string;
1722
- start_date?: string;
1723
- end_date?: string;
1724
- interval?: string;
1725
- }
1726
- interface GetAnalyticsHealthParams {
1727
- }
1728
- interface TrackEmailOpenParams {
1729
- tracking_pixel_id: string;
1730
- }
1731
- interface GetDeliveryStatsParams {
1732
- }
1733
- type StoreRole = 'admin' | 'owner' | 'super';
1734
- type Discount = {
1735
- type: "items_percentage";
1736
- market_id: string;
1737
- bps: number;
1738
- } | {
1739
- type: "items_fixed";
1740
- market_id: string;
1741
- amount: number;
1742
- } | {
1743
- type: "shipping_percentage";
1744
- market_id: string;
1745
- bps: number;
1746
- };
1747
- type ConditionValue = {
1748
- type: "ids";
1749
- value: string[];
1750
- } | {
1751
- type: "amount";
1752
- value: number;
1753
- } | {
1754
- type: "count";
1755
- value: number;
1756
- } | {
1757
- type: "date_range";
1758
- value: {
1759
- start?: number;
1760
- end?: number;
1761
- };
1762
- };
1763
- interface Condition {
1764
- type: "products" | "services" | "min_order_amount" | "date_range" | "max_uses" | "max_uses_per_user";
1765
- value: ConditionValue;
1766
- }
1767
- interface CreatePromoCodeParams {
1768
- store_id?: string;
1769
- code: string;
1770
- discounts: Discount[];
1771
- conditions: Condition[];
1772
- }
1773
- interface UpdatePromoCodeParams {
1774
- id: string;
1775
- store_id?: string;
1776
- code?: string;
1777
- discounts?: Discount[];
1778
- conditions?: Condition[];
1779
- status?: PromoCodeStatus;
1780
- }
1781
- interface DeletePromoCodeParams {
1782
- id: string;
1783
- store_id?: string;
1784
- }
1785
- interface GetPromoCodeParams {
1786
- id: string;
1787
- store_id?: string;
1788
- }
1789
- interface GetPromoCodesParams {
1790
- store_id?: string;
1791
- ids?: string[];
1792
- query?: string | number;
1793
- status?: PromoCodeStatus;
1794
- limit?: number;
1795
- cursor?: string;
1796
- sort_field?: string;
1797
- sort_direction?: 'asc' | 'desc';
1798
- created_at_from?: number;
1799
- created_at_to?: number;
1800
- starts_at_from?: number;
1801
- starts_at_to?: number;
1802
- expires_at_from?: number;
1803
- expires_at_to?: number;
1804
- }
1805
- interface CreateStoreParams {
1806
- key: string;
1807
- timezone: string;
1808
- billing_email: string;
1809
- languages?: Language[];
1810
- emails?: StoreEmails;
1811
- }
1812
- interface UpdateStoreParams {
1813
- id: string;
1814
- key?: string;
1815
- timezone?: string;
1816
- languages?: Language[];
1817
- emails?: StoreEmails;
1818
- }
1819
- interface DeleteStoreParams {
1820
- id: string;
1821
- }
1822
- interface GetStoreParams {
1823
- }
1824
- interface SubscribeParams {
1825
- store_id?: string;
1826
- plan_id: string;
1827
- success_url: string;
1828
- cancel_url: string;
1829
- }
1830
- interface CreatePortalSessionParams {
1831
- store_id?: string;
1832
- return_url: string;
1833
- }
1834
- interface InviteUserParams {
1835
- email: string;
1836
- role?: StoreRole;
1837
- }
1838
- interface RemoveMemberParams {
1839
- account_id: string;
1840
- }
1841
- interface HandleInvitationParams {
1842
- token: string;
1843
- action: string;
1844
- store_id?: string;
1845
- }
1846
- interface TestWebhookParams {
1847
- webhook: Webhook;
1848
- }
1849
- interface CreateProductVariantInput {
1850
- sku?: string;
1851
- prices: Price[];
1852
- inventory: ProductInventory[];
1853
- attributes: Block[];
1854
- weight?: number;
1855
- }
1856
- interface UpdateProductVariantInput {
1857
- id: string;
1858
- sku?: string | null;
1859
- prices?: Price[];
1860
- inventory?: ProductInventory[];
1861
- attributes?: Block[];
1862
- weight?: number | null;
1863
- }
1864
- interface CreateProductParams {
1865
- store_id?: string;
1866
- key: string;
1867
- slug?: Record<string, string>;
1868
- blocks?: Block[];
1869
- taxonomies?: TaxonomyEntry[];
1870
- filters?: TaxonomyEntry[];
1871
- variants?: CreateProductVariantInput[];
1872
- }
1873
- interface UpdateProductParams {
1874
- id: string;
1875
- store_id?: string;
1876
- key?: string;
1877
- slug?: Record<string, string>;
1878
- blocks?: Block[];
1879
- taxonomies?: TaxonomyEntry[];
1880
- filters?: TaxonomyEntry[];
1881
- variants?: UpdateProductVariantInput[];
1882
- status?: ProductStatus;
1883
- }
1884
- interface DeleteProductParams {
1885
- id: string;
1886
- store_id?: string;
1887
- }
1888
- interface GetProductParams {
1889
- id?: string;
1890
- slug?: string;
1891
- store_id?: string;
1892
- }
1893
- interface GetOrderParams {
1894
- id: string;
1895
- store_id?: string;
1896
- }
1897
- interface GetOrdersParams {
1898
- store_id?: string;
1899
- customer_id?: string;
1900
- statuses?: string[];
1901
- item_statuses?: string[];
1902
- product_ids?: string[];
1903
- verified?: boolean;
1904
- query?: string | number | null;
1905
- limit?: number | null;
1906
- cursor?: string | null;
1907
- sort_field?: string | null;
1908
- sort_direction?: 'asc' | 'desc' | null;
1909
- created_at_from?: number | null;
1910
- created_at_to?: number | null;
1911
- audience_id?: string;
1912
- }
1913
- interface OrderUpdateItem extends EshopItem {
1914
- }
1915
- interface UpdateOrderParams {
1916
- id: string;
1917
- store_id?: string;
1918
- confirm?: boolean;
1919
- cancel?: boolean;
1920
- shipping_address?: Address | null;
1921
- billing_address?: Address | null;
1922
- forms?: FormEntry[];
1923
- items?: TrustedOrderCheckoutCompatibleItemInput[];
1924
- payment?: OrderPayment;
1925
- }
1926
- interface CreateProviderParams {
1927
- store_id?: string;
1928
- key: string;
1929
- slug?: Record<string, string>;
1930
- status?: ProviderStatus;
1931
- blocks?: Block[];
1932
- taxonomies?: TaxonomyEntry[];
1933
- filters?: TaxonomyEntry[];
1934
- }
1935
- interface UpdateProviderParams {
1936
- id: string;
1937
- store_id?: string;
1938
- key?: string;
1939
- slug?: Record<string, string>;
1940
- status?: ProviderStatus;
1941
- blocks?: Block[];
1942
- taxonomies?: TaxonomyEntry[];
1943
- filters?: TaxonomyEntry[];
1944
- }
1945
- interface DeleteProviderParams {
1946
- id: string;
1947
- store_id?: string;
1948
- }
1949
- interface ServiceProviderInput {
1950
- provider_id: string;
1951
- store_id?: string;
1952
- prices?: Price[];
1953
- durations?: ServiceDuration[];
1954
- working_days: WorkingDay[];
1955
- specific_dates: SpecificDate[];
1956
- }
1957
- interface CreateServiceParams {
1958
- store_id?: string;
1959
- key: string;
1960
- slug?: Record<string, string>;
1961
- blocks?: Block[];
1962
- taxonomies?: TaxonomyEntry[];
1963
- filters?: TaxonomyEntry[];
1964
- location?: ZoneLocation;
1965
- status?: ServiceStatus;
1966
- }
1967
- interface UpdateServiceParams {
1968
- id: string;
1969
- store_id?: string;
1970
- key?: string;
1971
- slug?: Record<string, string>;
1972
- blocks?: Block[];
1973
- taxonomies?: TaxonomyEntry[];
1974
- filters?: TaxonomyEntry[];
1975
- location?: ZoneLocation | null;
1976
- status?: ServiceStatus;
1977
- }
1978
- interface CreateServiceProviderParams {
1979
- store_id?: string;
1980
- service_id: string;
1981
- provider_id: string;
1982
- working_days: WorkingDay[];
1983
- specific_dates: SpecificDate[];
1984
- prices?: Price[];
1985
- durations?: ServiceDuration[];
1986
- slot_interval: number;
1987
- forms?: FormEntry[];
1988
- reminders?: number[];
1989
- min_advance?: number;
1990
- max_advance?: number;
1991
- }
1992
- interface UpdateServiceProviderParams {
1993
- store_id?: string;
1994
- id: string;
1995
- working_days?: WorkingDay[];
1996
- specific_dates?: SpecificDate[];
1997
- prices?: Price[];
1998
- durations?: ServiceDuration[];
1999
- slot_interval?: number;
2000
- forms?: FormEntry[];
2001
- reminders?: number[];
2002
- min_advance?: number;
2003
- max_advance?: number;
2004
- }
2005
- interface DeleteServiceProviderParams {
2006
- store_id?: string;
2007
- id: string;
2008
- }
2009
- interface FindServiceProvidersParams {
2010
- store_id?: string;
2011
- service_id?: string;
2012
- provider_id?: string;
2013
- }
2014
- interface DeleteServiceParams {
2015
- id: string;
2016
- store_id?: string;
2017
- }
2018
- interface GetServiceParams {
2019
- id?: string;
2020
- slug?: string;
2021
- store_id?: string;
2022
- }
2023
- interface GetProvidersParams {
2024
- store_id?: string;
2025
- service_id?: string;
2026
- ids?: string[];
2027
- taxonomy_query?: TaxonomyQuery[];
2028
- match_all?: boolean;
2029
- query?: string | number | null;
2030
- status?: ProviderStatus;
2031
- limit?: number;
2032
- cursor?: string;
2033
- sort_field?: string | null;
2034
- sort_direction?: 'asc' | 'desc' | null;
2035
- created_at_from?: number | null;
2036
- created_at_to?: number | null;
2037
- from?: number;
2038
- to?: number;
2039
- }
2040
- interface GetProviderParams {
2041
- id?: string;
2042
- slug?: string;
2043
- store_id?: string;
2044
- }
2045
- interface SearchOrderServiceItemsParams {
2046
- store_id?: string;
2047
- customer_id?: string;
2048
- service_ids?: string[];
2049
- provider_ids?: string[];
2050
- from?: number;
2051
- to?: number;
2052
- item_statuses?: string[];
2053
- sort_field?: string;
2054
- sort_order?: string;
2055
- limit?: number;
2056
- cursor?: string;
2057
- verified?: boolean;
2058
- query?: string | number;
2059
- audience_id?: string;
2060
- }
2061
- interface AccountAddress {
2062
- label?: string;
2063
- address: Address;
2064
- }
2065
- interface AccountApiToken {
2066
- id: string | null;
2067
- value?: string;
2068
- name?: string | null;
2069
- created_at?: number;
2070
- expires_at?: number | null;
2071
- type?: string;
2072
- }
2073
- interface UpdateAccountProfileParams {
2074
- phone_numbers?: string[];
2075
- addresses?: AccountAddress[];
2076
- api_tokens?: AccountApiToken[] | null;
2077
- }
2078
- interface SearchAccountsParams {
2079
- limit?: number;
2080
- cursor?: string | null;
2081
- query?: string | number;
2082
- owner?: string;
2083
- store_id?: string;
2084
- sort_field?: string | null;
2085
- sort_direction?: 'asc' | 'desc' | null;
2086
- }
2087
- interface DeleteAccountParams {
2088
- }
2089
- interface TriggerNotificationParams {
2090
- channel: string;
2091
- store_id: string;
2092
- email_template_id?: string;
2093
- recipients?: string[];
2094
- audience_id?: string;
2095
- vars?: Record<string, any>;
2096
- }
2097
- interface GetEmailTemplatesParams {
2098
- store_id?: string;
2099
- ids?: string[];
2100
- key?: string;
2101
- limit?: number;
2102
- cursor?: string;
2103
- query?: string | number;
2104
- status?: EmailTemplateStatus;
2105
- sort_field?: string;
2106
- sort_direction?: "asc" | "desc";
2107
- created_at_from?: number;
2108
- created_at_to?: number;
2109
- }
2110
- interface CreateEmailTemplateParams {
2111
- store_id?: string;
2112
- key: string;
2113
- subject?: Record<string, string>;
2114
- body?: string;
2115
- from_name: string;
2116
- from_email: string;
2117
- reply_to?: string;
2118
- preheader?: string;
2119
- }
2120
- interface UpdateEmailTemplateParams {
2121
- id: string;
2122
- store_id?: string;
2123
- key?: string;
2124
- subject?: Record<string, string>;
2125
- body?: string;
2126
- from_name?: string;
2127
- from_email?: string;
2128
- reply_to?: string;
2129
- preheader?: string;
2130
- status?: EmailTemplateStatus;
2131
- }
2132
- interface GetEmailTemplateParams {
2133
- id?: string;
2134
- key?: string;
2135
- store_id?: string;
2136
- }
2137
- interface DeleteEmailTemplateParams {
2138
- id: string;
2139
- store_id?: string;
2140
- }
2141
- interface GetFormsParams {
2142
- store_id?: string;
2143
- ids?: string[];
2144
- key?: string;
2145
- limit?: number;
2146
- cursor?: string;
2147
- query?: string | number;
2148
- status?: FormStatus;
2149
- sort_field?: string;
2150
- sort_direction?: "asc" | "desc";
2151
- created_at_from?: number;
2152
- created_at_to?: number;
2153
- }
2154
- interface CreateFormParams {
2155
- store_id?: string;
2156
- key: string;
2157
- schema?: FormSchema[];
2158
- }
2159
- interface UpdateFormParams {
2160
- id: string;
2161
- store_id?: string;
2162
- key?: string;
2163
- schema?: FormSchema[];
2164
- status?: FormStatus;
2165
- }
2166
- interface GetFormParams {
2167
- id?: string;
2168
- key?: string;
2169
- store_id?: string;
2170
- }
2171
- interface DeleteFormParams {
2172
- id: string;
2173
- store_id?: string;
2174
- }
2175
- interface SubmitFormParams {
2176
- form_id: string;
2177
- store_id?: string;
2178
- fields: FormField[];
2179
- }
2180
- interface GetFormSubmissionsParams {
2181
- form_ids?: string[];
2182
- store_id?: string;
2183
- customer_id?: string;
2184
- query?: string | number;
2185
- limit?: number;
2186
- cursor?: string;
2187
- sort_field?: string;
2188
- sort_direction?: "asc" | "desc";
2189
- created_at_from?: number;
2190
- created_at_to?: number;
2191
- }
2192
- interface FindActivitiesParams {
2193
- store_id?: string;
2194
- customer_id?: string;
2195
- types?: string[];
2196
- from?: number;
2197
- to?: number;
2198
- limit?: number;
2199
- cursor?: string;
2200
- }
2201
- interface GetFormSubmissionParams {
2202
- id: string;
2203
- form_id: string;
2204
- store_id?: string;
2205
- }
2206
- interface UpdateFormSubmissionParams {
2207
- id: string;
2208
- form_id: string;
2209
- store_id?: string;
2210
- fields: FormField[];
2211
- }
2212
- interface GetTaxonomiesParams {
2213
- store_id?: string;
2214
- parent_id?: string;
2215
- ids?: string[];
2216
- key?: string;
2217
- limit?: number;
2218
- cursor?: string;
2219
- query?: string | number;
2220
- status?: TaxonomyStatus;
2221
- sort_field?: string;
2222
- sort_direction?: "asc" | "desc";
2223
- created_at_from?: number;
2224
- created_at_to?: number;
2225
- }
2226
- interface CreateTaxonomyParams {
2227
- store_id?: string;
2228
- key: string;
2229
- parent_id?: string | null;
2230
- schema?: TaxonomySchema[];
2231
- }
2232
- interface UpdateTaxonomyParams {
2233
- id: string;
2234
- store_id?: string;
2235
- key?: string;
2236
- parent_id?: string | null;
2237
- schema?: TaxonomySchema[];
2238
- status?: TaxonomyStatus;
2239
- }
2240
- interface GetTaxonomyParams {
2241
- id?: string;
2242
- key?: string;
2243
- store_id?: string;
2244
- }
2245
- interface DeleteTaxonomyParams {
2246
- id: string;
2247
- store_id?: string;
2248
- }
2249
- interface GetTaxonomyChildrenParams {
2250
- id: string;
2251
- store_id?: string;
2252
- }
2253
- interface GetMeParams {
2254
- }
2255
- interface LogoutParams {
2256
- }
2257
- interface GetStoresParams {
2258
- query?: string | number;
2259
- limit?: number;
2260
- cursor?: string;
2261
- sort_field?: string;
2262
- sort_direction?: "asc" | "desc";
2263
- }
2264
- interface GetSubscriptionPlansParams {
2265
- }
2266
- interface SetupAnalyticsParams {
2267
- store_id?: string;
2268
- }
2269
- interface GetStoreMediaParams2 {
2270
- id: string;
2271
- cursor?: string | null;
2272
- limit: number;
2273
- ids?: string[];
2274
- query?: string | number;
2275
- mime_type?: string;
2276
- sort_field?: string;
2277
- sort_direction?: 'asc' | 'desc';
2278
- }
2279
- interface ProcessOrderRefundParams {
2280
- id: string;
2281
- amount: number;
2282
- }
2283
- type SystemTemplateKey = "system:user-invitation" | "system:order-status-update" | "system:user-confirmation" | "system:forgot-password";
2284
- interface GetAvailabilityParams {
2285
- store_id?: string;
2286
- service_id: string;
2287
- from: number;
2288
- to: number;
2289
- provider_id?: string;
2290
- }
2291
- interface AvailabilitySlot {
2292
- from: number;
2293
- to: number;
2294
- spots: number;
2295
- }
2296
- interface DaySlots {
2297
- date: string;
2298
- slots: AvailabilitySlot[];
2299
- }
2300
- interface ProviderAvailability {
2301
- provider_id: string;
2302
- provider_key: string;
2303
- days: DaySlots[];
2304
- }
2305
- interface AvailabilityResponse {
2306
- from: number;
2307
- to: number;
2308
- providers: ProviderAvailability[];
2309
- }
2310
- interface Slot {
2311
- id: string;
2312
- service_id: string;
2313
- provider_id: string;
2314
- from: number;
2315
- to: number;
2316
- time_text: string;
2317
- date_text: string;
2318
- }
2319
- interface CreateWorkflowParams {
2320
- store_id?: string;
2321
- key: string;
2322
- status?: WorkflowStatus;
2323
- nodes: Record<string, WorkflowNode>;
2324
- edges: WorkflowEdge[];
2325
- schedule?: string;
2326
- }
2327
- interface UpdateWorkflowParams {
2328
- id: string;
2329
- store_id?: string;
2330
- key: string;
2331
- status?: WorkflowStatus;
2332
- nodes: Record<string, WorkflowNode>;
2333
- edges: WorkflowEdge[];
2334
- schedule?: string;
2335
- }
2336
- interface DeleteWorkflowParams {
2337
- id: string;
2338
- store_id?: string;
2339
- }
2340
- interface GetWorkflowParams {
2341
- id: string;
2342
- store_id?: string;
2343
- }
2344
- interface GetWorkflowsParams {
2345
- store_id?: string;
2346
- ids?: string[];
2347
- query?: string | number;
2348
- status?: WorkflowStatus;
2349
- limit?: number;
2350
- cursor?: string;
2351
- sort_field?: string;
2352
- sort_direction?: 'asc' | 'desc';
2353
- created_at_from?: number;
2354
- created_at_to?: number;
2355
- }
2356
- interface TriggerWorkflowParams {
2357
- secret: string;
2358
- input?: Record<string, unknown>;
2359
- }
2360
- interface GetWorkflowExecutionsParams {
2361
- workflow_id: string;
2362
- store_id?: string;
2363
- status?: ExecutionStatus;
2364
- limit?: number;
2365
- cursor?: string;
2366
- }
2367
- interface GetWorkflowExecutionParams {
2368
- workflow_id: string;
2369
- execution_id: string;
2370
- store_id?: string;
2371
- }
2372
- interface CreateAudienceParams {
2373
- key: string;
2374
- type?: AudienceType;
2375
- confirm_template_id?: string;
2376
- }
2377
- interface UpdateAudienceParams {
2378
- id: string;
2379
- key?: string;
2380
- status?: AudienceStatus;
2381
- confirm_template_id?: string;
2382
- }
2383
- interface GetAudienceParams {
2384
- id?: string;
2385
- key?: string;
2386
- }
2387
- interface GetAudiencesParams {
2388
- store_id?: string;
2389
- ids?: string[];
2390
- status?: AudienceStatus;
2391
- query?: string | number;
2392
- limit?: number;
2393
- cursor?: string;
2394
- }
2395
- interface SubscribeAudienceParams {
2396
- id: string;
2397
- customer_id: string;
2398
- price_id?: string;
2399
- success_url?: string;
2400
- cancel_url?: string;
2401
- confirm_url?: string;
2402
- }
2403
- interface DeleteAudienceParams {
2404
- id: string;
2405
- }
2406
- interface GetAudienceSubscribersParams {
2407
- id: string;
2408
- limit?: number;
2409
- cursor?: string;
2410
- }
2411
- interface AudienceSubscriber {
2412
- customer_id: string;
2413
- email: string;
2414
- subscribed_at?: number;
2415
- source?: AudienceSubscriptionSource;
2416
- status?: AudienceSubscriptionStatus;
2417
- }
2418
- interface RemoveAudienceSubscriberParams {
2419
- id: string;
2420
- customer_id: string;
2421
- }
2422
- interface AddAudienceSubscriberParams {
2423
- id: string;
2424
- customer_id: string;
2425
- }
2426
- interface AddAudienceSubscriberResponse {
2427
- subscriber: AudienceSubscriber | null;
2428
- skipped: boolean;
2429
- }
2430
- interface OAuthConnectParams {
2431
- store_id: string;
2432
- provider: string;
2433
- code: string;
2434
- redirect_uri: string;
2435
- }
2436
- interface OAuthDisconnectParams {
2437
- store_id: string;
2438
- provider: string;
2439
- }
2440
- interface ListIntegrationsParams {
2441
- store_id: string;
2442
- }
2443
- interface GetIntegrationParams {
2444
- store_id: string;
2445
- id: string;
2446
- }
2447
- interface CreateIntegrationParams {
2448
- store_id: string;
2449
- key: string;
2450
- provider: IntegrationProvider;
2451
- }
2452
- interface UpdateIntegrationParams {
2453
- store_id: string;
2454
- id: string;
2455
- key?: string;
2456
- provider?: IntegrationProvider;
2457
- }
2458
- interface DeleteIntegrationParams {
2459
- store_id: string;
2460
- id: string;
2461
- }
2462
- interface ListWebhooksParams {
2463
- store_id: string;
2464
- }
2465
- interface CreateWebhookParams {
2466
- store_id: string;
2467
- key: string;
2468
- url: string;
2469
- events: WebhookEventSubscription[];
2470
- headers: Record<string, string>;
2471
- secret: string;
2472
- enabled: boolean;
2473
- }
2474
- interface UpdateWebhookParams {
2475
- store_id: string;
2476
- id: string;
2477
- key: string;
2478
- url: string;
2479
- events: WebhookEventSubscription[];
2480
- headers: Record<string, string>;
2481
- secret: string;
2482
- enabled: boolean;
2483
- }
2484
- interface DeleteWebhookParams {
2485
- store_id: string;
2486
- id: string;
2487
- }
2488
- interface GetShippingRatesParams {
2489
- order_id: string;
2490
- shipping_provider_id: string;
2491
- from_address: Address;
2492
- to_address: Address;
2493
- parcel: Parcel;
2494
- customs_declaration?: CustomsDeclaration;
2495
- }
2496
- interface ShipParams {
2497
- order_id: string;
2498
- rate_id: string;
2499
- carrier: string;
2500
- service: string;
2501
- location_id: string;
2502
- lines: ShipmentLine[];
2503
- }
2504
- type AgentStatus = 'active' | 'draft' | 'archived';
2505
- interface CreateAgentParams {
2506
- store_id?: string;
2507
- key: string;
2508
- prompt: string;
2509
- status?: AgentStatus;
2510
- model_id: string;
2511
- channel_ids?: string[];
2512
- tools?: string[];
2513
- }
2514
- interface UpdateAgentParams {
2515
- id: string;
2516
- store_id?: string;
2517
- key: string;
2518
- prompt: string;
2519
- status: AgentStatus;
2520
- model_id: string;
2521
- channel_ids?: string[];
2522
- tools?: string[];
2523
- }
2524
- interface DeleteAgentParams {
2525
- id: string;
2526
- store_id?: string;
2527
- }
2528
- interface GetAgentParams {
2529
- id: string;
2530
- store_id?: string;
2531
- }
2532
- interface GetAgentsParams {
2533
- store_id?: string;
2534
- limit?: number;
2535
- cursor?: string;
2536
- status?: AgentStatus;
2537
- }
2538
- interface RunAgentParams {
2539
- id: string;
2540
- store_id?: string;
2541
- message: string;
2542
- chat_id?: string;
2543
- direct?: boolean;
2544
- }
2545
- interface GetAgentChatsParams {
2546
- id: string;
2547
- store_id?: string;
2548
- limit?: number;
2549
- cursor?: string;
2550
- }
2551
- interface GetStoreChatsParams {
2552
- store_id?: string;
2553
- agent_id?: string;
2554
- customer_id?: string;
2555
- status?: AgentChatStatus;
2556
- query?: string | number;
2557
- sort_field?: string;
2558
- sort_direction?: 'asc' | 'desc';
2559
- limit?: number;
2560
- cursor?: string;
2561
- }
2562
- interface GetAgentChatParams {
2563
- id: string;
2564
- store_id?: string;
2565
- chat_id: string;
2566
- }
2567
- interface UpdateAgentChatParams {
2568
- id: string;
2569
- store_id?: string;
2570
- chat_id: string;
2571
- status: 'active' | 'archived';
2572
- }
2573
- interface RateAgentChatParams {
2574
- id: string;
2575
- store_id?: string;
2576
- chat_id: string;
2577
- rating: number;
2578
- comment?: string;
2579
- }
2580
- interface AuthToken {
2581
- id: string;
2582
- access_token: string;
2583
- refresh_token: string;
2584
- access_expires_at: number;
2585
- refresh_expires_at: number;
2586
- created_at: number;
2587
- is_verified: boolean;
2588
- }
2589
- interface CustomerInfo {
2590
- id: string;
2591
- verified: boolean;
2592
- }
2593
- interface CustomerAuthToken {
2594
- id: string;
2595
- token: string;
2596
- created_at: number;
2597
- }
2598
- interface CustomerVerificationCode {
2599
- code: string;
2600
- created_at: number;
2601
- used: boolean;
2602
- store_id?: string | null;
2603
- }
2604
- interface PromoUsage {
2605
- promo_code_id: string;
2606
- uses: number;
2607
- }
2608
- interface Customer {
2609
- id: string;
2610
- store_id: string;
2611
- email: string | null;
2612
- verified: boolean;
2613
- status: CustomerStatus;
2614
- promo_usage: PromoUsage[];
2615
- taxonomies: TaxonomyEntry[];
2616
- auth_tokens: CustomerAuthToken[];
2617
- verification_codes: CustomerVerificationCode[];
2618
- created_at: number;
2619
- updated_at: number;
2620
- }
2621
- interface CustomerDetail {
2622
- customer: Customer;
2623
- carts: Cart[];
2624
- orders: Order[];
2625
- audience_subscriptions: AudienceSubscription[];
2626
- form_submissions: FormSubmission[];
2627
- }
2628
- interface SetCustomerEmailParams {
2629
- email: string;
2630
- store_id?: string;
2631
- }
2632
- interface CreateCustomerParams {
2633
- store_id?: string;
2634
- email: string;
2635
- taxonomies?: TaxonomyEntry[];
2636
- }
2637
- interface UpdateCustomerParams {
2638
- id: string;
2639
- store_id?: string;
2640
- email?: string;
2641
- taxonomies?: TaxonomyEntry[];
2642
- status?: CustomerStatus;
2643
- }
2644
- interface GetCustomerParams {
2645
- id: string;
2646
- store_id?: string;
2647
- }
2648
- interface FindCustomersParams {
2649
- store_id?: string;
2650
- query?: string | number;
2651
- taxonomy_query?: TaxonomyQuery[];
2652
- status?: CustomerStatus;
2653
- has_activity?: boolean;
2654
- has_cart?: boolean;
2655
- limit?: number;
2656
- cursor?: string;
2657
- sort_field?: string;
2658
- sort_direction?: 'asc' | 'desc';
2659
- }
2660
- interface MergeCustomersParams {
2661
- target_id: string;
2662
- source_id: string;
2663
- store_id?: string;
2664
- }
2665
-
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 };
1
+ export { dg as Access, l as Account, fX as AccountAddress, fY as AccountApiToken, fE as AccountLifecycle, ew as AccountToken, j as AccountUpdateResponse, A as AddCartItemParams, H as AddMemberParams, bJ as AddProfileListProfileParams, db as Address, cN as ApiResponse, g as AuthToken, bf as AvailabilityResponse, f0 as AvailabilitySlot, ar as Block, fB as BlockType, bX as Campaign, c2 as CampaignLaunchReadiness, cf as CampaignMessage, fG as CampaignMessageCopySource, eK as CampaignMessageDirection, eL as CampaignMessageKind, eM as CampaignMessageStatus, c7 as CampaignRecipient, c9 as CampaignRecipientConversationResponse, eq as CampaignRecipientDraft, fL as CampaignRecipientImportResult, fF as CampaignRecipientImportSource, eJ as CampaignRecipientStatus, eI as CampaignStatus, cr as CancelLeadResearchRunParams, C as Cart, cP as CartOrigin, cQ as CartStatus, e as CheckoutCartParams, fi as CheckoutItemInput, d as ClearCartParams, ez as Condition, f9 as ConditionValue, bW as CreateCampaignParams, b6 as CreateCartParams, aO as CreateEmailTemplateParams, aw as CreateFormParams, Z as CreateIntegrationParams, cm as CreateLeadResearchRunParams, n as CreateLocationParams, bO as CreateMailboxParams, q as CreateMarketParams, am as CreateNodeParams, F as CreatePortalSessionParams, aW as CreateProductParams, fS as CreateProductVariantInput, bA as CreateProfileListParams, br as CreateProfileParams, ac as CreatePromoCodeParams, bl as CreateProviderParams, b8 as CreateServiceParams, bi as CreateServiceProviderParams, t as CreateStoreParams, ch as CreateSuppressionParams, aH as CreateTaxonomyParams, a2 as CreateWebhookParams, cz as CreateWorkflowParams, dG as CustomsDeclaration, dF as CustomsItem, f1 as DaySlots, D as DeleteAccountParams, aR as DeleteEmailTemplateParams, az as DeleteFormParams, $ as DeleteIntegrationParams, p as DeleteLocationParams, s as DeleteMarketParams, ap as DeleteNodeParams, aZ as DeleteProductParams, af as DeletePromoCodeParams, bo as DeleteProviderParams, bb as DeleteServiceParams, bk as DeleteServiceProviderParams, a7 as DeleteStoreMediaParams, v as DeleteStoreParams, aK as DeleteTaxonomyParams, a4 as DeleteWebhookParams, cC as DeleteWorkflowParams, ey as Discount, c0 as DuplicateCampaignParams, aP as EmailTemplate, eX as EmailTemplateStatus, eY as EmailTemplateVariable, cO as EshopCartItem, f5 as EshopItem, f6 as EshopQuoteItem, cR as EshopStoreState, dw as Event, dx as EventAction, dt as ExecutionStatus, cy as FindActivitiesParams, ce as FindCampaignMessagesParams, c6 as FindCampaignRecipientsParams, b_ as FindCampaignsParams, b7 as FindCartsParams, cu as FindLeadResearchMessagesParams, co as FindLeadResearchRunsParams, bV as FindMailboxesParams, bN as FindProfileListProfilesParams, bE as FindProfileListsParams, bv as FindProfilesParams, bg as FindServiceProvidersParams, cl as FindSuppressionsParams, ax as Form, ea as FormEntry, e8 as FormField, e9 as FormFieldType, e6 as FormSchema, e7 as FormSchemaType, eZ as FormStatus, aD as FormSubmission, e5 as GalleryItem, c5 as GenerateOutreachPersonalizedDraftsParams, dc as GeoLocation, dH as GeoLocationBlock, fC as GeoLocationBlockProperties, fD as GeoLocationValue, fP as GetAnalyticsHealthParams, fO as GetAnalyticsParams, be as GetAvailabilityParams, c1 as GetCampaignLaunchReadinessParams, bZ as GetCampaignParams, c8 as GetCampaignRecipientConversationParams, b as GetCartParams, G as GetCurrentCartParams, fQ as GetDeliveryStatsParams, aS as GetEmailTemplateParams, aT as GetEmailTemplatesParams, aA as GetFormParams, aF as GetFormSubmissionParams, aE as GetFormSubmissionsParams, aB as GetFormsParams, g0 as GetIntegrationParams, cp as GetLeadResearchRunParams, bR as GetMailboxParams, k as GetMeParams, a5 as GetMediaParams, av as GetNodeChildrenParams, aq as GetNodeParams, au as GetNodesParams, b2 as GetOrderParams, b3 as GetOrdersParams, a_ as GetProductParams, a$ as GetProductsParams, bD as GetProfileListParams, bt as GetProfileParams, ag as GetPromoCodeParams, ah as GetPromoCodesParams, bp as GetProviderParams, bq as GetProvidersParams, b4 as GetQuoteParams, bc as GetServiceParams, bd as GetServicesParams, ai as GetShippingRatesParams, a8 as GetStoreMediaParams, K as GetStoreMediaParams2, w as GetStoreParams, x as GetStoresParams, z as GetSubscriptionPlansParams, ck as GetSuppressionParams, aM as GetTaxonomiesParams, aN as GetTaxonomyChildrenParams, aL as GetTaxonomyParams, cI as GetWorkflowExecutionParams, cH as GetWorkflowExecutionsParams, cD as GetWorkflowParams, cE as GetWorkflowsParams, e1 as HistoryEntry, c3 as ImportCampaignRecipientsParams, fp as ImportFieldMapping, fq as ImportPreviewRow, bH as ImportProfileListPreviewParams, fv as ImportProfileListRowResult, ft as ImportProfileRowError, fs as ImportProfileRowInput, fu as ImportProfileRowResult, bF as ImportProfilesIntoProfileListParams, bG as ImportProfilesIntoProfileListResult, by as ImportProfilesParams, fr as ImportProfilesPreviewParams, bI as ImportProfilesPreviewResult, bz as ImportProfilesResult, W as Integration, cT as IntegrationProvider, fx as IntervalPeriod, e4 as InventoryLevel, I as InviteUserParams, df as Language, b$ as LaunchCampaignParams, es as LeadEmailClassification, cx as LeadEmailValidationResult, cv as LeadResearchMessage, cn as LeadResearchRun, er as LeadResearchRunStatus, et as LeadValidationCheck, eu as LeadValidationCheckStatus, Y as ListIntegrationsParams, a0 as ListWebhooksParams, L as Location, fN as LoginAccountParams, f_ as LogoutParams, h as MagicLinkRequestParams, f as MagicLinkVerifyParams, bP as Mailbox, eh as MailboxConnectionSecurity, ej as MailboxPreset, ei as MailboxProvider, eH as MailboxStatus, ek as MailboxSyncStatus, M as Market, N as Media, dh as MediaResolution, bx as MergeProfilesParams, an as Node, du as NodeResult, at as NodeStatus, V as OAuthConnectParams, X as OAuthDisconnectParams, b1 as Order, e0 as OrderCancellationReason, fj as OrderCheckoutCompatibleItemInput, fh as OrderCheckoutItemInput, fM as OrderCheckoutParams, a as OrderCheckoutResult, dO as OrderItem, dP as OrderItemSnapshot, dZ as OrderItemStatus, cV as OrderPayment, cY as OrderPaymentPromoCode, cZ as OrderPaymentProvider, c_ as OrderPaymentRefund, d$ as OrderPaymentStatus, cW as OrderPaymentTax, cX as OrderPaymentTaxLine, O as OrderQuote, fe as OrderQuoteCompatibleItemInput, fc as OrderQuoteItemInput, dz as OrderShipping, d_ as OrderStatus, fU as OrderUpdateItem, eo as OutreachPersonalizationCounters, ep as OutreachPersonalizationState, eN as OutreachPersonalizationStatus, em as OutreachStep, en as OutreachStepVariant, eO as OutreachStepVariantStatus, eP as OutreachThreadMode, y as PaginatedResponse, dB as Parcel, d7 as PaymentMethod, e$ as PaymentMethodType, fw as PaymentTaxLine, bU as PrepareMailboxParams, aU as PreviewEmailTemplateParams, aV as PreviewEmailTemplateResponse, fZ as PreviewEmailTemplateWarning, cU as Price, fz as PriceProvider, b5 as ProcessOrderRefundParams, aX as Product, ff as ProductCheckoutItemInput, e3 as ProductInventory, dQ as ProductLineItem, dS as ProductLineItemSnapshot, fa as ProductQuoteItemInput, dV as ProductQuoteLine, dX as ProductQuoteLineAvailability, eC as ProductStatus, e2 as ProductVariant, P as Profile, fI as ProfileAuthToken, bu as ProfileDetail, g1 as ProfileInfo, bB as ProfileList, cL as ProfileListAccessParams, cM as ProfileListAccessResponse, bK as ProfileListMember, eg as ProfileListMembership, d5 as ProfileListMembershipPayment, d6 as ProfileListMembershipProvider, eG as ProfileListMembershipStatus, eF as ProfileListSource, eE as ProfileListStatus, cK as ProfileListSubscribeResponse, dv as ProfileListType, eD as ProfileStatus, fJ as ProfileVerificationCode, ad as PromoCode, eW as PromoCodeStatus, de as PromoCodeValidation, fK as PromoUsage, bm as Provider, f2 as ProviderAvailability, eB as ProviderStatus, dJ as ProviderTimelinePoint, di as ProviderWithTimeline, dC as PurchaseLabelResult, Q as QuoteCartParams, fd as QuoteItemInput, dU as QuoteLine, c as RemoveCartItemParams, J as RemoveMemberParams, bM as RemoveProfileListProfileParams, cc as ReplyCampaignRecipientParams, R as RequestOptions, ev as ResearchProfileListMember, m as SearchAccountsParams, fW as SearchOrderServiceItemsParams, cs as SendLeadResearchMessageParams, ct as SendLeadResearchMessageResult, b9 as Service, fg as ServiceCheckoutItemInput, f7 as ServiceCheckoutPart, dI as ServiceDuration, dR as ServiceLineItem, dT as ServiceLineItemSnapshot, bh as ServiceProvider, fV as ServiceProviderInput, f8 as ServiceQuoteItem, fb as ServiceQuoteItemInput, dW as ServiceQuoteLine, dY as ServiceQuoteLineAvailability, eA as ServiceStatus, g2 as SetProfileEmailParams, f$ as SetupAnalyticsParams, ak as ShipParams, al as ShipResult, dE as Shipment, dD as ShipmentLine, dA as ShippingAddress, d8 as ShippingMethod, aj as ShippingRate, dy as ShippingStatus, d9 as ShippingWeightTier, f3 as Slot, f4 as SlotRange, el as SmtpImapMailboxProvider, dN as SpecificDate, cd as StopCampaignRecipientParams, S as Store, fA as StoreEmails, ex as StoreMembership, fR as StoreRole, c$ as StoreSubscription, d0 as StoreSubscriptionPayment, d1 as StoreSubscriptionProvider, d3 as StoreSubscriptionSource, d2 as StoreSubscriptionStatus, aC as SubmitFormParams, E as SubscribeParams, cJ as SubscribeProfileListParams, fy as SubscriptionInterval, B as SubscriptionPlan, d4 as SubscriptionPrice, ci as Suppression, eT as SuppressionReason, eS as SuppressionScopeType, eU as SuppressionSource, eQ as SuppressionStatus, eR as SuppressionTargetType, fo as SystemTemplateKey, aI as Taxonomy, as as TaxonomyEntry, ee as TaxonomyField, ef as TaxonomyFieldQuery, eb as TaxonomyQuery, ec as TaxonomySchema, ed as TaxonomySchemaType, e_ as TaxonomyStatus, bS as TestMailboxParams, bT as TestMailboxResult, T as TestWebhookParams, fH as TimeRange, dK as TimelinePoint, aa as TrackEmailOpenParams, ab as TriggerNotificationParams, cF as TriggerWorkflowParams, fn as TrustedOrderCheckoutCompatibleItemInput, fm as TrustedOrderCheckoutItemInput, fk as TrustedProductCheckoutItemInput, fl as TrustedServiceCheckoutItemInput, i as UpdateAccountProfileParams, cg as UpdateCampaignMessageParams, bY as UpdateCampaignParams, cb as UpdateCampaignRecipientDraftParams, ca as UpdateCampaignRecipientParams, U as UpdateCartParams, aQ as UpdateEmailTemplateParams, ay as UpdateFormParams, aG as UpdateFormSubmissionParams, _ as UpdateIntegrationParams, cq as UpdateLeadResearchRunParams, o as UpdateLocationParams, bQ as UpdateMailboxParams, r as UpdateMarketParams, a9 as UpdateMediaParams, ao as UpdateNodeParams, b0 as UpdateOrderParams, aY as UpdateProductParams, fT as UpdateProductVariantInput, bC as UpdateProfileListParams, bL as UpdateProfileListProfileParams, bw as UpdateProfileParams, ae as UpdatePromoCodeParams, bn as UpdateProviderParams, ba as UpdateServiceParams, bj as UpdateServiceProviderParams, u as UpdateStoreParams, cj as UpdateSuppressionParams, aJ as UpdateTaxonomyParams, a3 as UpdateWebhookParams, cB as UpdateWorkflowParams, a6 as UploadStoreMediaParams, cw as ValidateLeadEmailParams, a1 as Webhook, cS as WebhookEventSubscription, cA as Workflow, dk as WorkflowEdge, cG as WorkflowExecution, ds as WorkflowHttpMethod, dm as WorkflowHttpNode, dr as WorkflowLoopNode, dj as WorkflowNode, eV as WorkflowStatus, dn as WorkflowSwitchNode, dp as WorkflowSwitchRule, dq as WorkflowTransformNode, dl as WorkflowTriggerNode, dM as WorkingDay, dL as WorkingHour, da as Zone, dd as ZoneLocation } from './api-BbBHcd4p.cjs';