@wix/auto_sdk_bookings_event-time-slots 1.0.0

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 (111) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.context.d.ts +6 -0
  11. package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.context.js +10 -0
  12. package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.context.js.map +1 -0
  13. package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.http.d.ts +18 -0
  14. package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.http.js +209 -0
  15. package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.http.js.map +1 -0
  16. package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.meta.d.ts +16 -0
  17. package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.meta.js +66 -0
  18. package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.meta.js.map +1 -0
  19. package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.public.d.ts +32 -0
  20. package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.public.js +20 -0
  21. package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.public.js.map +1 -0
  22. package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.types.d.ts +885 -0
  23. package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.types.js +14 -0
  24. package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.types.js.map +1 -0
  25. package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.universal.d.ts +1026 -0
  26. package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.universal.js +174 -0
  27. package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.context.d.ts +6 -0
  39. package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.context.js +6 -0
  40. package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.context.js.map +1 -0
  41. package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.http.d.ts +18 -0
  42. package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.http.js +204 -0
  43. package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.http.js.map +1 -0
  44. package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.meta.d.ts +16 -0
  45. package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.meta.js +38 -0
  46. package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.meta.js.map +1 -0
  47. package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.public.d.ts +32 -0
  48. package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.public.js +14 -0
  49. package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.public.js.map +1 -0
  50. package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.types.d.ts +885 -0
  51. package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.types.js +11 -0
  52. package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.types.js.map +1 -0
  53. package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.universal.d.ts +1026 -0
  54. package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.universal.js +146 -0
  55. package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.context.d.ts +6 -0
  66. package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.context.js +10 -0
  67. package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.context.js.map +1 -0
  68. package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.http.d.ts +18 -0
  69. package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.http.js +209 -0
  70. package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.http.js.map +1 -0
  71. package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.meta.d.ts +16 -0
  72. package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.meta.js +66 -0
  73. package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.meta.js.map +1 -0
  74. package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.public.d.ts +32 -0
  75. package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.public.js +20 -0
  76. package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.public.js.map +1 -0
  77. package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.types.d.ts +885 -0
  78. package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.types.js +14 -0
  79. package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.types.js.map +1 -0
  80. package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.universal.d.ts +1026 -0
  81. package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.universal.js +174 -0
  82. package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.context.d.ts +6 -0
  93. package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.context.js +6 -0
  94. package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.context.js.map +1 -0
  95. package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.http.d.ts +18 -0
  96. package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.http.js +204 -0
  97. package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.http.js.map +1 -0
  98. package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.meta.d.ts +16 -0
  99. package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.meta.js +38 -0
  100. package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.meta.js.map +1 -0
  101. package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.public.d.ts +32 -0
  102. package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.public.js +14 -0
  103. package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.public.js.map +1 -0
  104. package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.types.d.ts +885 -0
  105. package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.types.js +11 -0
  106. package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.types.js.map +1 -0
  107. package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.universal.d.ts +1026 -0
  108. package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.universal.js +146 -0
  109. package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,1026 @@
