@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,577 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
5
+ }) : (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ o[k2] = m[k];
8
+ }));
9
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
10
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
11
+ }) : function(o, v) {
12
+ o["default"] = v;
13
+ });
14
+ var __importStar = (this && this.__importStar) || function (mod) {
15
+ if (mod && mod.__esModule) return mod;
16
+ var result = {};
17
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
18
+ __setModuleDefault(result, mod);
19
+ return result;
20
+ };
21
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
22
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
23
+ return new (P || (P = Promise))(function (resolve, reject) {
24
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
25
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
26
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
27
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
28
+ });
29
+ };
30
+ Object.defineProperty(exports, "__esModule", { value: true });
31
+ exports.getAvailabilityTimeSlot = exports.listAvailabilityTimeSlots = exports.getMultiServiceAvailabilityTimeSlot = exports.listMultiServiceAvailabilityTimeSlots = exports.LocationType = exports.__debug = void 0;
32
+ const velo_1 = require("@wix/metro-runtime/velo");
33
+ const ambassadorWixBookingsAvailabilityV2TimeSlot = __importStar(require("./bookings-availability-v2-time-slot.http"));
34
+ let __verbose = false;
35
+ function __log(...args) {
36
+ __verbose && console.log(...args);
37
+ }
38
+ function __inspect(obj) {
39
+ return obj;
40
+ }
41
+ exports.__debug = {
42
+ verboseLogging: {
43
+ on: () => (__verbose = true),
44
+ off: () => (__verbose = false),
45
+ },
46
+ };
47
+ const _toVeloEntity = '$';
48
+ const _fromVeloEntity = '$';
49
+ var LocationType;
50
+ (function (LocationType) {
51
+ LocationType["UNKNOWN_LOCATION_TYPE"] = "UNKNOWN_LOCATION_TYPE";
52
+ /** A business location, either the default business address, or locations defined for the business by the Business Info. */
53
+ LocationType["BUSINESS"] = "BUSINESS";
54
+ /** The location is unique to this service and isn't defined as one of the business locations. */
55
+ LocationType["CUSTOM"] = "CUSTOM";
56
+ /** The location can be determined by the customer and is not set up beforehand. */
57
+ LocationType["CUSTOMER"] = "CUSTOMER";
58
+ })(LocationType = exports.LocationType || (exports.LocationType = {}));
59
+ const _getAvailabilityTimeSlotRequest = {};
60
+ const _getAvailabilityTimeSlotResponse = {};
61
+ const _getMultiServiceAvailabilityTimeSlotRequest = {};
62
+ const _getMultiServiceAvailabilityTimeSlotResponse = {};
63
+ const _listAvailabilityTimeSlotsRequest = {};
64
+ const _listAvailabilityTimeSlotsResponse = {};
65
+ const _listMultiServiceAvailabilityTimeSlotsRequest = {};
66
+ const _listMultiServiceAvailabilityTimeSlotsResponse = {};
67
+ /**
68
+ * Retrieves a list of multiService `TimeSlot`'s that match the provided filters.
69
+ * <blockquote class="important">
70
+ * <p><strong>Important:</strong><br/>
71
+ * Currently supported only for services of type `APPOINTMENT`.
72
+ * </p>
73
+ * </blockquote>
74
+ *
75
+ * The request body __must__ include one of:
76
+ *
77
+ * + All of the following filters: `serviceId`, `fromLocalDate`, `toLocalDate`, `location`, and `timeZone`. You may add additional filters as you wish.
78
+ * + A `cursorPaging` with a valid `cursor` from previous response.
79
+ *
80
+ *
81
+ * 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 list of services in a specific location, within a given range of time.
83
+ *
84
+ * Each `TimeSlot`.`NestedTimeSlot` represents a single service from the given list. The order of the `NestedTimeSlots` is the same as the order
85
+ * of the given services in request.
86
+ *
87
+ * The first `NestedTimeSlot` has `localStartDate` within the given `fromLocalDate` and `toLocalDate` - exclusive,
88
+ * and each following `NestedTimeSlot` has a `localStartDate` that equals to the previous `NestedTimeSlot`'s `localEndDate`.
89
+ *
90
+ * > __Notes:__
91
+ * > + All nested time slots share the same location.
92
+ * > + You can pass up to 8 services in request.
93
+ *
94
+ * ### AvailableResources in response:
95
+ * <blockquote class="important">
96
+ * <p><strong>Important:</strong><br/>
97
+ * By default,
98
+ * if you don't specify `service`.`includeResourceTypeIds` or `service`.`resourceIds` filters in request,
99
+ * we return `TimeSlot`.`NestedTimeSlot`'s with an empty `AvailableResources`.
100
+ * </p>
101
+ * </blockquote>
102
+ *
103
+ * If you wish to get a list of available resources for a `TimeSlot`.`NestedTimeSlot` you should either:
104
+ * + provide `service`.`resourceIds` in request.
105
+ * + provide `service`.`includeResourceTypeIds` in request.
106
+ *
107
+ * > __Notes:__
108
+ * >
109
+ * > + In both cases the returned `TimeSlot`.`NestedTimeSlot`'s contains __up__ to 10 `AvailableResources` that match the provided filters.
110
+ * > Each `AvailableResources` contains __up__ to 10 available `resources` of the same type that match the provided filters.
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
+ *
117
+ *
118
+ * ### Availability VS Bookability:
119
+ * An available time slot is not necessarily bookable.
120
+ *
121
+ * The `bookable` field of a `TimeSlot` indicates whether the customer can book all of the of the services within the given time slot,
122
+ * at a specific period of time.
123
+ * 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
+ *
125
+ * By default,
126
+ * + The response does not contains unavailable `TimeSlot`'s.
127
+ * For example,
128
+ * if there are no available resources to provide the service from `2024-01-30T14:30:00` to `2024-01-30T15:30:00`,
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.
137
+ *
138
+ * <blockquote class="important">
139
+ * <p><strong>Important:</strong><br/>
140
+ * 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 [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)
142
+ * </p>
143
+ * </blockquote>
144
+ *
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.
163
+ * + `localStartDate` is sorted in `ASC` order.
164
+ * @public
165
+ * @documentationMaturity preview
166
+ * @permissionScope Read Bookings - Public Data
167
+ * @permissionScope Manage Bookings Services and Settings
168
+ * @permissionScope Read Bookings - Including Participants
169
+ * @permissionScope Read Bookings - all read permissions
170
+ * @permissionScope Read Bookings Calendar Availability
171
+ * @permissionScope Manage Bookings - all permissions
172
+ * @applicableIdentity APP
173
+ * @applicableIdentity MEMBER
174
+ * @applicableIdentity VISITOR
175
+ */
176
+ function listMultiServiceAvailabilityTimeSlots(options) {
177
+ var _a, _b, _c;
178
+ return __awaiter(this, arguments, void 0, function* () {
179
+ const requestTransformation = {
180
+ services: '$[0].services',
181
+ fromLocalDate: '$[0].fromLocalDate',
182
+ toLocalDate: '$[0].toLocalDate',
183
+ timeZone: '$[0].timeZone',
184
+ location: '$[0].location',
185
+ bookable: '$[0].bookable',
186
+ bookingPolicyViolations: '$[0].bookingPolicyViolations',
187
+ timeSlotsPerDay: '$[0].timeSlotsPerDay',
188
+ cursorPaging: '$[0].cursorPaging',
189
+ };
190
+ const responseTransformation = '$';
191
+ // @ts-ignore
192
+ const { httpClient, sideEffects } = arguments[1];
193
+ const { toAmbassadorRequest } = (0, velo_1.serializer)({
194
+ rootSchema: _listMultiServiceAvailabilityTimeSlotsRequest,
195
+ depSchemas: {},
196
+ fqdnTransformation: {
197
+ paths: [],
198
+ transformation: _fromVeloEntity,
199
+ },
200
+ customTransformation: requestTransformation,
201
+ });
202
+ const { fromJSON } = (0, velo_1.serializer)({
203
+ rootSchema: _listMultiServiceAvailabilityTimeSlotsResponse,
204
+ depSchemas: {},
205
+ fqdnTransformation: {
206
+ paths: [...['Array#timeSlots']],
207
+ transformation: _toVeloEntity,
208
+ },
209
+ customTransformation: responseTransformation,
210
+ });
211
+ const payload = toAmbassadorRequest([options]);
212
+ const reqOpts = ambassadorWixBookingsAvailabilityV2TimeSlot.listMultiServiceAvailabilityTimeSlots(payload);
213
+ __log(`"ListMultiServiceAvailabilityTimeSlots" sending request with: ${__inspect(reqOpts)}`);
214
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
215
+ try {
216
+ const result = yield httpClient.request(reqOpts);
217
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
218
+ return fromJSON(result.data);
219
+ }
220
+ catch (err) {
221
+ const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
222
+ 'options',
223
+ ]);
224
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
225
+ throw transformedError;
226
+ }
227
+ });
228
+ }
229
+ exports.listMultiServiceAvailabilityTimeSlots = listMultiServiceAvailabilityTimeSlots;
230
+ /**
231
+ * Retrieves an available multiService `TimeSlot` that match the provided filters.
232
+ *
233
+ * Throws `SlotNotFound` if there is no such available time slot.
234
+ *
235
+ * <blockquote class="important">
236
+ * <p><strong>Important:</strong><br/>
237
+ * Currently supported only for services of type `APPOINTMENT`.
238
+ * </p>
239
+ * </blockquote>
240
+ *
241
+ * By default,
242
+ * if you don't provide a `service`.`includeResourceTypeIds` or `service`.`resourceIds` in request,
243
+ * we return for each `TimeSlot`.`NestedTimeSlot` all `AvailableResources` with all `AvailableResources`.`resources` which are available to provide
244
+ * the corresponding service within the time slot.
245
+ *
246
+ * If you specify `service`.`includeResourceTypeIds` or `service`.`resourceIds` in request,
247
+ * the returned `TimeSlot`.`NestedTimeSlot` for this service will contain only `AvailableResources` with at least one available resource
248
+ * which match the given resources filters,
249
+ * each contains all available resources out of those requested.
250
+ *
251
+ * + Notes:
252
+ * + All nested time slots share the same location.
253
+ * + You can pass up to 8 services.
254
+ * @param services - Services for which the multiService time slots are being returned for.
255
+ * Each service contains its own resources filters within.
256
+ *
257
+ * MinSize: 2.
258
+ * MaxSize: 8.
259
+ * @public
260
+ * @documentationMaturity preview
261
+ * @requiredField options
262
+ * @requiredField options.localEndDate
263
+ * @requiredField options.localStartDate
264
+ * @requiredField options.location
265
+ * @requiredField options.location.locationType
266
+ * @requiredField options.timeZone
267
+ * @requiredField services
268
+ * @requiredField services.serviceId
269
+ * @permissionScope Read Bookings - Public Data
270
+ * @permissionScope Manage Bookings Services and Settings
271
+ * @permissionScope Read Bookings - Including Participants
272
+ * @permissionScope Read Bookings - all read permissions
273
+ * @permissionScope Read Bookings Calendar Availability
274
+ * @permissionScope Manage Bookings - all permissions
275
+ * @applicableIdentity APP
276
+ * @applicableIdentity MEMBER
277
+ * @applicableIdentity VISITOR
278
+ */
279
+ function getMultiServiceAvailabilityTimeSlot(services, options) {
280
+ var _a, _b, _c;
281
+ return __awaiter(this, arguments, void 0, function* () {
282
+ const requestTransformation = {
283
+ services: '$[0]',
284
+ localStartDate: '$[1].localStartDate',
285
+ localEndDate: '$[1].localEndDate',
286
+ timeZone: '$[1].timeZone',
287
+ location: '$[1].location',
288
+ };
289
+ const responseTransformation = '$';
290
+ // @ts-ignore
291
+ const { httpClient, sideEffects } = arguments[2];
292
+ const { toAmbassadorRequest } = (0, velo_1.serializer)({
293
+ rootSchema: _getMultiServiceAvailabilityTimeSlotRequest,
294
+ depSchemas: {},
295
+ fqdnTransformation: {
296
+ paths: [],
297
+ transformation: _fromVeloEntity,
298
+ },
299
+ customTransformation: requestTransformation,
300
+ });
301
+ const { fromJSON } = (0, velo_1.serializer)({
302
+ rootSchema: _getMultiServiceAvailabilityTimeSlotResponse,
303
+ depSchemas: {},
304
+ fqdnTransformation: {
305
+ paths: [...['timeSlot']],
306
+ transformation: _toVeloEntity,
307
+ },
308
+ customTransformation: responseTransformation,
309
+ });
310
+ const payload = toAmbassadorRequest([services, options]);
311
+ const reqOpts = ambassadorWixBookingsAvailabilityV2TimeSlot.getMultiServiceAvailabilityTimeSlot(payload);
312
+ __log(`"GetMultiServiceAvailabilityTimeSlot" sending request with: ${__inspect(reqOpts)}`);
313
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
314
+ try {
315
+ const result = yield httpClient.request(reqOpts);
316
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
317
+ return fromJSON(result.data);
318
+ }
319
+ catch (err) {
320
+ const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
321
+ 'services',
322
+ 'options',
323
+ ]);
324
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
325
+ throw transformedError;
326
+ }
327
+ });
328
+ }
329
+ exports.getMultiServiceAvailabilityTimeSlot = getMultiServiceAvailabilityTimeSlot;
330
+ /**
331
+ * Retrieves a list of `TimeSlot`'s that match the provided filters.
332
+ *
333
+ * <blockquote class="important">
334
+ * <p><strong>Important:</strong><br/>
335
+ * Currently supported only for services of type `APPOINTMENT`.
336
+ * </p>
337
+ * </blockquote>
338
+ *
339
+ * The request body __must__ include one of:
340
+ *
341
+ * + All of the following filters: `serviceId`, `fromLocalDate`, `toLocalDate`, and `timeZone`. You may add additional filters as you wish.
342
+ * + A `cursorPaging` with a valid `cursor` from previous response.
343
+ *
344
+ * Each [TimeSlot](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/availability-time-slots/time-slot-object) in response
345
+ * represents the availability of the service in a specific location,
346
+ * and has a `localStartDate` within the range of the provided `fromLocalDate` and `toLocalDate` exclusive.
347
+ *
348
+ *
349
+ * ### AvailableResources in response:
350
+ * <blockquote class="important">
351
+ * <p><strong>Important:</strong><br/>
352
+ * By default,
353
+ * if you don't specify `includeResourceTypeIds` or `resourceIds` filters in request,
354
+ * we return `TimeSlot`'s with an empty `AvailableResources`.
355
+ * </p>
356
+ * </blockquote>
357
+ *
358
+ * If you wish to get a list of available resources for each `TimeSlot` you should either:
359
+ * + provide `resourceIds` in request.
360
+ * + provide `includeResourceTypeIds` in request.
361
+ *
362
+ * > __Notes:__
363
+ * >
364
+ * > + In both cases the returned `TimeSlot`'s contains __up__ to 10 `AvailableResources` that match the provided filters.
365
+ * > Each `AvailableResources` contains __up__ to 10 available `resources` of the same type that match the provided filters.
366
+ * >
367
+ * > + If an `AvailableResources` has more available resources which are not listed within it,
368
+ * > we return `AvailableResources`.`hasMoreAvailableResources` as true.
369
+ * > + If you wish to get the full available resources list for a specific `TimeSlot`,
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
+ *
372
+ *
373
+ * ### Availability VS Bookability:
374
+ * An available time slot is not necessarily bookable.
375
+ *
376
+ * The `bookable` field of a `TimeSlot` indicates whether a customer can book the service within the given time slot,
377
+ * at a specific period of time.
378
+ * 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
+ *
380
+ * By default,
381
+ * + The response does not contains unavailable `TimeSlot`'s.
382
+ * For example,
383
+ * 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 `TimeSlot`'s with `localStartDate` within this range.
385
+ * + The response contains both `bookable` and `un-bookable` `TimeSlot`'s.
386
+ * For example,
387
+ * if the service has a booking policy which enforces booking the service up to 10 minutes before the session starts,
388
+ * we return `TimeSlot`'s with the violating `localStartDate` with `bookable` as false.
389
+ * If you want to list only __bookable__ `TimeSlots` you should pass `bookable` as true.
390
+ *
391
+ * <blockquote class="important">
392
+ * <p><strong>Important:</strong><br/>
393
+ * 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 [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)
395
+ * </p>
396
+ * </blockquote>
397
+ *
398
+ *
399
+ * ### Pagination:
400
+ * You can specify how many `TimeSlot`'s will return in response by providing a `limit`
401
+ * for the `cursorPaging` in request.
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.
417
+ * @public
418
+ * @documentationMaturity preview
419
+ * @permissionScope Read Bookings - Public Data
420
+ * @permissionScope Manage Bookings Services and Settings
421
+ * @permissionScope Read Bookings - Including Participants
422
+ * @permissionScope Read Bookings - all read permissions
423
+ * @permissionScope Read Bookings Calendar Availability
424
+ * @permissionScope Manage Bookings - all permissions
425
+ * @applicableIdentity APP
426
+ * @applicableIdentity MEMBER
427
+ * @applicableIdentity VISITOR
428
+ */
429
+ function listAvailabilityTimeSlots(options) {
430
+ var _a, _b, _c;
431
+ return __awaiter(this, arguments, void 0, function* () {
432
+ const requestTransformation = {
433
+ serviceId: '$[0].serviceId',
434
+ fromLocalDate: '$[0].fromLocalDate',
435
+ toLocalDate: '$[0].toLocalDate',
436
+ timeZone: '$[0].timeZone',
437
+ locations: '$[0].locations',
438
+ resourceIds: '$[0].resourceIds',
439
+ includeResourceTypeIds: '$[0].includeResourceTypeIds',
440
+ bookable: '$[0].bookable',
441
+ bookingPolicyViolations: '$[0].bookingPolicyViolations',
442
+ timeSlotsPerDay: '$[0].timeSlotsPerDay',
443
+ cursorPaging: '$[0].cursorPaging',
444
+ };
445
+ const responseTransformation = '$';
446
+ // @ts-ignore
447
+ const { httpClient, sideEffects } = arguments[1];
448
+ const { toAmbassadorRequest } = (0, velo_1.serializer)({
449
+ rootSchema: _listAvailabilityTimeSlotsRequest,
450
+ depSchemas: {},
451
+ fqdnTransformation: {
452
+ paths: [],
453
+ transformation: _fromVeloEntity,
454
+ },
455
+ customTransformation: requestTransformation,
456
+ });
457
+ const { fromJSON } = (0, velo_1.serializer)({
458
+ rootSchema: _listAvailabilityTimeSlotsResponse,
459
+ depSchemas: {},
460
+ fqdnTransformation: {
461
+ paths: [...['Array#timeSlots']],
462
+ transformation: _toVeloEntity,
463
+ },
464
+ customTransformation: responseTransformation,
465
+ });
466
+ const payload = toAmbassadorRequest([options]);
467
+ const reqOpts = ambassadorWixBookingsAvailabilityV2TimeSlot.listAvailabilityTimeSlots(payload);
468
+ __log(`"ListAvailabilityTimeSlots" sending request with: ${__inspect(reqOpts)}`);
469
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
470
+ try {
471
+ const result = yield httpClient.request(reqOpts);
472
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
473
+ return fromJSON(result.data);
474
+ }
475
+ catch (err) {
476
+ const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
477
+ 'options',
478
+ ]);
479
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
480
+ throw transformedError;
481
+ }
482
+ });
483
+ }
484
+ exports.listAvailabilityTimeSlots = listAvailabilityTimeSlots;
485
+ /**
486
+ * Retrieves an available `TimeSlot` that match the provided filters.
487
+ *
488
+ * Throws `SlotNotFound` if there is no such available time slot.
489
+ *
490
+ * <blockquote class="important">
491
+ * <p><strong>Important:</strong><br/>
492
+ * Currently supported only for services of type `APPOINTMENT`.
493
+ * </p>
494
+ * </blockquote>
495
+ *
496
+ * By default,
497
+ * if you don't provide `includeResourceTypeIds` or `resourceIds` in request,
498
+ * we return all `AvailableResources` with all `AvailableResources`.`resources` which are available to provide
499
+ * the service within the time slot.
500
+ *
501
+ * If you specify `includeResourceTypeIds` or `resourceIds` in request,
502
+ * the returned `TimeSlot` will contain only `AvailableResources` with at least one available resource
503
+ * which match the given resources filters,
504
+ * each contains all available resources out of those requested.
505
+ * @param serviceId - Service ID of the time slot.
506
+ * Currently supports only services of type `Appointment`.
507
+ * @public
508
+ * @documentationMaturity preview
509
+ * @requiredField options.localEndDate
510
+ * @requiredField options.localStartDate
511
+ * @requiredField options.location
512
+ * @requiredField options.timeZone
513
+ * @requiredField serviceId
514
+ * @permissionScope Read Bookings - Public Data
515
+ * @permissionScope Manage Bookings Services and Settings
516
+ * @permissionScope Read Bookings - Including Participants
517
+ * @permissionScope Read Bookings - all read permissions
518
+ * @permissionScope Read Bookings Calendar Availability
519
+ * @permissionScope Manage Bookings - all permissions
520
+ * @applicableIdentity APP
521
+ * @applicableIdentity MEMBER
522
+ * @applicableIdentity VISITOR
523
+ */
524
+ function getAvailabilityTimeSlot(serviceId, options) {
525
+ var _a, _b, _c;
526
+ return __awaiter(this, arguments, void 0, function* () {
527
+ const requestTransformation = {
528
+ serviceId: '$[0]',
529
+ localStartDate: '$[1].localStartDate',
530
+ localEndDate: '$[1].localEndDate',
531
+ timeZone: '$[1].timeZone',
532
+ location: '$[1].location',
533
+ resourceIds: '$[1].resourceIds',
534
+ includeResourceTypeIds: '$[1].includeResourceTypeIds',
535
+ };
536
+ const responseTransformation = '$';
537
+ // @ts-ignore
538
+ const { httpClient, sideEffects } = arguments[2];
539
+ const { toAmbassadorRequest } = (0, velo_1.serializer)({
540
+ rootSchema: _getAvailabilityTimeSlotRequest,
541
+ depSchemas: {},
542
+ fqdnTransformation: {
543
+ paths: [],
544
+ transformation: _fromVeloEntity,
545
+ },
546
+ customTransformation: requestTransformation,
547
+ });
548
+ const { fromJSON } = (0, velo_1.serializer)({
549
+ rootSchema: _getAvailabilityTimeSlotResponse,
550
+ depSchemas: {},
551
+ fqdnTransformation: {
552
+ paths: [...['timeSlot']],
553
+ transformation: _toVeloEntity,
554
+ },
555
+ customTransformation: responseTransformation,
556
+ });
557
+ const payload = toAmbassadorRequest([serviceId, options]);
558
+ const reqOpts = ambassadorWixBookingsAvailabilityV2TimeSlot.getAvailabilityTimeSlot(payload);
559
+ __log(`"GetAvailabilityTimeSlot" sending request with: ${__inspect(reqOpts)}`);
560
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
561
+ try {
562
+ const result = yield httpClient.request(reqOpts);
563
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
564
+ return fromJSON(result.data);
565
+ }
566
+ catch (err) {
567
+ const transformedError = (0, velo_1.transformError)(err, requestTransformation, [
568
+ 'serviceId',
569
+ 'options',
570
+ ]);
571
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
572
+ throw transformedError;
573
+ }
574
+ });
575
+ }
576
+ exports.getAvailabilityTimeSlot = getAvailabilityTimeSlot;
577
+ //# 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,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;AAmH5B,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,+DAA+C,CAAA;IAC/C,4HAA4H;IAC5H,qCA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,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,IAAA,qBAAc,EAAC,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;AAtED,0DAsEC"}
@@ -2,6 +2,7 @@ export * as sessionsFeed from './src/bookings-calendar-v2-session-feed-event.pub
2
2
  export * as resources from './src/bookings-catalog-v1-resource.public';
