arky-sdk 0.9.13 → 0.9.16
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-C-ZTxvz3.d.ts +1544 -0
- package/dist/admin-Dm2WRN6q.d.cts +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-D37IpMSq.d.cts} +1417 -665
- package/dist/{api-DvsFdOaF.d.ts → api-D37IpMSq.d.ts} +1417 -665
- 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-DdN96PX3.d.cts} +6 -4
- package/dist/{index-BC06yiuv.d.cts → inventory-Dh1RevEb.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,22 +219,24 @@ 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" | "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
|
-
type TiktokPrivacy = "public" | "friends" | "private";
|
|
256
240
|
type InstagramPlacement = "feed" | "reel" | "story";
|
|
257
241
|
interface FacebookPageContent {
|
|
258
242
|
type: "facebook_page";
|
|
@@ -274,18 +258,12 @@ interface YoutubeChannelContent {
|
|
|
274
258
|
video_media_id: string;
|
|
275
259
|
privacy: YoutubePrivacy;
|
|
276
260
|
}
|
|
277
|
-
interface TiktokAccountContent {
|
|
278
|
-
type: "tiktok_account";
|
|
279
|
-
caption?: string | null;
|
|
280
|
-
video_media_id: string;
|
|
281
|
-
privacy: TiktokPrivacy;
|
|
282
|
-
}
|
|
283
261
|
interface XAccountContent {
|
|
284
262
|
type: "x_account";
|
|
285
263
|
text?: string | null;
|
|
286
264
|
media_ids: string[];
|
|
287
265
|
}
|
|
288
|
-
type SocialPublicationContent = FacebookPageContent | InstagramBusinessContent | YoutubeChannelContent |
|
|
266
|
+
type SocialPublicationContent = FacebookPageContent | InstagramBusinessContent | YoutubeChannelContent | XAccountContent;
|
|
289
267
|
interface ValidationError {
|
|
290
268
|
field: string;
|
|
291
269
|
error: string;
|
|
@@ -298,7 +276,7 @@ interface SocialPublicationValidation {
|
|
|
298
276
|
interface SocialPublication {
|
|
299
277
|
id: string;
|
|
300
278
|
store_id: string;
|
|
301
|
-
|
|
279
|
+
social_connection_id: string;
|
|
302
280
|
key: string;
|
|
303
281
|
status: SocialPublicationStatus;
|
|
304
282
|
content: SocialPublicationContent;
|
|
@@ -319,26 +297,14 @@ interface SocialPublicationMutationResponse {
|
|
|
319
297
|
publish_requested: boolean;
|
|
320
298
|
}
|
|
321
299
|
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
300
|
type SocialPublicationCommentIntent = "lead" | "support" | "complaint" | "question" | "praise" | "spam" | "general";
|
|
335
301
|
type SocialPublicationCommentPriority = "urgent" | "high" | "normal" | "low";
|
|
336
302
|
interface SocialPublicationComment {
|
|
337
303
|
id: string;
|
|
338
304
|
store_id: string;
|
|
339
305
|
publication_id: string;
|
|
340
|
-
|
|
341
|
-
|
|
306
|
+
social_connection_id: string;
|
|
307
|
+
type: SocialConnectionType;
|
|
342
308
|
provider_post_id?: string | null;
|
|
343
309
|
provider_comment_id: string;
|
|
344
310
|
provider_parent_comment_id?: string | null;
|
|
@@ -358,13 +324,6 @@ interface SocialPublicationComment {
|
|
|
358
324
|
author_provider_user_id?: string | null;
|
|
359
325
|
text: string;
|
|
360
326
|
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
327
|
provider_created_at?: number | null;
|
|
369
328
|
last_synced_at: number;
|
|
370
329
|
replied_at?: number | null;
|
|
@@ -383,21 +342,126 @@ interface SocialPublicationMetricSnapshot {
|
|
|
383
342
|
id: string;
|
|
384
343
|
store_id: string;
|
|
385
344
|
publication_id: string;
|
|
386
|
-
|
|
387
|
-
|
|
345
|
+
social_connection_id: string;
|
|
346
|
+
type: SocialConnectionType;
|
|
388
347
|
provider_post_id?: string | null;
|
|
389
348
|
metrics: Record<string, number>;
|
|
390
349
|
collected_at: number;
|
|
391
350
|
created_at: number;
|
|
392
351
|
updated_at: number;
|
|
393
352
|
}
|
|
394
|
-
|
|
353
|
+
type SocialCommentReplyStatus = "requested" | "processing" | "succeeded" | "rejected" | "failed" | "unknown";
|
|
354
|
+
type SocialCommentReplyError = {
|
|
355
|
+
type: "provider_call_not_started";
|
|
356
|
+
message: string;
|
|
357
|
+
at: number;
|
|
358
|
+
} | {
|
|
359
|
+
type: "provider_rejected";
|
|
360
|
+
message: string;
|
|
361
|
+
provider_code?: string | null;
|
|
362
|
+
provider_status?: number | null;
|
|
363
|
+
at: number;
|
|
364
|
+
} | {
|
|
365
|
+
type: "unknown_outcome";
|
|
366
|
+
message: string;
|
|
367
|
+
at: number;
|
|
368
|
+
};
|
|
369
|
+
interface SocialCommentReplyEvidence {
|
|
395
370
|
provider_comment_id: string;
|
|
396
371
|
provider_comment_url?: string | null;
|
|
397
372
|
}
|
|
373
|
+
interface SocialCommentReply {
|
|
374
|
+
id: string;
|
|
375
|
+
store_id: string;
|
|
376
|
+
publication_id: string;
|
|
377
|
+
comment_id: string;
|
|
378
|
+
social_connection_id: string;
|
|
379
|
+
text: string;
|
|
380
|
+
status: SocialCommentReplyStatus;
|
|
381
|
+
requested_at: number;
|
|
382
|
+
processing_started_at?: number | null;
|
|
383
|
+
processing_deadline_at?: number | null;
|
|
384
|
+
completed_at?: number | null;
|
|
385
|
+
evidence?: SocialCommentReplyEvidence | null;
|
|
386
|
+
error?: SocialCommentReplyError | null;
|
|
387
|
+
}
|
|
398
388
|
interface SocialPublicationCommentReplyResponse {
|
|
399
389
|
comment: SocialPublicationComment;
|
|
400
|
-
reply:
|
|
390
|
+
reply: SocialCommentReply;
|
|
391
|
+
}
|
|
392
|
+
type SocialPublicationEffectStatus = "requested" | "processing" | "succeeded" | "rejected" | "failed" | "unknown";
|
|
393
|
+
type SocialPublicationEffectError = {
|
|
394
|
+
type: "provider_call_not_started";
|
|
395
|
+
message: string;
|
|
396
|
+
at: number;
|
|
397
|
+
} | {
|
|
398
|
+
type: "provider_rejected";
|
|
399
|
+
message: string;
|
|
400
|
+
provider_code?: string | null;
|
|
401
|
+
provider_status?: number | null;
|
|
402
|
+
at: number;
|
|
403
|
+
} | {
|
|
404
|
+
type: "unknown_outcome";
|
|
405
|
+
message: string;
|
|
406
|
+
at: number;
|
|
407
|
+
};
|
|
408
|
+
type SocialPublicationEffectRequest = {
|
|
409
|
+
type: "x_upload_media";
|
|
410
|
+
media_id: string;
|
|
411
|
+
uploaded_media_ids: string[];
|
|
412
|
+
} | {
|
|
413
|
+
type: "x_publish_post";
|
|
414
|
+
uploaded_media_ids: string[];
|
|
415
|
+
} | {
|
|
416
|
+
type: "facebook_create_unpublished_photo";
|
|
417
|
+
media_id: string;
|
|
418
|
+
unpublished_photo_ids: string[];
|
|
419
|
+
} | {
|
|
420
|
+
type: "facebook_publish_post";
|
|
421
|
+
unpublished_photo_ids: string[];
|
|
422
|
+
} | {
|
|
423
|
+
type: "instagram_create_media_container";
|
|
424
|
+
media_id: string;
|
|
425
|
+
placement: InstagramPlacement;
|
|
426
|
+
carousel_item: boolean;
|
|
427
|
+
child_container_ids: string[];
|
|
428
|
+
} | {
|
|
429
|
+
type: "instagram_create_carousel_container";
|
|
430
|
+
child_container_ids: string[];
|
|
431
|
+
} | {
|
|
432
|
+
type: "instagram_publish_container";
|
|
433
|
+
container_id: string;
|
|
434
|
+
container_media_id?: string | null;
|
|
435
|
+
} | {
|
|
436
|
+
type: "youtube_initialize_upload";
|
|
437
|
+
media_id: string;
|
|
438
|
+
} | {
|
|
439
|
+
type: "youtube_upload";
|
|
440
|
+
media_id: string;
|
|
441
|
+
total_bytes: number;
|
|
442
|
+
has_upload_session: boolean;
|
|
443
|
+
};
|
|
444
|
+
interface SocialPublicationEffectEvidence {
|
|
445
|
+
provider_object_id?: string | null;
|
|
446
|
+
provider_object_url?: string | null;
|
|
447
|
+
has_upload_session: boolean;
|
|
448
|
+
upload_total_bytes?: number | null;
|
|
449
|
+
}
|
|
450
|
+
interface SocialPublicationEffect {
|
|
451
|
+
id: string;
|
|
452
|
+
store_id: string;
|
|
453
|
+
publication_id: string;
|
|
454
|
+
social_connection_id: string;
|
|
455
|
+
publication_revision: number;
|
|
456
|
+
sequence: number;
|
|
457
|
+
request: SocialPublicationEffectRequest;
|
|
458
|
+
status: SocialPublicationEffectStatus;
|
|
459
|
+
requested_at: number;
|
|
460
|
+
processing_started_at?: number | null;
|
|
461
|
+
processing_deadline_at?: number | null;
|
|
462
|
+
completed_at?: number | null;
|
|
463
|
+
evidence?: SocialPublicationEffectEvidence | null;
|
|
464
|
+
error?: SocialPublicationEffectError | null;
|
|
401
465
|
}
|
|
402
466
|
interface SocialPublicationEngagementSyncResult {
|
|
403
467
|
publications_scanned: number;
|
|
@@ -425,9 +489,10 @@ interface SocialAnalyticsCapabilities {
|
|
|
425
489
|
read_post_metrics: boolean;
|
|
426
490
|
}
|
|
427
491
|
interface SocialProviderCapability {
|
|
428
|
-
|
|
492
|
+
type: SocialConnectionType;
|
|
429
493
|
display_name: string;
|
|
430
494
|
icon_key: string;
|
|
495
|
+
publishing_supported: boolean;
|
|
431
496
|
required_scopes: string[];
|
|
432
497
|
media_requirements: string[];
|
|
433
498
|
engagement: SocialEngagementCapabilities;
|
|
@@ -437,17 +502,17 @@ interface SocialConnectResponse {
|
|
|
437
502
|
authorization_url: string;
|
|
438
503
|
state: string;
|
|
439
504
|
}
|
|
440
|
-
type SocialOAuthCallbackStatus = "
|
|
505
|
+
type SocialOAuthCallbackStatus = "connected" | "selection_required";
|
|
441
506
|
interface SocialOAuthDestinationOption extends SocialDestinationMetadata {
|
|
442
507
|
candidate_id: string;
|
|
443
508
|
}
|
|
444
509
|
interface SocialOAuthCallbackResponse {
|
|
445
510
|
status: SocialOAuthCallbackStatus;
|
|
446
511
|
store_id: string;
|
|
447
|
-
|
|
512
|
+
type: SocialConnectionType;
|
|
448
513
|
account_id: string;
|
|
449
514
|
attempt_id?: string | null;
|
|
450
|
-
|
|
515
|
+
social_connection_id?: string | null;
|
|
451
516
|
destination?: SocialDestinationMetadata | null;
|
|
452
517
|
options: SocialOAuthDestinationOption[];
|
|
453
518
|
message: string;
|
|
@@ -458,44 +523,65 @@ interface BuildHook {
|
|
|
458
523
|
store_id: string;
|
|
459
524
|
key: string;
|
|
460
525
|
type: BuildHookType;
|
|
526
|
+
/** Write-only endpoint; API responses contain a redacted placeholder. */
|
|
461
527
|
url: string;
|
|
528
|
+
/** Header values are write-only and redacted in API responses. */
|
|
462
529
|
headers: Record<string, string>;
|
|
463
530
|
active: boolean;
|
|
464
531
|
created_at: number;
|
|
465
532
|
updated_at: number;
|
|
466
533
|
}
|
|
467
|
-
interface
|
|
534
|
+
interface SocialConnection {
|
|
468
535
|
id: string;
|
|
469
536
|
store_id: string;
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
credential: SocialOAuthCredential;
|
|
473
|
-
destination: SocialDestinationMetadata;
|
|
537
|
+
type: SocialConnectionType;
|
|
538
|
+
data: SocialConnectionData;
|
|
474
539
|
created_at: number;
|
|
475
540
|
updated_at: number;
|
|
476
541
|
}
|
|
542
|
+
type PaymentProviderConnectionStatus = "requested" | "processing" | "succeeded" | "rejected" | "failed" | "unknown";
|
|
543
|
+
type PaymentProviderConnectionError = {
|
|
544
|
+
type: "provider_rejected";
|
|
545
|
+
message: string;
|
|
546
|
+
at: number;
|
|
547
|
+
} | {
|
|
548
|
+
type: "provider_call_not_started";
|
|
549
|
+
message: string;
|
|
550
|
+
at: number;
|
|
551
|
+
} | {
|
|
552
|
+
type: "unknown_outcome";
|
|
553
|
+
message: string;
|
|
554
|
+
at: number;
|
|
555
|
+
};
|
|
556
|
+
interface PaymentProviderConnection {
|
|
557
|
+
status: PaymentProviderConnectionStatus;
|
|
558
|
+
revision: number;
|
|
559
|
+
attempts: number;
|
|
560
|
+
requested_at: number;
|
|
561
|
+
processing_started_at?: number | null;
|
|
562
|
+
completed_at?: number | null;
|
|
563
|
+
error?: PaymentProviderConnectionError | null;
|
|
564
|
+
}
|
|
477
565
|
interface PaymentProvider {
|
|
478
566
|
id: string;
|
|
479
567
|
store_id: string;
|
|
480
568
|
key: string;
|
|
481
569
|
provider: {
|
|
482
570
|
type: "stripe";
|
|
483
|
-
onboarding_status:
|
|
571
|
+
onboarding_status: "pending" | "submitted" | "complete";
|
|
484
572
|
charges_enabled: boolean;
|
|
485
573
|
payouts_enabled: boolean;
|
|
486
574
|
details_submitted: boolean;
|
|
487
|
-
application_fee_bps?: number | null;
|
|
488
|
-
currency: string;
|
|
489
575
|
};
|
|
576
|
+
connection: PaymentProviderConnection;
|
|
490
577
|
created_at: number;
|
|
491
578
|
updated_at: number;
|
|
492
579
|
}
|
|
493
580
|
interface PaymentStoreConfig {
|
|
494
581
|
provider: "stripe";
|
|
495
582
|
publishable_key: string;
|
|
496
|
-
|
|
583
|
+
connected_account_id: string;
|
|
497
584
|
}
|
|
498
|
-
type StoreRuntimeConfig = PaymentStoreConfig | [] | null;
|
|
499
585
|
interface StripePaymentProviderConnectResponse {
|
|
500
586
|
provider: PaymentProvider;
|
|
501
587
|
onboarding_url: string;
|
|
@@ -558,22 +644,6 @@ interface DigitalAsset {
|
|
|
558
644
|
external_url?: string | null;
|
|
559
645
|
status: DigitalAssetStatus;
|
|
560
646
|
}
|
|
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
647
|
interface ProductVariant {
|
|
578
648
|
id: string;
|
|
579
649
|
sku?: string;
|
|
@@ -708,9 +778,8 @@ interface ProductLineItem {
|
|
|
708
778
|
variant_id: string;
|
|
709
779
|
quantity: number;
|
|
710
780
|
cancelled_quantity: number;
|
|
781
|
+
allocated_quantity: number;
|
|
711
782
|
fulfilled_quantity: number;
|
|
712
|
-
returned_quantity: number;
|
|
713
|
-
refunded_quantity: number;
|
|
714
783
|
location_id?: string;
|
|
715
784
|
snapshot: ProductLineItemSnapshot;
|
|
716
785
|
status: OrderItemStatus;
|
|
@@ -727,7 +796,6 @@ interface ServiceLineItem {
|
|
|
727
796
|
quantity: number;
|
|
728
797
|
cancelled_quantity: number;
|
|
729
798
|
fulfilled_quantity: number;
|
|
730
|
-
refunded_quantity: number;
|
|
731
799
|
forms: FormEntry[];
|
|
732
800
|
snapshot: ServiceLineItemSnapshot;
|
|
733
801
|
status: OrderItemStatus;
|
|
@@ -738,6 +806,14 @@ interface ServiceLineItem {
|
|
|
738
806
|
type OrderItem = ProductLineItem | ServiceLineItem;
|
|
739
807
|
type OrderPaymentSummaryStatus = "unpaid" | "pending" | "authorized" | "partially_paid" | "paid" | "partially_refunded" | "refunded" | "failed" | "voided" | "expired";
|
|
740
808
|
type OrderFulfillmentStatus = "unfulfilled" | "scheduled" | "on_hold" | "in_progress" | "partially_fulfilled" | "fulfilled" | "incomplete" | "not_required";
|
|
809
|
+
interface OrderFulfillmentSummary {
|
|
810
|
+
status: OrderFulfillmentStatus;
|
|
811
|
+
required_quantity: number;
|
|
812
|
+
allocated_quantity: number;
|
|
813
|
+
fulfilled_quantity: number;
|
|
814
|
+
open_order_count: number;
|
|
815
|
+
updated_at: number;
|
|
816
|
+
}
|
|
741
817
|
interface HistoryEntry {
|
|
742
818
|
action: string;
|
|
743
819
|
reason?: string;
|
|
@@ -746,6 +822,7 @@ interface HistoryEntry {
|
|
|
746
822
|
type DigitalAccessGrantStatus = "pending" | "active" | "exhausted" | "revoked" | "expired";
|
|
747
823
|
interface DigitalAccessGrant {
|
|
748
824
|
id: string;
|
|
825
|
+
store_id: string;
|
|
749
826
|
order_id: string;
|
|
750
827
|
order_item_id: string;
|
|
751
828
|
product_id: string;
|
|
@@ -754,15 +831,16 @@ interface DigitalAccessGrant {
|
|
|
754
831
|
asset_id: string;
|
|
755
832
|
asset_name_snapshot: string;
|
|
756
833
|
type: DigitalAssetType;
|
|
757
|
-
access_url?: string | null;
|
|
758
|
-
storage_ref?: string | null;
|
|
759
834
|
status: DigitalAccessGrantStatus;
|
|
760
835
|
delivery_policy_snapshot: DigitalDeliveryPolicy;
|
|
761
836
|
download_limit?: number | null;
|
|
837
|
+
access_expires_after_days_snapshot?: number | null;
|
|
762
838
|
download_count: number;
|
|
763
839
|
expires_at?: number | null;
|
|
764
840
|
granted_at?: number | null;
|
|
765
841
|
revoked_at?: number | null;
|
|
842
|
+
created_at: number;
|
|
843
|
+
updated_at: number;
|
|
766
844
|
}
|
|
767
845
|
interface DigitalAccessDownloadResponse {
|
|
768
846
|
url: string;
|
|
@@ -786,10 +864,13 @@ interface FulfillmentOrderLine {
|
|
|
786
864
|
id: string;
|
|
787
865
|
order_item_id: string;
|
|
788
866
|
quantity: number;
|
|
867
|
+
allocated_quantity: number;
|
|
789
868
|
fulfilled_quantity: number;
|
|
869
|
+
remaining_quantity: number;
|
|
790
870
|
}
|
|
791
871
|
interface FulfillmentOrder {
|
|
792
872
|
id: string;
|
|
873
|
+
store_id: string;
|
|
793
874
|
order_id: string;
|
|
794
875
|
assigned_location_id: string;
|
|
795
876
|
status: FulfillmentOrderStatus;
|
|
@@ -803,6 +884,7 @@ interface FulfillmentOrder {
|
|
|
803
884
|
}
|
|
804
885
|
interface Order {
|
|
805
886
|
id: string;
|
|
887
|
+
revision: number;
|
|
806
888
|
number: string;
|
|
807
889
|
store_id: string;
|
|
808
890
|
source_cart_id: string;
|
|
@@ -812,14 +894,14 @@ interface Order {
|
|
|
812
894
|
fulfillment_status: OrderFulfillmentStatus;
|
|
813
895
|
verified: boolean;
|
|
814
896
|
items: OrderItem[];
|
|
815
|
-
|
|
897
|
+
payment_id: string;
|
|
898
|
+
money: OrderMoney;
|
|
899
|
+
financial_summary: OrderFinancialSummary;
|
|
900
|
+
fulfillment_summary: OrderFulfillmentSummary;
|
|
816
901
|
shipping_lines: ShippingLine[];
|
|
817
|
-
fulfillment_orders: FulfillmentOrder[];
|
|
818
902
|
shipping_address?: Address;
|
|
819
903
|
billing_address?: Address;
|
|
820
904
|
forms: FormEntry[];
|
|
821
|
-
shipments: Shipment[];
|
|
822
|
-
digital_access_grants: DigitalAccessGrant[];
|
|
823
905
|
history: HistoryEntry[];
|
|
824
906
|
contact_list_id?: string;
|
|
825
907
|
fired_reminders: number[];
|
|
@@ -852,7 +934,7 @@ interface Market {
|
|
|
852
934
|
id: string;
|
|
853
935
|
store_id: string;
|
|
854
936
|
key: string;
|
|
855
|
-
currency:
|
|
937
|
+
currency: Currency;
|
|
856
938
|
tax_mode: "exclusive" | "inclusive";
|
|
857
939
|
payment_methods: PaymentMethod[];
|
|
858
940
|
zones: Zone[];
|
|
@@ -903,6 +985,8 @@ type WebhookEventSubscription = {
|
|
|
903
985
|
event: "order.digital_access_activated";
|
|
904
986
|
} | {
|
|
905
987
|
event: "order.digital_access_downloaded";
|
|
988
|
+
} | {
|
|
989
|
+
event: "order.digital_access_revoked";
|
|
906
990
|
} | {
|
|
907
991
|
event: "order.cancelled";
|
|
908
992
|
} | {
|
|
@@ -955,8 +1039,6 @@ type WebhookEventSubscription = {
|
|
|
955
1039
|
event: "store.created";
|
|
956
1040
|
} | {
|
|
957
1041
|
event: "store.updated";
|
|
958
|
-
} | {
|
|
959
|
-
event: "store.deleted";
|
|
960
1042
|
} | {
|
|
961
1043
|
event: "contact_list.created";
|
|
962
1044
|
} | {
|
|
@@ -969,6 +1051,13 @@ type WebhookEventSubscription = {
|
|
|
969
1051
|
event: "contact_list.contact_confirmed";
|
|
970
1052
|
} | {
|
|
971
1053
|
event: "contact_list.contact_cancelled";
|
|
1054
|
+
} | {
|
|
1055
|
+
event: "contact.created";
|
|
1056
|
+
} | {
|
|
1057
|
+
event: "contact.updated";
|
|
1058
|
+
} | {
|
|
1059
|
+
event: "form_submission.created";
|
|
1060
|
+
form_id?: string;
|
|
972
1061
|
} | {
|
|
973
1062
|
event: "account.updated";
|
|
974
1063
|
};
|
|
@@ -976,114 +1065,170 @@ interface Webhook {
|
|
|
976
1065
|
id: string;
|
|
977
1066
|
store_id: string;
|
|
978
1067
|
key: string;
|
|
1068
|
+
/** Write-only endpoint; API responses contain a redacted placeholder. */
|
|
979
1069
|
url: string;
|
|
980
1070
|
events: WebhookEventSubscription[];
|
|
1071
|
+
/** Header values are write-only and redacted in API responses. */
|
|
981
1072
|
headers: Record<string, string>;
|
|
1073
|
+
/** Write-only signing secret; API responses contain a redacted placeholder. */
|
|
982
1074
|
secret: string;
|
|
983
1075
|
enabled: boolean;
|
|
984
1076
|
created_at: number;
|
|
985
1077
|
updated_at: number;
|
|
986
1078
|
}
|
|
987
1079
|
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";
|
|
1080
|
+
type StoreSubscriptionActionStatus = "requested" | "processing" | "succeeded" | "rejected" | "failed" | "unknown";
|
|
1081
|
+
type StoreSubscriptionActionRequest = {
|
|
1082
|
+
type: "select_plan";
|
|
1083
|
+
data: {
|
|
1084
|
+
plan_id: string;
|
|
1085
|
+
};
|
|
998
1086
|
} | {
|
|
999
|
-
type: "
|
|
1000
|
-
plan_id?: string | null;
|
|
1087
|
+
type: "cancel_at_period_end";
|
|
1001
1088
|
} | {
|
|
1002
1089
|
type: "reactivate";
|
|
1090
|
+
};
|
|
1091
|
+
type StoreSubscriptionActionError = {
|
|
1092
|
+
type: "provider_rejected";
|
|
1093
|
+
data: {
|
|
1094
|
+
effect_id: string;
|
|
1095
|
+
message: string;
|
|
1096
|
+
};
|
|
1003
1097
|
} | {
|
|
1004
|
-
type: "
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1098
|
+
type: "unknown_outcome";
|
|
1099
|
+
data: {
|
|
1100
|
+
effect_id: string;
|
|
1101
|
+
message: string;
|
|
1102
|
+
};
|
|
1008
1103
|
} | {
|
|
1009
|
-
type: "
|
|
1010
|
-
|
|
1011
|
-
|
|
1104
|
+
type: "provider_call_not_started";
|
|
1105
|
+
data: {
|
|
1106
|
+
effect_id: string;
|
|
1107
|
+
message: string;
|
|
1108
|
+
};
|
|
1012
1109
|
};
|
|
1013
|
-
type
|
|
1110
|
+
type StoreSubscriptionActionResult = {
|
|
1111
|
+
type: "checkout";
|
|
1112
|
+
data: {
|
|
1113
|
+
session_id: string;
|
|
1114
|
+
checkout_url: string;
|
|
1115
|
+
expires_at: number;
|
|
1116
|
+
};
|
|
1117
|
+
};
|
|
1118
|
+
interface StoreSubscriptionAction {
|
|
1119
|
+
id: string;
|
|
1120
|
+
subscription_id: string;
|
|
1121
|
+
store_id: string;
|
|
1122
|
+
request: StoreSubscriptionActionRequest;
|
|
1123
|
+
status: StoreSubscriptionActionStatus;
|
|
1124
|
+
error?: StoreSubscriptionActionError | null;
|
|
1125
|
+
result?: StoreSubscriptionActionResult | null;
|
|
1126
|
+
requested_at: number;
|
|
1127
|
+
completed_at?: number | null;
|
|
1128
|
+
updated_at: number;
|
|
1129
|
+
}
|
|
1130
|
+
type StoreSubscriptionEffectType = "create_checkout" | "cancel_at_period_end" | "cancel_immediately" | "reactivate" | "update_plan" | "create_schedule" | "update_schedule";
|
|
1131
|
+
type StoreSubscriptionEffectStatus = StoreSubscriptionActionStatus;
|
|
1132
|
+
type StoreSubscriptionEffectError = {
|
|
1014
1133
|
type: "provider_rejected";
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
at: number;
|
|
1134
|
+
data: {
|
|
1135
|
+
message: string;
|
|
1136
|
+
};
|
|
1019
1137
|
} | {
|
|
1020
1138
|
type: "unknown_outcome";
|
|
1021
|
-
|
|
1022
|
-
|
|
1139
|
+
data: {
|
|
1140
|
+
message: string;
|
|
1141
|
+
};
|
|
1023
1142
|
} | {
|
|
1024
|
-
type: "
|
|
1025
|
-
|
|
1026
|
-
|
|
1143
|
+
type: "provider_call_not_started";
|
|
1144
|
+
data: {
|
|
1145
|
+
message: string;
|
|
1146
|
+
};
|
|
1027
1147
|
};
|
|
1028
|
-
interface
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1148
|
+
interface StoreSubscriptionEffect {
|
|
1149
|
+
id: string;
|
|
1150
|
+
action_id: string;
|
|
1151
|
+
subscription_id: string;
|
|
1152
|
+
store_id: string;
|
|
1153
|
+
sequence: number;
|
|
1154
|
+
type: StoreSubscriptionEffectType;
|
|
1155
|
+
status: StoreSubscriptionEffectStatus;
|
|
1156
|
+
error?: StoreSubscriptionEffectError | null;
|
|
1157
|
+
requested_at: number;
|
|
1158
|
+
processing_started_at?: number | null;
|
|
1159
|
+
completed_at?: number | null;
|
|
1033
1160
|
updated_at: number;
|
|
1034
1161
|
}
|
|
1035
1162
|
interface StoreSubscriptionPayment {
|
|
1036
|
-
currency:
|
|
1163
|
+
currency: Currency;
|
|
1037
1164
|
market: string;
|
|
1038
|
-
provider?: StoreSubscriptionProvider | null;
|
|
1039
1165
|
}
|
|
1040
1166
|
interface StoreSubscription {
|
|
1041
1167
|
id: string;
|
|
1042
|
-
|
|
1168
|
+
store_id: string;
|
|
1043
1169
|
plan_id: string;
|
|
1044
1170
|
pending_plan_id: string | null;
|
|
1045
1171
|
payment: StoreSubscriptionPayment;
|
|
1046
1172
|
status: StoreSubscriptionStatus;
|
|
1047
|
-
provider_lifecycle: StoreSubscriptionProviderLifecycle;
|
|
1048
1173
|
start_date: number;
|
|
1049
1174
|
end_date: number;
|
|
1050
|
-
|
|
1051
|
-
|
|
1175
|
+
created_at: number;
|
|
1176
|
+
updated_at: number;
|
|
1052
1177
|
}
|
|
1053
|
-
type
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1178
|
+
type ContactListMembershipPaymentAttemptStatus = "pending" | "confirming" | "requires_action" | "processing" | "declined" | "failed" | "rejected" | "succeeded" | "expired" | "unknown";
|
|
1179
|
+
type ContactListMembershipPaymentAttemptType = "create_customer" | "create_payment_intent" | "create_subscription" | "confirm_payment_intent";
|
|
1180
|
+
type ContactListMembershipPaymentAttemptSafeError = "payment_rejected" | "invalid_payment_state" | "unknown_outcome";
|
|
1181
|
+
interface ContactListMembershipPaymentAttempt {
|
|
1182
|
+
id: string;
|
|
1183
|
+
store_id: string;
|
|
1184
|
+
contact_list_id: string;
|
|
1185
|
+
membership_id: string;
|
|
1186
|
+
contact_id: string;
|
|
1187
|
+
generation: number;
|
|
1188
|
+
stage: number;
|
|
1189
|
+
type: ContactListMembershipPaymentAttemptType;
|
|
1190
|
+
status: ContactListMembershipPaymentAttemptStatus;
|
|
1191
|
+
plan_id: string;
|
|
1192
|
+
amount: number;
|
|
1193
|
+
currency: Currency;
|
|
1194
|
+
interval?: SubscriptionInterval | null;
|
|
1195
|
+
safe_error?: ContactListMembershipPaymentAttemptSafeError | null;
|
|
1196
|
+
started_at: number;
|
|
1197
|
+
updated_at: number;
|
|
1066
1198
|
}
|
|
1067
|
-
type
|
|
1068
|
-
type
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1199
|
+
type ContactListMembershipRefundStatus = "requested" | "processing" | "succeeded" | "failed" | "rejected" | "unknown";
|
|
1200
|
+
type ContactListMembershipRefundType = "partial" | "full";
|
|
1201
|
+
type ContactListMembershipRefundSafeError = "provider_rejected" | "invalid_refund_state" | "unknown_outcome";
|
|
1202
|
+
interface ContactListMembershipRefund {
|
|
1203
|
+
id: string;
|
|
1204
|
+
store_id: string;
|
|
1205
|
+
contact_list_id: string;
|
|
1206
|
+
membership_id: string;
|
|
1207
|
+
payment_attempt_id: string;
|
|
1208
|
+
revision: number;
|
|
1209
|
+
type: ContactListMembershipRefundType;
|
|
1210
|
+
amount: number;
|
|
1211
|
+
currency: Currency;
|
|
1212
|
+
status: ContactListMembershipRefundStatus;
|
|
1213
|
+
safe_error?: ContactListMembershipRefundSafeError | null;
|
|
1214
|
+
created_at: number;
|
|
1215
|
+
updated_at: number;
|
|
1216
|
+
}
|
|
1217
|
+
type ContactListMembershipCancellationStatus = "requested" | "processing" | "succeeded" | "failed" | "rejected" | "unknown";
|
|
1218
|
+
type ContactListMembershipCancellationType = "at_period_end" | "immediate";
|
|
1219
|
+
type ContactListMembershipCancellationSafeError = "provider_rejected" | "invalid_cancellation_state" | "unknown_outcome";
|
|
1220
|
+
interface ContactListMembershipCancellation {
|
|
1221
|
+
id: string;
|
|
1222
|
+
store_id: string;
|
|
1223
|
+
contact_list_id: string;
|
|
1224
|
+
membership_id: string;
|
|
1225
|
+
payment_attempt_id: string;
|
|
1226
|
+
refund_id?: string | null;
|
|
1227
|
+
revision: number;
|
|
1228
|
+
type: ContactListMembershipCancellationType;
|
|
1229
|
+
status: ContactListMembershipCancellationStatus;
|
|
1230
|
+
safe_error?: ContactListMembershipCancellationSafeError | null;
|
|
1231
|
+
created_at: number;
|
|
1087
1232
|
updated_at: number;
|
|
1088
1233
|
}
|
|
1089
1234
|
interface Store {
|
|
@@ -1092,8 +1237,7 @@ interface Store {
|
|
|
1092
1237
|
timezone: string;
|
|
1093
1238
|
languages?: Language[];
|
|
1094
1239
|
emails?: StoreEmails;
|
|
1095
|
-
|
|
1096
|
-
counts?: Record<string, number>;
|
|
1240
|
+
payment?: PaymentStoreConfig | null;
|
|
1097
1241
|
}
|
|
1098
1242
|
interface EshopStoreState {
|
|
1099
1243
|
store_id: string;
|
|
@@ -1145,22 +1289,53 @@ interface TaxonomyQuery {
|
|
|
1145
1289
|
query: TaxonomyFieldQuery[];
|
|
1146
1290
|
}
|
|
1147
1291
|
type FormSchemaType = "text" | "number" | "boolean" | "date" | "geo_location" | "select";
|
|
1148
|
-
interface
|
|
1292
|
+
interface FormSchemaBase {
|
|
1149
1293
|
id: string;
|
|
1150
1294
|
key: string;
|
|
1151
|
-
|
|
1152
|
-
|
|
1295
|
+
required: boolean;
|
|
1296
|
+
}
|
|
1297
|
+
type FormSchema = (FormSchemaBase & {
|
|
1298
|
+
type: "text";
|
|
1299
|
+
}) | (FormSchemaBase & {
|
|
1300
|
+
type: "number";
|
|
1153
1301
|
min?: number | null;
|
|
1154
1302
|
max?: number | null;
|
|
1155
|
-
|
|
1156
|
-
|
|
1303
|
+
}) | (FormSchemaBase & {
|
|
1304
|
+
type: "boolean";
|
|
1305
|
+
}) | (FormSchemaBase & {
|
|
1306
|
+
type: "date";
|
|
1307
|
+
}) | (FormSchemaBase & {
|
|
1308
|
+
type: "geo_location";
|
|
1309
|
+
}) | (FormSchemaBase & {
|
|
1310
|
+
type: "select";
|
|
1311
|
+
options: string[];
|
|
1312
|
+
});
|
|
1157
1313
|
type FormFieldType = "text" | "number" | "boolean" | "date" | "geo_location" | "select";
|
|
1158
|
-
interface
|
|
1314
|
+
interface FormFieldBase {
|
|
1159
1315
|
id: string;
|
|
1160
1316
|
key: string;
|
|
1161
|
-
type: FormFieldType;
|
|
1162
|
-
value?: any;
|
|
1163
1317
|
}
|
|
1318
|
+
type FormField = (FormFieldBase & {
|
|
1319
|
+
type: "text";
|
|
1320
|
+
value: string;
|
|
1321
|
+
}) | (FormFieldBase & {
|
|
1322
|
+
type: "number";
|
|
1323
|
+
value: number;
|
|
1324
|
+
}) | (FormFieldBase & {
|
|
1325
|
+
type: "boolean";
|
|
1326
|
+
value: boolean;
|
|
1327
|
+
}) | (FormFieldBase & {
|
|
1328
|
+
type: "date";
|
|
1329
|
+
value: number;
|
|
1330
|
+
}) | (FormFieldBase & {
|
|
1331
|
+
type: "geo_location";
|
|
1332
|
+
value: GeoLocation;
|
|
1333
|
+
}) | (FormFieldBase & {
|
|
1334
|
+
type: "select";
|
|
1335
|
+
value: string[];
|
|
1336
|
+
});
|
|
1337
|
+
type FormValue = FormField["value"];
|
|
1338
|
+
type FormValues = Record<string, FormValue | undefined>;
|
|
1164
1339
|
interface FormEntry {
|
|
1165
1340
|
form_id: string;
|
|
1166
1341
|
fields: FormField[];
|
|
@@ -1174,51 +1349,65 @@ interface GeoLocationBlock extends Block {
|
|
|
1174
1349
|
value: GeoLocation | null;
|
|
1175
1350
|
}
|
|
1176
1351
|
type Access = "public" | "private";
|
|
1352
|
+
type MediaSize = "original" | "thumbnail" | "small" | "medium" | "large";
|
|
1177
1353
|
interface MediaResolution {
|
|
1178
1354
|
id: string;
|
|
1179
|
-
size:
|
|
1355
|
+
size: MediaSize;
|
|
1180
1356
|
url: string;
|
|
1181
1357
|
}
|
|
1182
1358
|
interface Media {
|
|
1183
1359
|
id: string;
|
|
1184
|
-
resolutions:
|
|
1185
|
-
[key: string]: MediaResolution;
|
|
1186
|
-
};
|
|
1360
|
+
resolutions: Partial<Record<MediaSize, MediaResolution>>;
|
|
1187
1361
|
mime_type: string;
|
|
1188
1362
|
title?: string | null;
|
|
1189
1363
|
description?: string | null;
|
|
1190
1364
|
alt?: string | null;
|
|
1191
1365
|
store_id: string;
|
|
1192
|
-
entity?: string;
|
|
1193
1366
|
metadata?: string | null;
|
|
1194
1367
|
created_at: number;
|
|
1195
1368
|
slug: Record<string, string>;
|
|
1196
1369
|
}
|
|
1370
|
+
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";
|
|
1371
|
+
interface SubscriptionPlanFeature {
|
|
1372
|
+
limit: number | null;
|
|
1373
|
+
reset: "never" | "monthly";
|
|
1374
|
+
}
|
|
1197
1375
|
interface SubscriptionPlan {
|
|
1198
1376
|
id: string;
|
|
1199
|
-
provider_price_id
|
|
1200
|
-
provider_product_id?: string | null;
|
|
1377
|
+
provider_price_id: string | null;
|
|
1201
1378
|
name: string;
|
|
1202
1379
|
tier: number;
|
|
1203
1380
|
amount: number;
|
|
1204
|
-
currency:
|
|
1205
|
-
interval:
|
|
1381
|
+
currency: Currency;
|
|
1382
|
+
interval: "lifetime" | "month" | "year";
|
|
1206
1383
|
interval_count: number;
|
|
1207
|
-
|
|
1384
|
+
features: Record<SubscriptionPlanFeatureType, SubscriptionPlanFeature>;
|
|
1208
1385
|
}
|
|
1209
|
-
|
|
1386
|
+
type AccountApiTokenStatus = "active" | "revoked" | "expired";
|
|
1387
|
+
interface AccountApiToken {
|
|
1210
1388
|
id: string;
|
|
1211
|
-
|
|
1212
|
-
name
|
|
1389
|
+
token_hint: string;
|
|
1390
|
+
name: string;
|
|
1391
|
+
status: AccountApiTokenStatus;
|
|
1213
1392
|
created_at: number;
|
|
1214
1393
|
expires_at?: number | null;
|
|
1215
|
-
|
|
1394
|
+
revoked_at?: number | null;
|
|
1216
1395
|
}
|
|
1217
1396
|
interface StoreMembership {
|
|
1397
|
+
id: string;
|
|
1218
1398
|
store_id: string;
|
|
1399
|
+
account_id: string;
|
|
1219
1400
|
role: StoreRole;
|
|
1220
|
-
|
|
1401
|
+
status: "invited" | "active";
|
|
1402
|
+
invited_by_account_id?: string | null;
|
|
1403
|
+
invited_at?: number | null;
|
|
1221
1404
|
joined_at?: number | null;
|
|
1405
|
+
created_at: number;
|
|
1406
|
+
updated_at: number;
|
|
1407
|
+
}
|
|
1408
|
+
interface StoreMember {
|
|
1409
|
+
account: Account;
|
|
1410
|
+
membership: StoreMembership;
|
|
1222
1411
|
}
|
|
1223
1412
|
interface AccountLifecycle {
|
|
1224
1413
|
last_login_at?: number | null;
|
|
@@ -1227,32 +1416,27 @@ interface AccountLifecycle {
|
|
|
1227
1416
|
interface Account {
|
|
1228
1417
|
id: string;
|
|
1229
1418
|
email: string;
|
|
1230
|
-
|
|
1231
|
-
api_tokens: AccountToken[];
|
|
1232
|
-
auth_tokens?: AuthToken[];
|
|
1233
|
-
verification_codes?: unknown[];
|
|
1234
|
-
lifecycle?: AccountLifecycle;
|
|
1419
|
+
lifecycle: AccountLifecycle;
|
|
1235
1420
|
}
|
|
1236
1421
|
interface AccountUpdateResponse {
|
|
1237
1422
|
success: boolean;
|
|
1238
|
-
newly_created_tokens: AccountToken[];
|
|
1239
1423
|
}
|
|
1240
|
-
interface
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1424
|
+
interface AccountApiTokenCreated {
|
|
1425
|
+
token: AccountApiToken;
|
|
1426
|
+
value: string;
|
|
1427
|
+
}
|
|
1428
|
+
interface AccountSession {
|
|
1429
|
+
id: string;
|
|
1430
|
+
status: "active" | "revoked" | "expired";
|
|
1431
|
+
access_expires_at: number;
|
|
1432
|
+
refresh_expires_at: number;
|
|
1433
|
+
is_verified: boolean;
|
|
1434
|
+
created_at: number;
|
|
1435
|
+
revoked_at?: number | null;
|
|
1246
1436
|
}
|
|
1247
1437
|
interface PaginatedResponse<T> {
|
|
1248
1438
|
items: T[];
|
|
1249
1439
|
cursor: string | null;
|
|
1250
|
-
data?: T[];
|
|
1251
|
-
meta?: {
|
|
1252
|
-
total: number;
|
|
1253
|
-
page: number;
|
|
1254
|
-
per_page: number;
|
|
1255
|
-
};
|
|
1256
1440
|
}
|
|
1257
1441
|
type ServiceStatus = "active" | "draft" | "archived";
|
|
1258
1442
|
type ProviderStatus = "active" | "draft" | "archived";
|
|
@@ -1267,7 +1451,7 @@ type MailboxStatus = "active" | "draft" | "archived";
|
|
|
1267
1451
|
type MailboxPreset = "gmail" | "zoho" | "microsoft" | "custom";
|
|
1268
1452
|
type MailboxConnectionSecurity = "tls" | "start_tls";
|
|
1269
1453
|
type MailboxSyncStatus = "not_ready" | "ready" | "failed";
|
|
1270
|
-
type
|
|
1454
|
+
type SmtpImapMailboxProviderInput = {
|
|
1271
1455
|
type: "smtp_imap";
|
|
1272
1456
|
preset: MailboxPreset;
|
|
1273
1457
|
smtp_host: string;
|
|
@@ -1277,16 +1461,41 @@ type SmtpImapMailboxProvider = {
|
|
|
1277
1461
|
imap_port: number;
|
|
1278
1462
|
imap_security: MailboxConnectionSecurity;
|
|
1279
1463
|
username: string;
|
|
1280
|
-
password_configured: boolean;
|
|
1281
1464
|
sync_enabled: boolean;
|
|
1282
1465
|
sync_interval_seconds: number;
|
|
1466
|
+
};
|
|
1467
|
+
type SmtpImapMailboxProvider = SmtpImapMailboxProviderInput & {
|
|
1468
|
+
password_configured: boolean;
|
|
1283
1469
|
sync_status?: MailboxSyncStatus;
|
|
1284
1470
|
sync_error?: string | null;
|
|
1285
1471
|
sync_ready_at?: number | null;
|
|
1286
1472
|
last_synced_at?: number | null;
|
|
1287
1473
|
last_seen_uid?: number | null;
|
|
1288
1474
|
};
|
|
1475
|
+
interface GoogleMailboxProfile {
|
|
1476
|
+
external_account_id: string;
|
|
1477
|
+
email: string;
|
|
1478
|
+
display_name: string;
|
|
1479
|
+
avatar_url?: string | null;
|
|
1480
|
+
}
|
|
1481
|
+
type GoogleMailboxProvider = {
|
|
1482
|
+
type: "google";
|
|
1483
|
+
profile: GoogleMailboxProfile;
|
|
1484
|
+
access_configured: boolean;
|
|
1485
|
+
refresh_configured: boolean;
|
|
1486
|
+
token_expires_at?: number | null;
|
|
1487
|
+
token_type?: string | null;
|
|
1488
|
+
scopes: string[];
|
|
1489
|
+
sync_enabled: boolean;
|
|
1490
|
+
sync_interval_seconds: number;
|
|
1491
|
+
sync_status?: MailboxSyncStatus;
|
|
1492
|
+
sync_error?: string | null;
|
|
1493
|
+
sync_ready_at?: number | null;
|
|
1494
|
+
last_synced_at?: number | null;
|
|
1495
|
+
last_history_id?: string | null;
|
|
1496
|
+
};
|
|
1289
1497
|
type CampaignStatus = "draft" | "active" | "paused" | "completed" | "archived";
|
|
1498
|
+
type CampaignLaunchStatus = "idle" | "requested" | "processing" | "succeeded" | "failed";
|
|
1290
1499
|
type CampaignEnrollmentStatus = "pending" | "active" | "action_required" | "replied" | "completed" | "suppressed" | "failed" | "stopped";
|
|
1291
1500
|
type CampaignEnrollmentImportSource = "contact_list" | "contact" | "manual";
|
|
1292
1501
|
type CampaignMessageStatus = "draft" | "scheduled" | "pending" | "sending" | "sent" | "received" | "action_required" | "completed" | "bounced" | "failed" | "unknown" | "skipped" | "stopped" | "superseded";
|
|
@@ -1318,11 +1527,13 @@ type SuppressionTargetType = "email" | "domain" | "contact" | "phone";
|
|
|
1318
1527
|
type SuppressionScopeType = "store" | "campaign";
|
|
1319
1528
|
type SuppressionReason = "manual" | "unsubscribed" | "bounced" | "complained" | "replied";
|
|
1320
1529
|
type SuppressionSource = "admin" | "import" | "reply" | "system";
|
|
1321
|
-
type WorkflowStatus = "active" | "draft" | "archived";
|
|
1530
|
+
type WorkflowStatus = "active" | "draft" | "archived" | "deleting";
|
|
1531
|
+
type MutableWorkflowStatus = Exclude<WorkflowStatus, "deleting">;
|
|
1322
1532
|
type PromoCodeStatus = "active" | "draft" | "archived";
|
|
1323
1533
|
type CollectionStatus = "active" | "draft" | "archived";
|
|
1324
1534
|
type EntryStatus = "active" | "draft" | "archived";
|
|
1325
1535
|
type EmailTemplateStatus = "active" | "draft" | "archived";
|
|
1536
|
+
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
1537
|
type FormStatus = "active" | "draft" | "archived";
|
|
1327
1538
|
type TaxonomyStatus = "active" | "draft" | "archived";
|
|
1328
1539
|
type OrderCancellationReason = "admin_rejected" | "contact_cancelled" | "payment_failed" | "expired" | "other";
|
|
@@ -1457,11 +1668,9 @@ interface EmailTemplate {
|
|
|
1457
1668
|
id: string;
|
|
1458
1669
|
key: string;
|
|
1459
1670
|
store_id: string;
|
|
1671
|
+
type: EmailTemplateType;
|
|
1460
1672
|
subject: Record<string, string>;
|
|
1461
1673
|
body: string;
|
|
1462
|
-
from_name: string;
|
|
1463
|
-
from_email: string;
|
|
1464
|
-
reply_to?: string;
|
|
1465
1674
|
preheader?: string;
|
|
1466
1675
|
variables: EmailTemplateVariable[];
|
|
1467
1676
|
sample_data: Record<string, unknown>;
|
|
@@ -1469,8 +1678,11 @@ interface EmailTemplate {
|
|
|
1469
1678
|
created_at: number;
|
|
1470
1679
|
updated_at: number;
|
|
1471
1680
|
}
|
|
1681
|
+
type EmailTemplateVariableSource = "template" | "system";
|
|
1472
1682
|
interface EmailTemplateVariable {
|
|
1473
1683
|
key: string;
|
|
1684
|
+
required: boolean;
|
|
1685
|
+
source: EmailTemplateVariableSource;
|
|
1474
1686
|
}
|
|
1475
1687
|
interface Form {
|
|
1476
1688
|
id: string;
|
|
@@ -1570,6 +1782,7 @@ interface Workflow {
|
|
|
1570
1782
|
key: string;
|
|
1571
1783
|
store_id: string;
|
|
1572
1784
|
secret: string;
|
|
1785
|
+
trigger_url: string;
|
|
1573
1786
|
status: WorkflowStatus;
|
|
1574
1787
|
nodes: Record<string, WorkflowNode>;
|
|
1575
1788
|
edges: WorkflowEdge[];
|
|
@@ -1577,62 +1790,189 @@ interface Workflow {
|
|
|
1577
1790
|
created_at: number;
|
|
1578
1791
|
updated_at: number;
|
|
1579
1792
|
}
|
|
1580
|
-
type WorkflowNode = WorkflowTriggerNode | WorkflowHttpNode | WorkflowDeployWebhookNode | WorkflowGoogleDriveUploadNode | WorkflowSwitchNode | WorkflowTransformNode | WorkflowLoopNode;
|
|
1581
|
-
interface WorkflowTriggerNode {
|
|
1582
|
-
type: "trigger";
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1793
|
+
type WorkflowNode = WorkflowTriggerNode | WorkflowHttpNode | WorkflowSendEmailNode | WorkflowDeployWebhookNode | WorkflowGoogleDriveUploadNode | WorkflowSwitchNode | WorkflowTransformNode | WorkflowLoopNode;
|
|
1794
|
+
interface WorkflowTriggerNode {
|
|
1795
|
+
type: "trigger";
|
|
1796
|
+
delay_ms?: number;
|
|
1797
|
+
schema?: Block[];
|
|
1798
|
+
}
|
|
1799
|
+
interface WorkflowHttpNodeBase {
|
|
1800
|
+
type: "http";
|
|
1801
|
+
url: string;
|
|
1802
|
+
headers: Record<string, string>;
|
|
1803
|
+
body?: unknown;
|
|
1804
|
+
timeout_ms: number;
|
|
1805
|
+
delay_ms: number;
|
|
1806
|
+
}
|
|
1807
|
+
type WorkflowHttpNode = WorkflowHttpNodeBase & ({
|
|
1808
|
+
method: "get";
|
|
1809
|
+
retries: number;
|
|
1810
|
+
retry_delay_ms: number;
|
|
1811
|
+
} | {
|
|
1812
|
+
method: Exclude<WorkflowHttpMethod, "get">;
|
|
1813
|
+
retries: 0;
|
|
1814
|
+
retry_delay_ms: 0;
|
|
1815
|
+
});
|
|
1816
|
+
type EmailRecipients = string | string[];
|
|
1817
|
+
interface EmailSendTemplateData {
|
|
1818
|
+
store_id: string;
|
|
1819
|
+
mailbox_id: string;
|
|
1820
|
+
template_id: string;
|
|
1821
|
+
recipients: EmailRecipients;
|
|
1822
|
+
vars?: Record<string, unknown>;
|
|
1823
|
+
}
|
|
1824
|
+
type EmailSend = {
|
|
1825
|
+
type: "order_store_notification";
|
|
1826
|
+
data: EmailSendTemplateData;
|
|
1827
|
+
} | {
|
|
1828
|
+
type: "order_contact_notification";
|
|
1829
|
+
data: EmailSendTemplateData;
|
|
1830
|
+
} | {
|
|
1831
|
+
type: "order_reminder_contact";
|
|
1832
|
+
data: EmailSendTemplateData;
|
|
1833
|
+
} | {
|
|
1834
|
+
type: "digital_access_ready_contact";
|
|
1835
|
+
data: EmailSendTemplateData;
|
|
1836
|
+
} | {
|
|
1837
|
+
type: "contact_store_notification";
|
|
1838
|
+
data: EmailSendTemplateData;
|
|
1839
|
+
} | {
|
|
1840
|
+
type: "subscription_confirmation";
|
|
1841
|
+
data: EmailSendTemplateData;
|
|
1842
|
+
};
|
|
1843
|
+
interface EmailSendRequest {
|
|
1844
|
+
send_id: string;
|
|
1845
|
+
send: EmailSend;
|
|
1846
|
+
}
|
|
1847
|
+
type EmailDeliveryErrorKind = "provider_call_not_started" | "provider_rejected" | "unknown_outcome";
|
|
1848
|
+
type EmailDeliveryStatus = "pending" | "sending" | "sent" | "rejected" | "failed" | "unknown" | "skipped";
|
|
1849
|
+
type EmailDeliveryType = {
|
|
1850
|
+
type: "platform_auth_code";
|
|
1851
|
+
data: {
|
|
1852
|
+
account_id: string;
|
|
1853
|
+
challenge_id: string;
|
|
1854
|
+
};
|
|
1855
|
+
} | {
|
|
1856
|
+
type: "store_auth_code";
|
|
1857
|
+
data: {
|
|
1858
|
+
store_id: string;
|
|
1859
|
+
account_id: string;
|
|
1860
|
+
challenge_id: string;
|
|
1861
|
+
};
|
|
1862
|
+
} | {
|
|
1863
|
+
type: "contact_verification";
|
|
1864
|
+
data: {
|
|
1865
|
+
store_id: string;
|
|
1866
|
+
contact_id: string;
|
|
1867
|
+
challenge_id: string;
|
|
1868
|
+
};
|
|
1869
|
+
} | {
|
|
1870
|
+
type: "tenant_mailbox";
|
|
1871
|
+
data: {
|
|
1872
|
+
send_id: string;
|
|
1873
|
+
store_id: string;
|
|
1874
|
+
mailbox_id: string;
|
|
1875
|
+
template_id: string;
|
|
1876
|
+
};
|
|
1877
|
+
} | {
|
|
1878
|
+
type: "campaign_message";
|
|
1879
|
+
data: {
|
|
1880
|
+
store_id: string;
|
|
1881
|
+
campaign_message_id: string;
|
|
1882
|
+
mailbox_id: string;
|
|
1883
|
+
};
|
|
1884
|
+
} | {
|
|
1885
|
+
type: "support_message";
|
|
1886
|
+
data: {
|
|
1887
|
+
store_id: string;
|
|
1888
|
+
support_message_id: string;
|
|
1889
|
+
mailbox_id: string;
|
|
1890
|
+
};
|
|
1891
|
+
};
|
|
1892
|
+
interface EmailDeliveryError {
|
|
1893
|
+
type: EmailDeliveryErrorKind;
|
|
1894
|
+
message: string;
|
|
1895
|
+
}
|
|
1896
|
+
interface EmailDelivery {
|
|
1897
|
+
id: string;
|
|
1898
|
+
revision: number;
|
|
1899
|
+
attempts: number;
|
|
1900
|
+
type: EmailDeliveryType;
|
|
1901
|
+
status: EmailDeliveryStatus;
|
|
1902
|
+
error?: EmailDeliveryError | null;
|
|
1903
|
+
requested_at: number;
|
|
1904
|
+
processing_started_at?: number | null;
|
|
1905
|
+
completed_at?: number | null;
|
|
1906
|
+
sent_at?: number | null;
|
|
1907
|
+
created_at: number;
|
|
1908
|
+
updated_at: number;
|
|
1909
|
+
}
|
|
1910
|
+
interface GetEmailDeliveryParams {
|
|
1911
|
+
delivery_id: string;
|
|
1912
|
+
}
|
|
1913
|
+
interface RetryEmailDeliveryParams {
|
|
1914
|
+
delivery_id: string;
|
|
1915
|
+
revision: number;
|
|
1916
|
+
}
|
|
1917
|
+
interface EmailSendDeliveryResult {
|
|
1918
|
+
delivery_id: string;
|
|
1919
|
+
revision: number;
|
|
1920
|
+
recipient: string;
|
|
1921
|
+
mailbox_id: string;
|
|
1922
|
+
template_id: string;
|
|
1923
|
+
status: EmailDeliveryStatus;
|
|
1924
|
+
error?: EmailDeliveryError | null;
|
|
1925
|
+
provider_message_id?: string | null;
|
|
1926
|
+
provider_thread_id?: string | null;
|
|
1927
|
+
}
|
|
1928
|
+
interface EmailSendResult {
|
|
1929
|
+
sent: number;
|
|
1930
|
+
deliveries: EmailSendDeliveryResult[];
|
|
1586
1931
|
}
|
|
1587
|
-
interface
|
|
1588
|
-
type: "
|
|
1589
|
-
|
|
1590
|
-
url: string;
|
|
1591
|
-
headers?: Record<string, string>;
|
|
1592
|
-
body?: any;
|
|
1593
|
-
timeout_ms?: number;
|
|
1932
|
+
interface WorkflowSendEmailNode {
|
|
1933
|
+
type: "send_email";
|
|
1934
|
+
send: EmailSend;
|
|
1594
1935
|
delay_ms?: number;
|
|
1595
|
-
retries?: number;
|
|
1596
|
-
retry_delay_ms?: number;
|
|
1597
1936
|
}
|
|
1598
1937
|
interface WorkflowDeployWebhookNode {
|
|
1599
1938
|
type: "deploy_webhook";
|
|
1600
1939
|
build_hook_id: string;
|
|
1601
1940
|
timeout_ms?: number;
|
|
1602
1941
|
delay_ms?: number;
|
|
1603
|
-
retries?: number;
|
|
1604
|
-
retry_delay_ms?: number;
|
|
1605
1942
|
}
|
|
1606
|
-
type
|
|
1607
|
-
interface
|
|
1943
|
+
type WorkflowConnectionType = "google_drive";
|
|
1944
|
+
interface GoogleDriveWorkflowProfile {
|
|
1608
1945
|
external_account_id: string;
|
|
1609
1946
|
display_name: string;
|
|
1610
1947
|
email?: string | null;
|
|
1611
1948
|
}
|
|
1612
|
-
interface
|
|
1949
|
+
interface GoogleDriveWorkflowConnectionData {
|
|
1950
|
+
type: "google_drive";
|
|
1951
|
+
connected: boolean;
|
|
1952
|
+
profile: GoogleDriveWorkflowProfile | null;
|
|
1953
|
+
}
|
|
1954
|
+
type WorkflowConnectionData = GoogleDriveWorkflowConnectionData;
|
|
1955
|
+
interface WorkflowConnection {
|
|
1613
1956
|
id: string;
|
|
1614
1957
|
store_id: string;
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
profile: WorkflowAccountProfile;
|
|
1958
|
+
type: WorkflowConnectionType;
|
|
1959
|
+
data: WorkflowConnectionData;
|
|
1618
1960
|
created_at: number;
|
|
1619
1961
|
updated_at: number;
|
|
1620
1962
|
}
|
|
1621
|
-
interface
|
|
1963
|
+
interface WorkflowConnectionConnectUrl {
|
|
1622
1964
|
authorization_url: string;
|
|
1623
1965
|
state: string;
|
|
1624
1966
|
}
|
|
1625
1967
|
interface WorkflowGoogleDriveUploadNode {
|
|
1626
1968
|
type: "google_drive_upload";
|
|
1627
|
-
|
|
1969
|
+
workflow_connection_id: string;
|
|
1628
1970
|
name: string;
|
|
1629
|
-
mime_type
|
|
1630
|
-
content?:
|
|
1971
|
+
mime_type?: string;
|
|
1972
|
+
content?: unknown;
|
|
1631
1973
|
parent_folder_id?: string | null;
|
|
1632
1974
|
timeout_ms?: number;
|
|
1633
1975
|
delay_ms?: number;
|
|
1634
|
-
retries?: number;
|
|
1635
|
-
retry_delay_ms?: number;
|
|
1636
1976
|
}
|
|
1637
1977
|
interface WorkflowSwitchRule {
|
|
1638
1978
|
condition: string;
|
|
@@ -1662,12 +2002,19 @@ interface NodeResult {
|
|
|
1662
2002
|
duration_ms: number;
|
|
1663
2003
|
error?: string;
|
|
1664
2004
|
}
|
|
2005
|
+
type WorkflowExecutionInput = {
|
|
2006
|
+
type: "webhook";
|
|
2007
|
+
payload: unknown;
|
|
2008
|
+
} | {
|
|
2009
|
+
type: "schedule";
|
|
2010
|
+
schedule: string;
|
|
2011
|
+
};
|
|
1665
2012
|
interface WorkflowExecution {
|
|
1666
2013
|
id: string;
|
|
1667
2014
|
workflow_id: string;
|
|
1668
2015
|
store_id: string;
|
|
1669
2016
|
status: ExecutionStatus;
|
|
1670
|
-
input:
|
|
2017
|
+
input: WorkflowExecutionInput;
|
|
1671
2018
|
results: Record<string, NodeResult>;
|
|
1672
2019
|
error?: string;
|
|
1673
2020
|
scheduled_at: number;
|
|
@@ -1676,6 +2023,31 @@ interface WorkflowExecution {
|
|
|
1676
2023
|
created_at: number;
|
|
1677
2024
|
updated_at: number;
|
|
1678
2025
|
}
|
|
2026
|
+
type WorkflowEffectType = "http_mutation" | "deploy_webhook" | "google_drive_upload";
|
|
2027
|
+
type WorkflowEffectStatus = "requested" | "processing" | "succeeded" | "rejected" | "failed" | "unknown";
|
|
2028
|
+
interface WorkflowEffectError {
|
|
2029
|
+
type: "provider_call_not_started" | "provider_rejected" | "unknown_outcome";
|
|
2030
|
+
message: string;
|
|
2031
|
+
at: number;
|
|
2032
|
+
}
|
|
2033
|
+
interface WorkflowEffectEvidence {
|
|
2034
|
+
output: unknown;
|
|
2035
|
+
}
|
|
2036
|
+
interface WorkflowEffect {
|
|
2037
|
+
id: string;
|
|
2038
|
+
store_id: string;
|
|
2039
|
+
workflow_id: string;
|
|
2040
|
+
execution_id: string;
|
|
2041
|
+
node_id: string;
|
|
2042
|
+
type: WorkflowEffectType;
|
|
2043
|
+
status: WorkflowEffectStatus;
|
|
2044
|
+
requested_at: number;
|
|
2045
|
+
processing_started_at?: number | null;
|
|
2046
|
+
completed_at?: number | null;
|
|
2047
|
+
evidence?: WorkflowEffectEvidence | null;
|
|
2048
|
+
error?: WorkflowEffectError | null;
|
|
2049
|
+
updated_at: number;
|
|
2050
|
+
}
|
|
1679
2051
|
type ContactListType = {
|
|
1680
2052
|
type: "standard";
|
|
1681
2053
|
} | {
|
|
@@ -1684,14 +2056,28 @@ type ContactListType = {
|
|
|
1684
2056
|
} | {
|
|
1685
2057
|
type: "paid";
|
|
1686
2058
|
};
|
|
2059
|
+
type ContactListPlanCatalogStatus = "requested" | "processing" | "succeeded" | "failed" | "unknown";
|
|
2060
|
+
type ContactListPlanCatalogType = {
|
|
2061
|
+
type: "create_product";
|
|
2062
|
+
} | {
|
|
2063
|
+
type: "create_price";
|
|
2064
|
+
price_index: number;
|
|
2065
|
+
};
|
|
2066
|
+
type ContactListPlanCatalogSafeError = "provider_rejected" | "invalid_catalog_state" | "unknown_outcome";
|
|
1687
2067
|
interface ContactListPlan {
|
|
1688
2068
|
id: string;
|
|
2069
|
+
store_id: string;
|
|
2070
|
+
contact_list_id: string;
|
|
1689
2071
|
key: string;
|
|
1690
2072
|
name: string;
|
|
1691
2073
|
description?: string | null;
|
|
1692
2074
|
status: ContactListPlanStatus;
|
|
1693
2075
|
prices: SubscriptionPrice[];
|
|
1694
2076
|
payment_provider_id?: string | null;
|
|
2077
|
+
catalog_revision: number;
|
|
2078
|
+
catalog_type: ContactListPlanCatalogType;
|
|
2079
|
+
catalog_status: ContactListPlanCatalogStatus;
|
|
2080
|
+
catalog_safe_error?: ContactListPlanCatalogSafeError | null;
|
|
1695
2081
|
created_at: number;
|
|
1696
2082
|
updated_at: number;
|
|
1697
2083
|
}
|
|
@@ -1709,16 +2095,23 @@ interface ContactListContentAccess {
|
|
|
1709
2095
|
created_at: number;
|
|
1710
2096
|
updated_at: number;
|
|
1711
2097
|
}
|
|
1712
|
-
|
|
2098
|
+
type ContactSessionStatus$1 = "active" | "revoked" | "expired";
|
|
2099
|
+
interface ContactSessionRecord$1 {
|
|
1713
2100
|
id: string;
|
|
1714
|
-
|
|
2101
|
+
store_id: string;
|
|
2102
|
+
contact_id: string;
|
|
2103
|
+
status: ContactSessionStatus$1;
|
|
1715
2104
|
created_at: number;
|
|
2105
|
+
expires_at: number;
|
|
2106
|
+
revoked_at: number | null;
|
|
2107
|
+
last_seen_at: number | null;
|
|
1716
2108
|
}
|
|
1717
|
-
interface
|
|
1718
|
-
|
|
2109
|
+
interface ContactSessionIssued {
|
|
2110
|
+
id: string;
|
|
2111
|
+
token: string;
|
|
2112
|
+
status: ContactSessionStatus$1;
|
|
1719
2113
|
created_at: number;
|
|
1720
|
-
|
|
1721
|
-
store_id?: string | null;
|
|
2114
|
+
expires_at: number;
|
|
1722
2115
|
}
|
|
1723
2116
|
interface PromoUsage$1 {
|
|
1724
2117
|
promo_code_id: string;
|
|
@@ -1753,8 +2146,6 @@ interface Contact$1 {
|
|
|
1753
2146
|
channels: ContactChannel[];
|
|
1754
2147
|
promo_usage: PromoUsage$1[];
|
|
1755
2148
|
taxonomies: TaxonomyEntry[];
|
|
1756
|
-
auth_tokens: ContactSessionToken$1[];
|
|
1757
|
-
verification_codes: ContactVerificationCode$1[];
|
|
1758
2149
|
created_at: number;
|
|
1759
2150
|
updated_at: number;
|
|
1760
2151
|
}
|
|
@@ -1767,9 +2158,32 @@ interface ContactListContentAccessResponse {
|
|
|
1767
2158
|
contact_list?: ContactList | null;
|
|
1768
2159
|
membership?: ContactListMembership | null;
|
|
1769
2160
|
}
|
|
2161
|
+
interface ContactListManagementContactList {
|
|
2162
|
+
id: string;
|
|
2163
|
+
key: string;
|
|
2164
|
+
name: string;
|
|
2165
|
+
description?: string | null;
|
|
2166
|
+
type: ContactListType;
|
|
2167
|
+
content_access: ContactListContentAccess[];
|
|
2168
|
+
}
|
|
2169
|
+
interface ContactListManagementMembership {
|
|
2170
|
+
id: string;
|
|
2171
|
+
status: ContactListMembershipStatus;
|
|
2172
|
+
current_payment_attempt_id?: string | null;
|
|
2173
|
+
source: ContactListSource;
|
|
2174
|
+
start_date: number;
|
|
2175
|
+
end_date: number;
|
|
2176
|
+
created_at: number;
|
|
2177
|
+
updated_at: number;
|
|
2178
|
+
}
|
|
2179
|
+
interface ContactListManagementResponse {
|
|
2180
|
+
has_access: boolean;
|
|
2181
|
+
contact_list: ContactListManagementContactList;
|
|
2182
|
+
membership: ContactListManagementMembership;
|
|
2183
|
+
}
|
|
1770
2184
|
interface ContactListSubscribeResponse {
|
|
1771
|
-
checkout_url?: string | null;
|
|
1772
2185
|
payment_action: CheckoutPaymentAction;
|
|
2186
|
+
payment_attempt?: StorefrontContactListPaymentAttemptSummary | null;
|
|
1773
2187
|
membership?: ContactListMembership | null;
|
|
1774
2188
|
}
|
|
1775
2189
|
interface ContactList {
|
|
@@ -1780,7 +2194,6 @@ interface ContactList {
|
|
|
1780
2194
|
description?: string | null;
|
|
1781
2195
|
status: ContactListStatus;
|
|
1782
2196
|
type: ContactListType;
|
|
1783
|
-
plans: ContactListPlan[];
|
|
1784
2197
|
content_access: ContactListContentAccess[];
|
|
1785
2198
|
source: ContactListSource;
|
|
1786
2199
|
member_count: number;
|
|
@@ -1797,13 +2210,41 @@ interface ContactListMembership {
|
|
|
1797
2210
|
lead_description?: string | null;
|
|
1798
2211
|
lead?: LeadInsight | null;
|
|
1799
2212
|
status: ContactListMembershipStatus;
|
|
2213
|
+
current_payment_attempt_id?: string | null;
|
|
2214
|
+
start_date: number;
|
|
2215
|
+
end_date: number;
|
|
2216
|
+
created_at: number;
|
|
2217
|
+
updated_at: number;
|
|
2218
|
+
}
|
|
2219
|
+
type StorefrontContactListType = "standard" | "confirmation" | "paid";
|
|
2220
|
+
interface StorefrontContactList {
|
|
2221
|
+
id: string;
|
|
2222
|
+
key: string;
|
|
2223
|
+
name: string;
|
|
2224
|
+
description?: string | null;
|
|
2225
|
+
type: StorefrontContactListType;
|
|
2226
|
+
}
|
|
2227
|
+
interface StorefrontContactListPlan {
|
|
2228
|
+
id: string;
|
|
2229
|
+
key: string;
|
|
2230
|
+
name: string;
|
|
2231
|
+
description?: string | null;
|
|
2232
|
+
prices: SubscriptionPrice[];
|
|
2233
|
+
}
|
|
2234
|
+
interface StorefrontContactListPaymentAttemptSummary {
|
|
1800
2235
|
plan_id: string;
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
2236
|
+
amount: number;
|
|
2237
|
+
currency: Currency;
|
|
2238
|
+
interval?: SubscriptionInterval | null;
|
|
2239
|
+
status: ContactListMembershipPaymentAttemptStatus;
|
|
2240
|
+
}
|
|
2241
|
+
interface StorefrontContactListMembership {
|
|
2242
|
+
id: string;
|
|
2243
|
+
status: ContactListMembershipStatus;
|
|
2244
|
+
contact_list: StorefrontContactList;
|
|
2245
|
+
payment_attempt?: StorefrontContactListPaymentAttemptSummary | null;
|
|
1804
2246
|
start_date: number;
|
|
1805
2247
|
end_date: number;
|
|
1806
|
-
token: string;
|
|
1807
2248
|
created_at: number;
|
|
1808
2249
|
updated_at: number;
|
|
1809
2250
|
}
|
|
@@ -1873,8 +2314,8 @@ type ActionData = {
|
|
|
1873
2314
|
} | {
|
|
1874
2315
|
type: "social_comment";
|
|
1875
2316
|
value: {
|
|
1876
|
-
|
|
1877
|
-
|
|
2317
|
+
social_connection_id: string;
|
|
2318
|
+
type: SocialConnectionType;
|
|
1878
2319
|
publication_id: string;
|
|
1879
2320
|
comment_id: string;
|
|
1880
2321
|
provider_comment_id: string;
|
|
@@ -1885,8 +2326,8 @@ type ActionData = {
|
|
|
1885
2326
|
} | {
|
|
1886
2327
|
type: "social_reply";
|
|
1887
2328
|
value: {
|
|
1888
|
-
|
|
1889
|
-
|
|
2329
|
+
social_connection_id: string;
|
|
2330
|
+
type: SocialConnectionType;
|
|
1890
2331
|
publication_id: string;
|
|
1891
2332
|
comment_id: string;
|
|
1892
2333
|
provider_comment_id?: string | null;
|
|
@@ -1911,8 +2352,8 @@ type ActionData = {
|
|
|
1911
2352
|
} | {
|
|
1912
2353
|
type: "direct_message";
|
|
1913
2354
|
value: {
|
|
1914
|
-
|
|
1915
|
-
|
|
2355
|
+
social_connection_id: string;
|
|
2356
|
+
type: SocialConnectionType;
|
|
1916
2357
|
thread_id: string;
|
|
1917
2358
|
message_id: string;
|
|
1918
2359
|
text: string;
|
|
@@ -1954,11 +2395,13 @@ interface Mailbox {
|
|
|
1954
2395
|
email: string;
|
|
1955
2396
|
from_name: string;
|
|
1956
2397
|
reply_to_email?: string | null;
|
|
1957
|
-
provider: SmtpImapMailboxProvider;
|
|
2398
|
+
provider: SmtpImapMailboxProvider | GoogleMailboxProvider;
|
|
1958
2399
|
status: MailboxStatus;
|
|
1959
2400
|
daily_limit: number;
|
|
1960
2401
|
sent_today: number;
|
|
1961
2402
|
last_sent_at?: number | null;
|
|
2403
|
+
sync_revision: number;
|
|
2404
|
+
next_sync_at?: number | null;
|
|
1962
2405
|
created_at: number;
|
|
1963
2406
|
updated_at: number;
|
|
1964
2407
|
}
|
|
@@ -1969,13 +2412,14 @@ interface OutreachStep {
|
|
|
1969
2412
|
type?: OutreachStepType;
|
|
1970
2413
|
}
|
|
1971
2414
|
interface OutreachPersonalizationCounters {
|
|
1972
|
-
|
|
2415
|
+
total_profiles: number;
|
|
1973
2416
|
draft_messages: number;
|
|
1974
2417
|
generated_messages: number;
|
|
1975
2418
|
template_messages: number;
|
|
1976
2419
|
failed_messages: number;
|
|
1977
2420
|
}
|
|
1978
2421
|
interface OutreachPersonalizationState {
|
|
2422
|
+
run_id: string;
|
|
1979
2423
|
status: OutreachPersonalizationStatus;
|
|
1980
2424
|
step_position?: number | null;
|
|
1981
2425
|
contact_ids: string[];
|
|
@@ -1986,6 +2430,14 @@ interface OutreachPersonalizationState {
|
|
|
1986
2430
|
started_at?: number | null;
|
|
1987
2431
|
completed_at?: number | null;
|
|
1988
2432
|
}
|
|
2433
|
+
interface CampaignLaunchState {
|
|
2434
|
+
revision: number;
|
|
2435
|
+
status: CampaignLaunchStatus;
|
|
2436
|
+
requested_at: number | null;
|
|
2437
|
+
processing_started_at: number | null;
|
|
2438
|
+
completed_at: number | null;
|
|
2439
|
+
error: string | null;
|
|
2440
|
+
}
|
|
1989
2441
|
interface Campaign {
|
|
1990
2442
|
id: string;
|
|
1991
2443
|
store_id: string;
|
|
@@ -1993,6 +2445,7 @@ interface Campaign {
|
|
|
1993
2445
|
name: string;
|
|
1994
2446
|
mailbox_ids: string[];
|
|
1995
2447
|
status: CampaignStatus;
|
|
2448
|
+
launch: CampaignLaunchState;
|
|
1996
2449
|
steps: OutreachStep[];
|
|
1997
2450
|
personalization: OutreachPersonalizationState;
|
|
1998
2451
|
launched_at?: number | null;
|
|
@@ -2172,9 +2625,11 @@ interface LeadEmailValidationResult {
|
|
|
2172
2625
|
hard_blockers: string[];
|
|
2173
2626
|
checks: LeadValidationCheck[];
|
|
2174
2627
|
}
|
|
2175
|
-
type LeadResearchMessageRole = "system" | "user" | "assistant" | "action"
|
|
2628
|
+
type LeadResearchMessageRole = "system" | "user" | "assistant" | "action";
|
|
2176
2629
|
interface LeadResearchMessage {
|
|
2177
2630
|
id: string;
|
|
2631
|
+
store_id: string;
|
|
2632
|
+
run_id: string;
|
|
2178
2633
|
role: LeadResearchMessageRole;
|
|
2179
2634
|
content: string;
|
|
2180
2635
|
metadata?: Record<string, unknown> | null;
|
|
@@ -2199,7 +2654,7 @@ type EventAction = {
|
|
|
2199
2654
|
action: "order_payment_received";
|
|
2200
2655
|
data: {
|
|
2201
2656
|
amount: number;
|
|
2202
|
-
currency:
|
|
2657
|
+
currency: Currency;
|
|
2203
2658
|
};
|
|
2204
2659
|
} | {
|
|
2205
2660
|
action: "order_payment_failed";
|
|
@@ -2210,7 +2665,7 @@ type EventAction = {
|
|
|
2210
2665
|
action: "order_refunded";
|
|
2211
2666
|
data: {
|
|
2212
2667
|
amount: number;
|
|
2213
|
-
currency:
|
|
2668
|
+
currency: Currency;
|
|
2214
2669
|
reason?: string;
|
|
2215
2670
|
};
|
|
2216
2671
|
} | {
|
|
@@ -2300,8 +2755,6 @@ type EventAction = {
|
|
|
2300
2755
|
action: "store_created";
|
|
2301
2756
|
} | {
|
|
2302
2757
|
action: "store_updated";
|
|
2303
|
-
} | {
|
|
2304
|
-
action: "store_deleted";
|
|
2305
2758
|
} | {
|
|
2306
2759
|
action: "contact_list_created";
|
|
2307
2760
|
} | {
|
|
@@ -2324,133 +2777,119 @@ interface Event {
|
|
|
2324
2777
|
actor: string;
|
|
2325
2778
|
created_at: number;
|
|
2326
2779
|
}
|
|
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;
|
|
2780
|
+
type ShippingStatus = "pending" | "label_created" | "in_transit" | "out_for_delivery" | "delivered" | "failed" | "returned" | "cancelled";
|
|
2781
|
+
type ShippingProvider = "shippo";
|
|
2782
|
+
interface ShippingRateLine {
|
|
2783
|
+
order_item_id: string;
|
|
2784
|
+
quantity: number;
|
|
2335
2785
|
}
|
|
2336
2786
|
interface ShipmentLine {
|
|
2337
2787
|
order_item_id: string;
|
|
2338
2788
|
fulfillment_order_line_id?: string | null;
|
|
2339
2789
|
quantity: number;
|
|
2340
2790
|
}
|
|
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
|
-
};
|
|
2791
|
+
type ShippingLabelStatus = "requested" | "processing" | "succeeded" | "rejected" | "failed" | "unknown";
|
|
2792
|
+
type ShippingLabelRefundStatus = "requested" | "processing" | "succeeded" | "rejected" | "failed" | "unknown";
|
|
2793
|
+
type ShippingLabelRefundReconciliationStatus = "not_started" | "succeeded" | "conflict";
|
|
2398
2794
|
interface ShippingLabelRefund {
|
|
2399
2795
|
id: string;
|
|
2796
|
+
shipment_id: string;
|
|
2797
|
+
amount: number;
|
|
2798
|
+
currency: Currency;
|
|
2400
2799
|
status: ShippingLabelRefundStatus;
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2800
|
+
revision: number;
|
|
2801
|
+
attempt_count: number;
|
|
2802
|
+
provider_refund_id?: string | null;
|
|
2803
|
+
provider_status?: string | null;
|
|
2804
|
+
credit_settlement_id?: string | null;
|
|
2805
|
+
allocation_reconciliation_status: ShippingLabelRefundReconciliationStatus;
|
|
2806
|
+
allocation_reconciliation_completed_at?: number | null;
|
|
2807
|
+
safe_allocation_reconciliation_error?: string | null;
|
|
2808
|
+
safe_error?: string | null;
|
|
2407
2809
|
requested_at: number;
|
|
2810
|
+
completed_at?: number | null;
|
|
2811
|
+
created_at: number;
|
|
2408
2812
|
updated_at: number;
|
|
2409
2813
|
}
|
|
2410
|
-
type ShippingLabelAdjustmentStatus = "requested" | "
|
|
2814
|
+
type ShippingLabelAdjustmentStatus = "requested" | "processing" | "succeeded" | "rejected" | "failed" | "unknown";
|
|
2411
2815
|
interface ShippingLabelAdjustment {
|
|
2412
2816
|
id: string;
|
|
2413
|
-
|
|
2817
|
+
shipment_id: string;
|
|
2818
|
+
provider_adjustment_id: string;
|
|
2414
2819
|
amount: number;
|
|
2415
|
-
currency:
|
|
2820
|
+
currency: Currency;
|
|
2416
2821
|
reason: string;
|
|
2417
2822
|
status: ShippingLabelAdjustmentStatus;
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
error?: ShippingLabelPurchaseError | null;
|
|
2823
|
+
settlement_id: string;
|
|
2824
|
+
safe_error?: string | null;
|
|
2421
2825
|
created_at: number;
|
|
2422
2826
|
updated_at: number;
|
|
2423
2827
|
}
|
|
2424
|
-
|
|
2828
|
+
type ShippingLabelSettlementDirection = "debit" | "credit";
|
|
2829
|
+
type ShippingLabelSettlementStatus = "requested" | "processing" | "succeeded" | "rejected" | "failed" | "unknown";
|
|
2830
|
+
type ShipmentAllocationStatus = "reserved" | "fulfilled" | "released";
|
|
2831
|
+
type ShippingLabelSettlementType = {
|
|
2832
|
+
type: "purchase_debit";
|
|
2833
|
+
} | {
|
|
2834
|
+
type: "purchase_compensation_credit";
|
|
2835
|
+
} | {
|
|
2836
|
+
type: "refund_credit";
|
|
2837
|
+
refund_id: string;
|
|
2838
|
+
} | {
|
|
2839
|
+
type: "adjustment_debit";
|
|
2840
|
+
adjustment_id: string;
|
|
2841
|
+
} | {
|
|
2842
|
+
type: "adjustment_credit";
|
|
2843
|
+
adjustment_id: string;
|
|
2844
|
+
};
|
|
2845
|
+
interface ShippingLabelSettlement {
|
|
2425
2846
|
id: string;
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2847
|
+
shipment_id: string;
|
|
2848
|
+
type: ShippingLabelSettlementType;
|
|
2849
|
+
direction: ShippingLabelSettlementDirection;
|
|
2850
|
+
amount: number;
|
|
2851
|
+
currency: Currency;
|
|
2852
|
+
status: ShippingLabelSettlementStatus;
|
|
2853
|
+
revision: number;
|
|
2854
|
+
attempt_count: number;
|
|
2855
|
+
provider_object_id?: string | null;
|
|
2856
|
+
provider_status?: string | null;
|
|
2857
|
+
safe_error?: string | null;
|
|
2858
|
+
requested_at: number;
|
|
2859
|
+
completed_at?: number | null;
|
|
2438
2860
|
created_at: number;
|
|
2439
2861
|
updated_at: number;
|
|
2440
2862
|
}
|
|
2441
2863
|
interface Shipment {
|
|
2442
2864
|
id: string;
|
|
2865
|
+
store_id: string;
|
|
2866
|
+
order_id: string;
|
|
2867
|
+
provider: ShippingProvider;
|
|
2443
2868
|
fulfillment_order_id?: string | null;
|
|
2444
2869
|
location_id: string;
|
|
2445
|
-
rate_id
|
|
2870
|
+
rate_id: string;
|
|
2446
2871
|
lines: ShipmentLine[];
|
|
2447
|
-
|
|
2448
|
-
|
|
2872
|
+
allocation_status: ShipmentAllocationStatus;
|
|
2873
|
+
carrier: string;
|
|
2874
|
+
service: string;
|
|
2875
|
+
postage_amount: number;
|
|
2876
|
+
fee_amount: number;
|
|
2877
|
+
total_amount: number;
|
|
2878
|
+
currency: Currency;
|
|
2449
2879
|
tracking_number?: string | null;
|
|
2450
2880
|
tracking_url?: string | null;
|
|
2451
2881
|
label_url?: string | null;
|
|
2452
2882
|
status: ShippingStatus;
|
|
2453
|
-
|
|
2883
|
+
tracking_status_at_ms: number | null;
|
|
2884
|
+
revision: number;
|
|
2885
|
+
label_status: ShippingLabelStatus;
|
|
2886
|
+
label_revision: number;
|
|
2887
|
+
label_attempt_count: number;
|
|
2888
|
+
provider_transaction_id?: string | null;
|
|
2889
|
+
provider_status?: string | null;
|
|
2890
|
+
safe_label_error?: string | null;
|
|
2891
|
+
label_requested_at: number;
|
|
2892
|
+
label_completed_at?: number | null;
|
|
2454
2893
|
created_at: number;
|
|
2455
2894
|
updated_at: number;
|
|
2456
2895
|
}
|
|
@@ -2460,7 +2899,7 @@ interface ShippingRate {
|
|
|
2460
2899
|
service: string;
|
|
2461
2900
|
display_name: string;
|
|
2462
2901
|
amount: number;
|
|
2463
|
-
currency:
|
|
2902
|
+
currency: Currency;
|
|
2464
2903
|
estimated_days?: number | null;
|
|
2465
2904
|
}
|
|
2466
2905
|
interface Parcel {
|
|
@@ -2468,24 +2907,12 @@ interface Parcel {
|
|
|
2468
2907
|
width: number;
|
|
2469
2908
|
height: number;
|
|
2470
2909
|
weight: number;
|
|
2471
|
-
distance_unit: "in" | "
|
|
2910
|
+
distance_unit: "cm" | "in" | "ft" | "mm" | "m" | "yd";
|
|
2472
2911
|
mass_unit: "oz" | "lb" | "g" | "kg";
|
|
2473
2912
|
}
|
|
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 {
|
|
2913
|
+
interface CreateShipmentResponse {
|
|
2485
2914
|
shipment_id: string;
|
|
2486
|
-
|
|
2487
|
-
tracking_url?: string | null;
|
|
2488
|
-
label_url?: string | null;
|
|
2915
|
+
shipment: Shipment;
|
|
2489
2916
|
}
|
|
2490
2917
|
interface CustomsItem {
|
|
2491
2918
|
description: string;
|
|
@@ -2493,7 +2920,7 @@ interface CustomsItem {
|
|
|
2493
2920
|
net_weight: string;
|
|
2494
2921
|
mass_unit: string;
|
|
2495
2922
|
value_amount: string;
|
|
2496
|
-
value_currency:
|
|
2923
|
+
value_currency: Currency;
|
|
2497
2924
|
origin_country: string;
|
|
2498
2925
|
tariff_number?: string | null;
|
|
2499
2926
|
}
|
|
@@ -2517,6 +2944,62 @@ interface PromoCode {
|
|
|
2517
2944
|
updated_at: number;
|
|
2518
2945
|
}
|
|
2519
2946
|
|
|
2947
|
+
type QueryParams = object;
|
|
2948
|
+
|
|
2949
|
+
interface TokenSet {
|
|
2950
|
+
access_token: string;
|
|
2951
|
+
refresh_token?: string;
|
|
2952
|
+
access_expires_at?: number;
|
|
2953
|
+
}
|
|
2954
|
+
interface AuthStorage {
|
|
2955
|
+
getTokens(): TokenSet | null;
|
|
2956
|
+
onTokensRefreshed(tokens: TokenSet): void;
|
|
2957
|
+
onForcedLogout(): void;
|
|
2958
|
+
}
|
|
2959
|
+
interface RequestSuccessContext<T = unknown> {
|
|
2960
|
+
data: T;
|
|
2961
|
+
method: string;
|
|
2962
|
+
url: string;
|
|
2963
|
+
status: number;
|
|
2964
|
+
request?: unknown;
|
|
2965
|
+
duration_ms?: number;
|
|
2966
|
+
request_id?: string | null;
|
|
2967
|
+
}
|
|
2968
|
+
interface RequestErrorContext {
|
|
2969
|
+
error: unknown;
|
|
2970
|
+
method: string;
|
|
2971
|
+
url: string;
|
|
2972
|
+
status?: number;
|
|
2973
|
+
request?: unknown;
|
|
2974
|
+
response?: unknown;
|
|
2975
|
+
duration_ms?: number;
|
|
2976
|
+
request_id?: string | null;
|
|
2977
|
+
aborted?: boolean;
|
|
2978
|
+
}
|
|
2979
|
+
interface RequestOptions<T = unknown> {
|
|
2980
|
+
headers?: Record<string, string>;
|
|
2981
|
+
params?: QueryParams;
|
|
2982
|
+
signal?: AbortSignal;
|
|
2983
|
+
transformRequest?: (data: unknown) => unknown;
|
|
2984
|
+
onSuccess?: (ctx: RequestSuccessContext<T>) => void | Promise<void>;
|
|
2985
|
+
onError?: (ctx: RequestErrorContext) => void | Promise<void>;
|
|
2986
|
+
}
|
|
2987
|
+
interface HttpClient {
|
|
2988
|
+
get<T>(path: string, opts?: RequestOptions<T>): Promise<T>;
|
|
2989
|
+
post<T>(path: string, body: unknown, opts?: RequestOptions<T>): Promise<T>;
|
|
2990
|
+
put<T>(path: string, body: unknown, opts?: RequestOptions<T>): Promise<T>;
|
|
2991
|
+
patch<T>(path: string, body: unknown, opts?: RequestOptions<T>): Promise<T>;
|
|
2992
|
+
delete<T>(path: string, opts?: RequestOptions<T>): Promise<T>;
|
|
2993
|
+
}
|
|
2994
|
+
interface HttpClientConfig {
|
|
2995
|
+
baseUrl: string;
|
|
2996
|
+
storeId: string;
|
|
2997
|
+
authStorage: AuthStorage;
|
|
2998
|
+
refreshPath?: string | (() => string);
|
|
2999
|
+
navigate?: (path: string) => void;
|
|
3000
|
+
loginFallbackPath?: string;
|
|
3001
|
+
}
|
|
3002
|
+
|
|
2520
3003
|
interface CreateLocationParams {
|
|
2521
3004
|
key: string;
|
|
2522
3005
|
address: Address;
|
|
@@ -2531,56 +3014,36 @@ interface UpdateLocationParams {
|
|
|
2531
3014
|
interface DeleteLocationParams {
|
|
2532
3015
|
id: string;
|
|
2533
3016
|
}
|
|
3017
|
+
type MarketZoneInput = Omit<Zone, "id" | "store_id" | "market_id"> & {
|
|
3018
|
+
id?: string;
|
|
3019
|
+
};
|
|
2534
3020
|
interface CreateMarketParams {
|
|
2535
3021
|
key: string;
|
|
2536
|
-
currency:
|
|
3022
|
+
currency: Currency;
|
|
2537
3023
|
tax_mode: "inclusive" | "exclusive";
|
|
2538
3024
|
payment_methods?: PaymentMethod[];
|
|
2539
|
-
zones?:
|
|
3025
|
+
zones?: MarketZoneInput[];
|
|
2540
3026
|
}
|
|
2541
3027
|
interface UpdateMarketParams {
|
|
2542
3028
|
id: string;
|
|
2543
3029
|
key?: string;
|
|
2544
|
-
currency?:
|
|
3030
|
+
currency?: Currency;
|
|
2545
3031
|
tax_mode?: "inclusive" | "exclusive";
|
|
2546
3032
|
payment_methods?: PaymentMethod[];
|
|
2547
|
-
zones?:
|
|
3033
|
+
zones?: MarketZoneInput[];
|
|
2548
3034
|
}
|
|
2549
3035
|
interface DeleteMarketParams {
|
|
2550
3036
|
id: string;
|
|
2551
3037
|
}
|
|
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 {
|
|
3038
|
+
interface ProductCheckoutItemInput {
|
|
3039
|
+
type: "product";
|
|
3040
|
+
id?: string;
|
|
2579
3041
|
product_id: string;
|
|
2580
3042
|
variant_id: string;
|
|
2581
3043
|
quantity: number;
|
|
2582
3044
|
}
|
|
2583
|
-
interface
|
|
3045
|
+
interface ProductQuoteItemInput {
|
|
3046
|
+
type: "product";
|
|
2584
3047
|
product_id: string;
|
|
2585
3048
|
variant_id: string;
|
|
2586
3049
|
quantity: number;
|
|
@@ -2590,31 +3053,14 @@ interface SlotRange {
|
|
|
2590
3053
|
from: number;
|
|
2591
3054
|
to: number;
|
|
2592
3055
|
}
|
|
2593
|
-
interface
|
|
3056
|
+
interface ServiceQuoteItemInput {
|
|
3057
|
+
type: "service";
|
|
2594
3058
|
service_id: string;
|
|
2595
3059
|
provider_id: string;
|
|
2596
3060
|
slots: SlotRange[];
|
|
2597
3061
|
forms?: FormEntry[];
|
|
2598
3062
|
price?: Price;
|
|
2599
3063
|
}
|
|
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
3064
|
interface ServiceCheckoutItemInput {
|
|
2619
3065
|
type: "service";
|
|
2620
3066
|
id?: string;
|
|
@@ -2623,8 +3069,8 @@ interface ServiceCheckoutItemInput {
|
|
|
2623
3069
|
slots: SlotRange[];
|
|
2624
3070
|
forms?: FormEntry[];
|
|
2625
3071
|
}
|
|
3072
|
+
type OrderQuoteItemInput = ProductQuoteItemInput | ServiceQuoteItemInput;
|
|
2626
3073
|
type OrderCheckoutItemInput = ProductCheckoutItemInput | ServiceCheckoutItemInput;
|
|
2627
|
-
type OrderCheckoutCompatibleItemInput = OrderCheckoutItemInput | EshopItem | ServiceCheckoutPart;
|
|
2628
3074
|
interface TrustedProductCheckoutItemInput extends ProductCheckoutItemInput {
|
|
2629
3075
|
price?: Price;
|
|
2630
3076
|
}
|
|
@@ -2632,11 +3078,10 @@ interface TrustedServiceCheckoutItemInput extends ServiceCheckoutItemInput {
|
|
|
2632
3078
|
price?: Price;
|
|
2633
3079
|
}
|
|
2634
3080
|
type TrustedOrderCheckoutItemInput = TrustedProductCheckoutItemInput | TrustedServiceCheckoutItemInput;
|
|
2635
|
-
type TrustedOrderCheckoutCompatibleItemInput = TrustedOrderCheckoutItemInput | EshopItem | ServiceCheckoutPart;
|
|
2636
3081
|
interface GetQuoteParams {
|
|
2637
3082
|
store_id?: string;
|
|
2638
3083
|
market?: string;
|
|
2639
|
-
items:
|
|
3084
|
+
items: OrderQuoteItemInput[];
|
|
2640
3085
|
shipping_address?: Address;
|
|
2641
3086
|
billing_address?: Address;
|
|
2642
3087
|
forms?: FormEntry[];
|
|
@@ -2648,7 +3093,7 @@ interface GetQuoteParams {
|
|
|
2648
3093
|
interface OrderCheckoutParams {
|
|
2649
3094
|
store_id?: string;
|
|
2650
3095
|
market?: string;
|
|
2651
|
-
items:
|
|
3096
|
+
items: OrderCheckoutItemInput[];
|
|
2652
3097
|
payment_method_key?: string;
|
|
2653
3098
|
shipping_address?: Address;
|
|
2654
3099
|
billing_address?: Address;
|
|
@@ -2678,7 +3123,7 @@ interface CreateCartParams {
|
|
|
2678
3123
|
store_id?: string;
|
|
2679
3124
|
contact_id: string;
|
|
2680
3125
|
market: string;
|
|
2681
|
-
items?:
|
|
3126
|
+
items?: TrustedOrderCheckoutItemInput[];
|
|
2682
3127
|
shipping_address?: Address | null;
|
|
2683
3128
|
billing_address?: Address | null;
|
|
2684
3129
|
forms?: FormEntry[];
|
|
@@ -2690,9 +3135,9 @@ interface UpdateCartParams {
|
|
|
2690
3135
|
id: string;
|
|
2691
3136
|
store_id?: string;
|
|
2692
3137
|
market?: string;
|
|
2693
|
-
items?:
|
|
2694
|
-
shipping_address?: Address;
|
|
2695
|
-
billing_address?: Address;
|
|
3138
|
+
items?: OrderCheckoutItemInput[];
|
|
3139
|
+
shipping_address?: Address | null;
|
|
3140
|
+
billing_address?: Address | null;
|
|
2696
3141
|
forms?: FormEntry[];
|
|
2697
3142
|
promo_code?: string;
|
|
2698
3143
|
payment_method_key?: string;
|
|
@@ -2701,15 +3146,20 @@ interface UpdateCartParams {
|
|
|
2701
3146
|
interface AddCartItemParams {
|
|
2702
3147
|
id: string;
|
|
2703
3148
|
store_id?: string;
|
|
2704
|
-
item:
|
|
3149
|
+
item: OrderCheckoutItemInput;
|
|
2705
3150
|
}
|
|
2706
|
-
|
|
3151
|
+
type RemoveCartItemParams = {
|
|
2707
3152
|
id: string;
|
|
2708
3153
|
store_id?: string;
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
3154
|
+
} & ({
|
|
3155
|
+
item_id: string;
|
|
3156
|
+
product_id?: never;
|
|
3157
|
+
variant_id?: never;
|
|
3158
|
+
} | {
|
|
3159
|
+
item_id?: never;
|
|
3160
|
+
product_id: string;
|
|
3161
|
+
variant_id: string;
|
|
3162
|
+
});
|
|
2713
3163
|
interface ClearCartParams {
|
|
2714
3164
|
id: string;
|
|
2715
3165
|
store_id?: string;
|
|
@@ -2766,11 +3216,15 @@ interface UpdateCollectionParams {
|
|
|
2766
3216
|
blocks?: Block[];
|
|
2767
3217
|
status?: CollectionStatus;
|
|
2768
3218
|
}
|
|
2769
|
-
|
|
2770
|
-
id?: string;
|
|
2771
|
-
key?: string;
|
|
3219
|
+
type GetCollectionParams = {
|
|
2772
3220
|
store_id?: string;
|
|
2773
|
-
}
|
|
3221
|
+
} & ({
|
|
3222
|
+
id: string;
|
|
3223
|
+
key?: never;
|
|
3224
|
+
} | {
|
|
3225
|
+
id?: never;
|
|
3226
|
+
key: string;
|
|
3227
|
+
});
|
|
2774
3228
|
interface DeleteCollectionParams {
|
|
2775
3229
|
id: string;
|
|
2776
3230
|
store_id?: string;
|
|
@@ -2806,7 +3260,7 @@ interface UpdateEntryParams {
|
|
|
2806
3260
|
status?: EntryStatus;
|
|
2807
3261
|
}
|
|
2808
3262
|
interface GetEntryParams {
|
|
2809
|
-
id
|
|
3263
|
+
id: string;
|
|
2810
3264
|
store_id?: string;
|
|
2811
3265
|
}
|
|
2812
3266
|
interface DeleteEntryParams {
|
|
@@ -2819,7 +3273,7 @@ interface UploadStoreMediaParams {
|
|
|
2819
3273
|
urls?: string[];
|
|
2820
3274
|
}
|
|
2821
3275
|
interface DeleteStoreMediaParams {
|
|
2822
|
-
|
|
3276
|
+
store_id?: string;
|
|
2823
3277
|
media_id: string;
|
|
2824
3278
|
}
|
|
2825
3279
|
interface GetMediaParams {
|
|
@@ -2846,10 +3300,14 @@ interface LoginAccountParams {
|
|
|
2846
3300
|
provider: string;
|
|
2847
3301
|
token?: string;
|
|
2848
3302
|
}
|
|
2849
|
-
interface
|
|
2850
|
-
|
|
3303
|
+
interface AuthCodeVerifyParams {
|
|
3304
|
+
challenge_id: string;
|
|
2851
3305
|
code: string;
|
|
2852
3306
|
}
|
|
3307
|
+
interface VerificationChallengeResponse {
|
|
3308
|
+
challenge_id: string;
|
|
3309
|
+
expires_at: number;
|
|
3310
|
+
}
|
|
2853
3311
|
interface GetServicesParams {
|
|
2854
3312
|
store_id?: string;
|
|
2855
3313
|
ids?: string[];
|
|
@@ -2894,9 +3352,6 @@ interface GetAnalyticsParams {
|
|
|
2894
3352
|
}
|
|
2895
3353
|
interface GetAnalyticsHealthParams {
|
|
2896
3354
|
}
|
|
2897
|
-
interface TrackEmailOpenParams {
|
|
2898
|
-
tracking_pixel_id: string;
|
|
2899
|
-
}
|
|
2900
3355
|
interface GetDeliveryStatsParams {
|
|
2901
3356
|
}
|
|
2902
3357
|
type StoreRole = "admin" | "owner" | "super";
|
|
@@ -2974,9 +3429,8 @@ interface GetPromoCodesParams {
|
|
|
2974
3429
|
interface CreateStoreParams {
|
|
2975
3430
|
key: string;
|
|
2976
3431
|
timezone: string;
|
|
2977
|
-
billing_email: string;
|
|
2978
3432
|
languages?: Language[];
|
|
2979
|
-
emails
|
|
3433
|
+
emails: StoreEmails;
|
|
2980
3434
|
}
|
|
2981
3435
|
interface UpdateStoreParams {
|
|
2982
3436
|
id: string;
|
|
@@ -2985,18 +3439,47 @@ interface UpdateStoreParams {
|
|
|
2985
3439
|
languages?: Language[];
|
|
2986
3440
|
emails?: StoreEmails;
|
|
2987
3441
|
}
|
|
2988
|
-
interface DeleteStoreParams {
|
|
2989
|
-
id: string;
|
|
2990
|
-
}
|
|
2991
3442
|
interface GetStoreParams {
|
|
2992
3443
|
}
|
|
2993
|
-
type
|
|
2994
|
-
interface SubscribeParams {
|
|
3444
|
+
type CreateStoreSubscriptionActionParams = {
|
|
2995
3445
|
store_id?: string;
|
|
3446
|
+
action_id: string;
|
|
3447
|
+
} & ({
|
|
3448
|
+
type: "select_plan";
|
|
2996
3449
|
plan_id: string;
|
|
2997
|
-
action: SubscriptionAction;
|
|
2998
3450
|
success_url: string;
|
|
2999
3451
|
cancel_url: string;
|
|
3452
|
+
} | {
|
|
3453
|
+
type: "cancel_at_period_end";
|
|
3454
|
+
} | {
|
|
3455
|
+
type: "reactivate";
|
|
3456
|
+
});
|
|
3457
|
+
interface GetStoreSubscriptionParams {
|
|
3458
|
+
store_id?: string;
|
|
3459
|
+
}
|
|
3460
|
+
interface RetryStoreSubscriptionActionParams {
|
|
3461
|
+
store_id?: string;
|
|
3462
|
+
action_id: string;
|
|
3463
|
+
}
|
|
3464
|
+
interface GetStoreSubscriptionActionParams {
|
|
3465
|
+
store_id?: string;
|
|
3466
|
+
action_id: string;
|
|
3467
|
+
}
|
|
3468
|
+
interface FindStoreSubscriptionActionsParams {
|
|
3469
|
+
store_id?: string;
|
|
3470
|
+
limit?: number;
|
|
3471
|
+
cursor?: string | null;
|
|
3472
|
+
}
|
|
3473
|
+
interface FindStoreSubscriptionActionEffectsParams {
|
|
3474
|
+
store_id?: string;
|
|
3475
|
+
action_id: string;
|
|
3476
|
+
limit?: number;
|
|
3477
|
+
cursor?: string | null;
|
|
3478
|
+
}
|
|
3479
|
+
interface GetStoreSubscriptionActionEffectParams {
|
|
3480
|
+
store_id?: string;
|
|
3481
|
+
action_id: string;
|
|
3482
|
+
effect_id: string;
|
|
3000
3483
|
}
|
|
3001
3484
|
interface CreatePortalSessionParams {
|
|
3002
3485
|
store_id?: string;
|
|
@@ -3009,14 +3492,33 @@ interface AddMemberParams {
|
|
|
3009
3492
|
}
|
|
3010
3493
|
interface RemoveMemberParams {
|
|
3011
3494
|
account_id: string;
|
|
3495
|
+
store_id?: string;
|
|
3496
|
+
}
|
|
3497
|
+
type AccountSortField = "email";
|
|
3498
|
+
interface FindStoreMembersParams {
|
|
3499
|
+
store_id?: string;
|
|
3500
|
+
query?: string | number;
|
|
3501
|
+
limit?: number;
|
|
3502
|
+
cursor?: string | null;
|
|
3503
|
+
sort_field?: AccountSortField | null;
|
|
3504
|
+
sort_direction?: "asc" | "desc" | null;
|
|
3012
3505
|
}
|
|
3013
3506
|
interface TestWebhookParams {
|
|
3014
|
-
|
|
3507
|
+
delivery_id: string;
|
|
3508
|
+
webhook_id: string;
|
|
3509
|
+
}
|
|
3510
|
+
type WebhookDeliveryStatus = "requested" | "processing" | "succeeded" | "rejected" | "failed" | "unknown";
|
|
3511
|
+
interface TestWebhookResponse {
|
|
3512
|
+
delivery_id: string;
|
|
3513
|
+
status: WebhookDeliveryStatus;
|
|
3514
|
+
provider_status_code?: number | null;
|
|
3515
|
+
error?: string | null;
|
|
3015
3516
|
}
|
|
3517
|
+
type ProductInventoryInput = Pick<ProductInventory, "location_id" | "available" | "reserved">;
|
|
3016
3518
|
interface CreateProductVariantInput {
|
|
3017
3519
|
sku?: string;
|
|
3018
3520
|
prices: Price[];
|
|
3019
|
-
inventory:
|
|
3521
|
+
inventory: ProductInventoryInput[];
|
|
3020
3522
|
attributes: Block[];
|
|
3021
3523
|
requires_shipping?: boolean;
|
|
3022
3524
|
digital_delivery_policy?: DigitalDeliveryPolicy;
|
|
@@ -3030,7 +3532,7 @@ interface UpdateProductVariantInput {
|
|
|
3030
3532
|
id: string;
|
|
3031
3533
|
sku?: string | null;
|
|
3032
3534
|
prices?: Price[];
|
|
3033
|
-
inventory?:
|
|
3535
|
+
inventory?: ProductInventoryInput[];
|
|
3034
3536
|
attributes?: Block[];
|
|
3035
3537
|
requires_shipping?: boolean;
|
|
3036
3538
|
digital_delivery_policy?: DigitalDeliveryPolicy;
|
|
@@ -3062,11 +3564,15 @@ interface DeleteProductParams {
|
|
|
3062
3564
|
id: string;
|
|
3063
3565
|
store_id?: string;
|
|
3064
3566
|
}
|
|
3065
|
-
|
|
3066
|
-
id?: string;
|
|
3067
|
-
slug?: string;
|
|
3567
|
+
type GetProductParams = {
|
|
3068
3568
|
store_id?: string;
|
|
3069
|
-
}
|
|
3569
|
+
} & ({
|
|
3570
|
+
id: string;
|
|
3571
|
+
slug?: never;
|
|
3572
|
+
} | {
|
|
3573
|
+
id?: never;
|
|
3574
|
+
slug: string;
|
|
3575
|
+
});
|
|
3070
3576
|
interface GetOrderParams {
|
|
3071
3577
|
id: string;
|
|
3072
3578
|
store_id?: string;
|
|
@@ -3091,14 +3597,14 @@ interface GetOrdersParams {
|
|
|
3091
3597
|
}
|
|
3092
3598
|
interface UpdateOrderParams {
|
|
3093
3599
|
id: string;
|
|
3600
|
+
revision: number;
|
|
3094
3601
|
store_id?: string;
|
|
3095
3602
|
confirm?: boolean;
|
|
3096
3603
|
cancel?: boolean;
|
|
3097
3604
|
shipping_address?: Address | null;
|
|
3098
3605
|
billing_address?: Address | null;
|
|
3099
3606
|
forms?: FormEntry[];
|
|
3100
|
-
items?:
|
|
3101
|
-
payment?: OrderPayment;
|
|
3607
|
+
items?: TrustedOrderCheckoutItemInput[];
|
|
3102
3608
|
}
|
|
3103
3609
|
interface CreateProviderParams {
|
|
3104
3610
|
store_id?: string;
|
|
@@ -3179,20 +3685,28 @@ interface DeleteServiceProviderParams {
|
|
|
3179
3685
|
store_id?: string;
|
|
3180
3686
|
id: string;
|
|
3181
3687
|
}
|
|
3182
|
-
|
|
3688
|
+
type FindServiceProvidersParams = {
|
|
3183
3689
|
store_id?: string;
|
|
3184
|
-
|
|
3690
|
+
} & ({
|
|
3691
|
+
service_id: string;
|
|
3185
3692
|
provider_id?: string;
|
|
3186
|
-
}
|
|
3693
|
+
} | {
|
|
3694
|
+
service_id?: string;
|
|
3695
|
+
provider_id: string;
|
|
3696
|
+
});
|
|
3187
3697
|
interface DeleteServiceParams {
|
|
3188
3698
|
id: string;
|
|
3189
3699
|
store_id?: string;
|
|
3190
3700
|
}
|
|
3191
|
-
|
|
3192
|
-
id?: string;
|
|
3193
|
-
slug?: string;
|
|
3701
|
+
type GetServiceParams = {
|
|
3194
3702
|
store_id?: string;
|
|
3195
|
-
}
|
|
3703
|
+
} & ({
|
|
3704
|
+
id: string;
|
|
3705
|
+
slug?: never;
|
|
3706
|
+
} | {
|
|
3707
|
+
id?: never;
|
|
3708
|
+
slug: string;
|
|
3709
|
+
});
|
|
3196
3710
|
interface GetProvidersParams {
|
|
3197
3711
|
store_id?: string;
|
|
3198
3712
|
service_id?: string;
|
|
@@ -3210,11 +3724,15 @@ interface GetProvidersParams {
|
|
|
3210
3724
|
from?: number;
|
|
3211
3725
|
to?: number;
|
|
3212
3726
|
}
|
|
3213
|
-
|
|
3214
|
-
id?: string;
|
|
3215
|
-
slug?: string;
|
|
3727
|
+
type GetProviderParams = {
|
|
3216
3728
|
store_id?: string;
|
|
3217
|
-
}
|
|
3729
|
+
} & ({
|
|
3730
|
+
id: string;
|
|
3731
|
+
slug?: never;
|
|
3732
|
+
} | {
|
|
3733
|
+
id?: never;
|
|
3734
|
+
slug: string;
|
|
3735
|
+
});
|
|
3218
3736
|
interface SearchOrderServiceItemsParams {
|
|
3219
3737
|
store_id?: string;
|
|
3220
3738
|
contact_id?: string;
|
|
@@ -3231,47 +3749,41 @@ interface SearchOrderServiceItemsParams {
|
|
|
3231
3749
|
query?: string | number;
|
|
3232
3750
|
contact_list_id?: string;
|
|
3233
3751
|
}
|
|
3234
|
-
interface
|
|
3235
|
-
|
|
3752
|
+
interface FindDigitalAccessGrantsParams {
|
|
3753
|
+
order_id: string;
|
|
3754
|
+
store_id?: string;
|
|
3755
|
+
limit?: number;
|
|
3756
|
+
cursor?: string;
|
|
3757
|
+
}
|
|
3758
|
+
interface GetDigitalAccessGrantParams {
|
|
3759
|
+
order_id: string;
|
|
3236
3760
|
grant_id: string;
|
|
3237
3761
|
store_id?: string;
|
|
3238
3762
|
}
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
address: Address;
|
|
3763
|
+
type DownloadDigitalAccessParams = GetDigitalAccessGrantParams;
|
|
3764
|
+
interface ActivateDigitalAccessGrantParams extends GetDigitalAccessGrantParams {
|
|
3242
3765
|
}
|
|
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;
|
|
3766
|
+
interface RevokeDigitalAccessGrantParams extends GetDigitalAccessGrantParams {
|
|
3250
3767
|
}
|
|
3251
3768
|
interface UpdateAccountContactParams {
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3769
|
+
}
|
|
3770
|
+
interface CreateAccountApiTokenParams {
|
|
3771
|
+
name: string;
|
|
3772
|
+
expires_at?: number | null;
|
|
3773
|
+
}
|
|
3774
|
+
interface UpdateAccountApiTokenParams {
|
|
3775
|
+
id: string;
|
|
3776
|
+
name: string;
|
|
3255
3777
|
}
|
|
3256
3778
|
interface SearchAccountsParams {
|
|
3257
3779
|
limit?: number;
|
|
3258
3780
|
cursor?: string | null;
|
|
3259
3781
|
query?: string | number;
|
|
3260
|
-
|
|
3261
|
-
store_id?: string;
|
|
3262
|
-
sort_field?: string | null;
|
|
3782
|
+
sort_field?: AccountSortField | null;
|
|
3263
3783
|
sort_direction?: "asc" | "desc" | null;
|
|
3264
3784
|
}
|
|
3265
3785
|
interface DeleteAccountParams {
|
|
3266
3786
|
}
|
|
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
3787
|
interface GetEmailTemplatesParams {
|
|
3276
3788
|
store_id?: string;
|
|
3277
3789
|
ids?: string[];
|
|
@@ -3288,11 +3800,9 @@ interface GetEmailTemplatesParams {
|
|
|
3288
3800
|
interface CreateEmailTemplateParams {
|
|
3289
3801
|
store_id?: string;
|
|
3290
3802
|
key: string;
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
from_email?: string;
|
|
3295
|
-
reply_to?: string;
|
|
3803
|
+
type: EmailTemplateType;
|
|
3804
|
+
subject: Record<string, string>;
|
|
3805
|
+
body: string;
|
|
3296
3806
|
preheader?: string;
|
|
3297
3807
|
variables?: EmailTemplateVariable[];
|
|
3298
3808
|
sample_data?: Record<string, unknown>;
|
|
@@ -3301,11 +3811,9 @@ interface UpdateEmailTemplateParams {
|
|
|
3301
3811
|
id: string;
|
|
3302
3812
|
store_id?: string;
|
|
3303
3813
|
key?: string;
|
|
3814
|
+
type?: EmailTemplateType;
|
|
3304
3815
|
subject?: Record<string, string>;
|
|
3305
3816
|
body?: string;
|
|
3306
|
-
from_name?: string;
|
|
3307
|
-
from_email?: string;
|
|
3308
|
-
reply_to?: string;
|
|
3309
3817
|
preheader?: string;
|
|
3310
3818
|
variables?: EmailTemplateVariable[];
|
|
3311
3819
|
sample_data?: Record<string, unknown>;
|
|
@@ -3317,7 +3825,7 @@ interface PreviewEmailTemplateParams {
|
|
|
3317
3825
|
subject?: Record<string, string>;
|
|
3318
3826
|
body?: string;
|
|
3319
3827
|
preheader?: string | null;
|
|
3320
|
-
vars?: Record<string,
|
|
3828
|
+
vars?: Record<string, unknown>;
|
|
3321
3829
|
}
|
|
3322
3830
|
interface PreviewEmailTemplateWarning {
|
|
3323
3831
|
kind: string;
|
|
@@ -3467,22 +3975,50 @@ interface GetSubscriptionPlansParams {
|
|
|
3467
3975
|
interface SetupAnalyticsParams {
|
|
3468
3976
|
store_id?: string;
|
|
3469
3977
|
}
|
|
3470
|
-
interface
|
|
3471
|
-
|
|
3978
|
+
interface CreateOrderRefundParams {
|
|
3979
|
+
order_id: string;
|
|
3980
|
+
refund_id: string;
|
|
3981
|
+
amount: number;
|
|
3982
|
+
store_id?: string;
|
|
3983
|
+
}
|
|
3984
|
+
interface RetryOrderRefundParams {
|
|
3985
|
+
order_id: string;
|
|
3986
|
+
refund_id: string;
|
|
3987
|
+
store_id?: string;
|
|
3988
|
+
}
|
|
3989
|
+
interface GetOrderPaymentParams {
|
|
3990
|
+
order_id: string;
|
|
3991
|
+
store_id?: string;
|
|
3992
|
+
}
|
|
3993
|
+
interface RetryPaymentTransactionParams {
|
|
3994
|
+
order_id: string;
|
|
3995
|
+
transaction_id: string;
|
|
3996
|
+
store_id?: string;
|
|
3997
|
+
}
|
|
3998
|
+
interface FindPaymentTransactionsParams {
|
|
3999
|
+
order_id: string;
|
|
4000
|
+
store_id?: string;
|
|
4001
|
+
limit?: number;
|
|
3472
4002
|
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
4003
|
}
|
|
3480
|
-
interface
|
|
3481
|
-
|
|
3482
|
-
|
|
4004
|
+
interface GetPaymentTransactionParams {
|
|
4005
|
+
order_id: string;
|
|
4006
|
+
transaction_id: string;
|
|
4007
|
+
store_id?: string;
|
|
4008
|
+
}
|
|
4009
|
+
interface FindOrderRefundsParams {
|
|
4010
|
+
order_id: string;
|
|
4011
|
+
store_id?: string;
|
|
4012
|
+
limit?: number;
|
|
4013
|
+
cursor?: string | null;
|
|
4014
|
+
}
|
|
4015
|
+
interface GetOrderRefundParams {
|
|
4016
|
+
order_id: string;
|
|
4017
|
+
refund_id: string;
|
|
4018
|
+
store_id?: string;
|
|
3483
4019
|
}
|
|
3484
|
-
type RefundStatus = "requested" | "processing" | "succeeded" | "failed" | "unknown";
|
|
3485
|
-
interface
|
|
4020
|
+
type RefundStatus = "requested" | "processing" | "succeeded" | "rejected" | "failed" | "unknown";
|
|
4021
|
+
interface CreateOrderRefundResponse {
|
|
3486
4022
|
refund_id: string;
|
|
3487
4023
|
amount: number;
|
|
3488
4024
|
status: RefundStatus;
|
|
@@ -3526,7 +4062,7 @@ interface Slot {
|
|
|
3526
4062
|
interface CreateWorkflowParams {
|
|
3527
4063
|
store_id?: string;
|
|
3528
4064
|
key: string;
|
|
3529
|
-
status?:
|
|
4065
|
+
status?: MutableWorkflowStatus;
|
|
3530
4066
|
nodes: Record<string, WorkflowNode>;
|
|
3531
4067
|
edges: WorkflowEdge[];
|
|
3532
4068
|
schedule?: string;
|
|
@@ -3535,7 +4071,7 @@ interface UpdateWorkflowParams {
|
|
|
3535
4071
|
id: string;
|
|
3536
4072
|
store_id?: string;
|
|
3537
4073
|
key: string;
|
|
3538
|
-
status?:
|
|
4074
|
+
status?: MutableWorkflowStatus;
|
|
3539
4075
|
nodes: Record<string, WorkflowNode>;
|
|
3540
4076
|
edges: WorkflowEdge[];
|
|
3541
4077
|
schedule?: string;
|
|
@@ -3562,7 +4098,7 @@ interface GetWorkflowsParams {
|
|
|
3562
4098
|
}
|
|
3563
4099
|
interface TriggerWorkflowParams {
|
|
3564
4100
|
secret: string;
|
|
3565
|
-
|
|
4101
|
+
[key: string]: unknown;
|
|
3566
4102
|
}
|
|
3567
4103
|
interface GetWorkflowExecutionsParams {
|
|
3568
4104
|
workflow_id: string;
|
|
@@ -3576,14 +4112,27 @@ interface GetWorkflowExecutionParams {
|
|
|
3576
4112
|
execution_id: string;
|
|
3577
4113
|
store_id?: string;
|
|
3578
4114
|
}
|
|
3579
|
-
interface
|
|
4115
|
+
interface GetWorkflowEffectsParams {
|
|
4116
|
+
workflow_id: string;
|
|
4117
|
+
execution_id: string;
|
|
4118
|
+
store_id?: string;
|
|
4119
|
+
limit?: number;
|
|
4120
|
+
cursor?: string;
|
|
4121
|
+
}
|
|
4122
|
+
interface GetWorkflowEffectParams {
|
|
4123
|
+
workflow_id: string;
|
|
4124
|
+
execution_id: string;
|
|
4125
|
+
effect_id: string;
|
|
4126
|
+
store_id?: string;
|
|
4127
|
+
}
|
|
4128
|
+
interface GetWorkflowConnectionConnectUrlParams {
|
|
3580
4129
|
store_id?: string;
|
|
3581
|
-
type:
|
|
4130
|
+
type: WorkflowConnectionType;
|
|
3582
4131
|
}
|
|
3583
|
-
interface
|
|
4132
|
+
interface GetWorkflowConnectionsParams {
|
|
3584
4133
|
store_id?: string;
|
|
3585
4134
|
}
|
|
3586
|
-
interface
|
|
4135
|
+
interface DeleteWorkflowConnectionParams {
|
|
3587
4136
|
id: string;
|
|
3588
4137
|
store_id?: string;
|
|
3589
4138
|
}
|
|
@@ -3593,7 +4142,6 @@ interface CreateContactListParams {
|
|
|
3593
4142
|
name?: string;
|
|
3594
4143
|
description?: string | null;
|
|
3595
4144
|
type?: ContactListType;
|
|
3596
|
-
plans?: ContactListPlan[];
|
|
3597
4145
|
content_access?: ContactListContentAccess[];
|
|
3598
4146
|
source?: ContactListSource;
|
|
3599
4147
|
}
|
|
@@ -3605,9 +4153,53 @@ interface UpdateContactListParams {
|
|
|
3605
4153
|
description?: string | null;
|
|
3606
4154
|
status?: ContactListStatus;
|
|
3607
4155
|
type?: ContactListType;
|
|
3608
|
-
plans?: ContactListPlan[];
|
|
3609
4156
|
content_access?: ContactListContentAccess[];
|
|
3610
4157
|
}
|
|
4158
|
+
interface CreateContactListPlanParams {
|
|
4159
|
+
store_id?: string;
|
|
4160
|
+
contact_list_id: string;
|
|
4161
|
+
key: string;
|
|
4162
|
+
name?: string;
|
|
4163
|
+
description?: string | null;
|
|
4164
|
+
status?: ContactListPlanStatus;
|
|
4165
|
+
prices: ContactListPlanPriceInput[];
|
|
4166
|
+
payment_provider_id?: string;
|
|
4167
|
+
}
|
|
4168
|
+
interface UpdateContactListPlanParams {
|
|
4169
|
+
id: string;
|
|
4170
|
+
store_id?: string;
|
|
4171
|
+
contact_list_id: string;
|
|
4172
|
+
key?: string;
|
|
4173
|
+
name?: string;
|
|
4174
|
+
description?: string | null;
|
|
4175
|
+
status?: ContactListPlanStatus;
|
|
4176
|
+
prices?: ContactListPlanPriceInput[];
|
|
4177
|
+
payment_provider_id?: string;
|
|
4178
|
+
}
|
|
4179
|
+
type ContactListPlanPriceInput = Omit<SubscriptionPrice, "providers">;
|
|
4180
|
+
interface FindContactListPlansParams {
|
|
4181
|
+
store_id?: string;
|
|
4182
|
+
contact_list_id: string;
|
|
4183
|
+
status?: ContactListPlanStatus;
|
|
4184
|
+
limit?: number;
|
|
4185
|
+
cursor?: string;
|
|
4186
|
+
}
|
|
4187
|
+
interface FindStorefrontContactListPlansParams {
|
|
4188
|
+
store_id?: string;
|
|
4189
|
+
contact_list_id: string;
|
|
4190
|
+
limit?: number;
|
|
4191
|
+
cursor?: string;
|
|
4192
|
+
}
|
|
4193
|
+
interface GetContactListPlanParams {
|
|
4194
|
+
id: string;
|
|
4195
|
+
store_id?: string;
|
|
4196
|
+
contact_list_id: string;
|
|
4197
|
+
}
|
|
4198
|
+
interface RetryContactListPlanCatalogParams {
|
|
4199
|
+
store_id?: string;
|
|
4200
|
+
contact_list_id: string;
|
|
4201
|
+
plan_id: string;
|
|
4202
|
+
}
|
|
3611
4203
|
interface FindContactListsParams {
|
|
3612
4204
|
store_id?: string;
|
|
3613
4205
|
ids?: string[];
|
|
@@ -3618,6 +4210,15 @@ interface FindContactListsParams {
|
|
|
3618
4210
|
sort_field?: string;
|
|
3619
4211
|
sort_direction?: "asc" | "desc";
|
|
3620
4212
|
}
|
|
4213
|
+
interface FindStorefrontContactListsParams {
|
|
4214
|
+
store_id?: string;
|
|
4215
|
+
ids?: string[];
|
|
4216
|
+
query?: string;
|
|
4217
|
+
limit?: number;
|
|
4218
|
+
cursor?: string;
|
|
4219
|
+
sort_field?: string;
|
|
4220
|
+
sort_direction?: "asc" | "desc";
|
|
4221
|
+
}
|
|
3621
4222
|
interface GetContactListParams {
|
|
3622
4223
|
id: string;
|
|
3623
4224
|
store_id?: string;
|
|
@@ -3650,6 +4251,70 @@ interface FindContactListContactsParams {
|
|
|
3650
4251
|
limit?: number;
|
|
3651
4252
|
cursor?: string;
|
|
3652
4253
|
}
|
|
4254
|
+
interface RefundContactListMembershipParams {
|
|
4255
|
+
store_id?: string;
|
|
4256
|
+
contact_list_id: string;
|
|
4257
|
+
membership_id: string;
|
|
4258
|
+
refund_id: string;
|
|
4259
|
+
amount?: number | null;
|
|
4260
|
+
}
|
|
4261
|
+
interface RefundContactListMembershipResult {
|
|
4262
|
+
refund_id: string;
|
|
4263
|
+
amount: number;
|
|
4264
|
+
status: ContactListMembershipRefundStatus;
|
|
4265
|
+
membership: ContactListMembership;
|
|
4266
|
+
}
|
|
4267
|
+
interface FindContactListMembershipPaymentAttemptsParams {
|
|
4268
|
+
store_id?: string;
|
|
4269
|
+
contact_list_id: string;
|
|
4270
|
+
membership_id: string;
|
|
4271
|
+
limit?: number;
|
|
4272
|
+
cursor?: string;
|
|
4273
|
+
}
|
|
4274
|
+
interface FindStorefrontContactListMembershipsParams {
|
|
4275
|
+
store_id?: string;
|
|
4276
|
+
limit?: number;
|
|
4277
|
+
cursor?: string;
|
|
4278
|
+
}
|
|
4279
|
+
interface GetContactListMembershipPaymentAttemptParams {
|
|
4280
|
+
store_id?: string;
|
|
4281
|
+
contact_list_id: string;
|
|
4282
|
+
membership_id: string;
|
|
4283
|
+
id: string;
|
|
4284
|
+
}
|
|
4285
|
+
interface FindContactListMembershipRefundsParams {
|
|
4286
|
+
store_id?: string;
|
|
4287
|
+
contact_list_id: string;
|
|
4288
|
+
membership_id: string;
|
|
4289
|
+
payment_attempt_id?: string;
|
|
4290
|
+
limit?: number;
|
|
4291
|
+
cursor?: string;
|
|
4292
|
+
}
|
|
4293
|
+
interface GetContactListMembershipRefundParams {
|
|
4294
|
+
store_id?: string;
|
|
4295
|
+
contact_list_id: string;
|
|
4296
|
+
membership_id: string;
|
|
4297
|
+
id: string;
|
|
4298
|
+
}
|
|
4299
|
+
interface RetryContactListMembershipRefundParams extends GetContactListMembershipRefundParams {
|
|
4300
|
+
}
|
|
4301
|
+
interface FindContactListMembershipCancellationsParams {
|
|
4302
|
+
store_id?: string;
|
|
4303
|
+
contact_list_id: string;
|
|
4304
|
+
membership_id: string;
|
|
4305
|
+
payment_attempt_id?: string;
|
|
4306
|
+
refund_id?: string;
|
|
4307
|
+
limit?: number;
|
|
4308
|
+
cursor?: string;
|
|
4309
|
+
}
|
|
4310
|
+
interface GetContactListMembershipCancellationParams {
|
|
4311
|
+
store_id?: string;
|
|
4312
|
+
contact_list_id: string;
|
|
4313
|
+
membership_id: string;
|
|
4314
|
+
id: string;
|
|
4315
|
+
}
|
|
4316
|
+
interface RetryContactListMembershipCancellationParams extends GetContactListMembershipCancellationParams {
|
|
4317
|
+
}
|
|
3653
4318
|
interface ImportContactRowInput {
|
|
3654
4319
|
email: string;
|
|
3655
4320
|
contact_id?: string;
|
|
@@ -3749,8 +4414,6 @@ interface SubscribeContactListParams {
|
|
|
3749
4414
|
id: string;
|
|
3750
4415
|
contact_id: string;
|
|
3751
4416
|
price_id?: string;
|
|
3752
|
-
success_url?: string;
|
|
3753
|
-
cancel_url?: string;
|
|
3754
4417
|
confirm_url?: string;
|
|
3755
4418
|
confirmation_token_id?: string;
|
|
3756
4419
|
return_url?: string;
|
|
@@ -3769,7 +4432,7 @@ interface CreateMailboxParams {
|
|
|
3769
4432
|
email: string;
|
|
3770
4433
|
from_name?: string;
|
|
3771
4434
|
reply_to_email?: string | null;
|
|
3772
|
-
provider:
|
|
4435
|
+
provider: SmtpImapMailboxProviderInput;
|
|
3773
4436
|
password?: string;
|
|
3774
4437
|
daily_limit?: number;
|
|
3775
4438
|
}
|
|
@@ -3780,16 +4443,18 @@ interface UpdateMailboxParams {
|
|
|
3780
4443
|
email?: string;
|
|
3781
4444
|
from_name?: string;
|
|
3782
4445
|
reply_to_email?: string | null;
|
|
3783
|
-
provider?:
|
|
4446
|
+
provider?: SmtpImapMailboxProviderInput;
|
|
3784
4447
|
password?: string;
|
|
3785
4448
|
status?: MailboxStatus;
|
|
3786
4449
|
daily_limit?: number;
|
|
4450
|
+
sync_enabled?: boolean;
|
|
4451
|
+
sync_interval_seconds?: number;
|
|
3787
4452
|
}
|
|
3788
4453
|
interface FindMailboxesParams {
|
|
3789
4454
|
store_id?: string;
|
|
3790
4455
|
ids?: string[];
|
|
3791
4456
|
status?: MailboxStatus;
|
|
3792
|
-
provider_type?: "smtp_imap";
|
|
4457
|
+
provider_type?: "smtp_imap" | "google";
|
|
3793
4458
|
query?: string | number;
|
|
3794
4459
|
limit?: number;
|
|
3795
4460
|
cursor?: string;
|
|
@@ -3808,14 +4473,34 @@ interface PrepareMailboxParams {
|
|
|
3808
4473
|
id: string;
|
|
3809
4474
|
store_id?: string;
|
|
3810
4475
|
}
|
|
3811
|
-
interface
|
|
4476
|
+
interface ConnectGoogleMailboxParams {
|
|
4477
|
+
id?: string | null;
|
|
4478
|
+
store_id?: string;
|
|
4479
|
+
key: string;
|
|
4480
|
+
from_name?: string | null;
|
|
4481
|
+
reply_to_email?: string | null;
|
|
4482
|
+
daily_limit?: number;
|
|
4483
|
+
sync_enabled: boolean;
|
|
4484
|
+
sync_interval_seconds: number;
|
|
4485
|
+
}
|
|
4486
|
+
interface GoogleMailboxConnectUrl {
|
|
4487
|
+
authorization_url: string;
|
|
4488
|
+
state: string;
|
|
4489
|
+
}
|
|
4490
|
+
type TestMailboxResult = {
|
|
4491
|
+
type: "smtp_imap";
|
|
3812
4492
|
ok: boolean;
|
|
3813
4493
|
smtp_ok: boolean;
|
|
3814
4494
|
imap_ok: boolean;
|
|
3815
4495
|
skipped: boolean;
|
|
3816
4496
|
smtp_error?: string | null;
|
|
3817
4497
|
imap_error?: string | null;
|
|
3818
|
-
}
|
|
4498
|
+
} | {
|
|
4499
|
+
type: "google";
|
|
4500
|
+
ok: boolean;
|
|
4501
|
+
skipped: boolean;
|
|
4502
|
+
error?: string | null;
|
|
4503
|
+
};
|
|
3819
4504
|
interface CreateCampaignParams {
|
|
3820
4505
|
store_id?: string;
|
|
3821
4506
|
key: string;
|
|
@@ -3904,7 +4589,7 @@ interface UpdateCampaignEnrollmentDraftParams {
|
|
|
3904
4589
|
store_id?: string;
|
|
3905
4590
|
id: string;
|
|
3906
4591
|
draft_id: string;
|
|
3907
|
-
template_vars?: Record<string,
|
|
4592
|
+
template_vars?: Record<string, unknown>;
|
|
3908
4593
|
body?: string;
|
|
3909
4594
|
suggested_message?: string;
|
|
3910
4595
|
}
|
|
@@ -3938,6 +4623,7 @@ interface GetCampaignEnrollmentConversationParams {
|
|
|
3938
4623
|
after_id?: string;
|
|
3939
4624
|
}
|
|
3940
4625
|
interface ReplyCampaignEnrollmentParams {
|
|
4626
|
+
message_id: string;
|
|
3941
4627
|
store_id?: string;
|
|
3942
4628
|
id: string;
|
|
3943
4629
|
subject?: string | null;
|
|
@@ -3951,7 +4637,7 @@ interface StopCampaignEnrollmentParams {
|
|
|
3951
4637
|
interface UpdateCampaignMessageParams {
|
|
3952
4638
|
id: string;
|
|
3953
4639
|
store_id?: string;
|
|
3954
|
-
template_vars?: Record<string,
|
|
4640
|
+
template_vars?: Record<string, unknown>;
|
|
3955
4641
|
}
|
|
3956
4642
|
interface CreateSuppressionParams {
|
|
3957
4643
|
store_id?: string;
|
|
@@ -4012,6 +4698,7 @@ interface CancelLeadResearchRunParams {
|
|
|
4012
4698
|
store_id?: string;
|
|
4013
4699
|
}
|
|
4014
4700
|
interface SendLeadResearchMessageParams {
|
|
4701
|
+
message_id: string;
|
|
4015
4702
|
run_id: string;
|
|
4016
4703
|
store_id?: string;
|
|
4017
4704
|
message: string;
|
|
@@ -4053,10 +4740,10 @@ interface DeleteBuildHookParams {
|
|
|
4053
4740
|
store_id: string;
|
|
4054
4741
|
id: string;
|
|
4055
4742
|
}
|
|
4056
|
-
interface
|
|
4743
|
+
interface ListSocialConnectionsParams {
|
|
4057
4744
|
store_id?: string;
|
|
4058
4745
|
}
|
|
4059
|
-
interface
|
|
4746
|
+
interface DeleteSocialConnectionParams {
|
|
4060
4747
|
store_id: string;
|
|
4061
4748
|
id: string;
|
|
4062
4749
|
}
|
|
@@ -4091,13 +4778,13 @@ interface GetSocialPublicationParams {
|
|
|
4091
4778
|
}
|
|
4092
4779
|
interface ValidateSocialPublicationParams {
|
|
4093
4780
|
store_id?: string;
|
|
4094
|
-
|
|
4781
|
+
social_connection_id: string;
|
|
4095
4782
|
scheduled_at?: number | null;
|
|
4096
4783
|
content: SocialPublicationContent;
|
|
4097
4784
|
}
|
|
4098
4785
|
interface CreateSocialPublicationParams {
|
|
4099
4786
|
store_id?: string;
|
|
4100
|
-
|
|
4787
|
+
social_connection_id: string;
|
|
4101
4788
|
key?: string | null;
|
|
4102
4789
|
scheduled_at?: number | null;
|
|
4103
4790
|
content: SocialPublicationContent;
|
|
@@ -4105,7 +4792,7 @@ interface CreateSocialPublicationParams {
|
|
|
4105
4792
|
interface UpdateSocialPublicationParams {
|
|
4106
4793
|
store_id?: string;
|
|
4107
4794
|
id: string;
|
|
4108
|
-
|
|
4795
|
+
social_connection_id?: string | null;
|
|
4109
4796
|
key?: string | null;
|
|
4110
4797
|
scheduled_at?: number | null;
|
|
4111
4798
|
content?: SocialPublicationContent | null;
|
|
@@ -4137,8 +4824,8 @@ type SyncSocialPublicationCommentThreadParams = GetSocialPublicationCommentThrea
|
|
|
4137
4824
|
interface FindSocialPublicationCommentsParams {
|
|
4138
4825
|
store_id?: string;
|
|
4139
4826
|
publication_id?: string;
|
|
4140
|
-
|
|
4141
|
-
|
|
4827
|
+
social_connection_id?: string;
|
|
4828
|
+
type?: SocialConnectionType;
|
|
4142
4829
|
status?: SocialPublicationCommentStatus;
|
|
4143
4830
|
intent?: SocialPublicationCommentIntent;
|
|
4144
4831
|
priority?: SocialPublicationCommentPriority;
|
|
@@ -4149,20 +4836,46 @@ interface FindSocialPublicationCommentsParams {
|
|
|
4149
4836
|
interface ClassifySocialPublicationCommentsParams {
|
|
4150
4837
|
store_id?: string;
|
|
4151
4838
|
publication_id?: string;
|
|
4152
|
-
|
|
4153
|
-
|
|
4839
|
+
social_connection_id?: string;
|
|
4840
|
+
type?: SocialConnectionType;
|
|
4154
4841
|
status?: SocialPublicationCommentStatus;
|
|
4155
4842
|
intent?: SocialPublicationCommentIntent;
|
|
4156
4843
|
priority?: SocialPublicationCommentPriority;
|
|
4157
4844
|
limit?: number;
|
|
4158
4845
|
force?: boolean;
|
|
4159
4846
|
}
|
|
4160
|
-
interface
|
|
4847
|
+
interface CreateSocialCommentReplyParams {
|
|
4161
4848
|
store_id?: string;
|
|
4162
4849
|
publication_id: string;
|
|
4163
4850
|
comment_id: string;
|
|
4851
|
+
reply_id: string;
|
|
4164
4852
|
text: string;
|
|
4165
4853
|
}
|
|
4854
|
+
interface ListSocialCommentRepliesParams {
|
|
4855
|
+
store_id?: string;
|
|
4856
|
+
publication_id: string;
|
|
4857
|
+
comment_id: string;
|
|
4858
|
+
limit: number;
|
|
4859
|
+
cursor?: string | null;
|
|
4860
|
+
}
|
|
4861
|
+
interface GetSocialCommentReplyParams {
|
|
4862
|
+
store_id?: string;
|
|
4863
|
+
publication_id: string;
|
|
4864
|
+
comment_id: string;
|
|
4865
|
+
reply_id: string;
|
|
4866
|
+
}
|
|
4867
|
+
type RetrySocialCommentReplyParams = GetSocialCommentReplyParams;
|
|
4868
|
+
interface ListSocialPublicationEffectsParams {
|
|
4869
|
+
store_id?: string;
|
|
4870
|
+
publication_id: string;
|
|
4871
|
+
limit: number;
|
|
4872
|
+
cursor?: string | null;
|
|
4873
|
+
}
|
|
4874
|
+
interface GetSocialPublicationEffectParams {
|
|
4875
|
+
store_id?: string;
|
|
4876
|
+
publication_id: string;
|
|
4877
|
+
effect_id: string;
|
|
4878
|
+
}
|
|
4166
4879
|
interface GetSocialPublicationMetricsParams {
|
|
4167
4880
|
store_id?: string;
|
|
4168
4881
|
publication_id: string;
|
|
@@ -4179,13 +4892,13 @@ interface SyncSocialEngagementParams {
|
|
|
4179
4892
|
interface GetSocialCapabilitiesParams {
|
|
4180
4893
|
store_id?: string;
|
|
4181
4894
|
}
|
|
4182
|
-
interface
|
|
4895
|
+
interface ConnectSocialConnectionParams {
|
|
4183
4896
|
store_id?: string;
|
|
4184
|
-
|
|
4897
|
+
type: SocialConnectionType;
|
|
4185
4898
|
}
|
|
4186
4899
|
interface SelectSocialDestinationParams {
|
|
4187
4900
|
store_id?: string;
|
|
4188
|
-
|
|
4901
|
+
type: SocialConnectionType;
|
|
4189
4902
|
attempt_id: string;
|
|
4190
4903
|
candidate_id: string;
|
|
4191
4904
|
}
|
|
@@ -4208,37 +4921,69 @@ interface CreateWebhookParams {
|
|
|
4208
4921
|
interface UpdateWebhookParams {
|
|
4209
4922
|
store_id: string;
|
|
4210
4923
|
id: string;
|
|
4211
|
-
key
|
|
4212
|
-
url
|
|
4213
|
-
events
|
|
4214
|
-
headers
|
|
4215
|
-
secret
|
|
4216
|
-
enabled
|
|
4924
|
+
key?: string;
|
|
4925
|
+
url?: string;
|
|
4926
|
+
events?: WebhookEventSubscription[];
|
|
4927
|
+
headers?: Record<string, string>;
|
|
4928
|
+
secret?: string;
|
|
4929
|
+
enabled?: boolean;
|
|
4217
4930
|
}
|
|
4218
4931
|
interface DeleteWebhookParams {
|
|
4219
4932
|
store_id: string;
|
|
4220
4933
|
id: string;
|
|
4221
4934
|
}
|
|
4222
4935
|
interface GetShippingRatesParams {
|
|
4936
|
+
store_id?: string;
|
|
4223
4937
|
order_id: string;
|
|
4224
|
-
|
|
4225
|
-
|
|
4938
|
+
location_id: string;
|
|
4939
|
+
lines: ShippingRateLine[];
|
|
4226
4940
|
parcel: Parcel;
|
|
4227
4941
|
customs_declaration?: CustomsDeclaration;
|
|
4228
4942
|
}
|
|
4229
|
-
interface
|
|
4943
|
+
interface FindShipmentsParams {
|
|
4944
|
+
store_id?: string;
|
|
4945
|
+
order_id: string;
|
|
4946
|
+
limit?: number;
|
|
4947
|
+
cursor?: string;
|
|
4948
|
+
}
|
|
4949
|
+
type FindFulfillmentOrdersParams = FindShipmentsParams;
|
|
4950
|
+
interface GetFulfillmentOrderParams {
|
|
4951
|
+
store_id?: string;
|
|
4952
|
+
order_id: string;
|
|
4953
|
+
fulfillment_order_id: string;
|
|
4954
|
+
}
|
|
4955
|
+
interface GetShipmentParams {
|
|
4956
|
+
store_id?: string;
|
|
4957
|
+
order_id: string;
|
|
4958
|
+
shipment_id: string;
|
|
4959
|
+
}
|
|
4960
|
+
interface CreateShipmentParams {
|
|
4961
|
+
store_id?: string;
|
|
4230
4962
|
order_id: string;
|
|
4963
|
+
shipment_id: string;
|
|
4231
4964
|
rate_id: string;
|
|
4232
|
-
carrier: string;
|
|
4233
|
-
service: string;
|
|
4234
4965
|
location_id: string;
|
|
4235
4966
|
fulfillment_order_id?: string | null;
|
|
4236
4967
|
lines: ShipmentLine[];
|
|
4237
4968
|
}
|
|
4238
|
-
|
|
4239
|
-
|
|
4969
|
+
type RetryShipmentParams = GetShipmentParams;
|
|
4970
|
+
type RequestShippingLabelRefundParams = GetShipmentParams;
|
|
4971
|
+
interface FindShippingLabelRefundsParams extends FindShipmentsParams {
|
|
4240
4972
|
shipment_id: string;
|
|
4241
4973
|
}
|
|
4974
|
+
interface GetShippingLabelRefundParams extends GetShipmentParams {
|
|
4975
|
+
refund_id: string;
|
|
4976
|
+
}
|
|
4977
|
+
type RetryShippingLabelRefundParams = GetShippingLabelRefundParams;
|
|
4978
|
+
interface FindShippingLabelAdjustmentsParams extends FindShipmentsParams {
|
|
4979
|
+
shipment_id: string;
|
|
4980
|
+
}
|
|
4981
|
+
interface FindShippingLabelSettlementsParams extends FindShipmentsParams {
|
|
4982
|
+
shipment_id: string;
|
|
4983
|
+
}
|
|
4984
|
+
interface RetryShippingLabelSettlementParams extends GetShipmentParams {
|
|
4985
|
+
settlement_id: string;
|
|
4986
|
+
}
|
|
4242
4987
|
interface AuthToken {
|
|
4243
4988
|
id: string;
|
|
4244
4989
|
access_token: string;
|
|
@@ -4252,16 +4997,31 @@ interface ContactInfo {
|
|
|
4252
4997
|
id: string;
|
|
4253
4998
|
verified: boolean;
|
|
4254
4999
|
}
|
|
4255
|
-
|
|
5000
|
+
type ContactSessionStatus = "active" | "revoked" | "expired";
|
|
5001
|
+
interface ContactSessionRecord {
|
|
4256
5002
|
id: string;
|
|
4257
|
-
|
|
5003
|
+
store_id: string;
|
|
5004
|
+
contact_id: string;
|
|
5005
|
+
status: ContactSessionStatus;
|
|
4258
5006
|
created_at: number;
|
|
5007
|
+
expires_at: number;
|
|
5008
|
+
revoked_at: number | null;
|
|
5009
|
+
last_seen_at: number | null;
|
|
4259
5010
|
}
|
|
4260
|
-
interface
|
|
4261
|
-
|
|
4262
|
-
|
|
4263
|
-
|
|
4264
|
-
|
|
5011
|
+
interface FindContactSessionsParams {
|
|
5012
|
+
contact_id: string;
|
|
5013
|
+
store_id?: string;
|
|
5014
|
+
limit?: number;
|
|
5015
|
+
cursor?: string;
|
|
5016
|
+
}
|
|
5017
|
+
interface RevokeContactSessionParams {
|
|
5018
|
+
contact_id: string;
|
|
5019
|
+
session_id: string;
|
|
5020
|
+
store_id?: string;
|
|
5021
|
+
}
|
|
5022
|
+
interface RevokeAllContactSessionsParams {
|
|
5023
|
+
contact_id: string;
|
|
5024
|
+
store_id?: string;
|
|
4265
5025
|
}
|
|
4266
5026
|
interface PromoUsage {
|
|
4267
5027
|
promo_code_id: string;
|
|
@@ -4276,17 +5036,9 @@ interface Contact {
|
|
|
4276
5036
|
channels: ContactChannel[];
|
|
4277
5037
|
promo_usage: PromoUsage[];
|
|
4278
5038
|
taxonomies: TaxonomyEntry[];
|
|
4279
|
-
auth_tokens: ContactSessionToken[];
|
|
4280
|
-
verification_codes: ContactVerificationCode[];
|
|
4281
5039
|
created_at: number;
|
|
4282
5040
|
updated_at: number;
|
|
4283
5041
|
}
|
|
4284
|
-
interface ContactDetail {
|
|
4285
|
-
contact: Contact;
|
|
4286
|
-
carts: Cart[];
|
|
4287
|
-
orders: Order[];
|
|
4288
|
-
form_submissions: FormSubmission[];
|
|
4289
|
-
}
|
|
4290
5042
|
interface SetContactEmailParams {
|
|
4291
5043
|
email: string;
|
|
4292
5044
|
store_id?: string;
|
|
@@ -4326,4 +5078,4 @@ interface MergeContactsParams {
|
|
|
4326
5078
|
store_id?: string;
|
|
4327
5079
|
}
|
|
4328
5080
|
|
|
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 };
|
|
5081
|
+
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 PaymentTransactionRequestType 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 ValidationError as fR, type YoutubePrivacy as fS, type OrderFinancialSummary as fT, type PaymentProviderConnection as fU, type PaymentProviderConnectionError as fV, type PaymentProviderConnectionStatus as fW, type OrderPaymentTax as fX, type OrderPaymentTaxLine as fY, type OrderPaymentPromoCode as fZ, type PaymentTransactionProvider 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 WorkflowExecutionInput as g$, type PaymentTransactionType as g0, type PaymentTransactionStatus as g1, type RefundStatus as g2, type CheckoutPaymentAction as g3, type StoreSubscriptionActionError as g4, type StoreSubscriptionActionRequest as g5, type StoreSubscriptionActionResult as g6, type StoreSubscriptionActionStatus as g7, type StoreSubscriptionEffectError as g8, type StoreSubscriptionEffectStatus as g9, type Coordinates as gA, type ProviderWithTimeline as gB, type BlockSchema as gC, type BlockSchemaProperties as gD, type BlockSchemaType as gE, type EntryBlockQuery as gF, type MediaRef as gG, type FieldOperation as gH, type WorkflowNode as gI, type WorkflowEdge as gJ, type WorkflowTriggerNode as gK, type WorkflowHttpNode as gL, type WorkflowDeployWebhookNode as gM, type WorkflowGoogleDriveUploadNode as gN, type WorkflowConnectionData as gO, type WorkflowConnectionType as gP, type GoogleDriveWorkflowConnectionData as gQ, type GoogleDriveWorkflowProfile as gR, type WorkflowSwitchNode as gS, type WorkflowSwitchRule as gT, type WorkflowTransformNode as gU, type WorkflowLoopNode as gV, type WorkflowHttpMethod as gW, type WorkflowEffectEvidence as gX, type WorkflowEffectError as gY, type WorkflowEffectStatus as gZ, type WorkflowEffectType as g_, type StoreSubscriptionEffectType as ga, type StoreSubscriptionPayment as gb, type StoreSubscriptionStatus as gc, type SubscriptionPlanFeature as gd, type SubscriptionPlanFeatureType as ge, type SubscriptionPrice as gf, type ContactListMembershipCancellationSafeError as gg, type ContactListMembershipCancellationStatus as gh, type ContactListMembershipCancellationType as gi, type ContactListMembershipPaymentAttemptSafeError as gj, type ContactListMembershipPaymentAttemptStatus as gk, type ContactListMembershipPaymentAttemptType as gl, type ContactListMembershipRefundSafeError as gm, type ContactListMembershipRefundStatus as gn, type ContactListMembershipRefundType as go, type StorefrontContactListType as gp, type StorefrontContactListPaymentAttemptSummary as gq, type ShippingMethod as gr, type ShippingWeightTier as gs, type Zone as gt, type GeoLocation as gu, type PromoCodeValidation as gv, type Language as gw, type Access as gx, type MediaSize as gy, type MediaResolution as gz, type FormEntry as h, type HistoryEntry as h$, type ExecutionStatus as h0, type NodeResult as h1, type ContactListType as h2, type ContactListPlanCatalogSafeError as h3, type ContactListPlanCatalogStatus as h4, type ContactListPlanCatalogType as h5, type ContactListPlanStatus as h6, type ContactListContentAccess as h7, type ContactListContentAccessStatus as h8, type ContactListContentAccessTarget as h9, type ProviderTimelinePoint as hA, type TimelinePoint as hB, type WorkingHour as hC, type WorkingDay as hD, type SpecificDate as hE, type OrderItem as hF, type OrderItemSnapshot as hG, type ProductLineItem as hH, type ServiceLineItem as hI, type ProductLineItemSnapshot as hJ, type ServiceLineItemSnapshot as hK, type DiscountAllocation as hL, type TaxLine as hM, type LineMoneySnapshot as hN, type OrderItemFulfillmentStatus as hO, type BookingOrderItemStatus as hP, type QuoteLine as hQ, type ProductQuoteLine as hR, type ServiceQuoteLine as hS, type ProductQuoteLineAvailability as hT, type ServiceQuoteLineAvailability as hU, type OrderItemStatus as hV, type OrderStatus as hW, type OrderPaymentSummaryStatus as hX, type OrderFulfillmentStatus as hY, type OrderPaymentStatus as hZ, type OrderCancellationReason as h_, type ContactListManagementContactList as ha, type ContactListManagementMembership as hb, type Event as hc, type EventAction as hd, type ShippingStatus as he, type ShippingProvider as hf, type ShippingRateLine as hg, type ShippingLine as hh, type FulfillmentOrderStatus as hi, type FulfillmentOrderRequestStatus as hj, type FulfillmentOrderLine as hk, type OrderFulfillmentSummary as hl, type Parcel as hm, type ShippingLabelStatus as hn, type ShippingLabelRefundStatus as ho, type ShippingLabelRefundReconciliationStatus as hp, type ShippingLabelAdjustmentStatus as hq, type ShippingLabelSettlementDirection as hr, type ShippingLabelSettlementStatus as hs, type ShippingLabelSettlementType as ht, type ShipmentAllocationStatus as hu, type ShipmentLine as hv, type CustomsItem as hw, type CustomsDeclaration as hx, type GeoLocationBlock as hy, type ServiceDuration as hz, type Price as i, type ProviderStatus as i$, type DigitalAccessGrantStatus as i0, type ProductInventory as i1, type DigitalAssetType as i2, type DigitalAssetStatus as i3, type DigitalDeliveryPolicy as i4, type DigitalAsset as i5, type GalleryItem as i6, type EmailTemplateType as i7, type EmailRecipients as i8, type EmailSend as i9, type MailboxConnectionSecurity as iA, type MailboxPreset as iB, type MailboxSyncStatus as iC, type GoogleMailboxProvider as iD, type SmtpImapMailboxProviderInput as iE, type SmtpImapMailboxProvider as iF, type OutreachStep as iG, type OutreachStepType as iH, type ManualTaskContinueBehavior as iI, type CampaignManualTaskOutcome as iJ, type OutreachPersonalizationCounters as iK, type OutreachPersonalizationState as iL, type CampaignLaunchState as iM, type CampaignEnrollmentImportResult$1 as iN, type LeadResearchRunStatus as iO, type LeadScores as iP, type LeadInsight as iQ, type CampaignRoute as iR, type ChannelMessage as iS, type LeadEmailClassification as iT, type LeadValidationCheck as iU, type LeadValidationCheckStatus as iV, type LeadResearchMessageRole as iW, type ResearchContactListMember as iX, type Discount as iY, type Condition as iZ, type ServiceStatus as i_, type EmailSendDeliveryResult as ia, type EmailDeliveryError as ib, type EmailDeliveryErrorKind as ic, type EmailDeliveryStatus as id, type EmailDeliveryType as ie, type EmailSendTemplateData as ig, type FormSchemaType as ih, type FormFieldType as ii, type TaxonomyEntry as ij, type TaxonomyQuery as ik, type TaxonomySchema as il, type TaxonomySchemaType as im, type TaxonomyField as io, type TaxonomyFieldQuery as ip, type ContactSessionRecord$1 as iq, type ContactSessionStatus$1 as ir, type ContactChannel as is, type ChannelType as it, type OpportunityStage as iu, type OpportunityType as iv, type OpportunitySource as iw, type ActionData as ix, type ActionContext as iy, type ContactListMembership as iz, type OrderCheckoutResult as j, type YoutubeChannelContent as j$, type ProductStatus as j0, type ContactStatus as j1, type ContactListStatus as j2, type ContactListSource as j3, type ContactListMembershipStatus as j4, type MailboxStatus as j5, type CampaignStatus as j6, type CampaignLaunchStatus as j7, type CampaignEnrollmentStatus as j8, type CampaignEnrollmentImportSource as j9, type Slot as jA, type ConditionValue as jB, type ProductQuoteItemInput as jC, type ServiceQuoteItemInput as jD, type OrderQuoteItemInput as jE, type TrustedProductCheckoutItemInput as jF, type TrustedServiceCheckoutItemInput as jG, type TrustedOrderCheckoutItemInput as jH, type SystemTemplateKey as jI, type ImportFieldMapping as jJ, type ImportPreviewRow as jK, type ImportContactsPreviewParams as jL, type WebhookDeliveryStatus as jM, type ContactListPlanPriceInput as jN, type ImportContactRowInput as jO, type ImportContactRowError as jP, type ImportContactRowResult as jQ, type ImportContactListRowResult as jR, type MarketZoneInput as jS, type CreateProductVariantInput as jT, type UpdateProductVariantInput as jU, type ProductInventoryInput as jV, type IntervalPeriod as jW, type SubscriptionInterval as jX, type PriceProvider as jY, type FacebookPageContent as jZ, type InstagramBusinessContent as j_, type CampaignMessageCopySource as ja, type CampaignMessageDirection as jb, type CampaignMessageType as jc, type CampaignMessageStatus as jd, type OutreachPersonalizationStatus as je, type OutreachThreadMode as jf, type SuppressionStatus as jg, type SuppressionTargetType as jh, type SuppressionScopeType as ji, type SuppressionReason as jj, type SuppressionSource as jk, type WorkflowStatus as jl, type MutableWorkflowStatus as jm, type WorkflowSendEmailNode as jn, type PromoCodeStatus as jo, type CollectionStatus as jp, type EntryStatus as jq, type EmailTemplateStatus as jr, type EmailTemplateVariable as js, type EmailTemplateVariableSource as jt, type FormStatus as ju, type TaxonomyStatus as jv, PaymentMethodType as jw, type AvailabilitySlot as jx, type DaySlots as jy, type ProviderAvailability as jz, type Address as k, type XAccountContent as k0, type StoreEmails as k1, type BlockType as k2, type GeoLocationBlockProperties as k3, type AccountApiTokenStatus as k4, type AccountLifecycle as k5, type GoogleMailboxProfile as k6, type TimeRange as k7, type PromoUsage$1 as k8, type ContactChannelConsentStatus as k9, type ActionLocation as ka, type ActionDevice as kb, type ActionSession as kc, type SocialActionAuthor as kd, type OrderCheckoutParams as ke, type LoginAccountParams as kf, type GetAnalyticsParams as kg, type GetAnalyticsHealthParams as kh, type GetDeliveryStatsParams as ki, type StoreRole as kj, type AccountSortField as kk, type ServiceProviderInput as kl, type SearchOrderServiceItemsParams as km, type PreviewEmailTemplateWarning as kn, type LogoutParams as ko, type SetupAnalyticsParams as kp, type ContactInfo as kq, type SetContactEmailParams as kr, 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 };
|