arky-sdk 0.3.0 → 0.3.2
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 +114 -0
- package/dist/{validation-C9UAYKke.d.cts → index-DEmVFs0E.d.ts} +20 -9
- package/dist/{validation-DIvAzYjG.d.ts → index-DOEos-hV.d.cts} +20 -9
- package/dist/index.cjs +1170 -815
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +391 -259
- package/dist/index.d.ts +391 -259
- package/dist/index.js +1149 -803
- package/dist/index.js.map +1 -1
- package/dist/types.cjs.map +1 -1
- package/dist/types.d.cts +736 -2
- package/dist/types.d.ts +736 -2
- package/dist/types.js.map +1 -1
- package/dist/utils.cjs +17 -34
- package/dist/utils.cjs.map +1 -1
- package/dist/utils.d.cts +1 -8
- package/dist/utils.d.ts +1 -8
- package/dist/utils.js +18 -34
- package/dist/utils.js.map +1 -1
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,3 +1,738 @@
|
|
|
1
|
+
interface RequestOptions {
|
|
2
|
+
successMessage?: string;
|
|
3
|
+
errorMessage?: string;
|
|
4
|
+
headers?: Record<string, string>;
|
|
5
|
+
}
|
|
6
|
+
interface EshopItem {
|
|
7
|
+
productId: string;
|
|
8
|
+
variantId: string;
|
|
9
|
+
quantity: number;
|
|
10
|
+
}
|
|
11
|
+
interface GetQuoteParams {
|
|
12
|
+
items: EshopItem[];
|
|
13
|
+
market: string;
|
|
14
|
+
currency: string;
|
|
15
|
+
paymentMethod: string;
|
|
16
|
+
shippingMethodId?: string;
|
|
17
|
+
promoCode?: string;
|
|
18
|
+
}
|
|
19
|
+
interface CheckoutParams {
|
|
20
|
+
items: EshopItem[];
|
|
21
|
+
paymentMethod: string;
|
|
22
|
+
blocks?: any[];
|
|
23
|
+
market: string;
|
|
24
|
+
shippingMethodId: string;
|
|
25
|
+
promoCode?: string;
|
|
26
|
+
}
|
|
27
|
+
interface GetProductsParams {
|
|
28
|
+
categoryIds?: string[] | null;
|
|
29
|
+
status?: string;
|
|
30
|
+
limit?: number;
|
|
31
|
+
cursor?: string;
|
|
32
|
+
}
|
|
33
|
+
interface GetProductBySlugParams {
|
|
34
|
+
businessId: string;
|
|
35
|
+
slug: string;
|
|
36
|
+
}
|
|
37
|
+
interface GetCollectionEntriesParams {
|
|
38
|
+
collectionId: string;
|
|
39
|
+
limit?: number;
|
|
40
|
+
cursor?: string;
|
|
41
|
+
ids?: string[];
|
|
42
|
+
}
|
|
43
|
+
interface CreateCollectionEntryParams {
|
|
44
|
+
collectionId: string;
|
|
45
|
+
blocks: any[];
|
|
46
|
+
status?: string;
|
|
47
|
+
}
|
|
48
|
+
interface GetCollectionEntryParams {
|
|
49
|
+
id: string;
|
|
50
|
+
}
|
|
51
|
+
interface DeleteCollectionEntryParams {
|
|
52
|
+
id: string;
|
|
53
|
+
}
|
|
54
|
+
interface UploadBusinessMediaParams {
|
|
55
|
+
businessId: string;
|
|
56
|
+
files?: File[];
|
|
57
|
+
urls?: string[];
|
|
58
|
+
}
|
|
59
|
+
interface DeleteBusinessMediaParams {
|
|
60
|
+
id: string;
|
|
61
|
+
mediaId: string;
|
|
62
|
+
}
|
|
63
|
+
interface GetBusinessMediaParams {
|
|
64
|
+
businessId: string;
|
|
65
|
+
cursor?: string | null;
|
|
66
|
+
limit?: number;
|
|
67
|
+
}
|
|
68
|
+
interface NewsletterSubscribeParams {
|
|
69
|
+
newsletterId: string;
|
|
70
|
+
email: string;
|
|
71
|
+
customerId?: string;
|
|
72
|
+
payment?: any;
|
|
73
|
+
}
|
|
74
|
+
interface NewsletterFindParams {
|
|
75
|
+
businessId: string;
|
|
76
|
+
}
|
|
77
|
+
interface NewsletterGetParams {
|
|
78
|
+
id: string;
|
|
79
|
+
}
|
|
80
|
+
interface UpdateUserParams {
|
|
81
|
+
id: string;
|
|
82
|
+
name?: string;
|
|
83
|
+
email?: string;
|
|
84
|
+
}
|
|
85
|
+
interface LoginUserParams {
|
|
86
|
+
email?: string;
|
|
87
|
+
password?: string;
|
|
88
|
+
provider: string;
|
|
89
|
+
token?: string;
|
|
90
|
+
code?: string;
|
|
91
|
+
originUrl?: string;
|
|
92
|
+
}
|
|
93
|
+
interface RegisterUserParams {
|
|
94
|
+
name: string;
|
|
95
|
+
email: string;
|
|
96
|
+
password: string;
|
|
97
|
+
}
|
|
98
|
+
interface UpdateProfilePhoneParams {
|
|
99
|
+
phoneNumber: string;
|
|
100
|
+
}
|
|
101
|
+
interface VerifyPhoneCodeParams {
|
|
102
|
+
phoneNumber: string;
|
|
103
|
+
code: string;
|
|
104
|
+
}
|
|
105
|
+
interface GetServicesParams {
|
|
106
|
+
providerId?: string;
|
|
107
|
+
limit?: number;
|
|
108
|
+
cursor?: string;
|
|
109
|
+
}
|
|
110
|
+
interface GetReservationQuoteParams {
|
|
111
|
+
parts: any[];
|
|
112
|
+
market: string;
|
|
113
|
+
currency: string;
|
|
114
|
+
paymentMethod: string;
|
|
115
|
+
promoCode?: string;
|
|
116
|
+
}
|
|
117
|
+
interface GetAvailableSlotsParams {
|
|
118
|
+
serviceId: string;
|
|
119
|
+
providerId?: string | null;
|
|
120
|
+
from: number;
|
|
121
|
+
to: number;
|
|
122
|
+
limit?: number;
|
|
123
|
+
}
|
|
124
|
+
interface GetAnalyticsParams {
|
|
125
|
+
businessId: string;
|
|
126
|
+
metrics?: string[];
|
|
127
|
+
period?: string;
|
|
128
|
+
start_date?: string;
|
|
129
|
+
end_date?: string;
|
|
130
|
+
interval?: string;
|
|
131
|
+
}
|
|
132
|
+
interface GetAnalyticsHealthParams {
|
|
133
|
+
businessId: string;
|
|
134
|
+
}
|
|
135
|
+
interface GetNotificationsParams {
|
|
136
|
+
previous_id?: string;
|
|
137
|
+
limit: number;
|
|
138
|
+
}
|
|
139
|
+
interface CreateRoleParams {
|
|
140
|
+
name: string;
|
|
141
|
+
businessId?: string;
|
|
142
|
+
parentRoles?: string[];
|
|
143
|
+
permissions?: any[];
|
|
144
|
+
[key: string]: any;
|
|
145
|
+
}
|
|
146
|
+
interface UpdateRoleParams {
|
|
147
|
+
id: string;
|
|
148
|
+
name?: string;
|
|
149
|
+
businessId?: string;
|
|
150
|
+
parentRoles?: string[];
|
|
151
|
+
permissions?: any[];
|
|
152
|
+
[key: string]: any;
|
|
153
|
+
}
|
|
154
|
+
interface DeleteRoleParams {
|
|
155
|
+
id: string;
|
|
156
|
+
}
|
|
157
|
+
interface GetRoleParams {
|
|
158
|
+
id: string;
|
|
159
|
+
}
|
|
160
|
+
interface GetRolesParams {
|
|
161
|
+
businessId?: string;
|
|
162
|
+
action?: string;
|
|
163
|
+
}
|
|
164
|
+
interface GetRoleParentsParams {
|
|
165
|
+
roleId: string;
|
|
166
|
+
}
|
|
167
|
+
interface GetInvoiceParams {
|
|
168
|
+
roleId: string;
|
|
169
|
+
from: string;
|
|
170
|
+
to: string;
|
|
171
|
+
language: string;
|
|
172
|
+
}
|
|
173
|
+
interface CreatePromoCodeParams {
|
|
174
|
+
businessId: string;
|
|
175
|
+
code?: string;
|
|
176
|
+
name?: string;
|
|
177
|
+
description?: string;
|
|
178
|
+
discountType?: string;
|
|
179
|
+
discountValue?: number;
|
|
180
|
+
minOrderValue?: number;
|
|
181
|
+
maxDiscountAmount?: number;
|
|
182
|
+
usageLimit?: number;
|
|
183
|
+
usagePerUser?: number;
|
|
184
|
+
startsAt?: string;
|
|
185
|
+
expiresAt?: string;
|
|
186
|
+
applicableProducts?: string[];
|
|
187
|
+
applicableCategories?: string[];
|
|
188
|
+
status?: string;
|
|
189
|
+
[key: string]: any;
|
|
190
|
+
}
|
|
191
|
+
interface UpdatePromoCodeParams {
|
|
192
|
+
id: string;
|
|
193
|
+
businessId: string;
|
|
194
|
+
code?: string;
|
|
195
|
+
name?: string;
|
|
196
|
+
description?: string;
|
|
197
|
+
discountType?: string;
|
|
198
|
+
discountValue?: number;
|
|
199
|
+
minOrderValue?: number;
|
|
200
|
+
maxDiscountAmount?: number;
|
|
201
|
+
usageLimit?: number;
|
|
202
|
+
usagePerUser?: number;
|
|
203
|
+
startsAt?: string;
|
|
204
|
+
expiresAt?: string;
|
|
205
|
+
applicableProducts?: string[];
|
|
206
|
+
applicableCategories?: string[];
|
|
207
|
+
status?: string;
|
|
208
|
+
[key: string]: any;
|
|
209
|
+
}
|
|
210
|
+
interface DeletePromoCodeParams {
|
|
211
|
+
id: string;
|
|
212
|
+
businessId: string;
|
|
213
|
+
}
|
|
214
|
+
interface GetPromoCodeParams {
|
|
215
|
+
id: string;
|
|
216
|
+
businessId: string;
|
|
217
|
+
}
|
|
218
|
+
interface GetPromoCodesParams {
|
|
219
|
+
businessId: string;
|
|
220
|
+
statuses?: string[];
|
|
221
|
+
query?: string;
|
|
222
|
+
limit?: number;
|
|
223
|
+
cursor?: string;
|
|
224
|
+
sortField?: string;
|
|
225
|
+
sortDirection?: string;
|
|
226
|
+
createdAtFrom?: string;
|
|
227
|
+
createdAtTo?: string;
|
|
228
|
+
startsAtFrom?: string;
|
|
229
|
+
startsAtTo?: string;
|
|
230
|
+
expiresAtFrom?: string;
|
|
231
|
+
expiresAtTo?: string;
|
|
232
|
+
}
|
|
233
|
+
interface GetPromoCodeByCodeParams {
|
|
234
|
+
businessId: string;
|
|
235
|
+
code: string;
|
|
236
|
+
}
|
|
237
|
+
interface UpdatePromoCodeStatusParams {
|
|
238
|
+
id: string;
|
|
239
|
+
businessId: string;
|
|
240
|
+
status: string;
|
|
241
|
+
reason?: string;
|
|
242
|
+
}
|
|
243
|
+
interface ValidatePromoCodeParams {
|
|
244
|
+
businessId: string;
|
|
245
|
+
code: string;
|
|
246
|
+
orderTotal?: number;
|
|
247
|
+
userId?: string;
|
|
248
|
+
}
|
|
249
|
+
interface ApplyPromoCodeParams {
|
|
250
|
+
businessId: string;
|
|
251
|
+
code: string;
|
|
252
|
+
orderId: string;
|
|
253
|
+
userId: string;
|
|
254
|
+
}
|
|
255
|
+
interface CreateBusinessParams {
|
|
256
|
+
name: string;
|
|
257
|
+
slug?: string;
|
|
258
|
+
description?: string;
|
|
259
|
+
email?: string;
|
|
260
|
+
phone?: string;
|
|
261
|
+
website?: string;
|
|
262
|
+
address?: any;
|
|
263
|
+
settings?: any;
|
|
264
|
+
[key: string]: any;
|
|
265
|
+
}
|
|
266
|
+
interface UpdateBusinessParams {
|
|
267
|
+
id: string;
|
|
268
|
+
name?: string;
|
|
269
|
+
slug?: string;
|
|
270
|
+
description?: string;
|
|
271
|
+
email?: string;
|
|
272
|
+
phone?: string;
|
|
273
|
+
website?: string;
|
|
274
|
+
address?: any;
|
|
275
|
+
settings?: any;
|
|
276
|
+
[key: string]: any;
|
|
277
|
+
}
|
|
278
|
+
interface DeleteBusinessParams {
|
|
279
|
+
id: string;
|
|
280
|
+
}
|
|
281
|
+
interface GetBusinessParams {
|
|
282
|
+
id: string;
|
|
283
|
+
}
|
|
284
|
+
interface GetBusinessParentsParams {
|
|
285
|
+
businessId: string;
|
|
286
|
+
}
|
|
287
|
+
interface TriggerBuildsParams {
|
|
288
|
+
id: string;
|
|
289
|
+
}
|
|
290
|
+
interface GetSubscriptionParams {
|
|
291
|
+
businessId: string;
|
|
292
|
+
}
|
|
293
|
+
interface CreateSubscriptionParams {
|
|
294
|
+
businessId: string;
|
|
295
|
+
planId: string;
|
|
296
|
+
successUrl: string;
|
|
297
|
+
cancelUrl: string;
|
|
298
|
+
}
|
|
299
|
+
interface UpdateSubscriptionParams {
|
|
300
|
+
businessId: string;
|
|
301
|
+
planId: string;
|
|
302
|
+
successUrl: string;
|
|
303
|
+
cancelUrl: string;
|
|
304
|
+
}
|
|
305
|
+
interface CancelSubscriptionParams {
|
|
306
|
+
businessId: string;
|
|
307
|
+
immediately?: boolean;
|
|
308
|
+
}
|
|
309
|
+
interface ReactivateSubscriptionParams {
|
|
310
|
+
businessId: string;
|
|
311
|
+
}
|
|
312
|
+
interface CreatePortalSessionParams {
|
|
313
|
+
businessId: string;
|
|
314
|
+
returnUrl: string;
|
|
315
|
+
}
|
|
316
|
+
interface InviteUserParams {
|
|
317
|
+
businessId: string;
|
|
318
|
+
email: string;
|
|
319
|
+
roleIds?: string[] | null;
|
|
320
|
+
}
|
|
321
|
+
interface HandleInvitationParams {
|
|
322
|
+
businessId: string;
|
|
323
|
+
token: string;
|
|
324
|
+
action: string;
|
|
325
|
+
}
|
|
326
|
+
interface TestWebhookParams {
|
|
327
|
+
businessId: string;
|
|
328
|
+
webhook: any;
|
|
329
|
+
}
|
|
330
|
+
interface CreateCollectionParams {
|
|
331
|
+
businessId: string;
|
|
332
|
+
name: string;
|
|
333
|
+
description?: string;
|
|
334
|
+
schema?: any;
|
|
335
|
+
[key: string]: any;
|
|
336
|
+
}
|
|
337
|
+
interface UpdateCollectionParams {
|
|
338
|
+
businessId: string;
|
|
339
|
+
id: string;
|
|
340
|
+
name?: string;
|
|
341
|
+
description?: string;
|
|
342
|
+
schema?: any;
|
|
343
|
+
[key: string]: any;
|
|
344
|
+
}
|
|
345
|
+
interface DeleteCollectionParams {
|
|
346
|
+
businessId: string;
|
|
347
|
+
id: string;
|
|
348
|
+
}
|
|
349
|
+
interface GetCollectionParams {
|
|
350
|
+
businessId: string;
|
|
351
|
+
id: string;
|
|
352
|
+
}
|
|
353
|
+
interface GetCollectionsParams {
|
|
354
|
+
businessId: string;
|
|
355
|
+
name?: string | null;
|
|
356
|
+
ids?: string[] | null;
|
|
357
|
+
}
|
|
358
|
+
interface GetEntriesParams {
|
|
359
|
+
businessId: string;
|
|
360
|
+
owner?: string | null;
|
|
361
|
+
collectionId?: string | null;
|
|
362
|
+
limit?: number;
|
|
363
|
+
cursor?: string;
|
|
364
|
+
ids?: string[] | null;
|
|
365
|
+
query?: string | null;
|
|
366
|
+
type?: string | null;
|
|
367
|
+
statuses?: string[] | null;
|
|
368
|
+
sortField?: string | null;
|
|
369
|
+
sortDirection?: string | null;
|
|
370
|
+
createdAtFrom?: string | null;
|
|
371
|
+
createdAtTo?: string | null;
|
|
372
|
+
parentId?: string | null;
|
|
373
|
+
}
|
|
374
|
+
interface CreateEntryParams {
|
|
375
|
+
businessId: string;
|
|
376
|
+
owner?: string;
|
|
377
|
+
collectionId?: string;
|
|
378
|
+
blocks: any[];
|
|
379
|
+
status?: string;
|
|
380
|
+
[key: string]: any;
|
|
381
|
+
}
|
|
382
|
+
interface UpdateEntryParams {
|
|
383
|
+
businessId: string;
|
|
384
|
+
id: string;
|
|
385
|
+
owner?: string;
|
|
386
|
+
collectionId?: string;
|
|
387
|
+
blocks?: any[];
|
|
388
|
+
status?: string;
|
|
389
|
+
[key: string]: any;
|
|
390
|
+
}
|
|
391
|
+
interface DeleteEntryParams {
|
|
392
|
+
businessId: string;
|
|
393
|
+
id: string;
|
|
394
|
+
}
|
|
395
|
+
interface GetEntryParams {
|
|
396
|
+
businessId: string;
|
|
397
|
+
id: string;
|
|
398
|
+
}
|
|
399
|
+
interface GenerateBlocksParams {
|
|
400
|
+
businessId: string;
|
|
401
|
+
[key: string]: any;
|
|
402
|
+
}
|
|
403
|
+
interface GetVariableMetadataParams {
|
|
404
|
+
entryType: string;
|
|
405
|
+
}
|
|
406
|
+
interface SendEntryParams {
|
|
407
|
+
businessId: string;
|
|
408
|
+
entryId: string;
|
|
409
|
+
scheduledAt?: number;
|
|
410
|
+
}
|
|
411
|
+
interface CreateProductParams {
|
|
412
|
+
businessId: string;
|
|
413
|
+
name: string;
|
|
414
|
+
description?: string;
|
|
415
|
+
categoryIds?: string[];
|
|
416
|
+
variants?: any[];
|
|
417
|
+
status?: string;
|
|
418
|
+
[key: string]: any;
|
|
419
|
+
}
|
|
420
|
+
interface UpdateProductParams {
|
|
421
|
+
businessId: string;
|
|
422
|
+
id: string;
|
|
423
|
+
name?: string;
|
|
424
|
+
description?: string;
|
|
425
|
+
categoryIds?: string[];
|
|
426
|
+
variants?: any[];
|
|
427
|
+
status?: string;
|
|
428
|
+
[key: string]: any;
|
|
429
|
+
}
|
|
430
|
+
interface DeleteProductParams {
|
|
431
|
+
businessId: string;
|
|
432
|
+
id: string;
|
|
433
|
+
}
|
|
434
|
+
interface GetProductParams {
|
|
435
|
+
businessId: string;
|
|
436
|
+
id: string;
|
|
437
|
+
}
|
|
438
|
+
interface GetAllProductsParams {
|
|
439
|
+
businessId: string;
|
|
440
|
+
categoryIds?: string[] | null;
|
|
441
|
+
categoryId?: string | null;
|
|
442
|
+
categoryFilterBlocks?: string | null;
|
|
443
|
+
matchAll?: boolean | null;
|
|
444
|
+
statuses?: string[] | null;
|
|
445
|
+
productType?: string | null;
|
|
446
|
+
query?: string | null;
|
|
447
|
+
limit?: number | null;
|
|
448
|
+
cursor?: string | null;
|
|
449
|
+
sortField?: string | null;
|
|
450
|
+
sortDirection?: string | null;
|
|
451
|
+
createdAtFrom?: string | null;
|
|
452
|
+
createdAtTo?: string | null;
|
|
453
|
+
}
|
|
454
|
+
interface GetOrderParams {
|
|
455
|
+
businessId: string;
|
|
456
|
+
id: string;
|
|
457
|
+
}
|
|
458
|
+
interface GetOrdersParams {
|
|
459
|
+
businessId: string;
|
|
460
|
+
userId?: string | null;
|
|
461
|
+
statuses?: string[] | null;
|
|
462
|
+
query?: string | null;
|
|
463
|
+
limit?: number | null;
|
|
464
|
+
cursor?: string | null;
|
|
465
|
+
sortField?: string | null;
|
|
466
|
+
sortDirection?: string | null;
|
|
467
|
+
createdAtFrom?: string | null;
|
|
468
|
+
createdAtTo?: string | null;
|
|
469
|
+
}
|
|
470
|
+
interface UpdateOrderStatusParams {
|
|
471
|
+
businessId: string;
|
|
472
|
+
id: string;
|
|
473
|
+
status: string;
|
|
474
|
+
[key: string]: any;
|
|
475
|
+
}
|
|
476
|
+
interface UpdateOrderPaymentStatusParams {
|
|
477
|
+
businessId: string;
|
|
478
|
+
id: string;
|
|
479
|
+
paymentStatus: string;
|
|
480
|
+
[key: string]: any;
|
|
481
|
+
}
|
|
482
|
+
interface UpdateOrderParams {
|
|
483
|
+
businessId: string;
|
|
484
|
+
id?: string;
|
|
485
|
+
[key: string]: any;
|
|
486
|
+
}
|
|
487
|
+
interface CreateOrderParams {
|
|
488
|
+
businessId: string;
|
|
489
|
+
[key: string]: any;
|
|
490
|
+
}
|
|
491
|
+
interface CreateNewsletterParams {
|
|
492
|
+
businessId: string;
|
|
493
|
+
name: string;
|
|
494
|
+
description: string;
|
|
495
|
+
newsletterType: 'FREE' | 'PAID';
|
|
496
|
+
prices?: any[];
|
|
497
|
+
unsubscribeRedirectUrl: string;
|
|
498
|
+
[key: string]: any;
|
|
499
|
+
}
|
|
500
|
+
interface UpdateNewsletterParams {
|
|
501
|
+
id: string;
|
|
502
|
+
name?: string;
|
|
503
|
+
description?: string;
|
|
504
|
+
newsletterType?: 'FREE' | 'PAID';
|
|
505
|
+
status?: 'ACTIVE' | 'INACTIVE' | 'SUSPENDED';
|
|
506
|
+
prices?: any[];
|
|
507
|
+
unsubscribeRedirectUrl?: string;
|
|
508
|
+
[key: string]: any;
|
|
509
|
+
}
|
|
510
|
+
interface DeleteNewsletterParams {
|
|
511
|
+
id: string;
|
|
512
|
+
}
|
|
513
|
+
interface GetSubscribersParams {
|
|
514
|
+
id: string;
|
|
515
|
+
}
|
|
516
|
+
interface UnsubscribeParams {
|
|
517
|
+
token: string;
|
|
518
|
+
}
|
|
519
|
+
interface CreateReservationParams {
|
|
520
|
+
businessId?: string;
|
|
521
|
+
[key: string]: any;
|
|
522
|
+
}
|
|
523
|
+
interface UpdateReservationParams {
|
|
524
|
+
id: string;
|
|
525
|
+
statuses?: any;
|
|
526
|
+
blocks?: any;
|
|
527
|
+
parts?: any;
|
|
528
|
+
[key: string]: any;
|
|
529
|
+
}
|
|
530
|
+
interface CreateProviderParams {
|
|
531
|
+
businessId: string;
|
|
532
|
+
name: string;
|
|
533
|
+
[key: string]: any;
|
|
534
|
+
}
|
|
535
|
+
interface UpdateProviderParams {
|
|
536
|
+
businessId: string;
|
|
537
|
+
id: string;
|
|
538
|
+
name?: string;
|
|
539
|
+
[key: string]: any;
|
|
540
|
+
}
|
|
541
|
+
interface DeleteProviderParams {
|
|
542
|
+
businessId: string;
|
|
543
|
+
id: string;
|
|
544
|
+
}
|
|
545
|
+
interface CreateServiceParams {
|
|
546
|
+
businessId: string;
|
|
547
|
+
name: string;
|
|
548
|
+
[key: string]: any;
|
|
549
|
+
}
|
|
550
|
+
interface UpdateServiceParams {
|
|
551
|
+
businessId: string;
|
|
552
|
+
id: string;
|
|
553
|
+
name?: string;
|
|
554
|
+
[key: string]: any;
|
|
555
|
+
}
|
|
556
|
+
interface DeleteServiceParams {
|
|
557
|
+
businessId: string;
|
|
558
|
+
id: string;
|
|
559
|
+
}
|
|
560
|
+
interface GetServiceParams {
|
|
561
|
+
businessId: string;
|
|
562
|
+
id: string;
|
|
563
|
+
}
|
|
564
|
+
interface GetProvidersParams {
|
|
565
|
+
businessId: string;
|
|
566
|
+
serviceId?: string;
|
|
567
|
+
ids?: string[];
|
|
568
|
+
query?: string | null;
|
|
569
|
+
statuses?: string[] | null;
|
|
570
|
+
limit?: number;
|
|
571
|
+
cursor?: string;
|
|
572
|
+
sortField?: string | null;
|
|
573
|
+
sortDirection?: string | null;
|
|
574
|
+
createdAtFrom?: string | null;
|
|
575
|
+
createdAtTo?: string | null;
|
|
576
|
+
categoryId?: string | null;
|
|
577
|
+
categoryFilterBlocks?: string | null;
|
|
578
|
+
}
|
|
579
|
+
interface GetProvidersByServiceParams {
|
|
580
|
+
businessId: string;
|
|
581
|
+
serviceId: string;
|
|
582
|
+
limit?: number;
|
|
583
|
+
cursor?: string;
|
|
584
|
+
}
|
|
585
|
+
interface GetProviderParams {
|
|
586
|
+
businessId: string;
|
|
587
|
+
id: string;
|
|
588
|
+
}
|
|
589
|
+
interface GetAllServicesParams {
|
|
590
|
+
businessId: string;
|
|
591
|
+
providerId?: string;
|
|
592
|
+
ids?: string[];
|
|
593
|
+
query?: string | null;
|
|
594
|
+
statuses?: string[] | null;
|
|
595
|
+
limit?: number;
|
|
596
|
+
cursor?: string;
|
|
597
|
+
sortField?: string | null;
|
|
598
|
+
sortDirection?: string | null;
|
|
599
|
+
createdAtFrom?: string | null;
|
|
600
|
+
createdAtTo?: string | null;
|
|
601
|
+
categoryId?: string | null;
|
|
602
|
+
categoryFilterBlocks?: string | null;
|
|
603
|
+
}
|
|
604
|
+
interface ScheduleSetParams {
|
|
605
|
+
businessId: string;
|
|
606
|
+
workingTime: any;
|
|
607
|
+
serviceIds: string[];
|
|
608
|
+
providerIds: string[];
|
|
609
|
+
}
|
|
610
|
+
interface GetBusinessServiceWorkingTimeParams {
|
|
611
|
+
businessId: string;
|
|
612
|
+
providerId: string;
|
|
613
|
+
serviceId?: string;
|
|
614
|
+
}
|
|
615
|
+
interface SearchMyReservationsParams {
|
|
616
|
+
limit?: number;
|
|
617
|
+
status?: string;
|
|
618
|
+
cursor?: string;
|
|
619
|
+
}
|
|
620
|
+
interface GetReservationParams {
|
|
621
|
+
id: string;
|
|
622
|
+
businessId?: string;
|
|
623
|
+
}
|
|
624
|
+
interface GetReservationPartsParams {
|
|
625
|
+
reservationId?: string;
|
|
626
|
+
}
|
|
627
|
+
interface SearchAvailableSlotsParams {
|
|
628
|
+
businessId: string;
|
|
629
|
+
serviceId: string;
|
|
630
|
+
limit: number;
|
|
631
|
+
from?: number;
|
|
632
|
+
to?: number;
|
|
633
|
+
providerId?: string;
|
|
634
|
+
}
|
|
635
|
+
interface ReservationConfirmParams {
|
|
636
|
+
token: string;
|
|
637
|
+
}
|
|
638
|
+
interface SearchReservationsParams {
|
|
639
|
+
businessIds?: string[];
|
|
640
|
+
serviceIds?: string[];
|
|
641
|
+
providerIds?: string[];
|
|
642
|
+
userId?: string;
|
|
643
|
+
from?: number;
|
|
644
|
+
to?: number;
|
|
645
|
+
status?: string;
|
|
646
|
+
limit?: number;
|
|
647
|
+
cursor?: string;
|
|
648
|
+
sortField?: string;
|
|
649
|
+
sortOrder?: string;
|
|
650
|
+
}
|
|
651
|
+
interface UpdateUserProfileParams {
|
|
652
|
+
name: string;
|
|
653
|
+
phoneNumbers?: string[];
|
|
654
|
+
phoneNumber?: string | null;
|
|
655
|
+
addresses?: any[];
|
|
656
|
+
apiTokens?: any | null;
|
|
657
|
+
}
|
|
658
|
+
interface SetRoleParams {
|
|
659
|
+
userId: string;
|
|
660
|
+
roleId: string;
|
|
661
|
+
}
|
|
662
|
+
interface GetPermissionsParams {
|
|
663
|
+
businessId: string;
|
|
664
|
+
}
|
|
665
|
+
interface GetUsersParams {
|
|
666
|
+
limit?: number;
|
|
667
|
+
cursor?: string | null;
|
|
668
|
+
query?: string;
|
|
669
|
+
roleIds?: string[];
|
|
670
|
+
businessIds?: string[];
|
|
671
|
+
owner?: string;
|
|
672
|
+
}
|
|
673
|
+
interface ConfirmUserParams {
|
|
674
|
+
token: string;
|
|
675
|
+
}
|
|
676
|
+
interface GetLoginUrlParams {
|
|
677
|
+
provider: string;
|
|
678
|
+
originUrl: string;
|
|
679
|
+
redirectUrl: string;
|
|
680
|
+
}
|
|
681
|
+
interface OAuthLoginParams {
|
|
682
|
+
code: string;
|
|
683
|
+
provider: string;
|
|
684
|
+
originUrl: string;
|
|
685
|
+
}
|
|
686
|
+
interface ForgotPasswordParams {
|
|
687
|
+
email: string;
|
|
688
|
+
}
|
|
689
|
+
interface ResetForgotPasswordParams {
|
|
690
|
+
token: string;
|
|
691
|
+
password: string;
|
|
692
|
+
}
|
|
693
|
+
interface ResetPasswordParams {
|
|
694
|
+
newPassword: string;
|
|
695
|
+
oldPassword?: string;
|
|
696
|
+
}
|
|
697
|
+
interface GetUserLocationParams {
|
|
698
|
+
}
|
|
699
|
+
interface LogoutParams {
|
|
700
|
+
}
|
|
701
|
+
interface HandleStripeWebhookParams {
|
|
702
|
+
[key: string]: any;
|
|
703
|
+
}
|
|
704
|
+
interface GetBusinessMarketsParams {
|
|
705
|
+
businessId: string;
|
|
706
|
+
}
|
|
707
|
+
interface GetBusinessMarketParams {
|
|
708
|
+
businessId: string;
|
|
709
|
+
marketId: string;
|
|
710
|
+
}
|
|
711
|
+
interface TrackEmailOpenParams {
|
|
712
|
+
trackingPixelId: string;
|
|
713
|
+
}
|
|
714
|
+
interface GetDeliveryStatsParams {
|
|
715
|
+
businessId: string;
|
|
716
|
+
}
|
|
717
|
+
interface SetupAnalyticsParams {
|
|
718
|
+
[key: string]: any;
|
|
719
|
+
}
|
|
720
|
+
interface ReservationCheckoutParams {
|
|
721
|
+
parts: any[];
|
|
722
|
+
paymentMethod?: string;
|
|
723
|
+
blocks?: any[];
|
|
724
|
+
market?: string;
|
|
725
|
+
promoCode?: string;
|
|
726
|
+
}
|
|
727
|
+
interface ReservationCheckoutParams {
|
|
728
|
+
businessId?: string;
|
|
729
|
+
parts: any[];
|
|
730
|
+
paymentMethod?: string;
|
|
731
|
+
blocks?: any[];
|
|
732
|
+
market?: string;
|
|
733
|
+
promoCode?: string;
|
|
734
|
+
}
|
|
735
|
+
|
|
1
736
|
interface Payment {
|
|
2
737
|
currency: string;
|
|
3
738
|
market: string;
|
|
@@ -158,7 +893,6 @@ interface ApiResponse<T> {
|
|
|
158
893
|
success: boolean;
|
|
159
894
|
data?: T;
|
|
160
895
|
error?: string;
|
|
161
|
-
code?: string;
|
|
162
896
|
cursor?: string;
|
|
163
897
|
total?: number;
|
|
164
898
|
}
|
|
@@ -242,4 +976,4 @@ interface ReservationStoreState {
|
|
|
242
976
|
};
|
|
243
977
|
}
|
|
244
978
|
|
|
245
|
-
export { type ApiResponse, type Block, type Business, type BusinessConfig, type BusinessPaymentMethod, type EshopCartItem, type EshopStoreState, type Location, type Market, type MarketConfigClient, type Newsletter, type PaginatedResponse, type Payment, PaymentMethod, type PaymentProviderConfig, type Price, type PromoCodeValidation, type Quote, type QuoteLineItem, type ReservationCartPart, type ReservationStoreState, type ShippingMethod, type Zone };
|
|
979
|
+
export { type ApiResponse, type ApplyPromoCodeParams, type Block, type Business, type BusinessConfig, type BusinessPaymentMethod, type CancelSubscriptionParams, type CheckoutParams, type ConfirmUserParams, type CreateBusinessParams, type CreateCollectionEntryParams, type CreateCollectionParams, type CreateEntryParams, type CreateNewsletterParams, type CreateOrderParams, type CreatePortalSessionParams, type CreateProductParams, type CreatePromoCodeParams, type CreateProviderParams, type CreateReservationParams, type CreateRoleParams, type CreateServiceParams, type CreateSubscriptionParams, type DeleteBusinessMediaParams, type DeleteBusinessParams, type DeleteCollectionEntryParams, type DeleteCollectionParams, type DeleteEntryParams, type DeleteNewsletterParams, type DeleteProductParams, type DeletePromoCodeParams, type DeleteProviderParams, type DeleteRoleParams, type DeleteServiceParams, type EshopCartItem, type EshopItem, type EshopStoreState, type ForgotPasswordParams, type GenerateBlocksParams, type GetAllProductsParams, type GetAllServicesParams, type GetAnalyticsHealthParams, type GetAnalyticsParams, type GetAvailableSlotsParams, type GetBusinessMarketParams, type GetBusinessMarketsParams, type GetBusinessMediaParams, type GetBusinessParams, type GetBusinessParentsParams, type GetBusinessServiceWorkingTimeParams, type GetCollectionEntriesParams, type GetCollectionEntryParams, type GetCollectionParams, type GetCollectionsParams, type GetDeliveryStatsParams, type GetEntriesParams, type GetEntryParams, type GetInvoiceParams, type GetLoginUrlParams, type GetNotificationsParams, type GetOrderParams, type GetOrdersParams, type GetPermissionsParams, type GetProductBySlugParams, type GetProductParams, type GetProductsParams, type GetPromoCodeByCodeParams, type GetPromoCodeParams, type GetPromoCodesParams, type GetProviderParams, type GetProvidersByServiceParams, type GetProvidersParams, type GetQuoteParams, type GetReservationParams, type GetReservationPartsParams, type GetReservationQuoteParams, type GetRoleParams, type GetRoleParentsParams, type GetRolesParams, type GetServiceParams, type GetServicesParams, type GetSubscribersParams, type GetSubscriptionParams, type GetUserLocationParams, type GetUsersParams, type GetVariableMetadataParams, type HandleInvitationParams, type HandleStripeWebhookParams, type InviteUserParams, type Location, type LoginUserParams, type LogoutParams, type Market, type MarketConfigClient, type Newsletter, type NewsletterFindParams, type NewsletterGetParams, type NewsletterSubscribeParams, type OAuthLoginParams, type PaginatedResponse, type Payment, PaymentMethod, type PaymentProviderConfig, type Price, type PromoCodeValidation, type Quote, type QuoteLineItem, type ReactivateSubscriptionParams, type RegisterUserParams, type RequestOptions, type ReservationCartPart, type ReservationCheckoutParams, type ReservationConfirmParams, type ReservationStoreState, type ResetForgotPasswordParams, type ResetPasswordParams, type ScheduleSetParams, type SearchAvailableSlotsParams, type SearchMyReservationsParams, type SearchReservationsParams, type SendEntryParams, type SetRoleParams, type SetupAnalyticsParams, type ShippingMethod, type TestWebhookParams, type TrackEmailOpenParams, type TriggerBuildsParams, type UnsubscribeParams, type UpdateBusinessParams, type UpdateCollectionParams, type UpdateEntryParams, type UpdateNewsletterParams, type UpdateOrderParams, type UpdateOrderPaymentStatusParams, type UpdateOrderStatusParams, type UpdateProductParams, type UpdateProfilePhoneParams, type UpdatePromoCodeParams, type UpdatePromoCodeStatusParams, type UpdateProviderParams, type UpdateReservationParams, type UpdateRoleParams, type UpdateServiceParams, type UpdateSubscriptionParams, type UpdateUserParams, type UpdateUserProfileParams, type UploadBusinessMediaParams, type ValidatePromoCodeParams, type VerifyPhoneCodeParams, type Zone };
|