@wix/auto_sdk_bookings_bookings 1.0.89 → 1.0.91
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +597 -580
- package/build/cjs/index.js +1025 -934
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2337 -2373
- package/build/cjs/index.typings.js +848 -800
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1382 -1435
- package/build/cjs/meta.js +700 -659
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +597 -580
- package/build/es/index.mjs +1023 -934
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2337 -2373
- package/build/es/index.typings.mjs +847 -800
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1382 -1435
- package/build/es/meta.mjs +699 -659
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +597 -580
- package/build/internal/cjs/index.js +1025 -934
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2349 -2385
- package/build/internal/cjs/index.typings.js +848 -800
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1382 -1435
- package/build/internal/cjs/meta.js +700 -659
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +597 -580
- package/build/internal/es/index.mjs +1023 -934
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2349 -2385
- package/build/internal/es/index.typings.mjs +847 -800
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1382 -1435
- package/build/internal/es/meta.mjs +699 -659
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -35,6 +35,7 @@ __export(meta_exports, {
|
|
|
35
35
|
ValueTypeOriginal: () => ValueType,
|
|
36
36
|
WebhookIdentityTypeOriginal: () => WebhookIdentityType,
|
|
37
37
|
addBookingsToMultiServiceBooking: () => addBookingsToMultiServiceBooking2,
|
|
38
|
+
bulkCalculateAllowedActions: () => bulkCalculateAllowedActions2,
|
|
38
39
|
bulkConfirmOrDeclineBooking: () => bulkConfirmOrDeclineBooking2,
|
|
39
40
|
bulkCreateBooking: () => bulkCreateBooking2,
|
|
40
41
|
bulkGetMultiServiceBookingAllowedActions: () => bulkGetMultiServiceBookingAllowedActions2,
|
|
@@ -72,7 +73,7 @@ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
72
73
|
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
73
74
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
74
75
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
75
|
-
function
|
|
76
|
+
function resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl(opts) {
|
|
76
77
|
const domainToMappings = {
|
|
77
78
|
_: [
|
|
78
79
|
{
|
|
@@ -378,58 +379,7 @@ function resolveComWixpressBookingsBookingsV2BookingsUrl(opts) {
|
|
|
378
379
|
};
|
|
379
380
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
380
381
|
}
|
|
381
|
-
function
|
|
382
|
-
const domainToMappings = {
|
|
383
|
-
"www.wixapis.com": [
|
|
384
|
-
{
|
|
385
|
-
srcPath: "/_api/bookings-confirmator/v2/bookings/confirmation",
|
|
386
|
-
destPath: "/v2/bookings/confirmation"
|
|
387
|
-
},
|
|
388
|
-
{
|
|
389
|
-
srcPath: "/bookings/v2/confirmation",
|
|
390
|
-
destPath: "/v2/confirmation"
|
|
391
|
-
},
|
|
392
|
-
{
|
|
393
|
-
srcPath: "/bookings/v2/bulk/confirmation",
|
|
394
|
-
destPath: "/v2/bulk/confirmation"
|
|
395
|
-
},
|
|
396
|
-
{
|
|
397
|
-
srcPath: "/bookings/v2/bulk/bookings/confirmOrDecline",
|
|
398
|
-
destPath: "/v2/bulk/bookings/confirmOrDecline"
|
|
399
|
-
},
|
|
400
|
-
{
|
|
401
|
-
srcPath: "/_api/bookings-confirmator/v2/bulk/confirmation",
|
|
402
|
-
destPath: "/v2/bulk/confirmation"
|
|
403
|
-
},
|
|
404
|
-
{
|
|
405
|
-
srcPath: "/_api/bookings-confirmator/v2/bulk/bookings/confirmOrDecline",
|
|
406
|
-
destPath: "/v2/bulk/bookings/confirmOrDecline"
|
|
407
|
-
}
|
|
408
|
-
],
|
|
409
|
-
"*.dev.wix-code.com": [
|
|
410
|
-
{
|
|
411
|
-
srcPath: "/bookings/v2/confirmation",
|
|
412
|
-
destPath: "/v2/confirmation"
|
|
413
|
-
},
|
|
414
|
-
{
|
|
415
|
-
srcPath: "/bookings/v2/bulk/bookings",
|
|
416
|
-
destPath: "/v2/bulk/bookings"
|
|
417
|
-
}
|
|
418
|
-
],
|
|
419
|
-
_: [
|
|
420
|
-
{
|
|
421
|
-
srcPath: "/bookings/v2/confirmation",
|
|
422
|
-
destPath: "/v2/confirmation"
|
|
423
|
-
},
|
|
424
|
-
{
|
|
425
|
-
srcPath: "/bookings/v2/bulk/bookings",
|
|
426
|
-
destPath: "/v2/bulk/bookings"
|
|
427
|
-
}
|
|
428
|
-
]
|
|
429
|
-
};
|
|
430
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
431
|
-
}
|
|
432
|
-
function resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl(opts) {
|
|
382
|
+
function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
|
|
433
383
|
const domainToMappings = {
|
|
434
384
|
_: [
|
|
435
385
|
{
|
|
@@ -582,40 +532,70 @@ function resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl(opts) {
|
|
|
582
532
|
};
|
|
583
533
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
584
534
|
}
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetAnonymousActionDetails",
|
|
592
|
-
packageName: PACKAGE_NAME,
|
|
593
|
-
migrationOptions: {
|
|
594
|
-
optInTransformResponse: true
|
|
535
|
+
function resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl(opts) {
|
|
536
|
+
const domainToMappings = {
|
|
537
|
+
"www.wixapis.com": [
|
|
538
|
+
{
|
|
539
|
+
srcPath: "/_api/bookings-confirmator/v2/bookings/confirmation",
|
|
540
|
+
destPath: "/v2/bookings/confirmation"
|
|
595
541
|
},
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
542
|
+
{
|
|
543
|
+
srcPath: "/bookings/v2/confirmation",
|
|
544
|
+
destPath: "/v2/confirmation"
|
|
545
|
+
},
|
|
546
|
+
{
|
|
547
|
+
srcPath: "/bookings/v2/bulk/confirmation",
|
|
548
|
+
destPath: "/v2/bulk/confirmation"
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
srcPath: "/bookings/v2/bulk/bookings/confirmOrDecline",
|
|
552
|
+
destPath: "/v2/bulk/bookings/confirmOrDecline"
|
|
553
|
+
},
|
|
554
|
+
{
|
|
555
|
+
srcPath: "/_api/bookings-confirmator/v2/bulk/confirmation",
|
|
556
|
+
destPath: "/v2/bulk/confirmation"
|
|
557
|
+
},
|
|
558
|
+
{
|
|
559
|
+
srcPath: "/_api/bookings-confirmator/v2/bulk/bookings/confirmOrDecline",
|
|
560
|
+
destPath: "/v2/bulk/bookings/confirmOrDecline"
|
|
561
|
+
}
|
|
562
|
+
],
|
|
563
|
+
"*.dev.wix-code.com": [
|
|
564
|
+
{
|
|
565
|
+
srcPath: "/bookings/v2/confirmation",
|
|
566
|
+
destPath: "/v2/confirmation"
|
|
567
|
+
},
|
|
568
|
+
{
|
|
569
|
+
srcPath: "/bookings/v2/bulk/bookings",
|
|
570
|
+
destPath: "/v2/bulk/bookings"
|
|
571
|
+
}
|
|
572
|
+
],
|
|
573
|
+
_: [
|
|
574
|
+
{
|
|
575
|
+
srcPath: "/bookings/v2/confirmation",
|
|
576
|
+
destPath: "/v2/confirmation"
|
|
577
|
+
},
|
|
578
|
+
{
|
|
579
|
+
srcPath: "/bookings/v2/bulk/bookings",
|
|
580
|
+
destPath: "/v2/bulk/bookings"
|
|
581
|
+
}
|
|
582
|
+
]
|
|
583
|
+
};
|
|
584
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
606
585
|
}
|
|
607
|
-
|
|
608
|
-
|
|
586
|
+
var PACKAGE_NAME = "@wix/auto_sdk_bookings_bookings";
|
|
587
|
+
function confirmOrDeclineBooking(payload) {
|
|
588
|
+
function __confirmOrDeclineBooking({ host }) {
|
|
609
589
|
const metadata = {
|
|
610
590
|
entityFqdn: "wix.bookings.v2.booking",
|
|
611
591
|
method: "POST",
|
|
612
|
-
methodFqn: "com.wixpress.bookings.
|
|
592
|
+
methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.ConfirmOrDeclineBooking",
|
|
613
593
|
packageName: PACKAGE_NAME,
|
|
614
594
|
migrationOptions: {
|
|
615
595
|
optInTransformResponse: true
|
|
616
596
|
},
|
|
617
|
-
url:
|
|
618
|
-
protoPath: "/v2/
|
|
597
|
+
url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
|
|
598
|
+
protoPath: "/v2/confirmation/{bookingId}:confirmOrDecline",
|
|
619
599
|
data: payload,
|
|
620
600
|
host
|
|
621
601
|
}),
|
|
@@ -642,20 +622,20 @@ function cancelBookingAnonymously(payload) {
|
|
|
642
622
|
};
|
|
643
623
|
return metadata;
|
|
644
624
|
}
|
|
645
|
-
return
|
|
625
|
+
return __confirmOrDeclineBooking;
|
|
646
626
|
}
|
|
647
|
-
function
|
|
648
|
-
function
|
|
627
|
+
function bulkConfirmOrDeclineBooking(payload) {
|
|
628
|
+
function __bulkConfirmOrDeclineBooking({ host }) {
|
|
649
629
|
const metadata = {
|
|
650
630
|
entityFqdn: "wix.bookings.v2.booking",
|
|
651
631
|
method: "POST",
|
|
652
|
-
methodFqn: "com.wixpress.bookings.
|
|
632
|
+
methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.BulkConfirmOrDeclineBooking",
|
|
653
633
|
packageName: PACKAGE_NAME,
|
|
654
634
|
migrationOptions: {
|
|
655
635
|
optInTransformResponse: true
|
|
656
636
|
},
|
|
657
|
-
url:
|
|
658
|
-
protoPath: "/v2/bookings/
|
|
637
|
+
url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
|
|
638
|
+
protoPath: "/v2/bulk/bookings/confirmOrDecline",
|
|
659
639
|
data: payload,
|
|
660
640
|
host
|
|
661
641
|
}),
|
|
@@ -664,78 +644,105 @@ function rescheduleBookingAnonymously(payload) {
|
|
|
664
644
|
{
|
|
665
645
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
666
646
|
paths: [
|
|
667
|
-
{ path: "
|
|
668
|
-
{ path: "
|
|
669
|
-
{ path: "
|
|
670
|
-
{ path: "
|
|
671
|
-
{ path: "
|
|
647
|
+
{ path: "results.item.createdDate" },
|
|
648
|
+
{ path: "results.item.startDate" },
|
|
649
|
+
{ path: "results.item.endDate" },
|
|
650
|
+
{ path: "results.item.updatedDate" },
|
|
651
|
+
{ path: "results.item.canceledDate" }
|
|
672
652
|
]
|
|
673
653
|
},
|
|
674
654
|
{
|
|
675
655
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
676
656
|
paths: [
|
|
677
|
-
{
|
|
678
|
-
|
|
657
|
+
{
|
|
658
|
+
path: "results.item.contactDetails.fullAddress.geocode.latitude"
|
|
659
|
+
},
|
|
660
|
+
{
|
|
661
|
+
path: "results.item.contactDetails.fullAddress.geocode.longitude"
|
|
662
|
+
}
|
|
679
663
|
]
|
|
680
664
|
}
|
|
681
665
|
])
|
|
682
666
|
};
|
|
683
667
|
return metadata;
|
|
684
668
|
}
|
|
685
|
-
return
|
|
669
|
+
return __bulkConfirmOrDeclineBooking;
|
|
686
670
|
}
|
|
687
|
-
function
|
|
688
|
-
function
|
|
671
|
+
function createMultiServiceBooking(payload) {
|
|
672
|
+
function __createMultiServiceBooking({ host }) {
|
|
673
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
674
|
+
{
|
|
675
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
676
|
+
paths: [
|
|
677
|
+
{ path: "bookings.createdDate" },
|
|
678
|
+
{ path: "bookings.startDate" },
|
|
679
|
+
{ path: "bookings.endDate" },
|
|
680
|
+
{ path: "bookings.updatedDate" },
|
|
681
|
+
{ path: "bookings.canceledDate" }
|
|
682
|
+
]
|
|
683
|
+
},
|
|
684
|
+
{
|
|
685
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
686
|
+
paths: [
|
|
687
|
+
{ path: "bookings.contactDetails.fullAddress.geocode.latitude" },
|
|
688
|
+
{ path: "bookings.contactDetails.fullAddress.geocode.longitude" }
|
|
689
|
+
]
|
|
690
|
+
}
|
|
691
|
+
]);
|
|
689
692
|
const metadata = {
|
|
690
693
|
entityFqdn: "wix.bookings.v2.booking",
|
|
691
|
-
method: "
|
|
692
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
694
|
+
method: "POST",
|
|
695
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.CreateMultiServiceBooking",
|
|
693
696
|
packageName: PACKAGE_NAME,
|
|
694
697
|
migrationOptions: {
|
|
695
698
|
optInTransformResponse: true
|
|
696
699
|
},
|
|
697
|
-
url:
|
|
698
|
-
protoPath: "/v2/
|
|
699
|
-
data:
|
|
700
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
701
|
+
protoPath: "/v2/multi_service_bookings",
|
|
702
|
+
data: serializedData,
|
|
700
703
|
host
|
|
701
704
|
}),
|
|
702
|
-
|
|
705
|
+
data: serializedData,
|
|
703
706
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
704
707
|
{
|
|
705
708
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
706
709
|
paths: [
|
|
707
|
-
{ path: "booking.createdDate" },
|
|
708
|
-
{ path: "booking.startDate" },
|
|
709
|
-
{ path: "booking.endDate" },
|
|
710
|
-
{ path: "booking.updatedDate" },
|
|
711
|
-
{ path: "booking.canceledDate" }
|
|
710
|
+
{ path: "multiServiceBooking.bookings.booking.createdDate" },
|
|
711
|
+
{ path: "multiServiceBooking.bookings.booking.startDate" },
|
|
712
|
+
{ path: "multiServiceBooking.bookings.booking.endDate" },
|
|
713
|
+
{ path: "multiServiceBooking.bookings.booking.updatedDate" },
|
|
714
|
+
{ path: "multiServiceBooking.bookings.booking.canceledDate" }
|
|
712
715
|
]
|
|
713
716
|
},
|
|
714
717
|
{
|
|
715
718
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
716
719
|
paths: [
|
|
717
|
-
{
|
|
718
|
-
|
|
720
|
+
{
|
|
721
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
725
|
+
}
|
|
719
726
|
]
|
|
720
727
|
}
|
|
721
728
|
])
|
|
722
729
|
};
|
|
723
730
|
return metadata;
|
|
724
731
|
}
|
|
725
|
-
return
|
|
732
|
+
return __createMultiServiceBooking;
|
|
726
733
|
}
|
|
727
|
-
function
|
|
728
|
-
function
|
|
734
|
+
function rescheduleMultiServiceBooking(payload) {
|
|
735
|
+
function __rescheduleMultiServiceBooking({ host }) {
|
|
729
736
|
const metadata = {
|
|
730
737
|
entityFqdn: "wix.bookings.v2.booking",
|
|
731
738
|
method: "POST",
|
|
732
|
-
methodFqn: "com.wixpress.bookings.
|
|
739
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.RescheduleMultiServiceBooking",
|
|
733
740
|
packageName: PACKAGE_NAME,
|
|
734
741
|
migrationOptions: {
|
|
735
742
|
optInTransformResponse: true
|
|
736
743
|
},
|
|
737
|
-
url:
|
|
738
|
-
protoPath: "/v2/
|
|
744
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
745
|
+
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/reschedule",
|
|
739
746
|
data: payload,
|
|
740
747
|
host
|
|
741
748
|
}),
|
|
@@ -744,38 +751,63 @@ function confirmOrDeclineBooking(payload) {
|
|
|
744
751
|
{
|
|
745
752
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
746
753
|
paths: [
|
|
747
|
-
{ path: "booking.createdDate" },
|
|
748
|
-
{ path: "booking.startDate" },
|
|
749
|
-
{ path: "booking.endDate" },
|
|
750
|
-
{ path: "booking.updatedDate" },
|
|
751
|
-
{ path: "booking.canceledDate" }
|
|
754
|
+
{ path: "multiServiceBooking.bookings.booking.createdDate" },
|
|
755
|
+
{ path: "multiServiceBooking.bookings.booking.startDate" },
|
|
756
|
+
{ path: "multiServiceBooking.bookings.booking.endDate" },
|
|
757
|
+
{ path: "multiServiceBooking.bookings.booking.updatedDate" },
|
|
758
|
+
{ path: "multiServiceBooking.bookings.booking.canceledDate" }
|
|
752
759
|
]
|
|
753
760
|
},
|
|
754
761
|
{
|
|
755
762
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
756
763
|
paths: [
|
|
757
|
-
{
|
|
758
|
-
|
|
764
|
+
{
|
|
765
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
766
|
+
},
|
|
767
|
+
{
|
|
768
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
769
|
+
}
|
|
759
770
|
]
|
|
760
771
|
}
|
|
761
772
|
])
|
|
762
773
|
};
|
|
763
774
|
return metadata;
|
|
764
775
|
}
|
|
765
|
-
return
|
|
776
|
+
return __rescheduleMultiServiceBooking;
|
|
766
777
|
}
|
|
767
|
-
function
|
|
768
|
-
function
|
|
778
|
+
function getMultiServiceBookingAvailability(payload) {
|
|
779
|
+
function __getMultiServiceBookingAvailability({ host }) {
|
|
769
780
|
const metadata = {
|
|
770
781
|
entityFqdn: "wix.bookings.v2.booking",
|
|
771
782
|
method: "POST",
|
|
772
|
-
methodFqn: "com.wixpress.bookings.
|
|
783
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.GetMultiServiceBookingAvailability",
|
|
773
784
|
packageName: PACKAGE_NAME,
|
|
774
785
|
migrationOptions: {
|
|
775
786
|
optInTransformResponse: true
|
|
776
787
|
},
|
|
777
|
-
url:
|
|
778
|
-
protoPath: "/v2/
|
|
788
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
789
|
+
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/get_availability",
|
|
790
|
+
data: payload,
|
|
791
|
+
host
|
|
792
|
+
}),
|
|
793
|
+
data: payload
|
|
794
|
+
};
|
|
795
|
+
return metadata;
|
|
796
|
+
}
|
|
797
|
+
return __getMultiServiceBookingAvailability;
|
|
798
|
+
}
|
|
799
|
+
function cancelMultiServiceBooking(payload) {
|
|
800
|
+
function __cancelMultiServiceBooking({ host }) {
|
|
801
|
+
const metadata = {
|
|
802
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
803
|
+
method: "POST",
|
|
804
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.CancelMultiServiceBooking",
|
|
805
|
+
packageName: PACKAGE_NAME,
|
|
806
|
+
migrationOptions: {
|
|
807
|
+
optInTransformResponse: true
|
|
808
|
+
},
|
|
809
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
810
|
+
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/cancel",
|
|
779
811
|
data: payload,
|
|
780
812
|
host
|
|
781
813
|
}),
|
|
@@ -784,21 +816,306 @@ function bulkConfirmOrDeclineBooking(payload) {
|
|
|
784
816
|
{
|
|
785
817
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
786
818
|
paths: [
|
|
787
|
-
{ path: "
|
|
788
|
-
{ path: "
|
|
789
|
-
{ path: "
|
|
790
|
-
{ path: "
|
|
791
|
-
{ path: "
|
|
819
|
+
{ path: "multiServiceBooking.bookings.booking.createdDate" },
|
|
820
|
+
{ path: "multiServiceBooking.bookings.booking.startDate" },
|
|
821
|
+
{ path: "multiServiceBooking.bookings.booking.endDate" },
|
|
822
|
+
{ path: "multiServiceBooking.bookings.booking.updatedDate" },
|
|
823
|
+
{ path: "multiServiceBooking.bookings.booking.canceledDate" }
|
|
792
824
|
]
|
|
793
825
|
},
|
|
794
826
|
{
|
|
795
827
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
796
828
|
paths: [
|
|
797
829
|
{
|
|
798
|
-
path: "
|
|
830
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
799
831
|
},
|
|
800
832
|
{
|
|
801
|
-
path: "
|
|
833
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
834
|
+
}
|
|
835
|
+
]
|
|
836
|
+
}
|
|
837
|
+
])
|
|
838
|
+
};
|
|
839
|
+
return metadata;
|
|
840
|
+
}
|
|
841
|
+
return __cancelMultiServiceBooking;
|
|
842
|
+
}
|
|
843
|
+
function markMultiServiceBookingAsPending(payload) {
|
|
844
|
+
function __markMultiServiceBookingAsPending({ host }) {
|
|
845
|
+
const metadata = {
|
|
846
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
847
|
+
method: "POST",
|
|
848
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.MarkMultiServiceBookingAsPending",
|
|
849
|
+
packageName: PACKAGE_NAME,
|
|
850
|
+
migrationOptions: {
|
|
851
|
+
optInTransformResponse: true
|
|
852
|
+
},
|
|
853
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
854
|
+
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/mark_as_pending",
|
|
855
|
+
data: payload,
|
|
856
|
+
host
|
|
857
|
+
}),
|
|
858
|
+
data: payload,
|
|
859
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
860
|
+
{
|
|
861
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
862
|
+
paths: [
|
|
863
|
+
{ path: "multiServiceBooking.bookings.booking.createdDate" },
|
|
864
|
+
{ path: "multiServiceBooking.bookings.booking.startDate" },
|
|
865
|
+
{ path: "multiServiceBooking.bookings.booking.endDate" },
|
|
866
|
+
{ path: "multiServiceBooking.bookings.booking.updatedDate" },
|
|
867
|
+
{ path: "multiServiceBooking.bookings.booking.canceledDate" }
|
|
868
|
+
]
|
|
869
|
+
},
|
|
870
|
+
{
|
|
871
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
872
|
+
paths: [
|
|
873
|
+
{
|
|
874
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
875
|
+
},
|
|
876
|
+
{
|
|
877
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
878
|
+
}
|
|
879
|
+
]
|
|
880
|
+
}
|
|
881
|
+
])
|
|
882
|
+
};
|
|
883
|
+
return metadata;
|
|
884
|
+
}
|
|
885
|
+
return __markMultiServiceBookingAsPending;
|
|
886
|
+
}
|
|
887
|
+
function confirmMultiServiceBooking(payload) {
|
|
888
|
+
function __confirmMultiServiceBooking({ host }) {
|
|
889
|
+
const metadata = {
|
|
890
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
891
|
+
method: "POST",
|
|
892
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.ConfirmMultiServiceBooking",
|
|
893
|
+
packageName: PACKAGE_NAME,
|
|
894
|
+
migrationOptions: {
|
|
895
|
+
optInTransformResponse: true
|
|
896
|
+
},
|
|
897
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
898
|
+
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/confirm",
|
|
899
|
+
data: payload,
|
|
900
|
+
host
|
|
901
|
+
}),
|
|
902
|
+
data: payload,
|
|
903
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
904
|
+
{
|
|
905
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
906
|
+
paths: [
|
|
907
|
+
{ path: "multiServiceBooking.bookings.booking.createdDate" },
|
|
908
|
+
{ path: "multiServiceBooking.bookings.booking.startDate" },
|
|
909
|
+
{ path: "multiServiceBooking.bookings.booking.endDate" },
|
|
910
|
+
{ path: "multiServiceBooking.bookings.booking.updatedDate" },
|
|
911
|
+
{ path: "multiServiceBooking.bookings.booking.canceledDate" }
|
|
912
|
+
]
|
|
913
|
+
},
|
|
914
|
+
{
|
|
915
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
916
|
+
paths: [
|
|
917
|
+
{
|
|
918
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
919
|
+
},
|
|
920
|
+
{
|
|
921
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
922
|
+
}
|
|
923
|
+
]
|
|
924
|
+
}
|
|
925
|
+
])
|
|
926
|
+
};
|
|
927
|
+
return metadata;
|
|
928
|
+
}
|
|
929
|
+
return __confirmMultiServiceBooking;
|
|
930
|
+
}
|
|
931
|
+
function declineMultiServiceBooking(payload) {
|
|
932
|
+
function __declineMultiServiceBooking({ host }) {
|
|
933
|
+
const metadata = {
|
|
934
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
935
|
+
method: "POST",
|
|
936
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.DeclineMultiServiceBooking",
|
|
937
|
+
packageName: PACKAGE_NAME,
|
|
938
|
+
migrationOptions: {
|
|
939
|
+
optInTransformResponse: true
|
|
940
|
+
},
|
|
941
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
942
|
+
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/decline",
|
|
943
|
+
data: payload,
|
|
944
|
+
host
|
|
945
|
+
}),
|
|
946
|
+
data: payload,
|
|
947
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
948
|
+
{
|
|
949
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
950
|
+
paths: [
|
|
951
|
+
{ path: "multiServiceBooking.bookings.booking.createdDate" },
|
|
952
|
+
{ path: "multiServiceBooking.bookings.booking.startDate" },
|
|
953
|
+
{ path: "multiServiceBooking.bookings.booking.endDate" },
|
|
954
|
+
{ path: "multiServiceBooking.bookings.booking.updatedDate" },
|
|
955
|
+
{ path: "multiServiceBooking.bookings.booking.canceledDate" }
|
|
956
|
+
]
|
|
957
|
+
},
|
|
958
|
+
{
|
|
959
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
960
|
+
paths: [
|
|
961
|
+
{
|
|
962
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
963
|
+
},
|
|
964
|
+
{
|
|
965
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
966
|
+
}
|
|
967
|
+
]
|
|
968
|
+
}
|
|
969
|
+
])
|
|
970
|
+
};
|
|
971
|
+
return metadata;
|
|
972
|
+
}
|
|
973
|
+
return __declineMultiServiceBooking;
|
|
974
|
+
}
|
|
975
|
+
function bulkGetMultiServiceBookingAllowedActions(payload) {
|
|
976
|
+
function __bulkGetMultiServiceBookingAllowedActions({ host }) {
|
|
977
|
+
const metadata = {
|
|
978
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
979
|
+
method: "POST",
|
|
980
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.BulkGetMultiServiceBookingAllowedActions",
|
|
981
|
+
packageName: PACKAGE_NAME,
|
|
982
|
+
migrationOptions: {
|
|
983
|
+
optInTransformResponse: true
|
|
984
|
+
},
|
|
985
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
986
|
+
protoPath: "/v2/bulk/multi_service_bookings/get_allowed_actions",
|
|
987
|
+
data: payload,
|
|
988
|
+
host
|
|
989
|
+
}),
|
|
990
|
+
data: payload
|
|
991
|
+
};
|
|
992
|
+
return metadata;
|
|
993
|
+
}
|
|
994
|
+
return __bulkGetMultiServiceBookingAllowedActions;
|
|
995
|
+
}
|
|
996
|
+
function getMultiServiceBooking(payload) {
|
|
997
|
+
function __getMultiServiceBooking({ host }) {
|
|
998
|
+
const metadata = {
|
|
999
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
1000
|
+
method: "GET",
|
|
1001
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.GetMultiServiceBooking",
|
|
1002
|
+
packageName: PACKAGE_NAME,
|
|
1003
|
+
migrationOptions: {
|
|
1004
|
+
optInTransformResponse: true
|
|
1005
|
+
},
|
|
1006
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
1007
|
+
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}",
|
|
1008
|
+
data: payload,
|
|
1009
|
+
host
|
|
1010
|
+
}),
|
|
1011
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
1012
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1013
|
+
{
|
|
1014
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1015
|
+
paths: [
|
|
1016
|
+
{ path: "multiServiceBooking.bookings.booking.createdDate" },
|
|
1017
|
+
{ path: "multiServiceBooking.bookings.booking.startDate" },
|
|
1018
|
+
{ path: "multiServiceBooking.bookings.booking.endDate" },
|
|
1019
|
+
{ path: "multiServiceBooking.bookings.booking.updatedDate" },
|
|
1020
|
+
{ path: "multiServiceBooking.bookings.booking.canceledDate" }
|
|
1021
|
+
]
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1025
|
+
paths: [
|
|
1026
|
+
{
|
|
1027
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
1028
|
+
},
|
|
1029
|
+
{
|
|
1030
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1031
|
+
}
|
|
1032
|
+
]
|
|
1033
|
+
}
|
|
1034
|
+
])
|
|
1035
|
+
};
|
|
1036
|
+
return metadata;
|
|
1037
|
+
}
|
|
1038
|
+
return __getMultiServiceBooking;
|
|
1039
|
+
}
|
|
1040
|
+
function addBookingsToMultiServiceBooking(payload) {
|
|
1041
|
+
function __addBookingsToMultiServiceBooking({ host }) {
|
|
1042
|
+
const metadata = {
|
|
1043
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
1044
|
+
method: "POST",
|
|
1045
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.AddBookingsToMultiServiceBooking",
|
|
1046
|
+
packageName: PACKAGE_NAME,
|
|
1047
|
+
migrationOptions: {
|
|
1048
|
+
optInTransformResponse: true
|
|
1049
|
+
},
|
|
1050
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
1051
|
+
protoPath: "/v2/multi_service_bookings/add_bookings_to_multi_service_booking",
|
|
1052
|
+
data: payload,
|
|
1053
|
+
host
|
|
1054
|
+
}),
|
|
1055
|
+
data: payload,
|
|
1056
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1057
|
+
{
|
|
1058
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1059
|
+
paths: [
|
|
1060
|
+
{ path: "bookings.booking.createdDate" },
|
|
1061
|
+
{ path: "bookings.booking.startDate" },
|
|
1062
|
+
{ path: "bookings.booking.endDate" },
|
|
1063
|
+
{ path: "bookings.booking.updatedDate" },
|
|
1064
|
+
{ path: "bookings.booking.canceledDate" }
|
|
1065
|
+
]
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1069
|
+
paths: [
|
|
1070
|
+
{
|
|
1071
|
+
path: "bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
1072
|
+
},
|
|
1073
|
+
{
|
|
1074
|
+
path: "bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1075
|
+
}
|
|
1076
|
+
]
|
|
1077
|
+
}
|
|
1078
|
+
])
|
|
1079
|
+
};
|
|
1080
|
+
return metadata;
|
|
1081
|
+
}
|
|
1082
|
+
return __addBookingsToMultiServiceBooking;
|
|
1083
|
+
}
|
|
1084
|
+
function removeBookingsFromMultiServiceBooking(payload) {
|
|
1085
|
+
function __removeBookingsFromMultiServiceBooking({ host }) {
|
|
1086
|
+
const metadata = {
|
|
1087
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
1088
|
+
method: "POST",
|
|
1089
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.RemoveBookingsFromMultiServiceBooking",
|
|
1090
|
+
packageName: PACKAGE_NAME,
|
|
1091
|
+
migrationOptions: {
|
|
1092
|
+
optInTransformResponse: true
|
|
1093
|
+
},
|
|
1094
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
1095
|
+
protoPath: "/v2/multi_service_bookings/remove_bookings_from_multi_service_booking",
|
|
1096
|
+
data: payload,
|
|
1097
|
+
host
|
|
1098
|
+
}),
|
|
1099
|
+
data: payload,
|
|
1100
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1101
|
+
{
|
|
1102
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1103
|
+
paths: [
|
|
1104
|
+
{ path: "bookings.booking.createdDate" },
|
|
1105
|
+
{ path: "bookings.booking.startDate" },
|
|
1106
|
+
{ path: "bookings.booking.endDate" },
|
|
1107
|
+
{ path: "bookings.booking.updatedDate" },
|
|
1108
|
+
{ path: "bookings.booking.canceledDate" }
|
|
1109
|
+
]
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1113
|
+
paths: [
|
|
1114
|
+
{
|
|
1115
|
+
path: "bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
1116
|
+
},
|
|
1117
|
+
{
|
|
1118
|
+
path: "bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
802
1119
|
}
|
|
803
1120
|
]
|
|
804
1121
|
}
|
|
@@ -806,7 +1123,7 @@ function bulkConfirmOrDeclineBooking(payload) {
|
|
|
806
1123
|
};
|
|
807
1124
|
return metadata;
|
|
808
1125
|
}
|
|
809
|
-
return
|
|
1126
|
+
return __removeBookingsFromMultiServiceBooking;
|
|
810
1127
|
}
|
|
811
1128
|
function createBooking(payload) {
|
|
812
1129
|
function __createBooking({ host }) {
|
|
@@ -1153,272 +1470,20 @@ function bookingsCancelBooking(payload) {
|
|
|
1153
1470
|
};
|
|
1154
1471
|
return metadata;
|
|
1155
1472
|
}
|
|
1156
|
-
return __bookingsCancelBooking;
|
|
1157
|
-
}
|
|
1158
|
-
function bookingsUpdateNumberOfParticipants(payload) {
|
|
1159
|
-
function __bookingsUpdateNumberOfParticipants({ host }) {
|
|
1160
|
-
const metadata = {
|
|
1161
|
-
entityFqdn: "wix.bookings.v2.booking",
|
|
1162
|
-
method: "POST",
|
|
1163
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.UpdateNumberOfParticipants",
|
|
1164
|
-
packageName: PACKAGE_NAME,
|
|
1165
|
-
migrationOptions: {
|
|
1166
|
-
optInTransformResponse: true
|
|
1167
|
-
},
|
|
1168
|
-
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1169
|
-
protoPath: "/v2/bookings/{bookingId}/update_number_of_participants",
|
|
1170
|
-
data: payload,
|
|
1171
|
-
host
|
|
1172
|
-
}),
|
|
1173
|
-
data: payload,
|
|
1174
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1175
|
-
{
|
|
1176
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1177
|
-
paths: [
|
|
1178
|
-
{ path: "booking.createdDate" },
|
|
1179
|
-
{ path: "booking.startDate" },
|
|
1180
|
-
{ path: "booking.endDate" },
|
|
1181
|
-
{ path: "booking.updatedDate" },
|
|
1182
|
-
{ path: "booking.canceledDate" }
|
|
1183
|
-
]
|
|
1184
|
-
},
|
|
1185
|
-
{
|
|
1186
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1187
|
-
paths: [
|
|
1188
|
-
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1189
|
-
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1190
|
-
]
|
|
1191
|
-
}
|
|
1192
|
-
])
|
|
1193
|
-
};
|
|
1194
|
-
return metadata;
|
|
1195
|
-
}
|
|
1196
|
-
return __bookingsUpdateNumberOfParticipants;
|
|
1197
|
-
}
|
|
1198
|
-
function markBookingAsPending(payload) {
|
|
1199
|
-
function __markBookingAsPending({ host }) {
|
|
1200
|
-
const metadata = {
|
|
1201
|
-
entityFqdn: "wix.bookings.v2.booking",
|
|
1202
|
-
method: "POST",
|
|
1203
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.MarkBookingAsPending",
|
|
1204
|
-
packageName: PACKAGE_NAME,
|
|
1205
|
-
migrationOptions: {
|
|
1206
|
-
optInTransformResponse: true
|
|
1207
|
-
},
|
|
1208
|
-
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1209
|
-
protoPath: "/v2/bookings/{bookingId}/mark_booking_as_pending",
|
|
1210
|
-
data: payload,
|
|
1211
|
-
host
|
|
1212
|
-
}),
|
|
1213
|
-
data: payload,
|
|
1214
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1215
|
-
{
|
|
1216
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1217
|
-
paths: [
|
|
1218
|
-
{ path: "booking.createdDate" },
|
|
1219
|
-
{ path: "booking.startDate" },
|
|
1220
|
-
{ path: "booking.endDate" },
|
|
1221
|
-
{ path: "booking.updatedDate" },
|
|
1222
|
-
{ path: "booking.canceledDate" }
|
|
1223
|
-
]
|
|
1224
|
-
},
|
|
1225
|
-
{
|
|
1226
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1227
|
-
paths: [
|
|
1228
|
-
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1229
|
-
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1230
|
-
]
|
|
1231
|
-
}
|
|
1232
|
-
])
|
|
1233
|
-
};
|
|
1234
|
-
return metadata;
|
|
1235
|
-
}
|
|
1236
|
-
return __markBookingAsPending;
|
|
1237
|
-
}
|
|
1238
|
-
function createMultiServiceBooking(payload) {
|
|
1239
|
-
function __createMultiServiceBooking({ host }) {
|
|
1240
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1241
|
-
{
|
|
1242
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
1243
|
-
paths: [
|
|
1244
|
-
{ path: "bookings.createdDate" },
|
|
1245
|
-
{ path: "bookings.startDate" },
|
|
1246
|
-
{ path: "bookings.endDate" },
|
|
1247
|
-
{ path: "bookings.updatedDate" },
|
|
1248
|
-
{ path: "bookings.canceledDate" }
|
|
1249
|
-
]
|
|
1250
|
-
},
|
|
1251
|
-
{
|
|
1252
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1253
|
-
paths: [
|
|
1254
|
-
{ path: "bookings.contactDetails.fullAddress.geocode.latitude" },
|
|
1255
|
-
{ path: "bookings.contactDetails.fullAddress.geocode.longitude" }
|
|
1256
|
-
]
|
|
1257
|
-
}
|
|
1258
|
-
]);
|
|
1259
|
-
const metadata = {
|
|
1260
|
-
entityFqdn: "wix.bookings.v2.booking",
|
|
1261
|
-
method: "POST",
|
|
1262
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.CreateMultiServiceBooking",
|
|
1263
|
-
packageName: PACKAGE_NAME,
|
|
1264
|
-
migrationOptions: {
|
|
1265
|
-
optInTransformResponse: true
|
|
1266
|
-
},
|
|
1267
|
-
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
1268
|
-
protoPath: "/v2/multi_service_bookings",
|
|
1269
|
-
data: serializedData,
|
|
1270
|
-
host
|
|
1271
|
-
}),
|
|
1272
|
-
data: serializedData,
|
|
1273
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1274
|
-
{
|
|
1275
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1276
|
-
paths: [
|
|
1277
|
-
{ path: "multiServiceBooking.bookings.booking.createdDate" },
|
|
1278
|
-
{ path: "multiServiceBooking.bookings.booking.startDate" },
|
|
1279
|
-
{ path: "multiServiceBooking.bookings.booking.endDate" },
|
|
1280
|
-
{ path: "multiServiceBooking.bookings.booking.updatedDate" },
|
|
1281
|
-
{ path: "multiServiceBooking.bookings.booking.canceledDate" }
|
|
1282
|
-
]
|
|
1283
|
-
},
|
|
1284
|
-
{
|
|
1285
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1286
|
-
paths: [
|
|
1287
|
-
{
|
|
1288
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
1289
|
-
},
|
|
1290
|
-
{
|
|
1291
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1292
|
-
}
|
|
1293
|
-
]
|
|
1294
|
-
}
|
|
1295
|
-
])
|
|
1296
|
-
};
|
|
1297
|
-
return metadata;
|
|
1298
|
-
}
|
|
1299
|
-
return __createMultiServiceBooking;
|
|
1300
|
-
}
|
|
1301
|
-
function rescheduleMultiServiceBooking(payload) {
|
|
1302
|
-
function __rescheduleMultiServiceBooking({ host }) {
|
|
1303
|
-
const metadata = {
|
|
1304
|
-
entityFqdn: "wix.bookings.v2.booking",
|
|
1305
|
-
method: "POST",
|
|
1306
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.RescheduleMultiServiceBooking",
|
|
1307
|
-
packageName: PACKAGE_NAME,
|
|
1308
|
-
migrationOptions: {
|
|
1309
|
-
optInTransformResponse: true
|
|
1310
|
-
},
|
|
1311
|
-
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
1312
|
-
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/reschedule",
|
|
1313
|
-
data: payload,
|
|
1314
|
-
host
|
|
1315
|
-
}),
|
|
1316
|
-
data: payload,
|
|
1317
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1318
|
-
{
|
|
1319
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1320
|
-
paths: [
|
|
1321
|
-
{ path: "multiServiceBooking.bookings.booking.createdDate" },
|
|
1322
|
-
{ path: "multiServiceBooking.bookings.booking.startDate" },
|
|
1323
|
-
{ path: "multiServiceBooking.bookings.booking.endDate" },
|
|
1324
|
-
{ path: "multiServiceBooking.bookings.booking.updatedDate" },
|
|
1325
|
-
{ path: "multiServiceBooking.bookings.booking.canceledDate" }
|
|
1326
|
-
]
|
|
1327
|
-
},
|
|
1328
|
-
{
|
|
1329
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1330
|
-
paths: [
|
|
1331
|
-
{
|
|
1332
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
1333
|
-
},
|
|
1334
|
-
{
|
|
1335
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1336
|
-
}
|
|
1337
|
-
]
|
|
1338
|
-
}
|
|
1339
|
-
])
|
|
1340
|
-
};
|
|
1341
|
-
return metadata;
|
|
1342
|
-
}
|
|
1343
|
-
return __rescheduleMultiServiceBooking;
|
|
1344
|
-
}
|
|
1345
|
-
function getMultiServiceBookingAvailability(payload) {
|
|
1346
|
-
function __getMultiServiceBookingAvailability({ host }) {
|
|
1347
|
-
const metadata = {
|
|
1348
|
-
entityFqdn: "wix.bookings.v2.booking",
|
|
1349
|
-
method: "POST",
|
|
1350
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.GetMultiServiceBookingAvailability",
|
|
1351
|
-
packageName: PACKAGE_NAME,
|
|
1352
|
-
migrationOptions: {
|
|
1353
|
-
optInTransformResponse: true
|
|
1354
|
-
},
|
|
1355
|
-
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
1356
|
-
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/get_availability",
|
|
1357
|
-
data: payload,
|
|
1358
|
-
host
|
|
1359
|
-
}),
|
|
1360
|
-
data: payload
|
|
1361
|
-
};
|
|
1362
|
-
return metadata;
|
|
1363
|
-
}
|
|
1364
|
-
return __getMultiServiceBookingAvailability;
|
|
1365
|
-
}
|
|
1366
|
-
function cancelMultiServiceBooking(payload) {
|
|
1367
|
-
function __cancelMultiServiceBooking({ host }) {
|
|
1368
|
-
const metadata = {
|
|
1369
|
-
entityFqdn: "wix.bookings.v2.booking",
|
|
1370
|
-
method: "POST",
|
|
1371
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.CancelMultiServiceBooking",
|
|
1372
|
-
packageName: PACKAGE_NAME,
|
|
1373
|
-
migrationOptions: {
|
|
1374
|
-
optInTransformResponse: true
|
|
1375
|
-
},
|
|
1376
|
-
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
1377
|
-
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}/cancel",
|
|
1378
|
-
data: payload,
|
|
1379
|
-
host
|
|
1380
|
-
}),
|
|
1381
|
-
data: payload,
|
|
1382
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1383
|
-
{
|
|
1384
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1385
|
-
paths: [
|
|
1386
|
-
{ path: "multiServiceBooking.bookings.booking.createdDate" },
|
|
1387
|
-
{ path: "multiServiceBooking.bookings.booking.startDate" },
|
|
1388
|
-
{ path: "multiServiceBooking.bookings.booking.endDate" },
|
|
1389
|
-
{ path: "multiServiceBooking.bookings.booking.updatedDate" },
|
|
1390
|
-
{ path: "multiServiceBooking.bookings.booking.canceledDate" }
|
|
1391
|
-
]
|
|
1392
|
-
},
|
|
1393
|
-
{
|
|
1394
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1395
|
-
paths: [
|
|
1396
|
-
{
|
|
1397
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
1398
|
-
},
|
|
1399
|
-
{
|
|
1400
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1401
|
-
}
|
|
1402
|
-
]
|
|
1403
|
-
}
|
|
1404
|
-
])
|
|
1405
|
-
};
|
|
1406
|
-
return metadata;
|
|
1407
|
-
}
|
|
1408
|
-
return __cancelMultiServiceBooking;
|
|
1473
|
+
return __bookingsCancelBooking;
|
|
1409
1474
|
}
|
|
1410
|
-
function
|
|
1411
|
-
function
|
|
1475
|
+
function bookingsUpdateNumberOfParticipants(payload) {
|
|
1476
|
+
function __bookingsUpdateNumberOfParticipants({ host }) {
|
|
1412
1477
|
const metadata = {
|
|
1413
1478
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1414
1479
|
method: "POST",
|
|
1415
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1480
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.UpdateNumberOfParticipants",
|
|
1416
1481
|
packageName: PACKAGE_NAME,
|
|
1417
1482
|
migrationOptions: {
|
|
1418
1483
|
optInTransformResponse: true
|
|
1419
1484
|
},
|
|
1420
|
-
url:
|
|
1421
|
-
protoPath: "/v2/
|
|
1485
|
+
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1486
|
+
protoPath: "/v2/bookings/{bookingId}/update_number_of_participants",
|
|
1422
1487
|
data: payload,
|
|
1423
1488
|
host
|
|
1424
1489
|
}),
|
|
@@ -1427,86 +1492,59 @@ function markMultiServiceBookingAsPending(payload) {
|
|
|
1427
1492
|
{
|
|
1428
1493
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1429
1494
|
paths: [
|
|
1430
|
-
{ path: "
|
|
1431
|
-
{ path: "
|
|
1432
|
-
{ path: "
|
|
1433
|
-
{ path: "
|
|
1434
|
-
{ path: "
|
|
1495
|
+
{ path: "booking.createdDate" },
|
|
1496
|
+
{ path: "booking.startDate" },
|
|
1497
|
+
{ path: "booking.endDate" },
|
|
1498
|
+
{ path: "booking.updatedDate" },
|
|
1499
|
+
{ path: "booking.canceledDate" }
|
|
1435
1500
|
]
|
|
1436
1501
|
},
|
|
1437
1502
|
{
|
|
1438
1503
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1439
1504
|
paths: [
|
|
1440
|
-
{
|
|
1441
|
-
|
|
1442
|
-
},
|
|
1443
|
-
{
|
|
1444
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1445
|
-
}
|
|
1505
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1506
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1446
1507
|
]
|
|
1447
1508
|
}
|
|
1448
1509
|
])
|
|
1449
1510
|
};
|
|
1450
1511
|
return metadata;
|
|
1451
1512
|
}
|
|
1452
|
-
return
|
|
1513
|
+
return __bookingsUpdateNumberOfParticipants;
|
|
1453
1514
|
}
|
|
1454
|
-
function
|
|
1455
|
-
function
|
|
1515
|
+
function bulkCalculateAllowedActions(payload) {
|
|
1516
|
+
function __bulkCalculateAllowedActions({ host }) {
|
|
1456
1517
|
const metadata = {
|
|
1457
1518
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1458
1519
|
method: "POST",
|
|
1459
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1520
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.BulkCalculateAllowedActions",
|
|
1460
1521
|
packageName: PACKAGE_NAME,
|
|
1461
1522
|
migrationOptions: {
|
|
1462
1523
|
optInTransformResponse: true
|
|
1463
1524
|
},
|
|
1464
|
-
url:
|
|
1465
|
-
protoPath: "/v2/
|
|
1525
|
+
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1526
|
+
protoPath: "/v2/bulk/bookings/calculate_allowed_actions",
|
|
1466
1527
|
data: payload,
|
|
1467
1528
|
host
|
|
1468
1529
|
}),
|
|
1469
|
-
data: payload
|
|
1470
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1471
|
-
{
|
|
1472
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1473
|
-
paths: [
|
|
1474
|
-
{ path: "multiServiceBooking.bookings.booking.createdDate" },
|
|
1475
|
-
{ path: "multiServiceBooking.bookings.booking.startDate" },
|
|
1476
|
-
{ path: "multiServiceBooking.bookings.booking.endDate" },
|
|
1477
|
-
{ path: "multiServiceBooking.bookings.booking.updatedDate" },
|
|
1478
|
-
{ path: "multiServiceBooking.bookings.booking.canceledDate" }
|
|
1479
|
-
]
|
|
1480
|
-
},
|
|
1481
|
-
{
|
|
1482
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1483
|
-
paths: [
|
|
1484
|
-
{
|
|
1485
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
1486
|
-
},
|
|
1487
|
-
{
|
|
1488
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1489
|
-
}
|
|
1490
|
-
]
|
|
1491
|
-
}
|
|
1492
|
-
])
|
|
1530
|
+
data: payload
|
|
1493
1531
|
};
|
|
1494
1532
|
return metadata;
|
|
1495
1533
|
}
|
|
1496
|
-
return
|
|
1534
|
+
return __bulkCalculateAllowedActions;
|
|
1497
1535
|
}
|
|
1498
|
-
function
|
|
1499
|
-
function
|
|
1536
|
+
function markBookingAsPending(payload) {
|
|
1537
|
+
function __markBookingAsPending({ host }) {
|
|
1500
1538
|
const metadata = {
|
|
1501
1539
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1502
1540
|
method: "POST",
|
|
1503
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1541
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.MarkBookingAsPending",
|
|
1504
1542
|
packageName: PACKAGE_NAME,
|
|
1505
1543
|
migrationOptions: {
|
|
1506
1544
|
optInTransformResponse: true
|
|
1507
1545
|
},
|
|
1508
|
-
url:
|
|
1509
|
-
protoPath: "/v2/
|
|
1546
|
+
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1547
|
+
protoPath: "/v2/bookings/{bookingId}/mark_booking_as_pending",
|
|
1510
1548
|
data: payload,
|
|
1511
1549
|
host
|
|
1512
1550
|
}),
|
|
@@ -1515,107 +1553,99 @@ function declineMultiServiceBooking(payload) {
|
|
|
1515
1553
|
{
|
|
1516
1554
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1517
1555
|
paths: [
|
|
1518
|
-
{ path: "
|
|
1519
|
-
{ path: "
|
|
1520
|
-
{ path: "
|
|
1521
|
-
{ path: "
|
|
1522
|
-
{ path: "
|
|
1556
|
+
{ path: "booking.createdDate" },
|
|
1557
|
+
{ path: "booking.startDate" },
|
|
1558
|
+
{ path: "booking.endDate" },
|
|
1559
|
+
{ path: "booking.updatedDate" },
|
|
1560
|
+
{ path: "booking.canceledDate" }
|
|
1523
1561
|
]
|
|
1524
1562
|
},
|
|
1525
1563
|
{
|
|
1526
1564
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1527
1565
|
paths: [
|
|
1528
|
-
{
|
|
1529
|
-
|
|
1530
|
-
},
|
|
1531
|
-
{
|
|
1532
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1533
|
-
}
|
|
1566
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1567
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1534
1568
|
]
|
|
1535
1569
|
}
|
|
1536
1570
|
])
|
|
1537
1571
|
};
|
|
1538
1572
|
return metadata;
|
|
1539
1573
|
}
|
|
1540
|
-
return
|
|
1574
|
+
return __markBookingAsPending;
|
|
1541
1575
|
}
|
|
1542
|
-
function
|
|
1543
|
-
function
|
|
1576
|
+
function getAnonymousActionDetails(payload) {
|
|
1577
|
+
function __getAnonymousActionDetails({ host }) {
|
|
1544
1578
|
const metadata = {
|
|
1545
1579
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1546
|
-
method: "
|
|
1547
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1580
|
+
method: "GET",
|
|
1581
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetAnonymousActionDetails",
|
|
1548
1582
|
packageName: PACKAGE_NAME,
|
|
1549
1583
|
migrationOptions: {
|
|
1550
1584
|
optInTransformResponse: true
|
|
1551
1585
|
},
|
|
1552
|
-
url:
|
|
1553
|
-
protoPath: "/v2/
|
|
1586
|
+
url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
|
|
1587
|
+
protoPath: "/v2/bookings/anonymous-actions-details",
|
|
1554
1588
|
data: payload,
|
|
1555
1589
|
host
|
|
1556
1590
|
}),
|
|
1557
|
-
|
|
1591
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
1558
1592
|
};
|
|
1559
1593
|
return metadata;
|
|
1560
1594
|
}
|
|
1561
|
-
return
|
|
1595
|
+
return __getAnonymousActionDetails;
|
|
1562
1596
|
}
|
|
1563
|
-
function
|
|
1564
|
-
function
|
|
1597
|
+
function cancelBookingAnonymously(payload) {
|
|
1598
|
+
function __cancelBookingAnonymously({ host }) {
|
|
1565
1599
|
const metadata = {
|
|
1566
1600
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1567
|
-
method: "
|
|
1568
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1601
|
+
method: "POST",
|
|
1602
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.CancelBookingAnonymously",
|
|
1569
1603
|
packageName: PACKAGE_NAME,
|
|
1570
1604
|
migrationOptions: {
|
|
1571
1605
|
optInTransformResponse: true
|
|
1572
1606
|
},
|
|
1573
|
-
url:
|
|
1574
|
-
protoPath: "/v2/
|
|
1607
|
+
url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
|
|
1608
|
+
protoPath: "/v2/bookings/{token}/anonymous-cancel",
|
|
1575
1609
|
data: payload,
|
|
1576
1610
|
host
|
|
1577
1611
|
}),
|
|
1578
|
-
|
|
1612
|
+
data: payload,
|
|
1579
1613
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1580
1614
|
{
|
|
1581
1615
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1582
1616
|
paths: [
|
|
1583
|
-
{ path: "
|
|
1584
|
-
{ path: "
|
|
1585
|
-
{ path: "
|
|
1586
|
-
{ path: "
|
|
1587
|
-
{ path: "
|
|
1617
|
+
{ path: "booking.createdDate" },
|
|
1618
|
+
{ path: "booking.startDate" },
|
|
1619
|
+
{ path: "booking.endDate" },
|
|
1620
|
+
{ path: "booking.updatedDate" },
|
|
1621
|
+
{ path: "booking.canceledDate" }
|
|
1588
1622
|
]
|
|
1589
1623
|
},
|
|
1590
1624
|
{
|
|
1591
1625
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1592
1626
|
paths: [
|
|
1593
|
-
{
|
|
1594
|
-
|
|
1595
|
-
},
|
|
1596
|
-
{
|
|
1597
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1598
|
-
}
|
|
1627
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1628
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1599
1629
|
]
|
|
1600
1630
|
}
|
|
1601
1631
|
])
|
|
1602
1632
|
};
|
|
1603
1633
|
return metadata;
|
|
1604
1634
|
}
|
|
1605
|
-
return
|
|
1635
|
+
return __cancelBookingAnonymously;
|
|
1606
1636
|
}
|
|
1607
|
-
function
|
|
1608
|
-
function
|
|
1637
|
+
function rescheduleBookingAnonymously(payload) {
|
|
1638
|
+
function __rescheduleBookingAnonymously({ host }) {
|
|
1609
1639
|
const metadata = {
|
|
1610
1640
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1611
1641
|
method: "POST",
|
|
1612
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1642
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.RescheduleBookingAnonymously",
|
|
1613
1643
|
packageName: PACKAGE_NAME,
|
|
1614
1644
|
migrationOptions: {
|
|
1615
1645
|
optInTransformResponse: true
|
|
1616
1646
|
},
|
|
1617
|
-
url:
|
|
1618
|
-
protoPath: "/v2/
|
|
1647
|
+
url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
|
|
1648
|
+
protoPath: "/v2/bookings/{token}/anonymous-reschedule",
|
|
1619
1649
|
data: payload,
|
|
1620
1650
|
host
|
|
1621
1651
|
}),
|
|
@@ -1624,73 +1654,65 @@ function addBookingsToMultiServiceBooking(payload) {
|
|
|
1624
1654
|
{
|
|
1625
1655
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1626
1656
|
paths: [
|
|
1627
|
-
{ path: "
|
|
1628
|
-
{ path: "
|
|
1629
|
-
{ path: "
|
|
1630
|
-
{ path: "
|
|
1631
|
-
{ path: "
|
|
1657
|
+
{ path: "booking.createdDate" },
|
|
1658
|
+
{ path: "booking.startDate" },
|
|
1659
|
+
{ path: "booking.endDate" },
|
|
1660
|
+
{ path: "booking.updatedDate" },
|
|
1661
|
+
{ path: "booking.canceledDate" }
|
|
1632
1662
|
]
|
|
1633
1663
|
},
|
|
1634
1664
|
{
|
|
1635
1665
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1636
1666
|
paths: [
|
|
1637
|
-
{
|
|
1638
|
-
|
|
1639
|
-
},
|
|
1640
|
-
{
|
|
1641
|
-
path: "bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1642
|
-
}
|
|
1667
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1668
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1643
1669
|
]
|
|
1644
1670
|
}
|
|
1645
1671
|
])
|
|
1646
1672
|
};
|
|
1647
1673
|
return metadata;
|
|
1648
1674
|
}
|
|
1649
|
-
return
|
|
1675
|
+
return __rescheduleBookingAnonymously;
|
|
1650
1676
|
}
|
|
1651
|
-
function
|
|
1652
|
-
function
|
|
1677
|
+
function getBookingAnonymously(payload) {
|
|
1678
|
+
function __getBookingAnonymously({ host }) {
|
|
1653
1679
|
const metadata = {
|
|
1654
1680
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1655
|
-
method: "
|
|
1656
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1681
|
+
method: "GET",
|
|
1682
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetBookingAnonymously",
|
|
1657
1683
|
packageName: PACKAGE_NAME,
|
|
1658
1684
|
migrationOptions: {
|
|
1659
1685
|
optInTransformResponse: true
|
|
1660
1686
|
},
|
|
1661
|
-
url:
|
|
1662
|
-
protoPath: "/v2/
|
|
1687
|
+
url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
|
|
1688
|
+
protoPath: "/v2/bookings/{token}/anonymous-get",
|
|
1663
1689
|
data: payload,
|
|
1664
1690
|
host
|
|
1665
1691
|
}),
|
|
1666
|
-
|
|
1692
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
1667
1693
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1668
1694
|
{
|
|
1669
1695
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1670
1696
|
paths: [
|
|
1671
|
-
{ path: "
|
|
1672
|
-
{ path: "
|
|
1673
|
-
{ path: "
|
|
1674
|
-
{ path: "
|
|
1675
|
-
{ path: "
|
|
1697
|
+
{ path: "booking.createdDate" },
|
|
1698
|
+
{ path: "booking.startDate" },
|
|
1699
|
+
{ path: "booking.endDate" },
|
|
1700
|
+
{ path: "booking.updatedDate" },
|
|
1701
|
+
{ path: "booking.canceledDate" }
|
|
1676
1702
|
]
|
|
1677
1703
|
},
|
|
1678
1704
|
{
|
|
1679
1705
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1680
1706
|
paths: [
|
|
1681
|
-
{
|
|
1682
|
-
|
|
1683
|
-
},
|
|
1684
|
-
{
|
|
1685
|
-
path: "bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1686
|
-
}
|
|
1707
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1708
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1687
1709
|
]
|
|
1688
1710
|
}
|
|
1689
1711
|
])
|
|
1690
1712
|
};
|
|
1691
1713
|
return metadata;
|
|
1692
1714
|
}
|
|
1693
|
-
return
|
|
1715
|
+
return __getBookingAnonymously;
|
|
1694
1716
|
}
|
|
1695
1717
|
|
|
1696
1718
|
// src/bookings-v2-booking-bookings.types.ts
|
|
@@ -1766,13 +1788,6 @@ var IdentificationDataIdentityType = /* @__PURE__ */ ((IdentificationDataIdentit
|
|
|
1766
1788
|
IdentificationDataIdentityType2["APP"] = "APP";
|
|
1767
1789
|
return IdentificationDataIdentityType2;
|
|
1768
1790
|
})(IdentificationDataIdentityType || {});
|
|
1769
|
-
var LocationLocationType = /* @__PURE__ */ ((LocationLocationType2) => {
|
|
1770
|
-
LocationLocationType2["UNDEFINED"] = "UNDEFINED";
|
|
1771
|
-
LocationLocationType2["OWNER_BUSINESS"] = "OWNER_BUSINESS";
|
|
1772
|
-
LocationLocationType2["OWNER_CUSTOM"] = "OWNER_CUSTOM";
|
|
1773
|
-
LocationLocationType2["CUSTOM"] = "CUSTOM";
|
|
1774
|
-
return LocationLocationType2;
|
|
1775
|
-
})(LocationLocationType || {});
|
|
1776
1791
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1777
1792
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1778
1793
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -1781,6 +1796,13 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
1781
1796
|
WebhookIdentityType2["APP"] = "APP";
|
|
1782
1797
|
return WebhookIdentityType2;
|
|
1783
1798
|
})(WebhookIdentityType || {});
|
|
1799
|
+
var LocationLocationType = /* @__PURE__ */ ((LocationLocationType2) => {
|
|
1800
|
+
LocationLocationType2["UNDEFINED"] = "UNDEFINED";
|
|
1801
|
+
LocationLocationType2["OWNER_BUSINESS"] = "OWNER_BUSINESS";
|
|
1802
|
+
LocationLocationType2["OWNER_CUSTOM"] = "OWNER_CUSTOM";
|
|
1803
|
+
LocationLocationType2["CUSTOM"] = "CUSTOM";
|
|
1804
|
+
return LocationLocationType2;
|
|
1805
|
+
})(LocationLocationType || {});
|
|
1784
1806
|
var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
|
|
1785
1807
|
IdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1786
1808
|
IdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -1796,17 +1818,35 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
1796
1818
|
})(SortOrder || {});
|
|
1797
1819
|
|
|
1798
1820
|
// src/bookings-v2-booking-bookings.meta.ts
|
|
1799
|
-
function
|
|
1821
|
+
function confirmOrDeclineBooking2() {
|
|
1822
|
+
const payload = { bookingId: ":bookingId" };
|
|
1823
|
+
const getRequestOptions = confirmOrDeclineBooking(payload);
|
|
1824
|
+
const getUrl = (context) => {
|
|
1825
|
+
const { url } = getRequestOptions(context);
|
|
1826
|
+
return url;
|
|
1827
|
+
};
|
|
1828
|
+
return {
|
|
1829
|
+
getUrl,
|
|
1830
|
+
httpMethod: "POST",
|
|
1831
|
+
path: "/v2/confirmation/{bookingId}:confirmOrDecline",
|
|
1832
|
+
pathParams: { bookingId: "bookingId" },
|
|
1833
|
+
__requestType: null,
|
|
1834
|
+
__originalRequestType: null,
|
|
1835
|
+
__responseType: null,
|
|
1836
|
+
__originalResponseType: null
|
|
1837
|
+
};
|
|
1838
|
+
}
|
|
1839
|
+
function bulkConfirmOrDeclineBooking2() {
|
|
1800
1840
|
const payload = {};
|
|
1801
|
-
const getRequestOptions =
|
|
1841
|
+
const getRequestOptions = bulkConfirmOrDeclineBooking(payload);
|
|
1802
1842
|
const getUrl = (context) => {
|
|
1803
1843
|
const { url } = getRequestOptions(context);
|
|
1804
1844
|
return url;
|
|
1805
1845
|
};
|
|
1806
1846
|
return {
|
|
1807
1847
|
getUrl,
|
|
1808
|
-
httpMethod: "
|
|
1809
|
-
path: "/v2/bookings/
|
|
1848
|
+
httpMethod: "POST",
|
|
1849
|
+
path: "/v2/bulk/bookings/confirmOrDecline",
|
|
1810
1850
|
pathParams: {},
|
|
1811
1851
|
__requestType: null,
|
|
1812
1852
|
__originalRequestType: null,
|
|
@@ -1814,27 +1854,27 @@ function getAnonymousActionDetails2() {
|
|
|
1814
1854
|
__originalResponseType: null
|
|
1815
1855
|
};
|
|
1816
1856
|
}
|
|
1817
|
-
function
|
|
1818
|
-
const payload = {
|
|
1819
|
-
const getRequestOptions =
|
|
1857
|
+
function createMultiServiceBooking2() {
|
|
1858
|
+
const payload = {};
|
|
1859
|
+
const getRequestOptions = createMultiServiceBooking(payload);
|
|
1820
1860
|
const getUrl = (context) => {
|
|
1821
1861
|
const { url } = getRequestOptions(context);
|
|
1822
1862
|
return url;
|
|
1823
1863
|
};
|
|
1824
1864
|
return {
|
|
1825
1865
|
getUrl,
|
|
1826
|
-
httpMethod: "POST",
|
|
1827
|
-
path: "/v2/
|
|
1828
|
-
pathParams: {
|
|
1866
|
+
httpMethod: "POST",
|
|
1867
|
+
path: "/v2/multi_service_bookings",
|
|
1868
|
+
pathParams: {},
|
|
1829
1869
|
__requestType: null,
|
|
1830
1870
|
__originalRequestType: null,
|
|
1831
1871
|
__responseType: null,
|
|
1832
1872
|
__originalResponseType: null
|
|
1833
1873
|
};
|
|
1834
1874
|
}
|
|
1835
|
-
function
|
|
1836
|
-
const payload = {
|
|
1837
|
-
const getRequestOptions =
|
|
1875
|
+
function rescheduleMultiServiceBooking2() {
|
|
1876
|
+
const payload = { multiServiceBookingId: ":multiServiceBookingId" };
|
|
1877
|
+
const getRequestOptions = rescheduleMultiServiceBooking(payload);
|
|
1838
1878
|
const getUrl = (context) => {
|
|
1839
1879
|
const { url } = getRequestOptions(context);
|
|
1840
1880
|
return url;
|
|
@@ -1842,35 +1882,35 @@ function rescheduleBookingAnonymously2() {
|
|
|
1842
1882
|
return {
|
|
1843
1883
|
getUrl,
|
|
1844
1884
|
httpMethod: "POST",
|
|
1845
|
-
path: "/v2/
|
|
1846
|
-
pathParams: {
|
|
1885
|
+
path: "/v2/multi_service_bookings/{multiServiceBookingId}/reschedule",
|
|
1886
|
+
pathParams: { multiServiceBookingId: "multiServiceBookingId" },
|
|
1847
1887
|
__requestType: null,
|
|
1848
1888
|
__originalRequestType: null,
|
|
1849
1889
|
__responseType: null,
|
|
1850
1890
|
__originalResponseType: null
|
|
1851
1891
|
};
|
|
1852
1892
|
}
|
|
1853
|
-
function
|
|
1854
|
-
const payload = {
|
|
1855
|
-
const getRequestOptions =
|
|
1893
|
+
function getMultiServiceBookingAvailability2() {
|
|
1894
|
+
const payload = { multiServiceBookingId: ":multiServiceBookingId" };
|
|
1895
|
+
const getRequestOptions = getMultiServiceBookingAvailability(payload);
|
|
1856
1896
|
const getUrl = (context) => {
|
|
1857
1897
|
const { url } = getRequestOptions(context);
|
|
1858
1898
|
return url;
|
|
1859
1899
|
};
|
|
1860
1900
|
return {
|
|
1861
1901
|
getUrl,
|
|
1862
|
-
httpMethod: "
|
|
1863
|
-
path: "/v2/
|
|
1864
|
-
pathParams: {
|
|
1902
|
+
httpMethod: "POST",
|
|
1903
|
+
path: "/v2/multi_service_bookings/{multiServiceBookingId}/get_availability",
|
|
1904
|
+
pathParams: { multiServiceBookingId: "multiServiceBookingId" },
|
|
1865
1905
|
__requestType: null,
|
|
1866
1906
|
__originalRequestType: null,
|
|
1867
1907
|
__responseType: null,
|
|
1868
1908
|
__originalResponseType: null
|
|
1869
1909
|
};
|
|
1870
1910
|
}
|
|
1871
|
-
function
|
|
1872
|
-
const payload = {
|
|
1873
|
-
const getRequestOptions =
|
|
1911
|
+
function cancelMultiServiceBooking2() {
|
|
1912
|
+
const payload = { multiServiceBookingId: ":multiServiceBookingId" };
|
|
1913
|
+
const getRequestOptions = cancelMultiServiceBooking(payload);
|
|
1874
1914
|
const getUrl = (context) => {
|
|
1875
1915
|
const { url } = getRequestOptions(context);
|
|
1876
1916
|
return url;
|
|
@@ -1878,17 +1918,17 @@ function confirmOrDeclineBooking2() {
|
|
|
1878
1918
|
return {
|
|
1879
1919
|
getUrl,
|
|
1880
1920
|
httpMethod: "POST",
|
|
1881
|
-
path: "/v2/
|
|
1882
|
-
pathParams: {
|
|
1921
|
+
path: "/v2/multi_service_bookings/{multiServiceBookingId}/cancel",
|
|
1922
|
+
pathParams: { multiServiceBookingId: "multiServiceBookingId" },
|
|
1883
1923
|
__requestType: null,
|
|
1884
1924
|
__originalRequestType: null,
|
|
1885
1925
|
__responseType: null,
|
|
1886
1926
|
__originalResponseType: null
|
|
1887
1927
|
};
|
|
1888
1928
|
}
|
|
1889
|
-
function
|
|
1890
|
-
const payload = {};
|
|
1891
|
-
const getRequestOptions =
|
|
1929
|
+
function markMultiServiceBookingAsPending2() {
|
|
1930
|
+
const payload = { multiServiceBookingId: ":multiServiceBookingId" };
|
|
1931
|
+
const getRequestOptions = markMultiServiceBookingAsPending(payload);
|
|
1892
1932
|
const getUrl = (context) => {
|
|
1893
1933
|
const { url } = getRequestOptions(context);
|
|
1894
1934
|
return url;
|
|
@@ -1896,17 +1936,17 @@ function bulkConfirmOrDeclineBooking2() {
|
|
|
1896
1936
|
return {
|
|
1897
1937
|
getUrl,
|
|
1898
1938
|
httpMethod: "POST",
|
|
1899
|
-
path: "/v2/
|
|
1900
|
-
pathParams: {},
|
|
1939
|
+
path: "/v2/multi_service_bookings/{multiServiceBookingId}/mark_as_pending",
|
|
1940
|
+
pathParams: { multiServiceBookingId: "multiServiceBookingId" },
|
|
1901
1941
|
__requestType: null,
|
|
1902
1942
|
__originalRequestType: null,
|
|
1903
1943
|
__responseType: null,
|
|
1904
1944
|
__originalResponseType: null
|
|
1905
1945
|
};
|
|
1906
1946
|
}
|
|
1907
|
-
function
|
|
1908
|
-
const payload = {};
|
|
1909
|
-
const getRequestOptions =
|
|
1947
|
+
function confirmMultiServiceBooking2() {
|
|
1948
|
+
const payload = { multiServiceBookingId: ":multiServiceBookingId" };
|
|
1949
|
+
const getRequestOptions = confirmMultiServiceBooking(payload);
|
|
1910
1950
|
const getUrl = (context) => {
|
|
1911
1951
|
const { url } = getRequestOptions(context);
|
|
1912
1952
|
return url;
|
|
@@ -1914,17 +1954,17 @@ function createBooking2() {
|
|
|
1914
1954
|
return {
|
|
1915
1955
|
getUrl,
|
|
1916
1956
|
httpMethod: "POST",
|
|
1917
|
-
path: "/v2/
|
|
1918
|
-
pathParams: {},
|
|
1957
|
+
path: "/v2/multi_service_bookings/{multiServiceBookingId}/confirm",
|
|
1958
|
+
pathParams: { multiServiceBookingId: "multiServiceBookingId" },
|
|
1919
1959
|
__requestType: null,
|
|
1920
1960
|
__originalRequestType: null,
|
|
1921
1961
|
__responseType: null,
|
|
1922
1962
|
__originalResponseType: null
|
|
1923
1963
|
};
|
|
1924
1964
|
}
|
|
1925
|
-
function
|
|
1926
|
-
const payload = {};
|
|
1927
|
-
const getRequestOptions =
|
|
1965
|
+
function declineMultiServiceBooking2() {
|
|
1966
|
+
const payload = { multiServiceBookingId: ":multiServiceBookingId" };
|
|
1967
|
+
const getRequestOptions = declineMultiServiceBooking(payload);
|
|
1928
1968
|
const getUrl = (context) => {
|
|
1929
1969
|
const { url } = getRequestOptions(context);
|
|
1930
1970
|
return url;
|
|
@@ -1932,17 +1972,19 @@ function bulkCreateBooking2() {
|
|
|
1932
1972
|
return {
|
|
1933
1973
|
getUrl,
|
|
1934
1974
|
httpMethod: "POST",
|
|
1935
|
-
path: "/v2/
|
|
1936
|
-
pathParams: {},
|
|
1975
|
+
path: "/v2/multi_service_bookings/{multiServiceBookingId}/decline",
|
|
1976
|
+
pathParams: { multiServiceBookingId: "multiServiceBookingId" },
|
|
1937
1977
|
__requestType: null,
|
|
1938
1978
|
__originalRequestType: null,
|
|
1939
1979
|
__responseType: null,
|
|
1940
1980
|
__originalResponseType: null
|
|
1941
1981
|
};
|
|
1942
1982
|
}
|
|
1943
|
-
function
|
|
1944
|
-
const payload = {
|
|
1945
|
-
const getRequestOptions =
|
|
1983
|
+
function bulkGetMultiServiceBookingAllowedActions2() {
|
|
1984
|
+
const payload = {};
|
|
1985
|
+
const getRequestOptions = bulkGetMultiServiceBookingAllowedActions(
|
|
1986
|
+
payload
|
|
1987
|
+
);
|
|
1946
1988
|
const getUrl = (context) => {
|
|
1947
1989
|
const { url } = getRequestOptions(context);
|
|
1948
1990
|
return url;
|
|
@@ -1950,35 +1992,35 @@ function rescheduleBooking2() {
|
|
|
1950
1992
|
return {
|
|
1951
1993
|
getUrl,
|
|
1952
1994
|
httpMethod: "POST",
|
|
1953
|
-
path: "/v2/
|
|
1954
|
-
pathParams: {
|
|
1995
|
+
path: "/v2/bulk/multi_service_bookings/get_allowed_actions",
|
|
1996
|
+
pathParams: {},
|
|
1955
1997
|
__requestType: null,
|
|
1956
1998
|
__originalRequestType: null,
|
|
1957
1999
|
__responseType: null,
|
|
1958
2000
|
__originalResponseType: null
|
|
1959
2001
|
};
|
|
1960
2002
|
}
|
|
1961
|
-
function
|
|
1962
|
-
const payload = {
|
|
1963
|
-
const getRequestOptions =
|
|
2003
|
+
function getMultiServiceBooking2() {
|
|
2004
|
+
const payload = { multiServiceBookingId: ":multiServiceBookingId" };
|
|
2005
|
+
const getRequestOptions = getMultiServiceBooking(payload);
|
|
1964
2006
|
const getUrl = (context) => {
|
|
1965
2007
|
const { url } = getRequestOptions(context);
|
|
1966
2008
|
return url;
|
|
1967
2009
|
};
|
|
1968
2010
|
return {
|
|
1969
2011
|
getUrl,
|
|
1970
|
-
httpMethod: "
|
|
1971
|
-
path: "/v2/
|
|
1972
|
-
pathParams: {
|
|
2012
|
+
httpMethod: "GET",
|
|
2013
|
+
path: "/v2/multi_service_bookings/{multiServiceBookingId}",
|
|
2014
|
+
pathParams: { multiServiceBookingId: "multiServiceBookingId" },
|
|
1973
2015
|
__requestType: null,
|
|
1974
2016
|
__originalRequestType: null,
|
|
1975
2017
|
__responseType: null,
|
|
1976
2018
|
__originalResponseType: null
|
|
1977
2019
|
};
|
|
1978
2020
|
}
|
|
1979
|
-
function
|
|
1980
|
-
const payload = {
|
|
1981
|
-
const getRequestOptions =
|
|
2021
|
+
function addBookingsToMultiServiceBooking2() {
|
|
2022
|
+
const payload = {};
|
|
2023
|
+
const getRequestOptions = addBookingsToMultiServiceBooking(payload);
|
|
1982
2024
|
const getUrl = (context) => {
|
|
1983
2025
|
const { url } = getRequestOptions(context);
|
|
1984
2026
|
return url;
|
|
@@ -1986,17 +2028,19 @@ function setBookingSubmissionId2() {
|
|
|
1986
2028
|
return {
|
|
1987
2029
|
getUrl,
|
|
1988
2030
|
httpMethod: "POST",
|
|
1989
|
-
path: "/v2/
|
|
1990
|
-
pathParams: {
|
|
2031
|
+
path: "/v2/multi_service_bookings/add_bookings_to_multi_service_booking",
|
|
2032
|
+
pathParams: {},
|
|
1991
2033
|
__requestType: null,
|
|
1992
2034
|
__originalRequestType: null,
|
|
1993
2035
|
__responseType: null,
|
|
1994
2036
|
__originalResponseType: null
|
|
1995
2037
|
};
|
|
1996
2038
|
}
|
|
1997
|
-
function
|
|
1998
|
-
const payload = {
|
|
1999
|
-
const getRequestOptions =
|
|
2039
|
+
function removeBookingsFromMultiServiceBooking2() {
|
|
2040
|
+
const payload = {};
|
|
2041
|
+
const getRequestOptions = removeBookingsFromMultiServiceBooking(
|
|
2042
|
+
payload
|
|
2043
|
+
);
|
|
2000
2044
|
const getUrl = (context) => {
|
|
2001
2045
|
const { url } = getRequestOptions(context);
|
|
2002
2046
|
return url;
|
|
@@ -2004,17 +2048,17 @@ function updateExtendedFields2() {
|
|
|
2004
2048
|
return {
|
|
2005
2049
|
getUrl,
|
|
2006
2050
|
httpMethod: "POST",
|
|
2007
|
-
path: "/v2/
|
|
2008
|
-
pathParams: {
|
|
2051
|
+
path: "/v2/multi_service_bookings/remove_bookings_from_multi_service_booking",
|
|
2052
|
+
pathParams: {},
|
|
2009
2053
|
__requestType: null,
|
|
2010
2054
|
__originalRequestType: null,
|
|
2011
2055
|
__responseType: null,
|
|
2012
2056
|
__originalResponseType: null
|
|
2013
2057
|
};
|
|
2014
2058
|
}
|
|
2015
|
-
function
|
|
2016
|
-
const payload = {
|
|
2017
|
-
const getRequestOptions =
|
|
2059
|
+
function createBooking2() {
|
|
2060
|
+
const payload = {};
|
|
2061
|
+
const getRequestOptions = createBooking(payload);
|
|
2018
2062
|
const getUrl = (context) => {
|
|
2019
2063
|
const { url } = getRequestOptions(context);
|
|
2020
2064
|
return url;
|
|
@@ -2022,17 +2066,17 @@ function declineBooking() {
|
|
|
2022
2066
|
return {
|
|
2023
2067
|
getUrl,
|
|
2024
2068
|
httpMethod: "POST",
|
|
2025
|
-
path: "/v2/bookings
|
|
2026
|
-
pathParams: {
|
|
2069
|
+
path: "/v2/bookings",
|
|
2070
|
+
pathParams: {},
|
|
2027
2071
|
__requestType: null,
|
|
2028
2072
|
__originalRequestType: null,
|
|
2029
2073
|
__responseType: null,
|
|
2030
2074
|
__originalResponseType: null
|
|
2031
2075
|
};
|
|
2032
2076
|
}
|
|
2033
|
-
function
|
|
2034
|
-
const payload = {
|
|
2035
|
-
const getRequestOptions =
|
|
2077
|
+
function bulkCreateBooking2() {
|
|
2078
|
+
const payload = {};
|
|
2079
|
+
const getRequestOptions = bulkCreateBooking(payload);
|
|
2036
2080
|
const getUrl = (context) => {
|
|
2037
2081
|
const { url } = getRequestOptions(context);
|
|
2038
2082
|
return url;
|
|
@@ -2040,17 +2084,17 @@ function cancelBooking() {
|
|
|
2040
2084
|
return {
|
|
2041
2085
|
getUrl,
|
|
2042
2086
|
httpMethod: "POST",
|
|
2043
|
-
path: "/v2/bookings/
|
|
2044
|
-
pathParams: {
|
|
2087
|
+
path: "/v2/bulk/bookings/create",
|
|
2088
|
+
pathParams: {},
|
|
2045
2089
|
__requestType: null,
|
|
2046
2090
|
__originalRequestType: null,
|
|
2047
2091
|
__responseType: null,
|
|
2048
2092
|
__originalResponseType: null
|
|
2049
2093
|
};
|
|
2050
2094
|
}
|
|
2051
|
-
function
|
|
2095
|
+
function rescheduleBooking2() {
|
|
2052
2096
|
const payload = { bookingId: ":bookingId" };
|
|
2053
|
-
const getRequestOptions =
|
|
2097
|
+
const getRequestOptions = rescheduleBooking(payload);
|
|
2054
2098
|
const getUrl = (context) => {
|
|
2055
2099
|
const { url } = getRequestOptions(context);
|
|
2056
2100
|
return url;
|
|
@@ -2058,7 +2102,7 @@ function updateNumberOfParticipants() {
|
|
|
2058
2102
|
return {
|
|
2059
2103
|
getUrl,
|
|
2060
2104
|
httpMethod: "POST",
|
|
2061
|
-
path: "/v2/bookings/{bookingId}/
|
|
2105
|
+
path: "/v2/bookings/{bookingId}/reschedule",
|
|
2062
2106
|
pathParams: { bookingId: "bookingId" },
|
|
2063
2107
|
__requestType: null,
|
|
2064
2108
|
__originalRequestType: null,
|
|
@@ -2066,9 +2110,9 @@ function updateNumberOfParticipants() {
|
|
|
2066
2110
|
__originalResponseType: null
|
|
2067
2111
|
};
|
|
2068
2112
|
}
|
|
2069
|
-
function
|
|
2113
|
+
function confirmBooking() {
|
|
2070
2114
|
const payload = { bookingId: ":bookingId" };
|
|
2071
|
-
const getRequestOptions =
|
|
2115
|
+
const getRequestOptions = bookingsConfirmBooking(payload);
|
|
2072
2116
|
const getUrl = (context) => {
|
|
2073
2117
|
const { url } = getRequestOptions(context);
|
|
2074
2118
|
return url;
|
|
@@ -2076,7 +2120,7 @@ function markBookingAsPending2() {
|
|
|
2076
2120
|
return {
|
|
2077
2121
|
getUrl,
|
|
2078
2122
|
httpMethod: "POST",
|
|
2079
|
-
path: "/v2/bookings/{bookingId}/
|
|
2123
|
+
path: "/v2/bookings/{bookingId}/confirm",
|
|
2080
2124
|
pathParams: { bookingId: "bookingId" },
|
|
2081
2125
|
__requestType: null,
|
|
2082
2126
|
__originalRequestType: null,
|
|
@@ -2084,9 +2128,9 @@ function markBookingAsPending2() {
|
|
|
2084
2128
|
__originalResponseType: null
|
|
2085
2129
|
};
|
|
2086
2130
|
}
|
|
2087
|
-
function
|
|
2088
|
-
const payload = {};
|
|
2089
|
-
const getRequestOptions =
|
|
2131
|
+
function setBookingSubmissionId2() {
|
|
2132
|
+
const payload = { bookingId: ":bookingId" };
|
|
2133
|
+
const getRequestOptions = setBookingSubmissionId(payload);
|
|
2090
2134
|
const getUrl = (context) => {
|
|
2091
2135
|
const { url } = getRequestOptions(context);
|
|
2092
2136
|
return url;
|
|
@@ -2094,17 +2138,17 @@ function createMultiServiceBooking2() {
|
|
|
2094
2138
|
return {
|
|
2095
2139
|
getUrl,
|
|
2096
2140
|
httpMethod: "POST",
|
|
2097
|
-
path: "/v2/
|
|
2098
|
-
pathParams: {},
|
|
2141
|
+
path: "/v2/bookings/{bookingId}/set-booking-submission-id",
|
|
2142
|
+
pathParams: { bookingId: "bookingId" },
|
|
2099
2143
|
__requestType: null,
|
|
2100
2144
|
__originalRequestType: null,
|
|
2101
2145
|
__responseType: null,
|
|
2102
2146
|
__originalResponseType: null
|
|
2103
2147
|
};
|
|
2104
2148
|
}
|
|
2105
|
-
function
|
|
2106
|
-
const payload = {
|
|
2107
|
-
const getRequestOptions =
|
|
2149
|
+
function updateExtendedFields2() {
|
|
2150
|
+
const payload = { id: ":id" };
|
|
2151
|
+
const getRequestOptions = updateExtendedFields(payload);
|
|
2108
2152
|
const getUrl = (context) => {
|
|
2109
2153
|
const { url } = getRequestOptions(context);
|
|
2110
2154
|
return url;
|
|
@@ -2112,17 +2156,17 @@ function rescheduleMultiServiceBooking2() {
|
|
|
2112
2156
|
return {
|
|
2113
2157
|
getUrl,
|
|
2114
2158
|
httpMethod: "POST",
|
|
2115
|
-
path: "/v2/
|
|
2116
|
-
pathParams: {
|
|
2159
|
+
path: "/v2/bookings/{id}/update_extended_fields",
|
|
2160
|
+
pathParams: { id: "id" },
|
|
2117
2161
|
__requestType: null,
|
|
2118
2162
|
__originalRequestType: null,
|
|
2119
2163
|
__responseType: null,
|
|
2120
2164
|
__originalResponseType: null
|
|
2121
2165
|
};
|
|
2122
2166
|
}
|
|
2123
|
-
function
|
|
2124
|
-
const payload = {
|
|
2125
|
-
const getRequestOptions =
|
|
2167
|
+
function declineBooking() {
|
|
2168
|
+
const payload = { bookingId: ":bookingId" };
|
|
2169
|
+
const getRequestOptions = bookingsDeclineBooking(payload);
|
|
2126
2170
|
const getUrl = (context) => {
|
|
2127
2171
|
const { url } = getRequestOptions(context);
|
|
2128
2172
|
return url;
|
|
@@ -2130,17 +2174,17 @@ function getMultiServiceBookingAvailability2() {
|
|
|
2130
2174
|
return {
|
|
2131
2175
|
getUrl,
|
|
2132
2176
|
httpMethod: "POST",
|
|
2133
|
-
path: "/v2/
|
|
2134
|
-
pathParams: {
|
|
2177
|
+
path: "/v2/bookings/{bookingId}/decline",
|
|
2178
|
+
pathParams: { bookingId: "bookingId" },
|
|
2135
2179
|
__requestType: null,
|
|
2136
2180
|
__originalRequestType: null,
|
|
2137
2181
|
__responseType: null,
|
|
2138
2182
|
__originalResponseType: null
|
|
2139
2183
|
};
|
|
2140
2184
|
}
|
|
2141
|
-
function
|
|
2142
|
-
const payload = {
|
|
2143
|
-
const getRequestOptions =
|
|
2185
|
+
function cancelBooking() {
|
|
2186
|
+
const payload = { bookingId: ":bookingId" };
|
|
2187
|
+
const getRequestOptions = bookingsCancelBooking(payload);
|
|
2144
2188
|
const getUrl = (context) => {
|
|
2145
2189
|
const { url } = getRequestOptions(context);
|
|
2146
2190
|
return url;
|
|
@@ -2148,17 +2192,17 @@ function cancelMultiServiceBooking2() {
|
|
|
2148
2192
|
return {
|
|
2149
2193
|
getUrl,
|
|
2150
2194
|
httpMethod: "POST",
|
|
2151
|
-
path: "/v2/
|
|
2152
|
-
pathParams: {
|
|
2195
|
+
path: "/v2/bookings/{bookingId}/cancel",
|
|
2196
|
+
pathParams: { bookingId: "bookingId" },
|
|
2153
2197
|
__requestType: null,
|
|
2154
2198
|
__originalRequestType: null,
|
|
2155
2199
|
__responseType: null,
|
|
2156
2200
|
__originalResponseType: null
|
|
2157
2201
|
};
|
|
2158
2202
|
}
|
|
2159
|
-
function
|
|
2160
|
-
const payload = {
|
|
2161
|
-
const getRequestOptions =
|
|
2203
|
+
function updateNumberOfParticipants() {
|
|
2204
|
+
const payload = { bookingId: ":bookingId" };
|
|
2205
|
+
const getRequestOptions = bookingsUpdateNumberOfParticipants(payload);
|
|
2162
2206
|
const getUrl = (context) => {
|
|
2163
2207
|
const { url } = getRequestOptions(context);
|
|
2164
2208
|
return url;
|
|
@@ -2166,17 +2210,17 @@ function markMultiServiceBookingAsPending2() {
|
|
|
2166
2210
|
return {
|
|
2167
2211
|
getUrl,
|
|
2168
2212
|
httpMethod: "POST",
|
|
2169
|
-
path: "/v2/
|
|
2170
|
-
pathParams: {
|
|
2213
|
+
path: "/v2/bookings/{bookingId}/update_number_of_participants",
|
|
2214
|
+
pathParams: { bookingId: "bookingId" },
|
|
2171
2215
|
__requestType: null,
|
|
2172
2216
|
__originalRequestType: null,
|
|
2173
2217
|
__responseType: null,
|
|
2174
2218
|
__originalResponseType: null
|
|
2175
2219
|
};
|
|
2176
2220
|
}
|
|
2177
|
-
function
|
|
2178
|
-
const payload = {
|
|
2179
|
-
const getRequestOptions =
|
|
2221
|
+
function bulkCalculateAllowedActions2() {
|
|
2222
|
+
const payload = {};
|
|
2223
|
+
const getRequestOptions = bulkCalculateAllowedActions(payload);
|
|
2180
2224
|
const getUrl = (context) => {
|
|
2181
2225
|
const { url } = getRequestOptions(context);
|
|
2182
2226
|
return url;
|
|
@@ -2184,17 +2228,17 @@ function confirmMultiServiceBooking2() {
|
|
|
2184
2228
|
return {
|
|
2185
2229
|
getUrl,
|
|
2186
2230
|
httpMethod: "POST",
|
|
2187
|
-
path: "/v2/
|
|
2188
|
-
pathParams: {
|
|
2231
|
+
path: "/v2/bulk/bookings/calculate_allowed_actions",
|
|
2232
|
+
pathParams: {},
|
|
2189
2233
|
__requestType: null,
|
|
2190
2234
|
__originalRequestType: null,
|
|
2191
2235
|
__responseType: null,
|
|
2192
2236
|
__originalResponseType: null
|
|
2193
2237
|
};
|
|
2194
2238
|
}
|
|
2195
|
-
function
|
|
2196
|
-
const payload = {
|
|
2197
|
-
const getRequestOptions =
|
|
2239
|
+
function markBookingAsPending2() {
|
|
2240
|
+
const payload = { bookingId: ":bookingId" };
|
|
2241
|
+
const getRequestOptions = markBookingAsPending(payload);
|
|
2198
2242
|
const getUrl = (context) => {
|
|
2199
2243
|
const { url } = getRequestOptions(context);
|
|
2200
2244
|
return url;
|
|
@@ -2202,27 +2246,25 @@ function declineMultiServiceBooking2() {
|
|
|
2202
2246
|
return {
|
|
2203
2247
|
getUrl,
|
|
2204
2248
|
httpMethod: "POST",
|
|
2205
|
-
path: "/v2/
|
|
2206
|
-
pathParams: {
|
|
2249
|
+
path: "/v2/bookings/{bookingId}/mark_booking_as_pending",
|
|
2250
|
+
pathParams: { bookingId: "bookingId" },
|
|
2207
2251
|
__requestType: null,
|
|
2208
2252
|
__originalRequestType: null,
|
|
2209
2253
|
__responseType: null,
|
|
2210
2254
|
__originalResponseType: null
|
|
2211
2255
|
};
|
|
2212
2256
|
}
|
|
2213
|
-
function
|
|
2257
|
+
function getAnonymousActionDetails2() {
|
|
2214
2258
|
const payload = {};
|
|
2215
|
-
const getRequestOptions =
|
|
2216
|
-
payload
|
|
2217
|
-
);
|
|
2259
|
+
const getRequestOptions = getAnonymousActionDetails(payload);
|
|
2218
2260
|
const getUrl = (context) => {
|
|
2219
2261
|
const { url } = getRequestOptions(context);
|
|
2220
2262
|
return url;
|
|
2221
2263
|
};
|
|
2222
2264
|
return {
|
|
2223
2265
|
getUrl,
|
|
2224
|
-
httpMethod: "
|
|
2225
|
-
path: "/v2/
|
|
2266
|
+
httpMethod: "GET",
|
|
2267
|
+
path: "/v2/bookings/anonymous-actions-details",
|
|
2226
2268
|
pathParams: {},
|
|
2227
2269
|
__requestType: null,
|
|
2228
2270
|
__originalRequestType: null,
|
|
@@ -2230,27 +2272,27 @@ function bulkGetMultiServiceBookingAllowedActions2() {
|
|
|
2230
2272
|
__originalResponseType: null
|
|
2231
2273
|
};
|
|
2232
2274
|
}
|
|
2233
|
-
function
|
|
2234
|
-
const payload = {
|
|
2235
|
-
const getRequestOptions =
|
|
2275
|
+
function cancelBookingAnonymously2() {
|
|
2276
|
+
const payload = { token: ":token" };
|
|
2277
|
+
const getRequestOptions = cancelBookingAnonymously(payload);
|
|
2236
2278
|
const getUrl = (context) => {
|
|
2237
2279
|
const { url } = getRequestOptions(context);
|
|
2238
2280
|
return url;
|
|
2239
2281
|
};
|
|
2240
2282
|
return {
|
|
2241
2283
|
getUrl,
|
|
2242
|
-
httpMethod: "
|
|
2243
|
-
path: "/v2/
|
|
2244
|
-
pathParams: {
|
|
2284
|
+
httpMethod: "POST",
|
|
2285
|
+
path: "/v2/bookings/{token}/anonymous-cancel",
|
|
2286
|
+
pathParams: { token: "token" },
|
|
2245
2287
|
__requestType: null,
|
|
2246
2288
|
__originalRequestType: null,
|
|
2247
2289
|
__responseType: null,
|
|
2248
2290
|
__originalResponseType: null
|
|
2249
2291
|
};
|
|
2250
2292
|
}
|
|
2251
|
-
function
|
|
2252
|
-
const payload = {};
|
|
2253
|
-
const getRequestOptions =
|
|
2293
|
+
function rescheduleBookingAnonymously2() {
|
|
2294
|
+
const payload = { token: ":token" };
|
|
2295
|
+
const getRequestOptions = rescheduleBookingAnonymously(payload);
|
|
2254
2296
|
const getUrl = (context) => {
|
|
2255
2297
|
const { url } = getRequestOptions(context);
|
|
2256
2298
|
return url;
|
|
@@ -2258,28 +2300,26 @@ function addBookingsToMultiServiceBooking2() {
|
|
|
2258
2300
|
return {
|
|
2259
2301
|
getUrl,
|
|
2260
2302
|
httpMethod: "POST",
|
|
2261
|
-
path: "/v2/
|
|
2262
|
-
pathParams: {},
|
|
2303
|
+
path: "/v2/bookings/{token}/anonymous-reschedule",
|
|
2304
|
+
pathParams: { token: "token" },
|
|
2263
2305
|
__requestType: null,
|
|
2264
2306
|
__originalRequestType: null,
|
|
2265
2307
|
__responseType: null,
|
|
2266
2308
|
__originalResponseType: null
|
|
2267
2309
|
};
|
|
2268
2310
|
}
|
|
2269
|
-
function
|
|
2270
|
-
const payload = {};
|
|
2271
|
-
const getRequestOptions =
|
|
2272
|
-
payload
|
|
2273
|
-
);
|
|
2311
|
+
function getBookingAnonymously2() {
|
|
2312
|
+
const payload = { token: ":token" };
|
|
2313
|
+
const getRequestOptions = getBookingAnonymously(payload);
|
|
2274
2314
|
const getUrl = (context) => {
|
|
2275
2315
|
const { url } = getRequestOptions(context);
|
|
2276
2316
|
return url;
|
|
2277
2317
|
};
|
|
2278
2318
|
return {
|
|
2279
2319
|
getUrl,
|
|
2280
|
-
httpMethod: "
|
|
2281
|
-
path: "/v2/
|
|
2282
|
-
pathParams: {},
|
|
2320
|
+
httpMethod: "GET",
|
|
2321
|
+
path: "/v2/bookings/{token}/anonymous-get",
|
|
2322
|
+
pathParams: { token: "token" },
|
|
2283
2323
|
__requestType: null,
|
|
2284
2324
|
__originalRequestType: null,
|
|
2285
2325
|
__responseType: null,
|
|
@@ -2303,6 +2343,7 @@ function removeBookingsFromMultiServiceBooking2() {
|
|
|
2303
2343
|
ValueTypeOriginal,
|
|
2304
2344
|
WebhookIdentityTypeOriginal,
|
|
2305
2345
|
addBookingsToMultiServiceBooking,
|
|
2346
|
+
bulkCalculateAllowedActions,
|
|
2306
2347
|
bulkConfirmOrDeclineBooking,
|
|
2307
2348
|
bulkCreateBooking,
|
|
2308
2349
|
bulkGetMultiServiceBookingAllowedActions,
|