@wix/auto_sdk_bookings_multi-service-availability-time-slots 1.0.133 → 1.0.135
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-B2t3dqyF.d.mts} +154 -33
- 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-B2t3dqyF.d.ts} +154 -33
- 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-B2t3dqyF.d.mts} +154 -33
- 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-B2t3dqyF.d.ts} +154 -33
- 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 +539 -0
- package/build/internal/meta.d.ts +539 -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 +539 -0
- package/build/meta.d.ts +539 -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 +12 -11
- 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 -1213
- 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/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 -1213
- 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 -1213
- 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 -1213
- 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?: LocationTypeWithLiterals;
|
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,9 +117,9 @@ export declare enum LocationType {
|
|
117
117
|
CUSTOMER = "CUSTOMER"
|
118
118
|
}
|
119
119
|
/** @enumType */
|
120
|
-
|
120
|
+
type LocationTypeWithLiterals = LocationType | 'UNKNOWN_LOCATION_TYPE' | 'BUSINESS' | 'CUSTOM' | 'CUSTOMER';
|
121
121
|
/** relevant for event based slots, and not for availability based slots */
|
122
|
-
|
122
|
+
interface EventInfo {
|
123
123
|
/**
|
124
124
|
* The event ID.
|
125
125
|
* @minLength 36
|
@@ -129,7 +129,7 @@ export interface EventInfo {
|
|
129
129
|
/** Waiting list details for the event, if enabled in the service's booking policy. */
|
130
130
|
waitingList?: WaitingList;
|
131
131
|
}
|
132
|
-
|
132
|
+
interface WaitingList {
|
133
133
|
/**
|
134
134
|
* Total number of spots in the waiting list.
|
135
135
|
* @min 1
|
@@ -141,7 +141,7 @@ export interface WaitingList {
|
|
141
141
|
*/
|
142
142
|
remainingCapacity?: number | null;
|
143
143
|
}
|
144
|
-
|
144
|
+
interface BookingPolicyViolations {
|
145
145
|
/** Bookings policy violation. Too early to book this slot. */
|
146
146
|
tooEarlyToBook?: boolean | null;
|
147
147
|
/** The earliest time at which booking for this slot is allowed, in UTC format (`YYYY-MM-DDThh:mm:ss.sssZ`). */
|
@@ -151,7 +151,7 @@ export interface BookingPolicyViolations {
|
|
151
151
|
/** Bookings policy violation. Online booking is disabled for the `TimeSlot` service. */
|
152
152
|
bookOnlineDisabled?: boolean | null;
|
153
153
|
}
|
154
|
-
|
154
|
+
interface AvailableResources {
|
155
155
|
/**
|
156
156
|
* Resource type ID.
|
157
157
|
* @format GUID
|
@@ -184,19 +184,19 @@ export interface AvailableResources {
|
|
184
184
|
*/
|
185
185
|
hasMoreAvailableResources?: boolean | null;
|
186
186
|
}
|
187
|
-
|
187
|
+
interface Resource {
|
188
188
|
/**
|
189
189
|
* Resource ID.
|
190
190
|
* @format GUID
|
191
191
|
*/
|
192
|
-
|
192
|
+
_id?: string;
|
193
193
|
/**
|
194
194
|
* Resource name.
|
195
195
|
* @minLength 1
|
196
196
|
*/
|
197
197
|
name?: string | null;
|
198
198
|
}
|
199
|
-
|
199
|
+
interface NestedTimeSlot {
|
200
200
|
/**
|
201
201
|
* Service ID of the nested time slot.
|
202
202
|
* @format GUID
|
@@ -221,7 +221,7 @@ export interface NestedTimeSlot {
|
|
221
221
|
*/
|
222
222
|
availableResources?: AvailableResources[];
|
223
223
|
}
|
224
|
-
|
224
|
+
interface NonBookableReasons {
|
225
225
|
/** The slot is fully booked with no remaining capacity. */
|
226
226
|
noRemainingCapacity?: boolean | null;
|
227
227
|
/** Booking this slot would violate the service's booking policy. */
|
@@ -229,7 +229,7 @@ export interface NonBookableReasons {
|
|
229
229
|
/** The slot is reserved for the waiting list and not available for direct booking. */
|
230
230
|
reservedForWaitingList?: boolean | null;
|
231
231
|
}
|
232
|
-
|
232
|
+
interface ListMultiServiceAvailabilityTimeSlotsRequest {
|
233
233
|
/**
|
234
234
|
* Services for which the multiService time slots are being returned for.
|
235
235
|
* Each service contains its own resources filters within.
|
@@ -348,7 +348,7 @@ export interface ListMultiServiceAvailabilityTimeSlotsRequest {
|
|
348
348
|
*/
|
349
349
|
cursorPaging?: CursorPaging;
|
350
350
|
}
|
351
|
-
|
351
|
+
interface Service {
|
352
352
|
/**
|
353
353
|
* Service ID.
|
354
354
|
* @format GUID
|
@@ -384,7 +384,7 @@ export interface Service {
|
|
384
384
|
* Selected customer choices.
|
385
385
|
* These choices are selected by the customer during the booking flow and can be utilized to calculate the corresponding service's configuration properties.
|
386
386
|
*/
|
387
|
-
|
387
|
+
interface V2CustomerChoices {
|
388
388
|
/**
|
389
389
|
* The selected customer duration in minutes.
|
390
390
|
* Min: `1 minute`
|
@@ -406,7 +406,7 @@ export interface V2CustomerChoices {
|
|
406
406
|
*/
|
407
407
|
durationChoiceId?: string | null;
|
408
408
|
}
|
409
|
-
|
409
|
+
interface CursorPaging {
|
410
410
|
/**
|
411
411
|
* Number of results to load.
|
412
412
|
*
|
@@ -424,7 +424,7 @@ export interface CursorPaging {
|
|
424
424
|
*/
|
425
425
|
cursor?: string | null;
|
426
426
|
}
|
427
|
-
|
427
|
+
interface ListMultiServiceAvailabilityTimeSlotsResponse {
|
428
428
|
/**
|
429
429
|
* Time slots.
|
430
430
|
* @maxSize 1000
|
@@ -452,7 +452,7 @@ export interface ListMultiServiceAvailabilityTimeSlotsResponse {
|
|
452
452
|
*/
|
453
453
|
cursorPagingMetadata?: CursorPagingMetadata;
|
454
454
|
}
|
455
|
-
|
455
|
+
interface CursorPagingMetadata {
|
456
456
|
/** Offset that was requested. */
|
457
457
|
cursors?: Cursors;
|
458
458
|
/**
|
@@ -462,13 +462,13 @@ export interface CursorPagingMetadata {
|
|
462
462
|
*/
|
463
463
|
hasNext?: boolean | null;
|
464
464
|
}
|
465
|
-
|
465
|
+
interface Cursors {
|
466
466
|
/** Cursor pointing to next page in the list of results. */
|
467
467
|
next?: string | null;
|
468
468
|
/** Cursor pointing to previous page in the list of results. */
|
469
469
|
prev?: string | null;
|
470
470
|
}
|
471
|
-
|
471
|
+
interface GetMultiServiceAvailabilityTimeSlotRequest {
|
472
472
|
/**
|
473
473
|
* Services for which the multiService TimeSlots are being returned for.
|
474
474
|
* Each service contains its own resources filters within.
|
@@ -510,7 +510,7 @@ export interface GetMultiServiceAvailabilityTimeSlotRequest {
|
|
510
510
|
*/
|
511
511
|
location: Location;
|
512
512
|
}
|
513
|
-
|
513
|
+
interface GetMultiServiceAvailabilityTimeSlotResponse {
|
514
514
|
/** Time slot. */
|
515
515
|
timeSlot?: TimeSlot;
|
516
516
|
/**
|
@@ -520,7 +520,7 @@ export interface GetMultiServiceAvailabilityTimeSlotResponse {
|
|
520
520
|
*/
|
521
521
|
timeZone?: string | null;
|
522
522
|
}
|
523
|
-
|
523
|
+
interface ListAvailabilityTimeSlotsRequest {
|
524
524
|
/**
|
525
525
|
* Service ID for which the time slots are being returned for.
|
526
526
|
* Currently supported only for services of type `APPOINTMENT`.
|
@@ -665,7 +665,7 @@ export interface ListAvailabilityTimeSlotsRequest {
|
|
665
665
|
* Selected customer choices.
|
666
666
|
* These choices are selected by the customer during the booking flow and can be utilized to calculate the corresponding service's configuration properties.
|
667
667
|
*/
|
668
|
-
|
668
|
+
interface CustomerChoices {
|
669
669
|
/**
|
670
670
|
* The selected customer duration in minutes.
|
671
671
|
* Min: `1 minute`
|
@@ -687,7 +687,7 @@ export interface CustomerChoices {
|
|
687
687
|
*/
|
688
688
|
durationChoiceId?: string | null;
|
689
689
|
}
|
690
|
-
|
690
|
+
interface ResourceType {
|
691
691
|
/**
|
692
692
|
* Resource type ID.
|
693
693
|
* @format GUID
|
@@ -702,7 +702,7 @@ export interface ResourceType {
|
|
702
702
|
*/
|
703
703
|
resourceIds?: string[] | null;
|
704
704
|
}
|
705
|
-
|
705
|
+
interface ListAvailabilityTimeSlotsResponse {
|
706
706
|
/**
|
707
707
|
* Time slots.
|
708
708
|
* @maxSize 1000
|
@@ -730,7 +730,7 @@ export interface ListAvailabilityTimeSlotsResponse {
|
|
730
730
|
*/
|
731
731
|
cursorPagingMetadata?: CursorPagingMetadata;
|
732
732
|
}
|
733
|
-
|
733
|
+
interface GetAvailabilityTimeSlotRequest {
|
734
734
|
/**
|
735
735
|
* Service ID of the time slot.
|
736
736
|
* Currently supported only for services of type `APPOINTMENT`.
|
@@ -787,7 +787,7 @@ export interface GetAvailabilityTimeSlotRequest {
|
|
787
787
|
*/
|
788
788
|
includeResourceTypeIds?: string[];
|
789
789
|
}
|
790
|
-
|
790
|
+
interface GetAvailabilityTimeSlotRequestCustomerChoices {
|
791
791
|
/**
|
792
792
|
* The selected add-ons IDs.
|
793
793
|
* Max: Derived from max amount of Add-On groups * max amount of Add-Ons per group.
|
@@ -801,7 +801,7 @@ export interface GetAvailabilityTimeSlotRequestCustomerChoices {
|
|
801
801
|
*/
|
802
802
|
durationChoiceId?: string | null;
|
803
803
|
}
|
804
|
-
|
804
|
+
interface GetAvailabilityTimeSlotResponse {
|
805
805
|
/** Time slot. */
|
806
806
|
timeSlot?: TimeSlot;
|
807
807
|
/**
|
@@ -811,7 +811,7 @@ export interface GetAvailabilityTimeSlotResponse {
|
|
811
811
|
*/
|
812
812
|
timeZone?: string | null;
|
813
813
|
}
|
814
|
-
|
814
|
+
interface ListEventTimeSlotsRequest {
|
815
815
|
/**
|
816
816
|
* Local start date for which event time slots are returned, in ISO-8601 format.
|
817
817
|
* E.g., "2024-01-30T13:30:00".
|
@@ -869,7 +869,7 @@ export interface ListEventTimeSlotsRequest {
|
|
869
869
|
/** Cursor to retrieve the next page of results. */
|
870
870
|
cursorPaging?: CursorPaging;
|
871
871
|
}
|
872
|
-
|
872
|
+
interface ListEventTimeSlotsResponse {
|
873
873
|
/** Retrieved time slots matching the specified filters. */
|
874
874
|
timeSlots?: TimeSlot[];
|
875
875
|
/**
|
@@ -882,7 +882,7 @@ export interface ListEventTimeSlotsResponse {
|
|
882
882
|
/** Paging metadata. */
|
883
883
|
pagingMetadata?: CursorPagingMetadata;
|
884
884
|
}
|
885
|
-
|
885
|
+
interface GetEventTimeSlotRequest {
|
886
886
|
/**
|
887
887
|
* The event ID.
|
888
888
|
* @minLength 36
|
@@ -898,7 +898,7 @@ export interface GetEventTimeSlotRequest {
|
|
898
898
|
*/
|
899
899
|
timeZone?: string | null;
|
900
900
|
}
|
901
|
-
|
901
|
+
interface GetEventTimeSlotResponse {
|
902
902
|
/** The time slot. */
|
903
903
|
timeSlot?: TimeSlot;
|
904
904
|
/**
|
@@ -909,3 +909,124 @@ export interface GetEventTimeSlotResponse {
|
|
909
909
|
*/
|
910
910
|
timeZone?: string | null;
|
911
911
|
}
|
912
|
+
interface ListMultiServiceAvailabilityTimeSlotsOptions {
|
913
|
+
/**
|
914
|
+
* Services for which the multiService time slots are being returned for.
|
915
|
+
* Each service contains its own resources filters within.
|
916
|
+
*
|
917
|
+
* MinSize: `2`.
|
918
|
+
* MaxSize: `8`.
|
919
|
+
*
|
920
|
+
* Required, unless `cursorPaging`.`cursor` is provided.
|
921
|
+
* @maxSize 8
|
922
|
+
*/
|
923
|
+
services?: Service[];
|
924
|
+
/**
|
925
|
+
* Lower boundary for `localStartDate` to include in response, in ISO-8601 format.
|
926
|
+
* For example, "2024-01-30T13:30:00".
|
927
|
+
*
|
928
|
+
* Each returned `TimeSlot` in response has a `localStartDate`
|
929
|
+
* within the provided `fromLocalDate` and `toLocalDate` exclusive.
|
930
|
+
*
|
931
|
+
* Required, unless `cursorPaging`.`cursor` is provided.
|
932
|
+
* @format LOCAL_DATE_TIME
|
933
|
+
*/
|
934
|
+
fromLocalDate?: string | null;
|
935
|
+
/**
|
936
|
+
* Upper boundary for `localStartDate` to include in response, in ISO-8601 format.
|
937
|
+
* For example, "2024-01-30T14:30:00".
|
938
|
+
*
|
939
|
+
* Each returned `TimeSlot` in response has a `localStartDate`
|
940
|
+
* within the provided `fromLocalDate` and `toLocalDate` exclusive.
|
941
|
+
*
|
942
|
+
* Required, unless `cursorPaging`.`cursor` is provided.
|
943
|
+
* @format LOCAL_DATE_TIME
|
944
|
+
*/
|
945
|
+
toLocalDate?: string | null;
|
946
|
+
/**
|
947
|
+
* Time zone, in IANA time zone format.
|
948
|
+
*
|
949
|
+
* Required, unless `cursorPaging`.`cursor` is provided.
|
950
|
+
* @minLength 1
|
951
|
+
* @maxLength 150
|
952
|
+
*/
|
953
|
+
timeZone?: string | null;
|
954
|
+
/**
|
955
|
+
* Location for which the multiService TimeSlots are being returned for.
|
956
|
+
*
|
957
|
+
* You can specify location or location type for which the TimeSlots will be returned for.
|
958
|
+
* If locationType is `BUSINESS`, you __must__ provide a locationId.
|
959
|
+
*
|
960
|
+
* <blockquote class="warning">
|
961
|
+
* <p><strong>warning:</strong><br/>
|
962
|
+
* Supports filtering by location type, or by location ID. </br>
|
963
|
+
* Other fields like <code class="grey-background">name</code> are ignored.</p>
|
964
|
+
* </blockquote>
|
965
|
+
*
|
966
|
+
* Required, unless `cursorPaging`.`cursor` is provided.
|
967
|
+
*/
|
968
|
+
location?: Location;
|
969
|
+
/**
|
970
|
+
* Whether the `TimeSlot` is bookable according to all of the services booking policies.
|
971
|
+
*
|
972
|
+
* If booking any of the `TimeSlot`.`NestedTimeSlot`s violates any of its services bookings policies,
|
973
|
+
* returns as `false`. Otherwise, returns as `true`.
|
974
|
+
*
|
975
|
+
* > __Note:__
|
976
|
+
* > A `TimeSlot` with a `NestedTimeSlot` that doesn't meet its service's bookings policies will be returned with `bookable` = false,
|
977
|
+
* > while a `TimeSlot` with no available resources will not be returned at all.
|
978
|
+
*/
|
979
|
+
bookable?: boolean | null;
|
980
|
+
/**
|
981
|
+
* Indicators for service's booking policy violations for booking the `TimeSlot`.
|
982
|
+
*
|
983
|
+
* A bookable time slot must not violate any policy,
|
984
|
+
* therefor, this filter is only relevant when `bookable` filter is false.
|
985
|
+
*
|
986
|
+
* Each nested field is checked on all `NestedTimeSlot`s. For example, if only one of the `NestedTimeSlot`'s
|
987
|
+
* has a service with `tooEarlyToBook` same as in the request, we return the `TimeSlot` regardless of whether
|
988
|
+
* the other `NestedTimeSlots` has the same `tooEarlyToBook` as in request.
|
989
|
+
*
|
990
|
+
* Each nested field is checked on its own. For example, if `tooEarlyToBook` is defined and `bookOnlineDisabled` is not defined
|
991
|
+
* we return slots for which `tooEarlyToBook` is same as on the request, regardless of `bookOnlineDisabled`.
|
992
|
+
*/
|
993
|
+
bookingPolicyViolations?: BookingPolicyViolations;
|
994
|
+
/**
|
995
|
+
* Maximum number of slots to load for each day. For example, if `timeSlotsPerDay` is set to `3`,
|
996
|
+
* we return at most 3 available TimeSlots for each day within the date range specified in request.
|
997
|
+
*
|
998
|
+
* By default,
|
999
|
+
* if `bookable` filter was not specified,
|
1000
|
+
* and a day has both `bookable` and `un-bookable` slots, `bookable` slots are returned first.
|
1001
|
+
*
|
1002
|
+
* If the number of `bookable` slots is less than the requested `timeSlotsPerDay`,
|
1003
|
+
* `un-bookable` slots will be returned according to the specified filters.
|
1004
|
+
*/
|
1005
|
+
timeSlotsPerDay?: number | null;
|
1006
|
+
/**
|
1007
|
+
* CursorPaging.
|
1008
|
+
*
|
1009
|
+
* Enables you to fetch TimeSlots in smaller, more manageable chunks
|
1010
|
+
* by setting a limit on the number of results returned in response.
|
1011
|
+
* This is useful in order to enhance efficiency of data retrieval and reduce load on both the client and server.
|
1012
|
+
*
|
1013
|
+
* If there are more results than the specified limit, the response will contain a `cursorPagingMetaData`
|
1014
|
+
* with a cursor pointing to next page of results. In order to fetch the next page of results, you should pass the
|
1015
|
+
* returned cursor to the next call as `cursorPaging`.`cursor`.
|
1016
|
+
*
|
1017
|
+
* For the first call, you should only specify the `limit` for the results page.
|
1018
|
+
* For each following call, you should only pass the previous returned cursor as `cursorPaging`.`cursor`
|
1019
|
+
* the `cursorPaging`.`limit`. You may pass a different `limit`.
|
1020
|
+
* No need to specify any additional parameters.
|
1021
|
+
*
|
1022
|
+
* <blockquote class="important">
|
1023
|
+
* <p><strong>Important:</strong><br/>
|
1024
|
+
* If you only provide a <code class="grey-background">cursorPaging</code>. <code class="grey-background">cursor</code>,
|
1025
|
+
* the response will contain the default size of results which is `1000`.
|
1026
|
+
* </p>
|
1027
|
+
* </blockquote>
|
1028
|
+
*/
|
1029
|
+
cursorPaging?: CursorPaging;
|
1030
|
+
}
|
1031
|
+
|
1032
|
+
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 GetAvailabilityTimeSlotRequestCustomerChoices as n, type GetAvailabilityTimeSlotResponse as o, type ListEventTimeSlotsRequest as p, type ListEventTimeSlotsResponse as q, type GetEventTimeSlotRequest as r, type GetEventTimeSlotResponse as s };
|