@wix/auto_sdk_bookings_availability-time-slots 1.0.274 → 1.0.276

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 { ListAvailabilityTimeSlotsOptions, ListAvailabilityTimeSlotsResponse, ListAvailabilityTimeSlotsApplicationErrors, ListAvailabilityTimeSlotEndOptions, ListAvailabilityTimeSlotEndOptionsResponse, ListAvailabilityTimeSlotEndOptionsApplicationErrors, Location, GetAvailabilityTimeSlotOptions, GetAvailabilityTimeSlotResponse, GetAvailabilityTimeSlotApplicationErrors } from './index.typings.js';
3
- export { ApplicationError, AvailableResources, BookingPolicyViolations, BulkActionMetadata, BulkListAvailabilityTimeSlotsRequest, BulkListAvailabilityTimeSlotsResponse, BulkServiceTimeSlotsResult, CursorPaging, CursorPagingMetadata, Cursors, CustomerChoices, DiagnoseAvailabilityRequest, DiagnoseAvailabilityResponse, DiagnosisReason, EventInfo, GetAvailabilityTimeSlotRequest, GetAvailabilityTimeSlotRequestCustomerChoices, GetEventTimeSlotRequest, GetEventTimeSlotResponse, GetMultiServiceAvailabilityTimeSlotRequest, GetMultiServiceAvailabilityTimeSlotResponse, ItemMetadata, ListAvailabilityTimeSlotEndOptionsRequest, ListAvailabilityTimeSlotsRequest, ListEventTimeSlotsRequest, ListEventTimeSlotsResponse, ListMultiServiceAvailabilityTimeSlotsRequest, ListMultiServiceAvailabilityTimeSlotsResponse, LocationType, LocationTypeWithLiterals, NestedTimeSlot, NonBookableReasons, ReasonCode, ReasonCodeWithLiterals, RequestedGender, RequestedGenderValue, RequestedGenderValueRequestedGender, RequestedGenderValueRequestedGenderWithLiterals, RequestedGenderWithLiterals, ResolvedContext, Resource, ResourceType, Service, 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, GetEventTimeSlotRequest, GetEventTimeSlotResponse, GetMultiServiceAvailabilityTimeSlotRequest, GetMultiServiceAvailabilityTimeSlotResponse, ItemMetadata, ListAvailabilityTimeSlotEndOptionsRequest, ListAvailabilityTimeSlotsRequest, ListEventTimeSlotsRequest, ListEventTimeSlotsResponse, ListMultiServiceAvailabilityTimeSlotsRequest, ListMultiServiceAvailabilityTimeSlotsResponse, LocationType, LocationTypeWithLiterals, NestedTimeSlot, NonBookableReasons, ReasonCode, ReasonCodeWithLiterals, RequestedGender, RequestedGenderValue, RequestedGenderValueRequestedGender, RequestedGenderValueRequestedGenderWithLiterals, RequestedGenderWithLiterals, ResolvedContext, Resource, ResourceType, ScheduleInfo, Service, ServiceTimeSlots, SuggestedAction, SuggestedActionWithLiterals, TimeSlot, V2CustomerChoices, V2RequestedGenderValue, WaitingList } from './index.typings.js';
4
4
 
5
5
  declare function listAvailabilityTimeSlots$1(httpClient: HttpClient): ListAvailabilityTimeSlotsSignature;
