@wix/auto_sdk_bookings_availability-time-slots 1.0.274 → 1.0.276
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 +4 -4
- package/build/cjs/index.js +16 -12
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +35 -4
- package/build/cjs/index.typings.js +16 -12
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +32 -1
- package/build/cjs/meta.js +16 -12
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +4 -4
- package/build/es/index.mjs +16 -12
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +35 -4
- package/build/es/index.typings.mjs +16 -12
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +32 -1
- package/build/es/meta.mjs +16 -12
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +4 -4
- package/build/internal/cjs/index.typings.d.ts +51 -4
- package/build/internal/cjs/meta.d.ts +48 -1
- package/build/internal/es/index.d.mts +4 -4
- package/build/internal/es/index.typings.d.mts +51 -4
- package/build/internal/es/meta.d.mts +48 -1
- package/package.json +2 -2
|
@@ -414,6 +414,37 @@ interface Cursors {
|
|
|
414
414
|
/** Cursor pointing to previous page in the list of results. */
|
|
415
415
|
prev?: string | null;
|
|
416
416
|
}
|
|
417
|
+
/**
|
|
418
|
+
* Enrollment status and date range of a schedule.
|
|
419
|
+
*
|
|
420
|
+
* Only courses have one today. A course is a single schedule with many sessions. A customer enrolls in
|
|
421
|
+
* the whole course, not in one session, so this information belongs to the schedule and not to any
|
|
422
|
+
* single time slot.
|
|
423
|
+
*/
|
|
424
|
+
interface ScheduleInfo {
|
|
425
|
+
/**
|
|
426
|
+
* ID of the service the schedule belongs to. Matches `timeSlot.serviceId`.
|
|
427
|
+
* @format GUID
|
|
428
|
+
*/
|
|
429
|
+
serviceId?: string | null;
|
|
430
|
+
/**
|
|
431
|
+
* ID of the schedule the information belongs to.
|
|
432
|
+
* @format GUID
|
|
433
|
+
*/
|
|
434
|
+
scheduleId?: string | null;
|
|
435
|
+
/**
|
|
436
|
+
* Whether the course still accepts enrollment, evaluated against the **first session of the course**.
|
|
437
|
+
*
|
|
438
|
+
* Unlike `timeSlot.bookingPolicyViolations`, this never takes into account whether a single session has
|
|
439
|
+
* already started. A course whose booking policy allows booking after the start keeps `tooLateToBook` as
|
|
440
|
+
* `false` here even once some of its sessions have passed.
|
|
441
|
+
*/
|
|
442
|
+
enrollmentViolations?: BookingPolicyViolations;
|
|
443
|
+
/** Start of the first session of the course. */
|
|
444
|
+
firstSessionStart?: Date | null;
|
|
445
|
+
/** End of the last session of the course. Not returned for a course whose sessions repeat with no end date. */
|
|
446
|
+
lastSessionEnd?: Date | null;
|
|
447
|
+
}
|
|
417
448
|
interface GetEventTimeSlotRequest {
|
|
418
449
|
/**
|
|
419
450
|
* Event ID.
|
|
@@ -1466,7 +1497,7 @@ type GetAvailabilityTimeSlotApplicationErrors = {
|
|
|
1466
1497
|
* @applicableIdentity APP
|
|
1467
1498
|
* @fqn com.wixpress.bookings.availability.v2.AvailabilityTimeSlots.ListAvailabilityTimeSlots
|
|
1468
1499
|
*/
|
|
1469
|
-
declare function listAvailabilityTimeSlots(options?: ListAvailabilityTimeSlotsOptions): Promise<NonNullablePaths<ListAvailabilityTimeSlotsResponse, `timeSlots` | `timeSlots.${number}.location.locationType`,
|
|
1500
|
+
declare function listAvailabilityTimeSlots(options?: ListAvailabilityTimeSlotsOptions): Promise<NonNullablePaths<ListAvailabilityTimeSlotsResponse, `timeSlots` | `timeSlots.${number}.location.locationType`, 3> & {
|
|
1470
1501
|
__applicationErrorsType?: ListAvailabilityTimeSlotsApplicationErrors;
|
|
1471
1502
|
}>;
|
|
1472
1503
|
interface ListAvailabilityTimeSlotsOptions {
|
|
@@ -1590,7 +1621,7 @@ interface ListAvailabilityTimeSlotsOptions {
|
|
|
1590
1621
|
* @applicableIdentity APP
|
|
1591
1622
|
* @fqn com.wixpress.bookings.availability.v2.AvailabilityTimeSlots.ListAvailabilityTimeSlotEndOptions
|
|
1592
1623
|
*/
|
|
1593
|
-
declare function listAvailabilityTimeSlotEndOptions(serviceId: string, options?: NonNullablePaths<ListAvailabilityTimeSlotEndOptions, `localStartDate` | `location`,
|
|
1624
|
+
declare function listAvailabilityTimeSlotEndOptions(serviceId: string, options?: NonNullablePaths<ListAvailabilityTimeSlotEndOptions, `localStartDate` | `location`, 0>): Promise<NonNullablePaths<ListAvailabilityTimeSlotEndOptionsResponse, `endOptions` | `endOptions.${number}.location.locationType`, 3> & {
|
|
1594
1625
|
__applicationErrorsType?: ListAvailabilityTimeSlotEndOptionsApplicationErrors;
|
|
1595
1626
|
}>;
|
|
1596
1627
|
interface ListAvailabilityTimeSlotEndOptions {
|
|
@@ -1686,7 +1717,7 @@ interface ListAvailabilityTimeSlotEndOptions {
|
|
|
1686
1717
|
* @applicableIdentity APP
|
|
1687
1718
|
* @fqn com.wixpress.bookings.availability.v2.AvailabilityTimeSlots.GetAvailabilityTimeSlot
|
|
1688
1719
|
*/
|
|
1689
|
-
declare function getAvailabilityTimeSlot(serviceId: string, localStartDate: string, localEndDate: string, timeZone: string, location: Location, options?: GetAvailabilityTimeSlotOptions): Promise<NonNullablePaths<GetAvailabilityTimeSlotResponse, `timeSlot.location.locationType` | `timeSlot.availableResources` | `timeSlot.nestedTimeSlots` | `timeSlot.nestedTimeSlots.${number}.serviceId` | `timeSlot.nestedTimeSlots.${number}.localStartDate` | `timeSlot.nestedTimeSlots.${number}.localEndDate`,
|
|
1720
|
+
declare function getAvailabilityTimeSlot(serviceId: string, localStartDate: string, localEndDate: string, timeZone: string, location: Location, options?: GetAvailabilityTimeSlotOptions): Promise<NonNullablePaths<GetAvailabilityTimeSlotResponse, `timeSlot.location.locationType` | `timeSlot.availableResources` | `timeSlot.nestedTimeSlots` | `timeSlot.nestedTimeSlots.${number}.serviceId` | `timeSlot.nestedTimeSlots.${number}.localStartDate` | `timeSlot.nestedTimeSlots.${number}.localEndDate`, 3> & {
|
|
1690
1721
|
__applicationErrorsType?: GetAvailabilityTimeSlotApplicationErrors;
|
|
1691
1722
|
}>;
|
|
1692
1723
|
interface GetAvailabilityTimeSlotOptions {
|
|
@@ -1705,4 +1736,4 @@ interface GetAvailabilityTimeSlotOptions {
|
|
|
1705
1736
|
resourceTypes?: ResourceType[];
|
|
1706
1737
|
}
|
|
1707
1738
|
|
|
1708
|
-
export { type ApplicationError, type AvailableResources, type BookingPolicyViolations, type BulkActionMetadata, type BulkListAvailabilityTimeSlotsRequest, type BulkListAvailabilityTimeSlotsResponse, type BulkServiceTimeSlotsResult, type CursorPaging, type CursorPagingMetadata, type Cursors, type CustomerChoices, type DiagnoseAvailabilityRequest, type DiagnoseAvailabilityResponse, type DiagnosisReason, type EventInfo, type GetAvailabilityTimeSlotApplicationErrors, type GetAvailabilityTimeSlotOptions, type GetAvailabilityTimeSlotRequest, type GetAvailabilityTimeSlotRequestCustomerChoices, type GetAvailabilityTimeSlotResponse, type GetEventTimeSlotRequest, type GetEventTimeSlotResponse, type GetMultiServiceAvailabilityTimeSlotRequest, type GetMultiServiceAvailabilityTimeSlotResponse, type ItemMetadata, type ListAvailabilityTimeSlotEndOptions, type ListAvailabilityTimeSlotEndOptionsApplicationErrors, type ListAvailabilityTimeSlotEndOptionsRequest, type ListAvailabilityTimeSlotEndOptionsResponse, type ListAvailabilityTimeSlotsApplicationErrors, type ListAvailabilityTimeSlotsOptions, type ListAvailabilityTimeSlotsRequest, type ListAvailabilityTimeSlotsResponse, type ListEventTimeSlotsRequest, type ListEventTimeSlotsResponse, type ListMultiServiceAvailabilityTimeSlotsRequest, type ListMultiServiceAvailabilityTimeSlotsResponse, type Location, LocationType, type LocationTypeWithLiterals, type NestedTimeSlot, type NonBookableReasons, ReasonCode, type ReasonCodeWithLiterals, RequestedGender, type RequestedGenderValue, RequestedGenderValueRequestedGender, type RequestedGenderValueRequestedGenderWithLiterals, type RequestedGenderWithLiterals, type ResolvedContext, type Resource, type ResourceType, type Service, type ServiceTimeSlots, SuggestedAction, type SuggestedActionWithLiterals, type TimeSlot, type V2CustomerChoices, type V2RequestedGenderValue, type WaitingList, getAvailabilityTimeSlot, listAvailabilityTimeSlotEndOptions, listAvailabilityTimeSlots };
|
|
1739
|
+
export { type ApplicationError, type AvailableResources, type BookingPolicyViolations, type BulkActionMetadata, type BulkListAvailabilityTimeSlotsRequest, type BulkListAvailabilityTimeSlotsResponse, type BulkServiceTimeSlotsResult, type CursorPaging, type CursorPagingMetadata, type Cursors, type CustomerChoices, type DiagnoseAvailabilityRequest, type DiagnoseAvailabilityResponse, type DiagnosisReason, type EventInfo, type GetAvailabilityTimeSlotApplicationErrors, type GetAvailabilityTimeSlotOptions, type GetAvailabilityTimeSlotRequest, type GetAvailabilityTimeSlotRequestCustomerChoices, type GetAvailabilityTimeSlotResponse, type GetEventTimeSlotRequest, type GetEventTimeSlotResponse, type GetMultiServiceAvailabilityTimeSlotRequest, type GetMultiServiceAvailabilityTimeSlotResponse, type ItemMetadata, type ListAvailabilityTimeSlotEndOptions, type ListAvailabilityTimeSlotEndOptionsApplicationErrors, type ListAvailabilityTimeSlotEndOptionsRequest, type ListAvailabilityTimeSlotEndOptionsResponse, type ListAvailabilityTimeSlotsApplicationErrors, type ListAvailabilityTimeSlotsOptions, type ListAvailabilityTimeSlotsRequest, type ListAvailabilityTimeSlotsResponse, type ListEventTimeSlotsRequest, type ListEventTimeSlotsResponse, type ListMultiServiceAvailabilityTimeSlotsRequest, type ListMultiServiceAvailabilityTimeSlotsResponse, type Location, LocationType, type LocationTypeWithLiterals, type NestedTimeSlot, type NonBookableReasons, ReasonCode, type ReasonCodeWithLiterals, RequestedGender, type RequestedGenderValue, RequestedGenderValueRequestedGender, type RequestedGenderValueRequestedGenderWithLiterals, type RequestedGenderWithLiterals, type ResolvedContext, type Resource, type ResourceType, type ScheduleInfo, type Service, type ServiceTimeSlots, SuggestedAction, type SuggestedActionWithLiterals, type TimeSlot, type V2CustomerChoices, type V2RequestedGenderValue, type WaitingList, getAvailabilityTimeSlot, listAvailabilityTimeSlotEndOptions, listAvailabilityTimeSlots };
|
|
@@ -40,6 +40,18 @@ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
40
40
|
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
41
41
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
42
42
|
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
43
|
+
var TRANSFORM_PATHS_0 = [
|
|
44
|
+
{ path: "bookingPolicyViolations.earliestBookingDate" }
|
|
45
|
+
];
|
|
46
|
+
var TRANSFORM_PATHS_1 = [
|
|
47
|
+
{ path: "timeSlots.bookingPolicyViolations.earliestBookingDate" }
|
|
48
|
+
];
|
|
49
|
+
var TRANSFORM_PATHS_2 = [
|
|
50
|
+
{ path: "endOptions.bookingPolicyViolations.earliestBookingDate" }
|
|
51
|
+
];
|
|
52
|
+
var TRANSFORM_PATHS_3 = [
|
|
53
|
+
{ path: "timeSlot.bookingPolicyViolations.earliestBookingDate" }
|
|
54
|
+
];
|
|
43
55
|
function resolveComWixpressBookingsAvailabilityV2AvailabilityTimeSlotsUrl(opts) {
|
|
44
56
|
const domainToMappings = {
|
|
45
57
|
"www.wixapis.com": [
|
|
@@ -177,7 +189,7 @@ function listAvailabilityTimeSlots(payload) {
|
|
|
177
189
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
178
190
|
{
|
|
179
191
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
180
|
-
paths:
|
|
192
|
+
paths: TRANSFORM_PATHS_0
|
|
181
193
|
}
|
|
182
194
|
]);
|
|
183
195
|
const metadata = {
|
|
@@ -197,9 +209,7 @@ function listAvailabilityTimeSlots(payload) {
|
|
|
197
209
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
198
210
|
{
|
|
199
211
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
200
|
-
paths:
|
|
201
|
-
{ path: "timeSlots.bookingPolicyViolations.earliestBookingDate" }
|
|
202
|
-
]
|
|
212
|
+
paths: TRANSFORM_PATHS_1
|
|
203
213
|
}
|
|
204
214
|
])
|
|
205
215
|
};
|
|
@@ -226,11 +236,7 @@ function listAvailabilityTimeSlotEndOptions(payload) {
|
|
|
226
236
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
227
237
|
{
|
|
228
238
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
229
|
-
paths:
|
|
230
|
-
{
|
|
231
|
-
path: "endOptions.bookingPolicyViolations.earliestBookingDate"
|
|
232
|
-
}
|
|
233
|
-
]
|
|
239
|
+
paths: TRANSFORM_PATHS_2
|
|
234
240
|
}
|
|
235
241
|
])
|
|
236
242
|
};
|
|
@@ -257,9 +263,7 @@ function getAvailabilityTimeSlot(payload) {
|
|
|
257
263
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
258
264
|
{
|
|
259
265
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
260
|
-
paths:
|
|
261
|
-
{ path: "timeSlot.bookingPolicyViolations.earliestBookingDate" }
|
|
262
|
-
]
|
|
266
|
+
paths: TRANSFORM_PATHS_3
|
|
263
267
|
}
|
|
264
268
|
])
|
|
265
269
|
};
|