@wix/auto_sdk_bookings_bookings 1.0.43 → 1.0.44
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.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.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.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.mjs +24 -24
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/index.mjs
CHANGED
|
@@ -489,8 +489,8 @@ function rescheduleBooking(payload) {
|
|
|
489
489
|
}
|
|
490
490
|
return __rescheduleBooking;
|
|
491
491
|
}
|
|
492
|
-
function
|
|
493
|
-
function
|
|
492
|
+
function bookingsConfirmBooking(payload) {
|
|
493
|
+
function __bookingsConfirmBooking({ host }) {
|
|
494
494
|
const metadata = {
|
|
495
495
|
entityFqdn: "wix.bookings.v2.booking",
|
|
496
496
|
method: "POST",
|
|
@@ -524,7 +524,7 @@ function confirmBooking(payload) {
|
|
|
524
524
|
};
|
|
525
525
|
return metadata;
|
|
526
526
|
}
|
|
527
|
-
return
|
|
527
|
+
return __bookingsConfirmBooking;
|
|
528
528
|
}
|
|
529
529
|
function setBookingSubmissionId(payload) {
|
|
530
530
|
function __setBookingSubmissionId({ host }) {
|
|
@@ -581,8 +581,8 @@ function updateExtendedFields(payload) {
|
|
|
581
581
|
}
|
|
582
582
|
return __updateExtendedFields;
|
|
583
583
|
}
|
|
584
|
-
function
|
|
585
|
-
function
|
|
584
|
+
function bookingsDeclineBooking(payload) {
|
|
585
|
+
function __bookingsDeclineBooking({ host }) {
|
|
586
586
|
const metadata = {
|
|
587
587
|
entityFqdn: "wix.bookings.v2.booking",
|
|
588
588
|
method: "POST",
|
|
@@ -616,10 +616,10 @@ function declineBooking(payload) {
|
|
|
616
616
|
};
|
|
617
617
|
return metadata;
|
|
618
618
|
}
|
|
619
|
-
return
|
|
619
|
+
return __bookingsDeclineBooking;
|
|
620
620
|
}
|
|
621
|
-
function
|
|
622
|
-
function
|
|
621
|
+
function bookingsCancelBooking(payload) {
|
|
622
|
+
function __bookingsCancelBooking({ host }) {
|
|
623
623
|
const metadata = {
|
|
624
624
|
entityFqdn: "wix.bookings.v2.booking",
|
|
625
625
|
method: "POST",
|
|
@@ -653,10 +653,10 @@ function cancelBooking(payload) {
|
|
|
653
653
|
};
|
|
654
654
|
return metadata;
|
|
655
655
|
}
|
|
656
|
-
return
|
|
656
|
+
return __bookingsCancelBooking;
|
|
657
657
|
}
|
|
658
|
-
function
|
|
659
|
-
function
|
|
658
|
+
function bookingsUpdateNumberOfParticipants(payload) {
|
|
659
|
+
function __bookingsUpdateNumberOfParticipants({ host }) {
|
|
660
660
|
const metadata = {
|
|
661
661
|
entityFqdn: "wix.bookings.v2.booking",
|
|
662
662
|
method: "POST",
|
|
@@ -690,7 +690,7 @@ function updateNumberOfParticipants(payload) {
|
|
|
690
690
|
};
|
|
691
691
|
return metadata;
|
|
692
692
|
}
|
|
693
|
-
return
|
|
693
|
+
return __bookingsUpdateNumberOfParticipants;
|
|
694
694
|
}
|
|
695
695
|
function createMultiServiceBooking(payload) {
|
|
696
696
|
function __createMultiServiceBooking({ host }) {
|
|
@@ -1370,7 +1370,7 @@ async function rescheduleBooking2(bookingId, slot, options) {
|
|
|
1370
1370
|
throw transformedError;
|
|
1371
1371
|
}
|
|
1372
1372
|
}
|
|
1373
|
-
async function
|
|
1373
|
+
async function confirmBooking(bookingId, revision, options) {
|
|
1374
1374
|
const { httpClient, sideEffects } = arguments[3];
|
|
1375
1375
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1376
1376
|
bookingId,
|
|
@@ -1381,7 +1381,7 @@ async function confirmBooking2(bookingId, revision, options) {
|
|
|
1381
1381
|
doubleBooked: options?.doubleBooked,
|
|
1382
1382
|
flowControlSettings: options?.flowControlSettings
|
|
1383
1383
|
});
|
|
1384
|
-
const reqOpts =
|
|
1384
|
+
const reqOpts = bookingsConfirmBooking(payload);
|
|
1385
1385
|
sideEffects?.onSiteCall?.();
|
|
1386
1386
|
try {
|
|
1387
1387
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1466,7 +1466,7 @@ async function updateExtendedFields2(_id, namespace, options) {
|
|
|
1466
1466
|
throw transformedError;
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
1469
|
-
async function
|
|
1469
|
+
async function declineBooking(bookingId, revision, options) {
|
|
1470
1470
|
const { httpClient, sideEffects } = arguments[3];
|
|
1471
1471
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1472
1472
|
bookingId,
|
|
@@ -1476,7 +1476,7 @@ async function declineBooking2(bookingId, revision, options) {
|
|
|
1476
1476
|
doubleBooked: options?.doubleBooked,
|
|
1477
1477
|
flowControlSettings: options?.flowControlSettings
|
|
1478
1478
|
});
|
|
1479
|
-
const reqOpts =
|
|
1479
|
+
const reqOpts = bookingsDeclineBooking(payload);
|
|
1480
1480
|
sideEffects?.onSiteCall?.();
|
|
1481
1481
|
try {
|
|
1482
1482
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1503,7 +1503,7 @@ async function declineBooking2(bookingId, revision, options) {
|
|
|
1503
1503
|
throw transformedError;
|
|
1504
1504
|
}
|
|
1505
1505
|
}
|
|
1506
|
-
async function
|
|
1506
|
+
async function cancelBooking(bookingId, options) {
|
|
1507
1507
|
const { httpClient, sideEffects } = arguments[2];
|
|
1508
1508
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1509
1509
|
bookingId,
|
|
@@ -1511,7 +1511,7 @@ async function cancelBooking2(bookingId, options) {
|
|
|
1511
1511
|
flowControlSettings: options?.flowControlSettings,
|
|
1512
1512
|
revision: options?.revision
|
|
1513
1513
|
});
|
|
1514
|
-
const reqOpts =
|
|
1514
|
+
const reqOpts = bookingsCancelBooking(payload);
|
|
1515
1515
|
sideEffects?.onSiteCall?.();
|
|
1516
1516
|
try {
|
|
1517
1517
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1536,7 +1536,7 @@ async function cancelBooking2(bookingId, options) {
|
|
|
1536
1536
|
throw transformedError;
|
|
1537
1537
|
}
|
|
1538
1538
|
}
|
|
1539
|
-
async function
|
|
1539
|
+
async function updateNumberOfParticipants(bookingId, options) {
|
|
1540
1540
|
const { httpClient, sideEffects } = arguments[2];
|
|
1541
1541
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1542
1542
|
bookingId,
|
|
@@ -1544,7 +1544,7 @@ async function updateNumberOfParticipants2(bookingId, options) {
|
|
|
1544
1544
|
totalParticipants: options?.totalParticipants,
|
|
1545
1545
|
participantsChoices: options?.participantsChoices
|
|
1546
1546
|
});
|
|
1547
|
-
const reqOpts =
|
|
1547
|
+
const reqOpts = bookingsUpdateNumberOfParticipants(payload);
|
|
1548
1548
|
sideEffects?.onSiteCall?.();
|
|
1549
1549
|
try {
|
|
1550
1550
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1973,8 +1973,8 @@ function rescheduleBooking3(httpClient) {
|
|
|
1973
1973
|
{ httpClient }
|
|
1974
1974
|
);
|
|
1975
1975
|
}
|
|
1976
|
-
function
|
|
1977
|
-
return (bookingId, revision, options) =>
|
|
1976
|
+
function confirmBooking2(httpClient) {
|
|
1977
|
+
return (bookingId, revision, options) => confirmBooking(
|
|
1978
1978
|
bookingId,
|
|
1979
1979
|
revision,
|
|
1980
1980
|
options,
|
|
@@ -1999,8 +1999,8 @@ function updateExtendedFields3(httpClient) {
|
|
|
1999
1999
|
{ httpClient }
|
|
2000
2000
|
);
|
|
2001
2001
|
}
|
|
2002
|
-
function
|
|
2003
|
-
return (bookingId, revision, options) =>
|
|
2002
|
+
function declineBooking2(httpClient) {
|
|
2003
|
+
return (bookingId, revision, options) => declineBooking(
|
|
2004
2004
|
bookingId,
|
|
2005
2005
|
revision,
|
|
2006
2006
|
options,
|
|
@@ -2008,16 +2008,16 @@ function declineBooking3(httpClient) {
|
|
|
2008
2008
|
{ httpClient }
|
|
2009
2009
|
);
|
|
2010
2010
|
}
|
|
2011
|
-
function
|
|
2012
|
-
return (bookingId, options) =>
|
|
2011
|
+
function cancelBooking2(httpClient) {
|
|
2012
|
+
return (bookingId, options) => cancelBooking(
|
|
2013
2013
|
bookingId,
|
|
2014
2014
|
options,
|
|
2015
2015
|
// @ts-ignore
|
|
2016
2016
|
{ httpClient }
|
|
2017
2017
|
);
|
|
2018
2018
|
}
|
|
2019
|
-
function
|
|
2020
|
-
return (bookingId, options) =>
|
|
2019
|
+
function updateNumberOfParticipants2(httpClient) {
|
|
2020
|
+
return (bookingId, options) => updateNumberOfParticipants(
|
|
2021
2021
|
bookingId,
|
|
2022
2022
|
options,
|
|
2023
2023
|
// @ts-ignore
|
|
@@ -2323,12 +2323,12 @@ var bulkConfirmOrDeclineBooking4 = /* @__PURE__ */ createRESTModule(bulkConfirmO
|
|
|
2323
2323
|
var createBooking4 = /* @__PURE__ */ createRESTModule(createBooking3);
|
|
2324
2324
|
var bulkCreateBooking4 = /* @__PURE__ */ createRESTModule(bulkCreateBooking3);
|
|
2325
2325
|
var rescheduleBooking4 = /* @__PURE__ */ createRESTModule(rescheduleBooking3);
|
|
2326
|
-
var
|
|
2326
|
+
var confirmBooking3 = /* @__PURE__ */ createRESTModule(confirmBooking2);
|
|
2327
2327
|
var setBookingSubmissionId4 = /* @__PURE__ */ createRESTModule(setBookingSubmissionId3);
|
|
2328
2328
|
var updateExtendedFields4 = /* @__PURE__ */ createRESTModule(updateExtendedFields3);
|
|
2329
|
-
var
|
|
2330
|
-
var
|
|
2331
|
-
var
|
|
2329
|
+
var declineBooking3 = /* @__PURE__ */ createRESTModule(declineBooking2);
|
|
2330
|
+
var cancelBooking3 = /* @__PURE__ */ createRESTModule(cancelBooking2);
|
|
2331
|
+
var updateNumberOfParticipants3 = /* @__PURE__ */ createRESTModule(updateNumberOfParticipants2);
|
|
2332
2332
|
var createMultiServiceBooking4 = /* @__PURE__ */ createRESTModule(createMultiServiceBooking3);
|
|
2333
2333
|
var rescheduleMultiServiceBooking4 = /* @__PURE__ */ createRESTModule(rescheduleMultiServiceBooking3);
|
|
2334
2334
|
var getMultiServiceBookingAvailability4 = /* @__PURE__ */ createRESTModule(getMultiServiceBookingAvailability3);
|
|
@@ -2367,14 +2367,14 @@ export {
|
|
|
2367
2367
|
bulkConfirmOrDeclineBooking4 as bulkConfirmOrDeclineBooking,
|
|
2368
2368
|
bulkCreateBooking4 as bulkCreateBooking,
|
|
2369
2369
|
bulkGetMultiServiceBookingAllowedActions4 as bulkGetMultiServiceBookingAllowedActions,
|
|
2370
|
-
|
|
2370
|
+
cancelBooking3 as cancelBooking,
|
|
2371
2371
|
cancelMultiServiceBooking4 as cancelMultiServiceBooking,
|
|
2372
|
-
|
|
2372
|
+
confirmBooking3 as confirmBooking,
|
|
2373
2373
|
confirmMultiServiceBooking4 as confirmMultiServiceBooking,
|
|
2374
2374
|
confirmOrDeclineBooking4 as confirmOrDeclineBooking,
|
|
2375
2375
|
createBooking4 as createBooking,
|
|
2376
2376
|
createMultiServiceBooking4 as createMultiServiceBooking,
|
|
2377
|
-
|
|
2377
|
+
declineBooking3 as declineBooking,
|
|
2378
2378
|
declineMultiServiceBooking4 as declineMultiServiceBooking,
|
|
2379
2379
|
getMultiServiceBooking4 as getMultiServiceBooking,
|
|
2380
2380
|
getMultiServiceBookingAvailability4 as getMultiServiceBookingAvailability,
|
|
@@ -2391,6 +2391,6 @@ export {
|
|
|
2391
2391
|
rescheduleMultiServiceBooking4 as rescheduleMultiServiceBooking,
|
|
2392
2392
|
setBookingSubmissionId4 as setBookingSubmissionId,
|
|
2393
2393
|
updateExtendedFields4 as updateExtendedFields,
|
|
2394
|
-
|
|
2394
|
+
updateNumberOfParticipants3 as updateNumberOfParticipants
|
|
2395
2395
|
};
|
|
2396
2396
|
//# sourceMappingURL=index.mjs.map
|