@wix/auto_sdk_stores_customizations-v-3 1.0.99 → 1.0.101

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.
@@ -15,6 +15,89 @@ 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: "customization.createdDate" },
20
+ { path: "customization.updatedDate" },
21
+ { path: "customization.choicesSettings.choices.image.urlExpirationDate" },
22
+ {
23
+ path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
24
+ }
25
+ ];
26
+ var TRANSFORM_PATHS_1 = [
27
+ { path: "customization.choicesSettings.choices.image.focalPoint.x" },
28
+ { path: "customization.choicesSettings.choices.image.focalPoint.y" }
29
+ ];
30
+ var TRANSFORM_PATHS_2 = [{ path: "fieldMask" }];
31
+ var TRANSFORM_PATHS_3 = [
32
+ { path: "customizations.createdDate" },
33
+ { path: "customizations.updatedDate" },
34
+ { path: "customizations.choicesSettings.choices.image.urlExpirationDate" },
35
+ {
36
+ path: "customizations.choicesSettings.choices.displayImage.urlExpirationDate"
37
+ }
38
+ ];
39
+ var TRANSFORM_PATHS_4 = [
40
+ { path: "customizations.choicesSettings.choices.image.focalPoint.x" },
41
+ { path: "customizations.choicesSettings.choices.image.focalPoint.y" }
42
+ ];
43
+ var TRANSFORM_PATHS_5 = [
44
+ { path: "results.customization.createdDate" },
45
+ { path: "results.customization.updatedDate" },
46
+ {
47
+ path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
48
+ },
49
+ {
50
+ path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
51
+ }
52
+ ];
53
+ var TRANSFORM_PATHS_6 = [
54
+ { path: "results.customization.choicesSettings.choices.image.focalPoint.x" },
55
+ { path: "results.customization.choicesSettings.choices.image.focalPoint.y" }
56
+ ];
57
+ var TRANSFORM_PATHS_7 = [
58
+ { path: "choices.image.urlExpirationDate" },
59
+ { path: "choices.displayImage.urlExpirationDate" }
60
+ ];
61
+ var TRANSFORM_PATHS_8 = [
62
+ { path: "choices.image.focalPoint.x" },
63
+ { path: "choices.image.focalPoint.y" }
64
+ ];
65
+ var TRANSFORM_PATHS_9 = [{ path: "choices.fieldMask" }];
66
+ var TRANSFORM_PATHS_10 = [
67
+ { path: "choices.choice.image.urlExpirationDate" },
68
+ { path: "choices.choice.displayImage.urlExpirationDate" }
69
+ ];
70
+ var TRANSFORM_PATHS_11 = [
71
+ { path: "choices.choice.image.focalPoint.x" },
72
+ { path: "choices.choice.image.focalPoint.y" }
73
+ ];
74
+ var TRANSFORM_PATHS_12 = [
75
+ { path: "customizationsChoices.choices.image.urlExpirationDate" },
76
+ { path: "customizationsChoices.choices.displayImage.urlExpirationDate" }
77
+ ];
78
+ var TRANSFORM_PATHS_13 = [
79
+ { path: "customizationsChoices.choices.image.focalPoint.x" },
80
+ { path: "customizationsChoices.choices.image.focalPoint.y" }
81
+ ];
82
+ var TRANSFORM_PATHS_14 = [{ path: "customizations.fieldMask" }];
83
+ var TRANSFORM_PATHS_15 = [
84
+ { path: "customizations.customization.createdDate" },
85
+ { path: "customizations.customization.updatedDate" },
86
+ {
87
+ path: "customizations.customization.choicesSettings.choices.image.urlExpirationDate"
88
+ },
89
+ {
90
+ path: "customizations.customization.choicesSettings.choices.displayImage.urlExpirationDate"
91
+ }
92
+ ];
93
+ var TRANSFORM_PATHS_16 = [
94
+ {
95
+ path: "customizations.customization.choicesSettings.choices.image.focalPoint.x"
96
+ },
97
+ {
98
+ path: "customizations.customization.choicesSettings.choices.image.focalPoint.y"
99
+ }
100
+ ];
18
101
  function resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl(opts) {
19
102
  const domainToMappings = {
20
103
  "manage._base_domain_": [
@@ -72,23 +155,11 @@ function createCustomization(payload) {
72
155
  const serializedData = transformPaths(payload, [
73
156
  {
74
157
  transformFn: transformSDKTimestampToRESTTimestamp,
75
- paths: [
76
- { path: "customization.createdDate" },
77
- { path: "customization.updatedDate" },
78
- {
79
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
80
- },
81
- {
82
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
83
- }
84
- ]
158
+ paths: TRANSFORM_PATHS_0
85
159
  },
86
160
  {
87
161
  transformFn: transformSDKFloatToRESTFloat,
88
- paths: [
89
- { path: "customization.choicesSettings.choices.image.focalPoint.x" },
90
- { path: "customization.choicesSettings.choices.image.focalPoint.y" }
91
- ]
162
+ paths: TRANSFORM_PATHS_1
92
163
  }
93
164
  ]);
94
165
  const metadata = {
@@ -108,27 +179,11 @@ function createCustomization(payload) {
108
179
  transformResponse: (payload2) => transformPaths(payload2, [
109
180
  {
110
181
  transformFn: transformRESTTimestampToSDKTimestamp,
111
- paths: [
112
- { path: "customization.createdDate" },
113
- { path: "customization.updatedDate" },
114
- {
115
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
116
- },
117
- {
118
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
119
- }
120
- ]
182
+ paths: TRANSFORM_PATHS_0
121
183
  },
122
184
  {
123
185
  transformFn: transformRESTFloatToSDKFloat,
124
- paths: [
125
- {
126
- path: "customization.choicesSettings.choices.image.focalPoint.x"
127
- },
128
- {
129
- path: "customization.choicesSettings.choices.image.focalPoint.y"
130
- }
131
- ]
186
+ paths: TRANSFORM_PATHS_1
132
187
  }
133
188
  ])
134
189
  };
@@ -155,27 +210,11 @@ function getCustomization(payload) {
155
210
  transformResponse: (payload2) => transformPaths(payload2, [
156
211
  {
157
212
  transformFn: transformRESTTimestampToSDKTimestamp,
158
- paths: [
159
- { path: "customization.createdDate" },
160
- { path: "customization.updatedDate" },
161
- {
162
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
163
- },
164
- {
165
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
166
- }
167
- ]
213
+ paths: TRANSFORM_PATHS_0
168
214
  },
169
215
  {
170
216
  transformFn: transformRESTFloatToSDKFloat,
171
- paths: [
172
- {
173
- path: "customization.choicesSettings.choices.image.focalPoint.x"
174
- },
175
- {
176
- path: "customization.choicesSettings.choices.image.focalPoint.y"
177
- }
178
- ]
217
+ paths: TRANSFORM_PATHS_1
179
218
  }
180
219
  ])
181
220
  };
@@ -188,27 +227,15 @@ function updateCustomization(payload) {
188
227
  const serializedData = transformPaths(payload, [
189
228
  {
190
229
  transformFn: transformSDKFieldMaskToRESTFieldMask,
191
- paths: [{ path: "fieldMask" }]
230
+ paths: TRANSFORM_PATHS_2
192
231
  },
193
232
  {
194
233
  transformFn: transformSDKTimestampToRESTTimestamp,
195
- paths: [
196
- { path: "customization.createdDate" },
197
- { path: "customization.updatedDate" },
198
- {
199
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
200
- },
201
- {
202
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
203
- }
204
- ]
234
+ paths: TRANSFORM_PATHS_0
205
235
  },
206
236
  {
207
237
  transformFn: transformSDKFloatToRESTFloat,
208
- paths: [
209
- { path: "customization.choicesSettings.choices.image.focalPoint.x" },
210
- { path: "customization.choicesSettings.choices.image.focalPoint.y" }
211
- ]
238
+ paths: TRANSFORM_PATHS_1
212
239
  }
213
240
  ]);
214
241
  const metadata = {
@@ -228,27 +255,11 @@ function updateCustomization(payload) {
228
255
  transformResponse: (payload2) => transformPaths(payload2, [
229
256
  {
230
257
  transformFn: transformRESTTimestampToSDKTimestamp,
231
- paths: [
232
- { path: "customization.createdDate" },
233
- { path: "customization.updatedDate" },
234
- {
235
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
236
- },
237
- {
238
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
239
- }
240
- ]
258
+ paths: TRANSFORM_PATHS_0
241
259
  },
242
260
  {
243
261
  transformFn: transformRESTFloatToSDKFloat,
244
- paths: [
245
- {
246
- path: "customization.choicesSettings.choices.image.focalPoint.x"
247
- },
248
- {
249
- path: "customization.choicesSettings.choices.image.focalPoint.y"
250
- }
251
- ]
262
+ paths: TRANSFORM_PATHS_1
252
263
  }
253
264
  ])
254
265
  };
@@ -296,27 +307,11 @@ function queryCustomizations(payload) {
296
307
  transformResponse: (payload2) => transformPaths(payload2, [
297
308
  {
298
309
  transformFn: transformRESTTimestampToSDKTimestamp,
299
- paths: [
300
- { path: "customizations.createdDate" },
301
- { path: "customizations.updatedDate" },
302
- {
303
- path: "customizations.choicesSettings.choices.image.urlExpirationDate"
304
- },
305
- {
306
- path: "customizations.choicesSettings.choices.displayImage.urlExpirationDate"
307
- }
308
- ]
310
+ paths: TRANSFORM_PATHS_3
309
311
  },
310
312
  {
311
313
  transformFn: transformRESTFloatToSDKFloat,
312
- paths: [
313
- {
314
- path: "customizations.choicesSettings.choices.image.focalPoint.x"
315
- },
316
- {
317
- path: "customizations.choicesSettings.choices.image.focalPoint.y"
318
- }
319
- ]
314
+ paths: TRANSFORM_PATHS_4
320
315
  }
321
316
  ]),
322
317
  fallback: [
@@ -361,23 +356,11 @@ function bulkCreateCustomizations(payload) {
361
356
  const serializedData = transformPaths(payload, [
362
357
  {
363
358
  transformFn: transformSDKTimestampToRESTTimestamp,
364
- paths: [
365
- { path: "customizations.createdDate" },
366
- { path: "customizations.updatedDate" },
367
- {
368
- path: "customizations.choicesSettings.choices.image.urlExpirationDate"
369
- },
370
- {
371
- path: "customizations.choicesSettings.choices.displayImage.urlExpirationDate"
372
- }
373
- ]
359
+ paths: TRANSFORM_PATHS_3
374
360
  },
375
361
  {
376
362
  transformFn: transformSDKFloatToRESTFloat,
377
- paths: [
378
- { path: "customizations.choicesSettings.choices.image.focalPoint.x" },
379
- { path: "customizations.choicesSettings.choices.image.focalPoint.y" }
380
- ]
363
+ paths: TRANSFORM_PATHS_4
381
364
  }
382
365
  ]);
383
366
  const metadata = {
@@ -397,27 +380,11 @@ function bulkCreateCustomizations(payload) {
397
380
  transformResponse: (payload2) => transformPaths(payload2, [
398
381
  {
399
382
  transformFn: transformRESTTimestampToSDKTimestamp,
400
- paths: [
401
- { path: "results.customization.createdDate" },
402
- { path: "results.customization.updatedDate" },
403
- {
404
- path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
405
- },
406
- {
407
- path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
408
- }
409
- ]
383
+ paths: TRANSFORM_PATHS_5
410
384
  },
411
385
  {
412
386
  transformFn: transformRESTFloatToSDKFloat,
413
- paths: [
414
- {
415
- path: "results.customization.choicesSettings.choices.image.focalPoint.x"
416
- },
417
- {
418
- path: "results.customization.choicesSettings.choices.image.focalPoint.y"
419
- }
420
- ]
387
+ paths: TRANSFORM_PATHS_6
421
388
  }
422
389
  ])
423
390
  };
@@ -430,17 +397,11 @@ function addCustomizationChoices(payload) {
430
397
  const serializedData = transformPaths(payload, [
431
398
  {
432
399
  transformFn: transformSDKTimestampToRESTTimestamp,
433
- paths: [
434
- { path: "choices.image.urlExpirationDate" },
435
- { path: "choices.displayImage.urlExpirationDate" }
436
- ]
400
+ paths: TRANSFORM_PATHS_7
437
401
  },
438
402
  {
439
403
  transformFn: transformSDKFloatToRESTFloat,
440
- paths: [
441
- { path: "choices.image.focalPoint.x" },
442
- { path: "choices.image.focalPoint.y" }
443
- ]
404
+ paths: TRANSFORM_PATHS_8
444
405
  }
445
406
  ]);
446
407
  const metadata = {
@@ -460,27 +421,11 @@ function addCustomizationChoices(payload) {
460
421
  transformResponse: (payload2) => transformPaths(payload2, [
461
422
  {
462
423
  transformFn: transformRESTTimestampToSDKTimestamp,
463
- paths: [
464
- { path: "customization.createdDate" },
465
- { path: "customization.updatedDate" },
466
- {
467
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
468
- },
469
- {
470
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
471
- }
472
- ]
424
+ paths: TRANSFORM_PATHS_0
473
425
  },
474
426
  {
475
427
  transformFn: transformRESTFloatToSDKFloat,
476
- paths: [
477
- {
478
- path: "customization.choicesSettings.choices.image.focalPoint.x"
479
- },
480
- {
481
- path: "customization.choicesSettings.choices.image.focalPoint.y"
482
- }
483
- ]
428
+ paths: TRANSFORM_PATHS_1
484
429
  }
485
430
  ])
486
431
  };
@@ -493,17 +438,11 @@ function setCustomizationChoices(payload) {
493
438
  const serializedData = transformPaths(payload, [
494
439
  {
495
440
  transformFn: transformSDKTimestampToRESTTimestamp,
496
- paths: [
497
- { path: "choices.image.urlExpirationDate" },
498
- { path: "choices.displayImage.urlExpirationDate" }
499
- ]
441
+ paths: TRANSFORM_PATHS_7
500
442
  },
501
443
  {
502
444
  transformFn: transformSDKFloatToRESTFloat,
503
- paths: [
504
- { path: "choices.image.focalPoint.x" },
505
- { path: "choices.image.focalPoint.y" }
506
- ]
445
+ paths: TRANSFORM_PATHS_8
507
446
  }
508
447
  ]);
509
448
  const metadata = {
@@ -523,27 +462,11 @@ function setCustomizationChoices(payload) {
523
462
  transformResponse: (payload2) => transformPaths(payload2, [
524
463
  {
525
464
  transformFn: transformRESTTimestampToSDKTimestamp,
526
- paths: [
527
- { path: "customization.createdDate" },
528
- { path: "customization.updatedDate" },
529
- {
530
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
531
- },
532
- {
533
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
534
- }
535
- ]
465
+ paths: TRANSFORM_PATHS_0
536
466
  },
537
467
  {
538
468
  transformFn: transformRESTFloatToSDKFloat,
539
- paths: [
540
- {
541
- path: "customization.choicesSettings.choices.image.focalPoint.x"
542
- },
543
- {
544
- path: "customization.choicesSettings.choices.image.focalPoint.y"
545
- }
546
- ]
469
+ paths: TRANSFORM_PATHS_1
547
470
  }
548
471
  ])
549
472
  };
@@ -570,27 +493,11 @@ function removeCustomizationChoices(payload) {
570
493
  transformResponse: (payload2) => transformPaths(payload2, [
571
494
  {
572
495
  transformFn: transformRESTTimestampToSDKTimestamp,
573
- paths: [
574
- { path: "customization.createdDate" },
575
- { path: "customization.updatedDate" },
576
- {
577
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
578
- },
579
- {
580
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
581
- }
582
- ]
496
+ paths: TRANSFORM_PATHS_0
583
497
  },
584
498
  {
585
499
  transformFn: transformRESTFloatToSDKFloat,
586
- paths: [
587
- {
588
- path: "customization.choicesSettings.choices.image.focalPoint.x"
589
- },
590
- {
591
- path: "customization.choicesSettings.choices.image.focalPoint.y"
592
- }
593
- ]
500
+ paths: TRANSFORM_PATHS_1
594
501
  }
595
502
  ])
596
503
  };
@@ -603,21 +510,15 @@ function updateCustomizationChoices(payload) {
603
510
  const serializedData = transformPaths(payload, [
604
511
  {
605
512
  transformFn: transformSDKFieldMaskToRESTFieldMask,
606
- paths: [{ path: "choices.fieldMask" }]
513
+ paths: TRANSFORM_PATHS_9
607
514
  },
608
515
  {
609
516
  transformFn: transformSDKTimestampToRESTTimestamp,
610
- paths: [
611
- { path: "choices.choice.image.urlExpirationDate" },
612
- { path: "choices.choice.displayImage.urlExpirationDate" }
613
- ]
517
+ paths: TRANSFORM_PATHS_10
614
518
  },
615
519
  {
616
520
  transformFn: transformSDKFloatToRESTFloat,
617
- paths: [
618
- { path: "choices.choice.image.focalPoint.x" },
619
- { path: "choices.choice.image.focalPoint.y" }
620
- ]
521
+ paths: TRANSFORM_PATHS_11
621
522
  }
622
523
  ]);
623
524
  const metadata = {
@@ -637,27 +538,11 @@ function updateCustomizationChoices(payload) {
637
538
  transformResponse: (payload2) => transformPaths(payload2, [
638
539
  {
639
540
  transformFn: transformRESTTimestampToSDKTimestamp,
640
- paths: [
641
- { path: "customization.createdDate" },
642
- { path: "customization.updatedDate" },
643
- {
644
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
645
- },
646
- {
647
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
648
- }
649
- ]
541
+ paths: TRANSFORM_PATHS_0
650
542
  },
651
543
  {
652
544
  transformFn: transformRESTFloatToSDKFloat,
653
- paths: [
654
- {
655
- path: "customization.choicesSettings.choices.image.focalPoint.x"
656
- },
657
- {
658
- path: "customization.choicesSettings.choices.image.focalPoint.y"
659
- }
660
- ]
545
+ paths: TRANSFORM_PATHS_1
661
546
  }
662
547
  ])
663
548
  };
@@ -684,27 +569,11 @@ function reorderCustomizationChoices(payload) {
684
569
  transformResponse: (payload2) => transformPaths(payload2, [
685
570
  {
686
571
  transformFn: transformRESTTimestampToSDKTimestamp,
687
- paths: [
688
- { path: "customization.createdDate" },
689
- { path: "customization.updatedDate" },
690
- {
691
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
692
- },
693
- {
694
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
695
- }
696
- ]
572
+ paths: TRANSFORM_PATHS_0
697
573
  },
698
574
  {
699
575
  transformFn: transformRESTFloatToSDKFloat,
700
- paths: [
701
- {
702
- path: "customization.choicesSettings.choices.image.focalPoint.x"
703
- },
704
- {
705
- path: "customization.choicesSettings.choices.image.focalPoint.y"
706
- }
707
- ]
576
+ paths: TRANSFORM_PATHS_1
708
577
  }
709
578
  ])
710
579
  };
@@ -717,19 +586,11 @@ function bulkAddCustomizationChoices(payload) {
717
586
  const serializedData = transformPaths(payload, [
718
587
  {
719
588
  transformFn: transformSDKTimestampToRESTTimestamp,
720
- paths: [
721
- { path: "customizationsChoices.choices.image.urlExpirationDate" },
722
- {
723
- path: "customizationsChoices.choices.displayImage.urlExpirationDate"
724
- }
725
- ]
589
+ paths: TRANSFORM_PATHS_12
726
590
  },
727
591
  {
728
592
  transformFn: transformSDKFloatToRESTFloat,
729
- paths: [
730
- { path: "customizationsChoices.choices.image.focalPoint.x" },
731
- { path: "customizationsChoices.choices.image.focalPoint.y" }
732
- ]
593
+ paths: TRANSFORM_PATHS_13
733
594
  }
734
595
  ]);
735
596
  const metadata = {
@@ -749,27 +610,11 @@ function bulkAddCustomizationChoices(payload) {
749
610
  transformResponse: (payload2) => transformPaths(payload2, [
750
611
  {
751
612
  transformFn: transformRESTTimestampToSDKTimestamp,
752
- paths: [
753
- { path: "results.customization.createdDate" },
754
- { path: "results.customization.updatedDate" },
755
- {
756
- path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
757
- },
758
- {
759
- path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
760
- }
761
- ]
613
+ paths: TRANSFORM_PATHS_5
762
614
  },
763
615
  {
764
616
  transformFn: transformRESTFloatToSDKFloat,
765
- paths: [
766
- {
767
- path: "results.customization.choicesSettings.choices.image.focalPoint.x"
768
- },
769
- {
770
- path: "results.customization.choicesSettings.choices.image.focalPoint.y"
771
- }
772
- ]
617
+ paths: TRANSFORM_PATHS_6
773
618
  }
774
619
  ])
775
620
  };
@@ -782,31 +627,15 @@ function bulkUpdateCustomizations(payload) {
782
627
  const serializedData = transformPaths(payload, [
783
628
  {
784
629
  transformFn: transformSDKFieldMaskToRESTFieldMask,
785
- paths: [{ path: "customizations.fieldMask" }]
630
+ paths: TRANSFORM_PATHS_14
786
631
  },
787
632
  {
788
633
  transformFn: transformSDKTimestampToRESTTimestamp,
789
- paths: [
790
- { path: "customizations.customization.createdDate" },
791
- { path: "customizations.customization.updatedDate" },
792
- {
793
- path: "customizations.customization.choicesSettings.choices.image.urlExpirationDate"
794
- },
795
- {
796
- path: "customizations.customization.choicesSettings.choices.displayImage.urlExpirationDate"
797
- }
798
- ]
634
+ paths: TRANSFORM_PATHS_15
799
635
  },
800
636
  {
801
637
  transformFn: transformSDKFloatToRESTFloat,
802
- paths: [
803
- {
804
- path: "customizations.customization.choicesSettings.choices.image.focalPoint.x"
805
- },
806
- {
807
- path: "customizations.customization.choicesSettings.choices.image.focalPoint.y"
808
- }
809
- ]
638
+ paths: TRANSFORM_PATHS_16
810
639
  }
811
640
  ]);
812
641
  const metadata = {
@@ -826,27 +655,11 @@ function bulkUpdateCustomizations(payload) {
826
655
  transformResponse: (payload2) => transformPaths(payload2, [
827
656
  {
828
657
  transformFn: transformRESTTimestampToSDKTimestamp,
829
- paths: [
830
- { path: "results.customization.createdDate" },
831
- { path: "results.customization.updatedDate" },
832
- {
833
- path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
834
- },
835
- {
836
- path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
837
- }
838
- ]
658
+ paths: TRANSFORM_PATHS_5
839
659
  },
840
660
  {
841
661
  transformFn: transformRESTFloatToSDKFloat,
842
- paths: [
843
- {
844
- path: "results.customization.choicesSettings.choices.image.focalPoint.x"
845
- },
846
- {
847
- path: "results.customization.choicesSettings.choices.image.focalPoint.y"
848
- }
849
- ]
662
+ paths: TRANSFORM_PATHS_6
850
663
  }
851
664
  ])
852
665
  };
@@ -860,6 +673,34 @@ import { transformSDKImageToRESTImage } from "@wix/sdk-runtime/transformations/i
860
673
  import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/image";
861
674
  import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
862
675
  import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
676
+ var TRANSFORM_PATHS_02 = [
677
+ { path: "customization.choicesSettings.choices.image" },
678
+ { path: "customization.choicesSettings.choices.displayImage" }
679
+ ];
680
+ var TRANSFORM_PATHS_17 = [
681
+ { path: "customizations.choicesSettings.choices.image" },
682
+ { path: "customizations.choicesSettings.choices.displayImage" }
683
+ ];
684
+ var TRANSFORM_PATHS_22 = [
685
+ { path: "results.customization.choicesSettings.choices.image" },
686
+ { path: "results.customization.choicesSettings.choices.displayImage" }
687
+ ];
688
+ var TRANSFORM_PATHS_32 = [
689
+ { path: "choices.image" },
690
+ { path: "choices.displayImage" }
691
+ ];
692
+ var TRANSFORM_PATHS_42 = [
693
+ { path: "choices.choice.image" },
694
+ { path: "choices.choice.displayImage" }
695
+ ];
696
+ var TRANSFORM_PATHS_52 = [
697
+ { path: "customizationsChoices.choices.image" },
698
+ { path: "customizationsChoices.choices.displayImage" }
699
+ ];
700
+ var TRANSFORM_PATHS_62 = [
701
+ { path: "customizations.customization.choicesSettings.choices.image" },
702
+ { path: "customizations.customization.choicesSettings.choices.displayImage" }
703
+ ];
863
704
  var CustomizationType = /* @__PURE__ */ ((CustomizationType2) => {
864
705
  CustomizationType2["PRODUCT_OPTION"] = "PRODUCT_OPTION";
865
706
  CustomizationType2["MODIFIER"] = "MODIFIER";
@@ -910,10 +751,7 @@ async function createCustomization2(customization) {
910
751
  [
911
752
  {
912
753
  transformFn: transformSDKImageToRESTImage,
913
- paths: [
914
- { path: "customization.choicesSettings.choices.image" },
915
- { path: "customization.choicesSettings.choices.displayImage" }
916
- ]
754
+ paths: TRANSFORM_PATHS_02
917
755
  }
918
756
  ]
919
757
  );
@@ -926,10 +764,7 @@ async function createCustomization2(customization) {
926
764
  transformPaths2(result.data, [
927
765
  {
928
766
  transformFn: transformRESTImageToSDKImage,
929
- paths: [
930
- { path: "customization.choicesSettings.choices.image" },
931
- { path: "customization.choicesSettings.choices.displayImage" }
932
- ]
767
+ paths: TRANSFORM_PATHS_02
933
768
  }
934
769
  ])
935
770
  )?.customization;
@@ -962,10 +797,7 @@ async function getCustomization2(customizationId, options) {
962
797
  transformPaths2(result.data, [
963
798
  {
964
799
  transformFn: transformRESTImageToSDKImage,
965
- paths: [
966
- { path: "customization.choicesSettings.choices.image" },
967
- { path: "customization.choicesSettings.choices.displayImage" }
968
- ]
800
+ paths: TRANSFORM_PATHS_02
969
801
  }
970
802
  ])
971
803
  )?.customization;
@@ -996,10 +828,7 @@ async function updateCustomization2(_id, customization, options) {
996
828
  [
997
829
  {
998
830
  transformFn: transformSDKImageToRESTImage,
999
- paths: [
1000
- { path: "customization.choicesSettings.choices.image" },
1001
- { path: "customization.choicesSettings.choices.displayImage" }
1002
- ]
831
+ paths: TRANSFORM_PATHS_02
1003
832
  }
1004
833
  ]
1005
834
  );
@@ -1012,10 +841,7 @@ async function updateCustomization2(_id, customization, options) {
1012
841
  transformPaths2(result.data, [
1013
842
  {
1014
843
  transformFn: transformRESTImageToSDKImage,
1015
- paths: [
1016
- { path: "customization.choicesSettings.choices.image" },
1017
- { path: "customization.choicesSettings.choices.displayImage" }
1018
- ]
844
+ paths: TRANSFORM_PATHS_02
1019
845
  }
1020
846
  ])
1021
847
  )?.customization;
@@ -1093,10 +919,7 @@ function queryCustomizations2(options) {
1093
919
  transformPaths2(data, [
1094
920
  {
1095
921
  transformFn: transformRESTImageToSDKImage,
1096
- paths: [
1097
- { path: "customizations.choicesSettings.choices.image" },
1098
- { path: "customizations.choicesSettings.choices.displayImage" }
1099
- ]
922
+ paths: TRANSFORM_PATHS_17
1100
923
  }
1101
924
  ])
1102
925
  );
@@ -1132,10 +955,7 @@ async function typedQueryCustomizations(query, options) {
1132
955
  transformPaths2(result.data, [
1133
956
  {
1134
957
  transformFn: transformRESTImageToSDKImage,
1135
- paths: [
1136
- { path: "customizations.choicesSettings.choices.image" },
1137
- { path: "customizations.choicesSettings.choices.displayImage" }
1138
- ]
958
+ paths: TRANSFORM_PATHS_17
1139
959
  }
1140
960
  ])
1141
961
  );
@@ -1191,10 +1011,7 @@ async function bulkCreateCustomizations2(customizations, options) {
1191
1011
  [
1192
1012
  {
1193
1013
  transformFn: transformSDKImageToRESTImage,
1194
- paths: [
1195
- { path: "customizations.choicesSettings.choices.image" },
1196
- { path: "customizations.choicesSettings.choices.displayImage" }
1197
- ]
1014
+ paths: TRANSFORM_PATHS_17
1198
1015
  }
1199
1016
  ]
1200
1017
  );
@@ -1207,12 +1024,7 @@ async function bulkCreateCustomizations2(customizations, options) {
1207
1024
  transformPaths2(result.data, [
1208
1025
  {
1209
1026
  transformFn: transformRESTImageToSDKImage,
1210
- paths: [
1211
- { path: "results.customization.choicesSettings.choices.image" },
1212
- {
1213
- path: "results.customization.choicesSettings.choices.displayImage"
1214
- }
1215
- ]
1027
+ paths: TRANSFORM_PATHS_22
1216
1028
  }
1217
1029
  ])
1218
1030
  );
@@ -1244,7 +1056,7 @@ async function addCustomizationChoices2(customizationId, choices, options) {
1244
1056
  [
1245
1057
  {
1246
1058
  transformFn: transformSDKImageToRESTImage,
1247
- paths: [{ path: "choices.image" }, { path: "choices.displayImage" }]
1059
+ paths: TRANSFORM_PATHS_32
1248
1060
  }
1249
1061
  ]
1250
1062
  );
@@ -1257,10 +1069,7 @@ async function addCustomizationChoices2(customizationId, choices, options) {
1257
1069
  transformPaths2(result.data, [
1258
1070
  {
1259
1071
  transformFn: transformRESTImageToSDKImage,
1260
- paths: [
1261
- { path: "customization.choicesSettings.choices.image" },
1262
- { path: "customization.choicesSettings.choices.displayImage" }
1263
- ]
1072
+ paths: TRANSFORM_PATHS_02
1264
1073
  }
1265
1074
  ])
1266
1075
  );
@@ -1293,7 +1102,7 @@ async function setCustomizationChoices2(customizationId, choices, options) {
1293
1102
  [
1294
1103
  {
1295
1104
  transformFn: transformSDKImageToRESTImage,
1296
- paths: [{ path: "choices.image" }, { path: "choices.displayImage" }]
1105
+ paths: TRANSFORM_PATHS_32
1297
1106
  }
1298
1107
  ]
1299
1108
  );
@@ -1306,10 +1115,7 @@ async function setCustomizationChoices2(customizationId, choices, options) {
1306
1115
  transformPaths2(result.data, [
1307
1116
  {
1308
1117
  transformFn: transformRESTImageToSDKImage,
1309
- paths: [
1310
- { path: "customization.choicesSettings.choices.image" },
1311
- { path: "customization.choicesSettings.choices.displayImage" }
1312
- ]
1118
+ paths: TRANSFORM_PATHS_02
1313
1119
  }
1314
1120
  ])
1315
1121
  );
@@ -1350,10 +1156,7 @@ async function removeCustomizationChoices2(customizationId, choiceIds, options)
1350
1156
  transformPaths2(result.data, [
1351
1157
  {
1352
1158
  transformFn: transformRESTImageToSDKImage,
1353
- paths: [
1354
- { path: "customization.choicesSettings.choices.image" },
1355
- { path: "customization.choicesSettings.choices.displayImage" }
1356
- ]
1159
+ paths: TRANSFORM_PATHS_02
1357
1160
  }
1358
1161
  ])
1359
1162
  );
@@ -1388,10 +1191,7 @@ async function updateCustomizationChoices2(customizationId, revision, options) {
1388
1191
  [
1389
1192
  {
1390
1193
  transformFn: transformSDKImageToRESTImage,
1391
- paths: [
1392
- { path: "choices.choice.image" },
1393
- { path: "choices.choice.displayImage" }
1394
- ]
1194
+ paths: TRANSFORM_PATHS_42
1395
1195
  }
1396
1196
  ]
1397
1197
  );
@@ -1406,10 +1206,7 @@ async function updateCustomizationChoices2(customizationId, revision, options) {
1406
1206
  transformPaths2(result.data, [
1407
1207
  {
1408
1208
  transformFn: transformRESTImageToSDKImage,
1409
- paths: [
1410
- { path: "customization.choicesSettings.choices.image" },
1411
- { path: "customization.choicesSettings.choices.displayImage" }
1412
- ]
1209
+ paths: TRANSFORM_PATHS_02
1413
1210
  }
1414
1211
  ])
1415
1212
  );
@@ -1451,10 +1248,7 @@ async function reorderCustomizationChoices2(customizationId, revision, options)
1451
1248
  transformPaths2(result.data, [
1452
1249
  {
1453
1250
  transformFn: transformRESTImageToSDKImage,
1454
- paths: [
1455
- { path: "customization.choicesSettings.choices.image" },
1456
- { path: "customization.choicesSettings.choices.displayImage" }
1457
- ]
1251
+ paths: TRANSFORM_PATHS_02
1458
1252
  }
1459
1253
  ])
1460
1254
  );
@@ -1488,10 +1282,7 @@ async function bulkAddCustomizationChoices2(customizationsChoices, options) {
1488
1282
  [
1489
1283
  {
1490
1284
  transformFn: transformSDKImageToRESTImage,
1491
- paths: [
1492
- { path: "customizationsChoices.choices.image" },
1493
- { path: "customizationsChoices.choices.displayImage" }
1494
- ]
1285
+ paths: TRANSFORM_PATHS_52
1495
1286
  }
1496
1287
  ]
1497
1288
  );
@@ -1506,12 +1297,7 @@ async function bulkAddCustomizationChoices2(customizationsChoices, options) {
1506
1297
  transformPaths2(result.data, [
1507
1298
  {
1508
1299
  transformFn: transformRESTImageToSDKImage,
1509
- paths: [
1510
- { path: "results.customization.choicesSettings.choices.image" },
1511
- {
1512
- path: "results.customization.choicesSettings.choices.displayImage"
1513
- }
1514
- ]
1300
+ paths: TRANSFORM_PATHS_22
1515
1301
  }
1516
1302
  ])
1517
1303
  );
@@ -1544,14 +1330,7 @@ async function bulkUpdateCustomizations2(customizations, options) {
1544
1330
  [
1545
1331
  {
1546
1332
  transformFn: transformSDKImageToRESTImage,
1547
- paths: [
1548
- {
1549
- path: "customizations.customization.choicesSettings.choices.image"
1550
- },
1551
- {
1552
- path: "customizations.customization.choicesSettings.choices.displayImage"
1553
- }
1554
- ]
1333
+ paths: TRANSFORM_PATHS_62
1555
1334
  }
1556
1335
  ]
1557
1336
  );
@@ -1564,12 +1343,7 @@ async function bulkUpdateCustomizations2(customizations, options) {
1564
1343
  transformPaths2(result.data, [
1565
1344
  {
1566
1345
  transformFn: transformRESTImageToSDKImage,
1567
- paths: [
1568
- { path: "results.customization.choicesSettings.choices.image" },
1569
- {
1570
- path: "results.customization.choicesSettings.choices.displayImage"
1571
- }
1572
- ]
1346
+ paths: TRANSFORM_PATHS_22
1573
1347
  }
1574
1348
  ])
1575
1349
  );