1
+ import { NonNullablePaths } from '@wix/sdk-types';
2
+ /**
3
+ * The `TimeSlot` object represents the availability information
4
+ * for an `Appointment` service's specific slot, including:
5
+ *
6
+ * 1. Whether the slot is bookable for the given service?
7
+ *
8
+ * 2. In what location the service is available for this slot?
9
+ *
10
+ * 3. Which available resources can provide the service for this slot?
11
+ *
12
+ * 4. Does booking the slot for the service violates any of the service booking policies?
13
+ *
14
+ * 5. What is the total capacity and remaining capacity of the service at the time of the calculation of the `TimeSlot`?
15
+ *
16
+ * > __Note:__
17
+ * > When the `TimeSlot` has a non empty `NestedTimeSlots`, it represents the availability information
18
+ * > for a given list of `Appointment` services within a specific time slot.
19
+ */
20
+ export interface TimeSlot {
21
+ /**
22
+ * Service ID.
23
+ *
24
+ * > Not returned from `MultiServiceAvailabilityTimeSlots` API calls.
25
+ * > Instead, each nested time slot has its own serviceId.
26
+ * @format GUID
27
+ */
28
+ serviceId?: string | null;
29
+ /**
30
+ * Local start date of the time slot in ISO-8601 format.
31
+ * For example, "2024-01-30T13:30:00".
32
+ * @format LOCAL_DATE_TIME
33
+ */
34
+ localStartDate?: string | null;
35
+ /**
36
+ * Local end date of the time slot in ISO-8601 format.
37
+ * For example, "2024-01-30T14:30:00".
38
+ * @format LOCAL_DATE_TIME
39
+ */
40
+ localEndDate?: string | null;
41
+ /**
42
+ * Whether the slot is bookable according to the service's booking policies.
43
+ *
44
+ * If booking this time slot does not violates any of the service's booking policies,
45
+ * the returned value is `true`. Otherwise, returns `false`.
46
+ */
47
+ bookable?: boolean | null;
48
+ /** The geographic location of the slot. */
49
+ location?: Location;
50
+ /** The event information if the time slot is an event based slot. */
51
+ eventInfo?: EventInfo;
52
+ /**
53
+ * Total number of spots for the slot.
54
+ * @min 1
55
+ * @max 1000
56
+ */
57
+ totalCapacity?: number | null;
58
+ /**
59
+ * Remaining number of spots for the slot.
60
+ * For example, for an appointment service with total capacity of 1 spot and one booked spot, the remaining capacity will be 0.
61
+ * @max 1000
62
+ */
63
+ remainingCapacity?: number | null;
64
+ /**
65
+ * Number of spots in the slot that are available for booking.
66
+ * This is calculated as the remaining capacity minus the spots reserved for the waiting list.
67
+ */
68
+ bookableCapacity?: number | null;
69
+ /**
70
+ * Indicators for booking policy violations for the slot.
71
+ *
72
+ * Each nested field is checked on its own. i.e. if `tooEarlyToBook` is defined and `bookOnlineDisabled` is not defined
73
+ * we will return also slots for which `tooEarlyToBook` is same as on the request, regardless of `bookOnlineDisabled`.
74
+ */
75
+ bookingPolicyViolations?: BookingPolicyViolations;
76
+ /**
77
+ * List of `AvailableResources` for the time slot.
78
+ * Each `AvailableResources` contains information about available resources of the same type.
79
+ *
80
+ * > Not returned from `MultiServiceAvailabilityTimeSlots` API calls.
81
+ * > Instead, each nested time slot has its own available resources.
82
+ */
83
+ availableResources?: AvailableResources[];
84
+ /**
85
+ * > Nested time slots.
86
+ * > Returned only from `MultiServiceAvailabilityTimeSlots` API calls.
87
+ * @maxSize 8
88
+ */
89
+ nestedTimeSlots?: NestedTimeSlot[];
90
+ /** Reasons why the time slot is not available for booking. */
91
+ nonBookableReasons?: NonBookableReasons;
92
+ }
93
+ export interface Location {
94
+ /**
95
+ * Business Location ID. Present only if the location is a business location.
96
+ * @format GUID
97
+ */
98
+ _id?: string | null;
99
+ /** The location name. */
100
+ name?: string | null;
101
+ /** A string representation for the full address of the location. */
102
+ formattedAddress?: string | null;
103
+ /**
104
+ * The type of location:
105
+ * - `CUSTOM`: The location is specific to this service, and is not derived from the business location.
106
+ * - `BUSINESS`: A business location, either the default business address, or locations defined for the business by the Business Info.
107
+ * - `CUSTOMER`: The location is determined by the customer and is not set up beforehand.
108
+ */
109
+ locationType?: LocationType;
110
+ }
111
+ export declare enum LocationType {
112
+ UNKNOWN_LOCATION_TYPE = "UNKNOWN_LOCATION_TYPE",
113
+ /** A business location, either the default business address, or locations defined for the business by the Business Info. */
114
+ BUSINESS = "BUSINESS",
115
+ /** The location is unique to this service and isn't defined as one of the business locations. */
116
+ CUSTOM = "CUSTOM",
117
+ /** The location can be determined by the customer and is not set up beforehand. */
118
+ CUSTOMER = "CUSTOMER"
119
+ }
120
+ /** relevant for event based slots, and not for availability based slots */
121
+ export interface EventInfo {
122
+ /**
123
+ * The event ID.
124
+ * @minLength 36
125
+ * @maxLength 250
126
+ */
127
+ eventId?: string | null;
128
+ /** Waiting list details for the event, if enabled in the service's booking policy. */
129
+ waitingList?: WaitingList;
130
+ }
131
+ export interface WaitingList {
132
+ /**
133
+ * Total number of spots in the waiting list.
134
+ * @min 1
135
+ */
136
+ totalCapacity?: number | null;
137
+ /**
138
+ * Number of remaining spots in the waiting list.
139
+ * For example, a yoga event with a capacity of `10` and `3` registrants will have a `remainingCapacity` of `7`.
140
+ */
141
+ remainingCapacity?: number | null;
142
+ }
143
+ export interface BookingPolicyViolations {
144
+ /** Bookings policy violation. Too early to book this slot. */
145
+ tooEarlyToBook?: boolean | null;
146
+ /** The earliest time at which booking for this slot is allowed, in UTC format (`YYYY-MM-DDThh:mm:ss.sssZ`). */
147
+ earliestBookingDate?: Date | null;
148
+ /** Bookings policy violation. Too late to book this slot. */
149
+ tooLateToBook?: boolean | null;
150
+ /** Bookings policy violation. Online booking is disabled for the `TimeSlot` service. */
151
+ bookOnlineDisabled?: boolean | null;
152
+ }
153
+ export interface AvailableResources {
154
+ /**
155
+ * Resource type ID.
156
+ * @format GUID
157
+ */
158
+ resourceTypeId?: string | null;
159
+ /**
160
+ * Available resources for the time slot.
161
+ *
162
+ * + When returned from `ListAvailabilityTimeSlots`, empty by default.
163
+ * + + If you provided `includeResourceTypeIds` or `resourceIds` in request,
164
+ * contains __up__ to 10 available resources out of those provided.
165
+ *
166
+ * + When returned from `GetAvailabilityTimeSlots`, contains all available resources by default.
167
+ * + + If you provided `includeResourceTypeIds` or `resourceIds` in request,
168
+ * contains all of the available resources out of those provided.
169
+ *
170
+ *
171
+ * > + When returned from `ListMultiServiceAvailabilityTimeSlots`, empty by default.
172
+ * > + + If you provided `includeResourceTypeIds` or `resourceIds` in request,
173
+ * > contains __up__ to 10 available resources out of those provided.
174
+ *
175
+ * > + When returned from `GetMultiServiceAvailabilityTimeSlots`, contains all available resources by default.
176
+ * > + + If you provided `includeResourceTypeIds` or `resourceIds` in request,
177
+ * > contains all of the available resources out of those provided.
178
+ */
179
+ resources?: Resource[];
180
+ /**
181
+ * Whether there are more available resources for the slot that are not listed in `resources` due to size limitations.
182
+ * @readonly
183
+ */
184
+ hasMoreAvailableResources?: boolean | null;
185
+ }
186
+ export interface Resource {
187
+ /**
188
+ * Resource ID.
189
+ * @format GUID
190
+ */
191
+ _id?: string;
192
+ /**
193
+ * Resource name.
194
+ * @minLength 1
195
+ */
196
+ name?: string | null;
197
+ }
198
+ export interface NestedTimeSlot {
199
+ /**
200
+ * Service ID of the nested time slot.
201
+ * @format GUID
202
+ */
203
+ serviceId?: string;
204
+ /**
205
+ * Local start date of the nested time slot in ISO-8601 format.
206
+ * For example, "2024-01-30T13:30:00".
207
+ * @format LOCAL_DATE_TIME
208
+ */
209
+ localStartDate?: string;
210
+ /**
211
+ * Local end date of the nested time slot in ISO-8601 format.
212
+ * For example, "2024-01-30T14:30:00".
213
+ * @format LOCAL_DATE_TIME
214
+ */
215
+ localEndDate?: string;
216
+ /**
217
+ * List of `AvailableResources` for the nested time slot.
218
+ * Each `AvailableResources` contains information about available resources of the same type.
219
+ * @maxSize 10
220
+ */
221
+ availableResources?: AvailableResources[];
222
+ }
223
+ export interface NonBookableReasons {
224
+ /** The slot is fully booked with no remaining capacity. */
225
+ noRemainingCapacity?: boolean | null;
226
+ /** Booking this slot would violate the service's booking policy. */
227
+ violatesBookingPolicy?: boolean | null;
228
+ /** The slot is reserved for the waiting list and not available for direct booking. */
229
+ reservedForWaitingList?: boolean | null;
230
+ }
231
+ export interface ListMultiServiceAvailabilityTimeSlotsRequest {
232
+ /**
233
+ * Services for which the multiService time slots are being returned for.
234
+ * Each service contains its own resources filters within.
235
+ *
236
+ * MinSize: `2`.
237
+ * MaxSize: `8`.
238
+ *
239
+ * Required, unless `cursorPaging`.`cursor` is provided.
240
+ * @maxSize 8
241
+ */
242
+ services?: Service[];
243
+ /**
244
+ * Lower boundary for `localStartDate` to include in response, in ISO-8601 format.
245
+ * For example, "2024-01-30T13:30:00".
246
+ *
247
+ * Each returned `TimeSlot` in response has a `localStartDate`
248
+ * within the provided `fromLocalDate` and `toLocalDate` exclusive.
249
+ *
250
+ * Required, unless `cursorPaging`.`cursor` is provided.
251
+ * @format LOCAL_DATE_TIME
252
+ */
253
+ fromLocalDate?: string | null;
254
+ /**
255
+ * Upper boundary for `localStartDate` to include in response, in ISO-8601 format.
256
+ * For example, "2024-01-30T14:30:00".
257
+ *
258
+ * Each returned `TimeSlot` in response has a `localStartDate`
259
+ * within the provided `fromLocalDate` and `toLocalDate` exclusive.
260
+ *
261
+ * Required, unless `cursorPaging`.`cursor` is provided.
262
+ * @format LOCAL_DATE_TIME
263
+ */
264
+ toLocalDate?: string | null;
265
+ /**
266
+ * Time zone, in IANA time zone format.
267
+ *
268
+ * Required, unless `cursorPaging`.`cursor` is provided.
269
+ * @minLength 1
270
+ * @maxLength 150
271
+ */
272
+ timeZone?: string | null;
273
+ /**
274
+ * Location for which the multiService TimeSlots are being returned for.
275
+ *
276
+ * You can specify location or location type for which the TimeSlots will be returned for.
277
+ * If locationType is `BUSINESS`, you __must__ provide a locationId.
278
+ *
279
+ * <blockquote class="warning">
280
+ * <p><strong>warning:</strong><br/>
281
+ * Supports filtering by location type, or by location ID. </br>
282
+ * Other fields like <code class="grey-background">name</code> are ignored.</p>
283
+ * </blockquote>
284
+ *
285
+ * Required, unless `cursorPaging`.`cursor` is provided.
286
+ */
287
+ location?: Location;
288
+ /**
289
+ * Whether the `TimeSlot` is bookable according to all of the services booking policies.
290
+ *
291
+ * If booking any of the `TimeSlot`.`NestedTimeSlot`s violates any of its services bookings policies,
292
+ * returns as `false`. Otherwise, returns as `true`.
293
+ *
294
+ * > __Note:__
295
+ * > A `TimeSlot` with a `NestedTimeSlot` that doesn't meet its service's bookings policies will be returned with `bookable` = false,
296
+ * > while a `TimeSlot` with no available resources will not be returned at all.
297
+ */
298
+ bookable?: boolean | null;
299
+ /**
300
+ * Indicators for service's booking policy violations for booking the `TimeSlot`.
301
+ *
302
+ * A bookable time slot must not violate any policy,
303
+ * therefor, this filter is only relevant when `bookable` filter is false.
304
+ *
305
+ * Each nested field is checked on all `NestedTimeSlot`s. For example, if only one of the `NestedTimeSlot`'s
306
+ * has a service with `tooEarlyToBook` same as in the request, we return the `TimeSlot` regardless of whether
307
+ * the other `NestedTimeSlots` has the same `tooEarlyToBook` as in request.
308
+ *
309
+ * Each nested field is checked on its own. For example, if `tooEarlyToBook` is defined and `bookOnlineDisabled` is not defined
310
+ * we return slots for which `tooEarlyToBook` is same as on the request, regardless of `bookOnlineDisabled`.
311
+ */
312
+ bookingPolicyViolations?: BookingPolicyViolations;
313
+ /**
314
+ * Maximum number of slots to load for each day. For example, if `timeSlotsPerDay` is set to `3`,
315
+ * we return at most 3 available TimeSlots for each day within the date range specified in request.
316
+ *
317
+ * By default,
318
+ * if `bookable` filter was not specified,
319
+ * and a day has both `bookable` and `un-bookable` slots, `bookable` slots are returned first.
320
+ *
321
+ * If the number of `bookable` slots is less than the requested `timeSlotsPerDay`,
322
+ * `un-bookable` slots will be returned according to the specified filters.
323
+ */
324
+ timeSlotsPerDay?: number | null;
325
+ /**
326
+ * CursorPaging.
327
+ *
328
+ * Enables you to fetch TimeSlots in smaller, more manageable chunks
329
+ * by setting a limit on the number of results returned in response.
330
+ * This is useful in order to enhance efficiency of data retrieval and reduce load on both the client and server.
331
+ *
332
+ * If there are more results than the specified limit, the response will contain a `cursorPagingMetaData`
333
+ * with a cursor pointing to next page of results. In order to fetch the next page of results, you should pass the
334
+ * returned cursor to the next call as `cursorPaging`.`cursor`.
335
+ *
336
+ * For the first call, you should only specify the `limit` for the results page.
337
+ * For each following call, you should only pass the previous returned cursor as `cursorPaging`.`cursor`
338
+ * the `cursorPaging`.`limit`. You may pass a different `limit`.
339
+ * No need to specify any additional parameters.
340
+ *
341
+ * <blockquote class="important">
342
+ * <p><strong>Important:</strong><br/>
343
+ * If you only provide a <code class="grey-background">cursorPaging</code>. <code class="grey-background">cursor</code>,
344
+ * the response will contain the default size of results which is `1000`.
345
+ * </p>
346
+ * </blockquote>
347
+ */
348
+ cursorPaging?: CursorPaging;
349
+ }
350
+ export interface Service {
351
+ /**
352
+ * Service ID.
353
+ * @format GUID
354
+ */
355
+ serviceId?: string;
356
+ /**
357
+ * Resources to include in response.
358
+ * @format GUID
359
+ * @maxSize 135
360
+ */
361
+ resourceIds?: string[];
362
+ /**
363
+ * The resource type ID's to include in returned time slots.
364
+ * This is in addition to the specifically requested resources.
365
+ *
366
+ * <blockquote class="important">
367
+ * Currently supported only for Staff Member resource type.
368
+ * Staff Member type ID: 1cd44cf8-756f-41c3-bd90-3e2ffcaf1155
369
+ * </blockquote>
370
+ * @format GUID
371
+ * @maxSize 100
372
+ */
373
+ includeResourceTypeIds?: string[];
374
+ /**
375
+ * Selected customer choices.
376
+ * If specified, the selected choices will be used to calculate service configuration.
377
+ * If not specified, the service default configuration will be used.
378
+ * Enforcing this field is the responsibility of the SPI implementer, and not by the Availability API.
379
+ */
380
+ customerChoices?: V2CustomerChoices;
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 CursorPaging {
404
+ /**
405
+ * Number of results to load.
406
+ *
407
+ * Default: `1000`.
408
+ * Max: `1000`.
409
+ * @max 1000
410
+ */
411
+ limit?: number | null;
412
+ /**
413
+ * Pointer to the next or previous page in the list of results.
414
+ *
415
+ * You can get the relevant cursor token
416
+ * from the `pagingMetadata` object in the previous call's response.
417
+ * Not relevant for the first request.
418
+ */
419
+ cursor?: string | null;
420
+ }
421
+ export interface ListMultiServiceAvailabilityTimeSlotsResponse {
422
+ /**
423
+ * Time slots.
424
+ * @maxSize 1000
425
+ */
426
+ timeSlots?: TimeSlot[];
427
+ /**
428
+ * Time zone, in IANA time zone format.
429
+ * Shared for all TimeSlots in response.
430
+ * @minLength 1
431
+ * @maxLength 150
432
+ */
433
+ timeZone?: string | null;
434
+ /**
435
+ * CursorPagingMetaData.
436
+ * Contains information about the next page of results.
437
+ *
438
+ * By default,
439
+ * if there are more than 1000 results,
440
+ * the response will contain a `cursorPagingMetaData` with a cursor to the next page of results.
441
+ *
442
+ * <blockquote class="important">
443
+ * <p><strong>Important:</strong><br/>
444
+ * <code class="grey-background">count</code> is not supported.</p>
445
+ * </blockquote>
446
+ */
447
+ cursorPagingMetadata?: CursorPagingMetadata;
448
+ }
449
+ export interface CursorPagingMetadata {
450
+ /** Offset that was requested. */
451
+ cursors?: Cursors;
452
+ /**
453
+ * Indicates if there are more results after the current page.
454
+ * If `true`, another page of results can be retrieved.
455
+ * If `false`, this is the last page.
456
+ */
457
+ hasNext?: boolean | null;
458
+ }
459
+ export interface Cursors {
460
+ /** Cursor pointing to next page in the list of results. */
461
+ next?: string | null;
462
+ /** Cursor pointing to previous page in the list of results. */
463
+ prev?: string | null;
464
+ }
465
+ export interface GetMultiServiceAvailabilityTimeSlotRequest {
466
+ /**
467
+ * Services for which the multiService TimeSlots are being returned for.
468
+ * Each service contains its own resources filters within.
469
+ *
470
+ * MinSize: 2.
471
+ * MaxSize: 8.
472
+ * @minSize 2
473
+ * @maxSize 8
474
+ */
475
+ services?: Service[];
476
+ /**
477
+ * Local start date of the time slot, in ISO-8601 format.
478
+ * For example, "2024-01-30T13:30:00".
479
+ * @format LOCAL_DATE_TIME
480
+ */
481
+ localStartDate?: string;
482
+ /**
483
+ * Local end date of the time slot, in ISO-8601 format.
484
+ * For example, "2024-01-30T14:30:00".
485
+ * @format LOCAL_DATE_TIME
486
+ */
487
+ localEndDate?: string;
488
+ /**
489
+ * Time zone, in IANA time zone format.
490
+ * @minLength 1
491
+ * @maxLength 150
492
+ */
493
+ timeZone?: string | null;
494
+ /**
495
+ * The location of the time slot.
496
+ *
497
+ * You must provide a specific `locationType`.
498
+ * If locationType is `BUSINESS`, you __must__ also provide a `locationId`.
499
+ *
500
+ * <blockquote class="warning">
501
+ * <p>Supports filtering by location type, or by location ID.
502
+ * Other fields like <code class="grey-background">name</code> are ignored.</p>
503
+ * </blockquote>
504
+ */
505
+ location?: Location;
506
+ }
507
+ export interface GetMultiServiceAvailabilityTimeSlotResponse {
508
+ /** Time slot. */
509
+ timeSlot?: TimeSlot;
510
+ /**
511
+ * The time zone, in IANA time zone format.
512
+ * @minLength 1
513
+ * @maxLength 150
514
+ */
515
+ timeZone?: string | null;
516
+ }
517
+ export interface ListAvailabilityTimeSlotsRequest {
518
+ /**
519
+ * Service ID for which the time slots are being returned for.
520
+ * Currently supported only for services of type `APPOINTMENT`.
521
+ *
522
+ * Required, unless `cursorPaging`.`cursor` is provided.
523
+ * @format GUID
524
+ */
525
+ serviceId?: string | null;
526
+ /**
527
+ * Lower boundary for `localStartDate` to include in response, in ISO-8601 format.
528
+ * For example, "2024-01-30T13:30:00".
529
+ *
530
+ * Each returned `TimeSlot` in response has a `localStartDate`
531
+ * within the provided `fromLocalDate` and `toLocalDate` exclusive.
532
+ *
533
+ * Required, unless `cursorPaging`.`cursor` is provided.
534
+ * @format LOCAL_DATE_TIME
535
+ */
536
+ fromLocalDate?: string | null;
537
+ /**
538
+ * Upper boundary for `localStartDate` to include in response, in ISO-8601 format.
539
+ * For example, "2024-01-30T14:30:00".
540
+ *
541
+ * Each returned `TimeSlot` in response has a `localStartDate`
542
+ * within the provided `fromLocalDate` and `toLocalDate` exclusive.
543
+ *
544
+ * Required, unless `cursorPaging`.`cursor` is provided.
545
+ * @format LOCAL_DATE_TIME
546
+ */
547
+ toLocalDate?: string | null;
548
+ /**
549
+ * Time zone, in IANA time zone format.
550
+ *
551
+ * Required, unless `cursorPaging`.`cursor` is provided.
552
+ * @minLength 1
553
+ * @maxLength 150
554
+ */
555
+ timeZone?: string | null;
556
+ /**
557
+ * Locations to include in response.
558
+ *
559
+ * By default,
560
+ * if no locations are provided,
561
+ * the response contains TimeSlots for all locations where the service is available.
562
+ *
563
+ * You can specify locations or location types for which the time slots will be returned for.
564
+ * If locationType is `BUSINESS`, you __must__ provide a locationId.
565
+ *
566
+ * <blockquote class="warning">
567
+ * <p><strong>warning:</strong><br/>
568
+ * Supports filtering by location type, or by location ID. </br>
569
+ * Other fields like <code class="grey-background">name</code> are ignored.</p>
570
+ * </blockquote>
571
+ * @maxSize 5
572
+ */
573
+ locations?: Location[];
574
+ /**
575
+ * Resources to include in response.
576
+ *
577
+ * If specified,
578
+ * the returned TimeSlots will contain __up__ to 10 available resources out of the provided list.
579
+ * Otherwise, the returned TimeSlots returns with an empty `AvailableResources`.
580
+ * @format GUID
581
+ * @maxSize 135
582
+ * @deprecated
583
+ */
584
+ resourceIds?: string[];
585
+ /**
586
+ * Resource type ID's to include in response, this is in addition to the requested `resourceIds`.
587
+ *
588
+ * If specified in request, the returned TimeSlots will contain __up__ to 10 `AvailableResources` with `ResourceTypeId`
589
+ * out of those specified, each contains __up__ to 10 available resources of this type.
590
+ * @format GUID
591
+ * @maxSize 100
592
+ */
593
+ includeResourceTypeIds?: string[];
594
+ /**
595
+ * Whether the `TimeSlot` is bookable according to the service's booking policies.
596
+ *
597
+ * If booking this `TimeSlot` does not violates any of the service's booking policies,
598
+ * returns as `true`. Otherwise, returns as `false`.
599
+ *
600
+ * > __Note:__
601
+ * > A time slot that doesn't meet the service's bookings policies will be returned with `bookable` = false,
602
+ * > while a time slot with no available resources will not be returned at all.
603
+ */
604
+ bookable?: boolean | null;
605
+ /**
606
+ * Indicators for service's booking policy violations for booking the `TimeSlot`.
607
+ *
608
+ * A bookable time slot must not violate any policy,
609
+ * therefor, this filter is only relevant when `bookable` filter is false.
610
+ *
611
+ * Each nested field is checked on its own. i.e. if `tooEarlyToBook` is defined and `bookOnlineDisabled` is not defined
612
+ * we return slots for which `tooEarlyToBook` is same as on the request, regardless of `bookOnlineDisabled`.
613
+ */
614
+ bookingPolicyViolations?: BookingPolicyViolations;
615
+ /**
616
+ * Maximum number of slots to load for each day. For example, if `timeSlotsPerDay` is set to `3`,
617
+ * we return at most 3 available TimeSlots for each day within the date range specified in request.
618
+ *
619
+ * By default,
620
+ * if `bookable` filter was not specified,
621
+ * and a day has both `bookable` and `un-bookable` slots, `bookable` slots are returned first.
622
+ *
623
+ * If the number of `bookable` slots is less than the requested `timeSlotsPerDay`,
624
+ * `un-bookable` slots will be returned according to the specified filters.
625
+ */
626
+ timeSlotsPerDay?: number | null;
627
+ /**
628
+ * CursorPaging.
629
+ *
630
+ * Enables you to fetch results in smaller, more manageable chunks
631
+ * by setting a limit on the number of results returned in response.
632
+ * This is useful in order to enhance efficiency of data retrieval and reduce load on both the client and server.
633
+ *
634
+ * If there are more results than the specified limit, the response will contain a `cursorPagingMetaData`
635
+ * with a cursor pointing to next page of results. In order to fetch the next page of results, you should pass the
636
+ * returned cursor to the next call as `cursorPaging`.`cursor`.
637
+ *
638
+ * For the first call, you should only specify the `limit` for the results page.
639
+ * For each following call, you should only pass `cursorPaging`.`cursor` with the returned cursor from previous call, and
640
+ * a `cursorPaging`.`limit`.
641
+ * No need to specify any additional parameters.
642
+ *
643
+ * <blockquote class="important">
644
+ * <p><strong>Important:</strong><br/>
645
+ * If you only provide a <code class="grey-background">cursorPaging</code>. <code class="grey-background">cursor</code>,
646
+ * the response will contain the default size of results which is `1000`.
647
+ * </p>
648
+ * </blockquote>
649
+ */
650
+ cursorPaging?: CursorPaging;
651
+ /**
652
+ * resources filter
653
+ * If specified, only time slots with these resources will be returned.
654
+ * @maxSize 3
655
+ */
656
+ resourceTypes?: ResourceType[];
657
+ }
658
+ /**
659
+ * Selected customer choices.
660
+ * These choices are selected by the customer during the booking flow and can be utilized to calculate the corresponding service's configuration properties.
661
+ */
662
+ export interface CustomerChoices {
663
+ /**
664
+ * The selected customer duration in minutes.
665
+ * Min: `1 minute`
666
+ * Max: `44639 minutes` (30 days, 23 hours, and 59 minutes)
667
+ * @min 1
668
+ * @max 44639
669
+ */
670
+ durationInMinutes?: number | null;
671
+ /**
672
+ * The selected add-ons IDs.
673
+ * Max: Derived from max amount of Add-On groups * max amount of Add-Ons per group.
674
+ * @format GUID
675
+ * @maxSize 21
676
+ */
677
+ addOnIds?: string[] | null;
678
+ }
679
+ export interface ResourceType {
680
+ /**
681
+ * Resource type ID.
682
+ * @format GUID
683
+ */
684
+ resourceTypeId?: string | null;
685
+ /**
686
+ * Resource IDs.
687
+ * The response will contain only slots that have at least one of the specified resources.
688
+ * @format GUID
689
+ * @minSize 1
690
+ * @maxSize 135
691
+ */
692
+ resourceIds?: string[] | null;
693
+ }
694
+ export interface ListAvailabilityTimeSlotsResponse {
695
+ /**
696
+ * Time slots.
697
+ * @maxSize 1000
698
+ */
699
+ timeSlots?: TimeSlot[];
700
+ /**
701
+ * Time zone, in IANA time zone format.
702
+ * Shared for all TimeSlots in response.
703
+ * @minLength 1
704
+ * @maxLength 150
705
+ */
706
+ timeZone?: string | null;
707
+ /**
708
+ * CursorPagingMetaData.
709
+ * Contains information about the next page of results.
710
+ *
711
+ * By default,
712
+ * if there are more than 1000 results,
713
+ * the response will contain a `cursorPagingMetaData` with a cursor to the next page of results.
714
+ *
715
+ * <blockquote class="important">
716
+ * <p><strong>Important:</strong><br/>
717
+ * <code class="grey-background">count</code> is not supported.</p>
718
+ * </blockquote>
719
+ */
720
+ cursorPagingMetadata?: CursorPagingMetadata;
721
+ }
722
+ export interface GetAvailabilityTimeSlotRequest {
723
+ /**
724
+ * Service ID of the time slot.
725
+ * Currently supported only for services of type `APPOINTMENT`.
726
+ * @format GUID
727
+ */
728
+ serviceId?: string;
729
+ /**
730
+ * Local start date of the time slot, in ISO-8601 format.
731
+ * For example, "2024-01-30T13:30:00".
732
+ * @format LOCAL_DATE_TIME
733
+ */
734
+ localStartDate?: string;
735
+ /**
736
+ * Local end date of the time slot, in ISO-8601 format.
737
+ * For example, "2024-01-30T14:30:00".
738
+ * @format LOCAL_DATE_TIME
739
+ */
740
+ localEndDate?: string;
741
+ /**
742
+ * Time zone, in IANA time zone format.
743
+ * @minLength 1
744
+ * @maxLength 150
745
+ */
746
+ timeZone?: string | null;
747
+ /**
748
+ * The location of the time slot.
749
+ *
750
+ * You must provide a specific `locationType`.
751
+ * If locationType is `BUSINESS`, you __must__ also provide a `locationId`.
752
+ *
753
+ * <blockquote class="warning">
754
+ * <p>Supports filtering by location type, or by location ID.
755
+ * Other fields like <code class="grey-background">name</code> are ignored.</p>
756
+ * </blockquote>
757
+ */
758
+ location?: Location;
759
+ /**
760
+ * Resources to include in response.
761
+ *
762
+ * If specified,
763
+ * the returned `TimeSlot` contains only the available resources out of provided list.
764
+ * Otherwise, the returned `TimeSlot` returned with all possible `AvailableResources`.
765
+ * @format GUID
766
+ * @maxSize 135
767
+ */
768
+ resourceIds?: string[];
769
+ /**
770
+ * Resource type IDs to include in response, this is in addition to the requested `resourceIds`.
771
+ *
772
+ * If specified in request, the returned `TimeSlot` contains only the `AvailableResources` with `ResourceTypeId`
773
+ * out of those specified, each contains all the available resources of this type.
774
+ * @format GUID
775
+ * @maxSize 100
776
+ */
777
+ includeResourceTypeIds?: string[];
778
+ }
779
+ export interface GetAvailabilityTimeSlotResponse {
780
+ /** Time slot. */
781
+ timeSlot?: TimeSlot;
782
+ /**
783
+ * Time zone, in IANA time zone format.
784
+ * @minLength 1
785
+ * @maxLength 150
786
+ */
787
+ timeZone?: string | null;
788
+ }
789
+ export interface ListEventTimeSlotsRequest {
790
+ /**
791
+ * Local start date for which event time slots are returned, in ISO-8601 format.
792
+ * E.g., "2024-01-30T13:30:00".
793
+ * Required, unless `cursorPaging` is provided.
794
+ * @format LOCAL_DATE_TIME
795
+ */
796
+ fromLocalDate: string | null;
797
+ /**
798
+ * Local end date for which event time slots are returned, in ISO-8601 format.
799
+ * E.g., "2024-01-30T13:30:00".
800
+ * Required, unless `cursorPaging` is provided.
801
+ * @format LOCAL_DATE_TIME
802
+ */
803
+ toLocalDate?: string | null;
804
+ /**
805
+ * Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).
806
+ * For example, `America/New_York`.
807
+ *
808
+ * Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
809
+ * @maxLength 100
810
+ */
811
+ timeZone?: string | null;
812
+ /**
813
+ * Optional service IDs to filter by.
814
+ * If not provided, time slots for all services are returned.
815
+ * @format GUID
816
+ * @maxSize 100
817
+ */
818
+ serviceIds?: string[] | null;
819
+ /**
820
+ * Whether to filter bookable slots only.
821
+ * A bookable slot is a slot that has remaining capacity and also satisfies the booking policy.
822
+ * Default false: Only bookable slots are returned.
823
+ */
824
+ includeNonBookable?: boolean | null;
825
+ /**
826
+ * Filter event time slots by the minimum bookable capacity.
827
+ * @min 1
828
+ */
829
+ minBookableCapacity?: number | null;
830
+ /**
831
+ * Optional filter to apply to the events. E.g., resource, location, etc.
832
+ * See the Events API [Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/supported-filters-and-sorting) for more information.
833
+ */
834
+ eventFilter?: Record<string, any> | null;
835
+ /**
836
+ * The maximum number of time slots to return for each day.
837
+ * For example, if `maxSlotsPerDay` is set to `1`, at most 1 available slot is returned for each day.
838
+ * When a day has both bookable and non-bookable slots, bookable slots are returned first.
839
+ * If `maxSlotsPerDay` is provided, `toLocalDate` must also be provided and must be at most 1 month after `fromLocalDate`.
840
+ * @min 1
841
+ * @max 1
842
+ */
843
+ maxSlotsPerDay?: number | null;
844
+ /** Cursor to retrieve the next page of results. */
845
+ cursorPaging?: CursorPaging;
846
+ }
847
+ export interface ListEventTimeSlotsResponse {
848
+ /** Retrieved time slots matching the specified filters. */
849
+ timeSlots?: TimeSlot[];
850
+ /**
851
+ * The time slots time zone.
852
+ * Either provided explicitly or default to the business time zone.
853
+ * @minLength 1
854
+ * @maxLength 150
855
+ */
856
+ timeZone?: string | null;
857
+ /** Paging metadata. */
858
+ pagingMetadata?: CursorPagingMetadata;
859
+ }
860
+ export interface GetEventTimeSlotRequest {
861
+ /**
862
+ * The event ID.
863
+ * @minLength 36
864
+ * @maxLength 250
865
+ */
866
+ eventId: string | null;
867
+ /**
868
+ * Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).
869
+ * For example, `America/New_York`.
870
+ *
871
+ * Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
872
+ * @maxLength 100
873
+ */
874
+ timeZone?: string | null;
875
+ }
876
+ export interface GetEventTimeSlotResponse {
877
+ /** The time slot. */
878
+ timeSlot?: TimeSlot;
879
+ /**
880
+ * The time slot time zone.
881
+ * Either provided explicitly or default to the business time zone.
882
+ * @minLength 1
883
+ * @maxLength 150
884
+ */
885
+ timeZone?: string | null;
886
+ }
887
+ type TimeSlotNonNullablePaths = `location.locationType` | `availableResources` | `nestedTimeSlots` | `nestedTimeSlots.${number}.serviceId` | `nestedTimeSlots.${number}.localStartDate` | `nestedTimeSlots.${number}.localEndDate`;
888
+ /**
889
+ * Retrieves event time slots based on specified filters.
890
+ *
891
+ * Event time slots are predefined events that customers can book, subject to capacity and booking policies.
892
+ * By default, the Bookings app provides the events (classes) and the bookings policy.
893
+ *
894
+ * `ListEventTimeSlots` runs with these defaults, which you can override:
895
+ * - `providerId` is the Bookings app ID.
896
+ * - `timeZone` is the business time zone.
897
+ * - `cursorPaging.limit` is `50`.
898
+ * - Both bookable and non-bookable time slots are returned.
899
+ *
900
+ * Time slots are always sorted by their start time in ascending order.
901
+ * @public
902
+ * @documentationMaturity preview
903
+ * @requiredField options.fromLocalDate
904
+ * @permissionId BOOKINGS.AVAILABILITY_READ
905
+ * @permissionScope Manage Stores
906
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
907
+ * @permissionScope Read Bookings - Public Data
908
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
909
+ * @permissionScope Manage Bookings Services and Settings
910
+ * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
911
+ * @permissionScope Manage Bookings
912
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
913
+ * @permissionScope Read Bookings - Including Participants
914
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
915
+ * @permissionScope Read Bookings - all read permissions
916
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
917
+ * @permissionScope Read Bookings Calendar Availability
918
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR
919
+ * @permissionScope Manage Bookings - all permissions
920
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
921
+ * @applicableIdentity APP
922
+ * @applicableIdentity VISITOR
923
+ * @fqn com.wixpress.bookings.availability.v2.EventTimeSlots.ListEventTimeSlots
924
+ */
925
+ export declare function listEventTimeSlots(options?: NonNullablePaths<ListEventTimeSlotsOptions, `fromLocalDate`>): Promise<NonNullablePaths<ListEventTimeSlotsResponse, {
926
+ [P in TimeSlotNonNullablePaths]: `timeSlots.${number}.${P}`;
927
+ }[TimeSlotNonNullablePaths]>>;
928
+ export interface ListEventTimeSlotsOptions {
929
+ /**
930
+ * Local start date for which event time slots are returned, in ISO-8601 format.
931
+ * E.g., "2024-01-30T13:30:00".
932
+ * Required, unless `cursorPaging` is provided.
933
+ * @format LOCAL_DATE_TIME
934
+ */
935
+ fromLocalDate: string | null;
936
+ /**
937
+ * Local end date for which event time slots are returned, in ISO-8601 format.
938
+ * E.g., "2024-01-30T13:30:00".
939
+ * Required, unless `cursorPaging` is provided.
940
+ * @format LOCAL_DATE_TIME
941
+ */
942
+ toLocalDate?: string | null;
943
+ /**
944
+ * Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).
945
+ * For example, `America/New_York`.
946
+ *
947
+ * Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
948
+ * @maxLength 100
949
+ */
950
+ timeZone?: string | null;
951
+ /**
952
+ * Optional service IDs to filter by.
953
+ * If not provided, time slots for all services are returned.
954
+ * @format GUID
955
+ * @maxSize 100
956
+ */
957
+ serviceIds?: string[] | null;
958
+ /**
959
+ * Whether to filter bookable slots only.
960
+ * A bookable slot is a slot that has remaining capacity and also satisfies the booking policy.
961
+ * Default false: Only bookable slots are returned.
962
+ */
963
+ includeNonBookable?: boolean | null;
964
+ /**
965
+ * Filter event time slots by the minimum bookable capacity.
966
+ * @min 1
967
+ */
968
+ minBookableCapacity?: number | null;
969
+ /**
970
+ * Optional filter to apply to the events. E.g., resource, location, etc.
971
+ * See the Events API [Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/supported-filters-and-sorting) for more information.
972
+ */
973
+ eventFilter?: Record<string, any> | null;
974
+ /**
975
+ * The maximum number of time slots to return for each day.
976
+ * For example, if `maxSlotsPerDay` is set to `1`, at most 1 available slot is returned for each day.
977
+ * When a day has both bookable and non-bookable slots, bookable slots are returned first.
978
+ * If `maxSlotsPerDay` is provided, `toLocalDate` must also be provided and must be at most 1 month after `fromLocalDate`.
979
+ * @min 1
980
+ * @max 1
981
+ */
982
+ maxSlotsPerDay?: number | null;
983
+ /** Cursor to retrieve the next page of results. */
984
+ cursorPaging?: CursorPaging;
985
+ }
986
+ /**
987
+ * Retrieves the details of a specific event time slot based on the provided event ID.
988
+ * @param eventId - The event ID.
989
+ * @public
990
+ * @documentationMaturity preview
991
+ * @requiredField eventId
992
+ * @permissionId BOOKINGS.AVAILABILITY_READ
993
+ * @permissionScope Manage Stores
994
+ * @permissionScopeId SCOPE.STORES.MANAGE-STORES
995
+ * @permissionScope Read Bookings - Public Data
996
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
997
+ * @permissionScope Manage Bookings Services and Settings
998
+ * @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
999
+ * @permissionScope Manage Bookings
1000
+ * @permissionScopeId SCOPE.DC-BOOKINGS.MANAGE-BOOKINGS
1001
+ * @permissionScope Read Bookings - Including Participants
1002
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
1003
+ * @permissionScope Read Bookings - all read permissions
1004
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
1005
+ * @permissionScope Read Bookings Calendar Availability
1006
+ * @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR
1007
+ * @permissionScope Manage Bookings - all permissions
1008
+ * @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
1009
+ * @applicableIdentity APP
1010
+ * @applicableIdentity VISITOR
1011
+ * @fqn com.wixpress.bookings.availability.v2.EventTimeSlots.GetEventTimeSlot
1012
+ */
1013
+ export declare function getEventTimeSlot(eventId: string, options?: GetEventTimeSlotOptions): Promise<NonNullablePaths<GetEventTimeSlotResponse, {
1014
+ [P in TimeSlotNonNullablePaths]: `timeSlot.${P}`;
1015
+ }[TimeSlotNonNullablePaths]>>;
1016
+ export interface GetEventTimeSlotOptions {
1017
+ /**
1018
+ * Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).
1019
+ * For example, `America/New_York`.
1020
+ *
1021
+ * Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
1022
+ * @maxLength 100
1023
+ */
1024
+ timeZone?: string | null;
1025
+ }
1026
+ export {};