@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
@@ -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 };
@@ -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,