@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.
Files changed (37) 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 +31 -1
  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 +31 -1
  8. package/build/cjs/meta.js +14 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +1 -1
  11. package/build/es/index.mjs +12 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +31 -1
  14. package/build/es/index.typings.mjs +12 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +31 -1
  17. package/build/es/meta.mjs +12 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +1 -1
  20. package/build/internal/cjs/index.js +14 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +80 -1
  23. package/build/internal/cjs/index.typings.js +14 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +80 -1
  26. package/build/internal/cjs/meta.js +14 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +1 -1
  29. package/build/internal/es/index.mjs +12 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +80 -1
  32. package/build/internal/es/index.typings.mjs +12 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +80 -1
  35. package/build/internal/es/meta.mjs +12 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. 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 };
@@ -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,