@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
|
@@ -597,7 +597,41 @@ interface CustomerChoices {
|
|
|
597
597
|
* @format GUID
|
|
598
598
|
*/
|
|
599
599
|
durationChoiceId?: string | null;
|
|
600
|
+
/**
|
|
601
|
+
* Gender the customer narrowed an "any staff member" selection to.
|
|
602
|
+
* Only time slots served by staff members of that gender are returned.
|
|
603
|
+
* Omit to keep "any staff member" unnarrowed.
|
|
604
|
+
*
|
|
605
|
+
* Requires `genderPubliclyAccessible` to be enabled in the business's [staff member settings](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-member-settings/introduction). The call fails with `REQUESTED_GENDER_NOT_ALLOWED` when it's disabled.
|
|
606
|
+
* @internal
|
|
607
|
+
*/
|
|
608
|
+
requestedGender?: RequestedGenderValue;
|
|
609
|
+
}
|
|
610
|
+
/** Gender narrowing for an "any staff member" selection. */
|
|
611
|
+
interface RequestedGenderValue {
|
|
612
|
+
/** Gender the customer narrowed "any staff member" to. */
|
|
613
|
+
gender?: RequestedGenderWithLiterals;
|
|
614
|
+
}
|
|
615
|
+
/**
|
|
616
|
+
* Selectable genders. Staff members of any other gender are reachable
|
|
617
|
+
* through plain "any staff member" or by name.
|
|
618
|
+
*/
|
|
619
|
+
declare enum RequestedGender {
|
|
620
|
+
/**
|
|
621
|
+
* Any male staff member.
|
|
622
|
+
* @documentationMaturity preview
|
|
623
|
+
* @internal
|
|
624
|
+
*/
|
|
625
|
+
ANY_MALE = "ANY_MALE",
|
|
626
|
+
/**
|
|
627
|
+
* Any female staff member.
|
|
628
|
+
* @documentationMaturity preview
|
|
629
|
+
* @internal
|
|
630
|
+
*/
|
|
631
|
+
ANY_FEMALE = "ANY_FEMALE"
|
|
600
632
|
}
|
|
633
|
+
/** @enumType */
|
|
634
|
+
type RequestedGenderWithLiterals = RequestedGender;
|
|
601
635
|
interface ResourceType {
|
|
602
636
|
/**
|
|
603
637
|
* [Resource type ID](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction).
|
|
@@ -762,6 +796,31 @@ interface GetAvailabilityTimeSlotRequest {
|
|
|
762
796
|
*/
|
|
763
797
|
resourceTypes?: ResourceType[];
|
|
764
798
|
}
|
|
799
|
+
/** Gender narrowing for an "any staff member" selection. */
|
|
800
|
+
interface V2RequestedGenderValue {
|
|
801
|
+
/** Gender the customer narrowed "any staff member" to. */
|
|
802
|
+
gender?: RequestedGenderValueRequestedGenderWithLiterals;
|
|
803
|
+
}
|
|
804
|
+
/**
|
|
805
|
+
* Selectable genders. Staff members of any other gender are reachable
|
|
806
|
+
* through plain "any staff member" or by name.
|
|
807
|
+
*/
|
|
808
|
+
declare enum RequestedGenderValueRequestedGender {
|
|
809
|
+
/**
|
|
810
|
+
* Any male staff member.
|
|
811
|
+
* @documentationMaturity preview
|
|
812
|
+
* @internal
|
|
813
|
+
*/
|
|
814
|
+
ANY_MALE = "ANY_MALE",
|
|
815
|
+
/**
|
|
816
|
+
* Any female staff member.
|
|
817
|
+
* @documentationMaturity preview
|
|
818
|
+
* @internal
|
|
819
|
+
*/
|
|
820
|
+
ANY_FEMALE = "ANY_FEMALE"
|
|
821
|
+
}
|
|
822
|
+
/** @enumType */
|
|
823
|
+
type RequestedGenderValueRequestedGenderWithLiterals = RequestedGenderValueRequestedGender;
|
|
765
824
|
interface GetAvailabilityTimeSlotRequestCustomerChoices {
|
|
766
825
|
/**
|
|
767
826
|
* Selected add-on IDs.
|
|
@@ -775,6 +834,13 @@ interface GetAvailabilityTimeSlotRequestCustomerChoices {
|
|
|
775
834
|
* @format GUID
|
|
776
835
|
*/
|
|
777
836
|
durationChoiceId?: string | null;
|
|
837
|
+
/**
|
|
838
|
+
* Gender the customer narrowed an "any staff member" selection to.
|
|
839
|
+
* Only time slots served by staff members of that gender are returned.
|
|
840
|
+
* Omit to keep "any staff member" unnarrowed.
|
|
841
|
+
* @internal
|
|
842
|
+
*/
|
|
843
|
+
requestedGender?: V2RequestedGenderValue;
|
|
778
844
|
}
|
|
779
845
|
interface GetAvailabilityTimeSlotResponse {
|
|
780
846
|
/** Retrieved time slot. */
|
|
@@ -1279,6 +1345,15 @@ interface V2CustomerChoices {
|
|
|
1279
1345
|
* @format GUID
|
|
1280
1346
|
*/
|
|
1281
1347
|
durationChoiceId?: string | null;
|
|
1348
|
+
/**
|
|
1349
|
+
* Gender the customer narrowed an "any staff member" selection to.
|
|
1350
|
+
* Only time slots served by staff members of that gender are returned.
|
|
1351
|
+
* Omit to keep "any staff member" unnarrowed.
|
|
1352
|
+
*
|
|
1353
|
+
* Requires `genderPubliclyAccessible` to be enabled in the business's [staff member settings](https://dev.wix.com/docs/api-reference/business-solutions/bookings/staff-members/staff-member-settings/introduction). The call fails with `REQUESTED_GENDER_NOT_ALLOWED` when it's disabled.
|
|
1354
|
+
* @internal
|
|
1355
|
+
*/
|
|
1356
|
+
requestedGender?: V2RequestedGenderValue;
|
|
1282
1357
|
}
|
|
1283
1358
|
interface ListMultiServiceAvailabilityTimeSlotsResponse {
|
|
1284
1359
|
/**
|
|
@@ -1370,6 +1445,10 @@ type ListAvailabilityTimeSlotsApplicationErrors = {
|
|
|
1370
1445
|
code?: 'SERVICE_NOT_FOUND';
|
|
1371
1446
|
description?: string;
|
|
1372
1447
|
data?: Record<string, any>;
|
|
1448
|
+
} | {
|
|
1449
|
+
code?: 'REQUESTED_GENDER_NOT_ALLOWED';
|
|
1450
|
+
description?: string;
|
|
1451
|
+
data?: Record<string, any>;
|
|
1373
1452
|
};
|
|
1374
1453
|
/** @docsIgnore */
|
|
1375
1454
|
type ListAvailabilityTimeSlotEndOptionsApplicationErrors = {
|
|
@@ -1724,4 +1803,4 @@ interface GetAvailabilityTimeSlotOptions {
|
|
|
1724
1803
|
resourceTypes?: ResourceType[];
|
|
1725
1804
|
}
|
|
1726
1805
|
|
|
1727
|
-
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 };
|
|
1806
|
+
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,
|