@wix/auto_sdk_bookings_bookings 1.0.83 → 1.0.84

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.
@@ -249,7 +249,20 @@ interface BookedEntityItemOneOf {
249
249
  schedule?: BookedSchedule;
250
250
  }
251
251
  interface BookedSlot {
252
- /** Session ID. */
252
+ /**
253
+ * Session ID. For class bookings, this is the ID of the existing session.
254
+ * For appointment bookings, this field is typically empty during booking creation and gets populated when the booking is confirmed.
255
+ *
256
+ * __Migration Guidance__: Replace usage of this field with `eventId` from the [Time Slots V2 API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/time-slots/time-slots-v2/introduction).
257
+ * You can follow [these sample flows](https://dev.wix.com/docs/api-reference/business-solutions/bookings/end-to-end-booking-flows) for step-by-step guidance about determining availability and creating bookings.
258
+ * @deprecated Session ID. For class bookings, this is the ID of the existing session.
259
+ * For appointment bookings, this field is typically empty during booking creation and gets populated when the booking is confirmed.
260
+ *
261
+ * __Migration Guidance__: Replace usage of this field with `eventId` from the [Time Slots V2 API](https://dev.wix.com/docs/api-reference/business-solutions/bookings/time-slots/time-slots-v2/introduction).
262
+ * You can follow [these sample flows](https://dev.wix.com/docs/api-reference/business-solutions/bookings/end-to-end-booking-flows) for step-by-step guidance about determining availability and creating bookings.
263
+ * @replacedBy event_id
264
+ * @targetRemovalDate 2026-03-31
265
+ */
253
266
  sessionId?: string | null;
254
267
  /** Service ID. */
255
268
  serviceId?: string;
@@ -4034,20 +4047,19 @@ interface BulkConfirmOrDeclineBookingOptions {
4034
4047
  *
4035
4048
  * ### Appointment booking
4036
4049
  *
4037
- * For appointment-based services, specify the relevant `slot` in
4038
- * `bookedEntity.slot`. We recommend specifying the complete
4039
- * `availabilityEntries.slot` returned in [Query Availability](https://dev.wix.com/docs/rest/business-solutions/bookings/time-slots/availability-calendar/query-availability)
4040
- * in your call's request to avoid failed calls due to unavailability.
4050
+ * For appointment-based services, specify the relevant time slot in `bookedEntity.slot`.
4051
+ *
4052
+ * We recommend following the [appointment booking sample flow](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/bookings-writer-v2/sample-flows#book-an-appointment) using Time Slots V2.
4053
+ * Specify the slot's `startDate`, `endDate`, `resource`, and `location` in `booking.bookedEntity.slot`.
4041
4054
  *
4042
4055
  * ### Class session booking
4043
4056
  *
4044
- * For class services, specify the relevant [event ID](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/introduction)
4045
- * as `bookedEntity.slot.eventId`.
4046
- * We recommend retrieving the event ID from [Query Availability's](https://dev.wix.com/docs/rest/business-solutions/bookings/time-slots/availability-calendar/query-availability)
4047
- * `availabilityEntries.slot.eventId` to avoid failed calls due to unavailability.
4048
- * Specifying an event ID leads to automatic calculations of `slot.startDate`, `slot.endDate`,
4049
- * `slot.timezone`, `slot.resource`, and `slot.location`. All manually specified
4050
- * values are overridden.
4057
+ * For class services, specify the relevant event ID as `bookedEntity.slot.eventId`.
4058
+ *
4059
+ * We recommend following the [class session booking sample flow](https://dev.wix.com/docs/api-reference/business-solutions/bookings/bookings/bookings-writer-v2/sample-flows#book-a-class-session) using Time Slots V2.
4060
+ * Specify the `eventId` from the selected time slot in `booking.bookedEntity.slot.eventId`.
4061
+ *
4062
+ * When you specify `eventId`, Wix Bookings automatically derives `startDate`, `endDate`, `timezone`, `resource`, and `location` based on the event details. Manually specified values are ignored.
4051
4063
  *
4052
4064
  * ### Course booking
4053
4065
  *
@@ -4104,6 +4116,8 @@ interface BulkConfirmOrDeclineBookingOptions {
4104
4116
  * don't match, Create Booking fails. Therefore, we recommend specifying
4105
4117
  * only `booking.contactDetails.contactId` when providing `formSubmission`.
4106
4118
  *
4119
+ * You can follow [this sample flow](https://dev.wix.com/docs/api-reference/business-solutions/bookings/wix-forms-integration#create-a-booking-with-a-filled-out-booking-form) to create bookings with booking form submissions.
4120
+ *
4107
4121
  * ### Admin overwrites
4108
4122
  *
4109
4123
  * There are small but important differences when you specify special