@wix/auto_sdk_metro_products 1.0.24 → 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/meta.js CHANGED
@@ -46,6 +46,132 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
46
46
  var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
47
47
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
48
48
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
49
+ var TRANSFORM_PATHS_0 = [
50
+ { path: "product.createdDate" },
51
+ { path: "product.modifiedDate" },
52
+ { path: "product.image.urlExpirationDate" },
53
+ { path: "product.document.urlExpirationDate" },
54
+ { path: "product.document.thumbnail.urlExpirationDate" },
55
+ { path: "product.video.urlExpirationDate" },
56
+ { path: "product.video.resolutions.urlExpirationDate" },
57
+ { path: "product.video.resolutions.poster.urlExpirationDate" },
58
+ { path: "product.video.posters.urlExpirationDate" },
59
+ { path: "product.audio.urlExpirationDate" },
60
+ { path: "product.variants.image.urlExpirationDate" },
61
+ { path: "product.mainVariant.image.urlExpirationDate" }
62
+ ];
63
+ var TRANSFORM_PATHS_1 = [
64
+ { path: "product.image.focalPoint.x" },
65
+ { path: "product.image.focalPoint.y" },
66
+ { path: "product.document.thumbnail.focalPoint.x" },
67
+ { path: "product.document.thumbnail.focalPoint.y" },
68
+ { path: "product.video.resolutions.poster.focalPoint.x" },
69
+ { path: "product.video.resolutions.poster.focalPoint.y" },
70
+ { path: "product.video.posters.focalPoint.x" },
71
+ { path: "product.video.posters.focalPoint.y" },
72
+ { path: "product.variants.image.focalPoint.x" },
73
+ { path: "product.variants.image.focalPoint.y" },
74
+ { path: "product.mainVariant.image.focalPoint.x" },
75
+ { path: "product.mainVariant.image.focalPoint.y" },
76
+ { path: "product.address.geocode.latitude" },
77
+ { path: "product.address.geocode.longitude" }
78
+ ];
79
+ var TRANSFORM_PATHS_2 = [{ path: "mask" }];
80
+ var TRANSFORM_PATHS_3 = [
81
+ { path: "products.createdDate" },
82
+ { path: "products.modifiedDate" },
83
+ { path: "products.image.urlExpirationDate" },
84
+ { path: "products.document.urlExpirationDate" },
85
+ { path: "products.document.thumbnail.urlExpirationDate" },
86
+ { path: "products.video.urlExpirationDate" },
87
+ { path: "products.video.resolutions.urlExpirationDate" },
88
+ { path: "products.video.resolutions.poster.urlExpirationDate" },
89
+ { path: "products.video.posters.urlExpirationDate" },
90
+ { path: "products.audio.urlExpirationDate" },
91
+ { path: "products.variants.image.urlExpirationDate" },
92
+ { path: "products.mainVariant.image.urlExpirationDate" }
93
+ ];
94
+ var TRANSFORM_PATHS_4 = [
95
+ { path: "products.image.focalPoint.x" },
96
+ { path: "products.image.focalPoint.y" },
97
+ { path: "products.document.thumbnail.focalPoint.x" },
98
+ { path: "products.document.thumbnail.focalPoint.y" },
99
+ { path: "products.video.resolutions.poster.focalPoint.x" },
100
+ { path: "products.video.resolutions.poster.focalPoint.y" },
101
+ { path: "products.video.posters.focalPoint.x" },
102
+ { path: "products.video.posters.focalPoint.y" },
103
+ { path: "products.variants.image.focalPoint.x" },
104
+ { path: "products.variants.image.focalPoint.y" },
105
+ { path: "products.mainVariant.image.focalPoint.x" },
106
+ { path: "products.mainVariant.image.focalPoint.y" },
107
+ { path: "products.address.geocode.latitude" },
108
+ { path: "products.address.geocode.longitude" }
109
+ ];
110
+ var TRANSFORM_PATHS_5 = [
111
+ { path: "query.sort.origin.latitude" },
112
+ { path: "query.sort.origin.longitude" }
113
+ ];
114
+ var TRANSFORM_PATHS_6 = [
115
+ { path: "results.item.createdDate" },
116
+ { path: "results.item.modifiedDate" },
117
+ { path: "results.item.image.urlExpirationDate" },
118
+ { path: "results.item.document.urlExpirationDate" },
119
+ { path: "results.item.document.thumbnail.urlExpirationDate" },
120
+ { path: "results.item.video.urlExpirationDate" },
121
+ { path: "results.item.video.resolutions.urlExpirationDate" },
122
+ { path: "results.item.video.resolutions.poster.urlExpirationDate" },
123
+ { path: "results.item.video.posters.urlExpirationDate" },
124
+ { path: "results.item.audio.urlExpirationDate" },
125
+ { path: "results.item.variants.image.urlExpirationDate" },
126
+ { path: "results.item.mainVariant.image.urlExpirationDate" }
127
+ ];
128
+ var TRANSFORM_PATHS_7 = [
129
+ { path: "results.item.image.focalPoint.x" },
130
+ { path: "results.item.image.focalPoint.y" },
131
+ { path: "results.item.document.thumbnail.focalPoint.x" },
132
+ { path: "results.item.document.thumbnail.focalPoint.y" },
133
+ { path: "results.item.video.resolutions.poster.focalPoint.x" },
134
+ { path: "results.item.video.resolutions.poster.focalPoint.y" },
135
+ { path: "results.item.video.posters.focalPoint.x" },
136
+ { path: "results.item.video.posters.focalPoint.y" },
137
+ { path: "results.item.variants.image.focalPoint.x" },
138
+ { path: "results.item.variants.image.focalPoint.y" },
139
+ { path: "results.item.mainVariant.image.focalPoint.x" },
140
+ { path: "results.item.mainVariant.image.focalPoint.y" },
141
+ { path: "results.item.address.geocode.latitude" },
142
+ { path: "results.item.address.geocode.longitude" }
143
+ ];
144
+ var TRANSFORM_PATHS_8 = [{ path: "products.fieldMask" }];
145
+ var TRANSFORM_PATHS_9 = [
146
+ { path: "products.product.createdDate" },
147
+ { path: "products.product.modifiedDate" },
148
+ { path: "products.product.image.urlExpirationDate" },
149
+ { path: "products.product.document.urlExpirationDate" },
150
+ { path: "products.product.document.thumbnail.urlExpirationDate" },
151
+ { path: "products.product.video.urlExpirationDate" },
152
+ { path: "products.product.video.resolutions.urlExpirationDate" },
153
+ { path: "products.product.video.resolutions.poster.urlExpirationDate" },
154
+ { path: "products.product.video.posters.urlExpirationDate" },
155
+ { path: "products.product.audio.urlExpirationDate" },
156
+ { path: "products.product.variants.image.urlExpirationDate" },
157
+ { path: "products.product.mainVariant.image.urlExpirationDate" }
158
+ ];
159
+ var TRANSFORM_PATHS_10 = [
160
+ { path: "products.product.image.focalPoint.x" },
161
+ { path: "products.product.image.focalPoint.y" },
162
+ { path: "products.product.document.thumbnail.focalPoint.x" },
163
+ { path: "products.product.document.thumbnail.focalPoint.y" },
164
+ { path: "products.product.video.resolutions.poster.focalPoint.x" },
165
+ { path: "products.product.video.resolutions.poster.focalPoint.y" },
166
+ { path: "products.product.video.posters.focalPoint.x" },
167
+ { path: "products.product.video.posters.focalPoint.y" },
168
+ { path: "products.product.variants.image.focalPoint.x" },
169
+ { path: "products.product.variants.image.focalPoint.y" },
170
+ { path: "products.product.mainVariant.image.focalPoint.x" },
171
+ { path: "products.product.mainVariant.image.focalPoint.y" },
172
+ { path: "products.product.address.geocode.latitude" },
173
+ { path: "products.product.address.geocode.longitude" }
174
+ ];
49
175
  function resolveWixCoreservicesMetroinspectorV1ProductsProductsServiceUrl(opts) {
50
176
  const domainToMappings = {
51
177
  "apps._base_domain_": [
@@ -157,39 +283,11 @@ function createProduct(payload) {
157
283
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
158
284
  {
159
285
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
160
- paths: [
161
- { path: "product.createdDate" },
162
- { path: "product.modifiedDate" },
163
- { path: "product.image.urlExpirationDate" },
164
- { path: "product.document.urlExpirationDate" },
165
- { path: "product.document.thumbnail.urlExpirationDate" },
166
- { path: "product.video.urlExpirationDate" },
167
- { path: "product.video.resolutions.urlExpirationDate" },
168
- { path: "product.video.resolutions.poster.urlExpirationDate" },
169
- { path: "product.video.posters.urlExpirationDate" },
170
- { path: "product.audio.urlExpirationDate" },
171
- { path: "product.variants.image.urlExpirationDate" },
172
- { path: "product.mainVariant.image.urlExpirationDate" }
173
- ]
286
+ paths: TRANSFORM_PATHS_0
174
287
  },
175
288
  {
176
289
  transformFn: import_float.transformSDKFloatToRESTFloat,
177
- paths: [
178
- { path: "product.image.focalPoint.x" },
179
- { path: "product.image.focalPoint.y" },
180
- { path: "product.document.thumbnail.focalPoint.x" },
181
- { path: "product.document.thumbnail.focalPoint.y" },
182
- { path: "product.video.resolutions.poster.focalPoint.x" },
183
- { path: "product.video.resolutions.poster.focalPoint.y" },
184
- { path: "product.video.posters.focalPoint.x" },
185
- { path: "product.video.posters.focalPoint.y" },
186
- { path: "product.variants.image.focalPoint.x" },
187
- { path: "product.variants.image.focalPoint.y" },
188
- { path: "product.mainVariant.image.focalPoint.x" },
189
- { path: "product.mainVariant.image.focalPoint.y" },
190
- { path: "product.address.geocode.latitude" },
191
- { path: "product.address.geocode.longitude" }
192
- ]
290
+ paths: TRANSFORM_PATHS_1
193
291
  }
194
292
  ]);
195
293
  const metadata = {
@@ -209,39 +307,11 @@ function createProduct(payload) {
209
307
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
210
308
  {
211
309
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
212
- paths: [
213
- { path: "product.createdDate" },
214
- { path: "product.modifiedDate" },
215
- { path: "product.image.urlExpirationDate" },
216
- { path: "product.document.urlExpirationDate" },
217
- { path: "product.document.thumbnail.urlExpirationDate" },
218
- { path: "product.video.urlExpirationDate" },
219
- { path: "product.video.resolutions.urlExpirationDate" },
220
- { path: "product.video.resolutions.poster.urlExpirationDate" },
221
- { path: "product.video.posters.urlExpirationDate" },
222
- { path: "product.audio.urlExpirationDate" },
223
- { path: "product.variants.image.urlExpirationDate" },
224
- { path: "product.mainVariant.image.urlExpirationDate" }
225
- ]
310
+ paths: TRANSFORM_PATHS_0
226
311
  },
227
312
  {
228
313
  transformFn: import_float2.transformRESTFloatToSDKFloat,
229
- paths: [
230
- { path: "product.image.focalPoint.x" },
231
- { path: "product.image.focalPoint.y" },
232
- { path: "product.document.thumbnail.focalPoint.x" },
233
- { path: "product.document.thumbnail.focalPoint.y" },
234
- { path: "product.video.resolutions.poster.focalPoint.x" },
235
- { path: "product.video.resolutions.poster.focalPoint.y" },
236
- { path: "product.video.posters.focalPoint.x" },
237
- { path: "product.video.posters.focalPoint.y" },
238
- { path: "product.variants.image.focalPoint.x" },
239
- { path: "product.variants.image.focalPoint.y" },
240
- { path: "product.mainVariant.image.focalPoint.x" },
241
- { path: "product.mainVariant.image.focalPoint.y" },
242
- { path: "product.address.geocode.latitude" },
243
- { path: "product.address.geocode.longitude" }
244
- ]
314
+ paths: TRANSFORM_PATHS_1
245
315
  }
246
316
  ])
247
317
  };
@@ -275,43 +345,15 @@ function updateProduct(payload) {
275
345
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
276
346
  {
277
347
  transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
278
- paths: [{ path: "mask" }]
348
+ paths: TRANSFORM_PATHS_2
279
349
  },
280
350
  {
281
351
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
282
- paths: [
283
- { path: "product.createdDate" },
284
- { path: "product.modifiedDate" },
285
- { path: "product.image.urlExpirationDate" },
286
- { path: "product.document.urlExpirationDate" },
287
- { path: "product.document.thumbnail.urlExpirationDate" },
288
- { path: "product.video.urlExpirationDate" },
289
- { path: "product.video.resolutions.urlExpirationDate" },
290
- { path: "product.video.resolutions.poster.urlExpirationDate" },
291
- { path: "product.video.posters.urlExpirationDate" },
292
- { path: "product.audio.urlExpirationDate" },
293
- { path: "product.variants.image.urlExpirationDate" },
294
- { path: "product.mainVariant.image.urlExpirationDate" }
295
- ]
352
+ paths: TRANSFORM_PATHS_0
296
353
  },
297
354
  {
298
355
  transformFn: import_float.transformSDKFloatToRESTFloat,
299
- paths: [
300
- { path: "product.image.focalPoint.x" },
301
- { path: "product.image.focalPoint.y" },
302
- { path: "product.document.thumbnail.focalPoint.x" },
303
- { path: "product.document.thumbnail.focalPoint.y" },
304
- { path: "product.video.resolutions.poster.focalPoint.x" },
305
- { path: "product.video.resolutions.poster.focalPoint.y" },
306
- { path: "product.video.posters.focalPoint.x" },
307
- { path: "product.video.posters.focalPoint.y" },
308
- { path: "product.variants.image.focalPoint.x" },
309
- { path: "product.variants.image.focalPoint.y" },
310
- { path: "product.mainVariant.image.focalPoint.x" },
311
- { path: "product.mainVariant.image.focalPoint.y" },
312
- { path: "product.address.geocode.latitude" },
313
- { path: "product.address.geocode.longitude" }
314
- ]
356
+ paths: TRANSFORM_PATHS_1
315
357
  }
316
358
  ]);
