@wix/auto_sdk_bookings_availability-time-slots 1.0.261 → 1.0.263
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 +39 -9
- package/build/cjs/index.typings.js +14 -0
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +36 -6
- package/build/cjs/meta.js +14 -0
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +3 -3
- package/build/cjs/schemas.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 +39 -9
- package/build/es/index.typings.mjs +12 -0
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +36 -6
- package/build/es/meta.mjs +12 -0
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +3 -3
- package/build/es/schemas.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 +88 -9
- 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 +85 -6
- package/build/internal/cjs/meta.js +14 -0
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.js +3 -3
- package/build/internal/cjs/schemas.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 +88 -9
- 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 +85 -6
- package/build/internal/es/meta.mjs +12 -0
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.mjs +3 -3
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -573,7 +573,7 @@ interface ListAvailabilityTimeSlotsRequest {
|
|
|
573
573
|
* Resource types to filter time slots.
|
|
574
574
|
* Only returns time slots that have these specific resource types available.
|
|
575
575
|
* This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
|
|
576
|
-
* @maxSize
|
|
576
|
+
* @maxSize 8
|
|
577
577
|
*/
|
|
578
578
|
resourceTypes?: ResourceType[];
|
|
579
579
|
}
|
|
@@ -598,7 +598,41 @@ interface CustomerChoices {
|
|
|
598
598
|
* @format GUID
|
|
599
599
|
*/
|
|
600
600
|
durationChoiceId?: string | null;
|
|
601
|
+
/**
|
|
602
|
+
* Gender the customer narrowed an "any staff member" selection to.
|
|
603
|
+
* Only time slots served by staff members of that gender are returned.
|
|
604
|
+
* Omit to keep "any staff member" unnarrowed.
|
|
605
|
+
*
|
|
606
|
+
* 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.
|
|
607
|
+
* @internal
|
|
608
|
+
*/
|
|
609
|
+
requestedGender?: RequestedGenderValue;
|
|
610
|
+
}
|
|
611
|
+
/** Gender narrowing for an "any staff member" selection. */
|
|
612
|
+
interface RequestedGenderValue {
|
|
613
|
+
/** Gender the customer narrowed "any staff member" to. */
|
|
614
|
+
gender?: RequestedGenderWithLiterals;
|
|
601
615
|
}
|
|
616
|
+
/**
|
|
617
|
+
* Selectable genders. Staff members of any other gender are reachable
|
|
618
|
+
* through plain "any staff member" or by name.
|
|
619
|
+
*/
|
|
620
|
+
declare enum RequestedGender {
|
|
621
|
+
/**
|
|
622
|
+
* Any male staff member.
|
|
623
|
+
* @documentationMaturity preview
|
|
624
|
+
* @internal
|
|
625
|
+
*/
|
|
626
|
+
ANY_MALE = "ANY_MALE",
|
|
627
|
+
/**
|
|
628
|
+
* Any female staff member.
|
|
629
|
+
* @documentationMaturity preview
|
|
630
|
+
* @internal
|
|
631
|
+
*/
|
|
632
|
+
ANY_FEMALE = "ANY_FEMALE"
|
|
633
|
+
}
|
|
634
|
+
/** @enumType */
|
|
635
|
+
type RequestedGenderWithLiterals = RequestedGender;
|
|
602
636
|
interface ResourceType {
|
|
603
637
|
/**
|
|
604
638
|
* [Resource type ID](https://dev.wix.com/docs/api-reference/business-solutions/bookings/resources/resource-types-v2/introduction).
|
|
@@ -680,7 +714,7 @@ interface ListAvailabilityTimeSlotEndOptionsRequest {
|
|
|
680
714
|
* When the customer has already selected a resource before choosing an end time, pass that resource here so the response only includes end times the selected resource can cover.
|
|
681
715
|
*
|
|
682
716
|
* If no resource has been preselected, omit this field. End options then reflect the full resource pool. Select the resource later by calling [Get Availability Time Slot](https://dev.wix.com/docs/api-reference/business-solutions/bookings/time-slots/time-slots-v2/get-availability-time-slot) with the chosen `localEndDate`.
|
|
683
|
-
* @maxSize
|
|
717
|
+
* @maxSize 8
|
|
684
718
|
*/
|
|
685
719
|
resourceTypes?: ResourceType[];
|
|
686
720
|
}
|
|
@@ -759,10 +793,35 @@ interface GetAvailabilityTimeSlotRequest {
|
|
|
759
793
|
* Resource types to filter time slots.
|
|
760
794
|
* Only returns time slots that have these specific resource types available.
|
|
761
795
|
* This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
|
|
762
|
-
* @maxSize
|
|
796
|
+
* @maxSize 8
|
|
763
797
|
*/
|
|
764
798
|
resourceTypes?: ResourceType[];
|
|
765
799
|
}
|
|
800
|
+
/** Gender narrowing for an "any staff member" selection. */
|
|
801
|
+
interface V2RequestedGenderValue {
|
|
802
|
+
/** Gender the customer narrowed "any staff member" to. */
|
|
803
|
+
gender?: RequestedGenderValueRequestedGenderWithLiterals;
|
|
804
|
+
}
|
|
805
|
+
/**
|
|
806
|
+
* Selectable genders. Staff members of any other gender are reachable
|
|
807
|
+
* through plain "any staff member" or by name.
|
|
808
|
+
*/
|
|
809
|
+
declare enum RequestedGenderValueRequestedGender {
|
|
810
|
+
/**
|
|
811
|
+
* Any male staff member.
|
|
812
|
+
* @documentationMaturity preview
|
|
813
|
+
* @internal
|
|
814
|
+
*/
|
|
815
|
+
ANY_MALE = "ANY_MALE",
|
|
816
|
+
/**
|
|
817
|
+
* Any female staff member.
|
|
818
|
+
* @documentationMaturity preview
|
|
819
|
+
* @internal
|
|
820
|
+
*/
|
|
821
|
+
ANY_FEMALE = "ANY_FEMALE"
|
|
822
|
+
}
|
|
823
|
+
/** @enumType */
|
|
824
|
+
type RequestedGenderValueRequestedGenderWithLiterals = RequestedGenderValueRequestedGender;
|
|
766
825
|
interface GetAvailabilityTimeSlotRequestCustomerChoices {
|
|
767
826
|
/**
|
|
768
827
|
* Selected add-on IDs.
|
|
@@ -776,6 +835,13 @@ interface GetAvailabilityTimeSlotRequestCustomerChoices {
|
|
|
776
835
|
* @format GUID
|
|
777
836
|
*/
|
|
778
837
|
durationChoiceId?: string | null;
|
|
838
|
+
/**
|
|
839
|
+
* Gender the customer narrowed an "any staff member" selection to.
|
|
840
|
+
* Only time slots served by staff members of that gender are returned.
|
|
841
|
+
* Omit to keep "any staff member" unnarrowed.
|
|
842
|
+
* @internal
|
|
843
|
+
*/
|
|
844
|
+
requestedGender?: V2RequestedGenderValue;
|
|
779
845
|
}
|
|
780
846
|
interface GetAvailabilityTimeSlotResponse {
|
|
781
847
|
/** Retrieved time slot. */
|
|
@@ -1052,7 +1118,7 @@ interface BulkListAvailabilityTimeSlotsRequest {
|
|
|
1052
1118
|
* Resource types to filter time slots, applied to every service.
|
|
1053
1119
|
* Only returns time slots that have these specific resource types available.
|
|
1054
1120
|
* This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
|
|
1055
|
-
* @maxSize
|
|
1121
|
+
* @maxSize 8
|
|
1056
1122
|
*/
|
|
1057
1123
|
resourceTypes?: ResourceType[];
|
|
1058
1124
|
}
|
|
@@ -1245,7 +1311,7 @@ interface Service {
|
|
|
1245
1311
|
* Resource types to filter time slots.
|
|
1246
1312
|
* Only returns time slots that have these specific resource types available.
|
|
1247
1313
|
* This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
|
|
1248
|
-
* @maxSize
|
|
1314
|
+
* @maxSize 8
|
|
1249
1315
|
*/
|
|
1250
1316
|
resourceTypes?: ResourceType[];
|
|
1251
1317
|
}
|
|
@@ -1280,6 +1346,15 @@ interface V2CustomerChoices {
|
|
|
1280
1346
|
* @format GUID
|
|
1281
1347
|
*/
|
|
1282
1348
|
durationChoiceId?: string | null;
|
|
1349
|
+
/**
|
|
1350
|
+
* Gender the customer narrowed an "any staff member" selection to.
|
|
1351
|
+
* Only time slots served by staff members of that gender are returned.
|
|
1352
|
+
* Omit to keep "any staff member" unnarrowed.
|
|
1353
|
+
*
|
|
1354
|
+
* 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.
|
|
1355
|
+
* @internal
|
|
1356
|
+
*/
|
|
1357
|
+
requestedGender?: V2RequestedGenderValue;
|
|
1283
1358
|
}
|
|
1284
1359
|
interface ListMultiServiceAvailabilityTimeSlotsResponse {
|
|
1285
1360
|
/**
|
|
@@ -1371,6 +1446,10 @@ type ListAvailabilityTimeSlotsApplicationErrors = {
|
|
|
1371
1446
|
code?: 'SERVICE_NOT_FOUND';
|
|
1372
1447
|
description?: string;
|
|
1373
1448
|
data?: Record<string, any>;
|
|
1449
|
+
} | {
|
|
1450
|
+
code?: 'REQUESTED_GENDER_NOT_ALLOWED';
|
|
1451
|
+
description?: string;
|
|
1452
|
+
data?: Record<string, any>;
|
|
1374
1453
|
};
|
|
1375
1454
|
/** @docsIgnore */
|
|
1376
1455
|
type ListAvailabilityTimeSlotEndOptionsApplicationErrors = {
|
|
@@ -1431,4 +1510,4 @@ declare function listAvailabilityTimeSlots(): __PublicMethodMetaInfo<'POST', {},
|
|
|
1431
1510
|
declare function listAvailabilityTimeSlotEndOptions(): __PublicMethodMetaInfo<'POST', {}, ListAvailabilityTimeSlotEndOptionsRequest$1, ListAvailabilityTimeSlotEndOptionsRequest, ListAvailabilityTimeSlotEndOptionsResponse$1, ListAvailabilityTimeSlotEndOptionsResponse>;
|
|
1432
1511
|
declare function getAvailabilityTimeSlot(): __PublicMethodMetaInfo<'POST', {}, GetAvailabilityTimeSlotRequest$1, GetAvailabilityTimeSlotRequest, GetAvailabilityTimeSlotResponse$1, GetAvailabilityTimeSlotResponse>;
|
|
1433
1512
|
|
|
1434
|
-
export { type ApplicationError as ApplicationErrorOriginal, type AvailableResources as AvailableResourcesOriginal, type BookingPolicyViolations as BookingPolicyViolationsOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkListAvailabilityTimeSlotsRequest as BulkListAvailabilityTimeSlotsRequestOriginal, type BulkListAvailabilityTimeSlotsResponse as BulkListAvailabilityTimeSlotsResponseOriginal, type BulkServiceTimeSlotsResult as BulkServiceTimeSlotsResultOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type CustomerChoices as CustomerChoicesOriginal, type DiagnoseAvailabilityRequest as DiagnoseAvailabilityRequestOriginal, type DiagnoseAvailabilityResponse as DiagnoseAvailabilityResponseOriginal, type DiagnosisReason as DiagnosisReasonOriginal, type EventInfo as EventInfoOriginal, type GetAvailabilityTimeSlotApplicationErrors as GetAvailabilityTimeSlotApplicationErrorsOriginal, type GetAvailabilityTimeSlotRequestCustomerChoices as GetAvailabilityTimeSlotRequestCustomerChoicesOriginal, type GetAvailabilityTimeSlotRequest as GetAvailabilityTimeSlotRequestOriginal, type GetAvailabilityTimeSlotResponse as GetAvailabilityTimeSlotResponseOriginal, type GetEventTimeSlotRequest as GetEventTimeSlotRequestOriginal, type GetEventTimeSlotResponse as GetEventTimeSlotResponseOriginal, type GetMultiServiceAvailabilityTimeSlotRequest as GetMultiServiceAvailabilityTimeSlotRequestOriginal, type GetMultiServiceAvailabilityTimeSlotResponse as GetMultiServiceAvailabilityTimeSlotResponseOriginal, type ItemMetadata as ItemMetadataOriginal, type ListAvailabilityTimeSlotEndOptionsApplicationErrors as ListAvailabilityTimeSlotEndOptionsApplicationErrorsOriginal, type ListAvailabilityTimeSlotEndOptionsRequest as ListAvailabilityTimeSlotEndOptionsRequestOriginal, type ListAvailabilityTimeSlotEndOptionsResponse as ListAvailabilityTimeSlotEndOptionsResponseOriginal, type ListAvailabilityTimeSlotsApplicationErrors as ListAvailabilityTimeSlotsApplicationErrorsOriginal, type ListAvailabilityTimeSlotsRequest as ListAvailabilityTimeSlotsRequestOriginal, type ListAvailabilityTimeSlotsResponse as ListAvailabilityTimeSlotsResponseOriginal, type ListEventTimeSlotsRequest as ListEventTimeSlotsRequestOriginal, type ListEventTimeSlotsResponse as ListEventTimeSlotsResponseOriginal, type ListMultiServiceAvailabilityTimeSlotsRequest as ListMultiServiceAvailabilityTimeSlotsRequestOriginal, type ListMultiServiceAvailabilityTimeSlotsResponse as ListMultiServiceAvailabilityTimeSlotsResponseOriginal, type Location as LocationOriginal, LocationType as LocationTypeOriginal, type LocationTypeWithLiterals as LocationTypeWithLiteralsOriginal, type NestedTimeSlot as NestedTimeSlotOriginal, type NonBookableReasons as NonBookableReasonsOriginal, ReasonCode as ReasonCodeOriginal, type ReasonCodeWithLiterals as ReasonCodeWithLiteralsOriginal, type ResolvedContext as ResolvedContextOriginal, type Resource as ResourceOriginal, type ResourceType as ResourceTypeOriginal, type Service as ServiceOriginal, type ServiceTimeSlots as ServiceTimeSlotsOriginal, SuggestedAction as SuggestedActionOriginal, type SuggestedActionWithLiterals as SuggestedActionWithLiteralsOriginal, type TimeSlot as TimeSlotOriginal, type V2CustomerChoices as V2CustomerChoicesOriginal, type WaitingList as WaitingListOriginal, type __PublicMethodMetaInfo, getAvailabilityTimeSlot, listAvailabilityTimeSlotEndOptions, listAvailabilityTimeSlots };
|
|
1513
|
+
export { type ApplicationError as ApplicationErrorOriginal, type AvailableResources as AvailableResourcesOriginal, type BookingPolicyViolations as BookingPolicyViolationsOriginal, type BulkActionMetadata as BulkActionMetadataOriginal, type BulkListAvailabilityTimeSlotsRequest as BulkListAvailabilityTimeSlotsRequestOriginal, type BulkListAvailabilityTimeSlotsResponse as BulkListAvailabilityTimeSlotsResponseOriginal, type BulkServiceTimeSlotsResult as BulkServiceTimeSlotsResultOriginal, type CursorPagingMetadata as CursorPagingMetadataOriginal, type CursorPaging as CursorPagingOriginal, type Cursors as CursorsOriginal, type CustomerChoices as CustomerChoicesOriginal, type DiagnoseAvailabilityRequest as DiagnoseAvailabilityRequestOriginal, type DiagnoseAvailabilityResponse as DiagnoseAvailabilityResponseOriginal, type DiagnosisReason as DiagnosisReasonOriginal, type EventInfo as EventInfoOriginal, type GetAvailabilityTimeSlotApplicationErrors as GetAvailabilityTimeSlotApplicationErrorsOriginal, type GetAvailabilityTimeSlotRequestCustomerChoices as GetAvailabilityTimeSlotRequestCustomerChoicesOriginal, type GetAvailabilityTimeSlotRequest as GetAvailabilityTimeSlotRequestOriginal, type GetAvailabilityTimeSlotResponse as GetAvailabilityTimeSlotResponseOriginal, type GetEventTimeSlotRequest as GetEventTimeSlotRequestOriginal, type GetEventTimeSlotResponse as GetEventTimeSlotResponseOriginal, type GetMultiServiceAvailabilityTimeSlotRequest as GetMultiServiceAvailabilityTimeSlotRequestOriginal, type GetMultiServiceAvailabilityTimeSlotResponse as GetMultiServiceAvailabilityTimeSlotResponseOriginal, type ItemMetadata as ItemMetadataOriginal, type ListAvailabilityTimeSlotEndOptionsApplicationErrors as ListAvailabilityTimeSlotEndOptionsApplicationErrorsOriginal, type ListAvailabilityTimeSlotEndOptionsRequest as ListAvailabilityTimeSlotEndOptionsRequestOriginal, type ListAvailabilityTimeSlotEndOptionsResponse as ListAvailabilityTimeSlotEndOptionsResponseOriginal, type ListAvailabilityTimeSlotsApplicationErrors as ListAvailabilityTimeSlotsApplicationErrorsOriginal, type ListAvailabilityTimeSlotsRequest as ListAvailabilityTimeSlotsRequestOriginal, type ListAvailabilityTimeSlotsResponse as ListAvailabilityTimeSlotsResponseOriginal, type ListEventTimeSlotsRequest as ListEventTimeSlotsRequestOriginal, type ListEventTimeSlotsResponse as ListEventTimeSlotsResponseOriginal, type ListMultiServiceAvailabilityTimeSlotsRequest as ListMultiServiceAvailabilityTimeSlotsRequestOriginal, type ListMultiServiceAvailabilityTimeSlotsResponse as ListMultiServiceAvailabilityTimeSlotsResponseOriginal, type Location as LocationOriginal, LocationType as LocationTypeOriginal, type LocationTypeWithLiterals as LocationTypeWithLiteralsOriginal, type NestedTimeSlot as NestedTimeSlotOriginal, type NonBookableReasons as NonBookableReasonsOriginal, ReasonCode as ReasonCodeOriginal, type ReasonCodeWithLiterals as ReasonCodeWithLiteralsOriginal, RequestedGender as RequestedGenderOriginal, type RequestedGenderValue as RequestedGenderValueOriginal, RequestedGenderValueRequestedGender as RequestedGenderValueRequestedGenderOriginal, type RequestedGenderValueRequestedGenderWithLiterals as RequestedGenderValueRequestedGenderWithLiteralsOriginal, type RequestedGenderWithLiterals as RequestedGenderWithLiteralsOriginal, type ResolvedContext as ResolvedContextOriginal, type Resource as ResourceOriginal, type ResourceType as ResourceTypeOriginal, type Service as ServiceOriginal, type ServiceTimeSlots as ServiceTimeSlotsOriginal, SuggestedAction as SuggestedActionOriginal, type SuggestedActionWithLiterals as SuggestedActionWithLiteralsOriginal, type TimeSlot as TimeSlotOriginal, type V2CustomerChoices as V2CustomerChoicesOriginal, type V2RequestedGenderValue as V2RequestedGenderValueOriginal, type WaitingList as WaitingListOriginal, type __PublicMethodMetaInfo, getAvailabilityTimeSlot, listAvailabilityTimeSlotEndOptions, listAvailabilityTimeSlots };
|
|
@@ -238,6 +238,16 @@ var LocationType = /* @__PURE__ */ ((LocationType2) => {
|
|
|
238
238
|
LocationType2["CUSTOMER"] = "CUSTOMER";
|
|
239
239
|
return LocationType2;
|
|
240
240
|
})(LocationType || {});
|
|
241
|
+
var RequestedGender = /* @__PURE__ */ ((RequestedGender2) => {
|
|
242
|
+
RequestedGender2["ANY_MALE"] = "ANY_MALE";
|
|
243
|
+
RequestedGender2["ANY_FEMALE"] = "ANY_FEMALE";
|
|
244
|
+
return RequestedGender2;
|
|
245
|
+
})(RequestedGender || {});
|
|
246
|
+
var RequestedGenderValueRequestedGender = /* @__PURE__ */ ((RequestedGenderValueRequestedGender2) => {
|
|
247
|
+
RequestedGenderValueRequestedGender2["ANY_MALE"] = "ANY_MALE";
|
|
248
|
+
RequestedGenderValueRequestedGender2["ANY_FEMALE"] = "ANY_FEMALE";
|
|
249
|
+
return RequestedGenderValueRequestedGender2;
|
|
250
|
+
})(RequestedGenderValueRequestedGender || {});
|
|
241
251
|
var ReasonCode = /* @__PURE__ */ ((ReasonCode2) => {
|
|
242
252
|
ReasonCode2["NO_ASSIGNED_STAFF_OR_RESOURCES"] = "NO_ASSIGNED_STAFF_OR_RESOURCES";
|
|
243
253
|
ReasonCode2["SERVICE_AVAILABILITY_CONFIGURATION_MISSING"] = "SERVICE_AVAILABILITY_CONFIGURATION_MISSING";
|
|
@@ -330,6 +340,8 @@ function getAvailabilityTimeSlot2() {
|
|
|
330
340
|
export {
|
|
331
341
|
LocationType as LocationTypeOriginal,
|
|
332
342
|
ReasonCode as ReasonCodeOriginal,
|
|
343
|
+
RequestedGender as RequestedGenderOriginal,
|
|
344
|
+
RequestedGenderValueRequestedGender as RequestedGenderValueRequestedGenderOriginal,
|
|
333
345
|
SuggestedAction as SuggestedActionOriginal,
|
|
334
346
|
getAvailabilityTimeSlot2 as getAvailabilityTimeSlot,
|
|
335
347
|
listAvailabilityTimeSlotEndOptions2 as listAvailabilityTimeSlotEndOptions,
|