@wix/auto_sdk_metro_products 1.0.25 → 1.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.js +259 -480
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +259 -480
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +151 -342
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +259 -480
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +259 -480
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +151 -342
- package/build/es/meta.mjs.map +1 -1
- package/package.json +4 -4
package/build/es/index.mjs
CHANGED
|
@@ -15,6 +15,132 @@ 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: "product.createdDate" },
|
|
20
|
+
{ path: "product.modifiedDate" },
|
|
21
|
+
{ path: "product.image.urlExpirationDate" },
|
|
22
|
+
{ path: "product.document.urlExpirationDate" },
|
|
23
|
+
{ path: "product.document.thumbnail.urlExpirationDate" },
|
|
24
|
+
{ path: "product.video.urlExpirationDate" },
|
|
25
|
+
{ path: "product.video.resolutions.urlExpirationDate" },
|
|
26
|
+
{ path: "product.video.resolutions.poster.urlExpirationDate" },
|
|
27
|
+
{ path: "product.video.posters.urlExpirationDate" },
|
|
28
|
+
{ path: "product.audio.urlExpirationDate" },
|
|
29
|
+
{ path: "product.variants.image.urlExpirationDate" },
|
|
30
|
+
{ path: "product.mainVariant.image.urlExpirationDate" }
|
|
31
|
+
];
|
|
32
|
+
var TRANSFORM_PATHS_1 = [
|
|
33
|
+
{ path: "product.image.focalPoint.x" },
|
|
34
|
+
{ path: "product.image.focalPoint.y" },
|
|
35
|
+
{ path: "product.document.thumbnail.focalPoint.x" },
|
|
36
|
+
{ path: "product.document.thumbnail.focalPoint.y" },
|
|
37
|
+
{ path: "product.video.resolutions.poster.focalPoint.x" },
|
|
38
|
+
{ path: "product.video.resolutions.poster.focalPoint.y" },
|
|
39
|
+
{ path: "product.video.posters.focalPoint.x" },
|
|
40
|
+
{ path: "product.video.posters.focalPoint.y" },
|
|
41
|
+
{ path: "product.variants.image.focalPoint.x" },
|
|
42
|
+
{ path: "product.variants.image.focalPoint.y" },
|
|
43
|
+
{ path: "product.mainVariant.image.focalPoint.x" },
|
|
44
|
+
{ path: "product.mainVariant.image.focalPoint.y" },
|
|
45
|
+
{ path: "product.address.geocode.latitude" },
|
|
46
|
+
{ path: "product.address.geocode.longitude" }
|
|
47
|
+
];
|
|
48
|
+
var TRANSFORM_PATHS_2 = [{ path: "mask" }];
|
|
49
|
+
var TRANSFORM_PATHS_3 = [
|
|
50
|
+
{ path: "products.createdDate" },
|
|
51
|
+
{ path: "products.modifiedDate" },
|
|
52
|
+
{ path: "products.image.urlExpirationDate" },
|
|
53
|
+
{ path: "products.document.urlExpirationDate" },
|
|
54
|
+
{ path: "products.document.thumbnail.urlExpirationDate" },
|
|
55
|
+
{ path: "products.video.urlExpirationDate" },
|
|
56
|
+
{ path: "products.video.resolutions.urlExpirationDate" },
|
|
57
|
+
{ path: "products.video.resolutions.poster.urlExpirationDate" },
|
|
58
|
+
{ path: "products.video.posters.urlExpirationDate" },
|
|
59
|
+
{ path: "products.audio.urlExpirationDate" },
|
|
60
|
+
{ path: "products.variants.image.urlExpirationDate" },
|
|
61
|
+
{ path: "products.mainVariant.image.urlExpirationDate" }
|
|
62
|
+
];
|
|
63
|
+
var TRANSFORM_PATHS_4 = [
|
|
64
|
+
{ path: "products.image.focalPoint.x" },
|
|
65
|
+
{ path: "products.image.focalPoint.y" },
|
|
66
|
+
{ path: "products.document.thumbnail.focalPoint.x" },
|
|
67
|
+
{ path: "products.document.thumbnail.focalPoint.y" },
|
|
68
|
+
{ path: "products.video.resolutions.poster.focalPoint.x" },
|
|
69
|
+
{ path: "products.video.resolutions.poster.focalPoint.y" },
|
|
70
|
+
{ path: "products.video.posters.focalPoint.x" },
|
|
71
|
+
{ path: "products.video.posters.focalPoint.y" },
|
|
72
|
+
{ path: "products.variants.image.focalPoint.x" },
|
|
73
|
+
{ path: "products.variants.image.focalPoint.y" },
|
|
74
|
+
{ path: "products.mainVariant.image.focalPoint.x" },
|
|
75
|
+
{ path: "products.mainVariant.image.focalPoint.y" },
|
|
76
|
+
{ path: "products.address.geocode.latitude" },
|
|
77
|
+
{ path: "products.address.geocode.longitude" }
|
|
78
|
+
];
|
|
79
|
+
var TRANSFORM_PATHS_5 = [
|
|
80
|
+
{ path: "query.sort.origin.latitude" },
|
|
81
|
+
{ path: "query.sort.origin.longitude" }
|
|
82
|
+
];
|
|
83
|
+
var TRANSFORM_PATHS_6 = [
|
|
84
|
+
{ path: "results.item.createdDate" },
|
|
85
|
+
{ path: "results.item.modifiedDate" },
|
|
86
|
+
{ path: "results.item.image.urlExpirationDate" },
|
|
87
|
+
{ path: "results.item.document.urlExpirationDate" },
|
|
88
|
+
{ path: "results.item.document.thumbnail.urlExpirationDate" },
|
|
89
|
+
{ path: "results.item.video.urlExpirationDate" },
|
|
90
|
+
{ path: "results.item.video.resolutions.urlExpirationDate" },
|
|
91
|
+
{ path: "results.item.video.resolutions.poster.urlExpirationDate" },
|
|
92
|
+
{ path: "results.item.video.posters.urlExpirationDate" },
|
|
93
|
+
{ path: "results.item.audio.urlExpirationDate" },
|
|
94
|
+
{ path: "results.item.variants.image.urlExpirationDate" },
|
|
95
|
+
{ path: "results.item.mainVariant.image.urlExpirationDate" }
|
|
96
|
+
];
|
|
97
|
+
var TRANSFORM_PATHS_7 = [
|
|
98
|
+
{ path: "results.item.image.focalPoint.x" },
|
|
99
|
+
{ path: "results.item.image.focalPoint.y" },
|
|
100
|
+
{ path: "results.item.document.thumbnail.focalPoint.x" },
|
|
101
|
+
{ path: "results.item.document.thumbnail.focalPoint.y" },
|
|
102
|
+
{ path: "results.item.video.resolutions.poster.focalPoint.x" },
|
|
103
|
+
{ path: "results.item.video.resolutions.poster.focalPoint.y" },
|
|
104
|
+
{ path: "results.item.video.posters.focalPoint.x" },
|
|
105
|
+
{ path: "results.item.video.posters.focalPoint.y" },
|
|
106
|
+
{ path: "results.item.variants.image.focalPoint.x" },
|
|
107
|
+
{ path: "results.item.variants.image.focalPoint.y" },
|
|
108
|
+
{ path: "results.item.mainVariant.image.focalPoint.x" },
|
|
109
|
+
{ path: "results.item.mainVariant.image.focalPoint.y" },
|
|
110
|
+
{ path: "results.item.address.geocode.latitude" },
|
|
111
|
+
{ path: "results.item.address.geocode.longitude" }
|
|
112
|
+
];
|
|
113
|
+
var TRANSFORM_PATHS_8 = [{ path: "products.fieldMask" }];
|
|
114
|
+
var TRANSFORM_PATHS_9 = [
|
|
115
|
+
{ path: "products.product.createdDate" },
|
|
116
|
+
{ path: "products.product.modifiedDate" },
|
|
117
|
+
{ path: "products.product.image.urlExpirationDate" },
|
|
118
|
+
{ path: "products.product.document.urlExpirationDate" },
|
|
119
|
+
{ path: "products.product.document.thumbnail.urlExpirationDate" },
|
|
120
|
+
{ path: "products.product.video.urlExpirationDate" },
|
|
121
|
+
{ path: "products.product.video.resolutions.urlExpirationDate" },
|
|
122
|
+
{ path: "products.product.video.resolutions.poster.urlExpirationDate" },
|
|
123
|
+
{ path: "products.product.video.posters.urlExpirationDate" },
|
|
124
|
+
{ path: "products.product.audio.urlExpirationDate" },
|
|
125
|
+
{ path: "products.product.variants.image.urlExpirationDate" },
|
|
126
|
+
{ path: "products.product.mainVariant.image.urlExpirationDate" }
|
|
127
|
+
];
|
|
128
|
+
var TRANSFORM_PATHS_10 = [
|
|
129
|
+
{ path: "products.product.image.focalPoint.x" },
|
|
130
|
+
{ path: "products.product.image.focalPoint.y" },
|
|
131
|
+
{ path: "products.product.document.thumbnail.focalPoint.x" },
|
|
132
|
+
{ path: "products.product.document.thumbnail.focalPoint.y" },
|
|
133
|
+
{ path: "products.product.video.resolutions.poster.focalPoint.x" },
|
|
134
|
+
{ path: "products.product.video.resolutions.poster.focalPoint.y" },
|
|
135
|
+
{ path: "products.product.video.posters.focalPoint.x" },
|
|
136
|
+
{ path: "products.product.video.posters.focalPoint.y" },
|
|
137
|
+
{ path: "products.product.variants.image.focalPoint.x" },
|
|
138
|
+
{ path: "products.product.variants.image.focalPoint.y" },
|
|
139
|
+
{ path: "products.product.mainVariant.image.focalPoint.x" },
|
|
140
|
+
{ path: "products.product.mainVariant.image.focalPoint.y" },
|
|
141
|
+
{ path: "products.product.address.geocode.latitude" },
|
|
142
|
+
{ path: "products.product.address.geocode.longitude" }
|
|
143
|
+
];
|
|
18
144
|
function resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl(opts) {
|
|
19
145
|
const domainToMappings = {
|
|
20
146
|
"apps._base_domain_": [
|
|
@@ -126,39 +252,11 @@ function createProduct(payload) {
|
|
|
126
252
|
const serializedData = transformPaths(payload, [
|
|
127
253
|
{
|
|
128
254
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
129
|
-
paths:
|
|
130
|
-
{ path: "product.createdDate" },
|
|
131
|
-
{ path: "product.modifiedDate" },
|
|
132
|
-
{ path: "product.image.urlExpirationDate" },
|
|
133
|
-
{ path: "product.document.urlExpirationDate" },
|
|
134
|
-
{ path: "product.document.thumbnail.urlExpirationDate" },
|
|
135
|
-
{ path: "product.video.urlExpirationDate" },
|
|
136
|
-
{ path: "product.video.resolutions.urlExpirationDate" },
|
|
137
|
-
{ path: "product.video.resolutions.poster.urlExpirationDate" },
|
|
138
|
-
{ path: "product.video.posters.urlExpirationDate" },
|
|
139
|
-
{ path: "product.audio.urlExpirationDate" },
|
|
140
|
-
{ path: "product.variants.image.urlExpirationDate" },
|
|
141
|
-
{ path: "product.mainVariant.image.urlExpirationDate" }
|
|
142
|
-
]
|
|
255
|
+
paths: TRANSFORM_PATHS_0
|
|
143
256
|
},
|
|
144
257
|
{
|
|
145
258
|
transformFn: transformSDKFloatToRESTFloat,
|
|
146
|
-
paths:
|
|
147
|
-
{ path: "product.image.focalPoint.x" },
|
|
148
|
-
{ path: "product.image.focalPoint.y" },
|
|
149
|
-
{ path: "product.document.thumbnail.focalPoint.x" },
|
|
150
|
-
{ path: "product.document.thumbnail.focalPoint.y" },
|
|
151
|
-
{ path: "product.video.resolutions.poster.focalPoint.x" },
|
|
152
|
-
{ path: "product.video.resolutions.poster.focalPoint.y" },
|
|
153
|
-
{ path: "product.video.posters.focalPoint.x" },
|
|
154
|
-
{ path: "product.video.posters.focalPoint.y" },
|
|
155
|
-
{ path: "product.variants.image.focalPoint.x" },
|
|
156
|
-
{ path: "product.variants.image.focalPoint.y" },
|
|
157
|
-
{ path: "product.mainVariant.image.focalPoint.x" },
|
|
158
|
-
{ path: "product.mainVariant.image.focalPoint.y" },
|
|
159
|
-
{ path: "product.address.geocode.latitude" },
|
|
160
|
-
{ path: "product.address.geocode.longitude" }
|
|
161
|
-
]
|
|
259
|
+
paths: TRANSFORM_PATHS_1
|
|
162
260
|
}
|
|
163
261
|
]);
|
|
164
262
|
const metadata = {
|
|
@@ -178,39 +276,11 @@ function createProduct(payload) {
|
|
|
178
276
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
179
277
|
{
|
|
180
278
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
181
|
-
paths:
|
|
182
|
-
{ path: "product.createdDate" },
|
|
183
|
-
{ path: "product.modifiedDate" },
|
|
184
|
-
{ path: "product.image.urlExpirationDate" },
|
|
185
|
-
{ path: "product.document.urlExpirationDate" },
|
|
186
|
-
{ path: "product.document.thumbnail.urlExpirationDate" },
|
|
187
|
-
{ path: "product.video.urlExpirationDate" },
|
|
188
|
-
{ path: "product.video.resolutions.urlExpirationDate" },
|
|
189
|
-
{ path: "product.video.resolutions.poster.urlExpirationDate" },
|
|
190
|
-
{ path: "product.video.posters.urlExpirationDate" },
|
|
191
|
-
{ path: "product.audio.urlExpirationDate" },
|
|
192
|
-
{ path: "product.variants.image.urlExpirationDate" },
|
|
193
|
-
{ path: "product.mainVariant.image.urlExpirationDate" }
|
|
194
|
-
]
|
|
279
|
+
paths: TRANSFORM_PATHS_0
|
|
195
280
|
},
|
|
196
281
|
{
|
|
197
282
|
transformFn: transformRESTFloatToSDKFloat,
|
|
198
|
-
paths:
|
|
199
|
-
{ path: "product.image.focalPoint.x" },
|
|
200
|
-
{ path: "product.image.focalPoint.y" },
|
|
201
|
-
{ path: "product.document.thumbnail.focalPoint.x" },
|
|
202
|
-
{ path: "product.document.thumbnail.focalPoint.y" },
|
|
203
|
-
{ path: "product.video.resolutions.poster.focalPoint.x" },
|
|
204
|
-
{ path: "product.video.resolutions.poster.focalPoint.y" },
|
|
205
|
-
{ path: "product.video.posters.focalPoint.x" },
|
|
206
|
-
{ path: "product.video.posters.focalPoint.y" },
|
|
207
|
-
{ path: "product.variants.image.focalPoint.x" },
|
|
208
|
-
{ path: "product.variants.image.focalPoint.y" },
|
|
209
|
-
{ path: "product.mainVariant.image.focalPoint.x" },
|
|
210
|
-
{ path: "product.mainVariant.image.focalPoint.y" },
|
|
211
|
-
{ path: "product.address.geocode.latitude" },
|
|
212
|
-
{ path: "product.address.geocode.longitude" }
|
|
213
|
-
]
|
|
283
|
+
paths: TRANSFORM_PATHS_1
|
|
214
284
|
}
|
|
215
285
|
])
|
|
216
286
|
};
|
|
@@ -244,43 +314,15 @@ function updateProduct(payload) {
|
|
|
244
314
|
const serializedData = transformPaths(payload, [
|
|
245
315
|
{
|
|
246
316
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
247
|
-
paths:
|
|
317
|
+
paths: TRANSFORM_PATHS_2
|
|
248
318
|
},
|
|
249
319
|
{
|
|
250
320
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
251
|
-
paths:
|
|
252
|
-
{ path: "product.createdDate" },
|
|
253
|
-
{ path: "product.modifiedDate" },
|
|
254
|
-
{ path: "product.image.urlExpirationDate" },
|
|
255
|
-
{ path: "product.document.urlExpirationDate" },
|
|
256
|
-
{ path: "product.document.thumbnail.urlExpirationDate" },
|
|
257
|
-
{ path: "product.video.urlExpirationDate" },
|
|
258
|
-
{ path: "product.video.resolutions.urlExpirationDate" },
|
|
259
|
-
{ path: "product.video.resolutions.poster.urlExpirationDate" },
|
|
260
|
-
{ path: "product.video.posters.urlExpirationDate" },
|
|
261
|
-
{ path: "product.audio.urlExpirationDate" },
|
|
262
|
-
{ path: "product.variants.image.urlExpirationDate" },
|
|
263
|
-
{ path: "product.mainVariant.image.urlExpirationDate" }
|
|
264
|
-
]
|
|
321
|
+
paths: TRANSFORM_PATHS_0
|
|
265
322
|
},
|
|
266
323
|
{
|
|
267
324
|
transformFn: transformSDKFloatToRESTFloat,
|
|
268
|
-
paths:
|
|
269
|
-
{ path: "product.image.focalPoint.x" },
|
|
270
|
-
{ path: "product.image.focalPoint.y" },
|
|
271
|
-
{ path: "product.document.thumbnail.focalPoint.x" },
|
|
272
|
-
{ path: "product.document.thumbnail.focalPoint.y" },
|
|
273
|
-
{ path: "product.video.resolutions.poster.focalPoint.x" },
|
|
274
|
-
{ path: "product.video.resolutions.poster.focalPoint.y" },
|
|
275
|
-
{ path: "product.video.posters.focalPoint.x" },
|
|
276
|
-
{ path: "product.video.posters.focalPoint.y" },
|
|
277
|
-
{ path: "product.variants.image.focalPoint.x" },
|
|
278
|
-
{ path: "product.variants.image.focalPoint.y" },
|
|
279
|
-
{ path: "product.mainVariant.image.focalPoint.x" },
|
|
280
|
-
{ path: "product.mainVariant.image.focalPoint.y" },
|
|
281
|
-
{ path: "product.address.geocode.latitude" },
|
|
282
|
-
{ path: "product.address.geocode.longitude" }
|
|
283
|
-
]
|
|
325
|
+
paths: TRANSFORM_PATHS_1
|
|
284
326
|
}
|
|
285
327
|
]);
|
|
286
328
|
const metadata = {
|
|
@@ -300,39 +342,11 @@ function updateProduct(payload) {
|
|
|
300
342
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
301
343
|
{
|
|
302
344
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
303
|
-
paths:
|
|
304
|
-
{ path: "product.createdDate" },
|
|
305
|
-
{ path: "product.modifiedDate" },
|
|
306
|
-
{ path: "product.image.urlExpirationDate" },
|
|
307
|
-
{ path: "product.document.urlExpirationDate" },
|
|
308
|
-
{ path: "product.document.thumbnail.urlExpirationDate" },
|
|
309
|
-
{ path: "product.video.urlExpirationDate" },
|
|
310
|
-
{ path: "product.video.resolutions.urlExpirationDate" },
|
|
311
|
-
{ path: "product.video.resolutions.poster.urlExpirationDate" },
|
|
312
|
-
{ path: "product.video.posters.urlExpirationDate" },
|
|
313
|
-
{ path: "product.audio.urlExpirationDate" },
|
|
314
|
-
{ path: "product.variants.image.urlExpirationDate" },
|
|
315
|
-
{ path: "product.mainVariant.image.urlExpirationDate" }
|
|
316
|
-
]
|
|
345
|
+
paths: TRANSFORM_PATHS_0
|
|
317
346
|
},
|
|
318
347
|
{
|
|
319
348
|
transformFn: transformRESTFloatToSDKFloat,
|
|
320
|
-
paths:
|
|
321
|
-
{ path: "product.image.focalPoint.x" },
|
|
322
|
-
{ path: "product.image.focalPoint.y" },
|
|
323
|
-
{ path: "product.document.thumbnail.focalPoint.x" },
|
|
324
|
-
{ path: "product.document.thumbnail.focalPoint.y" },
|
|
325
|
-
{ path: "product.video.resolutions.poster.focalPoint.x" },
|
|
326
|
-
{ path: "product.video.resolutions.poster.focalPoint.y" },
|
|
327
|
-
{ path: "product.video.posters.focalPoint.x" },
|
|
328
|
-
{ path: "product.video.posters.focalPoint.y" },
|
|
329
|
-
{ path: "product.variants.image.focalPoint.x" },
|
|
330
|
-
{ path: "product.variants.image.focalPoint.y" },
|
|
331
|
-
{ path: "product.mainVariant.image.focalPoint.x" },
|
|
332
|
-
{ path: "product.mainVariant.image.focalPoint.y" },
|
|
333
|
-
{ path: "product.address.geocode.latitude" },
|
|
334
|
-
{ path: "product.address.geocode.longitude" }
|
|
335
|
-
]
|
|
349
|
+
paths: TRANSFORM_PATHS_1
|
|
336
350
|
}
|
|
337
351
|
])
|
|
338
352
|
};
|
|
@@ -359,39 +373,11 @@ function getProduct(payload) {
|
|
|
359
373
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
360
374
|
{
|
|
361
375
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
362
|
-
paths:
|
|
363
|
-
{ path: "product.createdDate" },
|
|
364
|
-
{ path: "product.modifiedDate" },
|
|
365
|
-
{ path: "product.image.urlExpirationDate" },
|
|
366
|
-
{ path: "product.document.urlExpirationDate" },
|
|
367
|
-
{ path: "product.document.thumbnail.urlExpirationDate" },
|
|
368
|
-
{ path: "product.video.urlExpirationDate" },
|
|
369
|
-
{ path: "product.video.resolutions.urlExpirationDate" },
|
|
370
|
-
{ path: "product.video.resolutions.poster.urlExpirationDate" },
|
|
371
|
-
{ path: "product.video.posters.urlExpirationDate" },
|
|
372
|
-
{ path: "product.audio.urlExpirationDate" },
|
|
373
|
-
{ path: "product.variants.image.urlExpirationDate" },
|
|
374
|
-
{ path: "product.mainVariant.image.urlExpirationDate" }
|
|
375
|
-
]
|
|
376
|
+
paths: TRANSFORM_PATHS_0
|
|
376
377
|
},
|
|
377
378
|
{
|
|
378
379
|
transformFn: transformRESTFloatToSDKFloat,
|
|
379
|
-
paths:
|
|
380
|
-
{ path: "product.image.focalPoint.x" },
|
|
381
|
-
{ path: "product.image.focalPoint.y" },
|
|
382
|
-
{ path: "product.document.thumbnail.focalPoint.x" },
|
|
383
|
-
{ path: "product.document.thumbnail.focalPoint.y" },
|
|
384
|
-
{ path: "product.video.resolutions.poster.focalPoint.x" },
|
|
385
|
-
{ path: "product.video.resolutions.poster.focalPoint.y" },
|
|
386
|
-
{ path: "product.video.posters.focalPoint.x" },
|
|
387
|
-
{ path: "product.video.posters.focalPoint.y" },
|
|
388
|
-
{ path: "product.variants.image.focalPoint.x" },
|
|
389
|
-
{ path: "product.variants.image.focalPoint.y" },
|
|
390
|
-
{ path: "product.mainVariant.image.focalPoint.x" },
|
|
391
|
-
{ path: "product.mainVariant.image.focalPoint.y" },
|
|
392
|
-
{ path: "product.address.geocode.latitude" },
|
|
393
|
-
{ path: "product.address.geocode.longitude" }
|
|
394
|
-
]
|
|
380
|
+
paths: TRANSFORM_PATHS_1
|
|
395
381
|
}
|
|
396
382
|
])
|
|
397
383
|
};
|
|
@@ -439,39 +425,11 @@ function getProductsStartWith(payload) {
|
|
|
439
425
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
440
426
|
{
|
|
441
427
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
442
|
-
paths:
|
|
443
|
-
{ path: "products.createdDate" },
|
|
444
|
-
{ path: "products.modifiedDate" },
|
|
445
|
-
{ path: "products.image.urlExpirationDate" },
|
|
446
|
-
{ path: "products.document.urlExpirationDate" },
|
|
447
|
-
{ path: "products.document.thumbnail.urlExpirationDate" },
|
|
448
|
-
{ path: "products.video.urlExpirationDate" },
|
|
449
|
-
{ path: "products.video.resolutions.urlExpirationDate" },
|
|
450
|
-
{ path: "products.video.resolutions.poster.urlExpirationDate" },
|
|
451
|
-
{ path: "products.video.posters.urlExpirationDate" },
|
|
452
|
-
{ path: "products.audio.urlExpirationDate" },
|
|
453
|
-
{ path: "products.variants.image.urlExpirationDate" },
|
|
454
|
-
{ path: "products.mainVariant.image.urlExpirationDate" }
|
|
455
|
-
]
|
|
428
|
+
paths: TRANSFORM_PATHS_3
|
|
456
429
|
},
|
|
457
430
|
{
|
|
458
431
|
transformFn: transformRESTFloatToSDKFloat,
|
|
459
|
-
paths:
|
|
460
|
-
{ path: "products.image.focalPoint.x" },
|
|
461
|
-
{ path: "products.image.focalPoint.y" },
|
|
462
|
-
{ path: "products.document.thumbnail.focalPoint.x" },
|
|
463
|
-
{ path: "products.document.thumbnail.focalPoint.y" },
|
|
464
|
-
{ path: "products.video.resolutions.poster.focalPoint.x" },
|
|
465
|
-
{ path: "products.video.resolutions.poster.focalPoint.y" },
|
|
466
|
-
{ path: "products.video.posters.focalPoint.x" },
|
|
467
|
-
{ path: "products.video.posters.focalPoint.y" },
|
|
468
|
-
{ path: "products.variants.image.focalPoint.x" },
|
|
469
|
-
{ path: "products.variants.image.focalPoint.y" },
|
|
470
|
-
{ path: "products.mainVariant.image.focalPoint.x" },
|
|
471
|
-
{ path: "products.mainVariant.image.focalPoint.y" },
|
|
472
|
-
{ path: "products.address.geocode.latitude" },
|
|
473
|
-
{ path: "products.address.geocode.longitude" }
|
|
474
|
-
]
|
|
432
|
+
paths: TRANSFORM_PATHS_4
|
|
475
433
|
}
|
|
476
434
|
])
|
|
477
435
|
};
|
|
@@ -484,10 +442,7 @@ function queryProducts(payload) {
|
|
|
484
442
|
const serializedData = transformPaths(payload, [
|
|
485
443
|
{
|
|
486
444
|
transformFn: transformSDKFloatToRESTFloat,
|
|
487
|
-
paths:
|
|
488
|
-
{ path: "query.sort.origin.latitude" },
|
|
489
|
-
{ path: "query.sort.origin.longitude" }
|
|
490
|
-
]
|
|
445
|
+
paths: TRANSFORM_PATHS_5
|
|
491
446
|
}
|
|
492
447
|
]);
|
|
493
448
|
const metadata = {
|
|
@@ -507,39 +462,11 @@ function queryProducts(payload) {
|
|
|
507
462
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
508
463
|
{
|
|
509
464
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
510
|
-
paths:
|
|
511
|
-
{ path: "products.createdDate" },
|
|
512
|
-
{ path: "products.modifiedDate" },
|
|
513
|
-
{ path: "products.image.urlExpirationDate" },
|
|
514
|
-
{ path: "products.document.urlExpirationDate" },
|
|
515
|
-
{ path: "products.document.thumbnail.urlExpirationDate" },
|
|
516
|
-
{ path: "products.video.urlExpirationDate" },
|
|
517
|
-
{ path: "products.video.resolutions.urlExpirationDate" },
|
|
518
|
-
{ path: "products.video.resolutions.poster.urlExpirationDate" },
|
|
519
|
-
{ path: "products.video.posters.urlExpirationDate" },
|
|
520
|
-
{ path: "products.audio.urlExpirationDate" },
|
|
521
|
-
{ path: "products.variants.image.urlExpirationDate" },
|
|
522
|
-
{ path: "products.mainVariant.image.urlExpirationDate" }
|
|
523
|
-
]
|
|
465
|
+
paths: TRANSFORM_PATHS_3
|
|
524
466
|
},
|
|
525
467
|
{
|
|
526
468
|
transformFn: transformRESTFloatToSDKFloat,
|
|
527
|
-
paths:
|
|
528
|
-
{ path: "products.image.focalPoint.x" },
|
|
529
|
-
{ path: "products.image.focalPoint.y" },
|
|
530
|
-
{ path: "products.document.thumbnail.focalPoint.x" },
|
|
531
|
-
{ path: "products.document.thumbnail.focalPoint.y" },
|
|
532
|
-
{ path: "products.video.resolutions.poster.focalPoint.x" },
|
|
533
|
-
{ path: "products.video.resolutions.poster.focalPoint.y" },
|
|
534
|
-
{ path: "products.video.posters.focalPoint.x" },
|
|
535
|
-
{ path: "products.video.posters.focalPoint.y" },
|
|
536
|
-
{ path: "products.variants.image.focalPoint.x" },
|
|
537
|
-
{ path: "products.variants.image.focalPoint.y" },
|
|
538
|
-
{ path: "products.mainVariant.image.focalPoint.x" },
|
|
539
|
-
{ path: "products.mainVariant.image.focalPoint.y" },
|
|
540
|
-
{ path: "products.address.geocode.latitude" },
|
|
541
|
-
{ path: "products.address.geocode.longitude" }
|
|
542
|
-
]
|
|
469
|
+
paths: TRANSFORM_PATHS_4
|
|
543
470
|
}
|
|
544
471
|
]),
|
|
545
472
|
fallback: [
|
|
@@ -561,39 +488,11 @@ function bulkCreateProducts(payload) {
|
|
|
561
488
|
const serializedData = transformPaths(payload, [
|
|
562
489
|
{
|
|
563
490
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
564
|
-
paths:
|
|
565
|
-
{ path: "products.createdDate" },
|
|
566
|
-
{ path: "products.modifiedDate" },
|
|
567
|
-
{ path: "products.image.urlExpirationDate" },
|
|
568
|
-
{ path: "products.document.urlExpirationDate" },
|
|
569
|
-
{ path: "products.document.thumbnail.urlExpirationDate" },
|
|
570
|
-
{ path: "products.video.urlExpirationDate" },
|
|
571
|
-
{ path: "products.video.resolutions.urlExpirationDate" },
|
|
572
|
-
{ path: "products.video.resolutions.poster.urlExpirationDate" },
|
|
573
|
-
{ path: "products.video.posters.urlExpirationDate" },
|
|
574
|
-
{ path: "products.audio.urlExpirationDate" },
|
|
575
|
-
{ path: "products.variants.image.urlExpirationDate" },
|
|
576
|
-
{ path: "products.mainVariant.image.urlExpirationDate" }
|
|
577
|
-
]
|
|
491
|
+
paths: TRANSFORM_PATHS_3
|
|
578
492
|
},
|
|
579
493
|
{
|
|
580
494
|
transformFn: transformSDKFloatToRESTFloat,
|
|
581
|
-
paths:
|
|
582
|
-
{ path: "products.image.focalPoint.x" },
|
|
583
|
-
{ path: "products.image.focalPoint.y" },
|
|
584
|
-
{ path: "products.document.thumbnail.focalPoint.x" },
|
|
585
|
-
{ path: "products.document.thumbnail.focalPoint.y" },
|
|
586
|
-
{ path: "products.video.resolutions.poster.focalPoint.x" },
|
|
587
|
-
{ path: "products.video.resolutions.poster.focalPoint.y" },
|
|
588
|
-
{ path: "products.video.posters.focalPoint.x" },
|
|
589
|
-
{ path: "products.video.posters.focalPoint.y" },
|
|
590
|
-
{ path: "products.variants.image.focalPoint.x" },
|
|
591
|
-
{ path: "products.variants.image.focalPoint.y" },
|
|
592
|
-
{ path: "products.mainVariant.image.focalPoint.x" },
|
|
593
|
-
{ path: "products.mainVariant.image.focalPoint.y" },
|
|
594
|
-
{ path: "products.address.geocode.latitude" },
|
|
595
|
-
{ path: "products.address.geocode.longitude" }
|
|
596
|
-
]
|
|
495
|
+
paths: TRANSFORM_PATHS_4
|
|
597
496
|
}
|
|
598
497
|
]);
|
|
599
498
|
const metadata = {
|
|
@@ -613,41 +512,11 @@ function bulkCreateProducts(payload) {
|
|
|
613
512
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
614
513
|
{
|
|
615
514
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
616
|
-
paths:
|
|
617
|
-
{ path: "results.item.createdDate" },
|
|
618
|
-
{ path: "results.item.modifiedDate" },
|
|
619
|
-
{ path: "results.item.image.urlExpirationDate" },
|
|
620
|
-
{ path: "results.item.document.urlExpirationDate" },
|
|
621
|
-
{ path: "results.item.document.thumbnail.urlExpirationDate" },
|
|
622
|
-
{ path: "results.item.video.urlExpirationDate" },
|
|
623
|
-
{ path: "results.item.video.resolutions.urlExpirationDate" },
|
|
624
|
-
{
|
|
625
|
-
path: "results.item.video.resolutions.poster.urlExpirationDate"
|
|
626
|
-
},
|
|
627
|
-
{ path: "results.item.video.posters.urlExpirationDate" },
|
|
628
|
-
{ path: "results.item.audio.urlExpirationDate" },
|
|
629
|
-
{ path: "results.item.variants.image.urlExpirationDate" },
|
|
630
|
-
{ path: "results.item.mainVariant.image.urlExpirationDate" }
|
|
631
|
-
]
|
|
515
|
+
paths: TRANSFORM_PATHS_6
|
|
632
516
|
},
|
|
633
517
|
{
|
|
634
518
|
transformFn: transformRESTFloatToSDKFloat,
|
|
635
|
-
paths:
|
|
636
|
-
{ path: "results.item.image.focalPoint.x" },
|
|
637
|
-
{ path: "results.item.image.focalPoint.y" },
|
|
638
|
-
{ path: "results.item.document.thumbnail.focalPoint.x" },
|
|
639
|
-
{ path: "results.item.document.thumbnail.focalPoint.y" },
|
|
640
|
-
{ path: "results.item.video.resolutions.poster.focalPoint.x" },
|
|
641
|
-
{ path: "results.item.video.resolutions.poster.focalPoint.y" },
|
|
642
|
-
{ path: "results.item.video.posters.focalPoint.x" },
|
|
643
|
-
{ path: "results.item.video.posters.focalPoint.y" },
|
|
644
|
-
{ path: "results.item.variants.image.focalPoint.x" },
|
|
645
|
-
{ path: "results.item.variants.image.focalPoint.y" },
|
|
646
|
-
{ path: "results.item.mainVariant.image.focalPoint.x" },
|
|
647
|
-
{ path: "results.item.mainVariant.image.focalPoint.y" },
|
|
648
|
-
{ path: "results.item.address.geocode.latitude" },
|
|
649
|
-
{ path: "results.item.address.geocode.longitude" }
|
|
650
|
-
]
|
|
519
|
+
paths: TRANSFORM_PATHS_7
|
|
651
520
|
}
|
|
652
521
|
])
|
|
653
522
|
};
|
|
@@ -660,45 +529,15 @@ function bulkUpdateProducts(payload) {
|
|
|
660
529
|
const serializedData = transformPaths(payload, [
|
|
661
530
|
{
|
|
662
531
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
663
|
-
paths:
|
|
532
|
+
paths: TRANSFORM_PATHS_8
|
|
664
533
|
},
|
|
665
534
|
{
|
|
666
535
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
667
|
-
paths:
|
|
668
|
-
{ path: "products.product.createdDate" },
|
|
669
|
-
{ path: "products.product.modifiedDate" },
|
|
670
|
-
{ path: "products.product.image.urlExpirationDate" },
|
|
671
|
-
{ path: "products.product.document.urlExpirationDate" },
|
|
672
|
-
{ path: "products.product.document.thumbnail.urlExpirationDate" },
|
|
673
|
-
{ path: "products.product.video.urlExpirationDate" },
|
|
674
|
-
{ path: "products.product.video.resolutions.urlExpirationDate" },
|
|
675
|
-
{
|
|
676
|
-
path: "products.product.video.resolutions.poster.urlExpirationDate"
|
|
677
|
-
},
|
|
678
|
-
{ path: "products.product.video.posters.urlExpirationDate" },
|
|
679
|
-
{ path: "products.product.audio.urlExpirationDate" },
|
|
680
|
-
{ path: "products.product.variants.image.urlExpirationDate" },
|
|
681
|
-
{ path: "products.product.mainVariant.image.urlExpirationDate" }
|
|
682
|
-
]
|
|
536
|
+
paths: TRANSFORM_PATHS_9
|
|
683
537
|
},
|
|
684
538
|
{
|
|
685
539
|
transformFn: transformSDKFloatToRESTFloat,
|
|
686
|
-
paths:
|
|
687
|
-
{ path: "products.product.image.focalPoint.x" },
|
|
688
|
-
{ path: "products.product.image.focalPoint.y" },
|
|
689
|
-
{ path: "products.product.document.thumbnail.focalPoint.x" },
|
|
690
|
-
{ path: "products.product.document.thumbnail.focalPoint.y" },
|
|
691
|
-
{ path: "products.product.video.resolutions.poster.focalPoint.x" },
|
|
692
|
-
{ path: "products.product.video.resolutions.poster.focalPoint.y" },
|
|
693
|
-
{ path: "products.product.video.posters.focalPoint.x" },
|
|
694
|
-
{ path: "products.product.video.posters.focalPoint.y" },
|
|
695
|
-
{ path: "products.product.variants.image.focalPoint.x" },
|
|
696
|
-
{ path: "products.product.variants.image.focalPoint.y" },
|
|
697
|
-
{ path: "products.product.mainVariant.image.focalPoint.x" },
|
|
698
|
-
{ path: "products.product.mainVariant.image.focalPoint.y" },
|
|
699
|
-
{ path: "products.product.address.geocode.latitude" },
|
|
700
|
-
{ path: "products.product.address.geocode.longitude" }
|
|
701
|
-
]
|
|
540
|
+
paths: TRANSFORM_PATHS_10
|
|
702
541
|
}
|
|
703
542
|
]);
|
|
704
543
|
const metadata = {
|
|
@@ -718,41 +557,11 @@ function bulkUpdateProducts(payload) {
|
|
|
718
557
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
719
558
|
{
|
|
720
559
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
721
|
-
paths:
|
|
722
|
-
{ path: "results.item.createdDate" },
|
|
723
|
-
{ path: "results.item.modifiedDate" },
|
|
724
|
-
{ path: "results.item.image.urlExpirationDate" },
|
|
725
|
-
{ path: "results.item.document.urlExpirationDate" },
|
|
726
|
-
{ path: "results.item.document.thumbnail.urlExpirationDate" },
|
|
727
|
-
{ path: "results.item.video.urlExpirationDate" },
|
|
728
|
-
{ path: "results.item.video.resolutions.urlExpirationDate" },
|
|
729
|
-
{
|
|
730
|
-
path: "results.item.video.resolutions.poster.urlExpirationDate"
|
|
731
|
-
},
|
|
732
|
-
{ path: "results.item.video.posters.urlExpirationDate" },
|
|
733
|
-
{ path: "results.item.audio.urlExpirationDate" },
|
|
734
|
-
{ path: "results.item.variants.image.urlExpirationDate" },
|
|
735
|
-
{ path: "results.item.mainVariant.image.urlExpirationDate" }
|
|
736
|
-
]
|
|
560
|
+
paths: TRANSFORM_PATHS_6
|
|
737
561
|
},
|
|
738
562
|
{
|
|
739
563
|
transformFn: transformRESTFloatToSDKFloat,
|
|
740
|
-
paths:
|
|
741
|
-
{ path: "results.item.image.focalPoint.x" },
|
|
742
|
-
{ path: "results.item.image.focalPoint.y" },
|
|
743
|
-
{ path: "results.item.document.thumbnail.focalPoint.x" },
|
|
744
|
-
{ path: "results.item.document.thumbnail.focalPoint.y" },
|
|
745
|
-
{ path: "results.item.video.resolutions.poster.focalPoint.x" },
|
|
746
|
-
{ path: "results.item.video.resolutions.poster.focalPoint.y" },
|
|
747
|
-
{ path: "results.item.video.posters.focalPoint.x" },
|
|
748
|
-
{ path: "results.item.video.posters.focalPoint.y" },
|
|
749
|
-
{ path: "results.item.variants.image.focalPoint.x" },
|
|
750
|
-
{ path: "results.item.variants.image.focalPoint.y" },
|
|
751
|
-
{ path: "results.item.mainVariant.image.focalPoint.x" },
|
|
752
|
-
{ path: "results.item.mainVariant.image.focalPoint.y" },
|
|
753
|
-
{ path: "results.item.address.geocode.latitude" },
|
|
754
|
-
{ path: "results.item.address.geocode.longitude" }
|
|
755
|
-
]
|
|
564
|
+
paths: TRANSFORM_PATHS_7
|
|
756
565
|
}
|
|
757
566
|
])
|
|
758
567
|
};
|
|
@@ -795,6 +604,54 @@ import { transformSDKDocumentToRESTDocument } from "@wix/sdk-runtime/transformat
|
|
|
795
604
|
import { transformRESTDocumentToSDKDocument } from "@wix/sdk-runtime/transformations/document";
|
|
796
605
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
797
606
|
import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
|
|
607
|
+
var TRANSFORM_PATHS_02 = [
|
|
608
|
+
{ path: "product.image" },
|
|
609
|
+
{ path: "product.variants.image" },
|
|
610
|
+
{ path: "product.mainVariant.image" }
|
|
611
|
+
];
|
|
612
|
+
var TRANSFORM_PATHS_12 = [
|
|
613
|
+
{ path: "product.address" },
|
|
614
|
+
{ path: "product.customAddress" }
|
|
615
|
+
];
|
|
616
|
+
var TRANSFORM_PATHS_22 = [{ path: "product.document" }];
|
|
617
|
+
var TRANSFORM_PATHS_32 = [{ path: "product.video" }];
|
|
618
|
+
var TRANSFORM_PATHS_42 = [{ path: "product.audio" }];
|
|
619
|
+
var TRANSFORM_PATHS_52 = [
|
|
620
|
+
{ path: "products.image" },
|
|
621
|
+
{ path: "products.variants.image" },
|
|
622
|
+
{ path: "products.mainVariant.image" }
|
|
623
|
+
];
|
|
624
|
+
var TRANSFORM_PATHS_62 = [
|
|
625
|
+
{ path: "products.address" },
|
|
626
|
+
{ path: "products.customAddress" }
|
|
627
|
+
];
|
|
628
|
+
var TRANSFORM_PATHS_72 = [{ path: "products.document" }];
|
|
629
|
+
var TRANSFORM_PATHS_82 = [{ path: "products.video" }];
|
|
630
|
+
var TRANSFORM_PATHS_92 = [{ path: "products.audio" }];
|
|
631
|
+
var TRANSFORM_PATHS_102 = [
|
|
632
|
+
{ path: "results.item.image" },
|
|
633
|
+
{ path: "results.item.variants.image" },
|
|
634
|
+
{ path: "results.item.mainVariant.image" }
|
|
635
|
+
];
|
|
636
|
+
var TRANSFORM_PATHS_11 = [
|
|
637
|
+
{ path: "results.item.address" },
|
|
638
|
+
{ path: "results.item.customAddress" }
|
|
639
|
+
];
|
|
640
|
+
var TRANSFORM_PATHS_122 = [{ path: "results.item.document" }];
|
|
641
|
+
var TRANSFORM_PATHS_13 = [{ path: "results.item.video" }];
|
|
642
|
+
var TRANSFORM_PATHS_14 = [{ path: "results.item.audio" }];
|
|
643
|
+
var TRANSFORM_PATHS_15 = [
|
|
644
|
+
{ path: "products.product.image" },
|
|
645
|
+
{ path: "products.product.variants.image" },
|
|
646
|
+
{ path: "products.product.mainVariant.image" }
|
|
647
|
+
];
|
|
648
|
+
var TRANSFORM_PATHS_16 = [
|
|
649
|
+
{ path: "products.product.address" },
|
|
650
|
+
{ path: "products.product.customAddress" }
|
|
651
|
+
];
|
|
652
|
+
var TRANSFORM_PATHS_17 = [{ path: "products.product.document" }];
|
|
653
|
+
var TRANSFORM_PATHS_18 = [{ path: "products.product.video" }];
|
|
654
|
+
var TRANSFORM_PATHS_19 = [{ path: "products.product.audio" }];
|
|
798
655
|
var SubdivisionType = /* @__PURE__ */ ((SubdivisionType2) => {
|
|
799
656
|
SubdivisionType2["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
|
|
800
657
|
SubdivisionType2["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
|
|
@@ -829,27 +686,23 @@ async function createProduct2(options) {
|
|
|
829
686
|
[
|
|
830
687
|
{
|
|
831
688
|
transformFn: transformSDKImageToRESTImage,
|
|
832
|
-
paths:
|
|
833
|
-
{ path: "product.image" },
|
|
834
|
-
{ path: "product.variants.image" },
|
|
835
|
-
{ path: "product.mainVariant.image" }
|
|
836
|
-
]
|
|
689
|
+
paths: TRANSFORM_PATHS_02
|
|
837
690
|
},
|
|
838
691
|
{
|
|
839
692
|
transformFn: transformSDKAddressToRESTAddress,
|
|
840
|
-
paths:
|
|
693
|
+
paths: TRANSFORM_PATHS_12
|
|
841
694
|
},
|
|
842
695
|
{
|
|
843
696
|
transformFn: transformSDKDocumentToRESTDocument,
|
|
844
|
-
paths:
|
|
697
|
+
paths: TRANSFORM_PATHS_22
|
|
845
698
|
},
|
|
846
699
|
{
|
|
847
700
|
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
848
|
-
paths:
|
|
701
|
+
paths: TRANSFORM_PATHS_32
|
|
849
702
|
},
|
|
850
703
|
{
|
|
851
704
|
transformFn: transformSDKAudioToRESTAudio,
|
|
852
|
-
paths:
|
|
705
|
+
paths: TRANSFORM_PATHS_42
|
|
853
706
|
}
|
|
854
707
|
]
|
|
855
708
|
);
|
|
@@ -862,30 +715,23 @@ async function createProduct2(options) {
|
|
|
862
715
|
transformPaths2(result.data, [
|
|
863
716
|
{
|
|
864
717
|
transformFn: transformRESTImageToSDKImage,
|
|
865
|
-
paths:
|
|
866
|
-
{ path: "product.image" },
|
|
867
|
-
{ path: "product.variants.image" },
|
|
868
|
-
{ path: "product.mainVariant.image" }
|
|
869
|
-
]
|
|
718
|
+
paths: TRANSFORM_PATHS_02
|
|
870
719
|
},
|
|
871
720
|
{
|
|
872
721
|
transformFn: transformRESTAddressToSDKAddress,
|
|
873
|
-
paths:
|
|
874
|
-
{ path: "product.address" },
|
|
875
|
-
{ path: "product.customAddress" }
|
|
876
|
-
]
|
|
722
|
+
paths: TRANSFORM_PATHS_12
|
|
877
723
|
},
|
|
878
724
|
{
|
|
879
725
|
transformFn: transformRESTDocumentToSDKDocument,
|
|
880
|
-
paths:
|
|
726
|
+
paths: TRANSFORM_PATHS_22
|
|
881
727
|
},
|
|
882
728
|
{
|
|
883
729
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
884
|
-
paths:
|
|
730
|
+
paths: TRANSFORM_PATHS_32
|
|
885
731
|
},
|
|
886
732
|
{
|
|
887
733
|
transformFn: transformRESTAudioToSDKAudio,
|
|
888
|
-
paths:
|
|
734
|
+
paths: TRANSFORM_PATHS_42
|
|
889
735
|
}
|
|
890
736
|
])
|
|
891
737
|
)?.product;
|
|
@@ -938,27 +784,23 @@ async function updateProduct2(productId, options) {
|
|
|
938
784
|
[
|
|
939
785
|
{
|
|
940
786
|
transformFn: transformSDKImageToRESTImage,
|
|
941
|
-
paths:
|
|
942
|
-
{ path: "product.image" },
|
|
943
|
-
{ path: "product.variants.image" },
|
|
944
|
-
{ path: "product.mainVariant.image" }
|
|
945
|
-
]
|
|
787
|
+
paths: TRANSFORM_PATHS_02
|
|
946
788
|
},
|
|
947
789
|
{
|
|
948
790
|
transformFn: transformSDKAddressToRESTAddress,
|
|
949
|
-
paths:
|
|
791
|
+
paths: TRANSFORM_PATHS_12
|
|
950
792
|
},
|
|
951
793
|
{
|
|
952
794
|
transformFn: transformSDKDocumentToRESTDocument,
|
|
953
|
-
paths:
|
|
795
|
+
paths: TRANSFORM_PATHS_22
|
|
954
796
|
},
|
|
955
797
|
{
|
|
956
798
|
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
957
|
-
paths:
|
|
799
|
+
paths: TRANSFORM_PATHS_32
|
|
958
800
|
},
|
|
959
801
|
{
|
|
960
802
|
transformFn: transformSDKAudioToRESTAudio,
|
|
961
|
-
paths:
|
|
803
|
+
paths: TRANSFORM_PATHS_42
|
|
962
804
|
}
|
|
963
805
|
]
|
|
964
806
|
);
|
|
@@ -971,30 +813,23 @@ async function updateProduct2(productId, options) {
|
|
|
971
813
|
transformPaths2(result.data, [
|
|
972
814
|
{
|
|
973
815
|
transformFn: transformRESTImageToSDKImage,
|
|
974
|
-
paths:
|
|
975
|
-
{ path: "product.image" },
|
|
976
|
-
{ path: "product.variants.image" },
|
|
977
|
-
{ path: "product.mainVariant.image" }
|
|
978
|
-
]
|
|
816
|
+
paths: TRANSFORM_PATHS_02
|
|
979
817
|
},
|
|
980
818
|
{
|
|
981
819
|
transformFn: transformRESTAddressToSDKAddress,
|
|
982
|
-
paths:
|
|
983
|
-
{ path: "product.address" },
|
|
984
|
-
{ path: "product.customAddress" }
|
|
985
|
-
]
|
|
820
|
+
paths: TRANSFORM_PATHS_12
|
|
986
821
|
},
|
|
987
822
|
{
|
|
988
823
|
transformFn: transformRESTDocumentToSDKDocument,
|
|
989
|
-
paths:
|
|
824
|
+
paths: TRANSFORM_PATHS_22
|
|
990
825
|
},
|
|
991
826
|
{
|
|
992
827
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
993
|
-
paths:
|
|
828
|
+
paths: TRANSFORM_PATHS_32
|
|
994
829
|
},
|
|
995
830
|
{
|
|
996
831
|
transformFn: transformRESTAudioToSDKAudio,
|
|
997
|
-
paths:
|
|
832
|
+
paths: TRANSFORM_PATHS_42
|
|
998
833
|
}
|
|
999
834
|
])
|
|
1000
835
|
)?.product;
|
|
@@ -1031,30 +866,23 @@ async function getProduct2(productId, options) {
|
|
|
1031
866
|
transformPaths2(result.data, [
|
|
1032
867
|
{
|
|
1033
868
|
transformFn: transformRESTImageToSDKImage,
|
|
1034
|
-
paths:
|
|
1035
|
-
{ path: "product.image" },
|
|
1036
|
-
{ path: "product.variants.image" },
|
|
1037
|
-
{ path: "product.mainVariant.image" }
|
|
1038
|
-
]
|
|
869
|
+
paths: TRANSFORM_PATHS_02
|
|
1039
870
|
},
|
|
1040
871
|
{
|
|
1041
872
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1042
|
-
paths:
|
|
1043
|
-
{ path: "product.address" },
|
|
1044
|
-
{ path: "product.customAddress" }
|
|
1045
|
-
]
|
|
873
|
+
paths: TRANSFORM_PATHS_12
|
|
1046
874
|
},
|
|
1047
875
|
{
|
|
1048
876
|
transformFn: transformRESTDocumentToSDKDocument,
|
|
1049
|
-
paths:
|
|
877
|
+
paths: TRANSFORM_PATHS_22
|
|
1050
878
|
},
|
|
1051
879
|
{
|
|
1052
880
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
1053
|
-
paths:
|
|
881
|
+
paths: TRANSFORM_PATHS_32
|
|
1054
882
|
},
|
|
1055
883
|
{
|
|
1056
884
|
transformFn: transformRESTAudioToSDKAudio,
|
|
1057
|
-
paths:
|
|
885
|
+
paths: TRANSFORM_PATHS_42
|
|
1058
886
|
}
|
|
1059
887
|
])
|
|
1060
888
|
)?.product;
|
|
@@ -1120,30 +948,23 @@ async function getProductsStartWith2(title, options) {
|
|
|
1120
948
|
transformPaths2(result.data, [
|
|
1121
949
|
{
|
|
1122
950
|
transformFn: transformRESTImageToSDKImage,
|
|
1123
|
-
paths:
|
|
1124
|
-
{ path: "products.image" },
|
|
1125
|
-
{ path: "products.variants.image" },
|
|
1126
|
-
{ path: "products.mainVariant.image" }
|
|
1127
|
-
]
|
|
951
|
+
paths: TRANSFORM_PATHS_52
|
|
1128
952
|
},
|
|
1129
953
|
{
|
|
1130
954
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1131
|
-
paths:
|
|
1132
|
-
{ path: "products.address" },
|
|
1133
|
-
{ path: "products.customAddress" }
|
|
1134
|
-
]
|
|
955
|
+
paths: TRANSFORM_PATHS_62
|
|
1135
956
|
},
|
|
1136
957
|
{
|
|
1137
958
|
transformFn: transformRESTDocumentToSDKDocument,
|
|
1138
|
-
paths:
|
|
959
|
+
paths: TRANSFORM_PATHS_72
|
|
1139
960
|
},
|
|
1140
961
|
{
|
|
1141
962
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
1142
|
-
paths:
|
|
963
|
+
paths: TRANSFORM_PATHS_82
|
|
1143
964
|
},
|
|
1144
965
|
{
|
|
1145
966
|
transformFn: transformRESTAudioToSDKAudio,
|
|
1146
|
-
paths:
|
|
967
|
+
paths: TRANSFORM_PATHS_92
|
|
1147
968
|
}
|
|
1148
969
|
])
|
|
1149
970
|
);
|
|
@@ -1194,30 +1015,23 @@ function queryProducts2(options) {
|
|
|
1194
1015
|
transformPaths2(data, [
|
|
1195
1016
|
{
|
|
1196
1017
|
transformFn: transformRESTImageToSDKImage,
|
|
1197
|
-
paths:
|
|
1198
|
-
{ path: "products.image" },
|
|
1199
|
-
{ path: "products.variants.image" },
|
|
1200
|
-
{ path: "products.mainVariant.image" }
|
|
1201
|
-
]
|
|
1018
|
+
paths: TRANSFORM_PATHS_52
|
|
1202
1019
|
},
|
|
1203
1020
|
{
|
|
1204
1021
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1205
|
-
paths:
|
|
1206
|
-
{ path: "products.address" },
|
|
1207
|
-
{ path: "products.customAddress" }
|
|
1208
|
-
]
|
|
1022
|
+
paths: TRANSFORM_PATHS_62
|
|
1209
1023
|
},
|
|
1210
1024
|
{
|
|
1211
1025
|
transformFn: transformRESTDocumentToSDKDocument,
|
|
1212
|
-
paths:
|
|
1026
|
+
paths: TRANSFORM_PATHS_72
|
|
1213
1027
|
},
|
|
1214
1028
|
{
|
|
1215
1029
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
1216
|
-
paths:
|
|
1030
|
+
paths: TRANSFORM_PATHS_82
|
|
1217
1031
|
},
|
|
1218
1032
|
{
|
|
1219
1033
|
transformFn: transformRESTAudioToSDKAudio,
|
|
1220
|
-
paths:
|
|
1034
|
+
paths: TRANSFORM_PATHS_92
|
|
1221
1035
|
}
|
|
1222
1036
|
])
|
|
1223
1037
|
);
|
|
@@ -1253,30 +1067,23 @@ async function typedQueryProducts(query, options) {
|
|
|
1253
1067
|
transformPaths2(result.data, [
|
|
1254
1068
|
{
|
|
1255
1069
|
transformFn: transformRESTImageToSDKImage,
|
|
1256
|
-
paths:
|
|
1257
|
-
{ path: "products.image" },
|
|
1258
|
-
{ path: "products.variants.image" },
|
|
1259
|
-
{ path: "products.mainVariant.image" }
|
|
1260
|
-
]
|
|
1070
|
+
paths: TRANSFORM_PATHS_52
|
|
1261
1071
|
},
|
|
1262
1072
|
{
|
|
1263
1073
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1264
|
-
paths:
|
|
1265
|
-
{ path: "products.address" },
|
|
1266
|
-
{ path: "products.customAddress" }
|
|
1267
|
-
]
|
|
1074
|
+
paths: TRANSFORM_PATHS_62
|
|
1268
1075
|
},
|
|
1269
1076
|
{
|
|
1270
1077
|
transformFn: transformRESTDocumentToSDKDocument,
|
|
1271
|
-
paths:
|
|
1078
|
+
paths: TRANSFORM_PATHS_72
|
|
1272
1079
|
},
|
|
1273
1080
|
{
|
|
1274
1081
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
1275
|
-
paths:
|
|
1082
|
+
paths: TRANSFORM_PATHS_82
|
|
1276
1083
|
},
|
|
1277
1084
|
{
|
|
1278
1085
|
transformFn: transformRESTAudioToSDKAudio,
|
|
1279
|
-
paths:
|
|
1086
|
+
paths: TRANSFORM_PATHS_92
|
|
1280
1087
|
}
|
|
1281
1088
|
])
|
|
1282
1089
|
);
|
|
@@ -1307,30 +1114,23 @@ async function bulkCreateProducts2(products, options) {
|
|
|
1307
1114
|
[
|
|
1308
1115
|
{
|
|
1309
1116
|
transformFn: transformSDKImageToRESTImage,
|
|
1310
|
-
paths:
|
|
1311
|
-
{ path: "products.image" },
|
|
1312
|
-
{ path: "products.variants.image" },
|
|
1313
|
-
{ path: "products.mainVariant.image" }
|
|
1314
|
-
]
|
|
1117
|
+
paths: TRANSFORM_PATHS_52
|
|
1315
1118
|
},
|
|
1316
1119
|
{
|
|
1317
1120
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1318
|
-
paths:
|
|
1319
|
-
{ path: "products.address" },
|
|
1320
|
-
{ path: "products.customAddress" }
|
|
1321
|
-
]
|
|
1121
|
+
paths: TRANSFORM_PATHS_62
|
|
1322
1122
|
},
|
|
1323
1123
|
{
|
|
1324
1124
|
transformFn: transformSDKDocumentToRESTDocument,
|
|
1325
|
-
paths:
|
|
1125
|
+
paths: TRANSFORM_PATHS_72
|
|
1326
1126
|
},
|
|
1327
1127
|
{
|
|
1328
1128
|
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
1329
|
-
paths:
|
|
1129
|
+
paths: TRANSFORM_PATHS_82
|
|
1330
1130
|
},
|
|
1331
1131
|
{
|
|
1332
1132
|
transformFn: transformSDKAudioToRESTAudio,
|
|
1333
|
-
paths:
|
|
1133
|
+
paths: TRANSFORM_PATHS_92
|
|
1334
1134
|
}
|
|
1335
1135
|
]
|
|
1336
1136
|
);
|
|
@@ -1343,30 +1143,23 @@ async function bulkCreateProducts2(products, options) {
|
|
|
1343
1143
|
transformPaths2(result.data, [
|
|
1344
1144
|
{
|
|
1345
1145
|
transformFn: transformRESTImageToSDKImage,
|
|
1346
|
-
paths:
|
|
1347
|
-
{ path: "results.item.image" },
|
|
1348
|
-
{ path: "results.item.variants.image" },
|
|
1349
|
-
{ path: "results.item.mainVariant.image" }
|
|
1350
|
-
]
|
|
1146
|
+
paths: TRANSFORM_PATHS_102
|
|
1351
1147
|
},
|
|
1352
1148
|
{
|
|
1353
1149
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1354
|
-
paths:
|
|
1355
|
-
{ path: "results.item.address" },
|
|
1356
|
-
{ path: "results.item.customAddress" }
|
|
1357
|
-
]
|
|
1150
|
+
paths: TRANSFORM_PATHS_11
|
|
1358
1151
|
},
|
|
1359
1152
|
{
|
|
1360
1153
|
transformFn: transformRESTDocumentToSDKDocument,
|
|
1361
|
-
paths:
|
|
1154
|
+
paths: TRANSFORM_PATHS_122
|
|
1362
1155
|
},
|
|
1363
1156
|
{
|
|
1364
1157
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
1365
|
-
paths:
|
|
1158
|
+
paths: TRANSFORM_PATHS_13
|
|
1366
1159
|
},
|
|
1367
1160
|
{
|
|
1368
1161
|
transformFn: transformRESTAudioToSDKAudio,
|
|
1369
|
-
paths:
|
|
1162
|
+
paths: TRANSFORM_PATHS_14
|
|
1370
1163
|
}
|
|
1371
1164
|
])
|
|
1372
1165
|
);
|
|
@@ -1397,30 +1190,23 @@ async function bulkUpdateProducts2(products, options) {
|
|
|
1397
1190
|
[
|
|
1398
1191
|
{
|
|
1399
1192
|
transformFn: transformSDKImageToRESTImage,
|
|
1400
|
-
paths:
|
|
1401
|
-
{ path: "products.product.image" },
|
|
1402
|
-
{ path: "products.product.variants.image" },
|
|
1403
|
-
{ path: "products.product.mainVariant.image" }
|
|
1404
|
-
]
|
|
1193
|
+
paths: TRANSFORM_PATHS_15
|
|
1405
1194
|
},
|
|
1406
1195
|
{
|
|
1407
1196
|
transformFn: transformSDKAddressToRESTAddress,
|
|
1408
|
-
paths:
|
|
1409
|
-
{ path: "products.product.address" },
|
|
1410
|
-
{ path: "products.product.customAddress" }
|
|
1411
|
-
]
|
|
1197
|
+
paths: TRANSFORM_PATHS_16
|
|
1412
1198
|
},
|
|
1413
1199
|
{
|
|
1414
1200
|
transformFn: transformSDKDocumentToRESTDocument,
|
|
1415
|
-
paths:
|
|
1201
|
+
paths: TRANSFORM_PATHS_17
|
|
1416
1202
|
},
|
|
1417
1203
|
{
|
|
1418
1204
|
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
1419
|
-
paths:
|
|
1205
|
+
paths: TRANSFORM_PATHS_18
|
|
1420
1206
|
},
|
|
1421
1207
|
{
|
|
1422
1208
|
transformFn: transformSDKAudioToRESTAudio,
|
|
1423
|
-
paths:
|
|
1209
|
+
paths: TRANSFORM_PATHS_19
|
|
1424
1210
|
}
|
|
1425
1211
|
]
|
|
1426
1212
|
);
|
|
@@ -1433,30 +1219,23 @@ async function bulkUpdateProducts2(products, options) {
|
|
|
1433
1219
|
transformPaths2(result.data, [
|
|
1434
1220
|
{
|
|
1435
1221
|
transformFn: transformRESTImageToSDKImage,
|
|
1436
|
-
paths:
|
|
1437
|
-
{ path: "results.item.image" },
|
|
1438
|
-
{ path: "results.item.variants.image" },
|
|
1439
|
-
{ path: "results.item.mainVariant.image" }
|
|
1440
|
-
]
|
|
1222
|
+
paths: TRANSFORM_PATHS_102
|
|
1441
1223
|
},
|
|
1442
1224
|
{
|
|
1443
1225
|
transformFn: transformRESTAddressToSDKAddress,
|
|
1444
|
-
paths:
|
|
1445
|
-
{ path: "results.item.address" },
|
|
1446
|
-
{ path: "results.item.customAddress" }
|
|
1447
|
-
]
|
|
1226
|
+
paths: TRANSFORM_PATHS_11
|
|
1448
1227
|
},
|
|
1449
1228
|
{
|
|
1450
1229
|
transformFn: transformRESTDocumentToSDKDocument,
|
|
1451
|
-
paths:
|
|
1230
|
+
paths: TRANSFORM_PATHS_122
|
|
1452
1231
|
},
|
|
1453
1232
|
{
|
|
1454
1233
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
1455
|
-
paths:
|
|
1234
|
+
paths: TRANSFORM_PATHS_13
|
|
1456
1235
|
},
|
|
1457
1236
|
{
|
|
1458
1237
|
transformFn: transformRESTAudioToSDKAudio,
|
|
1459
|
-
paths:
|
|
1238
|
+
paths: TRANSFORM_PATHS_14
|
|
1460
1239
|
}
|
|
1461
1240
|
])
|
|
1462
1241
|
);
|