317
359
  const metadata = {
@@ -331,39 +373,11 @@ function updateProduct(payload) {
331
373
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
332
374
  {
333
375
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
334
- paths: [
335
- { path: "product.createdDate" },
336
- { path: "product.modifiedDate" },
337
- { path: "product.image.urlExpirationDate" },
338
- { path: "product.document.urlExpirationDate" },
339
- { path: "product.document.thumbnail.urlExpirationDate" },
340
- { path: "product.video.urlExpirationDate" },
341
- { path: "product.video.resolutions.urlExpirationDate" },
342
- { path: "product.video.resolutions.poster.urlExpirationDate" },
343
- { path: "product.video.posters.urlExpirationDate" },
344
- { path: "product.audio.urlExpirationDate" },
345
- { path: "product.variants.image.urlExpirationDate" },
346
- { path: "product.mainVariant.image.urlExpirationDate" }
347
- ]
376
+ paths: TRANSFORM_PATHS_0
348
377
  },
349
378
  {
350
379
  transformFn: import_float2.transformRESTFloatToSDKFloat,
351
- paths: [
352
- { path: "product.image.focalPoint.x" },
353
- { path: "product.image.focalPoint.y" },
354
- { path: "product.document.thumbnail.focalPoint.x" },
355
- { path: "product.document.thumbnail.focalPoint.y" },
356
- { path: "product.video.resolutions.poster.focalPoint.x" },
357
- { path: "product.video.resolutions.poster.focalPoint.y" },
358
- { path: "product.video.posters.focalPoint.x" },
359
- { path: "product.video.posters.focalPoint.y" },
360
- { path: "product.variants.image.focalPoint.x" },
361
- { path: "product.variants.image.focalPoint.y" },
362
- { path: "product.mainVariant.image.focalPoint.x" },
363
- { path: "product.mainVariant.image.focalPoint.y" },
364
- { path: "product.address.geocode.latitude" },
365
- { path: "product.address.geocode.longitude" }
366
- ]
380
+ paths: TRANSFORM_PATHS_1
367
381
  }
368
382
  ])
