@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` | {
@@ -489,8 +489,8 @@ function rescheduleBooking(payload) {
489
489
  }
490
490
  return __rescheduleBooking;
491
491
  }
492
- function bookingsConfirmBooking(payload) {
493
- function __bookingsConfirmBooking({ host }) {
492
+ function confirmBooking(payload) {
493
+ function __confirmBooking({ host }) {
494
494
  const metadata = {
495
495
  entityFqdn: "wix.bookings.v2.booking",
496
496
  method: "POST",
@@ -524,7 +524,7 @@ function bookingsConfirmBooking(payload) {
524
524
  };
525
525
  return metadata;
526
526
  }
527
- return __bookingsConfirmBooking;
527
+ return __confirmBooking;
528
528
  }
529
529
  function setBookingSubmissionId(payload) {
530
530
  function __setBookingSubmissionId({ host }) {
@@ -581,8 +581,8 @@ function updateExtendedFields(payload) {
581
581
  }
582
582
  return __updateExtendedFields;
583
583
  }
584
- function bookingsDeclineBooking(payload) {
585
- function __bookingsDeclineBooking({ host }) {
584
+ function declineBooking(payload) {
585
+ function __declineBooking({ host }) {
586
586
  const metadata = {
587
587
  entityFqdn: "wix.bookings.v2.booking",
588
588
  method: "POST",
@@ -616,10 +616,10 @@ function bookingsDeclineBooking(payload) {
616
616
  };
617
617
  return metadata;
618
618
  }
619
- return __bookingsDeclineBooking;
619
+ return __declineBooking;
620
620
  }
621
- function bookingsCancelBooking(payload) {
622
- function __bookingsCancelBooking({ host }) {
621
+ function cancelBooking(payload) {
622
+ function __cancelBooking({ host }) {
623
623
  const metadata = {
624
624
  entityFqdn: "wix.bookings.v2.booking",
625
625
  method: "POST",
@@ -653,10 +653,10 @@ function bookingsCancelBooking(payload) {
653
653
  };
654
654
  return metadata;
655
655
  }
656
- return __bookingsCancelBooking;
656
+ return __cancelBooking;
657
657
  }
658
- function bookingsUpdateNumberOfParticipants(payload) {
659
- function __bookingsUpdateNumberOfParticipants({ host }) {
658
+ function updateNumberOfParticipants(payload) {
659
+ function __updateNumberOfParticipants({ host }) {
660
660
  const metadata = {
661
661
  entityFqdn: "wix.bookings.v2.booking",
662
662
  method: "POST",
@@ -690,7 +690,7 @@ function bookingsUpdateNumberOfParticipants(payload) {
690
690
  };
691
691
  return metadata;
692
692
  }
693
- return __bookingsUpdateNumberOfParticipants;
693
+ return __updateNumberOfParticipants;
694
694
  }
695
695
  function createMultiServiceBooking(payload) {
696
696
  function __createMultiServiceBooking({ host }) {
@@ -1370,7 +1370,7 @@ async function rescheduleBooking2(bookingId, slot, options) {
1370
1370
  throw transformedError;
1371
1371
  }
1372
1372
  }
1373
- async function confirmBooking(bookingId, revision, options) {
1373
+ async function confirmBooking2(bookingId, revision, options) {
1374
1374
  const { httpClient, sideEffects } = arguments[3];
1375
1375
  const payload = renameKeysFromSDKRequestToRESTRequest({
1376
1376
  bookingId,
@@ -1381,7 +1381,7 @@ async function confirmBooking(bookingId, revision, options) {
1381
1381
  doubleBooked: options?.doubleBooked,
1382
1382
  flowControlSettings: options?.flowControlSettings
1383
1383
  });
1384
- const reqOpts = bookingsConfirmBooking(payload);
1384
+ const reqOpts = confirmBooking(payload);
1385
1385
  sideEffects?.onSiteCall?.();
1386
1386
  try {
1387
1387
  const result = await httpClient.request(reqOpts);
@@ -1466,7 +1466,7 @@ async function updateExtendedFields2(_id, namespace, options) {
1466
1466
  throw transformedError;
1467
1467
  }
1468
1468
  }
1469
- async function declineBooking(bookingId, revision, options) {
1469
+ async function declineBooking2(bookingId, revision, options) {
1470
1470
  const { httpClient, sideEffects } = arguments[3];
1471
1471
  const payload = renameKeysFromSDKRequestToRESTRequest({
1472
1472
  bookingId,
@@ -1476,7 +1476,7 @@ async function declineBooking(bookingId, revision, options) {
1476
1476
  doubleBooked: options?.doubleBooked,
1477
1477
  flowControlSettings: options?.flowControlSettings
1478
1478
  });
1479
- const reqOpts = bookingsDeclineBooking(payload);
1479
+ const reqOpts = declineBooking(payload);
1480
1480
  sideEffects?.onSiteCall?.();
1481
1481
  try {
1482
1482
  const result = await httpClient.request(reqOpts);
@@ -1503,7 +1503,7 @@ async function declineBooking(bookingId, revision, options) {
1503
1503
  throw transformedError;
1504
1504
  }
1505
1505
  }
1506
- async function cancelBooking(bookingId, options) {
1506
+ async function cancelBooking2(bookingId, options) {
1507
1507
  const { httpClient, sideEffects } = arguments[2];
1508
1508
  const payload = renameKeysFromSDKRequestToRESTRequest({
1509
1509
  bookingId,
@@ -1511,7 +1511,7 @@ async function cancelBooking(bookingId, options) {
1511
1511
  flowControlSettings: options?.flowControlSettings,
1512
1512
  revision: options?.revision
1513
1513
  });
1514
- const reqOpts = bookingsCancelBooking(payload);
1514
+ const reqOpts = cancelBooking(payload);
1515
1515
  sideEffects?.onSiteCall?.();
1516
1516
  try {
1517
1517
  const result = await httpClient.request(reqOpts);
@@ -1536,7 +1536,7 @@ async function cancelBooking(bookingId, options) {
1536
1536
  throw transformedError;
1537
1537
  }
1538
1538
  }
1539
- async function updateNumberOfParticipants(bookingId, options) {
1539
+ async function updateNumberOfParticipants2(bookingId, options) {
1540
1540
  const { httpClient, sideEffects } = arguments[2];
1541
1541
  const payload = renameKeysFromSDKRequestToRESTRequest({
1542
1542
  bookingId,
@@ -1544,7 +1544,7 @@ async function updateNumberOfParticipants(bookingId, options) {
1544
1544
  totalParticipants: options?.totalParticipants,
1545
1545
  participantsChoices: options?.participantsChoices
1546
1546
  });
1547
- const reqOpts = bookingsUpdateNumberOfParticipants(payload);
1547
+ const reqOpts = updateNumberOfParticipants(payload);
1548
1548
  sideEffects?.onSiteCall?.();
1549
1549
  try {
1550
1550
  const result = await httpClient.request(reqOpts);
@@ -1973,8 +1973,8 @@ function rescheduleBooking3(httpClient) {
1973
1973
  { httpClient }
1974
1974
  );
1975
1975
  }
1976
- function confirmBooking2(httpClient) {
1977
- return (bookingId, revision, options) => confirmBooking(
1976
+ function confirmBooking3(httpClient) {
1977
+ return (bookingId, revision, options) => confirmBooking2(
1978
1978
  bookingId,
1979
1979
  revision,
1980
1980
  options,
@@ -1999,8 +1999,8 @@ function updateExtendedFields3(httpClient) {
1999
1999
  { httpClient }
2000
2000
  );
2001
2001
  }
2002
- function declineBooking2(httpClient) {
2003
- return (bookingId, revision, options) => declineBooking(
2002
+ function declineBooking3(httpClient) {
2003
+ return (bookingId, revision, options) => declineBooking2(
2004
2004
  bookingId,
2005
2005
  revision,
2006
2006
  options,
@@ -2008,16 +2008,16 @@ function declineBooking2(httpClient) {
2008
2008
  { httpClient }
2009
2009
  );
2010
2010
  }
2011
- function cancelBooking2(httpClient) {
2012
- return (bookingId, options) => cancelBooking(
2011
+ function cancelBooking3(httpClient) {
2012
+ return (bookingId, options) => cancelBooking2(
2013
2013
  bookingId,
2014
2014
  options,
2015
2015
  // @ts-ignore
2016
2016
  { httpClient }
2017
2017
  );
2018
2018
  }
2019
- function updateNumberOfParticipants2(httpClient) {
2020
- return (bookingId, options) => updateNumberOfParticipants(
2019
+ function updateNumberOfParticipants3(httpClient) {
2020
+ return (bookingId, options) => updateNumberOfParticipants2(
2021
2021
  bookingId,
2022
2022
  options,
2023
2023
  // @ts-ignore
@@ -2323,12 +2323,12 @@ var bulkConfirmOrDeclineBooking4 = /* @__PURE__ */ createRESTModule(bulkConfirmO
2323
2323
  var createBooking4 = /* @__PURE__ */ createRESTModule(createBooking3);
2324
2324
  var bulkCreateBooking4 = /* @__PURE__ */ createRESTModule(bulkCreateBooking3);
2325
2325
  var rescheduleBooking4 = /* @__PURE__ */ createRESTModule(rescheduleBooking3);
2326
- var confirmBooking3 = /* @__PURE__ */ createRESTModule(confirmBooking2);
2326
+ var confirmBooking4 = /* @__PURE__ */ createRESTModule(confirmBooking3);
2327
2327
  var setBookingSubmissionId4 = /* @__PURE__ */ createRESTModule(setBookingSubmissionId3);
2328
2328
  var updateExtendedFields4 = /* @__PURE__ */ createRESTModule(updateExtendedFields3);
2329
- var declineBooking3 = /* @__PURE__ */ createRESTModule(declineBooking2);
2330
- var cancelBooking3 = /* @__PURE__ */ createRESTModule(cancelBooking2);
2331
- var updateNumberOfParticipants3 = /* @__PURE__ */ createRESTModule(updateNumberOfParticipants2);
2329
+ var declineBooking4 = /* @__PURE__ */ createRESTModule(declineBooking3);
2330
+ var cancelBooking4 = /* @__PURE__ */ createRESTModule(cancelBooking3);
2331
+ var updateNumberOfParticipants4 = /* @__PURE__ */ createRESTModule(updateNumberOfParticipants3);
2332
2332
  var createMultiServiceBooking4 = /* @__PURE__ */ createRESTModule(createMultiServiceBooking3);
2333
2333
  var rescheduleMultiServiceBooking4 = /* @__PURE__ */ createRESTModule(rescheduleMultiServiceBooking3);
2334
2334
  var getMultiServiceBookingAvailability4 = /* @__PURE__ */ createRESTModule(getMultiServiceBookingAvailability3);
@@ -2367,14 +2367,14 @@ export {
2367
2367
  bulkConfirmOrDeclineBooking4 as bulkConfirmOrDeclineBooking,
2368
2368
  bulkCreateBooking4 as bulkCreateBooking,
2369
2369
  bulkGetMultiServiceBookingAllowedActions4 as bulkGetMultiServiceBookingAllowedActions,
2370
- cancelBooking3 as cancelBooking,
2370
+ cancelBooking4 as cancelBooking,
2371
2371
  cancelMultiServiceBooking4 as cancelMultiServiceBooking,
2372
- confirmBooking3 as confirmBooking,
2372
+ confirmBooking4 as confirmBooking,
2373
2373
  confirmMultiServiceBooking4 as confirmMultiServiceBooking,
2374
2374
  confirmOrDeclineBooking4 as confirmOrDeclineBooking,
2375
2375
  createBooking4 as createBooking,
2376
2376
  createMultiServiceBooking4 as createMultiServiceBooking,
2377
- declineBooking3 as declineBooking,
2377
+ declineBooking4 as declineBooking,
2378
2378
  declineMultiServiceBooking4 as declineMultiServiceBooking,
2379
2379
  getMultiServiceBooking4 as getMultiServiceBooking,
2380
2380
  getMultiServiceBookingAvailability4 as getMultiServiceBookingAvailability,
@@ -2391,6 +2391,6 @@ export {
2391
2391
  rescheduleMultiServiceBooking4 as rescheduleMultiServiceBooking,
2392
2392
  setBookingSubmissionId4 as setBookingSubmissionId,
2393
2393
  updateExtendedFields4 as updateExtendedFields,
2394
- updateNumberOfParticipants3 as updateNumberOfParticipants
2394
+ updateNumberOfParticipants4 as updateNumberOfParticipants
2395
2395
  };
2396
2396
  //# sourceMappingURL=index.mjs.map