@wix/auto_sdk_bookings_availability-time-slots 1.0.254 → 1.0.256

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.
@@ -1079,6 +1079,178 @@ interface ResolvedContext {
1079
1079
  */
1080
1080
  timeZone?: string | null;
1081
1081
  }
1082
+ interface BulkListAvailabilityTimeSlotsRequest {
1083
+ /**
1084
+ * IDs of the appointment-based services to retrieve time slots for.
1085
+ * Non-appointment services and IDs that don't exist are returned as failed entries in `results`.
1086
+ * @format GUID
1087
+ * @minSize 1
1088
+ * @maxSize 100
1089
+ */
1090
+ serviceIds?: string[];
1091
+ /**
1092
+ * Lower boundary for `localStartDate` to include, applied to every service.
1093
+ * Each returned time slot has a `localStartDate` within the provided `fromLocalDate` and `toLocalDate` exclusive.
1094
+ *
1095
+ * Local start date in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
1096
+ * For example, `2026-01-30T13:30:00`.
1097
+ * @format LOCAL_DATE_TIME
1098
+ */
1099
+ fromLocalDate?: string | null;
1100
+ /**
1101
+ * Upper boundary for `localStartDate` to include, applied to every service.
1102
+ * Each returned time slot has a `localStartDate` within the provided `fromLocalDate` and `toLocalDate` exclusive.
1103
+ *
1104
+ * Local end date in `YYYY-MM-DDThh:mm:ss` [ISO-8601 format](https://en.wikipedia.org/wiki/ISO_8601).
1105
+ * For example, `2026-01-30T13:30:00`.
1106
+ * @format LOCAL_DATE_TIME
1107
+ */
1108
+ toLocalDate?: string | null;
1109
+ /**
1110
+ * Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) for adjusting `fromLocalDate` and `toLocalDate`.
1111
+ * For example, `America/New_York` or `UTC`.
1112
+ *
1113
+ * Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
1114
+ * @minLength 1
1115
+ * @maxLength 150
1116
+ */
1117
+ timeZone?: string | null;
1118
+ /**
1119
+ * Whether the time slot is bookable according to each service's booking policies.
1120
+ * If not specified, returns both bookable and un-bookable time slots.
1121
+ */
1122
+ bookable?: boolean | null;
1123
+ /**
1124
+ * Maximum number of slots to return per service for each day in the specified time range.
1125
+ * If `bookable` filter isn't specified, bookable slots are returned first.
1126
+ *
1127
+ * Min: `1`.
1128
+ * @min 1
1129
+ */
1130
+ timeSlotsPerDay?: number | null;
1131
+ /**
1132
+ * Maximum number of time slots to return per service.
1133
+ *
1134
+ * Min: `1`. Max: `1000`.
1135
+ *
1136
+ * Default: `1000`.
1137
+ * @min 1
1138
+ * @max 1000
1139
+ */
1140
+ limitPerService?: number | null;
1141
+ /**
1142
+ * Locations to include in response, applied to every service.
1143
+ * If not specified, returns time slots for all locations where each service is available.
1144
+ * @maxSize 5
1145
+ */
1146
+ locations?: Location[];
1147
+ /**
1148
+ * Resource type IDs to include in the response, applied to every service.
1149
+ * If specified, returns up to 10 `availableResources` with matching `resourceTypeId`.
1150
+ * This controls which resource details are included in the response but doesn't filter the time slots themselves.
1151
+ * @format GUID
1152
+ * @maxSize 100
1153
+ */
1154
+ includeResourceTypeIds?: string[];
1155
+ /**
1156
+ * Indicators for services' booking policy violations, applied to every service.
1157
+ * Allows filtering for time slots with specific violation types based on [booking policies](https://dev.wix.com/docs/api-reference/business-solutions/bookings/policies/booking-policies/introduction). When you don't specify `bookingPolicyViolations` filters, all slots are returned regardless of their booking policy status.
1158
+ */
1159
+ bookingPolicyViolations?: BookingPolicyViolations;
1160
+ /**
1161
+ * Selected customer choices for service configuration, applied to every service.
1162
+ * If not specified, uses each service's default configuration.
1163
+ *
1164
+ * Not supported for services configured with a duration range (`availabilityConstraints.durationRange`).
1165
+ *
1166
+ * When using [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction), we recommend passing only `addOnIds` and omitting `durationInMinutes`. Wix Bookings then calculates the total duration automatically. If you specify both `addOnIds` and `durationInMinutes`, `durationInMinutes` must equal the service duration plus all selected add-on durations.
1167
+ */
1168
+ customerChoices?: CustomerChoices;
1169
+ /**
1170
+ * Resource types to filter time slots, applied to every service.
1171
+ * Only returns time slots that have these specific resource types available.
1172
+ * This filters the time slots themselves, unlike `includeResourceTypeIds` which only controls response details.
1173
+ * @maxSize 3
1174
+ */
1175
+ resourceTypes?: ResourceType[];
1176
+ }
1177
+ interface BulkListAvailabilityTimeSlotsResponse {
1178
+ /**
1179
+ * Per-service results, one entry per requested `serviceId`.
1180
+ * Each entry carries `itemMetadata` with the outcome, and `serviceTimeSlots` on success.
1181
+ * Order isn't guaranteed to match the request; correlate via `itemMetadata.id` or `itemMetadata.originalIndex`.
1182
+ * @maxSize 100
1183
+ */
1184
+ results?: BulkServiceTimeSlotsResult[];
1185
+ /**
1186
+ * Time zone in [IANA tz database format](https://en.wikipedia.org/wiki/Tz_database) used for all services.
1187
+ * For example, `America/New_York` or `UTC`.
1188
+ *
1189
+ * Default: `timeZone` specified in the business [site properties](https://dev.wix.com/docs/api-reference/business-management/site-properties/properties/get-site-properties).
1190
+ * @minLength 1
1191
+ * @maxLength 150
1192
+ */
1193
+ timeZone?: string | null;
1194
+ /** Success and failure totals across all requested services. */
1195
+ bulkActionMetadata?: BulkActionMetadata;
1196
+ }
1197
+ interface BulkServiceTimeSlotsResult {
1198
+ /**
1199
+ * Outcome for a single requested service.
1200
+ * `id` echoes the `serviceId`, `originalIndex` is the service's position in the request, and
1201
+ * `success`/`error` describe whether availability could be computed.
1202
+ */
1203
+ itemMetadata?: ItemMetadata;
1204
+ /** Time slots for the service. Populated only when `itemMetadata.success` is `true`. */
1205
+ serviceTimeSlots?: ServiceTimeSlots;
1206
+ }
1207
+ interface ItemMetadata {
1208
+ /**
1209
+ * Item ID. Should always be available, unless it's impossible (for example, when failing to create an item).
1210
+ * @format GUID
1211
+ */
1212
+ id?: string | null;
1213
+ /** Index of the item within the request array. Allows for correlation between request and response items. */
1214
+ originalIndex?: number;
1215
+ /** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */
1216
+ success?: boolean;
1217
+ /** Details about the error in case of failure. */
1218
+ error?: ApplicationError;
1219
+ }
1220
+ interface ApplicationError {
1221
+ /** Error code. */
1222
+ code?: string;
1223
+ /** Description of the error. */
1224
+ description?: string;
1225
+ /** Data related to the error. */
1226
+ data?: Record<string, any> | null;
1227
+ }
1228
+ interface ServiceTimeSlots {
1229
+ /**
1230
+ * Service the time slots belong to.
1231
+ * @format GUID
1232
+ */
1233
+ serviceId?: string;
1234
+ /**
1235
+ * Retrieved time slots for the service.
1236
+ * Sorted by `localStartDate` in ascending order. When multiple slots have the same start time, no specific secondary sorting is guaranteed.
1237
+ * @maxSize 1000
1238
+ */
1239
+ timeSlots?: TimeSlot[];
1240
+ /**
1241
+ * Paging metadata for the service's remaining slots.
1242
+ * To fetch more slots for this service, pass `cursors.next` to `ListAvailabilityTimeSlots`.
1243
+ */
1244
+ cursorPagingMetadata?: CursorPagingMetadata;
1245
+ }
1246
+ interface BulkActionMetadata {
1247
+ /** Number of items that were successfully processed. */
1248
+ totalSuccesses?: number;
1249
+ /** Number of items that couldn't be processed. */
1250
+ totalFailures?: number;
1251
+ /** Number of failures without details because detailed failure threshold was exceeded. */
1252
+ undetailedFailures?: number;
1253
+ }
1082
1254
  /** @docsIgnore */
