@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.
@@ -10,6 +10,18 @@ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transform
10
10
  import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
11
11
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
12
12
  import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
13
+ var TRANSFORM_PATHS_0 = [
14
+ { path: "bookingPolicyViolations.earliestBookingDate" }
15
+ ];
16
+ var TRANSFORM_PATHS_1 = [
17
+ { path: "timeSlots.bookingPolicyViolations.earliestBookingDate" }
18
+ ];
19
+ var TRANSFORM_PATHS_2 = [
20
+ { path: "endOptions.bookingPolicyViolations.earliestBookingDate" }
21
+ ];
22
+ var TRANSFORM_PATHS_3 = [
23
+ { path: "timeSlot.bookingPolicyViolations.earliestBookingDate" }
24
+ ];
13
25
  function resolveComWixpressBookingsAvailabilityV2AvailabilityTimeSlotsUrl(opts) {
14
26
  const domainToMappings = {
15
27
  "www.wixapis.com": [
@@ -147,7 +159,7 @@ function listAvailabilityTimeSlots(payload) {
147
159
  const serializedData = transformPaths(payload, [
148
160
  {
149
161
  transformFn: transformSDKTimestampToRESTTimestamp,
150
- paths: [{ path: "bookingPolicyViolations.earliestBookingDate" }]
162
+ paths: TRANSFORM_PATHS_0
151
163
  }
152
164
  ]);
153
165
  const metadata = {
@@ -167,9 +179,7 @@ function listAvailabilityTimeSlots(payload) {
167
179
  transformResponse: (payload2) => transformPaths(payload2, [
168
180
  {
169
181
  transformFn: transformRESTTimestampToSDKTimestamp,
170
- paths: [
171
- { path: "timeSlots.bookingPolicyViolations.earliestBookingDate" }
172
- ]
182
+ paths: TRANSFORM_PATHS_1
173
183
  }
174
184
  ])
175
185
  };
@@ -196,11 +206,7 @@ function listAvailabilityTimeSlotEndOptions(payload) {
196
206
  transformResponse: (payload2) => transformPaths(payload2, [
197
207
  {
198
208
  transformFn: transformRESTTimestampToSDKTimestamp,
199
- paths: [
200
- {
201
- path: "endOptions.bookingPolicyViolations.earliestBookingDate"
202
- }
203
- ]
209
+ paths: TRANSFORM_PATHS_2
204
210
  }
205
211
  ])
206
212
  };
@@ -227,9 +233,7 @@ function getAvailabilityTimeSlot(payload) {
227
233
  transformResponse: (payload2) => transformPaths(payload2, [
228
234
  {
229
235
  transformFn: transformRESTTimestampToSDKTimestamp,
230
- paths: [
231
- { path: "timeSlot.bookingPolicyViolations.earliestBookingDate" }
232
- ]
236
+ paths: TRANSFORM_PATHS_3
233
237
  }
234
238
  ])
235
239
  };