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