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