@wix/auto_sdk_bookings_availability-calendar 1.0.196 → 1.0.197

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 (35) hide show
  1. package/build/cjs/index.js.map +1 -1
  2. package/build/cjs/index.typings.d.ts +3 -3
  3. package/build/cjs/index.typings.js.map +1 -1
  4. package/build/cjs/meta.d.ts +3 -3
  5. package/build/cjs/meta.js.map +1 -1
  6. package/build/cjs/schemas.js +124 -122
  7. package/build/cjs/schemas.js.map +1 -1
  8. package/build/es/index.mjs.map +1 -1
  9. package/build/es/index.typings.d.mts +3 -3
  10. package/build/es/index.typings.mjs.map +1 -1
  11. package/build/es/meta.d.mts +3 -3
  12. package/build/es/meta.mjs.map +1 -1
  13. package/build/es/schemas.mjs +124 -122
  14. package/build/es/schemas.mjs.map +1 -1
  15. package/build/internal/cjs/index.typings.d.ts +3 -3
  16. package/build/internal/cjs/meta.d.ts +3 -3
  17. package/build/internal/es/index.typings.d.mts +3 -3
  18. package/build/internal/es/meta.d.mts +3 -3
  19. package/package.json +2 -2
  20. package/build/internal/cjs/index.js +0 -449
  21. package/build/internal/cjs/index.js.map +0 -1
  22. package/build/internal/cjs/index.typings.js +0 -419
  23. package/build/internal/cjs/index.typings.js.map +0 -1
  24. package/build/internal/cjs/meta.js +0 -372
  25. package/build/internal/cjs/meta.js.map +0 -1
  26. package/build/internal/cjs/schemas.js +0 -361
  27. package/build/internal/cjs/schemas.js.map +0 -1
  28. package/build/internal/es/index.mjs +0 -418
  29. package/build/internal/es/index.mjs.map +0 -1
  30. package/build/internal/es/index.typings.mjs +0 -388
  31. package/build/internal/es/index.typings.mjs.map +0 -1
  32. package/build/internal/es/meta.mjs +0 -338
  33. package/build/internal/es/meta.mjs.map +0 -1
  34. package/build/internal/es/schemas.mjs +0 -319
  35. package/build/internal/es/schemas.mjs.map +0 -1
@@ -42,17 +42,17 @@ module.exports = __toCommonJS(schemas_exports);
42
42
  // src/bookings-availability-v1-slot-availability-availability-calendar.schemas.ts
43
43
  var z = __toESM(require("zod"));