369
383
  };
@@ -390,39 +404,11 @@ function getProduct(payload) {
390
404
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
391
405
  {
392
406
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
393
- paths: [
394
- { path: "product.createdDate" },
395
- { path: "product.modifiedDate" },
396
- { path: "product.image.urlExpirationDate" },
397
- { path: "product.document.urlExpirationDate" },
398
- { path: "product.document.thumbnail.urlExpirationDate" },
399
- { path: "product.video.urlExpirationDate" },
400
- { path: "product.video.resolutions.urlExpirationDate" },
401
- { path: "product.video.resolutions.poster.urlExpirationDate" },
402
- { path: "product.video.posters.urlExpirationDate" },
403
- { path: "product.audio.urlExpirationDate" },
404
- { path: "product.variants.image.urlExpirationDate" },
405
- { path: "product.mainVariant.image.urlExpirationDate" }
406
- ]
407
+ paths: TRANSFORM_PATHS_0
407
408
  },
408
409
  {
409
410
  transformFn: import_float2.transformRESTFloatToSDKFloat,
410
- paths: [
411
- { path: "product.image.focalPoint.x" },
412
- { path: "product.image.focalPoint.y" },
413
- { path: "product.document.thumbnail.focalPoint.x" },
414
- { path: "product.document.thumbnail.focalPoint.y" },
415
- { path: "product.video.resolutions.poster.focalPoint.x" },
416
- { path: "product.video.resolutions.poster.focalPoint.y" },
417
- { path: "product.video.posters.focalPoint.x" },
418
- { path: "product.video.posters.focalPoint.y" },
419
- { path: "product.variants.image.focalPoint.x" },
420
- { path: "product.variants.image.focalPoint.y" },
421
- { path: "product.mainVariant.image.focalPoint.x" },
422
- { path: "product.mainVariant.image.focalPoint.y" },
423
- { path: "product.address.geocode.latitude" },
424
- { path: "product.address.geocode.longitude" }
425
- ]
411
+ paths: TRANSFORM_PATHS_1
426
412
  }
427
413
  ])
