@wix/auto_sdk_bookings_bookings 1.0.81 → 1.0.83
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 +41 -58
- package/build/cjs/index.js +442 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +100 -121
- package/build/cjs/index.typings.js +407 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +50 -63
- package/build/cjs/meta.js +374 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +41 -58
- package/build/es/index.mjs +438 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +100 -121
- package/build/es/index.typings.mjs +403 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +50 -63
- package/build/es/meta.mjs +370 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +94 -60
- package/build/internal/cjs/index.js +442 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +146 -121
- package/build/internal/cjs/index.typings.js +407 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +50 -63
- package/build/internal/cjs/meta.js +374 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +94 -60
- package/build/internal/es/index.mjs +438 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +146 -121
- package/build/internal/es/index.typings.mjs +403 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +50 -63
- package/build/internal/es/meta.mjs +370 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -39,6 +39,7 @@ __export(index_typings_exports, {
|
|
|
39
39
|
bulkCreateBooking: () => bulkCreateBooking2,
|
|
40
40
|
bulkGetMultiServiceBookingAllowedActions: () => bulkGetMultiServiceBookingAllowedActions2,
|
|
41
41
|
cancelBooking: () => cancelBooking,
|
|
42
|
+
cancelBookingAnonymously: () => cancelBookingAnonymously2,
|
|
42
43
|
cancelMultiServiceBooking: () => cancelMultiServiceBooking2,
|
|
43
44
|
confirmBooking: () => confirmBooking,
|
|
44
45
|
confirmMultiServiceBooking: () => confirmMultiServiceBooking2,
|
|
@@ -47,12 +48,15 @@ __export(index_typings_exports, {
|
|
|
47
48
|
createMultiServiceBooking: () => createMultiServiceBooking2,
|
|
48
49
|
declineBooking: () => declineBooking,
|
|
49
50
|
declineMultiServiceBooking: () => declineMultiServiceBooking2,
|
|
51
|
+
getAnonymousActionDetails: () => getAnonymousActionDetails2,
|
|
52
|
+
getBookingAnonymously: () => getBookingAnonymously2,
|
|
50
53
|
getMultiServiceBooking: () => getMultiServiceBooking2,
|
|
51
54
|
getMultiServiceBookingAvailability: () => getMultiServiceBookingAvailability2,
|
|
52
55
|
markBookingAsPending: () => markBookingAsPending2,
|
|
53
56
|
markMultiServiceBookingAsPending: () => markMultiServiceBookingAsPending2,
|
|
54
57
|
removeBookingsFromMultiServiceBooking: () => removeBookingsFromMultiServiceBooking2,
|
|
55
58
|
rescheduleBooking: () => rescheduleBooking2,
|
|
59
|
+
rescheduleBookingAnonymously: () => rescheduleBookingAnonymously2,
|
|
56
60
|
rescheduleMultiServiceBooking: () => rescheduleMultiServiceBooking2,
|
|
57
61
|
setBookingSubmissionId: () => setBookingSubmissionId2,
|
|
58
62
|
updateExtendedFields: () => updateExtendedFields2,
|
|
@@ -429,7 +433,301 @@ function resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl(opts) {
|
|
|
429
433
|
};
|
|
430
434
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
431
435
|
}
|
|
436
|
+
function resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl(opts) {
|
|
437
|
+
const domainToMappings = {
|
|
438
|
+
_: [
|
|
439
|
+
{
|
|
440
|
+
srcPath: "/_api/bookings-service/v2/bookings",
|
|
441
|
+
destPath: "/v2/bookings"
|
|
442
|
+
},
|
|
443
|
+
{
|
|
444
|
+
srcPath: "/_api/bookings-service/v2/bulk/bookings",
|
|
445
|
+
destPath: "/v2/bulk/bookings"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
srcPath: "/_api/bookings-service/v2/multi_service_bookings",
|
|
449
|
+
destPath: "/v2/multi_service_bookings"
|
|
450
|
+
},
|
|
451
|
+
{
|
|
452
|
+
srcPath: "/_api/bookings-service/v2/bulk/multi_service_bookings",
|
|
453
|
+
destPath: "/v2/bulk/multi_service_bookings"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
|
|
457
|
+
destPath: "/v2/multi_service_bookings"
|
|
458
|
+
},
|
|
459
|
+
{
|
|
460
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings/add_bookings_to_multi_service_booking",
|
|
461
|
+
destPath: "/v2/multi_service_bookings/add_bookings_to_multi_service_booking"
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
srcPath: "/bookings/bookings/v2/bulk/bookings",
|
|
465
|
+
destPath: "/v2/bulk/bookings"
|
|
466
|
+
},
|
|
467
|
+
{
|
|
468
|
+
srcPath: "/bookings/multiServiceBookings/v2/bulk/multi_service_bookings/get_allowed_actions",
|
|
469
|
+
destPath: "/v2/bulk/multi_service_bookings/get_allowed_actions"
|
|
470
|
+
}
|
|
471
|
+
],
|
|
472
|
+
"manage._base_domain_": [
|
|
473
|
+
{
|
|
474
|
+
srcPath: "/_api/bookings-service/v2/bookings",
|
|
475
|
+
destPath: "/v2/bookings"
|
|
476
|
+
},
|
|
477
|
+
{
|
|
478
|
+
srcPath: "/_api/bookings-service/v2/bulk/bookings",
|
|
479
|
+
destPath: "/v2/bulk/bookings"
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
srcPath: "/_api/bookings-service/v2/multi_service_bookings",
|
|
483
|
+
destPath: "/v2/multi_service_bookings"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
srcPath: "/_api/bookings-service/v2/bulk/multi_service_bookings",
|
|
487
|
+
destPath: "/v2/bulk/multi_service_bookings"
|
|
488
|
+
}
|
|
489
|
+
],
|
|
490
|
+
"www.wixapis.com": [
|
|
491
|
+
{
|
|
492
|
+
srcPath: "/_api/bookings-service/v2/bookings",
|
|
493
|
+
destPath: "/v2/bookings"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
srcPath: "/bookings/v2/bookings",
|
|
497
|
+
destPath: "/v2/bookings"
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
srcPath: "/bookings/v2/bulk/bookings",
|
|
501
|
+
destPath: "/v2/bulk/bookings"
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
srcPath: "/_api/bookings-service/v2/multi_service_bookings",
|
|
505
|
+
destPath: "/v2/multi_service_bookings"
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
|
|
509
|
+
destPath: "/v2/multi_service_bookings"
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings/add_bookings_to_multi_service_booking",
|
|
513
|
+
destPath: "/v2/multi_service_bookings/add_bookings_to_multi_service_booking"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
srcPath: "/bookings/bookings/v2/bulk/bookings",
|
|
517
|
+
destPath: "/v2/bulk/bookings"
|
|
518
|
+
},
|
|
519
|
+
{
|
|
520
|
+
srcPath: "/bookings/multiServiceBookings/v2/bulk/multi_service_bookings/get_allowed_actions",
|
|
521
|
+
destPath: "/v2/bulk/multi_service_bookings/get_allowed_actions"
|
|
522
|
+
}
|
|
523
|
+
],
|
|
524
|
+
"www._base_domain_": [
|
|
525
|
+
{
|
|
526
|
+
srcPath: "/_api/bookings-service/v2/bulk/bookings",
|
|
527
|
+
destPath: "/v2/bulk/bookings"
|
|
528
|
+
},
|
|
529
|
+
{
|
|
530
|
+
srcPath: "/_api/bookings-service/v2/bookings",
|
|
531
|
+
destPath: "/v2/bookings"
|
|
532
|
+
}
|
|
533
|
+
],
|
|
534
|
+
"bo._base_domain_": [
|
|
535
|
+
{
|
|
536
|
+
srcPath: "/_api/bookings-service/v2/bulk/bookings",
|
|
537
|
+
destPath: "/v2/bulk/bookings"
|
|
538
|
+
},
|
|
539
|
+
{
|
|
540
|
+
srcPath: "/_api/bookings-service/v2/bookings",
|
|
541
|
+
destPath: "/v2/bookings"
|
|
542
|
+
}
|
|
543
|
+
],
|
|
544
|
+
"wixbo.ai": [
|
|
545
|
+
{
|
|
546
|
+
srcPath: "/_api/bookings-service/v2/bulk/bookings",
|
|
547
|
+
destPath: "/v2/bulk/bookings"
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
srcPath: "/_api/bookings-service/v2/bookings",
|
|
551
|
+
destPath: "/v2/bookings"
|
|
552
|
+
}
|
|
553
|
+
],
|
|
554
|
+
"wix-bo.com": [
|
|
555
|
+
{
|
|
556
|
+
srcPath: "/_api/bookings-service/v2/bulk/bookings",
|
|
557
|
+
destPath: "/v2/bulk/bookings"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
srcPath: "/_api/bookings-service/v2/bookings",
|
|
561
|
+
destPath: "/v2/bookings"
|
|
562
|
+
}
|
|
563
|
+
],
|
|
564
|
+
"*.dev.wix-code.com": [
|
|
565
|
+
{
|
|
566
|
+
srcPath: "/_api/bookings-service",
|
|
567
|
+
destPath: "/v2/bookings"
|
|
568
|
+
},
|
|
569
|
+
{
|
|
570
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
|
|
571
|
+
destPath: "/v2/multi_service_bookings"
|
|
572
|
+
},
|
|
573
|
+
{
|
|
574
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings/add_bookings_to_multi_service_booking",
|
|
575
|
+
destPath: "/v2/multi_service_bookings/add_bookings_to_multi_service_booking"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
srcPath: "/bookings/bookings/v2/bulk/bookings",
|
|
579
|
+
destPath: "/v2/bulk/bookings"
|
|
580
|
+
},
|
|
581
|
+
{
|
|
582
|
+
srcPath: "/bookings/multiServiceBookings/v2/bulk/multi_service_bookings/get_allowed_actions",
|
|
583
|
+
destPath: "/v2/bulk/multi_service_bookings/get_allowed_actions"
|
|
584
|
+
}
|
|
585
|
+
]
|
|
586
|
+
};
|
|
587
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
588
|
+
}
|
|
432
589
|
var PACKAGE_NAME = "@wix/auto_sdk_bookings_bookings";
|
|
590
|
+
function getAnonymousActionDetails(payload) {
|
|
591
|
+
function __getAnonymousActionDetails({ host }) {
|
|
592
|
+
const metadata = {
|
|
593
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
594
|
+
method: "GET",
|
|
595
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetAnonymousActionDetails",
|
|
596
|
+
packageName: PACKAGE_NAME,
|
|
597
|
+
migrationOptions: {
|
|
598
|
+
optInTransformResponse: true
|
|
599
|
+
},
|
|
600
|
+
url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
|
|
601
|
+
protoPath: "/v2/bookings/anonymous-actions-details",
|
|
602
|
+
data: payload,
|
|
603
|
+
host
|
|
604
|
+
}),
|
|
605
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
606
|
+
};
|
|
607
|
+
return metadata;
|
|
608
|
+
}
|
|
609
|
+
return __getAnonymousActionDetails;
|
|
610
|
+
}
|
|
611
|
+
function cancelBookingAnonymously(payload) {
|
|
612
|
+
function __cancelBookingAnonymously({ host }) {
|
|
613
|
+
const metadata = {
|
|
614
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
615
|
+
method: "POST",
|
|
616
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.CancelBookingAnonymously",
|
|
617
|
+
packageName: PACKAGE_NAME,
|
|
618
|
+
migrationOptions: {
|
|
619
|
+
optInTransformResponse: true
|
|
620
|
+
},
|
|
621
|
+
url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
|
|
622
|
+
protoPath: "/v2/bookings/{token}/anonymous-cancel",
|
|
623
|
+
data: payload,
|
|
624
|
+
host
|
|
625
|
+
}),
|
|
626
|
+
data: payload,
|
|
627
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
628
|
+
{
|
|
629
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
630
|
+
paths: [
|
|
631
|
+
{ path: "booking.createdDate" },
|
|
632
|
+
{ path: "booking.startDate" },
|
|
633
|
+
{ path: "booking.endDate" },
|
|
634
|
+
{ path: "booking.updatedDate" },
|
|
635
|
+
{ path: "booking.canceledDate" }
|
|
636
|
+
]
|
|
637
|
+
},
|
|
638
|
+
{
|
|
639
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
640
|
+
paths: [
|
|
641
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
642
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
643
|
+
]
|
|
644
|
+
}
|
|
645
|
+
])
|
|
646
|
+
};
|
|
647
|
+
return metadata;
|
|
648
|
+
}
|
|
649
|
+
return __cancelBookingAnonymously;
|
|
650
|
+
}
|
|
651
|
+
function rescheduleBookingAnonymously(payload) {
|
|
652
|
+
function __rescheduleBookingAnonymously({ host }) {
|
|
653
|
+
const metadata = {
|
|
654
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
655
|
+
method: "POST",
|
|
656
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.RescheduleBookingAnonymously",
|
|
657
|
+
packageName: PACKAGE_NAME,
|
|
658
|
+
migrationOptions: {
|
|
659
|
+
optInTransformResponse: true
|
|
660
|
+
},
|
|
661
|
+
url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
|
|
662
|
+
protoPath: "/v2/bookings/{token}/anonymous-reschedule",
|
|
663
|
+
data: payload,
|
|
664
|
+
host
|
|
665
|
+
}),
|
|
666
|
+
data: payload,
|
|
667
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
668
|
+
{
|
|
669
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
670
|
+
paths: [
|
|
671
|
+
{ path: "booking.createdDate" },
|
|
672
|
+
{ path: "booking.startDate" },
|
|
673
|
+
{ path: "booking.endDate" },
|
|
674
|
+
{ path: "booking.updatedDate" },
|
|
675
|
+
{ path: "booking.canceledDate" }
|
|
676
|
+
]
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
680
|
+
paths: [
|
|
681
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
682
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
683
|
+
]
|
|
684
|
+
}
|
|
685
|
+
])
|
|
686
|
+
};
|
|
687
|
+
return metadata;
|
|
688
|
+
}
|
|
689
|
+
return __rescheduleBookingAnonymously;
|
|
690
|
+
}
|
|
691
|
+
function getBookingAnonymously(payload) {
|
|
692
|
+
function __getBookingAnonymously({ host }) {
|
|
693
|
+
const metadata = {
|
|
694
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
695
|
+
method: "GET",
|
|
696
|
+
methodFqn: "com.wixpress.bookings.bookings.v2.AnonymousBookingActions.GetBookingAnonymously",
|
|
697
|
+
packageName: PACKAGE_NAME,
|
|
698
|
+
migrationOptions: {
|
|
699
|
+
optInTransformResponse: true
|
|
700
|
+
},
|
|
701
|
+
url: resolveComWixpressBookingsBookingsV2AnonymousBookingActionsUrl({
|
|
702
|
+
protoPath: "/v2/bookings/{token}/anonymous-get",
|
|
703
|
+
data: payload,
|
|
704
|
+
host
|
|
705
|
+
}),
|
|
706
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
707
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
708
|
+
{
|
|
709
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
710
|
+
paths: [
|
|
711
|
+
{ path: "booking.createdDate" },
|
|
712
|
+
{ path: "booking.startDate" },
|
|
713
|
+
{ path: "booking.endDate" },
|
|
714
|
+
{ path: "booking.updatedDate" },
|
|
715
|
+
{ path: "booking.canceledDate" }
|
|
716
|
+
]
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
720
|
+
paths: [
|
|
721
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
722
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
723
|
+
]
|
|
724
|
+
}
|
|
725
|
+
])
|
|
726
|
+
};
|
|
727
|
+
return metadata;
|
|
728
|
+
}
|
|
729
|
+
return __getBookingAnonymously;
|
|
730
|
+
}
|
|
433
731
|
function confirmOrDeclineBooking(payload) {
|
|
434
732
|
function __confirmOrDeclineBooking({ host }) {
|
|
435
733
|
const metadata = {
|
|
@@ -1500,6 +1798,111 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
1500
1798
|
SortOrder2["DESC"] = "DESC";
|
|
1501
1799
|
return SortOrder2;
|
|
1502
1800
|
})(SortOrder || {});
|
|
1801
|
+
async function getAnonymousActionDetails2(options) {
|
|
1802
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1803
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1804
|
+
bookingId: options?.bookingId
|
|
1805
|
+
});
|
|
1806
|
+
const reqOpts = getAnonymousActionDetails(payload);
|
|
1807
|
+
sideEffects?.onSiteCall?.();
|
|
1808
|
+
try {
|
|
1809
|
+
const result = await httpClient.request(reqOpts);
|
|
1810
|
+
sideEffects?.onSuccess?.(result);
|
|
1811
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1812
|
+
} catch (err) {
|
|
1813
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1814
|
+
err,
|
|
1815
|
+
{
|
|
1816
|
+
spreadPathsToArguments: {},
|
|
1817
|
+
explicitPathsToArguments: { bookingId: "$[0].bookingId" },
|
|
1818
|
+
singleArgumentUnchanged: false
|
|
1819
|
+
},
|
|
1820
|
+
["options"]
|
|
1821
|
+
);
|
|
1822
|
+
sideEffects?.onError?.(err);
|
|
1823
|
+
throw transformedError;
|
|
1824
|
+
}
|
|
1825
|
+
}
|
|
1826
|
+
async function cancelBookingAnonymously2(token, options) {
|
|
1827
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1828
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1829
|
+
token,
|
|
1830
|
+
revision: options?.revision
|
|
1831
|
+
});
|
|
1832
|
+
const reqOpts = cancelBookingAnonymously(payload);
|
|
1833
|
+
sideEffects?.onSiteCall?.();
|
|
1834
|
+
try {
|
|
1835
|
+
const result = await httpClient.request(reqOpts);
|
|
1836
|
+
sideEffects?.onSuccess?.(result);
|
|
1837
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1838
|
+
} catch (err) {
|
|
1839
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1840
|
+
err,
|
|
1841
|
+
{
|
|
1842
|
+
spreadPathsToArguments: {},
|
|
1843
|
+
explicitPathsToArguments: { token: "$[0]", revision: "$[1].revision" },
|
|
1844
|
+
singleArgumentUnchanged: false
|
|
1845
|
+
},
|
|
1846
|
+
["token", "options"]
|
|
1847
|
+
);
|
|
1848
|
+
sideEffects?.onError?.(err);
|
|
1849
|
+
throw transformedError;
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
async function rescheduleBookingAnonymously2(token, slot, options) {
|
|
1853
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
1854
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1855
|
+
token,
|
|
1856
|
+
slot,
|
|
1857
|
+
revision: options?.revision
|
|
1858
|
+
});
|
|
1859
|
+
const reqOpts = rescheduleBookingAnonymously(payload);
|
|
1860
|
+
sideEffects?.onSiteCall?.();
|
|
1861
|
+
try {
|
|
1862
|
+
const result = await httpClient.request(reqOpts);
|
|
1863
|
+
sideEffects?.onSuccess?.(result);
|
|
1864
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1865
|
+
} catch (err) {
|
|
1866
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1867
|
+
err,
|
|
1868
|
+
{
|
|
1869
|
+
spreadPathsToArguments: {},
|
|
1870
|
+
explicitPathsToArguments: {
|
|
1871
|
+
token: "$[0]",
|
|
1872
|
+
slot: "$[1]",
|
|
1873
|
+
revision: "$[2].revision"
|
|
1874
|
+
},
|
|
1875
|
+
singleArgumentUnchanged: false
|
|
1876
|
+
},
|
|
1877
|
+
["token", "slot", "options"]
|
|
1878
|
+
);
|
|
1879
|
+
sideEffects?.onError?.(err);
|
|
1880
|
+
throw transformedError;
|
|
1881
|
+
}
|
|
1882
|
+
}
|
|
1883
|
+
async function getBookingAnonymously2(token) {
|
|
1884
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1885
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ token });
|
|
1886
|
+
const reqOpts = getBookingAnonymously(payload);
|
|
1887
|
+
sideEffects?.onSiteCall?.();
|
|
1888
|
+
try {
|
|
1889
|
+
const result = await httpClient.request(reqOpts);
|
|
1890
|
+
sideEffects?.onSuccess?.(result);
|
|
1891
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1892
|
+
} catch (err) {
|
|
1893
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1894
|
+
err,
|
|
1895
|
+
{
|
|
1896
|
+
spreadPathsToArguments: {},
|
|
1897
|
+
explicitPathsToArguments: { token: "$[0]" },
|
|
1898
|
+
singleArgumentUnchanged: false
|
|
1899
|
+
},
|
|
1900
|
+
["token"]
|
|
1901
|
+
);
|
|
1902
|
+
sideEffects?.onError?.(err);
|
|
1903
|
+
throw transformedError;
|
|
1904
|
+
}
|
|
1905
|
+
}
|
|
1503
1906
|
async function confirmOrDeclineBooking2(bookingId, options) {
|
|
1504
1907
|
const { httpClient, sideEffects } = arguments[2];
|
|
1505
1908
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -2279,6 +2682,7 @@ async function removeBookingsFromMultiServiceBooking2(multiServiceBookingId, opt
|
|
|
2279
2682
|
bulkCreateBooking,
|
|
2280
2683
|
bulkGetMultiServiceBookingAllowedActions,
|
|
2281
2684
|
cancelBooking,
|
|
2685
|
+
cancelBookingAnonymously,
|
|
2282
2686
|
cancelMultiServiceBooking,
|
|
2283
2687
|
confirmBooking,
|
|
2284
2688
|
confirmMultiServiceBooking,
|
|
@@ -2287,12 +2691,15 @@ async function removeBookingsFromMultiServiceBooking2(multiServiceBookingId, opt
|
|
|
2287
2691
|
createMultiServiceBooking,
|
|
2288
2692
|
declineBooking,
|
|
2289
2693
|
declineMultiServiceBooking,
|
|
2694
|
+
getAnonymousActionDetails,
|
|
2695
|
+
getBookingAnonymously,
|
|
2290
2696
|
getMultiServiceBooking,
|
|
2291
2697
|
getMultiServiceBookingAvailability,
|
|
2292
2698
|
markBookingAsPending,
|
|
2293
2699
|
markMultiServiceBookingAsPending,
|
|
2294
2700
|
removeBookingsFromMultiServiceBooking,
|
|
2295
2701
|
rescheduleBooking,
|
|
2702
|
+
rescheduleBookingAnonymously,
|
|
2296
2703
|
rescheduleMultiServiceBooking,
|
|
2297
2704
|
setBookingSubmissionId,
|
|
2298
2705
|
updateExtendedFields,
|