@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.
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +2 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +2 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +2 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/src/bookings-availability-v2-time-slot.http.d.ts +238 -0
- package/build/cjs/src/bookings-availability-v2-time-slot.http.js +556 -0
- package/build/cjs/src/bookings-availability-v2-time-slot.http.js.map +1 -0
- package/build/cjs/src/bookings-availability-v2-time-slot.meta.d.ts +16 -0
- package/build/cjs/src/bookings-availability-v2-time-slot.meta.js +100 -0
- package/build/cjs/src/bookings-availability-v2-time-slot.meta.js.map +1 -0
- package/build/cjs/src/bookings-availability-v2-time-slot.public.d.ts +11 -0
- package/build/cjs/src/bookings-availability-v2-time-slot.public.js +32 -0
- package/build/cjs/src/bookings-availability-v2-time-slot.public.js.map +1 -0
- package/build/cjs/src/bookings-availability-v2-time-slot.types.d.ts +812 -0
- package/build/cjs/src/bookings-availability-v2-time-slot.types.js +14 -0
- package/build/cjs/src/bookings-availability-v2-time-slot.types.js.map +1 -0
- package/build/cjs/src/bookings-availability-v2-time-slot.universal.d.ts +1415 -0
- package/build/cjs/src/bookings-availability-v2-time-slot.universal.js +577 -0
- package/build/cjs/src/bookings-availability-v2-time-slot.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +1 -0
- package/build/es/index.js.map +1 -1
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +1 -0
- package/build/es/index.typings.js.map +1 -1
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +1 -0
- package/build/es/meta.js.map +1 -1
- package/build/es/src/bookings-availability-v2-time-slot.http.d.ts +238 -0
- package/build/es/src/bookings-availability-v2-time-slot.http.js +549 -0
- package/build/es/src/bookings-availability-v2-time-slot.http.js.map +1 -0
- package/build/es/src/bookings-availability-v2-time-slot.meta.d.ts +16 -0
- package/build/es/src/bookings-availability-v2-time-slot.meta.js +74 -0
- package/build/es/src/bookings-availability-v2-time-slot.meta.js.map +1 -0
- package/build/es/src/bookings-availability-v2-time-slot.public.d.ts +11 -0
- package/build/es/src/bookings-availability-v2-time-slot.public.js +24 -0
- package/build/es/src/bookings-availability-v2-time-slot.public.js.map +1 -0
- package/build/es/src/bookings-availability-v2-time-slot.types.d.ts +812 -0
- package/build/es/src/bookings-availability-v2-time-slot.types.js +11 -0
- package/build/es/src/bookings-availability-v2-time-slot.types.js.map +1 -0
- package/build/es/src/bookings-availability-v2-time-slot.universal.d.ts +1415 -0
- package/build/es/src/bookings-availability-v2-time-slot.universal.js +551 -0
- package/build/es/src/bookings-availability-v2-time-slot.universal.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,551 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { serializer, transformError } from '@wix/metro-runtime/velo';
|
|
11
|
+
import * as ambassadorWixBookingsAvailabilityV2TimeSlot from './bookings-availability-v2-time-slot.http';
|
|
12
|
+
let __verbose = false;
|
|
13
|
+
function __log(...args) {
|
|
14
|
+
__verbose && console.log(...args);
|
|
15
|
+
}
|
|
16
|
+
function __inspect(obj) {
|
|
17
|
+
return obj;
|
|
18
|
+
}
|
|
19
|
+
export const __debug = {
|
|
20
|
+
verboseLogging: {
|
|
21
|
+
on: () => (__verbose = true),
|
|
22
|
+
off: () => (__verbose = false),
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
const _toVeloEntity = '$';
|
|
26
|
+
const _fromVeloEntity = '$';
|
|
27
|
+
export var LocationType;
|
|
28
|
+
(function (LocationType) {
|
|
29
|
+
LocationType["UNKNOWN_LOCATION_TYPE"] = "UNKNOWN_LOCATION_TYPE";
|
|
30
|
+
/** A business location, either the default business address, or locations defined for the business by the Business Info. */
|
|
31
|
+
LocationType["BUSINESS"] = "BUSINESS";
|
|
32
|
+
/** The location is unique to this service and isn't defined as one of the business locations. */
|
|
33
|
+
LocationType["CUSTOM"] = "CUSTOM";
|
|
34
|
+
/** The location can be determined by the customer and is not set up beforehand. */
|
|
35
|
+
LocationType["CUSTOMER"] = "CUSTOMER";
|
|
36
|
+
})(LocationType || (LocationType = {}));
|
|
37
|
+
const _getAvailabilityTimeSlotRequest = {};
|
|
38
|
+
const _getAvailabilityTimeSlotResponse = {};
|
|
39
|
+
const _getMultiServiceAvailabilityTimeSlotRequest = {};
|
|
40
|
+
const _getMultiServiceAvailabilityTimeSlotResponse = {};
|
|
41
|
+
const _listAvailabilityTimeSlotsRequest = {};
|
|
42
|
+
const _listAvailabilityTimeSlotsResponse = {};
|
|
43
|
+
const _listMultiServiceAvailabilityTimeSlotsRequest = {};
|
|
44
|
+
const _listMultiServiceAvailabilityTimeSlotsResponse = {};
|
|
45
|
+
/**
|
|
46
|
+
* Retrieves a list of multiService `TimeSlot`'s that match the provided filters.
|
|
47
|
+
* <blockquote class="important">
|
|
48
|
+
* <p><strong>Important:</strong><br/>
|
|
49
|
+
* Currently supported only for services of type `APPOINTMENT`.
|
|
50
|
+
* </p>
|
|
51
|
+
* </blockquote>
|
|
52
|
+
*
|
|
53
|
+
* The request body __must__ include one of:
|
|
54
|
+
*
|
|
55
|
+
* + All of the following filters: `serviceId`, `fromLocalDate`, `toLocalDate`, `location`, and `timeZone`. You may add additional filters as you wish.
|
|
56
|
+
* + A `cursorPaging` with a valid `cursor` from previous response.
|
|
57
|
+
*
|
|
58
|
+
*
|
|
59
|
+
* Each [TimeSlot](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/availability-time-slots/time-slot-object) in response
|
|
60
|
+
* represents the availability of the given list of services in a specific location, within a given range of time.
|
|
61
|
+
*
|
|
62
|
+
* Each `TimeSlot`.`NestedTimeSlot` represents a single service from the given list. The order of the `NestedTimeSlots` is the same as the order
|
|
63
|
+
* of the given services in request.
|
|
64
|
+
*
|
|
65
|
+
* The first `NestedTimeSlot` has `localStartDate` within the given `fromLocalDate` and `toLocalDate` - exclusive,
|
|
66
|
+
* and each following `NestedTimeSlot` has a `localStartDate` that equals to the previous `NestedTimeSlot`'s `localEndDate`.
|
|
67
|
+
*
|
|
68
|
+
* > __Notes:__
|
|
69
|
+
* > + All nested time slots share the same location.
|
|
70
|
+
* > + You can pass up to 8 services in request.
|
|
71
|
+
*
|
|
72
|
+
* ### AvailableResources in response:
|
|
73
|
+
* <blockquote class="important">
|
|
74
|
+
* <p><strong>Important:</strong><br/>
|
|
75
|
+
* By default,
|
|
76
|
+
* if you don't specify `service`.`includeResourceTypeIds` or `service`.`resourceIds` filters in request,
|
|
77
|
+
* we return `TimeSlot`.`NestedTimeSlot`'s with an empty `AvailableResources`.
|
|
78
|
+
* </p>
|
|
79
|
+
* </blockquote>
|
|
80
|
+
*
|
|
81
|
+
* If you wish to get a list of available resources for a `TimeSlot`.`NestedTimeSlot` you should either:
|
|
82
|
+
* + provide `service`.`resourceIds` in request.
|
|
83
|
+
* + provide `service`.`includeResourceTypeIds` in request.
|
|
84
|
+
*
|
|
85
|
+
* > __Notes:__
|
|
86
|
+
* >
|
|
87
|
+
* > + In both cases the returned `TimeSlot`.`NestedTimeSlot`'s contains __up__ to 10 `AvailableResources` that match the provided filters.
|
|
88
|
+
* > Each `AvailableResources` contains __up__ to 10 available `resources` of the same type that match the provided filters.
|
|
89
|
+
* >
|
|
90
|
+
* > + If an `AvailableResources` has more available resources which are not listed within it,
|
|
91
|
+
* > we return `AvailableResources`.`hasMoreAvailableResources` as true.
|
|
92
|
+
* > + If you wish to get the full available resources list for all `NestedTimeSlot` of a specific `TimeSlot`,
|
|
93
|
+
* > 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).
|
|
94
|
+
*
|
|
95
|
+
*
|
|
96
|
+
* ### Availability VS Bookability:
|
|
97
|
+
* An available time slot is not necessarily bookable.
|
|
98
|
+
*
|
|
99
|
+
* The `bookable` field of a `TimeSlot` indicates whether the customer can book all of the of the services within the given time slot,
|
|
100
|
+
* at a specific period of time.
|
|
101
|
+
* 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).
|
|
102
|
+
*
|
|
103
|
+
* By default,
|
|
104
|
+
* + The response does not contains unavailable `TimeSlot`'s.
|
|
105
|
+
* For example,
|
|
106
|
+
* if there are no available resources to provide the service from `2024-01-30T14:30:00` to `2024-01-30T15:30:00`,
|
|
107
|
+
* we don't return `TimeSlot`'s with `localStartDate` within this range.
|
|
108
|
+
* + The response contains both `bookable` and `un-bookable` `TimeSlot`'s.
|
|
109
|
+
* For example,
|
|
110
|
+
* if one of the services has a booking policy which enforces booking the service up to 10 minutes before the session starts,
|
|
111
|
+
* we return `TimeSlot`'s with the violating `localStartDate` with `bookable` as false.
|
|
112
|
+
* If you want to list only __bookable__ `TimeSlots` you should pass `bookable` as true.
|
|
113
|
+
* + If booking one of the `NestedTimeSlot`'s violates one of the corresponding service's booking policies,
|
|
114
|
+
* the `TimeSlot` returns with `bookable` as false. There is no indication which service's policy was violated.
|
|
115
|
+
*
|
|
116
|
+
* <blockquote class="important">
|
|
117
|
+
* <p><strong>Important:</strong><br/>
|
|
118
|
+
* Because of DST, there are edge cases where certain times either do not exist or exist twice for a local time zone.
|
|
119
|
+
* 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)
|
|
120
|
+
* </p>
|
|
121
|
+
* </blockquote>
|
|
122
|
+
*
|
|
123
|
+
*
|
|
124
|
+
* ### Pagination:
|
|
125
|
+
* You can specify how many `TimeSlot`'s will return in response by providing a `limit`
|
|
126
|
+
* for the `cursorPaging` in request.
|
|
127
|
+
*
|
|
128
|
+
* If there are more `TimeSlot`s that match the provided filters, we return a `cursorPagingMetaData`
|
|
129
|
+
* with `hasNext` = true and a `cursors`.`next` that points to the next page of results.
|
|
130
|
+
* In order to retrieve the next page of results, you should only provide `cursorPaging` with a limit and the cursor
|
|
131
|
+
* you got in previous call to `cursorPaging`.`cursor` in the request of the following call.
|
|
132
|
+
*
|
|
133
|
+
* By default,
|
|
134
|
+
* the response contains at most 1000 results.
|
|
135
|
+
* If there are more than 1000 results, we return a `cursorPagingMetadata` with
|
|
136
|
+
* a cursor for the next page of results, regardless of whether a `cursorPaging`
|
|
137
|
+
* was provided in request.
|
|
138
|
+
*
|
|
139
|
+
* #### ListAvailabilityTimeSlots runs with the following defaults:
|
|
140
|
+
* + `cursorPaging`.`limit` is 1000.
|
|
141
|
+
* + `localStartDate` is sorted in `ASC` order.
|
|
142
|
+
* @public
|
|
143
|
+
* @documentationMaturity preview
|
|
144
|
+
* @permissionScope Read Bookings - Public Data
|
|
145
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
146
|
+
* @permissionScope Read Bookings - Including Participants
|
|
147
|
+
* @permissionScope Read Bookings - all read permissions
|
|
148
|
+
* @permissionScope Read Bookings Calendar Availability
|
|
149
|
+
* @permissionScope Manage Bookings - all permissions
|
|
150
|
+
* @applicableIdentity APP
|
|
151
|
+
* @applicableIdentity MEMBER
|
|
152
|
+
* @applicableIdentity VISITOR
|
|
153
|
+
*/
|
|
154
|
+
export function listMultiServiceAvailabilityTimeSlots(options) {
|
|
155
|
+
var _a, _b, _c;
|
|
156
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
157
|
+
const requestTransformation = {
|
|
158
|
+
services: '$[0].services',
|
|
159
|
+
fromLocalDate: '$[0].fromLocalDate',
|
|
160
|
+
toLocalDate: '$[0].toLocalDate',
|
|
161
|
+
timeZone: '$[0].timeZone',
|
|
162
|
+
location: '$[0].location',
|
|
163
|
+
bookable: '$[0].bookable',
|
|
164
|
+
bookingPolicyViolations: '$[0].bookingPolicyViolations',
|
|
165
|
+
timeSlotsPerDay: '$[0].timeSlotsPerDay',
|
|
166
|
+
cursorPaging: '$[0].cursorPaging',
|
|
167
|
+
};
|
|
168
|
+
const responseTransformation = '$';
|
|
169
|
+
// @ts-ignore
|
|
170
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
171
|
+
const { toAmbassadorRequest } = serializer({
|
|
172
|
+
rootSchema: _listMultiServiceAvailabilityTimeSlotsRequest,
|
|
173
|
+
depSchemas: {},
|
|
174
|
+
fqdnTransformation: {
|
|
175
|
+
paths: [],
|
|
176
|
+
transformation: _fromVeloEntity,
|
|
177
|
+
},
|
|
178
|
+
customTransformation: requestTransformation,
|
|
179
|
+
});
|
|
180
|
+
const { fromJSON } = serializer({
|
|
181
|
+
rootSchema: _listMultiServiceAvailabilityTimeSlotsResponse,
|
|
182
|
+
depSchemas: {},
|
|
183
|
+
fqdnTransformation: {
|
|
184
|
+
paths: [...['Array#timeSlots']],
|
|
185
|
+
transformation: _toVeloEntity,
|
|
186
|
+
},
|
|
187
|
+
customTransformation: responseTransformation,
|
|
188
|
+
});
|
|
189
|
+
const payload = toAmbassadorRequest([options]);
|
|
190
|
+
const reqOpts = ambassadorWixBookingsAvailabilityV2TimeSlot.listMultiServiceAvailabilityTimeSlots(payload);
|
|
191
|
+
__log(`"ListMultiServiceAvailabilityTimeSlots" sending request with: ${__inspect(reqOpts)}`);
|
|
192
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
193
|
+
try {
|
|
194
|
+
const result = yield httpClient.request(reqOpts);
|
|
195
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
196
|
+
return fromJSON(result.data);
|
|
197
|
+
}
|
|
198
|
+
catch (err) {
|
|
199
|
+
const transformedError = transformError(err, requestTransformation, [
|
|
200
|
+
'options',
|
|
201
|
+
]);
|
|
202
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
203
|
+
throw transformedError;
|
|
204
|
+
}
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
/**
|
|
208
|
+
* Retrieves an available multiService `TimeSlot` that match the provided filters.
|
|
209
|
+
*
|
|
210
|
+
* Throws `SlotNotFound` if there is no such available time slot.
|
|
211
|
+
*
|
|
212
|
+
* <blockquote class="important">
|
|
213
|
+
* <p><strong>Important:</strong><br/>
|
|
214
|
+
* Currently supported only for services of type `APPOINTMENT`.
|
|
215
|
+
* </p>
|
|
216
|
+
* </blockquote>
|
|
217
|
+
*
|
|
218
|
+
* By default,
|
|
219
|
+
* if you don't provide a `service`.`includeResourceTypeIds` or `service`.`resourceIds` in request,
|
|
220
|
+
* we return for each `TimeSlot`.`NestedTimeSlot` all `AvailableResources` with all `AvailableResources`.`resources` which are available to provide
|
|
221
|
+
* the corresponding service within the time slot.
|
|
222
|
+
*
|
|
223
|
+
* If you specify `service`.`includeResourceTypeIds` or `service`.`resourceIds` in request,
|
|
224
|
+
* the returned `TimeSlot`.`NestedTimeSlot` for this service will contain only `AvailableResources` with at least one available resource
|
|
225
|
+
* which match the given resources filters,
|
|
226
|
+
* each contains all available resources out of those requested.
|
|
227
|
+
*
|
|
228
|
+
* + Notes:
|
|
229
|
+
* + All nested time slots share the same location.
|
|
230
|
+
* + You can pass up to 8 services.
|
|
231
|
+
* @param services - Services for which the multiService time slots are being returned for.
|
|
232
|
+
* Each service contains its own resources filters within.
|
|
233
|
+
*
|
|
234
|
+
* MinSize: 2.
|
|
235
|
+
* MaxSize: 8.
|
|
236
|
+
* @public
|
|
237
|
+
* @documentationMaturity preview
|
|
238
|
+
* @requiredField options
|
|
239
|
+
* @requiredField options.localEndDate
|
|
240
|
+
* @requiredField options.localStartDate
|
|
241
|
+
* @requiredField options.location
|
|
242
|
+
* @requiredField options.location.locationType
|
|
243
|
+
* @requiredField options.timeZone
|
|
244
|
+
* @requiredField services
|
|
245
|
+
* @requiredField services.serviceId
|
|
246
|
+
* @permissionScope Read Bookings - Public Data
|
|
247
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
248
|
+
* @permissionScope Read Bookings - Including Participants
|
|
249
|
+
* @permissionScope Read Bookings - all read permissions
|
|
250
|
+
* @permissionScope Read Bookings Calendar Availability
|
|
251
|
+
* @permissionScope Manage Bookings - all permissions
|
|
252
|
+
* @applicableIdentity APP
|
|
253
|
+
* @applicableIdentity MEMBER
|
|
254
|
+
* @applicableIdentity VISITOR
|
|
255
|
+
*/
|
|
256
|
+
export function getMultiServiceAvailabilityTimeSlot(services, options) {
|
|
257
|
+
var _a, _b, _c;
|
|
258
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
259
|
+
const requestTransformation = {
|
|
260
|
+
services: '$[0]',
|
|
261
|
+
localStartDate: '$[1].localStartDate',
|
|
262
|
+
localEndDate: '$[1].localEndDate',
|
|
263
|
+
timeZone: '$[1].timeZone',
|
|
264
|
+
location: '$[1].location',
|
|
265
|
+
};
|
|
266
|
+
const responseTransformation = '$';
|
|
267
|
+
// @ts-ignore
|
|
268
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
269
|
+
const { toAmbassadorRequest } = serializer({
|
|
270
|
+
rootSchema: _getMultiServiceAvailabilityTimeSlotRequest,
|
|
271
|
+
depSchemas: {},
|
|
272
|
+
fqdnTransformation: {
|
|
273
|
+
paths: [],
|
|
274
|
+
transformation: _fromVeloEntity,
|
|
275
|
+
},
|
|
276
|
+
customTransformation: requestTransformation,
|
|
277
|
+
});
|
|
278
|
+
const { fromJSON } = serializer({
|
|
279
|
+
rootSchema: _getMultiServiceAvailabilityTimeSlotResponse,
|
|
280
|
+
depSchemas: {},
|
|
281
|
+
fqdnTransformation: {
|
|
282
|
+
paths: [...['timeSlot']],
|
|
283
|
+
transformation: _toVeloEntity,
|
|
284
|
+
},
|
|
285
|
+
customTransformation: responseTransformation,
|
|
286
|
+
});
|
|
287
|
+
const payload = toAmbassadorRequest([services, options]);
|
|
288
|
+
const reqOpts = ambassadorWixBookingsAvailabilityV2TimeSlot.getMultiServiceAvailabilityTimeSlot(payload);
|
|
289
|
+
__log(`"GetMultiServiceAvailabilityTimeSlot" sending request with: ${__inspect(reqOpts)}`);
|
|
290
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
291
|
+
try {
|
|
292
|
+
const result = yield httpClient.request(reqOpts);
|
|
293
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
294
|
+
return fromJSON(result.data);
|
|
295
|
+
}
|
|
296
|
+
catch (err) {
|
|
297
|
+
const transformedError = transformError(err, requestTransformation, [
|
|
298
|
+
'services',
|
|
299
|
+
'options',
|
|
300
|
+
]);
|
|
301
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
302
|
+
throw transformedError;
|
|
303
|
+
}
|
|
304
|
+
});
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* Retrieves a list of `TimeSlot`'s that match the provided filters.
|
|
308
|
+
*
|
|
309
|
+
* <blockquote class="important">
|
|
310
|
+
* <p><strong>Important:</strong><br/>
|
|
311
|
+
* Currently supported only for services of type `APPOINTMENT`.
|
|
312
|
+
* </p>
|
|
313
|
+
* </blockquote>
|
|
314
|
+
*
|
|
315
|
+
* The request body __must__ include one of:
|
|
316
|
+
*
|
|
317
|
+
* + All of the following filters: `serviceId`, `fromLocalDate`, `toLocalDate`, and `timeZone`. You may add additional filters as you wish.
|
|
318
|
+
* + A `cursorPaging` with a valid `cursor` from previous response.
|
|
319
|
+
*
|
|
320
|
+
* Each [TimeSlot](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/availability-time-slots/time-slot-object) in response
|
|
321
|
+
* represents the availability of the service in a specific location,
|
|
322
|
+
* and has a `localStartDate` within the range of the provided `fromLocalDate` and `toLocalDate` exclusive.
|
|
323
|
+
*
|
|
324
|
+
*
|
|
325
|
+
* ### AvailableResources in response:
|
|
326
|
+
* <blockquote class="important">
|
|
327
|
+
* <p><strong>Important:</strong><br/>
|
|
328
|
+
* By default,
|
|
329
|
+
* if you don't specify `includeResourceTypeIds` or `resourceIds` filters in request,
|
|
330
|
+
* we return `TimeSlot`'s with an empty `AvailableResources`.
|
|
331
|
+
* </p>
|
|
332
|
+
* </blockquote>
|
|
333
|
+
*
|
|
334
|
+
* If you wish to get a list of available resources for each `TimeSlot` you should either:
|
|
335
|
+
* + provide `resourceIds` in request.
|
|
336
|
+
* + provide `includeResourceTypeIds` in request.
|
|
337
|
+
*
|
|
338
|
+
* > __Notes:__
|
|
339
|
+
* >
|
|
340
|
+
* > + In both cases the returned `TimeSlot`'s contains __up__ to 10 `AvailableResources` that match the provided filters.
|
|
341
|
+
* > Each `AvailableResources` contains __up__ to 10 available `resources` of the same type that match the provided filters.
|
|
342
|
+
* >
|
|
343
|
+
* > + If an `AvailableResources` has more available resources which are not listed within it,
|
|
344
|
+
* > we return `AvailableResources`.`hasMoreAvailableResources` as true.
|
|
345
|
+
* > + If you wish to get the full available resources list for a specific `TimeSlot`,
|
|
346
|
+
* > you can call [GetAvailabilityTimeSlot](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/service-availability-time-slots/get-availability-time-slot).
|
|
347
|
+
*
|
|
348
|
+
*
|
|
349
|
+
* ### Availability VS Bookability:
|
|
350
|
+
* An available time slot is not necessarily bookable.
|
|
351
|
+
*
|
|
352
|
+
* The `bookable` field of a `TimeSlot` indicates whether a customer can book the service within the given time slot,
|
|
353
|
+
* at a specific period of time.
|
|
354
|
+
* 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).
|
|
355
|
+
*
|
|
356
|
+
* By default,
|
|
357
|
+
* + The response does not contains unavailable `TimeSlot`'s.
|
|
358
|
+
* For example,
|
|
359
|
+
* if there are no available resources to provide the service from `2024-01-30T14:30:00` to `2024-01-30T15:30:00`,
|
|
360
|
+
* we don't return `TimeSlot`'s with `localStartDate` within this range.
|
|
361
|
+
* + The response contains both `bookable` and `un-bookable` `TimeSlot`'s.
|
|
362
|
+
* For example,
|
|
363
|
+
* if the service has a booking policy which enforces booking the service up to 10 minutes before the session starts,
|
|
364
|
+
* we return `TimeSlot`'s with the violating `localStartDate` with `bookable` as false.
|
|
365
|
+
* If you want to list only __bookable__ `TimeSlots` you should pass `bookable` as true.
|
|
366
|
+
*
|
|
367
|
+
* <blockquote class="important">
|
|
368
|
+
* <p><strong>Important:</strong><br/>
|
|
369
|
+
* Because of DST, there are edge cases where certain times either do not exist or exist twice for a local time zone.
|
|
370
|
+
* 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)
|
|
371
|
+
* </p>
|
|
372
|
+
* </blockquote>
|
|
373
|
+
*
|
|
374
|
+
*
|
|
375
|
+
* ### Pagination:
|
|
376
|
+
* You can specify how many `TimeSlot`'s will return in response by providing a `limit`
|
|
377
|
+
* for the `cursorPaging` in request.
|
|
378
|
+
*
|
|
379
|
+
* If there are more `TimeSlot`s that match the provided filters, we return a `cursorPagingMetaData`
|
|
380
|
+
* with `hasNext` = true and a `cursors`.`next` that points to the next page of results.
|
|
381
|
+
* In order to retrieve the next page of results, you should only provide `cursorPaging` with a limit and the cursor
|
|
382
|
+
* you got in previous call to `cursorPaging`.`cursor` in the request of the following call.
|
|
383
|
+
*
|
|
384
|
+
* By default,
|
|
385
|
+
* the response contains at most 1000 results.
|
|
386
|
+
* If there are more than 1000 results, we return a `cursorPagingMetadata` with
|
|
387
|
+
* a cursor for the next page of results, regardless of whether a `cursorPaging`
|
|
388
|
+
* was provided in request.
|
|
389
|
+
*
|
|
390
|
+
* #### ListAvailabilityTimeSlots runs with the following defaults:
|
|
391
|
+
* + `cursorPaging`.`limit` is 1000.
|
|
392
|
+
* + `localStartDate` is sorted in `ASC` order.
|
|
393
|
+
* @public
|
|
394
|
+
* @documentationMaturity preview
|
|
395
|
+
* @permissionScope Read Bookings - Public Data
|
|
396
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
397
|
+
* @permissionScope Read Bookings - Including Participants
|
|
398
|
+
* @permissionScope Read Bookings - all read permissions
|
|
399
|
+
* @permissionScope Read Bookings Calendar Availability
|
|
400
|
+
* @permissionScope Manage Bookings - all permissions
|
|
401
|
+
* @applicableIdentity APP
|
|
402
|
+
* @applicableIdentity MEMBER
|
|
403
|
+
* @applicableIdentity VISITOR
|
|
404
|
+
*/
|
|
405
|
+
export function listAvailabilityTimeSlots(options) {
|
|
406
|
+
var _a, _b, _c;
|
|
407
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
408
|
+
const requestTransformation = {
|
|
409
|
+
serviceId: '$[0].serviceId',
|
|
410
|
+
fromLocalDate: '$[0].fromLocalDate',
|
|
411
|
+
toLocalDate: '$[0].toLocalDate',
|
|
412
|
+
timeZone: '$[0].timeZone',
|
|
413
|
+
locations: '$[0].locations',
|
|
414
|
+
resourceIds: '$[0].resourceIds',
|
|
415
|
+
includeResourceTypeIds: '$[0].includeResourceTypeIds',
|
|
416
|
+
bookable: '$[0].bookable',
|
|
417
|
+
bookingPolicyViolations: '$[0].bookingPolicyViolations',
|
|
418
|
+
timeSlotsPerDay: '$[0].timeSlotsPerDay',
|
|
419
|
+
cursorPaging: '$[0].cursorPaging',
|
|
420
|
+
};
|
|
421
|
+
const responseTransformation = '$';
|
|
422
|
+
// @ts-ignore
|
|
423
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
424
|
+
const { toAmbassadorRequest } = serializer({
|
|
425
|
+
rootSchema: _listAvailabilityTimeSlotsRequest,
|
|
426
|
+
depSchemas: {},
|
|
427
|
+
fqdnTransformation: {
|
|
428
|
+
paths: [],
|
|
429
|
+
transformation: _fromVeloEntity,
|
|
430
|
+
},
|
|
431
|
+
customTransformation: requestTransformation,
|
|
432
|
+
});
|
|
433
|
+
const { fromJSON } = serializer({
|
|
434
|
+
rootSchema: _listAvailabilityTimeSlotsResponse,
|
|
435
|
+
depSchemas: {},
|
|
436
|
+
fqdnTransformation: {
|
|
437
|
+
paths: [...['Array#timeSlots']],
|
|
438
|
+
transformation: _toVeloEntity,
|
|
439
|
+
},
|
|
440
|
+
customTransformation: responseTransformation,
|
|
441
|
+
});
|
|
442
|
+
const payload = toAmbassadorRequest([options]);
|
|
443
|
+
const reqOpts = ambassadorWixBookingsAvailabilityV2TimeSlot.listAvailabilityTimeSlots(payload);
|
|
444
|
+
__log(`"ListAvailabilityTimeSlots" sending request with: ${__inspect(reqOpts)}`);
|
|
445
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
446
|
+
try {
|
|
447
|
+
const result = yield httpClient.request(reqOpts);
|
|
448
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
449
|
+
return fromJSON(result.data);
|
|
450
|
+
}
|
|
451
|
+
catch (err) {
|
|
452
|
+
const transformedError = transformError(err, requestTransformation, [
|
|
453
|
+
'options',
|
|
454
|
+
]);
|
|
455
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
456
|
+
throw transformedError;
|
|
457
|
+
}
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* Retrieves an available `TimeSlot` that match the provided filters.
|
|
462
|
+
*
|
|
463
|
+
* Throws `SlotNotFound` if there is no such available time slot.
|
|
464
|
+
*
|
|
465
|
+
* <blockquote class="important">
|
|
466
|
+
* <p><strong>Important:</strong><br/>
|
|
467
|
+
* Currently supported only for services of type `APPOINTMENT`.
|
|
468
|
+
* </p>
|
|
469
|
+
* </blockquote>
|
|
470
|
+
*
|
|
471
|
+
* By default,
|
|
472
|
+
* if you don't provide `includeResourceTypeIds` or `resourceIds` in request,
|
|
473
|
+
* we return all `AvailableResources` with all `AvailableResources`.`resources` which are available to provide
|
|
474
|
+
* the service within the time slot.
|
|
475
|
+
*
|
|
476
|
+
* If you specify `includeResourceTypeIds` or `resourceIds` in request,
|
|
477
|
+
* the returned `TimeSlot` will contain only `AvailableResources` with at least one available resource
|
|
478
|
+
* which match the given resources filters,
|
|
479
|
+
* each contains all available resources out of those requested.
|
|
480
|
+
* @param serviceId - Service ID of the time slot.
|
|
481
|
+
* Currently supports only services of type `Appointment`.
|
|
482
|
+
* @public
|
|
483
|
+
* @documentationMaturity preview
|
|
484
|
+
* @requiredField options.localEndDate
|
|
485
|
+
* @requiredField options.localStartDate
|
|
486
|
+
* @requiredField options.location
|
|
487
|
+
* @requiredField options.timeZone
|
|
488
|
+
* @requiredField serviceId
|
|
489
|
+
* @permissionScope Read Bookings - Public Data
|
|
490
|
+
* @permissionScope Manage Bookings Services and Settings
|
|
491
|
+
* @permissionScope Read Bookings - Including Participants
|
|
492
|
+
* @permissionScope Read Bookings - all read permissions
|
|
493
|
+
* @permissionScope Read Bookings Calendar Availability
|
|
494
|
+
* @permissionScope Manage Bookings - all permissions
|
|
495
|
+
* @applicableIdentity APP
|
|
496
|
+
* @applicableIdentity MEMBER
|
|
497
|
+
* @applicableIdentity VISITOR
|
|
498
|
+
*/
|
|
499
|
+
export function getAvailabilityTimeSlot(serviceId, options) {
|
|
500
|
+
var _a, _b, _c;
|
|
501
|
+
return __awaiter(this, arguments, void 0, function* () {
|
|
502
|
+
const requestTransformation = {
|
|
503
|
+
serviceId: '$[0]',
|
|
504
|
+
localStartDate: '$[1].localStartDate',
|
|
505
|
+
localEndDate: '$[1].localEndDate',
|
|
506
|
+
timeZone: '$[1].timeZone',
|
|
507
|
+
location: '$[1].location',
|
|
508
|
+
resourceIds: '$[1].resourceIds',
|
|
509
|
+
includeResourceTypeIds: '$[1].includeResourceTypeIds',
|
|
510
|
+
};
|
|
511
|
+
const responseTransformation = '$';
|
|
512
|
+
// @ts-ignore
|
|
513
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
514
|
+
const { toAmbassadorRequest } = serializer({
|
|
515
|
+
rootSchema: _getAvailabilityTimeSlotRequest,
|
|
516
|
+
depSchemas: {},
|
|
517
|
+
fqdnTransformation: {
|
|
518
|
+
paths: [],
|
|
519
|
+
transformation: _fromVeloEntity,
|
|
520
|
+
},
|
|
521
|
+
customTransformation: requestTransformation,
|
|
522
|
+
});
|
|
523
|
+
const { fromJSON } = serializer({
|
|
524
|
+
rootSchema: _getAvailabilityTimeSlotResponse,
|
|
525
|
+
depSchemas: {},
|
|
526
|
+
fqdnTransformation: {
|
|
527
|
+
paths: [...['timeSlot']],
|
|
528
|
+
transformation: _toVeloEntity,
|
|
529
|
+
},
|
|
530
|
+
customTransformation: responseTransformation,
|
|
531
|
+
});
|
|
532
|
+
const payload = toAmbassadorRequest([serviceId, options]);
|
|
533
|
+
const reqOpts = ambassadorWixBookingsAvailabilityV2TimeSlot.getAvailabilityTimeSlot(payload);
|
|
534
|
+
__log(`"GetAvailabilityTimeSlot" sending request with: ${__inspect(reqOpts)}`);
|
|
535
|
+
(_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
|
|
536
|
+
try {
|
|
537
|
+
const result = yield httpClient.request(reqOpts);
|
|
538
|
+
(_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
|
|
539
|
+
return fromJSON(result.data);
|
|
540
|
+
}
|
|
541
|
+
catch (err) {
|
|
542
|
+
const transformedError = transformError(err, requestTransformation, [
|
|
543
|
+
'serviceId',
|
|
544
|
+
'options',
|
|
545
|
+
]);
|
|
546
|
+
(_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
|
|
547
|
+
throw transformedError;
|
|
548
|
+
}
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
//# sourceMappingURL=bookings-availability-v2-time-slot.universal.js.map
|
|
@@ -0,0 +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,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAErE,OAAO,KAAK,2CAA2C,MAAM,2CAA2C,CAAC;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,SA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OAAO,GACX,2CAA2C,CAAC,uBAAuB,CACjE,OAAO,CACR,CAAC;QAEJ,KAAK,CACH,mDAAmD,SAAS,CAAC,OAAO,CAAC,EAAE,CACxE,CAAC;QAEF,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,UAAU,+CAAvB,WAAW,CAAgB,CAAC;QAC5B,IAAI;YACF,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACjD,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,SAAS,+CAAtB,WAAW,EAAc,MAAM,CAAC,CAAC;YAEjC,OAAO,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAQ,CAAC;SACrC;QAAC,OAAO,GAAQ,EAAE;YACjB,MAAM,gBAAgB,GAAG,cAAc,CAAC,GAAG,EAAE,qBAAqB,EAAE;gBAClE,WAAW;gBACX,SAAS;aACV,CAAC,CAAC;YACH,MAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,OAAO,+CAApB,WAAW,EAAY,GAAG,CAAC,CAAC;YAE5B,MAAM,gBAAgB,CAAC;SACxB;;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/bookings",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.299",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -34,5 +34,5 @@
|
|
|
34
34
|
"groupId": "com.wixpress.public-sdk-autogen"
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
-
"falconPackageHash": "
|
|
37
|
+
"falconPackageHash": "8001663d601d28733866c63e36060394148e112021f749f3221e4d4d"
|
|
38
38
|
}
|