3
3
  export * as categories from './src/bookings-v1-category.public';
4
4
  export * as availabilityCalendar from './src/bookings-availability-v1-slot-availability.public';
5
+ export * as timeSlots from './src/bookings-availability-v2-time-slot.public';
5
6
  export * as sessions from './src/bookings-calendar-v1-session.public';
6
7
  export * as externalCalendars from './src/bookings-calendar-v2-external-calendar.public';
7
8
  export * as sessionsView from './src/bookings-calendar-v2-session-view.public';
package/build/es/index.js CHANGED
@@ -2,6 +2,7 @@ export * as sessionsFeed from './src/bookings-calendar-v2-session-feed-event.pub
2
2
  export * as resources from './src/bookings-catalog-v1-resource.public';
3
3
  export * as categories from './src/bookings-v1-category.public';
4
4
  export * as availabilityCalendar from './src/bookings-availability-v1-slot-availability.public';
5
+ export * as timeSlots from './src/bookings-availability-v2-time-slot.public';
5
6
  export * as sessions from './src/bookings-calendar-v1-session.public';
6
7
  export * as externalCalendars from './src/bookings-calendar-v2-external-calendar.public';
7
8
  export * as sessionsView from './src/bookings-calendar-v2-session-view.public';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,YAAY,MAAM,sD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O,KAAK,OAAO,MAAM,qCAAqC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export * as resources from './src/bookings-catalog-v1-resource.universal';
