@wix/auto_sdk_bookings_multi-service-availability-time-slots 1.0.134 → 1.0.136
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 -1217
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js +0 -294
- 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 -1217
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js +0 -266
- 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 -1217
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js +0 -294
- 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 -1217
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js +0 -266
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js.map +0 -1
@@ -0,0 +1,539 @@
|
|
1
|
+
import { e as ListMultiServiceAvailabilityTimeSlotsRequest$1, a as ListMultiServiceAvailabilityTimeSlotsResponse$1, h as GetMultiServiceAvailabilityTimeSlotRequest$1, G as GetMultiServiceAvailabilityTimeSlotResponse$1 } from './bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal-B2t3dqyF.js';
|
2
|
+
|
3
|
+
/**
|
4
|
+
* The `TimeSlot` object represents the availability information
|
5
|
+
* for an `Appointment` service's specific slot, including:
|
6
|
+
*
|
7
|
+
* 1. Whether the slot is bookable for the given service?
|
8
|
+
*
|
9
|
+
* 2. In what location the service is available for this slot?
|
10
|
+
*
|
11
|
+
* 3. Which available resources can provide the service for this slot?
|
12
|
+
*
|
13
|
+
* 4. Does booking the slot for the service violates any of the service booking policies?
|
14
|
+
*
|
15
|
+
* 5. What is the total capacity and remaining capacity of the service at the time of the calculation of the `TimeSlot`?
|
16
|
+
*
|
17
|
+
* > __Note:__
|
18
|
+
* > When the `TimeSlot` has a non empty `NestedTimeSlots`, it represents the availability information
|
19
|
+
* > for a given list of `Appointment` services within a specific time slot.
|
20
|
+
*/
|
21
|
+
interface TimeSlot {
|
22
|
+
/**
|
23
|
+
* Service ID.
|
24
|
+
*
|
25
|
+
* > Not returned from `MultiServiceAvailabilityTimeSlots` API calls.
|
26
|
+
* > Instead, each nested time slot has its own serviceId.
|
27
|
+
* @format GUID
|
28
|
+
*/
|
29
|
+
serviceId?: string | null;
|
30
|
+
/**
|
31
|
+
* Local start date of the time slot in ISO-8601 format.
|
32
|
+
* For example, "2024-01-30T13:30:00".
|
33
|
+
* @format LOCAL_DATE_TIME
|
34
|
+
*/
|
35
|
+
localStartDate?: string | null;
|
36
|
+
/**
|
37
|
+
* Local end date of the time slot in ISO-8601 format.
|
38
|
+
* For example, "2024-01-30T14:30:00".
|
39
|
+
* @format LOCAL_DATE_TIME
|
40
|
+
*/
|
41
|
+
localEndDate?: string | null;
|
42
|
+
/**
|
43
|
+
* Whether the slot is bookable according to the service's booking policies.
|
44
|
+
*
|
45
|
+
* If booking this time slot does not violates any of the service's booking policies,
|
46
|
+
* the returned value is `true`. Otherwise, returns `false`.
|
47
|
+
*/
|
48
|
+
bookable?: boolean | null;
|
49
|
+
/** The geographic location of the slot. */
|
50
|
+
location?: Location;
|
51
|
+
/** The event information if the time slot is an event based slot. */
|
52
|
+
eventInfo?: EventInfo;
|
53
|
+
/**
|
54
|
+
* Total number of spots for the slot.
|
55
|
+
* @min 1
|
56
|
+
* @max 1000
|
57
|
+
*/
|
58
|
+
totalCapacity?: number | null;
|
59
|
+
/**
|
60
|
+
* Remaining number of spots for the slot.
|
61
|
+
* For example, for an appointment service with total capacity of 1 spot and one booked spot, the remaining capacity will be 0.
|
62
|
+
* @max 1000
|
63
|
+
*/
|
64
|
+
remainingCapacity?: number | null;
|
65
|
+
/**
|
66
|
+
* Number of spots in the slot that are available for booking.
|
67
|
+
* This is calculated as the remaining capacity minus the spots reserved for the waiting list.
|
68
|
+
*/
|
69
|
+
bookableCapacity?: number | null;
|
70
|
+
/**
|
71
|
+
* Indicators for booking policy violations for the slot.
|
72
|
+
*
|
73
|
+
* Each nested field is checked on its own. i.e. if `tooEarlyToBook` is defined and `bookOnlineDisabled` is not defined
|
74
|
+
* we will return also slots for which `tooEarlyToBook` is same as on the request, regardless of `bookOnlineDisabled`.
|
75
|
+
*/
|
76
|
+
bookingPolicyViolations?: BookingPolicyViolations;
|
77
|
+
/**
|
78
|
+
* List of `AvailableResources` for the time slot.
|
79
|
+
* Each `AvailableResources` contains information about available resources of the same type.
|
80
|
+
*
|
81
|
+
* > Not returned from `MultiServiceAvailabilityTimeSlots` API calls.
|
82
|
+
* > Instead, each nested time slot has its own available resources.
|
83
|
+
*/
|
84
|
+
availableResources?: AvailableResources[];
|
85
|
+
/**
|
86
|
+
* > Nested time slots.
|
87
|
+
* > Returned only from `MultiServiceAvailabilityTimeSlots` API calls.
|
88
|
+
* @maxSize 8
|
89
|
+
*/
|
90
|
+
nestedTimeSlots?: NestedTimeSlot[];
|
91
|
+
/** Reasons why the time slot is not available for booking. */
|
92
|
+
nonBookableReasons?: NonBookableReasons;
|
93
|
+
}
|
94
|
+
interface Location {
|
95
|
+
/**
|
96
|
+
* Business Location ID. Present only if the location is a business location.
|
97
|
+
* @format GUID
|
98
|
+
*/
|
99
|
+
id?: string | null;
|
100
|
+
/** The location name. */
|
101
|
+
name?: string | null;
|
102
|
+
/** A string representation for the full address of the location. */
|
103
|
+
formattedAddress?: string | null;
|
104
|
+
/**
|
105
|
+
* The type of location:
|
106
|
+
* - `CUSTOM`: The location is specific to this service, and is not derived from the business location.
|
107
|
+
* - `BUSINESS`: A business location, either the default business address, or locations defined for the business by the Business Info.
|
108
|
+
* - `CUSTOMER`: The location is determined by the customer and is not set up beforehand.
|
109
|
+
*/
|
110
|
+
locationType?: LocationTypeWithLiterals;
|
111
|
+
}
|
112
|
+
declare enum LocationType {
|
113
|
+
UNKNOWN_LOCATION_TYPE = "UNKNOWN_LOCATION_TYPE",
|
114
|
+
/** A business location, either the default business address, or locations defined for the business by the Business Info. */
|
115
|
+
BUSINESS = "BUSINESS",
|
116
|
+
/** The location is unique to this service and isn't defined as one of the business locations. */
|
117
|
+
CUSTOM = "CUSTOM",
|
118
|
+
/** The location can be determined by the customer and is not set up beforehand. */
|
119
|
+
CUSTOMER = "CUSTOMER"
|
120
|
+
}
|
121
|
+
/** @enumType */
|
122
|
+
type LocationTypeWithLiterals = LocationType | 'UNKNOWN_LOCATION_TYPE' | 'BUSINESS' | 'CUSTOM' | 'CUSTOMER';
|
123
|
+
/** relevant for event based slots, and not for availability based slots */
|
124
|
+
interface EventInfo {
|
125
|
+
/**
|
126
|
+
* The event ID.
|
127
|
+
* @minLength 36
|
128
|
+
* @maxLength 250
|
129
|
+
*/
|
130
|
+
eventId?: string | null;
|
131
|
+
/** Waiting list details for the event, if enabled in the service's booking policy. */
|
132
|
+
waitingList?: WaitingList;
|
133
|
+
}
|
134
|
+
interface WaitingList {
|
135
|
+
/**
|
136
|
+
* Total number of spots in the waiting list.
|
137
|
+
* @min 1
|
138
|
+
*/
|
139
|
+
totalCapacity?: number | null;
|
140
|
+
/**
|
141
|
+
* Number of remaining spots in the waiting list.
|
142
|
+
* For example, a yoga event with a capacity of `10` and `3` registrants will have a `remainingCapacity` of `7`.
|
143
|
+
*/
|
144
|
+
remainingCapacity?: number | null;
|
145
|
+
}
|
146
|
+
interface BookingPolicyViolations {
|
147
|
+
/** Bookings policy violation. Too early to book this slot. */
|
148
|
+
tooEarlyToBook?: boolean | null;
|
149
|
+
/** The earliest time at which booking for this slot is allowed, in UTC format (`YYYY-MM-DDThh:mm:ss.sssZ`). */
|
150
|
+
earliestBookingDate?: Date | null;
|
151
|
+
/** Bookings policy violation. Too late to book this slot. */
|
152
|
+
tooLateToBook?: boolean | null;
|
153
|
+
/** Bookings policy violation. Online booking is disabled for the `TimeSlot` service. */
|
154
|
+
bookOnlineDisabled?: boolean | null;
|
155
|
+
}
|
156
|
+
interface AvailableResources {
|
157
|
+
/**
|
158
|
+
* Resource type ID.
|
159
|
+
* @format GUID
|
160
|
+
*/
|
161
|
+
resourceTypeId?: string | null;
|
162
|
+
/**
|
163
|
+
* Available resources for the time slot.
|
164
|
+
*
|
165
|
+
* + When returned from `ListAvailabilityTimeSlots`, empty by default.
|
166
|
+
* + + If you provided `includeResourceTypeIds` or `resourceIds` in request,
|
167
|
+
* contains __up__ to 10 available resources out of those provided.
|
168
|
+
*
|
169
|
+
* + When returned from `GetAvailabilityTimeSlots`, contains all available resources by default.
|
170
|
+
* + + If you provided `includeResourceTypeIds` or `resourceIds` in request,
|
171
|
+
* contains all of the available resources out of those provided.
|
172
|
+
*
|
173
|
+
*
|
174
|
+
* > + When returned from `ListMultiServiceAvailabilityTimeSlots`, empty by default.
|
175
|
+
* > + + If you provided `includeResourceTypeIds` or `resourceIds` in request,
|
176
|
+
* > contains __up__ to 10 available resources out of those provided.
|
177
|
+
*
|
178
|
+
* > + When returned from `GetMultiServiceAvailabilityTimeSlots`, contains all available resources by default.
|
179
|
+
* > + + If you provided `includeResourceTypeIds` or `resourceIds` in request,
|
180
|
+
* > contains all of the available resources out of those provided.
|
181
|
+
*/
|
182
|
+
resources?: Resource[];
|
183
|
+
/**
|
184
|
+
* Whether there are more available resources for the slot that are not listed in `resources` due to size limitations.
|
185
|
+
* @readonly
|
186
|
+
*/
|
187
|
+
hasMoreAvailableResources?: boolean | null;
|
188
|
+
}
|
189
|
+
interface Resource {
|
190
|
+
/**
|
191
|
+
* Resource ID.
|
192
|
+
* @format GUID
|
193
|
+
*/
|
194
|
+
id?: string;
|
195
|
+
/**
|
196
|
+
* Resource name.
|
197
|
+
* @minLength 1
|
198
|
+
*/
|
199
|
+
name?: string | null;
|
200
|
+
}
|
201
|
+
interface NestedTimeSlot {
|
202
|
+
/**
|
203
|
+
* Service ID of the nested time slot.
|
204
|
+
* @format GUID
|
205
|
+
*/
|
206
|
+
serviceId?: string;
|
207
|
+
/**
|
208
|
+
* Local start date of the nested time slot in ISO-8601 format.
|
209
|
+
* For example, "2024-01-30T13:30:00".
|
210
|
+
* @format LOCAL_DATE_TIME
|
211
|
+
*/
|
212
|
+
localStartDate?: string;
|
213
|
+
/**
|
214
|
+
* Local end date of the nested time slot in ISO-8601 format.
|
215
|
+
* For example, "2024-01-30T14:30:00".
|
216
|
+
* @format LOCAL_DATE_TIME
|
217
|
+
*/
|
218
|
+
localEndDate?: string;
|
219
|
+
/**
|
220
|
+
* List of `AvailableResources` for the nested time slot.
|
221
|
+
* Each `AvailableResources` contains information about available resources of the same type.
|
222
|
+
* @maxSize 10
|
223
|
+
*/
|
224
|
+
availableResources?: AvailableResources[];
|
225
|
+
}
|
226
|
+
interface NonBookableReasons {
|
227
|
+
/** The slot is fully booked with no remaining capacity. */
|
228
|
+
noRemainingCapacity?: boolean | null;
|
229
|
+
/** Booking this slot would violate the service's booking policy. */
|
230
|
+
violatesBookingPolicy?: boolean | null;
|
231
|
+
/** The slot is reserved for the waiting list and not available for direct booking. */
|
232
|
+
reservedForWaitingList?: boolean | null;
|
233
|
+
}
|
234
|
+
interface ListMultiServiceAvailabilityTimeSlotsRequest {
|
235
|
+
/**
|
236
|
+
* Services for which the multiService time slots are being returned for.
|
237
|
+
* Each service contains its own resources filters within.
|
238
|
+
*
|
239
|
+
* MinSize: `2`.
|
240
|
+
* MaxSize: `8`.
|
241
|
+
*
|
242
|
+
* Required, unless `cursorPaging`.`cursor` is provided.
|
243
|
+
* @maxSize 8
|
244
|
+
*/
|
245
|
+
services?: Service[];
|
246
|
+
/**
|
247
|
+
* Lower boundary for `localStartDate` to include in response, in ISO-8601 format.
|
248
|
+
* For example, "2024-01-30T13:30:00".
|
249
|
+
*
|
250
|
+
* Each returned `TimeSlot` in response has a `localStartDate`
|
251
|
+
* within the provided `fromLocalDate` and `toLocalDate` exclusive.
|
252
|
+
*
|
253
|
+
* Required, unless `cursorPaging`.`cursor` is provided.
|
254
|
+
* @format LOCAL_DATE_TIME
|
255
|
+
*/
|
256
|
+
fromLocalDate?: string | null;
|
257
|
+
/**
|
258
|
+
* Upper boundary for `localStartDate` to include in response, in ISO-8601 format.
|
259
|
+
* For example, "2024-01-30T14:30:00".
|
260
|
+
*
|
261
|
+
* Each returned `TimeSlot` in response has a `localStartDate`
|
262
|
+
* within the provided `fromLocalDate` and `toLocalDate` exclusive.
|
263
|
+
*
|
264
|
+
* Required, unless `cursorPaging`.`cursor` is provided.
|
265
|
+
* @format LOCAL_DATE_TIME
|
266
|
+
*/
|
267
|
+
toLocalDate?: string | null;
|
268
|
+
/**
|
269
|
+
* Time zone, in IANA time zone format.
|
270
|
+
*
|
271
|
+
* Required, unless `cursorPaging`.`cursor` is provided.
|
272
|
+
* @minLength 1
|
273
|
+
* @maxLength 150
|
274
|
+
*/
|
275
|
+
timeZone?: string | null;
|
276
|
+
/**
|
277
|
+
* Location for which the multiService TimeSlots are being returned for.
|
278
|
+
*
|
279
|
+
* You can specify location or location type for which the TimeSlots will be returned for.
|
280
|
+
* If locationType is `BUSINESS`, you __must__ provide a locationId.
|
281
|
+
*
|
282
|
+
* <blockquote class="warning">
|
283
|
+
* <p><strong>warning:</strong><br/>
|
284
|
+
* Supports filtering by location type, or by location ID. </br>
|
285
|
+
* Other fields like <code class="grey-background">name</code> are ignored.</p>
|
286
|
+
* </blockquote>
|
287
|
+
*
|
288
|
+
* Required, unless `cursorPaging`.`cursor` is provided.
|
289
|
+
*/
|
290
|
+
location?: Location;
|
291
|
+
/**
|
292
|
+
* Whether the `TimeSlot` is bookable according to all of the services booking policies.
|
293
|
+
*
|
294
|
+
* If booking any of the `TimeSlot`.`NestedTimeSlot`s violates any of its services bookings policies,
|
295
|
+
* returns as `false`. Otherwise, returns as `true`.
|
296
|
+
*
|
297
|
+
* > __Note:__
|
298
|
+
* > A `TimeSlot` with a `NestedTimeSlot` that doesn't meet its service's bookings policies will be returned with `bookable` = false,
|
299
|
+
* > while a `TimeSlot` with no available resources will not be returned at all.
|
300
|
+
*/
|
301
|
+
bookable?: boolean | null;
|
302
|
+
/**
|
303
|
+
* Indicators for service's booking policy violations for booking the `TimeSlot`.
|
304
|
+
*
|
305
|
+
* A bookable time slot must not violate any policy,
|
306
|
+
* therefor, this filter is only relevant when `bookable` filter is false.
|
307
|
+
*
|
308
|
+
* Each nested field is checked on all `NestedTimeSlot`s. For example, if only one of the `NestedTimeSlot`'s
|
309
|
+
* has a service with `tooEarlyToBook` same as in the request, we return the `TimeSlot` regardless of whether
|
310
|
+
* the other `NestedTimeSlots` has the same `tooEarlyToBook` as in request.
|
311
|
+
*
|
312
|
+
* Each nested field is checked on its own. For example, if `tooEarlyToBook` is defined and `bookOnlineDisabled` is not defined
|
313
|
+
* we return slots for which `tooEarlyToBook` is same as on the request, regardless of `bookOnlineDisabled`.
|
314
|
+
*/
|
315
|
+
bookingPolicyViolations?: BookingPolicyViolations;
|
316
|
+
/**
|
317
|
+
* Maximum number of slots to load for each day. For example, if `timeSlotsPerDay` is set to `3`,
|
318
|
+
* we return at most 3 available TimeSlots for each day within the date range specified in request.
|
319
|
+
*
|
320
|
+
* By default,
|
321
|
+
* if `bookable` filter was not specified,
|
322
|
+
* and a day has both `bookable` and `un-bookable` slots, `bookable` slots are returned first.
|
323
|
+
*
|
324
|
+
* If the number of `bookable` slots is less than the requested `timeSlotsPerDay`,
|
325
|
+
* `un-bookable` slots will be returned according to the specified filters.
|
326
|
+
*/
|
327
|
+
timeSlotsPerDay?: number | null;
|
328
|
+
/**
|
329
|
+
* CursorPaging.
|
330
|
+
*
|
331
|
+
* Enables you to fetch TimeSlots in smaller, more manageable chunks
|
332
|
+
* by setting a limit on the number of results returned in response.
|
333
|
+
* This is useful in order to enhance efficiency of data retrieval and reduce load on both the client and server.
|
334
|
+
*
|
335
|
+
* If there are more results than the specified limit, the response will contain a `cursorPagingMetaData`
|
336
|
+
* with a cursor pointing to next page of results. In order to fetch the next page of results, you should pass the
|
337
|
+
* returned cursor to the next call as `cursorPaging`.`cursor`.
|
338
|
+
*
|
339
|
+
* For the first call, you should only specify the `limit` for the results page.
|
340
|
+
* For each following call, you should only pass the previous returned cursor as `cursorPaging`.`cursor`
|
341
|
+
* the `cursorPaging`.`limit`. You may pass a different `limit`.
|
342
|
+
* No need to specify any additional parameters.
|
343
|
+
*
|
344
|
+
* <blockquote class="important">
|
345
|
+
* <p><strong>Important:</strong><br/>
|
346
|
+
* If you only provide a <code class="grey-background">cursorPaging</code>. <code class="grey-background">cursor</code>,
|
347
|
+
* the response will contain the default size of results which is `1000`.
|
348
|
+
* </p>
|
349
|
+
* </blockquote>
|
350
|
+
*/
|
351
|
+
cursorPaging?: CursorPaging;
|
352
|
+
}
|
353
|
+
interface Service {
|
354
|
+
/**
|
355
|
+
* Service ID.
|
356
|
+
* @format GUID
|
357
|
+
*/
|
358
|
+
serviceId?: string;
|
359
|
+
/**
|
360
|
+
* Resources to include in response.
|
361
|
+
* @format GUID
|
362
|
+
* @maxSize 135
|
363
|
+
*/
|
364
|
+
resourceIds?: string[];
|
365
|
+
/**
|
366
|
+
* The resource type ID's to include in returned time slots.
|
367
|
+
* This is in addition to the specifically requested resources.
|
368
|
+
*
|
369
|
+
* <blockquote class="important">
|
370
|
+
* Currently supported only for Staff Member resource type.
|
371
|
+
* Staff Member type ID: 1cd44cf8-756f-41c3-bd90-3e2ffcaf1155
|
372
|
+
* </blockquote>
|
373
|
+
* @format GUID
|
374
|
+
* @maxSize 100
|
375
|
+
*/
|
376
|
+
includeResourceTypeIds?: string[];
|
377
|
+
/**
|
378
|
+
* Selected customer choices.
|
379
|
+
* If specified, the selected choices will be used to calculate service configuration.
|
380
|
+
* If not specified, the service default configuration will be used.
|
381
|
+
* Enforcing this field is the responsibility of the SPI implementer, and not by the Availability API.
|
382
|
+
*/
|
383
|
+
customerChoices?: V2CustomerChoices;
|
384
|
+
}
|
385
|
+
/**
|
386
|
+
* Selected customer choices.
|
387
|
+
* These choices are selected by the customer during the booking flow and can be utilized to calculate the corresponding service's configuration properties.
|
388
|
+
*/
|
389
|
+
interface V2CustomerChoices {
|
390
|
+
/**
|
391
|
+
* The selected customer duration in minutes.
|
392
|
+
* Min: `1 minute`
|
393
|
+
* Max: `44639 minutes` (30 days, 23 hours, and 59 minutes)
|
394
|
+
* @min 1
|
395
|
+
* @max 44639
|
396
|
+
*/
|
397
|
+
durationInMinutes?: number | null;
|
398
|
+
/**
|
399
|
+
* The selected add-ons IDs.
|
400
|
+
* Max: Derived from max amount of Add-On groups * max amount of Add-Ons per group.
|
401
|
+
* @format GUID
|
402
|
+
* @maxSize 21
|
403
|
+
*/
|
404
|
+
addOnIds?: string[] | null;
|
405
|
+
/**
|
406
|
+
* The selected duration choice ID.
|
407
|
+
* @format GUID
|
408
|
+
*/
|
409
|
+
durationChoiceId?: string | null;
|
410
|
+
}
|
411
|
+
interface CursorPaging {
|
412
|
+
/**
|
413
|
+
* Number of results to load.
|
414
|
+
*
|
415
|
+
* Default: `1000`.
|
416
|
+
* Max: `1000`.
|
417
|
+
* @max 1000
|
418
|
+
*/
|
419
|
+
limit?: number | null;
|
420
|
+
/**
|
421
|
+
* Pointer to the next or previous page in the list of results.
|
422
|
+
*
|
423
|
+
* You can get the relevant cursor token
|
424
|
+
* from the `pagingMetadata` object in the previous call's response.
|
425
|
+
* Not relevant for the first request.
|
426
|
+
*/
|
427
|
+
cursor?: string | null;
|
428
|
+
}
|
429
|
+
interface ListMultiServiceAvailabilityTimeSlotsResponse {
|
430
|
+
/**
|
431
|
+
* Time slots.
|
432
|
+
* @maxSize 1000
|
433
|
+
*/
|
434
|
+
timeSlots?: TimeSlot[];
|
435
|
+
/**
|
436
|
+
* Time zone, in IANA time zone format.
|
437
|
+
* Shared for all TimeSlots in response.
|
438
|
+
* @minLength 1
|
439
|
+
* @maxLength 150
|
440
|
+
*/
|
441
|
+
timeZone?: string | null;
|
442
|
+
/**
|
443
|
+
* CursorPagingMetaData.
|
444
|
+
* Contains information about the next page of results.
|
445
|
+
*
|
446
|
+
* By default,
|
447
|
+
* if there are more than 1000 results,
|
448
|
+
* the response will contain a `cursorPagingMetaData` with a cursor to the next page of results.
|
449
|
+
*
|
450
|
+
* <blockquote class="important">
|
451
|
+
* <p><strong>Important:</strong><br/>
|
452
|
+
* <code class="grey-background">count</code> is not supported.</p>
|
453
|
+
* </blockquote>
|
454
|
+
*/
|
455
|
+
cursorPagingMetadata?: CursorPagingMetadata;
|
456
|
+
}
|
457
|
+
interface CursorPagingMetadata {
|
458
|
+
/** Offset that was requested. */
|
459
|
+
cursors?: Cursors;
|
460
|
+
/**
|
461
|
+
* Indicates if there are more results after the current page.
|
462
|
+
* If `true`, another page of results can be retrieved.
|
463
|
+
* If `false`, this is the last page.
|
464
|
+
*/
|
465
|
+
hasNext?: boolean | null;
|
466
|
+
}
|
467
|
+
interface Cursors {
|
468
|
+
/** Cursor pointing to next page in the list of results. */
|
469
|
+
next?: string | null;
|
470
|
+
/** Cursor pointing to previous page in the list of results. */
|
471
|
+
prev?: string | null;
|
472
|
+
}
|
473
|
+
interface GetMultiServiceAvailabilityTimeSlotRequest {
|
474
|
+
/**
|
475
|
+
* Services for which the multiService TimeSlots are being returned for.
|
476
|
+
* Each service contains its own resources filters within.
|
477
|
+
*
|
478
|
+
* MinSize: 2.
|
479
|
+
* MaxSize: 8.
|
480
|
+
* @minSize 2
|
481
|
+
* @maxSize 8
|
482
|
+
*/
|
483
|
+
services: Service[];
|
484
|
+
/**
|
485
|
+
* Local start date of the time slot, in ISO-8601 format.
|
486
|
+
* For example, "2024-01-30T13:30:00".
|
487
|
+
* @format LOCAL_DATE_TIME
|
488
|
+
*/
|
489
|
+
localStartDate: string;
|
490
|
+
/**
|
491
|
+
* Local end date of the time slot, in ISO-8601 format.
|
492
|
+
* For example, "2024-01-30T14:30:00".
|
493
|
+
* @format LOCAL_DATE_TIME
|
494
|
+
*/
|
495
|
+
localEndDate: string;
|
496
|
+
/**
|
497
|
+
* Time zone, in IANA time zone format.
|
498
|
+
* @minLength 1
|
499
|
+
* @maxLength 150
|
500
|
+
*/
|
501
|
+
timeZone: string | null;
|
502
|
+
/**
|
503
|
+
* The location of the time slot.
|
504
|
+
*
|
505
|
+
* You must provide a specific `locationType`.
|
506
|
+
* If locationType is `BUSINESS`, you __must__ also provide a `locationId`.
|
507
|
+
*
|
508
|
+
* <blockquote class="warning">
|
509
|
+
* <p>Supports filtering by location type, or by location ID.
|
510
|
+
* Other fields like <code class="grey-background">name</code> are ignored.</p>
|
511
|
+
* </blockquote>
|
512
|
+
*/
|
513
|
+
location: Location;
|
514
|
+
}
|
515
|
+
interface GetMultiServiceAvailabilityTimeSlotResponse {
|
516
|
+
/** Time slot. */
|
517
|
+
timeSlot?: TimeSlot;
|
518
|
+
/**
|
519
|
+
* The time zone, in IANA time zone format.
|
520
|
+
* @minLength 1
|
521
|
+
* @maxLength 150
|
522
|
+
*/
|
523
|
+
timeZone?: string | null;
|
524
|
+
}
|
525
|
+
|
526
|
+
type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
|
527
|
+
getUrl: (context: any) => string;
|
528
|
+
httpMethod: K;
|
529
|
+
path: string;
|
530
|
+
pathParams: M;
|
531
|
+
__requestType: T;
|
532
|
+
__originalRequestType: S;
|
533
|
+
__responseType: Q;
|
534
|
+
__originalResponseType: R;
|
535
|
+
};
|
536
|
+
declare function listMultiServiceAvailabilityTimeSlots(): __PublicMethodMetaInfo<'POST', {}, ListMultiServiceAvailabilityTimeSlotsRequest$1, ListMultiServiceAvailabilityTimeSlotsRequest, ListMultiServiceAvailabilityTimeSlotsResponse$1, ListMultiServiceAvailabilityTimeSlotsResponse>;
|
537
|
+
declare function getMultiServiceAvailabilityTimeSlot(): __PublicMethodMetaInfo<'POST', {}, GetMultiServiceAvailabilityTimeSlotRequest$1, GetMultiServiceAvailabilityTimeSlotRequest, GetMultiServiceAvailabilityTimeSlotResponse$1, GetMultiServiceAvailabilityTimeSlotResponse>;
|
538
|
+
|
539
|
+
export { type __PublicMethodMetaInfo, getMultiServiceAvailabilityTimeSlot, listMultiServiceAvailabilityTimeSlots };
|