@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
@@ -531,17 +531,17 @@ interface CreateMultiServiceBookingSignature {
531
531
  *
532
532
  * ## When to call this method
533
533
  *
534
- * Create sequential appointments where customers book related services. For adding existing single-service bookings to an existing multi-service booking, call Add Bookings to Multi Service Booking ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings-writer-v2/add-bookings-to-multi-service-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/add-bookings-to-multi-service-booking)) instead.
534
+ * Create sequential appointments where customers book related services together. For adding existing single-service bookings to an existing multi-service booking, call Add Bookings to Multi Service Booking ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings-writer-v2/add-bookings-to-multi-service-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/add-bookings-to-multi-service-booking)) instead.
535
535
  *
536
536
  * ## Requirements and behavior
537
537
  *
538
- * *Package constraints**: Multi-service bookings support 2-8 appointment-based single-service bookings only (course and class bookings aren't supported). All single-service bookings must be at the same location with sequential scheduling and no gaps between appointments.
538
+ * __Package constraints__: Multi-service bookings support 2-8 appointment-based single-service bookings only (course and class bookings aren't supported). All single-service bookings must be at the same location with sequential scheduling and no gaps between appointments.
539
539
  *
540
- * *Timing specification**: You must provide complete `slot` details (`scheduleId`, `startDate`, `endDate`) for each single-service booking. Wix Bookings validates sequential timing but doesn't auto-calculate it.
540
+ * __Timing specification__: You must provide complete `slot` details (`scheduleId`, `startDate`, `endDate`) for each single-service booking. Wix Bookings validates sequential timing but doesn't auto-calculate it.
541
541
  *
542
- * *Package pricing**: The total price equals the sum of individual services. Wix Bookings automatically syncs the payment status from the corresponding Wix eCommerce order ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecommerce/orders/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction)) if the customer paid via an eCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecommerce/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).
542
+ * __Package pricing__: The total price equals the sum of individual services. Wix Bookings automatically syncs the payment status from the corresponding Wix eCommerce order ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecommerce/orders/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/orders/introduction)) if the customer paid via an eCommerce checkout ([SDK](https://dev.wix.com/docs/sdk/backend-modules/ecommerce/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).
543
543
  *
544
- * *Package notifications**: Customers receive 1 unified notification for the entire multi-service booking. Wix Bookings doesn't send notifications for the package's individual single-service bookings.
544
+ * __Package notifications__: Customers receive 1 unified notification for the entire multi-service booking. Wix Bookings doesn't send notifications for the package's individual single-service bookings.
545
545
  *
546
546
  * ## Related methods
547
547
  *
@@ -569,7 +569,7 @@ interface RescheduleMultiServiceBookingSignature {
569
569
  *
570
570
  * This method reschedules single-service bookings within the multi-service booking while maintaining sequential order. You must specify exact new timing for each service to ensure they remain back-to-back with no gaps or overlaps.
571
571
  *
572
- * This method fails if it can't reschedule at least 1 single-service booking. You must provide the current revision number for each booking you're rescheduling to prevent conflicting changes.
572
+ * This method fails if it can't reschedule at least 1 single-service booking. You must provide the current revision number for each single-service booking you're rescheduling to prevent conflicting changes.
573
573
  *
574
574
  * See Reschedule Booking ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings-writer-v2/reschedule-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/reschedule-booking)) for single-service booking rescheduling details.
575
575
  * @param - ID of the multi-service booking to reschedule.
@@ -591,14 +591,11 @@ interface GetMultiServiceBookingAvailabilitySignature {
591
591
  * - The relevant services' booking policies ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/introduction)).
592
592
  * - The availability of all required resources ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/introduction)).
593
593
  *
594
- * ## When to call this method
595
- *
596
- * Check if an existing multi-service booking is still valid after business configuration changes. For example, staff changes, policy updates, or capacity modifications.
597
- *
598
- * ## When to call List Multi Service Availability Time Slots instead
594
+ * Call this method to check if an existing multi-service booking is still valid after business configuration changes.
595
+ * For example, staff changes, policy updates, or capacity modifications.
599
596
  *
