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