428
414
  };
@@ -470,39 +456,11 @@ function getProductsStartWith(payload) {
470
456
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
471
457
  {
472
458
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
473
- paths: [
474
- { path: "products.createdDate" },
475
- { path: "products.modifiedDate" },
476
- { path: "products.image.urlExpirationDate" },
477
- { path: "products.document.urlExpirationDate" },
478
- { path: "products.document.thumbnail.urlExpirationDate" },
479
- { path: "products.video.urlExpirationDate" },
480
- { path: "products.video.resolutions.urlExpirationDate" },
481
- { path: "products.video.resolutions.poster.urlExpirationDate" },
482
- { path: "products.video.posters.urlExpirationDate" },
483
- { path: "products.audio.urlExpirationDate" },
484
- { path: "products.variants.image.urlExpirationDate" },
485
- { path: "products.mainVariant.image.urlExpirationDate" }
486
- ]
459
+ paths: TRANSFORM_PATHS_3
487
460
  },
488
461
  {
489
462
  transformFn: import_float2.transformRESTFloatToSDKFloat,
490
- paths: [
491
- { path: "products.image.focalPoint.x" },
492
- { path: "products.image.focalPoint.y" },
493
- { path: "products.document.thumbnail.focalPoint.x" },
494
- { path: "products.document.thumbnail.focalPoint.y" },
495
- { path: "products.video.resolutions.poster.focalPoint.x" },
496
- { path: "products.video.resolutions.poster.focalPoint.y" },
497
- { path: "products.video.posters.focalPoint.x" },
498
- { path: "products.video.posters.focalPoint.y" },
499
- { path: "products.variants.image.focalPoint.x" },
500
- { path: "products.variants.image.focalPoint.y" },
501
- { path: "products.mainVariant.image.focalPoint.x" },
502
- { path: "products.mainVariant.image.focalPoint.y" },
503
- { path: "products.address.geocode.latitude" },
504
- { path: "products.address.geocode.longitude" }
505
- ]
463
+ paths: TRANSFORM_PATHS_4
506
464
  }
507
465
  ])
