@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/cjs/index.js
CHANGED
|
@@ -37,14 +37,14 @@ __export(index_exports, {
|
|
|
37
37
|
bulkConfirmOrDeclineBooking: () => bulkConfirmOrDeclineBooking4,
|
|
38
38
|
bulkCreateBooking: () => bulkCreateBooking4,
|
|
39
39
|
bulkGetMultiServiceBookingAllowedActions: () => bulkGetMultiServiceBookingAllowedActions4,
|
|
40
|
-
cancelBooking: () =>
|
|
40
|
+
cancelBooking: () => cancelBooking3,
|
|
41
41
|
cancelMultiServiceBooking: () => cancelMultiServiceBooking4,
|
|
42
|
-
confirmBooking: () =>
|
|
42
|
+
confirmBooking: () => confirmBooking3,
|
|
43
43
|
confirmMultiServiceBooking: () => confirmMultiServiceBooking4,
|
|
44
44
|
confirmOrDeclineBooking: () => confirmOrDeclineBooking4,
|
|
45
45
|
createBooking: () => createBooking4,
|
|
46
46
|
createMultiServiceBooking: () => createMultiServiceBooking4,
|
|
47
|
-
declineBooking: () =>
|
|
47
|
+
declineBooking: () => declineBooking3,
|
|
48
48
|
declineMultiServiceBooking: () => declineMultiServiceBooking4,
|
|
49
49
|
getMultiServiceBooking: () => getMultiServiceBooking4,
|
|
50
50
|
getMultiServiceBookingAvailability: () => getMultiServiceBookingAvailability4,
|
|
@@ -61,7 +61,7 @@ __export(index_exports, {
|
|
|
61
61
|
rescheduleMultiServiceBooking: () => rescheduleMultiServiceBooking4,
|
|
62
62
|
setBookingSubmissionId: () => setBookingSubmissionId4,
|
|
63
63
|
updateExtendedFields: () => updateExtendedFields4,
|
|
64
|
-
updateNumberOfParticipants: () =>
|
|
64
|
+
updateNumberOfParticipants: () => updateNumberOfParticipants3
|
|
65
65
|
});
|
|
66
66
|
module.exports = __toCommonJS(index_exports);
|
|
67
67
|
|
|
@@ -553,8 +553,8 @@ function rescheduleBooking(payload) {
|
|
|
553
553
|
}
|
|
554
554
|
return __rescheduleBooking;
|
|
555
555
|
}
|
|
556
|
-
function
|
|
557
|
-
function
|
|
556
|
+
function bookingsConfirmBooking(payload) {
|
|
557
|
+
function __bookingsConfirmBooking({ host }) {
|
|
558
558
|
const metadata = {
|
|
559
559
|
entityFqdn: "wix.bookings.v2.booking",
|
|
560
560
|
method: "POST",
|
|
@@ -588,7 +588,7 @@ function confirmBooking(payload) {
|
|
|
588
588
|
};
|
|
589
589
|
return metadata;
|
|
590
590
|
}
|
|
591
|
-
return
|
|
591
|
+
return __bookingsConfirmBooking;
|
|
592
592
|
}
|
|
593
593
|
function setBookingSubmissionId(payload) {
|
|
594
594
|
function __setBookingSubmissionId({ host }) {
|
|
@@ -645,8 +645,8 @@ function updateExtendedFields(payload) {
|
|
|
645
645
|
}
|
|
646
646
|
return __updateExtendedFields;
|
|
647
647
|
}
|
|
648
|
-
function
|
|
649
|
-
function
|
|
648
|
+
function bookingsDeclineBooking(payload) {
|
|
649
|
+
function __bookingsDeclineBooking({ host }) {
|
|
650
650
|
const metadata = {
|
|
651
651
|
entityFqdn: "wix.bookings.v2.booking",
|
|
652
652
|
method: "POST",
|
|
@@ -680,10 +680,10 @@ function declineBooking(payload) {
|
|
|
680
680
|
};
|
|
681
681
|
return metadata;
|
|
682
682
|
}
|
|
683
|
-
return
|
|
683
|
+
return __bookingsDeclineBooking;
|
|
684
684
|
}
|
|
685
|
-
function
|
|
686
|
-
function
|
|
685
|
+
function bookingsCancelBooking(payload) {
|
|
686
|
+
function __bookingsCancelBooking({ host }) {
|
|
687
687
|
const metadata = {
|
|
688
688
|
entityFqdn: "wix.bookings.v2.booking",
|
|
689
689
|
method: "POST",
|
|
@@ -717,10 +717,10 @@ function cancelBooking(payload) {
|
|
|
717
717
|
};
|
|
718
718
|
return metadata;
|
|
719
719
|
}
|
|
720
|
-
return
|
|
720
|
+
return __bookingsCancelBooking;
|
|
721
721
|
}
|
|
722
|
-
function
|
|
723
|
-
function
|
|
722
|
+
function bookingsUpdateNumberOfParticipants(payload) {
|
|
723
|
+
function __bookingsUpdateNumberOfParticipants({ host }) {
|
|
724
724
|
const metadata = {
|
|
725
725
|
entityFqdn: "wix.bookings.v2.booking",
|
|
726
726
|
method: "POST",
|
|
@@ -754,7 +754,7 @@ function updateNumberOfParticipants(payload) {
|
|
|
754
754
|
};
|
|
755
755
|
return metadata;
|
|
756
756
|
}
|
|
757
|
-
return
|
|
757
|
+
return __bookingsUpdateNumberOfParticipants;
|
|
758
758
|
}
|
|
759
759
|
function createMultiServiceBooking(payload) {
|
|
760
760
|
function __createMultiServiceBooking({ host }) {
|
|
@@ -1434,7 +1434,7 @@ async function rescheduleBooking2(bookingId, slot, options) {
|
|
|
1434
1434
|
throw transformedError;
|
|
1435
1435
|
}
|
|
1436
1436
|
}
|
|
1437
|
-
async function
|
|
1437
|
+
async function confirmBooking(bookingId, revision, options) {
|
|
1438
1438
|
const { httpClient, sideEffects } = arguments[3];
|
|
1439
1439
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1440
1440
|
bookingId,
|
|
@@ -1445,7 +1445,7 @@ async function confirmBooking2(bookingId, revision, options) {
|
|
|
1445
1445
|
doubleBooked: options?.doubleBooked,
|
|
1446
1446
|
flowControlSettings: options?.flowControlSettings
|
|
1447
1447
|
});
|
|
1448
|
-
const reqOpts =
|
|
1448
|
+
const reqOpts = bookingsConfirmBooking(payload);
|
|
1449
1449
|
sideEffects?.onSiteCall?.();
|
|
1450
1450
|
try {
|
|
1451
1451
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1530,7 +1530,7 @@ async function updateExtendedFields2(_id, namespace, options) {
|
|
|
1530
1530
|
throw transformedError;
|
|
1531
1531
|
}
|
|
1532
1532
|
}
|
|
1533
|
-
async function
|
|
1533
|
+
async function declineBooking(bookingId, revision, options) {
|
|
1534
1534
|
const { httpClient, sideEffects } = arguments[3];
|
|
1535
1535
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1536
1536
|
bookingId,
|
|
@@ -1540,7 +1540,7 @@ async function declineBooking2(bookingId, revision, options) {
|
|
|
1540
1540
|
doubleBooked: options?.doubleBooked,
|
|
1541
1541
|
flowControlSettings: options?.flowControlSettings
|
|
1542
1542
|
});
|
|
1543
|
-
const reqOpts =
|
|
1543
|
+
const reqOpts = bookingsDeclineBooking(payload);
|
|
1544
1544
|
sideEffects?.onSiteCall?.();
|
|
1545
1545
|
try {
|
|
1546
1546
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1567,7 +1567,7 @@ async function declineBooking2(bookingId, revision, options) {
|
|
|
1567
1567
|
throw transformedError;
|
|
1568
1568
|
}
|
|
1569
1569
|
}
|
|
1570
|
-
async function
|
|
1570
|
+
async function cancelBooking(bookingId, options) {
|
|
1571
1571
|
const { httpClient, sideEffects } = arguments[2];
|
|
1572
1572
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1573
1573
|
bookingId,
|
|
@@ -1575,7 +1575,7 @@ async function cancelBooking2(bookingId, options) {
|
|
|
1575
1575
|
flowControlSettings: options?.flowControlSettings,
|
|
1576
1576
|
revision: options?.revision
|
|
1577
1577
|
});
|
|
1578
|
-
const reqOpts =
|
|
1578
|
+
const reqOpts = bookingsCancelBooking(payload);
|
|
1579
1579
|
sideEffects?.onSiteCall?.();
|
|
1580
1580
|
try {
|
|
1581
1581
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1600,7 +1600,7 @@ async function cancelBooking2(bookingId, options) {
|
|
|
1600
1600
|
throw transformedError;
|
|
1601
1601
|
}
|
|
1602
1602
|
}
|
|
1603
|
-
async function
|
|
1603
|
+
async function updateNumberOfParticipants(bookingId, options) {
|
|
1604
1604
|
const { httpClient, sideEffects } = arguments[2];
|
|
1605
1605
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1606
1606
|
bookingId,
|
|
@@ -1608,7 +1608,7 @@ async function updateNumberOfParticipants2(bookingId, options) {
|
|
|
1608
1608
|
totalParticipants: options?.totalParticipants,
|
|
1609
1609
|
participantsChoices: options?.participantsChoices
|
|
1610
1610
|
});
|
|
1611
|
-
const reqOpts =
|
|
1611
|
+
const reqOpts = bookingsUpdateNumberOfParticipants(payload);
|
|
1612
1612
|
sideEffects?.onSiteCall?.();
|
|
1613
1613
|
try {
|
|
1614
1614
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2037,8 +2037,8 @@ function rescheduleBooking3(httpClient) {
|
|
|
2037
2037
|
{ httpClient }
|
|
2038
2038
|
);
|
|
2039
2039
|
}
|
|
2040
|
-
function
|
|
2041
|
-
return (bookingId, revision, options) =>
|
|
2040
|
+
function confirmBooking2(httpClient) {
|
|
2041
|
+
return (bookingId, revision, options) => confirmBooking(
|
|
2042
2042
|
bookingId,
|
|
2043
2043
|
revision,
|
|
2044
2044
|
options,
|
|
@@ -2063,8 +2063,8 @@ function updateExtendedFields3(httpClient) {
|
|
|
2063
2063
|
{ httpClient }
|
|
2064
2064
|
);
|
|
2065
2065
|
}
|
|
2066
|
-
function
|
|
2067
|
-
return (bookingId, revision, options) =>
|
|
2066
|
+
function declineBooking2(httpClient) {
|
|
2067
|
+
return (bookingId, revision, options) => declineBooking(
|
|
2068
2068
|
bookingId,
|
|
2069
2069
|
revision,
|
|
2070
2070
|
options,
|
|
@@ -2072,16 +2072,16 @@ function declineBooking3(httpClient) {
|
|
|
2072
2072
|
{ httpClient }
|
|
2073
2073
|
);
|
|
2074
2074
|
}
|
|
2075
|
-
function
|
|
2076
|
-
return (bookingId, options) =>
|
|
2075
|
+
function cancelBooking2(httpClient) {
|
|
2076
|
+
return (bookingId, options) => cancelBooking(
|
|
2077
2077
|
bookingId,
|
|
2078
2078
|
options,
|
|
2079
2079
|
// @ts-ignore
|
|
2080
2080
|
{ httpClient }
|
|
2081
2081
|
);
|
|
2082
2082
|
}
|
|
2083
|
-
function
|
|
2084
|
-
return (bookingId, options) =>
|
|
2083
|
+
function updateNumberOfParticipants2(httpClient) {
|
|
2084
|
+
return (bookingId, options) => updateNumberOfParticipants(
|
|
2085
2085
|
bookingId,
|
|
2086
2086
|
options,
|
|
2087
2087
|
// @ts-ignore
|
|
@@ -2387,12 +2387,12 @@ var bulkConfirmOrDeclineBooking4 = /* @__PURE__ */ (0, import_rest_modules3.crea
|
|
|
2387
2387
|
var createBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createBooking3);
|
|
2388
2388
|
var bulkCreateBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateBooking3);
|
|
2389
2389
|
var rescheduleBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(rescheduleBooking3);
|
|
2390
|
-
var
|
|
2390
|
+
var confirmBooking3 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(confirmBooking2);
|
|
2391
2391
|
var setBookingSubmissionId4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(setBookingSubmissionId3);
|
|
2392
2392
|
var updateExtendedFields4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateExtendedFields3);
|
|
2393
|
-
var
|
|
2394
|
-
var
|
|
2395
|
-
var
|
|
2393
|
+
var declineBooking3 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(declineBooking2);
|
|
2394
|
+
var cancelBooking3 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(cancelBooking2);
|
|
2395
|
+
var updateNumberOfParticipants3 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateNumberOfParticipants2);
|
|
2396
2396
|
var createMultiServiceBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createMultiServiceBooking3);
|
|
2397
2397
|
var rescheduleMultiServiceBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(rescheduleMultiServiceBooking3);
|
|
2398
2398
|
var getMultiServiceBookingAvailability4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getMultiServiceBookingAvailability3);
|