@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
|
@@ -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
|
|
|
@@ -88,6 +88,10 @@ function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
|
|
|
88
88
|
{
|
|
89
89
|
srcPath: "/_api/bookings-service/v2/bulk/multi_service_bookings",
|
|
90
90
|
destPath: "/v2/bulk/multi_service_bookings"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
|
|
94
|
+
destPath: "/v2/multi_service_bookings"
|
|
91
95
|
}
|
|
92
96
|
],
|
|
93
97
|
"manage._base_domain_": [
|
|
@@ -120,6 +124,10 @@ function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
|
|
|
120
124
|
{
|
|
121
125
|
srcPath: "/bookings/v2/bulk/bookings",
|
|
122
126
|
destPath: "/v2/bulk/bookings"
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
|
|
130
|
+
destPath: "/v2/multi_service_bookings"
|
|
123
131
|
}
|
|
124
132
|
],
|
|
125
133
|
"www._base_domain_": [
|
|
@@ -166,6 +174,10 @@ function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
|
|
|
166
174
|
{
|
|
167
175
|
srcPath: "/_api/bookings-service",
|
|
168
176
|
destPath: "/v2/bookings"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
|
|
180
|
+
destPath: "/v2/multi_service_bookings"
|
|
169
181
|
}
|
|
170
182
|
]
|
|
171
183
|
};
|
|
@@ -189,6 +201,10 @@ function resolveComWixpressBookingsBookingsV2BookingsUrl(opts) {
|
|
|
189
201
|
{
|
|
190
202
|
srcPath: "/_api/bookings-service/v2/bulk/multi_service_bookings",
|
|
191
203
|
destPath: "/v2/bulk/multi_service_bookings"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
|
|
207
|
+
destPath: "/v2/multi_service_bookings"
|
|
192
208
|
}
|
|
193
209
|
],
|
|
194
210
|
"manage._base_domain_": [
|
|
@@ -221,6 +237,10 @@ function resolveComWixpressBookingsBookingsV2BookingsUrl(opts) {
|
|
|
221
237
|
{
|
|
222
238
|
srcPath: "/bookings/v2/bulk/bookings",
|
|
223
239
|
destPath: "/v2/bulk/bookings"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
|
|
243
|
+
destPath: "/v2/multi_service_bookings"
|
|
224
244
|
}
|
|
225
245
|
],
|
|
226
246
|
"www._base_domain_": [
|
|
@@ -267,6 +287,10 @@ function resolveComWixpressBookingsBookingsV2BookingsUrl(opts) {
|
|
|
267
287
|
{
|
|
268
288
|
srcPath: "/_api/bookings-service",
|
|
269
289
|
destPath: "/v2/bookings"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
|
|
293
|
+
destPath: "/v2/multi_service_bookings"
|
|
270
294
|
}
|
|
271
295
|
]
|
|
272
296
|
};
|
|
@@ -539,8 +563,8 @@ function rescheduleBooking(payload) {
|
|
|
539
563
|
}
|
|
540
564
|
return __rescheduleBooking;
|
|
541
565
|
}
|
|
542
|
-
function
|
|
543
|
-
function
|
|
566
|
+
function bookingsConfirmBooking(payload) {
|
|
567
|
+
function __bookingsConfirmBooking({ host }) {
|
|
544
568
|
const metadata = {
|
|
545
569
|
entityFqdn: "wix.bookings.v2.booking",
|
|
546
570
|
method: "POST",
|
|
@@ -574,7 +598,7 @@ function confirmBooking(payload) {
|
|
|
574
598
|
};
|
|
575
599
|
return metadata;
|
|
576
600
|
}
|
|
577
|
-
return
|
|
601
|
+
return __bookingsConfirmBooking;
|
|
578
602
|
}
|
|
579
603
|
function setBookingSubmissionId(payload) {
|
|
580
604
|
function __setBookingSubmissionId({ host }) {
|
|
@@ -631,8 +655,8 @@ function updateExtendedFields(payload) {
|
|
|
631
655
|
}
|
|
632
656
|
return __updateExtendedFields;
|
|
633
657
|
}
|
|
634
|
-
function
|
|
635
|
-
function
|
|
658
|
+
function bookingsDeclineBooking(payload) {
|
|
659
|
+
function __bookingsDeclineBooking({ host }) {
|
|
636
660
|
const metadata = {
|
|
637
661
|
entityFqdn: "wix.bookings.v2.booking",
|
|
638
662
|
method: "POST",
|
|
@@ -666,10 +690,10 @@ function declineBooking(payload) {
|
|
|
666
690
|
};
|
|
667
691
|
return metadata;
|
|
668
692
|
}
|
|
669
|
-
return
|
|
693
|
+
return __bookingsDeclineBooking;
|
|
670
694
|
}
|
|
671
|
-
function
|
|
672
|
-
function
|
|
695
|
+
function bookingsCancelBooking(payload) {
|
|
696
|
+
function __bookingsCancelBooking({ host }) {
|
|
673
697
|
const metadata = {
|
|
674
698
|
entityFqdn: "wix.bookings.v2.booking",
|
|
675
699
|
method: "POST",
|
|
@@ -703,10 +727,10 @@ function cancelBooking(payload) {
|
|
|
703
727
|
};
|
|
704
728
|
return metadata;
|
|
705
729
|
}
|
|
706
|
-
return
|
|
730
|
+
return __bookingsCancelBooking;
|
|
707
731
|
}
|
|
708
|
-
function
|
|
709
|
-
function
|
|
732
|
+
function bookingsUpdateNumberOfParticipants(payload) {
|
|
733
|
+
function __bookingsUpdateNumberOfParticipants({ host }) {
|
|
710
734
|
const metadata = {
|
|
711
735
|
entityFqdn: "wix.bookings.v2.booking",
|
|
712
736
|
method: "POST",
|
|
@@ -740,7 +764,7 @@ function updateNumberOfParticipants(payload) {
|
|
|
740
764
|
};
|
|
741
765
|
return metadata;
|
|
742
766
|
}
|
|
743
|
-
return
|
|
767
|
+
return __bookingsUpdateNumberOfParticipants;
|
|
744
768
|
}
|
|
745
769
|
function createMultiServiceBooking(payload) {
|
|
746
770
|
function __createMultiServiceBooking({ host }) {
|
|
@@ -1420,7 +1444,7 @@ async function rescheduleBooking2(bookingId, slot, options) {
|
|
|
1420
1444
|
throw transformedError;
|
|
1421
1445
|
}
|
|
1422
1446
|
}
|
|
1423
|
-
async function
|
|
1447
|
+
async function confirmBooking(bookingId, revision, options) {
|
|
1424
1448
|
const { httpClient, sideEffects } = arguments[3];
|
|
1425
1449
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1426
1450
|
bookingId,
|
|
@@ -1431,7 +1455,7 @@ async function confirmBooking2(bookingId, revision, options) {
|
|
|
1431
1455
|
doubleBooked: options?.doubleBooked,
|
|
1432
1456
|
flowControlSettings: options?.flowControlSettings
|
|
1433
1457
|
});
|
|
1434
|
-
const reqOpts =
|
|
1458
|
+
const reqOpts = bookingsConfirmBooking(payload);
|
|
1435
1459
|
sideEffects?.onSiteCall?.();
|
|
1436
1460
|
try {
|
|
1437
1461
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1516,7 +1540,7 @@ async function updateExtendedFields2(_id, namespace, options) {
|
|
|
1516
1540
|
throw transformedError;
|
|
1517
1541
|
}
|
|
1518
1542
|
}
|
|
1519
|
-
async function
|
|
1543
|
+
async function declineBooking(bookingId, revision, options) {
|
|
1520
1544
|
const { httpClient, sideEffects } = arguments[3];
|
|
1521
1545
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1522
1546
|
bookingId,
|
|
@@ -1526,7 +1550,7 @@ async function declineBooking2(bookingId, revision, options) {
|
|
|
1526
1550
|
doubleBooked: options?.doubleBooked,
|
|
1527
1551
|
flowControlSettings: options?.flowControlSettings
|
|
1528
1552
|
});
|
|
1529
|
-
const reqOpts =
|
|
1553
|
+
const reqOpts = bookingsDeclineBooking(payload);
|
|
1530
1554
|
sideEffects?.onSiteCall?.();
|
|
1531
1555
|
try {
|
|
1532
1556
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1553,7 +1577,7 @@ async function declineBooking2(bookingId, revision, options) {
|
|
|
1553
1577
|
throw transformedError;
|
|
1554
1578
|
}
|
|
1555
1579
|
}
|
|
1556
|
-
async function
|
|
1580
|
+
async function cancelBooking(bookingId, options) {
|
|
1557
1581
|
const { httpClient, sideEffects } = arguments[2];
|
|
1558
1582
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1559
1583
|
bookingId,
|
|
@@ -1561,7 +1585,7 @@ async function cancelBooking2(bookingId, options) {
|
|
|
1561
1585
|
flowControlSettings: options?.flowControlSettings,
|
|
1562
1586
|
revision: options?.revision
|
|
1563
1587
|
});
|
|
1564
|
-
const reqOpts =
|
|
1588
|
+
const reqOpts = bookingsCancelBooking(payload);
|
|
1565
1589
|
sideEffects?.onSiteCall?.();
|
|
1566
1590
|
try {
|
|
1567
1591
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1586,7 +1610,7 @@ async function cancelBooking2(bookingId, options) {
|
|
|
1586
1610
|
throw transformedError;
|
|
1587
1611
|
}
|
|
1588
1612
|
}
|
|
1589
|
-
async function
|
|
1613
|
+
async function updateNumberOfParticipants(bookingId, options) {
|
|
1590
1614
|
const { httpClient, sideEffects } = arguments[2];
|
|
1591
1615
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1592
1616
|
bookingId,
|
|
@@ -1594,7 +1618,7 @@ async function updateNumberOfParticipants2(bookingId, options) {
|
|
|
1594
1618
|
totalParticipants: options?.totalParticipants,
|
|
1595
1619
|
participantsChoices: options?.participantsChoices
|
|
1596
1620
|
});
|
|
1597
|
-
const reqOpts =
|
|
1621
|
+
const reqOpts = bookingsUpdateNumberOfParticipants(payload);
|
|
1598
1622
|
sideEffects?.onSiteCall?.();
|
|
1599
1623
|
try {
|
|
1600
1624
|
const result = await httpClient.request(reqOpts);
|