@wix/auto_sdk_bookings_availability-calendar 1.0.77 → 1.0.79

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 (130) hide show
  1. package/build/{cjs/src/bookings-availability-v1-slot-availability-availability-calendar.types.d.ts → bookings-availability-v1-slot-availability-availability-calendar.universal-Drm9S8li.d.mts} +108 -45
  2. package/build/{internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.types.d.ts → bookings-availability-v1-slot-availability-availability-calendar.universal-Drm9S8li.d.ts} +108 -45
  3. package/build/{cjs/src/bookings-availability-v1-slot-availability-availability-calendar.public.d.ts → index.d.mts} +13 -9
  4. package/build/{es/src/bookings-availability-v1-slot-availability-availability-calendar.public.d.ts → index.d.ts} +13 -9
  5. package/build/index.js +410 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +381 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/{es/src/bookings-availability-v1-slot-availability-availability-calendar.types.d.ts → internal/bookings-availability-v1-slot-availability-availability-calendar.universal-Drm9S8li.d.mts} +108 -45
  10. package/build/internal/{es/src/bookings-availability-v1-slot-availability-availability-calendar.types.d.ts → bookings-availability-v1-slot-availability-availability-calendar.universal-Drm9S8li.d.ts} +108 -45
  11. package/build/internal/{es/src/bookings-availability-v1-slot-availability-availability-calendar.public.d.ts → index.d.mts} +13 -9
  12. package/build/internal/{cjs/src/bookings-availability-v1-slot-availability-availability-calendar.public.d.ts → index.d.ts} +13 -9
  13. package/build/internal/index.js +410 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +381 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +377 -0
  18. package/build/internal/meta.d.ts +377 -0
  19. package/build/internal/meta.js +306 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +277 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +377 -0
  24. package/build/meta.d.ts +377 -0
  25. package/build/meta.js +306 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +277 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +13 -12
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.context.d.ts +0 -7
  40. package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.context.js +0 -13
  41. package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.context.js.map +0 -1
  42. package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.http.d.ts +0 -93
  43. package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.http.js +0 -304
  44. package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.http.js.map +0 -1
  45. package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.meta.d.ts +0 -17
  46. package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.meta.js +0 -85
  47. package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.meta.js.map +0 -1
  48. package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.public.js +0 -28
  49. package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.public.js.map +0 -1
  50. package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.types.js +0 -26
  51. package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.types.js.map +0 -1
  52. package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.universal.d.ts +0 -905
  53. package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js +0 -286
  54. package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js.map +0 -1
  55. package/build/es/index.d.ts +0 -1
  56. package/build/es/index.js +0 -2
  57. package/build/es/index.js.map +0 -1
  58. package/build/es/index.typings.d.ts +0 -1
  59. package/build/es/index.typings.js +0 -2
  60. package/build/es/index.typings.js.map +0 -1
  61. package/build/es/meta.d.ts +0 -1
  62. package/build/es/meta.js +0 -2
  63. package/build/es/meta.js.map +0 -1
  64. package/build/es/package.json +0 -3
  65. package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.context.d.ts +0 -7
  66. package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.context.js +0 -7
  67. package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.context.js.map +0 -1
  68. package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.http.d.ts +0 -93
  69. package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.http.js +0 -298
  70. package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.http.js.map +0 -1
  71. package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.meta.d.ts +0 -17
  72. package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.meta.js +0 -56
  73. package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.meta.js.map +0 -1
  74. package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.public.js +0 -19
  75. package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.public.js.map +0 -1
  76. package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.types.js +0 -23
  77. package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.types.js.map +0 -1
  78. package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.universal.d.ts +0 -905
  79. package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js +0 -257
  80. package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js.map +0 -1
  81. package/build/internal/cjs/index.d.ts +0 -1
  82. package/build/internal/cjs/index.js +0 -18
  83. package/build/internal/cjs/index.js.map +0 -1
  84. package/build/internal/cjs/index.typings.d.ts +0 -1
  85. package/build/internal/cjs/index.typings.js +0 -18
  86. package/build/internal/cjs/index.typings.js.map +0 -1
  87. package/build/internal/cjs/meta.d.ts +0 -1
  88. package/build/internal/cjs/meta.js +0 -18
  89. package/build/internal/cjs/meta.js.map +0 -1
  90. package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.context.d.ts +0 -7
  91. package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.context.js +0 -13
  92. package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.context.js.map +0 -1
  93. package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.http.d.ts +0 -93
  94. package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.http.js +0 -304
  95. package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.http.js.map +0 -1
  96. package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.meta.d.ts +0 -17
  97. package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.meta.js +0 -85
  98. package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.meta.js.map +0 -1
  99. package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.public.js +0 -28
  100. package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.public.js.map +0 -1
  101. package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.types.js +0 -26
  102. package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.types.js.map +0 -1
  103. package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.universal.d.ts +0 -905
  104. package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js +0 -286
  105. package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js.map +0 -1
  106. package/build/internal/es/index.d.ts +0 -1
  107. package/build/internal/es/index.js +0 -2
  108. package/build/internal/es/index.js.map +0 -1
  109. package/build/internal/es/index.typings.d.ts +0 -1
  110. package/build/internal/es/index.typings.js +0 -2
  111. package/build/internal/es/index.typings.js.map +0 -1
  112. package/build/internal/es/meta.d.ts +0 -1
  113. package/build/internal/es/meta.js +0 -2
  114. package/build/internal/es/meta.js.map +0 -1
  115. package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.context.d.ts +0 -7
  116. package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.context.js +0 -7
  117. package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.context.js.map +0 -1
  118. package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.http.d.ts +0 -93
  119. package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.http.js +0 -298
  120. package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.http.js.map +0 -1
  121. package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.meta.d.ts +0 -17
  122. package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.meta.js +0 -56
  123. package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.meta.js.map +0 -1
  124. package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.public.js +0 -19
  125. package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.public.js.map +0 -1
  126. package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.types.js +0 -23
  127. package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.types.js.map +0 -1
  128. package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.universal.d.ts +0 -905
  129. package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js +0 -257
  130. package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js.map +0 -1
