@wix/auto_sdk_bookings_availability-time-slots 1.0.261 → 1.0.262
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 -1
- package/build/cjs/index.js +14 -0
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +31 -1
- package/build/cjs/index.typings.js +14 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +31 -1
- package/build/cjs/meta.js +14 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +12 -0
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +31 -1
- package/build/es/index.typings.mjs +12 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +31 -1
- package/build/es/meta.mjs +12 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.js +14 -0
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +80 -1
- package/build/internal/cjs/index.typings.js +14 -0
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +80 -1
- package/build/internal/cjs/meta.js +14 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.mjs +12 -0
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +80 -1
- package/build/internal/es/index.typings.mjs +12 -0
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +80 -1
- package/build/internal/es/meta.mjs +12 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -554,6 +554,19 @@ interface CustomerChoices {
|
|
|
554
554
|
*/
|
|
555
555
|
durationChoiceId?: string | null;
|
|
556
556
|
}
|
|
557
|
+
/** Gender narrowing for an "any staff member" selection. */
|
|
558
|
+
interface RequestedGenderValue {
|
|
559
|
+
/** Gender the customer narrowed "any staff member" to. */
|
|
560
|
+
gender?: RequestedGenderWithLiterals;
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* Selectable genders. Staff members of any other gender are reachable
|
|
564
|
+
* through plain "any staff member" or by name.
|
|
565
|
+
*/
|
|
566
|
+
declare enum RequestedGender {
|
|
567
|
+
}
|
|
568
|
+
/** @enumType */
|
|
569
|
+
type RequestedGenderWithLiterals = RequestedGender;
|
|
557
570
|
interface ResourceType {
|
|
558
571
|
/**
|
|
559
572
|
* [Resource type ID](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction).
|
|
@@ -689,6 +702,19 @@ interface GetAvailabilityTimeSlotRequest {
|
|
|
689
702
|
*/
|
|
690
703
|
resourceTypes?: ResourceType[];
|
|
691
704
|
}
|
|
705
|
+
/** Gender narrowing for an "any staff member" selection. */
|
|
706
|
+
interface V2RequestedGenderValue {
|
|
707
|
+
/** Gender the customer narrowed "any staff member" to. */
|
|
708
|
+
gender?: RequestedGenderValueRequestedGenderWithLiterals;
|
|
709
|
+
}
|
|
710
|
+
/**
|
|
711
|
+
* Selectable genders. Staff members of any other gender are reachable
|
|
712
|
+
* through plain "any staff member" or by name.
|
|
713
|
+
*/
|
|
714
|
+
declare enum RequestedGenderValueRequestedGender {
|
|
715
|
+
}
|
|
716
|
+
/** @enumType */
|
|
717
|
+
type RequestedGenderValueRequestedGenderWithLiterals = RequestedGenderValueRequestedGender;
|
|
692
718
|
interface GetAvailabilityTimeSlotRequestCustomerChoices {
|
|
693
719
|
/**
|
|
694
720
|
* Selected add-on IDs.
|
|
@@ -1273,6 +1299,10 @@ type ListAvailabilityTimeSlotsApplicationErrors = {
|
|
|
1273
1299
|
code?: 'SERVICE_NOT_FOUND';
|
|
1274
1300
|
description?: string;
|
|
1275
1301
|
data?: Record<string, any>;
|
|
1302
|
+
} | {
|
|
1303
|
+
code?: 'REQUESTED_GENDER_NOT_ALLOWED';
|
|
1304
|
+
description?: string;
|
|
1305
|
+
data?: Record<string, any>;
|
|
1276
1306
|
};
|
|
1277
1307
|
/** @docsIgnore */
|
|
1278
1308
|
type ListAvailabilityTimeSlotEndOptionsApplicationErrors = {
|
|
@@ -1627,4 +1657,4 @@ interface GetAvailabilityTimeSlotOptions {
|
|
|
1627
1657
|
resourceTypes?: ResourceType[];
|
|
1628
1658
|
}
|
|
1629
1659
|
|
|
1630
|
-
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, type ResolvedContext, type Resource, type ResourceType, type Service, type ServiceTimeSlots, SuggestedAction, type SuggestedActionWithLiterals, type TimeSlot, type V2CustomerChoices, type WaitingList, getAvailabilityTimeSlot, listAvailabilityTimeSlotEndOptions, listAvailabilityTimeSlots };
|
|
1660
|
+
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 };
|
|
@@ -22,6 +22,8 @@ var index_typings_exports = {};
|
|
|
22
22
|
__export(index_typings_exports, {
|
|
23
23
|
LocationType: () => LocationType,
|
|
24
24
|
ReasonCode: () => ReasonCode,
|
|
25
|
+
RequestedGender: () => RequestedGender,
|
|
26
|
+
RequestedGenderValueRequestedGender: () => RequestedGenderValueRequestedGender,
|
|
25
27
|
SuggestedAction: () => SuggestedAction,
|
|
26
28
|
getAvailabilityTimeSlot: () => getAvailabilityTimeSlot2,
|
|
27
29
|
listAvailabilityTimeSlotEndOptions: () => listAvailabilityTimeSlotEndOptions2,
|
|
@@ -273,6 +275,16 @@ var LocationType = /* @__PURE__ */ ((LocationType2) => {
|
|
|
273
275
|
LocationType2["CUSTOMER"] = "CUSTOMER";
|
|
274
276
|
return LocationType2;
|
|
275
277
|
})(LocationType || {});
|
|
278
|
+
var RequestedGender = /* @__PURE__ */ ((RequestedGender2) => {
|
|
279
|
+
RequestedGender2["ANY_MALE"] = "ANY_MALE";
|
|
280
|
+
RequestedGender2["ANY_FEMALE"] = "ANY_FEMALE";
|
|
281
|
+
return RequestedGender2;
|
|
282
|
+
})(RequestedGender || {});
|
|
283
|
+
var RequestedGenderValueRequestedGender = /* @__PURE__ */ ((RequestedGenderValueRequestedGender2) => {
|
|
284
|
+
RequestedGenderValueRequestedGender2["ANY_MALE"] = "ANY_MALE";
|
|
285
|
+
RequestedGenderValueRequestedGender2["ANY_FEMALE"] = "ANY_FEMALE";
|
|
286
|
+
return RequestedGenderValueRequestedGender2;
|
|
287
|
+
})(RequestedGenderValueRequestedGender || {});
|
|
276
288
|
var ReasonCode = /* @__PURE__ */ ((ReasonCode2) => {
|
|
277
289
|
ReasonCode2["NO_ASSIGNED_STAFF_OR_RESOURCES"] = "NO_ASSIGNED_STAFF_OR_RESOURCES";
|
|
278
290
|
ReasonCode2["SERVICE_AVAILABILITY_CONFIGURATION_MISSING"] = "SERVICE_AVAILABILITY_CONFIGURATION_MISSING";
|
|
@@ -442,6 +454,8 @@ async function getAvailabilityTimeSlot2(serviceId, localStartDate, localEndDate,
|
|
|
442
454
|
0 && (module.exports = {
|
|
443
455
|
LocationType,
|
|
444
456
|
ReasonCode,
|
|
457
|
+
RequestedGender,
|
|
458
|
+
RequestedGenderValueRequestedGender,
|
|
445
459
|
SuggestedAction,
|
|
446
460
|
getAvailabilityTimeSlot,
|
|
447
461
|
listAvailabilityTimeSlotEndOptions,
|