arky-sdk 0.9.13 → 0.9.17
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/README.md +16 -12
- package/dist/admin-6xpHuyKc.d.cts +1544 -0
- package/dist/admin-DVFAgnHm.d.ts +1544 -0
- package/dist/admin.cjs +982 -425
- package/dist/admin.cjs.map +1 -1
- package/dist/admin.d.cts +3 -3
- package/dist/admin.d.ts +3 -3
- package/dist/admin.js +982 -425
- package/dist/admin.js.map +1 -1
- package/dist/{api-DvsFdOaF.d.cts → api-DJrUdQ1C.d.cts} +1425 -657
- package/dist/{api-DvsFdOaF.d.ts → api-DJrUdQ1C.d.ts} +1425 -657
- package/dist/index.cjs +1317 -539
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1317 -539
- package/dist/index.js.map +1 -1
- package/dist/{index-CQd9b_7n.d.ts → inventory-DOwNF3D-.d.cts} +6 -4
- package/dist/{index-BC06yiuv.d.cts → inventory-GpWTZ2oe.d.ts} +6 -4
- package/dist/storefront.cjs +1210 -658
- package/dist/storefront.cjs.map +1 -1
- package/dist/storefront.d.cts +88 -285
- package/dist/storefront.d.ts +88 -285
- package/dist/storefront.js +1207 -659
- package/dist/storefront.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js.map +1 -1
- package/dist/utils.cjs +198 -16
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +18 -2
- package/dist/utils.d.ts +18 -2
- package/dist/utils.js +191 -17
- package/dist/utils.js.map +1 -1
- package/package.json +4 -5
- package/dist/admin-Q9MBFwCb.d.cts +0 -1496
- package/dist/admin-ZLXD4_en.d.ts +0 -1496
- package/scripts/contract-admin.mjs +0 -120
- package/scripts/contract-storefront.mjs +0 -296
|
@@ -1,13 +1,8 @@
|
|
|
1
|
+
type Currency = "usd" | "eur" | "gbp" | "jpy" | "cny" | "chf" | "aud" | "cad" | "hkd" | "sgd" | "nzd" | "krw" | "sek" | "nok" | "dkk" | "inr" | "mxn" | "brl" | "zar" | "rub" | "try" | "pln" | "thb" | "idr" | "myr" | "php" | "czk" | "ils" | "aed" | "sar" | "huf" | "ron" | "bgn" | "hrk" | "bam" | "rsd" | "mkd" | "all";
|
|
1
2
|
declare enum PaymentMethodType {
|
|
2
3
|
Cash = "cash",
|
|
3
4
|
CreditCard = "credit_card"
|
|
4
5
|
}
|
|
5
|
-
interface PaymentTaxLine {
|
|
6
|
-
rate_bps: number;
|
|
7
|
-
amount: number;
|
|
8
|
-
label?: string;
|
|
9
|
-
scope?: string;
|
|
10
|
-
}
|
|
11
6
|
interface OrderPaymentTax {
|
|
12
7
|
amount: number;
|
|
13
8
|
mode_snapshot?: string;
|
|
@@ -26,102 +21,89 @@ interface OrderPaymentPromoCode {
|
|
|
26
21
|
type: string;
|
|
27
22
|
value: number;
|
|
28
23
|
}
|
|
29
|
-
type
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
payment_provider_id?: string | null;
|
|
34
|
-
connected_account_id?: string | null;
|
|
35
|
-
};
|
|
36
|
-
type PaymentTransactionProvider = "manual" | "stripe" | "gift_card" | "store_credit";
|
|
37
|
-
type PaymentCaptureMethod = "automatic" | "manual";
|
|
38
|
-
type PaymentTransactionType = "authorize" | "capture" | "sale" | "void" | "cancel" | "refund" | "mark_paid" | "adjustment";
|
|
39
|
-
type PaymentTransactionStatus = "pending" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled";
|
|
24
|
+
type PaymentTransactionProvider = "manual" | "stripe";
|
|
25
|
+
type PaymentTransactionType = "create" | "authorize" | "capture" | "sale" | "cancel" | "refund" | "mark_paid";
|
|
26
|
+
type PaymentTransactionRequestType = "create_payment" | "confirm_payment" | "cancel_payment";
|
|
27
|
+
type PaymentTransactionStatus = "requested" | "requires_action" | "processing" | "succeeded" | "rejected" | "failed" | "unknown" | "cancelled";
|
|
40
28
|
interface PaymentTransaction {
|
|
41
29
|
id: string;
|
|
42
|
-
|
|
43
|
-
|
|
30
|
+
store_id: string;
|
|
31
|
+
payment_id: string;
|
|
32
|
+
order_id: string;
|
|
44
33
|
parent_transaction_id?: string | null;
|
|
45
34
|
type: PaymentTransactionType;
|
|
35
|
+
request?: PaymentTransactionRequestType | null;
|
|
46
36
|
status: PaymentTransactionStatus;
|
|
37
|
+
revision: number;
|
|
38
|
+
attempt_count: number;
|
|
47
39
|
amount: number;
|
|
48
|
-
currency:
|
|
40
|
+
currency: Currency;
|
|
49
41
|
provider: PaymentTransactionProvider;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
error_message?: string | null;
|
|
55
|
-
fee_amount?: number | null;
|
|
56
|
-
net_amount?: number | null;
|
|
57
|
-
settlement_currency?: string | null;
|
|
58
|
-
settlement_exchange_rate?: number | null;
|
|
59
|
-
payout_id?: string | null;
|
|
60
|
-
idempotency_key?: string | null;
|
|
61
|
-
raw_provider_status?: string | null;
|
|
62
|
-
processed_at?: number | null;
|
|
42
|
+
requested_at?: number | null;
|
|
43
|
+
processing_started_at?: number | null;
|
|
44
|
+
processing_deadline_at?: number | null;
|
|
45
|
+
completed_at?: number | null;
|
|
63
46
|
created_at: number;
|
|
47
|
+
updated_at: number;
|
|
48
|
+
safe_error?: string | null;
|
|
64
49
|
}
|
|
65
|
-
interface
|
|
50
|
+
interface OrderRefund {
|
|
66
51
|
id: string;
|
|
67
|
-
|
|
52
|
+
store_id: string;
|
|
53
|
+
order_id: string;
|
|
54
|
+
revision: number;
|
|
55
|
+
attempt_count: number;
|
|
68
56
|
total: number;
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
provider_refund_id?: string | null;
|
|
57
|
+
currency: Currency;
|
|
58
|
+
provider: PaymentTransactionProvider;
|
|
72
59
|
status: RefundStatus;
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
60
|
+
safe_error?: string | null;
|
|
61
|
+
requested_at: number;
|
|
62
|
+
processing_started_at?: number | null;
|
|
63
|
+
processing_deadline_at?: number | null;
|
|
64
|
+
completed_at?: number | null;
|
|
77
65
|
created_at: number;
|
|
66
|
+
updated_at: number;
|
|
78
67
|
}
|
|
79
|
-
type OrderRefundError = {
|
|
80
|
-
type: "provider_rejected";
|
|
81
|
-
message: string;
|
|
82
|
-
provider_code?: string | null;
|
|
83
|
-
provider_status?: number | null;
|
|
84
|
-
at: number;
|
|
85
|
-
} | {
|
|
86
|
-
type: "unknown_outcome";
|
|
87
|
-
message: string;
|
|
88
|
-
at: number;
|
|
89
|
-
} | {
|
|
90
|
-
type: "missing_payment_intent";
|
|
91
|
-
message: string;
|
|
92
|
-
at: number;
|
|
93
|
-
};
|
|
94
68
|
interface OrderPayment {
|
|
69
|
+
id: string;
|
|
70
|
+
store_id: string;
|
|
71
|
+
order_id: string;
|
|
95
72
|
status: OrderPaymentStatus;
|
|
96
|
-
|
|
73
|
+
amount: number;
|
|
74
|
+
currency: Currency;
|
|
75
|
+
paid: number;
|
|
76
|
+
authorized_amount: number;
|
|
77
|
+
captured_amount: number;
|
|
78
|
+
refunded_amount: number;
|
|
79
|
+
voided_amount: number;
|
|
80
|
+
method_type: PaymentMethodType;
|
|
81
|
+
latest_transaction_id?: string | null;
|
|
82
|
+
created_at: number;
|
|
83
|
+
updated_at: number;
|
|
84
|
+
}
|
|
85
|
+
interface OrderMoney {
|
|
86
|
+
currency: Currency;
|
|
97
87
|
market: string;
|
|
98
88
|
subtotal: number;
|
|
99
89
|
shipping: number;
|
|
100
90
|
discount: number;
|
|
101
91
|
total: number;
|
|
92
|
+
tax?: OrderPaymentTax | null;
|
|
93
|
+
promo_code?: OrderPaymentPromoCode | null;
|
|
94
|
+
zone_id?: string | null;
|
|
95
|
+
payment_method_key?: string | null;
|
|
96
|
+
shipping_method_id?: string | null;
|
|
97
|
+
method_type: PaymentMethodType;
|
|
98
|
+
}
|
|
99
|
+
interface OrderFinancialSummary {
|
|
100
|
+
status: OrderPaymentSummaryStatus;
|
|
102
101
|
paid: number;
|
|
103
102
|
authorized_amount: number;
|
|
104
103
|
captured_amount: number;
|
|
105
104
|
refunded_amount: number;
|
|
106
105
|
voided_amount: number;
|
|
107
|
-
|
|
108
|
-
tax?: OrderPaymentTax;
|
|
109
|
-
promo_code?: OrderPaymentPromoCode;
|
|
110
|
-
provider?: OrderPaymentProvider;
|
|
111
|
-
refunds: OrderPaymentRefund[];
|
|
112
|
-
transactions: PaymentTransaction[];
|
|
113
|
-
provider_payment_id?: string | null;
|
|
114
|
-
provider_customer_id?: string | null;
|
|
115
|
-
provider_payment_method_id?: string | null;
|
|
116
|
-
provider_status?: string | null;
|
|
117
|
-
next_action?: string | null;
|
|
118
|
-
failure_code?: string | null;
|
|
119
|
-
failure_message?: string | null;
|
|
120
|
-
idempotency_key?: string | null;
|
|
121
|
-
zone_id?: string;
|
|
122
|
-
payment_method_key?: string;
|
|
123
|
-
shipping_method_id?: string;
|
|
124
|
-
method_type: PaymentMethodType;
|
|
106
|
+
updated_at: number;
|
|
125
107
|
}
|
|
126
108
|
interface PromoCodeValidation {
|
|
127
109
|
promo_code_id: string;
|
|
@@ -145,11 +127,11 @@ interface OrderQuote {
|
|
|
145
127
|
payment_method: PaymentMethod | null;
|
|
146
128
|
payment_methods: PaymentMethod[];
|
|
147
129
|
promo_code: PromoCodeValidation | null;
|
|
148
|
-
|
|
130
|
+
money: OrderMoney;
|
|
149
131
|
charge_amount: number;
|
|
150
132
|
}
|
|
151
133
|
interface Price {
|
|
152
|
-
currency:
|
|
134
|
+
currency: Currency;
|
|
153
135
|
market: string;
|
|
154
136
|
amount: number;
|
|
155
137
|
compare_at?: number;
|
|
@@ -161,11 +143,11 @@ interface SubscriptionInterval {
|
|
|
161
143
|
count: number;
|
|
162
144
|
}
|
|
163
145
|
interface PriceProvider {
|
|
164
|
-
type:
|
|
146
|
+
type: "stripe";
|
|
165
147
|
id: string;
|
|
166
148
|
}
|
|
167
149
|
interface SubscriptionPrice {
|
|
168
|
-
currency:
|
|
150
|
+
currency: Currency;
|
|
169
151
|
amount: number;
|
|
170
152
|
compare_at?: number;
|
|
171
153
|
interval?: SubscriptionInterval;
|
|
@@ -237,19 +219,22 @@ interface Cart {
|
|
|
237
219
|
created_at: number;
|
|
238
220
|
updated_at: number;
|
|
239
221
|
}
|
|
240
|
-
interface
|
|
241
|
-
|
|
242
|
-
refresh_token?: string | null;
|
|
243
|
-
expires_at?: number | null;
|
|
222
|
+
interface SocialConnectionCredential {
|
|
223
|
+
expires_at: number | null;
|
|
244
224
|
scopes: string[];
|
|
245
225
|
}
|
|
246
226
|
interface SocialDestinationMetadata {
|
|
247
227
|
external_account_id: string;
|
|
248
228
|
external_account_name: string;
|
|
249
|
-
handle
|
|
250
|
-
avatar_url
|
|
229
|
+
handle: string | null;
|
|
230
|
+
avatar_url: string | null;
|
|
251
231
|
}
|
|
252
|
-
type
|
|
232
|
+
type SocialConnectionType = "facebook_page" | "instagram_business" | "youtube_channel" | "tiktok_account" | "x_account";
|
|
233
|
+
interface SocialConnectionProviderData {
|
|
234
|
+
credential: SocialConnectionCredential;
|
|
235
|
+
destination: SocialDestinationMetadata;
|
|
236
|
+
}
|
|
237
|
+
type SocialConnectionData = SocialConnectionProviderData;
|
|
253
238
|
type SocialPublicationStatus = "draft" | "scheduled" | "publishing" | "published" | "failed" | "unknown" | "cancelled";
|
|
254
239
|
type YoutubePrivacy = "public" | "unlisted" | "private";
|
|
255
240
|
type TiktokPrivacy = "public" | "friends" | "private";
|
|
@@ -298,7 +283,7 @@ interface SocialPublicationValidation {
|
|
|
298
283
|
interface SocialPublication {
|
|
299
284
|
id: string;
|
|
300
285
|
store_id: string;
|
|
301
|
-
|
|
286
|
+
social_connection_id: string;
|
|
302
287
|
key: string;
|
|
303
288
|
status: SocialPublicationStatus;
|
|
304
289
|
content: SocialPublicationContent;
|
|
@@ -319,26 +304,14 @@ interface SocialPublicationMutationResponse {
|
|
|
319
304
|
publish_requested: boolean;
|
|
320
305
|
}
|
|
321
306
|
type SocialPublicationCommentStatus = "open" | "replied" | "hidden" | "deleted";
|
|
322
|
-
type SocialPublicationCommentReplyStatus = "none" | "requested" | "processing" | "succeeded" | "failed" | "unknown";
|
|
323
|
-
type SocialPublicationCommentReplyError = {
|
|
324
|
-
type: "provider_rejected";
|
|
325
|
-
message: string;
|
|
326
|
-
provider_code?: string | null;
|
|
327
|
-
provider_status?: number | null;
|
|
328
|
-
at: number;
|
|
329
|
-
} | {
|
|
330
|
-
type: "unknown_outcome";
|
|
331
|
-
message: string;
|
|
332
|
-
at: number;
|
|
333
|
-
};
|
|
334
307
|
type SocialPublicationCommentIntent = "lead" | "support" | "complaint" | "question" | "praise" | "spam" | "general";
|
|
335
308
|
type SocialPublicationCommentPriority = "urgent" | "high" | "normal" | "low";
|
|
336
309
|
interface SocialPublicationComment {
|
|
337
310
|
id: string;
|
|
338
311
|
store_id: string;
|
|
339
312
|
publication_id: string;
|
|
340
|
-
|
|
341
|
-
|
|
313
|
+
social_connection_id: string;
|
|
314
|
+
type: SocialConnectionType;
|
|
342
315
|
provider_post_id?: string | null;
|
|
343
316
|
provider_comment_id: string;
|
|
344
317
|
provider_parent_comment_id?: string | null;
|
|
@@ -358,13 +331,6 @@ interface SocialPublicationComment {
|
|
|
358
331
|
author_provider_user_id?: string | null;
|
|
359
332
|
text: string;
|
|
360
333
|
status: SocialPublicationCommentStatus;
|
|
361
|
-
reply_status: SocialPublicationCommentReplyStatus;
|
|
362
|
-
reply_error?: SocialPublicationCommentReplyError | null;
|
|
363
|
-
reply_requested_text?: string | null;
|
|
364
|
-
reply_provider_comment_id?: string | null;
|
|
365
|
-
reply_provider_comment_url?: string | null;
|
|
366
|
-
reply_error_code?: string | null;
|
|
367
|
-
reply_error_message?: string | null;
|
|
368
334
|
provider_created_at?: number | null;
|
|
369
335
|
last_synced_at: number;
|
|
370
336
|
replied_at?: number | null;
|
|
@@ -383,21 +349,135 @@ interface SocialPublicationMetricSnapshot {
|
|
|
383
349
|
id: string;
|
|
384
350
|
store_id: string;
|
|
385
351
|
publication_id: string;
|
|
386
|
-
|
|
387
|
-
|
|
352
|
+
social_connection_id: string;
|
|
353
|
+
type: SocialConnectionType;
|
|
388
354
|
provider_post_id?: string | null;
|
|
389
355
|
metrics: Record<string, number>;
|
|
390
356
|
collected_at: number;
|
|
391
357
|
created_at: number;
|
|
392
358
|
updated_at: number;
|
|
393
359
|
}
|
|
394
|
-
|
|
360
|
+
type SocialCommentReplyStatus = "requested" | "processing" | "succeeded" | "rejected" | "failed" | "unknown";
|
|
361
|
+
type SocialCommentReplyError = {
|
|
362
|
+
type: "provider_call_not_started";
|
|
363
|
+
message: string;
|
|
364
|
+
at: number;
|
|
365
|
+
} | {
|
|
366
|
+
type: "provider_rejected";
|
|
367
|
+
message: string;
|
|
368
|
+
provider_code?: string | null;
|
|
369
|
+
provider_status?: number | null;
|
|
370
|
+
at: number;
|
|
371
|
+
} | {
|
|
372
|
+
type: "unknown_outcome";
|
|
373
|
+
message: string;
|
|
374
|
+
at: number;
|
|
375
|
+
};
|
|
376
|
+
interface SocialCommentReplyEvidence {
|
|
395
377
|
provider_comment_id: string;
|
|
396
378
|
provider_comment_url?: string | null;
|
|
397
379
|
}
|
|
380
|
+
interface SocialCommentReply {
|
|
381
|
+
id: string;
|
|
382
|
+
store_id: string;
|
|
383
|
+
publication_id: string;
|
|
384
|
+
comment_id: string;
|
|
385
|
+
social_connection_id: string;
|
|
386
|
+
text: string;
|
|
387
|
+
status: SocialCommentReplyStatus;
|
|
388
|
+
requested_at: number;
|
|
389
|
+
processing_started_at?: number | null;
|
|
390
|
+
processing_deadline_at?: number | null;
|
|
391
|
+
completed_at?: number | null;
|
|
392
|
+
evidence?: SocialCommentReplyEvidence | null;
|
|
393
|
+
error?: SocialCommentReplyError | null;
|
|
394
|
+
}
|
|
398
395
|
interface SocialPublicationCommentReplyResponse {
|
|
399
396
|
comment: SocialPublicationComment;
|
|
400
|
-
reply:
|
|
397
|
+
reply: SocialCommentReply;
|
|
398
|
+
}
|
|
399
|
+
type SocialPublicationEffectStatus = "requested" | "processing" | "succeeded" | "rejected" | "failed" | "unknown";
|
|
400
|
+
type SocialPublicationEffectError = {
|
|
401
|
+
type: "provider_call_not_started";
|
|
402
|
+
message: string;
|
|
403
|
+
at: number;
|
|
404
|
+
} | {
|
|
405
|
+
type: "provider_rejected";
|
|
406
|
+
message: string;
|
|
407
|
+
provider_code?: string | null;
|
|
408
|
+
provider_status?: number | null;
|
|
409
|
+
at: number;
|
|
410
|
+
} | {
|
|
411
|
+
type: "unknown_outcome";
|
|
412
|
+
message: string;
|
|
413
|
+
at: number;
|
|
414
|
+
};
|
|
415
|
+
type SocialPublicationEffectRequest = {
|
|
416
|
+
type: "x_upload_media";
|
|
417
|
+
media_id: string;
|
|
418
|
+
uploaded_media_ids: string[];
|
|
419
|
+
} | {
|
|
420
|
+
type: "x_publish_post";
|
|
421
|
+
uploaded_media_ids: string[];
|
|
422
|
+
} | {
|
|
423
|
+
type: "facebook_create_unpublished_photo";
|
|
424
|
+
media_id: string;
|
|
425
|
+
unpublished_photo_ids: string[];
|
|
426
|
+
} | {
|
|
427
|
+
type: "facebook_publish_post";
|
|
428
|
+
unpublished_photo_ids: string[];
|
|
429
|
+
} | {
|
|
430
|
+
type: "instagram_create_media_container";
|
|
431
|
+
media_id: string;
|
|
432
|
+
placement: InstagramPlacement;
|
|
433
|
+
carousel_item: boolean;
|
|
434
|
+
child_container_ids: string[];
|
|
435
|
+
} | {
|
|
436
|
+
type: "instagram_create_carousel_container";
|
|
437
|
+
child_container_ids: string[];
|
|
438
|
+
} | {
|
|
439
|
+
type: "instagram_publish_container";
|
|
440
|
+
container_id: string;
|
|
441
|
+
container_media_id?: string | null;
|
|
442
|
+
} | {
|
|
443
|
+
type: "youtube_initialize_upload";
|
|
444
|
+
media_id: string;
|
|
445
|
+
} | {
|
|
446
|
+
type: "youtube_upload";
|
|
447
|
+
media_id: string;
|
|
448
|
+
total_bytes: number;
|
|
449
|
+
has_upload_session: boolean;
|
|
450
|
+
} | {
|
|
451
|
+
type: "tiktok_initialize_upload";
|
|
452
|
+
media_id: string;
|
|
453
|
+
} | {
|
|
454
|
+
type: "tiktok_upload";
|
|
455
|
+
media_id: string;
|
|
456
|
+
publish_id: string;
|
|
457
|
+
total_bytes: number;
|
|
458
|
+
has_upload_session: boolean;
|
|
459
|
+
};
|
|
460
|
+
interface SocialPublicationEffectEvidence {
|
|
461
|
+
provider_object_id?: string | null;
|
|
462
|
+
provider_object_url?: string | null;
|
|
463
|
+
has_upload_session: boolean;
|
|
464
|
+
upload_total_bytes?: number | null;
|
|
465
|
+
}
|
|
466
|
+
interface SocialPublicationEffect {
|
|
467
|
+
id: string;
|
|
468
|
+
store_id: string;
|
|
469
|
+
publication_id: string;
|
|
470
|
+
social_connection_id: string;
|
|
471
|
+
publication_revision: number;
|
|
472
|
+
sequence: number;
|
|
473
|
+
request: SocialPublicationEffectRequest;
|
|
474
|
+
status: SocialPublicationEffectStatus;
|
|
475
|
+
requested_at: number;
|
|
476
|
+
processing_started_at?: number | null;
|
|
477
|
+
processing_deadline_at?: number | null;
|
|
478
|
+
completed_at?: number | null;
|
|
479
|
+
evidence?: SocialPublicationEffectEvidence | null;
|
|
480
|
+
error?: SocialPublicationEffectError | null;
|
|
401
481
|
}
|
|
402
482
|
interface SocialPublicationEngagementSyncResult {
|
|
403
483
|
publications_scanned: number;
|
|
@@ -425,9 +505,10 @@ interface SocialAnalyticsCapabilities {
|
|
|
425
505
|
read_post_metrics: boolean;
|
|
426
506
|
}
|
|
427
507
|
interface SocialProviderCapability {
|
|
428
|
-
|
|
508
|
+
type: SocialConnectionType;
|
|
429
509
|
display_name: string;
|
|
430
510
|
icon_key: string;
|
|
511
|
+
publishing_supported: boolean;
|
|
431
512
|
required_scopes: string[];
|
|
432
513
|
media_requirements: string[];
|
|
433
514
|
engagement: SocialEngagementCapabilities;
|
|
@@ -437,17 +518,17 @@ interface SocialConnectResponse {
|
|
|
437
518
|
authorization_url: string;
|
|
438
519
|
state: string;
|
|
439
520
|
}
|
|
440
|
-
type SocialOAuthCallbackStatus = "
|
|
521
|
+
type SocialOAuthCallbackStatus = "connected" | "selection_required";
|
|
441
522
|
interface SocialOAuthDestinationOption extends SocialDestinationMetadata {
|
|
442
523
|
candidate_id: string;
|
|
443
524
|
}
|
|
444
525
|
interface SocialOAuthCallbackResponse {
|
|
445
526
|
status: SocialOAuthCallbackStatus;
|
|
446
527
|
store_id: string;
|
|
447
|
-
|
|
528
|
+
type: SocialConnectionType;
|
|
448
529
|
account_id: string;
|
|
449
530
|
attempt_id?: string | null;
|
|
450
|
-
|
|
531
|
+
social_connection_id?: string | null;
|
|
451
532
|
destination?: SocialDestinationMetadata | null;
|
|
452
533
|
options: SocialOAuthDestinationOption[];
|
|
453
534
|
message: string;
|
|
@@ -458,44 +539,65 @@ interface BuildHook {
|
|
|
458
539
|
store_id: string;
|
|
459
540
|
key: string;
|
|
460
541
|
type: BuildHookType;
|
|
542
|
+
/** Write-only endpoint; API responses contain a redacted placeholder. */
|
|
461
543
|
url: string;
|
|
544
|
+
/** Header values are write-only and redacted in API responses. */
|
|
462
545
|
headers: Record<string, string>;
|
|
463
546
|
active: boolean;
|
|
464
547
|
created_at: number;
|
|
465
548
|
updated_at: number;
|
|
466
549
|
}
|
|
467
|
-
interface
|
|
550
|
+
interface SocialConnection {
|
|
468
551
|
id: string;
|
|
469
552
|
store_id: string;
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
credential: SocialOAuthCredential;
|
|
473
|
-
destination: SocialDestinationMetadata;
|
|
553
|
+
type: SocialConnectionType;
|
|
554
|
+
data: SocialConnectionData;
|
|
474
555
|
created_at: number;
|
|
475
556
|
updated_at: number;
|
|
476
557
|
}
|
|
558
|
+
type PaymentProviderConnectionStatus = "requested" | "processing" | "succeeded" | "rejected" | "failed" | "unknown";
|
|
559
|
+
type PaymentProviderConnectionError = {
|
|
560
|
+
type: "provider_rejected";
|
|
561
|
+
message: string;
|
|
562
|
+
at: number;
|
|
563
|
+
} | {
|
|
564
|
+
type: "provider_call_not_started";
|
|
565
|
+
message: string;
|
|
566
|
+
at: number;
|
|
567
|
+
} | {
|
|
568
|
+
type: "unknown_outcome";
|
|
569
|
+
message: string;
|
|
570
|
+
at: number;
|
|
571
|
+
};
|
|
572
|
+
interface PaymentProviderConnection {
|
|
573
|
+
status: PaymentProviderConnectionStatus;
|
|
574
|
+
revision: number;
|
|
575
|
+
attempts: number;
|
|
576
|
+
requested_at: number;
|
|
577
|
+
processing_started_at?: number | null;
|
|
578
|
+
completed_at?: number | null;
|
|
579
|
+
error?: PaymentProviderConnectionError | null;
|
|
580
|
+
}
|
|
477
581
|
interface PaymentProvider {
|
|
478
582
|
id: string;
|
|
479
583
|
store_id: string;
|
|
480
584
|
key: string;
|
|
481
585
|
provider: {
|
|
482
586
|
type: "stripe";
|
|
483
|
-
onboarding_status:
|
|
587
|
+
onboarding_status: "pending" | "submitted" | "complete";
|
|
484
588
|
charges_enabled: boolean;
|
|
485
589
|
payouts_enabled: boolean;
|
|
486
590
|
details_submitted: boolean;
|
|
487
|
-
application_fee_bps?: number | null;
|
|
488
|
-
currency: string;
|
|
489
591
|
};
|
|
592
|
+
connection: PaymentProviderConnection;
|
|
490
593
|
created_at: number;
|
|
491
594
|
updated_at: number;
|
|
492
595
|
}
|
|
493
596
|
interface PaymentStoreConfig {
|
|
494
597
|
provider: "stripe";
|
|
495
598
|
publishable_key: string;
|
|
496
|
-
|
|
599
|
+
connected_account_id: string;
|
|
497
600
|
}
|
|
498
|
-
type StoreRuntimeConfig = PaymentStoreConfig | [] | null;
|
|
499
601
|
interface StripePaymentProviderConnectResponse {
|
|
500
602
|
provider: PaymentProvider;
|
|
501
603
|
onboarding_url: string;
|
|
@@ -558,22 +660,6 @@ interface DigitalAsset {
|
|
|
558
660
|
external_url?: string | null;
|
|
559
661
|
status: DigitalAssetStatus;
|
|
560
662
|
}
|
|
561
|
-
interface TaxLineReversal {
|
|
562
|
-
tax_line_id: string;
|
|
563
|
-
amount: number;
|
|
564
|
-
}
|
|
565
|
-
interface RefundLine {
|
|
566
|
-
order_item_id: string;
|
|
567
|
-
quantity: number;
|
|
568
|
-
subtotal_amount: number;
|
|
569
|
-
discount_amount: number;
|
|
570
|
-
taxable_base: number;
|
|
571
|
-
amount: number;
|
|
572
|
-
tax_amount: number;
|
|
573
|
-
tax_line_reversals: TaxLineReversal[];
|
|
574
|
-
restock: boolean;
|
|
575
|
-
}
|
|
576
|
-
type RefundType = "item" | "shipping" | "goodwill" | "correction";
|
|
577
663
|
interface ProductVariant {
|
|
578
664
|
id: string;
|
|
579
665
|
sku?: string;
|
|
@@ -708,9 +794,8 @@ interface ProductLineItem {
|
|
|
708
794
|
variant_id: string;
|
|
709
795
|
quantity: number;
|
|
710
796
|
cancelled_quantity: number;
|
|
797
|
+
allocated_quantity: number;
|
|
711
798
|
fulfilled_quantity: number;
|
|
712
|
-
returned_quantity: number;
|
|
713
|
-
refunded_quantity: number;
|
|
714
799
|
location_id?: string;
|
|
715
800
|
snapshot: ProductLineItemSnapshot;
|
|
716
801
|
status: OrderItemStatus;
|
|
@@ -727,7 +812,6 @@ interface ServiceLineItem {
|
|
|
727
812
|
quantity: number;
|
|
728
813
|
cancelled_quantity: number;
|
|
729
814
|
fulfilled_quantity: number;
|
|
730
|
-
refunded_quantity: number;
|
|
731
815
|
forms: FormEntry[];
|
|
732
816
|
snapshot: ServiceLineItemSnapshot;
|
|
733
817
|
status: OrderItemStatus;
|
|
@@ -738,6 +822,14 @@ interface ServiceLineItem {
|
|
|
738
822
|
type OrderItem = ProductLineItem | ServiceLineItem;
|
|
739
823
|
type OrderPaymentSummaryStatus = "unpaid" | "pending" | "authorized" | "partially_paid" | "paid" | "partially_refunded" | "refunded" | "failed" | "voided" | "expired";
|
|
740
824
|
type OrderFulfillmentStatus = "unfulfilled" | "scheduled" | "on_hold" | "in_progress" | "partially_fulfilled" | "fulfilled" | "incomplete" | "not_required";
|
|
825
|
+
interface OrderFulfillmentSummary {
|
|
826
|
+
status: OrderFulfillmentStatus;
|
|
827
|
+
required_quantity: number;
|
|
828
|
+
allocated_quantity: number;
|
|
829
|
+
fulfilled_quantity: number;
|
|
830
|
+
open_order_count: number;
|
|
831
|
+
updated_at: number;
|
|
832
|
+
}
|
|
741
833
|
interface HistoryEntry {
|
|
742
834
|
action: string;
|
|
743
835
|
reason?: string;
|
|
@@ -746,6 +838,7 @@ interface HistoryEntry {
|
|
|
746
838
|
type DigitalAccessGrantStatus = "pending" | "active" | "exhausted" | "revoked" | "expired";
|
|
747
839
|
interface DigitalAccessGrant {
|
|
748
840
|
id: string;
|
|
841
|
+
store_id: string;
|
|
749
842
|
order_id: string;
|
|
750
843
|
order_item_id: string;
|
|
751
844
|
product_id: string;
|
|
@@ -754,15 +847,16 @@ interface DigitalAccessGrant {
|
|
|
754
847
|
asset_id: string;
|
|
755
848
|
asset_name_snapshot: string;
|
|
756
849
|
type: DigitalAssetType;
|
|
757
|
-
access_url?: string | null;
|
|
758
|
-
storage_ref?: string | null;
|
|
759
850
|
status: DigitalAccessGrantStatus;
|
|
760
851
|
delivery_policy_snapshot: DigitalDeliveryPolicy;
|
|
761
852
|
download_limit?: number | null;
|
|
853
|
+
access_expires_after_days_snapshot?: number | null;
|
|
762
854
|
download_count: number;
|
|
763
855
|
expires_at?: number | null;
|
|
764
856
|
granted_at?: number | null;
|
|
765
857
|
revoked_at?: number | null;
|
|
858
|
+
created_at: number;
|
|
859
|
+
updated_at: number;
|
|
766
860
|
}
|
|
767
861
|
interface DigitalAccessDownloadResponse {
|
|
768
862
|
url: string;
|
|
@@ -786,10 +880,13 @@ interface FulfillmentOrderLine {
|
|
|
786
880
|
id: string;
|
|
787
881
|
order_item_id: string;
|
|
788
882
|
quantity: number;
|
|
883
|
+
allocated_quantity: number;
|
|
789
884
|
fulfilled_quantity: number;
|
|
885
|
+
remaining_quantity: number;
|
|
790
886
|
}
|
|
791
887
|
interface FulfillmentOrder {
|
|
792
888
|
id: string;
|
|
889
|
+
store_id: string;
|
|
793
890
|
order_id: string;
|
|
794
891
|
assigned_location_id: string;
|
|
795
892
|
status: FulfillmentOrderStatus;
|
|
@@ -803,6 +900,7 @@ interface FulfillmentOrder {
|
|
|
803
900
|
}
|
|
804
901
|
interface Order {
|
|
805
902
|
id: string;
|
|
903
|
+
revision: number;
|
|
806
904
|
number: string;
|
|
807
905
|
store_id: string;
|
|
808
906
|
source_cart_id: string;
|
|
@@ -812,14 +910,14 @@ interface Order {
|
|
|
812
910
|
fulfillment_status: OrderFulfillmentStatus;
|
|
813
911
|
verified: boolean;
|
|
814
912
|
items: OrderItem[];
|
|
815
|
-
|
|
913
|
+
payment_id: string;
|
|
914
|
+
money: OrderMoney;
|
|
915
|
+
financial_summary: OrderFinancialSummary;
|
|
916
|
+
fulfillment_summary: OrderFulfillmentSummary;
|
|
816
917
|
shipping_lines: ShippingLine[];
|
|
817
|
-
fulfillment_orders: FulfillmentOrder[];
|
|
818
918
|
shipping_address?: Address;
|
|
819
919
|
billing_address?: Address;
|
|
820
920
|
forms: FormEntry[];
|
|
821
|
-
shipments: Shipment[];
|
|
822
|
-
digital_access_grants: DigitalAccessGrant[];
|
|
823
921
|
history: HistoryEntry[];
|
|
824
922
|
contact_list_id?: string;
|
|
825
923
|
fired_reminders: number[];
|
|
@@ -852,7 +950,7 @@ interface Market {
|
|
|
852
950
|
id: string;
|
|
853
951
|
store_id: string;
|
|
854
952
|
key: string;
|
|
855
|
-
currency:
|
|
953
|
+
currency: Currency;
|
|
856
954
|
tax_mode: "exclusive" | "inclusive";
|
|
857
955
|
payment_methods: PaymentMethod[];
|
|
858
956
|
zones: Zone[];
|
|
@@ -903,6 +1001,8 @@ type WebhookEventSubscription = {
|
|
|
903
1001
|
event: "order.digital_access_activated";
|
|
904
1002
|
} | {
|
|
905
1003
|
event: "order.digital_access_downloaded";
|
|
1004
|
+
} | {
|
|
1005
|
+
event: "order.digital_access_revoked";
|
|
906
1006
|
} | {
|
|
907
1007
|
event: "order.cancelled";
|
|
908
1008
|
} | {
|
|
@@ -955,8 +1055,6 @@ type WebhookEventSubscription = {
|
|
|
955
1055
|
event: "store.created";
|
|
956
1056
|
} | {
|
|
957
1057
|
event: "store.updated";
|
|
958
|
-
} | {
|
|
959
|
-
event: "store.deleted";
|
|
960
1058
|
} | {
|
|
961
1059
|
event: "contact_list.created";
|
|
962
1060
|
} | {
|
|
@@ -969,6 +1067,13 @@ type WebhookEventSubscription = {
|
|
|
969
1067
|
event: "contact_list.contact_confirmed";
|
|
970
1068
|
} | {
|
|
971
1069
|
event: "contact_list.contact_cancelled";
|
|
1070
|
+
} | {
|
|
1071
|
+
event: "contact.created";
|
|
1072
|
+
} | {
|
|
1073
|
+
event: "contact.updated";
|
|
1074
|
+
} | {
|
|
1075
|
+
event: "form_submission.created";
|
|
1076
|
+
form_id?: string;
|
|
972
1077
|
} | {
|
|
973
1078
|
event: "account.updated";
|
|
974
1079
|
};
|
|
@@ -976,114 +1081,170 @@ interface Webhook {
|
|
|
976
1081
|
id: string;
|
|
977
1082
|
store_id: string;
|
|
978
1083
|
key: string;
|
|
1084
|
+
/** Write-only endpoint; API responses contain a redacted placeholder. */
|
|
979
1085
|
url: string;
|
|
980
1086
|
events: WebhookEventSubscription[];
|
|
1087
|
+
/** Header values are write-only and redacted in API responses. */
|
|
981
1088
|
headers: Record<string, string>;
|
|
1089
|
+
/** Write-only signing secret; API responses contain a redacted placeholder. */
|
|
982
1090
|
secret: string;
|
|
983
1091
|
enabled: boolean;
|
|
984
1092
|
created_at: number;
|
|
985
1093
|
updated_at: number;
|
|
986
1094
|
}
|
|
987
1095
|
type StoreSubscriptionStatus = "pending" | "active" | "cancellation_scheduled" | "cancelled" | "expired";
|
|
988
|
-
type
|
|
989
|
-
type
|
|
990
|
-
type: "
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
};
|
|
995
|
-
type StoreSubscriptionProviderLifecycleStatus = "requested" | "processing" | "succeeded" | "rejected" | "unknown";
|
|
996
|
-
type StoreSubscriptionProviderOperation = {
|
|
997
|
-
type: "cancel_at_period_end";
|
|
1096
|
+
type StoreSubscriptionActionStatus = "requested" | "processing" | "succeeded" | "rejected" | "failed" | "unknown";
|
|
1097
|
+
type StoreSubscriptionActionRequest = {
|
|
1098
|
+
type: "select_plan";
|
|
1099
|
+
data: {
|
|
1100
|
+
plan_id: string;
|
|
1101
|
+
};
|
|
998
1102
|
} | {
|
|
999
|
-
type: "
|
|
1000
|
-
plan_id?: string | null;
|
|
1103
|
+
type: "cancel_at_period_end";
|
|
1001
1104
|
} | {
|
|
1002
1105
|
type: "reactivate";
|
|
1106
|
+
};
|
|
1107
|
+
type StoreSubscriptionActionError = {
|
|
1108
|
+
type: "provider_rejected";
|
|
1109
|
+
data: {
|
|
1110
|
+
effect_id: string;
|
|
1111
|
+
message: string;
|
|
1112
|
+
};
|
|
1003
1113
|
} | {
|
|
1004
|
-
type: "
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1114
|
+
type: "unknown_outcome";
|
|
1115
|
+
data: {
|
|
1116
|
+
effect_id: string;
|
|
1117
|
+
message: string;
|
|
1118
|
+
};
|
|
1008
1119
|
} | {
|
|
1009
|
-
type: "
|
|
1010
|
-
|
|
1011
|
-
|
|
1120
|
+
type: "provider_call_not_started";
|
|
1121
|
+
data: {
|
|
1122
|
+
effect_id: string;
|
|
1123
|
+
message: string;
|
|
1124
|
+
};
|
|
1012
1125
|
};
|
|
1013
|
-
type
|
|
1126
|
+
type StoreSubscriptionActionResult = {
|
|
1127
|
+
type: "checkout";
|
|
1128
|
+
data: {
|
|
1129
|
+
session_id: string;
|
|
1130
|
+
checkout_url: string;
|
|
1131
|
+
expires_at: number;
|
|
1132
|
+
};
|
|
1133
|
+
};
|
|
1134
|
+
interface StoreSubscriptionAction {
|
|
1135
|
+
id: string;
|
|
1136
|
+
subscription_id: string;
|
|
1137
|
+
store_id: string;
|
|
1138
|
+
request: StoreSubscriptionActionRequest;
|
|
1139
|
+
status: StoreSubscriptionActionStatus;
|
|
1140
|
+
error?: StoreSubscriptionActionError | null;
|
|
1141
|
+
result?: StoreSubscriptionActionResult | null;
|
|
1142
|
+
requested_at: number;
|
|
1143
|
+
completed_at?: number | null;
|
|
1144
|
+
updated_at: number;
|
|
1145
|
+
}
|
|
1146
|
+
type StoreSubscriptionEffectType = "create_checkout" | "cancel_at_period_end" | "cancel_immediately" | "reactivate" | "update_plan" | "create_schedule" | "update_schedule";
|
|
1147
|
+
type StoreSubscriptionEffectStatus = StoreSubscriptionActionStatus;
|
|
1148
|
+
type StoreSubscriptionEffectError = {
|
|
1014
1149
|
type: "provider_rejected";
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
at: number;
|
|
1150
|
+
data: {
|
|
1151
|
+
message: string;
|
|
1152
|
+
};
|
|
1019
1153
|
} | {
|
|
1020
1154
|
type: "unknown_outcome";
|
|
1021
|
-
|
|
1022
|
-
|
|
1155
|
+
data: {
|
|
1156
|
+
message: string;
|
|
1157
|
+
};
|
|
1023
1158
|
} | {
|
|
1024
|
-
type: "
|
|
1025
|
-
|
|
1026
|
-
|
|
1159
|
+
type: "provider_call_not_started";
|
|
1160
|
+
data: {
|
|
1161
|
+
message: string;
|
|
1162
|
+
};
|
|
1027
1163
|
};
|
|
1028
|
-
interface
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1164
|
+
interface StoreSubscriptionEffect {
|
|
1165
|
+
id: string;
|
|
1166
|
+
action_id: string;
|
|
1167
|
+
subscription_id: string;
|
|
1168
|
+
store_id: string;
|
|
1169
|
+
sequence: number;
|
|
1170
|
+
type: StoreSubscriptionEffectType;
|
|
1171
|
+
status: StoreSubscriptionEffectStatus;
|
|
1172
|
+
error?: StoreSubscriptionEffectError | null;
|
|
1173
|
+
requested_at: number;
|
|
1174
|
+
processing_started_at?: number | null;
|
|
1175
|
+
completed_at?: number | null;
|
|
1033
1176
|
updated_at: number;
|
|
1034
1177
|
}
|
|
1035
1178
|
interface StoreSubscriptionPayment {
|
|
1036
|
-
currency:
|
|
1179
|
+
currency: Currency;
|
|
1037
1180
|
market: string;
|
|
1038
|
-
provider?: StoreSubscriptionProvider | null;
|
|
1039
1181
|
}
|
|
1040
1182
|
interface StoreSubscription {
|
|
1041
1183
|
id: string;
|
|
1042
|
-
|
|
1184
|
+
store_id: string;
|
|
1043
1185
|
plan_id: string;
|
|
1044
1186
|
pending_plan_id: string | null;
|
|
1045
1187
|
payment: StoreSubscriptionPayment;
|
|
1046
1188
|
status: StoreSubscriptionStatus;
|
|
1047
|
-
provider_lifecycle: StoreSubscriptionProviderLifecycle;
|
|
1048
1189
|
start_date: number;
|
|
1049
1190
|
end_date: number;
|
|
1050
|
-
|
|
1051
|
-
|
|
1191
|
+
created_at: number;
|
|
1192
|
+
updated_at: number;
|
|
1052
1193
|
}
|
|
1053
|
-
type
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1194
|
+
type ContactListMembershipPaymentAttemptStatus = "pending" | "confirming" | "requires_action" | "processing" | "declined" | "failed" | "rejected" | "succeeded" | "expired" | "unknown";
|
|
1195
|
+
type ContactListMembershipPaymentAttemptType = "create_customer" | "create_payment_intent" | "create_subscription" | "confirm_payment_intent";
|
|
1196
|
+
type ContactListMembershipPaymentAttemptSafeError = "payment_rejected" | "invalid_payment_state" | "unknown_outcome";
|
|
1197
|
+
interface ContactListMembershipPaymentAttempt {
|
|
1198
|
+
id: string;
|
|
1199
|
+
store_id: string;
|
|
1200
|
+
contact_list_id: string;
|
|
1201
|
+
membership_id: string;
|
|
1202
|
+
contact_id: string;
|
|
1203
|
+
generation: number;
|
|
1204
|
+
stage: number;
|
|
1205
|
+
type: ContactListMembershipPaymentAttemptType;
|
|
1206
|
+
status: ContactListMembershipPaymentAttemptStatus;
|
|
1207
|
+
plan_id: string;
|
|
1208
|
+
amount: number;
|
|
1209
|
+
currency: Currency;
|
|
1210
|
+
interval?: SubscriptionInterval | null;
|
|
1211
|
+
safe_error?: ContactListMembershipPaymentAttemptSafeError | null;
|
|
1212
|
+
started_at: number;
|
|
1213
|
+
updated_at: number;
|
|
1066
1214
|
}
|
|
1067
|
-
type
|
|
1068
|
-
type
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1215
|
+
type ContactListMembershipRefundStatus = "requested" | "processing" | "succeeded" | "failed" | "rejected" | "unknown";
|
|
1216
|
+
type ContactListMembershipRefundType = "partial" | "full";
|
|
1217
|
+
type ContactListMembershipRefundSafeError = "provider_rejected" | "invalid_refund_state" | "unknown_outcome";
|
|
1218
|
+
interface ContactListMembershipRefund {
|
|
1219
|
+
id: string;
|
|
1220
|
+
store_id: string;
|
|
1221
|
+
contact_list_id: string;
|
|
1222
|
+
membership_id: string;
|
|
1223
|
+
payment_attempt_id: string;
|
|
1224
|
+
revision: number;
|
|
1225
|
+
type: ContactListMembershipRefundType;
|
|
1226
|
+
amount: number;
|
|
1227
|
+
currency: Currency;
|
|
1228
|
+
status: ContactListMembershipRefundStatus;
|
|
1229
|
+
safe_error?: ContactListMembershipRefundSafeError | null;
|
|
1230
|
+
created_at: number;
|
|
1231
|
+
updated_at: number;
|
|
1232
|
+
}
|
|
1233
|
+
type ContactListMembershipCancellationStatus = "requested" | "processing" | "succeeded" | "failed" | "rejected" | "unknown";
|
|
1234
|
+
type ContactListMembershipCancellationType = "at_period_end" | "immediate";
|
|
1235
|
+
type ContactListMembershipCancellationSafeError = "provider_rejected" | "invalid_cancellation_state" | "unknown_outcome";
|
|
1236
|
+
interface ContactListMembershipCancellation {
|
|
1237
|
+
id: string;
|
|
1238
|
+
store_id: string;
|
|
1239
|
+
contact_list_id: string;
|
|
1240
|
+
membership_id: string;
|
|
1241
|
+
payment_attempt_id: string;
|
|
1242
|
+
refund_id?: string | null;
|
|
1243
|
+
revision: number;
|
|
1244
|
+
type: ContactListMembershipCancellationType;
|
|
1245
|
+
status: ContactListMembershipCancellationStatus;
|
|
1246
|
+
safe_error?: ContactListMembershipCancellationSafeError | null;
|
|
1247
|
+
created_at: number;
|
|
1087
1248
|
updated_at: number;
|
|
1088
1249
|
}
|
|
1089
1250
|
interface Store {
|
|
@@ -1092,8 +1253,7 @@ interface Store {
|
|
|
1092
1253
|
timezone: string;
|
|
1093
1254
|
languages?: Language[];
|
|
1094
1255
|
emails?: StoreEmails;
|
|
1095
|
-
|
|
1096
|
-
counts?: Record<string, number>;
|
|
1256
|
+
payment?: PaymentStoreConfig | null;
|
|
1097
1257
|
}
|
|
1098
1258
|
interface EshopStoreState {
|
|
1099
1259
|
store_id: string;
|
|
@@ -1145,22 +1305,53 @@ interface TaxonomyQuery {
|
|
|
1145
1305
|
query: TaxonomyFieldQuery[];
|
|
1146
1306
|
}
|
|
1147
1307
|
type FormSchemaType = "text" | "number" | "boolean" | "date" | "geo_location" | "select";
|
|
1148
|
-
interface
|
|
1308
|
+
interface FormSchemaBase {
|
|
1149
1309
|
id: string;
|
|
1150
1310
|
key: string;
|
|
1151
|
-
|
|
1152
|
-
|
|
1311
|
+
required: boolean;
|
|
1312
|
+
}
|
|
1313
|
+
type FormSchema = (FormSchemaBase & {
|
|
1314
|
+
type: "text";
|
|
1315
|
+
}) | (FormSchemaBase & {
|
|
1316
|
+
type: "number";
|
|
1153
1317
|
min?: number | null;
|
|
1154
1318
|
max?: number | null;
|
|
1155
|
-
|
|
1156
|
-
|
|
1319
|
+
}) | (FormSchemaBase & {
|
|
1320
|
+
type: "boolean";
|
|
1321
|
+
}) | (FormSchemaBase & {
|
|
1322
|
+
type: "date";
|
|
1323
|
+
}) | (FormSchemaBase & {
|
|
1324
|
+
type: "geo_location";
|
|
1325
|
+
}) | (FormSchemaBase & {
|
|
1326
|
+
type: "select";
|
|
1327
|
+
options: string[];
|
|
1328
|
+
});
|
|
1157
1329
|
type FormFieldType = "text" | "number" | "boolean" | "date" | "geo_location" | "select";
|
|
1158
|
-
interface
|
|
1330
|
+
interface FormFieldBase {
|
|
1159
1331
|
id: string;
|
|
1160
1332
|
key: string;
|
|
1161
|
-
type: FormFieldType;
|
|
1162
|
-
value?: any;
|
|
1163
1333
|
}
|
|
1334
|
+
type FormField = (FormFieldBase & {
|
|
1335
|
+
type: "text";
|
|
1336
|
+
value: string;
|
|
1337
|
+
}) | (FormFieldBase & {
|
|
1338
|
+
type: "number";
|
|
1339
|
+
value: number;
|
|
1340
|
+
}) | (FormFieldBase & {
|
|
1341
|
+
type: "boolean";
|
|
1342
|
+
value: boolean;
|
|
1343
|
+
}) | (FormFieldBase & {
|
|
1344
|
+
type: "date";
|
|
1345
|
+
value: number;
|
|
1346
|
+
}) | (FormFieldBase & {
|
|
1347
|
+
type: "geo_location";
|
|
1348
|
+
value: GeoLocation;
|
|
1349
|
+
}) | (FormFieldBase & {
|
|
1350
|
+
type: "select";
|
|
1351
|
+
value: string[];
|
|
1352
|
+
});
|
|
1353
|
+
type FormValue = FormField["value"];
|
|
1354
|
+
type FormValues = Record<string, FormValue | undefined>;
|
|
1164
1355
|
interface FormEntry {
|
|
1165
1356
|
form_id: string;
|
|
1166
1357
|
fields: FormField[];
|
|
@@ -1174,51 +1365,65 @@ interface GeoLocationBlock extends Block {
|
|
|
1174
1365
|
value: GeoLocation | null;
|
|
1175
1366
|
}
|
|
1176
1367
|
type Access = "public" | "private";
|
|
1368
|
+
type MediaSize = "original" | "thumbnail" | "small" | "medium" | "large";
|
|
1177
1369
|
interface MediaResolution {
|
|
1178
1370
|
id: string;
|
|
1179
|
-
size:
|
|
1371
|
+
size: MediaSize;
|
|
1180
1372
|
url: string;
|
|
1181
1373
|
}
|
|
1182
1374
|
interface Media {
|
|
1183
1375
|
id: string;
|
|
1184
|
-
resolutions:
|
|
1185
|
-
[key: string]: MediaResolution;
|
|
1186
|
-
};
|
|
1376
|
+
resolutions: Partial<Record<MediaSize, MediaResolution>>;
|
|
1187
1377
|
mime_type: string;
|
|
1188
1378
|
title?: string | null;
|
|
1189
1379
|
description?: string | null;
|
|
1190
1380
|
alt?: string | null;
|
|
1191
1381
|
store_id: string;
|
|
1192
|
-
entity?: string;
|
|
1193
1382
|
metadata?: string | null;
|
|
1194
1383
|
created_at: number;
|
|
1195
1384
|
slug: Record<string, string>;
|
|
1196
1385
|
}
|
|
1386
|
+
type SubscriptionPlanFeatureType = "collections" | "entries" | "services" | "products" | "providers" | "workflows" | "contact_lists" | "crm_contacts" | "media" | "members" | "taxonomies" | "email_templates" | "forms" | "mailboxes" | "social_connections" | "webhooks" | "support_agents" | "lead_research_runs" | "outreach_campaigns";
|
|
1387
|
+
interface SubscriptionPlanFeature {
|
|
1388
|
+
limit: number | null;
|
|
1389
|
+
reset: "never" | "monthly";
|
|
1390
|
+
}
|
|
1197
1391
|
interface SubscriptionPlan {
|
|
1198
1392
|
id: string;
|
|
1199
|
-
provider_price_id
|
|
1200
|
-
provider_product_id?: string | null;
|
|
1393
|
+
provider_price_id: string | null;
|
|
1201
1394
|
name: string;
|
|
1202
1395
|
tier: number;
|
|
1203
1396
|
amount: number;
|
|
1204
|
-
currency:
|
|
1205
|
-
interval:
|
|
1397
|
+
currency: Currency;
|
|
1398
|
+
interval: "lifetime" | "month" | "year";
|
|
1206
1399
|
interval_count: number;
|
|
1207
|
-
|
|
1400
|
+
features: Record<SubscriptionPlanFeatureType, SubscriptionPlanFeature>;
|
|
1208
1401
|
}
|
|
1209
|
-
|
|
1402
|
+
type AccountApiTokenStatus = "active" | "revoked" | "expired";
|
|
1403
|
+
interface AccountApiToken {
|
|
1210
1404
|
id: string;
|
|
1211
|
-
|
|
1212
|
-
name
|
|
1405
|
+
token_hint: string;
|
|
1406
|
+
name: string;
|
|
1407
|
+
status: AccountApiTokenStatus;
|
|
1213
1408
|
created_at: number;
|
|
1214
1409
|
expires_at?: number | null;
|
|
1215
|
-
|
|
1410
|
+
revoked_at?: number | null;
|
|
1216
1411
|
}
|
|
1217
1412
|
interface StoreMembership {
|
|
1413
|
+
id: string;
|
|
1218
1414
|
store_id: string;
|
|
1415
|
+
account_id: string;
|
|
1219
1416
|
role: StoreRole;
|
|
1220
|
-
|
|
1417
|
+
status: "invited" | "active";
|
|
1418
|
+
invited_by_account_id?: string | null;
|
|
1419
|
+
invited_at?: number | null;
|
|
1221
1420
|
joined_at?: number | null;
|
|
1421
|
+
created_at: number;
|
|
1422
|
+
updated_at: number;
|
|
1423
|
+
}
|
|
1424
|
+
interface StoreMember {
|
|
1425
|
+
account: Account;
|
|
1426
|
+
membership: StoreMembership;
|
|
1222
1427
|
}
|
|
1223
1428
|
interface AccountLifecycle {
|
|
1224
1429
|
last_login_at?: number | null;
|
|
@@ -1227,32 +1432,27 @@ interface AccountLifecycle {
|
|
|
1227
1432
|
interface Account {
|
|
1228
1433
|
id: string;
|
|
1229
1434
|
email: string;
|
|
1230
|
-
|
|
1231
|
-
api_tokens: AccountToken[];
|
|
1232
|
-
auth_tokens?: AuthToken[];
|
|
1233
|
-
verification_codes?: unknown[];
|
|
1234
|
-
lifecycle?: AccountLifecycle;
|
|
1435
|
+
lifecycle: AccountLifecycle;
|
|
1235
1436
|
}
|
|
1236
1437
|
interface AccountUpdateResponse {
|
|
1237
1438
|
success: boolean;
|
|
1238
|
-
newly_created_tokens: AccountToken[];
|
|
1239
1439
|
}
|
|
1240
|
-
interface
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1440
|
+
interface AccountApiTokenCreated {
|
|
1441
|
+
token: AccountApiToken;
|
|
1442
|
+
value: string;
|
|
1443
|
+
}
|
|
1444
|
+
interface AccountSession {
|
|
1445
|
+
id: string;
|
|
1446
|
+
status: "active" | "revoked" | "expired";
|
|
1447
|
+
access_expires_at: number;
|
|
1448
|
+
refresh_expires_at: number;
|
|
1449
|
+
is_verified: boolean;
|
|
1450
|
+
created_at: number;
|
|
1451
|
+
revoked_at?: number | null;
|
|
1246
1452
|
}
|
|
1247
1453
|
interface PaginatedResponse<T> {
|
|
1248
1454
|
items: T[];
|
|
1249
1455
|
cursor: string | null;
|
|
1250
|
-
data?: T[];
|
|
1251
|
-
meta?: {
|
|
1252
|
-
total: number;
|
|
1253
|
-
page: number;
|
|
1254
|
-
per_page: number;
|
|
1255
|
-
};
|
|
1256
1456
|
}
|
|
1257
1457
|
type ServiceStatus = "active" | "draft" | "archived";
|
|
1258
1458
|
type ProviderStatus = "active" | "draft" | "archived";
|
|
@@ -1267,7 +1467,7 @@ type MailboxStatus = "active" | "draft" | "archived";
|
|
|
1267
1467
|
type MailboxPreset = "gmail" | "zoho" | "microsoft" | "custom";
|
|
1268
1468
|
type MailboxConnectionSecurity = "tls" | "start_tls";
|
|
1269
1469
|
type MailboxSyncStatus = "not_ready" | "ready" | "failed";
|
|
1270
|
-
type
|
|
1470
|
+
type SmtpImapMailboxProviderInput = {
|
|
1271
1471
|
type: "smtp_imap";
|
|
1272
1472
|
preset: MailboxPreset;
|
|
1273
1473
|
smtp_host: string;
|
|
@@ -1277,16 +1477,41 @@ type SmtpImapMailboxProvider = {
|
|
|
1277
1477
|
imap_port: number;
|
|
1278
1478
|
imap_security: MailboxConnectionSecurity;
|
|
1279
1479
|
username: string;
|
|
1280
|
-
password_configured: boolean;
|
|
1281
1480
|
sync_enabled: boolean;
|
|
1282
1481
|
sync_interval_seconds: number;
|
|
1482
|
+
};
|
|
1483
|
+
type SmtpImapMailboxProvider = SmtpImapMailboxProviderInput & {
|
|
1484
|
+
password_configured: boolean;
|
|
1283
1485
|
sync_status?: MailboxSyncStatus;
|
|
1284
1486
|
sync_error?: string | null;
|
|
1285
1487
|
sync_ready_at?: number | null;
|
|
1286
1488
|
last_synced_at?: number | null;
|
|
1287
1489
|
last_seen_uid?: number | null;
|
|
1288
1490
|
};
|
|
1491
|
+
interface GoogleMailboxProfile {
|
|
1492
|
+
external_account_id: string;
|
|
1493
|
+
email: string;
|
|
1494
|
+
display_name: string;
|
|
1495
|
+
avatar_url?: string | null;
|
|
1496
|
+
}
|
|
1497
|
+
type GoogleMailboxProvider = {
|
|
1498
|
+
type: "google";
|
|
1499
|
+
profile: GoogleMailboxProfile;
|
|
1500
|
+
access_configured: boolean;
|
|
1501
|
+
refresh_configured: boolean;
|
|
1502
|
+
token_expires_at?: number | null;
|
|
1503
|
+
token_type?: string | null;
|
|
1504
|
+
scopes: string[];
|
|
1505
|
+
sync_enabled: boolean;
|
|
1506
|
+
sync_interval_seconds: number;
|
|
1507
|
+
sync_status?: MailboxSyncStatus;
|
|
1508
|
+
sync_error?: string | null;
|
|
1509
|
+
sync_ready_at?: number | null;
|
|
1510
|
+
last_synced_at?: number | null;
|
|
1511
|
+
last_history_id?: string | null;
|
|
1512
|
+
};
|
|
1289
1513
|
type CampaignStatus = "draft" | "active" | "paused" | "completed" | "archived";
|
|
1514
|
+
type CampaignLaunchStatus = "idle" | "requested" | "processing" | "succeeded" | "failed";
|
|
1290
1515
|
type CampaignEnrollmentStatus = "pending" | "active" | "action_required" | "replied" | "completed" | "suppressed" | "failed" | "stopped";
|
|
1291
1516
|
type CampaignEnrollmentImportSource = "contact_list" | "contact" | "manual";
|
|
1292
1517
|
type CampaignMessageStatus = "draft" | "scheduled" | "pending" | "sending" | "sent" | "received" | "action_required" | "completed" | "bounced" | "failed" | "unknown" | "skipped" | "stopped" | "superseded";
|
|
@@ -1318,11 +1543,13 @@ type SuppressionTargetType = "email" | "domain" | "contact" | "phone";
|
|
|
1318
1543
|
type SuppressionScopeType = "store" | "campaign";
|
|
1319
1544
|
type SuppressionReason = "manual" | "unsubscribed" | "bounced" | "complained" | "replied";
|
|
1320
1545
|
type SuppressionSource = "admin" | "import" | "reply" | "system";
|
|
1321
|
-
type WorkflowStatus = "active" | "draft" | "archived";
|
|
1546
|
+
type WorkflowStatus = "active" | "draft" | "archived" | "deleting";
|
|
1547
|
+
type MutableWorkflowStatus = Exclude<WorkflowStatus, "deleting">;
|
|
1322
1548
|
type PromoCodeStatus = "active" | "draft" | "archived";
|
|
1323
1549
|
type CollectionStatus = "active" | "draft" | "archived";
|
|
1324
1550
|
type EntryStatus = "active" | "draft" | "archived";
|
|
1325
1551
|
type EmailTemplateStatus = "active" | "draft" | "archived";
|
|
1552
|
+
type EmailTemplateType = "order_store_notification" | "order_contact_notification" | "order_reminder_contact" | "digital_access_ready_contact" | "contact_store_notification" | "subscription_confirmation" | "campaign_email" | "newsletter_email";
|
|
1326
1553
|
type FormStatus = "active" | "draft" | "archived";
|
|
1327
1554
|
type TaxonomyStatus = "active" | "draft" | "archived";
|
|
1328
1555
|
type OrderCancellationReason = "admin_rejected" | "contact_cancelled" | "payment_failed" | "expired" | "other";
|
|
@@ -1457,11 +1684,9 @@ interface EmailTemplate {
|
|
|
1457
1684
|
id: string;
|
|
1458
1685
|
key: string;
|
|
1459
1686
|
store_id: string;
|
|
1687
|
+
type: EmailTemplateType;
|
|
1460
1688
|
subject: Record<string, string>;
|
|
1461
1689
|
body: string;
|
|
1462
|
-
from_name: string;
|
|
1463
|
-
from_email: string;
|
|
1464
|
-
reply_to?: string;
|
|
1465
1690
|
preheader?: string;
|
|
1466
1691
|
variables: EmailTemplateVariable[];
|
|
1467
1692
|
sample_data: Record<string, unknown>;
|
|
@@ -1469,8 +1694,11 @@ interface EmailTemplate {
|
|
|
1469
1694
|
created_at: number;
|
|
1470
1695
|
updated_at: number;
|
|
1471
1696
|
}
|
|
1697
|
+
type EmailTemplateVariableSource = "template" | "system";
|
|
1472
1698
|
interface EmailTemplateVariable {
|
|
1473
1699
|
key: string;
|
|
1700
|
+
required: boolean;
|
|
1701
|
+
source: EmailTemplateVariableSource;
|
|
1474
1702
|
}
|
|
1475
1703
|
interface Form {
|
|
1476
1704
|
id: string;
|
|
@@ -1570,6 +1798,7 @@ interface Workflow {
|
|
|
1570
1798
|
key: string;
|
|
1571
1799
|
store_id: string;
|
|
1572
1800
|
secret: string;
|
|
1801
|
+
trigger_url: string;
|
|
1573
1802
|
status: WorkflowStatus;
|
|
1574
1803
|
nodes: Record<string, WorkflowNode>;
|
|
1575
1804
|
edges: WorkflowEdge[];
|
|
@@ -1577,62 +1806,189 @@ interface Workflow {
|
|
|
1577
1806
|
created_at: number;
|
|
1578
1807
|
updated_at: number;
|
|
1579
1808
|
}
|
|
1580
|
-
type WorkflowNode = WorkflowTriggerNode | WorkflowHttpNode | WorkflowDeployWebhookNode | WorkflowGoogleDriveUploadNode | WorkflowSwitchNode | WorkflowTransformNode | WorkflowLoopNode;
|
|
1581
|
-
interface WorkflowTriggerNode {
|
|
1582
|
-
type: "trigger";
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1809
|
+
type WorkflowNode = WorkflowTriggerNode | WorkflowHttpNode | WorkflowSendEmailNode | WorkflowDeployWebhookNode | WorkflowGoogleDriveUploadNode | WorkflowSwitchNode | WorkflowTransformNode | WorkflowLoopNode;
|
|
1810
|
+
interface WorkflowTriggerNode {
|
|
1811
|
+
type: "trigger";
|
|
1812
|
+
delay_ms?: number;
|
|
1813
|
+
schema?: Block[];
|
|
1814
|
+
}
|
|
1815
|
+
interface WorkflowHttpNodeBase {
|
|
1816
|
+
type: "http";
|
|
1817
|
+
url: string;
|
|
1818
|
+
headers: Record<string, string>;
|
|
1819
|
+
body?: unknown;
|
|
1820
|
+
timeout_ms: number;
|
|
1821
|
+
delay_ms: number;
|
|
1822
|
+
}
|
|
1823
|
+
type WorkflowHttpNode = WorkflowHttpNodeBase & ({
|
|
1824
|
+
method: "get";
|
|
1825
|
+
retries: number;
|
|
1826
|
+
retry_delay_ms: number;
|
|
1827
|
+
} | {
|
|
1828
|
+
method: Exclude<WorkflowHttpMethod, "get">;
|
|
1829
|
+
retries: 0;
|
|
1830
|
+
retry_delay_ms: 0;
|
|
1831
|
+
});
|
|
1832
|
+
type EmailRecipients = string | string[];
|
|
1833
|
+
interface EmailSendTemplateData {
|
|
1834
|
+
store_id: string;
|
|
1835
|
+
mailbox_id: string;
|
|
1836
|
+
template_id: string;
|
|
1837
|
+
recipients: EmailRecipients;
|
|
1838
|
+
vars?: Record<string, unknown>;
|
|
1839
|
+
}
|
|
1840
|
+
type EmailSend = {
|
|
1841
|
+
type: "order_store_notification";
|
|
1842
|
+
data: EmailSendTemplateData;
|
|
1843
|
+
} | {
|
|
1844
|
+
type: "order_contact_notification";
|
|
1845
|
+
data: EmailSendTemplateData;
|
|
1846
|
+
} | {
|
|
1847
|
+
type: "order_reminder_contact";
|
|
1848
|
+
data: EmailSendTemplateData;
|
|
1849
|
+
} | {
|
|
1850
|
+
type: "digital_access_ready_contact";
|
|
1851
|
+
data: EmailSendTemplateData;
|
|
1852
|
+
} | {
|
|
1853
|
+
type: "contact_store_notification";
|
|
1854
|
+
data: EmailSendTemplateData;
|
|
1855
|
+
} | {
|
|
1856
|
+
type: "subscription_confirmation";
|
|
1857
|
+
data: EmailSendTemplateData;
|
|
1858
|
+
};
|
|
1859
|
+
interface EmailSendRequest {
|
|
1860
|
+
send_id: string;
|
|
1861
|
+
send: EmailSend;
|
|
1862
|
+
}
|
|
1863
|
+
type EmailDeliveryErrorKind = "provider_call_not_started" | "provider_rejected" | "unknown_outcome";
|
|
1864
|
+
type EmailDeliveryStatus = "pending" | "sending" | "sent" | "rejected" | "failed" | "unknown" | "skipped";
|
|
1865
|
+
type EmailDeliveryType = {
|
|
1866
|
+
type: "platform_auth_code";
|
|
1867
|
+
data: {
|
|
1868
|
+
account_id: string;
|
|
1869
|
+
challenge_id: string;
|
|
1870
|
+
};
|
|
1871
|
+
} | {
|
|
1872
|
+
type: "store_auth_code";
|
|
1873
|
+
data: {
|
|
1874
|
+
store_id: string;
|
|
1875
|
+
account_id: string;
|
|
1876
|
+
challenge_id: string;
|
|
1877
|
+
};
|
|
1878
|
+
} | {
|
|
1879
|
+
type: "contact_verification";
|
|
1880
|
+
data: {
|
|
1881
|
+
store_id: string;
|
|
1882
|
+
contact_id: string;
|
|
1883
|
+
challenge_id: string;
|
|
1884
|
+
};
|
|
1885
|
+
} | {
|
|
1886
|
+
type: "tenant_mailbox";
|
|
1887
|
+
data: {
|
|
1888
|
+
send_id: string;
|
|
1889
|
+
store_id: string;
|
|
1890
|
+
mailbox_id: string;
|
|
1891
|
+
template_id: string;
|
|
1892
|
+
};
|
|
1893
|
+
} | {
|
|
1894
|
+
type: "campaign_message";
|
|
1895
|
+
data: {
|
|
1896
|
+
store_id: string;
|
|
1897
|
+
campaign_message_id: string;
|
|
1898
|
+
mailbox_id: string;
|
|
1899
|
+
};
|
|
1900
|
+
} | {
|
|
1901
|
+
type: "support_message";
|
|
1902
|
+
data: {
|
|
1903
|
+
store_id: string;
|
|
1904
|
+
support_message_id: string;
|
|
1905
|
+
mailbox_id: string;
|
|
1906
|
+
};
|
|
1907
|
+
};
|
|
1908
|
+
interface EmailDeliveryError {
|
|
1909
|
+
type: EmailDeliveryErrorKind;
|
|
1910
|
+
message: string;
|
|
1911
|
+
}
|
|
1912
|
+
interface EmailDelivery {
|
|
1913
|
+
id: string;
|
|
1914
|
+
revision: number;
|
|
1915
|
+
attempts: number;
|
|
1916
|
+
type: EmailDeliveryType;
|
|
1917
|
+
status: EmailDeliveryStatus;
|
|
1918
|
+
error?: EmailDeliveryError | null;
|
|
1919
|
+
requested_at: number;
|
|
1920
|
+
processing_started_at?: number | null;
|
|
1921
|
+
completed_at?: number | null;
|
|
1922
|
+
sent_at?: number | null;
|
|
1923
|
+
created_at: number;
|
|
1924
|
+
updated_at: number;
|
|
1925
|
+
}
|
|
1926
|
+
interface GetEmailDeliveryParams {
|
|
1927
|
+
delivery_id: string;
|
|
1928
|
+
}
|
|
1929
|
+
interface RetryEmailDeliveryParams {
|
|
1930
|
+
delivery_id: string;
|
|
1931
|
+
revision: number;
|
|
1932
|
+
}
|
|
1933
|
+
interface EmailSendDeliveryResult {
|
|
1934
|
+
delivery_id: string;
|
|
1935
|
+
revision: number;
|
|
1936
|
+
recipient: string;
|
|
1937
|
+
mailbox_id: string;
|
|
1938
|
+
template_id: string;
|
|
1939
|
+
status: EmailDeliveryStatus;
|
|
1940
|
+
error?: EmailDeliveryError | null;
|
|
1941
|
+
provider_message_id?: string | null;
|
|
1942
|
+
provider_thread_id?: string | null;
|
|
1943
|
+
}
|
|
1944
|
+
interface EmailSendResult {
|
|
1945
|
+
sent: number;
|
|
1946
|
+
deliveries: EmailSendDeliveryResult[];
|
|
1586
1947
|
}
|
|
1587
|
-
interface
|
|
1588
|
-
type: "
|
|
1589
|
-
|
|
1590
|
-
url: string;
|
|
1591
|
-
headers?: Record<string, string>;
|
|
1592
|
-
body?: any;
|
|
1593
|
-
timeout_ms?: number;
|
|
1948
|
+
interface WorkflowSendEmailNode {
|
|
1949
|
+
type: "send_email";
|
|
1950
|
+
send: EmailSend;
|
|
1594
1951
|
delay_ms?: number;
|
|
1595
|
-
retries?: number;
|
|
1596
|
-
retry_delay_ms?: number;
|
|
1597
1952
|
}
|
|
1598
1953
|
interface WorkflowDeployWebhookNode {
|
|
1599
1954
|
type: "deploy_webhook";
|
|
1600
1955
|
build_hook_id: string;
|
|
1601
1956
|
timeout_ms?: number;
|
|
1602
1957
|
delay_ms?: number;
|
|
1603
|
-
retries?: number;
|
|
1604
|
-
retry_delay_ms?: number;
|
|
1605
1958
|
}
|
|
1606
|
-
type
|
|
1607
|
-
interface
|
|
1959
|
+
type WorkflowConnectionType = "google_drive";
|
|
1960
|
+
interface GoogleDriveWorkflowProfile {
|
|
1608
1961
|
external_account_id: string;
|
|
1609
1962
|
display_name: string;
|
|
1610
1963
|
email?: string | null;
|
|
1611
1964
|
}
|
|
1612
|
-
interface
|
|
1965
|
+
interface GoogleDriveWorkflowConnectionData {
|
|
1966
|
+
type: "google_drive";
|
|
1967
|
+
connected: boolean;
|
|
1968
|
+
profile: GoogleDriveWorkflowProfile | null;
|
|
1969
|
+
}
|
|
1970
|
+
type WorkflowConnectionData = GoogleDriveWorkflowConnectionData;
|
|
1971
|
+
interface WorkflowConnection {
|
|
1613
1972
|
id: string;
|
|
1614
1973
|
store_id: string;
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
profile: WorkflowAccountProfile;
|
|
1974
|
+
type: WorkflowConnectionType;
|
|
1975
|
+
data: WorkflowConnectionData;
|
|
1618
1976
|
created_at: number;
|
|
1619
1977
|
updated_at: number;
|
|
1620
1978
|
}
|
|
1621
|
-
interface
|
|
1979
|
+
interface WorkflowConnectionConnectUrl {
|
|
1622
1980
|
authorization_url: string;
|
|
1623
1981
|
state: string;
|
|
1624
1982
|
}
|
|
1625
1983
|
interface WorkflowGoogleDriveUploadNode {
|
|
1626
1984
|
type: "google_drive_upload";
|
|
1627
|
-
|
|
1985
|
+
workflow_connection_id: string;
|
|
1628
1986
|
name: string;
|
|
1629
|
-
mime_type
|
|
1630
|
-
content?:
|
|
1987
|
+
mime_type?: string;
|
|
1988
|
+
content?: unknown;
|
|
1631
1989
|
parent_folder_id?: string | null;
|
|
1632
1990
|
timeout_ms?: number;
|
|
1633
1991
|
delay_ms?: number;
|
|
1634
|
-
retries?: number;
|
|
1635
|
-
retry_delay_ms?: number;
|
|
1636
1992
|
}
|
|
1637
1993
|
interface WorkflowSwitchRule {
|
|
1638
1994
|
condition: string;
|
|
@@ -1662,12 +2018,19 @@ interface NodeResult {
|
|
|
1662
2018
|
duration_ms: number;
|
|
1663
2019
|
error?: string;
|
|
1664
2020
|
}
|
|
2021
|
+
type WorkflowExecutionInput = {
|
|
2022
|
+
type: "webhook";
|
|
2023
|
+
payload: unknown;
|
|
2024
|
+
} | {
|
|
2025
|
+
type: "schedule";
|
|
2026
|
+
schedule: string;
|
|
2027
|
+
};
|
|
1665
2028
|
interface WorkflowExecution {
|
|
1666
2029
|
id: string;
|
|
1667
2030
|
workflow_id: string;
|
|
1668
2031
|
store_id: string;
|
|
1669
2032
|
status: ExecutionStatus;
|
|
1670
|
-
input:
|
|
2033
|
+
input: WorkflowExecutionInput;
|
|
1671
2034
|
results: Record<string, NodeResult>;
|
|
1672
2035
|
error?: string;
|
|
1673
2036
|
scheduled_at: number;
|
|
@@ -1676,6 +2039,31 @@ interface WorkflowExecution {
|
|
|
1676
2039
|
created_at: number;
|
|
1677
2040
|
updated_at: number;
|
|
1678
2041
|
}
|
|
2042
|
+
type WorkflowEffectType = "http_mutation" | "deploy_webhook" | "google_drive_upload";
|
|
2043
|
+
type WorkflowEffectStatus = "requested" | "processing" | "succeeded" | "rejected" | "failed" | "unknown";
|
|
2044
|
+
interface WorkflowEffectError {
|
|
2045
|
+
type: "provider_call_not_started" | "provider_rejected" | "unknown_outcome";
|
|
2046
|
+
message: string;
|
|
2047
|
+
at: number;
|
|
2048
|
+
}
|
|
2049
|
+
interface WorkflowEffectEvidence {
|
|
2050
|
+
output: unknown;
|
|
2051
|
+
}
|
|
2052
|
+
interface WorkflowEffect {
|
|
2053
|
+
id: string;
|
|
2054
|
+
store_id: string;
|
|
2055
|
+
workflow_id: string;
|
|
2056
|
+
execution_id: string;
|
|
2057
|
+
node_id: string;
|
|
2058
|
+
type: WorkflowEffectType;
|
|
2059
|
+
status: WorkflowEffectStatus;
|
|
2060
|
+
requested_at: number;
|
|
2061
|
+
processing_started_at?: number | null;
|
|
2062
|
+
completed_at?: number | null;
|
|
2063
|
+
evidence?: WorkflowEffectEvidence | null;
|
|
2064
|
+
error?: WorkflowEffectError | null;
|
|
2065
|
+
updated_at: number;
|
|
2066
|
+
}
|
|
1679
2067
|
type ContactListType = {
|
|
1680
2068
|
type: "standard";
|
|
1681
2069
|
} | {
|
|
@@ -1684,14 +2072,28 @@ type ContactListType = {
|
|
|
1684
2072
|
} | {
|
|
1685
2073
|
type: "paid";
|
|
1686
2074
|
};
|
|
2075
|
+
type ContactListPlanCatalogStatus = "requested" | "processing" | "succeeded" | "failed" | "unknown";
|
|
2076
|
+
type ContactListPlanCatalogType = {
|
|
2077
|
+
type: "create_product";
|
|
2078
|
+
} | {
|
|
2079
|
+
type: "create_price";
|
|
2080
|
+
price_index: number;
|
|
2081
|
+
};
|
|
2082
|
+
type ContactListPlanCatalogSafeError = "provider_rejected" | "invalid_catalog_state" | "unknown_outcome";
|
|
1687
2083
|
interface ContactListPlan {
|
|
1688
2084
|
id: string;
|
|
2085
|
+
store_id: string;
|
|
2086
|
+
contact_list_id: string;
|
|
1689
2087
|
key: string;
|
|
1690
2088
|
name: string;
|
|
1691
2089
|
description?: string | null;
|
|
1692
2090
|
status: ContactListPlanStatus;
|
|
1693
2091
|
prices: SubscriptionPrice[];
|
|
1694
2092
|
payment_provider_id?: string | null;
|
|
2093
|
+
catalog_revision: number;
|
|
2094
|
+
catalog_type: ContactListPlanCatalogType;
|
|
2095
|
+
catalog_status: ContactListPlanCatalogStatus;
|
|
2096
|
+
catalog_safe_error?: ContactListPlanCatalogSafeError | null;
|
|
1695
2097
|
created_at: number;
|
|
1696
2098
|
updated_at: number;
|
|
1697
2099
|
}
|
|
@@ -1709,16 +2111,23 @@ interface ContactListContentAccess {
|
|
|
1709
2111
|
created_at: number;
|
|
1710
2112
|
updated_at: number;
|
|
1711
2113
|
}
|
|
1712
|
-
|
|
2114
|
+
type ContactSessionStatus$1 = "active" | "revoked" | "expired";
|
|
2115
|
+
interface ContactSessionRecord$1 {
|
|
1713
2116
|
id: string;
|
|
1714
|
-
|
|
2117
|
+
store_id: string;
|
|
2118
|
+
contact_id: string;
|
|
2119
|
+
status: ContactSessionStatus$1;
|
|
1715
2120
|
created_at: number;
|
|
2121
|
+
expires_at: number;
|
|
2122
|
+
revoked_at: number | null;
|
|
2123
|
+
last_seen_at: number | null;
|
|
1716
2124
|
}
|
|
1717
|
-
interface
|
|
1718
|
-
|
|
2125
|
+
interface ContactSessionIssued {
|
|
2126
|
+
id: string;
|
|
2127
|
+
token: string;
|
|
2128
|
+
status: ContactSessionStatus$1;
|
|
1719
2129
|
created_at: number;
|
|
1720
|
-
|
|
1721
|
-
store_id?: string | null;
|
|
2130
|
+
expires_at: number;
|
|
1722
2131
|
}
|
|
1723
2132
|
interface PromoUsage$1 {
|
|
1724
2133
|
promo_code_id: string;
|
|
@@ -1753,8 +2162,6 @@ interface Contact$1 {
|
|
|
1753
2162
|
channels: ContactChannel[];
|
|
1754
2163
|
promo_usage: PromoUsage$1[];
|
|
1755
2164
|
taxonomies: TaxonomyEntry[];
|
|
1756
|
-
auth_tokens: ContactSessionToken$1[];
|
|
1757
|
-
verification_codes: ContactVerificationCode$1[];
|
|
1758
2165
|
created_at: number;
|
|
1759
2166
|
updated_at: number;
|
|
1760
2167
|
}
|
|
@@ -1767,9 +2174,32 @@ interface ContactListContentAccessResponse {
|
|
|
1767
2174
|
contact_list?: ContactList | null;
|
|
1768
2175
|
membership?: ContactListMembership | null;
|
|
1769
2176
|
}
|
|
2177
|
+
interface ContactListManagementContactList {
|
|
2178
|
+
id: string;
|
|
2179
|
+
key: string;
|
|
2180
|
+
name: string;
|
|
2181
|
+
description?: string | null;
|
|
2182
|
+
type: ContactListType;
|
|
2183
|
+
content_access: ContactListContentAccess[];
|
|
2184
|
+
}
|
|
2185
|
+
interface ContactListManagementMembership {
|
|
2186
|
+
id: string;
|
|
2187
|
+
status: ContactListMembershipStatus;
|
|
2188
|
+
current_payment_attempt_id?: string | null;
|
|
2189
|
+
source: ContactListSource;
|
|
2190
|
+
start_date: number;
|
|
2191
|
+
end_date: number;
|
|
2192
|
+
created_at: number;
|
|
2193
|
+
updated_at: number;
|
|
2194
|
+
}
|
|
2195
|
+
interface ContactListManagementResponse {
|
|
2196
|
+
has_access: boolean;
|
|
2197
|
+
contact_list: ContactListManagementContactList;
|
|
2198
|
+
membership: ContactListManagementMembership;
|
|
2199
|
+
}
|
|
1770
2200
|
interface ContactListSubscribeResponse {
|
|
1771
|
-
checkout_url?: string | null;
|
|
1772
2201
|
payment_action: CheckoutPaymentAction;
|
|
2202
|
+
payment_attempt?: StorefrontContactListPaymentAttemptSummary | null;
|
|
1773
2203
|
membership?: ContactListMembership | null;
|
|
1774
2204
|
}
|
|
1775
2205
|
interface ContactList {
|
|
@@ -1780,7 +2210,6 @@ interface ContactList {
|
|
|
1780
2210
|
description?: string | null;
|
|
1781
2211
|
status: ContactListStatus;
|
|
1782
2212
|
type: ContactListType;
|
|
1783
|
-
plans: ContactListPlan[];
|
|
1784
2213
|
content_access: ContactListContentAccess[];
|
|
1785
2214
|
source: ContactListSource;
|
|
1786
2215
|
member_count: number;
|
|
@@ -1797,13 +2226,41 @@ interface ContactListMembership {
|
|
|
1797
2226
|
lead_description?: string | null;
|
|
1798
2227
|
lead?: LeadInsight | null;
|
|
1799
2228
|
status: ContactListMembershipStatus;
|
|
2229
|
+
current_payment_attempt_id?: string | null;
|
|
2230
|
+
start_date: number;
|
|
2231
|
+
end_date: number;
|
|
2232
|
+
created_at: number;
|
|
2233
|
+
updated_at: number;
|
|
2234
|
+
}
|
|
2235
|
+
type StorefrontContactListType = "standard" | "confirmation" | "paid";
|
|
2236
|
+
interface StorefrontContactList {
|
|
2237
|
+
id: string;
|
|
2238
|
+
key: string;
|
|
2239
|
+
name: string;
|
|
2240
|
+
description?: string | null;
|
|
2241
|
+
type: StorefrontContactListType;
|
|
2242
|
+
}
|
|
2243
|
+
interface StorefrontContactListPlan {
|
|
2244
|
+
id: string;
|
|
2245
|
+
key: string;
|
|
2246
|
+
name: string;
|
|
2247
|
+
description?: string | null;
|
|
2248
|
+
prices: SubscriptionPrice[];
|
|
2249
|
+
}
|
|
2250
|
+
interface StorefrontContactListPaymentAttemptSummary {
|
|
1800
2251
|
plan_id: string;
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
2252
|
+
amount: number;
|
|
2253
|
+
currency: Currency;
|
|
2254
|
+
interval?: SubscriptionInterval | null;
|
|
2255
|
+
status: ContactListMembershipPaymentAttemptStatus;
|
|
2256
|
+
}
|
|
2257
|
+
interface StorefrontContactListMembership {
|
|
2258
|
+
id: string;
|
|
2259
|
+
status: ContactListMembershipStatus;
|
|
2260
|
+
contact_list: StorefrontContactList;
|
|
2261
|
+
payment_attempt?: StorefrontContactListPaymentAttemptSummary | null;
|
|
1804
2262
|
start_date: number;
|
|
1805
2263
|
end_date: number;
|
|
1806
|
-
token: string;
|
|
1807
2264
|
created_at: number;
|
|
1808
2265
|
updated_at: number;
|
|
1809
2266
|
}
|
|
@@ -1873,8 +2330,8 @@ type ActionData = {
|
|
|
1873
2330
|
} | {
|
|
1874
2331
|
type: "social_comment";
|
|
1875
2332
|
value: {
|
|
1876
|
-
|
|
1877
|
-
|
|
2333
|
+
social_connection_id: string;
|
|
2334
|
+
type: SocialConnectionType;
|
|
1878
2335
|
publication_id: string;
|
|
1879
2336
|
comment_id: string;
|
|
1880
2337
|
provider_comment_id: string;
|
|
@@ -1885,8 +2342,8 @@ type ActionData = {
|
|
|
1885
2342
|
} | {
|
|
1886
2343
|
type: "social_reply";
|
|
1887
2344
|
value: {
|
|
1888
|
-
|
|
1889
|
-
|
|
2345
|
+
social_connection_id: string;
|
|
2346
|
+
type: SocialConnectionType;
|
|
1890
2347
|
publication_id: string;
|
|
1891
2348
|
comment_id: string;
|
|
1892
2349
|
provider_comment_id?: string | null;
|
|
@@ -1911,8 +2368,8 @@ type ActionData = {
|
|
|
1911
2368
|
} | {
|
|
1912
2369
|
type: "direct_message";
|
|
1913
2370
|
value: {
|
|
1914
|
-
|
|
1915
|
-
|
|
2371
|
+
social_connection_id: string;
|
|
2372
|
+
type: SocialConnectionType;
|
|
1916
2373
|
thread_id: string;
|
|
1917
2374
|
message_id: string;
|
|
1918
2375
|
text: string;
|
|
@@ -1954,11 +2411,13 @@ interface Mailbox {
|
|
|
1954
2411
|
email: string;
|
|
1955
2412
|
from_name: string;
|
|
1956
2413
|
reply_to_email?: string | null;
|
|
1957
|
-
provider: SmtpImapMailboxProvider;
|
|
2414
|
+
provider: SmtpImapMailboxProvider | GoogleMailboxProvider;
|
|
1958
2415
|
status: MailboxStatus;
|
|
1959
2416
|
daily_limit: number;
|
|
1960
2417
|
sent_today: number;
|
|
1961
2418
|
last_sent_at?: number | null;
|
|
2419
|
+
sync_revision: number;
|
|
2420
|
+
next_sync_at?: number | null;
|
|
1962
2421
|
created_at: number;
|
|
1963
2422
|
updated_at: number;
|
|
1964
2423
|
}
|
|
@@ -1969,13 +2428,14 @@ interface OutreachStep {
|
|
|
1969
2428
|
type?: OutreachStepType;
|
|
1970
2429
|
}
|
|
1971
2430
|
interface OutreachPersonalizationCounters {
|
|
1972
|
-
|
|
2431
|
+
total_profiles: number;
|
|
1973
2432
|
draft_messages: number;
|
|
1974
2433
|
generated_messages: number;
|
|
1975
2434
|
template_messages: number;
|
|
1976
2435
|
failed_messages: number;
|
|
1977
2436
|
}
|
|
1978
2437
|
interface OutreachPersonalizationState {
|
|
2438
|
+
run_id: string;
|
|
1979
2439
|
status: OutreachPersonalizationStatus;
|
|
1980
2440
|
step_position?: number | null;
|
|
1981
2441
|
contact_ids: string[];
|
|
@@ -1986,6 +2446,14 @@ interface OutreachPersonalizationState {
|
|
|
1986
2446
|
started_at?: number | null;
|
|
1987
2447
|
completed_at?: number | null;
|
|
1988
2448
|
}
|
|
2449
|
+
interface CampaignLaunchState {
|
|
2450
|
+
revision: number;
|
|
2451
|
+
status: CampaignLaunchStatus;
|
|
2452
|
+
requested_at: number | null;
|
|
2453
|
+
processing_started_at: number | null;
|
|
2454
|
+
completed_at: number | null;
|
|
2455
|
+
error: string | null;
|
|
2456
|
+
}
|
|
1989
2457
|
interface Campaign {
|
|
1990
2458
|
id: string;
|
|
1991
2459
|
store_id: string;
|
|
@@ -1993,6 +2461,7 @@ interface Campaign {
|
|
|
1993
2461
|
name: string;
|
|
1994
2462
|
mailbox_ids: string[];
|
|
1995
2463
|
status: CampaignStatus;
|
|
2464
|
+
launch: CampaignLaunchState;
|
|
1996
2465
|
steps: OutreachStep[];
|
|
1997
2466
|
personalization: OutreachPersonalizationState;
|
|
1998
2467
|
launched_at?: number | null;
|
|
@@ -2172,9 +2641,11 @@ interface LeadEmailValidationResult {
|
|
|
2172
2641
|
hard_blockers: string[];
|
|
2173
2642
|
checks: LeadValidationCheck[];
|
|
2174
2643
|
}
|
|
2175
|
-
type LeadResearchMessageRole = "system" | "user" | "assistant" | "action"
|
|
2644
|
+
type LeadResearchMessageRole = "system" | "user" | "assistant" | "action";
|
|
2176
2645
|
interface LeadResearchMessage {
|
|
2177
2646
|
id: string;
|
|
2647
|
+
store_id: string;
|
|
2648
|
+
run_id: string;
|
|
2178
2649
|
role: LeadResearchMessageRole;
|
|
2179
2650
|
content: string;
|
|
2180
2651
|
metadata?: Record<string, unknown> | null;
|
|
@@ -2199,7 +2670,7 @@ type EventAction = {
|
|
|
2199
2670
|
action: "order_payment_received";
|
|
2200
2671
|
data: {
|
|
2201
2672
|
amount: number;
|
|
2202
|
-
currency:
|
|
2673
|
+
currency: Currency;
|
|
2203
2674
|
};
|
|
2204
2675
|
} | {
|
|
2205
2676
|
action: "order_payment_failed";
|
|
@@ -2210,7 +2681,7 @@ type EventAction = {
|
|
|
2210
2681
|
action: "order_refunded";
|
|
2211
2682
|
data: {
|
|
2212
2683
|
amount: number;
|
|
2213
|
-
currency:
|
|
2684
|
+
currency: Currency;
|
|
2214
2685
|
reason?: string;
|
|
2215
2686
|
};
|
|
2216
2687
|
} | {
|
|
@@ -2300,8 +2771,6 @@ type EventAction = {
|
|
|
2300
2771
|
action: "store_created";
|
|
2301
2772
|
} | {
|
|
2302
2773
|
action: "store_updated";
|
|
2303
|
-
} | {
|
|
2304
|
-
action: "store_deleted";
|
|
2305
2774
|
} | {
|
|
2306
2775
|
action: "contact_list_created";
|
|
2307
2776
|
} | {
|
|
@@ -2324,133 +2793,119 @@ interface Event {
|
|
|
2324
2793
|
actor: string;
|
|
2325
2794
|
created_at: number;
|
|
2326
2795
|
}
|
|
2327
|
-
type ShippingStatus = "pending" | "label_created" | "in_transit" | "out_for_delivery" | "delivered" | "failed" | "returned";
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
tracking_url?: string | null;
|
|
2333
|
-
label_url?: string | null;
|
|
2334
|
-
status: ShippingStatus;
|
|
2796
|
+
type ShippingStatus = "pending" | "label_created" | "in_transit" | "out_for_delivery" | "delivered" | "failed" | "returned" | "cancelled";
|
|
2797
|
+
type ShippingProvider = "shippo";
|
|
2798
|
+
interface ShippingRateLine {
|
|
2799
|
+
order_item_id: string;
|
|
2800
|
+
quantity: number;
|
|
2335
2801
|
}
|
|
2336
2802
|
interface ShipmentLine {
|
|
2337
2803
|
order_item_id: string;
|
|
2338
2804
|
fulfillment_order_line_id?: string | null;
|
|
2339
2805
|
quantity: number;
|
|
2340
2806
|
}
|
|
2341
|
-
type
|
|
2342
|
-
type
|
|
2343
|
-
type
|
|
2344
|
-
type ShippingLabelPurchaseError = {
|
|
2345
|
-
type: "provider_rejected";
|
|
2346
|
-
message: string;
|
|
2347
|
-
provider_code?: string | null;
|
|
2348
|
-
provider_status?: number | null;
|
|
2349
|
-
at: number;
|
|
2350
|
-
} | {
|
|
2351
|
-
type: "unknown_outcome";
|
|
2352
|
-
message: string;
|
|
2353
|
-
at: number;
|
|
2354
|
-
} | {
|
|
2355
|
-
type: "missing_configuration";
|
|
2356
|
-
message: string;
|
|
2357
|
-
at: number;
|
|
2358
|
-
};
|
|
2359
|
-
type MerchantRecovery = {
|
|
2360
|
-
type: "stripe_connect_account_debit";
|
|
2361
|
-
payment_provider_id: string;
|
|
2362
|
-
connected_account_id: string;
|
|
2363
|
-
stripe_payment_id?: string | null;
|
|
2364
|
-
amount: number;
|
|
2365
|
-
currency: string;
|
|
2366
|
-
status: MerchantRecoveryStatus;
|
|
2367
|
-
error?: ShippingLabelPurchaseError | null;
|
|
2368
|
-
};
|
|
2369
|
-
type MerchantCreditReason = "shipping_label_purchase_failed" | "shipping_label_refund_succeeded" | "shipping_label_negative_adjustment";
|
|
2370
|
-
type MerchantCredit = {
|
|
2371
|
-
type: "stripe_connect_transfer";
|
|
2372
|
-
payment_provider_id: string;
|
|
2373
|
-
connected_account_id: string;
|
|
2374
|
-
stripe_transfer_id?: string | null;
|
|
2375
|
-
amount: number;
|
|
2376
|
-
currency: string;
|
|
2377
|
-
reason: MerchantCreditReason;
|
|
2378
|
-
status: MerchantCreditStatus;
|
|
2379
|
-
error?: ShippingLabelPurchaseError | null;
|
|
2380
|
-
};
|
|
2381
|
-
type ShippingLabelProviderPurchase = {
|
|
2382
|
-
type: "shippo";
|
|
2383
|
-
transaction_id?: string | null;
|
|
2384
|
-
rate_id: string;
|
|
2385
|
-
tracking_number?: string | null;
|
|
2386
|
-
tracking_url?: string | null;
|
|
2387
|
-
label_url?: string | null;
|
|
2388
|
-
carrier?: string | null;
|
|
2389
|
-
service?: string | null;
|
|
2390
|
-
};
|
|
2391
|
-
type ShippingLabelRefundStatus = "requested" | "provider_pending" | "provider_rejected" | "merchant_credit_processing" | "succeeded" | "merchant_credit_failed" | "unknown";
|
|
2392
|
-
type ShippingLabelProviderRefund = {
|
|
2393
|
-
type: "shippo";
|
|
2394
|
-
refund_id?: string | null;
|
|
2395
|
-
transaction_id: string;
|
|
2396
|
-
status: string;
|
|
2397
|
-
};
|
|
2807
|
+
type ShippingLabelStatus = "requested" | "processing" | "succeeded" | "rejected" | "failed" | "unknown";
|
|
2808
|
+
type ShippingLabelRefundStatus = "requested" | "processing" | "succeeded" | "rejected" | "failed" | "unknown";
|
|
2809
|
+
type ShippingLabelRefundReconciliationStatus = "not_started" | "succeeded" | "conflict";
|
|
2398
2810
|
interface ShippingLabelRefund {
|
|
2399
2811
|
id: string;
|
|
2812
|
+
shipment_id: string;
|
|
2813
|
+
amount: number;
|
|
2814
|
+
currency: Currency;
|
|
2400
2815
|
status: ShippingLabelRefundStatus;
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2816
|
+
revision: number;
|
|
2817
|
+
attempt_count: number;
|
|
2818
|
+
provider_refund_id?: string | null;
|
|
2819
|
+
provider_status?: string | null;
|
|
2820
|
+
credit_settlement_id?: string | null;
|
|
2821
|
+
allocation_reconciliation_status: ShippingLabelRefundReconciliationStatus;
|
|
2822
|
+
allocation_reconciliation_completed_at?: number | null;
|
|
2823
|
+
safe_allocation_reconciliation_error?: string | null;
|
|
2824
|
+
safe_error?: string | null;
|
|
2407
2825
|
requested_at: number;
|
|
2826
|
+
completed_at?: number | null;
|
|
2827
|
+
created_at: number;
|
|
2408
2828
|
updated_at: number;
|
|
2409
2829
|
}
|
|
2410
|
-
type ShippingLabelAdjustmentStatus = "requested" | "
|
|
2830
|
+
type ShippingLabelAdjustmentStatus = "requested" | "processing" | "succeeded" | "rejected" | "failed" | "unknown";
|
|
2411
2831
|
interface ShippingLabelAdjustment {
|
|
2412
2832
|
id: string;
|
|
2413
|
-
|
|
2833
|
+
shipment_id: string;
|
|
2834
|
+
provider_adjustment_id: string;
|
|
2414
2835
|
amount: number;
|
|
2415
|
-
currency:
|
|
2836
|
+
currency: Currency;
|
|
2416
2837
|
reason: string;
|
|
2417
2838
|
status: ShippingLabelAdjustmentStatus;
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
error?: ShippingLabelPurchaseError | null;
|
|
2839
|
+
settlement_id: string;
|
|
2840
|
+
safe_error?: string | null;
|
|
2421
2841
|
created_at: number;
|
|
2422
2842
|
updated_at: number;
|
|
2423
2843
|
}
|
|
2424
|
-
|
|
2844
|
+
type ShippingLabelSettlementDirection = "debit" | "credit";
|
|
2845
|
+
type ShippingLabelSettlementStatus = "requested" | "processing" | "succeeded" | "rejected" | "failed" | "unknown";
|
|
2846
|
+
type ShipmentAllocationStatus = "reserved" | "fulfilled" | "released";
|
|
2847
|
+
type ShippingLabelSettlementType = {
|
|
2848
|
+
type: "purchase_debit";
|
|
2849
|
+
} | {
|
|
2850
|
+
type: "purchase_compensation_credit";
|
|
2851
|
+
} | {
|
|
2852
|
+
type: "refund_credit";
|
|
2853
|
+
refund_id: string;
|
|
2854
|
+
} | {
|
|
2855
|
+
type: "adjustment_debit";
|
|
2856
|
+
adjustment_id: string;
|
|
2857
|
+
} | {
|
|
2858
|
+
type: "adjustment_credit";
|
|
2859
|
+
adjustment_id: string;
|
|
2860
|
+
};
|
|
2861
|
+
interface ShippingLabelSettlement {
|
|
2425
2862
|
id: string;
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2863
|
+
shipment_id: string;
|
|
2864
|
+
type: ShippingLabelSettlementType;
|
|
2865
|
+
direction: ShippingLabelSettlementDirection;
|
|
2866
|
+
amount: number;
|
|
2867
|
+
currency: Currency;
|
|
2868
|
+
status: ShippingLabelSettlementStatus;
|
|
2869
|
+
revision: number;
|
|
2870
|
+
attempt_count: number;
|
|
2871
|
+
provider_object_id?: string | null;
|
|
2872
|
+
provider_status?: string | null;
|
|
2873
|
+
safe_error?: string | null;
|
|
2874
|
+
requested_at: number;
|
|
2875
|
+
completed_at?: number | null;
|
|
2438
2876
|
created_at: number;
|
|
2439
2877
|
updated_at: number;
|
|
2440
2878
|
}
|
|
2441
2879
|
interface Shipment {
|
|
2442
2880
|
id: string;
|
|
2881
|
+
store_id: string;
|
|
2882
|
+
order_id: string;
|
|
2883
|
+
provider: ShippingProvider;
|
|
2443
2884
|
fulfillment_order_id?: string | null;
|
|
2444
2885
|
location_id: string;
|
|
2445
|
-
rate_id
|
|
2886
|
+
rate_id: string;
|
|
2446
2887
|
lines: ShipmentLine[];
|
|
2447
|
-
|
|
2448
|
-
|
|
2888
|
+
allocation_status: ShipmentAllocationStatus;
|
|
2889
|
+
carrier: string;
|
|
2890
|
+
service: string;
|
|
2891
|
+
postage_amount: number;
|
|
2892
|
+
fee_amount: number;
|
|
2893
|
+
total_amount: number;
|
|
2894
|
+
currency: Currency;
|
|
2449
2895
|
tracking_number?: string | null;
|
|
2450
2896
|
tracking_url?: string | null;
|
|
2451
2897
|
label_url?: string | null;
|
|
2452
2898
|
status: ShippingStatus;
|
|
2453
|
-
|
|
2899
|
+
tracking_status_at_ms: number | null;
|
|
2900
|
+
revision: number;
|
|
2901
|
+
label_status: ShippingLabelStatus;
|
|
2902
|
+
label_revision: number;
|
|
2903
|
+
label_attempt_count: number;
|
|
2904
|
+
provider_transaction_id?: string | null;
|
|
2905
|
+
provider_status?: string | null;
|
|
2906
|
+
safe_label_error?: string | null;
|
|
2907
|
+
label_requested_at: number;
|
|
2908
|
+
label_completed_at?: number | null;
|
|
2454
2909
|
created_at: number;
|
|
2455
2910
|
updated_at: number;
|
|
2456
2911
|
}
|
|
@@ -2460,7 +2915,7 @@ interface ShippingRate {
|
|
|
2460
2915
|
service: string;
|
|
2461
2916
|
display_name: string;
|
|
2462
2917
|
amount: number;
|
|
2463
|
-
currency:
|
|
2918
|
+
currency: Currency;
|
|
2464
2919
|
estimated_days?: number | null;
|
|
2465
2920
|
}
|
|
2466
2921
|
interface Parcel {
|
|
@@ -2468,24 +2923,12 @@ interface Parcel {
|
|
|
2468
2923
|
width: number;
|
|
2469
2924
|
height: number;
|
|
2470
2925
|
weight: number;
|
|
2471
|
-
distance_unit: "in" | "
|
|
2926
|
+
distance_unit: "cm" | "in" | "ft" | "mm" | "m" | "yd";
|
|
2472
2927
|
mass_unit: "oz" | "lb" | "g" | "kg";
|
|
2473
2928
|
}
|
|
2474
|
-
interface
|
|
2475
|
-
transaction_id?: string | null;
|
|
2476
|
-
tracking_number: string;
|
|
2477
|
-
tracking_url?: string | null;
|
|
2478
|
-
label_url: string;
|
|
2479
|
-
carrier: string;
|
|
2480
|
-
service: string;
|
|
2481
|
-
postage_amount?: number | null;
|
|
2482
|
-
postage_currency?: string | null;
|
|
2483
|
-
}
|
|
2484
|
-
interface ShipResult {
|
|
2929
|
+
interface CreateShipmentResponse {
|
|
2485
2930
|
shipment_id: string;
|
|
2486
|
-
|
|
2487
|
-
tracking_url?: string | null;
|
|
2488
|
-
label_url?: string | null;
|
|
2931
|
+
shipment: Shipment;
|
|
2489
2932
|
}
|
|
2490
2933
|
interface CustomsItem {
|
|
2491
2934
|
description: string;
|
|
@@ -2493,7 +2936,7 @@ interface CustomsItem {
|
|
|
2493
2936
|
net_weight: string;
|
|
2494
2937
|
mass_unit: string;
|
|
2495
2938
|
value_amount: string;
|
|
2496
|
-
value_currency:
|
|
2939
|
+
value_currency: Currency;
|
|
2497
2940
|
origin_country: string;
|
|
2498
2941
|
tariff_number?: string | null;
|
|
2499
2942
|
}
|
|
@@ -2517,6 +2960,62 @@ interface PromoCode {
|
|
|
2517
2960
|
updated_at: number;
|
|
2518
2961
|
}
|
|
2519
2962
|
|
|
2963
|
+
type QueryParams = object;
|
|
2964
|
+
|
|
2965
|
+
interface TokenSet {
|
|
2966
|
+
access_token: string;
|
|
2967
|
+
refresh_token?: string;
|
|
2968
|
+
access_expires_at?: number;
|
|
2969
|
+
}
|
|
2970
|
+
interface AuthStorage {
|
|
2971
|
+
getTokens(): TokenSet | null;
|
|
2972
|
+
onTokensRefreshed(tokens: TokenSet): void;
|
|
2973
|
+
onForcedLogout(): void;
|
|
2974
|
+
}
|
|
2975
|
+
interface RequestSuccessContext<T = unknown> {
|
|
2976
|
+
data: T;
|
|
2977
|
+
method: string;
|
|
2978
|
+
url: string;
|
|
2979
|
+
status: number;
|
|
2980
|
+
request?: unknown;
|
|
2981
|
+
duration_ms?: number;
|
|
2982
|
+
request_id?: string | null;
|
|
2983
|
+
}
|
|
2984
|
+
interface RequestErrorContext {
|
|
2985
|
+
error: unknown;
|
|
2986
|
+
method: string;
|
|
2987
|
+
url: string;
|
|
2988
|
+
status?: number;
|
|
2989
|
+
request?: unknown;
|
|
2990
|
+
response?: unknown;
|
|
2991
|
+
duration_ms?: number;
|
|
2992
|
+
request_id?: string | null;
|
|
2993
|
+
aborted?: boolean;
|
|
2994
|
+
}
|
|
2995
|
+
interface RequestOptions<T = unknown> {
|
|
2996
|
+
headers?: Record<string, string>;
|
|
2997
|
+
params?: QueryParams;
|
|
2998
|
+
signal?: AbortSignal;
|
|
2999
|
+
transformRequest?: (data: unknown) => unknown;
|
|
3000
|
+
onSuccess?: (ctx: RequestSuccessContext<T>) => void | Promise<void>;
|
|
3001
|
+
onError?: (ctx: RequestErrorContext) => void | Promise<void>;
|
|
3002
|
+
}
|
|
3003
|
+
interface HttpClient {
|
|
3004
|
+
get<T>(path: string, opts?: RequestOptions<T>): Promise<T>;
|
|
3005
|
+
post<T>(path: string, body: unknown, opts?: RequestOptions<T>): Promise<T>;
|
|
3006
|
+
put<T>(path: string, body: unknown, opts?: RequestOptions<T>): Promise<T>;
|
|
3007
|
+
patch<T>(path: string, body: unknown, opts?: RequestOptions<T>): Promise<T>;
|
|
3008
|
+
delete<T>(path: string, opts?: RequestOptions<T>): Promise<T>;
|
|
3009
|
+
}
|
|
3010
|
+
interface HttpClientConfig {
|
|
3011
|
+
baseUrl: string;
|
|
3012
|
+
storeId: string;
|
|
3013
|
+
authStorage: AuthStorage;
|
|
3014
|
+
refreshPath?: string | (() => string);
|
|
3015
|
+
navigate?: (path: string) => void;
|
|
3016
|
+
loginFallbackPath?: string;
|
|
3017
|
+
}
|
|
3018
|
+
|
|
2520
3019
|
interface CreateLocationParams {
|
|
2521
3020
|
key: string;
|
|
2522
3021
|
address: Address;
|
|
@@ -2531,56 +3030,36 @@ interface UpdateLocationParams {
|
|
|
2531
3030
|
interface DeleteLocationParams {
|
|
2532
3031
|
id: string;
|
|
2533
3032
|
}
|
|
3033
|
+
type MarketZoneInput = Omit<Zone, "id" | "store_id" | "market_id"> & {
|
|
3034
|
+
id?: string;
|
|
3035
|
+
};
|
|
2534
3036
|
interface CreateMarketParams {
|
|
2535
3037
|
key: string;
|
|
2536
|
-
currency:
|
|
3038
|
+
currency: Currency;
|
|
2537
3039
|
tax_mode: "inclusive" | "exclusive";
|
|
2538
3040
|
payment_methods?: PaymentMethod[];
|
|
2539
|
-
zones?:
|
|
3041
|
+
zones?: MarketZoneInput[];
|
|
2540
3042
|
}
|
|
2541
3043
|
interface UpdateMarketParams {
|
|
2542
3044
|
id: string;
|
|
2543
3045
|
key?: string;
|
|
2544
|
-
currency?:
|
|
3046
|
+
currency?: Currency;
|
|
2545
3047
|
tax_mode?: "inclusive" | "exclusive";
|
|
2546
3048
|
payment_methods?: PaymentMethod[];
|
|
2547
|
-
zones?:
|
|
3049
|
+
zones?: MarketZoneInput[];
|
|
2548
3050
|
}
|
|
2549
3051
|
interface DeleteMarketParams {
|
|
2550
3052
|
id: string;
|
|
2551
3053
|
}
|
|
2552
|
-
interface
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
signal?: AbortSignal;
|
|
2556
|
-
transformRequest?: (data: any) => any;
|
|
2557
|
-
onSuccess?: (ctx: {
|
|
2558
|
-
data: T;
|
|
2559
|
-
method: string;
|
|
2560
|
-
url: string;
|
|
2561
|
-
status: number;
|
|
2562
|
-
request?: any;
|
|
2563
|
-
duration_ms?: number;
|
|
2564
|
-
request_id?: string | null;
|
|
2565
|
-
}) => void | Promise<void>;
|
|
2566
|
-
onError?: (ctx: {
|
|
2567
|
-
error: any;
|
|
2568
|
-
method: string;
|
|
2569
|
-
url: string;
|
|
2570
|
-
status?: number;
|
|
2571
|
-
request?: any;
|
|
2572
|
-
response?: any;
|
|
2573
|
-
duration_ms?: number;
|
|
2574
|
-
request_id?: string | null;
|
|
2575
|
-
aborted?: boolean;
|
|
2576
|
-
}) => void | Promise<void>;
|
|
2577
|
-
}
|
|
2578
|
-
interface EshopItem {
|
|
3054
|
+
interface ProductCheckoutItemInput {
|
|
3055
|
+
type: "product";
|
|
3056
|
+
id?: string;
|
|
2579
3057
|
product_id: string;
|
|
2580
3058
|
variant_id: string;
|
|
2581
3059
|
quantity: number;
|
|
2582
3060
|
}
|
|
2583
|
-
interface
|
|
3061
|
+
interface ProductQuoteItemInput {
|
|
3062
|
+
type: "product";
|
|
2584
3063
|
product_id: string;
|
|
2585
3064
|
variant_id: string;
|
|
2586
3065
|
quantity: number;
|
|
@@ -2590,31 +3069,14 @@ interface SlotRange {
|
|
|
2590
3069
|
from: number;
|
|
2591
3070
|
to: number;
|
|
2592
3071
|
}
|
|
2593
|
-
interface
|
|
3072
|
+
interface ServiceQuoteItemInput {
|
|
3073
|
+
type: "service";
|
|
2594
3074
|
service_id: string;
|
|
2595
3075
|
provider_id: string;
|
|
2596
3076
|
slots: SlotRange[];
|
|
2597
3077
|
forms?: FormEntry[];
|
|
2598
3078
|
price?: Price;
|
|
2599
3079
|
}
|
|
2600
|
-
interface ServiceCheckoutPart {
|
|
2601
|
-
service_id: string;
|
|
2602
|
-
provider_id: string;
|
|
2603
|
-
slots: SlotRange[];
|
|
2604
|
-
forms: FormEntry[];
|
|
2605
|
-
}
|
|
2606
|
-
interface ProductQuoteItemInput extends EshopQuoteItem {
|
|
2607
|
-
type: "product";
|
|
2608
|
-
}
|
|
2609
|
-
interface ServiceQuoteItemInput extends ServiceQuoteItem {
|
|
2610
|
-
type: "service";
|
|
2611
|
-
}
|
|
2612
|
-
type OrderQuoteItemInput = ProductQuoteItemInput | ServiceQuoteItemInput;
|
|
2613
|
-
type OrderQuoteCompatibleItemInput = OrderQuoteItemInput | EshopQuoteItem | ServiceQuoteItem;
|
|
2614
|
-
interface ProductCheckoutItemInput extends EshopItem {
|
|
2615
|
-
type: "product";
|
|
2616
|
-
id?: string;
|
|
2617
|
-
}
|
|
2618
3080
|
interface ServiceCheckoutItemInput {
|
|
2619
3081
|
type: "service";
|
|
2620
3082
|
id?: string;
|
|
@@ -2623,8 +3085,8 @@ interface ServiceCheckoutItemInput {
|
|
|
2623
3085
|
slots: SlotRange[];
|
|
2624
3086
|
forms?: FormEntry[];
|
|
2625
3087
|
}
|
|
3088
|
+
type OrderQuoteItemInput = ProductQuoteItemInput | ServiceQuoteItemInput;
|
|
2626
3089
|
type OrderCheckoutItemInput = ProductCheckoutItemInput | ServiceCheckoutItemInput;
|
|
2627
|
-
type OrderCheckoutCompatibleItemInput = OrderCheckoutItemInput | EshopItem | ServiceCheckoutPart;
|
|
2628
3090
|
interface TrustedProductCheckoutItemInput extends ProductCheckoutItemInput {
|
|
2629
3091
|
price?: Price;
|
|
2630
3092
|
}
|
|
@@ -2632,11 +3094,10 @@ interface TrustedServiceCheckoutItemInput extends ServiceCheckoutItemInput {
|
|
|
2632
3094
|
price?: Price;
|
|
2633
3095
|
}
|
|
2634
3096
|
type TrustedOrderCheckoutItemInput = TrustedProductCheckoutItemInput | TrustedServiceCheckoutItemInput;
|
|
2635
|
-
type TrustedOrderCheckoutCompatibleItemInput = TrustedOrderCheckoutItemInput | EshopItem | ServiceCheckoutPart;
|
|
2636
3097
|
interface GetQuoteParams {
|
|
2637
3098
|
store_id?: string;
|
|
2638
3099
|
market?: string;
|
|
2639
|
-
items:
|
|
3100
|
+
items: OrderQuoteItemInput[];
|
|
2640
3101
|
shipping_address?: Address;
|
|
2641
3102
|
billing_address?: Address;
|
|
2642
3103
|
forms?: FormEntry[];
|
|
@@ -2648,7 +3109,7 @@ interface GetQuoteParams {
|
|
|
2648
3109
|
interface OrderCheckoutParams {
|
|
2649
3110
|
store_id?: string;
|
|
2650
3111
|
market?: string;
|
|
2651
|
-
items:
|
|
3112
|
+
items: OrderCheckoutItemInput[];
|
|
2652
3113
|
payment_method_key?: string;
|
|
2653
3114
|
shipping_address?: Address;
|
|
2654
3115
|
billing_address?: Address;
|
|
@@ -2678,7 +3139,7 @@ interface CreateCartParams {
|
|
|
2678
3139
|
store_id?: string;
|
|
2679
3140
|
contact_id: string;
|
|
2680
3141
|
market: string;
|
|
2681
|
-
items?:
|
|
3142
|
+
items?: TrustedOrderCheckoutItemInput[];
|
|
2682
3143
|
shipping_address?: Address | null;
|
|
2683
3144
|
billing_address?: Address | null;
|
|
2684
3145
|
forms?: FormEntry[];
|
|
@@ -2690,9 +3151,9 @@ interface UpdateCartParams {
|
|
|
2690
3151
|
id: string;
|
|
2691
3152
|
store_id?: string;
|
|
2692
3153
|
market?: string;
|
|
2693
|
-
items?:
|
|
2694
|
-
shipping_address?: Address;
|
|
2695
|
-
billing_address?: Address;
|
|
3154
|
+
items?: OrderCheckoutItemInput[];
|
|
3155
|
+
shipping_address?: Address | null;
|
|
3156
|
+
billing_address?: Address | null;
|
|
2696
3157
|
forms?: FormEntry[];
|
|
2697
3158
|
promo_code?: string;
|
|
2698
3159
|
payment_method_key?: string;
|
|
@@ -2701,15 +3162,20 @@ interface UpdateCartParams {
|
|
|
2701
3162
|
interface AddCartItemParams {
|
|
2702
3163
|
id: string;
|
|
2703
3164
|
store_id?: string;
|
|
2704
|
-
item:
|
|
3165
|
+
item: OrderCheckoutItemInput;
|
|
2705
3166
|
}
|
|
2706
|
-
|
|
3167
|
+
type RemoveCartItemParams = {
|
|
2707
3168
|
id: string;
|
|
2708
3169
|
store_id?: string;
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
3170
|
+
} & ({
|
|
3171
|
+
item_id: string;
|
|
3172
|
+
product_id?: never;
|
|
3173
|
+
variant_id?: never;
|
|
3174
|
+
} | {
|
|
3175
|
+
item_id?: never;
|
|
3176
|
+
product_id: string;
|
|
3177
|
+
variant_id: string;
|
|
3178
|
+
});
|
|
2713
3179
|
interface ClearCartParams {
|
|
2714
3180
|
id: string;
|
|
2715
3181
|
store_id?: string;
|
|
@@ -2766,11 +3232,15 @@ interface UpdateCollectionParams {
|
|
|
2766
3232
|
blocks?: Block[];
|
|
2767
3233
|
status?: CollectionStatus;
|
|
2768
3234
|
}
|
|
2769
|
-
|
|
2770
|
-
id?: string;
|
|
2771
|
-
key?: string;
|
|
3235
|
+
type GetCollectionParams = {
|
|
2772
3236
|
store_id?: string;
|
|
2773
|
-
}
|
|
3237
|
+
} & ({
|
|
3238
|
+
id: string;
|
|
3239
|
+
key?: never;
|
|
3240
|
+
} | {
|
|
3241
|
+
id?: never;
|
|
3242
|
+
key: string;
|
|
3243
|
+
});
|
|
2774
3244
|
interface DeleteCollectionParams {
|
|
2775
3245
|
id: string;
|
|
2776
3246
|
store_id?: string;
|
|
@@ -2806,7 +3276,7 @@ interface UpdateEntryParams {
|
|
|
2806
3276
|
status?: EntryStatus;
|
|
2807
3277
|
}
|
|
2808
3278
|
interface GetEntryParams {
|
|
2809
|
-
id
|
|
3279
|
+
id: string;
|
|
2810
3280
|
store_id?: string;
|
|
2811
3281
|
}
|
|
2812
3282
|
interface DeleteEntryParams {
|
|
@@ -2819,7 +3289,7 @@ interface UploadStoreMediaParams {
|
|
|
2819
3289
|
urls?: string[];
|
|
2820
3290
|
}
|
|
2821
3291
|
interface DeleteStoreMediaParams {
|
|
2822
|
-
|
|
3292
|
+
store_id?: string;
|
|
2823
3293
|
media_id: string;
|
|
2824
3294
|
}
|
|
2825
3295
|
interface GetMediaParams {
|
|
@@ -2846,10 +3316,14 @@ interface LoginAccountParams {
|
|
|
2846
3316
|
provider: string;
|
|
2847
3317
|
token?: string;
|
|
2848
3318
|
}
|
|
2849
|
-
interface
|
|
2850
|
-
|
|
3319
|
+
interface AuthCodeVerifyParams {
|
|
3320
|
+
challenge_id: string;
|
|
2851
3321
|
code: string;
|
|
2852
3322
|
}
|
|
3323
|
+
interface VerificationChallengeResponse {
|
|
3324
|
+
challenge_id: string;
|
|
3325
|
+
expires_at: number;
|
|
3326
|
+
}
|
|
2853
3327
|
interface GetServicesParams {
|
|
2854
3328
|
store_id?: string;
|
|
2855
3329
|
ids?: string[];
|
|
@@ -2894,9 +3368,6 @@ interface GetAnalyticsParams {
|
|
|
2894
3368
|
}
|
|
2895
3369
|
interface GetAnalyticsHealthParams {
|
|
2896
3370
|
}
|
|
2897
|
-
interface TrackEmailOpenParams {
|
|
2898
|
-
tracking_pixel_id: string;
|
|
2899
|
-
}
|
|
2900
3371
|
interface GetDeliveryStatsParams {
|
|
2901
3372
|
}
|
|
2902
3373
|
type StoreRole = "admin" | "owner" | "super";
|
|
@@ -2974,9 +3445,8 @@ interface GetPromoCodesParams {
|
|
|
2974
3445
|
interface CreateStoreParams {
|
|
2975
3446
|
key: string;
|
|
2976
3447
|
timezone: string;
|
|
2977
|
-
billing_email: string;
|
|
2978
3448
|
languages?: Language[];
|
|
2979
|
-
emails
|
|
3449
|
+
emails: StoreEmails;
|
|
2980
3450
|
}
|
|
2981
3451
|
interface UpdateStoreParams {
|
|
2982
3452
|
id: string;
|
|
@@ -2985,18 +3455,47 @@ interface UpdateStoreParams {
|
|
|
2985
3455
|
languages?: Language[];
|
|
2986
3456
|
emails?: StoreEmails;
|
|
2987
3457
|
}
|
|
2988
|
-
interface DeleteStoreParams {
|
|
2989
|
-
id: string;
|
|
2990
|
-
}
|
|
2991
3458
|
interface GetStoreParams {
|
|
2992
3459
|
}
|
|
2993
|
-
type
|
|
2994
|
-
interface SubscribeParams {
|
|
3460
|
+
type CreateStoreSubscriptionActionParams = {
|
|
2995
3461
|
store_id?: string;
|
|
3462
|
+
action_id: string;
|
|
3463
|
+
} & ({
|
|
3464
|
+
type: "select_plan";
|
|
2996
3465
|
plan_id: string;
|
|
2997
|
-
action: SubscriptionAction;
|
|
2998
3466
|
success_url: string;
|
|
2999
3467
|
cancel_url: string;
|
|
3468
|
+
} | {
|
|
3469
|
+
type: "cancel_at_period_end";
|
|
3470
|
+
} | {
|
|
3471
|
+
type: "reactivate";
|
|
3472
|
+
});
|
|
3473
|
+
interface GetStoreSubscriptionParams {
|
|
3474
|
+
store_id?: string;
|
|
3475
|
+
}
|
|
3476
|
+
interface RetryStoreSubscriptionActionParams {
|
|
3477
|
+
store_id?: string;
|
|
3478
|
+
action_id: string;
|
|
3479
|
+
}
|
|
3480
|
+
interface GetStoreSubscriptionActionParams {
|
|
3481
|
+
store_id?: string;
|
|
3482
|
+
action_id: string;
|
|
3483
|
+
}
|
|
3484
|
+
interface FindStoreSubscriptionActionsParams {
|
|
3485
|
+
store_id?: string;
|
|
3486
|
+
limit?: number;
|
|
3487
|
+
cursor?: string | null;
|
|
3488
|
+
}
|
|
3489
|
+
interface FindStoreSubscriptionActionEffectsParams {
|
|
3490
|
+
store_id?: string;
|
|
3491
|
+
action_id: string;
|
|
3492
|
+
limit?: number;
|
|
3493
|
+
cursor?: string | null;
|
|
3494
|
+
}
|
|
3495
|
+
interface GetStoreSubscriptionActionEffectParams {
|
|
3496
|
+
store_id?: string;
|
|
3497
|
+
action_id: string;
|
|
3498
|
+
effect_id: string;
|
|
3000
3499
|
}
|
|
3001
3500
|
interface CreatePortalSessionParams {
|
|
3002
3501
|
store_id?: string;
|
|
@@ -3009,14 +3508,33 @@ interface AddMemberParams {
|
|
|
3009
3508
|
}
|
|
3010
3509
|
interface RemoveMemberParams {
|
|
3011
3510
|
account_id: string;
|
|
3511
|
+
store_id?: string;
|
|
3512
|
+
}
|
|
3513
|
+
type AccountSortField = "email";
|
|
3514
|
+
interface FindStoreMembersParams {
|
|
3515
|
+
store_id?: string;
|
|
3516
|
+
query?: string | number;
|
|
3517
|
+
limit?: number;
|
|
3518
|
+
cursor?: string | null;
|
|
3519
|
+
sort_field?: AccountSortField | null;
|
|
3520
|
+
sort_direction?: "asc" | "desc" | null;
|
|
3012
3521
|
}
|
|
3013
3522
|
interface TestWebhookParams {
|
|
3014
|
-
|
|
3523
|
+
delivery_id: string;
|
|
3524
|
+
webhook_id: string;
|
|
3525
|
+
}
|
|
3526
|
+
type WebhookDeliveryStatus = "requested" | "processing" | "succeeded" | "rejected" | "failed" | "unknown";
|
|
3527
|
+
interface TestWebhookResponse {
|
|
3528
|
+
delivery_id: string;
|
|
3529
|
+
status: WebhookDeliveryStatus;
|
|
3530
|
+
provider_status_code?: number | null;
|
|
3531
|
+
error?: string | null;
|
|
3015
3532
|
}
|
|
3533
|
+
type ProductInventoryInput = Pick<ProductInventory, "location_id" | "available" | "reserved">;
|
|
3016
3534
|
interface CreateProductVariantInput {
|
|
3017
3535
|
sku?: string;
|
|
3018
3536
|
prices: Price[];
|
|
3019
|
-
inventory:
|
|
3537
|
+
inventory: ProductInventoryInput[];
|
|
3020
3538
|
attributes: Block[];
|
|
3021
3539
|
requires_shipping?: boolean;
|
|
3022
3540
|
digital_delivery_policy?: DigitalDeliveryPolicy;
|
|
@@ -3030,7 +3548,7 @@ interface UpdateProductVariantInput {
|
|
|
3030
3548
|
id: string;
|
|
3031
3549
|
sku?: string | null;
|
|
3032
3550
|
prices?: Price[];
|
|
3033
|
-
inventory?:
|
|
3551
|
+
inventory?: ProductInventoryInput[];
|
|
3034
3552
|
attributes?: Block[];
|
|
3035
3553
|
requires_shipping?: boolean;
|
|
3036
3554
|
digital_delivery_policy?: DigitalDeliveryPolicy;
|
|
@@ -3062,11 +3580,15 @@ interface DeleteProductParams {
|
|
|
3062
3580
|
id: string;
|
|
3063
3581
|
store_id?: string;
|
|
3064
3582
|
}
|
|
3065
|
-
|
|
3066
|
-
id?: string;
|
|
3067
|
-
slug?: string;
|
|
3583
|
+
type GetProductParams = {
|
|
3068
3584
|
store_id?: string;
|
|
3069
|
-
}
|
|
3585
|
+
} & ({
|
|
3586
|
+
id: string;
|
|
3587
|
+
slug?: never;
|
|
3588
|
+
} | {
|
|
3589
|
+
id?: never;
|
|
3590
|
+
slug: string;
|
|
3591
|
+
});
|
|
3070
3592
|
interface GetOrderParams {
|
|
3071
3593
|
id: string;
|
|
3072
3594
|
store_id?: string;
|
|
@@ -3091,14 +3613,14 @@ interface GetOrdersParams {
|
|
|
3091
3613
|
}
|
|
3092
3614
|
interface UpdateOrderParams {
|
|
3093
3615
|
id: string;
|
|
3616
|
+
revision: number;
|
|
3094
3617
|
store_id?: string;
|
|
3095
3618
|
confirm?: boolean;
|
|
3096
3619
|
cancel?: boolean;
|
|
3097
3620
|
shipping_address?: Address | null;
|
|
3098
3621
|
billing_address?: Address | null;
|
|
3099
3622
|
forms?: FormEntry[];
|
|
3100
|
-
items?:
|
|
3101
|
-
payment?: OrderPayment;
|
|
3623
|
+
items?: TrustedOrderCheckoutItemInput[];
|
|
3102
3624
|
}
|
|
3103
3625
|
interface CreateProviderParams {
|
|
3104
3626
|
store_id?: string;
|
|
@@ -3179,20 +3701,28 @@ interface DeleteServiceProviderParams {
|
|
|
3179
3701
|
store_id?: string;
|
|
3180
3702
|
id: string;
|
|
3181
3703
|
}
|
|
3182
|
-
|
|
3704
|
+
type FindServiceProvidersParams = {
|
|
3183
3705
|
store_id?: string;
|
|
3184
|
-
|
|
3706
|
+
} & ({
|
|
3707
|
+
service_id: string;
|
|
3185
3708
|
provider_id?: string;
|
|
3186
|
-
}
|
|
3709
|
+
} | {
|
|
3710
|
+
service_id?: string;
|
|
3711
|
+
provider_id: string;
|
|
3712
|
+
});
|
|
3187
3713
|
interface DeleteServiceParams {
|
|
3188
3714
|
id: string;
|
|
3189
3715
|
store_id?: string;
|
|
3190
3716
|
}
|
|
3191
|
-
|
|
3192
|
-
id?: string;
|
|
3193
|
-
slug?: string;
|
|
3717
|
+
type GetServiceParams = {
|
|
3194
3718
|
store_id?: string;
|
|
3195
|
-
}
|
|
3719
|
+
} & ({
|
|
3720
|
+
id: string;
|
|
3721
|
+
slug?: never;
|
|
3722
|
+
} | {
|
|
3723
|
+
id?: never;
|
|
3724
|
+
slug: string;
|
|
3725
|
+
});
|
|
3196
3726
|
interface GetProvidersParams {
|
|
3197
3727
|
store_id?: string;
|
|
3198
3728
|
service_id?: string;
|
|
@@ -3210,11 +3740,15 @@ interface GetProvidersParams {
|
|
|
3210
3740
|
from?: number;
|
|
3211
3741
|
to?: number;
|
|
3212
3742
|
}
|
|
3213
|
-
|
|
3214
|
-
id?: string;
|
|
3215
|
-
slug?: string;
|
|
3743
|
+
type GetProviderParams = {
|
|
3216
3744
|
store_id?: string;
|
|
3217
|
-
}
|
|
3745
|
+
} & ({
|
|
3746
|
+
id: string;
|
|
3747
|
+
slug?: never;
|
|
3748
|
+
} | {
|
|
3749
|
+
id?: never;
|
|
3750
|
+
slug: string;
|
|
3751
|
+
});
|
|
3218
3752
|
interface SearchOrderServiceItemsParams {
|
|
3219
3753
|
store_id?: string;
|
|
3220
3754
|
contact_id?: string;
|
|
@@ -3231,47 +3765,41 @@ interface SearchOrderServiceItemsParams {
|
|
|
3231
3765
|
query?: string | number;
|
|
3232
3766
|
contact_list_id?: string;
|
|
3233
3767
|
}
|
|
3234
|
-
interface
|
|
3235
|
-
|
|
3768
|
+
interface FindDigitalAccessGrantsParams {
|
|
3769
|
+
order_id: string;
|
|
3770
|
+
store_id?: string;
|
|
3771
|
+
limit?: number;
|
|
3772
|
+
cursor?: string;
|
|
3773
|
+
}
|
|
3774
|
+
interface GetDigitalAccessGrantParams {
|
|
3775
|
+
order_id: string;
|
|
3236
3776
|
grant_id: string;
|
|
3237
3777
|
store_id?: string;
|
|
3238
3778
|
}
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
address: Address;
|
|
3779
|
+
type DownloadDigitalAccessParams = GetDigitalAccessGrantParams;
|
|
3780
|
+
interface ActivateDigitalAccessGrantParams extends GetDigitalAccessGrantParams {
|
|
3242
3781
|
}
|
|
3243
|
-
interface
|
|
3244
|
-
id: string | null;
|
|
3245
|
-
value?: string;
|
|
3246
|
-
name?: string | null;
|
|
3247
|
-
created_at?: number;
|
|
3248
|
-
expires_at?: number | null;
|
|
3249
|
-
type?: string;
|
|
3782
|
+
interface RevokeDigitalAccessGrantParams extends GetDigitalAccessGrantParams {
|
|
3250
3783
|
}
|
|
3251
3784
|
interface UpdateAccountContactParams {
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3785
|
+
}
|
|
3786
|
+
interface CreateAccountApiTokenParams {
|
|
3787
|
+
name: string;
|
|
3788
|
+
expires_at?: number | null;
|
|
3789
|
+
}
|
|
3790
|
+
interface UpdateAccountApiTokenParams {
|
|
3791
|
+
id: string;
|
|
3792
|
+
name: string;
|
|
3255
3793
|
}
|
|
3256
3794
|
interface SearchAccountsParams {
|
|
3257
3795
|
limit?: number;
|
|
3258
3796
|
cursor?: string | null;
|
|
3259
3797
|
query?: string | number;
|
|
3260
|
-
|
|
3261
|
-
store_id?: string;
|
|
3262
|
-
sort_field?: string | null;
|
|
3798
|
+
sort_field?: AccountSortField | null;
|
|
3263
3799
|
sort_direction?: "asc" | "desc" | null;
|
|
3264
3800
|
}
|
|
3265
3801
|
interface DeleteAccountParams {
|
|
3266
3802
|
}
|
|
3267
|
-
interface TriggerNotificationParams {
|
|
3268
|
-
channel: string;
|
|
3269
|
-
store_id: string;
|
|
3270
|
-
email_template_id: string;
|
|
3271
|
-
mailbox_id: string;
|
|
3272
|
-
recipients: string[];
|
|
3273
|
-
vars?: Record<string, any>;
|
|
3274
|
-
}
|
|
3275
3803
|
interface GetEmailTemplatesParams {
|
|
3276
3804
|
store_id?: string;
|
|
3277
3805
|
ids?: string[];
|
|
@@ -3288,11 +3816,9 @@ interface GetEmailTemplatesParams {
|
|
|
3288
3816
|
interface CreateEmailTemplateParams {
|
|
3289
3817
|
store_id?: string;
|
|
3290
3818
|
key: string;
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
from_email?: string;
|
|
3295
|
-
reply_to?: string;
|
|
3819
|
+
type: EmailTemplateType;
|
|
3820
|
+
subject: Record<string, string>;
|
|
3821
|
+
body: string;
|
|
3296
3822
|
preheader?: string;
|
|
3297
3823
|
variables?: EmailTemplateVariable[];
|
|
3298
3824
|
sample_data?: Record<string, unknown>;
|
|
@@ -3301,11 +3827,9 @@ interface UpdateEmailTemplateParams {
|
|
|
3301
3827
|
id: string;
|
|
3302
3828
|
store_id?: string;
|
|
3303
3829
|
key?: string;
|
|
3830
|
+
type?: EmailTemplateType;
|
|
3304
3831
|
subject?: Record<string, string>;
|
|
3305
3832
|
body?: string;
|
|
3306
|
-
from_name?: string;
|
|
3307
|
-
from_email?: string;
|
|
3308
|
-
reply_to?: string;
|
|
3309
3833
|
preheader?: string;
|
|
3310
3834
|
variables?: EmailTemplateVariable[];
|
|
3311
3835
|
sample_data?: Record<string, unknown>;
|
|
@@ -3317,7 +3841,7 @@ interface PreviewEmailTemplateParams {
|
|
|
3317
3841
|
subject?: Record<string, string>;
|
|
3318
3842
|
body?: string;
|
|
3319
3843
|
preheader?: string | null;
|
|
3320
|
-
vars?: Record<string,
|
|
3844
|
+
vars?: Record<string, unknown>;
|
|
3321
3845
|
}
|
|
3322
3846
|
interface PreviewEmailTemplateWarning {
|
|
3323
3847
|
kind: string;
|
|
@@ -3467,22 +3991,50 @@ interface GetSubscriptionPlansParams {
|
|
|
3467
3991
|
interface SetupAnalyticsParams {
|
|
3468
3992
|
store_id?: string;
|
|
3469
3993
|
}
|
|
3470
|
-
interface
|
|
3471
|
-
|
|
3994
|
+
interface CreateOrderRefundParams {
|
|
3995
|
+
order_id: string;
|
|
3996
|
+
refund_id: string;
|
|
3997
|
+
amount: number;
|
|
3998
|
+
store_id?: string;
|
|
3999
|
+
}
|
|
4000
|
+
interface RetryOrderRefundParams {
|
|
4001
|
+
order_id: string;
|
|
4002
|
+
refund_id: string;
|
|
4003
|
+
store_id?: string;
|
|
4004
|
+
}
|
|
4005
|
+
interface GetOrderPaymentParams {
|
|
4006
|
+
order_id: string;
|
|
4007
|
+
store_id?: string;
|
|
4008
|
+
}
|
|
4009
|
+
interface RetryPaymentTransactionParams {
|
|
4010
|
+
order_id: string;
|
|
4011
|
+
transaction_id: string;
|
|
4012
|
+
store_id?: string;
|
|
4013
|
+
}
|
|
4014
|
+
interface FindPaymentTransactionsParams {
|
|
4015
|
+
order_id: string;
|
|
4016
|
+
store_id?: string;
|
|
4017
|
+
limit?: number;
|
|
3472
4018
|
cursor?: string | null;
|
|
3473
|
-
limit: number;
|
|
3474
|
-
ids?: string[];
|
|
3475
|
-
query?: string | number;
|
|
3476
|
-
mime_type?: string;
|
|
3477
|
-
sort_field?: string;
|
|
3478
|
-
sort_direction?: "asc" | "desc";
|
|
3479
4019
|
}
|
|
3480
|
-
interface
|
|
3481
|
-
|
|
3482
|
-
|
|
4020
|
+
interface GetPaymentTransactionParams {
|
|
4021
|
+
order_id: string;
|
|
4022
|
+
transaction_id: string;
|
|
4023
|
+
store_id?: string;
|
|
4024
|
+
}
|
|
4025
|
+
interface FindOrderRefundsParams {
|
|
4026
|
+
order_id: string;
|
|
4027
|
+
store_id?: string;
|
|
4028
|
+
limit?: number;
|
|
4029
|
+
cursor?: string | null;
|
|
4030
|
+
}
|
|
4031
|
+
interface GetOrderRefundParams {
|
|
4032
|
+
order_id: string;
|
|
4033
|
+
refund_id: string;
|
|
4034
|
+
store_id?: string;
|
|
3483
4035
|
}
|
|
3484
|
-
type RefundStatus = "requested" | "processing" | "succeeded" | "failed" | "unknown";
|
|
3485
|
-
interface
|
|
4036
|
+
type RefundStatus = "requested" | "processing" | "succeeded" | "rejected" | "failed" | "unknown";
|
|
4037
|
+
interface CreateOrderRefundResponse {
|
|
3486
4038
|
refund_id: string;
|
|
3487
4039
|
amount: number;
|
|
3488
4040
|
status: RefundStatus;
|
|
@@ -3526,7 +4078,7 @@ interface Slot {
|
|
|
3526
4078
|
interface CreateWorkflowParams {
|
|
3527
4079
|
store_id?: string;
|
|
3528
4080
|
key: string;
|
|
3529
|
-
status?:
|
|
4081
|
+
status?: MutableWorkflowStatus;
|
|
3530
4082
|
nodes: Record<string, WorkflowNode>;
|
|
3531
4083
|
edges: WorkflowEdge[];
|
|
3532
4084
|
schedule?: string;
|
|
@@ -3535,7 +4087,7 @@ interface UpdateWorkflowParams {
|
|
|
3535
4087
|
id: string;
|
|
3536
4088
|
store_id?: string;
|
|
3537
4089
|
key: string;
|
|
3538
|
-
status?:
|
|
4090
|
+
status?: MutableWorkflowStatus;
|
|
3539
4091
|
nodes: Record<string, WorkflowNode>;
|
|
3540
4092
|
edges: WorkflowEdge[];
|
|
3541
4093
|
schedule?: string;
|
|
@@ -3562,7 +4114,7 @@ interface GetWorkflowsParams {
|
|
|
3562
4114
|
}
|
|
3563
4115
|
interface TriggerWorkflowParams {
|
|
3564
4116
|
secret: string;
|
|
3565
|
-
|
|
4117
|
+
[key: string]: unknown;
|
|
3566
4118
|
}
|
|
3567
4119
|
interface GetWorkflowExecutionsParams {
|
|
3568
4120
|
workflow_id: string;
|
|
@@ -3576,14 +4128,27 @@ interface GetWorkflowExecutionParams {
|
|
|
3576
4128
|
execution_id: string;
|
|
3577
4129
|
store_id?: string;
|
|
3578
4130
|
}
|
|
3579
|
-
interface
|
|
4131
|
+
interface GetWorkflowEffectsParams {
|
|
4132
|
+
workflow_id: string;
|
|
4133
|
+
execution_id: string;
|
|
4134
|
+
store_id?: string;
|
|
4135
|
+
limit?: number;
|
|
4136
|
+
cursor?: string;
|
|
4137
|
+
}
|
|
4138
|
+
interface GetWorkflowEffectParams {
|
|
4139
|
+
workflow_id: string;
|
|
4140
|
+
execution_id: string;
|
|
4141
|
+
effect_id: string;
|
|
4142
|
+
store_id?: string;
|
|
4143
|
+
}
|
|
4144
|
+
interface GetWorkflowConnectionConnectUrlParams {
|
|
3580
4145
|
store_id?: string;
|
|
3581
|
-
type:
|
|
4146
|
+
type: WorkflowConnectionType;
|
|
3582
4147
|
}
|
|
3583
|
-
interface
|
|
4148
|
+
interface GetWorkflowConnectionsParams {
|
|
3584
4149
|
store_id?: string;
|
|
3585
4150
|
}
|
|
3586
|
-
interface
|
|
4151
|
+
interface DeleteWorkflowConnectionParams {
|
|
3587
4152
|
id: string;
|
|
3588
4153
|
store_id?: string;
|
|
3589
4154
|
}
|
|
@@ -3593,7 +4158,6 @@ interface CreateContactListParams {
|
|
|
3593
4158
|
name?: string;
|
|
3594
4159
|
description?: string | null;
|
|
3595
4160
|
type?: ContactListType;
|
|
3596
|
-
plans?: ContactListPlan[];
|
|
3597
4161
|
content_access?: ContactListContentAccess[];
|
|
3598
4162
|
source?: ContactListSource;
|
|
3599
4163
|
}
|
|
@@ -3605,9 +4169,53 @@ interface UpdateContactListParams {
|
|
|
3605
4169
|
description?: string | null;
|
|
3606
4170
|
status?: ContactListStatus;
|
|
3607
4171
|
type?: ContactListType;
|
|
3608
|
-
plans?: ContactListPlan[];
|
|
3609
4172
|
content_access?: ContactListContentAccess[];
|
|
3610
4173
|
}
|
|
4174
|
+
interface CreateContactListPlanParams {
|
|
4175
|
+
store_id?: string;
|
|
4176
|
+
contact_list_id: string;
|
|
4177
|
+
key: string;
|
|
4178
|
+
name?: string;
|
|
4179
|
+
description?: string | null;
|
|
4180
|
+
status?: ContactListPlanStatus;
|
|
4181
|
+
prices: ContactListPlanPriceInput[];
|
|
4182
|
+
payment_provider_id?: string;
|
|
4183
|
+
}
|
|
4184
|
+
interface UpdateContactListPlanParams {
|
|
4185
|
+
id: string;
|
|
4186
|
+
store_id?: string;
|
|
4187
|
+
contact_list_id: string;
|
|
4188
|
+
key?: string;
|
|
4189
|
+
name?: string;
|
|
4190
|
+
description?: string | null;
|
|
4191
|
+
status?: ContactListPlanStatus;
|
|
4192
|
+
prices?: ContactListPlanPriceInput[];
|
|
4193
|
+
payment_provider_id?: string;
|
|
4194
|
+
}
|
|
4195
|
+
type ContactListPlanPriceInput = Omit<SubscriptionPrice, "providers">;
|
|
4196
|
+
interface FindContactListPlansParams {
|
|
4197
|
+
store_id?: string;
|
|
4198
|
+
contact_list_id: string;
|
|
4199
|
+
status?: ContactListPlanStatus;
|
|
4200
|
+
limit?: number;
|
|
4201
|
+
cursor?: string;
|
|
4202
|
+
}
|
|
4203
|
+
interface FindStorefrontContactListPlansParams {
|
|
4204
|
+
store_id?: string;
|
|
4205
|
+
contact_list_id: string;
|
|
4206
|
+
limit?: number;
|
|
4207
|
+
cursor?: string;
|
|
4208
|
+
}
|
|
4209
|
+
interface GetContactListPlanParams {
|
|
4210
|
+
id: string;
|
|
4211
|
+
store_id?: string;
|
|
4212
|
+
contact_list_id: string;
|
|
4213
|
+
}
|
|
4214
|
+
interface RetryContactListPlanCatalogParams {
|
|
4215
|
+
store_id?: string;
|
|
4216
|
+
contact_list_id: string;
|
|
4217
|
+
plan_id: string;
|
|
4218
|
+
}
|
|
3611
4219
|
interface FindContactListsParams {
|
|
3612
4220
|
store_id?: string;
|
|
3613
4221
|
ids?: string[];
|
|
@@ -3618,6 +4226,15 @@ interface FindContactListsParams {
|
|
|
3618
4226
|
sort_field?: string;
|
|
3619
4227
|
sort_direction?: "asc" | "desc";
|
|
3620
4228
|
}
|
|
4229
|
+
interface FindStorefrontContactListsParams {
|
|
4230
|
+
store_id?: string;
|
|
4231
|
+
ids?: string[];
|
|
4232
|
+
query?: string;
|
|
4233
|
+
limit?: number;
|
|
4234
|
+
cursor?: string;
|
|
4235
|
+
sort_field?: string;
|
|
4236
|
+
sort_direction?: "asc" | "desc";
|
|
4237
|
+
}
|
|
3621
4238
|
interface GetContactListParams {
|
|
3622
4239
|
id: string;
|
|
3623
4240
|
store_id?: string;
|
|
@@ -3650,6 +4267,70 @@ interface FindContactListContactsParams {
|
|
|
3650
4267
|
limit?: number;
|
|
3651
4268
|
cursor?: string;
|
|
3652
4269
|
}
|
|
4270
|
+
interface RefundContactListMembershipParams {
|
|
4271
|
+
store_id?: string;
|
|
4272
|
+
contact_list_id: string;
|
|
4273
|
+
membership_id: string;
|
|
4274
|
+
refund_id: string;
|
|
4275
|
+
amount?: number | null;
|
|
4276
|
+
}
|
|
4277
|
+
interface RefundContactListMembershipResult {
|
|
4278
|
+
refund_id: string;
|
|
4279
|
+
amount: number;
|
|
4280
|
+
status: ContactListMembershipRefundStatus;
|
|
4281
|
+
membership: ContactListMembership;
|
|
4282
|
+
}
|
|
4283
|
+
interface FindContactListMembershipPaymentAttemptsParams {
|
|
4284
|
+
store_id?: string;
|
|
4285
|
+
contact_list_id: string;
|
|
4286
|
+
membership_id: string;
|
|
4287
|
+
limit?: number;
|
|
4288
|
+
cursor?: string;
|
|
4289
|
+
}
|
|
4290
|
+
interface FindStorefrontContactListMembershipsParams {
|
|
4291
|
+
store_id?: string;
|
|
4292
|
+
limit?: number;
|
|
4293
|
+
cursor?: string;
|
|
4294
|
+
}
|
|
4295
|
+
interface GetContactListMembershipPaymentAttemptParams {
|
|
4296
|
+
store_id?: string;
|
|
4297
|
+
contact_list_id: string;
|
|
4298
|
+
membership_id: string;
|
|
4299
|
+
id: string;
|
|
4300
|
+
}
|
|
4301
|
+
interface FindContactListMembershipRefundsParams {
|
|
4302
|
+
store_id?: string;
|
|
4303
|
+
contact_list_id: string;
|
|
4304
|
+
membership_id: string;
|
|
4305
|
+
payment_attempt_id?: string;
|
|
4306
|
+
limit?: number;
|
|
4307
|
+
cursor?: string;
|
|
4308
|
+
}
|
|
4309
|
+
interface GetContactListMembershipRefundParams {
|
|
4310
|
+
store_id?: string;
|
|
4311
|
+
contact_list_id: string;
|
|
4312
|
+
membership_id: string;
|
|
4313
|
+
id: string;
|
|
4314
|
+
}
|
|
4315
|
+
interface RetryContactListMembershipRefundParams extends GetContactListMembershipRefundParams {
|
|
4316
|
+
}
|
|
4317
|
+
interface FindContactListMembershipCancellationsParams {
|
|
4318
|
+
store_id?: string;
|
|
4319
|
+
contact_list_id: string;
|
|
4320
|
+
membership_id: string;
|
|
4321
|
+
payment_attempt_id?: string;
|
|
4322
|
+
refund_id?: string;
|
|
4323
|
+
limit?: number;
|
|
4324
|
+
cursor?: string;
|
|
4325
|
+
}
|
|
4326
|
+
interface GetContactListMembershipCancellationParams {
|
|
4327
|
+
store_id?: string;
|
|
4328
|
+
contact_list_id: string;
|
|
4329
|
+
membership_id: string;
|
|
4330
|
+
id: string;
|
|
4331
|
+
}
|
|
4332
|
+
interface RetryContactListMembershipCancellationParams extends GetContactListMembershipCancellationParams {
|
|
4333
|
+
}
|
|
3653
4334
|
interface ImportContactRowInput {
|
|
3654
4335
|
email: string;
|
|
3655
4336
|
contact_id?: string;
|
|
@@ -3749,8 +4430,6 @@ interface SubscribeContactListParams {
|
|
|
3749
4430
|
id: string;
|
|
3750
4431
|
contact_id: string;
|
|
3751
4432
|
price_id?: string;
|
|
3752
|
-
success_url?: string;
|
|
3753
|
-
cancel_url?: string;
|
|
3754
4433
|
confirm_url?: string;
|
|
3755
4434
|
confirmation_token_id?: string;
|
|
3756
4435
|
return_url?: string;
|
|
@@ -3769,7 +4448,7 @@ interface CreateMailboxParams {
|
|
|
3769
4448
|
email: string;
|
|
3770
4449
|
from_name?: string;
|
|
3771
4450
|
reply_to_email?: string | null;
|
|
3772
|
-
provider:
|
|
4451
|
+
provider: SmtpImapMailboxProviderInput;
|
|
3773
4452
|
password?: string;
|
|
3774
4453
|
daily_limit?: number;
|
|
3775
4454
|
}
|
|
@@ -3780,16 +4459,18 @@ interface UpdateMailboxParams {
|
|
|
3780
4459
|
email?: string;
|
|
3781
4460
|
from_name?: string;
|
|
3782
4461
|
reply_to_email?: string | null;
|
|
3783
|
-
provider?:
|
|
4462
|
+
provider?: SmtpImapMailboxProviderInput;
|
|
3784
4463
|
password?: string;
|
|
3785
4464
|
status?: MailboxStatus;
|
|
3786
4465
|
daily_limit?: number;
|
|
4466
|
+
sync_enabled?: boolean;
|
|
4467
|
+
sync_interval_seconds?: number;
|
|
3787
4468
|
}
|
|
3788
4469
|
interface FindMailboxesParams {
|
|
3789
4470
|
store_id?: string;
|
|
3790
4471
|
ids?: string[];
|
|
3791
4472
|
status?: MailboxStatus;
|
|
3792
|
-
provider_type?: "smtp_imap";
|
|
4473
|
+
provider_type?: "smtp_imap" | "google";
|
|
3793
4474
|
query?: string | number;
|
|
3794
4475
|
limit?: number;
|
|
3795
4476
|
cursor?: string;
|
|
@@ -3808,14 +4489,34 @@ interface PrepareMailboxParams {
|
|
|
3808
4489
|
id: string;
|
|
3809
4490
|
store_id?: string;
|
|
3810
4491
|
}
|
|
3811
|
-
interface
|
|
4492
|
+
interface ConnectGoogleMailboxParams {
|
|
4493
|
+
id?: string | null;
|
|
4494
|
+
store_id?: string;
|
|
4495
|
+
key: string;
|
|
4496
|
+
from_name?: string | null;
|
|
4497
|
+
reply_to_email?: string | null;
|
|
4498
|
+
daily_limit?: number;
|
|
4499
|
+
sync_enabled: boolean;
|
|
4500
|
+
sync_interval_seconds: number;
|
|
4501
|
+
}
|
|
4502
|
+
interface GoogleMailboxConnectUrl {
|
|
4503
|
+
authorization_url: string;
|
|
4504
|
+
state: string;
|
|
4505
|
+
}
|
|
4506
|
+
type TestMailboxResult = {
|
|
4507
|
+
type: "smtp_imap";
|
|
3812
4508
|
ok: boolean;
|
|
3813
4509
|
smtp_ok: boolean;
|
|
3814
4510
|
imap_ok: boolean;
|
|
3815
4511
|
skipped: boolean;
|
|
3816
4512
|
smtp_error?: string | null;
|
|
3817
4513
|
imap_error?: string | null;
|
|
3818
|
-
}
|
|
4514
|
+
} | {
|
|
4515
|
+
type: "google";
|
|
4516
|
+
ok: boolean;
|
|
4517
|
+
skipped: boolean;
|
|
4518
|
+
error?: string | null;
|
|
4519
|
+
};
|
|
3819
4520
|
interface CreateCampaignParams {
|
|
3820
4521
|
store_id?: string;
|
|
3821
4522
|
key: string;
|
|
@@ -3904,7 +4605,7 @@ interface UpdateCampaignEnrollmentDraftParams {
|
|
|
3904
4605
|
store_id?: string;
|
|
3905
4606
|
id: string;
|
|
3906
4607
|
draft_id: string;
|
|
3907
|
-
template_vars?: Record<string,
|
|
4608
|
+
template_vars?: Record<string, unknown>;
|
|
3908
4609
|
body?: string;
|
|
3909
4610
|
suggested_message?: string;
|
|
3910
4611
|
}
|
|
@@ -3938,6 +4639,7 @@ interface GetCampaignEnrollmentConversationParams {
|
|
|
3938
4639
|
after_id?: string;
|
|
3939
4640
|
}
|
|
3940
4641
|
interface ReplyCampaignEnrollmentParams {
|
|
4642
|
+
message_id: string;
|
|
3941
4643
|
store_id?: string;
|
|
3942
4644
|
id: string;
|
|
3943
4645
|
subject?: string | null;
|
|
@@ -3951,7 +4653,7 @@ interface StopCampaignEnrollmentParams {
|
|
|
3951
4653
|
interface UpdateCampaignMessageParams {
|
|
3952
4654
|
id: string;
|
|
3953
4655
|
store_id?: string;
|
|
3954
|
-
template_vars?: Record<string,
|
|
4656
|
+
template_vars?: Record<string, unknown>;
|
|
3955
4657
|
}
|
|
3956
4658
|
interface CreateSuppressionParams {
|
|
3957
4659
|
store_id?: string;
|
|
@@ -4012,6 +4714,7 @@ interface CancelLeadResearchRunParams {
|
|
|
4012
4714
|
store_id?: string;
|
|
4013
4715
|
}
|
|
4014
4716
|
interface SendLeadResearchMessageParams {
|
|
4717
|
+
message_id: string;
|
|
4015
4718
|
run_id: string;
|
|
4016
4719
|
store_id?: string;
|
|
4017
4720
|
message: string;
|
|
@@ -4053,10 +4756,10 @@ interface DeleteBuildHookParams {
|
|
|
4053
4756
|
store_id: string;
|
|
4054
4757
|
id: string;
|
|
4055
4758
|
}
|
|
4056
|
-
interface
|
|
4759
|
+
interface ListSocialConnectionsParams {
|
|
4057
4760
|
store_id?: string;
|
|
4058
4761
|
}
|
|
4059
|
-
interface
|
|
4762
|
+
interface DeleteSocialConnectionParams {
|
|
4060
4763
|
store_id: string;
|
|
4061
4764
|
id: string;
|
|
4062
4765
|
}
|
|
@@ -4091,13 +4794,13 @@ interface GetSocialPublicationParams {
|
|
|
4091
4794
|
}
|
|
4092
4795
|
interface ValidateSocialPublicationParams {
|
|
4093
4796
|
store_id?: string;
|
|
4094
|
-
|
|
4797
|
+
social_connection_id: string;
|
|
4095
4798
|
scheduled_at?: number | null;
|
|
4096
4799
|
content: SocialPublicationContent;
|
|
4097
4800
|
}
|
|
4098
4801
|
interface CreateSocialPublicationParams {
|
|
4099
4802
|
store_id?: string;
|
|
4100
|
-
|
|
4803
|
+
social_connection_id: string;
|
|
4101
4804
|
key?: string | null;
|
|
4102
4805
|
scheduled_at?: number | null;
|
|
4103
4806
|
content: SocialPublicationContent;
|
|
@@ -4105,7 +4808,7 @@ interface CreateSocialPublicationParams {
|
|
|
4105
4808
|
interface UpdateSocialPublicationParams {
|
|
4106
4809
|
store_id?: string;
|
|
4107
4810
|
id: string;
|
|
4108
|
-
|
|
4811
|
+
social_connection_id?: string | null;
|
|
4109
4812
|
key?: string | null;
|
|
4110
4813
|
scheduled_at?: number | null;
|
|
4111
4814
|
content?: SocialPublicationContent | null;
|
|
@@ -4137,8 +4840,8 @@ type SyncSocialPublicationCommentThreadParams = GetSocialPublicationCommentThrea
|
|
|
4137
4840
|
interface FindSocialPublicationCommentsParams {
|
|
4138
4841
|
store_id?: string;
|
|
4139
4842
|
publication_id?: string;
|
|
4140
|
-
|
|
4141
|
-
|
|
4843
|
+
social_connection_id?: string;
|
|
4844
|
+
type?: SocialConnectionType;
|
|
4142
4845
|
status?: SocialPublicationCommentStatus;
|
|
4143
4846
|
intent?: SocialPublicationCommentIntent;
|
|
4144
4847
|
priority?: SocialPublicationCommentPriority;
|
|
@@ -4149,20 +4852,46 @@ interface FindSocialPublicationCommentsParams {
|
|
|
4149
4852
|
interface ClassifySocialPublicationCommentsParams {
|
|
4150
4853
|
store_id?: string;
|
|
4151
4854
|
publication_id?: string;
|
|
4152
|
-
|
|
4153
|
-
|
|
4855
|
+
social_connection_id?: string;
|
|
4856
|
+
type?: SocialConnectionType;
|
|
4154
4857
|
status?: SocialPublicationCommentStatus;
|
|
4155
4858
|
intent?: SocialPublicationCommentIntent;
|
|
4156
4859
|
priority?: SocialPublicationCommentPriority;
|
|
4157
4860
|
limit?: number;
|
|
4158
4861
|
force?: boolean;
|
|
4159
4862
|
}
|
|
4160
|
-
interface
|
|
4863
|
+
interface CreateSocialCommentReplyParams {
|
|
4161
4864
|
store_id?: string;
|
|
4162
4865
|
publication_id: string;
|
|
4163
4866
|
comment_id: string;
|
|
4867
|
+
reply_id: string;
|
|
4164
4868
|
text: string;
|
|
4165
4869
|
}
|
|
4870
|
+
interface ListSocialCommentRepliesParams {
|
|
4871
|
+
store_id?: string;
|
|
4872
|
+
publication_id: string;
|
|
4873
|
+
comment_id: string;
|
|
4874
|
+
limit: number;
|
|
4875
|
+
cursor?: string | null;
|
|
4876
|
+
}
|
|
4877
|
+
interface GetSocialCommentReplyParams {
|
|
4878
|
+
store_id?: string;
|
|
4879
|
+
publication_id: string;
|
|
4880
|
+
comment_id: string;
|
|
4881
|
+
reply_id: string;
|
|
4882
|
+
}
|
|
4883
|
+
type RetrySocialCommentReplyParams = GetSocialCommentReplyParams;
|
|
4884
|
+
interface ListSocialPublicationEffectsParams {
|
|
4885
|
+
store_id?: string;
|
|
4886
|
+
publication_id: string;
|
|
4887
|
+
limit: number;
|
|
4888
|
+
cursor?: string | null;
|
|
4889
|
+
}
|
|
4890
|
+
interface GetSocialPublicationEffectParams {
|
|
4891
|
+
store_id?: string;
|
|
4892
|
+
publication_id: string;
|
|
4893
|
+
effect_id: string;
|
|
4894
|
+
}
|
|
4166
4895
|
interface GetSocialPublicationMetricsParams {
|
|
4167
4896
|
store_id?: string;
|
|
4168
4897
|
publication_id: string;
|
|
@@ -4179,13 +4908,13 @@ interface SyncSocialEngagementParams {
|
|
|
4179
4908
|
interface GetSocialCapabilitiesParams {
|
|
4180
4909
|
store_id?: string;
|
|
4181
4910
|
}
|
|
4182
|
-
interface
|
|
4911
|
+
interface ConnectSocialConnectionParams {
|
|
4183
4912
|
store_id?: string;
|
|
4184
|
-
|
|
4913
|
+
type: SocialConnectionType;
|
|
4185
4914
|
}
|
|
4186
4915
|
interface SelectSocialDestinationParams {
|
|
4187
4916
|
store_id?: string;
|
|
4188
|
-
|
|
4917
|
+
type: SocialConnectionType;
|
|
4189
4918
|
attempt_id: string;
|
|
4190
4919
|
candidate_id: string;
|
|
4191
4920
|
}
|
|
@@ -4208,37 +4937,69 @@ interface CreateWebhookParams {
|
|
|
4208
4937
|
interface UpdateWebhookParams {
|
|
4209
4938
|
store_id: string;
|
|
4210
4939
|
id: string;
|
|
4211
|
-
key
|
|
4212
|
-
url
|
|
4213
|
-
events
|
|
4214
|
-
headers
|
|
4215
|
-
secret
|
|
4216
|
-
enabled
|
|
4940
|
+
key?: string;
|
|
4941
|
+
url?: string;
|
|
4942
|
+
events?: WebhookEventSubscription[];
|
|
4943
|
+
headers?: Record<string, string>;
|
|
4944
|
+
secret?: string;
|
|
4945
|
+
enabled?: boolean;
|
|
4217
4946
|
}
|
|
4218
4947
|
interface DeleteWebhookParams {
|
|
4219
4948
|
store_id: string;
|
|
4220
4949
|
id: string;
|
|
4221
4950
|
}
|
|
4222
4951
|
interface GetShippingRatesParams {
|
|
4952
|
+
store_id?: string;
|
|
4223
4953
|
order_id: string;
|
|
4224
|
-
|
|
4225
|
-
|
|
4954
|
+
location_id: string;
|
|
4955
|
+
lines: ShippingRateLine[];
|
|
4226
4956
|
parcel: Parcel;
|
|
4227
4957
|
customs_declaration?: CustomsDeclaration;
|
|
4228
4958
|
}
|
|
4229
|
-
interface
|
|
4959
|
+
interface FindShipmentsParams {
|
|
4960
|
+
store_id?: string;
|
|
4961
|
+
order_id: string;
|
|
4962
|
+
limit?: number;
|
|
4963
|
+
cursor?: string;
|
|
4964
|
+
}
|
|
4965
|
+
type FindFulfillmentOrdersParams = FindShipmentsParams;
|
|
4966
|
+
interface GetFulfillmentOrderParams {
|
|
4967
|
+
store_id?: string;
|
|
4968
|
+
order_id: string;
|
|
4969
|
+
fulfillment_order_id: string;
|
|
4970
|
+
}
|
|
4971
|
+
interface GetShipmentParams {
|
|
4972
|
+
store_id?: string;
|
|
4973
|
+
order_id: string;
|
|
4974
|
+
shipment_id: string;
|
|
4975
|
+
}
|
|
4976
|
+
interface CreateShipmentParams {
|
|
4977
|
+
store_id?: string;
|
|
4230
4978
|
order_id: string;
|
|
4979
|
+
shipment_id: string;
|
|
4231
4980
|
rate_id: string;
|
|
4232
|
-
carrier: string;
|
|
4233
|
-
service: string;
|
|
4234
4981
|
location_id: string;
|
|
4235
4982
|
fulfillment_order_id?: string | null;
|
|
4236
4983
|
lines: ShipmentLine[];
|
|
4237
4984
|
}
|
|
4238
|
-
|
|
4239
|
-
|
|
4985
|
+
type RetryShipmentParams = GetShipmentParams;
|
|
4986
|
+
type RequestShippingLabelRefundParams = GetShipmentParams;
|
|
4987
|
+
interface FindShippingLabelRefundsParams extends FindShipmentsParams {
|
|
4240
4988
|
shipment_id: string;
|
|
4241
4989
|
}
|
|
4990
|
+
interface GetShippingLabelRefundParams extends GetShipmentParams {
|
|
4991
|
+
refund_id: string;
|
|
4992
|
+
}
|
|
4993
|
+
type RetryShippingLabelRefundParams = GetShippingLabelRefundParams;
|
|
4994
|
+
interface FindShippingLabelAdjustmentsParams extends FindShipmentsParams {
|
|
4995
|
+
shipment_id: string;
|
|
4996
|
+
}
|
|
4997
|
+
interface FindShippingLabelSettlementsParams extends FindShipmentsParams {
|
|
4998
|
+
shipment_id: string;
|
|
4999
|
+
}
|
|
5000
|
+
interface RetryShippingLabelSettlementParams extends GetShipmentParams {
|
|
5001
|
+
settlement_id: string;
|
|
5002
|
+
}
|
|
4242
5003
|
interface AuthToken {
|
|
4243
5004
|
id: string;
|
|
4244
5005
|
access_token: string;
|
|
@@ -4252,16 +5013,31 @@ interface ContactInfo {
|
|
|
4252
5013
|
id: string;
|
|
4253
5014
|
verified: boolean;
|
|
4254
5015
|
}
|
|
4255
|
-
|
|
5016
|
+
type ContactSessionStatus = "active" | "revoked" | "expired";
|
|
5017
|
+
interface ContactSessionRecord {
|
|
4256
5018
|
id: string;
|
|
4257
|
-
|
|
5019
|
+
store_id: string;
|
|
5020
|
+
contact_id: string;
|
|
5021
|
+
status: ContactSessionStatus;
|
|
4258
5022
|
created_at: number;
|
|
5023
|
+
expires_at: number;
|
|
5024
|
+
revoked_at: number | null;
|
|
5025
|
+
last_seen_at: number | null;
|
|
4259
5026
|
}
|
|
4260
|
-
interface
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
5027
|
+
interface FindContactSessionsParams {
|
|
5028
|
+
contact_id: string;
|
|
5029
|
+
store_id?: string;
|
|
5030
|
+
limit?: number;
|
|
5031
|
+
cursor?: string;
|
|
5032
|
+
}
|
|
5033
|
+
interface RevokeContactSessionParams {
|
|
5034
|
+
contact_id: string;
|
|
5035
|
+
session_id: string;
|
|
5036
|
+
store_id?: string;
|
|
5037
|
+
}
|
|
5038
|
+
interface RevokeAllContactSessionsParams {
|
|
5039
|
+
contact_id: string;
|
|
5040
|
+
store_id?: string;
|
|
4265
5041
|
}
|
|
4266
5042
|
interface PromoUsage {
|
|
4267
5043
|
promo_code_id: string;
|
|
@@ -4276,17 +5052,9 @@ interface Contact {
|
|
|
4276
5052
|
channels: ContactChannel[];
|
|
4277
5053
|
promo_usage: PromoUsage[];
|
|
4278
5054
|
taxonomies: TaxonomyEntry[];
|
|
4279
|
-
auth_tokens: ContactSessionToken[];
|
|
4280
|
-
verification_codes: ContactVerificationCode[];
|
|
4281
5055
|
created_at: number;
|
|
4282
5056
|
updated_at: number;
|
|
4283
5057
|
}
|
|
4284
|
-
interface ContactDetail {
|
|
4285
|
-
contact: Contact;
|
|
4286
|
-
carts: Cart[];
|
|
4287
|
-
orders: Order[];
|
|
4288
|
-
form_submissions: FormSubmission[];
|
|
4289
|
-
}
|
|
4290
5058
|
interface SetContactEmailParams {
|
|
4291
5059
|
email: string;
|
|
4292
5060
|
store_id?: string;
|
|
@@ -4326,4 +5094,4 @@ interface MergeContactsParams {
|
|
|
4326
5094
|
store_id?: string;
|
|
4327
5095
|
}
|
|
4328
5096
|
|
|
4329
|
-
export { type GetProviderParams as $, type Address as A, type Block as B, type Cart as C, type ClearCartParams as D, type EshopCartItem as E, type FormEntry as F, type GetCollectionParams as G, type CheckoutCartParams as H, type GetOrderParams as I, type Order as J, type GetOrdersParams as K, type Location as L, type Market as M, type DownloadDigitalAccessParams as N, type OrderCheckoutResult as O, type Price as P, type QuoteCartParams as Q, type RequestOptions as R, type Service as S, type Taxonomy as T, type UpdateCartParams as U, type DigitalAccessDownloadResponse as V, type GetServiceParams as W, type GetServicesParams as X, type FindServiceProvidersParams as Y, type ZoneLocation as Z, type GetAvailabilityParams as _, type CollectionEntry as a, type UpdateMediaParams as a$, type GetProvidersParams as a0, type GetContactListParams as a1, type ContactList as a2, type FindContactListsParams as a3, type SubscribeContactListParams as a4, type ContactListSubscribeResponse as a5, type ContactListAccessParams as a6, type ContactListAccessResponse as a7, type ContactListContentAccessParams as a8, type ContactListContentAccessResponse as a9, type UpdateBuildHookParams as aA, type DeleteBuildHookParams as aB, type TestWebhookParams as aC, type ListWebhooksParams as aD, type Webhook as aE, type CreateWebhookParams as aF, type UpdateWebhookParams as aG, type DeleteWebhookParams as aH, type StoreRuntimeConfig as aI, type FindStoreMediaParams as aJ, type Media as aK, type CreateLocationParams as aL, type UpdateLocationParams as aM, type DeleteLocationParams as aN, type CreateMarketParams as aO, type UpdateMarketParams as aP, type DeleteMarketParams as aQ, type ListPaymentProvidersParams as aR, type PaymentProvider as aS, type RefreshPaymentProvidersParams as aT, type ConnectStripePaymentProviderParams as aU, type StripePaymentProviderConnectResponse as aV, type DeletePaymentProviderParams as aW, type GetMediaParams as aX, type UploadStoreMediaParams as aY, type DeleteStoreMediaParams as aZ, type GetStoreMediaParams as a_, type ProductVariant as aa, type OrderCheckoutItemInput as ab, type FormField as ac, type Contact$1 as ad, type UpdateAccountContactParams as ae, type AccountUpdateResponse as af, type DeleteAccountParams as ag, type GetMeParams as ah, type Account as ai, type SearchAccountsParams as aj, type MagicLinkVerifyParams as ak, type AuthToken as al, type CreateStoreParams as am, type UpdateStoreParams as an, type DeleteStoreParams as ao, type GetStoreParams as ap, type GetStoresParams as aq, type GetSubscriptionPlansParams as ar, type SubscriptionPlan as as, type SubscribeParams as at, type CreatePortalSessionParams as au, type AddMemberParams as av, type RemoveMemberParams as aw, type ListBuildHooksParams as ax, type BuildHook as ay, type CreateBuildHookParams as az, type Form as b, type CreateEmailTemplateParams as b$, type TrackEmailOpenParams as b0, type TriggerNotificationParams as b1, type CreateMailboxParams as b2, type Mailbox as b3, type UpdateMailboxParams as b4, type GetMailboxParams as b5, type TestMailboxParams as b6, type TestMailboxResult as b7, type PrepareMailboxParams as b8, type FindMailboxesParams as b9, type ClassifySocialPublicationCommentsParams as bA, type SocialPublicationCommentClassificationResult as bB, type ReplySocialPublicationCommentParams as bC, type SocialPublicationCommentReplyResponse as bD, type GetSocialPublicationMetricsParams as bE, type SocialPublicationMetricSnapshot as bF, type SyncSocialPublicationMetricsParams as bG, type SyncSocialEngagementParams as bH, type SocialPublicationEngagementSyncResult as bI, type CreateCollectionParams as bJ, type UpdateCollectionParams as bK, type DeleteCollectionParams as bL, type GetCollectionsParams as bM, type CreateEntryParams as bN, type UpdateEntryParams as bO, type DeleteEntryParams as bP, type CreateFormParams as bQ, type UpdateFormParams as bR, type DeleteFormParams as bS, type GetFormsParams as bT, type GetFormSubmissionsParams as bU, type GetFormSubmissionParams as bV, type UpdateFormSubmissionParams as bW, type CreateTaxonomyParams as bX, type UpdateTaxonomyParams as bY, type DeleteTaxonomyParams as bZ, type GetTaxonomiesParams as b_, type GetSocialCapabilitiesParams as ba, type SocialProviderCapability as bb, type ListSocialAccountsParams as bc, type SocialAccount as bd, type ConnectSocialAccountParams as be, type SocialConnectResponse as bf, type GetSocialOAuthAttemptParams as bg, type SocialOAuthCallbackResponse as bh, type SelectSocialDestinationParams as bi, type DeleteSocialAccountParams as bj, type CreateSocialPublicationParams as bk, type SocialPublicationMutationResponse as bl, type UpdateSocialPublicationParams as bm, type GetSocialPublicationParams as bn, type SocialPublication as bo, type FindSocialPublicationsParams as bp, type ValidateSocialPublicationParams as bq, type SocialPublicationValidation as br, type ScheduleSocialPublicationParams as bs, type CancelSocialPublicationParams as bt, type GetSocialPublicationCommentsParams as bu, type SocialPublicationComment as bv, type SyncSocialPublicationCommentsParams as bw, type GetSocialPublicationCommentThreadParams as bx, type SyncSocialPublicationCommentThreadParams as by, type FindSocialPublicationCommentsParams as bz, type Product as c, type FindCampaignsParams as c$, type EmailTemplate as c0, type UpdateEmailTemplateParams as c1, type DeleteEmailTemplateParams as c2, type GetEmailTemplateParams as c3, type GetEmailTemplatesParams as c4, type PreviewEmailTemplateParams as c5, type PreviewEmailTemplateResponse as c6, type CreateProductParams as c7, type UpdateProductParams as c8, type DeleteProductParams as c9, type GetPromoCodeParams as cA, type GetPromoCodesParams as cB, type CreateContactParams as cC, type Contact as cD, type GetContactParams as cE, type FindContactsParams as cF, type UpdateContactParams as cG, type MergeContactsParams as cH, type ImportContactsParams as cI, type ImportContactsResult as cJ, type CreateContactListParams as cK, type UpdateContactListParams as cL, type ImportContactsIntoContactListParams as cM, type ImportContactsIntoContactListResult as cN, type ImportContactListPreviewParams as cO, type ImportContactsPreviewResult as cP, type AddContactListContactParams as cQ, type ContactListMember as cR, type UpdateContactListContactParams as cS, type RemoveContactListContactParams as cT, type FindContactListContactsParams as cU, type Action as cV, type FindActionsParams as cW, type CreateCampaignParams as cX, type Campaign as cY, type UpdateCampaignParams as cZ, type GetCampaignParams as c_, type UpdateOrderParams as ca, type GetQuoteParams as cb, type ProcessOrderRefundParams as cc, type ProcessOrderRefundResponse as cd, type GetShippingRatesParams as ce, type ShippingRate as cf, type ShipParams as cg, type ShipResult as ch, type RefundShippingLabelParams as ci, type ShippingLabelRefund as cj, type CreateCartParams as ck, type FindCartsParams as cl, type CreateServiceParams as cm, type UpdateServiceParams as cn, type DeleteServiceParams as co, type ServiceProvider as cp, type CreateServiceProviderParams as cq, type UpdateServiceProviderParams as cr, type DeleteServiceProviderParams as cs, type CreateProviderParams as ct, type UpdateProviderParams as cu, type DeleteProviderParams as cv, type CreatePromoCodeParams as cw, type PromoCode as cx, type UpdatePromoCodeParams as cy, type DeletePromoCodeParams as cz, type Provider as d, type CampaignEnrollmentImportResult$1 as d$, type LaunchCampaignParams as d0, type DuplicateCampaignParams as d1, type GetCampaignLaunchReadinessParams as d2, type CampaignLaunchReadiness as d3, type ImportCampaignEnrollmentsParams as d4, type CampaignEnrollmentImportResult as d5, type GenerateOutreachPersonalizedDraftsParams as d6, type FindCampaignEnrollmentsParams as d7, type CampaignEnrollment as d8, type GetCampaignEnrollmentConversationParams as d9, type LeadEmailValidationResult as dA, type CreateWorkflowParams as dB, type Workflow as dC, type UpdateWorkflowParams as dD, type DeleteWorkflowParams as dE, type GetWorkflowParams as dF, type GetWorkflowsParams as dG, type TriggerWorkflowParams as dH, type WorkflowExecution as dI, type GetWorkflowExecutionsParams as dJ, type GetWorkflowExecutionParams as dK, type GetWorkflowAccountsParams as dL, type WorkflowAccount as dM, type GetWorkflowAccountConnectUrlParams as dN, type WorkflowAccountConnectUrl as dO, type DeleteWorkflowAccountParams as dP, type Access as dQ, type AccountToken as dR, type ActionContext as dS, type ActionData as dT, type ApiResponse as dU, type AvailabilitySlot as dV, type BlockSchema as dW, type BlockSchemaProperties as dX, type BlockSchemaType as dY, type BookingOrderItemStatus as dZ, type BuildHookType as d_, type CampaignEnrollmentConversationResponse as da, type UpdateCampaignEnrollmentParams as db, type UpdateCampaignEnrollmentDraftParams as dc, type UpdateCampaignEnrollmentStepExecutionParams as dd, type ReplyCampaignEnrollmentParams as de, type StopCampaignEnrollmentParams as df, type FindCampaignMessagesParams as dg, type CampaignMessage as dh, type UpdateCampaignMessageParams as di, type CreateSuppressionParams as dj, type Suppression as dk, type UpdateSuppressionParams as dl, type GetSuppressionParams as dm, type FindSuppressionsParams as dn, type CreateLeadResearchRunParams as dp, type LeadResearchRun as dq, type FindLeadResearchRunsParams as dr, type GetLeadResearchRunParams as ds, type UpdateLeadResearchRunParams as dt, type CancelLeadResearchRunParams as du, type SendLeadResearchMessageParams as dv, type SendLeadResearchMessageResult as dw, type FindLeadResearchMessagesParams as dx, type LeadResearchMessage as dy, type ValidateLeadEmailParams as dz, type AvailabilityResponse as e, type FulfillmentOrderRequestStatus as e$, type CampaignEnrollmentImportSource as e0, type CampaignEnrollmentStatus as e1, type CampaignManualTaskOutcome as e2, type CampaignMessageCopySource as e3, type CampaignMessageDirection as e4, type CampaignMessageStatus as e5, type CampaignMessageType as e6, type CampaignRoute as e7, type CampaignStatus as e8, type CartOrigin as e9, type CustomsItem as eA, type DaySlots as eB, type DigitalAccessGrant as eC, type DigitalAccessGrantStatus as eD, type DigitalAsset as eE, type DigitalAssetStatus as eF, type DigitalAssetType as eG, type DigitalDeliveryPolicy as eH, type Discount as eI, type DiscountAllocation as eJ, type EmailTemplateStatus as eK, type EmailTemplateVariable as eL, type EntryBlockQuery as eM, type EntryStatus as eN, type EshopItem as eO, type EshopQuoteItem as eP, type EshopStoreState as eQ, type Event as eR, type EventAction as eS, type ExecutionStatus as eT, type FieldOperation as eU, type FormFieldType as eV, type FormSchema as eW, type FormSchemaType as eX, type FormStatus as eY, type FulfillmentOrder as eZ, type FulfillmentOrderLine as e_, type CartStatus as ea, type ChannelMessage as eb, type ChannelType as ec, type CheckoutPaymentAction as ed, type CollectionStatus as ee, type Condition as ef, type ConditionValue as eg, type ContactChannel as eh, type ContactListContentAccess as ei, type ContactListContentAccessStatus as ej, type ContactListContentAccessTarget as ek, type ContactListMembership as el, type ContactListMembershipPayment as em, type ContactListMembershipProvider as en, type ContactListMembershipProviderCancellation as eo, type ContactListMembershipProviderCancellationError as ep, type ContactListMembershipProviderCancellationStatus as eq, type ContactListMembershipStatus as er, type ContactListPlan as es, type ContactListPlanStatus as et, type ContactListSource as eu, type ContactListStatus as ev, type ContactListType as ew, type ContactStatus as ex, type Coordinates as ey, type CustomsDeclaration as ez, type OrderQuote as f, type OutreachThreadMode as f$, type FulfillmentOrderStatus as f0, type GalleryItem as f1, type GeoLocation as f2, type GeoLocationBlock as f3, type HistoryEntry as f4, type ImportContactListRowResult as f5, type ImportContactRowError as f6, type ImportContactRowInput as f7, type ImportContactRowResult as f8, type ImportContactsPreviewParams as f9, type OpportunitySource as fA, type OpportunityStage as fB, type OpportunityType as fC, type OrderCancellationReason as fD, type OrderCheckoutCompatibleItemInput as fE, type OrderFulfillmentStatus as fF, type OrderItem as fG, type OrderItemFulfillmentStatus as fH, type OrderItemSnapshot as fI, type OrderItemStatus as fJ, type OrderPayment as fK, type OrderPaymentPromoCode as fL, type OrderPaymentProvider as fM, type OrderPaymentRefund as fN, type OrderPaymentStatus as fO, type OrderPaymentSummaryStatus as fP, type OrderPaymentTax as fQ, type OrderPaymentTaxLine as fR, type OrderQuoteCompatibleItemInput as fS, type OrderQuoteItemInput as fT, type OrderShipping as fU, type OrderStatus as fV, type OutreachPersonalizationCounters as fW, type OutreachPersonalizationState as fX, type OutreachPersonalizationStatus as fY, type OutreachStep as fZ, type OutreachStepType as f_, type ImportFieldMapping as fa, type ImportPreviewRow as fb, type InstagramPlacement as fc, type InventoryLevel as fd, type Language as fe, type LeadEmailClassification as ff, type LeadInsight as fg, type LeadResearchMessageRole as fh, type LeadResearchRunStatus as fi, type LeadScores as fj, type LeadValidationCheck as fk, type LeadValidationCheckStatus as fl, type LineMoneySnapshot as fm, type MailboxConnectionSecurity as fn, type MailboxPreset as fo, type MailboxStatus as fp, type MailboxSyncStatus as fq, type ManualTaskContinueBehavior as fr, type MediaRef as fs, type MediaResolution as ft, type MerchantCredit as fu, type MerchantCreditReason as fv, type MerchantCreditStatus as fw, type MerchantRecovery as fx, type MerchantRecoveryStatus as fy, type NodeResult as fz, type PaymentMethod as g, type SocialPublicationCommentReplyError as g$, type Parcel as g0, type PaymentCaptureMethod as g1, PaymentMethodType as g2, type PaymentStoreConfig as g3, type PaymentTransaction as g4, type PaymentTransactionProvider as g5, type PaymentTransactionStatus as g6, type PaymentTransactionType as g7, type ProductInventory as g8, type ProductLineItem as g9, type Shipment as gA, type ShipmentLine as gB, type ShippingLabelAdjustment as gC, type ShippingLabelAdjustmentStatus as gD, type ShippingLabelProviderPurchase as gE, type ShippingLabelProviderRefund as gF, type ShippingLabelPurchase as gG, type ShippingLabelPurchaseError as gH, type ShippingLabelPurchaseStatus as gI, type ShippingLabelRefundStatus as gJ, type ShippingLine as gK, type ShippingMethod as gL, type ShippingStatus as gM, type ShippingWeightTier as gN, type Slot as gO, type SlotRange as gP, type SmtpImapMailboxProvider as gQ, type SocialAnalyticsCapabilities as gR, type SocialDestinationMetadata as gS, type SocialEngagementCapabilities as gT, type SocialOAuthCallbackStatus as gU, type SocialOAuthCredential as gV, type SocialOAuthDestinationOption as gW, type SocialProviderType as gX, type SocialPublicationCommentIntent as gY, type SocialPublicationCommentPriority as gZ, type SocialPublicationCommentReply as g_, type ProductLineItemSnapshot as ga, type ProductQuoteItemInput as gb, type ProductQuoteLine as gc, type ProductQuoteLineAvailability as gd, type ProductStatus as ge, type PromoCodeStatus as gf, type PromoCodeValidation as gg, type ProviderAvailability as gh, type ProviderStatus as gi, type ProviderTimelinePoint as gj, type ProviderWithTimeline as gk, type PurchaseLabelResult as gl, type QuoteLine as gm, type RefundLine as gn, type RefundStatus as go, type RefundType as gp, type ResearchContactListMember as gq, type ServiceCheckoutPart as gr, type ServiceDuration as gs, type ServiceLineItem as gt, type ServiceLineItemSnapshot as gu, type ServiceQuoteItem as gv, type ServiceQuoteItemInput as gw, type ServiceQuoteLine as gx, type ServiceQuoteLineAvailability as gy, type ServiceStatus as gz, type ProductCheckoutItemInput as h, type BlockType as h$, type SocialPublicationCommentReplyStatus as h0, type SocialPublicationCommentStatus as h1, type SocialPublicationContent as h2, type SocialPublicationStatus as h3, type SpecificDate as h4, type StoreMembership as h5, type StoreSubscription as h6, type StoreSubscriptionPayment as h7, type StoreSubscriptionProvider as h8, type StoreSubscriptionProviderError as h9, type TrustedServiceCheckoutItemInput as hA, type ValidationError as hB, type WebhookEventSubscription as hC, type WorkflowAccountProfile as hD, type WorkflowAccountType as hE, type WorkflowDeployWebhookNode as hF, type WorkflowEdge as hG, type WorkflowGoogleDriveUploadNode as hH, type WorkflowHttpMethod as hI, type WorkflowHttpNode as hJ, type WorkflowLoopNode as hK, type WorkflowNode as hL, type WorkflowStatus as hM, type WorkflowSwitchNode as hN, type WorkflowSwitchRule as hO, type WorkflowTransformNode as hP, type WorkflowTriggerNode as hQ, type WorkingDay as hR, type WorkingHour as hS, type YoutubePrivacy as hT, type Zone as hU, type AccountAddress as hV, type AccountApiToken as hW, type AccountLifecycle as hX, type ActionDevice as hY, type ActionLocation as hZ, type ActionSession as h_, type StoreSubscriptionProviderLifecycle as ha, type StoreSubscriptionProviderLifecycleStatus as hb, type StoreSubscriptionProviderOperation as hc, type StoreSubscriptionSource as hd, type StoreSubscriptionStatus as he, type SubscriptionPrice as hf, type SuppressionReason as hg, type SuppressionScopeType as hh, type SuppressionSource as hi, type SuppressionStatus as hj, type SuppressionTargetType as hk, type SystemTemplateKey as hl, type TaxLine as hm, type TaxLineReversal as hn, type TaxonomyEntry as ho, type TaxonomyField as hp, type TaxonomyFieldQuery as hq, type TaxonomyQuery as hr, type TaxonomySchema as hs, type TaxonomySchemaType as ht, type TaxonomyStatus as hu, type TiktokPrivacy as hv, type TimelinePoint as hw, type TrustedOrderCheckoutCompatibleItemInput as hx, type TrustedOrderCheckoutItemInput as hy, type TrustedProductCheckoutItemInput as hz, type ServiceCheckoutItemInput as i, type ContactChannelConsentStatus as i0, type ContactInfo as i1, type ContactSessionToken$1 as i2, type ContactVerificationCode$1 as i3, type CreateProductVariantInput as i4, type FacebookPageContent as i5, type GeoLocationBlockProperties as i6, type GetAnalyticsHealthParams as i7, type GetAnalyticsParams as i8, type GetDeliveryStatsParams as i9, type InstagramBusinessContent as ia, type IntervalPeriod as ib, type LoginAccountParams as ic, type LogoutParams as id, type OrderCheckoutParams as ie, type OrderRefundError as ig, type PaymentTaxLine as ih, type PreviewEmailTemplateWarning as ii, type PriceProvider as ij, type PromoUsage$1 as ik, type SearchOrderServiceItemsParams as il, type ServiceProviderInput as im, type SetContactEmailParams as io, type SetupAnalyticsParams as ip, type SocialActionAuthor as iq, type StoreEmails as ir, type StoreRole as is, type SubscriptionAction as it, type SubscriptionInterval as iu, type TiktokAccountContent as iv, type TimeRange as iw, type UpdateProductVariantInput as ix, type XAccountContent as iy, type YoutubeChannelContent as iz, type ContactDetail as j, type Store as k, type Collection as l, type GetEntryParams as m, type GetEntriesParams as n, type PaginatedResponse as o, type GetFormParams as p, type SubmitFormParams as q, type FormSubmission as r, type GetTaxonomyParams as s, type GetTaxonomyChildrenParams as t, type GetProductParams as u, type GetProductsParams as v, type GetCurrentCartParams as w, type GetCartParams as x, type AddCartItemParams as y, type RemoveCartItemParams as z };
|
|
5097
|
+
export { type FindDigitalAccessGrantsParams as $, type AvailabilityResponse as A, type Block as B, type CollectionEntry as C, type GetProductParams as D, type EshopCartItem as E, type Form as F, type GetCollectionParams as G, type GetProductsParams as H, type InventoryLevel as I, type GetServiceParams as J, type GetServicesParams as K, type FindServiceProvidersParams as L, type Market as M, type GetAvailabilityParams as N, type OrderMoney as O, type Product as P, type GetProviderParams as Q, type RequestOptions as R, type Service as S, type Taxonomy as T, type GetProvidersParams as U, type GetOrderParams as V, type Order as W, type GetOrdersParams as X, type DownloadDigitalAccessParams as Y, type ZoneLocation as Z, type DigitalAccessDownloadResponse as _, type FormValues as a, type CreatePortalSessionParams as a$, type DigitalAccessGrant as a0, type GetDigitalAccessGrantParams as a1, type ProductVariant as a2, type OrderCheckoutItemInput as a3, type GetContactListParams as a4, type StorefrontContactList as a5, type FindStorefrontContactListsParams as a6, type FindStorefrontContactListPlansParams as a7, type StorefrontContactListPlan as a8, type FindStorefrontContactListMembershipsParams as a9, type DeleteAccountParams as aA, type GetMeParams as aB, type Account as aC, type SearchAccountsParams as aD, type AccountApiToken as aE, type CreateAccountApiTokenParams as aF, type AccountApiTokenCreated as aG, type UpdateAccountApiTokenParams as aH, type AccountSession as aI, type AuthCodeVerifyParams as aJ, type AuthToken as aK, type CreateStoreParams as aL, type UpdateStoreParams as aM, type GetStoreParams as aN, type GetStoresParams as aO, type GetStoreSubscriptionParams as aP, type StoreSubscription as aQ, type GetSubscriptionPlansParams as aR, type SubscriptionPlan as aS, type CreateStoreSubscriptionActionParams as aT, type StoreSubscriptionAction as aU, type FindStoreSubscriptionActionsParams as aV, type GetStoreSubscriptionActionParams as aW, type RetryStoreSubscriptionActionParams as aX, type FindStoreSubscriptionActionEffectsParams as aY, type StoreSubscriptionEffect as aZ, type GetStoreSubscriptionActionEffectParams as a_, type StorefrontContactListMembership as aa, type SubscribeContactListParams as ab, type ContactListSubscribeResponse as ac, type ContactListAccessParams as ad, type ContactListAccessResponse as ae, type ContactListContentAccessParams as af, type ContactListContentAccessResponse as ag, type ContactListManagementResponse as ah, type Store as ai, type Location as aj, type FormValue as ak, type HttpClientConfig as al, type AuthStorage as am, type ContactSessionIssued as an, type VerificationChallengeResponse as ao, type GetCurrentCartParams as ap, type GetCartParams as aq, type UpdateCartParams as ar, type AddCartItemParams as as, type RemoveCartItemParams as at, type ClearCartParams as au, type QuoteCartParams as av, type CheckoutCartParams as aw, type HttpClient as ax, type UpdateAccountContactParams as ay, type AccountUpdateResponse as az, type Provider as b, type GetSocialPublicationParams as b$, type AddMemberParams as b0, type FindStoreMembersParams as b1, type StoreMember as b2, type StoreMembership as b3, type RemoveMemberParams as b4, type ListBuildHooksParams as b5, type BuildHook as b6, type CreateBuildHookParams as b7, type UpdateBuildHookParams as b8, type DeleteBuildHookParams as b9, type EmailSendResult as bA, type GetEmailDeliveryParams as bB, type EmailDelivery as bC, type RetryEmailDeliveryParams as bD, type ConnectGoogleMailboxParams as bE, type GoogleMailboxConnectUrl as bF, type CreateMailboxParams as bG, type Mailbox as bH, type UpdateMailboxParams as bI, type GetMailboxParams as bJ, type TestMailboxParams as bK, type TestMailboxResult as bL, type PrepareMailboxParams as bM, type FindMailboxesParams as bN, type GetSocialCapabilitiesParams as bO, type SocialProviderCapability as bP, type ListSocialConnectionsParams as bQ, type SocialConnection as bR, type ConnectSocialConnectionParams as bS, type SocialConnectResponse as bT, type GetSocialOAuthAttemptParams as bU, type SocialOAuthCallbackResponse as bV, type SelectSocialDestinationParams as bW, type DeleteSocialConnectionParams as bX, type CreateSocialPublicationParams as bY, type SocialPublicationMutationResponse as bZ, type UpdateSocialPublicationParams as b_, type TestWebhookParams as ba, type TestWebhookResponse as bb, type ListWebhooksParams as bc, type Webhook as bd, type CreateWebhookParams as be, type UpdateWebhookParams as bf, type DeleteWebhookParams as bg, type CreateLocationParams as bh, type UpdateLocationParams as bi, type DeleteLocationParams as bj, type CreateMarketParams as bk, type UpdateMarketParams as bl, type DeleteMarketParams as bm, type ListPaymentProvidersParams as bn, type PaymentProvider as bo, type RefreshPaymentProvidersParams as bp, type ConnectStripePaymentProviderParams as bq, type StripePaymentProviderConnectResponse as br, type DeletePaymentProviderParams as bs, type GetMediaParams as bt, type Media as bu, type UploadStoreMediaParams as bv, type DeleteStoreMediaParams as bw, type GetStoreMediaParams as bx, type UpdateMediaParams as by, type EmailSendRequest as bz, type ServiceProvider as c, type OrderRefund as c$, type SocialPublication as c0, type FindSocialPublicationsParams as c1, type ValidateSocialPublicationParams as c2, type SocialPublicationValidation as c3, type ScheduleSocialPublicationParams as c4, type CancelSocialPublicationParams as c5, type GetSocialPublicationCommentsParams as c6, type SocialPublicationComment as c7, type SyncSocialPublicationCommentsParams as c8, type GetSocialPublicationCommentThreadParams as c9, type CreateFormParams as cA, type UpdateFormParams as cB, type DeleteFormParams as cC, type GetFormsParams as cD, type GetFormSubmissionsParams as cE, type GetFormSubmissionParams as cF, type UpdateFormSubmissionParams as cG, type CreateTaxonomyParams as cH, type UpdateTaxonomyParams as cI, type DeleteTaxonomyParams as cJ, type GetTaxonomiesParams as cK, type CreateEmailTemplateParams as cL, type EmailTemplate as cM, type UpdateEmailTemplateParams as cN, type DeleteEmailTemplateParams as cO, type GetEmailTemplateParams as cP, type GetEmailTemplatesParams as cQ, type PreviewEmailTemplateParams as cR, type PreviewEmailTemplateResponse as cS, type CreateProductParams as cT, type UpdateProductParams as cU, type DeleteProductParams as cV, type UpdateOrderParams as cW, type GetQuoteParams as cX, type CreateOrderRefundParams as cY, type CreateOrderRefundResponse as cZ, type GetOrderRefundParams as c_, type SyncSocialPublicationCommentThreadParams as ca, type FindSocialPublicationCommentsParams as cb, type ClassifySocialPublicationCommentsParams as cc, type SocialPublicationCommentClassificationResult as cd, type CreateSocialCommentReplyParams as ce, type SocialPublicationCommentReplyResponse as cf, type ListSocialCommentRepliesParams as cg, type SocialCommentReply as ch, type GetSocialCommentReplyParams as ci, type RetrySocialCommentReplyParams as cj, type ListSocialPublicationEffectsParams as ck, type SocialPublicationEffect as cl, type GetSocialPublicationEffectParams as cm, type GetSocialPublicationMetricsParams as cn, type SocialPublicationMetricSnapshot as co, type SyncSocialPublicationMetricsParams as cp, type SyncSocialEngagementParams as cq, type SocialPublicationEngagementSyncResult as cr, type CreateCollectionParams as cs, type UpdateCollectionParams as ct, type DeleteCollectionParams as cu, type GetCollectionsParams as cv, type CreateEntryParams as cw, type UpdateEntryParams as cx, type DeleteEntryParams as cy, type GetEntryParams as cz, type OrderQuote as d, type UpdateContactListParams as d$, type FindOrderRefundsParams as d0, type RetryOrderRefundParams as d1, type GetOrderPaymentParams as d2, type OrderPayment as d3, type RetryPaymentTransactionParams as d4, type PaymentTransaction as d5, type FindPaymentTransactionsParams as d6, type GetPaymentTransactionParams as d7, type ActivateDigitalAccessGrantParams as d8, type RevokeDigitalAccessGrantParams as d9, type DeleteServiceParams as dA, type CreateServiceProviderParams as dB, type UpdateServiceProviderParams as dC, type DeleteServiceProviderParams as dD, type CreateProviderParams as dE, type UpdateProviderParams as dF, type DeleteProviderParams as dG, type CreatePromoCodeParams as dH, type PromoCode as dI, type UpdatePromoCodeParams as dJ, type DeletePromoCodeParams as dK, type GetPromoCodeParams as dL, type GetPromoCodesParams as dM, type CreateContactParams as dN, type Contact as dO, type GetContactParams as dP, type FindContactsParams as dQ, type UpdateContactParams as dR, type MergeContactsParams as dS, type ImportContactsParams as dT, type ImportContactsResult as dU, type FindContactSessionsParams as dV, type ContactSessionRecord as dW, type RevokeContactSessionParams as dX, type RevokeAllContactSessionsParams as dY, type CreateContactListParams as dZ, type ContactList as d_, type GetShippingRatesParams as da, type ShippingRate as db, type CreateShipmentParams as dc, type CreateShipmentResponse as dd, type GetShipmentParams as de, type Shipment as df, type FindShipmentsParams as dg, type RetryShipmentParams as dh, type FindFulfillmentOrdersParams as di, type FulfillmentOrder as dj, type GetFulfillmentOrderParams as dk, type RequestShippingLabelRefundParams as dl, type ShippingLabelRefund as dm, type GetShippingLabelRefundParams as dn, type FindShippingLabelRefundsParams as dp, type RetryShippingLabelRefundParams as dq, type FindShippingLabelAdjustmentsParams as dr, type ShippingLabelAdjustment as ds, type FindShippingLabelSettlementsParams as dt, type ShippingLabelSettlement as du, type RetryShippingLabelSettlementParams as dv, type CreateCartParams as dw, type FindCartsParams as dx, type CreateServiceParams as dy, type UpdateServiceParams as dz, type Currency as e, type GetLeadResearchRunParams as e$, type FindContactListsParams as e0, type ImportContactsIntoContactListParams as e1, type ImportContactsIntoContactListResult as e2, type ImportContactListPreviewParams as e3, type ImportContactsPreviewResult as e4, type AddContactListContactParams as e5, type ContactListMember as e6, type UpdateContactListContactParams as e7, type RemoveContactListContactParams as e8, type FindContactListContactsParams as e9, type LaunchCampaignParams as eA, type DuplicateCampaignParams as eB, type GetCampaignLaunchReadinessParams as eC, type CampaignLaunchReadiness as eD, type ImportCampaignEnrollmentsParams as eE, type CampaignEnrollmentImportResult as eF, type GenerateOutreachPersonalizedDraftsParams as eG, type FindCampaignEnrollmentsParams as eH, type CampaignEnrollment as eI, type GetCampaignEnrollmentConversationParams as eJ, type CampaignEnrollmentConversationResponse as eK, type UpdateCampaignEnrollmentParams as eL, type UpdateCampaignEnrollmentDraftParams as eM, type UpdateCampaignEnrollmentStepExecutionParams as eN, type ReplyCampaignEnrollmentParams as eO, type StopCampaignEnrollmentParams as eP, type FindCampaignMessagesParams as eQ, type CampaignMessage as eR, type UpdateCampaignMessageParams as eS, type CreateSuppressionParams as eT, type Suppression as eU, type UpdateSuppressionParams as eV, type GetSuppressionParams as eW, type FindSuppressionsParams as eX, type CreateLeadResearchRunParams as eY, type LeadResearchRun as eZ, type FindLeadResearchRunsParams as e_, type CreateContactListPlanParams as ea, type ContactListPlan as eb, type UpdateContactListPlanParams as ec, type GetContactListPlanParams as ed, type FindContactListPlansParams as ee, type RetryContactListPlanCatalogParams as ef, type RefundContactListMembershipParams as eg, type RefundContactListMembershipResult as eh, type FindContactListMembershipPaymentAttemptsParams as ei, type ContactListMembershipPaymentAttempt as ej, type GetContactListMembershipPaymentAttemptParams as ek, type FindContactListMembershipRefundsParams as el, type ContactListMembershipRefund as em, type GetContactListMembershipRefundParams as en, type RetryContactListMembershipRefundParams as eo, type FindContactListMembershipCancellationsParams as ep, type ContactListMembershipCancellation as eq, type GetContactListMembershipCancellationParams as er, type RetryContactListMembershipCancellationParams as es, type Action as et, type FindActionsParams as eu, type CreateCampaignParams as ev, type Campaign as ew, type UpdateCampaignParams as ex, type GetCampaignParams as ey, type FindCampaignsParams as ez, type PaymentMethod as f, type PaymentTransactionProvider as f$, type UpdateLeadResearchRunParams as f0, type CancelLeadResearchRunParams as f1, type SendLeadResearchMessageParams as f2, type SendLeadResearchMessageResult as f3, type FindLeadResearchMessagesParams as f4, type LeadResearchMessage as f5, type ValidateLeadEmailParams as f6, type LeadEmailValidationResult as f7, type CreateWorkflowParams as f8, type Workflow as f9, type SocialConnectionProviderData as fA, type SocialConnectionType as fB, type InstagramPlacement as fC, type SocialAnalyticsCapabilities as fD, type SocialEngagementCapabilities as fE, type SocialPublicationCommentIntent as fF, type SocialPublicationCommentPriority as fG, type SocialCommentReplyError as fH, type SocialCommentReplyEvidence as fI, type SocialCommentReplyStatus as fJ, type SocialPublicationCommentStatus as fK, type SocialPublicationContent as fL, type SocialPublicationEffectError as fM, type SocialPublicationEffectEvidence as fN, type SocialPublicationEffectRequest as fO, type SocialPublicationEffectStatus as fP, type SocialPublicationStatus as fQ, type TiktokPrivacy as fR, type ValidationError as fS, type YoutubePrivacy as fT, type OrderFinancialSummary as fU, type PaymentProviderConnection as fV, type PaymentProviderConnectionError as fW, type PaymentProviderConnectionStatus as fX, type OrderPaymentTax as fY, type OrderPaymentTaxLine as fZ, type OrderPaymentPromoCode as f_, type UpdateWorkflowParams as fa, type DeleteWorkflowParams as fb, type GetWorkflowParams as fc, type GetWorkflowsParams as fd, type TriggerWorkflowParams as fe, type WorkflowExecution as ff, type GetWorkflowExecutionsParams as fg, type GetWorkflowExecutionParams as fh, type GetWorkflowEffectsParams as fi, type WorkflowEffect as fj, type GetWorkflowEffectParams as fk, type GetWorkflowConnectionsParams as fl, type WorkflowConnection as fm, type GetWorkflowConnectionConnectUrlParams as fn, type WorkflowConnectionConnectUrl as fo, type DeleteWorkflowConnectionParams as fp, type CartOrigin as fq, type CartStatus as fr, type EshopStoreState as fs, type WebhookEventSubscription as ft, type BuildHookType as fu, type SocialDestinationMetadata as fv, type SocialOAuthCallbackStatus as fw, type SocialOAuthDestinationOption as fx, type SocialConnectionCredential as fy, type SocialConnectionData as fz, type SlotRange as g, type WorkflowEffectType as g$, type PaymentTransactionRequestType as g0, type PaymentTransactionType as g1, type PaymentTransactionStatus as g2, type RefundStatus as g3, type CheckoutPaymentAction as g4, type StoreSubscriptionActionError as g5, type StoreSubscriptionActionRequest as g6, type StoreSubscriptionActionResult as g7, type StoreSubscriptionActionStatus as g8, type StoreSubscriptionEffectError as g9, type MediaResolution as gA, type Coordinates as gB, type ProviderWithTimeline as gC, type BlockSchema as gD, type BlockSchemaProperties as gE, type BlockSchemaType as gF, type EntryBlockQuery as gG, type MediaRef as gH, type FieldOperation as gI, type WorkflowNode as gJ, type WorkflowEdge as gK, type WorkflowTriggerNode as gL, type WorkflowHttpNode as gM, type WorkflowDeployWebhookNode as gN, type WorkflowGoogleDriveUploadNode as gO, type WorkflowConnectionData as gP, type WorkflowConnectionType as gQ, type GoogleDriveWorkflowConnectionData as gR, type GoogleDriveWorkflowProfile as gS, type WorkflowSwitchNode as gT, type WorkflowSwitchRule as gU, type WorkflowTransformNode as gV, type WorkflowLoopNode as gW, type WorkflowHttpMethod as gX, type WorkflowEffectEvidence as gY, type WorkflowEffectError as gZ, type WorkflowEffectStatus as g_, type StoreSubscriptionEffectStatus as ga, type StoreSubscriptionEffectType as gb, type StoreSubscriptionPayment as gc, type StoreSubscriptionStatus as gd, type SubscriptionPlanFeature as ge, type SubscriptionPlanFeatureType as gf, type SubscriptionPrice as gg, type ContactListMembershipCancellationSafeError as gh, type ContactListMembershipCancellationStatus as gi, type ContactListMembershipCancellationType as gj, type ContactListMembershipPaymentAttemptSafeError as gk, type ContactListMembershipPaymentAttemptStatus as gl, type ContactListMembershipPaymentAttemptType as gm, type ContactListMembershipRefundSafeError as gn, type ContactListMembershipRefundStatus as go, type ContactListMembershipRefundType as gp, type StorefrontContactListType as gq, type StorefrontContactListPaymentAttemptSummary as gr, type ShippingMethod as gs, type ShippingWeightTier as gt, type Zone as gu, type GeoLocation as gv, type PromoCodeValidation as gw, type Language as gx, type Access as gy, type MediaSize as gz, type FormEntry as h, type OrderCancellationReason as h$, type WorkflowExecutionInput as h0, type ExecutionStatus as h1, type NodeResult as h2, type ContactListType as h3, type ContactListPlanCatalogSafeError as h4, type ContactListPlanCatalogStatus as h5, type ContactListPlanCatalogType as h6, type ContactListPlanStatus as h7, type ContactListContentAccess as h8, type ContactListContentAccessStatus as h9, type ServiceDuration as hA, type ProviderTimelinePoint as hB, type TimelinePoint as hC, type WorkingHour as hD, type WorkingDay as hE, type SpecificDate as hF, type OrderItem as hG, type OrderItemSnapshot as hH, type ProductLineItem as hI, type ServiceLineItem as hJ, type ProductLineItemSnapshot as hK, type ServiceLineItemSnapshot as hL, type DiscountAllocation as hM, type TaxLine as hN, type LineMoneySnapshot as hO, type OrderItemFulfillmentStatus as hP, type BookingOrderItemStatus as hQ, type QuoteLine as hR, type ProductQuoteLine as hS, type ServiceQuoteLine as hT, type ProductQuoteLineAvailability as hU, type ServiceQuoteLineAvailability as hV, type OrderItemStatus as hW, type OrderStatus as hX, type OrderPaymentSummaryStatus as hY, type OrderFulfillmentStatus as hZ, type OrderPaymentStatus as h_, type ContactListContentAccessTarget as ha, type ContactListManagementContactList as hb, type ContactListManagementMembership as hc, type Event as hd, type EventAction as he, type ShippingStatus as hf, type ShippingProvider as hg, type ShippingRateLine as hh, type ShippingLine as hi, type FulfillmentOrderStatus as hj, type FulfillmentOrderRequestStatus as hk, type FulfillmentOrderLine as hl, type OrderFulfillmentSummary as hm, type Parcel as hn, type ShippingLabelStatus as ho, type ShippingLabelRefundStatus as hp, type ShippingLabelRefundReconciliationStatus as hq, type ShippingLabelAdjustmentStatus as hr, type ShippingLabelSettlementDirection as hs, type ShippingLabelSettlementStatus as ht, type ShippingLabelSettlementType as hu, type ShipmentAllocationStatus as hv, type ShipmentLine as hw, type CustomsItem as hx, type CustomsDeclaration as hy, type GeoLocationBlock as hz, type Price as i, type ServiceStatus as i$, type HistoryEntry as i0, type DigitalAccessGrantStatus as i1, type ProductInventory as i2, type DigitalAssetType as i3, type DigitalAssetStatus as i4, type DigitalDeliveryPolicy as i5, type DigitalAsset as i6, type GalleryItem as i7, type EmailTemplateType as i8, type EmailRecipients as i9, type ContactListMembership as iA, type MailboxConnectionSecurity as iB, type MailboxPreset as iC, type MailboxSyncStatus as iD, type GoogleMailboxProvider as iE, type SmtpImapMailboxProviderInput as iF, type SmtpImapMailboxProvider as iG, type OutreachStep as iH, type OutreachStepType as iI, type ManualTaskContinueBehavior as iJ, type CampaignManualTaskOutcome as iK, type OutreachPersonalizationCounters as iL, type OutreachPersonalizationState as iM, type CampaignLaunchState as iN, type CampaignEnrollmentImportResult$1 as iO, type LeadResearchRunStatus as iP, type LeadScores as iQ, type LeadInsight as iR, type CampaignRoute as iS, type ChannelMessage as iT, type LeadEmailClassification as iU, type LeadValidationCheck as iV, type LeadValidationCheckStatus as iW, type LeadResearchMessageRole as iX, type ResearchContactListMember as iY, type Discount as iZ, type Condition as i_, type EmailSend as ia, type EmailSendDeliveryResult as ib, type EmailDeliveryError as ic, type EmailDeliveryErrorKind as id, type EmailDeliveryStatus as ie, type EmailDeliveryType as ig, type EmailSendTemplateData as ih, type FormSchemaType as ii, type FormFieldType as ij, type TaxonomyEntry as ik, type TaxonomyQuery as il, type TaxonomySchema as im, type TaxonomySchemaType as io, type TaxonomyField as ip, type TaxonomyFieldQuery as iq, type ContactSessionRecord$1 as ir, type ContactSessionStatus$1 as is, type ContactChannel as it, type ChannelType as iu, type OpportunityStage as iv, type OpportunityType as iw, type OpportunitySource as ix, type ActionData as iy, type ActionContext as iz, type OrderCheckoutResult as j, type InstagramBusinessContent as j$, type ProviderStatus as j0, type ProductStatus as j1, type ContactStatus as j2, type ContactListStatus as j3, type ContactListSource as j4, type ContactListMembershipStatus as j5, type MailboxStatus as j6, type CampaignStatus as j7, type CampaignLaunchStatus as j8, type CampaignEnrollmentStatus as j9, type ProviderAvailability as jA, type Slot as jB, type ConditionValue as jC, type ProductQuoteItemInput as jD, type ServiceQuoteItemInput as jE, type OrderQuoteItemInput as jF, type TrustedProductCheckoutItemInput as jG, type TrustedServiceCheckoutItemInput as jH, type TrustedOrderCheckoutItemInput as jI, type SystemTemplateKey as jJ, type ImportFieldMapping as jK, type ImportPreviewRow as jL, type ImportContactsPreviewParams as jM, type WebhookDeliveryStatus as jN, type ContactListPlanPriceInput as jO, type ImportContactRowInput as jP, type ImportContactRowError as jQ, type ImportContactRowResult as jR, type ImportContactListRowResult as jS, type MarketZoneInput as jT, type CreateProductVariantInput as jU, type UpdateProductVariantInput as jV, type ProductInventoryInput as jW, type IntervalPeriod as jX, type SubscriptionInterval as jY, type PriceProvider as jZ, type FacebookPageContent as j_, type CampaignEnrollmentImportSource as ja, type CampaignMessageCopySource as jb, type CampaignMessageDirection as jc, type CampaignMessageType as jd, type CampaignMessageStatus as je, type OutreachPersonalizationStatus as jf, type OutreachThreadMode as jg, type SuppressionStatus as jh, type SuppressionTargetType as ji, type SuppressionScopeType as jj, type SuppressionReason as jk, type SuppressionSource as jl, type WorkflowStatus as jm, type MutableWorkflowStatus as jn, type WorkflowSendEmailNode as jo, type PromoCodeStatus as jp, type CollectionStatus as jq, type EntryStatus as jr, type EmailTemplateStatus as js, type EmailTemplateVariable as jt, type EmailTemplateVariableSource as ju, type FormStatus as jv, type TaxonomyStatus as jw, PaymentMethodType as jx, type AvailabilitySlot as jy, type DaySlots as jz, type Address as k, type YoutubeChannelContent as k0, type TiktokAccountContent as k1, type XAccountContent as k2, type StoreEmails as k3, type BlockType as k4, type GeoLocationBlockProperties as k5, type AccountApiTokenStatus as k6, type AccountLifecycle as k7, type GoogleMailboxProfile as k8, type TimeRange as k9, type PromoUsage$1 as ka, type ContactChannelConsentStatus as kb, type ActionLocation as kc, type ActionDevice as kd, type ActionSession as ke, type SocialActionAuthor as kf, type OrderCheckoutParams as kg, type LoginAccountParams as kh, type GetAnalyticsParams as ki, type GetAnalyticsHealthParams as kj, type GetDeliveryStatsParams as kk, type StoreRole as kl, type AccountSortField as km, type ServiceProviderInput as kn, type SearchOrderServiceItemsParams as ko, type PreviewEmailTemplateWarning as kp, type LogoutParams as kq, type SetupAnalyticsParams as kr, type ContactInfo as ks, type SetContactEmailParams as kt, type Cart as l, type FormSchema as m, type FormField as n, type ProductCheckoutItemInput as o, type ServiceCheckoutItemInput as p, type PaymentStoreConfig as q, type Contact$1 as r, type Collection as s, type GetEntriesParams as t, type PaginatedResponse as u, type GetFormParams as v, type SubmitFormParams as w, type FormSubmission as x, type GetTaxonomyParams as y, type GetTaxonomyChildrenParams as z };
|