arky-sdk 0.9.6 → 0.9.12
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-D8HiRDCl.d.cts +1536 -0
- package/dist/admin-Dnnv18wN.d.ts +1536 -0
- package/dist/admin.cjs +832 -375
- 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 +832 -375
- package/dist/admin.js.map +1 -1
- package/dist/api-D4lMmvF0.d.cts +4337 -0
- package/dist/api-D4lMmvF0.d.ts +4337 -0
- package/dist/{index-nCF3Z6Af.d.cts → index-BS2x278C.d.cts} +1 -1
- package/dist/{index-CZxubTDA.d.ts → index-Be8suRwP.d.ts} +1 -1
- package/dist/index.cjs +934 -460
- 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 +934 -460
- package/dist/index.js.map +1 -1
- package/dist/storefront.cjs +501 -300
- package/dist/storefront.cjs.map +1 -1
- package/dist/storefront.d.cts +174 -89
- package/dist/storefront.d.ts +174 -89
- package/dist/storefront.js +499 -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/admin-DjYydKeB.d.ts +0 -1389
- package/dist/admin-DlL8mCxL.d.cts +0 -1389
- package/dist/api-BbBHcd4p.d.cts +0 -3289
- package/dist/api-BbBHcd4p.d.ts +0 -3289
- 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
|
@@ -0,0 +1,4337 @@
|
|
|
1
|
+
declare enum PaymentMethodType {
|
|
2
|
+
Cash = "cash",
|
|
3
|
+
CreditCard = "credit_card"
|
|
4
|
+
}
|
|
5
|
+
interface PaymentTaxLine {
|
|
6
|
+
rate_bps: number;
|
|
7
|
+
amount: number;
|
|
8
|
+
label?: string;
|
|
9
|
+
scope?: string;
|
|
10
|
+
}
|
|
11
|
+
interface OrderPaymentTax {
|
|
12
|
+
amount: number;
|
|
13
|
+
mode_snapshot?: string;
|
|
14
|
+
rate_bps: number;
|
|
15
|
+
lines: OrderPaymentTaxLine[];
|
|
16
|
+
}
|
|
17
|
+
interface OrderPaymentTaxLine {
|
|
18
|
+
rate_bps: number;
|
|
19
|
+
amount: number;
|
|
20
|
+
label?: string;
|
|
21
|
+
scope?: string;
|
|
22
|
+
}
|
|
23
|
+
interface OrderPaymentPromoCode {
|
|
24
|
+
id: string;
|
|
25
|
+
code: string;
|
|
26
|
+
type: string;
|
|
27
|
+
value: number;
|
|
28
|
+
}
|
|
29
|
+
type OrderPaymentProvider = {
|
|
30
|
+
type: "stripe";
|
|
31
|
+
stripe_customer_id: string;
|
|
32
|
+
payment_intent_id?: string | null;
|
|
33
|
+
payment_provider_id?: string | null;
|
|
34
|
+
connected_account_id?: string | null;
|
|
35
|
+
};
|
|
36
|
+
type PaymentTransactionProvider = "manual" | "stripe" | "gift_card" | "store_credit";
|
|
37
|
+
type PaymentCaptureMethod = "automatic" | "manual";
|
|
38
|
+
type PaymentTransactionType = "authorize" | "capture" | "sale" | "void" | "cancel" | "refund" | "mark_paid" | "adjustment";
|
|
39
|
+
type PaymentTransactionStatus = "pending" | "requires_action" | "processing" | "succeeded" | "failed" | "cancelled";
|
|
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
|
+
}
|
|
65
|
+
interface OrderPaymentRefund {
|
|
66
|
+
id: string;
|
|
67
|
+
type: RefundType;
|
|
68
|
+
total: number;
|
|
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[];
|
|
77
|
+
created_at: number;
|
|
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
|
+
};
|
|
94
|
+
interface OrderPayment {
|
|
95
|
+
status: OrderPaymentStatus;
|
|
96
|
+
currency: string;
|
|
97
|
+
market: string;
|
|
98
|
+
subtotal: number;
|
|
99
|
+
shipping: number;
|
|
100
|
+
discount: number;
|
|
101
|
+
total: number;
|
|
102
|
+
paid: number;
|
|
103
|
+
authorized_amount: number;
|
|
104
|
+
captured_amount: number;
|
|
105
|
+
refunded_amount: number;
|
|
106
|
+
voided_amount: number;
|
|
107
|
+
capture_method: PaymentCaptureMethod;
|
|
108
|
+
tax?: OrderPaymentTax;
|
|
109
|
+
promo_code?: OrderPaymentPromoCode;
|
|
110
|
+
provider?: OrderPaymentProvider;
|
|
111
|
+
refunds: OrderPaymentRefund[];
|
|
112
|
+
transactions: PaymentTransaction[];
|
|
113
|
+
provider_payment_id?: string | null;
|
|
114
|
+
provider_customer_id?: string | null;
|
|
115
|
+
provider_payment_method_id?: string | null;
|
|
116
|
+
provider_status?: string | null;
|
|
117
|
+
next_action?: string | null;
|
|
118
|
+
failure_code?: string | null;
|
|
119
|
+
failure_message?: string | null;
|
|
120
|
+
idempotency_key?: string | null;
|
|
121
|
+
zone_id?: string;
|
|
122
|
+
payment_method_key?: string;
|
|
123
|
+
shipping_method_id?: string;
|
|
124
|
+
method_type: PaymentMethodType;
|
|
125
|
+
}
|
|
126
|
+
interface PromoCodeValidation {
|
|
127
|
+
promo_code_id: string;
|
|
128
|
+
code: string;
|
|
129
|
+
discounts: Discount[];
|
|
130
|
+
conditions: Condition[];
|
|
131
|
+
}
|
|
132
|
+
interface OrderQuote {
|
|
133
|
+
id?: string;
|
|
134
|
+
expires_at?: number;
|
|
135
|
+
market: string;
|
|
136
|
+
zone: Zone | null;
|
|
137
|
+
items: QuoteLine[];
|
|
138
|
+
shipping_lines: ShippingLine[];
|
|
139
|
+
subtotal: number;
|
|
140
|
+
shipping: number;
|
|
141
|
+
discount: number;
|
|
142
|
+
tax: number;
|
|
143
|
+
total: number;
|
|
144
|
+
shipping_method: ShippingMethod | null;
|
|
145
|
+
payment_method: PaymentMethod | null;
|
|
146
|
+
payment_methods: PaymentMethod[];
|
|
147
|
+
promo_code: PromoCodeValidation | null;
|
|
148
|
+
payment: OrderPayment;
|
|
149
|
+
charge_amount: number;
|
|
150
|
+
}
|
|
151
|
+
interface Price {
|
|
152
|
+
currency: string;
|
|
153
|
+
market: string;
|
|
154
|
+
amount: number;
|
|
155
|
+
compare_at?: number;
|
|
156
|
+
contact_list_id?: string;
|
|
157
|
+
}
|
|
158
|
+
type IntervalPeriod = "month" | "year";
|
|
159
|
+
interface SubscriptionInterval {
|
|
160
|
+
period: IntervalPeriod;
|
|
161
|
+
count: number;
|
|
162
|
+
}
|
|
163
|
+
interface PriceProvider {
|
|
164
|
+
type: string;
|
|
165
|
+
id: string;
|
|
166
|
+
}
|
|
167
|
+
interface SubscriptionPrice {
|
|
168
|
+
currency: string;
|
|
169
|
+
amount: number;
|
|
170
|
+
compare_at?: number;
|
|
171
|
+
interval?: SubscriptionInterval;
|
|
172
|
+
providers: PriceProvider[];
|
|
173
|
+
}
|
|
174
|
+
interface Address {
|
|
175
|
+
name?: string | null;
|
|
176
|
+
company?: string | null;
|
|
177
|
+
street1?: string | null;
|
|
178
|
+
street2?: string | null;
|
|
179
|
+
city?: string | null;
|
|
180
|
+
state?: string | null;
|
|
181
|
+
postal_code?: string | null;
|
|
182
|
+
country?: string | null;
|
|
183
|
+
phone?: string | null;
|
|
184
|
+
email?: string | null;
|
|
185
|
+
}
|
|
186
|
+
interface Coordinates {
|
|
187
|
+
lat: number;
|
|
188
|
+
lon: number;
|
|
189
|
+
}
|
|
190
|
+
interface GeoLocation {
|
|
191
|
+
coordinates?: Coordinates | null;
|
|
192
|
+
label?: string | null;
|
|
193
|
+
}
|
|
194
|
+
interface ZoneLocation {
|
|
195
|
+
country?: string | null;
|
|
196
|
+
state?: string | null;
|
|
197
|
+
city?: string | null;
|
|
198
|
+
postal_code?: string | null;
|
|
199
|
+
}
|
|
200
|
+
interface EshopCartItem {
|
|
201
|
+
id: string;
|
|
202
|
+
product_id: string;
|
|
203
|
+
variant_id: string;
|
|
204
|
+
product_name: string;
|
|
205
|
+
product_slug: string;
|
|
206
|
+
variant_attributes: Record<string, any>;
|
|
207
|
+
requires_shipping: boolean;
|
|
208
|
+
price: Price;
|
|
209
|
+
quantity: number;
|
|
210
|
+
added_at: number;
|
|
211
|
+
max_stock?: number;
|
|
212
|
+
}
|
|
213
|
+
type CartStatus = "active" | "abandoned" | "converted" | "expired";
|
|
214
|
+
type CartOrigin = "storefront" | "admin";
|
|
215
|
+
interface Cart {
|
|
216
|
+
id: string;
|
|
217
|
+
store_id: string;
|
|
218
|
+
contact_id: string;
|
|
219
|
+
token: string;
|
|
220
|
+
status: CartStatus;
|
|
221
|
+
origin: CartOrigin;
|
|
222
|
+
created_by_account_id?: string | null;
|
|
223
|
+
market: string;
|
|
224
|
+
items: OrderCheckoutItemInput[];
|
|
225
|
+
shipping_address?: Address | null;
|
|
226
|
+
billing_address?: Address | null;
|
|
227
|
+
forms: FormEntry[];
|
|
228
|
+
promo_code?: string | null;
|
|
229
|
+
payment_method_key?: string | null;
|
|
230
|
+
shipping_method_id?: string | null;
|
|
231
|
+
quote_snapshot?: OrderQuote | null;
|
|
232
|
+
converted_order_id?: string | null;
|
|
233
|
+
item_count: number;
|
|
234
|
+
last_action_at: number;
|
|
235
|
+
abandoned_at?: number | null;
|
|
236
|
+
recovery_sent_at?: number | null;
|
|
237
|
+
created_at: number;
|
|
238
|
+
updated_at: number;
|
|
239
|
+
}
|
|
240
|
+
interface SocialOAuthCredential {
|
|
241
|
+
access_token?: string;
|
|
242
|
+
refresh_token?: string | null;
|
|
243
|
+
expires_at?: number | null;
|
|
244
|
+
scopes: 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;
|
|
329
|
+
} | {
|
|
330
|
+
type: "unknown_outcome";
|
|
331
|
+
message: string;
|
|
332
|
+
at: number;
|
|
333
|
+
};
|
|
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 {
|
|
457
|
+
id: string;
|
|
458
|
+
store_id: string;
|
|
459
|
+
key: string;
|
|
460
|
+
type: BuildHookType;
|
|
461
|
+
url: string;
|
|
462
|
+
headers: Record<string, string>;
|
|
463
|
+
active: boolean;
|
|
464
|
+
created_at: number;
|
|
465
|
+
updated_at: number;
|
|
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
|
+
}
|
|
503
|
+
interface ShippingWeightTier {
|
|
504
|
+
up_to_grams: number;
|
|
505
|
+
amount: number;
|
|
506
|
+
}
|
|
507
|
+
type PaymentMethod = {
|
|
508
|
+
type: "cash";
|
|
509
|
+
id: string;
|
|
510
|
+
key: string;
|
|
511
|
+
} | {
|
|
512
|
+
type: "credit_card";
|
|
513
|
+
id: string;
|
|
514
|
+
key: string;
|
|
515
|
+
payment_provider_id: string;
|
|
516
|
+
};
|
|
517
|
+
interface ShippingMethod {
|
|
518
|
+
id: string;
|
|
519
|
+
taxable: boolean;
|
|
520
|
+
eta_text: string;
|
|
521
|
+
location_id?: string;
|
|
522
|
+
amount: number;
|
|
523
|
+
free_above?: number;
|
|
524
|
+
weight_tiers?: ShippingWeightTier[];
|
|
525
|
+
}
|
|
526
|
+
interface Location {
|
|
527
|
+
id: string;
|
|
528
|
+
store_id: string;
|
|
529
|
+
key: string;
|
|
530
|
+
address: Address;
|
|
531
|
+
is_pickup_location: boolean;
|
|
532
|
+
created_at: number;
|
|
533
|
+
updated_at: number;
|
|
534
|
+
}
|
|
535
|
+
interface InventoryLevel {
|
|
536
|
+
location_id: string;
|
|
537
|
+
available: number;
|
|
538
|
+
reserved: number;
|
|
539
|
+
}
|
|
540
|
+
interface ProductInventory {
|
|
541
|
+
id: string;
|
|
542
|
+
store_id: string;
|
|
543
|
+
product_id: string;
|
|
544
|
+
variant_id: string;
|
|
545
|
+
location_id: string;
|
|
546
|
+
available: number;
|
|
547
|
+
reserved: number;
|
|
548
|
+
updated_at: number;
|
|
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";
|
|
577
|
+
interface ProductVariant {
|
|
578
|
+
id: string;
|
|
579
|
+
sku?: string;
|
|
580
|
+
prices: Price[];
|
|
581
|
+
inventory: ProductInventory[];
|
|
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;
|
|
589
|
+
weight?: number;
|
|
590
|
+
}
|
|
591
|
+
interface Product {
|
|
592
|
+
id: string;
|
|
593
|
+
store_id: string;
|
|
594
|
+
key: string;
|
|
595
|
+
slug: Record<string, string>;
|
|
596
|
+
blocks: Block[];
|
|
597
|
+
taxonomies: TaxonomyEntry[];
|
|
598
|
+
variants: ProductVariant[];
|
|
599
|
+
status: ProductStatus;
|
|
600
|
+
created_at: number;
|
|
601
|
+
updated_at: number;
|
|
602
|
+
}
|
|
603
|
+
interface GalleryItem {
|
|
604
|
+
id: string;
|
|
605
|
+
url: string;
|
|
606
|
+
alt?: string;
|
|
607
|
+
caption?: string;
|
|
608
|
+
}
|
|
609
|
+
interface ProductLineItemSnapshot {
|
|
610
|
+
product_key: string;
|
|
611
|
+
variant_sku?: string;
|
|
612
|
+
variant_attributes: Block[];
|
|
613
|
+
requires_shipping: boolean;
|
|
614
|
+
tax_category_id?: string | null;
|
|
615
|
+
price: Price;
|
|
616
|
+
}
|
|
617
|
+
interface ServiceLineItemSnapshot {
|
|
618
|
+
service_key: string;
|
|
619
|
+
provider_key: string;
|
|
620
|
+
tax_category_id?: string | null;
|
|
621
|
+
price: Price;
|
|
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";
|
|
656
|
+
type OrderItemSnapshot = ProductLineItemSnapshot | ServiceLineItemSnapshot;
|
|
657
|
+
type ProductQuoteLineAvailability = {
|
|
658
|
+
ok: true;
|
|
659
|
+
available?: number;
|
|
660
|
+
} | {
|
|
661
|
+
ok: false;
|
|
662
|
+
reason: string;
|
|
663
|
+
};
|
|
664
|
+
type ServiceQuoteLineAvailability = {
|
|
665
|
+
ok: true;
|
|
666
|
+
spots: number;
|
|
667
|
+
} | {
|
|
668
|
+
ok: false;
|
|
669
|
+
reason: string;
|
|
670
|
+
};
|
|
671
|
+
interface ProductQuoteLine {
|
|
672
|
+
type: "product";
|
|
673
|
+
line_id: string;
|
|
674
|
+
product_id: string;
|
|
675
|
+
variant_id: string;
|
|
676
|
+
quantity: number;
|
|
677
|
+
unit_price: number;
|
|
678
|
+
subtotal: number;
|
|
679
|
+
discount: number;
|
|
680
|
+
tax: number;
|
|
681
|
+
total: number;
|
|
682
|
+
money: LineMoneySnapshot;
|
|
683
|
+
snapshot: ProductLineItemSnapshot;
|
|
684
|
+
availability: ProductQuoteLineAvailability;
|
|
685
|
+
}
|
|
686
|
+
interface ServiceQuoteLine {
|
|
687
|
+
type: "service";
|
|
688
|
+
line_id: string;
|
|
689
|
+
service_id: string;
|
|
690
|
+
provider_id: string;
|
|
691
|
+
from: number;
|
|
692
|
+
to: number;
|
|
693
|
+
quantity: 1;
|
|
694
|
+
unit_price: number;
|
|
695
|
+
subtotal: number;
|
|
696
|
+
discount: number;
|
|
697
|
+
tax: number;
|
|
698
|
+
total: number;
|
|
699
|
+
money: LineMoneySnapshot;
|
|
700
|
+
snapshot: ServiceLineItemSnapshot;
|
|
701
|
+
availability: ServiceQuoteLineAvailability;
|
|
702
|
+
}
|
|
703
|
+
type QuoteLine = ProductQuoteLine | ServiceQuoteLine;
|
|
704
|
+
interface ProductLineItem {
|
|
705
|
+
type: "product";
|
|
706
|
+
id: string;
|
|
707
|
+
product_id: string;
|
|
708
|
+
variant_id: string;
|
|
709
|
+
quantity: number;
|
|
710
|
+
cancelled_quantity: number;
|
|
711
|
+
fulfilled_quantity: number;
|
|
712
|
+
returned_quantity: number;
|
|
713
|
+
refunded_quantity: number;
|
|
714
|
+
location_id?: string;
|
|
715
|
+
snapshot: ProductLineItemSnapshot;
|
|
716
|
+
status: OrderItemStatus;
|
|
717
|
+
fulfillment_status: OrderItemFulfillmentStatus;
|
|
718
|
+
money: LineMoneySnapshot;
|
|
719
|
+
}
|
|
720
|
+
interface ServiceLineItem {
|
|
721
|
+
type: "service";
|
|
722
|
+
id: string;
|
|
723
|
+
service_id: string;
|
|
724
|
+
provider_id: string;
|
|
725
|
+
from: number;
|
|
726
|
+
to: number;
|
|
727
|
+
quantity: number;
|
|
728
|
+
cancelled_quantity: number;
|
|
729
|
+
fulfilled_quantity: number;
|
|
730
|
+
refunded_quantity: number;
|
|
731
|
+
forms: FormEntry[];
|
|
732
|
+
snapshot: ServiceLineItemSnapshot;
|
|
733
|
+
status: OrderItemStatus;
|
|
734
|
+
booking_status: BookingOrderItemStatus;
|
|
735
|
+
fulfillment_status: OrderItemFulfillmentStatus;
|
|
736
|
+
money: LineMoneySnapshot;
|
|
737
|
+
}
|
|
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";
|
|
741
|
+
interface HistoryEntry {
|
|
742
|
+
action: string;
|
|
743
|
+
reason?: string;
|
|
744
|
+
timestamp: number;
|
|
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
|
+
}
|
|
804
|
+
interface Order {
|
|
805
|
+
id: string;
|
|
806
|
+
number: string;
|
|
807
|
+
store_id: string;
|
|
808
|
+
source_cart_id: string;
|
|
809
|
+
contact_id: string;
|
|
810
|
+
status: OrderStatus;
|
|
811
|
+
payment_status: OrderPaymentSummaryStatus;
|
|
812
|
+
fulfillment_status: OrderFulfillmentStatus;
|
|
813
|
+
verified: boolean;
|
|
814
|
+
items: OrderItem[];
|
|
815
|
+
payment: OrderPayment;
|
|
816
|
+
shipping_lines: ShippingLine[];
|
|
817
|
+
fulfillment_orders: FulfillmentOrder[];
|
|
818
|
+
shipping_address?: Address;
|
|
819
|
+
billing_address?: Address;
|
|
820
|
+
forms: FormEntry[];
|
|
821
|
+
shipments: Shipment[];
|
|
822
|
+
digital_access_grants: DigitalAccessGrant[];
|
|
823
|
+
history: HistoryEntry[];
|
|
824
|
+
contact_list_id?: string;
|
|
825
|
+
fired_reminders: number[];
|
|
826
|
+
created_at: number;
|
|
827
|
+
updated_at: number;
|
|
828
|
+
}
|
|
829
|
+
type CheckoutPaymentAction = {
|
|
830
|
+
type: "none";
|
|
831
|
+
} | {
|
|
832
|
+
type: "handle_next_action";
|
|
833
|
+
client_secret: string;
|
|
834
|
+
};
|
|
835
|
+
interface OrderCheckoutResult {
|
|
836
|
+
order_id: string;
|
|
837
|
+
number: string;
|
|
838
|
+
payment_action: CheckoutPaymentAction;
|
|
839
|
+
payment: OrderPayment;
|
|
840
|
+
}
|
|
841
|
+
interface Zone {
|
|
842
|
+
id: string;
|
|
843
|
+
store_id: string;
|
|
844
|
+
market_id: string;
|
|
845
|
+
countries: string[];
|
|
846
|
+
states: string[];
|
|
847
|
+
postal_codes: string[];
|
|
848
|
+
tax_bps: number;
|
|
849
|
+
shipping_methods: ShippingMethod[];
|
|
850
|
+
}
|
|
851
|
+
interface Market {
|
|
852
|
+
id: string;
|
|
853
|
+
store_id: string;
|
|
854
|
+
key: string;
|
|
855
|
+
currency: string;
|
|
856
|
+
tax_mode: "exclusive" | "inclusive";
|
|
857
|
+
payment_methods: PaymentMethod[];
|
|
858
|
+
zones: Zone[];
|
|
859
|
+
created_at: number;
|
|
860
|
+
updated_at: number;
|
|
861
|
+
}
|
|
862
|
+
interface Language {
|
|
863
|
+
id: string;
|
|
864
|
+
}
|
|
865
|
+
interface StoreEmails {
|
|
866
|
+
billing: string;
|
|
867
|
+
support: string;
|
|
868
|
+
}
|
|
869
|
+
type WebhookEventSubscription = {
|
|
870
|
+
event: "collection.created";
|
|
871
|
+
key?: string;
|
|
872
|
+
} | {
|
|
873
|
+
event: "collection.updated";
|
|
874
|
+
key?: string;
|
|
875
|
+
} | {
|
|
876
|
+
event: "collection.deleted";
|
|
877
|
+
key?: string;
|
|
878
|
+
} | {
|
|
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;
|
|
889
|
+
key?: string;
|
|
890
|
+
} | {
|
|
891
|
+
event: "order.created";
|
|
892
|
+
} | {
|
|
893
|
+
event: "order.updated";
|
|
894
|
+
} | {
|
|
895
|
+
event: "order.confirmed";
|
|
896
|
+
} | {
|
|
897
|
+
event: "order.payment_received";
|
|
898
|
+
} | {
|
|
899
|
+
event: "order.payment_failed";
|
|
900
|
+
} | {
|
|
901
|
+
event: "order.refunded";
|
|
902
|
+
} | {
|
|
903
|
+
event: "order.digital_access_activated";
|
|
904
|
+
} | {
|
|
905
|
+
event: "order.digital_access_downloaded";
|
|
906
|
+
} | {
|
|
907
|
+
event: "order.cancelled";
|
|
908
|
+
} | {
|
|
909
|
+
event: "order.reminder";
|
|
910
|
+
} | {
|
|
911
|
+
event: "order.shipment_created";
|
|
912
|
+
} | {
|
|
913
|
+
event: "order.shipment_in_transit";
|
|
914
|
+
} | {
|
|
915
|
+
event: "order.shipment_out_for_delivery";
|
|
916
|
+
} | {
|
|
917
|
+
event: "order.shipment_delivered";
|
|
918
|
+
} | {
|
|
919
|
+
event: "order.shipment_failed";
|
|
920
|
+
} | {
|
|
921
|
+
event: "order.shipment_returned";
|
|
922
|
+
} | {
|
|
923
|
+
event: "order.shipment_status_changed";
|
|
924
|
+
} | {
|
|
925
|
+
event: "cart.created";
|
|
926
|
+
} | {
|
|
927
|
+
event: "cart.updated";
|
|
928
|
+
} | {
|
|
929
|
+
event: "cart.abandoned";
|
|
930
|
+
} | {
|
|
931
|
+
event: "cart.converted";
|
|
932
|
+
} | {
|
|
933
|
+
event: "product.created";
|
|
934
|
+
} | {
|
|
935
|
+
event: "product.updated";
|
|
936
|
+
} | {
|
|
937
|
+
event: "product.deleted";
|
|
938
|
+
} | {
|
|
939
|
+
event: "provider.created";
|
|
940
|
+
} | {
|
|
941
|
+
event: "provider.updated";
|
|
942
|
+
} | {
|
|
943
|
+
event: "provider.deleted";
|
|
944
|
+
} | {
|
|
945
|
+
event: "service.created";
|
|
946
|
+
} | {
|
|
947
|
+
event: "service.updated";
|
|
948
|
+
} | {
|
|
949
|
+
event: "service.deleted";
|
|
950
|
+
} | {
|
|
951
|
+
event: "media.created";
|
|
952
|
+
} | {
|
|
953
|
+
event: "media.deleted";
|
|
954
|
+
} | {
|
|
955
|
+
event: "store.created";
|
|
956
|
+
} | {
|
|
957
|
+
event: "store.updated";
|
|
958
|
+
} | {
|
|
959
|
+
event: "store.deleted";
|
|
960
|
+
} | {
|
|
961
|
+
event: "contact_list.created";
|
|
962
|
+
} | {
|
|
963
|
+
event: "contact_list.updated";
|
|
964
|
+
} | {
|
|
965
|
+
event: "contact_list.contact_added";
|
|
966
|
+
} | {
|
|
967
|
+
event: "contact_list.contact_pending";
|
|
968
|
+
} | {
|
|
969
|
+
event: "contact_list.contact_confirmed";
|
|
970
|
+
} | {
|
|
971
|
+
event: "contact_list.contact_cancelled";
|
|
972
|
+
} | {
|
|
973
|
+
event: "account.updated";
|
|
974
|
+
};
|
|
975
|
+
interface Webhook {
|
|
976
|
+
id: string;
|
|
977
|
+
store_id: string;
|
|
978
|
+
key: string;
|
|
979
|
+
url: string;
|
|
980
|
+
events: WebhookEventSubscription[];
|
|
981
|
+
headers: Record<string, string>;
|
|
982
|
+
secret: string;
|
|
983
|
+
enabled: boolean;
|
|
984
|
+
created_at: number;
|
|
985
|
+
updated_at: number;
|
|
986
|
+
}
|
|
987
|
+
type StoreSubscriptionStatus = "pending" | "active" | "cancellation_scheduled" | "cancelled" | "expired";
|
|
988
|
+
type StoreSubscriptionSource = "signup" | "admin" | "import";
|
|
989
|
+
type StoreSubscriptionProvider = {
|
|
990
|
+
type: "stripe";
|
|
991
|
+
stripe_customer_id: string;
|
|
992
|
+
subscription_id?: string | null;
|
|
993
|
+
price_id?: string | null;
|
|
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
|
+
}
|
|
1035
|
+
interface StoreSubscriptionPayment {
|
|
1036
|
+
currency: string;
|
|
1037
|
+
market: string;
|
|
1038
|
+
provider?: StoreSubscriptionProvider | null;
|
|
1039
|
+
}
|
|
1040
|
+
interface StoreSubscription {
|
|
1041
|
+
id: string;
|
|
1042
|
+
target: string;
|
|
1043
|
+
plan_id: string;
|
|
1044
|
+
pending_plan_id: string | null;
|
|
1045
|
+
payment: StoreSubscriptionPayment;
|
|
1046
|
+
status: StoreSubscriptionStatus;
|
|
1047
|
+
provider_lifecycle: StoreSubscriptionProviderLifecycle;
|
|
1048
|
+
start_date: number;
|
|
1049
|
+
end_date: number;
|
|
1050
|
+
token: string;
|
|
1051
|
+
source: StoreSubscriptionSource;
|
|
1052
|
+
}
|
|
1053
|
+
type ContactListMembershipProvider = {
|
|
1054
|
+
type: "stripe";
|
|
1055
|
+
customer_id: string;
|
|
1056
|
+
connected_account_id?: string | null;
|
|
1057
|
+
subscription_id?: string | null;
|
|
1058
|
+
payment_intent_id?: string | null;
|
|
1059
|
+
payment_intent_client_secret?: string | null;
|
|
1060
|
+
price_id?: string | null;
|
|
1061
|
+
};
|
|
1062
|
+
interface ContactListMembershipPayment {
|
|
1063
|
+
currency: string;
|
|
1064
|
+
market: string;
|
|
1065
|
+
provider?: ContactListMembershipProvider;
|
|
1066
|
+
}
|
|
1067
|
+
type ContactListMembershipProviderCancellationStatus = "requested" | "processing" | "succeeded" | "rejected" | "unknown";
|
|
1068
|
+
type ContactListMembershipProviderCancellationError = {
|
|
1069
|
+
type: "provider_rejected";
|
|
1070
|
+
message: string;
|
|
1071
|
+
provider_code?: string | null;
|
|
1072
|
+
provider_status?: number | null;
|
|
1073
|
+
at: number;
|
|
1074
|
+
} | {
|
|
1075
|
+
type: "unknown_outcome";
|
|
1076
|
+
message: string;
|
|
1077
|
+
at: number;
|
|
1078
|
+
} | {
|
|
1079
|
+
type: "missing_configuration";
|
|
1080
|
+
message: string;
|
|
1081
|
+
at: number;
|
|
1082
|
+
};
|
|
1083
|
+
interface ContactListMembershipProviderCancellation {
|
|
1084
|
+
operation_id?: string | null;
|
|
1085
|
+
status: ContactListMembershipProviderCancellationStatus;
|
|
1086
|
+
error?: ContactListMembershipProviderCancellationError | null;
|
|
1087
|
+
updated_at: number;
|
|
1088
|
+
}
|
|
1089
|
+
interface Store {
|
|
1090
|
+
id: string;
|
|
1091
|
+
key: string;
|
|
1092
|
+
timezone: string;
|
|
1093
|
+
languages?: Language[];
|
|
1094
|
+
emails?: StoreEmails;
|
|
1095
|
+
subscription?: StoreSubscription;
|
|
1096
|
+
counts?: Record<string, number>;
|
|
1097
|
+
}
|
|
1098
|
+
interface EshopStoreState {
|
|
1099
|
+
store_id: string;
|
|
1100
|
+
selected_shipping_method_id: string | null;
|
|
1101
|
+
user_token: string | null;
|
|
1102
|
+
processing_checkout: boolean;
|
|
1103
|
+
loading: boolean;
|
|
1104
|
+
error: string | null;
|
|
1105
|
+
}
|
|
1106
|
+
interface Block {
|
|
1107
|
+
id: string;
|
|
1108
|
+
key: string;
|
|
1109
|
+
type: string;
|
|
1110
|
+
properties?: any;
|
|
1111
|
+
value?: any;
|
|
1112
|
+
}
|
|
1113
|
+
type TaxonomySchemaType = "text" | "number" | "boolean" | "geo_location";
|
|
1114
|
+
interface TaxonomySchema {
|
|
1115
|
+
id: string;
|
|
1116
|
+
key: string;
|
|
1117
|
+
type: TaxonomySchemaType;
|
|
1118
|
+
value?: string[];
|
|
1119
|
+
min?: number | null;
|
|
1120
|
+
max?: number | null;
|
|
1121
|
+
}
|
|
1122
|
+
interface TaxonomyField {
|
|
1123
|
+
id: string;
|
|
1124
|
+
key: string;
|
|
1125
|
+
type: TaxonomySchemaType;
|
|
1126
|
+
value: any;
|
|
1127
|
+
}
|
|
1128
|
+
interface TaxonomyFieldQuery {
|
|
1129
|
+
key: string;
|
|
1130
|
+
type: TaxonomySchemaType;
|
|
1131
|
+
operation?: string;
|
|
1132
|
+
value: any;
|
|
1133
|
+
center?: {
|
|
1134
|
+
lat: number;
|
|
1135
|
+
lon: number;
|
|
1136
|
+
};
|
|
1137
|
+
radius?: number;
|
|
1138
|
+
}
|
|
1139
|
+
interface TaxonomyEntry {
|
|
1140
|
+
taxonomy_id: string;
|
|
1141
|
+
fields: TaxonomyField[];
|
|
1142
|
+
}
|
|
1143
|
+
interface TaxonomyQuery {
|
|
1144
|
+
taxonomy_id: string;
|
|
1145
|
+
query: TaxonomyFieldQuery[];
|
|
1146
|
+
}
|
|
1147
|
+
type FormSchemaType = "text" | "number" | "boolean" | "date" | "geo_location" | "select";
|
|
1148
|
+
interface FormSchema {
|
|
1149
|
+
id: string;
|
|
1150
|
+
key: string;
|
|
1151
|
+
type: FormSchemaType;
|
|
1152
|
+
required?: boolean;
|
|
1153
|
+
min?: number | null;
|
|
1154
|
+
max?: number | null;
|
|
1155
|
+
options?: string[];
|
|
1156
|
+
}
|
|
1157
|
+
type FormFieldType = "text" | "number" | "boolean" | "date" | "geo_location" | "select";
|
|
1158
|
+
interface FormField {
|
|
1159
|
+
id: string;
|
|
1160
|
+
key: string;
|
|
1161
|
+
type: FormFieldType;
|
|
1162
|
+
value?: any;
|
|
1163
|
+
}
|
|
1164
|
+
interface FormEntry {
|
|
1165
|
+
form_id: string;
|
|
1166
|
+
fields: FormField[];
|
|
1167
|
+
}
|
|
1168
|
+
type BlockType = "text" | "localized_text" | "number" | "boolean" | "date" | "array" | "object" | "media" | "entry" | "markdown" | "geo_location";
|
|
1169
|
+
interface GeoLocationBlockProperties {
|
|
1170
|
+
}
|
|
1171
|
+
interface GeoLocationBlock extends Block {
|
|
1172
|
+
type: "geo_location";
|
|
1173
|
+
properties: GeoLocationBlockProperties;
|
|
1174
|
+
value: GeoLocation | null;
|
|
1175
|
+
}
|
|
1176
|
+
type Access = "public" | "private";
|
|
1177
|
+
interface MediaResolution {
|
|
1178
|
+
id: string;
|
|
1179
|
+
size: string;
|
|
1180
|
+
url: string;
|
|
1181
|
+
}
|
|
1182
|
+
interface Media {
|
|
1183
|
+
id: string;
|
|
1184
|
+
resolutions: {
|
|
1185
|
+
[key: string]: MediaResolution;
|
|
1186
|
+
};
|
|
1187
|
+
mime_type: string;
|
|
1188
|
+
title?: string | null;
|
|
1189
|
+
description?: string | null;
|
|
1190
|
+
alt?: string | null;
|
|
1191
|
+
store_id: string;
|
|
1192
|
+
entity?: string;
|
|
1193
|
+
metadata?: string | null;
|
|
1194
|
+
created_at: number;
|
|
1195
|
+
slug: Record<string, string>;
|
|
1196
|
+
}
|
|
1197
|
+
interface SubscriptionPlan {
|
|
1198
|
+
id: string;
|
|
1199
|
+
provider_price_id?: string | null;
|
|
1200
|
+
provider_product_id?: string | null;
|
|
1201
|
+
name: string;
|
|
1202
|
+
tier: number;
|
|
1203
|
+
amount: number;
|
|
1204
|
+
currency: string;
|
|
1205
|
+
interval: string;
|
|
1206
|
+
interval_count: number;
|
|
1207
|
+
trial_period_days: number;
|
|
1208
|
+
}
|
|
1209
|
+
interface AccountToken {
|
|
1210
|
+
id: string;
|
|
1211
|
+
value?: string;
|
|
1212
|
+
name?: string | null;
|
|
1213
|
+
created_at: number;
|
|
1214
|
+
expires_at?: number | null;
|
|
1215
|
+
type?: string;
|
|
1216
|
+
}
|
|
1217
|
+
interface StoreMembership {
|
|
1218
|
+
store_id: string;
|
|
1219
|
+
role: StoreRole;
|
|
1220
|
+
invitation_token?: AccountToken | null;
|
|
1221
|
+
joined_at?: number | null;
|
|
1222
|
+
}
|
|
1223
|
+
interface AccountLifecycle {
|
|
1224
|
+
last_login_at?: number | null;
|
|
1225
|
+
onboarding_completed: boolean;
|
|
1226
|
+
}
|
|
1227
|
+
interface Account {
|
|
1228
|
+
id: string;
|
|
1229
|
+
email: string;
|
|
1230
|
+
memberships: StoreMembership[];
|
|
1231
|
+
api_tokens: AccountToken[];
|
|
1232
|
+
auth_tokens?: AuthToken[];
|
|
1233
|
+
verification_codes?: unknown[];
|
|
1234
|
+
lifecycle?: AccountLifecycle;
|
|
1235
|
+
}
|
|
1236
|
+
interface AccountUpdateResponse {
|
|
1237
|
+
success: boolean;
|
|
1238
|
+
newly_created_tokens: AccountToken[];
|
|
1239
|
+
}
|
|
1240
|
+
interface ApiResponse<T> {
|
|
1241
|
+
success: boolean;
|
|
1242
|
+
data?: T;
|
|
1243
|
+
error?: string;
|
|
1244
|
+
cursor?: string;
|
|
1245
|
+
total?: number;
|
|
1246
|
+
}
|
|
1247
|
+
interface PaginatedResponse<T> {
|
|
1248
|
+
items: T[];
|
|
1249
|
+
cursor: string | null;
|
|
1250
|
+
data?: T[];
|
|
1251
|
+
meta?: {
|
|
1252
|
+
total: number;
|
|
1253
|
+
page: number;
|
|
1254
|
+
per_page: number;
|
|
1255
|
+
};
|
|
1256
|
+
}
|
|
1257
|
+
type ServiceStatus = "active" | "draft" | "archived";
|
|
1258
|
+
type ProviderStatus = "active" | "draft" | "archived";
|
|
1259
|
+
type ProductStatus = "active" | "draft" | "archived";
|
|
1260
|
+
type ContactStatus = "active" | "archived";
|
|
1261
|
+
type ContactListStatus = "active" | "draft" | "archived";
|
|
1262
|
+
type ContactListSource = "manual" | "import" | "signup" | "admin" | "system" | "lead_research";
|
|
1263
|
+
type ContactListMembershipStatus = "pending" | "active" | "cancellation_scheduled" | "cancelled" | "expired" | "archived";
|
|
1264
|
+
type ContactListPlanStatus = "active" | "archived";
|
|
1265
|
+
type ContactListContentAccessStatus = "active" | "archived";
|
|
1266
|
+
type MailboxStatus = "active" | "draft" | "archived";
|
|
1267
|
+
type MailboxPreset = "gmail" | "zoho" | "microsoft" | "custom";
|
|
1268
|
+
type MailboxConnectionSecurity = "tls" | "start_tls";
|
|
1269
|
+
type MailboxSyncStatus = "not_ready" | "ready" | "failed";
|
|
1270
|
+
type SmtpImapMailboxProvider = {
|
|
1271
|
+
type: "smtp_imap";
|
|
1272
|
+
preset: MailboxPreset;
|
|
1273
|
+
smtp_host: string;
|
|
1274
|
+
smtp_port: number;
|
|
1275
|
+
smtp_security: MailboxConnectionSecurity;
|
|
1276
|
+
imap_host: string;
|
|
1277
|
+
imap_port: number;
|
|
1278
|
+
imap_security: MailboxConnectionSecurity;
|
|
1279
|
+
username: string;
|
|
1280
|
+
password_configured: boolean;
|
|
1281
|
+
sync_enabled: boolean;
|
|
1282
|
+
sync_interval_seconds: number;
|
|
1283
|
+
sync_status?: MailboxSyncStatus;
|
|
1284
|
+
sync_error?: string | null;
|
|
1285
|
+
sync_ready_at?: number | null;
|
|
1286
|
+
last_synced_at?: number | null;
|
|
1287
|
+
last_seen_uid?: number | null;
|
|
1288
|
+
};
|
|
1289
|
+
type CampaignStatus = "draft" | "active" | "paused" | "completed" | "archived";
|
|
1290
|
+
type CampaignEnrollmentStatus = "pending" | "active" | "action_required" | "replied" | "completed" | "suppressed" | "failed" | "stopped";
|
|
1291
|
+
type CampaignEnrollmentImportSource = "contact_list" | "contact" | "manual";
|
|
1292
|
+
type CampaignMessageStatus = "draft" | "scheduled" | "pending" | "sending" | "sent" | "received" | "action_required" | "completed" | "bounced" | "failed" | "unknown" | "skipped" | "stopped" | "superseded";
|
|
1293
|
+
type CampaignMessageType = "campaign_step_email" | "manual_task" | "manual_reply" | "inbound_reply" | "delivery_failure" | "action";
|
|
1294
|
+
type CampaignMessageDirection = "outbound" | "inbound" | "action";
|
|
1295
|
+
type CampaignMessageCopySource = "template" | "generated" | "edited";
|
|
1296
|
+
type OutreachThreadMode = "new_thread" | "same_thread";
|
|
1297
|
+
type ManualTaskContinueBehavior = "continue_after_delay" | "wait_until_completed";
|
|
1298
|
+
type OutreachStepType = {
|
|
1299
|
+
type: "email";
|
|
1300
|
+
template_id: string;
|
|
1301
|
+
template_vars?: Record<string, unknown>;
|
|
1302
|
+
body?: string | null;
|
|
1303
|
+
thread_mode?: OutreachThreadMode;
|
|
1304
|
+
attachments?: string[];
|
|
1305
|
+
} | {
|
|
1306
|
+
type: "manual_task";
|
|
1307
|
+
target_channel_type?: ChannelType | null;
|
|
1308
|
+
title: string;
|
|
1309
|
+
instructions: string;
|
|
1310
|
+
suggested_message?: string | null;
|
|
1311
|
+
external_url?: string | null;
|
|
1312
|
+
continue_behavior: ManualTaskContinueBehavior;
|
|
1313
|
+
};
|
|
1314
|
+
type CampaignManualTaskOutcome = "done" | "skipped" | "got_reply" | "do_not_contact";
|
|
1315
|
+
type OutreachPersonalizationStatus = "idle" | "running" | "completed" | "failed";
|
|
1316
|
+
type SuppressionStatus = "active" | "archived";
|
|
1317
|
+
type SuppressionTargetType = "email" | "domain" | "contact" | "phone";
|
|
1318
|
+
type SuppressionScopeType = "store" | "campaign";
|
|
1319
|
+
type SuppressionReason = "manual" | "unsubscribed" | "bounced" | "complained" | "replied";
|
|
1320
|
+
type SuppressionSource = "admin" | "import" | "reply" | "system";
|
|
1321
|
+
type WorkflowStatus = "active" | "draft" | "archived";
|
|
1322
|
+
type PromoCodeStatus = "active" | "draft" | "archived";
|
|
1323
|
+
type CollectionStatus = "active" | "draft" | "archived";
|
|
1324
|
+
type EntryStatus = "active" | "draft" | "archived";
|
|
1325
|
+
type EmailTemplateStatus = "active" | "draft" | "archived";
|
|
1326
|
+
type FormStatus = "active" | "draft" | "archived";
|
|
1327
|
+
type TaxonomyStatus = "active" | "draft" | "archived";
|
|
1328
|
+
type OrderCancellationReason = "admin_rejected" | "contact_cancelled" | "payment_failed" | "expired" | "other";
|
|
1329
|
+
type OrderItemStatus = {
|
|
1330
|
+
status: "pending";
|
|
1331
|
+
expires_at: number;
|
|
1332
|
+
} | {
|
|
1333
|
+
status: "confirmed";
|
|
1334
|
+
} | {
|
|
1335
|
+
status: "cancelled";
|
|
1336
|
+
reason: OrderCancellationReason;
|
|
1337
|
+
};
|
|
1338
|
+
type OrderStatus = "pending" | "partially_confirmed" | "confirmed" | "partially_cancelled" | "cancelled" | "completed";
|
|
1339
|
+
type OrderPaymentStatus = {
|
|
1340
|
+
status: "pending";
|
|
1341
|
+
at: number;
|
|
1342
|
+
} | {
|
|
1343
|
+
status: "requires_action";
|
|
1344
|
+
at: number;
|
|
1345
|
+
reason?: string | null;
|
|
1346
|
+
} | {
|
|
1347
|
+
status: "processing";
|
|
1348
|
+
at: number;
|
|
1349
|
+
} | {
|
|
1350
|
+
status: "authorized";
|
|
1351
|
+
at: number;
|
|
1352
|
+
amount: number;
|
|
1353
|
+
} | {
|
|
1354
|
+
status: "partially_captured";
|
|
1355
|
+
at: number;
|
|
1356
|
+
amount: number;
|
|
1357
|
+
} | {
|
|
1358
|
+
status: "captured";
|
|
1359
|
+
at: number;
|
|
1360
|
+
amount: number;
|
|
1361
|
+
} | {
|
|
1362
|
+
status: "partially_refunded";
|
|
1363
|
+
at: number;
|
|
1364
|
+
amount: number;
|
|
1365
|
+
} | {
|
|
1366
|
+
status: "refunded";
|
|
1367
|
+
at: number;
|
|
1368
|
+
amount: number;
|
|
1369
|
+
} | {
|
|
1370
|
+
status: "voided";
|
|
1371
|
+
at: number;
|
|
1372
|
+
amount: number;
|
|
1373
|
+
} | {
|
|
1374
|
+
status: "cancelled";
|
|
1375
|
+
at: number;
|
|
1376
|
+
reason?: string | null;
|
|
1377
|
+
} | {
|
|
1378
|
+
status: "expired";
|
|
1379
|
+
at: number;
|
|
1380
|
+
} | {
|
|
1381
|
+
status: "failed";
|
|
1382
|
+
at: number;
|
|
1383
|
+
reason?: string | null;
|
|
1384
|
+
};
|
|
1385
|
+
interface TimeRange {
|
|
1386
|
+
from: number;
|
|
1387
|
+
to: number;
|
|
1388
|
+
}
|
|
1389
|
+
type BlockSchemaType = "text" | "localized_text" | "number" | "boolean" | "date" | "geo_location" | "markdown" | "media" | "entry" | "array" | "object";
|
|
1390
|
+
interface BlockSchemaProperties {
|
|
1391
|
+
min_values?: number | null;
|
|
1392
|
+
max_values?: number | null;
|
|
1393
|
+
min_length?: number | null;
|
|
1394
|
+
max_length?: number | null;
|
|
1395
|
+
pattern?: string | null;
|
|
1396
|
+
min?: number | null;
|
|
1397
|
+
max?: number | null;
|
|
1398
|
+
collection_id?: string | null;
|
|
1399
|
+
on_delete?: "restrict" | "set_null" | null;
|
|
1400
|
+
}
|
|
1401
|
+
interface BlockSchema {
|
|
1402
|
+
id: string;
|
|
1403
|
+
key: string;
|
|
1404
|
+
type: BlockSchemaType;
|
|
1405
|
+
required: boolean;
|
|
1406
|
+
properties: BlockSchemaProperties;
|
|
1407
|
+
children: BlockSchema[];
|
|
1408
|
+
}
|
|
1409
|
+
interface Collection {
|
|
1410
|
+
id: string;
|
|
1411
|
+
store_id: string;
|
|
1412
|
+
key: string;
|
|
1413
|
+
schema: BlockSchema[];
|
|
1414
|
+
blocks: Block[];
|
|
1415
|
+
status: CollectionStatus;
|
|
1416
|
+
created_at: number;
|
|
1417
|
+
updated_at: number;
|
|
1418
|
+
}
|
|
1419
|
+
interface MediaRef {
|
|
1420
|
+
media_id: string;
|
|
1421
|
+
url?: string | null;
|
|
1422
|
+
mime_type?: string | null;
|
|
1423
|
+
alt?: string | null;
|
|
1424
|
+
}
|
|
1425
|
+
type FieldOperation = "equals" | "not_equals" | "contains" | "in" | "greater_than" | "greater_than_or_equal" | "less_than" | "less_than_or_equal";
|
|
1426
|
+
type EntryBlockQuery = {
|
|
1427
|
+
type: "text";
|
|
1428
|
+
key: string;
|
|
1429
|
+
values: string[];
|
|
1430
|
+
} | {
|
|
1431
|
+
type: "number";
|
|
1432
|
+
key: string;
|
|
1433
|
+
operation: FieldOperation;
|
|
1434
|
+
value: number;
|
|
1435
|
+
} | {
|
|
1436
|
+
type: "boolean";
|
|
1437
|
+
key: string;
|
|
1438
|
+
value: boolean;
|
|
1439
|
+
} | {
|
|
1440
|
+
type: "date";
|
|
1441
|
+
key: string;
|
|
1442
|
+
operation: FieldOperation;
|
|
1443
|
+
value: number;
|
|
1444
|
+
};
|
|
1445
|
+
interface CollectionEntry {
|
|
1446
|
+
id: string;
|
|
1447
|
+
store_id: string;
|
|
1448
|
+
collection_id: string;
|
|
1449
|
+
key: string;
|
|
1450
|
+
slug: Record<string, string>;
|
|
1451
|
+
blocks: Block[];
|
|
1452
|
+
status: EntryStatus;
|
|
1453
|
+
created_at: number;
|
|
1454
|
+
updated_at: number;
|
|
1455
|
+
}
|
|
1456
|
+
interface EmailTemplate {
|
|
1457
|
+
id: string;
|
|
1458
|
+
key: string;
|
|
1459
|
+
store_id: string;
|
|
1460
|
+
subject: Record<string, string>;
|
|
1461
|
+
body: string;
|
|
1462
|
+
from_name: string;
|
|
1463
|
+
from_email: string;
|
|
1464
|
+
reply_to?: string;
|
|
1465
|
+
preheader?: string;
|
|
1466
|
+
variables: EmailTemplateVariable[];
|
|
1467
|
+
sample_data: Record<string, unknown>;
|
|
1468
|
+
status: EmailTemplateStatus;
|
|
1469
|
+
created_at: number;
|
|
1470
|
+
updated_at: number;
|
|
1471
|
+
}
|
|
1472
|
+
interface EmailTemplateVariable {
|
|
1473
|
+
key: string;
|
|
1474
|
+
}
|
|
1475
|
+
interface Form {
|
|
1476
|
+
id: string;
|
|
1477
|
+
key: string;
|
|
1478
|
+
store_id: string;
|
|
1479
|
+
schema: FormSchema[];
|
|
1480
|
+
status: FormStatus;
|
|
1481
|
+
created_at: number;
|
|
1482
|
+
updated_at: number;
|
|
1483
|
+
}
|
|
1484
|
+
interface FormSubmission {
|
|
1485
|
+
id: string;
|
|
1486
|
+
form_id: string;
|
|
1487
|
+
store_id: string;
|
|
1488
|
+
contact_id: string;
|
|
1489
|
+
fields: FormField[];
|
|
1490
|
+
created_at: number;
|
|
1491
|
+
}
|
|
1492
|
+
interface Taxonomy {
|
|
1493
|
+
id: string;
|
|
1494
|
+
key: string;
|
|
1495
|
+
store_id: string;
|
|
1496
|
+
parent_id?: string | null;
|
|
1497
|
+
schema?: TaxonomySchema[];
|
|
1498
|
+
status: TaxonomyStatus;
|
|
1499
|
+
created_at: number;
|
|
1500
|
+
updated_at: number;
|
|
1501
|
+
}
|
|
1502
|
+
interface ServiceDuration {
|
|
1503
|
+
duration: number;
|
|
1504
|
+
is_pause: boolean;
|
|
1505
|
+
}
|
|
1506
|
+
interface WorkingHour {
|
|
1507
|
+
from: number;
|
|
1508
|
+
to: number;
|
|
1509
|
+
}
|
|
1510
|
+
interface WorkingDay {
|
|
1511
|
+
day: string;
|
|
1512
|
+
working_hours: WorkingHour[];
|
|
1513
|
+
}
|
|
1514
|
+
interface SpecificDate {
|
|
1515
|
+
date: number;
|
|
1516
|
+
working_hours: WorkingHour[];
|
|
1517
|
+
}
|
|
1518
|
+
interface ServiceProvider {
|
|
1519
|
+
id: string;
|
|
1520
|
+
service_id: string;
|
|
1521
|
+
provider_id: string;
|
|
1522
|
+
store_id: string;
|
|
1523
|
+
working_days: WorkingDay[];
|
|
1524
|
+
specific_dates: SpecificDate[];
|
|
1525
|
+
prices: Price[];
|
|
1526
|
+
durations: ServiceDuration[];
|
|
1527
|
+
slot_interval: number;
|
|
1528
|
+
forms: FormEntry[];
|
|
1529
|
+
reminders: number[];
|
|
1530
|
+
min_advance: number;
|
|
1531
|
+
max_advance: number;
|
|
1532
|
+
created_at: number;
|
|
1533
|
+
updated_at: number;
|
|
1534
|
+
}
|
|
1535
|
+
interface Service {
|
|
1536
|
+
id: string;
|
|
1537
|
+
key: string;
|
|
1538
|
+
slug: Record<string, string>;
|
|
1539
|
+
store_id: string;
|
|
1540
|
+
blocks: Block[];
|
|
1541
|
+
taxonomies: TaxonomyEntry[];
|
|
1542
|
+
created_at: number;
|
|
1543
|
+
updated_at: number;
|
|
1544
|
+
status: ServiceStatus;
|
|
1545
|
+
}
|
|
1546
|
+
interface ProviderTimelinePoint {
|
|
1547
|
+
timestamp: number;
|
|
1548
|
+
booked: number;
|
|
1549
|
+
}
|
|
1550
|
+
interface Provider {
|
|
1551
|
+
id: string;
|
|
1552
|
+
key: string;
|
|
1553
|
+
slug: Record<string, string>;
|
|
1554
|
+
store_id: string;
|
|
1555
|
+
status: ProviderStatus;
|
|
1556
|
+
blocks: Block[];
|
|
1557
|
+
taxonomies: TaxonomyEntry[];
|
|
1558
|
+
timeline: ProviderTimelinePoint[];
|
|
1559
|
+
created_at: number;
|
|
1560
|
+
updated_at: number;
|
|
1561
|
+
}
|
|
1562
|
+
interface WorkflowEdge {
|
|
1563
|
+
source: string;
|
|
1564
|
+
target: string;
|
|
1565
|
+
output: string;
|
|
1566
|
+
back_edge: boolean;
|
|
1567
|
+
}
|
|
1568
|
+
interface Workflow {
|
|
1569
|
+
id: string;
|
|
1570
|
+
key: string;
|
|
1571
|
+
store_id: string;
|
|
1572
|
+
secret: string;
|
|
1573
|
+
status: WorkflowStatus;
|
|
1574
|
+
nodes: Record<string, WorkflowNode>;
|
|
1575
|
+
edges: WorkflowEdge[];
|
|
1576
|
+
schedule?: string;
|
|
1577
|
+
created_at: number;
|
|
1578
|
+
updated_at: number;
|
|
1579
|
+
}
|
|
1580
|
+
type WorkflowNode = WorkflowTriggerNode | WorkflowHttpNode | WorkflowDeployWebhookNode | WorkflowGoogleDriveUploadNode | WorkflowSwitchNode | WorkflowTransformNode | WorkflowLoopNode;
|
|
1581
|
+
interface WorkflowTriggerNode {
|
|
1582
|
+
type: "trigger";
|
|
1583
|
+
event?: string;
|
|
1584
|
+
delay_ms?: number;
|
|
1585
|
+
schema?: Block[];
|
|
1586
|
+
}
|
|
1587
|
+
interface WorkflowHttpNode {
|
|
1588
|
+
type: "http";
|
|
1589
|
+
method: WorkflowHttpMethod;
|
|
1590
|
+
url: string;
|
|
1591
|
+
headers?: Record<string, string>;
|
|
1592
|
+
body?: any;
|
|
1593
|
+
timeout_ms?: number;
|
|
1594
|
+
delay_ms?: number;
|
|
1595
|
+
retries?: number;
|
|
1596
|
+
retry_delay_ms?: number;
|
|
1597
|
+
}
|
|
1598
|
+
interface WorkflowDeployWebhookNode {
|
|
1599
|
+
type: "deploy_webhook";
|
|
1600
|
+
build_hook_id: string;
|
|
1601
|
+
timeout_ms?: number;
|
|
1602
|
+
delay_ms?: number;
|
|
1603
|
+
retries?: number;
|
|
1604
|
+
retry_delay_ms?: number;
|
|
1605
|
+
}
|
|
1606
|
+
type WorkflowAccountType = "google_drive";
|
|
1607
|
+
interface WorkflowAccountProfile {
|
|
1608
|
+
external_account_id: string;
|
|
1609
|
+
display_name: string;
|
|
1610
|
+
email?: string | null;
|
|
1611
|
+
}
|
|
1612
|
+
interface WorkflowAccount {
|
|
1613
|
+
id: string;
|
|
1614
|
+
store_id: string;
|
|
1615
|
+
key: string;
|
|
1616
|
+
type: WorkflowAccountType;
|
|
1617
|
+
profile: WorkflowAccountProfile;
|
|
1618
|
+
created_at: number;
|
|
1619
|
+
updated_at: number;
|
|
1620
|
+
}
|
|
1621
|
+
interface WorkflowAccountConnectUrl {
|
|
1622
|
+
authorization_url: string;
|
|
1623
|
+
state: string;
|
|
1624
|
+
}
|
|
1625
|
+
interface WorkflowGoogleDriveUploadNode {
|
|
1626
|
+
type: "google_drive_upload";
|
|
1627
|
+
workflow_account_id: string;
|
|
1628
|
+
name: string;
|
|
1629
|
+
mime_type: string;
|
|
1630
|
+
content?: any;
|
|
1631
|
+
parent_folder_id?: string | null;
|
|
1632
|
+
timeout_ms?: number;
|
|
1633
|
+
delay_ms?: number;
|
|
1634
|
+
retries?: number;
|
|
1635
|
+
retry_delay_ms?: number;
|
|
1636
|
+
}
|
|
1637
|
+
interface WorkflowSwitchRule {
|
|
1638
|
+
condition: string;
|
|
1639
|
+
}
|
|
1640
|
+
interface WorkflowSwitchNode {
|
|
1641
|
+
type: "switch";
|
|
1642
|
+
rules: WorkflowSwitchRule[];
|
|
1643
|
+
delay_ms?: number;
|
|
1644
|
+
}
|
|
1645
|
+
interface WorkflowTransformNode {
|
|
1646
|
+
type: "transform";
|
|
1647
|
+
code: string;
|
|
1648
|
+
delay_ms?: number;
|
|
1649
|
+
}
|
|
1650
|
+
interface WorkflowLoopNode {
|
|
1651
|
+
type: "loop";
|
|
1652
|
+
expression: string;
|
|
1653
|
+
delay_ms?: number;
|
|
1654
|
+
}
|
|
1655
|
+
type WorkflowHttpMethod = "get" | "post" | "put" | "patch" | "delete";
|
|
1656
|
+
type ExecutionStatus = "pending" | "running" | "completed" | "failed" | "cancelled";
|
|
1657
|
+
interface NodeResult {
|
|
1658
|
+
output: any;
|
|
1659
|
+
route: string;
|
|
1660
|
+
started_at: number;
|
|
1661
|
+
completed_at: number;
|
|
1662
|
+
duration_ms: number;
|
|
1663
|
+
error?: string;
|
|
1664
|
+
}
|
|
1665
|
+
interface WorkflowExecution {
|
|
1666
|
+
id: string;
|
|
1667
|
+
workflow_id: string;
|
|
1668
|
+
store_id: string;
|
|
1669
|
+
status: ExecutionStatus;
|
|
1670
|
+
input: Record<string, any>;
|
|
1671
|
+
results: Record<string, NodeResult>;
|
|
1672
|
+
error?: string;
|
|
1673
|
+
scheduled_at: number;
|
|
1674
|
+
started_at: number;
|
|
1675
|
+
completed_at?: number;
|
|
1676
|
+
created_at: number;
|
|
1677
|
+
updated_at: number;
|
|
1678
|
+
}
|
|
1679
|
+
type ContactListType = {
|
|
1680
|
+
type: "standard";
|
|
1681
|
+
} | {
|
|
1682
|
+
type: "confirmation";
|
|
1683
|
+
confirm_template_id?: string | null;
|
|
1684
|
+
} | {
|
|
1685
|
+
type: "paid";
|
|
1686
|
+
};
|
|
1687
|
+
interface ContactListPlan {
|
|
1688
|
+
id: string;
|
|
1689
|
+
key: string;
|
|
1690
|
+
name: string;
|
|
1691
|
+
description?: string | null;
|
|
1692
|
+
status: ContactListPlanStatus;
|
|
1693
|
+
prices: SubscriptionPrice[];
|
|
1694
|
+
payment_provider_id?: string | null;
|
|
1695
|
+
created_at: number;
|
|
1696
|
+
updated_at: number;
|
|
1697
|
+
}
|
|
1698
|
+
type ContactListContentAccessTarget = {
|
|
1699
|
+
type: "cms_entry";
|
|
1700
|
+
entry_id: string;
|
|
1701
|
+
} | {
|
|
1702
|
+
type: "cms_collection";
|
|
1703
|
+
collection_id: string;
|
|
1704
|
+
};
|
|
1705
|
+
interface ContactListContentAccess {
|
|
1706
|
+
id: string;
|
|
1707
|
+
target: ContactListContentAccessTarget;
|
|
1708
|
+
status: ContactListContentAccessStatus;
|
|
1709
|
+
created_at: number;
|
|
1710
|
+
updated_at: number;
|
|
1711
|
+
}
|
|
1712
|
+
interface ContactSessionToken$1 {
|
|
1713
|
+
id: string;
|
|
1714
|
+
token: string;
|
|
1715
|
+
created_at: number;
|
|
1716
|
+
}
|
|
1717
|
+
interface ContactVerificationCode$1 {
|
|
1718
|
+
code: string;
|
|
1719
|
+
created_at: number;
|
|
1720
|
+
used: boolean;
|
|
1721
|
+
store_id?: string | null;
|
|
1722
|
+
}
|
|
1723
|
+
interface PromoUsage$1 {
|
|
1724
|
+
promo_code_id: string;
|
|
1725
|
+
uses: number;
|
|
1726
|
+
}
|
|
1727
|
+
type ChannelType = "email" | "phone" | "whatsapp" | "instagram" | "facebook" | "messenger" | "linkedin_company" | "linkedin_person" | "contact_form" | "booking_link" | "telegram" | "tiktok" | "youtube" | "other";
|
|
1728
|
+
interface ContactChannel {
|
|
1729
|
+
type: ChannelType;
|
|
1730
|
+
label?: string | null;
|
|
1731
|
+
value: string;
|
|
1732
|
+
normalized_value?: string | null;
|
|
1733
|
+
provider?: string | null;
|
|
1734
|
+
provider_user_id?: string | null;
|
|
1735
|
+
verified_at?: number | null;
|
|
1736
|
+
is_primary?: boolean;
|
|
1737
|
+
consent_status?: ContactChannelConsentStatus;
|
|
1738
|
+
subscribed_at?: number | null;
|
|
1739
|
+
unsubscribed_at?: number | null;
|
|
1740
|
+
source_url?: string | null;
|
|
1741
|
+
confidence?: number | null;
|
|
1742
|
+
notes?: string | null;
|
|
1743
|
+
created_at: number;
|
|
1744
|
+
updated_at: number;
|
|
1745
|
+
}
|
|
1746
|
+
type ContactChannelConsentStatus = "unknown" | "subscribed" | "unsubscribed" | "bounced" | "blocked";
|
|
1747
|
+
interface Contact$1 {
|
|
1748
|
+
id: string;
|
|
1749
|
+
store_id: string;
|
|
1750
|
+
email: string | null;
|
|
1751
|
+
verified: boolean;
|
|
1752
|
+
status: ContactStatus;
|
|
1753
|
+
channels: ContactChannel[];
|
|
1754
|
+
promo_usage: PromoUsage$1[];
|
|
1755
|
+
taxonomies: TaxonomyEntry[];
|
|
1756
|
+
auth_tokens: ContactSessionToken$1[];
|
|
1757
|
+
verification_codes: ContactVerificationCode$1[];
|
|
1758
|
+
created_at: number;
|
|
1759
|
+
updated_at: number;
|
|
1760
|
+
}
|
|
1761
|
+
interface ContactListAccessResponse {
|
|
1762
|
+
has_access: boolean;
|
|
1763
|
+
membership?: ContactListMembership | null;
|
|
1764
|
+
}
|
|
1765
|
+
interface ContactListContentAccessResponse {
|
|
1766
|
+
has_access: boolean;
|
|
1767
|
+
contact_list?: ContactList | null;
|
|
1768
|
+
membership?: ContactListMembership | null;
|
|
1769
|
+
}
|
|
1770
|
+
interface ContactListSubscribeResponse {
|
|
1771
|
+
checkout_url?: string | null;
|
|
1772
|
+
payment_action: CheckoutPaymentAction;
|
|
1773
|
+
membership?: ContactListMembership | null;
|
|
1774
|
+
}
|
|
1775
|
+
interface ContactList {
|
|
1776
|
+
id: string;
|
|
1777
|
+
store_id: string;
|
|
1778
|
+
key: string;
|
|
1779
|
+
name: string;
|
|
1780
|
+
description?: string | null;
|
|
1781
|
+
status: ContactListStatus;
|
|
1782
|
+
type: ContactListType;
|
|
1783
|
+
plans: ContactListPlan[];
|
|
1784
|
+
content_access: ContactListContentAccess[];
|
|
1785
|
+
source: ContactListSource;
|
|
1786
|
+
member_count: number;
|
|
1787
|
+
created_at: number;
|
|
1788
|
+
updated_at: number;
|
|
1789
|
+
}
|
|
1790
|
+
interface ContactListMembership {
|
|
1791
|
+
id: string;
|
|
1792
|
+
store_id: string;
|
|
1793
|
+
contact_id: string;
|
|
1794
|
+
contact_list_id: string;
|
|
1795
|
+
source: ContactListSource;
|
|
1796
|
+
fields: Record<string, unknown>;
|
|
1797
|
+
lead_description?: string | null;
|
|
1798
|
+
lead?: LeadInsight | null;
|
|
1799
|
+
status: ContactListMembershipStatus;
|
|
1800
|
+
plan_id: string;
|
|
1801
|
+
pending_plan_id: string | null;
|
|
1802
|
+
payment: ContactListMembershipPayment;
|
|
1803
|
+
provider_cancellation: ContactListMembershipProviderCancellation;
|
|
1804
|
+
start_date: number;
|
|
1805
|
+
end_date: number;
|
|
1806
|
+
token: string;
|
|
1807
|
+
created_at: number;
|
|
1808
|
+
updated_at: number;
|
|
1809
|
+
}
|
|
1810
|
+
interface ContactListMember {
|
|
1811
|
+
contact: Contact$1;
|
|
1812
|
+
membership: ContactListMembership;
|
|
1813
|
+
}
|
|
1814
|
+
interface ActionLocation {
|
|
1815
|
+
country_code?: string | null;
|
|
1816
|
+
city?: string | null;
|
|
1817
|
+
region?: string | null;
|
|
1818
|
+
timezone?: string | null;
|
|
1819
|
+
}
|
|
1820
|
+
interface ActionDevice {
|
|
1821
|
+
device_type?: string | null;
|
|
1822
|
+
browser?: string | null;
|
|
1823
|
+
os?: string | null;
|
|
1824
|
+
language?: string | null;
|
|
1825
|
+
}
|
|
1826
|
+
interface ActionSession {
|
|
1827
|
+
idx?: number | null;
|
|
1828
|
+
}
|
|
1829
|
+
interface ActionContext {
|
|
1830
|
+
location?: ActionLocation | null;
|
|
1831
|
+
device?: ActionDevice | null;
|
|
1832
|
+
session?: ActionSession | null;
|
|
1833
|
+
}
|
|
1834
|
+
interface SocialActionAuthor {
|
|
1835
|
+
provider_user_id?: string | null;
|
|
1836
|
+
name?: string | null;
|
|
1837
|
+
handle?: string | null;
|
|
1838
|
+
}
|
|
1839
|
+
type OpportunityType = "lead" | "support" | "complaint" | "question" | "upsell" | "partnership" | "engagement";
|
|
1840
|
+
type OpportunityStage = "new" | "reviewing" | "contacted" | "won" | "lost" | "dismissed";
|
|
1841
|
+
type OpportunitySource = {
|
|
1842
|
+
type: "social_comment";
|
|
1843
|
+
publication_id: string;
|
|
1844
|
+
comment_id: string;
|
|
1845
|
+
action_id?: string | null;
|
|
1846
|
+
} | {
|
|
1847
|
+
type: "form_submission";
|
|
1848
|
+
form_id: string;
|
|
1849
|
+
submission_id: string;
|
|
1850
|
+
} | {
|
|
1851
|
+
type: "tracked";
|
|
1852
|
+
key: string;
|
|
1853
|
+
action_id?: string | null;
|
|
1854
|
+
} | {
|
|
1855
|
+
type: "manual";
|
|
1856
|
+
};
|
|
1857
|
+
type ActionData = {
|
|
1858
|
+
type: "tracked";
|
|
1859
|
+
value: {
|
|
1860
|
+
key: string;
|
|
1861
|
+
payload: Record<string, unknown>;
|
|
1862
|
+
context?: ActionContext | null;
|
|
1863
|
+
};
|
|
1864
|
+
} | {
|
|
1865
|
+
type: "form_submission";
|
|
1866
|
+
value: {
|
|
1867
|
+
form_id: string;
|
|
1868
|
+
form_key: string;
|
|
1869
|
+
submission_id: string;
|
|
1870
|
+
field_keys: string[];
|
|
1871
|
+
context?: ActionContext | null;
|
|
1872
|
+
};
|
|
1873
|
+
} | {
|
|
1874
|
+
type: "social_comment";
|
|
1875
|
+
value: {
|
|
1876
|
+
social_account_id: string;
|
|
1877
|
+
provider_type: SocialProviderType;
|
|
1878
|
+
publication_id: string;
|
|
1879
|
+
comment_id: string;
|
|
1880
|
+
provider_comment_id: string;
|
|
1881
|
+
provider_parent_comment_id?: string | null;
|
|
1882
|
+
author: SocialActionAuthor;
|
|
1883
|
+
text: string;
|
|
1884
|
+
};
|
|
1885
|
+
} | {
|
|
1886
|
+
type: "social_reply";
|
|
1887
|
+
value: {
|
|
1888
|
+
social_account_id: string;
|
|
1889
|
+
provider_type: SocialProviderType;
|
|
1890
|
+
publication_id: string;
|
|
1891
|
+
comment_id: string;
|
|
1892
|
+
provider_comment_id?: string | null;
|
|
1893
|
+
provider_comment_url?: string | null;
|
|
1894
|
+
text: string;
|
|
1895
|
+
};
|
|
1896
|
+
} | {
|
|
1897
|
+
type: "order";
|
|
1898
|
+
value: {
|
|
1899
|
+
order_id: string;
|
|
1900
|
+
status: string;
|
|
1901
|
+
total?: number | null;
|
|
1902
|
+
};
|
|
1903
|
+
} | {
|
|
1904
|
+
type: "campaign_reply";
|
|
1905
|
+
value: {
|
|
1906
|
+
campaign_id: string;
|
|
1907
|
+
enrollment_id: string;
|
|
1908
|
+
message_id: string;
|
|
1909
|
+
text: string;
|
|
1910
|
+
};
|
|
1911
|
+
} | {
|
|
1912
|
+
type: "direct_message";
|
|
1913
|
+
value: {
|
|
1914
|
+
social_account_id: string;
|
|
1915
|
+
provider_type: SocialProviderType;
|
|
1916
|
+
thread_id: string;
|
|
1917
|
+
message_id: string;
|
|
1918
|
+
text: string;
|
|
1919
|
+
};
|
|
1920
|
+
} | {
|
|
1921
|
+
type: "manual";
|
|
1922
|
+
value: {
|
|
1923
|
+
text: string;
|
|
1924
|
+
account_id?: string | null;
|
|
1925
|
+
};
|
|
1926
|
+
} | {
|
|
1927
|
+
type: "opportunity";
|
|
1928
|
+
value: {
|
|
1929
|
+
type: OpportunityType;
|
|
1930
|
+
stage: OpportunityStage;
|
|
1931
|
+
score?: number | null;
|
|
1932
|
+
reason?: string | null;
|
|
1933
|
+
suggested_next_action?: string | null;
|
|
1934
|
+
source: OpportunitySource;
|
|
1935
|
+
lead?: LeadInsight | null;
|
|
1936
|
+
};
|
|
1937
|
+
};
|
|
1938
|
+
interface Action {
|
|
1939
|
+
id: string;
|
|
1940
|
+
store_id: string;
|
|
1941
|
+
contact_id: string;
|
|
1942
|
+
key: string;
|
|
1943
|
+
type: ActionData["type"];
|
|
1944
|
+
preview_text?: string | null;
|
|
1945
|
+
occurred_at: number;
|
|
1946
|
+
created_at: number;
|
|
1947
|
+
updated_at: number;
|
|
1948
|
+
data: ActionData;
|
|
1949
|
+
}
|
|
1950
|
+
interface Mailbox {
|
|
1951
|
+
id: string;
|
|
1952
|
+
store_id: string;
|
|
1953
|
+
key: string;
|
|
1954
|
+
email: string;
|
|
1955
|
+
from_name: string;
|
|
1956
|
+
reply_to_email?: string | null;
|
|
1957
|
+
provider: SmtpImapMailboxProvider;
|
|
1958
|
+
status: MailboxStatus;
|
|
1959
|
+
daily_limit: number;
|
|
1960
|
+
sent_today: number;
|
|
1961
|
+
last_sent_at?: number | null;
|
|
1962
|
+
created_at: number;
|
|
1963
|
+
updated_at: number;
|
|
1964
|
+
}
|
|
1965
|
+
interface OutreachStep {
|
|
1966
|
+
id?: string;
|
|
1967
|
+
position?: number;
|
|
1968
|
+
delay_seconds?: number;
|
|
1969
|
+
type?: OutreachStepType;
|
|
1970
|
+
}
|
|
1971
|
+
interface OutreachPersonalizationCounters {
|
|
1972
|
+
total_contacts: number;
|
|
1973
|
+
draft_messages: number;
|
|
1974
|
+
generated_messages: number;
|
|
1975
|
+
template_messages: number;
|
|
1976
|
+
failed_messages: number;
|
|
1977
|
+
}
|
|
1978
|
+
interface OutreachPersonalizationState {
|
|
1979
|
+
status: OutreachPersonalizationStatus;
|
|
1980
|
+
step_position?: number | null;
|
|
1981
|
+
contact_ids: string[];
|
|
1982
|
+
overwrite: boolean;
|
|
1983
|
+
instructions?: string | null;
|
|
1984
|
+
error?: string | null;
|
|
1985
|
+
counters: OutreachPersonalizationCounters;
|
|
1986
|
+
started_at?: number | null;
|
|
1987
|
+
completed_at?: number | null;
|
|
1988
|
+
}
|
|
1989
|
+
interface Campaign {
|
|
1990
|
+
id: string;
|
|
1991
|
+
store_id: string;
|
|
1992
|
+
key: string;
|
|
1993
|
+
name: string;
|
|
1994
|
+
mailbox_ids: string[];
|
|
1995
|
+
status: CampaignStatus;
|
|
1996
|
+
steps: OutreachStep[];
|
|
1997
|
+
personalization: OutreachPersonalizationState;
|
|
1998
|
+
launched_at?: number | null;
|
|
1999
|
+
created_at: number;
|
|
2000
|
+
updated_at: number;
|
|
2001
|
+
}
|
|
2002
|
+
interface CampaignLaunchReadiness {
|
|
2003
|
+
ready: boolean;
|
|
2004
|
+
blockers: string[];
|
|
2005
|
+
warnings: string[];
|
|
2006
|
+
contact_count: number;
|
|
2007
|
+
sender_count: number;
|
|
2008
|
+
step_count: number;
|
|
2009
|
+
daily_capacity: number;
|
|
2010
|
+
expected_drafts: number;
|
|
2011
|
+
draft_count: number;
|
|
2012
|
+
pending_drafts: number;
|
|
2013
|
+
generated_drafts: number;
|
|
2014
|
+
template_drafts: number;
|
|
2015
|
+
edited_drafts: number;
|
|
2016
|
+
personalization_errors: number;
|
|
2017
|
+
stale_drafts: number;
|
|
2018
|
+
suppression_count: number;
|
|
2019
|
+
}
|
|
2020
|
+
interface CampaignEnrollmentImportResult$1 {
|
|
2021
|
+
imported_count: number;
|
|
2022
|
+
existing_count: number;
|
|
2023
|
+
skipped_count: number;
|
|
2024
|
+
draft_count: number;
|
|
2025
|
+
}
|
|
2026
|
+
interface CampaignEnrollment {
|
|
2027
|
+
id: string;
|
|
2028
|
+
store_id: string;
|
|
2029
|
+
campaign_id: string;
|
|
2030
|
+
contact_id: string;
|
|
2031
|
+
contact_list_membership_id?: string | null;
|
|
2032
|
+
import_source: CampaignEnrollmentImportSource;
|
|
2033
|
+
import_source_id?: string | null;
|
|
2034
|
+
imported_at?: number | null;
|
|
2035
|
+
mailbox_id?: string | null;
|
|
2036
|
+
lead_description?: string | null;
|
|
2037
|
+
fields: Record<string, unknown>;
|
|
2038
|
+
status: CampaignEnrollmentStatus;
|
|
2039
|
+
current_step_position: number;
|
|
2040
|
+
next_action_at?: number | null;
|
|
2041
|
+
created_at: number;
|
|
2042
|
+
updated_at: number;
|
|
2043
|
+
}
|
|
2044
|
+
interface CampaignMessage {
|
|
2045
|
+
id: string;
|
|
2046
|
+
store_id: string;
|
|
2047
|
+
campaign_id: string;
|
|
2048
|
+
campaign_enrollment_id: string;
|
|
2049
|
+
contact_id: string;
|
|
2050
|
+
mailbox_id: string;
|
|
2051
|
+
direction: CampaignMessageDirection;
|
|
2052
|
+
type: CampaignMessageType;
|
|
2053
|
+
step_id?: string | null;
|
|
2054
|
+
step_position?: number | null;
|
|
2055
|
+
template_copy_hash?: string | null;
|
|
2056
|
+
copy_source: CampaignMessageCopySource;
|
|
2057
|
+
personalized_at?: number | null;
|
|
2058
|
+
edited_at?: number | null;
|
|
2059
|
+
personalization_error?: string | null;
|
|
2060
|
+
in_reply_to_message_id?: string | null;
|
|
2061
|
+
status: CampaignMessageStatus;
|
|
2062
|
+
to_email: string;
|
|
2063
|
+
from_email: string;
|
|
2064
|
+
subject: string;
|
|
2065
|
+
body: string;
|
|
2066
|
+
body_html?: string | null;
|
|
2067
|
+
template_id?: string | null;
|
|
2068
|
+
template_vars: Record<string, unknown>;
|
|
2069
|
+
rendered_subject?: string | null;
|
|
2070
|
+
rendered_html?: string | null;
|
|
2071
|
+
rendered_text?: string | null;
|
|
2072
|
+
attachments: string[];
|
|
2073
|
+
target_channel_type?: ChannelType | null;
|
|
2074
|
+
resolved_channel?: ContactChannel | null;
|
|
2075
|
+
title?: string | null;
|
|
2076
|
+
instructions?: string | null;
|
|
2077
|
+
suggested_message?: string | null;
|
|
2078
|
+
external_url?: string | null;
|
|
2079
|
+
continue_behavior?: ManualTaskContinueBehavior | null;
|
|
2080
|
+
outcome?: CampaignManualTaskOutcome | null;
|
|
2081
|
+
note?: string | null;
|
|
2082
|
+
provider_message_id?: string | null;
|
|
2083
|
+
provider_thread_id?: string | null;
|
|
2084
|
+
error?: string | null;
|
|
2085
|
+
due_at?: number | null;
|
|
2086
|
+
completed_at?: number | null;
|
|
2087
|
+
sent_at?: number | null;
|
|
2088
|
+
received_at?: number | null;
|
|
2089
|
+
created_at: number;
|
|
2090
|
+
updated_at: number;
|
|
2091
|
+
}
|
|
2092
|
+
interface CampaignEnrollmentConversationResponse {
|
|
2093
|
+
enrollment: CampaignEnrollment;
|
|
2094
|
+
messages: CampaignMessage[];
|
|
2095
|
+
}
|
|
2096
|
+
interface Suppression {
|
|
2097
|
+
id: string;
|
|
2098
|
+
store_id: string;
|
|
2099
|
+
campaign_id?: string | null;
|
|
2100
|
+
contact_id?: string | null;
|
|
2101
|
+
email?: string | null;
|
|
2102
|
+
domain?: string | null;
|
|
2103
|
+
target_type: SuppressionTargetType;
|
|
2104
|
+
target_key: string;
|
|
2105
|
+
scope_type: SuppressionScopeType;
|
|
2106
|
+
scope_key: string;
|
|
2107
|
+
reason: SuppressionReason;
|
|
2108
|
+
status: SuppressionStatus;
|
|
2109
|
+
source: SuppressionSource;
|
|
2110
|
+
created_at: number;
|
|
2111
|
+
updated_at: number;
|
|
2112
|
+
}
|
|
2113
|
+
type LeadResearchRunStatus = "draft" | "running" | "completed" | "failed" | "cancelled";
|
|
2114
|
+
type LeadEmailClassification = "official_domain" | "role_official" | "personal_official" | "free_mail" | "unusable" | "unknown";
|
|
2115
|
+
type LeadValidationCheckStatus = "passed" | "warning" | "failed" | "unknown";
|
|
2116
|
+
type CampaignRoute = "email_only" | "email_manual_followup" | "manual_only" | "needs_review";
|
|
2117
|
+
interface LeadScores {
|
|
2118
|
+
fit: number;
|
|
2119
|
+
problem: number;
|
|
2120
|
+
channel: number;
|
|
2121
|
+
intent: number;
|
|
2122
|
+
data_quality: number;
|
|
2123
|
+
}
|
|
2124
|
+
interface ChannelMessage {
|
|
2125
|
+
type: ChannelType;
|
|
2126
|
+
subject?: string | null;
|
|
2127
|
+
body: string;
|
|
2128
|
+
}
|
|
2129
|
+
interface LeadInsight {
|
|
2130
|
+
company?: string | null;
|
|
2131
|
+
contact_name?: string | null;
|
|
2132
|
+
website?: string | null;
|
|
2133
|
+
industry?: string | null;
|
|
2134
|
+
location?: string | null;
|
|
2135
|
+
description?: string | null;
|
|
2136
|
+
pain_points: string[];
|
|
2137
|
+
fit_reason?: string | null;
|
|
2138
|
+
scores: LeadScores;
|
|
2139
|
+
best_channel?: ChannelType | null;
|
|
2140
|
+
backup_channel?: ChannelType | null;
|
|
2141
|
+
route: CampaignRoute;
|
|
2142
|
+
first_messages: ChannelMessage[];
|
|
2143
|
+
run_id?: string | null;
|
|
2144
|
+
source_url?: string | null;
|
|
2145
|
+
source_excerpt?: string | null;
|
|
2146
|
+
reasoning_summary?: string | null;
|
|
2147
|
+
}
|
|
2148
|
+
interface LeadResearchRun {
|
|
2149
|
+
id: string;
|
|
2150
|
+
store_id: string;
|
|
2151
|
+
contact_list_id: string;
|
|
2152
|
+
title?: string | null;
|
|
2153
|
+
status: LeadResearchRunStatus;
|
|
2154
|
+
error?: string | null;
|
|
2155
|
+
started_at?: number | null;
|
|
2156
|
+
completed_at?: number | null;
|
|
2157
|
+
created_at: number;
|
|
2158
|
+
updated_at: number;
|
|
2159
|
+
}
|
|
2160
|
+
interface LeadValidationCheck {
|
|
2161
|
+
key: string;
|
|
2162
|
+
status: LeadValidationCheckStatus;
|
|
2163
|
+
message: string;
|
|
2164
|
+
}
|
|
2165
|
+
interface LeadEmailValidationResult {
|
|
2166
|
+
email: string;
|
|
2167
|
+
normalized_email?: string | null;
|
|
2168
|
+
domain?: string | null;
|
|
2169
|
+
classification: LeadEmailClassification;
|
|
2170
|
+
confidence: number;
|
|
2171
|
+
importable: boolean;
|
|
2172
|
+
hard_blockers: string[];
|
|
2173
|
+
checks: LeadValidationCheck[];
|
|
2174
|
+
}
|
|
2175
|
+
type LeadResearchMessageRole = "system" | "user" | "assistant" | "action" | "tool";
|
|
2176
|
+
interface LeadResearchMessage {
|
|
2177
|
+
id: string;
|
|
2178
|
+
role: LeadResearchMessageRole;
|
|
2179
|
+
content: string;
|
|
2180
|
+
metadata?: Record<string, unknown> | null;
|
|
2181
|
+
created_at: number;
|
|
2182
|
+
}
|
|
2183
|
+
interface ResearchContactListMember {
|
|
2184
|
+
contact: Contact$1;
|
|
2185
|
+
membership: ContactListMembership;
|
|
2186
|
+
}
|
|
2187
|
+
interface SendLeadResearchMessageResult {
|
|
2188
|
+
response: string;
|
|
2189
|
+
run: LeadResearchRun;
|
|
2190
|
+
contact_list_members: ResearchContactListMember[];
|
|
2191
|
+
}
|
|
2192
|
+
type EventAction = {
|
|
2193
|
+
action: "order_created";
|
|
2194
|
+
} | {
|
|
2195
|
+
action: "order_updated";
|
|
2196
|
+
} | {
|
|
2197
|
+
action: "order_confirmed";
|
|
2198
|
+
} | {
|
|
2199
|
+
action: "order_payment_received";
|
|
2200
|
+
data: {
|
|
2201
|
+
amount: number;
|
|
2202
|
+
currency: string;
|
|
2203
|
+
};
|
|
2204
|
+
} | {
|
|
2205
|
+
action: "order_payment_failed";
|
|
2206
|
+
data: {
|
|
2207
|
+
reason?: string;
|
|
2208
|
+
};
|
|
2209
|
+
} | {
|
|
2210
|
+
action: "order_refunded";
|
|
2211
|
+
data: {
|
|
2212
|
+
amount: number;
|
|
2213
|
+
currency: string;
|
|
2214
|
+
reason?: string;
|
|
2215
|
+
};
|
|
2216
|
+
} | {
|
|
2217
|
+
action: "order_cancelled";
|
|
2218
|
+
data: {
|
|
2219
|
+
reason?: string;
|
|
2220
|
+
};
|
|
2221
|
+
} | {
|
|
2222
|
+
action: "order_shipment_created";
|
|
2223
|
+
data: {
|
|
2224
|
+
shipment_id: string;
|
|
2225
|
+
};
|
|
2226
|
+
} | {
|
|
2227
|
+
action: "order_shipment_in_transit";
|
|
2228
|
+
data: {
|
|
2229
|
+
shipment_id: string;
|
|
2230
|
+
};
|
|
2231
|
+
} | {
|
|
2232
|
+
action: "order_shipment_out_for_delivery";
|
|
2233
|
+
data: {
|
|
2234
|
+
shipment_id: string;
|
|
2235
|
+
};
|
|
2236
|
+
} | {
|
|
2237
|
+
action: "order_shipment_delivered";
|
|
2238
|
+
data: {
|
|
2239
|
+
shipment_id: string;
|
|
2240
|
+
};
|
|
2241
|
+
} | {
|
|
2242
|
+
action: "order_shipment_failed";
|
|
2243
|
+
data: {
|
|
2244
|
+
shipment_id: string;
|
|
2245
|
+
reason?: string;
|
|
2246
|
+
};
|
|
2247
|
+
} | {
|
|
2248
|
+
action: "order_shipment_returned";
|
|
2249
|
+
data: {
|
|
2250
|
+
shipment_id: string;
|
|
2251
|
+
};
|
|
2252
|
+
} | {
|
|
2253
|
+
action: "order_shipment_status_changed";
|
|
2254
|
+
data: {
|
|
2255
|
+
shipment_id: string;
|
|
2256
|
+
from: string;
|
|
2257
|
+
to: string;
|
|
2258
|
+
};
|
|
2259
|
+
} | {
|
|
2260
|
+
action: "product_created";
|
|
2261
|
+
} | {
|
|
2262
|
+
action: "product_updated";
|
|
2263
|
+
} | {
|
|
2264
|
+
action: "product_deleted";
|
|
2265
|
+
} | {
|
|
2266
|
+
action: "collection_created";
|
|
2267
|
+
} | {
|
|
2268
|
+
action: "collection_updated";
|
|
2269
|
+
} | {
|
|
2270
|
+
action: "collection_deleted";
|
|
2271
|
+
} | {
|
|
2272
|
+
action: "entry_created";
|
|
2273
|
+
} | {
|
|
2274
|
+
action: "entry_updated";
|
|
2275
|
+
} | {
|
|
2276
|
+
action: "entry_deleted";
|
|
2277
|
+
} | {
|
|
2278
|
+
action: "provider_created";
|
|
2279
|
+
} | {
|
|
2280
|
+
action: "provider_updated";
|
|
2281
|
+
} | {
|
|
2282
|
+
action: "provider_deleted";
|
|
2283
|
+
} | {
|
|
2284
|
+
action: "service_created";
|
|
2285
|
+
} | {
|
|
2286
|
+
action: "service_updated";
|
|
2287
|
+
} | {
|
|
2288
|
+
action: "service_deleted";
|
|
2289
|
+
} | {
|
|
2290
|
+
action: "account_created";
|
|
2291
|
+
} | {
|
|
2292
|
+
action: "account_updated";
|
|
2293
|
+
} | {
|
|
2294
|
+
action: "account_deleted";
|
|
2295
|
+
} | {
|
|
2296
|
+
action: "media_created";
|
|
2297
|
+
} | {
|
|
2298
|
+
action: "media_deleted";
|
|
2299
|
+
} | {
|
|
2300
|
+
action: "store_created";
|
|
2301
|
+
} | {
|
|
2302
|
+
action: "store_updated";
|
|
2303
|
+
} | {
|
|
2304
|
+
action: "store_deleted";
|
|
2305
|
+
} | {
|
|
2306
|
+
action: "contact_list_created";
|
|
2307
|
+
} | {
|
|
2308
|
+
action: "contact_list_updated";
|
|
2309
|
+
} | {
|
|
2310
|
+
action: "contact_list_contact_added";
|
|
2311
|
+
} | {
|
|
2312
|
+
action: "contact_list_contact_removed";
|
|
2313
|
+
} | {
|
|
2314
|
+
action: "contact_list_contact_pending";
|
|
2315
|
+
} | {
|
|
2316
|
+
action: "contact_list_contact_confirmed";
|
|
2317
|
+
} | {
|
|
2318
|
+
action: "contact_list_contact_cancelled";
|
|
2319
|
+
};
|
|
2320
|
+
interface Event {
|
|
2321
|
+
id: string;
|
|
2322
|
+
entity: string;
|
|
2323
|
+
event: EventAction;
|
|
2324
|
+
actor: string;
|
|
2325
|
+
created_at: number;
|
|
2326
|
+
}
|
|
2327
|
+
type ShippingStatus = "pending" | "label_created" | "in_transit" | "out_for_delivery" | "delivered" | "failed" | "returned";
|
|
2328
|
+
interface OrderShipping {
|
|
2329
|
+
carrier: string;
|
|
2330
|
+
service: string;
|
|
2331
|
+
tracking_number?: string | null;
|
|
2332
|
+
tracking_url?: string | null;
|
|
2333
|
+
label_url?: string | null;
|
|
2334
|
+
status: ShippingStatus;
|
|
2335
|
+
}
|
|
2336
|
+
interface ShipmentLine {
|
|
2337
|
+
order_item_id: string;
|
|
2338
|
+
fulfillment_order_line_id?: string | null;
|
|
2339
|
+
quantity: number;
|
|
2340
|
+
}
|
|
2341
|
+
type ShippingLabelPurchaseStatus = "requested" | "merchant_recovery_processing" | "merchant_recovery_succeeded" | "merchant_recovery_failed" | "label_purchase_processing" | "purchased" | "label_purchase_failed" | "merchant_credit_processing" | "failed_merchant_credited" | "merchant_credit_failed" | "unknown";
|
|
2342
|
+
type MerchantRecoveryStatus = "processing" | "succeeded" | "failed" | "unknown";
|
|
2343
|
+
type MerchantCreditStatus = "processing" | "succeeded" | "failed" | "unknown";
|
|
2344
|
+
type ShippingLabelPurchaseError = {
|
|
2345
|
+
type: "provider_rejected";
|
|
2346
|
+
message: string;
|
|
2347
|
+
provider_code?: string | null;
|
|
2348
|
+
provider_status?: number | null;
|
|
2349
|
+
at: number;
|
|
2350
|
+
} | {
|
|
2351
|
+
type: "unknown_outcome";
|
|
2352
|
+
message: string;
|
|
2353
|
+
at: number;
|
|
2354
|
+
} | {
|
|
2355
|
+
type: "missing_configuration";
|
|
2356
|
+
message: string;
|
|
2357
|
+
at: number;
|
|
2358
|
+
};
|
|
2359
|
+
type MerchantRecovery = {
|
|
2360
|
+
type: "stripe_connect_account_debit";
|
|
2361
|
+
payment_provider_id: string;
|
|
2362
|
+
connected_account_id: string;
|
|
2363
|
+
stripe_payment_id?: string | null;
|
|
2364
|
+
amount: number;
|
|
2365
|
+
currency: string;
|
|
2366
|
+
status: MerchantRecoveryStatus;
|
|
2367
|
+
error?: ShippingLabelPurchaseError | null;
|
|
2368
|
+
};
|
|
2369
|
+
type MerchantCreditReason = "shipping_label_purchase_failed" | "shipping_label_refund_succeeded" | "shipping_label_negative_adjustment";
|
|
2370
|
+
type MerchantCredit = {
|
|
2371
|
+
type: "stripe_connect_transfer";
|
|
2372
|
+
payment_provider_id: string;
|
|
2373
|
+
connected_account_id: string;
|
|
2374
|
+
stripe_transfer_id?: string | null;
|
|
2375
|
+
amount: number;
|
|
2376
|
+
currency: string;
|
|
2377
|
+
reason: MerchantCreditReason;
|
|
2378
|
+
status: MerchantCreditStatus;
|
|
2379
|
+
error?: ShippingLabelPurchaseError | null;
|
|
2380
|
+
};
|
|
2381
|
+
type ShippingLabelProviderPurchase = {
|
|
2382
|
+
type: "shippo";
|
|
2383
|
+
transaction_id?: string | null;
|
|
2384
|
+
rate_id: string;
|
|
2385
|
+
tracking_number?: string | null;
|
|
2386
|
+
tracking_url?: string | null;
|
|
2387
|
+
label_url?: string | null;
|
|
2388
|
+
carrier?: string | null;
|
|
2389
|
+
service?: string | null;
|
|
2390
|
+
};
|
|
2391
|
+
type ShippingLabelRefundStatus = "requested" | "provider_pending" | "provider_rejected" | "merchant_credit_processing" | "succeeded" | "merchant_credit_failed" | "unknown";
|
|
2392
|
+
type ShippingLabelProviderRefund = {
|
|
2393
|
+
type: "shippo";
|
|
2394
|
+
refund_id?: string | null;
|
|
2395
|
+
transaction_id: string;
|
|
2396
|
+
status: string;
|
|
2397
|
+
};
|
|
2398
|
+
interface ShippingLabelRefund {
|
|
2399
|
+
id: string;
|
|
2400
|
+
status: ShippingLabelRefundStatus;
|
|
2401
|
+
requested_amount?: number | null;
|
|
2402
|
+
approved_amount?: number | null;
|
|
2403
|
+
currency?: string | null;
|
|
2404
|
+
provider_refund?: ShippingLabelProviderRefund | null;
|
|
2405
|
+
merchant_credit?: MerchantCredit | null;
|
|
2406
|
+
error?: ShippingLabelPurchaseError | null;
|
|
2407
|
+
requested_at: number;
|
|
2408
|
+
updated_at: number;
|
|
2409
|
+
}
|
|
2410
|
+
type ShippingLabelAdjustmentStatus = "requested" | "merchant_recovery_processing" | "merchant_recovery_succeeded" | "merchant_recovery_failed" | "merchant_credit_processing" | "merchant_credit_succeeded" | "merchant_credit_failed" | "unknown";
|
|
2411
|
+
interface ShippingLabelAdjustment {
|
|
2412
|
+
id: string;
|
|
2413
|
+
provider_adjustment_id?: string | null;
|
|
2414
|
+
amount: number;
|
|
2415
|
+
currency: string;
|
|
2416
|
+
reason: string;
|
|
2417
|
+
status: ShippingLabelAdjustmentStatus;
|
|
2418
|
+
merchant_recovery?: MerchantRecovery | null;
|
|
2419
|
+
merchant_credit?: MerchantCredit | null;
|
|
2420
|
+
error?: ShippingLabelPurchaseError | null;
|
|
2421
|
+
created_at: number;
|
|
2422
|
+
updated_at: number;
|
|
2423
|
+
}
|
|
2424
|
+
interface ShippingLabelPurchase {
|
|
2425
|
+
id: string;
|
|
2426
|
+
rate_id: string;
|
|
2427
|
+
status: ShippingLabelPurchaseStatus;
|
|
2428
|
+
postage_amount?: number | null;
|
|
2429
|
+
fee_amount: number;
|
|
2430
|
+
total_amount?: number | null;
|
|
2431
|
+
currency?: string | null;
|
|
2432
|
+
provider_purchase?: ShippingLabelProviderPurchase | null;
|
|
2433
|
+
merchant_recovery?: MerchantRecovery | null;
|
|
2434
|
+
merchant_credit?: MerchantCredit | null;
|
|
2435
|
+
refund?: ShippingLabelRefund | null;
|
|
2436
|
+
adjustments: ShippingLabelAdjustment[];
|
|
2437
|
+
error?: ShippingLabelPurchaseError | null;
|
|
2438
|
+
created_at: number;
|
|
2439
|
+
updated_at: number;
|
|
2440
|
+
}
|
|
2441
|
+
interface Shipment {
|
|
2442
|
+
id: string;
|
|
2443
|
+
fulfillment_order_id?: string | null;
|
|
2444
|
+
location_id: string;
|
|
2445
|
+
rate_id?: string | null;
|
|
2446
|
+
lines: ShipmentLine[];
|
|
2447
|
+
carrier?: string | null;
|
|
2448
|
+
service?: string | null;
|
|
2449
|
+
tracking_number?: string | null;
|
|
2450
|
+
tracking_url?: string | null;
|
|
2451
|
+
label_url?: string | null;
|
|
2452
|
+
status: ShippingStatus;
|
|
2453
|
+
shipping_label_purchase?: ShippingLabelPurchase | null;
|
|
2454
|
+
created_at: number;
|
|
2455
|
+
updated_at: number;
|
|
2456
|
+
}
|
|
2457
|
+
interface ShippingRate {
|
|
2458
|
+
id: string;
|
|
2459
|
+
carrier: string;
|
|
2460
|
+
service: string;
|
|
2461
|
+
display_name: string;
|
|
2462
|
+
amount: number;
|
|
2463
|
+
currency: string;
|
|
2464
|
+
estimated_days?: number | null;
|
|
2465
|
+
}
|
|
2466
|
+
interface Parcel {
|
|
2467
|
+
length: number;
|
|
2468
|
+
width: number;
|
|
2469
|
+
height: number;
|
|
2470
|
+
weight: number;
|
|
2471
|
+
distance_unit: "in" | "cm";
|
|
2472
|
+
mass_unit: "oz" | "lb" | "g" | "kg";
|
|
2473
|
+
}
|
|
2474
|
+
interface PurchaseLabelResult {
|
|
2475
|
+
transaction_id?: string | null;
|
|
2476
|
+
tracking_number: string;
|
|
2477
|
+
tracking_url?: string | null;
|
|
2478
|
+
label_url: string;
|
|
2479
|
+
carrier: string;
|
|
2480
|
+
service: string;
|
|
2481
|
+
postage_amount?: number | null;
|
|
2482
|
+
postage_currency?: string | null;
|
|
2483
|
+
}
|
|
2484
|
+
interface ShipResult {
|
|
2485
|
+
shipment_id: string;
|
|
2486
|
+
tracking_number?: string | null;
|
|
2487
|
+
tracking_url?: string | null;
|
|
2488
|
+
label_url?: string | null;
|
|
2489
|
+
}
|
|
2490
|
+
interface CustomsItem {
|
|
2491
|
+
description: string;
|
|
2492
|
+
quantity: number;
|
|
2493
|
+
net_weight: string;
|
|
2494
|
+
mass_unit: string;
|
|
2495
|
+
value_amount: string;
|
|
2496
|
+
value_currency: string;
|
|
2497
|
+
origin_country: string;
|
|
2498
|
+
tariff_number?: string | null;
|
|
2499
|
+
}
|
|
2500
|
+
interface CustomsDeclaration {
|
|
2501
|
+
contents_type: string;
|
|
2502
|
+
contents_explanation?: string | null;
|
|
2503
|
+
non_delivery_option: string;
|
|
2504
|
+
certify: boolean;
|
|
2505
|
+
certify_signer: string;
|
|
2506
|
+
items: CustomsItem[];
|
|
2507
|
+
}
|
|
2508
|
+
interface PromoCode {
|
|
2509
|
+
id: string;
|
|
2510
|
+
store_id: string;
|
|
2511
|
+
code: string;
|
|
2512
|
+
discounts: Discount[];
|
|
2513
|
+
conditions: Condition[];
|
|
2514
|
+
status: PromoCodeStatus;
|
|
2515
|
+
uses: number;
|
|
2516
|
+
created_at: number;
|
|
2517
|
+
updated_at: number;
|
|
2518
|
+
}
|
|
2519
|
+
|
|
2520
|
+
interface CreateLocationParams {
|
|
2521
|
+
key: string;
|
|
2522
|
+
address: Address;
|
|
2523
|
+
is_pickup_location?: boolean;
|
|
2524
|
+
}
|
|
2525
|
+
interface UpdateLocationParams {
|
|
2526
|
+
id: string;
|
|
2527
|
+
key: string;
|
|
2528
|
+
address: Address;
|
|
2529
|
+
is_pickup_location?: boolean;
|
|
2530
|
+
}
|
|
2531
|
+
interface DeleteLocationParams {
|
|
2532
|
+
id: string;
|
|
2533
|
+
}
|
|
2534
|
+
interface CreateMarketParams {
|
|
2535
|
+
key: string;
|
|
2536
|
+
currency: string;
|
|
2537
|
+
tax_mode: "inclusive" | "exclusive";
|
|
2538
|
+
payment_methods?: PaymentMethod[];
|
|
2539
|
+
zones?: Zone[];
|
|
2540
|
+
}
|
|
2541
|
+
interface UpdateMarketParams {
|
|
2542
|
+
id: string;
|
|
2543
|
+
key?: string;
|
|
2544
|
+
currency?: string;
|
|
2545
|
+
tax_mode?: "inclusive" | "exclusive";
|
|
2546
|
+
payment_methods?: PaymentMethod[];
|
|
2547
|
+
zones?: Zone[];
|
|
2548
|
+
}
|
|
2549
|
+
interface DeleteMarketParams {
|
|
2550
|
+
id: string;
|
|
2551
|
+
}
|
|
2552
|
+
interface RequestOptions<T = any> {
|
|
2553
|
+
headers?: Record<string, string>;
|
|
2554
|
+
params?: Record<string, any>;
|
|
2555
|
+
signal?: AbortSignal;
|
|
2556
|
+
transformRequest?: (data: any) => any;
|
|
2557
|
+
onSuccess?: (ctx: {
|
|
2558
|
+
data: T;
|
|
2559
|
+
method: string;
|
|
2560
|
+
url: string;
|
|
2561
|
+
status: number;
|
|
2562
|
+
request?: any;
|
|
2563
|
+
duration_ms?: number;
|
|
2564
|
+
request_id?: string | null;
|
|
2565
|
+
}) => void | Promise<void>;
|
|
2566
|
+
onError?: (ctx: {
|
|
2567
|
+
error: any;
|
|
2568
|
+
method: string;
|
|
2569
|
+
url: string;
|
|
2570
|
+
status?: number;
|
|
2571
|
+
request?: any;
|
|
2572
|
+
response?: any;
|
|
2573
|
+
duration_ms?: number;
|
|
2574
|
+
request_id?: string | null;
|
|
2575
|
+
aborted?: boolean;
|
|
2576
|
+
}) => void | Promise<void>;
|
|
2577
|
+
}
|
|
2578
|
+
interface EshopItem {
|
|
2579
|
+
product_id: string;
|
|
2580
|
+
variant_id: string;
|
|
2581
|
+
quantity: number;
|
|
2582
|
+
}
|
|
2583
|
+
interface EshopQuoteItem {
|
|
2584
|
+
product_id: string;
|
|
2585
|
+
variant_id: string;
|
|
2586
|
+
quantity: number;
|
|
2587
|
+
price?: Price;
|
|
2588
|
+
}
|
|
2589
|
+
interface SlotRange {
|
|
2590
|
+
from: number;
|
|
2591
|
+
to: number;
|
|
2592
|
+
}
|
|
2593
|
+
interface ServiceQuoteItem {
|
|
2594
|
+
service_id: string;
|
|
2595
|
+
provider_id: string;
|
|
2596
|
+
slots: SlotRange[];
|
|
2597
|
+
forms?: FormEntry[];
|
|
2598
|
+
price?: Price;
|
|
2599
|
+
}
|
|
2600
|
+
interface ServiceCheckoutPart {
|
|
2601
|
+
service_id: string;
|
|
2602
|
+
provider_id: string;
|
|
2603
|
+
slots: SlotRange[];
|
|
2604
|
+
forms: FormEntry[];
|
|
2605
|
+
}
|
|
2606
|
+
interface ProductQuoteItemInput extends EshopQuoteItem {
|
|
2607
|
+
type: "product";
|
|
2608
|
+
}
|
|
2609
|
+
interface ServiceQuoteItemInput extends ServiceQuoteItem {
|
|
2610
|
+
type: "service";
|
|
2611
|
+
}
|
|
2612
|
+
type OrderQuoteItemInput = ProductQuoteItemInput | ServiceQuoteItemInput;
|
|
2613
|
+
type OrderQuoteCompatibleItemInput = OrderQuoteItemInput | EshopQuoteItem | ServiceQuoteItem;
|
|
2614
|
+
interface ProductCheckoutItemInput extends EshopItem {
|
|
2615
|
+
type: "product";
|
|
2616
|
+
id?: string;
|
|
2617
|
+
}
|
|
2618
|
+
interface ServiceCheckoutItemInput {
|
|
2619
|
+
type: "service";
|
|
2620
|
+
id?: string;
|
|
2621
|
+
service_id: string;
|
|
2622
|
+
provider_id: string;
|
|
2623
|
+
slots: SlotRange[];
|
|
2624
|
+
forms?: FormEntry[];
|
|
2625
|
+
}
|
|
2626
|
+
type OrderCheckoutItemInput = ProductCheckoutItemInput | ServiceCheckoutItemInput;
|
|
2627
|
+
type OrderCheckoutCompatibleItemInput = OrderCheckoutItemInput | EshopItem | ServiceCheckoutPart;
|
|
2628
|
+
interface TrustedProductCheckoutItemInput extends ProductCheckoutItemInput {
|
|
2629
|
+
price?: Price;
|
|
2630
|
+
}
|
|
2631
|
+
interface TrustedServiceCheckoutItemInput extends ServiceCheckoutItemInput {
|
|
2632
|
+
price?: Price;
|
|
2633
|
+
}
|
|
2634
|
+
type TrustedOrderCheckoutItemInput = TrustedProductCheckoutItemInput | TrustedServiceCheckoutItemInput;
|
|
2635
|
+
type TrustedOrderCheckoutCompatibleItemInput = TrustedOrderCheckoutItemInput | EshopItem | ServiceCheckoutPart;
|
|
2636
|
+
interface GetQuoteParams {
|
|
2637
|
+
store_id?: string;
|
|
2638
|
+
market?: string;
|
|
2639
|
+
items: OrderQuoteCompatibleItemInput[];
|
|
2640
|
+
shipping_address?: Address;
|
|
2641
|
+
billing_address?: Address;
|
|
2642
|
+
forms?: FormEntry[];
|
|
2643
|
+
payment_method_key?: string;
|
|
2644
|
+
promo_code?: string;
|
|
2645
|
+
shipping_method_id?: string;
|
|
2646
|
+
location?: ZoneLocation;
|
|
2647
|
+
}
|
|
2648
|
+
interface OrderCheckoutParams {
|
|
2649
|
+
store_id?: string;
|
|
2650
|
+
market?: string;
|
|
2651
|
+
items: OrderCheckoutCompatibleItemInput[];
|
|
2652
|
+
payment_method_key?: string;
|
|
2653
|
+
shipping_address?: Address;
|
|
2654
|
+
billing_address?: Address;
|
|
2655
|
+
forms?: FormEntry[];
|
|
2656
|
+
promo_code_id?: string;
|
|
2657
|
+
shipping_method_id?: string;
|
|
2658
|
+
}
|
|
2659
|
+
interface GetCurrentCartParams {
|
|
2660
|
+
store_id?: string;
|
|
2661
|
+
market?: string;
|
|
2662
|
+
}
|
|
2663
|
+
interface GetCartParams {
|
|
2664
|
+
id: string;
|
|
2665
|
+
store_id?: string;
|
|
2666
|
+
token?: string;
|
|
2667
|
+
}
|
|
2668
|
+
interface FindCartsParams {
|
|
2669
|
+
store_id?: string;
|
|
2670
|
+
contact_id?: string;
|
|
2671
|
+
statuses?: CartStatus[];
|
|
2672
|
+
origins?: CartOrigin[];
|
|
2673
|
+
has_items?: boolean;
|
|
2674
|
+
limit?: number;
|
|
2675
|
+
cursor?: string;
|
|
2676
|
+
}
|
|
2677
|
+
interface CreateCartParams {
|
|
2678
|
+
store_id?: string;
|
|
2679
|
+
contact_id: string;
|
|
2680
|
+
market: string;
|
|
2681
|
+
items?: TrustedOrderCheckoutCompatibleItemInput[];
|
|
2682
|
+
shipping_address?: Address | null;
|
|
2683
|
+
billing_address?: Address | null;
|
|
2684
|
+
forms?: FormEntry[];
|
|
2685
|
+
promo_code?: string | null;
|
|
2686
|
+
payment_method_key?: string | null;
|
|
2687
|
+
shipping_method_id?: string | null;
|
|
2688
|
+
}
|
|
2689
|
+
interface UpdateCartParams {
|
|
2690
|
+
id: string;
|
|
2691
|
+
store_id?: string;
|
|
2692
|
+
market?: string;
|
|
2693
|
+
items?: OrderCheckoutCompatibleItemInput[];
|
|
2694
|
+
shipping_address?: Address;
|
|
2695
|
+
billing_address?: Address;
|
|
2696
|
+
forms?: FormEntry[];
|
|
2697
|
+
promo_code?: string;
|
|
2698
|
+
payment_method_key?: string;
|
|
2699
|
+
shipping_method_id?: string;
|
|
2700
|
+
}
|
|
2701
|
+
interface AddCartItemParams {
|
|
2702
|
+
id: string;
|
|
2703
|
+
store_id?: string;
|
|
2704
|
+
item: OrderCheckoutCompatibleItemInput;
|
|
2705
|
+
}
|
|
2706
|
+
interface RemoveCartItemParams {
|
|
2707
|
+
id: string;
|
|
2708
|
+
store_id?: string;
|
|
2709
|
+
item_id?: string;
|
|
2710
|
+
product_id?: string;
|
|
2711
|
+
variant_id?: string;
|
|
2712
|
+
}
|
|
2713
|
+
interface ClearCartParams {
|
|
2714
|
+
id: string;
|
|
2715
|
+
store_id?: string;
|
|
2716
|
+
}
|
|
2717
|
+
interface QuoteCartParams {
|
|
2718
|
+
id: string;
|
|
2719
|
+
store_id?: string;
|
|
2720
|
+
}
|
|
2721
|
+
interface CheckoutCartParams {
|
|
2722
|
+
id: string;
|
|
2723
|
+
store_id?: string;
|
|
2724
|
+
payment_method_key?: string;
|
|
2725
|
+
confirmation_token_id?: string;
|
|
2726
|
+
return_url?: string;
|
|
2727
|
+
}
|
|
2728
|
+
interface GetProductsParams {
|
|
2729
|
+
store_id?: string;
|
|
2730
|
+
ids?: string[];
|
|
2731
|
+
taxonomy_query?: TaxonomyQuery[];
|
|
2732
|
+
match_all?: boolean;
|
|
2733
|
+
status?: ProductStatus;
|
|
2734
|
+
query?: string | number;
|
|
2735
|
+
limit?: number;
|
|
2736
|
+
cursor?: string;
|
|
2737
|
+
sort_field?: string;
|
|
2738
|
+
sort_direction?: "asc" | "desc";
|
|
2739
|
+
created_at_from?: number | null;
|
|
2740
|
+
created_at_to?: number | null;
|
|
2741
|
+
}
|
|
2742
|
+
interface GetCollectionsParams {
|
|
2743
|
+
store_id?: string;
|
|
2744
|
+
ids?: string[];
|
|
2745
|
+
key?: string;
|
|
2746
|
+
limit?: number;
|
|
2747
|
+
cursor?: string;
|
|
2748
|
+
query?: string | number;
|
|
2749
|
+
status?: CollectionStatus;
|
|
2750
|
+
sort_field?: string;
|
|
2751
|
+
sort_direction?: "asc" | "desc";
|
|
2752
|
+
created_at_from?: number;
|
|
2753
|
+
created_at_to?: number;
|
|
2754
|
+
}
|
|
2755
|
+
interface CreateCollectionParams {
|
|
2756
|
+
store_id?: string;
|
|
2757
|
+
key: string;
|
|
2758
|
+
schema?: BlockSchema[];
|
|
2759
|
+
blocks?: Block[];
|
|
2760
|
+
}
|
|
2761
|
+
interface UpdateCollectionParams {
|
|
2762
|
+
id: string;
|
|
2763
|
+
store_id?: string;
|
|
2764
|
+
key?: string;
|
|
2765
|
+
schema?: BlockSchema[];
|
|
2766
|
+
blocks?: Block[];
|
|
2767
|
+
status?: CollectionStatus;
|
|
2768
|
+
}
|
|
2769
|
+
interface GetCollectionParams {
|
|
2770
|
+
id?: string;
|
|
2771
|
+
key?: string;
|
|
2772
|
+
store_id?: string;
|
|
2773
|
+
}
|
|
2774
|
+
interface DeleteCollectionParams {
|
|
2775
|
+
id: string;
|
|
2776
|
+
store_id?: string;
|
|
2777
|
+
}
|
|
2778
|
+
interface GetEntriesParams {
|
|
2779
|
+
store_id?: string;
|
|
2780
|
+
collection_id: string;
|
|
2781
|
+
ids?: string[];
|
|
2782
|
+
key?: string;
|
|
2783
|
+
status?: EntryStatus;
|
|
2784
|
+
query?: string | number;
|
|
2785
|
+
filters?: EntryBlockQuery[];
|
|
2786
|
+
limit?: number;
|
|
2787
|
+
cursor?: string;
|
|
2788
|
+
sort_field?: string;
|
|
2789
|
+
sort_direction?: "asc" | "desc";
|
|
2790
|
+
created_at_from?: number;
|
|
2791
|
+
created_at_to?: number;
|
|
2792
|
+
}
|
|
2793
|
+
interface CreateEntryParams {
|
|
2794
|
+
store_id?: string;
|
|
2795
|
+
collection_id: string;
|
|
2796
|
+
key: string;
|
|
2797
|
+
slug?: Record<string, string>;
|
|
2798
|
+
blocks?: Block[];
|
|
2799
|
+
}
|
|
2800
|
+
interface UpdateEntryParams {
|
|
2801
|
+
id: string;
|
|
2802
|
+
store_id?: string;
|
|
2803
|
+
key?: string;
|
|
2804
|
+
slug?: Record<string, string>;
|
|
2805
|
+
blocks?: Block[];
|
|
2806
|
+
status?: EntryStatus;
|
|
2807
|
+
}
|
|
2808
|
+
interface GetEntryParams {
|
|
2809
|
+
id?: string;
|
|
2810
|
+
store_id?: string;
|
|
2811
|
+
}
|
|
2812
|
+
interface DeleteEntryParams {
|
|
2813
|
+
id: string;
|
|
2814
|
+
store_id?: string;
|
|
2815
|
+
}
|
|
2816
|
+
interface UploadStoreMediaParams {
|
|
2817
|
+
store_id?: string;
|
|
2818
|
+
files?: File[];
|
|
2819
|
+
urls?: string[];
|
|
2820
|
+
}
|
|
2821
|
+
interface DeleteStoreMediaParams {
|
|
2822
|
+
id: string;
|
|
2823
|
+
media_id: string;
|
|
2824
|
+
}
|
|
2825
|
+
interface GetMediaParams {
|
|
2826
|
+
media_id: string;
|
|
2827
|
+
store_id?: string;
|
|
2828
|
+
}
|
|
2829
|
+
interface UpdateMediaParams {
|
|
2830
|
+
media_id: string;
|
|
2831
|
+
store_id?: string;
|
|
2832
|
+
slug?: Record<string, string>;
|
|
2833
|
+
}
|
|
2834
|
+
interface GetStoreMediaParams {
|
|
2835
|
+
store_id?: string;
|
|
2836
|
+
cursor?: string | null;
|
|
2837
|
+
limit: number;
|
|
2838
|
+
ids?: string[];
|
|
2839
|
+
query?: string;
|
|
2840
|
+
mime_type?: string;
|
|
2841
|
+
sort_field?: string;
|
|
2842
|
+
sort_direction?: "asc" | "desc";
|
|
2843
|
+
}
|
|
2844
|
+
interface LoginAccountParams {
|
|
2845
|
+
email?: string;
|
|
2846
|
+
provider: string;
|
|
2847
|
+
token?: string;
|
|
2848
|
+
}
|
|
2849
|
+
interface MagicLinkVerifyParams {
|
|
2850
|
+
email: string;
|
|
2851
|
+
code: string;
|
|
2852
|
+
}
|
|
2853
|
+
interface GetServicesParams {
|
|
2854
|
+
store_id?: string;
|
|
2855
|
+
ids?: string[];
|
|
2856
|
+
provider_id?: string;
|
|
2857
|
+
limit?: number;
|
|
2858
|
+
cursor?: string;
|
|
2859
|
+
query?: string | number;
|
|
2860
|
+
status?: ServiceStatus;
|
|
2861
|
+
sort_field?: string;
|
|
2862
|
+
sort_direction?: "asc" | "desc";
|
|
2863
|
+
created_at_from?: number;
|
|
2864
|
+
created_at_to?: number;
|
|
2865
|
+
taxonomy_query?: TaxonomyQuery[];
|
|
2866
|
+
match_all?: boolean;
|
|
2867
|
+
from?: number;
|
|
2868
|
+
to?: number;
|
|
2869
|
+
}
|
|
2870
|
+
interface TimelinePoint {
|
|
2871
|
+
timestamp: number;
|
|
2872
|
+
booked: number;
|
|
2873
|
+
}
|
|
2874
|
+
interface ProviderWithTimeline {
|
|
2875
|
+
id: string;
|
|
2876
|
+
key: string;
|
|
2877
|
+
store_id: string;
|
|
2878
|
+
slug: Record<string, string>;
|
|
2879
|
+
status: ProviderStatus;
|
|
2880
|
+
blocks: Block[];
|
|
2881
|
+
taxonomies: TaxonomyEntry[];
|
|
2882
|
+
created_at: number;
|
|
2883
|
+
updated_at: number;
|
|
2884
|
+
working_days?: WorkingDay[];
|
|
2885
|
+
specific_dates?: SpecificDate[];
|
|
2886
|
+
timeline: TimelinePoint[];
|
|
2887
|
+
}
|
|
2888
|
+
interface GetAnalyticsParams {
|
|
2889
|
+
metrics?: string[];
|
|
2890
|
+
period?: string;
|
|
2891
|
+
start_date?: string;
|
|
2892
|
+
end_date?: string;
|
|
2893
|
+
interval?: string;
|
|
2894
|
+
}
|
|
2895
|
+
interface GetAnalyticsHealthParams {
|
|
2896
|
+
}
|
|
2897
|
+
interface TrackEmailOpenParams {
|
|
2898
|
+
tracking_pixel_id: string;
|
|
2899
|
+
}
|
|
2900
|
+
interface GetDeliveryStatsParams {
|
|
2901
|
+
}
|
|
2902
|
+
type StoreRole = "admin" | "owner" | "super";
|
|
2903
|
+
type Discount = {
|
|
2904
|
+
type: "items_percentage";
|
|
2905
|
+
market_id: string;
|
|
2906
|
+
bps: number;
|
|
2907
|
+
} | {
|
|
2908
|
+
type: "items_fixed";
|
|
2909
|
+
market_id: string;
|
|
2910
|
+
amount: number;
|
|
2911
|
+
} | {
|
|
2912
|
+
type: "shipping_percentage";
|
|
2913
|
+
market_id: string;
|
|
2914
|
+
bps: number;
|
|
2915
|
+
};
|
|
2916
|
+
type ConditionValue = {
|
|
2917
|
+
type: "ids";
|
|
2918
|
+
value: string[];
|
|
2919
|
+
} | {
|
|
2920
|
+
type: "amount";
|
|
2921
|
+
value: number;
|
|
2922
|
+
} | {
|
|
2923
|
+
type: "count";
|
|
2924
|
+
value: number;
|
|
2925
|
+
} | {
|
|
2926
|
+
type: "date_range";
|
|
2927
|
+
value: {
|
|
2928
|
+
start?: number;
|
|
2929
|
+
end?: number;
|
|
2930
|
+
};
|
|
2931
|
+
};
|
|
2932
|
+
interface Condition {
|
|
2933
|
+
type: "products" | "services" | "min_order_amount" | "date_range" | "max_uses" | "max_uses_per_user";
|
|
2934
|
+
value: ConditionValue;
|
|
2935
|
+
}
|
|
2936
|
+
interface CreatePromoCodeParams {
|
|
2937
|
+
store_id?: string;
|
|
2938
|
+
code: string;
|
|
2939
|
+
discounts: Discount[];
|
|
2940
|
+
conditions: Condition[];
|
|
2941
|
+
}
|
|
2942
|
+
interface UpdatePromoCodeParams {
|
|
2943
|
+
id: string;
|
|
2944
|
+
store_id?: string;
|
|
2945
|
+
code?: string;
|
|
2946
|
+
discounts?: Discount[];
|
|
2947
|
+
conditions?: Condition[];
|
|
2948
|
+
status?: PromoCodeStatus;
|
|
2949
|
+
}
|
|
2950
|
+
interface DeletePromoCodeParams {
|
|
2951
|
+
id: string;
|
|
2952
|
+
store_id?: string;
|
|
2953
|
+
}
|
|
2954
|
+
interface GetPromoCodeParams {
|
|
2955
|
+
id: string;
|
|
2956
|
+
store_id?: string;
|
|
2957
|
+
}
|
|
2958
|
+
interface GetPromoCodesParams {
|
|
2959
|
+
store_id?: string;
|
|
2960
|
+
ids?: string[];
|
|
2961
|
+
query?: string | number;
|
|
2962
|
+
status?: PromoCodeStatus;
|
|
2963
|
+
limit?: number;
|
|
2964
|
+
cursor?: string;
|
|
2965
|
+
sort_field?: string;
|
|
2966
|
+
sort_direction?: "asc" | "desc";
|
|
2967
|
+
created_at_from?: number;
|
|
2968
|
+
created_at_to?: number;
|
|
2969
|
+
starts_at_from?: number;
|
|
2970
|
+
starts_at_to?: number;
|
|
2971
|
+
expires_at_from?: number;
|
|
2972
|
+
expires_at_to?: number;
|
|
2973
|
+
}
|
|
2974
|
+
interface CreateStoreParams {
|
|
2975
|
+
key: string;
|
|
2976
|
+
timezone: string;
|
|
2977
|
+
billing_email: string;
|
|
2978
|
+
languages?: Language[];
|
|
2979
|
+
emails?: StoreEmails;
|
|
2980
|
+
}
|
|
2981
|
+
interface UpdateStoreParams {
|
|
2982
|
+
id: string;
|
|
2983
|
+
key?: string;
|
|
2984
|
+
timezone?: string;
|
|
2985
|
+
languages?: Language[];
|
|
2986
|
+
emails?: StoreEmails;
|
|
2987
|
+
}
|
|
2988
|
+
interface DeleteStoreParams {
|
|
2989
|
+
id: string;
|
|
2990
|
+
}
|
|
2991
|
+
interface GetStoreParams {
|
|
2992
|
+
}
|
|
2993
|
+
type SubscriptionAction = "select_plan" | "cancel_at_period_end" | "reactivate";
|
|
2994
|
+
interface SubscribeParams {
|
|
2995
|
+
store_id?: string;
|
|
2996
|
+
plan_id: string;
|
|
2997
|
+
action: SubscriptionAction;
|
|
2998
|
+
success_url: string;
|
|
2999
|
+
cancel_url: string;
|
|
3000
|
+
}
|
|
3001
|
+
interface CreatePortalSessionParams {
|
|
3002
|
+
store_id?: string;
|
|
3003
|
+
return_url: string;
|
|
3004
|
+
}
|
|
3005
|
+
interface AddMemberParams {
|
|
3006
|
+
email: string;
|
|
3007
|
+
role?: StoreRole;
|
|
3008
|
+
store_id?: string;
|
|
3009
|
+
}
|
|
3010
|
+
interface RemoveMemberParams {
|
|
3011
|
+
account_id: string;
|
|
3012
|
+
}
|
|
3013
|
+
interface TestWebhookParams {
|
|
3014
|
+
webhook: Webhook;
|
|
3015
|
+
}
|
|
3016
|
+
interface CreateProductVariantInput {
|
|
3017
|
+
sku?: string;
|
|
3018
|
+
prices: Price[];
|
|
3019
|
+
inventory: ProductInventory[];
|
|
3020
|
+
attributes: Block[];
|
|
3021
|
+
requires_shipping?: boolean;
|
|
3022
|
+
digital_delivery_policy?: DigitalDeliveryPolicy;
|
|
3023
|
+
digital_assets?: DigitalAsset[];
|
|
3024
|
+
download_limit?: number | null;
|
|
3025
|
+
access_expires_after_days?: number | null;
|
|
3026
|
+
tax_category_id?: string | null;
|
|
3027
|
+
weight?: number;
|
|
3028
|
+
}
|
|
3029
|
+
interface UpdateProductVariantInput {
|
|
3030
|
+
id: string;
|
|
3031
|
+
sku?: string | null;
|
|
3032
|
+
prices?: Price[];
|
|
3033
|
+
inventory?: ProductInventory[];
|
|
3034
|
+
attributes?: Block[];
|
|
3035
|
+
requires_shipping?: boolean;
|
|
3036
|
+
digital_delivery_policy?: DigitalDeliveryPolicy;
|
|
3037
|
+
digital_assets?: DigitalAsset[];
|
|
3038
|
+
download_limit?: number | null;
|
|
3039
|
+
access_expires_after_days?: number | null;
|
|
3040
|
+
tax_category_id?: string | null;
|
|
3041
|
+
weight?: number | null;
|
|
3042
|
+
}
|
|
3043
|
+
interface CreateProductParams {
|
|
3044
|
+
store_id?: string;
|
|
3045
|
+
key: string;
|
|
3046
|
+
slug?: Record<string, string>;
|
|
3047
|
+
blocks?: Block[];
|
|
3048
|
+
taxonomies?: TaxonomyEntry[];
|
|
3049
|
+
variants?: CreateProductVariantInput[];
|
|
3050
|
+
}
|
|
3051
|
+
interface UpdateProductParams {
|
|
3052
|
+
id: string;
|
|
3053
|
+
store_id?: string;
|
|
3054
|
+
key?: string;
|
|
3055
|
+
slug?: Record<string, string>;
|
|
3056
|
+
blocks?: Block[];
|
|
3057
|
+
taxonomies?: TaxonomyEntry[];
|
|
3058
|
+
variants?: UpdateProductVariantInput[];
|
|
3059
|
+
status?: ProductStatus;
|
|
3060
|
+
}
|
|
3061
|
+
interface DeleteProductParams {
|
|
3062
|
+
id: string;
|
|
3063
|
+
store_id?: string;
|
|
3064
|
+
}
|
|
3065
|
+
interface GetProductParams {
|
|
3066
|
+
id?: string;
|
|
3067
|
+
slug?: string;
|
|
3068
|
+
store_id?: string;
|
|
3069
|
+
}
|
|
3070
|
+
interface GetOrderParams {
|
|
3071
|
+
id: string;
|
|
3072
|
+
store_id?: string;
|
|
3073
|
+
}
|
|
3074
|
+
interface GetOrdersParams {
|
|
3075
|
+
store_id?: string;
|
|
3076
|
+
contact_id?: string;
|
|
3077
|
+
statuses?: string[];
|
|
3078
|
+
item_statuses?: string[];
|
|
3079
|
+
product_ids?: string[];
|
|
3080
|
+
service_ids?: string[];
|
|
3081
|
+
provider_ids?: string[];
|
|
3082
|
+
verified?: boolean;
|
|
3083
|
+
query?: string | number | null;
|
|
3084
|
+
limit?: number | null;
|
|
3085
|
+
cursor?: string | null;
|
|
3086
|
+
sort_field?: string | null;
|
|
3087
|
+
sort_direction?: "asc" | "desc" | null;
|
|
3088
|
+
created_at_from?: number | null;
|
|
3089
|
+
created_at_to?: number | null;
|
|
3090
|
+
contact_list_id?: string;
|
|
3091
|
+
}
|
|
3092
|
+
interface UpdateOrderParams {
|
|
3093
|
+
id: string;
|
|
3094
|
+
store_id?: string;
|
|
3095
|
+
confirm?: boolean;
|
|
3096
|
+
cancel?: boolean;
|
|
3097
|
+
shipping_address?: Address | null;
|
|
3098
|
+
billing_address?: Address | null;
|
|
3099
|
+
forms?: FormEntry[];
|
|
3100
|
+
items?: TrustedOrderCheckoutCompatibleItemInput[];
|
|
3101
|
+
payment?: OrderPayment;
|
|
3102
|
+
}
|
|
3103
|
+
interface CreateProviderParams {
|
|
3104
|
+
store_id?: string;
|
|
3105
|
+
key: string;
|
|
3106
|
+
slug?: Record<string, string>;
|
|
3107
|
+
status?: ProviderStatus;
|
|
3108
|
+
blocks?: Block[];
|
|
3109
|
+
taxonomies?: TaxonomyEntry[];
|
|
3110
|
+
}
|
|
3111
|
+
interface UpdateProviderParams {
|
|
3112
|
+
id: string;
|
|
3113
|
+
store_id?: string;
|
|
3114
|
+
key?: string;
|
|
3115
|
+
slug?: Record<string, string>;
|
|
3116
|
+
status?: ProviderStatus;
|
|
3117
|
+
blocks?: Block[];
|
|
3118
|
+
taxonomies?: TaxonomyEntry[];
|
|
3119
|
+
}
|
|
3120
|
+
interface DeleteProviderParams {
|
|
3121
|
+
id: string;
|
|
3122
|
+
store_id?: string;
|
|
3123
|
+
}
|
|
3124
|
+
interface ServiceProviderInput {
|
|
3125
|
+
provider_id: string;
|
|
3126
|
+
store_id?: string;
|
|
3127
|
+
prices?: Price[];
|
|
3128
|
+
durations?: ServiceDuration[];
|
|
3129
|
+
working_days: WorkingDay[];
|
|
3130
|
+
specific_dates: SpecificDate[];
|
|
3131
|
+
}
|
|
3132
|
+
interface CreateServiceParams {
|
|
3133
|
+
store_id?: string;
|
|
3134
|
+
key: string;
|
|
3135
|
+
slug?: Record<string, string>;
|
|
3136
|
+
blocks?: Block[];
|
|
3137
|
+
taxonomies?: TaxonomyEntry[];
|
|
3138
|
+
location?: ZoneLocation;
|
|
3139
|
+
status?: ServiceStatus;
|
|
3140
|
+
}
|
|
3141
|
+
interface UpdateServiceParams {
|
|
3142
|
+
id: string;
|
|
3143
|
+
store_id?: string;
|
|
3144
|
+
key?: string;
|
|
3145
|
+
slug?: Record<string, string>;
|
|
3146
|
+
blocks?: Block[];
|
|
3147
|
+
taxonomies?: TaxonomyEntry[];
|
|
3148
|
+
location?: ZoneLocation | null;
|
|
3149
|
+
status?: ServiceStatus;
|
|
3150
|
+
}
|
|
3151
|
+
interface CreateServiceProviderParams {
|
|
3152
|
+
store_id?: string;
|
|
3153
|
+
service_id: string;
|
|
3154
|
+
provider_id: string;
|
|
3155
|
+
working_days: WorkingDay[];
|
|
3156
|
+
specific_dates: SpecificDate[];
|
|
3157
|
+
prices?: Price[];
|
|
3158
|
+
durations?: ServiceDuration[];
|
|
3159
|
+
slot_interval: number;
|
|
3160
|
+
forms?: FormEntry[];
|
|
3161
|
+
reminders?: number[];
|
|
3162
|
+
min_advance?: number;
|
|
3163
|
+
max_advance?: number;
|
|
3164
|
+
}
|
|
3165
|
+
interface UpdateServiceProviderParams {
|
|
3166
|
+
store_id?: string;
|
|
3167
|
+
id: string;
|
|
3168
|
+
working_days?: WorkingDay[];
|
|
3169
|
+
specific_dates?: SpecificDate[];
|
|
3170
|
+
prices?: Price[];
|
|
3171
|
+
durations?: ServiceDuration[];
|
|
3172
|
+
slot_interval?: number;
|
|
3173
|
+
forms?: FormEntry[];
|
|
3174
|
+
reminders?: number[];
|
|
3175
|
+
min_advance?: number;
|
|
3176
|
+
max_advance?: number;
|
|
3177
|
+
}
|
|
3178
|
+
interface DeleteServiceProviderParams {
|
|
3179
|
+
store_id?: string;
|
|
3180
|
+
id: string;
|
|
3181
|
+
}
|
|
3182
|
+
interface FindServiceProvidersParams {
|
|
3183
|
+
store_id?: string;
|
|
3184
|
+
service_id?: string;
|
|
3185
|
+
provider_id?: string;
|
|
3186
|
+
}
|
|
3187
|
+
interface DeleteServiceParams {
|
|
3188
|
+
id: string;
|
|
3189
|
+
store_id?: string;
|
|
3190
|
+
}
|
|
3191
|
+
interface GetServiceParams {
|
|
3192
|
+
id?: string;
|
|
3193
|
+
slug?: string;
|
|
3194
|
+
store_id?: string;
|
|
3195
|
+
}
|
|
3196
|
+
interface GetProvidersParams {
|
|
3197
|
+
store_id?: string;
|
|
3198
|
+
service_id?: string;
|
|
3199
|
+
ids?: string[];
|
|
3200
|
+
taxonomy_query?: TaxonomyQuery[];
|
|
3201
|
+
match_all?: boolean;
|
|
3202
|
+
query?: string | number | null;
|
|
3203
|
+
status?: ProviderStatus;
|
|
3204
|
+
limit?: number;
|
|
3205
|
+
cursor?: string;
|
|
3206
|
+
sort_field?: string | null;
|
|
3207
|
+
sort_direction?: "asc" | "desc" | null;
|
|
3208
|
+
created_at_from?: number | null;
|
|
3209
|
+
created_at_to?: number | null;
|
|
3210
|
+
from?: number;
|
|
3211
|
+
to?: number;
|
|
3212
|
+
}
|
|
3213
|
+
interface GetProviderParams {
|
|
3214
|
+
id?: string;
|
|
3215
|
+
slug?: string;
|
|
3216
|
+
store_id?: string;
|
|
3217
|
+
}
|
|
3218
|
+
interface SearchOrderServiceItemsParams {
|
|
3219
|
+
store_id?: string;
|
|
3220
|
+
contact_id?: string;
|
|
3221
|
+
service_ids?: string[];
|
|
3222
|
+
provider_ids?: string[];
|
|
3223
|
+
from?: number;
|
|
3224
|
+
to?: number;
|
|
3225
|
+
item_statuses?: string[];
|
|
3226
|
+
sort_field?: string;
|
|
3227
|
+
sort_order?: string;
|
|
3228
|
+
limit?: number;
|
|
3229
|
+
cursor?: string;
|
|
3230
|
+
verified?: boolean;
|
|
3231
|
+
query?: string | number;
|
|
3232
|
+
contact_list_id?: string;
|
|
3233
|
+
}
|
|
3234
|
+
interface DownloadDigitalAccessParams {
|
|
3235
|
+
id: string;
|
|
3236
|
+
grant_id: string;
|
|
3237
|
+
store_id?: string;
|
|
3238
|
+
}
|
|
3239
|
+
interface AccountAddress {
|
|
3240
|
+
label?: string;
|
|
3241
|
+
address: Address;
|
|
3242
|
+
}
|
|
3243
|
+
interface AccountApiToken {
|
|
3244
|
+
id: string | null;
|
|
3245
|
+
value?: string;
|
|
3246
|
+
name?: string | null;
|
|
3247
|
+
created_at?: number;
|
|
3248
|
+
expires_at?: number | null;
|
|
3249
|
+
type?: string;
|
|
3250
|
+
}
|
|
3251
|
+
interface UpdateAccountContactParams {
|
|
3252
|
+
phone_numbers?: string[];
|
|
3253
|
+
addresses?: AccountAddress[];
|
|
3254
|
+
api_tokens?: AccountApiToken[] | null;
|
|
3255
|
+
}
|
|
3256
|
+
interface SearchAccountsParams {
|
|
3257
|
+
limit?: number;
|
|
3258
|
+
cursor?: string | null;
|
|
3259
|
+
query?: string | number;
|
|
3260
|
+
owner?: string;
|
|
3261
|
+
store_id?: string;
|
|
3262
|
+
sort_field?: string | null;
|
|
3263
|
+
sort_direction?: "asc" | "desc" | null;
|
|
3264
|
+
}
|
|
3265
|
+
interface DeleteAccountParams {
|
|
3266
|
+
}
|
|
3267
|
+
interface TriggerNotificationParams {
|
|
3268
|
+
channel: string;
|
|
3269
|
+
store_id: string;
|
|
3270
|
+
email_template_id: string;
|
|
3271
|
+
mailbox_id: string;
|
|
3272
|
+
recipients: string[];
|
|
3273
|
+
vars?: Record<string, any>;
|
|
3274
|
+
}
|
|
3275
|
+
interface GetEmailTemplatesParams {
|
|
3276
|
+
store_id?: string;
|
|
3277
|
+
ids?: string[];
|
|
3278
|
+
key?: string;
|
|
3279
|
+
limit?: number;
|
|
3280
|
+
cursor?: string;
|
|
3281
|
+
query?: string | number;
|
|
3282
|
+
status?: EmailTemplateStatus;
|
|
3283
|
+
sort_field?: string;
|
|
3284
|
+
sort_direction?: "asc" | "desc";
|
|
3285
|
+
created_at_from?: number;
|
|
3286
|
+
created_at_to?: number;
|
|
3287
|
+
}
|
|
3288
|
+
interface CreateEmailTemplateParams {
|
|
3289
|
+
store_id?: string;
|
|
3290
|
+
key: string;
|
|
3291
|
+
subject?: Record<string, string>;
|
|
3292
|
+
body?: string;
|
|
3293
|
+
from_name?: string;
|
|
3294
|
+
from_email?: string;
|
|
3295
|
+
reply_to?: string;
|
|
3296
|
+
preheader?: string;
|
|
3297
|
+
variables?: EmailTemplateVariable[];
|
|
3298
|
+
sample_data?: Record<string, unknown>;
|
|
3299
|
+
}
|
|
3300
|
+
interface UpdateEmailTemplateParams {
|
|
3301
|
+
id: string;
|
|
3302
|
+
store_id?: string;
|
|
3303
|
+
key?: string;
|
|
3304
|
+
subject?: Record<string, string>;
|
|
3305
|
+
body?: string;
|
|
3306
|
+
from_name?: string;
|
|
3307
|
+
from_email?: string;
|
|
3308
|
+
reply_to?: string;
|
|
3309
|
+
preheader?: string;
|
|
3310
|
+
variables?: EmailTemplateVariable[];
|
|
3311
|
+
sample_data?: Record<string, unknown>;
|
|
3312
|
+
status?: EmailTemplateStatus;
|
|
3313
|
+
}
|
|
3314
|
+
interface PreviewEmailTemplateParams {
|
|
3315
|
+
id: string;
|
|
3316
|
+
store_id?: string;
|
|
3317
|
+
subject?: Record<string, string>;
|
|
3318
|
+
body?: string;
|
|
3319
|
+
preheader?: string | null;
|
|
3320
|
+
vars?: Record<string, any>;
|
|
3321
|
+
}
|
|
3322
|
+
interface PreviewEmailTemplateWarning {
|
|
3323
|
+
kind: string;
|
|
3324
|
+
variable: string;
|
|
3325
|
+
message: string;
|
|
3326
|
+
}
|
|
3327
|
+
interface PreviewEmailTemplateResponse {
|
|
3328
|
+
subject: string;
|
|
3329
|
+
html: string;
|
|
3330
|
+
warnings: PreviewEmailTemplateWarning[];
|
|
3331
|
+
}
|
|
3332
|
+
interface GetEmailTemplateParams {
|
|
3333
|
+
id?: string;
|
|
3334
|
+
key?: string;
|
|
3335
|
+
store_id?: string;
|
|
3336
|
+
}
|
|
3337
|
+
interface DeleteEmailTemplateParams {
|
|
3338
|
+
id: string;
|
|
3339
|
+
store_id?: string;
|
|
3340
|
+
}
|
|
3341
|
+
interface GetFormsParams {
|
|
3342
|
+
store_id?: string;
|
|
3343
|
+
ids?: string[];
|
|
3344
|
+
key?: string;
|
|
3345
|
+
limit?: number;
|
|
3346
|
+
cursor?: string;
|
|
3347
|
+
query?: string | number;
|
|
3348
|
+
status?: FormStatus;
|
|
3349
|
+
sort_field?: string;
|
|
3350
|
+
sort_direction?: "asc" | "desc";
|
|
3351
|
+
created_at_from?: number;
|
|
3352
|
+
created_at_to?: number;
|
|
3353
|
+
}
|
|
3354
|
+
interface CreateFormParams {
|
|
3355
|
+
store_id?: string;
|
|
3356
|
+
key: string;
|
|
3357
|
+
schema?: FormSchema[];
|
|
3358
|
+
}
|
|
3359
|
+
interface UpdateFormParams {
|
|
3360
|
+
id: string;
|
|
3361
|
+
store_id?: string;
|
|
3362
|
+
key?: string;
|
|
3363
|
+
schema?: FormSchema[];
|
|
3364
|
+
status?: FormStatus;
|
|
3365
|
+
}
|
|
3366
|
+
interface GetFormParams {
|
|
3367
|
+
id?: string;
|
|
3368
|
+
key?: string;
|
|
3369
|
+
store_id?: string;
|
|
3370
|
+
}
|
|
3371
|
+
interface DeleteFormParams {
|
|
3372
|
+
id: string;
|
|
3373
|
+
store_id?: string;
|
|
3374
|
+
}
|
|
3375
|
+
interface SubmitFormParams {
|
|
3376
|
+
form_id: string;
|
|
3377
|
+
store_id?: string;
|
|
3378
|
+
fields: FormField[];
|
|
3379
|
+
}
|
|
3380
|
+
interface GetFormSubmissionsParams {
|
|
3381
|
+
form_ids?: string[];
|
|
3382
|
+
store_id?: string;
|
|
3383
|
+
contact_id?: string;
|
|
3384
|
+
query?: string | number;
|
|
3385
|
+
limit?: number;
|
|
3386
|
+
cursor?: string;
|
|
3387
|
+
sort_field?: string;
|
|
3388
|
+
sort_direction?: "asc" | "desc";
|
|
3389
|
+
created_at_from?: number;
|
|
3390
|
+
created_at_to?: number;
|
|
3391
|
+
}
|
|
3392
|
+
interface FindActionsParams {
|
|
3393
|
+
store_id?: string;
|
|
3394
|
+
query?: string | number;
|
|
3395
|
+
contact_id?: string;
|
|
3396
|
+
types?: string[];
|
|
3397
|
+
from?: number;
|
|
3398
|
+
to?: number;
|
|
3399
|
+
limit?: number;
|
|
3400
|
+
cursor?: string;
|
|
3401
|
+
}
|
|
3402
|
+
interface GetFormSubmissionParams {
|
|
3403
|
+
id: string;
|
|
3404
|
+
form_id: string;
|
|
3405
|
+
store_id?: string;
|
|
3406
|
+
}
|
|
3407
|
+
interface UpdateFormSubmissionParams {
|
|
3408
|
+
id: string;
|
|
3409
|
+
form_id: string;
|
|
3410
|
+
store_id?: string;
|
|
3411
|
+
fields: FormField[];
|
|
3412
|
+
}
|
|
3413
|
+
interface GetTaxonomiesParams {
|
|
3414
|
+
store_id?: string;
|
|
3415
|
+
parent_id?: string;
|
|
3416
|
+
ids?: string[];
|
|
3417
|
+
key?: string;
|
|
3418
|
+
limit?: number;
|
|
3419
|
+
cursor?: string;
|
|
3420
|
+
query?: string | number;
|
|
3421
|
+
status?: TaxonomyStatus;
|
|
3422
|
+
sort_field?: string;
|
|
3423
|
+
sort_direction?: "asc" | "desc";
|
|
3424
|
+
created_at_from?: number;
|
|
3425
|
+
created_at_to?: number;
|
|
3426
|
+
}
|
|
3427
|
+
interface CreateTaxonomyParams {
|
|
3428
|
+
store_id?: string;
|
|
3429
|
+
key: string;
|
|
3430
|
+
parent_id?: string | null;
|
|
3431
|
+
schema?: TaxonomySchema[];
|
|
3432
|
+
}
|
|
3433
|
+
interface UpdateTaxonomyParams {
|
|
3434
|
+
id: string;
|
|
3435
|
+
store_id?: string;
|
|
3436
|
+
key?: string;
|
|
3437
|
+
parent_id?: string | null;
|
|
3438
|
+
schema?: TaxonomySchema[];
|
|
3439
|
+
status?: TaxonomyStatus;
|
|
3440
|
+
}
|
|
3441
|
+
interface GetTaxonomyParams {
|
|
3442
|
+
id?: string;
|
|
3443
|
+
key?: string;
|
|
3444
|
+
store_id?: string;
|
|
3445
|
+
}
|
|
3446
|
+
interface DeleteTaxonomyParams {
|
|
3447
|
+
id: string;
|
|
3448
|
+
store_id?: string;
|
|
3449
|
+
}
|
|
3450
|
+
interface GetTaxonomyChildrenParams {
|
|
3451
|
+
id: string;
|
|
3452
|
+
store_id?: string;
|
|
3453
|
+
}
|
|
3454
|
+
interface GetMeParams {
|
|
3455
|
+
}
|
|
3456
|
+
interface LogoutParams {
|
|
3457
|
+
}
|
|
3458
|
+
interface GetStoresParams {
|
|
3459
|
+
query?: string | number;
|
|
3460
|
+
limit?: number;
|
|
3461
|
+
cursor?: string;
|
|
3462
|
+
sort_field?: string;
|
|
3463
|
+
sort_direction?: "asc" | "desc";
|
|
3464
|
+
}
|
|
3465
|
+
interface GetSubscriptionPlansParams {
|
|
3466
|
+
}
|
|
3467
|
+
interface SetupAnalyticsParams {
|
|
3468
|
+
store_id?: string;
|
|
3469
|
+
}
|
|
3470
|
+
interface FindStoreMediaParams {
|
|
3471
|
+
id: string;
|
|
3472
|
+
cursor?: string | null;
|
|
3473
|
+
limit: number;
|
|
3474
|
+
ids?: string[];
|
|
3475
|
+
query?: string | number;
|
|
3476
|
+
mime_type?: string;
|
|
3477
|
+
sort_field?: string;
|
|
3478
|
+
sort_direction?: "asc" | "desc";
|
|
3479
|
+
}
|
|
3480
|
+
interface ProcessOrderRefundParams {
|
|
3481
|
+
id: string;
|
|
3482
|
+
amount: number;
|
|
3483
|
+
}
|
|
3484
|
+
type RefundStatus = "requested" | "processing" | "succeeded" | "failed" | "unknown";
|
|
3485
|
+
interface ProcessOrderRefundResponse {
|
|
3486
|
+
refund_id: string;
|
|
3487
|
+
amount: number;
|
|
3488
|
+
status: RefundStatus;
|
|
3489
|
+
}
|
|
3490
|
+
type SystemTemplateKey = "system:order-status-update" | "system:user-confirmation" | "system:forgot-password";
|
|
3491
|
+
interface GetAvailabilityParams {
|
|
3492
|
+
store_id?: string;
|
|
3493
|
+
service_id: string;
|
|
3494
|
+
from: number;
|
|
3495
|
+
to: number;
|
|
3496
|
+
provider_id?: string;
|
|
3497
|
+
}
|
|
3498
|
+
interface AvailabilitySlot {
|
|
3499
|
+
from: number;
|
|
3500
|
+
to: number;
|
|
3501
|
+
spots: number;
|
|
3502
|
+
}
|
|
3503
|
+
interface DaySlots {
|
|
3504
|
+
date: string;
|
|
3505
|
+
slots: AvailabilitySlot[];
|
|
3506
|
+
}
|
|
3507
|
+
interface ProviderAvailability {
|
|
3508
|
+
provider_id: string;
|
|
3509
|
+
provider_key: string;
|
|
3510
|
+
days: DaySlots[];
|
|
3511
|
+
}
|
|
3512
|
+
interface AvailabilityResponse {
|
|
3513
|
+
from: number;
|
|
3514
|
+
to: number;
|
|
3515
|
+
providers: ProviderAvailability[];
|
|
3516
|
+
}
|
|
3517
|
+
interface Slot {
|
|
3518
|
+
id: string;
|
|
3519
|
+
service_id: string;
|
|
3520
|
+
provider_id: string;
|
|
3521
|
+
from: number;
|
|
3522
|
+
to: number;
|
|
3523
|
+
time_text: string;
|
|
3524
|
+
date_text: string;
|
|
3525
|
+
}
|
|
3526
|
+
interface CreateWorkflowParams {
|
|
3527
|
+
store_id?: string;
|
|
3528
|
+
key: string;
|
|
3529
|
+
status?: WorkflowStatus;
|
|
3530
|
+
nodes: Record<string, WorkflowNode>;
|
|
3531
|
+
edges: WorkflowEdge[];
|
|
3532
|
+
schedule?: string;
|
|
3533
|
+
}
|
|
3534
|
+
interface UpdateWorkflowParams {
|
|
3535
|
+
id: string;
|
|
3536
|
+
store_id?: string;
|
|
3537
|
+
key: string;
|
|
3538
|
+
status?: WorkflowStatus;
|
|
3539
|
+
nodes: Record<string, WorkflowNode>;
|
|
3540
|
+
edges: WorkflowEdge[];
|
|
3541
|
+
schedule?: string;
|
|
3542
|
+
}
|
|
3543
|
+
interface DeleteWorkflowParams {
|
|
3544
|
+
id: string;
|
|
3545
|
+
store_id?: string;
|
|
3546
|
+
}
|
|
3547
|
+
interface GetWorkflowParams {
|
|
3548
|
+
id: string;
|
|
3549
|
+
store_id?: string;
|
|
3550
|
+
}
|
|
3551
|
+
interface GetWorkflowsParams {
|
|
3552
|
+
store_id?: string;
|
|
3553
|
+
ids?: string[];
|
|
3554
|
+
query?: string | number;
|
|
3555
|
+
status?: WorkflowStatus;
|
|
3556
|
+
limit?: number;
|
|
3557
|
+
cursor?: string;
|
|
3558
|
+
sort_field?: string;
|
|
3559
|
+
sort_direction?: "asc" | "desc";
|
|
3560
|
+
created_at_from?: number;
|
|
3561
|
+
created_at_to?: number;
|
|
3562
|
+
}
|
|
3563
|
+
interface TriggerWorkflowParams {
|
|
3564
|
+
secret: string;
|
|
3565
|
+
input?: Record<string, unknown>;
|
|
3566
|
+
}
|
|
3567
|
+
interface GetWorkflowExecutionsParams {
|
|
3568
|
+
workflow_id: string;
|
|
3569
|
+
store_id?: string;
|
|
3570
|
+
status?: ExecutionStatus;
|
|
3571
|
+
limit?: number;
|
|
3572
|
+
cursor?: string;
|
|
3573
|
+
}
|
|
3574
|
+
interface GetWorkflowExecutionParams {
|
|
3575
|
+
workflow_id: string;
|
|
3576
|
+
execution_id: string;
|
|
3577
|
+
store_id?: string;
|
|
3578
|
+
}
|
|
3579
|
+
interface ConnectWorkflowAccountParams {
|
|
3580
|
+
store_id?: string;
|
|
3581
|
+
type: WorkflowAccountType;
|
|
3582
|
+
key?: string;
|
|
3583
|
+
code: string;
|
|
3584
|
+
redirect_uri: string;
|
|
3585
|
+
}
|
|
3586
|
+
interface GetWorkflowAccountConnectUrlParams {
|
|
3587
|
+
store_id?: string;
|
|
3588
|
+
type: WorkflowAccountType;
|
|
3589
|
+
redirect_uri: string;
|
|
3590
|
+
}
|
|
3591
|
+
interface GetWorkflowAccountsParams {
|
|
3592
|
+
store_id?: string;
|
|
3593
|
+
}
|
|
3594
|
+
interface DeleteWorkflowAccountParams {
|
|
3595
|
+
id: string;
|
|
3596
|
+
store_id?: string;
|
|
3597
|
+
}
|
|
3598
|
+
interface CreateContactListParams {
|
|
3599
|
+
store_id?: string;
|
|
3600
|
+
key: string;
|
|
3601
|
+
name?: string;
|
|
3602
|
+
description?: string | null;
|
|
3603
|
+
type?: ContactListType;
|
|
3604
|
+
plans?: ContactListPlan[];
|
|
3605
|
+
content_access?: ContactListContentAccess[];
|
|
3606
|
+
source?: ContactListSource;
|
|
3607
|
+
}
|
|
3608
|
+
interface UpdateContactListParams {
|
|
3609
|
+
id: string;
|
|
3610
|
+
store_id?: string;
|
|
3611
|
+
key?: string;
|
|
3612
|
+
name?: string;
|
|
3613
|
+
description?: string | null;
|
|
3614
|
+
status?: ContactListStatus;
|
|
3615
|
+
type?: ContactListType;
|
|
3616
|
+
plans?: ContactListPlan[];
|
|
3617
|
+
content_access?: ContactListContentAccess[];
|
|
3618
|
+
}
|
|
3619
|
+
interface FindContactListsParams {
|
|
3620
|
+
store_id?: string;
|
|
3621
|
+
ids?: string[];
|
|
3622
|
+
status?: ContactListStatus;
|
|
3623
|
+
query?: string | number;
|
|
3624
|
+
limit?: number;
|
|
3625
|
+
cursor?: string;
|
|
3626
|
+
sort_field?: string;
|
|
3627
|
+
sort_direction?: "asc" | "desc";
|
|
3628
|
+
}
|
|
3629
|
+
interface GetContactListParams {
|
|
3630
|
+
id: string;
|
|
3631
|
+
store_id?: string;
|
|
3632
|
+
}
|
|
3633
|
+
interface AddContactListContactParams {
|
|
3634
|
+
store_id?: string;
|
|
3635
|
+
contact_list_id: string;
|
|
3636
|
+
contact_id: string;
|
|
3637
|
+
fields?: Record<string, unknown>;
|
|
3638
|
+
lead_description?: string | null;
|
|
3639
|
+
}
|
|
3640
|
+
interface UpdateContactListContactParams {
|
|
3641
|
+
store_id?: string;
|
|
3642
|
+
contact_list_id: string;
|
|
3643
|
+
contact_id: string;
|
|
3644
|
+
status?: ContactListMembershipStatus;
|
|
3645
|
+
fields?: Record<string, unknown>;
|
|
3646
|
+
lead_description?: string | null;
|
|
3647
|
+
}
|
|
3648
|
+
interface RemoveContactListContactParams {
|
|
3649
|
+
store_id?: string;
|
|
3650
|
+
contact_list_id: string;
|
|
3651
|
+
contact_id: string;
|
|
3652
|
+
}
|
|
3653
|
+
interface FindContactListContactsParams {
|
|
3654
|
+
store_id?: string;
|
|
3655
|
+
contact_list_id?: string;
|
|
3656
|
+
contact_id?: string;
|
|
3657
|
+
status?: ContactListMembershipStatus;
|
|
3658
|
+
limit?: number;
|
|
3659
|
+
cursor?: string;
|
|
3660
|
+
}
|
|
3661
|
+
interface ImportContactRowInput {
|
|
3662
|
+
email: string;
|
|
3663
|
+
contact_id?: string;
|
|
3664
|
+
fields?: Record<string, unknown>;
|
|
3665
|
+
lead_description?: string;
|
|
3666
|
+
}
|
|
3667
|
+
interface ImportContactsParams {
|
|
3668
|
+
store_id?: string;
|
|
3669
|
+
csv?: string;
|
|
3670
|
+
spreadsheet_base64?: string;
|
|
3671
|
+
sheet_name?: string | null;
|
|
3672
|
+
email_column?: string | null;
|
|
3673
|
+
field_mappings?: ImportFieldMapping[];
|
|
3674
|
+
rows?: ImportContactRowInput[];
|
|
3675
|
+
}
|
|
3676
|
+
interface ImportContactsIntoContactListParams {
|
|
3677
|
+
store_id?: string;
|
|
3678
|
+
contact_list_id: string;
|
|
3679
|
+
csv?: string;
|
|
3680
|
+
spreadsheet_base64?: string;
|
|
3681
|
+
sheet_name?: string | null;
|
|
3682
|
+
email_column?: string | null;
|
|
3683
|
+
field_mappings?: ImportFieldMapping[];
|
|
3684
|
+
rows?: ImportContactRowInput[];
|
|
3685
|
+
}
|
|
3686
|
+
interface ImportContactsPreviewParams {
|
|
3687
|
+
store_id?: string;
|
|
3688
|
+
csv?: string;
|
|
3689
|
+
spreadsheet_base64?: string;
|
|
3690
|
+
sheet_name?: string | null;
|
|
3691
|
+
}
|
|
3692
|
+
interface ImportContactListPreviewParams extends ImportContactsPreviewParams {
|
|
3693
|
+
contact_list_id: string;
|
|
3694
|
+
}
|
|
3695
|
+
interface ImportFieldMapping {
|
|
3696
|
+
source: string;
|
|
3697
|
+
field: string;
|
|
3698
|
+
}
|
|
3699
|
+
interface ImportPreviewRow {
|
|
3700
|
+
row: number;
|
|
3701
|
+
values: Record<string, unknown>;
|
|
3702
|
+
}
|
|
3703
|
+
interface ImportContactsPreviewResult {
|
|
3704
|
+
sheets: string[];
|
|
3705
|
+
selected_sheet?: string | null;
|
|
3706
|
+
header_row: number;
|
|
3707
|
+
headers: string[];
|
|
3708
|
+
detected_email_column?: string | null;
|
|
3709
|
+
rows_total: number;
|
|
3710
|
+
sample_rows: ImportPreviewRow[];
|
|
3711
|
+
suggested_field_mappings: ImportFieldMapping[];
|
|
3712
|
+
}
|
|
3713
|
+
interface ImportContactRowError {
|
|
3714
|
+
row: number;
|
|
3715
|
+
field: string;
|
|
3716
|
+
message: string;
|
|
3717
|
+
}
|
|
3718
|
+
interface ImportContactRowResult {
|
|
3719
|
+
row: number;
|
|
3720
|
+
email: string;
|
|
3721
|
+
contact_id?: string | null;
|
|
3722
|
+
created: boolean;
|
|
3723
|
+
updated: boolean;
|
|
3724
|
+
error?: string | null;
|
|
3725
|
+
}
|
|
3726
|
+
interface ImportContactsResult {
|
|
3727
|
+
rows_total: number;
|
|
3728
|
+
contacts_created: number;
|
|
3729
|
+
contacts_updated: number;
|
|
3730
|
+
rows_failed: number;
|
|
3731
|
+
errors: ImportContactRowError[];
|
|
3732
|
+
rows: ImportContactRowResult[];
|
|
3733
|
+
}
|
|
3734
|
+
interface ImportContactListRowResult {
|
|
3735
|
+
row: number;
|
|
3736
|
+
email: string;
|
|
3737
|
+
contact_id?: string | null;
|
|
3738
|
+
contact_created: boolean;
|
|
3739
|
+
contact_updated: boolean;
|
|
3740
|
+
added_to_list: boolean;
|
|
3741
|
+
updated_in_list: boolean;
|
|
3742
|
+
error?: string | null;
|
|
3743
|
+
}
|
|
3744
|
+
interface ImportContactsIntoContactListResult {
|
|
3745
|
+
rows_total: number;
|
|
3746
|
+
contacts_created: number;
|
|
3747
|
+
contacts_updated: number;
|
|
3748
|
+
contacts_added: number;
|
|
3749
|
+
contacts_updated_in_list: number;
|
|
3750
|
+
contacts_failed_to_add: number;
|
|
3751
|
+
rows_failed: number;
|
|
3752
|
+
errors: ImportContactRowError[];
|
|
3753
|
+
rows: ImportContactListRowResult[];
|
|
3754
|
+
}
|
|
3755
|
+
interface SubscribeContactListParams {
|
|
3756
|
+
store_id?: string;
|
|
3757
|
+
id: string;
|
|
3758
|
+
contact_id: string;
|
|
3759
|
+
price_id?: string;
|
|
3760
|
+
success_url?: string;
|
|
3761
|
+
cancel_url?: string;
|
|
3762
|
+
confirm_url?: string;
|
|
3763
|
+
confirmation_token_id?: string;
|
|
3764
|
+
return_url?: string;
|
|
3765
|
+
}
|
|
3766
|
+
interface ContactListAccessParams {
|
|
3767
|
+
store_id?: string;
|
|
3768
|
+
id: string;
|
|
3769
|
+
}
|
|
3770
|
+
interface ContactListContentAccessParams {
|
|
3771
|
+
store_id?: string;
|
|
3772
|
+
target: ContactListContentAccessTarget;
|
|
3773
|
+
}
|
|
3774
|
+
interface CreateMailboxParams {
|
|
3775
|
+
store_id?: string;
|
|
3776
|
+
key: string;
|
|
3777
|
+
email: string;
|
|
3778
|
+
from_name?: string;
|
|
3779
|
+
reply_to_email?: string | null;
|
|
3780
|
+
provider: SmtpImapMailboxProvider;
|
|
3781
|
+
password?: string;
|
|
3782
|
+
daily_limit?: number;
|
|
3783
|
+
}
|
|
3784
|
+
interface UpdateMailboxParams {
|
|
3785
|
+
id: string;
|
|
3786
|
+
store_id?: string;
|
|
3787
|
+
key?: string;
|
|
3788
|
+
email?: string;
|
|
3789
|
+
from_name?: string;
|
|
3790
|
+
reply_to_email?: string | null;
|
|
3791
|
+
provider?: SmtpImapMailboxProvider;
|
|
3792
|
+
password?: string;
|
|
3793
|
+
status?: MailboxStatus;
|
|
3794
|
+
daily_limit?: number;
|
|
3795
|
+
}
|
|
3796
|
+
interface FindMailboxesParams {
|
|
3797
|
+
store_id?: string;
|
|
3798
|
+
ids?: string[];
|
|
3799
|
+
status?: MailboxStatus;
|
|
3800
|
+
provider_type?: "smtp_imap";
|
|
3801
|
+
query?: string | number;
|
|
3802
|
+
limit?: number;
|
|
3803
|
+
cursor?: string;
|
|
3804
|
+
sort_field?: string;
|
|
3805
|
+
sort_direction?: "asc" | "desc";
|
|
3806
|
+
}
|
|
3807
|
+
interface GetMailboxParams {
|
|
3808
|
+
id: string;
|
|
3809
|
+
store_id?: string;
|
|
3810
|
+
}
|
|
3811
|
+
interface TestMailboxParams {
|
|
3812
|
+
id: string;
|
|
3813
|
+
store_id?: string;
|
|
3814
|
+
}
|
|
3815
|
+
interface PrepareMailboxParams {
|
|
3816
|
+
id: string;
|
|
3817
|
+
store_id?: string;
|
|
3818
|
+
}
|
|
3819
|
+
interface TestMailboxResult {
|
|
3820
|
+
ok: boolean;
|
|
3821
|
+
smtp_ok: boolean;
|
|
3822
|
+
imap_ok: boolean;
|
|
3823
|
+
skipped: boolean;
|
|
3824
|
+
smtp_error?: string | null;
|
|
3825
|
+
imap_error?: string | null;
|
|
3826
|
+
}
|
|
3827
|
+
interface CreateCampaignParams {
|
|
3828
|
+
store_id?: string;
|
|
3829
|
+
key: string;
|
|
3830
|
+
name?: string;
|
|
3831
|
+
mailbox_ids: string[];
|
|
3832
|
+
steps: OutreachStep[];
|
|
3833
|
+
}
|
|
3834
|
+
interface UpdateCampaignParams {
|
|
3835
|
+
id: string;
|
|
3836
|
+
store_id?: string;
|
|
3837
|
+
key?: string;
|
|
3838
|
+
name?: string;
|
|
3839
|
+
mailbox_ids?: string[];
|
|
3840
|
+
status?: CampaignStatus;
|
|
3841
|
+
steps?: OutreachStep[];
|
|
3842
|
+
}
|
|
3843
|
+
interface FindCampaignsParams {
|
|
3844
|
+
store_id?: string;
|
|
3845
|
+
ids?: string[];
|
|
3846
|
+
status?: CampaignStatus;
|
|
3847
|
+
mailbox_id?: string;
|
|
3848
|
+
query?: string | number;
|
|
3849
|
+
limit?: number;
|
|
3850
|
+
cursor?: string;
|
|
3851
|
+
sort_field?: string;
|
|
3852
|
+
sort_direction?: "asc" | "desc";
|
|
3853
|
+
}
|
|
3854
|
+
interface GetCampaignParams {
|
|
3855
|
+
id: string;
|
|
3856
|
+
store_id?: string;
|
|
3857
|
+
}
|
|
3858
|
+
interface LaunchCampaignParams {
|
|
3859
|
+
id: string;
|
|
3860
|
+
store_id?: string;
|
|
3861
|
+
}
|
|
3862
|
+
interface DuplicateCampaignParams {
|
|
3863
|
+
id: string;
|
|
3864
|
+
store_id?: string;
|
|
3865
|
+
key?: string;
|
|
3866
|
+
name?: string;
|
|
3867
|
+
copy_enrollments?: boolean;
|
|
3868
|
+
}
|
|
3869
|
+
interface GetCampaignLaunchReadinessParams {
|
|
3870
|
+
id: string;
|
|
3871
|
+
store_id?: string;
|
|
3872
|
+
}
|
|
3873
|
+
interface ImportCampaignEnrollmentsParams {
|
|
3874
|
+
id: string;
|
|
3875
|
+
store_id?: string;
|
|
3876
|
+
contact_list_id?: string;
|
|
3877
|
+
contact_list_ids?: string[];
|
|
3878
|
+
contact_ids?: string[];
|
|
3879
|
+
emails?: string[];
|
|
3880
|
+
}
|
|
3881
|
+
interface CampaignEnrollmentImportResult {
|
|
3882
|
+
imported_count: number;
|
|
3883
|
+
existing_count: number;
|
|
3884
|
+
skipped_count: number;
|
|
3885
|
+
draft_count: number;
|
|
3886
|
+
}
|
|
3887
|
+
interface GenerateOutreachPersonalizedDraftsParams {
|
|
3888
|
+
id: string;
|
|
3889
|
+
store_id?: string;
|
|
3890
|
+
step_position?: number;
|
|
3891
|
+
contact_ids?: string[];
|
|
3892
|
+
overwrite?: boolean;
|
|
3893
|
+
instructions?: string;
|
|
3894
|
+
}
|
|
3895
|
+
interface FindCampaignEnrollmentsParams {
|
|
3896
|
+
store_id?: string;
|
|
3897
|
+
campaign_id?: string;
|
|
3898
|
+
contact_id?: string;
|
|
3899
|
+
mailbox_id?: string;
|
|
3900
|
+
status?: CampaignEnrollmentStatus;
|
|
3901
|
+
limit?: number;
|
|
3902
|
+
cursor?: string;
|
|
3903
|
+
}
|
|
3904
|
+
interface UpdateCampaignEnrollmentParams {
|
|
3905
|
+
store_id?: string;
|
|
3906
|
+
id: string;
|
|
3907
|
+
mailbox_id?: string | null;
|
|
3908
|
+
lead_description?: string | null;
|
|
3909
|
+
fields?: Record<string, unknown>;
|
|
3910
|
+
}
|
|
3911
|
+
interface UpdateCampaignEnrollmentDraftParams {
|
|
3912
|
+
store_id?: string;
|
|
3913
|
+
id: string;
|
|
3914
|
+
draft_id: string;
|
|
3915
|
+
template_vars?: Record<string, any>;
|
|
3916
|
+
body?: string;
|
|
3917
|
+
suggested_message?: string;
|
|
3918
|
+
}
|
|
3919
|
+
interface UpdateCampaignEnrollmentStepExecutionParams {
|
|
3920
|
+
store_id?: string;
|
|
3921
|
+
id: string;
|
|
3922
|
+
execution_id: string;
|
|
3923
|
+
outcome: CampaignManualTaskOutcome;
|
|
3924
|
+
note?: string;
|
|
3925
|
+
}
|
|
3926
|
+
interface FindCampaignMessagesParams {
|
|
3927
|
+
store_id?: string;
|
|
3928
|
+
campaign_id?: string;
|
|
3929
|
+
campaign_enrollment_id?: string;
|
|
3930
|
+
contact_id?: string;
|
|
3931
|
+
mailbox_id?: string;
|
|
3932
|
+
direction?: CampaignMessageDirection;
|
|
3933
|
+
type?: CampaignMessageType;
|
|
3934
|
+
status?: CampaignMessageStatus;
|
|
3935
|
+
copy_source?: CampaignMessageCopySource;
|
|
3936
|
+
step_position?: number;
|
|
3937
|
+
query?: string;
|
|
3938
|
+
limit?: number;
|
|
3939
|
+
cursor?: string;
|
|
3940
|
+
}
|
|
3941
|
+
interface GetCampaignEnrollmentConversationParams {
|
|
3942
|
+
store_id?: string;
|
|
3943
|
+
id: string;
|
|
3944
|
+
message_limit?: number;
|
|
3945
|
+
after_created_at?: number;
|
|
3946
|
+
after_id?: string;
|
|
3947
|
+
}
|
|
3948
|
+
interface ReplyCampaignEnrollmentParams {
|
|
3949
|
+
store_id?: string;
|
|
3950
|
+
id: string;
|
|
3951
|
+
subject?: string | null;
|
|
3952
|
+
body: string;
|
|
3953
|
+
attachments?: string[];
|
|
3954
|
+
}
|
|
3955
|
+
interface StopCampaignEnrollmentParams {
|
|
3956
|
+
store_id?: string;
|
|
3957
|
+
id: string;
|
|
3958
|
+
}
|
|
3959
|
+
interface UpdateCampaignMessageParams {
|
|
3960
|
+
id: string;
|
|
3961
|
+
store_id?: string;
|
|
3962
|
+
template_vars?: Record<string, any>;
|
|
3963
|
+
}
|
|
3964
|
+
interface CreateSuppressionParams {
|
|
3965
|
+
store_id?: string;
|
|
3966
|
+
campaign_id?: string;
|
|
3967
|
+
contact_id?: string;
|
|
3968
|
+
email?: string;
|
|
3969
|
+
domain?: string;
|
|
3970
|
+
reason?: SuppressionReason;
|
|
3971
|
+
source?: SuppressionSource;
|
|
3972
|
+
}
|
|
3973
|
+
interface UpdateSuppressionParams {
|
|
3974
|
+
id: string;
|
|
3975
|
+
store_id?: string;
|
|
3976
|
+
status?: SuppressionStatus;
|
|
3977
|
+
reason?: SuppressionReason;
|
|
3978
|
+
}
|
|
3979
|
+
interface FindSuppressionsParams {
|
|
3980
|
+
store_id?: string;
|
|
3981
|
+
status?: SuppressionStatus;
|
|
3982
|
+
contact_id?: string;
|
|
3983
|
+
email?: string;
|
|
3984
|
+
domain?: string;
|
|
3985
|
+
campaign_id?: string;
|
|
3986
|
+
reason?: SuppressionReason;
|
|
3987
|
+
query?: string | number;
|
|
3988
|
+
limit?: number;
|
|
3989
|
+
cursor?: string;
|
|
3990
|
+
sort_field?: string;
|
|
3991
|
+
sort_direction?: "asc" | "desc";
|
|
3992
|
+
}
|
|
3993
|
+
interface GetSuppressionParams {
|
|
3994
|
+
id: string;
|
|
3995
|
+
store_id?: string;
|
|
3996
|
+
}
|
|
3997
|
+
interface CreateLeadResearchRunParams {
|
|
3998
|
+
store_id?: string;
|
|
3999
|
+
contact_list_id?: string;
|
|
4000
|
+
title?: string;
|
|
4001
|
+
}
|
|
4002
|
+
interface FindLeadResearchRunsParams {
|
|
4003
|
+
store_id?: string;
|
|
4004
|
+
status?: LeadResearchRunStatus;
|
|
4005
|
+
contact_list_id?: string;
|
|
4006
|
+
limit?: number;
|
|
4007
|
+
cursor?: string;
|
|
4008
|
+
}
|
|
4009
|
+
interface GetLeadResearchRunParams {
|
|
4010
|
+
id: string;
|
|
4011
|
+
store_id?: string;
|
|
4012
|
+
}
|
|
4013
|
+
interface UpdateLeadResearchRunParams {
|
|
4014
|
+
id: string;
|
|
4015
|
+
store_id?: string;
|
|
4016
|
+
title?: string;
|
|
4017
|
+
}
|
|
4018
|
+
interface CancelLeadResearchRunParams {
|
|
4019
|
+
id: string;
|
|
4020
|
+
store_id?: string;
|
|
4021
|
+
}
|
|
4022
|
+
interface SendLeadResearchMessageParams {
|
|
4023
|
+
run_id: string;
|
|
4024
|
+
store_id?: string;
|
|
4025
|
+
message: string;
|
|
4026
|
+
}
|
|
4027
|
+
interface FindLeadResearchMessagesParams {
|
|
4028
|
+
run_id: string;
|
|
4029
|
+
store_id?: string;
|
|
4030
|
+
limit?: number;
|
|
4031
|
+
after_created_at?: number;
|
|
4032
|
+
after_id?: string;
|
|
4033
|
+
}
|
|
4034
|
+
interface ValidateLeadEmailParams {
|
|
4035
|
+
store_id?: string;
|
|
4036
|
+
email: string;
|
|
4037
|
+
website_url?: string;
|
|
4038
|
+
email_source_url?: string;
|
|
4039
|
+
}
|
|
4040
|
+
interface ListBuildHooksParams {
|
|
4041
|
+
store_id: string;
|
|
4042
|
+
}
|
|
4043
|
+
interface CreateBuildHookParams {
|
|
4044
|
+
store_id: string;
|
|
4045
|
+
key: string;
|
|
4046
|
+
type: BuildHookType;
|
|
4047
|
+
url: string;
|
|
4048
|
+
headers?: Record<string, string>;
|
|
4049
|
+
active?: boolean;
|
|
4050
|
+
}
|
|
4051
|
+
interface UpdateBuildHookParams {
|
|
4052
|
+
store_id: string;
|
|
4053
|
+
id: string;
|
|
4054
|
+
key?: string;
|
|
4055
|
+
type?: BuildHookType;
|
|
4056
|
+
url?: string;
|
|
4057
|
+
headers?: Record<string, string>;
|
|
4058
|
+
active?: boolean;
|
|
4059
|
+
}
|
|
4060
|
+
interface DeleteBuildHookParams {
|
|
4061
|
+
store_id: string;
|
|
4062
|
+
id: string;
|
|
4063
|
+
}
|
|
4064
|
+
interface ListSocialAccountsParams {
|
|
4065
|
+
store_id?: string;
|
|
4066
|
+
}
|
|
4067
|
+
interface DeleteSocialAccountParams {
|
|
4068
|
+
store_id: string;
|
|
4069
|
+
id: string;
|
|
4070
|
+
}
|
|
4071
|
+
interface ListPaymentProvidersParams {
|
|
4072
|
+
store_id?: string;
|
|
4073
|
+
}
|
|
4074
|
+
interface RefreshPaymentProvidersParams {
|
|
4075
|
+
store_id?: string;
|
|
4076
|
+
}
|
|
4077
|
+
interface ConnectStripePaymentProviderParams {
|
|
4078
|
+
store_id?: string;
|
|
4079
|
+
return_url: string;
|
|
4080
|
+
refresh_url: string;
|
|
4081
|
+
email?: string | null;
|
|
4082
|
+
country?: string | null;
|
|
4083
|
+
connected_account_id?: string | null;
|
|
4084
|
+
}
|
|
4085
|
+
interface DeletePaymentProviderParams {
|
|
4086
|
+
store_id: string;
|
|
4087
|
+
id: string;
|
|
4088
|
+
}
|
|
4089
|
+
interface FindSocialPublicationsParams {
|
|
4090
|
+
store_id?: string;
|
|
4091
|
+
status?: SocialPublicationStatus;
|
|
4092
|
+
query?: string;
|
|
4093
|
+
limit?: number;
|
|
4094
|
+
cursor?: string;
|
|
4095
|
+
}
|
|
4096
|
+
interface GetSocialPublicationParams {
|
|
4097
|
+
store_id?: string;
|
|
4098
|
+
id: string;
|
|
4099
|
+
}
|
|
4100
|
+
interface ValidateSocialPublicationParams {
|
|
4101
|
+
store_id?: string;
|
|
4102
|
+
social_account_id: string;
|
|
4103
|
+
scheduled_at?: number | null;
|
|
4104
|
+
content: SocialPublicationContent;
|
|
4105
|
+
}
|
|
4106
|
+
interface CreateSocialPublicationParams {
|
|
4107
|
+
store_id?: string;
|
|
4108
|
+
social_account_id: string;
|
|
4109
|
+
key?: string | null;
|
|
4110
|
+
scheduled_at?: number | null;
|
|
4111
|
+
content: SocialPublicationContent;
|
|
4112
|
+
}
|
|
4113
|
+
interface UpdateSocialPublicationParams {
|
|
4114
|
+
store_id?: string;
|
|
4115
|
+
id: string;
|
|
4116
|
+
social_account_id?: string | null;
|
|
4117
|
+
key?: string | null;
|
|
4118
|
+
scheduled_at?: number | null;
|
|
4119
|
+
content?: SocialPublicationContent | null;
|
|
4120
|
+
}
|
|
4121
|
+
interface ScheduleSocialPublicationParams {
|
|
4122
|
+
store_id?: string;
|
|
4123
|
+
id: string;
|
|
4124
|
+
scheduled_at: number;
|
|
4125
|
+
}
|
|
4126
|
+
interface CancelSocialPublicationParams {
|
|
4127
|
+
store_id?: string;
|
|
4128
|
+
id: string;
|
|
4129
|
+
}
|
|
4130
|
+
interface GetSocialPublicationCommentsParams {
|
|
4131
|
+
store_id?: string;
|
|
4132
|
+
publication_id: string;
|
|
4133
|
+
limit?: number;
|
|
4134
|
+
cursor?: string | null;
|
|
4135
|
+
}
|
|
4136
|
+
type SyncSocialPublicationCommentsParams = GetSocialPublicationCommentsParams;
|
|
4137
|
+
interface GetSocialPublicationCommentThreadParams {
|
|
4138
|
+
store_id?: string;
|
|
4139
|
+
publication_id: string;
|
|
4140
|
+
comment_id: string;
|
|
4141
|
+
limit?: number;
|
|
4142
|
+
cursor?: string | null;
|
|
4143
|
+
}
|
|
4144
|
+
type SyncSocialPublicationCommentThreadParams = GetSocialPublicationCommentThreadParams;
|
|
4145
|
+
interface FindSocialPublicationCommentsParams {
|
|
4146
|
+
store_id?: string;
|
|
4147
|
+
publication_id?: string;
|
|
4148
|
+
social_account_id?: string;
|
|
4149
|
+
provider_type?: SocialProviderType;
|
|
4150
|
+
status?: SocialPublicationCommentStatus;
|
|
4151
|
+
intent?: SocialPublicationCommentIntent;
|
|
4152
|
+
priority?: SocialPublicationCommentPriority;
|
|
4153
|
+
include_replies?: boolean;
|
|
4154
|
+
limit?: number;
|
|
4155
|
+
cursor?: string | null;
|
|
4156
|
+
}
|
|
4157
|
+
interface ClassifySocialPublicationCommentsParams {
|
|
4158
|
+
store_id?: string;
|
|
4159
|
+
publication_id?: string;
|
|
4160
|
+
social_account_id?: string;
|
|
4161
|
+
provider_type?: SocialProviderType;
|
|
4162
|
+
status?: SocialPublicationCommentStatus;
|
|
4163
|
+
intent?: SocialPublicationCommentIntent;
|
|
4164
|
+
priority?: SocialPublicationCommentPriority;
|
|
4165
|
+
limit?: number;
|
|
4166
|
+
force?: boolean;
|
|
4167
|
+
}
|
|
4168
|
+
interface ReplySocialPublicationCommentParams {
|
|
4169
|
+
store_id?: string;
|
|
4170
|
+
publication_id: string;
|
|
4171
|
+
comment_id: string;
|
|
4172
|
+
text: string;
|
|
4173
|
+
}
|
|
4174
|
+
interface GetSocialPublicationMetricsParams {
|
|
4175
|
+
store_id?: string;
|
|
4176
|
+
publication_id: string;
|
|
4177
|
+
}
|
|
4178
|
+
type SyncSocialPublicationMetricsParams = GetSocialPublicationMetricsParams;
|
|
4179
|
+
interface SyncSocialEngagementParams {
|
|
4180
|
+
store_id?: string;
|
|
4181
|
+
publication_ids?: string[];
|
|
4182
|
+
max_publications?: number;
|
|
4183
|
+
max_comment_pages_per_publication?: number;
|
|
4184
|
+
max_comments_per_publication?: number;
|
|
4185
|
+
sync_metrics?: boolean;
|
|
4186
|
+
}
|
|
4187
|
+
interface GetSocialCapabilitiesParams {
|
|
4188
|
+
store_id?: string;
|
|
4189
|
+
}
|
|
4190
|
+
interface ConnectSocialAccountParams {
|
|
4191
|
+
store_id?: string;
|
|
4192
|
+
provider_type: SocialProviderType;
|
|
4193
|
+
}
|
|
4194
|
+
interface SelectSocialDestinationParams {
|
|
4195
|
+
store_id?: string;
|
|
4196
|
+
provider_type: SocialProviderType;
|
|
4197
|
+
attempt_id: string;
|
|
4198
|
+
candidate_id: string;
|
|
4199
|
+
}
|
|
4200
|
+
interface GetSocialOAuthAttemptParams {
|
|
4201
|
+
store_id?: string;
|
|
4202
|
+
attempt_id: string;
|
|
4203
|
+
}
|
|
4204
|
+
interface ListWebhooksParams {
|
|
4205
|
+
store_id: string;
|
|
4206
|
+
}
|
|
4207
|
+
interface CreateWebhookParams {
|
|
4208
|
+
store_id: string;
|
|
4209
|
+
key: string;
|
|
4210
|
+
url: string;
|
|
4211
|
+
events: WebhookEventSubscription[];
|
|
4212
|
+
headers: Record<string, string>;
|
|
4213
|
+
secret: string;
|
|
4214
|
+
enabled: boolean;
|
|
4215
|
+
}
|
|
4216
|
+
interface UpdateWebhookParams {
|
|
4217
|
+
store_id: string;
|
|
4218
|
+
id: string;
|
|
4219
|
+
key: string;
|
|
4220
|
+
url: string;
|
|
4221
|
+
events: WebhookEventSubscription[];
|
|
4222
|
+
headers: Record<string, string>;
|
|
4223
|
+
secret: string;
|
|
4224
|
+
enabled: boolean;
|
|
4225
|
+
}
|
|
4226
|
+
interface DeleteWebhookParams {
|
|
4227
|
+
store_id: string;
|
|
4228
|
+
id: string;
|
|
4229
|
+
}
|
|
4230
|
+
interface GetShippingRatesParams {
|
|
4231
|
+
order_id: string;
|
|
4232
|
+
from_address: Address;
|
|
4233
|
+
to_address: Address;
|
|
4234
|
+
parcel: Parcel;
|
|
4235
|
+
customs_declaration?: CustomsDeclaration;
|
|
4236
|
+
}
|
|
4237
|
+
interface ShipParams {
|
|
4238
|
+
order_id: string;
|
|
4239
|
+
rate_id: string;
|
|
4240
|
+
carrier: string;
|
|
4241
|
+
service: string;
|
|
4242
|
+
location_id: string;
|
|
4243
|
+
fulfillment_order_id?: string | null;
|
|
4244
|
+
lines: ShipmentLine[];
|
|
4245
|
+
}
|
|
4246
|
+
interface RefundShippingLabelParams {
|
|
4247
|
+
order_id: string;
|
|
4248
|
+
shipment_id: string;
|
|
4249
|
+
}
|
|
4250
|
+
interface AuthToken {
|
|
4251
|
+
id: string;
|
|
4252
|
+
access_token: string;
|
|
4253
|
+
refresh_token: string;
|
|
4254
|
+
access_expires_at: number;
|
|
4255
|
+
refresh_expires_at: number;
|
|
4256
|
+
created_at: number;
|
|
4257
|
+
is_verified: boolean;
|
|
4258
|
+
}
|
|
4259
|
+
interface ContactInfo {
|
|
4260
|
+
id: string;
|
|
4261
|
+
verified: boolean;
|
|
4262
|
+
}
|
|
4263
|
+
interface ContactSessionToken {
|
|
4264
|
+
id: string;
|
|
4265
|
+
token: string;
|
|
4266
|
+
created_at: number;
|
|
4267
|
+
}
|
|
4268
|
+
interface ContactVerificationCode {
|
|
4269
|
+
code: string;
|
|
4270
|
+
created_at: number;
|
|
4271
|
+
used: boolean;
|
|
4272
|
+
store_id?: string | null;
|
|
4273
|
+
}
|
|
4274
|
+
interface PromoUsage {
|
|
4275
|
+
promo_code_id: string;
|
|
4276
|
+
uses: number;
|
|
4277
|
+
}
|
|
4278
|
+
interface Contact {
|
|
4279
|
+
id: string;
|
|
4280
|
+
store_id: string;
|
|
4281
|
+
email: string | null;
|
|
4282
|
+
verified: boolean;
|
|
4283
|
+
status: ContactStatus;
|
|
4284
|
+
channels: ContactChannel[];
|
|
4285
|
+
promo_usage: PromoUsage[];
|
|
4286
|
+
taxonomies: TaxonomyEntry[];
|
|
4287
|
+
auth_tokens: ContactSessionToken[];
|
|
4288
|
+
verification_codes: ContactVerificationCode[];
|
|
4289
|
+
created_at: number;
|
|
4290
|
+
updated_at: number;
|
|
4291
|
+
}
|
|
4292
|
+
interface ContactDetail {
|
|
4293
|
+
contact: Contact;
|
|
4294
|
+
carts: Cart[];
|
|
4295
|
+
orders: Order[];
|
|
4296
|
+
form_submissions: FormSubmission[];
|
|
4297
|
+
}
|
|
4298
|
+
interface SetContactEmailParams {
|
|
4299
|
+
email: string;
|
|
4300
|
+
store_id?: string;
|
|
4301
|
+
}
|
|
4302
|
+
interface CreateContactParams {
|
|
4303
|
+
store_id?: string;
|
|
4304
|
+
email: string;
|
|
4305
|
+
taxonomies?: TaxonomyEntry[];
|
|
4306
|
+
}
|
|
4307
|
+
interface UpdateContactParams {
|
|
4308
|
+
id: string;
|
|
4309
|
+
store_id?: string;
|
|
4310
|
+
email?: string;
|
|
4311
|
+
taxonomies?: TaxonomyEntry[];
|
|
4312
|
+
status?: ContactStatus;
|
|
4313
|
+
}
|
|
4314
|
+
interface GetContactParams {
|
|
4315
|
+
id: string;
|
|
4316
|
+
store_id?: string;
|
|
4317
|
+
}
|
|
4318
|
+
interface FindContactsParams {
|
|
4319
|
+
store_id?: string;
|
|
4320
|
+
ids?: string[];
|
|
4321
|
+
query?: string | number;
|
|
4322
|
+
taxonomy_query?: TaxonomyQuery[];
|
|
4323
|
+
status?: ContactStatus;
|
|
4324
|
+
has_action?: boolean;
|
|
4325
|
+
has_cart?: boolean;
|
|
4326
|
+
limit?: number;
|
|
4327
|
+
cursor?: string;
|
|
4328
|
+
sort_field?: string;
|
|
4329
|
+
sort_direction?: "asc" | "desc";
|
|
4330
|
+
}
|
|
4331
|
+
interface MergeContactsParams {
|
|
4332
|
+
target_id: string;
|
|
4333
|
+
source_id: string;
|
|
4334
|
+
store_id?: string;
|
|
4335
|
+
}
|
|
4336
|
+
|
|
4337
|
+
export { type GetProviderParams as $, type Address as A, type Block as B, type Cart as C, type ClearCartParams as D, type EshopCartItem as E, type FormEntry as F, type GetCollectionParams as G, type CheckoutCartParams as H, type GetOrderParams as I, type Order as J, type GetOrdersParams as K, type Location as L, type Market as M, type DownloadDigitalAccessParams as N, type OrderCheckoutResult as O, type Price as P, type QuoteCartParams as Q, type RequestOptions as R, type Service as S, type Taxonomy as T, type UpdateCartParams as U, type DigitalAccessDownloadResponse as V, type GetServiceParams as W, type GetServicesParams as X, type FindServiceProvidersParams as Y, type ZoneLocation as Z, type GetAvailabilityParams as _, type CollectionEntry as a, type UpdateMediaParams as a$, type GetProvidersParams as a0, type GetContactListParams as a1, type ContactList as a2, type FindContactListsParams as a3, type SubscribeContactListParams as a4, type ContactListSubscribeResponse as a5, type ContactListAccessParams as a6, type ContactListAccessResponse as a7, type ContactListContentAccessParams as a8, type ContactListContentAccessResponse as a9, type UpdateBuildHookParams as aA, type DeleteBuildHookParams as aB, type TestWebhookParams as aC, type ListWebhooksParams as aD, type Webhook as aE, type CreateWebhookParams as aF, type UpdateWebhookParams as aG, type DeleteWebhookParams as aH, type StoreRuntimeConfig as aI, type FindStoreMediaParams as aJ, type Media as aK, type CreateLocationParams as aL, type UpdateLocationParams as aM, type DeleteLocationParams as aN, type CreateMarketParams as aO, type UpdateMarketParams as aP, type DeleteMarketParams as aQ, type ListPaymentProvidersParams as aR, type PaymentProvider as aS, type RefreshPaymentProvidersParams as aT, type ConnectStripePaymentProviderParams as aU, type StripePaymentProviderConnectResponse as aV, type DeletePaymentProviderParams as aW, type GetMediaParams as aX, type UploadStoreMediaParams as aY, type DeleteStoreMediaParams as aZ, type GetStoreMediaParams as a_, type ProductVariant as aa, type OrderCheckoutItemInput as ab, type FormField as ac, type Contact$1 as ad, type UpdateAccountContactParams as ae, type AccountUpdateResponse as af, type DeleteAccountParams as ag, type GetMeParams as ah, type Account as ai, type SearchAccountsParams as aj, type MagicLinkVerifyParams as ak, type AuthToken as al, type CreateStoreParams as am, type UpdateStoreParams as an, type DeleteStoreParams as ao, type GetStoreParams as ap, type GetStoresParams as aq, type GetSubscriptionPlansParams as ar, type SubscriptionPlan as as, type SubscribeParams as at, type CreatePortalSessionParams as au, type AddMemberParams as av, type RemoveMemberParams as aw, type ListBuildHooksParams as ax, type BuildHook as ay, type CreateBuildHookParams as az, type Form as b, type CreateEmailTemplateParams as b$, type TrackEmailOpenParams as b0, type TriggerNotificationParams as b1, type CreateMailboxParams as b2, type Mailbox as b3, type UpdateMailboxParams as b4, type GetMailboxParams as b5, type TestMailboxParams as b6, type TestMailboxResult as b7, type PrepareMailboxParams as b8, type FindMailboxesParams as b9, type ClassifySocialPublicationCommentsParams as bA, type SocialPublicationCommentClassificationResult as bB, type ReplySocialPublicationCommentParams as bC, type SocialPublicationCommentReplyResponse as bD, type GetSocialPublicationMetricsParams as bE, type SocialPublicationMetricSnapshot as bF, type SyncSocialPublicationMetricsParams as bG, type SyncSocialEngagementParams as bH, type SocialPublicationEngagementSyncResult as bI, type CreateCollectionParams as bJ, type UpdateCollectionParams as bK, type DeleteCollectionParams as bL, type GetCollectionsParams as bM, type CreateEntryParams as bN, type UpdateEntryParams as bO, type DeleteEntryParams as bP, type CreateFormParams as bQ, type UpdateFormParams as bR, type DeleteFormParams as bS, type GetFormsParams as bT, type GetFormSubmissionsParams as bU, type GetFormSubmissionParams as bV, type UpdateFormSubmissionParams as bW, type CreateTaxonomyParams as bX, type UpdateTaxonomyParams as bY, type DeleteTaxonomyParams as bZ, type GetTaxonomiesParams as b_, type GetSocialCapabilitiesParams as ba, type SocialProviderCapability as bb, type ListSocialAccountsParams as bc, type SocialAccount as bd, type ConnectSocialAccountParams as be, type SocialConnectResponse as bf, type GetSocialOAuthAttemptParams as bg, type SocialOAuthCallbackResponse as bh, type SelectSocialDestinationParams as bi, type DeleteSocialAccountParams as bj, type CreateSocialPublicationParams as bk, type SocialPublicationMutationResponse as bl, type UpdateSocialPublicationParams as bm, type GetSocialPublicationParams as bn, type SocialPublication as bo, type FindSocialPublicationsParams as bp, type ValidateSocialPublicationParams as bq, type SocialPublicationValidation as br, type ScheduleSocialPublicationParams as bs, type CancelSocialPublicationParams as bt, type GetSocialPublicationCommentsParams as bu, type SocialPublicationComment as bv, type SyncSocialPublicationCommentsParams as bw, type GetSocialPublicationCommentThreadParams as bx, type SyncSocialPublicationCommentThreadParams as by, type FindSocialPublicationCommentsParams as bz, type Product as c, type FindCampaignsParams as c$, type EmailTemplate as c0, type UpdateEmailTemplateParams as c1, type DeleteEmailTemplateParams as c2, type GetEmailTemplateParams as c3, type GetEmailTemplatesParams as c4, type PreviewEmailTemplateParams as c5, type PreviewEmailTemplateResponse as c6, type CreateProductParams as c7, type UpdateProductParams as c8, type DeleteProductParams as c9, type GetPromoCodeParams as cA, type GetPromoCodesParams as cB, type CreateContactParams as cC, type Contact as cD, type GetContactParams as cE, type FindContactsParams as cF, type UpdateContactParams as cG, type MergeContactsParams as cH, type ImportContactsParams as cI, type ImportContactsResult as cJ, type CreateContactListParams as cK, type UpdateContactListParams as cL, type ImportContactsIntoContactListParams as cM, type ImportContactsIntoContactListResult as cN, type ImportContactListPreviewParams as cO, type ImportContactsPreviewResult as cP, type AddContactListContactParams as cQ, type ContactListMember as cR, type UpdateContactListContactParams as cS, type RemoveContactListContactParams as cT, type FindContactListContactsParams as cU, type Action as cV, type FindActionsParams as cW, type CreateCampaignParams as cX, type Campaign as cY, type UpdateCampaignParams as cZ, type GetCampaignParams as c_, type UpdateOrderParams as ca, type GetQuoteParams as cb, type ProcessOrderRefundParams as cc, type ProcessOrderRefundResponse as cd, type GetShippingRatesParams as ce, type ShippingRate as cf, type ShipParams as cg, type ShipResult as ch, type RefundShippingLabelParams as ci, type ShippingLabelRefund as cj, type CreateCartParams as ck, type FindCartsParams as cl, type CreateServiceParams as cm, type UpdateServiceParams as cn, type DeleteServiceParams as co, type ServiceProvider as cp, type CreateServiceProviderParams as cq, type UpdateServiceProviderParams as cr, type DeleteServiceProviderParams as cs, type CreateProviderParams as ct, type UpdateProviderParams as cu, type DeleteProviderParams as cv, type CreatePromoCodeParams as cw, type PromoCode as cx, type UpdatePromoCodeParams as cy, type DeletePromoCodeParams as cz, type Provider as d, type BuildHookType as d$, type LaunchCampaignParams as d0, type DuplicateCampaignParams as d1, type GetCampaignLaunchReadinessParams as d2, type CampaignLaunchReadiness as d3, type ImportCampaignEnrollmentsParams as d4, type CampaignEnrollmentImportResult as d5, type GenerateOutreachPersonalizedDraftsParams as d6, type FindCampaignEnrollmentsParams as d7, type CampaignEnrollment as d8, type GetCampaignEnrollmentConversationParams as d9, type LeadEmailValidationResult as dA, type CreateWorkflowParams as dB, type Workflow as dC, type UpdateWorkflowParams as dD, type DeleteWorkflowParams as dE, type GetWorkflowParams as dF, type GetWorkflowsParams as dG, type TriggerWorkflowParams as dH, type WorkflowExecution as dI, type GetWorkflowExecutionsParams as dJ, type GetWorkflowExecutionParams as dK, type GetWorkflowAccountsParams as dL, type WorkflowAccount as dM, type GetWorkflowAccountConnectUrlParams as dN, type WorkflowAccountConnectUrl as dO, type ConnectWorkflowAccountParams as dP, type DeleteWorkflowAccountParams as dQ, type Access as dR, type AccountToken as dS, type ActionContext as dT, type ActionData as dU, type ApiResponse as dV, type AvailabilitySlot as dW, type BlockSchema as dX, type BlockSchemaProperties as dY, type BlockSchemaType as dZ, type BookingOrderItemStatus as d_, type CampaignEnrollmentConversationResponse as da, type UpdateCampaignEnrollmentParams as db, type UpdateCampaignEnrollmentDraftParams as dc, type UpdateCampaignEnrollmentStepExecutionParams as dd, type ReplyCampaignEnrollmentParams as de, type StopCampaignEnrollmentParams as df, type FindCampaignMessagesParams as dg, type CampaignMessage as dh, type UpdateCampaignMessageParams as di, type CreateSuppressionParams as dj, type Suppression as dk, type UpdateSuppressionParams as dl, type GetSuppressionParams as dm, type FindSuppressionsParams as dn, type CreateLeadResearchRunParams as dp, type LeadResearchRun as dq, type FindLeadResearchRunsParams as dr, type GetLeadResearchRunParams as ds, type UpdateLeadResearchRunParams as dt, type CancelLeadResearchRunParams as du, type SendLeadResearchMessageParams as dv, type SendLeadResearchMessageResult as dw, type FindLeadResearchMessagesParams as dx, type LeadResearchMessage as dy, type ValidateLeadEmailParams as dz, type AvailabilityResponse as e, type FulfillmentOrderLine as e$, type CampaignEnrollmentImportResult$1 as e0, type CampaignEnrollmentImportSource as e1, type CampaignEnrollmentStatus as e2, type CampaignManualTaskOutcome as e3, type CampaignMessageCopySource as e4, type CampaignMessageDirection as e5, type CampaignMessageStatus as e6, type CampaignMessageType as e7, type CampaignRoute as e8, type CampaignStatus as e9, type CustomsDeclaration as eA, type CustomsItem as eB, type DaySlots as eC, type DigitalAccessGrant as eD, type DigitalAccessGrantStatus as eE, type DigitalAsset as eF, type DigitalAssetStatus as eG, type DigitalAssetType as eH, type DigitalDeliveryPolicy as eI, type Discount as eJ, type DiscountAllocation as eK, type EmailTemplateStatus as eL, type EmailTemplateVariable as eM, type EntryBlockQuery as eN, type EntryStatus as eO, type EshopItem as eP, type EshopQuoteItem as eQ, type EshopStoreState as eR, type Event as eS, type EventAction as eT, type ExecutionStatus as eU, type FieldOperation as eV, type FormFieldType as eW, type FormSchema as eX, type FormSchemaType as eY, type FormStatus as eZ, type FulfillmentOrder as e_, type CartOrigin as ea, type CartStatus as eb, type ChannelMessage as ec, type ChannelType as ed, type CheckoutPaymentAction as ee, type CollectionStatus as ef, type Condition as eg, type ConditionValue as eh, type ContactChannel as ei, type ContactListContentAccess as ej, type ContactListContentAccessStatus as ek, type ContactListContentAccessTarget as el, type ContactListMembership as em, type ContactListMembershipPayment as en, type ContactListMembershipProvider as eo, type ContactListMembershipProviderCancellation as ep, type ContactListMembershipProviderCancellationError as eq, type ContactListMembershipProviderCancellationStatus as er, type ContactListMembershipStatus as es, type ContactListPlan as et, type ContactListPlanStatus as eu, type ContactListSource as ev, type ContactListStatus as ew, type ContactListType as ex, type ContactStatus as ey, type Coordinates as ez, type OrderQuote as f, type OutreachStepType as f$, type FulfillmentOrderRequestStatus as f0, type FulfillmentOrderStatus as f1, type GalleryItem as f2, type GeoLocation as f3, type GeoLocationBlock as f4, type HistoryEntry as f5, type ImportContactListRowResult as f6, type ImportContactRowError as f7, type ImportContactRowInput as f8, type ImportContactRowResult as f9, type NodeResult as fA, type OpportunitySource as fB, type OpportunityStage as fC, type OpportunityType as fD, type OrderCancellationReason as fE, type OrderCheckoutCompatibleItemInput as fF, type OrderFulfillmentStatus as fG, type OrderItem as fH, type OrderItemFulfillmentStatus as fI, type OrderItemSnapshot as fJ, type OrderItemStatus as fK, type OrderPayment as fL, type OrderPaymentPromoCode as fM, type OrderPaymentProvider as fN, type OrderPaymentRefund as fO, type OrderPaymentStatus as fP, type OrderPaymentSummaryStatus as fQ, type OrderPaymentTax as fR, type OrderPaymentTaxLine as fS, type OrderQuoteCompatibleItemInput as fT, type OrderQuoteItemInput as fU, type OrderShipping as fV, type OrderStatus as fW, type OutreachPersonalizationCounters as fX, type OutreachPersonalizationState as fY, type OutreachPersonalizationStatus as fZ, type OutreachStep as f_, type ImportContactsPreviewParams as fa, type ImportFieldMapping as fb, type ImportPreviewRow as fc, type InstagramPlacement as fd, type InventoryLevel as fe, type Language as ff, type LeadEmailClassification as fg, type LeadInsight as fh, type LeadResearchMessageRole as fi, type LeadResearchRunStatus as fj, type LeadScores as fk, type LeadValidationCheck as fl, type LeadValidationCheckStatus as fm, type LineMoneySnapshot as fn, type MailboxConnectionSecurity as fo, type MailboxPreset as fp, type MailboxStatus as fq, type MailboxSyncStatus as fr, type ManualTaskContinueBehavior as fs, type MediaRef as ft, type MediaResolution as fu, type MerchantCredit as fv, type MerchantCreditReason as fw, type MerchantCreditStatus as fx, type MerchantRecovery as fy, type MerchantRecoveryStatus as fz, type PaymentMethod as g, type SocialPublicationCommentReply as g$, type OutreachThreadMode as g0, type Parcel as g1, type PaymentCaptureMethod as g2, PaymentMethodType as g3, type PaymentStoreConfig as g4, type PaymentTransaction as g5, type PaymentTransactionProvider as g6, type PaymentTransactionStatus as g7, type PaymentTransactionType as g8, type ProductInventory as g9, type ServiceStatus as gA, type Shipment as gB, type ShipmentLine as gC, type ShippingLabelAdjustment as gD, type ShippingLabelAdjustmentStatus as gE, type ShippingLabelProviderPurchase as gF, type ShippingLabelProviderRefund as gG, type ShippingLabelPurchase as gH, type ShippingLabelPurchaseError as gI, type ShippingLabelPurchaseStatus as gJ, type ShippingLabelRefundStatus as gK, type ShippingLine as gL, type ShippingMethod as gM, type ShippingStatus as gN, type ShippingWeightTier as gO, type Slot as gP, type SlotRange as gQ, type SmtpImapMailboxProvider as gR, type SocialAnalyticsCapabilities as gS, type SocialDestinationMetadata as gT, type SocialEngagementCapabilities as gU, type SocialOAuthCallbackStatus as gV, type SocialOAuthCredential as gW, type SocialOAuthDestinationOption as gX, type SocialProviderType as gY, type SocialPublicationCommentIntent as gZ, type SocialPublicationCommentPriority as g_, type ProductLineItem as ga, type ProductLineItemSnapshot as gb, type ProductQuoteItemInput as gc, type ProductQuoteLine as gd, type ProductQuoteLineAvailability as ge, type ProductStatus as gf, type PromoCodeStatus as gg, type PromoCodeValidation as gh, type ProviderAvailability as gi, type ProviderStatus as gj, type ProviderTimelinePoint as gk, type ProviderWithTimeline as gl, type PurchaseLabelResult as gm, type QuoteLine as gn, type RefundLine as go, type RefundStatus as gp, type RefundType as gq, type ResearchContactListMember as gr, type ServiceCheckoutPart as gs, type ServiceDuration as gt, type ServiceLineItem as gu, type ServiceLineItemSnapshot as gv, type ServiceQuoteItem as gw, type ServiceQuoteItemInput as gx, type ServiceQuoteLine as gy, type ServiceQuoteLineAvailability as gz, type ProductCheckoutItemInput as h, type ActionSession as h$, type SocialPublicationCommentReplyError as h0, type SocialPublicationCommentReplyStatus as h1, type SocialPublicationCommentStatus as h2, type SocialPublicationContent as h3, type SocialPublicationStatus as h4, type SpecificDate as h5, type StoreMembership as h6, type StoreSubscription as h7, type StoreSubscriptionPayment as h8, type StoreSubscriptionProvider as h9, type TrustedProductCheckoutItemInput as hA, type TrustedServiceCheckoutItemInput as hB, type ValidationError as hC, type WebhookEventSubscription as hD, type WorkflowAccountProfile as hE, type WorkflowAccountType as hF, type WorkflowDeployWebhookNode as hG, type WorkflowEdge as hH, type WorkflowGoogleDriveUploadNode as hI, type WorkflowHttpMethod as hJ, type WorkflowHttpNode as hK, type WorkflowLoopNode as hL, type WorkflowNode as hM, type WorkflowStatus as hN, type WorkflowSwitchNode as hO, type WorkflowSwitchRule as hP, type WorkflowTransformNode as hQ, type WorkflowTriggerNode as hR, type WorkingDay as hS, type WorkingHour as hT, type YoutubePrivacy as hU, type Zone as hV, type AccountAddress as hW, type AccountApiToken as hX, type AccountLifecycle as hY, type ActionDevice as hZ, type ActionLocation as h_, type StoreSubscriptionProviderError as ha, type StoreSubscriptionProviderLifecycle as hb, type StoreSubscriptionProviderLifecycleStatus as hc, type StoreSubscriptionProviderOperation as hd, type StoreSubscriptionSource as he, type StoreSubscriptionStatus as hf, type SubscriptionPrice as hg, type SuppressionReason as hh, type SuppressionScopeType as hi, type SuppressionSource as hj, type SuppressionStatus as hk, type SuppressionTargetType as hl, type SystemTemplateKey as hm, type TaxLine as hn, type TaxLineReversal as ho, type TaxonomyEntry as hp, type TaxonomyField as hq, type TaxonomyFieldQuery as hr, type TaxonomyQuery as hs, type TaxonomySchema as ht, type TaxonomySchemaType as hu, type TaxonomyStatus as hv, type TiktokPrivacy as hw, type TimelinePoint as hx, type TrustedOrderCheckoutCompatibleItemInput as hy, type TrustedOrderCheckoutItemInput as hz, type ServiceCheckoutItemInput as i, type BlockType as i0, type ContactChannelConsentStatus as i1, type ContactInfo as i2, type ContactSessionToken$1 as i3, type ContactVerificationCode$1 as i4, type CreateProductVariantInput as i5, type FacebookPageContent as i6, type GeoLocationBlockProperties as i7, type GetAnalyticsHealthParams as i8, type GetAnalyticsParams as i9, type YoutubeChannelContent as iA, type GetDeliveryStatsParams as ia, type InstagramBusinessContent as ib, type IntervalPeriod as ic, type LoginAccountParams as id, type LogoutParams as ie, type OrderCheckoutParams as ig, type OrderRefundError as ih, type PaymentTaxLine as ii, type PreviewEmailTemplateWarning as ij, type PriceProvider as ik, type PromoUsage$1 as il, type SearchOrderServiceItemsParams as im, type ServiceProviderInput as io, type SetContactEmailParams as ip, type SetupAnalyticsParams as iq, type SocialActionAuthor as ir, type StoreEmails as is, type StoreRole as it, type SubscriptionAction as iu, type SubscriptionInterval as iv, type TiktokAccountContent as iw, type TimeRange as ix, type UpdateProductVariantInput as iy, type XAccountContent as iz, type ContactDetail as j, type Store as k, type Collection as l, type GetEntryParams as m, type GetEntriesParams as n, type PaginatedResponse as o, type GetFormParams as p, type SubmitFormParams as q, type FormSubmission as r, type GetTaxonomyParams as s, type GetTaxonomyChildrenParams as t, type GetProductParams as u, type GetProductsParams as v, type GetCurrentCartParams as w, type GetCartParams as x, type AddCartItemParams as y, type RemoveCartItemParams as z };
|