600
597
  * For checking availability before creating new multi-service bookings, call List Multi Service Availability Time Slots
601
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings-reader-v2/list-multi-service-availability-time-slots) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-reader-v2/list-multi-service-availability-time-slots)) instead.
598
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/time-slots/multi-service-availability-time-slots/list-multi-service-availability-time-slots) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/time-slots/time-slots-v2/list-multi-service-availability-time-slots)) instead.
602
599
  * @param - ID of the multi-service booking to retrieve.
603
600
  */
604
601
  (multiServiceBookingId: string): Promise<NonNullablePaths<GetMultiServiceBookingAvailabilityResponse, `bookable` | `multiServiceBookingInfo`> & {
@@ -608,7 +605,7 @@ interface GetMultiServiceBookingAvailabilitySignature {
608
605
  declare function cancelMultiServiceBooking$1(httpClient: HttpClient): CancelMultiServiceBookingSignature;
609
606
  interface CancelMultiServiceBookingSignature {
610
607
  /**
611
- * Cancels a multi-service booking and all its single-service bookings.
608
+ * Cancels a multi-service booking and all its associated single-service bookings.
612
609
  *
613
610
  *
614
611
  * Cancels the entire multi-service booking, updating the status of all single-service bookings to `CANCELED`.
@@ -633,8 +630,8 @@ interface MarkMultiServiceBookingAsPendingSignature {
633
630
  *
634
631
  * ## Status requirements
635
632
  *
636
- * - **Original status**: All single-service bookings must have `CREATED` status.
637
- * - **Target status**: All bookings move to `PENDING` together (all-or-nothing operation).
633
+ * - __Original status__: All single-service bookings must have `CREATED` status.
634
+ * - __Target status__: All bookings move to `PENDING` together (all-or-nothing operation).
638
635
  *
639
636
  * ## Checkout restrictions
640
637
  *
@@ -643,9 +640,9 @@ interface MarkMultiServiceBookingAsPendingSignature {
643
640
  *
644
641
  * ## Additional updates
645
642
  *
646
- * - **Payment status**: Updates if you specify a new `markAsPendingBookingsInfo.paymentStatus`.
647
- * - **Customer notifications**: Send messages using `participantNotification`.
648
- * - **Revision control**: Requires current revision numbers for all single-service bookings.
643
+ * - __Payment status__: Updates if you specify a new `markAsPendingBookingsInfo.paymentStatus`.
644
+ * - __Customer notifications__: Send messages using `participantNotification`.
645
+ * - __Revision control__: Requires current revision numbers for all single-service bookings.
649
646
  *
650
647
  * See Mark Booking as Pending ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings-writer-v2/mark-booking-as-pending) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/mark-booking-as-pending)) for more details about marking single-service bookings as pending.
651
648
  * @param - ID of the multi-service booking to mark as `PENDING`.
@@ -666,8 +663,8 @@ interface ConfirmMultiServiceBookingSignature {
666
663
  *
667
664
  * ## Status requirements
668
665
  *
669
- * - **Original status**: All single-service bookings must have `PENDING`, `CREATED`, or `WAITING_LIST` status.
670
- * - **Target status**: All bookings move to `CONFIRMED` together (all-or-nothing operation).
666
+ * - __Original status__: All single-service bookings must have `PENDING`, `CREATED`, or `WAITING_LIST` status.
667
+ * - __Target status__: All bookings move to `CONFIRMED` together (all-or-nothing operation).
671
668
  *
672
669
  * ## Checkout restrictions
673
670
  *
@@ -676,9 +673,9 @@ interface ConfirmMultiServiceBookingSignature {
676
673
  *
677
674
  * ## Additional updates
678
675
  *
679
- * - **Payment status**: Updates if you specify a new `confirmBookingsInfo.paymentStatus`.
680
- * - **Customer notifications**: Send messages using `participantNotification`.
681
- * - **Revision control**: Requires current revision numbers for all single-service bookings.
676
+ * - __Payment status__: Updates if you specify a new `confirmBookingsInfo.paymentStatus`.
677
+ * - __Customer notifications__: Send messages using `participantNotification`.
678
+ * - __Revision control__: Requires current revision numbers for all single-service bookings.
682
679
  *
683
680
  * See Confirm Booking ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings-writer-v2/confirm-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/confirm-booking)) for more details about confirming single-service bookings.
684
681
  * @param - ID of the multi-service booking to confirm its related bookings.
@@ -699,8 +696,8 @@ interface DeclineMultiServiceBookingSignature {
699
696
  *
700
697
  * ## Status requirements
701
698
  *
702
- * - **Original status**: All single-service bookings must have `PENDING`, `CREATED`, or `WAITING_LIST` status.
703
- * - **Target status**: All bookings move to `DECLINED` together (all-or-nothing operation).
699
+ * - __Original status__: All single-service bookings must have `PENDING`, `CREATED`, or `WAITING_LIST` status.
700
+ * - __Target status__: All bookings move to `DECLINED` together (all-or-nothing operation).
704
701
  *
705
702
  * ## Checkout restrictions
706
703
  *
@@ -709,9 +706,9 @@ interface DeclineMultiServiceBookingSignature {
709
706
  *
710
707
  * ## Additional updates
711
708
  *
712
- * - **Payment status**: Updates if you specify a new `declineBookingsInfo.paymentStatus`.
713
- * - **Customer notifications**: Send messages using `participantNotification`.
714
- * - **Revision control**: Requires current revision numbers for all single-service bookings.
709
+ * - __Payment status__: Updates if you specify a new `declineBookingsInfo.paymentStatus`.
710
+ * - __Customer notifications__: Send messages using `participantNotification`.
711
+ * - __Revision control__: Requires current revision numbers for all single-service bookings.
715
712
  *
716
713
  * Refer to Decline Booking ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings-writer-v2/decline-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/decline-booking)) for more details about declining single-service bookings.
717
714
  * @param - ID of the multi-service booking to decline.
@@ -732,13 +729,13 @@ interface BulkGetMultiServiceBookingAllowedActionsSignature {
732
729
  * - `cancel`: Whether the customer can cancel the multi-service booking.
733
730
  * - `reschedule`: Whether the customer can adjust the multi-service booking's timing.
734
731
  *
735
- * ## Important considerations
732
+ * Bear the following considerations in mind when calling this method:
736
733
  *
737
- * *Real-time validation**: Wix Bookings calculates allowed actions based on current multi-service booking status, booking policies ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/introduction)), and available resources ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/introduction)) at the time of the call.
734
+ * __Real-time validation__: Wix Bookings calculates allowed actions based on current multi-service booking status, booking policies ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/booking-policies/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/policies/booking-policies/introduction)), and available resources ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/resources/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resources-v2/introduction)) at the time of the call.
738
735
  *
739
- * *Permission context**: Depending on the permissions of the calling [identity](https://dev.wix.com/build-apps/develop-your-app/about-identities), you may see different allowed actions for the same multi-service booking. For example, if the identity has permissions to read only part of the multi-service booking, the response indicates which single-service bookings the identity can read.
736
+ * __Permission context__: Depending on the permissions of the calling [identity](https://dev.wix.com/build-apps/develop-your-app/about-identities), you may see different allowed actions for the same multi-service booking. For example, if the identity has permissions to read only part of the multi-service booking, the response indicates which single-service bookings the identity can read.
740
737
  *
741
- * *Status dependencies**: Allowed actions change as bookings progress through their lifecycle (`CREATED` → `PENDING` → `CONFIRMED`/`DECLINED` → `CANCELED`).
738
+ * __Status dependencies__: Allowed actions change as bookings progress through their lifecycle (`CREATED` → `PENDING` → `CONFIRMED`/`DECLINED` → `CANCELED`).
742
739
  * Bookings can skip `PENDING` and move directly from `CREATED` to `CONFIRMED`/`DECLINED` based on service configuration.
743
740
  * @param - IDs of the multi-service bookings to retrieve allowed actions for.
744
741
  */
@@ -750,12 +747,12 @@ interface GetMultiServiceBookingSignature {
750
747
  * Retrieves a multi-service booking and all its associated single-service bookings.
751
748
  *
752
749
  *
753
- * Returns the complete multi-service booking information including its ID, included single-service bookings, and the total number of scheduled single-service bookings.
750
+ * Returns the complete multi-service booking information including its ID, associated single-service bookings, and the total number of scheduled single-service bookings.
754
751
  *
755
- * If you call as an [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities) who has permissions to read only part of the multi-service booking, only the permitted single-service bookings are retrieved.
752
+ * If you call on behalf of an [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities) with permissions to read only part of the multi-service booking, only the permitted single-service bookings are retrieved.
756
753
  * The returned total number includes single-service bookings for which you don't have permissions.
757
754
  *
758
- * See Query Extended Bookings ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings-reader-v2/query-extended-bookings) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-reader-v2/query-extended-booking)) for details about retrieving individual single-service bookings and additional metadata.
755
+ * See Query Extended Bookings ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/extended-bookings/query-extended-bookings) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-reader-v2/query-extended-bookings)) for details about retrieving individual single-service bookings and additional metadata.
759
756
  * @param - ID of the multi-service booking.
