@wix/auto_sdk_bookings_multi-service-availability-time-slots 1.0.268 → 1.0.270

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.
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, MaybeContext, BuildRESTFunction } from '@wix/sdk-types';
2
2
  import { ListMultiServiceAvailabilityTimeSlotsOptions, ListMultiServiceAvailabilityTimeSlotsResponse, ListMultiServiceAvailabilityTimeSlotsApplicationErrors, Service, Location, GetMultiServiceAvailabilityTimeSlotResponse, GetMultiServiceAvailabilityTimeSlotApplicationErrors } from './index.typings.js';
3
- export { ApplicationError, AvailableResources, BookingPolicyViolations, BulkActionMetadata, BulkListAvailabilityTimeSlotsRequest, BulkListAvailabilityTimeSlotsResponse, BulkServiceTimeSlotsResult, CursorPaging, CursorPagingMetadata, Cursors, CustomerChoices, DiagnoseAvailabilityRequest, DiagnoseAvailabilityResponse, DiagnosisReason, EventInfo, GetAvailabilityTimeSlotRequest, GetAvailabilityTimeSlotRequestCustomerChoices, GetAvailabilityTimeSlotResponse, GetEventTimeSlotRequest, GetEventTimeSlotResponse, GetMultiServiceAvailabilityTimeSlotRequest, ItemMetadata, ListAvailabilityTimeSlotEndOptionsRequest, ListAvailabilityTimeSlotEndOptionsResponse, ListAvailabilityTimeSlotsRequest, ListAvailabilityTimeSlotsResponse, ListEventTimeSlotsRequest, ListEventTimeSlotsResponse, ListMultiServiceAvailabilityTimeSlotsRequest, LocationType, LocationTypeWithLiterals, NestedTimeSlot, NonBookableReasons, ReasonCode, ReasonCodeWithLiterals, RequestedGender, RequestedGenderValue, RequestedGenderValueRequestedGender, RequestedGenderValueRequestedGenderWithLiterals, RequestedGenderWithLiterals, ResolvedContext, Resource, ResourceType, ServiceTimeSlots, SuggestedAction, SuggestedActionWithLiterals, TimeSlot, V2CustomerChoices, V2RequestedGenderValue, WaitingList } from './index.typings.js';
3
+ export { ApplicationError, AvailableResources, BookingPolicyViolations, BulkActionMetadata, BulkListAvailabilityTimeSlotsRequest, BulkListAvailabilityTimeSlotsResponse, BulkServiceTimeSlotsResult, CursorPaging, CursorPagingMetadata, Cursors, CustomerChoices, DiagnoseAvailabilityRequest, DiagnoseAvailabilityResponse, DiagnosisReason, EventInfo, GetAvailabilityTimeSlotRequest, GetAvailabilityTimeSlotRequestCustomerChoices, GetAvailabilityTimeSlotResponse, GetEventTimeSlotRequest, GetEventTimeSlotResponse, GetMultiServiceAvailabilityTimeSlotRequest, ItemMetadata, ListAvailabilityTimeSlotEndOptionsRequest, ListAvailabilityTimeSlotEndOptionsResponse, ListAvailabilityTimeSlotsRequest, ListAvailabilityTimeSlotsResponse, ListEventTimeSlotsRequest, ListEventTimeSlotsResponse, ListMultiServiceAvailabilityTimeSlotsRequest, LocationType, LocationTypeWithLiterals, NestedTimeSlot, NonBookableReasons, ReasonCode, ReasonCodeWithLiterals, RequestedGender, RequestedGenderValue, RequestedGenderValueRequestedGender, RequestedGenderValueRequestedGenderWithLiterals, RequestedGenderWithLiterals, ResolvedContext, Resource, ResourceType, ScheduleInfo, ServiceTimeSlots, SuggestedAction, SuggestedActionWithLiterals, TimeSlot, V2CustomerChoices, V2RequestedGenderValue, WaitingList } from './index.typings.js';
4
4
 
5
5
  declare function listMultiServiceAvailabilityTimeSlots$1(httpClient: HttpClient): ListMultiServiceAvailabilityTimeSlotsSignature;
