@wix/auto_sdk_bookings_multi-service-availability-time-slots 1.0.195 → 1.0.197
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.js.map +1 -1
- package/build/cjs/index.typings.d.ts +180 -175
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +180 -175
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +180 -175
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +180 -175
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +180 -175
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +180 -175
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +180 -175
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +180 -175
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/meta.d.mts
CHANGED
|
@@ -252,40 +252,36 @@ interface NonBookableReasons {
|
|
|
252
252
|
/** Whether the related event is cancelled. */
|
|
253
253
|
eventCancelled?: boolean | null;
|
|
254
254
|
}
|
|
255
|
-
interface
|
|
255
|
+
interface ListAvailabilityTimeSlotsRequest {
|
|
256
256
|
/**
|
|
257
|
-
*
|
|
258
|
-
*
|
|
259
|
-
*
|
|
260
|
-
* Required unless you specify `cursorPaging.cursor`.
|
|
261
|
-
*
|
|
262
|
-
* Min: 2 services
|
|
263
|
-
* Max: 8 services
|
|
264
|
-
* @maxSize 8
|
|
257
|
+
* Service ID for which to retrieve time slots. You must specify the ID of an appointment-based service.
|
|
258
|
+
* Required, unless you specify `cursorPaging.cursor`.
|
|
259
|
+
* @format GUID
|
|
265
260
|
*/
|
|
266
|
-
|
|
261
|
+
serviceId?: string | null;
|
|
267
262
|
/**
|
|
268
|
-
* Lower boundary for `localStartDate`
|
|
269
|
-
*
|
|
270
|
-
*
|
|
263
|
+
* Lower boundary for `localStartDate` to include in response.
|
|
264
|
+
* Each returned time slot has a `localStartDate` within the provided `fromLocalDate` and `toLocalDate` exclusive.
|
|
265
|
+
* Required, unless you specify `cursorPaging.cursor`.
|
|
271
266
|
*
|
|
272
|
-
*
|
|
267
|
+
* Local start date in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
268
|
+
* For example, `2026-01-30T13:30:00`.
|
|
273
269
|
* @format LOCAL_DATE_TIME
|
|
274
270
|
*/
|
|
275
271
|
fromLocalDate?: string | null;
|
|
276
272
|
/**
|
|
277
|
-
* Upper boundary for `
|
|
278
|
-
*
|
|
279
|
-
*
|
|
273
|
+
* Upper boundary for `localStartDate` to include in response.
|
|
274
|
+
* Each returned time slot has a `localStartDate` within the provided `fromLocalDate` and `toLocalDate` exclusive.
|
|
275
|
+
* Required, unless you specify `cursorPaging.cursor`.
|
|
280
276
|
*
|
|
281
|
-
*
|
|
277
|
+
* Local end date in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
278
|
+
* For example, `2026-01-30T13:30:00`.
|
|
282
279
|
* @format LOCAL_DATE_TIME
|
|
283
280
|
*/
|
|
284
281
|
toLocalDate?: string | null;
|
|
285
282
|
/**
|
|
286
|
-
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate
|
|
287
|
-
*
|
|
288
|
-
* Required unless you specify `cursorPaging.cursor`.
|
|
283
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
284
|
+
* For example, `America/New_York` or `UTC`.
|
|
289
285
|
*
|
|
290
286
|
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
291
287
|
* @minLength 1
|
|
@@ -293,19 +289,27 @@ interface ListMultiServiceAvailabilityTimeSlotsRequest {
|
|
|
293
289
|
*/
|
|
294
290
|
timeZone?: string | null;
|
|
295
291
|
/**
|
|
296
|
-
*
|
|
297
|
-
*
|
|
298
|
-
*
|
|
292
|
+
* Locations to include in response.
|
|
293
|
+
* If not specified, returns time slots for all locations where the service is available.
|
|
294
|
+
* @maxSize 5
|
|
299
295
|
*/
|
|
300
|
-
|
|
296
|
+
locations?: Location[];
|
|
301
297
|
/**
|
|
302
|
-
*
|
|
303
|
-
* If
|
|
298
|
+
* Resource type IDs to include in the response.
|
|
299
|
+
* If specified, returns up to 10 `availableResources` with matching `resourceTypeId`.
|
|
300
|
+
* This controls which resource details are included in the response but doesn't filter the time slots themselves.
|
|
301
|
+
* @format GUID
|
|
302
|
+
* @maxSize 100
|
|
303
|
+
*/
|
|
304
|
+
includeResourceTypeIds?: string[];
|
|
305
|
+
/**
|
|
306
|
+
* Whether the time slot is bookable according to the service's booking policies.
|
|
307
|
+
* If not specified, returns both bookable and un-bookable time slots.
|
|
304
308
|
*/
|
|
305
309
|
bookable?: boolean | null;
|
|
306
310
|
/**
|
|
307
311
|
* Indicators for service's booking policy violations.
|
|
308
|
-
* Allows filtering for time slots with specific violation types based on [booking policies](https://dev.wix.com/docs/api-reference/business-solutions/bookings/policies/booking-policies/introduction). When you don't specify `bookingPolicyViolations` filters, all slots are returned regardless of their booking policy status.
|
|
312
|
+
* Allows filtering for time slots with specific violation types based on [booking policies](https://dev.wix.com/docs/api-reference/business-solutions/bookings/policies/booking-policies/introduction)). When you don't specify `bookingPolicyViolations` filters, all slots are returned regardless of their booking policy status.
|
|
309
313
|
*/
|
|
310
314
|
bookingPolicyViolations?: BookingPolicyViolations;
|
|
311
315
|
/**
|
|
@@ -320,32 +324,11 @@ interface ListMultiServiceAvailabilityTimeSlotsRequest {
|
|
|
320
324
|
* When specifying a new `limit` in follow-up requests, the API respects the new value.
|
|
321
325
|
*/
|
|
322
326
|
cursorPaging?: CursorPaging;
|
|
323
|
-
}
|
|
324
|
-
interface Service {
|
|
325
|
-
/**
|
|
326
|
-
* Service ID.
|
|
327
|
-
* @format GUID
|
|
328
|
-
*/
|
|
329
|
-
serviceId?: string;
|
|
330
|
-
/**
|
|
331
|
-
* Resource [type IDs](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resource-types-v2/introduction) to include in returned time slots.
|
|
332
|
-
* This is in addition to the specifically requested resources.
|
|
333
|
-
*
|
|
334
|
-
* <blockquote>
|
|
335
|
-
* Currently supported only for Staff Member resource type.
|
|
336
|
-
* Staff members belong to resource type ID `1cd44cf8-756f-41c3-bd90-3e2ffcaf1155`.
|
|
337
|
-
* </blockquote>
|
|
338
|
-
* @format GUID
|
|
339
|
-
* @maxSize 100
|
|
340
|
-
*/
|
|
341
|
-
includeResourceTypeIds?: string[];
|
|
342
327
|
/**
|
|
343
|
-
* Selected customer choices.
|
|
344
|
-
* If specified, the
|
|
345
|
-
* If not specified, the service default configuration is used.
|
|
346
|
-
* Enforcing this field is the responsibility of the service plugin implementer, and not the Time Slots V2 API.
|
|
328
|
+
* Selected customer choices for service configuration.
|
|
329
|
+
* If not specified, uses the service's default configuration.
|
|
347
330
|
*/
|
|
348
|
-
customerChoices?:
|
|
331
|
+
customerChoices?: CustomerChoices;
|
|
349
332
|
/**
|
|
350
333
|
* Resource types to filter time slots.
|
|
351
334
|
* Only returns time slots that have these specific resource types available.
|
|
@@ -354,30 +337,46 @@ interface Service {
|
|
|
354
337
|
*/
|
|
355
338
|
resourceTypes?: ResourceType[];
|
|
356
339
|
}
|
|
340
|
+
interface CursorPaging {
|
|
341
|
+
/**
|
|
342
|
+
* Number of results to load.
|
|
343
|
+
*
|
|
344
|
+
* Default: `1000`.
|
|
345
|
+
* Max: `1000`.
|
|
346
|
+
* @max 1000
|
|
347
|
+
*/
|
|
348
|
+
limit?: number | null;
|
|
349
|
+
/**
|
|
350
|
+
* Pointer to the next or previous page in the list of results.
|
|
351
|
+
*
|
|
352
|
+
* You can get the relevant cursor token
|
|
353
|
+
* from the `pagingMetadata` object in the previous call's response.
|
|
354
|
+
* Not relevant for the first request.
|
|
355
|
+
*/
|
|
356
|
+
cursor?: string | null;
|
|
357
|
+
}
|
|
357
358
|
/**
|
|
358
359
|
* Selected customer choices.
|
|
359
360
|
* These choices are selected by the customer during the booking flow and can be utilized to calculate the corresponding service's configuration properties.
|
|
360
361
|
*/
|
|
361
|
-
interface
|
|
362
|
+
interface CustomerChoices {
|
|
362
363
|
/**
|
|
363
|
-
*
|
|
364
|
-
* Min: `1
|
|
365
|
-
* Max: `44639
|
|
366
|
-
* Default: `15` minutes
|
|
364
|
+
* The selected customer duration in minutes.
|
|
365
|
+
* Min: `1 minute`
|
|
366
|
+
* Max: `44639 minutes` (30 days, 23 hours, and 59 minutes)
|
|
367
367
|
* @min 1
|
|
368
368
|
* @max 44639
|
|
369
369
|
*/
|
|
370
370
|
durationInMinutes?: number | null;
|
|
371
371
|
/**
|
|
372
|
-
*
|
|
373
|
-
*
|
|
374
|
-
* Max: Calculated as the product of the maximum number of add-on groups multiplied by the maximum number of add-ons per group. Currently 21 (3 groups × 7 add-ons per group), but may change in the future.
|
|
372
|
+
* The selected add-ons IDs.
|
|
373
|
+
* Max: Derived from max amount of Add-On groups * max amount of Add-Ons per group.
|
|
375
374
|
* @format GUID
|
|
376
375
|
* @maxSize 21
|
|
377
376
|
*/
|
|
378
377
|
addOnIds?: string[] | null;
|
|
379
378
|
/**
|
|
380
|
-
*
|
|
379
|
+
* The selected duration choice ID.
|
|
381
380
|
* @format GUID
|
|
382
381
|
*/
|
|
383
382
|
durationChoiceId?: string | null;
|
|
@@ -396,25 +395,7 @@ interface ResourceType {
|
|
|
396
395
|
*/
|
|
397
396
|
resourceIds?: string[] | null;
|
|
398
397
|
}
|
|
399
|
-
interface
|
|
400
|
-
/**
|
|
401
|
-
* Number of results to load.
|
|
402
|
-
*
|
|
403
|
-
* Default: `1000`.
|
|
404
|
-
* Max: `1000`.
|
|
405
|
-
* @max 1000
|
|
406
|
-
*/
|
|
407
|
-
limit?: number | null;
|
|
408
|
-
/**
|
|
409
|
-
* Pointer to the next or previous page in the list of results.
|
|
410
|
-
*
|
|
411
|
-
* You can get the relevant cursor token
|
|
412
|
-
* from the `pagingMetadata` object in the previous call's response.
|
|
413
|
-
* Not relevant for the first request.
|
|
414
|
-
*/
|
|
415
|
-
cursor?: string | null;
|
|
416
|
-
}
|
|
417
|
-
interface ListMultiServiceAvailabilityTimeSlotsResponse {
|
|
398
|
+
interface ListAvailabilityTimeSlotsResponse {
|
|
418
399
|
/**
|
|
419
400
|
* Retrieved time slots.
|
|
420
401
|
* Sorted by `localStartDate` in ascending order. When multiple slots have the same start time, no specific secondary sorting is guaranteed.
|
|
@@ -424,6 +405,7 @@ interface ListMultiServiceAvailabilityTimeSlotsResponse {
|
|
|
424
405
|
/**
|
|
425
406
|
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
426
407
|
* For example, `America/New_York` or `UTC`.
|
|
408
|
+
*
|
|
427
409
|
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
428
410
|
* @minLength 1
|
|
429
411
|
* @maxLength 150
|
|
@@ -451,28 +433,27 @@ interface Cursors {
|
|
|
451
433
|
/** Cursor pointing to previous page in the list of results. */
|
|
452
434
|
prev?: string | null;
|
|
453
435
|
}
|
|
454
|
-
interface
|
|
436
|
+
interface GetAvailabilityTimeSlotRequest {
|
|
455
437
|
/**
|
|
456
|
-
*
|
|
457
|
-
* You
|
|
458
|
-
* @
|
|
459
|
-
* @maxSize 8
|
|
438
|
+
* Service ID of the time slot.
|
|
439
|
+
* You must specify the ID of an appointment-based service.
|
|
440
|
+
* @format GUID
|
|
460
441
|
*/
|
|
461
|
-
|
|
442
|
+
serviceId?: string;
|
|
462
443
|
/**
|
|
463
444
|
* Local start date of the time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
464
445
|
* For example, `2026-01-30T13:30:00`.
|
|
465
446
|
* @format LOCAL_DATE_TIME
|
|
466
447
|
*/
|
|
467
|
-
localStartDate
|
|
448
|
+
localStartDate?: string;
|
|
468
449
|
/**
|
|
469
450
|
* Local end date of the time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
470
451
|
* For example, `2026-01-30T13:30:00`.
|
|
471
452
|
* @format LOCAL_DATE_TIME
|
|
472
453
|
*/
|
|
473
|
-
localEndDate
|
|
454
|
+
localEndDate?: string;
|
|
474
455
|
/**
|
|
475
|
-
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate
|
|
456
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
476
457
|
* For example, `America/New_York` or `UTC`.
|
|
477
458
|
*
|
|
478
459
|
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
@@ -481,54 +462,87 @@ interface GetMultiServiceAvailabilityTimeSlotRequest {
|
|
|
481
462
|
*/
|
|
482
463
|
timeZone?: string | null;
|
|
483
464
|
/**
|
|
484
|
-
* Location
|
|
465
|
+
* Location to filter time slots by.
|
|
485
466
|
*
|
|
486
|
-
*
|
|
467
|
+
* For business locations, you must specify a location ID.
|
|
468
|
+
* When specifying a location ID, all other location field filters are ignored.
|
|
487
469
|
*/
|
|
488
|
-
location
|
|
470
|
+
location?: Location;
|
|
471
|
+
/**
|
|
472
|
+
* IDs of the [resource types](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction) to check availability for.
|
|
473
|
+
* @format GUID
|
|
474
|
+
* @maxSize 100
|
|
475
|
+
*/
|
|
476
|
+
includeResourceTypeIds?: string[];
|
|
477
|
+
/**
|
|
478
|
+
* Resource types to filter time slots.
|
|
479
|
+
* Only returns time slots that have these specific resource types available.
|
|
480
|
+
* This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
|
|
481
|
+
* @maxSize 3
|
|
482
|
+
*/
|
|
483
|
+
resourceTypes?: ResourceType[];
|
|
489
484
|
}
|
|
490
|
-
interface
|
|
485
|
+
interface GetAvailabilityTimeSlotRequestCustomerChoices {
|
|
486
|
+
/**
|
|
487
|
+
* Selected add-on IDs.
|
|
488
|
+
* Max: Derived from max amount of Add-On groups * max amount of Add-Ons per group.
|
|
489
|
+
* @format GUID
|
|
490
|
+
* @maxSize 21
|
|
491
|
+
*/
|
|
492
|
+
addOnIds?: string[] | null;
|
|
493
|
+
/**
|
|
494
|
+
* Selected duration choice ID.
|
|
495
|
+
* @format GUID
|
|
496
|
+
*/
|
|
497
|
+
durationChoiceId?: string | null;
|
|
498
|
+
}
|
|
499
|
+
interface GetAvailabilityTimeSlotResponse {
|
|
491
500
|
/** Retrieved time slot. */
|
|
492
501
|
timeSlot?: TimeSlot;
|
|
493
502
|
/**
|
|
494
503
|
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
495
504
|
* For example, `America/New_York` or `UTC`.
|
|
505
|
+
*
|
|
496
506
|
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
497
507
|
* @minLength 1
|
|
498
508
|
* @maxLength 150
|
|
499
509
|
*/
|
|
500
510
|
timeZone?: string | null;
|
|
501
511
|
}
|
|
502
|
-
interface
|
|
512
|
+
interface ListMultiServiceAvailabilityTimeSlotsRequest {
|
|
503
513
|
/**
|
|
504
|
-
*
|
|
505
|
-
*
|
|
506
|
-
*
|
|
514
|
+
* Services for which the multi-service time slots are returned.
|
|
515
|
+
* Each service can include its own resource filters.
|
|
516
|
+
*
|
|
517
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
518
|
+
*
|
|
519
|
+
* Min: 2 services
|
|
520
|
+
* Max: 8 services
|
|
521
|
+
* @maxSize 8
|
|
507
522
|
*/
|
|
508
|
-
|
|
523
|
+
services?: Service[];
|
|
509
524
|
/**
|
|
510
|
-
* Lower boundary for `localStartDate`
|
|
511
|
-
* Each returned time slot has a `localStartDate` within the provided `fromLocalDate` and `toLocalDate` exclusive.
|
|
512
|
-
* Required, unless you specify `cursorPaging.cursor`.
|
|
513
|
-
*
|
|
514
|
-
* Local start date in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
525
|
+
* Lower boundary for `localStartDate` in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
515
526
|
* For example, `2026-01-30T13:30:00`.
|
|
527
|
+
* Each returned time slot has a `localStartDate` between `fromLocalDate` and `toLocalDate`.
|
|
528
|
+
*
|
|
529
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
516
530
|
* @format LOCAL_DATE_TIME
|
|
517
531
|
*/
|
|
518
532
|
fromLocalDate?: string | null;
|
|
519
533
|
/**
|
|
520
|
-
* Upper boundary for `
|
|
521
|
-
* Each returned time slot has a `localStartDate` within the provided `fromLocalDate` and `toLocalDate` exclusive.
|
|
522
|
-
* Required, unless you specify `cursorPaging.cursor`.
|
|
523
|
-
*
|
|
524
|
-
* Local end date in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
534
|
+
* Upper boundary for `localToDate` in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
525
535
|
* For example, `2026-01-30T13:30:00`.
|
|
536
|
+
* Each returned time slot has a `localEndDate` between `fromLocalDate` and `toLocalDate`.
|
|
537
|
+
*
|
|
538
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
526
539
|
* @format LOCAL_DATE_TIME
|
|
527
540
|
*/
|
|
528
541
|
toLocalDate?: string | null;
|
|
529
542
|
/**
|
|
530
|
-
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
531
|
-
*
|
|
543
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate` values. For example, `America/New_York` or `UTC`.
|
|
544
|
+
*
|
|
545
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
532
546
|
*
|
|
533
547
|
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
534
548
|
* @minLength 1
|
|
@@ -536,27 +550,19 @@ interface ListAvailabilityTimeSlotsRequest {
|
|
|
536
550
|
*/
|
|
537
551
|
timeZone?: string | null;
|
|
538
552
|
/**
|
|
539
|
-
*
|
|
540
|
-
*
|
|
541
|
-
*
|
|
542
|
-
*/
|
|
543
|
-
locations?: Location[];
|
|
544
|
-
/**
|
|
545
|
-
* Resource type IDs to include in the response.
|
|
546
|
-
* If specified, returns up to 10 `availableResources` with matching `resourceTypeId`.
|
|
547
|
-
* This controls which resource details are included in the response but doesn't filter the time slots themselves.
|
|
548
|
-
* @format GUID
|
|
549
|
-
* @maxSize 100
|
|
553
|
+
* Location for which the multi-service time slots are returned. If you filter by `{"type": "BUSINESS"}`, you must also specify a location ID. Filters for `location.name` and `location.formattedAddress` are ignored.
|
|
554
|
+
*
|
|
555
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
550
556
|
*/
|
|
551
|
-
|
|
557
|
+
location?: Location;
|
|
552
558
|
/**
|
|
553
|
-
* Whether the time slot is bookable according to
|
|
554
|
-
* If not specified, returns both bookable and
|
|
559
|
+
* Whether the time slot is bookable according to all services' booking policies.
|
|
560
|
+
* If not specified, returns both bookable and non-bookable time slots.
|
|
555
561
|
*/
|
|
556
562
|
bookable?: boolean | null;
|
|
557
563
|
/**
|
|
558
564
|
* Indicators for service's booking policy violations.
|
|
559
|
-
* Allows filtering for time slots with specific violation types based on [booking policies](https://dev.wix.com/docs/api-reference/business-solutions/bookings/policies/booking-policies/introduction)
|
|
565
|
+
* Allows filtering for time slots with specific violation types based on [booking policies](https://dev.wix.com/docs/api-reference/business-solutions/bookings/policies/booking-policies/introduction). When you don't specify `bookingPolicyViolations` filters, all slots are returned regardless of their booking policy status.
|
|
560
566
|
*/
|
|
561
567
|
bookingPolicyViolations?: BookingPolicyViolations;
|
|
562
568
|
/**
|
|
@@ -571,6 +577,32 @@ interface ListAvailabilityTimeSlotsRequest {
|
|
|
571
577
|
* When specifying a new `limit` in follow-up requests, the API respects the new value.
|
|
572
578
|
*/
|
|
573
579
|
cursorPaging?: CursorPaging;
|
|
580
|
+
}
|
|
581
|
+
interface Service {
|
|
582
|
+
/**
|
|
583
|
+
* Service ID.
|
|
584
|
+
* @format GUID
|
|
585
|
+
*/
|
|
586
|
+
serviceId?: string;
|
|
587
|
+
/**
|
|
588
|
+
* Resource [type IDs](https://dev.wix.com/docs/rest/business-solutions/bookings/resources/resource-types-v2/introduction) to include in returned time slots.
|
|
589
|
+
* This is in addition to the specifically requested resources.
|
|
590
|
+
*
|
|
591
|
+
* <blockquote>
|
|
592
|
+
* Currently supported only for Staff Member resource type.
|
|
593
|
+
* Staff members belong to resource type ID `1cd44cf8-756f-41c3-bd90-3e2ffcaf1155`.
|
|
594
|
+
* </blockquote>
|
|
595
|
+
* @format GUID
|
|
596
|
+
* @maxSize 100
|
|
597
|
+
*/
|
|
598
|
+
includeResourceTypeIds?: string[];
|
|
599
|
+
/**
|
|
600
|
+
* Selected customer choices.
|
|
601
|
+
* If specified, the selected choices are used to calculate service configuration.
|
|
602
|
+
* If not specified, the service default configuration is used.
|
|
603
|
+
* Enforcing this field is the responsibility of the service plugin implementer, and not the Time Slots V2 API.
|
|
604
|
+
*/
|
|
605
|
+
customerChoices?: V2CustomerChoices;
|
|
574
606
|
/**
|
|
575
607
|
* Resource types to filter time slots.
|
|
576
608
|
* Only returns time slots that have these specific resource types available.
|
|
@@ -583,29 +615,31 @@ interface ListAvailabilityTimeSlotsRequest {
|
|
|
583
615
|
* Selected customer choices.
|
|
584
616
|
* These choices are selected by the customer during the booking flow and can be utilized to calculate the corresponding service's configuration properties.
|
|
585
617
|
*/
|
|
586
|
-
interface
|
|
618
|
+
interface V2CustomerChoices {
|
|
587
619
|
/**
|
|
588
|
-
*
|
|
589
|
-
* Min: `1 minute
|
|
590
|
-
* Max: `44639 minutes
|
|
620
|
+
* Selected customer duration in minutes.
|
|
621
|
+
* Min: `1` minute
|
|
622
|
+
* Max: `44639` minutes (30 days, 23 hours, and 59 minutes)
|
|
623
|
+
* Default: `15` minutes
|
|
591
624
|
* @min 1
|
|
592
625
|
* @max 44639
|
|
593
626
|
*/
|
|
594
627
|
durationInMinutes?: number | null;
|
|
595
628
|
/**
|
|
596
|
-
*
|
|
597
|
-
*
|
|
629
|
+
* Selected add-on IDs.
|
|
630
|
+
*
|
|
631
|
+
* Max: Calculated as the product of the maximum number of add-on groups multiplied by the maximum number of add-ons per group. Currently 21 (3 groups × 7 add-ons per group), but may change in the future.
|
|
598
632
|
* @format GUID
|
|
599
633
|
* @maxSize 21
|
|
600
634
|
*/
|
|
601
635
|
addOnIds?: string[] | null;
|
|
602
636
|
/**
|
|
603
|
-
*
|
|
637
|
+
* Selected duration choice ID.
|
|
604
638
|
* @format GUID
|
|
605
639
|
*/
|
|
606
640
|
durationChoiceId?: string | null;
|
|
607
641
|
}
|
|
608
|
-
interface
|
|
642
|
+
interface ListMultiServiceAvailabilityTimeSlotsResponse {
|
|
609
643
|
/**
|
|
610
644
|
* Retrieved time slots.
|
|
611
645
|
* Sorted by `localStartDate` in ascending order. When multiple slots have the same start time, no specific secondary sorting is guaranteed.
|
|
@@ -615,7 +649,6 @@ interface ListAvailabilityTimeSlotsResponse {
|
|
|
615
649
|
/**
|
|
616
650
|
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
617
651
|
* For example, `America/New_York` or `UTC`.
|
|
618
|
-
*
|
|
619
652
|
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
620
653
|
* @minLength 1
|
|
621
654
|
* @maxLength 150
|
|
@@ -627,27 +660,28 @@ interface ListAvailabilityTimeSlotsResponse {
|
|
|
627
660
|
*/
|
|
628
661
|
cursorPagingMetadata?: CursorPagingMetadata;
|
|
629
662
|
}
|
|
630
|
-
interface
|
|
663
|
+
interface GetMultiServiceAvailabilityTimeSlotRequest {
|
|
631
664
|
/**
|
|
632
|
-
*
|
|
633
|
-
* You
|
|
634
|
-
* @
|
|
665
|
+
* Services for which the multi-service time slots are returned.
|
|
666
|
+
* You can specify resource filters for each service.
|
|
667
|
+
* @minSize 2
|
|
668
|
+
* @maxSize 8
|
|
635
669
|
*/
|
|
636
|
-
|
|
670
|
+
services: Service[];
|
|
637
671
|
/**
|
|
638
672
|
* Local start date of the time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
639
673
|
* For example, `2026-01-30T13:30:00`.
|
|
640
674
|
* @format LOCAL_DATE_TIME
|
|
641
675
|
*/
|
|
642
|
-
localStartDate
|
|
676
|
+
localStartDate: string;
|
|
643
677
|
/**
|
|
644
678
|
* Local end date of the time slot in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
|
|
645
679
|
* For example, `2026-01-30T13:30:00`.
|
|
646
680
|
* @format LOCAL_DATE_TIME
|
|
647
681
|
*/
|
|
648
|
-
localEndDate
|
|
682
|
+
localEndDate: string;
|
|
649
683
|
/**
|
|
650
|
-
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate
|
|
684
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate` values.
|
|
651
685
|
* For example, `America/New_York` or `UTC`.
|
|
652
686
|
*
|
|
653
687
|
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
@@ -656,47 +690,18 @@ interface GetAvailabilityTimeSlotRequest {
|
|
|
656
690
|
*/
|
|
657
691
|
timeZone?: string | null;
|
|
658
692
|
/**
|
|
659
|
-
* Location
|
|
693
|
+
* Location for which the multi-service time slots are returned. If you filter by `{"type": "BUSINESS"}`, you must also specify a location ID. A filter for `location.name` is ignored.
|
|
660
694
|
*
|
|
661
|
-
*
|
|
662
|
-
* When specifying a location ID, all other location field filters are ignored.
|
|
663
|
-
*/
|
|
664
|
-
location?: Location;
|
|
665
|
-
/**
|
|
666
|
-
* IDs of the [resource types](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction) to check availability for.
|
|
667
|
-
* @format GUID
|
|
668
|
-
* @maxSize 100
|
|
669
|
-
*/
|
|
670
|
-
includeResourceTypeIds?: string[];
|
|
671
|
-
/**
|
|
672
|
-
* Resource types to filter time slots.
|
|
673
|
-
* Only returns time slots that have these specific resource types available.
|
|
674
|
-
* This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
|
|
675
|
-
* @maxSize 3
|
|
676
|
-
*/
|
|
677
|
-
resourceTypes?: ResourceType[];
|
|
678
|
-
}
|
|
679
|
-
interface GetAvailabilityTimeSlotRequestCustomerChoices {
|
|
680
|
-
/**
|
|
681
|
-
* Selected add-on IDs.
|
|
682
|
-
* Max: Derived from max amount of Add-On groups * max amount of Add-Ons per group.
|
|
683
|
-
* @format GUID
|
|
684
|
-
* @maxSize 21
|
|
685
|
-
*/
|
|
686
|
-
addOnIds?: string[] | null;
|
|
687
|
-
/**
|
|
688
|
-
* Selected duration choice ID.
|
|
689
|
-
* @format GUID
|
|
695
|
+
* Required unless you specify `cursorPaging.cursor`.
|
|
690
696
|
*/
|
|
691
|
-
|
|
697
|
+
location: Location;
|
|
692
698
|
}
|
|
693
|
-
interface
|
|
699
|
+
interface GetMultiServiceAvailabilityTimeSlotResponse {
|
|
694
700
|
/** Retrieved time slot. */
|
|
695
701
|
timeSlot?: TimeSlot;
|
|
696
702
|
/**
|
|
697
703
|
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
|
|
698
704
|
* For example, `America/New_York` or `UTC`.
|
|
699
|
-
*
|
|
700
705
|
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
|
|
701
706
|
* @minLength 1
|
|
702
707
|
* @maxLength 150
|