@wix/auto_sdk_bookings_bookings 1.0.114 → 1.0.115
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.js +36 -36
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +24 -24
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +5 -5
- package/build/cjs/meta.js +24 -24
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +36 -36
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +24 -24
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +5 -5
- package/build/es/meta.mjs +24 -24
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +36 -36
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.js +24 -24
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +5 -5
- package/build/internal/cjs/meta.js +24 -24
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +36 -36
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.mjs +24 -24
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +5 -5
- package/build/internal/es/meta.mjs +24 -24
- 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: () => cancelBooking2,
|
|
43
43
|
cancelBookingAnonymously: () => cancelBookingAnonymously2,
|
|
44
44
|
cancelMultiServiceBooking: () => cancelMultiServiceBooking2,
|
|
45
|
-
confirmBooking: () =>
|
|
45
|
+
confirmBooking: () => confirmBooking2,
|
|
46
46
|
confirmMultiServiceBooking: () => confirmMultiServiceBooking2,
|
|
47
47
|
confirmOrDeclineBooking: () => confirmOrDeclineBooking2,
|
|
48
48
|
createBooking: () => createBooking2,
|
|
49
49
|
createMultiServiceBooking: () => createMultiServiceBooking2,
|
|
50
|
-
declineBooking: () =>
|
|
50
|
+
declineBooking: () => declineBooking2,
|
|
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: () => updateNumberOfParticipants2
|
|
66
66
|
});
|
|
67
67
|
module.exports = __toCommonJS(index_typings_exports);
|
|
68
68
|
|
|
@@ -1296,8 +1296,8 @@ function rescheduleBooking(payload) {
|
|
|
1296
1296
|
}
|
|
1297
1297
|
return __rescheduleBooking;
|
|
1298
1298
|
}
|
|
1299
|
-
function
|
|
1300
|
-
function
|
|
1299
|
+
function confirmBooking(payload) {
|
|
1300
|
+
function __confirmBooking({ host }) {
|
|
1301
1301
|
const metadata = {
|
|
1302
1302
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1303
1303
|
method: "POST",
|
|
@@ -1334,7 +1334,7 @@ function bookingsConfirmBooking(payload) {
|
|
|
1334
1334
|
};
|
|
1335
1335
|
return metadata;
|
|
1336
1336
|
}
|
|
1337
|
-
return
|
|
1337
|
+
return __confirmBooking;
|
|
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 declineBooking(payload) {
|
|
1401
|
+
function __declineBooking({ host }) {
|
|
1402
1402
|
const metadata = {
|
|
1403
1403
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1404
1404
|
method: "POST",
|
|
@@ -1435,10 +1435,10 @@ function bookingsDeclineBooking(payload) {
|
|
|
1435
1435
|
};
|
|
1436
1436
|
return metadata;
|
|
1437
1437
|
}
|
|
1438
|
-
return
|
|
1438
|
+
return __declineBooking;
|
|
1439
1439
|
}
|
|
1440
|
-
function
|
|
1441
|
-
function
|
|
1440
|
+
function cancelBooking(payload) {
|
|
1441
|
+
function __cancelBooking({ host }) {
|
|
1442
1442
|
const metadata = {
|
|
1443
1443
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1444
1444
|
method: "POST",
|
|
@@ -1475,10 +1475,10 @@ function bookingsCancelBooking(payload) {
|
|
|
1475
1475
|
};
|
|
1476
1476
|
return metadata;
|
|
1477
1477
|
}
|
|
1478
|
-
return
|
|
1478
|
+
return __cancelBooking;
|
|
1479
1479
|
}
|
|
1480
|
-
function
|
|
1481
|
-
function
|
|
1480
|
+
function updateNumberOfParticipants(payload) {
|
|
1481
|
+
function __updateNumberOfParticipants({ host }) {
|
|
1482
1482
|
const metadata = {
|
|
1483
1483
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1484
1484
|
method: "POST",
|
|
@@ -1515,7 +1515,7 @@ function bookingsUpdateNumberOfParticipants(payload) {
|
|
|
1515
1515
|
};
|
|
1516
1516
|
return metadata;
|
|
1517
1517
|
}
|
|
1518
|
-
return
|
|
1518
|
+
return __updateNumberOfParticipants;
|
|
1519
1519
|
}
|
|
1520
1520
|
function bulkCalculateAllowedActions(payload) {
|
|
1521
1521
|
function __bulkCalculateAllowedActions({ host }) {
|
|
@@ -2366,7 +2366,7 @@ async function rescheduleBooking2(bookingId, slot, options) {
|
|
|
2366
2366
|
throw transformedError;
|
|
2367
2367
|
}
|
|
2368
2368
|
}
|
|
2369
|
-
async function
|
|
2369
|
+
async function confirmBooking2(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 confirmBooking(bookingId, revision, options) {
|
|
|
2377
2377
|
doubleBooked: options?.doubleBooked,
|
|
2378
2378
|
flowControlSettings: options?.flowControlSettings
|
|
2379
2379
|
});
|
|
2380
|
-
const reqOpts =
|
|
2380
|
+
const reqOpts = confirmBooking(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 declineBooking2(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 declineBooking(bookingId, revision, options) {
|
|
|
2472
2472
|
doubleBooked: options?.doubleBooked,
|
|
2473
2473
|
flowControlSettings: options?.flowControlSettings
|
|
2474
2474
|
});
|
|
2475
|
-
const reqOpts =
|
|
2475
|
+
const reqOpts = declineBooking(payload);
|
|
2476
2476
|
sideEffects?.onSiteCall?.();
|
|
2477
2477
|
try {
|
|
2478
2478
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2499,7 +2499,7 @@ async function declineBooking(bookingId, revision, options) {
|
|
|
2499
2499
|
throw transformedError;
|
|
2500
2500
|
}
|
|
2501
2501
|
}
|
|
2502
|
-
async function
|
|
2502
|
+
async function cancelBooking2(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 cancelBooking(bookingId, options) {
|
|
|
2507
2507
|
flowControlSettings: options?.flowControlSettings,
|
|
2508
2508
|
revision: options?.revision
|
|
2509
2509
|
});
|
|
2510
|
-
const reqOpts =
|
|
2510
|
+
const reqOpts = cancelBooking(payload);
|
|
2511
2511
|
sideEffects?.onSiteCall?.();
|
|
2512
2512
|
try {
|
|
2513
2513
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2532,7 +2532,7 @@ async function cancelBooking(bookingId, options) {
|
|
|
2532
2532
|
throw transformedError;
|
|
2533
2533
|
}
|
|
2534
2534
|
}
|
|
2535
|
-
async function
|
|
2535
|
+
async function updateNumberOfParticipants2(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 updateNumberOfParticipants(bookingId, options) {
|
|
|
2540
2540
|
totalParticipants: options?.totalParticipants,
|
|
2541
2541
|
participantsChoices: options?.participantsChoices
|
|
2542
2542
|
});
|
|
2543
|
-
const reqOpts =
|
|
2543
|
+
const reqOpts = updateNumberOfParticipants(payload);
|
|
2544
2544
|
sideEffects?.onSiteCall?.();
|
|
2545
2545
|
try {
|
|
2546
2546
|
const result = await httpClient.request(reqOpts);
|