@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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +42 -45
  2. package/build/cjs/index.js +36 -36
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +81 -57
  5. package/build/cjs/index.typings.js +24 -24
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +23 -8
  8. package/build/cjs/meta.js +24 -24
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +42 -45
  11. package/build/es/index.mjs +36 -36
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +81 -57
  14. package/build/es/index.typings.mjs +24 -24
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +23 -8
  17. package/build/es/meta.mjs +24 -24
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +42 -45
  20. package/build/internal/cjs/index.js +36 -36
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +81 -57
  23. package/build/internal/cjs/index.typings.js +24 -24
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +23 -8
  26. package/build/internal/cjs/meta.js +24 -24
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +42 -45
  29. package/build/internal/es/index.mjs +36 -36
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +81 -57
  32. package/build/internal/es/index.typings.mjs +24 -24
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +23 -8
  35. package/build/internal/es/meta.mjs +24 -24
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. 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 the message about the changes to the customer.
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 scope
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 scope when passing
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, where you must schedule single-service bookings back-to-back with each booking starting when the previous 1 ends.
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
- /** Whether to return the single-service bookings that were marked as `PENDING`. */
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
- * Including their ID, index in the bulk request and whether they were successfully processed.
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
- /** Whether to return the single-service bookings that were added to the multi-service booking. */
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
- /** Whether to return the single-service bookings. */
1622
+ /**
1623
+ * Whether to return the single-service bookings.
1624
+ *
1625
+ * Default: `false`
1626
+ */
1612
1627
  returnFullEntity?: boolean;
1613
1628
  }
