@wix/bookings 1.0.297 → 1.0.299

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 (49) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +2 -1
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +2 -1
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +2 -1
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/src/bookings-availability-v2-time-slot.http.d.ts +238 -0
  11. package/build/cjs/src/bookings-availability-v2-time-slot.http.js +556 -0
  12. package/build/cjs/src/bookings-availability-v2-time-slot.http.js.map +1 -0
  13. package/build/cjs/src/bookings-availability-v2-time-slot.meta.d.ts +16 -0
  14. package/build/cjs/src/bookings-availability-v2-time-slot.meta.js +100 -0
  15. package/build/cjs/src/bookings-availability-v2-time-slot.meta.js.map +1 -0
  16. package/build/cjs/src/bookings-availability-v2-time-slot.public.d.ts +11 -0
  17. package/build/cjs/src/bookings-availability-v2-time-slot.public.js +32 -0
  18. package/build/cjs/src/bookings-availability-v2-time-slot.public.js.map +1 -0
  19. package/build/cjs/src/bookings-availability-v2-time-slot.types.d.ts +812 -0
  20. package/build/cjs/src/bookings-availability-v2-time-slot.types.js +14 -0
  21. package/build/cjs/src/bookings-availability-v2-time-slot.types.js.map +1 -0
  22. package/build/cjs/src/bookings-availability-v2-time-slot.universal.d.ts +1415 -0
  23. package/build/cjs/src/bookings-availability-v2-time-slot.universal.js +577 -0
  24. package/build/cjs/src/bookings-availability-v2-time-slot.universal.js.map +1 -0
  25. package/build/es/index.d.ts +1 -0
  26. package/build/es/index.js +1 -0
  27. package/build/es/index.js.map +1 -1
  28. package/build/es/index.typings.d.ts +1 -0
  29. package/build/es/index.typings.js +1 -0
  30. package/build/es/index.typings.js.map +1 -1
  31. package/build/es/meta.d.ts +1 -0
  32. package/build/es/meta.js +1 -0
  33. package/build/es/meta.js.map +1 -1
  34. package/build/es/src/bookings-availability-v2-time-slot.http.d.ts +238 -0
  35. package/build/es/src/bookings-availability-v2-time-slot.http.js +549 -0
  36. package/build/es/src/bookings-availability-v2-time-slot.http.js.map +1 -0
  37. package/build/es/src/bookings-availability-v2-time-slot.meta.d.ts +16 -0
  38. package/build/es/src/bookings-availability-v2-time-slot.meta.js +74 -0
  39. package/build/es/src/bookings-availability-v2-time-slot.meta.js.map +1 -0
  40. package/build/es/src/bookings-availability-v2-time-slot.public.d.ts +11 -0
  41. package/build/es/src/bookings-availability-v2-time-slot.public.js +24 -0
  42. package/build/es/src/bookings-availability-v2-time-slot.public.js.map +1 -0
  43. package/build/es/src/bookings-availability-v2-time-slot.types.d.ts +812 -0
  44. package/build/es/src/bookings-availability-v2-time-slot.types.js +11 -0
  45. package/build/es/src/bookings-availability-v2-time-slot.types.js.map +1 -0
  46. package/build/es/src/bookings-availability-v2-time-slot.universal.d.ts +1415 -0
  47. package/build/es/src/bookings-availability-v2-time-slot.universal.js +551 -0
  48. package/build/es/src/bookings-availability-v2-time-slot.universal.js.map +1 -0
  49. package/package.json +2 -2