6
6
  interface ListAvailabilityTimeSlotsSignature {
@@ -70,7 +70,7 @@ interface ListAvailabilityTimeSlotsSignature {
70
70
  *
71
71
  * In these cases, the working hours of the relevant staff member are used for availability calculation.
72
72
  */
73
- (options?: ListAvailabilityTimeSlotsOptions): Promise<NonNullablePaths<ListAvailabilityTimeSlotsResponse, `timeSlots` | `timeSlots.${number}.location.locationType`, 5> & {
73
+ (options?: ListAvailabilityTimeSlotsOptions): Promise<NonNullablePaths<ListAvailabilityTimeSlotsResponse, `timeSlots` | `timeSlots.${number}.location.locationType`, 3> & {
74
74
  __applicationErrorsType?: ListAvailabilityTimeSlotsApplicationErrors;
75
75
  }>;
76
76
  }
@@ -100,7 +100,7 @@ interface ListAvailabilityTimeSlotEndOptionsSignature {
100
100
  * - `totalCapacity` is always `1`.
101
101
  * @param - [Service](https://dev.wix.com/docs/api-reference/business-solutions/bookings/services/services-v2/introduction) ID. Must be an appointment-based service configured with `availabilityConstraints.durationRange.hourConfig`.
102
102
  */
103
- (serviceId: string, options?: NonNullablePaths<ListAvailabilityTimeSlotEndOptions, `localStartDate` | `location`, 2>): Promise<NonNullablePaths<ListAvailabilityTimeSlotEndOptionsResponse, `endOptions` | `endOptions.${number}.location.locationType`, 5> & {
103
+ (serviceId: string, options?: NonNullablePaths<ListAvailabilityTimeSlotEndOptions, `localStartDate` | `location`, 0>): Promise<NonNullablePaths<ListAvailabilityTimeSlotEndOptionsResponse, `endOptions` | `endOptions.${number}.location.locationType`, 3> & {
104
104
  __applicationErrorsType?: ListAvailabilityTimeSlotEndOptionsApplicationErrors;
105
105
  }>;
106
106
  }
@@ -156,7 +156,7 @@ interface GetAvailabilityTimeSlotSignature {
156
156
  * For business locations, you must specify a location ID.
157
157
  * When specifying a location ID, all other location field filters are ignored.
158
158
  */
159
- (serviceId: string, localStartDate: string, localEndDate: string, timeZone: string, location: Location, options?: GetAvailabilityTimeSlotOptions): Promise<NonNullablePaths<GetAvailabilityTimeSlotResponse, `timeSlot.location.locationType` | `timeSlot.availableResources` | `timeSlot.nestedTimeSlots` | `timeSlot.nestedTimeSlots.${number}.serviceId` | `timeSlot.nestedTimeSlots.${number}.localStartDate` | `timeSlot.nestedTimeSlots.${number}.localEndDate`, 5> & {
159
+ (serviceId: string, localStartDate: string, localEndDate: string, timeZone: string, location: Location, options?: GetAvailabilityTimeSlotOptions): Promise<NonNullablePaths<GetAvailabilityTimeSlotResponse, `timeSlot.location.locationType` | `timeSlot.availableResources` | `timeSlot.nestedTimeSlots` | `timeSlot.nestedTimeSlots.${number}.serviceId` | `timeSlot.nestedTimeSlots.${number}.localStartDate` | `timeSlot.nestedTimeSlots.${number}.localEndDate`, 3> & {
160
160
  __applicationErrorsType?: GetAvailabilityTimeSlotApplicationErrors;
161
161
  }>;
162
162
  }
@@ -40,6 +40,18 @@ var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
40
40
  var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
41
41
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
42
42
  var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
43
+ var TRANSFORM_PATHS_0 = [
44
+ { path: "bookingPolicyViolations.earliestBookingDate" }
45
+ ];
46
+ var TRANSFORM_PATHS_1 = [
47
+ { path: "timeSlots.bookingPolicyViolations.earliestBookingDate" }
48
+ ];
49
+ var TRANSFORM_PATHS_2 = [
50
+ { path: "endOptions.bookingPolicyViolations.earliestBookingDate" }
51
+ ];
52
+ var TRANSFORM_PATHS_3 = [
53
+ { path: "timeSlot.bookingPolicyViolations.earliestBookingDate" }
54
+ ];
43
55
  function resolveComWixpressBookingsAvailabilityV2AvailabilityTimeSlotsUrl(opts) {
44
56
  const domainToMappings = {
45
57
  "www.wixapis.com": [
@@ -177,7 +189,7 @@ function listAvailabilityTimeSlots(payload) {
177
189
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
178
190
  {
179
191
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
180
- paths: [{ path: "bookingPolicyViolations.earliestBookingDate" }]
192
+ paths: TRANSFORM_PATHS_0
181
193
  }
182
194
  ]);
183
195
  const metadata = {
@@ -197,9 +209,7 @@ function listAvailabilityTimeSlots(payload) {
197
209
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
198
210
  {
199
211
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
200
- paths: [
201
- { path: "timeSlots.bookingPolicyViolations.earliestBookingDate" }
202
- ]
212
+ paths: TRANSFORM_PATHS_1
203
213
  }
204
214
  ])
205
215
  };
@@ -226,11 +236,7 @@ function listAvailabilityTimeSlotEndOptions(payload) {
226
236
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
227
237
  {
228
238
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
229
- paths: [
230
- {
231
- path: "endOptions.bookingPolicyViolations.earliestBookingDate"
232
- }
233
- ]
239
+ paths: TRANSFORM_PATHS_2
234
240
  }
235
241
  ])
236
242
  };
@@ -257,9 +263,7 @@ function getAvailabilityTimeSlot(payload) {
257
263
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
258
264
  {
259
265
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
260
- paths: [
261
- { path: "timeSlot.bookingPolicyViolations.earliestBookingDate" }
262
- ]
266
+ paths: TRANSFORM_PATHS_3
263
267
  }
264
268
  ])
265
269
  };