@wix/auto_sdk_bookings_bookings 1.0.122 → 1.0.124
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 +72 -72
- package/build/cjs/index.js +247 -247
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +370 -370
- package/build/cjs/index.typings.js +217 -217
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +336 -336
- package/build/cjs/meta.js +195 -195
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +72 -72
- package/build/es/index.mjs +247 -247
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +370 -370
- package/build/es/index.typings.mjs +217 -217
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +336 -336
- package/build/es/meta.mjs +195 -195
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +72 -72
- package/build/internal/cjs/index.js +247 -247
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +370 -370
- package/build/internal/cjs/index.typings.js +217 -217
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +336 -336
- package/build/internal/cjs/meta.js +195 -195
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +72 -72
- package/build/internal/es/index.mjs +247 -247
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +370 -370
- package/build/internal/es/index.typings.mjs +217 -217
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +336 -336
- package/build/internal/es/meta.mjs +195 -195
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -39,15 +39,15 @@ __export(index_typings_exports, {
|
|
|
39
39
|
bulkConfirmOrDeclineBooking: () => bulkConfirmOrDeclineBooking2,
|
|
40
40
|
bulkCreateBooking: () => bulkCreateBooking2,
|
|
41
41
|
bulkGetMultiServiceBookingAllowedActions: () => bulkGetMultiServiceBookingAllowedActions2,
|
|
42
|
-
cancelBooking: () =>
|
|
42
|
+
cancelBooking: () => cancelBooking,
|
|
43
43
|
cancelBookingAnonymously: () => cancelBookingAnonymously2,
|
|
44
44
|
cancelMultiServiceBooking: () => cancelMultiServiceBooking2,
|
|
45
|
-
confirmBooking: () =>
|
|
45
|
+
confirmBooking: () => confirmBooking,
|
|
46
46
|
confirmMultiServiceBooking: () => confirmMultiServiceBooking2,
|
|
47
47
|
confirmOrDeclineBooking: () => confirmOrDeclineBooking2,
|
|
48
48
|
createBooking: () => createBooking2,
|
|
49
49
|
createMultiServiceBooking: () => createMultiServiceBooking2,
|
|
50
|
-
declineBooking: () =>
|
|
50
|
+
declineBooking: () => declineBooking,
|
|
51
51
|
declineMultiServiceBooking: () => declineMultiServiceBooking2,
|
|
52
52
|
getAnonymousActionDetails: () => getAnonymousActionDetails2,
|
|
53
53
|
getBookingAnonymously: () => getBookingAnonymously2,
|
|
@@ -62,7 +62,7 @@ __export(index_typings_exports, {
|
|
|
62
62
|
rescheduleMultiServiceBooking: () => rescheduleMultiServiceBooking2,
|
|
63
63
|
setBookingSubmissionId: () => setBookingSubmissionId2,
|
|
64
64
|
updateExtendedFields: () => updateExtendedFields2,
|
|
65
|
-
updateNumberOfParticipants: () =>
|
|
65
|
+
updateNumberOfParticipants: () => updateNumberOfParticipants
|
|
66
66
|
});
|
|
67
67
|
module.exports = __toCommonJS(index_typings_exports);
|
|
68
68
|
|
|
@@ -384,6 +384,57 @@ function resolveComWixpressBookingsBookingsV2BookingsUrl(opts) {
|
|
|
384
384
|
};
|
|
385
385
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
386
386
|
}
|
|
387
|
+
function resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl(opts) {
|
|
388
|
+
const domainToMappings = {
|
|
389
|
+
"www.wixapis.com": [
|
|
390
|
+
{
|
|
391
|
+
srcPath: "/_api/bookings-confirmator/v2/bookings/confirmation",
|
|
392
|
+
destPath: "/v2/bookings/confirmation"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
srcPath: "/bookings/v2/confirmation",
|
|
396
|
+
destPath: "/v2/confirmation"
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
srcPath: "/bookings/v2/bulk/confirmation",
|
|
400
|
+
destPath: "/v2/bulk/confirmation"
|
|
401
|
+
},
|
|
402
|
+
{
|
|
403
|
+
srcPath: "/bookings/v2/bulk/bookings/confirmOrDecline",
|
|
404
|
+
destPath: "/v2/bulk/bookings/confirmOrDecline"
|
|
405
|
+
},
|
|
406
|
+
{
|
|
407
|
+
srcPath: "/_api/bookings-confirmator/v2/bulk/confirmation",
|
|
408
|
+
destPath: "/v2/bulk/confirmation"
|
|
409
|
+
},
|
|
410
|
+
{
|
|
411
|
+
srcPath: "/_api/bookings-confirmator/v2/bulk/bookings/confirmOrDecline",
|
|
412
|
+
destPath: "/v2/bulk/bookings/confirmOrDecline"
|
|
413
|
+
}
|
|
414
|
+
],
|
|
415
|
+
"*.dev.wix-code.com": [
|
|
416
|
+
{
|
|
417
|
+
srcPath: "/bookings/v2/confirmation",
|
|
418
|
+
destPath: "/v2/confirmation"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
srcPath: "/bookings/v2/bulk/bookings",
|
|
422
|
+
destPath: "/v2/bulk/bookings"
|
|
423
|
+
}
|
|
424
|
+
],
|
|
425
|
+
_: [
|
|
426
|
+
{
|
|
427
|
+
srcPath: "/bookings/v2/confirmation",
|
|
428
|
+
destPath: "/v2/confirmation"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
srcPath: "/bookings/v2/bulk/bookings",
|
|
432
|
+
destPath: "/v2/bulk/bookings"
|
|
433
|
+
}
|
|
434
|
+
]
|
|
435
|
+
};
|
|
436
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
437
|
+
}
|
|
387
438
|
function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
|
|
388
439
|
const domainToMappings = {
|
|
389
440
|
_: [
|
|
@@ -537,142 +588,7 @@ function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
|
|
|
537
588
|
};
|
|
538
589
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
539
590
|
}
|
|
540
|
-
function resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl(opts) {
|
|
541
|
-
const domainToMappings = {
|
|
542
|
-
"www.wixapis.com": [
|
|
543
|
-
{
|
|
544
|
-
srcPath: "/_api/bookings-confirmator/v2/bookings/confirmation",
|
|
545
|
-
destPath: "/v2/bookings/confirmation"
|
|
546
|
-
},
|
|
547
|
-
{
|
|
548
|
-
srcPath: "/bookings/v2/confirmation",
|
|
549
|
-
destPath: "/v2/confirmation"
|
|
550
|
-
},
|
|
551
|
-
{
|
|
552
|
-
srcPath: "/bookings/v2/bulk/confirmation",
|
|
553
|
-
destPath: "/v2/bulk/confirmation"
|
|
554
|
-
},
|
|
555
|
-
{
|
|
556
|
-
srcPath: "/bookings/v2/bulk/bookings/confirmOrDecline",
|
|
557
|
-
destPath: "/v2/bulk/bookings/confirmOrDecline"
|
|
558
|
-
},
|
|
559
|
-
{
|
|
560
|
-
srcPath: "/_api/bookings-confirmator/v2/bulk/confirmation",
|
|
561
|
-
destPath: "/v2/bulk/confirmation"
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
srcPath: "/_api/bookings-confirmator/v2/bulk/bookings/confirmOrDecline",
|
|
565
|
-
destPath: "/v2/bulk/bookings/confirmOrDecline"
|
|
566
|
-
}
|
|
567
|
-
],
|
|
568
|
-
"*.dev.wix-code.com": [
|
|
569
|
-
{
|
|
570
|
-
srcPath: "/bookings/v2/confirmation",
|
|
571
|
-
destPath: "/v2/confirmation"
|
|
572
|
-
},
|
|
573
|
-
{
|
|
574
|
-
srcPath: "/bookings/v2/bulk/bookings",
|
|
575
|
-
destPath: "/v2/bulk/bookings"
|
|
576
|
-
}
|
|
577
|
-
],
|
|
578
|
-
_: [
|
|
579
|
-
{
|
|
580
|
-
srcPath: "/bookings/v2/confirmation",
|
|
581
|
-
destPath: "/v2/confirmation"
|
|
582
|
-
},
|
|
583
|
-
{
|
|
584
|
-
srcPath: "/bookings/v2/bulk/bookings",
|
|
585
|
-
destPath: "/v2/bulk/bookings"
|
|
586
|
-
}
|
|
587
|
-
]
|
|
588
|
-
};
|
|
589
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
590
|
-
}
|
|
591
591
|
var PACKAGE_NAME = "@wix/auto_sdk_bookings_bookings";
|
|
592
|
-
function confirmOrDeclineBooking(payload) {
|
|
593
|
-
function __confirmOrDeclineBooking({ host }) {
|
|
594
|
-
const metadata = {
|
|
595
|
-
entityFqdn: "wix.bookings.v2.booking",
|
|
596
|
-
method: "POST",
|
|
597
|
-
methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.ConfirmOrDeclineBooking",
|
|
598
|
-
packageName: PACKAGE_NAME,
|
|
599
|
-
migrationOptions: {
|
|
600
|
-
optInTransformResponse: true
|
|
601
|
-
},
|
|
602
|
-
url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
|
|
603
|
-
protoPath: "/v2/confirmation/{bookingId}:confirmOrDecline",
|
|
604
|
-
data: payload,
|
|
605
|
-
host
|
|
606
|
-
}),
|
|
607
|
-
data: payload,
|
|
608
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
609
|
-
{
|
|
610
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
611
|
-
paths: [
|
|
612
|
-
{ path: "booking.createdDate" },
|
|
613
|
-
{ path: "booking.startDate" },
|
|
614
|
-
{ path: "booking.endDate" },
|
|
615
|
-
{ path: "booking.updatedDate" },
|
|
616
|
-
{ path: "booking.canceledDate" }
|
|
617
|
-
]
|
|
618
|
-
},
|
|
619
|
-
{
|
|
620
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
621
|
-
paths: [
|
|
622
|
-
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
623
|
-
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
624
|
-
]
|
|
625
|
-
}
|
|
626
|
-
])
|
|
627
|
-
};
|
|
628
|
-
return metadata;
|
|
629
|
-
}
|
|
630
|
-
return __confirmOrDeclineBooking;
|
|
631
|
-
}
|
|
632
|
-
function bulkConfirmOrDeclineBooking(payload) {
|
|
633
|
-
function __bulkConfirmOrDeclineBooking({ host }) {
|
|
634
|
-
const metadata = {
|
|
635
|
-
entityFqdn: "wix.bookings.v2.booking",
|
|
636
|
-
method: "POST",
|
|
637
|
-
methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.BulkConfirmOrDeclineBooking",
|
|
638
|
-
packageName: PACKAGE_NAME,
|
|
639
|
-
migrationOptions: {
|
|
640
|
-
optInTransformResponse: true
|
|
641
|
-
},
|
|
642
|
-
url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
|
|
643
|
-
protoPath: "/v2/bulk/bookings/confirmOrDecline",
|
|
644
|
-
data: payload,
|
|
645
|
-
host
|
|
646
|
-
}),
|
|
647
|
-
data: payload,
|
|
648
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
649
|
-
{
|
|
650
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
651
|
-
paths: [
|
|
652
|
-
{ path: "results.item.createdDate" },
|
|
653
|
-
{ path: "results.item.startDate" },
|
|
654
|
-
{ path: "results.item.endDate" },
|
|
655
|
-
{ path: "results.item.updatedDate" },
|
|
656
|
-
{ path: "results.item.canceledDate" }
|
|
657
|
-
]
|
|
658
|
-
},
|
|
659
|
-
{
|
|
660
|
-
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
661
|
-
paths: [
|
|
662
|
-
{
|
|
663
|
-
path: "results.item.contactDetails.fullAddress.geocode.latitude"
|
|
664
|
-
},
|
|
665
|
-
{
|
|
666
|
-
path: "results.item.contactDetails.fullAddress.geocode.longitude"
|
|
667
|
-
}
|
|
668
|
-
]
|
|
669
|
-
}
|
|
670
|
-
])
|
|
671
|
-
};
|
|
672
|
-
return metadata;
|
|
673
|
-
}
|
|
674
|
-
return __bulkConfirmOrDeclineBooking;
|
|
675
|
-
}
|
|
676
592
|
function createMultiServiceBooking(payload) {
|
|
677
593
|
function __createMultiServiceBooking({ host }) {
|
|
678
594
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -1130,6 +1046,90 @@ function removeBookingsFromMultiServiceBooking(payload) {
|
|
|
1130
1046
|
}
|
|
1131
1047
|
return __removeBookingsFromMultiServiceBooking;
|
|
1132
1048
|
}
|
|
1049
|
+
function confirmOrDeclineBooking(payload) {
|
|
1050
|
+
function __confirmOrDeclineBooking({ host }) {
|
|
1051
|
+
const metadata = {
|
|
1052
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
1053
|
+
method: "POST",
|
|
1054
|
+
methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.ConfirmOrDeclineBooking",
|
|
1055
|
+
packageName: PACKAGE_NAME,
|
|
1056
|
+
migrationOptions: {
|
|
1057
|
+
optInTransformResponse: true
|
|
1058
|
+
},
|
|
1059
|
+
url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
|
|
1060
|
+
protoPath: "/v2/confirmation/{bookingId}:confirmOrDecline",
|
|
1061
|
+
data: payload,
|
|
1062
|
+
host
|
|
1063
|
+
}),
|
|
1064
|
+
data: payload,
|
|
1065
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1066
|
+
{
|
|
1067
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1068
|
+
paths: [
|
|
1069
|
+
{ path: "booking.createdDate" },
|
|
1070
|
+
{ path: "booking.startDate" },
|
|
1071
|
+
{ path: "booking.endDate" },
|
|
1072
|
+
{ path: "booking.updatedDate" },
|
|
1073
|
+
{ path: "booking.canceledDate" }
|
|
1074
|
+
]
|
|
1075
|
+
},
|
|
1076
|
+
{
|
|
1077
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1078
|
+
paths: [
|
|
1079
|
+
{ path: "booking.contactDetails.fullAddress.geocode.latitude" },
|
|
1080
|
+
{ path: "booking.contactDetails.fullAddress.geocode.longitude" }
|
|
1081
|
+
]
|
|
1082
|
+
}
|
|
1083
|
+
])
|
|
1084
|
+
};
|
|
1085
|
+
return metadata;
|
|
1086
|
+
}
|
|
1087
|
+
return __confirmOrDeclineBooking;
|
|
1088
|
+
}
|
|
1089
|
+
function bulkConfirmOrDeclineBooking(payload) {
|
|
1090
|
+
function __bulkConfirmOrDeclineBooking({ host }) {
|
|
1091
|
+
const metadata = {
|
|
1092
|
+
entityFqdn: "wix.bookings.v2.booking",
|
|
1093
|
+
method: "POST",
|
|
1094
|
+
methodFqn: "com.wixpress.bookings.confirmator.v2.Confirmator.BulkConfirmOrDeclineBooking",
|
|
1095
|
+
packageName: PACKAGE_NAME,
|
|
1096
|
+
migrationOptions: {
|
|
1097
|
+
optInTransformResponse: true
|
|
1098
|
+
},
|
|
1099
|
+
url: resolveComWixpressBookingsConfirmatorV2ConfirmatorUrl({
|
|
1100
|
+
protoPath: "/v2/bulk/bookings/confirmOrDecline",
|
|
1101
|
+
data: payload,
|
|
1102
|
+
host
|
|
1103
|
+
}),
|
|
1104
|
+
data: payload,
|
|
1105
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1106
|
+
{
|
|
1107
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1108
|
+
paths: [
|
|
1109
|
+
{ path: "results.item.createdDate" },
|
|
1110
|
+
{ path: "results.item.startDate" },
|
|
1111
|
+
{ path: "results.item.endDate" },
|
|
1112
|
+
{ path: "results.item.updatedDate" },
|
|
1113
|
+
{ path: "results.item.canceledDate" }
|
|
1114
|
+
]
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1118
|
+
paths: [
|
|
1119
|
+
{
|
|
1120
|
+
path: "results.item.contactDetails.fullAddress.geocode.latitude"
|
|
1121
|
+
},
|
|
1122
|
+
{
|
|
1123
|
+
path: "results.item.contactDetails.fullAddress.geocode.longitude"
|
|
1124
|
+
}
|
|
1125
|
+
]
|
|
1126
|
+
}
|
|
1127
|
+
])
|
|
1128
|
+
};
|
|
1129
|
+
return metadata;
|
|
1130
|
+
}
|
|
1131
|
+
return __bulkConfirmOrDeclineBooking;
|
|
1132
|
+
}
|
|
1133
1133
|
function createBooking(payload) {
|
|
1134
1134
|
function __createBooking({ host }) {
|
|
1135
1135
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -1296,8 +1296,8 @@ function rescheduleBooking(payload) {
|
|
|
1296
1296
|
}
|
|
1297
1297
|
return __rescheduleBooking;
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1300
|
-
function
|
|
1299
|
+
function bookingsConfirmBooking(payload) {
|
|
1300
|
+
function __bookingsConfirmBooking({ host }) {
|
|
1301
1301
|
const metadata = {
|
|
1302
1302
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1303
1303
|
method: "POST",
|
|
@@ -1334,7 +1334,7 @@ function confirmBooking(payload) {
|
|
|
1334
1334
|
};
|
|
1335
1335
|
return metadata;
|
|
1336
1336
|
}
|
|
1337
|
-
return
|
|
1337
|
+
return __bookingsConfirmBooking;
|
|
1338
1338
|
}
|
|
1339
1339
|
function setBookingSubmissionId(payload) {
|
|
1340
1340
|
function __setBookingSubmissionId({ host }) {
|
|
@@ -1397,8 +1397,8 @@ function updateExtendedFields(payload) {
|
|
|
1397
1397
|
}
|
|
1398
1398
|
return __updateExtendedFields;
|
|
1399
1399
|
}
|
|
1400
|
-
function
|
|
1401
|
-
function
|
|
1400
|
+
function bookingsDeclineBooking(payload) {
|
|
1401
|
+
function __bookingsDeclineBooking({ host }) {
|
|
1402
1402
|
const metadata = {
|
|
1403
1403
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1404
1404
|
method: "POST",
|
|
@@ -1435,10 +1435,10 @@ function declineBooking(payload) {
|
|
|
1435
1435
|
};
|
|
1436
1436
|
return metadata;
|
|
1437
1437
|
}
|
|
1438
|
-
return
|
|
1438
|
+
return __bookingsDeclineBooking;
|
|
1439
1439
|
}
|
|
1440
|
-
function
|
|
1441
|
-
function
|
|
1440
|
+
function bookingsCancelBooking(payload) {
|
|
1441
|
+
function __bookingsCancelBooking({ host }) {
|
|
1442
1442
|
const metadata = {
|
|
1443
1443
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1444
1444
|
method: "POST",
|
|
@@ -1475,10 +1475,10 @@ function cancelBooking(payload) {
|
|
|
1475
1475
|
};
|
|
1476
1476
|
return metadata;
|
|
1477
1477
|
}
|
|
1478
|
-
return
|
|
1478
|
+
return __bookingsCancelBooking;
|
|
1479
1479
|
}
|
|
1480
|
-
function
|
|
1481
|
-
function
|
|
1480
|
+
function bookingsUpdateNumberOfParticipants(payload) {
|
|
1481
|
+
function __bookingsUpdateNumberOfParticipants({ host }) {
|
|
1482
1482
|
const metadata = {
|
|
1483
1483
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1484
1484
|
method: "POST",
|
|
@@ -1515,7 +1515,7 @@ function updateNumberOfParticipants(payload) {
|
|
|
1515
1515
|
};
|
|
1516
1516
|
return metadata;
|
|
1517
1517
|
}
|
|
1518
|
-
return
|
|
1518
|
+
return __bookingsUpdateNumberOfParticipants;
|
|
1519
1519
|
}
|
|
1520
1520
|
function bulkCalculateAllowedActions(payload) {
|
|
1521
1521
|
function __bulkCalculateAllowedActions({ host }) {
|
|
@@ -1842,64 +1842,6 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
1842
1842
|
SortOrder2["DESC"] = "DESC";
|
|
1843
1843
|
return SortOrder2;
|
|
1844
1844
|
})(SortOrder || {});
|
|
1845
|
-
async function confirmOrDeclineBooking2(bookingId, options) {
|
|
1846
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1847
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1848
|
-
bookingId,
|
|
1849
|
-
paymentStatus: options?.paymentStatus
|
|
1850
|
-
});
|
|
1851
|
-
const reqOpts = confirmOrDeclineBooking(payload);
|
|
1852
|
-
sideEffects?.onSiteCall?.();
|
|
1853
|
-
try {
|
|
1854
|
-
const result = await httpClient.request(reqOpts);
|
|
1855
|
-
sideEffects?.onSuccess?.(result);
|
|
1856
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1857
|
-
} catch (err) {
|
|
1858
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1859
|
-
err,
|
|
1860
|
-
{
|
|
1861
|
-
spreadPathsToArguments: {},
|
|
1862
|
-
explicitPathsToArguments: {
|
|
1863
|
-
bookingId: "$[0]",
|
|
1864
|
-
paymentStatus: "$[1].paymentStatus"
|
|
1865
|
-
},
|
|
1866
|
-
singleArgumentUnchanged: false
|
|
1867
|
-
},
|
|
1868
|
-
["bookingId", "options"]
|
|
1869
|
-
);
|
|
1870
|
-
sideEffects?.onError?.(err);
|
|
1871
|
-
throw transformedError;
|
|
1872
|
-
}
|
|
1873
|
-
}
|
|
1874
|
-
async function bulkConfirmOrDeclineBooking2(details, options) {
|
|
1875
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1876
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1877
|
-
details,
|
|
1878
|
-
returnEntity: options?.returnEntity
|
|
1879
|
-
});
|
|
1880
|
-
const reqOpts = bulkConfirmOrDeclineBooking(payload);
|
|
1881
|
-
sideEffects?.onSiteCall?.();
|
|
1882
|
-
try {
|
|
1883
|
-
const result = await httpClient.request(reqOpts);
|
|
1884
|
-
sideEffects?.onSuccess?.(result);
|
|
1885
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1886
|
-
} catch (err) {
|
|
1887
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
1888
|
-
err,
|
|
1889
|
-
{
|
|
1890
|
-
spreadPathsToArguments: {},
|
|
1891
|
-
explicitPathsToArguments: {
|
|
1892
|
-
details: "$[0]",
|
|
1893
|
-
returnEntity: "$[1].returnEntity"
|
|
1894
|
-
},
|
|
1895
|
-
singleArgumentUnchanged: false
|
|
1896
|
-
},
|
|
1897
|
-
["details", "options"]
|
|
1898
|
-
);
|
|
1899
|
-
sideEffects?.onError?.(err);
|
|
1900
|
-
throw transformedError;
|
|
1901
|
-
}
|
|
1902
|
-
}
|
|
1903
1845
|
async function createMultiServiceBooking2(bookings, options) {
|
|
1904
1846
|
const { httpClient, sideEffects } = arguments[2];
|
|
1905
1847
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -2261,6 +2203,64 @@ async function removeBookingsFromMultiServiceBooking2(multiServiceBookingId, opt
|
|
|
2261
2203
|
throw transformedError;
|
|
2262
2204
|
}
|
|
2263
2205
|
}
|
|
2206
|
+
async function confirmOrDeclineBooking2(bookingId, options) {
|
|
2207
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2208
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2209
|
+
bookingId,
|
|
2210
|
+
paymentStatus: options?.paymentStatus
|
|
2211
|
+
});
|
|
2212
|
+
const reqOpts = confirmOrDeclineBooking(payload);
|
|
2213
|
+
sideEffects?.onSiteCall?.();
|
|
2214
|
+
try {
|
|
2215
|
+
const result = await httpClient.request(reqOpts);
|
|
2216
|
+
sideEffects?.onSuccess?.(result);
|
|
2217
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2218
|
+
} catch (err) {
|
|
2219
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2220
|
+
err,
|
|
2221
|
+
{
|
|
2222
|
+
spreadPathsToArguments: {},
|
|
2223
|
+
explicitPathsToArguments: {
|
|
2224
|
+
bookingId: "$[0]",
|
|
2225
|
+
paymentStatus: "$[1].paymentStatus"
|
|
2226
|
+
},
|
|
2227
|
+
singleArgumentUnchanged: false
|
|
2228
|
+
},
|
|
2229
|
+
["bookingId", "options"]
|
|
2230
|
+
);
|
|
2231
|
+
sideEffects?.onError?.(err);
|
|
2232
|
+
throw transformedError;
|
|
2233
|
+
}
|
|
2234
|
+
}
|
|
2235
|
+
async function bulkConfirmOrDeclineBooking2(details, options) {
|
|
2236
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
2237
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2238
|
+
details,
|
|
2239
|
+
returnEntity: options?.returnEntity
|
|
2240
|
+
});
|
|
2241
|
+
const reqOpts = bulkConfirmOrDeclineBooking(payload);
|
|
2242
|
+
sideEffects?.onSiteCall?.();
|
|
2243
|
+
try {
|
|
2244
|
+
const result = await httpClient.request(reqOpts);
|
|
2245
|
+
sideEffects?.onSuccess?.(result);
|
|
2246
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
2247
|
+
} catch (err) {
|
|
2248
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
2249
|
+
err,
|
|
2250
|
+
{
|
|
2251
|
+
spreadPathsToArguments: {},
|
|
2252
|
+
explicitPathsToArguments: {
|
|
2253
|
+
details: "$[0]",
|
|
2254
|
+
returnEntity: "$[1].returnEntity"
|
|
2255
|
+
},
|
|
2256
|
+
singleArgumentUnchanged: false
|
|
2257
|
+
},
|
|
2258
|
+
["details", "options"]
|
|
2259
|
+
);
|
|
2260
|
+
sideEffects?.onError?.(err);
|
|
2261
|
+
throw transformedError;
|
|
2262
|
+
}
|
|
2263
|
+
}
|
|
2264
2264
|
async function createBooking2(booking, options) {
|
|
2265
2265
|
const { httpClient, sideEffects } = arguments[2];
|
|
2266
2266
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
@@ -2366,7 +2366,7 @@ async function rescheduleBooking2(bookingId, slot, options) {
|
|
|
2366
2366
|
throw transformedError;
|
|
2367
2367
|
}
|
|
2368
2368
|
}
|
|
2369
|
-
async function
|
|
2369
|
+
async function confirmBooking(bookingId, revision, options) {
|
|
2370
2370
|
const { httpClient, sideEffects } = arguments[3];
|
|
2371
2371
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2372
2372
|
bookingId,
|
|
@@ -2377,7 +2377,7 @@ async function confirmBooking2(bookingId, revision, options) {
|
|
|
2377
2377
|
doubleBooked: options?.doubleBooked,
|
|
2378
2378
|
flowControlSettings: options?.flowControlSettings
|
|
2379
2379
|
});
|
|
2380
|
-
const reqOpts =
|
|
2380
|
+
const reqOpts = bookingsConfirmBooking(payload);
|
|
2381
2381
|
sideEffects?.onSiteCall?.();
|
|
2382
2382
|
try {
|
|
2383
2383
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2462,7 +2462,7 @@ async function updateExtendedFields2(_id, namespace, options) {
|
|
|
2462
2462
|
throw transformedError;
|
|
2463
2463
|
}
|
|
2464
2464
|
}
|
|
2465
|
-
async function
|
|
2465
|
+
async function declineBooking(bookingId, revision, options) {
|
|
2466
2466
|
const { httpClient, sideEffects } = arguments[3];
|
|
2467
2467
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2468
2468
|
bookingId,
|
|
@@ -2472,7 +2472,7 @@ async function declineBooking2(bookingId, revision, options) {
|
|
|
2472
2472
|
doubleBooked: options?.doubleBooked,
|
|
2473
2473
|
flowControlSettings: options?.flowControlSettings
|
|
2474
2474
|
});
|
|
2475
|
-
const reqOpts =
|
|
2475
|
+
const reqOpts = bookingsDeclineBooking(payload);
|
|
2476
2476
|
sideEffects?.onSiteCall?.();
|
|
2477
2477
|
try {
|
|
2478
2478
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2499,7 +2499,7 @@ async function declineBooking2(bookingId, revision, options) {
|
|
|
2499
2499
|
throw transformedError;
|
|
2500
2500
|
}
|
|
2501
2501
|
}
|
|
2502
|
-
async function
|
|
2502
|
+
async function cancelBooking(bookingId, options) {
|
|
2503
2503
|
const { httpClient, sideEffects } = arguments[2];
|
|
2504
2504
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2505
2505
|
bookingId,
|
|
@@ -2507,7 +2507,7 @@ async function cancelBooking2(bookingId, options) {
|
|
|
2507
2507
|
flowControlSettings: options?.flowControlSettings,
|
|
2508
2508
|
revision: options?.revision
|
|
2509
2509
|
});
|
|
2510
|
-
const reqOpts =
|
|
2510
|
+
const reqOpts = bookingsCancelBooking(payload);
|
|
2511
2511
|
sideEffects?.onSiteCall?.();
|
|
2512
2512
|
try {
|
|
2513
2513
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2532,7 +2532,7 @@ async function cancelBooking2(bookingId, options) {
|
|
|
2532
2532
|
throw transformedError;
|
|
2533
2533
|
}
|
|
2534
2534
|
}
|
|
2535
|
-
async function
|
|
2535
|
+
async function updateNumberOfParticipants(bookingId, options) {
|
|
2536
2536
|
const { httpClient, sideEffects } = arguments[2];
|
|
2537
2537
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2538
2538
|
bookingId,
|
|
@@ -2540,7 +2540,7 @@ async function updateNumberOfParticipants2(bookingId, options) {
|
|
|
2540
2540
|
totalParticipants: options?.totalParticipants,
|
|
2541
2541
|
participantsChoices: options?.participantsChoices
|
|
2542
2542
|
});
|
|
2543
|
-
const reqOpts =
|
|
2543
|
+
const reqOpts = bookingsUpdateNumberOfParticipants(payload);
|
|
2544
2544
|
sideEffects?.onSiteCall?.();
|
|
2545
2545
|
try {
|
|
2546
2546
|
const result = await httpClient.request(reqOpts);
|