508
466
  };
@@ -515,10 +473,7 @@ function queryProducts(payload) {
515
473
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
516
474
  {
517
475
  transformFn: import_float.transformSDKFloatToRESTFloat,
518
- paths: [
519
- { path: "query.sort.origin.latitude" },
520
- { path: "query.sort.origin.longitude" }
521
- ]
476
+ paths: TRANSFORM_PATHS_5
522
477
  }
523
478
  ]);
524
479
  const metadata = {
@@ -538,39 +493,11 @@ function queryProducts(payload) {
538
493
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
539
494
  {
540
495
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
541
- paths: [
542
- { path: "products.createdDate" },
543
- { path: "products.modifiedDate" },
544
- { path: "products.image.urlExpirationDate" },
545
- { path: "products.document.urlExpirationDate" },
546
- { path: "products.document.thumbnail.urlExpirationDate" },
547
- { path: "products.video.urlExpirationDate" },
548
- { path: "products.video.resolutions.urlExpirationDate" },
549
- { path: "products.video.resolutions.poster.urlExpirationDate" },
550
- { path: "products.video.posters.urlExpirationDate" },
551
- { path: "products.audio.urlExpirationDate" },
552
- { path: "products.variants.image.urlExpirationDate" },
553
- { path: "products.mainVariant.image.urlExpirationDate" }
554
- ]
496
+ paths: TRANSFORM_PATHS_3
555
497
  },
556
498
  {
557
499
  transformFn: import_float2.transformRESTFloatToSDKFloat,
558
- paths: [
559
- { path: "products.image.focalPoint.x" },
560
- { path: "products.image.focalPoint.y" },
561
- { path: "products.document.thumbnail.focalPoint.x" },
562
- { path: "products.document.thumbnail.focalPoint.y" },
563
- { path: "products.video.resolutions.poster.focalPoint.x" },
564
- { path: "products.video.resolutions.poster.focalPoint.y" },
565
- { path: "products.video.posters.focalPoint.x" },
566
- { path: "products.video.posters.focalPoint.y" },
567
- { path: "products.variants.image.focalPoint.x" },
568
- { path: "products.variants.image.focalPoint.y" },
569
- { path: "products.mainVariant.image.focalPoint.x" },
570
- { path: "products.mainVariant.image.focalPoint.y" },
571
- { path: "products.address.geocode.latitude" },
572
- { path: "products.address.geocode.longitude" }
573
- ]
500
+ paths: TRANSFORM_PATHS_4
574
501
  }
575
502
  ]),
