arky-sdk 0.7.78 → 0.7.84

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
@@ -3,19 +3,19 @@ declare enum PaymentMethodType {
3
3
  CreditCard = "credit_card"
4
4
  }
5
5
  interface PaymentTaxLine {
6
- rateBps: number;
6
+ rate_bps: number;
7
7
  amount: number;
8
8
  label?: string;
9
9
  scope?: string;
10
10
  }
11
11
  interface BookingPaymentTax {
12
12
  amount: number;
13
- modeSnapshot?: string;
14
- rateBps: number;
13
+ mode_snapshot?: string;
14
+ rate_bps: number;
15
15
  lines: BookingPaymentTaxLine[];
16
16
  }
17
17
  interface BookingPaymentTaxLine {
18
- rateBps: number;
18
+ rate_bps: number;
19
19
  amount: number;
20
20
  label?: string;
21
21
  scope?: string;
@@ -28,15 +28,15 @@ interface BookingPaymentPromoCode {
28
28
  }
29
29
  type BookingPaymentProvider = {
30
30
  type: 'stripe';
31
- customerId: string;
32
- paymentIntentId?: string;
31
+ customer_id: string;
32
+ payment_intent_id?: string;
33
33
  };
34
34
  interface BookingPaymentRefund {
35
35
  id: string;
36
36
  total: number;
37
- providerRefundId?: string;
37
+ provider_refund_id?: string;
38
38
  status: string;
39
- createdAt: number;
39
+ created_at: number;
40
40
  }
41
41
  interface BookingPayment {
42
42
  currency: string;
@@ -46,20 +46,20 @@ interface BookingPayment {
46
46
  total: number;
47
47
  paid: number;
48
48
  tax?: BookingPaymentTax;
49
- promoCode?: BookingPaymentPromoCode;
49
+ promo_code?: BookingPaymentPromoCode;
50
50
  provider?: BookingPaymentProvider;
51
51
  refunds: BookingPaymentRefund[];
52
- paymentMethodId?: string;
53
- methodType: PaymentMethodType;
52
+ payment_method_id?: string;
53
+ method_type: PaymentMethodType;
54
54
  }
55
55
  interface OrderPaymentTax {
56
56
  amount: number;
57
- modeSnapshot?: string;
58
- rateBps: number;
57
+ mode_snapshot?: string;
58
+ rate_bps: number;
59
59
  lines: OrderPaymentTaxLine[];
60
60
  }
61
61
  interface OrderPaymentTaxLine {
62
- rateBps: number;
62
+ rate_bps: number;
63
63
  amount: number;
64
64
  label?: string;
65
65
  scope?: string;
@@ -72,15 +72,15 @@ interface OrderPaymentPromoCode {
72
72
  }
73
73
  type OrderPaymentProvider = {
74
74
  type: 'stripe';
75
- customerId: string;
76
- paymentIntentId?: string;
75
+ customer_id: string;
76
+ payment_intent_id?: string;
77
77
  };
78
78
  interface OrderPaymentRefund {
79
79
  id: string;
80
80
  total: number;
81
- providerRefundId?: string;
81
+ provider_refund_id?: string;
82
82
  status: string;
83
- createdAt: number;
83
+ created_at: number;
84
84
  }
85
85
  interface OrderPayment {
86
86
  currency: string;
@@ -91,16 +91,16 @@ interface OrderPayment {
91
91
  total: number;
92
92
  paid: number;
93
93
  tax?: OrderPaymentTax;
94
- promoCode?: OrderPaymentPromoCode;
94
+ promo_code?: OrderPaymentPromoCode;
95
95
  provider?: OrderPaymentProvider;
96
96
  refunds: OrderPaymentRefund[];
97
- zoneId?: string;
98
- paymentMethodId?: string;
99
- shippingMethodId?: string;
100
- methodType: PaymentMethodType;
97
+ zone_id?: string;
98
+ payment_method_id?: string;
99
+ shipping_method_id?: string;
100
+ method_type: PaymentMethodType;
101
101
  }
102
102
  interface PromoCodeValidation {
103
- promoCodeId: string;
103
+ promo_code_id: string;
104
104
  code: string;
105
105
  discounts: any[];
106
106
  conditions: any[];
@@ -112,13 +112,13 @@ interface BookingQuote {
112
112
  discount: number;
113
113
  tax: number;
114
114
  total: number;
115
- paymentMethod: PaymentMethod | null;
116
- paymentMethods: PaymentMethod[];
117
- promoCode: PromoCodeValidation | null;
115
+ payment_method: PaymentMethod | null;
116
+ payment_methods: PaymentMethod[];
117
+ promo_code: PromoCodeValidation | null;
118
118
  payment: BookingPayment;
119
- chargeAmount: number;
119
+ charge_amount: number;
120
120
  id?: string;
121
- expiresAt?: number;
121
+ expires_at?: number;
122
122
  }
123
123
  interface OrderQuote {
124
124
  market: string;
@@ -128,21 +128,21 @@ interface OrderQuote {
128
128
  discount: number;
129
129
  tax: number;
130
130
  total: number;
131
- shippingMethod: ShippingMethod | null;
132
- paymentMethod: PaymentMethod | null;
133
- paymentMethods: PaymentMethod[];
134
- promoCode: PromoCodeValidation | null;
131
+ shipping_method: ShippingMethod | null;
132
+ payment_method: PaymentMethod | null;
133
+ payment_methods: PaymentMethod[];
134
+ promo_code: PromoCodeValidation | null;
135
135
  payment: OrderPayment;
136
- chargeAmount: number;
136
+ charge_amount: number;
137
137
  id?: string;
138
- expiresAt?: number;
138
+ expires_at?: number;
139
139
  }
140
140
  interface Price {
141
141
  currency: string;
142
142
  market: string;
143
143
  amount: number;
144
- compareAt?: number;
145
- audienceId?: string;
144
+ compare_at?: number;
145
+ audience_id?: string;
146
146
  }
147
147
  type IntervalPeriod = 'month' | 'year';
148
148
  interface SubscriptionInterval {
@@ -156,7 +156,7 @@ interface PriceProvider {
156
156
  interface SubscriptionPrice {
157
157
  currency: string;
158
158
  amount: number;
159
- compareAt?: number;
159
+ compare_at?: number;
160
160
  interval?: SubscriptionInterval;
161
161
  providers: PriceProvider[];
162
162
  }
@@ -167,7 +167,7 @@ interface Address {
167
167
  street2?: string | null;
168
168
  city: string;
169
169
  state: string;
170
- postalCode: string;
170
+ postal_code: string;
171
171
  country: string;
172
172
  phone?: string | null;
173
173
  email?: string | null;
@@ -183,190 +183,187 @@ interface ZoneLocation {
183
183
  country?: string | null;
184
184
  state?: string | null;
185
185
  city?: string | null;
186
- postalCode?: string | null;
186
+ postal_code?: string | null;
187
187
  }
188
188
  interface EshopCartItem {
189
189
  id: string;
190
- productId: string;
191
- variantId: string;
192
- productName: string;
193
- productSlug: string;
194
- variantAttributes: Record<string, any>;
190
+ product_id: string;
191
+ variant_id: string;
192
+ product_name: string;
193
+ product_slug: string;
194
+ variant_attributes: Record<string, any>;
195
195
  price: Price;
196
196
  quantity: number;
197
- addedAt: number;
198
- maxStock?: number;
197
+ added_at: number;
198
+ max_stock?: number;
199
199
  }
200
200
  interface BookingCartItem {
201
201
  id: string;
202
- serviceId: string;
203
- serviceName: string;
202
+ service_id: string;
203
+ service_name: string;
204
204
  date: string;
205
205
  from: number;
206
206
  to: number;
207
- timeText: string;
208
- providerId?: string;
207
+ time_text: string;
208
+ provider_id?: string;
209
209
  forms: any[];
210
210
  }
211
211
  type IntegrationProvider = {
212
212
  type: 'stripe';
213
- secretKey?: string;
214
- publishableKey: string;
215
- webhookSecret?: string;
213
+ secret_key?: string;
214
+ publishable_key: string;
215
+ webhook_secret?: string;
216
216
  currency: string;
217
217
  } | {
218
218
  type: 'shippo';
219
- apiToken?: string;
219
+ api_token?: string;
220
220
  } | {
221
221
  type: 'google';
222
- clientId?: string;
223
- clientSecret?: string;
224
- accessToken?: string;
225
- refreshToken?: string;
226
- tokenExpiresAt?: number;
222
+ client_id?: string;
223
+ client_secret?: string;
224
+ access_token?: string;
225
+ refresh_token?: string;
226
+ token_expires_at?: number;
227
227
  scopes: string[];
228
- accountEmail?: string | null;
229
- connectedAt: number;
230
- } | {
231
- type: 'google_analytics4';
232
- measurementId: string;
228
+ account_email?: string | null;
229
+ connected_at: number;
233
230
  } | {
234
231
  type: 'telegram_bot';
235
- botToken?: string;
232
+ bot_token?: string;
236
233
  } | {
237
234
  type: 'deep_seek';
238
- apiKey?: string;
235
+ api_key?: string;
239
236
  model?: string;
240
237
  } | {
241
238
  type: 'open_ai';
242
- apiKey?: string;
239
+ api_key?: string;
243
240
  model?: string;
244
241
  } | {
245
242
  type: 'slack';
246
- apiKey?: string;
243
+ api_key?: string;
247
244
  } | {
248
245
  type: 'discord';
249
- apiKey?: string;
246
+ api_key?: string;
250
247
  } | {
251
248
  type: 'whats_app';
252
- apiKey?: string;
249
+ api_key?: string;
253
250
  } | {
254
251
  type: 'resend';
255
- apiKey?: string;
252
+ api_key?: string;
256
253
  } | {
257
254
  type: 'send_grid';
258
- apiKey?: string;
255
+ api_key?: string;
259
256
  } | {
260
257
  type: 'airtable';
261
- apiKey?: string;
258
+ api_key?: string;
262
259
  } | {
263
260
  type: 'linear';
264
- apiKey?: string;
261
+ api_key?: string;
265
262
  } | {
266
263
  type: 'git_hub';
267
- apiKey?: string;
264
+ api_key?: string;
268
265
  } | {
269
266
  type: 'git_lab';
270
- apiKey?: string;
267
+ api_key?: string;
271
268
  } | {
272
269
  type: 'dropbox';
273
- apiKey?: string;
270
+ api_key?: string;
274
271
  } | {
275
272
  type: 'hub_spot';
276
- apiKey?: string;
273
+ api_key?: string;
277
274
  } | {
278
275
  type: 'monday';
279
- apiKey?: string;
276
+ api_key?: string;
280
277
  } | {
281
278
  type: 'click_up';
282
- apiKey?: string;
279
+ api_key?: string;
283
280
  } | {
284
281
  type: 'pipedrive';
285
- apiKey?: string;
282
+ api_key?: string;
286
283
  } | {
287
284
  type: 'calendly';
288
- apiKey?: string;
285
+ api_key?: string;
289
286
  } | {
290
287
  type: 'typeform';
291
- apiKey?: string;
288
+ api_key?: string;
292
289
  } | {
293
290
  type: 'webflow';
294
- apiKey?: string;
291
+ api_key?: string;
295
292
  } | {
296
293
  type: 'trello';
297
- apiKey?: string;
294
+ api_key?: string;
298
295
  } | {
299
296
  type: 'replicate';
300
- apiKey?: string;
297
+ api_key?: string;
301
298
  } | {
302
299
  type: 'asana';
303
- apiKey?: string;
300
+ api_key?: string;
304
301
  } | {
305
302
  type: 'brevo';
306
- apiKey?: string;
303
+ api_key?: string;
307
304
  } | {
308
305
  type: 'intercom';
309
- apiKey?: string;
306
+ api_key?: string;
310
307
  } | {
311
308
  type: 'notion';
312
- apiKey?: string;
309
+ api_key?: string;
313
310
  } | {
314
311
  type: 'eleven_labs';
315
- apiKey?: string;
312
+ api_key?: string;
316
313
  } | {
317
314
  type: 'active_campaign';
318
- apiKey?: string;
319
- accountUrl: string;
315
+ api_key?: string;
316
+ account_url: string;
320
317
  } | {
321
318
  type: 'shopify';
322
- apiKey?: string;
323
- storeDomain: string;
319
+ api_key?: string;
320
+ store_domain: string;
324
321
  } | {
325
322
  type: 'supabase';
326
- apiKey?: string;
327
- projectUrl: string;
323
+ api_key?: string;
324
+ project_url: string;
328
325
  } | {
329
326
  type: 'mailchimp';
330
- apiKey?: string;
327
+ api_key?: string;
331
328
  } | {
332
329
  type: 'twilio';
333
- accountSid?: string;
334
- authToken?: string;
330
+ account_sid?: string;
331
+ auth_token?: string;
335
332
  } | {
336
333
  type: 'jira';
337
334
  email?: string;
338
- apiToken?: string;
335
+ api_token?: string;
339
336
  domain: string;
340
337
  } | {
341
338
  type: 'woo_commerce';
342
- consumerKey?: string;
343
- consumerSecret?: string;
344
- storeUrl: string;
339
+ consumer_key?: string;
340
+ consumer_secret?: string;
341
+ store_url: string;
345
342
  } | {
346
343
  type: 'freshdesk';
347
- apiKey?: string;
344
+ api_key?: string;
348
345
  domain: string;
349
346
  } | {
350
347
  type: 'zendesk';
351
- apiToken?: string;
348
+ api_token?: string;
352
349
  email?: string;
353
350
  subdomain: string;
354
351
  } | {
355
352
  type: 'salesforce';
356
- accessToken?: string;
357
- instanceUrl: string;
353
+ access_token?: string;
354
+ instance_url: string;
358
355
  } | {
359
356
  type: 'zoom';
360
- apiKey?: string;
357
+ api_key?: string;
361
358
  } | {
362
359
  type: 'microsoft_teams';
363
- apiKey?: string;
360
+ api_key?: string;
364
361
  } | {
365
362
  type: 'firebase';
366
- apiKey?: string;
363
+ api_key?: string;
367
364
  } | {
368
365
  type: 'arky';
369
- apiKey?: string;
366
+ api_key?: string;
370
367
  } | {
371
368
  type: 'vercel_deploy_hook';
372
369
  url?: string;
@@ -382,64 +379,64 @@ type IntegrationProvider = {
382
379
  };
383
380
  interface Integration {
384
381
  id: string;
385
- businessId: string;
382
+ business_id: string;
386
383
  key: string;
387
384
  provider: IntegrationProvider;
388
- createdAt: number;
389
- updatedAt: number;
385
+ created_at: number;
386
+ updated_at: number;
390
387
  }
391
388
  interface ShippingWeightTier {
392
- upToGrams: number;
389
+ up_to_grams: number;
393
390
  amount: number;
394
391
  }
395
392
  interface PaymentMethod {
396
393
  id: string;
397
- integrationId?: string;
394
+ integration_id?: string;
398
395
  }
399
396
  interface ShippingMethod {
400
397
  id: string;
401
398
  taxable: boolean;
402
- etaText: string;
403
- locationId?: string;
404
- integrationId?: string;
399
+ eta_text: string;
400
+ location_id?: string;
401
+ integration_id?: string;
405
402
  amount: number;
406
- freeAbove?: number;
407
- weightTiers?: ShippingWeightTier[];
403
+ free_above?: number;
404
+ weight_tiers?: ShippingWeightTier[];
408
405
  }
409
406
  interface Location {
410
407
  id: string;
411
- businessId: string;
408
+ business_id: string;
412
409
  key: string;
413
410
  address: Address;
414
- isPickupLocation: boolean;
415
- createdAt: number;
416
- updatedAt: number;
411
+ is_pickup_location: boolean;
412
+ created_at: number;
413
+ updated_at: number;
417
414
  }
418
415
  interface InventoryLevel {
419
- locationId: string;
416
+ location_id: string;
420
417
  available: number;
421
418
  reserved: number;
422
419
  }
423
420
  interface Zone {
424
421
  id: string;
425
- businessId: string;
426
- marketId: string;
422
+ business_id: string;
423
+ market_id: string;
427
424
  countries: string[];
428
425
  states: string[];
429
- postalCodes: string[];
430
- taxBps: number;
431
- shippingMethods: ShippingMethod[];
426
+ postal_codes: string[];
427
+ tax_bps: number;
428
+ shipping_methods: ShippingMethod[];
432
429
  }
433
430
  interface Market {
434
431
  id: string;
435
- businessId: string;
432
+ business_id: string;
436
433
  key: string;
437
434
  currency: string;
438
- taxMode: "exclusive" | "inclusive";
439
- paymentMethods: PaymentMethod[];
435
+ tax_mode: "exclusive" | "inclusive";
436
+ payment_methods: PaymentMethod[];
440
437
  zones: Zone[];
441
- createdAt: number;
442
- updatedAt: number;
438
+ created_at: number;
439
+ updated_at: number;
443
440
  }
444
441
  interface Language {
445
442
  id: string;
@@ -450,7 +447,7 @@ interface BusinessEmails {
450
447
  }
451
448
  type WebhookEventSubscription = {
452
449
  event: 'node.created';
453
- parentId?: string;
450
+ parent_id?: string;
454
451
  } | {
455
452
  event: 'node.updated';
456
453
  key?: string;
@@ -538,23 +535,23 @@ type WebhookEventSubscription = {
538
535
  };
539
536
  interface Webhook {
540
537
  id: string;
541
- businessId: string;
538
+ business_id: string;
542
539
  key: string;
543
540
  url: string;
544
541
  events: WebhookEventSubscription[];
545
542
  headers: Record<string, string>;
546
543
  secret: string;
547
544
  enabled: boolean;
548
- createdAt: number;
549
- updatedAt: number;
545
+ created_at: number;
546
+ updated_at: number;
550
547
  }
551
548
  type BusinessSubscriptionStatus = 'pending' | 'active' | 'cancellation_scheduled' | 'cancelled' | 'expired';
552
549
  type BusinessSubscriptionSource = 'signup' | 'admin' | 'import';
553
550
  type BusinessSubscriptionProvider = {
554
551
  type: 'stripe';
555
- customerId: string;
556
- subscriptionId?: string;
557
- priceId?: string;
552
+ customer_id: string;
553
+ subscription_id?: string;
554
+ price_id?: string;
558
555
  };
559
556
  interface BusinessSubscriptionPayment {
560
557
  currency: string;
@@ -564,12 +561,12 @@ interface BusinessSubscriptionPayment {
564
561
  interface BusinessSubscription {
565
562
  id: string;
566
563
  target: string;
567
- planId: string;
568
- pendingPlanId: string | null;
564
+ plan_id: string;
565
+ pending_plan_id: string | null;
569
566
  payment: BusinessSubscriptionPayment;
570
567
  status: BusinessSubscriptionStatus;
571
- startDate: number;
572
- endDate: number;
568
+ start_date: number;
569
+ end_date: number;
573
570
  token: string;
574
571
  source: BusinessSubscriptionSource;
575
572
  }
@@ -577,9 +574,9 @@ type AudienceSubscriptionStatus = 'pending' | 'active' | 'cancellation_scheduled
577
574
  type AudienceSubscriptionSource = 'signup' | 'admin' | 'import';
578
575
  type AudienceSubscriptionProvider = {
579
576
  type: 'stripe';
580
- customerId: string;
581
- subscriptionId?: string;
582
- priceId?: string;
577
+ customer_id: string;
578
+ subscription_id?: string;
579
+ price_id?: string;
583
580
  };
584
581
  interface AudienceSubscriptionPayment {
585
582
  currency: string;
@@ -588,19 +585,19 @@ interface AudienceSubscriptionPayment {
588
585
  }
589
586
  interface AudienceSubscription {
590
587
  id: string;
591
- businessId: string;
592
- customerId: string;
593
- audienceId: string;
594
- planId: string;
595
- pendingPlanId: string | null;
588
+ business_id: string;
589
+ customer_id: string;
590
+ audience_id: string;
591
+ plan_id: string;
592
+ pending_plan_id: string | null;
596
593
  payment: AudienceSubscriptionPayment;
597
594
  status: AudienceSubscriptionStatus;
598
- startDate: number;
599
- endDate: number;
595
+ start_date: number;
596
+ end_date: number;
600
597
  token: string;
601
598
  source: AudienceSubscriptionSource;
602
- createdAt: number;
603
- updatedAt: number;
599
+ created_at: number;
600
+ updated_at: number;
604
601
  }
605
602
  interface Business {
606
603
  id: string;
@@ -612,10 +609,10 @@ interface Business {
612
609
  counts?: Record<string, number>;
613
610
  }
614
611
  interface EshopStoreState {
615
- businessId: string;
616
- selectedShippingMethodId: string | null;
617
- userToken: string | null;
618
- processingCheckout: boolean;
612
+ business_id: string;
613
+ selected_shipping_method_id: string | null;
614
+ user_token: string | null;
615
+ processing_checkout: boolean;
619
616
  loading: boolean;
620
617
  error: string | null;
621
618
  }
@@ -653,11 +650,11 @@ interface TaxonomyFieldQuery {
653
650
  radius?: number;
654
651
  }
655
652
  interface TaxonomyEntry {
656
- taxonomyId: string;
653
+ taxonomy_id: string;
657
654
  fields: TaxonomyField[];
658
655
  }
659
656
  interface TaxonomyQuery {
660
- taxonomyId: string;
657
+ taxonomy_id: string;
661
658
  query: TaxonomyFieldQuery[];
662
659
  }
663
660
  type FormSchemaType = "text" | "number" | "boolean" | "date" | "geo_location" | "select";
@@ -678,7 +675,7 @@ interface FormField {
678
675
  value?: any;
679
676
  }
680
677
  interface FormEntry {
681
- formId: string;
678
+ form_id: string;
682
679
  fields: FormField[];
683
680
  }
684
681
  type BlockType = "text" | "localized_text" | "number" | "boolean" | "list" | "map" | "relationship_entry" | "relationship_media" | "markdown" | "geo_location";
@@ -701,13 +698,13 @@ interface Media {
701
698
  resolutions: {
702
699
  [key: string]: MediaResolution;
703
700
  };
704
- mimeType: string;
701
+ mime_type: string;
705
702
  title?: string | null;
706
703
  description?: string | null;
707
704
  alt?: string | null;
708
705
  entity: string;
709
706
  metadata?: string | null;
710
- createdAt: number;
707
+ created_at: number;
711
708
  slug: Record<string, string>;
712
709
  }
713
710
  interface ApiResponse<T> {
@@ -726,38 +723,38 @@ interface PaginatedResponse<T> {
726
723
  };
727
724
  }
728
725
  interface BookingStoreState {
729
- currentStep: number;
730
- totalSteps: number;
726
+ current_step: number;
727
+ total_steps: number;
731
728
  steps: Record<number, {
732
729
  name: string;
733
- labelKey: string;
730
+ label_key: string;
734
731
  }>;
735
732
  weekdays: string[];
736
- monthYear: string;
733
+ month_year: string;
737
734
  days: any[];
738
735
  current: Date;
739
- selectedDate: string | null;
736
+ selected_date: string | null;
740
737
  slots: any[];
741
- selectedSlot: any | null;
742
- selectedProvider: any | null;
738
+ selected_slot: any | null;
739
+ selected_provider: any | null;
743
740
  providers: any[];
744
741
  loading: boolean;
745
- startDate: string | null;
746
- endDate: string | null;
747
- guestToken: string | null;
742
+ start_date: string | null;
743
+ end_date: string | null;
744
+ guest_token: string | null;
748
745
  service: any | null;
749
746
  business: Business | null;
750
747
  currency: string;
751
- bookingForms: FormEntry[];
752
- apiUrl: string;
753
- businessId: string;
748
+ booking_forms: FormEntry[];
749
+ api_url: string;
750
+ business_id: string;
754
751
  timezone: string;
755
- tzGroups: any;
752
+ tz_groups: any;
756
753
  items: BookingCartItem[];
757
- allowedPaymentMethods: string[];
758
- paymentConfig: {
754
+ allowed_payment_methods: string[];
755
+ payment_config: {
759
756
  provider: {
760
- publishableKey: string;
757
+ publishable_key: string;
761
758
  currency: string;
762
759
  } | null;
763
760
  enabled: boolean;
@@ -828,8 +825,8 @@ type OrderPaymentStatus = {
828
825
  reason?: string;
829
826
  };
830
827
  interface BookingItemSnapshot {
831
- serviceKey: string;
832
- providerKey: string;
828
+ service_key: string;
829
+ provider_key: string;
833
830
  price: Price;
834
831
  }
835
832
  interface TimeRange {
@@ -838,10 +835,10 @@ interface TimeRange {
838
835
  }
839
836
  interface BookingItem {
840
837
  id: string;
841
- serviceId: string;
842
- providerId: string;
843
- businessId: string;
844
- bookingId: string;
838
+ service_id: string;
839
+ provider_id: string;
840
+ business_id: string;
841
+ booking_id: string;
845
842
  from: number;
846
843
  to: number;
847
844
  forms: FormEntry[];
@@ -851,106 +848,106 @@ interface BookingItem {
851
848
  interface Booking {
852
849
  id: string;
853
850
  number: string;
854
- customerId: string;
851
+ customer_id: string;
855
852
  verified: boolean;
856
853
  forms: FormEntry[];
857
- businessId: string;
858
- serviceIds: string[];
859
- providerIds: string[];
854
+ business_id: string;
855
+ service_ids: string[];
856
+ provider_ids: string[];
860
857
  payment: BookingPayment;
861
858
  business?: Business;
862
859
  account?: any;
863
860
  items: BookingItem[];
864
- audienceId?: string;
861
+ audience_id?: string;
865
862
  history?: {
866
863
  action: string;
867
864
  reason?: string;
868
865
  timestamp: number;
869
866
  }[];
870
- firedReminders: number[];
871
- createdAt: number;
872
- lastModified: number;
867
+ fired_reminders: number[];
868
+ created_at: number;
869
+ last_modified: number;
873
870
  }
874
871
  interface Node {
875
872
  id: string;
876
873
  key: string;
877
- businessId: string;
878
- parentId?: string | null;
874
+ business_id: string;
875
+ parent_id?: string | null;
879
876
  blocks: Block[];
880
877
  taxonomies: TaxonomyEntry[];
881
878
  status: NodeStatus;
882
879
  slug: Record<string, string>;
883
880
  children: Node[];
884
- createdAt: number;
885
- updatedAt: number;
881
+ created_at: number;
882
+ updated_at: number;
886
883
  }
887
884
  interface EmailTemplate {
888
885
  id: string;
889
886
  key: string;
890
- businessId: string;
887
+ business_id: string;
891
888
  subject: Record<string, string>;
892
889
  body: string;
893
- fromName: string;
894
- fromEmail: string;
895
- replyTo?: string;
890
+ from_name: string;
891
+ from_email: string;
892
+ reply_to?: string;
896
893
  preheader?: string;
897
894
  status: EmailTemplateStatus;
898
- createdAt: number;
899
- updatedAt: number;
895
+ created_at: number;
896
+ updated_at: number;
900
897
  }
901
898
  interface Form {
902
899
  id: string;
903
900
  key: string;
904
- businessId: string;
901
+ business_id: string;
905
902
  schema: FormSchema[];
906
903
  status: FormStatus;
907
- createdAt: number;
908
- updatedAt: number;
904
+ created_at: number;
905
+ updated_at: number;
909
906
  }
910
907
  interface FormSubmission {
911
908
  id: string;
912
- formId: string;
913
- businessId: string;
909
+ form_id: string;
910
+ business_id: string;
914
911
  fields: FormField[];
915
- createdAt: number;
912
+ created_at: number;
916
913
  }
917
914
  interface Taxonomy {
918
915
  id: string;
919
916
  key: string;
920
- businessId: string;
921
- parentId?: string | null;
917
+ business_id: string;
918
+ parent_id?: string | null;
922
919
  schema?: TaxonomySchema[];
923
920
  status: TaxonomyStatus;
924
- createdAt: number;
925
- updatedAt: number;
921
+ created_at: number;
922
+ updated_at: number;
926
923
  }
927
924
  interface ServiceDuration {
928
925
  duration: number;
929
- isPause?: boolean;
926
+ is_pause?: boolean;
930
927
  }
931
928
  interface ServiceProvider {
932
929
  id: string;
933
- providerId: string;
930
+ provider_id: string;
934
931
  prices: Price[];
935
932
  durations: ServiceDuration[];
936
- audienceIds: string[];
937
- workingDays: Array<{
933
+ audience_ids: string[];
934
+ working_days: Array<{
938
935
  day: string;
939
- workingHours: Array<{
936
+ working_hours: Array<{
940
937
  from: number;
941
938
  to: number;
942
939
  }>;
943
940
  }>;
944
- specificDates: Array<{
941
+ specific_dates: Array<{
945
942
  date: number;
946
- workingHours: Array<{
943
+ working_hours: Array<{
947
944
  from: number;
948
945
  to: number;
949
946
  }>;
950
947
  }>;
951
- slotInterval: number;
952
- minAdvance: number;
953
- maxAdvance: number;
948
+ slot_interval: number;
949
+ min_advance: number;
950
+ max_advance: number;
954
951
  reminders: number[];
955
952
  forms?: FormEntry[];
956
953
  }
@@ -958,11 +955,11 @@ interface Service {
958
955
  id: string;
959
956
  key: string;
960
957
  slug: Record<string, string>;
961
- businessId: string;
958
+ business_id: string;
962
959
  blocks: Block[];
963
960
  taxonomies: TaxonomyEntry[];
964
- createdAt: number;
965
- updatedAt: number;
961
+ created_at: number;
962
+ updated_at: number;
966
963
  status: BookingServiceStatus;
967
964
  }
968
965
  interface ProviderTimelinePoint {
@@ -973,38 +970,38 @@ interface Provider {
973
970
  id: string;
974
971
  key: string;
975
972
  slug: Record<string, string>;
976
- businessId: string;
973
+ business_id: string;
977
974
  status: BookingProviderStatus;
978
- audienceIds: string[];
975
+ audience_ids: string[];
979
976
  blocks: Block[];
980
977
  taxonomies: TaxonomyEntry[];
981
978
  timeline: ProviderTimelinePoint[];
982
- createdAt: number;
983
- updatedAt: number;
979
+ created_at: number;
980
+ updated_at: number;
984
981
  }
985
982
  interface WorkflowEdge {
986
983
  source: string;
987
984
  target: string;
988
985
  output: string;
989
- backEdge: boolean;
986
+ back_edge: boolean;
990
987
  }
991
988
  interface Workflow {
992
989
  id: string;
993
990
  key: string;
994
- businessId: string;
991
+ business_id: string;
995
992
  secret: string;
996
993
  status: WorkflowStatus;
997
994
  nodes: Record<string, WorkflowNode>;
998
995
  edges: WorkflowEdge[];
999
996
  schedule?: string;
1000
- createdAt: number;
1001
- updatedAt: number;
997
+ created_at: number;
998
+ updated_at: number;
1002
999
  }
1003
1000
  type WorkflowNode = WorkflowTriggerNode | WorkflowHttpNode | WorkflowSwitchNode | WorkflowTransformNode | WorkflowLoopNode;
1004
1001
  interface WorkflowTriggerNode {
1005
1002
  type: 'trigger';
1006
1003
  event?: string;
1007
- delayMs?: number;
1004
+ delay_ms?: number;
1008
1005
  schema?: Block[];
1009
1006
  }
1010
1007
  interface WorkflowHttpNode {
@@ -1013,12 +1010,12 @@ interface WorkflowHttpNode {
1013
1010
  url: string;
1014
1011
  headers?: Record<string, string>;
1015
1012
  body?: any;
1016
- timeoutMs?: number;
1017
- integrationId?: string;
1018
- integrationProviderId?: string;
1019
- delayMs?: number;
1013
+ timeout_ms?: number;
1014
+ integration_id?: string;
1015
+ integration_provider_id?: string;
1016
+ delay_ms?: number;
1020
1017
  retries?: number;
1021
- retryDelayMs?: number;
1018
+ retry_delay_ms?: number;
1022
1019
  }
1023
1020
  interface WorkflowSwitchRule {
1024
1021
  condition: string;
@@ -1026,65 +1023,65 @@ interface WorkflowSwitchRule {
1026
1023
  interface WorkflowSwitchNode {
1027
1024
  type: 'switch';
1028
1025
  rules: WorkflowSwitchRule[];
1029
- delayMs?: number;
1026
+ delay_ms?: number;
1030
1027
  }
1031
1028
  interface WorkflowTransformNode {
1032
1029
  type: 'transform';
1033
1030
  code: string;
1034
- delayMs?: number;
1031
+ delay_ms?: number;
1035
1032
  }
1036
1033
  interface WorkflowLoopNode {
1037
1034
  type: 'loop';
1038
1035
  expression: string;
1039
- delayMs?: number;
1036
+ delay_ms?: number;
1040
1037
  }
1041
1038
  type WorkflowHttpMethod = 'get' | 'post' | 'put' | 'patch' | 'delete';
1042
1039
  type ExecutionStatus = 'pending' | 'running' | 'completed' | 'failed' | 'cancelled';
1043
1040
  interface NodeResult {
1044
1041
  output: any;
1045
1042
  route: string;
1046
- startedAt: number;
1047
- completedAt: number;
1048
- durationMs: number;
1043
+ started_at: number;
1044
+ completed_at: number;
1045
+ duration_ms: number;
1049
1046
  error?: string;
1050
1047
  }
1051
1048
  interface WorkflowExecution {
1052
1049
  id: string;
1053
- workflowId: string;
1054
- businessId: string;
1050
+ workflow_id: string;
1051
+ business_id: string;
1055
1052
  status: ExecutionStatus;
1056
1053
  input: Record<string, any>;
1057
1054
  results: Record<string, NodeResult>;
1058
1055
  error?: string;
1059
- scheduledAt: number;
1060
- startedAt: number;
1061
- completedAt?: number;
1062
- createdAt: number;
1063
- updatedAt: number;
1056
+ scheduled_at: number;
1057
+ started_at: number;
1058
+ completed_at?: number;
1059
+ created_at: number;
1060
+ updated_at: number;
1064
1061
  }
1065
1062
  type AudienceType = {
1066
1063
  type: 'standard';
1067
1064
  } | {
1068
1065
  type: 'confirmation';
1069
- confirmTemplateId: string;
1066
+ confirm_template_id: string;
1070
1067
  } | {
1071
1068
  type: 'paid';
1072
1069
  prices: SubscriptionPrice[];
1073
- paymentIntegrationId?: string;
1070
+ payment_integration_id?: string;
1074
1071
  };
1075
1072
  interface Audience {
1076
1073
  id: string;
1077
- businessId: string;
1074
+ business_id: string;
1078
1075
  key: string;
1079
1076
  status: AudienceStatus;
1080
1077
  type: AudienceType;
1081
1078
  }
1082
1079
  interface AudienceAccessResponse {
1083
- hasAccess: boolean;
1080
+ has_access: boolean;
1084
1081
  subscription?: AudienceSubscription;
1085
1082
  }
1086
1083
  interface AudienceSubscribeResponse {
1087
- checkoutUrl?: string;
1084
+ checkout_url?: string;
1088
1085
  subscription?: AudienceSubscription;
1089
1086
  }
1090
1087
  type EventAction = {
@@ -1184,8 +1181,8 @@ type EventAction = {
1184
1181
  } | {
1185
1182
  action: 'booking_item_cancelled';
1186
1183
  data: {
1187
- itemId: string;
1188
- refundAmount: number;
1184
+ item_id: string;
1185
+ refund_amount: number;
1189
1186
  };
1190
1187
  } | {
1191
1188
  action: 'product_created';
@@ -1239,43 +1236,43 @@ interface Event {
1239
1236
  entity: string;
1240
1237
  event: EventAction;
1241
1238
  actor: string;
1242
- createdAt: number;
1239
+ created_at: number;
1243
1240
  }
1244
1241
  type ShippingStatus = 'pending' | 'label_created' | 'in_transit' | 'out_for_delivery' | 'delivered' | 'failed' | 'returned';
1245
1242
  interface OrderShipping {
1246
1243
  carrier: string;
1247
1244
  service: string;
1248
- trackingNumber?: string | null;
1249
- trackingUrl?: string | null;
1250
- labelUrl?: string | null;
1245
+ tracking_number?: string | null;
1246
+ tracking_url?: string | null;
1247
+ label_url?: string | null;
1251
1248
  status: ShippingStatus;
1252
1249
  }
1253
1250
  interface ShipmentLine {
1254
- orderItemId: string;
1251
+ order_item_id: string;
1255
1252
  quantity: number;
1256
1253
  }
1257
1254
  interface Shipment {
1258
1255
  id: string;
1259
- locationId: string;
1256
+ location_id: string;
1260
1257
  lines: ShipmentLine[];
1261
1258
  carrier?: string | null;
1262
1259
  service?: string | null;
1263
- trackingNumber?: string | null;
1264
- trackingUrl?: string | null;
1265
- labelUrl?: string | null;
1260
+ tracking_number?: string | null;
1261
+ tracking_url?: string | null;
1262
+ label_url?: string | null;
1266
1263
  status: ShippingStatus;
1267
- createdAt: number;
1268
- updatedAt: number;
1264
+ created_at: number;
1265
+ updated_at: number;
1269
1266
  }
1270
1267
  interface ShippingRate {
1271
1268
  id: string;
1272
1269
  provider: string;
1273
1270
  carrier: string;
1274
1271
  service: string;
1275
- displayName: string;
1272
+ display_name: string;
1276
1273
  amount: number;
1277
1274
  currency: string;
1278
- estimatedDays?: number | null;
1275
+ estimated_days?: number | null;
1279
1276
  }
1280
1277
  type ShippingAddress = Address;
1281
1278
  interface Parcel {
@@ -1283,51 +1280,51 @@ interface Parcel {
1283
1280
  width: number;
1284
1281
  height: number;
1285
1282
  weight: number;
1286
- distanceUnit: 'in' | 'cm';
1287
- massUnit: 'oz' | 'lb' | 'g' | 'kg';
1283
+ distance_unit: 'in' | 'cm';
1284
+ mass_unit: 'oz' | 'lb' | 'g' | 'kg';
1288
1285
  }
1289
1286
  interface PurchaseLabelResult {
1290
- trackingNumber: string;
1291
- trackingUrl?: string | null;
1292
- labelUrl: string;
1287
+ tracking_number: string;
1288
+ tracking_url?: string | null;
1289
+ label_url: string;
1293
1290
  carrier: string;
1294
1291
  service: string;
1295
1292
  }
1296
1293
  interface ShipResult {
1297
- shipmentId: string;
1298
- trackingNumber: string;
1299
- trackingUrl?: string | null;
1300
- labelUrl: string;
1294
+ shipment_id: string;
1295
+ tracking_number: string;
1296
+ tracking_url?: string | null;
1297
+ label_url: string;
1301
1298
  }
1302
1299
  interface CustomsItem {
1303
1300
  description: string;
1304
1301
  quantity: number;
1305
- netWeight: string;
1306
- massUnit: string;
1307
- valueAmount: string;
1308
- valueCurrency: string;
1309
- originCountry: string;
1310
- tariffNumber?: string | null;
1302
+ net_weight: string;
1303
+ mass_unit: string;
1304
+ value_amount: string;
1305
+ value_currency: string;
1306
+ origin_country: string;
1307
+ tariff_number?: string | null;
1311
1308
  }
1312
1309
  interface CustomsDeclaration {
1313
- contentsType: string;
1314
- contentsExplanation?: string | null;
1315
- nonDeliveryOption: string;
1310
+ contents_type: string;
1311
+ contents_explanation?: string | null;
1312
+ non_delivery_option: string;
1316
1313
  certify: boolean;
1317
- certifySigner: string;
1314
+ certify_signer: string;
1318
1315
  items: CustomsItem[];
1319
1316
  }
1320
1317
 
1321
1318
  interface CreateLocationParams {
1322
1319
  key: string;
1323
1320
  address: Address;
1324
- isPickupLocation?: boolean;
1321
+ is_pickup_location?: boolean;
1325
1322
  }
1326
1323
  interface UpdateLocationParams {
1327
1324
  id: string;
1328
1325
  key: string;
1329
1326
  address: Address;
1330
- isPickupLocation?: boolean;
1327
+ is_pickup_location?: boolean;
1331
1328
  }
1332
1329
  interface DeleteLocationParams {
1333
1330
  id: string;
@@ -1335,16 +1332,16 @@ interface DeleteLocationParams {
1335
1332
  interface CreateMarketParams {
1336
1333
  key: string;
1337
1334
  currency: string;
1338
- taxMode: 'inclusive' | 'exclusive';
1339
- paymentMethods?: PaymentMethod[];
1335
+ tax_mode: 'inclusive' | 'exclusive';
1336
+ payment_methods?: PaymentMethod[];
1340
1337
  zones?: Zone[];
1341
1338
  }
1342
1339
  interface UpdateMarketParams {
1343
1340
  id: string;
1344
1341
  key?: string;
1345
1342
  currency?: string;
1346
- taxMode?: 'inclusive' | 'exclusive';
1347
- paymentMethods?: PaymentMethod[];
1343
+ tax_mode?: 'inclusive' | 'exclusive';
1344
+ payment_methods?: PaymentMethod[];
1348
1345
  zones?: Zone[];
1349
1346
  }
1350
1347
  interface DeleteMarketParams {
@@ -1360,8 +1357,8 @@ interface RequestOptions<T = any> {
1360
1357
  url: string;
1361
1358
  status: number;
1362
1359
  request?: any;
1363
- durationMs?: number;
1364
- requestId?: string | null;
1360
+ duration_ms?: number;
1361
+ request_id?: string | null;
1365
1362
  }) => void | Promise<void>;
1366
1363
  onError?: (ctx: {
1367
1364
  error: any;
@@ -1370,49 +1367,49 @@ interface RequestOptions<T = any> {
1370
1367
  status?: number;
1371
1368
  request?: any;
1372
1369
  response?: any;
1373
- durationMs?: number;
1374
- requestId?: string | null;
1370
+ duration_ms?: number;
1371
+ request_id?: string | null;
1375
1372
  aborted?: boolean;
1376
1373
  }) => void | Promise<void>;
1377
1374
  }
1378
1375
  interface EshopItem {
1379
- productId: string;
1380
- variantId: string;
1376
+ product_id: string;
1377
+ variant_id: string;
1381
1378
  quantity: number;
1382
1379
  }
1383
1380
  interface GetQuoteParams {
1384
1381
  items: EshopItem[];
1385
- paymentMethodId?: string;
1386
- shippingMethodId?: string;
1387
- promoCode?: string;
1382
+ payment_method_id?: string;
1383
+ shipping_method_id?: string;
1384
+ promo_code?: string;
1388
1385
  blocks?: any[];
1389
1386
  location?: ZoneLocation;
1390
1387
  }
1391
1388
  interface OrderCheckoutParams {
1392
1389
  items: EshopItem[];
1393
- paymentMethodId?: string;
1390
+ payment_method_id?: string;
1394
1391
  blocks?: any[];
1395
- shippingMethodId: string;
1396
- promoCodeId?: string;
1397
- shippingAddress?: Address;
1398
- billingAddress?: Address;
1392
+ shipping_method_id: string;
1393
+ promo_code_id?: string;
1394
+ shipping_address?: Address;
1395
+ billing_address?: Address;
1399
1396
  }
1400
1397
  interface GetProductsParams {
1401
1398
  ids?: string[];
1402
- taxonomyQuery?: any[];
1399
+ taxonomy_query?: any[];
1403
1400
  status?: string;
1404
1401
  limit?: number;
1405
1402
  cursor?: string;
1406
1403
  query?: string;
1407
1404
  statuses?: string[];
1408
- sortField?: string;
1409
- sortDirection?: string;
1410
- createdAtFrom?: number | null;
1411
- createdAtTo?: number | null;
1405
+ sort_field?: string;
1406
+ sort_direction?: string;
1407
+ created_at_from?: number | null;
1408
+ created_at_to?: number | null;
1412
1409
  }
1413
1410
  interface GetNodesParams {
1414
1411
  businessId?: string;
1415
- parentId?: string;
1412
+ parent_id?: string;
1416
1413
  limit?: number;
1417
1414
  cursor?: string;
1418
1415
  ids?: string[];
@@ -1420,30 +1417,30 @@ interface GetNodesParams {
1420
1417
  type?: string;
1421
1418
  key?: string;
1422
1419
  statuses?: string[];
1423
- sortField?: string;
1424
- sortDirection?: string;
1425
- createdAtFrom?: string;
1426
- createdAtTo?: string;
1420
+ sort_field?: string;
1421
+ sort_direction?: string;
1422
+ created_at_from?: string;
1423
+ created_at_to?: string;
1427
1424
  }
1428
1425
  interface CreateNodeParams {
1429
1426
  businessId?: string;
1430
1427
  key: string;
1431
- parentId?: string | null;
1428
+ parent_id?: string | null;
1432
1429
  blocks?: any[];
1433
1430
  filters?: any[];
1434
1431
  slug?: Record<string, string>;
1435
- audienceIds?: string[];
1432
+ audience_ids?: string[];
1436
1433
  status?: string;
1437
1434
  }
1438
1435
  interface UpdateNodeParams {
1439
1436
  id: string;
1440
1437
  businessId?: string;
1441
1438
  key?: string;
1442
- parentId?: string | null;
1439
+ parent_id?: string | null;
1443
1440
  blocks?: any[];
1444
1441
  filters?: any[];
1445
1442
  slug?: Record<string, string>;
1446
- audienceIds?: string[];
1443
+ audience_ids?: string[];
1447
1444
  status?: string;
1448
1445
  }
1449
1446
  interface GetNodeParams {
@@ -1486,9 +1483,9 @@ interface GetBusinessMediaParams {
1486
1483
  limit: number;
1487
1484
  ids?: string[];
1488
1485
  query?: string;
1489
- mimeType?: string;
1490
- sortField?: string;
1491
- sortDirection?: 'asc' | 'desc';
1486
+ mime_type?: string;
1487
+ sort_field?: string;
1488
+ sort_direction?: 'asc' | 'desc';
1492
1489
  }
1493
1490
  interface LoginAccountParams {
1494
1491
  email?: string;
@@ -1497,7 +1494,7 @@ interface LoginAccountParams {
1497
1494
  }
1498
1495
  interface MagicLinkRequestParams {
1499
1496
  email: string;
1500
- businessId?: string;
1497
+ business_id?: string;
1501
1498
  }
1502
1499
  interface MagicLinkVerifyParams {
1503
1500
  email: string;
@@ -1505,37 +1502,37 @@ interface MagicLinkVerifyParams {
1505
1502
  }
1506
1503
  interface GetServicesParams {
1507
1504
  businessId?: string;
1508
- providerId?: string;
1509
- taxonomyQuery?: any[];
1505
+ provider_id?: string;
1506
+ taxonomy_query?: any[];
1510
1507
  limit?: number;
1511
1508
  cursor?: string;
1512
1509
  query?: string;
1513
1510
  ids?: string[];
1514
1511
  statuses?: string[];
1515
- sortField?: string;
1516
- sortDirection?: string;
1512
+ sort_field?: string;
1513
+ sort_direction?: string;
1517
1514
  }
1518
1515
  interface BookingCheckoutParams {
1519
1516
  businessId?: string;
1520
1517
  items: any[];
1521
- paymentMethodId?: string;
1518
+ payment_method_id?: string;
1522
1519
  forms?: any[];
1523
- promoCodeId?: string;
1520
+ promo_code_id?: string;
1524
1521
  }
1525
1522
  interface SlotRange {
1526
1523
  from: number;
1527
1524
  to: number;
1528
1525
  }
1529
1526
  interface BookingQuoteItem {
1530
- serviceId: string;
1531
- providerId: string;
1527
+ service_id: string;
1528
+ provider_id: string;
1532
1529
  slots: SlotRange[];
1533
1530
  }
1534
1531
  interface GetBookingQuoteParams {
1535
1532
  businessId?: string;
1536
1533
  items: BookingQuoteItem[];
1537
- paymentMethodId?: string;
1538
- promoCode?: string;
1534
+ payment_method_id?: string;
1535
+ promo_code?: string;
1539
1536
  }
1540
1537
  interface TimelinePoint {
1541
1538
  timestamp: number;
@@ -1547,31 +1544,31 @@ interface WorkingHour {
1547
1544
  }
1548
1545
  interface WorkingDay {
1549
1546
  day: string;
1550
- workingHours: WorkingHour[];
1547
+ working_hours: WorkingHour[];
1551
1548
  }
1552
1549
  interface SpecificDate {
1553
1550
  date: number;
1554
- workingHours: WorkingHour[];
1551
+ working_hours: WorkingHour[];
1555
1552
  }
1556
1553
  interface ProviderWithTimeline {
1557
1554
  id: string;
1558
1555
  key: string;
1559
- businessId: string;
1556
+ business_id: string;
1560
1557
  seo: any;
1561
1558
  status: BookingProviderStatus;
1562
- audienceIds: string[];
1559
+ audience_ids: string[];
1563
1560
  blocks: Block[];
1564
- createdAt: number;
1565
- updatedAt: number;
1566
- workingDays?: WorkingDay[];
1567
- specificDates?: SpecificDate[];
1561
+ created_at: number;
1562
+ updated_at: number;
1563
+ working_days?: WorkingDay[];
1564
+ specific_dates?: SpecificDate[];
1568
1565
  timeline: TimelinePoint[];
1569
1566
  }
1570
1567
  interface GetAnalyticsParams {
1571
1568
  metrics?: string[];
1572
1569
  period?: string;
1573
- startDate?: string;
1574
- endDate?: string;
1570
+ start_date?: string;
1571
+ end_date?: string;
1575
1572
  interval?: string;
1576
1573
  }
1577
1574
  interface GetAnalyticsHealthParams {
@@ -1581,7 +1578,7 @@ interface GetDeliveryStatsParams {
1581
1578
  type BusinessRole = 'admin' | 'owner' | 'super';
1582
1579
  interface Discount {
1583
1580
  type: "items_percentage" | "items_fixed" | "shipping_percentage";
1584
- marketId: string;
1581
+ market_id: string;
1585
1582
  bps?: number;
1586
1583
  amount?: number;
1587
1584
  }
@@ -1615,14 +1612,14 @@ interface GetPromoCodesParams {
1615
1612
  query?: string;
1616
1613
  limit?: number;
1617
1614
  cursor?: string;
1618
- sortField?: string;
1619
- sortDirection?: string;
1620
- createdAtFrom?: string;
1621
- createdAtTo?: string;
1622
- startsAtFrom?: string;
1623
- startsAtTo?: string;
1624
- expiresAtFrom?: string;
1625
- expiresAtTo?: string;
1615
+ sort_field?: string;
1616
+ sort_direction?: string;
1617
+ created_at_from?: string;
1618
+ created_at_to?: string;
1619
+ starts_at_from?: string;
1620
+ starts_at_to?: string;
1621
+ expires_at_from?: string;
1622
+ expires_at_to?: string;
1626
1623
  }
1627
1624
  interface CreateBusinessParams {
1628
1625
  key: string;
@@ -1659,7 +1656,7 @@ interface InviteUserParams {
1659
1656
  role?: BusinessRole;
1660
1657
  }
1661
1658
  interface RemoveMemberParams {
1662
- accountId: string;
1659
+ account_id: string;
1663
1660
  }
1664
1661
  interface HandleInvitationParams {
1665
1662
  token: string;
@@ -1671,7 +1668,7 @@ interface TestWebhookParams {
1671
1668
  interface CreateProductParams {
1672
1669
  key: string;
1673
1670
  description?: string;
1674
- audienceIds?: string[];
1671
+ audience_ids?: string[];
1675
1672
  blocks?: any[];
1676
1673
  taxonomies?: any[];
1677
1674
  variants?: any[];
@@ -1682,7 +1679,7 @@ interface UpdateProductParams {
1682
1679
  id: string;
1683
1680
  key?: string;
1684
1681
  description?: string;
1685
- audienceIds?: string[];
1682
+ audience_ids?: string[];
1686
1683
  blocks?: any[];
1687
1684
  taxonomies?: any[];
1688
1685
  variants?: any[];
@@ -1697,16 +1694,16 @@ interface GetOrderParams {
1697
1694
  id: string;
1698
1695
  }
1699
1696
  interface GetOrdersParams {
1700
- itemStatuses?: string[] | null;
1701
- productIds?: string[];
1697
+ item_statuses?: string[] | null;
1698
+ product_ids?: string[];
1702
1699
  verified?: boolean;
1703
1700
  query?: string | null;
1704
1701
  limit?: number | null;
1705
1702
  cursor?: string | null;
1706
- sortField?: string | null;
1707
- sortDirection?: string | null;
1708
- createdAtFrom?: string | null;
1709
- createdAtTo?: string | null;
1703
+ sort_field?: string | null;
1704
+ sort_direction?: string | null;
1705
+ created_at_from?: string | null;
1706
+ created_at_to?: string | null;
1710
1707
  }
1711
1708
  interface UpdateOrderParams {
1712
1709
  id: string;
@@ -1714,7 +1711,7 @@ interface UpdateOrderParams {
1714
1711
  blocks: any[];
1715
1712
  items: any[];
1716
1713
  address?: any | null;
1717
- billingAddress?: any | null;
1714
+ billing_address?: any | null;
1718
1715
  payment?: Partial<OrderPayment> | null;
1719
1716
  confirm?: boolean;
1720
1717
  cancel?: boolean;
@@ -1737,7 +1734,7 @@ interface UpdateBookingParams {
1737
1734
  interface CreateProviderParams {
1738
1735
  businessId?: string;
1739
1736
  key: string;
1740
- audienceIds?: string[];
1737
+ audience_ids?: string[];
1741
1738
  blocks?: any[];
1742
1739
  taxonomies?: any[];
1743
1740
  status?: BookingProviderStatus;
@@ -1747,7 +1744,7 @@ interface UpdateProviderParams {
1747
1744
  id: string;
1748
1745
  businessId?: string;
1749
1746
  key?: string;
1750
- audienceIds?: string[];
1747
+ audience_ids?: string[];
1751
1748
  blocks?: any[];
1752
1749
  taxonomies?: any[];
1753
1750
  status?: BookingProviderStatus;
@@ -1758,12 +1755,12 @@ interface DeleteProviderParams {
1758
1755
  businessId?: string;
1759
1756
  }
1760
1757
  interface ServiceProviderInput {
1761
- providerId: string;
1758
+ provider_id: string;
1762
1759
  businessId?: string;
1763
1760
  prices?: any[];
1764
1761
  durations?: any[];
1765
- workingDays: WorkingDay[];
1766
- specificDates: SpecificDate[];
1762
+ working_days: WorkingDay[];
1763
+ specific_dates: SpecificDate[];
1767
1764
  }
1768
1765
  interface CreateServiceParams {
1769
1766
  businessId?: string;
@@ -1784,27 +1781,27 @@ interface UpdateServiceParams {
1784
1781
  }
1785
1782
  interface CreateServiceProviderParams {
1786
1783
  businessId?: string;
1787
- serviceId: string;
1788
- providerId: string;
1789
- workingDays: WorkingDay[];
1790
- specificDates: SpecificDate[];
1784
+ service_id: string;
1785
+ provider_id: string;
1786
+ working_days: WorkingDay[];
1787
+ specific_dates: SpecificDate[];
1791
1788
  prices?: any[];
1792
1789
  durations?: any[];
1793
- slotInterval: number;
1794
- minAdvance?: number;
1795
- maxAdvance?: number;
1790
+ slot_interval: number;
1791
+ min_advance?: number;
1792
+ max_advance?: number;
1796
1793
  reminders?: number[];
1797
1794
  }
1798
1795
  interface UpdateServiceProviderParams {
1799
1796
  businessId?: string;
1800
1797
  id: string;
1801
- workingDays: WorkingDay[];
1802
- specificDates: SpecificDate[];
1798
+ working_days: WorkingDay[];
1799
+ specific_dates: SpecificDate[];
1803
1800
  prices?: any[];
1804
1801
  durations?: any[];
1805
- slotInterval: number;
1806
- minAdvance?: number;
1807
- maxAdvance?: number;
1802
+ slot_interval: number;
1803
+ min_advance?: number;
1804
+ max_advance?: number;
1808
1805
  reminders?: number[];
1809
1806
  }
1810
1807
  interface DeleteServiceProviderParams {
@@ -1813,8 +1810,8 @@ interface DeleteServiceProviderParams {
1813
1810
  }
1814
1811
  interface FindServiceProvidersParams {
1815
1812
  businessId?: string;
1816
- serviceId?: string;
1817
- providerId?: string;
1813
+ service_id?: string;
1814
+ provider_id?: string;
1818
1815
  }
1819
1816
  interface DeleteServiceParams {
1820
1817
  id: string;
@@ -1827,17 +1824,17 @@ interface GetServiceParams {
1827
1824
  }
1828
1825
  interface GetProvidersParams {
1829
1826
  businessId?: string;
1830
- serviceId?: string;
1831
- taxonomyQuery?: any[];
1827
+ service_id?: string;
1828
+ taxonomy_query?: any[];
1832
1829
  ids?: string[];
1833
1830
  query?: string | null;
1834
1831
  statuses?: string[] | null;
1835
1832
  limit?: number;
1836
1833
  cursor?: string;
1837
- sortField?: string | null;
1838
- sortDirection?: string | null;
1839
- createdAtFrom?: string | null;
1840
- createdAtTo?: string | null;
1834
+ sort_field?: string | null;
1835
+ sort_direction?: string | null;
1836
+ created_at_from?: string | null;
1837
+ created_at_to?: string | null;
1841
1838
  }
1842
1839
  interface GetProviderParams {
1843
1840
  id?: string;
@@ -1850,28 +1847,28 @@ interface GetBookingParams {
1850
1847
  }
1851
1848
  interface CancelBookingItemParams {
1852
1849
  businessId?: string;
1853
- bookingId: string;
1854
- itemId: string;
1850
+ booking_id: string;
1851
+ item_id: string;
1855
1852
  reason?: string;
1856
1853
  }
1857
1854
  interface SearchBookingsParams {
1858
1855
  businessId?: string;
1859
1856
  query?: string;
1860
- serviceIds?: string[];
1861
- providerIds?: string[];
1857
+ service_ids?: string[];
1858
+ provider_ids?: string[];
1862
1859
  from?: number;
1863
1860
  to?: number;
1864
- itemStatuses?: string[];
1861
+ item_statuses?: string[];
1865
1862
  verified?: boolean;
1866
1863
  limit?: number;
1867
1864
  cursor?: string;
1868
- sortField?: string;
1869
- sortOrder?: string;
1865
+ sort_field?: string;
1866
+ sort_order?: string;
1870
1867
  }
1871
1868
  interface UpdateAccountProfileParams {
1872
- phoneNumbers?: string[];
1869
+ phone_numbers?: string[];
1873
1870
  addresses?: any[];
1874
- apiTokens?: any[] | null;
1871
+ api_tokens?: any[] | null;
1875
1872
  }
1876
1873
  interface SearchAccountsParams {
1877
1874
  limit?: number;
@@ -1882,17 +1879,17 @@ interface SearchAccountsParams {
1882
1879
  interface DeleteAccountParams {
1883
1880
  }
1884
1881
  interface TrackEmailOpenParams {
1885
- trackingPixelId: string;
1882
+ tracking_pixel_id: string;
1886
1883
  }
1887
1884
  interface TrackEmailOpenParams {
1888
- trackingPixelId: string;
1885
+ tracking_pixel_id: string;
1889
1886
  }
1890
1887
  interface TriggerNotificationParams {
1891
1888
  channel: string;
1892
- businessId: string;
1893
- emailTemplateId?: string;
1889
+ business_id: string;
1890
+ email_template_id?: string;
1894
1891
  recipients?: string[];
1895
- audienceId?: string;
1892
+ audience_id?: string;
1896
1893
  vars?: Record<string, any>;
1897
1894
  }
1898
1895
  interface GetEmailTemplatesParams {
@@ -1903,19 +1900,19 @@ interface GetEmailTemplatesParams {
1903
1900
  query?: string;
1904
1901
  key?: string;
1905
1902
  status?: string;
1906
- sortField?: string;
1907
- sortDirection?: "asc" | "desc";
1908
- createdAtFrom?: number;
1909
- createdAtTo?: number;
1903
+ sort_field?: string;
1904
+ sort_direction?: "asc" | "desc";
1905
+ created_at_from?: number;
1906
+ created_at_to?: number;
1910
1907
  }
1911
1908
  interface CreateEmailTemplateParams {
1912
1909
  businessId?: string;
1913
1910
  key: string;
1914
1911
  subject?: Record<string, string>;
1915
1912
  body?: string;
1916
- fromName: string;
1917
- fromEmail: string;
1918
- replyTo?: string;
1913
+ from_name: string;
1914
+ from_email: string;
1915
+ reply_to?: string;
1919
1916
  preheader?: string;
1920
1917
  }
1921
1918
  interface UpdateEmailTemplateParams {
@@ -1924,9 +1921,9 @@ interface UpdateEmailTemplateParams {
1924
1921
  key?: string;
1925
1922
  subject?: Record<string, string>;
1926
1923
  body?: string;
1927
- fromName?: string;
1928
- fromEmail?: string;
1929
- replyTo?: string;
1924
+ from_name?: string;
1925
+ from_email?: string;
1926
+ reply_to?: string;
1930
1927
  preheader?: string;
1931
1928
  status?: string;
1932
1929
  }
@@ -1947,10 +1944,10 @@ interface GetFormsParams {
1947
1944
  query?: string;
1948
1945
  key?: string;
1949
1946
  status?: string;
1950
- sortField?: string;
1951
- sortDirection?: "asc" | "desc";
1952
- createdAtFrom?: number;
1953
- createdAtTo?: number;
1947
+ sort_field?: string;
1948
+ sort_direction?: "asc" | "desc";
1949
+ created_at_from?: number;
1950
+ created_at_to?: number;
1954
1951
  }
1955
1952
  interface CreateFormParams {
1956
1953
  businessId?: string;
@@ -1984,10 +1981,10 @@ interface GetFormSubmissionsParams {
1984
1981
  query?: string;
1985
1982
  limit?: number;
1986
1983
  cursor?: string;
1987
- sortField?: string;
1988
- sortDirection?: "asc" | "desc";
1989
- createdAtFrom?: number;
1990
- createdAtTo?: number;
1984
+ sort_field?: string;
1985
+ sort_direction?: "asc" | "desc";
1986
+ created_at_from?: number;
1987
+ created_at_to?: number;
1991
1988
  }
1992
1989
  interface GetFormSubmissionParams {
1993
1990
  id: string;
@@ -2002,29 +1999,29 @@ interface UpdateFormSubmissionParams {
2002
1999
  }
2003
2000
  interface GetTaxonomiesParams {
2004
2001
  businessId?: string;
2005
- parentId?: string;
2002
+ parent_id?: string;
2006
2003
  limit?: number;
2007
2004
  cursor?: string;
2008
2005
  ids?: string[];
2009
2006
  query?: string;
2010
2007
  key?: string;
2011
2008
  status?: string;
2012
- sortField?: string;
2013
- sortDirection?: "asc" | "desc";
2014
- createdAtFrom?: number;
2015
- createdAtTo?: number;
2009
+ sort_field?: string;
2010
+ sort_direction?: "asc" | "desc";
2011
+ created_at_from?: number;
2012
+ created_at_to?: number;
2016
2013
  }
2017
2014
  interface CreateTaxonomyParams {
2018
2015
  businessId?: string;
2019
2016
  key: string;
2020
- parentId?: string | null;
2017
+ parent_id?: string | null;
2021
2018
  schema?: any[];
2022
2019
  }
2023
2020
  interface UpdateTaxonomyParams {
2024
2021
  id: string;
2025
2022
  businessId?: string;
2026
2023
  key?: string;
2027
- parentId?: string | null;
2024
+ parent_id?: string | null;
2028
2025
  schema?: any[];
2029
2026
  status?: string;
2030
2027
  }
@@ -2049,8 +2046,8 @@ interface GetBusinessesParams {
2049
2046
  query?: string;
2050
2047
  limit?: number;
2051
2048
  cursor?: string;
2052
- sortField?: string;
2053
- sortDirection?: "asc" | "desc";
2049
+ sort_field?: string;
2050
+ sort_direction?: "asc" | "desc";
2054
2051
  }
2055
2052
  interface GetSubscriptionPlansParams {
2056
2053
  }
@@ -2063,9 +2060,9 @@ interface GetBusinessMediaParams2 {
2063
2060
  limit: number;
2064
2061
  ids?: string[];
2065
2062
  query?: string;
2066
- mimeType?: string;
2067
- sortField?: string;
2068
- sortDirection?: 'asc' | 'desc';
2063
+ mime_type?: string;
2064
+ sort_field?: string;
2065
+ sort_direction?: 'asc' | 'desc';
2069
2066
  }
2070
2067
  interface DeleteProductParams {
2071
2068
  id: string;
@@ -2084,10 +2081,10 @@ interface ProcessOrderRefundParams {
2084
2081
  type SystemTemplateKey = "system:booking-business-update" | "system:booking-customer-update" | "system:user-invitation" | "system:order-status-update" | "system:user-confirmation" | "system:forgot-password";
2085
2082
  interface GetAvailabilityParams {
2086
2083
  businessId?: string;
2087
- serviceId: string;
2084
+ service_id: string;
2088
2085
  from: number;
2089
2086
  to: number;
2090
- providerId?: string;
2087
+ provider_id?: string;
2091
2088
  }
2092
2089
  interface AvailabilitySlot {
2093
2090
  from: number;
@@ -2099,8 +2096,8 @@ interface DaySlots {
2099
2096
  slots: AvailabilitySlot[];
2100
2097
  }
2101
2098
  interface ProviderAvailability {
2102
- providerId: string;
2103
- providerKey: string;
2099
+ provider_id: string;
2100
+ provider_key: string;
2104
2101
  days: DaySlots[];
2105
2102
  }
2106
2103
  interface AvailabilityResponse {
@@ -2110,12 +2107,12 @@ interface AvailabilityResponse {
2110
2107
  }
2111
2108
  interface Slot {
2112
2109
  id: string;
2113
- serviceId: string;
2114
- providerId: string;
2110
+ service_id: string;
2111
+ provider_id: string;
2115
2112
  from: number;
2116
2113
  to: number;
2117
- timeText: string;
2118
- dateText: string;
2114
+ time_text: string;
2115
+ date_text: string;
2119
2116
  }
2120
2117
  interface CreateWorkflowParams {
2121
2118
  businessId?: string;
@@ -2146,37 +2143,37 @@ interface GetWorkflowsParams {
2146
2143
  statuses?: string[];
2147
2144
  limit?: number;
2148
2145
  cursor?: string;
2149
- sortField?: string;
2150
- sortDirection?: 'asc' | 'desc';
2151
- createdAtFrom?: number;
2152
- createdAtTo?: number;
2146
+ sort_field?: string;
2147
+ sort_direction?: 'asc' | 'desc';
2148
+ created_at_from?: number;
2149
+ created_at_to?: number;
2153
2150
  }
2154
2151
  interface TriggerWorkflowParams {
2155
2152
  secret: string;
2156
2153
  [key: string]: any;
2157
2154
  }
2158
2155
  interface GetWorkflowExecutionsParams {
2159
- workflowId: string;
2156
+ workflow_id: string;
2160
2157
  businessId?: string;
2161
2158
  status?: string;
2162
2159
  limit?: number;
2163
2160
  cursor?: string;
2164
2161
  }
2165
2162
  interface GetWorkflowExecutionParams {
2166
- workflowId: string;
2167
- executionId: string;
2163
+ workflow_id: string;
2164
+ execution_id: string;
2168
2165
  businessId?: string;
2169
2166
  }
2170
2167
  interface CreateAudienceParams {
2171
2168
  key: string;
2172
2169
  type?: AudienceType;
2173
- confirmTemplateId?: string;
2170
+ confirm_template_id?: string;
2174
2171
  }
2175
2172
  interface UpdateAudienceParams {
2176
2173
  id: string;
2177
2174
  key?: string;
2178
2175
  status?: AudienceStatus;
2179
- confirmTemplateId?: string;
2176
+ confirm_template_id?: string;
2180
2177
  }
2181
2178
  interface GetAudienceParams {
2182
2179
  id?: string;
@@ -2191,11 +2188,11 @@ interface GetAudiencesParams {
2191
2188
  }
2192
2189
  interface SubscribeAudienceParams {
2193
2190
  id: string;
2194
- customerId: string;
2195
- priceId?: string;
2196
- successUrl?: string;
2197
- cancelUrl?: string;
2198
- confirmUrl?: string;
2191
+ customer_id: string;
2192
+ price_id?: string;
2193
+ success_url?: string;
2194
+ cancel_url?: string;
2195
+ confirm_url?: string;
2199
2196
  }
2200
2197
  interface DeleteAudienceParams {
2201
2198
  id: string;
@@ -2206,19 +2203,19 @@ interface GetAudienceSubscribersParams {
2206
2203
  cursor?: string;
2207
2204
  }
2208
2205
  interface AudienceSubscriber {
2209
- customerId: string;
2206
+ customer_id: string;
2210
2207
  email: string;
2211
- subscribedAt?: number;
2208
+ subscribed_at?: number;
2212
2209
  source?: AudienceSubscriptionSource;
2213
2210
  status?: AudienceSubscriptionStatus;
2214
2211
  }
2215
2212
  interface RemoveAudienceSubscriberParams {
2216
2213
  id: string;
2217
- customerId: string;
2214
+ customer_id: string;
2218
2215
  }
2219
2216
  interface AddAudienceSubscriberParams {
2220
2217
  id: string;
2221
- customerId: string;
2218
+ customer_id: string;
2222
2219
  }
2223
2220
  interface AddAudienceSubscriberResponse {
2224
2221
  subscriber: AudienceSubscriber | null;
@@ -2228,7 +2225,7 @@ interface OAuthConnectParams {
2228
2225
  businessId: string;
2229
2226
  provider: string;
2230
2227
  code: string;
2231
- redirectUri: string;
2228
+ redirect_uri: string;
2232
2229
  }
2233
2230
  interface OAuthDisconnectParams {
2234
2231
  businessId: string;
@@ -2283,19 +2280,19 @@ interface DeleteWebhookParams {
2283
2280
  id: string;
2284
2281
  }
2285
2282
  interface GetShippingRatesParams {
2286
- orderId: string;
2287
- shippingProviderId: string;
2288
- fromAddress: Address;
2289
- toAddress: Address;
2283
+ order_id: string;
2284
+ shipping_provider_id: string;
2285
+ from_address: Address;
2286
+ to_address: Address;
2290
2287
  parcel: Parcel;
2291
- customsDeclaration?: CustomsDeclaration;
2288
+ customs_declaration?: CustomsDeclaration;
2292
2289
  }
2293
2290
  interface ShipParams {
2294
- orderId: string;
2295
- rateId: string;
2291
+ order_id: string;
2292
+ rate_id: string;
2296
2293
  carrier: string;
2297
2294
  service: string;
2298
- locationId: string;
2295
+ location_id: string;
2299
2296
  lines: ShipmentLine[];
2300
2297
  }
2301
2298
  type AgentStatus = 'active' | 'draft' | 'archived';
@@ -2304,16 +2301,16 @@ interface CreateAgentParams {
2304
2301
  key: string;
2305
2302
  prompt: string;
2306
2303
  status?: AgentStatus;
2307
- modelId: string;
2308
- channelIds?: string[];
2304
+ model_id: string;
2305
+ channel_ids?: string[];
2309
2306
  }
2310
2307
  interface UpdateAgentParams {
2311
2308
  id: string;
2312
2309
  key: string;
2313
2310
  prompt: string;
2314
2311
  status: AgentStatus;
2315
- modelId: string;
2316
- channelIds?: string[];
2312
+ model_id: string;
2313
+ channel_ids?: string[];
2317
2314
  }
2318
2315
  interface DeleteAgentParams {
2319
2316
  id: string;
@@ -2329,7 +2326,7 @@ interface GetAgentsParams {
2329
2326
  interface RunAgentParams {
2330
2327
  id: string;
2331
2328
  message: string;
2332
- chatId?: string;
2329
+ chat_id?: string;
2333
2330
  direct?: boolean;
2334
2331
  }
2335
2332
  interface GetAgentChatsParams {
@@ -2339,38 +2336,38 @@ interface GetAgentChatsParams {
2339
2336
  }
2340
2337
  interface GetBusinessChatsParams {
2341
2338
  businessId?: string;
2342
- agentId?: string;
2339
+ agent_id?: string;
2343
2340
  status?: string;
2344
2341
  query?: string;
2345
- sortField?: string;
2346
- sortDirection?: 'asc' | 'desc';
2342
+ sort_field?: string;
2343
+ sort_direction?: 'asc' | 'desc';
2347
2344
  limit?: number;
2348
2345
  cursor?: string;
2349
2346
  }
2350
2347
  interface GetAgentChatParams {
2351
2348
  id: string;
2352
- chatId: string;
2349
+ chat_id: string;
2353
2350
  }
2354
2351
  interface UpdateAgentChatParams {
2355
2352
  id: string;
2356
- chatId: string;
2353
+ chat_id: string;
2357
2354
  status: 'active' | 'archived';
2358
2355
  }
2359
2356
  interface RateAgentChatParams {
2360
2357
  id: string;
2361
- chatId: string;
2358
+ chat_id: string;
2362
2359
  rating: number;
2363
2360
  comment?: string;
2364
2361
  }
2365
2362
  interface AuthToken {
2366
2363
  id: string;
2367
- accessToken: string;
2368
- refreshToken: string;
2369
- accessExpiresAt: number;
2370
- refreshExpiresAt: number;
2371
- createdAt: number;
2372
- lastUsedAt: number;
2373
- isVerified: boolean;
2364
+ access_token: string;
2365
+ refresh_token: string;
2366
+ access_expires_at: number;
2367
+ refresh_expires_at: number;
2368
+ created_at: number;
2369
+ last_used_at: number;
2370
+ is_verified: boolean;
2374
2371
  }
2375
2372
  interface CustomerInfo {
2376
2373
  id: string;
@@ -2378,39 +2375,39 @@ interface CustomerInfo {
2378
2375
  }
2379
2376
  interface CustomerAuthToken {
2380
2377
  id: string;
2381
- accessToken: string;
2382
- refreshToken: string;
2383
- accessExpiresAt: number;
2384
- refreshExpiresAt: number;
2385
- createdAt: number;
2386
- lastUsedAt: number;
2387
- isVerified: boolean;
2388
- userAgent?: string | null;
2378
+ access_token: string;
2379
+ refresh_token: string;
2380
+ access_expires_at: number;
2381
+ refresh_expires_at: number;
2382
+ created_at: number;
2383
+ last_used_at: number;
2384
+ is_verified: boolean;
2385
+ user_agent?: string | null;
2389
2386
  }
2390
2387
  interface CustomerVerificationCode {
2391
2388
  code: string;
2392
- createdAt: number;
2389
+ created_at: number;
2393
2390
  used: boolean;
2394
- businessId?: string | null;
2391
+ business_id?: string | null;
2395
2392
  }
2396
2393
  interface PromoUsage {
2397
- promoCodeId: string;
2394
+ promo_code_id: string;
2398
2395
  uses: number;
2399
2396
  }
2400
2397
  interface Customer {
2401
2398
  id: string;
2402
- businessId: string;
2399
+ business_id: string;
2403
2400
  emails: string[];
2404
2401
  status: 'active' | 'archived';
2405
- promoUsage: PromoUsage[];
2402
+ promo_usage: PromoUsage[];
2406
2403
  blocks: Block[];
2407
2404
  taxonomies: TaxonomyEntry[];
2408
- authTokens: CustomerAuthToken[];
2409
- verificationCodes: CustomerVerificationCode[];
2405
+ auth_tokens: CustomerAuthToken[];
2406
+ verification_codes: CustomerVerificationCode[];
2410
2407
  addresses: Address[];
2411
- audienceSubscriptions: any[];
2412
- createdAt: number;
2413
- updatedAt: number;
2408
+ audience_subscriptions: any[];
2409
+ created_at: number;
2410
+ updated_at: number;
2414
2411
  }
2415
2412
  interface ConnectCustomerParams {
2416
2413
  email: string;
@@ -2440,12 +2437,12 @@ interface FindCustomersParams {
2440
2437
  query?: string;
2441
2438
  limit?: number;
2442
2439
  cursor?: string;
2443
- sortField?: string;
2444
- sortDirection?: string;
2440
+ sort_field?: string;
2441
+ sort_direction?: string;
2445
2442
  }
2446
2443
  interface MergeCustomersParams {
2447
- targetId: string;
2448
- sourceId: string;
2444
+ target_id: string;
2445
+ source_id: string;
2449
2446
  businessId?: string;
2450
2447
  }
2451
2448