@wix/auto_sdk_bookings_availability-calendar 1.0.81 → 1.0.83
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +1 -0
- package/build/cjs/index.js +18 -0
- package/build/cjs/index.js.map +1 -0
- package/build/cjs/index.typings.d.ts +1 -0
- package/build/cjs/index.typings.js +18 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +1 -0
- package/build/cjs/meta.js +18 -0
- package/build/cjs/meta.js.map +1 -0
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.context.d.ts +7 -0
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.context.js +13 -0
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.context.js.map +1 -0
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.http.d.ts +93 -0
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.http.js +304 -0
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.http.js.map +1 -0
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.meta.d.ts +17 -0
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.meta.js +85 -0
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.meta.js.map +1 -0
- package/build/{internal/index.d.ts → cjs/src/bookings-availability-v1-slot-availability-availability-calendar.public.d.ts} +9 -13
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.public.js +28 -0
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.public.js.map +1 -0
- package/build/{bookings-availability-v1-slot-availability-availability-calendar.universal-Drm9S8li.d.mts → cjs/src/bookings-availability-v1-slot-availability-availability-calendar.types.d.ts} +45 -108
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.types.js +26 -0
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.types.js.map +1 -0
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.universal.d.ts +905 -0
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js +286 -0
- package/build/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js.map +1 -0
- package/build/es/index.d.ts +1 -0
- package/build/es/index.js +2 -0
- package/build/es/index.js.map +1 -0
- package/build/es/index.typings.d.ts +1 -0
- package/build/es/index.typings.js +2 -0
- package/build/es/index.typings.js.map +1 -0
- package/build/es/meta.d.ts +1 -0
- package/build/es/meta.js +2 -0
- package/build/es/meta.js.map +1 -0
- package/build/es/package.json +3 -0
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.context.d.ts +7 -0
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.context.js +7 -0
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.context.js.map +1 -0
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.http.d.ts +93 -0
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.http.js +298 -0
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.http.js.map +1 -0
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.meta.d.ts +17 -0
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.meta.js +56 -0
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.meta.js.map +1 -0
- package/build/{index.d.ts → es/src/bookings-availability-v1-slot-availability-availability-calendar.public.d.ts} +9 -13
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.public.js +19 -0
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.public.js.map +1 -0
- package/build/{bookings-availability-v1-slot-availability-availability-calendar.universal-Drm9S8li.d.ts → es/src/bookings-availability-v1-slot-availability-availability-calendar.types.d.ts} +45 -108
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.types.js +23 -0
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.types.js.map +1 -0
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.universal.d.ts +905 -0
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js +257 -0
- package/build/es/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js.map +1 -0
- package/build/internal/cjs/index.d.ts +1 -0
- package/build/internal/cjs/index.js +18 -0
- package/build/internal/cjs/index.js.map +1 -0
- package/build/internal/cjs/index.typings.d.ts +1 -0
- package/build/internal/cjs/index.typings.js +18 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +1 -0
- package/build/internal/cjs/meta.js +18 -0
- package/build/internal/cjs/meta.js.map +1 -0
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.context.d.ts +7 -0
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.context.js +13 -0
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.context.js.map +1 -0
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.http.d.ts +93 -0
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.http.js +304 -0
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.http.js.map +1 -0
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.meta.d.ts +17 -0
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.meta.js +85 -0
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.meta.js.map +1 -0
- package/build/internal/{index.d.mts → cjs/src/bookings-availability-v1-slot-availability-availability-calendar.public.d.ts} +9 -13
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.public.js +28 -0
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.public.js.map +1 -0
- package/build/internal/{bookings-availability-v1-slot-availability-availability-calendar.universal-Drm9S8li.d.ts → cjs/src/bookings-availability-v1-slot-availability-availability-calendar.types.d.ts} +45 -108
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.types.js +26 -0
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.types.js.map +1 -0
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.universal.d.ts +905 -0
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js +286 -0
- package/build/internal/cjs/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js.map +1 -0
- package/build/internal/es/index.d.ts +1 -0
- package/build/internal/es/index.js +2 -0
- package/build/internal/es/index.js.map +1 -0
- package/build/internal/es/index.typings.d.ts +1 -0
- package/build/internal/es/index.typings.js +2 -0
- package/build/internal/es/index.typings.js.map +1 -0
- package/build/internal/es/meta.d.ts +1 -0
- package/build/internal/es/meta.js +2 -0
- package/build/internal/es/meta.js.map +1 -0
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.context.d.ts +7 -0
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.context.js +7 -0
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.context.js.map +1 -0
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.http.d.ts +93 -0
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.http.js +298 -0
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.http.js.map +1 -0
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.meta.d.ts +17 -0
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.meta.js +56 -0
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.meta.js.map +1 -0
- package/build/{index.d.mts → internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.public.d.ts} +9 -13
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.public.js +19 -0
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.public.js.map +1 -0
- package/build/internal/{bookings-availability-v1-slot-availability-availability-calendar.universal-Drm9S8li.d.mts → es/src/bookings-availability-v1-slot-availability-availability-calendar.types.d.ts} +45 -108
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.types.js +23 -0
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.types.js.map +1 -0
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.universal.d.ts +905 -0
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js +257 -0
- package/build/internal/es/src/bookings-availability-v1-slot-availability-availability-calendar.universal.js.map +1 -0
- package/package.json +11 -12
- package/build/index.js +0 -410
- package/build/index.js.map +0 -1
- package/build/index.mjs +0 -381
- package/build/index.mjs.map +0 -1
- package/build/internal/index.js +0 -410
- package/build/internal/index.js.map +0 -1
- package/build/internal/index.mjs +0 -381
- package/build/internal/index.mjs.map +0 -1
- package/build/internal/meta.d.mts +0 -377
- package/build/internal/meta.d.ts +0 -377
- package/build/internal/meta.js +0 -306
- package/build/internal/meta.js.map +0 -1
- package/build/internal/meta.mjs +0 -277
- package/build/internal/meta.mjs.map +0 -1
- package/build/meta.d.mts +0 -377
- package/build/meta.d.ts +0 -377
- package/build/meta.js +0 -306
- package/build/meta.js.map +0 -1
- package/build/meta.mjs +0 -277
- package/build/meta.mjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
interface SlotAvailability {
|
|
1
|
+
export 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 @@ interface SlotAvailability {
|
|
|
29
29
|
locked?: boolean | null;
|
|
30
30
|
isFromV2?: boolean;
|
|
31
31
|
}
|
|
32
|
-
interface Slot {
|
|
32
|
+
export 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 @@ interface Slot {
|
|
|
87
87
|
*/
|
|
88
88
|
eventId?: string | null;
|
|
89
89
|
}
|
|
90
|
-
interface SlotResource {
|
|
90
|
+
export 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
|
-
interface Location {
|
|
103
|
+
export 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,13 +125,13 @@ interface Location {
|
|
|
125
125
|
*/
|
|
126
126
|
locationType?: LocationType;
|
|
127
127
|
}
|
|
128
|
-
declare enum LocationType {
|
|
128
|
+
export 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
|
-
interface AvailabilityWaitingList {
|
|
134
|
+
export interface AvailabilityWaitingList {
|
|
135
135
|
/**
|
|
136
136
|
* Total number of spots and open spots for this waitlist.
|
|
137
137
|
* For example, a Yoga class with 10 waitlist spots and 3 registered
|
|
@@ -141,7 +141,7 @@ interface AvailabilityWaitingList {
|
|
|
141
141
|
/** Number of open spots for this waitlist. */
|
|
142
142
|
openSpots?: number | null;
|
|
143
143
|
}
|
|
144
|
-
interface BookingPolicyViolations {
|
|
144
|
+
export interface BookingPolicyViolations {
|
|
145
145
|
/** Bookings policy violation. Too early to book this slot. */
|
|
146
146
|
tooEarlyToBook?: boolean | null;
|
|
147
147
|
/** Bookings policy violation. Too late to book this slot. */
|
|
@@ -149,7 +149,7 @@ interface BookingPolicyViolations {
|
|
|
149
149
|
/** Bookings policy violation. Online booking is disabled for this slot. */
|
|
150
150
|
bookOnlineDisabled?: boolean | null;
|
|
151
151
|
}
|
|
152
|
-
interface NestedTimeSlot {
|
|
152
|
+
export interface NestedTimeSlot {
|
|
153
153
|
/** @format GUID */
|
|
154
154
|
serviceId?: string;
|
|
155
155
|
/** @maxLength 30 */
|
|
@@ -160,7 +160,7 @@ interface NestedTimeSlot {
|
|
|
160
160
|
/** Schedule ID. */
|
|
161
161
|
scheduleId?: string;
|
|
162
162
|
}
|
|
163
|
-
interface QueryAvailabilityRequest {
|
|
163
|
+
export interface QueryAvailabilityRequest {
|
|
164
164
|
/**
|
|
165
165
|
* Query options. Refer to the
|
|
166
166
|
* _supported filters article_
|
|
@@ -192,7 +192,7 @@ interface QueryAvailabilityRequest {
|
|
|
192
192
|
*/
|
|
193
193
|
slotsPerDay?: number | null;
|
|
194
194
|
}
|
|
195
|
-
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
195
|
+
export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
196
196
|
/**
|
|
197
197
|
* Filter object. For a list of
|
|
198
198
|
* fields you can filter by, see [Calendar Availability: Supported Fields, Filters, and Sorting](https://dev.wix.com/api/rest/wix-bookings/availability-calendar/supported-fields,-filters,-and-sorting).
|
|
@@ -207,9 +207,9 @@ interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
|
207
207
|
sort?: Sorting[];
|
|
208
208
|
}
|
|
209
209
|
/** @oneof */
|
|
210
|
-
interface QueryV2PagingMethodOneOf {
|
|
210
|
+
export interface QueryV2PagingMethodOneOf {
|
|
211
211
|
}
|
|
212
|
-
interface Sorting {
|
|
212
|
+
export interface Sorting {
|
|
213
213
|
/**
|
|
214
214
|
* Name of the field to sort by.
|
|
215
215
|
* @maxLength 512
|
|
@@ -218,11 +218,11 @@ interface Sorting {
|
|
|
218
218
|
/** Sort order. */
|
|
219
219
|
order?: SortOrder;
|
|
220
220
|
}
|
|
221
|
-
declare enum SortOrder {
|
|
221
|
+
export declare enum SortOrder {
|
|
222
222
|
ASC = "ASC",
|
|
223
223
|
DESC = "DESC"
|
|
224
224
|
}
|
|
225
|
-
interface CursorPaging {
|
|
225
|
+
export interface CursorPaging {
|
|
226
226
|
/**
|
|
227
227
|
* Maximum number of items to return in the results.
|
|
228
228
|
* @max 100
|
|
@@ -241,7 +241,7 @@ interface CursorPaging {
|
|
|
241
241
|
* Selected customer choices.
|
|
242
242
|
* These choices are selected by the customer during the booking flow and can be utilized to calculate the corresponding service's configuration properties.
|
|
243
243
|
*/
|
|
244
|
-
interface CustomerChoices {
|
|
244
|
+
export interface CustomerChoices {
|
|
245
245
|
/**
|
|
246
246
|
* The selected customer duration in minutes.
|
|
247
247
|
* Min: `1 minute`
|
|
@@ -258,11 +258,11 @@ interface CustomerChoices {
|
|
|
258
258
|
*/
|
|
259
259
|
addOnIds?: string[] | null;
|
|
260
260
|
}
|
|
261
|
-
interface QueryAvailabilityResponse {
|
|
261
|
+
export interface QueryAvailabilityResponse {
|
|
262
262
|
/** List of appointment slots or class events matching the filter. */
|
|
263
263
|
availabilityEntries?: SlotAvailability[];
|
|
264
264
|
}
|
|
265
|
-
interface PagingMetadataV2 {
|
|
265
|
+
export interface PagingMetadataV2 {
|
|
266
266
|
/** Number of items returned in the response. */
|
|
267
267
|
count?: number | null;
|
|
268
268
|
/** Offset that was requested. */
|
|
@@ -274,7 +274,7 @@ interface PagingMetadataV2 {
|
|
|
274
274
|
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
275
275
|
cursors?: Cursors;
|
|
276
276
|
}
|
|
277
|
-
interface Cursors {
|
|
277
|
+
export interface Cursors {
|
|
278
278
|
/**
|
|
279
279
|
* Cursor string pointing to the next page in the list of results.
|
|
280
280
|
* @maxLength 16000
|
|
@@ -286,7 +286,7 @@ interface Cursors {
|
|
|
286
286
|
*/
|
|
287
287
|
prev?: string | null;
|
|
288
288
|
}
|
|
289
|
-
interface GetSlotAvailabilityRequest {
|
|
289
|
+
export interface GetSlotAvailabilityRequest {
|
|
290
290
|
/** The slot for which the availability is checked. */
|
|
291
291
|
slot?: Slot;
|
|
292
292
|
/**
|
|
@@ -299,29 +299,29 @@ interface GetSlotAvailabilityRequest {
|
|
|
299
299
|
*/
|
|
300
300
|
timezone?: string | null;
|
|
301
301
|
}
|
|
302
|
-
interface GetSlotAvailabilityResponse {
|
|
302
|
+
export interface GetSlotAvailabilityResponse {
|
|
303
303
|
availability?: SlotAvailability;
|
|
304
304
|
bookingPolicySettings?: BookingPolicySettings;
|
|
305
305
|
}
|
|
306
|
-
interface BookingPolicySettings {
|
|
306
|
+
export interface BookingPolicySettings {
|
|
307
307
|
/**
|
|
308
308
|
* The policy defining the maximum number of participants that can
|
|
309
309
|
* be booked for a slot or a schedule.
|
|
310
310
|
*/
|
|
311
311
|
maxParticipantsPerBooking?: number | null;
|
|
312
312
|
}
|
|
313
|
-
interface GetScheduleAvailabilityRequest {
|
|
313
|
+
export interface GetScheduleAvailabilityRequest {
|
|
314
314
|
/**
|
|
315
315
|
* The schedule ID for which availability is being checked.
|
|
316
316
|
* @format GUID
|
|
317
317
|
*/
|
|
318
318
|
scheduleId: string;
|
|
319
319
|
}
|
|
320
|
-
interface GetScheduleAvailabilityResponse {
|
|
320
|
+
export interface GetScheduleAvailabilityResponse {
|
|
321
321
|
availability?: ScheduleAvailability;
|
|
322
322
|
bookingPolicySettings?: BookingPolicySettings;
|
|
323
323
|
}
|
|
324
|
-
interface ScheduleAvailability {
|
|
324
|
+
export interface ScheduleAvailability {
|
|
325
325
|
/**
|
|
326
326
|
* The total number of spots defined for the schedule, including
|
|
327
327
|
* both open and non-available spots.
|
|
@@ -332,7 +332,7 @@ interface ScheduleAvailability {
|
|
|
332
332
|
/** Booking policy violations for the schedule. */
|
|
333
333
|
bookingPolicyViolations?: BookingPolicyViolations;
|
|
334
334
|
}
|
|
335
|
-
interface CalculateMultiSlotAvailabilityRequest {
|
|
335
|
+
export interface CalculateMultiSlotAvailabilityRequest {
|
|
336
336
|
/** @maxLength 30 */
|
|
337
337
|
from?: string;
|
|
338
338
|
/** @maxLength 30 */
|
|
@@ -368,21 +368,21 @@ interface CalculateMultiSlotAvailabilityRequest {
|
|
|
368
368
|
slotsPerDay?: number | null;
|
|
369
369
|
cursorPaging?: CursorPaging;
|
|
370
370
|
}
|
|
371
|
-
interface RuleBasedConstraints {
|
|
371
|
+
export interface RuleBasedConstraints {
|
|
372
372
|
/** @format GUID */
|
|
373
373
|
serviceId?: string;
|
|
374
374
|
resourcesFilter?: ResourcesFilter;
|
|
375
375
|
/** will be passed to availability-2, and to the availability-constraints SPI */
|
|
376
376
|
customerChoices?: V2CustomerChoices;
|
|
377
377
|
}
|
|
378
|
-
interface ResourcesFilter {
|
|
378
|
+
export interface ResourcesFilter {
|
|
379
379
|
resourceIds?: string[];
|
|
380
380
|
}
|
|
381
381
|
/**
|
|
382
382
|
* Selected customer choices.
|
|
383
383
|
* These choices are selected by the customer during the booking flow and can be utilized to calculate the corresponding service's configuration properties.
|
|
384
384
|
*/
|
|
385
|
-
interface V2CustomerChoices {
|
|
385
|
+
export interface V2CustomerChoices {
|
|
386
386
|
/**
|
|
387
387
|
* The selected customer duration in minutes.
|
|
388
388
|
* Min: `1 minute`
|
|
@@ -399,11 +399,11 @@ interface V2CustomerChoices {
|
|
|
399
399
|
*/
|
|
400
400
|
addOnIds?: string[] | null;
|
|
401
401
|
}
|
|
402
|
-
interface CalculateMultiSlotAvailabilityResponse {
|
|
402
|
+
export interface CalculateMultiSlotAvailabilityResponse {
|
|
403
403
|
slots?: SlotAvailability[];
|
|
404
404
|
cursorPagingMetadata?: CursorPagingMetadata;
|
|
405
405
|
}
|
|
406
|
-
interface CursorPagingMetadata {
|
|
406
|
+
export interface CursorPagingMetadata {
|
|
407
407
|
/** Number of items returned in current page. */
|
|
408
408
|
count?: number | null;
|
|
409
409
|
/** Cursor strings that point to the next page, previous page, or both. */
|
|
@@ -416,7 +416,7 @@ interface CursorPagingMetadata {
|
|
|
416
416
|
*/
|
|
417
417
|
hasNext?: boolean | null;
|
|
418
418
|
}
|
|
419
|
-
interface GetAvailabilityTimeSlotRequest {
|
|
419
|
+
export interface GetAvailabilityTimeSlotRequest {
|
|
420
420
|
/**
|
|
421
421
|
* Service ID of the time slot.
|
|
422
422
|
* Currently supported only for services of type `APPOINTMENT`.
|
|
@@ -474,12 +474,12 @@ interface GetAvailabilityTimeSlotRequest {
|
|
|
474
474
|
includeResourceTypeIds?: string[];
|
|
475
475
|
fromV2?: boolean | null;
|
|
476
476
|
}
|
|
477
|
-
interface TimeSlotLocation {
|
|
477
|
+
export interface TimeSlotLocation {
|
|
478
478
|
/**
|
|
479
479
|
* Business Location ID. Present only if the location is a business location.
|
|
480
480
|
* @format GUID
|
|
481
481
|
*/
|
|
482
|
-
|
|
482
|
+
id?: string | null;
|
|
483
483
|
/**
|
|
484
484
|
* The location name.
|
|
485
485
|
* @maxLength 250
|
|
@@ -498,7 +498,7 @@ interface TimeSlotLocation {
|
|
|
498
498
|
*/
|
|
499
499
|
locationType?: LocationLocationType;
|
|
500
500
|
}
|
|
501
|
-
declare enum LocationLocationType {
|
|
501
|
+
export declare enum LocationLocationType {
|
|
502
502
|
UNKNOWN_LOCATION_TYPE = "UNKNOWN_LOCATION_TYPE",
|
|
503
503
|
/** A business location, either the default business address, or locations defined for the business by the Business Info. */
|
|
504
504
|
BUSINESS = "BUSINESS",
|
|
@@ -507,7 +507,7 @@ declare enum LocationLocationType {
|
|
|
507
507
|
/** The location can be determined by the customer and is not set up beforehand. */
|
|
508
508
|
CUSTOMER = "CUSTOMER"
|
|
509
509
|
}
|
|
510
|
-
interface GetAvailabilityTimeSlotResponse {
|
|
510
|
+
export interface GetAvailabilityTimeSlotResponse {
|
|
511
511
|
/** Time slot. */
|
|
512
512
|
timeSlot?: TimeSlot;
|
|
513
513
|
/**
|
|
@@ -535,7 +535,7 @@ interface GetAvailabilityTimeSlotResponse {
|
|
|
535
535
|
* > When the `TimeSlot` has a non empty `NestedTimeSlots`, it represents the availability information
|
|
536
536
|
* > for a given list of `Appointment` services within a specific time slot.
|
|
537
537
|
*/
|
|
538
|
-
interface TimeSlot {
|
|
538
|
+
export interface TimeSlot {
|
|
539
539
|
/**
|
|
540
540
|
* Service ID.
|
|
541
541
|
*
|
|
@@ -600,9 +600,9 @@ interface TimeSlot {
|
|
|
600
600
|
nestedTimeSlots?: Service_availabilityNestedTimeSlot[];
|
|
601
601
|
}
|
|
602
602
|
/** relevant for event based slots, and not for availability based slots */
|
|
603
|
-
interface EventInfo {
|
|
603
|
+
export interface EventInfo {
|
|
604
604
|
}
|
|
605
|
-
interface WaitingList {
|
|
605
|
+
export interface WaitingList {
|
|
606
606
|
/**
|
|
607
607
|
* Total number of spots in this wait list.
|
|
608
608
|
* @min 1
|
|
@@ -615,7 +615,7 @@ interface WaitingList {
|
|
|
615
615
|
*/
|
|
616
616
|
remainingCapacity?: number | null;
|
|
617
617
|
}
|
|
618
|
-
interface Service_availabilityBookingPolicyViolations {
|
|
618
|
+
export interface Service_availabilityBookingPolicyViolations {
|
|
619
619
|
/** Bookings policy violation. Too early to book this slot. */
|
|
620
620
|
tooEarlyToBook?: boolean | null;
|
|
621
621
|
/** Bookings policy violation. Too late to book this slot. */
|
|
@@ -623,7 +623,7 @@ interface Service_availabilityBookingPolicyViolations {
|
|
|
623
623
|
/** Bookings policy violation. Online booking is disabled for the `TimeSlot` service. */
|
|
624
624
|
bookOnlineDisabled?: boolean | null;
|
|
625
625
|
}
|
|
626
|
-
interface AvailableResources {
|
|
626
|
+
export interface AvailableResources {
|
|
627
627
|
/**
|
|
628
628
|
* Resource type ID.
|
|
629
629
|
* @format GUID
|
|
@@ -656,12 +656,12 @@ interface AvailableResources {
|
|
|
656
656
|
*/
|
|
657
657
|
hasMoreAvailableResources?: boolean | null;
|
|
658
658
|
}
|
|
659
|
-
interface Resource {
|
|
659
|
+
export interface Resource {
|
|
660
660
|
/**
|
|
661
661
|
* Resource ID.
|
|
662
662
|
* @format GUID
|
|
663
663
|
*/
|
|
664
|
-
|
|
664
|
+
id?: string;
|
|
665
665
|
/**
|
|
666
666
|
* Resource name.
|
|
667
667
|
* @minLength 1
|
|
@@ -669,7 +669,7 @@ interface Resource {
|
|
|
669
669
|
*/
|
|
670
670
|
name?: string | null;
|
|
671
671
|
}
|
|
672
|
-
interface Service_availabilityNestedTimeSlot {
|
|
672
|
+
export interface Service_availabilityNestedTimeSlot {
|
|
673
673
|
/**
|
|
674
674
|
* Service ID of the nested time slot.
|
|
675
675
|
* @format GUID
|
|
@@ -694,66 +694,3 @@ interface Service_availabilityNestedTimeSlot {
|
|
|
694
694
|
*/
|
|
695
695
|
availableResources?: AvailableResources[];
|
|
696
696
|
}
|
|
697
|
-
interface QueryAvailabilityOptions {
|
|
698
|
-
/**
|
|
699
|
-
* Time zone override for the `endDate` and `startDate` filters, in
|
|
700
|
-
* [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database), such as
|
|
701
|
-
* `America/New_York` or `UTC`.
|
|
702
|
-
*
|
|
703
|
-
* For example, if you specify `("startDate": "2025-11-25T17:00:00+01:00"}` (note
|
|
704
|
-
* the +01:00 offset) in combination with `{"timezone": "Europe/Bucharest"}`
|
|
705
|
-
* (+02:00 offset), *Query Availability* adjusts the effective start time to
|
|
706
|
-
* reflect the specified time zone. In this case, the start time in UTC would
|
|
707
|
-
* be `2025-11-25T15:00:00` (using the +02:00 offset).
|
|
708
|
-
*
|
|
709
|
-
* Learn more about *handling Daylight Savings Time*
|
|
710
|
-
* ([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)).
|
|
711
|
-
*
|
|
712
|
-
* Default: No modification applied to the `endDate` and `startDate` filters.
|
|
713
|
-
*/
|
|
714
|
-
timezone?: string | null;
|
|
715
|
-
/**
|
|
716
|
-
* Maximum number of appointment slots to return for each date. For example, if
|
|
717
|
-
* you specify `{"slotsPerDay": 3}`, a maximum of 3 appointment slots/class events is
|
|
718
|
-
* returned for each day that's within the query filter's date range.
|
|
719
|
-
*/
|
|
720
|
-
slotsPerDay?: number | null;
|
|
721
|
-
}
|
|
722
|
-
interface CalculateMultiSlotAvailabilityOptions {
|
|
723
|
-
/** @maxLength 30 */
|
|
724
|
-
from?: string;
|
|
725
|
-
/** @maxLength 30 */
|
|
726
|
-
to?: string;
|
|
727
|
-
/** @maxLength 30 */
|
|
728
|
-
timeZone?: string;
|
|
729
|
-
/** 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 */
|
|
730
|
-
bookable?: boolean | null;
|
|
731
|
-
/**
|
|
732
|
-
* 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
|
|
733
|
-
* we will return slots for which `too_early_to_book` is same as on the request, regardless of `too_late_to_book`.
|
|
734
|
-
*/
|
|
735
|
-
bookingPolicyViolations?: BookingPolicyViolations;
|
|
736
|
-
/**
|
|
737
|
-
* support filtering by location type, or by locationId. Other fields like `name` are ignored
|
|
738
|
-
* must be set, and must have locationType. If locationType is `OWNER_BUSINESS`, must have location_id
|
|
739
|
-
*/
|
|
740
|
-
location?: Location;
|
|
741
|
-
/**
|
|
742
|
-
* @minSize 1
|
|
743
|
-
* @maxSize 6
|
|
744
|
-
*/
|
|
745
|
-
slots?: RuleBasedConstraints[];
|
|
746
|
-
/**
|
|
747
|
-
* Maximum number of slots to load for each date. For example, if `slots_per_day` is set to `3`,
|
|
748
|
-
* at most 3 available slots are returned for each day in the date range specified in the query's
|
|
749
|
-
* `filter`.
|
|
750
|
-
*
|
|
751
|
-
* When a day has both bookable and non-bookable slots, bookable slots are returned first.
|
|
752
|
-
* Non-bookable slots are returned according to the specified filters, after all
|
|
753
|
-
* bookable slots are already included.
|
|
754
|
-
*/
|
|
755
|
-
slotsPerDay?: number | null;
|
|
756
|
-
cursorPaging?: CursorPaging;
|
|
757
|
-
}
|
|
758
|
-
|
|
759
|
-
export { type AvailabilityWaitingList as A, type BookingPolicyViolations as B, type CalculateMultiSlotAvailabilityOptions as C, type AvailableResources as D, type EventInfo as E, type Resource as F, type GetScheduleAvailabilityResponse as G, type Service_availabilityNestedTimeSlot as H, 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 CustomerChoices as m, type Cursors as n, type GetSlotAvailabilityRequest as o, type GetSlotAvailabilityResponse as p, type BookingPolicySettings as q, type GetScheduleAvailabilityRequest as r, type ScheduleAvailability as s, type CalculateMultiSlotAvailabilityRequest as t, type ResourcesFilter as u, type CursorPagingMetadata as v, type GetAvailabilityTimeSlotRequest as w, type GetAvailabilityTimeSlotResponse as x, type TimeSlot as y, type Service_availabilityBookingPolicyViolations as z };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export var LocationType;
|
|
2
|
+
(function (LocationType) {
|
|
3
|
+
LocationType["UNDEFINED"] = "UNDEFINED";
|
|
4
|
+
LocationType["OWNER_BUSINESS"] = "OWNER_BUSINESS";
|
|
5
|
+
LocationType["OWNER_CUSTOM"] = "OWNER_CUSTOM";
|
|
6
|
+
LocationType["CUSTOM"] = "CUSTOM";
|
|
7
|
+
})(LocationType || (LocationType = {}));
|
|
8
|
+
export var SortOrder;
|
|
9
|
+
(function (SortOrder) {
|
|
10
|
+
SortOrder["ASC"] = "ASC";
|
|
11
|
+
SortOrder["DESC"] = "DESC";
|
|
12
|
+
})(SortOrder || (SortOrder = {}));
|
|
13
|
+
export var LocationLocationType;
|
|
14
|
+
(function (LocationLocationType) {
|
|
15
|
+
LocationLocationType["UNKNOWN_LOCATION_TYPE"] = "UNKNOWN_LOCATION_TYPE";
|
|
16
|
+
/** A business location, either the default business address, or locations defined for the business by the Business Info. */
|
|
17
|
+
LocationLocationType["BUSINESS"] = "BUSINESS";
|
|
18
|
+
/** The location is unique to this service and isn't defined as one of the business locations. */
|
|
19
|
+
LocationLocationType["CUSTOM"] = "CUSTOM";
|
|
20
|
+
/** The location can be determined by the customer and is not set up beforehand. */
|
|
21
|
+
LocationLocationType["CUSTOMER"] = "CUSTOMER";
|
|
22
|
+
})(LocationLocationType || (LocationLocationType = {}));
|
|
23
|
+
//# sourceMappingURL=bookings-availability-v1-slot-availability-availability-calendar.types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bookings-availability-v1-slot-availability-availability-calendar.types.js","sourceRoot":"","sources":["../../../../src/bookings-availability-v1-slot-availability-availability-calendar.types.ts"],"names":[],"mappings":"AAmIA,MAAM,CAAN,IAAY,YAKX;AALD,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,iDAAiC,CAAA;IACjC,6CAA6B,CAAA;IAC7B,iCAAiB,CAAA;AACnB,CAAC,EALW,YAAY,KAAZ,YAAY,QAKvB;AA+FD,MAAM,CAAN,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,KAAT,SAAS,QAGpB;AAySD,MAAM,CAAN,IAAY,oBAQX;AARD,WAAY,oBAAoB;IAC9B,uEAA+C,CAAA;IAC/C,4HAA4H;IAC5H,6CAAqB,CAAA;IACrB,iGAAiG;IACjG,yCAAiB,CAAA;IACjB,mFAAmF;IACnF,6CAAqB,CAAA;AACvB,CAAC,EARW,oBAAoB,KAApB,oBAAoB,QAQ/B"}
|