@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.
Files changed (45) hide show
  1. package/build/cjs/index.d.ts +1 -1
  2. package/build/cjs/index.js +14 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +39 -9
  5. package/build/cjs/index.typings.js +14 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +36 -6
  8. package/build/cjs/meta.js +14 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.js +3 -3
  11. package/build/cjs/schemas.js.map +1 -1
  12. package/build/es/index.d.mts +1 -1
  13. package/build/es/index.mjs +12 -0
  14. package/build/es/index.mjs.map +1 -1
  15. package/build/es/index.typings.d.mts +39 -9
  16. package/build/es/index.typings.mjs +12 -0
  17. package/build/es/index.typings.mjs.map +1 -1
  18. package/build/es/meta.d.mts +36 -6
  19. package/build/es/meta.mjs +12 -0
  20. package/build/es/meta.mjs.map +1 -1
  21. package/build/es/schemas.mjs +3 -3
  22. package/build/es/schemas.mjs.map +1 -1
  23. package/build/internal/cjs/index.d.ts +1 -1
  24. package/build/internal/cjs/index.js +14 -0
  25. package/build/internal/cjs/index.js.map +1 -1
  26. package/build/internal/cjs/index.typings.d.ts +88 -9
  27. package/build/internal/cjs/index.typings.js +14 -0
  28. package/build/internal/cjs/index.typings.js.map +1 -1
  29. package/build/internal/cjs/meta.d.ts +85 -6
  30. package/build/internal/cjs/meta.js +14 -0
  31. package/build/internal/cjs/meta.js.map +1 -1
  32. package/build/internal/cjs/schemas.js +3 -3
  33. package/build/internal/cjs/schemas.js.map +1 -1
  34. package/build/internal/es/index.d.mts +1 -1
  35. package/build/internal/es/index.mjs +12 -0
  36. package/build/internal/es/index.mjs.map +1 -1
  37. package/build/internal/es/index.typings.d.mts +88 -9
  38. package/build/internal/es/index.typings.mjs +12 -0
  39. package/build/internal/es/index.typings.mjs.map +1 -1
  40. package/build/internal/es/meta.d.mts +85 -6
  41. package/build/internal/es/meta.mjs +12 -0
  42. package/build/internal/es/meta.mjs.map +1 -1
  43. package/build/internal/es/schemas.mjs +3 -3
  44. package/build/internal/es/schemas.mjs.map +1 -1
  45. package/package.json +2 -2
@@ -572,7 +572,7 @@ interface ListAvailabilityTimeSlotsRequest {
572
572
  * Resource types to filter time slots.
573
573
  * Only returns time slots that have these specific resource types available.
574
574
  * This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
575
- * @maxSize 3
575
+ * @maxSize 8
576
576
  */
577
577
  resourceTypes?: ResourceType[];
578
578
  }
@@ -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).
@@ -679,7 +713,7 @@ interface ListAvailabilityTimeSlotEndOptionsRequest {
679
713
  * 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.
680
714
  *
681
715
  * 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`.
682
- * @maxSize 3
716
+ * @maxSize 8
683
717
  */
684
718
  resourceTypes?: ResourceType[];
685
719
  }
@@ -758,10 +792,35 @@ interface GetAvailabilityTimeSlotRequest {
758
792
  * Resource types to filter time slots.
759
793
  * Only returns time slots that have these specific resource types available.
760
794
  * This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
761
- * @maxSize 3
795
+ * @maxSize 8
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. */
@@ -1051,7 +1117,7 @@ interface BulkListAvailabilityTimeSlotsRequest {
1051
1117
  * Resource types to filter time slots, applied to every service.
1052
1118
  * Only returns time slots that have these specific resource types available.
1053
1119
  * This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
1054
- * @maxSize 3
1120
+ * @maxSize 8
1055
1121
  */
1056
1122
  resourceTypes?: ResourceType[];
1057
1123
  }
@@ -1244,7 +1310,7 @@ interface Service {
1244
1310
  * Resource types to filter time slots.
1245
1311
  * Only returns time slots that have these specific resource types available.
1246
1312
  * This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
1247
- * @maxSize 3
1313
+ * @maxSize 8
1248
1314
  */
1249
1315
  resourceTypes?: ResourceType[];
1250
1316
  }
@@ -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 = {
@@ -1573,7 +1652,7 @@ interface ListAvailabilityTimeSlotsOptions {
1573
1652
  * Resource types to filter time slots.
1574
1653
  * Only returns time slots that have these specific resource types available.
1575
1654
  * This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
1576
- * @maxSize 3
1655
+ * @maxSize 8
1577
1656
  */
1578
1657
  resourceTypes?: ResourceType[];
1579
1658
  }
@@ -1642,7 +1721,7 @@ interface ListAvailabilityTimeSlotEndOptions {
1642
1721
  * 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.
1643
1722
  *
1644
1723
  * 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`.
1645
- * @maxSize 3
1724
+ * @maxSize 8
1646
1725
  */
1647
1726
  resourceTypes?: ResourceType[];
1648
1727
  }
@@ -1719,9 +1798,9 @@ interface GetAvailabilityTimeSlotOptions {
1719
1798
  * Resource types to filter time slots.
1720
1799
  * Only returns time slots that have these specific resource types available.
1721
1800
  * This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
1722
- * @maxSize 3
1801
+ * @maxSize 8
1723
1802
  */
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 };
@@ -245,6 +245,16 @@ var LocationType = /* @__PURE__ */ ((LocationType2) => {
245
245
  LocationType2["CUSTOMER"] = "CUSTOMER";
246
246
  return LocationType2;
247
247
  })(LocationType || {});
248
+ var RequestedGender = /* @__PURE__ */ ((RequestedGender2) => {
249
+ RequestedGender2["ANY_MALE"] = "ANY_MALE";
250
+ RequestedGender2["ANY_FEMALE"] = "ANY_FEMALE";
251
+ return RequestedGender2;
252
+ })(RequestedGender || {});
253
+ var RequestedGenderValueRequestedGender = /* @__PURE__ */ ((RequestedGenderValueRequestedGender2) => {
254
+ RequestedGenderValueRequestedGender2["ANY_MALE"] = "ANY_MALE";
255
+ RequestedGenderValueRequestedGender2["ANY_FEMALE"] = "ANY_FEMALE";
256
+ return RequestedGenderValueRequestedGender2;
257
+ })(RequestedGenderValueRequestedGender || {});
248
258
  var ReasonCode = /* @__PURE__ */ ((ReasonCode2) => {
249
259
  ReasonCode2["NO_ASSIGNED_STAFF_OR_RESOURCES"] = "NO_ASSIGNED_STAFF_OR_RESOURCES";
250
260
  ReasonCode2["SERVICE_AVAILABILITY_CONFIGURATION_MISSING"] = "SERVICE_AVAILABILITY_CONFIGURATION_MISSING";
@@ -413,6 +423,8 @@ async function getAvailabilityTimeSlot2(serviceId, localStartDate, localEndDate,
413
423
  export {
414
424
  LocationType,
415
425
  ReasonCode,
426
+ RequestedGender,
427
+ RequestedGenderValueRequestedGender,
416
428
  SuggestedAction,
417
429
  getAvailabilityTimeSlot2 as getAvailabilityTimeSlot,
418
430
  listAvailabilityTimeSlotEndOptions2 as listAvailabilityTimeSlotEndOptions,