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