@wix/auto_sdk_bookings_bookings 1.0.123 → 1.0.125
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.d.ts +9 -0
- 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.d.mts +9 -0
- 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.d.ts +9 -0
- 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.d.mts +9 -0
- 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
package/build/cjs/index.js
CHANGED
|
@@ -39,15 +39,15 @@ __export(index_exports, {
|
|
|
39
39
|
bulkConfirmOrDeclineBooking: () => bulkConfirmOrDeclineBooking4,
|
|
40
40
|
bulkCreateBooking: () => bulkCreateBooking4,
|
|
41
41
|
bulkGetMultiServiceBookingAllowedActions: () => bulkGetMultiServiceBookingAllowedActions4,
|
|
42
|
-
cancelBooking: () =>
|
|
42
|
+
cancelBooking: () => cancelBooking3,
|
|
43
43
|
cancelBookingAnonymously: () => cancelBookingAnonymously4,
|
|
44
44
|
cancelMultiServiceBooking: () => cancelMultiServiceBooking4,
|
|
45
|
-
confirmBooking: () =>
|
|
45
|
+
confirmBooking: () => confirmBooking3,
|
|
46
46
|
confirmMultiServiceBooking: () => confirmMultiServiceBooking4,
|
|
47
47
|
confirmOrDeclineBooking: () => confirmOrDeclineBooking4,
|
|
48
48
|
createBooking: () => createBooking4,
|
|
49
49
|
createMultiServiceBooking: () => createMultiServiceBooking4,
|
|
50
|
-
declineBooking: () =>
|
|
50
|
+
declineBooking: () => declineBooking3,
|
|
51
51
|
declineMultiServiceBooking: () => declineMultiServiceBooking4,
|
|
52
52
|
getAnonymousActionDetails: () => getAnonymousActionDetails4,
|
|
53
53
|
getBookingAnonymously: () => getBookingAnonymously4,
|
|
@@ -70,7 +70,7 @@ __export(index_exports, {
|
|
|
70
70
|
rescheduleMultiServiceBooking: () => rescheduleMultiServiceBooking4,
|
|
71
71
|
setBookingSubmissionId: () => setBookingSubmissionId4,
|
|
72
72
|
updateExtendedFields: () => updateExtendedFields4,
|
|
73
|
-
updateNumberOfParticipants: () =>
|
|
73
|
+
updateNumberOfParticipants: () => updateNumberOfParticipants3
|
|
74
74
|
});
|
|
75
75
|
module.exports = __toCommonJS(index_exports);
|
|
76
76
|
|
|
@@ -1311,8 +1311,8 @@ function rescheduleBooking(payload) {
|
|
|
1311
1311
|
}
|
|
1312
1312
|
return __rescheduleBooking;
|
|
1313
1313
|
}
|
|
1314
|
-
function
|
|
1315
|
-
function
|
|
1314
|
+
function bookingsConfirmBooking(payload) {
|
|
1315
|
+
function __bookingsConfirmBooking({ host }) {
|
|
1316
1316
|
const metadata = {
|
|
1317
1317
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1318
1318
|
method: "POST",
|
|
@@ -1349,7 +1349,7 @@ function confirmBooking(payload) {
|
|
|
1349
1349
|
};
|
|
1350
1350
|
return metadata;
|
|
1351
1351
|
}
|
|
1352
|
-
return
|
|
1352
|
+
return __bookingsConfirmBooking;
|
|
1353
1353
|
}
|
|
1354
1354
|
function setBookingSubmissionId(payload) {
|
|
1355
1355
|
function __setBookingSubmissionId({ host }) {
|
|
@@ -1412,8 +1412,8 @@ function updateExtendedFields(payload) {
|
|
|
1412
1412
|
}
|
|
1413
1413
|
return __updateExtendedFields;
|
|
1414
1414
|
}
|
|
1415
|
-
function
|
|
1416
|
-
function
|
|
1415
|
+
function bookingsDeclineBooking(payload) {
|
|
1416
|
+
function __bookingsDeclineBooking({ host }) {
|
|
1417
1417
|
const metadata = {
|
|
1418
1418
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1419
1419
|
method: "POST",
|
|
@@ -1450,10 +1450,10 @@ function declineBooking(payload) {
|
|
|
1450
1450
|
};
|
|
1451
1451
|
return metadata;
|
|
1452
1452
|
}
|
|
1453
|
-
return
|
|
1453
|
+
return __bookingsDeclineBooking;
|
|
1454
1454
|
}
|
|
1455
|
-
function
|
|
1456
|
-
function
|
|
1455
|
+
function bookingsCancelBooking(payload) {
|
|
1456
|
+
function __bookingsCancelBooking({ host }) {
|
|
1457
1457
|
const metadata = {
|
|
1458
1458
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1459
1459
|
method: "POST",
|
|
@@ -1490,10 +1490,10 @@ function cancelBooking(payload) {
|
|
|
1490
1490
|
};
|
|
1491
1491
|
return metadata;
|
|
1492
1492
|
}
|
|
1493
|
-
return
|
|
1493
|
+
return __bookingsCancelBooking;
|
|
1494
1494
|
}
|
|
1495
|
-
function
|
|
1496
|
-
function
|
|
1495
|
+
function bookingsUpdateNumberOfParticipants(payload) {
|
|
1496
|
+
function __bookingsUpdateNumberOfParticipants({ host }) {
|
|
1497
1497
|
const metadata = {
|
|
1498
1498
|
entityFqdn: "wix.bookings.v2.booking",
|
|
1499
1499
|
method: "POST",
|
|
@@ -1530,7 +1530,7 @@ function updateNumberOfParticipants(payload) {
|
|
|
1530
1530
|
};
|
|
1531
1531
|
return metadata;
|
|
1532
1532
|
}
|
|
1533
|
-
return
|
|
1533
|
+
return __bookingsUpdateNumberOfParticipants;
|
|
1534
1534
|
}
|
|
1535
1535
|
function bulkCalculateAllowedActions(payload) {
|
|
1536
1536
|
function __bulkCalculateAllowedActions({ host }) {
|
|
@@ -2381,7 +2381,7 @@ async function rescheduleBooking2(bookingId, slot, options) {
|
|
|
2381
2381
|
throw transformedError;
|
|
2382
2382
|
}
|
|
2383
2383
|
}
|
|
2384
|
-
async function
|
|
2384
|
+
async function confirmBooking(bookingId, revision, options) {
|
|
2385
2385
|
const { httpClient, sideEffects } = arguments[3];
|
|
2386
2386
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2387
2387
|
bookingId,
|
|
@@ -2392,7 +2392,7 @@ async function confirmBooking2(bookingId, revision, options) {
|
|
|
2392
2392
|
doubleBooked: options?.doubleBooked,
|
|
2393
2393
|
flowControlSettings: options?.flowControlSettings
|
|
2394
2394
|
});
|
|
2395
|
-
const reqOpts =
|
|
2395
|
+
const reqOpts = bookingsConfirmBooking(payload);
|
|
2396
2396
|
sideEffects?.onSiteCall?.();
|
|
2397
2397
|
try {
|
|
2398
2398
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2477,7 +2477,7 @@ async function updateExtendedFields2(_id, namespace, options) {
|
|
|
2477
2477
|
throw transformedError;
|
|
2478
2478
|
}
|
|
2479
2479
|
}
|
|
2480
|
-
async function
|
|
2480
|
+
async function declineBooking(bookingId, revision, options) {
|
|
2481
2481
|
const { httpClient, sideEffects } = arguments[3];
|
|
2482
2482
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2483
2483
|
bookingId,
|
|
@@ -2487,7 +2487,7 @@ async function declineBooking2(bookingId, revision, options) {
|
|
|
2487
2487
|
doubleBooked: options?.doubleBooked,
|
|
2488
2488
|
flowControlSettings: options?.flowControlSettings
|
|
2489
2489
|
});
|
|
2490
|
-
const reqOpts =
|
|
2490
|
+
const reqOpts = bookingsDeclineBooking(payload);
|
|
2491
2491
|
sideEffects?.onSiteCall?.();
|
|
2492
2492
|
try {
|
|
2493
2493
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2514,7 +2514,7 @@ async function declineBooking2(bookingId, revision, options) {
|
|
|
2514
2514
|
throw transformedError;
|
|
2515
2515
|
}
|
|
2516
2516
|
}
|
|
2517
|
-
async function
|
|
2517
|
+
async function cancelBooking(bookingId, options) {
|
|
2518
2518
|
const { httpClient, sideEffects } = arguments[2];
|
|
2519
2519
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2520
2520
|
bookingId,
|
|
@@ -2522,7 +2522,7 @@ async function cancelBooking2(bookingId, options) {
|
|
|
2522
2522
|
flowControlSettings: options?.flowControlSettings,
|
|
2523
2523
|
revision: options?.revision
|
|
2524
2524
|
});
|
|
2525
|
-
const reqOpts =
|
|
2525
|
+
const reqOpts = bookingsCancelBooking(payload);
|
|
2526
2526
|
sideEffects?.onSiteCall?.();
|
|
2527
2527
|
try {
|
|
2528
2528
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2547,7 +2547,7 @@ async function cancelBooking2(bookingId, options) {
|
|
|
2547
2547
|
throw transformedError;
|
|
2548
2548
|
}
|
|
2549
2549
|
}
|
|
2550
|
-
async function
|
|
2550
|
+
async function updateNumberOfParticipants(bookingId, options) {
|
|
2551
2551
|
const { httpClient, sideEffects } = arguments[2];
|
|
2552
2552
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
2553
2553
|
bookingId,
|
|
@@ -2555,7 +2555,7 @@ async function updateNumberOfParticipants2(bookingId, options) {
|
|
|
2555
2555
|
totalParticipants: options?.totalParticipants,
|
|
2556
2556
|
participantsChoices: options?.participantsChoices
|
|
2557
2557
|
});
|
|
2558
|
-
const reqOpts =
|
|
2558
|
+
const reqOpts = bookingsUpdateNumberOfParticipants(payload);
|
|
2559
2559
|
sideEffects?.onSiteCall?.();
|
|
2560
2560
|
try {
|
|
2561
2561
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2903,8 +2903,8 @@ function rescheduleBooking3(httpClient) {
|
|
|
2903
2903
|
{ httpClient }
|
|
2904
2904
|
);
|
|
2905
2905
|
}
|
|
2906
|
-
function
|
|
2907
|
-
return (bookingId, revision, options) =>
|
|
2906
|
+
function confirmBooking2(httpClient) {
|
|
2907
|
+
return (bookingId, revision, options) => confirmBooking(
|
|
2908
2908
|
bookingId,
|
|
2909
2909
|
revision,
|
|
2910
2910
|
options,
|
|
@@ -2929,8 +2929,8 @@ function updateExtendedFields3(httpClient) {
|
|
|
2929
2929
|
{ httpClient }
|
|
2930
2930
|
);
|
|
2931
2931
|
}
|
|
2932
|
-
function
|
|
2933
|
-
return (bookingId, revision, options) =>
|
|
2932
|
+
function declineBooking2(httpClient) {
|
|
2933
|
+
return (bookingId, revision, options) => declineBooking(
|
|
2934
2934
|
bookingId,
|
|
2935
2935
|
revision,
|
|
2936
2936
|
options,
|
|
@@ -2938,16 +2938,16 @@ function declineBooking3(httpClient) {
|
|
|
2938
2938
|
{ httpClient }
|
|
2939
2939
|
);
|
|
2940
2940
|
}
|
|
2941
|
-
function
|
|
2942
|
-
return (bookingId, options) =>
|
|
2941
|
+
function cancelBooking2(httpClient) {
|
|
2942
|
+
return (bookingId, options) => cancelBooking(
|
|
2943
2943
|
bookingId,
|
|
2944
2944
|
options,
|
|
2945
2945
|
// @ts-ignore
|
|
2946
2946
|
{ httpClient }
|
|
2947
2947
|
);
|
|
2948
2948
|
}
|
|
2949
|
-
function
|
|
2950
|
-
return (bookingId, options) =>
|
|
2949
|
+
function updateNumberOfParticipants2(httpClient) {
|
|
2950
|
+
return (bookingId, options) => updateNumberOfParticipants(
|
|
2951
2951
|
bookingId,
|
|
2952
2952
|
options,
|
|
2953
2953
|
// @ts-ignore
|
|
@@ -3275,12 +3275,12 @@ var bulkConfirmOrDeclineBooking4 = /* @__PURE__ */ (0, import_rest_modules3.crea
|
|
|
3275
3275
|
var createBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createBooking3);
|
|
3276
3276
|
var bulkCreateBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateBooking3);
|
|
3277
3277
|
var rescheduleBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(rescheduleBooking3);
|
|
3278
|
-
var
|
|
3278
|
+
var confirmBooking3 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(confirmBooking2);
|
|
3279
3279
|
var setBookingSubmissionId4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(setBookingSubmissionId3);
|
|
3280
3280
|
var updateExtendedFields4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateExtendedFields3);
|
|
3281
|
-
var
|
|
3282
|
-
var
|
|
3283
|
-
var
|
|
3281
|
+
var declineBooking3 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(declineBooking2);
|
|
3282
|
+
var cancelBooking3 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(cancelBooking2);
|
|
3283
|
+
var updateNumberOfParticipants3 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateNumberOfParticipants2);
|
|
3284
3284
|
var bulkCalculateAllowedActions4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCalculateAllowedActions3);
|
|
3285
3285
|
var markBookingAsPending4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(markBookingAsPending3);
|
|
3286
3286
|
var getAnonymousActionDetails4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getAnonymousActionDetails3);
|