@wix/auto_sdk_bookings_bookings 1.0.89 → 1.0.91
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/build/cjs/index.d.ts +597 -580
- package/build/cjs/index.js +1025 -934
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2337 -2373
- package/build/cjs/index.typings.js +848 -800
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1382 -1435
- package/build/cjs/meta.js +700 -659
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +597 -580
- package/build/es/index.mjs +1023 -934
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2337 -2373
- package/build/es/index.typings.mjs +847 -800
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1382 -1435
- package/build/es/meta.mjs +699 -659
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +597 -580
- package/build/internal/cjs/index.js +1025 -934
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2349 -2385
- package/build/internal/cjs/index.typings.js +848 -800
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1382 -1435
- package/build/internal/cjs/meta.js +700 -659
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +597 -580
- package/build/internal/es/index.mjs +1023 -934
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2349 -2385
- package/build/internal/es/index.typings.mjs +847 -800
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1382 -1435
- package/build/internal/es/meta.mjs +699 -659
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -13,7 +13,7 @@ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transform
|
|
|
13
13
|
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
14
14
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
15
15
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
16
|
-
function
|
|
16
|
+
function resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl(opts) {
|
|
17
17
|
const domainToMappings = {
|
|
18
18
|
_: [
|
|
19
19
|
{
|
|
@@ -319,58 +319,7 @@ function resolveComWixpressBookingsBookingsV2BookingsUrl(opts) {
|
|
|
319
319
|
};
|
|
320
320
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
321
321
|
}
|
|
322
|
-
function
|
|
323
|
-
const domainToMappings = {
|
|
324
|
-
"www.wixapis.com": [
|
|
325
|
-
{
|
|
326
|
-
srcPath: "/_api/bookings-confirmator/v2/bookings/confirmation",
|
|
327
|
-
destPath: "/v2/bookings/confirmation"
|
|
328
|
-
},
|
|
329
|
-
{
|
|
330
|
-
srcPath: "/bookings/v2/confirmation",
|
|
331
|
-
destPath: "/v2/confirmation"
|
|
332
|
-
},
|
|
333
|
-
{
|
|
334
|
-
srcPath: "/bookings/v2/bulk/confirmation",
|
|
335
|
-
destPath: "/v2/bulk/confirmation"
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
srcPath: "/bookings/v2/bulk/bookings/confirmOrDecline",
|
|
339
|
-
destPath: "/v2/bulk/bookings/confirmOrDecline"
|
|
340
|
-
},
|
|
341
|
-
{
|
|
342
|
-
srcPath: "/_api/bookings-confirmator/v2/bulk/confirmation",
|
|
343
|
-
destPath: "/v2/bulk/confirmation"
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
srcPath: "/_api/bookings-confirmator/v2/bulk/bookings/confirmOrDecline",
|
|
347
|
-
destPath: "/v2/bulk/bookings/confirmOrDecline"
|
|
348
|
-
}
|
|
349
|
-
],
|
|
350
|
-
"*.dev.wix-code.com": [
|
|
351
|
-
{
|
|
352
|
-
srcPath: "/bookings/v2/confirmation",
|
|
353
|
-
destPath: "/v2/confirmation"
|
|
354
|
-
},
|
|
355
|
-
{
|
|
356
|
-
srcPath: "/bookings/v2/bulk/bookings",
|
|
357
|
-
destPath: "/v2/bulk/bookings"
|
|
358
|
-
}
|
|
359
|
-
],
|
|
360
|
-
_: [
|
|
361
|
-
{
|
|
362
|
-
srcPath: "/bookings/v2/confirmation",
|
|
363
|
-
destPath: "/v2/confirmation"
|
|
364
|
-
},
|
|
365
|
-
{
|
|
366
|
-
srcPath: "/bookings/v2/bulk/bookings",
|
|
367
|
-
destPath: "/v2/bulk/bookings"
|
|
368
|
-
}
|
|
369
|
-
]
|
|
370
|
-
};
|
|
371
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
372
|
-
}
|
|
373
|
-
function resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl(opts) {
|
|
322
|
+
function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
|
|
374
323
|
const domainToMappings = {
|
|
375
324
|
_: [
|
|
376
325
|
{
|
|
@@ -523,40 +472,70 @@ function resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl(opts) {
|
|
|
523
472
|
};
|
|
524
473
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
525
474
|
}
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetAnonymousActionDetails",
|
|
533
|
-
packageName: PACKAGE_NAME,
|
|
534
|
-
migrationOptions: {
|
|
535
|
-
optInTransformResponse: true
|
|
475
|
+
function resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl(opts) {
|
|
476
|
+
const domainToMappings = {
|
|
477
|
+
"www.wixapis.com": [
|
|
478
|
+
{
|
|
479
|
+
srcPath: "/_api/bookings-confirmator/v2/bookings/confirmation",
|
|
480
|
+
destPath: "/v2/bookings/confirmation"
|
|
536
481
|
},
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
482
|
+
{
|
|
483
|
+
srcPath: "/bookings/v2/confirmation",
|
|
484
|
+
destPath: "/v2/confirmation"
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
srcPath: "/bookings/v2/bulk/confirmation",
|
|
488
|
+
destPath: "/v2/bulk/confirmation"
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
srcPath: "/bookings/v2/bulk/bookings/confirmOrDecline",
|
|
492
|
+
destPath: "/v2/bulk/bookings/confirmOrDecline"
|
|
493
|
+
},
|
|
494
|
+
{
|
|
495
|
+
srcPath: "/_api/bookings-confirmator/v2/bulk/confirmation",
|
|
496
|
+
destPath: "/v2/bulk/confirmation"
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
srcPath: "/_api/bookings-confirmator/v2/bulk/bookings/confirmOrDecline",
|
|
500
|
+
destPath: "/v2/bulk/bookings/confirmOrDecline"
|
|
501
|
+
}
|
|
502
|
+
],
|
|
503
|
+
"*.dev.wix-code.com": [
|
|
504
|
+
{
|
|
505
|
+
srcPath: "/bookings/v2/confirmation",
|
|
506
|
+
destPath: "/v2/confirmation"
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
srcPath: "/bookings/v2/bulk/bookings",
|
|
510
|
+
destPath: "/v2/bulk/bookings"
|
|
511
|
+
}
|
|
512
|
+
],
|
|
513
|
+
_: [
|
|
514
|
+
{
|
|
515
|
+
srcPath: "/bookings/v2/confirmation",
|
|
516
|
+
destPath: "/v2/confirmation"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
srcPath: "/bookings/v2/bulk/bookings",
|
|
520
|
+
destPath: "/v2/bulk/bookings"
|
|
521
|
+
}
|
|
522
|
+
]
|
|
523
|
+
};
|
|
524
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
547
525
|
}
|
|
548
|
-
|
|
549
|
-
|
|
526
|
+
var PACKAGE_NAME = "@wix/auto_sdk_bookings_bookings";
|
|
527
|
+
function confirmOrDeclineBooking(payload) {
|
|
528
|
+
function __confirmOrDeclineBooking({ host }) {
|
|
550
529
|
const metadata = {
|
|
551
530
|
entityFqdn: "wix.bookings.v2.booking",
|
|
552
531
|
method: "POST",
|
|
553
|
-
methodFqn: "com.wixpress.bookings.
|
|
532
|
+
methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.ConfirmOrDeclineBooking",
|
|
554
533
|
packageName: PACKAGE_NAME,
|
|
555
534
|
migrationOptions: {
|
|
556
535
|
optInTransformResponse: true
|
|
557
536
|
},
|
|
558
|
-
url:
|
|
559
|
-
protoPath: "/v2/
|
|
537
|
+
url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
|
|
538
|
+
protoPath: "/v2/confirmation/{bookingId}:confirmOrDecline",
|
|
560
539
|
data: payload,
|
|
561
540
|
host
|
|
562
541
|
}),
|
|
@@ -583,20 +562,20 @@ function cancelBookingAnonymously(payload) {
|
|
|
583
562
|
};
|
|
584
563
|
return metadata;
|
|
585
564
|
}
|
|
586
|
-
return
|
|
565
|
+
return __confirmOrDeclineBooking;
|
|
587
566
|
}
|
|
588
|
-
function
|
|
589
|
-
function
|
|
567
|
+
function bulkConfirmOrDeclineBooking(payload) {
|
|
568
|
+
function __bulkConfirmOrDeclineBooking({ host }) {
|
|
590
569
|
const metadata = {
|
|
591
570
|
entityFqdn: "wix.bookings.v2.booking",
|
|
592
571
|
method: "POST",
|
|
593
|
-
methodFqn: "com.wixpress.bookings.
|
|
572
|
+
methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.BulkConfirmOrDeclineBooking",
|
|
594
573
|
packageName: PACKAGE_NAME,
|
|
595
574
|
migrationOptions: {
|
|
596
575
|
optInTransformResponse: true
|
|
597
576
|
},
|
|
598
|
-
url:
|
|
599
|
-
protoPath: "/v2/bookings/
|
|
577
|
+
url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
|
|
578
|
+
protoPath: "/v2/bulk/bookings/confirmOrDecline",
|
|
600
579
|
data: payload,
|
|
601
580
|
host
|
|
602
581
|
}),
|
|
@@ -605,78 +584,105 @@ function rescheduleBookingAnonymously(payload) {
|
|
|
605
584
|
{
|
|
606
585
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
607
586
|
paths: [
|
|
608
|
-
{ path: "
|
|
609
|
-
{ path: "
|
|
610
|
-
{ path: "
|
|
611
|
-
{ path: "
|
|
612
|
-
{ path: "
|
|
587
|
+
{ path: "results.item.createdDate" },
|
|
588
|
+
{ path: "results.item.startDate" },
|
|
589
|
+
{ path: "results.item.endDate" },
|
|
590
|
+
{ path: "results.item.updatedDate" },
|
|
591
|
+
{ path: "results.item.canceledDate" }
|
|
613
592
|
]
|
|
614
593
|
},
|
|
615
594
|
{
|
|
616
595
|
transformFn: transformRESTFloatToSDKFloat,
|
|
617
596
|
paths: [
|
|
618
|
-
{
|
|
619
|
-
|
|
597
|
+
{
|
|
598
|
+
path: "results.item.contactDetails.fullAddress.geocode.latitude"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
path: "results.item.contactDetails.fullAddress.geocode.longitude"
|
|
602
|
+
}
|
|
620
603
|
]
|
|
621
604
|
}
|
|
622
605
|
])
|
|
623
606
|
};
|
|
624
607
|
return metadata;
|
|
625
608
|
}
|
|
626
|
-
return
|
|
609
|
+
return __bulkConfirmOrDeclineBooking;
|
|
627
610
|
}
|
|
628
|
-
function
|
|
629
|
-
function
|
|
611
|
+
function createMultiServiceBooking(payload) {
|
|
612
|
+
function __createMultiServiceBooking({ host }) {
|
|
613
|
+
const serializedData = transformPaths(payload, [
|
|
614
|
+
{
|
|
615
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
616
|
+
paths: [
|
|
617
|
+
{ path: "bookings.createdDate" },
|
|
618
|
+
{ path: "bookings.startDate" },
|
|
619
|
+
{ path: "bookings.endDate" },
|
|
620
|
+
{ path: "bookings.updatedDate" },
|
|
621
|
+
{ path: "bookings.canceledDate" }
|
|
622
|
+
]
|
|
623
|
+
},
|
|
624
|
+
{
|
|
625
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
626
|
+
paths: [
|
|
627
|
+
{ path: "bookings.contactDetails.fullAddress.geocode.latitude" },
|
|
628
|
+
{ path: "bookings.contactDetails.fullAddress.geocode.longitude" }
|
|
629
|
+
]
|
|
630
|
+
}
|
|
631
|
+
]);
|
|
630
632
|
const metadata = {
|
|
631
633
|
entityFqdn: "wix.bookings.v2.booking",
|
|
632
|
-
method: "
|
|
633
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
634
|
+
method: "POST",
|
|
635
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.CreateMultiServiceBooking",
|
|
634
636
|
packageName: PACKAGE_NAME,
|
|
635
637
|
migrationOptions: {
|
|
636
638
|
optInTransformResponse: true
|
|
637
639
|
},
|
|
638
|
-
url:
|
|
639
|
-
protoPath: "/v2/
|
|
640
|
-
data:
|
|
640
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
641
|
+
protoPath: "/v2/multi_service_bookings",
|
|
642
|
+
data: serializedData,
|
|
641
643
|
host
|
|
642
644
|
}),
|
|
643
|
-
|
|
645
|
+
data: serializedData,
|
|
644
646
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
645
647
|
{
|
|
646
648
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
647
649
|
paths: [
|
|
648
|
-
{ path: "booking.createdDate" },
|
|
649
|
-
{ path: "booking.startDate" },
|
|
650
|
-
{ path: "booking.endDate" },
|
|
651
|
-
{ path: "booking.updatedDate" },
|
|
652
|
-
{ path: "booking.canceledDate" }
|
|
650
|
+
{ path: "multiServiceBooking.bookings.booking.createdDate" },
|
|
651
|
+
{ path: "multiServiceBooking.bookings.booking.startDate" },
|
|
652
|
+
{ path: "multiServiceBooking.bookings.booking.endDate" },
|
|
653
|
+
{ path: "multiServiceBooking.bookings.booking.updatedDate" },
|
|
654
|
+
{ path: "multiServiceBooking.bookings.booking.canceledDate" }
|
|
653
655
|
]
|
|
654
656
|
},
|
|
655
657
|
{
|
|
656
658
|
transformFn: transformRESTFloatToSDKFloat,
|
|
657
659
|
paths: [
|
|
658
|
-
{
|
|
659
|
-
|
|
660
|
+
{
|
|
661
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
665
|
+
}
|
|
660
666
|
]
|
|
661
667
|
}
|
|
662
668
|
])
|
|
663
669
|
};
|
|
664
670
|
return metadata;
|
|
665
671
|
}
|
|
666
|
-
return
|
|
672
|
+
return __createMultiServiceBooking;
|
|
667
673
|
}
|
|
668
|
-
function
|
|
669
|
-
function
|
|
674
|
+
function rescheduleMultiServiceBooking(payload) {
|
|
675
|
+
function __rescheduleMultiServiceBooking({ host }) {
|
|
670
676
|
const metadata = {
|
|
671
677
|
entityFqdn: "wix.bookings.v2.booking",
|
|
672
678
|
method: "POST",
|
|
673
|
-
methodFqn: "com.wixpress.bookings.
|
|
679
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.RescheduleMultiServiceBooking",
|
|
674
680
|
packageName: PACKAGE_NAME,
|
|
675
681
|
migrationOptions: {
|
|
676
682
|
optInTransformResponse: true
|
|
677
683
|
},
|
|
678
|
-
url:
|
|
679
|
-
protoPath: "/v2/
|
|
684
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
685
|
+
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/reschedule",
|
|
680
686
|
data: payload,
|
|
681
687
|
host
|
|
682
688
|
}),
|
|
@@ -685,38 +691,63 @@ function confirmOrDeclineBooking(payload) {
|
|
|
685
691
|
{
|
|
686
692
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
687
693
|
paths: [
|
|
688
|
-
{ path: "booking.createdDate" },
|
|
689
|
-
{ path: "booking.startDate" },
|
|
690
|
-
{ path: "booking.endDate" },
|
|
691
|
-
{ path: "booking.updatedDate" },
|
|
692
|
-
{ path: "booking.canceledDate" }
|
|
694
|
+
{ path: "multiServiceBooking.bookings.booking.createdDate" },
|
|
695
|
+
{ path: "multiServiceBooking.bookings.booking.startDate" },
|
|
696
|
+
{ path: "multiServiceBooking.bookings.booking.endDate" },
|
|
697
|
+
{ path: "multiServiceBooking.bookings.booking.updatedDate" },
|
|
698
|
+
{ path: "multiServiceBooking.bookings.booking.canceledDate" }
|
|
693
699
|
]
|
|
694
700
|
},
|
|
695
701
|
{
|
|
696
702
|
transformFn: transformRESTFloatToSDKFloat,
|
|
697
703
|
paths: [
|
|
698
|
-
{
|
|
699
|
-
|
|
704
|
+
{
|
|
705
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
706
|
+
},
|
|
707
|
+
{
|
|
708
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
709
|
+
}
|
|
700
710
|
]
|
|
701
711
|
}
|
|
702
712
|
])
|
|
703
713
|
};
|
|
704
714
|
return metadata;
|
|
705
715
|
}
|
|
706
|
-
return
|
|
716
|
+
return __rescheduleMultiServiceBooking;
|
|
707
717
|
}
|
|
708
|
-
function
|
|
709
|
-
function
|
|
718
|
+
function getMultiServiceBookingAvailability(payload) {
|
|
719
|
+
function __getMultiServiceBookingAvailability({ host }) {
|
|
710
720
|
const metadata = {
|
|
711
721
|
entityFqdn: "wix.bookings.v2.booking",
|
|
712
722
|
method: "POST",
|
|
713
|
-
methodFqn: "com.wixpress.bookings.
|
|
723
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.GetMultiServiceBookingAvailability",
|
|
714
724
|
packageName: PACKAGE_NAME,
|
|
715
725
|
migrationOptions: {
|
|
716
726
|
optInTransformResponse: true
|
|
717
727
|
},
|
|
718
|
-
url:
|
|
719
|
-
protoPath: "/v2/
|
|
728
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
729
|
+
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/get_availability",
|
|
730
|
+
data: payload,
|
|
731
|
+
host
|
|
732
|
+
}),
|
|
733
|
+
data: payload
|
|
734
|
+
};
|
|
735
|
+
return metadata;
|
|
736
|
+
}
|
|
737
|
+
return __getMultiServiceBookingAvailability;
|
|
738
|
+
}
|
|
739
|
+
function cancelMultiServiceBooking(payload) {
|
|
740
|
+
function __cancelMultiServiceBooking({ host }) {
|
|
741
|
+
const metadata = {
|
|
742
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
743
|
+
method: "POST",
|
|
744
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.CancelMultiServiceBooking",
|
|
745
|
+
packageName: PACKAGE_NAME,
|
|
746
|
+
migrationOptions: {
|
|
747
|
+
optInTransformResponse: true
|
|
748
|
+
},
|
|
749
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
750
|
+
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/cancel",
|
|
720
751
|
data: payload,
|
|
721
752
|
host
|
|
722
753
|
}),
|
|
@@ -725,21 +756,21 @@ function bulkConfirmOrDeclineBooking(payload) {
|
|
|
725
756
|
{
|
|
726
757
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
727
758
|
paths: [
|
|
728
|
-
{ path: "
|
|
729
|
-
{ path: "
|
|
730
|
-
{ path: "
|
|
731
|
-
{ path: "
|
|
732
|
-
{ path: "
|
|
759
|
+
{ path: "multiServiceBooking.bookings.booking.createdDate" },
|
|
760
|
+
{ path: "multiServiceBooking.bookings.booking.startDate" },
|
|
761
|
+
{ path: "multiServiceBooking.bookings.booking.endDate" },
|
|
762
|
+
{ path: "multiServiceBooking.bookings.booking.updatedDate" },
|
|
763
|
+
{ path: "multiServiceBooking.bookings.booking.canceledDate" }
|
|
733
764
|
]
|
|
734
765
|
},
|
|
735
766
|
{
|
|
736
767
|
transformFn: transformRESTFloatToSDKFloat,
|
|
737
768
|
paths: [
|
|
738
769
|
{
|
|
739
|
-
path: "
|
|
770
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
740
771
|
},
|
|
741
772
|
{
|
|
742
|
-
path: "
|
|
773
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
743
774
|
}
|
|
744
775
|
]
|
|
745
776
|
}
|
|
@@ -747,125 +778,87 @@ function bulkConfirmOrDeclineBooking(payload) {
|
|
|
747
778
|
};
|
|
748
779
|
return metadata;
|
|
749
780
|
}
|
|
750
|
-
return
|
|
781
|
+
return __cancelMultiServiceBooking;
|
|
751
782
|
}
|
|
752
|
-
function
|
|
753
|
-
function
|
|
754
|
-
const serializedData = transformPaths(payload, [
|
|
755
|
-
{
|
|
756
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
757
|
-
paths: [
|
|
758
|
-
{ path: "booking.createdDate" },
|
|
759
|
-
{ path: "booking.startDate" },
|
|
760
|
-
{ path: "booking.endDate" },
|
|
761
|
-
{ path: "booking.updatedDate" },
|
|
762
|
-
{ path: "booking.canceledDate" }
|
|
763
|
-
]
|
|
764
|
-
},
|
|
765
|
-
{
|
|
766
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
767
|
-
paths: [
|
|
768
|
-
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
769
|
-
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
770
|
-
]
|
|
771
|
-
}
|
|
772
|
-
]);
|
|
783
|
+
function markMultiServiceBookingAsPending(payload) {
|
|
784
|
+
function __markMultiServiceBookingAsPending({ host }) {
|
|
773
785
|
const metadata = {
|
|
774
786
|
entityFqdn: "wix.bookings.v2.booking",
|
|
775
787
|
method: "POST",
|
|
776
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
788
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.MarkMultiServiceBookingAsPending",
|
|
777
789
|
packageName: PACKAGE_NAME,
|
|
778
790
|
migrationOptions: {
|
|
779
791
|
optInTransformResponse: true
|
|
780
792
|
},
|
|
781
|
-
url:
|
|
782
|
-
protoPath: "/v2/
|
|
783
|
-
data:
|
|
793
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
794
|
+
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/mark_as_pending",
|
|
795
|
+
data: payload,
|
|
784
796
|
host
|
|
785
797
|
}),
|
|
786
|
-
data:
|
|
798
|
+
data: payload,
|
|
787
799
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
788
800
|
{
|
|
789
801
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
790
802
|
paths: [
|
|
791
|
-
{ path: "booking.createdDate" },
|
|
792
|
-
{ path: "booking.startDate" },
|
|
793
|
-
{ path: "booking.endDate" },
|
|
794
|
-
{ path: "booking.updatedDate" },
|
|
795
|
-
{ path: "booking.canceledDate" }
|
|
803
|
+
{ path: "multiServiceBooking.bookings.booking.createdDate" },
|
|
804
|
+
{ path: "multiServiceBooking.bookings.booking.startDate" },
|
|
805
|
+
{ path: "multiServiceBooking.bookings.booking.endDate" },
|
|
806
|
+
{ path: "multiServiceBooking.bookings.booking.updatedDate" },
|
|
807
|
+
{ path: "multiServiceBooking.bookings.booking.canceledDate" }
|
|
796
808
|
]
|
|
797
809
|
},
|
|
798
810
|
{
|
|
799
811
|
transformFn: transformRESTFloatToSDKFloat,
|
|
800
812
|
paths: [
|
|
801
|
-
{
|
|
802
|
-
|
|
813
|
+
{
|
|
814
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
815
|
+
},
|
|
816
|
+
{
|
|
817
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
818
|
+
}
|
|
803
819
|
]
|
|
804
820
|
}
|
|
805
821
|
])
|
|
806
822
|
};
|
|
807
823
|
return metadata;
|
|
808
824
|
}
|
|
809
|
-
return
|
|
825
|
+
return __markMultiServiceBookingAsPending;
|
|
810
826
|
}
|
|
811
|
-
function
|
|
812
|
-
function
|
|
813
|
-
const serializedData = transformPaths(payload, [
|
|
814
|
-
{
|
|
815
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
816
|
-
paths: [
|
|
817
|
-
{ path: "createBookingsInfo.booking.createdDate" },
|
|
818
|
-
{ path: "createBookingsInfo.booking.startDate" },
|
|
819
|
-
{ path: "createBookingsInfo.booking.endDate" },
|
|
820
|
-
{ path: "createBookingsInfo.booking.updatedDate" },
|
|
821
|
-
{ path: "createBookingsInfo.booking.canceledDate" }
|
|
822
|
-
]
|
|
823
|
-
},
|
|
824
|
-
{
|
|
825
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
826
|
-
paths: [
|
|
827
|
-
{
|
|
828
|
-
path: "createBookingsInfo.booking.contactDetails.fullAddress.geocode.latitude"
|
|
829
|
-
},
|
|
830
|
-
{
|
|
831
|
-
path: "createBookingsInfo.booking.contactDetails.fullAddress.geocode.longitude"
|
|
832
|
-
}
|
|
833
|
-
]
|
|
834
|
-
}
|
|
835
|
-
]);
|
|
827
|
+
function confirmMultiServiceBooking(payload) {
|
|
828
|
+
function __confirmMultiServiceBooking({ host }) {
|
|
836
829
|
const metadata = {
|
|
837
830
|
entityFqdn: "wix.bookings.v2.booking",
|
|
838
831
|
method: "POST",
|
|
839
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
832
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.ConfirmMultiServiceBooking",
|
|
840
833
|
packageName: PACKAGE_NAME,
|
|
841
834
|
migrationOptions: {
|
|
842
835
|
optInTransformResponse: true
|
|
843
836
|
},
|
|
844
|
-
url:
|
|
845
|
-
protoPath: "/v2/
|
|
846
|
-
data:
|
|
837
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
838
|
+
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/confirm",
|
|
839
|
+
data: payload,
|
|
847
840
|
host
|
|
848
841
|
}),
|
|
849
|
-
data:
|
|
842
|
+
data: payload,
|
|
850
843
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
851
844
|
{
|
|
852
845
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
853
846
|
paths: [
|
|
854
|
-
{ path: "
|
|
855
|
-
{ path: "
|
|
856
|
-
{ path: "
|
|
857
|
-
{ path: "
|
|
858
|
-
{ path: "
|
|
847
|
+
{ path: "multiServiceBooking.bookings.booking.createdDate" },
|
|
848
|
+
{ path: "multiServiceBooking.bookings.booking.startDate" },
|
|
849
|
+
{ path: "multiServiceBooking.bookings.booking.endDate" },
|
|
850
|
+
{ path: "multiServiceBooking.bookings.booking.updatedDate" },
|
|
851
|
+
{ path: "multiServiceBooking.bookings.booking.canceledDate" }
|
|
859
852
|
]
|
|
860
853
|
},
|
|
861
854
|
{
|
|
862
855
|
transformFn: transformRESTFloatToSDKFloat,
|
|
863
856
|
paths: [
|
|
864
857
|
{
|
|
865
|
-
path: "
|
|
858
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
866
859
|
},
|
|
867
860
|
{
|
|
868
|
-
path: "
|
|
861
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
869
862
|
}
|
|
870
863
|
]
|
|
871
864
|
}
|
|
@@ -873,20 +866,20 @@ function bulkCreateBooking(payload) {
|
|
|
873
866
|
};
|
|
874
867
|
return metadata;
|
|
875
868
|
}
|
|
876
|
-
return
|
|
869
|
+
return __confirmMultiServiceBooking;
|
|
877
870
|
}
|
|
878
|
-
function
|
|
879
|
-
function
|
|
871
|
+
function declineMultiServiceBooking(payload) {
|
|
872
|
+
function __declineMultiServiceBooking({ host }) {
|
|
880
873
|
const metadata = {
|
|
881
874
|
entityFqdn: "wix.bookings.v2.booking",
|
|
882
875
|
method: "POST",
|
|
883
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
876
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.DeclineMultiServiceBooking",
|
|
884
877
|
packageName: PACKAGE_NAME,
|
|
885
878
|
migrationOptions: {
|
|
886
879
|
optInTransformResponse: true
|
|
887
880
|
},
|
|
888
|
-
url:
|
|
889
|
-
protoPath: "/v2/
|
|
881
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
882
|
+
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/decline",
|
|
890
883
|
data: payload,
|
|
891
884
|
host
|
|
892
885
|
}),
|
|
@@ -895,38 +888,107 @@ function rescheduleBooking(payload) {
|
|
|
895
888
|
{
|
|
896
889
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
897
890
|
paths: [
|
|
898
|
-
{ path: "booking.createdDate" },
|
|
899
|
-
{ path: "booking.startDate" },
|
|
900
|
-
{ path: "booking.endDate" },
|
|
901
|
-
{ path: "booking.updatedDate" },
|
|
902
|
-
{ path: "booking.canceledDate" }
|
|
891
|
+
{ path: "multiServiceBooking.bookings.booking.createdDate" },
|
|
892
|
+
{ path: "multiServiceBooking.bookings.booking.startDate" },
|
|
893
|
+
{ path: "multiServiceBooking.bookings.booking.endDate" },
|
|
894
|
+
{ path: "multiServiceBooking.bookings.booking.updatedDate" },
|
|
895
|
+
{ path: "multiServiceBooking.bookings.booking.canceledDate" }
|
|
903
896
|
]
|
|
904
897
|
},
|
|
905
898
|
{
|
|
906
899
|
transformFn: transformRESTFloatToSDKFloat,
|
|
907
900
|
paths: [
|
|
908
|
-
{
|
|
909
|
-
|
|
901
|
+
{
|
|
902
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
906
|
+
}
|
|
910
907
|
]
|
|
911
908
|
}
|
|
912
909
|
])
|
|
913
910
|
};
|
|
914
911
|
return metadata;
|
|
915
912
|
}
|
|
916
|
-
return
|
|
913
|
+
return __declineMultiServiceBooking;
|
|
917
914
|
}
|
|
918
|
-
function
|
|
919
|
-
function
|
|
915
|
+
function bulkGetMultiServiceBookingAllowedActions(payload) {
|
|
916
|
+
function __bulkGetMultiServiceBookingAllowedActions({ host }) {
|
|
920
917
|
const metadata = {
|
|
921
918
|
entityFqdn: "wix.bookings.v2.booking",
|
|
922
919
|
method: "POST",
|
|
923
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
920
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.BulkGetMultiServiceBookingAllowedActions",
|
|
924
921
|
packageName: PACKAGE_NAME,
|
|
925
922
|
migrationOptions: {
|
|
926
923
|
optInTransformResponse: true
|
|
927
924
|
},
|
|
928
|
-
url:
|
|
929
|
-
protoPath: "/v2/
|
|
925
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
926
|
+
protoPath: "/v2/bulk/multi_service_bookings/get_allowed_actions",
|
|
927
|
+
data: payload,
|
|
928
|
+
host
|
|
929
|
+
}),
|
|
930
|
+
data: payload
|
|
931
|
+
};
|
|
932
|
+
return metadata;
|
|
933
|
+
}
|
|
934
|
+
return __bulkGetMultiServiceBookingAllowedActions;
|
|
935
|
+
}
|
|
936
|
+
function getMultiServiceBooking(payload) {
|
|
937
|
+
function __getMultiServiceBooking({ host }) {
|
|
938
|
+
const metadata = {
|
|
939
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
940
|
+
method: "GET",
|
|
941
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.GetMultiServiceBooking",
|
|
942
|
+
packageName: PACKAGE_NAME,
|
|
943
|
+
migrationOptions: {
|
|
944
|
+
optInTransformResponse: true
|
|
945
|
+
},
|
|
946
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
947
|
+
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}",
|
|
948
|
+
data: payload,
|
|
949
|
+
host
|
|
950
|
+
}),
|
|
951
|
+
params: toURLSearchParams(payload),
|
|
952
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
953
|
+
{
|
|
954
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
955
|
+
paths: [
|
|
956
|
+
{ path: "multiServiceBooking.bookings.booking.createdDate" },
|
|
957
|
+
{ path: "multiServiceBooking.bookings.booking.startDate" },
|
|
958
|
+
{ path: "multiServiceBooking.bookings.booking.endDate" },
|
|
959
|
+
{ path: "multiServiceBooking.bookings.booking.updatedDate" },
|
|
960
|
+
{ path: "multiServiceBooking.bookings.booking.canceledDate" }
|
|
961
|
+
]
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
965
|
+
paths: [
|
|
966
|
+
{
|
|
967
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
968
|
+
},
|
|
969
|
+
{
|
|
970
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
971
|
+
}
|
|
972
|
+
]
|
|
973
|
+
}
|
|
974
|
+
])
|
|
975
|
+
};
|
|
976
|
+
return metadata;
|
|
977
|
+
}
|
|
978
|
+
return __getMultiServiceBooking;
|
|
979
|
+
}
|
|
980
|
+
function addBookingsToMultiServiceBooking(payload) {
|
|
981
|
+
function __addBookingsToMultiServiceBooking({ host }) {
|
|
982
|
+
const metadata = {
|
|
983
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
984
|
+
method: "POST",
|
|
985
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.AddBookingsToMultiServiceBooking",
|
|
986
|
+
packageName: PACKAGE_NAME,
|
|
987
|
+
migrationOptions: {
|
|
988
|
+
optInTransformResponse: true
|
|
989
|
+
},
|
|
990
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
991
|
+
protoPath: "/v2/multi_service_bookings/add_bookings_to_multi_service_booking",
|
|
930
992
|
data: payload,
|
|
931
993
|
host
|
|
932
994
|
}),
|
|
@@ -935,38 +997,42 @@ function bookingsConfirmBooking(payload) {
|
|
|
935
997
|
{
|
|
936
998
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
937
999
|
paths: [
|
|
938
|
-
{ path: "booking.createdDate" },
|
|
939
|
-
{ path: "booking.startDate" },
|
|
940
|
-
{ path: "booking.endDate" },
|
|
941
|
-
{ path: "booking.updatedDate" },
|
|
942
|
-
{ path: "booking.canceledDate" }
|
|
1000
|
+
{ path: "bookings.booking.createdDate" },
|
|
1001
|
+
{ path: "bookings.booking.startDate" },
|
|
1002
|
+
{ path: "bookings.booking.endDate" },
|
|
1003
|
+
{ path: "bookings.booking.updatedDate" },
|
|
1004
|
+
{ path: "bookings.booking.canceledDate" }
|
|
943
1005
|
]
|
|
944
1006
|
},
|
|
945
1007
|
{
|
|
946
1008
|
transformFn: transformRESTFloatToSDKFloat,
|
|
947
1009
|
paths: [
|
|
948
|
-
{
|
|
949
|
-
|
|
1010
|
+
{
|
|
1011
|
+
path: "bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
1012
|
+
},
|
|
1013
|
+
{
|
|
1014
|
+
path: "bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1015
|
+
}
|
|
950
1016
|
]
|
|
951
1017
|
}
|
|
952
1018
|
])
|
|
953
1019
|
};
|
|
954
1020
|
return metadata;
|
|
955
1021
|
}
|
|
956
|
-
return
|
|
1022
|
+
return __addBookingsToMultiServiceBooking;
|
|
957
1023
|
}
|
|
958
|
-
function
|
|
959
|
-
function
|
|
1024
|
+
function removeBookingsFromMultiServiceBooking(payload) {
|
|
1025
|
+
function __removeBookingsFromMultiServiceBooking({ host }) {
|
|
960
1026
|
const metadata = {
|
|
961
1027
|
entityFqdn: "wix.bookings.v2.booking",
|
|
962
1028
|
method: "POST",
|
|
963
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1029
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.RemoveBookingsFromMultiServiceBooking",
|
|
964
1030
|
packageName: PACKAGE_NAME,
|
|
965
1031
|
migrationOptions: {
|
|
966
1032
|
optInTransformResponse: true
|
|
967
1033
|
},
|
|
968
|
-
url:
|
|
969
|
-
protoPath: "/v2/
|
|
1034
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
1035
|
+
protoPath: "/v2/multi_service_bookings/remove_bookings_from_multi_service_booking",
|
|
970
1036
|
data: payload,
|
|
971
1037
|
host
|
|
972
1038
|
}),
|
|
@@ -975,99 +1041,168 @@ function setBookingSubmissionId(payload) {
|
|
|
975
1041
|
{
|
|
976
1042
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
977
1043
|
paths: [
|
|
978
|
-
{ path: "booking.createdDate" },
|
|
979
|
-
{ path: "booking.startDate" },
|
|
980
|
-
{ path: "booking.endDate" },
|
|
981
|
-
{ path: "booking.updatedDate" },
|
|
982
|
-
{ path: "booking.canceledDate" }
|
|
1044
|
+
{ path: "bookings.booking.createdDate" },
|
|
1045
|
+
{ path: "bookings.booking.startDate" },
|
|
1046
|
+
{ path: "bookings.booking.endDate" },
|
|
1047
|
+
{ path: "bookings.booking.updatedDate" },
|
|
1048
|
+
{ path: "bookings.booking.canceledDate" }
|
|
983
1049
|
]
|
|
984
1050
|
},
|
|
985
1051
|
{
|
|
986
1052
|
transformFn: transformRESTFloatToSDKFloat,
|
|
987
1053
|
paths: [
|
|
988
|
-
{
|
|
989
|
-
|
|
1054
|
+
{
|
|
1055
|
+
path: "bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
1056
|
+
},
|
|
1057
|
+
{
|
|
1058
|
+
path: "bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1059
|
+
}
|
|
990
1060
|
]
|
|
991
1061
|
}
|
|
992
1062
|
])
|
|
993
1063
|
};
|
|
994
1064
|
return metadata;
|
|
995
1065
|
}
|
|
996
|
-
return
|
|
1066
|
+
return __removeBookingsFromMultiServiceBooking;
|
|
997
1067
|
}
|
|
998
|
-
function
|
|
999
|
-
function
|
|
1068
|
+
function createBooking(payload) {
|
|
1069
|
+
function __createBooking({ host }) {
|
|
1070
|
+
const serializedData = transformPaths(payload, [
|
|
1071
|
+
{
|
|
1072
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
1073
|
+
paths: [
|
|
1074
|
+
{ path: "booking.createdDate" },
|
|
1075
|
+
{ path: "booking.startDate" },
|
|
1076
|
+
{ path: "booking.endDate" },
|
|
1077
|
+
{ path: "booking.updatedDate" },
|
|
1078
|
+
{ path: "booking.canceledDate" }
|
|
1079
|
+
]
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
1083
|
+
paths: [
|
|
1084
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1085
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1086
|
+
]
|
|
1087
|
+
}
|
|
1088
|
+
]);
|
|
1000
1089
|
const metadata = {
|
|
1001
1090
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1002
1091
|
method: "POST",
|
|
1003
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.
|
|
1092
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.CreateBooking",
|
|
1004
1093
|
packageName: PACKAGE_NAME,
|
|
1005
1094
|
migrationOptions: {
|
|
1006
1095
|
optInTransformResponse: true
|
|
1007
1096
|
},
|
|
1008
1097
|
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1009
|
-
protoPath: "/v2/bookings
|
|
1010
|
-
data:
|
|
1098
|
+
protoPath: "/v2/bookings",
|
|
1099
|
+
data: serializedData,
|
|
1011
1100
|
host
|
|
1012
1101
|
}),
|
|
1013
|
-
data:
|
|
1102
|
+
data: serializedData,
|
|
1103
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1104
|
+
{
|
|
1105
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1106
|
+
paths: [
|
|
1107
|
+
{ path: "booking.createdDate" },
|
|
1108
|
+
{ path: "booking.startDate" },
|
|
1109
|
+
{ path: "booking.endDate" },
|
|
1110
|
+
{ path: "booking.updatedDate" },
|
|
1111
|
+
{ path: "booking.canceledDate" }
|
|
1112
|
+
]
|
|
1113
|
+
},
|
|
1114
|
+
{
|
|
1115
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1116
|
+
paths: [
|
|
1117
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1118
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1119
|
+
]
|
|
1120
|
+
}
|
|
1121
|
+
])
|
|
1014
1122
|
};
|
|
1015
1123
|
return metadata;
|
|
1016
1124
|
}
|
|
1017
|
-
return
|
|
1125
|
+
return __createBooking;
|
|
1018
1126
|
}
|
|
1019
|
-
function
|
|
1020
|
-
function
|
|
1127
|
+
function bulkCreateBooking(payload) {
|
|
1128
|
+
function __bulkCreateBooking({ host }) {
|
|
1129
|
+
const serializedData = transformPaths(payload, [
|
|
1130
|
+
{
|
|
1131
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
1132
|
+
paths: [
|
|
1133
|
+
{ path: "createBookingsInfo.booking.createdDate" },
|
|
1134
|
+
{ path: "createBookingsInfo.booking.startDate" },
|
|
1135
|
+
{ path: "createBookingsInfo.booking.endDate" },
|
|
1136
|
+
{ path: "createBookingsInfo.booking.updatedDate" },
|
|
1137
|
+
{ path: "createBookingsInfo.booking.canceledDate" }
|
|
1138
|
+
]
|
|
1139
|
+
},
|
|
1140
|
+
{
|
|
1141
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
1142
|
+
paths: [
|
|
1143
|
+
{
|
|
1144
|
+
path: "createBookingsInfo.booking.contactDetails.fullAddress.geocode.latitude"
|
|
1145
|
+
},
|
|
1146
|
+
{
|
|
1147
|
+
path: "createBookingsInfo.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1148
|
+
}
|
|
1149
|
+
]
|
|
1150
|
+
}
|
|
1151
|
+
]);
|
|
1021
1152
|
const metadata = {
|
|
1022
1153
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1023
1154
|
method: "POST",
|
|
1024
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.
|
|
1155
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.BulkCreateBooking",
|
|
1025
1156
|
packageName: PACKAGE_NAME,
|
|
1026
1157
|
migrationOptions: {
|
|
1027
1158
|
optInTransformResponse: true
|
|
1028
1159
|
},
|
|
1029
1160
|
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1030
|
-
protoPath: "/v2/bookings/
|
|
1031
|
-
data:
|
|
1161
|
+
protoPath: "/v2/bulk/bookings/create",
|
|
1162
|
+
data: serializedData,
|
|
1032
1163
|
host
|
|
1033
1164
|
}),
|
|
1034
|
-
data:
|
|
1165
|
+
data: serializedData,
|
|
1035
1166
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1036
1167
|
{
|
|
1037
1168
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1038
1169
|
paths: [
|
|
1039
|
-
{ path: "
|
|
1040
|
-
{ path: "
|
|
1041
|
-
{ path: "
|
|
1042
|
-
{ path: "
|
|
1043
|
-
{ path: "
|
|
1170
|
+
{ path: "results.item.createdDate" },
|
|
1171
|
+
{ path: "results.item.startDate" },
|
|
1172
|
+
{ path: "results.item.endDate" },
|
|
1173
|
+
{ path: "results.item.updatedDate" },
|
|
1174
|
+
{ path: "results.item.canceledDate" }
|
|
1044
1175
|
]
|
|
1045
1176
|
},
|
|
1046
1177
|
{
|
|
1047
1178
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1048
1179
|
paths: [
|
|
1049
|
-
{
|
|
1050
|
-
|
|
1180
|
+
{
|
|
1181
|
+
path: "results.item.contactDetails.fullAddress.geocode.latitude"
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
path: "results.item.contactDetails.fullAddress.geocode.longitude"
|
|
1185
|
+
}
|
|
1051
1186
|
]
|
|
1052
1187
|
}
|
|
1053
1188
|
])
|
|
1054
1189
|
};
|
|
1055
1190
|
return metadata;
|
|
1056
1191
|
}
|
|
1057
|
-
return
|
|
1192
|
+
return __bulkCreateBooking;
|
|
1058
1193
|
}
|
|
1059
|
-
function
|
|
1060
|
-
function
|
|
1194
|
+
function rescheduleBooking(payload) {
|
|
1195
|
+
function __rescheduleBooking({ host }) {
|
|
1061
1196
|
const metadata = {
|
|
1062
1197
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1063
1198
|
method: "POST",
|
|
1064
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.
|
|
1199
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.RescheduleBooking",
|
|
1065
1200
|
packageName: PACKAGE_NAME,
|
|
1066
1201
|
migrationOptions: {
|
|
1067
1202
|
optInTransformResponse: true
|
|
1068
1203
|
},
|
|
1069
1204
|
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1070
|
-
protoPath: "/v2/bookings/{bookingId}/
|
|
1205
|
+
protoPath: "/v2/bookings/{bookingId}/reschedule",
|
|
1071
1206
|
data: payload,
|
|
1072
1207
|
host
|
|
1073
1208
|
}),
|
|
@@ -1094,20 +1229,20 @@ function bookingsCancelBooking(payload) {
|
|
|
1094
1229
|
};
|
|
1095
1230
|
return metadata;
|
|
1096
1231
|
}
|
|
1097
|
-
return
|
|
1232
|
+
return __rescheduleBooking;
|
|
1098
1233
|
}
|
|
1099
|
-
function
|
|
1100
|
-
function
|
|
1234
|
+
function bookingsConfirmBooking(payload) {
|
|
1235
|
+
function __bookingsConfirmBooking({ host }) {
|
|
1101
1236
|
const metadata = {
|
|
1102
1237
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1103
1238
|
method: "POST",
|
|
1104
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.
|
|
1239
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.ConfirmBooking",
|
|
1105
1240
|
packageName: PACKAGE_NAME,
|
|
1106
1241
|
migrationOptions: {
|
|
1107
1242
|
optInTransformResponse: true
|
|
1108
1243
|
},
|
|
1109
1244
|
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1110
|
-
protoPath: "/v2/bookings/{bookingId}/
|
|
1245
|
+
protoPath: "/v2/bookings/{bookingId}/confirm",
|
|
1111
1246
|
data: payload,
|
|
1112
1247
|
host
|
|
1113
1248
|
}),
|
|
@@ -1134,20 +1269,20 @@ function bookingsUpdateNumberOfParticipants(payload) {
|
|
|
1134
1269
|
};
|
|
1135
1270
|
return metadata;
|
|
1136
1271
|
}
|
|
1137
|
-
return
|
|
1272
|
+
return __bookingsConfirmBooking;
|
|
1138
1273
|
}
|
|
1139
|
-
function
|
|
1140
|
-
function
|
|
1274
|
+
function setBookingSubmissionId(payload) {
|
|
1275
|
+
function __setBookingSubmissionId({ host }) {
|
|
1141
1276
|
const metadata = {
|
|
1142
1277
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1143
1278
|
method: "POST",
|
|
1144
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.
|
|
1279
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.SetBookingSubmissionId",
|
|
1145
1280
|
packageName: PACKAGE_NAME,
|
|
1146
1281
|
migrationOptions: {
|
|
1147
1282
|
optInTransformResponse: true
|
|
1148
1283
|
},
|
|
1149
1284
|
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1150
|
-
protoPath: "/v2/bookings/{bookingId}/
|
|
1285
|
+
protoPath: "/v2/bookings/{bookingId}/set-booking-submission-id",
|
|
1151
1286
|
data: payload,
|
|
1152
1287
|
host
|
|
1153
1288
|
}),
|
|
@@ -1174,83 +1309,41 @@ function markBookingAsPending(payload) {
|
|
|
1174
1309
|
};
|
|
1175
1310
|
return metadata;
|
|
1176
1311
|
}
|
|
1177
|
-
return
|
|
1312
|
+
return __setBookingSubmissionId;
|
|
1178
1313
|
}
|
|
1179
|
-
function
|
|
1180
|
-
function
|
|
1181
|
-
const serializedData = transformPaths(payload, [
|
|
1182
|
-
{
|
|
1183
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
1184
|
-
paths: [
|
|
1185
|
-
{ path: "bookings.createdDate" },
|
|
1186
|
-
{ path: "bookings.startDate" },
|
|
1187
|
-
{ path: "bookings.endDate" },
|
|
1188
|
-
{ path: "bookings.updatedDate" },
|
|
1189
|
-
{ path: "bookings.canceledDate" }
|
|
1190
|
-
]
|
|
1191
|
-
},
|
|
1192
|
-
{
|
|
1193
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
1194
|
-
paths: [
|
|
1195
|
-
{ path: "bookings.contactDetails.fullAddress.geocode.latitude" },
|
|
1196
|
-
{ path: "bookings.contactDetails.fullAddress.geocode.longitude" }
|
|
1197
|
-
]
|
|
1198
|
-
}
|
|
1199
|
-
]);
|
|
1314
|
+
function updateExtendedFields(payload) {
|
|
1315
|
+
function __updateExtendedFields({ host }) {
|
|
1200
1316
|
const metadata = {
|
|
1201
1317
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1202
1318
|
method: "POST",
|
|
1203
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1319
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.UpdateExtendedFields",
|
|
1204
1320
|
packageName: PACKAGE_NAME,
|
|
1205
1321
|
migrationOptions: {
|
|
1206
1322
|
optInTransformResponse: true
|
|
1207
1323
|
},
|
|
1208
|
-
url:
|
|
1209
|
-
protoPath: "/v2/
|
|
1210
|
-
data:
|
|
1324
|
+
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1325
|
+
protoPath: "/v2/bookings/{id}/update_extended_fields",
|
|
1326
|
+
data: payload,
|
|
1211
1327
|
host
|
|
1212
1328
|
}),
|
|
1213
|
-
data:
|
|
1214
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1215
|
-
{
|
|
1216
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1217
|
-
paths: [
|
|
1218
|
-
{ path: "multiServiceBooking.bookings.booking.createdDate" },
|
|
1219
|
-
{ path: "multiServiceBooking.bookings.booking.startDate" },
|
|
1220
|
-
{ path: "multiServiceBooking.bookings.booking.endDate" },
|
|
1221
|
-
{ path: "multiServiceBooking.bookings.booking.updatedDate" },
|
|
1222
|
-
{ path: "multiServiceBooking.bookings.booking.canceledDate" }
|
|
1223
|
-
]
|
|
1224
|
-
},
|
|
1225
|
-
{
|
|
1226
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
1227
|
-
paths: [
|
|
1228
|
-
{
|
|
1229
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
1230
|
-
},
|
|
1231
|
-
{
|
|
1232
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1233
|
-
}
|
|
1234
|
-
]
|
|
1235
|
-
}
|
|
1236
|
-
])
|
|
1329
|
+
data: payload
|
|
1237
1330
|
};
|
|
1238
1331
|
return metadata;
|
|
1239
1332
|
}
|
|
1240
|
-
return
|
|
1333
|
+
return __updateExtendedFields;
|
|
1241
1334
|
}
|
|
1242
|
-
function
|
|
1243
|
-
function
|
|
1335
|
+
function bookingsDeclineBooking(payload) {
|
|
1336
|
+
function __bookingsDeclineBooking({ host }) {
|
|
1244
1337
|
const metadata = {
|
|
1245
1338
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1246
1339
|
method: "POST",
|
|
1247
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1340
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.DeclineBooking",
|
|
1248
1341
|
packageName: PACKAGE_NAME,
|
|
1249
1342
|
migrationOptions: {
|
|
1250
1343
|
optInTransformResponse: true
|
|
1251
1344
|
},
|
|
1252
|
-
url:
|
|
1253
|
-
protoPath: "/v2/
|
|
1345
|
+
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1346
|
+
protoPath: "/v2/bookings/{bookingId}/decline",
|
|
1254
1347
|
data: payload,
|
|
1255
1348
|
host
|
|
1256
1349
|
}),
|
|
@@ -1259,63 +1352,38 @@ function rescheduleMultiServiceBooking(payload) {
|
|
|
1259
1352
|
{
|
|
1260
1353
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1261
1354
|
paths: [
|
|
1262
|
-
{ path: "
|
|
1263
|
-
{ path: "
|
|
1264
|
-
{ path: "
|
|
1265
|
-
{ path: "
|
|
1266
|
-
{ path: "
|
|
1355
|
+
{ path: "booking.createdDate" },
|
|
1356
|
+
{ path: "booking.startDate" },
|
|
1357
|
+
{ path: "booking.endDate" },
|
|
1358
|
+
{ path: "booking.updatedDate" },
|
|
1359
|
+
{ path: "booking.canceledDate" }
|
|
1267
1360
|
]
|
|
1268
1361
|
},
|
|
1269
1362
|
{
|
|
1270
1363
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1271
1364
|
paths: [
|
|
1272
|
-
{
|
|
1273
|
-
|
|
1274
|
-
},
|
|
1275
|
-
{
|
|
1276
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1277
|
-
}
|
|
1365
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1366
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1278
1367
|
]
|
|
1279
1368
|
}
|
|
1280
1369
|
])
|
|
1281
1370
|
};
|
|
1282
1371
|
return metadata;
|
|
1283
1372
|
}
|
|
1284
|
-
return
|
|
1285
|
-
}
|
|
1286
|
-
function getMultiServiceBookingAvailability(payload) {
|
|
1287
|
-
function __getMultiServiceBookingAvailability({ host }) {
|
|
1288
|
-
const metadata = {
|
|
1289
|
-
entityFqdn: "wix.bookings.v2.booking",
|
|
1290
|
-
method: "POST",
|
|
1291
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.GetMultiServiceBookingAvailability",
|
|
1292
|
-
packageName: PACKAGE_NAME,
|
|
1293
|
-
migrationOptions: {
|
|
1294
|
-
optInTransformResponse: true
|
|
1295
|
-
},
|
|
1296
|
-
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
1297
|
-
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/get_availability",
|
|
1298
|
-
data: payload,
|
|
1299
|
-
host
|
|
1300
|
-
}),
|
|
1301
|
-
data: payload
|
|
1302
|
-
};
|
|
1303
|
-
return metadata;
|
|
1304
|
-
}
|
|
1305
|
-
return __getMultiServiceBookingAvailability;
|
|
1373
|
+
return __bookingsDeclineBooking;
|
|
1306
1374
|
}
|
|
1307
|
-
function
|
|
1308
|
-
function
|
|
1375
|
+
function bookingsCancelBooking(payload) {
|
|
1376
|
+
function __bookingsCancelBooking({ host }) {
|
|
1309
1377
|
const metadata = {
|
|
1310
1378
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1311
1379
|
method: "POST",
|
|
1312
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1380
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.CancelBooking",
|
|
1313
1381
|
packageName: PACKAGE_NAME,
|
|
1314
1382
|
migrationOptions: {
|
|
1315
1383
|
optInTransformResponse: true
|
|
1316
1384
|
},
|
|
1317
|
-
url:
|
|
1318
|
-
protoPath: "/v2/
|
|
1385
|
+
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1386
|
+
protoPath: "/v2/bookings/{bookingId}/cancel",
|
|
1319
1387
|
data: payload,
|
|
1320
1388
|
host
|
|
1321
1389
|
}),
|
|
@@ -1324,42 +1392,38 @@ function cancelMultiServiceBooking(payload) {
|
|
|
1324
1392
|
{
|
|
1325
1393
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1326
1394
|
paths: [
|
|
1327
|
-
{ path: "
|
|
1328
|
-
{ path: "
|
|
1329
|
-
{ path: "
|
|
1330
|
-
{ path: "
|
|
1331
|
-
{ path: "
|
|
1395
|
+
{ path: "booking.createdDate" },
|
|
1396
|
+
{ path: "booking.startDate" },
|
|
1397
|
+
{ path: "booking.endDate" },
|
|
1398
|
+
{ path: "booking.updatedDate" },
|
|
1399
|
+
{ path: "booking.canceledDate" }
|
|
1332
1400
|
]
|
|
1333
1401
|
},
|
|
1334
1402
|
{
|
|
1335
1403
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1336
1404
|
paths: [
|
|
1337
|
-
{
|
|
1338
|
-
|
|
1339
|
-
},
|
|
1340
|
-
{
|
|
1341
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1342
|
-
}
|
|
1405
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1406
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1343
1407
|
]
|
|
1344
1408
|
}
|
|
1345
1409
|
])
|
|
1346
1410
|
};
|
|
1347
1411
|
return metadata;
|
|
1348
1412
|
}
|
|
1349
|
-
return
|
|
1413
|
+
return __bookingsCancelBooking;
|
|
1350
1414
|
}
|
|
1351
|
-
function
|
|
1352
|
-
function
|
|
1415
|
+
function bookingsUpdateNumberOfParticipants(payload) {
|
|
1416
|
+
function __bookingsUpdateNumberOfParticipants({ host }) {
|
|
1353
1417
|
const metadata = {
|
|
1354
1418
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1355
1419
|
method: "POST",
|
|
1356
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1420
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.UpdateNumberOfParticipants",
|
|
1357
1421
|
packageName: PACKAGE_NAME,
|
|
1358
1422
|
migrationOptions: {
|
|
1359
1423
|
optInTransformResponse: true
|
|
1360
1424
|
},
|
|
1361
|
-
url:
|
|
1362
|
-
protoPath: "/v2/
|
|
1425
|
+
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1426
|
+
protoPath: "/v2/bookings/{bookingId}/update_number_of_participants",
|
|
1363
1427
|
data: payload,
|
|
1364
1428
|
host
|
|
1365
1429
|
}),
|
|
@@ -1368,86 +1432,59 @@ function markMultiServiceBookingAsPending(payload) {
|
|
|
1368
1432
|
{
|
|
1369
1433
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1370
1434
|
paths: [
|
|
1371
|
-
{ path: "
|
|
1372
|
-
{ path: "
|
|
1373
|
-
{ path: "
|
|
1374
|
-
{ path: "
|
|
1375
|
-
{ path: "
|
|
1435
|
+
{ path: "booking.createdDate" },
|
|
1436
|
+
{ path: "booking.startDate" },
|
|
1437
|
+
{ path: "booking.endDate" },
|
|
1438
|
+
{ path: "booking.updatedDate" },
|
|
1439
|
+
{ path: "booking.canceledDate" }
|
|
1376
1440
|
]
|
|
1377
1441
|
},
|
|
1378
1442
|
{
|
|
1379
1443
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1380
1444
|
paths: [
|
|
1381
|
-
{
|
|
1382
|
-
|
|
1383
|
-
},
|
|
1384
|
-
{
|
|
1385
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1386
|
-
}
|
|
1445
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1446
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1387
1447
|
]
|
|
1388
1448
|
}
|
|
1389
1449
|
])
|
|
1390
1450
|
};
|
|
1391
1451
|
return metadata;
|
|
1392
1452
|
}
|
|
1393
|
-
return
|
|
1453
|
+
return __bookingsUpdateNumberOfParticipants;
|
|
1394
1454
|
}
|
|
1395
|
-
function
|
|
1396
|
-
function
|
|
1455
|
+
function bulkCalculateAllowedActions(payload) {
|
|
1456
|
+
function __bulkCalculateAllowedActions({ host }) {
|
|
1397
1457
|
const metadata = {
|
|
1398
1458
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1399
1459
|
method: "POST",
|
|
1400
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1460
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.BulkCalculateAllowedActions",
|
|
1401
1461
|
packageName: PACKAGE_NAME,
|
|
1402
1462
|
migrationOptions: {
|
|
1403
1463
|
optInTransformResponse: true
|
|
1404
1464
|
},
|
|
1405
|
-
url:
|
|
1406
|
-
protoPath: "/v2/
|
|
1465
|
+
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1466
|
+
protoPath: "/v2/bulk/bookings/calculate_allowed_actions",
|
|
1407
1467
|
data: payload,
|
|
1408
1468
|
host
|
|
1409
1469
|
}),
|
|
1410
|
-
data: payload
|
|
1411
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1412
|
-
{
|
|
1413
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1414
|
-
paths: [
|
|
1415
|
-
{ path: "multiServiceBooking.bookings.booking.createdDate" },
|
|
1416
|
-
{ path: "multiServiceBooking.bookings.booking.startDate" },
|
|
1417
|
-
{ path: "multiServiceBooking.bookings.booking.endDate" },
|
|
1418
|
-
{ path: "multiServiceBooking.bookings.booking.updatedDate" },
|
|
1419
|
-
{ path: "multiServiceBooking.bookings.booking.canceledDate" }
|
|
1420
|
-
]
|
|
1421
|
-
},
|
|
1422
|
-
{
|
|
1423
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
1424
|
-
paths: [
|
|
1425
|
-
{
|
|
1426
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
1427
|
-
},
|
|
1428
|
-
{
|
|
1429
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1430
|
-
}
|
|
1431
|
-
]
|
|
1432
|
-
}
|
|
1433
|
-
])
|
|
1470
|
+
data: payload
|
|
1434
1471
|
};
|
|
1435
1472
|
return metadata;
|
|
1436
1473
|
}
|
|
1437
|
-
return
|
|
1474
|
+
return __bulkCalculateAllowedActions;
|
|
1438
1475
|
}
|
|
1439
|
-
function
|
|
1440
|
-
function
|
|
1476
|
+
function markBookingAsPending(payload) {
|
|
1477
|
+
function __markBookingAsPending({ host }) {
|
|
1441
1478
|
const metadata = {
|
|
1442
1479
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1443
1480
|
method: "POST",
|
|
1444
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1481
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.MarkBookingAsPending",
|
|
1445
1482
|
packageName: PACKAGE_NAME,
|
|
1446
1483
|
migrationOptions: {
|
|
1447
1484
|
optInTransformResponse: true
|
|
1448
1485
|
},
|
|
1449
|
-
url:
|
|
1450
|
-
protoPath: "/v2/
|
|
1486
|
+
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1487
|
+
protoPath: "/v2/bookings/{bookingId}/mark_booking_as_pending",
|
|
1451
1488
|
data: payload,
|
|
1452
1489
|
host
|
|
1453
1490
|
}),
|
|
@@ -1456,107 +1493,99 @@ function declineMultiServiceBooking(payload) {
|
|
|
1456
1493
|
{
|
|
1457
1494
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1458
1495
|
paths: [
|
|
1459
|
-
{ path: "
|
|
1460
|
-
{ path: "
|
|
1461
|
-
{ path: "
|
|
1462
|
-
{ path: "
|
|
1463
|
-
{ path: "
|
|
1496
|
+
{ path: "booking.createdDate" },
|
|
1497
|
+
{ path: "booking.startDate" },
|
|
1498
|
+
{ path: "booking.endDate" },
|
|
1499
|
+
{ path: "booking.updatedDate" },
|
|
1500
|
+
{ path: "booking.canceledDate" }
|
|
1464
1501
|
]
|
|
1465
1502
|
},
|
|
1466
1503
|
{
|
|
1467
1504
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1468
1505
|
paths: [
|
|
1469
|
-
{
|
|
1470
|
-
|
|
1471
|
-
},
|
|
1472
|
-
{
|
|
1473
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1474
|
-
}
|
|
1506
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1507
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1475
1508
|
]
|
|
1476
1509
|
}
|
|
1477
1510
|
])
|
|
1478
1511
|
};
|
|
1479
1512
|
return metadata;
|
|
1480
1513
|
}
|
|
1481
|
-
return
|
|
1514
|
+
return __markBookingAsPending;
|
|
1482
1515
|
}
|
|
1483
|
-
function
|
|
1484
|
-
function
|
|
1516
|
+
function getAnonymousActionDetails(payload) {
|
|
1517
|
+
function __getAnonymousActionDetails({ host }) {
|
|
1485
1518
|
const metadata = {
|
|
1486
1519
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1487
|
-
method: "
|
|
1488
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1520
|
+
method: "GET",
|
|
1521
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetAnonymousActionDetails",
|
|
1489
1522
|
packageName: PACKAGE_NAME,
|
|
1490
1523
|
migrationOptions: {
|
|
1491
1524
|
optInTransformResponse: true
|
|
1492
1525
|
},
|
|
1493
|
-
url:
|
|
1494
|
-
protoPath: "/v2/
|
|
1526
|
+
url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
|
|
1527
|
+
protoPath: "/v2/bookings/anonymous-actions-details",
|
|
1495
1528
|
data: payload,
|
|
1496
1529
|
host
|
|
1497
1530
|
}),
|
|
1498
|
-
|
|
1531
|
+
params: toURLSearchParams(payload)
|
|
1499
1532
|
};
|
|
1500
1533
|
return metadata;
|
|
1501
1534
|
}
|
|
1502
|
-
return
|
|
1535
|
+
return __getAnonymousActionDetails;
|
|
1503
1536
|
}
|
|
1504
|
-
function
|
|
1505
|
-
function
|
|
1537
|
+
function cancelBookingAnonymously(payload) {
|
|
1538
|
+
function __cancelBookingAnonymously({ host }) {
|
|
1506
1539
|
const metadata = {
|
|
1507
1540
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1508
|
-
method: "
|
|
1509
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1541
|
+
method: "POST",
|
|
1542
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.CancelBookingAnonymously",
|
|
1510
1543
|
packageName: PACKAGE_NAME,
|
|
1511
1544
|
migrationOptions: {
|
|
1512
1545
|
optInTransformResponse: true
|
|
1513
1546
|
},
|
|
1514
|
-
url:
|
|
1515
|
-
protoPath: "/v2/
|
|
1547
|
+
url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
|
|
1548
|
+
protoPath: "/v2/bookings/{token}/anonymous-cancel",
|
|
1516
1549
|
data: payload,
|
|
1517
1550
|
host
|
|
1518
1551
|
}),
|
|
1519
|
-
|
|
1552
|
+
data: payload,
|
|
1520
1553
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1521
1554
|
{
|
|
1522
1555
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1523
1556
|
paths: [
|
|
1524
|
-
{ path: "
|
|
1525
|
-
{ path: "
|
|
1526
|
-
{ path: "
|
|
1527
|
-
{ path: "
|
|
1528
|
-
{ path: "
|
|
1557
|
+
{ path: "booking.createdDate" },
|
|
1558
|
+
{ path: "booking.startDate" },
|
|
1559
|
+
{ path: "booking.endDate" },
|
|
1560
|
+
{ path: "booking.updatedDate" },
|
|
1561
|
+
{ path: "booking.canceledDate" }
|
|
1529
1562
|
]
|
|
1530
1563
|
},
|
|
1531
1564
|
{
|
|
1532
1565
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1533
1566
|
paths: [
|
|
1534
|
-
{
|
|
1535
|
-
|
|
1536
|
-
},
|
|
1537
|
-
{
|
|
1538
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1539
|
-
}
|
|
1567
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1568
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1540
1569
|
]
|
|
1541
1570
|
}
|
|
1542
1571
|
])
|
|
1543
1572
|
};
|
|
1544
1573
|
return metadata;
|
|
1545
1574
|
}
|
|
1546
|
-
return
|
|
1575
|
+
return __cancelBookingAnonymously;
|
|
1547
1576
|
}
|
|
1548
|
-
function
|
|
1549
|
-
function
|
|
1577
|
+
function rescheduleBookingAnonymously(payload) {
|
|
1578
|
+
function __rescheduleBookingAnonymously({ host }) {
|
|
1550
1579
|
const metadata = {
|
|
1551
1580
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1552
1581
|
method: "POST",
|
|
1553
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1582
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.RescheduleBookingAnonymously",
|
|
1554
1583
|
packageName: PACKAGE_NAME,
|
|
1555
1584
|
migrationOptions: {
|
|
1556
1585
|
optInTransformResponse: true
|
|
1557
1586
|
},
|
|
1558
|
-
url:
|
|
1559
|
-
protoPath: "/v2/
|
|
1587
|
+
url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
|
|
1588
|
+
protoPath: "/v2/bookings/{token}/anonymous-reschedule",
|
|
1560
1589
|
data: payload,
|
|
1561
1590
|
host
|
|
1562
1591
|
}),
|
|
@@ -1565,73 +1594,65 @@ function addBookingsToMultiServiceBooking(payload) {
|
|
|
1565
1594
|
{
|
|
1566
1595
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1567
1596
|
paths: [
|
|
1568
|
-
{ path: "
|
|
1569
|
-
{ path: "
|
|
1570
|
-
{ path: "
|
|
1571
|
-
{ path: "
|
|
1572
|
-
{ path: "
|
|
1597
|
+
{ path: "booking.createdDate" },
|
|
1598
|
+
{ path: "booking.startDate" },
|
|
1599
|
+
{ path: "booking.endDate" },
|
|
1600
|
+
{ path: "booking.updatedDate" },
|
|
1601
|
+
{ path: "booking.canceledDate" }
|
|
1573
1602
|
]
|
|
1574
1603
|
},
|
|
1575
1604
|
{
|
|
1576
1605
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1577
1606
|
paths: [
|
|
1578
|
-
{
|
|
1579
|
-
|
|
1580
|
-
},
|
|
1581
|
-
{
|
|
1582
|
-
path: "bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1583
|
-
}
|
|
1607
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1608
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1584
1609
|
]
|
|
1585
1610
|
}
|
|
1586
1611
|
])
|
|
1587
1612
|
};
|
|
1588
1613
|
return metadata;
|
|
1589
1614
|
}
|
|
1590
|
-
return
|
|
1615
|
+
return __rescheduleBookingAnonymously;
|
|
1591
1616
|
}
|
|
1592
|
-
function
|
|
1593
|
-
function
|
|
1617
|
+
function getBookingAnonymously(payload) {
|
|
1618
|
+
function __getBookingAnonymously({ host }) {
|
|
1594
1619
|
const metadata = {
|
|
1595
1620
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1596
|
-
method: "
|
|
1597
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1621
|
+
method: "GET",
|
|
1622
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetBookingAnonymously",
|
|
1598
1623
|
packageName: PACKAGE_NAME,
|
|
1599
1624
|
migrationOptions: {
|
|
1600
1625
|
optInTransformResponse: true
|
|
1601
1626
|
},
|
|
1602
|
-
url:
|
|
1603
|
-
protoPath: "/v2/
|
|
1627
|
+
url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
|
|
1628
|
+
protoPath: "/v2/bookings/{token}/anonymous-get",
|
|
1604
1629
|
data: payload,
|
|
1605
1630
|
host
|
|
1606
1631
|
}),
|
|
1607
|
-
|
|
1632
|
+
params: toURLSearchParams(payload),
|
|
1608
1633
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1609
1634
|
{
|
|
1610
1635
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1611
1636
|
paths: [
|
|
1612
|
-
{ path: "
|
|
1613
|
-
{ path: "
|
|
1614
|
-
{ path: "
|
|
1615
|
-
{ path: "
|
|
1616
|
-
{ path: "
|
|
1637
|
+
{ path: "booking.createdDate" },
|
|
1638
|
+
{ path: "booking.startDate" },
|
|
1639
|
+
{ path: "booking.endDate" },
|
|
1640
|
+
{ path: "booking.updatedDate" },
|
|
1641
|
+
{ path: "booking.canceledDate" }
|
|
1617
1642
|
]
|
|
1618
1643
|
},
|
|
1619
1644
|
{
|
|
1620
1645
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1621
1646
|
paths: [
|
|
1622
|
-
{
|
|
1623
|
-
|
|
1624
|
-
},
|
|
1625
|
-
{
|
|
1626
|
-
path: "bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1627
|
-
}
|
|
1647
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1648
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1628
1649
|
]
|
|
1629
1650
|
}
|
|
1630
1651
|
])
|
|
1631
1652
|
};
|
|
1632
1653
|
return metadata;
|
|
1633
1654
|
}
|
|
1634
|
-
return
|
|
1655
|
+
return __getBookingAnonymously;
|
|
1635
1656
|
}
|
|
1636
1657
|
|
|
1637
1658
|
// src/bookings-v2-booking-bookings.universal.ts
|
|
@@ -1707,13 +1728,6 @@ var IdentificationDataIdentityType = /* @__PURE__ */ ((IdentificationDataIdentit
|
|
|
1707
1728
|
IdentificationDataIdentityType2["APP"] = "APP";
|
|
1708
1729
|
return IdentificationDataIdentityType2;
|
|
1709
1730
|
})(IdentificationDataIdentityType || {});
|
|
1710
|
-
var LocationLocationType = /* @__PURE__ */ ((LocationLocationType2) => {
|
|
1711
|
-
LocationLocationType2["UNDEFINED"] = "UNDEFINED";
|
|
1712
|
-
LocationLocationType2["OWNER_BUSINESS"] = "OWNER_BUSINESS";
|
|
1713
|
-
LocationLocationType2["OWNER_CUSTOM"] = "OWNER_CUSTOM";
|
|
1714
|
-
LocationLocationType2["CUSTOM"] = "CUSTOM";
|
|
1715
|
-
return LocationLocationType2;
|
|
1716
|
-
})(LocationLocationType || {});
|
|
1717
1731
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1718
1732
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1719
1733
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -1722,6 +1736,13 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
1722
1736
|
WebhookIdentityType2["APP"] = "APP";
|
|
1723
1737
|
return WebhookIdentityType2;
|
|
1724
1738
|
})(WebhookIdentityType || {});
|
|
1739
|
+
var LocationLocationType = /* @__PURE__ */ ((LocationLocationType2) => {
|
|
1740
|
+
LocationLocationType2["UNDEFINED"] = "UNDEFINED";
|
|
1741
|
+
LocationLocationType2["OWNER_BUSINESS"] = "OWNER_BUSINESS";
|
|
1742
|
+
LocationLocationType2["OWNER_CUSTOM"] = "OWNER_CUSTOM";
|
|
1743
|
+
LocationLocationType2["CUSTOM"] = "CUSTOM";
|
|
1744
|
+
return LocationLocationType2;
|
|
1745
|
+
})(LocationLocationType || {});
|
|
1725
1746
|
var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
|
|
1726
1747
|
IdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1727
1748
|
IdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -1735,12 +1756,13 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
1735
1756
|
SortOrder2["DESC"] = "DESC";
|
|
1736
1757
|
return SortOrder2;
|
|
1737
1758
|
})(SortOrder || {});
|
|
1738
|
-
async function
|
|
1739
|
-
const { httpClient, sideEffects } = arguments[
|
|
1759
|
+
async function confirmOrDeclineBooking2(bookingId, options) {
|
|
1760
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1740
1761
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1741
|
-
bookingId
|
|
1762
|
+
bookingId,
|
|
1763
|
+
paymentStatus: options?.paymentStatus
|
|
1742
1764
|
});
|
|
1743
|
-
const reqOpts =
|
|
1765
|
+
const reqOpts = confirmOrDeclineBooking(payload);
|
|
1744
1766
|
sideEffects?.onSiteCall?.();
|
|
1745
1767
|
try {
|
|
1746
1768
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1751,22 +1773,25 @@ async function getAnonymousActionDetails2(options) {
|
|
|
1751
1773
|
err,
|
|
1752
1774
|
{
|
|
1753
1775
|
spreadPathsToArguments: {},
|
|
1754
|
-
explicitPathsToArguments: {
|
|
1776
|
+
explicitPathsToArguments: {
|
|
1777
|
+
bookingId: "$[0]",
|
|
1778
|
+
paymentStatus: "$[1].paymentStatus"
|
|
1779
|
+
},
|
|
1755
1780
|
singleArgumentUnchanged: false
|
|
1756
1781
|
},
|
|
1757
|
-
["options"]
|
|
1782
|
+
["bookingId", "options"]
|
|
1758
1783
|
);
|
|
1759
1784
|
sideEffects?.onError?.(err);
|
|
1760
1785
|
throw transformedError;
|
|
1761
1786
|
}
|
|
1762
1787
|
}
|
|
1763
|
-
async function
|
|
1788
|
+
async function bulkConfirmOrDeclineBooking2(details, options) {
|
|
1764
1789
|
const { httpClient, sideEffects } = arguments[2];
|
|
1765
1790
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1766
|
-
|
|
1767
|
-
|
|
1791
|
+
details,
|
|
1792
|
+
returnEntity: options?.returnEntity
|
|
1768
1793
|
});
|
|
1769
|
-
const reqOpts =
|
|
1794
|
+
const reqOpts = bulkConfirmOrDeclineBooking(payload);
|
|
1770
1795
|
sideEffects?.onSiteCall?.();
|
|
1771
1796
|
try {
|
|
1772
1797
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1777,23 +1802,65 @@ async function cancelBookingAnonymously2(token, options) {
|
|
|
1777
1802
|
err,
|
|
1778
1803
|
{
|
|
1779
1804
|
spreadPathsToArguments: {},
|
|
1780
|
-
explicitPathsToArguments: {
|
|
1805
|
+
explicitPathsToArguments: {
|
|
1806
|
+
details: "$[0]",
|
|
1807
|
+
returnEntity: "$[1].returnEntity"
|
|
1808
|
+
},
|
|
1781
1809
|
singleArgumentUnchanged: false
|
|
1782
1810
|
},
|
|
1783
|
-
["
|
|
1811
|
+
["details", "options"]
|
|
1812
|
+
);
|
|
1813
|
+
sideEffects?.onError?.(err);
|
|
1814
|
+
throw transformedError;
|
|
1815
|
+
}
|
|
1816
|
+
}
|
|
1817
|
+
async function createMultiServiceBooking2(bookings, options) {
|
|
1818
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1819
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1820
|
+
bookings,
|
|
1821
|
+
participantNotification: options?.participantNotification,
|
|
1822
|
+
sendSmsReminder: options?.sendSmsReminder,
|
|
1823
|
+
flowControlSettings: options?.flowControlSettings,
|
|
1824
|
+
returnFullEntity: options?.returnFullEntity,
|
|
1825
|
+
multiServiceBookingType: options?.multiServiceBookingType
|
|
1826
|
+
});
|
|
1827
|
+
const reqOpts = createMultiServiceBooking(payload);
|
|
1828
|
+
sideEffects?.onSiteCall?.();
|
|
1829
|
+
try {
|
|
1830
|
+
const result = await httpClient.request(reqOpts);
|
|
1831
|
+
sideEffects?.onSuccess?.(result);
|
|
1832
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1833
|
+
} catch (err) {
|
|
1834
|
+
const transformedError = sdkTransformError(
|
|
1835
|
+
err,
|
|
1836
|
+
{
|
|
1837
|
+
spreadPathsToArguments: {},
|
|
1838
|
+
explicitPathsToArguments: {
|
|
1839
|
+
bookings: "$[0]",
|
|
1840
|
+
participantNotification: "$[1].participantNotification",
|
|
1841
|
+
sendSmsReminder: "$[1].sendSmsReminder",
|
|
1842
|
+
flowControlSettings: "$[1].flowControlSettings",
|
|
1843
|
+
returnFullEntity: "$[1].returnFullEntity",
|
|
1844
|
+
multiServiceBookingType: "$[1].multiServiceBookingType"
|
|
1845
|
+
},
|
|
1846
|
+
singleArgumentUnchanged: false
|
|
1847
|
+
},
|
|
1848
|
+
["bookings", "options"]
|
|
1784
1849
|
);
|
|
1785
1850
|
sideEffects?.onError?.(err);
|
|
1786
1851
|
throw transformedError;
|
|
1787
1852
|
}
|
|
1788
1853
|
}
|
|
1789
|
-
async function
|
|
1854
|
+
async function rescheduleMultiServiceBooking2(multiServiceBookingId, rescheduleBookingsInfo, options) {
|
|
1790
1855
|
const { httpClient, sideEffects } = arguments[3];
|
|
1791
1856
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1857
|
+
multiServiceBookingId,
|
|
1858
|
+
rescheduleBookingsInfo,
|
|
1859
|
+
participantNotification: options?.participantNotification,
|
|
1860
|
+
flowControlSettings: options?.flowControlSettings,
|
|
1861
|
+
returnFullEntity: options?.returnFullEntity
|
|
1795
1862
|
});
|
|
1796
|
-
const reqOpts =
|
|
1863
|
+
const reqOpts = rescheduleMultiServiceBooking(payload);
|
|
1797
1864
|
sideEffects?.onSiteCall?.();
|
|
1798
1865
|
try {
|
|
1799
1866
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1805,22 +1872,26 @@ async function rescheduleBookingAnonymously2(token, slot, options) {
|
|
|
1805
1872
|
{
|
|
1806
1873
|
spreadPathsToArguments: {},
|
|
1807
1874
|
explicitPathsToArguments: {
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1875
|
+
multiServiceBookingId: "$[0]",
|
|
1876
|
+
rescheduleBookingsInfo: "$[1]",
|
|
1877
|
+
participantNotification: "$[2].participantNotification",
|
|
1878
|
+
flowControlSettings: "$[2].flowControlSettings",
|
|
1879
|
+
returnFullEntity: "$[2].returnFullEntity"
|
|
1811
1880
|
},
|
|
1812
1881
|
singleArgumentUnchanged: false
|
|
1813
1882
|
},
|
|
1814
|
-
["
|
|
1883
|
+
["multiServiceBookingId", "rescheduleBookingsInfo", "options"]
|
|
1815
1884
|
);
|
|
1816
1885
|
sideEffects?.onError?.(err);
|
|
1817
1886
|
throw transformedError;
|
|
1818
1887
|
}
|
|
1819
1888
|
}
|
|
1820
|
-
async function
|
|
1889
|
+
async function getMultiServiceBookingAvailability2(multiServiceBookingId) {
|
|
1821
1890
|
const { httpClient, sideEffects } = arguments[1];
|
|
1822
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1823
|
-
|
|
1891
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1892
|
+
multiServiceBookingId
|
|
1893
|
+
});
|
|
1894
|
+
const reqOpts = getMultiServiceBookingAvailability(payload);
|
|
1824
1895
|
sideEffects?.onSiteCall?.();
|
|
1825
1896
|
try {
|
|
1826
1897
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1831,22 +1902,24 @@ async function getBookingAnonymously2(token) {
|
|
|
1831
1902
|
err,
|
|
1832
1903
|
{
|
|
1833
1904
|
spreadPathsToArguments: {},
|
|
1834
|
-
explicitPathsToArguments: {
|
|
1905
|
+
explicitPathsToArguments: { multiServiceBookingId: "$[0]" },
|
|
1835
1906
|
singleArgumentUnchanged: false
|
|
1836
1907
|
},
|
|
1837
|
-
["
|
|
1908
|
+
["multiServiceBookingId"]
|
|
1838
1909
|
);
|
|
1839
1910
|
sideEffects?.onError?.(err);
|
|
1840
1911
|
throw transformedError;
|
|
1841
1912
|
}
|
|
1842
1913
|
}
|
|
1843
|
-
async function
|
|
1914
|
+
async function cancelMultiServiceBooking2(multiServiceBookingId, options) {
|
|
1844
1915
|
const { httpClient, sideEffects } = arguments[2];
|
|
1845
1916
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1846
|
-
|
|
1847
|
-
|
|
1917
|
+
multiServiceBookingId,
|
|
1918
|
+
participantNotification: options?.participantNotification,
|
|
1919
|
+
flowControlSettings: options?.flowControlSettings,
|
|
1920
|
+
returnFullEntity: options?.returnFullEntity
|
|
1848
1921
|
});
|
|
1849
|
-
const reqOpts =
|
|
1922
|
+
const reqOpts = cancelMultiServiceBooking(payload);
|
|
1850
1923
|
sideEffects?.onSiteCall?.();
|
|
1851
1924
|
try {
|
|
1852
1925
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1858,24 +1931,31 @@ async function confirmOrDeclineBooking2(bookingId, options) {
|
|
|
1858
1931
|
{
|
|
1859
1932
|
spreadPathsToArguments: {},
|
|
1860
1933
|
explicitPathsToArguments: {
|
|
1861
|
-
|
|
1862
|
-
|
|
1934
|
+
multiServiceBookingId: "$[0]",
|
|
1935
|
+
participantNotification: "$[1].participantNotification",
|
|
1936
|
+
flowControlSettings: "$[1].flowControlSettings",
|
|
1937
|
+
returnFullEntity: "$[1].returnFullEntity"
|
|
1863
1938
|
},
|
|
1864
1939
|
singleArgumentUnchanged: false
|
|
1865
1940
|
},
|
|
1866
|
-
["
|
|
1941
|
+
["multiServiceBookingId", "options"]
|
|
1867
1942
|
);
|
|
1868
1943
|
sideEffects?.onError?.(err);
|
|
1869
1944
|
throw transformedError;
|
|
1870
1945
|
}
|
|
1871
1946
|
}
|
|
1872
|
-
async function
|
|
1947
|
+
async function markMultiServiceBookingAsPending2(multiServiceBookingId, options) {
|
|
1873
1948
|
const { httpClient, sideEffects } = arguments[2];
|
|
1874
1949
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1875
|
-
|
|
1876
|
-
|
|
1950
|
+
multiServiceBookingId,
|
|
1951
|
+
markAsPendingBookingsInfo: options?.markAsPendingBookingsInfo,
|
|
1952
|
+
participantNotification: options?.participantNotification,
|
|
1953
|
+
sendSmsReminder: options?.sendSmsReminder,
|
|
1954
|
+
doubleBooked: options?.doubleBooked,
|
|
1955
|
+
returnFullEntity: options?.returnFullEntity,
|
|
1956
|
+
flowControlSettings: options?.flowControlSettings
|
|
1877
1957
|
});
|
|
1878
|
-
const reqOpts =
|
|
1958
|
+
const reqOpts = markMultiServiceBookingAsPending(payload);
|
|
1879
1959
|
sideEffects?.onSiteCall?.();
|
|
1880
1960
|
try {
|
|
1881
1961
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1887,26 +1967,34 @@ async function bulkConfirmOrDeclineBooking2(details, options) {
|
|
|
1887
1967
|
{
|
|
1888
1968
|
spreadPathsToArguments: {},
|
|
1889
1969
|
explicitPathsToArguments: {
|
|
1890
|
-
|
|
1891
|
-
|
|
1970
|
+
multiServiceBookingId: "$[0]",
|
|
1971
|
+
markAsPendingBookingsInfo: "$[1].markAsPendingBookingsInfo",
|
|
1972
|
+
participantNotification: "$[1].participantNotification",
|
|
1973
|
+
sendSmsReminder: "$[1].sendSmsReminder",
|
|
1974
|
+
doubleBooked: "$[1].doubleBooked",
|
|
1975
|
+
returnFullEntity: "$[1].returnFullEntity",
|
|
1976
|
+
flowControlSettings: "$[1].flowControlSettings"
|
|
1892
1977
|
},
|
|
1893
1978
|
singleArgumentUnchanged: false
|
|
1894
1979
|
},
|
|
1895
|
-
["
|
|
1980
|
+
["multiServiceBookingId", "options"]
|
|
1896
1981
|
);
|
|
1897
1982
|
sideEffects?.onError?.(err);
|
|
1898
1983
|
throw transformedError;
|
|
1899
1984
|
}
|
|
1900
1985
|
}
|
|
1901
|
-
async function
|
|
1986
|
+
async function confirmMultiServiceBooking2(multiServiceBookingId, options) {
|
|
1902
1987
|
const { httpClient, sideEffects } = arguments[2];
|
|
1903
1988
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1904
|
-
|
|
1989
|
+
multiServiceBookingId,
|
|
1990
|
+
confirmBookingsInfo: options?.confirmBookingsInfo,
|
|
1905
1991
|
participantNotification: options?.participantNotification,
|
|
1906
1992
|
sendSmsReminder: options?.sendSmsReminder,
|
|
1993
|
+
doubleBooked: options?.doubleBooked,
|
|
1994
|
+
returnFullEntity: options?.returnFullEntity,
|
|
1907
1995
|
flowControlSettings: options?.flowControlSettings
|
|
1908
1996
|
});
|
|
1909
|
-
const reqOpts =
|
|
1997
|
+
const reqOpts = confirmMultiServiceBooking(payload);
|
|
1910
1998
|
sideEffects?.onSiteCall?.();
|
|
1911
1999
|
try {
|
|
1912
2000
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1918,26 +2006,33 @@ async function createBooking2(booking, options) {
|
|
|
1918
2006
|
{
|
|
1919
2007
|
spreadPathsToArguments: {},
|
|
1920
2008
|
explicitPathsToArguments: {
|
|
1921
|
-
|
|
2009
|
+
multiServiceBookingId: "$[0]",
|
|
2010
|
+
confirmBookingsInfo: "$[1].confirmBookingsInfo",
|
|
1922
2011
|
participantNotification: "$[1].participantNotification",
|
|
1923
2012
|
sendSmsReminder: "$[1].sendSmsReminder",
|
|
2013
|
+
doubleBooked: "$[1].doubleBooked",
|
|
2014
|
+
returnFullEntity: "$[1].returnFullEntity",
|
|
1924
2015
|
flowControlSettings: "$[1].flowControlSettings"
|
|
1925
2016
|
},
|
|
1926
2017
|
singleArgumentUnchanged: false
|
|
1927
2018
|
},
|
|
1928
|
-
["
|
|
2019
|
+
["multiServiceBookingId", "options"]
|
|
1929
2020
|
);
|
|
1930
2021
|
sideEffects?.onError?.(err);
|
|
1931
2022
|
throw transformedError;
|
|
1932
2023
|
}
|
|
1933
2024
|
}
|
|
1934
|
-
async function
|
|
2025
|
+
async function declineMultiServiceBooking2(multiServiceBookingId, options) {
|
|
1935
2026
|
const { httpClient, sideEffects } = arguments[2];
|
|
1936
2027
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1937
|
-
|
|
1938
|
-
|
|
2028
|
+
multiServiceBookingId,
|
|
2029
|
+
declineBookingsInfo: options?.declineBookingsInfo,
|
|
2030
|
+
participantNotification: options?.participantNotification,
|
|
2031
|
+
doubleBooked: options?.doubleBooked,
|
|
2032
|
+
returnFullEntity: options?.returnFullEntity,
|
|
2033
|
+
flowControlSettings: options?.flowControlSettings
|
|
1939
2034
|
});
|
|
1940
|
-
const reqOpts =
|
|
2035
|
+
const reqOpts = declineMultiServiceBooking(payload);
|
|
1941
2036
|
sideEffects?.onSiteCall?.();
|
|
1942
2037
|
try {
|
|
1943
2038
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1949,30 +2044,29 @@ async function bulkCreateBooking2(createBookingsInfo, options) {
|
|
|
1949
2044
|
{
|
|
1950
2045
|
spreadPathsToArguments: {},
|
|
1951
2046
|
explicitPathsToArguments: {
|
|
1952
|
-
|
|
1953
|
-
|
|
2047
|
+
multiServiceBookingId: "$[0]",
|
|
2048
|
+
declineBookingsInfo: "$[1].declineBookingsInfo",
|
|
2049
|
+
participantNotification: "$[1].participantNotification",
|
|
2050
|
+
doubleBooked: "$[1].doubleBooked",
|
|
2051
|
+
returnFullEntity: "$[1].returnFullEntity",
|
|
2052
|
+
flowControlSettings: "$[1].flowControlSettings"
|
|
1954
2053
|
},
|
|
1955
2054
|
singleArgumentUnchanged: false
|
|
1956
2055
|
},
|
|
1957
|
-
["
|
|
2056
|
+
["multiServiceBookingId", "options"]
|
|
1958
2057
|
);
|
|
1959
2058
|
sideEffects?.onError?.(err);
|
|
1960
2059
|
throw transformedError;
|
|
1961
2060
|
}
|
|
1962
2061
|
}
|
|
1963
|
-
async function
|
|
1964
|
-
const { httpClient, sideEffects } = arguments[
|
|
2062
|
+
async function bulkGetMultiServiceBookingAllowedActions2(multiServiceBookingIds) {
|
|
2063
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1965
2064
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1966
|
-
|
|
1967
|
-
slot,
|
|
1968
|
-
revision: options?.revision,
|
|
1969
|
-
participantNotification: options?.participantNotification,
|
|
1970
|
-
flowControlSettings: options?.flowControlSettings,
|
|
1971
|
-
totalParticipants: options?.totalParticipants,
|
|
1972
|
-
participantsChoices: options?.participantsChoices,
|
|
1973
|
-
bookedAddOns: options?.bookedAddOns
|
|
2065
|
+
multiServiceBookingIds
|
|
1974
2066
|
});
|
|
1975
|
-
const reqOpts =
|
|
2067
|
+
const reqOpts = bulkGetMultiServiceBookingAllowedActions(
|
|
2068
|
+
payload
|
|
2069
|
+
);
|
|
1976
2070
|
sideEffects?.onSiteCall?.();
|
|
1977
2071
|
try {
|
|
1978
2072
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1983,70 +2077,48 @@ async function rescheduleBooking2(bookingId, slot, options) {
|
|
|
1983
2077
|
err,
|
|
1984
2078
|
{
|
|
1985
2079
|
spreadPathsToArguments: {},
|
|
1986
|
-
explicitPathsToArguments: {
|
|
1987
|
-
bookingId: "$[0]",
|
|
1988
|
-
slot: "$[1]",
|
|
1989
|
-
revision: "$[2].revision",
|
|
1990
|
-
participantNotification: "$[2].participantNotification",
|
|
1991
|
-
flowControlSettings: "$[2].flowControlSettings",
|
|
1992
|
-
totalParticipants: "$[2].totalParticipants",
|
|
1993
|
-
participantsChoices: "$[2].participantsChoices",
|
|
1994
|
-
bookedAddOns: "$[2].bookedAddOns"
|
|
1995
|
-
},
|
|
2080
|
+
explicitPathsToArguments: { multiServiceBookingIds: "$[0]" },
|
|
1996
2081
|
singleArgumentUnchanged: false
|
|
1997
2082
|
},
|
|
1998
|
-
["
|
|
2083
|
+
["multiServiceBookingIds"]
|
|
1999
2084
|
);
|
|
2000
2085
|
sideEffects?.onError?.(err);
|
|
2001
2086
|
throw transformedError;
|
|
2002
2087
|
}
|
|
2003
2088
|
}
|
|
2004
|
-
async function
|
|
2005
|
-
const { httpClient, sideEffects } = arguments[
|
|
2089
|
+
async function getMultiServiceBooking2(multiServiceBookingId) {
|
|
2090
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2006
2091
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2007
|
-
|
|
2008
|
-
revision,
|
|
2009
|
-
participantNotification: options?.participantNotification,
|
|
2010
|
-
sendSmsReminder: options?.sendSmsReminder,
|
|
2011
|
-
paymentStatus: options?.paymentStatus,
|
|
2012
|
-
doubleBooked: options?.doubleBooked,
|
|
2013
|
-
flowControlSettings: options?.flowControlSettings
|
|
2092
|
+
multiServiceBookingId
|
|
2014
2093
|
});
|
|
2015
|
-
const reqOpts =
|
|
2094
|
+
const reqOpts = getMultiServiceBooking(payload);
|
|
2016
2095
|
sideEffects?.onSiteCall?.();
|
|
2017
2096
|
try {
|
|
2018
2097
|
const result = await httpClient.request(reqOpts);
|
|
2019
2098
|
sideEffects?.onSuccess?.(result);
|
|
2020
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2099
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data)?.multiServiceBooking;
|
|
2021
2100
|
} catch (err) {
|
|
2022
2101
|
const transformedError = sdkTransformError(
|
|
2023
2102
|
err,
|
|
2024
2103
|
{
|
|
2025
2104
|
spreadPathsToArguments: {},
|
|
2026
|
-
explicitPathsToArguments: {
|
|
2027
|
-
bookingId: "$[0]",
|
|
2028
|
-
revision: "$[1]",
|
|
2029
|
-
participantNotification: "$[2].participantNotification",
|
|
2030
|
-
sendSmsReminder: "$[2].sendSmsReminder",
|
|
2031
|
-
paymentStatus: "$[2].paymentStatus",
|
|
2032
|
-
doubleBooked: "$[2].doubleBooked",
|
|
2033
|
-
flowControlSettings: "$[2].flowControlSettings"
|
|
2034
|
-
},
|
|
2105
|
+
explicitPathsToArguments: { multiServiceBookingId: "$[0]" },
|
|
2035
2106
|
singleArgumentUnchanged: false
|
|
2036
2107
|
},
|
|
2037
|
-
["
|
|
2108
|
+
["multiServiceBookingId"]
|
|
2038
2109
|
);
|
|
2039
2110
|
sideEffects?.onError?.(err);
|
|
2040
2111
|
throw transformedError;
|
|
2041
2112
|
}
|
|
2042
2113
|
}
|
|
2043
|
-
async function
|
|
2114
|
+
async function addBookingsToMultiServiceBooking2(multiServiceBookingId, options) {
|
|
2044
2115
|
const { httpClient, sideEffects } = arguments[2];
|
|
2045
2116
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2046
|
-
|
|
2047
|
-
|
|
2117
|
+
multiServiceBookingId,
|
|
2118
|
+
bookings: options?.bookings,
|
|
2119
|
+
returnFullEntity: options?.returnFullEntity
|
|
2048
2120
|
});
|
|
2049
|
-
const reqOpts =
|
|
2121
|
+
const reqOpts = addBookingsToMultiServiceBooking(payload);
|
|
2050
2122
|
sideEffects?.onSiteCall?.();
|
|
2051
2123
|
try {
|
|
2052
2124
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2057,23 +2129,29 @@ async function setBookingSubmissionId2(bookingId, submissionId) {
|
|
|
2057
2129
|
err,
|
|
2058
2130
|
{
|
|
2059
2131
|
spreadPathsToArguments: {},
|
|
2060
|
-
explicitPathsToArguments: {
|
|
2132
|
+
explicitPathsToArguments: {
|
|
2133
|
+
multiServiceBookingId: "$[0]",
|
|
2134
|
+
bookings: "$[1].bookings",
|
|
2135
|
+
returnFullEntity: "$[1].returnFullEntity"
|
|
2136
|
+
},
|
|
2061
2137
|
singleArgumentUnchanged: false
|
|
2062
2138
|
},
|
|
2063
|
-
["
|
|
2139
|
+
["multiServiceBookingId", "options"]
|
|
2064
2140
|
);
|
|
2065
2141
|
sideEffects?.onError?.(err);
|
|
2066
2142
|
throw transformedError;
|
|
2067
2143
|
}
|
|
2068
2144
|
}
|
|
2069
|
-
async function
|
|
2070
|
-
const { httpClient, sideEffects } = arguments[
|
|
2145
|
+
async function removeBookingsFromMultiServiceBooking2(multiServiceBookingId, options) {
|
|
2146
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2071
2147
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2148
|
+
multiServiceBookingId,
|
|
2149
|
+
bookings: options?.bookings,
|
|
2150
|
+
returnFullEntity: options?.returnFullEntity
|
|
2075
2151
|
});
|
|
2076
|
-
const reqOpts =
|
|
2152
|
+
const reqOpts = removeBookingsFromMultiServiceBooking(
|
|
2153
|
+
payload
|
|
2154
|
+
);
|
|
2077
2155
|
sideEffects?.onSiteCall?.();
|
|
2078
2156
|
try {
|
|
2079
2157
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2085,29 +2163,27 @@ async function updateExtendedFields2(_id, namespace, options) {
|
|
|
2085
2163
|
{
|
|
2086
2164
|
spreadPathsToArguments: {},
|
|
2087
2165
|
explicitPathsToArguments: {
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2166
|
+
multiServiceBookingId: "$[0]",
|
|
2167
|
+
bookings: "$[1].bookings",
|
|
2168
|
+
returnFullEntity: "$[1].returnFullEntity"
|
|
2091
2169
|
},
|
|
2092
2170
|
singleArgumentUnchanged: false
|
|
2093
2171
|
},
|
|
2094
|
-
["
|
|
2172
|
+
["multiServiceBookingId", "options"]
|
|
2095
2173
|
);
|
|
2096
2174
|
sideEffects?.onError?.(err);
|
|
2097
2175
|
throw transformedError;
|
|
2098
2176
|
}
|
|
2099
2177
|
}
|
|
2100
|
-
async function
|
|
2101
|
-
const { httpClient, sideEffects } = arguments[
|
|
2178
|
+
async function createBooking2(booking, options) {
|
|
2179
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2102
2180
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2103
|
-
|
|
2104
|
-
revision,
|
|
2181
|
+
booking,
|
|
2105
2182
|
participantNotification: options?.participantNotification,
|
|
2106
|
-
|
|
2107
|
-
doubleBooked: options?.doubleBooked,
|
|
2183
|
+
sendSmsReminder: options?.sendSmsReminder,
|
|
2108
2184
|
flowControlSettings: options?.flowControlSettings
|
|
2109
2185
|
});
|
|
2110
|
-
const reqOpts =
|
|
2186
|
+
const reqOpts = createBooking(payload);
|
|
2111
2187
|
sideEffects?.onSiteCall?.();
|
|
2112
2188
|
try {
|
|
2113
2189
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2119,30 +2195,26 @@ async function declineBooking(bookingId, revision, options) {
|
|
|
2119
2195
|
{
|
|
2120
2196
|
spreadPathsToArguments: {},
|
|
2121
2197
|
explicitPathsToArguments: {
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
doubleBooked: "$[2].doubleBooked",
|
|
2127
|
-
flowControlSettings: "$[2].flowControlSettings"
|
|
2198
|
+
booking: "$[0]",
|
|
2199
|
+
participantNotification: "$[1].participantNotification",
|
|
2200
|
+
sendSmsReminder: "$[1].sendSmsReminder",
|
|
2201
|
+
flowControlSettings: "$[1].flowControlSettings"
|
|
2128
2202
|
},
|
|
2129
2203
|
singleArgumentUnchanged: false
|
|
2130
2204
|
},
|
|
2131
|
-
["
|
|
2205
|
+
["booking", "options"]
|
|
2132
2206
|
);
|
|
2133
2207
|
sideEffects?.onError?.(err);
|
|
2134
2208
|
throw transformedError;
|
|
2135
2209
|
}
|
|
2136
2210
|
}
|
|
2137
|
-
async function
|
|
2211
|
+
async function bulkCreateBooking2(createBookingsInfo, options) {
|
|
2138
2212
|
const { httpClient, sideEffects } = arguments[2];
|
|
2139
2213
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
flowControlSettings: options?.flowControlSettings,
|
|
2143
|
-
revision: options?.revision
|
|
2214
|
+
createBookingsInfo,
|
|
2215
|
+
returnFullEntity: options?.returnFullEntity
|
|
2144
2216
|
});
|
|
2145
|
-
const reqOpts =
|
|
2217
|
+
const reqOpts = bulkCreateBooking(payload);
|
|
2146
2218
|
sideEffects?.onSiteCall?.();
|
|
2147
2219
|
try {
|
|
2148
2220
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2154,28 +2226,30 @@ async function cancelBooking(bookingId, options) {
|
|
|
2154
2226
|
{
|
|
2155
2227
|
spreadPathsToArguments: {},
|
|
2156
2228
|
explicitPathsToArguments: {
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
flowControlSettings: "$[1].flowControlSettings",
|
|
2160
|
-
revision: "$[1].revision"
|
|
2229
|
+
createBookingsInfo: "$[0]",
|
|
2230
|
+
returnFullEntity: "$[1].returnFullEntity"
|
|
2161
2231
|
},
|
|
2162
2232
|
singleArgumentUnchanged: false
|
|
2163
2233
|
},
|
|
2164
|
-
["
|
|
2234
|
+
["createBookingsInfo", "options"]
|
|
2165
2235
|
);
|
|
2166
2236
|
sideEffects?.onError?.(err);
|
|
2167
2237
|
throw transformedError;
|
|
2168
2238
|
}
|
|
2169
|
-
}
|
|
2170
|
-
async function
|
|
2171
|
-
const { httpClient, sideEffects } = arguments[
|
|
2239
|
+
}
|
|
2240
|
+
async function rescheduleBooking2(bookingId, slot, options) {
|
|
2241
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
2172
2242
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2173
2243
|
bookingId,
|
|
2244
|
+
slot,
|
|
2174
2245
|
revision: options?.revision,
|
|
2246
|
+
participantNotification: options?.participantNotification,
|
|
2247
|
+
flowControlSettings: options?.flowControlSettings,
|
|
2175
2248
|
totalParticipants: options?.totalParticipants,
|
|
2176
|
-
participantsChoices: options?.participantsChoices
|
|
2249
|
+
participantsChoices: options?.participantsChoices,
|
|
2250
|
+
bookedAddOns: options?.bookedAddOns
|
|
2177
2251
|
});
|
|
2178
|
-
const reqOpts =
|
|
2252
|
+
const reqOpts = rescheduleBooking(payload);
|
|
2179
2253
|
sideEffects?.onSiteCall?.();
|
|
2180
2254
|
try {
|
|
2181
2255
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2188,19 +2262,23 @@ async function updateNumberOfParticipants(bookingId, options) {
|
|
|
2188
2262
|
spreadPathsToArguments: {},
|
|
2189
2263
|
explicitPathsToArguments: {
|
|
2190
2264
|
bookingId: "$[0]",
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2265
|
+
slot: "$[1]",
|
|
2266
|
+
revision: "$[2].revision",
|
|
2267
|
+
participantNotification: "$[2].participantNotification",
|
|
2268
|
+
flowControlSettings: "$[2].flowControlSettings",
|
|
2269
|
+
totalParticipants: "$[2].totalParticipants",
|
|
2270
|
+
participantsChoices: "$[2].participantsChoices",
|
|
2271
|
+
bookedAddOns: "$[2].bookedAddOns"
|
|
2194
2272
|
},
|
|
2195
2273
|
singleArgumentUnchanged: false
|
|
2196
2274
|
},
|
|
2197
|
-
["bookingId", "options"]
|
|
2275
|
+
["bookingId", "slot", "options"]
|
|
2198
2276
|
);
|
|
2199
2277
|
sideEffects?.onError?.(err);
|
|
2200
2278
|
throw transformedError;
|
|
2201
2279
|
}
|
|
2202
2280
|
}
|
|
2203
|
-
async function
|
|
2281
|
+
async function confirmBooking(bookingId, revision, options) {
|
|
2204
2282
|
const { httpClient, sideEffects } = arguments[3];
|
|
2205
2283
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2206
2284
|
bookingId,
|
|
@@ -2211,7 +2289,7 @@ async function markBookingAsPending2(bookingId, revision, options) {
|
|
|
2211
2289
|
doubleBooked: options?.doubleBooked,
|
|
2212
2290
|
flowControlSettings: options?.flowControlSettings
|
|
2213
2291
|
});
|
|
2214
|
-
const reqOpts =
|
|
2292
|
+
const reqOpts = bookingsConfirmBooking(payload);
|
|
2215
2293
|
sideEffects?.onSiteCall?.();
|
|
2216
2294
|
try {
|
|
2217
2295
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2239,17 +2317,13 @@ async function markBookingAsPending2(bookingId, revision, options) {
|
|
|
2239
2317
|
throw transformedError;
|
|
2240
2318
|
}
|
|
2241
2319
|
}
|
|
2242
|
-
async function
|
|
2320
|
+
async function setBookingSubmissionId2(bookingId, submissionId) {
|
|
2243
2321
|
const { httpClient, sideEffects } = arguments[2];
|
|
2244
2322
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
sendSmsReminder: options?.sendSmsReminder,
|
|
2248
|
-
flowControlSettings: options?.flowControlSettings,
|
|
2249
|
-
returnFullEntity: options?.returnFullEntity,
|
|
2250
|
-
multiServiceBookingType: options?.multiServiceBookingType
|
|
2323
|
+
bookingId,
|
|
2324
|
+
submissionId
|
|
2251
2325
|
});
|
|
2252
|
-
const reqOpts =
|
|
2326
|
+
const reqOpts = setBookingSubmissionId(payload);
|
|
2253
2327
|
sideEffects?.onSiteCall?.();
|
|
2254
2328
|
try {
|
|
2255
2329
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2260,32 +2334,23 @@ async function createMultiServiceBooking2(bookings, options) {
|
|
|
2260
2334
|
err,
|
|
2261
2335
|
{
|
|
2262
2336
|
spreadPathsToArguments: {},
|
|
2263
|
-
explicitPathsToArguments: {
|
|
2264
|
-
bookings: "$[0]",
|
|
2265
|
-
participantNotification: "$[1].participantNotification",
|
|
2266
|
-
sendSmsReminder: "$[1].sendSmsReminder",
|
|
2267
|
-
flowControlSettings: "$[1].flowControlSettings",
|
|
2268
|
-
returnFullEntity: "$[1].returnFullEntity",
|
|
2269
|
-
multiServiceBookingType: "$[1].multiServiceBookingType"
|
|
2270
|
-
},
|
|
2337
|
+
explicitPathsToArguments: { bookingId: "$[0]", submissionId: "$[1]" },
|
|
2271
2338
|
singleArgumentUnchanged: false
|
|
2272
2339
|
},
|
|
2273
|
-
["
|
|
2340
|
+
["bookingId", "submissionId"]
|
|
2274
2341
|
);
|
|
2275
2342
|
sideEffects?.onError?.(err);
|
|
2276
2343
|
throw transformedError;
|
|
2277
2344
|
}
|
|
2278
2345
|
}
|
|
2279
|
-
async function
|
|
2346
|
+
async function updateExtendedFields2(_id, namespace, options) {
|
|
2280
2347
|
const { httpClient, sideEffects } = arguments[3];
|
|
2281
2348
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
flowControlSettings: options?.flowControlSettings,
|
|
2286
|
-
returnFullEntity: options?.returnFullEntity
|
|
2349
|
+
id: _id,
|
|
2350
|
+
namespace,
|
|
2351
|
+
namespaceData: options?.namespaceData
|
|
2287
2352
|
});
|
|
2288
|
-
const reqOpts =
|
|
2353
|
+
const reqOpts = updateExtendedFields(payload);
|
|
2289
2354
|
sideEffects?.onSiteCall?.();
|
|
2290
2355
|
try {
|
|
2291
2356
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2297,26 +2362,29 @@ async function rescheduleMultiServiceBooking2(multiServiceBookingId, rescheduleB
|
|
|
2297
2362
|
{
|
|
2298
2363
|
spreadPathsToArguments: {},
|
|
2299
2364
|
explicitPathsToArguments: {
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
flowControlSettings: "$[2].flowControlSettings",
|
|
2304
|
-
returnFullEntity: "$[2].returnFullEntity"
|
|
2365
|
+
id: "$[0]",
|
|
2366
|
+
namespace: "$[1]",
|
|
2367
|
+
namespaceData: "$[2].namespaceData"
|
|
2305
2368
|
},
|
|
2306
2369
|
singleArgumentUnchanged: false
|
|
2307
2370
|
},
|
|
2308
|
-
["
|
|
2371
|
+
["_id", "namespace", "options"]
|
|
2309
2372
|
);
|
|
2310
2373
|
sideEffects?.onError?.(err);
|
|
2311
2374
|
throw transformedError;
|
|
2312
2375
|
}
|
|
2313
2376
|
}
|
|
2314
|
-
async function
|
|
2315
|
-
const { httpClient, sideEffects } = arguments[
|
|
2377
|
+
async function declineBooking(bookingId, revision, options) {
|
|
2378
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
2316
2379
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2317
|
-
|
|
2380
|
+
bookingId,
|
|
2381
|
+
revision,
|
|
2382
|
+
participantNotification: options?.participantNotification,
|
|
2383
|
+
paymentStatus: options?.paymentStatus,
|
|
2384
|
+
doubleBooked: options?.doubleBooked,
|
|
2385
|
+
flowControlSettings: options?.flowControlSettings
|
|
2318
2386
|
});
|
|
2319
|
-
const reqOpts =
|
|
2387
|
+
const reqOpts = bookingsDeclineBooking(payload);
|
|
2320
2388
|
sideEffects?.onSiteCall?.();
|
|
2321
2389
|
try {
|
|
2322
2390
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2327,24 +2395,31 @@ async function getMultiServiceBookingAvailability2(multiServiceBookingId) {
|
|
|
2327
2395
|
err,
|
|
2328
2396
|
{
|
|
2329
2397
|
spreadPathsToArguments: {},
|
|
2330
|
-
explicitPathsToArguments: {
|
|
2398
|
+
explicitPathsToArguments: {
|
|
2399
|
+
bookingId: "$[0]",
|
|
2400
|
+
revision: "$[1]",
|
|
2401
|
+
participantNotification: "$[2].participantNotification",
|
|
2402
|
+
paymentStatus: "$[2].paymentStatus",
|
|
2403
|
+
doubleBooked: "$[2].doubleBooked",
|
|
2404
|
+
flowControlSettings: "$[2].flowControlSettings"
|
|
2405
|
+
},
|
|
2331
2406
|
singleArgumentUnchanged: false
|
|
2332
2407
|
},
|
|
2333
|
-
["
|
|
2408
|
+
["bookingId", "revision", "options"]
|
|
2334
2409
|
);
|
|
2335
2410
|
sideEffects?.onError?.(err);
|
|
2336
2411
|
throw transformedError;
|
|
2337
2412
|
}
|
|
2338
2413
|
}
|
|
2339
|
-
async function
|
|
2414
|
+
async function cancelBooking(bookingId, options) {
|
|
2340
2415
|
const { httpClient, sideEffects } = arguments[2];
|
|
2341
2416
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2342
|
-
|
|
2417
|
+
bookingId,
|
|
2343
2418
|
participantNotification: options?.participantNotification,
|
|
2344
2419
|
flowControlSettings: options?.flowControlSettings,
|
|
2345
|
-
|
|
2420
|
+
revision: options?.revision
|
|
2346
2421
|
});
|
|
2347
|
-
const reqOpts =
|
|
2422
|
+
const reqOpts = bookingsCancelBooking(payload);
|
|
2348
2423
|
sideEffects?.onSiteCall?.();
|
|
2349
2424
|
try {
|
|
2350
2425
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2356,31 +2431,28 @@ async function cancelMultiServiceBooking2(multiServiceBookingId, options) {
|
|
|
2356
2431
|
{
|
|
2357
2432
|
spreadPathsToArguments: {},
|
|
2358
2433
|
explicitPathsToArguments: {
|
|
2359
|
-
|
|
2434
|
+
bookingId: "$[0]",
|
|
2360
2435
|
participantNotification: "$[1].participantNotification",
|
|
2361
2436
|
flowControlSettings: "$[1].flowControlSettings",
|
|
2362
|
-
|
|
2437
|
+
revision: "$[1].revision"
|
|
2363
2438
|
},
|
|
2364
2439
|
singleArgumentUnchanged: false
|
|
2365
2440
|
},
|
|
2366
|
-
["
|
|
2441
|
+
["bookingId", "options"]
|
|
2367
2442
|
);
|
|
2368
2443
|
sideEffects?.onError?.(err);
|
|
2369
2444
|
throw transformedError;
|
|
2370
2445
|
}
|
|
2371
2446
|
}
|
|
2372
|
-
async function
|
|
2447
|
+
async function updateNumberOfParticipants(bookingId, options) {
|
|
2373
2448
|
const { httpClient, sideEffects } = arguments[2];
|
|
2374
2449
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
doubleBooked: options?.doubleBooked,
|
|
2380
|
-
returnFullEntity: options?.returnFullEntity,
|
|
2381
|
-
flowControlSettings: options?.flowControlSettings
|
|
2450
|
+
bookingId,
|
|
2451
|
+
revision: options?.revision,
|
|
2452
|
+
totalParticipants: options?.totalParticipants,
|
|
2453
|
+
participantsChoices: options?.participantsChoices
|
|
2382
2454
|
});
|
|
2383
|
-
const reqOpts =
|
|
2455
|
+
const reqOpts = bookingsUpdateNumberOfParticipants(payload);
|
|
2384
2456
|
sideEffects?.onSiteCall?.();
|
|
2385
2457
|
try {
|
|
2386
2458
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2392,34 +2464,25 @@ async function markMultiServiceBookingAsPending2(multiServiceBookingId, options)
|
|
|
2392
2464
|
{
|
|
2393
2465
|
spreadPathsToArguments: {},
|
|
2394
2466
|
explicitPathsToArguments: {
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
doubleBooked: "$[1].doubleBooked",
|
|
2400
|
-
returnFullEntity: "$[1].returnFullEntity",
|
|
2401
|
-
flowControlSettings: "$[1].flowControlSettings"
|
|
2467
|
+
bookingId: "$[0]",
|
|
2468
|
+
revision: "$[1].revision",
|
|
2469
|
+
totalParticipants: "$[1].totalParticipants",
|
|
2470
|
+
participantsChoices: "$[1].participantsChoices"
|
|
2402
2471
|
},
|
|
2403
2472
|
singleArgumentUnchanged: false
|
|
2404
2473
|
},
|
|
2405
|
-
["
|
|
2474
|
+
["bookingId", "options"]
|
|
2406
2475
|
);
|
|
2407
2476
|
sideEffects?.onError?.(err);
|
|
2408
2477
|
throw transformedError;
|
|
2409
2478
|
}
|
|
2410
2479
|
}
|
|
2411
|
-
async function
|
|
2412
|
-
const { httpClient, sideEffects } = arguments[
|
|
2480
|
+
async function bulkCalculateAllowedActions2(bookingIds) {
|
|
2481
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2413
2482
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2414
|
-
|
|
2415
|
-
confirmBookingsInfo: options?.confirmBookingsInfo,
|
|
2416
|
-
participantNotification: options?.participantNotification,
|
|
2417
|
-
sendSmsReminder: options?.sendSmsReminder,
|
|
2418
|
-
doubleBooked: options?.doubleBooked,
|
|
2419
|
-
returnFullEntity: options?.returnFullEntity,
|
|
2420
|
-
flowControlSettings: options?.flowControlSettings
|
|
2483
|
+
bookingIds
|
|
2421
2484
|
});
|
|
2422
|
-
const reqOpts =
|
|
2485
|
+
const reqOpts = bulkCalculateAllowedActions(payload);
|
|
2423
2486
|
sideEffects?.onSiteCall?.();
|
|
2424
2487
|
try {
|
|
2425
2488
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2430,34 +2493,27 @@ async function confirmMultiServiceBooking2(multiServiceBookingId, options) {
|
|
|
2430
2493
|
err,
|
|
2431
2494
|
{
|
|
2432
2495
|
spreadPathsToArguments: {},
|
|
2433
|
-
explicitPathsToArguments: {
|
|
2434
|
-
multiServiceBookingId: "$[0]",
|
|
2435
|
-
confirmBookingsInfo: "$[1].confirmBookingsInfo",
|
|
2436
|
-
participantNotification: "$[1].participantNotification",
|
|
2437
|
-
sendSmsReminder: "$[1].sendSmsReminder",
|
|
2438
|
-
doubleBooked: "$[1].doubleBooked",
|
|
2439
|
-
returnFullEntity: "$[1].returnFullEntity",
|
|
2440
|
-
flowControlSettings: "$[1].flowControlSettings"
|
|
2441
|
-
},
|
|
2496
|
+
explicitPathsToArguments: { bookingIds: "$[0]" },
|
|
2442
2497
|
singleArgumentUnchanged: false
|
|
2443
2498
|
},
|
|
2444
|
-
["
|
|
2499
|
+
["bookingIds"]
|
|
2445
2500
|
);
|
|
2446
2501
|
sideEffects?.onError?.(err);
|
|
2447
2502
|
throw transformedError;
|
|
2448
2503
|
}
|
|
2449
2504
|
}
|
|
2450
|
-
async function
|
|
2451
|
-
const { httpClient, sideEffects } = arguments[
|
|
2505
|
+
async function markBookingAsPending2(bookingId, revision, options) {
|
|
2506
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
2452
2507
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2453
|
-
|
|
2454
|
-
|
|
2508
|
+
bookingId,
|
|
2509
|
+
revision,
|
|
2455
2510
|
participantNotification: options?.participantNotification,
|
|
2511
|
+
sendSmsReminder: options?.sendSmsReminder,
|
|
2512
|
+
paymentStatus: options?.paymentStatus,
|
|
2456
2513
|
doubleBooked: options?.doubleBooked,
|
|
2457
|
-
returnFullEntity: options?.returnFullEntity,
|
|
2458
2514
|
flowControlSettings: options?.flowControlSettings
|
|
2459
2515
|
});
|
|
2460
|
-
const reqOpts =
|
|
2516
|
+
const reqOpts = markBookingAsPending(payload);
|
|
2461
2517
|
sideEffects?.onSiteCall?.();
|
|
2462
2518
|
try {
|
|
2463
2519
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2469,29 +2525,28 @@ async function declineMultiServiceBooking2(multiServiceBookingId, options) {
|
|
|
2469
2525
|
{
|
|
2470
2526
|
spreadPathsToArguments: {},
|
|
2471
2527
|
explicitPathsToArguments: {
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
participantNotification: "$[
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2528
|
+
bookingId: "$[0]",
|
|
2529
|
+
revision: "$[1]",
|
|
2530
|
+
participantNotification: "$[2].participantNotification",
|
|
2531
|
+
sendSmsReminder: "$[2].sendSmsReminder",
|
|
2532
|
+
paymentStatus: "$[2].paymentStatus",
|
|
2533
|
+
doubleBooked: "$[2].doubleBooked",
|
|
2534
|
+
flowControlSettings: "$[2].flowControlSettings"
|
|
2478
2535
|
},
|
|
2479
2536
|
singleArgumentUnchanged: false
|
|
2480
2537
|
},
|
|
2481
|
-
["
|
|
2538
|
+
["bookingId", "revision", "options"]
|
|
2482
2539
|
);
|
|
2483
2540
|
sideEffects?.onError?.(err);
|
|
2484
2541
|
throw transformedError;
|
|
2485
2542
|
}
|
|
2486
2543
|
}
|
|
2487
|
-
async function
|
|
2544
|
+
async function getAnonymousActionDetails2(options) {
|
|
2488
2545
|
const { httpClient, sideEffects } = arguments[1];
|
|
2489
2546
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2490
|
-
|
|
2547
|
+
bookingId: options?.bookingId
|
|
2491
2548
|
});
|
|
2492
|
-
const reqOpts =
|
|
2493
|
-
payload
|
|
2494
|
-
);
|
|
2549
|
+
const reqOpts = getAnonymousActionDetails(payload);
|
|
2495
2550
|
sideEffects?.onSiteCall?.();
|
|
2496
2551
|
try {
|
|
2497
2552
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2502,48 +2557,49 @@ async function bulkGetMultiServiceBookingAllowedActions2(multiServiceBookingIds)
|
|
|
2502
2557
|
err,
|
|
2503
2558
|
{
|
|
2504
2559
|
spreadPathsToArguments: {},
|
|
2505
|
-
explicitPathsToArguments: {
|
|
2560
|
+
explicitPathsToArguments: { bookingId: "$[0].bookingId" },
|
|
2506
2561
|
singleArgumentUnchanged: false
|
|
2507
2562
|
},
|
|
2508
|
-
["
|
|
2563
|
+
["options"]
|
|
2509
2564
|
);
|
|
2510
2565
|
sideEffects?.onError?.(err);
|
|
2511
2566
|
throw transformedError;
|
|
2512
2567
|
}
|
|
2513
2568
|
}
|
|
2514
|
-
async function
|
|
2515
|
-
const { httpClient, sideEffects } = arguments[
|
|
2569
|
+
async function cancelBookingAnonymously2(token, options) {
|
|
2570
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2516
2571
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2517
|
-
|
|
2572
|
+
token,
|
|
2573
|
+
revision: options?.revision
|
|
2518
2574
|
});
|
|
2519
|
-
const reqOpts =
|
|
2575
|
+
const reqOpts = cancelBookingAnonymously(payload);
|
|
2520
2576
|
sideEffects?.onSiteCall?.();
|
|
2521
2577
|
try {
|
|
2522
2578
|
const result = await httpClient.request(reqOpts);
|
|
2523
2579
|
sideEffects?.onSuccess?.(result);
|
|
2524
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data)
|
|
2580
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2525
2581
|
} catch (err) {
|
|
2526
2582
|
const transformedError = sdkTransformError(
|
|
2527
2583
|
err,
|
|
2528
2584
|
{
|
|
2529
2585
|
spreadPathsToArguments: {},
|
|
2530
|
-
explicitPathsToArguments: {
|
|
2586
|
+
explicitPathsToArguments: { token: "$[0]", revision: "$[1].revision" },
|
|
2531
2587
|
singleArgumentUnchanged: false
|
|
2532
2588
|
},
|
|
2533
|
-
["
|
|
2589
|
+
["token", "options"]
|
|
2534
2590
|
);
|
|
2535
2591
|
sideEffects?.onError?.(err);
|
|
2536
2592
|
throw transformedError;
|
|
2537
2593
|
}
|
|
2538
2594
|
}
|
|
2539
|
-
async function
|
|
2540
|
-
const { httpClient, sideEffects } = arguments[
|
|
2595
|
+
async function rescheduleBookingAnonymously2(token, slot, options) {
|
|
2596
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
2541
2597
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2598
|
+
token,
|
|
2599
|
+
slot,
|
|
2600
|
+
revision: options?.revision
|
|
2545
2601
|
});
|
|
2546
|
-
const reqOpts =
|
|
2602
|
+
const reqOpts = rescheduleBookingAnonymously(payload);
|
|
2547
2603
|
sideEffects?.onSiteCall?.();
|
|
2548
2604
|
try {
|
|
2549
2605
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2555,28 +2611,22 @@ async function addBookingsToMultiServiceBooking2(multiServiceBookingId, options)
|
|
|
2555
2611
|
{
|
|
2556
2612
|
spreadPathsToArguments: {},
|
|
2557
2613
|
explicitPathsToArguments: {
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2614
|
+
token: "$[0]",
|
|
2615
|
+
slot: "$[1]",
|
|
2616
|
+
revision: "$[2].revision"
|
|
2561
2617
|
},
|
|
2562
2618
|
singleArgumentUnchanged: false
|
|
2563
2619
|
},
|
|
2564
|
-
["
|
|
2620
|
+
["token", "slot", "options"]
|
|
2565
2621
|
);
|
|
2566
2622
|
sideEffects?.onError?.(err);
|
|
2567
2623
|
throw transformedError;
|
|
2568
2624
|
}
|
|
2569
2625
|
}
|
|
2570
|
-
async function
|
|
2571
|
-
const { httpClient, sideEffects } = arguments[
|
|
2572
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2573
|
-
|
|
2574
|
-
bookings: options?.bookings,
|
|
2575
|
-
returnFullEntity: options?.returnFullEntity
|
|
2576
|
-
});
|
|
2577
|
-
const reqOpts = removeBookingsFromMultiServiceBooking(
|
|
2578
|
-
payload
|
|
2579
|
-
);
|
|
2626
|
+
async function getBookingAnonymously2(token) {
|
|
2627
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2628
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ token });
|
|
2629
|
+
const reqOpts = getBookingAnonymously(payload);
|
|
2580
2630
|
sideEffects?.onSiteCall?.();
|
|
2581
2631
|
try {
|
|
2582
2632
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2587,14 +2637,10 @@ async function removeBookingsFromMultiServiceBooking2(multiServiceBookingId, opt
|
|
|
2587
2637
|
err,
|
|
2588
2638
|
{
|
|
2589
2639
|
spreadPathsToArguments: {},
|
|
2590
|
-
explicitPathsToArguments: {
|
|
2591
|
-
multiServiceBookingId: "$[0]",
|
|
2592
|
-
bookings: "$[1].bookings",
|
|
2593
|
-
returnFullEntity: "$[1].returnFullEntity"
|
|
2594
|
-
},
|
|
2640
|
+
explicitPathsToArguments: { token: "$[0]" },
|
|
2595
2641
|
singleArgumentUnchanged: false
|
|
2596
2642
|
},
|
|
2597
|
-
["
|
|
2643
|
+
["token"]
|
|
2598
2644
|
);
|
|
2599
2645
|
sideEffects?.onError?.(err);
|
|
2600
2646
|
throw transformedError;
|
|
@@ -2616,6 +2662,7 @@ export {
|
|
|
2616
2662
|
ValueType,
|
|
2617
2663
|
WebhookIdentityType,
|
|
2618
2664
|
addBookingsToMultiServiceBooking2 as addBookingsToMultiServiceBooking,
|
|
2665
|
+
bulkCalculateAllowedActions2 as bulkCalculateAllowedActions,
|
|
2619
2666
|
bulkConfirmOrDeclineBooking2 as bulkConfirmOrDeclineBooking,
|
|
2620
2667
|
bulkCreateBooking2 as bulkCreateBooking,
|
|
2621
2668
|
bulkGetMultiServiceBookingAllowedActions2 as bulkGetMultiServiceBookingAllowedActions,
|