@wix/auto_sdk_bookings_services 1.0.285 → 1.0.287
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/{bookings-services-v2-service-services.universal-x93KVD3o.d.ts → bookings-services-v2-service-services.universal-CwRIKSe0.d.ts} +1 -0
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js +598 -1249
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +508 -1140
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -1
- package/build/cjs/meta.js +323 -741
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-x93KVD3o.d.mts → bookings-services-v2-service-services.universal-CwRIKSe0.d.mts} +1 -0
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +598 -1249
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +508 -1140
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +2 -1
- package/build/es/meta.mjs +323 -741
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-BMl4hjIJ.d.ts → bookings-services-v2-service-services.universal-D1yGlSUM.d.ts} +1 -0
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/meta.d.ts +2 -1
- package/build/internal/es/{bookings-services-v2-service-services.universal-BMl4hjIJ.d.mts → bookings-services-v2-service-services.universal-D1yGlSUM.d.mts} +1 -0
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/meta.d.mts +2 -1
- package/package.json +2 -2
|
@@ -113,6 +113,283 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
113
113
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
114
114
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
115
115
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
116
|
+
var TRANSFORM_PATHS_0 = [
|
|
117
|
+
{ path: "service.createdDate" },
|
|
118
|
+
{ path: "service.updatedDate" },
|
|
119
|
+
{ path: "service.media.items.image.urlExpirationDate" },
|
|
120
|
+
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
121
|
+
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
122
|
+
{ path: "service.payment.subscription.recurringStartDate" },
|
|
123
|
+
{ path: "service.bookingPolicy.createdDate" },
|
|
124
|
+
{ path: "service.bookingPolicy.updatedDate" },
|
|
125
|
+
{ path: "service.schedule.firstSessionStart" },
|
|
126
|
+
{ path: "service.schedule.lastSessionEnd" },
|
|
127
|
+
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
128
|
+
{
|
|
129
|
+
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
130
|
+
},
|
|
131
|
+
{ path: "service.supportedSlugs.createdDate" },
|
|
132
|
+
{ path: "service.mainSlug.createdDate" }
|
|
133
|
+
];
|
|
134
|
+
var TRANSFORM_PATHS_1 = [
|
|
135
|
+
{ path: "service.locations.business.address.geocode.latitude" },
|
|
136
|
+
{ path: "service.locations.business.address.geocode.longitude" },
|
|
137
|
+
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
138
|
+
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
139
|
+
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
140
|
+
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
141
|
+
];
|
|
142
|
+
var TRANSFORM_PATHS_2 = [
|
|
143
|
+
{ path: "services.createdDate" },
|
|
144
|
+
{ path: "services.updatedDate" },
|
|
145
|
+
{ path: "services.media.items.image.urlExpirationDate" },
|
|
146
|
+
{ path: "services.media.mainMedia.image.urlExpirationDate" },
|
|
147
|
+
{ path: "services.media.coverMedia.image.urlExpirationDate" },
|
|
148
|
+
{ path: "services.payment.subscription.recurringStartDate" },
|
|
149
|
+
{ path: "services.bookingPolicy.createdDate" },
|
|
150
|
+
{ path: "services.bookingPolicy.updatedDate" },
|
|
151
|
+
{ path: "services.schedule.firstSessionStart" },
|
|
152
|
+
{ path: "services.schedule.lastSessionEnd" },
|
|
153
|
+
{ path: "services.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
154
|
+
{
|
|
155
|
+
path: "services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
156
|
+
},
|
|
157
|
+
{ path: "services.supportedSlugs.createdDate" },
|
|
158
|
+
{ path: "services.mainSlug.createdDate" }
|
|
159
|
+
];
|
|
160
|
+
var TRANSFORM_PATHS_3 = [
|
|
161
|
+
{ path: "services.locations.business.address.geocode.latitude" },
|
|
162
|
+
{ path: "services.locations.business.address.geocode.longitude" },
|
|
163
|
+
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
164
|
+
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
165
|
+
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
166
|
+
{ path: "services.locations.calculatedAddress.geocode.longitude" }
|
|
167
|
+
];
|
|
168
|
+
var TRANSFORM_PATHS_4 = [
|
|
169
|
+
{ path: "results.item.createdDate" },
|
|
170
|
+
{ path: "results.item.updatedDate" },
|
|
171
|
+
{ path: "results.item.media.items.image.urlExpirationDate" },
|
|
172
|
+
{ path: "results.item.media.mainMedia.image.urlExpirationDate" },
|
|
173
|
+
{ path: "results.item.media.coverMedia.image.urlExpirationDate" },
|
|
174
|
+
{ path: "results.item.payment.subscription.recurringStartDate" },
|
|
175
|
+
{ path: "results.item.bookingPolicy.createdDate" },
|
|
176
|
+
{ path: "results.item.bookingPolicy.updatedDate" },
|
|
177
|
+
{ path: "results.item.schedule.firstSessionStart" },
|
|
178
|
+
{ path: "results.item.schedule.lastSessionEnd" },
|
|
179
|
+
{ path: "results.item.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
180
|
+
{
|
|
181
|
+
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
182
|
+
},
|
|
183
|
+
{ path: "results.item.supportedSlugs.createdDate" },
|
|
184
|
+
{ path: "results.item.mainSlug.createdDate" }
|
|
185
|
+
];
|
|
186
|
+
var TRANSFORM_PATHS_5 = [
|
|
187
|
+
{ path: "results.item.locations.business.address.geocode.latitude" },
|
|
188
|
+
{ path: "results.item.locations.business.address.geocode.longitude" },
|
|
189
|
+
{ path: "results.item.locations.custom.address.geocode.latitude" },
|
|
190
|
+
{ path: "results.item.locations.custom.address.geocode.longitude" },
|
|
191
|
+
{ path: "results.item.locations.calculatedAddress.geocode.latitude" },
|
|
192
|
+
{ path: "results.item.locations.calculatedAddress.geocode.longitude" }
|
|
193
|
+
];
|
|
194
|
+
var TRANSFORM_PATHS_6 = [{ path: "mask" }];
|
|
195
|
+
var TRANSFORM_PATHS_7 = [{ path: "services.mask" }];
|
|
196
|
+
var TRANSFORM_PATHS_8 = [
|
|
197
|
+
{ path: "services.service.createdDate" },
|
|
198
|
+
{ path: "services.service.updatedDate" },
|
|
199
|
+
{ path: "services.service.media.items.image.urlExpirationDate" },
|
|
200
|
+
{ path: "services.service.media.mainMedia.image.urlExpirationDate" },
|
|
201
|
+
{ path: "services.service.media.coverMedia.image.urlExpirationDate" },
|
|
202
|
+
{ path: "services.service.payment.subscription.recurringStartDate" },
|
|
203
|
+
{ path: "services.service.bookingPolicy.createdDate" },
|
|
204
|
+
{ path: "services.service.bookingPolicy.updatedDate" },
|
|
205
|
+
{ path: "services.service.schedule.firstSessionStart" },
|
|
206
|
+
{ path: "services.service.schedule.lastSessionEnd" },
|
|
207
|
+
{ path: "services.service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
208
|
+
{
|
|
209
|
+
path: "services.service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
210
|
+
},
|
|
211
|
+
{ path: "services.service.supportedSlugs.createdDate" },
|
|
212
|
+
{ path: "services.service.mainSlug.createdDate" }
|
|
213
|
+
];
|
|
214
|
+
var TRANSFORM_PATHS_9 = [
|
|
215
|
+
{ path: "services.service.locations.business.address.geocode.latitude" },
|
|
216
|
+
{ path: "services.service.locations.business.address.geocode.longitude" },
|
|
217
|
+
{ path: "services.service.locations.custom.address.geocode.latitude" },
|
|
218
|
+
{ path: "services.service.locations.custom.address.geocode.longitude" },
|
|
219
|
+
{ path: "services.service.locations.calculatedAddress.geocode.latitude" },
|
|
220
|
+
{ path: "services.service.locations.calculatedAddress.geocode.longitude" }
|
|
221
|
+
];
|
|
222
|
+
var TRANSFORM_PATHS_10 = [
|
|
223
|
+
{ path: "search.aggregations.range.buckets.from" },
|
|
224
|
+
{ path: "search.aggregations.range.buckets.to" },
|
|
225
|
+
{ path: "search.aggregations.nested.nestedAggregations.range.buckets.from" },
|
|
226
|
+
{ path: "search.aggregations.nested.nestedAggregations.range.buckets.to" }
|
|
227
|
+
];
|
|
228
|
+
var TRANSFORM_PATHS_11 = [
|
|
229
|
+
{ path: "services.locations.business.address.geocode.latitude" },
|
|
230
|
+
{ path: "services.locations.business.address.geocode.longitude" },
|
|
231
|
+
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
232
|
+
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
233
|
+
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
234
|
+
{ path: "services.locations.calculatedAddress.geocode.longitude" },
|
|
235
|
+
{ path: "aggregationData.results.ranges.results.from" },
|
|
236
|
+
{ path: "aggregationData.results.ranges.results.to" },
|
|
237
|
+
{
|
|
238
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
|
|
239
|
+
},
|
|
240
|
+
{
|
|
241
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
|
|
242
|
+
},
|
|
243
|
+
{ path: "aggregationData.results.nested.results.results.*.range.from" },
|
|
244
|
+
{ path: "aggregationData.results.nested.results.results.*.range.to" },
|
|
245
|
+
{ path: "aggregationData.results.scalar.value" },
|
|
246
|
+
{
|
|
247
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
|
|
248
|
+
},
|
|
249
|
+
{ path: "aggregationData.results.nested.results.results.*.scalar.value" }
|
|
250
|
+
];
|
|
251
|
+
var TRANSFORM_PATHS_12 = [
|
|
252
|
+
{ path: "bookingPolicies.bookingPolicy.createdDate" },
|
|
253
|
+
{ path: "bookingPolicies.bookingPolicy.updatedDate" },
|
|
254
|
+
{ path: "bookingPolicies.services.createdDate" },
|
|
255
|
+
{ path: "bookingPolicies.services.updatedDate" },
|
|
256
|
+
{ path: "bookingPolicies.services.media.items.image.urlExpirationDate" },
|
|
257
|
+
{ path: "bookingPolicies.services.media.mainMedia.image.urlExpirationDate" },
|
|
258
|
+
{ path: "bookingPolicies.services.media.coverMedia.image.urlExpirationDate" },
|
|
259
|
+
{ path: "bookingPolicies.services.payment.subscription.recurringStartDate" },
|
|
260
|
+
{ path: "bookingPolicies.services.bookingPolicy.createdDate" },
|
|
261
|
+
{ path: "bookingPolicies.services.bookingPolicy.updatedDate" },
|
|
262
|
+
{ path: "bookingPolicies.services.schedule.firstSessionStart" },
|
|
263
|
+
{ path: "bookingPolicies.services.schedule.lastSessionEnd" },
|
|
264
|
+
{
|
|
265
|
+
path: "bookingPolicies.services.staffMembers.mainMedia.image.urlExpirationDate"
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
path: "bookingPolicies.services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
269
|
+
},
|
|
270
|
+
{ path: "bookingPolicies.services.supportedSlugs.createdDate" },
|
|
271
|
+
{ path: "bookingPolicies.services.mainSlug.createdDate" },
|
|
272
|
+
{ path: "bookingPolicies.connectedServices.createdDate" },
|
|
273
|
+
{ path: "bookingPolicies.connectedServices.updatedDate" },
|
|
274
|
+
{
|
|
275
|
+
path: "bookingPolicies.connectedServices.media.items.image.urlExpirationDate"
|
|
276
|
+
},
|
|
277
|
+
{
|
|
278
|
+
path: "bookingPolicies.connectedServices.media.mainMedia.image.urlExpirationDate"
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
path: "bookingPolicies.connectedServices.media.coverMedia.image.urlExpirationDate"
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
path: "bookingPolicies.connectedServices.payment.subscription.recurringStartDate"
|
|
285
|
+
},
|
|
286
|
+
{ path: "bookingPolicies.connectedServices.bookingPolicy.createdDate" },
|
|
287
|
+
{ path: "bookingPolicies.connectedServices.bookingPolicy.updatedDate" },
|
|
288
|
+
{ path: "bookingPolicies.connectedServices.schedule.firstSessionStart" },
|
|
289
|
+
{ path: "bookingPolicies.connectedServices.schedule.lastSessionEnd" },
|
|
290
|
+
{
|
|
291
|
+
path: "bookingPolicies.connectedServices.staffMembers.mainMedia.image.urlExpirationDate"
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
path: "bookingPolicies.connectedServices.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
295
|
+
},
|
|
296
|
+
{ path: "bookingPolicies.connectedServices.supportedSlugs.createdDate" },
|
|
297
|
+
{ path: "bookingPolicies.connectedServices.mainSlug.createdDate" }
|
|
298
|
+
];
|
|
299
|
+
var TRANSFORM_PATHS_13 = [
|
|
300
|
+
{
|
|
301
|
+
path: "bookingPolicies.services.locations.business.address.geocode.latitude"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
path: "bookingPolicies.services.locations.business.address.geocode.longitude"
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
path: "bookingPolicies.services.locations.custom.address.geocode.latitude"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
path: "bookingPolicies.services.locations.custom.address.geocode.longitude"
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
path: "bookingPolicies.services.locations.calculatedAddress.geocode.latitude"
|
|
314
|
+
},
|
|
315
|
+
{
|
|
316
|
+
path: "bookingPolicies.services.locations.calculatedAddress.geocode.longitude"
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
path: "bookingPolicies.connectedServices.locations.business.address.geocode.latitude"
|
|
320
|
+
},
|
|
321
|
+
{
|
|
322
|
+
path: "bookingPolicies.connectedServices.locations.business.address.geocode.longitude"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
path: "bookingPolicies.connectedServices.locations.custom.address.geocode.latitude"
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
path: "bookingPolicies.connectedServices.locations.custom.address.geocode.longitude"
|
|
329
|
+
},
|
|
330
|
+
{
|
|
331
|
+
path: "bookingPolicies.connectedServices.locations.calculatedAddress.geocode.latitude"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
path: "bookingPolicies.connectedServices.locations.calculatedAddress.geocode.longitude"
|
|
335
|
+
}
|
|
336
|
+
];
|
|
337
|
+
var TRANSFORM_PATHS_14 = [
|
|
338
|
+
{ path: "businessLocations.locations.business.address.geocode.latitude" },
|
|
339
|
+
{ path: "businessLocations.locations.business.address.geocode.longitude" },
|
|
340
|
+
{ path: "businessLocations.locations.custom.address.geocode.latitude" },
|
|
341
|
+
{ path: "businessLocations.locations.custom.address.geocode.longitude" },
|
|
342
|
+
{ path: "businessLocations.locations.calculatedAddress.geocode.latitude" },
|
|
343
|
+
{ path: "businessLocations.locations.calculatedAddress.geocode.longitude" }
|
|
344
|
+
];
|
|
345
|
+
var TRANSFORM_PATHS_15 = [
|
|
346
|
+
{ path: "locations.business.address.geocode.latitude" },
|
|
347
|
+
{ path: "locations.business.address.geocode.longitude" },
|
|
348
|
+
{ path: "locations.custom.address.geocode.latitude" },
|
|
349
|
+
{ path: "locations.custom.address.geocode.longitude" },
|
|
350
|
+
{ path: "locations.calculatedAddress.geocode.latitude" },
|
|
351
|
+
{ path: "locations.calculatedAddress.geocode.longitude" },
|
|
352
|
+
{
|
|
353
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address.geocode.latitude"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address.geocode.longitude"
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address.geocode.latitude"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address.geocode.longitude"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress.geocode.latitude"
|
|
366
|
+
},
|
|
367
|
+
{
|
|
368
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress.geocode.longitude"
|
|
369
|
+
}
|
|
370
|
+
];
|
|
371
|
+
var TRANSFORM_PATHS_16 = [
|
|
372
|
+
{ path: "slug.createdDate" },
|
|
373
|
+
{ path: "service.createdDate" },
|
|
374
|
+
{ path: "service.updatedDate" },
|
|
375
|
+
{ path: "service.media.items.image.urlExpirationDate" },
|
|
376
|
+
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
377
|
+
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
378
|
+
{ path: "service.payment.subscription.recurringStartDate" },
|
|
379
|
+
{ path: "service.bookingPolicy.createdDate" },
|
|
380
|
+
{ path: "service.bookingPolicy.updatedDate" },
|
|
381
|
+
{ path: "service.schedule.firstSessionStart" },
|
|
382
|
+
{ path: "service.schedule.lastSessionEnd" },
|
|
383
|
+
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
384
|
+
{
|
|
385
|
+
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
386
|
+
},
|
|
387
|
+
{ path: "service.supportedSlugs.createdDate" },
|
|
388
|
+
{ path: "service.mainSlug.createdDate" }
|
|
389
|
+
];
|
|
390
|
+
var TRANSFORM_PATHS_17 = [
|
|
391
|
+
{ path: "addOnGroupsDetails.addOns.mainMedia.image.urlExpirationDate" }
|
|
392
|
+
];
|
|
116
393
|
function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
|
|
117
394
|
const domainToMappings = {
|
|
118
395
|
"*.dev.wix-code.com": [
|
|
@@ -349,35 +626,11 @@ function createService(payload) {
|
|
|
349
626
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
350
627
|
{
|
|
351
628
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
352
|
-
paths:
|
|
353
|
-
{ path: "service.createdDate" },
|
|
354
|
-
{ path: "service.updatedDate" },
|
|
355
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
356
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
357
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
358
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
359
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
360
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
361
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
362
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
363
|
-
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
364
|
-
{
|
|
365
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
366
|
-
},
|
|
367
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
368
|
-
{ path: "service.mainSlug.createdDate" }
|
|
369
|
-
]
|
|
629
|
+
paths: TRANSFORM_PATHS_0
|
|
370
630
|
},
|
|
371
631
|
{
|
|
372
632
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
373
|
-
paths:
|
|
374
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
375
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
376
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
377
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
378
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
379
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
380
|
-
]
|
|
633
|
+
paths: TRANSFORM_PATHS_1
|
|
381
634
|
}
|
|
382
635
|
]);
|
|
383
636
|
const metadata = {
|
|
@@ -397,37 +650,11 @@ function createService(payload) {
|
|
|
397
650
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
398
651
|
{
|
|
399
652
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
400
|
-
paths:
|
|
401
|
-
{ path: "service.createdDate" },
|
|
402
|
-
{ path: "service.updatedDate" },
|
|
403
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
404
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
405
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
406
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
407
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
408
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
409
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
410
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
411
|
-
{
|
|
412
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
413
|
-
},
|
|
414
|
-
{
|
|
415
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
416
|
-
},
|
|
417
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
418
|
-
{ path: "service.mainSlug.createdDate" }
|
|
419
|
-
]
|
|
653
|
+
paths: TRANSFORM_PATHS_0
|
|
420
654
|
},
|
|
421
655
|
{
|
|
422
656
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
423
|
-
paths:
|
|
424
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
425
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
426
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
427
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
428
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
429
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
430
|
-
]
|
|
657
|
+
paths: TRANSFORM_PATHS_1
|
|
431
658
|
}
|
|
432
659
|
])
|
|
433
660
|
};
|
|
@@ -440,35 +667,11 @@ function bulkCreateServices(payload) {
|
|
|
440
667
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
441
668
|
{
|
|
442
669
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
443
|
-
paths:
|
|
444
|
-
{ path: "services.createdDate" },
|
|
445
|
-
{ path: "services.updatedDate" },
|
|
446
|
-
{ path: "services.media.items.image.urlExpirationDate" },
|
|
447
|
-
{ path: "services.media.mainMedia.image.urlExpirationDate" },
|
|
448
|
-
{ path: "services.media.coverMedia.image.urlExpirationDate" },
|
|
449
|
-
{ path: "services.payment.subscription.recurringStartDate" },
|
|
450
|
-
{ path: "services.bookingPolicy.createdDate" },
|
|
451
|
-
{ path: "services.bookingPolicy.updatedDate" },
|
|
452
|
-
{ path: "services.schedule.firstSessionStart" },
|
|
453
|
-
{ path: "services.schedule.lastSessionEnd" },
|
|
454
|
-
{ path: "services.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
455
|
-
{
|
|
456
|
-
path: "services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
457
|
-
},
|
|
458
|
-
{ path: "services.supportedSlugs.createdDate" },
|
|
459
|
-
{ path: "services.mainSlug.createdDate" }
|
|
460
|
-
]
|
|
670
|
+
paths: TRANSFORM_PATHS_2
|
|
461
671
|
},
|
|
462
672
|
{
|
|
463
673
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
464
|
-
paths:
|
|
465
|
-
{ path: "services.locations.business.address.geocode.latitude" },
|
|
466
|
-
{ path: "services.locations.business.address.geocode.longitude" },
|
|
467
|
-
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
468
|
-
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
469
|
-
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
470
|
-
{ path: "services.locations.calculatedAddress.geocode.longitude" }
|
|
471
|
-
]
|
|
674
|
+
paths: TRANSFORM_PATHS_3
|
|
472
675
|
}
|
|
473
676
|
]);
|
|
474
677
|
const metadata = {
|
|
@@ -488,49 +691,11 @@ function bulkCreateServices(payload) {
|
|
|
488
691
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
489
692
|
{
|
|
490
693
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
491
|
-
paths:
|
|
492
|
-
{ path: "results.item.createdDate" },
|
|
493
|
-
{ path: "results.item.updatedDate" },
|
|
494
|
-
{ path: "results.item.media.items.image.urlExpirationDate" },
|
|
495
|
-
{ path: "results.item.media.mainMedia.image.urlExpirationDate" },
|
|
496
|
-
{ path: "results.item.media.coverMedia.image.urlExpirationDate" },
|
|
497
|
-
{ path: "results.item.payment.subscription.recurringStartDate" },
|
|
498
|
-
{ path: "results.item.bookingPolicy.createdDate" },
|
|
499
|
-
{ path: "results.item.bookingPolicy.updatedDate" },
|
|
500
|
-
{ path: "results.item.schedule.firstSessionStart" },
|
|
501
|
-
{ path: "results.item.schedule.lastSessionEnd" },
|
|
502
|
-
{
|
|
503
|
-
path: "results.item.staffMembers.mainMedia.image.urlExpirationDate"
|
|
504
|
-
},
|
|
505
|
-
{
|
|
506
|
-
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
507
|
-
},
|
|
508
|
-
{ path: "results.item.supportedSlugs.createdDate" },
|
|
509
|
-
{ path: "results.item.mainSlug.createdDate" }
|
|
510
|
-
]
|
|
694
|
+
paths: TRANSFORM_PATHS_4
|
|
511
695
|
},
|
|
512
696
|
{
|
|
513
697
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
514
|
-
paths:
|
|
515
|
-
{
|
|
516
|
-
path: "results.item.locations.business.address.geocode.latitude"
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
path: "results.item.locations.business.address.geocode.longitude"
|
|
520
|
-
},
|
|
521
|
-
{
|
|
522
|
-
path: "results.item.locations.custom.address.geocode.latitude"
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
path: "results.item.locations.custom.address.geocode.longitude"
|
|
526
|
-
},
|
|
527
|
-
{
|
|
528
|
-
path: "results.item.locations.calculatedAddress.geocode.latitude"
|
|
529
|
-
},
|
|
530
|
-
{
|
|
531
|
-
path: "results.item.locations.calculatedAddress.geocode.longitude"
|
|
532
|
-
}
|
|
533
|
-
]
|
|
698
|
+
paths: TRANSFORM_PATHS_5
|
|
534
699
|
}
|
|
535
700
|
])
|
|
536
701
|
};
|
|
@@ -557,37 +722,11 @@ function getService(payload) {
|
|
|
557
722
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
558
723
|
{
|
|
559
724
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
560
|
-
paths:
|
|
561
|
-
{ path: "service.createdDate" },
|
|
562
|
-
{ path: "service.updatedDate" },
|
|
563
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
564
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
565
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
566
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
567
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
568
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
569
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
570
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
571
|
-
{
|
|
572
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
573
|
-
},
|
|
574
|
-
{
|
|
575
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
576
|
-
},
|
|
577
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
578
|
-
{ path: "service.mainSlug.createdDate" }
|
|
579
|
-
]
|
|
725
|
+
paths: TRANSFORM_PATHS_0
|
|
580
726
|
},
|
|
581
727
|
{
|
|
582
728
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
583
|
-
paths:
|
|
584
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
585
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
586
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
587
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
588
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
589
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
590
|
-
]
|
|
729
|
+
paths: TRANSFORM_PATHS_1
|
|
591
730
|
}
|
|
592
731
|
])
|
|
593
732
|
};
|
|
@@ -600,39 +739,15 @@ function updateService(payload) {
|
|
|
600
739
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
601
740
|
{
|
|
602
741
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
603
|
-
paths:
|
|
742
|
+
paths: TRANSFORM_PATHS_6
|
|
604
743
|
},
|
|
605
744
|
{
|
|
606
745
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
607
|
-
paths:
|
|
608
|
-
{ path: "service.createdDate" },
|
|
609
|
-
{ path: "service.updatedDate" },
|
|
610
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
611
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
612
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
613
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
614
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
615
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
616
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
617
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
618
|
-
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
619
|
-
{
|
|
620
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
621
|
-
},
|
|
622
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
623
|
-
{ path: "service.mainSlug.createdDate" }
|
|
624
|
-
]
|
|
746
|
+
paths: TRANSFORM_PATHS_0
|
|
625
747
|
},
|
|
626
748
|
{
|
|
627
749
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
628
|
-
paths:
|
|
629
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
630
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
631
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
632
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
633
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
634
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
635
|
-
]
|
|
750
|
+
paths: TRANSFORM_PATHS_1
|
|
636
751
|
}
|
|
637
752
|
]);
|
|
638
753
|
const metadata = {
|
|
@@ -652,37 +767,11 @@ function updateService(payload) {
|
|
|
652
767
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
653
768
|
{
|
|
654
769
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
655
|
-
paths:
|
|
656
|
-
{ path: "service.createdDate" },
|
|
657
|
-
{ path: "service.updatedDate" },
|
|
658
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
659
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
660
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
661
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
662
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
663
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
664
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
665
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
666
|
-
{
|
|
667
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
668
|
-
},
|
|
669
|
-
{
|
|
670
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
671
|
-
},
|
|
672
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
673
|
-
{ path: "service.mainSlug.createdDate" }
|
|
674
|
-
]
|
|
770
|
+
paths: TRANSFORM_PATHS_0
|
|
675
771
|
},
|
|
676
772
|
{
|
|
677
773
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
678
|
-
paths:
|
|
679
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
680
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
681
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
682
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
683
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
684
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
685
|
-
]
|
|
774
|
+
paths: TRANSFORM_PATHS_1
|
|
686
775
|
}
|
|
687
776
|
])
|
|
688
777
|
};
|
|
@@ -695,53 +784,15 @@ function bulkUpdateServices(payload) {
|
|
|
695
784
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
696
785
|
{
|
|
697
786
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
698
|
-
paths:
|
|
787
|
+
paths: TRANSFORM_PATHS_7
|
|
699
788
|
},
|
|
700
789
|
{
|
|
701
790
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
702
|
-
paths:
|
|
703
|
-
{ path: "services.service.createdDate" },
|
|
704
|
-
{ path: "services.service.updatedDate" },
|
|
705
|
-
{ path: "services.service.media.items.image.urlExpirationDate" },
|
|
706
|
-
{ path: "services.service.media.mainMedia.image.urlExpirationDate" },
|
|
707
|
-
{ path: "services.service.media.coverMedia.image.urlExpirationDate" },
|
|
708
|
-
{ path: "services.service.payment.subscription.recurringStartDate" },
|
|
709
|
-
{ path: "services.service.bookingPolicy.createdDate" },
|
|
710
|
-
{ path: "services.service.bookingPolicy.updatedDate" },
|
|
711
|
-
{ path: "services.service.schedule.firstSessionStart" },
|
|
712
|
-
{ path: "services.service.schedule.lastSessionEnd" },
|
|
713
|
-
{
|
|
714
|
-
path: "services.service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
715
|
-
},
|
|
716
|
-
{
|
|
717
|
-
path: "services.service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
718
|
-
},
|
|
719
|
-
{ path: "services.service.supportedSlugs.createdDate" },
|
|
720
|
-
{ path: "services.service.mainSlug.createdDate" }
|
|
721
|
-
]
|
|
791
|
+
paths: TRANSFORM_PATHS_8
|
|
722
792
|
},
|
|
723
793
|
{
|
|
724
794
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
725
|
-
paths:
|
|
726
|
-
{
|
|
727
|
-
path: "services.service.locations.business.address.geocode.latitude"
|
|
728
|
-
},
|
|
729
|
-
{
|
|
730
|
-
path: "services.service.locations.business.address.geocode.longitude"
|
|
731
|
-
},
|
|
732
|
-
{
|
|
733
|
-
path: "services.service.locations.custom.address.geocode.latitude"
|
|
734
|
-
},
|
|
735
|
-
{
|
|
736
|
-
path: "services.service.locations.custom.address.geocode.longitude"
|
|
737
|
-
},
|
|
738
|
-
{
|
|
739
|
-
path: "services.service.locations.calculatedAddress.geocode.latitude"
|
|
740
|
-
},
|
|
741
|
-
{
|
|
742
|
-
path: "services.service.locations.calculatedAddress.geocode.longitude"
|
|
743
|
-
}
|
|
744
|
-
]
|
|
795
|
+
paths: TRANSFORM_PATHS_9
|
|
745
796
|
}
|
|
746
797
|
]);
|
|
747
798
|
const metadata = {
|
|
@@ -761,49 +812,11 @@ function bulkUpdateServices(payload) {
|
|
|
761
812
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
762
813
|
{
|
|
763
814
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
764
|
-
paths:
|
|
765
|
-
{ path: "results.item.createdDate" },
|
|
766
|
-
{ path: "results.item.updatedDate" },
|
|
767
|
-
{ path: "results.item.media.items.image.urlExpirationDate" },
|
|
768
|
-
{ path: "results.item.media.mainMedia.image.urlExpirationDate" },
|
|
769
|
-
{ path: "results.item.media.coverMedia.image.urlExpirationDate" },
|
|
770
|
-
{ path: "results.item.payment.subscription.recurringStartDate" },
|
|
771
|
-
{ path: "results.item.bookingPolicy.createdDate" },
|
|
772
|
-
{ path: "results.item.bookingPolicy.updatedDate" },
|
|
773
|
-
{ path: "results.item.schedule.firstSessionStart" },
|
|
774
|
-
{ path: "results.item.schedule.lastSessionEnd" },
|
|
775
|
-
{
|
|
776
|
-
path: "results.item.staffMembers.mainMedia.image.urlExpirationDate"
|
|
777
|
-
},
|
|
778
|
-
{
|
|
779
|
-
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
780
|
-
},
|
|
781
|
-
{ path: "results.item.supportedSlugs.createdDate" },
|
|
782
|
-
{ path: "results.item.mainSlug.createdDate" }
|
|
783
|
-
]
|
|
815
|
+
paths: TRANSFORM_PATHS_4
|
|
784
816
|
},
|
|
785
817
|
{
|
|
786
818
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
787
|
-
paths:
|
|
788
|
-
{
|
|
789
|
-
path: "results.item.locations.business.address.geocode.latitude"
|
|
790
|
-
},
|
|
791
|
-
{
|
|
792
|
-
path: "results.item.locations.business.address.geocode.longitude"
|
|
793
|
-
},
|
|
794
|
-
{
|
|
795
|
-
path: "results.item.locations.custom.address.geocode.latitude"
|
|
796
|
-
},
|
|
797
|
-
{
|
|
798
|
-
path: "results.item.locations.custom.address.geocode.longitude"
|
|
799
|
-
},
|
|
800
|
-
{
|
|
801
|
-
path: "results.item.locations.calculatedAddress.geocode.latitude"
|
|
802
|
-
},
|
|
803
|
-
{
|
|
804
|
-
path: "results.item.locations.calculatedAddress.geocode.longitude"
|
|
805
|
-
}
|
|
806
|
-
]
|
|
819
|
+
paths: TRANSFORM_PATHS_5
|
|
807
820
|
}
|
|
808
821
|
])
|
|
809
822
|
};
|
|
@@ -816,39 +829,15 @@ function bulkUpdateServicesByFilter(payload) {
|
|
|
816
829
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
817
830
|
{
|
|
818
831
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
819
|
-
paths:
|
|
832
|
+
paths: TRANSFORM_PATHS_6
|
|
820
833
|
},
|
|
821
834
|
{
|
|
822
835
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
823
|
-
paths:
|
|
824
|
-
{ path: "service.createdDate" },
|
|
825
|
-
{ path: "service.updatedDate" },
|
|
826
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
827
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
828
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
829
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
830
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
831
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
832
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
833
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
834
|
-
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
835
|
-
{
|
|
836
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
837
|
-
},
|
|
838
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
839
|
-
{ path: "service.mainSlug.createdDate" }
|
|
840
|
-
]
|
|
836
|
+
paths: TRANSFORM_PATHS_0
|
|
841
837
|
},
|
|
842
838
|
{
|
|
843
839
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
844
|
-
paths:
|
|
845
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
846
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
847
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
848
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
849
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
850
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
851
|
-
]
|
|
840
|
+
paths: TRANSFORM_PATHS_1
|
|
852
841
|
}
|
|
853
842
|
]);
|
|
854
843
|
const metadata = {
|
|
@@ -910,49 +899,11 @@ function bulkDeleteServices(payload) {
|
|
|
910
899
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
911
900
|
{
|
|
912
901
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
913
|
-
paths:
|
|
914
|
-
{ path: "results.item.createdDate" },
|
|
915
|
-
{ path: "results.item.updatedDate" },
|
|
916
|
-
{ path: "results.item.media.items.image.urlExpirationDate" },
|
|
917
|
-
{ path: "results.item.media.mainMedia.image.urlExpirationDate" },
|
|
918
|
-
{ path: "results.item.media.coverMedia.image.urlExpirationDate" },
|
|
919
|
-
{ path: "results.item.payment.subscription.recurringStartDate" },
|
|
920
|
-
{ path: "results.item.bookingPolicy.createdDate" },
|
|
921
|
-
{ path: "results.item.bookingPolicy.updatedDate" },
|
|
922
|
-
{ path: "results.item.schedule.firstSessionStart" },
|
|
923
|
-
{ path: "results.item.schedule.lastSessionEnd" },
|
|
924
|
-
{
|
|
925
|
-
path: "results.item.staffMembers.mainMedia.image.urlExpirationDate"
|
|
926
|
-
},
|
|
927
|
-
{
|
|
928
|
-
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
929
|
-
},
|
|
930
|
-
{ path: "results.item.supportedSlugs.createdDate" },
|
|
931
|
-
{ path: "results.item.mainSlug.createdDate" }
|
|
932
|
-
]
|
|
902
|
+
paths: TRANSFORM_PATHS_4
|
|
933
903
|
},
|
|
934
904
|
{
|
|
935
905
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
936
|
-
paths:
|
|
937
|
-
{
|
|
938
|
-
path: "results.item.locations.business.address.geocode.latitude"
|
|
939
|
-
},
|
|
940
|
-
{
|
|
941
|
-
path: "results.item.locations.business.address.geocode.longitude"
|
|
942
|
-
},
|
|
943
|
-
{
|
|
944
|
-
path: "results.item.locations.custom.address.geocode.latitude"
|
|
945
|
-
},
|
|
946
|
-
{
|
|
947
|
-
path: "results.item.locations.custom.address.geocode.longitude"
|
|
948
|
-
},
|
|
949
|
-
{
|
|
950
|
-
path: "results.item.locations.calculatedAddress.geocode.latitude"
|
|
951
|
-
},
|
|
952
|
-
{
|
|
953
|
-
path: "results.item.locations.calculatedAddress.geocode.longitude"
|
|
954
|
-
}
|
|
955
|
-
]
|
|
906
|
+
paths: TRANSFORM_PATHS_5
|
|
956
907
|
}
|
|
957
908
|
])
|
|
958
909
|
};
|
|
@@ -1000,39 +951,11 @@ function queryServices(payload) {
|
|
|
1000
951
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1001
952
|
{
|
|
1002
953
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1003
|
-
paths:
|
|
1004
|
-
{ path: "services.createdDate" },
|
|
1005
|
-
{ path: "services.updatedDate" },
|
|
1006
|
-
{ path: "services.media.items.image.urlExpirationDate" },
|
|
1007
|
-
{ path: "services.media.mainMedia.image.urlExpirationDate" },
|
|
1008
|
-
{ path: "services.media.coverMedia.image.urlExpirationDate" },
|
|
1009
|
-
{ path: "services.payment.subscription.recurringStartDate" },
|
|
1010
|
-
{ path: "services.bookingPolicy.createdDate" },
|
|
1011
|
-
{ path: "services.bookingPolicy.updatedDate" },
|
|
1012
|
-
{ path: "services.schedule.firstSessionStart" },
|
|
1013
|
-
{ path: "services.schedule.lastSessionEnd" },
|
|
1014
|
-
{
|
|
1015
|
-
path: "services.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1016
|
-
},
|
|
1017
|
-
{
|
|
1018
|
-
path: "services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1019
|
-
},
|
|
1020
|
-
{ path: "services.supportedSlugs.createdDate" },
|
|
1021
|
-
{ path: "services.mainSlug.createdDate" }
|
|
1022
|
-
]
|
|
954
|
+
paths: TRANSFORM_PATHS_2
|
|
1023
955
|
},
|
|
1024
956
|
{
|
|
1025
957
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1026
|
-
paths:
|
|
1027
|
-
{ path: "services.locations.business.address.geocode.latitude" },
|
|
1028
|
-
{ path: "services.locations.business.address.geocode.longitude" },
|
|
1029
|
-
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
1030
|
-
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
1031
|
-
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
1032
|
-
{
|
|
1033
|
-
path: "services.locations.calculatedAddress.geocode.longitude"
|
|
1034
|
-
}
|
|
1035
|
-
]
|
|
958
|
+
paths: TRANSFORM_PATHS_3
|
|
1036
959
|
}
|
|
1037
960
|
])
|
|
1038
961
|
};
|
|
@@ -1045,16 +968,7 @@ function searchServices(payload) {
|
|
|
1045
968
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1046
969
|
{
|
|
1047
970
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1048
|
-
paths:
|
|
1049
|
-
{ path: "search.aggregations.range.buckets.from" },
|
|
1050
|
-
{ path: "search.aggregations.range.buckets.to" },
|
|
1051
|
-
{
|
|
1052
|
-
path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
|
|
1053
|
-
},
|
|
1054
|
-
{
|
|
1055
|
-
path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
|
|
1056
|
-
}
|
|
1057
|
-
]
|
|
971
|
+
paths: TRANSFORM_PATHS_10
|
|
1058
972
|
}
|
|
1059
973
|
]);
|
|
1060
974
|
const metadata = {
|
|
@@ -1074,60 +988,11 @@ function searchServices(payload) {
|
|
|
1074
988
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1075
989
|
{
|
|
1076
990
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1077
|
-
paths:
|
|
1078
|
-
{ path: "services.createdDate" },
|
|
1079
|
-
{ path: "services.updatedDate" },
|
|
1080
|
-
{ path: "services.media.items.image.urlExpirationDate" },
|
|
1081
|
-
{ path: "services.media.mainMedia.image.urlExpirationDate" },
|
|
1082
|
-
{ path: "services.media.coverMedia.image.urlExpirationDate" },
|
|
1083
|
-
{ path: "services.payment.subscription.recurringStartDate" },
|
|
1084
|
-
{ path: "services.bookingPolicy.createdDate" },
|
|
1085
|
-
{ path: "services.bookingPolicy.updatedDate" },
|
|
1086
|
-
{ path: "services.schedule.firstSessionStart" },
|
|
1087
|
-
{ path: "services.schedule.lastSessionEnd" },
|
|
1088
|
-
{
|
|
1089
|
-
path: "services.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1090
|
-
},
|
|
1091
|
-
{
|
|
1092
|
-
path: "services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1093
|
-
},
|
|
1094
|
-
{ path: "services.supportedSlugs.createdDate" },
|
|
1095
|
-
{ path: "services.mainSlug.createdDate" }
|
|
1096
|
-
]
|
|
991
|
+
paths: TRANSFORM_PATHS_2
|
|
1097
992
|
},
|
|
1098
993
|
{
|
|
1099
994
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1100
|
-
paths:
|
|
1101
|
-
{ path: "services.locations.business.address.geocode.latitude" },
|
|
1102
|
-
{ path: "services.locations.business.address.geocode.longitude" },
|
|
1103
|
-
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
1104
|
-
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
1105
|
-
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
1106
|
-
{
|
|
1107
|
-
path: "services.locations.calculatedAddress.geocode.longitude"
|
|
1108
|
-
},
|
|
1109
|
-
{ path: "aggregationData.results.ranges.results.from" },
|
|
1110
|
-
{ path: "aggregationData.results.ranges.results.to" },
|
|
1111
|
-
{
|
|
1112
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
|
|
1113
|
-
},
|
|
1114
|
-
{
|
|
1115
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
|
|
1116
|
-
},
|
|
1117
|
-
{
|
|
1118
|
-
path: "aggregationData.results.nested.results.results.*.range.from"
|
|
1119
|
-
},
|
|
1120
|
-
{
|
|
1121
|
-
path: "aggregationData.results.nested.results.results.*.range.to"
|
|
1122
|
-
},
|
|
1123
|
-
{ path: "aggregationData.results.scalar.value" },
|
|
1124
|
-
{
|
|
1125
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
|
|
1126
|
-
},
|
|
1127
|
-
{
|
|
1128
|
-
path: "aggregationData.results.nested.results.results.*.scalar.value"
|
|
1129
|
-
}
|
|
1130
|
-
]
|
|
995
|
+
paths: TRANSFORM_PATHS_11
|
|
1131
996
|
}
|
|
1132
997
|
])
|
|
1133
998
|
};
|
|
@@ -1154,115 +1019,11 @@ function queryPolicies(payload) {
|
|
|
1154
1019
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1155
1020
|
{
|
|
1156
1021
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1157
|
-
paths:
|
|
1158
|
-
{ path: "bookingPolicies.bookingPolicy.createdDate" },
|
|
1159
|
-
{ path: "bookingPolicies.bookingPolicy.updatedDate" },
|
|
1160
|
-
{ path: "bookingPolicies.services.createdDate" },
|
|
1161
|
-
{ path: "bookingPolicies.services.updatedDate" },
|
|
1162
|
-
{
|
|
1163
|
-
path: "bookingPolicies.services.media.items.image.urlExpirationDate"
|
|
1164
|
-
},
|
|
1165
|
-
{
|
|
1166
|
-
path: "bookingPolicies.services.media.mainMedia.image.urlExpirationDate"
|
|
1167
|
-
},
|
|
1168
|
-
{
|
|
1169
|
-
path: "bookingPolicies.services.media.coverMedia.image.urlExpirationDate"
|
|
1170
|
-
},
|
|
1171
|
-
{
|
|
1172
|
-
path: "bookingPolicies.services.payment.subscription.recurringStartDate"
|
|
1173
|
-
},
|
|
1174
|
-
{ path: "bookingPolicies.services.bookingPolicy.createdDate" },
|
|
1175
|
-
{ path: "bookingPolicies.services.bookingPolicy.updatedDate" },
|
|
1176
|
-
{ path: "bookingPolicies.services.schedule.firstSessionStart" },
|
|
1177
|
-
{ path: "bookingPolicies.services.schedule.lastSessionEnd" },
|
|
1178
|
-
{
|
|
1179
|
-
path: "bookingPolicies.services.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1180
|
-
},
|
|
1181
|
-
{
|
|
1182
|
-
path: "bookingPolicies.services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1183
|
-
},
|
|
1184
|
-
{ path: "bookingPolicies.services.supportedSlugs.createdDate" },
|
|
1185
|
-
{ path: "bookingPolicies.services.mainSlug.createdDate" },
|
|
1186
|
-
{ path: "bookingPolicies.connectedServices.createdDate" },
|
|
1187
|
-
{ path: "bookingPolicies.connectedServices.updatedDate" },
|
|
1188
|
-
{
|
|
1189
|
-
path: "bookingPolicies.connectedServices.media.items.image.urlExpirationDate"
|
|
1190
|
-
},
|
|
1191
|
-
{
|
|
1192
|
-
path: "bookingPolicies.connectedServices.media.mainMedia.image.urlExpirationDate"
|
|
1193
|
-
},
|
|
1194
|
-
{
|
|
1195
|
-
path: "bookingPolicies.connectedServices.media.coverMedia.image.urlExpirationDate"
|
|
1196
|
-
},
|
|
1197
|
-
{
|
|
1198
|
-
path: "bookingPolicies.connectedServices.payment.subscription.recurringStartDate"
|
|
1199
|
-
},
|
|
1200
|
-
{
|
|
1201
|
-
path: "bookingPolicies.connectedServices.bookingPolicy.createdDate"
|
|
1202
|
-
},
|
|
1203
|
-
{
|
|
1204
|
-
path: "bookingPolicies.connectedServices.bookingPolicy.updatedDate"
|
|
1205
|
-
},
|
|
1206
|
-
{
|
|
1207
|
-
path: "bookingPolicies.connectedServices.schedule.firstSessionStart"
|
|
1208
|
-
},
|
|
1209
|
-
{
|
|
1210
|
-
path: "bookingPolicies.connectedServices.schedule.lastSessionEnd"
|
|
1211
|
-
},
|
|
1212
|
-
{
|
|
1213
|
-
path: "bookingPolicies.connectedServices.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1214
|
-
},
|
|
1215
|
-
{
|
|
1216
|
-
path: "bookingPolicies.connectedServices.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1217
|
-
},
|
|
1218
|
-
{
|
|
1219
|
-
path: "bookingPolicies.connectedServices.supportedSlugs.createdDate"
|
|
1220
|
-
},
|
|
1221
|
-
{
|
|
1222
|
-
path: "bookingPolicies.connectedServices.mainSlug.createdDate"
|
|
1223
|
-
}
|
|
1224
|
-
]
|
|
1022
|
+
paths: TRANSFORM_PATHS_12
|
|
1225
1023
|
},
|
|
1226
1024
|
{
|
|
1227
1025
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1228
|
-
paths:
|
|
1229
|
-
{
|
|
1230
|
-
path: "bookingPolicies.services.locations.business.address.geocode.latitude"
|
|
1231
|
-
},
|
|
1232
|
-
{
|
|
1233
|
-
path: "bookingPolicies.services.locations.business.address.geocode.longitude"
|
|
1234
|
-
},
|
|
1235
|
-
{
|
|
1236
|
-
path: "bookingPolicies.services.locations.custom.address.geocode.latitude"
|
|
1237
|
-
},
|
|
1238
|
-
{
|
|
1239
|
-
path: "bookingPolicies.services.locations.custom.address.geocode.longitude"
|
|
1240
|
-
},
|
|
1241
|
-
{
|
|
1242
|
-
path: "bookingPolicies.services.locations.calculatedAddress.geocode.latitude"
|
|
1243
|
-
},
|
|
1244
|
-
{
|
|
1245
|
-
path: "bookingPolicies.services.locations.calculatedAddress.geocode.longitude"
|
|
1246
|
-
},
|
|
1247
|
-
{
|
|
1248
|
-
path: "bookingPolicies.connectedServices.locations.business.address.geocode.latitude"
|
|
1249
|
-
},
|
|
1250
|
-
{
|
|
1251
|
-
path: "bookingPolicies.connectedServices.locations.business.address.geocode.longitude"
|
|
1252
|
-
},
|
|
1253
|
-
{
|
|
1254
|
-
path: "bookingPolicies.connectedServices.locations.custom.address.geocode.latitude"
|
|
1255
|
-
},
|
|
1256
|
-
{
|
|
1257
|
-
path: "bookingPolicies.connectedServices.locations.custom.address.geocode.longitude"
|
|
1258
|
-
},
|
|
1259
|
-
{
|
|
1260
|
-
path: "bookingPolicies.connectedServices.locations.calculatedAddress.geocode.latitude"
|
|
1261
|
-
},
|
|
1262
|
-
{
|
|
1263
|
-
path: "bookingPolicies.connectedServices.locations.calculatedAddress.geocode.longitude"
|
|
1264
|
-
}
|
|
1265
|
-
]
|
|
1026
|
+
paths: TRANSFORM_PATHS_13
|
|
1266
1027
|
}
|
|
1267
1028
|
])
|
|
1268
1029
|
};
|
|
@@ -1331,26 +1092,7 @@ function queryLocations(payload) {
|
|
|
1331
1092
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1332
1093
|
{
|
|
1333
1094
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1334
|
-
paths:
|
|
1335
|
-
{
|
|
1336
|
-
path: "businessLocations.locations.business.address.geocode.latitude"
|
|
1337
|
-
},
|
|
1338
|
-
{
|
|
1339
|
-
path: "businessLocations.locations.business.address.geocode.longitude"
|
|
1340
|
-
},
|
|
1341
|
-
{
|
|
1342
|
-
path: "businessLocations.locations.custom.address.geocode.latitude"
|
|
1343
|
-
},
|
|
1344
|
-
{
|
|
1345
|
-
path: "businessLocations.locations.custom.address.geocode.longitude"
|
|
1346
|
-
},
|
|
1347
|
-
{
|
|
1348
|
-
path: "businessLocations.locations.calculatedAddress.geocode.latitude"
|
|
1349
|
-
},
|
|
1350
|
-
{
|
|
1351
|
-
path: "businessLocations.locations.calculatedAddress.geocode.longitude"
|
|
1352
|
-
}
|
|
1353
|
-
]
|
|
1095
|
+
paths: TRANSFORM_PATHS_14
|
|
1354
1096
|
}
|
|
1355
1097
|
])
|
|
1356
1098
|
};
|
|
@@ -1384,32 +1126,7 @@ function setServiceLocations(payload) {
|
|
|
1384
1126
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1385
1127
|
{
|
|
1386
1128
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1387
|
-
paths:
|
|
1388
|
-
{ path: "locations.business.address.geocode.latitude" },
|
|
1389
|
-
{ path: "locations.business.address.geocode.longitude" },
|
|
1390
|
-
{ path: "locations.custom.address.geocode.latitude" },
|
|
1391
|
-
{ path: "locations.custom.address.geocode.longitude" },
|
|
1392
|
-
{ path: "locations.calculatedAddress.geocode.latitude" },
|
|
1393
|
-
{ path: "locations.calculatedAddress.geocode.longitude" },
|
|
1394
|
-
{
|
|
1395
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address.geocode.latitude"
|
|
1396
|
-
},
|
|
1397
|
-
{
|
|
1398
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address.geocode.longitude"
|
|
1399
|
-
},
|
|
1400
|
-
{
|
|
1401
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address.geocode.latitude"
|
|
1402
|
-
},
|
|
1403
|
-
{
|
|
1404
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address.geocode.longitude"
|
|
1405
|
-
},
|
|
1406
|
-
{
|
|
1407
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress.geocode.latitude"
|
|
1408
|
-
},
|
|
1409
|
-
{
|
|
1410
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress.geocode.longitude"
|
|
1411
|
-
}
|
|
1412
|
-
]
|
|
1129
|
+
paths: TRANSFORM_PATHS_15
|
|
1413
1130
|
}
|
|
1414
1131
|
]);
|
|
1415
1132
|
const metadata = {
|
|
@@ -1429,37 +1146,11 @@ function setServiceLocations(payload) {
|
|
|
1429
1146
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1430
1147
|
{
|
|
1431
1148
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1432
|
-
paths:
|
|
1433
|
-
{ path: "service.createdDate" },
|
|
1434
|
-
{ path: "service.updatedDate" },
|
|
1435
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1436
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1437
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1438
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1439
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1440
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1441
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1442
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1443
|
-
{
|
|
1444
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1445
|
-
},
|
|
1446
|
-
{
|
|
1447
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1448
|
-
},
|
|
1449
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1450
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1451
|
-
]
|
|
1149
|
+
paths: TRANSFORM_PATHS_0
|
|
1452
1150
|
},
|
|
1453
1151
|
{
|
|
1454
1152
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1455
|
-
paths:
|
|
1456
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1457
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1458
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1459
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1460
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1461
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1462
|
-
]
|
|
1153
|
+
paths: TRANSFORM_PATHS_1
|
|
1463
1154
|
}
|
|
1464
1155
|
])
|
|
1465
1156
|
};
|
|
@@ -1486,37 +1177,11 @@ function enablePricingPlansForService(payload) {
|
|
|
1486
1177
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1487
1178
|
{
|
|
1488
1179
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1489
|
-
paths:
|
|
1490
|
-
{ path: "service.createdDate" },
|
|
1491
|
-
{ path: "service.updatedDate" },
|
|
1492
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1493
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1494
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1495
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1496
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1497
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1498
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1499
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1500
|
-
{
|
|
1501
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1502
|
-
},
|
|
1503
|
-
{
|
|
1504
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1505
|
-
},
|
|
1506
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1507
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1508
|
-
]
|
|
1180
|
+
paths: TRANSFORM_PATHS_0
|
|
1509
1181
|
},
|
|
1510
1182
|
{
|
|
1511
1183
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1512
|
-
paths:
|
|
1513
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1514
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1515
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1516
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1517
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1518
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1519
|
-
]
|
|
1184
|
+
paths: TRANSFORM_PATHS_1
|
|
1520
1185
|
}
|
|
1521
1186
|
])
|
|
1522
1187
|
};
|
|
@@ -1543,37 +1208,11 @@ function disablePricingPlansForService(payload) {
|
|
|
1543
1208
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1544
1209
|
{
|
|
1545
1210
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1546
|
-
paths:
|
|
1547
|
-
{ path: "service.createdDate" },
|
|
1548
|
-
{ path: "service.updatedDate" },
|
|
1549
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1550
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1551
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1552
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1553
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1554
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1555
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1556
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1557
|
-
{
|
|
1558
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1559
|
-
},
|
|
1560
|
-
{
|
|
1561
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1562
|
-
},
|
|
1563
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1564
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1565
|
-
]
|
|
1211
|
+
paths: TRANSFORM_PATHS_0
|
|
1566
1212
|
},
|
|
1567
1213
|
{
|
|
1568
1214
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1569
|
-
paths:
|
|
1570
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1571
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1572
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1573
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1574
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1575
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1576
|
-
]
|
|
1215
|
+
paths: TRANSFORM_PATHS_1
|
|
1577
1216
|
}
|
|
1578
1217
|
])
|
|
1579
1218
|
};
|
|
@@ -1600,38 +1239,11 @@ function setCustomSlug(payload) {
|
|
|
1600
1239
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1601
1240
|
{
|
|
1602
1241
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1603
|
-
paths:
|
|
1604
|
-
{ path: "slug.createdDate" },
|
|
1605
|
-
{ path: "service.createdDate" },
|
|
1606
|
-
{ path: "service.updatedDate" },
|
|
1607
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1608
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1609
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1610
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1611
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1612
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1613
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1614
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1615
|
-
{
|
|
1616
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1617
|
-
},
|
|
1618
|
-
{
|
|
1619
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1620
|
-
},
|
|
1621
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1622
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1623
|
-
]
|
|
1242
|
+
paths: TRANSFORM_PATHS_16
|
|
1624
1243
|
},
|
|
1625
1244
|
{
|
|
1626
1245
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1627
|
-
paths:
|
|
1628
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1629
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1630
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1631
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1632
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1633
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1634
|
-
]
|
|
1246
|
+
paths: TRANSFORM_PATHS_1
|
|
1635
1247
|
}
|
|
1636
1248
|
])
|
|
1637
1249
|
};
|
|
@@ -1679,37 +1291,11 @@ function cloneService(payload) {
|
|
|
1679
1291
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1680
1292
|
{
|
|
1681
1293
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1682
|
-
paths:
|
|
1683
|
-
{ path: "service.createdDate" },
|
|
1684
|
-
{ path: "service.updatedDate" },
|
|
1685
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1686
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1687
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1688
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1689
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1690
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1691
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1692
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1693
|
-
{
|
|
1694
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1695
|
-
},
|
|
1696
|
-
{
|
|
1697
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1698
|
-
},
|
|
1699
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1700
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1701
|
-
]
|
|
1294
|
+
paths: TRANSFORM_PATHS_0
|
|
1702
1295
|
},
|
|
1703
1296
|
{
|
|
1704
1297
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1705
|
-
paths:
|
|
1706
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1707
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1708
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1709
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1710
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1711
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1712
|
-
]
|
|
1298
|
+
paths: TRANSFORM_PATHS_1
|
|
1713
1299
|
}
|
|
1714
1300
|
])
|
|
1715
1301
|
};
|
|
@@ -1764,7 +1350,7 @@ function updateAddOnGroup(payload) {
|
|
|
1764
1350
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1765
1351
|
{
|
|
1766
1352
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
1767
|
-
paths:
|
|
1353
|
+
paths: TRANSFORM_PATHS_6
|
|
1768
1354
|
}
|
|
1769
1355
|
]);
|
|
1770
1356
|
const metadata = {
|
|
@@ -1805,11 +1391,7 @@ function listAddOnGroupsByServiceId(payload) {
|
|
|
1805
1391
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1806
1392
|
{
|
|
1807
1393
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1808
|
-
paths:
|
|
1809
|
-
{
|
|
1810
|
-
path: "addOnGroupsDetails.addOns.mainMedia.image.urlExpirationDate"
|
|
1811
|
-
}
|
|
1812
|
-
]
|
|
1394
|
+
paths: TRANSFORM_PATHS_17
|
|
1813
1395
|
}
|
|
1814
1396
|
])
|
|
1815
1397
|
};
|
|
@@ -1849,6 +1431,128 @@ var import_page_url_v22 = require("@wix/sdk-runtime/transformations/page-url-v2"
|
|
|
1849
1431
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
1850
1432
|
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
1851
1433
|
var import_search_builder_utils = require("@wix/sdk-runtime/search-builder-utils");
|
|
1434
|
+
var TRANSFORM_PATHS_02 = [
|
|
1435
|
+
{ path: "service.media.items.image" },
|
|
1436
|
+
{ path: "service.media.mainMedia.image" },
|
|
1437
|
+
{ path: "service.media.coverMedia.image" },
|
|
1438
|
+
{ path: "service.staffMembers.mainMedia.image" },
|
|
1439
|
+
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
1440
|
+
];
|
|
1441
|
+
var TRANSFORM_PATHS_18 = [
|
|
1442
|
+
{ path: "service.locations.calculatedAddress" },
|
|
1443
|
+
{ path: "service.locations.business.address" },
|
|
1444
|
+
{ path: "service.locations.custom.address" }
|
|
1445
|
+
];
|
|
1446
|
+
var TRANSFORM_PATHS_22 = [
|
|
1447
|
+
{ path: "service.urls.servicePage" },
|
|
1448
|
+
{ path: "service.urls.bookingPage" },
|
|
1449
|
+
{ path: "service.urls.calendarPage" }
|
|
1450
|
+
];
|
|
1451
|
+
var TRANSFORM_PATHS_32 = [
|
|
1452
|
+
{ path: "services.media.items.image" },
|
|
1453
|
+
{ path: "services.media.mainMedia.image" },
|
|
1454
|
+
{ path: "services.media.coverMedia.image" },
|
|
1455
|
+
{ path: "services.staffMembers.mainMedia.image" },
|
|
1456
|
+
{ path: "services.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
1457
|
+
];
|
|
1458
|
+
var TRANSFORM_PATHS_42 = [
|
|
1459
|
+
{ path: "services.locations.calculatedAddress" },
|
|
1460
|
+
{ path: "services.locations.business.address" },
|
|
1461
|
+
{ path: "services.locations.custom.address" }
|
|
1462
|
+
];
|
|
1463
|
+
var TRANSFORM_PATHS_52 = [
|
|
1464
|
+
{ path: "services.urls.servicePage" },
|
|
1465
|
+
{ path: "services.urls.bookingPage" },
|
|
1466
|
+
{ path: "services.urls.calendarPage" }
|
|
1467
|
+
];
|
|
1468
|
+
var TRANSFORM_PATHS_62 = [
|
|
1469
|
+
{ path: "results.item.media.items.image" },
|
|
1470
|
+
{ path: "results.item.media.mainMedia.image" },
|
|
1471
|
+
{ path: "results.item.media.coverMedia.image" },
|
|
1472
|
+
{ path: "results.item.staffMembers.mainMedia.image" },
|
|
1473
|
+
{ path: "results.item.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
1474
|
+
];
|
|
1475
|
+
var TRANSFORM_PATHS_72 = [
|
|
1476
|
+
{ path: "results.item.locations.calculatedAddress" },
|
|
1477
|
+
{ path: "results.item.locations.business.address" },
|
|
1478
|
+
{ path: "results.item.locations.custom.address" }
|
|
1479
|
+
];
|
|
1480
|
+
var TRANSFORM_PATHS_82 = [
|
|
1481
|
+
{ path: "results.item.urls.servicePage" },
|
|
1482
|
+
{ path: "results.item.urls.bookingPage" },
|
|
1483
|
+
{ path: "results.item.urls.calendarPage" }
|
|
1484
|
+
];
|
|
1485
|
+
var TRANSFORM_PATHS_92 = [
|
|
1486
|
+
{ path: "services.service.media.items.image" },
|
|
1487
|
+
{ path: "services.service.media.mainMedia.image" },
|
|
1488
|
+
{ path: "services.service.media.coverMedia.image" },
|
|
1489
|
+
{ path: "services.service.staffMembers.mainMedia.image" },
|
|
1490
|
+
{ path: "services.service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
1491
|
+
];
|
|
1492
|
+
var TRANSFORM_PATHS_102 = [
|
|
1493
|
+
{ path: "services.service.locations.calculatedAddress" },
|
|
1494
|
+
{ path: "services.service.locations.business.address" },
|
|
1495
|
+
{ path: "services.service.locations.custom.address" }
|
|
1496
|
+
];
|
|
1497
|
+
var TRANSFORM_PATHS_112 = [
|
|
1498
|
+
{ path: "services.service.urls.servicePage" },
|
|
1499
|
+
{ path: "services.service.urls.bookingPage" },
|
|
1500
|
+
{ path: "services.service.urls.calendarPage" }
|
|
1501
|
+
];
|
|
1502
|
+
var TRANSFORM_PATHS_122 = [
|
|
1503
|
+
{ path: "bookingPolicies.services.media.items.image" },
|
|
1504
|
+
{ path: "bookingPolicies.services.media.mainMedia.image" },
|
|
1505
|
+
{ path: "bookingPolicies.services.media.coverMedia.image" },
|
|
1506
|
+
{ path: "bookingPolicies.services.staffMembers.mainMedia.image" },
|
|
1507
|
+
{
|
|
1508
|
+
path: "bookingPolicies.services.staffMemberDetails.staffMembers.mainMedia.image"
|
|
1509
|
+
},
|
|
1510
|
+
{ path: "bookingPolicies.connectedServices.media.items.image" },
|
|
1511
|
+
{ path: "bookingPolicies.connectedServices.media.mainMedia.image" },
|
|
1512
|
+
{ path: "bookingPolicies.connectedServices.media.coverMedia.image" },
|
|
1513
|
+
{ path: "bookingPolicies.connectedServices.staffMembers.mainMedia.image" },
|
|
1514
|
+
{
|
|
1515
|
+
path: "bookingPolicies.connectedServices.staffMemberDetails.staffMembers.mainMedia.image"
|
|
1516
|
+
}
|
|
1517
|
+
];
|
|
1518
|
+
var TRANSFORM_PATHS_132 = [
|
|
1519
|
+
{ path: "bookingPolicies.services.locations.calculatedAddress" },
|
|
1520
|
+
{ path: "bookingPolicies.services.locations.business.address" },
|
|
1521
|
+
{ path: "bookingPolicies.services.locations.custom.address" },
|
|
1522
|
+
{ path: "bookingPolicies.connectedServices.locations.calculatedAddress" },
|
|
1523
|
+
{ path: "bookingPolicies.connectedServices.locations.business.address" },
|
|
1524
|
+
{ path: "bookingPolicies.connectedServices.locations.custom.address" }
|
|
1525
|
+
];
|
|
1526
|
+
var TRANSFORM_PATHS_142 = [
|
|
1527
|
+
{ path: "bookingPolicies.services.urls.servicePage" },
|
|
1528
|
+
{ path: "bookingPolicies.services.urls.bookingPage" },
|
|
1529
|
+
{ path: "bookingPolicies.services.urls.calendarPage" },
|
|
1530
|
+
{ path: "bookingPolicies.connectedServices.urls.servicePage" },
|
|
1531
|
+
{ path: "bookingPolicies.connectedServices.urls.bookingPage" },
|
|
1532
|
+
{ path: "bookingPolicies.connectedServices.urls.calendarPage" }
|
|
1533
|
+
];
|
|
1534
|
+
var TRANSFORM_PATHS_152 = [
|
|
1535
|
+
{ path: "businessLocations.locations.calculatedAddress" },
|
|
1536
|
+
{ path: "businessLocations.locations.business.address" },
|
|
1537
|
+
{ path: "businessLocations.locations.custom.address" }
|
|
1538
|
+
];
|
|
1539
|
+
var TRANSFORM_PATHS_162 = [
|
|
1540
|
+
{ path: "locations.calculatedAddress" },
|
|
1541
|
+
{ path: "locations.business.address" },
|
|
1542
|
+
{ path: "locations.custom.address" },
|
|
1543
|
+
{
|
|
1544
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress"
|
|
1545
|
+
},
|
|
1546
|
+
{
|
|
1547
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address"
|
|
1548
|
+
},
|
|
1549
|
+
{
|
|
1550
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address"
|
|
1551
|
+
}
|
|
1552
|
+
];
|
|
1553
|
+
var TRANSFORM_PATHS_172 = [
|
|
1554
|
+
{ path: "addOnGroupsDetails.addOns.mainMedia.image" }
|
|
1555
|
+
];
|
|
1852
1556
|
var ServiceType = /* @__PURE__ */ ((ServiceType2) => {
|
|
1853
1557
|
ServiceType2["APPOINTMENT"] = "APPOINTMENT";
|
|
1854
1558
|
ServiceType2["CLASS"] = "CLASS";
|
|
@@ -2149,29 +1853,15 @@ async function createService2(service) {
|
|
|
2149
1853
|
[
|
|
2150
1854
|
{
|
|
2151
1855
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
2152
|
-
paths:
|
|
2153
|
-
{ path: "service.media.items.image" },
|
|
2154
|
-
{ path: "service.media.mainMedia.image" },
|
|
2155
|
-
{ path: "service.media.coverMedia.image" },
|
|
2156
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
2157
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2158
|
-
]
|
|
1856
|
+
paths: TRANSFORM_PATHS_02
|
|
2159
1857
|
},
|
|
2160
1858
|
{
|
|
2161
1859
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
2162
|
-
paths:
|
|
2163
|
-
{ path: "service.locations.calculatedAddress" },
|
|
2164
|
-
{ path: "service.locations.business.address" },
|
|
2165
|
-
{ path: "service.locations.custom.address" }
|
|
2166
|
-
]
|
|
1860
|
+
paths: TRANSFORM_PATHS_18
|
|
2167
1861
|
},
|
|
2168
1862
|
{
|
|
2169
1863
|
transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
|
|
2170
|
-
paths:
|
|
2171
|
-
{ path: "service.urls.servicePage" },
|
|
2172
|
-
{ path: "service.urls.bookingPage" },
|
|
2173
|
-
{ path: "service.urls.calendarPage" }
|
|
2174
|
-
]
|
|
1864
|
+
paths: TRANSFORM_PATHS_22
|
|
2175
1865
|
}
|
|
2176
1866
|
]
|
|
2177
1867
|
);
|
|
@@ -2184,29 +1874,15 @@ async function createService2(service) {
|
|
|
2184
1874
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2185
1875
|
{
|
|
2186
1876
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2187
|
-
paths:
|
|
2188
|
-
{ path: "service.media.items.image" },
|
|
2189
|
-
{ path: "service.media.mainMedia.image" },
|
|
2190
|
-
{ path: "service.media.coverMedia.image" },
|
|
2191
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
2192
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2193
|
-
]
|
|
1877
|
+
paths: TRANSFORM_PATHS_02
|
|
2194
1878
|
},
|
|
2195
1879
|
{
|
|
2196
1880
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2197
|
-
paths:
|
|
2198
|
-
{ path: "service.locations.calculatedAddress" },
|
|
2199
|
-
{ path: "service.locations.business.address" },
|
|
2200
|
-
{ path: "service.locations.custom.address" }
|
|
2201
|
-
]
|
|
1881
|
+
paths: TRANSFORM_PATHS_18
|
|
2202
1882
|
},
|
|
2203
1883
|
{
|
|
2204
1884
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2205
|
-
paths:
|
|
2206
|
-
{ path: "service.urls.servicePage" },
|
|
2207
|
-
{ path: "service.urls.bookingPage" },
|
|
2208
|
-
{ path: "service.urls.calendarPage" }
|
|
2209
|
-
]
|
|
1885
|
+
paths: TRANSFORM_PATHS_22
|
|
2210
1886
|
}
|
|
2211
1887
|
])
|
|
2212
1888
|
)?.service;
|
|
@@ -2234,29 +1910,15 @@ async function bulkCreateServices2(services, options) {
|
|
|
2234
1910
|
[
|
|
2235
1911
|
{
|
|
2236
1912
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
2237
|
-
paths:
|
|
2238
|
-
{ path: "services.media.items.image" },
|
|
2239
|
-
{ path: "services.media.mainMedia.image" },
|
|
2240
|
-
{ path: "services.media.coverMedia.image" },
|
|
2241
|
-
{ path: "services.staffMembers.mainMedia.image" },
|
|
2242
|
-
{ path: "services.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2243
|
-
]
|
|
1913
|
+
paths: TRANSFORM_PATHS_32
|
|
2244
1914
|
},
|
|
2245
1915
|
{
|
|
2246
1916
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
2247
|
-
paths:
|
|
2248
|
-
{ path: "services.locations.calculatedAddress" },
|
|
2249
|
-
{ path: "services.locations.business.address" },
|
|
2250
|
-
{ path: "services.locations.custom.address" }
|
|
2251
|
-
]
|
|
1917
|
+
paths: TRANSFORM_PATHS_42
|
|
2252
1918
|
},
|
|
2253
1919
|
{
|
|
2254
1920
|
transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
|
|
2255
|
-
paths:
|
|
2256
|
-
{ path: "services.urls.servicePage" },
|
|
2257
|
-
{ path: "services.urls.bookingPage" },
|
|
2258
|
-
{ path: "services.urls.calendarPage" }
|
|
2259
|
-
]
|
|
1921
|
+
paths: TRANSFORM_PATHS_52
|
|
2260
1922
|
}
|
|
2261
1923
|
]
|
|
2262
1924
|
);
|
|
@@ -2269,31 +1931,15 @@ async function bulkCreateServices2(services, options) {
|
|
|
2269
1931
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2270
1932
|
{
|
|
2271
1933
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2272
|
-
paths:
|
|
2273
|
-
{ path: "results.item.media.items.image" },
|
|
2274
|
-
{ path: "results.item.media.mainMedia.image" },
|
|
2275
|
-
{ path: "results.item.media.coverMedia.image" },
|
|
2276
|
-
{ path: "results.item.staffMembers.mainMedia.image" },
|
|
2277
|
-
{
|
|
2278
|
-
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2279
|
-
}
|
|
2280
|
-
]
|
|
1934
|
+
paths: TRANSFORM_PATHS_62
|
|
2281
1935
|
},
|
|
2282
1936
|
{
|
|
2283
1937
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2284
|
-
paths:
|
|
2285
|
-
{ path: "results.item.locations.calculatedAddress" },
|
|
2286
|
-
{ path: "results.item.locations.business.address" },
|
|
2287
|
-
{ path: "results.item.locations.custom.address" }
|
|
2288
|
-
]
|
|
1938
|
+
paths: TRANSFORM_PATHS_72
|
|
2289
1939
|
},
|
|
2290
1940
|
{
|
|
2291
1941
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2292
|
-
paths:
|
|
2293
|
-
{ path: "results.item.urls.servicePage" },
|
|
2294
|
-
{ path: "results.item.urls.bookingPage" },
|
|
2295
|
-
{ path: "results.item.urls.calendarPage" }
|
|
2296
|
-
]
|
|
1942
|
+
paths: TRANSFORM_PATHS_82
|
|
2297
1943
|
}
|
|
2298
1944
|
])
|
|
2299
1945
|
);
|
|
@@ -2329,29 +1975,15 @@ async function getService2(serviceId, options) {
|
|
|
2329
1975
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2330
1976
|
{
|
|
2331
1977
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2332
|
-
paths:
|
|
2333
|
-
{ path: "service.media.items.image" },
|
|
2334
|
-
{ path: "service.media.mainMedia.image" },
|
|
2335
|
-
{ path: "service.media.coverMedia.image" },
|
|
2336
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
2337
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2338
|
-
]
|
|
1978
|
+
paths: TRANSFORM_PATHS_02
|
|
2339
1979
|
},
|
|
2340
1980
|
{
|
|
2341
1981
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2342
|
-
paths:
|
|
2343
|
-
{ path: "service.locations.calculatedAddress" },
|
|
2344
|
-
{ path: "service.locations.business.address" },
|
|
2345
|
-
{ path: "service.locations.custom.address" }
|
|
2346
|
-
]
|
|
1982
|
+
paths: TRANSFORM_PATHS_18
|
|
2347
1983
|
},
|
|
2348
1984
|
{
|
|
2349
1985
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2350
|
-
paths:
|
|
2351
|
-
{ path: "service.urls.servicePage" },
|
|
2352
|
-
{ path: "service.urls.bookingPage" },
|
|
2353
|
-
{ path: "service.urls.calendarPage" }
|
|
2354
|
-
]
|
|
1986
|
+
paths: TRANSFORM_PATHS_22
|
|
2355
1987
|
}
|
|
2356
1988
|
])
|
|
2357
1989
|
)?.service;
|
|
@@ -2379,29 +2011,15 @@ async function updateService2(_id, service) {
|
|
|
2379
2011
|
[
|
|
2380
2012
|
{
|
|
2381
2013
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
2382
|
-
paths:
|
|
2383
|
-
{ path: "service.media.items.image" },
|
|
2384
|
-
{ path: "service.media.mainMedia.image" },
|
|
2385
|
-
{ path: "service.media.coverMedia.image" },
|
|
2386
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
2387
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2388
|
-
]
|
|
2014
|
+
paths: TRANSFORM_PATHS_02
|
|
2389
2015
|
},
|
|
2390
2016
|
{
|
|
2391
2017
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
2392
|
-
paths:
|
|
2393
|
-
{ path: "service.locations.calculatedAddress" },
|
|
2394
|
-
{ path: "service.locations.business.address" },
|
|
2395
|
-
{ path: "service.locations.custom.address" }
|
|
2396
|
-
]
|
|
2018
|
+
paths: TRANSFORM_PATHS_18
|
|
2397
2019
|
},
|
|
2398
2020
|
{
|
|
2399
2021
|
transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
|
|
2400
|
-
paths:
|
|
2401
|
-
{ path: "service.urls.servicePage" },
|
|
2402
|
-
{ path: "service.urls.bookingPage" },
|
|
2403
|
-
{ path: "service.urls.calendarPage" }
|
|
2404
|
-
]
|
|
2022
|
+
paths: TRANSFORM_PATHS_22
|
|
2405
2023
|
}
|
|
2406
2024
|
]
|
|
2407
2025
|
);
|
|
@@ -2414,29 +2032,15 @@ async function updateService2(_id, service) {
|
|
|
2414
2032
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2415
2033
|
{
|
|
2416
2034
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2417
|
-
paths:
|
|
2418
|
-
{ path: "service.media.items.image" },
|
|
2419
|
-
{ path: "service.media.mainMedia.image" },
|
|
2420
|
-
{ path: "service.media.coverMedia.image" },
|
|
2421
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
2422
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2423
|
-
]
|
|
2035
|
+
paths: TRANSFORM_PATHS_02
|
|
2424
2036
|
},
|
|
2425
2037
|
{
|
|
2426
2038
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2427
|
-
paths:
|
|
2428
|
-
{ path: "service.locations.calculatedAddress" },
|
|
2429
|
-
{ path: "service.locations.business.address" },
|
|
2430
|
-
{ path: "service.locations.custom.address" }
|
|
2431
|
-
]
|
|
2039
|
+
paths: TRANSFORM_PATHS_18
|
|
2432
2040
|
},
|
|
2433
2041
|
{
|
|
2434
2042
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2435
|
-
paths:
|
|
2436
|
-
{ path: "service.urls.servicePage" },
|
|
2437
|
-
{ path: "service.urls.bookingPage" },
|
|
2438
|
-
{ path: "service.urls.calendarPage" }
|
|
2439
|
-
]
|
|
2043
|
+
paths: TRANSFORM_PATHS_22
|
|
2440
2044
|
}
|
|
2441
2045
|
])
|
|
2442
2046
|
)?.service;
|
|
@@ -2464,31 +2068,15 @@ async function bulkUpdateServices2(options) {
|
|
|
2464
2068
|
[
|
|
2465
2069
|
{
|
|
2466
2070
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
2467
|
-
paths:
|
|
2468
|
-
{ path: "services.service.media.items.image" },
|
|
2469
|
-
{ path: "services.service.media.mainMedia.image" },
|
|
2470
|
-
{ path: "services.service.media.coverMedia.image" },
|
|
2471
|
-
{ path: "services.service.staffMembers.mainMedia.image" },
|
|
2472
|
-
{
|
|
2473
|
-
path: "services.service.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2474
|
-
}
|
|
2475
|
-
]
|
|
2071
|
+
paths: TRANSFORM_PATHS_92
|
|
2476
2072
|
},
|
|
2477
2073
|
{
|
|
2478
2074
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
2479
|
-
paths:
|
|
2480
|
-
{ path: "services.service.locations.calculatedAddress" },
|
|
2481
|
-
{ path: "services.service.locations.business.address" },
|
|
2482
|
-
{ path: "services.service.locations.custom.address" }
|
|
2483
|
-
]
|
|
2075
|
+
paths: TRANSFORM_PATHS_102
|
|
2484
2076
|
},
|
|
2485
2077
|
{
|
|
2486
2078
|
transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
|
|
2487
|
-
paths:
|
|
2488
|
-
{ path: "services.service.urls.servicePage" },
|
|
2489
|
-
{ path: "services.service.urls.bookingPage" },
|
|
2490
|
-
{ path: "services.service.urls.calendarPage" }
|
|
2491
|
-
]
|
|
2079
|
+
paths: TRANSFORM_PATHS_112
|
|
2492
2080
|
}
|
|
2493
2081
|
]
|
|
2494
2082
|
);
|
|
@@ -2501,31 +2089,15 @@ async function bulkUpdateServices2(options) {
|
|
|
2501
2089
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2502
2090
|
{
|
|
2503
2091
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2504
|
-
paths:
|
|
2505
|
-
{ path: "results.item.media.items.image" },
|
|
2506
|
-
{ path: "results.item.media.mainMedia.image" },
|
|
2507
|
-
{ path: "results.item.media.coverMedia.image" },
|
|
2508
|
-
{ path: "results.item.staffMembers.mainMedia.image" },
|
|
2509
|
-
{
|
|
2510
|
-
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2511
|
-
}
|
|
2512
|
-
]
|
|
2092
|
+
paths: TRANSFORM_PATHS_62
|
|
2513
2093
|
},
|
|
2514
2094
|
{
|
|
2515
2095
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2516
|
-
paths:
|
|
2517
|
-
{ path: "results.item.locations.calculatedAddress" },
|
|
2518
|
-
{ path: "results.item.locations.business.address" },
|
|
2519
|
-
{ path: "results.item.locations.custom.address" }
|
|
2520
|
-
]
|
|
2096
|
+
paths: TRANSFORM_PATHS_72
|
|
2521
2097
|
},
|
|
2522
2098
|
{
|
|
2523
2099
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2524
|
-
paths:
|
|
2525
|
-
{ path: "results.item.urls.servicePage" },
|
|
2526
|
-
{ path: "results.item.urls.bookingPage" },
|
|
2527
|
-
{ path: "results.item.urls.calendarPage" }
|
|
2528
|
-
]
|
|
2100
|
+
paths: TRANSFORM_PATHS_82
|
|
2529
2101
|
}
|
|
2530
2102
|
])
|
|
2531
2103
|
);
|
|
@@ -2556,29 +2128,15 @@ async function bulkUpdateServicesByFilter2(filter, options) {
|
|
|
2556
2128
|
[
|
|
2557
2129
|
{
|
|
2558
2130
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
2559
|
-
paths:
|
|
2560
|
-
{ path: "service.media.items.image" },
|
|
2561
|
-
{ path: "service.media.mainMedia.image" },
|
|
2562
|
-
{ path: "service.media.coverMedia.image" },
|
|
2563
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
2564
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2565
|
-
]
|
|
2131
|
+
paths: TRANSFORM_PATHS_02
|
|
2566
2132
|
},
|
|
2567
2133
|
{
|
|
2568
2134
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
2569
|
-
paths:
|
|
2570
|
-
{ path: "service.locations.calculatedAddress" },
|
|
2571
|
-
{ path: "service.locations.business.address" },
|
|
2572
|
-
{ path: "service.locations.custom.address" }
|
|
2573
|
-
]
|
|
2135
|
+
paths: TRANSFORM_PATHS_18
|
|
2574
2136
|
},
|
|
2575
2137
|
{
|
|
2576
2138
|
transformFn: import_page_url_v2.transformSDKPageURLV2ToRESTPageURLV2,
|
|
2577
|
-
paths:
|
|
2578
|
-
{ path: "service.urls.servicePage" },
|
|
2579
|
-
{ path: "service.urls.bookingPage" },
|
|
2580
|
-
{ path: "service.urls.calendarPage" }
|
|
2581
|
-
]
|
|
2139
|
+
paths: TRANSFORM_PATHS_22
|
|
2582
2140
|
}
|
|
2583
2141
|
]
|
|
2584
2142
|
);
|
|
@@ -2651,31 +2209,15 @@ async function bulkDeleteServices2(ids, options) {
|
|
|
2651
2209
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2652
2210
|
{
|
|
2653
2211
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2654
|
-
paths:
|
|
2655
|
-
{ path: "results.item.media.items.image" },
|
|
2656
|
-
{ path: "results.item.media.mainMedia.image" },
|
|
2657
|
-
{ path: "results.item.media.coverMedia.image" },
|
|
2658
|
-
{ path: "results.item.staffMembers.mainMedia.image" },
|
|
2659
|
-
{
|
|
2660
|
-
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2661
|
-
}
|
|
2662
|
-
]
|
|
2212
|
+
paths: TRANSFORM_PATHS_62
|
|
2663
2213
|
},
|
|
2664
2214
|
{
|
|
2665
2215
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2666
|
-
paths:
|
|
2667
|
-
{ path: "results.item.locations.calculatedAddress" },
|
|
2668
|
-
{ path: "results.item.locations.business.address" },
|
|
2669
|
-
{ path: "results.item.locations.custom.address" }
|
|
2670
|
-
]
|
|
2216
|
+
paths: TRANSFORM_PATHS_72
|
|
2671
2217
|
},
|
|
2672
2218
|
{
|
|
2673
2219
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2674
|
-
paths:
|
|
2675
|
-
{ path: "results.item.urls.servicePage" },
|
|
2676
|
-
{ path: "results.item.urls.bookingPage" },
|
|
2677
|
-
{ path: "results.item.urls.calendarPage" }
|
|
2678
|
-
]
|
|
2220
|
+
paths: TRANSFORM_PATHS_82
|
|
2679
2221
|
}
|
|
2680
2222
|
])
|
|
2681
2223
|
);
|
|
@@ -2761,31 +2303,15 @@ function queryServices2(options) {
|
|
|
2761
2303
|
(0, import_transform_paths2.transformPaths)(data, [
|
|
2762
2304
|
{
|
|
2763
2305
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2764
|
-
paths:
|
|
2765
|
-
{ path: "services.media.items.image" },
|
|
2766
|
-
{ path: "services.media.mainMedia.image" },
|
|
2767
|
-
{ path: "services.media.coverMedia.image" },
|
|
2768
|
-
{ path: "services.staffMembers.mainMedia.image" },
|
|
2769
|
-
{
|
|
2770
|
-
path: "services.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2771
|
-
}
|
|
2772
|
-
]
|
|
2306
|
+
paths: TRANSFORM_PATHS_32
|
|
2773
2307
|
},
|
|
2774
2308
|
{
|
|
2775
2309
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2776
|
-
paths:
|
|
2777
|
-
{ path: "services.locations.calculatedAddress" },
|
|
2778
|
-
{ path: "services.locations.business.address" },
|
|
2779
|
-
{ path: "services.locations.custom.address" }
|
|
2780
|
-
]
|
|
2310
|
+
paths: TRANSFORM_PATHS_42
|
|
2781
2311
|
},
|
|
2782
2312
|
{
|
|
2783
2313
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2784
|
-
paths:
|
|
2785
|
-
{ path: "services.urls.servicePage" },
|
|
2786
|
-
{ path: "services.urls.bookingPage" },
|
|
2787
|
-
{ path: "services.urls.calendarPage" }
|
|
2788
|
-
]
|
|
2314
|
+
paths: TRANSFORM_PATHS_52
|
|
2789
2315
|
}
|
|
2790
2316
|
])
|
|
2791
2317
|
);
|
|
@@ -2821,31 +2347,15 @@ async function typedQueryServices(query, options) {
|
|
|
2821
2347
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2822
2348
|
{
|
|
2823
2349
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2824
|
-
paths:
|
|
2825
|
-
{ path: "services.media.items.image" },
|
|
2826
|
-
{ path: "services.media.mainMedia.image" },
|
|
2827
|
-
{ path: "services.media.coverMedia.image" },
|
|
2828
|
-
{ path: "services.staffMembers.mainMedia.image" },
|
|
2829
|
-
{
|
|
2830
|
-
path: "services.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2831
|
-
}
|
|
2832
|
-
]
|
|
2350
|
+
paths: TRANSFORM_PATHS_32
|
|
2833
2351
|
},
|
|
2834
2352
|
{
|
|
2835
2353
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2836
|
-
paths:
|
|
2837
|
-
{ path: "services.locations.calculatedAddress" },
|
|
2838
|
-
{ path: "services.locations.business.address" },
|
|
2839
|
-
{ path: "services.locations.custom.address" }
|
|
2840
|
-
]
|
|
2354
|
+
paths: TRANSFORM_PATHS_42
|
|
2841
2355
|
},
|
|
2842
2356
|
{
|
|
2843
2357
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2844
|
-
paths:
|
|
2845
|
-
{ path: "services.urls.servicePage" },
|
|
2846
|
-
{ path: "services.urls.bookingPage" },
|
|
2847
|
-
{ path: "services.urls.calendarPage" }
|
|
2848
|
-
]
|
|
2358
|
+
paths: TRANSFORM_PATHS_52
|
|
2849
2359
|
}
|
|
2850
2360
|
])
|
|
2851
2361
|
);
|
|
@@ -2879,31 +2389,15 @@ async function searchServices2(search) {
|
|
|
2879
2389
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2880
2390
|
{
|
|
2881
2391
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2882
|
-
paths:
|
|
2883
|
-
{ path: "services.media.items.image" },
|
|
2884
|
-
{ path: "services.media.mainMedia.image" },
|
|
2885
|
-
{ path: "services.media.coverMedia.image" },
|
|
2886
|
-
{ path: "services.staffMembers.mainMedia.image" },
|
|
2887
|
-
{
|
|
2888
|
-
path: "services.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2889
|
-
}
|
|
2890
|
-
]
|
|
2392
|
+
paths: TRANSFORM_PATHS_32
|
|
2891
2393
|
},
|
|
2892
2394
|
{
|
|
2893
2395
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2894
|
-
paths:
|
|
2895
|
-
{ path: "services.locations.calculatedAddress" },
|
|
2896
|
-
{ path: "services.locations.business.address" },
|
|
2897
|
-
{ path: "services.locations.custom.address" }
|
|
2898
|
-
]
|
|
2396
|
+
paths: TRANSFORM_PATHS_42
|
|
2899
2397
|
},
|
|
2900
2398
|
{
|
|
2901
2399
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2902
|
-
paths:
|
|
2903
|
-
{ path: "services.urls.servicePage" },
|
|
2904
|
-
{ path: "services.urls.bookingPage" },
|
|
2905
|
-
{ path: "services.urls.calendarPage" }
|
|
2906
|
-
]
|
|
2400
|
+
paths: TRANSFORM_PATHS_52
|
|
2907
2401
|
}
|
|
2908
2402
|
])
|
|
2909
2403
|
);
|
|
@@ -2933,54 +2427,15 @@ async function queryPolicies2(query) {
|
|
|
2933
2427
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
2934
2428
|
{
|
|
2935
2429
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
2936
|
-
paths:
|
|
2937
|
-
{ path: "bookingPolicies.services.media.items.image" },
|
|
2938
|
-
{ path: "bookingPolicies.services.media.mainMedia.image" },
|
|
2939
|
-
{ path: "bookingPolicies.services.media.coverMedia.image" },
|
|
2940
|
-
{ path: "bookingPolicies.services.staffMembers.mainMedia.image" },
|
|
2941
|
-
{
|
|
2942
|
-
path: "bookingPolicies.services.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2943
|
-
},
|
|
2944
|
-
{ path: "bookingPolicies.connectedServices.media.items.image" },
|
|
2945
|
-
{ path: "bookingPolicies.connectedServices.media.mainMedia.image" },
|
|
2946
|
-
{
|
|
2947
|
-
path: "bookingPolicies.connectedServices.media.coverMedia.image"
|
|
2948
|
-
},
|
|
2949
|
-
{
|
|
2950
|
-
path: "bookingPolicies.connectedServices.staffMembers.mainMedia.image"
|
|
2951
|
-
},
|
|
2952
|
-
{
|
|
2953
|
-
path: "bookingPolicies.connectedServices.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2954
|
-
}
|
|
2955
|
-
]
|
|
2430
|
+
paths: TRANSFORM_PATHS_122
|
|
2956
2431
|
},
|
|
2957
2432
|
{
|
|
2958
2433
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
2959
|
-
paths:
|
|
2960
|
-
{ path: "bookingPolicies.services.locations.calculatedAddress" },
|
|
2961
|
-
{ path: "bookingPolicies.services.locations.business.address" },
|
|
2962
|
-
{ path: "bookingPolicies.services.locations.custom.address" },
|
|
2963
|
-
{
|
|
2964
|
-
path: "bookingPolicies.connectedServices.locations.calculatedAddress"
|
|
2965
|
-
},
|
|
2966
|
-
{
|
|
2967
|
-
path: "bookingPolicies.connectedServices.locations.business.address"
|
|
2968
|
-
},
|
|
2969
|
-
{
|
|
2970
|
-
path: "bookingPolicies.connectedServices.locations.custom.address"
|
|
2971
|
-
}
|
|
2972
|
-
]
|
|
2434
|
+
paths: TRANSFORM_PATHS_132
|
|
2973
2435
|
},
|
|
2974
2436
|
{
|
|
2975
2437
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
2976
|
-
paths:
|
|
2977
|
-
{ path: "bookingPolicies.services.urls.servicePage" },
|
|
2978
|
-
{ path: "bookingPolicies.services.urls.bookingPage" },
|
|
2979
|
-
{ path: "bookingPolicies.services.urls.calendarPage" },
|
|
2980
|
-
{ path: "bookingPolicies.connectedServices.urls.servicePage" },
|
|
2981
|
-
{ path: "bookingPolicies.connectedServices.urls.bookingPage" },
|
|
2982
|
-
{ path: "bookingPolicies.connectedServices.urls.calendarPage" }
|
|
2983
|
-
]
|
|
2438
|
+
paths: TRANSFORM_PATHS_142
|
|
2984
2439
|
}
|
|
2985
2440
|
])
|
|
2986
2441
|
);
|
|
@@ -3066,11 +2521,7 @@ async function queryLocations2(options) {
|
|
|
3066
2521
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3067
2522
|
{
|
|
3068
2523
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3069
|
-
paths:
|
|
3070
|
-
{ path: "businessLocations.locations.calculatedAddress" },
|
|
3071
|
-
{ path: "businessLocations.locations.business.address" },
|
|
3072
|
-
{ path: "businessLocations.locations.custom.address" }
|
|
3073
|
-
]
|
|
2524
|
+
paths: TRANSFORM_PATHS_152
|
|
3074
2525
|
}
|
|
3075
2526
|
])
|
|
3076
2527
|
);
|
|
@@ -3125,20 +2576,7 @@ async function setServiceLocations2(serviceId, options) {
|
|
|
3125
2576
|
[
|
|
3126
2577
|
{
|
|
3127
2578
|
transformFn: import_address.transformSDKAddressToRESTAddress,
|
|
3128
|
-
paths:
|
|
3129
|
-
{ path: "locations.calculatedAddress" },
|
|
3130
|
-
{ path: "locations.business.address" },
|
|
3131
|
-
{ path: "locations.custom.address" },
|
|
3132
|
-
{
|
|
3133
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress"
|
|
3134
|
-
},
|
|
3135
|
-
{
|
|
3136
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address"
|
|
3137
|
-
},
|
|
3138
|
-
{
|
|
3139
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address"
|
|
3140
|
-
}
|
|
3141
|
-
]
|
|
2579
|
+
paths: TRANSFORM_PATHS_162
|
|
3142
2580
|
}
|
|
3143
2581
|
]
|
|
3144
2582
|
);
|
|
@@ -3151,29 +2589,15 @@ async function setServiceLocations2(serviceId, options) {
|
|
|
3151
2589
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3152
2590
|
{
|
|
3153
2591
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3154
|
-
paths:
|
|
3155
|
-
{ path: "service.media.items.image" },
|
|
3156
|
-
{ path: "service.media.mainMedia.image" },
|
|
3157
|
-
{ path: "service.media.coverMedia.image" },
|
|
3158
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
3159
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
3160
|
-
]
|
|
2592
|
+
paths: TRANSFORM_PATHS_02
|
|
3161
2593
|
},
|
|
3162
2594
|
{
|
|
3163
2595
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3164
|
-
paths:
|
|
3165
|
-
{ path: "service.locations.calculatedAddress" },
|
|
3166
|
-
{ path: "service.locations.business.address" },
|
|
3167
|
-
{ path: "service.locations.custom.address" }
|
|
3168
|
-
]
|
|
2596
|
+
paths: TRANSFORM_PATHS_18
|
|
3169
2597
|
},
|
|
3170
2598
|
{
|
|
3171
2599
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
3172
|
-
paths:
|
|
3173
|
-
{ path: "service.urls.servicePage" },
|
|
3174
|
-
{ path: "service.urls.bookingPage" },
|
|
3175
|
-
{ path: "service.urls.calendarPage" }
|
|
3176
|
-
]
|
|
2600
|
+
paths: TRANSFORM_PATHS_22
|
|
3177
2601
|
}
|
|
3178
2602
|
])
|
|
3179
2603
|
);
|
|
@@ -3213,29 +2637,15 @@ async function enablePricingPlansForService2(serviceId, pricingPlanIds) {
|
|
|
3213
2637
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3214
2638
|
{
|
|
3215
2639
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3216
|
-
paths:
|
|
3217
|
-
{ path: "service.media.items.image" },
|
|
3218
|
-
{ path: "service.media.mainMedia.image" },
|
|
3219
|
-
{ path: "service.media.coverMedia.image" },
|
|
3220
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
3221
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
3222
|
-
]
|
|
2640
|
+
paths: TRANSFORM_PATHS_02
|
|
3223
2641
|
},
|
|
3224
2642
|
{
|
|
3225
2643
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3226
|
-
paths:
|
|
3227
|
-
{ path: "service.locations.calculatedAddress" },
|
|
3228
|
-
{ path: "service.locations.business.address" },
|
|
3229
|
-
{ path: "service.locations.custom.address" }
|
|
3230
|
-
]
|
|
2644
|
+
paths: TRANSFORM_PATHS_18
|
|
3231
2645
|
},
|
|
3232
2646
|
{
|
|
3233
2647
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
3234
|
-
paths:
|
|
3235
|
-
{ path: "service.urls.servicePage" },
|
|
3236
|
-
{ path: "service.urls.bookingPage" },
|
|
3237
|
-
{ path: "service.urls.calendarPage" }
|
|
3238
|
-
]
|
|
2648
|
+
paths: TRANSFORM_PATHS_22
|
|
3239
2649
|
}
|
|
3240
2650
|
])
|
|
3241
2651
|
);
|
|
@@ -3270,29 +2680,15 @@ async function disablePricingPlansForService2(serviceId, options) {
|
|
|
3270
2680
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3271
2681
|
{
|
|
3272
2682
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3273
|
-
paths:
|
|
3274
|
-
{ path: "service.media.items.image" },
|
|
3275
|
-
{ path: "service.media.mainMedia.image" },
|
|
3276
|
-
{ path: "service.media.coverMedia.image" },
|
|
3277
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
3278
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
3279
|
-
]
|
|
2683
|
+
paths: TRANSFORM_PATHS_02
|
|
3280
2684
|
},
|
|
3281
2685
|
{
|
|
3282
2686
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3283
|
-
paths:
|
|
3284
|
-
{ path: "service.locations.calculatedAddress" },
|
|
3285
|
-
{ path: "service.locations.business.address" },
|
|
3286
|
-
{ path: "service.locations.custom.address" }
|
|
3287
|
-
]
|
|
2687
|
+
paths: TRANSFORM_PATHS_18
|
|
3288
2688
|
},
|
|
3289
2689
|
{
|
|
3290
2690
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
3291
|
-
paths:
|
|
3292
|
-
{ path: "service.urls.servicePage" },
|
|
3293
|
-
{ path: "service.urls.bookingPage" },
|
|
3294
|
-
{ path: "service.urls.calendarPage" }
|
|
3295
|
-
]
|
|
2691
|
+
paths: TRANSFORM_PATHS_22
|
|
3296
2692
|
}
|
|
3297
2693
|
])
|
|
3298
2694
|
);
|
|
@@ -3328,29 +2724,15 @@ async function setCustomSlug2(serviceId, options) {
|
|
|
3328
2724
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3329
2725
|
{
|
|
3330
2726
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3331
|
-
paths:
|
|
3332
|
-
{ path: "service.media.items.image" },
|
|
3333
|
-
{ path: "service.media.mainMedia.image" },
|
|
3334
|
-
{ path: "service.media.coverMedia.image" },
|
|
3335
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
3336
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
3337
|
-
]
|
|
2727
|
+
paths: TRANSFORM_PATHS_02
|
|
3338
2728
|
},
|
|
3339
2729
|
{
|
|
3340
2730
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3341
|
-
paths:
|
|
3342
|
-
{ path: "service.locations.calculatedAddress" },
|
|
3343
|
-
{ path: "service.locations.business.address" },
|
|
3344
|
-
{ path: "service.locations.custom.address" }
|
|
3345
|
-
]
|
|
2731
|
+
paths: TRANSFORM_PATHS_18
|
|
3346
2732
|
},
|
|
3347
2733
|
{
|
|
3348
2734
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
3349
|
-
paths:
|
|
3350
|
-
{ path: "service.urls.servicePage" },
|
|
3351
|
-
{ path: "service.urls.bookingPage" },
|
|
3352
|
-
{ path: "service.urls.calendarPage" }
|
|
3353
|
-
]
|
|
2735
|
+
paths: TRANSFORM_PATHS_22
|
|
3354
2736
|
}
|
|
3355
2737
|
])
|
|
3356
2738
|
);
|
|
@@ -3408,29 +2790,15 @@ async function cloneService2(sourceServiceId) {
|
|
|
3408
2790
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3409
2791
|
{
|
|
3410
2792
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3411
|
-
paths:
|
|
3412
|
-
{ path: "service.media.items.image" },
|
|
3413
|
-
{ path: "service.media.mainMedia.image" },
|
|
3414
|
-
{ path: "service.media.coverMedia.image" },
|
|
3415
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
3416
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
3417
|
-
]
|
|
2793
|
+
paths: TRANSFORM_PATHS_02
|
|
3418
2794
|
},
|
|
3419
2795
|
{
|
|
3420
2796
|
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
3421
|
-
paths:
|
|
3422
|
-
{ path: "service.locations.calculatedAddress" },
|
|
3423
|
-
{ path: "service.locations.business.address" },
|
|
3424
|
-
{ path: "service.locations.custom.address" }
|
|
3425
|
-
]
|
|
2797
|
+
paths: TRANSFORM_PATHS_18
|
|
3426
2798
|
},
|
|
3427
2799
|
{
|
|
3428
2800
|
transformFn: import_page_url_v22.transformRESTPageURLV2ToSDKPageURLV2,
|
|
3429
|
-
paths:
|
|
3430
|
-
{ path: "service.urls.servicePage" },
|
|
3431
|
-
{ path: "service.urls.bookingPage" },
|
|
3432
|
-
{ path: "service.urls.calendarPage" }
|
|
3433
|
-
]
|
|
2801
|
+
paths: TRANSFORM_PATHS_22
|
|
3434
2802
|
}
|
|
3435
2803
|
])
|
|
3436
2804
|
);
|
|
@@ -3550,7 +2918,7 @@ async function listAddOnGroupsByServiceId2(serviceId, options) {
|
|
|
3550
2918
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
3551
2919
|
{
|
|
3552
2920
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
3553
|
-
paths:
|
|
2921
|
+
paths: TRANSFORM_PATHS_172
|
|
3554
2922
|
}
|
|
3555
2923
|
])
|
|
3556
2924
|
);
|