2
2
  export * as categories from './src/bookings-v1-category.universal';
3
3
  export * as availabilityCalendar from './src/bookings-availability-v1-slot-availability.universal';
4
+ export * as timeSlots from './src/bookings-availability-v2-time-slot.universal';
4
5
  export * as sessions from './src/bookings-calendar-v1-session.universal';
5
6
  export * as externalCalendars from './src/bookings-calendar-v2-external-calendar.universal';
6
7
  export * as sessionsView from './src/bookings-calendar-v2-session-view.universal';
@@ -1,6 +1,7 @@
1
1
  export * as resources from './src/bookings-catalog-v1-resource.universal';
2
2
  export * as categories from './src/bookings-v1-category.universal';
3
3
  export * as availabilityCalendar from './src/bookings-availability-v1-slot-availability.universal';
4
+ export * as timeSlots from './src/bookings-availability-v2-time-slot.universal';
4
5
  export * as sessions from './src/bookings-calendar-v1-session.universal';
5
6
  export * as externalCalendars from './src/bookings-calendar-v2-external-calendar.universal';
6
7
  export * as sessionsView from './src/bookings-calendar-v2-session-view.universal';
@@ -1 +1 @@
1
- {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,8CAA8C,CAAC;AAC1E,OAAO,KAAK,UAAU,MAAM,sCAAsC,CAAC;AACnE,OAAO,KAAK,oBAAoB,MAAM,4DAA4D,CAAC;AACnG,OAAO,KAAK,QAAQ,MAAM,8CAA8C,CAAC;AACzE,OAAO,KAAK,iBAAiB,MAAM,wDAAwD,CAAC;AAC5F,OAAO,KAAK,YAAY,MAAM,mDAAmD,CAAC;AAClF,OAAO,KAAK,yBAAyB,MAAM,kEAAkE,CAAC;AAC9G,OAAO,KAAK,gBAAgB,MAAM,qDAAqD,CAAC;AACxF,OAAO,KAAK,QAAQ,MAAM,8CAA8C,CAAC;AACzE,OAAO,KAAK,UAAU,MAAM,wCAAwC,CAAC;AACrE,OAAO,KAAK,QAAQ,MAAM,qCAAqC,CAAC;AAChE,OAAO,KAAK,OAAO,MAAM,wCAAwC,CAAC"}
1
+ {"version":3,"file":"index.typings.js","sourceRoot":"","sources":["../../index.typings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,SAAS,MAAM,8CAA8C,CAAC;AAC1E,OAAO,KAAK,UAAU,MAAM,sCAAsC,CAAC;AACnE,OAAO,KAAK,oBAAoB,MAAM,4DAA4D,CAAC;AACnG,OAAO,KAAK,SAAS,MAAM,oDAAoD,CAAC;AAChF,OAAO,KAAK,QAAQ,MAAM,8CAA8C,CAAC;AACzE,OAAO,KAAK,iBAAiB,MAAM,wDAAwD,CAAC;AAC5F,OAAO,KAAK,YAAY,MAAM,mDAAmD,CAAC;AAClF,OAAO,KAAK,yBAAyB,MAAM,kEAAkE,CAAC;AAC9G,OAAO,KAAK,gBAAgB,MAAM,qDAAqD,CAAC;AACxF,OAAO,KAAK,QAAQ,MAAM,8CAA8C,CAAC;AACzE,OAAO,KAAK,UAAU,MAAM,wCAAwC,CAAC;AACrE,OAAO,KAAK,QAAQ,MAAM,qCAAqC,CAAC;AAChE,OAAO,KAAK,OAAO,MAAM,wCAAwC,CAAC"}
@@ -1,6 +1,7 @@
1
1
  export * as resources from './src/bookings-catalog-v1-resource.meta';
2
2
  export * as categories from './src/bookings-v1-category.meta';
3
3
  export * as availabilityCalendar from './src/bookings-availability-v1-slot-availability.meta';
4
+ export * as timeSlots from './src/bookings-availability-v2-time-slot.meta';
4
5
  export * as sessions from './src/bookings-calendar-v1-session.meta';
5
6
  export * as externalCalendars from './src/bookings-calendar-v2-external-calendar.meta';
6
7
  export * as sessionsView from './src/bookings-calendar-v2-session-view.meta';
package/build/es/meta.js CHANGED
@@ -1,6 +1,7 @@
1
1
  export * as resources from './src/bookings-catalog-v1-resource.meta';
2
2
  export * as categories from './src/bookings-v1-category.meta';
3
3
  export * as availabilityCalendar from './src/bookings-availability-v1-slot-availability.meta';
4
+ export * as timeSlots from './src/bookings-availability-v2-time-slot.meta';
4
5
  export * as sessions from './src/bookings-calendar-v1-session.meta';
5
6
  export * as externalCalendars from './src/bookings-calendar-v2-external-calendar.meta';
6
7
  export * as sessionsView from './src/bookings-calendar-v2-session-view.meta';