576
503
  fallback: [
@@ -592,39 +519,11 @@ function bulkCreateProducts(payload) {
592
519
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
593
520
  {
594
521
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
595
- paths: [
596
- { path: "products.createdDate" },
597
- { path: "products.modifiedDate" },
598
- { path: "products.image.urlExpirationDate" },
599
- { path: "products.document.urlExpirationDate" },
600
- { path: "products.document.thumbnail.urlExpirationDate" },
601
- { path: "products.video.urlExpirationDate" },
602
- { path: "products.video.resolutions.urlExpirationDate" },
603
- { path: "products.video.resolutions.poster.urlExpirationDate" },
604
- { path: "products.video.posters.urlExpirationDate" },
605
- { path: "products.audio.urlExpirationDate" },
606
- { path: "products.variants.image.urlExpirationDate" },
607
- { path: "products.mainVariant.image.urlExpirationDate" }
608
- ]
522
+ paths: TRANSFORM_PATHS_3
609
523
  },
610
524
  {
611
525
  transformFn: import_float.transformSDKFloatToRESTFloat,
612
- paths: [
613
- { path: "products.image.focalPoint.x" },
614
- { path: "products.image.focalPoint.y" },
615
- { path: "products.document.thumbnail.focalPoint.x" },
616
- { path: "products.document.thumbnail.focalPoint.y" },
617
- { path: "products.video.resolutions.poster.focalPoint.x" },
618
- { path: "products.video.resolutions.poster.focalPoint.y" },
619
- { path: "products.video.posters.focalPoint.x" },
620
- { path: "products.video.posters.focalPoint.y" },
621
- { path: "products.variants.image.focalPoint.x" },
622
- { path: "products.variants.image.focalPoint.y" },
623
- { path: "products.mainVariant.image.focalPoint.x" },
624
- { path: "products.mainVariant.image.focalPoint.y" },
625
- { path: "products.address.geocode.latitude" },
626
- { path: "products.address.geocode.longitude" }
627
- ]
526
+ paths: TRANSFORM_PATHS_4
628
527
  }
629
528
  ]);