@@ -1,905 +0,0 @@
1
- import { NonNullablePaths } from '@wix/sdk-types';
2
- export interface SlotAvailability {
3
- /**
4
- * The slot for the corresponding session, when the session is either a single session
5
- * or a specific session generated from a recurring session.
6
- */
7
- slot?: Slot;
8
- /**
9
- * Whether the slot is bookable. Bookability is determined by checking a
10
- * session's open slots and booking policies. Locks are not taken into
11
- * account.
12
- */
13
- bookable?: boolean;
14
- /**
15
- * Total number of spots for this slot.
16
- * For example, if a session has a total of 10 spots and 3 spots are booked,
17
- * `spotsTotal` is 10 and `openSpots` is 7.
18
- */
19
- totalSpots?: number | null;
20
- /** Number of open spots for this slot. */
21
- openSpots?: number | null;
22
- /** An object describing the slot's waitlist and its occupancy. */
23
- waitingList?: AvailabilityWaitingList;
24
- /** Booking policy violations for the slot. */
25
- bookingPolicyViolations?: BookingPolicyViolations;
26
- /**
27
- * Indicates whether the slot is locked because a waitlist exists.
28
- * When a slot frees up, the slot is offered to the next customer on the waitlist. Read-only.
29
- */
30
- locked?: boolean | null;
31
- isFromV2?: boolean;
32
- }
33
- export interface Slot {
34
- /**
35
- * ID for the slot's corresponding session, when the session is either a single session
36
- * or a specific session generated from a recurring session.
37
- *
38
- * Deprecated. Please use `eventId` instead.
39
- * @deprecated ID for the slot's corresponding session, when the session is either a single session
40
- * or a specific session generated from a recurring session.
41
- *
42
- * Deprecated. Please use `eventId` instead.
43
- * @replacedBy event_id
44
- * @targetRemovalDate 2025-09-30
45
- */
46
- sessionId?: string | null;
47
- /** Service ID. */
48
- serviceId?: string;
49
- /** Schedule ID. */
50
- scheduleId?: string;
51
- /**
52
- * The start time of this slot in [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339)
53
- * format.
54
- *
55
- * If `timezone` is specified,
56
- * dates are based on the local date/time. This means that the timezone offset
57
- * in the `start_date` is ignored.
58
- */
59
- startDate?: string | null;
60
- /**
61
- * The end time of this slot in
62
- * [RFC 3339](https://www.rfc-editor.org/rfc/rfc3339) format.
63
- *
64
- * If `timezone` is specified,
65
- * dates are based on the local date/time. This means that the timezone offset
66
- * in the `end_date` is ignored.
67
- */
68
- endDate?: string | null;
69
- /**
70
- * The timezone for which slot availability is to be calculated.
71
- *
72
- * Learn 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)
73
- * when calculating availability.
74
- */
75
- timezone?: string | null;
76
- /**
77
- * The resource required for this slot. Currently, the only supported resource
78
- * is the relevant staff member for the slot.
79
- */
80
- resource?: SlotResource;
81
- /** Geographic location of the slot. */
82
- location?: Location;
83
- /**
84
- * ID for the slot's corresponding event, when the event is either a single event
85
- * or a specific event generated from a recurring event.
86
- * @minLength 36
87
- * @maxLength 250
88
- */
89
- eventId?: string | null;
90
- }
91
- export interface SlotResource {
92
- /**
93
- * Resource ID.
94
- * @format GUID
95
- * @readonly
96
- */
97
- _id?: string | null;
98
- /**
99
- * Resource name. Read only.
100
- * @maxLength 1200
101
- */
102
- name?: string | null;
103
- }
104
- export interface Location {
105
- /**
106
- * Business location ID. Available only for locations that are business locations,
107
- * meaning the `location_type` is `"OWNER_BUSINESS"`.
108
- * @format GUID
109
- */
110
- _id?: string | null;
111
- /** Location name. */
112
- name?: string | null;
113
- /** The full address of this location. */
114
- formattedAddress?: string | null;
115
- /**
116
- * The full translated address of this location.
117
- * @maxLength 512
118
- */
119
- formattedAddressTranslated?: string | null;
120
- /**
121
- * Location type.
122
- *
123
- * - `"OWNER_BUSINESS"`: The business address, as set in the site’s general settings.
124
- * - `"OWNER_CUSTOM"`: The address as set when creating the service.
125
- * - `"CUSTOM"`: The address as set for the individual session.
126
- */
127
- locationType?: LocationType;
128
- }
129
- export declare enum LocationType {
130
- UNDEFINED = "UNDEFINED",
131
- OWNER_BUSINESS = "OWNER_BUSINESS",
132
- OWNER_CUSTOM = "OWNER_CUSTOM",
133
- CUSTOM = "CUSTOM"
134
- }
135
- export interface AvailabilityWaitingList {
136
- /**
137
- * Total number of spots and open spots for this waitlist.
138
- * For example, a Yoga class with 10 waitlist spots and 3 registered
139
- * on the waitlist has 10 `total_spots` and 7 `open_spots`.
140
- */
141
- totalSpots?: number | null;
142
- /** Number of open spots for this waitlist. */
143
- openSpots?: number | null;
144
- }
145
- export interface BookingPolicyViolations {
146
- /** Bookings policy violation. Too early to book this slot. */
147
- tooEarlyToBook?: boolean | null;
148
- /** Bookings policy violation. Too late to book this slot. */
149
- tooLateToBook?: boolean | null;
150
- /** Bookings policy violation. Online booking is disabled for this slot. */
151
- bookOnlineDisabled?: boolean | null;
152
- }
153
- export interface NestedTimeSlot {
154
- /** @format GUID */
155
- serviceId?: string;
156
- /** @maxLength 30 */
157
- start?: string;
158
- /** @maxLength 30 */
159
- end?: string;
160
- resource?: SlotResource;
161
- /** Schedule ID. */
162
- scheduleId?: string;
163
- }
164
- export interface QueryAvailabilityRequest {
165
- /**
166
- * Query options. Refer to the
167
- * _supported filters article_
168
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/supported-filters-and-sorting) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/time-slots/availability-calendar/supported-fields-filters-and-sorting))
169
- * for a complete list of supported filters.
170
- */
171
- query: QueryV2;
172
- /**
173
- * Time zone override for the `endDate` and `startDate` filters, in
174
- * [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database), such as
175
- * `America/New_York` or `UTC`.
176
- *
177
- * For example, if you specify `("startDate": "2025-11-25T17:00:00+01:00"}` (note
178
- * the +01:00 offset) in combination with `{"timezone": "Europe/Bucharest"}`
179
- * (+02:00 offset), *Query Availability* adjusts the effective start time to
180
- * reflect the specified time zone. In this case, the start time in UTC would
181
- * be `2025-11-25T15:00:00` (using the +02:00 offset).
182
- *
183
- * Learn more about *handling Daylight Savings Time*
184
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability#wix-bookings_availability-calendar_query-availability_daylight-savings-time-dst) | [REST](https://dev.wix.com/api/rest/wix-bookings/availability-calendar/query-availability#wix-bookings_availability-calendar_query-availability_daylight-savings-time-dst)).
185
- *
186
- * Default: No modification applied to the `endDate` and `startDate` filters.
187
- */
188
- timezone?: string | null;
189
- /**
190
- * Maximum number of appointment slots to return for each date. For example, if
191
- * you specify `{"slotsPerDay": 3}`, a maximum of 3 appointment slots/class events is
192
- * returned for each day that's within the query filter's date range.
193
- */
194
- slotsPerDay?: number | null;
195
- }
196
- export interface QueryV2 extends QueryV2PagingMethodOneOf {
197
- /**
198
- * Filter object. For a list of
199
- * fields you can filter by, see [Calendar Availability: Supported Fields, Filters, and Sorting](https://dev.wix.com/api/rest/wix-bookings/availability-calendar/supported-fields,-filters,-and-sorting).
200
- * You must include `serviceId`, `startDate` and `endDate` in the filter. This avoids large results that can impact performance.
201
- */
202
- filter?: Record<string, any> | null;
203
- /**
204
- * Sort options.
205
- * Currently, only sorting by `startDate` is supported. For details
206
- * on sorting, see [Calendar Availability: Supported Fields, Filters and Sorting](https://dev.wix.com/api/rest/wix-bookings/availability-calendar/supported-fields,-filters,-and-sorting).
207
- */
208
- sort?: Sorting[];
209
- }
210
- /** @oneof */
211
- export interface QueryV2PagingMethodOneOf {
212
- }
213
- export interface Sorting {
214
- /**
215
- * Name of the field to sort by.
216
- * @maxLength 512
217
- */
218
- fieldName?: string;
219
- /** Sort order. */
220
- order?: SortOrder;
221
- }
222
- export declare enum SortOrder {
223
- ASC = "ASC",
224
- DESC = "DESC"
225
- }
226
- export interface CursorPaging {
227
- /**
228
- * Maximum number of items to return in the results.
229
- * @max 100
230
- */
231
- limit?: number | null;
232
- /**
233
- * Pointer to the next or previous page in the list of results.
234
- *
235
- * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
236
- * Not relevant for the first request.
237
- * @maxLength 16000
238
- */
239
- cursor?: string | null;
240
- }
241
- /**
242
- * Selected customer choices.
243
- * These choices are selected by the customer during the booking flow and can be utilized to calculate the corresponding service's configuration properties.
244
- */
245
- export interface CustomerChoices {
246
- /**
247
- * The selected customer duration in minutes.
248
- * Min: `1 minute`
249
- * Max: `44639 minutes` (30 days, 23 hours, and 59 minutes)
250
- * @min 1
251
- * @max 44639
252
- */
253
- durationInMinutes?: number | null;
254
- /**
255
- * The selected add-ons IDs.
256
- * Max: Derived from max amount of Add-On groups * max amount of Add-Ons per group.
257
- * @format GUID
258
- * @maxSize 21
259
- */
260
- addOnIds?: string[] | null;
261
- }
262
- export interface QueryAvailabilityResponse {
263
- /** List of appointment slots or class events matching the filter. */
264
- availabilityEntries?: SlotAvailability[];
265
- }
266
- export interface PagingMetadataV2 {
267
- /** Number of items returned in the response. */
268
- count?: number | null;
269
- /** Offset that was requested. */
270
- offset?: number | null;
271
- /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
272
- total?: number | null;
273
- /** Flag that indicates the server failed to calculate the `total` field. */
274
- tooManyToCount?: boolean | null;
275
- /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
276
- cursors?: Cursors;
277
- }
278
- export interface Cursors {
279
- /**
280
- * Cursor string pointing to the next page in the list of results.
281
- * @maxLength 16000
282
- */
283
- next?: string | null;
284
- /**
285
- * Cursor pointing to the previous page in the list of results.
286
- * @maxLength 16000
287
- */
288
- prev?: string | null;
289
- }
290
- export interface GetSlotAvailabilityRequest {
291
- /** The slot for which the availability is checked. */
292
- slot?: Slot;
293
- /**
294
- * The timezone for which slot availability is to be calculated. If specified,
295
- * dates are based on the local date/time, meaning that the timezone offset
296
- * in the date's format is ignored.
297
- *
298
- * Learn 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)
299
- * when calculating availability.
300
- */
301
- timezone?: string | null;
302
- }
303
- export interface GetSlotAvailabilityResponse {
304
- availability?: SlotAvailability;
305
- bookingPolicySettings?: BookingPolicySettings;
306
- }
307
- export interface BookingPolicySettings {
308
- /**
309
- * The policy defining the maximum number of participants that can
310
- * be booked for a slot or a schedule.
311
- */
312
- maxParticipantsPerBooking?: number | null;
313
- }
314
- export interface GetScheduleAvailabilityRequest {
315
- /**
316
- * The schedule ID for which availability is being checked.
317
- * @format GUID
318
- */
319
- scheduleId: string;
320
- }
321
- export interface GetScheduleAvailabilityResponse {
322
- availability?: ScheduleAvailability;
323
- bookingPolicySettings?: BookingPolicySettings;
324
- }
325
- export interface ScheduleAvailability {
326
- /**
327
- * The total number of spots defined for the schedule, including
328
- * both open and non-available spots.
329
- */
330
- totalSpots?: number | null;
331
- /** The number of open spots defined for the schedule. */
332
- openSpots?: number | null;
333
- /** Booking policy violations for the schedule. */
334
- bookingPolicyViolations?: BookingPolicyViolations;
335
- }
336
- export interface CalculateMultiSlotAvailabilityRequest {
337
- /** @maxLength 30 */
338
- from?: string;
339
- /** @maxLength 30 */
340
- to?: string;
341
- /** @maxLength 30 */
342
- timeZone?: string;
343
- /** 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 */
344
- bookable?: boolean | null;
345
- /**
346
- * 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
347
- * we will return slots for which `too_early_to_book` is same as on the request, regardless of `too_late_to_book`.
348
- */
349
- bookingPolicyViolations?: BookingPolicyViolations;
350
- /**
351
- * support filtering by location type, or by locationId. Other fields like `name` are ignored
352
- * must be set, and must have locationType. If locationType is `OWNER_BUSINESS`, must have location_id
353
- */
354
- location?: Location;
355
- /**
356
- * @minSize 1
357
- * @maxSize 6
358
- */
359
- slots?: RuleBasedConstraints[];
360
- /**
361
- * Maximum number of slots to load for each date. For example, if `slots_per_day` is set to `3`,
362
- * at most 3 available slots are returned for each day in the date range specified in the query's
363
- * `filter`.
364
- *
365
- * When a day has both bookable and non-bookable slots, bookable slots are returned first.
366
- * Non-bookable slots are returned according to the specified filters, after all
367
- * bookable slots are already included.
368
- */
369
- slotsPerDay?: number | null;
370
- cursorPaging?: CursorPaging;
371
- }
372
- export interface RuleBasedConstraints {
373
- /** @format GUID */
374
- serviceId?: string;
375
- resourcesFilter?: ResourcesFilter;
376
- /** will be passed to availability-2, and to the availability-constraints SPI */
377
- customerChoices?: V2CustomerChoices;
378
- }
379
- export interface ResourcesFilter {
380
- resourceIds?: string[];
381
- }
382
- /**
383
- * Selected customer choices.
384
- * These choices are selected by the customer during the booking flow and can be utilized to calculate the corresponding service's configuration properties.
385
- */
386
- export interface V2CustomerChoices {
387
- /**
388
- * The selected customer duration in minutes.
389
- * Min: `1 minute`
390
- * Max: `44639 minutes` (30 days, 23 hours, and 59 minutes)
391
- * @min 1
392
- * @max 44639
393
- */
394
- durationInMinutes?: number | null;
395
- /**
396
- * The selected add-ons IDs.
397
- * Max: Derived from max amount of Add-On groups * max amount of Add-Ons per group.
398
- * @format GUID
399
- * @maxSize 21
400
- */
401
- addOnIds?: string[] | null;
402
- }
403
- export interface CalculateMultiSlotAvailabilityResponse {
404
- slots?: SlotAvailability[];
405
- cursorPagingMetadata?: CursorPagingMetadata;
406
- }
407
- export interface CursorPagingMetadata {
408
- /** Number of items returned in current page. */
409
- count?: number | null;
410
- /** Cursor strings that point to the next page, previous page, or both. */
411
- cursors?: Cursors;
412
- /**
413
- * Whether there are more pages to retrieve following the current page.
414
- *
415
- * + `true`: Another page of results can be retrieved.
416
- * + `false`: This is the last page.
417
- */
418
- hasNext?: boolean | null;
419
- }
420
- export interface GetAvailabilityTimeSlotRequest {
421
- /**
422
- * Service ID of the time slot.
423
- * Currently supported only for services of type `APPOINTMENT`.
424
- * @format GUID
425
- */
426
- serviceId?: string;
427
- /**
428
- * Local start date of the time slot, in ISO-8601 format.
429
- * For example, "2024-01-30T13:30:00".
430
- * @format LOCAL_DATE_TIME
431
- */
432
- localStartDate?: string;
433
- /**
434
- * Local end date of the time slot, in ISO-8601 format.
435
- * For example, "2024-01-30T14:30:00".
436
- * @format LOCAL_DATE_TIME
437
- */
438
- localEndDate?: string;
439
- /**
440
- * Time zone, in IANA time zone format.
441
- * @minLength 1
442
- * @maxLength 150
443
- */
444
- timeZone?: string | null;
445
- /**
446
- * The location of the time slot.
447
- *
448
- * You must provide a specific `locationType`.
449
- * If locationType is `BUSINESS`, you __must__ also provide a `locationId`.
450
- *
451
- * <blockquote class="warning">
452
- * <p>Supports filtering by location type, or by location ID.
453
- * Other fields like <code class="grey-background">name</code> are ignored.</p>
454
- * </blockquote>
455
- */
456
- location?: TimeSlotLocation;
457
- /**
458
- * Resources to include in response.
459
- *
460
- * If specified,
461
- * the returned `TimeSlot` contains only the available resources out of provided list.
462
- * Otherwise, the returned `TimeSlot` returned with all possible `AvailableResources`.
463
- * @format GUID
464
- * @maxSize 135
465
- */
466
- resourceIds?: string[];
467
- /**
468
- * Resource type IDs to include in response, this is in addition to the requested `resourceIds`.
469
- *
470
- * If specified in request, the returned `TimeSlot` contains only the `AvailableResources` with `ResourceTypeId`
471
- * out of those specified, each contains all the available resources of this type.
472
- * @format GUID
473
- * @maxSize 100
474
- */
475
- includeResourceTypeIds?: string[];
476
- fromV2?: boolean | null;
477
- }
478
- export interface TimeSlotLocation {
479
- /**
480
- * Business Location ID. Present only if the location is a business location.
481
- * @format GUID
482
- */
483
- _id?: string | null;
484
- /**
485
- * The location name.
486
- * @maxLength 250
487
- */
488
- name?: string | null;
489
- /**
490
- * A string representation for the full address of the location.
491
- * @maxLength 300
492
- */
493
- formattedAddress?: string | null;
494
- /**
495
- * The type of location:
496
- * - `CUSTOM`: The location is specific to this service, and is not derived from the business location.
497
- * - `BUSINESS`: A business location, either the default business address, or locations defined for the business by the Business Info.
498
- * - `CUSTOMER`: The location is determined by the customer and is not set up beforehand.
499
- */
500
- locationType?: LocationLocationType;
501
- }
502
- export declare enum LocationLocationType {
503
- UNKNOWN_LOCATION_TYPE = "UNKNOWN_LOCATION_TYPE",
504
- /** A business location, either the default business address, or locations defined for the business by the Business Info. */
505
- BUSINESS = "BUSINESS",
506
- /** The location is unique to this service and isn't defined as one of the business locations. */
507
- CUSTOM = "CUSTOM",
508
- /** The location can be determined by the customer and is not set up beforehand. */
509
- CUSTOMER = "CUSTOMER"
510
- }
511
- export interface GetAvailabilityTimeSlotResponse {
512
- /** Time slot. */
513
- timeSlot?: TimeSlot;
514
- /**
515
- * Time zone, in IANA time zone format.
516
- * @minLength 1
517
- * @maxLength 150
518
- */
519
- timeZone?: string | null;
520
- }
521
- /**
522
- * The `TimeSlot` object represents the availability information
523
- * for an `Appointment` service's specific slot, including:
524
- *
525
- * 1. Whether the slot is bookable for the given service?
526
- *
527
- * 2. In what location the service is available for this slot?
528
- *
529
- * 3. Which available resources can provide the service for this slot?
530
- *
531
- * 4. Does booking the slot for the service violates any of the service booking policies?
532
- *
533
- * 5. What is the total capacity and remaining capacity of the service at the time of the calculation of the `TimeSlot`?
534
- *
535
- * > __Note:__
536
- * > When the `TimeSlot` has a non empty `NestedTimeSlots`, it represents the availability information
537
- * > for a given list of `Appointment` services within a specific time slot.
538
- */
539
- export interface TimeSlot {
540
- /**
541
- * Service ID.
542
- *
543
- * > Not returned from `MultiServiceAvailabilityTimeSlots` API calls.
544
- * > Instead, each nested time slot has its own serviceId.
545
- * @format GUID
546
- */
547
- serviceId?: string | null;
548
- /**
549
- * Local start date of the time slot in ISO-8601 format.
550
- * For example, "2024-01-30T13:30:00".
551
- * @format LOCAL_DATE_TIME
552
- */
553
- localStartDate?: string | null;
554
- /**
555
- * Local end date of the time slot in ISO-8601 format.
556
- * For example, "2024-01-30T14:30:00".
557
- * @format LOCAL_DATE_TIME
558
- */
559
- localEndDate?: string | null;
560
- /**
561
- * Whether the slot is bookable according to the service's booking policies.
562
- *
563
- * If booking this time slot does not violates any of the service's booking policies,
564
- * the returned value is `true`. Otherwise, returns `false`.
565
- */
566
- bookable?: boolean | null;
567
- /** The geographic location of the slot. */
568
- location?: TimeSlotLocation;
569
- /**
570
- * Total number of spots for the slot.
571
- * @min 1
572
- * @max 1000
573
- */
574
- totalCapacity?: number | null;
575
- /**
576
- * Remaining number of spots for the slot.
577
- * For example, for an appointment service with total capacity of 1 spot and one booked spot, the remaining capacity will be 0.
578
- * @max 1000
579
- */
580
- remainingCapacity?: number | null;
581
- /**
582
- * Indicators for booking policy violations for the slot.
583
- *
584
- * Each nested field is checked on its own. i.e. if `tooEarlyToBook` is defined and `bookOnlineDisabled` is not defined
585
- * we will return also slots for which `tooEarlyToBook` is same as on the request, regardless of `bookOnlineDisabled`.
586
- */
587
- bookingPolicyViolations?: Service_availabilityBookingPolicyViolations;
588
- /**
589
- * List of `AvailableResources` for the time slot.
590
- * Each `AvailableResources` contains information about available resources of the same type.
591
- *
592
- * > Not returned from `MultiServiceAvailabilityTimeSlots` API calls.
593
- * > Instead, each nested time slot has its own available resources.
594
- */
595
- availableResources?: AvailableResources[];
596
- /**
597
- * > Nested time slots.
598
- * > Returned only from `MultiServiceAvailabilityTimeSlots` API calls.
599
- * @maxSize 8
600
- */
601
- nestedTimeSlots?: Service_availabilityNestedTimeSlot[];
602
- }
603
- /** relevant for event based slots, and not for availability based slots */
604
- export interface EventInfo {
605
- }
606
- export interface WaitingList {
607
- /**
608
- * Total number of spots in this wait list.
609
- * @min 1
610
- */
611
- totalCapacity?: number | null;
612
- /**
613
- * Number of remaining spots for this wait list.
614
- * For example, a Yoga event with 10 waitList spots and 3 registered
615
- * on the waitList has 10 `total_capacity` and 7 `remaining_capacity`.
616
- */
617
- remainingCapacity?: number | null;
618
- }
619
- export interface Service_availabilityBookingPolicyViolations {
620
- /** Bookings policy violation. Too early to book this slot. */
621
- tooEarlyToBook?: boolean | null;
622
- /** Bookings policy violation. Too late to book this slot. */
623
- tooLateToBook?: boolean | null;
624
- /** Bookings policy violation. Online booking is disabled for the `TimeSlot` service. */
625
- bookOnlineDisabled?: boolean | null;
626
- }
627
- export interface AvailableResources {
628
- /**
629
- * Resource type ID.
630
- * @format GUID
631
- */
632
- resourceTypeId?: string | null;
633
- /**
634
- * Available resources for the time slot.
635
- *
636
- * + When returned from `ListAvailabilityTimeSlots`, empty by default.
637
- * + + If you provided `includeResourceTypeIds` or `resourceIds` in request,
638
- * contains __up__ to 10 available resources out of those provided.
639
- *
640
- * + When returned from `GetAvailabilityTimeSlots`, contains all available resources by default.
641
- * + + If you provided `includeResourceTypeIds` or `resourceIds` in request,
642
- * contains all of the available resources out of those provided.
643
- *
644
- *
645
- * > + When returned from `ListMultiServiceAvailabilityTimeSlots`, empty by default.
646
- * > + + If you provided `includeResourceTypeIds` or `resourceIds` in request,
647
- * > contains __up__ to 10 available resources out of those provided.
648
- *
649
- * > + When returned from `GetMultiServiceAvailabilityTimeSlots`, contains all available resources by default.
650
- * > + + If you provided `includeResourceTypeIds` or `resourceIds` in request,
651
- * > contains all of the available resources out of those provided.
652
- */
653
- resources?: Resource[];
654
- /**
655
- * Whether there are more available resources for the slot that are not listed in `resources` due to size limitations.
656
- * @readonly
657
- */
658
- hasMoreAvailableResources?: boolean | null;
659
- }
660
- export interface Resource {
661
- /**
662
- * Resource ID.
663
- * @format GUID
664
- */
665
- _id?: string;
666
- /**
667
- * Resource name.
668
- * @minLength 1
669
- * @maxLength 40
670
- */
671
- name?: string | null;
672
- }
673
- export interface Service_availabilityNestedTimeSlot {
674
- /**
675
- * Service ID of the nested time slot.
676
- * @format GUID
677
- */
678
- serviceId?: string;
679
- /**
680
- * Local start date of the nested time slot in ISO-8601 format.
681
- * For example, "2024-01-30T13:30:00".
682
- * @format LOCAL_DATE_TIME
683
- */
684
- localStartDate?: string;
685
- /**
686
- * Local end date of the nested time slot in ISO-8601 format.
687
- * For example, "2024-01-30T14:30:00".
688
- * @format LOCAL_DATE_TIME
689
- */
690
- localEndDate?: string;
691
- /**
692
- * List of `AvailableResources` for the nested time slot.
693
- * Each `AvailableResources` contains information about available resources of the same type.
694
- * @maxSize 10
695
- */
696
- availableResources?: AvailableResources[];
697
- }
698
- type SlotAvailabilityNonNullablePaths = `slot.serviceId` | `slot.scheduleId` | `slot.location.locationType` | `bookable` | `isFromV2`;
699
- /**
700
- * Retrieves appointment slots or class events that match specified filters.
701
- *
702
- * <blockquote>
703
- *
704
- * Query Availability doesn't use a query builder, instead it uses
705
- * [API query language](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/api-query-language).
706
- *
707
- * </blockquote>
708
- *
709
- * ## Course limitations
710
- *
711
- * Course events can't be retrieved with this method. Follow this
712
- * *sample flow* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/bookings/sample-flows#backend-modules_bookings_bookings_book-a-course) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/sample-booking-flows#book-a-course))
713
- * to check course availability.
714
- *
715
- * ## Query filter
716
- *
717
- * You must include `serviceId` in your query filter. For performance, also specify
718
- * both `startDate` and `endDate`. Refer to the
719
- * *supported filters article* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/supported-filters-and-sorting) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/time-slots/availability-calendar/supported-fields-filters-and-sorting))
720
- * for a complete list of supported filters.
721
- *
722
- * ## Limit the number of slots returned per day
723
- *
724
- * To limit the maximum number of appointment slots returned for each date,
725
- * specify `slotsPerDay`. For example, specifying `{"slotsPerDay": 3}` returns
726
- * a maximum of 3 appointment slots/class events for each day that's within the query
727
- * filter's date range.
728
- *
729
- * ## Unavailable slots
730
- *
731
- * By default, both available and unavailable appointment slots/ class events
732
- * are returned. To retrieve only available slots/events, specify
733
- * `{"bookable": true}` in the filter.
734
- *
735
- * ## Sorting
736
- *
737
- * Slots/events can be sorted only by `startDate`. Unavailable slots/events
738
- * always appear after available ones.
739
- *
740
- * ## Availability calculation
741
- *
742
- * Wix Bookings calculates availability differently for appointment-based
743
- * services and classes.
744
- *
745
- * ### Appointment availability
746
- *
747
- * An appointment slot is `bookable` if:
748
- * - The slot's `startDate` is later than or equal to `query.filter.startDate`.
749
- * - The slot's `endDate` is before or equal to `query.filter.endDate`.
750
- * - The service's `onlineBooking.enabled` is `true`.
751
- * - The service's early/late booking policies are either not enabled or the
752
- * current time is within the defined limits.
753
- *
754
- * ### Class event availability
755
- *
756
- * A class event is `bookable` if:
757
- * - The event's `startDate` is later than or equal to `query.filter.startDate`.
758
- * - The event's `endDate` is before or equal to `query.filter.endDate`.
759
- * - The event's `remainingCapacity` is greater than `0`.
760
- * - The service's `onlineBooking.enabled` is `true`.
761
- * - The service's early/late booking policies are either not enabled or the
762
- * current time is within the defined limits.
763
- *
764
- * If you want to restrict returned class events to those with a minimum number
765
- * of remaining spots, specify `openSpots` in the filter. By default, all class
766
- * events, even those with no open spot, are returned.
767
- *
768
- * ## Daylight Savings Time (DST)
769
- *
770
- * Due to DST, some local times may not exist or may occur twice. For example,
771
- * in Santiago, Chile, on September 7, 2025, 0:05 AM doesn't exist because the
772
- * clock advances from 0:00 AM to 1:00 AM.
773
- *
774
- * *Query Availability* automatically adjusts for these gaps. Non-existent times
775
- * are moved forward by 1 hour, while existing times remain unchanged. For
776
- * instance, if you call *Query Availability* with a `startDate` of
777
- * `2025-09-07T00:00:01.000` and an `endDate` of `2025-09-08T00:00:02.000`, the
778
- * adjusted query will use `2025-09-07T01:00:01.000` as the new start time.
779
- * @param query - Query options. Refer to the
780
- * _supported filters article_
781
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/supported-filters-and-sorting) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/time-slots/availability-calendar/supported-fields-filters-and-sorting))
782
- * for a complete list of supported filters.
783
- * @public
784
- * @documentationMaturity preview
785
- * @requiredField query
786
- * @requiredField query.filter
787
- * @param options - Options to use for querying availability.
788
- * @permissionId BOOKINGS.AVAILABILITY_READ
789
- * @permissionScope Read Bookings - Public Data
790
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
791
- * @permissionScope Manage Bookings Services and Settings
792
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
793
- * @permissionScope Read Bookings - Including Participants
794
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
795
- * @permissionScope Read Bookings - all read permissions
796
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
797
- * @permissionScope Read Bookings Calendar Availability
798
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR
799
- * @permissionScope Manage Bookings - all permissions
800
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
801
- * @applicableIdentity APP
802
- * @applicableIdentity VISITOR
803
- * @fqn com.wixpress.bookings.availability.AvailabilityCalendar.QueryAvailability
804
- */
805
- export declare function queryAvailability(query: NonNullablePaths<QueryV2, `filter`>, options?: QueryAvailabilityOptions): Promise<NonNullablePaths<QueryAvailabilityResponse, {
806
- [P in SlotAvailabilityNonNullablePaths]: `availabilityEntries.${number}.${P}`;
807
- }[SlotAvailabilityNonNullablePaths]>>;
808
- export interface QueryAvailabilityOptions {
809
- /**
810
- * Time zone override for the `endDate` and `startDate` filters, in
811
- * [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database), such as
812
- * `America/New_York` or `UTC`.
813
- *
814
- * For example, if you specify `("startDate": "2025-11-25T17:00:00+01:00"}` (note
815
- * the +01:00 offset) in combination with `{"timezone": "Europe/Bucharest"}`
816
- * (+02:00 offset), *Query Availability* adjusts the effective start time to
817
- * reflect the specified time zone. In this case, the start time in UTC would
818
- * be `2025-11-25T15:00:00` (using the +02:00 offset).
819
- *
820
- * Learn more about *handling Daylight Savings Time*
821
- * ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability#wix-bookings_availability-calendar_query-availability_daylight-savings-time-dst) | [REST](https://dev.wix.com/api/rest/wix-bookings/availability-calendar/query-availability#wix-bookings_availability-calendar_query-availability_daylight-savings-time-dst)).
822
- *
823
- * Default: No modification applied to the `endDate` and `startDate` filters.
824
- */
825
- timezone?: string | null;
826
- /**
827
- * Maximum number of appointment slots to return for each date. For example, if
828
- * you specify `{"slotsPerDay": 3}`, a maximum of 3 appointment slots/class events is
829
- * returned for each day that's within the query filter's date range.
830
- */
831
- slotsPerDay?: number | null;
832
- }
833
- /**
834
- * Returns availability for a given schedule ID
835
- * The availability for a course is calculated by:
836
- * - Checking for total spots by the schedule's capacity
837
- * - Checking for open spots by subtracting the current number of participants from the total spots
838
- * current number of participants is calculated by summing the number of participants of all bookings booked to the schedule
839
- * @param scheduleId - The schedule ID for which availability is being checked.
840
- * @public
841
- * @documentationMaturity preview
842
- * @requiredField scheduleId
843
- * @fqn com.wixpress.bookings.availability.AvailabilityCalendar.GetScheduleAvailability
844
- * @deprecated
845
- */
846
- export declare function getScheduleAvailability(scheduleId: string): Promise<GetScheduleAvailabilityResponse>;
847
- /** @public
848
- * @documentationMaturity preview
849
- * @permissionId BOOKINGS.AVAILABILITY_READ_MULTI_SLOT
850
- * @permissionScope Read Bookings - Public Data
851
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
852
- * @permissionScope Manage Bookings Services and Settings
853
- * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
854
- * @permissionScope Read Bookings - Including Participants
855
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
856
- * @permissionScope Read Bookings - all read permissions
857
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
858
- * @permissionScope Read Bookings Calendar Availability
859
- * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR
860
- * @permissionScope Manage Bookings - all permissions
861
- * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
862
- * @applicableIdentity APP
863
- * @applicableIdentity VISITOR
864
- * @fqn com.wixpress.bookings.availability.AvailabilityCalendar.CalculateMultiSlotAvailability
865
- */
866
- export declare function calculateMultiSlotAvailability(options?: CalculateMultiSlotAvailabilityOptions): Promise<NonNullablePaths<CalculateMultiSlotAvailabilityResponse, {
867
- [P in SlotAvailabilityNonNullablePaths]: `slots.${number}.${P}`;
868
- }[SlotAvailabilityNonNullablePaths]>>;
869
- export interface CalculateMultiSlotAvailabilityOptions {
870
- /** @maxLength 30 */
871
- from?: string;
872
- /** @maxLength 30 */
873
- to?: string;
874
- /** @maxLength 30 */
875
- timeZone?: string;
876
- /** 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 */
877
- bookable?: boolean | null;
878
- /**
879
- * 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
880
- * we will return slots for which `too_early_to_book` is same as on the request, regardless of `too_late_to_book`.
881
- */
882
- bookingPolicyViolations?: BookingPolicyViolations;
883
- /**
884
- * support filtering by location type, or by locationId. Other fields like `name` are ignored
885
- * must be set, and must have locationType. If locationType is `OWNER_BUSINESS`, must have location_id
886
- */
887
- location?: Location;
888
- /**
889
- * @minSize 1
890
- * @maxSize 6
891
- */
892
- slots?: RuleBasedConstraints[];
893
- /**
894
- * Maximum number of slots to load for each date. For example, if `slots_per_day` is set to `3`,
895
- * at most 3 available slots are returned for each day in the date range specified in the query's
896
- * `filter`.
897
- *
898
- * When a day has both bookable and non-bookable slots, bookable slots are returned first.
899
- * Non-bookable slots are returned according to the specified filters, after all
900
- * bookable slots are already included.
901
- */
902
- slotsPerDay?: number | null;
903
- cursorPaging?: CursorPaging;
904
- }
905
- export {};