@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
@@ -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 3
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 3
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 3
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 3
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 3
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 };
@@ -22,6 +22,8 @@ var meta_exports = {};
22
22
  __export(meta_exports, {
23
23
  LocationTypeOriginal: () => LocationType,
24
24
  ReasonCodeOriginal: () => ReasonCode,
25
+ RequestedGenderOriginal: () => RequestedGender,
26
+ RequestedGenderValueRequestedGenderOriginal: () => RequestedGenderValueRequestedGender,
25
27
  SuggestedActionOriginal: () => SuggestedAction,
26
28
  getAvailabilityTimeSlot: () => getAvailabilityTimeSlot2,
27
29
  listAvailabilityTimeSlotEndOptions: () => listAvailabilityTimeSlotEndOptions2,
@@ -269,6 +271,16 @@ var LocationType = /* @__PURE__ */ ((LocationType2) => {
269
271
  LocationType2["CUSTOMER"] = "CUSTOMER";
270
272
  return LocationType2;
271
273
  })(LocationType || {});
274
+ var RequestedGender = /* @__PURE__ */ ((RequestedGender2) => {
275
+ RequestedGender2["ANY_MALE"] = "ANY_MALE";
276
+ RequestedGender2["ANY_FEMALE"] = "ANY_FEMALE";
277
+ return RequestedGender2;
278
+ })(RequestedGender || {});
279
+ var RequestedGenderValueRequestedGender = /* @__PURE__ */ ((RequestedGenderValueRequestedGender2) => {
280
+ RequestedGenderValueRequestedGender2["ANY_MALE"] = "ANY_MALE";
281
+ RequestedGenderValueRequestedGender2["ANY_FEMALE"] = "ANY_FEMALE";
282
+ return RequestedGenderValueRequestedGender2;
283
+ })(RequestedGenderValueRequestedGender || {});
272
284
  var ReasonCode = /* @__PURE__ */ ((ReasonCode2) => {
273
285
  ReasonCode2["NO_ASSIGNED_STAFF_OR_RESOURCES"] = "NO_ASSIGNED_STAFF_OR_RESOURCES";
274
286
  ReasonCode2["SERVICE_AVAILABILITY_CONFIGURATION_MISSING"] = "SERVICE_AVAILABILITY_CONFIGURATION_MISSING";
@@ -362,6 +374,8 @@ function getAvailabilityTimeSlot2() {
362
374
  0 && (module.exports = {
363
375
  LocationTypeOriginal,
364
376
  ReasonCodeOriginal,
377
+ RequestedGenderOriginal,
378
+ RequestedGenderValueRequestedGenderOriginal,
365
379
  SuggestedActionOriginal,
366
380
  getAvailabilityTimeSlot,
367
381
  listAvailabilityTimeSlotEndOptions,