@wix/auto_sdk_bookings_bookings 1.0.89 → 1.0.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +490 -490
- package/build/cjs/index.js +931 -931
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2376 -2460
- package/build/cjs/index.typings.js +803 -803
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1346 -1410
- package/build/cjs/meta.js +646 -646
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +490 -490
- package/build/es/index.mjs +931 -931
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2376 -2460
- package/build/es/index.typings.mjs +803 -803
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1346 -1410
- package/build/es/meta.mjs +646 -646
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +490 -490
- package/build/internal/cjs/index.js +931 -931
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +2381 -2465
- package/build/internal/cjs/index.typings.js +803 -803
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +1346 -1410
- package/build/internal/cjs/meta.js +646 -646
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +490 -490
- package/build/internal/es/index.mjs +931 -931
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +2381 -2465
- package/build/internal/es/index.typings.mjs +803 -803
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +1346 -1410
- package/build/internal/es/meta.mjs +646 -646
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -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,139 +895,151 @@ 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
|
|
941
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
942
|
-
{
|
|
943
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
944
|
-
paths: [
|
|
945
|
-
{ path: "booking.createdDate" },
|
|
946
|
-
{ path: "booking.startDate" },
|
|
947
|
-
{ path: "booking.endDate" },
|
|
948
|
-
{ path: "booking.updatedDate" },
|
|
949
|
-
{ path: "booking.canceledDate" }
|
|
950
|
-
]
|
|
951
|
-
},
|
|
952
|
-
{
|
|
953
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
954
|
-
paths: [
|
|
955
|
-
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
956
|
-
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
957
|
-
]
|
|
958
|
-
}
|
|
959
|
-
])
|
|
937
|
+
data: payload
|
|
960
938
|
};
|
|
961
939
|
return metadata;
|
|
962
940
|
}
|
|
963
|
-
return
|
|
941
|
+
return __bulkGetMultiServiceBookingAllowedActions;
|
|
964
942
|
}
|
|
965
|
-
function
|
|
966
|
-
function
|
|
943
|
+
function getMultiServiceBooking(payload) {
|
|
944
|
+
function __getMultiServiceBooking({ host }) {
|
|
967
945
|
const metadata = {
|
|
968
946
|
entityFqdn: "wix.bookings.v2.booking",
|
|
969
|
-
method: "
|
|
970
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
947
|
+
method: "GET",
|
|
948
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.GetMultiServiceBooking",
|
|
971
949
|
packageName: PACKAGE_NAME,
|
|
972
950
|
migrationOptions: {
|
|
973
951
|
optInTransformResponse: true
|
|
974
952
|
},
|
|
975
|
-
url:
|
|
976
|
-
protoPath: "/v2/
|
|
953
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
954
|
+
protoPath: "/v2/multi_service_bookings/{multiServiceBookingId}",
|
|
977
955
|
data: payload,
|
|
978
956
|
host
|
|
979
957
|
}),
|
|
980
|
-
|
|
958
|
+
params: toURLSearchParams(payload),
|
|
981
959
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
982
960
|
{
|
|
983
961
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
984
962
|
paths: [
|
|
985
|
-
{ path: "booking.createdDate" },
|
|
986
|
-
{ path: "booking.startDate" },
|
|
987
|
-
{ path: "booking.endDate" },
|
|
988
|
-
{ path: "booking.updatedDate" },
|
|
989
|
-
{ 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" }
|
|
990
968
|
]
|
|
991
969
|
},
|
|
992
970
|
{
|
|
993
971
|
transformFn: transformRESTFloatToSDKFloat,
|
|
994
972
|
paths: [
|
|
995
|
-
{
|
|
996
|
-
|
|
973
|
+
{
|
|
974
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
978
|
+
}
|
|
997
979
|
]
|
|
998
980
|
}
|
|
999
981
|
])
|
|
1000
982
|
};
|
|
1001
983
|
return metadata;
|
|
1002
984
|
}
|
|
1003
|
-
return
|
|
985
|
+
return __getMultiServiceBooking;
|
|
1004
986
|
}
|
|
1005
|
-
function
|
|
1006
|
-
function
|
|
987
|
+
function addBookingsToMultiServiceBooking(payload) {
|
|
988
|
+
function __addBookingsToMultiServiceBooking({ host }) {
|
|
1007
989
|
const metadata = {
|
|
1008
990
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1009
991
|
method: "POST",
|
|
1010
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
992
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.AddBookingsToMultiServiceBooking",
|
|
1011
993
|
packageName: PACKAGE_NAME,
|
|
1012
994
|
migrationOptions: {
|
|
1013
995
|
optInTransformResponse: true
|
|
1014
996
|
},
|
|
1015
|
-
url:
|
|
1016
|
-
protoPath: "/v2/
|
|
997
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
998
|
+
protoPath: "/v2/multi_service_bookings/add_bookings_to_multi_service_booking",
|
|
1017
999
|
data: payload,
|
|
1018
1000
|
host
|
|
1019
1001
|
}),
|
|
1020
|
-
data: payload
|
|
1002
|
+
data: payload,
|
|
1003
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1004
|
+
{
|
|
1005
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1006
|
+
paths: [
|
|
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" }
|
|
1012
|
+
]
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
transformFn: transformRESTFloatToSDKFloat,
|
|
1016
|
+
paths: [
|
|
1017
|
+
{
|
|
1018
|
+
path: "bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
1019
|
+
},
|
|
1020
|
+
{
|
|
1021
|
+
path: "bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1022
|
+
}
|
|
1023
|
+
]
|
|
1024
|
+
}
|
|
1025
|
+
])
|
|
1021
1026
|
};
|
|
1022
1027
|
return metadata;
|
|
1023
1028
|
}
|
|
1024
|
-
return
|
|
1029
|
+
return __addBookingsToMultiServiceBooking;
|
|
1025
1030
|
}
|
|
1026
|
-
function
|
|
1027
|
-
function
|
|
1031
|
+
function removeBookingsFromMultiServiceBooking(payload) {
|
|
1032
|
+
function __removeBookingsFromMultiServiceBooking({ host }) {
|
|
1028
1033
|
const metadata = {
|
|
1029
1034
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1030
1035
|
method: "POST",
|
|
1031
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1036
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.MultiServiceBookings.RemoveBookingsFromMultiServiceBooking",
|
|
1032
1037
|
packageName: PACKAGE_NAME,
|
|
1033
1038
|
migrationOptions: {
|
|
1034
1039
|
optInTransformResponse: true
|
|
1035
1040
|
},
|
|
1036
|
-
url:
|
|
1037
|
-
protoPath: "/v2/
|
|
1041
|
+
url: resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl({
|
|
1042
|
+
protoPath: "/v2/multi_service_bookings/remove_bookings_from_multi_service_booking",
|
|
1038
1043
|
data: payload,
|
|
1039
1044
|
host
|
|
1040
1045
|
}),
|
|
@@ -1043,42 +1048,65 @@ function bookingsDeclineBooking(payload) {
|
|
|
1043
1048
|
{
|
|
1044
1049
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1045
1050
|
paths: [
|
|
1046
|
-
{ path: "booking.createdDate" },
|
|
1047
|
-
{ path: "booking.startDate" },
|
|
1048
|
-
{ path: "booking.endDate" },
|
|
1049
|
-
{ path: "booking.updatedDate" },
|
|
1050
|
-
{ path: "booking.canceledDate" }
|
|
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" }
|
|
1051
1056
|
]
|
|
1052
1057
|
},
|
|
1053
1058
|
{
|
|
1054
1059
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1055
1060
|
paths: [
|
|
1056
|
-
{
|
|
1057
|
-
|
|
1061
|
+
{
|
|
1062
|
+
path: "bookings.booking.contactDetails.fullAddress.geocode.latitude"
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
path: "bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1066
|
+
}
|
|
1058
1067
|
]
|
|
1059
1068
|
}
|
|
1060
1069
|
])
|
|
1061
1070
|
};
|
|
1062
1071
|
return metadata;
|
|
1063
1072
|
}
|
|
1064
|
-
return
|
|
1073
|
+
return __removeBookingsFromMultiServiceBooking;
|
|
1065
1074
|
}
|
|
1066
|
-
function
|
|
1067
|
-
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
|
+
]);
|
|
1068
1096
|
const metadata = {
|
|
1069
1097
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1070
1098
|
method: "POST",
|
|
1071
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.
|
|
1099
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.CreateBooking",
|
|
1072
1100
|
packageName: PACKAGE_NAME,
|
|
1073
1101
|
migrationOptions: {
|
|
1074
1102
|
optInTransformResponse: true
|
|
1075
1103
|
},
|
|
1076
1104
|
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1077
|
-
protoPath: "/v2/bookings
|
|
1078
|
-
data:
|
|
1105
|
+
protoPath: "/v2/bookings",
|
|
1106
|
+
data: serializedData,
|
|
1079
1107
|
host
|
|
1080
1108
|
}),
|
|
1081
|
-
data:
|
|
1109
|
+
data: serializedData,
|
|
1082
1110
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1083
1111
|
{
|
|
1084
1112
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
@@ -1101,60 +1129,87 @@ function bookingsCancelBooking(payload) {
|
|
|
1101
1129
|
};
|
|
1102
1130
|
return metadata;
|
|
1103
1131
|
}
|
|
1104
|
-
return
|
|
1132
|
+
return __createBooking;
|
|
1105
1133
|
}
|
|
1106
|
-
function
|
|
1107
|
-
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
|
+
]);
|
|
1108
1159
|
const metadata = {
|
|
1109
1160
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1110
1161
|
method: "POST",
|
|
1111
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.
|
|
1162
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.BulkCreateBooking",
|
|
1112
1163
|
packageName: PACKAGE_NAME,
|
|
1113
1164
|
migrationOptions: {
|
|
1114
1165
|
optInTransformResponse: true
|
|
1115
1166
|
},
|
|
1116
1167
|
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1117
|
-
protoPath: "/v2/bookings/
|
|
1118
|
-
data:
|
|
1168
|
+
protoPath: "/v2/bulk/bookings/create",
|
|
1169
|
+
data: serializedData,
|
|
1119
1170
|
host
|
|
1120
1171
|
}),
|
|
1121
|
-
data:
|
|
1172
|
+
data: serializedData,
|
|
1122
1173
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1123
1174
|
{
|
|
1124
1175
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1125
1176
|
paths: [
|
|
1126
|
-
{ path: "
|
|
1127
|
-
{ path: "
|
|
1128
|
-
{ path: "
|
|
1129
|
-
{ path: "
|
|
1130
|
-
{ path: "
|
|
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" }
|
|
1131
1182
|
]
|
|
1132
1183
|
},
|
|
1133
1184
|
{
|
|
1134
1185
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1135
1186
|
paths: [
|
|
1136
|
-
{
|
|
1137
|
-
|
|
1187
|
+
{
|
|
1188
|
+
path: "results.item.contactDetails.fullAddress.geocode.latitude"
|
|
1189
|
+
},
|
|
1190
|
+
{
|
|
1191
|
+
path: "results.item.contactDetails.fullAddress.geocode.longitude"
|
|
1192
|
+
}
|
|
1138
1193
|
]
|
|
1139
1194
|
}
|
|
1140
1195
|
])
|
|
1141
1196
|
};
|
|
1142
1197
|
return metadata;
|
|
1143
1198
|
}
|
|
1144
|
-
return
|
|
1199
|
+
return __bulkCreateBooking;
|
|
1145
1200
|
}
|
|
1146
|
-
function
|
|
1147
|
-
function
|
|
1201
|
+
function rescheduleBooking(payload) {
|
|
1202
|
+
function __rescheduleBooking({ host }) {
|
|
1148
1203
|
const metadata = {
|
|
1149
1204
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1150
1205
|
method: "POST",
|
|
1151
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.
|
|
1206
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.RescheduleBooking",
|
|
1152
1207
|
packageName: PACKAGE_NAME,
|
|
1153
1208
|
migrationOptions: {
|
|
1154
1209
|
optInTransformResponse: true
|
|
1155
1210
|
},
|
|
1156
1211
|
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1157
|
-
protoPath: "/v2/bookings/{bookingId}/
|
|
1212
|
+
protoPath: "/v2/bookings/{bookingId}/reschedule",
|
|
1158
1213
|
data: payload,
|
|
1159
1214
|
host
|
|
1160
1215
|
}),
|
|
@@ -1181,83 +1236,60 @@ function markBookingAsPending(payload) {
|
|
|
1181
1236
|
};
|
|
1182
1237
|
return metadata;
|
|
1183
1238
|
}
|
|
1184
|
-
return
|
|
1239
|
+
return __rescheduleBooking;
|
|
1185
1240
|
}
|
|
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
|
-
]);
|
|
1241
|
+
function bookingsConfirmBooking(payload) {
|
|
1242
|
+
function __bookingsConfirmBooking({ host }) {
|
|
1207
1243
|
const metadata = {
|
|
1208
1244
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1209
1245
|
method: "POST",
|
|
1210
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1246
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.ConfirmBooking",
|
|
1211
1247
|
packageName: PACKAGE_NAME,
|
|
1212
1248
|
migrationOptions: {
|
|
1213
1249
|
optInTransformResponse: true
|
|
1214
1250
|
},
|
|
1215
|
-
url:
|
|
1216
|
-
protoPath: "/v2/
|
|
1217
|
-
data:
|
|
1251
|
+
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1252
|
+
protoPath: "/v2/bookings/{bookingId}/confirm",
|
|
1253
|
+
data: payload,
|
|
1218
1254
|
host
|
|
1219
1255
|
}),
|
|
1220
|
-
data:
|
|
1256
|
+
data: payload,
|
|
1221
1257
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1222
1258
|
{
|
|
1223
1259
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1224
1260
|
paths: [
|
|
1225
|
-
{ path: "
|
|
1226
|
-
{ path: "
|
|
1227
|
-
{ path: "
|
|
1228
|
-
{ path: "
|
|
1229
|
-
{ path: "
|
|
1261
|
+
{ path: "booking.createdDate" },
|
|
1262
|
+
{ path: "booking.startDate" },
|
|
1263
|
+
{ path: "booking.endDate" },
|
|
1264
|
+
{ path: "booking.updatedDate" },
|
|
1265
|
+
{ path: "booking.canceledDate" }
|
|
1230
1266
|
]
|
|
1231
1267
|
},
|
|
1232
1268
|
{
|
|
1233
1269
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1234
1270
|
paths: [
|
|
1235
|
-
{
|
|
1236
|
-
|
|
1237
|
-
},
|
|
1238
|
-
{
|
|
1239
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1240
|
-
}
|
|
1271
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1272
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1241
1273
|
]
|
|
1242
1274
|
}
|
|
1243
1275
|
])
|
|
1244
1276
|
};
|
|
1245
1277
|
return metadata;
|
|
1246
1278
|
}
|
|
1247
|
-
return
|
|
1279
|
+
return __bookingsConfirmBooking;
|
|
1248
1280
|
}
|
|
1249
|
-
function
|
|
1250
|
-
function
|
|
1281
|
+
function setBookingSubmissionId(payload) {
|
|
1282
|
+
function __setBookingSubmissionId({ host }) {
|
|
1251
1283
|
const metadata = {
|
|
1252
1284
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1253
1285
|
method: "POST",
|
|
1254
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1286
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.SetBookingSubmissionId",
|
|
1255
1287
|
packageName: PACKAGE_NAME,
|
|
1256
1288
|
migrationOptions: {
|
|
1257
1289
|
optInTransformResponse: true
|
|
1258
1290
|
},
|
|
1259
|
-
url:
|
|
1260
|
-
protoPath: "/v2/
|
|
1291
|
+
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1292
|
+
protoPath: "/v2/bookings/{bookingId}/set-booking-submission-id",
|
|
1261
1293
|
data: payload,
|
|
1262
1294
|
host
|
|
1263
1295
|
}),
|
|
@@ -1266,42 +1298,38 @@ function rescheduleMultiServiceBooking(payload) {
|
|
|
1266
1298
|
{
|
|
1267
1299
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1268
1300
|
paths: [
|
|
1269
|
-
{ path: "
|
|
1270
|
-
{ path: "
|
|
1271
|
-
{ path: "
|
|
1272
|
-
{ path: "
|
|
1273
|
-
{ path: "
|
|
1301
|
+
{ path: "booking.createdDate" },
|
|
1302
|
+
{ path: "booking.startDate" },
|
|
1303
|
+
{ path: "booking.endDate" },
|
|
1304
|
+
{ path: "booking.updatedDate" },
|
|
1305
|
+
{ path: "booking.canceledDate" }
|
|
1274
1306
|
]
|
|
1275
1307
|
},
|
|
1276
1308
|
{
|
|
1277
1309
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1278
1310
|
paths: [
|
|
1279
|
-
{
|
|
1280
|
-
|
|
1281
|
-
},
|
|
1282
|
-
{
|
|
1283
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1284
|
-
}
|
|
1311
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1312
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1285
1313
|
]
|
|
1286
1314
|
}
|
|
1287
1315
|
])
|
|
1288
1316
|
};
|
|
1289
1317
|
return metadata;
|
|
1290
1318
|
}
|
|
1291
|
-
return
|
|
1319
|
+
return __setBookingSubmissionId;
|
|
1292
1320
|
}
|
|
1293
|
-
function
|
|
1294
|
-
function
|
|
1321
|
+
function updateExtendedFields(payload) {
|
|
1322
|
+
function __updateExtendedFields({ host }) {
|
|
1295
1323
|
const metadata = {
|
|
1296
1324
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1297
1325
|
method: "POST",
|
|
1298
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1326
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.UpdateExtendedFields",
|
|
1299
1327
|
packageName: PACKAGE_NAME,
|
|
1300
1328
|
migrationOptions: {
|
|
1301
1329
|
optInTransformResponse: true
|
|
1302
1330
|
},
|
|
1303
|
-
url:
|
|
1304
|
-
protoPath: "/v2/
|
|
1331
|
+
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1332
|
+
protoPath: "/v2/bookings/{id}/update_extended_fields",
|
|
1305
1333
|
data: payload,
|
|
1306
1334
|
host
|
|
1307
1335
|
}),
|
|
@@ -1309,20 +1337,20 @@ function getMultiServiceBookingAvailability(payload) {
|
|
|
1309
1337
|
};
|
|
1310
1338
|
return metadata;
|
|
1311
1339
|
}
|
|
1312
|
-
return
|
|
1340
|
+
return __updateExtendedFields;
|
|
1313
1341
|
}
|
|
1314
|
-
function
|
|
1315
|
-
function
|
|
1342
|
+
function bookingsDeclineBooking(payload) {
|
|
1343
|
+
function __bookingsDeclineBooking({ host }) {
|
|
1316
1344
|
const metadata = {
|
|
1317
1345
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1318
1346
|
method: "POST",
|
|
1319
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1347
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.DeclineBooking",
|
|
1320
1348
|
packageName: PACKAGE_NAME,
|
|
1321
1349
|
migrationOptions: {
|
|
1322
1350
|
optInTransformResponse: true
|
|
1323
1351
|
},
|
|
1324
|
-
url:
|
|
1325
|
-
protoPath: "/v2/
|
|
1352
|
+
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1353
|
+
protoPath: "/v2/bookings/{bookingId}/decline",
|
|
1326
1354
|
data: payload,
|
|
1327
1355
|
host
|
|
1328
1356
|
}),
|
|
@@ -1331,42 +1359,38 @@ function cancelMultiServiceBooking(payload) {
|
|
|
1331
1359
|
{
|
|
1332
1360
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1333
1361
|
paths: [
|
|
1334
|
-
{ path: "
|
|
1335
|
-
{ path: "
|
|
1336
|
-
{ path: "
|
|
1337
|
-
{ path: "
|
|
1338
|
-
{ path: "
|
|
1362
|
+
{ path: "booking.createdDate" },
|
|
1363
|
+
{ path: "booking.startDate" },
|
|
1364
|
+
{ path: "booking.endDate" },
|
|
1365
|
+
{ path: "booking.updatedDate" },
|
|
1366
|
+
{ path: "booking.canceledDate" }
|
|
1339
1367
|
]
|
|
1340
1368
|
},
|
|
1341
1369
|
{
|
|
1342
1370
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1343
1371
|
paths: [
|
|
1344
|
-
{
|
|
1345
|
-
|
|
1346
|
-
},
|
|
1347
|
-
{
|
|
1348
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1349
|
-
}
|
|
1372
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1373
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1350
1374
|
]
|
|
1351
1375
|
}
|
|
1352
1376
|
])
|
|
1353
1377
|
};
|
|
1354
1378
|
return metadata;
|
|
1355
1379
|
}
|
|
1356
|
-
return
|
|
1380
|
+
return __bookingsDeclineBooking;
|
|
1357
1381
|
}
|
|
1358
|
-
function
|
|
1359
|
-
function
|
|
1382
|
+
function bookingsCancelBooking(payload) {
|
|
1383
|
+
function __bookingsCancelBooking({ host }) {
|
|
1360
1384
|
const metadata = {
|
|
1361
1385
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1362
1386
|
method: "POST",
|
|
1363
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1387
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.CancelBooking",
|
|
1364
1388
|
packageName: PACKAGE_NAME,
|
|
1365
1389
|
migrationOptions: {
|
|
1366
1390
|
optInTransformResponse: true
|
|
1367
1391
|
},
|
|
1368
|
-
url:
|
|
1369
|
-
protoPath: "/v2/
|
|
1392
|
+
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1393
|
+
protoPath: "/v2/bookings/{bookingId}/cancel",
|
|
1370
1394
|
data: payload,
|
|
1371
1395
|
host
|
|
1372
1396
|
}),
|
|
@@ -1375,42 +1399,38 @@ function markMultiServiceBookingAsPending(payload) {
|
|
|
1375
1399
|
{
|
|
1376
1400
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1377
1401
|
paths: [
|
|
1378
|
-
{ path: "
|
|
1379
|
-
{ path: "
|
|
1380
|
-
{ path: "
|
|
1381
|
-
{ path: "
|
|
1382
|
-
{ path: "
|
|
1402
|
+
{ path: "booking.createdDate" },
|
|
1403
|
+
{ path: "booking.startDate" },
|
|
1404
|
+
{ path: "booking.endDate" },
|
|
1405
|
+
{ path: "booking.updatedDate" },
|
|
1406
|
+
{ path: "booking.canceledDate" }
|
|
1383
1407
|
]
|
|
1384
1408
|
},
|
|
1385
1409
|
{
|
|
1386
1410
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1387
1411
|
paths: [
|
|
1388
|
-
{
|
|
1389
|
-
|
|
1390
|
-
},
|
|
1391
|
-
{
|
|
1392
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1393
|
-
}
|
|
1412
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1413
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1394
1414
|
]
|
|
1395
1415
|
}
|
|
1396
1416
|
])
|
|
1397
1417
|
};
|
|
1398
1418
|
return metadata;
|
|
1399
1419
|
}
|
|
1400
|
-
return
|
|
1420
|
+
return __bookingsCancelBooking;
|
|
1401
1421
|
}
|
|
1402
|
-
function
|
|
1403
|
-
function
|
|
1422
|
+
function bookingsUpdateNumberOfParticipants(payload) {
|
|
1423
|
+
function __bookingsUpdateNumberOfParticipants({ host }) {
|
|
1404
1424
|
const metadata = {
|
|
1405
1425
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1406
1426
|
method: "POST",
|
|
1407
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1427
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.UpdateNumberOfParticipants",
|
|
1408
1428
|
packageName: PACKAGE_NAME,
|
|
1409
1429
|
migrationOptions: {
|
|
1410
1430
|
optInTransformResponse: true
|
|
1411
1431
|
},
|
|
1412
|
-
url:
|
|
1413
|
-
protoPath: "/v2/
|
|
1432
|
+
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1433
|
+
protoPath: "/v2/bookings/{bookingId}/update_number_of_participants",
|
|
1414
1434
|
data: payload,
|
|
1415
1435
|
host
|
|
1416
1436
|
}),
|
|
@@ -1419,42 +1439,38 @@ function confirmMultiServiceBooking(payload) {
|
|
|
1419
1439
|
{
|
|
1420
1440
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1421
1441
|
paths: [
|
|
1422
|
-
{ path: "
|
|
1423
|
-
{ path: "
|
|
1424
|
-
{ path: "
|
|
1425
|
-
{ path: "
|
|
1426
|
-
{ path: "
|
|
1442
|
+
{ path: "booking.createdDate" },
|
|
1443
|
+
{ path: "booking.startDate" },
|
|
1444
|
+
{ path: "booking.endDate" },
|
|
1445
|
+
{ path: "booking.updatedDate" },
|
|
1446
|
+
{ path: "booking.canceledDate" }
|
|
1427
1447
|
]
|
|
1428
1448
|
},
|
|
1429
1449
|
{
|
|
1430
1450
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1431
1451
|
paths: [
|
|
1432
|
-
{
|
|
1433
|
-
|
|
1434
|
-
},
|
|
1435
|
-
{
|
|
1436
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1437
|
-
}
|
|
1452
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1453
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1438
1454
|
]
|
|
1439
1455
|
}
|
|
1440
1456
|
])
|
|
1441
1457
|
};
|
|
1442
1458
|
return metadata;
|
|
1443
1459
|
}
|
|
1444
|
-
return
|
|
1460
|
+
return __bookingsUpdateNumberOfParticipants;
|
|
1445
1461
|
}
|
|
1446
|
-
function
|
|
1447
|
-
function
|
|
1462
|
+
function markBookingAsPending(payload) {
|
|
1463
|
+
function __markBookingAsPending({ host }) {
|
|
1448
1464
|
const metadata = {
|
|
1449
1465
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1450
1466
|
method: "POST",
|
|
1451
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1467
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.Bookings.MarkBookingAsPending",
|
|
1452
1468
|
packageName: PACKAGE_NAME,
|
|
1453
1469
|
migrationOptions: {
|
|
1454
1470
|
optInTransformResponse: true
|
|
1455
1471
|
},
|
|
1456
|
-
url:
|
|
1457
|
-
protoPath: "/v2/
|
|
1472
|
+
url: resolveComWixpressBookingsBookingsV2BookingsUrl({
|
|
1473
|
+
protoPath: "/v2/bookings/{bookingId}/mark_booking_as_pending",
|
|
1458
1474
|
data: payload,
|
|
1459
1475
|
host
|
|
1460
1476
|
}),
|
|
@@ -1463,107 +1479,99 @@ function declineMultiServiceBooking(payload) {
|
|
|
1463
1479
|
{
|
|
1464
1480
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1465
1481
|
paths: [
|
|
1466
|
-
{ path: "
|
|
1467
|
-
{ path: "
|
|
1468
|
-
{ path: "
|
|
1469
|
-
{ path: "
|
|
1470
|
-
{ path: "
|
|
1482
|
+
{ path: "booking.createdDate" },
|
|
1483
|
+
{ path: "booking.startDate" },
|
|
1484
|
+
{ path: "booking.endDate" },
|
|
1485
|
+
{ path: "booking.updatedDate" },
|
|
1486
|
+
{ path: "booking.canceledDate" }
|
|
1471
1487
|
]
|
|
1472
1488
|
},
|
|
1473
1489
|
{
|
|
1474
1490
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1475
1491
|
paths: [
|
|
1476
|
-
{
|
|
1477
|
-
|
|
1478
|
-
},
|
|
1479
|
-
{
|
|
1480
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1481
|
-
}
|
|
1492
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1493
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1482
1494
|
]
|
|
1483
1495
|
}
|
|
1484
1496
|
])
|
|
1485
1497
|
};
|
|
1486
1498
|
return metadata;
|
|
1487
1499
|
}
|
|
1488
|
-
return
|
|
1500
|
+
return __markBookingAsPending;
|
|
1489
1501
|
}
|
|
1490
|
-
function
|
|
1491
|
-
function
|
|
1502
|
+
function getAnonymousActionDetails(payload) {
|
|
1503
|
+
function __getAnonymousActionDetails({ host }) {
|
|
1492
1504
|
const metadata = {
|
|
1493
1505
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1494
|
-
method: "
|
|
1495
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1506
|
+
method: "GET",
|
|
1507
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetAnonymousActionDetails",
|
|
1496
1508
|
packageName: PACKAGE_NAME,
|
|
1497
1509
|
migrationOptions: {
|
|
1498
1510
|
optInTransformResponse: true
|
|
1499
1511
|
},
|
|
1500
|
-
url:
|
|
1501
|
-
protoPath: "/v2/
|
|
1512
|
+
url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
|
|
1513
|
+
protoPath: "/v2/bookings/anonymous-actions-details",
|
|
1502
1514
|
data: payload,
|
|
1503
1515
|
host
|
|
1504
1516
|
}),
|
|
1505
|
-
|
|
1517
|
+
params: toURLSearchParams(payload)
|
|
1506
1518
|
};
|
|
1507
1519
|
return metadata;
|
|
1508
1520
|
}
|
|
1509
|
-
return
|
|
1521
|
+
return __getAnonymousActionDetails;
|
|
1510
1522
|
}
|
|
1511
|
-
function
|
|
1512
|
-
function
|
|
1523
|
+
function cancelBookingAnonymously(payload) {
|
|
1524
|
+
function __cancelBookingAnonymously({ host }) {
|
|
1513
1525
|
const metadata = {
|
|
1514
1526
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1515
|
-
method: "
|
|
1516
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1527
|
+
method: "POST",
|
|
1528
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.CancelBookingAnonymously",
|
|
1517
1529
|
packageName: PACKAGE_NAME,
|
|
1518
1530
|
migrationOptions: {
|
|
1519
1531
|
optInTransformResponse: true
|
|
1520
1532
|
},
|
|
1521
|
-
url:
|
|
1522
|
-
protoPath: "/v2/
|
|
1533
|
+
url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
|
|
1534
|
+
protoPath: "/v2/bookings/{token}/anonymous-cancel",
|
|
1523
1535
|
data: payload,
|
|
1524
1536
|
host
|
|
1525
1537
|
}),
|
|
1526
|
-
|
|
1538
|
+
data: payload,
|
|
1527
1539
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1528
1540
|
{
|
|
1529
1541
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1530
1542
|
paths: [
|
|
1531
|
-
{ path: "
|
|
1532
|
-
{ path: "
|
|
1533
|
-
{ path: "
|
|
1534
|
-
{ path: "
|
|
1535
|
-
{ path: "
|
|
1543
|
+
{ path: "booking.createdDate" },
|
|
1544
|
+
{ path: "booking.startDate" },
|
|
1545
|
+
{ path: "booking.endDate" },
|
|
1546
|
+
{ path: "booking.updatedDate" },
|
|
1547
|
+
{ path: "booking.canceledDate" }
|
|
1536
1548
|
]
|
|
1537
1549
|
},
|
|
1538
1550
|
{
|
|
1539
1551
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1540
1552
|
paths: [
|
|
1541
|
-
{
|
|
1542
|
-
|
|
1543
|
-
},
|
|
1544
|
-
{
|
|
1545
|
-
path: "multiServiceBooking.bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1546
|
-
}
|
|
1553
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1554
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1547
1555
|
]
|
|
1548
1556
|
}
|
|
1549
1557
|
])
|
|
1550
1558
|
};
|
|
1551
1559
|
return metadata;
|
|
1552
1560
|
}
|
|
1553
|
-
return
|
|
1561
|
+
return __cancelBookingAnonymously;
|
|
1554
1562
|
}
|
|
1555
|
-
function
|
|
1556
|
-
function
|
|
1563
|
+
function rescheduleBookingAnonymously(payload) {
|
|
1564
|
+
function __rescheduleBookingAnonymously({ host }) {
|
|
1557
1565
|
const metadata = {
|
|
1558
1566
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1559
1567
|
method: "POST",
|
|
1560
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1568
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.RescheduleBookingAnonymously",
|
|
1561
1569
|
packageName: PACKAGE_NAME,
|
|
1562
1570
|
migrationOptions: {
|
|
1563
1571
|
optInTransformResponse: true
|
|
1564
1572
|
},
|
|
1565
|
-
url:
|
|
1566
|
-
protoPath: "/v2/
|
|
1573
|
+
url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
|
|
1574
|
+
protoPath: "/v2/bookings/{token}/anonymous-reschedule",
|
|
1567
1575
|
data: payload,
|
|
1568
1576
|
host
|
|
1569
1577
|
}),
|
|
@@ -1572,73 +1580,65 @@ function addBookingsToMultiServiceBooking(payload) {
|
|
|
1572
1580
|
{
|
|
1573
1581
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1574
1582
|
paths: [
|
|
1575
|
-
{ path: "
|
|
1576
|
-
{ path: "
|
|
1577
|
-
{ path: "
|
|
1578
|
-
{ path: "
|
|
1579
|
-
{ path: "
|
|
1583
|
+
{ path: "booking.createdDate" },
|
|
1584
|
+
{ path: "booking.startDate" },
|
|
1585
|
+
{ path: "booking.endDate" },
|
|
1586
|
+
{ path: "booking.updatedDate" },
|
|
1587
|
+
{ path: "booking.canceledDate" }
|
|
1580
1588
|
]
|
|
1581
1589
|
},
|
|
1582
1590
|
{
|
|
1583
1591
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1584
1592
|
paths: [
|
|
1585
|
-
{
|
|
1586
|
-
|
|
1587
|
-
},
|
|
1588
|
-
{
|
|
1589
|
-
path: "bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1590
|
-
}
|
|
1593
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1594
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1591
1595
|
]
|
|
1592
1596
|
}
|
|
1593
1597
|
])
|
|
1594
1598
|
};
|
|
1595
1599
|
return metadata;
|
|
1596
1600
|
}
|
|
1597
|
-
return
|
|
1601
|
+
return __rescheduleBookingAnonymously;
|
|
1598
1602
|
}
|
|
1599
|
-
function
|
|
1600
|
-
function
|
|
1603
|
+
function getBookingAnonymously(payload) {
|
|
1604
|
+
function __getBookingAnonymously({ host }) {
|
|
1601
1605
|
const metadata = {
|
|
1602
1606
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1603
|
-
method: "
|
|
1604
|
-
methodFqn: "com.wixpress.bookings.bookings.v2.
|
|
1607
|
+
method: "GET",
|
|
1608
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetBookingAnonymously",
|
|
1605
1609
|
packageName: PACKAGE_NAME,
|
|
1606
1610
|
migrationOptions: {
|
|
1607
1611
|
optInTransformResponse: true
|
|
1608
1612
|
},
|
|
1609
|
-
url:
|
|
1610
|
-
protoPath: "/v2/
|
|
1613
|
+
url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
|
|
1614
|
+
protoPath: "/v2/bookings/{token}/anonymous-get",
|
|
1611
1615
|
data: payload,
|
|
1612
1616
|
host
|
|
1613
1617
|
}),
|
|
1614
|
-
|
|
1618
|
+
params: toURLSearchParams(payload),
|
|
1615
1619
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1616
1620
|
{
|
|
1617
1621
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1618
1622
|
paths: [
|
|
1619
|
-
{ path: "
|
|
1620
|
-
{ path: "
|
|
1621
|
-
{ path: "
|
|
1622
|
-
{ path: "
|
|
1623
|
-
{ path: "
|
|
1623
|
+
{ path: "booking.createdDate" },
|
|
1624
|
+
{ path: "booking.startDate" },
|
|
1625
|
+
{ path: "booking.endDate" },
|
|
1626
|
+
{ path: "booking.updatedDate" },
|
|
1627
|
+
{ path: "booking.canceledDate" }
|
|
1624
1628
|
]
|
|
1625
1629
|
},
|
|
1626
1630
|
{
|
|
1627
1631
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1628
1632
|
paths: [
|
|
1629
|
-
{
|
|
1630
|
-
|
|
1631
|
-
},
|
|
1632
|
-
{
|
|
1633
|
-
path: "bookings.booking.contactDetails.fullAddress.geocode.longitude"
|
|
1634
|
-
}
|
|
1633
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1634
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1635
1635
|
]
|
|
1636
1636
|
}
|
|
1637
1637
|
])
|
|
1638
1638
|
};
|
|
1639
1639
|
return metadata;
|
|
1640
1640
|
}
|
|
1641
|
-
return
|
|
1641
|
+
return __getBookingAnonymously;
|
|
1642
1642
|
}
|
|
1643
1643
|
|
|
1644
1644
|
// src/bookings-v2-booking-bookings.universal.ts
|
|
@@ -1714,13 +1714,6 @@ var IdentificationDataIdentityType = /* @__PURE__ */ ((IdentificationDataIdentit
|
|
|
1714
1714
|
IdentificationDataIdentityType2["APP"] = "APP";
|
|
1715
1715
|
return IdentificationDataIdentityType2;
|
|
1716
1716
|
})(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
1717
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1725
1718
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1726
1719
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -1729,6 +1722,13 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
1729
1722
|
WebhookIdentityType2["APP"] = "APP";
|
|
1730
1723
|
return WebhookIdentityType2;
|
|
1731
1724
|
})(WebhookIdentityType || {});
|
|
1725
|
+
var LocationLocationType = /* @__PURE__ */ ((LocationLocationType2) => {
|
|
1726
|
+
LocationLocationType2["UNDEFINED"] = "UNDEFINED";
|
|
1727
|
+
LocationLocationType2["OWNER_BUSINESS"] = "OWNER_BUSINESS";
|
|
1728
|
+
LocationLocationType2["OWNER_CUSTOM"] = "OWNER_CUSTOM";
|
|
1729
|
+
LocationLocationType2["CUSTOM"] = "CUSTOM";
|
|
1730
|
+
return LocationLocationType2;
|
|
1731
|
+
})(LocationLocationType || {});
|
|
1732
1732
|
var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
|
|
1733
1733
|
IdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1734
1734
|
IdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -1742,12 +1742,13 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
1742
1742
|
SortOrder2["DESC"] = "DESC";
|
|
1743
1743
|
return SortOrder2;
|
|
1744
1744
|
})(SortOrder || {});
|
|
1745
|
-
async function
|
|
1746
|
-
const { httpClient, sideEffects } = arguments[
|
|
1745
|
+
async function confirmOrDeclineBooking2(bookingId, options) {
|
|
1746
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1747
1747
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1748
|
-
bookingId
|
|
1748
|
+
bookingId,
|
|
1749
|
+
paymentStatus: options?.paymentStatus
|
|
1749
1750
|
});
|
|
1750
|
-
const reqOpts =
|
|
1751
|
+
const reqOpts = confirmOrDeclineBooking(payload);
|
|
1751
1752
|
sideEffects?.onSiteCall?.();
|
|
1752
1753
|
try {
|
|
1753
1754
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1758,22 +1759,25 @@ async function getAnonymousActionDetails2(options) {
|
|
|
1758
1759
|
err,
|
|
1759
1760
|
{
|
|
1760
1761
|
spreadPathsToArguments: {},
|
|
1761
|
-
explicitPathsToArguments: {
|
|
1762
|
+
explicitPathsToArguments: {
|
|
1763
|
+
bookingId: "$[0]",
|
|
1764
|
+
paymentStatus: "$[1].paymentStatus"
|
|
1765
|
+
},
|
|
1762
1766
|
singleArgumentUnchanged: false
|
|
1763
1767
|
},
|
|
1764
|
-
["options"]
|
|
1768
|
+
["bookingId", "options"]
|
|
1765
1769
|
);
|
|
1766
1770
|
sideEffects?.onError?.(err);
|
|
1767
1771
|
throw transformedError;
|
|
1768
1772
|
}
|
|
1769
1773
|
}
|
|
1770
|
-
async function
|
|
1774
|
+
async function bulkConfirmOrDeclineBooking2(details, options) {
|
|
1771
1775
|
const { httpClient, sideEffects } = arguments[2];
|
|
1772
1776
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1773
|
-
|
|
1774
|
-
|
|
1777
|
+
details,
|
|
1778
|
+
returnEntity: options?.returnEntity
|
|
1775
1779
|
});
|
|
1776
|
-
const reqOpts =
|
|
1780
|
+
const reqOpts = bulkConfirmOrDeclineBooking(payload);
|
|
1777
1781
|
sideEffects?.onSiteCall?.();
|
|
1778
1782
|
try {
|
|
1779
1783
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1784,23 +1788,29 @@ async function cancelBookingAnonymously2(token, options) {
|
|
|
1784
1788
|
err,
|
|
1785
1789
|
{
|
|
1786
1790
|
spreadPathsToArguments: {},
|
|
1787
|
-
explicitPathsToArguments: {
|
|
1791
|
+
explicitPathsToArguments: {
|
|
1792
|
+
details: "$[0]",
|
|
1793
|
+
returnEntity: "$[1].returnEntity"
|
|
1794
|
+
},
|
|
1788
1795
|
singleArgumentUnchanged: false
|
|
1789
1796
|
},
|
|
1790
|
-
["
|
|
1797
|
+
["details", "options"]
|
|
1791
1798
|
);
|
|
1792
1799
|
sideEffects?.onError?.(err);
|
|
1793
1800
|
throw transformedError;
|
|
1794
1801
|
}
|
|
1795
1802
|
}
|
|
1796
|
-
async function
|
|
1797
|
-
const { httpClient, sideEffects } = arguments[
|
|
1803
|
+
async function createMultiServiceBooking2(bookings, options) {
|
|
1804
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1798
1805
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1806
|
+
bookings,
|
|
1807
|
+
participantNotification: options?.participantNotification,
|
|
1808
|
+
sendSmsReminder: options?.sendSmsReminder,
|
|
1809
|
+
flowControlSettings: options?.flowControlSettings,
|
|
1810
|
+
returnFullEntity: options?.returnFullEntity,
|
|
1811
|
+
multiServiceBookingType: options?.multiServiceBookingType
|
|
1802
1812
|
});
|
|
1803
|
-
const reqOpts =
|
|
1813
|
+
const reqOpts = createMultiServiceBooking(payload);
|
|
1804
1814
|
sideEffects?.onSiteCall?.();
|
|
1805
1815
|
try {
|
|
1806
1816
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1812,22 +1822,62 @@ async function rescheduleBookingAnonymously2(token, slot, options) {
|
|
|
1812
1822
|
{
|
|
1813
1823
|
spreadPathsToArguments: {},
|
|
1814
1824
|
explicitPathsToArguments: {
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1825
|
+
bookings: "$[0]",
|
|
1826
|
+
participantNotification: "$[1].participantNotification",
|
|
1827
|
+
sendSmsReminder: "$[1].sendSmsReminder",
|
|
1828
|
+
flowControlSettings: "$[1].flowControlSettings",
|
|
1829
|
+
returnFullEntity: "$[1].returnFullEntity",
|
|
1830
|
+
multiServiceBookingType: "$[1].multiServiceBookingType"
|
|
1831
|
+
},
|
|
1832
|
+
singleArgumentUnchanged: false
|
|
1833
|
+
},
|
|
1834
|
+
["bookings", "options"]
|
|
1835
|
+
);
|
|
1836
|
+
sideEffects?.onError?.(err);
|
|
1837
|
+
throw transformedError;
|
|
1838
|
+
}
|
|
1839
|
+
}
|
|
1840
|
+
async function rescheduleMultiServiceBooking2(multiServiceBookingId, rescheduleBookingsInfo, options) {
|
|
1841
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
1842
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1843
|
+
multiServiceBookingId,
|
|
1844
|
+
rescheduleBookingsInfo,
|
|
1845
|
+
participantNotification: options?.participantNotification,
|
|
1846
|
+
flowControlSettings: options?.flowControlSettings,
|
|
1847
|
+
returnFullEntity: options?.returnFullEntity
|
|
1848
|
+
});
|
|
1849
|
+
const reqOpts = rescheduleMultiServiceBooking(payload);
|
|
1850
|
+
sideEffects?.onSiteCall?.();
|
|
1851
|
+
try {
|
|
1852
|
+
const result = await httpClient.request(reqOpts);
|
|
1853
|
+
sideEffects?.onSuccess?.(result);
|
|
1854
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1855
|
+
} catch (err) {
|
|
1856
|
+
const transformedError = sdkTransformError(
|
|
1857
|
+
err,
|
|
1858
|
+
{
|
|
1859
|
+
spreadPathsToArguments: {},
|
|
1860
|
+
explicitPathsToArguments: {
|
|
1861
|
+
multiServiceBookingId: "$[0]",
|
|
1862
|
+
rescheduleBookingsInfo: "$[1]",
|
|
1863
|
+
participantNotification: "$[2].participantNotification",
|
|
1864
|
+
flowControlSettings: "$[2].flowControlSettings",
|
|
1865
|
+
returnFullEntity: "$[2].returnFullEntity"
|
|
1818
1866
|
},
|
|
1819
1867
|
singleArgumentUnchanged: false
|
|
1820
1868
|
},
|
|
1821
|
-
["
|
|
1869
|
+
["multiServiceBookingId", "rescheduleBookingsInfo", "options"]
|
|
1822
1870
|
);
|
|
1823
1871
|
sideEffects?.onError?.(err);
|
|
1824
1872
|
throw transformedError;
|
|
1825
1873
|
}
|
|
1826
1874
|
}
|
|
1827
|
-
async function
|
|
1875
|
+
async function getMultiServiceBookingAvailability2(multiServiceBookingId) {
|
|
1828
1876
|
const { httpClient, sideEffects } = arguments[1];
|
|
1829
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1830
|
-
|
|
1877
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1878
|
+
multiServiceBookingId
|
|
1879
|
+
});
|
|
1880
|
+
const reqOpts = getMultiServiceBookingAvailability(payload);
|
|
1831
1881
|
sideEffects?.onSiteCall?.();
|
|
1832
1882
|
try {
|
|
1833
1883
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1838,22 +1888,24 @@ async function getBookingAnonymously2(token) {
|
|
|
1838
1888
|
err,
|
|
1839
1889
|
{
|
|
1840
1890
|
spreadPathsToArguments: {},
|
|
1841
|
-
explicitPathsToArguments: {
|
|
1891
|
+
explicitPathsToArguments: { multiServiceBookingId: "$[0]" },
|
|
1842
1892
|
singleArgumentUnchanged: false
|
|
1843
1893
|
},
|
|
1844
|
-
["
|
|
1894
|
+
["multiServiceBookingId"]
|
|
1845
1895
|
);
|
|
1846
1896
|
sideEffects?.onError?.(err);
|
|
1847
1897
|
throw transformedError;
|
|
1848
1898
|
}
|
|
1849
1899
|
}
|
|
1850
|
-
async function
|
|
1900
|
+
async function cancelMultiServiceBooking2(multiServiceBookingId, options) {
|
|
1851
1901
|
const { httpClient, sideEffects } = arguments[2];
|
|
1852
1902
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1853
|
-
|
|
1854
|
-
|
|
1903
|
+
multiServiceBookingId,
|
|
1904
|
+
participantNotification: options?.participantNotification,
|
|
1905
|
+
flowControlSettings: options?.flowControlSettings,
|
|
1906
|
+
returnFullEntity: options?.returnFullEntity
|
|
1855
1907
|
});
|
|
1856
|
-
const reqOpts =
|
|
1908
|
+
const reqOpts = cancelMultiServiceBooking(payload);
|
|
1857
1909
|
sideEffects?.onSiteCall?.();
|
|
1858
1910
|
try {
|
|
1859
1911
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1865,24 +1917,31 @@ async function confirmOrDeclineBooking2(bookingId, options) {
|
|
|
1865
1917
|
{
|
|
1866
1918
|
spreadPathsToArguments: {},
|
|
1867
1919
|
explicitPathsToArguments: {
|
|
1868
|
-
|
|
1869
|
-
|
|
1920
|
+
multiServiceBookingId: "$[0]",
|
|
1921
|
+
participantNotification: "$[1].participantNotification",
|
|
1922
|
+
flowControlSettings: "$[1].flowControlSettings",
|
|
1923
|
+
returnFullEntity: "$[1].returnFullEntity"
|
|
1870
1924
|
},
|
|
1871
1925
|
singleArgumentUnchanged: false
|
|
1872
1926
|
},
|
|
1873
|
-
["
|
|
1927
|
+
["multiServiceBookingId", "options"]
|
|
1874
1928
|
);
|
|
1875
1929
|
sideEffects?.onError?.(err);
|
|
1876
1930
|
throw transformedError;
|
|
1877
1931
|
}
|
|
1878
1932
|
}
|
|
1879
|
-
async function
|
|
1933
|
+
async function markMultiServiceBookingAsPending2(multiServiceBookingId, options) {
|
|
1880
1934
|
const { httpClient, sideEffects } = arguments[2];
|
|
1881
1935
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1882
|
-
|
|
1883
|
-
|
|
1936
|
+
multiServiceBookingId,
|
|
1937
|
+
markAsPendingBookingsInfo: options?.markAsPendingBookingsInfo,
|
|
1938
|
+
participantNotification: options?.participantNotification,
|
|
1939
|
+
sendSmsReminder: options?.sendSmsReminder,
|
|
1940
|
+
doubleBooked: options?.doubleBooked,
|
|
1941
|
+
returnFullEntity: options?.returnFullEntity,
|
|
1942
|
+
flowControlSettings: options?.flowControlSettings
|
|
1884
1943
|
});
|
|
1885
|
-
const reqOpts =
|
|
1944
|
+
const reqOpts = markMultiServiceBookingAsPending(payload);
|
|
1886
1945
|
sideEffects?.onSiteCall?.();
|
|
1887
1946
|
try {
|
|
1888
1947
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1894,26 +1953,34 @@ async function bulkConfirmOrDeclineBooking2(details, options) {
|
|
|
1894
1953
|
{
|
|
1895
1954
|
spreadPathsToArguments: {},
|
|
1896
1955
|
explicitPathsToArguments: {
|
|
1897
|
-
|
|
1898
|
-
|
|
1956
|
+
multiServiceBookingId: "$[0]",
|
|
1957
|
+
markAsPendingBookingsInfo: "$[1].markAsPendingBookingsInfo",
|
|
1958
|
+
participantNotification: "$[1].participantNotification",
|
|
1959
|
+
sendSmsReminder: "$[1].sendSmsReminder",
|
|
1960
|
+
doubleBooked: "$[1].doubleBooked",
|
|
1961
|
+
returnFullEntity: "$[1].returnFullEntity",
|
|
1962
|
+
flowControlSettings: "$[1].flowControlSettings"
|
|
1899
1963
|
},
|
|
1900
1964
|
singleArgumentUnchanged: false
|
|
1901
1965
|
},
|
|
1902
|
-
["
|
|
1966
|
+
["multiServiceBookingId", "options"]
|
|
1903
1967
|
);
|
|
1904
1968
|
sideEffects?.onError?.(err);
|
|
1905
1969
|
throw transformedError;
|
|
1906
1970
|
}
|
|
1907
1971
|
}
|
|
1908
|
-
async function
|
|
1972
|
+
async function confirmMultiServiceBooking2(multiServiceBookingId, options) {
|
|
1909
1973
|
const { httpClient, sideEffects } = arguments[2];
|
|
1910
1974
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1911
|
-
|
|
1975
|
+
multiServiceBookingId,
|
|
1976
|
+
confirmBookingsInfo: options?.confirmBookingsInfo,
|
|
1912
1977
|
participantNotification: options?.participantNotification,
|
|
1913
1978
|
sendSmsReminder: options?.sendSmsReminder,
|
|
1979
|
+
doubleBooked: options?.doubleBooked,
|
|
1980
|
+
returnFullEntity: options?.returnFullEntity,
|
|
1914
1981
|
flowControlSettings: options?.flowControlSettings
|
|
1915
1982
|
});
|
|
1916
|
-
const reqOpts =
|
|
1983
|
+
const reqOpts = confirmMultiServiceBooking(payload);
|
|
1917
1984
|
sideEffects?.onSiteCall?.();
|
|
1918
1985
|
try {
|
|
1919
1986
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1925,26 +1992,33 @@ async function createBooking2(booking, options) {
|
|
|
1925
1992
|
{
|
|
1926
1993
|
spreadPathsToArguments: {},
|
|
1927
1994
|
explicitPathsToArguments: {
|
|
1928
|
-
|
|
1995
|
+
multiServiceBookingId: "$[0]",
|
|
1996
|
+
confirmBookingsInfo: "$[1].confirmBookingsInfo",
|
|
1929
1997
|
participantNotification: "$[1].participantNotification",
|
|
1930
1998
|
sendSmsReminder: "$[1].sendSmsReminder",
|
|
1999
|
+
doubleBooked: "$[1].doubleBooked",
|
|
2000
|
+
returnFullEntity: "$[1].returnFullEntity",
|
|
1931
2001
|
flowControlSettings: "$[1].flowControlSettings"
|
|
1932
2002
|
},
|
|
1933
2003
|
singleArgumentUnchanged: false
|
|
1934
2004
|
},
|
|
1935
|
-
["
|
|
2005
|
+
["multiServiceBookingId", "options"]
|
|
1936
2006
|
);
|
|
1937
2007
|
sideEffects?.onError?.(err);
|
|
1938
2008
|
throw transformedError;
|
|
1939
2009
|
}
|
|
1940
2010
|
}
|
|
1941
|
-
async function
|
|
2011
|
+
async function declineMultiServiceBooking2(multiServiceBookingId, options) {
|
|
1942
2012
|
const { httpClient, sideEffects } = arguments[2];
|
|
1943
2013
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1944
|
-
|
|
1945
|
-
|
|
2014
|
+
multiServiceBookingId,
|
|
2015
|
+
declineBookingsInfo: options?.declineBookingsInfo,
|
|
2016
|
+
participantNotification: options?.participantNotification,
|
|
2017
|
+
doubleBooked: options?.doubleBooked,
|
|
2018
|
+
returnFullEntity: options?.returnFullEntity,
|
|
2019
|
+
flowControlSettings: options?.flowControlSettings
|
|
1946
2020
|
});
|
|
1947
|
-
const reqOpts =
|
|
2021
|
+
const reqOpts = declineMultiServiceBooking(payload);
|
|
1948
2022
|
sideEffects?.onSiteCall?.();
|
|
1949
2023
|
try {
|
|
1950
2024
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1956,30 +2030,29 @@ async function bulkCreateBooking2(createBookingsInfo, options) {
|
|
|
1956
2030
|
{
|
|
1957
2031
|
spreadPathsToArguments: {},
|
|
1958
2032
|
explicitPathsToArguments: {
|
|
1959
|
-
|
|
1960
|
-
|
|
2033
|
+
multiServiceBookingId: "$[0]",
|
|
2034
|
+
declineBookingsInfo: "$[1].declineBookingsInfo",
|
|
2035
|
+
participantNotification: "$[1].participantNotification",
|
|
2036
|
+
doubleBooked: "$[1].doubleBooked",
|
|
2037
|
+
returnFullEntity: "$[1].returnFullEntity",
|
|
2038
|
+
flowControlSettings: "$[1].flowControlSettings"
|
|
1961
2039
|
},
|
|
1962
2040
|
singleArgumentUnchanged: false
|
|
1963
2041
|
},
|
|
1964
|
-
["
|
|
2042
|
+
["multiServiceBookingId", "options"]
|
|
1965
2043
|
);
|
|
1966
2044
|
sideEffects?.onError?.(err);
|
|
1967
2045
|
throw transformedError;
|
|
1968
2046
|
}
|
|
1969
2047
|
}
|
|
1970
|
-
async function
|
|
1971
|
-
const { httpClient, sideEffects } = arguments[
|
|
2048
|
+
async function bulkGetMultiServiceBookingAllowedActions2(multiServiceBookingIds) {
|
|
2049
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1972
2050
|
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
|
|
2051
|
+
multiServiceBookingIds
|
|
1981
2052
|
});
|
|
1982
|
-
const reqOpts =
|
|
2053
|
+
const reqOpts = bulkGetMultiServiceBookingAllowedActions(
|
|
2054
|
+
payload
|
|
2055
|
+
);
|
|
1983
2056
|
sideEffects?.onSiteCall?.();
|
|
1984
2057
|
try {
|
|
1985
2058
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1990,70 +2063,48 @@ async function rescheduleBooking2(bookingId, slot, options) {
|
|
|
1990
2063
|
err,
|
|
1991
2064
|
{
|
|
1992
2065
|
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
|
-
},
|
|
2066
|
+
explicitPathsToArguments: { multiServiceBookingIds: "$[0]" },
|
|
2003
2067
|
singleArgumentUnchanged: false
|
|
2004
2068
|
},
|
|
2005
|
-
["
|
|
2069
|
+
["multiServiceBookingIds"]
|
|
2006
2070
|
);
|
|
2007
2071
|
sideEffects?.onError?.(err);
|
|
2008
2072
|
throw transformedError;
|
|
2009
2073
|
}
|
|
2010
2074
|
}
|
|
2011
|
-
async function
|
|
2012
|
-
const { httpClient, sideEffects } = arguments[
|
|
2075
|
+
async function getMultiServiceBooking2(multiServiceBookingId) {
|
|
2076
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2013
2077
|
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
|
|
2078
|
+
multiServiceBookingId
|
|
2021
2079
|
});
|
|
2022
|
-
const reqOpts =
|
|
2080
|
+
const reqOpts = getMultiServiceBooking(payload);
|
|
2023
2081
|
sideEffects?.onSiteCall?.();
|
|
2024
2082
|
try {
|
|
2025
2083
|
const result = await httpClient.request(reqOpts);
|
|
2026
2084
|
sideEffects?.onSuccess?.(result);
|
|
2027
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2085
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data)?.multiServiceBooking;
|
|
2028
2086
|
} catch (err) {
|
|
2029
2087
|
const transformedError = sdkTransformError(
|
|
2030
2088
|
err,
|
|
2031
2089
|
{
|
|
2032
2090
|
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
|
-
},
|
|
2091
|
+
explicitPathsToArguments: { multiServiceBookingId: "$[0]" },
|
|
2042
2092
|
singleArgumentUnchanged: false
|
|
2043
2093
|
},
|
|
2044
|
-
["
|
|
2094
|
+
["multiServiceBookingId"]
|
|
2045
2095
|
);
|
|
2046
2096
|
sideEffects?.onError?.(err);
|
|
2047
2097
|
throw transformedError;
|
|
2048
2098
|
}
|
|
2049
2099
|
}
|
|
2050
|
-
async function
|
|
2100
|
+
async function addBookingsToMultiServiceBooking2(multiServiceBookingId, options) {
|
|
2051
2101
|
const { httpClient, sideEffects } = arguments[2];
|
|
2052
2102
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2053
|
-
|
|
2054
|
-
|
|
2103
|
+
multiServiceBookingId,
|
|
2104
|
+
bookings: options?.bookings,
|
|
2105
|
+
returnFullEntity: options?.returnFullEntity
|
|
2055
2106
|
});
|
|
2056
|
-
const reqOpts =
|
|
2107
|
+
const reqOpts = addBookingsToMultiServiceBooking(payload);
|
|
2057
2108
|
sideEffects?.onSiteCall?.();
|
|
2058
2109
|
try {
|
|
2059
2110
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2064,23 +2115,29 @@ async function setBookingSubmissionId2(bookingId, submissionId) {
|
|
|
2064
2115
|
err,
|
|
2065
2116
|
{
|
|
2066
2117
|
spreadPathsToArguments: {},
|
|
2067
|
-
explicitPathsToArguments: {
|
|
2118
|
+
explicitPathsToArguments: {
|
|
2119
|
+
multiServiceBookingId: "$[0]",
|
|
2120
|
+
bookings: "$[1].bookings",
|
|
2121
|
+
returnFullEntity: "$[1].returnFullEntity"
|
|
2122
|
+
},
|
|
2068
2123
|
singleArgumentUnchanged: false
|
|
2069
2124
|
},
|
|
2070
|
-
["
|
|
2125
|
+
["multiServiceBookingId", "options"]
|
|
2071
2126
|
);
|
|
2072
2127
|
sideEffects?.onError?.(err);
|
|
2073
2128
|
throw transformedError;
|
|
2074
2129
|
}
|
|
2075
2130
|
}
|
|
2076
|
-
async function
|
|
2077
|
-
const { httpClient, sideEffects } = arguments[
|
|
2131
|
+
async function removeBookingsFromMultiServiceBooking2(multiServiceBookingId, options) {
|
|
2132
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2078
2133
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2134
|
+
multiServiceBookingId,
|
|
2135
|
+
bookings: options?.bookings,
|
|
2136
|
+
returnFullEntity: options?.returnFullEntity
|
|
2082
2137
|
});
|
|
2083
|
-
const reqOpts =
|
|
2138
|
+
const reqOpts = removeBookingsFromMultiServiceBooking(
|
|
2139
|
+
payload
|
|
2140
|
+
);
|
|
2084
2141
|
sideEffects?.onSiteCall?.();
|
|
2085
2142
|
try {
|
|
2086
2143
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2092,29 +2149,27 @@ async function updateExtendedFields2(_id, namespace, options) {
|
|
|
2092
2149
|
{
|
|
2093
2150
|
spreadPathsToArguments: {},
|
|
2094
2151
|
explicitPathsToArguments: {
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2152
|
+
multiServiceBookingId: "$[0]",
|
|
2153
|
+
bookings: "$[1].bookings",
|
|
2154
|
+
returnFullEntity: "$[1].returnFullEntity"
|
|
2098
2155
|
},
|
|
2099
2156
|
singleArgumentUnchanged: false
|
|
2100
2157
|
},
|
|
2101
|
-
["
|
|
2158
|
+
["multiServiceBookingId", "options"]
|
|
2102
2159
|
);
|
|
2103
2160
|
sideEffects?.onError?.(err);
|
|
2104
2161
|
throw transformedError;
|
|
2105
2162
|
}
|
|
2106
2163
|
}
|
|
2107
|
-
async function
|
|
2108
|
-
const { httpClient, sideEffects } = arguments[
|
|
2164
|
+
async function createBooking2(booking, options) {
|
|
2165
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2109
2166
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2110
|
-
|
|
2111
|
-
revision,
|
|
2167
|
+
booking,
|
|
2112
2168
|
participantNotification: options?.participantNotification,
|
|
2113
|
-
|
|
2114
|
-
doubleBooked: options?.doubleBooked,
|
|
2169
|
+
sendSmsReminder: options?.sendSmsReminder,
|
|
2115
2170
|
flowControlSettings: options?.flowControlSettings
|
|
2116
2171
|
});
|
|
2117
|
-
const reqOpts =
|
|
2172
|
+
const reqOpts = createBooking(payload);
|
|
2118
2173
|
sideEffects?.onSiteCall?.();
|
|
2119
2174
|
try {
|
|
2120
2175
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2126,30 +2181,26 @@ async function declineBooking(bookingId, revision, options) {
|
|
|
2126
2181
|
{
|
|
2127
2182
|
spreadPathsToArguments: {},
|
|
2128
2183
|
explicitPathsToArguments: {
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
doubleBooked: "$[2].doubleBooked",
|
|
2134
|
-
flowControlSettings: "$[2].flowControlSettings"
|
|
2184
|
+
booking: "$[0]",
|
|
2185
|
+
participantNotification: "$[1].participantNotification",
|
|
2186
|
+
sendSmsReminder: "$[1].sendSmsReminder",
|
|
2187
|
+
flowControlSettings: "$[1].flowControlSettings"
|
|
2135
2188
|
},
|
|
2136
2189
|
singleArgumentUnchanged: false
|
|
2137
2190
|
},
|
|
2138
|
-
["
|
|
2191
|
+
["booking", "options"]
|
|
2139
2192
|
);
|
|
2140
2193
|
sideEffects?.onError?.(err);
|
|
2141
2194
|
throw transformedError;
|
|
2142
2195
|
}
|
|
2143
2196
|
}
|
|
2144
|
-
async function
|
|
2197
|
+
async function bulkCreateBooking2(createBookingsInfo, options) {
|
|
2145
2198
|
const { httpClient, sideEffects } = arguments[2];
|
|
2146
2199
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
flowControlSettings: options?.flowControlSettings,
|
|
2150
|
-
revision: options?.revision
|
|
2200
|
+
createBookingsInfo,
|
|
2201
|
+
returnFullEntity: options?.returnFullEntity
|
|
2151
2202
|
});
|
|
2152
|
-
const reqOpts =
|
|
2203
|
+
const reqOpts = bulkCreateBooking(payload);
|
|
2153
2204
|
sideEffects?.onSiteCall?.();
|
|
2154
2205
|
try {
|
|
2155
2206
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2161,28 +2212,30 @@ async function cancelBooking(bookingId, options) {
|
|
|
2161
2212
|
{
|
|
2162
2213
|
spreadPathsToArguments: {},
|
|
2163
2214
|
explicitPathsToArguments: {
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
flowControlSettings: "$[1].flowControlSettings",
|
|
2167
|
-
revision: "$[1].revision"
|
|
2215
|
+
createBookingsInfo: "$[0]",
|
|
2216
|
+
returnFullEntity: "$[1].returnFullEntity"
|
|
2168
2217
|
},
|
|
2169
2218
|
singleArgumentUnchanged: false
|
|
2170
2219
|
},
|
|
2171
|
-
["
|
|
2220
|
+
["createBookingsInfo", "options"]
|
|
2172
2221
|
);
|
|
2173
2222
|
sideEffects?.onError?.(err);
|
|
2174
2223
|
throw transformedError;
|
|
2175
2224
|
}
|
|
2176
2225
|
}
|
|
2177
|
-
async function
|
|
2178
|
-
const { httpClient, sideEffects } = arguments[
|
|
2226
|
+
async function rescheduleBooking2(bookingId, slot, options) {
|
|
2227
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
2179
2228
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2180
2229
|
bookingId,
|
|
2230
|
+
slot,
|
|
2181
2231
|
revision: options?.revision,
|
|
2232
|
+
participantNotification: options?.participantNotification,
|
|
2233
|
+
flowControlSettings: options?.flowControlSettings,
|
|
2182
2234
|
totalParticipants: options?.totalParticipants,
|
|
2183
|
-
participantsChoices: options?.participantsChoices
|
|
2235
|
+
participantsChoices: options?.participantsChoices,
|
|
2236
|
+
bookedAddOns: options?.bookedAddOns
|
|
2184
2237
|
});
|
|
2185
|
-
const reqOpts =
|
|
2238
|
+
const reqOpts = rescheduleBooking(payload);
|
|
2186
2239
|
sideEffects?.onSiteCall?.();
|
|
2187
2240
|
try {
|
|
2188
2241
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2195,19 +2248,23 @@ async function updateNumberOfParticipants(bookingId, options) {
|
|
|
2195
2248
|
spreadPathsToArguments: {},
|
|
2196
2249
|
explicitPathsToArguments: {
|
|
2197
2250
|
bookingId: "$[0]",
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2251
|
+
slot: "$[1]",
|
|
2252
|
+
revision: "$[2].revision",
|
|
2253
|
+
participantNotification: "$[2].participantNotification",
|
|
2254
|
+
flowControlSettings: "$[2].flowControlSettings",
|
|
2255
|
+
totalParticipants: "$[2].totalParticipants",
|
|
2256
|
+
participantsChoices: "$[2].participantsChoices",
|
|
2257
|
+
bookedAddOns: "$[2].bookedAddOns"
|
|
2201
2258
|
},
|
|
2202
2259
|
singleArgumentUnchanged: false
|
|
2203
2260
|
},
|
|
2204
|
-
["bookingId", "options"]
|
|
2261
|
+
["bookingId", "slot", "options"]
|
|
2205
2262
|
);
|
|
2206
2263
|
sideEffects?.onError?.(err);
|
|
2207
2264
|
throw transformedError;
|
|
2208
2265
|
}
|
|
2209
2266
|
}
|
|
2210
|
-
async function
|
|
2267
|
+
async function confirmBooking(bookingId, revision, options) {
|
|
2211
2268
|
const { httpClient, sideEffects } = arguments[3];
|
|
2212
2269
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2213
2270
|
bookingId,
|
|
@@ -2218,7 +2275,7 @@ async function markBookingAsPending2(bookingId, revision, options) {
|
|
|
2218
2275
|
doubleBooked: options?.doubleBooked,
|
|
2219
2276
|
flowControlSettings: options?.flowControlSettings
|
|
2220
2277
|
});
|
|
2221
|
-
const reqOpts =
|
|
2278
|
+
const reqOpts = bookingsConfirmBooking(payload);
|
|
2222
2279
|
sideEffects?.onSiteCall?.();
|
|
2223
2280
|
try {
|
|
2224
2281
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2246,17 +2303,13 @@ async function markBookingAsPending2(bookingId, revision, options) {
|
|
|
2246
2303
|
throw transformedError;
|
|
2247
2304
|
}
|
|
2248
2305
|
}
|
|
2249
|
-
async function
|
|
2306
|
+
async function setBookingSubmissionId2(bookingId, submissionId) {
|
|
2250
2307
|
const { httpClient, sideEffects } = arguments[2];
|
|
2251
2308
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
sendSmsReminder: options?.sendSmsReminder,
|
|
2255
|
-
flowControlSettings: options?.flowControlSettings,
|
|
2256
|
-
returnFullEntity: options?.returnFullEntity,
|
|
2257
|
-
multiServiceBookingType: options?.multiServiceBookingType
|
|
2309
|
+
bookingId,
|
|
2310
|
+
submissionId
|
|
2258
2311
|
});
|
|
2259
|
-
const reqOpts =
|
|
2312
|
+
const reqOpts = setBookingSubmissionId(payload);
|
|
2260
2313
|
sideEffects?.onSiteCall?.();
|
|
2261
2314
|
try {
|
|
2262
2315
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2267,32 +2320,23 @@ async function createMultiServiceBooking2(bookings, options) {
|
|
|
2267
2320
|
err,
|
|
2268
2321
|
{
|
|
2269
2322
|
spreadPathsToArguments: {},
|
|
2270
|
-
explicitPathsToArguments: {
|
|
2271
|
-
bookings: "$[0]",
|
|
2272
|
-
participantNotification: "$[1].participantNotification",
|
|
2273
|
-
sendSmsReminder: "$[1].sendSmsReminder",
|
|
2274
|
-
flowControlSettings: "$[1].flowControlSettings",
|
|
2275
|
-
returnFullEntity: "$[1].returnFullEntity",
|
|
2276
|
-
multiServiceBookingType: "$[1].multiServiceBookingType"
|
|
2277
|
-
},
|
|
2323
|
+
explicitPathsToArguments: { bookingId: "$[0]", submissionId: "$[1]" },
|
|
2278
2324
|
singleArgumentUnchanged: false
|
|
2279
2325
|
},
|
|
2280
|
-
["
|
|
2326
|
+
["bookingId", "submissionId"]
|
|
2281
2327
|
);
|
|
2282
2328
|
sideEffects?.onError?.(err);
|
|
2283
2329
|
throw transformedError;
|
|
2284
2330
|
}
|
|
2285
2331
|
}
|
|
2286
|
-
async function
|
|
2332
|
+
async function updateExtendedFields2(_id, namespace, options) {
|
|
2287
2333
|
const { httpClient, sideEffects } = arguments[3];
|
|
2288
2334
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
flowControlSettings: options?.flowControlSettings,
|
|
2293
|
-
returnFullEntity: options?.returnFullEntity
|
|
2335
|
+
id: _id,
|
|
2336
|
+
namespace,
|
|
2337
|
+
namespaceData: options?.namespaceData
|
|
2294
2338
|
});
|
|
2295
|
-
const reqOpts =
|
|
2339
|
+
const reqOpts = updateExtendedFields(payload);
|
|
2296
2340
|
sideEffects?.onSiteCall?.();
|
|
2297
2341
|
try {
|
|
2298
2342
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2304,54 +2348,29 @@ async function rescheduleMultiServiceBooking2(multiServiceBookingId, rescheduleB
|
|
|
2304
2348
|
{
|
|
2305
2349
|
spreadPathsToArguments: {},
|
|
2306
2350
|
explicitPathsToArguments: {
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
flowControlSettings: "$[2].flowControlSettings",
|
|
2311
|
-
returnFullEntity: "$[2].returnFullEntity"
|
|
2351
|
+
id: "$[0]",
|
|
2352
|
+
namespace: "$[1]",
|
|
2353
|
+
namespaceData: "$[2].namespaceData"
|
|
2312
2354
|
},
|
|
2313
2355
|
singleArgumentUnchanged: false
|
|
2314
2356
|
},
|
|
2315
|
-
["
|
|
2316
|
-
);
|
|
2317
|
-
sideEffects?.onError?.(err);
|
|
2318
|
-
throw transformedError;
|
|
2319
|
-
}
|
|
2320
|
-
}
|
|
2321
|
-
async function getMultiServiceBookingAvailability2(multiServiceBookingId) {
|
|
2322
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
2323
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2324
|
-
multiServiceBookingId
|
|
2325
|
-
});
|
|
2326
|
-
const reqOpts = getMultiServiceBookingAvailability(payload);
|
|
2327
|
-
sideEffects?.onSiteCall?.();
|
|
2328
|
-
try {
|
|
2329
|
-
const result = await httpClient.request(reqOpts);
|
|
2330
|
-
sideEffects?.onSuccess?.(result);
|
|
2331
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2332
|
-
} catch (err) {
|
|
2333
|
-
const transformedError = sdkTransformError(
|
|
2334
|
-
err,
|
|
2335
|
-
{
|
|
2336
|
-
spreadPathsToArguments: {},
|
|
2337
|
-
explicitPathsToArguments: { multiServiceBookingId: "$[0]" },
|
|
2338
|
-
singleArgumentUnchanged: false
|
|
2339
|
-
},
|
|
2340
|
-
["multiServiceBookingId"]
|
|
2357
|
+
["_id", "namespace", "options"]
|
|
2341
2358
|
);
|
|
2342
2359
|
sideEffects?.onError?.(err);
|
|
2343
2360
|
throw transformedError;
|
|
2344
2361
|
}
|
|
2345
2362
|
}
|
|
2346
|
-
async function
|
|
2347
|
-
const { httpClient, sideEffects } = arguments[
|
|
2363
|
+
async function declineBooking(bookingId, revision, options) {
|
|
2364
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
2348
2365
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2349
|
-
|
|
2366
|
+
bookingId,
|
|
2367
|
+
revision,
|
|
2350
2368
|
participantNotification: options?.participantNotification,
|
|
2351
|
-
|
|
2352
|
-
|
|
2369
|
+
paymentStatus: options?.paymentStatus,
|
|
2370
|
+
doubleBooked: options?.doubleBooked,
|
|
2371
|
+
flowControlSettings: options?.flowControlSettings
|
|
2353
2372
|
});
|
|
2354
|
-
const reqOpts =
|
|
2373
|
+
const reqOpts = bookingsDeclineBooking(payload);
|
|
2355
2374
|
sideEffects?.onSiteCall?.();
|
|
2356
2375
|
try {
|
|
2357
2376
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2363,31 +2382,30 @@ async function cancelMultiServiceBooking2(multiServiceBookingId, options) {
|
|
|
2363
2382
|
{
|
|
2364
2383
|
spreadPathsToArguments: {},
|
|
2365
2384
|
explicitPathsToArguments: {
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2385
|
+
bookingId: "$[0]",
|
|
2386
|
+
revision: "$[1]",
|
|
2387
|
+
participantNotification: "$[2].participantNotification",
|
|
2388
|
+
paymentStatus: "$[2].paymentStatus",
|
|
2389
|
+
doubleBooked: "$[2].doubleBooked",
|
|
2390
|
+
flowControlSettings: "$[2].flowControlSettings"
|
|
2370
2391
|
},
|
|
2371
2392
|
singleArgumentUnchanged: false
|
|
2372
2393
|
},
|
|
2373
|
-
["
|
|
2394
|
+
["bookingId", "revision", "options"]
|
|
2374
2395
|
);
|
|
2375
2396
|
sideEffects?.onError?.(err);
|
|
2376
2397
|
throw transformedError;
|
|
2377
2398
|
}
|
|
2378
2399
|
}
|
|
2379
|
-
async function
|
|
2400
|
+
async function cancelBooking(bookingId, options) {
|
|
2380
2401
|
const { httpClient, sideEffects } = arguments[2];
|
|
2381
2402
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2382
|
-
|
|
2383
|
-
markAsPendingBookingsInfo: options?.markAsPendingBookingsInfo,
|
|
2403
|
+
bookingId,
|
|
2384
2404
|
participantNotification: options?.participantNotification,
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
returnFullEntity: options?.returnFullEntity,
|
|
2388
|
-
flowControlSettings: options?.flowControlSettings
|
|
2405
|
+
flowControlSettings: options?.flowControlSettings,
|
|
2406
|
+
revision: options?.revision
|
|
2389
2407
|
});
|
|
2390
|
-
const reqOpts =
|
|
2408
|
+
const reqOpts = bookingsCancelBooking(payload);
|
|
2391
2409
|
sideEffects?.onSiteCall?.();
|
|
2392
2410
|
try {
|
|
2393
2411
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2399,34 +2417,28 @@ async function markMultiServiceBookingAsPending2(multiServiceBookingId, options)
|
|
|
2399
2417
|
{
|
|
2400
2418
|
spreadPathsToArguments: {},
|
|
2401
2419
|
explicitPathsToArguments: {
|
|
2402
|
-
|
|
2403
|
-
markAsPendingBookingsInfo: "$[1].markAsPendingBookingsInfo",
|
|
2420
|
+
bookingId: "$[0]",
|
|
2404
2421
|
participantNotification: "$[1].participantNotification",
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
returnFullEntity: "$[1].returnFullEntity",
|
|
2408
|
-
flowControlSettings: "$[1].flowControlSettings"
|
|
2422
|
+
flowControlSettings: "$[1].flowControlSettings",
|
|
2423
|
+
revision: "$[1].revision"
|
|
2409
2424
|
},
|
|
2410
2425
|
singleArgumentUnchanged: false
|
|
2411
2426
|
},
|
|
2412
|
-
["
|
|
2427
|
+
["bookingId", "options"]
|
|
2413
2428
|
);
|
|
2414
2429
|
sideEffects?.onError?.(err);
|
|
2415
2430
|
throw transformedError;
|
|
2416
2431
|
}
|
|
2417
2432
|
}
|
|
2418
|
-
async function
|
|
2433
|
+
async function updateNumberOfParticipants(bookingId, options) {
|
|
2419
2434
|
const { httpClient, sideEffects } = arguments[2];
|
|
2420
2435
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
doubleBooked: options?.doubleBooked,
|
|
2426
|
-
returnFullEntity: options?.returnFullEntity,
|
|
2427
|
-
flowControlSettings: options?.flowControlSettings
|
|
2436
|
+
bookingId,
|
|
2437
|
+
revision: options?.revision,
|
|
2438
|
+
totalParticipants: options?.totalParticipants,
|
|
2439
|
+
participantsChoices: options?.participantsChoices
|
|
2428
2440
|
});
|
|
2429
|
-
const reqOpts =
|
|
2441
|
+
const reqOpts = bookingsUpdateNumberOfParticipants(payload);
|
|
2430
2442
|
sideEffects?.onSiteCall?.();
|
|
2431
2443
|
try {
|
|
2432
2444
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2438,33 +2450,31 @@ async function confirmMultiServiceBooking2(multiServiceBookingId, options) {
|
|
|
2438
2450
|
{
|
|
2439
2451
|
spreadPathsToArguments: {},
|
|
2440
2452
|
explicitPathsToArguments: {
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
doubleBooked: "$[1].doubleBooked",
|
|
2446
|
-
returnFullEntity: "$[1].returnFullEntity",
|
|
2447
|
-
flowControlSettings: "$[1].flowControlSettings"
|
|
2453
|
+
bookingId: "$[0]",
|
|
2454
|
+
revision: "$[1].revision",
|
|
2455
|
+
totalParticipants: "$[1].totalParticipants",
|
|
2456
|
+
participantsChoices: "$[1].participantsChoices"
|
|
2448
2457
|
},
|
|
2449
2458
|
singleArgumentUnchanged: false
|
|
2450
2459
|
},
|
|
2451
|
-
["
|
|
2460
|
+
["bookingId", "options"]
|
|
2452
2461
|
);
|
|
2453
2462
|
sideEffects?.onError?.(err);
|
|
2454
2463
|
throw transformedError;
|
|
2455
2464
|
}
|
|
2456
2465
|
}
|
|
2457
|
-
async function
|
|
2458
|
-
const { httpClient, sideEffects } = arguments[
|
|
2466
|
+
async function markBookingAsPending2(bookingId, revision, options) {
|
|
2467
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
2459
2468
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2460
|
-
|
|
2461
|
-
|
|
2469
|
+
bookingId,
|
|
2470
|
+
revision,
|
|
2462
2471
|
participantNotification: options?.participantNotification,
|
|
2472
|
+
sendSmsReminder: options?.sendSmsReminder,
|
|
2473
|
+
paymentStatus: options?.paymentStatus,
|
|
2463
2474
|
doubleBooked: options?.doubleBooked,
|
|
2464
|
-
returnFullEntity: options?.returnFullEntity,
|
|
2465
2475
|
flowControlSettings: options?.flowControlSettings
|
|
2466
2476
|
});
|
|
2467
|
-
const reqOpts =
|
|
2477
|
+
const reqOpts = markBookingAsPending(payload);
|
|
2468
2478
|
sideEffects?.onSiteCall?.();
|
|
2469
2479
|
try {
|
|
2470
2480
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2476,29 +2486,28 @@ async function declineMultiServiceBooking2(multiServiceBookingId, options) {
|
|
|
2476
2486
|
{
|
|
2477
2487
|
spreadPathsToArguments: {},
|
|
2478
2488
|
explicitPathsToArguments: {
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
participantNotification: "$[
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2489
|
+
bookingId: "$[0]",
|
|
2490
|
+
revision: "$[1]",
|
|
2491
|
+
participantNotification: "$[2].participantNotification",
|
|
2492
|
+
sendSmsReminder: "$[2].sendSmsReminder",
|
|
2493
|
+
paymentStatus: "$[2].paymentStatus",
|
|
2494
|
+
doubleBooked: "$[2].doubleBooked",
|
|
2495
|
+
flowControlSettings: "$[2].flowControlSettings"
|
|
2485
2496
|
},
|
|
2486
2497
|
singleArgumentUnchanged: false
|
|
2487
2498
|
},
|
|
2488
|
-
["
|
|
2499
|
+
["bookingId", "revision", "options"]
|
|
2489
2500
|
);
|
|
2490
2501
|
sideEffects?.onError?.(err);
|
|
2491
2502
|
throw transformedError;
|
|
2492
2503
|
}
|
|
2493
2504
|
}
|
|
2494
|
-
async function
|
|
2505
|
+
async function getAnonymousActionDetails2(options) {
|
|
2495
2506
|
const { httpClient, sideEffects } = arguments[1];
|
|
2496
2507
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2497
|
-
|
|
2508
|
+
bookingId: options?.bookingId
|
|
2498
2509
|
});
|
|
2499
|
-
const reqOpts =
|
|
2500
|
-
payload
|
|
2501
|
-
);
|
|
2510
|
+
const reqOpts = getAnonymousActionDetails(payload);
|
|
2502
2511
|
sideEffects?.onSiteCall?.();
|
|
2503
2512
|
try {
|
|
2504
2513
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2509,48 +2518,49 @@ async function bulkGetMultiServiceBookingAllowedActions2(multiServiceBookingIds)
|
|
|
2509
2518
|
err,
|
|
2510
2519
|
{
|
|
2511
2520
|
spreadPathsToArguments: {},
|
|
2512
|
-
explicitPathsToArguments: {
|
|
2521
|
+
explicitPathsToArguments: { bookingId: "$[0].bookingId" },
|
|
2513
2522
|
singleArgumentUnchanged: false
|
|
2514
2523
|
},
|
|
2515
|
-
["
|
|
2524
|
+
["options"]
|
|
2516
2525
|
);
|
|
2517
2526
|
sideEffects?.onError?.(err);
|
|
2518
2527
|
throw transformedError;
|
|
2519
2528
|
}
|
|
2520
2529
|
}
|
|
2521
|
-
async function
|
|
2522
|
-
const { httpClient, sideEffects } = arguments[
|
|
2530
|
+
async function cancelBookingAnonymously2(token, options) {
|
|
2531
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2523
2532
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2524
|
-
|
|
2533
|
+
token,
|
|
2534
|
+
revision: options?.revision
|
|
2525
2535
|
});
|
|
2526
|
-
const reqOpts =
|
|
2536
|
+
const reqOpts = cancelBookingAnonymously(payload);
|
|
2527
2537
|
sideEffects?.onSiteCall?.();
|
|
2528
2538
|
try {
|
|
2529
2539
|
const result = await httpClient.request(reqOpts);
|
|
2530
2540
|
sideEffects?.onSuccess?.(result);
|
|
2531
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data)
|
|
2541
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
2532
2542
|
} catch (err) {
|
|
2533
2543
|
const transformedError = sdkTransformError(
|
|
2534
2544
|
err,
|
|
2535
2545
|
{
|
|
2536
2546
|
spreadPathsToArguments: {},
|
|
2537
|
-
explicitPathsToArguments: {
|
|
2547
|
+
explicitPathsToArguments: { token: "$[0]", revision: "$[1].revision" },
|
|
2538
2548
|
singleArgumentUnchanged: false
|
|
2539
2549
|
},
|
|
2540
|
-
["
|
|
2550
|
+
["token", "options"]
|
|
2541
2551
|
);
|
|
2542
2552
|
sideEffects?.onError?.(err);
|
|
2543
2553
|
throw transformedError;
|
|
2544
2554
|
}
|
|
2545
2555
|
}
|
|
2546
|
-
async function
|
|
2547
|
-
const { httpClient, sideEffects } = arguments[
|
|
2556
|
+
async function rescheduleBookingAnonymously2(token, slot, options) {
|
|
2557
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
2548
2558
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2559
|
+
token,
|
|
2560
|
+
slot,
|
|
2561
|
+
revision: options?.revision
|
|
2552
2562
|
});
|
|
2553
|
-
const reqOpts =
|
|
2563
|
+
const reqOpts = rescheduleBookingAnonymously(payload);
|
|
2554
2564
|
sideEffects?.onSiteCall?.();
|
|
2555
2565
|
try {
|
|
2556
2566
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2562,28 +2572,22 @@ async function addBookingsToMultiServiceBooking2(multiServiceBookingId, options)
|
|
|
2562
2572
|
{
|
|
2563
2573
|
spreadPathsToArguments: {},
|
|
2564
2574
|
explicitPathsToArguments: {
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2575
|
+
token: "$[0]",
|
|
2576
|
+
slot: "$[1]",
|
|
2577
|
+
revision: "$[2].revision"
|
|
2568
2578
|
},
|
|
2569
2579
|
singleArgumentUnchanged: false
|
|
2570
2580
|
},
|
|
2571
|
-
["
|
|
2581
|
+
["token", "slot", "options"]
|
|
2572
2582
|
);
|
|
2573
2583
|
sideEffects?.onError?.(err);
|
|
2574
2584
|
throw transformedError;
|
|
2575
2585
|
}
|
|
2576
2586
|
}
|
|
2577
|
-
async function
|
|
2578
|
-
const { httpClient, sideEffects } = arguments[
|
|
2579
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2580
|
-
|
|
2581
|
-
bookings: options?.bookings,
|
|
2582
|
-
returnFullEntity: options?.returnFullEntity
|
|
2583
|
-
});
|
|
2584
|
-
const reqOpts = removeBookingsFromMultiServiceBooking(
|
|
2585
|
-
payload
|
|
2586
|
-
);
|
|
2587
|
+
async function getBookingAnonymously2(token) {
|
|
2588
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
2589
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ token });
|
|
2590
|
+
const reqOpts = getBookingAnonymously(payload);
|
|
2587
2591
|
sideEffects?.onSiteCall?.();
|
|
2588
2592
|
try {
|
|
2589
2593
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2594,14 +2598,10 @@ async function removeBookingsFromMultiServiceBooking2(multiServiceBookingId, opt
|
|
|
2594
2598
|
err,
|
|
2595
2599
|
{
|
|
2596
2600
|
spreadPathsToArguments: {},
|
|
2597
|
-
explicitPathsToArguments: {
|
|
2598
|
-
multiServiceBookingId: "$[0]",
|
|
2599
|
-
bookings: "$[1].bookings",
|
|
2600
|
-
returnFullEntity: "$[1].returnFullEntity"
|
|
2601
|
-
},
|
|
2601
|
+
explicitPathsToArguments: { token: "$[0]" },
|
|
2602
2602
|
singleArgumentUnchanged: false
|
|
2603
2603
|
},
|
|
2604
|
-
["
|
|
2604
|
+
["token"]
|
|
2605
2605
|
);
|
|
2606
2606
|
sideEffects?.onError?.(err);
|
|
2607
2607
|
throw transformedError;
|
|
@@ -2609,48 +2609,103 @@ async function removeBookingsFromMultiServiceBooking2(multiServiceBookingId, opt
|
|
|
2609
2609
|
}
|
|
2610
2610
|
|
|
2611
2611
|
// src/bookings-v2-booking-bookings.public.ts
|
|
2612
|
-
function
|
|
2613
|
-
return (options) =>
|
|
2612
|
+
function confirmOrDeclineBooking3(httpClient) {
|
|
2613
|
+
return (bookingId, options) => confirmOrDeclineBooking2(
|
|
2614
|
+
bookingId,
|
|
2614
2615
|
options,
|
|
2615
2616
|
// @ts-ignore
|
|
2616
2617
|
{ httpClient }
|
|
2617
2618
|
);
|
|
2618
2619
|
}
|
|
2619
|
-
function
|
|
2620
|
-
return (
|
|
2621
|
-
|
|
2620
|
+
function bulkConfirmOrDeclineBooking3(httpClient) {
|
|
2621
|
+
return (details, options) => bulkConfirmOrDeclineBooking2(
|
|
2622
|
+
details,
|
|
2622
2623
|
options,
|
|
2623
2624
|
// @ts-ignore
|
|
2624
2625
|
{ httpClient }
|
|
2625
2626
|
);
|
|
2626
2627
|
}
|
|
2627
|
-
function
|
|
2628
|
-
return (
|
|
2629
|
-
|
|
2630
|
-
slot,
|
|
2628
|
+
function createMultiServiceBooking3(httpClient) {
|
|
2629
|
+
return (bookings, options) => createMultiServiceBooking2(
|
|
2630
|
+
bookings,
|
|
2631
2631
|
options,
|
|
2632
2632
|
// @ts-ignore
|
|
2633
2633
|
{ httpClient }
|
|
2634
2634
|
);
|
|
2635
2635
|
}
|
|
2636
|
-
function
|
|
2637
|
-
return (
|
|
2638
|
-
|
|
2636
|
+
function rescheduleMultiServiceBooking3(httpClient) {
|
|
2637
|
+
return (multiServiceBookingId, rescheduleBookingsInfo, options) => rescheduleMultiServiceBooking2(
|
|
2638
|
+
multiServiceBookingId,
|
|
2639
|
+
rescheduleBookingsInfo,
|
|
2640
|
+
options,
|
|
2639
2641
|
// @ts-ignore
|
|
2640
2642
|
{ httpClient }
|
|
2641
2643
|
);
|
|
2642
2644
|
}
|
|
2643
|
-
function
|
|
2644
|
-
return (
|
|
2645
|
-
|
|
2645
|
+
function getMultiServiceBookingAvailability3(httpClient) {
|
|
2646
|
+
return (multiServiceBookingId) => getMultiServiceBookingAvailability2(
|
|
2647
|
+
multiServiceBookingId,
|
|
2648
|
+
// @ts-ignore
|
|
2649
|
+
{ httpClient }
|
|
2650
|
+
);
|
|
2651
|
+
}
|
|
2652
|
+
function cancelMultiServiceBooking3(httpClient) {
|
|
2653
|
+
return (multiServiceBookingId, options) => cancelMultiServiceBooking2(
|
|
2654
|
+
multiServiceBookingId,
|
|
2646
2655
|
options,
|
|
2647
2656
|
// @ts-ignore
|
|
2648
2657
|
{ httpClient }
|
|
2649
2658
|
);
|
|
2650
2659
|
}
|
|
2651
|
-
function
|
|
2652
|
-
return (
|
|
2653
|
-
|
|
2660
|
+
function markMultiServiceBookingAsPending3(httpClient) {
|
|
2661
|
+
return (multiServiceBookingId, options) => markMultiServiceBookingAsPending2(
|
|
2662
|
+
multiServiceBookingId,
|
|
2663
|
+
options,
|
|
2664
|
+
// @ts-ignore
|
|
2665
|
+
{ httpClient }
|
|
2666
|
+
);
|
|
2667
|
+
}
|
|
2668
|
+
function confirmMultiServiceBooking3(httpClient) {
|
|
2669
|
+
return (multiServiceBookingId, options) => confirmMultiServiceBooking2(
|
|
2670
|
+
multiServiceBookingId,
|
|
2671
|
+
options,
|
|
2672
|
+
// @ts-ignore
|
|
2673
|
+
{ httpClient }
|
|
2674
|
+
);
|
|
2675
|
+
}
|
|
2676
|
+
function declineMultiServiceBooking3(httpClient) {
|
|
2677
|
+
return (multiServiceBookingId, options) => declineMultiServiceBooking2(
|
|
2678
|
+
multiServiceBookingId,
|
|
2679
|
+
options,
|
|
2680
|
+
// @ts-ignore
|
|
2681
|
+
{ httpClient }
|
|
2682
|
+
);
|
|
2683
|
+
}
|
|
2684
|
+
function bulkGetMultiServiceBookingAllowedActions3(httpClient) {
|
|
2685
|
+
return (multiServiceBookingIds) => bulkGetMultiServiceBookingAllowedActions2(
|
|
2686
|
+
multiServiceBookingIds,
|
|
2687
|
+
// @ts-ignore
|
|
2688
|
+
{ httpClient }
|
|
2689
|
+
);
|
|
2690
|
+
}
|
|
2691
|
+
function getMultiServiceBooking3(httpClient) {
|
|
2692
|
+
return (multiServiceBookingId) => getMultiServiceBooking2(
|
|
2693
|
+
multiServiceBookingId,
|
|
2694
|
+
// @ts-ignore
|
|
2695
|
+
{ httpClient }
|
|
2696
|
+
);
|
|
2697
|
+
}
|
|
2698
|
+
function addBookingsToMultiServiceBooking3(httpClient) {
|
|
2699
|
+
return (multiServiceBookingId, options) => addBookingsToMultiServiceBooking2(
|
|
2700
|
+
multiServiceBookingId,
|
|
2701
|
+
options,
|
|
2702
|
+
// @ts-ignore
|
|
2703
|
+
{ httpClient }
|
|
2704
|
+
);
|
|
2705
|
+
}
|
|
2706
|
+
function removeBookingsFromMultiServiceBooking3(httpClient) {
|
|
2707
|
+
return (multiServiceBookingId, options) => removeBookingsFromMultiServiceBooking2(
|
|
2708
|
+
multiServiceBookingId,
|
|
2654
2709
|
options,
|
|
2655
2710
|
// @ts-ignore
|
|
2656
2711
|
{ httpClient }
|
|
@@ -2741,88 +2796,33 @@ function markBookingAsPending3(httpClient) {
|
|
|
2741
2796
|
{ httpClient }
|
|
2742
2797
|
);
|
|
2743
2798
|
}
|
|
2744
|
-
function
|
|
2745
|
-
return (
|
|
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,
|
|
2772
|
-
// @ts-ignore
|
|
2773
|
-
{ httpClient }
|
|
2774
|
-
);
|
|
2775
|
-
}
|
|
2776
|
-
function markMultiServiceBookingAsPending3(httpClient) {
|
|
2777
|
-
return (multiServiceBookingId, options) => markMultiServiceBookingAsPending2(
|
|
2778
|
-
multiServiceBookingId,
|
|
2779
|
-
options,
|
|
2780
|
-
// @ts-ignore
|
|
2781
|
-
{ httpClient }
|
|
2782
|
-
);
|
|
2783
|
-
}
|
|
2784
|
-
function confirmMultiServiceBooking3(httpClient) {
|
|
2785
|
-
return (multiServiceBookingId, options) => confirmMultiServiceBooking2(
|
|
2786
|
-
multiServiceBookingId,
|
|
2799
|
+
function getAnonymousActionDetails3(httpClient) {
|
|
2800
|
+
return (options) => getAnonymousActionDetails2(
|
|
2787
2801
|
options,
|
|
2788
2802
|
// @ts-ignore
|
|
2789
2803
|
{ httpClient }
|
|
2790
2804
|
);
|
|
2791
2805
|
}
|
|
2792
|
-
function
|
|
2793
|
-
return (
|
|
2794
|
-
|
|
2806
|
+
function cancelBookingAnonymously3(httpClient) {
|
|
2807
|
+
return (token, options) => cancelBookingAnonymously2(
|
|
2808
|
+
token,
|
|
2795
2809
|
options,
|
|
2796
2810
|
// @ts-ignore
|
|
2797
2811
|
{ httpClient }
|
|
2798
2812
|
);
|
|
2799
2813
|
}
|
|
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,
|
|
2814
|
+
function rescheduleBookingAnonymously3(httpClient) {
|
|
2815
|
+
return (token, slot, options) => rescheduleBookingAnonymously2(
|
|
2816
|
+
token,
|
|
2817
|
+
slot,
|
|
2817
2818
|
options,
|
|
2818
2819
|
// @ts-ignore
|
|
2819
2820
|
{ httpClient }
|
|
2820
2821
|
);
|
|
2821
2822
|
}
|
|
2822
|
-
function
|
|
2823
|
-
return (
|
|
2824
|
-
|
|
2825
|
-
options,
|
|
2823
|
+
function getBookingAnonymously3(httpClient) {
|
|
2824
|
+
return (token) => getBookingAnonymously2(
|
|
2825
|
+
token,
|
|
2826
2826
|
// @ts-ignore
|
|
2827
2827
|
{ httpClient }
|
|
2828
2828
|
);
|
|
@@ -2943,14 +2943,16 @@ var onBookingDeclined = EventDefinition(
|
|
|
2943
2943
|
])
|
|
2944
2944
|
)
|
|
2945
2945
|
)();
|
|
2946
|
-
var
|
|
2947
|
-
"wix.bookings.v2.
|
|
2946
|
+
var onBookingRescheduled = EventDefinition(
|
|
2947
|
+
"wix.bookings.v2.booking_rescheduled",
|
|
2948
2948
|
true,
|
|
2949
2949
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
2950
2950
|
transformPaths2(event, [
|
|
2951
2951
|
{
|
|
2952
2952
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
2953
2953
|
paths: [
|
|
2954
|
+
{ path: "data.previousStartDate" },
|
|
2955
|
+
{ path: "data.previousEndDate" },
|
|
2954
2956
|
{ path: "data.booking.createdDate" },
|
|
2955
2957
|
{ path: "data.booking.startDate" },
|
|
2956
2958
|
{ path: "data.booking.endDate" },
|
|
@@ -2973,59 +2975,57 @@ var onBookingNumberOfParticipantsUpdated = EventDefinition(
|
|
|
2973
2975
|
])
|
|
2974
2976
|
)
|
|
2975
2977
|
)();
|
|
2976
|
-
var
|
|
2977
|
-
"wix.bookings.v2.
|
|
2978
|
+
var onBookingUpdated = EventDefinition(
|
|
2979
|
+
"wix.bookings.v2.booking_updated",
|
|
2978
2980
|
true,
|
|
2979
2981
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
2980
2982
|
transformPaths2(event, [
|
|
2981
2983
|
{
|
|
2982
2984
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
2983
2985
|
paths: [
|
|
2984
|
-
{ path: "
|
|
2985
|
-
{ path: "
|
|
2986
|
-
{ path: "
|
|
2987
|
-
{ path: "
|
|
2988
|
-
{ path: "
|
|
2989
|
-
{ path: "data.booking.updatedDate" },
|
|
2990
|
-
{ path: "data.booking.canceledDate" },
|
|
2986
|
+
{ path: "entity.createdDate" },
|
|
2987
|
+
{ path: "entity.startDate" },
|
|
2988
|
+
{ path: "entity.endDate" },
|
|
2989
|
+
{ path: "entity.updatedDate" },
|
|
2990
|
+
{ path: "entity.canceledDate" },
|
|
2991
2991
|
{ path: "metadata.eventTime" }
|
|
2992
2992
|
]
|
|
2993
2993
|
},
|
|
2994
2994
|
{
|
|
2995
2995
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
2996
2996
|
paths: [
|
|
2997
|
-
{
|
|
2998
|
-
|
|
2999
|
-
},
|
|
3000
|
-
{
|
|
3001
|
-
path: "data.booking.contactDetails.fullAddress.geocode.longitude"
|
|
3002
|
-
}
|
|
2997
|
+
{ path: "entity.contactDetails.fullAddress.geocode.latitude" },
|
|
2998
|
+
{ path: "entity.contactDetails.fullAddress.geocode.longitude" }
|
|
3003
2999
|
]
|
|
3004
3000
|
}
|
|
3005
3001
|
])
|
|
3006
3002
|
)
|
|
3007
3003
|
)();
|
|
3008
|
-
var
|
|
3009
|
-
"wix.bookings.v2.
|
|
3004
|
+
var onBookingNumberOfParticipantsUpdated = EventDefinition(
|
|
3005
|
+
"wix.bookings.v2.booking_number_of_participants_updated",
|
|
3010
3006
|
true,
|
|
3011
3007
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
3012
3008
|
transformPaths2(event, [
|
|
3013
3009
|
{
|
|
3014
3010
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
3015
3011
|
paths: [
|
|
3016
|
-
{ path: "
|
|
3017
|
-
{ path: "
|
|
3018
|
-
{ path: "
|
|
3019
|
-
{ path: "
|
|
3020
|
-
{ path: "
|
|
3012
|
+
{ path: "data.booking.createdDate" },
|
|
3013
|
+
{ path: "data.booking.startDate" },
|
|
3014
|
+
{ path: "data.booking.endDate" },
|
|
3015
|
+
{ path: "data.booking.updatedDate" },
|
|
3016
|
+
{ path: "data.booking.canceledDate" },
|
|
3021
3017
|
{ path: "metadata.eventTime" }
|
|
3022
3018
|
]
|
|
3023
3019
|
},
|
|
3024
3020
|
{
|
|
3025
3021
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
3026
3022
|
paths: [
|
|
3027
|
-
{
|
|
3028
|
-
|
|
3023
|
+
{
|
|
3024
|
+
path: "data.booking.contactDetails.fullAddress.geocode.latitude"
|
|
3025
|
+
},
|
|
3026
|
+
{
|
|
3027
|
+
path: "data.booking.contactDetails.fullAddress.geocode.longitude"
|
|
3028
|
+
}
|
|
3029
3029
|
]
|
|
3030
3030
|
}
|
|
3031
3031
|
])
|
|
@@ -3035,22 +3035,8 @@ var onBookingUpdated = EventDefinition(
|
|
|
3035
3035
|
// src/bookings-v2-booking-bookings.context.ts
|
|
3036
3036
|
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
3037
3037
|
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
3038
|
var confirmOrDeclineBooking4 = /* @__PURE__ */ createRESTModule(confirmOrDeclineBooking3);
|
|
3043
3039
|
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
3040
|
var createMultiServiceBooking4 = /* @__PURE__ */ createRESTModule(createMultiServiceBooking3);
|
|
3055
3041
|
var rescheduleMultiServiceBooking4 = /* @__PURE__ */ createRESTModule(rescheduleMultiServiceBooking3);
|
|
3056
3042
|
var getMultiServiceBookingAvailability4 = /* @__PURE__ */ createRESTModule(getMultiServiceBookingAvailability3);
|
|
@@ -3064,17 +3050,31 @@ var bulkGetMultiServiceBookingAllowedActions4 = /* @__PURE__ */ createRESTModule
|
|
|
3064
3050
|
var getMultiServiceBooking4 = /* @__PURE__ */ createRESTModule(getMultiServiceBooking3);
|
|
3065
3051
|
var addBookingsToMultiServiceBooking4 = /* @__PURE__ */ createRESTModule(addBookingsToMultiServiceBooking3);
|
|
3066
3052
|
var removeBookingsFromMultiServiceBooking4 = /* @__PURE__ */ createRESTModule(removeBookingsFromMultiServiceBooking3);
|
|
3053
|
+
var createBooking4 = /* @__PURE__ */ createRESTModule(createBooking3);
|
|
3054
|
+
var bulkCreateBooking4 = /* @__PURE__ */ createRESTModule(bulkCreateBooking3);
|
|
3055
|
+
var rescheduleBooking4 = /* @__PURE__ */ createRESTModule(rescheduleBooking3);
|
|
3056
|
+
var confirmBooking3 = /* @__PURE__ */ createRESTModule(confirmBooking2);
|
|
3057
|
+
var setBookingSubmissionId4 = /* @__PURE__ */ createRESTModule(setBookingSubmissionId3);
|
|
3058
|
+
var updateExtendedFields4 = /* @__PURE__ */ createRESTModule(updateExtendedFields3);
|
|
3059
|
+
var declineBooking3 = /* @__PURE__ */ createRESTModule(declineBooking2);
|
|
3060
|
+
var cancelBooking3 = /* @__PURE__ */ createRESTModule(cancelBooking2);
|
|
3061
|
+
var updateNumberOfParticipants3 = /* @__PURE__ */ createRESTModule(updateNumberOfParticipants2);
|
|
3062
|
+
var markBookingAsPending4 = /* @__PURE__ */ createRESTModule(markBookingAsPending3);
|
|
3063
|
+
var getAnonymousActionDetails4 = /* @__PURE__ */ createRESTModule(getAnonymousActionDetails3);
|
|
3064
|
+
var cancelBookingAnonymously4 = /* @__PURE__ */ createRESTModule(cancelBookingAnonymously3);
|
|
3065
|
+
var rescheduleBookingAnonymously4 = /* @__PURE__ */ createRESTModule(rescheduleBookingAnonymously3);
|
|
3066
|
+
var getBookingAnonymously4 = /* @__PURE__ */ createRESTModule(getBookingAnonymously3);
|
|
3067
3067
|
var onBookingCanceled2 = createEventModule(onBookingCanceled);
|
|
3068
3068
|
var onBookingConfirmed2 = createEventModule(onBookingConfirmed);
|
|
3069
3069
|
var onBookingCreated2 = createEventModule(onBookingCreated);
|
|
3070
3070
|
var onBookingDeclined2 = createEventModule(onBookingDeclined);
|
|
3071
|
-
var onBookingNumberOfParticipantsUpdated2 = createEventModule(
|
|
3072
|
-
onBookingNumberOfParticipantsUpdated
|
|
3073
|
-
);
|
|
3074
3071
|
var onBookingRescheduled2 = createEventModule(
|
|
3075
3072
|
onBookingRescheduled
|
|
3076
3073
|
);
|
|
3077
3074
|
var onBookingUpdated2 = createEventModule(onBookingUpdated);
|
|
3075
|
+
var onBookingNumberOfParticipantsUpdated2 = createEventModule(
|
|
3076
|
+
onBookingNumberOfParticipantsUpdated
|
|
3077
|
+
);
|
|
3078
3078
|
export {
|
|
3079
3079
|
Actor,
|
|
3080
3080
|
BookingStatus,
|