@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
|
@@ -37,14 +37,14 @@ __export(index_typings_exports, {
|
|
|
37
37
|
bulkConfirmOrDeclineBooking: () => bulkConfirmOrDeclineBooking2,
|
|
38
38
|
bulkCreateBooking: () => bulkCreateBooking2,
|
|
39
39
|
bulkGetMultiServiceBookingAllowedActions: () => bulkGetMultiServiceBookingAllowedActions2,
|
|
40
|
-
cancelBooking: () =>
|
|
40
|
+
cancelBooking: () => cancelBooking,
|
|
41
41
|
cancelMultiServiceBooking: () => cancelMultiServiceBooking2,
|
|
42
|
-
confirmBooking: () =>
|
|
42
|
+
confirmBooking: () => confirmBooking,
|
|
43
43
|
confirmMultiServiceBooking: () => confirmMultiServiceBooking2,
|
|
44
44
|
confirmOrDeclineBooking: () => confirmOrDeclineBooking2,
|
|
45
45
|
createBooking: () => createBooking2,
|
|
46
46
|
createMultiServiceBooking: () => createMultiServiceBooking2,
|
|
47
|
-
declineBooking: () =>
|
|
47
|
+
declineBooking: () => declineBooking,
|
|
48
48
|
declineMultiServiceBooking: () => declineMultiServiceBooking2,
|
|
49
49
|
getMultiServiceBooking: () => getMultiServiceBooking2,
|
|
50
50
|
getMultiServiceBookingAvailability: () => getMultiServiceBookingAvailability2,
|
|
@@ -54,7 +54,7 @@ __export(index_typings_exports, {
|
|
|
54
54
|
rescheduleMultiServiceBooking: () => rescheduleMultiServiceBooking2,
|
|
55
55
|
setBookingSubmissionId: () => setBookingSubmissionId2,
|
|
56
56
|
updateExtendedFields: () => updateExtendedFields2,
|
|
57
|
-
updateNumberOfParticipants: () =>
|
|
57
|
+
updateNumberOfParticipants: () => updateNumberOfParticipants
|
|
58
58
|
});
|
|
59
59
|
module.exports = __toCommonJS(index_typings_exports);
|
|
60
60
|
|
|
@@ -539,8 +539,8 @@ function rescheduleBooking(payload) {
|
|
|
539
539
|
}
|
|
540
540
|
return __rescheduleBooking;
|
|
541
541
|
}
|
|
542
|
-
function
|
|
543
|
-
function
|
|
542
|
+
function bookingsConfirmBooking(payload) {
|
|
543
|
+
function __bookingsConfirmBooking({ host }) {
|
|
544
544
|
const metadata = {
|
|
545
545
|
entityFqdn: "wix.bookings.v2.booking",
|
|
546
546
|
method: "POST",
|
|
@@ -574,7 +574,7 @@ function confirmBooking(payload) {
|
|
|
574
574
|
};
|
|
575
575
|
return metadata;
|
|
576
576
|
}
|
|
577
|
-
return
|
|
577
|
+
return __bookingsConfirmBooking;
|
|
578
578
|
}
|
|
579
579
|
function setBookingSubmissionId(payload) {
|
|
580
580
|
function __setBookingSubmissionId({ host }) {
|
|
@@ -631,8 +631,8 @@ function updateExtendedFields(payload) {
|
|
|
631
631
|
}
|
|
632
632
|
return __updateExtendedFields;
|
|
633
633
|
}
|
|
634
|
-
function
|
|
635
|
-
function
|
|
634
|
+
function bookingsDeclineBooking(payload) {
|
|
635
|
+
function __bookingsDeclineBooking({ host }) {
|
|
636
636
|
const metadata = {
|
|
637
637
|
entityFqdn: "wix.bookings.v2.booking",
|
|
638
638
|
method: "POST",
|
|
@@ -666,10 +666,10 @@ function declineBooking(payload) {
|
|
|
666
666
|
};
|
|
667
667
|
return metadata;
|
|
668
668
|
}
|
|
669
|
-
return
|
|
669
|
+
return __bookingsDeclineBooking;
|
|
670
670
|
}
|
|
671
|
-
function
|
|
672
|
-
function
|
|
671
|
+
function bookingsCancelBooking(payload) {
|
|
672
|
+
function __bookingsCancelBooking({ host }) {
|
|
673
673
|
const metadata = {
|
|
674
674
|
entityFqdn: "wix.bookings.v2.booking",
|
|
675
675
|
method: "POST",
|
|
@@ -703,10 +703,10 @@ function cancelBooking(payload) {
|
|
|
703
703
|
};
|
|
704
704
|
return metadata;
|
|
705
705
|
}
|
|
706
|
-
return
|
|
706
|
+
return __bookingsCancelBooking;
|
|
707
707
|
}
|
|
708
|
-
function
|
|
709
|
-
function
|
|
708
|
+
function bookingsUpdateNumberOfParticipants(payload) {
|
|
709
|
+
function __bookingsUpdateNumberOfParticipants({ host }) {
|
|
710
710
|
const metadata = {
|
|
711
711
|
entityFqdn: "wix.bookings.v2.booking",
|
|
712
712
|
method: "POST",
|
|
@@ -740,7 +740,7 @@ function updateNumberOfParticipants(payload) {
|
|
|
740
740
|
};
|
|
741
741
|
return metadata;
|
|
742
742
|
}
|
|
743
|
-
return
|
|
743
|
+
return __bookingsUpdateNumberOfParticipants;
|
|
744
744
|
}
|
|
745
745
|
function createMultiServiceBooking(payload) {
|
|
746
746
|
function __createMultiServiceBooking({ host }) {
|
|
@@ -1420,7 +1420,7 @@ async function rescheduleBooking2(bookingId, slot, options) {
|
|
|
1420
1420
|
throw transformedError;
|
|
1421
1421
|
}
|
|
1422
1422
|
}
|
|
1423
|
-
async function
|
|
1423
|
+
async function confirmBooking(bookingId, revision, options) {
|
|
1424
1424
|
const { httpClient, sideEffects } = arguments[3];
|
|
1425
1425
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1426
1426
|
bookingId,
|
|
@@ -1431,7 +1431,7 @@ async function confirmBooking2(bookingId, revision, options) {
|
|
|
1431
1431
|
doubleBooked: options?.doubleBooked,
|
|
1432
1432
|
flowControlSettings: options?.flowControlSettings
|
|
1433
1433
|
});
|
|
1434
|
-
const reqOpts =
|
|
1434
|
+
const reqOpts = bookingsConfirmBooking(payload);
|
|
1435
1435
|
sideEffects?.onSiteCall?.();
|
|
1436
1436
|
try {
|
|
1437
1437
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1516,7 +1516,7 @@ async function updateExtendedFields2(_id, namespace, options) {
|
|
|
1516
1516
|
throw transformedError;
|
|
1517
1517
|
}
|
|
1518
1518
|
}
|
|
1519
|
-
async function
|
|
1519
|
+
async function declineBooking(bookingId, revision, options) {
|
|
1520
1520
|
const { httpClient, sideEffects } = arguments[3];
|
|
1521
1521
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1522
1522
|
bookingId,
|
|
@@ -1526,7 +1526,7 @@ async function declineBooking2(bookingId, revision, options) {
|
|
|
1526
1526
|
doubleBooked: options?.doubleBooked,
|
|
1527
1527
|
flowControlSettings: options?.flowControlSettings
|
|
1528
1528
|
});
|
|
1529
|
-
const reqOpts =
|
|
1529
|
+
const reqOpts = bookingsDeclineBooking(payload);
|
|
1530
1530
|
sideEffects?.onSiteCall?.();
|
|
1531
1531
|
try {
|
|
1532
1532
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1553,7 +1553,7 @@ async function declineBooking2(bookingId, revision, options) {
|
|
|
1553
1553
|
throw transformedError;
|
|
1554
1554
|
}
|
|
1555
1555
|
}
|
|
1556
|
-
async function
|
|
1556
|
+
async function cancelBooking(bookingId, options) {
|
|
1557
1557
|
const { httpClient, sideEffects } = arguments[2];
|
|
1558
1558
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1559
1559
|
bookingId,
|
|
@@ -1561,7 +1561,7 @@ async function cancelBooking2(bookingId, options) {
|
|
|
1561
1561
|
flowControlSettings: options?.flowControlSettings,
|
|
1562
1562
|
revision: options?.revision
|
|
1563
1563
|
});
|
|
1564
|
-
const reqOpts =
|
|
1564
|
+
const reqOpts = bookingsCancelBooking(payload);
|
|
1565
1565
|
sideEffects?.onSiteCall?.();
|
|
1566
1566
|
try {
|
|
1567
1567
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1586,7 +1586,7 @@ async function cancelBooking2(bookingId, options) {
|
|
|
1586
1586
|
throw transformedError;
|
|
1587
1587
|
}
|
|
1588
1588
|
}
|
|
1589
|
-
async function
|
|
1589
|
+
async function updateNumberOfParticipants(bookingId, options) {
|
|
1590
1590
|
const { httpClient, sideEffects } = arguments[2];
|
|
1591
1591
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1592
1592
|
bookingId,
|
|
@@ -1594,7 +1594,7 @@ async function updateNumberOfParticipants2(bookingId, options) {
|
|
|
1594
1594
|
totalParticipants: options?.totalParticipants,
|
|
1595
1595
|
participantsChoices: options?.participantsChoices
|
|
1596
1596
|
});
|
|
1597
|
-
const reqOpts =
|
|
1597
|
+
const reqOpts = bookingsUpdateNumberOfParticipants(payload);
|
|
1598
1598
|
sideEffects?.onSiteCall?.();
|
|
1599
1599
|
try {
|
|
1600
1600
|
const result = await httpClient.request(reqOpts);
|