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