arky-sdk 0.3.9 → 0.3.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +30 -28
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +30 -28
- package/dist/index.js.map +1 -1
- package/dist/types.d.cts +0 -73
- package/dist/types.d.ts +0 -73
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -46,7 +46,6 @@ interface DeleteCollectionEntryParams {
|
|
|
46
46
|
id: string;
|
|
47
47
|
}
|
|
48
48
|
interface UploadBusinessMediaParams {
|
|
49
|
-
businessId: string;
|
|
50
49
|
files?: File[];
|
|
51
50
|
urls?: string[];
|
|
52
51
|
}
|
|
@@ -55,7 +54,6 @@ interface DeleteBusinessMediaParams {
|
|
|
55
54
|
mediaId: string;
|
|
56
55
|
}
|
|
57
56
|
interface GetBusinessMediaParams {
|
|
58
|
-
businessId: string;
|
|
59
57
|
cursor?: string | null;
|
|
60
58
|
limit?: number;
|
|
61
59
|
}
|
|
@@ -66,7 +64,6 @@ interface NewsletterSubscribeParams {
|
|
|
66
64
|
payment?: any;
|
|
67
65
|
}
|
|
68
66
|
interface NewsletterFindParams {
|
|
69
|
-
businessId: string;
|
|
70
67
|
}
|
|
71
68
|
interface NewsletterGetParams {
|
|
72
69
|
id: string;
|
|
@@ -121,7 +118,6 @@ interface GetAvailableSlotsParams {
|
|
|
121
118
|
limit?: number;
|
|
122
119
|
}
|
|
123
120
|
interface GetAnalyticsParams {
|
|
124
|
-
businessId: string;
|
|
125
121
|
metrics?: string[];
|
|
126
122
|
period?: string;
|
|
127
123
|
start_date?: string;
|
|
@@ -129,7 +125,6 @@ interface GetAnalyticsParams {
|
|
|
129
125
|
interval?: string;
|
|
130
126
|
}
|
|
131
127
|
interface GetAnalyticsHealthParams {
|
|
132
|
-
businessId: string;
|
|
133
128
|
}
|
|
134
129
|
interface GetNotificationsParams {
|
|
135
130
|
previous_id?: string;
|
|
@@ -137,7 +132,6 @@ interface GetNotificationsParams {
|
|
|
137
132
|
}
|
|
138
133
|
interface CreateRoleParams {
|
|
139
134
|
name: string;
|
|
140
|
-
businessId?: string;
|
|
141
135
|
parentRoles?: string[];
|
|
142
136
|
permissions?: any[];
|
|
143
137
|
[key: string]: any;
|
|
@@ -145,7 +139,6 @@ interface CreateRoleParams {
|
|
|
145
139
|
interface UpdateRoleParams {
|
|
146
140
|
id: string;
|
|
147
141
|
name?: string;
|
|
148
|
-
businessId?: string;
|
|
149
142
|
parentRoles?: string[];
|
|
150
143
|
permissions?: any[];
|
|
151
144
|
[key: string]: any;
|
|
@@ -157,7 +150,6 @@ interface GetRoleParams {
|
|
|
157
150
|
id: string;
|
|
158
151
|
}
|
|
159
152
|
interface GetRolesParams {
|
|
160
|
-
businessId?: string;
|
|
161
153
|
action?: string;
|
|
162
154
|
}
|
|
163
155
|
interface GetRoleParentsParams {
|
|
@@ -170,7 +162,6 @@ interface GetInvoiceParams {
|
|
|
170
162
|
language: string;
|
|
171
163
|
}
|
|
172
164
|
interface CreatePromoCodeParams {
|
|
173
|
-
businessId: string;
|
|
174
165
|
code?: string;
|
|
175
166
|
name?: string;
|
|
176
167
|
description?: string;
|
|
@@ -189,7 +180,6 @@ interface CreatePromoCodeParams {
|
|
|
189
180
|
}
|
|
190
181
|
interface UpdatePromoCodeParams {
|
|
191
182
|
id: string;
|
|
192
|
-
businessId: string;
|
|
193
183
|
code?: string;
|
|
194
184
|
name?: string;
|
|
195
185
|
description?: string;
|
|
@@ -208,14 +198,11 @@ interface UpdatePromoCodeParams {
|
|
|
208
198
|
}
|
|
209
199
|
interface DeletePromoCodeParams {
|
|
210
200
|
id: string;
|
|
211
|
-
businessId: string;
|
|
212
201
|
}
|
|
213
202
|
interface GetPromoCodeParams {
|
|
214
203
|
id: string;
|
|
215
|
-
businessId: string;
|
|
216
204
|
}
|
|
217
205
|
interface GetPromoCodesParams {
|
|
218
|
-
businessId: string;
|
|
219
206
|
statuses?: string[];
|
|
220
207
|
query?: string;
|
|
221
208
|
limit?: number;
|
|
@@ -230,23 +217,19 @@ interface GetPromoCodesParams {
|
|
|
230
217
|
expiresAtTo?: string;
|
|
231
218
|
}
|
|
232
219
|
interface GetPromoCodeByCodeParams {
|
|
233
|
-
businessId: string;
|
|
234
220
|
code: string;
|
|
235
221
|
}
|
|
236
222
|
interface UpdatePromoCodeStatusParams {
|
|
237
223
|
id: string;
|
|
238
|
-
businessId: string;
|
|
239
224
|
status: string;
|
|
240
225
|
reason?: string;
|
|
241
226
|
}
|
|
242
227
|
interface ValidatePromoCodeParams {
|
|
243
|
-
businessId: string;
|
|
244
228
|
code: string;
|
|
245
229
|
orderTotal?: number;
|
|
246
230
|
userId?: string;
|
|
247
231
|
}
|
|
248
232
|
interface ApplyPromoCodeParams {
|
|
249
|
-
businessId: string;
|
|
250
233
|
code: string;
|
|
251
234
|
orderId: string;
|
|
252
235
|
userId: string;
|
|
@@ -281,60 +264,48 @@ interface GetBusinessParams {
|
|
|
281
264
|
id: string;
|
|
282
265
|
}
|
|
283
266
|
interface GetBusinessParentsParams {
|
|
284
|
-
businessId: string;
|
|
285
267
|
}
|
|
286
268
|
interface TriggerBuildsParams {
|
|
287
269
|
id: string;
|
|
288
270
|
}
|
|
289
271
|
interface GetSubscriptionParams {
|
|
290
|
-
businessId: string;
|
|
291
272
|
}
|
|
292
273
|
interface CreateSubscriptionParams {
|
|
293
|
-
businessId: string;
|
|
294
274
|
planId: string;
|
|
295
275
|
successUrl: string;
|
|
296
276
|
cancelUrl: string;
|
|
297
277
|
}
|
|
298
278
|
interface UpdateSubscriptionParams {
|
|
299
|
-
businessId: string;
|
|
300
279
|
planId: string;
|
|
301
280
|
successUrl: string;
|
|
302
281
|
cancelUrl: string;
|
|
303
282
|
}
|
|
304
283
|
interface CancelSubscriptionParams {
|
|
305
|
-
businessId: string;
|
|
306
284
|
immediately?: boolean;
|
|
307
285
|
}
|
|
308
286
|
interface ReactivateSubscriptionParams {
|
|
309
|
-
businessId: string;
|
|
310
287
|
}
|
|
311
288
|
interface CreatePortalSessionParams {
|
|
312
|
-
businessId: string;
|
|
313
289
|
returnUrl: string;
|
|
314
290
|
}
|
|
315
291
|
interface InviteUserParams {
|
|
316
|
-
businessId: string;
|
|
317
292
|
email: string;
|
|
318
293
|
roleIds?: string[] | null;
|
|
319
294
|
}
|
|
320
295
|
interface HandleInvitationParams {
|
|
321
|
-
businessId: string;
|
|
322
296
|
token: string;
|
|
323
297
|
action: string;
|
|
324
298
|
}
|
|
325
299
|
interface TestWebhookParams {
|
|
326
|
-
businessId: string;
|
|
327
300
|
webhook: any;
|
|
328
301
|
}
|
|
329
302
|
interface CreateCollectionParams {
|
|
330
|
-
businessId: string;
|
|
331
303
|
name: string;
|
|
332
304
|
description?: string;
|
|
333
305
|
schema?: any;
|
|
334
306
|
[key: string]: any;
|
|
335
307
|
}
|
|
336
308
|
interface UpdateCollectionParams {
|
|
337
|
-
businessId: string;
|
|
338
309
|
id: string;
|
|
339
310
|
name?: string;
|
|
340
311
|
description?: string;
|
|
@@ -342,20 +313,16 @@ interface UpdateCollectionParams {
|
|
|
342
313
|
[key: string]: any;
|
|
343
314
|
}
|
|
344
315
|
interface DeleteCollectionParams {
|
|
345
|
-
businessId: string;
|
|
346
316
|
id: string;
|
|
347
317
|
}
|
|
348
318
|
interface GetCollectionParams {
|
|
349
|
-
businessId: string;
|
|
350
319
|
id: string;
|
|
351
320
|
}
|
|
352
321
|
interface GetCollectionsParams {
|
|
353
|
-
businessId: string;
|
|
354
322
|
name?: string | null;
|
|
355
323
|
ids?: string[] | null;
|
|
356
324
|
}
|
|
357
325
|
interface GetEntriesParams {
|
|
358
|
-
businessId: string;
|
|
359
326
|
owner?: string | null;
|
|
360
327
|
collectionId?: string | null;
|
|
361
328
|
limit?: number;
|
|
@@ -371,7 +338,6 @@ interface GetEntriesParams {
|
|
|
371
338
|
parentId?: string | null;
|
|
372
339
|
}
|
|
373
340
|
interface CreateEntryParams {
|
|
374
|
-
businessId: string;
|
|
375
341
|
owner?: string;
|
|
376
342
|
collectionId?: string;
|
|
377
343
|
blocks: any[];
|
|
@@ -379,7 +345,6 @@ interface CreateEntryParams {
|
|
|
379
345
|
[key: string]: any;
|
|
380
346
|
}
|
|
381
347
|
interface UpdateEntryParams {
|
|
382
|
-
businessId: string;
|
|
383
348
|
id: string;
|
|
384
349
|
owner?: string;
|
|
385
350
|
collectionId?: string;
|
|
@@ -388,27 +353,22 @@ interface UpdateEntryParams {
|
|
|
388
353
|
[key: string]: any;
|
|
389
354
|
}
|
|
390
355
|
interface DeleteEntryParams {
|
|
391
|
-
businessId: string;
|
|
392
356
|
id: string;
|
|
393
357
|
}
|
|
394
358
|
interface GetEntryParams {
|
|
395
|
-
businessId: string;
|
|
396
359
|
id: string;
|
|
397
360
|
}
|
|
398
361
|
interface GenerateBlocksParams {
|
|
399
|
-
businessId: string;
|
|
400
362
|
[key: string]: any;
|
|
401
363
|
}
|
|
402
364
|
interface GetVariableMetadataParams {
|
|
403
365
|
entryType: string;
|
|
404
366
|
}
|
|
405
367
|
interface SendEntryParams {
|
|
406
|
-
businessId: string;
|
|
407
368
|
entryId: string;
|
|
408
369
|
scheduledAt?: number;
|
|
409
370
|
}
|
|
410
371
|
interface CreateProductParams {
|
|
411
|
-
businessId: string;
|
|
412
372
|
name: string;
|
|
413
373
|
description?: string;
|
|
414
374
|
categoryIds?: string[];
|
|
@@ -417,7 +377,6 @@ interface CreateProductParams {
|
|
|
417
377
|
[key: string]: any;
|
|
418
378
|
}
|
|
419
379
|
interface UpdateProductParams {
|
|
420
|
-
businessId: string;
|
|
421
380
|
id: string;
|
|
422
381
|
name?: string;
|
|
423
382
|
description?: string;
|
|
@@ -427,15 +386,12 @@ interface UpdateProductParams {
|
|
|
427
386
|
[key: string]: any;
|
|
428
387
|
}
|
|
429
388
|
interface DeleteProductParams {
|
|
430
|
-
businessId: string;
|
|
431
389
|
id: string;
|
|
432
390
|
}
|
|
433
391
|
interface GetProductParams {
|
|
434
|
-
businessId: string;
|
|
435
392
|
id: string;
|
|
436
393
|
}
|
|
437
394
|
interface GetAllProductsParams {
|
|
438
|
-
businessId: string;
|
|
439
395
|
categoryIds?: string[] | null;
|
|
440
396
|
categoryId?: string | null;
|
|
441
397
|
categoryFilterBlocks?: string | null;
|
|
@@ -451,11 +407,9 @@ interface GetAllProductsParams {
|
|
|
451
407
|
createdAtTo?: string | null;
|
|
452
408
|
}
|
|
453
409
|
interface GetOrderParams {
|
|
454
|
-
businessId: string;
|
|
455
410
|
id: string;
|
|
456
411
|
}
|
|
457
412
|
interface GetOrdersParams {
|
|
458
|
-
businessId: string;
|
|
459
413
|
userId?: string | null;
|
|
460
414
|
statuses?: string[] | null;
|
|
461
415
|
query?: string | null;
|
|
@@ -467,28 +421,23 @@ interface GetOrdersParams {
|
|
|
467
421
|
createdAtTo?: string | null;
|
|
468
422
|
}
|
|
469
423
|
interface UpdateOrderStatusParams {
|
|
470
|
-
businessId: string;
|
|
471
424
|
id: string;
|
|
472
425
|
status: string;
|
|
473
426
|
[key: string]: any;
|
|
474
427
|
}
|
|
475
428
|
interface UpdateOrderPaymentStatusParams {
|
|
476
|
-
businessId: string;
|
|
477
429
|
id: string;
|
|
478
430
|
paymentStatus: string;
|
|
479
431
|
[key: string]: any;
|
|
480
432
|
}
|
|
481
433
|
interface UpdateOrderParams {
|
|
482
|
-
businessId: string;
|
|
483
434
|
id?: string;
|
|
484
435
|
[key: string]: any;
|
|
485
436
|
}
|
|
486
437
|
interface CreateOrderParams {
|
|
487
|
-
businessId: string;
|
|
488
438
|
[key: string]: any;
|
|
489
439
|
}
|
|
490
440
|
interface CreateNewsletterParams {
|
|
491
|
-
businessId: string;
|
|
492
441
|
name: string;
|
|
493
442
|
description: string;
|
|
494
443
|
newsletterType: 'FREE' | 'PAID';
|
|
@@ -516,7 +465,6 @@ interface UnsubscribeParams {
|
|
|
516
465
|
token: string;
|
|
517
466
|
}
|
|
518
467
|
interface CreateReservationParams {
|
|
519
|
-
businessId?: string;
|
|
520
468
|
[key: string]: any;
|
|
521
469
|
}
|
|
522
470
|
interface UpdateReservationParams {
|
|
@@ -527,41 +475,33 @@ interface UpdateReservationParams {
|
|
|
527
475
|
[key: string]: any;
|
|
528
476
|
}
|
|
529
477
|
interface CreateProviderParams {
|
|
530
|
-
businessId: string;
|
|
531
478
|
name: string;
|
|
532
479
|
[key: string]: any;
|
|
533
480
|
}
|
|
534
481
|
interface UpdateProviderParams {
|
|
535
|
-
businessId: string;
|
|
536
482
|
id: string;
|
|
537
483
|
name?: string;
|
|
538
484
|
[key: string]: any;
|
|
539
485
|
}
|
|
540
486
|
interface DeleteProviderParams {
|
|
541
|
-
businessId: string;
|
|
542
487
|
id: string;
|
|
543
488
|
}
|
|
544
489
|
interface CreateServiceParams {
|
|
545
|
-
businessId: string;
|
|
546
490
|
name: string;
|
|
547
491
|
[key: string]: any;
|
|
548
492
|
}
|
|
549
493
|
interface UpdateServiceParams {
|
|
550
|
-
businessId: string;
|
|
551
494
|
id: string;
|
|
552
495
|
name?: string;
|
|
553
496
|
[key: string]: any;
|
|
554
497
|
}
|
|
555
498
|
interface DeleteServiceParams {
|
|
556
|
-
businessId: string;
|
|
557
499
|
id: string;
|
|
558
500
|
}
|
|
559
501
|
interface GetServiceParams {
|
|
560
|
-
businessId: string;
|
|
561
502
|
id: string;
|
|
562
503
|
}
|
|
563
504
|
interface GetProvidersParams {
|
|
564
|
-
businessId: string;
|
|
565
505
|
serviceId?: string;
|
|
566
506
|
ids?: string[];
|
|
567
507
|
query?: string | null;
|
|
@@ -576,17 +516,14 @@ interface GetProvidersParams {
|
|
|
576
516
|
categoryFilterBlocks?: string | null;
|
|
577
517
|
}
|
|
578
518
|
interface GetProvidersByServiceParams {
|
|
579
|
-
businessId: string;
|
|
580
519
|
serviceId: string;
|
|
581
520
|
limit?: number;
|
|
582
521
|
cursor?: string;
|
|
583
522
|
}
|
|
584
523
|
interface GetProviderParams {
|
|
585
|
-
businessId: string;
|
|
586
524
|
id: string;
|
|
587
525
|
}
|
|
588
526
|
interface GetAllServicesParams {
|
|
589
|
-
businessId: string;
|
|
590
527
|
providerId?: string;
|
|
591
528
|
ids?: string[];
|
|
592
529
|
query?: string | null;
|
|
@@ -601,13 +538,11 @@ interface GetAllServicesParams {
|
|
|
601
538
|
categoryFilterBlocks?: string | null;
|
|
602
539
|
}
|
|
603
540
|
interface ScheduleSetParams {
|
|
604
|
-
businessId: string;
|
|
605
541
|
workingTime: any;
|
|
606
542
|
serviceIds: string[];
|
|
607
543
|
providerIds: string[];
|
|
608
544
|
}
|
|
609
545
|
interface GetBusinessServiceWorkingTimeParams {
|
|
610
|
-
businessId: string;
|
|
611
546
|
providerId: string;
|
|
612
547
|
serviceId?: string;
|
|
613
548
|
}
|
|
@@ -618,13 +553,11 @@ interface SearchMyReservationsParams {
|
|
|
618
553
|
}
|
|
619
554
|
interface GetReservationParams {
|
|
620
555
|
id: string;
|
|
621
|
-
businessId?: string;
|
|
622
556
|
}
|
|
623
557
|
interface GetReservationPartsParams {
|
|
624
558
|
reservationId?: string;
|
|
625
559
|
}
|
|
626
560
|
interface SearchAvailableSlotsParams {
|
|
627
|
-
businessId: string;
|
|
628
561
|
serviceId: string;
|
|
629
562
|
limit: number;
|
|
630
563
|
from?: number;
|
|
@@ -635,7 +568,6 @@ interface ReservationConfirmParams {
|
|
|
635
568
|
token: string;
|
|
636
569
|
}
|
|
637
570
|
interface SearchReservationsParams {
|
|
638
|
-
businessIds?: string[];
|
|
639
571
|
serviceIds?: string[];
|
|
640
572
|
providerIds?: string[];
|
|
641
573
|
userId?: string;
|
|
@@ -659,14 +591,12 @@ interface SetRoleParams {
|
|
|
659
591
|
roleId: string;
|
|
660
592
|
}
|
|
661
593
|
interface GetPermissionsParams {
|
|
662
|
-
businessId: string;
|
|
663
594
|
}
|
|
664
595
|
interface GetUsersParams {
|
|
665
596
|
limit?: number;
|
|
666
597
|
cursor?: string | null;
|
|
667
598
|
query?: string;
|
|
668
599
|
roleIds?: string[];
|
|
669
|
-
businessIds?: string[];
|
|
670
600
|
owner?: string;
|
|
671
601
|
}
|
|
672
602
|
interface ConfirmUserParams {
|
|
@@ -701,17 +631,14 @@ interface HandleStripeWebhookParams {
|
|
|
701
631
|
[key: string]: any;
|
|
702
632
|
}
|
|
703
633
|
interface GetBusinessMarketsParams {
|
|
704
|
-
businessId: string;
|
|
705
634
|
}
|
|
706
635
|
interface GetBusinessMarketParams {
|
|
707
|
-
businessId: string;
|
|
708
636
|
marketId: string;
|
|
709
637
|
}
|
|
710
638
|
interface TrackEmailOpenParams {
|
|
711
639
|
trackingPixelId: string;
|
|
712
640
|
}
|
|
713
641
|
interface GetDeliveryStatsParams {
|
|
714
|
-
businessId: string;
|
|
715
642
|
}
|
|
716
643
|
interface SetupAnalyticsParams {
|
|
717
644
|
[key: string]: any;
|