@wix/bookings 1.0.301 → 1.0.303
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/src/bookings-availability-v2-time-slot.http.d.ts +92 -107
- package/build/cjs/src/bookings-availability-v2-time-slot.http.js +92 -107
- package/build/cjs/src/bookings-availability-v2-time-slot.http.js.map +1 -1
- package/build/cjs/src/bookings-availability-v2-time-slot.types.d.ts +91 -108
- package/build/cjs/src/bookings-availability-v2-time-slot.types.js.map +1 -1
- package/build/cjs/src/bookings-availability-v2-time-slot.universal.d.ts +260 -284
- package/build/cjs/src/bookings-availability-v2-time-slot.universal.js +94 -109
- package/build/cjs/src/bookings-availability-v2-time-slot.universal.js.map +1 -1
- package/build/es/src/bookings-availability-v2-time-slot.http.d.ts +92 -107
- package/build/es/src/bookings-availability-v2-time-slot.http.js +92 -107
- package/build/es/src/bookings-availability-v2-time-slot.http.js.map +1 -1
- package/build/es/src/bookings-availability-v2-time-slot.types.d.ts +91 -108
- package/build/es/src/bookings-availability-v2-time-slot.types.js.map +1 -1
- package/build/es/src/bookings-availability-v2-time-slot.universal.d.ts +260 -284
- package/build/es/src/bookings-availability-v2-time-slot.universal.js +94 -109
- package/build/es/src/bookings-availability-v2-time-slot.universal.js.map +1 -1
- package/package.json +2 -7
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* 5. What is the total capacity and remaining capacity of the service at the time of the calculation of the `TimeSlot`?
|
|
14
14
|
*
|
|
15
15
|
* > __Note:__
|
|
16
|
-
* When the `TimeSlot` has a non empty `NestedTimeSlots`, it represents the availability information
|
|
16
|
+
* > When the `TimeSlot` has a non empty `NestedTimeSlots`, it represents the availability information
|
|
17
17
|
* > for a given list of `Appointment` services within a specific time slot.
|
|
18
18
|
*/
|
|
19
19
|
export interface TimeSlot {
|
|
@@ -27,17 +27,11 @@ export interface TimeSlot {
|
|
|
27
27
|
/**
|
|
28
28
|
* Local start date of the time slot in ISO-8601 format.
|
|
29
29
|
* For example, "2024-01-30T13:30:00".
|
|
30
|
-
*
|
|
31
|
-
* > When returned from `MultiServiceAvailabilityTimeSlots` API calls,
|
|
32
|
-
* > represents the earliest `localStartDate` of the `TimeSlot`'s nested time slots.
|
|
33
30
|
*/
|
|
34
31
|
localStartDate?: string | null;
|
|
35
32
|
/**
|
|
36
33
|
* Local end date of the time slot in ISO-8601 format.
|
|
37
34
|
* For example, "2024-01-30T14:30:00".
|
|
38
|
-
*
|
|
39
|
-
* > When returned from `MultiServiceAvailabilityTimeSlots` API calls,
|
|
40
|
-
* > represents the latest `localEndDate` of the `TimeSlot`'s nested time slots.
|
|
41
35
|
*/
|
|
42
36
|
localEndDate?: string | null;
|
|
43
37
|
/**
|
|
@@ -45,39 +39,22 @@ export interface TimeSlot {
|
|
|
45
39
|
*
|
|
46
40
|
* If booking this time slot does not violates any of the service's booking policies,
|
|
47
41
|
* the returned value is `true`. Otherwise, returns `false`.
|
|
48
|
-
*
|
|
49
|
-
* > When returned from `MultiServiceAvailabilityTimeSlots` API calls,
|
|
50
|
-
* > + `bookable` is `false` if at least one of the provided services is not bookable within the time slot.
|
|
51
|
-
* > + `bookable` is `true` if all provided services are bookable within the time slot.
|
|
52
42
|
*/
|
|
53
43
|
bookable?: boolean | null;
|
|
54
|
-
/**
|
|
55
|
-
* The geographic location of the slot.
|
|
56
|
-
*
|
|
57
|
-
* > When returned from `MultiServiceAvailabilityTimeSlots` API calls,
|
|
58
|
-
* > the geographic location of all nested time slots of the `TimeSlot`.
|
|
59
|
-
*/
|
|
44
|
+
/** The geographic location of the slot. */
|
|
60
45
|
location?: Location;
|
|
61
|
-
/**
|
|
62
|
-
* Total number of spots for the slot.
|
|
63
|
-
*
|
|
64
|
-
* > When returned from `MultiServiceAvailabilityTimeSlots` API calls,
|
|
65
|
-
* > `totalCapacity` is always 1, regardless the number of requested services.
|
|
66
|
-
*/
|
|
46
|
+
/** Total number of spots for the slot. */
|
|
67
47
|
totalCapacity?: number | null;
|
|
68
48
|
/**
|
|
69
49
|
* Remaining number of spots for the slot.
|
|
70
50
|
* For example, for an appointment service with total capacity of 1 spot and one booked spot, the remaining capacity will be 0.
|
|
71
|
-
*
|
|
72
|
-
* > When returned from `MultiServiceAvailabilityTimeSlots` API calls,
|
|
73
|
-
* > `remainingCapacity` is 1 if all requested services has `remainingCapacity` >= 1.
|
|
74
|
-
* > `remainingCapacity` is 0, if there is at least one requested service with `remainingCapacity` < 1.
|
|
75
51
|
*/
|
|
76
52
|
remainingCapacity?: number | null;
|
|
77
53
|
/**
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
54
|
+
* Indicators for booking policy violations for the slot.
|
|
55
|
+
*
|
|
56
|
+
* Each nested field is checked on its own. i.e. if `tooEarlyToBook` is defined and `bookOnlineDisabled` is not defined
|
|
57
|
+
* we will return also slots for which `tooEarlyToBook` is same as on the request, regardless of `bookOnlineDisabled`.
|
|
81
58
|
*/
|
|
82
59
|
bookingPolicyViolations?: BookingPolicyViolations;
|
|
83
60
|
/**
|
|
@@ -318,43 +295,57 @@ export interface ListMultiServiceAvailabilityTimeSlotsRequest {
|
|
|
318
295
|
* Services for which the multiService time slots are being returned for.
|
|
319
296
|
* Each service contains its own resources filters within.
|
|
320
297
|
*
|
|
321
|
-
* MinSize: 2
|
|
322
|
-
* MaxSize: 8
|
|
298
|
+
* MinSize: `2`.
|
|
299
|
+
* MaxSize: `8`.
|
|
300
|
+
*
|
|
301
|
+
* Required, unless `cursorPaging`.`cursor` is provided.
|
|
323
302
|
*/
|
|
324
303
|
services?: Service[];
|
|
325
304
|
/**
|
|
326
305
|
* Lower boundary for `localStartDate` to include in response, in ISO-8601 format.
|
|
327
306
|
* For example, "2024-01-30T13:30:00".
|
|
307
|
+
*
|
|
308
|
+
* Each returned `TimeSlot` in response has a `localStartDate`
|
|
309
|
+
* within the provided `fromLocalDate` and `toLocalDate` exclusive.
|
|
310
|
+
*
|
|
328
311
|
* Required, unless `cursorPaging`.`cursor` is provided.
|
|
329
|
-
* > __Note:__: Each returned `TimeSlot` in response has a `localStartDate`
|
|
330
|
-
* > within the provided `fromLocalDate` and `toLocalDate` exclusive.
|
|
331
312
|
*/
|
|
332
313
|
fromLocalDate?: string | null;
|
|
333
314
|
/**
|
|
334
315
|
* Upper boundary for `localStartDate` to include in response, in ISO-8601 format.
|
|
335
316
|
* For example, "2024-01-30T14:30:00".
|
|
317
|
+
*
|
|
318
|
+
* Each returned `TimeSlot` in response has a `localStartDate`
|
|
319
|
+
* within the provided `fromLocalDate` and `toLocalDate` exclusive.
|
|
320
|
+
*
|
|
336
321
|
* Required, unless `cursorPaging`.`cursor` is provided.
|
|
337
|
-
* > __Note:__: Each returned `TimeSlot` in response has a `localStartDate`
|
|
338
|
-
* > within the provided `fromLocalDate` and `toLocalDate` exclusive.
|
|
339
322
|
*/
|
|
340
323
|
toLocalDate?: string | null;
|
|
341
324
|
/**
|
|
342
325
|
* Time zone, in IANA time zone format.
|
|
326
|
+
*
|
|
343
327
|
* Required, unless `cursorPaging`.`cursor` is provided.
|
|
344
328
|
*/
|
|
345
329
|
timeZone?: string | null;
|
|
346
330
|
/**
|
|
347
|
-
* Location for which the multiService
|
|
331
|
+
* Location for which the multiService TimeSlots are being returned for.
|
|
332
|
+
*
|
|
333
|
+
* You can specify location or location type for which the TimeSlots will be returned for.
|
|
334
|
+
* If locationType is `BUSINESS`, you __must__ provide a locationId.
|
|
335
|
+
*
|
|
336
|
+
* <blockquote class="warning">
|
|
337
|
+
* <p><strong>warning:</strong><br/>
|
|
338
|
+
* Supports filtering by location type, or by location ID. </br>
|
|
339
|
+
* Other fields like <code class="grey-background">name</code> are ignored.</p>
|
|
340
|
+
* </blockquote>
|
|
348
341
|
*
|
|
349
|
-
*
|
|
350
|
-
* > __Note:__ Supports filtering by location type, or by locationId. Other fields like `name` are ignored.
|
|
351
|
-
* > If locationType is `BUSINESS`, you __must__ provide a locationId.
|
|
342
|
+
* Required, unless `cursorPaging`.`cursor` is provided.
|
|
352
343
|
*/
|
|
353
344
|
location?: Location;
|
|
354
345
|
/**
|
|
355
|
-
* Whether the `TimeSlot` is bookable according all of the services booking policies.
|
|
346
|
+
* Whether the `TimeSlot` is bookable according to all of the services booking policies.
|
|
356
347
|
*
|
|
357
|
-
* If booking any of the `TimeSlot`.`NestedTimeSlot`
|
|
348
|
+
* If booking any of the `TimeSlot`.`NestedTimeSlot`s violates any of its services bookings policies,
|
|
358
349
|
* returns as `false`. Otherwise, returns as `true`.
|
|
359
350
|
*
|
|
360
351
|
* > __Note:__
|
|
@@ -368,7 +359,7 @@ export interface ListMultiServiceAvailabilityTimeSlotsRequest {
|
|
|
368
359
|
* A bookable time slot must not violate any policy,
|
|
369
360
|
* therefor, this filter is only relevant when `bookable` filter is false.
|
|
370
361
|
*
|
|
371
|
-
* Each nested field is checked on all `NestedTimeSlot`
|
|
362
|
+
* Each nested field is checked on all `NestedTimeSlot`s. For example, if only one of the `NestedTimeSlot`'s
|
|
372
363
|
* has a service with `tooEarlyToBook` same as in the request, we return the `TimeSlot` regardless of whether
|
|
373
364
|
* the other `NestedTimeSlots` has the same `tooEarlyToBook` as in request.
|
|
374
365
|
*
|
|
@@ -378,7 +369,7 @@ export interface ListMultiServiceAvailabilityTimeSlotsRequest {
|
|
|
378
369
|
bookingPolicyViolations?: BookingPolicyViolations;
|
|
379
370
|
/**
|
|
380
371
|
* Maximum number of slots to load for each day. For example, if `timeSlotsPerDay` is set to `3`,
|
|
381
|
-
* we return at most 3 available
|
|
372
|
+
* we return at most 3 available TimeSlots for each day within the date range specified in request.
|
|
382
373
|
*
|
|
383
374
|
* By default,
|
|
384
375
|
* if `bookable` filter was not specified,
|
|
@@ -391,8 +382,8 @@ export interface ListMultiServiceAvailabilityTimeSlotsRequest {
|
|
|
391
382
|
/**
|
|
392
383
|
* CursorPaging.
|
|
393
384
|
*
|
|
394
|
-
* Enables you to fetch
|
|
395
|
-
* by setting a limit on the number of
|
|
385
|
+
* Enables you to fetch TimeSlots in smaller, more manageable chunks
|
|
386
|
+
* by setting a limit on the number of results returned in response.
|
|
396
387
|
* This is useful in order to enhance efficiency of data retrieval and reduce load on both the client and server.
|
|
397
388
|
*
|
|
398
389
|
* If there are more results than the specified limit, the response will contain a `cursorPagingMetaData`
|
|
@@ -404,17 +395,12 @@ export interface ListMultiServiceAvailabilityTimeSlotsRequest {
|
|
|
404
395
|
* the `cursorPaging`.`limit`. You may pass a different `limit`.
|
|
405
396
|
* No need to specify any additional parameters.
|
|
406
397
|
*
|
|
407
|
-
* __TODO: This is only describes the current behavior, should be fixed__
|
|
408
398
|
* <blockquote class="important">
|
|
409
399
|
* <p><strong>Important:</strong><br/>
|
|
410
|
-
* If you only provide a
|
|
411
|
-
* the response will contain the default size of results
|
|
400
|
+
* If you only provide a <code class="grey-background">cursorPaging</code>. <code class="grey-background">cursor</code>,
|
|
401
|
+
* the response will contain the default size of results which is `1000`.
|
|
412
402
|
* </p>
|
|
413
403
|
* </blockquote>
|
|
414
|
-
*
|
|
415
|
-
* cursorPaging.limit:
|
|
416
|
-
* Default: 1000
|
|
417
|
-
* Max: 1000
|
|
418
404
|
*/
|
|
419
405
|
cursorPaging?: CommonCursorPaging;
|
|
420
406
|
}
|
|
@@ -436,10 +422,10 @@ export interface Service {
|
|
|
436
422
|
}
|
|
437
423
|
export interface CommonCursorPaging {
|
|
438
424
|
/**
|
|
439
|
-
* Number of
|
|
425
|
+
* Number of results to load.
|
|
440
426
|
*
|
|
441
|
-
* Default: `1000
|
|
442
|
-
* Max: `1000
|
|
427
|
+
* Default: `1000`.
|
|
428
|
+
* Max: `1000`.
|
|
443
429
|
*/
|
|
444
430
|
limit?: number | null;
|
|
445
431
|
/**
|
|
@@ -456,7 +442,7 @@ export interface ListMultiServiceAvailabilityTimeSlotsResponse {
|
|
|
456
442
|
timeSlots?: TimeSlot[];
|
|
457
443
|
/**
|
|
458
444
|
* Time zone, in IANA time zone format.
|
|
459
|
-
* Shared for all
|
|
445
|
+
* Shared for all TimeSlots in response.
|
|
460
446
|
*/
|
|
461
447
|
timeZone?: string | null;
|
|
462
448
|
/**
|
|
@@ -469,8 +455,7 @@ export interface ListMultiServiceAvailabilityTimeSlotsResponse {
|
|
|
469
455
|
*
|
|
470
456
|
* <blockquote class="important">
|
|
471
457
|
* <p><strong>Important:</strong><br/>
|
|
472
|
-
*
|
|
473
|
-
* </p>
|
|
458
|
+
* <code class="grey-background">count</code> is not supported.</p>
|
|
474
459
|
* </blockquote>
|
|
475
460
|
*/
|
|
476
461
|
cursorPagingMetadata?: CommonCursorPagingMetadata;
|
|
@@ -493,7 +478,7 @@ export interface CommonCursors {
|
|
|
493
478
|
}
|
|
494
479
|
export interface GetMultiServiceAvailabilityTimeSlotRequest {
|
|
495
480
|
/**
|
|
496
|
-
* Services for which the multiService
|
|
481
|
+
* Services for which the multiService TimeSlots are being returned for.
|
|
497
482
|
* Each service contains its own resources filters within.
|
|
498
483
|
*
|
|
499
484
|
* MinSize: 2.
|
|
@@ -516,12 +501,11 @@ export interface GetMultiServiceAvailabilityTimeSlotRequest {
|
|
|
516
501
|
* The location of the time slot.
|
|
517
502
|
*
|
|
518
503
|
* You must provide a specific `locationType`.
|
|
519
|
-
* If locationType is `BUSINESS`, you __must__ also provide a locationId
|
|
504
|
+
* If locationType is `BUSINESS`, you __must__ also provide a `locationId`.
|
|
520
505
|
*
|
|
521
|
-
* <blockquote class="
|
|
522
|
-
* <p
|
|
523
|
-
*
|
|
524
|
-
* </p>
|
|
506
|
+
* <blockquote class="warning">
|
|
507
|
+
* <p>Supports filtering by location type, or by location ID.
|
|
508
|
+
* Other fields like <code class="grey-background">name</code> are ignored.</p>
|
|
525
509
|
* </blockquote>
|
|
526
510
|
*/
|
|
527
511
|
location: Location;
|
|
@@ -535,29 +519,34 @@ export interface GetMultiServiceAvailabilityTimeSlotResponse {
|
|
|
535
519
|
export interface ListAvailabilityTimeSlotsRequest {
|
|
536
520
|
/**
|
|
537
521
|
* Service ID for which the time slots are being returned for.
|
|
538
|
-
* Currently
|
|
522
|
+
* Currently supported only for services of type `APPOINTMENT`.
|
|
523
|
+
*
|
|
539
524
|
* Required, unless `cursorPaging`.`cursor` is provided.
|
|
540
525
|
*/
|
|
541
526
|
serviceId?: string | null;
|
|
542
527
|
/**
|
|
543
528
|
* Lower boundary for `localStartDate` to include in response, in ISO-8601 format.
|
|
544
529
|
* For example, "2024-01-30T13:30:00".
|
|
530
|
+
*
|
|
531
|
+
* Each returned `TimeSlot` in response has a `localStartDate`
|
|
532
|
+
* within the provided `fromLocalDate` and `toLocalDate` exclusive.
|
|
533
|
+
*
|
|
545
534
|
* Required, unless `cursorPaging`.`cursor` is provided.
|
|
546
|
-
* > __Note:__: Each returned `TimeSlot` in response has a `localStartDate`
|
|
547
|
-
* > within the provided `fromLocalDate` and `toLocalDate` exclusive.
|
|
548
535
|
*/
|
|
549
536
|
fromLocalDate?: string | null;
|
|
550
537
|
/**
|
|
551
538
|
* Upper boundary for `localStartDate` to include in response, in ISO-8601 format.
|
|
552
539
|
* For example, "2024-01-30T14:30:00".
|
|
540
|
+
*
|
|
541
|
+
* Each returned `TimeSlot` in response has a `localStartDate`
|
|
542
|
+
* within the provided `fromLocalDate` and `toLocalDate` exclusive.
|
|
543
|
+
*
|
|
553
544
|
* Required, unless `cursorPaging`.`cursor` is provided.
|
|
554
|
-
* > __Note:__: Each returned `TimeSlot` in response has a `localStartDate`
|
|
555
|
-
* > within the provided `fromLocalDate` and `toLocalDate` exclusive.
|
|
556
|
-
* > The `localEndDate` of the returned `TimeSlot` is the `TimeSlot`'s `localStartDate` + the service duration
|
|
557
545
|
*/
|
|
558
546
|
toLocalDate?: string | null;
|
|
559
547
|
/**
|
|
560
548
|
* Time zone, in IANA time zone format.
|
|
549
|
+
*
|
|
561
550
|
* Required, unless `cursorPaging`.`cursor` is provided.
|
|
562
551
|
*/
|
|
563
552
|
timeZone?: string | null;
|
|
@@ -566,34 +555,37 @@ export interface ListAvailabilityTimeSlotsRequest {
|
|
|
566
555
|
*
|
|
567
556
|
* By default,
|
|
568
557
|
* if no locations are provided,
|
|
569
|
-
* the response contains
|
|
558
|
+
* the response contains TimeSlots for all locations where the service is available.
|
|
570
559
|
*
|
|
571
560
|
* You can specify locations or location types for which the time slots will be returned for.
|
|
572
|
-
*
|
|
573
|
-
*
|
|
561
|
+
* If locationType is `BUSINESS`, you __must__ provide a locationId.
|
|
562
|
+
*
|
|
563
|
+
* <blockquote class="warning">
|
|
564
|
+
* <p><strong>warning:</strong><br/>
|
|
565
|
+
* Supports filtering by location type, or by location ID. </br>
|
|
566
|
+
* Other fields like <code class="grey-background">name</code> are ignored.</p>
|
|
567
|
+
* </blockquote>
|
|
574
568
|
*/
|
|
575
569
|
locations?: Location[];
|
|
576
570
|
/**
|
|
577
571
|
* Resources to include in response.
|
|
578
572
|
*
|
|
579
573
|
* If specified,
|
|
580
|
-
* the returned
|
|
581
|
-
* Otherwise, the returned
|
|
582
|
-
* > __Note:__ Not specifying `resourceIds` can be handy in case you want to avoid large response in flows that only
|
|
583
|
-
* > interested whether the time slots are available or not. [An example for such flow](https://bo.wix.com/wix-docs/rest/all-apis/wix-service-availability/service-availability-time-slots/sample-flows#all-apis_wix-service-availability_service-availability-time-slots_sample-flows_let-your-customers-to-dynamically-select-an-available-time-slot-for-any-of-your-business-services).
|
|
574
|
+
* the returned TimeSlots will contain __up__ to 10 available resources out of the provided list.
|
|
575
|
+
* Otherwise, the returned TimeSlots returns with an empty `AvailableResources`.
|
|
584
576
|
*/
|
|
585
577
|
resourceIds?: string[];
|
|
586
578
|
/**
|
|
587
|
-
* Resource type ID's to include in response, this is in addition to the requested resourceIds
|
|
579
|
+
* Resource type ID's to include in response, this is in addition to the requested `resourceIds`.
|
|
588
580
|
*
|
|
589
|
-
* If specified in request, the returned
|
|
581
|
+
* If specified in request, the returned TimeSlots will contain __up__ to 10 `AvailableResources` with `ResourceTypeId`
|
|
590
582
|
* out of those specified, each contains __up__ to 10 available resources of this type.
|
|
591
583
|
*/
|
|
592
584
|
includeResourceTypeIds?: string[];
|
|
593
585
|
/**
|
|
594
586
|
* Whether the `TimeSlot` is bookable according to the service's booking policies.
|
|
595
587
|
*
|
|
596
|
-
* If booking this
|
|
588
|
+
* If booking this `TimeSlot` does not violates any of the service's booking policies,
|
|
597
589
|
* returns as `true`. Otherwise, returns as `false`.
|
|
598
590
|
*
|
|
599
591
|
* > __Note:__
|
|
@@ -613,7 +605,7 @@ export interface ListAvailabilityTimeSlotsRequest {
|
|
|
613
605
|
bookingPolicyViolations?: BookingPolicyViolations;
|
|
614
606
|
/**
|
|
615
607
|
* Maximum number of slots to load for each day. For example, if `timeSlotsPerDay` is set to `3`,
|
|
616
|
-
* we return at most 3 available
|
|
608
|
+
* we return at most 3 available TimeSlots for each day within the date range specified in request.
|
|
617
609
|
*
|
|
618
610
|
* By default,
|
|
619
611
|
* if `bookable` filter was not specified,
|
|
@@ -626,8 +618,8 @@ export interface ListAvailabilityTimeSlotsRequest {
|
|
|
626
618
|
/**
|
|
627
619
|
* CursorPaging.
|
|
628
620
|
*
|
|
629
|
-
* Enables you to fetch
|
|
630
|
-
* by setting a limit on the number of
|
|
621
|
+
* Enables you to fetch results in smaller, more manageable chunks
|
|
622
|
+
* by setting a limit on the number of results returned in response.
|
|
631
623
|
* This is useful in order to enhance efficiency of data retrieval and reduce load on both the client and server.
|
|
632
624
|
*
|
|
633
625
|
* If there are more results than the specified limit, the response will contain a `cursorPagingMetaData`
|
|
@@ -635,21 +627,16 @@ export interface ListAvailabilityTimeSlotsRequest {
|
|
|
635
627
|
* returned cursor to the next call as `cursorPaging`.`cursor`.
|
|
636
628
|
*
|
|
637
629
|
* For the first call, you should only specify the `limit` for the results page.
|
|
638
|
-
* For each following call, you should only pass the
|
|
639
|
-
*
|
|
630
|
+
* For each following call, you should only pass `cursorPaging`.`cursor` with the returned cursor from previous call, and
|
|
631
|
+
* a `cursorPaging`.`limit`.
|
|
640
632
|
* No need to specify any additional parameters.
|
|
641
633
|
*
|
|
642
|
-
* __TODO: This is only describes the current behavior, should be fixed__
|
|
643
634
|
* <blockquote class="important">
|
|
644
635
|
* <p><strong>Important:</strong><br/>
|
|
645
|
-
* If you only provide a
|
|
646
|
-
* the response will contain the default size of results
|
|
636
|
+
* If you only provide a <code class="grey-background">cursorPaging</code>. <code class="grey-background">cursor</code>,
|
|
637
|
+
* the response will contain the default size of results which is `1000`.
|
|
647
638
|
* </p>
|
|
648
639
|
* </blockquote>
|
|
649
|
-
*
|
|
650
|
-
* cursorPaging.limit:
|
|
651
|
-
* Default: 1000
|
|
652
|
-
* Max: 1000
|
|
653
640
|
*/
|
|
654
641
|
cursorPaging?: CommonCursorPaging;
|
|
655
642
|
}
|
|
@@ -658,7 +645,7 @@ export interface ListAvailabilityTimeSlotsResponse {
|
|
|
658
645
|
timeSlots?: TimeSlot[];
|
|
659
646
|
/**
|
|
660
647
|
* Time zone, in IANA time zone format.
|
|
661
|
-
* Shared for all
|
|
648
|
+
* Shared for all TimeSlots in response.
|
|
662
649
|
*/
|
|
663
650
|
timeZone?: string | null;
|
|
664
651
|
/**
|
|
@@ -671,8 +658,7 @@ export interface ListAvailabilityTimeSlotsResponse {
|
|
|
671
658
|
*
|
|
672
659
|
* <blockquote class="important">
|
|
673
660
|
* <p><strong>Important:</strong><br/>
|
|
674
|
-
*
|
|
675
|
-
* </p>
|
|
661
|
+
* <code class="grey-background">count</code> is not supported.</p>
|
|
676
662
|
* </blockquote>
|
|
677
663
|
*/
|
|
678
664
|
cursorPagingMetadata?: CommonCursorPagingMetadata;
|
|
@@ -680,7 +666,7 @@ export interface ListAvailabilityTimeSlotsResponse {
|
|
|
680
666
|
export interface GetAvailabilityTimeSlotRequest {
|
|
681
667
|
/**
|
|
682
668
|
* Service ID of the time slot.
|
|
683
|
-
* Currently
|
|
669
|
+
* Currently supported only for services of type `APPOINTMENT`.
|
|
684
670
|
*/
|
|
685
671
|
serviceId: string;
|
|
686
672
|
/**
|
|
@@ -699,12 +685,11 @@ export interface GetAvailabilityTimeSlotRequest {
|
|
|
699
685
|
* The location of the time slot.
|
|
700
686
|
*
|
|
701
687
|
* You must provide a specific `locationType`.
|
|
702
|
-
* If locationType is `BUSINESS`, you __must__ also provide a locationId
|
|
688
|
+
* If locationType is `BUSINESS`, you __must__ also provide a `locationId`.
|
|
703
689
|
*
|
|
704
|
-
* <blockquote class="
|
|
705
|
-
* <p
|
|
706
|
-
*
|
|
707
|
-
* </p>
|
|
690
|
+
* <blockquote class="warning">
|
|
691
|
+
* <p>Supports filtering by location type, or by location ID.
|
|
692
|
+
* Other fields like <code class="grey-background">name</code> are ignored.</p>
|
|
708
693
|
* </blockquote>
|
|
709
694
|
*/
|
|
710
695
|
location: Location;
|
|
@@ -712,16 +697,14 @@ export interface GetAvailabilityTimeSlotRequest {
|
|
|
712
697
|
* Resources to include in response.
|
|
713
698
|
*
|
|
714
699
|
* If specified,
|
|
715
|
-
* the returned
|
|
716
|
-
* Otherwise, the returned
|
|
717
|
-
* > __Note:__ This can be handy in case you want to avoid large response in flows that only
|
|
718
|
-
* > interested to check the availability of the time slot for specific resources.
|
|
700
|
+
* the returned `TimeSlot` contains only the available resources out of provided list.
|
|
701
|
+
* Otherwise, the returned `TimeSlot` returned with all possible `AvailableResources`.
|
|
719
702
|
*/
|
|
720
703
|
resourceIds?: string[];
|
|
721
704
|
/**
|
|
722
|
-
* Resource type
|
|
705
|
+
* Resource type IDs to include in response, this is in addition to the requested `resourceIds`.
|
|
723
706
|
*
|
|
724
|
-
* If specified in request, the returned
|
|
707
|
+
* If specified in request, the returned `TimeSlot` contains only the `AvailableResources` with `ResourceTypeId`
|
|
725
708
|
* out of those specified, each contains all the available resources of this type.
|
|
726
709
|
*/
|
|
727
710
|
includeResourceTypeIds?: string[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bookings-availability-v2-time-slot.types.js","sourceRoot":"","sources":["../../../src/bookings-availability-v2-time-slot.types.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"bookings-availability-v2-time-slot.types.js","sourceRoot":"","sources":["../../../src/bookings-availability-v2-time-slot.types.ts"],"names":[],"mappings":";;;AA0FA,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,+DAA+C,CAAA;IAC/C,4HAA4H;IAC5H,qCAAqB,CAAA;IACrB,iGAAiG;IACjG,iCAAiB,CAAA;IACjB,mFAAmF;IACnF,qCAAqB,CAAA;AACvB,CAAC,EARW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAQvB"}
|