@wix/auto_sdk_bookings_multi-service-availability-time-slots 1.0.82 → 1.0.83
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-multi-service-availability-time-slots.types.d.ts → bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal-DD3QA5-2.d.mts} +152 -31
- package/build/{internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.d.ts → bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal-DD3QA5-2.d.ts} +152 -31
- package/build/{es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.d.ts → index.d.mts} +11 -8
- package/build/{internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.d.ts → index.d.ts} +11 -8
- package/build/index.js +350 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +324 -0
- package/build/index.mjs.map +1 -0
- package/build/{es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.d.ts → internal/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal-DD3QA5-2.d.mts} +152 -31
- package/build/internal/{es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.d.ts → bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal-DD3QA5-2.d.ts} +152 -31
- package/build/{cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.d.ts → internal/index.d.mts} +11 -8
- package/build/internal/{cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.d.ts → index.d.ts} +11 -8
- package/build/internal/index.js +350 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +324 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +532 -0
- package/build/internal/meta.d.ts +532 -0
- package/build/internal/meta.js +270 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +242 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +532 -0
- package/build/meta.d.ts +532 -0
- package/build/meta.js +270 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +242 -0
- package/build/meta.mjs.map +1 -0
- package/package.json +13 -12
- package/build/cjs/index.d.ts +0 -1
- package/build/cjs/index.js +0 -18
- package/build/cjs/index.js.map +0 -1
- package/build/cjs/index.typings.d.ts +0 -1
- package/build/cjs/index.typings.js +0 -18
- package/build/cjs/index.typings.js.map +0 -1
- package/build/cjs/meta.d.ts +0 -1
- package/build/cjs/meta.js +0 -18
- package/build/cjs/meta.js.map +0 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.d.ts +0 -6
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js +0 -10
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js.map +0 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.d.ts +0 -111
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js +0 -304
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js.map +0 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.d.ts +0 -14
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js +0 -66
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js.map +0 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js +0 -20
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js.map +0 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js +0 -14
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js.map +0 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.d.ts +0 -1187
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js +0 -290
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/package.json +0 -3
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.d.ts +0 -6
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js +0 -6
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js.map +0 -1
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.d.ts +0 -111
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js +0 -299
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js.map +0 -1
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.d.ts +0 -14
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js +0 -38
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js.map +0 -1
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js +0 -14
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js.map +0 -1
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js +0 -11
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js.map +0 -1
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.d.ts +0 -1187
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js +0 -262
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js.map +0 -1
- package/build/internal/cjs/index.d.ts +0 -1
- package/build/internal/cjs/index.js +0 -18
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.d.ts +0 -1
- package/build/internal/cjs/index.typings.js +0 -18
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.d.ts +0 -1
- package/build/internal/cjs/meta.js +0 -18
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.d.ts +0 -6
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js +0 -10
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js.map +0 -1
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.d.ts +0 -111
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js +0 -304
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js.map +0 -1
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.d.ts +0 -14
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js +0 -66
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js.map +0 -1
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js +0 -20
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js.map +0 -1
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js +0 -14
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js.map +0 -1
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.d.ts +0 -1187
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js +0 -290
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js.map +0 -1
- package/build/internal/es/index.d.ts +0 -1
- package/build/internal/es/index.js +0 -2
- package/build/internal/es/index.js.map +0 -1
- package/build/internal/es/index.typings.d.ts +0 -1
- package/build/internal/es/index.typings.js +0 -2
- package/build/internal/es/index.typings.js.map +0 -1
- package/build/internal/es/meta.d.ts +0 -1
- package/build/internal/es/meta.js +0 -2
- package/build/internal/es/meta.js.map +0 -1
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.d.ts +0 -6
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js +0 -6
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.js.map +0 -1
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.d.ts +0 -111
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js +0 -299
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js.map +0 -1
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.d.ts +0 -14
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js +0 -38
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.meta.js.map +0 -1
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js +0 -14
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js.map +0 -1
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js +0 -11
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js.map +0 -1
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.d.ts +0 -1187
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js +0 -262
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js.map +0 -1
@@ -16,7 +16,7 @@
|
|
16
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
|
+
interface TimeSlot {
|
20
20
|
/**
|
21
21
|
* Service ID.
|
22
22
|
*
|
@@ -89,12 +89,12 @@ export interface TimeSlot {
|
|
89
89
|
/** Reasons why the time slot is not available for booking. */
|
90
90
|
nonBookableReasons?: NonBookableReasons;
|
91
91
|
}
|
92
|
-
|
92
|
+
interface Location {
|
93
93
|
/**
|
94
94
|
* Business Location ID. Present only if the location is a business location.
|
95
95
|
* @format GUID
|
96
96
|
*/
|
97
|
-
|
97
|
+
_id?: string | null;
|
98
98
|
/** The location name. */
|
99
99
|
name?: string | null;
|
100
100
|
/** A string representation for the full address of the location. */
|
@@ -107,7 +107,7 @@ export interface Location {
|
|
107
107
|
*/
|
108
108
|
locationType?: LocationType;
|
109
109
|
}
|
110
|
-
|
110
|
+
declare enum LocationType {
|
111
111
|
UNKNOWN_LOCATION_TYPE = "UNKNOWN_LOCATION_TYPE",
|
112
112
|
/** A business location, either the default business address, or locations defined for the business by the Business Info. */
|
113
113
|
BUSINESS = "BUSINESS",
|
@@ -117,7 +117,7 @@ export declare enum LocationType {
|
|
117
117
|
CUSTOMER = "CUSTOMER"
|
118
118
|
}
|
119
119
|
/** relevant for event based slots, and not for availability based slots */
|
120
|
-
|
120
|
+
interface EventInfo {
|
121
121
|
/**
|
122
122
|
* The event ID.
|
123
123
|
* @minLength 36
|
@@ -127,7 +127,7 @@ export interface EventInfo {
|
|
127
127
|
/** Waiting list details for the event, if enabled in the service's booking policy. */
|
128
128
|
waitingList?: WaitingList;
|
129
129
|
}
|
130
|
-
|
130
|
+
interface WaitingList {
|
131
131
|
/**
|
132
132
|
* Total number of spots in the waiting list.
|
133
133
|
* @min 1
|
@@ -139,7 +139,7 @@ export interface WaitingList {
|
|
139
139
|
*/
|
140
140
|
remainingCapacity?: number | null;
|
141
141
|
}
|
142
|
-
|
142
|
+
interface BookingPolicyViolations {
|
143
143
|
/** Bookings policy violation. Too early to book this slot. */
|
144
144
|
tooEarlyToBook?: boolean | null;
|
145
145
|
/** The earliest time at which booking for this slot is allowed, in UTC format (`YYYY-MM-DDThh:mm:ss.sssZ`). */
|
@@ -149,7 +149,7 @@ export interface BookingPolicyViolations {
|
|
149
149
|
/** Bookings policy violation. Online booking is disabled for the `TimeSlot` service. */
|
150
150
|
bookOnlineDisabled?: boolean | null;
|
151
151
|
}
|
152
|
-
|
152
|
+
interface AvailableResources {
|
153
153
|
/**
|
154
154
|
* Resource type ID.
|
155
155
|
* @format GUID
|
@@ -182,19 +182,19 @@ export interface AvailableResources {
|
|
182
182
|
*/
|
183
183
|
hasMoreAvailableResources?: boolean | null;
|
184
184
|
}
|
185
|
-
|
185
|
+
interface Resource {
|
186
186
|
/**
|
187
187
|
* Resource ID.
|
188
188
|
* @format GUID
|
189
189
|
*/
|
190
|
-
|
190
|
+
_id?: string;
|
191
191
|
/**
|
192
192
|
* Resource name.
|
193
193
|
* @minLength 1
|
194
194
|
*/
|
195
195
|
name?: string | null;
|
196
196
|
}
|
197
|
-
|
197
|
+
interface NestedTimeSlot {
|
198
198
|
/**
|
199
199
|
* Service ID of the nested time slot.
|
200
200
|
* @format GUID
|
@@ -219,7 +219,7 @@ export interface NestedTimeSlot {
|
|
219
219
|
*/
|
220
220
|
availableResources?: AvailableResources[];
|
221
221
|
}
|
222
|
-
|
222
|
+
interface NonBookableReasons {
|
223
223
|
/** The slot is fully booked with no remaining capacity. */
|
224
224
|
noRemainingCapacity?: boolean | null;
|
225
225
|
/** Booking this slot would violate the service's booking policy. */
|
@@ -227,7 +227,7 @@ export interface NonBookableReasons {
|
|
227
227
|
/** The slot is reserved for the waiting list and not available for direct booking. */
|
228
228
|
reservedForWaitingList?: boolean | null;
|
229
229
|
}
|
230
|
-
|
230
|
+
interface ListMultiServiceAvailabilityTimeSlotsRequest {
|
231
231
|
/**
|
232
232
|
* Services for which the multiService time slots are being returned for.
|
233
233
|
* Each service contains its own resources filters within.
|
@@ -346,7 +346,7 @@ export interface ListMultiServiceAvailabilityTimeSlotsRequest {
|
|
346
346
|
*/
|
347
347
|
cursorPaging?: CursorPaging;
|
348
348
|
}
|
349
|
-
|
349
|
+
interface Service {
|
350
350
|
/**
|
351
351
|
* Service ID.
|
352
352
|
* @format GUID
|
@@ -382,7 +382,7 @@ export interface Service {
|
|
382
382
|
* Selected customer choices.
|
383
383
|
* These choices are selected by the customer during the booking flow and can be utilized to calculate the corresponding service's configuration properties.
|
384
384
|
*/
|
385
|
-
|
385
|
+
interface V2CustomerChoices {
|
386
386
|
/**
|
387
387
|
* The selected customer duration in minutes.
|
388
388
|
* Min: `1 minute`
|
@@ -399,7 +399,7 @@ export interface V2CustomerChoices {
|
|
399
399
|
*/
|
400
400
|
addOnIds?: string[] | null;
|
401
401
|
}
|
402
|
-
|
402
|
+
interface CursorPaging {
|
403
403
|
/**
|
404
404
|
* Number of results to load.
|
405
405
|
*
|
@@ -417,7 +417,7 @@ export interface CursorPaging {
|
|
417
417
|
*/
|
418
418
|
cursor?: string | null;
|
419
419
|
}
|
420
|
-
|
420
|
+
interface ListMultiServiceAvailabilityTimeSlotsResponse {
|
421
421
|
/**
|
422
422
|
* Time slots.
|
423
423
|
* @maxSize 1000
|
@@ -445,7 +445,7 @@ export interface ListMultiServiceAvailabilityTimeSlotsResponse {
|
|
445
445
|
*/
|
446
446
|
cursorPagingMetadata?: CursorPagingMetadata;
|
447
447
|
}
|
448
|
-
|
448
|
+
interface CursorPagingMetadata {
|
449
449
|
/** Offset that was requested. */
|
450
450
|
cursors?: Cursors;
|
451
451
|
/**
|
@@ -455,13 +455,13 @@ export interface CursorPagingMetadata {
|
|
455
455
|
*/
|
456
456
|
hasNext?: boolean | null;
|
457
457
|
}
|
458
|
-
|
458
|
+
interface Cursors {
|
459
459
|
/** Cursor pointing to next page in the list of results. */
|
460
460
|
next?: string | null;
|
461
461
|
/** Cursor pointing to previous page in the list of results. */
|
462
462
|
prev?: string | null;
|
463
463
|
}
|
464
|
-
|
464
|
+
interface GetMultiServiceAvailabilityTimeSlotRequest {
|
465
465
|
/**
|
466
466
|
* Services for which the multiService TimeSlots are being returned for.
|
467
467
|
* Each service contains its own resources filters within.
|
@@ -503,7 +503,7 @@ export interface GetMultiServiceAvailabilityTimeSlotRequest {
|
|
503
503
|
*/
|
504
504
|
location: Location;
|
505
505
|
}
|
506
|
-
|
506
|
+
interface GetMultiServiceAvailabilityTimeSlotResponse {
|
507
507
|
/** Time slot. */
|
508
508
|
timeSlot?: TimeSlot;
|
509
509
|
/**
|
@@ -513,7 +513,7 @@ export interface GetMultiServiceAvailabilityTimeSlotResponse {
|
|
513
513
|
*/
|
514
514
|
timeZone?: string | null;
|
515
515
|
}
|
516
|
-
|
516
|
+
interface ListAvailabilityTimeSlotsRequest {
|
517
517
|
/**
|
518
518
|
* Service ID for which the time slots are being returned for.
|
519
519
|
* Currently supported only for services of type `APPOINTMENT`.
|
@@ -658,7 +658,7 @@ export interface ListAvailabilityTimeSlotsRequest {
|
|
658
658
|
* Selected customer choices.
|
659
659
|
* These choices are selected by the customer during the booking flow and can be utilized to calculate the corresponding service's configuration properties.
|
660
660
|
*/
|
661
|
-
|
661
|
+
interface CustomerChoices {
|
662
662
|
/**
|
663
663
|
* The selected customer duration in minutes.
|
664
664
|
* Min: `1 minute`
|
@@ -675,7 +675,7 @@ export interface CustomerChoices {
|
|
675
675
|
*/
|
676
676
|
addOnIds?: string[] | null;
|
677
677
|
}
|
678
|
-
|
678
|
+
interface ResourceType {
|
679
679
|
/**
|
680
680
|
* Resource type ID.
|
681
681
|
* @format GUID
|
@@ -690,7 +690,7 @@ export interface ResourceType {
|
|
690
690
|
*/
|
691
691
|
resourceIds?: string[] | null;
|
692
692
|
}
|
693
|
-
|
693
|
+
interface ListAvailabilityTimeSlotsResponse {
|
694
694
|
/**
|
695
695
|
* Time slots.
|
696
696
|
* @maxSize 1000
|
@@ -718,7 +718,7 @@ export interface ListAvailabilityTimeSlotsResponse {
|
|
718
718
|
*/
|
719
719
|
cursorPagingMetadata?: CursorPagingMetadata;
|
720
720
|
}
|
721
|
-
|
721
|
+
interface GetAvailabilityTimeSlotRequest {
|
722
722
|
/**
|
723
723
|
* Service ID of the time slot.
|
724
724
|
* Currently supported only for services of type `APPOINTMENT`.
|
@@ -775,7 +775,7 @@ export interface GetAvailabilityTimeSlotRequest {
|
|
775
775
|
*/
|
776
776
|
includeResourceTypeIds?: string[];
|
777
777
|
}
|
778
|
-
|
778
|
+
interface GetAvailabilityTimeSlotResponse {
|
779
779
|
/** Time slot. */
|
780
780
|
timeSlot?: TimeSlot;
|
781
781
|
/**
|
@@ -785,7 +785,7 @@ export interface GetAvailabilityTimeSlotResponse {
|
|
785
785
|
*/
|
786
786
|
timeZone?: string | null;
|
787
787
|
}
|
788
|
-
|
788
|
+
interface ListEventTimeSlotsRequest {
|
789
789
|
/**
|
790
790
|
* Local start date for which event time slots are returned, in ISO-8601 format.
|
791
791
|
* E.g., "2024-01-30T13:30:00".
|
@@ -843,7 +843,7 @@ export interface ListEventTimeSlotsRequest {
|
|
843
843
|
/** Cursor to retrieve the next page of results. */
|
844
844
|
cursorPaging?: CursorPaging;
|
845
845
|
}
|
846
|
-
|
846
|
+
interface ListEventTimeSlotsResponse {
|
847
847
|
/** Retrieved time slots matching the specified filters. */
|
848
848
|
timeSlots?: TimeSlot[];
|
849
849
|
/**
|
@@ -856,7 +856,7 @@ export interface ListEventTimeSlotsResponse {
|
|
856
856
|
/** Paging metadata. */
|
857
857
|
pagingMetadata?: CursorPagingMetadata;
|
858
858
|
}
|
859
|
-
|
859
|
+
interface GetEventTimeSlotRequest {
|
860
860
|
/**
|
861
861
|
* The event ID.
|
862
862
|
* @minLength 36
|
@@ -872,7 +872,7 @@ export interface GetEventTimeSlotRequest {
|
|
872
872
|
*/
|
873
873
|
timeZone?: string | null;
|
874
874
|
}
|
875
|
-
|
875
|
+
interface GetEventTimeSlotResponse {
|
876
876
|
/** The time slot. */
|
877
877
|
timeSlot?: TimeSlot;
|
878
878
|
/**
|
@@ -883,3 +883,124 @@ export interface GetEventTimeSlotResponse {
|
|
883
883
|
*/
|
884
884
|
timeZone?: string | null;
|
885
885
|
}
|
886
|
+
interface ListMultiServiceAvailabilityTimeSlotsOptions {
|
887
|
+
/**
|
888
|
+
* Services for which the multiService time slots are being returned for.
|
889
|
+
* Each service contains its own resources filters within.
|
890
|
+
*
|
891
|
+
* MinSize: `2`.
|
892
|
+
* MaxSize: `8`.
|
893
|
+
*
|
894
|
+
* Required, unless `cursorPaging`.`cursor` is provided.
|
895
|
+
* @maxSize 8
|
896
|
+
*/
|
897
|
+
services?: Service[];
|
898
|
+
/**
|
899
|
+
* Lower boundary for `localStartDate` to include in response, in ISO-8601 format.
|
900
|
+
* For example, "2024-01-30T13:30:00".
|
901
|
+
*
|
902
|
+
* Each returned `TimeSlot` in response has a `localStartDate`
|
903
|
+
* within the provided `fromLocalDate` and `toLocalDate` exclusive.
|
904
|
+
*
|
905
|
+
* Required, unless `cursorPaging`.`cursor` is provided.
|
906
|
+
* @format LOCAL_DATE_TIME
|
907
|
+
*/
|
908
|
+
fromLocalDate?: string | null;
|
909
|
+
/**
|
910
|
+
* Upper boundary for `localStartDate` to include in response, in ISO-8601 format.
|
911
|
+
* For example, "2024-01-30T14:30:00".
|
912
|
+
*
|
913
|
+
* Each returned `TimeSlot` in response has a `localStartDate`
|
914
|
+
* within the provided `fromLocalDate` and `toLocalDate` exclusive.
|
915
|
+
*
|
916
|
+
* Required, unless `cursorPaging`.`cursor` is provided.
|
917
|
+
* @format LOCAL_DATE_TIME
|
918
|
+
*/
|
919
|
+
toLocalDate?: string | null;
|
920
|
+
/**
|
921
|
+
* Time zone, in IANA time zone format.
|
922
|
+
*
|
923
|
+
* Required, unless `cursorPaging`.`cursor` is provided.
|
924
|
+
* @minLength 1
|
925
|
+
* @maxLength 150
|
926
|
+
*/
|
927
|
+
timeZone?: string | null;
|
928
|
+
/**
|
929
|
+
* Location for which the multiService TimeSlots are being returned for.
|
930
|
+
*
|
931
|
+
* You can specify location or location type for which the TimeSlots will be returned for.
|
932
|
+
* If locationType is `BUSINESS`, you __must__ provide a locationId.
|
933
|
+
*
|
934
|
+
* <blockquote class="warning">
|
935
|
+
* <p><strong>warning:</strong><br/>
|
936
|
+
* Supports filtering by location type, or by location ID. </br>
|
937
|
+
* Other fields like <code class="grey-background">name</code> are ignored.</p>
|
938
|
+
* </blockquote>
|
939
|
+
*
|
940
|
+
* Required, unless `cursorPaging`.`cursor` is provided.
|
941
|
+
*/
|
942
|
+
location?: Location;
|
943
|
+
/**
|
944
|
+
* Whether the `TimeSlot` is bookable according to all of the services booking policies.
|
945
|
+
*
|
946
|
+
* If booking any of the `TimeSlot`.`NestedTimeSlot`s violates any of its services bookings policies,
|
947
|
+
* returns as `false`. Otherwise, returns as `true`.
|
948
|
+
*
|
949
|
+
* > __Note:__
|
950
|
+
* > A `TimeSlot` with a `NestedTimeSlot` that doesn't meet its service's bookings policies will be returned with `bookable` = false,
|
951
|
+
* > while a `TimeSlot` with no available resources will not be returned at all.
|
952
|
+
*/
|
953
|
+
bookable?: boolean | null;
|
954
|
+
/**
|
955
|
+
* Indicators for service's booking policy violations for booking the `TimeSlot`.
|
956
|
+
*
|
957
|
+
* A bookable time slot must not violate any policy,
|
958
|
+
* therefor, this filter is only relevant when `bookable` filter is false.
|
959
|
+
*
|
960
|
+
* Each nested field is checked on all `NestedTimeSlot`s. For example, if only one of the `NestedTimeSlot`'s
|
961
|
+
* has a service with `tooEarlyToBook` same as in the request, we return the `TimeSlot` regardless of whether
|
962
|
+
* the other `NestedTimeSlots` has the same `tooEarlyToBook` as in request.
|
963
|
+
*
|
964
|
+
* Each nested field is checked on its own. For example, if `tooEarlyToBook` is defined and `bookOnlineDisabled` is not defined
|
965
|
+
* we return slots for which `tooEarlyToBook` is same as on the request, regardless of `bookOnlineDisabled`.
|
966
|
+
*/
|
967
|
+
bookingPolicyViolations?: BookingPolicyViolations;
|
968
|
+
/**
|
969
|
+
* Maximum number of slots to load for each day. For example, if `timeSlotsPerDay` is set to `3`,
|
970
|
+
* we return at most 3 available TimeSlots for each day within the date range specified in request.
|
971
|
+
*
|
972
|
+
* By default,
|
973
|
+
* if `bookable` filter was not specified,
|
974
|
+
* and a day has both `bookable` and `un-bookable` slots, `bookable` slots are returned first.
|
975
|
+
*
|
976
|
+
* If the number of `bookable` slots is less than the requested `timeSlotsPerDay`,
|
977
|
+
* `un-bookable` slots will be returned according to the specified filters.
|
978
|
+
*/
|
979
|
+
timeSlotsPerDay?: number | null;
|
980
|
+
/**
|
981
|
+
* CursorPaging.
|
982
|
+
*
|
983
|
+
* Enables you to fetch TimeSlots in smaller, more manageable chunks
|
984
|
+
* by setting a limit on the number of results returned in response.
|
985
|
+
* This is useful in order to enhance efficiency of data retrieval and reduce load on both the client and server.
|
986
|
+
*
|
987
|
+
* If there are more results than the specified limit, the response will contain a `cursorPagingMetaData`
|
988
|
+
* with a cursor pointing to next page of results. In order to fetch the next page of results, you should pass the
|
989
|
+
* returned cursor to the next call as `cursorPaging`.`cursor`.
|
990
|
+
*
|
991
|
+
* For the first call, you should only specify the `limit` for the results page.
|
992
|
+
* For each following call, you should only pass the previous returned cursor as `cursorPaging`.`cursor`
|
993
|
+
* the `cursorPaging`.`limit`. You may pass a different `limit`.
|
994
|
+
* No need to specify any additional parameters.
|
995
|
+
*
|
996
|
+
* <blockquote class="important">
|
997
|
+
* <p><strong>Important:</strong><br/>
|
998
|
+
* If you only provide a <code class="grey-background">cursorPaging</code>. <code class="grey-background">cursor</code>,
|
999
|
+
* the response will contain the default size of results which is `1000`.
|
1000
|
+
* </p>
|
1001
|
+
* </blockquote>
|
1002
|
+
*/
|
1003
|
+
cursorPaging?: CursorPaging;
|
1004
|
+
}
|
1005
|
+
|
1006
|
+
export { type AvailableResources as A, type BookingPolicyViolations as B, type CursorPaging as C, type EventInfo as E, type GetMultiServiceAvailabilityTimeSlotResponse as G, type ListMultiServiceAvailabilityTimeSlotsOptions as L, type NestedTimeSlot as N, type Resource as R, type Service as S, type TimeSlot as T, type V2CustomerChoices as V, type WaitingList as W, type ListMultiServiceAvailabilityTimeSlotsResponse as a, type Location as b, LocationType as c, type NonBookableReasons as d, type ListMultiServiceAvailabilityTimeSlotsRequest as e, type CursorPagingMetadata as f, type Cursors as g, type GetMultiServiceAvailabilityTimeSlotRequest as h, type ListAvailabilityTimeSlotsRequest as i, type CustomerChoices as j, type ResourceType as k, type ListAvailabilityTimeSlotsResponse as l, type GetAvailabilityTimeSlotRequest as m, type GetAvailabilityTimeSlotResponse as n, type ListEventTimeSlotsRequest as o, type ListEventTimeSlotsResponse as p, type GetEventTimeSlotRequest as q, type GetEventTimeSlotResponse as r };
|