@wix/auto_sdk_bookings_services 1.0.285 → 1.0.287
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/{bookings-services-v2-service-services.universal-x93KVD3o.d.ts → bookings-services-v2-service-services.universal-CwRIKSe0.d.ts} +1 -0
- package/build/cjs/index.d.ts +2 -2
- package/build/cjs/index.js +598 -1249
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2 -2
- package/build/cjs/index.typings.js +508 -1140
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +2 -1
- package/build/cjs/meta.js +323 -741
- package/build/cjs/meta.js.map +1 -1
- package/build/es/{bookings-services-v2-service-services.universal-x93KVD3o.d.mts → bookings-services-v2-service-services.universal-CwRIKSe0.d.mts} +1 -0
- package/build/es/index.d.mts +2 -2
- package/build/es/index.mjs +598 -1249
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2 -2
- package/build/es/index.typings.mjs +508 -1140
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +2 -1
- package/build/es/meta.mjs +323 -741
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/{bookings-services-v2-service-services.universal-BMl4hjIJ.d.ts → bookings-services-v2-service-services.universal-D1yGlSUM.d.ts} +1 -0
- package/build/internal/cjs/index.d.ts +2 -2
- package/build/internal/cjs/index.typings.d.ts +2 -2
- package/build/internal/cjs/meta.d.ts +2 -1
- package/build/internal/es/{bookings-services-v2-service-services.universal-BMl4hjIJ.d.mts → bookings-services-v2-service-services.universal-D1yGlSUM.d.mts} +1 -0
- package/build/internal/es/index.d.mts +2 -2
- package/build/internal/es/index.typings.d.mts +2 -2
- package/build/internal/es/meta.d.mts +2 -1
- package/package.json +2 -2
|
@@ -15,6 +15,283 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
|
|
|
15
15
|
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
16
16
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
17
17
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
18
|
+
var TRANSFORM_PATHS_0 = [
|
|
19
|
+
{ path: "service.createdDate" },
|
|
20
|
+
{ path: "service.updatedDate" },
|
|
21
|
+
{ path: "service.media.items.image.urlExpirationDate" },
|
|
22
|
+
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
23
|
+
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
24
|
+
{ path: "service.payment.subscription.recurringStartDate" },
|
|
25
|
+
{ path: "service.bookingPolicy.createdDate" },
|
|
26
|
+
{ path: "service.bookingPolicy.updatedDate" },
|
|
27
|
+
{ path: "service.schedule.firstSessionStart" },
|
|
28
|
+
{ path: "service.schedule.lastSessionEnd" },
|
|
29
|
+
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
30
|
+
{
|
|
31
|
+
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
32
|
+
},
|
|
33
|
+
{ path: "service.supportedSlugs.createdDate" },
|
|
34
|
+
{ path: "service.mainSlug.createdDate" }
|
|
35
|
+
];
|
|
36
|
+
var TRANSFORM_PATHS_1 = [
|
|
37
|
+
{ path: "service.locations.business.address.geocode.latitude" },
|
|
38
|
+
{ path: "service.locations.business.address.geocode.longitude" },
|
|
39
|
+
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
40
|
+
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
41
|
+
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
42
|
+
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
43
|
+
];
|
|
44
|
+
var TRANSFORM_PATHS_2 = [
|
|
45
|
+
{ path: "services.createdDate" },
|
|
46
|
+
{ path: "services.updatedDate" },
|
|
47
|
+
{ path: "services.media.items.image.urlExpirationDate" },
|
|
48
|
+
{ path: "services.media.mainMedia.image.urlExpirationDate" },
|
|
49
|
+
{ path: "services.media.coverMedia.image.urlExpirationDate" },
|
|
50
|
+
{ path: "services.payment.subscription.recurringStartDate" },
|
|
51
|
+
{ path: "services.bookingPolicy.createdDate" },
|
|
52
|
+
{ path: "services.bookingPolicy.updatedDate" },
|
|
53
|
+
{ path: "services.schedule.firstSessionStart" },
|
|
54
|
+
{ path: "services.schedule.lastSessionEnd" },
|
|
55
|
+
{ path: "services.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
56
|
+
{
|
|
57
|
+
path: "services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
58
|
+
},
|
|
59
|
+
{ path: "services.supportedSlugs.createdDate" },
|
|
60
|
+
{ path: "services.mainSlug.createdDate" }
|
|
61
|
+
];
|
|
62
|
+
var TRANSFORM_PATHS_3 = [
|
|
63
|
+
{ path: "services.locations.business.address.geocode.latitude" },
|
|
64
|
+
{ path: "services.locations.business.address.geocode.longitude" },
|
|
65
|
+
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
66
|
+
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
67
|
+
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
68
|
+
{ path: "services.locations.calculatedAddress.geocode.longitude" }
|
|
69
|
+
];
|
|
70
|
+
var TRANSFORM_PATHS_4 = [
|
|
71
|
+
{ path: "results.item.createdDate" },
|
|
72
|
+
{ path: "results.item.updatedDate" },
|
|
73
|
+
{ path: "results.item.media.items.image.urlExpirationDate" },
|
|
74
|
+
{ path: "results.item.media.mainMedia.image.urlExpirationDate" },
|
|
75
|
+
{ path: "results.item.media.coverMedia.image.urlExpirationDate" },
|
|
76
|
+
{ path: "results.item.payment.subscription.recurringStartDate" },
|
|
77
|
+
{ path: "results.item.bookingPolicy.createdDate" },
|
|
78
|
+
{ path: "results.item.bookingPolicy.updatedDate" },
|
|
79
|
+
{ path: "results.item.schedule.firstSessionStart" },
|
|
80
|
+
{ path: "results.item.schedule.lastSessionEnd" },
|
|
81
|
+
{ path: "results.item.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
82
|
+
{
|
|
83
|
+
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
84
|
+
},
|
|
85
|
+
{ path: "results.item.supportedSlugs.createdDate" },
|
|
86
|
+
{ path: "results.item.mainSlug.createdDate" }
|
|
87
|
+
];
|
|
88
|
+
var TRANSFORM_PATHS_5 = [
|
|
89
|
+
{ path: "results.item.locations.business.address.geocode.latitude" },
|
|
90
|
+
{ path: "results.item.locations.business.address.geocode.longitude" },
|
|
91
|
+
{ path: "results.item.locations.custom.address.geocode.latitude" },
|
|
92
|
+
{ path: "results.item.locations.custom.address.geocode.longitude" },
|
|
93
|
+
{ path: "results.item.locations.calculatedAddress.geocode.latitude" },
|
|
94
|
+
{ path: "results.item.locations.calculatedAddress.geocode.longitude" }
|
|
95
|
+
];
|
|
96
|
+
var TRANSFORM_PATHS_6 = [{ path: "mask" }];
|
|
97
|
+
var TRANSFORM_PATHS_7 = [{ path: "services.mask" }];
|
|
98
|
+
var TRANSFORM_PATHS_8 = [
|
|
99
|
+
{ path: "services.service.createdDate" },
|
|
100
|
+
{ path: "services.service.updatedDate" },
|
|
101
|
+
{ path: "services.service.media.items.image.urlExpirationDate" },
|
|
102
|
+
{ path: "services.service.media.mainMedia.image.urlExpirationDate" },
|
|
103
|
+
{ path: "services.service.media.coverMedia.image.urlExpirationDate" },
|
|
104
|
+
{ path: "services.service.payment.subscription.recurringStartDate" },
|
|
105
|
+
{ path: "services.service.bookingPolicy.createdDate" },
|
|
106
|
+
{ path: "services.service.bookingPolicy.updatedDate" },
|
|
107
|
+
{ path: "services.service.schedule.firstSessionStart" },
|
|
108
|
+
{ path: "services.service.schedule.lastSessionEnd" },
|
|
109
|
+
{ path: "services.service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
110
|
+
{
|
|
111
|
+
path: "services.service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
112
|
+
},
|
|
113
|
+
{ path: "services.service.supportedSlugs.createdDate" },
|
|
114
|
+
{ path: "services.service.mainSlug.createdDate" }
|
|
115
|
+
];
|
|
116
|
+
var TRANSFORM_PATHS_9 = [
|
|
117
|
+
{ path: "services.service.locations.business.address.geocode.latitude" },
|
|
118
|
+
{ path: "services.service.locations.business.address.geocode.longitude" },
|
|
119
|
+
{ path: "services.service.locations.custom.address.geocode.latitude" },
|
|
120
|
+
{ path: "services.service.locations.custom.address.geocode.longitude" },
|
|
121
|
+
{ path: "services.service.locations.calculatedAddress.geocode.latitude" },
|
|
122
|
+
{ path: "services.service.locations.calculatedAddress.geocode.longitude" }
|
|
123
|
+
];
|
|
124
|
+
var TRANSFORM_PATHS_10 = [
|
|
125
|
+
{ path: "search.aggregations.range.buckets.from" },
|
|
126
|
+
{ path: "search.aggregations.range.buckets.to" },
|
|
127
|
+
{ path: "search.aggregations.nested.nestedAggregations.range.buckets.from" },
|
|
128
|
+
{ path: "search.aggregations.nested.nestedAggregations.range.buckets.to" }
|
|
129
|
+
];
|
|
130
|
+
var TRANSFORM_PATHS_11 = [
|
|
131
|
+
{ path: "services.locations.business.address.geocode.latitude" },
|
|
132
|
+
{ path: "services.locations.business.address.geocode.longitude" },
|
|
133
|
+
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
134
|
+
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
135
|
+
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
136
|
+
{ path: "services.locations.calculatedAddress.geocode.longitude" },
|
|
137
|
+
{ path: "aggregationData.results.ranges.results.from" },
|
|
138
|
+
{ path: "aggregationData.results.ranges.results.to" },
|
|
139
|
+
{
|
|
140
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
|
|
144
|
+
},
|
|
145
|
+
{ path: "aggregationData.results.nested.results.results.*.range.from" },
|
|
146
|
+
{ path: "aggregationData.results.nested.results.results.*.range.to" },
|
|
147
|
+
{ path: "aggregationData.results.scalar.value" },
|
|
148
|
+
{
|
|
149
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
|
|
150
|
+
},
|
|
151
|
+
{ path: "aggregationData.results.nested.results.results.*.scalar.value" }
|
|
152
|
+
];
|
|
153
|
+
var TRANSFORM_PATHS_12 = [
|
|
154
|
+
{ path: "bookingPolicies.bookingPolicy.createdDate" },
|
|
155
|
+
{ path: "bookingPolicies.bookingPolicy.updatedDate" },
|
|
156
|
+
{ path: "bookingPolicies.services.createdDate" },
|
|
157
|
+
{ path: "bookingPolicies.services.updatedDate" },
|
|
158
|
+
{ path: "bookingPolicies.services.media.items.image.urlExpirationDate" },
|
|
159
|
+
{ path: "bookingPolicies.services.media.mainMedia.image.urlExpirationDate" },
|
|
160
|
+
{ path: "bookingPolicies.services.media.coverMedia.image.urlExpirationDate" },
|
|
161
|
+
{ path: "bookingPolicies.services.payment.subscription.recurringStartDate" },
|
|
162
|
+
{ path: "bookingPolicies.services.bookingPolicy.createdDate" },
|
|
163
|
+
{ path: "bookingPolicies.services.bookingPolicy.updatedDate" },
|
|
164
|
+
{ path: "bookingPolicies.services.schedule.firstSessionStart" },
|
|
165
|
+
{ path: "bookingPolicies.services.schedule.lastSessionEnd" },
|
|
166
|
+
{
|
|
167
|
+
path: "bookingPolicies.services.staffMembers.mainMedia.image.urlExpirationDate"
|
|
168
|
+
},
|
|
169
|
+
{
|
|
170
|
+
path: "bookingPolicies.services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
171
|
+
},
|
|
172
|
+
{ path: "bookingPolicies.services.supportedSlugs.createdDate" },
|
|
173
|
+
{ path: "bookingPolicies.services.mainSlug.createdDate" },
|
|
174
|
+
{ path: "bookingPolicies.connectedServices.createdDate" },
|
|
175
|
+
{ path: "bookingPolicies.connectedServices.updatedDate" },
|
|
176
|
+
{
|
|
177
|
+
path: "bookingPolicies.connectedServices.media.items.image.urlExpirationDate"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
path: "bookingPolicies.connectedServices.media.mainMedia.image.urlExpirationDate"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
path: "bookingPolicies.connectedServices.media.coverMedia.image.urlExpirationDate"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
path: "bookingPolicies.connectedServices.payment.subscription.recurringStartDate"
|
|
187
|
+
},
|
|
188
|
+
{ path: "bookingPolicies.connectedServices.bookingPolicy.createdDate" },
|
|
189
|
+
{ path: "bookingPolicies.connectedServices.bookingPolicy.updatedDate" },
|
|
190
|
+
{ path: "bookingPolicies.connectedServices.schedule.firstSessionStart" },
|
|
191
|
+
{ path: "bookingPolicies.connectedServices.schedule.lastSessionEnd" },
|
|
192
|
+
{
|
|
193
|
+
path: "bookingPolicies.connectedServices.staffMembers.mainMedia.image.urlExpirationDate"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
path: "bookingPolicies.connectedServices.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
197
|
+
},
|
|
198
|
+
{ path: "bookingPolicies.connectedServices.supportedSlugs.createdDate" },
|
|
199
|
+
{ path: "bookingPolicies.connectedServices.mainSlug.createdDate" }
|
|
200
|
+
];
|
|
201
|
+
var TRANSFORM_PATHS_13 = [
|
|
202
|
+
{
|
|
203
|
+
path: "bookingPolicies.services.locations.business.address.geocode.latitude"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
path: "bookingPolicies.services.locations.business.address.geocode.longitude"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
path: "bookingPolicies.services.locations.custom.address.geocode.latitude"
|
|
210
|
+
},
|
|
211
|
+
{
|
|
212
|
+
path: "bookingPolicies.services.locations.custom.address.geocode.longitude"
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
path: "bookingPolicies.services.locations.calculatedAddress.geocode.latitude"
|
|
216
|
+
},
|
|
217
|
+
{
|
|
218
|
+
path: "bookingPolicies.services.locations.calculatedAddress.geocode.longitude"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
path: "bookingPolicies.connectedServices.locations.business.address.geocode.latitude"
|
|
222
|
+
},
|
|
223
|
+
{
|
|
224
|
+
path: "bookingPolicies.connectedServices.locations.business.address.geocode.longitude"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
path: "bookingPolicies.connectedServices.locations.custom.address.geocode.latitude"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
path: "bookingPolicies.connectedServices.locations.custom.address.geocode.longitude"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
path: "bookingPolicies.connectedServices.locations.calculatedAddress.geocode.latitude"
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
path: "bookingPolicies.connectedServices.locations.calculatedAddress.geocode.longitude"
|
|
237
|
+
}
|
|
238
|
+
];
|
|
239
|
+
var TRANSFORM_PATHS_14 = [
|
|
240
|
+
{ path: "businessLocations.locations.business.address.geocode.latitude" },
|
|
241
|
+
{ path: "businessLocations.locations.business.address.geocode.longitude" },
|
|
242
|
+
{ path: "businessLocations.locations.custom.address.geocode.latitude" },
|
|
243
|
+
{ path: "businessLocations.locations.custom.address.geocode.longitude" },
|
|
244
|
+
{ path: "businessLocations.locations.calculatedAddress.geocode.latitude" },
|
|
245
|
+
{ path: "businessLocations.locations.calculatedAddress.geocode.longitude" }
|
|
246
|
+
];
|
|
247
|
+
var TRANSFORM_PATHS_15 = [
|
|
248
|
+
{ path: "locations.business.address.geocode.latitude" },
|
|
249
|
+
{ path: "locations.business.address.geocode.longitude" },
|
|
250
|
+
{ path: "locations.custom.address.geocode.latitude" },
|
|
251
|
+
{ path: "locations.custom.address.geocode.longitude" },
|
|
252
|
+
{ path: "locations.calculatedAddress.geocode.latitude" },
|
|
253
|
+
{ path: "locations.calculatedAddress.geocode.longitude" },
|
|
254
|
+
{
|
|
255
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address.geocode.latitude"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address.geocode.longitude"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address.geocode.latitude"
|
|
262
|
+
},
|
|
263
|
+
{
|
|
264
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address.geocode.longitude"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress.geocode.latitude"
|
|
268
|
+
},
|
|
269
|
+
{
|
|
270
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress.geocode.longitude"
|
|
271
|
+
}
|
|
272
|
+
];
|
|
273
|
+
var TRANSFORM_PATHS_16 = [
|
|
274
|
+
{ path: "slug.createdDate" },
|
|
275
|
+
{ path: "service.createdDate" },
|
|
276
|
+
{ path: "service.updatedDate" },
|
|
277
|
+
{ path: "service.media.items.image.urlExpirationDate" },
|
|
278
|
+
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
279
|
+
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
280
|
+
{ path: "service.payment.subscription.recurringStartDate" },
|
|
281
|
+
{ path: "service.bookingPolicy.createdDate" },
|
|
282
|
+
{ path: "service.bookingPolicy.updatedDate" },
|
|
283
|
+
{ path: "service.schedule.firstSessionStart" },
|
|
284
|
+
{ path: "service.schedule.lastSessionEnd" },
|
|
285
|
+
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
286
|
+
{
|
|
287
|
+
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
288
|
+
},
|
|
289
|
+
{ path: "service.supportedSlugs.createdDate" },
|
|
290
|
+
{ path: "service.mainSlug.createdDate" }
|
|
291
|
+
];
|
|
292
|
+
var TRANSFORM_PATHS_17 = [
|
|
293
|
+
{ path: "addOnGroupsDetails.addOns.mainMedia.image.urlExpirationDate" }
|
|
294
|
+
];
|
|
18
295
|
function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
|
|
19
296
|
const domainToMappings = {
|
|
20
297
|
"*.dev.wix-code.com": [
|
|
@@ -251,35 +528,11 @@ function createService(payload) {
|
|
|
251
528
|
const serializedData = transformPaths(payload, [
|
|
252
529
|
{
|
|
253
530
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
254
|
-
paths:
|
|
255
|
-
{ path: "service.createdDate" },
|
|
256
|
-
{ path: "service.updatedDate" },
|
|
257
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
258
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
259
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
260
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
261
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
262
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
263
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
264
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
265
|
-
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
266
|
-
{
|
|
267
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
268
|
-
},
|
|
269
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
270
|
-
{ path: "service.mainSlug.createdDate" }
|
|
271
|
-
]
|
|
531
|
+
paths: TRANSFORM_PATHS_0
|
|
272
532
|
},
|
|
273
533
|
{
|
|
274
534
|
transformFn: transformSDKFloatToRESTFloat,
|
|
275
|
-
paths:
|
|
276
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
277
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
278
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
279
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
280
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
281
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
282
|
-
]
|
|
535
|
+
paths: TRANSFORM_PATHS_1
|
|
283
536
|
}
|
|
284
537
|
]);
|
|
285
538
|
const metadata = {
|
|
@@ -299,37 +552,11 @@ function createService(payload) {
|
|
|
299
552
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
300
553
|
{
|
|
301
554
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
302
|
-
paths:
|
|
303
|
-
{ path: "service.createdDate" },
|
|
304
|
-
{ path: "service.updatedDate" },
|
|
305
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
306
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
307
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
308
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
309
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
310
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
311
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
312
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
313
|
-
{
|
|
314
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
318
|
-
},
|
|
319
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
320
|
-
{ path: "service.mainSlug.createdDate" }
|
|
321
|
-
]
|
|
555
|
+
paths: TRANSFORM_PATHS_0
|
|
322
556
|
},
|
|
323
557
|
{
|
|
324
558
|
transformFn: transformRESTFloatToSDKFloat,
|
|
325
|
-
paths:
|
|
326
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
327
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
328
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
329
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
330
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
331
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
332
|
-
]
|
|
559
|
+
paths: TRANSFORM_PATHS_1
|
|
333
560
|
}
|
|
334
561
|
])
|
|
335
562
|
};
|
|
@@ -342,35 +569,11 @@ function bulkCreateServices(payload) {
|
|
|
342
569
|
const serializedData = transformPaths(payload, [
|
|
343
570
|
{
|
|
344
571
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
345
|
-
paths:
|
|
346
|
-
{ path: "services.createdDate" },
|
|
347
|
-
{ path: "services.updatedDate" },
|
|
348
|
-
{ path: "services.media.items.image.urlExpirationDate" },
|
|
349
|
-
{ path: "services.media.mainMedia.image.urlExpirationDate" },
|
|
350
|
-
{ path: "services.media.coverMedia.image.urlExpirationDate" },
|
|
351
|
-
{ path: "services.payment.subscription.recurringStartDate" },
|
|
352
|
-
{ path: "services.bookingPolicy.createdDate" },
|
|
353
|
-
{ path: "services.bookingPolicy.updatedDate" },
|
|
354
|
-
{ path: "services.schedule.firstSessionStart" },
|
|
355
|
-
{ path: "services.schedule.lastSessionEnd" },
|
|
356
|
-
{ path: "services.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
357
|
-
{
|
|
358
|
-
path: "services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
359
|
-
},
|
|
360
|
-
{ path: "services.supportedSlugs.createdDate" },
|
|
361
|
-
{ path: "services.mainSlug.createdDate" }
|
|
362
|
-
]
|
|
572
|
+
paths: TRANSFORM_PATHS_2
|
|
363
573
|
},
|
|
364
574
|
{
|
|
365
575
|
transformFn: transformSDKFloatToRESTFloat,
|
|
366
|
-
paths:
|
|
367
|
-
{ path: "services.locations.business.address.geocode.latitude" },
|
|
368
|
-
{ path: "services.locations.business.address.geocode.longitude" },
|
|
369
|
-
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
370
|
-
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
371
|
-
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
372
|
-
{ path: "services.locations.calculatedAddress.geocode.longitude" }
|
|
373
|
-
]
|
|
576
|
+
paths: TRANSFORM_PATHS_3
|
|
374
577
|
}
|
|
375
578
|
]);
|
|
376
579
|
const metadata = {
|
|
@@ -390,49 +593,11 @@ function bulkCreateServices(payload) {
|
|
|
390
593
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
391
594
|
{
|
|
392
595
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
393
|
-
paths:
|
|
394
|
-
{ path: "results.item.createdDate" },
|
|
395
|
-
{ path: "results.item.updatedDate" },
|
|
396
|
-
{ path: "results.item.media.items.image.urlExpirationDate" },
|
|
397
|
-
{ path: "results.item.media.mainMedia.image.urlExpirationDate" },
|
|
398
|
-
{ path: "results.item.media.coverMedia.image.urlExpirationDate" },
|
|
399
|
-
{ path: "results.item.payment.subscription.recurringStartDate" },
|
|
400
|
-
{ path: "results.item.bookingPolicy.createdDate" },
|
|
401
|
-
{ path: "results.item.bookingPolicy.updatedDate" },
|
|
402
|
-
{ path: "results.item.schedule.firstSessionStart" },
|
|
403
|
-
{ path: "results.item.schedule.lastSessionEnd" },
|
|
404
|
-
{
|
|
405
|
-
path: "results.item.staffMembers.mainMedia.image.urlExpirationDate"
|
|
406
|
-
},
|
|
407
|
-
{
|
|
408
|
-
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
409
|
-
},
|
|
410
|
-
{ path: "results.item.supportedSlugs.createdDate" },
|
|
411
|
-
{ path: "results.item.mainSlug.createdDate" }
|
|
412
|
-
]
|
|
596
|
+
paths: TRANSFORM_PATHS_4
|
|
413
597
|
},
|
|
414
598
|
{
|
|
415
599
|
transformFn: transformRESTFloatToSDKFloat,
|
|
416
|
-
paths:
|
|
417
|
-
{
|
|
418
|
-
path: "results.item.locations.business.address.geocode.latitude"
|
|
419
|
-
},
|
|
420
|
-
{
|
|
421
|
-
path: "results.item.locations.business.address.geocode.longitude"
|
|
422
|
-
},
|
|
423
|
-
{
|
|
424
|
-
path: "results.item.locations.custom.address.geocode.latitude"
|
|
425
|
-
},
|
|
426
|
-
{
|
|
427
|
-
path: "results.item.locations.custom.address.geocode.longitude"
|
|
428
|
-
},
|
|
429
|
-
{
|
|
430
|
-
path: "results.item.locations.calculatedAddress.geocode.latitude"
|
|
431
|
-
},
|
|
432
|
-
{
|
|
433
|
-
path: "results.item.locations.calculatedAddress.geocode.longitude"
|
|
434
|
-
}
|
|
435
|
-
]
|
|
600
|
+
paths: TRANSFORM_PATHS_5
|
|
436
601
|
}
|
|
437
602
|
])
|
|
438
603
|
};
|
|
@@ -459,37 +624,11 @@ function getService(payload) {
|
|
|
459
624
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
460
625
|
{
|
|
461
626
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
462
|
-
paths:
|
|
463
|
-
{ path: "service.createdDate" },
|
|
464
|
-
{ path: "service.updatedDate" },
|
|
465
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
466
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
467
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
468
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
469
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
470
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
471
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
472
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
473
|
-
{
|
|
474
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
475
|
-
},
|
|
476
|
-
{
|
|
477
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
478
|
-
},
|
|
479
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
480
|
-
{ path: "service.mainSlug.createdDate" }
|
|
481
|
-
]
|
|
627
|
+
paths: TRANSFORM_PATHS_0
|
|
482
628
|
},
|
|
483
629
|
{
|
|
484
630
|
transformFn: transformRESTFloatToSDKFloat,
|
|
485
|
-
paths:
|
|
486
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
487
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
488
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
489
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
490
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
491
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
492
|
-
]
|
|
631
|
+
paths: TRANSFORM_PATHS_1
|
|
493
632
|
}
|
|
494
633
|
])
|
|
495
634
|
};
|
|
@@ -502,39 +641,15 @@ function updateService(payload) {
|
|
|
502
641
|
const serializedData = transformPaths(payload, [
|
|
503
642
|
{
|
|
504
643
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
505
|
-
paths:
|
|
644
|
+
paths: TRANSFORM_PATHS_6
|
|
506
645
|
},
|
|
507
646
|
{
|
|
508
647
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
509
|
-
paths:
|
|
510
|
-
{ path: "service.createdDate" },
|
|
511
|
-
{ path: "service.updatedDate" },
|
|
512
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
513
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
514
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
515
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
516
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
517
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
518
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
519
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
520
|
-
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
521
|
-
{
|
|
522
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
523
|
-
},
|
|
524
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
525
|
-
{ path: "service.mainSlug.createdDate" }
|
|
526
|
-
]
|
|
648
|
+
paths: TRANSFORM_PATHS_0
|
|
527
649
|
},
|
|
528
650
|
{
|
|
529
651
|
transformFn: transformSDKFloatToRESTFloat,
|
|
530
|
-
paths:
|
|
531
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
532
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
533
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
534
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
535
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
536
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
537
|
-
]
|
|
652
|
+
paths: TRANSFORM_PATHS_1
|
|
538
653
|
}
|
|
539
654
|
]);
|
|
540
655
|
const metadata = {
|
|
@@ -554,37 +669,11 @@ function updateService(payload) {
|
|
|
554
669
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
555
670
|
{
|
|
556
671
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
557
|
-
paths:
|
|
558
|
-
{ path: "service.createdDate" },
|
|
559
|
-
{ path: "service.updatedDate" },
|
|
560
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
561
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
562
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
563
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
564
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
565
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
566
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
567
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
568
|
-
{
|
|
569
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
573
|
-
},
|
|
574
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
575
|
-
{ path: "service.mainSlug.createdDate" }
|
|
576
|
-
]
|
|
672
|
+
paths: TRANSFORM_PATHS_0
|
|
577
673
|
},
|
|
578
674
|
{
|
|
579
675
|
transformFn: transformRESTFloatToSDKFloat,
|
|
580
|
-
paths:
|
|
581
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
582
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
583
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
584
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
585
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
586
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
587
|
-
]
|
|
676
|
+
paths: TRANSFORM_PATHS_1
|
|
588
677
|
}
|
|
589
678
|
])
|
|
590
679
|
};
|
|
@@ -597,53 +686,15 @@ function bulkUpdateServices(payload) {
|
|
|
597
686
|
const serializedData = transformPaths(payload, [
|
|
598
687
|
{
|
|
599
688
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
600
|
-
paths:
|
|
689
|
+
paths: TRANSFORM_PATHS_7
|
|
601
690
|
},
|
|
602
691
|
{
|
|
603
692
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
604
|
-
paths:
|
|
605
|
-
{ path: "services.service.createdDate" },
|
|
606
|
-
{ path: "services.service.updatedDate" },
|
|
607
|
-
{ path: "services.service.media.items.image.urlExpirationDate" },
|
|
608
|
-
{ path: "services.service.media.mainMedia.image.urlExpirationDate" },
|
|
609
|
-
{ path: "services.service.media.coverMedia.image.urlExpirationDate" },
|
|
610
|
-
{ path: "services.service.payment.subscription.recurringStartDate" },
|
|
611
|
-
{ path: "services.service.bookingPolicy.createdDate" },
|
|
612
|
-
{ path: "services.service.bookingPolicy.updatedDate" },
|
|
613
|
-
{ path: "services.service.schedule.firstSessionStart" },
|
|
614
|
-
{ path: "services.service.schedule.lastSessionEnd" },
|
|
615
|
-
{
|
|
616
|
-
path: "services.service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
617
|
-
},
|
|
618
|
-
{
|
|
619
|
-
path: "services.service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
620
|
-
},
|
|
621
|
-
{ path: "services.service.supportedSlugs.createdDate" },
|
|
622
|
-
{ path: "services.service.mainSlug.createdDate" }
|
|
623
|
-
]
|
|
693
|
+
paths: TRANSFORM_PATHS_8
|
|
624
694
|
},
|
|
625
695
|
{
|
|
626
696
|
transformFn: transformSDKFloatToRESTFloat,
|
|
627
|
-
paths:
|
|
628
|
-
{
|
|
629
|
-
path: "services.service.locations.business.address.geocode.latitude"
|
|
630
|
-
},
|
|
631
|
-
{
|
|
632
|
-
path: "services.service.locations.business.address.geocode.longitude"
|
|
633
|
-
},
|
|
634
|
-
{
|
|
635
|
-
path: "services.service.locations.custom.address.geocode.latitude"
|
|
636
|
-
},
|
|
637
|
-
{
|
|
638
|
-
path: "services.service.locations.custom.address.geocode.longitude"
|
|
639
|
-
},
|
|
640
|
-
{
|
|
641
|
-
path: "services.service.locations.calculatedAddress.geocode.latitude"
|
|
642
|
-
},
|
|
643
|
-
{
|
|
644
|
-
path: "services.service.locations.calculatedAddress.geocode.longitude"
|
|
645
|
-
}
|
|
646
|
-
]
|
|
697
|
+
paths: TRANSFORM_PATHS_9
|
|
647
698
|
}
|
|
648
699
|
]);
|
|
649
700
|
const metadata = {
|
|
@@ -663,49 +714,11 @@ function bulkUpdateServices(payload) {
|
|
|
663
714
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
664
715
|
{
|
|
665
716
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
666
|
-
paths:
|
|
667
|
-
{ path: "results.item.createdDate" },
|
|
668
|
-
{ path: "results.item.updatedDate" },
|
|
669
|
-
{ path: "results.item.media.items.image.urlExpirationDate" },
|
|
670
|
-
{ path: "results.item.media.mainMedia.image.urlExpirationDate" },
|
|
671
|
-
{ path: "results.item.media.coverMedia.image.urlExpirationDate" },
|
|
672
|
-
{ path: "results.item.payment.subscription.recurringStartDate" },
|
|
673
|
-
{ path: "results.item.bookingPolicy.createdDate" },
|
|
674
|
-
{ path: "results.item.bookingPolicy.updatedDate" },
|
|
675
|
-
{ path: "results.item.schedule.firstSessionStart" },
|
|
676
|
-
{ path: "results.item.schedule.lastSessionEnd" },
|
|
677
|
-
{
|
|
678
|
-
path: "results.item.staffMembers.mainMedia.image.urlExpirationDate"
|
|
679
|
-
},
|
|
680
|
-
{
|
|
681
|
-
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
682
|
-
},
|
|
683
|
-
{ path: "results.item.supportedSlugs.createdDate" },
|
|
684
|
-
{ path: "results.item.mainSlug.createdDate" }
|
|
685
|
-
]
|
|
717
|
+
paths: TRANSFORM_PATHS_4
|
|
686
718
|
},
|
|
687
719
|
{
|
|
688
720
|
transformFn: transformRESTFloatToSDKFloat,
|
|
689
|
-
paths:
|
|
690
|
-
{
|
|
691
|
-
path: "results.item.locations.business.address.geocode.latitude"
|
|
692
|
-
},
|
|
693
|
-
{
|
|
694
|
-
path: "results.item.locations.business.address.geocode.longitude"
|
|
695
|
-
},
|
|
696
|
-
{
|
|
697
|
-
path: "results.item.locations.custom.address.geocode.latitude"
|
|
698
|
-
},
|
|
699
|
-
{
|
|
700
|
-
path: "results.item.locations.custom.address.geocode.longitude"
|
|
701
|
-
},
|
|
702
|
-
{
|
|
703
|
-
path: "results.item.locations.calculatedAddress.geocode.latitude"
|
|
704
|
-
},
|
|
705
|
-
{
|
|
706
|
-
path: "results.item.locations.calculatedAddress.geocode.longitude"
|
|
707
|
-
}
|
|
708
|
-
]
|
|
721
|
+
paths: TRANSFORM_PATHS_5
|
|
709
722
|
}
|
|
710
723
|
])
|
|
711
724
|
};
|
|
@@ -718,39 +731,15 @@ function bulkUpdateServicesByFilter(payload) {
|
|
|
718
731
|
const serializedData = transformPaths(payload, [
|
|
719
732
|
{
|
|
720
733
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
721
|
-
paths:
|
|
734
|
+
paths: TRANSFORM_PATHS_6
|
|
722
735
|
},
|
|
723
736
|
{
|
|
724
737
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
725
|
-
paths:
|
|
726
|
-
{ path: "service.createdDate" },
|
|
727
|
-
{ path: "service.updatedDate" },
|
|
728
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
729
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
730
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
731
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
732
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
733
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
734
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
735
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
736
|
-
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
737
|
-
{
|
|
738
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
739
|
-
},
|
|
740
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
741
|
-
{ path: "service.mainSlug.createdDate" }
|
|
742
|
-
]
|
|
738
|
+
paths: TRANSFORM_PATHS_0
|
|
743
739
|
},
|
|
744
740
|
{
|
|
745
741
|
transformFn: transformSDKFloatToRESTFloat,
|
|
746
|
-
paths:
|
|
747
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
748
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
749
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
750
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
751
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
752
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
753
|
-
]
|
|
742
|
+
paths: TRANSFORM_PATHS_1
|
|
754
743
|
}
|
|
755
744
|
]);
|
|
756
745
|
const metadata = {
|
|
@@ -812,49 +801,11 @@ function bulkDeleteServices(payload) {
|
|
|
812
801
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
813
802
|
{
|
|
814
803
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
815
|
-
paths:
|
|
816
|
-
{ path: "results.item.createdDate" },
|
|
817
|
-
{ path: "results.item.updatedDate" },
|
|
818
|
-
{ path: "results.item.media.items.image.urlExpirationDate" },
|
|
819
|
-
{ path: "results.item.media.mainMedia.image.urlExpirationDate" },
|
|
820
|
-
{ path: "results.item.media.coverMedia.image.urlExpirationDate" },
|
|
821
|
-
{ path: "results.item.payment.subscription.recurringStartDate" },
|
|
822
|
-
{ path: "results.item.bookingPolicy.createdDate" },
|
|
823
|
-
{ path: "results.item.bookingPolicy.updatedDate" },
|
|
824
|
-
{ path: "results.item.schedule.firstSessionStart" },
|
|
825
|
-
{ path: "results.item.schedule.lastSessionEnd" },
|
|
826
|
-
{
|
|
827
|
-
path: "results.item.staffMembers.mainMedia.image.urlExpirationDate"
|
|
828
|
-
},
|
|
829
|
-
{
|
|
830
|
-
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
831
|
-
},
|
|
832
|
-
{ path: "results.item.supportedSlugs.createdDate" },
|
|
833
|
-
{ path: "results.item.mainSlug.createdDate" }
|
|
834
|
-
]
|
|
804
|
+
paths: TRANSFORM_PATHS_4
|
|
835
805
|
},
|
|
836
806
|
{
|
|
837
807
|
transformFn: transformRESTFloatToSDKFloat,
|
|
838
|
-
paths:
|
|
839
|
-
{
|
|
840
|
-
path: "results.item.locations.business.address.geocode.latitude"
|
|
841
|
-
},
|
|
842
|
-
{
|
|
843
|
-
path: "results.item.locations.business.address.geocode.longitude"
|
|
844
|
-
},
|
|
845
|
-
{
|
|
846
|
-
path: "results.item.locations.custom.address.geocode.latitude"
|
|
847
|
-
},
|
|
848
|
-
{
|
|
849
|
-
path: "results.item.locations.custom.address.geocode.longitude"
|
|
850
|
-
},
|
|
851
|
-
{
|
|
852
|
-
path: "results.item.locations.calculatedAddress.geocode.latitude"
|
|
853
|
-
},
|
|
854
|
-
{
|
|
855
|
-
path: "results.item.locations.calculatedAddress.geocode.longitude"
|
|
856
|
-
}
|
|
857
|
-
]
|
|
808
|
+
paths: TRANSFORM_PATHS_5
|
|
858
809
|
}
|
|
859
810
|
])
|
|
860
811
|
};
|
|
@@ -902,39 +853,11 @@ function queryServices(payload) {
|
|
|
902
853
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
903
854
|
{
|
|
904
855
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
905
|
-
paths:
|
|
906
|
-
{ path: "services.createdDate" },
|
|
907
|
-
{ path: "services.updatedDate" },
|
|
908
|
-
{ path: "services.media.items.image.urlExpirationDate" },
|
|
909
|
-
{ path: "services.media.mainMedia.image.urlExpirationDate" },
|
|
910
|
-
{ path: "services.media.coverMedia.image.urlExpirationDate" },
|
|
911
|
-
{ path: "services.payment.subscription.recurringStartDate" },
|
|
912
|
-
{ path: "services.bookingPolicy.createdDate" },
|
|
913
|
-
{ path: "services.bookingPolicy.updatedDate" },
|
|
914
|
-
{ path: "services.schedule.firstSessionStart" },
|
|
915
|
-
{ path: "services.schedule.lastSessionEnd" },
|
|
916
|
-
{
|
|
917
|
-
path: "services.staffMembers.mainMedia.image.urlExpirationDate"
|
|
918
|
-
},
|
|
919
|
-
{
|
|
920
|
-
path: "services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
921
|
-
},
|
|
922
|
-
{ path: "services.supportedSlugs.createdDate" },
|
|
923
|
-
{ path: "services.mainSlug.createdDate" }
|
|
924
|
-
]
|
|
856
|
+
paths: TRANSFORM_PATHS_2
|
|
925
857
|
},
|
|
926
858
|
{
|
|
927
859
|
transformFn: transformRESTFloatToSDKFloat,
|
|
928
|
-
paths:
|
|
929
|
-
{ path: "services.locations.business.address.geocode.latitude" },
|
|
930
|
-
{ path: "services.locations.business.address.geocode.longitude" },
|
|
931
|
-
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
932
|
-
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
933
|
-
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
934
|
-
{
|
|
935
|
-
path: "services.locations.calculatedAddress.geocode.longitude"
|
|
936
|
-
}
|
|
937
|
-
]
|
|
860
|
+
paths: TRANSFORM_PATHS_3
|
|
938
861
|
}
|
|
939
862
|
])
|
|
940
863
|
};
|
|
@@ -947,16 +870,7 @@ function searchServices(payload) {
|
|
|
947
870
|
const serializedData = transformPaths(payload, [
|
|
948
871
|
{
|
|
949
872
|
transformFn: transformSDKFloatToRESTFloat,
|
|
950
|
-
paths:
|
|
951
|
-
{ path: "search.aggregations.range.buckets.from" },
|
|
952
|
-
{ path: "search.aggregations.range.buckets.to" },
|
|
953
|
-
{
|
|
954
|
-
path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
|
|
955
|
-
},
|
|
956
|
-
{
|
|
957
|
-
path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
|
|
958
|
-
}
|
|
959
|
-
]
|
|
873
|
+
paths: TRANSFORM_PATHS_10
|
|
960
874
|
}
|
|
961
875
|
]);
|
|
962
876
|
const metadata = {
|
|
@@ -976,60 +890,11 @@ function searchServices(payload) {
|
|
|
976
890
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
977
891
|
{
|
|
978
892
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
979
|
-
paths:
|
|
980
|
-
{ path: "services.createdDate" },
|
|
981
|
-
{ path: "services.updatedDate" },
|
|
982
|
-
{ path: "services.media.items.image.urlExpirationDate" },
|
|
983
|
-
{ path: "services.media.mainMedia.image.urlExpirationDate" },
|
|
984
|
-
{ path: "services.media.coverMedia.image.urlExpirationDate" },
|
|
985
|
-
{ path: "services.payment.subscription.recurringStartDate" },
|
|
986
|
-
{ path: "services.bookingPolicy.createdDate" },
|
|
987
|
-
{ path: "services.bookingPolicy.updatedDate" },
|
|
988
|
-
{ path: "services.schedule.firstSessionStart" },
|
|
989
|
-
{ path: "services.schedule.lastSessionEnd" },
|
|
990
|
-
{
|
|
991
|
-
path: "services.staffMembers.mainMedia.image.urlExpirationDate"
|
|
992
|
-
},
|
|
993
|
-
{
|
|
994
|
-
path: "services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
995
|
-
},
|
|
996
|
-
{ path: "services.supportedSlugs.createdDate" },
|
|
997
|
-
{ path: "services.mainSlug.createdDate" }
|
|
998
|
-
]
|
|
893
|
+
paths: TRANSFORM_PATHS_2
|
|
999
894
|
},
|
|
1000
895
|
{
|
|
1001
896
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1002
|
-
paths:
|
|
1003
|
-
{ path: "services.locations.business.address.geocode.latitude" },
|
|
1004
|
-
{ path: "services.locations.business.address.geocode.longitude" },
|
|
1005
|
-
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
1006
|
-
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
1007
|
-
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
1008
|
-
{
|
|
1009
|
-
path: "services.locations.calculatedAddress.geocode.longitude"
|
|
1010
|
-
},
|
|
1011
|
-
{ path: "aggregationData.results.ranges.results.from" },
|
|
1012
|
-
{ path: "aggregationData.results.ranges.results.to" },
|
|
1013
|
-
{
|
|
1014
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
|
|
1015
|
-
},
|
|
1016
|
-
{
|
|
1017
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
|
|
1018
|
-
},
|
|
1019
|
-
{
|
|
1020
|
-
path: "aggregationData.results.nested.results.results.*.range.from"
|
|
1021
|
-
},
|
|
1022
|
-
{
|
|
1023
|
-
path: "aggregationData.results.nested.results.results.*.range.to"
|
|
1024
|
-
},
|
|
1025
|
-
{ path: "aggregationData.results.scalar.value" },
|
|
1026
|
-
{
|
|
1027
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
|
|
1028
|
-
},
|
|
1029
|
-
{
|
|
1030
|
-
path: "aggregationData.results.nested.results.results.*.scalar.value"
|
|
1031
|
-
}
|
|
1032
|
-
]
|
|
897
|
+
paths: TRANSFORM_PATHS_11
|
|
1033
898
|
}
|
|
1034
899
|
])
|
|
1035
900
|
};
|
|
@@ -1056,115 +921,11 @@ function queryPolicies(payload) {
|
|
|
1056
921
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1057
922
|
{
|
|
1058
923
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1059
|
-
paths:
|
|
1060
|
-
{ path: "bookingPolicies.bookingPolicy.createdDate" },
|
|
1061
|
-
{ path: "bookingPolicies.bookingPolicy.updatedDate" },
|
|
1062
|
-
{ path: "bookingPolicies.services.createdDate" },
|
|
1063
|
-
{ path: "bookingPolicies.services.updatedDate" },
|
|
1064
|
-
{
|
|
1065
|
-
path: "bookingPolicies.services.media.items.image.urlExpirationDate"
|
|
1066
|
-
},
|
|
1067
|
-
{
|
|
1068
|
-
path: "bookingPolicies.services.media.mainMedia.image.urlExpirationDate"
|
|
1069
|
-
},
|
|
1070
|
-
{
|
|
1071
|
-
path: "bookingPolicies.services.media.coverMedia.image.urlExpirationDate"
|
|
1072
|
-
},
|
|
1073
|
-
{
|
|
1074
|
-
path: "bookingPolicies.services.payment.subscription.recurringStartDate"
|
|
1075
|
-
},
|
|
1076
|
-
{ path: "bookingPolicies.services.bookingPolicy.createdDate" },
|
|
1077
|
-
{ path: "bookingPolicies.services.bookingPolicy.updatedDate" },
|
|
1078
|
-
{ path: "bookingPolicies.services.schedule.firstSessionStart" },
|
|
1079
|
-
{ path: "bookingPolicies.services.schedule.lastSessionEnd" },
|
|
1080
|
-
{
|
|
1081
|
-
path: "bookingPolicies.services.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1082
|
-
},
|
|
1083
|
-
{
|
|
1084
|
-
path: "bookingPolicies.services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1085
|
-
},
|
|
1086
|
-
{ path: "bookingPolicies.services.supportedSlugs.createdDate" },
|
|
1087
|
-
{ path: "bookingPolicies.services.mainSlug.createdDate" },
|
|
1088
|
-
{ path: "bookingPolicies.connectedServices.createdDate" },
|
|
1089
|
-
{ path: "bookingPolicies.connectedServices.updatedDate" },
|
|
1090
|
-
{
|
|
1091
|
-
path: "bookingPolicies.connectedServices.media.items.image.urlExpirationDate"
|
|
1092
|
-
},
|
|
1093
|
-
{
|
|
1094
|
-
path: "bookingPolicies.connectedServices.media.mainMedia.image.urlExpirationDate"
|
|
1095
|
-
},
|
|
1096
|
-
{
|
|
1097
|
-
path: "bookingPolicies.connectedServices.media.coverMedia.image.urlExpirationDate"
|
|
1098
|
-
},
|
|
1099
|
-
{
|
|
1100
|
-
path: "bookingPolicies.connectedServices.payment.subscription.recurringStartDate"
|
|
1101
|
-
},
|
|
1102
|
-
{
|
|
1103
|
-
path: "bookingPolicies.connectedServices.bookingPolicy.createdDate"
|
|
1104
|
-
},
|
|
1105
|
-
{
|
|
1106
|
-
path: "bookingPolicies.connectedServices.bookingPolicy.updatedDate"
|
|
1107
|
-
},
|
|
1108
|
-
{
|
|
1109
|
-
path: "bookingPolicies.connectedServices.schedule.firstSessionStart"
|
|
1110
|
-
},
|
|
1111
|
-
{
|
|
1112
|
-
path: "bookingPolicies.connectedServices.schedule.lastSessionEnd"
|
|
1113
|
-
},
|
|
1114
|
-
{
|
|
1115
|
-
path: "bookingPolicies.connectedServices.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1116
|
-
},
|
|
1117
|
-
{
|
|
1118
|
-
path: "bookingPolicies.connectedServices.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1119
|
-
},
|
|
1120
|
-
{
|
|
1121
|
-
path: "bookingPolicies.connectedServices.supportedSlugs.createdDate"
|
|
1122
|
-
},
|
|
1123
|
-
{
|
|
1124
|
-
path: "bookingPolicies.connectedServices.mainSlug.createdDate"
|
|
1125
|
-
}
|
|
1126
|
-
]
|
|
924
|
+
paths: TRANSFORM_PATHS_12
|
|
1127
925
|
},
|
|
1128
926
|
{
|
|
1129
927
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1130
|
-
paths:
|
|
1131
|
-
{
|
|
1132
|
-
path: "bookingPolicies.services.locations.business.address.geocode.latitude"
|
|
1133
|
-
},
|
|
1134
|
-
{
|
|
1135
|
-
path: "bookingPolicies.services.locations.business.address.geocode.longitude"
|
|
1136
|
-
},
|
|
1137
|
-
{
|
|
1138
|
-
path: "bookingPolicies.services.locations.custom.address.geocode.latitude"
|
|
1139
|
-
},
|
|
1140
|
-
{
|
|
1141
|
-
path: "bookingPolicies.services.locations.custom.address.geocode.longitude"
|
|
1142
|
-
},
|
|
1143
|
-
{
|
|
1144
|
-
path: "bookingPolicies.services.locations.calculatedAddress.geocode.latitude"
|
|
1145
|
-
},
|
|
1146
|
-
{
|
|
1147
|
-
path: "bookingPolicies.services.locations.calculatedAddress.geocode.longitude"
|
|
1148
|
-
},
|
|
1149
|
-
{
|
|
1150
|
-
path: "bookingPolicies.connectedServices.locations.business.address.geocode.latitude"
|
|
1151
|
-
},
|
|
1152
|
-
{
|
|
1153
|
-
path: "bookingPolicies.connectedServices.locations.business.address.geocode.longitude"
|
|
1154
|
-
},
|
|
1155
|
-
{
|
|
1156
|
-
path: "bookingPolicies.connectedServices.locations.custom.address.geocode.latitude"
|
|
1157
|
-
},
|
|
1158
|
-
{
|
|
1159
|
-
path: "bookingPolicies.connectedServices.locations.custom.address.geocode.longitude"
|
|
1160
|
-
},
|
|
1161
|
-
{
|
|
1162
|
-
path: "bookingPolicies.connectedServices.locations.calculatedAddress.geocode.latitude"
|
|
1163
|
-
},
|
|
1164
|
-
{
|
|
1165
|
-
path: "bookingPolicies.connectedServices.locations.calculatedAddress.geocode.longitude"
|
|
1166
|
-
}
|
|
1167
|
-
]
|
|
928
|
+
paths: TRANSFORM_PATHS_13
|
|
1168
929
|
}
|
|
1169
930
|
])
|
|
1170
931
|
};
|
|
@@ -1233,26 +994,7 @@ function queryLocations(payload) {
|
|
|
1233
994
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1234
995
|
{
|
|
1235
996
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1236
|
-
paths:
|
|
1237
|
-
{
|
|
1238
|
-
path: "businessLocations.locations.business.address.geocode.latitude"
|
|
1239
|
-
},
|
|
1240
|
-
{
|
|
1241
|
-
path: "businessLocations.locations.business.address.geocode.longitude"
|
|
1242
|
-
},
|
|
1243
|
-
{
|
|
1244
|
-
path: "businessLocations.locations.custom.address.geocode.latitude"
|
|
1245
|
-
},
|
|
1246
|
-
{
|
|
1247
|
-
path: "businessLocations.locations.custom.address.geocode.longitude"
|
|
1248
|
-
},
|
|
1249
|
-
{
|
|
1250
|
-
path: "businessLocations.locations.calculatedAddress.geocode.latitude"
|
|
1251
|
-
},
|
|
1252
|
-
{
|
|
1253
|
-
path: "businessLocations.locations.calculatedAddress.geocode.longitude"
|
|
1254
|
-
}
|
|
1255
|
-
]
|
|
997
|
+
paths: TRANSFORM_PATHS_14
|
|
1256
998
|
}
|
|
1257
999
|
])
|
|
1258
1000
|
};
|
|
@@ -1286,32 +1028,7 @@ function setServiceLocations(payload) {
|
|
|
1286
1028
|
const serializedData = transformPaths(payload, [
|
|
1287
1029
|
{
|
|
1288
1030
|
transformFn: transformSDKFloatToRESTFloat,
|
|
1289
|
-
paths:
|
|
1290
|
-
{ path: "locations.business.address.geocode.latitude" },
|
|
1291
|
-
{ path: "locations.business.address.geocode.longitude" },
|
|
1292
|
-
{ path: "locations.custom.address.geocode.latitude" },
|
|
1293
|
-
{ path: "locations.custom.address.geocode.longitude" },
|
|
1294
|
-
{ path: "locations.calculatedAddress.geocode.latitude" },
|
|
1295
|
-
{ path: "locations.calculatedAddress.geocode.longitude" },
|
|
1296
|
-
{
|
|
1297
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address.geocode.latitude"
|
|
1298
|
-
},
|
|
1299
|
-
{
|
|
1300
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address.geocode.longitude"
|
|
1301
|
-
},
|
|
1302
|
-
{
|
|
1303
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address.geocode.latitude"
|
|
1304
|
-
},
|
|
1305
|
-
{
|
|
1306
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address.geocode.longitude"
|
|
1307
|
-
},
|
|
1308
|
-
{
|
|
1309
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress.geocode.latitude"
|
|
1310
|
-
},
|
|
1311
|
-
{
|
|
1312
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress.geocode.longitude"
|
|
1313
|
-
}
|
|
1314
|
-
]
|
|
1031
|
+
paths: TRANSFORM_PATHS_15
|
|
1315
1032
|
}
|
|
1316
1033
|
]);
|
|
1317
1034
|
const metadata = {
|
|
@@ -1331,37 +1048,11 @@ function setServiceLocations(payload) {
|
|
|
1331
1048
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1332
1049
|
{
|
|
1333
1050
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1334
|
-
paths:
|
|
1335
|
-
{ path: "service.createdDate" },
|
|
1336
|
-
{ path: "service.updatedDate" },
|
|
1337
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1338
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1339
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1340
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1341
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1342
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1343
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1344
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1345
|
-
{
|
|
1346
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1347
|
-
},
|
|
1348
|
-
{
|
|
1349
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1350
|
-
},
|
|
1351
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1352
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1353
|
-
]
|
|
1051
|
+
paths: TRANSFORM_PATHS_0
|
|
1354
1052
|
},
|
|
1355
1053
|
{
|
|
1356
1054
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1357
|
-
paths:
|
|
1358
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1359
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1360
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1361
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1362
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1363
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1364
|
-
]
|
|
1055
|
+
paths: TRANSFORM_PATHS_1
|
|
1365
1056
|
}
|
|
1366
1057
|
])
|
|
1367
1058
|
};
|
|
@@ -1388,37 +1079,11 @@ function enablePricingPlansForService(payload) {
|
|
|
1388
1079
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1389
1080
|
{
|
|
1390
1081
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1391
|
-
paths:
|
|
1392
|
-
{ path: "service.createdDate" },
|
|
1393
|
-
{ path: "service.updatedDate" },
|
|
1394
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1395
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1396
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1397
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1398
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1399
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1400
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1401
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1402
|
-
{
|
|
1403
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1404
|
-
},
|
|
1405
|
-
{
|
|
1406
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1407
|
-
},
|
|
1408
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1409
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1410
|
-
]
|
|
1082
|
+
paths: TRANSFORM_PATHS_0
|
|
1411
1083
|
},
|
|
1412
1084
|
{
|
|
1413
1085
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1414
|
-
paths:
|
|
1415
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1416
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1417
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1418
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1419
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1420
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1421
|
-
]
|
|
1086
|
+
paths: TRANSFORM_PATHS_1
|
|
1422
1087
|
}
|
|
1423
1088
|
])
|
|
1424
1089
|
};
|
|
@@ -1445,37 +1110,11 @@ function disablePricingPlansForService(payload) {
|
|
|
1445
1110
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1446
1111
|
{
|
|
1447
1112
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1448
|
-
paths:
|
|
1449
|
-
{ path: "service.createdDate" },
|
|
1450
|
-
{ path: "service.updatedDate" },
|
|
1451
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1452
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1453
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1454
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1455
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1456
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1457
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1458
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1459
|
-
{
|
|
1460
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1461
|
-
},
|
|
1462
|
-
{
|
|
1463
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1464
|
-
},
|
|
1465
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1466
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1467
|
-
]
|
|
1113
|
+
paths: TRANSFORM_PATHS_0
|
|
1468
1114
|
},
|
|
1469
1115
|
{
|
|
1470
1116
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1471
|
-
paths:
|
|
1472
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1473
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1474
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1475
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1476
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1477
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1478
|
-
]
|
|
1117
|
+
paths: TRANSFORM_PATHS_1
|
|
1479
1118
|
}
|
|
1480
1119
|
])
|
|
1481
1120
|
};
|
|
@@ -1502,38 +1141,11 @@ function setCustomSlug(payload) {
|
|
|
1502
1141
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1503
1142
|
{
|
|
1504
1143
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1505
|
-
paths:
|
|
1506
|
-
{ path: "slug.createdDate" },
|
|
1507
|
-
{ path: "service.createdDate" },
|
|
1508
|
-
{ path: "service.updatedDate" },
|
|
1509
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1510
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1511
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1512
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1513
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1514
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1515
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1516
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1517
|
-
{
|
|
1518
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1519
|
-
},
|
|
1520
|
-
{
|
|
1521
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1522
|
-
},
|
|
1523
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1524
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1525
|
-
]
|
|
1144
|
+
paths: TRANSFORM_PATHS_16
|
|
1526
1145
|
},
|
|
1527
1146
|
{
|
|
1528
1147
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1529
|
-
paths:
|
|
1530
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1531
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1532
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1533
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1534
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1535
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1536
|
-
]
|
|
1148
|
+
paths: TRANSFORM_PATHS_1
|
|
1537
1149
|
}
|
|
1538
1150
|
])
|
|
1539
1151
|
};
|
|
@@ -1581,37 +1193,11 @@ function cloneService(payload) {
|
|
|
1581
1193
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1582
1194
|
{
|
|
1583
1195
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1584
|
-
paths:
|
|
1585
|
-
{ path: "service.createdDate" },
|
|
1586
|
-
{ path: "service.updatedDate" },
|
|
1587
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1588
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1589
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1590
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1591
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1592
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1593
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1594
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1595
|
-
{
|
|
1596
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1597
|
-
},
|
|
1598
|
-
{
|
|
1599
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1600
|
-
},
|
|
1601
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1602
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1603
|
-
]
|
|
1196
|
+
paths: TRANSFORM_PATHS_0
|
|
1604
1197
|
},
|
|
1605
1198
|
{
|
|
1606
1199
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1607
|
-
paths:
|
|
1608
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1609
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1610
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1611
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1612
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1613
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1614
|
-
]
|
|
1200
|
+
paths: TRANSFORM_PATHS_1
|
|
1615
1201
|
}
|
|
1616
1202
|
])
|
|
1617
1203
|
};
|
|
@@ -1666,7 +1252,7 @@ function updateAddOnGroup(payload) {
|
|
|
1666
1252
|
const serializedData = transformPaths(payload, [
|
|
1667
1253
|
{
|
|
1668
1254
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
1669
|
-
paths:
|
|
1255
|
+
paths: TRANSFORM_PATHS_6
|
|
1670
1256
|
}
|
|
1671
1257
|
]);
|
|
1672
1258
|
const metadata = {
|
|
@@ -1707,11 +1293,7 @@ function listAddOnGroupsByServiceId(payload) {
|
|
|
1707
1293
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1708
1294
|
{
|
|
1709
1295
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1710
|
-
paths:
|
|
1711
|
-
{
|
|
1712
|
-
path: "addOnGroupsDetails.addOns.mainMedia.image.urlExpirationDate"
|
|
1713
|
-
}
|
|
1714
|
-
]
|
|
1296
|
+
paths: TRANSFORM_PATHS_17
|
|
1715
1297
|
}
|
|
1716
1298
|
])
|
|
1717
1299
|
};
|
|
@@ -1751,6 +1333,128 @@ import { transformRESTPageURLV2ToSDKPageURLV2 } from "@wix/sdk-runtime/transform
|
|
|
1751
1333
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
1752
1334
|
import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
|
|
1753
1335
|
import { createSearchUtils } from "@wix/sdk-runtime/search-builder-utils";
|
|
1336
|
+
var TRANSFORM_PATHS_02 = [
|
|
1337
|
+
{ path: "service.media.items.image" },
|
|
1338
|
+
{ path: "service.media.mainMedia.image" },
|
|
1339
|
+
{ path: "service.media.coverMedia.image" },
|
|
1340
|
+
{ path: "service.staffMembers.mainMedia.image" },
|
|
1341
|
+
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
1342
|
+
];
|
|
1343
|
+
var TRANSFORM_PATHS_18 = [
|
|
1344
|
+
{ path: "service.locations.calculatedAddress" },
|
|
1345
|
+
{ path: "service.locations.business.address" },
|
|
1346
|
+
{ path: "service.locations.custom.address" }
|
|
1347
|
+
];
|
|
1348
|
+
var TRANSFORM_PATHS_22 = [
|
|
1349
|
+
{ path: "service.urls.servicePage" },
|
|
1350
|
+
{ path: "service.urls.bookingPage" },
|
|
1351
|
+
{ path: "service.urls.calendarPage" }
|
|
1352
|
+
];
|
|
1353
|
+
var TRANSFORM_PATHS_32 = [
|
|
1354
|
+
{ path: "services.media.items.image" },
|
|
1355
|
+
{ path: "services.media.mainMedia.image" },
|
|
1356
|
+
{ path: "services.media.coverMedia.image" },
|
|
1357
|
+
{ path: "services.staffMembers.mainMedia.image" },
|
|
1358
|
+
{ path: "services.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
1359
|
+
];
|
|
1360
|
+
var TRANSFORM_PATHS_42 = [
|
|
1361
|
+
{ path: "services.locations.calculatedAddress" },
|
|
1362
|
+
{ path: "services.locations.business.address" },
|
|
1363
|
+
{ path: "services.locations.custom.address" }
|
|
1364
|
+
];
|
|
1365
|
+
var TRANSFORM_PATHS_52 = [
|
|
1366
|
+
{ path: "services.urls.servicePage" },
|
|
1367
|
+
{ path: "services.urls.bookingPage" },
|
|
1368
|
+
{ path: "services.urls.calendarPage" }
|
|
1369
|
+
];
|
|
1370
|
+
var TRANSFORM_PATHS_62 = [
|
|
1371
|
+
{ path: "results.item.media.items.image" },
|
|
1372
|
+
{ path: "results.item.media.mainMedia.image" },
|
|
1373
|
+
{ path: "results.item.media.coverMedia.image" },
|
|
1374
|
+
{ path: "results.item.staffMembers.mainMedia.image" },
|
|
1375
|
+
{ path: "results.item.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
1376
|
+
];
|
|
1377
|
+
var TRANSFORM_PATHS_72 = [
|
|
1378
|
+
{ path: "results.item.locations.calculatedAddress" },
|
|
1379
|
+
{ path: "results.item.locations.business.address" },
|
|
1380
|
+
{ path: "results.item.locations.custom.address" }
|
|
1381
|
+
];
|
|
1382
|
+
var TRANSFORM_PATHS_82 = [
|
|
1383
|
+
{ path: "results.item.urls.servicePage" },
|
|
1384
|
+
{ path: "results.item.urls.bookingPage" },
|
|
1385
|
+
{ path: "results.item.urls.calendarPage" }
|
|
1386
|
+
];
|
|
1387
|
+
var TRANSFORM_PATHS_92 = [
|
|
1388
|
+
{ path: "services.service.media.items.image" },
|
|
1389
|
+
{ path: "services.service.media.mainMedia.image" },
|
|
1390
|
+
{ path: "services.service.media.coverMedia.image" },
|
|
1391
|
+
{ path: "services.service.staffMembers.mainMedia.image" },
|
|
1392
|
+
{ path: "services.service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
1393
|
+
];
|
|
1394
|
+
var TRANSFORM_PATHS_102 = [
|
|
1395
|
+
{ path: "services.service.locations.calculatedAddress" },
|
|
1396
|
+
{ path: "services.service.locations.business.address" },
|
|
1397
|
+
{ path: "services.service.locations.custom.address" }
|
|
1398
|
+
];
|
|
1399
|
+
var TRANSFORM_PATHS_112 = [
|
|
1400
|
+
{ path: "services.service.urls.servicePage" },
|
|
1401
|
+
{ path: "services.service.urls.bookingPage" },
|
|
1402
|
+
{ path: "services.service.urls.calendarPage" }
|
|
1403
|
+
];
|
|
1404
|
+
var TRANSFORM_PATHS_122 = [
|
|
1405
|
+
{ path: "bookingPolicies.services.media.items.image" },
|
|
1406
|
+
{ path: "bookingPolicies.services.media.mainMedia.image" },
|
|
1407
|
+
{ path: "bookingPolicies.services.media.coverMedia.image" },
|
|
1408
|
+
{ path: "bookingPolicies.services.staffMembers.mainMedia.image" },
|
|
1409
|
+
{
|
|
1410
|
+
path: "bookingPolicies.services.staffMemberDetails.staffMembers.mainMedia.image"
|
|
1411
|
+
},
|
|
1412
|
+
{ path: "bookingPolicies.connectedServices.media.items.image" },
|
|
1413
|
+
{ path: "bookingPolicies.connectedServices.media.mainMedia.image" },
|
|
1414
|
+
{ path: "bookingPolicies.connectedServices.media.coverMedia.image" },
|
|
1415
|
+
{ path: "bookingPolicies.connectedServices.staffMembers.mainMedia.image" },
|
|
1416
|
+
{
|
|
1417
|
+
path: "bookingPolicies.connectedServices.staffMemberDetails.staffMembers.mainMedia.image"
|
|
1418
|
+
}
|
|
1419
|
+
];
|
|
1420
|
+
var TRANSFORM_PATHS_132 = [
|
|
1421
|
+
{ path: "bookingPolicies.services.locations.calculatedAddress" },
|
|
1422
|
+
{ path: "bookingPolicies.services.locations.business.address" },
|
|
1423
|
+
{ path: "bookingPolicies.services.locations.custom.address" },
|
|
1424
|
+
{ path: "bookingPolicies.connectedServices.locations.calculatedAddress" },
|
|
1425
|
+
{ path: "bookingPolicies.connectedServices.locations.business.address" },
|
|
1426
|
+
{ path: "bookingPolicies.connectedServices.locations.custom.address" }
|
|
1427
|
+
];
|
|
1428
|
+
var TRANSFORM_PATHS_142 = [
|
|
1429
|
+
{ path: "bookingPolicies.services.urls.servicePage" },
|
|
1430
|
+
{ path: "bookingPolicies.services.urls.bookingPage" },
|
|
1431
|
+
{ path: "bookingPolicies.services.urls.calendarPage" },
|
|
1432
|
+
{ path: "bookingPolicies.connectedServices.urls.servicePage" },
|
|
1433
|
+
{ path: "bookingPolicies.connectedServices.urls.bookingPage" },
|
|
1434
|
+
{ path: "bookingPolicies.connectedServices.urls.calendarPage" }
|
|
1435
|
+
];
|
|
1436
|
+
var TRANSFORM_PATHS_152 = [
|
|
1437
|
+
{ path: "businessLocations.locations.calculatedAddress" },
|
|
1438
|
+
{ path: "businessLocations.locations.business.address" },
|
|
1439
|
+
{ path: "businessLocations.locations.custom.address" }
|
|
1440
|
+
];
|
|
1441
|
+
var TRANSFORM_PATHS_162 = [
|
|
1442
|
+
{ path: "locations.calculatedAddress" },
|
|
1443
|
+
{ path: "locations.business.address" },
|
|
1444
|
+
{ path: "locations.custom.address" },
|
|
1445
|
+
{
|
|
1446
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress"
|
|
1447
|
+
},
|
|
1448
|
+
{
|
|
1449
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address"
|
|
1450
|
+
},
|
|
1451
|
+
{
|
|
1452
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address"
|
|
1453
|
+
}
|
|
1454
|
+
];
|
|
1455
|
+
var TRANSFORM_PATHS_172 = [
|
|
1456
|
+
{ path: "addOnGroupsDetails.addOns.mainMedia.image" }
|
|
1457
|
+
];
|
|
1754
1458
|
var ServiceType = /* @__PURE__ */ ((ServiceType2) => {
|
|
1755
1459
|
ServiceType2["APPOINTMENT"] = "APPOINTMENT";
|
|
1756
1460
|
ServiceType2["CLASS"] = "CLASS";
|
|
@@ -2051,29 +1755,15 @@ async function createService2(service) {
|
|
|
2051
1755
|
[
|
|
2052
1756
|
{
|
|
2053
1757
|
transformFn: transformSDKImageToRESTImage,
|
|
2054
|
-
paths:
|
|
2055
|
-
{ path: "service.media.items.image" },
|
|
2056
|
-
{ path: "service.media.mainMedia.image" },
|
|
2057
|
-
{ path: "service.media.coverMedia.image" },
|
|
2058
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
2059
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2060
|
-
]
|
|
1758
|
+
paths: TRANSFORM_PATHS_02
|
|
2061
1759
|
},
|
|
2062
1760
|
{
|
|
2063
1761
|
transformFn: transformSDKAddressToRESTAddress,
|
|
2064
|
-
paths:
|
|
2065
|
-
{ path: "service.locations.calculatedAddress" },
|
|
2066
|
-
{ path: "service.locations.business.address" },
|
|
2067
|
-
{ path: "service.locations.custom.address" }
|
|
2068
|
-
]
|
|
1762
|
+
paths: TRANSFORM_PATHS_18
|
|
2069
1763
|
},
|
|
2070
1764
|
{
|
|
2071
1765
|
transformFn: transformSDKPageURLV2ToRESTPageURLV2,
|
|
2072
|
-
paths:
|
|
2073
|
-
{ path: "service.urls.servicePage" },
|
|
2074
|
-
{ path: "service.urls.bookingPage" },
|
|
2075
|
-
{ path: "service.urls.calendarPage" }
|
|
2076
|
-
]
|
|
1766
|
+
paths: TRANSFORM_PATHS_22
|
|
2077
1767
|
}
|
|
2078
1768
|
]
|
|
2079
1769
|
);
|
|
@@ -2086,29 +1776,15 @@ async function createService2(service) {
|
|
|
2086
1776
|
transformPaths2(result.data, [
|
|
2087
1777
|
{
|
|
2088
1778
|
transformFn: transformRESTImageToSDKImage,
|
|
2089
|
-
paths:
|
|
2090
|
-
{ path: "service.media.items.image" },
|
|
2091
|
-
{ path: "service.media.mainMedia.image" },
|
|
2092
|
-
{ path: "service.media.coverMedia.image" },
|
|
2093
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
2094
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2095
|
-
]
|
|
1779
|
+
paths: TRANSFORM_PATHS_02
|
|
2096
1780
|
},
|
|
2097
1781
|
{
|
|
2098
1782
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2099
|
-
paths:
|
|
2100
|
-
{ path: "service.locations.calculatedAddress" },
|
|
2101
|
-
{ path: "service.locations.business.address" },
|
|
2102
|
-
{ path: "service.locations.custom.address" }
|
|
2103
|
-
]
|
|
1783
|
+
paths: TRANSFORM_PATHS_18
|
|
2104
1784
|
},
|
|
2105
1785
|
{
|
|
2106
1786
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2107
|
-
paths:
|
|
2108
|
-
{ path: "service.urls.servicePage" },
|
|
2109
|
-
{ path: "service.urls.bookingPage" },
|
|
2110
|
-
{ path: "service.urls.calendarPage" }
|
|
2111
|
-
]
|
|
1787
|
+
paths: TRANSFORM_PATHS_22
|
|
2112
1788
|
}
|
|
2113
1789
|
])
|
|
2114
1790
|
)?.service;
|
|
@@ -2136,29 +1812,15 @@ async function bulkCreateServices2(services, options) {
|
|
|
2136
1812
|
[
|
|
2137
1813
|
{
|
|
2138
1814
|
transformFn: transformSDKImageToRESTImage,
|
|
2139
|
-
paths:
|
|
2140
|
-
{ path: "services.media.items.image" },
|
|
2141
|
-
{ path: "services.media.mainMedia.image" },
|
|
2142
|
-
{ path: "services.media.coverMedia.image" },
|
|
2143
|
-
{ path: "services.staffMembers.mainMedia.image" },
|
|
2144
|
-
{ path: "services.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2145
|
-
]
|
|
1815
|
+
paths: TRANSFORM_PATHS_32
|
|
2146
1816
|
},
|
|
2147
1817
|
{
|
|
2148
1818
|
transformFn: transformSDKAddressToRESTAddress,
|
|
2149
|
-
paths:
|
|
2150
|
-
{ path: "services.locations.calculatedAddress" },
|
|
2151
|
-
{ path: "services.locations.business.address" },
|
|
2152
|
-
{ path: "services.locations.custom.address" }
|
|
2153
|
-
]
|
|
1819
|
+
paths: TRANSFORM_PATHS_42
|
|
2154
1820
|
},
|
|
2155
1821
|
{
|
|
2156
1822
|
transformFn: transformSDKPageURLV2ToRESTPageURLV2,
|
|
2157
|
-
paths:
|
|
2158
|
-
{ path: "services.urls.servicePage" },
|
|
2159
|
-
{ path: "services.urls.bookingPage" },
|
|
2160
|
-
{ path: "services.urls.calendarPage" }
|
|
2161
|
-
]
|
|
1823
|
+
paths: TRANSFORM_PATHS_52
|
|
2162
1824
|
}
|
|
2163
1825
|
]
|
|
2164
1826
|
);
|
|
@@ -2171,31 +1833,15 @@ async function bulkCreateServices2(services, options) {
|
|
|
2171
1833
|
transformPaths2(result.data, [
|
|
2172
1834
|
{
|
|
2173
1835
|
transformFn: transformRESTImageToSDKImage,
|
|
2174
|
-
paths:
|
|
2175
|
-
{ path: "results.item.media.items.image" },
|
|
2176
|
-
{ path: "results.item.media.mainMedia.image" },
|
|
2177
|
-
{ path: "results.item.media.coverMedia.image" },
|
|
2178
|
-
{ path: "results.item.staffMembers.mainMedia.image" },
|
|
2179
|
-
{
|
|
2180
|
-
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2181
|
-
}
|
|
2182
|
-
]
|
|
1836
|
+
paths: TRANSFORM_PATHS_62
|
|
2183
1837
|
},
|
|
2184
1838
|
{
|
|
2185
1839
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2186
|
-
paths:
|
|
2187
|
-
{ path: "results.item.locations.calculatedAddress" },
|
|
2188
|
-
{ path: "results.item.locations.business.address" },
|
|
2189
|
-
{ path: "results.item.locations.custom.address" }
|
|
2190
|
-
]
|
|
1840
|
+
paths: TRANSFORM_PATHS_72
|
|
2191
1841
|
},
|
|
2192
1842
|
{
|
|
2193
1843
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2194
|
-
paths:
|
|
2195
|
-
{ path: "results.item.urls.servicePage" },
|
|
2196
|
-
{ path: "results.item.urls.bookingPage" },
|
|
2197
|
-
{ path: "results.item.urls.calendarPage" }
|
|
2198
|
-
]
|
|
1844
|
+
paths: TRANSFORM_PATHS_82
|
|
2199
1845
|
}
|
|
2200
1846
|
])
|
|
2201
1847
|
);
|
|
@@ -2231,29 +1877,15 @@ async function getService2(serviceId, options) {
|
|
|
2231
1877
|
transformPaths2(result.data, [
|
|
2232
1878
|
{
|
|
2233
1879
|
transformFn: transformRESTImageToSDKImage,
|
|
2234
|
-
paths:
|
|
2235
|
-
{ path: "service.media.items.image" },
|
|
2236
|
-
{ path: "service.media.mainMedia.image" },
|
|
2237
|
-
{ path: "service.media.coverMedia.image" },
|
|
2238
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
2239
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2240
|
-
]
|
|
1880
|
+
paths: TRANSFORM_PATHS_02
|
|
2241
1881
|
},
|
|
2242
1882
|
{
|
|
2243
1883
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2244
|
-
paths:
|
|
2245
|
-
{ path: "service.locations.calculatedAddress" },
|
|
2246
|
-
{ path: "service.locations.business.address" },
|
|
2247
|
-
{ path: "service.locations.custom.address" }
|
|
2248
|
-
]
|
|
1884
|
+
paths: TRANSFORM_PATHS_18
|
|
2249
1885
|
},
|
|
2250
1886
|
{
|
|
2251
1887
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2252
|
-
paths:
|
|
2253
|
-
{ path: "service.urls.servicePage" },
|
|
2254
|
-
{ path: "service.urls.bookingPage" },
|
|
2255
|
-
{ path: "service.urls.calendarPage" }
|
|
2256
|
-
]
|
|
1888
|
+
paths: TRANSFORM_PATHS_22
|
|
2257
1889
|
}
|
|
2258
1890
|
])
|
|
2259
1891
|
)?.service;
|
|
@@ -2281,29 +1913,15 @@ async function updateService2(_id, service) {
|
|
|
2281
1913
|
[
|
|
2282
1914
|
{
|
|
2283
1915
|
transformFn: transformSDKImageToRESTImage,
|
|
2284
|
-
paths:
|
|
2285
|
-
{ path: "service.media.items.image" },
|
|
2286
|
-
{ path: "service.media.mainMedia.image" },
|
|
2287
|
-
{ path: "service.media.coverMedia.image" },
|
|
2288
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
2289
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2290
|
-
]
|
|
1916
|
+
paths: TRANSFORM_PATHS_02
|
|
2291
1917
|
},
|
|
2292
1918
|
{
|
|
2293
1919
|
transformFn: transformSDKAddressToRESTAddress,
|
|
2294
|
-
paths:
|
|
2295
|
-
{ path: "service.locations.calculatedAddress" },
|
|
2296
|
-
{ path: "service.locations.business.address" },
|
|
2297
|
-
{ path: "service.locations.custom.address" }
|
|
2298
|
-
]
|
|
1920
|
+
paths: TRANSFORM_PATHS_18
|
|
2299
1921
|
},
|
|
2300
1922
|
{
|
|
2301
1923
|
transformFn: transformSDKPageURLV2ToRESTPageURLV2,
|
|
2302
|
-
paths:
|
|
2303
|
-
{ path: "service.urls.servicePage" },
|
|
2304
|
-
{ path: "service.urls.bookingPage" },
|
|
2305
|
-
{ path: "service.urls.calendarPage" }
|
|
2306
|
-
]
|
|
1924
|
+
paths: TRANSFORM_PATHS_22
|
|
2307
1925
|
}
|
|
2308
1926
|
]
|
|
2309
1927
|
);
|
|
@@ -2316,29 +1934,15 @@ async function updateService2(_id, service) {
|
|
|
2316
1934
|
transformPaths2(result.data, [
|
|
2317
1935
|
{
|
|
2318
1936
|
transformFn: transformRESTImageToSDKImage,
|
|
2319
|
-
paths:
|
|
2320
|
-
{ path: "service.media.items.image" },
|
|
2321
|
-
{ path: "service.media.mainMedia.image" },
|
|
2322
|
-
{ path: "service.media.coverMedia.image" },
|
|
2323
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
2324
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2325
|
-
]
|
|
1937
|
+
paths: TRANSFORM_PATHS_02
|
|
2326
1938
|
},
|
|
2327
1939
|
{
|
|
2328
1940
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2329
|
-
paths:
|
|
2330
|
-
{ path: "service.locations.calculatedAddress" },
|
|
2331
|
-
{ path: "service.locations.business.address" },
|
|
2332
|
-
{ path: "service.locations.custom.address" }
|
|
2333
|
-
]
|
|
1941
|
+
paths: TRANSFORM_PATHS_18
|
|
2334
1942
|
},
|
|
2335
1943
|
{
|
|
2336
1944
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2337
|
-
paths:
|
|
2338
|
-
{ path: "service.urls.servicePage" },
|
|
2339
|
-
{ path: "service.urls.bookingPage" },
|
|
2340
|
-
{ path: "service.urls.calendarPage" }
|
|
2341
|
-
]
|
|
1945
|
+
paths: TRANSFORM_PATHS_22
|
|
2342
1946
|
}
|
|
2343
1947
|
])
|
|
2344
1948
|
)?.service;
|
|
@@ -2366,31 +1970,15 @@ async function bulkUpdateServices2(options) {
|
|
|
2366
1970
|
[
|
|
2367
1971
|
{
|
|
2368
1972
|
transformFn: transformSDKImageToRESTImage,
|
|
2369
|
-
paths:
|
|
2370
|
-
{ path: "services.service.media.items.image" },
|
|
2371
|
-
{ path: "services.service.media.mainMedia.image" },
|
|
2372
|
-
{ path: "services.service.media.coverMedia.image" },
|
|
2373
|
-
{ path: "services.service.staffMembers.mainMedia.image" },
|
|
2374
|
-
{
|
|
2375
|
-
path: "services.service.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2376
|
-
}
|
|
2377
|
-
]
|
|
1973
|
+
paths: TRANSFORM_PATHS_92
|
|
2378
1974
|
},
|
|
2379
1975
|
{
|
|
2380
1976
|
transformFn: transformSDKAddressToRESTAddress,
|
|
2381
|
-
paths:
|
|
2382
|
-
{ path: "services.service.locations.calculatedAddress" },
|
|
2383
|
-
{ path: "services.service.locations.business.address" },
|
|
2384
|
-
{ path: "services.service.locations.custom.address" }
|
|
2385
|
-
]
|
|
1977
|
+
paths: TRANSFORM_PATHS_102
|
|
2386
1978
|
},
|
|
2387
1979
|
{
|
|
2388
1980
|
transformFn: transformSDKPageURLV2ToRESTPageURLV2,
|
|
2389
|
-
paths:
|
|
2390
|
-
{ path: "services.service.urls.servicePage" },
|
|
2391
|
-
{ path: "services.service.urls.bookingPage" },
|
|
2392
|
-
{ path: "services.service.urls.calendarPage" }
|
|
2393
|
-
]
|
|
1981
|
+
paths: TRANSFORM_PATHS_112
|
|
2394
1982
|
}
|
|
2395
1983
|
]
|
|
2396
1984
|
);
|
|
@@ -2403,31 +1991,15 @@ async function bulkUpdateServices2(options) {
|
|
|
2403
1991
|
transformPaths2(result.data, [
|
|
2404
1992
|
{
|
|
2405
1993
|
transformFn: transformRESTImageToSDKImage,
|
|
2406
|
-
paths:
|
|
2407
|
-
{ path: "results.item.media.items.image" },
|
|
2408
|
-
{ path: "results.item.media.mainMedia.image" },
|
|
2409
|
-
{ path: "results.item.media.coverMedia.image" },
|
|
2410
|
-
{ path: "results.item.staffMembers.mainMedia.image" },
|
|
2411
|
-
{
|
|
2412
|
-
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2413
|
-
}
|
|
2414
|
-
]
|
|
1994
|
+
paths: TRANSFORM_PATHS_62
|
|
2415
1995
|
},
|
|
2416
1996
|
{
|
|
2417
1997
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2418
|
-
paths:
|
|
2419
|
-
{ path: "results.item.locations.calculatedAddress" },
|
|
2420
|
-
{ path: "results.item.locations.business.address" },
|
|
2421
|
-
{ path: "results.item.locations.custom.address" }
|
|
2422
|
-
]
|
|
1998
|
+
paths: TRANSFORM_PATHS_72
|
|
2423
1999
|
},
|
|
2424
2000
|
{
|
|
2425
2001
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2426
|
-
paths:
|
|
2427
|
-
{ path: "results.item.urls.servicePage" },
|
|
2428
|
-
{ path: "results.item.urls.bookingPage" },
|
|
2429
|
-
{ path: "results.item.urls.calendarPage" }
|
|
2430
|
-
]
|
|
2002
|
+
paths: TRANSFORM_PATHS_82
|
|
2431
2003
|
}
|
|
2432
2004
|
])
|
|
2433
2005
|
);
|
|
@@ -2458,29 +2030,15 @@ async function bulkUpdateServicesByFilter2(filter, options) {
|
|
|
2458
2030
|
[
|
|
2459
2031
|
{
|
|
2460
2032
|
transformFn: transformSDKImageToRESTImage,
|
|
2461
|
-
paths:
|
|
2462
|
-
{ path: "service.media.items.image" },
|
|
2463
|
-
{ path: "service.media.mainMedia.image" },
|
|
2464
|
-
{ path: "service.media.coverMedia.image" },
|
|
2465
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
2466
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
2467
|
-
]
|
|
2033
|
+
paths: TRANSFORM_PATHS_02
|
|
2468
2034
|
},
|
|
2469
2035
|
{
|
|
2470
2036
|
transformFn: transformSDKAddressToRESTAddress,
|
|
2471
|
-
paths:
|
|
2472
|
-
{ path: "service.locations.calculatedAddress" },
|
|
2473
|
-
{ path: "service.locations.business.address" },
|
|
2474
|
-
{ path: "service.locations.custom.address" }
|
|
2475
|
-
]
|
|
2037
|
+
paths: TRANSFORM_PATHS_18
|
|
2476
2038
|
},
|
|
2477
2039
|
{
|
|
2478
2040
|
transformFn: transformSDKPageURLV2ToRESTPageURLV2,
|
|
2479
|
-
paths:
|
|
2480
|
-
{ path: "service.urls.servicePage" },
|
|
2481
|
-
{ path: "service.urls.bookingPage" },
|
|
2482
|
-
{ path: "service.urls.calendarPage" }
|
|
2483
|
-
]
|
|
2041
|
+
paths: TRANSFORM_PATHS_22
|
|
2484
2042
|
}
|
|
2485
2043
|
]
|
|
2486
2044
|
);
|
|
@@ -2553,31 +2111,15 @@ async function bulkDeleteServices2(ids, options) {
|
|
|
2553
2111
|
transformPaths2(result.data, [
|
|
2554
2112
|
{
|
|
2555
2113
|
transformFn: transformRESTImageToSDKImage,
|
|
2556
|
-
paths:
|
|
2557
|
-
{ path: "results.item.media.items.image" },
|
|
2558
|
-
{ path: "results.item.media.mainMedia.image" },
|
|
2559
|
-
{ path: "results.item.media.coverMedia.image" },
|
|
2560
|
-
{ path: "results.item.staffMembers.mainMedia.image" },
|
|
2561
|
-
{
|
|
2562
|
-
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2563
|
-
}
|
|
2564
|
-
]
|
|
2114
|
+
paths: TRANSFORM_PATHS_62
|
|
2565
2115
|
},
|
|
2566
2116
|
{
|
|
2567
2117
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2568
|
-
paths:
|
|
2569
|
-
{ path: "results.item.locations.calculatedAddress" },
|
|
2570
|
-
{ path: "results.item.locations.business.address" },
|
|
2571
|
-
{ path: "results.item.locations.custom.address" }
|
|
2572
|
-
]
|
|
2118
|
+
paths: TRANSFORM_PATHS_72
|
|
2573
2119
|
},
|
|
2574
2120
|
{
|
|
2575
2121
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2576
|
-
paths:
|
|
2577
|
-
{ path: "results.item.urls.servicePage" },
|
|
2578
|
-
{ path: "results.item.urls.bookingPage" },
|
|
2579
|
-
{ path: "results.item.urls.calendarPage" }
|
|
2580
|
-
]
|
|
2122
|
+
paths: TRANSFORM_PATHS_82
|
|
2581
2123
|
}
|
|
2582
2124
|
])
|
|
2583
2125
|
);
|
|
@@ -2663,31 +2205,15 @@ function queryServices2(options) {
|
|
|
2663
2205
|
transformPaths2(data, [
|
|
2664
2206
|
{
|
|
2665
2207
|
transformFn: transformRESTImageToSDKImage,
|
|
2666
|
-
paths:
|
|
2667
|
-
{ path: "services.media.items.image" },
|
|
2668
|
-
{ path: "services.media.mainMedia.image" },
|
|
2669
|
-
{ path: "services.media.coverMedia.image" },
|
|
2670
|
-
{ path: "services.staffMembers.mainMedia.image" },
|
|
2671
|
-
{
|
|
2672
|
-
path: "services.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2673
|
-
}
|
|
2674
|
-
]
|
|
2208
|
+
paths: TRANSFORM_PATHS_32
|
|
2675
2209
|
},
|
|
2676
2210
|
{
|
|
2677
2211
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2678
|
-
paths:
|
|
2679
|
-
{ path: "services.locations.calculatedAddress" },
|
|
2680
|
-
{ path: "services.locations.business.address" },
|
|
2681
|
-
{ path: "services.locations.custom.address" }
|
|
2682
|
-
]
|
|
2212
|
+
paths: TRANSFORM_PATHS_42
|
|
2683
2213
|
},
|
|
2684
2214
|
{
|
|
2685
2215
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2686
|
-
paths:
|
|
2687
|
-
{ path: "services.urls.servicePage" },
|
|
2688
|
-
{ path: "services.urls.bookingPage" },
|
|
2689
|
-
{ path: "services.urls.calendarPage" }
|
|
2690
|
-
]
|
|
2216
|
+
paths: TRANSFORM_PATHS_52
|
|
2691
2217
|
}
|
|
2692
2218
|
])
|
|
2693
2219
|
);
|
|
@@ -2723,31 +2249,15 @@ async function typedQueryServices(query, options) {
|
|
|
2723
2249
|
transformPaths2(result.data, [
|
|
2724
2250
|
{
|
|
2725
2251
|
transformFn: transformRESTImageToSDKImage,
|
|
2726
|
-
paths:
|
|
2727
|
-
{ path: "services.media.items.image" },
|
|
2728
|
-
{ path: "services.media.mainMedia.image" },
|
|
2729
|
-
{ path: "services.media.coverMedia.image" },
|
|
2730
|
-
{ path: "services.staffMembers.mainMedia.image" },
|
|
2731
|
-
{
|
|
2732
|
-
path: "services.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2733
|
-
}
|
|
2734
|
-
]
|
|
2252
|
+
paths: TRANSFORM_PATHS_32
|
|
2735
2253
|
},
|
|
2736
2254
|
{
|
|
2737
2255
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2738
|
-
paths:
|
|
2739
|
-
{ path: "services.locations.calculatedAddress" },
|
|
2740
|
-
{ path: "services.locations.business.address" },
|
|
2741
|
-
{ path: "services.locations.custom.address" }
|
|
2742
|
-
]
|
|
2256
|
+
paths: TRANSFORM_PATHS_42
|
|
2743
2257
|
},
|
|
2744
2258
|
{
|
|
2745
2259
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2746
|
-
paths:
|
|
2747
|
-
{ path: "services.urls.servicePage" },
|
|
2748
|
-
{ path: "services.urls.bookingPage" },
|
|
2749
|
-
{ path: "services.urls.calendarPage" }
|
|
2750
|
-
]
|
|
2260
|
+
paths: TRANSFORM_PATHS_52
|
|
2751
2261
|
}
|
|
2752
2262
|
])
|
|
2753
2263
|
);
|
|
@@ -2781,31 +2291,15 @@ async function searchServices2(search) {
|
|
|
2781
2291
|
transformPaths2(result.data, [
|
|
2782
2292
|
{
|
|
2783
2293
|
transformFn: transformRESTImageToSDKImage,
|
|
2784
|
-
paths:
|
|
2785
|
-
{ path: "services.media.items.image" },
|
|
2786
|
-
{ path: "services.media.mainMedia.image" },
|
|
2787
|
-
{ path: "services.media.coverMedia.image" },
|
|
2788
|
-
{ path: "services.staffMembers.mainMedia.image" },
|
|
2789
|
-
{
|
|
2790
|
-
path: "services.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2791
|
-
}
|
|
2792
|
-
]
|
|
2294
|
+
paths: TRANSFORM_PATHS_32
|
|
2793
2295
|
},
|
|
2794
2296
|
{
|
|
2795
2297
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2796
|
-
paths:
|
|
2797
|
-
{ path: "services.locations.calculatedAddress" },
|
|
2798
|
-
{ path: "services.locations.business.address" },
|
|
2799
|
-
{ path: "services.locations.custom.address" }
|
|
2800
|
-
]
|
|
2298
|
+
paths: TRANSFORM_PATHS_42
|
|
2801
2299
|
},
|
|
2802
2300
|
{
|
|
2803
2301
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2804
|
-
paths:
|
|
2805
|
-
{ path: "services.urls.servicePage" },
|
|
2806
|
-
{ path: "services.urls.bookingPage" },
|
|
2807
|
-
{ path: "services.urls.calendarPage" }
|
|
2808
|
-
]
|
|
2302
|
+
paths: TRANSFORM_PATHS_52
|
|
2809
2303
|
}
|
|
2810
2304
|
])
|
|
2811
2305
|
);
|
|
@@ -2835,54 +2329,15 @@ async function queryPolicies2(query) {
|
|
|
2835
2329
|
transformPaths2(result.data, [
|
|
2836
2330
|
{
|
|
2837
2331
|
transformFn: transformRESTImageToSDKImage,
|
|
2838
|
-
paths:
|
|
2839
|
-
{ path: "bookingPolicies.services.media.items.image" },
|
|
2840
|
-
{ path: "bookingPolicies.services.media.mainMedia.image" },
|
|
2841
|
-
{ path: "bookingPolicies.services.media.coverMedia.image" },
|
|
2842
|
-
{ path: "bookingPolicies.services.staffMembers.mainMedia.image" },
|
|
2843
|
-
{
|
|
2844
|
-
path: "bookingPolicies.services.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2845
|
-
},
|
|
2846
|
-
{ path: "bookingPolicies.connectedServices.media.items.image" },
|
|
2847
|
-
{ path: "bookingPolicies.connectedServices.media.mainMedia.image" },
|
|
2848
|
-
{
|
|
2849
|
-
path: "bookingPolicies.connectedServices.media.coverMedia.image"
|
|
2850
|
-
},
|
|
2851
|
-
{
|
|
2852
|
-
path: "bookingPolicies.connectedServices.staffMembers.mainMedia.image"
|
|
2853
|
-
},
|
|
2854
|
-
{
|
|
2855
|
-
path: "bookingPolicies.connectedServices.staffMemberDetails.staffMembers.mainMedia.image"
|
|
2856
|
-
}
|
|
2857
|
-
]
|
|
2332
|
+
paths: TRANSFORM_PATHS_122
|
|
2858
2333
|
},
|
|
2859
2334
|
{
|
|
2860
2335
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2861
|
-
paths:
|
|
2862
|
-
{ path: "bookingPolicies.services.locations.calculatedAddress" },
|
|
2863
|
-
{ path: "bookingPolicies.services.locations.business.address" },
|
|
2864
|
-
{ path: "bookingPolicies.services.locations.custom.address" },
|
|
2865
|
-
{
|
|
2866
|
-
path: "bookingPolicies.connectedServices.locations.calculatedAddress"
|
|
2867
|
-
},
|
|
2868
|
-
{
|
|
2869
|
-
path: "bookingPolicies.connectedServices.locations.business.address"
|
|
2870
|
-
},
|
|
2871
|
-
{
|
|
2872
|
-
path: "bookingPolicies.connectedServices.locations.custom.address"
|
|
2873
|
-
}
|
|
2874
|
-
]
|
|
2336
|
+
paths: TRANSFORM_PATHS_132
|
|
2875
2337
|
},
|
|
2876
2338
|
{
|
|
2877
2339
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
2878
|
-
paths:
|
|
2879
|
-
{ path: "bookingPolicies.services.urls.servicePage" },
|
|
2880
|
-
{ path: "bookingPolicies.services.urls.bookingPage" },
|
|
2881
|
-
{ path: "bookingPolicies.services.urls.calendarPage" },
|
|
2882
|
-
{ path: "bookingPolicies.connectedServices.urls.servicePage" },
|
|
2883
|
-
{ path: "bookingPolicies.connectedServices.urls.bookingPage" },
|
|
2884
|
-
{ path: "bookingPolicies.connectedServices.urls.calendarPage" }
|
|
2885
|
-
]
|
|
2340
|
+
paths: TRANSFORM_PATHS_142
|
|
2886
2341
|
}
|
|
2887
2342
|
])
|
|
2888
2343
|
);
|
|
@@ -2968,11 +2423,7 @@ async function queryLocations2(options) {
|
|
|
2968
2423
|
transformPaths2(result.data, [
|
|
2969
2424
|
{
|
|
2970
2425
|
transformFn: transformRESTAddressToSDKAddress,
|
|
2971
|
-
paths:
|
|
2972
|
-
{ path: "businessLocations.locations.calculatedAddress" },
|
|
2973
|
-
{ path: "businessLocations.locations.business.address" },
|
|
2974
|
-
{ path: "businessLocations.locations.custom.address" }
|
|
2975
|
-
]
|
|
2426
|
+
paths: TRANSFORM_PATHS_152
|
|
2976
2427
|
}
|
|
2977
2428
|
])
|
|
2978
2429
|
);
|
|
@@ -3027,20 +2478,7 @@ async function setServiceLocations2(serviceId, options) {
|
|
|
3027
2478
|
[
|
|
3028
2479
|
{
|
|
3029
2480
|
transformFn: transformSDKAddressToRESTAddress,
|
|
3030
|
-
paths:
|
|
3031
|
-
{ path: "locations.calculatedAddress" },
|
|
3032
|
-
{ path: "locations.business.address" },
|
|
3033
|
-
{ path: "locations.custom.address" },
|
|
3034
|
-
{
|
|
3035
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress"
|
|
3036
|
-
},
|
|
3037
|
-
{
|
|
3038
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address"
|
|
3039
|
-
},
|
|
3040
|
-
{
|
|
3041
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address"
|
|
3042
|
-
}
|
|
3043
|
-
]
|
|
2481
|
+
paths: TRANSFORM_PATHS_162
|
|
3044
2482
|
}
|
|
3045
2483
|
]
|
|
3046
2484
|
);
|
|
@@ -3053,29 +2491,15 @@ async function setServiceLocations2(serviceId, options) {
|
|
|
3053
2491
|
transformPaths2(result.data, [
|
|
3054
2492
|
{
|
|
3055
2493
|
transformFn: transformRESTImageToSDKImage,
|
|
3056
|
-
paths:
|
|
3057
|
-
{ path: "service.media.items.image" },
|
|
3058
|
-
{ path: "service.media.mainMedia.image" },
|
|
3059
|
-
{ path: "service.media.coverMedia.image" },
|
|
3060
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
3061
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
3062
|
-
]
|
|
2494
|
+
paths: TRANSFORM_PATHS_02
|
|
3063
2495
|
},
|
|
3064
2496
|
{
|
|
3065
2497
|
transformFn: transformRESTAddressToSDKAddress,
|
|
3066
|
-
paths:
|
|
3067
|
-
{ path: "service.locations.calculatedAddress" },
|
|
3068
|
-
{ path: "service.locations.business.address" },
|
|
3069
|
-
{ path: "service.locations.custom.address" }
|
|
3070
|
-
]
|
|
2498
|
+
paths: TRANSFORM_PATHS_18
|
|
3071
2499
|
},
|
|
3072
2500
|
{
|
|
3073
2501
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
3074
|
-
paths:
|
|
3075
|
-
{ path: "service.urls.servicePage" },
|
|
3076
|
-
{ path: "service.urls.bookingPage" },
|
|
3077
|
-
{ path: "service.urls.calendarPage" }
|
|
3078
|
-
]
|
|
2502
|
+
paths: TRANSFORM_PATHS_22
|
|
3079
2503
|
}
|
|
3080
2504
|
])
|
|
3081
2505
|
);
|
|
@@ -3115,29 +2539,15 @@ async function enablePricingPlansForService2(serviceId, pricingPlanIds) {
|
|
|
3115
2539
|
transformPaths2(result.data, [
|
|
3116
2540
|
{
|
|
3117
2541
|
transformFn: transformRESTImageToSDKImage,
|
|
3118
|
-
paths:
|
|
3119
|
-
{ path: "service.media.items.image" },
|
|
3120
|
-
{ path: "service.media.mainMedia.image" },
|
|
3121
|
-
{ path: "service.media.coverMedia.image" },
|
|
3122
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
3123
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
3124
|
-
]
|
|
2542
|
+
paths: TRANSFORM_PATHS_02
|
|
3125
2543
|
},
|
|
3126
2544
|
{
|
|
3127
2545
|
transformFn: transformRESTAddressToSDKAddress,
|
|
3128
|
-
paths:
|
|
3129
|
-
{ path: "service.locations.calculatedAddress" },
|
|
3130
|
-
{ path: "service.locations.business.address" },
|
|
3131
|
-
{ path: "service.locations.custom.address" }
|
|
3132
|
-
]
|
|
2546
|
+
paths: TRANSFORM_PATHS_18
|
|
3133
2547
|
},
|
|
3134
2548
|
{
|
|
3135
2549
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
3136
|
-
paths:
|
|
3137
|
-
{ path: "service.urls.servicePage" },
|
|
3138
|
-
{ path: "service.urls.bookingPage" },
|
|
3139
|
-
{ path: "service.urls.calendarPage" }
|
|
3140
|
-
]
|
|
2550
|
+
paths: TRANSFORM_PATHS_22
|
|
3141
2551
|
}
|
|
3142
2552
|
])
|
|
3143
2553
|
);
|
|
@@ -3172,29 +2582,15 @@ async function disablePricingPlansForService2(serviceId, options) {
|
|
|
3172
2582
|
transformPaths2(result.data, [
|
|
3173
2583
|
{
|
|
3174
2584
|
transformFn: transformRESTImageToSDKImage,
|
|
3175
|
-
paths:
|
|
3176
|
-
{ path: "service.media.items.image" },
|
|
3177
|
-
{ path: "service.media.mainMedia.image" },
|
|
3178
|
-
{ path: "service.media.coverMedia.image" },
|
|
3179
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
3180
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
3181
|
-
]
|
|
2585
|
+
paths: TRANSFORM_PATHS_02
|
|
3182
2586
|
},
|
|
3183
2587
|
{
|
|
3184
2588
|
transformFn: transformRESTAddressToSDKAddress,
|
|
3185
|
-
paths:
|
|
3186
|
-
{ path: "service.locations.calculatedAddress" },
|
|
3187
|
-
{ path: "service.locations.business.address" },
|
|
3188
|
-
{ path: "service.locations.custom.address" }
|
|
3189
|
-
]
|
|
2589
|
+
paths: TRANSFORM_PATHS_18
|
|
3190
2590
|
},
|
|
3191
2591
|
{
|
|
3192
2592
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
3193
|
-
paths:
|
|
3194
|
-
{ path: "service.urls.servicePage" },
|
|
3195
|
-
{ path: "service.urls.bookingPage" },
|
|
3196
|
-
{ path: "service.urls.calendarPage" }
|
|
3197
|
-
]
|
|
2593
|
+
paths: TRANSFORM_PATHS_22
|
|
3198
2594
|
}
|
|
3199
2595
|
])
|
|
3200
2596
|
);
|
|
@@ -3230,29 +2626,15 @@ async function setCustomSlug2(serviceId, options) {
|
|
|
3230
2626
|
transformPaths2(result.data, [
|
|
3231
2627
|
{
|
|
3232
2628
|
transformFn: transformRESTImageToSDKImage,
|
|
3233
|
-
paths:
|
|
3234
|
-
{ path: "service.media.items.image" },
|
|
3235
|
-
{ path: "service.media.mainMedia.image" },
|
|
3236
|
-
{ path: "service.media.coverMedia.image" },
|
|
3237
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
3238
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
3239
|
-
]
|
|
2629
|
+
paths: TRANSFORM_PATHS_02
|
|
3240
2630
|
},
|
|
3241
2631
|
{
|
|
3242
2632
|
transformFn: transformRESTAddressToSDKAddress,
|
|
3243
|
-
paths:
|
|
3244
|
-
{ path: "service.locations.calculatedAddress" },
|
|
3245
|
-
{ path: "service.locations.business.address" },
|
|
3246
|
-
{ path: "service.locations.custom.address" }
|
|
3247
|
-
]
|
|
2633
|
+
paths: TRANSFORM_PATHS_18
|
|
3248
2634
|
},
|
|
3249
2635
|
{
|
|
3250
2636
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
3251
|
-
paths:
|
|
3252
|
-
{ path: "service.urls.servicePage" },
|
|
3253
|
-
{ path: "service.urls.bookingPage" },
|
|
3254
|
-
{ path: "service.urls.calendarPage" }
|
|
3255
|
-
]
|
|
2637
|
+
paths: TRANSFORM_PATHS_22
|
|
3256
2638
|
}
|
|
3257
2639
|
])
|
|
3258
2640
|
);
|
|
@@ -3310,29 +2692,15 @@ async function cloneService2(sourceServiceId) {
|
|
|
3310
2692
|
transformPaths2(result.data, [
|
|
3311
2693
|
{
|
|
3312
2694
|
transformFn: transformRESTImageToSDKImage,
|
|
3313
|
-
paths:
|
|
3314
|
-
{ path: "service.media.items.image" },
|
|
3315
|
-
{ path: "service.media.mainMedia.image" },
|
|
3316
|
-
{ path: "service.media.coverMedia.image" },
|
|
3317
|
-
{ path: "service.staffMembers.mainMedia.image" },
|
|
3318
|
-
{ path: "service.staffMemberDetails.staffMembers.mainMedia.image" }
|
|
3319
|
-
]
|
|
2695
|
+
paths: TRANSFORM_PATHS_02
|
|
3320
2696
|
},
|
|
3321
2697
|
{
|
|
3322
2698
|
transformFn: transformRESTAddressToSDKAddress,
|
|
3323
|
-
paths:
|
|
3324
|
-
{ path: "service.locations.calculatedAddress" },
|
|
3325
|
-
{ path: "service.locations.business.address" },
|
|
3326
|
-
{ path: "service.locations.custom.address" }
|
|
3327
|
-
]
|
|
2699
|
+
paths: TRANSFORM_PATHS_18
|
|
3328
2700
|
},
|
|
3329
2701
|
{
|
|
3330
2702
|
transformFn: transformRESTPageURLV2ToSDKPageURLV2,
|
|
3331
|
-
paths:
|
|
3332
|
-
{ path: "service.urls.servicePage" },
|
|
3333
|
-
{ path: "service.urls.bookingPage" },
|
|
3334
|
-
{ path: "service.urls.calendarPage" }
|
|
3335
|
-
]
|
|
2703
|
+
paths: TRANSFORM_PATHS_22
|
|
3336
2704
|
}
|
|
3337
2705
|
])
|
|
3338
2706
|
);
|
|
@@ -3452,7 +2820,7 @@ async function listAddOnGroupsByServiceId2(serviceId, options) {
|
|
|
3452
2820
|
transformPaths2(result.data, [
|
|
3453
2821
|
{
|
|
3454
2822
|
transformFn: transformRESTImageToSDKImage,
|
|
3455
|
-
paths:
|
|
2823
|
+
paths: TRANSFORM_PATHS_172
|
|
3456
2824
|
}
|
|
3457
2825
|
])
|
|
3458
2826
|
);
|