@wix/auto_sdk_bookings_services 1.0.286 → 1.0.288
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-CwRIKSe0.d.ts → bookings-services-v2-service-services.universal-CJZU8UkN.d.ts} +27 -1
- 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 +28 -2
- package/build/cjs/meta.js +323 -741
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-CwRIKSe0.d.mts → bookings-services-v2-service-services.universal-CJZU8UkN.d.mts} +27 -1
- 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 +28 -2
- 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-D1yGlSUM.d.ts → bookings-services-v2-service-services.universal-zyZZaNP7.d.ts} +32 -1
- 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 +33 -2
- package/build/internal/es/{bookings-services-v2-service-services.universal-D1yGlSUM.d.mts → bookings-services-v2-service-services.universal-zyZZaNP7.d.mts} +32 -1
- 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 +33 -2
- package/package.json +2 -2
package/build/cjs/meta.js
CHANGED
|
@@ -106,6 +106,283 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
106
106
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
107
107
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
108
108
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
109
|
+
var TRANSFORM_PATHS_0 = [
|
|
110
|
+
{ path: "service.createdDate" },
|
|
111
|
+
{ path: "service.updatedDate" },
|
|
112
|
+
{ path: "service.media.items.image.urlExpirationDate" },
|
|
113
|
+
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
114
|
+
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
115
|
+
{ path: "service.payment.subscription.recurringStartDate" },
|
|
116
|
+
{ path: "service.bookingPolicy.createdDate" },
|
|
117
|
+
{ path: "service.bookingPolicy.updatedDate" },
|
|
118
|
+
{ path: "service.schedule.firstSessionStart" },
|
|
119
|
+
{ path: "service.schedule.lastSessionEnd" },
|
|
120
|
+
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
121
|
+
{
|
|
122
|
+
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
123
|
+
},
|
|
124
|
+
{ path: "service.supportedSlugs.createdDate" },
|
|
125
|
+
{ path: "service.mainSlug.createdDate" }
|
|
126
|
+
];
|
|
127
|
+
var TRANSFORM_PATHS_1 = [
|
|
128
|
+
{ path: "service.locations.business.address.geocode.latitude" },
|
|
129
|
+
{ path: "service.locations.business.address.geocode.longitude" },
|
|
130
|
+
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
131
|
+
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
132
|
+
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
133
|
+
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
134
|
+
];
|
|
135
|
+
var TRANSFORM_PATHS_2 = [
|
|
136
|
+
{ path: "services.createdDate" },
|
|
137
|
+
{ path: "services.updatedDate" },
|
|
138
|
+
{ path: "services.media.items.image.urlExpirationDate" },
|
|
139
|
+
{ path: "services.media.mainMedia.image.urlExpirationDate" },
|
|
140
|
+
{ path: "services.media.coverMedia.image.urlExpirationDate" },
|
|
141
|
+
{ path: "services.payment.subscription.recurringStartDate" },
|
|
142
|
+
{ path: "services.bookingPolicy.createdDate" },
|
|
143
|
+
{ path: "services.bookingPolicy.updatedDate" },
|
|
144
|
+
{ path: "services.schedule.firstSessionStart" },
|
|
145
|
+
{ path: "services.schedule.lastSessionEnd" },
|
|
146
|
+
{ path: "services.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
147
|
+
{
|
|
148
|
+
path: "services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
149
|
+
},
|
|
150
|
+
{ path: "services.supportedSlugs.createdDate" },
|
|
151
|
+
{ path: "services.mainSlug.createdDate" }
|
|
152
|
+
];
|
|
153
|
+
var TRANSFORM_PATHS_3 = [
|
|
154
|
+
{ path: "services.locations.business.address.geocode.latitude" },
|
|
155
|
+
{ path: "services.locations.business.address.geocode.longitude" },
|
|
156
|
+
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
157
|
+
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
158
|
+
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
159
|
+
{ path: "services.locations.calculatedAddress.geocode.longitude" }
|
|
160
|
+
];
|
|
161
|
+
var TRANSFORM_PATHS_4 = [
|
|
162
|
+
{ path: "results.item.createdDate" },
|
|
163
|
+
{ path: "results.item.updatedDate" },
|
|
164
|
+
{ path: "results.item.media.items.image.urlExpirationDate" },
|
|
165
|
+
{ path: "results.item.media.mainMedia.image.urlExpirationDate" },
|
|
166
|
+
{ path: "results.item.media.coverMedia.image.urlExpirationDate" },
|
|
167
|
+
{ path: "results.item.payment.subscription.recurringStartDate" },
|
|
168
|
+
{ path: "results.item.bookingPolicy.createdDate" },
|
|
169
|
+
{ path: "results.item.bookingPolicy.updatedDate" },
|
|
170
|
+
{ path: "results.item.schedule.firstSessionStart" },
|
|
171
|
+
{ path: "results.item.schedule.lastSessionEnd" },
|
|
172
|
+
{ path: "results.item.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
173
|
+
{
|
|
174
|
+
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
175
|
+
},
|
|
176
|
+
{ path: "results.item.supportedSlugs.createdDate" },
|
|
177
|
+
{ path: "results.item.mainSlug.createdDate" }
|
|
178
|
+
];
|
|
179
|
+
var TRANSFORM_PATHS_5 = [
|
|
180
|
+
{ path: "results.item.locations.business.address.geocode.latitude" },
|
|
181
|
+
{ path: "results.item.locations.business.address.geocode.longitude" },
|
|
182
|
+
{ path: "results.item.locations.custom.address.geocode.latitude" },
|
|
183
|
+
{ path: "results.item.locations.custom.address.geocode.longitude" },
|
|
184
|
+
{ path: "results.item.locations.calculatedAddress.geocode.latitude" },
|
|
185
|
+
{ path: "results.item.locations.calculatedAddress.geocode.longitude" }
|
|
186
|
+
];
|
|
187
|
+
var TRANSFORM_PATHS_6 = [{ path: "mask" }];
|
|
188
|
+
var TRANSFORM_PATHS_7 = [{ path: "services.mask" }];
|
|
189
|
+
var TRANSFORM_PATHS_8 = [
|
|
190
|
+
{ path: "services.service.createdDate" },
|
|
191
|
+
{ path: "services.service.updatedDate" },
|
|
192
|
+
{ path: "services.service.media.items.image.urlExpirationDate" },
|
|
193
|
+
{ path: "services.service.media.mainMedia.image.urlExpirationDate" },
|
|
194
|
+
{ path: "services.service.media.coverMedia.image.urlExpirationDate" },
|
|
195
|
+
{ path: "services.service.payment.subscription.recurringStartDate" },
|
|
196
|
+
{ path: "services.service.bookingPolicy.createdDate" },
|
|
197
|
+
{ path: "services.service.bookingPolicy.updatedDate" },
|
|
198
|
+
{ path: "services.service.schedule.firstSessionStart" },
|
|
199
|
+
{ path: "services.service.schedule.lastSessionEnd" },
|
|
200
|
+
{ path: "services.service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
201
|
+
{
|
|
202
|
+
path: "services.service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
203
|
+
},
|
|
204
|
+
{ path: "services.service.supportedSlugs.createdDate" },
|
|
205
|
+
{ path: "services.service.mainSlug.createdDate" }
|
|
206
|
+
];
|
|
207
|
+
var TRANSFORM_PATHS_9 = [
|
|
208
|
+
{ path: "services.service.locations.business.address.geocode.latitude" },
|
|
209
|
+
{ path: "services.service.locations.business.address.geocode.longitude" },
|
|
210
|
+
{ path: "services.service.locations.custom.address.geocode.latitude" },
|
|
211
|
+
{ path: "services.service.locations.custom.address.geocode.longitude" },
|
|
212
|
+
{ path: "services.service.locations.calculatedAddress.geocode.latitude" },
|
|
213
|
+
{ path: "services.service.locations.calculatedAddress.geocode.longitude" }
|
|
214
|
+
];
|
|
215
|
+
var TRANSFORM_PATHS_10 = [
|
|
216
|
+
{ path: "search.aggregations.range.buckets.from" },
|
|
217
|
+
{ path: "search.aggregations.range.buckets.to" },
|
|
218
|
+
{ path: "search.aggregations.nested.nestedAggregations.range.buckets.from" },
|
|
219
|
+
{ path: "search.aggregations.nested.nestedAggregations.range.buckets.to" }
|
|
220
|
+
];
|
|
221
|
+
var TRANSFORM_PATHS_11 = [
|
|
222
|
+
{ path: "services.locations.business.address.geocode.latitude" },
|
|
223
|
+
{ path: "services.locations.business.address.geocode.longitude" },
|
|
224
|
+
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
225
|
+
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
226
|
+
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
227
|
+
{ path: "services.locations.calculatedAddress.geocode.longitude" },
|
|
228
|
+
{ path: "aggregationData.results.ranges.results.from" },
|
|
229
|
+
{ path: "aggregationData.results.ranges.results.to" },
|
|
230
|
+
{
|
|
231
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
|
|
232
|
+
},
|
|
233
|
+
{
|
|
234
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
|
|
235
|
+
},
|
|
236
|
+
{ path: "aggregationData.results.nested.results.results.*.range.from" },
|
|
237
|
+
{ path: "aggregationData.results.nested.results.results.*.range.to" },
|
|
238
|
+
{ path: "aggregationData.results.scalar.value" },
|
|
239
|
+
{
|
|
240
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
|
|
241
|
+
},
|
|
242
|
+
{ path: "aggregationData.results.nested.results.results.*.scalar.value" }
|
|
243
|
+
];
|
|
244
|
+
var TRANSFORM_PATHS_12 = [
|
|
245
|
+
{ path: "bookingPolicies.bookingPolicy.createdDate" },
|
|
246
|
+
{ path: "bookingPolicies.bookingPolicy.updatedDate" },
|
|
247
|
+
{ path: "bookingPolicies.services.createdDate" },
|
|
248
|
+
{ path: "bookingPolicies.services.updatedDate" },
|
|
249
|
+
{ path: "bookingPolicies.services.media.items.image.urlExpirationDate" },
|
|
250
|
+
{ path: "bookingPolicies.services.media.mainMedia.image.urlExpirationDate" },
|
|
251
|
+
{ path: "bookingPolicies.services.media.coverMedia.image.urlExpirationDate" },
|
|
252
|
+
{ path: "bookingPolicies.services.payment.subscription.recurringStartDate" },
|
|
253
|
+
{ path: "bookingPolicies.services.bookingPolicy.createdDate" },
|
|
254
|
+
{ path: "bookingPolicies.services.bookingPolicy.updatedDate" },
|
|
255
|
+
{ path: "bookingPolicies.services.schedule.firstSessionStart" },
|
|
256
|
+
{ path: "bookingPolicies.services.schedule.lastSessionEnd" },
|
|
257
|
+
{
|
|
258
|
+
path: "bookingPolicies.services.staffMembers.mainMedia.image.urlExpirationDate"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
path: "bookingPolicies.services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
262
|
+
},
|
|
263
|
+
{ path: "bookingPolicies.services.supportedSlugs.createdDate" },
|
|
264
|
+
{ path: "bookingPolicies.services.mainSlug.createdDate" },
|
|
265
|
+
{ path: "bookingPolicies.connectedServices.createdDate" },
|
|
266
|
+
{ path: "bookingPolicies.connectedServices.updatedDate" },
|
|
267
|
+
{
|
|
268
|
+
path: "bookingPolicies.connectedServices.media.items.image.urlExpirationDate"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
path: "bookingPolicies.connectedServices.media.mainMedia.image.urlExpirationDate"
|
|
272
|
+
},
|
|
273
|
+
{
|
|
274
|
+
path: "bookingPolicies.connectedServices.media.coverMedia.image.urlExpirationDate"
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
path: "bookingPolicies.connectedServices.payment.subscription.recurringStartDate"
|
|
278
|
+
},
|
|
279
|
+
{ path: "bookingPolicies.connectedServices.bookingPolicy.createdDate" },
|
|
280
|
+
{ path: "bookingPolicies.connectedServices.bookingPolicy.updatedDate" },
|
|
281
|
+
{ path: "bookingPolicies.connectedServices.schedule.firstSessionStart" },
|
|
282
|
+
{ path: "bookingPolicies.connectedServices.schedule.lastSessionEnd" },
|
|
283
|
+
{
|
|
284
|
+
path: "bookingPolicies.connectedServices.staffMembers.mainMedia.image.urlExpirationDate"
|
|
285
|
+
},
|
|
286
|
+
{
|
|
287
|
+
path: "bookingPolicies.connectedServices.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
288
|
+
},
|
|
289
|
+
{ path: "bookingPolicies.connectedServices.supportedSlugs.createdDate" },
|
|
290
|
+
{ path: "bookingPolicies.connectedServices.mainSlug.createdDate" }
|
|
291
|
+
];
|
|
292
|
+
var TRANSFORM_PATHS_13 = [
|
|
293
|
+
{
|
|
294
|
+
path: "bookingPolicies.services.locations.business.address.geocode.latitude"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
path: "bookingPolicies.services.locations.business.address.geocode.longitude"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
path: "bookingPolicies.services.locations.custom.address.geocode.latitude"
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
path: "bookingPolicies.services.locations.custom.address.geocode.longitude"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
path: "bookingPolicies.services.locations.calculatedAddress.geocode.latitude"
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
path: "bookingPolicies.services.locations.calculatedAddress.geocode.longitude"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
path: "bookingPolicies.connectedServices.locations.business.address.geocode.latitude"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
path: "bookingPolicies.connectedServices.locations.business.address.geocode.longitude"
|
|
316
|
+
},
|
|
317
|
+
{
|
|
318
|
+
path: "bookingPolicies.connectedServices.locations.custom.address.geocode.latitude"
|
|
319
|
+
},
|
|
320
|
+
{
|
|
321
|
+
path: "bookingPolicies.connectedServices.locations.custom.address.geocode.longitude"
|
|
322
|
+
},
|
|
323
|
+
{
|
|
324
|
+
path: "bookingPolicies.connectedServices.locations.calculatedAddress.geocode.latitude"
|
|
325
|
+
},
|
|
326
|
+
{
|
|
327
|
+
path: "bookingPolicies.connectedServices.locations.calculatedAddress.geocode.longitude"
|
|
328
|
+
}
|
|
329
|
+
];
|
|
330
|
+
var TRANSFORM_PATHS_14 = [
|
|
331
|
+
{ path: "businessLocations.locations.business.address.geocode.latitude" },
|
|
332
|
+
{ path: "businessLocations.locations.business.address.geocode.longitude" },
|
|
333
|
+
{ path: "businessLocations.locations.custom.address.geocode.latitude" },
|
|
334
|
+
{ path: "businessLocations.locations.custom.address.geocode.longitude" },
|
|
335
|
+
{ path: "businessLocations.locations.calculatedAddress.geocode.latitude" },
|
|
336
|
+
{ path: "businessLocations.locations.calculatedAddress.geocode.longitude" }
|
|
337
|
+
];
|
|
338
|
+
var TRANSFORM_PATHS_15 = [
|
|
339
|
+
{ path: "locations.business.address.geocode.latitude" },
|
|
340
|
+
{ path: "locations.business.address.geocode.longitude" },
|
|
341
|
+
{ path: "locations.custom.address.geocode.latitude" },
|
|
342
|
+
{ path: "locations.custom.address.geocode.longitude" },
|
|
343
|
+
{ path: "locations.calculatedAddress.geocode.latitude" },
|
|
344
|
+
{ path: "locations.calculatedAddress.geocode.longitude" },
|
|
345
|
+
{
|
|
346
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address.geocode.latitude"
|
|
347
|
+
},
|
|
348
|
+
{
|
|
349
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address.geocode.longitude"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address.geocode.latitude"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address.geocode.longitude"
|
|
356
|
+
},
|
|
357
|
+
{
|
|
358
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress.geocode.latitude"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress.geocode.longitude"
|
|
362
|
+
}
|
|
363
|
+
];
|
|
364
|
+
var TRANSFORM_PATHS_16 = [
|
|
365
|
+
{ path: "slug.createdDate" },
|
|
366
|
+
{ path: "service.createdDate" },
|
|
367
|
+
{ path: "service.updatedDate" },
|
|
368
|
+
{ path: "service.media.items.image.urlExpirationDate" },
|
|
369
|
+
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
370
|
+
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
371
|
+
{ path: "service.payment.subscription.recurringStartDate" },
|
|
372
|
+
{ path: "service.bookingPolicy.createdDate" },
|
|
373
|
+
{ path: "service.bookingPolicy.updatedDate" },
|
|
374
|
+
{ path: "service.schedule.firstSessionStart" },
|
|
375
|
+
{ path: "service.schedule.lastSessionEnd" },
|
|
376
|
+
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
377
|
+
{
|
|
378
|
+
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
379
|
+
},
|
|
380
|
+
{ path: "service.supportedSlugs.createdDate" },
|
|
381
|
+
{ path: "service.mainSlug.createdDate" }
|
|
382
|
+
];
|
|
383
|
+
var TRANSFORM_PATHS_17 = [
|
|
384
|
+
{ path: "addOnGroupsDetails.addOns.mainMedia.image.urlExpirationDate" }
|
|
385
|
+
];
|
|
109
386
|
function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
|
|
110
387
|
const domainToMappings = {
|
|
111
388
|
"*.dev.wix-code.com": [
|
|
@@ -342,35 +619,11 @@ function createService(payload) {
|
|
|
342
619
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
343
620
|
{
|
|
344
621
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
345
|
-
paths:
|
|
346
|
-
{ path: "service.createdDate" },
|
|
347
|
-
{ path: "service.updatedDate" },
|
|
348
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
349
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
350
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
351
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
352
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
353
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
354
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
355
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
356
|
-
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
357
|
-
{
|
|
358
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
359
|
-
},
|
|
360
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
361
|
-
{ path: "service.mainSlug.createdDate" }
|
|
362
|
-
]
|
|
622
|
+
paths: TRANSFORM_PATHS_0
|
|
363
623
|
},
|
|
364
624
|
{
|
|
365
625
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
366
|
-
paths:
|
|
367
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
368
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
369
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
370
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
371
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
372
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
373
|
-
]
|
|
626
|
+
paths: TRANSFORM_PATHS_1
|
|
374
627
|
}
|
|
375
628
|
]);
|
|
376
629
|
const metadata = {
|
|
@@ -390,37 +643,11 @@ function createService(payload) {
|
|
|
390
643
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
391
644
|
{
|
|
392
645
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
393
|
-
paths:
|
|
394
|
-
{ path: "service.createdDate" },
|
|
395
|
-
{ path: "service.updatedDate" },
|
|
396
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
397
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
398
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
399
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
400
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
401
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
402
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
403
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
404
|
-
{
|
|
405
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
409
|
-
},
|
|
410
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
411
|
-
{ path: "service.mainSlug.createdDate" }
|
|
412
|
-
]
|
|
646
|
+
paths: TRANSFORM_PATHS_0
|
|
413
647
|
},
|
|
414
648
|
{
|
|
415
649
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
416
|
-
paths:
|
|
417
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
418
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
419
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
420
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
421
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
422
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
423
|
-
]
|
|
650
|
+
paths: TRANSFORM_PATHS_1
|
|
424
651
|
}
|
|
425
652
|
])
|
|
426
653
|
};
|
|
@@ -433,35 +660,11 @@ function bulkCreateServices(payload) {
|
|
|
433
660
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
434
661
|
{
|
|
435
662
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
436
|
-
paths:
|
|
437
|
-
{ path: "services.createdDate" },
|
|
438
|
-
{ path: "services.updatedDate" },
|
|
439
|
-
{ path: "services.media.items.image.urlExpirationDate" },
|
|
440
|
-
{ path: "services.media.mainMedia.image.urlExpirationDate" },
|
|
441
|
-
{ path: "services.media.coverMedia.image.urlExpirationDate" },
|
|
442
|
-
{ path: "services.payment.subscription.recurringStartDate" },
|
|
443
|
-
{ path: "services.bookingPolicy.createdDate" },
|
|
444
|
-
{ path: "services.bookingPolicy.updatedDate" },
|
|
445
|
-
{ path: "services.schedule.firstSessionStart" },
|
|
446
|
-
{ path: "services.schedule.lastSessionEnd" },
|
|
447
|
-
{ path: "services.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
448
|
-
{
|
|
449
|
-
path: "services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
450
|
-
},
|
|
451
|
-
{ path: "services.supportedSlugs.createdDate" },
|
|
452
|
-
{ path: "services.mainSlug.createdDate" }
|
|
453
|
-
]
|
|
663
|
+
paths: TRANSFORM_PATHS_2
|
|
454
664
|
},
|
|
455
665
|
{
|
|
456
666
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
457
|
-
paths:
|
|
458
|
-
{ path: "services.locations.business.address.geocode.latitude" },
|
|
459
|
-
{ path: "services.locations.business.address.geocode.longitude" },
|
|
460
|
-
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
461
|
-
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
462
|
-
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
463
|
-
{ path: "services.locations.calculatedAddress.geocode.longitude" }
|
|
464
|
-
]
|
|
667
|
+
paths: TRANSFORM_PATHS_3
|
|
465
668
|
}
|
|
466
669
|
]);
|
|
467
670
|
const metadata = {
|
|
@@ -481,49 +684,11 @@ function bulkCreateServices(payload) {
|
|
|
481
684
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
482
685
|
{
|
|
483
686
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
484
|
-
paths:
|
|
485
|
-
{ path: "results.item.createdDate" },
|
|
486
|
-
{ path: "results.item.updatedDate" },
|
|
487
|
-
{ path: "results.item.media.items.image.urlExpirationDate" },
|
|
488
|
-
{ path: "results.item.media.mainMedia.image.urlExpirationDate" },
|
|
489
|
-
{ path: "results.item.media.coverMedia.image.urlExpirationDate" },
|
|
490
|
-
{ path: "results.item.payment.subscription.recurringStartDate" },
|
|
491
|
-
{ path: "results.item.bookingPolicy.createdDate" },
|
|
492
|
-
{ path: "results.item.bookingPolicy.updatedDate" },
|
|
493
|
-
{ path: "results.item.schedule.firstSessionStart" },
|
|
494
|
-
{ path: "results.item.schedule.lastSessionEnd" },
|
|
495
|
-
{
|
|
496
|
-
path: "results.item.staffMembers.mainMedia.image.urlExpirationDate"
|
|
497
|
-
},
|
|
498
|
-
{
|
|
499
|
-
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
500
|
-
},
|
|
501
|
-
{ path: "results.item.supportedSlugs.createdDate" },
|
|
502
|
-
{ path: "results.item.mainSlug.createdDate" }
|
|
503
|
-
]
|
|
687
|
+
paths: TRANSFORM_PATHS_4
|
|
504
688
|
},
|
|
505
689
|
{
|
|
506
690
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
507
|
-
paths:
|
|
508
|
-
{
|
|
509
|
-
path: "results.item.locations.business.address.geocode.latitude"
|
|
510
|
-
},
|
|
511
|
-
{
|
|
512
|
-
path: "results.item.locations.business.address.geocode.longitude"
|
|
513
|
-
},
|
|
514
|
-
{
|
|
515
|
-
path: "results.item.locations.custom.address.geocode.latitude"
|
|
516
|
-
},
|
|
517
|
-
{
|
|
518
|
-
path: "results.item.locations.custom.address.geocode.longitude"
|
|
519
|
-
},
|
|
520
|
-
{
|
|
521
|
-
path: "results.item.locations.calculatedAddress.geocode.latitude"
|
|
522
|
-
},
|
|
523
|
-
{
|
|
524
|
-
path: "results.item.locations.calculatedAddress.geocode.longitude"
|
|
525
|
-
}
|
|
526
|
-
]
|
|
691
|
+
paths: TRANSFORM_PATHS_5
|
|
527
692
|
}
|
|
528
693
|
])
|
|
529
694
|
};
|
|
@@ -550,37 +715,11 @@ function getService(payload) {
|
|
|
550
715
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
551
716
|
{
|
|
552
717
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
553
|
-
paths:
|
|
554
|
-
{ path: "service.createdDate" },
|
|
555
|
-
{ path: "service.updatedDate" },
|
|
556
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
557
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
558
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
559
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
560
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
561
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
562
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
563
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
564
|
-
{
|
|
565
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
566
|
-
},
|
|
567
|
-
{
|
|
568
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
569
|
-
},
|
|
570
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
571
|
-
{ path: "service.mainSlug.createdDate" }
|
|
572
|
-
]
|
|
718
|
+
paths: TRANSFORM_PATHS_0
|
|
573
719
|
},
|
|
574
720
|
{
|
|
575
721
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
576
|
-
paths:
|
|
577
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
578
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
579
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
580
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
581
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
582
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
583
|
-
]
|
|
722
|
+
paths: TRANSFORM_PATHS_1
|
|
584
723
|
}
|
|
585
724
|
])
|
|
586
725
|
};
|
|
@@ -593,39 +732,15 @@ function updateService(payload) {
|
|
|
593
732
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
594
733
|
{
|
|
595
734
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
596
|
-
paths:
|
|
735
|
+
paths: TRANSFORM_PATHS_6
|
|
597
736
|
},
|
|
598
737
|
{
|
|
599
738
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
600
|
-
paths:
|
|
601
|
-
{ path: "service.createdDate" },
|
|
602
|
-
{ path: "service.updatedDate" },
|
|
603
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
604
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
605
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
606
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
607
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
608
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
609
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
610
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
611
|
-
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
612
|
-
{
|
|
613
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
614
|
-
},
|
|
615
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
616
|
-
{ path: "service.mainSlug.createdDate" }
|
|
617
|
-
]
|
|
739
|
+
paths: TRANSFORM_PATHS_0
|
|
618
740
|
},
|
|
619
741
|
{
|
|
620
742
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
621
|
-
paths:
|
|
622
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
623
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
624
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
625
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
626
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
627
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
628
|
-
]
|
|
743
|
+
paths: TRANSFORM_PATHS_1
|
|
629
744
|
}
|
|
630
745
|
]);
|
|
631
746
|
const metadata = {
|
|
@@ -645,37 +760,11 @@ function updateService(payload) {
|
|
|
645
760
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
646
761
|
{
|
|
647
762
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
648
|
-
paths:
|
|
649
|
-
{ path: "service.createdDate" },
|
|
650
|
-
{ path: "service.updatedDate" },
|
|
651
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
652
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
653
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
654
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
655
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
656
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
657
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
658
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
659
|
-
{
|
|
660
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
661
|
-
},
|
|
662
|
-
{
|
|
663
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
664
|
-
},
|
|
665
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
666
|
-
{ path: "service.mainSlug.createdDate" }
|
|
667
|
-
]
|
|
763
|
+
paths: TRANSFORM_PATHS_0
|
|
668
764
|
},
|
|
669
765
|
{
|
|
670
766
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
671
|
-
paths:
|
|
672
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
673
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
674
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
675
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
676
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
677
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
678
|
-
]
|
|
767
|
+
paths: TRANSFORM_PATHS_1
|
|
679
768
|
}
|
|
680
769
|
])
|
|
681
770
|
};
|
|
@@ -688,53 +777,15 @@ function bulkUpdateServices(payload) {
|
|
|
688
777
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
689
778
|
{
|
|
690
779
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
691
|
-
paths:
|
|
780
|
+
paths: TRANSFORM_PATHS_7
|
|
692
781
|
},
|
|
693
782
|
{
|
|
694
783
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
695
|
-
paths:
|
|
696
|
-
{ path: "services.service.createdDate" },
|
|
697
|
-
{ path: "services.service.updatedDate" },
|
|
698
|
-
{ path: "services.service.media.items.image.urlExpirationDate" },
|
|
699
|
-
{ path: "services.service.media.mainMedia.image.urlExpirationDate" },
|
|
700
|
-
{ path: "services.service.media.coverMedia.image.urlExpirationDate" },
|
|
701
|
-
{ path: "services.service.payment.subscription.recurringStartDate" },
|
|
702
|
-
{ path: "services.service.bookingPolicy.createdDate" },
|
|
703
|
-
{ path: "services.service.bookingPolicy.updatedDate" },
|
|
704
|
-
{ path: "services.service.schedule.firstSessionStart" },
|
|
705
|
-
{ path: "services.service.schedule.lastSessionEnd" },
|
|
706
|
-
{
|
|
707
|
-
path: "services.service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
708
|
-
},
|
|
709
|
-
{
|
|
710
|
-
path: "services.service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
711
|
-
},
|
|
712
|
-
{ path: "services.service.supportedSlugs.createdDate" },
|
|
713
|
-
{ path: "services.service.mainSlug.createdDate" }
|
|
714
|
-
]
|
|
784
|
+
paths: TRANSFORM_PATHS_8
|
|
715
785
|
},
|
|
716
786
|
{
|
|
717
787
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
718
|
-
paths:
|
|
719
|
-
{
|
|
720
|
-
path: "services.service.locations.business.address.geocode.latitude"
|
|
721
|
-
},
|
|
722
|
-
{
|
|
723
|
-
path: "services.service.locations.business.address.geocode.longitude"
|
|
724
|
-
},
|
|
725
|
-
{
|
|
726
|
-
path: "services.service.locations.custom.address.geocode.latitude"
|
|
727
|
-
},
|
|
728
|
-
{
|
|
729
|
-
path: "services.service.locations.custom.address.geocode.longitude"
|
|
730
|
-
},
|
|
731
|
-
{
|
|
732
|
-
path: "services.service.locations.calculatedAddress.geocode.latitude"
|
|
733
|
-
},
|
|
734
|
-
{
|
|
735
|
-
path: "services.service.locations.calculatedAddress.geocode.longitude"
|
|
736
|
-
}
|
|
737
|
-
]
|
|
788
|
+
paths: TRANSFORM_PATHS_9
|
|
738
789
|
}
|
|
739
790
|
]);
|
|
740
791
|
const metadata = {
|
|
@@ -754,49 +805,11 @@ function bulkUpdateServices(payload) {
|
|
|
754
805
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
755
806
|
{
|
|
756
807
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
757
|
-
paths:
|
|
758
|
-
{ path: "results.item.createdDate" },
|
|
759
|
-
{ path: "results.item.updatedDate" },
|
|
760
|
-
{ path: "results.item.media.items.image.urlExpirationDate" },
|
|
761
|
-
{ path: "results.item.media.mainMedia.image.urlExpirationDate" },
|
|
762
|
-
{ path: "results.item.media.coverMedia.image.urlExpirationDate" },
|
|
763
|
-
{ path: "results.item.payment.subscription.recurringStartDate" },
|
|
764
|
-
{ path: "results.item.bookingPolicy.createdDate" },
|
|
765
|
-
{ path: "results.item.bookingPolicy.updatedDate" },
|
|
766
|
-
{ path: "results.item.schedule.firstSessionStart" },
|
|
767
|
-
{ path: "results.item.schedule.lastSessionEnd" },
|
|
768
|
-
{
|
|
769
|
-
path: "results.item.staffMembers.mainMedia.image.urlExpirationDate"
|
|
770
|
-
},
|
|
771
|
-
{
|
|
772
|
-
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
773
|
-
},
|
|
774
|
-
{ path: "results.item.supportedSlugs.createdDate" },
|
|
775
|
-
{ path: "results.item.mainSlug.createdDate" }
|
|
776
|
-
]
|
|
808
|
+
paths: TRANSFORM_PATHS_4
|
|
777
809
|
},
|
|
778
810
|
{
|
|
779
811
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
780
|
-
paths:
|
|
781
|
-
{
|
|
782
|
-
path: "results.item.locations.business.address.geocode.latitude"
|
|
783
|
-
},
|
|
784
|
-
{
|
|
785
|
-
path: "results.item.locations.business.address.geocode.longitude"
|
|
786
|
-
},
|
|
787
|
-
{
|
|
788
|
-
path: "results.item.locations.custom.address.geocode.latitude"
|
|
789
|
-
},
|
|
790
|
-
{
|
|
791
|
-
path: "results.item.locations.custom.address.geocode.longitude"
|
|
792
|
-
},
|
|
793
|
-
{
|
|
794
|
-
path: "results.item.locations.calculatedAddress.geocode.latitude"
|
|
795
|
-
},
|
|
796
|
-
{
|
|
797
|
-
path: "results.item.locations.calculatedAddress.geocode.longitude"
|
|
798
|
-
}
|
|
799
|
-
]
|
|
812
|
+
paths: TRANSFORM_PATHS_5
|
|
800
813
|
}
|
|
801
814
|
])
|
|
802
815
|
};
|
|
@@ -809,39 +822,15 @@ function bulkUpdateServicesByFilter(payload) {
|
|
|
809
822
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
810
823
|
{
|
|
811
824
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
812
|
-
paths:
|
|
825
|
+
paths: TRANSFORM_PATHS_6
|
|
813
826
|
},
|
|
814
827
|
{
|
|
815
828
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
816
|
-
paths:
|
|
817
|
-
{ path: "service.createdDate" },
|
|
818
|
-
{ path: "service.updatedDate" },
|
|
819
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
820
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
821
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
822
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
823
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
824
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
825
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
826
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
827
|
-
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
828
|
-
{
|
|
829
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
830
|
-
},
|
|
831
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
832
|
-
{ path: "service.mainSlug.createdDate" }
|
|
833
|
-
]
|
|
829
|
+
paths: TRANSFORM_PATHS_0
|
|
834
830
|
},
|
|
835
831
|
{
|
|
836
832
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
837
|
-
paths:
|
|
838
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
839
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
840
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
841
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
842
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
843
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
844
|
-
]
|
|
833
|
+
paths: TRANSFORM_PATHS_1
|
|
845
834
|
}
|
|
846
835
|
]);
|
|
847
836
|
const metadata = {
|
|
@@ -903,49 +892,11 @@ function bulkDeleteServices(payload) {
|
|
|
903
892
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
904
893
|
{
|
|
905
894
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
906
|
-
paths:
|
|
907
|
-
{ path: "results.item.createdDate" },
|
|
908
|
-
{ path: "results.item.updatedDate" },
|
|
909
|
-
{ path: "results.item.media.items.image.urlExpirationDate" },
|
|
910
|
-
{ path: "results.item.media.mainMedia.image.urlExpirationDate" },
|
|
911
|
-
{ path: "results.item.media.coverMedia.image.urlExpirationDate" },
|
|
912
|
-
{ path: "results.item.payment.subscription.recurringStartDate" },
|
|
913
|
-
{ path: "results.item.bookingPolicy.createdDate" },
|
|
914
|
-
{ path: "results.item.bookingPolicy.updatedDate" },
|
|
915
|
-
{ path: "results.item.schedule.firstSessionStart" },
|
|
916
|
-
{ path: "results.item.schedule.lastSessionEnd" },
|
|
917
|
-
{
|
|
918
|
-
path: "results.item.staffMembers.mainMedia.image.urlExpirationDate"
|
|
919
|
-
},
|
|
920
|
-
{
|
|
921
|
-
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
922
|
-
},
|
|
923
|
-
{ path: "results.item.supportedSlugs.createdDate" },
|
|
924
|
-
{ path: "results.item.mainSlug.createdDate" }
|
|
925
|
-
]
|
|
895
|
+
paths: TRANSFORM_PATHS_4
|
|
926
896
|
},
|
|
927
897
|
{
|
|
928
898
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
929
|
-
paths:
|
|
930
|
-
{
|
|
931
|
-
path: "results.item.locations.business.address.geocode.latitude"
|
|
932
|
-
},
|
|
933
|
-
{
|
|
934
|
-
path: "results.item.locations.business.address.geocode.longitude"
|
|
935
|
-
},
|
|
936
|
-
{
|
|
937
|
-
path: "results.item.locations.custom.address.geocode.latitude"
|
|
938
|
-
},
|
|
939
|
-
{
|
|
940
|
-
path: "results.item.locations.custom.address.geocode.longitude"
|
|
941
|
-
},
|
|
942
|
-
{
|
|
943
|
-
path: "results.item.locations.calculatedAddress.geocode.latitude"
|
|
944
|
-
},
|
|
945
|
-
{
|
|
946
|
-
path: "results.item.locations.calculatedAddress.geocode.longitude"
|
|
947
|
-
}
|
|
948
|
-
]
|
|
899
|
+
paths: TRANSFORM_PATHS_5
|
|
949
900
|
}
|
|
950
901
|
])
|
|
951
902
|
};
|
|
@@ -993,39 +944,11 @@ function queryServices(payload) {
|
|
|
993
944
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
994
945
|
{
|
|
995
946
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
996
|
-
paths:
|
|
997
|
-
{ path: "services.createdDate" },
|
|
998
|
-
{ path: "services.updatedDate" },
|
|
999
|
-
{ path: "services.media.items.image.urlExpirationDate" },
|
|
1000
|
-
{ path: "services.media.mainMedia.image.urlExpirationDate" },
|
|
1001
|
-
{ path: "services.media.coverMedia.image.urlExpirationDate" },
|
|
1002
|
-
{ path: "services.payment.subscription.recurringStartDate" },
|
|
1003
|
-
{ path: "services.bookingPolicy.createdDate" },
|
|
1004
|
-
{ path: "services.bookingPolicy.updatedDate" },
|
|
1005
|
-
{ path: "services.schedule.firstSessionStart" },
|
|
1006
|
-
{ path: "services.schedule.lastSessionEnd" },
|
|
1007
|
-
{
|
|
1008
|
-
path: "services.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1009
|
-
},
|
|
1010
|
-
{
|
|
1011
|
-
path: "services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1012
|
-
},
|
|
1013
|
-
{ path: "services.supportedSlugs.createdDate" },
|
|
1014
|
-
{ path: "services.mainSlug.createdDate" }
|
|
1015
|
-
]
|
|
947
|
+
paths: TRANSFORM_PATHS_2
|
|
1016
948
|
},
|
|
1017
949
|
{
|
|
1018
950
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1019
|
-
paths:
|
|
1020
|
-
{ path: "services.locations.business.address.geocode.latitude" },
|
|
1021
|
-
{ path: "services.locations.business.address.geocode.longitude" },
|
|
1022
|
-
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
1023
|
-
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
1024
|
-
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
1025
|
-
{
|
|
1026
|
-
path: "services.locations.calculatedAddress.geocode.longitude"
|
|
1027
|
-
}
|
|
1028
|
-
]
|
|
951
|
+
paths: TRANSFORM_PATHS_3
|
|
1029
952
|
}
|
|
1030
953
|
])
|
|
1031
954
|
};
|
|
@@ -1038,16 +961,7 @@ function searchServices(payload) {
|
|
|
1038
961
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1039
962
|
{
|
|
1040
963
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1041
|
-
paths:
|
|
1042
|
-
{ path: "search.aggregations.range.buckets.from" },
|
|
1043
|
-
{ path: "search.aggregations.range.buckets.to" },
|
|
1044
|
-
{
|
|
1045
|
-
path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
|
|
1046
|
-
},
|
|
1047
|
-
{
|
|
1048
|
-
path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
|
|
1049
|
-
}
|
|
1050
|
-
]
|
|
964
|
+
paths: TRANSFORM_PATHS_10
|
|
1051
965
|
}
|
|
1052
966
|
]);
|
|
1053
967
|
const metadata = {
|
|
@@ -1067,60 +981,11 @@ function searchServices(payload) {
|
|
|
1067
981
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1068
982
|
{
|
|
1069
983
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1070
|
-
paths:
|
|
1071
|
-
{ path: "services.createdDate" },
|
|
1072
|
-
{ path: "services.updatedDate" },
|
|
1073
|
-
{ path: "services.media.items.image.urlExpirationDate" },
|
|
1074
|
-
{ path: "services.media.mainMedia.image.urlExpirationDate" },
|
|
1075
|
-
{ path: "services.media.coverMedia.image.urlExpirationDate" },
|
|
1076
|
-
{ path: "services.payment.subscription.recurringStartDate" },
|
|
1077
|
-
{ path: "services.bookingPolicy.createdDate" },
|
|
1078
|
-
{ path: "services.bookingPolicy.updatedDate" },
|
|
1079
|
-
{ path: "services.schedule.firstSessionStart" },
|
|
1080
|
-
{ path: "services.schedule.lastSessionEnd" },
|
|
1081
|
-
{
|
|
1082
|
-
path: "services.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1083
|
-
},
|
|
1084
|
-
{
|
|
1085
|
-
path: "services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1086
|
-
},
|
|
1087
|
-
{ path: "services.supportedSlugs.createdDate" },
|
|
1088
|
-
{ path: "services.mainSlug.createdDate" }
|
|
1089
|
-
]
|
|
984
|
+
paths: TRANSFORM_PATHS_2
|
|
1090
985
|
},
|
|
1091
986
|
{
|
|
1092
987
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1093
|
-
paths:
|
|
1094
|
-
{ path: "services.locations.business.address.geocode.latitude" },
|
|
1095
|
-
{ path: "services.locations.business.address.geocode.longitude" },
|
|
1096
|
-
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
1097
|
-
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
1098
|
-
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
1099
|
-
{
|
|
1100
|
-
path: "services.locations.calculatedAddress.geocode.longitude"
|
|
1101
|
-
},
|
|
1102
|
-
{ path: "aggregationData.results.ranges.results.from" },
|
|
1103
|
-
{ path: "aggregationData.results.ranges.results.to" },
|
|
1104
|
-
{
|
|
1105
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
|
|
1106
|
-
},
|
|
1107
|
-
{
|
|
1108
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
|
|
1109
|
-
},
|
|
1110
|
-
{
|
|
1111
|
-
path: "aggregationData.results.nested.results.results.*.range.from"
|
|
1112
|
-
},
|
|
1113
|
-
{
|
|
1114
|
-
path: "aggregationData.results.nested.results.results.*.range.to"
|
|
1115
|
-
},
|
|
1116
|
-
{ path: "aggregationData.results.scalar.value" },
|
|
1117
|
-
{
|
|
1118
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
|
|
1119
|
-
},
|
|
1120
|
-
{
|
|
1121
|
-
path: "aggregationData.results.nested.results.results.*.scalar.value"
|
|
1122
|
-
}
|
|
1123
|
-
]
|
|
988
|
+
paths: TRANSFORM_PATHS_11
|
|
1124
989
|
}
|
|
1125
990
|
])
|
|
1126
991
|
};
|
|
@@ -1147,115 +1012,11 @@ function queryPolicies(payload) {
|
|
|
1147
1012
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1148
1013
|
{
|
|
1149
1014
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1150
|
-
paths:
|
|
1151
|
-
{ path: "bookingPolicies.bookingPolicy.createdDate" },
|
|
1152
|
-
{ path: "bookingPolicies.bookingPolicy.updatedDate" },
|
|
1153
|
-
{ path: "bookingPolicies.services.createdDate" },
|
|
1154
|
-
{ path: "bookingPolicies.services.updatedDate" },
|
|
1155
|
-
{
|
|
1156
|
-
path: "bookingPolicies.services.media.items.image.urlExpirationDate"
|
|
1157
|
-
},
|
|
1158
|
-
{
|
|
1159
|
-
path: "bookingPolicies.services.media.mainMedia.image.urlExpirationDate"
|
|
1160
|
-
},
|
|
1161
|
-
{
|
|
1162
|
-
path: "bookingPolicies.services.media.coverMedia.image.urlExpirationDate"
|
|
1163
|
-
},
|
|
1164
|
-
{
|
|
1165
|
-
path: "bookingPolicies.services.payment.subscription.recurringStartDate"
|
|
1166
|
-
},
|
|
1167
|
-
{ path: "bookingPolicies.services.bookingPolicy.createdDate" },
|
|
1168
|
-
{ path: "bookingPolicies.services.bookingPolicy.updatedDate" },
|
|
1169
|
-
{ path: "bookingPolicies.services.schedule.firstSessionStart" },
|
|
1170
|
-
{ path: "bookingPolicies.services.schedule.lastSessionEnd" },
|
|
1171
|
-
{
|
|
1172
|
-
path: "bookingPolicies.services.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1173
|
-
},
|
|
1174
|
-
{
|
|
1175
|
-
path: "bookingPolicies.services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1176
|
-
},
|
|
1177
|
-
{ path: "bookingPolicies.services.supportedSlugs.createdDate" },
|
|
1178
|
-
{ path: "bookingPolicies.services.mainSlug.createdDate" },
|
|
1179
|
-
{ path: "bookingPolicies.connectedServices.createdDate" },
|
|
1180
|
-
{ path: "bookingPolicies.connectedServices.updatedDate" },
|
|
1181
|
-
{
|
|
1182
|
-
path: "bookingPolicies.connectedServices.media.items.image.urlExpirationDate"
|
|
1183
|
-
},
|
|
1184
|
-
{
|
|
1185
|
-
path: "bookingPolicies.connectedServices.media.mainMedia.image.urlExpirationDate"
|
|
1186
|
-
},
|
|
1187
|
-
{
|
|
1188
|
-
path: "bookingPolicies.connectedServices.media.coverMedia.image.urlExpirationDate"
|
|
1189
|
-
},
|
|
1190
|
-
{
|
|
1191
|
-
path: "bookingPolicies.connectedServices.payment.subscription.recurringStartDate"
|
|
1192
|
-
},
|
|
1193
|
-
{
|
|
1194
|
-
path: "bookingPolicies.connectedServices.bookingPolicy.createdDate"
|
|
1195
|
-
},
|
|
1196
|
-
{
|
|
1197
|
-
path: "bookingPolicies.connectedServices.bookingPolicy.updatedDate"
|
|
1198
|
-
},
|
|
1199
|
-
{
|
|
1200
|
-
path: "bookingPolicies.connectedServices.schedule.firstSessionStart"
|
|
1201
|
-
},
|
|
1202
|
-
{
|
|
1203
|
-
path: "bookingPolicies.connectedServices.schedule.lastSessionEnd"
|
|
1204
|
-
},
|
|
1205
|
-
{
|
|
1206
|
-
path: "bookingPolicies.connectedServices.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1207
|
-
},
|
|
1208
|
-
{
|
|
1209
|
-
path: "bookingPolicies.connectedServices.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1210
|
-
},
|
|
1211
|
-
{
|
|
1212
|
-
path: "bookingPolicies.connectedServices.supportedSlugs.createdDate"
|
|
1213
|
-
},
|
|
1214
|
-
{
|
|
1215
|
-
path: "bookingPolicies.connectedServices.mainSlug.createdDate"
|
|
1216
|
-
}
|
|
1217
|
-
]
|
|
1015
|
+
paths: TRANSFORM_PATHS_12
|
|
1218
1016
|
},
|
|
1219
1017
|
{
|
|
1220
1018
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1221
|
-
paths:
|
|
1222
|
-
{
|
|
1223
|
-
path: "bookingPolicies.services.locations.business.address.geocode.latitude"
|
|
1224
|
-
},
|
|
1225
|
-
{
|
|
1226
|
-
path: "bookingPolicies.services.locations.business.address.geocode.longitude"
|
|
1227
|
-
},
|
|
1228
|
-
{
|
|
1229
|
-
path: "bookingPolicies.services.locations.custom.address.geocode.latitude"
|
|
1230
|
-
},
|
|
1231
|
-
{
|
|
1232
|
-
path: "bookingPolicies.services.locations.custom.address.geocode.longitude"
|
|
1233
|
-
},
|
|
1234
|
-
{
|
|
1235
|
-
path: "bookingPolicies.services.locations.calculatedAddress.geocode.latitude"
|
|
1236
|
-
},
|
|
1237
|
-
{
|
|
1238
|
-
path: "bookingPolicies.services.locations.calculatedAddress.geocode.longitude"
|
|
1239
|
-
},
|
|
1240
|
-
{
|
|
1241
|
-
path: "bookingPolicies.connectedServices.locations.business.address.geocode.latitude"
|
|
1242
|
-
},
|
|
1243
|
-
{
|
|
1244
|
-
path: "bookingPolicies.connectedServices.locations.business.address.geocode.longitude"
|
|
1245
|
-
},
|
|
1246
|
-
{
|
|
1247
|
-
path: "bookingPolicies.connectedServices.locations.custom.address.geocode.latitude"
|
|
1248
|
-
},
|
|
1249
|
-
{
|
|
1250
|
-
path: "bookingPolicies.connectedServices.locations.custom.address.geocode.longitude"
|
|
1251
|
-
},
|
|
1252
|
-
{
|
|
1253
|
-
path: "bookingPolicies.connectedServices.locations.calculatedAddress.geocode.latitude"
|
|
1254
|
-
},
|
|
1255
|
-
{
|
|
1256
|
-
path: "bookingPolicies.connectedServices.locations.calculatedAddress.geocode.longitude"
|
|
1257
|
-
}
|
|
1258
|
-
]
|
|
1019
|
+
paths: TRANSFORM_PATHS_13
|
|
1259
1020
|
}
|
|
1260
1021
|
])
|
|
1261
1022
|
};
|
|
@@ -1324,26 +1085,7 @@ function queryLocations(payload) {
|
|
|
1324
1085
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1325
1086
|
{
|
|
1326
1087
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1327
|
-
paths:
|
|
1328
|
-
{
|
|
1329
|
-
path: "businessLocations.locations.business.address.geocode.latitude"
|
|
1330
|
-
},
|
|
1331
|
-
{
|
|
1332
|
-
path: "businessLocations.locations.business.address.geocode.longitude"
|
|
1333
|
-
},
|
|
1334
|
-
{
|
|
1335
|
-
path: "businessLocations.locations.custom.address.geocode.latitude"
|
|
1336
|
-
},
|
|
1337
|
-
{
|
|
1338
|
-
path: "businessLocations.locations.custom.address.geocode.longitude"
|
|
1339
|
-
},
|
|
1340
|
-
{
|
|
1341
|
-
path: "businessLocations.locations.calculatedAddress.geocode.latitude"
|
|
1342
|
-
},
|
|
1343
|
-
{
|
|
1344
|
-
path: "businessLocations.locations.calculatedAddress.geocode.longitude"
|
|
1345
|
-
}
|
|
1346
|
-
]
|
|
1088
|
+
paths: TRANSFORM_PATHS_14
|
|
1347
1089
|
}
|
|
1348
1090
|
])
|
|
1349
1091
|
};
|
|
@@ -1377,32 +1119,7 @@ function setServiceLocations(payload) {
|
|
|
1377
1119
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1378
1120
|
{
|
|
1379
1121
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1380
|
-
paths:
|
|
1381
|
-
{ path: "locations.business.address.geocode.latitude" },
|
|
1382
|
-
{ path: "locations.business.address.geocode.longitude" },
|
|
1383
|
-
{ path: "locations.custom.address.geocode.latitude" },
|
|
1384
|
-
{ path: "locations.custom.address.geocode.longitude" },
|
|
1385
|
-
{ path: "locations.calculatedAddress.geocode.latitude" },
|
|
1386
|
-
{ path: "locations.calculatedAddress.geocode.longitude" },
|
|
1387
|
-
{
|
|
1388
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address.geocode.latitude"
|
|
1389
|
-
},
|
|
1390
|
-
{
|
|
1391
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address.geocode.longitude"
|
|
1392
|
-
},
|
|
1393
|
-
{
|
|
1394
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address.geocode.latitude"
|
|
1395
|
-
},
|
|
1396
|
-
{
|
|
1397
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address.geocode.longitude"
|
|
1398
|
-
},
|
|
1399
|
-
{
|
|
1400
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress.geocode.latitude"
|
|
1401
|
-
},
|
|
1402
|
-
{
|
|
1403
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress.geocode.longitude"
|
|
1404
|
-
}
|
|
1405
|
-
]
|
|
1122
|
+
paths: TRANSFORM_PATHS_15
|
|
1406
1123
|
}
|
|
1407
1124
|
]);
|
|
1408
1125
|
const metadata = {
|
|
@@ -1422,37 +1139,11 @@ function setServiceLocations(payload) {
|
|
|
1422
1139
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1423
1140
|
{
|
|
1424
1141
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1425
|
-
paths:
|
|
1426
|
-
{ path: "service.createdDate" },
|
|
1427
|
-
{ path: "service.updatedDate" },
|
|
1428
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1429
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1430
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1431
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1432
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1433
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1434
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1435
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1436
|
-
{
|
|
1437
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1438
|
-
},
|
|
1439
|
-
{
|
|
1440
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1441
|
-
},
|
|
1442
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1443
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1444
|
-
]
|
|
1142
|
+
paths: TRANSFORM_PATHS_0
|
|
1445
1143
|
},
|
|
1446
1144
|
{
|
|
1447
1145
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1448
|
-
paths:
|
|
1449
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1450
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1451
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1452
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1453
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1454
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1455
|
-
]
|
|
1146
|
+
paths: TRANSFORM_PATHS_1
|
|
1456
1147
|
}
|
|
1457
1148
|
])
|
|
1458
1149
|
};
|
|
@@ -1479,37 +1170,11 @@ function enablePricingPlansForService(payload) {
|
|
|
1479
1170
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1480
1171
|
{
|
|
1481
1172
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1482
|
-
paths:
|
|
1483
|
-
{ path: "service.createdDate" },
|
|
1484
|
-
{ path: "service.updatedDate" },
|
|
1485
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1486
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1487
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1488
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1489
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1490
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1491
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1492
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1493
|
-
{
|
|
1494
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1495
|
-
},
|
|
1496
|
-
{
|
|
1497
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1498
|
-
},
|
|
1499
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1500
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1501
|
-
]
|
|
1173
|
+
paths: TRANSFORM_PATHS_0
|
|
1502
1174
|
},
|
|
1503
1175
|
{
|
|
1504
1176
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1505
|
-
paths:
|
|
1506
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1507
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1508
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1509
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1510
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1511
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1512
|
-
]
|
|
1177
|
+
paths: TRANSFORM_PATHS_1
|
|
1513
1178
|
}
|
|
1514
1179
|
])
|
|
1515
1180
|
};
|
|
@@ -1536,37 +1201,11 @@ function disablePricingPlansForService(payload) {
|
|
|
1536
1201
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1537
1202
|
{
|
|
1538
1203
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1539
|
-
paths:
|
|
1540
|
-
{ path: "service.createdDate" },
|
|
1541
|
-
{ path: "service.updatedDate" },
|
|
1542
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1543
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1544
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1545
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1546
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1547
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1548
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1549
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1550
|
-
{
|
|
1551
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1552
|
-
},
|
|
1553
|
-
{
|
|
1554
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1555
|
-
},
|
|
1556
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1557
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1558
|
-
]
|
|
1204
|
+
paths: TRANSFORM_PATHS_0
|
|
1559
1205
|
},
|
|
1560
1206
|
{
|
|
1561
1207
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1562
|
-
paths:
|
|
1563
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1564
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1565
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1566
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1567
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1568
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1569
|
-
]
|
|
1208
|
+
paths: TRANSFORM_PATHS_1
|
|
1570
1209
|
}
|
|
1571
1210
|
])
|
|
1572
1211
|
};
|
|
@@ -1593,38 +1232,11 @@ function setCustomSlug(payload) {
|
|
|
1593
1232
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1594
1233
|
{
|
|
1595
1234
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1596
|
-
paths:
|
|
1597
|
-
{ path: "slug.createdDate" },
|
|
1598
|
-
{ path: "service.createdDate" },
|
|
1599
|
-
{ path: "service.updatedDate" },
|
|
1600
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1601
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1602
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1603
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1604
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1605
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1606
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1607
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1608
|
-
{
|
|
1609
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1610
|
-
},
|
|
1611
|
-
{
|
|
1612
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1613
|
-
},
|
|
1614
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1615
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1616
|
-
]
|
|
1235
|
+
paths: TRANSFORM_PATHS_16
|
|
1617
1236
|
},
|
|
1618
1237
|
{
|
|
1619
1238
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1620
|
-
paths:
|
|
1621
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1622
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1623
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1624
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1625
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1626
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1627
|
-
]
|
|
1239
|
+
paths: TRANSFORM_PATHS_1
|
|
1628
1240
|
}
|
|
1629
1241
|
])
|
|
1630
1242
|
};
|
|
@@ -1672,37 +1284,11 @@ function cloneService(payload) {
|
|
|
1672
1284
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1673
1285
|
{
|
|
1674
1286
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1675
|
-
paths:
|
|
1676
|
-
{ path: "service.createdDate" },
|
|
1677
|
-
{ path: "service.updatedDate" },
|
|
1678
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1679
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1680
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1681
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1682
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1683
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1684
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1685
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1686
|
-
{
|
|
1687
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1688
|
-
},
|
|
1689
|
-
{
|
|
1690
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1691
|
-
},
|
|
1692
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1693
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1694
|
-
]
|
|
1287
|
+
paths: TRANSFORM_PATHS_0
|
|
1695
1288
|
},
|
|
1696
1289
|
{
|
|
1697
1290
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
1698
|
-
paths:
|
|
1699
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1700
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1701
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1702
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1703
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1704
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1705
|
-
]
|
|
1291
|
+
paths: TRANSFORM_PATHS_1
|
|
1706
1292
|
}
|
|
1707
1293
|
])
|
|
1708
1294
|
};
|
|
@@ -1757,7 +1343,7 @@ function updateAddOnGroup(payload) {
|
|
|
1757
1343
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1758
1344
|
{
|
|
1759
1345
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
1760
|
-
paths:
|
|
1346
|
+
paths: TRANSFORM_PATHS_6
|
|
1761
1347
|
}
|
|
1762
1348
|
]);
|
|
1763
1349
|
const metadata = {
|
|
@@ -1798,11 +1384,7 @@ function listAddOnGroupsByServiceId(payload) {
|
|
|
1798
1384
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1799
1385
|
{
|
|
1800
1386
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1801
|
-
paths:
|
|
1802
|
-
{
|
|
1803
|
-
path: "addOnGroupsDetails.addOns.mainMedia.image.urlExpirationDate"
|
|
1804
|
-
}
|
|
1805
|
-
]
|
|
1387
|
+
paths: TRANSFORM_PATHS_17
|
|
1806
1388
|
}
|
|
1807
1389
|
])
|
|
1808
1390
|
};
|