@wix/auto_sdk_bookings_bookings 1.0.41 → 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.d.ts +42 -45
- package/build/cjs/index.js +36 -36
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +81 -57
- package/build/cjs/index.typings.js +24 -24
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +23 -8
- package/build/cjs/meta.js +24 -24
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +42 -45
- package/build/es/index.mjs +36 -36
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +81 -57
- package/build/es/index.typings.mjs +24 -24
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +23 -8
- package/build/es/meta.mjs +24 -24
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +42 -45
- package/build/internal/cjs/index.js +36 -36
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +81 -57
- package/build/internal/cjs/index.typings.js +24 -24
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +23 -8
- package/build/internal/cjs/meta.js +24 -24
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +42 -45
- package/build/internal/es/index.mjs +36 -36
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +81 -57
- package/build/internal/es/index.typings.mjs +24 -24
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +23 -8
- package/build/internal/es/meta.mjs +24 -24
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -154,8 +154,11 @@ interface BookingParticipantsInfoOneOf {
|
|
|
154
154
|
* For `SEQUENTIAL_BOOKINGS`, see `List Multi Service Availability Time Slots` documentation.
|
|
155
155
|
*/
|
|
156
156
|
declare enum MultiServiceBookingType {
|
|
157
|
+
/** You must schedule single-service bookings back-to-back with each booking starting when the previous booking ends */
|
|
157
158
|
SEQUENTIAL_BOOKINGS = "SEQUENTIAL_BOOKINGS",
|
|
159
|
+
/** Not currently supported. */
|
|
158
160
|
SEPARATE_BOOKINGS = "SEPARATE_BOOKINGS",
|
|
161
|
+
/** Not currently supported. */
|
|
159
162
|
PARALLEL_BOOKINGS = "PARALLEL_BOOKINGS"
|
|
160
163
|
}
|
|
161
164
|
/** @enumType */
|
|
@@ -534,7 +537,7 @@ declare enum SelectedPaymentOption {
|
|
|
534
537
|
type SelectedPaymentOptionWithLiterals = SelectedPaymentOption | 'UNDEFINED' | 'OFFLINE' | 'ONLINE' | 'MEMBERSHIP' | 'MEMBERSHIP_OFFLINE';
|
|
535
538
|
interface ParticipantNotification {
|
|
536
539
|
/**
|
|
537
|
-
* Whether to send
|
|
540
|
+
* Whether to send a message about the changes to the customer.
|
|
538
541
|
*
|
|
539
542
|
* Default: `false`
|
|
540
543
|
*/
|
|
@@ -796,7 +799,7 @@ interface CreateBookingFlowControlSettings {
|
|
|
796
799
|
* Whether `PENDING` bookings are automatically set to `CONFIRMED` for
|
|
797
800
|
* services that normally require the owner's manual confirmation.
|
|
798
801
|
*
|
|
799
|
-
* Your app must have the `BOOKINGS.OVERRIDE_AVAILABILITY` permission
|
|
802
|
+
* Your app must have the `BOOKINGS.OVERRIDE_AVAILABILITY` permission
|
|
800
803
|
* when passing `true`.
|
|
801
804
|
* Default: `false`.
|
|
802
805
|
*/
|
|
@@ -805,7 +808,7 @@ interface CreateBookingFlowControlSettings {
|
|
|
805
808
|
* Whether customers can pay using a payment method that isn't supported
|
|
806
809
|
* for the service, but that's supported for other services.
|
|
807
810
|
*
|
|
808
|
-
* Your app must have the `BOOKINGS.MANAGE_PAYMENTS` permission
|
|
811
|
+
* Your app must have the `BOOKINGS.MANAGE_PAYMENTS` permission when passing
|
|
809
812
|
* `true`.
|
|
810
813
|
* Default: `false`.
|
|
811
814
|
*/
|
|
@@ -1288,7 +1291,7 @@ interface CreateMultiServiceBookingRequest {
|
|
|
1288
1291
|
/**
|
|
1289
1292
|
* Multi-service booking type.
|
|
1290
1293
|
*
|
|
1291
|
-
* Currently only `SEQUENTIAL_BOOKINGS` is supported
|
|
1294
|
+
* Currently only `SEQUENTIAL_BOOKINGS` is supported.
|
|
1292
1295
|
*/
|
|
1293
1296
|
multiServiceBookingType?: MultiServiceBookingTypeWithLiterals;
|
|
1294
1297
|
}
|
|
@@ -1448,7 +1451,11 @@ interface MarkMultiServiceBookingAsPendingRequest {
|
|
|
1448
1451
|
sendSmsReminder?: boolean | null;
|
|
1449
1452
|
/** Whether this booking has a conflict with at least 1 other confirmed booking. */
|
|
1450
1453
|
doubleBooked?: boolean | null;
|
|
1451
|
-
/**
|
|
1454
|
+
/**
|
|
1455
|
+
* Whether to return the single-service bookings that were marked as `PENDING`.
|
|
1456
|
+
*
|
|
1457
|
+
* Default: `false`
|
|
1458
|
+
*/
|
|
1452
1459
|
returnFullEntity?: boolean;
|
|
1453
1460
|
/**
|
|
1454
1461
|
* Information about whether specific procedures of the standard Wix Bookings creation flow are changed.
|
|
@@ -1541,7 +1548,7 @@ interface BulkGetMultiServiceBookingAllowedActionsRequest {
|
|
|
1541
1548
|
interface BulkGetMultiServiceBookingAllowedActionsResponse {
|
|
1542
1549
|
/**
|
|
1543
1550
|
* Information about the multi-service bookings that were retrieved.
|
|
1544
|
-
*
|
|
1551
|
+
* Includes their ID, index in the bulk request and whether they were successfully processed.
|
|
1545
1552
|
*/
|
|
1546
1553
|
results?: BulkCalculateAllowedActionsResult[];
|
|
1547
1554
|
/** Total number of successes and failures for Bulk Get Multi Service Booking Allowed Actions. */
|
|
@@ -1578,7 +1585,11 @@ interface AddBookingsToMultiServiceBookingRequest {
|
|
|
1578
1585
|
* @maxSize 8
|
|
1579
1586
|
*/
|
|
1580
1587
|
bookings: BookingIdAndRevision[];
|
|
1581
|
-
/**
|
|
1588
|
+
/**
|
|
1589
|
+
* Whether to return the single-service bookings that were added to the multi-service booking.
|
|
1590
|
+
*
|
|
1591
|
+
* Default: `false`
|
|
1592
|
+
*/
|
|
1582
1593
|
returnFullEntity?: boolean;
|
|
1583
1594
|
}
|
|
1584
1595
|
interface BookingIdAndRevision {
|
|
@@ -1608,7 +1619,11 @@ interface RemoveBookingsFromMultiServiceBookingRequest {
|
|
|
1608
1619
|
* @maxSize 8
|
|
1609
1620
|
*/
|
|
1610
1621
|
bookings?: BookingIdAndRevision[];
|
|
1611
|
-
/**
|
|
1622
|
+
/**
|
|
1623
|
+
* Whether to return the single-service bookings.
|
|
1624
|
+
*
|
|
1625
|
+
* Default: `false`
|
|
1626
|
+
*/
|
|
1612
1627
|
returnFullEntity?: boolean;
|
|
1613
1628
|
}
|
|
1614
1629
|
interface RemoveBookingsFromMultiServiceBookingResponse {
|
|
@@ -475,8 +475,8 @@ function rescheduleBooking(payload) {
|
|
|
475
475
|
}
|
|
476
476
|
return __rescheduleBooking;
|
|
477
477
|
}
|
|
478
|
-
function
|
|
479
|
-
function
|
|
478
|
+
function confirmBooking(payload) {
|
|
479
|
+
function __confirmBooking({ host }) {
|
|
480
480
|
const metadata = {
|
|
481
481
|
entityFqdn: "wix.bookings.v2.booking",
|
|
482
482
|
method: "POST",
|
|
@@ -510,7 +510,7 @@ function bookingsConfirmBooking(payload) {
|
|
|
510
510
|
};
|
|
511
511
|
return metadata;
|
|
512
512
|
}
|
|
513
|
-
return
|
|
513
|
+
return __confirmBooking;
|
|
514
514
|
}
|
|
515
515
|
function setBookingSubmissionId(payload) {
|
|
516
516
|
function __setBookingSubmissionId({ host }) {
|
|
@@ -567,8 +567,8 @@ function updateExtendedFields(payload) {
|
|
|
567
567
|
}
|
|
568
568
|
return __updateExtendedFields;
|
|
569
569
|
}
|
|
570
|
-
function
|
|
571
|
-
function
|
|
570
|
+
function declineBooking(payload) {
|
|
571
|
+
function __declineBooking({ host }) {
|
|
572
572
|
const metadata = {
|
|
573
573
|
entityFqdn: "wix.bookings.v2.booking",
|
|
574
574
|
method: "POST",
|
|
@@ -602,10 +602,10 @@ function bookingsDeclineBooking(payload) {
|
|
|
602
602
|
};
|
|
603
603
|
return metadata;
|
|
604
604
|
}
|
|
605
|
-
return
|
|
605
|
+
return __declineBooking;
|
|
606
606
|
}
|
|
607
|
-
function
|
|
608
|
-
function
|
|
607
|
+
function cancelBooking(payload) {
|
|
608
|
+
function __cancelBooking({ host }) {
|
|
609
609
|
const metadata = {
|
|
610
610
|
entityFqdn: "wix.bookings.v2.booking",
|
|
611
611
|
method: "POST",
|
|
@@ -639,10 +639,10 @@ function bookingsCancelBooking(payload) {
|
|
|
639
639
|
};
|
|
640
640
|
return metadata;
|
|
641
641
|
}
|
|
642
|
-
return
|
|
642
|
+
return __cancelBooking;
|
|
643
643
|
}
|
|
644
|
-
function
|
|
645
|
-
function
|
|
644
|
+
function updateNumberOfParticipants(payload) {
|
|
645
|
+
function __updateNumberOfParticipants({ host }) {
|
|
646
646
|
const metadata = {
|
|
647
647
|
entityFqdn: "wix.bookings.v2.booking",
|
|
648
648
|
method: "POST",
|
|
@@ -676,7 +676,7 @@ function bookingsUpdateNumberOfParticipants(payload) {
|
|
|
676
676
|
};
|
|
677
677
|
return metadata;
|
|
678
678
|
}
|
|
679
|
-
return
|
|
679
|
+
return __updateNumberOfParticipants;
|
|
680
680
|
}
|
|
681
681
|
function createMultiServiceBooking(payload) {
|
|
682
682
|
function __createMultiServiceBooking({ host }) {
|
|
@@ -1194,9 +1194,9 @@ function rescheduleBooking2() {
|
|
|
1194
1194
|
__originalResponseType: null
|
|
1195
1195
|
};
|
|
1196
1196
|
}
|
|
1197
|
-
function
|
|
1197
|
+
function confirmBooking2() {
|
|
1198
1198
|
const payload = { bookingId: ":bookingId" };
|
|
1199
|
-
const getRequestOptions =
|
|
1199
|
+
const getRequestOptions = confirmBooking(payload);
|
|
1200
1200
|
const getUrl = (context) => {
|
|
1201
1201
|
const { url } = getRequestOptions(context);
|
|
1202
1202
|
return url;
|
|
@@ -1248,9 +1248,9 @@ function updateExtendedFields2() {
|
|
|
1248
1248
|
__originalResponseType: null
|
|
1249
1249
|
};
|
|
1250
1250
|
}
|
|
1251
|
-
function
|
|
1251
|
+
function declineBooking2() {
|
|
1252
1252
|
const payload = { bookingId: ":bookingId" };
|
|
1253
|
-
const getRequestOptions =
|
|
1253
|
+
const getRequestOptions = declineBooking(payload);
|
|
1254
1254
|
const getUrl = (context) => {
|
|
1255
1255
|
const { url } = getRequestOptions(context);
|
|
1256
1256
|
return url;
|
|
@@ -1266,9 +1266,9 @@ function declineBooking() {
|
|
|
1266
1266
|
__originalResponseType: null
|
|
1267
1267
|
};
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
1269
|
+
function cancelBooking2() {
|
|
1270
1270
|
const payload = { bookingId: ":bookingId" };
|
|
1271
|
-
const getRequestOptions =
|
|
1271
|
+
const getRequestOptions = cancelBooking(payload);
|
|
1272
1272
|
const getUrl = (context) => {
|
|
1273
1273
|
const { url } = getRequestOptions(context);
|
|
1274
1274
|
return url;
|
|
@@ -1284,9 +1284,9 @@ function cancelBooking() {
|
|
|
1284
1284
|
__originalResponseType: null
|
|
1285
1285
|
};
|
|
1286
1286
|
}
|
|
1287
|
-
function
|
|
1287
|
+
function updateNumberOfParticipants2() {
|
|
1288
1288
|
const payload = { bookingId: ":bookingId" };
|
|
1289
|
-
const getRequestOptions =
|
|
1289
|
+
const getRequestOptions = updateNumberOfParticipants(payload);
|
|
1290
1290
|
const getUrl = (context) => {
|
|
1291
1291
|
const { url } = getRequestOptions(context);
|
|
1292
1292
|
return url;
|
|
@@ -1509,14 +1509,14 @@ export {
|
|
|
1509
1509
|
bulkConfirmOrDeclineBooking2 as bulkConfirmOrDeclineBooking,
|
|
1510
1510
|
bulkCreateBooking2 as bulkCreateBooking,
|
|
1511
1511
|
bulkGetMultiServiceBookingAllowedActions2 as bulkGetMultiServiceBookingAllowedActions,
|
|
1512
|
-
cancelBooking,
|
|
1512
|
+
cancelBooking2 as cancelBooking,
|
|
1513
1513
|
cancelMultiServiceBooking2 as cancelMultiServiceBooking,
|
|
1514
|
-
confirmBooking,
|
|
1514
|
+
confirmBooking2 as confirmBooking,
|
|
1515
1515
|
confirmMultiServiceBooking2 as confirmMultiServiceBooking,
|
|
1516
1516
|
confirmOrDeclineBooking2 as confirmOrDeclineBooking,
|
|
1517
1517
|
createBooking2 as createBooking,
|
|
1518
1518
|
createMultiServiceBooking2 as createMultiServiceBooking,
|
|
1519
|
-
declineBooking,
|
|
1519
|
+
declineBooking2 as declineBooking,
|
|
1520
1520
|
declineMultiServiceBooking2 as declineMultiServiceBooking,
|
|
1521
1521
|
getMultiServiceBooking2 as getMultiServiceBooking,
|
|
1522
1522
|
getMultiServiceBookingAvailability2 as getMultiServiceBookingAvailability,
|
|
@@ -1526,6 +1526,6 @@ export {
|
|
|
1526
1526
|
rescheduleMultiServiceBooking2 as rescheduleMultiServiceBooking,
|
|
1527
1527
|
setBookingSubmissionId2 as setBookingSubmissionId,
|
|
1528
1528
|
updateExtendedFields2 as updateExtendedFields,
|
|
1529
|
-
updateNumberOfParticipants
|
|
1529
|
+
updateNumberOfParticipants2 as updateNumberOfParticipants
|
|
1530
1530
|
};
|
|
1531
1531
|
//# sourceMappingURL=meta.mjs.map
|