760
757
  * @returns Retrieved multi-service booking.
761
758
  */
@@ -780,10 +777,10 @@ interface AddBookingsToMultiServiceBookingSignature {
780
777
  *
781
778
  * ## Requirements and limitations
782
779
  *
783
- * - **Maximum capacity**: The total number of single-service bookings can't exceed 8.
784
- * - **Booking eligibility**: You can add only independent single-service bookings that aren't part of another multi-service booking.
785
- * - **Status compatibility**: Added bookings must have compatible status with the target multi-service booking.
786
- * - **Revision control**: You must provide current revision numbers for all single-service bookings to add.
780
+ * - __Maximum capacity__: The total number of single-service bookings can't exceed 8.
781
+ * - __Booking eligibility__: You can add only independent single-service bookings that aren't part of another multi-service booking.
782
+ * - __Status compatibility__: Added bookings must have compatible status with the target multi-service booking.
783
+ * - __Revision control__: You must provide current revision numbers for all single-service bookings to add.
787
784
  * @param - ID of the multi-service booking.
788
785
  */
789
786
  (multiServiceBookingId: string, options?: NonNullablePaths<AddBookingsToMultiServiceBookingOptions, `bookings` | `bookings.${number}.bookingId` | `bookings.${number}.revision`>): Promise<NonNullablePaths<AddBookingsToMultiServiceBookingResponse, `bookings` | {
@@ -800,21 +797,21 @@ interface RemoveBookingsFromMultiServiceBookingSignature {
800
797
  *
801
798
  * ## Removal options
802
799
  *
803
- * *Remove all permitted bookings**: If you specify an empty `bookings` array, all single-service bookings for which the call's [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities) has read permissions are removed from the multi-service booking.
800
+ * __Remove all permitted bookings__: If you specify an empty `bookings` array, all single-service bookings for which the call's [identity](https://dev.wix.com/docs/build-apps/develop-your-app/access/about-identities) has read permissions are removed from the multi-service booking.
804
801
  *
805
- * *Selective removal**: Specify single-service booking IDs and revisions to remove only specific single-service bookings from the package.
802
+ * __Selective removal__: Specify single-service booking IDs and revisions to remove only specific single-service bookings from the package.
806
803
  *
807
- * *Sequential scheduling**: To maintain sequential scheduling, remove only first or last single-service bookings. For middle bookings, first reschedule all relevant single-service bookings to eliminate gaps. To do so, call Reschedule Multi Service Booking ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings-writer-v2/reschedule-multi-service-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/multi-service-bookings/reschedule-multi-service-booking)) before removing the unwanted bookings.
804
+ * __Sequential scheduling__: To maintain sequential scheduling, remove only first or last single-service bookings. For middle bookings, first reschedule all relevant single-service bookings to eliminate gaps. To do so, call Reschedule Multi Service Booking ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings-writer-v2/reschedule-multi-service-booking) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/multi-service-bookings/reschedule-multi-service-booking)) before removing the unwanted bookings.
808
805
  *