1614
1629
  interface RemoveBookingsFromMultiServiceBookingResponse {
package/build/cjs/meta.js CHANGED
@@ -24,14 +24,14 @@ __export(meta_exports, {
24
24
  bulkConfirmOrDeclineBooking: () => bulkConfirmOrDeclineBooking2,
25
25
  bulkCreateBooking: () => bulkCreateBooking2,
26
26
  bulkGetMultiServiceBookingAllowedActions: () => bulkGetMultiServiceBookingAllowedActions2,
27
- cancelBooking: () => cancelBooking,
27
+ cancelBooking: () => cancelBooking2,
28
28
  cancelMultiServiceBooking: () => cancelMultiServiceBooking2,
29
- confirmBooking: () => confirmBooking,
29
+ confirmBooking: () => confirmBooking2,
30
30
  confirmMultiServiceBooking: () => confirmMultiServiceBooking2,
31
31
  confirmOrDeclineBooking: () => confirmOrDeclineBooking2,
32
32
  createBooking: () => createBooking2,
33
33
  createMultiServiceBooking: () => createMultiServiceBooking2,
34
- declineBooking: () => declineBooking,
34
+ declineBooking: () => declineBooking2,
35
35
  declineMultiServiceBooking: () => declineMultiServiceBooking2,
36
36
  getMultiServiceBooking: () => getMultiServiceBooking2,
37
37
  getMultiServiceBookingAvailability: () => getMultiServiceBookingAvailability2,
@@ -41,7 +41,7 @@ __export(meta_exports, {
41
41
  rescheduleMultiServiceBooking: () => rescheduleMultiServiceBooking2,
42
42
  setBookingSubmissionId: () => setBookingSubmissionId2,
43
43
  updateExtendedFields: () => updateExtendedFields2,
44
- updateNumberOfParticipants: () => updateNumberOfParticipants
44
+ updateNumberOfParticipants: () => updateNumberOfParticipants2
45
45
  });
46
46
  module.exports = __toCommonJS(meta_exports);
47
47
 
@@ -522,8 +522,8 @@ function rescheduleBooking(payload) {
522
522
  }
523
523
  return __rescheduleBooking;
524
524
  }
525
- function bookingsConfirmBooking(payload) {
526
- function __bookingsConfirmBooking({ host }) {
525
+ function confirmBooking(payload) {
526
+ function __confirmBooking({ host }) {
527
527
  const metadata = {
528
528
  entityFqdn: "wix.bookings.v2.booking",
529
529
  method: "POST",
@@ -557,7 +557,7 @@ function bookingsConfirmBooking(payload) {
557
557
  };
558
558
  return metadata;
559
559
  }
560
- return __bookingsConfirmBooking;
560
+ return __confirmBooking;
561
561
  }
562
562
  function setBookingSubmissionId(payload) {
563
563
  function __setBookingSubmissionId({ host }) {
@@ -614,8 +614,8 @@ function updateExtendedFields(payload) {
614
614
  }
615
615
  return __updateExtendedFields;
616
616
  }
617
- function bookingsDeclineBooking(payload) {
618
- function __bookingsDeclineBooking({ host }) {
617
+ function declineBooking(payload) {
618
+ function __declineBooking({ host }) {
619
619
  const metadata = {
620
620
  entityFqdn: "wix.bookings.v2.booking",
621
621
  method: "POST",
@@ -649,10 +649,10 @@ function bookingsDeclineBooking(payload) {
649
649
  };
650
650
  return metadata;
651
651
  }
652
- return __bookingsDeclineBooking;
652
+ return __declineBooking;
653
653
  }
654
- function bookingsCancelBooking(payload) {
655
- function __bookingsCancelBooking({ host }) {
654
+ function cancelBooking(payload) {
655
+ function __cancelBooking({ host }) {
656
656
  const metadata = {
657
657
  entityFqdn: "wix.bookings.v2.booking",
658
658
  method: "POST",
@@ -686,10 +686,10 @@ function bookingsCancelBooking(payload) {
686
686
  };
687
687
  return metadata;
688
688
  }
689
- return __bookingsCancelBooking;
689
+ return __cancelBooking;
690
690
  }
691
- function bookingsUpdateNumberOfParticipants(payload) {
692
- function __bookingsUpdateNumberOfParticipants({ host }) {
691
+ function updateNumberOfParticipants(payload) {
692
+ function __updateNumberOfParticipants({ host }) {
693
693
  const metadata = {
694
694
  entityFqdn: "wix.bookings.v2.booking",
695
695
  method: "POST",
@@ -723,7 +723,7 @@ function bookingsUpdateNumberOfParticipants(payload) {
723
723
  };
724
724
  return metadata;
725
725
  }
726
- return __bookingsUpdateNumberOfParticipants;
726
+ return __updateNumberOfParticipants;
727
727
  }
728
728
  function createMultiServiceBooking(payload) {
729
729
  function __createMultiServiceBooking({ host }) {
@@ -1241,9 +1241,9 @@ function rescheduleBooking2() {
1241
1241
  __originalResponseType: null
1242
1242
  };
1243
1243
  }
1244
- function confirmBooking() {
1244
+ function confirmBooking2() {
1245
1245
  const payload = { bookingId: ":bookingId" };
1246
- const getRequestOptions = bookingsConfirmBooking(payload);
1246
+ const getRequestOptions = confirmBooking(payload);
1247
1247
  const getUrl = (context) => {
1248
1248
  const { url } = getRequestOptions(context);
1249
1249
  return url;
@@ -1295,9 +1295,9 @@ function updateExtendedFields2() {
1295
1295
  __originalResponseType: null
1296
1296
  };
1297
1297
  }
1298
- function declineBooking() {
1298
+ function declineBooking2() {
1299
1299
  const payload = { bookingId: ":bookingId" };
1300
- const getRequestOptions = bookingsDeclineBooking(payload);
1300
+ const getRequestOptions = declineBooking(payload);
1301
1301
  const getUrl = (context) => {
1302
1302
  const { url } = getRequestOptions(context);
1303
1303
  return url;
@@ -1313,9 +1313,9 @@ function declineBooking() {
1313
1313
  __originalResponseType: null
1314
1314
  };
1315
1315
  }
1316
- function cancelBooking() {
1316
+ function cancelBooking2() {
1317
1317
  const payload = { bookingId: ":bookingId" };
1318
- const getRequestOptions = bookingsCancelBooking(payload);
1318
+ const getRequestOptions = cancelBooking(payload);
1319
1319
  const getUrl = (context) => {
1320
1320
  const { url } = getRequestOptions(context);
1321
1321
  return url;
@@ -1331,9 +1331,9 @@ function cancelBooking() {
1331
1331
  __originalResponseType: null
1332
1332
  };
1333
1333
  }
1334
- function updateNumberOfParticipants() {
1334
+ function updateNumberOfParticipants2() {
1335
1335
  const payload = { bookingId: ":bookingId" };
1336
- const getRequestOptions = bookingsUpdateNumberOfParticipants(payload);
1336
+ const getRequestOptions = updateNumberOfParticipants(payload);
1337
1337
  const getUrl = (context) => {
1338
1338
  const { url } = getRequestOptions(context);
1339
1339
  return url;