@wix/auto_sdk_stores_customizations-v-3 1.0.98 → 1.0.100

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.
@@ -22,6 +22,89 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
22
22
  import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
23
23
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
24
24
  import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
25
+ var TRANSFORM_PATHS_0 = [
26
+ { path: "customization.createdDate" },
27
+ { path: "customization.updatedDate" },
28
+ { path: "customization.choicesSettings.choices.image.urlExpirationDate" },
29
+ {
30
+ path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
31
+ }
32
+ ];
33
+ var TRANSFORM_PATHS_1 = [
34
+ { path: "customization.choicesSettings.choices.image.focalPoint.x" },
35
+ { path: "customization.choicesSettings.choices.image.focalPoint.y" }
36
+ ];
37
+ var TRANSFORM_PATHS_2 = [{ path: "fieldMask" }];
38
+ var TRANSFORM_PATHS_3 = [
39
+ { path: "customizations.createdDate" },
40
+ { path: "customizations.updatedDate" },
41
+ { path: "customizations.choicesSettings.choices.image.urlExpirationDate" },
42
+ {
43
+ path: "customizations.choicesSettings.choices.displayImage.urlExpirationDate"
44
+ }
45
+ ];
46
+ var TRANSFORM_PATHS_4 = [
47
+ { path: "customizations.choicesSettings.choices.image.focalPoint.x" },
48
+ { path: "customizations.choicesSettings.choices.image.focalPoint.y" }
49
+ ];
50
+ var TRANSFORM_PATHS_5 = [
51
+ { path: "results.customization.createdDate" },
52
+ { path: "results.customization.updatedDate" },
53
+ {
54
+ path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
55
+ },
56
+ {
57
+ path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
58
+ }
59
+ ];
60
+ var TRANSFORM_PATHS_6 = [
61
+ { path: "results.customization.choicesSettings.choices.image.focalPoint.x" },
62
+ { path: "results.customization.choicesSettings.choices.image.focalPoint.y" }
63
+ ];
64
+ var TRANSFORM_PATHS_7 = [
65
+ { path: "choices.image.urlExpirationDate" },
66
+ { path: "choices.displayImage.urlExpirationDate" }
67
+ ];
68
+ var TRANSFORM_PATHS_8 = [
69
+ { path: "choices.image.focalPoint.x" },
70
+ { path: "choices.image.focalPoint.y" }
71
+ ];
72
+ var TRANSFORM_PATHS_9 = [{ path: "choices.fieldMask" }];
73
+ var TRANSFORM_PATHS_10 = [
74
+ { path: "choices.choice.image.urlExpirationDate" },
75
+ { path: "choices.choice.displayImage.urlExpirationDate" }
76
+ ];
77
+ var TRANSFORM_PATHS_11 = [
78
+ { path: "choices.choice.image.focalPoint.x" },
79
+ { path: "choices.choice.image.focalPoint.y" }
80
+ ];
81
+ var TRANSFORM_PATHS_12 = [
82
+ { path: "customizationsChoices.choices.image.urlExpirationDate" },
83
+ { path: "customizationsChoices.choices.displayImage.urlExpirationDate" }
84
+ ];
85
+ var TRANSFORM_PATHS_13 = [
86
+ { path: "customizationsChoices.choices.image.focalPoint.x" },
87
+ { path: "customizationsChoices.choices.image.focalPoint.y" }
88
+ ];
89
+ var TRANSFORM_PATHS_14 = [{ path: "customizations.fieldMask" }];
90
+ var TRANSFORM_PATHS_15 = [
91
+ { path: "customizations.customization.createdDate" },
92
+ { path: "customizations.customization.updatedDate" },
93
+ {
94
+ path: "customizations.customization.choicesSettings.choices.image.urlExpirationDate"
95
+ },
96
+ {
97
+ path: "customizations.customization.choicesSettings.choices.displayImage.urlExpirationDate"
98
+ }
99
+ ];
100
+ var TRANSFORM_PATHS_16 = [
101
+ {
102
+ path: "customizations.customization.choicesSettings.choices.image.focalPoint.x"
103
+ },
104
+ {
105
+ path: "customizations.customization.choicesSettings.choices.image.focalPoint.y"
106
+ }
107
+ ];
25
108
  function resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl(opts) {
26
109
  const domainToMappings = {
27
110
  "manage._base_domain_": [
@@ -79,23 +162,11 @@ function createCustomization(payload) {
79
162
  const serializedData = transformPaths(payload, [
80
163
  {
81
164
  transformFn: transformSDKTimestampToRESTTimestamp,
82
- paths: [
83
- { path: "customization.createdDate" },
84
- { path: "customization.updatedDate" },
85
- {
86
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
87
- },
88
- {
89
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
90
- }
91
- ]
165
+ paths: TRANSFORM_PATHS_0
92
166
  },
93
167
  {
94
168
  transformFn: transformSDKFloatToRESTFloat,
95
- paths: [
96
- { path: "customization.choicesSettings.choices.image.focalPoint.x" },
97
- { path: "customization.choicesSettings.choices.image.focalPoint.y" }
98
- ]
169
+ paths: TRANSFORM_PATHS_1
99
170
  }
100
171
  ]);
101
172
  const metadata = {
@@ -115,27 +186,11 @@ function createCustomization(payload) {
115
186
  transformResponse: (payload2) => transformPaths(payload2, [
116
187
  {
117
188
  transformFn: transformRESTTimestampToSDKTimestamp,
118
- paths: [
119
- { path: "customization.createdDate" },
120
- { path: "customization.updatedDate" },
121
- {
122
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
123
- },
124
- {
125
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
126
- }
127
- ]
189
+ paths: TRANSFORM_PATHS_0
128
190
  },
129
191
  {
130
192
  transformFn: transformRESTFloatToSDKFloat,
131
- paths: [
132
- {
133
- path: "customization.choicesSettings.choices.image.focalPoint.x"
134
- },
135
- {
136
- path: "customization.choicesSettings.choices.image.focalPoint.y"
137
- }
138
- ]
193
+ paths: TRANSFORM_PATHS_1
139
194
  }
140
195
  ])
141
196
  };
@@ -162,27 +217,11 @@ function getCustomization(payload) {
162
217
  transformResponse: (payload2) => transformPaths(payload2, [
163
218
  {
164
219
  transformFn: transformRESTTimestampToSDKTimestamp,
165
- paths: [
166
- { path: "customization.createdDate" },
167
- { path: "customization.updatedDate" },
168
- {
169
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
170
- },
171
- {
172
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
173
- }
174
- ]
220
+ paths: TRANSFORM_PATHS_0
175
221
  },
176
222
  {
177
223
  transformFn: transformRESTFloatToSDKFloat,
178
- paths: [
179
- {
180
- path: "customization.choicesSettings.choices.image.focalPoint.x"
181
- },
182
- {
183
- path: "customization.choicesSettings.choices.image.focalPoint.y"
184
- }
185
- ]
224
+ paths: TRANSFORM_PATHS_1
186
225
  }
187
226
  ])
188
227
  };
@@ -195,27 +234,15 @@ function updateCustomization(payload) {
195
234
  const serializedData = transformPaths(payload, [
196
235
  {
197
236
  transformFn: transformSDKFieldMaskToRESTFieldMask,
198
- paths: [{ path: "fieldMask" }]
237
+ paths: TRANSFORM_PATHS_2
199
238
  },
200
239
  {
201
240
  transformFn: transformSDKTimestampToRESTTimestamp,
202
- paths: [
203
- { path: "customization.createdDate" },
204
- { path: "customization.updatedDate" },
205
- {
206
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
207
- },
208
- {
209
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
210
- }
211
- ]
241
+ paths: TRANSFORM_PATHS_0
212
242
  },
213
243
  {
214
244
  transformFn: transformSDKFloatToRESTFloat,
215
- paths: [
216
- { path: "customization.choicesSettings.choices.image.focalPoint.x" },
217
- { path: "customization.choicesSettings.choices.image.focalPoint.y" }
218
- ]
245
+ paths: TRANSFORM_PATHS_1
219
246
  }
220
247
  ]);
221
248
  const metadata = {
@@ -235,27 +262,11 @@ function updateCustomization(payload) {
235
262
  transformResponse: (payload2) => transformPaths(payload2, [
236
263
  {
237
264
  transformFn: transformRESTTimestampToSDKTimestamp,
238
- paths: [
239
- { path: "customization.createdDate" },
240
- { path: "customization.updatedDate" },
241
- {
242
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
243
- },
244
- {
245
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
246
- }
247
- ]
265
+ paths: TRANSFORM_PATHS_0
248
266
  },
249
267
  {
250
268
  transformFn: transformRESTFloatToSDKFloat,
251
- paths: [
252
- {
253
- path: "customization.choicesSettings.choices.image.focalPoint.x"
254
- },
255
- {
256
- path: "customization.choicesSettings.choices.image.focalPoint.y"
257
- }
258
- ]
269
+ paths: TRANSFORM_PATHS_1
259
270
  }
260
271
  ])
261
272
  };
@@ -303,27 +314,11 @@ function queryCustomizations(payload) {
303
314
  transformResponse: (payload2) => transformPaths(payload2, [
304
315
  {
305
316
  transformFn: transformRESTTimestampToSDKTimestamp,
306
- paths: [
307
- { path: "customizations.createdDate" },
308
- { path: "customizations.updatedDate" },
309
- {
310
- path: "customizations.choicesSettings.choices.image.urlExpirationDate"
311
- },
312
- {
313
- path: "customizations.choicesSettings.choices.displayImage.urlExpirationDate"
314
- }
315
- ]
317
+ paths: TRANSFORM_PATHS_3
316
318
  },
317
319
  {
318
320
  transformFn: transformRESTFloatToSDKFloat,
319
- paths: [
320
- {
321
- path: "customizations.choicesSettings.choices.image.focalPoint.x"
322
- },
323
- {
324
- path: "customizations.choicesSettings.choices.image.focalPoint.y"
325
- }
326
- ]
321
+ paths: TRANSFORM_PATHS_4
327
322
  }
328
323
  ]),
329
324
  fallback: [
@@ -368,23 +363,11 @@ function bulkCreateCustomizations(payload) {
368
363
  const serializedData = transformPaths(payload, [
369
364
  {
370
365
  transformFn: transformSDKTimestampToRESTTimestamp,
371
- paths: [
372
- { path: "customizations.createdDate" },
373
- { path: "customizations.updatedDate" },
374
- {
375
- path: "customizations.choicesSettings.choices.image.urlExpirationDate"
376
- },
377
- {
378
- path: "customizations.choicesSettings.choices.displayImage.urlExpirationDate"
379
- }
380
- ]
366
+ paths: TRANSFORM_PATHS_3
381
367
  },
382
368
  {
383
369
  transformFn: transformSDKFloatToRESTFloat,
384
- paths: [
385
- { path: "customizations.choicesSettings.choices.image.focalPoint.x" },
386
- { path: "customizations.choicesSettings.choices.image.focalPoint.y" }
387
- ]
370
+ paths: TRANSFORM_PATHS_4
388
371
  }
389
372
  ]);
390
373
  const metadata = {
@@ -404,27 +387,11 @@ function bulkCreateCustomizations(payload) {
404
387
  transformResponse: (payload2) => transformPaths(payload2, [
405
388
  {
406
389
  transformFn: transformRESTTimestampToSDKTimestamp,
407
- paths: [
408
- { path: "results.customization.createdDate" },
409
- { path: "results.customization.updatedDate" },
410
- {
411
- path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
412
- },
413
- {
414
- path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
415
- }
416
- ]
390
+ paths: TRANSFORM_PATHS_5
417
391
  },
418
392
  {
419
393
  transformFn: transformRESTFloatToSDKFloat,
420
- paths: [
421
- {
422
- path: "results.customization.choicesSettings.choices.image.focalPoint.x"
423
- },
424
- {
425
- path: "results.customization.choicesSettings.choices.image.focalPoint.y"
426
- }
427
- ]
394
+ paths: TRANSFORM_PATHS_6
428
395
  }
429
396
  ])
430
397
  };
@@ -437,17 +404,11 @@ function addCustomizationChoices(payload) {
437
404
  const serializedData = transformPaths(payload, [
438
405
  {
439
406
  transformFn: transformSDKTimestampToRESTTimestamp,
440
- paths: [
441
- { path: "choices.image.urlExpirationDate" },
442
- { path: "choices.displayImage.urlExpirationDate" }
443
- ]
407
+ paths: TRANSFORM_PATHS_7
444
408
  },
445
409
  {
446
410
  transformFn: transformSDKFloatToRESTFloat,
447
- paths: [
448
- { path: "choices.image.focalPoint.x" },
449
- { path: "choices.image.focalPoint.y" }
450
- ]
411
+ paths: TRANSFORM_PATHS_8
451
412
  }
452
413
  ]);
453
414
  const metadata = {
@@ -467,27 +428,11 @@ function addCustomizationChoices(payload) {
467
428
  transformResponse: (payload2) => transformPaths(payload2, [
468
429
  {
469
430
  transformFn: transformRESTTimestampToSDKTimestamp,
470
- paths: [
471
- { path: "customization.createdDate" },
472
- { path: "customization.updatedDate" },
473
- {
474
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
475
- },
476
- {
477
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
478
- }
479
- ]
431
+ paths: TRANSFORM_PATHS_0
480
432
  },
481
433
  {
482
434
  transformFn: transformRESTFloatToSDKFloat,
483
- paths: [
484
- {
485
- path: "customization.choicesSettings.choices.image.focalPoint.x"
486
- },
487
- {
488
- path: "customization.choicesSettings.choices.image.focalPoint.y"
489
- }
490
- ]
435
+ paths: TRANSFORM_PATHS_1
491
436
  }
492
437
  ])
493
438
  };
@@ -500,17 +445,11 @@ function setCustomizationChoices(payload) {
500
445
  const serializedData = transformPaths(payload, [
501
446
  {
502
447
  transformFn: transformSDKTimestampToRESTTimestamp,
503
- paths: [
504
- { path: "choices.image.urlExpirationDate" },
505
- { path: "choices.displayImage.urlExpirationDate" }
506
- ]
448
+ paths: TRANSFORM_PATHS_7
507
449
  },
508
450
  {
509
451
  transformFn: transformSDKFloatToRESTFloat,
510
- paths: [
511
- { path: "choices.image.focalPoint.x" },
512
- { path: "choices.image.focalPoint.y" }
513
- ]
452
+ paths: TRANSFORM_PATHS_8
514
453
  }
515
454
  ]);
516
455
  const metadata = {
@@ -530,27 +469,11 @@ function setCustomizationChoices(payload) {
530
469
  transformResponse: (payload2) => transformPaths(payload2, [
531
470
  {
532
471
  transformFn: transformRESTTimestampToSDKTimestamp,
533
- paths: [
534
- { path: "customization.createdDate" },
535
- { path: "customization.updatedDate" },
536
- {
537
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
538
- },
539
- {
540
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
541
- }
542
- ]
472
+ paths: TRANSFORM_PATHS_0
543
473
  },
544
474
  {
545
475
  transformFn: transformRESTFloatToSDKFloat,
546
- paths: [
547
- {
548
- path: "customization.choicesSettings.choices.image.focalPoint.x"
549
- },
550
- {
551
- path: "customization.choicesSettings.choices.image.focalPoint.y"
552
- }
553
- ]
476
+ paths: TRANSFORM_PATHS_1
554
477
  }
555
478
  ])
556
479
  };
@@ -577,27 +500,11 @@ function removeCustomizationChoices(payload) {
577
500
  transformResponse: (payload2) => transformPaths(payload2, [
578
501
  {
579
502
  transformFn: transformRESTTimestampToSDKTimestamp,
580
- paths: [
581
- { path: "customization.createdDate" },
582
- { path: "customization.updatedDate" },
583
- {
584
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
585
- },
586
- {
587
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
588
- }
589
- ]
503
+ paths: TRANSFORM_PATHS_0
590
504
  },
591
505
  {
592
506
  transformFn: transformRESTFloatToSDKFloat,
593
- paths: [
594
- {
595
- path: "customization.choicesSettings.choices.image.focalPoint.x"
596
- },
597
- {
598
- path: "customization.choicesSettings.choices.image.focalPoint.y"
599
- }
600
- ]
507
+ paths: TRANSFORM_PATHS_1
601
508
  }
602
509
  ])
603
510
  };
@@ -610,21 +517,15 @@ function updateCustomizationChoices(payload) {
610
517
  const serializedData = transformPaths(payload, [
611
518
  {
612
519
  transformFn: transformSDKFieldMaskToRESTFieldMask,
613
- paths: [{ path: "choices.fieldMask" }]
520
+ paths: TRANSFORM_PATHS_9
614
521
  },
615
522
  {
616
523
  transformFn: transformSDKTimestampToRESTTimestamp,
617
- paths: [
618
- { path: "choices.choice.image.urlExpirationDate" },
619
- { path: "choices.choice.displayImage.urlExpirationDate" }
620
- ]
524
+ paths: TRANSFORM_PATHS_10
621
525
  },
622
526
  {
623
527
  transformFn: transformSDKFloatToRESTFloat,
624
- paths: [
625
- { path: "choices.choice.image.focalPoint.x" },
626
- { path: "choices.choice.image.focalPoint.y" }
627
- ]
528
+ paths: TRANSFORM_PATHS_11
628
529
  }
629
530
  ]);
630
531
  const metadata = {
@@ -644,27 +545,11 @@ function updateCustomizationChoices(payload) {
644
545
  transformResponse: (payload2) => transformPaths(payload2, [
645
546
  {
646
547
  transformFn: transformRESTTimestampToSDKTimestamp,
647
- paths: [
648
- { path: "customization.createdDate" },
649
- { path: "customization.updatedDate" },
650
- {
651
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
652
- },
653
- {
654
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
655
- }
656
- ]
548
+ paths: TRANSFORM_PATHS_0
657
549
  },
658
550
  {
659
551
  transformFn: transformRESTFloatToSDKFloat,
660
- paths: [
661
- {
662
- path: "customization.choicesSettings.choices.image.focalPoint.x"
663
- },
664
- {
665
- path: "customization.choicesSettings.choices.image.focalPoint.y"
666
- }
667
- ]
552
+ paths: TRANSFORM_PATHS_1
668
553
  }
669
554
  ])
670
555
  };
@@ -691,27 +576,11 @@ function reorderCustomizationChoices(payload) {
691
576
  transformResponse: (payload2) => transformPaths(payload2, [
692
577
  {
693
578
  transformFn: transformRESTTimestampToSDKTimestamp,
694
- paths: [
695
- { path: "customization.createdDate" },
696
- { path: "customization.updatedDate" },
697
- {
698
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
699
- },
700
- {
701
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
702
- }
703
- ]
579
+ paths: TRANSFORM_PATHS_0
704
580
  },
705
581
  {
706
582
  transformFn: transformRESTFloatToSDKFloat,
707
- paths: [
708
- {
709
- path: "customization.choicesSettings.choices.image.focalPoint.x"
710
- },
711
- {
712
- path: "customization.choicesSettings.choices.image.focalPoint.y"
713
- }
714
- ]
583
+ paths: TRANSFORM_PATHS_1
715
584
  }
716
585
  ])
717
586
  };
@@ -724,19 +593,11 @@ function bulkAddCustomizationChoices(payload) {
724
593
  const serializedData = transformPaths(payload, [
725
594
  {
726
595
  transformFn: transformSDKTimestampToRESTTimestamp,
727
- paths: [
728
- { path: "customizationsChoices.choices.image.urlExpirationDate" },
729
- {
730
- path: "customizationsChoices.choices.displayImage.urlExpirationDate"
731
- }
732
- ]
596
+ paths: TRANSFORM_PATHS_12
733
597
  },
734
598
  {
735
599
  transformFn: transformSDKFloatToRESTFloat,
736
- paths: [
737
- { path: "customizationsChoices.choices.image.focalPoint.x" },
738
- { path: "customizationsChoices.choices.image.focalPoint.y" }
739
- ]
600
+ paths: TRANSFORM_PATHS_13
740
601
  }
741
602
  ]);
742
603
  const metadata = {
@@ -756,27 +617,11 @@ function bulkAddCustomizationChoices(payload) {
756
617
  transformResponse: (payload2) => transformPaths(payload2, [
757
618
  {
758
619
  transformFn: transformRESTTimestampToSDKTimestamp,
759
- paths: [
760
- { path: "results.customization.createdDate" },
761
- { path: "results.customization.updatedDate" },
762
- {
763
- path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
764
- },
765
- {
766
- path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
767
- }
768
- ]
620
+ paths: TRANSFORM_PATHS_5
769
621
  },
770
622
  {
771
623
  transformFn: transformRESTFloatToSDKFloat,
772
- paths: [
773
- {
774
- path: "results.customization.choicesSettings.choices.image.focalPoint.x"
775
- },
776
- {
777
- path: "results.customization.choicesSettings.choices.image.focalPoint.y"
778
- }
779
- ]
624
+ paths: TRANSFORM_PATHS_6
780
625
  }
781
626
  ])
782
627
  };
@@ -789,31 +634,15 @@ function bulkUpdateCustomizations(payload) {
789
634
  const serializedData = transformPaths(payload, [
790
635
  {
791
636
  transformFn: transformSDKFieldMaskToRESTFieldMask,
792
- paths: [{ path: "customizations.fieldMask" }]
637
+ paths: TRANSFORM_PATHS_14
793
638
  },
794
639
  {
795
640
  transformFn: transformSDKTimestampToRESTTimestamp,
796
- paths: [
797
- { path: "customizations.customization.createdDate" },
798
- { path: "customizations.customization.updatedDate" },
799
- {
800
- path: "customizations.customization.choicesSettings.choices.image.urlExpirationDate"
801
- },
802
- {
803
- path: "customizations.customization.choicesSettings.choices.displayImage.urlExpirationDate"
804
- }
805
- ]
641
+ paths: TRANSFORM_PATHS_15
806
642
  },
807
643
  {
808
644
  transformFn: transformSDKFloatToRESTFloat,
809
- paths: [
810
- {
811
- path: "customizations.customization.choicesSettings.choices.image.focalPoint.x"
812
- },
813
- {
814
- path: "customizations.customization.choicesSettings.choices.image.focalPoint.y"
815
- }
816
- ]
645
+ paths: TRANSFORM_PATHS_16
817
646
  }
818
647
  ]);
819
648
  const metadata = {
@@ -833,27 +662,11 @@ function bulkUpdateCustomizations(payload) {
833
662
  transformResponse: (payload2) => transformPaths(payload2, [
834
663
  {
835
664
  transformFn: transformRESTTimestampToSDKTimestamp,
836
- paths: [
837
- { path: "results.customization.createdDate" },
838
- { path: "results.customization.updatedDate" },
839
- {
840
- path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
841
- },
842
- {
843
- path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
844
- }
845
- ]
665
+ paths: TRANSFORM_PATHS_5
846
666
  },
847
667
  {
848
668
  transformFn: transformRESTFloatToSDKFloat,
849
- paths: [
850
- {
851
- path: "results.customization.choicesSettings.choices.image.focalPoint.x"
852
- },
853
- {
854
- path: "results.customization.choicesSettings.choices.image.focalPoint.y"
855
- }
856
- ]
669
+ paths: TRANSFORM_PATHS_6
857
670
  }
858
671
  ])
859
672
  };
@@ -867,6 +680,34 @@ import { transformSDKImageToRESTImage } from "@wix/sdk-runtime/transformations/i
867
680
  import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/image";
868
681
  import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
869
682
  import { createQueryUtils } from "@wix/sdk-runtime/query-builder-utils";
683
+ var TRANSFORM_PATHS_02 = [
684
+ { path: "customization.choicesSettings.choices.image" },
685
+ { path: "customization.choicesSettings.choices.displayImage" }
686
+ ];
687
+ var TRANSFORM_PATHS_17 = [
688
+ { path: "customizations.choicesSettings.choices.image" },
689
+ { path: "customizations.choicesSettings.choices.displayImage" }
690
+ ];
691
+ var TRANSFORM_PATHS_22 = [
692
+ { path: "results.customization.choicesSettings.choices.image" },
693
+ { path: "results.customization.choicesSettings.choices.displayImage" }
694
+ ];
695
+ var TRANSFORM_PATHS_32 = [
696
+ { path: "choices.image" },
697
+ { path: "choices.displayImage" }
698
+ ];
699
+ var TRANSFORM_PATHS_42 = [
700
+ { path: "choices.choice.image" },
701
+ { path: "choices.choice.displayImage" }
702
+ ];
703
+ var TRANSFORM_PATHS_52 = [
704
+ { path: "customizationsChoices.choices.image" },
705
+ { path: "customizationsChoices.choices.displayImage" }
706
+ ];
707
+ var TRANSFORM_PATHS_62 = [
708
+ { path: "customizations.customization.choicesSettings.choices.image" },
709
+ { path: "customizations.customization.choicesSettings.choices.displayImage" }
710
+ ];
870
711
  var CustomizationType = /* @__PURE__ */ ((CustomizationType2) => {
871
712
  CustomizationType2["PRODUCT_OPTION"] = "PRODUCT_OPTION";
872
713
  CustomizationType2["MODIFIER"] = "MODIFIER";
@@ -917,10 +758,7 @@ async function createCustomization2(customization) {
917
758
  [
918
759
  {
919
760
  transformFn: transformSDKImageToRESTImage,
920
- paths: [
921
- { path: "customization.choicesSettings.choices.image" },
922
- { path: "customization.choicesSettings.choices.displayImage" }
923
- ]
761
+ paths: TRANSFORM_PATHS_02
924
762
  }
925
763
  ]
926
764
  );
@@ -933,10 +771,7 @@ async function createCustomization2(customization) {
933
771
  transformPaths2(result.data, [
934
772
  {
935
773
  transformFn: transformRESTImageToSDKImage,
936
- paths: [
937
- { path: "customization.choicesSettings.choices.image" },
938
- { path: "customization.choicesSettings.choices.displayImage" }
939
- ]
774
+ paths: TRANSFORM_PATHS_02
940
775
  }
941
776
  ])
942
777
  )?.customization;
@@ -969,10 +804,7 @@ async function getCustomization2(customizationId, options) {
969
804
  transformPaths2(result.data, [
970
805
  {
971
806
  transformFn: transformRESTImageToSDKImage,
972
- paths: [
973
- { path: "customization.choicesSettings.choices.image" },
974
- { path: "customization.choicesSettings.choices.displayImage" }
975
- ]
807
+ paths: TRANSFORM_PATHS_02
976
808
  }
977
809
  ])
978
810
  )?.customization;
@@ -1003,10 +835,7 @@ async function updateCustomization2(_id, customization, options) {
1003
835
  [
1004
836
  {
1005
837
  transformFn: transformSDKImageToRESTImage,
1006
- paths: [
1007
- { path: "customization.choicesSettings.choices.image" },
1008
- { path: "customization.choicesSettings.choices.displayImage" }
1009
- ]
838
+ paths: TRANSFORM_PATHS_02
1010
839
  }
1011
840
  ]
1012
841
  );
@@ -1019,10 +848,7 @@ async function updateCustomization2(_id, customization, options) {
1019
848
  transformPaths2(result.data, [
1020
849
  {
1021
850
  transformFn: transformRESTImageToSDKImage,
1022
- paths: [
1023
- { path: "customization.choicesSettings.choices.image" },
1024
- { path: "customization.choicesSettings.choices.displayImage" }
1025
- ]
851
+ paths: TRANSFORM_PATHS_02
1026
852
  }
1027
853
  ])
1028
854
  )?.customization;
@@ -1100,10 +926,7 @@ function queryCustomizations2(options) {
1100
926
  transformPaths2(data, [
1101
927
  {
1102
928
  transformFn: transformRESTImageToSDKImage,
1103
- paths: [
1104
- { path: "customizations.choicesSettings.choices.image" },
1105
- { path: "customizations.choicesSettings.choices.displayImage" }
1106
- ]
929
+ paths: TRANSFORM_PATHS_17
1107
930
  }
1108
931
  ])
1109
932
  );
@@ -1139,10 +962,7 @@ async function typedQueryCustomizations(query, options) {
1139
962
  transformPaths2(result.data, [
1140
963
  {
1141
964
  transformFn: transformRESTImageToSDKImage,
1142
- paths: [
1143
- { path: "customizations.choicesSettings.choices.image" },
1144
- { path: "customizations.choicesSettings.choices.displayImage" }
1145
- ]
965
+ paths: TRANSFORM_PATHS_17
1146
966
  }
1147
967
  ])
1148
968
  );
@@ -1198,10 +1018,7 @@ async function bulkCreateCustomizations2(customizations, options) {
1198
1018
  [
1199
1019
  {
1200
1020
  transformFn: transformSDKImageToRESTImage,
1201
- paths: [
1202
- { path: "customizations.choicesSettings.choices.image" },
1203
- { path: "customizations.choicesSettings.choices.displayImage" }
1204
- ]
1021
+ paths: TRANSFORM_PATHS_17
1205
1022
  }
1206
1023
  ]
1207
1024
  );
@@ -1214,12 +1031,7 @@ async function bulkCreateCustomizations2(customizations, options) {
1214
1031
  transformPaths2(result.data, [
1215
1032
  {
1216
1033
  transformFn: transformRESTImageToSDKImage,
1217
- paths: [
1218
- { path: "results.customization.choicesSettings.choices.image" },
1219
- {
1220
- path: "results.customization.choicesSettings.choices.displayImage"
1221
- }
1222
- ]
1034
+ paths: TRANSFORM_PATHS_22
1223
1035
  }
1224
1036
  ])
1225
1037
  );
@@ -1251,7 +1063,7 @@ async function addCustomizationChoices2(customizationId, choices, options) {
1251
1063
  [
1252
1064
  {
1253
1065
  transformFn: transformSDKImageToRESTImage,
1254
- paths: [{ path: "choices.image" }, { path: "choices.displayImage" }]
1066
+ paths: TRANSFORM_PATHS_32
1255
1067
  }
1256
1068
  ]
1257
1069
  );
@@ -1264,10 +1076,7 @@ async function addCustomizationChoices2(customizationId, choices, options) {
1264
1076
  transformPaths2(result.data, [
1265
1077
  {
1266
1078
  transformFn: transformRESTImageToSDKImage,
1267
- paths: [
1268
- { path: "customization.choicesSettings.choices.image" },
1269
- { path: "customization.choicesSettings.choices.displayImage" }
1270
- ]
1079
+ paths: TRANSFORM_PATHS_02
1271
1080
  }
1272
1081
  ])
1273
1082
  );
@@ -1300,7 +1109,7 @@ async function setCustomizationChoices2(customizationId, choices, options) {
1300
1109
  [
1301
1110
  {
1302
1111
  transformFn: transformSDKImageToRESTImage,
1303
- paths: [{ path: "choices.image" }, { path: "choices.displayImage" }]
1112
+ paths: TRANSFORM_PATHS_32
1304
1113
  }
1305
1114
  ]
1306
1115
  );
@@ -1313,10 +1122,7 @@ async function setCustomizationChoices2(customizationId, choices, options) {
1313
1122
  transformPaths2(result.data, [
1314
1123
  {
1315
1124
  transformFn: transformRESTImageToSDKImage,
1316
- paths: [
1317
- { path: "customization.choicesSettings.choices.image" },
1318
- { path: "customization.choicesSettings.choices.displayImage" }
1319
- ]
1125
+ paths: TRANSFORM_PATHS_02
1320
1126
  }
1321
1127
  ])
1322
1128
  );
@@ -1357,10 +1163,7 @@ async function removeCustomizationChoices2(customizationId, choiceIds, options)
1357
1163
  transformPaths2(result.data, [
1358
1164
  {
1359
1165
  transformFn: transformRESTImageToSDKImage,
1360
- paths: [
1361
- { path: "customization.choicesSettings.choices.image" },
1362
- { path: "customization.choicesSettings.choices.displayImage" }
1363
- ]
1166
+ paths: TRANSFORM_PATHS_02
1364
1167
  }
1365
1168
  ])
1366
1169
  );
@@ -1395,10 +1198,7 @@ async function updateCustomizationChoices2(customizationId, revision, options) {
1395
1198
  [
1396
1199
  {
1397
1200
  transformFn: transformSDKImageToRESTImage,
1398
- paths: [
1399
- { path: "choices.choice.image" },
1400
- { path: "choices.choice.displayImage" }
1401
- ]
1201
+ paths: TRANSFORM_PATHS_42
1402
1202
  }
1403
1203
  ]
1404
1204
  );
@@ -1413,10 +1213,7 @@ async function updateCustomizationChoices2(customizationId, revision, options) {
1413
1213
  transformPaths2(result.data, [
1414
1214
  {
1415
1215
  transformFn: transformRESTImageToSDKImage,
1416
- paths: [
1417
- { path: "customization.choicesSettings.choices.image" },
1418
- { path: "customization.choicesSettings.choices.displayImage" }
1419
- ]
1216
+ paths: TRANSFORM_PATHS_02
1420
1217
  }
1421
1218
  ])
1422
1219
  );
@@ -1458,10 +1255,7 @@ async function reorderCustomizationChoices2(customizationId, revision, options)
1458
1255
  transformPaths2(result.data, [
1459
1256
  {
1460
1257
  transformFn: transformRESTImageToSDKImage,
1461
- paths: [
1462
- { path: "customization.choicesSettings.choices.image" },
1463
- { path: "customization.choicesSettings.choices.displayImage" }
1464
- ]
1258
+ paths: TRANSFORM_PATHS_02
1465
1259
  }
1466
1260
  ])
1467
1261
  );
@@ -1495,10 +1289,7 @@ async function bulkAddCustomizationChoices2(customizationsChoices, options) {
1495
1289
  [
1496
1290
  {
1497
1291
  transformFn: transformSDKImageToRESTImage,
1498
- paths: [
1499
- { path: "customizationsChoices.choices.image" },
1500
- { path: "customizationsChoices.choices.displayImage" }
1501
- ]
1292
+ paths: TRANSFORM_PATHS_52
1502
1293
  }
1503
1294
  ]
1504
1295
  );
@@ -1513,12 +1304,7 @@ async function bulkAddCustomizationChoices2(customizationsChoices, options) {
1513
1304
  transformPaths2(result.data, [
1514
1305
  {
1515
1306
  transformFn: transformRESTImageToSDKImage,
1516
- paths: [
1517
- { path: "results.customization.choicesSettings.choices.image" },
1518
- {
1519
- path: "results.customization.choicesSettings.choices.displayImage"
1520
- }
1521
- ]
1307
+ paths: TRANSFORM_PATHS_22
1522
1308
  }
1523
1309
  ])
1524
1310
  );
@@ -1551,14 +1337,7 @@ async function bulkUpdateCustomizations2(customizations, options) {
1551
1337
  [
1552
1338
  {
1553
1339
  transformFn: transformSDKImageToRESTImage,
1554
- paths: [
1555
- {
1556
- path: "customizations.customization.choicesSettings.choices.image"
1557
- },
1558
- {
1559
- path: "customizations.customization.choicesSettings.choices.displayImage"
1560
- }
1561
- ]
1340
+ paths: TRANSFORM_PATHS_62
1562
1341
  }
1563
1342
  ]
1564
1343
  );
@@ -1571,12 +1350,7 @@ async function bulkUpdateCustomizations2(customizations, options) {
1571
1350
  transformPaths2(result.data, [
1572
1351
  {
1573
1352
  transformFn: transformRESTImageToSDKImage,
1574
- paths: [
1575
- { path: "results.customization.choicesSettings.choices.image" },
1576
- {
1577
- path: "results.customization.choicesSettings.choices.displayImage"
1578
- }
1579
- ]
1353
+ paths: TRANSFORM_PATHS_22
1580
1354
  }
1581
1355
  ])
1582
1356
  );
@@ -1600,6 +1374,28 @@ async function bulkUpdateCustomizations2(customizations, options) {
1600
1374
  }
1601
1375
 
1602
1376
  // src/stores-catalog-v3-customization-customizations-v-3.public.ts
1377
+ var TRANSFORM_PATHS_03 = [
1378
+ { path: "entity.createdDate" },
1379
+ { path: "entity.updatedDate" },
1380
+ { path: "metadata.eventTime" }
1381
+ ];
1382
+ var TRANSFORM_PATHS_18 = [
1383
+ { path: "entity.choicesSettings.choices.image" },
1384
+ { path: "entity.choicesSettings.choices.displayImage" }
1385
+ ];
1386
+ var TRANSFORM_PATHS_23 = [
1387
+ { path: "entity.createdDate" },
1388
+ { path: "entity.updatedDate" },
1389
+ { path: "metadata.eventTime" },
1390
+ { path: "modifiedFields.createdDate" },
1391
+ { path: "modifiedFields.updatedDate" }
1392
+ ];
1393
+ var TRANSFORM_PATHS_33 = [
1394
+ { path: "entity.choicesSettings.choices.image" },
1395
+ { path: "entity.choicesSettings.choices.displayImage" },
1396
+ { path: "modifiedFields.choicesSettings.choices.image" },
1397
+ { path: "modifiedFields.choicesSettings.choices.displayImage" }
1398
+ ];
1603
1399
  function createCustomization3(httpClient) {
1604
1400
  return (customization) => createCustomization2(
1605
1401
  customization,
@@ -1729,18 +1525,11 @@ var onCustomizationCreated = /* @__PURE__ */ EventDefinition(
1729
1525
  transformPaths3(event, [
1730
1526
  {
1731
1527
  transformFn: transformRESTTimestampToSDKTimestamp2,
1732
- paths: [
1733
- { path: "entity.createdDate" },
1734
- { path: "entity.updatedDate" },
1735
- { path: "metadata.eventTime" }
1736
- ]
1528
+ paths: TRANSFORM_PATHS_03
1737
1529
  },
1738
1530
  {
1739
1531
  transformFn: transformRESTImageToSDKImage2,
1740
- paths: [
1741
- { path: "entity.choicesSettings.choices.image" },
1742
- { path: "entity.choicesSettings.choices.displayImage" }
1743
- ]
1532
+ paths: TRANSFORM_PATHS_18
1744
1533
  }
1745
1534
  ])
1746
1535
  )
@@ -1752,18 +1541,11 @@ var onCustomizationDeleted = /* @__PURE__ */ EventDefinition(
1752
1541
  transformPaths3(event, [
1753
1542
  {
1754
1543
  transformFn: transformRESTTimestampToSDKTimestamp2,
1755
- paths: [
1756
- { path: "entity.createdDate" },
1757
- { path: "entity.updatedDate" },
1758
- { path: "metadata.eventTime" }
1759
- ]
1544
+ paths: TRANSFORM_PATHS_03
1760
1545
  },
1761
1546
  {
1762
1547
  transformFn: transformRESTImageToSDKImage2,
1763
- paths: [
1764
- { path: "entity.choicesSettings.choices.image" },
1765
- { path: "entity.choicesSettings.choices.displayImage" }
1766
- ]
1548
+ paths: TRANSFORM_PATHS_18
1767
1549
  }
1768
1550
  ])
1769
1551
  )
@@ -1775,22 +1557,11 @@ var onCustomizationUpdated = /* @__PURE__ */ EventDefinition(
1775
1557
  transformPaths3(event, [
1776
1558
  {
1777
1559
  transformFn: transformRESTTimestampToSDKTimestamp2,
1778
- paths: [
1779
- { path: "entity.createdDate" },
1780
- { path: "entity.updatedDate" },
1781
- { path: "metadata.eventTime" },
1782
- { path: "modifiedFields.createdDate" },
1783
- { path: "modifiedFields.updatedDate" }
1784
- ]
1560
+ paths: TRANSFORM_PATHS_23
1785
1561
  },
1786
1562
  {
1787
1563
  transformFn: transformRESTImageToSDKImage2,
1788
- paths: [
1789
- { path: "entity.choicesSettings.choices.image" },
1790
- { path: "entity.choicesSettings.choices.displayImage" },
1791
- { path: "modifiedFields.choicesSettings.choices.image" },
1792
- { path: "modifiedFields.choicesSettings.choices.displayImage" }
1793
- ]
1564
+ paths: TRANSFORM_PATHS_33
1794
1565
  }
1795
1566
  ])
1796
1567
  )