@wix/auto_sdk_bookings_multi-service-availability-time-slots 1.0.4 → 1.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.d.ts +1 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js +31 -2
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js.map +1 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.d.ts +1 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js.map +1 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.d.ts +104 -130
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js.map +1 -1
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.d.ts +104 -130
- package/build/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js.map +1 -1
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.d.ts +1 -1
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js +31 -2
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js.map +1 -1
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.d.ts +1 -1
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js.map +1 -1
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.d.ts +104 -130
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js.map +1 -1
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.d.ts +104 -130
- package/build/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js.map +1 -1
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.d.ts +1 -1
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js +31 -2
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js.map +1 -1
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.d.ts +1 -1
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js.map +1 -1
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.d.ts +104 -130
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js.map +1 -1
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.d.ts +104 -130
- package/build/internal/cjs/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js.map +1 -1
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.context.d.ts +1 -1
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js +31 -2
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js.map +1 -1
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.d.ts +1 -1
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js.map +1 -1
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.d.ts +104 -130
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js.map +1 -1
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.d.ts +104 -130
- package/build/internal/es/src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js.map +1 -1
- package/package.json +2 -2
@@ -3,4 +3,4 @@ import { BuildRESTFunction, MaybeContext } from '@wix/sdk-types';
|
|
3
3
|
export declare const listMultiServiceAvailabilityTimeSlots: MaybeContext<BuildRESTFunction<typeof publicListMultiServiceAvailabilityTimeSlots> & typeof publicListMultiServiceAvailabilityTimeSlots>;
|
4
4
|
export declare const getMultiServiceAvailabilityTimeSlot: MaybeContext<BuildRESTFunction<typeof publicGetMultiServiceAvailabilityTimeSlot> & typeof publicGetMultiServiceAvailabilityTimeSlot>;
|
5
5
|
export { LocationType } from './bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js';
|
6
|
-
export { TimeSlot, Location, EventInfo, WaitingList, BookingPolicyViolations, AvailableResources, Resource, NestedTimeSlot, ListMultiServiceAvailabilityTimeSlotsRequest, Service, V2CustomerChoices, CursorPaging, ListMultiServiceAvailabilityTimeSlotsResponse, CursorPagingMetadata, Cursors, GetMultiServiceAvailabilityTimeSlotRequest, GetMultiServiceAvailabilityTimeSlotResponse, ListAvailabilityTimeSlotsRequest, CustomerChoices, ResourceType, ListAvailabilityTimeSlotsResponse, GetAvailabilityTimeSlotRequest, GetAvailabilityTimeSlotResponse,
|
6
|
+
export { TimeSlot, Location, EventInfo, WaitingList, BookingPolicyViolations, AvailableResources, Resource, NestedTimeSlot, NonBookableReasons, ListMultiServiceAvailabilityTimeSlotsRequest, Service, V2CustomerChoices, CursorPaging, ListMultiServiceAvailabilityTimeSlotsResponse, CursorPagingMetadata, Cursors, GetMultiServiceAvailabilityTimeSlotRequest, GetMultiServiceAvailabilityTimeSlotResponse, ListAvailabilityTimeSlotsRequest, CustomerChoices, ResourceType, ListAvailabilityTimeSlotsResponse, GetAvailabilityTimeSlotRequest, GetAvailabilityTimeSlotResponse, ListEventTimeSlotsRequest, ListEventTimeSlotsResponse, GetEventTimeSlotRequest, GetEventTimeSlotResponse, ListMultiServiceAvailabilityTimeSlotsResponseNonNullableFields, GetMultiServiceAvailabilityTimeSlotResponseNonNullableFields, ListMultiServiceAvailabilityTimeSlotsOptions, } from './bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js';
|
@@ -1,6 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.getMultiServiceAvailabilityTimeSlot = exports.listMultiServiceAvailabilityTimeSlots = void 0;
|
4
|
+
const timestamp_1 = require("@wix/sdk-runtime/transformations/timestamp");
|
5
|
+
const timestamp_2 = require("@wix/sdk-runtime/transformations/timestamp");
|
6
|
+
const transform_paths_1 = require("@wix/sdk-runtime/transformations/transform-paths");
|
4
7
|
const rest_modules_1 = require("@wix/sdk-runtime/rest-modules");
|
5
8
|
function resolveComWixpressBookingsAvailabilityV2MultiServiceAvailabilityTimeSlotsUrl(opts) {
|
6
9
|
const domainToMappings = {
|
@@ -193,13 +196,31 @@ const PACKAGE_NAME = '@wix/auto_sdk_bookings_multi-service-availability-time-slo
|
|
193
196
|
*/
|
194
197
|
function listMultiServiceAvailabilityTimeSlots(payload) {
|
195
198
|
function __listMultiServiceAvailabilityTimeSlots({ host }) {
|
199
|
+
const serializedData = (0, transform_paths_1.transformPaths)(payload, [
|
200
|
+
{
|
201
|
+
transformFn: timestamp_1.transformSDKTimestampToRESTTimestamp,
|
202
|
+
paths: [{ path: 'bookingPolicyViolations.earliestBookingDate' }],
|
203
|
+
},
|
204
|
+
]);
|
196
205
|
const metadata = {
|
197
206
|
entityFqdn: 'wix.bookings.availability.v2.time_slot',
|
198
207
|
method: 'POST',
|
199
208
|
methodFqn: 'com.wixpress.bookings.availability.v2.MultiServiceAvailabilityTimeSlots.ListMultiServiceAvailabilityTimeSlots',
|
200
209
|
packageName: PACKAGE_NAME,
|
201
|
-
url: resolveComWixpressBookingsAvailabilityV2MultiServiceAvailabilityTimeSlotsUrl({
|
202
|
-
|
210
|
+
url: resolveComWixpressBookingsAvailabilityV2MultiServiceAvailabilityTimeSlotsUrl({
|
211
|
+
protoPath: '/v2/multi-service-time-slots',
|
212
|
+
data: serializedData,
|
213
|
+
host,
|
214
|
+
}),
|
215
|
+
data: serializedData,
|
216
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
217
|
+
{
|
218
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
219
|
+
paths: [
|
220
|
+
{ path: 'timeSlots.bookingPolicyViolations.earliestBookingDate' },
|
221
|
+
],
|
222
|
+
},
|
223
|
+
]),
|
203
224
|
};
|
204
225
|
return metadata;
|
205
226
|
}
|
@@ -244,6 +265,14 @@ function getMultiServiceAvailabilityTimeSlot(payload) {
|
|
244
265
|
packageName: PACKAGE_NAME,
|
245
266
|
url: resolveComWixpressBookingsAvailabilityV2MultiServiceAvailabilityTimeSlotsUrl({ protoPath: '/v2/multi-service-time-slots/get', data: payload, host }),
|
246
267
|
data: payload,
|
268
|
+
transformResponse: (payload) => (0, transform_paths_1.transformPaths)(payload, [
|
269
|
+
{
|
270
|
+
transformFn: timestamp_2.transformRESTTimestampToSDKTimestamp,
|
271
|
+
paths: [
|
272
|
+
{ path: 'timeSlot.bookingPolicyViolations.earliestBookingDate' },
|
273
|
+
],
|
274
|
+
},
|
275
|
+
]),
|
247
276
|
};
|
248
277
|
return metadata;
|
249
278
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js","sourceRoot":"","sources":["../../../src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.ts"],"names":[],"mappings":";;;AAAA,gEAA2D;AAI3D,SAAS,4EAA4E,CACnF,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,0CAA0C;gBACnD,QAAQ,EAAE,gBAAgB;aAC3B;YACD;gBACE,OAAO,EAAE,wDAAwD;gBACjE,QAAQ,EAAE,8BAA8B;aACzC;YACD;gBACE,OAAO,EAAE,qCAAqC;gBAC9C,QAAQ,EAAE,gBAAgB;aAC3B;YACD;gBACE,OAAO,EAAE,mDAAmD;gBAC5D,QAAQ,EAAE,8BAA8B;aACzC;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,0C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E,QAAQ,EAAE,8BAA8B;aACzC;YACD;gBACE,OAAO,EAAE,0CAA0C;gBACnD,QAAQ,EAAE,gBAAgB;aAC3B;SACF;KACF,CAAC;IAEF,OAAO,IAAA,yBAAU,EAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,YAAY,GAChB,8DAA8D,CAAC;AAEjE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8EG;AACH,SAAgB,qCAAqC,CACnD,OAAe;IAEf,SAAS,uCAAuC,CAAC,EAAE,IAAI,EAAO;QAC5D,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,wCAAwC;YACpD,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,+GAA+G;YACjH,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,4EAA4E,CAC/E,
|
1
|
+
{"version":3,"file":"bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.js","sourceRoot":"","sources":["../../../src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.http.ts"],"names":[],"mappings":";;;AAAA,0EAAkG;AAClG,0EAAkG;AAClG,sFAAkF;AAClF,gEAA2D;AAI3D,SAAS,4EAA4E,CACnF,IAA8C;IAE9C,MAAM,gBAAgB,GAAG;QACvB,iBAAiB,EAAE;YACjB;gBACE,OAAO,EAAE,0CAA0C;gBACnD,QAAQ,EAAE,gBAAgB;aAC3B;YACD;gBACE,OAAO,EAAE,wDAAwD;gBACjE,QAAQ,EAAE,8BAA8B;aACzC;YACD;gBACE,OAAO,EAAE,qCAAqC;gBAC9C,QAAQ,EAAE,gBAAgB;aAC3B;YACD;gBACE,OAAO,EAAE,mDAAmD;gBAC5D,QAAQ,EAAE,8BAA8B;aACzC;SACF;QACD,oBAAoB,EAAE;YACpB;gBACE,OAAO,EAAE,0CAA0C;gBACnD,QAAQ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jD,OAAe;IAEf,SAAS,qCAAqC,CAAC,EAAE,IAAI,EAAO;QAC1D,MAAM,QAAQ,GAAG;YACf,UAAU,EAAE,wCAAwC;YACpD,MAAM,EAAE,MAAa;YACrB,SAAS,EACP,6GAA6G;YAC/G,WAAW,EAAE,YAAY;YACzB,GAAG,EAAE,4EAA4E,CAC/E,EAAE,SAAS,EAAE,kCAAkC,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CACvE;YACD,IAAI,EAAE,OAAO;YACb,iBAAiB,EAAE,CAAC,OAAY,EAAE,EAAE,CAClC,IAAA,gCAAc,EAAC,OAAO,EAAE;gBACtB;oBACE,WAAW,EAAE,gDAAoC;oBACjD,KAAK,EAAE;wBACL,EAAE,IAAI,EAAE,sDAAsD,EAAE;qBACjE;iBACF;aACF,CAAC;SACL,CAAC;QAEF,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,OAAO,qCAAqC,CAAC;AAC/C,CAAC;AA7BD,kFA6BC"}
|
@@ -138,4 +138,4 @@ interface GetMultiServiceAvailabilityTimeSlotSignature {
|
|
138
138
|
*/
|
139
139
|
(services: Service[], localStartDate: string, localEndDate: string, timeZone: string | null, location: Location): Promise<GetMultiServiceAvailabilityTimeSlotResponse & GetMultiServiceAvailabilityTimeSlotResponseNonNullableFields>;
|
140
140
|
}
|
141
|
-
export { AvailableResources, BookingPolicyViolations,
|
141
|
+
export { AvailableResources, BookingPolicyViolations, CursorPaging, CursorPagingMetadata, Cursors, CustomerChoices, EventInfo, GetAvailabilityTimeSlotRequest, GetAvailabilityTimeSlotResponse, GetEventTimeSlotRequest, GetEventTimeSlotResponse, GetMultiServiceAvailabilityTimeSlotRequest, GetMultiServiceAvailabilityTimeSlotResponse, GetMultiServiceAvailabilityTimeSlotResponseNonNullableFields, ListAvailabilityTimeSlotsRequest, ListAvailabilityTimeSlotsResponse, ListEventTimeSlotsRequest, ListEventTimeSlotsResponse, ListMultiServiceAvailabilityTimeSlotsOptions, ListMultiServiceAvailabilityTimeSlotsRequest, ListMultiServiceAvailabilityTimeSlotsResponse, ListMultiServiceAvailabilityTimeSlotsResponseNonNullableFields, Location, LocationType, NestedTimeSlot, NonBookableReasons, Resource, ResourceType, Service, TimeSlot, V2CustomerChoices, WaitingList, } from './bookings-availability-v2-time-slot-multi-service-availability-time-slots.universal.js';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js","sourceRoot":"","sources":["../../../src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.ts"],"names":[],"mappings":";;;AACA,mMAUiG;AAEpF,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,SAAgB,qCAAqC,CACnD,UAAsB;IAEtB,OAAO,CAAC,OAAsD,EAAE,EAAE,CAChE,IAAA,6HAA8C,EAC5C,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,sFASC;AAwFD,SAAgB,mCAAmC,CACjD,UAAsB;IAEtB,OAAO,CACL,QAAmB,EACnB,cAAsB,EACtB,YAAoB,EACpB,QAAuB,EACvB,QAAkB,EAClB,EAAE,CACF,IAAA,2HAA4C,EAC1C,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAnBD,kFAmBC;AA+DD,
|
1
|
+
{"version":3,"file":"bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.js","sourceRoot":"","sources":["../../../src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.public.ts"],"names":[],"mappings":";;;AACA,mMAUiG;AAEpF,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,eAAe,EAAE,CAAC;AAE5D,SAAgB,qCAAqC,CACnD,UAAsB;IAEtB,OAAO,CAAC,OAAsD,EAAE,EAAE,CAChE,IAAA,6HAA8C,EAC5C,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AATD,sFASC;AAwFD,SAAgB,mCAAmC,CACjD,UAAsB;IAEtB,OAAO,CACL,QAAmB,EACnB,cAAsB,EACtB,YAAoB,EACpB,QAAuB,EACvB,QAAkB,EAClB,EAAE,CACF,IAAA,2HAA4C,EAC1C,QAAQ,EACR,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,QAAQ;IACR,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAnBD,kFAmBC;AA+DD,iMAiCiG;AAT/F,qLAAA,YAAY,OAAA"}
|
@@ -46,6 +46,8 @@ export interface TimeSlot {
|
|
46
46
|
bookable?: boolean | null;
|
47
47
|
/** The geographic location of the slot. */
|
48
48
|
location?: Location;
|
49
|
+
/** The event information if the time slot is an event based slot. */
|
50
|
+
eventInfo?: EventInfo;
|
49
51
|
/**
|
50
52
|
* Total number of spots for the slot.
|
51
53
|
* @min 1
|
@@ -58,6 +60,11 @@ export interface TimeSlot {
|
|
58
60
|
* @max 1000
|
59
61
|
*/
|
60
62
|
remainingCapacity?: number | null;
|
63
|
+
/**
|
64
|
+
* Number of spots in the slot that are available for booking.
|
65
|
+
* This is calculated as the remaining capacity minus the spots reserved for the waiting list.
|
66
|
+
*/
|
67
|
+
bookableCapacity?: number | null;
|
61
68
|
/**
|
62
69
|
* Indicators for booking policy violations for the slot.
|
63
70
|
*
|
@@ -79,6 +86,8 @@ export interface TimeSlot {
|
|
79
86
|
* @maxSize 8
|
80
87
|
*/
|
81
88
|
nestedTimeSlots?: NestedTimeSlot[];
|
89
|
+
/** Reasons why the time slot is not available for booking. */
|
90
|
+
nonBookableReasons?: NonBookableReasons;
|
82
91
|
}
|
83
92
|
export interface Location {
|
84
93
|
/**
|
@@ -109,23 +118,32 @@ export declare enum LocationType {
|
|
109
118
|
}
|
110
119
|
/** relevant for event based slots, and not for availability based slots */
|
111
120
|
export interface EventInfo {
|
121
|
+
/**
|
122
|
+
* The event ID.
|
123
|
+
* @minLength 36
|
124
|
+
* @maxLength 250
|
125
|
+
*/
|
126
|
+
eventId?: string | null;
|
127
|
+
/** Waiting list details for the event, if enabled in the service's booking policy. */
|
128
|
+
waitingList?: WaitingList;
|
112
129
|
}
|
113
130
|
export interface WaitingList {
|
114
131
|
/**
|
115
|
-
* Total number of spots in
|
132
|
+
* Total number of spots in the waiting list.
|
116
133
|
* @min 1
|
117
134
|
*/
|
118
135
|
totalCapacity?: number | null;
|
119
136
|
/**
|
120
|
-
* Number of remaining spots
|
121
|
-
* For example, a
|
122
|
-
* on the waitList has 10 `total_capacity` and 7 `remaining_capacity`.
|
137
|
+
* Number of remaining spots in the waiting list.
|
138
|
+
* For example, a yoga event with a capacity of `10` and `3` registrants will have a `remainingCapacity` of `7`.
|
123
139
|
*/
|
124
140
|
remainingCapacity?: number | null;
|
125
141
|
}
|
126
142
|
export interface BookingPolicyViolations {
|
127
143
|
/** Bookings policy violation. Too early to book this slot. */
|
128
144
|
tooEarlyToBook?: boolean | null;
|
145
|
+
/** The earliest time at which booking for this slot is allowed, in UTC format (`YYYY-MM-DDThh:mm:ss.sssZ`). */
|
146
|
+
earliestBookingDate?: Date | null;
|
129
147
|
/** Bookings policy violation. Too late to book this slot. */
|
130
148
|
tooLateToBook?: boolean | null;
|
131
149
|
/** Bookings policy violation. Online booking is disabled for the `TimeSlot` service. */
|
@@ -201,6 +219,14 @@ export interface NestedTimeSlot {
|
|
201
219
|
*/
|
202
220
|
availableResources?: AvailableResources[];
|
203
221
|
}
|
222
|
+
export interface NonBookableReasons {
|
223
|
+
/** The slot is fully booked with no remaining capacity. */
|
224
|
+
noRemainingCapacity?: boolean | null;
|
225
|
+
/** Booking this slot would violate the service's booking policy. */
|
226
|
+
violatesBookingPolicy?: boolean | null;
|
227
|
+
/** The slot is reserved for the waiting list and not available for direct booking. */
|
228
|
+
reservedForWaitingList?: boolean | null;
|
229
|
+
}
|
204
230
|
export interface ListMultiServiceAvailabilityTimeSlotsRequest {
|
205
231
|
/**
|
206
232
|
* Services for which the multiService time slots are being returned for.
|
@@ -745,167 +771,115 @@ export interface GetAvailabilityTimeSlotResponse {
|
|
745
771
|
*/
|
746
772
|
timeZone?: string | null;
|
747
773
|
}
|
748
|
-
export interface CalculateEventBasedAvailabilityRequest {
|
749
|
-
/**
|
750
|
-
* @format GUID
|
751
|
-
* @minSize 1
|
752
|
-
* @maxSize 5
|
753
|
-
*/
|
754
|
-
serviceIds?: string[];
|
755
|
-
/** @maxLength 100 */
|
756
|
-
from?: string;
|
757
|
-
/** @maxLength 100 */
|
758
|
-
to?: string;
|
759
|
-
/** @maxLength 30 */
|
760
|
-
timeZone?: string;
|
761
|
-
/**
|
762
|
-
* 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
|
763
|
-
* TODO: Locks are not taken into account. // Class is not supported yet. (relevant only for classes with waiting list)
|
764
|
-
* Aliza's suggestion to consider locks in bookable
|
765
|
-
*/
|
766
|
-
bookable?: boolean | null;
|
767
|
-
/**
|
768
|
-
* support filtering by location type, or by locationId. Other fields like `name` are ignored
|
769
|
-
* @maxSize 5
|
770
|
-
*/
|
771
|
-
location?: Location[];
|
772
|
-
/**
|
773
|
-
* @format GUID
|
774
|
-
* @maxSize 5
|
775
|
-
*/
|
776
|
-
resourceIds?: string[];
|
777
|
-
/** if not empty, return slots with openSpots >= X */
|
778
|
-
openSpots?: number | null;
|
779
|
-
/**
|
780
|
-
* 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
|
781
|
-
* we will return slots for which `too_early_to_book` is same as on the request, regardless of `too_late_to_book`.
|
782
|
-
*/
|
783
|
-
bookingPolicyViolations?: BookingPolicyViolations;
|
784
|
-
/**
|
785
|
-
* Maximum number of slots to load for each date. For example, if `slots_per_day` is set to `3`,
|
786
|
-
* at most 3 available slots are returned for each day in the date range specified in the query's
|
787
|
-
* `filter`.
|
788
|
-
*
|
789
|
-
* When a day has both bookable and non-bookable slots, bookable slots are returned first.
|
790
|
-
* Non-bookable slots are returned according to the specified filters, after all
|
791
|
-
* bookable slots are already included.
|
792
|
-
*/
|
793
|
-
slotsPerDay?: number | null;
|
794
|
-
cursorPaging?: CommonCursorPaging;
|
795
|
-
}
|
796
|
-
export interface CommonCursorPaging {
|
797
|
-
/**
|
798
|
-
* Maximum number of items to return in the results.
|
799
|
-
* @max 100
|
800
|
-
*/
|
801
|
-
limit?: number | null;
|
802
|
-
/**
|
803
|
-
* Pointer to the next or previous page in the list of results.
|
804
|
-
*
|
805
|
-
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
806
|
-
* Not relevant for the first request.
|
807
|
-
* @maxLength 16000
|
808
|
-
*/
|
809
|
-
cursor?: string | null;
|
810
|
-
}
|
811
|
-
export interface CalculateEventBasedAvailabilityResponse {
|
812
|
-
slots?: TimeSlot[];
|
813
|
-
cursorPagingMetadata?: CommonCursorPagingMetadata;
|
814
|
-
}
|
815
|
-
export interface CommonCursorPagingMetadata {
|
816
|
-
/** Number of items returned in current page. */
|
817
|
-
count?: number | null;
|
818
|
-
/** Cursor strings that point to the next page, previous page, or both. */
|
819
|
-
cursors?: CommonCursors;
|
820
|
-
/**
|
821
|
-
* Whether there are more pages to retrieve following the current page.
|
822
|
-
*
|
823
|
-
* + `true`: Another page of results can be retrieved.
|
824
|
-
* + `false`: This is the last page.
|
825
|
-
*/
|
826
|
-
hasNext?: boolean | null;
|
827
|
-
}
|
828
|
-
export interface CommonCursors {
|
829
|
-
/**
|
830
|
-
* Cursor string pointing to the next page in the list of results.
|
831
|
-
* @maxLength 16000
|
832
|
-
*/
|
833
|
-
next?: string | null;
|
834
|
-
/**
|
835
|
-
* Cursor pointing to the previous page in the list of results.
|
836
|
-
* @maxLength 16000
|
837
|
-
*/
|
838
|
-
prev?: string | null;
|
839
|
-
}
|
840
774
|
export interface ListEventTimeSlotsRequest {
|
841
775
|
/**
|
842
|
-
* The
|
776
|
+
* The ID of the provider providing the events and booking policies.
|
777
|
+
*
|
778
|
+
* Default: Bookings app ID.
|
843
779
|
* @format GUID
|
844
|
-
* @minSize 1
|
845
|
-
* @maxSize 5
|
846
780
|
*/
|
847
|
-
|
781
|
+
providerId?: string | null;
|
848
782
|
/**
|
849
783
|
* Local start date for which event time slots are returned, in ISO-8601 format.
|
850
|
-
* E.g
|
784
|
+
* E.g., "2024-01-30T13:30:00".
|
851
785
|
* Required, unless `cursorPaging` is provided.
|
852
786
|
* @format LOCAL_DATE_TIME
|
853
787
|
*/
|
854
788
|
fromLocalDate?: string | null;
|
855
789
|
/**
|
856
790
|
* Local end date for which event time slots are returned, in ISO-8601 format.
|
857
|
-
* E.g
|
791
|
+
* E.g., "2024-01-30T13:30:00".
|
858
792
|
* Required, unless `cursorPaging` is provided.
|
859
793
|
* @format LOCAL_DATE_TIME
|
860
794
|
*/
|
861
795
|
toLocalDate?: string | null;
|
862
796
|
/**
|
863
|
-
*
|
864
|
-
*
|
865
|
-
*
|
797
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).
|
798
|
+
* For example, `America/New_York`.
|
799
|
+
*
|
800
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
801
|
+
* @maxLength 100
|
866
802
|
*/
|
867
803
|
timeZone?: string | null;
|
868
|
-
/** 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 */
|
869
|
-
bookable?: boolean | null;
|
870
804
|
/**
|
871
|
-
*
|
872
|
-
*
|
805
|
+
* Optional service IDs to filter by.
|
806
|
+
* If not provided, time slots for all services are returned.
|
807
|
+
* @format GUID
|
808
|
+
* @maxSize 100
|
873
809
|
*/
|
874
|
-
|
810
|
+
serviceIds?: string[] | null;
|
875
811
|
/**
|
876
|
-
*
|
877
|
-
*
|
878
|
-
*
|
812
|
+
* Whether to filter bookable slots only.
|
813
|
+
* A bookable slot is a slot that has remaining capacity and also satisfies the booking policy.
|
814
|
+
*
|
815
|
+
* Default: Both bookable and non-bookable slots are returned.
|
879
816
|
*/
|
880
|
-
|
881
|
-
/**
|
882
|
-
|
817
|
+
bookable?: boolean | null;
|
818
|
+
/** Filter event time slots by the minimum bookable capacity. */
|
819
|
+
minBookableCapacity?: number | null;
|
883
820
|
/**
|
884
|
-
*
|
885
|
-
*
|
821
|
+
* Optional filter to apply to the events. E.g., resource, location, etc.
|
822
|
+
* See the Events API [Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-management/calendar/events-v3/supported-filters-and-sorting) for more information.
|
886
823
|
*/
|
887
|
-
|
824
|
+
eventFilter?: Record<string, any> | null;
|
888
825
|
/**
|
889
|
-
*
|
890
|
-
*
|
891
|
-
* `filter`.
|
892
|
-
*
|
826
|
+
* The maximum number of time slots to return for each day.
|
827
|
+
* For example, if `timeSlotsPerDay` is set to `1`, at most 1 available slot is returned for each day.
|
893
828
|
* When a day has both bookable and non-bookable slots, bookable slots are returned first.
|
894
|
-
*
|
895
|
-
*
|
829
|
+
* If `timeSlotsPerDay` is provided, `toLocalDate` must also be provided and must be at most 1 month after `fromLocalDate`.
|
830
|
+
* @min 1
|
831
|
+
* @max 1
|
896
832
|
*/
|
897
833
|
timeSlotsPerDay?: number | null;
|
898
|
-
|
834
|
+
/** Cursor to retrieve the next page of results. */
|
835
|
+
cursorPaging?: CursorPaging;
|
899
836
|
}
|
900
837
|
export interface ListEventTimeSlotsResponse {
|
901
|
-
/**
|
838
|
+
/** Retrieved time slots matching the specified filters. */
|
902
839
|
timeSlots?: TimeSlot[];
|
903
840
|
/**
|
904
|
-
* The time
|
905
|
-
*
|
841
|
+
* The time slots time zone.
|
842
|
+
* Either provided explicitly or default to the business time zone.
|
843
|
+
* @minLength 1
|
844
|
+
* @maxLength 150
|
845
|
+
*/
|
846
|
+
timeZone?: string | null;
|
847
|
+
/** Paging metadata. */
|
848
|
+
pagingMetadata?: CursorPagingMetadata;
|
849
|
+
}
|
850
|
+
export interface GetEventTimeSlotRequest {
|
851
|
+
/**
|
852
|
+
* The ID of the provider providing the events and the bookings policy.
|
853
|
+
*
|
854
|
+
* Default: Bookings app ID.
|
855
|
+
* @format GUID
|
856
|
+
*/
|
857
|
+
providerId?: string | null;
|
858
|
+
/**
|
859
|
+
* The event ID.
|
860
|
+
* @minLength 36
|
861
|
+
* @maxLength 250
|
862
|
+
*/
|
863
|
+
eventId?: string | null;
|
864
|
+
/**
|
865
|
+
* Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database).
|
866
|
+
* For example, `America/New_York`.
|
867
|
+
*
|
868
|
+
* Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/rest/business-management/site-properties/properties/get-site-properties).
|
869
|
+
* @maxLength 100
|
870
|
+
*/
|
871
|
+
timeZone?: string | null;
|
872
|
+
}
|
873
|
+
export interface GetEventTimeSlotResponse {
|
874
|
+
/** The time slot. */
|
875
|
+
timeSlot?: TimeSlot;
|
876
|
+
/**
|
877
|
+
* The time slot time zone.
|
878
|
+
* Either provided explicitly or default to the business time zone.
|
879
|
+
* @minLength 1
|
880
|
+
* @maxLength 150
|
906
881
|
*/
|
907
882
|
timeZone?: string | null;
|
908
|
-
cursorPagingMetadata?: CommonCursorPagingMetadata;
|
909
883
|
}
|
910
884
|
interface LocationNonNullableFields {
|
911
885
|
locationType: LocationType;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js","sourceRoot":"","sources":["../../../src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.ts"],"names":[],"mappings":";;;
|
1
|
+
{"version":3,"file":"bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.js","sourceRoot":"","sources":["../../../src/bookings-availability-v2-time-slot-multi-service-availability-time-slots.types.ts"],"names":[],"mappings":";;;AA+GA,IAAY,YAQX;AARD,WAAY,YAAY;IACtB,+DAA+C,CAAA;IAC/C,4HAA4H;IAC5H,qCAAqB,CAAA;IACrB,iGAAiG;IACjG,iCAAiB,CAAA;IACjB,mFAAmF;IACnF,qCAAqB,CAAA;AACvB,CAAC,EARW,YAAY,4BAAZ,YAAY,QAQvB"}
|