@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
package/build/es/meta.mjs
CHANGED
|
@@ -7,6 +7,283 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
|
|
|
7
7
|
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
8
8
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
9
9
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
10
|
+
var TRANSFORM_PATHS_0 = [
|
|
11
|
+
{ path: "service.createdDate" },
|
|
12
|
+
{ path: "service.updatedDate" },
|
|
13
|
+
{ path: "service.media.items.image.urlExpirationDate" },
|
|
14
|
+
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
15
|
+
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
16
|
+
{ path: "service.payment.subscription.recurringStartDate" },
|
|
17
|
+
{ path: "service.bookingPolicy.createdDate" },
|
|
18
|
+
{ path: "service.bookingPolicy.updatedDate" },
|
|
19
|
+
{ path: "service.schedule.firstSessionStart" },
|
|
20
|
+
{ path: "service.schedule.lastSessionEnd" },
|
|
21
|
+
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
22
|
+
{
|
|
23
|
+
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
24
|
+
},
|
|
25
|
+
{ path: "service.supportedSlugs.createdDate" },
|
|
26
|
+
{ path: "service.mainSlug.createdDate" }
|
|
27
|
+
];
|
|
28
|
+
var TRANSFORM_PATHS_1 = [
|
|
29
|
+
{ path: "service.locations.business.address.geocode.latitude" },
|
|
30
|
+
{ path: "service.locations.business.address.geocode.longitude" },
|
|
31
|
+
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
32
|
+
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
33
|
+
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
34
|
+
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
35
|
+
];
|
|
36
|
+
var TRANSFORM_PATHS_2 = [
|
|
37
|
+
{ path: "services.createdDate" },
|
|
38
|
+
{ path: "services.updatedDate" },
|
|
39
|
+
{ path: "services.media.items.image.urlExpirationDate" },
|
|
40
|
+
{ path: "services.media.mainMedia.image.urlExpirationDate" },
|
|
41
|
+
{ path: "services.media.coverMedia.image.urlExpirationDate" },
|
|
42
|
+
{ path: "services.payment.subscription.recurringStartDate" },
|
|
43
|
+
{ path: "services.bookingPolicy.createdDate" },
|
|
44
|
+
{ path: "services.bookingPolicy.updatedDate" },
|
|
45
|
+
{ path: "services.schedule.firstSessionStart" },
|
|
46
|
+
{ path: "services.schedule.lastSessionEnd" },
|
|
47
|
+
{ path: "services.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
48
|
+
{
|
|
49
|
+
path: "services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
50
|
+
},
|
|
51
|
+
{ path: "services.supportedSlugs.createdDate" },
|
|
52
|
+
{ path: "services.mainSlug.createdDate" }
|
|
53
|
+
];
|
|
54
|
+
var TRANSFORM_PATHS_3 = [
|
|
55
|
+
{ path: "services.locations.business.address.geocode.latitude" },
|
|
56
|
+
{ path: "services.locations.business.address.geocode.longitude" },
|
|
57
|
+
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
58
|
+
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
59
|
+
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
60
|
+
{ path: "services.locations.calculatedAddress.geocode.longitude" }
|
|
61
|
+
];
|
|
62
|
+
var TRANSFORM_PATHS_4 = [
|
|
63
|
+
{ path: "results.item.createdDate" },
|
|
64
|
+
{ path: "results.item.updatedDate" },
|
|
65
|
+
{ path: "results.item.media.items.image.urlExpirationDate" },
|
|
66
|
+
{ path: "results.item.media.mainMedia.image.urlExpirationDate" },
|
|
67
|
+
{ path: "results.item.media.coverMedia.image.urlExpirationDate" },
|
|
68
|
+
{ path: "results.item.payment.subscription.recurringStartDate" },
|
|
69
|
+
{ path: "results.item.bookingPolicy.createdDate" },
|
|
70
|
+
{ path: "results.item.bookingPolicy.updatedDate" },
|
|
71
|
+
{ path: "results.item.schedule.firstSessionStart" },
|
|
72
|
+
{ path: "results.item.schedule.lastSessionEnd" },
|
|
73
|
+
{ path: "results.item.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
74
|
+
{
|
|
75
|
+
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
76
|
+
},
|
|
77
|
+
{ path: "results.item.supportedSlugs.createdDate" },
|
|
78
|
+
{ path: "results.item.mainSlug.createdDate" }
|
|
79
|
+
];
|
|
80
|
+
var TRANSFORM_PATHS_5 = [
|
|
81
|
+
{ path: "results.item.locations.business.address.geocode.latitude" },
|
|
82
|
+
{ path: "results.item.locations.business.address.geocode.longitude" },
|
|
83
|
+
{ path: "results.item.locations.custom.address.geocode.latitude" },
|
|
84
|
+
{ path: "results.item.locations.custom.address.geocode.longitude" },
|
|
85
|
+
{ path: "results.item.locations.calculatedAddress.geocode.latitude" },
|
|
86
|
+
{ path: "results.item.locations.calculatedAddress.geocode.longitude" }
|
|
87
|
+
];
|
|
88
|
+
var TRANSFORM_PATHS_6 = [{ path: "mask" }];
|
|
89
|
+
var TRANSFORM_PATHS_7 = [{ path: "services.mask" }];
|
|
90
|
+
var TRANSFORM_PATHS_8 = [
|
|
91
|
+
{ path: "services.service.createdDate" },
|
|
92
|
+
{ path: "services.service.updatedDate" },
|
|
93
|
+
{ path: "services.service.media.items.image.urlExpirationDate" },
|
|
94
|
+
{ path: "services.service.media.mainMedia.image.urlExpirationDate" },
|
|
95
|
+
{ path: "services.service.media.coverMedia.image.urlExpirationDate" },
|
|
96
|
+
{ path: "services.service.payment.subscription.recurringStartDate" },
|
|
97
|
+
{ path: "services.service.bookingPolicy.createdDate" },
|
|
98
|
+
{ path: "services.service.bookingPolicy.updatedDate" },
|
|
99
|
+
{ path: "services.service.schedule.firstSessionStart" },
|
|
100
|
+
{ path: "services.service.schedule.lastSessionEnd" },
|
|
101
|
+
{ path: "services.service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
102
|
+
{
|
|
103
|
+
path: "services.service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
104
|
+
},
|
|
105
|
+
{ path: "services.service.supportedSlugs.createdDate" },
|
|
106
|
+
{ path: "services.service.mainSlug.createdDate" }
|
|
107
|
+
];
|
|
108
|
+
var TRANSFORM_PATHS_9 = [
|
|
109
|
+
{ path: "services.service.locations.business.address.geocode.latitude" },
|
|
110
|
+
{ path: "services.service.locations.business.address.geocode.longitude" },
|
|
111
|
+
{ path: "services.service.locations.custom.address.geocode.latitude" },
|
|
112
|
+
{ path: "services.service.locations.custom.address.geocode.longitude" },
|
|
113
|
+
{ path: "services.service.locations.calculatedAddress.geocode.latitude" },
|
|
114
|
+
{ path: "services.service.locations.calculatedAddress.geocode.longitude" }
|
|
115
|
+
];
|
|
116
|
+
var TRANSFORM_PATHS_10 = [
|
|
117
|
+
{ path: "search.aggregations.range.buckets.from" },
|
|
118
|
+
{ path: "search.aggregations.range.buckets.to" },
|
|
119
|
+
{ path: "search.aggregations.nested.nestedAggregations.range.buckets.from" },
|
|
120
|
+
{ path: "search.aggregations.nested.nestedAggregations.range.buckets.to" }
|
|
121
|
+
];
|
|
122
|
+
var TRANSFORM_PATHS_11 = [
|
|
123
|
+
{ path: "services.locations.business.address.geocode.latitude" },
|
|
124
|
+
{ path: "services.locations.business.address.geocode.longitude" },
|
|
125
|
+
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
126
|
+
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
127
|
+
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
128
|
+
{ path: "services.locations.calculatedAddress.geocode.longitude" },
|
|
129
|
+
{ path: "aggregationData.results.ranges.results.from" },
|
|
130
|
+
{ path: "aggregationData.results.ranges.results.to" },
|
|
131
|
+
{
|
|
132
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
|
|
136
|
+
},
|
|
137
|
+
{ path: "aggregationData.results.nested.results.results.*.range.from" },
|
|
138
|
+
{ path: "aggregationData.results.nested.results.results.*.range.to" },
|
|
139
|
+
{ path: "aggregationData.results.scalar.value" },
|
|
140
|
+
{
|
|
141
|
+
path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
|
|
142
|
+
},
|
|
143
|
+
{ path: "aggregationData.results.nested.results.results.*.scalar.value" }
|
|
144
|
+
];
|
|
145
|
+
var TRANSFORM_PATHS_12 = [
|
|
146
|
+
{ path: "bookingPolicies.bookingPolicy.createdDate" },
|
|
147
|
+
{ path: "bookingPolicies.bookingPolicy.updatedDate" },
|
|
148
|
+
{ path: "bookingPolicies.services.createdDate" },
|
|
149
|
+
{ path: "bookingPolicies.services.updatedDate" },
|
|
150
|
+
{ path: "bookingPolicies.services.media.items.image.urlExpirationDate" },
|
|
151
|
+
{ path: "bookingPolicies.services.media.mainMedia.image.urlExpirationDate" },
|
|
152
|
+
{ path: "bookingPolicies.services.media.coverMedia.image.urlExpirationDate" },
|
|
153
|
+
{ path: "bookingPolicies.services.payment.subscription.recurringStartDate" },
|
|
154
|
+
{ path: "bookingPolicies.services.bookingPolicy.createdDate" },
|
|
155
|
+
{ path: "bookingPolicies.services.bookingPolicy.updatedDate" },
|
|
156
|
+
{ path: "bookingPolicies.services.schedule.firstSessionStart" },
|
|
157
|
+
{ path: "bookingPolicies.services.schedule.lastSessionEnd" },
|
|
158
|
+
{
|
|
159
|
+
path: "bookingPolicies.services.staffMembers.mainMedia.image.urlExpirationDate"
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
path: "bookingPolicies.services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
163
|
+
},
|
|
164
|
+
{ path: "bookingPolicies.services.supportedSlugs.createdDate" },
|
|
165
|
+
{ path: "bookingPolicies.services.mainSlug.createdDate" },
|
|
166
|
+
{ path: "bookingPolicies.connectedServices.createdDate" },
|
|
167
|
+
{ path: "bookingPolicies.connectedServices.updatedDate" },
|
|
168
|
+
{
|
|
169
|
+
path: "bookingPolicies.connectedServices.media.items.image.urlExpirationDate"
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
path: "bookingPolicies.connectedServices.media.mainMedia.image.urlExpirationDate"
|
|
173
|
+
},
|
|
174
|
+
{
|
|
175
|
+
path: "bookingPolicies.connectedServices.media.coverMedia.image.urlExpirationDate"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
path: "bookingPolicies.connectedServices.payment.subscription.recurringStartDate"
|
|
179
|
+
},
|
|
180
|
+
{ path: "bookingPolicies.connectedServices.bookingPolicy.createdDate" },
|
|
181
|
+
{ path: "bookingPolicies.connectedServices.bookingPolicy.updatedDate" },
|
|
182
|
+
{ path: "bookingPolicies.connectedServices.schedule.firstSessionStart" },
|
|
183
|
+
{ path: "bookingPolicies.connectedServices.schedule.lastSessionEnd" },
|
|
184
|
+
{
|
|
185
|
+
path: "bookingPolicies.connectedServices.staffMembers.mainMedia.image.urlExpirationDate"
|
|
186
|
+
},
|
|
187
|
+
{
|
|
188
|
+
path: "bookingPolicies.connectedServices.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
189
|
+
},
|
|
190
|
+
{ path: "bookingPolicies.connectedServices.supportedSlugs.createdDate" },
|
|
191
|
+
{ path: "bookingPolicies.connectedServices.mainSlug.createdDate" }
|
|
192
|
+
];
|
|
193
|
+
var TRANSFORM_PATHS_13 = [
|
|
194
|
+
{
|
|
195
|
+
path: "bookingPolicies.services.locations.business.address.geocode.latitude"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
path: "bookingPolicies.services.locations.business.address.geocode.longitude"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
path: "bookingPolicies.services.locations.custom.address.geocode.latitude"
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
path: "bookingPolicies.services.locations.custom.address.geocode.longitude"
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
path: "bookingPolicies.services.locations.calculatedAddress.geocode.latitude"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
path: "bookingPolicies.services.locations.calculatedAddress.geocode.longitude"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
path: "bookingPolicies.connectedServices.locations.business.address.geocode.latitude"
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
path: "bookingPolicies.connectedServices.locations.business.address.geocode.longitude"
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
path: "bookingPolicies.connectedServices.locations.custom.address.geocode.latitude"
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
path: "bookingPolicies.connectedServices.locations.custom.address.geocode.longitude"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
path: "bookingPolicies.connectedServices.locations.calculatedAddress.geocode.latitude"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
path: "bookingPolicies.connectedServices.locations.calculatedAddress.geocode.longitude"
|
|
229
|
+
}
|
|
230
|
+
];
|
|
231
|
+
var TRANSFORM_PATHS_14 = [
|
|
232
|
+
{ path: "businessLocations.locations.business.address.geocode.latitude" },
|
|
233
|
+
{ path: "businessLocations.locations.business.address.geocode.longitude" },
|
|
234
|
+
{ path: "businessLocations.locations.custom.address.geocode.latitude" },
|
|
235
|
+
{ path: "businessLocations.locations.custom.address.geocode.longitude" },
|
|
236
|
+
{ path: "businessLocations.locations.calculatedAddress.geocode.latitude" },
|
|
237
|
+
{ path: "businessLocations.locations.calculatedAddress.geocode.longitude" }
|
|
238
|
+
];
|
|
239
|
+
var TRANSFORM_PATHS_15 = [
|
|
240
|
+
{ path: "locations.business.address.geocode.latitude" },
|
|
241
|
+
{ path: "locations.business.address.geocode.longitude" },
|
|
242
|
+
{ path: "locations.custom.address.geocode.latitude" },
|
|
243
|
+
{ path: "locations.custom.address.geocode.longitude" },
|
|
244
|
+
{ path: "locations.calculatedAddress.geocode.latitude" },
|
|
245
|
+
{ path: "locations.calculatedAddress.geocode.longitude" },
|
|
246
|
+
{
|
|
247
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address.geocode.latitude"
|
|
248
|
+
},
|
|
249
|
+
{
|
|
250
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address.geocode.longitude"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address.geocode.latitude"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address.geocode.longitude"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress.geocode.latitude"
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress.geocode.longitude"
|
|
263
|
+
}
|
|
264
|
+
];
|
|
265
|
+
var TRANSFORM_PATHS_16 = [
|
|
266
|
+
{ path: "slug.createdDate" },
|
|
267
|
+
{ path: "service.createdDate" },
|
|
268
|
+
{ path: "service.updatedDate" },
|
|
269
|
+
{ path: "service.media.items.image.urlExpirationDate" },
|
|
270
|
+
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
271
|
+
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
272
|
+
{ path: "service.payment.subscription.recurringStartDate" },
|
|
273
|
+
{ path: "service.bookingPolicy.createdDate" },
|
|
274
|
+
{ path: "service.bookingPolicy.updatedDate" },
|
|
275
|
+
{ path: "service.schedule.firstSessionStart" },
|
|
276
|
+
{ path: "service.schedule.lastSessionEnd" },
|
|
277
|
+
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
278
|
+
{
|
|
279
|
+
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
280
|
+
},
|
|
281
|
+
{ path: "service.supportedSlugs.createdDate" },
|
|
282
|
+
{ path: "service.mainSlug.createdDate" }
|
|
283
|
+
];
|
|
284
|
+
var TRANSFORM_PATHS_17 = [
|
|
285
|
+
{ path: "addOnGroupsDetails.addOns.mainMedia.image.urlExpirationDate" }
|
|
286
|
+
];
|
|
10
287
|
function resolveWixBookingsServicesV2AddOnGroupsServiceUrl(opts) {
|
|
11
288
|
const domainToMappings = {
|
|
12
289
|
"*.dev.wix-code.com": [
|
|
@@ -243,35 +520,11 @@ function createService(payload) {
|
|
|
243
520
|
const serializedData = transformPaths(payload, [
|
|
244
521
|
{
|
|
245
522
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
246
|
-
paths:
|
|
247
|
-
{ path: "service.createdDate" },
|
|
248
|
-
{ path: "service.updatedDate" },
|
|
249
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
250
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
251
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
252
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
253
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
254
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
255
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
256
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
257
|
-
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
258
|
-
{
|
|
259
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
260
|
-
},
|
|
261
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
262
|
-
{ path: "service.mainSlug.createdDate" }
|
|
263
|
-
]
|
|
523
|
+
paths: TRANSFORM_PATHS_0
|
|
264
524
|
},
|
|
265
525
|
{
|
|
266
526
|
transformFn: transformSDKFloatToRESTFloat,
|
|
267
|
-
paths:
|
|
268
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
269
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
270
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
271
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
272
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
273
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
274
|
-
]
|
|
527
|
+
paths: TRANSFORM_PATHS_1
|
|
275
528
|
}
|
|
276
529
|
]);
|
|
277
530
|
const metadata = {
|
|
@@ -291,37 +544,11 @@ function createService(payload) {
|
|
|
291
544
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
292
545
|
{
|
|
293
546
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
294
|
-
paths:
|
|
295
|
-
{ path: "service.createdDate" },
|
|
296
|
-
{ path: "service.updatedDate" },
|
|
297
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
298
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
299
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
300
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
301
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
302
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
303
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
304
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
305
|
-
{
|
|
306
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
310
|
-
},
|
|
311
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
312
|
-
{ path: "service.mainSlug.createdDate" }
|
|
313
|
-
]
|
|
547
|
+
paths: TRANSFORM_PATHS_0
|
|
314
548
|
},
|
|
315
549
|
{
|
|
316
550
|
transformFn: transformRESTFloatToSDKFloat,
|
|
317
|
-
paths:
|
|
318
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
319
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
320
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
321
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
322
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
323
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
324
|
-
]
|
|
551
|
+
paths: TRANSFORM_PATHS_1
|
|
325
552
|
}
|
|
326
553
|
])
|
|
327
554
|
};
|
|
@@ -334,35 +561,11 @@ function bulkCreateServices(payload) {
|
|
|
334
561
|
const serializedData = transformPaths(payload, [
|
|
335
562
|
{
|
|
336
563
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
337
|
-
paths:
|
|
338
|
-
{ path: "services.createdDate" },
|
|
339
|
-
{ path: "services.updatedDate" },
|
|
340
|
-
{ path: "services.media.items.image.urlExpirationDate" },
|
|
341
|
-
{ path: "services.media.mainMedia.image.urlExpirationDate" },
|
|
342
|
-
{ path: "services.media.coverMedia.image.urlExpirationDate" },
|
|
343
|
-
{ path: "services.payment.subscription.recurringStartDate" },
|
|
344
|
-
{ path: "services.bookingPolicy.createdDate" },
|
|
345
|
-
{ path: "services.bookingPolicy.updatedDate" },
|
|
346
|
-
{ path: "services.schedule.firstSessionStart" },
|
|
347
|
-
{ path: "services.schedule.lastSessionEnd" },
|
|
348
|
-
{ path: "services.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
349
|
-
{
|
|
350
|
-
path: "services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
351
|
-
},
|
|
352
|
-
{ path: "services.supportedSlugs.createdDate" },
|
|
353
|
-
{ path: "services.mainSlug.createdDate" }
|
|
354
|
-
]
|
|
564
|
+
paths: TRANSFORM_PATHS_2
|
|
355
565
|
},
|
|
356
566
|
{
|
|
357
567
|
transformFn: transformSDKFloatToRESTFloat,
|
|
358
|
-
paths:
|
|
359
|
-
{ path: "services.locations.business.address.geocode.latitude" },
|
|
360
|
-
{ path: "services.locations.business.address.geocode.longitude" },
|
|
361
|
-
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
362
|
-
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
363
|
-
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
364
|
-
{ path: "services.locations.calculatedAddress.geocode.longitude" }
|
|
365
|
-
]
|
|
568
|
+
paths: TRANSFORM_PATHS_3
|
|
366
569
|
}
|
|
367
570
|
]);
|
|
368
571
|
const metadata = {
|
|
@@ -382,49 +585,11 @@ function bulkCreateServices(payload) {
|
|
|
382
585
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
383
586
|
{
|
|
384
587
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
385
|
-
paths:
|
|
386
|
-
{ path: "results.item.createdDate" },
|
|
387
|
-
{ path: "results.item.updatedDate" },
|
|
388
|
-
{ path: "results.item.media.items.image.urlExpirationDate" },
|
|
389
|
-
{ path: "results.item.media.mainMedia.image.urlExpirationDate" },
|
|
390
|
-
{ path: "results.item.media.coverMedia.image.urlExpirationDate" },
|
|
391
|
-
{ path: "results.item.payment.subscription.recurringStartDate" },
|
|
392
|
-
{ path: "results.item.bookingPolicy.createdDate" },
|
|
393
|
-
{ path: "results.item.bookingPolicy.updatedDate" },
|
|
394
|
-
{ path: "results.item.schedule.firstSessionStart" },
|
|
395
|
-
{ path: "results.item.schedule.lastSessionEnd" },
|
|
396
|
-
{
|
|
397
|
-
path: "results.item.staffMembers.mainMedia.image.urlExpirationDate"
|
|
398
|
-
},
|
|
399
|
-
{
|
|
400
|
-
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
401
|
-
},
|
|
402
|
-
{ path: "results.item.supportedSlugs.createdDate" },
|
|
403
|
-
{ path: "results.item.mainSlug.createdDate" }
|
|
404
|
-
]
|
|
588
|
+
paths: TRANSFORM_PATHS_4
|
|
405
589
|
},
|
|
406
590
|
{
|
|
407
591
|
transformFn: transformRESTFloatToSDKFloat,
|
|
408
|
-
paths:
|
|
409
|
-
{
|
|
410
|
-
path: "results.item.locations.business.address.geocode.latitude"
|
|
411
|
-
},
|
|
412
|
-
{
|
|
413
|
-
path: "results.item.locations.business.address.geocode.longitude"
|
|
414
|
-
},
|
|
415
|
-
{
|
|
416
|
-
path: "results.item.locations.custom.address.geocode.latitude"
|
|
417
|
-
},
|
|
418
|
-
{
|
|
419
|
-
path: "results.item.locations.custom.address.geocode.longitude"
|
|
420
|
-
},
|
|
421
|
-
{
|
|
422
|
-
path: "results.item.locations.calculatedAddress.geocode.latitude"
|
|
423
|
-
},
|
|
424
|
-
{
|
|
425
|
-
path: "results.item.locations.calculatedAddress.geocode.longitude"
|
|
426
|
-
}
|
|
427
|
-
]
|
|
592
|
+
paths: TRANSFORM_PATHS_5
|
|
428
593
|
}
|
|
429
594
|
])
|
|
430
595
|
};
|
|
@@ -451,37 +616,11 @@ function getService(payload) {
|
|
|
451
616
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
452
617
|
{
|
|
453
618
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
454
|
-
paths:
|
|
455
|
-
{ path: "service.createdDate" },
|
|
456
|
-
{ path: "service.updatedDate" },
|
|
457
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
458
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
459
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
460
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
461
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
462
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
463
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
464
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
465
|
-
{
|
|
466
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
467
|
-
},
|
|
468
|
-
{
|
|
469
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
470
|
-
},
|
|
471
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
472
|
-
{ path: "service.mainSlug.createdDate" }
|
|
473
|
-
]
|
|
619
|
+
paths: TRANSFORM_PATHS_0
|
|
474
620
|
},
|
|
475
621
|
{
|
|
476
622
|
transformFn: transformRESTFloatToSDKFloat,
|
|
477
|
-
paths:
|
|
478
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
479
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
480
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
481
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
482
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
483
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
484
|
-
]
|
|
623
|
+
paths: TRANSFORM_PATHS_1
|
|
485
624
|
}
|
|
486
625
|
])
|
|
487
626
|
};
|
|
@@ -494,39 +633,15 @@ function updateService(payload) {
|
|
|
494
633
|
const serializedData = transformPaths(payload, [
|
|
495
634
|
{
|
|
496
635
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
497
|
-
paths:
|
|
636
|
+
paths: TRANSFORM_PATHS_6
|
|
498
637
|
},
|
|
499
638
|
{
|
|
500
639
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
501
|
-
paths:
|
|
502
|
-
{ path: "service.createdDate" },
|
|
503
|
-
{ path: "service.updatedDate" },
|
|
504
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
505
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
506
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
507
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
508
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
509
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
510
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
511
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
512
|
-
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
513
|
-
{
|
|
514
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
515
|
-
},
|
|
516
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
517
|
-
{ path: "service.mainSlug.createdDate" }
|
|
518
|
-
]
|
|
640
|
+
paths: TRANSFORM_PATHS_0
|
|
519
641
|
},
|
|
520
642
|
{
|
|
521
643
|
transformFn: transformSDKFloatToRESTFloat,
|
|
522
|
-
paths:
|
|
523
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
524
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
525
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
526
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
527
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
528
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
529
|
-
]
|
|
644
|
+
paths: TRANSFORM_PATHS_1
|
|
530
645
|
}
|
|
531
646
|
]);
|
|
532
647
|
const metadata = {
|
|
@@ -546,37 +661,11 @@ function updateService(payload) {
|
|
|
546
661
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
547
662
|
{
|
|
548
663
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
549
|
-
paths:
|
|
550
|
-
{ path: "service.createdDate" },
|
|
551
|
-
{ path: "service.updatedDate" },
|
|
552
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
553
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
554
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
555
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
556
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
557
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
558
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
559
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
560
|
-
{
|
|
561
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
562
|
-
},
|
|
563
|
-
{
|
|
564
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
565
|
-
},
|
|
566
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
567
|
-
{ path: "service.mainSlug.createdDate" }
|
|
568
|
-
]
|
|
664
|
+
paths: TRANSFORM_PATHS_0
|
|
569
665
|
},
|
|
570
666
|
{
|
|
571
667
|
transformFn: transformRESTFloatToSDKFloat,
|
|
572
|
-
paths:
|
|
573
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
574
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
575
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
576
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
577
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
578
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
579
|
-
]
|
|
668
|
+
paths: TRANSFORM_PATHS_1
|
|
580
669
|
}
|
|
581
670
|
])
|
|
582
671
|
};
|
|
@@ -589,53 +678,15 @@ function bulkUpdateServices(payload) {
|
|
|
589
678
|
const serializedData = transformPaths(payload, [
|
|
590
679
|
{
|
|
591
680
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
592
|
-
paths:
|
|
681
|
+
paths: TRANSFORM_PATHS_7
|
|
593
682
|
},
|
|
594
683
|
{
|
|
595
684
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
596
|
-
paths:
|
|
597
|
-
{ path: "services.service.createdDate" },
|
|
598
|
-
{ path: "services.service.updatedDate" },
|
|
599
|
-
{ path: "services.service.media.items.image.urlExpirationDate" },
|
|
600
|
-
{ path: "services.service.media.mainMedia.image.urlExpirationDate" },
|
|
601
|
-
{ path: "services.service.media.coverMedia.image.urlExpirationDate" },
|
|
602
|
-
{ path: "services.service.payment.subscription.recurringStartDate" },
|
|
603
|
-
{ path: "services.service.bookingPolicy.createdDate" },
|
|
604
|
-
{ path: "services.service.bookingPolicy.updatedDate" },
|
|
605
|
-
{ path: "services.service.schedule.firstSessionStart" },
|
|
606
|
-
{ path: "services.service.schedule.lastSessionEnd" },
|
|
607
|
-
{
|
|
608
|
-
path: "services.service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
609
|
-
},
|
|
610
|
-
{
|
|
611
|
-
path: "services.service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
612
|
-
},
|
|
613
|
-
{ path: "services.service.supportedSlugs.createdDate" },
|
|
614
|
-
{ path: "services.service.mainSlug.createdDate" }
|
|
615
|
-
]
|
|
685
|
+
paths: TRANSFORM_PATHS_8
|
|
616
686
|
},
|
|
617
687
|
{
|
|
618
688
|
transformFn: transformSDKFloatToRESTFloat,
|
|
619
|
-
paths:
|
|
620
|
-
{
|
|
621
|
-
path: "services.service.locations.business.address.geocode.latitude"
|
|
622
|
-
},
|
|
623
|
-
{
|
|
624
|
-
path: "services.service.locations.business.address.geocode.longitude"
|
|
625
|
-
},
|
|
626
|
-
{
|
|
627
|
-
path: "services.service.locations.custom.address.geocode.latitude"
|
|
628
|
-
},
|
|
629
|
-
{
|
|
630
|
-
path: "services.service.locations.custom.address.geocode.longitude"
|
|
631
|
-
},
|
|
632
|
-
{
|
|
633
|
-
path: "services.service.locations.calculatedAddress.geocode.latitude"
|
|
634
|
-
},
|
|
635
|
-
{
|
|
636
|
-
path: "services.service.locations.calculatedAddress.geocode.longitude"
|
|
637
|
-
}
|
|
638
|
-
]
|
|
689
|
+
paths: TRANSFORM_PATHS_9
|
|
639
690
|
}
|
|
640
691
|
]);
|
|
641
692
|
const metadata = {
|
|
@@ -655,49 +706,11 @@ function bulkUpdateServices(payload) {
|
|
|
655
706
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
656
707
|
{
|
|
657
708
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
658
|
-
paths:
|
|
659
|
-
{ path: "results.item.createdDate" },
|
|
660
|
-
{ path: "results.item.updatedDate" },
|
|
661
|
-
{ path: "results.item.media.items.image.urlExpirationDate" },
|
|
662
|
-
{ path: "results.item.media.mainMedia.image.urlExpirationDate" },
|
|
663
|
-
{ path: "results.item.media.coverMedia.image.urlExpirationDate" },
|
|
664
|
-
{ path: "results.item.payment.subscription.recurringStartDate" },
|
|
665
|
-
{ path: "results.item.bookingPolicy.createdDate" },
|
|
666
|
-
{ path: "results.item.bookingPolicy.updatedDate" },
|
|
667
|
-
{ path: "results.item.schedule.firstSessionStart" },
|
|
668
|
-
{ path: "results.item.schedule.lastSessionEnd" },
|
|
669
|
-
{
|
|
670
|
-
path: "results.item.staffMembers.mainMedia.image.urlExpirationDate"
|
|
671
|
-
},
|
|
672
|
-
{
|
|
673
|
-
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
674
|
-
},
|
|
675
|
-
{ path: "results.item.supportedSlugs.createdDate" },
|
|
676
|
-
{ path: "results.item.mainSlug.createdDate" }
|
|
677
|
-
]
|
|
709
|
+
paths: TRANSFORM_PATHS_4
|
|
678
710
|
},
|
|
679
711
|
{
|
|
680
712
|
transformFn: transformRESTFloatToSDKFloat,
|
|
681
|
-
paths:
|
|
682
|
-
{
|
|
683
|
-
path: "results.item.locations.business.address.geocode.latitude"
|
|
684
|
-
},
|
|
685
|
-
{
|
|
686
|
-
path: "results.item.locations.business.address.geocode.longitude"
|
|
687
|
-
},
|
|
688
|
-
{
|
|
689
|
-
path: "results.item.locations.custom.address.geocode.latitude"
|
|
690
|
-
},
|
|
691
|
-
{
|
|
692
|
-
path: "results.item.locations.custom.address.geocode.longitude"
|
|
693
|
-
},
|
|
694
|
-
{
|
|
695
|
-
path: "results.item.locations.calculatedAddress.geocode.latitude"
|
|
696
|
-
},
|
|
697
|
-
{
|
|
698
|
-
path: "results.item.locations.calculatedAddress.geocode.longitude"
|
|
699
|
-
}
|
|
700
|
-
]
|
|
713
|
+
paths: TRANSFORM_PATHS_5
|
|
701
714
|
}
|
|
702
715
|
])
|
|
703
716
|
};
|
|
@@ -710,39 +723,15 @@ function bulkUpdateServicesByFilter(payload) {
|
|
|
710
723
|
const serializedData = transformPaths(payload, [
|
|
711
724
|
{
|
|
712
725
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
713
|
-
paths:
|
|
726
|
+
paths: TRANSFORM_PATHS_6
|
|
714
727
|
},
|
|
715
728
|
{
|
|
716
729
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
717
|
-
paths:
|
|
718
|
-
{ path: "service.createdDate" },
|
|
719
|
-
{ path: "service.updatedDate" },
|
|
720
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
721
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
722
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
723
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
724
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
725
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
726
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
727
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
728
|
-
{ path: "service.staffMembers.mainMedia.image.urlExpirationDate" },
|
|
729
|
-
{
|
|
730
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
731
|
-
},
|
|
732
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
733
|
-
{ path: "service.mainSlug.createdDate" }
|
|
734
|
-
]
|
|
730
|
+
paths: TRANSFORM_PATHS_0
|
|
735
731
|
},
|
|
736
732
|
{
|
|
737
733
|
transformFn: transformSDKFloatToRESTFloat,
|
|
738
|
-
paths:
|
|
739
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
740
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
741
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
742
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
743
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
744
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
745
|
-
]
|
|
734
|
+
paths: TRANSFORM_PATHS_1
|
|
746
735
|
}
|
|
747
736
|
]);
|
|
748
737
|
const metadata = {
|
|
@@ -804,49 +793,11 @@ function bulkDeleteServices(payload) {
|
|
|
804
793
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
805
794
|
{
|
|
806
795
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
807
|
-
paths:
|
|
808
|
-
{ path: "results.item.createdDate" },
|
|
809
|
-
{ path: "results.item.updatedDate" },
|
|
810
|
-
{ path: "results.item.media.items.image.urlExpirationDate" },
|
|
811
|
-
{ path: "results.item.media.mainMedia.image.urlExpirationDate" },
|
|
812
|
-
{ path: "results.item.media.coverMedia.image.urlExpirationDate" },
|
|
813
|
-
{ path: "results.item.payment.subscription.recurringStartDate" },
|
|
814
|
-
{ path: "results.item.bookingPolicy.createdDate" },
|
|
815
|
-
{ path: "results.item.bookingPolicy.updatedDate" },
|
|
816
|
-
{ path: "results.item.schedule.firstSessionStart" },
|
|
817
|
-
{ path: "results.item.schedule.lastSessionEnd" },
|
|
818
|
-
{
|
|
819
|
-
path: "results.item.staffMembers.mainMedia.image.urlExpirationDate"
|
|
820
|
-
},
|
|
821
|
-
{
|
|
822
|
-
path: "results.item.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
823
|
-
},
|
|
824
|
-
{ path: "results.item.supportedSlugs.createdDate" },
|
|
825
|
-
{ path: "results.item.mainSlug.createdDate" }
|
|
826
|
-
]
|
|
796
|
+
paths: TRANSFORM_PATHS_4
|
|
827
797
|
},
|
|
828
798
|
{
|
|
829
799
|
transformFn: transformRESTFloatToSDKFloat,
|
|
830
|
-
paths:
|
|
831
|
-
{
|
|
832
|
-
path: "results.item.locations.business.address.geocode.latitude"
|
|
833
|
-
},
|
|
834
|
-
{
|
|
835
|
-
path: "results.item.locations.business.address.geocode.longitude"
|
|
836
|
-
},
|
|
837
|
-
{
|
|
838
|
-
path: "results.item.locations.custom.address.geocode.latitude"
|
|
839
|
-
},
|
|
840
|
-
{
|
|
841
|
-
path: "results.item.locations.custom.address.geocode.longitude"
|
|
842
|
-
},
|
|
843
|
-
{
|
|
844
|
-
path: "results.item.locations.calculatedAddress.geocode.latitude"
|
|
845
|
-
},
|
|
846
|
-
{
|
|
847
|
-
path: "results.item.locations.calculatedAddress.geocode.longitude"
|
|
848
|
-
}
|
|
849
|
-
]
|
|
800
|
+
paths: TRANSFORM_PATHS_5
|
|
850
801
|
}
|
|
851
802
|
])
|
|
852
803
|
};
|
|
@@ -894,39 +845,11 @@ function queryServices(payload) {
|
|
|
894
845
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
895
846
|
{
|
|
896
847
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
897
|
-
paths:
|
|
898
|
-
{ path: "services.createdDate" },
|
|
899
|
-
{ path: "services.updatedDate" },
|
|
900
|
-
{ path: "services.media.items.image.urlExpirationDate" },
|
|
901
|
-
{ path: "services.media.mainMedia.image.urlExpirationDate" },
|
|
902
|
-
{ path: "services.media.coverMedia.image.urlExpirationDate" },
|
|
903
|
-
{ path: "services.payment.subscription.recurringStartDate" },
|
|
904
|
-
{ path: "services.bookingPolicy.createdDate" },
|
|
905
|
-
{ path: "services.bookingPolicy.updatedDate" },
|
|
906
|
-
{ path: "services.schedule.firstSessionStart" },
|
|
907
|
-
{ path: "services.schedule.lastSessionEnd" },
|
|
908
|
-
{
|
|
909
|
-
path: "services.staffMembers.mainMedia.image.urlExpirationDate"
|
|
910
|
-
},
|
|
911
|
-
{
|
|
912
|
-
path: "services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
913
|
-
},
|
|
914
|
-
{ path: "services.supportedSlugs.createdDate" },
|
|
915
|
-
{ path: "services.mainSlug.createdDate" }
|
|
916
|
-
]
|
|
848
|
+
paths: TRANSFORM_PATHS_2
|
|
917
849
|
},
|
|
918
850
|
{
|
|
919
851
|
transformFn: transformRESTFloatToSDKFloat,
|
|
920
|
-
paths:
|
|
921
|
-
{ path: "services.locations.business.address.geocode.latitude" },
|
|
922
|
-
{ path: "services.locations.business.address.geocode.longitude" },
|
|
923
|
-
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
924
|
-
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
925
|
-
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
926
|
-
{
|
|
927
|
-
path: "services.locations.calculatedAddress.geocode.longitude"
|
|
928
|
-
}
|
|
929
|
-
]
|
|
852
|
+
paths: TRANSFORM_PATHS_3
|
|
930
853
|
}
|
|
931
854
|
])
|
|
932
855
|
};
|
|
@@ -939,16 +862,7 @@ function searchServices(payload) {
|
|
|
939
862
|
const serializedData = transformPaths(payload, [
|
|
940
863
|
{
|
|
941
864
|
transformFn: transformSDKFloatToRESTFloat,
|
|
942
|
-
paths:
|
|
943
|
-
{ path: "search.aggregations.range.buckets.from" },
|
|
944
|
-
{ path: "search.aggregations.range.buckets.to" },
|
|
945
|
-
{
|
|
946
|
-
path: "search.aggregations.nested.nestedAggregations.range.buckets.from"
|
|
947
|
-
},
|
|
948
|
-
{
|
|
949
|
-
path: "search.aggregations.nested.nestedAggregations.range.buckets.to"
|
|
950
|
-
}
|
|
951
|
-
]
|
|
865
|
+
paths: TRANSFORM_PATHS_10
|
|
952
866
|
}
|
|
953
867
|
]);
|
|
954
868
|
const metadata = {
|
|
@@ -968,60 +882,11 @@ function searchServices(payload) {
|
|
|
968
882
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
969
883
|
{
|
|
970
884
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
971
|
-
paths:
|
|
972
|
-
{ path: "services.createdDate" },
|
|
973
|
-
{ path: "services.updatedDate" },
|
|
974
|
-
{ path: "services.media.items.image.urlExpirationDate" },
|
|
975
|
-
{ path: "services.media.mainMedia.image.urlExpirationDate" },
|
|
976
|
-
{ path: "services.media.coverMedia.image.urlExpirationDate" },
|
|
977
|
-
{ path: "services.payment.subscription.recurringStartDate" },
|
|
978
|
-
{ path: "services.bookingPolicy.createdDate" },
|
|
979
|
-
{ path: "services.bookingPolicy.updatedDate" },
|
|
980
|
-
{ path: "services.schedule.firstSessionStart" },
|
|
981
|
-
{ path: "services.schedule.lastSessionEnd" },
|
|
982
|
-
{
|
|
983
|
-
path: "services.staffMembers.mainMedia.image.urlExpirationDate"
|
|
984
|
-
},
|
|
985
|
-
{
|
|
986
|
-
path: "services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
987
|
-
},
|
|
988
|
-
{ path: "services.supportedSlugs.createdDate" },
|
|
989
|
-
{ path: "services.mainSlug.createdDate" }
|
|
990
|
-
]
|
|
885
|
+
paths: TRANSFORM_PATHS_2
|
|
991
886
|
},
|
|
992
887
|
{
|
|
993
888
|
transformFn: transformRESTFloatToSDKFloat,
|
|
994
|
-
paths:
|
|
995
|
-
{ path: "services.locations.business.address.geocode.latitude" },
|
|
996
|
-
{ path: "services.locations.business.address.geocode.longitude" },
|
|
997
|
-
{ path: "services.locations.custom.address.geocode.latitude" },
|
|
998
|
-
{ path: "services.locations.custom.address.geocode.longitude" },
|
|
999
|
-
{ path: "services.locations.calculatedAddress.geocode.latitude" },
|
|
1000
|
-
{
|
|
1001
|
-
path: "services.locations.calculatedAddress.geocode.longitude"
|
|
1002
|
-
},
|
|
1003
|
-
{ path: "aggregationData.results.ranges.results.from" },
|
|
1004
|
-
{ path: "aggregationData.results.ranges.results.to" },
|
|
1005
|
-
{
|
|
1006
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from"
|
|
1007
|
-
},
|
|
1008
|
-
{
|
|
1009
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to"
|
|
1010
|
-
},
|
|
1011
|
-
{
|
|
1012
|
-
path: "aggregationData.results.nested.results.results.*.range.from"
|
|
1013
|
-
},
|
|
1014
|
-
{
|
|
1015
|
-
path: "aggregationData.results.nested.results.results.*.range.to"
|
|
1016
|
-
},
|
|
1017
|
-
{ path: "aggregationData.results.scalar.value" },
|
|
1018
|
-
{
|
|
1019
|
-
path: "aggregationData.results.groupedByValue.results.nestedResults.scalar.value"
|
|
1020
|
-
},
|
|
1021
|
-
{
|
|
1022
|
-
path: "aggregationData.results.nested.results.results.*.scalar.value"
|
|
1023
|
-
}
|
|
1024
|
-
]
|
|
889
|
+
paths: TRANSFORM_PATHS_11
|
|
1025
890
|
}
|
|
1026
891
|
])
|
|
1027
892
|
};
|
|
@@ -1048,115 +913,11 @@ function queryPolicies(payload) {
|
|
|
1048
913
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1049
914
|
{
|
|
1050
915
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1051
|
-
paths:
|
|
1052
|
-
{ path: "bookingPolicies.bookingPolicy.createdDate" },
|
|
1053
|
-
{ path: "bookingPolicies.bookingPolicy.updatedDate" },
|
|
1054
|
-
{ path: "bookingPolicies.services.createdDate" },
|
|
1055
|
-
{ path: "bookingPolicies.services.updatedDate" },
|
|
1056
|
-
{
|
|
1057
|
-
path: "bookingPolicies.services.media.items.image.urlExpirationDate"
|
|
1058
|
-
},
|
|
1059
|
-
{
|
|
1060
|
-
path: "bookingPolicies.services.media.mainMedia.image.urlExpirationDate"
|
|
1061
|
-
},
|
|
1062
|
-
{
|
|
1063
|
-
path: "bookingPolicies.services.media.coverMedia.image.urlExpirationDate"
|
|
1064
|
-
},
|
|
1065
|
-
{
|
|
1066
|
-
path: "bookingPolicies.services.payment.subscription.recurringStartDate"
|
|
1067
|
-
},
|
|
1068
|
-
{ path: "bookingPolicies.services.bookingPolicy.createdDate" },
|
|
1069
|
-
{ path: "bookingPolicies.services.bookingPolicy.updatedDate" },
|
|
1070
|
-
{ path: "bookingPolicies.services.schedule.firstSessionStart" },
|
|
1071
|
-
{ path: "bookingPolicies.services.schedule.lastSessionEnd" },
|
|
1072
|
-
{
|
|
1073
|
-
path: "bookingPolicies.services.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1074
|
-
},
|
|
1075
|
-
{
|
|
1076
|
-
path: "bookingPolicies.services.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1077
|
-
},
|
|
1078
|
-
{ path: "bookingPolicies.services.supportedSlugs.createdDate" },
|
|
1079
|
-
{ path: "bookingPolicies.services.mainSlug.createdDate" },
|
|
1080
|
-
{ path: "bookingPolicies.connectedServices.createdDate" },
|
|
1081
|
-
{ path: "bookingPolicies.connectedServices.updatedDate" },
|
|
1082
|
-
{
|
|
1083
|
-
path: "bookingPolicies.connectedServices.media.items.image.urlExpirationDate"
|
|
1084
|
-
},
|
|
1085
|
-
{
|
|
1086
|
-
path: "bookingPolicies.connectedServices.media.mainMedia.image.urlExpirationDate"
|
|
1087
|
-
},
|
|
1088
|
-
{
|
|
1089
|
-
path: "bookingPolicies.connectedServices.media.coverMedia.image.urlExpirationDate"
|
|
1090
|
-
},
|
|
1091
|
-
{
|
|
1092
|
-
path: "bookingPolicies.connectedServices.payment.subscription.recurringStartDate"
|
|
1093
|
-
},
|
|
1094
|
-
{
|
|
1095
|
-
path: "bookingPolicies.connectedServices.bookingPolicy.createdDate"
|
|
1096
|
-
},
|
|
1097
|
-
{
|
|
1098
|
-
path: "bookingPolicies.connectedServices.bookingPolicy.updatedDate"
|
|
1099
|
-
},
|
|
1100
|
-
{
|
|
1101
|
-
path: "bookingPolicies.connectedServices.schedule.firstSessionStart"
|
|
1102
|
-
},
|
|
1103
|
-
{
|
|
1104
|
-
path: "bookingPolicies.connectedServices.schedule.lastSessionEnd"
|
|
1105
|
-
},
|
|
1106
|
-
{
|
|
1107
|
-
path: "bookingPolicies.connectedServices.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1108
|
-
},
|
|
1109
|
-
{
|
|
1110
|
-
path: "bookingPolicies.connectedServices.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1111
|
-
},
|
|
1112
|
-
{
|
|
1113
|
-
path: "bookingPolicies.connectedServices.supportedSlugs.createdDate"
|
|
1114
|
-
},
|
|
1115
|
-
{
|
|
1116
|
-
path: "bookingPolicies.connectedServices.mainSlug.createdDate"
|
|
1117
|
-
}
|
|
1118
|
-
]
|
|
916
|
+
paths: TRANSFORM_PATHS_12
|
|
1119
917
|
},
|
|
1120
918
|
{
|
|
1121
919
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1122
|
-
paths:
|
|
1123
|
-
{
|
|
1124
|
-
path: "bookingPolicies.services.locations.business.address.geocode.latitude"
|
|
1125
|
-
},
|
|
1126
|
-
{
|
|
1127
|
-
path: "bookingPolicies.services.locations.business.address.geocode.longitude"
|
|
1128
|
-
},
|
|
1129
|
-
{
|
|
1130
|
-
path: "bookingPolicies.services.locations.custom.address.geocode.latitude"
|
|
1131
|
-
},
|
|
1132
|
-
{
|
|
1133
|
-
path: "bookingPolicies.services.locations.custom.address.geocode.longitude"
|
|
1134
|
-
},
|
|
1135
|
-
{
|
|
1136
|
-
path: "bookingPolicies.services.locations.calculatedAddress.geocode.latitude"
|
|
1137
|
-
},
|
|
1138
|
-
{
|
|
1139
|
-
path: "bookingPolicies.services.locations.calculatedAddress.geocode.longitude"
|
|
1140
|
-
},
|
|
1141
|
-
{
|
|
1142
|
-
path: "bookingPolicies.connectedServices.locations.business.address.geocode.latitude"
|
|
1143
|
-
},
|
|
1144
|
-
{
|
|
1145
|
-
path: "bookingPolicies.connectedServices.locations.business.address.geocode.longitude"
|
|
1146
|
-
},
|
|
1147
|
-
{
|
|
1148
|
-
path: "bookingPolicies.connectedServices.locations.custom.address.geocode.latitude"
|
|
1149
|
-
},
|
|
1150
|
-
{
|
|
1151
|
-
path: "bookingPolicies.connectedServices.locations.custom.address.geocode.longitude"
|
|
1152
|
-
},
|
|
1153
|
-
{
|
|
1154
|
-
path: "bookingPolicies.connectedServices.locations.calculatedAddress.geocode.latitude"
|
|
1155
|
-
},
|
|
1156
|
-
{
|
|
1157
|
-
path: "bookingPolicies.connectedServices.locations.calculatedAddress.geocode.longitude"
|
|
1158
|
-
}
|
|
1159
|
-
]
|
|
920
|
+
paths: TRANSFORM_PATHS_13
|
|
1160
921
|
}
|
|
1161
922
|
])
|
|
1162
923
|
};
|
|
@@ -1225,26 +986,7 @@ function queryLocations(payload) {
|
|
|
1225
986
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1226
987
|
{
|
|
1227
988
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1228
|
-
paths:
|
|
1229
|
-
{
|
|
1230
|
-
path: "businessLocations.locations.business.address.geocode.latitude"
|
|
1231
|
-
},
|
|
1232
|
-
{
|
|
1233
|
-
path: "businessLocations.locations.business.address.geocode.longitude"
|
|
1234
|
-
},
|
|
1235
|
-
{
|
|
1236
|
-
path: "businessLocations.locations.custom.address.geocode.latitude"
|
|
1237
|
-
},
|
|
1238
|
-
{
|
|
1239
|
-
path: "businessLocations.locations.custom.address.geocode.longitude"
|
|
1240
|
-
},
|
|
1241
|
-
{
|
|
1242
|
-
path: "businessLocations.locations.calculatedAddress.geocode.latitude"
|
|
1243
|
-
},
|
|
1244
|
-
{
|
|
1245
|
-
path: "businessLocations.locations.calculatedAddress.geocode.longitude"
|
|
1246
|
-
}
|
|
1247
|
-
]
|
|
989
|
+
paths: TRANSFORM_PATHS_14
|
|
1248
990
|
}
|
|
1249
991
|
])
|
|
1250
992
|
};
|
|
@@ -1278,32 +1020,7 @@ function setServiceLocations(payload) {
|
|
|
1278
1020
|
const serializedData = transformPaths(payload, [
|
|
1279
1021
|
{
|
|
1280
1022
|
transformFn: transformSDKFloatToRESTFloat,
|
|
1281
|
-
paths:
|
|
1282
|
-
{ path: "locations.business.address.geocode.latitude" },
|
|
1283
|
-
{ path: "locations.business.address.geocode.longitude" },
|
|
1284
|
-
{ path: "locations.custom.address.geocode.latitude" },
|
|
1285
|
-
{ path: "locations.custom.address.geocode.longitude" },
|
|
1286
|
-
{ path: "locations.calculatedAddress.geocode.latitude" },
|
|
1287
|
-
{ path: "locations.calculatedAddress.geocode.longitude" },
|
|
1288
|
-
{
|
|
1289
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address.geocode.latitude"
|
|
1290
|
-
},
|
|
1291
|
-
{
|
|
1292
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.business.address.geocode.longitude"
|
|
1293
|
-
},
|
|
1294
|
-
{
|
|
1295
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address.geocode.latitude"
|
|
1296
|
-
},
|
|
1297
|
-
{
|
|
1298
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.custom.address.geocode.longitude"
|
|
1299
|
-
},
|
|
1300
|
-
{
|
|
1301
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress.geocode.latitude"
|
|
1302
|
-
},
|
|
1303
|
-
{
|
|
1304
|
-
path: "removedLocationSessionsAction.moveToLocationOptions.newLocation.calculatedAddress.geocode.longitude"
|
|
1305
|
-
}
|
|
1306
|
-
]
|
|
1023
|
+
paths: TRANSFORM_PATHS_15
|
|
1307
1024
|
}
|
|
1308
1025
|
]);
|
|
1309
1026
|
const metadata = {
|
|
@@ -1323,37 +1040,11 @@ function setServiceLocations(payload) {
|
|
|
1323
1040
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1324
1041
|
{
|
|
1325
1042
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1326
|
-
paths:
|
|
1327
|
-
{ path: "service.createdDate" },
|
|
1328
|
-
{ path: "service.updatedDate" },
|
|
1329
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1330
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1331
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1332
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1333
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1334
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1335
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1336
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1337
|
-
{
|
|
1338
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1339
|
-
},
|
|
1340
|
-
{
|
|
1341
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1342
|
-
},
|
|
1343
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1344
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1345
|
-
]
|
|
1043
|
+
paths: TRANSFORM_PATHS_0
|
|
1346
1044
|
},
|
|
1347
1045
|
{
|
|
1348
1046
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1349
|
-
paths:
|
|
1350
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1351
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1352
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1353
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1354
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1355
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1356
|
-
]
|
|
1047
|
+
paths: TRANSFORM_PATHS_1
|
|
1357
1048
|
}
|
|
1358
1049
|
])
|
|
1359
1050
|
};
|
|
@@ -1380,37 +1071,11 @@ function enablePricingPlansForService(payload) {
|
|
|
1380
1071
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1381
1072
|
{
|
|
1382
1073
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1383
|
-
paths:
|
|
1384
|
-
{ path: "service.createdDate" },
|
|
1385
|
-
{ path: "service.updatedDate" },
|
|
1386
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1387
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1388
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1389
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1390
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1391
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1392
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1393
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1394
|
-
{
|
|
1395
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1396
|
-
},
|
|
1397
|
-
{
|
|
1398
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1399
|
-
},
|
|
1400
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1401
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1402
|
-
]
|
|
1074
|
+
paths: TRANSFORM_PATHS_0
|
|
1403
1075
|
},
|
|
1404
1076
|
{
|
|
1405
1077
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1406
|
-
paths:
|
|
1407
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1408
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1409
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1410
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1411
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1412
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1413
|
-
]
|
|
1078
|
+
paths: TRANSFORM_PATHS_1
|
|
1414
1079
|
}
|
|
1415
1080
|
])
|
|
1416
1081
|
};
|
|
@@ -1437,37 +1102,11 @@ function disablePricingPlansForService(payload) {
|
|
|
1437
1102
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1438
1103
|
{
|
|
1439
1104
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1440
|
-
paths:
|
|
1441
|
-
{ path: "service.createdDate" },
|
|
1442
|
-
{ path: "service.updatedDate" },
|
|
1443
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1444
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1445
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1446
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1447
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1448
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1449
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1450
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1451
|
-
{
|
|
1452
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1453
|
-
},
|
|
1454
|
-
{
|
|
1455
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1456
|
-
},
|
|
1457
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1458
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1459
|
-
]
|
|
1105
|
+
paths: TRANSFORM_PATHS_0
|
|
1460
1106
|
},
|
|
1461
1107
|
{
|
|
1462
1108
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1463
|
-
paths:
|
|
1464
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1465
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1466
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1467
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1468
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1469
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1470
|
-
]
|
|
1109
|
+
paths: TRANSFORM_PATHS_1
|
|
1471
1110
|
}
|
|
1472
1111
|
])
|
|
1473
1112
|
};
|
|
@@ -1494,38 +1133,11 @@ function setCustomSlug(payload) {
|
|
|
1494
1133
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1495
1134
|
{
|
|
1496
1135
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1497
|
-
paths:
|
|
1498
|
-
{ path: "slug.createdDate" },
|
|
1499
|
-
{ path: "service.createdDate" },
|
|
1500
|
-
{ path: "service.updatedDate" },
|
|
1501
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1502
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1503
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1504
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1505
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1506
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1507
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1508
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1509
|
-
{
|
|
1510
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1511
|
-
},
|
|
1512
|
-
{
|
|
1513
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1514
|
-
},
|
|
1515
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1516
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1517
|
-
]
|
|
1136
|
+
paths: TRANSFORM_PATHS_16
|
|
1518
1137
|
},
|
|
1519
1138
|
{
|
|
1520
1139
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1521
|
-
paths:
|
|
1522
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1523
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1524
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1525
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1526
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1527
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1528
|
-
]
|
|
1140
|
+
paths: TRANSFORM_PATHS_1
|
|
1529
1141
|
}
|
|
1530
1142
|
])
|
|
1531
1143
|
};
|
|
@@ -1573,37 +1185,11 @@ function cloneService(payload) {
|
|
|
1573
1185
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1574
1186
|
{
|
|
1575
1187
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1576
|
-
paths:
|
|
1577
|
-
{ path: "service.createdDate" },
|
|
1578
|
-
{ path: "service.updatedDate" },
|
|
1579
|
-
{ path: "service.media.items.image.urlExpirationDate" },
|
|
1580
|
-
{ path: "service.media.mainMedia.image.urlExpirationDate" },
|
|
1581
|
-
{ path: "service.media.coverMedia.image.urlExpirationDate" },
|
|
1582
|
-
{ path: "service.payment.subscription.recurringStartDate" },
|
|
1583
|
-
{ path: "service.bookingPolicy.createdDate" },
|
|
1584
|
-
{ path: "service.bookingPolicy.updatedDate" },
|
|
1585
|
-
{ path: "service.schedule.firstSessionStart" },
|
|
1586
|
-
{ path: "service.schedule.lastSessionEnd" },
|
|
1587
|
-
{
|
|
1588
|
-
path: "service.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1589
|
-
},
|
|
1590
|
-
{
|
|
1591
|
-
path: "service.staffMemberDetails.staffMembers.mainMedia.image.urlExpirationDate"
|
|
1592
|
-
},
|
|
1593
|
-
{ path: "service.supportedSlugs.createdDate" },
|
|
1594
|
-
{ path: "service.mainSlug.createdDate" }
|
|
1595
|
-
]
|
|
1188
|
+
paths: TRANSFORM_PATHS_0
|
|
1596
1189
|
},
|
|
1597
1190
|
{
|
|
1598
1191
|
transformFn: transformRESTFloatToSDKFloat,
|
|
1599
|
-
paths:
|
|
1600
|
-
{ path: "service.locations.business.address.geocode.latitude" },
|
|
1601
|
-
{ path: "service.locations.business.address.geocode.longitude" },
|
|
1602
|
-
{ path: "service.locations.custom.address.geocode.latitude" },
|
|
1603
|
-
{ path: "service.locations.custom.address.geocode.longitude" },
|
|
1604
|
-
{ path: "service.locations.calculatedAddress.geocode.latitude" },
|
|
1605
|
-
{ path: "service.locations.calculatedAddress.geocode.longitude" }
|
|
1606
|
-
]
|
|
1192
|
+
paths: TRANSFORM_PATHS_1
|
|
1607
1193
|
}
|
|
1608
1194
|
])
|
|
1609
1195
|
};
|
|
@@ -1658,7 +1244,7 @@ function updateAddOnGroup(payload) {
|
|
|
1658
1244
|
const serializedData = transformPaths(payload, [
|
|
1659
1245
|
{
|
|
1660
1246
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
1661
|
-
paths:
|
|
1247
|
+
paths: TRANSFORM_PATHS_6
|
|
1662
1248
|
}
|
|
1663
1249
|
]);
|
|
1664
1250
|
const metadata = {
|
|
@@ -1699,11 +1285,7 @@ function listAddOnGroupsByServiceId(payload) {
|
|
|
1699
1285
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1700
1286
|
{
|
|
1701
1287
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1702
|
-
paths:
|
|
1703
|
-
{
|
|
1704
|
-
path: "addOnGroupsDetails.addOns.mainMedia.image.urlExpirationDate"
|
|
1705
|
-
}
|
|
1706
|
-
]
|
|
1288
|
+
paths: TRANSFORM_PATHS_17
|
|
1707
1289
|
}
|
|
1708
1290
|
])
|
|
1709
1291
|
};
|