arky-sdk 0.9.6 → 0.9.11
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 +113 -194
- package/dist/{admin-DjYydKeB.d.ts → admin-BKXmDIVk.d.ts} +412 -405
- package/dist/{admin-DlL8mCxL.d.cts → admin-CAwQrMOX.d.cts} +412 -405
- package/dist/admin.cjs +767 -373
- 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 +767 -373
- package/dist/admin.js.map +1 -1
- package/dist/{api-BbBHcd4p.d.cts → api-DJI3S6XA.d.cts} +1440 -525
- package/dist/{api-BbBHcd4p.d.ts → api-DJI3S6XA.d.ts} +1440 -525
- package/dist/{index-CZxubTDA.d.ts → index-BaSBPLdF.d.ts} +1 -1
- package/dist/{index-nCF3Z6Af.d.cts → index-u-gjHnKs.d.cts} +1 -1
- package/dist/index.cjs +874 -471
- 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 +874 -471
- package/dist/index.js.map +1 -1
- package/dist/storefront.cjs +493 -300
- package/dist/storefront.cjs.map +1 -1
- package/dist/storefront.d.cts +172 -89
- package/dist/storefront.d.ts +172 -89
- package/dist/storefront.js +491 -299
- 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.d.cts +2 -2
- package/dist/utils.d.ts +2 -2
- package/package.json +7 -10
- package/scripts/contract-admin.mjs +137 -0
- package/scripts/contract-storefront.mjs +296 -0
- package/dist/storefront-store.cjs +0 -2809
- package/dist/storefront-store.cjs.map +0 -1
- package/dist/storefront-store.d.cts +0 -5
- package/dist/storefront-store.d.ts +0 -5
- package/dist/storefront-store.js +0 -2807
- package/dist/storefront-store.js.map +0 -1
- package/scripts/smoke-store.mjs +0 -41
|
@@ -28,17 +28,71 @@ interface OrderPaymentPromoCode {
|
|
|
28
28
|
}
|
|
29
29
|
type OrderPaymentProvider = {
|
|
30
30
|
type: "stripe";
|
|
31
|
-
|
|
32
|
-
payment_intent_id?: string;
|
|
31
|
+
stripe_customer_id: string;
|
|
32
|
+
payment_intent_id?: string | null;
|
|
33
|
+
payment_provider_id?: string | null;
|
|
34
|
+
connected_account_id?: string | null;
|
|
33
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";
|
|
40
|
+
interface PaymentTransaction {
|
|
41
|
+
id: string;
|
|
42
|
+
payment_id?: string | null;
|
|
43
|
+
order_id?: string | null;
|
|
44
|
+
parent_transaction_id?: string | null;
|
|
45
|
+
type: PaymentTransactionType;
|
|
46
|
+
status: PaymentTransactionStatus;
|
|
47
|
+
amount: number;
|
|
48
|
+
currency: string;
|
|
49
|
+
provider: PaymentTransactionProvider;
|
|
50
|
+
provider_transaction_id?: string | null;
|
|
51
|
+
provider_payment_id?: string | null;
|
|
52
|
+
provider_status?: string | null;
|
|
53
|
+
error_code?: string | null;
|
|
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;
|
|
63
|
+
created_at: number;
|
|
64
|
+
}
|
|
34
65
|
interface OrderPaymentRefund {
|
|
35
66
|
id: string;
|
|
67
|
+
type: RefundType;
|
|
36
68
|
total: number;
|
|
37
|
-
|
|
38
|
-
|
|
69
|
+
tax_amount: number;
|
|
70
|
+
shipping_amount?: number | null;
|
|
71
|
+
provider_refund_id?: string | null;
|
|
72
|
+
status: RefundStatus;
|
|
73
|
+
error?: OrderRefundError | null;
|
|
74
|
+
reason?: string | null;
|
|
75
|
+
lines: RefundLine[];
|
|
76
|
+
transaction_ids: string[];
|
|
39
77
|
created_at: number;
|
|
40
78
|
}
|
|
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
|
+
};
|
|
41
94
|
interface OrderPayment {
|
|
95
|
+
status: OrderPaymentStatus;
|
|
42
96
|
currency: string;
|
|
43
97
|
market: string;
|
|
44
98
|
subtotal: number;
|
|
@@ -46,12 +100,26 @@ interface OrderPayment {
|
|
|
46
100
|
discount: number;
|
|
47
101
|
total: number;
|
|
48
102
|
paid: number;
|
|
103
|
+
authorized_amount: number;
|
|
104
|
+
captured_amount: number;
|
|
105
|
+
refunded_amount: number;
|
|
106
|
+
voided_amount: number;
|
|
107
|
+
capture_method: PaymentCaptureMethod;
|
|
49
108
|
tax?: OrderPaymentTax;
|
|
50
109
|
promo_code?: OrderPaymentPromoCode;
|
|
51
110
|
provider?: OrderPaymentProvider;
|
|
52
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;
|
|
53
121
|
zone_id?: string;
|
|
54
|
-
|
|
122
|
+
payment_method_key?: string;
|
|
55
123
|
shipping_method_id?: string;
|
|
56
124
|
method_type: PaymentMethodType;
|
|
57
125
|
}
|
|
@@ -67,6 +135,7 @@ interface OrderQuote {
|
|
|
67
135
|
market: string;
|
|
68
136
|
zone: Zone | null;
|
|
69
137
|
items: QuoteLine[];
|
|
138
|
+
shipping_lines: ShippingLine[];
|
|
70
139
|
subtotal: number;
|
|
71
140
|
shipping: number;
|
|
72
141
|
discount: number;
|
|
@@ -84,7 +153,7 @@ interface Price {
|
|
|
84
153
|
market: string;
|
|
85
154
|
amount: number;
|
|
86
155
|
compare_at?: number;
|
|
87
|
-
|
|
156
|
+
contact_list_id?: string;
|
|
88
157
|
}
|
|
89
158
|
type IntervalPeriod = "month" | "year";
|
|
90
159
|
interface SubscriptionInterval {
|
|
@@ -114,11 +183,12 @@ interface Address {
|
|
|
114
183
|
phone?: string | null;
|
|
115
184
|
email?: string | null;
|
|
116
185
|
}
|
|
186
|
+
interface Coordinates {
|
|
187
|
+
lat: number;
|
|
188
|
+
lon: number;
|
|
189
|
+
}
|
|
117
190
|
interface GeoLocation {
|
|
118
|
-
coordinates?:
|
|
119
|
-
lat: number;
|
|
120
|
-
lon: number;
|
|
121
|
-
} | null;
|
|
191
|
+
coordinates?: Coordinates | null;
|
|
122
192
|
label?: string | null;
|
|
123
193
|
}
|
|
124
194
|
interface ZoneLocation {
|
|
@@ -134,6 +204,7 @@ interface EshopCartItem {
|
|
|
134
204
|
product_name: string;
|
|
135
205
|
product_slug: string;
|
|
136
206
|
variant_attributes: Record<string, any>;
|
|
207
|
+
requires_shipping: boolean;
|
|
137
208
|
price: Price;
|
|
138
209
|
quantity: number;
|
|
139
210
|
added_at: number;
|
|
@@ -144,7 +215,7 @@ type CartOrigin = "storefront" | "admin";
|
|
|
144
215
|
interface Cart {
|
|
145
216
|
id: string;
|
|
146
217
|
store_id: string;
|
|
147
|
-
|
|
218
|
+
contact_id: string;
|
|
148
219
|
token: string;
|
|
149
220
|
status: CartStatus;
|
|
150
221
|
origin: CartOrigin;
|
|
@@ -155,211 +226,299 @@ interface Cart {
|
|
|
155
226
|
billing_address?: Address | null;
|
|
156
227
|
forms: FormEntry[];
|
|
157
228
|
promo_code?: string | null;
|
|
158
|
-
|
|
229
|
+
payment_method_key?: string | null;
|
|
159
230
|
shipping_method_id?: string | null;
|
|
160
231
|
quote_snapshot?: OrderQuote | null;
|
|
161
232
|
converted_order_id?: string | null;
|
|
162
233
|
item_count: number;
|
|
163
|
-
|
|
234
|
+
last_action_at: number;
|
|
164
235
|
abandoned_at?: number | null;
|
|
165
236
|
recovery_sent_at?: number | null;
|
|
166
237
|
created_at: number;
|
|
167
238
|
updated_at: number;
|
|
168
239
|
}
|
|
169
|
-
|
|
170
|
-
type: "stripe";
|
|
171
|
-
secret_key?: string;
|
|
172
|
-
publishable_key: string;
|
|
173
|
-
webhook_secret?: string;
|
|
174
|
-
currency: string;
|
|
175
|
-
} | {
|
|
176
|
-
type: "shippo";
|
|
177
|
-
api_token?: string;
|
|
178
|
-
} | {
|
|
179
|
-
type: "google";
|
|
180
|
-
client_id?: string;
|
|
181
|
-
client_secret?: string;
|
|
240
|
+
interface SocialOAuthCredential {
|
|
182
241
|
access_token?: string;
|
|
183
|
-
refresh_token?: string;
|
|
184
|
-
|
|
242
|
+
refresh_token?: string | null;
|
|
243
|
+
expires_at?: number | null;
|
|
185
244
|
scopes: string[];
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
type: "
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
type: "
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
api_key?: string;
|
|
271
|
-
} | {
|
|
272
|
-
type: "eleven_labs";
|
|
273
|
-
api_key?: string;
|
|
274
|
-
} | {
|
|
275
|
-
type: "active_campaign";
|
|
276
|
-
api_key?: string;
|
|
277
|
-
account_url: string;
|
|
278
|
-
} | {
|
|
279
|
-
type: "shopify";
|
|
280
|
-
api_key?: string;
|
|
281
|
-
store_domain: string;
|
|
282
|
-
} | {
|
|
283
|
-
type: "supabase";
|
|
284
|
-
api_key?: string;
|
|
285
|
-
project_url: string;
|
|
286
|
-
} | {
|
|
287
|
-
type: "mailchimp";
|
|
288
|
-
api_key?: string;
|
|
289
|
-
} | {
|
|
290
|
-
type: "twilio";
|
|
291
|
-
account_sid?: string;
|
|
292
|
-
auth_token?: string;
|
|
293
|
-
} | {
|
|
294
|
-
type: "jira";
|
|
295
|
-
email?: string;
|
|
296
|
-
api_token?: string;
|
|
297
|
-
domain: string;
|
|
298
|
-
} | {
|
|
299
|
-
type: "woo_commerce";
|
|
300
|
-
consumer_key?: string;
|
|
301
|
-
consumer_secret?: string;
|
|
302
|
-
store_url: string;
|
|
303
|
-
} | {
|
|
304
|
-
type: "freshdesk";
|
|
305
|
-
api_key?: string;
|
|
306
|
-
domain: string;
|
|
307
|
-
} | {
|
|
308
|
-
type: "zendesk";
|
|
309
|
-
api_token?: string;
|
|
310
|
-
email?: string;
|
|
311
|
-
subdomain: string;
|
|
312
|
-
} | {
|
|
313
|
-
type: "salesforce";
|
|
314
|
-
access_token?: string;
|
|
315
|
-
instance_url: string;
|
|
316
|
-
} | {
|
|
317
|
-
type: "zoom";
|
|
318
|
-
api_key?: string;
|
|
319
|
-
} | {
|
|
320
|
-
type: "microsoft_teams";
|
|
321
|
-
api_key?: string;
|
|
322
|
-
} | {
|
|
323
|
-
type: "firebase";
|
|
324
|
-
api_key?: string;
|
|
325
|
-
} | {
|
|
326
|
-
type: "arky";
|
|
327
|
-
api_key?: string;
|
|
328
|
-
} | {
|
|
329
|
-
type: "vercel_deploy_hook";
|
|
330
|
-
url?: string;
|
|
331
|
-
} | {
|
|
332
|
-
type: "netlify_deploy_hook";
|
|
333
|
-
url?: string;
|
|
334
|
-
} | {
|
|
335
|
-
type: "cloudflare_deploy_hook";
|
|
336
|
-
url?: string;
|
|
245
|
+
}
|
|
246
|
+
interface SocialDestinationMetadata {
|
|
247
|
+
external_account_id: string;
|
|
248
|
+
external_account_name: string;
|
|
249
|
+
handle?: string | null;
|
|
250
|
+
avatar_url?: string | null;
|
|
251
|
+
}
|
|
252
|
+
type SocialProviderType = "facebook_page" | "instagram_business" | "youtube_channel" | "tiktok_account" | "x_account";
|
|
253
|
+
type SocialPublicationStatus = "draft" | "scheduled" | "publishing" | "published" | "failed" | "unknown" | "cancelled";
|
|
254
|
+
type YoutubePrivacy = "public" | "unlisted" | "private";
|
|
255
|
+
type TiktokPrivacy = "public" | "friends" | "private";
|
|
256
|
+
type InstagramPlacement = "feed" | "reel" | "story";
|
|
257
|
+
interface FacebookPageContent {
|
|
258
|
+
type: "facebook_page";
|
|
259
|
+
text?: string | null;
|
|
260
|
+
media_ids: string[];
|
|
261
|
+
link_url?: string | null;
|
|
262
|
+
}
|
|
263
|
+
interface InstagramBusinessContent {
|
|
264
|
+
type: "instagram_business";
|
|
265
|
+
placement?: InstagramPlacement | null;
|
|
266
|
+
share_to_feed?: boolean | null;
|
|
267
|
+
caption?: string | null;
|
|
268
|
+
media_ids: string[];
|
|
269
|
+
}
|
|
270
|
+
interface YoutubeChannelContent {
|
|
271
|
+
type: "youtube_channel";
|
|
272
|
+
title: string;
|
|
273
|
+
description?: string | null;
|
|
274
|
+
video_media_id: string;
|
|
275
|
+
privacy: YoutubePrivacy;
|
|
276
|
+
}
|
|
277
|
+
interface TiktokAccountContent {
|
|
278
|
+
type: "tiktok_account";
|
|
279
|
+
caption?: string | null;
|
|
280
|
+
video_media_id: string;
|
|
281
|
+
privacy: TiktokPrivacy;
|
|
282
|
+
}
|
|
283
|
+
interface XAccountContent {
|
|
284
|
+
type: "x_account";
|
|
285
|
+
text?: string | null;
|
|
286
|
+
media_ids: string[];
|
|
287
|
+
}
|
|
288
|
+
type SocialPublicationContent = FacebookPageContent | InstagramBusinessContent | YoutubeChannelContent | TiktokAccountContent | XAccountContent;
|
|
289
|
+
interface ValidationError {
|
|
290
|
+
field: string;
|
|
291
|
+
error: string;
|
|
292
|
+
}
|
|
293
|
+
interface SocialPublicationValidation {
|
|
294
|
+
valid: boolean;
|
|
295
|
+
errors: ValidationError[];
|
|
296
|
+
warnings: ValidationError[];
|
|
297
|
+
}
|
|
298
|
+
interface SocialPublication {
|
|
299
|
+
id: string;
|
|
300
|
+
store_id: string;
|
|
301
|
+
social_account_id: string;
|
|
302
|
+
key: string;
|
|
303
|
+
status: SocialPublicationStatus;
|
|
304
|
+
content: SocialPublicationContent;
|
|
305
|
+
scheduled_at: number;
|
|
306
|
+
published_at?: number | null;
|
|
307
|
+
provider_post_id?: string | null;
|
|
308
|
+
provider_post_url?: string | null;
|
|
309
|
+
error_code?: string | null;
|
|
310
|
+
error_message?: string | null;
|
|
311
|
+
attempt_count: number;
|
|
312
|
+
last_attempt_at?: number | null;
|
|
313
|
+
created_at: number;
|
|
314
|
+
updated_at: number;
|
|
315
|
+
}
|
|
316
|
+
interface SocialPublicationMutationResponse {
|
|
317
|
+
publication: SocialPublication;
|
|
318
|
+
validation: SocialPublicationValidation;
|
|
319
|
+
publish_requested: boolean;
|
|
320
|
+
}
|
|
321
|
+
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;
|
|
337
329
|
} | {
|
|
338
|
-
type: "
|
|
339
|
-
|
|
330
|
+
type: "unknown_outcome";
|
|
331
|
+
message: string;
|
|
332
|
+
at: number;
|
|
340
333
|
};
|
|
341
|
-
|
|
334
|
+
type SocialPublicationCommentIntent = "lead" | "support" | "complaint" | "question" | "praise" | "spam" | "general";
|
|
335
|
+
type SocialPublicationCommentPriority = "urgent" | "high" | "normal" | "low";
|
|
336
|
+
interface SocialPublicationComment {
|
|
337
|
+
id: string;
|
|
338
|
+
store_id: string;
|
|
339
|
+
publication_id: string;
|
|
340
|
+
social_account_id: string;
|
|
341
|
+
provider_type: SocialProviderType;
|
|
342
|
+
provider_post_id?: string | null;
|
|
343
|
+
provider_comment_id: string;
|
|
344
|
+
provider_parent_comment_id?: string | null;
|
|
345
|
+
parent_comment_id?: string | null;
|
|
346
|
+
root_comment_id?: string | null;
|
|
347
|
+
depth: number;
|
|
348
|
+
provider_reply_count?: number | null;
|
|
349
|
+
synced_reply_count: number;
|
|
350
|
+
has_more_replies: boolean;
|
|
351
|
+
thread_last_synced_at?: number | null;
|
|
352
|
+
author_is_channel: boolean;
|
|
353
|
+
contact_id?: string | null;
|
|
354
|
+
action_id?: string | null;
|
|
355
|
+
opportunity_action_id?: string | null;
|
|
356
|
+
author_name?: string | null;
|
|
357
|
+
author_handle?: string | null;
|
|
358
|
+
author_provider_user_id?: string | null;
|
|
359
|
+
text: string;
|
|
360
|
+
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
|
+
provider_created_at?: number | null;
|
|
369
|
+
last_synced_at: number;
|
|
370
|
+
replied_at?: number | null;
|
|
371
|
+
classification_intent?: SocialPublicationCommentIntent | null;
|
|
372
|
+
classification_priority?: SocialPublicationCommentPriority | null;
|
|
373
|
+
classification_confidence?: number | null;
|
|
374
|
+
classification_summary?: string | null;
|
|
375
|
+
classification_reason?: string | null;
|
|
376
|
+
suggested_reply?: string | null;
|
|
377
|
+
classified_at?: number | null;
|
|
378
|
+
classification_model?: string | null;
|
|
379
|
+
created_at: number;
|
|
380
|
+
updated_at: number;
|
|
381
|
+
}
|
|
382
|
+
interface SocialPublicationMetricSnapshot {
|
|
383
|
+
id: string;
|
|
384
|
+
store_id: string;
|
|
385
|
+
publication_id: string;
|
|
386
|
+
social_account_id: string;
|
|
387
|
+
provider_type: SocialProviderType;
|
|
388
|
+
provider_post_id?: string | null;
|
|
389
|
+
metrics: Record<string, number>;
|
|
390
|
+
collected_at: number;
|
|
391
|
+
created_at: number;
|
|
392
|
+
updated_at: number;
|
|
393
|
+
}
|
|
394
|
+
interface SocialPublicationCommentReply {
|
|
395
|
+
provider_comment_id: string;
|
|
396
|
+
provider_comment_url?: string | null;
|
|
397
|
+
}
|
|
398
|
+
interface SocialPublicationCommentReplyResponse {
|
|
399
|
+
comment: SocialPublicationComment;
|
|
400
|
+
reply: SocialPublicationCommentReply;
|
|
401
|
+
}
|
|
402
|
+
interface SocialPublicationEngagementSyncResult {
|
|
403
|
+
publications_scanned: number;
|
|
404
|
+
comment_pages_scanned: number;
|
|
405
|
+
comments_synced: number;
|
|
406
|
+
metrics_synced: number;
|
|
407
|
+
comments: SocialPublicationComment[];
|
|
408
|
+
metrics: SocialPublicationMetricSnapshot[];
|
|
409
|
+
skipped_publication_ids: string[];
|
|
410
|
+
errors: string[];
|
|
411
|
+
}
|
|
412
|
+
interface SocialPublicationCommentClassificationResult {
|
|
413
|
+
comments_scanned: number;
|
|
414
|
+
comments_classified: number;
|
|
415
|
+
comments_skipped: number;
|
|
416
|
+
comments: SocialPublicationComment[];
|
|
417
|
+
skipped_comment_ids: string[];
|
|
418
|
+
errors: string[];
|
|
419
|
+
}
|
|
420
|
+
interface SocialEngagementCapabilities {
|
|
421
|
+
read_comments: boolean;
|
|
422
|
+
reply_to_comments: boolean;
|
|
423
|
+
}
|
|
424
|
+
interface SocialAnalyticsCapabilities {
|
|
425
|
+
read_post_metrics: boolean;
|
|
426
|
+
}
|
|
427
|
+
interface SocialProviderCapability {
|
|
428
|
+
provider_type: SocialProviderType;
|
|
429
|
+
display_name: string;
|
|
430
|
+
icon_key: string;
|
|
431
|
+
required_scopes: string[];
|
|
432
|
+
media_requirements: string[];
|
|
433
|
+
engagement: SocialEngagementCapabilities;
|
|
434
|
+
analytics: SocialAnalyticsCapabilities;
|
|
435
|
+
}
|
|
436
|
+
interface SocialConnectResponse {
|
|
437
|
+
authorization_url: string;
|
|
438
|
+
state: string;
|
|
439
|
+
}
|
|
440
|
+
type SocialOAuthCallbackStatus = "code_received" | "connected" | "selection_required";
|
|
441
|
+
interface SocialOAuthDestinationOption extends SocialDestinationMetadata {
|
|
442
|
+
candidate_id: string;
|
|
443
|
+
}
|
|
444
|
+
interface SocialOAuthCallbackResponse {
|
|
445
|
+
status: SocialOAuthCallbackStatus;
|
|
446
|
+
store_id: string;
|
|
447
|
+
provider_type: SocialProviderType;
|
|
448
|
+
account_id: string;
|
|
449
|
+
attempt_id?: string | null;
|
|
450
|
+
social_account_id?: string | null;
|
|
451
|
+
destination?: SocialDestinationMetadata | null;
|
|
452
|
+
options: SocialOAuthDestinationOption[];
|
|
453
|
+
message: string;
|
|
454
|
+
}
|
|
455
|
+
type BuildHookType = "vercel" | "netlify" | "cloudflare" | "custom";
|
|
456
|
+
interface BuildHook {
|
|
342
457
|
id: string;
|
|
343
458
|
store_id: string;
|
|
344
459
|
key: string;
|
|
345
|
-
|
|
460
|
+
type: BuildHookType;
|
|
461
|
+
url: string;
|
|
462
|
+
headers: Record<string, string>;
|
|
463
|
+
active: boolean;
|
|
346
464
|
created_at: number;
|
|
347
465
|
updated_at: number;
|
|
348
466
|
}
|
|
467
|
+
interface SocialAccount {
|
|
468
|
+
id: string;
|
|
469
|
+
store_id: string;
|
|
470
|
+
key: string;
|
|
471
|
+
provider_type: SocialProviderType;
|
|
472
|
+
credential: SocialOAuthCredential;
|
|
473
|
+
destination: SocialDestinationMetadata;
|
|
474
|
+
created_at: number;
|
|
475
|
+
updated_at: number;
|
|
476
|
+
}
|
|
477
|
+
interface PaymentProvider {
|
|
478
|
+
id: string;
|
|
479
|
+
store_id: string;
|
|
480
|
+
key: string;
|
|
481
|
+
provider: {
|
|
482
|
+
type: "stripe";
|
|
483
|
+
onboarding_status: string;
|
|
484
|
+
charges_enabled: boolean;
|
|
485
|
+
payouts_enabled: boolean;
|
|
486
|
+
details_submitted: boolean;
|
|
487
|
+
application_fee_bps?: number | null;
|
|
488
|
+
currency: string;
|
|
489
|
+
};
|
|
490
|
+
created_at: number;
|
|
491
|
+
updated_at: number;
|
|
492
|
+
}
|
|
493
|
+
interface PaymentStoreConfig {
|
|
494
|
+
provider: "stripe";
|
|
495
|
+
publishable_key: string;
|
|
496
|
+
currency: string;
|
|
497
|
+
}
|
|
498
|
+
type StoreRuntimeConfig = PaymentStoreConfig | [] | null;
|
|
499
|
+
interface StripePaymentProviderConnectResponse {
|
|
500
|
+
provider: PaymentProvider;
|
|
501
|
+
onboarding_url: string;
|
|
502
|
+
}
|
|
349
503
|
interface ShippingWeightTier {
|
|
350
504
|
up_to_grams: number;
|
|
351
505
|
amount: number;
|
|
352
506
|
}
|
|
353
|
-
|
|
507
|
+
type PaymentMethod = {
|
|
508
|
+
type: "cash";
|
|
354
509
|
id: string;
|
|
355
|
-
|
|
356
|
-
}
|
|
510
|
+
key: string;
|
|
511
|
+
} | {
|
|
512
|
+
type: "credit_card";
|
|
513
|
+
id: string;
|
|
514
|
+
key: string;
|
|
515
|
+
payment_provider_id: string;
|
|
516
|
+
};
|
|
357
517
|
interface ShippingMethod {
|
|
358
518
|
id: string;
|
|
359
519
|
taxable: boolean;
|
|
360
520
|
eta_text: string;
|
|
361
521
|
location_id?: string;
|
|
362
|
-
integration_id?: string;
|
|
363
522
|
amount: number;
|
|
364
523
|
free_above?: number;
|
|
365
524
|
weight_tiers?: ShippingWeightTier[];
|
|
@@ -388,12 +547,45 @@ interface ProductInventory {
|
|
|
388
547
|
reserved: number;
|
|
389
548
|
updated_at: number;
|
|
390
549
|
}
|
|
550
|
+
type DigitalAssetType = "file" | "external_link";
|
|
551
|
+
type DigitalAssetStatus = "active" | "archived";
|
|
552
|
+
type DigitalDeliveryPolicy = "automatic_after_payment" | "manual";
|
|
553
|
+
interface DigitalAsset {
|
|
554
|
+
id: string;
|
|
555
|
+
name: string;
|
|
556
|
+
type: DigitalAssetType;
|
|
557
|
+
storage_ref?: string | null;
|
|
558
|
+
external_url?: string | null;
|
|
559
|
+
status: DigitalAssetStatus;
|
|
560
|
+
}
|
|
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";
|
|
391
577
|
interface ProductVariant {
|
|
392
578
|
id: string;
|
|
393
579
|
sku?: string;
|
|
394
580
|
prices: Price[];
|
|
395
581
|
inventory: ProductInventory[];
|
|
396
582
|
attributes: Block[];
|
|
583
|
+
requires_shipping: boolean;
|
|
584
|
+
digital_delivery_policy: DigitalDeliveryPolicy;
|
|
585
|
+
digital_assets: DigitalAsset[];
|
|
586
|
+
download_limit?: number | null;
|
|
587
|
+
access_expires_after_days?: number | null;
|
|
588
|
+
tax_category_id?: string | null;
|
|
397
589
|
weight?: number;
|
|
398
590
|
}
|
|
399
591
|
interface Product {
|
|
@@ -403,7 +595,6 @@ interface Product {
|
|
|
403
595
|
slug: Record<string, string>;
|
|
404
596
|
blocks: Block[];
|
|
405
597
|
taxonomies: TaxonomyEntry[];
|
|
406
|
-
filters?: TaxonomyEntry[];
|
|
407
598
|
variants: ProductVariant[];
|
|
408
599
|
status: ProductStatus;
|
|
409
600
|
created_at: number;
|
|
@@ -419,13 +610,49 @@ interface ProductLineItemSnapshot {
|
|
|
419
610
|
product_key: string;
|
|
420
611
|
variant_sku?: string;
|
|
421
612
|
variant_attributes: Block[];
|
|
613
|
+
requires_shipping: boolean;
|
|
614
|
+
tax_category_id?: string | null;
|
|
422
615
|
price: Price;
|
|
423
616
|
}
|
|
424
617
|
interface ServiceLineItemSnapshot {
|
|
425
618
|
service_key: string;
|
|
426
619
|
provider_key: string;
|
|
620
|
+
tax_category_id?: string | null;
|
|
427
621
|
price: Price;
|
|
428
622
|
}
|
|
623
|
+
interface DiscountAllocation {
|
|
624
|
+
discount_application_id?: string | null;
|
|
625
|
+
amount: number;
|
|
626
|
+
}
|
|
627
|
+
interface TaxLine {
|
|
628
|
+
id: string;
|
|
629
|
+
title: string;
|
|
630
|
+
rate_bps: number;
|
|
631
|
+
amount: number;
|
|
632
|
+
taxable_base: number;
|
|
633
|
+
included_in_price: boolean;
|
|
634
|
+
jurisdiction_country?: string | null;
|
|
635
|
+
jurisdiction_region?: string | null;
|
|
636
|
+
jurisdiction_city?: string | null;
|
|
637
|
+
jurisdiction_postal_code?: string | null;
|
|
638
|
+
tax_category_id?: string | null;
|
|
639
|
+
tax_rate_id?: string | null;
|
|
640
|
+
source: string;
|
|
641
|
+
provider_tax_id?: string | null;
|
|
642
|
+
provider_tax_line_id?: string | null;
|
|
643
|
+
}
|
|
644
|
+
interface LineMoneySnapshot {
|
|
645
|
+
unit_price: number;
|
|
646
|
+
subtotal: number;
|
|
647
|
+
discount_allocations: DiscountAllocation[];
|
|
648
|
+
discount_total: number;
|
|
649
|
+
taxable_base: number;
|
|
650
|
+
tax_lines: TaxLine[];
|
|
651
|
+
tax_total: number;
|
|
652
|
+
total: number;
|
|
653
|
+
}
|
|
654
|
+
type OrderItemFulfillmentStatus = "unfulfilled" | "partially_fulfilled" | "fulfilled" | "not_required";
|
|
655
|
+
type BookingOrderItemStatus = "scheduled" | "completed" | "no_show" | "cancelled";
|
|
429
656
|
type OrderItemSnapshot = ProductLineItemSnapshot | ServiceLineItemSnapshot;
|
|
430
657
|
type ProductQuoteLineAvailability = {
|
|
431
658
|
ok: true;
|
|
@@ -452,6 +679,7 @@ interface ProductQuoteLine {
|
|
|
452
679
|
discount: number;
|
|
453
680
|
tax: number;
|
|
454
681
|
total: number;
|
|
682
|
+
money: LineMoneySnapshot;
|
|
455
683
|
snapshot: ProductLineItemSnapshot;
|
|
456
684
|
availability: ProductQuoteLineAvailability;
|
|
457
685
|
}
|
|
@@ -468,6 +696,7 @@ interface ServiceQuoteLine {
|
|
|
468
696
|
discount: number;
|
|
469
697
|
tax: number;
|
|
470
698
|
total: number;
|
|
699
|
+
money: LineMoneySnapshot;
|
|
471
700
|
snapshot: ServiceLineItemSnapshot;
|
|
472
701
|
availability: ServiceQuoteLineAvailability;
|
|
473
702
|
}
|
|
@@ -478,9 +707,15 @@ interface ProductLineItem {
|
|
|
478
707
|
product_id: string;
|
|
479
708
|
variant_id: string;
|
|
480
709
|
quantity: number;
|
|
710
|
+
cancelled_quantity: number;
|
|
711
|
+
fulfilled_quantity: number;
|
|
712
|
+
returned_quantity: number;
|
|
713
|
+
refunded_quantity: number;
|
|
481
714
|
location_id?: string;
|
|
482
715
|
snapshot: ProductLineItemSnapshot;
|
|
483
716
|
status: OrderItemStatus;
|
|
717
|
+
fulfillment_status: OrderItemFulfillmentStatus;
|
|
718
|
+
money: LineMoneySnapshot;
|
|
484
719
|
}
|
|
485
720
|
interface ServiceLineItem {
|
|
486
721
|
type: "service";
|
|
@@ -489,40 +724,118 @@ interface ServiceLineItem {
|
|
|
489
724
|
provider_id: string;
|
|
490
725
|
from: number;
|
|
491
726
|
to: number;
|
|
727
|
+
quantity: number;
|
|
728
|
+
cancelled_quantity: number;
|
|
729
|
+
fulfilled_quantity: number;
|
|
730
|
+
refunded_quantity: number;
|
|
492
731
|
forms: FormEntry[];
|
|
493
732
|
snapshot: ServiceLineItemSnapshot;
|
|
494
733
|
status: OrderItemStatus;
|
|
734
|
+
booking_status: BookingOrderItemStatus;
|
|
735
|
+
fulfillment_status: OrderItemFulfillmentStatus;
|
|
736
|
+
money: LineMoneySnapshot;
|
|
495
737
|
}
|
|
496
738
|
type OrderItem = ProductLineItem | ServiceLineItem;
|
|
739
|
+
type OrderPaymentSummaryStatus = "unpaid" | "pending" | "authorized" | "partially_paid" | "paid" | "partially_refunded" | "refunded" | "failed" | "voided" | "expired";
|
|
740
|
+
type OrderFulfillmentStatus = "unfulfilled" | "scheduled" | "on_hold" | "in_progress" | "partially_fulfilled" | "fulfilled" | "incomplete" | "not_required";
|
|
497
741
|
interface HistoryEntry {
|
|
498
742
|
action: string;
|
|
499
743
|
reason?: string;
|
|
500
744
|
timestamp: number;
|
|
501
745
|
}
|
|
746
|
+
type DigitalAccessGrantStatus = "pending" | "active" | "exhausted" | "revoked" | "expired";
|
|
747
|
+
interface DigitalAccessGrant {
|
|
748
|
+
id: string;
|
|
749
|
+
order_id: string;
|
|
750
|
+
order_item_id: string;
|
|
751
|
+
product_id: string;
|
|
752
|
+
variant_id: string;
|
|
753
|
+
contact_id: string;
|
|
754
|
+
asset_id: string;
|
|
755
|
+
asset_name_snapshot: string;
|
|
756
|
+
type: DigitalAssetType;
|
|
757
|
+
access_url?: string | null;
|
|
758
|
+
storage_ref?: string | null;
|
|
759
|
+
status: DigitalAccessGrantStatus;
|
|
760
|
+
delivery_policy_snapshot: DigitalDeliveryPolicy;
|
|
761
|
+
download_limit?: number | null;
|
|
762
|
+
download_count: number;
|
|
763
|
+
expires_at?: number | null;
|
|
764
|
+
granted_at?: number | null;
|
|
765
|
+
revoked_at?: number | null;
|
|
766
|
+
}
|
|
767
|
+
interface DigitalAccessDownloadResponse {
|
|
768
|
+
url: string;
|
|
769
|
+
url_expires_at?: number | null;
|
|
770
|
+
grant: DigitalAccessGrant;
|
|
771
|
+
}
|
|
772
|
+
interface ShippingLine {
|
|
773
|
+
id: string;
|
|
774
|
+
shipping_method_id?: string | null;
|
|
775
|
+
title: string;
|
|
776
|
+
code?: string | null;
|
|
777
|
+
source: string;
|
|
778
|
+
carrier_identifier?: string | null;
|
|
779
|
+
money: LineMoneySnapshot;
|
|
780
|
+
created_at: number;
|
|
781
|
+
updated_at: number;
|
|
782
|
+
}
|
|
783
|
+
type FulfillmentOrderStatus = "open" | "in_progress" | "closed" | "incomplete" | "on_hold" | "scheduled" | "cancelled";
|
|
784
|
+
type FulfillmentOrderRequestStatus = "unsubmitted" | "submitted" | "accepted" | "rejected" | "cancellation_requested" | "cancellation_accepted";
|
|
785
|
+
interface FulfillmentOrderLine {
|
|
786
|
+
id: string;
|
|
787
|
+
order_item_id: string;
|
|
788
|
+
quantity: number;
|
|
789
|
+
fulfilled_quantity: number;
|
|
790
|
+
}
|
|
791
|
+
interface FulfillmentOrder {
|
|
792
|
+
id: string;
|
|
793
|
+
order_id: string;
|
|
794
|
+
assigned_location_id: string;
|
|
795
|
+
status: FulfillmentOrderStatus;
|
|
796
|
+
request_status: FulfillmentOrderRequestStatus;
|
|
797
|
+
fulfill_at?: number | null;
|
|
798
|
+
fulfill_by?: number | null;
|
|
799
|
+
destination?: Address | null;
|
|
800
|
+
lines: FulfillmentOrderLine[];
|
|
801
|
+
created_at: number;
|
|
802
|
+
updated_at: number;
|
|
803
|
+
}
|
|
502
804
|
interface Order {
|
|
503
805
|
id: string;
|
|
504
806
|
number: string;
|
|
505
807
|
store_id: string;
|
|
506
808
|
source_cart_id: string;
|
|
507
|
-
|
|
809
|
+
contact_id: string;
|
|
508
810
|
status: OrderStatus;
|
|
811
|
+
payment_status: OrderPaymentSummaryStatus;
|
|
812
|
+
fulfillment_status: OrderFulfillmentStatus;
|
|
509
813
|
verified: boolean;
|
|
510
814
|
items: OrderItem[];
|
|
511
815
|
payment: OrderPayment;
|
|
816
|
+
shipping_lines: ShippingLine[];
|
|
817
|
+
fulfillment_orders: FulfillmentOrder[];
|
|
512
818
|
shipping_address?: Address;
|
|
513
819
|
billing_address?: Address;
|
|
514
820
|
forms: FormEntry[];
|
|
515
821
|
shipments: Shipment[];
|
|
822
|
+
digital_access_grants: DigitalAccessGrant[];
|
|
516
823
|
history: HistoryEntry[];
|
|
517
|
-
|
|
824
|
+
contact_list_id?: string;
|
|
518
825
|
fired_reminders: number[];
|
|
519
826
|
created_at: number;
|
|
520
827
|
updated_at: number;
|
|
521
828
|
}
|
|
829
|
+
type CheckoutPaymentAction = {
|
|
830
|
+
type: "none";
|
|
831
|
+
} | {
|
|
832
|
+
type: "handle_next_action";
|
|
833
|
+
client_secret: string;
|
|
834
|
+
};
|
|
522
835
|
interface OrderCheckoutResult {
|
|
523
836
|
order_id: string;
|
|
524
837
|
number: string;
|
|
525
|
-
|
|
838
|
+
payment_action: CheckoutPaymentAction;
|
|
526
839
|
payment: OrderPayment;
|
|
527
840
|
}
|
|
528
841
|
interface Zone {
|
|
@@ -554,13 +867,25 @@ interface StoreEmails {
|
|
|
554
867
|
support: string;
|
|
555
868
|
}
|
|
556
869
|
type WebhookEventSubscription = {
|
|
557
|
-
event: "
|
|
558
|
-
|
|
870
|
+
event: "collection.created";
|
|
871
|
+
key?: string;
|
|
872
|
+
} | {
|
|
873
|
+
event: "collection.updated";
|
|
874
|
+
key?: string;
|
|
559
875
|
} | {
|
|
560
|
-
event: "
|
|
876
|
+
event: "collection.deleted";
|
|
561
877
|
key?: string;
|
|
562
878
|
} | {
|
|
563
|
-
event: "
|
|
879
|
+
event: "entry.created";
|
|
880
|
+
collection_id?: string;
|
|
881
|
+
key?: string;
|
|
882
|
+
} | {
|
|
883
|
+
event: "entry.updated";
|
|
884
|
+
collection_id?: string;
|
|
885
|
+
key?: string;
|
|
886
|
+
} | {
|
|
887
|
+
event: "entry.deleted";
|
|
888
|
+
collection_id?: string;
|
|
564
889
|
key?: string;
|
|
565
890
|
} | {
|
|
566
891
|
event: "order.created";
|
|
@@ -574,6 +899,10 @@ type WebhookEventSubscription = {
|
|
|
574
899
|
event: "order.payment_failed";
|
|
575
900
|
} | {
|
|
576
901
|
event: "order.refunded";
|
|
902
|
+
} | {
|
|
903
|
+
event: "order.digital_access_activated";
|
|
904
|
+
} | {
|
|
905
|
+
event: "order.digital_access_downloaded";
|
|
577
906
|
} | {
|
|
578
907
|
event: "order.cancelled";
|
|
579
908
|
} | {
|
|
@@ -629,17 +958,17 @@ type WebhookEventSubscription = {
|
|
|
629
958
|
} | {
|
|
630
959
|
event: "store.deleted";
|
|
631
960
|
} | {
|
|
632
|
-
event: "
|
|
961
|
+
event: "contact_list.created";
|
|
633
962
|
} | {
|
|
634
|
-
event: "
|
|
963
|
+
event: "contact_list.updated";
|
|
635
964
|
} | {
|
|
636
|
-
event: "
|
|
965
|
+
event: "contact_list.contact_added";
|
|
637
966
|
} | {
|
|
638
|
-
event: "
|
|
967
|
+
event: "contact_list.contact_pending";
|
|
639
968
|
} | {
|
|
640
|
-
event: "
|
|
969
|
+
event: "contact_list.contact_confirmed";
|
|
641
970
|
} | {
|
|
642
|
-
event: "
|
|
971
|
+
event: "contact_list.contact_cancelled";
|
|
643
972
|
} | {
|
|
644
973
|
event: "account.updated";
|
|
645
974
|
};
|
|
@@ -659,14 +988,54 @@ type StoreSubscriptionStatus = "pending" | "active" | "cancellation_scheduled" |
|
|
|
659
988
|
type StoreSubscriptionSource = "signup" | "admin" | "import";
|
|
660
989
|
type StoreSubscriptionProvider = {
|
|
661
990
|
type: "stripe";
|
|
662
|
-
|
|
663
|
-
subscription_id?: string;
|
|
664
|
-
price_id?: string;
|
|
991
|
+
stripe_customer_id: string;
|
|
992
|
+
subscription_id?: string | null;
|
|
993
|
+
price_id?: string | null;
|
|
665
994
|
};
|
|
995
|
+
type StoreSubscriptionProviderLifecycleStatus = "requested" | "processing" | "succeeded" | "rejected" | "unknown";
|
|
996
|
+
type StoreSubscriptionProviderOperation = {
|
|
997
|
+
type: "cancel_at_period_end";
|
|
998
|
+
} | {
|
|
999
|
+
type: "cancel_immediately";
|
|
1000
|
+
plan_id?: string | null;
|
|
1001
|
+
} | {
|
|
1002
|
+
type: "reactivate";
|
|
1003
|
+
} | {
|
|
1004
|
+
type: "update_plan";
|
|
1005
|
+
plan_id: string;
|
|
1006
|
+
price_id: string;
|
|
1007
|
+
proration_behavior: string;
|
|
1008
|
+
} | {
|
|
1009
|
+
type: "schedule_plan_change";
|
|
1010
|
+
plan_id: string;
|
|
1011
|
+
price_id: string;
|
|
1012
|
+
};
|
|
1013
|
+
type StoreSubscriptionProviderError = {
|
|
1014
|
+
type: "provider_rejected";
|
|
1015
|
+
message: string;
|
|
1016
|
+
provider_code?: string | null;
|
|
1017
|
+
provider_status?: number | null;
|
|
1018
|
+
at: number;
|
|
1019
|
+
} | {
|
|
1020
|
+
type: "unknown_outcome";
|
|
1021
|
+
message: string;
|
|
1022
|
+
at: number;
|
|
1023
|
+
} | {
|
|
1024
|
+
type: "missing_configuration";
|
|
1025
|
+
message: string;
|
|
1026
|
+
at: number;
|
|
1027
|
+
};
|
|
1028
|
+
interface StoreSubscriptionProviderLifecycle {
|
|
1029
|
+
operation_id?: string | null;
|
|
1030
|
+
status: StoreSubscriptionProviderLifecycleStatus;
|
|
1031
|
+
operation?: StoreSubscriptionProviderOperation | null;
|
|
1032
|
+
error?: StoreSubscriptionProviderError | null;
|
|
1033
|
+
updated_at: number;
|
|
1034
|
+
}
|
|
666
1035
|
interface StoreSubscriptionPayment {
|
|
667
1036
|
currency: string;
|
|
668
1037
|
market: string;
|
|
669
|
-
provider?: StoreSubscriptionProvider;
|
|
1038
|
+
provider?: StoreSubscriptionProvider | null;
|
|
670
1039
|
}
|
|
671
1040
|
interface StoreSubscription {
|
|
672
1041
|
id: string;
|
|
@@ -675,21 +1044,44 @@ interface StoreSubscription {
|
|
|
675
1044
|
pending_plan_id: string | null;
|
|
676
1045
|
payment: StoreSubscriptionPayment;
|
|
677
1046
|
status: StoreSubscriptionStatus;
|
|
1047
|
+
provider_lifecycle: StoreSubscriptionProviderLifecycle;
|
|
678
1048
|
start_date: number;
|
|
679
1049
|
end_date: number;
|
|
680
1050
|
token: string;
|
|
681
1051
|
source: StoreSubscriptionSource;
|
|
682
1052
|
}
|
|
683
|
-
type
|
|
1053
|
+
type ContactListMembershipProvider = {
|
|
684
1054
|
type: "stripe";
|
|
685
1055
|
stripe_customer_id: string;
|
|
686
1056
|
subscription_id?: string;
|
|
687
1057
|
price_id?: string;
|
|
688
1058
|
};
|
|
689
|
-
interface
|
|
1059
|
+
interface ContactListMembershipPayment {
|
|
690
1060
|
currency: string;
|
|
691
1061
|
market: string;
|
|
692
|
-
provider?:
|
|
1062
|
+
provider?: ContactListMembershipProvider;
|
|
1063
|
+
}
|
|
1064
|
+
type ContactListMembershipProviderCancellationStatus = "requested" | "processing" | "succeeded" | "rejected" | "unknown";
|
|
1065
|
+
type ContactListMembershipProviderCancellationError = {
|
|
1066
|
+
type: "provider_rejected";
|
|
1067
|
+
message: string;
|
|
1068
|
+
provider_code?: string | null;
|
|
1069
|
+
provider_status?: number | null;
|
|
1070
|
+
at: number;
|
|
1071
|
+
} | {
|
|
1072
|
+
type: "unknown_outcome";
|
|
1073
|
+
message: string;
|
|
1074
|
+
at: number;
|
|
1075
|
+
} | {
|
|
1076
|
+
type: "missing_configuration";
|
|
1077
|
+
message: string;
|
|
1078
|
+
at: number;
|
|
1079
|
+
};
|
|
1080
|
+
interface ContactListMembershipProviderCancellation {
|
|
1081
|
+
operation_id?: string | null;
|
|
1082
|
+
status: ContactListMembershipProviderCancellationStatus;
|
|
1083
|
+
error?: ContactListMembershipProviderCancellationError | null;
|
|
1084
|
+
updated_at: number;
|
|
693
1085
|
}
|
|
694
1086
|
interface Store {
|
|
695
1087
|
id: string;
|
|
@@ -770,10 +1162,9 @@ interface FormEntry {
|
|
|
770
1162
|
form_id: string;
|
|
771
1163
|
fields: FormField[];
|
|
772
1164
|
}
|
|
773
|
-
type BlockType = "text" | "localized_text" | "number" | "boolean" | "
|
|
1165
|
+
type BlockType = "text" | "localized_text" | "number" | "boolean" | "date" | "array" | "object" | "media" | "entry" | "markdown" | "geo_location";
|
|
774
1166
|
interface GeoLocationBlockProperties {
|
|
775
1167
|
}
|
|
776
|
-
type GeoLocationValue = GeoLocation;
|
|
777
1168
|
interface GeoLocationBlock extends Block {
|
|
778
1169
|
type: "geo_location";
|
|
779
1170
|
properties: GeoLocationBlockProperties;
|
|
@@ -863,10 +1254,10 @@ interface PaginatedResponse<T> {
|
|
|
863
1254
|
type ServiceStatus = "active" | "draft" | "archived";
|
|
864
1255
|
type ProviderStatus = "active" | "draft" | "archived";
|
|
865
1256
|
type ProductStatus = "active" | "draft" | "archived";
|
|
866
|
-
type
|
|
867
|
-
type
|
|
868
|
-
type
|
|
869
|
-
type
|
|
1257
|
+
type ContactStatus = "active" | "archived";
|
|
1258
|
+
type ContactListStatus = "active" | "draft" | "archived";
|
|
1259
|
+
type ContactListSource = "manual" | "import" | "signup" | "admin" | "system" | "lead_research";
|
|
1260
|
+
type ContactListMembershipStatus = "pending" | "active" | "cancellation_scheduled" | "cancelled" | "expired" | "archived";
|
|
870
1261
|
type MailboxStatus = "active" | "draft" | "archived";
|
|
871
1262
|
type MailboxPreset = "gmail" | "zoho" | "microsoft" | "custom";
|
|
872
1263
|
type MailboxConnectionSecurity = "tls" | "start_tls";
|
|
@@ -890,31 +1281,46 @@ type SmtpImapMailboxProvider = {
|
|
|
890
1281
|
last_synced_at?: number | null;
|
|
891
1282
|
last_seen_uid?: number | null;
|
|
892
1283
|
};
|
|
893
|
-
type MailboxProvider = {
|
|
894
|
-
type: "fake";
|
|
895
|
-
} | SmtpImapMailboxProvider;
|
|
896
1284
|
type CampaignStatus = "draft" | "active" | "paused" | "completed" | "archived";
|
|
897
|
-
type
|
|
898
|
-
type
|
|
899
|
-
type CampaignMessageStatus = "pending" | "sending" | "sent" | "received" | "bounced" | "failed" | "skipped";
|
|
900
|
-
type
|
|
901
|
-
type CampaignMessageDirection = "outbound" | "inbound" | "
|
|
1285
|
+
type CampaignEnrollmentStatus = "pending" | "active" | "action_required" | "replied" | "completed" | "suppressed" | "failed" | "stopped";
|
|
1286
|
+
type CampaignEnrollmentImportSource = "contact_list" | "contact" | "manual";
|
|
1287
|
+
type CampaignMessageStatus = "draft" | "scheduled" | "pending" | "sending" | "sent" | "received" | "action_required" | "completed" | "bounced" | "failed" | "unknown" | "skipped" | "stopped" | "superseded";
|
|
1288
|
+
type CampaignMessageType = "campaign_step_email" | "manual_task" | "manual_reply" | "inbound_reply" | "delivery_failure" | "action";
|
|
1289
|
+
type CampaignMessageDirection = "outbound" | "inbound" | "action";
|
|
902
1290
|
type CampaignMessageCopySource = "template" | "generated" | "edited";
|
|
903
1291
|
type OutreachThreadMode = "new_thread" | "same_thread";
|
|
904
|
-
type
|
|
1292
|
+
type ManualTaskContinueBehavior = "continue_after_delay" | "wait_until_completed";
|
|
1293
|
+
type OutreachStepType = {
|
|
1294
|
+
type: "email";
|
|
1295
|
+
template_id: string;
|
|
1296
|
+
template_vars?: Record<string, unknown>;
|
|
1297
|
+
body?: string | null;
|
|
1298
|
+
thread_mode?: OutreachThreadMode;
|
|
1299
|
+
attachments?: string[];
|
|
1300
|
+
} | {
|
|
1301
|
+
type: "manual_task";
|
|
1302
|
+
target_channel_type?: ChannelType | null;
|
|
1303
|
+
title: string;
|
|
1304
|
+
instructions: string;
|
|
1305
|
+
suggested_message?: string | null;
|
|
1306
|
+
external_url?: string | null;
|
|
1307
|
+
continue_behavior: ManualTaskContinueBehavior;
|
|
1308
|
+
};
|
|
1309
|
+
type CampaignManualTaskOutcome = "done" | "skipped" | "got_reply" | "do_not_contact";
|
|
905
1310
|
type OutreachPersonalizationStatus = "idle" | "running" | "completed" | "failed";
|
|
906
1311
|
type SuppressionStatus = "active" | "archived";
|
|
907
|
-
type SuppressionTargetType = "email" | "domain" | "
|
|
1312
|
+
type SuppressionTargetType = "email" | "domain" | "contact" | "phone";
|
|
908
1313
|
type SuppressionScopeType = "store" | "campaign";
|
|
909
1314
|
type SuppressionReason = "manual" | "unsubscribed" | "bounced" | "complained" | "replied";
|
|
910
1315
|
type SuppressionSource = "admin" | "import" | "reply" | "system";
|
|
911
1316
|
type WorkflowStatus = "active" | "draft" | "archived";
|
|
912
1317
|
type PromoCodeStatus = "active" | "draft" | "archived";
|
|
913
|
-
type
|
|
1318
|
+
type CollectionStatus = "active" | "draft" | "archived";
|
|
1319
|
+
type EntryStatus = "active" | "draft" | "archived";
|
|
914
1320
|
type EmailTemplateStatus = "active" | "draft" | "archived";
|
|
915
1321
|
type FormStatus = "active" | "draft" | "archived";
|
|
916
1322
|
type TaxonomyStatus = "active" | "draft" | "archived";
|
|
917
|
-
type OrderCancellationReason = "admin_rejected" | "
|
|
1323
|
+
type OrderCancellationReason = "admin_rejected" | "contact_cancelled" | "payment_failed" | "expired" | "other";
|
|
918
1324
|
type OrderItemStatus = {
|
|
919
1325
|
status: "pending";
|
|
920
1326
|
expires_at: number;
|
|
@@ -924,37 +1330,121 @@ type OrderItemStatus = {
|
|
|
924
1330
|
status: "cancelled";
|
|
925
1331
|
reason: OrderCancellationReason;
|
|
926
1332
|
};
|
|
927
|
-
type OrderStatus = "pending" | "partially_confirmed" | "confirmed" | "partially_cancelled" | "cancelled";
|
|
1333
|
+
type OrderStatus = "pending" | "partially_confirmed" | "confirmed" | "partially_cancelled" | "cancelled" | "completed";
|
|
928
1334
|
type OrderPaymentStatus = {
|
|
929
1335
|
status: "pending";
|
|
930
1336
|
at: number;
|
|
1337
|
+
} | {
|
|
1338
|
+
status: "requires_action";
|
|
1339
|
+
at: number;
|
|
1340
|
+
reason?: string | null;
|
|
1341
|
+
} | {
|
|
1342
|
+
status: "processing";
|
|
1343
|
+
at: number;
|
|
931
1344
|
} | {
|
|
932
1345
|
status: "authorized";
|
|
933
1346
|
at: number;
|
|
934
1347
|
amount: number;
|
|
1348
|
+
} | {
|
|
1349
|
+
status: "partially_captured";
|
|
1350
|
+
at: number;
|
|
1351
|
+
amount: number;
|
|
935
1352
|
} | {
|
|
936
1353
|
status: "captured";
|
|
937
1354
|
at: number;
|
|
938
1355
|
amount: number;
|
|
1356
|
+
} | {
|
|
1357
|
+
status: "partially_refunded";
|
|
1358
|
+
at: number;
|
|
1359
|
+
amount: number;
|
|
1360
|
+
} | {
|
|
1361
|
+
status: "refunded";
|
|
1362
|
+
at: number;
|
|
1363
|
+
amount: number;
|
|
1364
|
+
} | {
|
|
1365
|
+
status: "voided";
|
|
1366
|
+
at: number;
|
|
1367
|
+
amount: number;
|
|
1368
|
+
} | {
|
|
1369
|
+
status: "cancelled";
|
|
1370
|
+
at: number;
|
|
1371
|
+
reason?: string | null;
|
|
1372
|
+
} | {
|
|
1373
|
+
status: "expired";
|
|
1374
|
+
at: number;
|
|
939
1375
|
} | {
|
|
940
1376
|
status: "failed";
|
|
941
1377
|
at: number;
|
|
942
|
-
reason?: string;
|
|
1378
|
+
reason?: string | null;
|
|
943
1379
|
};
|
|
944
1380
|
interface TimeRange {
|
|
945
1381
|
from: number;
|
|
946
1382
|
to: number;
|
|
947
1383
|
}
|
|
948
|
-
|
|
1384
|
+
type BlockSchemaType = "text" | "localized_text" | "number" | "boolean" | "date" | "geo_location" | "markdown" | "media" | "entry" | "array" | "object";
|
|
1385
|
+
interface BlockSchemaProperties {
|
|
1386
|
+
min_values?: number | null;
|
|
1387
|
+
max_values?: number | null;
|
|
1388
|
+
min_length?: number | null;
|
|
1389
|
+
max_length?: number | null;
|
|
1390
|
+
pattern?: string | null;
|
|
1391
|
+
min?: number | null;
|
|
1392
|
+
max?: number | null;
|
|
1393
|
+
collection_id?: string | null;
|
|
1394
|
+
on_delete?: "restrict" | "set_null" | null;
|
|
1395
|
+
}
|
|
1396
|
+
interface BlockSchema {
|
|
949
1397
|
id: string;
|
|
950
1398
|
key: string;
|
|
1399
|
+
type: BlockSchemaType;
|
|
1400
|
+
required: boolean;
|
|
1401
|
+
properties: BlockSchemaProperties;
|
|
1402
|
+
children: BlockSchema[];
|
|
1403
|
+
}
|
|
1404
|
+
interface Collection {
|
|
1405
|
+
id: string;
|
|
951
1406
|
store_id: string;
|
|
952
|
-
|
|
1407
|
+
key: string;
|
|
1408
|
+
schema: BlockSchema[];
|
|
953
1409
|
blocks: Block[];
|
|
954
|
-
|
|
955
|
-
|
|
1410
|
+
status: CollectionStatus;
|
|
1411
|
+
created_at: number;
|
|
1412
|
+
updated_at: number;
|
|
1413
|
+
}
|
|
1414
|
+
interface MediaRef {
|
|
1415
|
+
media_id: string;
|
|
1416
|
+
url?: string | null;
|
|
1417
|
+
mime_type?: string | null;
|
|
1418
|
+
alt?: string | null;
|
|
1419
|
+
}
|
|
1420
|
+
type FieldOperation = "equals" | "not_equals" | "contains" | "in" | "greater_than" | "greater_than_or_equal" | "less_than" | "less_than_or_equal";
|
|
1421
|
+
type EntryBlockQuery = {
|
|
1422
|
+
type: "text";
|
|
1423
|
+
key: string;
|
|
1424
|
+
values: string[];
|
|
1425
|
+
} | {
|
|
1426
|
+
type: "number";
|
|
1427
|
+
key: string;
|
|
1428
|
+
operation: FieldOperation;
|
|
1429
|
+
value: number;
|
|
1430
|
+
} | {
|
|
1431
|
+
type: "boolean";
|
|
1432
|
+
key: string;
|
|
1433
|
+
value: boolean;
|
|
1434
|
+
} | {
|
|
1435
|
+
type: "date";
|
|
1436
|
+
key: string;
|
|
1437
|
+
operation: FieldOperation;
|
|
1438
|
+
value: number;
|
|
1439
|
+
};
|
|
1440
|
+
interface CollectionEntry {
|
|
1441
|
+
id: string;
|
|
1442
|
+
store_id: string;
|
|
1443
|
+
collection_id: string;
|
|
1444
|
+
key: string;
|
|
956
1445
|
slug: Record<string, string>;
|
|
957
|
-
|
|
1446
|
+
blocks: Block[];
|
|
1447
|
+
status: EntryStatus;
|
|
958
1448
|
created_at: number;
|
|
959
1449
|
updated_at: number;
|
|
960
1450
|
}
|
|
@@ -990,7 +1480,7 @@ interface FormSubmission {
|
|
|
990
1480
|
id: string;
|
|
991
1481
|
form_id: string;
|
|
992
1482
|
store_id: string;
|
|
993
|
-
|
|
1483
|
+
contact_id: string;
|
|
994
1484
|
fields: FormField[];
|
|
995
1485
|
created_at: number;
|
|
996
1486
|
}
|
|
@@ -1044,7 +1534,6 @@ interface Service {
|
|
|
1044
1534
|
store_id: string;
|
|
1045
1535
|
blocks: Block[];
|
|
1046
1536
|
taxonomies: TaxonomyEntry[];
|
|
1047
|
-
filters?: TaxonomyEntry[];
|
|
1048
1537
|
created_at: number;
|
|
1049
1538
|
updated_at: number;
|
|
1050
1539
|
status: ServiceStatus;
|
|
@@ -1061,7 +1550,6 @@ interface Provider {
|
|
|
1061
1550
|
status: ProviderStatus;
|
|
1062
1551
|
blocks: Block[];
|
|
1063
1552
|
taxonomies: TaxonomyEntry[];
|
|
1064
|
-
filters?: TaxonomyEntry[];
|
|
1065
1553
|
timeline: ProviderTimelinePoint[];
|
|
1066
1554
|
created_at: number;
|
|
1067
1555
|
updated_at: number;
|
|
@@ -1084,22 +1572,59 @@ interface Workflow {
|
|
|
1084
1572
|
created_at: number;
|
|
1085
1573
|
updated_at: number;
|
|
1086
1574
|
}
|
|
1087
|
-
type WorkflowNode = WorkflowTriggerNode | WorkflowHttpNode | WorkflowSwitchNode | WorkflowTransformNode | WorkflowLoopNode;
|
|
1088
|
-
interface WorkflowTriggerNode {
|
|
1089
|
-
type: "trigger";
|
|
1090
|
-
event?: string;
|
|
1091
|
-
delay_ms?: number;
|
|
1092
|
-
schema?: Block[];
|
|
1575
|
+
type WorkflowNode = WorkflowTriggerNode | WorkflowHttpNode | WorkflowDeployWebhookNode | WorkflowGoogleDriveUploadNode | WorkflowSwitchNode | WorkflowTransformNode | WorkflowLoopNode;
|
|
1576
|
+
interface WorkflowTriggerNode {
|
|
1577
|
+
type: "trigger";
|
|
1578
|
+
event?: string;
|
|
1579
|
+
delay_ms?: number;
|
|
1580
|
+
schema?: Block[];
|
|
1581
|
+
}
|
|
1582
|
+
interface WorkflowHttpNode {
|
|
1583
|
+
type: "http";
|
|
1584
|
+
method: WorkflowHttpMethod;
|
|
1585
|
+
url: string;
|
|
1586
|
+
headers?: Record<string, string>;
|
|
1587
|
+
body?: any;
|
|
1588
|
+
timeout_ms?: number;
|
|
1589
|
+
delay_ms?: number;
|
|
1590
|
+
retries?: number;
|
|
1591
|
+
retry_delay_ms?: number;
|
|
1592
|
+
}
|
|
1593
|
+
interface WorkflowDeployWebhookNode {
|
|
1594
|
+
type: "deploy_webhook";
|
|
1595
|
+
build_hook_id: string;
|
|
1596
|
+
timeout_ms?: number;
|
|
1597
|
+
delay_ms?: number;
|
|
1598
|
+
retries?: number;
|
|
1599
|
+
retry_delay_ms?: number;
|
|
1600
|
+
}
|
|
1601
|
+
type WorkflowAccountType = "google_drive";
|
|
1602
|
+
interface WorkflowAccountProfile {
|
|
1603
|
+
external_account_id: string;
|
|
1604
|
+
display_name: string;
|
|
1605
|
+
email?: string | null;
|
|
1606
|
+
}
|
|
1607
|
+
interface WorkflowAccount {
|
|
1608
|
+
id: string;
|
|
1609
|
+
store_id: string;
|
|
1610
|
+
key: string;
|
|
1611
|
+
type: WorkflowAccountType;
|
|
1612
|
+
profile: WorkflowAccountProfile;
|
|
1613
|
+
created_at: number;
|
|
1614
|
+
updated_at: number;
|
|
1615
|
+
}
|
|
1616
|
+
interface WorkflowAccountConnectUrl {
|
|
1617
|
+
authorization_url: string;
|
|
1618
|
+
state: string;
|
|
1093
1619
|
}
|
|
1094
|
-
interface
|
|
1095
|
-
type: "
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1620
|
+
interface WorkflowGoogleDriveUploadNode {
|
|
1621
|
+
type: "google_drive_upload";
|
|
1622
|
+
workflow_account_id: string;
|
|
1623
|
+
name: string;
|
|
1624
|
+
mime_type: string;
|
|
1625
|
+
content?: any;
|
|
1626
|
+
parent_folder_id?: string | null;
|
|
1100
1627
|
timeout_ms?: number;
|
|
1101
|
-
integration_id?: string;
|
|
1102
|
-
integration_provider_id?: string;
|
|
1103
1628
|
delay_ms?: number;
|
|
1104
1629
|
retries?: number;
|
|
1105
1630
|
retry_delay_ms?: number;
|
|
@@ -1146,7 +1671,7 @@ interface WorkflowExecution {
|
|
|
1146
1671
|
created_at: number;
|
|
1147
1672
|
updated_at: number;
|
|
1148
1673
|
}
|
|
1149
|
-
type
|
|
1674
|
+
type ContactListType = {
|
|
1150
1675
|
type: "standard";
|
|
1151
1676
|
} | {
|
|
1152
1677
|
type: "confirmation";
|
|
@@ -1154,14 +1679,14 @@ type ProfileListType = {
|
|
|
1154
1679
|
} | {
|
|
1155
1680
|
type: "paid";
|
|
1156
1681
|
prices: SubscriptionPrice[];
|
|
1157
|
-
|
|
1682
|
+
payment_provider_id?: string | null;
|
|
1158
1683
|
};
|
|
1159
|
-
interface
|
|
1684
|
+
interface ContactSessionToken$1 {
|
|
1160
1685
|
id: string;
|
|
1161
1686
|
token: string;
|
|
1162
1687
|
created_at: number;
|
|
1163
1688
|
}
|
|
1164
|
-
interface
|
|
1689
|
+
interface ContactVerificationCode$1 {
|
|
1165
1690
|
code: string;
|
|
1166
1691
|
created_at: number;
|
|
1167
1692
|
used: boolean;
|
|
@@ -1171,62 +1696,221 @@ interface PromoUsage$1 {
|
|
|
1171
1696
|
promo_code_id: string;
|
|
1172
1697
|
uses: number;
|
|
1173
1698
|
}
|
|
1174
|
-
|
|
1699
|
+
type ChannelType = "email" | "phone" | "whatsapp" | "instagram" | "facebook" | "messenger" | "linkedin_company" | "linkedin_person" | "contact_form" | "booking_link" | "telegram" | "tiktok" | "youtube" | "other";
|
|
1700
|
+
interface ContactChannel {
|
|
1701
|
+
type: ChannelType;
|
|
1702
|
+
label?: string | null;
|
|
1703
|
+
value: string;
|
|
1704
|
+
normalized_value?: string | null;
|
|
1705
|
+
provider?: string | null;
|
|
1706
|
+
provider_user_id?: string | null;
|
|
1707
|
+
verified_at?: number | null;
|
|
1708
|
+
is_primary?: boolean;
|
|
1709
|
+
consent_status?: ContactChannelConsentStatus;
|
|
1710
|
+
subscribed_at?: number | null;
|
|
1711
|
+
unsubscribed_at?: number | null;
|
|
1712
|
+
source_url?: string | null;
|
|
1713
|
+
confidence?: number | null;
|
|
1714
|
+
notes?: string | null;
|
|
1715
|
+
created_at: number;
|
|
1716
|
+
updated_at: number;
|
|
1717
|
+
}
|
|
1718
|
+
type ContactChannelConsentStatus = "unknown" | "subscribed" | "unsubscribed" | "bounced" | "blocked";
|
|
1719
|
+
interface Contact$1 {
|
|
1175
1720
|
id: string;
|
|
1176
1721
|
store_id: string;
|
|
1177
1722
|
email: string | null;
|
|
1178
1723
|
verified: boolean;
|
|
1179
|
-
status:
|
|
1724
|
+
status: ContactStatus;
|
|
1725
|
+
channels: ContactChannel[];
|
|
1180
1726
|
promo_usage: PromoUsage$1[];
|
|
1181
|
-
lists:
|
|
1727
|
+
lists: ContactListMembership[];
|
|
1182
1728
|
taxonomies: TaxonomyEntry[];
|
|
1183
|
-
auth_tokens:
|
|
1184
|
-
verification_codes:
|
|
1729
|
+
auth_tokens: ContactSessionToken$1[];
|
|
1730
|
+
verification_codes: ContactVerificationCode$1[];
|
|
1185
1731
|
created_at: number;
|
|
1186
1732
|
updated_at: number;
|
|
1187
1733
|
}
|
|
1188
|
-
interface
|
|
1734
|
+
interface ContactListAccessResponse {
|
|
1189
1735
|
has_access: boolean;
|
|
1190
|
-
membership?:
|
|
1736
|
+
membership?: ContactListMembership | null;
|
|
1191
1737
|
}
|
|
1192
|
-
interface
|
|
1738
|
+
interface ContactListSubscribeResponse {
|
|
1193
1739
|
checkout_url?: string | null;
|
|
1194
|
-
membership?:
|
|
1740
|
+
membership?: ContactListMembership | null;
|
|
1195
1741
|
}
|
|
1196
|
-
interface
|
|
1742
|
+
interface ContactList {
|
|
1197
1743
|
id: string;
|
|
1198
1744
|
store_id: string;
|
|
1199
1745
|
key: string;
|
|
1200
1746
|
name: string;
|
|
1201
1747
|
description?: string | null;
|
|
1202
|
-
status:
|
|
1203
|
-
type:
|
|
1204
|
-
source:
|
|
1748
|
+
status: ContactListStatus;
|
|
1749
|
+
type: ContactListType;
|
|
1750
|
+
source: ContactListSource;
|
|
1205
1751
|
member_count: number;
|
|
1206
1752
|
created_at: number;
|
|
1207
1753
|
updated_at: number;
|
|
1208
1754
|
}
|
|
1209
|
-
interface
|
|
1755
|
+
interface ContactListMembership {
|
|
1210
1756
|
id: string;
|
|
1211
1757
|
store_id: string;
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
source:
|
|
1758
|
+
contact_id: string;
|
|
1759
|
+
contact_list_id: string;
|
|
1760
|
+
source: ContactListSource;
|
|
1215
1761
|
fields: Record<string, unknown>;
|
|
1216
1762
|
lead_description?: string | null;
|
|
1217
|
-
|
|
1763
|
+
lead?: LeadInsight | null;
|
|
1764
|
+
status: ContactListMembershipStatus;
|
|
1218
1765
|
plan_id: string;
|
|
1219
1766
|
pending_plan_id: string | null;
|
|
1220
|
-
payment:
|
|
1767
|
+
payment: ContactListMembershipPayment;
|
|
1768
|
+
provider_cancellation: ContactListMembershipProviderCancellation;
|
|
1221
1769
|
start_date: number;
|
|
1222
1770
|
end_date: number;
|
|
1223
1771
|
token: string;
|
|
1224
1772
|
created_at: number;
|
|
1225
1773
|
updated_at: number;
|
|
1226
1774
|
}
|
|
1227
|
-
interface
|
|
1228
|
-
|
|
1229
|
-
membership:
|
|
1775
|
+
interface ContactListMember {
|
|
1776
|
+
contact: Contact$1;
|
|
1777
|
+
membership: ContactListMembership;
|
|
1778
|
+
}
|
|
1779
|
+
interface ActionLocation {
|
|
1780
|
+
country_code?: string | null;
|
|
1781
|
+
city?: string | null;
|
|
1782
|
+
region?: string | null;
|
|
1783
|
+
timezone?: string | null;
|
|
1784
|
+
}
|
|
1785
|
+
interface ActionDevice {
|
|
1786
|
+
device_type?: string | null;
|
|
1787
|
+
browser?: string | null;
|
|
1788
|
+
os?: string | null;
|
|
1789
|
+
language?: string | null;
|
|
1790
|
+
}
|
|
1791
|
+
interface ActionSession {
|
|
1792
|
+
idx?: number | null;
|
|
1793
|
+
}
|
|
1794
|
+
interface ActionContext {
|
|
1795
|
+
location?: ActionLocation | null;
|
|
1796
|
+
device?: ActionDevice | null;
|
|
1797
|
+
session?: ActionSession | null;
|
|
1798
|
+
}
|
|
1799
|
+
interface SocialActionAuthor {
|
|
1800
|
+
provider_user_id?: string | null;
|
|
1801
|
+
name?: string | null;
|
|
1802
|
+
handle?: string | null;
|
|
1803
|
+
}
|
|
1804
|
+
type OpportunityType = "lead" | "support" | "complaint" | "question" | "upsell" | "partnership" | "engagement";
|
|
1805
|
+
type OpportunityStage = "new" | "reviewing" | "contacted" | "won" | "lost" | "dismissed";
|
|
1806
|
+
type OpportunitySource = {
|
|
1807
|
+
type: "social_comment";
|
|
1808
|
+
publication_id: string;
|
|
1809
|
+
comment_id: string;
|
|
1810
|
+
action_id?: string | null;
|
|
1811
|
+
} | {
|
|
1812
|
+
type: "form_submission";
|
|
1813
|
+
form_id: string;
|
|
1814
|
+
submission_id: string;
|
|
1815
|
+
} | {
|
|
1816
|
+
type: "tracked";
|
|
1817
|
+
key: string;
|
|
1818
|
+
action_id?: string | null;
|
|
1819
|
+
} | {
|
|
1820
|
+
type: "manual";
|
|
1821
|
+
};
|
|
1822
|
+
type ActionData = {
|
|
1823
|
+
type: "tracked";
|
|
1824
|
+
value: {
|
|
1825
|
+
key: string;
|
|
1826
|
+
payload: Record<string, unknown>;
|
|
1827
|
+
context?: ActionContext | null;
|
|
1828
|
+
};
|
|
1829
|
+
} | {
|
|
1830
|
+
type: "form_submission";
|
|
1831
|
+
value: {
|
|
1832
|
+
form_id: string;
|
|
1833
|
+
form_key: string;
|
|
1834
|
+
submission_id: string;
|
|
1835
|
+
field_keys: string[];
|
|
1836
|
+
context?: ActionContext | null;
|
|
1837
|
+
};
|
|
1838
|
+
} | {
|
|
1839
|
+
type: "social_comment";
|
|
1840
|
+
value: {
|
|
1841
|
+
social_account_id: string;
|
|
1842
|
+
provider_type: SocialProviderType;
|
|
1843
|
+
publication_id: string;
|
|
1844
|
+
comment_id: string;
|
|
1845
|
+
provider_comment_id: string;
|
|
1846
|
+
provider_parent_comment_id?: string | null;
|
|
1847
|
+
author: SocialActionAuthor;
|
|
1848
|
+
text: string;
|
|
1849
|
+
};
|
|
1850
|
+
} | {
|
|
1851
|
+
type: "social_reply";
|
|
1852
|
+
value: {
|
|
1853
|
+
social_account_id: string;
|
|
1854
|
+
provider_type: SocialProviderType;
|
|
1855
|
+
publication_id: string;
|
|
1856
|
+
comment_id: string;
|
|
1857
|
+
provider_comment_id?: string | null;
|
|
1858
|
+
provider_comment_url?: string | null;
|
|
1859
|
+
text: string;
|
|
1860
|
+
};
|
|
1861
|
+
} | {
|
|
1862
|
+
type: "order";
|
|
1863
|
+
value: {
|
|
1864
|
+
order_id: string;
|
|
1865
|
+
status: string;
|
|
1866
|
+
total?: number | null;
|
|
1867
|
+
};
|
|
1868
|
+
} | {
|
|
1869
|
+
type: "campaign_reply";
|
|
1870
|
+
value: {
|
|
1871
|
+
campaign_id: string;
|
|
1872
|
+
enrollment_id: string;
|
|
1873
|
+
message_id: string;
|
|
1874
|
+
text: string;
|
|
1875
|
+
};
|
|
1876
|
+
} | {
|
|
1877
|
+
type: "direct_message";
|
|
1878
|
+
value: {
|
|
1879
|
+
social_account_id: string;
|
|
1880
|
+
provider_type: SocialProviderType;
|
|
1881
|
+
thread_id: string;
|
|
1882
|
+
message_id: string;
|
|
1883
|
+
text: string;
|
|
1884
|
+
};
|
|
1885
|
+
} | {
|
|
1886
|
+
type: "manual";
|
|
1887
|
+
value: {
|
|
1888
|
+
text: string;
|
|
1889
|
+
account_id?: string | null;
|
|
1890
|
+
};
|
|
1891
|
+
} | {
|
|
1892
|
+
type: "opportunity";
|
|
1893
|
+
value: {
|
|
1894
|
+
type: OpportunityType;
|
|
1895
|
+
stage: OpportunityStage;
|
|
1896
|
+
score?: number | null;
|
|
1897
|
+
reason?: string | null;
|
|
1898
|
+
suggested_next_action?: string | null;
|
|
1899
|
+
source: OpportunitySource;
|
|
1900
|
+
lead?: LeadInsight | null;
|
|
1901
|
+
};
|
|
1902
|
+
};
|
|
1903
|
+
interface Action {
|
|
1904
|
+
id: string;
|
|
1905
|
+
store_id: string;
|
|
1906
|
+
contact_id: string;
|
|
1907
|
+
key: string;
|
|
1908
|
+
type: ActionData["type"];
|
|
1909
|
+
preview_text?: string | null;
|
|
1910
|
+
occurred_at: number;
|
|
1911
|
+
created_at: number;
|
|
1912
|
+
updated_at: number;
|
|
1913
|
+
data: ActionData;
|
|
1230
1914
|
}
|
|
1231
1915
|
interface Mailbox {
|
|
1232
1916
|
id: string;
|
|
@@ -1235,7 +1919,7 @@ interface Mailbox {
|
|
|
1235
1919
|
email: string;
|
|
1236
1920
|
from_name: string;
|
|
1237
1921
|
reply_to_email?: string | null;
|
|
1238
|
-
provider:
|
|
1922
|
+
provider: SmtpImapMailboxProvider;
|
|
1239
1923
|
status: MailboxStatus;
|
|
1240
1924
|
daily_limit: number;
|
|
1241
1925
|
sent_today: number;
|
|
@@ -1243,25 +1927,14 @@ interface Mailbox {
|
|
|
1243
1927
|
created_at: number;
|
|
1244
1928
|
updated_at: number;
|
|
1245
1929
|
}
|
|
1246
|
-
interface OutreachStepVariant {
|
|
1247
|
-
id?: string;
|
|
1248
|
-
position?: number;
|
|
1249
|
-
weight: number;
|
|
1250
|
-
name?: string;
|
|
1251
|
-
template_id?: string | null;
|
|
1252
|
-
template_vars?: Record<string, unknown>;
|
|
1253
|
-
status?: OutreachStepVariantStatus;
|
|
1254
|
-
}
|
|
1255
1930
|
interface OutreachStep {
|
|
1256
1931
|
id?: string;
|
|
1257
1932
|
position?: number;
|
|
1258
1933
|
delay_seconds?: number;
|
|
1259
|
-
|
|
1260
|
-
thread_mode?: OutreachThreadMode;
|
|
1261
|
-
attachments?: string[];
|
|
1934
|
+
type?: OutreachStepType;
|
|
1262
1935
|
}
|
|
1263
1936
|
interface OutreachPersonalizationCounters {
|
|
1264
|
-
|
|
1937
|
+
total_contacts: number;
|
|
1265
1938
|
draft_messages: number;
|
|
1266
1939
|
generated_messages: number;
|
|
1267
1940
|
template_messages: number;
|
|
@@ -1269,9 +1942,8 @@ interface OutreachPersonalizationCounters {
|
|
|
1269
1942
|
}
|
|
1270
1943
|
interface OutreachPersonalizationState {
|
|
1271
1944
|
status: OutreachPersonalizationStatus;
|
|
1272
|
-
model_integration_id?: string | null;
|
|
1273
1945
|
step_position?: number | null;
|
|
1274
|
-
|
|
1946
|
+
contact_ids: string[];
|
|
1275
1947
|
overwrite: boolean;
|
|
1276
1948
|
instructions?: string | null;
|
|
1277
1949
|
error?: string | null;
|
|
@@ -1296,7 +1968,7 @@ interface CampaignLaunchReadiness {
|
|
|
1296
1968
|
ready: boolean;
|
|
1297
1969
|
blockers: string[];
|
|
1298
1970
|
warnings: string[];
|
|
1299
|
-
|
|
1971
|
+
contact_count: number;
|
|
1300
1972
|
sender_count: number;
|
|
1301
1973
|
step_count: number;
|
|
1302
1974
|
daily_capacity: number;
|
|
@@ -1310,51 +1982,27 @@ interface CampaignLaunchReadiness {
|
|
|
1310
1982
|
stale_drafts: number;
|
|
1311
1983
|
suppression_count: number;
|
|
1312
1984
|
}
|
|
1313
|
-
interface
|
|
1985
|
+
interface CampaignEnrollmentImportResult$1 {
|
|
1314
1986
|
imported_count: number;
|
|
1315
1987
|
existing_count: number;
|
|
1316
1988
|
skipped_count: number;
|
|
1317
1989
|
draft_count: number;
|
|
1318
1990
|
}
|
|
1319
|
-
interface
|
|
1320
|
-
id: string;
|
|
1321
|
-
step_id?: string | null;
|
|
1322
|
-
step_position: number;
|
|
1323
|
-
step_variant_id?: string | null;
|
|
1324
|
-
step_variant_position?: number | null;
|
|
1325
|
-
step_variant_name?: string | null;
|
|
1326
|
-
template_copy_hash?: string | null;
|
|
1327
|
-
copy_source: CampaignMessageCopySource;
|
|
1328
|
-
personalized_at?: number | null;
|
|
1329
|
-
edited_at?: number | null;
|
|
1330
|
-
personalization_error?: string | null;
|
|
1331
|
-
mailbox_id?: string | null;
|
|
1332
|
-
from_email?: string | null;
|
|
1333
|
-
to_email: string;
|
|
1334
|
-
subject: string;
|
|
1335
|
-
body: string;
|
|
1336
|
-
body_html?: string | null;
|
|
1337
|
-
template_id?: string | null;
|
|
1338
|
-
template_vars: Record<string, unknown>;
|
|
1339
|
-
created_at: number;
|
|
1340
|
-
updated_at: number;
|
|
1341
|
-
}
|
|
1342
|
-
interface CampaignRecipient {
|
|
1991
|
+
interface CampaignEnrollment {
|
|
1343
1992
|
id: string;
|
|
1344
1993
|
store_id: string;
|
|
1345
1994
|
campaign_id: string;
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
import_source:
|
|
1995
|
+
contact_id: string;
|
|
1996
|
+
contact_list_membership_id?: string | null;
|
|
1997
|
+
import_source: CampaignEnrollmentImportSource;
|
|
1349
1998
|
import_source_id?: string | null;
|
|
1350
1999
|
imported_at?: number | null;
|
|
1351
2000
|
mailbox_id?: string | null;
|
|
1352
2001
|
lead_description?: string | null;
|
|
1353
2002
|
fields: Record<string, unknown>;
|
|
1354
|
-
|
|
1355
|
-
status: CampaignRecipientStatus;
|
|
2003
|
+
status: CampaignEnrollmentStatus;
|
|
1356
2004
|
current_step_position: number;
|
|
1357
|
-
|
|
2005
|
+
next_action_at?: number | null;
|
|
1358
2006
|
created_at: number;
|
|
1359
2007
|
updated_at: number;
|
|
1360
2008
|
}
|
|
@@ -1362,16 +2010,13 @@ interface CampaignMessage {
|
|
|
1362
2010
|
id: string;
|
|
1363
2011
|
store_id: string;
|
|
1364
2012
|
campaign_id: string;
|
|
1365
|
-
|
|
1366
|
-
|
|
2013
|
+
campaign_enrollment_id: string;
|
|
2014
|
+
contact_id: string;
|
|
1367
2015
|
mailbox_id: string;
|
|
1368
2016
|
direction: CampaignMessageDirection;
|
|
1369
|
-
|
|
2017
|
+
type: CampaignMessageType;
|
|
1370
2018
|
step_id?: string | null;
|
|
1371
2019
|
step_position?: number | null;
|
|
1372
|
-
step_variant_id?: string | null;
|
|
1373
|
-
step_variant_position?: number | null;
|
|
1374
|
-
step_variant_name?: string | null;
|
|
1375
2020
|
template_copy_hash?: string | null;
|
|
1376
2021
|
copy_source: CampaignMessageCopySource;
|
|
1377
2022
|
personalized_at?: number | null;
|
|
@@ -1390,23 +2035,34 @@ interface CampaignMessage {
|
|
|
1390
2035
|
rendered_html?: string | null;
|
|
1391
2036
|
rendered_text?: string | null;
|
|
1392
2037
|
attachments: string[];
|
|
2038
|
+
target_channel_type?: ChannelType | null;
|
|
2039
|
+
resolved_channel?: ContactChannel | null;
|
|
2040
|
+
title?: string | null;
|
|
2041
|
+
instructions?: string | null;
|
|
2042
|
+
suggested_message?: string | null;
|
|
2043
|
+
external_url?: string | null;
|
|
2044
|
+
continue_behavior?: ManualTaskContinueBehavior | null;
|
|
2045
|
+
outcome?: CampaignManualTaskOutcome | null;
|
|
2046
|
+
note?: string | null;
|
|
1393
2047
|
provider_message_id?: string | null;
|
|
1394
2048
|
provider_thread_id?: string | null;
|
|
1395
2049
|
error?: string | null;
|
|
2050
|
+
due_at?: number | null;
|
|
2051
|
+
completed_at?: number | null;
|
|
1396
2052
|
sent_at?: number | null;
|
|
1397
2053
|
received_at?: number | null;
|
|
1398
2054
|
created_at: number;
|
|
1399
2055
|
updated_at: number;
|
|
1400
2056
|
}
|
|
1401
|
-
interface
|
|
1402
|
-
|
|
2057
|
+
interface CampaignEnrollmentConversationResponse {
|
|
2058
|
+
enrollment: CampaignEnrollment;
|
|
1403
2059
|
messages: CampaignMessage[];
|
|
1404
2060
|
}
|
|
1405
2061
|
interface Suppression {
|
|
1406
2062
|
id: string;
|
|
1407
2063
|
store_id: string;
|
|
1408
2064
|
campaign_id?: string | null;
|
|
1409
|
-
|
|
2065
|
+
contact_id?: string | null;
|
|
1410
2066
|
email?: string | null;
|
|
1411
2067
|
domain?: string | null;
|
|
1412
2068
|
target_type: SuppressionTargetType;
|
|
@@ -1422,11 +2078,42 @@ interface Suppression {
|
|
|
1422
2078
|
type LeadResearchRunStatus = "draft" | "running" | "completed" | "failed" | "cancelled";
|
|
1423
2079
|
type LeadEmailClassification = "official_domain" | "role_official" | "personal_official" | "free_mail" | "unusable" | "unknown";
|
|
1424
2080
|
type LeadValidationCheckStatus = "passed" | "warning" | "failed" | "unknown";
|
|
2081
|
+
type CampaignRoute = "email_only" | "email_manual_followup" | "manual_only" | "needs_review";
|
|
2082
|
+
interface LeadScores {
|
|
2083
|
+
fit: number;
|
|
2084
|
+
problem: number;
|
|
2085
|
+
channel: number;
|
|
2086
|
+
intent: number;
|
|
2087
|
+
data_quality: number;
|
|
2088
|
+
}
|
|
2089
|
+
interface ChannelMessage {
|
|
2090
|
+
type: ChannelType;
|
|
2091
|
+
subject?: string | null;
|
|
2092
|
+
body: string;
|
|
2093
|
+
}
|
|
2094
|
+
interface LeadInsight {
|
|
2095
|
+
company?: string | null;
|
|
2096
|
+
contact_name?: string | null;
|
|
2097
|
+
website?: string | null;
|
|
2098
|
+
industry?: string | null;
|
|
2099
|
+
location?: string | null;
|
|
2100
|
+
description?: string | null;
|
|
2101
|
+
pain_points: string[];
|
|
2102
|
+
fit_reason?: string | null;
|
|
2103
|
+
scores: LeadScores;
|
|
2104
|
+
best_channel?: ChannelType | null;
|
|
2105
|
+
backup_channel?: ChannelType | null;
|
|
2106
|
+
route: CampaignRoute;
|
|
2107
|
+
first_messages: ChannelMessage[];
|
|
2108
|
+
run_id?: string | null;
|
|
2109
|
+
source_url?: string | null;
|
|
2110
|
+
source_excerpt?: string | null;
|
|
2111
|
+
reasoning_summary?: string | null;
|
|
2112
|
+
}
|
|
1425
2113
|
interface LeadResearchRun {
|
|
1426
2114
|
id: string;
|
|
1427
2115
|
store_id: string;
|
|
1428
|
-
|
|
1429
|
-
profile_list_id: string;
|
|
2116
|
+
contact_list_id: string;
|
|
1430
2117
|
title?: string | null;
|
|
1431
2118
|
status: LeadResearchRunStatus;
|
|
1432
2119
|
error?: string | null;
|
|
@@ -1450,20 +2137,22 @@ interface LeadEmailValidationResult {
|
|
|
1450
2137
|
hard_blockers: string[];
|
|
1451
2138
|
checks: LeadValidationCheck[];
|
|
1452
2139
|
}
|
|
2140
|
+
type LeadResearchMessageRole = "system" | "user" | "assistant" | "action" | "tool";
|
|
1453
2141
|
interface LeadResearchMessage {
|
|
1454
2142
|
id: string;
|
|
1455
|
-
role:
|
|
2143
|
+
role: LeadResearchMessageRole;
|
|
1456
2144
|
content: string;
|
|
2145
|
+
metadata?: Record<string, unknown> | null;
|
|
1457
2146
|
created_at: number;
|
|
1458
2147
|
}
|
|
1459
|
-
interface
|
|
1460
|
-
|
|
1461
|
-
membership:
|
|
2148
|
+
interface ResearchContactListMember {
|
|
2149
|
+
contact: Contact$1;
|
|
2150
|
+
membership: ContactListMembership;
|
|
1462
2151
|
}
|
|
1463
2152
|
interface SendLeadResearchMessageResult {
|
|
1464
2153
|
response: string;
|
|
1465
2154
|
run: LeadResearchRun;
|
|
1466
|
-
|
|
2155
|
+
contact_list_members: ResearchContactListMember[];
|
|
1467
2156
|
}
|
|
1468
2157
|
type EventAction = {
|
|
1469
2158
|
action: "order_created";
|
|
@@ -1539,11 +2228,17 @@ type EventAction = {
|
|
|
1539
2228
|
} | {
|
|
1540
2229
|
action: "product_deleted";
|
|
1541
2230
|
} | {
|
|
1542
|
-
action: "
|
|
2231
|
+
action: "collection_created";
|
|
2232
|
+
} | {
|
|
2233
|
+
action: "collection_updated";
|
|
1543
2234
|
} | {
|
|
1544
|
-
action: "
|
|
2235
|
+
action: "collection_deleted";
|
|
1545
2236
|
} | {
|
|
1546
|
-
action: "
|
|
2237
|
+
action: "entry_created";
|
|
2238
|
+
} | {
|
|
2239
|
+
action: "entry_updated";
|
|
2240
|
+
} | {
|
|
2241
|
+
action: "entry_deleted";
|
|
1547
2242
|
} | {
|
|
1548
2243
|
action: "provider_created";
|
|
1549
2244
|
} | {
|
|
@@ -1573,19 +2268,19 @@ type EventAction = {
|
|
|
1573
2268
|
} | {
|
|
1574
2269
|
action: "store_deleted";
|
|
1575
2270
|
} | {
|
|
1576
|
-
action: "
|
|
2271
|
+
action: "contact_list_created";
|
|
1577
2272
|
} | {
|
|
1578
|
-
action: "
|
|
2273
|
+
action: "contact_list_updated";
|
|
1579
2274
|
} | {
|
|
1580
|
-
action: "
|
|
2275
|
+
action: "contact_list_contact_added";
|
|
1581
2276
|
} | {
|
|
1582
|
-
action: "
|
|
2277
|
+
action: "contact_list_contact_removed";
|
|
1583
2278
|
} | {
|
|
1584
|
-
action: "
|
|
2279
|
+
action: "contact_list_contact_pending";
|
|
1585
2280
|
} | {
|
|
1586
|
-
action: "
|
|
2281
|
+
action: "contact_list_contact_confirmed";
|
|
1587
2282
|
} | {
|
|
1588
|
-
action: "
|
|
2283
|
+
action: "contact_list_contact_cancelled";
|
|
1589
2284
|
};
|
|
1590
2285
|
interface Event {
|
|
1591
2286
|
id: string;
|
|
@@ -1605,11 +2300,30 @@ interface OrderShipping {
|
|
|
1605
2300
|
}
|
|
1606
2301
|
interface ShipmentLine {
|
|
1607
2302
|
order_item_id: string;
|
|
2303
|
+
fulfillment_order_line_id?: string | null;
|
|
1608
2304
|
quantity: number;
|
|
1609
2305
|
}
|
|
2306
|
+
type ShipmentLabelStatus = "requested" | "processing" | "succeeded" | "failed" | "unknown";
|
|
2307
|
+
type ShipmentLabelError = {
|
|
2308
|
+
type: "provider_rejected";
|
|
2309
|
+
message: string;
|
|
2310
|
+
provider_code?: string | null;
|
|
2311
|
+
provider_status?: number | null;
|
|
2312
|
+
at: number;
|
|
2313
|
+
} | {
|
|
2314
|
+
type: "unknown_outcome";
|
|
2315
|
+
message: string;
|
|
2316
|
+
at: number;
|
|
2317
|
+
} | {
|
|
2318
|
+
type: "missing_configuration";
|
|
2319
|
+
message: string;
|
|
2320
|
+
at: number;
|
|
2321
|
+
};
|
|
1610
2322
|
interface Shipment {
|
|
1611
2323
|
id: string;
|
|
2324
|
+
fulfillment_order_id?: string | null;
|
|
1612
2325
|
location_id: string;
|
|
2326
|
+
rate_id?: string | null;
|
|
1613
2327
|
lines: ShipmentLine[];
|
|
1614
2328
|
carrier?: string | null;
|
|
1615
2329
|
service?: string | null;
|
|
@@ -1617,12 +2331,13 @@ interface Shipment {
|
|
|
1617
2331
|
tracking_url?: string | null;
|
|
1618
2332
|
label_url?: string | null;
|
|
1619
2333
|
status: ShippingStatus;
|
|
2334
|
+
label_status: ShipmentLabelStatus;
|
|
2335
|
+
label_error?: ShipmentLabelError | null;
|
|
1620
2336
|
created_at: number;
|
|
1621
2337
|
updated_at: number;
|
|
1622
2338
|
}
|
|
1623
2339
|
interface ShippingRate {
|
|
1624
2340
|
id: string;
|
|
1625
|
-
provider: string;
|
|
1626
2341
|
carrier: string;
|
|
1627
2342
|
service: string;
|
|
1628
2343
|
display_name: string;
|
|
@@ -1630,7 +2345,6 @@ interface ShippingRate {
|
|
|
1630
2345
|
currency: string;
|
|
1631
2346
|
estimated_days?: number | null;
|
|
1632
2347
|
}
|
|
1633
|
-
type ShippingAddress = Address;
|
|
1634
2348
|
interface Parcel {
|
|
1635
2349
|
length: number;
|
|
1636
2350
|
width: number;
|
|
@@ -1648,9 +2362,10 @@ interface PurchaseLabelResult {
|
|
|
1648
2362
|
}
|
|
1649
2363
|
interface ShipResult {
|
|
1650
2364
|
shipment_id: string;
|
|
1651
|
-
tracking_number
|
|
2365
|
+
tracking_number?: string | null;
|
|
1652
2366
|
tracking_url?: string | null;
|
|
1653
|
-
label_url
|
|
2367
|
+
label_url?: string | null;
|
|
2368
|
+
label_status: ShipmentLabelStatus;
|
|
1654
2369
|
}
|
|
1655
2370
|
interface CustomsItem {
|
|
1656
2371
|
description: string;
|
|
@@ -1717,6 +2432,7 @@ interface DeleteMarketParams {
|
|
|
1717
2432
|
interface RequestOptions<T = any> {
|
|
1718
2433
|
headers?: Record<string, string>;
|
|
1719
2434
|
params?: Record<string, any>;
|
|
2435
|
+
signal?: AbortSignal;
|
|
1720
2436
|
transformRequest?: (data: any) => any;
|
|
1721
2437
|
onSuccess?: (ctx: {
|
|
1722
2438
|
data: T;
|
|
@@ -1774,7 +2490,6 @@ interface ServiceQuoteItemInput extends ServiceQuoteItem {
|
|
|
1774
2490
|
type: "service";
|
|
1775
2491
|
}
|
|
1776
2492
|
type OrderQuoteItemInput = ProductQuoteItemInput | ServiceQuoteItemInput;
|
|
1777
|
-
type QuoteItemInput = OrderQuoteItemInput;
|
|
1778
2493
|
type OrderQuoteCompatibleItemInput = OrderQuoteItemInput | EshopQuoteItem | ServiceQuoteItem;
|
|
1779
2494
|
interface ProductCheckoutItemInput extends EshopItem {
|
|
1780
2495
|
type: "product";
|
|
@@ -1789,7 +2504,6 @@ interface ServiceCheckoutItemInput {
|
|
|
1789
2504
|
forms?: FormEntry[];
|
|
1790
2505
|
}
|
|
1791
2506
|
type OrderCheckoutItemInput = ProductCheckoutItemInput | ServiceCheckoutItemInput;
|
|
1792
|
-
type CheckoutItemInput = OrderCheckoutItemInput;
|
|
1793
2507
|
type OrderCheckoutCompatibleItemInput = OrderCheckoutItemInput | EshopItem | ServiceCheckoutPart;
|
|
1794
2508
|
interface TrustedProductCheckoutItemInput extends ProductCheckoutItemInput {
|
|
1795
2509
|
price?: Price;
|
|
@@ -1806,7 +2520,7 @@ interface GetQuoteParams {
|
|
|
1806
2520
|
shipping_address?: Address;
|
|
1807
2521
|
billing_address?: Address;
|
|
1808
2522
|
forms?: FormEntry[];
|
|
1809
|
-
|
|
2523
|
+
payment_method_key?: string;
|
|
1810
2524
|
promo_code?: string;
|
|
1811
2525
|
shipping_method_id?: string;
|
|
1812
2526
|
location?: ZoneLocation;
|
|
@@ -1815,7 +2529,7 @@ interface OrderCheckoutParams {
|
|
|
1815
2529
|
store_id?: string;
|
|
1816
2530
|
market?: string;
|
|
1817
2531
|
items: OrderCheckoutCompatibleItemInput[];
|
|
1818
|
-
|
|
2532
|
+
payment_method_key?: string;
|
|
1819
2533
|
shipping_address?: Address;
|
|
1820
2534
|
billing_address?: Address;
|
|
1821
2535
|
forms?: FormEntry[];
|
|
@@ -1833,7 +2547,7 @@ interface GetCartParams {
|
|
|
1833
2547
|
}
|
|
1834
2548
|
interface FindCartsParams {
|
|
1835
2549
|
store_id?: string;
|
|
1836
|
-
|
|
2550
|
+
contact_id?: string;
|
|
1837
2551
|
statuses?: CartStatus[];
|
|
1838
2552
|
origins?: CartOrigin[];
|
|
1839
2553
|
has_items?: boolean;
|
|
@@ -1842,14 +2556,14 @@ interface FindCartsParams {
|
|
|
1842
2556
|
}
|
|
1843
2557
|
interface CreateCartParams {
|
|
1844
2558
|
store_id?: string;
|
|
1845
|
-
|
|
2559
|
+
contact_id: string;
|
|
1846
2560
|
market: string;
|
|
1847
2561
|
items?: TrustedOrderCheckoutCompatibleItemInput[];
|
|
1848
2562
|
shipping_address?: Address | null;
|
|
1849
2563
|
billing_address?: Address | null;
|
|
1850
2564
|
forms?: FormEntry[];
|
|
1851
2565
|
promo_code?: string | null;
|
|
1852
|
-
|
|
2566
|
+
payment_method_key?: string | null;
|
|
1853
2567
|
shipping_method_id?: string | null;
|
|
1854
2568
|
}
|
|
1855
2569
|
interface UpdateCartParams {
|
|
@@ -1861,7 +2575,7 @@ interface UpdateCartParams {
|
|
|
1861
2575
|
billing_address?: Address;
|
|
1862
2576
|
forms?: FormEntry[];
|
|
1863
2577
|
promo_code?: string;
|
|
1864
|
-
|
|
2578
|
+
payment_method_key?: string;
|
|
1865
2579
|
shipping_method_id?: string;
|
|
1866
2580
|
}
|
|
1867
2581
|
interface AddCartItemParams {
|
|
@@ -1887,7 +2601,9 @@ interface QuoteCartParams {
|
|
|
1887
2601
|
interface CheckoutCartParams {
|
|
1888
2602
|
id: string;
|
|
1889
2603
|
store_id?: string;
|
|
1890
|
-
|
|
2604
|
+
payment_method_key?: string;
|
|
2605
|
+
confirmation_token_id?: string;
|
|
2606
|
+
return_url?: string;
|
|
1891
2607
|
}
|
|
1892
2608
|
interface GetProductsParams {
|
|
1893
2609
|
store_id?: string;
|
|
@@ -1903,53 +2619,79 @@ interface GetProductsParams {
|
|
|
1903
2619
|
created_at_from?: number | null;
|
|
1904
2620
|
created_at_to?: number | null;
|
|
1905
2621
|
}
|
|
1906
|
-
interface
|
|
2622
|
+
interface GetCollectionsParams {
|
|
1907
2623
|
store_id?: string;
|
|
1908
2624
|
ids?: string[];
|
|
1909
|
-
parent_id?: string;
|
|
1910
2625
|
key?: string;
|
|
1911
2626
|
limit?: number;
|
|
1912
2627
|
cursor?: string;
|
|
1913
2628
|
query?: string | number;
|
|
1914
|
-
status?:
|
|
2629
|
+
status?: CollectionStatus;
|
|
1915
2630
|
sort_field?: string;
|
|
1916
2631
|
sort_direction?: "asc" | "desc";
|
|
1917
2632
|
created_at_from?: number;
|
|
1918
2633
|
created_at_to?: number;
|
|
1919
2634
|
}
|
|
1920
|
-
interface
|
|
2635
|
+
interface CreateCollectionParams {
|
|
1921
2636
|
store_id?: string;
|
|
1922
2637
|
key: string;
|
|
1923
|
-
|
|
2638
|
+
schema?: BlockSchema[];
|
|
1924
2639
|
blocks?: Block[];
|
|
1925
|
-
taxonomies?: TaxonomyEntry[];
|
|
1926
|
-
slug?: Record<string, string>;
|
|
1927
2640
|
}
|
|
1928
|
-
interface
|
|
2641
|
+
interface UpdateCollectionParams {
|
|
1929
2642
|
id: string;
|
|
1930
2643
|
store_id?: string;
|
|
1931
2644
|
key?: string;
|
|
1932
|
-
|
|
2645
|
+
schema?: BlockSchema[];
|
|
1933
2646
|
blocks?: Block[];
|
|
1934
|
-
|
|
1935
|
-
status?: NodeStatus;
|
|
1936
|
-
slug?: Record<string, string>;
|
|
2647
|
+
status?: CollectionStatus;
|
|
1937
2648
|
}
|
|
1938
|
-
interface
|
|
2649
|
+
interface GetCollectionParams {
|
|
1939
2650
|
id?: string;
|
|
1940
|
-
slug?: string;
|
|
1941
2651
|
key?: string;
|
|
1942
2652
|
store_id?: string;
|
|
1943
2653
|
}
|
|
1944
|
-
interface
|
|
2654
|
+
interface DeleteCollectionParams {
|
|
1945
2655
|
id: string;
|
|
1946
2656
|
store_id?: string;
|
|
1947
2657
|
}
|
|
1948
|
-
interface
|
|
1949
|
-
id: string;
|
|
2658
|
+
interface GetEntriesParams {
|
|
1950
2659
|
store_id?: string;
|
|
2660
|
+
collection_id: string;
|
|
2661
|
+
ids?: string[];
|
|
2662
|
+
key?: string;
|
|
2663
|
+
status?: EntryStatus;
|
|
2664
|
+
query?: string | number;
|
|
2665
|
+
filters?: EntryBlockQuery[];
|
|
1951
2666
|
limit?: number;
|
|
1952
2667
|
cursor?: string;
|
|
2668
|
+
sort_field?: string;
|
|
2669
|
+
sort_direction?: "asc" | "desc";
|
|
2670
|
+
created_at_from?: number;
|
|
2671
|
+
created_at_to?: number;
|
|
2672
|
+
}
|
|
2673
|
+
interface CreateEntryParams {
|
|
2674
|
+
store_id?: string;
|
|
2675
|
+
collection_id: string;
|
|
2676
|
+
key: string;
|
|
2677
|
+
slug?: Record<string, string>;
|
|
2678
|
+
blocks?: Block[];
|
|
2679
|
+
}
|
|
2680
|
+
interface UpdateEntryParams {
|
|
2681
|
+
id: string;
|
|
2682
|
+
store_id?: string;
|
|
2683
|
+
key?: string;
|
|
2684
|
+
slug?: Record<string, string>;
|
|
2685
|
+
blocks?: Block[];
|
|
2686
|
+
status?: EntryStatus;
|
|
2687
|
+
}
|
|
2688
|
+
interface GetEntryParams {
|
|
2689
|
+
id?: string;
|
|
2690
|
+
store_id?: string;
|
|
2691
|
+
}
|
|
2692
|
+
interface DeleteEntryParams {
|
|
2693
|
+
id: string;
|
|
2694
|
+
store_id?: string;
|
|
1953
2695
|
}
|
|
1954
2696
|
interface UploadStoreMediaParams {
|
|
1955
2697
|
store_id?: string;
|
|
@@ -1984,10 +2726,6 @@ interface LoginAccountParams {
|
|
|
1984
2726
|
provider: string;
|
|
1985
2727
|
token?: string;
|
|
1986
2728
|
}
|
|
1987
|
-
interface MagicLinkRequestParams {
|
|
1988
|
-
email: string;
|
|
1989
|
-
store_id?: string;
|
|
1990
|
-
}
|
|
1991
2729
|
interface MagicLinkVerifyParams {
|
|
1992
2730
|
email: string;
|
|
1993
2731
|
code: string;
|
|
@@ -2132,9 +2870,11 @@ interface DeleteStoreParams {
|
|
|
2132
2870
|
}
|
|
2133
2871
|
interface GetStoreParams {
|
|
2134
2872
|
}
|
|
2873
|
+
type SubscriptionAction = "select_plan" | "cancel_at_period_end" | "reactivate";
|
|
2135
2874
|
interface SubscribeParams {
|
|
2136
2875
|
store_id?: string;
|
|
2137
2876
|
plan_id: string;
|
|
2877
|
+
action: SubscriptionAction;
|
|
2138
2878
|
success_url: string;
|
|
2139
2879
|
cancel_url: string;
|
|
2140
2880
|
}
|
|
@@ -2147,8 +2887,6 @@ interface AddMemberParams {
|
|
|
2147
2887
|
role?: StoreRole;
|
|
2148
2888
|
store_id?: string;
|
|
2149
2889
|
}
|
|
2150
|
-
interface InviteUserParams extends AddMemberParams {
|
|
2151
|
-
}
|
|
2152
2890
|
interface RemoveMemberParams {
|
|
2153
2891
|
account_id: string;
|
|
2154
2892
|
}
|
|
@@ -2160,6 +2898,12 @@ interface CreateProductVariantInput {
|
|
|
2160
2898
|
prices: Price[];
|
|
2161
2899
|
inventory: ProductInventory[];
|
|
2162
2900
|
attributes: Block[];
|
|
2901
|
+
requires_shipping?: boolean;
|
|
2902
|
+
digital_delivery_policy?: DigitalDeliveryPolicy;
|
|
2903
|
+
digital_assets?: DigitalAsset[];
|
|
2904
|
+
download_limit?: number | null;
|
|
2905
|
+
access_expires_after_days?: number | null;
|
|
2906
|
+
tax_category_id?: string | null;
|
|
2163
2907
|
weight?: number;
|
|
2164
2908
|
}
|
|
2165
2909
|
interface UpdateProductVariantInput {
|
|
@@ -2168,6 +2912,12 @@ interface UpdateProductVariantInput {
|
|
|
2168
2912
|
prices?: Price[];
|
|
2169
2913
|
inventory?: ProductInventory[];
|
|
2170
2914
|
attributes?: Block[];
|
|
2915
|
+
requires_shipping?: boolean;
|
|
2916
|
+
digital_delivery_policy?: DigitalDeliveryPolicy;
|
|
2917
|
+
digital_assets?: DigitalAsset[];
|
|
2918
|
+
download_limit?: number | null;
|
|
2919
|
+
access_expires_after_days?: number | null;
|
|
2920
|
+
tax_category_id?: string | null;
|
|
2171
2921
|
weight?: number | null;
|
|
2172
2922
|
}
|
|
2173
2923
|
interface CreateProductParams {
|
|
@@ -2176,7 +2926,6 @@ interface CreateProductParams {
|
|
|
2176
2926
|
slug?: Record<string, string>;
|
|
2177
2927
|
blocks?: Block[];
|
|
2178
2928
|
taxonomies?: TaxonomyEntry[];
|
|
2179
|
-
filters?: TaxonomyEntry[];
|
|
2180
2929
|
variants?: CreateProductVariantInput[];
|
|
2181
2930
|
}
|
|
2182
2931
|
interface UpdateProductParams {
|
|
@@ -2186,7 +2935,6 @@ interface UpdateProductParams {
|
|
|
2186
2935
|
slug?: Record<string, string>;
|
|
2187
2936
|
blocks?: Block[];
|
|
2188
2937
|
taxonomies?: TaxonomyEntry[];
|
|
2189
|
-
filters?: TaxonomyEntry[];
|
|
2190
2938
|
variants?: UpdateProductVariantInput[];
|
|
2191
2939
|
status?: ProductStatus;
|
|
2192
2940
|
}
|
|
@@ -2205,10 +2953,12 @@ interface GetOrderParams {
|
|
|
2205
2953
|
}
|
|
2206
2954
|
interface GetOrdersParams {
|
|
2207
2955
|
store_id?: string;
|
|
2208
|
-
|
|
2956
|
+
contact_id?: string;
|
|
2209
2957
|
statuses?: string[];
|
|
2210
2958
|
item_statuses?: string[];
|
|
2211
2959
|
product_ids?: string[];
|
|
2960
|
+
service_ids?: string[];
|
|
2961
|
+
provider_ids?: string[];
|
|
2212
2962
|
verified?: boolean;
|
|
2213
2963
|
query?: string | number | null;
|
|
2214
2964
|
limit?: number | null;
|
|
@@ -2217,9 +2967,7 @@ interface GetOrdersParams {
|
|
|
2217
2967
|
sort_direction?: "asc" | "desc" | null;
|
|
2218
2968
|
created_at_from?: number | null;
|
|
2219
2969
|
created_at_to?: number | null;
|
|
2220
|
-
|
|
2221
|
-
}
|
|
2222
|
-
interface OrderUpdateItem extends EshopItem {
|
|
2970
|
+
contact_list_id?: string;
|
|
2223
2971
|
}
|
|
2224
2972
|
interface UpdateOrderParams {
|
|
2225
2973
|
id: string;
|
|
@@ -2239,7 +2987,6 @@ interface CreateProviderParams {
|
|
|
2239
2987
|
status?: ProviderStatus;
|
|
2240
2988
|
blocks?: Block[];
|
|
2241
2989
|
taxonomies?: TaxonomyEntry[];
|
|
2242
|
-
filters?: TaxonomyEntry[];
|
|
2243
2990
|
}
|
|
2244
2991
|
interface UpdateProviderParams {
|
|
2245
2992
|
id: string;
|
|
@@ -2249,7 +2996,6 @@ interface UpdateProviderParams {
|
|
|
2249
2996
|
status?: ProviderStatus;
|
|
2250
2997
|
blocks?: Block[];
|
|
2251
2998
|
taxonomies?: TaxonomyEntry[];
|
|
2252
|
-
filters?: TaxonomyEntry[];
|
|
2253
2999
|
}
|
|
2254
3000
|
interface DeleteProviderParams {
|
|
2255
3001
|
id: string;
|
|
@@ -2269,7 +3015,6 @@ interface CreateServiceParams {
|
|
|
2269
3015
|
slug?: Record<string, string>;
|
|
2270
3016
|
blocks?: Block[];
|
|
2271
3017
|
taxonomies?: TaxonomyEntry[];
|
|
2272
|
-
filters?: TaxonomyEntry[];
|
|
2273
3018
|
location?: ZoneLocation;
|
|
2274
3019
|
status?: ServiceStatus;
|
|
2275
3020
|
}
|
|
@@ -2280,7 +3025,6 @@ interface UpdateServiceParams {
|
|
|
2280
3025
|
slug?: Record<string, string>;
|
|
2281
3026
|
blocks?: Block[];
|
|
2282
3027
|
taxonomies?: TaxonomyEntry[];
|
|
2283
|
-
filters?: TaxonomyEntry[];
|
|
2284
3028
|
location?: ZoneLocation | null;
|
|
2285
3029
|
status?: ServiceStatus;
|
|
2286
3030
|
}
|
|
@@ -2353,7 +3097,7 @@ interface GetProviderParams {
|
|
|
2353
3097
|
}
|
|
2354
3098
|
interface SearchOrderServiceItemsParams {
|
|
2355
3099
|
store_id?: string;
|
|
2356
|
-
|
|
3100
|
+
contact_id?: string;
|
|
2357
3101
|
service_ids?: string[];
|
|
2358
3102
|
provider_ids?: string[];
|
|
2359
3103
|
from?: number;
|
|
@@ -2365,7 +3109,12 @@ interface SearchOrderServiceItemsParams {
|
|
|
2365
3109
|
cursor?: string;
|
|
2366
3110
|
verified?: boolean;
|
|
2367
3111
|
query?: string | number;
|
|
2368
|
-
|
|
3112
|
+
contact_list_id?: string;
|
|
3113
|
+
}
|
|
3114
|
+
interface DownloadDigitalAccessParams {
|
|
3115
|
+
id: string;
|
|
3116
|
+
grant_id: string;
|
|
3117
|
+
store_id?: string;
|
|
2369
3118
|
}
|
|
2370
3119
|
interface AccountAddress {
|
|
2371
3120
|
label?: string;
|
|
@@ -2379,7 +3128,7 @@ interface AccountApiToken {
|
|
|
2379
3128
|
expires_at?: number | null;
|
|
2380
3129
|
type?: string;
|
|
2381
3130
|
}
|
|
2382
|
-
interface
|
|
3131
|
+
interface UpdateAccountContactParams {
|
|
2383
3132
|
phone_numbers?: string[];
|
|
2384
3133
|
addresses?: AccountAddress[];
|
|
2385
3134
|
api_tokens?: AccountApiToken[] | null;
|
|
@@ -2511,7 +3260,7 @@ interface SubmitFormParams {
|
|
|
2511
3260
|
interface GetFormSubmissionsParams {
|
|
2512
3261
|
form_ids?: string[];
|
|
2513
3262
|
store_id?: string;
|
|
2514
|
-
|
|
3263
|
+
contact_id?: string;
|
|
2515
3264
|
query?: string | number;
|
|
2516
3265
|
limit?: number;
|
|
2517
3266
|
cursor?: string;
|
|
@@ -2520,9 +3269,10 @@ interface GetFormSubmissionsParams {
|
|
|
2520
3269
|
created_at_from?: number;
|
|
2521
3270
|
created_at_to?: number;
|
|
2522
3271
|
}
|
|
2523
|
-
interface
|
|
3272
|
+
interface FindActionsParams {
|
|
2524
3273
|
store_id?: string;
|
|
2525
|
-
|
|
3274
|
+
query?: string | number;
|
|
3275
|
+
contact_id?: string;
|
|
2526
3276
|
types?: string[];
|
|
2527
3277
|
from?: number;
|
|
2528
3278
|
to?: number;
|
|
@@ -2597,7 +3347,7 @@ interface GetSubscriptionPlansParams {
|
|
|
2597
3347
|
interface SetupAnalyticsParams {
|
|
2598
3348
|
store_id?: string;
|
|
2599
3349
|
}
|
|
2600
|
-
interface
|
|
3350
|
+
interface FindStoreMediaParams {
|
|
2601
3351
|
id: string;
|
|
2602
3352
|
cursor?: string | null;
|
|
2603
3353
|
limit: number;
|
|
@@ -2611,6 +3361,12 @@ interface ProcessOrderRefundParams {
|
|
|
2611
3361
|
id: string;
|
|
2612
3362
|
amount: number;
|
|
2613
3363
|
}
|
|
3364
|
+
type RefundStatus = "requested" | "processing" | "succeeded" | "failed" | "unknown";
|
|
3365
|
+
interface ProcessOrderRefundResponse {
|
|
3366
|
+
refund_id: string;
|
|
3367
|
+
amount: number;
|
|
3368
|
+
status: RefundStatus;
|
|
3369
|
+
}
|
|
2614
3370
|
type SystemTemplateKey = "system:order-status-update" | "system:user-confirmation" | "system:forgot-password";
|
|
2615
3371
|
interface GetAvailabilityParams {
|
|
2616
3372
|
store_id?: string;
|
|
@@ -2700,98 +3456,117 @@ interface GetWorkflowExecutionParams {
|
|
|
2700
3456
|
execution_id: string;
|
|
2701
3457
|
store_id?: string;
|
|
2702
3458
|
}
|
|
2703
|
-
interface
|
|
3459
|
+
interface ConnectWorkflowAccountParams {
|
|
3460
|
+
store_id?: string;
|
|
3461
|
+
type: WorkflowAccountType;
|
|
3462
|
+
key?: string;
|
|
3463
|
+
code: string;
|
|
3464
|
+
redirect_uri: string;
|
|
3465
|
+
}
|
|
3466
|
+
interface GetWorkflowAccountConnectUrlParams {
|
|
3467
|
+
store_id?: string;
|
|
3468
|
+
type: WorkflowAccountType;
|
|
3469
|
+
redirect_uri: string;
|
|
3470
|
+
}
|
|
3471
|
+
interface GetWorkflowAccountsParams {
|
|
3472
|
+
store_id?: string;
|
|
3473
|
+
}
|
|
3474
|
+
interface DeleteWorkflowAccountParams {
|
|
3475
|
+
id: string;
|
|
3476
|
+
store_id?: string;
|
|
3477
|
+
}
|
|
3478
|
+
interface CreateContactListParams {
|
|
2704
3479
|
store_id?: string;
|
|
2705
3480
|
key: string;
|
|
2706
3481
|
name?: string;
|
|
2707
3482
|
description?: string | null;
|
|
2708
|
-
type?:
|
|
2709
|
-
source?:
|
|
3483
|
+
type?: ContactListType;
|
|
3484
|
+
source?: ContactListSource;
|
|
2710
3485
|
}
|
|
2711
|
-
interface
|
|
3486
|
+
interface UpdateContactListParams {
|
|
2712
3487
|
id: string;
|
|
2713
3488
|
store_id?: string;
|
|
2714
3489
|
key?: string;
|
|
2715
3490
|
name?: string;
|
|
2716
3491
|
description?: string | null;
|
|
2717
|
-
status?:
|
|
2718
|
-
type?:
|
|
3492
|
+
status?: ContactListStatus;
|
|
3493
|
+
type?: ContactListType;
|
|
2719
3494
|
}
|
|
2720
|
-
interface
|
|
3495
|
+
interface FindContactListsParams {
|
|
2721
3496
|
store_id?: string;
|
|
2722
3497
|
ids?: string[];
|
|
2723
|
-
status?:
|
|
3498
|
+
status?: ContactListStatus;
|
|
2724
3499
|
query?: string | number;
|
|
2725
3500
|
limit?: number;
|
|
2726
3501
|
cursor?: string;
|
|
2727
3502
|
sort_field?: string;
|
|
2728
3503
|
sort_direction?: "asc" | "desc";
|
|
2729
3504
|
}
|
|
2730
|
-
interface
|
|
3505
|
+
interface GetContactListParams {
|
|
2731
3506
|
id: string;
|
|
2732
3507
|
store_id?: string;
|
|
2733
3508
|
}
|
|
2734
|
-
interface
|
|
3509
|
+
interface AddContactListContactParams {
|
|
2735
3510
|
store_id?: string;
|
|
2736
|
-
|
|
2737
|
-
|
|
3511
|
+
contact_list_id: string;
|
|
3512
|
+
contact_id: string;
|
|
2738
3513
|
fields?: Record<string, unknown>;
|
|
2739
3514
|
lead_description?: string | null;
|
|
2740
3515
|
}
|
|
2741
|
-
interface
|
|
3516
|
+
interface UpdateContactListContactParams {
|
|
2742
3517
|
store_id?: string;
|
|
2743
|
-
|
|
2744
|
-
|
|
2745
|
-
status?:
|
|
3518
|
+
contact_list_id: string;
|
|
3519
|
+
contact_id: string;
|
|
3520
|
+
status?: ContactListMembershipStatus;
|
|
2746
3521
|
fields?: Record<string, unknown>;
|
|
2747
3522
|
lead_description?: string | null;
|
|
2748
3523
|
}
|
|
2749
|
-
interface
|
|
3524
|
+
interface RemoveContactListContactParams {
|
|
2750
3525
|
store_id?: string;
|
|
2751
|
-
|
|
2752
|
-
|
|
3526
|
+
contact_list_id: string;
|
|
3527
|
+
contact_id: string;
|
|
2753
3528
|
}
|
|
2754
|
-
interface
|
|
3529
|
+
interface FindContactListContactsParams {
|
|
2755
3530
|
store_id?: string;
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
status?:
|
|
3531
|
+
contact_list_id?: string;
|
|
3532
|
+
contact_id?: string;
|
|
3533
|
+
status?: ContactListMembershipStatus;
|
|
2759
3534
|
limit?: number;
|
|
2760
3535
|
cursor?: string;
|
|
2761
3536
|
}
|
|
2762
|
-
interface
|
|
3537
|
+
interface ImportContactRowInput {
|
|
2763
3538
|
email: string;
|
|
2764
|
-
|
|
3539
|
+
contact_id?: string;
|
|
2765
3540
|
fields?: Record<string, unknown>;
|
|
2766
3541
|
lead_description?: string;
|
|
2767
3542
|
}
|
|
2768
|
-
interface
|
|
3543
|
+
interface ImportContactsParams {
|
|
2769
3544
|
store_id?: string;
|
|
2770
3545
|
csv?: string;
|
|
2771
3546
|
spreadsheet_base64?: string;
|
|
2772
3547
|
sheet_name?: string | null;
|
|
2773
3548
|
email_column?: string | null;
|
|
2774
3549
|
field_mappings?: ImportFieldMapping[];
|
|
2775
|
-
rows?:
|
|
3550
|
+
rows?: ImportContactRowInput[];
|
|
2776
3551
|
}
|
|
2777
|
-
interface
|
|
3552
|
+
interface ImportContactsIntoContactListParams {
|
|
2778
3553
|
store_id?: string;
|
|
2779
|
-
|
|
3554
|
+
contact_list_id: string;
|
|
2780
3555
|
csv?: string;
|
|
2781
3556
|
spreadsheet_base64?: string;
|
|
2782
3557
|
sheet_name?: string | null;
|
|
2783
3558
|
email_column?: string | null;
|
|
2784
3559
|
field_mappings?: ImportFieldMapping[];
|
|
2785
|
-
rows?:
|
|
3560
|
+
rows?: ImportContactRowInput[];
|
|
2786
3561
|
}
|
|
2787
|
-
interface
|
|
3562
|
+
interface ImportContactsPreviewParams {
|
|
2788
3563
|
store_id?: string;
|
|
2789
3564
|
csv?: string;
|
|
2790
3565
|
spreadsheet_base64?: string;
|
|
2791
3566
|
sheet_name?: string | null;
|
|
2792
3567
|
}
|
|
2793
|
-
interface
|
|
2794
|
-
|
|
3568
|
+
interface ImportContactListPreviewParams extends ImportContactsPreviewParams {
|
|
3569
|
+
contact_list_id: string;
|
|
2795
3570
|
}
|
|
2796
3571
|
interface ImportFieldMapping {
|
|
2797
3572
|
source: string;
|
|
@@ -2801,7 +3576,7 @@ interface ImportPreviewRow {
|
|
|
2801
3576
|
row: number;
|
|
2802
3577
|
values: Record<string, unknown>;
|
|
2803
3578
|
}
|
|
2804
|
-
interface
|
|
3579
|
+
interface ImportContactsPreviewResult {
|
|
2805
3580
|
sheets: string[];
|
|
2806
3581
|
selected_sheet?: string | null;
|
|
2807
3582
|
header_row: number;
|
|
@@ -2811,58 +3586,58 @@ interface ImportProfilesPreviewResult {
|
|
|
2811
3586
|
sample_rows: ImportPreviewRow[];
|
|
2812
3587
|
suggested_field_mappings: ImportFieldMapping[];
|
|
2813
3588
|
}
|
|
2814
|
-
interface
|
|
3589
|
+
interface ImportContactRowError {
|
|
2815
3590
|
row: number;
|
|
2816
3591
|
field: string;
|
|
2817
3592
|
message: string;
|
|
2818
3593
|
}
|
|
2819
|
-
interface
|
|
3594
|
+
interface ImportContactRowResult {
|
|
2820
3595
|
row: number;
|
|
2821
3596
|
email: string;
|
|
2822
|
-
|
|
3597
|
+
contact_id?: string | null;
|
|
2823
3598
|
created: boolean;
|
|
2824
3599
|
updated: boolean;
|
|
2825
3600
|
error?: string | null;
|
|
2826
3601
|
}
|
|
2827
|
-
interface
|
|
3602
|
+
interface ImportContactsResult {
|
|
2828
3603
|
rows_total: number;
|
|
2829
|
-
|
|
2830
|
-
|
|
3604
|
+
contacts_created: number;
|
|
3605
|
+
contacts_updated: number;
|
|
2831
3606
|
rows_failed: number;
|
|
2832
|
-
errors:
|
|
2833
|
-
rows:
|
|
3607
|
+
errors: ImportContactRowError[];
|
|
3608
|
+
rows: ImportContactRowResult[];
|
|
2834
3609
|
}
|
|
2835
|
-
interface
|
|
3610
|
+
interface ImportContactListRowResult {
|
|
2836
3611
|
row: number;
|
|
2837
3612
|
email: string;
|
|
2838
|
-
|
|
2839
|
-
|
|
2840
|
-
|
|
3613
|
+
contact_id?: string | null;
|
|
3614
|
+
contact_created: boolean;
|
|
3615
|
+
contact_updated: boolean;
|
|
2841
3616
|
added_to_list: boolean;
|
|
2842
3617
|
updated_in_list: boolean;
|
|
2843
3618
|
error?: string | null;
|
|
2844
3619
|
}
|
|
2845
|
-
interface
|
|
3620
|
+
interface ImportContactsIntoContactListResult {
|
|
2846
3621
|
rows_total: number;
|
|
2847
|
-
|
|
2848
|
-
|
|
2849
|
-
|
|
2850
|
-
|
|
2851
|
-
|
|
3622
|
+
contacts_created: number;
|
|
3623
|
+
contacts_updated: number;
|
|
3624
|
+
contacts_added: number;
|
|
3625
|
+
contacts_updated_in_list: number;
|
|
3626
|
+
contacts_failed_to_add: number;
|
|
2852
3627
|
rows_failed: number;
|
|
2853
|
-
errors:
|
|
2854
|
-
rows:
|
|
3628
|
+
errors: ImportContactRowError[];
|
|
3629
|
+
rows: ImportContactListRowResult[];
|
|
2855
3630
|
}
|
|
2856
|
-
interface
|
|
3631
|
+
interface SubscribeContactListParams {
|
|
2857
3632
|
store_id?: string;
|
|
2858
3633
|
id: string;
|
|
2859
|
-
|
|
3634
|
+
contact_id: string;
|
|
2860
3635
|
price_id?: string;
|
|
2861
3636
|
success_url?: string;
|
|
2862
3637
|
cancel_url?: string;
|
|
2863
3638
|
confirm_url?: string;
|
|
2864
3639
|
}
|
|
2865
|
-
interface
|
|
3640
|
+
interface ContactListAccessParams {
|
|
2866
3641
|
store_id?: string;
|
|
2867
3642
|
id: string;
|
|
2868
3643
|
}
|
|
@@ -2872,7 +3647,7 @@ interface CreateMailboxParams {
|
|
|
2872
3647
|
email: string;
|
|
2873
3648
|
from_name?: string;
|
|
2874
3649
|
reply_to_email?: string | null;
|
|
2875
|
-
provider:
|
|
3650
|
+
provider: SmtpImapMailboxProvider;
|
|
2876
3651
|
password?: string;
|
|
2877
3652
|
daily_limit?: number;
|
|
2878
3653
|
}
|
|
@@ -2883,7 +3658,7 @@ interface UpdateMailboxParams {
|
|
|
2883
3658
|
email?: string;
|
|
2884
3659
|
from_name?: string;
|
|
2885
3660
|
reply_to_email?: string | null;
|
|
2886
|
-
provider?:
|
|
3661
|
+
provider?: SmtpImapMailboxProvider;
|
|
2887
3662
|
password?: string;
|
|
2888
3663
|
status?: MailboxStatus;
|
|
2889
3664
|
daily_limit?: number;
|
|
@@ -2892,7 +3667,7 @@ interface FindMailboxesParams {
|
|
|
2892
3667
|
store_id?: string;
|
|
2893
3668
|
ids?: string[];
|
|
2894
3669
|
status?: MailboxStatus;
|
|
2895
|
-
provider_type?: "
|
|
3670
|
+
provider_type?: "smtp_imap";
|
|
2896
3671
|
query?: string | number;
|
|
2897
3672
|
limit?: number;
|
|
2898
3673
|
cursor?: string;
|
|
@@ -2959,21 +3734,21 @@ interface DuplicateCampaignParams {
|
|
|
2959
3734
|
store_id?: string;
|
|
2960
3735
|
key?: string;
|
|
2961
3736
|
name?: string;
|
|
2962
|
-
|
|
3737
|
+
copy_enrollments?: boolean;
|
|
2963
3738
|
}
|
|
2964
3739
|
interface GetCampaignLaunchReadinessParams {
|
|
2965
3740
|
id: string;
|
|
2966
3741
|
store_id?: string;
|
|
2967
3742
|
}
|
|
2968
|
-
interface
|
|
3743
|
+
interface ImportCampaignEnrollmentsParams {
|
|
2969
3744
|
id: string;
|
|
2970
3745
|
store_id?: string;
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
3746
|
+
contact_list_id?: string;
|
|
3747
|
+
contact_list_ids?: string[];
|
|
3748
|
+
contact_ids?: string[];
|
|
2974
3749
|
emails?: string[];
|
|
2975
3750
|
}
|
|
2976
|
-
interface
|
|
3751
|
+
interface CampaignEnrollmentImportResult {
|
|
2977
3752
|
imported_count: number;
|
|
2978
3753
|
existing_count: number;
|
|
2979
3754
|
skipped_count: number;
|
|
@@ -2983,41 +3758,49 @@ interface GenerateOutreachPersonalizedDraftsParams {
|
|
|
2983
3758
|
id: string;
|
|
2984
3759
|
store_id?: string;
|
|
2985
3760
|
step_position?: number;
|
|
2986
|
-
|
|
3761
|
+
contact_ids?: string[];
|
|
2987
3762
|
overwrite?: boolean;
|
|
2988
|
-
model_integration_id?: string;
|
|
2989
3763
|
instructions?: string;
|
|
2990
3764
|
}
|
|
2991
|
-
interface
|
|
3765
|
+
interface FindCampaignEnrollmentsParams {
|
|
2992
3766
|
store_id?: string;
|
|
2993
3767
|
campaign_id?: string;
|
|
2994
|
-
|
|
3768
|
+
contact_id?: string;
|
|
2995
3769
|
mailbox_id?: string;
|
|
2996
|
-
status?:
|
|
3770
|
+
status?: CampaignEnrollmentStatus;
|
|
2997
3771
|
limit?: number;
|
|
2998
3772
|
cursor?: string;
|
|
2999
3773
|
}
|
|
3000
|
-
interface
|
|
3774
|
+
interface UpdateCampaignEnrollmentParams {
|
|
3001
3775
|
store_id?: string;
|
|
3002
3776
|
id: string;
|
|
3003
3777
|
mailbox_id?: string | null;
|
|
3004
3778
|
lead_description?: string | null;
|
|
3005
3779
|
fields?: Record<string, unknown>;
|
|
3006
3780
|
}
|
|
3007
|
-
interface
|
|
3781
|
+
interface UpdateCampaignEnrollmentDraftParams {
|
|
3008
3782
|
store_id?: string;
|
|
3009
3783
|
id: string;
|
|
3010
3784
|
draft_id: string;
|
|
3011
3785
|
template_vars?: Record<string, any>;
|
|
3786
|
+
body?: string;
|
|
3787
|
+
suggested_message?: string;
|
|
3788
|
+
}
|
|
3789
|
+
interface UpdateCampaignEnrollmentStepExecutionParams {
|
|
3790
|
+
store_id?: string;
|
|
3791
|
+
id: string;
|
|
3792
|
+
execution_id: string;
|
|
3793
|
+
outcome: CampaignManualTaskOutcome;
|
|
3794
|
+
note?: string;
|
|
3012
3795
|
}
|
|
3013
3796
|
interface FindCampaignMessagesParams {
|
|
3014
3797
|
store_id?: string;
|
|
3015
3798
|
campaign_id?: string;
|
|
3016
|
-
|
|
3017
|
-
|
|
3799
|
+
campaign_enrollment_id?: string;
|
|
3800
|
+
contact_id?: string;
|
|
3018
3801
|
mailbox_id?: string;
|
|
3019
3802
|
direction?: CampaignMessageDirection;
|
|
3020
|
-
|
|
3803
|
+
type?: CampaignMessageType;
|
|
3021
3804
|
status?: CampaignMessageStatus;
|
|
3022
3805
|
copy_source?: CampaignMessageCopySource;
|
|
3023
3806
|
step_position?: number;
|
|
@@ -3025,21 +3808,21 @@ interface FindCampaignMessagesParams {
|
|
|
3025
3808
|
limit?: number;
|
|
3026
3809
|
cursor?: string;
|
|
3027
3810
|
}
|
|
3028
|
-
interface
|
|
3811
|
+
interface GetCampaignEnrollmentConversationParams {
|
|
3029
3812
|
store_id?: string;
|
|
3030
3813
|
id: string;
|
|
3031
3814
|
message_limit?: number;
|
|
3032
3815
|
after_created_at?: number;
|
|
3033
3816
|
after_id?: string;
|
|
3034
3817
|
}
|
|
3035
|
-
interface
|
|
3818
|
+
interface ReplyCampaignEnrollmentParams {
|
|
3036
3819
|
store_id?: string;
|
|
3037
3820
|
id: string;
|
|
3038
3821
|
subject?: string | null;
|
|
3039
3822
|
body: string;
|
|
3040
3823
|
attachments?: string[];
|
|
3041
3824
|
}
|
|
3042
|
-
interface
|
|
3825
|
+
interface StopCampaignEnrollmentParams {
|
|
3043
3826
|
store_id?: string;
|
|
3044
3827
|
id: string;
|
|
3045
3828
|
}
|
|
@@ -3051,7 +3834,7 @@ interface UpdateCampaignMessageParams {
|
|
|
3051
3834
|
interface CreateSuppressionParams {
|
|
3052
3835
|
store_id?: string;
|
|
3053
3836
|
campaign_id?: string;
|
|
3054
|
-
|
|
3837
|
+
contact_id?: string;
|
|
3055
3838
|
email?: string;
|
|
3056
3839
|
domain?: string;
|
|
3057
3840
|
reason?: SuppressionReason;
|
|
@@ -3066,7 +3849,7 @@ interface UpdateSuppressionParams {
|
|
|
3066
3849
|
interface FindSuppressionsParams {
|
|
3067
3850
|
store_id?: string;
|
|
3068
3851
|
status?: SuppressionStatus;
|
|
3069
|
-
|
|
3852
|
+
contact_id?: string;
|
|
3070
3853
|
email?: string;
|
|
3071
3854
|
domain?: string;
|
|
3072
3855
|
campaign_id?: string;
|
|
@@ -3083,14 +3866,13 @@ interface GetSuppressionParams {
|
|
|
3083
3866
|
}
|
|
3084
3867
|
interface CreateLeadResearchRunParams {
|
|
3085
3868
|
store_id?: string;
|
|
3086
|
-
|
|
3087
|
-
profile_list_id?: string;
|
|
3869
|
+
contact_list_id?: string;
|
|
3088
3870
|
title?: string;
|
|
3089
3871
|
}
|
|
3090
3872
|
interface FindLeadResearchRunsParams {
|
|
3091
3873
|
store_id?: string;
|
|
3092
3874
|
status?: LeadResearchRunStatus;
|
|
3093
|
-
|
|
3875
|
+
contact_list_id?: string;
|
|
3094
3876
|
limit?: number;
|
|
3095
3877
|
cursor?: string;
|
|
3096
3878
|
}
|
|
@@ -3101,7 +3883,7 @@ interface GetLeadResearchRunParams {
|
|
|
3101
3883
|
interface UpdateLeadResearchRunParams {
|
|
3102
3884
|
id: string;
|
|
3103
3885
|
store_id?: string;
|
|
3104
|
-
|
|
3886
|
+
title?: string;
|
|
3105
3887
|
}
|
|
3106
3888
|
interface CancelLeadResearchRunParams {
|
|
3107
3889
|
id: string;
|
|
@@ -3125,38 +3907,170 @@ interface ValidateLeadEmailParams {
|
|
|
3125
3907
|
website_url?: string;
|
|
3126
3908
|
email_source_url?: string;
|
|
3127
3909
|
}
|
|
3128
|
-
interface
|
|
3910
|
+
interface ListBuildHooksParams {
|
|
3129
3911
|
store_id: string;
|
|
3130
|
-
provider: string;
|
|
3131
|
-
code: string;
|
|
3132
|
-
redirect_uri: string;
|
|
3133
3912
|
}
|
|
3134
|
-
interface
|
|
3913
|
+
interface CreateBuildHookParams {
|
|
3135
3914
|
store_id: string;
|
|
3136
|
-
|
|
3915
|
+
key: string;
|
|
3916
|
+
type: BuildHookType;
|
|
3917
|
+
url: string;
|
|
3918
|
+
headers?: Record<string, string>;
|
|
3919
|
+
active?: boolean;
|
|
3137
3920
|
}
|
|
3138
|
-
interface
|
|
3921
|
+
interface UpdateBuildHookParams {
|
|
3139
3922
|
store_id: string;
|
|
3923
|
+
id: string;
|
|
3924
|
+
key?: string;
|
|
3925
|
+
type?: BuildHookType;
|
|
3926
|
+
url?: string;
|
|
3927
|
+
headers?: Record<string, string>;
|
|
3928
|
+
active?: boolean;
|
|
3140
3929
|
}
|
|
3141
|
-
interface
|
|
3930
|
+
interface DeleteBuildHookParams {
|
|
3142
3931
|
store_id: string;
|
|
3143
3932
|
id: string;
|
|
3144
3933
|
}
|
|
3145
|
-
interface
|
|
3146
|
-
store_id
|
|
3147
|
-
key: string;
|
|
3148
|
-
provider: IntegrationProvider;
|
|
3934
|
+
interface ListSocialAccountsParams {
|
|
3935
|
+
store_id?: string;
|
|
3149
3936
|
}
|
|
3150
|
-
interface
|
|
3937
|
+
interface DeleteSocialAccountParams {
|
|
3151
3938
|
store_id: string;
|
|
3152
3939
|
id: string;
|
|
3153
|
-
key?: string;
|
|
3154
|
-
provider?: IntegrationProvider;
|
|
3155
3940
|
}
|
|
3156
|
-
interface
|
|
3941
|
+
interface ListPaymentProvidersParams {
|
|
3942
|
+
store_id?: string;
|
|
3943
|
+
}
|
|
3944
|
+
interface RefreshPaymentProvidersParams {
|
|
3945
|
+
store_id?: string;
|
|
3946
|
+
}
|
|
3947
|
+
interface ConnectStripePaymentProviderParams {
|
|
3948
|
+
store_id?: string;
|
|
3949
|
+
return_url: string;
|
|
3950
|
+
refresh_url: string;
|
|
3951
|
+
email?: string | null;
|
|
3952
|
+
country?: string | null;
|
|
3953
|
+
connected_account_id?: string | null;
|
|
3954
|
+
}
|
|
3955
|
+
interface DeletePaymentProviderParams {
|
|
3157
3956
|
store_id: string;
|
|
3158
3957
|
id: string;
|
|
3159
3958
|
}
|
|
3959
|
+
interface FindSocialPublicationsParams {
|
|
3960
|
+
store_id?: string;
|
|
3961
|
+
status?: SocialPublicationStatus;
|
|
3962
|
+
query?: string;
|
|
3963
|
+
limit?: number;
|
|
3964
|
+
cursor?: string;
|
|
3965
|
+
}
|
|
3966
|
+
interface GetSocialPublicationParams {
|
|
3967
|
+
store_id?: string;
|
|
3968
|
+
id: string;
|
|
3969
|
+
}
|
|
3970
|
+
interface ValidateSocialPublicationParams {
|
|
3971
|
+
store_id?: string;
|
|
3972
|
+
social_account_id: string;
|
|
3973
|
+
scheduled_at?: number | null;
|
|
3974
|
+
content: SocialPublicationContent;
|
|
3975
|
+
}
|
|
3976
|
+
interface CreateSocialPublicationParams {
|
|
3977
|
+
store_id?: string;
|
|
3978
|
+
social_account_id: string;
|
|
3979
|
+
key?: string | null;
|
|
3980
|
+
scheduled_at?: number | null;
|
|
3981
|
+
content: SocialPublicationContent;
|
|
3982
|
+
}
|
|
3983
|
+
interface UpdateSocialPublicationParams {
|
|
3984
|
+
store_id?: string;
|
|
3985
|
+
id: string;
|
|
3986
|
+
social_account_id?: string | null;
|
|
3987
|
+
key?: string | null;
|
|
3988
|
+
scheduled_at?: number | null;
|
|
3989
|
+
content?: SocialPublicationContent | null;
|
|
3990
|
+
}
|
|
3991
|
+
interface ScheduleSocialPublicationParams {
|
|
3992
|
+
store_id?: string;
|
|
3993
|
+
id: string;
|
|
3994
|
+
scheduled_at: number;
|
|
3995
|
+
}
|
|
3996
|
+
interface CancelSocialPublicationParams {
|
|
3997
|
+
store_id?: string;
|
|
3998
|
+
id: string;
|
|
3999
|
+
}
|
|
4000
|
+
interface GetSocialPublicationCommentsParams {
|
|
4001
|
+
store_id?: string;
|
|
4002
|
+
publication_id: string;
|
|
4003
|
+
limit?: number;
|
|
4004
|
+
cursor?: string | null;
|
|
4005
|
+
}
|
|
4006
|
+
type SyncSocialPublicationCommentsParams = GetSocialPublicationCommentsParams;
|
|
4007
|
+
interface GetSocialPublicationCommentThreadParams {
|
|
4008
|
+
store_id?: string;
|
|
4009
|
+
publication_id: string;
|
|
4010
|
+
comment_id: string;
|
|
4011
|
+
limit?: number;
|
|
4012
|
+
cursor?: string | null;
|
|
4013
|
+
}
|
|
4014
|
+
type SyncSocialPublicationCommentThreadParams = GetSocialPublicationCommentThreadParams;
|
|
4015
|
+
interface FindSocialPublicationCommentsParams {
|
|
4016
|
+
store_id?: string;
|
|
4017
|
+
publication_id?: string;
|
|
4018
|
+
social_account_id?: string;
|
|
4019
|
+
provider_type?: SocialProviderType;
|
|
4020
|
+
status?: SocialPublicationCommentStatus;
|
|
4021
|
+
intent?: SocialPublicationCommentIntent;
|
|
4022
|
+
priority?: SocialPublicationCommentPriority;
|
|
4023
|
+
include_replies?: boolean;
|
|
4024
|
+
limit?: number;
|
|
4025
|
+
cursor?: string | null;
|
|
4026
|
+
}
|
|
4027
|
+
interface ClassifySocialPublicationCommentsParams {
|
|
4028
|
+
store_id?: string;
|
|
4029
|
+
publication_id?: string;
|
|
4030
|
+
social_account_id?: string;
|
|
4031
|
+
provider_type?: SocialProviderType;
|
|
4032
|
+
status?: SocialPublicationCommentStatus;
|
|
4033
|
+
intent?: SocialPublicationCommentIntent;
|
|
4034
|
+
priority?: SocialPublicationCommentPriority;
|
|
4035
|
+
limit?: number;
|
|
4036
|
+
force?: boolean;
|
|
4037
|
+
}
|
|
4038
|
+
interface ReplySocialPublicationCommentParams {
|
|
4039
|
+
store_id?: string;
|
|
4040
|
+
publication_id: string;
|
|
4041
|
+
comment_id: string;
|
|
4042
|
+
text: string;
|
|
4043
|
+
}
|
|
4044
|
+
interface GetSocialPublicationMetricsParams {
|
|
4045
|
+
store_id?: string;
|
|
4046
|
+
publication_id: string;
|
|
4047
|
+
}
|
|
4048
|
+
type SyncSocialPublicationMetricsParams = GetSocialPublicationMetricsParams;
|
|
4049
|
+
interface SyncSocialEngagementParams {
|
|
4050
|
+
store_id?: string;
|
|
4051
|
+
publication_ids?: string[];
|
|
4052
|
+
max_publications?: number;
|
|
4053
|
+
max_comment_pages_per_publication?: number;
|
|
4054
|
+
max_comments_per_publication?: number;
|
|
4055
|
+
sync_metrics?: boolean;
|
|
4056
|
+
}
|
|
4057
|
+
interface GetSocialCapabilitiesParams {
|
|
4058
|
+
store_id?: string;
|
|
4059
|
+
}
|
|
4060
|
+
interface ConnectSocialAccountParams {
|
|
4061
|
+
store_id?: string;
|
|
4062
|
+
provider_type: SocialProviderType;
|
|
4063
|
+
}
|
|
4064
|
+
interface SelectSocialDestinationParams {
|
|
4065
|
+
store_id?: string;
|
|
4066
|
+
provider_type: SocialProviderType;
|
|
4067
|
+
attempt_id: string;
|
|
4068
|
+
candidate_id: string;
|
|
4069
|
+
}
|
|
4070
|
+
interface GetSocialOAuthAttemptParams {
|
|
4071
|
+
store_id?: string;
|
|
4072
|
+
attempt_id: string;
|
|
4073
|
+
}
|
|
3160
4074
|
interface ListWebhooksParams {
|
|
3161
4075
|
store_id: string;
|
|
3162
4076
|
}
|
|
@@ -3185,7 +4099,6 @@ interface DeleteWebhookParams {
|
|
|
3185
4099
|
}
|
|
3186
4100
|
interface GetShippingRatesParams {
|
|
3187
4101
|
order_id: string;
|
|
3188
|
-
shipping_provider_id: string;
|
|
3189
4102
|
from_address: Address;
|
|
3190
4103
|
to_address: Address;
|
|
3191
4104
|
parcel: Parcel;
|
|
@@ -3197,6 +4110,7 @@ interface ShipParams {
|
|
|
3197
4110
|
carrier: string;
|
|
3198
4111
|
service: string;
|
|
3199
4112
|
location_id: string;
|
|
4113
|
+
fulfillment_order_id?: string | null;
|
|
3200
4114
|
lines: ShipmentLine[];
|
|
3201
4115
|
}
|
|
3202
4116
|
interface AuthToken {
|
|
@@ -3208,16 +4122,16 @@ interface AuthToken {
|
|
|
3208
4122
|
created_at: number;
|
|
3209
4123
|
is_verified: boolean;
|
|
3210
4124
|
}
|
|
3211
|
-
interface
|
|
4125
|
+
interface ContactInfo {
|
|
3212
4126
|
id: string;
|
|
3213
4127
|
verified: boolean;
|
|
3214
4128
|
}
|
|
3215
|
-
interface
|
|
4129
|
+
interface ContactSessionToken {
|
|
3216
4130
|
id: string;
|
|
3217
4131
|
token: string;
|
|
3218
4132
|
created_at: number;
|
|
3219
4133
|
}
|
|
3220
|
-
interface
|
|
4134
|
+
interface ContactVerificationCode {
|
|
3221
4135
|
code: string;
|
|
3222
4136
|
created_at: number;
|
|
3223
4137
|
used: boolean;
|
|
@@ -3227,63 +4141,64 @@ interface PromoUsage {
|
|
|
3227
4141
|
promo_code_id: string;
|
|
3228
4142
|
uses: number;
|
|
3229
4143
|
}
|
|
3230
|
-
interface
|
|
4144
|
+
interface Contact {
|
|
3231
4145
|
id: string;
|
|
3232
4146
|
store_id: string;
|
|
3233
4147
|
email: string | null;
|
|
3234
4148
|
verified: boolean;
|
|
3235
|
-
status:
|
|
4149
|
+
status: ContactStatus;
|
|
4150
|
+
channels: ContactChannel[];
|
|
3236
4151
|
promo_usage: PromoUsage[];
|
|
3237
|
-
lists:
|
|
4152
|
+
lists: ContactListMembership[];
|
|
3238
4153
|
taxonomies: TaxonomyEntry[];
|
|
3239
|
-
auth_tokens:
|
|
3240
|
-
verification_codes:
|
|
4154
|
+
auth_tokens: ContactSessionToken[];
|
|
4155
|
+
verification_codes: ContactVerificationCode[];
|
|
3241
4156
|
created_at: number;
|
|
3242
4157
|
updated_at: number;
|
|
3243
4158
|
}
|
|
3244
|
-
interface
|
|
3245
|
-
|
|
4159
|
+
interface ContactDetail {
|
|
4160
|
+
contact: Contact;
|
|
3246
4161
|
carts: Cart[];
|
|
3247
4162
|
orders: Order[];
|
|
3248
4163
|
form_submissions: FormSubmission[];
|
|
3249
4164
|
}
|
|
3250
|
-
interface
|
|
4165
|
+
interface SetContactEmailParams {
|
|
3251
4166
|
email: string;
|
|
3252
4167
|
store_id?: string;
|
|
3253
4168
|
}
|
|
3254
|
-
interface
|
|
4169
|
+
interface CreateContactParams {
|
|
3255
4170
|
store_id?: string;
|
|
3256
4171
|
email: string;
|
|
3257
4172
|
taxonomies?: TaxonomyEntry[];
|
|
3258
4173
|
}
|
|
3259
|
-
interface
|
|
4174
|
+
interface UpdateContactParams {
|
|
3260
4175
|
id: string;
|
|
3261
4176
|
store_id?: string;
|
|
3262
4177
|
email?: string;
|
|
3263
4178
|
taxonomies?: TaxonomyEntry[];
|
|
3264
|
-
status?:
|
|
4179
|
+
status?: ContactStatus;
|
|
3265
4180
|
}
|
|
3266
|
-
interface
|
|
4181
|
+
interface GetContactParams {
|
|
3267
4182
|
id: string;
|
|
3268
4183
|
store_id?: string;
|
|
3269
4184
|
}
|
|
3270
|
-
interface
|
|
4185
|
+
interface FindContactsParams {
|
|
3271
4186
|
store_id?: string;
|
|
3272
4187
|
ids?: string[];
|
|
3273
4188
|
query?: string | number;
|
|
3274
4189
|
taxonomy_query?: TaxonomyQuery[];
|
|
3275
|
-
status?:
|
|
3276
|
-
|
|
4190
|
+
status?: ContactStatus;
|
|
4191
|
+
has_action?: boolean;
|
|
3277
4192
|
has_cart?: boolean;
|
|
3278
4193
|
limit?: number;
|
|
3279
4194
|
cursor?: string;
|
|
3280
4195
|
sort_field?: string;
|
|
3281
4196
|
sort_direction?: "asc" | "desc";
|
|
3282
4197
|
}
|
|
3283
|
-
interface
|
|
4198
|
+
interface MergeContactsParams {
|
|
3284
4199
|
target_id: string;
|
|
3285
4200
|
source_id: string;
|
|
3286
4201
|
store_id?: string;
|
|
3287
4202
|
}
|
|
3288
4203
|
|
|
3289
|
-
export { type DeleteIntegrationParams as $, type AddCartItemParams as A, type SubscriptionPlan as B, type Cart as C, type DeleteAccountParams as D, type SubscribeParams as E, type CreatePortalSessionParams as F, type GetCurrentCartParams as G, type AddMemberParams as H, type InviteUserParams as I, type RemoveMemberParams as J, type GetStoreMediaParams2 as K, type Location as L, type Market as M, type Media as N, type OrderQuote as O, type Profile$1 as P, type QuoteCartParams as Q, type RequestOptions as R, type Store as S, type TestWebhookParams as T, type UpdateCartParams as U, type OAuthConnectParams as V, type Integration as W, type OAuthDisconnectParams as X, type ListIntegrationsParams as Y, type CreateIntegrationParams as Z, type UpdateIntegrationParams as _, type OrderCheckoutResult as a, type GetProductsParams as a$, type ListWebhooksParams as a0, type Webhook as a1, type CreateWebhookParams as a2, type UpdateWebhookParams as a3, type DeleteWebhookParams as a4, type GetMediaParams as a5, type UploadStoreMediaParams as a6, type DeleteStoreMediaParams as a7, type GetStoreMediaParams as a8, type UpdateMediaParams as a9, type GetFormParams as aA, type GetFormsParams as aB, type SubmitFormParams as aC, type FormSubmission as aD, type GetFormSubmissionsParams as aE, type GetFormSubmissionParams as aF, type UpdateFormSubmissionParams as aG, type CreateTaxonomyParams as aH, type Taxonomy as aI, type UpdateTaxonomyParams as aJ, type DeleteTaxonomyParams as aK, type GetTaxonomyParams as aL, type GetTaxonomiesParams as aM, type GetTaxonomyChildrenParams as aN, type CreateEmailTemplateParams as aO, type EmailTemplate as aP, type UpdateEmailTemplateParams as aQ, type DeleteEmailTemplateParams as aR, type GetEmailTemplateParams as aS, type GetEmailTemplatesParams as aT, type PreviewEmailTemplateParams as aU, type PreviewEmailTemplateResponse as aV, type CreateProductParams as aW, type Product as aX, type UpdateProductParams as aY, type DeleteProductParams as aZ, type GetProductParams as a_, type TrackEmailOpenParams as aa, type TriggerNotificationParams as ab, type CreatePromoCodeParams as ac, type PromoCode as ad, type UpdatePromoCodeParams as ae, type DeletePromoCodeParams as af, type GetPromoCodeParams as ag, type GetPromoCodesParams as ah, type GetShippingRatesParams as ai, type ShippingRate as aj, type ShipParams as ak, type ShipResult as al, type CreateNodeParams as am, type Node as an, type UpdateNodeParams as ao, type DeleteNodeParams as ap, type GetNodeParams as aq, type Block as ar, type TaxonomyEntry as as, type NodeStatus as at, type GetNodesParams as au, type GetNodeChildrenParams as av, type CreateFormParams as aw, type Form as ax, type UpdateFormParams as ay, type DeleteFormParams as az, type GetCartParams as b, type LaunchCampaignParams as b$, type UpdateOrderParams as b0, type Order as b1, type GetOrderParams as b2, type GetOrdersParams as b3, type GetQuoteParams as b4, type ProcessOrderRefundParams as b5, type CreateCartParams as b6, type FindCartsParams as b7, type CreateServiceParams as b8, type Service as b9, type CreateProfileListParams as bA, type ProfileList as bB, type UpdateProfileListParams as bC, type GetProfileListParams as bD, type FindProfileListsParams as bE, type ImportProfilesIntoProfileListParams as bF, type ImportProfilesIntoProfileListResult as bG, type ImportProfileListPreviewParams as bH, type ImportProfilesPreviewResult as bI, type AddProfileListProfileParams as bJ, type ProfileListMember as bK, type UpdateProfileListProfileParams as bL, type RemoveProfileListProfileParams as bM, type FindProfileListProfilesParams as bN, type CreateMailboxParams as bO, type Mailbox as bP, type UpdateMailboxParams as bQ, type GetMailboxParams as bR, type TestMailboxParams as bS, type TestMailboxResult as bT, type PrepareMailboxParams as bU, type FindMailboxesParams as bV, type CreateCampaignParams as bW, type Campaign as bX, type UpdateCampaignParams as bY, type GetCampaignParams as bZ, type FindCampaignsParams as b_, type UpdateServiceParams as ba, type DeleteServiceParams as bb, type GetServiceParams as bc, type GetServicesParams as bd, type GetAvailabilityParams as be, type AvailabilityResponse as bf, type FindServiceProvidersParams as bg, type ServiceProvider as bh, type CreateServiceProviderParams as bi, type UpdateServiceProviderParams as bj, type DeleteServiceProviderParams as bk, type CreateProviderParams as bl, type Provider as bm, type UpdateProviderParams as bn, type DeleteProviderParams as bo, type GetProviderParams as bp, type GetProvidersParams as bq, type CreateProfileParams as br, type Profile as bs, type GetProfileParams as bt, type ProfileDetail as bu, type FindProfilesParams as bv, type UpdateProfileParams as bw, type MergeProfilesParams as bx, type ImportProfilesParams as by, type ImportProfilesResult as bz, type RemoveCartItemParams as c, type StoreSubscription as c$, type DuplicateCampaignParams as c0, type GetCampaignLaunchReadinessParams as c1, type CampaignLaunchReadiness as c2, type ImportCampaignRecipientsParams as c3, type CampaignRecipientImportResult as c4, type GenerateOutreachPersonalizedDraftsParams as c5, type FindCampaignRecipientsParams as c6, type CampaignRecipient as c7, type GetCampaignRecipientConversationParams as c8, type CampaignRecipientConversationResponse as c9, type Workflow as cA, type UpdateWorkflowParams as cB, type DeleteWorkflowParams as cC, type GetWorkflowParams as cD, type GetWorkflowsParams as cE, type TriggerWorkflowParams as cF, type WorkflowExecution as cG, type GetWorkflowExecutionsParams as cH, type GetWorkflowExecutionParams as cI, type SubscribeProfileListParams as cJ, type ProfileListSubscribeResponse as cK, type ProfileListAccessParams as cL, type ProfileListAccessResponse as cM, type ApiResponse as cN, type EshopCartItem as cO, type CartOrigin as cP, type CartStatus as cQ, type EshopStoreState as cR, type WebhookEventSubscription as cS, type IntegrationProvider as cT, type Price as cU, type OrderPayment as cV, type OrderPaymentTax as cW, type OrderPaymentTaxLine as cX, type OrderPaymentPromoCode as cY, type OrderPaymentProvider as cZ, type OrderPaymentRefund as c_, type UpdateCampaignRecipientParams as ca, type UpdateCampaignRecipientDraftParams as cb, type ReplyCampaignRecipientParams as cc, type StopCampaignRecipientParams as cd, type FindCampaignMessagesParams as ce, type CampaignMessage as cf, type UpdateCampaignMessageParams as cg, type CreateSuppressionParams as ch, type Suppression as ci, type UpdateSuppressionParams as cj, type GetSuppressionParams as ck, type FindSuppressionsParams as cl, type CreateLeadResearchRunParams as cm, type LeadResearchRun as cn, type FindLeadResearchRunsParams as co, type GetLeadResearchRunParams as cp, type UpdateLeadResearchRunParams as cq, type CancelLeadResearchRunParams as cr, type SendLeadResearchMessageParams as cs, type SendLeadResearchMessageResult as ct, type FindLeadResearchMessagesParams as cu, type LeadResearchMessage as cv, type ValidateLeadEmailParams as cw, type LeadEmailValidationResult as cx, type FindActivitiesParams as cy, type CreateWorkflowParams as cz, type ClearCartParams as d, type OrderPaymentStatus as d$, type StoreSubscriptionPayment as d0, type StoreSubscriptionProvider as d1, type StoreSubscriptionStatus as d2, type StoreSubscriptionSource as d3, type SubscriptionPrice as d4, type ProfileListMembershipPayment as d5, type ProfileListMembershipProvider as d6, type PaymentMethod as d7, type ShippingMethod as d8, type ShippingWeightTier as d9, type ShippingAddress as dA, type Parcel as dB, type PurchaseLabelResult as dC, type ShipmentLine as dD, type Shipment as dE, type CustomsItem as dF, type CustomsDeclaration as dG, type GeoLocationBlock as dH, type ServiceDuration as dI, type ProviderTimelinePoint as dJ, type TimelinePoint as dK, type WorkingHour as dL, type WorkingDay as dM, type SpecificDate as dN, type OrderItem as dO, type OrderItemSnapshot as dP, type ProductLineItem as dQ, type ServiceLineItem as dR, type ProductLineItemSnapshot as dS, type ServiceLineItemSnapshot as dT, type QuoteLine as dU, type ProductQuoteLine as dV, type ServiceQuoteLine as dW, type ProductQuoteLineAvailability as dX, type ServiceQuoteLineAvailability as dY, type OrderItemStatus as dZ, type OrderStatus as d_, type Zone as da, type Address as db, type GeoLocation as dc, type ZoneLocation as dd, type PromoCodeValidation as de, type Language as df, type Access as dg, type MediaResolution as dh, type ProviderWithTimeline as di, type WorkflowNode as dj, type WorkflowEdge as dk, type WorkflowTriggerNode as dl, type WorkflowHttpNode as dm, type WorkflowSwitchNode as dn, type WorkflowSwitchRule as dp, type WorkflowTransformNode as dq, type WorkflowLoopNode as dr, type WorkflowHttpMethod as ds, type ExecutionStatus as dt, type NodeResult as du, type ProfileListType as dv, type Event as dw, type EventAction as dx, type ShippingStatus as dy, type OrderShipping as dz, type CheckoutCartParams as e, PaymentMethodType as e$, type OrderCancellationReason as e0, type HistoryEntry as e1, type ProductVariant as e2, type ProductInventory as e3, type InventoryLevel as e4, type GalleryItem as e5, type FormSchema as e6, type FormSchemaType as e7, type FormField as e8, type FormFieldType as e9, type ServiceStatus as eA, type ProviderStatus as eB, type ProductStatus as eC, type ProfileStatus as eD, type ProfileListStatus as eE, type ProfileListSource as eF, type ProfileListMembershipStatus as eG, type MailboxStatus as eH, type CampaignStatus as eI, type CampaignRecipientStatus as eJ, type CampaignMessageDirection as eK, type CampaignMessageKind as eL, type CampaignMessageStatus as eM, type OutreachPersonalizationStatus as eN, type OutreachStepVariantStatus as eO, type OutreachThreadMode as eP, type SuppressionStatus as eQ, type SuppressionTargetType as eR, type SuppressionScopeType as eS, type SuppressionReason as eT, type SuppressionSource as eU, type WorkflowStatus as eV, type PromoCodeStatus as eW, type EmailTemplateStatus as eX, type EmailTemplateVariable as eY, type FormStatus as eZ, type TaxonomyStatus as e_, type FormEntry as ea, type TaxonomyQuery as eb, type TaxonomySchema as ec, type TaxonomySchemaType as ed, type TaxonomyField as ee, type TaxonomyFieldQuery as ef, type ProfileListMembership as eg, type MailboxConnectionSecurity as eh, type MailboxProvider as ei, type MailboxPreset as ej, type MailboxSyncStatus as ek, type SmtpImapMailboxProvider as el, type OutreachStep as em, type OutreachStepVariant as en, type OutreachPersonalizationCounters as eo, type OutreachPersonalizationState as ep, type CampaignRecipientDraft as eq, type LeadResearchRunStatus as er, type LeadEmailClassification as es, type LeadValidationCheck as et, type LeadValidationCheckStatus as eu, type ResearchProfileListMember as ev, type AccountToken as ew, type StoreMembership as ex, type Discount as ey, type Condition as ez, type MagicLinkVerifyParams as f, type SetupAnalyticsParams as f$, type AvailabilitySlot as f0, type DaySlots as f1, type ProviderAvailability as f2, type Slot as f3, type SlotRange as f4, type EshopItem as f5, type EshopQuoteItem as f6, type ServiceCheckoutPart as f7, type ServiceQuoteItem as f8, type ConditionValue as f9, type StoreEmails as fA, type BlockType as fB, type GeoLocationBlockProperties as fC, type GeoLocationValue as fD, type AccountLifecycle as fE, type CampaignRecipientImportSource as fF, type CampaignMessageCopySource as fG, type TimeRange as fH, type ProfileAuthToken$1 as fI, type ProfileVerificationCode$1 as fJ, type PromoUsage$1 as fK, type CampaignRecipientImportResult$1 as fL, type OrderCheckoutParams as fM, type LoginAccountParams as fN, type GetAnalyticsParams as fO, type GetAnalyticsHealthParams as fP, type GetDeliveryStatsParams as fQ, type StoreRole as fR, type CreateProductVariantInput as fS, type UpdateProductVariantInput as fT, type OrderUpdateItem as fU, type ServiceProviderInput as fV, type SearchOrderServiceItemsParams as fW, type AccountAddress as fX, type AccountApiToken as fY, type PreviewEmailTemplateWarning as fZ, type LogoutParams as f_, type ProductQuoteItemInput as fa, type ServiceQuoteItemInput as fb, type OrderQuoteItemInput as fc, type QuoteItemInput as fd, type OrderQuoteCompatibleItemInput as fe, type ProductCheckoutItemInput as ff, type ServiceCheckoutItemInput as fg, type OrderCheckoutItemInput as fh, type CheckoutItemInput as fi, type OrderCheckoutCompatibleItemInput as fj, type TrustedProductCheckoutItemInput as fk, type TrustedServiceCheckoutItemInput as fl, type TrustedOrderCheckoutItemInput as fm, type TrustedOrderCheckoutCompatibleItemInput as fn, type SystemTemplateKey as fo, type ImportFieldMapping as fp, type ImportPreviewRow as fq, type ImportProfilesPreviewParams as fr, type ImportProfileRowInput as fs, type ImportProfileRowError as ft, type ImportProfileRowResult as fu, type ImportProfileListRowResult as fv, type PaymentTaxLine as fw, type IntervalPeriod as fx, type SubscriptionInterval as fy, type PriceProvider as fz, type AuthToken as g, type GetIntegrationParams as g0, type ProfileInfo as g1, type SetProfileEmailParams as g2, type MagicLinkRequestParams as h, type UpdateAccountProfileParams as i, type AccountUpdateResponse as j, type GetMeParams as k, type Account as l, type SearchAccountsParams as m, type CreateLocationParams as n, type UpdateLocationParams as o, type DeleteLocationParams as p, type CreateMarketParams as q, type UpdateMarketParams as r, type DeleteMarketParams as s, type CreateStoreParams as t, type UpdateStoreParams as u, type DeleteStoreParams as v, type GetStoreParams as w, type GetStoresParams as x, type PaginatedResponse as y, type GetSubscriptionPlansParams as z };
|
|
4204
|
+
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 TriggerNotificationParams 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 ProductVariant as a8, type OrderCheckoutItemInput as a9, type TestWebhookParams as aA, type ListWebhooksParams as aB, type Webhook as aC, type CreateWebhookParams as aD, type UpdateWebhookParams as aE, type DeleteWebhookParams as aF, type StoreRuntimeConfig as aG, type FindStoreMediaParams as aH, type Media as aI, type CreateLocationParams as aJ, type UpdateLocationParams as aK, type DeleteLocationParams as aL, type CreateMarketParams as aM, type UpdateMarketParams as aN, type DeleteMarketParams as aO, type ListPaymentProvidersParams as aP, type PaymentProvider as aQ, type RefreshPaymentProvidersParams as aR, type ConnectStripePaymentProviderParams as aS, type StripePaymentProviderConnectResponse as aT, type DeletePaymentProviderParams as aU, type GetMediaParams as aV, type UploadStoreMediaParams as aW, type DeleteStoreMediaParams as aX, type GetStoreMediaParams as aY, type UpdateMediaParams as aZ, type TrackEmailOpenParams as a_, type FormField as aa, type Contact$1 as ab, type UpdateAccountContactParams as ac, type AccountUpdateResponse as ad, type DeleteAccountParams as ae, type GetMeParams as af, type Account as ag, type SearchAccountsParams as ah, type MagicLinkVerifyParams as ai, type AuthToken as aj, type CreateStoreParams as ak, type UpdateStoreParams as al, type DeleteStoreParams as am, type GetStoreParams as an, type GetStoresParams as ao, type GetSubscriptionPlansParams as ap, type SubscriptionPlan as aq, type SubscribeParams as ar, type CreatePortalSessionParams as as, type AddMemberParams as at, type RemoveMemberParams as au, type ListBuildHooksParams as av, type BuildHook as aw, type CreateBuildHookParams as ax, type UpdateBuildHookParams as ay, type DeleteBuildHookParams as az, type Form as b, type UpdateEmailTemplateParams as b$, type CreateMailboxParams as b0, type Mailbox as b1, type UpdateMailboxParams as b2, type GetMailboxParams as b3, type TestMailboxParams as b4, type TestMailboxResult as b5, type PrepareMailboxParams as b6, type FindMailboxesParams as b7, type GetSocialCapabilitiesParams as b8, type SocialProviderCapability as b9, type ReplySocialPublicationCommentParams as bA, type SocialPublicationCommentReplyResponse as bB, type GetSocialPublicationMetricsParams as bC, type SocialPublicationMetricSnapshot as bD, type SyncSocialPublicationMetricsParams as bE, type SyncSocialEngagementParams as bF, type SocialPublicationEngagementSyncResult as bG, type CreateCollectionParams as bH, type UpdateCollectionParams as bI, type DeleteCollectionParams as bJ, type GetCollectionsParams as bK, type CreateEntryParams as bL, type UpdateEntryParams as bM, type DeleteEntryParams as bN, type CreateFormParams as bO, type UpdateFormParams as bP, type DeleteFormParams as bQ, type GetFormsParams as bR, type GetFormSubmissionsParams as bS, type GetFormSubmissionParams as bT, type UpdateFormSubmissionParams as bU, type CreateTaxonomyParams as bV, type UpdateTaxonomyParams as bW, type DeleteTaxonomyParams as bX, type GetTaxonomiesParams as bY, type CreateEmailTemplateParams as bZ, type EmailTemplate as b_, type ListSocialAccountsParams as ba, type SocialAccount as bb, type ConnectSocialAccountParams as bc, type SocialConnectResponse as bd, type GetSocialOAuthAttemptParams as be, type SocialOAuthCallbackResponse as bf, type SelectSocialDestinationParams as bg, type DeleteSocialAccountParams as bh, type CreateSocialPublicationParams as bi, type SocialPublicationMutationResponse as bj, type UpdateSocialPublicationParams as bk, type GetSocialPublicationParams as bl, type SocialPublication as bm, type FindSocialPublicationsParams as bn, type ValidateSocialPublicationParams as bo, type SocialPublicationValidation as bp, type ScheduleSocialPublicationParams as bq, type CancelSocialPublicationParams as br, type GetSocialPublicationCommentsParams as bs, type SocialPublicationComment as bt, type SyncSocialPublicationCommentsParams as bu, type GetSocialPublicationCommentThreadParams as bv, type SyncSocialPublicationCommentThreadParams as bw, type FindSocialPublicationCommentsParams as bx, type ClassifySocialPublicationCommentsParams as by, type SocialPublicationCommentClassificationResult as bz, type Product as c, type CampaignLaunchReadiness as c$, type DeleteEmailTemplateParams as c0, type GetEmailTemplateParams as c1, type GetEmailTemplatesParams as c2, type PreviewEmailTemplateParams as c3, type PreviewEmailTemplateResponse as c4, type CreateProductParams as c5, type UpdateProductParams as c6, type DeleteProductParams as c7, type UpdateOrderParams as c8, type GetQuoteParams as c9, type GetContactParams as cA, type FindContactsParams as cB, type UpdateContactParams as cC, type MergeContactsParams as cD, type ImportContactsParams as cE, type ImportContactsResult as cF, type CreateContactListParams as cG, type UpdateContactListParams as cH, type ImportContactsIntoContactListParams as cI, type ImportContactsIntoContactListResult as cJ, type ImportContactListPreviewParams as cK, type ImportContactsPreviewResult as cL, type AddContactListContactParams as cM, type ContactListMember as cN, type UpdateContactListContactParams as cO, type RemoveContactListContactParams as cP, type FindContactListContactsParams as cQ, type Action as cR, type FindActionsParams as cS, type CreateCampaignParams as cT, type Campaign as cU, type UpdateCampaignParams as cV, type GetCampaignParams as cW, type FindCampaignsParams as cX, type LaunchCampaignParams as cY, type DuplicateCampaignParams as cZ, type GetCampaignLaunchReadinessParams as c_, type ProcessOrderRefundParams as ca, type ProcessOrderRefundResponse as cb, type GetShippingRatesParams as cc, type ShippingRate as cd, type ShipParams as ce, type ShipResult as cf, type CreateCartParams as cg, type FindCartsParams as ch, type CreateServiceParams as ci, type UpdateServiceParams as cj, type DeleteServiceParams as ck, type ServiceProvider as cl, type CreateServiceProviderParams as cm, type UpdateServiceProviderParams as cn, type DeleteServiceProviderParams as co, type CreateProviderParams as cp, type UpdateProviderParams as cq, type DeleteProviderParams as cr, type CreatePromoCodeParams as cs, type PromoCode as ct, type UpdatePromoCodeParams as cu, type DeletePromoCodeParams as cv, type GetPromoCodeParams as cw, type GetPromoCodesParams as cx, type CreateContactParams as cy, type Contact as cz, type Provider as d, type CampaignManualTaskOutcome as d$, type ImportCampaignEnrollmentsParams as d0, type CampaignEnrollmentImportResult as d1, type GenerateOutreachPersonalizedDraftsParams as d2, type FindCampaignEnrollmentsParams as d3, type CampaignEnrollment as d4, type GetCampaignEnrollmentConversationParams as d5, type CampaignEnrollmentConversationResponse as d6, type UpdateCampaignEnrollmentParams as d7, type UpdateCampaignEnrollmentDraftParams as d8, type UpdateCampaignEnrollmentStepExecutionParams as d9, type DeleteWorkflowParams as dA, type GetWorkflowParams as dB, type GetWorkflowsParams as dC, type TriggerWorkflowParams as dD, type WorkflowExecution as dE, type GetWorkflowExecutionsParams as dF, type GetWorkflowExecutionParams as dG, type GetWorkflowAccountsParams as dH, type WorkflowAccount as dI, type GetWorkflowAccountConnectUrlParams as dJ, type WorkflowAccountConnectUrl as dK, type ConnectWorkflowAccountParams as dL, type DeleteWorkflowAccountParams as dM, type Access as dN, type AccountToken as dO, type ActionContext as dP, type ActionData as dQ, type ApiResponse as dR, type AvailabilitySlot as dS, type BlockSchema as dT, type BlockSchemaProperties as dU, type BlockSchemaType as dV, type BookingOrderItemStatus as dW, type BuildHookType as dX, type CampaignEnrollmentImportResult$1 as dY, type CampaignEnrollmentImportSource as dZ, type CampaignEnrollmentStatus as d_, type ReplyCampaignEnrollmentParams as da, type StopCampaignEnrollmentParams as db, type FindCampaignMessagesParams as dc, type CampaignMessage as dd, type UpdateCampaignMessageParams as de, type CreateSuppressionParams as df, type Suppression as dg, type UpdateSuppressionParams as dh, type GetSuppressionParams as di, type FindSuppressionsParams as dj, type CreateLeadResearchRunParams as dk, type LeadResearchRun as dl, type FindLeadResearchRunsParams as dm, type GetLeadResearchRunParams as dn, type UpdateLeadResearchRunParams as dp, type CancelLeadResearchRunParams as dq, type SendLeadResearchMessageParams as dr, type SendLeadResearchMessageResult as ds, type FindLeadResearchMessagesParams as dt, type LeadResearchMessage as du, type ValidateLeadEmailParams as dv, type LeadEmailValidationResult as dw, type CreateWorkflowParams as dx, type Workflow as dy, type UpdateWorkflowParams as dz, type AvailabilityResponse as e, type ImportContactRowInput as e$, type CampaignMessageCopySource as e0, type CampaignMessageDirection as e1, type CampaignMessageStatus as e2, type CampaignMessageType as e3, type CampaignRoute as e4, type CampaignStatus as e5, type CartOrigin as e6, type CartStatus as e7, type ChannelMessage as e8, type ChannelType as e9, type Discount as eA, type DiscountAllocation as eB, type EmailTemplateStatus as eC, type EmailTemplateVariable as eD, type EntryBlockQuery as eE, type EntryStatus as eF, type EshopItem as eG, type EshopQuoteItem as eH, type EshopStoreState as eI, type Event as eJ, type EventAction as eK, type ExecutionStatus as eL, type FieldOperation as eM, type FormFieldType as eN, type FormSchema as eO, type FormSchemaType as eP, type FormStatus as eQ, type FulfillmentOrder as eR, type FulfillmentOrderLine as eS, type FulfillmentOrderRequestStatus as eT, type FulfillmentOrderStatus as eU, type GalleryItem as eV, type GeoLocation as eW, type GeoLocationBlock as eX, type HistoryEntry as eY, type ImportContactListRowResult as eZ, type ImportContactRowError as e_, type CheckoutPaymentAction as ea, type CollectionStatus as eb, type Condition as ec, type ConditionValue as ed, type ContactChannel as ee, type ContactListMembership as ef, type ContactListMembershipPayment as eg, type ContactListMembershipProvider as eh, type ContactListMembershipProviderCancellation as ei, type ContactListMembershipProviderCancellationError as ej, type ContactListMembershipProviderCancellationStatus as ek, type ContactListMembershipStatus as el, type ContactListSource as em, type ContactListStatus as en, type ContactListType as eo, type ContactStatus as ep, type Coordinates as eq, type CustomsDeclaration as er, type CustomsItem as es, type DaySlots as et, type DigitalAccessGrant as eu, type DigitalAccessGrantStatus as ev, type DigitalAsset as ew, type DigitalAssetStatus as ex, type DigitalAssetType as ey, type DigitalDeliveryPolicy as ez, type OrderQuote as f, type ProductQuoteLine as f$, type ImportContactRowResult as f0, type ImportContactsPreviewParams as f1, type ImportFieldMapping as f2, type ImportPreviewRow as f3, type InstagramPlacement as f4, type InventoryLevel as f5, type Language as f6, type LeadEmailClassification as f7, type LeadInsight as f8, type LeadResearchMessageRole as f9, type OrderPaymentRefund as fA, type OrderPaymentStatus as fB, type OrderPaymentSummaryStatus as fC, type OrderPaymentTax as fD, type OrderPaymentTaxLine as fE, type OrderQuoteCompatibleItemInput as fF, type OrderQuoteItemInput as fG, type OrderShipping as fH, type OrderStatus as fI, type OutreachPersonalizationCounters as fJ, type OutreachPersonalizationState as fK, type OutreachPersonalizationStatus as fL, type OutreachStep as fM, type OutreachStepType as fN, type OutreachThreadMode as fO, type Parcel as fP, type PaymentCaptureMethod as fQ, PaymentMethodType as fR, type PaymentStoreConfig as fS, type PaymentTransaction as fT, type PaymentTransactionProvider as fU, type PaymentTransactionStatus as fV, type PaymentTransactionType as fW, type ProductInventory as fX, type ProductLineItem as fY, type ProductLineItemSnapshot as fZ, type ProductQuoteItemInput as f_, type LeadResearchRunStatus as fa, type LeadScores as fb, type LeadValidationCheck as fc, type LeadValidationCheckStatus as fd, type LineMoneySnapshot as fe, type MailboxConnectionSecurity as ff, type MailboxPreset as fg, type MailboxStatus as fh, type MailboxSyncStatus as fi, type ManualTaskContinueBehavior as fj, type MediaRef as fk, type MediaResolution as fl, type NodeResult as fm, type OpportunitySource as fn, type OpportunityStage as fo, type OpportunityType as fp, type OrderCancellationReason as fq, type OrderCheckoutCompatibleItemInput as fr, type OrderFulfillmentStatus as fs, type OrderItem as ft, type OrderItemFulfillmentStatus as fu, type OrderItemSnapshot as fv, type OrderItemStatus as fw, type OrderPayment as fx, type OrderPaymentPromoCode as fy, type OrderPaymentProvider as fz, type PaymentMethod as g, type SuppressionStatus as g$, type ProductQuoteLineAvailability as g0, type ProductStatus as g1, type PromoCodeStatus as g2, type PromoCodeValidation as g3, type ProviderAvailability as g4, type ProviderStatus as g5, type ProviderTimelinePoint as g6, type ProviderWithTimeline as g7, type PurchaseLabelResult as g8, type QuoteLine as g9, type SocialOAuthCallbackStatus as gA, type SocialOAuthCredential as gB, type SocialOAuthDestinationOption as gC, type SocialProviderType as gD, type SocialPublicationCommentIntent as gE, type SocialPublicationCommentPriority as gF, type SocialPublicationCommentReply as gG, type SocialPublicationCommentReplyError as gH, type SocialPublicationCommentReplyStatus as gI, type SocialPublicationCommentStatus as gJ, type SocialPublicationContent as gK, type SocialPublicationStatus as gL, type SpecificDate as gM, type StoreMembership as gN, type StoreSubscription as gO, type StoreSubscriptionPayment as gP, type StoreSubscriptionProvider as gQ, type StoreSubscriptionProviderError as gR, type StoreSubscriptionProviderLifecycle as gS, type StoreSubscriptionProviderLifecycleStatus as gT, type StoreSubscriptionProviderOperation as gU, type StoreSubscriptionSource as gV, type StoreSubscriptionStatus as gW, type SubscriptionPrice as gX, type SuppressionReason as gY, type SuppressionScopeType as gZ, type SuppressionSource as g_, type RefundLine as ga, type RefundStatus as gb, type RefundType as gc, type ResearchContactListMember as gd, type ServiceCheckoutPart as ge, type ServiceDuration as gf, type ServiceLineItem as gg, type ServiceLineItemSnapshot as gh, type ServiceQuoteItem as gi, type ServiceQuoteItemInput as gj, type ServiceQuoteLine as gk, type ServiceQuoteLineAvailability as gl, type ServiceStatus as gm, type Shipment as gn, type ShipmentLabelStatus as go, type ShipmentLine as gp, type ShippingLine as gq, type ShippingMethod as gr, type ShippingStatus as gs, type ShippingWeightTier as gt, type Slot as gu, type SlotRange as gv, type SmtpImapMailboxProvider as gw, type SocialAnalyticsCapabilities as gx, type SocialDestinationMetadata as gy, type SocialEngagementCapabilities as gz, type ProductCheckoutItemInput as h, type PromoUsage$1 as h$, type SuppressionTargetType as h0, type SystemTemplateKey as h1, type TaxLine as h2, type TaxLineReversal as h3, type TaxonomyEntry as h4, type TaxonomyField as h5, type TaxonomyFieldQuery as h6, type TaxonomyQuery as h7, type TaxonomySchema as h8, type TaxonomySchemaType as h9, type Zone as hA, type AccountAddress as hB, type AccountApiToken as hC, type AccountLifecycle as hD, type ActionDevice as hE, type ActionLocation as hF, type ActionSession as hG, type BlockType as hH, type ContactChannelConsentStatus as hI, type ContactInfo as hJ, type ContactSessionToken$1 as hK, type ContactVerificationCode$1 as hL, type CreateProductVariantInput as hM, type FacebookPageContent as hN, type GeoLocationBlockProperties as hO, type GetAnalyticsHealthParams as hP, type GetAnalyticsParams as hQ, type GetDeliveryStatsParams as hR, type InstagramBusinessContent as hS, type IntervalPeriod as hT, type LoginAccountParams as hU, type LogoutParams as hV, type OrderCheckoutParams as hW, type OrderRefundError as hX, type PaymentTaxLine as hY, type PreviewEmailTemplateWarning as hZ, type PriceProvider as h_, type TaxonomyStatus as ha, type TiktokPrivacy as hb, type TimelinePoint as hc, type TrustedOrderCheckoutCompatibleItemInput as hd, type TrustedOrderCheckoutItemInput as he, type TrustedProductCheckoutItemInput as hf, type TrustedServiceCheckoutItemInput as hg, type ValidationError as hh, type WebhookEventSubscription as hi, type WorkflowAccountProfile as hj, type WorkflowAccountType as hk, type WorkflowDeployWebhookNode as hl, type WorkflowEdge as hm, type WorkflowGoogleDriveUploadNode as hn, type WorkflowHttpMethod as ho, type WorkflowHttpNode as hp, type WorkflowLoopNode as hq, type WorkflowNode as hr, type WorkflowStatus as hs, type WorkflowSwitchNode as ht, type WorkflowSwitchRule as hu, type WorkflowTransformNode as hv, type WorkflowTriggerNode as hw, type WorkingDay as hx, type WorkingHour as hy, type YoutubePrivacy as hz, type ServiceCheckoutItemInput as i, type SearchOrderServiceItemsParams as i0, type ServiceProviderInput as i1, type SetContactEmailParams as i2, type SetupAnalyticsParams as i3, type ShipmentLabelError as i4, type SocialActionAuthor as i5, type StoreEmails as i6, type StoreRole as i7, type SubscriptionAction as i8, type SubscriptionInterval as i9, type TiktokAccountContent as ia, type TimeRange as ib, type UpdateProductVariantInput as ic, type XAccountContent as id, type YoutubeChannelContent as ie, 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 };
|