1083
1255
  type ListAvailabilityTimeSlotsApplicationErrors = {
1084
1256
  code?: 'NO_IMPLEMENTERS_FOUND';
@@ -1160,4 +1332,4 @@ declare function listAvailabilityTimeSlots(): __PublicMethodMetaInfo<'POST', {},
1160
1332
  declare function listAvailabilityTimeSlotEndOptions(): __PublicMethodMetaInfo<'POST', {}, ListAvailabilityTimeSlotEndOptionsRequest$1, ListAvailabilityTimeSlotEndOptionsRequest, ListAvailabilityTimeSlotEndOptionsResponse$1, ListAvailabilityTimeSlotEndOptionsResponse>;
1161
1333
  declare function getAvailabilityTimeSlot(): __PublicMethodMetaInfo<'POST', {}, GetAvailabilityTimeSlotRequest$1, GetAvailabilityTimeSlotRequest, GetAvailabilityTimeSlotResponse$1, GetAvailabilityTimeSlotResponse>;
1162
1334
 
1163
- export { type AvailableResources as AvailableResourcesOriginal, type BookingPolicyViolations as BookingPolicyViolationsOriginal, 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 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, SuggestedAction as SuggestedActionOriginal, type SuggestedActionWithLiterals as SuggestedActionWithLiteralsOriginal, type TimeSlot as TimeSlotOriginal, type V2CustomerChoices as V2CustomerChoicesOriginal, type WaitingList as WaitingListOriginal, type __PublicMethodMetaInfo, getAvailabilityTimeSlot, listAvailabilityTimeSlotEndOptions, listAvailabilityTimeSlots };
1335
+ 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 };