809
806
  * ## Removal behavior
810
807
  *
811
- * *Independent bookings**: Removed single-service bookings become independent bookings.
808
+ * __Independent bookings__: Removed single-service bookings become independent bookings.
812
809
  * You can manage them using single-service booking methods.
813
810
  *
814
- * *Automatic cleanup**: Multi-service bookings must contain at least 2 services.
811
+ * __Automatic cleanup__: Multi-service bookings must contain at least 2 services.
815
812
  * If removal results in only 1 remaining single-service booking for the multi-service booking, the entire multi-service booking is deleted and the remaining single-service booking becomes a standalone booking.
816
813
  *
817
- * *Revision control**: Specify current revision numbers to prevent conflicting modifications during the removal process.
814
+ * __Revision control__: Specify current revision numbers to prevent conflicting modifications during the removal process.
818
815
  * @param - ID of the multi-service booking.
819
816
  */
820
817
  (multiServiceBookingId: string, options?: RemoveBookingsFromMultiServiceBookingOptions): Promise<NonNullablePaths<RemoveBookingsFromMultiServiceBookingResponse, `bookings` | {
@@ -37,14 +37,14 @@ __export(index_exports, {
37
37
  bulkConfirmOrDeclineBooking: () => bulkConfirmOrDeclineBooking4,
38
38
  bulkCreateBooking: () => bulkCreateBooking4,
39
39
  bulkGetMultiServiceBookingAllowedActions: () => bulkGetMultiServiceBookingAllowedActions4,
40
- cancelBooking: () => cancelBooking3,
40
+ cancelBooking: () => cancelBooking4,
41
41
  cancelMultiServiceBooking: () => cancelMultiServiceBooking4,
42
- confirmBooking: () => confirmBooking3,
42
+ confirmBooking: () => confirmBooking4,
43
43
  confirmMultiServiceBooking: () => confirmMultiServiceBooking4,
44
44
  confirmOrDeclineBooking: () => confirmOrDeclineBooking4,
45
45
  createBooking: () => createBooking4,
46
46
  createMultiServiceBooking: () => createMultiServiceBooking4,
47
- declineBooking: () => declineBooking3,
47
+ declineBooking: () => declineBooking4,
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: () => updateNumberOfParticipants3
64
+ updateNumberOfParticipants: () => updateNumberOfParticipants4
65
65
  });
66
66
  module.exports = __toCommonJS(index_exports);
67
67
 
@@ -553,8 +553,8 @@ function rescheduleBooking(payload) {
553
553
  }
554
554
  return __rescheduleBooking;
555
555
  }