6
6
  interface ListMultiServiceAvailabilityTimeSlotsSignature {
@@ -44,7 +44,7 @@ interface ListMultiServiceAvailabilityTimeSlotsSignature {
44
44
  *
45
45
  * When using [add-ons](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/add-ons/introduction), we recommend passing only `addOnIds` in `customerChoices` 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.
46
46
  */
47
- (options?: ListMultiServiceAvailabilityTimeSlotsOptions): Promise<NonNullablePaths<ListMultiServiceAvailabilityTimeSlotsResponse, `timeSlots` | `timeSlots.${number}.location.locationType`, 5> & {
47
+ (options?: ListMultiServiceAvailabilityTimeSlotsOptions): Promise<NonNullablePaths<ListMultiServiceAvailabilityTimeSlotsResponse, `timeSlots` | `timeSlots.${number}.location.locationType`, 3> & {
48
48
  __applicationErrorsType?: ListMultiServiceAvailabilityTimeSlotsApplicationErrors;
49
49
  }>;
50
50
  }
@@ -82,7 +82,7 @@ interface GetMultiServiceAvailabilityTimeSlotSignature {
82
82
  *
83
83
  * Required unless you specify `cursorPaging.cursor`.
84
84
  */
85
- (services: NonNullablePaths<Service, `serviceId`, 2>[], localStartDate: string, localEndDate: string, timeZone: string, location: NonNullablePaths<Location, `locationType`, 2>): Promise<NonNullablePaths<GetMultiServiceAvailabilityTimeSlotResponse, `timeSlot.location.locationType` | `timeSlot.availableResources` | `timeSlot.nestedTimeSlots` | `timeSlot.nestedTimeSlots.${number}.serviceId` | `timeSlot.nestedTimeSlots.${number}.localStartDate` | `timeSlot.nestedTimeSlots.${number}.localEndDate`, 5> & {
85
+ (services: NonNullablePaths<Service, `serviceId`, 0>[], localStartDate: string, localEndDate: string, timeZone: string, location: NonNullablePaths<Location, `locationType`, 0>): Promise<NonNullablePaths<GetMultiServiceAvailabilityTimeSlotResponse, `timeSlot.location.locationType` | `timeSlot.availableResources` | `timeSlot.nestedTimeSlots` | `timeSlot.nestedTimeSlots.${number}.serviceId` | `timeSlot.nestedTimeSlots.${number}.localStartDate` | `timeSlot.nestedTimeSlots.${number}.localEndDate`, 3> & {
86
86
  __applicationErrorsType?: GetMultiServiceAvailabilityTimeSlotApplicationErrors;
87
87
  }>;
88
88
  }
@@ -39,6 +39,15 @@ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
39
39
  var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
40
40
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
41
41
  var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
42
+ var TRANSFORM_PATHS_0 = [
43
+ { path: "bookingPolicyViolations.earliestBookingDate" }
44
+ ];
45
+ var TRANSFORM_PATHS_1 = [
46
+ { path: "timeSlots.bookingPolicyViolations.earliestBookingDate" }
47
+ ];
48
+ var TRANSFORM_PATHS_2 = [
49
+ { path: "timeSlot.bookingPolicyViolations.earliestBookingDate" }
50
+ ];
42
51
  function resolveComWixpressBookingsAvailabilityV2MultiServiceAvailabilityTimeSlotsUrl(opts) {
43
52
  const domainToMappings = {
44
53
  "www.wixapis.com": [
@@ -176,7 +185,7 @@ function listMultiServiceAvailabilityTimeSlots(payload) {
176
185
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
177
186
  {
178
187
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
179
- paths: [{ path: "bookingPolicyViolations.earliestBookingDate" }]
188
+ paths: TRANSFORM_PATHS_0
180
189
  }
181
190
  ]);
182
191
  const metadata = {
@@ -198,9 +207,7 @@ function listMultiServiceAvailabilityTimeSlots(payload) {
198
207
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
199
208
  {
200
209
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
201
- paths: [
202
- { path: "timeSlots.bookingPolicyViolations.earliestBookingDate" }
203
- ]
210
+ paths: TRANSFORM_PATHS_1
204
211
  }
205
212
  ])
206
213
  };
@@ -225,9 +232,7 @@ function getMultiServiceAvailabilityTimeSlot(payload) {
225
232
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
226
233
  {
227
234
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
228
- paths: [
229
- { path: "timeSlot.bookingPolicyViolations.earliestBookingDate" }
230
- ]
235
+ paths: TRANSFORM_PATHS_2
231
236
  }
232
237
  ])
233
238
  };