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