630
529
  const metadata = {
@@ -644,41 +543,11 @@ function bulkCreateProducts(payload) {
644
543
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
645
544
  {
646
545
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
647
- paths: [
648
- { path: "results.item.createdDate" },
649
- { path: "results.item.modifiedDate" },
650
- { path: "results.item.image.urlExpirationDate" },
651
- { path: "results.item.document.urlExpirationDate" },
652
- { path: "results.item.document.thumbnail.urlExpirationDate" },
653
- { path: "results.item.video.urlExpirationDate" },
654
- { path: "results.item.video.resolutions.urlExpirationDate" },
655
- {
656
- path: "results.item.video.resolutions.poster.urlExpirationDate"
657
- },
658
- { path: "results.item.video.posters.urlExpirationDate" },
659
- { path: "results.item.audio.urlExpirationDate" },
660
- { path: "results.item.variants.image.urlExpirationDate" },
661
- { path: "results.item.mainVariant.image.urlExpirationDate" }
662
- ]
546
+ paths: TRANSFORM_PATHS_6
663
547
  },
664
548
  {
665
549
  transformFn: import_float2.transformRESTFloatToSDKFloat,
666
- paths: [
667
- { path: "results.item.image.focalPoint.x" },
668
- { path: "results.item.image.focalPoint.y" },
669
- { path: "results.item.document.thumbnail.focalPoint.x" },
670
- { path: "results.item.document.thumbnail.focalPoint.y" },
671
- { path: "results.item.video.resolutions.poster.focalPoint.x" },
672
- { path: "results.item.video.resolutions.poster.focalPoint.y" },
673
- { path: "results.item.video.posters.focalPoint.x" },
674
- { path: "results.item.video.posters.focalPoint.y" },
675
- { path: "results.item.variants.image.focalPoint.x" },
676
- { path: "results.item.variants.image.focalPoint.y" },
677
- { path: "results.item.mainVariant.image.focalPoint.x" },
678
- { path: "results.item.mainVariant.image.focalPoint.y" },
679
- { path: "results.item.address.geocode.latitude" },
680
- { path: "results.item.address.geocode.longitude" }
681
- ]
550
+ paths: TRANSFORM_PATHS_7
682
551
  }
683
552
  ])
684
553
  };
