@wix/auto_sdk_bookings_bookings 1.0.123 → 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.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
|
@@ -1231,8 +1231,8 @@ function rescheduleBooking(payload) {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
return __rescheduleBooking;
|
|
1233
1233
|
}
|
|
1234
|
-
function
|
|
1235
|
-
function
|
|
1234
|
+
function bookingsConfirmBooking(payload) {
|
|
1235
|
+
function __bookingsConfirmBooking({ host }) {
|
|
1236
1236
|
const metadata = {
|
|
1237
1237
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1238
1238
|
method: "POST",
|
|
@@ -1269,7 +1269,7 @@ function confirmBooking(payload) {
|
|
|
1269
1269
|
};
|
|
1270
1270
|
return metadata;
|
|
1271
1271
|
}
|
|
1272
|
-
return
|
|
1272
|
+
return __bookingsConfirmBooking;
|
|
1273
1273
|
}
|
|
1274
1274
|
function setBookingSubmissionId(payload) {
|
|
1275
1275
|
function __setBookingSubmissionId({ host }) {
|
|
@@ -1332,8 +1332,8 @@ function updateExtendedFields(payload) {
|
|
|
1332
1332
|
}
|
|
1333
1333
|
return __updateExtendedFields;
|
|
1334
1334
|
}
|
|
1335
|
-
function
|
|
1336
|
-
function
|
|
1335
|
+
function bookingsDeclineBooking(payload) {
|
|
1336
|
+
function __bookingsDeclineBooking({ host }) {
|
|
1337
1337
|
const metadata = {
|
|
1338
1338
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1339
1339
|
method: "POST",
|
|
@@ -1370,10 +1370,10 @@ function declineBooking(payload) {
|
|
|
1370
1370
|
};
|
|
1371
1371
|
return metadata;
|
|
1372
1372
|
}
|
|
1373
|
-
return
|
|
1373
|
+
return __bookingsDeclineBooking;
|
|
1374
1374
|
}
|
|
1375
|
-
function
|
|
1376
|
-
function
|
|
1375
|
+
function bookingsCancelBooking(payload) {
|
|
1376
|
+
function __bookingsCancelBooking({ host }) {
|
|
1377
1377
|
const metadata = {
|
|
1378
1378
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1379
1379
|
method: "POST",
|
|
@@ -1410,10 +1410,10 @@ function cancelBooking(payload) {
|
|
|
1410
1410
|
};
|
|
1411
1411
|
return metadata;
|
|
1412
1412
|
}
|
|
1413
|
-
return
|
|
1413
|
+
return __bookingsCancelBooking;
|
|
1414
1414
|
}
|
|
1415
|
-
function
|
|
1416
|
-
function
|
|
1415
|
+
function bookingsUpdateNumberOfParticipants(payload) {
|
|
1416
|
+
function __bookingsUpdateNumberOfParticipants({ host }) {
|
|
1417
1417
|
const metadata = {
|
|
1418
1418
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1419
1419
|
method: "POST",
|
|
@@ -1450,7 +1450,7 @@ function updateNumberOfParticipants(payload) {
|
|
|
1450
1450
|
};
|
|
1451
1451
|
return metadata;
|
|
1452
1452
|
}
|
|
1453
|
-
return
|
|
1453
|
+
return __bookingsUpdateNumberOfParticipants;
|
|
1454
1454
|
}
|
|
1455
1455
|
function bulkCalculateAllowedActions(payload) {
|
|
1456
1456
|
function __bulkCalculateAllowedActions({ host }) {
|
|
@@ -2301,7 +2301,7 @@ async function rescheduleBooking2(bookingId, slot, options) {
|
|
|
2301
2301
|
throw transformedError;
|
|
2302
2302
|
}
|
|
2303
2303
|
}
|
|
2304
|
-
async function
|
|
2304
|
+
async function confirmBooking(bookingId, revision, options) {
|
|
2305
2305
|
const { httpClient, sideEffects } = arguments[3];
|
|
2306
2306
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2307
2307
|
bookingId,
|
|
@@ -2312,7 +2312,7 @@ async function confirmBooking2(bookingId, revision, options) {
|
|
|
2312
2312
|
doubleBooked: options?.doubleBooked,
|
|
2313
2313
|
flowControlSettings: options?.flowControlSettings
|
|
2314
2314
|
});
|
|
2315
|
-
const reqOpts =
|
|
2315
|
+
const reqOpts = bookingsConfirmBooking(payload);
|
|
2316
2316
|
sideEffects?.onSiteCall?.();
|
|
2317
2317
|
try {
|
|
2318
2318
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2397,7 +2397,7 @@ async function updateExtendedFields2(_id, namespace, options) {
|
|
|
2397
2397
|
throw transformedError;
|
|
2398
2398
|
}
|
|
2399
2399
|
}
|
|
2400
|
-
async function
|
|
2400
|
+
async function declineBooking(bookingId, revision, options) {
|
|
2401
2401
|
const { httpClient, sideEffects } = arguments[3];
|
|
2402
2402
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2403
2403
|
bookingId,
|
|
@@ -2407,7 +2407,7 @@ async function declineBooking2(bookingId, revision, options) {
|
|
|
2407
2407
|
doubleBooked: options?.doubleBooked,
|
|
2408
2408
|
flowControlSettings: options?.flowControlSettings
|
|
2409
2409
|
});
|
|
2410
|
-
const reqOpts =
|
|
2410
|
+
const reqOpts = bookingsDeclineBooking(payload);
|
|
2411
2411
|
sideEffects?.onSiteCall?.();
|
|
2412
2412
|
try {
|
|
2413
2413
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2434,7 +2434,7 @@ async function declineBooking2(bookingId, revision, options) {
|
|
|
2434
2434
|
throw transformedError;
|
|
2435
2435
|
}
|
|
2436
2436
|
}
|
|
2437
|
-
async function
|
|
2437
|
+
async function cancelBooking(bookingId, options) {
|
|
2438
2438
|
const { httpClient, sideEffects } = arguments[2];
|
|
2439
2439
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2440
2440
|
bookingId,
|
|
@@ -2442,7 +2442,7 @@ async function cancelBooking2(bookingId, options) {
|
|
|
2442
2442
|
flowControlSettings: options?.flowControlSettings,
|
|
2443
2443
|
revision: options?.revision
|
|
2444
2444
|
});
|
|
2445
|
-
const reqOpts =
|
|
2445
|
+
const reqOpts = bookingsCancelBooking(payload);
|
|
2446
2446
|
sideEffects?.onSiteCall?.();
|
|
2447
2447
|
try {
|
|
2448
2448
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2467,7 +2467,7 @@ async function cancelBooking2(bookingId, options) {
|
|
|
2467
2467
|
throw transformedError;
|
|
2468
2468
|
}
|
|
2469
2469
|
}
|
|
2470
|
-
async function
|
|
2470
|
+
async function updateNumberOfParticipants(bookingId, options) {
|
|
2471
2471
|
const { httpClient, sideEffects } = arguments[2];
|
|
2472
2472
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
2473
2473
|
bookingId,
|
|
@@ -2475,7 +2475,7 @@ async function updateNumberOfParticipants2(bookingId, options) {
|
|
|
2475
2475
|
totalParticipants: options?.totalParticipants,
|
|
2476
2476
|
participantsChoices: options?.participantsChoices
|
|
2477
2477
|
});
|
|
2478
|
-
const reqOpts =
|
|
2478
|
+
const reqOpts = bookingsUpdateNumberOfParticipants(payload);
|
|
2479
2479
|
sideEffects?.onSiteCall?.();
|
|
2480
2480
|
try {
|
|
2481
2481
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2714,15 +2714,15 @@ export {
|
|
|
2714
2714
|
bulkConfirmOrDeclineBooking2 as bulkConfirmOrDeclineBooking,
|
|
2715
2715
|
bulkCreateBooking2 as bulkCreateBooking,
|
|
2716
2716
|
bulkGetMultiServiceBookingAllowedActions2 as bulkGetMultiServiceBookingAllowedActions,
|
|
2717
|
-
|
|
2717
|
+
cancelBooking,
|
|
2718
2718
|
cancelBookingAnonymously2 as cancelBookingAnonymously,
|
|
2719
2719
|
cancelMultiServiceBooking2 as cancelMultiServiceBooking,
|
|
2720
|
-
|
|
2720
|
+
confirmBooking,
|
|
2721
2721
|
confirmMultiServiceBooking2 as confirmMultiServiceBooking,
|
|
2722
2722
|
confirmOrDeclineBooking2 as confirmOrDeclineBooking,
|
|
2723
2723
|
createBooking2 as createBooking,
|
|
2724
2724
|
createMultiServiceBooking2 as createMultiServiceBooking,
|
|
2725
|
-
|
|
2725
|
+
declineBooking,
|
|
2726
2726
|
declineMultiServiceBooking2 as declineMultiServiceBooking,
|
|
2727
2727
|
getAnonymousActionDetails2 as getAnonymousActionDetails,
|
|
2728
2728
|
getBookingAnonymously2 as getBookingAnonymously,
|
|
@@ -2737,6 +2737,6 @@ export {
|
|
|
2737
2737
|
rescheduleMultiServiceBooking2 as rescheduleMultiServiceBooking,
|
|
2738
2738
|
setBookingSubmissionId2 as setBookingSubmissionId,
|
|
2739
2739
|
updateExtendedFields2 as updateExtendedFields,
|
|
2740
|
-
|
|
2740
|
+
updateNumberOfParticipants
|
|
2741
2741
|
};
|
|
2742
2742
|
//# sourceMappingURL=index.typings.mjs.map
|