@wix/bookings 1.0.302 → 1.0.304
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/cjs/src/bookings-reader-v2-extended-booking.types.d.ts +7 -0
- package/build/cjs/src/bookings-reader-v2-extended-booking.types.js.map +1 -1
- package/build/cjs/src/bookings-reader-v2-extended-booking.universal.d.ts +7 -0
- package/build/cjs/src/bookings-reader-v2-extended-booking.universal.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking.types.d.ts +7 -0
- package/build/cjs/src/bookings-v2-booking.types.js.map +1 -1
- package/build/cjs/src/bookings-v2-booking.universal.d.ts +7 -0
- package/build/cjs/src/bookings-v2-booking.universal.js.map +1 -1
- package/build/cjs/src/bookings-v2-price-info.types.d.ts +7 -0
- package/build/cjs/src/bookings-v2-price-info.types.js.map +1 -1
- package/build/cjs/src/bookings-v2-price-info.universal.d.ts +7 -0
- package/build/cjs/src/bookings-v2-price-info.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/build/es/src/bookings-reader-v2-extended-booking.types.d.ts +7 -0
- package/build/es/src/bookings-reader-v2-extended-booking.types.js.map +1 -1
- package/build/es/src/bookings-reader-v2-extended-booking.universal.d.ts +7 -0
- package/build/es/src/bookings-reader-v2-extended-booking.universal.js.map +1 -1
- package/build/es/src/bookings-v2-booking.types.d.ts +7 -0
- package/build/es/src/bookings-v2-booking.types.js.map +1 -1
- package/build/es/src/bookings-v2-booking.universal.d.ts +7 -0
- package/build/es/src/bookings-v2-booking.universal.js.map +1 -1
- package/build/es/src/bookings-v2-price-info.types.d.ts +7 -0
- package/build/es/src/bookings-v2-price-info.types.js.map +1 -1
- package/build/es/src/bookings-v2-price-info.universal.d.ts +7 -0
- package/build/es/src/bookings-v2-price-info.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,102 +1,83 @@
|
|
|
1
1
|
import { RequestOptionsFactory } from '@wix/sdk-types';
|
|
2
2
|
import { GetAvailabilityTimeSlotRequest, GetAvailabilityTimeSlotResponse, GetMultiServiceAvailabilityTimeSlotRequest, GetMultiServiceAvailabilityTimeSlotResponse, ListAvailabilityTimeSlotsRequest, ListAvailabilityTimeSlotsResponse, ListMultiServiceAvailabilityTimeSlotsRequest, ListMultiServiceAvailabilityTimeSlotsResponse, ListMultiServiceAvailabilityTimeSlotsResponseNonNullableFields, GetMultiServiceAvailabilityTimeSlotResponseNonNullableFields, ListAvailabilityTimeSlotsResponseNonNullableFields, GetAvailabilityTimeSlotResponseNonNullableFields } from './bookings-availability-v2-time-slot.types';
|
|
3
3
|
/**
|
|
4
|
-
* Retrieves a list of multiService `TimeSlot`
|
|
4
|
+
* Retrieves a list of multiService `TimeSlot`s that match the provided filters.
|
|
5
|
+
*
|
|
5
6
|
* <blockquote class="important">
|
|
6
7
|
* <p><strong>Important:</strong><br/>
|
|
7
|
-
* Currently supported only for services of type
|
|
8
|
-
* </p>
|
|
8
|
+
* Currently supported only for services of type <code class="grey-background">APPOINTMENT</code>.</p>
|
|
9
9
|
* </blockquote>
|
|
10
10
|
*
|
|
11
|
-
* The request body __must__ include
|
|
12
|
-
*
|
|
13
|
-
* + All of the following filters: `serviceId`, `fromLocalDate`, `toLocalDate`, `location`, and `timeZone`. You may add additional filters as you wish.
|
|
11
|
+
* The request body __must__ include either:
|
|
12
|
+
* + All of the following filters: `service`.`serviceId`, `fromLocalDate`, `toLocalDate`, `location`, and `timeZone`. You may add additional filters as you wish.
|
|
14
13
|
* + A `cursorPaging` with a valid `cursor` from previous response.
|
|
15
14
|
*
|
|
16
15
|
*
|
|
17
16
|
* Each [TimeSlot](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/availability-time-slots/time-slot-object) in response
|
|
18
|
-
* represents the availability of the given
|
|
17
|
+
* represents the availability of the given sequence of services in a specific order, location, and within a given range of time.
|
|
19
18
|
*
|
|
20
19
|
* Each `TimeSlot`.`NestedTimeSlot` represents a single service from the given list. The order of the `NestedTimeSlots` is the same as the order
|
|
21
20
|
* of the given services in request.
|
|
22
|
-
*
|
|
23
|
-
* The first `NestedTimeSlot` has `localStartDate` within the given `fromLocalDate` and `toLocalDate` - exclusive,
|
|
21
|
+
* The first `NestedTimeSlot` has `localStartDate` within the given `fromLocalDate` and `toLocalDate` exclusive,
|
|
24
22
|
* and each following `NestedTimeSlot` has a `localStartDate` that equals to the previous `NestedTimeSlot`'s `localEndDate`.
|
|
25
23
|
*
|
|
24
|
+
* By default,
|
|
25
|
+
* the response contains at most 1000 results.
|
|
26
|
+
* If there are more than 1000 results, we return a `cursorPagingMetadata` with
|
|
27
|
+
* a cursor for the next page of results, regardless of whether a `cursorPaging`
|
|
28
|
+
* was provided in request.
|
|
29
|
+
*
|
|
26
30
|
* > __Notes:__
|
|
27
31
|
* > + All nested time slots share the same location.
|
|
28
32
|
* > + You can pass up to 8 services in request.
|
|
29
33
|
*
|
|
30
34
|
* ### AvailableResources in response:
|
|
35
|
+
* The `TimeSlot`.`NestedTimeSlot`'s `AvailableResources` contains information about the resources that are available to provide the service
|
|
36
|
+
* within the `NestedTimeSlot` range of time. Each `AvailableResources` contains information about available resources of the same type.
|
|
37
|
+
*
|
|
31
38
|
* <blockquote class="important">
|
|
32
39
|
* <p><strong>Important:</strong><br/>
|
|
33
40
|
* By default,
|
|
34
|
-
* if you don't specify
|
|
35
|
-
*
|
|
41
|
+
* if you don't specify <code class="grey-background">service</code>.<code class="grey-background">includeResourceTypeIds</code>
|
|
42
|
+
* or <code class="grey-background">service</code>.<code class="grey-background">resourceIds</code> filters in request,
|
|
43
|
+
* we return TimeSlots with <code class="grey-background">NestedTimeSlot</code>s with an empty <code class="grey-background">AvailableResources</code>.
|
|
44
|
+
* <br/><strong>Note:</strong><br/> Not specifying resources filters can be handy in case you want to avoid large response in flows that only
|
|
45
|
+
* 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)
|
|
46
|
+
* is an example for such flow.
|
|
36
47
|
* </p>
|
|
37
48
|
* </blockquote>
|
|
38
49
|
*
|
|
50
|
+
*
|
|
39
51
|
* If you wish to get a list of available resources for a `TimeSlot`.`NestedTimeSlot` you should either:
|
|
40
52
|
* + provide `service`.`resourceIds` in request.
|
|
41
53
|
* + provide `service`.`includeResourceTypeIds` in request.
|
|
42
54
|
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* >
|
|
48
|
-
* > + If an `AvailableResources` has more available resources which are not listed within it,
|
|
49
|
-
* > we return `AvailableResources`.`hasMoreAvailableResources` as true.
|
|
50
|
-
* > + If you wish to get the full available resources list for all `NestedTimeSlot` of a specific `TimeSlot`,
|
|
51
|
-
* > 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).
|
|
52
|
-
*
|
|
55
|
+
* __Notes:__
|
|
56
|
+
* + 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.
|
|
57
|
+
* + If an `AvailableResources` has more available resources which are not listed within it, we return `AvailableResources`.`hasMoreAvailableResources` as true.
|
|
58
|
+
* + 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).
|
|
53
59
|
*
|
|
54
|
-
* ### Availability VS Bookability:
|
|
55
|
-
* An available time slot is not necessarily bookable.
|
|
56
60
|
*
|
|
61
|
+
* ### Availability VS Bookability
|
|
62
|
+
* An `available` time slot is not necessarily `bookable`.
|
|
57
63
|
* The `bookable` field of a `TimeSlot` indicates whether the customer can book all of the of the services within the given time slot,
|
|
58
64
|
* at a specific period of time.
|
|
59
65
|
* 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).
|
|
60
66
|
*
|
|
61
67
|
* By default,
|
|
62
|
-
* + The response does not contains unavailable `
|
|
63
|
-
* For example,
|
|
64
|
-
*
|
|
65
|
-
* we don't return `TimeSlot`'s with `localStartDate` within this range.
|
|
66
|
-
* + The response contains both `bookable` and `un-bookable` `TimeSlot`'s.
|
|
67
|
-
* For example,
|
|
68
|
-
* if one of the services has a booking policy which enforces booking the service up to 10 minutes before the session starts,
|
|
69
|
-
* we return `TimeSlot`'s with the violating `localStartDate` with `bookable` as false.
|
|
70
|
-
* If you want to list only __bookable__ `TimeSlots` you should pass `bookable` as true.
|
|
71
|
-
* + If booking one of the `NestedTimeSlot`'s violates one of the corresponding service's booking policies,
|
|
72
|
-
* the `TimeSlot` returns with `bookable` as false. There is no indication which service's policy was violated.
|
|
68
|
+
* + 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.
|
|
69
|
+
* + 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`.
|
|
70
|
+
* + 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.
|
|
73
71
|
*
|
|
74
72
|
* <blockquote class="important">
|
|
75
|
-
* <p><strong>Important:</strong
|
|
73
|
+
* <p><strong>Important:</strong>
|
|
76
74
|
* Because of DST, there are edge cases where certain times either do not exist or exist twice for a local time zone.
|
|
77
|
-
* Read about
|
|
78
|
-
* </p>
|
|
75
|
+
* 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>
|
|
79
76
|
* </blockquote>
|
|
80
77
|
*
|
|
81
|
-
*
|
|
82
|
-
* ### Pagination:
|
|
83
|
-
* You can specify how many `TimeSlot`'s will return in response by providing a `limit`
|
|
84
|
-
* for the `cursorPaging` in request.
|
|
85
|
-
*
|
|
86
|
-
* If there are more `TimeSlot`s that match the provided filters, we return a `cursorPagingMetaData`
|
|
87
|
-
* with `hasNext` = true and a `cursors`.`next` that points to the next page of results.
|
|
88
|
-
* In order to retrieve the next page of results, you should only provide `cursorPaging` with a limit and the cursor
|
|
89
|
-
* you got in previous call to `cursorPaging`.`cursor` in the request of the following call.
|
|
90
|
-
*
|
|
91
|
-
* By default,
|
|
92
|
-
* the response contains at most 1000 results.
|
|
93
|
-
* If there are more than 1000 results, we return a `cursorPagingMetadata` with
|
|
94
|
-
* a cursor for the next page of results, regardless of whether a `cursorPaging`
|
|
95
|
-
* was provided in request.
|
|
96
|
-
*
|
|
97
|
-
* #### ListAvailabilityTimeSlots runs with the following defaults:
|
|
98
|
-
* + `cursorPaging`.`limit` is 1000.
|
|
78
|
+
* ### ListAvailabilityTimeSlots runs with the following defaults:
|
|
99
79
|
* + `localStartDate` is sorted in `ASC` order.
|
|
80
|
+
* + `cursorPaging`.`limit` is `1000`.
|
|
100
81
|
*/
|
|
101
82
|
export declare function listMultiServiceAvailabilityTimeSlots(payload: ListMultiServiceAvailabilityTimeSlotsRequest): RequestOptionsFactory<ListMultiServiceAvailabilityTimeSlotsResponse & ListMultiServiceAvailabilityTimeSlotsResponseNonNullableFields>;
|
|
102
83
|
/**
|
|
@@ -106,8 +87,7 @@ export declare function listMultiServiceAvailabilityTimeSlots(payload: ListMulti
|
|
|
106
87
|
*
|
|
107
88
|
* <blockquote class="important">
|
|
108
89
|
* <p><strong>Important:</strong><br/>
|
|
109
|
-
* Currently supported only for services of type
|
|
110
|
-
* </p>
|
|
90
|
+
* Currently supported only for services of type <code class="grey-background">APPOINTMENT</code>.</p>
|
|
111
91
|
* </blockquote>
|
|
112
92
|
*
|
|
113
93
|
* By default,
|
|
@@ -123,33 +103,51 @@ export declare function listMultiServiceAvailabilityTimeSlots(payload: ListMulti
|
|
|
123
103
|
* + Notes:
|
|
124
104
|
* + All nested time slots share the same location.
|
|
125
105
|
* + You can pass up to 8 services.
|
|
106
|
+
*
|
|
107
|
+
* <blockquote class="tip">
|
|
108
|
+
* <p><strong>Tip:</strong><br/>
|
|
109
|
+
* 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>
|
|
110
|
+
* </blockquote>
|
|
126
111
|
*/
|
|
127
112
|
export declare function getMultiServiceAvailabilityTimeSlot(payload: GetMultiServiceAvailabilityTimeSlotRequest): RequestOptionsFactory<GetMultiServiceAvailabilityTimeSlotResponse & GetMultiServiceAvailabilityTimeSlotResponseNonNullableFields>;
|
|
128
113
|
/**
|
|
129
|
-
* Retrieves a list of `TimeSlot`
|
|
114
|
+
* Retrieves a list of `TimeSlot`s that match the provided filters.
|
|
130
115
|
*
|
|
131
116
|
* <blockquote class="important">
|
|
132
|
-
* <p><strong>Important:</strong
|
|
133
|
-
* Currently supported only for services of type
|
|
134
|
-
* </p>
|
|
117
|
+
* <p><strong>Important:</strong>
|
|
118
|
+
* Currently supported only for services of type <code class="grey-background">APPOINTMENT</code>.</p>
|
|
135
119
|
* </blockquote>
|
|
136
120
|
*
|
|
137
|
-
* The request body __must__ include
|
|
138
|
-
*
|
|
139
|
-
*
|
|
121
|
+
* The request body __must__ include either:
|
|
122
|
+
* + All of the following filters: `serviceId`, `fromLocalDate`, `toLocalDate`, and `timeZone`.
|
|
123
|
+
* You may add additional filters as you wish.
|
|
140
124
|
* + A `cursorPaging` with a valid `cursor` from previous response.
|
|
141
125
|
*
|
|
126
|
+
*
|
|
142
127
|
* Each [TimeSlot](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/availability-time-slots/time-slot-object) in response
|
|
143
128
|
* represents the availability of the service in a specific location,
|
|
144
129
|
* and has a `localStartDate` within the range of the provided `fromLocalDate` and `toLocalDate` exclusive.
|
|
130
|
+
* The `localEndDate` of a `TimeSlot` is calculated as the sum of the `TimeSlot`'s `localStartDate` and the duration of the service.
|
|
145
131
|
*
|
|
132
|
+
* By default,
|
|
133
|
+
* the response contains at most 1000 results.
|
|
134
|
+
* If there are more than 1000 results, we return a `cursorPagingMetadata` with
|
|
135
|
+
* a cursor for the next page of results, regardless of whether a `cursorPaging`
|
|
136
|
+
* was provided in request.
|
|
137
|
+
*
|
|
138
|
+
* ### AvailableResources in response
|
|
139
|
+
* The `TimeSlot`'s `AvailableResources` contains information about the resources that are available to provide the service
|
|
140
|
+
* within the time slot. Each `AvailableResources` contains information about available resources of the same type.
|
|
146
141
|
*
|
|
147
|
-
* ### AvailableResources in response:
|
|
148
142
|
* <blockquote class="important">
|
|
149
143
|
* <p><strong>Important:</strong><br/>
|
|
150
144
|
* By default,
|
|
151
|
-
* if you don't specify
|
|
152
|
-
*
|
|
145
|
+
* if you don't specify <code class="grey-background">includeResourceTypeIds</code>
|
|
146
|
+
* or <code class="grey-background">resourceIds</code> filters in request,
|
|
147
|
+
* we return TimeSlots with an empty <code class="grey-background">AvailableResources</code>.
|
|
148
|
+
* <br/><strong>Note:</strong><br/> Not specifying resources filters can be handy in case you want to avoid large response in flows that only
|
|
149
|
+
* 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)
|
|
150
|
+
* is an example for such flow.
|
|
153
151
|
* </p>
|
|
154
152
|
* </blockquote>
|
|
155
153
|
*
|
|
@@ -157,61 +155,43 @@ export declare function getMultiServiceAvailabilityTimeSlot(payload: GetMultiSer
|
|
|
157
155
|
* + provide `resourceIds` in request.
|
|
158
156
|
* + provide `includeResourceTypeIds` in request.
|
|
159
157
|
*
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
* >
|
|
166
|
-
* >
|
|
167
|
-
* >
|
|
168
|
-
* > you can call [GetAvailabilityTimeSlot](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/service-availability-time-slots/get-availability-time-slot).
|
|
169
|
-
*
|
|
158
|
+
* __Notes:__
|
|
159
|
+
* + In both cases the returned TimeSlots contains __up__ to 10 `AvailableResources` that match the provided filters.
|
|
160
|
+
* Each `AvailableResources` contains __up__ to 10 available `resources` of the same type that match the provided filters.
|
|
161
|
+
* + If an `AvailableResources` has more available resources which are not listed within it,
|
|
162
|
+
* we return `AvailableResources`.`hasMoreAvailableResources` as true.
|
|
163
|
+
* > __Note:__
|
|
164
|
+
* > If you wish to get the full available resources list for a specific `TimeSlot`,
|
|
165
|
+
* > you should call [GetAvailabilityTimeSlot](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/service-availability-time-slots/get-availability-time-slot).
|
|
170
166
|
*
|
|
171
|
-
* ### Availability VS Bookability:
|
|
172
|
-
* An available time slot is not necessarily bookable.
|
|
173
167
|
*
|
|
168
|
+
* ### Availability VS Bookability
|
|
169
|
+
* An `available` time slot is not necessarily `bookable`.
|
|
174
170
|
* The `bookable` field of a `TimeSlot` indicates whether a customer can book the service within the given time slot,
|
|
175
171
|
* at a specific period of time.
|
|
176
172
|
* 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).
|
|
177
173
|
*
|
|
178
174
|
* By default,
|
|
179
|
-
* + The response does not contains unavailable
|
|
175
|
+
* + The response does not contains `unavailable` TimeSlots.
|
|
180
176
|
* For example,
|
|
181
177
|
* if there are no available resources to provide the service from `2024-01-30T14:30:00` to `2024-01-30T15:30:00`,
|
|
182
|
-
* we don't return
|
|
183
|
-
* + The response contains both `bookable` and `un-bookable`
|
|
178
|
+
* we don't return TimeSlots with `localStartDate` within this range.
|
|
179
|
+
* + The response contains both `bookable` and `un-bookable` TimeSlots.
|
|
184
180
|
* For example,
|
|
185
181
|
* if the service has a booking policy which enforces booking the service up to 10 minutes before the session starts,
|
|
186
|
-
* we return
|
|
187
|
-
* If you
|
|
182
|
+
* we return TimeSlots with the violating `localStartDate` with `bookable` as false.
|
|
183
|
+
* If you wish to list only available __bookable__ TimeSlots you should pass `bookable` filter as true.
|
|
188
184
|
*
|
|
189
185
|
* <blockquote class="important">
|
|
190
|
-
* <p><strong>Important:</strong
|
|
186
|
+
* <p><strong>Important:</strong>
|
|
191
187
|
* Because of DST, there are edge cases where certain times either do not exist or exist twice for a local time zone.
|
|
192
|
-
* Read about
|
|
193
|
-
* </p>
|
|
188
|
+
* 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>
|
|
194
189
|
* </blockquote>
|
|
195
190
|
*
|
|
196
191
|
*
|
|
197
|
-
* ###
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
* If there are more `TimeSlot`s that match the provided filters, we return a `cursorPagingMetaData`
|
|
202
|
-
* with `hasNext` = true and a `cursors`.`next` that points to the next page of results.
|
|
203
|
-
* In order to retrieve the next page of results, you should only provide `cursorPaging` with a limit and the cursor
|
|
204
|
-
* you got in previous call to `cursorPaging`.`cursor` in the request of the following call.
|
|
205
|
-
*
|
|
206
|
-
* By default,
|
|
207
|
-
* the response contains at most 1000 results.
|
|
208
|
-
* If there are more than 1000 results, we return a `cursorPagingMetadata` with
|
|
209
|
-
* a cursor for the next page of results, regardless of whether a `cursorPaging`
|
|
210
|
-
* was provided in request.
|
|
211
|
-
*
|
|
212
|
-
* #### ListAvailabilityTimeSlots runs with the following defaults:
|
|
213
|
-
* + `cursorPaging`.`limit` is 1000.
|
|
214
|
-
* + `localStartDate` is sorted in `ASC` order.
|
|
192
|
+
* ### ListAvailabilityTimeSlots runs with the following defaults
|
|
193
|
+
* + `localStartDate` is sorted in `ASC` order
|
|
194
|
+
* + `cursorPaging`.`limit` is `1000`
|
|
215
195
|
*/
|
|
216
196
|
export declare function listAvailabilityTimeSlots(payload: ListAvailabilityTimeSlotsRequest): RequestOptionsFactory<ListAvailabilityTimeSlotsResponse & ListAvailabilityTimeSlotsResponseNonNullableFields>;
|
|
217
197
|
/**
|
|
@@ -221,8 +201,7 @@ export declare function listAvailabilityTimeSlots(payload: ListAvailabilityTimeS
|
|
|
221
201
|
*
|
|
222
202
|
* <blockquote class="important">
|
|
223
203
|
* <p><strong>Important:</strong><br/>
|
|
224
|
-
* Currently supported only for services of type
|
|
225
|
-
* </p>
|
|
204
|
+
* Currently supported only for services of type <code class="grey-background">APPOINTMENT</code>.</p>
|
|
226
205
|
* </blockquote>
|
|
227
206
|
*
|
|
228
207
|
* By default,
|
|
@@ -234,5 +213,11 @@ export declare function listAvailabilityTimeSlots(payload: ListAvailabilityTimeS
|
|
|
234
213
|
* the returned `TimeSlot` will contain only `AvailableResources` with at least one available resource
|
|
235
214
|
* which match the given resources filters,
|
|
236
215
|
* each contains all available resources out of those requested.
|
|
216
|
+
*
|
|
217
|
+
*
|
|
218
|
+
* <blockquote class="tip">
|
|
219
|
+
* <p><strong>Tip:</strong><br/>
|
|
220
|
+
* 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>
|
|
221
|
+
* </blockquote>
|
|
237
222
|
*/
|
|
238
223
|
export declare function getAvailabilityTimeSlot(payload: GetAvailabilityTimeSlotRequest): RequestOptionsFactory<GetAvailabilityTimeSlotResponse & GetAvailabilityTimeSlotResponseNonNullableFields>;
|