@wix/auto_sdk_bookings_event-time-slots 1.0.7 → 1.0.9
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/{internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.universal.d.ts → bookings-availability-v2-time-slot-event-time-slots.universal-szGrVRY3.d.mts} +35 -102
- package/build/{cjs/src/bookings-availability-v2-time-slot-event-time-slots.universal.d.ts → bookings-availability-v2-time-slot-event-time-slots.universal-szGrVRY3.d.ts} +35 -102
- package/build/index.d.mts +35 -0
- package/build/index.d.ts +35 -0
- package/build/index.js +331 -0
- package/build/index.js.map +1 -0
- package/build/index.mjs +305 -0
- package/build/index.mjs.map +1 -0
- package/build/internal/{es/src/bookings-availability-v2-time-slot-event-time-slots.universal.d.ts → bookings-availability-v2-time-slot-event-time-slots.universal-szGrVRY3.d.mts} +35 -102
- package/build/{es/src/bookings-availability-v2-time-slot-event-time-slots.universal.d.ts → internal/bookings-availability-v2-time-slot-event-time-slots.universal-szGrVRY3.d.ts} +35 -102
- package/build/internal/index.d.mts +35 -0
- package/build/internal/index.d.ts +35 -0
- package/build/internal/index.js +331 -0
- package/build/internal/index.js.map +1 -0
- package/build/internal/index.mjs +305 -0
- package/build/internal/index.mjs.map +1 -0
- package/build/internal/meta.d.mts +382 -0
- package/build/internal/meta.d.ts +382 -0
- package/build/internal/meta.js +260 -0
- package/build/internal/meta.js.map +1 -0
- package/build/internal/meta.mjs +232 -0
- package/build/internal/meta.mjs.map +1 -0
- package/build/meta.d.mts +382 -0
- package/build/meta.d.ts +382 -0
- package/build/meta.js +260 -0
- package/build/meta.js.map +1 -0
- package/build/meta.mjs +232 -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-event-time-slots.context.d.ts +0 -6
- package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.context.js +0 -10
- package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.context.js.map +0 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.http.d.ts +0 -18
- package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.http.js +0 -209
- package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.http.js.map +0 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.meta.d.ts +0 -16
- package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.meta.js +0 -66
- package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.meta.js.map +0 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.public.d.ts +0 -32
- package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.public.js +0 -20
- package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.public.js.map +0 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.types.d.ts +0 -911
- package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.types.js +0 -14
- package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.types.js.map +0 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.universal.js +0 -170
- package/build/cjs/src/bookings-availability-v2-time-slot-event-time-slots.universal.js.map +0 -1
- package/build/es/index.d.ts +0 -1
- package/build/es/index.js +0 -2
- package/build/es/index.js.map +0 -1
- package/build/es/index.typings.d.ts +0 -1
- package/build/es/index.typings.js +0 -2
- package/build/es/index.typings.js.map +0 -1
- package/build/es/meta.d.ts +0 -1
- package/build/es/meta.js +0 -2
- package/build/es/meta.js.map +0 -1
- package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.context.d.ts +0 -6
- package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.context.js +0 -6
- package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.context.js.map +0 -1
- package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.http.d.ts +0 -18
- package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.http.js +0 -204
- package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.http.js.map +0 -1
- package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.meta.d.ts +0 -16
- package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.meta.js +0 -38
- package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.meta.js.map +0 -1
- package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.public.d.ts +0 -32
- package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.public.js +0 -14
- package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.public.js.map +0 -1
- package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.types.d.ts +0 -911
- package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.types.js +0 -11
- package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.types.js.map +0 -1
- package/build/es/src/bookings-availability-v2-time-slot-event-time-slots.universal.js +0 -142
- package/build/es/src/bookings-availability-v2-time-slot-event-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-event-time-slots.context.d.ts +0 -6
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.context.js +0 -10
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.context.js.map +0 -1
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.http.d.ts +0 -18
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.http.js +0 -209
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.http.js.map +0 -1
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.meta.d.ts +0 -16
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.meta.js +0 -66
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.meta.js.map +0 -1
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.public.d.ts +0 -32
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.public.js +0 -20
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.public.js.map +0 -1
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.types.d.ts +0 -911
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.types.js +0 -14
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.types.js.map +0 -1
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-time-slots.universal.js +0 -170
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-event-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-event-time-slots.context.d.ts +0 -6
- package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.context.js +0 -6
- package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.context.js.map +0 -1
- package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.http.d.ts +0 -18
- package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.http.js +0 -204
- package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.http.js.map +0 -1
- package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.meta.d.ts +0 -16
- package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.meta.js +0 -38
- package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.meta.js.map +0 -1
- package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.public.d.ts +0 -32
- package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.public.js +0 -14
- package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.public.js.map +0 -1
- package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.types.d.ts +0 -911
- package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.types.js +0 -11
- package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.types.js.map +0 -1
- package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.universal.js +0 -142
- package/build/internal/es/src/bookings-availability-v2-time-slot-event-time-slots.universal.js.map +0 -1
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { NonNullablePaths } from '@wix/sdk-types';
|
|
2
1
|
/**
|
|
3
2
|
* The `TimeSlot` object represents the availability information
|
|
4
3
|
* for an `Appointment` service's specific slot, including:
|
|
@@ -17,7 +16,7 @@ import { NonNullablePaths } from '@wix/sdk-types';
|
|
|
17
16
|
* > When the `TimeSlot` has a non empty `NestedTimeSlots`, it represents the availability information
|
|
18
17
|
* > for a given list of `Appointment` services within a specific time slot.
|
|
19
18
|
*/
|
|
20
|
-
|
|
19
|
+
interface TimeSlot {
|
|
21
20
|
/**
|
|
22
21
|
* Service ID.
|
|
23
22
|
*
|
|
@@ -90,7 +89,7 @@ export interface TimeSlot {
|
|
|
90
89
|
/** Reasons why the time slot is not available for booking. */
|
|
91
90
|
nonBookableReasons?: NonBookableReasons;
|
|
92
91
|
}
|
|
93
|
-
|
|
92
|
+
interface Location {
|
|
94
93
|
/**
|
|
95
94
|
* Business Location ID. Present only if the location is a business location.
|
|
96
95
|
* @format GUID
|
|
@@ -108,7 +107,7 @@ export interface Location {
|
|
|
108
107
|
*/
|
|
109
108
|
locationType?: LocationTypeWithLiterals;
|
|
110
109
|
}
|
|
111
|
-
|
|
110
|
+
declare enum LocationType {
|
|
112
111
|
UNKNOWN_LOCATION_TYPE = "UNKNOWN_LOCATION_TYPE",
|
|
113
112
|
/** A business location, either the default business address, or locations defined for the business by the Business Info. */
|
|
114
113
|
BUSINESS = "BUSINESS",
|
|
@@ -118,9 +117,9 @@ export declare enum LocationType {
|
|
|
118
117
|
CUSTOMER = "CUSTOMER"
|
|
119
118
|
}
|
|
120
119
|
/** @enumType */
|
|
121
|
-
|
|
120
|
+
type LocationTypeWithLiterals = LocationType | 'UNKNOWN_LOCATION_TYPE' | 'BUSINESS' | 'CUSTOM' | 'CUSTOMER';
|
|
122
121
|
/** relevant for event based slots, and not for availability based slots */
|
|
123
|
-
|
|
122
|
+
interface EventInfo {
|
|
124
123
|
/**
|
|
125
124
|
* The event ID.
|
|
126
125
|
* @minLength 36
|
|
@@ -130,7 +129,7 @@ export interface EventInfo {
|
|
|
130
129
|
/** Waiting list details for the event, if enabled in the service's booking policy. */
|
|
131
130
|
waitingList?: WaitingList;
|
|
132
131
|
}
|
|
133
|
-
|
|
132
|
+
interface WaitingList {
|
|
134
133
|
/**
|
|
135
134
|
* Total number of spots in the waiting list.
|
|
136
135
|
* @min 1
|
|
@@ -142,7 +141,7 @@ export interface WaitingList {
|
|
|
142
141
|
*/
|
|
143
142
|
remainingCapacity?: number | null;
|
|
144
143
|
}
|
|
145
|
-
|
|
144
|
+
interface BookingPolicyViolations {
|
|
146
145
|
/** Bookings policy violation. Too early to book this slot. */
|
|
147
146
|
tooEarlyToBook?: boolean | null;
|
|
148
147
|
/** The earliest time at which booking for this slot is allowed, in UTC format (`YYYY-MM-DDThh:mm:ss.sssZ`). */
|
|
@@ -152,7 +151,7 @@ export interface BookingPolicyViolations {
|
|
|
152
151
|
/** Bookings policy violation. Online booking is disabled for the `TimeSlot` service. */
|
|
153
152
|
bookOnlineDisabled?: boolean | null;
|
|
154
153
|
}
|
|
155
|
-
|
|
154
|
+
interface AvailableResources {
|
|
156
155
|
/**
|
|
157
156
|
* Resource type ID.
|
|
158
157
|
* @format GUID
|
|
@@ -185,7 +184,7 @@ export interface AvailableResources {
|
|
|
185
184
|
*/
|
|
186
185
|
hasMoreAvailableResources?: boolean | null;
|
|
187
186
|
}
|
|
188
|
-
|
|
187
|
+
interface Resource {
|
|
189
188
|
/**
|
|
190
189
|
* Resource ID.
|
|
191
190
|
* @format GUID
|
|
@@ -197,7 +196,7 @@ export interface Resource {
|
|
|
197
196
|
*/
|
|
198
197
|
name?: string | null;
|
|
199
198
|
}
|
|
200
|
-
|
|
199
|
+
interface NestedTimeSlot {
|
|
201
200
|
/**
|
|
202
201
|
* Service ID of the nested time slot.
|
|
203
202
|
* @format GUID
|
|
@@ -222,7 +221,7 @@ export interface NestedTimeSlot {
|
|
|
222
221
|
*/
|
|
223
222
|
availableResources?: AvailableResources[];
|
|
224
223
|
}
|
|
225
|
-
|
|
224
|
+
interface NonBookableReasons {
|
|
226
225
|
/** The slot is fully booked with no remaining capacity. */
|
|
227
226
|
noRemainingCapacity?: boolean | null;
|
|
228
227
|
/** Booking this slot would violate the service's booking policy. */
|
|
@@ -230,7 +229,7 @@ export interface NonBookableReasons {
|
|
|
230
229
|
/** The slot is reserved for the waiting list and not available for direct booking. */
|
|
231
230
|
reservedForWaitingList?: boolean | null;
|
|
232
231
|
}
|
|
233
|
-
|
|
232
|
+
interface ListMultiServiceAvailabilityTimeSlotsRequest {
|
|
234
233
|
/**
|
|
235
234
|
* Services for which the multiService time slots are being returned for.
|
|
236
235
|
* Each service contains its own resources filters within.
|
|
@@ -349,7 +348,7 @@ export interface ListMultiServiceAvailabilityTimeSlotsRequest {
|
|
|
349
348
|
*/
|
|
350
349
|
cursorPaging?: CursorPaging;
|
|
351
350
|
}
|
|
352
|
-
|
|
351
|
+
interface Service {
|
|
353
352
|
/**
|
|
354
353
|
* Service ID.
|
|
355
354
|
* @format GUID
|
|
@@ -385,7 +384,7 @@ export interface Service {
|
|
|
385
384
|
* Selected customer choices.
|
|
386
385
|
* These choices are selected by the customer during the booking flow and can be utilized to calculate the corresponding service's configuration properties.
|
|
387
386
|
*/
|
|
388
|
-
|
|
387
|
+
interface V2CustomerChoices {
|
|
389
388
|
/**
|
|
390
389
|
* The selected customer duration in minutes.
|
|
391
390
|
* Min: `1 minute`
|
|
@@ -407,7 +406,7 @@ export interface V2CustomerChoices {
|
|
|
407
406
|
*/
|
|
408
407
|
durationChoiceId?: string | null;
|
|
409
408
|
}
|
|
410
|
-
|
|
409
|
+
interface CursorPaging {
|
|
411
410
|
/**
|
|
412
411
|
* Number of results to load.
|
|
413
412
|
*
|
|
@@ -425,7 +424,7 @@ export interface CursorPaging {
|
|
|
425
424
|
*/
|
|
426
425
|
cursor?: string | null;
|
|
427
426
|
}
|
|
428
|
-
|
|
427
|
+
interface ListMultiServiceAvailabilityTimeSlotsResponse {
|
|
429
428
|
/**
|
|
430
429
|
* Time slots.
|
|
431
430
|
* @maxSize 1000
|
|
@@ -453,7 +452,7 @@ export interface ListMultiServiceAvailabilityTimeSlotsResponse {
|
|
|
453
452
|
*/
|
|
454
453
|
cursorPagingMetadata?: CursorPagingMetadata;
|
|
455
454
|
}
|
|
456
|
-
|
|
455
|
+
interface CursorPagingMetadata {
|
|
457
456
|
/** Offset that was requested. */
|
|
458
457
|
cursors?: Cursors;
|
|
459
458
|
/**
|
|
@@ -463,13 +462,13 @@ export interface CursorPagingMetadata {
|
|
|
463
462
|
*/
|
|
464
463
|
hasNext?: boolean | null;
|
|
465
464
|
}
|
|
466
|
-
|
|
465
|
+
interface Cursors {
|
|
467
466
|
/** Cursor pointing to next page in the list of results. */
|
|
468
467
|
next?: string | null;
|
|
469
468
|
/** Cursor pointing to previous page in the list of results. */
|
|
470
469
|
prev?: string | null;
|
|
471
470
|
}
|
|
472
|
-
|
|
471
|
+
interface GetMultiServiceAvailabilityTimeSlotRequest {
|
|
473
472
|
/**
|
|
474
473
|
* Services for which the multiService TimeSlots are being returned for.
|
|
475
474
|
* Each service contains its own resources filters within.
|
|
@@ -511,7 +510,7 @@ export interface GetMultiServiceAvailabilityTimeSlotRequest {
|
|
|
511
510
|
*/
|
|
512
511
|
location?: Location;
|
|
513
512
|
}
|
|
514
|
-
|
|
513
|
+
interface GetMultiServiceAvailabilityTimeSlotResponse {
|
|
515
514
|
/** Time slot. */
|
|
516
515
|
timeSlot?: TimeSlot;
|
|
517
516
|
/**
|
|
@@ -521,7 +520,7 @@ export interface GetMultiServiceAvailabilityTimeSlotResponse {
|
|
|
521
520
|
*/
|
|
522
521
|
timeZone?: string | null;
|
|
523
522
|
}
|
|
524
|
-
|
|
523
|
+
interface ListAvailabilityTimeSlotsRequest {
|
|
525
524
|
/**
|
|
526
525
|
* Service ID for which the time slots are being returned for.
|
|
527
526
|
* Currently supported only for services of type `APPOINTMENT`.
|
|
@@ -666,7 +665,7 @@ export interface ListAvailabilityTimeSlotsRequest {
|
|
|
666
665
|
* Selected customer choices.
|
|
667
666
|
* These choices are selected by the customer during the booking flow and can be utilized to calculate the corresponding service's configuration properties.
|
|
668
667
|
*/
|
|
669
|
-
|
|
668
|
+
interface CustomerChoices {
|
|
670
669
|
/**
|
|
671
670
|
* The selected customer duration in minutes.
|
|
672
671
|
* Min: `1 minute`
|
|
@@ -688,7 +687,7 @@ export interface CustomerChoices {
|
|
|
688
687
|
*/
|
|
689
688
|
durationChoiceId?: string | null;
|
|
690
689
|
}
|
|
691
|
-
|
|
690
|
+
interface ResourceType {
|
|
692
691
|
/**
|
|
693
692
|
* Resource type ID.
|
|
694
693
|
* @format GUID
|
|
@@ -703,7 +702,7 @@ export interface ResourceType {
|
|
|
703
702
|
*/
|
|
704
703
|
resourceIds?: string[] | null;
|
|
705
704
|
}
|
|
706
|
-
|
|
705
|
+
interface ListAvailabilityTimeSlotsResponse {
|
|
707
706
|
/**
|
|
708
707
|
* Time slots.
|
|
709
708
|
* @maxSize 1000
|
|
@@ -731,7 +730,7 @@ export interface ListAvailabilityTimeSlotsResponse {
|
|
|
731
730
|
*/
|
|
732
731
|
cursorPagingMetadata?: CursorPagingMetadata;
|
|
733
732
|
}
|
|
734
|
-
|
|
733
|
+
interface GetAvailabilityTimeSlotRequest {
|
|
735
734
|
/**
|
|
736
735
|
* Service ID of the time slot.
|
|
737
736
|
* Currently supported only for services of type `APPOINTMENT`.
|
|
@@ -788,7 +787,7 @@ export interface GetAvailabilityTimeSlotRequest {
|
|
|
788
787
|
*/
|
|
789
788
|
includeResourceTypeIds?: string[];
|
|
790
789
|
}
|
|
791
|
-
|
|
790
|
+
interface GetAvailabilityTimeSlotRequestCustomerChoices {
|
|
792
791
|
/**
|
|
793
792
|
* The selected add-ons IDs.
|
|
794
793
|
* Max: Derived from max amount of Add-On groups * max amount of Add-Ons per group.
|
|
@@ -802,7 +801,7 @@ export interface GetAvailabilityTimeSlotRequestCustomerChoices {
|
|
|
802
801
|
*/
|
|
803
802
|
durationChoiceId?: string | null;
|
|
804
803
|
}
|
|
805
|
-
|
|
804
|
+
interface GetAvailabilityTimeSlotResponse {
|
|
806
805
|
/** Time slot. */
|
|
807
806
|
timeSlot?: TimeSlot;
|
|
808
807
|
/**
|
|
@@ -812,7 +811,7 @@ export interface GetAvailabilityTimeSlotResponse {
|
|
|
812
811
|
*/
|
|
813
812
|
timeZone?: string | null;
|
|
814
813
|
}
|
|
815
|
-
|
|
814
|
+
interface ListEventTimeSlotsRequest {
|
|
816
815
|
/**
|
|
817
816
|
* Local start date for which event time slots are returned, in ISO-8601 format.
|
|
818
817
|
* E.g., "2024-01-30T13:30:00".
|
|
@@ -870,7 +869,7 @@ export interface ListEventTimeSlotsRequest {
|
|
|
870
869
|
/** Cursor to retrieve the next page of results. */
|
|
871
870
|
cursorPaging?: CursorPaging;
|
|
872
871
|
}
|
|
873
|
-
|
|
872
|
+
interface ListEventTimeSlotsResponse {
|
|
874
873
|
/** Retrieved time slots matching the specified filters. */
|
|
875
874
|
timeSlots?: TimeSlot[];
|
|
876
875
|
/**
|
|
@@ -883,7 +882,7 @@ export interface ListEventTimeSlotsResponse {
|
|
|
883
882
|
/** Paging metadata. */
|
|
884
883
|
pagingMetadata?: CursorPagingMetadata;
|
|
885
884
|
}
|
|
886
|
-
|
|
885
|
+
interface GetEventTimeSlotRequest {
|
|
887
886
|
/**
|
|
888
887
|
* The event ID.
|
|
889
888
|
* @minLength 36
|
|
@@ -899,7 +898,7 @@ export interface GetEventTimeSlotRequest {
|
|
|
899
898
|
*/
|
|
900
899
|
timeZone?: string | null;
|
|
901
900
|
}
|
|
902
|
-
|
|
901
|
+
interface GetEventTimeSlotResponse {
|
|
903
902
|
/** The time slot. */
|
|
904
903
|
timeSlot?: TimeSlot;
|
|
905
904
|
/**
|
|
@@ -910,46 +909,7 @@ export interface GetEventTimeSlotResponse {
|
|
|
910
909
|
*/
|
|
911
910
|
timeZone?: string | null;
|
|
912
911
|
}
|
|
913
|
-
|
|
914
|
-
/**
|
|
915
|
-
* Retrieves event time slots based on specified filters.
|
|
916
|
-
*
|
|
917
|
-
* Event time slots are predefined events that customers can book, subject to capacity and booking policies.
|
|
918
|
-
* By default, the Bookings app provides the events (classes) and the bookings policy.
|
|
919
|
-
*
|
|
920
|
-
* `ListEventTimeSlots` runs with these defaults, which you can override:
|
|
921
|
-
* - `providerId` is the Bookings app ID.
|
|
922
|
-
* - `timeZone` is the business time zone.
|
|
923
|
-
* - `cursorPaging.limit` is `50`.
|
|
924
|
-
* - Both bookable and non-bookable time slots are returned.
|
|
925
|
-
*
|
|
926
|
-
* Time slots are always sorted by their start time in ascending order.
|
|
927
|
-
* @public
|
|
928
|
-
* @documentationMaturity preview
|
|
929
|
-
* @requiredField options.fromLocalDate
|
|
930
|
-
* @permissionId BOOKINGS.AVAILABILITY_READ
|
|
931
|
-
* @permissionScope Manage Stores
|
|
932
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
933
|
-
* @permissionScope Read Bookings - Public Data
|
|
934
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
|
|
935
|
-
* @permissionScope Manage Bookings Services and Settings
|
|
936
|
-
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
937
|
-
* @permissionScope Read Bookings - Including Participants
|
|
938
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
|
|
939
|
-
* @permissionScope Read Bookings - all read permissions
|
|
940
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
|
|
941
|
-
* @permissionScope Read Bookings Calendar Availability
|
|
942
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR
|
|
943
|
-
* @permissionScope Manage Bookings - all permissions
|
|
944
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
945
|
-
* @applicableIdentity APP
|
|
946
|
-
* @applicableIdentity VISITOR
|
|
947
|
-
* @fqn com.wixpress.bookings.availability.v2.EventTimeSlots.ListEventTimeSlots
|
|
948
|
-
*/
|
|
949
|
-
export declare function listEventTimeSlots(options?: NonNullablePaths<ListEventTimeSlotsOptions, `fromLocalDate`>): Promise<NonNullablePaths<ListEventTimeSlotsResponse, {
|
|
950
|
-
[P in TimeSlotNonNullablePaths]: `timeSlots.${number}.${P}`;
|
|
951
|
-
}[TimeSlotNonNullablePaths]>>;
|
|
952
|
-
export interface ListEventTimeSlotsOptions {
|
|
912
|
+
interface ListEventTimeSlotsOptions {
|
|
953
913
|
/**
|
|
954
914
|
* Local start date for which event time slots are returned, in ISO-8601 format.
|
|
955
915
|
* E.g., "2024-01-30T13:30:00".
|
|
@@ -1007,35 +967,7 @@ export interface ListEventTimeSlotsOptions {
|
|
|
1007
967
|
/** Cursor to retrieve the next page of results. */
|
|
1008
968
|
cursorPaging?: CursorPaging;
|
|
1009
969
|
}
|
|
1010
|
-
|
|
1011
|
-
* Retrieves the details of a specific event time slot based on the provided event ID.
|
|
1012
|
-
* @param eventId - The event ID.
|
|
1013
|
-
* @public
|
|
1014
|
-
* @documentationMaturity preview
|
|
1015
|
-
* @requiredField eventId
|
|
1016
|
-
* @permissionId BOOKINGS.AVAILABILITY_READ
|
|
1017
|
-
* @permissionScope Manage Stores
|
|
1018
|
-
* @permissionScopeId SCOPE.STORES.MANAGE-STORES
|
|
1019
|
-
* @permissionScope Read Bookings - Public Data
|
|
1020
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-PUBLIC
|
|
1021
|
-
* @permissionScope Manage Bookings Services and Settings
|
|
1022
|
-
* @permissionScopeId SCOPE.BOOKINGS.CONFIGURATION
|
|
1023
|
-
* @permissionScope Read Bookings - Including Participants
|
|
1024
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-BOOKINGS-SENSITIVE
|
|
1025
|
-
* @permissionScope Read Bookings - all read permissions
|
|
1026
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.READ-BOOKINGS
|
|
1027
|
-
* @permissionScope Read Bookings Calendar Availability
|
|
1028
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS.READ-CALENDAR
|
|
1029
|
-
* @permissionScope Manage Bookings - all permissions
|
|
1030
|
-
* @permissionScopeId SCOPE.DC-BOOKINGS-MEGA.MANAGE-BOOKINGS
|
|
1031
|
-
* @applicableIdentity APP
|
|
1032
|
-
* @applicableIdentity VISITOR
|
|
1033
|
-
* @fqn com.wixpress.bookings.availability.v2.EventTimeSlots.GetEventTimeSlot
|
|
1034
|
-
*/
|
|
1035
|
-
export declare function getEventTimeSlot(eventId: string, options?: GetEventTimeSlotOptions): Promise<NonNullablePaths<GetEventTimeSlotResponse, {
|
|
1036
|
-
[P in TimeSlotNonNullablePaths]: `timeSlot.${P}`;
|
|
1037
|
-
}[TimeSlotNonNullablePaths]>>;
|
|
1038
|
-
export interface GetEventTimeSlotOptions {
|
|
970
|
+
interface GetEventTimeSlotOptions {
|
|
1039
971
|
/**
|
|
1040
972
|
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).
|
|
1041
973
|
* For example, `America/New_York`.
|
|
@@ -1045,4 +977,5 @@ export interface GetEventTimeSlotOptions {
|
|
|
1045
977
|
*/
|
|
1046
978
|
timeZone?: string | null;
|
|
1047
979
|
}
|
|
1048
|
-
|
|
980
|
+
|
|
981
|
+
export { type AvailableResources as A, type BookingPolicyViolations as B, type CursorPaging as C, type EventInfo as E, type GetEventTimeSlotOptions as G, type ListEventTimeSlotsOptions as L, type NestedTimeSlot as N, type Resource as R, type Service as S, type TimeSlot as T, type V2CustomerChoices as V, type WaitingList as W, type ListEventTimeSlotsResponse as a, type GetEventTimeSlotResponse as b, LocationType as c, type Location as d, type NonBookableReasons as e, type ListMultiServiceAvailabilityTimeSlotsRequest as f, type ListMultiServiceAvailabilityTimeSlotsResponse as g, type CursorPagingMetadata as h, type Cursors as i, type GetMultiServiceAvailabilityTimeSlotRequest as j, type GetMultiServiceAvailabilityTimeSlotResponse as k, type ListAvailabilityTimeSlotsRequest as l, type CustomerChoices as m, type ResourceType as n, type ListAvailabilityTimeSlotsResponse as o, type GetAvailabilityTimeSlotRequest as p, type GetAvailabilityTimeSlotRequestCustomerChoices as q, type GetAvailabilityTimeSlotResponse as r, type ListEventTimeSlotsRequest as s, type GetEventTimeSlotRequest as t };
|