@wix/auto_sdk_bookings_bookings 1.0.70 → 1.0.72

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 +2 -2
  2. package/build/cjs/index.js +12 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +35 -3
  5. package/build/cjs/index.typings.js +12 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +33 -1
  8. package/build/cjs/meta.js +12 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +2 -2
  11. package/build/es/index.mjs +12 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +35 -3
  14. package/build/es/index.typings.mjs +12 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +33 -1
  17. package/build/es/meta.mjs +12 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +2 -2
  20. package/build/internal/cjs/index.js +12 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +35 -3
  23. package/build/internal/cjs/index.typings.js +12 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +33 -1
  26. package/build/internal/cjs/meta.js +12 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +2 -2
  29. package/build/internal/es/index.mjs +12 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +35 -3
  32. package/build/internal/es/index.typings.mjs +12 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +33 -1
  35. package/build/internal/es/meta.mjs +12 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -47,7 +47,18 @@ interface Booking extends BookingParticipantsInfoOneOf {
47
47
  * making the booking.
48
48
  */
49
49
  contactDetails?: ContactDetails;
50
- /** Additional custom fields submitted with the booking form. */
50
+ /**
51
+ * Additional custom fields submitted with the booking form.
52
+ * Deprecated due to Bookings integrating with Wix Forms.
53
+ * You can call Wix Forms' [Get Submission](https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/get-submission) specifying `formSubmissionId` as the `id` to get the submitted booking form data.
54
+ * Read more about the [Bookings Forms integration](https://dev.wix.com/docs/api-reference/business-solutions/bookings/wix-forms-integration).
55
+ * @deprecated Additional custom fields submitted with the booking form.
56
+ * Deprecated due to Bookings integrating with Wix Forms.
57
+ * You can call Wix Forms' [Get Submission](https://dev.wix.com/docs/api-reference/crm/forms/form-submissions/get-submission) specifying `formSubmissionId` as the `id` to get the submitted booking form data.
58
+ * Read more about the [Bookings Forms integration](https://dev.wix.com/docs/api-reference/business-solutions/bookings/wix-forms-integration).
59
+ * @replacedBy form_submission_id
60
+ * @targetRemovalDate 2026-03-31
61
+ */
51
62
  additionalFields?: CustomFormField[];
52
63
  /**
53
64
  * Booking status. A booking is automatically confirmed if the service allows it
@@ -126,6 +137,27 @@ interface Booking extends BookingParticipantsInfoOneOf {
126
137
  * @readonly
127
138
  */
128
139
  doubleBooked?: boolean | null;
140
+ /**
141
+ * ID of the form submission
142
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/forms/submissions/introduction) | [REST](https://dev.wix.com/docs/rest/crm/forms/form-submissions/introduction))
143
+ * associated with this booking.
144
+ * @format GUID
145
+ */
146
+ formSubmissionId?: string | null;
147
+ /**
148
+ * ID of the form
149
+ * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/forms/introduction) | [REST](https://dev.wix.com/docs/rest/crm/forms/form-schemas/form-object))
150
+ * associated with this booking. The value depends on how the
151
+ * booking was created:
152
+ * - For bookings created with Create Booking or Bulk Create Booking, `formId`
153
+ * is identical to ID of the booking form that's associated with the relevant
154
+ * service.
155
+ * - For bookings created via Create Multi Service Booking, `formId` is set to
156
+ * `00000000-0000-0000-0000-000000000000` (the default booking form ID).
157
+ * @format GUID
158
+ * @readonly
159
+ */
160
+ formId?: string | null;
129
161
  }
130
162
  /** @oneof */
131
163
  interface BookingParticipantsInfoOneOf {
@@ -4727,7 +4759,7 @@ interface MarkBookingAsPendingOptions {
4727
4759
  *
4728
4760
  * ### When to call this method
4729
4761
  *
4730
- * 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.
4762
+ * 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/api-reference/business-solutions/bookings/bookings/bookings-writer-v2/add-bookings-to-multi-service-booking?apiView=SDK) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/bookings/bookings-writer-v2/add-bookings-to-multi-service-booking)) instead.
4731
4763
  *
4732
4764
  * ### Requirements and behavior
4733
4765
  *
@@ -4735,7 +4767,7 @@ interface MarkBookingAsPendingOptions {
4735
4767
  *
4736
4768
  * __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.
4737
4769
  *
4738
- * __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/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).
4770
+ * __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/api-reference/business-solutions/e-commerce/orders/introduction?apiView=SDK) | [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/ecom/checkout/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/e-commerce/checkout/introduction)).
4739
4771
  *
4740
4772
  * __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.
4741
4773
  *
@@ -114,6 +114,12 @@ function resolveComWixpressBookingsBookingsV2MultiServiceBookingsUrl(opts) {
114
114
  srcPath: "/_api/bookings-service",
115
115
  destPath: "/v2/bookings"
116
116
  }
117
+ ],
118
+ "api._api_base_domain_": [
119
+ {
120
+ srcPath: "/bookings-service",
121
+ destPath: ""
122
+ }
117
123
  ]
118
124
  };
119
125
  return resolveUrl(Object.assign(opts, { domainToMappings }));
@@ -219,6 +225,12 @@ function resolveComWixpressBookingsBookingsV2BookingsUrl(opts) {
219
225
  srcPath: "/_api/bookings-service",
220
226
  destPath: "/v2/bookings"
221
227
  }
228
+ ],
229
+ "api._api_base_domain_": [
230
+ {
231
+ srcPath: "/bookings-service",
232
+ destPath: ""
233
+ }
222
234
  ]
223
235
  };
224
236
  return resolveUrl(Object.assign(opts, { domainToMappings }));