@wix/auto_sdk_bookings_availability-calendar 1.0.128 → 1.0.130
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-v1-slot-availability-availability-calendar.types.d.ts → bookings-availability-v1-slot-availability-availability-calendar.universal-bH6NupvF.d.mts} +112 -49
- package/build/{internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.types.d.ts → bookings-availability-v1-slot-availability-availability-calendar.universal-bH6NupvF.d.ts} +112 -49
- package/build/{cjs/src/bookings-availability-v1-slot-availability-availability-calendar.public.d.ts → index.d.mts} +13 -9
- package/build/{es/src/bookings-availability-v1-slot-availability-availability-calendar.public.d.ts → index.d.ts} +13 -9
- package/build/index.js +410 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +381 -0
- package/build/index.mjs.map +1 -0
- package/build/{es/src/bookings-availability-v1-slot-availability-availability-calendar.types.d.ts → internal/bookings-availability-v1-slot-availability-availability-calendar.universal-bH6NupvF.d.mts} +112 -49
- package/build/internal/{es/src/bookings-availability-v1-slot-availability-availability-calendar.types.d.ts → bookings-availability-v1-slot-availability-availability-calendar.universal-bH6NupvF.d.ts} +112 -49
- package/build/internal/{es/src/bookings-availability-v1-slot-availability-availability-calendar.public.d.ts → index.d.mts} +13 -9
- package/build/internal/{cjs/src/bookings-availability-v1-slot-availability-availability-calendar.public.d.ts → index.d.ts} +13 -9
- package/build/internal/index.js +410 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +381 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +386 -0
- package/build/internal/meta.d.ts +386 -0
- package/build/internal/meta.js +306 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +277 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +386 -0
- package/build/meta.d.ts +386 -0
- package/build/meta.js +306 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +277 -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-v1-slot-availability-availability-calendar.context.d.ts +0 -7
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.context.js +0 -13
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.context.js.map +0 -1
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.http.d.ts +0 -93
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.http.js +0 -304
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.http.js.map +0 -1
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.meta.d.ts +0 -17
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.meta.js +0 -85
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.meta.js.map +0 -1
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.public.js +0 -28
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.public.js.map +0 -1
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.types.js +0 -26
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.types.js.map +0 -1
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.universal.d.ts +0 -943
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js +0 -294
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.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-v1-slot-availability-availability-calendar.context.d.ts +0 -7
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.context.js +0 -7
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.context.js.map +0 -1
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.http.d.ts +0 -93
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.http.js +0 -298
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.http.js.map +0 -1
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.meta.d.ts +0 -17
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.meta.js +0 -56
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.meta.js.map +0 -1
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.public.js +0 -19
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.public.js.map +0 -1
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.types.js +0 -23
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.types.js.map +0 -1
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.universal.d.ts +0 -943
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js +0 -265
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.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-v1-slot-availability-availability-calendar.context.d.ts +0 -7
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.context.js +0 -13
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.context.js.map +0 -1
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.http.d.ts +0 -93
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.http.js +0 -304
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.http.js.map +0 -1
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.meta.d.ts +0 -17
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.meta.js +0 -85
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.meta.js.map +0 -1
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.public.js +0 -28
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.public.js.map +0 -1
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.types.js +0 -26
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.types.js.map +0 -1
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.universal.d.ts +0 -943
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js +0 -294
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.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-v1-slot-availability-availability-calendar.context.d.ts +0 -7
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.context.js +0 -7
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.context.js.map +0 -1
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.http.d.ts +0 -93
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.http.js +0 -298
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.http.js.map +0 -1
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.meta.d.ts +0 -17
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.meta.js +0 -56
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.meta.js.map +0 -1
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.public.js +0 -19
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.public.js.map +0 -1
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.types.js +0 -23
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.types.js.map +0 -1
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.universal.d.ts +0 -943
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js +0 -265
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
interface SlotAvailability {
|
|
2
2
|
/**
|
|
3
3
|
* The slot for the corresponding session, when the session is either a single session
|
|
4
4
|
* or a specific session generated from a recurring session.
|
|
@@ -29,7 +29,7 @@ export interface SlotAvailability {
|
|
|
29
29
|
locked?: boolean | null;
|
|
30
30
|
isFromV2?: boolean;
|
|
31
31
|
}
|
|
32
|
-
|
|
32
|
+
interface Slot {
|
|
33
33
|
/**
|
|
34
34
|
* ID for the slot's corresponding session, when the session is either a single session
|
|
35
35
|
* or a specific session generated from a recurring session.
|
|
@@ -87,26 +87,26 @@ export interface Slot {
|
|
|
87
87
|
*/
|
|
88
88
|
eventId?: string | null;
|
|
89
89
|
}
|
|
90
|
-
|
|
90
|
+
interface SlotResource {
|
|
91
91
|
/**
|
|
92
92
|
* Resource ID.
|
|
93
93
|
* @format GUID
|
|
94
94
|
* @readonly
|
|
95
95
|
*/
|
|
96
|
-
|
|
96
|
+
_id?: string | null;
|
|
97
97
|
/**
|
|
98
98
|
* Resource name. Read only.
|
|
99
99
|
* @maxLength 1200
|
|
100
100
|
*/
|
|
101
101
|
name?: string | null;
|
|
102
102
|
}
|
|
103
|
-
|
|
103
|
+
interface Location {
|
|
104
104
|
/**
|
|
105
105
|
* Business location ID. Available only for locations that are business locations,
|
|
106
106
|
* meaning the `location_type` is `"OWNER_BUSINESS"`.
|
|
107
107
|
* @format GUID
|
|
108
108
|
*/
|
|
109
|
-
|
|
109
|
+
_id?: string | null;
|
|
110
110
|
/** Location name. */
|
|
111
111
|
name?: string | null;
|
|
112
112
|
/** The full address of this location. */
|
|
@@ -125,15 +125,15 @@ export interface Location {
|
|
|
125
125
|
*/
|
|
126
126
|
locationType?: LocationTypeWithLiterals;
|
|
127
127
|
}
|
|
128
|
-
|
|
128
|
+
declare enum LocationType {
|
|
129
129
|
UNDEFINED = "UNDEFINED",
|
|
130
130
|
OWNER_BUSINESS = "OWNER_BUSINESS",
|
|
131
131
|
OWNER_CUSTOM = "OWNER_CUSTOM",
|
|
132
132
|
CUSTOM = "CUSTOM"
|
|
133
133
|
}
|
|
134
134
|
/** @enumType */
|
|
135
|
-
|
|
136
|
-
|
|
135
|
+
type LocationTypeWithLiterals = LocationType | 'UNDEFINED' | 'OWNER_BUSINESS' | 'OWNER_CUSTOM' | 'CUSTOM';
|
|
136
|
+
interface AvailabilityWaitingList {
|
|
137
137
|
/**
|
|
138
138
|
* Total number of spots and open spots for this waitlist.
|
|
139
139
|
* For example, a Yoga class with 10 waitlist spots and 3 registered
|
|
@@ -143,7 +143,7 @@ export interface AvailabilityWaitingList {
|
|
|
143
143
|
/** Number of open spots for this waitlist. */
|
|
144
144
|
openSpots?: number | null;
|
|
145
145
|
}
|
|
146
|
-
|
|
146
|
+
interface BookingPolicyViolations {
|
|
147
147
|
/** Bookings policy violation. Too early to book this slot. */
|
|
148
148
|
tooEarlyToBook?: boolean | null;
|
|
149
149
|
/** Bookings policy violation. Too late to book this slot. */
|
|
@@ -151,7 +151,7 @@ export interface BookingPolicyViolations {
|
|
|
151
151
|
/** Bookings policy violation. Online booking is disabled for this slot. */
|
|
152
152
|
bookOnlineDisabled?: boolean | null;
|
|
153
153
|
}
|
|
154
|
-
|
|
154
|
+
interface NestedTimeSlot {
|
|
155
155
|
/** @format GUID */
|
|
156
156
|
serviceId?: string;
|
|
157
157
|
/** @maxLength 30 */
|
|
@@ -162,7 +162,7 @@ export interface NestedTimeSlot {
|
|
|
162
162
|
/** Schedule ID. */
|
|
163
163
|
scheduleId?: string;
|
|
164
164
|
}
|
|
165
|
-
|
|
165
|
+
interface QueryAvailabilityRequest {
|
|
166
166
|
/**
|
|
167
167
|
* Query options. Refer to the
|
|
168
168
|
* _supported filters article_
|
|
@@ -194,7 +194,7 @@ export interface QueryAvailabilityRequest {
|
|
|
194
194
|
*/
|
|
195
195
|
slotsPerDay?: number | null;
|
|
196
196
|
}
|
|
197
|
-
|
|
197
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
198
198
|
/**
|
|
199
199
|
* Filter object. For a list of
|
|
200
200
|
* fields you can filter by, see Availability Calendar supported filters ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/supported-filters-and-sorting) | [REST](https://dev.wix.com/docs/rest/business-solutions/bookings/time-slots/availability-calendar/supported-fields-filters-and-sorting)).
|
|
@@ -209,9 +209,9 @@ export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
209
209
|
sort?: Sorting[];
|
|
210
210
|
}
|
|
211
211
|
/** @oneof */
|
|
212
|
-
|
|
212
|
+
interface QueryV2PagingMethodOneOf {
|
|
213
213
|
}
|
|
214
|
-
|
|
214
|
+
interface Sorting {
|
|
215
215
|
/**
|
|
216
216
|
* Name of the field to sort by.
|
|
217
217
|
* @maxLength 512
|
|
@@ -220,13 +220,13 @@ export interface Sorting {
|
|
|
220
220
|
/** Sort order. */
|
|
221
221
|
order?: SortOrderWithLiterals;
|
|
222
222
|
}
|
|
223
|
-
|
|
223
|
+
declare enum SortOrder {
|
|
224
224
|
ASC = "ASC",
|
|
225
225
|
DESC = "DESC"
|
|
226
226
|
}
|
|
227
227
|
/** @enumType */
|
|
228
|
-
|
|
229
|
-
|
|
228
|
+
type SortOrderWithLiterals = SortOrder | 'ASC' | 'DESC';
|
|
229
|
+
interface CursorPaging {
|
|
230
230
|
/**
|
|
231
231
|
* Maximum number of items to return in the results.
|
|
232
232
|
* @max 100
|
|
@@ -245,7 +245,7 @@ export interface CursorPaging {
|
|
|
245
245
|
* Selected customer choices.
|
|
246
246
|
* These choices are selected by the customer during the booking flow and can be utilized to calculate the corresponding service's configuration properties.
|
|
247
247
|
*/
|
|
248
|
-
|
|
248
|
+
interface V2CustomerChoices {
|
|
249
249
|
/**
|
|
250
250
|
* The selected customer duration in minutes.
|
|
251
251
|
* Min: `1 minute`
|
|
@@ -267,11 +267,11 @@ export interface V2CustomerChoices {
|
|
|
267
267
|
*/
|
|
268
268
|
durationChoiceId?: string | null;
|
|
269
269
|
}
|
|
270
|
-
|
|
270
|
+
interface QueryAvailabilityResponse {
|
|
271
271
|
/** List of appointment slots or class events matching the filter. */
|
|
272
272
|
availabilityEntries?: SlotAvailability[];
|
|
273
273
|
}
|
|
274
|
-
|
|
274
|
+
interface PagingMetadataV2 {
|
|
275
275
|
/** Number of items returned in the response. */
|
|
276
276
|
count?: number | null;
|
|
277
277
|
/** Offset that was requested. */
|
|
@@ -283,7 +283,7 @@ export interface PagingMetadataV2 {
|
|
|
283
283
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
284
284
|
cursors?: Cursors;
|
|
285
285
|
}
|
|
286
|
-
|
|
286
|
+
interface Cursors {
|
|
287
287
|
/**
|
|
288
288
|
* Cursor string pointing to the next page in the list of results.
|
|
289
289
|
* @maxLength 16000
|
|
@@ -295,7 +295,7 @@ export interface Cursors {
|
|
|
295
295
|
*/
|
|
296
296
|
prev?: string | null;
|
|
297
297
|
}
|
|
298
|
-
|
|
298
|
+
interface GetSlotAvailabilityRequest {
|
|
299
299
|
/** The slot for which the availability is checked. */
|
|
300
300
|
slot?: Slot;
|
|
301
301
|
/**
|
|
@@ -308,29 +308,29 @@ export interface GetSlotAvailabilityRequest {
|
|
|
308
308
|
*/
|
|
309
309
|
timezone?: string | null;
|
|
310
310
|
}
|
|
311
|
-
|
|
311
|
+
interface GetSlotAvailabilityResponse {
|
|
312
312
|
availability?: SlotAvailability;
|
|
313
313
|
bookingPolicySettings?: BookingPolicySettings;
|
|
314
314
|
}
|
|
315
|
-
|
|
315
|
+
interface BookingPolicySettings {
|
|
316
316
|
/**
|
|
317
317
|
* The policy defining the maximum number of participants that can
|
|
318
318
|
* be booked for a slot or a schedule.
|
|
319
319
|
*/
|
|
320
320
|
maxParticipantsPerBooking?: number | null;
|
|
321
321
|
}
|
|
322
|
-
|
|
322
|
+
interface GetScheduleAvailabilityRequest {
|
|
323
323
|
/**
|
|
324
324
|
* The schedule ID for which availability is being checked.
|
|
325
325
|
* @format GUID
|
|
326
326
|
*/
|
|
327
327
|
scheduleId: string;
|
|
328
328
|
}
|
|
329
|
-
|
|
329
|
+
interface GetScheduleAvailabilityResponse {
|
|
330
330
|
availability?: ScheduleAvailability;
|
|
331
331
|
bookingPolicySettings?: BookingPolicySettings;
|
|
332
332
|
}
|
|
333
|
-
|
|
333
|
+
interface ScheduleAvailability {
|
|
334
334
|
/**
|
|
335
335
|
* The total number of spots defined for the schedule, including
|
|
336
336
|
* both open and non-available spots.
|
|
@@ -341,7 +341,7 @@ export interface ScheduleAvailability {
|
|
|
341
341
|
/** Booking policy violations for the schedule. */
|
|
342
342
|
bookingPolicyViolations?: BookingPolicyViolations;
|
|
343
343
|
}
|
|
344
|
-
|
|
344
|
+
interface CalculateMultiSlotAvailabilityRequest {
|
|
345
345
|
/** @maxLength 30 */
|
|
346
346
|
from?: string;
|
|
347
347
|
/** @maxLength 30 */
|
|
@@ -377,21 +377,21 @@ export interface CalculateMultiSlotAvailabilityRequest {
|
|
|
377
377
|
slotsPerDay?: number | null;
|
|
378
378
|
cursorPaging?: CursorPaging;
|
|
379
379
|
}
|
|
380
|
-
|
|
380
|
+
interface RuleBasedConstraints {
|
|
381
381
|
/** @format GUID */
|
|
382
382
|
serviceId?: string;
|
|
383
383
|
resourcesFilter?: ResourcesFilter;
|
|
384
384
|
/** will be passed to availability-2, and to the availability-constraints SPI */
|
|
385
385
|
customerChoices?: AvailabilityV2CustomerChoices;
|
|
386
386
|
}
|
|
387
|
-
|
|
387
|
+
interface ResourcesFilter {
|
|
388
388
|
resourceIds?: string[];
|
|
389
389
|
}
|
|
390
390
|
/**
|
|
391
391
|
* Selected customer choices.
|
|
392
392
|
* These choices are selected by the customer during the booking flow and can be utilized to calculate the corresponding service's configuration properties.
|
|
393
393
|
*/
|
|
394
|
-
|
|
394
|
+
interface AvailabilityV2CustomerChoices {
|
|
395
395
|
/**
|
|
396
396
|
* The selected customer duration in minutes.
|
|
397
397
|
* Min: `1 minute`
|
|
@@ -413,11 +413,11 @@ export interface AvailabilityV2CustomerChoices {
|
|
|
413
413
|
*/
|
|
414
414
|
durationChoiceId?: string | null;
|
|
415
415
|
}
|
|
416
|
-
|
|
416
|
+
interface CalculateMultiSlotAvailabilityResponse {
|
|
417
417
|
slots?: SlotAvailability[];
|
|
418
418
|
cursorPagingMetadata?: CursorPagingMetadata;
|
|
419
419
|
}
|
|
420
|
-
|
|
420
|
+
interface CursorPagingMetadata {
|
|
421
421
|
/** Number of items returned in current page. */
|
|
422
422
|
count?: number | null;
|
|
423
423
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
@@ -430,7 +430,7 @@ export interface CursorPagingMetadata {
|
|
|
430
430
|
*/
|
|
431
431
|
hasNext?: boolean | null;
|
|
432
432
|
}
|
|
433
|
-
|
|
433
|
+
interface GetAvailabilityTimeSlotRequest {
|
|
434
434
|
/**
|
|
435
435
|
* Service ID of the time slot.
|
|
436
436
|
* Currently supported only for services of type `APPOINTMENT`.
|
|
@@ -488,12 +488,12 @@ export interface GetAvailabilityTimeSlotRequest {
|
|
|
488
488
|
includeResourceTypeIds?: string[];
|
|
489
489
|
fromV2?: boolean | null;
|
|
490
490
|
}
|
|
491
|
-
|
|
491
|
+
interface TimeSlotLocation {
|
|
492
492
|
/**
|
|
493
493
|
* Business Location ID. Present only if the location is a business location.
|
|
494
494
|
* @format GUID
|
|
495
495
|
*/
|
|
496
|
-
|
|
496
|
+
_id?: string | null;
|
|
497
497
|
/**
|
|
498
498
|
* The location name.
|
|
499
499
|
* @maxLength 250
|
|
@@ -512,7 +512,7 @@ export interface TimeSlotLocation {
|
|
|
512
512
|
*/
|
|
513
513
|
locationType?: LocationLocationTypeWithLiterals;
|
|
514
514
|
}
|
|
515
|
-
|
|
515
|
+
declare enum LocationLocationType {
|
|
516
516
|
UNKNOWN_LOCATION_TYPE = "UNKNOWN_LOCATION_TYPE",
|
|
517
517
|
/** A business location, either the default business address, or locations defined for the business by the Business Info. */
|
|
518
518
|
BUSINESS = "BUSINESS",
|
|
@@ -522,8 +522,8 @@ export declare enum LocationLocationType {
|
|
|
522
522
|
CUSTOMER = "CUSTOMER"
|
|
523
523
|
}
|
|
524
524
|
/** @enumType */
|
|
525
|
-
|
|
526
|
-
|
|
525
|
+
type LocationLocationTypeWithLiterals = LocationLocationType | 'UNKNOWN_LOCATION_TYPE' | 'BUSINESS' | 'CUSTOM' | 'CUSTOMER';
|
|
526
|
+
interface CustomerChoices {
|
|
527
527
|
/**
|
|
528
528
|
* The selected add-ons IDs.
|
|
529
529
|
* Max: Derived from max amount of Add-On groups * max amount of Add-Ons per group.
|
|
@@ -537,7 +537,7 @@ export interface CustomerChoices {
|
|
|
537
537
|
*/
|
|
538
538
|
durationChoiceId?: string | null;
|
|
539
539
|
}
|
|
540
|
-
|
|
540
|
+
interface GetAvailabilityTimeSlotResponse {
|
|
541
541
|
/** Time slot. */
|
|
542
542
|
timeSlot?: TimeSlot;
|
|
543
543
|
/**
|
|
@@ -565,7 +565,7 @@ export interface GetAvailabilityTimeSlotResponse {
|
|
|
565
565
|
* > When the `TimeSlot` has a non empty `NestedTimeSlots`, it represents the availability information
|
|
566
566
|
* > for a given list of `Appointment` services within a specific time slot.
|
|
567
567
|
*/
|
|
568
|
-
|
|
568
|
+
interface TimeSlot {
|
|
569
569
|
/**
|
|
570
570
|
* Service ID.
|
|
571
571
|
*
|
|
@@ -630,9 +630,9 @@ export interface TimeSlot {
|
|
|
630
630
|
nestedTimeSlots?: Service_availabilityNestedTimeSlot[];
|
|
631
631
|
}
|
|
632
632
|
/** relevant for event based slots, and not for availability based slots */
|
|
633
|
-
|
|
633
|
+
interface EventInfo {
|
|
634
634
|
}
|
|
635
|
-
|
|
635
|
+
interface WaitingList {
|
|
636
636
|
/**
|
|
637
637
|
* Total number of spots in this wait list.
|
|
638
638
|
* @min 1
|
|
@@ -645,7 +645,7 @@ export interface WaitingList {
|
|
|
645
645
|
*/
|
|
646
646
|
remainingCapacity?: number | null;
|
|
647
647
|
}
|
|
648
|
-
|
|
648
|
+
interface Service_availabilityBookingPolicyViolations {
|
|
649
649
|
/** Bookings policy violation. Too early to book this slot. */
|
|
650
650
|
tooEarlyToBook?: boolean | null;
|
|
651
651
|
/** Bookings policy violation. Too late to book this slot. */
|
|
@@ -653,7 +653,7 @@ export interface Service_availabilityBookingPolicyViolations {
|
|
|
653
653
|
/** Bookings policy violation. Online booking is disabled for the `TimeSlot` service. */
|
|
654
654
|
bookOnlineDisabled?: boolean | null;
|
|
655
655
|
}
|
|
656
|
-
|
|
656
|
+
interface AvailableResources {
|
|
657
657
|
/**
|
|
658
658
|
* Resource type ID.
|
|
659
659
|
* @format GUID
|
|
@@ -686,12 +686,12 @@ export interface AvailableResources {
|
|
|
686
686
|
*/
|
|
687
687
|
hasMoreAvailableResources?: boolean | null;
|
|
688
688
|
}
|
|
689
|
-
|
|
689
|
+
interface Resource {
|
|
690
690
|
/**
|
|
691
691
|
* Resource ID.
|
|
692
692
|
* @format GUID
|
|
693
693
|
*/
|
|
694
|
-
|
|
694
|
+
_id?: string;
|
|
695
695
|
/**
|
|
696
696
|
* Resource name.
|
|
697
697
|
* @minLength 1
|
|
@@ -699,7 +699,7 @@ export interface Resource {
|
|
|
699
699
|
*/
|
|
700
700
|
name?: string | null;
|
|
701
701
|
}
|
|
702
|
-
|
|
702
|
+
interface Service_availabilityNestedTimeSlot {
|
|
703
703
|
/**
|
|
704
704
|
* Service ID of the nested time slot.
|
|
705
705
|
* @format GUID
|
|
@@ -724,3 +724,66 @@ export interface Service_availabilityNestedTimeSlot {
|
|
|
724
724
|
*/
|
|
725
725
|
availableResources?: AvailableResources[];
|
|
726
726
|
}
|
|
727
|
+
interface QueryAvailabilityOptions {
|
|
728
|
+
/**
|
|
729
|
+
* Time zone override for the `endDate` and `startDate` filters, in
|
|
730
|
+
* [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database), such as
|
|
731
|
+
* `America/New_York` or `UTC`.
|
|
732
|
+
*
|
|
733
|
+
* For example, if you specify `("startDate": "2025-11-25T17:00:00+01:00"}` (note
|
|
734
|
+
* the +01:00 offset) in combination with `{"timezone": "Europe/Bucharest"}`
|
|
735
|
+
* (+02:00 offset), *Query Availability* adjusts the effective start time to
|
|
736
|
+
* reflect the specified time zone. In this case, the start time in UTC would
|
|
737
|
+
* be `2025-11-25T15:00:00` (using the +02:00 offset).
|
|
738
|
+
*
|
|
739
|
+
* Learn more about *handling Daylight Savings Time*
|
|
740
|
+
* ([SDK](https://dev.wix.com/docs/sdk/backend-modules/bookings/availability-calendar/query-availability#wix-bookings_availability-calendar_query-availability_daylight-savings-time-dst) | [REST](https://dev.wix.com/api/rest/wix-bookings/availability-calendar/query-availability#wix-bookings_availability-calendar_query-availability_daylight-savings-time-dst)).
|
|
741
|
+
*
|
|
742
|
+
* Default: No modification applied to the `endDate` and `startDate` filters.
|
|
743
|
+
*/
|
|
744
|
+
timezone?: string | null;
|
|
745
|
+
/**
|
|
746
|
+
* Maximum number of appointment slots to return for each date. For example, if
|
|
747
|
+
* you specify `{"slotsPerDay": 3}`, a maximum of 3 appointment slots/class events is
|
|
748
|
+
* returned for each day that's within the query filter's date range.
|
|
749
|
+
*/
|
|
750
|
+
slotsPerDay?: number | null;
|
|
751
|
+
}
|
|
752
|
+
interface CalculateMultiSlotAvailabilityOptions {
|
|
753
|
+
/** @maxLength 30 */
|
|
754
|
+
from?: string;
|
|
755
|
+
/** @maxLength 30 */
|
|
756
|
+
to?: string;
|
|
757
|
+
/** @maxLength 30 */
|
|
758
|
+
timeZone?: string;
|
|
759
|
+
/** TODO good definition of what bookable means https://github.com/wix-private/scheduler/pull/18267/files?file-filters%5B%5D=.proto&show-viewed-files=true#r1199809006 */
|
|
760
|
+
bookable?: boolean | null;
|
|
761
|
+
/**
|
|
762
|
+
* each nested field is checked on its own. i.e. if `too_early_to_book` is defined and `too_late_to_book` is not defined
|
|
763
|
+
* we will return slots for which `too_early_to_book` is same as on the request, regardless of `too_late_to_book`.
|
|
764
|
+
*/
|
|
765
|
+
bookingPolicyViolations?: BookingPolicyViolations;
|
|
766
|
+
/**
|
|
767
|
+
* support filtering by location type, or by locationId. Other fields like `name` are ignored
|
|
768
|
+
* must be set, and must have locationType. If locationType is `OWNER_BUSINESS`, must have location_id
|
|
769
|
+
*/
|
|
770
|
+
location?: Location;
|
|
771
|
+
/**
|
|
772
|
+
* @minSize 1
|
|
773
|
+
* @maxSize 6
|
|
774
|
+
*/
|
|
775
|
+
slots?: RuleBasedConstraints[];
|
|
776
|
+
/**
|
|
777
|
+
* Maximum number of slots to load for each date. For example, if `slots_per_day` is set to `3`,
|
|
778
|
+
* at most 3 available slots are returned for each day in the date range specified in the query's
|
|
779
|
+
* `filter`.
|
|
780
|
+
*
|
|
781
|
+
* When a day has both bookable and non-bookable slots, bookable slots are returned first.
|
|
782
|
+
* Non-bookable slots are returned according to the specified filters, after all
|
|
783
|
+
* bookable slots are already included.
|
|
784
|
+
*/
|
|
785
|
+
slotsPerDay?: number | null;
|
|
786
|
+
cursorPaging?: CursorPaging;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
export { type AvailabilityWaitingList as A, type BookingPolicyViolations as B, type CalculateMultiSlotAvailabilityOptions as C, type Service_availabilityBookingPolicyViolations as D, type EventInfo as E, type AvailableResources as F, type GetScheduleAvailabilityResponse as G, type Resource as H, type Service_availabilityNestedTimeSlot as I, LocationType as L, type NestedTimeSlot as N, type PagingMetadataV2 as P, type QueryV2 as Q, type RuleBasedConstraints as R, SortOrder as S, type TimeSlotLocation as T, type V2CustomerChoices as V, type WaitingList as W, type QueryAvailabilityOptions as a, type QueryAvailabilityResponse as b, type CalculateMultiSlotAvailabilityResponse as c, LocationLocationType as d, type SlotAvailability as e, type Slot as f, type SlotResource as g, type Location as h, type QueryAvailabilityRequest as i, type QueryV2PagingMethodOneOf as j, type Sorting as k, type CursorPaging as l, type Cursors as m, type GetSlotAvailabilityRequest as n, type GetSlotAvailabilityResponse as o, type BookingPolicySettings as p, type GetScheduleAvailabilityRequest as q, type ScheduleAvailability as r, type CalculateMultiSlotAvailabilityRequest as s, type ResourcesFilter as t, type AvailabilityV2CustomerChoices as u, type CursorPagingMetadata as v, type GetAvailabilityTimeSlotRequest as w, type CustomerChoices as x, type GetAvailabilityTimeSlotResponse as y, type TimeSlot as z };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare function queryAvailability(httpClient: HttpClient): QueryAvailabilitySignature;
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { Q as QueryV2, a as QueryAvailabilityOptions, b as QueryAvailabilityResponse, G as GetScheduleAvailabilityResponse, C as CalculateMultiSlotAvailabilityOptions, c as CalculateMultiSlotAvailabilityResponse } from './bookings-availability-v1-slot-availability-availability-calendar.universal-bH6NupvF.mjs';
|
|
3
|
+
export { u as AvailabilityV2CustomerChoices, A as AvailabilityWaitingList, F as AvailableResources, p as BookingPolicySettings, B as BookingPolicyViolations, s as CalculateMultiSlotAvailabilityRequest, l as CursorPaging, v as CursorPagingMetadata, m as Cursors, x as CustomerChoices, E as EventInfo, w as GetAvailabilityTimeSlotRequest, y as GetAvailabilityTimeSlotResponse, q as GetScheduleAvailabilityRequest, n as GetSlotAvailabilityRequest, o as GetSlotAvailabilityResponse, h as Location, d as LocationLocationType, L as LocationType, N as NestedTimeSlot, P as PagingMetadataV2, i as QueryAvailabilityRequest, j as QueryV2PagingMethodOneOf, H as Resource, t as ResourcesFilter, R as RuleBasedConstraints, r as ScheduleAvailability, D as Service_availabilityBookingPolicyViolations, I as Service_availabilityNestedTimeSlot, f as Slot, e as SlotAvailability, g as SlotResource, S as SortOrder, k as Sorting, z as TimeSlot, T as TimeSlotLocation, V as V2CustomerChoices, W as WaitingList } from './bookings-availability-v1-slot-availability-availability-calendar.universal-bH6NupvF.mjs';
|
|
4
|
+
|
|
5
|
+
declare function queryAvailability$1(httpClient: HttpClient): QueryAvailabilitySignature;
|
|
7
6
|
interface QueryAvailabilitySignature {
|
|
8
7
|
/**
|
|
9
8
|
* Retrieves appointment slots or class events that match specified filters.
|
|
@@ -93,7 +92,7 @@ interface QueryAvailabilitySignature {
|
|
|
93
92
|
*/
|
|
94
93
|
(query: QueryV2, options?: QueryAvailabilityOptions | undefined): Promise<QueryAvailabilityResponse>;
|
|
95
94
|
}
|
|
96
|
-
|
|
95
|
+
declare function getScheduleAvailability$1(httpClient: HttpClient): GetScheduleAvailabilitySignature;
|
|
97
96
|
interface GetScheduleAvailabilitySignature {
|
|
98
97
|
/**
|
|
99
98
|
* Returns availability for a given schedule ID
|
|
@@ -106,9 +105,14 @@ interface GetScheduleAvailabilitySignature {
|
|
|
106
105
|
*/
|
|
107
106
|
(scheduleId: string): Promise<GetScheduleAvailabilityResponse>;
|
|
108
107
|
}
|
|
109
|
-
|
|
108
|
+
declare function calculateMultiSlotAvailability$1(httpClient: HttpClient): CalculateMultiSlotAvailabilitySignature;
|
|
110
109
|
interface CalculateMultiSlotAvailabilitySignature {
|
|
111
110
|
/** */
|
|
112
111
|
(options?: CalculateMultiSlotAvailabilityOptions | undefined): Promise<CalculateMultiSlotAvailabilityResponse>;
|
|
113
112
|
}
|
|
114
|
-
|
|
113
|
+
|
|
114
|
+
declare const queryAvailability: MaybeContext<BuildRESTFunction<typeof queryAvailability$1> & typeof queryAvailability$1>;
|
|
115
|
+
declare const getScheduleAvailability: MaybeContext<BuildRESTFunction<typeof getScheduleAvailability$1> & typeof getScheduleAvailability$1>;
|
|
116
|
+
declare const calculateMultiSlotAvailability: MaybeContext<BuildRESTFunction<typeof calculateMultiSlotAvailability$1> & typeof calculateMultiSlotAvailability$1>;
|
|
117
|
+
|
|
118
|
+
export { CalculateMultiSlotAvailabilityOptions, CalculateMultiSlotAvailabilityResponse, GetScheduleAvailabilityResponse, QueryAvailabilityOptions, QueryAvailabilityResponse, QueryV2, calculateMultiSlotAvailability, getScheduleAvailability, queryAvailability };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare function queryAvailability(httpClient: HttpClient): QueryAvailabilitySignature;
|
|
1
|
+
import { HttpClient, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
|
|
2
|
+
import { Q as QueryV2, a as QueryAvailabilityOptions, b as QueryAvailabilityResponse, G as GetScheduleAvailabilityResponse, C as CalculateMultiSlotAvailabilityOptions, c as CalculateMultiSlotAvailabilityResponse } from './bookings-availability-v1-slot-availability-availability-calendar.universal-bH6NupvF.js';
|
|
3
|
+
export { u as AvailabilityV2CustomerChoices, A as AvailabilityWaitingList, F as AvailableResources, p as BookingPolicySettings, B as BookingPolicyViolations, s as CalculateMultiSlotAvailabilityRequest, l as CursorPaging, v as CursorPagingMetadata, m as Cursors, x as CustomerChoices, E as EventInfo, w as GetAvailabilityTimeSlotRequest, y as GetAvailabilityTimeSlotResponse, q as GetScheduleAvailabilityRequest, n as GetSlotAvailabilityRequest, o as GetSlotAvailabilityResponse, h as Location, d as LocationLocationType, L as LocationType, N as NestedTimeSlot, P as PagingMetadataV2, i as QueryAvailabilityRequest, j as QueryV2PagingMethodOneOf, H as Resource, t as ResourcesFilter, R as RuleBasedConstraints, r as ScheduleAvailability, D as Service_availabilityBookingPolicyViolations, I as Service_availabilityNestedTimeSlot, f as Slot, e as SlotAvailability, g as SlotResource, S as SortOrder, k as Sorting, z as TimeSlot, T as TimeSlotLocation, V as V2CustomerChoices, W as WaitingList } from './bookings-availability-v1-slot-availability-availability-calendar.universal-bH6NupvF.js';
|
|
4
|
+
|
|
5
|
+
declare function queryAvailability$1(httpClient: HttpClient): QueryAvailabilitySignature;
|
|
7
6
|
interface QueryAvailabilitySignature {
|
|
8
7
|
/**
|
|
9
8
|
* Retrieves appointment slots or class events that match specified filters.
|
|
@@ -93,7 +92,7 @@ interface QueryAvailabilitySignature {
|
|
|
93
92
|
*/
|
|
94
93
|
(query: QueryV2, options?: QueryAvailabilityOptions | undefined): Promise<QueryAvailabilityResponse>;
|
|
95
94
|
}
|
|
96
|
-
|
|
95
|
+
declare function getScheduleAvailability$1(httpClient: HttpClient): GetScheduleAvailabilitySignature;
|
|
97
96
|
interface GetScheduleAvailabilitySignature {
|
|
98
97
|
/**
|
|
99
98
|
* Returns availability for a given schedule ID
|
|
@@ -106,9 +105,14 @@ interface GetScheduleAvailabilitySignature {
|
|
|
106
105
|
*/
|
|
107
106
|
(scheduleId: string): Promise<GetScheduleAvailabilityResponse>;
|
|
108
107
|
}
|
|
109
|
-
|
|
108
|
+
declare function calculateMultiSlotAvailability$1(httpClient: HttpClient): CalculateMultiSlotAvailabilitySignature;
|
|
110
109
|
interface CalculateMultiSlotAvailabilitySignature {
|
|
111
110
|
/** */
|
|
112
111
|
(options?: CalculateMultiSlotAvailabilityOptions | undefined): Promise<CalculateMultiSlotAvailabilityResponse>;
|
|
113
112
|
}
|
|
114
|
-
|
|
113
|
+
|
|
114
|
+
declare const queryAvailability: MaybeContext<BuildRESTFunction<typeof queryAvailability$1> & typeof queryAvailability$1>;
|
|
115
|
+
declare const getScheduleAvailability: MaybeContext<BuildRESTFunction<typeof getScheduleAvailability$1> & typeof getScheduleAvailability$1>;
|
|
116
|
+
declare const calculateMultiSlotAvailability: MaybeContext<BuildRESTFunction<typeof calculateMultiSlotAvailability$1> & typeof calculateMultiSlotAvailability$1>;
|
|
117
|
+
|
|
118
|
+
export { CalculateMultiSlotAvailabilityOptions, CalculateMultiSlotAvailabilityResponse, GetScheduleAvailabilityResponse, QueryAvailabilityOptions, QueryAvailabilityResponse, QueryV2, calculateMultiSlotAvailability, getScheduleAvailability, queryAvailability };
|