@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
@@ -153,8 +153,11 @@ interface BookingParticipantsInfoOneOf {
153
153
  * For `SEQUENTIAL_BOOKINGS`, see `List Multi Service Availability Time Slots` documentation.
154
154
  */
155
155
  declare enum MultiServiceBookingType {
156
+ /** You must schedule single-service bookings back-to-back with each booking starting when the previous booking ends */
156
157
  SEQUENTIAL_BOOKINGS = "SEQUENTIAL_BOOKINGS",
158
+ /** Not currently supported. */
157
159
  SEPARATE_BOOKINGS = "SEPARATE_BOOKINGS",
160
+ /** Not currently supported. */
158
161
  PARALLEL_BOOKINGS = "PARALLEL_BOOKINGS"
159
162
  }
160
163
  /** @enumType */
@@ -564,7 +567,7 @@ declare enum Actor {
564
567
  type ActorWithLiterals = Actor | 'UNDEFINED_ACTOR' | 'BUSINESS' | 'CUSTOMER';
565
568
  interface ParticipantNotification {
566
569
  /**
567
- * Whether to send the message about the changes to the customer.
570
+ * Whether to send a message about the changes to the customer.
568
571
  *
569
572
  * Default: `false`
570
573
  */
@@ -1516,7 +1519,7 @@ interface CreateBookingFlowControlSettings {
1516
1519
  * Whether `PENDING` bookings are automatically set to `CONFIRMED` for
1517
1520
  * services that normally require the owner's manual confirmation.
1518
1521
  *
1519
- * Your app must have the `BOOKINGS.OVERRIDE_AVAILABILITY` permission scope
1522
+ * Your app must have the `BOOKINGS.OVERRIDE_AVAILABILITY` permission
1520
1523
  * when passing `true`.
1521
1524
  * Default: `false`.
1522
1525
  */
@@ -1525,7 +1528,7 @@ interface CreateBookingFlowControlSettings {
1525
1528
  * Whether customers can pay using a payment method that isn't supported
1526
1529
  * for the service, but that's supported for other services.
1527
1530
  *
1528
- * Your app must have the `BOOKINGS.MANAGE_PAYMENTS` permission scope when passing
1531
+ * Your app must have the `BOOKINGS.MANAGE_PAYMENTS` permission when passing
1529
1532
  * `true`.
1530
1533
  * Default: `false`.
1531
1534
  */
@@ -2650,7 +2653,7 @@ interface CreateMultiServiceBookingRequest {
2650
2653
  /**
2651
2654
  * Multi-service booking type.
2652
2655
  *
2653
- * 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.
2656
+ * Currently only `SEQUENTIAL_BOOKINGS` is supported.
2654
2657
  */
2655
2658
  multiServiceBookingType?: MultiServiceBookingTypeWithLiterals;
2656
2659
  }
@@ -2810,7 +2813,11 @@ interface MarkMultiServiceBookingAsPendingRequest {
2810
2813
  sendSmsReminder?: boolean | null;
2811
2814
  /** Whether this booking has a conflict with at least 1 other confirmed booking. */
2812
2815
  doubleBooked?: boolean | null;
2813
- /** Whether to return the single-service bookings that were marked as `PENDING`. */
2816
+ /**
2817
+ * Whether to return the single-service bookings that were marked as `PENDING`.
2818
+ *
2819
+ * Default: `false`
2820
+ */
2814
2821
  returnFullEntity?: boolean;
2815
2822
  /**
2816
2823
  * Information about whether specific procedures of the standard Wix Bookings creation flow are changed.
@@ -2903,7 +2910,7 @@ interface BulkGetMultiServiceBookingAllowedActionsRequest {
2903
2910
  interface BulkGetMultiServiceBookingAllowedActionsResponse {
2904
2911
  /**
2905
2912
  * Information about the multi-service bookings that were retrieved.
2906
- * Including their ID, index in the bulk request and whether they were successfully processed.
2913
+ * Includes their ID, index in the bulk request and whether they were successfully processed.
2907
2914
  */
2908
2915
  results?: BulkCalculateAllowedActionsResult[];
2909
2916
  /** Total number of successes and failures for Bulk Get Multi Service Booking Allowed Actions. */
@@ -2940,7 +2947,11 @@ interface AddBookingsToMultiServiceBookingRequest {
2940
2947
  * @maxSize 8
2941
2948
  */
2942
2949
  bookings: BookingIdAndRevision[];
2943
- /** Whether to return the single-service bookings that were added to the multi-service booking. */
2950
+ /**
2951
+ * Whether to return the single-service bookings that were added to the multi-service booking.
2952
+ *
2953
+ * Default: `false`
2954
+ */
2944
2955
  returnFullEntity?: boolean;
2945
2956
  }
2946
2957
  interface BookingIdAndRevision {
@@ -2970,7 +2981,11 @@ interface RemoveBookingsFromMultiServiceBookingRequest {
2970
2981
  * @maxSize 8
2971
2982
  */
2972
2983
  bookings?: BookingIdAndRevision[];
2973
- /** Whether to return the single-service bookings. */
2984
+ /**
2985
+ * Whether to return the single-service bookings.
2986
+ *
2987
+ * Default: `false`
2988
+ */
2974
2989
  returnFullEntity?: boolean;
2975
2990
  }
2976
2991
  interface RemoveBookingsFromMultiServiceBookingResponse {
@@ -4481,17 +4496,17 @@ interface UpdateNumberOfParticipantsOptionsParticipantsInfoOneOf {
4481
4496
  *
4482
4497
  * ## When to call this method
4483
4498
  *
4484
- * 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.
4499
+ * 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.
4485
4500
  *
4486
4501
  * ## Requirements and behavior
4487
4502
  *
4488
- * *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.
4503
+ * __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.
4489
4504
  *
4490
- * *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.
4505
+ * __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.
4491
4506
  *
4492
- * *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)).
4507
+ * __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)).
4493
4508
  *
4494
- * *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.
4509
+ * __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.
4495
4510
  *
4496
4511
  * ## Related methods
4497
4512
  *
@@ -4545,7 +4560,7 @@ interface CreateMultiServiceBookingOptions {
4545
4560
  /**
4546
4561
  * Multi-service booking type.
4547
4562
  *
4548
- * 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.
4563
+ * Currently only `SEQUENTIAL_BOOKINGS` is supported.
4549
4564
  */
4550
4565
  multiServiceBookingType?: MultiServiceBookingTypeWithLiterals;
4551
4566
  }
@@ -4555,7 +4570,7 @@ interface CreateMultiServiceBookingOptions {
4555
4570
  *
4556
4571
  * 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.
4557
4572
  *
4558
- * 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.
4573
+ * 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.
4559
4574
  *
4560
4575
  * 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.
4561
4576
  * @param multiServiceBookingId - ID of the multi-service booking to reschedule.
@@ -4596,14 +4611,11 @@ interface RescheduleMultiServiceBookingOptions {
4596
4611
  * - 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)).
4597
4612
  * - 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)).
4598
4613
  *
4599
- * ## When to call this method
4600
- *
4601
- * Check if an existing multi-service booking is still valid after business configuration changes. For example, staff changes, policy updates, or capacity modifications.
4602
- *
4603
- * ## When to call List Multi Service Availability Time Slots instead
4614
+ * Call this method to check if an existing multi-service booking is still valid after business configuration changes.
4615
+ * For example, staff changes, policy updates, or capacity modifications.
4604
4616
  *
4605
4617
  * For checking availability before creating new multi-service bookings, call List Multi Service Availability Time Slots
4606
- * ([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.
4618
+ * ([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.
4607
4619
  * @param multiServiceBookingId - ID of the multi-service booking to retrieve.
4608
4620
  * @public
4609
4621
  * @documentationMaturity preview
@@ -4617,7 +4629,7 @@ declare function getMultiServiceBookingAvailability(multiServiceBookingId: strin
4617
4629
  __applicationErrorsType?: GetMultiServiceBookingAvailabilityApplicationErrors;
4618
4630
  }>;
4619
4631
  /**
4620
- * Cancels a multi-service booking and all its single-service bookings.
4632
+ * Cancels a multi-service booking and all its associated single-service bookings.
4621
4633
  *
4622
4634
  *
4623
4635
  * Cancels the entire multi-service booking, updating the status of all single-service bookings to `CANCELED`.
@@ -4657,8 +4669,8 @@ interface CancelMultiServiceBookingOptions {
4657
4669
  *
4658
4670
  * ## Status requirements
4659
4671
  *
4660
- * - **Original status**: All single-service bookings must have `CREATED` status.
4661
- * - **Target status**: All bookings move to `PENDING` together (all-or-nothing operation).
4672
+ * - __Original status__: All single-service bookings must have `CREATED` status.
4673
+ * - __Target status__: All bookings move to `PENDING` together (all-or-nothing operation).
4662
4674
  *
4663
4675
  * ## Checkout restrictions
4664
4676
  *
@@ -4667,9 +4679,9 @@ interface CancelMultiServiceBookingOptions {
4667
4679
  *
4668
4680
  * ## Additional updates
4669
4681
  *
4670
- * - **Payment status**: Updates if you specify a new `markAsPendingBookingsInfo.paymentStatus`.
4671
- * - **Customer notifications**: Send messages using `participantNotification`.
4672
- * - **Revision control**: Requires current revision numbers for all single-service bookings.
4682
+ * - __Payment status__: Updates if you specify a new `markAsPendingBookingsInfo.paymentStatus`.
4683
+ * - __Customer notifications__: Send messages using `participantNotification`.
4684
+ * - __Revision control__: Requires current revision numbers for all single-service bookings.
4673
4685
  *
4674
4686
  * 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.
4675
4687
  * @param multiServiceBookingId - ID of the multi-service booking to mark as `PENDING`.
@@ -4699,7 +4711,11 @@ interface MarkMultiServiceBookingAsPendingOptions {
4699
4711
  sendSmsReminder?: boolean | null;
4700
4712
  /** Whether this booking has a conflict with at least 1 other confirmed booking. */
4701
4713
  doubleBooked?: boolean | null;
4702
- /** Whether to return the single-service bookings that were marked as `PENDING`. */
4714
+ /**
4715
+ * Whether to return the single-service bookings that were marked as `PENDING`.
4716
+ *
4717
+ * Default: `false`
4718
+ */
4703
4719
  returnFullEntity?: boolean;
4704
4720
  /**
4705
4721
  * Information about whether specific procedures of the standard Wix Bookings creation flow are changed.
@@ -4715,8 +4731,8 @@ interface MarkMultiServiceBookingAsPendingOptions {
4715
4731
  *
4716
4732
  * ## Status requirements
4717
4733
  *
4718
- * - **Original status**: All single-service bookings must have `PENDING`, `CREATED`, or `WAITING_LIST` status.
4719
- * - **Target status**: All bookings move to `CONFIRMED` together (all-or-nothing operation).
4734
+ * - __Original status__: All single-service bookings must have `PENDING`, `CREATED`, or `WAITING_LIST` status.
4735
+ * - __Target status__: All bookings move to `CONFIRMED` together (all-or-nothing operation).
4720
4736
  *
4721
4737
  * ## Checkout restrictions
4722
4738
  *
@@ -4725,9 +4741,9 @@ interface MarkMultiServiceBookingAsPendingOptions {
4725
4741
  *
4726
4742
  * ## Additional updates
4727
4743
  *
4728
- * - **Payment status**: Updates if you specify a new `confirmBookingsInfo.paymentStatus`.
4729
- * - **Customer notifications**: Send messages using `participantNotification`.
4730
- * - **Revision control**: Requires current revision numbers for all single-service bookings.
4744
+ * - __Payment status__: Updates if you specify a new `confirmBookingsInfo.paymentStatus`.
4745
+ * - __Customer notifications__: Send messages using `participantNotification`.
4746
+ * - __Revision control__: Requires current revision numbers for all single-service bookings.
4731
4747
  *
4732
4748
  * 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.
4733
4749
  * @param multiServiceBookingId - ID of the multi-service booking to confirm its related bookings.
@@ -4773,8 +4789,8 @@ interface ConfirmMultiServiceBookingOptions {
4773
4789
  *
4774
4790
  * ## Status requirements
4775
4791
  *
4776
- * - **Original status**: All single-service bookings must have `PENDING`, `CREATED`, or `WAITING_LIST` status.
4777
- * - **Target status**: All bookings move to `DECLINED` together (all-or-nothing operation).
4792
+ * - __Original status__: All single-service bookings must have `PENDING`, `CREATED`, or `WAITING_LIST` status.
4793
+ * - __Target status__: All bookings move to `DECLINED` together (all-or-nothing operation).
4778
4794
  *
4779
4795
  * ## Checkout restrictions
4780
4796
  *
@@ -4783,9 +4799,9 @@ interface ConfirmMultiServiceBookingOptions {
4783
4799
  *
4784
4800
  * ## Additional updates
4785
4801
  *
4786
- * - **Payment status**: Updates if you specify a new `declineBookingsInfo.paymentStatus`.
4787
- * - **Customer notifications**: Send messages using `participantNotification`.
4788
- * - **Revision control**: Requires current revision numbers for all single-service bookings.
4802
+ * - __Payment status__: Updates if you specify a new `declineBookingsInfo.paymentStatus`.
4803
+ * - __Customer notifications__: Send messages using `participantNotification`.
4804
+ * - __Revision control__: Requires current revision numbers for all single-service bookings.
4789
4805
  *
4790
4806
  * 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.
4791
4807
  * @param multiServiceBookingId - ID of the multi-service booking to decline.
@@ -4824,13 +4840,13 @@ interface DeclineMultiServiceBookingOptions {
4824
4840
  * - `cancel`: Whether the customer can cancel the multi-service booking.
4825
4841
  * - `reschedule`: Whether the customer can adjust the multi-service booking's timing.
4826
4842
  *
4827
- * ## Important considerations
4843
+ * Bear the following considerations in mind when calling this method:
4828
4844
  *
4829
- * *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.
4845
+ * __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.
4830
4846
  *
4831
- * *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.
4847
+ * __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.
4832
4848
  *
4833
- * *Status dependencies**: Allowed actions change as bookings progress through their lifecycle (`CREATED` → `PENDING` → `CONFIRMED`/`DECLINED` → `CANCELED`).
4849
+ * __Status dependencies__: Allowed actions change as bookings progress through their lifecycle (`CREATED` → `PENDING` → `CONFIRMED`/`DECLINED` → `CANCELED`).
4834
4850
  * Bookings can skip `PENDING` and move directly from `CREATED` to `CONFIRMED`/`DECLINED` based on service configuration.
4835
4851
  * @param multiServiceBookingIds - IDs of the multi-service bookings to retrieve allowed actions for.
4836
4852
  * @public
@@ -4846,12 +4862,12 @@ declare function bulkGetMultiServiceBookingAllowedActions(multiServiceBookingIds
4846
4862
  * Retrieves a multi-service booking and all its associated single-service bookings.
4847
4863
  *
4848
4864
  *
4849
- * Returns the complete multi-service booking information including its ID, included single-service bookings, and the total number of scheduled single-service bookings.
4865
+ * Returns the complete multi-service booking information including its ID, associated single-service bookings, and the total number of scheduled single-service bookings.
4850
4866
  *
4851
- * 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.
4867
+ * 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.
4852
4868
  * The returned total number includes single-service bookings for which you don't have permissions.
4853
4869
  *
4854
- * 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.
4870
+ * 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.
4855
4871
  * @param multiServiceBookingId - ID of the multi-service booking.
4856
4872
  * @public
4857
4873
  * @documentationMaturity preview
@@ -4879,10 +4895,10 @@ declare function getMultiServiceBooking(multiServiceBookingId: string): Promise<
4879
4895
  *
4880
4896
  * ## Requirements and limitations
4881
4897
  *
4882
- * - **Maximum capacity**: The total number of single-service bookings can't exceed 8.
4883
- * - **Booking eligibility**: You can add only independent single-service bookings that aren't part of another multi-service booking.
4884
- * - **Status compatibility**: Added bookings must have compatible status with the target multi-service booking.
4885
- * - **Revision control**: You must provide current revision numbers for all single-service bookings to add.
4898
+ * - __Maximum capacity__: The total number of single-service bookings can't exceed 8.
4899
+ * - __Booking eligibility__: You can add only independent single-service bookings that aren't part of another multi-service booking.
4900
+ * - __Status compatibility__: Added bookings must have compatible status with the target multi-service booking.
4901
+ * - __Revision control__: You must provide current revision numbers for all single-service bookings to add.
4886
4902
  * @param multiServiceBookingId - ID of the multi-service booking.
4887
4903
  * @public
4888
4904
  * @documentationMaturity preview
@@ -4904,7 +4920,11 @@ interface AddBookingsToMultiServiceBookingOptions {
4904
4920
  * @maxSize 8
4905
4921
  */
4906
4922
  bookings: BookingIdAndRevision[];
4907
- /** Whether to return the single-service bookings that were added to the multi-service booking. */
4923
+ /**
4924
+ * Whether to return the single-service bookings that were added to the multi-service booking.
4925
+ *
4926
+ * Default: `false`
4927
+ */
4908
4928
  returnFullEntity?: boolean;
4909
4929
  }
4910
4930
  /**
@@ -4913,21 +4933,21 @@ interface AddBookingsToMultiServiceBookingOptions {
4913
4933
  *
4914
4934
  * ## Removal options
4915
4935
  *
4916
- * *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.
4936
+ * __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.
4917
4937
  *
4918
- * *Selective removal**: Specify single-service booking IDs and revisions to remove only specific single-service bookings from the package.
4938
+ * __Selective removal__: Specify single-service booking IDs and revisions to remove only specific single-service bookings from the package.
4919
4939
  *
4920
- * *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.
4940
+ * __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.
4921
4941
  *
4922
4942
  * ## Removal behavior
4923
4943
  *
4924
- * *Independent bookings**: Removed single-service bookings become independent bookings.
4944
+ * __Independent bookings__: Removed single-service bookings become independent bookings.
4925
4945
  * You can manage them using single-service booking methods.
4926
4946
  *
4927
- * *Automatic cleanup**: Multi-service bookings must contain at least 2 services.
4947
+ * __Automatic cleanup__: Multi-service bookings must contain at least 2 services.
4928
4948
  * 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.
4929
4949
  *
4930
- * *Revision control**: Specify current revision numbers to prevent conflicting modifications during the removal process.
4950
+ * __Revision control__: Specify current revision numbers to prevent conflicting modifications during the removal process.
4931
4951
  * @param multiServiceBookingId - ID of the multi-service booking.
4932
4952
  * @public
4933
4953
  * @documentationMaturity preview
@@ -4947,7 +4967,11 @@ interface RemoveBookingsFromMultiServiceBookingOptions {
4947
4967
  * @maxSize 8
4948
4968
  */
4949
4969
  bookings?: BookingIdAndRevision[];
4950
- /** Whether to return the single-service bookings. */
4970
+ /**
4971
+ * Whether to return the single-service bookings.
4972
+ *
4973
+ * Default: `false`
4974
+ */
4951
4975
  returnFullEntity?: boolean;
4952
4976
  }
4953
4977
 
@@ -37,14 +37,14 @@ __export(index_typings_exports, {
37
37
  bulkConfirmOrDeclineBooking: () => bulkConfirmOrDeclineBooking2,
38
38
  bulkCreateBooking: () => bulkCreateBooking2,
39
39
  bulkGetMultiServiceBookingAllowedActions: () => bulkGetMultiServiceBookingAllowedActions2,
40
- cancelBooking: () => cancelBooking,
40
+ cancelBooking: () => cancelBooking2,
41
41
  cancelMultiServiceBooking: () => cancelMultiServiceBooking2,
42
- confirmBooking: () => confirmBooking,
42
+ confirmBooking: () => confirmBooking2,
43
43
  confirmMultiServiceBooking: () => confirmMultiServiceBooking2,
44
44
  confirmOrDeclineBooking: () => confirmOrDeclineBooking2,
45
45
  createBooking: () => createBooking2,
46
46
  createMultiServiceBooking: () => createMultiServiceBooking2,
47
- declineBooking: () => declineBooking,
47
+ declineBooking: () => declineBooking2,
48
48
  declineMultiServiceBooking: () => declineMultiServiceBooking2,
49
49
  getMultiServiceBooking: () => getMultiServiceBooking2,
50
50
  getMultiServiceBookingAvailability: () => getMultiServiceBookingAvailability2,
@@ -54,7 +54,7 @@ __export(index_typings_exports, {
54
54
  rescheduleMultiServiceBooking: () => rescheduleMultiServiceBooking2,
55
55
  setBookingSubmissionId: () => setBookingSubmissionId2,
56
56
  updateExtendedFields: () => updateExtendedFields2,
57
- updateNumberOfParticipants: () => updateNumberOfParticipants
57
+ updateNumberOfParticipants: () => updateNumberOfParticipants2
58
58
  });
59
59
  module.exports = __toCommonJS(index_typings_exports);
60
60
 
@@ -539,8 +539,8 @@ function rescheduleBooking(payload) {
539
539
  }
540
540
  return __rescheduleBooking;
541
541
  }
542
- function bookingsConfirmBooking(payload) {
543
- function __bookingsConfirmBooking({ host }) {
542
+ function confirmBooking(payload) {
543
+ function __confirmBooking({ host }) {
544
544
  const metadata = {
545
545
  entityFqdn: "wix.bookings.v2.booking",
546
546
  method: "POST",
@@ -574,7 +574,7 @@ function bookingsConfirmBooking(payload) {
574
574
  };
575
575
  return metadata;
576
576
  }
577
- return __bookingsConfirmBooking;
577
+ return __confirmBooking;
578
578
  }
579
579
  function setBookingSubmissionId(payload) {
580
580
  function __setBookingSubmissionId({ host }) {
@@ -631,8 +631,8 @@ function updateExtendedFields(payload) {
631
631
  }
632
632
  return __updateExtendedFields;
633
633
  }
634
- function bookingsDeclineBooking(payload) {
635
- function __bookingsDeclineBooking({ host }) {
634
+ function declineBooking(payload) {
635
+ function __declineBooking({ host }) {
636
636
  const metadata = {
637
637
  entityFqdn: "wix.bookings.v2.booking",
638
638
  method: "POST",
@@ -666,10 +666,10 @@ function bookingsDeclineBooking(payload) {
666
666
  };
667
667
  return metadata;
668
668
  }
669
- return __bookingsDeclineBooking;
669
+ return __declineBooking;
670
670
  }
671
- function bookingsCancelBooking(payload) {
672
- function __bookingsCancelBooking({ host }) {
671
+ function cancelBooking(payload) {
672
+ function __cancelBooking({ host }) {
673
673
  const metadata = {
674
674
  entityFqdn: "wix.bookings.v2.booking",
675
675
  method: "POST",
@@ -703,10 +703,10 @@ function bookingsCancelBooking(payload) {
703
703
  };
704
704
  return metadata;
705
705
  }
706
- return __bookingsCancelBooking;
706
+ return __cancelBooking;
707
707
  }
708
- function bookingsUpdateNumberOfParticipants(payload) {
709
- function __bookingsUpdateNumberOfParticipants({ host }) {
708
+ function updateNumberOfParticipants(payload) {
709
+ function __updateNumberOfParticipants({ host }) {
710
710
  const metadata = {
711
711
  entityFqdn: "wix.bookings.v2.booking",
712
712
  method: "POST",
@@ -740,7 +740,7 @@ function bookingsUpdateNumberOfParticipants(payload) {
740
740
  };
741
741
  return metadata;
742
742
  }
743
- return __bookingsUpdateNumberOfParticipants;
743
+ return __updateNumberOfParticipants;
744
744
  }
745
745
  function createMultiServiceBooking(payload) {
746
746
  function __createMultiServiceBooking({ host }) {
@@ -1420,7 +1420,7 @@ async function rescheduleBooking2(bookingId, slot, options) {
1420
1420
  throw transformedError;
1421
1421
  }
1422
1422
  }
1423
- async function confirmBooking(bookingId, revision, options) {
1423
+ async function confirmBooking2(bookingId, revision, options) {
1424
1424
  const { httpClient, sideEffects } = arguments[3];
1425
1425
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1426
1426
  bookingId,
@@ -1431,7 +1431,7 @@ async function confirmBooking(bookingId, revision, options) {
1431
1431
  doubleBooked: options?.doubleBooked,
1432
1432
  flowControlSettings: options?.flowControlSettings
1433
1433
  });
1434
- const reqOpts = bookingsConfirmBooking(payload);
1434
+ const reqOpts = confirmBooking(payload);
1435
1435
  sideEffects?.onSiteCall?.();
1436
1436
  try {
1437
1437
  const result = await httpClient.request(reqOpts);
@@ -1516,7 +1516,7 @@ async function updateExtendedFields2(_id, namespace, options) {
1516
1516
  throw transformedError;
1517
1517
  }
1518
1518
  }
1519
- async function declineBooking(bookingId, revision, options) {
1519
+ async function declineBooking2(bookingId, revision, options) {
1520
1520
  const { httpClient, sideEffects } = arguments[3];
1521
1521
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1522
1522
  bookingId,
@@ -1526,7 +1526,7 @@ async function declineBooking(bookingId, revision, options) {
1526
1526
  doubleBooked: options?.doubleBooked,
1527
1527
  flowControlSettings: options?.flowControlSettings
1528
1528
  });
1529
- const reqOpts = bookingsDeclineBooking(payload);
1529
+ const reqOpts = declineBooking(payload);
1530
1530
  sideEffects?.onSiteCall?.();
1531
1531
  try {
1532
1532
  const result = await httpClient.request(reqOpts);
@@ -1553,7 +1553,7 @@ async function declineBooking(bookingId, revision, options) {
1553
1553
  throw transformedError;
1554
1554
  }
1555
1555
  }
1556
- async function cancelBooking(bookingId, options) {
1556
+ async function cancelBooking2(bookingId, options) {
1557
1557
  const { httpClient, sideEffects } = arguments[2];
1558
1558
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1559
1559
  bookingId,
@@ -1561,7 +1561,7 @@ async function cancelBooking(bookingId, options) {
1561
1561
  flowControlSettings: options?.flowControlSettings,
1562
1562
  revision: options?.revision
1563
1563
  });
1564
- const reqOpts = bookingsCancelBooking(payload);
1564
+ const reqOpts = cancelBooking(payload);
1565
1565
  sideEffects?.onSiteCall?.();
1566
1566
  try {
1567
1567
  const result = await httpClient.request(reqOpts);
@@ -1586,7 +1586,7 @@ async function cancelBooking(bookingId, options) {
1586
1586
  throw transformedError;
1587
1587
  }
1588
1588
  }
1589
- async function updateNumberOfParticipants(bookingId, options) {
1589
+ async function updateNumberOfParticipants2(bookingId, options) {
1590
1590
  const { httpClient, sideEffects } = arguments[2];
1591
1591
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
1592
1592
  bookingId,
@@ -1594,7 +1594,7 @@ async function updateNumberOfParticipants(bookingId, options) {
1594
1594
  totalParticipants: options?.totalParticipants,
1595
1595
  participantsChoices: options?.participantsChoices
1596
1596
  });
1597
- const reqOpts = bookingsUpdateNumberOfParticipants(payload);
1597
+ const reqOpts = updateNumberOfParticipants(payload);
1598
1598
  sideEffects?.onSiteCall?.();
1599
1599
  try {
1600
1600
  const result = await httpClient.request(reqOpts);