@wix/auto_sdk_bookings_availability-calendar 1.0.128 → 1.0.129

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