@wix/bookings 1.0.301 → 1.0.303
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.
- package/build/cjs/src/bookings-availability-v2-time-slot.http.d.ts +92 -107
- package/build/cjs/src/bookings-availability-v2-time-slot.http.js +92 -107
- package/build/cjs/src/bookings-availability-v2-time-slot.http.js.map +1 -1
- package/build/cjs/src/bookings-availability-v2-time-slot.types.d.ts +91 -108
- package/build/cjs/src/bookings-availability-v2-time-slot.types.js.map +1 -1
- package/build/cjs/src/bookings-availability-v2-time-slot.universal.d.ts +260 -284
- package/build/cjs/src/bookings-availability-v2-time-slot.universal.js +94 -109
- package/build/cjs/src/bookings-availability-v2-time-slot.universal.js.map +1 -1
- package/build/es/src/bookings-availability-v2-time-slot.http.d.ts +92 -107
- package/build/es/src/bookings-availability-v2-time-slot.http.js +92 -107
- package/build/es/src/bookings-availability-v2-time-slot.http.js.map +1 -1
- package/build/es/src/bookings-availability-v2-time-slot.types.d.ts +91 -108
- package/build/es/src/bookings-availability-v2-time-slot.types.js.map +1 -1
- package/build/es/src/bookings-availability-v2-time-slot.universal.d.ts +260 -284
- package/build/es/src/bookings-availability-v2-time-slot.universal.js +94 -109
- package/build/es/src/bookings-availability-v2-time-slot.universal.js.map +1 -1
- package/package.json +2 -7
|
@@ -65,102 +65,83 @@ const _listAvailabilityTimeSlotsResponse = {};
|
|
|
65
65
|
const _listMultiServiceAvailabilityTimeSlotsRequest = {};
|
|
66
66
|
const _listMultiServiceAvailabilityTimeSlotsResponse = {};
|
|
67
67
|
/**
|
|
68
|
-
* Retrieves a list of multiService `TimeSlot`
|
|
68
|
+
* Retrieves a list of multiService `TimeSlot`s that match the provided filters.
|
|
69
|
+
*
|
|
69
70
|
* <blockquote class="important">
|
|
70
71
|
* <p><strong>Important:</strong><br/>
|
|
71
|
-
* Currently supported only for services of type
|
|
72
|
-
* </p>
|
|
72
|
+
* Currently supported only for services of type <code class="grey-background">APPOINTMENT</code>.</p>
|
|
73
73
|
* </blockquote>
|
|
74
74
|
*
|
|
75
|
-
* The request body __must__ include
|
|
76
|
-
*
|
|
77
|
-
* + All of the following filters: `serviceId`, `fromLocalDate`, `toLocalDate`, `location`, and `timeZone`. You may add additional filters as you wish.
|
|
75
|
+
* The request body __must__ include either:
|
|
76
|
+
* + All of the following filters: `service`.`serviceId`, `fromLocalDate`, `toLocalDate`, `location`, and `timeZone`. You may add additional filters as you wish.
|
|
78
77
|
* + A `cursorPaging` with a valid `cursor` from previous response.
|
|
79
78
|
*
|
|
80
79
|
*
|
|
81
80
|
* Each [TimeSlot](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/availability-time-slots/time-slot-object) in response
|
|
82
|
-
* represents the availability of the given
|
|
81
|
+
* represents the availability of the given sequence of services in a specific order, location, and within a given range of time.
|
|
83
82
|
*
|
|
84
83
|
* Each `TimeSlot`.`NestedTimeSlot` represents a single service from the given list. The order of the `NestedTimeSlots` is the same as the order
|
|
85
84
|
* of the given services in request.
|
|
86
|
-
*
|
|
87
|
-
* The first `NestedTimeSlot` has `localStartDate` within the given `fromLocalDate` and `toLocalDate` - exclusive,
|
|
85
|
+
* The first `NestedTimeSlot` has `localStartDate` within the given `fromLocalDate` and `toLocalDate` exclusive,
|
|
88
86
|
* and each following `NestedTimeSlot` has a `localStartDate` that equals to the previous `NestedTimeSlot`'s `localEndDate`.
|
|
89
87
|
*
|
|
88
|
+
* By default,
|
|
89
|
+
* the response contains at most 1000 results.
|
|
90
|
+
* If there are more than 1000 results, we return a `cursorPagingMetadata` with
|
|
91
|
+
* a cursor for the next page of results, regardless of whether a `cursorPaging`
|
|
92
|
+
* was provided in request.
|
|
93
|
+
*
|
|
90
94
|
* > __Notes:__
|
|
91
95
|
* > + All nested time slots share the same location.
|
|
92
96
|
* > + You can pass up to 8 services in request.
|
|
93
97
|
*
|
|
94
98
|
* ### AvailableResources in response:
|
|
99
|
+
* The `TimeSlot`.`NestedTimeSlot`'s `AvailableResources` contains information about the resources that are available to provide the service
|
|
100
|
+
* within the `NestedTimeSlot` range of time. Each `AvailableResources` contains information about available resources of the same type.
|
|
101
|
+
*
|
|
95
102
|
* <blockquote class="important">
|
|
96
103
|
* <p><strong>Important:</strong><br/>
|
|
97
104
|
* By default,
|
|
98
|
-
* if you don't specify
|
|
99
|
-
*
|
|
105
|
+
* if you don't specify <code class="grey-background">service</code>.<code class="grey-background">includeResourceTypeIds</code>
|
|
106
|
+
* or <code class="grey-background">service</code>.<code class="grey-background">resourceIds</code> filters in request,
|
|
107
|
+
* we return TimeSlots with <code class="grey-background">NestedTimeSlot</code>s with an empty <code class="grey-background">AvailableResources</code>.
|
|
108
|
+
* <br/><strong>Note:</strong><br/> Not specifying resources filters can be handy in case you want to avoid large response in flows that only
|
|
109
|
+
* 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)
|
|
110
|
+
* is an example for such flow.
|
|
100
111
|
* </p>
|
|
101
112
|
* </blockquote>
|
|
102
113
|
*
|
|
114
|
+
*
|
|
103
115
|
* If you wish to get a list of available resources for a `TimeSlot`.`NestedTimeSlot` you should either:
|
|
104
116
|
* + provide `service`.`resourceIds` in request.
|
|
105
117
|
* + provide `service`.`includeResourceTypeIds` in request.
|
|
106
118
|
*
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
*
|
|
110
|
-
*
|
|
111
|
-
* >
|
|
112
|
-
* > + If an `AvailableResources` has more available resources which are not listed within it,
|
|
113
|
-
* > we return `AvailableResources`.`hasMoreAvailableResources` as true.
|
|
114
|
-
* > + If you wish to get the full available resources list for all `NestedTimeSlot` of a specific `TimeSlot`,
|
|
115
|
-
* > 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).
|
|
116
|
-
*
|
|
119
|
+
* __Notes:__
|
|
120
|
+
* + 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.
|
|
121
|
+
* + If an `AvailableResources` has more available resources which are not listed within it, we return `AvailableResources`.`hasMoreAvailableResources` as true.
|
|
122
|
+
* + 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).
|
|
117
123
|
*
|
|
118
|
-
* ### Availability VS Bookability:
|
|
119
|
-
* An available time slot is not necessarily bookable.
|
|
120
124
|
*
|
|
125
|
+
* ### Availability VS Bookability
|
|
126
|
+
* An `available` time slot is not necessarily `bookable`.
|
|
121
127
|
* The `bookable` field of a `TimeSlot` indicates whether the customer can book all of the of the services within the given time slot,
|
|
122
128
|
* at a specific period of time.
|
|
123
129
|
* 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).
|
|
124
130
|
*
|
|
125
131
|
* By default,
|
|
126
|
-
* + The response does not contains unavailable `
|
|
127
|
-
* For example,
|
|
128
|
-
*
|
|
129
|
-
* we don't return `TimeSlot`'s with `localStartDate` within this range.
|
|
130
|
-
* + The response contains both `bookable` and `un-bookable` `TimeSlot`'s.
|
|
131
|
-
* For example,
|
|
132
|
-
* if one of the services has a booking policy which enforces booking the service up to 10 minutes before the session starts,
|
|
133
|
-
* we return `TimeSlot`'s with the violating `localStartDate` with `bookable` as false.
|
|
134
|
-
* If you want to list only __bookable__ `TimeSlots` you should pass `bookable` as true.
|
|
135
|
-
* + If booking one of the `NestedTimeSlot`'s violates one of the corresponding service's booking policies,
|
|
136
|
-
* the `TimeSlot` returns with `bookable` as false. There is no indication which service's policy was violated.
|
|
132
|
+
* + 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.
|
|
133
|
+
* + 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`.
|
|
134
|
+
* + 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.
|
|
137
135
|
*
|
|
138
136
|
* <blockquote class="important">
|
|
139
|
-
* <p><strong>Important:</strong
|
|
137
|
+
* <p><strong>Important:</strong>
|
|
140
138
|
* Because of DST, there are edge cases where certain times either do not exist or exist twice for a local time zone.
|
|
141
|
-
* Read about
|
|
142
|
-
* </p>
|
|
139
|
+
* 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>
|
|
143
140
|
* </blockquote>
|
|
144
141
|
*
|
|
145
|
-
*
|
|
146
|
-
* ### Pagination:
|
|
147
|
-
* You can specify how many `TimeSlot`'s will return in response by providing a `limit`
|
|
148
|
-
* for the `cursorPaging` in request.
|
|
149
|
-
*
|
|
150
|
-
* If there are more `TimeSlot`s that match the provided filters, we return a `cursorPagingMetaData`
|
|
151
|
-
* with `hasNext` = true and a `cursors`.`next` that points to the next page of results.
|
|
152
|
-
* In order to retrieve the next page of results, you should only provide `cursorPaging` with a limit and the cursor
|
|
153
|
-
* you got in previous call to `cursorPaging`.`cursor` in the request of the following call.
|
|
154
|
-
*
|
|
155
|
-
* By default,
|
|
156
|
-
* the response contains at most 1000 results.
|
|
157
|
-
* If there are more than 1000 results, we return a `cursorPagingMetadata` with
|
|
158
|
-
* a cursor for the next page of results, regardless of whether a `cursorPaging`
|
|
159
|
-
* was provided in request.
|
|
160
|
-
*
|
|
161
|
-
* #### ListAvailabilityTimeSlots runs with the following defaults:
|
|
162
|
-
* + `cursorPaging`.`limit` is 1000.
|
|
142
|
+
* ### ListAvailabilityTimeSlots runs with the following defaults:
|
|
163
143
|
* + `localStartDate` is sorted in `ASC` order.
|
|
144
|
+
* + `cursorPaging`.`limit` is `1000`.
|
|
164
145
|
* @public
|
|
165
146
|
* @documentationMaturity preview
|
|
166
147
|
* @permissionScope Read Bookings - Public Data
|
|
@@ -234,8 +215,7 @@ exports.listMultiServiceAvailabilityTimeSlots = listMultiServiceAvailabilityTime
|
|
|
234
215
|
*
|
|
235
216
|
* <blockquote class="important">
|
|
236
217
|
* <p><strong>Important:</strong><br/>
|
|
237
|
-
* Currently supported only for services of type
|
|
238
|
-
* </p>
|
|
218
|
+
* Currently supported only for services of type <code class="grey-background">APPOINTMENT</code>.</p>
|
|
239
219
|
* </blockquote>
|
|
240
220
|
*
|
|
241
221
|
* By default,
|
|
@@ -251,7 +231,12 @@ exports.listMultiServiceAvailabilityTimeSlots = listMultiServiceAvailabilityTime
|
|
|
251
231
|
* + Notes:
|
|
252
232
|
* + All nested time slots share the same location.
|
|
253
233
|
* + You can pass up to 8 services.
|
|
254
|
-
*
|
|
234
|
+
*
|
|
235
|
+
* <blockquote class="tip">
|
|
236
|
+
* <p><strong>Tip:</strong><br/>
|
|
237
|
+
* 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>
|
|
238
|
+
* </blockquote>
|
|
239
|
+
* @param services - Services for which the multiService TimeSlots are being returned for.
|
|
255
240
|
* Each service contains its own resources filters within.
|
|
256
241
|
*
|
|
257
242
|
* MinSize: 2.
|
|
@@ -328,30 +313,43 @@ function getMultiServiceAvailabilityTimeSlot(services, options) {
|
|
|
328
313
|
}
|
|
329
314
|
exports.getMultiServiceAvailabilityTimeSlot = getMultiServiceAvailabilityTimeSlot;
|
|
330
315
|
/**
|
|
331
|
-
* Retrieves a list of `TimeSlot`
|
|
316
|
+
* Retrieves a list of `TimeSlot`s that match the provided filters.
|
|
332
317
|
*
|
|
333
318
|
* <blockquote class="important">
|
|
334
|
-
* <p><strong>Important:</strong
|
|
335
|
-
* Currently supported only for services of type
|
|
336
|
-
* </p>
|
|
319
|
+
* <p><strong>Important:</strong>
|
|
320
|
+
* Currently supported only for services of type <code class="grey-background">APPOINTMENT</code>.</p>
|
|
337
321
|
* </blockquote>
|
|
338
322
|
*
|
|
339
|
-
* The request body __must__ include
|
|
340
|
-
*
|
|
341
|
-
*
|
|
323
|
+
* The request body __must__ include either:
|
|
324
|
+
* + All of the following filters: `serviceId`, `fromLocalDate`, `toLocalDate`, and `timeZone`.
|
|
325
|
+
* You may add additional filters as you wish.
|
|
342
326
|
* + A `cursorPaging` with a valid `cursor` from previous response.
|
|
343
327
|
*
|
|
328
|
+
*
|
|
344
329
|
* Each [TimeSlot](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/availability-time-slots/time-slot-object) in response
|
|
345
330
|
* represents the availability of the service in a specific location,
|
|
346
331
|
* and has a `localStartDate` within the range of the provided `fromLocalDate` and `toLocalDate` exclusive.
|
|
332
|
+
* The `localEndDate` of a `TimeSlot` is calculated as the sum of the `TimeSlot`'s `localStartDate` and the duration of the service.
|
|
333
|
+
*
|
|
334
|
+
* By default,
|
|
335
|
+
* the response contains at most 1000 results.
|
|
336
|
+
* If there are more than 1000 results, we return a `cursorPagingMetadata` with
|
|
337
|
+
* a cursor for the next page of results, regardless of whether a `cursorPaging`
|
|
338
|
+
* was provided in request.
|
|
347
339
|
*
|
|
340
|
+
* ### AvailableResources in response
|
|
341
|
+
* The `TimeSlot`'s `AvailableResources` contains information about the resources that are available to provide the service
|
|
342
|
+
* within the time slot. Each `AvailableResources` contains information about available resources of the same type.
|
|
348
343
|
*
|
|
349
|
-
* ### AvailableResources in response:
|
|
350
344
|
* <blockquote class="important">
|
|
351
345
|
* <p><strong>Important:</strong><br/>
|
|
352
346
|
* By default,
|
|
353
|
-
* if you don't specify
|
|
354
|
-
*
|
|
347
|
+
* if you don't specify <code class="grey-background">includeResourceTypeIds</code>
|
|
348
|
+
* or <code class="grey-background">resourceIds</code> filters in request,
|
|
349
|
+
* we return TimeSlots with an empty <code class="grey-background">AvailableResources</code>.
|
|
350
|
+
* <br/><strong>Note:</strong><br/> Not specifying resources filters can be handy in case you want to avoid large response in flows that only
|
|
351
|
+
* 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/availability-time-slots/sample-flows?localViewerId=inbari#all-apis_service-availability_availability-time-slots_sample-flows_find-the-first-date-within-the-next-3-months-that-the-selected-service-is-available-for)
|
|
352
|
+
* is an example for such flow.
|
|
355
353
|
* </p>
|
|
356
354
|
* </blockquote>
|
|
357
355
|
*
|
|
@@ -359,61 +357,43 @@ exports.getMultiServiceAvailabilityTimeSlot = getMultiServiceAvailabilityTimeSlo
|
|
|
359
357
|
* + provide `resourceIds` in request.
|
|
360
358
|
* + provide `includeResourceTypeIds` in request.
|
|
361
359
|
*
|
|
362
|
-
*
|
|
363
|
-
*
|
|
364
|
-
*
|
|
365
|
-
*
|
|
366
|
-
*
|
|
367
|
-
* >
|
|
368
|
-
* >
|
|
369
|
-
* >
|
|
370
|
-
* > you can call [GetAvailabilityTimeSlot](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/service-availability-time-slots/get-availability-time-slot).
|
|
371
|
-
*
|
|
360
|
+
* __Notes:__
|
|
361
|
+
* + In both cases the returned TimeSlots contains __up__ to 10 `AvailableResources` that match the provided filters.
|
|
362
|
+
* Each `AvailableResources` contains __up__ to 10 available `resources` of the same type that match the provided filters.
|
|
363
|
+
* + If an `AvailableResources` has more available resources which are not listed within it,
|
|
364
|
+
* we return `AvailableResources`.`hasMoreAvailableResources` as true.
|
|
365
|
+
* > __Note:__
|
|
366
|
+
* > If you wish to get the full available resources list for a specific `TimeSlot`,
|
|
367
|
+
* > you should call [GetAvailabilityTimeSlot](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/service-availability-time-slots/get-availability-time-slot).
|
|
372
368
|
*
|
|
373
|
-
* ### Availability VS Bookability:
|
|
374
|
-
* An available time slot is not necessarily bookable.
|
|
375
369
|
*
|
|
370
|
+
* ### Availability VS Bookability
|
|
371
|
+
* An `available` time slot is not necessarily `bookable`.
|
|
376
372
|
* The `bookable` field of a `TimeSlot` indicates whether a customer can book the service within the given time slot,
|
|
377
373
|
* at a specific period of time.
|
|
378
374
|
* 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).
|
|
379
375
|
*
|
|
380
376
|
* By default,
|
|
381
|
-
* + The response does not contains unavailable
|
|
377
|
+
* + The response does not contains `unavailable` TimeSlots.
|
|
382
378
|
* For example,
|
|
383
379
|
* if there are no available resources to provide the service from `2024-01-30T14:30:00` to `2024-01-30T15:30:00`,
|
|
384
|
-
* we don't return
|
|
385
|
-
* + The response contains both `bookable` and `un-bookable`
|
|
380
|
+
* we don't return TimeSlots with `localStartDate` within this range.
|
|
381
|
+
* + The response contains both `bookable` and `un-bookable` TimeSlots.
|
|
386
382
|
* For example,
|
|
387
383
|
* if the service has a booking policy which enforces booking the service up to 10 minutes before the session starts,
|
|
388
|
-
* we return
|
|
389
|
-
* If you
|
|
384
|
+
* we return TimeSlots with the violating `localStartDate` with `bookable` as false.
|
|
385
|
+
* If you wish to list only available __bookable__ TimeSlots you should pass `bookable` filter as true.
|
|
390
386
|
*
|
|
391
387
|
* <blockquote class="important">
|
|
392
|
-
* <p><strong>Important:</strong
|
|
388
|
+
* <p><strong>Important:</strong>
|
|
393
389
|
* Because of DST, there are edge cases where certain times either do not exist or exist twice for a local time zone.
|
|
394
|
-
* Read about
|
|
395
|
-
* </p>
|
|
390
|
+
* Read more about <a href="https://bo.wix.com/wix-docs/rest/all-apis/service-availability/availability-time-slots/introduction?localViewerId=inbari#all-apis_service-availability_availability-time-slots_introduction_daylight-saving-time-dst-handling">DST Handling</a></p>
|
|
396
391
|
* </blockquote>
|
|
397
392
|
*
|
|
398
393
|
*
|
|
399
|
-
* ###
|
|
400
|
-
*
|
|
401
|
-
*
|
|
402
|
-
*
|
|
403
|
-
* If there are more `TimeSlot`s that match the provided filters, we return a `cursorPagingMetaData`
|
|
404
|
-
* with `hasNext` = true and a `cursors`.`next` that points to the next page of results.
|
|
405
|
-
* In order to retrieve the next page of results, you should only provide `cursorPaging` with a limit and the cursor
|
|
406
|
-
* you got in previous call to `cursorPaging`.`cursor` in the request of the following call.
|
|
407
|
-
*
|
|
408
|
-
* By default,
|
|
409
|
-
* the response contains at most 1000 results.
|
|
410
|
-
* If there are more than 1000 results, we return a `cursorPagingMetadata` with
|
|
411
|
-
* a cursor for the next page of results, regardless of whether a `cursorPaging`
|
|
412
|
-
* was provided in request.
|
|
413
|
-
*
|
|
414
|
-
* #### ListAvailabilityTimeSlots runs with the following defaults:
|
|
415
|
-
* + `cursorPaging`.`limit` is 1000.
|
|
416
|
-
* + `localStartDate` is sorted in `ASC` order.
|
|
394
|
+
* ### ListAvailabilityTimeSlots runs with the following defaults
|
|
395
|
+
* + `localStartDate` is sorted in `ASC` order
|
|
396
|
+
* + `cursorPaging`.`limit` is `1000`
|
|
417
397
|
* @public
|
|
418
398
|
* @documentationMaturity preview
|
|
419
399
|
* @permissionScope Read Bookings - Public Data
|
|
@@ -489,8 +469,7 @@ exports.listAvailabilityTimeSlots = listAvailabilityTimeSlots;
|
|
|
489
469
|
*
|
|
490
470
|
* <blockquote class="important">
|
|
491
471
|
* <p><strong>Important:</strong><br/>
|
|
492
|
-
* Currently supported only for services of type
|
|
493
|
-
* </p>
|
|
472
|
+
* Currently supported only for services of type <code class="grey-background">APPOINTMENT</code>.</p>
|
|
494
473
|
* </blockquote>
|
|
495
474
|
*
|
|
496
475
|
* By default,
|
|
@@ -502,8 +481,14 @@ exports.listAvailabilityTimeSlots = listAvailabilityTimeSlots;
|
|
|
502
481
|
* the returned `TimeSlot` will contain only `AvailableResources` with at least one available resource
|
|
503
482
|
* which match the given resources filters,
|
|
504
483
|
* each contains all available resources out of those requested.
|
|
484
|
+
*
|
|
485
|
+
*
|
|
486
|
+
* <blockquote class="tip">
|
|
487
|
+
* <p><strong>Tip:</strong><br/>
|
|
488
|
+
* 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">ListAvailabilityTimeSlots</code> API.</p>
|
|
489
|
+
* </blockquote>
|
|
505
490
|
* @param serviceId - Service ID of the time slot.
|
|
506
|
-
* Currently
|
|
491
|
+
* Currently supported only for services of type `APPOINTMENT`.
|
|
507
492
|
* @public
|
|
508
493
|
* @documentationMaturity preview
|
|
509
494
|
* @requiredField options.localEndDate
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-availability-v2-time-slot.universal.js","sourceRoot":"","sources":["../../../src/bookings-availability-v2-time-slot.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,uHAAyG;AAEzG,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"bookings-availability-v2-time-slot.universal.js","sourceRoot":"","sources":["../../../src/bookings-availability-v2-time-slot.universal.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,kDAAqE;AAErE,uHAAyG;AAEzG,IAAI,SAAS,GAAG,KAAK,CAAC;AAEtB,SAAS,KAAK,CAAC,GAAG,IAAW;IAC3B,SAAS,IAAI,OAAO,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;AACpC,CAAC;AAED,SAAS,SAAS,CAAC,GAAQ;IACzB,OAAO,GAAG,CAAC;AACb,CAAC;AAEY,QAAA,OAAO,GAAG;IACrB,cAAc,EAAE;QACd,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,IAAI,CAAC;QAC5B,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC,SAAS,GAAG,KAAK,CAAC;KAC/B;CACF,CAAC;AACF,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,eAAe,GAAG,GAAG,CAAC;AA4F5B,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,+DAA+C,CAAA;IAC/C,4HAA4H;IAC5H,qCAAqB,CAAA;IACrB,iGAAiG;IACjG,iCAAiB,CAAA;IACjB,mFAAmF;IACnF,qCAAqB,CAAA;AACvB,CAAC,EARW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAQvB;AA0rBD,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,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