@@ -0,0 +1,549 @@
1
+ import { serializer } from '@wix/metro-runtime/ambassador';
2
+ import { resolveUrl } from '@wix/metro-runtime';
3
+ const _getAvailabilityTimeSlotRequest = {};
4
+ const _getAvailabilityTimeSlotResponse = {};
5
+ const _getMultiServiceAvailabilityTimeSlotRequest = {};
6
+ const _getMultiServiceAvailabilityTimeSlotResponse = {};
7
+ const _listAvailabilityTimeSlotsRequest = {};
8
+ const _listAvailabilityTimeSlotsResponse = {};
9
+ const _listMultiServiceAvailabilityTimeSlotsRequest = {};
10
+ const _listMultiServiceAvailabilityTimeSlotsResponse = {};
11
+ function resolveComWixpressBookingsAvailabilityV2AvailabilityTimeSlotsUrl(opts) {
12
+ const domainToMappings = {
13
+ 'www.wixapis.com': [
14
+ {
15
+ srcPath: '/_api/service-availability/v2/time-slots',
16
+ destPath: '/v2/time-slots',
17
+ },
18
+ {
19
+ srcPath: '/_api/service-availability/v2/multi-service-time-slots',
20
+ destPath: '/v2/multi-service-time-slots',
21
+ },
22
+ {
23
+ srcPath: '/service-availability/v2/time-slots',
24
+ destPath: '/v2/time-slots',
25
+ },
26
+ {
27
+ srcPath: '/service-availability/v2/multi-service-time-slots',
28
+ destPath: '/v2/multi-service-time-slots',
29
+ },
30
+ ],
31
+ '*.dev.wix-code.com': [
32
+ {
33
+ srcPath: '/_api/service-availability/v2/time-slots',
34
+ destPath: '/v2/time-slots',
35
+ },
36
+ {
37
+ srcPath: '/_api/service-availability/v2/multi-service-time-slots',
38
+ destPath: '/v2/multi-service-time-slots',
39
+ },
40
+ {
41
+ srcPath: '/service-availability/v2/time-slots',
42
+ destPath: '/v2/time-slots',
43
+ },
44
+ {
45
+ srcPath: '/service-availability/v2/multi-service-time-slots',
46
+ destPath: '/v2/multi-service-time-slots',
47
+ },
48
+ ],
49
+ 'manage._base_domain_': [
50
+ {
51
+ srcPath: '/_api/service-availability/v2/time-slots',
52
+ destPath: '/v2/time-slots',
53
+ },
54
+ {
55
+ srcPath: '/_api/service-availability/v2/multi-service-time-slots',
56
+ destPath: '/v2/multi-service-time-slots',
57
+ },
58
+ {
59
+ srcPath: '/service-availability/v2/multi-service-time-slots',
60
+ destPath: '/v2/multi-service-time-slots',
61
+ },
62
+ {
63
+ srcPath: '/service-availability/v2/time-slots',
64
+ destPath: '/v2/time-slots',
65
+ },
66
+ ],
67
+ 'www._base_domain_': [
68
+ {
69
+ srcPath: '/_api/service-availability/v2/time-slots',
70
+ destPath: '/v2/time-slots',
71
+ },
72
+ {
73
+ srcPath: '/_api/service-availability/v2/multi-service-time-slots',
74
+ destPath: '/v2/multi-service-time-slots',
75
+ },
76
+ ],
77
+ _: [
78
+ {
79
+ srcPath: '/_api/service-availability/v2/time-slots',
80
+ destPath: '/v2/time-slots',
81
+ },
82
+ {
83
+ srcPath: '/_api/service-availability/v2/multi-service-time-slots',
84
+ destPath: '/v2/multi-service-time-slots',
85
+ },
86
+ ],
87
+ 'editor._base_domain_': [
88
+ {
89
+ srcPath: '/_api/service-availability/v2/multi-service-time-slots',
90
+ destPath: '/v2/multi-service-time-slots',
91
+ },
92
+ {
93
+ srcPath: '/_api/service-availability/v2/time-slots',
94
+ destPath: '/v2/time-slots',
95
+ },
96
+ ],
97
+ 'blocks._base_domain_': [
98
+ {
99
+ srcPath: '/_api/service-availability/v2/multi-service-time-slots',
100
+ destPath: '/v2/multi-service-time-slots',
101
+ },
102
+ {
103
+ srcPath: '/_api/service-availability/v2/time-slots',
104
+ destPath: '/v2/time-slots',
105
+ },
106
+ ],
107
+ 'create.editorx': [
108
+ {
109
+ srcPath: '/_api/service-availability/v2/multi-service-time-slots',
110
+ destPath: '/v2/multi-service-time-slots',
111
+ },
112
+ {
113
+ srcPath: '/_api/service-availability/v2/time-slots',
114
+ destPath: '/v2/time-slots',
115
+ },
116
+ ],
117
+ };
118
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
119
+ }
120
+ function resolveComWixpressBookingsAvailabilityV2MultiServiceAvailabilityTimeSlotsUrl(opts) {
121
+ const domainToMappings = {
122
+ 'www.wixapis.com': [
123
+ {
124
+ srcPath: '/_api/service-availability/v2/time-slots',
125
+ destPath: '/v2/time-slots',
126
+ },
127
+ {
128
+ srcPath: '/_api/service-availability/v2/multi-service-time-slots',
129
+ destPath: '/v2/multi-service-time-slots',
130
+ },
131
+ {
132
+ srcPath: '/service-availability/v2/time-slots',
133
+ destPath: '/v2/time-slots',
134
+ },
135
+ {
136
+ srcPath: '/service-availability/v2/multi-service-time-slots',
137
+ destPath: '/v2/multi-service-time-slots',
138
+ },
139
+ ],
140
+ '*.dev.wix-code.com': [
141
+ {
142
+ srcPath: '/_api/service-availability/v2/time-slots',
143
+ destPath: '/v2/time-slots',
144
+ },
145
+ {
146
+ srcPath: '/_api/service-availability/v2/multi-service-time-slots',
147
+ destPath: '/v2/multi-service-time-slots',
148
+ },
149
+ {
150
+ srcPath: '/service-availability/v2/time-slots',
151
+ destPath: '/v2/time-slots',
152
+ },
153
+ {
154
+ srcPath: '/service-availability/v2/multi-service-time-slots',
155
+ destPath: '/v2/multi-service-time-slots',
156
+ },
157
+ ],
158
+ 'manage._base_domain_': [
159
+ {
160
+ srcPath: '/_api/service-availability/v2/time-slots',
161
+ destPath: '/v2/time-slots',
162
+ },
163
+ {
164
+ srcPath: '/_api/service-availability/v2/multi-service-time-slots',
165
+ destPath: '/v2/multi-service-time-slots',
166
+ },
167
+ {
168
+ srcPath: '/service-availability/v2/multi-service-time-slots',
169
+ destPath: '/v2/multi-service-time-slots',
170
+ },
171
+ {
172
+ srcPath: '/service-availability/v2/time-slots',
173
+ destPath: '/v2/time-slots',
174
+ },
175
+ ],
176
+ 'www._base_domain_': [
177
+ {
178
+ srcPath: '/_api/service-availability/v2/time-slots',
179
+ destPath: '/v2/time-slots',
180
+ },
181
+ {
182
+ srcPath: '/_api/service-availability/v2/multi-service-time-slots',
183
+ destPath: '/v2/multi-service-time-slots',
184
+ },
185
+ ],
186
+ _: [
187
+ {
188
+ srcPath: '/_api/service-availability/v2/time-slots',
189
+ destPath: '/v2/time-slots',
190
+ },
191
+ {
192
+ srcPath: '/_api/service-availability/v2/multi-service-time-slots',
193
+ destPath: '/v2/multi-service-time-slots',
194
+ },
195
+ ],
196
+ 'editor._base_domain_': [
197
+ {
198
+ srcPath: '/_api/service-availability/v2/multi-service-time-slots',
199
+ destPath: '/v2/multi-service-time-slots',
200
+ },
201
+ {
202
+ srcPath: '/_api/service-availability/v2/time-slots',
203
+ destPath: '/v2/time-slots',
204
+ },
205
+ ],
206
+ 'blocks._base_domain_': [
207
+ {
208
+ srcPath: '/_api/service-availability/v2/multi-service-time-slots',
209
+ destPath: '/v2/multi-service-time-slots',
210
+ },
211
+ {
212
+ srcPath: '/_api/service-availability/v2/time-slots',
213
+ destPath: '/v2/time-slots',
214
+ },
215
+ ],
216
+ 'create.editorx': [
217
+ {
218
+ srcPath: '/_api/service-availability/v2/multi-service-time-slots',
219
+ destPath: '/v2/multi-service-time-slots',
220
+ },
221
+ {
222
+ srcPath: '/_api/service-availability/v2/time-slots',
223
+ destPath: '/v2/time-slots',
224
+ },
225
+ ],
226
+ };
227
+ return resolveUrl(Object.assign(opts, { domainToMappings }));
228
+ }
229
+ /**
230
+ * Retrieves a list of multiService `TimeSlot`'s that match the provided filters.
231
+ * <blockquote class="important">
232
+ * <p><strong>Important:</strong><br/>
233
+ * Currently supported only for services of type `APPOINTMENT`.
234
+ * </p>
235
+ * </blockquote>
236
+ *
237
+ * The request body __must__ include one of:
238
+ *
239
+ * + All of the following filters: `serviceId`, `fromLocalDate`, `toLocalDate`, `location`, and `timeZone`. You may add additional filters as you wish.
240
+ * + A `cursorPaging` with a valid `cursor` from previous response.
241
+ *
242
+ *
243
+ * Each [TimeSlot](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/availability-time-slots/time-slot-object) in response
244
+ * represents the availability of the given list of services in a specific location, within a given range of time.
245
+ *
246
+ * Each `TimeSlot`.`NestedTimeSlot` represents a single service from the given list. The order of the `NestedTimeSlots` is the same as the order
247
+ * of the given services in request.
248
+ *
249
+ * The first `NestedTimeSlot` has `localStartDate` within the given `fromLocalDate` and `toLocalDate` - exclusive,
250
+ * and each following `NestedTimeSlot` has a `localStartDate` that equals to the previous `NestedTimeSlot`'s `localEndDate`.
251
+ *
252
+ * > __Notes:__
253
+ * > + All nested time slots share the same location.
254
+ * > + You can pass up to 8 services in request.
255
+ *
256
+ * ### AvailableResources in response:
257
+ * <blockquote class="important">
258
+ * <p><strong>Important:</strong><br/>
259
+ * By default,
260
+ * if you don't specify `service`.`includeResourceTypeIds` or `service`.`resourceIds` filters in request,
261
+ * we return `TimeSlot`.`NestedTimeSlot`'s with an empty `AvailableResources`.
262
+ * </p>
263
+ * </blockquote>
264
+ *
265
+ * If you wish to get a list of available resources for a `TimeSlot`.`NestedTimeSlot` you should either:
266
+ * + provide `service`.`resourceIds` in request.
267
+ * + provide `service`.`includeResourceTypeIds` in request.
268
+ *
269
+ * > __Notes:__
270
+ * >
271
+ * > + In both cases the returned `TimeSlot`.`NestedTimeSlot`'s contains __up__ to 10 `AvailableResources` that match the provided filters.
272
+ * > Each `AvailableResources` contains __up__ to 10 available `resources` of the same type that match the provided filters.
273
+ * >
274
+ * > + If an `AvailableResources` has more available resources which are not listed within it,
275
+ * > we return `AvailableResources`.`hasMoreAvailableResources` as true.
276
+ * > + If you wish to get the full available resources list for all `NestedTimeSlot` of a specific `TimeSlot`,
277
+ * > you can 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).
278
+ *
279
+ *
280
+ * ### Availability VS Bookability:
281
+ * An available time slot is not necessarily bookable.
282
+ *
283
+ * The `bookable` field of a `TimeSlot` indicates whether the customer can book all of the of the services within the given time slot,
284
+ * at a specific period of time.
285
+ * 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).
286
+ *
287
+ * By default,
288
+ * + The response does not contains unavailable `TimeSlot`'s.
289
+ * For example,
290
+ * if there are no available resources to provide the service from `2024-01-30T14:30:00` to `2024-01-30T15:30:00`,
291
+ * we don't return `TimeSlot`'s with `localStartDate` within this range.
292
+ * + The response contains both `bookable` and `un-bookable` `TimeSlot`'s.
293
+ * For example,
294
+ * if one of the services has a booking policy which enforces booking the service up to 10 minutes before the session starts,
295
+ * we return `TimeSlot`'s with the violating `localStartDate` with `bookable` as false.
296
+ * If you want to list only __bookable__ `TimeSlots` you should pass `bookable` as true.
297
+ * + If booking one of the `NestedTimeSlot`'s violates one of the corresponding service's booking policies,
298
+ * the `TimeSlot` returns with `bookable` as false. There is no indication which service's policy was violated.
299
+ *
300
+ * <blockquote class="important">
301
+ * <p><strong>Important:</strong><br/>
302
+ * Because of DST, there are edge cases where certain times either do not exist or exist twice for a local time zone.
303
+ * Read about [DST Handling](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)
304
+ * </p>
305
+ * </blockquote>
306
+ *
307
+ *
308
+ * ### Pagination:
309
+ * You can specify how many `TimeSlot`'s will return in response by providing a `limit`
310
+ * for the `cursorPaging` in request.
311
+ *
312
+ * If there are more `TimeSlot`s that match the provided filters, we return a `cursorPagingMetaData`
313
+ * with `hasNext` = true and a `cursors`.`next` that points to the next page of results.
314
+ * In order to retrieve the next page of results, you should only provide `cursorPaging` with a limit and the cursor
315
+ * you got in previous call to `cursorPaging`.`cursor` in the request of the following call.
316
+ *
317
+ * By default,
318
+ * the response contains at most 1000 results.
319
+ * If there are more than 1000 results, we return a `cursorPagingMetadata` with
320
+ * a cursor for the next page of results, regardless of whether a `cursorPaging`
321
+ * was provided in request.
322
+ *
323
+ * #### ListAvailabilityTimeSlots runs with the following defaults:
324
+ * + `cursorPaging`.`limit` is 1000.
325
+ * + `localStartDate` is sorted in `ASC` order.
326
+ */
327
+ export function listMultiServiceAvailabilityTimeSlots(payload) {
328
+ const { toJSON: toReq, fromJSON: fromReq } = serializer(_listMultiServiceAvailabilityTimeSlotsRequest, {});
329
+ const { fromJSON: fromRes } = serializer(_listMultiServiceAvailabilityTimeSlotsResponse, {});
330
+ function __listMultiServiceAvailabilityTimeSlots({ host }) {
331
+ const serializedData = toReq(payload);
332
+ const metadata = {
333
+ entityFqdn: 'wix.bookings.availability.v2.time_slot',
334
+ method: 'POST',
335
+ methodFqn: 'com.wixpress.bookings.availability.v2.MultiServiceAvailabilityTimeSlots.ListMultiServiceAvailabilityTimeSlots',
336
+ url: resolveComWixpressBookingsAvailabilityV2MultiServiceAvailabilityTimeSlotsUrl({
337
+ protoPath: '/v2/multi-service-time-slots',
338
+ data: serializedData,
339
+ host,
340
+ }),
341
+ data: serializedData,
342
+ transformResponse: fromRes,
343
+ };
344
+ return metadata;
345
+ }
346
+ __listMultiServiceAvailabilityTimeSlots.fromReq = fromReq;
347
+ return __listMultiServiceAvailabilityTimeSlots;
348
+ }
349
+ /**
350
+ * Retrieves an available multiService `TimeSlot` that match the provided filters.
351
+ *
352
+ * Throws `SlotNotFound` if there is no such available time slot.
353
+ *
354
+ * <blockquote class="important">
355
+ * <p><strong>Important:</strong><br/>
356
+ * Currently supported only for services of type `APPOINTMENT`.
357
+ * </p>
358
+ * </blockquote>
359
+ *
360
+ * By default,
361
+ * if you don't provide a `service`.`includeResourceTypeIds` or `service`.`resourceIds` in request,
362
+ * we return for each `TimeSlot`.`NestedTimeSlot` all `AvailableResources` with all `AvailableResources`.`resources` which are available to provide
363
+ * the corresponding service within the time slot.
364
+ *
365
+ * If you specify `service`.`includeResourceTypeIds` or `service`.`resourceIds` in request,
366
+ * the returned `TimeSlot`.`NestedTimeSlot` for this service will contain only `AvailableResources` with at least one available resource
367
+ * which match the given resources filters,
368
+ * each contains all available resources out of those requested.
369
+ *
370
+ * + Notes:
371
+ * + All nested time slots share the same location.
372
+ * + You can pass up to 8 services.
373
+ */
374
+ export function getMultiServiceAvailabilityTimeSlot(payload) {
375
+ const { toJSON: toReq, fromJSON: fromReq } = serializer(_getMultiServiceAvailabilityTimeSlotRequest, {});
376
+ const { fromJSON: fromRes } = serializer(_getMultiServiceAvailabilityTimeSlotResponse, {});
377
+ function __getMultiServiceAvailabilityTimeSlot({ host }) {
378
+ const serializedData = toReq(payload);
379
+ const metadata = {
380
+ entityFqdn: 'wix.bookings.availability.v2.time_slot',
381
+ method: 'POST',
382
+ methodFqn: 'com.wixpress.bookings.availability.v2.MultiServiceAvailabilityTimeSlots.GetMultiServiceAvailabilityTimeSlot',
383
+ url: resolveComWixpressBookingsAvailabilityV2MultiServiceAvailabilityTimeSlotsUrl({
384
+ protoPath: '/v2/multi-service-time-slots/get',
385
+ data: serializedData,
386
+ host,
387
+ }),
388
+ data: serializedData,
389
+ transformResponse: fromRes,
390
+ };
391
+ return metadata;
392
+ }
393
+ __getMultiServiceAvailabilityTimeSlot.fromReq = fromReq;
394
+ return __getMultiServiceAvailabilityTimeSlot;
395
+ }
396
+ /**
397
+ * Retrieves a list of `TimeSlot`'s that match the provided filters.
398
+ *
399
+ * <blockquote class="important">
400
+ * <p><strong>Important:</strong><br/>
401
+ * Currently supported only for services of type `APPOINTMENT`.
402
+ * </p>
403
+ * </blockquote>
404
+ *
405
+ * The request body __must__ include one of:
406
+ *
407
+ * + All of the following filters: `serviceId`, `fromLocalDate`, `toLocalDate`, and `timeZone`. You may add additional filters as you wish.
408
+ * + A `cursorPaging` with a valid `cursor` from previous response.
409
+ *
410
+ * Each [TimeSlot](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/availability-time-slots/time-slot-object) in response
411
+ * represents the availability of the service in a specific location,
412
+ * and has a `localStartDate` within the range of the provided `fromLocalDate` and `toLocalDate` exclusive.
413
+ *
414
+ *
415
+ * ### AvailableResources in response:
416
+ * <blockquote class="important">
417
+ * <p><strong>Important:</strong><br/>
418
+ * By default,
419
+ * if you don't specify `includeResourceTypeIds` or `resourceIds` filters in request,
420
+ * we return `TimeSlot`'s with an empty `AvailableResources`.
421
+ * </p>
422
+ * </blockquote>
423
+ *
424
+ * If you wish to get a list of available resources for each `TimeSlot` you should either:
425
+ * + provide `resourceIds` in request.
426
+ * + provide `includeResourceTypeIds` in request.
427
+ *
428
+ * > __Notes:__
429
+ * >
430
+ * > + In both cases the returned `TimeSlot`'s contains __up__ to 10 `AvailableResources` that match the provided filters.
431
+ * > Each `AvailableResources` contains __up__ to 10 available `resources` of the same type that match the provided filters.
432
+ * >
433
+ * > + If an `AvailableResources` has more available resources which are not listed within it,
434
+ * > we return `AvailableResources`.`hasMoreAvailableResources` as true.
435
+ * > + If you wish to get the full available resources list for a specific `TimeSlot`,
436
+ * > you can call [GetAvailabilityTimeSlot](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/service-availability-time-slots/get-availability-time-slot).
437
+ *
438
+ *
439
+ * ### Availability VS Bookability:
440
+ * An available time slot is not necessarily bookable.
441
+ *
442
+ * The `bookable` field of a `TimeSlot` indicates whether a customer can book the service within the given time slot,
443
+ * at a specific period of time.
444
+ * Read more about [Availability VS Bookability](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/service-availability-time-slots/introduction#all-apis_wix-service-availability_service-availability-time-slots_introduction_availability-vs-bookability).
445
+ *
446
+ * By default,
447
+ * + The response does not contains unavailable `TimeSlot`'s.
448
+ * For example,
449
+ * if there are no available resources to provide the service from `2024-01-30T14:30:00` to `2024-01-30T15:30:00`,
450
+ * we don't return `TimeSlot`'s with `localStartDate` within this range.
451
+ * + The response contains both `bookable` and `un-bookable` `TimeSlot`'s.
452
+ * For example,
453
+ * if the service has a booking policy which enforces booking the service up to 10 minutes before the session starts,
454
+ * we return `TimeSlot`'s with the violating `localStartDate` with `bookable` as false.
455
+ * If you want to list only __bookable__ `TimeSlots` you should pass `bookable` as true.
456
+ *
457
+ * <blockquote class="important">
458
+ * <p><strong>Important:</strong><br/>
459
+ * Because of DST, there are edge cases where certain times either do not exist or exist twice for a local time zone.
460
+ * Read about [DST Handling](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/service-availability-time-slots/introduction#all-apis_wix-service-availability_service-availability-time-slots_introduction_daylight-saving-time-dst-handling)
461
+ * </p>
462
+ * </blockquote>
463
+ *
464
+ *
465
+ * ### Pagination:
466
+ * You can specify how many `TimeSlot`'s will return in response by providing a `limit`
467
+ * for the `cursorPaging` in request.
468
+ *
469
+ * If there are more `TimeSlot`s that match the provided filters, we return a `cursorPagingMetaData`
470
+ * with `hasNext` = true and a `cursors`.`next` that points to the next page of results.
471
+ * In order to retrieve the next page of results, you should only provide `cursorPaging` with a limit and the cursor
472
+ * you got in previous call to `cursorPaging`.`cursor` in the request of the following call.
473
+ *
474
+ * By default,
475
+ * the response contains at most 1000 results.
476
+ * If there are more than 1000 results, we return a `cursorPagingMetadata` with
477
+ * a cursor for the next page of results, regardless of whether a `cursorPaging`
478
+ * was provided in request.
479
+ *
480
+ * #### ListAvailabilityTimeSlots runs with the following defaults:
481
+ * + `cursorPaging`.`limit` is 1000.
482
+ * + `localStartDate` is sorted in `ASC` order.
483
+ */
484
+ export function listAvailabilityTimeSlots(payload) {
485
+ const { toJSON: toReq, fromJSON: fromReq } = serializer(_listAvailabilityTimeSlotsRequest, {});
486
+ const { fromJSON: fromRes } = serializer(_listAvailabilityTimeSlotsResponse, {});
487
+ function __listAvailabilityTimeSlots({ host }) {
488
+ const serializedData = toReq(payload);
489
+ const metadata = {
490
+ entityFqdn: 'wix.bookings.availability.v2.time_slot',
491
+ method: 'POST',
492
+ methodFqn: 'com.wixpress.bookings.availability.v2.AvailabilityTimeSlots.ListAvailabilityTimeSlots',
493
+ url: resolveComWixpressBookingsAvailabilityV2AvailabilityTimeSlotsUrl({
494
+ protoPath: '/v2/time-slots',
495
+ data: serializedData,
496
+ host,
497
+ }),
498
+ data: serializedData,
499
+ transformResponse: fromRes,
500
+ };
501
+ return metadata;
502
+ }
503
+ __listAvailabilityTimeSlots.fromReq = fromReq;
504
+ return __listAvailabilityTimeSlots;
505
+ }
506
+ /**
507
+ * Retrieves an available `TimeSlot` that match the provided filters.
508
+ *
509
+ * Throws `SlotNotFound` if there is no such available time slot.
510
+ *
511
+ * <blockquote class="important">
512
+ * <p><strong>Important:</strong><br/>
513
+ * Currently supported only for services of type `APPOINTMENT`.
514
+ * </p>
515
+ * </blockquote>
516
+ *
517
+ * By default,
518
+ * if you don't provide `includeResourceTypeIds` or `resourceIds` in request,
519
+ * we return all `AvailableResources` with all `AvailableResources`.`resources` which are available to provide
520
+ * the service within the time slot.
521
+ *
522
+ * If you specify `includeResourceTypeIds` or `resourceIds` in request,
523
+ * the returned `TimeSlot` will contain only `AvailableResources` with at least one available resource
524
+ * which match the given resources filters,
525
+ * each contains all available resources out of those requested.
526
+ */
527
+ export function getAvailabilityTimeSlot(payload) {
528
+ const { toJSON: toReq, fromJSON: fromReq } = serializer(_getAvailabilityTimeSlotRequest, {});
529
+ const { fromJSON: fromRes } = serializer(_getAvailabilityTimeSlotResponse, {});
530
+ function __getAvailabilityTimeSlot({ host }) {
531
+ const serializedData = toReq(payload);
532
+ const metadata = {
533
+ entityFqdn: 'wix.bookings.availability.v2.time_slot',
534
+ method: 'POST',
535
+ methodFqn: 'com.wixpress.bookings.availability.v2.AvailabilityTimeSlots.GetAvailabilityTimeSlot',
536
+ url: resolveComWixpressBookingsAvailabilityV2AvailabilityTimeSlotsUrl({
537
+ protoPath: '/v2/time-slots/get',
538
+ data: serializedData,
539
+ host,
540
+ }),
541
+ data: serializedData,
542
+ transformResponse: fromRes,
543
+ };
544
+ return metadata;
545
+ }
546
+ __getAvailabilityTimeSlot.fromReq = fromReq;
547
+ return __getAvailabilityTimeSlot;
548
+ }
549
+ //# sourceMappingURL=bookings-availability-v2-time-slot.http.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bookings-availability-v2-time-slot.http.js","sourceRoot":"","sources":["../../../src/bookings-availability-v2-time-slot.http.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAkBhD,MAAM,+BAA+B,GAAG,EAAE,CAAC;AAC3C,MAAM,gCAAgC,GAAG,EAAE,CAAC;AAC5C,MAAM,2CAA2C,GAAG,EAAE,CAAC;AACvD,MAAM,4CAA4C,GAAG,EAAE,CAAC;AACxD,MAAM,iCAAiC,GAAG,EAAE,CAAC;AAC7C,MAAM,kCAAkC,GAAG,EAAE,CAAC;AAC9C,MAAM,6CAA6C,GAAG,EAAE,CAAC;AACzD,MAAM,8CAA8C,GAAG,EAAE,CAAC;AAE1D,SAAS,gEAAgE,CACvE,IAA8C;IAE9C,MAA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2B,CAAC;AACrC,CAAC;AAED;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,uBAAuB,CACrC,OAAuC;IAKvC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CACrD,+BAA+B,EAC/B,EAAE,CACH,CAAC;IACF,MAAM,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,UAAU,CACtC,gCAAgC,EAChC,EAAE,CACH,CAAC;IAEF,SAAS,yBAAyB,CAAC,EAAE,IAAI,EAAO;QAC9C,MAAM,cAAc,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC;QACtC,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,wCAAwC;YACpD,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,qFAAqF;YACvF,GAAG,EAAE,gEAAgE,CAAC;gBACpE,SAAS,EAAE,oBAAoB;gBAC/B,IAAI,EAAE,cAAc;gBACpB,IAAI;aACL,CAAC;YACF,IAAI,EAAE,cAAc;YACpB,iBAAiB,EAAE,OAAO;SAC3B,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,yBAAyB,CAAC,OAAO,GAAG,OAAO,CAAC;IAE5C,OAAO,yBAAyB,CAAC;AACnC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import * as ambassadorWixBookingsAvailabilityV2TimeSlotTypes from './bookings-availability-v2-time-slot.types';
2
+ import * as ambassadorWixBookingsAvailabilityV2TimeSlotUniversalTypes from './bookings-availability-v2-time-slot.universal';
3
+ export declare type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
4
+ getUrl: (context: any) => string;
5
+ httpMethod: K;
6
+ path: string;
7
+ pathParams: M;
8
+ __requestType: T;
9
+ __originalRequestType: S;
10
+ __responseType: Q;
11
+ __originalResponseType: R;
12
+ };
13
+ export declare function listMultiServiceAvailabilityTimeSlots(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixBookingsAvailabilityV2TimeSlotUniversalTypes.ListMultiServiceAvailabilityTimeSlotsRequest, ambassadorWixBookingsAvailabilityV2TimeSlotTypes.ListMultiServiceAvailabilityTimeSlotsRequest, ambassadorWixBookingsAvailabilityV2TimeSlotUniversalTypes.ListMultiServiceAvailabilityTimeSlotsResponse & ambassadorWixBookingsAvailabilityV2TimeSlotUniversalTypes.ListMultiServiceAvailabilityTimeSlotsResponseNonNullableFields, ambassadorWixBookingsAvailabilityV2TimeSlotTypes.ListMultiServiceAvailabilityTimeSlotsResponse & ambassadorWixBookingsAvailabilityV2TimeSlotTypes.ListMultiServiceAvailabilityTimeSlotsResponseNonNullableFields>;
14
+ export declare function getMultiServiceAvailabilityTimeSlot(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixBookingsAvailabilityV2TimeSlotUniversalTypes.GetMultiServiceAvailabilityTimeSlotRequest, ambassadorWixBookingsAvailabilityV2TimeSlotTypes.GetMultiServiceAvailabilityTimeSlotRequest, ambassadorWixBookingsAvailabilityV2TimeSlotUniversalTypes.GetMultiServiceAvailabilityTimeSlotResponse & ambassadorWixBookingsAvailabilityV2TimeSlotUniversalTypes.GetMultiServiceAvailabilityTimeSlotResponseNonNullableFields, ambassadorWixBookingsAvailabilityV2TimeSlotTypes.GetMultiServiceAvailabilityTimeSlotResponse & ambassadorWixBookingsAvailabilityV2TimeSlotTypes.GetMultiServiceAvailabilityTimeSlotResponseNonNullableFields>;
15
+ export declare function listAvailabilityTimeSlots(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixBookingsAvailabilityV2TimeSlotUniversalTypes.ListAvailabilityTimeSlotsRequest, ambassadorWixBookingsAvailabilityV2TimeSlotTypes.ListAvailabilityTimeSlotsRequest, ambassadorWixBookingsAvailabilityV2TimeSlotUniversalTypes.ListAvailabilityTimeSlotsResponse & ambassadorWixBookingsAvailabilityV2TimeSlotUniversalTypes.ListAvailabilityTimeSlotsResponseNonNullableFields, ambassadorWixBookingsAvailabilityV2TimeSlotTypes.ListAvailabilityTimeSlotsResponse & ambassadorWixBookingsAvailabilityV2TimeSlotTypes.ListAvailabilityTimeSlotsResponseNonNullableFields>;
16
+ export declare function getAvailabilityTimeSlot(): __PublicMethodMetaInfo<'POST', {}, ambassadorWixBookingsAvailabilityV2TimeSlotUniversalTypes.GetAvailabilityTimeSlotRequest, ambassadorWixBookingsAvailabilityV2TimeSlotTypes.GetAvailabilityTimeSlotRequest, ambassadorWixBookingsAvailabilityV2TimeSlotUniversalTypes.GetAvailabilityTimeSlotResponse & ambassadorWixBookingsAvailabilityV2TimeSlotUniversalTypes.GetAvailabilityTimeSlotResponseNonNullableFields, ambassadorWixBookingsAvailabilityV2TimeSlotTypes.GetAvailabilityTimeSlotResponse & ambassadorWixBookingsAvailabilityV2TimeSlotTypes.GetAvailabilityTimeSlotResponseNonNullableFields>;
@@ -0,0 +1,74 @@
1
+ import * as ambassadorWixBookingsAvailabilityV2TimeSlot from './bookings-availability-v2-time-slot.http';
2
+ export function listMultiServiceAvailabilityTimeSlots() {
3
+ const payload = {};
4
+ const getRequestOptions = ambassadorWixBookingsAvailabilityV2TimeSlot.listMultiServiceAvailabilityTimeSlots(payload);
5
+ const getUrl = (context) => {
6
+ const { url } = getRequestOptions(context);
7
+ return url;
8
+ };
9
+ return {
10
+ getUrl,
11
+ httpMethod: 'POST',
12
+ path: '/v2/multi-service-time-slots',
13
+ pathParams: {},
14
+ __requestType: null,
15
+ __originalRequestType: null,
16
+ __responseType: null,
17
+ __originalResponseType: null,
18
+ };
19
+ }
20
+ export function getMultiServiceAvailabilityTimeSlot() {
21
+ const payload = {};
22
+ const getRequestOptions = ambassadorWixBookingsAvailabilityV2TimeSlot.getMultiServiceAvailabilityTimeSlot(payload);
23
+ const getUrl = (context) => {
24
+ const { url } = getRequestOptions(context);
25
+ return url;
26
+ };
27
+ return {
28
+ getUrl,
29
+ httpMethod: 'POST',
30
+ path: '/v2/multi-service-time-slots/get',
31
+ pathParams: {},
32
+ __requestType: null,
33
+ __originalRequestType: null,
34
+ __responseType: null,
35
+ __originalResponseType: null,
36
+ };
37
+ }
38
+ export function listAvailabilityTimeSlots() {
39
+ const payload = {};
40
+ const getRequestOptions = ambassadorWixBookingsAvailabilityV2TimeSlot.listAvailabilityTimeSlots(payload);
41
+ const getUrl = (context) => {
42
+ const { url } = getRequestOptions(context);
43
+ return url;
44
+ };
45
+ return {
46
+ getUrl,
47
+ httpMethod: 'POST',
48
+ path: '/v2/time-slots',
49
+ pathParams: {},
50
+ __requestType: null,
51
+ __originalRequestType: null,
52
+ __responseType: null,
53
+ __originalResponseType: null,
54
+ };
55
+ }
56
+ export function getAvailabilityTimeSlot() {
57
+ const payload = {};
58
+ const getRequestOptions = ambassadorWixBookingsAvailabilityV2TimeSlot.getAvailabilityTimeSlot(payload);
59
+ const getUrl = (context) => {
60
+ const { url } = getRequestOptions(context);
61
+ return url;
62
+ };
63
+ return {
64
+ getUrl,
65
+ httpMethod: 'POST',
66
+ path: '/v2/time-slots/get',
67
+ pathParams: {},
68
+ __requestType: null,
69
+ __originalRequestType: null,
70
+ __responseType: null,
71
+ __originalResponseType: null,
72
+ };
73
+ }
74
+ //# sourceMappingURL=bookings-availability-v2-time-slot.meta.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bookings-availability-v2-time-slot.meta.js","sourceRoot":"","sources":["../../../src/bookings-availability-v2-time-slot.meta.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,2CAA2C,MAAM,2CAA2C,CAAC;AAsBzG,MAAM,UAAU,qCAAqC;IAUnD,MAAM,OAAO,GAAG,EAAS,CAAC;IAE1B,MAAM,iBAAiB,GACrB,2CAA2C,CAAC,qCAAqC,CAC/E,OAAO,CACR,CAAC;IAEJ,MAAM,MAAM,GAAG,CAAC,OAAY,EAAU,EAAE;QACtC,MAAM,EAAE,GAAG,EAAE,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC3C,OAAO,GAAI,CAAC;IACd,CAAC,CAAC;IAEF,OAAO;Q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