@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
|
@@ -528,7 +528,7 @@ interface ListAvailabilityTimeSlotsRequest {
|
|
|
528
528
|
* Resource types to filter time slots.
|
|
529
529
|
* Only returns time slots that have these specific resource types available.
|
|
530
530
|
* This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
|
|
531
|
-
* @maxSize
|
|
531
|
+
* @maxSize 8
|
|
532
532
|
*/
|
|
533
533
|
resourceTypes?: ResourceType[];
|
|
534
534
|
}
|
|
@@ -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).
|
|
@@ -625,7 +638,7 @@ interface ListAvailabilityTimeSlotEndOptionsRequest {
|
|
|
625
638
|
* 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.
|
|
626
639
|
*
|
|
627
640
|
* 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`.
|
|
628
|
-
* @maxSize
|
|
641
|
+
* @maxSize 8
|
|
629
642
|
*/
|
|
630
643
|
resourceTypes?: ResourceType[];
|
|
631
644
|
}
|
|
@@ -685,10 +698,23 @@ interface GetAvailabilityTimeSlotRequest {
|
|
|
685
698
|
* Resource types to filter time slots.
|
|
686
699
|
* Only returns time slots that have these specific resource types available.
|
|
687
700
|
* This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
|
|
688
|
-
* @maxSize
|
|
701
|
+
* @maxSize 8
|
|
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.
|
|
@@ -966,7 +992,7 @@ interface BulkListAvailabilityTimeSlotsRequest {
|
|
|
966
992
|
* Resource types to filter time slots, applied to every service.
|
|
967
993
|
* Only returns time slots that have these specific resource types available.
|
|
968
994
|
* This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
|
|
969
|
-
* @maxSize
|
|
995
|
+
* @maxSize 8
|
|
970
996
|
*/
|
|
971
997
|
resourceTypes?: ResourceType[];
|
|
972
998
|
}
|
|
@@ -1147,7 +1173,7 @@ interface Service {
|
|
|
1147
1173
|
* Resource types to filter time slots.
|
|
1148
1174
|
* Only returns time slots that have these specific resource types available.
|
|
1149
1175
|
* This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
|
|
1150
|
-
* @maxSize
|
|
1176
|
+
* @maxSize 8
|
|
1151
1177
|
*/
|
|
1152
1178
|
resourceTypes?: ResourceType[];
|
|
1153
1179
|
}
|
|
@@ -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 = {
|
|
@@ -1476,7 +1506,7 @@ interface ListAvailabilityTimeSlotsOptions {
|
|
|
1476
1506
|
* Resource types to filter time slots.
|
|
1477
1507
|
* Only returns time slots that have these specific resource types available.
|
|
1478
1508
|
* This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
|
|
1479
|
-
* @maxSize
|
|
1509
|
+
* @maxSize 8
|
|
1480
1510
|
*/
|
|
1481
1511
|
resourceTypes?: ResourceType[];
|
|
1482
1512
|
}
|
|
@@ -1545,7 +1575,7 @@ interface ListAvailabilityTimeSlotEndOptions {
|
|
|
1545
1575
|
* 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.
|
|
1546
1576
|
*
|
|
1547
1577
|
* 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`.
|
|
1548
|
-
* @maxSize
|
|
1578
|
+
* @maxSize 8
|
|
1549
1579
|
*/
|
|
1550
1580
|
resourceTypes?: ResourceType[];
|
|
1551
1581
|
}
|
|
@@ -1622,9 +1652,9 @@ interface GetAvailabilityTimeSlotOptions {
|
|
|
1622
1652
|
* Resource types to filter time slots.
|
|
1623
1653
|
* Only returns time slots that have these specific resource types available.
|
|
1624
1654
|
* This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
|
|
1625
|
-
* @maxSize
|
|
1655
|
+
* @maxSize 8
|
|
1626
1656
|
*/
|
|
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 };
|
|
@@ -22,6 +22,8 @@ var index_typings_exports = {};
|
|
|
22
22
|
__export(index_typings_exports, {
|
|
23
23
|
LocationType: () => LocationType,
|
|
24
24
|
ReasonCode: () => ReasonCode,
|
|
25
|
+
RequestedGender: () => RequestedGender,
|
|
26
|
+
RequestedGenderValueRequestedGender: () => RequestedGenderValueRequestedGender,
|
|
25
27
|
SuggestedAction: () => SuggestedAction,
|
|
26
28
|
getAvailabilityTimeSlot: () => getAvailabilityTimeSlot2,
|
|
27
29
|
listAvailabilityTimeSlotEndOptions: () => listAvailabilityTimeSlotEndOptions2,
|
|
@@ -273,6 +275,16 @@ var LocationType = /* @__PURE__ */ ((LocationType2) => {
|
|
|
273
275
|
LocationType2["CUSTOMER"] = "CUSTOMER";
|
|
274
276
|
return LocationType2;
|
|
275
277
|
})(LocationType || {});
|
|
278
|
+
var RequestedGender = /* @__PURE__ */ ((RequestedGender2) => {
|
|
279
|
+
RequestedGender2["ANY_MALE"] = "ANY_MALE";
|
|
280
|
+
RequestedGender2["ANY_FEMALE"] = "ANY_FEMALE";
|
|
281
|
+
return RequestedGender2;
|
|
282
|
+
})(RequestedGender || {});
|
|
283
|
+
var RequestedGenderValueRequestedGender = /* @__PURE__ */ ((RequestedGenderValueRequestedGender2) => {
|
|
284
|
+
RequestedGenderValueRequestedGender2["ANY_MALE"] = "ANY_MALE";
|
|
285
|
+
RequestedGenderValueRequestedGender2["ANY_FEMALE"] = "ANY_FEMALE";
|
|
286
|
+
return RequestedGenderValueRequestedGender2;
|
|
287
|
+
})(RequestedGenderValueRequestedGender || {});
|
|
276
288
|
var ReasonCode = /* @__PURE__ */ ((ReasonCode2) => {
|
|
277
289
|
ReasonCode2["NO_ASSIGNED_STAFF_OR_RESOURCES"] = "NO_ASSIGNED_STAFF_OR_RESOURCES";
|
|
278
290
|
ReasonCode2["SERVICE_AVAILABILITY_CONFIGURATION_MISSING"] = "SERVICE_AVAILABILITY_CONFIGURATION_MISSING";
|
|
@@ -442,6 +454,8 @@ async function getAvailabilityTimeSlot2(serviceId, localStartDate, localEndDate,
|
|
|
442
454
|
0 && (module.exports = {
|
|
443
455
|
LocationType,
|
|
444
456
|
ReasonCode,
|
|
457
|
+
RequestedGender,
|
|
458
|
+
RequestedGenderValueRequestedGender,
|
|
445
459
|
SuggestedAction,
|
|
446
460
|
getAvailabilityTimeSlot,
|
|
447
461
|
listAvailabilityTimeSlotEndOptions,
|