556
- function bookingsConfirmBooking(payload) {
557
- function __bookingsConfirmBooking({ host }) {
556
+ function confirmBooking(payload) {
557
+ function __confirmBooking({ host }) {
558
558
  const metadata = {
559
559
  entityFqdn: "wix.bookings.v2.booking",
560
560
  method: "POST",
@@ -588,7 +588,7 @@ function bookingsConfirmBooking(payload) {
588
588
  };
589
589
  return metadata;
590
590
  }
591
- return __bookingsConfirmBooking;
591
+ return __confirmBooking;
592
592
  }
593
593
  function setBookingSubmissionId(payload) {
594
594
  function __setBookingSubmissionId({ host }) {
@@ -645,8 +645,8 @@ function updateExtendedFields(payload) {
645
645
  }
646
646
  return __updateExtendedFields;
647
647
  }
648
- function bookingsDeclineBooking(payload) {
649
- function __bookingsDeclineBooking({ host }) {
648
+ function declineBooking(payload) {
649
+ function __declineBooking({ host }) {
650
650
  const metadata = {
651
651
  entityFqdn: "wix.bookings.v2.booking",
652
652
  method: "POST",
@@ -680,10 +680,10 @@ function bookingsDeclineBooking(payload) {
680
680
  };
681
681
  return metadata;
682
682
  }
683
- return __bookingsDeclineBooking;
683
+ return __declineBooking;
684
684
  }
685
- function bookingsCancelBooking(payload) {
686
- function __bookingsCancelBooking({ host }) {
685
+ function cancelBooking(payload) {
686
+ function __cancelBooking({ host }) {
687
687
  const metadata = {
688
688
  entityFqdn: "wix.bookings.v2.booking",
689
689
  method: "POST",
@@ -717,10 +717,10 @@ function bookingsCancelBooking(payload) {
717
717
  };
718
718
  return metadata;
719
719
  }
720
- return __bookingsCancelBooking;
720
+ return __cancelBooking;
721
721
  }
722
- function bookingsUpdateNumberOfParticipants(payload) {
723
- function __bookingsUpdateNumberOfParticipants({ host }) {
722
+ function updateNumberOfParticipants(payload) {
723
+ function __updateNumberOfParticipants({ host }) {
724
724
  const metadata = {
725
725
  entityFqdn: "wix.bookings.v2.booking",
726
726
  method: "POST",
@@ -754,7 +754,7 @@ function bookingsUpdateNumberOfParticipants(payload) {
754
754
  };
755
755
  return metadata;
756
756
  }
757
- return __bookingsUpdateNumberOfParticipants;
757
+ return __updateNumberOfParticipants;
758
758
  }
759
759
  function createMultiServiceBooking(payload) {
760
760
  function __createMultiServiceBooking({ host }) {
@@ -1434,7 +1434,7 @@ async function rescheduleBooking2(bookingId, slot, options) {
1434
1434
  throw transformedError;
1435
1435
  }
1436
1436
  }
1437
- async function confirmBooking(bookingId, revision, options) {
1437
+ async function confirmBooking2(bookingId, revision, options) {
1438
1438
  const { httpClient, sideEffects } = arguments[3];
1439
1439
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1440
1440
  bookingId,
@@ -1445,7 +1445,7 @@ async function confirmBooking(bookingId, revision, options) {
1445
1445
  doubleBooked: options?.doubleBooked,
1446
1446
  flowControlSettings: options?.flowControlSettings
1447
1447
  });
1448
- const reqOpts = bookingsConfirmBooking(payload);
1448
+ const reqOpts = confirmBooking(payload);
1449
1449
  sideEffects?.onSiteCall?.();
1450
1450
  try {
1451
1451
  const result = await httpClient.request(reqOpts);
@@ -1530,7 +1530,7 @@ async function updateExtendedFields2(_id, namespace, options) {
1530
1530
  throw transformedError;
1531
1531
  }
1532
1532
  }
1533
- async function declineBooking(bookingId, revision, options) {
1533
+ async function declineBooking2(bookingId, revision, options) {
1534
1534
  const { httpClient, sideEffects } = arguments[3];
1535
1535
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1536
1536
  bookingId,
@@ -1540,7 +1540,7 @@ async function declineBooking(bookingId, revision, options) {
1540
1540
  doubleBooked: options?.doubleBooked,
1541
1541
  flowControlSettings: options?.flowControlSettings
1542
1542
  });
1543
- const reqOpts = bookingsDeclineBooking(payload);
1543
+ const reqOpts = declineBooking(payload);
1544
1544
  sideEffects?.onSiteCall?.();
1545
1545
  try {
1546
1546
  const result = await httpClient.request(reqOpts);
@@ -1567,7 +1567,7 @@ async function declineBooking(bookingId, revision, options) {
1567
1567
  throw transformedError;
1568
1568
  }
1569
1569
  }
1570
- async function cancelBooking(bookingId, options) {
1570
+ async function cancelBooking2(bookingId, options) {
1571
1571
  const { httpClient, sideEffects } = arguments[2];
1572
1572
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1573
1573
  bookingId,
@@ -1575,7 +1575,7 @@ async function cancelBooking(bookingId, options) {
1575
1575
  flowControlSettings: options?.flowControlSettings,
1576
1576
  revision: options?.revision
1577
1577
  });
1578
- const reqOpts = bookingsCancelBooking(payload);
1578
+ const reqOpts = cancelBooking(payload);
1579
1579
  sideEffects?.onSiteCall?.();
1580
1580
  try {
1581
1581
  const result = await httpClient.request(reqOpts);
@@ -1600,7 +1600,7 @@ async function cancelBooking(bookingId, options) {
1600
1600
  throw transformedError;
1601
1601
  }
1602
1602
  }
1603
- async function updateNumberOfParticipants(bookingId, options) {
1603
+ async function updateNumberOfParticipants2(bookingId, options) {
1604
1604
  const { httpClient, sideEffects } = arguments[2];
1605
1605
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1606
1606
  bookingId,
@@ -1608,7 +1608,7 @@ async function updateNumberOfParticipants(bookingId, options) {
1608
1608
  totalParticipants: options?.totalParticipants,
1609
1609
  participantsChoices: options?.participantsChoices
1610
1610
  });
1611
- const reqOpts = bookingsUpdateNumberOfParticipants(payload);
1611
+ const reqOpts = updateNumberOfParticipants(payload);
1612
1612
  sideEffects?.onSiteCall?.();
1613
1613
  try {
1614
1614
  const result = await httpClient.request(reqOpts);
@@ -2037,8 +2037,8 @@ function rescheduleBooking3(httpClient) {
2037
2037
  { httpClient }
2038
2038
  );
2039
2039
  }
2040
- function confirmBooking2(httpClient) {
2041
- return (bookingId, revision, options) => confirmBooking(
2040
+ function confirmBooking3(httpClient) {
2041
+ return (bookingId, revision, options) => confirmBooking2(
2042
2042
  bookingId,
2043
2043
  revision,
2044
2044
  options,
@@ -2063,8 +2063,8 @@ function updateExtendedFields3(httpClient) {
2063
2063
  { httpClient }
2064
2064
  );
2065
2065
  }
2066
- function declineBooking2(httpClient) {
2067
- return (bookingId, revision, options) => declineBooking(
2066
+ function declineBooking3(httpClient) {
2067
+ return (bookingId, revision, options) => declineBooking2(
2068
2068
  bookingId,
2069
2069
  revision,
2070
2070
  options,
@@ -2072,16 +2072,16 @@ function declineBooking2(httpClient) {
2072
2072
  { httpClient }
2073
2073
  );
2074
2074
  }
2075
- function cancelBooking2(httpClient) {
2076
- return (bookingId, options) => cancelBooking(
2075
+ function cancelBooking3(httpClient) {
2076
+ return (bookingId, options) => cancelBooking2(
2077
2077
  bookingId,
2078
2078
  options,
2079
2079
  // @ts-ignore
2080
2080
  { httpClient }
2081
2081
  );
2082
2082
  }
2083
- function updateNumberOfParticipants2(httpClient) {
2084
- return (bookingId, options) => updateNumberOfParticipants(
2083
+ function updateNumberOfParticipants3(httpClient) {
2084
+ return (bookingId, options) => updateNumberOfParticipants2(
2085
2085
  bookingId,
2086
2086
  options,
2087
2087
  // @ts-ignore
@@ -2387,12 +2387,12 @@ var bulkConfirmOrDeclineBooking4 = /* @__PURE__ */ (0, import_rest_modules3.crea
2387
2387
  var createBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createBooking3);
2388
2388
  var bulkCreateBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCreateBooking3);
2389
2389
  var rescheduleBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(rescheduleBooking3);
2390
- var confirmBooking3 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(confirmBooking2);
2390
+ var confirmBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(confirmBooking3);
2391
2391
  var setBookingSubmissionId4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(setBookingSubmissionId3);
2392
2392
  var updateExtendedFields4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateExtendedFields3);
2393
- var declineBooking3 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(declineBooking2);
2394
- var cancelBooking3 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(cancelBooking2);
2395
- var updateNumberOfParticipants3 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateNumberOfParticipants2);
2393
+ var declineBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(declineBooking3);
2394
+ var cancelBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(cancelBooking3);
2395
+ var updateNumberOfParticipants4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateNumberOfParticipants3);
2396
2396
  var createMultiServiceBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createMultiServiceBooking3);
2397
2397
  var rescheduleMultiServiceBooking4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(rescheduleMultiServiceBooking3);
2398
2398
  var getMultiServiceBookingAvailability4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getMultiServiceBookingAvailability3);