44
44
  var QueryAvailabilityRequest = /* @__PURE__ */ z.object({
45
- query: z.object({
46
- filter: z.record(z.string(), z.any()).describe(
45
+ query: /* @__PURE__ */ z.object({
46
+ filter: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
47
47
  "Filter object. For a list of\nfields you can filter by, see [Availability Calendar supported filters](https://dev.wix.com/docs/rest/business-solutions/bookings/time-slots/availability-calendar/supported-fields-filters-and-sorting).\nYou must include `serviceId`, `startDate` and `endDate` in the filter. This avoids large results that can impact performance."
48
48
  ),
49
- sort: z.array(
50
- z.object({
51
- fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
52
- order: z.enum(["ASC", "DESC"]).optional(),
53
- origin: z.object({
54
- latitude: z.number().describe("Address latitude.").optional().nullable(),
55
- longitude: z.number().describe("Address longitude.").optional().nullable()
49
+ sort: /* @__PURE__ */ z.array(
50
+ /* @__PURE__ */ z.object({
51
+ fieldName: /* @__PURE__ */ z.string().describe("Name of the field to sort by.").max(512).optional(),
52
+ order: /* @__PURE__ */ z.enum(["ASC", "DESC"]).optional(),
53
+ origin: /* @__PURE__ */ z.object({
54
+ latitude: /* @__PURE__ */ z.number().describe("Address latitude.").optional().nullable(),
55
+ longitude: /* @__PURE__ */ z.number().describe("Address longitude.").optional().nullable()
56
56
  }).describe(
57
57
  "Origin point for geo-distance sorting on a GEO field\nresults are ordered by distance from this point (ASC = nearest first, DESC = farthest first)."
58
58
  ).optional()
@@ -61,290 +61,292 @@ var QueryAvailabilityRequest = /* @__PURE__ */ z.object({
61
61
  }).describe(
62
62
  "Query options. Refer to the\n[supported filters article](https://dev.wix.com/docs/api-reference/business-solutions/bookings/time-slots/availability-calendar/supported-fields-filters-and-sorting)\nfor a complete list of supported filters."
63
63
  ),
64
- options: z.object({
65
- timezone: z.string().describe(
64
+ options: /* @__PURE__ */ z.object({
65
+ timezone: /* @__PURE__ */ z.string().describe(
66
66
  'Time zone override for the `endDate` and `startDate` filters, in\n[IANA tz database format](https://en.wikipedia.org/wiki/Tz_database), such as\n`America/New_York` or `UTC`.\n\nFor example, if you specify `("startDate": "2025-11-25T17:00:00+01:00"}` (note\nthe +01:00 offset) in combination with `{"timezone": "Europe/Bucharest"}`\n(+02:00 offset), *Query Availability* adjusts the effective start time to\nreflect the specified time zone. In this case, the start time in UTC would\nbe `2025-11-25T15:00:00` (using the +02:00 offset).\n\nLearn more about [handling Daylight Savings Time](https://dev.wix.com/api/rest/wix-bookings/availability-calendar/query-availability#wix-bookings_availability-calendar_query-availability_daylight-savings-time-dst).\n\nDefault: No modification applied to the `endDate` and `startDate` filters.'
67
67
  ).optional().nullable(),
68
- slotsPerDay: z.number().int().describe(
68
+ slotsPerDay: /* @__PURE__ */ z.number().int().describe(
69
69
  "Maximum number of appointment slots to return for each date. For example, if\nyou specify `{\"slotsPerDay\": 3}`, a maximum of 3 appointment slots/class events is\nreturned for each day that's within the query filter's date range."
70
70
  ).optional().nullable()
71
71
  }).describe("Options to use for querying availability.").optional()
72
72
  });
73
73
  var QueryAvailabilityResponse = /* @__PURE__ */ z.object({
74
- availabilityEntries: z.array(
75
- z.object({
76
- slot: z.object({
77
- sessionId: z.string().describe(
74
+ availabilityEntries: /* @__PURE__ */ z.array(
75
+ /* @__PURE__ */ z.object({
76
+ slot: /* @__PURE__ */ z.object({
77
+ sessionId: /* @__PURE__ */ z.string().describe(
78
78
  "ID for the slot's corresponding session, when the session is either a single session\nor a specific session generated from a recurring session.\n\nDeprecated. Please use `eventId` instead."
79
79
  ).optional().nullable(),
80
- serviceId: z.string().describe("Service ID.").optional(),
81
- scheduleId: z.string().describe("Schedule ID.").optional(),
82
- startDate: z.string().describe(
80
+ serviceId: /* @__PURE__ */ z.string().describe("Service ID.").optional(),
81
+ scheduleId: /* @__PURE__ */ z.string().describe("Schedule ID.").optional(),
82
+ startDate: /* @__PURE__ */ z.string().describe(
83
83
  "The start time of this slot in [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339)\nformat.\n\nIf `timezone` is specified,\ndates are based on the local date/time. This means that the timezone offset\nin the `start_date` is ignored."
84
84
  ).optional().nullable(),
85
- endDate: z.string().describe(
85
+ endDate: /* @__PURE__ */ z.string().describe(
86
86
  "The end time of this slot in\n[RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) format.\n\nIf `timezone` is specified,\ndates are based on the local date/time. This means that the timezone offset\nin the `end_date` is ignored."
87
87
  ).optional().nullable(),
88
- timezone: z.string().describe(
88
+ timezone: /* @__PURE__ */ z.string().describe(
89
89
  "The timezone for which slot availability is to be calculated.\n\nLearn more about [handling Daylight Savings Time (DST) for local time zones](https://dev.wix.com/api/rest/wix-bookings/availability-calendar/query-availability#wix-bookings_availability-calendar_query-availability_handling-daylight-savings-time-dst-for-local-time-zones)\nwhen calculating availability."
90
90
  ).optional().nullable(),
91
- resource: z.object({
92
- _id: z.string().describe("Resource ID.").regex(
91
+ resource: /* @__PURE__ */ z.object({
92
+ _id: /* @__PURE__ */ z.string().describe("Resource ID.").regex(
93
93
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
94
94
  "Must be a valid GUID"
95
95
  ).optional().nullable(),
96
- name: z.string().describe("Resource name. Read only.").max(1200).optional().nullable()
96
+ name: /* @__PURE__ */ z.string().describe("Resource name. Read only.").max(1200).optional().nullable()
97
97
  }).describe(
98
98
  "The resource required for this slot. Currently, the only supported resource\nis the relevant staff member for the slot."
99
99
  ).optional(),
100
- location: z.object({
101
- _id: z.string().describe(
100
+ location: /* @__PURE__ */ z.object({
101
+ _id: /* @__PURE__ */ z.string().describe(
102
102
  'Business location ID. Available only for locations that are business locations,\nmeaning the `location_type` is `"OWNER_BUSINESS"`.'
103
103
  ).regex(
104
104
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
105
105
  "Must be a valid GUID"
106
106
  ).optional().nullable(),
107
- name: z.string().describe("Location name.").optional().nullable(),
108
- formattedAddress: z.string().describe("The full address of this location.").optional().nullable(),
109
- formattedAddressTranslated: z.string().describe("The full translated address of this location.").max(512).optional().nullable(),
110
- locationType: z.enum([
107
+ name: /* @__PURE__ */ z.string().describe("Location name.").optional().nullable(),
108
+ formattedAddress: /* @__PURE__ */ z.string().describe("The full address of this location.").optional().nullable(),
109
+ formattedAddressTranslated: /* @__PURE__ */ z.string().describe("The full translated address of this location.").max(512).optional().nullable(),
110
+ locationType: /* @__PURE__ */ z.enum([
111
111
  "UNDEFINED",
112
112
  "OWNER_BUSINESS",
113
113
  "OWNER_CUSTOM",
114
114
  "CUSTOM"
115
115
  ]).describe("Location type.").optional()
116
116
  }).describe("Geographic location of the slot.").optional(),
117
- eventId: z.string().describe(
117
+ eventId: /* @__PURE__ */ z.string().describe(
118
118
  "ID for the slot's corresponding event, when the event is either a single event\nor a specific event generated from a recurring event."
119
119
  ).min(36).max(250).optional().nullable()
120
120
  }).describe(
121
121
  "The slot for the corresponding session, when the session is either a single session\nor a specific session generated from a recurring session."
122
122
  ).optional(),
123
- bookable: z.boolean().describe(
123
+ bookable: /* @__PURE__ */ z.boolean().describe(
124
124
  "Whether the slot is bookable. Bookability is determined by checking a\nsession's open slots and booking policies. Locks are not taken into\naccount."
125
125
  ).optional(),
126
- totalSpots: z.number().int().describe(
126
+ totalSpots: /* @__PURE__ */ z.number().int().describe(
127
127
  "Total number of spots for this slot.\nFor example, if a session has a total of 10 spots and 3 spots are booked,\n`spotsTotal` is 10 and `openSpots` is 7."
128
128
  ).optional().nullable(),
129
- openSpots: z.number().int().describe("Number of open spots for this slot.").optional().nullable(),
130
- waitingList: z.object({
131
- totalSpots: z.number().int().describe(
129
+ openSpots: /* @__PURE__ */ z.number().int().describe("Number of open spots for this slot.").optional().nullable(),
130
+ waitingList: /* @__PURE__ */ z.object({
131
+ totalSpots: /* @__PURE__ */ z.number().int().describe(
132
132
  "Total number of spots and open spots for this waitlist.\nFor example, a Yoga class with 10 waitlist spots and 3 registered\non the waitlist has 10 `total_spots` and 7 `open_spots`."
133
133
  ).optional().nullable(),
134
- openSpots: z.number().int().describe("Number of open spots for this waitlist.").optional().nullable()
134
+ openSpots: /* @__PURE__ */ z.number().int().describe("Number of open spots for this waitlist.").optional().nullable()
135
135
  }).describe(
136
136
  "An object describing the slot's waitlist and its occupancy."
137
137
  ).optional(),
138
- bookingPolicyViolations: z.object({
139
- tooEarlyToBook: z.boolean().describe(
138
+ bookingPolicyViolations: /* @__PURE__ */ z.object({
139
+ tooEarlyToBook: /* @__PURE__ */ z.boolean().describe(
140
140
  "Bookings policy violation. Too early to book this slot."
141
141
  ).optional().nullable(),
142
- tooLateToBook: z.boolean().describe(
142
+ tooLateToBook: /* @__PURE__ */ z.boolean().describe(
143
143
  "Bookings policy violation. Too late to book this slot."
144
144
  ).optional().nullable(),
145
- bookOnlineDisabled: z.boolean().describe(
145
+ bookOnlineDisabled: /* @__PURE__ */ z.boolean().describe(
146
146
  "Bookings policy violation. Online booking is disabled for this slot."
147
147
  ).optional().nullable(),
148
- validSubmissionRequired: z.boolean().describe(
148
+ validSubmissionRequired: /* @__PURE__ */ z.boolean().describe(
149
149
  "Bookings policy violation. Intake Form submission is required for this slot."
150
150
  ).optional().nullable()
151
151
  }).describe("Booking policy violations for the slot.").optional(),
152
- locked: z.boolean().describe(
152
+ locked: /* @__PURE__ */ z.boolean().describe(
153
153
  "Indicates whether the slot is locked because a waitlist exists.\nWhen a slot frees up, the slot is offered to the next customer on the waitlist. Read-only."
154
154
  ).optional().nullable(),
155
- isFromV2: z.boolean().describe("Deprecated. not in use since 2025-06-15.").optional()
155
+ isFromV2: /* @__PURE__ */ z.boolean().describe("Deprecated. not in use since 2025-06-15.").optional()
156
156
  })
157
157
  ).optional()
158
158
  });
159
159
  var GetScheduleAvailabilityRequest = /* @__PURE__ */ z.object({
160
- scheduleId: z.string().describe("The schedule ID for which availability is being checked.").regex(
160
+ scheduleId: /* @__PURE__ */ z.string().describe("The schedule ID for which availability is being checked.").regex(
161
161
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
162
162
  "Must be a valid GUID"
163
163
  )
164
164
  });
165
165
  var GetScheduleAvailabilityResponse = /* @__PURE__ */ z.object({
166
- availability: z.object({
167
- totalSpots: z.number().int().describe(
166
+ availability: /* @__PURE__ */ z.object({
167
+ totalSpots: /* @__PURE__ */ z.number().int().describe(
168
168
  "The total number of spots defined for the schedule, including\nboth open and non-available spots."
169
169
  ).optional().nullable(),
170
- openSpots: z.number().int().describe("The number of open spots defined for the schedule.").optional().nullable(),
171
- bookingPolicyViolations: z.object({
172
- tooEarlyToBook: z.boolean().describe("Bookings policy violation. Too early to book this slot.").optional().nullable(),
173
- tooLateToBook: z.boolean().describe("Bookings policy violation. Too late to book this slot.").optional().nullable(),
174
- bookOnlineDisabled: z.boolean().describe(
170
+ openSpots: /* @__PURE__ */ z.number().int().describe("The number of open spots defined for the schedule.").optional().nullable(),
171
+ bookingPolicyViolations: /* @__PURE__ */ z.object({
172
+ tooEarlyToBook: /* @__PURE__ */ z.boolean().describe("Bookings policy violation. Too early to book this slot.").optional().nullable(),
173
+ tooLateToBook: /* @__PURE__ */ z.boolean().describe("Bookings policy violation. Too late to book this slot.").optional().nullable(),
174
+ bookOnlineDisabled: /* @__PURE__ */ z.boolean().describe(
175
175
  "Bookings policy violation. Online booking is disabled for this slot."
176
176
  ).optional().nullable(),
177
- validSubmissionRequired: z.boolean().describe(
177
+ validSubmissionRequired: /* @__PURE__ */ z.boolean().describe(
178
178
  "Bookings policy violation. Intake Form submission is required for this slot."
179
179
  ).optional().nullable()
180
180
  }).describe("Booking policy violations for the schedule.").optional()
181
181
  }).optional(),
182
- bookingPolicySettings: z.object({
183
- maxParticipantsPerBooking: z.number().int().describe(
182
+ bookingPolicySettings: /* @__PURE__ */ z.object({
183
+ maxParticipantsPerBooking: /* @__PURE__ */ z.number().int().describe(
184
184
  "The policy defining the maximum number of participants that can\nbe booked for a slot or a schedule."
185
185
  ).optional().nullable()
186
186
  }).optional()
187
187
  });
188
188
  var CalculateMultiSlotAvailabilityRequest = /* @__PURE__ */ z.object({
189
- options: z.object({
190
- from: z.string().max(30).optional(),
191
- to: z.string().max(30).optional(),
192
- timeZone: z.string().max(30).optional(),
193
- bookable: z.boolean().describe(
189
+ options: /* @__PURE__ */ z.object({
190
+ from: /* @__PURE__ */ z.string().max(30).optional(),
191
+ to: /* @__PURE__ */ z.string().max(30).optional(),
192
+ timeZone: /* @__PURE__ */ z.string().max(30).optional(),
193
+ bookable: /* @__PURE__ */ z.boolean().describe(
194
194
  "TODO good definition of what bookable means https://github.com/wix-private/scheduler/pull/18267/files?file-filters%5B%5D=.proto&show-viewed-files=true#r1199809006"
195
195
  ).optional().nullable(),
196
- bookingPolicyViolations: z.object({
197
- tooEarlyToBook: z.boolean().describe("Bookings policy violation. Too early to book this slot.").optional().nullable(),
198
- tooLateToBook: z.boolean().describe("Bookings policy violation. Too late to book this slot.").optional().nullable(),
199
- bookOnlineDisabled: z.boolean().describe(
196
+ bookingPolicyViolations: /* @__PURE__ */ z.object({
197
+ tooEarlyToBook: /* @__PURE__ */ z.boolean().describe("Bookings policy violation. Too early to book this slot.").optional().nullable(),
198
+ tooLateToBook: /* @__PURE__ */ z.boolean().describe("Bookings policy violation. Too late to book this slot.").optional().nullable(),
199
+ bookOnlineDisabled: /* @__PURE__ */ z.boolean().describe(
200
200
  "Bookings policy violation. Online booking is disabled for this slot."
201
201
  ).optional().nullable(),
202
- validSubmissionRequired: z.boolean().describe(
202
+ validSubmissionRequired: /* @__PURE__ */ z.boolean().describe(
203
203
  "Bookings policy violation. Intake Form submission is required for this slot."
204
204
  ).optional().nullable()
205
205
  }).describe(
206
206
  "each nested field is checked on its own. i.e. if `too_early_to_book` is defined and `too_late_to_book` is not defined\nwe will return slots for which `too_early_to_book` is same as on the request, regardless of `too_late_to_book`."
207
207
  ).optional(),
208
- location: z.object({
209
- _id: z.string().describe(
208
+ location: /* @__PURE__ */ z.object({
209
+ _id: /* @__PURE__ */ z.string().describe(
210
210
  'Business location ID. Available only for locations that are business locations,\nmeaning the `location_type` is `"OWNER_BUSINESS"`.'
211
211
  ).regex(
212
212
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
213
213
  "Must be a valid GUID"
214
214
  ).optional().nullable(),
215
- name: z.string().describe("Location name.").optional().nullable(),
216
- formattedAddress: z.string().describe("The full address of this location.").optional().nullable(),
217
- formattedAddressTranslated: z.string().describe("The full translated address of this location.").max(512).optional().nullable(),
218
- locationType: z.enum(["UNDEFINED", "OWNER_BUSINESS", "OWNER_CUSTOM", "CUSTOM"]).optional()
215
+ name: /* @__PURE__ */ z.string().describe("Location name.").optional().nullable(),
216
+ formattedAddress: /* @__PURE__ */ z.string().describe("The full address of this location.").optional().nullable(),
217
+ formattedAddressTranslated: /* @__PURE__ */ z.string().describe("The full translated address of this location.").max(512).optional().nullable(),
218
+ locationType: /* @__PURE__ */ z.enum(["UNDEFINED", "OWNER_BUSINESS", "OWNER_CUSTOM", "CUSTOM"]).optional()
219
219
  }).describe(
220
220
  "support filtering by location type, or by locationId. Other fields like `name` are ignored\nmust be set, and must have locationType. If locationType is `OWNER_BUSINESS`, must have location_id"
221
221
  ).optional(),
222
- slots: z.array(
223
- z.object({
224
- serviceId: z.string().regex(
222
+ slots: /* @__PURE__ */ z.array(
223
+ /* @__PURE__ */ z.object({
224
+ serviceId: /* @__PURE__ */ z.string().regex(
225
225
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
226
226
  "Must be a valid GUID"
227
227
  ).optional(),
228
- resourcesFilter: z.object({ resourceIds: z.array(z.string()).optional() }).optional(),
229
- customerChoices: z.object({
230
- durationInMinutes: z.number().int().describe(
231
- "Selected duration in minutes, based on a [service variant](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/service-options-and-variants/introduction) the customer chose.\nWhen using [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction), we recommend passing only `addOnIds` instead of `durationInMinutes`. Wix Bookings then calculates the total duration automatically. If you specify both `addOnIds` and `durationInMinutes`, `durationInMinutes` must equal the service duration plus all selected add-on durations.\n\nMin: `1` minute\nMax: `44639` minutes (30 days, 23 hours, and 59 minutes)\nDefault: `15` minutes"
232
- ).min(1).max(44639).optional().nullable(),
233
- addOnIds: z.array(z.string()).max(21).optional()
228
+ resourcesFilter: /* @__PURE__ */ z.object({
229
+ resourceIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).optional()
230
+ }).optional(),
231
+ customerChoices: /* @__PURE__ */ z.object({
232
+ durationInMinutes: /* @__PURE__ */ z.number().int().describe(
233
+ "Selected duration in minutes, based on a [service variant](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/service-options-and-variants/introduction) the customer chose.\nWhen using [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction), we recommend passing only `addOnIds` instead of `durationInMinutes`. Wix Bookings then calculates the total duration automatically. If you specify both `addOnIds` and `durationInMinutes`, `durationInMinutes` must equal the service duration plus all selected add-on durations.\n\nMin: `1` minute\nMax: `86400` minutes (60 days)\nDefault: `15` minutes"
234
+ ).min(1).max(86400).optional().nullable(),
235
+ addOnIds: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(21).optional()
234
236
  }).describe(
235
237
  "will be passed to availability-2, and to the availability-constraints SPI"
236
238
  ).optional()
237
239
  })
238
240
  ).min(1).max(6).optional(),
239
- slotsPerDay: z.number().int().describe(
241
+ slotsPerDay: /* @__PURE__ */ z.number().int().describe(
240
242
  "Maximum number of slots to load for each date. For example, if `slots_per_day` is set to `3`,\nat most 3 available slots are returned for each day in the date range specified in the query's\n`filter`.\n\nWhen a day has both bookable and non-bookable slots, bookable slots are returned first.\nNon-bookable slots are returned according to the specified filters, after all\nbookable slots are already included."
241
243
  ).optional().nullable(),
242
- cursorPaging: z.object({
243
- limit: z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
244
- cursor: z.string().describe(
244
+ cursorPaging: /* @__PURE__ */ z.object({
245
+ limit: /* @__PURE__ */ z.number().int().describe("Maximum number of items to return in the results.").min(0).max(100).optional().nullable(),
246
+ cursor: /* @__PURE__ */ z.string().describe(
245
247
  "Pointer to the next or previous page in the list of results.\n\nPass the relevant cursor token from the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
246
248
  ).max(16e3).optional().nullable()
247
249
  }).optional()
248
250
  }).optional()
249
251
  });
250
252
  var CalculateMultiSlotAvailabilityResponse = /* @__PURE__ */ z.object({
251
- slots: z.array(
252
- z.object({
253
- slot: z.object({
254
- sessionId: z.string().describe(
253
+ slots: /* @__PURE__ */ z.array(
254
+ /* @__PURE__ */ z.object({
255
+ slot: /* @__PURE__ */ z.object({
256
+ sessionId: /* @__PURE__ */ z.string().describe(
255
257
  "ID for the slot's corresponding session, when the session is either a single session\nor a specific session generated from a recurring session.\n\nDeprecated. Please use `eventId` instead."
256
258
  ).optional().nullable(),
257
- serviceId: z.string().describe("Service ID.").optional(),
258
- scheduleId: z.string().describe("Schedule ID.").optional(),
259
- startDate: z.string().describe(
259
+ serviceId: /* @__PURE__ */ z.string().describe("Service ID.").optional(),
260
+ scheduleId: /* @__PURE__ */ z.string().describe("Schedule ID.").optional(),
261
+ startDate: /* @__PURE__ */ z.string().describe(
260
262
  "The start time of this slot in [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339)\nformat.\n\nIf `timezone` is specified,\ndates are based on the local date/time. This means that the timezone offset\nin the `start_date` is ignored."
261
263
  ).optional().nullable(),
262
- endDate: z.string().describe(
264
+ endDate: /* @__PURE__ */ z.string().describe(
263
265
  "The end time of this slot in\n[RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) format.\n\nIf `timezone` is specified,\ndates are based on the local date/time. This means that the timezone offset\nin the `end_date` is ignored."
264
266
  ).optional().nullable(),
265
- timezone: z.string().describe(
267
+ timezone: /* @__PURE__ */ z.string().describe(
266
268
  "The timezone for which slot availability is to be calculated.\n\nLearn more about [handling Daylight Savings Time (DST) for local time zones](https://dev.wix.com/api/rest/wix-bookings/availability-calendar/query-availability#wix-bookings_availability-calendar_query-availability_handling-daylight-savings-time-dst-for-local-time-zones)\nwhen calculating availability."
267
269
  ).optional().nullable(),
268
- resource: z.object({
269
- _id: z.string().describe("Resource ID.").regex(
270
+ resource: /* @__PURE__ */ z.object({
271
+ _id: /* @__PURE__ */ z.string().describe("Resource ID.").regex(
270
272
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
271
273
  "Must be a valid GUID"
272
274
  ).optional().nullable(),
273
- name: z.string().describe("Resource name. Read only.").max(1200).optional().nullable()
275
+ name: /* @__PURE__ */ z.string().describe("Resource name. Read only.").max(1200).optional().nullable()
274
276
  }).describe(
275
277
  "The resource required for this slot. Currently, the only supported resource\nis the relevant staff member for the slot."
276
278
  ).optional(),
277
- location: z.object({
278
- _id: z.string().describe(
279
+ location: /* @__PURE__ */ z.object({
280
+ _id: /* @__PURE__ */ z.string().describe(
279
281
  'Business location ID. Available only for locations that are business locations,\nmeaning the `location_type` is `"OWNER_BUSINESS"`.'
280
282
  ).regex(
281
283
  /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
282
284
  "Must be a valid GUID"
283
285
  ).optional().nullable(),
284
- name: z.string().describe("Location name.").optional().nullable(),
285
- formattedAddress: z.string().describe("The full address of this location.").optional().nullable(),
286
- formattedAddressTranslated: z.string().describe("The full translated address of this location.").max(512).optional().nullable(),
287
- locationType: z.enum([
286
+ name: /* @__PURE__ */ z.string().describe("Location name.").optional().nullable(),
287
+ formattedAddress: /* @__PURE__ */ z.string().describe("The full address of this location.").optional().nullable(),
288
+ formattedAddressTranslated: /* @__PURE__ */ z.string().describe("The full translated address of this location.").max(512).optional().nullable(),
289
+ locationType: /* @__PURE__ */ z.enum([
288
290
  "UNDEFINED",
289
291
  "OWNER_BUSINESS",
290
292
  "OWNER_CUSTOM",
291
293
  "CUSTOM"
292
294
  ]).describe("Location type.").optional()
293
295
  }).describe("Geographic location of the slot.").optional(),
294
- eventId: z.string().describe(
296
+ eventId: /* @__PURE__ */ z.string().describe(
295
297
  "ID for the slot's corresponding event, when the event is either a single event\nor a specific event generated from a recurring event."
296
298
  ).min(36).max(250).optional().nullable()
297
299
  }).describe(
298
300
  "The slot for the corresponding session, when the session is either a single session\nor a specific session generated from a recurring session."
299
301
  ).optional(),
300
- bookable: z.boolean().describe(
302
+ bookable: /* @__PURE__ */ z.boolean().describe(
301
303
  "Whether the slot is bookable. Bookability is determined by checking a\nsession's open slots and booking policies. Locks are not taken into\naccount."
302
304
  ).optional(),
303
- totalSpots: z.number().int().describe(
305
+ totalSpots: /* @__PURE__ */ z.number().int().describe(
304
306
  "Total number of spots for this slot.\nFor example, if a session has a total of 10 spots and 3 spots are booked,\n`spotsTotal` is 10 and `openSpots` is 7."
305
307
  ).optional().nullable(),
306
- openSpots: z.number().int().describe("Number of open spots for this slot.").optional().nullable(),
307
- waitingList: z.object({
308
- totalSpots: z.number().int().describe(
308
+ openSpots: /* @__PURE__ */ z.number().int().describe("Number of open spots for this slot.").optional().nullable(),
309
+ waitingList: /* @__PURE__ */ z.object({
310
+ totalSpots: /* @__PURE__ */ z.number().int().describe(
309
311
  "Total number of spots and open spots for this waitlist.\nFor example, a Yoga class with 10 waitlist spots and 3 registered\non the waitlist has 10 `total_spots` and 7 `open_spots`."
310
312
  ).optional().nullable(),
311
- openSpots: z.number().int().describe("Number of open spots for this waitlist.").optional().nullable()
313
+ openSpots: /* @__PURE__ */ z.number().int().describe("Number of open spots for this waitlist.").optional().nullable()
312
314
  }).describe(
313
315
  "An object describing the slot's waitlist and its occupancy."
314
316
  ).optional(),
315
- bookingPolicyViolations: z.object({
316
- tooEarlyToBook: z.boolean().describe(
317
+ bookingPolicyViolations: /* @__PURE__ */ z.object({
318
+ tooEarlyToBook: /* @__PURE__ */ z.boolean().describe(
317
319
  "Bookings policy violation. Too early to book this slot."
318
320
  ).optional().nullable(),
319
- tooLateToBook: z.boolean().describe(
321
+ tooLateToBook: /* @__PURE__ */ z.boolean().describe(
320
322
  "Bookings policy violation. Too late to book this slot."
321
323
  ).optional().nullable(),
322
- bookOnlineDisabled: z.boolean().describe(
324
+ bookOnlineDisabled: /* @__PURE__ */ z.boolean().describe(
323
325
  "Bookings policy violation. Online booking is disabled for this slot."
324
326
  ).optional().nullable(),
325
- validSubmissionRequired: z.boolean().describe(
327
+ validSubmissionRequired: /* @__PURE__ */ z.boolean().describe(
326
328
  "Bookings policy violation. Intake Form submission is required for this slot."
327
329
  ).optional().nullable()
328
330
  }).describe("Booking policy violations for the slot.").optional(),
329
- locked: z.boolean().describe(
331
+ locked: /* @__PURE__ */ z.boolean().describe(
330
332
  "Indicates whether the slot is locked because a waitlist exists.\nWhen a slot frees up, the slot is offered to the next customer on the waitlist. Read-only."
331
333
  ).optional().nullable(),
332
- isFromV2: z.boolean().describe("Deprecated. not in use since 2025-06-15.").optional()
334
+ isFromV2: /* @__PURE__ */ z.boolean().describe("Deprecated. not in use since 2025-06-15.").optional()
333
335
  })
334
336
  ).optional(),
335
- cursorPagingMetadata: z.object({
336
- count: z.number().int().describe("Number of items returned in current page.").optional().nullable(),
337
- cursors: z.object({
338
- next: z.string().describe(
337
+ cursorPagingMetadata: /* @__PURE__ */ z.object({
338
+ count: /* @__PURE__ */ z.number().int().describe("Number of items returned in current page.").optional().nullable(),
339
+ cursors: /* @__PURE__ */ z.object({
340
+ next: /* @__PURE__ */ z.string().describe(
339
341
  "Cursor string pointing to the next page in the list of results."
340
342
  ).max(16e3).optional().nullable(),
341
- prev: z.string().describe(
343
+ prev: /* @__PURE__ */ z.string().describe(
342
344
  "Cursor pointing to the previous page in the list of results."
343
345
  ).max(16e3).optional().nullable()
344
346
  }).describe(
345
347
  "Cursor strings that point to the next page, previous page, or both."
346
348
  ).optional(),
347
- hasNext: z.boolean().describe(
349
+ hasNext: /* @__PURE__ */ z.boolean().describe(
348
350
  "Whether there are more pages to retrieve following the current page.\n\n+ `true`: Another page of results can be retrieved.\n+ `false`: This is the last page."
349
351
  ).optional().nullable()
350
352
  }).optional()