@wix/auto_sdk_bookings_bookings 1.0.43 → 1.0.45
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 +60 -36
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +48 -24
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +48 -24
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +60 -36
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +48 -24
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +48 -24
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js +60 -36
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.js +48 -24
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.js +48 -24
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs +60 -36
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.mjs +48 -24
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.mjs +48 -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
|
|
|
@@ -102,6 +102,10 @@ function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
|
|
|
102
102
|
{
|
|
103
103
|
srcPath: "/_api/bookings-service/v2/bulk/multi_service_bookings",
|
|
104
104
|
destPath: "/v2/bulk/multi_service_bookings"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
|
|
108
|
+
destPath: "/v2/multi_service_bookings"
|
|
105
109
|
}
|
|
106
110
|
],
|
|
107
111
|
"manage._base_domain_": [
|
|
@@ -134,6 +138,10 @@ function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
|
|
|
134
138
|
{
|
|
135
139
|
srcPath: "/bookings/v2/bulk/bookings",
|
|
136
140
|
destPath: "/v2/bulk/bookings"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
|
|
144
|
+
destPath: "/v2/multi_service_bookings"
|
|
137
145
|
}
|
|
138
146
|
],
|
|
139
147
|
"www._base_domain_": [
|
|
@@ -180,6 +188,10 @@ function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
|
|
|
180
188
|
{
|
|
181
189
|
srcPath: "/_api/bookings-service",
|
|
182
190
|
destPath: "/v2/bookings"
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
|
|
194
|
+
destPath: "/v2/multi_service_bookings"
|
|
183
195
|
}
|
|
184
196
|
]
|
|
185
197
|
};
|
|
@@ -203,6 +215,10 @@ function resolveComWixpressBookingsBookingsV2BookingsUrl(opts) {
|
|
|
203
215
|
{
|
|
204
216
|
srcPath: "/_api/bookings-service/v2/bulk/multi_service_bookings",
|
|
205
217
|
destPath: "/v2/bulk/multi_service_bookings"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
|
|
221
|
+
destPath: "/v2/multi_service_bookings"
|
|
206
222
|
}
|
|
207
223
|
],
|
|
208
224
|
"manage._base_domain_": [
|
|
@@ -235,6 +251,10 @@ function resolveComWixpressBookingsBookingsV2BookingsUrl(opts) {
|
|
|
235
251
|
{
|
|
236
252
|
srcPath: "/bookings/v2/bulk/bookings",
|
|
237
253
|
destPath: "/v2/bulk/bookings"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
|
|
257
|
+
destPath: "/v2/multi_service_bookings"
|
|
238
258
|
}
|
|
239
259
|
],
|
|
240
260
|
"www._base_domain_": [
|
|
@@ -281,6 +301,10 @@ function resolveComWixpressBookingsBookingsV2BookingsUrl(opts) {
|
|
|
281
301
|
{
|
|
282
302
|
srcPath: "/_api/bookings-service",
|
|
283
303
|
destPath: "/v2/bookings"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
|
|
307
|
+
destPath: "/v2/multi_service_bookings"
|
|
284
308
|
}
|
|
285
309
|
]
|
|
286
310
|
};
|
|
@@ -553,8 +577,8 @@ function rescheduleBooking(payload) {
|
|
|
553
577
|
}
|
|
554
578
|
return __rescheduleBooking;
|
|
555
579
|
}
|
|
556
|
-
function
|
|
557
|
-
function
|
|
580
|
+
function bookingsConfirmBooking(payload) {
|
|
581
|
+
function __bookingsConfirmBooking({ host }) {
|
|
558
582
|
const metadata = {
|
|
559
583
|
entityFqdn: "wix.bookings.v2.booking",
|
|
560
584
|
method: "POST",
|
|
@@ -588,7 +612,7 @@ function confirmBooking(payload) {
|
|
|
588
612
|
};
|
|
589
613
|
return metadata;
|
|
590
614
|
}
|
|
591
|
-
return
|
|
615
|
+
return __bookingsConfirmBooking;
|
|
592
616
|
}
|
|
593
617
|
function setBookingSubmissionId(payload) {
|
|
594
618
|
function __setBookingSubmissionId({ host }) {
|
|
@@ -645,8 +669,8 @@ function updateExtendedFields(payload) {
|
|
|
645
669
|
}
|
|
646
670
|
return __updateExtendedFields;
|
|
647
671
|
}
|
|
648
|
-
function
|
|
649
|
-
function
|
|
672
|
+
function bookingsDeclineBooking(payload) {
|
|
673
|
+
function __bookingsDeclineBooking({ host }) {
|
|
650
674
|
const metadata = {
|
|
651
675
|
entityFqdn: "wix.bookings.v2.booking",
|
|
652
676
|
method: "POST",
|
|
@@ -680,10 +704,10 @@ function declineBooking(payload) {
|
|
|
680
704
|
};
|
|
681
705
|
return metadata;
|
|
682
706
|
}
|
|
683
|
-
return
|
|
707
|
+
return __bookingsDeclineBooking;
|
|
684
708
|
}
|
|
685
|
-
function
|
|
686
|
-
function
|
|
709
|
+
function bookingsCancelBooking(payload) {
|
|
710
|
+
function __bookingsCancelBooking({ host }) {
|
|
687
711
|
const metadata = {
|
|
688
712
|
entityFqdn: "wix.bookings.v2.booking",
|
|
689
713
|
method: "POST",
|
|
@@ -717,10 +741,10 @@ function cancelBooking(payload) {
|
|
|
717
741
|
};
|
|
718
742
|
return metadata;
|
|
719
743
|
}
|
|
720
|
-
return
|
|
744
|
+
return __bookingsCancelBooking;
|
|
721
745
|
}
|
|
722
|
-
function
|
|
723
|
-
function
|
|
746
|
+
function bookingsUpdateNumberOfParticipants(payload) {
|
|
747
|
+
function __bookingsUpdateNumberOfParticipants({ host }) {
|
|
724
748
|
const metadata = {
|
|
725
749
|
entityFqdn: "wix.bookings.v2.booking",
|
|
726
750
|
method: "POST",
|
|
@@ -754,7 +778,7 @@ function updateNumberOfParticipants(payload) {
|
|
|
754
778
|
};
|
|
755
779
|
return metadata;
|
|
756
780
|
}
|
|
757
|
-
return
|
|
781
|
+
return __bookingsUpdateNumberOfParticipants;
|
|
758
782
|
}
|
|
759
783
|
function createMultiServiceBooking(payload) {
|
|
760
784
|
function __createMultiServiceBooking({ host }) {
|
|
@@ -1434,7 +1458,7 @@ async function rescheduleBooking2(bookingId, slot, options) {
|
|
|
1434
1458
|
throw transformedError;
|
|
1435
1459
|
}
|
|
1436
1460
|
}
|
|
1437
|
-
async function
|
|
1461
|
+
async function confirmBooking(bookingId, revision, options) {
|
|
1438
1462
|
const { httpClient, sideEffects } = arguments[3];
|
|
1439
1463
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1440
1464
|
bookingId,
|
|
@@ -1445,7 +1469,7 @@ async function confirmBooking2(bookingId, revision, options) {
|
|
|
1445
1469
|
doubleBooked: options?.doubleBooked,
|
|
1446
1470
|
flowControlSettings: options?.flowControlSettings
|
|
1447
1471
|
});
|
|
1448
|
-
const reqOpts =
|
|
1472
|
+
const reqOpts = bookingsConfirmBooking(payload);
|
|
1449
1473
|
sideEffects?.onSiteCall?.();
|
|
1450
1474
|
try {
|
|
1451
1475
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1530,7 +1554,7 @@ async function updateExtendedFields2(_id, namespace, options) {
|
|
|
1530
1554
|
throw transformedError;
|
|
1531
1555
|
}
|
|
1532
1556
|
}
|
|
1533
|
-
async function
|
|
1557
|
+
async function declineBooking(bookingId, revision, options) {
|
|
1534
1558
|
const { httpClient, sideEffects } = arguments[3];
|
|
1535
1559
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1536
1560
|
bookingId,
|
|
@@ -1540,7 +1564,7 @@ async function declineBooking2(bookingId, revision, options) {
|
|
|
1540
1564
|
doubleBooked: options?.doubleBooked,
|
|
1541
1565
|
flowControlSettings: options?.flowControlSettings
|
|
1542
1566
|
});
|
|
1543
|
-
const reqOpts =
|
|
1567
|
+
const reqOpts = bookingsDeclineBooking(payload);
|
|
1544
1568
|
sideEffects?.onSiteCall?.();
|
|
1545
1569
|
try {
|
|
1546
1570
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1567,7 +1591,7 @@ async function declineBooking2(bookingId, revision, options) {
|
|
|
1567
1591
|
throw transformedError;
|
|
1568
1592
|
}
|
|
1569
1593
|
}
|
|
1570
|
-
async function
|
|
1594
|
+
async function cancelBooking(bookingId, options) {
|
|
1571
1595
|
const { httpClient, sideEffects } = arguments[2];
|
|
1572
1596
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1573
1597
|
bookingId,
|
|
@@ -1575,7 +1599,7 @@ async function cancelBooking2(bookingId, options) {
|
|
|
1575
1599
|
flowControlSettings: options?.flowControlSettings,
|
|
1576
1600
|
revision: options?.revision
|
|
1577
1601
|
});
|
|
1578
|
-
const reqOpts =
|
|
1602
|
+
const reqOpts = bookingsCancelBooking(payload);
|
|
1579
1603
|
sideEffects?.onSiteCall?.();
|
|
1580
1604
|
try {
|
|
1581
1605
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1600,7 +1624,7 @@ async function cancelBooking2(bookingId, options) {
|
|
|
1600
1624
|
throw transformedError;
|
|
1601
1625
|
}
|
|
1602
1626
|
}
|
|
1603
|
-
async function
|
|
1627
|
+
async function updateNumberOfParticipants(bookingId, options) {
|
|
1604
1628
|
const { httpClient, sideEffects } = arguments[2];
|
|
1605
1629
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1606
1630
|
bookingId,
|
|
@@ -1608,7 +1632,7 @@ async function updateNumberOfParticipants2(bookingId, options) {
|
|
|
1608
1632
|
totalParticipants: options?.totalParticipants,
|
|
1609
1633
|
participantsChoices: options?.participantsChoices
|
|
1610
1634
|
});
|
|
1611
|
-
const reqOpts =
|
|
1635
|
+
const reqOpts = bookingsUpdateNumberOfParticipants(payload);
|
|
1612
1636
|
sideEffects?.onSiteCall?.();
|
|
1613
1637
|
try {
|
|
1614
1638
|
const result = await httpClient.request(reqOpts);
|
|
@@ -2037,8 +2061,8 @@ function rescheduleBooking3(httpClient) {
|
|
|
2037
2061
|
{ httpClient }
|
|
2038
2062
|
);
|
|
2039
2063
|
}
|
|
2040
|
-
function
|
|
2041
|
-
return (bookingId, revision, options) =>
|
|
2064
|
+
function confirmBooking2(httpClient) {
|
|
2065
|
+
return (bookingId, revision, options) => confirmBooking(
|
|
2042
2066
|
bookingId,
|
|
2043
2067
|
revision,
|
|
2044
2068
|
options,
|
|
@@ -2063,8 +2087,8 @@ function updateExtendedFields3(httpClient) {
|
|
|
2063
2087
|
{ httpClient }
|
|
2064
2088
|
);
|
|
2065
2089
|
}
|
|
2066
|
-
function
|
|
2067
|
-
return (bookingId, revision, options) =>
|
|
2090
|
+
function declineBooking2(httpClient) {
|
|
2091
|
+
return (bookingId, revision, options) => declineBooking(
|
|
2068
2092
|
bookingId,
|
|
2069
2093
|
revision,
|
|
2070
2094
|
options,
|
|
@@ -2072,16 +2096,16 @@ function declineBooking3(httpClient) {
|
|
|
2072
2096
|
{ httpClient }
|
|
2073
2097
|
);
|
|
2074
2098
|
}
|
|
2075
|
-
function
|
|
2076
|
-
return (bookingId, options) =>
|
|
2099
|
+
function cancelBooking2(httpClient) {
|
|
2100
|
+
return (bookingId, options) => cancelBooking(
|
|
2077
2101
|
bookingId,
|
|
2078
2102
|
options,
|
|
2079
2103
|
// @ts-ignore
|
|
2080
2104
|
{ httpClient }
|
|
2081
2105
|
);
|
|
2082
2106
|
}
|
|
2083
|
-
function
|
|
2084
|
-
return (bookingId, options) =>
|
|
2107
|
+
function updateNumberOfParticipants2(httpClient) {
|
|
2108
|
+
return (bookingId, options) => updateNumberOfParticipants(
|
|
2085
2109
|
bookingId,
|
|
2086
2110
|
options,
|
|
2087
2111
|
// @ts-ignore
|
|
@@ -2387,12 +2411,12 @@ var bulkConfirmOrDeclineBooking4 = /* @__PURE__ */ (0, import_rest_modules3.crea
|
|
|
2387
2411
|
var createBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createBooking3);
|
|
2388
2412
|
var bulkCreateBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateBooking3);
|
|
2389
2413
|
var rescheduleBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(rescheduleBooking3);
|
|
2390
|
-
var
|
|
2414
|
+
var confirmBooking3 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(confirmBooking2);
|
|
2391
2415
|
var setBookingSubmissionId4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(setBookingSubmissionId3);
|
|
2392
2416
|
var updateExtendedFields4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateExtendedFields3);
|
|
2393
|
-
var
|
|
2394
|
-
var
|
|
2395
|
-
var
|
|
2417
|
+
var declineBooking3 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(declineBooking2);
|
|
2418
|
+
var cancelBooking3 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(cancelBooking2);
|
|
2419
|
+
var updateNumberOfParticipants3 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateNumberOfParticipants2);
|
|
2396
2420
|
var createMultiServiceBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createMultiServiceBooking3);
|
|
2397
2421
|
var rescheduleMultiServiceBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(rescheduleMultiServiceBooking3);
|
|
2398
2422
|
var getMultiServiceBookingAvailability4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getMultiServiceBookingAvailability3);
|