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