@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
|
@@ -31,6 +31,10 @@ function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
|
|
|
31
31
|
{
|
|
32
32
|
srcPath: "/_api/bookings-service/v2/bulk/multi_service_bookings",
|
|
33
33
|
destPath: "/v2/bulk/multi_service_bookings"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
|
|
37
|
+
destPath: "/v2/multi_service_bookings"
|
|
34
38
|
}
|
|
35
39
|
],
|
|
36
40
|
"manage._base_domain_": [
|
|
@@ -63,6 +67,10 @@ function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
|
|
|
63
67
|
{
|
|
64
68
|
srcPath: "/bookings/v2/bulk/bookings",
|
|
65
69
|
destPath: "/v2/bulk/bookings"
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
|
|
73
|
+
destPath: "/v2/multi_service_bookings"
|
|
66
74
|
}
|
|
67
75
|
],
|
|
68
76
|
"www._base_domain_": [
|
|
@@ -109,6 +117,10 @@ function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
|
|
|
109
117
|
{
|
|
110
118
|
srcPath: "/_api/bookings-service",
|
|
111
119
|
destPath: "/v2/bookings"
|
|
120
|
+
},
|
|
121
|
+
{
|
|
122
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
|
|
123
|
+
destPath: "/v2/multi_service_bookings"
|
|
112
124
|
}
|
|
113
125
|
]
|
|
114
126
|
};
|
|
@@ -132,6 +144,10 @@ function resolveComWixpressBookingsBookingsV2BookingsUrl(opts) {
|
|
|
132
144
|
{
|
|
133
145
|
srcPath: "/_api/bookings-service/v2/bulk/multi_service_bookings",
|
|
134
146
|
destPath: "/v2/bulk/multi_service_bookings"
|
|
147
|
+
},
|
|
148
|
+
{
|
|
149
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
|
|
150
|
+
destPath: "/v2/multi_service_bookings"
|
|
135
151
|
}
|
|
136
152
|
],
|
|
137
153
|
"manage._base_domain_": [
|
|
@@ -164,6 +180,10 @@ function resolveComWixpressBookingsBookingsV2BookingsUrl(opts) {
|
|
|
164
180
|
{
|
|
165
181
|
srcPath: "/bookings/v2/bulk/bookings",
|
|
166
182
|
destPath: "/v2/bulk/bookings"
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
|
|
186
|
+
destPath: "/v2/multi_service_bookings"
|
|
167
187
|
}
|
|
168
188
|
],
|
|
169
189
|
"www._base_domain_": [
|
|
@@ -210,6 +230,10 @@ function resolveComWixpressBookingsBookingsV2BookingsUrl(opts) {
|
|
|
210
230
|
{
|
|
211
231
|
srcPath: "/_api/bookings-service",
|
|
212
232
|
destPath: "/v2/bookings"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
srcPath: "/bookings/multiServiceBookings/v2/multi_service_bookings",
|
|
236
|
+
destPath: "/v2/multi_service_bookings"
|
|
213
237
|
}
|
|
214
238
|
]
|
|
215
239
|
};
|
|
@@ -482,8 +506,8 @@ function rescheduleBooking(payload) {
|
|
|
482
506
|
}
|
|
483
507
|
return __rescheduleBooking;
|
|
484
508
|
}
|
|
485
|
-
function
|
|
486
|
-
function
|
|
509
|
+
function bookingsConfirmBooking(payload) {
|
|
510
|
+
function __bookingsConfirmBooking({ host }) {
|
|
487
511
|
const metadata = {
|
|
488
512
|
entityFqdn: "wix.bookings.v2.booking",
|
|
489
513
|
method: "POST",
|
|
@@ -517,7 +541,7 @@ function confirmBooking(payload) {
|
|
|
517
541
|
};
|
|
518
542
|
return metadata;
|
|
519
543
|
}
|
|
520
|
-
return
|
|
544
|
+
return __bookingsConfirmBooking;
|
|
521
545
|
}
|
|
522
546
|
function setBookingSubmissionId(payload) {
|
|
523
547
|
function __setBookingSubmissionId({ host }) {
|
|
@@ -574,8 +598,8 @@ function updateExtendedFields(payload) {
|
|
|
574
598
|
}
|
|
575
599
|
return __updateExtendedFields;
|
|
576
600
|
}
|
|
577
|
-
function
|
|
578
|
-
function
|
|
601
|
+
function bookingsDeclineBooking(payload) {
|
|
602
|
+
function __bookingsDeclineBooking({ host }) {
|
|
579
603
|
const metadata = {
|
|
580
604
|
entityFqdn: "wix.bookings.v2.booking",
|
|
581
605
|
method: "POST",
|
|
@@ -609,10 +633,10 @@ function declineBooking(payload) {
|
|
|
609
633
|
};
|
|
610
634
|
return metadata;
|
|
611
635
|
}
|
|
612
|
-
return
|
|
636
|
+
return __bookingsDeclineBooking;
|
|
613
637
|
}
|
|
614
|
-
function
|
|
615
|
-
function
|
|
638
|
+
function bookingsCancelBooking(payload) {
|
|
639
|
+
function __bookingsCancelBooking({ host }) {
|
|
616
640
|
const metadata = {
|
|
617
641
|
entityFqdn: "wix.bookings.v2.booking",
|
|
618
642
|
method: "POST",
|
|
@@ -646,10 +670,10 @@ function cancelBooking(payload) {
|
|
|
646
670
|
};
|
|
647
671
|
return metadata;
|
|
648
672
|
}
|
|
649
|
-
return
|
|
673
|
+
return __bookingsCancelBooking;
|
|
650
674
|
}
|
|
651
|
-
function
|
|
652
|
-
function
|
|
675
|
+
function bookingsUpdateNumberOfParticipants(payload) {
|
|
676
|
+
function __bookingsUpdateNumberOfParticipants({ host }) {
|
|
653
677
|
const metadata = {
|
|
654
678
|
entityFqdn: "wix.bookings.v2.booking",
|
|
655
679
|
method: "POST",
|
|
@@ -683,7 +707,7 @@ function updateNumberOfParticipants(payload) {
|
|
|
683
707
|
};
|
|
684
708
|
return metadata;
|
|
685
709
|
}
|
|
686
|
-
return
|
|
710
|
+
return __bookingsUpdateNumberOfParticipants;
|
|
687
711
|
}
|
|
688
712
|
function createMultiServiceBooking(payload) {
|
|
689
713
|
function __createMultiServiceBooking({ host }) {
|
|
@@ -1363,7 +1387,7 @@ async function rescheduleBooking2(bookingId, slot, options) {
|
|
|
1363
1387
|
throw transformedError;
|
|
1364
1388
|
}
|
|
1365
1389
|
}
|
|
1366
|
-
async function
|
|
1390
|
+
async function confirmBooking(bookingId, revision, options) {
|
|
1367
1391
|
const { httpClient, sideEffects } = arguments[3];
|
|
1368
1392
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1369
1393
|
bookingId,
|
|
@@ -1374,7 +1398,7 @@ async function confirmBooking2(bookingId, revision, options) {
|
|
|
1374
1398
|
doubleBooked: options?.doubleBooked,
|
|
1375
1399
|
flowControlSettings: options?.flowControlSettings
|
|
1376
1400
|
});
|
|
1377
|
-
const reqOpts =
|
|
1401
|
+
const reqOpts = bookingsConfirmBooking(payload);
|
|
1378
1402
|
sideEffects?.onSiteCall?.();
|
|
1379
1403
|
try {
|
|
1380
1404
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1459,7 +1483,7 @@ async function updateExtendedFields2(_id, namespace, options) {
|
|
|
1459
1483
|
throw transformedError;
|
|
1460
1484
|
}
|
|
1461
1485
|
}
|
|
1462
|
-
async function
|
|
1486
|
+
async function declineBooking(bookingId, revision, options) {
|
|
1463
1487
|
const { httpClient, sideEffects } = arguments[3];
|
|
1464
1488
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1465
1489
|
bookingId,
|
|
@@ -1469,7 +1493,7 @@ async function declineBooking2(bookingId, revision, options) {
|
|
|
1469
1493
|
doubleBooked: options?.doubleBooked,
|
|
1470
1494
|
flowControlSettings: options?.flowControlSettings
|
|
1471
1495
|
});
|
|
1472
|
-
const reqOpts =
|
|
1496
|
+
const reqOpts = bookingsDeclineBooking(payload);
|
|
1473
1497
|
sideEffects?.onSiteCall?.();
|
|
1474
1498
|
try {
|
|
1475
1499
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1496,7 +1520,7 @@ async function declineBooking2(bookingId, revision, options) {
|
|
|
1496
1520
|
throw transformedError;
|
|
1497
1521
|
}
|
|
1498
1522
|
}
|
|
1499
|
-
async function
|
|
1523
|
+
async function cancelBooking(bookingId, options) {
|
|
1500
1524
|
const { httpClient, sideEffects } = arguments[2];
|
|
1501
1525
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1502
1526
|
bookingId,
|
|
@@ -1504,7 +1528,7 @@ async function cancelBooking2(bookingId, options) {
|
|
|
1504
1528
|
flowControlSettings: options?.flowControlSettings,
|
|
1505
1529
|
revision: options?.revision
|
|
1506
1530
|
});
|
|
1507
|
-
const reqOpts =
|
|
1531
|
+
const reqOpts = bookingsCancelBooking(payload);
|
|
1508
1532
|
sideEffects?.onSiteCall?.();
|
|
1509
1533
|
try {
|
|
1510
1534
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1529,7 +1553,7 @@ async function cancelBooking2(bookingId, options) {
|
|
|
1529
1553
|
throw transformedError;
|
|
1530
1554
|
}
|
|
1531
1555
|
}
|
|
1532
|
-
async function
|
|
1556
|
+
async function updateNumberOfParticipants(bookingId, options) {
|
|
1533
1557
|
const { httpClient, sideEffects } = arguments[2];
|
|
1534
1558
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1535
1559
|
bookingId,
|
|
@@ -1537,7 +1561,7 @@ async function updateNumberOfParticipants2(bookingId, options) {
|
|
|
1537
1561
|
totalParticipants: options?.totalParticipants,
|
|
1538
1562
|
participantsChoices: options?.participantsChoices
|
|
1539
1563
|
});
|
|
1540
|
-
const reqOpts =
|
|
1564
|
+
const reqOpts = bookingsUpdateNumberOfParticipants(payload);
|
|
1541
1565
|
sideEffects?.onSiteCall?.();
|
|
1542
1566
|
try {
|
|
1543
1567
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1941,14 +1965,14 @@ export {
|
|
|
1941
1965
|
bulkConfirmOrDeclineBooking2 as bulkConfirmOrDeclineBooking,
|
|
1942
1966
|
bulkCreateBooking2 as bulkCreateBooking,
|
|
1943
1967
|
bulkGetMultiServiceBookingAllowedActions2 as bulkGetMultiServiceBookingAllowedActions,
|
|
1944
|
-
|
|
1968
|
+
cancelBooking,
|
|
1945
1969
|
cancelMultiServiceBooking2 as cancelMultiServiceBooking,
|
|
1946
|
-
|
|
1970
|
+
confirmBooking,
|
|
1947
1971
|
confirmMultiServiceBooking2 as confirmMultiServiceBooking,
|
|
1948
1972
|
confirmOrDeclineBooking2 as confirmOrDeclineBooking,
|
|
1949
1973
|
createBooking2 as createBooking,
|
|
1950
1974
|
createMultiServiceBooking2 as createMultiServiceBooking,
|
|
1951
|
-
|
|
1975
|
+
declineBooking,
|
|
1952
1976
|
declineMultiServiceBooking2 as declineMultiServiceBooking,
|
|
1953
1977
|
getMultiServiceBooking2 as getMultiServiceBooking,
|
|
1954
1978
|
getMultiServiceBookingAvailability2 as getMultiServiceBookingAvailability,
|
|
@@ -1958,6 +1982,6 @@ export {
|
|
|
1958
1982
|
rescheduleMultiServiceBooking2 as rescheduleMultiServiceBooking,
|
|
1959
1983
|
setBookingSubmissionId2 as setBookingSubmissionId,
|
|
1960
1984
|
updateExtendedFields2 as updateExtendedFields,
|
|
1961
|
-
|
|
1985
|
+
updateNumberOfParticipants
|
|
1962
1986
|
};
|
|
1963
1987
|
//# sourceMappingURL=index.typings.mjs.map
|