@wix/auto_sdk_bookings_bookings 1.0.42 → 1.0.43
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
|
@@ -482,8 +482,8 @@ function rescheduleBooking(payload) {
|
|
|
482
482
|
}
|
|
483
483
|
return __rescheduleBooking;
|
|
484
484
|
}
|
|
485
|
-
function
|
|
486
|
-
function
|
|
485
|
+
function confirmBooking(payload) {
|
|
486
|
+
function __confirmBooking({ host }) {
|
|
487
487
|
const metadata = {
|
|
488
488
|
entityFqdn: "wix.bookings.v2.booking",
|
|
489
489
|
method: "POST",
|
|
@@ -517,7 +517,7 @@ function bookingsConfirmBooking(payload) {
|
|
|
517
517
|
};
|
|
518
518
|
return metadata;
|
|
519
519
|
}
|
|
520
|
-
return
|
|
520
|
+
return __confirmBooking;
|
|
521
521
|
}
|
|
522
522
|
function setBookingSubmissionId(payload) {
|
|
523
523
|
function __setBookingSubmissionId({ host }) {
|
|
@@ -574,8 +574,8 @@ function updateExtendedFields(payload) {
|
|
|
574
574
|
}
|
|
575
575
|
return __updateExtendedFields;
|
|
576
576
|
}
|
|
577
|
-
function
|
|
578
|
-
function
|
|
577
|
+
function declineBooking(payload) {
|
|
578
|
+
function __declineBooking({ host }) {
|
|
579
579
|
const metadata = {
|
|
580
580
|
entityFqdn: "wix.bookings.v2.booking",
|
|
581
581
|
method: "POST",
|
|
@@ -609,10 +609,10 @@ function bookingsDeclineBooking(payload) {
|
|
|
609
609
|
};
|
|
610
610
|
return metadata;
|
|
611
611
|
}
|
|
612
|
-
return
|
|
612
|
+
return __declineBooking;
|
|
613
613
|
}
|
|
614
|
-
function
|
|
615
|
-
function
|
|
614
|
+
function cancelBooking(payload) {
|
|
615
|
+
function __cancelBooking({ host }) {
|
|
616
616
|
const metadata = {
|
|
617
617
|
entityFqdn: "wix.bookings.v2.booking",
|
|
618
618
|
method: "POST",
|
|
@@ -646,10 +646,10 @@ function bookingsCancelBooking(payload) {
|
|
|
646
646
|
};
|
|
647
647
|
return metadata;
|
|
648
648
|
}
|
|
649
|
-
return
|
|
649
|
+
return __cancelBooking;
|
|
650
650
|
}
|
|
651
|
-
function
|
|
652
|
-
function
|
|
651
|
+
function updateNumberOfParticipants(payload) {
|
|
652
|
+
function __updateNumberOfParticipants({ host }) {
|
|
653
653
|
const metadata = {
|
|
654
654
|
entityFqdn: "wix.bookings.v2.booking",
|
|
655
655
|
method: "POST",
|
|
@@ -683,7 +683,7 @@ function bookingsUpdateNumberOfParticipants(payload) {
|
|
|
683
683
|
};
|
|
684
684
|
return metadata;
|
|
685
685
|
}
|
|
686
|
-
return
|
|
686
|
+
return __updateNumberOfParticipants;
|
|
687
687
|
}
|
|
688
688
|
function createMultiServiceBooking(payload) {
|
|
689
689
|
function __createMultiServiceBooking({ host }) {
|
|
@@ -1363,7 +1363,7 @@ async function rescheduleBooking2(bookingId, slot, options) {
|
|
|
1363
1363
|
throw transformedError;
|
|
1364
1364
|
}
|
|
1365
1365
|
}
|
|
1366
|
-
async function
|
|
1366
|
+
async function confirmBooking2(bookingId, revision, options) {
|
|
1367
1367
|
const { httpClient, sideEffects } = arguments[3];
|
|
1368
1368
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1369
1369
|
bookingId,
|
|
@@ -1374,7 +1374,7 @@ async function confirmBooking(bookingId, revision, options) {
|
|
|
1374
1374
|
doubleBooked: options?.doubleBooked,
|
|
1375
1375
|
flowControlSettings: options?.flowControlSettings
|
|
1376
1376
|
});
|
|
1377
|
-
const reqOpts =
|
|
1377
|
+
const reqOpts = confirmBooking(payload);
|
|
1378
1378
|
sideEffects?.onSiteCall?.();
|
|
1379
1379
|
try {
|
|
1380
1380
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1459,7 +1459,7 @@ async function updateExtendedFields2(_id, namespace, options) {
|
|
|
1459
1459
|
throw transformedError;
|
|
1460
1460
|
}
|
|
1461
1461
|
}
|
|
1462
|
-
async function
|
|
1462
|
+
async function declineBooking2(bookingId, revision, options) {
|
|
1463
1463
|
const { httpClient, sideEffects } = arguments[3];
|
|
1464
1464
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1465
1465
|
bookingId,
|
|
@@ -1469,7 +1469,7 @@ async function declineBooking(bookingId, revision, options) {
|
|
|
1469
1469
|
doubleBooked: options?.doubleBooked,
|
|
1470
1470
|
flowControlSettings: options?.flowControlSettings
|
|
1471
1471
|
});
|
|
1472
|
-
const reqOpts =
|
|
1472
|
+
const reqOpts = declineBooking(payload);
|
|
1473
1473
|
sideEffects?.onSiteCall?.();
|
|
1474
1474
|
try {
|
|
1475
1475
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1496,7 +1496,7 @@ async function declineBooking(bookingId, revision, options) {
|
|
|
1496
1496
|
throw transformedError;
|
|
1497
1497
|
}
|
|
1498
1498
|
}
|
|
1499
|
-
async function
|
|
1499
|
+
async function cancelBooking2(bookingId, options) {
|
|
1500
1500
|
const { httpClient, sideEffects } = arguments[2];
|
|
1501
1501
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1502
1502
|
bookingId,
|
|
@@ -1504,7 +1504,7 @@ async function cancelBooking(bookingId, options) {
|
|
|
1504
1504
|
flowControlSettings: options?.flowControlSettings,
|
|
1505
1505
|
revision: options?.revision
|
|
1506
1506
|
});
|
|
1507
|
-
const reqOpts =
|
|
1507
|
+
const reqOpts = cancelBooking(payload);
|
|
1508
1508
|
sideEffects?.onSiteCall?.();
|
|
1509
1509
|
try {
|
|
1510
1510
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1529,7 +1529,7 @@ async function cancelBooking(bookingId, options) {
|
|
|
1529
1529
|
throw transformedError;
|
|
1530
1530
|
}
|
|
1531
1531
|
}
|
|
1532
|
-
async function
|
|
1532
|
+
async function updateNumberOfParticipants2(bookingId, options) {
|
|
1533
1533
|
const { httpClient, sideEffects } = arguments[2];
|
|
1534
1534
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1535
1535
|
bookingId,
|
|
@@ -1537,7 +1537,7 @@ async function updateNumberOfParticipants(bookingId, options) {
|
|
|
1537
1537
|
totalParticipants: options?.totalParticipants,
|
|
1538
1538
|
participantsChoices: options?.participantsChoices
|
|
1539
1539
|
});
|
|
1540
|
-
const reqOpts =
|
|
1540
|
+
const reqOpts = updateNumberOfParticipants(payload);
|
|
1541
1541
|
sideEffects?.onSiteCall?.();
|
|
1542
1542
|
try {
|
|
1543
1543
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1941,14 +1941,14 @@ export {
|
|
|
1941
1941
|
bulkConfirmOrDeclineBooking2 as bulkConfirmOrDeclineBooking,
|
|
1942
1942
|
bulkCreateBooking2 as bulkCreateBooking,
|
|
1943
1943
|
bulkGetMultiServiceBookingAllowedActions2 as bulkGetMultiServiceBookingAllowedActions,
|
|
1944
|
-
cancelBooking,
|
|
1944
|
+
cancelBooking2 as cancelBooking,
|
|
1945
1945
|
cancelMultiServiceBooking2 as cancelMultiServiceBooking,
|
|
1946
|
-
confirmBooking,
|
|
1946
|
+
confirmBooking2 as confirmBooking,
|
|
1947
1947
|
confirmMultiServiceBooking2 as confirmMultiServiceBooking,
|
|
1948
1948
|
confirmOrDeclineBooking2 as confirmOrDeclineBooking,
|
|
1949
1949
|
createBooking2 as createBooking,
|
|
1950
1950
|
createMultiServiceBooking2 as createMultiServiceBooking,
|
|
1951
|
-
declineBooking,
|
|
1951
|
+
declineBooking2 as declineBooking,
|
|
1952
1952
|
declineMultiServiceBooking2 as declineMultiServiceBooking,
|
|
1953
1953
|
getMultiServiceBooking2 as getMultiServiceBooking,
|
|
1954
1954
|
getMultiServiceBookingAvailability2 as getMultiServiceBookingAvailability,
|
|
@@ -1958,6 +1958,6 @@ export {
|
|
|
1958
1958
|
rescheduleMultiServiceBooking2 as rescheduleMultiServiceBooking,
|
|
1959
1959
|
setBookingSubmissionId2 as setBookingSubmissionId,
|
|
1960
1960
|
updateExtendedFields2 as updateExtendedFields,
|
|
1961
|
-
updateNumberOfParticipants
|
|
1961
|
+
updateNumberOfParticipants2 as updateNumberOfParticipants
|
|
1962
1962
|
};
|
|
1963
1963
|
//# sourceMappingURL=index.typings.mjs.map
|