@wix/auto_sdk_bookings_services 1.0.286 → 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/index.js +598 -1249
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +508 -1140
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +323 -741
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +598 -1249
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +508 -1140
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +323 -741
- package/build/es/meta.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/index.mjs
CHANGED
|
@@ -24,6 +24,283 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
|
|
|
24
24
|
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
25
25
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
26
26
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
27
|
+
var TRANSFORM_PATHS_0 = [
|
|
28
|
+
{ path: "service.createdDate" },
|
|
29
|
+
{ path: "service.updatedDate" },
|
|
30
|
+
{ path: "service.media.items.image.urlExpirationDate" },
|
|
31
|
+
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
32
|
+
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
33
|
+
{ path: "service.payment.subscription.recurringStartDate" },
|
|
34
|
+
{ path: "service.bookingPolicy.createdDate" },
|
|
35
|
+
{ path: "service.bookingPolicy.updatedDate" },
|
|
36
|
+
{ path: "service.schedule.firstSessionStart" },
|
|
37
|
+
{ path: "service.schedule.lastSessionEnd" },
|
|
38
|
+
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
39
|
+
{
|
|
40
|
+
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
41
|
+
},
|
|
42
|
+
{ path: "service.supportedSlugs.createdDate" },
|
|
43
|
+
{ path: "service.mainSlug.createdDate" }
|
|
44
|
+
];
|
|
45
|
+
var TRANSFORM_PATHS_1 = [
|
|
46
|
+
{ path: "service.locations.business.address.geocode.latitude" },
|
|
47
|
+
{ path: "service.locations.business.address.geocode.longitude" },
|
|
48
|
+
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
49
|
+
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
50
|
+
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
51
|
+
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
52
|
+
];
|
|
53
|
+
var TRANSFORM_PATHS_2 = [
|
|
54
|
+
{ path: "services.createdDate" },
|
|
55
|
+
{ path: "services.updatedDate" },
|
|
56
|
+
{ path: "services.media.items.image.urlExpirationDate" },
|
|
57
|
+
{ path: "services.media.mainMedia.image.urlExpirationDate" },
|
|
58
|
+
{ path: "services.media.coverMedia.image.urlExpirationDate" },
|
|
59
|
+
{ path: "services.payment.subscription.recurringStartDate" },
|
|
60
|
+
{ path: "services.bookingPolicy.createdDate" },
|
|
61
|
+
{ path: "services.bookingPolicy.updatedDate" },
|
|
62
|
+
{ path: "services.schedule.firstSessionStart" },
|
|
63
|
+
{ path: "services.schedule.lastSessionEnd" },
|
|
64
|
+
{ path: "services.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
65
|
+
{
|
|
66
|
+
path: "services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
67
|
+
},
|
|
68
|
+
{ path: "services.supportedSlugs.createdDate" },
|
|
69
|
+
{ path: "services.mainSlug.createdDate" }
|
|
70
|
+
];
|
|
71
|
+
var TRANSFORM_PATHS_3 = [
|
|
72
|
+
{ path: "services.locations.business.address.geocode.latitude" },
|
|
73
|
+
{ path: "services.locations.business.address.geocode.longitude" },
|
|
74
|
+
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
75
|
+
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
76
|
+
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
77
|
+
{ path: "services.locations.calculatedAddress.geocode.longitude" }
|
|
78
|
+
];
|
|
79
|
+
var TRANSFORM_PATHS_4 = [
|
|
80
|
+
{ path: "results.item.createdDate" },
|
|
81
|
+
{ path: "results.item.updatedDate" },
|
|
82
|
+
{ path: "results.item.media.items.image.urlExpirationDate" },
|
|
83
|
+
{ path: "results.item.media.mainMedia.image.urlExpirationDate" },
|
|
84
|
+
{ path: "results.item.media.coverMedia.image.urlExpirationDate" },
|
|
85
|
+
{ path: "results.item.payment.subscription.recurringStartDate" },
|
|
86
|
+
{ path: "results.item.bookingPolicy.createdDate" },
|
|
87
|
+
{ path: "results.item.bookingPolicy.updatedDate" },
|
|
88
|
+
{ path: "results.item.schedule.firstSessionStart" },
|
|
89
|
+
{ path: "results.item.schedule.lastSessionEnd" },
|
|
90
|
+
{ path: "results.item.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
91
|
+
{
|
|
92
|
+
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
93
|
+
},
|
|
94
|
+
{ path: "results.item.supportedSlugs.createdDate" },
|
|
95
|
+
{ path: "results.item.mainSlug.createdDate" }
|
|
96
|
+
];
|
|
97
|
+
var TRANSFORM_PATHS_5 = [
|
|
98
|
+
{ path: "results.item.locations.business.address.geocode.latitude" },
|
|
99
|
+
{ path: "results.item.locations.business.address.geocode.longitude" },
|
|
100
|
+
{ path: "results.item.locations.custom.address.geocode.latitude" },
|
|
101
|
+
{ path: "results.item.locations.custom.address.geocode.longitude" },
|
|
102
|
+
{ path: "results.item.locations.calculatedAddress.geocode.latitude" },
|
|
103
|
+
{ path: "results.item.locations.calculatedAddress.geocode.longitude" }
|
|
104
|
+
];
|
|
105
|
+
var TRANSFORM_PATHS_6 = [{ path: "mask" }];
|
|
106
|
+
var TRANSFORM_PATHS_7 = [{ path: "services.mask" }];
|
|
107
|
+
var TRANSFORM_PATHS_8 = [
|
|
108
|
+
{ path: "services.service.createdDate" },
|
|
109
|
+
{ path: "services.service.updatedDate" },
|
|
110
|
+
{ path: "services.service.media.items.image.urlExpirationDate" },
|
|
111
|
+
{ path: "services.service.media.mainMedia.image.urlExpirationDate" },
|
|
112
|
+
{ path: "services.service.media.coverMedia.image.urlExpirationDate" },
|
|
113
|
+
{ path: "services.service.payment.subscription.recurringStartDate" },
|
|
114
|
+
{ path: "services.service.bookingPolicy.createdDate" },
|
|
115
|
+
{ path: "services.service.bookingPolicy.updatedDate" },
|
|
116
|
+
{ path: "services.service.schedule.firstSessionStart" },
|
|
117
|
+
{ path: "services.service.schedule.lastSessionEnd" },
|
|
118
|
+
{ path: "services.service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
119
|
+
{
|
|
120
|
+
path: "services.service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
121
|
+
},
|
|
122
|
+
{ path: "services.service.supportedSlugs.createdDate" },
|
|
123
|
+
{ path: "services.service.mainSlug.createdDate" }
|
|
124
|
+
];
|
|
125
|
+
var TRANSFORM_PATHS_9 = [
|
|
126
|
+
{ path: "services.service.locations.business.address.geocode.latitude" },
|
|
127
|
+
{ path: "services.service.locations.business.address.geocode.longitude" },
|
|
128
|
+
{ path: "services.service.locations.custom.address.geocode.latitude" },
|
|
129
|
+
{ path: "services.service.locations.custom.address.geocode.longitude" },
|
|
130
|
+
{ path: "services.service.locations.calculatedAddress.geocode.latitude" },
|
|
131
|
+
{ path: "services.service.locations.calculatedAddress.geocode.longitude" }
|
|
132
|
+
];
|
|
133
|
+
var TRANSFORM_PATHS_10 = [
|
|
134
|
+
{ path: "search.aggregations.range.buckets.from" },
|
|
135
|
+
{ path: "search.aggregations.range.buckets.to" },
|
|
136
|
+
{ path: "search.aggregations.nested.nestedAggregations.range.buckets.from" },
|
|
137
|
+
{ path: "search.aggregations.nested.nestedAggregations.range.buckets.to" }
|
|
138
|
+
];
|
|
139
|
+
var TRANSFORM_PATHS_11 = [
|
|
140
|
+
{ path: "services.locations.business.address.geocode.latitude" },
|
|
141
|
+
{ path: "services.locations.business.address.geocode.longitude" },
|
|
142
|
+
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
143
|
+
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
144
|
+
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
145
|
+
{ path: "services.locations.calculatedAddress.geocode.longitude" },
|
|
146
|
+
{ path: "aggregationData.results.ranges.results.from" },
|
|
147
|
+
{ path: "aggregationData.results.ranges.results.to" },
|
|
148
|
+
{
|
|
149
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
|
|
153
|
+
},
|
|
154
|
+
{ path: "aggregationData.results.nested.results.results.*.range.from" },
|
|
155
|
+
{ path: "aggregationData.results.nested.results.results.*.range.to" },
|
|
156
|
+
{ path: "aggregationData.results.scalar.value" },
|
|
157
|
+
{
|
|
158
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
|
|
159
|
+
},
|
|
160
|
+
{ path: "aggregationData.results.nested.results.results.*.scalar.value" }
|
|
161
|
+
];
|
|
162
|
+
var TRANSFORM_PATHS_12 = [
|
|
163
|
+
{ path: "bookingPolicies.bookingPolicy.createdDate" },
|
|
164
|
+
{ path: "bookingPolicies.bookingPolicy.updatedDate" },
|
|
165
|
+
{ path: "bookingPolicies.services.createdDate" },
|
|
166
|
+
{ path: "bookingPolicies.services.updatedDate" },
|
|
167
|
+
{ path: "bookingPolicies.services.media.items.image.urlExpirationDate" },
|
|
168
|
+
{ path: "bookingPolicies.services.media.mainMedia.image.urlExpirationDate" },
|
|
169
|
+
{ path: "bookingPolicies.services.media.coverMedia.image.urlExpirationDate" },
|
|
170
|
+
{ path: "bookingPolicies.services.payment.subscription.recurringStartDate" },
|
|
171
|
+
{ path: "bookingPolicies.services.bookingPolicy.createdDate" },
|
|
172
|
+
{ path: "bookingPolicies.services.bookingPolicy.updatedDate" },
|
|
173
|
+
{ path: "bookingPolicies.services.schedule.firstSessionStart" },
|
|
174
|
+
{ path: "bookingPolicies.services.schedule.lastSessionEnd" },
|
|
175
|
+
{
|
|
176
|
+
path: "bookingPolicies.services.staffMembers.mainMedia.image.urlExpirationDate"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
path: "bookingPolicies.services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
180
|
+
},
|
|
181
|
+
{ path: "bookingPolicies.services.supportedSlugs.createdDate" },
|
|
182
|
+
{ path: "bookingPolicies.services.mainSlug.createdDate" },
|
|
183
|
+
{ path: "bookingPolicies.connectedServices.createdDate" },
|
|
184
|
+
{ path: "bookingPolicies.connectedServices.updatedDate" },
|
|
185
|
+
{
|
|
186
|
+
path: "bookingPolicies.connectedServices.media.items.image.urlExpirationDate"
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
path: "bookingPolicies.connectedServices.media.mainMedia.image.urlExpirationDate"
|
|
190
|
+
},
|
|
191
|
+
{
|
|
192
|
+
path: "bookingPolicies.connectedServices.media.coverMedia.image.urlExpirationDate"
|
|
193
|
+
},
|
|
194
|
+
{
|
|
195
|
+
path: "bookingPolicies.connectedServices.payment.subscription.recurringStartDate"
|
|
196
|
+
},
|
|
197
|
+
{ path: "bookingPolicies.connectedServices.bookingPolicy.createdDate" },
|
|
198
|
+
{ path: "bookingPolicies.connectedServices.bookingPolicy.updatedDate" },
|
|
199
|
+
{ path: "bookingPolicies.connectedServices.schedule.firstSessionStart" },
|
|
200
|
+
{ path: "bookingPolicies.connectedServices.schedule.lastSessionEnd" },
|
|
201
|
+
{
|
|
202
|
+
path: "bookingPolicies.connectedServices.staffMembers.mainMedia.image.urlExpirationDate"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
path: "bookingPolicies.connectedServices.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
206
|
+
},
|
|
207
|
+
{ path: "bookingPolicies.connectedServices.supportedSlugs.createdDate" },
|
|
208
|
+
{ path: "bookingPolicies.connectedServices.mainSlug.createdDate" }
|
|
209
|
+
];
|
|
210
|
+
var TRANSFORM_PATHS_13 = [
|
|
211
|
+
{
|
|
212
|
+
path: "bookingPolicies.services.locations.business.address.geocode.latitude"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
path: "bookingPolicies.services.locations.business.address.geocode.longitude"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
path: "bookingPolicies.services.locations.custom.address.geocode.latitude"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
path: "bookingPolicies.services.locations.custom.address.geocode.longitude"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
path: "bookingPolicies.services.locations.calculatedAddress.geocode.latitude"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
path: "bookingPolicies.services.locations.calculatedAddress.geocode.longitude"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
path: "bookingPolicies.connectedServices.locations.business.address.geocode.latitude"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
path: "bookingPolicies.connectedServices.locations.business.address.geocode.longitude"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
path: "bookingPolicies.connectedServices.locations.custom.address.geocode.latitude"
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
path: "bookingPolicies.connectedServices.locations.custom.address.geocode.longitude"
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
path: "bookingPolicies.connectedServices.locations.calculatedAddress.geocode.latitude"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
path: "bookingPolicies.connectedServices.locations.calculatedAddress.geocode.longitude"
|
|
246
|
+
}
|
|
247
|
+
];
|
|
248
|
+
var TRANSFORM_PATHS_14 = [
|
|
249
|
+
{ path: "businessLocations.locations.business.address.geocode.latitude" },
|
|
250
|
+
{ path: "businessLocations.locations.business.address.geocode.longitude" },
|
|
251
|
+
{ path: "businessLocations.locations.custom.address.geocode.latitude" },
|
|
252
|
+
{ path: "businessLocations.locations.custom.address.geocode.longitude" },
|
|
253
|
+
{ path: "businessLocations.locations.calculatedAddress.geocode.latitude" },
|
|
254
|
+
{ path: "businessLocations.locations.calculatedAddress.geocode.longitude" }
|
|
255
|
+
];
|
|
256
|
+
var TRANSFORM_PATHS_15 = [
|
|
257
|
+
{ path: "locations.business.address.geocode.latitude" },
|
|
258
|
+
{ path: "locations.business.address.geocode.longitude" },
|
|
259
|
+
{ path: "locations.custom.address.geocode.latitude" },
|
|
260
|
+
{ path: "locations.custom.address.geocode.longitude" },
|
|
261
|
+
{ path: "locations.calculatedAddress.geocode.latitude" },
|
|
262
|
+
{ path: "locations.calculatedAddress.geocode.longitude" },
|
|
263
|
+
{
|
|
264
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address.geocode.latitude"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address.geocode.longitude"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address.geocode.latitude"
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address.geocode.longitude"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress.geocode.latitude"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress.geocode.longitude"
|
|
280
|
+
}
|
|
281
|
+
];
|
|
282
|
+
var TRANSFORM_PATHS_16 = [
|
|
283
|
+
{ path: "slug.createdDate" },
|
|
284
|
+
{ path: "service.createdDate" },
|
|
285
|
+
{ path: "service.updatedDate" },
|
|
286
|
+
{ path: "service.media.items.image.urlExpirationDate" },
|
|
287
|
+
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
288
|
+
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
289
|
+
{ path: "service.payment.subscription.recurringStartDate" },
|
|
290
|
+
{ path: "service.bookingPolicy.createdDate" },
|
|
291
|
+
{ path: "service.bookingPolicy.updatedDate" },
|
|
292
|
+
{ path: "service.schedule.firstSessionStart" },
|
|
293
|
+
{ path: "service.schedule.lastSessionEnd" },
|
|
294
|
+
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
295
|
+
{
|
|
296
|
+
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
297
|
+
},
|
|
298
|
+
{ path: "service.supportedSlugs.createdDate" },
|
|
299
|
+
{ path: "service.mainSlug.createdDate" }
|
|
300
|
+
];
|
|
301
|
+
var TRANSFORM_PATHS_17 = [
|
|
302
|
+
{ path: "addOnGroupsDetails.addOns.mainMedia.image.urlExpirationDate" }
|
|
303
|
+
];
|
|
27
304
|
function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
|
|
28
305
|
const domainToMappings = {
|
|
29
306
|
"*.dev.wix-code.com": [
|
|
@@ -260,35 +537,11 @@ function createService(payload) {
|
|
|
260
537
|
const serializedData = transformPaths(payload, [
|
|
261
538
|
{
|
|
262
539
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
263
|
-
paths:
|
|
264
|
-
{ path: "service.createdDate" },
|
|
265
|
-
{ path: "service.updatedDate" },
|
|
266
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
267
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
268
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
269
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
270
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
271
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
272
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
273
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
274
|
-
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
275
|
-
{
|
|
276
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
277
|
-
},
|
|
278
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
279
|
-
{ path: "service.mainSlug.createdDate" }
|
|
280
|
-
]
|
|
540
|
+
paths: TRANSFORM_PATHS_0
|
|
281
541
|
},
|
|
282
542
|
{
|
|
283
543
|
transformFn: transformSDKFloatToRESTFloat,
|
|
284
|
-
paths:
|
|
285
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
286
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
287
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
288
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
289
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
290
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
291
|
-
]
|
|
544
|
+
paths: TRANSFORM_PATHS_1
|
|
292
545
|
}
|
|
293
546
|
]);
|
|
294
547
|
const metadata = {
|
|
@@ -308,37 +561,11 @@ function createService(payload) {
|
|
|
308
561
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
309
562
|
{
|
|
310
563
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
311
|
-
paths:
|
|
312
|
-
{ path: "service.createdDate" },
|
|
313
|
-
{ path: "service.updatedDate" },
|
|
314
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
315
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
316
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
317
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
318
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
319
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
320
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
321
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
322
|
-
{
|
|
323
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
324
|
-
},
|
|
325
|
-
{
|
|
326
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
327
|
-
},
|
|
328
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
329
|
-
{ path: "service.mainSlug.createdDate" }
|
|
330
|
-
]
|
|
564
|
+
paths: TRANSFORM_PATHS_0
|
|
331
565
|
},
|
|
332
566
|
{
|
|
333
567
|
transformFn: transformRESTFloatToSDKFloat,
|
|
334
|
-
paths:
|
|
335
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
336
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
337
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
338
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
339
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
340
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
341
|
-
]
|
|
568
|
+
paths: TRANSFORM_PATHS_1
|
|
342
569
|
}
|
|
343
570
|
])
|
|
344
571
|
};
|
|
@@ -351,35 +578,11 @@ function bulkCreateServices(payload) {
|
|
|
351
578
|
const serializedData = transformPaths(payload, [
|
|
352
579
|
{
|
|
353
580
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
354
|
-
paths:
|
|
355
|
-
{ path: "services.createdDate" },
|
|
356
|
-
{ path: "services.updatedDate" },
|
|
357
|
-
{ path: "services.media.items.image.urlExpirationDate" },
|
|
358
|
-
{ path: "services.media.mainMedia.image.urlExpirationDate" },
|
|
359
|
-
{ path: "services.media.coverMedia.image.urlExpirationDate" },
|
|
360
|
-
{ path: "services.payment.subscription.recurringStartDate" },
|
|
361
|
-
{ path: "services.bookingPolicy.createdDate" },
|
|
362
|
-
{ path: "services.bookingPolicy.updatedDate" },
|
|
363
|
-
{ path: "services.schedule.firstSessionStart" },
|
|
364
|
-
{ path: "services.schedule.lastSessionEnd" },
|
|
365
|
-
{ path: "services.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
366
|
-
{
|
|
367
|
-
path: "services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
368
|
-
},
|
|
369
|
-
{ path: "services.supportedSlugs.createdDate" },
|
|
370
|
-
{ path: "services.mainSlug.createdDate" }
|
|
371
|
-
]
|
|
581
|
+
paths: TRANSFORM_PATHS_2
|
|
372
582
|
},
|
|
373
583
|
{
|
|
374
584
|
transformFn: transformSDKFloatToRESTFloat,
|
|
375
|
-
paths:
|
|
376
|
-
{ path: "services.locations.business.address.geocode.latitude" },
|
|
377
|
-
{ path: "services.locations.business.address.geocode.longitude" },
|
|
378
|
-
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
379
|
-
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
380
|
-
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
381
|
-
{ path: "services.locations.calculatedAddress.geocode.longitude" }
|
|
382
|
-
]
|
|
585
|
+
paths: TRANSFORM_PATHS_3
|
|
383
586
|
}
|
|
384
587
|
]);
|
|
385
588
|
const metadata = {
|
|
@@ -399,49 +602,11 @@ function bulkCreateServices(payload) {
|
|
|
399
602
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
400
603
|
{
|
|
401
604
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
402
|
-
paths:
|
|
403
|
-
{ path: "results.item.createdDate" },
|
|
404
|
-
{ path: "results.item.updatedDate" },
|
|
405
|
-
{ path: "results.item.media.items.image.urlExpirationDate" },
|
|
406
|
-
{ path: "results.item.media.mainMedia.image.urlExpirationDate" },
|
|
407
|
-
{ path: "results.item.media.coverMedia.image.urlExpirationDate" },
|
|
408
|
-
{ path: "results.item.payment.subscription.recurringStartDate" },
|
|
409
|
-
{ path: "results.item.bookingPolicy.createdDate" },
|
|
410
|
-
{ path: "results.item.bookingPolicy.updatedDate" },
|
|
411
|
-
{ path: "results.item.schedule.firstSessionStart" },
|
|
412
|
-
{ path: "results.item.schedule.lastSessionEnd" },
|
|
413
|
-
{
|
|
414
|
-
path: "results.item.staffMembers.mainMedia.image.urlExpirationDate"
|
|
415
|
-
},
|
|
416
|
-
{
|
|
417
|
-
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
418
|
-
},
|
|
419
|
-
{ path: "results.item.supportedSlugs.createdDate" },
|
|
420
|
-
{ path: "results.item.mainSlug.createdDate" }
|
|
421
|
-
]
|
|
605
|
+
paths: TRANSFORM_PATHS_4
|
|
422
606
|
},
|
|
423
607
|
{
|
|
424
608
|
transformFn: transformRESTFloatToSDKFloat,
|
|
425
|
-
paths:
|
|
426
|
-
{
|
|
427
|
-
path: "results.item.locations.business.address.geocode.latitude"
|
|
428
|
-
},
|
|
429
|
-
{
|
|
430
|
-
path: "results.item.locations.business.address.geocode.longitude"
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
path: "results.item.locations.custom.address.geocode.latitude"
|
|
434
|
-
},
|
|
435
|
-
{
|
|
436
|
-
path: "results.item.locations.custom.address.geocode.longitude"
|
|
437
|
-
},
|
|
438
|
-
{
|
|
439
|
-
path: "results.item.locations.calculatedAddress.geocode.latitude"
|
|
440
|
-
},
|
|
441
|
-
{
|
|
442
|
-
path: "results.item.locations.calculatedAddress.geocode.longitude"
|
|
443
|
-
}
|
|
444
|
-
]
|
|
609
|
+
paths: TRANSFORM_PATHS_5
|
|
445
610
|
}
|
|
446
611
|
])
|
|
447
612
|
};
|
|
@@ -468,37 +633,11 @@ function getService(payload) {
|
|
|
468
633
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
469
634
|
{
|
|
470
635
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
471
|
-
paths:
|
|
472
|
-
{ path: "service.createdDate" },
|
|
473
|
-
{ path: "service.updatedDate" },
|
|
474
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
475
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
476
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
477
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
478
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
479
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
480
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
481
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
482
|
-
{
|
|
483
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
484
|
-
},
|
|
485
|
-
{
|
|
486
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
487
|
-
},
|
|
488
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
489
|
-
{ path: "service.mainSlug.createdDate" }
|
|
490
|
-
]
|
|
636
|
+
paths: TRANSFORM_PATHS_0
|
|
491
637
|
},
|
|
492
638
|
{
|
|
493
639
|
transformFn: transformRESTFloatToSDKFloat,
|
|
494
|
-
paths:
|
|
495
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
496
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
497
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
498
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
499
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
500
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
501
|
-
]
|
|
640
|
+
paths: TRANSFORM_PATHS_1
|
|
502
641
|
}
|
|
503
642
|
])
|
|
504
643
|
};
|
|
@@ -511,39 +650,15 @@ function updateService(payload) {
|
|
|
511
650
|
const serializedData = transformPaths(payload, [
|
|
512
651
|
{
|
|
513
652
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
514
|
-
paths:
|
|
653
|
+
paths: TRANSFORM_PATHS_6
|
|
515
654
|
},
|
|
516
655
|
{
|
|
517
656
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
518
|
-
paths:
|
|
519
|
-
{ path: "service.createdDate" },
|
|
520
|
-
{ path: "service.updatedDate" },
|
|
521
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
522
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
523
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
524
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
525
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
526
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
527
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
528
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
529
|
-
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
530
|
-
{
|
|
531
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
532
|
-
},
|
|
533
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
534
|
-
{ path: "service.mainSlug.createdDate" }
|
|
535
|
-
]
|
|
657
|
+
paths: TRANSFORM_PATHS_0
|
|
536
658
|
},
|
|
537
659
|
{
|
|
538
660
|
transformFn: transformSDKFloatToRESTFloat,
|
|
539
|
-
paths:
|
|
540
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
541
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
542
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
543
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
544
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
545
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
546
|
-
]
|
|
661
|
+
paths: TRANSFORM_PATHS_1
|
|
547
662
|
}
|
|
548
663
|
]);
|
|
549
664
|
const metadata = {
|
|
@@ -563,37 +678,11 @@ function updateService(payload) {
|
|
|
563
678
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
564
679
|
{
|
|
565
680
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
566
|
-
paths:
|
|
567
|
-
{ path: "service.createdDate" },
|
|
568
|
-
{ path: "service.updatedDate" },
|
|
569
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
570
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
571
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
572
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
573
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
574
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
575
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
576
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
577
|
-
{
|
|
578
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
579
|
-
},
|
|
580
|
-
{
|
|
581
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
582
|
-
},
|
|
583
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
584
|
-
{ path: "service.mainSlug.createdDate" }
|
|
585
|
-
]
|
|
681
|
+
paths: TRANSFORM_PATHS_0
|
|
586
682
|
},
|
|
587
683
|
{
|
|
588
684
|
transformFn: transformRESTFloatToSDKFloat,
|
|
589
|
-
paths:
|
|
590
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
591
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
592
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
593
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
594
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
595
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
596
|
-
]
|
|
685
|
+
paths: TRANSFORM_PATHS_1
|
|
597
686
|
}
|
|
598
687
|
])
|
|
599
688
|
};
|
|
@@ -606,53 +695,15 @@ function bulkUpdateServices(payload) {
|
|
|
606
695
|
const serializedData = transformPaths(payload, [
|
|
607
696
|
{
|
|
608
697
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
609
|
-
paths:
|
|
698
|
+
paths: TRANSFORM_PATHS_7
|
|
610
699
|
},
|
|
611
700
|
{
|
|
612
701
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
613
|
-
paths:
|
|
614
|
-
{ path: "services.service.createdDate" },
|
|
615
|
-
{ path: "services.service.updatedDate" },
|
|
616
|
-
{ path: "services.service.media.items.image.urlExpirationDate" },
|
|
617
|
-
{ path: "services.service.media.mainMedia.image.urlExpirationDate" },
|
|
618
|
-
{ path: "services.service.media.coverMedia.image.urlExpirationDate" },
|
|
619
|
-
{ path: "services.service.payment.subscription.recurringStartDate" },
|
|
620
|
-
{ path: "services.service.bookingPolicy.createdDate" },
|
|
621
|
-
{ path: "services.service.bookingPolicy.updatedDate" },
|
|
622
|
-
{ path: "services.service.schedule.firstSessionStart" },
|
|
623
|
-
{ path: "services.service.schedule.lastSessionEnd" },
|
|
624
|
-
{
|
|
625
|
-
path: "services.service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
626
|
-
},
|
|
627
|
-
{
|
|
628
|
-
path: "services.service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
629
|
-
},
|
|
630
|
-
{ path: "services.service.supportedSlugs.createdDate" },
|
|
631
|
-
{ path: "services.service.mainSlug.createdDate" }
|
|
632
|
-
]
|
|
702
|
+
paths: TRANSFORM_PATHS_8
|
|
633
703
|
},
|
|
634
704
|
{
|
|
635
705
|
transformFn: transformSDKFloatToRESTFloat,
|
|
636
|
-
paths:
|
|
637
|
-
{
|
|
638
|
-
path: "services.service.locations.business.address.geocode.latitude"
|
|
639
|
-
},
|
|
640
|
-
{
|
|
641
|
-
path: "services.service.locations.business.address.geocode.longitude"
|
|
642
|
-
},
|
|
643
|
-
{
|
|
644
|
-
path: "services.service.locations.custom.address.geocode.latitude"
|
|
645
|
-
},
|
|
646
|
-
{
|
|
647
|
-
path: "services.service.locations.custom.address.geocode.longitude"
|
|
648
|
-
},
|
|
649
|
-
{
|
|
650
|
-
path: "services.service.locations.calculatedAddress.geocode.latitude"
|
|
651
|
-
},
|
|
652
|
-
{
|
|
653
|
-
path: "services.service.locations.calculatedAddress.geocode.longitude"
|
|
654
|
-
}
|
|
655
|
-
]
|
|
706
|
+
paths: TRANSFORM_PATHS_9
|
|
656
707
|
}
|
|
657
708
|
]);
|
|
658
709
|
const metadata = {
|
|
@@ -672,49 +723,11 @@ function bulkUpdateServices(payload) {
|
|
|
672
723
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
673
724
|
{
|
|
674
725
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
675
|
-
paths:
|
|
676
|
-
{ path: "results.item.createdDate" },
|
|
677
|
-
{ path: "results.item.updatedDate" },
|
|
678
|
-
{ path: "results.item.media.items.image.urlExpirationDate" },
|
|
679
|
-
{ path: "results.item.media.mainMedia.image.urlExpirationDate" },
|
|
680
|
-
{ path: "results.item.media.coverMedia.image.urlExpirationDate" },
|
|
681
|
-
{ path: "results.item.payment.subscription.recurringStartDate" },
|
|
682
|
-
{ path: "results.item.bookingPolicy.createdDate" },
|
|
683
|
-
{ path: "results.item.bookingPolicy.updatedDate" },
|
|
684
|
-
{ path: "results.item.schedule.firstSessionStart" },
|
|
685
|
-
{ path: "results.item.schedule.lastSessionEnd" },
|
|
686
|
-
{
|
|
687
|
-
path: "results.item.staffMembers.mainMedia.image.urlExpirationDate"
|
|
688
|
-
},
|
|
689
|
-
{
|
|
690
|
-
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
691
|
-
},
|
|
692
|
-
{ path: "results.item.supportedSlugs.createdDate" },
|
|
693
|
-
{ path: "results.item.mainSlug.createdDate" }
|
|
694
|
-
]
|
|
726
|
+
paths: TRANSFORM_PATHS_4
|
|
695
727
|
},
|
|
696
728
|
{
|
|
697
729
|
transformFn: transformRESTFloatToSDKFloat,
|
|
698
|
-
paths:
|
|
699
|
-
{
|
|
700
|
-
path: "results.item.locations.business.address.geocode.latitude"
|
|
701
|
-
},
|
|
702
|
-
{
|
|
703
|
-
path: "results.item.locations.business.address.geocode.longitude"
|
|
704
|
-
},
|
|
705
|
-
{
|
|
706
|
-
path: "results.item.locations.custom.address.geocode.latitude"
|
|
707
|
-
},
|
|
708
|
-
{
|
|
709
|
-
path: "results.item.locations.custom.address.geocode.longitude"
|
|
710
|
-
},
|
|
711
|
-
{
|
|
712
|
-
path: "results.item.locations.calculatedAddress.geocode.latitude"
|
|
713
|
-
},
|
|
714
|
-
{
|
|
715
|
-
path: "results.item.locations.calculatedAddress.geocode.longitude"
|
|
716
|
-
}
|
|
717
|
-
]
|
|
730
|
+
paths: TRANSFORM_PATHS_5
|
|
718
731
|
}
|
|
719
732
|
])
|
|
720
733
|
};
|
|
@@ -727,39 +740,15 @@ function bulkUpdateServicesByFilter(payload) {
|
|
|
727
740
|
const serializedData = transformPaths(payload, [
|
|
728
741
|
{
|
|
729
742
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
730
|
-
paths:
|
|
743
|
+
paths: TRANSFORM_PATHS_6
|
|
731
744
|
},
|
|
732
745
|
{
|
|
733
746
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
734
|
-
paths:
|
|
735
|
-
{ path: "service.createdDate" },
|
|
736
|
-
{ path: "service.updatedDate" },
|
|
737
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
738
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
739
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
740
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
741
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
742
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
743
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
744
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
745
|
-
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
746
|
-
{
|
|
747
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
748
|
-
},
|
|
749
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
750
|
-
{ path: "service.mainSlug.createdDate" }
|
|
751
|
-
]
|
|
747
|
+
paths: TRANSFORM_PATHS_0
|
|
752
748
|
},
|
|
753
749
|
{
|
|
754
750
|
transformFn: transformSDKFloatToRESTFloat,
|
|
755
|
-
paths:
|
|
756
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
757
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
758
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
759
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
760
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
761
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
762
|
-
]
|
|
751
|
+
paths: TRANSFORM_PATHS_1
|
|
763
752
|
}
|
|
764
753
|
]);
|
|
765
754
|
const metadata = {
|
|
@@ -821,49 +810,11 @@ function bulkDeleteServices(payload) {
|
|
|
821
810
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
822
811
|
{
|
|
823
812
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
824
|
-
paths:
|
|
825
|
-
{ path: "results.item.createdDate" },
|
|
826
|
-
{ path: "results.item.updatedDate" },
|
|
827
|
-
{ path: "results.item.media.items.image.urlExpirationDate" },
|
|
828
|
-
{ path: "results.item.media.mainMedia.image.urlExpirationDate" },
|
|
829
|
-
{ path: "results.item.media.coverMedia.image.urlExpirationDate" },
|
|
830
|
-
{ path: "results.item.payment.subscription.recurringStartDate" },
|
|
831
|
-
{ path: "results.item.bookingPolicy.createdDate" },
|
|
832
|
-
{ path: "results.item.bookingPolicy.updatedDate" },
|
|
833
|
-
{ path: "results.item.schedule.firstSessionStart" },
|
|
834
|
-
{ path: "results.item.schedule.lastSessionEnd" },
|
|
835
|
-
{
|
|
836
|
-
path: "results.item.staffMembers.mainMedia.image.urlExpirationDate"
|
|
837
|
-
},
|
|
838
|
-
{
|
|
839
|
-
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
840
|
-
},
|
|
841
|
-
{ path: "results.item.supportedSlugs.createdDate" },
|
|
842
|
-
{ path: "results.item.mainSlug.createdDate" }
|
|
843
|
-
]
|
|
813
|
+
paths: TRANSFORM_PATHS_4
|
|
844
814
|
},
|
|
845
815
|
{
|
|
846
816
|
transformFn: transformRESTFloatToSDKFloat,
|
|
847
|
-
paths:
|
|
848
|
-
{
|
|
849
|
-
path: "results.item.locations.business.address.geocode.latitude"
|
|
850
|
-
},
|
|
851
|
-
{
|
|
852
|
-
path: "results.item.locations.business.address.geocode.longitude"
|
|
853
|
-
},
|
|
854
|
-
{
|
|
855
|
-
path: "results.item.locations.custom.address.geocode.latitude"
|
|
856
|
-
},
|
|
857
|
-
{
|
|
858
|
-
path: "results.item.locations.custom.address.geocode.longitude"
|
|
859
|
-
},
|
|
860
|
-
{
|
|
861
|
-
path: "results.item.locations.calculatedAddress.geocode.latitude"
|
|
862
|
-
},
|
|
863
|
-
{
|
|
864
|
-
path: "results.item.locations.calculatedAddress.geocode.longitude"
|
|
865
|
-
}
|
|
866
|
-
]
|
|
817
|
+
paths: TRANSFORM_PATHS_5
|
|
867
818
|
}
|
|
868
819
|
])
|
|
869
820
|
};
|
|
@@ -911,39 +862,11 @@ function queryServices(payload) {
|
|
|
911
862
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
912
863
|
{
|
|
913
864
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
914
|
-
paths:
|
|
915
|
-
{ path: "services.createdDate" },
|
|
916
|
-
{ path: "services.updatedDate" },
|
|
917
|
-
{ path: "services.media.items.image.urlExpirationDate" },
|
|
918
|
-
{ path: "services.media.mainMedia.image.urlExpirationDate" },
|
|
919
|
-
{ path: "services.media.coverMedia.image.urlExpirationDate" },
|
|
920
|
-
{ path: "services.payment.subscription.recurringStartDate" },
|
|
921
|
-
{ path: "services.bookingPolicy.createdDate" },
|
|
922
|
-
{ path: "services.bookingPolicy.updatedDate" },
|
|
923
|
-
{ path: "services.schedule.firstSessionStart" },
|
|
924
|
-
{ path: "services.schedule.lastSessionEnd" },
|
|
925
|
-
{
|
|
926
|
-
path: "services.staffMembers.mainMedia.image.urlExpirationDate"
|
|
927
|
-
},
|
|
928
|
-
{
|
|
929
|
-
path: "services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
930
|
-
},
|
|
931
|
-
{ path: "services.supportedSlugs.createdDate" },
|
|
932
|
-
{ path: "services.mainSlug.createdDate" }
|
|
933
|
-
]
|
|
865
|
+
paths: TRANSFORM_PATHS_2
|
|
934
866
|
},
|
|
935
867
|
{
|
|
936
868
|
transformFn: transformRESTFloatToSDKFloat,
|
|
937
|
-
paths:
|
|
938
|
-
{ path: "services.locations.business.address.geocode.latitude" },
|
|
939
|
-
{ path: "services.locations.business.address.geocode.longitude" },
|
|
940
|
-
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
941
|
-
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
942
|
-
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
943
|
-
{
|
|
944
|
-
path: "services.locations.calculatedAddress.geocode.longitude"
|
|
945
|
-
}
|
|
946
|
-
]
|
|
869
|
+
paths: TRANSFORM_PATHS_3
|
|
947
870
|
}
|
|
948
871
|
])
|
|
949
872
|
};
|
|
@@ -956,16 +879,7 @@ function searchServices(payload) {
|
|
|
956
879
|
const serializedData = transformPaths(payload, [
|
|
957
880
|
{
|
|
958
881
|
transformFn: transformSDKFloatToRESTFloat,
|
|
959
|
-
paths:
|
|
960
|
-
{ path: "search.aggregations.range.buckets.from" },
|
|
961
|
-
{ path: "search.aggregations.range.buckets.to" },
|
|
962
|
-
{
|
|
963
|
-
path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
|
|
964
|
-
},
|
|
965
|
-
{
|
|
966
|
-
path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
|
|
967
|
-
}
|
|
968
|
-
]
|
|
882
|
+
paths: TRANSFORM_PATHS_10
|
|
969
883
|
}
|
|
970
884
|
]);
|
|
971
885
|
const metadata = {
|
|
@@ -985,60 +899,11 @@ function searchServices(payload) {
|
|
|
985
899
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
986
900
|
{
|
|
987
901
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
988
|
-
paths:
|
|
989
|
-
{ path: "services.createdDate" },
|
|
990
|
-
{ path: "services.updatedDate" },
|
|
991
|
-
{ path: "services.media.items.image.urlExpirationDate" },
|
|
992
|
-
{ path: "services.media.mainMedia.image.urlExpirationDate" },
|
|
993
|
-
{ path: "services.media.coverMedia.image.urlExpirationDate" },
|
|
994
|
-
{ path: "services.payment.subscription.recurringStartDate" },
|
|
995
|
-
{ path: "services.bookingPolicy.createdDate" },
|
|
996
|
-
{ path: "services.bookingPolicy.updatedDate" },
|
|
997
|
-
{ path: "services.schedule.firstSessionStart" },
|
|
998
|
-
{ path: "services.schedule.lastSessionEnd" },
|
|
999
|
-
{
|
|
1000
|
-
path: "services.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1001
|
-
},
|
|
1002
|
-
{
|
|
1003
|
-
path: "services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1004
|
-
},
|
|
1005
|
-
{ path: "services.supportedSlugs.createdDate" },
|
|
1006
|
-
{ path: "services.mainSlug.createdDate" }
|
|
1007
|
-
]
|
|
902
|
+
paths: TRANSFORM_PATHS_2
|
|
1008
903
|
},
|
|
1009
904
|
{
|
|
1010
905
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1011
|
-
paths:
|
|
1012
|
-
{ path: "services.locations.business.address.geocode.latitude" },
|
|
1013
|
-
{ path: "services.locations.business.address.geocode.longitude" },
|
|
1014
|
-
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
1015
|
-
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
1016
|
-
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
1017
|
-
{
|
|
1018
|
-
path: "services.locations.calculatedAddress.geocode.longitude"
|
|
1019
|
-
},
|
|
1020
|
-
{ path: "aggregationData.results.ranges.results.from" },
|
|
1021
|
-
{ path: "aggregationData.results.ranges.results.to" },
|
|
1022
|
-
{
|
|
1023
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
|
|
1024
|
-
},
|
|
1025
|
-
{
|
|
1026
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
|
|
1027
|
-
},
|
|
1028
|
-
{
|
|
1029
|
-
path: "aggregationData.results.nested.results.results.*.range.from"
|
|
1030
|
-
},
|
|
1031
|
-
{
|
|
1032
|
-
path: "aggregationData.results.nested.results.results.*.range.to"
|
|
1033
|
-
},
|
|
1034
|
-
{ path: "aggregationData.results.scalar.value" },
|
|
1035
|
-
{
|
|
1036
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
|
|
1037
|
-
},
|
|
1038
|
-
{
|
|
1039
|
-
path: "aggregationData.results.nested.results.results.*.scalar.value"
|
|
1040
|
-
}
|
|
1041
|
-
]
|
|
906
|
+
paths: TRANSFORM_PATHS_11
|
|
1042
907
|
}
|
|
1043
908
|
])
|
|
1044
909
|
};
|
|
@@ -1065,115 +930,11 @@ function queryPolicies(payload) {
|
|
|
1065
930
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1066
931
|
{
|
|
1067
932
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1068
|
-
paths:
|
|
1069
|
-
{ path: "bookingPolicies.bookingPolicy.createdDate" },
|
|
1070
|
-
{ path: "bookingPolicies.bookingPolicy.updatedDate" },
|
|
1071
|
-
{ path: "bookingPolicies.services.createdDate" },
|
|
1072
|
-
{ path: "bookingPolicies.services.updatedDate" },
|
|
1073
|
-
{
|
|
1074
|
-
path: "bookingPolicies.services.media.items.image.urlExpirationDate"
|
|
1075
|
-
},
|
|
1076
|
-
{
|
|
1077
|
-
path: "bookingPolicies.services.media.mainMedia.image.urlExpirationDate"
|
|
1078
|
-
},
|
|
1079
|
-
{
|
|
1080
|
-
path: "bookingPolicies.services.media.coverMedia.image.urlExpirationDate"
|
|
1081
|
-
},
|
|
1082
|
-
{
|
|
1083
|
-
path: "bookingPolicies.services.payment.subscription.recurringStartDate"
|
|
1084
|
-
},
|
|
1085
|
-
{ path: "bookingPolicies.services.bookingPolicy.createdDate" },
|
|
1086
|
-
{ path: "bookingPolicies.services.bookingPolicy.updatedDate" },
|
|
1087
|
-
{ path: "bookingPolicies.services.schedule.firstSessionStart" },
|
|
1088
|
-
{ path: "bookingPolicies.services.schedule.lastSessionEnd" },
|
|
1089
|
-
{
|
|
1090
|
-
path: "bookingPolicies.services.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1091
|
-
},
|
|
1092
|
-
{
|
|
1093
|
-
path: "bookingPolicies.services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1094
|
-
},
|
|
1095
|
-
{ path: "bookingPolicies.services.supportedSlugs.createdDate" },
|
|
1096
|
-
{ path: "bookingPolicies.services.mainSlug.createdDate" },
|
|
1097
|
-
{ path: "bookingPolicies.connectedServices.createdDate" },
|
|
1098
|
-
{ path: "bookingPolicies.connectedServices.updatedDate" },
|
|
1099
|
-
{
|
|
1100
|
-
path: "bookingPolicies.connectedServices.media.items.image.urlExpirationDate"
|
|
1101
|
-
},
|
|
1102
|
-
{
|
|
1103
|
-
path: "bookingPolicies.connectedServices.media.mainMedia.image.urlExpirationDate"
|
|
1104
|
-
},
|
|
1105
|
-
{
|
|
1106
|
-
path: "bookingPolicies.connectedServices.media.coverMedia.image.urlExpirationDate"
|
|
1107
|
-
},
|
|
1108
|
-
{
|
|
1109
|
-
path: "bookingPolicies.connectedServices.payment.subscription.recurringStartDate"
|
|
1110
|
-
},
|
|
1111
|
-
{
|
|
1112
|
-
path: "bookingPolicies.connectedServices.bookingPolicy.createdDate"
|
|
1113
|
-
},
|
|
1114
|
-
{
|
|
1115
|
-
path: "bookingPolicies.connectedServices.bookingPolicy.updatedDate"
|
|
1116
|
-
},
|
|
1117
|
-
{
|
|
1118
|
-
path: "bookingPolicies.connectedServices.schedule.firstSessionStart"
|
|
1119
|
-
},
|
|
1120
|
-
{
|
|
1121
|
-
path: "bookingPolicies.connectedServices.schedule.lastSessionEnd"
|
|
1122
|
-
},
|
|
1123
|
-
{
|
|
1124
|
-
path: "bookingPolicies.connectedServices.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1125
|
-
},
|
|
1126
|
-
{
|
|
1127
|
-
path: "bookingPolicies.connectedServices.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1128
|
-
},
|
|
1129
|
-
{
|
|
1130
|
-
path: "bookingPolicies.connectedServices.supportedSlugs.createdDate"
|
|
1131
|
-
},
|
|
1132
|
-
{
|
|
1133
|
-
path: "bookingPolicies.connectedServices.mainSlug.createdDate"
|
|
1134
|
-
}
|
|
1135
|
-
]
|
|
933
|
+
paths: TRANSFORM_PATHS_12
|
|
1136
934
|
},
|
|
1137
935
|
{
|
|
1138
936
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1139
|
-
paths:
|
|
1140
|
-
{
|
|
1141
|
-
path: "bookingPolicies.services.locations.business.address.geocode.latitude"
|
|
1142
|
-
},
|
|
1143
|
-
{
|
|
1144
|
-
path: "bookingPolicies.services.locations.business.address.geocode.longitude"
|
|
1145
|
-
},
|
|
1146
|
-
{
|
|
1147
|
-
path: "bookingPolicies.services.locations.custom.address.geocode.latitude"
|
|
1148
|
-
},
|
|
1149
|
-
{
|
|
1150
|
-
path: "bookingPolicies.services.locations.custom.address.geocode.longitude"
|
|
1151
|
-
},
|
|
1152
|
-
{
|
|
1153
|
-
path: "bookingPolicies.services.locations.calculatedAddress.geocode.latitude"
|
|
1154
|
-
},
|
|
1155
|
-
{
|
|
1156
|
-
path: "bookingPolicies.services.locations.calculatedAddress.geocode.longitude"
|
|
1157
|
-
},
|
|
1158
|
-
{
|
|
1159
|
-
path: "bookingPolicies.connectedServices.locations.business.address.geocode.latitude"
|
|
1160
|
-
},
|
|
1161
|
-
{
|
|
1162
|
-
path: "bookingPolicies.connectedServices.locations.business.address.geocode.longitude"
|
|
1163
|
-
},
|
|
1164
|
-
{
|
|
1165
|
-
path: "bookingPolicies.connectedServices.locations.custom.address.geocode.latitude"
|
|
1166
|
-
},
|
|
1167
|
-
{
|
|
1168
|
-
path: "bookingPolicies.connectedServices.locations.custom.address.geocode.longitude"
|
|
1169
|
-
},
|
|
1170
|
-
{
|
|
1171
|
-
path: "bookingPolicies.connectedServices.locations.calculatedAddress.geocode.latitude"
|
|
1172
|
-
},
|
|
1173
|
-
{
|
|
1174
|
-
path: "bookingPolicies.connectedServices.locations.calculatedAddress.geocode.longitude"
|
|
1175
|
-
}
|
|
1176
|
-
]
|
|
937
|
+
paths: TRANSFORM_PATHS_13
|
|
1177
938
|
}
|
|
1178
939
|
])
|
|
1179
940
|
};
|
|
@@ -1242,26 +1003,7 @@ function queryLocations(payload) {
|
|
|
1242
1003
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1243
1004
|
{
|
|
1244
1005
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1245
|
-
paths:
|
|
1246
|
-
{
|
|
1247
|
-
path: "businessLocations.locations.business.address.geocode.latitude"
|
|
1248
|
-
},
|
|
1249
|
-
{
|
|
1250
|
-
path: "businessLocations.locations.business.address.geocode.longitude"
|
|
1251
|
-
},
|
|
1252
|
-
{
|
|
1253
|
-
path: "businessLocations.locations.custom.address.geocode.latitude"
|
|
1254
|
-
},
|
|
1255
|
-
{
|
|
1256
|
-
path: "businessLocations.locations.custom.address.geocode.longitude"
|
|
1257
|
-
},
|
|
1258
|
-
{
|
|
1259
|
-
path: "businessLocations.locations.calculatedAddress.geocode.latitude"
|
|
1260
|
-
},
|
|
1261
|
-
{
|
|
1262
|
-
path: "businessLocations.locations.calculatedAddress.geocode.longitude"
|
|
1263
|
-
}
|
|
1264
|
-
]
|
|
1006
|
+
paths: TRANSFORM_PATHS_14
|
|
1265
1007
|
}
|
|
1266
1008
|
])
|
|
1267
1009
|
};
|
|
@@ -1295,32 +1037,7 @@ function setServiceLocations(payload) {
|
|
|
1295
1037
|
const serializedData = transformPaths(payload, [
|
|
1296
1038
|
{
|
|
1297
1039
|
transformFn: transformSDKFloatToRESTFloat,
|
|
1298
|
-
paths:
|
|
1299
|
-
{ path: "locations.business.address.geocode.latitude" },
|
|
1300
|
-
{ path: "locations.business.address.geocode.longitude" },
|
|
1301
|
-
{ path: "locations.custom.address.geocode.latitude" },
|
|
1302
|
-
{ path: "locations.custom.address.geocode.longitude" },
|
|
1303
|
-
{ path: "locations.calculatedAddress.geocode.latitude" },
|
|
1304
|
-
{ path: "locations.calculatedAddress.geocode.longitude" },
|
|
1305
|
-
{
|
|
1306
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address.geocode.latitude"
|
|
1307
|
-
},
|
|
1308
|
-
{
|
|
1309
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address.geocode.longitude"
|
|
1310
|
-
},
|
|
1311
|
-
{
|
|
1312
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address.geocode.latitude"
|
|
1313
|
-
},
|
|
1314
|
-
{
|
|
1315
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address.geocode.longitude"
|
|
1316
|
-
},
|
|
1317
|
-
{
|
|
1318
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress.geocode.latitude"
|
|
1319
|
-
},
|
|
1320
|
-
{
|
|
1321
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress.geocode.longitude"
|
|
1322
|
-
}
|
|
1323
|
-
]
|
|
1040
|
+
paths: TRANSFORM_PATHS_15
|
|
1324
1041
|
}
|
|
1325
1042
|
]);
|
|
1326
1043
|
const metadata = {
|
|
@@ -1340,37 +1057,11 @@ function setServiceLocations(payload) {
|
|
|
1340
1057
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1341
1058
|
{
|
|
1342
1059
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1343
|
-
paths:
|
|
1344
|
-
{ path: "service.createdDate" },
|
|
1345
|
-
{ path: "service.updatedDate" },
|
|
1346
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1347
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1348
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1349
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1350
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1351
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1352
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1353
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1354
|
-
{
|
|
1355
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1356
|
-
},
|
|
1357
|
-
{
|
|
1358
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1359
|
-
},
|
|
1360
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1361
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1362
|
-
]
|
|
1060
|
+
paths: TRANSFORM_PATHS_0
|
|
1363
1061
|
},
|
|
1364
1062
|
{
|
|
1365
1063
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1366
|
-
paths:
|
|
1367
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1368
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1369
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1370
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1371
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1372
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1373
|
-
]
|
|
1064
|
+
paths: TRANSFORM_PATHS_1
|
|
1374
1065
|
}
|
|
1375
1066
|
])
|
|
1376
1067
|
};
|
|
@@ -1397,37 +1088,11 @@ function enablePricingPlansForService(payload) {
|
|
|
1397
1088
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1398
1089
|
{
|
|
1399
1090
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1400
|
-
paths:
|
|
1401
|
-
{ path: "service.createdDate" },
|
|
1402
|
-
{ path: "service.updatedDate" },
|
|
1403
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1404
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1405
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1406
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1407
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1408
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1409
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1410
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1411
|
-
{
|
|
1412
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1413
|
-
},
|
|
1414
|
-
{
|
|
1415
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1416
|
-
},
|
|
1417
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1418
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1419
|
-
]
|
|
1091
|
+
paths: TRANSFORM_PATHS_0
|
|
1420
1092
|
},
|
|
1421
1093
|
{
|
|
1422
1094
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1423
|
-
paths:
|
|
1424
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1425
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1426
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1427
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1428
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1429
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1430
|
-
]
|
|
1095
|
+
paths: TRANSFORM_PATHS_1
|
|
1431
1096
|
}
|
|
1432
1097
|
])
|
|
1433
1098
|
};
|
|
@@ -1454,37 +1119,11 @@ function disablePricingPlansForService(payload) {
|
|
|
1454
1119
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1455
1120
|
{
|
|
1456
1121
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1457
|
-
paths:
|
|
1458
|
-
{ path: "service.createdDate" },
|
|
1459
|
-
{ path: "service.updatedDate" },
|
|
1460
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1461
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1462
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1463
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1464
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1465
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1466
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1467
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1468
|
-
{
|
|
1469
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1470
|
-
},
|
|
1471
|
-
{
|
|
1472
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1473
|
-
},
|
|
1474
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1475
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1476
|
-
]
|
|
1122
|
+
paths: TRANSFORM_PATHS_0
|
|
1477
1123
|
},
|
|
1478
1124
|
{
|
|
1479
1125
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1480
|
-
paths:
|
|
1481
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1482
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1483
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1484
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1485
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1486
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1487
|
-
]
|
|
1126
|
+
paths: TRANSFORM_PATHS_1
|
|
1488
1127
|
}
|
|
1489
1128
|
])
|
|
1490
1129
|
};
|
|
@@ -1511,38 +1150,11 @@ function setCustomSlug(payload) {
|
|
|
1511
1150
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1512
1151
|
{
|
|
1513
1152
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1514
|
-
paths:
|
|
1515
|
-
{ path: "slug.createdDate" },
|
|
1516
|
-
{ path: "service.createdDate" },
|
|
1517
|
-
{ path: "service.updatedDate" },
|
|
1518
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1519
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1520
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1521
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1522
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1523
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1524
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1525
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1526
|
-
{
|
|
1527
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1528
|
-
},
|
|
1529
|
-
{
|
|
1530
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1531
|
-
},
|
|
1532
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1533
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1534
|
-
]
|
|
1153
|
+
paths: TRANSFORM_PATHS_16
|
|
1535
1154
|
},
|
|
1536
1155
|
{
|
|
1537
1156
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1538
|
-
paths:
|
|
1539
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1540
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1541
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1542
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1543
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1544
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1545
|
-
]
|
|
1157
|
+
paths: TRANSFORM_PATHS_1
|
|
1546
1158
|
}
|
|
1547
1159
|
])
|
|
1548
1160
|
};
|
|
@@ -1590,37 +1202,11 @@ function cloneService(payload) {
|
|
|
1590
1202
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1591
1203
|
{
|
|
1592
1204
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1593
|
-
paths:
|
|
1594
|
-
{ path: "service.createdDate" },
|
|
1595
|
-
{ path: "service.updatedDate" },
|
|
1596
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1597
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1598
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1599
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1600
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1601
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1602
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1603
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1604
|
-
{
|
|
1605
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1606
|
-
},
|
|
1607
|
-
{
|
|
1608
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1609
|
-
},
|
|
1610
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1611
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1612
|
-
]
|
|
1205
|
+
paths: TRANSFORM_PATHS_0
|
|
1613
1206
|
},
|
|
1614
1207
|
{
|
|
1615
1208
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1616
|
-
paths:
|
|
1617
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1618
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1619
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1620
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1621
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1622
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1623
|
-
]
|
|
1209
|
+
paths: TRANSFORM_PATHS_1
|
|
1624
1210
|
}
|
|
1625
1211
|
])
|
|
1626
1212
|
};
|
|
@@ -1675,7 +1261,7 @@ function updateAddOnGroup(payload) {
|
|
|
1675
1261
|
const serializedData = transformPaths(payload, [
|
|
1676
1262
|
{
|
|
1677
1263
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
1678
|
-
paths:
|
|
1264
|
+
paths: TRANSFORM_PATHS_6
|
|
1679
1265
|
}
|
|
1680
1266
|
]);
|
|
1681
1267
|
const metadata = {
|
|
@@ -1716,11 +1302,7 @@ function listAddOnGroupsByServiceId(payload) {
|
|
|
1716
1302
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1717
1303
|
{
|
|
1718
1304
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1719
|
-
paths:
|
|
1720
|
-
{
|
|
1721
|
-
path: "addOnGroupsDetails.addOns.mainMedia.image.urlExpirationDate"
|
|
1722
|
-
}
|
|
1723
|
-
]
|
|
1305
|
+
paths: TRANSFORM_PATHS_17
|
|
1724
1306
|
}
|
|
1725
1307
|
])
|
|
1726
1308
|
};
|
|
@@ -1760,6 +1342,128 @@ import { transformRESTPageURLV2ToSDKPageURLV2 } from "@wix/sdk-runtime/transform
|
|
|
1760
1342
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
1761
1343
|
import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
|
|
1762
1344
|
import { createSearchUtils } from "@wix/sdk-runtime/search-builder-utils";
|
|
1345
|
+
var TRANSFORM_PATHS_02 = [
|
|
1346
|
+
{ path: "service.media.items.image" },
|
|
1347
|
+
{ path: "service.media.mainMedia.image" },
|
|
1348
|
+
{ path: "service.media.coverMedia.image" },
|
|
1349
|
+
{ path: "service.staffMembers.mainMedia.image" },
|
|
1350
|
+
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
1351
|
+
];
|
|
1352
|
+
var TRANSFORM_PATHS_18 = [
|
|
1353
|
+
{ path: "service.locations.calculatedAddress" },
|
|
1354
|
+
{ path: "service.locations.business.address" },
|
|
1355
|
+
{ path: "service.locations.custom.address" }
|
|
1356
|
+
];
|
|
1357
|
+
var TRANSFORM_PATHS_22 = [
|
|
1358
|
+
{ path: "service.urls.servicePage" },
|
|
1359
|
+
{ path: "service.urls.bookingPage" },
|
|
1360
|
+
{ path: "service.urls.calendarPage" }
|
|
1361
|
+
];
|
|
1362
|
+
var TRANSFORM_PATHS_32 = [
|
|
1363
|
+
{ path: "services.media.items.image" },
|
|
1364
|
+
{ path: "services.media.mainMedia.image" },
|
|
1365
|
+
{ path: "services.media.coverMedia.image" },
|
|
1366
|
+
{ path: "services.staffMembers.mainMedia.image" },
|
|
1367
|
+
{ path: "services.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
1368
|
+
];
|
|
1369
|
+
var TRANSFORM_PATHS_42 = [
|
|
1370
|
+
{ path: "services.locations.calculatedAddress" },
|
|
1371
|
+
{ path: "services.locations.business.address" },
|
|
1372
|
+
{ path: "services.locations.custom.address" }
|
|
1373
|
+
];
|
|
1374
|
+
var TRANSFORM_PATHS_52 = [
|
|
1375
|
+
{ path: "services.urls.servicePage" },
|
|
1376
|
+
{ path: "services.urls.bookingPage" },
|
|
1377
|
+
{ path: "services.urls.calendarPage" }
|
|
1378
|
+
];
|
|
1379
|
+
var TRANSFORM_PATHS_62 = [
|
|
1380
|
+
{ path: "results.item.media.items.image" },
|
|
1381
|
+
{ path: "results.item.media.mainMedia.image" },
|
|
1382
|
+
{ path: "results.item.media.coverMedia.image" },
|
|
1383
|
+
{ path: "results.item.staffMembers.mainMedia.image" },
|
|
1384
|
+
{ path: "results.item.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
1385
|
+
];
|
|
1386
|
+
var TRANSFORM_PATHS_72 = [
|
|
1387
|
+
{ path: "results.item.locations.calculatedAddress" },
|
|
1388
|
+
{ path: "results.item.locations.business.address" },
|
|
1389
|
+
{ path: "results.item.locations.custom.address" }
|
|
1390
|
+
];
|
|
1391
|
+
var TRANSFORM_PATHS_82 = [
|
|
1392
|
+
{ path: "results.item.urls.servicePage" },
|
|
1393
|
+
{ path: "results.item.urls.bookingPage" },
|
|
1394
|
+
{ path: "results.item.urls.calendarPage" }
|
|
1395
|
+
];
|
|
1396
|
+
var TRANSFORM_PATHS_92 = [
|
|
1397
|
+
{ path: "services.service.media.items.image" },
|
|
1398
|
+
{ path: "services.service.media.mainMedia.image" },
|
|
1399
|
+
{ path: "services.service.media.coverMedia.image" },
|
|
1400
|
+
{ path: "services.service.staffMembers.mainMedia.image" },
|
|
1401
|
+
{ path: "services.service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
1402
|
+
];
|
|
1403
|
+
var TRANSFORM_PATHS_102 = [
|
|
1404
|
+
{ path: "services.service.locations.calculatedAddress" },
|
|
1405
|
+
{ path: "services.service.locations.business.address" },
|
|
1406
|
+
{ path: "services.service.locations.custom.address" }
|
|
1407
|
+
];
|
|
1408
|
+
var TRANSFORM_PATHS_112 = [
|
|
1409
|
+
{ path: "services.service.urls.servicePage" },
|
|
1410
|
+
{ path: "services.service.urls.bookingPage" },
|
|
1411
|
+
{ path: "services.service.urls.calendarPage" }
|
|
1412
|
+
];
|
|
1413
|
+
var TRANSFORM_PATHS_122 = [
|
|
1414
|
+
{ path: "bookingPolicies.services.media.items.image" },
|
|
1415
|
+
{ path: "bookingPolicies.services.media.mainMedia.image" },
|
|
1416
|
+
{ path: "bookingPolicies.services.media.coverMedia.image" },
|
|
1417
|
+
{ path: "bookingPolicies.services.staffMembers.mainMedia.image" },
|
|
1418
|
+
{
|
|
1419
|
+
path: "bookingPolicies.services.staffMemberDetails.staffMembers.mainMedia.image"
|
|
1420
|
+
},
|
|
1421
|
+
{ path: "bookingPolicies.connectedServices.media.items.image" },
|
|
1422
|
+
{ path: "bookingPolicies.connectedServices.media.mainMedia.image" },
|
|
1423
|
+
{ path: "bookingPolicies.connectedServices.media.coverMedia.image" },
|
|
1424
|
+
{ path: "bookingPolicies.connectedServices.staffMembers.mainMedia.image" },
|
|
1425
|
+
{
|
|
1426
|
+
path: "bookingPolicies.connectedServices.staffMemberDetails.staffMembers.mainMedia.image"
|
|
1427
|
+
}
|
|
1428
|
+
];
|
|
1429
|
+
var TRANSFORM_PATHS_132 = [
|
|
1430
|
+
{ path: "bookingPolicies.services.locations.calculatedAddress" },
|
|
1431
|
+
{ path: "bookingPolicies.services.locations.business.address" },
|
|
1432
|
+
{ path: "bookingPolicies.services.locations.custom.address" },
|
|
1433
|
+
{ path: "bookingPolicies.connectedServices.locations.calculatedAddress" },
|
|
1434
|
+
{ path: "bookingPolicies.connectedServices.locations.business.address" },
|
|
1435
|
+
{ path: "bookingPolicies.connectedServices.locations.custom.address" }
|
|
1436
|
+
];
|
|
1437
|
+
var TRANSFORM_PATHS_142 = [
|
|
1438
|
+
{ path: "bookingPolicies.services.urls.servicePage" },
|
|
1439
|
+
{ path: "bookingPolicies.services.urls.bookingPage" },
|
|
1440
|
+
{ path: "bookingPolicies.services.urls.calendarPage" },
|
|
1441
|
+
{ path: "bookingPolicies.connectedServices.urls.servicePage" },
|
|
1442
|
+
{ path: "bookingPolicies.connectedServices.urls.bookingPage" },
|
|
1443
|
+
{ path: "bookingPolicies.connectedServices.urls.calendarPage" }
|
|
1444
|
+
];
|
|
1445
|
+
var TRANSFORM_PATHS_152 = [
|
|
1446
|
+
{ path: "businessLocations.locations.calculatedAddress" },
|
|
1447
|
+
{ path: "businessLocations.locations.business.address" },
|
|
1448
|
+
{ path: "businessLocations.locations.custom.address" }
|
|
1449
|
+
];
|
|
1450
|
+
var TRANSFORM_PATHS_162 = [
|
|
1451
|
+
{ path: "locations.calculatedAddress" },
|
|
1452
|
+
{ path: "locations.business.address" },
|
|
1453
|
+
{ path: "locations.custom.address" },
|
|
1454
|
+
{
|
|
1455
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress"
|
|
1456
|
+
},
|
|
1457
|
+
{
|
|
1458
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address"
|
|
1459
|
+
},
|
|
1460
|
+
{
|
|
1461
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address"
|
|
1462
|
+
}
|
|
1463
|
+
];
|
|
1464
|
+
var TRANSFORM_PATHS_172 = [
|
|
1465
|
+
{ path: "addOnGroupsDetails.addOns.mainMedia.image" }
|
|
1466
|
+
];
|
|
1763
1467
|
var ServiceType = /* @__PURE__ */ ((ServiceType2) => {
|
|
1764
1468
|
ServiceType2["APPOINTMENT"] = "APPOINTMENT";
|
|
1765
1469
|
ServiceType2["CLASS"] = "CLASS";
|
|
@@ -2060,29 +1764,15 @@ async function createService2(service) {
|
|
|
2060
1764
|
[
|
|
2061
1765
|
{
|
|
2062
1766
|
transformFn: transformSDKImageToRESTImage,
|
|
2063
|
-
paths:
|
|
2064
|
-
{ path: "service.media.items.image" },
|
|
2065
|
-
{ path: "service.media.mainMedia.image" },
|
|
2066
|
-
{ path: "service.media.coverMedia.image" },
|
|
2067
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
2068
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2069
|
-
]
|
|
1767
|
+
paths: TRANSFORM_PATHS_02
|
|
2070
1768
|
},
|
|
2071
1769
|
{
|
|
2072
1770
|
transformFn: transformSDKAddressToRESTAddress,
|
|
2073
|
-
paths:
|
|
2074
|
-
{ path: "service.locations.calculatedAddress" },
|
|
2075
|
-
{ path: "service.locations.business.address" },
|
|
2076
|
-
{ path: "service.locations.custom.address" }
|
|
2077
|
-
]
|
|
1771
|
+
paths: TRANSFORM_PATHS_18
|
|
2078
1772
|
},
|
|
2079
1773
|
{
|
|
2080
1774
|
transformFn: transformSDKPageURLV2ToRESTPageURLV2,
|
|
2081
|
-
paths:
|
|
2082
|
-
{ path: "service.urls.servicePage" },
|
|
2083
|
-
{ path: "service.urls.bookingPage" },
|
|
2084
|
-
{ path: "service.urls.calendarPage" }
|
|
2085
|
-
]
|
|
1775
|
+
paths: TRANSFORM_PATHS_22
|
|
2086
1776
|
}
|
|
2087
1777
|
]
|
|
2088
1778
|
);
|
|
@@ -2095,29 +1785,15 @@ async function createService2(service) {
|
|
|
2095
1785
|
transformPaths2(result.data, [
|
|
2096
1786
|
{
|
|
2097
1787
|
transformFn: transformRESTImageToSDKImage,
|
|
2098
|
-
paths:
|
|
2099
|
-
{ path: "service.media.items.image" },
|
|
2100
|
-
{ path: "service.media.mainMedia.image" },
|
|
2101
|
-
{ path: "service.media.coverMedia.image" },
|
|
2102
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
2103
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2104
|
-
]
|
|
1788
|
+
paths: TRANSFORM_PATHS_02
|
|
2105
1789
|
},
|
|
2106
1790
|
{
|
|
2107
1791
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2108
|
-
paths:
|
|
2109
|
-
{ path: "service.locations.calculatedAddress" },
|
|
2110
|
-
{ path: "service.locations.business.address" },
|
|
2111
|
-
{ path: "service.locations.custom.address" }
|
|
2112
|
-
]
|
|
1792
|
+
paths: TRANSFORM_PATHS_18
|
|
2113
1793
|
},
|
|
2114
1794
|
{
|
|
2115
1795
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2116
|
-
paths:
|
|
2117
|
-
{ path: "service.urls.servicePage" },
|
|
2118
|
-
{ path: "service.urls.bookingPage" },
|
|
2119
|
-
{ path: "service.urls.calendarPage" }
|
|
2120
|
-
]
|
|
1796
|
+
paths: TRANSFORM_PATHS_22
|
|
2121
1797
|
}
|
|
2122
1798
|
])
|
|
2123
1799
|
)?.service;
|
|
@@ -2145,29 +1821,15 @@ async function bulkCreateServices2(services, options) {
|
|
|
2145
1821
|
[
|
|
2146
1822
|
{
|
|
2147
1823
|
transformFn: transformSDKImageToRESTImage,
|
|
2148
|
-
paths:
|
|
2149
|
-
{ path: "services.media.items.image" },
|
|
2150
|
-
{ path: "services.media.mainMedia.image" },
|
|
2151
|
-
{ path: "services.media.coverMedia.image" },
|
|
2152
|
-
{ path: "services.staffMembers.mainMedia.image" },
|
|
2153
|
-
{ path: "services.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2154
|
-
]
|
|
1824
|
+
paths: TRANSFORM_PATHS_32
|
|
2155
1825
|
},
|
|
2156
1826
|
{
|
|
2157
1827
|
transformFn: transformSDKAddressToRESTAddress,
|
|
2158
|
-
paths:
|
|
2159
|
-
{ path: "services.locations.calculatedAddress" },
|
|
2160
|
-
{ path: "services.locations.business.address" },
|
|
2161
|
-
{ path: "services.locations.custom.address" }
|
|
2162
|
-
]
|
|
1828
|
+
paths: TRANSFORM_PATHS_42
|
|
2163
1829
|
},
|
|
2164
1830
|
{
|
|
2165
1831
|
transformFn: transformSDKPageURLV2ToRESTPageURLV2,
|
|
2166
|
-
paths:
|
|
2167
|
-
{ path: "services.urls.servicePage" },
|
|
2168
|
-
{ path: "services.urls.bookingPage" },
|
|
2169
|
-
{ path: "services.urls.calendarPage" }
|
|
2170
|
-
]
|
|
1832
|
+
paths: TRANSFORM_PATHS_52
|
|
2171
1833
|
}
|
|
2172
1834
|
]
|
|
2173
1835
|
);
|
|
@@ -2180,31 +1842,15 @@ async function bulkCreateServices2(services, options) {
|
|
|
2180
1842
|
transformPaths2(result.data, [
|
|
2181
1843
|
{
|
|
2182
1844
|
transformFn: transformRESTImageToSDKImage,
|
|
2183
|
-
paths:
|
|
2184
|
-
{ path: "results.item.media.items.image" },
|
|
2185
|
-
{ path: "results.item.media.mainMedia.image" },
|
|
2186
|
-
{ path: "results.item.media.coverMedia.image" },
|
|
2187
|
-
{ path: "results.item.staffMembers.mainMedia.image" },
|
|
2188
|
-
{
|
|
2189
|
-
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2190
|
-
}
|
|
2191
|
-
]
|
|
1845
|
+
paths: TRANSFORM_PATHS_62
|
|
2192
1846
|
},
|
|
2193
1847
|
{
|
|
2194
1848
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2195
|
-
paths:
|
|
2196
|
-
{ path: "results.item.locations.calculatedAddress" },
|
|
2197
|
-
{ path: "results.item.locations.business.address" },
|
|
2198
|
-
{ path: "results.item.locations.custom.address" }
|
|
2199
|
-
]
|
|
1849
|
+
paths: TRANSFORM_PATHS_72
|
|
2200
1850
|
},
|
|
2201
1851
|
{
|
|
2202
1852
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2203
|
-
paths:
|
|
2204
|
-
{ path: "results.item.urls.servicePage" },
|
|
2205
|
-
{ path: "results.item.urls.bookingPage" },
|
|
2206
|
-
{ path: "results.item.urls.calendarPage" }
|
|
2207
|
-
]
|
|
1853
|
+
paths: TRANSFORM_PATHS_82
|
|
2208
1854
|
}
|
|
2209
1855
|
])
|
|
2210
1856
|
);
|
|
@@ -2240,29 +1886,15 @@ async function getService2(serviceId, options) {
|
|
|
2240
1886
|
transformPaths2(result.data, [
|
|
2241
1887
|
{
|
|
2242
1888
|
transformFn: transformRESTImageToSDKImage,
|
|
2243
|
-
paths:
|
|
2244
|
-
{ path: "service.media.items.image" },
|
|
2245
|
-
{ path: "service.media.mainMedia.image" },
|
|
2246
|
-
{ path: "service.media.coverMedia.image" },
|
|
2247
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
2248
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2249
|
-
]
|
|
1889
|
+
paths: TRANSFORM_PATHS_02
|
|
2250
1890
|
},
|
|
2251
1891
|
{
|
|
2252
1892
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2253
|
-
paths:
|
|
2254
|
-
{ path: "service.locations.calculatedAddress" },
|
|
2255
|
-
{ path: "service.locations.business.address" },
|
|
2256
|
-
{ path: "service.locations.custom.address" }
|
|
2257
|
-
]
|
|
1893
|
+
paths: TRANSFORM_PATHS_18
|
|
2258
1894
|
},
|
|
2259
1895
|
{
|
|
2260
1896
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2261
|
-
paths:
|
|
2262
|
-
{ path: "service.urls.servicePage" },
|
|
2263
|
-
{ path: "service.urls.bookingPage" },
|
|
2264
|
-
{ path: "service.urls.calendarPage" }
|
|
2265
|
-
]
|
|
1897
|
+
paths: TRANSFORM_PATHS_22
|
|
2266
1898
|
}
|
|
2267
1899
|
])
|
|
2268
1900
|
)?.service;
|
|
@@ -2290,29 +1922,15 @@ async function updateService2(_id, service) {
|
|
|
2290
1922
|
[
|
|
2291
1923
|
{
|
|
2292
1924
|
transformFn: transformSDKImageToRESTImage,
|
|
2293
|
-
paths:
|
|
2294
|
-
{ path: "service.media.items.image" },
|
|
2295
|
-
{ path: "service.media.mainMedia.image" },
|
|
2296
|
-
{ path: "service.media.coverMedia.image" },
|
|
2297
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
2298
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2299
|
-
]
|
|
1925
|
+
paths: TRANSFORM_PATHS_02
|
|
2300
1926
|
},
|
|
2301
1927
|
{
|
|
2302
1928
|
transformFn: transformSDKAddressToRESTAddress,
|
|
2303
|
-
paths:
|
|
2304
|
-
{ path: "service.locations.calculatedAddress" },
|
|
2305
|
-
{ path: "service.locations.business.address" },
|
|
2306
|
-
{ path: "service.locations.custom.address" }
|
|
2307
|
-
]
|
|
1929
|
+
paths: TRANSFORM_PATHS_18
|
|
2308
1930
|
},
|
|
2309
1931
|
{
|
|
2310
1932
|
transformFn: transformSDKPageURLV2ToRESTPageURLV2,
|
|
2311
|
-
paths:
|
|
2312
|
-
{ path: "service.urls.servicePage" },
|
|
2313
|
-
{ path: "service.urls.bookingPage" },
|
|
2314
|
-
{ path: "service.urls.calendarPage" }
|
|
2315
|
-
]
|
|
1933
|
+
paths: TRANSFORM_PATHS_22
|
|
2316
1934
|
}
|
|
2317
1935
|
]
|
|
2318
1936
|
);
|
|
@@ -2325,29 +1943,15 @@ async function updateService2(_id, service) {
|
|
|
2325
1943
|
transformPaths2(result.data, [
|
|
2326
1944
|
{
|
|
2327
1945
|
transformFn: transformRESTImageToSDKImage,
|
|
2328
|
-
paths:
|
|
2329
|
-
{ path: "service.media.items.image" },
|
|
2330
|
-
{ path: "service.media.mainMedia.image" },
|
|
2331
|
-
{ path: "service.media.coverMedia.image" },
|
|
2332
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
2333
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2334
|
-
]
|
|
1946
|
+
paths: TRANSFORM_PATHS_02
|
|
2335
1947
|
},
|
|
2336
1948
|
{
|
|
2337
1949
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2338
|
-
paths:
|
|
2339
|
-
{ path: "service.locations.calculatedAddress" },
|
|
2340
|
-
{ path: "service.locations.business.address" },
|
|
2341
|
-
{ path: "service.locations.custom.address" }
|
|
2342
|
-
]
|
|
1950
|
+
paths: TRANSFORM_PATHS_18
|
|
2343
1951
|
},
|
|
2344
1952
|
{
|
|
2345
1953
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2346
|
-
paths:
|
|
2347
|
-
{ path: "service.urls.servicePage" },
|
|
2348
|
-
{ path: "service.urls.bookingPage" },
|
|
2349
|
-
{ path: "service.urls.calendarPage" }
|
|
2350
|
-
]
|
|
1954
|
+
paths: TRANSFORM_PATHS_22
|
|
2351
1955
|
}
|
|
2352
1956
|
])
|
|
2353
1957
|
)?.service;
|
|
@@ -2375,31 +1979,15 @@ async function bulkUpdateServices2(options) {
|
|
|
2375
1979
|
[
|
|
2376
1980
|
{
|
|
2377
1981
|
transformFn: transformSDKImageToRESTImage,
|
|
2378
|
-
paths:
|
|
2379
|
-
{ path: "services.service.media.items.image" },
|
|
2380
|
-
{ path: "services.service.media.mainMedia.image" },
|
|
2381
|
-
{ path: "services.service.media.coverMedia.image" },
|
|
2382
|
-
{ path: "services.service.staffMembers.mainMedia.image" },
|
|
2383
|
-
{
|
|
2384
|
-
path: "services.service.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2385
|
-
}
|
|
2386
|
-
]
|
|
1982
|
+
paths: TRANSFORM_PATHS_92
|
|
2387
1983
|
},
|
|
2388
1984
|
{
|
|
2389
1985
|
transformFn: transformSDKAddressToRESTAddress,
|
|
2390
|
-
paths:
|
|
2391
|
-
{ path: "services.service.locations.calculatedAddress" },
|
|
2392
|
-
{ path: "services.service.locations.business.address" },
|
|
2393
|
-
{ path: "services.service.locations.custom.address" }
|
|
2394
|
-
]
|
|
1986
|
+
paths: TRANSFORM_PATHS_102
|
|
2395
1987
|
},
|
|
2396
1988
|
{
|
|
2397
1989
|
transformFn: transformSDKPageURLV2ToRESTPageURLV2,
|
|
2398
|
-
paths:
|
|
2399
|
-
{ path: "services.service.urls.servicePage" },
|
|
2400
|
-
{ path: "services.service.urls.bookingPage" },
|
|
2401
|
-
{ path: "services.service.urls.calendarPage" }
|
|
2402
|
-
]
|
|
1990
|
+
paths: TRANSFORM_PATHS_112
|
|
2403
1991
|
}
|
|
2404
1992
|
]
|
|
2405
1993
|
);
|
|
@@ -2412,31 +2000,15 @@ async function bulkUpdateServices2(options) {
|
|
|
2412
2000
|
transformPaths2(result.data, [
|
|
2413
2001
|
{
|
|
2414
2002
|
transformFn: transformRESTImageToSDKImage,
|
|
2415
|
-
paths:
|
|
2416
|
-
{ path: "results.item.media.items.image" },
|
|
2417
|
-
{ path: "results.item.media.mainMedia.image" },
|
|
2418
|
-
{ path: "results.item.media.coverMedia.image" },
|
|
2419
|
-
{ path: "results.item.staffMembers.mainMedia.image" },
|
|
2420
|
-
{
|
|
2421
|
-
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2422
|
-
}
|
|
2423
|
-
]
|
|
2003
|
+
paths: TRANSFORM_PATHS_62
|
|
2424
2004
|
},
|
|
2425
2005
|
{
|
|
2426
2006
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2427
|
-
paths:
|
|
2428
|
-
{ path: "results.item.locations.calculatedAddress" },
|
|
2429
|
-
{ path: "results.item.locations.business.address" },
|
|
2430
|
-
{ path: "results.item.locations.custom.address" }
|
|
2431
|
-
]
|
|
2007
|
+
paths: TRANSFORM_PATHS_72
|
|
2432
2008
|
},
|
|
2433
2009
|
{
|
|
2434
2010
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2435
|
-
paths:
|
|
2436
|
-
{ path: "results.item.urls.servicePage" },
|
|
2437
|
-
{ path: "results.item.urls.bookingPage" },
|
|
2438
|
-
{ path: "results.item.urls.calendarPage" }
|
|
2439
|
-
]
|
|
2011
|
+
paths: TRANSFORM_PATHS_82
|
|
2440
2012
|
}
|
|
2441
2013
|
])
|
|
2442
2014
|
);
|
|
@@ -2467,29 +2039,15 @@ async function bulkUpdateServicesByFilter2(filter, options) {
|
|
|
2467
2039
|
[
|
|
2468
2040
|
{
|
|
2469
2041
|
transformFn: transformSDKImageToRESTImage,
|
|
2470
|
-
paths:
|
|
2471
|
-
{ path: "service.media.items.image" },
|
|
2472
|
-
{ path: "service.media.mainMedia.image" },
|
|
2473
|
-
{ path: "service.media.coverMedia.image" },
|
|
2474
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
2475
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2476
|
-
]
|
|
2042
|
+
paths: TRANSFORM_PATHS_02
|
|
2477
2043
|
},
|
|
2478
2044
|
{
|
|
2479
2045
|
transformFn: transformSDKAddressToRESTAddress,
|
|
2480
|
-
paths:
|
|
2481
|
-
{ path: "service.locations.calculatedAddress" },
|
|
2482
|
-
{ path: "service.locations.business.address" },
|
|
2483
|
-
{ path: "service.locations.custom.address" }
|
|
2484
|
-
]
|
|
2046
|
+
paths: TRANSFORM_PATHS_18
|
|
2485
2047
|
},
|
|
2486
2048
|
{
|
|
2487
2049
|
transformFn: transformSDKPageURLV2ToRESTPageURLV2,
|
|
2488
|
-
paths:
|
|
2489
|
-
{ path: "service.urls.servicePage" },
|
|
2490
|
-
{ path: "service.urls.bookingPage" },
|
|
2491
|
-
{ path: "service.urls.calendarPage" }
|
|
2492
|
-
]
|
|
2050
|
+
paths: TRANSFORM_PATHS_22
|
|
2493
2051
|
}
|
|
2494
2052
|
]
|
|
2495
2053
|
);
|
|
@@ -2562,31 +2120,15 @@ async function bulkDeleteServices2(ids, options) {
|
|
|
2562
2120
|
transformPaths2(result.data, [
|
|
2563
2121
|
{
|
|
2564
2122
|
transformFn: transformRESTImageToSDKImage,
|
|
2565
|
-
paths:
|
|
2566
|
-
{ path: "results.item.media.items.image" },
|
|
2567
|
-
{ path: "results.item.media.mainMedia.image" },
|
|
2568
|
-
{ path: "results.item.media.coverMedia.image" },
|
|
2569
|
-
{ path: "results.item.staffMembers.mainMedia.image" },
|
|
2570
|
-
{
|
|
2571
|
-
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2572
|
-
}
|
|
2573
|
-
]
|
|
2123
|
+
paths: TRANSFORM_PATHS_62
|
|
2574
2124
|
},
|
|
2575
2125
|
{
|
|
2576
2126
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2577
|
-
paths:
|
|
2578
|
-
{ path: "results.item.locations.calculatedAddress" },
|
|
2579
|
-
{ path: "results.item.locations.business.address" },
|
|
2580
|
-
{ path: "results.item.locations.custom.address" }
|
|
2581
|
-
]
|
|
2127
|
+
paths: TRANSFORM_PATHS_72
|
|
2582
2128
|
},
|
|
2583
2129
|
{
|
|
2584
2130
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2585
|
-
paths:
|
|
2586
|
-
{ path: "results.item.urls.servicePage" },
|
|
2587
|
-
{ path: "results.item.urls.bookingPage" },
|
|
2588
|
-
{ path: "results.item.urls.calendarPage" }
|
|
2589
|
-
]
|
|
2131
|
+
paths: TRANSFORM_PATHS_82
|
|
2590
2132
|
}
|
|
2591
2133
|
])
|
|
2592
2134
|
);
|
|
@@ -2672,31 +2214,15 @@ function queryServices2(options) {
|
|
|
2672
2214
|
transformPaths2(data, [
|
|
2673
2215
|
{
|
|
2674
2216
|
transformFn: transformRESTImageToSDKImage,
|
|
2675
|
-
paths:
|
|
2676
|
-
{ path: "services.media.items.image" },
|
|
2677
|
-
{ path: "services.media.mainMedia.image" },
|
|
2678
|
-
{ path: "services.media.coverMedia.image" },
|
|
2679
|
-
{ path: "services.staffMembers.mainMedia.image" },
|
|
2680
|
-
{
|
|
2681
|
-
path: "services.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2682
|
-
}
|
|
2683
|
-
]
|
|
2217
|
+
paths: TRANSFORM_PATHS_32
|
|
2684
2218
|
},
|
|
2685
2219
|
{
|
|
2686
2220
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2687
|
-
paths:
|
|
2688
|
-
{ path: "services.locations.calculatedAddress" },
|
|
2689
|
-
{ path: "services.locations.business.address" },
|
|
2690
|
-
{ path: "services.locations.custom.address" }
|
|
2691
|
-
]
|
|
2221
|
+
paths: TRANSFORM_PATHS_42
|
|
2692
2222
|
},
|
|
2693
2223
|
{
|
|
2694
2224
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2695
|
-
paths:
|
|
2696
|
-
{ path: "services.urls.servicePage" },
|
|
2697
|
-
{ path: "services.urls.bookingPage" },
|
|
2698
|
-
{ path: "services.urls.calendarPage" }
|
|
2699
|
-
]
|
|
2225
|
+
paths: TRANSFORM_PATHS_52
|
|
2700
2226
|
}
|
|
2701
2227
|
])
|
|
2702
2228
|
);
|
|
@@ -2732,31 +2258,15 @@ async function typedQueryServices(query, options) {
|
|
|
2732
2258
|
transformPaths2(result.data, [
|
|
2733
2259
|
{
|
|
2734
2260
|
transformFn: transformRESTImageToSDKImage,
|
|
2735
|
-
paths:
|
|
2736
|
-
{ path: "services.media.items.image" },
|
|
2737
|
-
{ path: "services.media.mainMedia.image" },
|
|
2738
|
-
{ path: "services.media.coverMedia.image" },
|
|
2739
|
-
{ path: "services.staffMembers.mainMedia.image" },
|
|
2740
|
-
{
|
|
2741
|
-
path: "services.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2742
|
-
}
|
|
2743
|
-
]
|
|
2261
|
+
paths: TRANSFORM_PATHS_32
|
|
2744
2262
|
},
|
|
2745
2263
|
{
|
|
2746
2264
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2747
|
-
paths:
|
|
2748
|
-
{ path: "services.locations.calculatedAddress" },
|
|
2749
|
-
{ path: "services.locations.business.address" },
|
|
2750
|
-
{ path: "services.locations.custom.address" }
|
|
2751
|
-
]
|
|
2265
|
+
paths: TRANSFORM_PATHS_42
|
|
2752
2266
|
},
|
|
2753
2267
|
{
|
|
2754
2268
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2755
|
-
paths:
|
|
2756
|
-
{ path: "services.urls.servicePage" },
|
|
2757
|
-
{ path: "services.urls.bookingPage" },
|
|
2758
|
-
{ path: "services.urls.calendarPage" }
|
|
2759
|
-
]
|
|
2269
|
+
paths: TRANSFORM_PATHS_52
|
|
2760
2270
|
}
|
|
2761
2271
|
])
|
|
2762
2272
|
);
|
|
@@ -2790,31 +2300,15 @@ async function searchServices2(search) {
|
|
|
2790
2300
|
transformPaths2(result.data, [
|
|
2791
2301
|
{
|
|
2792
2302
|
transformFn: transformRESTImageToSDKImage,
|
|
2793
|
-
paths:
|
|
2794
|
-
{ path: "services.media.items.image" },
|
|
2795
|
-
{ path: "services.media.mainMedia.image" },
|
|
2796
|
-
{ path: "services.media.coverMedia.image" },
|
|
2797
|
-
{ path: "services.staffMembers.mainMedia.image" },
|
|
2798
|
-
{
|
|
2799
|
-
path: "services.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2800
|
-
}
|
|
2801
|
-
]
|
|
2303
|
+
paths: TRANSFORM_PATHS_32
|
|
2802
2304
|
},
|
|
2803
2305
|
{
|
|
2804
2306
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2805
|
-
paths:
|
|
2806
|
-
{ path: "services.locations.calculatedAddress" },
|
|
2807
|
-
{ path: "services.locations.business.address" },
|
|
2808
|
-
{ path: "services.locations.custom.address" }
|
|
2809
|
-
]
|
|
2307
|
+
paths: TRANSFORM_PATHS_42
|
|
2810
2308
|
},
|
|
2811
2309
|
{
|
|
2812
2310
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2813
|
-
paths:
|
|
2814
|
-
{ path: "services.urls.servicePage" },
|
|
2815
|
-
{ path: "services.urls.bookingPage" },
|
|
2816
|
-
{ path: "services.urls.calendarPage" }
|
|
2817
|
-
]
|
|
2311
|
+
paths: TRANSFORM_PATHS_52
|
|
2818
2312
|
}
|
|
2819
2313
|
])
|
|
2820
2314
|
);
|
|
@@ -2844,54 +2338,15 @@ async function queryPolicies2(query) {
|
|
|
2844
2338
|
transformPaths2(result.data, [
|
|
2845
2339
|
{
|
|
2846
2340
|
transformFn: transformRESTImageToSDKImage,
|
|
2847
|
-
paths:
|
|
2848
|
-
{ path: "bookingPolicies.services.media.items.image" },
|
|
2849
|
-
{ path: "bookingPolicies.services.media.mainMedia.image" },
|
|
2850
|
-
{ path: "bookingPolicies.services.media.coverMedia.image" },
|
|
2851
|
-
{ path: "bookingPolicies.services.staffMembers.mainMedia.image" },
|
|
2852
|
-
{
|
|
2853
|
-
path: "bookingPolicies.services.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2854
|
-
},
|
|
2855
|
-
{ path: "bookingPolicies.connectedServices.media.items.image" },
|
|
2856
|
-
{ path: "bookingPolicies.connectedServices.media.mainMedia.image" },
|
|
2857
|
-
{
|
|
2858
|
-
path: "bookingPolicies.connectedServices.media.coverMedia.image"
|
|
2859
|
-
},
|
|
2860
|
-
{
|
|
2861
|
-
path: "bookingPolicies.connectedServices.staffMembers.mainMedia.image"
|
|
2862
|
-
},
|
|
2863
|
-
{
|
|
2864
|
-
path: "bookingPolicies.connectedServices.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2865
|
-
}
|
|
2866
|
-
]
|
|
2341
|
+
paths: TRANSFORM_PATHS_122
|
|
2867
2342
|
},
|
|
2868
2343
|
{
|
|
2869
2344
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2870
|
-
paths:
|
|
2871
|
-
{ path: "bookingPolicies.services.locations.calculatedAddress" },
|
|
2872
|
-
{ path: "bookingPolicies.services.locations.business.address" },
|
|
2873
|
-
{ path: "bookingPolicies.services.locations.custom.address" },
|
|
2874
|
-
{
|
|
2875
|
-
path: "bookingPolicies.connectedServices.locations.calculatedAddress"
|
|
2876
|
-
},
|
|
2877
|
-
{
|
|
2878
|
-
path: "bookingPolicies.connectedServices.locations.business.address"
|
|
2879
|
-
},
|
|
2880
|
-
{
|
|
2881
|
-
path: "bookingPolicies.connectedServices.locations.custom.address"
|
|
2882
|
-
}
|
|
2883
|
-
]
|
|
2345
|
+
paths: TRANSFORM_PATHS_132
|
|
2884
2346
|
},
|
|
2885
2347
|
{
|
|
2886
2348
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2887
|
-
paths:
|
|
2888
|
-
{ path: "bookingPolicies.services.urls.servicePage" },
|
|
2889
|
-
{ path: "bookingPolicies.services.urls.bookingPage" },
|
|
2890
|
-
{ path: "bookingPolicies.services.urls.calendarPage" },
|
|
2891
|
-
{ path: "bookingPolicies.connectedServices.urls.servicePage" },
|
|
2892
|
-
{ path: "bookingPolicies.connectedServices.urls.bookingPage" },
|
|
2893
|
-
{ path: "bookingPolicies.connectedServices.urls.calendarPage" }
|
|
2894
|
-
]
|
|
2349
|
+
paths: TRANSFORM_PATHS_142
|
|
2895
2350
|
}
|
|
2896
2351
|
])
|
|
2897
2352
|
);
|
|
@@ -2977,11 +2432,7 @@ async function queryLocations2(options) {
|
|
|
2977
2432
|
transformPaths2(result.data, [
|
|
2978
2433
|
{
|
|
2979
2434
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2980
|
-
paths:
|
|
2981
|
-
{ path: "businessLocations.locations.calculatedAddress" },
|
|
2982
|
-
{ path: "businessLocations.locations.business.address" },
|
|
2983
|
-
{ path: "businessLocations.locations.custom.address" }
|
|
2984
|
-
]
|
|
2435
|
+
paths: TRANSFORM_PATHS_152
|
|
2985
2436
|
}
|
|
2986
2437
|
])
|
|
2987
2438
|
);
|
|
@@ -3036,20 +2487,7 @@ async function setServiceLocations2(serviceId, options) {
|
|
|
3036
2487
|
[
|
|
3037
2488
|
{
|
|
3038
2489
|
transformFn: transformSDKAddressToRESTAddress,
|
|
3039
|
-
paths:
|
|
3040
|
-
{ path: "locations.calculatedAddress" },
|
|
3041
|
-
{ path: "locations.business.address" },
|
|
3042
|
-
{ path: "locations.custom.address" },
|
|
3043
|
-
{
|
|
3044
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress"
|
|
3045
|
-
},
|
|
3046
|
-
{
|
|
3047
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address"
|
|
3048
|
-
},
|
|
3049
|
-
{
|
|
3050
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address"
|
|
3051
|
-
}
|
|
3052
|
-
]
|
|
2490
|
+
paths: TRANSFORM_PATHS_162
|
|
3053
2491
|
}
|
|
3054
2492
|
]
|
|
3055
2493
|
);
|
|
@@ -3062,29 +2500,15 @@ async function setServiceLocations2(serviceId, options) {
|
|
|
3062
2500
|
transformPaths2(result.data, [
|
|
3063
2501
|
{
|
|
3064
2502
|
transformFn: transformRESTImageToSDKImage,
|
|
3065
|
-
paths:
|
|
3066
|
-
{ path: "service.media.items.image" },
|
|
3067
|
-
{ path: "service.media.mainMedia.image" },
|
|
3068
|
-
{ path: "service.media.coverMedia.image" },
|
|
3069
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
3070
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
3071
|
-
]
|
|
2503
|
+
paths: TRANSFORM_PATHS_02
|
|
3072
2504
|
},
|
|
3073
2505
|
{
|
|
3074
2506
|
transformFn: transformRESTAddressToSDKAddress,
|
|
3075
|
-
paths:
|
|
3076
|
-
{ path: "service.locations.calculatedAddress" },
|
|
3077
|
-
{ path: "service.locations.business.address" },
|
|
3078
|
-
{ path: "service.locations.custom.address" }
|
|
3079
|
-
]
|
|
2507
|
+
paths: TRANSFORM_PATHS_18
|
|
3080
2508
|
},
|
|
3081
2509
|
{
|
|
3082
2510
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
3083
|
-
paths:
|
|
3084
|
-
{ path: "service.urls.servicePage" },
|
|
3085
|
-
{ path: "service.urls.bookingPage" },
|
|
3086
|
-
{ path: "service.urls.calendarPage" }
|
|
3087
|
-
]
|
|
2511
|
+
paths: TRANSFORM_PATHS_22
|
|
3088
2512
|
}
|
|
3089
2513
|
])
|
|
3090
2514
|
);
|
|
@@ -3124,29 +2548,15 @@ async function enablePricingPlansForService2(serviceId, pricingPlanIds) {
|
|
|
3124
2548
|
transformPaths2(result.data, [
|
|
3125
2549
|
{
|
|
3126
2550
|
transformFn: transformRESTImageToSDKImage,
|
|
3127
|
-
paths:
|
|
3128
|
-
{ path: "service.media.items.image" },
|
|
3129
|
-
{ path: "service.media.mainMedia.image" },
|
|
3130
|
-
{ path: "service.media.coverMedia.image" },
|
|
3131
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
3132
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
3133
|
-
]
|
|
2551
|
+
paths: TRANSFORM_PATHS_02
|
|
3134
2552
|
},
|
|
3135
2553
|
{
|
|
3136
2554
|
transformFn: transformRESTAddressToSDKAddress,
|
|
3137
|
-
paths:
|
|
3138
|
-
{ path: "service.locations.calculatedAddress" },
|
|
3139
|
-
{ path: "service.locations.business.address" },
|
|
3140
|
-
{ path: "service.locations.custom.address" }
|
|
3141
|
-
]
|
|
2555
|
+
paths: TRANSFORM_PATHS_18
|
|
3142
2556
|
},
|
|
3143
2557
|
{
|
|
3144
2558
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
3145
|
-
paths:
|
|
3146
|
-
{ path: "service.urls.servicePage" },
|
|
3147
|
-
{ path: "service.urls.bookingPage" },
|
|
3148
|
-
{ path: "service.urls.calendarPage" }
|
|
3149
|
-
]
|
|
2559
|
+
paths: TRANSFORM_PATHS_22
|
|
3150
2560
|
}
|
|
3151
2561
|
])
|
|
3152
2562
|
);
|
|
@@ -3181,29 +2591,15 @@ async function disablePricingPlansForService2(serviceId, options) {
|
|
|
3181
2591
|
transformPaths2(result.data, [
|
|
3182
2592
|
{
|
|
3183
2593
|
transformFn: transformRESTImageToSDKImage,
|
|
3184
|
-
paths:
|
|
3185
|
-
{ path: "service.media.items.image" },
|
|
3186
|
-
{ path: "service.media.mainMedia.image" },
|
|
3187
|
-
{ path: "service.media.coverMedia.image" },
|
|
3188
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
3189
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
3190
|
-
]
|
|
2594
|
+
paths: TRANSFORM_PATHS_02
|
|
3191
2595
|
},
|
|
3192
2596
|
{
|
|
3193
2597
|
transformFn: transformRESTAddressToSDKAddress,
|
|
3194
|
-
paths:
|
|
3195
|
-
{ path: "service.locations.calculatedAddress" },
|
|
3196
|
-
{ path: "service.locations.business.address" },
|
|
3197
|
-
{ path: "service.locations.custom.address" }
|
|
3198
|
-
]
|
|
2598
|
+
paths: TRANSFORM_PATHS_18
|
|
3199
2599
|
},
|
|
3200
2600
|
{
|
|
3201
2601
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
3202
|
-
paths:
|
|
3203
|
-
{ path: "service.urls.servicePage" },
|
|
3204
|
-
{ path: "service.urls.bookingPage" },
|
|
3205
|
-
{ path: "service.urls.calendarPage" }
|
|
3206
|
-
]
|
|
2602
|
+
paths: TRANSFORM_PATHS_22
|
|
3207
2603
|
}
|
|
3208
2604
|
])
|
|
3209
2605
|
);
|
|
@@ -3239,29 +2635,15 @@ async function setCustomSlug2(serviceId, options) {
|
|
|
3239
2635
|
transformPaths2(result.data, [
|
|
3240
2636
|
{
|
|
3241
2637
|
transformFn: transformRESTImageToSDKImage,
|
|
3242
|
-
paths:
|
|
3243
|
-
{ path: "service.media.items.image" },
|
|
3244
|
-
{ path: "service.media.mainMedia.image" },
|
|
3245
|
-
{ path: "service.media.coverMedia.image" },
|
|
3246
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
3247
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
3248
|
-
]
|
|
2638
|
+
paths: TRANSFORM_PATHS_02
|
|
3249
2639
|
},
|
|
3250
2640
|
{
|
|
3251
2641
|
transformFn: transformRESTAddressToSDKAddress,
|
|
3252
|
-
paths:
|
|
3253
|
-
{ path: "service.locations.calculatedAddress" },
|
|
3254
|
-
{ path: "service.locations.business.address" },
|
|
3255
|
-
{ path: "service.locations.custom.address" }
|
|
3256
|
-
]
|
|
2642
|
+
paths: TRANSFORM_PATHS_18
|
|
3257
2643
|
},
|
|
3258
2644
|
{
|
|
3259
2645
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
3260
|
-
paths:
|
|
3261
|
-
{ path: "service.urls.servicePage" },
|
|
3262
|
-
{ path: "service.urls.bookingPage" },
|
|
3263
|
-
{ path: "service.urls.calendarPage" }
|
|
3264
|
-
]
|
|
2646
|
+
paths: TRANSFORM_PATHS_22
|
|
3265
2647
|
}
|
|
3266
2648
|
])
|
|
3267
2649
|
);
|
|
@@ -3319,29 +2701,15 @@ async function cloneService2(sourceServiceId) {
|
|
|
3319
2701
|
transformPaths2(result.data, [
|
|
3320
2702
|
{
|
|
3321
2703
|
transformFn: transformRESTImageToSDKImage,
|
|
3322
|
-
paths:
|
|
3323
|
-
{ path: "service.media.items.image" },
|
|
3324
|
-
{ path: "service.media.mainMedia.image" },
|
|
3325
|
-
{ path: "service.media.coverMedia.image" },
|
|
3326
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
3327
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
3328
|
-
]
|
|
2704
|
+
paths: TRANSFORM_PATHS_02
|
|
3329
2705
|
},
|
|
3330
2706
|
{
|
|
3331
2707
|
transformFn: transformRESTAddressToSDKAddress,
|
|
3332
|
-
paths:
|
|
3333
|
-
{ path: "service.locations.calculatedAddress" },
|
|
3334
|
-
{ path: "service.locations.business.address" },
|
|
3335
|
-
{ path: "service.locations.custom.address" }
|
|
3336
|
-
]
|
|
2708
|
+
paths: TRANSFORM_PATHS_18
|
|
3337
2709
|
},
|
|
3338
2710
|
{
|
|
3339
2711
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
3340
|
-
paths:
|
|
3341
|
-
{ path: "service.urls.servicePage" },
|
|
3342
|
-
{ path: "service.urls.bookingPage" },
|
|
3343
|
-
{ path: "service.urls.calendarPage" }
|
|
3344
|
-
]
|
|
2712
|
+
paths: TRANSFORM_PATHS_22
|
|
3345
2713
|
}
|
|
3346
2714
|
])
|
|
3347
2715
|
);
|
|
@@ -3461,7 +2829,7 @@ async function listAddOnGroupsByServiceId2(serviceId, options) {
|
|
|
3461
2829
|
transformPaths2(result.data, [
|
|
3462
2830
|
{
|
|
3463
2831
|
transformFn: transformRESTImageToSDKImage,
|
|
3464
|
-
paths:
|
|
2832
|
+
paths: TRANSFORM_PATHS_172
|
|
3465
2833
|
}
|
|
3466
2834
|
])
|
|
3467
2835
|
);
|
|
@@ -3515,6 +2883,84 @@ async function setAddOnsForGroup2(serviceId, options) {
|
|
|
3515
2883
|
}
|
|
3516
2884
|
|
|
3517
2885
|
// src/bookings-services-v2-service-services.public.ts
|
|
2886
|
+
var TRANSFORM_PATHS_03 = [
|
|
2887
|
+
{ path: "entity.createdDate" },
|
|
2888
|
+
{ path: "entity.updatedDate" },
|
|
2889
|
+
{ path: "entity.payment.subscription.recurringStartDate" },
|
|
2890
|
+
{ path: "entity.bookingPolicy.createdDate" },
|
|
2891
|
+
{ path: "entity.bookingPolicy.updatedDate" },
|
|
2892
|
+
{ path: "entity.schedule.firstSessionStart" },
|
|
2893
|
+
{ path: "entity.schedule.lastSessionEnd" },
|
|
2894
|
+
{ path: "entity.supportedSlugs.createdDate" },
|
|
2895
|
+
{ path: "entity.mainSlug.createdDate" },
|
|
2896
|
+
{ path: "metadata.eventTime" }
|
|
2897
|
+
];
|
|
2898
|
+
var TRANSFORM_PATHS_19 = [
|
|
2899
|
+
{ path: "entity.media.items.image" },
|
|
2900
|
+
{ path: "entity.media.mainMedia.image" },
|
|
2901
|
+
{ path: "entity.media.coverMedia.image" },
|
|
2902
|
+
{ path: "entity.staffMembers.mainMedia.image" },
|
|
2903
|
+
{ path: "entity.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2904
|
+
];
|
|
2905
|
+
var TRANSFORM_PATHS_23 = [
|
|
2906
|
+
{ path: "entity.locations.calculatedAddress" },
|
|
2907
|
+
{ path: "entity.locations.business.address" },
|
|
2908
|
+
{ path: "entity.locations.custom.address" }
|
|
2909
|
+
];
|
|
2910
|
+
var TRANSFORM_PATHS_33 = [
|
|
2911
|
+
{ path: "entity.urls.servicePage" },
|
|
2912
|
+
{ path: "entity.urls.bookingPage" },
|
|
2913
|
+
{ path: "entity.urls.calendarPage" }
|
|
2914
|
+
];
|
|
2915
|
+
var TRANSFORM_PATHS_43 = [
|
|
2916
|
+
{ path: "entity.createdDate" },
|
|
2917
|
+
{ path: "entity.updatedDate" },
|
|
2918
|
+
{ path: "entity.payment.subscription.recurringStartDate" },
|
|
2919
|
+
{ path: "entity.bookingPolicy.createdDate" },
|
|
2920
|
+
{ path: "entity.bookingPolicy.updatedDate" },
|
|
2921
|
+
{ path: "entity.schedule.firstSessionStart" },
|
|
2922
|
+
{ path: "entity.schedule.lastSessionEnd" },
|
|
2923
|
+
{ path: "entity.supportedSlugs.createdDate" },
|
|
2924
|
+
{ path: "entity.mainSlug.createdDate" },
|
|
2925
|
+
{ path: "metadata.eventTime" },
|
|
2926
|
+
{ path: "modifiedFields.createdDate" },
|
|
2927
|
+
{ path: "modifiedFields.updatedDate" },
|
|
2928
|
+
{ path: "modifiedFields.payment.subscription.recurringStartDate" },
|
|
2929
|
+
{ path: "modifiedFields.bookingPolicy.createdDate" },
|
|
2930
|
+
{ path: "modifiedFields.bookingPolicy.updatedDate" },
|
|
2931
|
+
{ path: "modifiedFields.schedule.firstSessionStart" },
|
|
2932
|
+
{ path: "modifiedFields.schedule.lastSessionEnd" },
|
|
2933
|
+
{ path: "modifiedFields.supportedSlugs.createdDate" },
|
|
2934
|
+
{ path: "modifiedFields.mainSlug.createdDate" }
|
|
2935
|
+
];
|
|
2936
|
+
var TRANSFORM_PATHS_53 = [
|
|
2937
|
+
{ path: "entity.media.items.image" },
|
|
2938
|
+
{ path: "entity.media.mainMedia.image" },
|
|
2939
|
+
{ path: "entity.media.coverMedia.image" },
|
|
2940
|
+
{ path: "entity.staffMembers.mainMedia.image" },
|
|
2941
|
+
{ path: "entity.staffMemberDetails.staffMembers.mainMedia.image" },
|
|
2942
|
+
{ path: "modifiedFields.media.items.image" },
|
|
2943
|
+
{ path: "modifiedFields.media.mainMedia.image" },
|
|
2944
|
+
{ path: "modifiedFields.media.coverMedia.image" },
|
|
2945
|
+
{ path: "modifiedFields.staffMembers.mainMedia.image" },
|
|
2946
|
+
{ path: "modifiedFields.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2947
|
+
];
|
|
2948
|
+
var TRANSFORM_PATHS_63 = [
|
|
2949
|
+
{ path: "entity.locations.calculatedAddress" },
|
|
2950
|
+
{ path: "entity.locations.business.address" },
|
|
2951
|
+
{ path: "entity.locations.custom.address" },
|
|
2952
|
+
{ path: "modifiedFields.locations.calculatedAddress" },
|
|
2953
|
+
{ path: "modifiedFields.locations.business.address" },
|
|
2954
|
+
{ path: "modifiedFields.locations.custom.address" }
|
|
2955
|
+
];
|
|
2956
|
+
var TRANSFORM_PATHS_73 = [
|
|
2957
|
+
{ path: "entity.urls.servicePage" },
|
|
2958
|
+
{ path: "entity.urls.bookingPage" },
|
|
2959
|
+
{ path: "entity.urls.calendarPage" },
|
|
2960
|
+
{ path: "modifiedFields.urls.servicePage" },
|
|
2961
|
+
{ path: "modifiedFields.urls.bookingPage" },
|
|
2962
|
+
{ path: "modifiedFields.urls.calendarPage" }
|
|
2963
|
+
];
|
|
3518
2964
|
function createService3(httpClient) {
|
|
3519
2965
|
return (service) => createService2(
|
|
3520
2966
|
service,
|
|
@@ -3737,44 +3183,19 @@ var onServiceCreated = /* @__PURE__ */ EventDefinition(
|
|
|
3737
3183
|
transformPaths3(event, [
|
|
3738
3184
|
{
|
|
3739
3185
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
3740
|
-
paths:
|
|
3741
|
-
{ path: "entity.createdDate" },
|
|
3742
|
-
{ path: "entity.updatedDate" },
|
|
3743
|
-
{ path: "entity.payment.subscription.recurringStartDate" },
|
|
3744
|
-
{ path: "entity.bookingPolicy.createdDate" },
|
|
3745
|
-
{ path: "entity.bookingPolicy.updatedDate" },
|
|
3746
|
-
{ path: "entity.schedule.firstSessionStart" },
|
|
3747
|
-
{ path: "entity.schedule.lastSessionEnd" },
|
|
3748
|
-
{ path: "entity.supportedSlugs.createdDate" },
|
|
3749
|
-
{ path: "entity.mainSlug.createdDate" },
|
|
3750
|
-
{ path: "metadata.eventTime" }
|
|
3751
|
-
]
|
|
3186
|
+
paths: TRANSFORM_PATHS_03
|
|
3752
3187
|
},
|
|
3753
3188
|
{
|
|
3754
3189
|
transformFn: transformRESTImageToSDKImage2,
|
|
3755
|
-
paths:
|
|
3756
|
-
{ path: "entity.media.items.image" },
|
|
3757
|
-
{ path: "entity.media.mainMedia.image" },
|
|
3758
|
-
{ path: "entity.media.coverMedia.image" },
|
|
3759
|
-
{ path: "entity.staffMembers.mainMedia.image" },
|
|
3760
|
-
{ path: "entity.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
3761
|
-
]
|
|
3190
|
+
paths: TRANSFORM_PATHS_19
|
|
3762
3191
|
},
|
|
3763
3192
|
{
|
|
3764
3193
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
3765
|
-
paths:
|
|
3766
|
-
{ path: "entity.locations.calculatedAddress" },
|
|
3767
|
-
{ path: "entity.locations.business.address" },
|
|
3768
|
-
{ path: "entity.locations.custom.address" }
|
|
3769
|
-
]
|
|
3194
|
+
paths: TRANSFORM_PATHS_23
|
|
3770
3195
|
},
|
|
3771
3196
|
{
|
|
3772
3197
|
transformFn: transformRESTPageURLV2ToSDKPageURLV22,
|
|
3773
|
-
paths:
|
|
3774
|
-
{ path: "entity.urls.servicePage" },
|
|
3775
|
-
{ path: "entity.urls.bookingPage" },
|
|
3776
|
-
{ path: "entity.urls.calendarPage" }
|
|
3777
|
-
]
|
|
3198
|
+
paths: TRANSFORM_PATHS_33
|
|
3778
3199
|
}
|
|
3779
3200
|
])
|
|
3780
3201
|
)
|
|
@@ -3786,44 +3207,19 @@ var onServiceDeleted = /* @__PURE__ */ EventDefinition(
|
|
|
3786
3207
|
transformPaths3(event, [
|
|
3787
3208
|
{
|
|
3788
3209
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
3789
|
-
paths:
|
|
3790
|
-
{ path: "entity.createdDate" },
|
|
3791
|
-
{ path: "entity.updatedDate" },
|
|
3792
|
-
{ path: "entity.payment.subscription.recurringStartDate" },
|
|
3793
|
-
{ path: "entity.bookingPolicy.createdDate" },
|
|
3794
|
-
{ path: "entity.bookingPolicy.updatedDate" },
|
|
3795
|
-
{ path: "entity.schedule.firstSessionStart" },
|
|
3796
|
-
{ path: "entity.schedule.lastSessionEnd" },
|
|
3797
|
-
{ path: "entity.supportedSlugs.createdDate" },
|
|
3798
|
-
{ path: "entity.mainSlug.createdDate" },
|
|
3799
|
-
{ path: "metadata.eventTime" }
|
|
3800
|
-
]
|
|
3210
|
+
paths: TRANSFORM_PATHS_03
|
|
3801
3211
|
},
|
|
3802
3212
|
{
|
|
3803
3213
|
transformFn: transformRESTImageToSDKImage2,
|
|
3804
|
-
paths:
|
|
3805
|
-
{ path: "entity.media.items.image" },
|
|
3806
|
-
{ path: "entity.media.mainMedia.image" },
|
|
3807
|
-
{ path: "entity.media.coverMedia.image" },
|
|
3808
|
-
{ path: "entity.staffMembers.mainMedia.image" },
|
|
3809
|
-
{ path: "entity.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
3810
|
-
]
|
|
3214
|
+
paths: TRANSFORM_PATHS_19
|
|
3811
3215
|
},
|
|
3812
3216
|
{
|
|
3813
3217
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
3814
|
-
paths:
|
|
3815
|
-
{ path: "entity.locations.calculatedAddress" },
|
|
3816
|
-
{ path: "entity.locations.business.address" },
|
|
3817
|
-
{ path: "entity.locations.custom.address" }
|
|
3818
|
-
]
|
|
3218
|
+
paths: TRANSFORM_PATHS_23
|
|
3819
3219
|
},
|
|
3820
3220
|
{
|
|
3821
3221
|
transformFn: transformRESTPageURLV2ToSDKPageURLV22,
|
|
3822
|
-
paths:
|
|
3823
|
-
{ path: "entity.urls.servicePage" },
|
|
3824
|
-
{ path: "entity.urls.bookingPage" },
|
|
3825
|
-
{ path: "entity.urls.calendarPage" }
|
|
3826
|
-
]
|
|
3222
|
+
paths: TRANSFORM_PATHS_33
|
|
3827
3223
|
}
|
|
3828
3224
|
])
|
|
3829
3225
|
)
|
|
@@ -3835,66 +3231,19 @@ var onServiceUpdated = /* @__PURE__ */ EventDefinition(
|
|
|
3835
3231
|
transformPaths3(event, [
|
|
3836
3232
|
{
|
|
3837
3233
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
3838
|
-
paths:
|
|
3839
|
-
{ path: "entity.createdDate" },
|
|
3840
|
-
{ path: "entity.updatedDate" },
|
|
3841
|
-
{ path: "entity.payment.subscription.recurringStartDate" },
|
|
3842
|
-
{ path: "entity.bookingPolicy.createdDate" },
|
|
3843
|
-
{ path: "entity.bookingPolicy.updatedDate" },
|
|
3844
|
-
{ path: "entity.schedule.firstSessionStart" },
|
|
3845
|
-
{ path: "entity.schedule.lastSessionEnd" },
|
|
3846
|
-
{ path: "entity.supportedSlugs.createdDate" },
|
|
3847
|
-
{ path: "entity.mainSlug.createdDate" },
|
|
3848
|
-
{ path: "metadata.eventTime" },
|
|
3849
|
-
{ path: "modifiedFields.createdDate" },
|
|
3850
|
-
{ path: "modifiedFields.updatedDate" },
|
|
3851
|
-
{ path: "modifiedFields.payment.subscription.recurringStartDate" },
|
|
3852
|
-
{ path: "modifiedFields.bookingPolicy.createdDate" },
|
|
3853
|
-
{ path: "modifiedFields.bookingPolicy.updatedDate" },
|
|
3854
|
-
{ path: "modifiedFields.schedule.firstSessionStart" },
|
|
3855
|
-
{ path: "modifiedFields.schedule.lastSessionEnd" },
|
|
3856
|
-
{ path: "modifiedFields.supportedSlugs.createdDate" },
|
|
3857
|
-
{ path: "modifiedFields.mainSlug.createdDate" }
|
|
3858
|
-
]
|
|
3234
|
+
paths: TRANSFORM_PATHS_43
|
|
3859
3235
|
},
|
|
3860
3236
|
{
|
|
3861
3237
|
transformFn: transformRESTImageToSDKImage2,
|
|
3862
|
-
paths:
|
|
3863
|
-
{ path: "entity.media.items.image" },
|
|
3864
|
-
{ path: "entity.media.mainMedia.image" },
|
|
3865
|
-
{ path: "entity.media.coverMedia.image" },
|
|
3866
|
-
{ path: "entity.staffMembers.mainMedia.image" },
|
|
3867
|
-
{ path: "entity.staffMemberDetails.staffMembers.mainMedia.image" },
|
|
3868
|
-
{ path: "modifiedFields.media.items.image" },
|
|
3869
|
-
{ path: "modifiedFields.media.mainMedia.image" },
|
|
3870
|
-
{ path: "modifiedFields.media.coverMedia.image" },
|
|
3871
|
-
{ path: "modifiedFields.staffMembers.mainMedia.image" },
|
|
3872
|
-
{
|
|
3873
|
-
path: "modifiedFields.staffMemberDetails.staffMembers.mainMedia.image"
|
|
3874
|
-
}
|
|
3875
|
-
]
|
|
3238
|
+
paths: TRANSFORM_PATHS_53
|
|
3876
3239
|
},
|
|
3877
3240
|
{
|
|
3878
3241
|
transformFn: transformRESTAddressToSDKAddress2,
|
|
3879
|
-
paths:
|
|
3880
|
-
{ path: "entity.locations.calculatedAddress" },
|
|
3881
|
-
{ path: "entity.locations.business.address" },
|
|
3882
|
-
{ path: "entity.locations.custom.address" },
|
|
3883
|
-
{ path: "modifiedFields.locations.calculatedAddress" },
|
|
3884
|
-
{ path: "modifiedFields.locations.business.address" },
|
|
3885
|
-
{ path: "modifiedFields.locations.custom.address" }
|
|
3886
|
-
]
|
|
3242
|
+
paths: TRANSFORM_PATHS_63
|
|
3887
3243
|
},
|
|
3888
3244
|
{
|
|
3889
3245
|
transformFn: transformRESTPageURLV2ToSDKPageURLV22,
|
|
3890
|
-
paths:
|
|
3891
|
-
{ path: "entity.urls.servicePage" },
|
|
3892
|
-
{ path: "entity.urls.bookingPage" },
|
|
3893
|
-
{ path: "entity.urls.calendarPage" },
|
|
3894
|
-
{ path: "modifiedFields.urls.servicePage" },
|
|
3895
|
-
{ path: "modifiedFields.urls.bookingPage" },
|
|
3896
|
-
{ path: "modifiedFields.urls.calendarPage" }
|
|
3897
|
-
]
|
|
3246
|
+
paths: TRANSFORM_PATHS_73
|
|
3898
3247
|
}
|
|
3899
3248
|
])
|
|
3900
3249
|
)
|