@@ -691,45 +560,15 @@ function bulkUpdateProducts(payload) {
691
560
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
692
561
  {
693
562
  transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
694
- paths: [{ path: "products.fieldMask" }]
563
+ paths: TRANSFORM_PATHS_8
695
564
  },
696
565
  {
697
566
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
698
- paths: [
699
- { path: "products.product.createdDate" },
700
- { path: "products.product.modifiedDate" },
701
- { path: "products.product.image.urlExpirationDate" },
702
- { path: "products.product.document.urlExpirationDate" },
703
- { path: "products.product.document.thumbnail.urlExpirationDate" },
704
- { path: "products.product.video.urlExpirationDate" },
705
- { path: "products.product.video.resolutions.urlExpirationDate" },
706
- {
707
- path: "products.product.video.resolutions.poster.urlExpirationDate"
708
- },
709
- { path: "products.product.video.posters.urlExpirationDate" },
710
- { path: "products.product.audio.urlExpirationDate" },
711
- { path: "products.product.variants.image.urlExpirationDate" },
712
- { path: "products.product.mainVariant.image.urlExpirationDate" }
713
- ]
567
+ paths: TRANSFORM_PATHS_9
714
568
  },
715
569
  {
716
570
  transformFn: import_float.transformSDKFloatToRESTFloat,
717
- paths: [
718
- { path: "products.product.image.focalPoint.x" },
719
- { path: "products.product.image.focalPoint.y" },
720
- { path: "products.product.document.thumbnail.focalPoint.x" },
721
- { path: "products.product.document.thumbnail.focalPoint.y" },
722
- { path: "products.product.video.resolutions.poster.focalPoint.x" },
723
- { path: "products.product.video.resolutions.poster.focalPoint.y" },
724
- { path: "products.product.video.posters.focalPoint.x" },
725
- { path: "products.product.video.posters.focalPoint.y" },
726
- { path: "products.product.variants.image.focalPoint.x" },
727
- { path: "products.product.variants.image.focalPoint.y" },
728
- { path: "products.product.mainVariant.image.focalPoint.x" },
729
- { path: "products.product.mainVariant.image.focalPoint.y" },
730
- { path: "products.product.address.geocode.latitude" },
731
- { path: "products.product.address.geocode.longitude" }
732
- ]
571
+ paths: TRANSFORM_PATHS_10
733
572
  }
734
573
  ]);
735
574
  const metadata = {
@@ -749,41 +588,11 @@ function bulkUpdateProducts(payload) {
749
588
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
750
589
  {
751
590
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
752
- paths: [
753
- { path: "results.item.createdDate" },
754
- { path: "results.item.modifiedDate" },
755
- { path: "results.item.image.urlExpirationDate" },
756
- { path: "results.item.document.urlExpirationDate" },
757
- { path: "results.item.document.thumbnail.urlExpirationDate" },
758
- { path: "results.item.video.urlExpirationDate" },
759
- { path: "results.item.video.resolutions.urlExpirationDate" },
760
- {
761
- path: "results.item.video.resolutions.poster.urlExpirationDate"
762
- },
763
- { path: "results.item.video.posters.urlExpirationDate" },
764
- { path: "results.item.audio.urlExpirationDate" },
765
- { path: "results.item.variants.image.urlExpirationDate" },
766
- { path: "results.item.mainVariant.image.urlExpirationDate" }
767
- ]
591
+ paths: TRANSFORM_PATHS_6
768
592
  },
769
593
  {
770
594
  transformFn: import_float2.transformRESTFloatToSDKFloat,
771
- paths: [
772
- { path: "results.item.image.focalPoint.x" },
773
- { path: "results.item.image.focalPoint.y" },
774
- { path: "results.item.document.thumbnail.focalPoint.x" },
775
- { path: "results.item.document.thumbnail.focalPoint.y" },
776
- { path: "results.item.video.resolutions.poster.focalPoint.x" },
777
- { path: "results.item.video.resolutions.poster.focalPoint.y" },
778
- { path: "results.item.video.posters.focalPoint.x" },
779
- { path: "results.item.video.posters.focalPoint.y" },
780
- { path: "results.item.variants.image.focalPoint.x" },
781
- { path: "results.item.variants.image.focalPoint.y" },
782
- { path: "results.item.mainVariant.image.focalPoint.x" },
783
- { path: "results.item.mainVariant.image.focalPoint.y" },
784
- { path: "results.item.address.geocode.latitude" },
785
- { path: "results.item.address.geocode.longitude" }
786
- ]
595
+ paths: TRANSFORM_PATHS_7
787
596
  }
788
597
  ])
789
598
  };