@wix/auto_sdk_stores_customizations-v-3 1.0.99 → 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.
@@ -60,6 +60,89 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
60
60
  var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
61
61
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
62
62
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
63
+ var TRANSFORM_PATHS_0 = [
64
+ { path: "customization.createdDate" },
65
+ { path: "customization.updatedDate" },
66
+ { path: "customization.choicesSettings.choices.image.urlExpirationDate" },
67
+ {
68
+ path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
69
+ }
70
+ ];
71
+ var TRANSFORM_PATHS_1 = [
72
+ { path: "customization.choicesSettings.choices.image.focalPoint.x" },
73
+ { path: "customization.choicesSettings.choices.image.focalPoint.y" }
74
+ ];
75
+ var TRANSFORM_PATHS_2 = [{ path: "fieldMask" }];
76
+ var TRANSFORM_PATHS_3 = [
77
+ { path: "customizations.createdDate" },
78
+ { path: "customizations.updatedDate" },
79
+ { path: "customizations.choicesSettings.choices.image.urlExpirationDate" },
80
+ {
81
+ path: "customizations.choicesSettings.choices.displayImage.urlExpirationDate"
82
+ }
83
+ ];
84
+ var TRANSFORM_PATHS_4 = [
85
+ { path: "customizations.choicesSettings.choices.image.focalPoint.x" },
86
+ { path: "customizations.choicesSettings.choices.image.focalPoint.y" }
87
+ ];
88
+ var TRANSFORM_PATHS_5 = [
89
+ { path: "results.customization.createdDate" },
90
+ { path: "results.customization.updatedDate" },
91
+ {
92
+ path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
93
+ },
94
+ {
95
+ path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
96
+ }
97
+ ];
98
+ var TRANSFORM_PATHS_6 = [
99
+ { path: "results.customization.choicesSettings.choices.image.focalPoint.x" },
100
+ { path: "results.customization.choicesSettings.choices.image.focalPoint.y" }
101
+ ];
102
+ var TRANSFORM_PATHS_7 = [
103
+ { path: "choices.image.urlExpirationDate" },
104
+ { path: "choices.displayImage.urlExpirationDate" }
105
+ ];
106
+ var TRANSFORM_PATHS_8 = [
107
+ { path: "choices.image.focalPoint.x" },
108
+ { path: "choices.image.focalPoint.y" }
109
+ ];
110
+ var TRANSFORM_PATHS_9 = [{ path: "choices.fieldMask" }];
111
+ var TRANSFORM_PATHS_10 = [
112
+ { path: "choices.choice.image.urlExpirationDate" },
113
+ { path: "choices.choice.displayImage.urlExpirationDate" }
114
+ ];
115
+ var TRANSFORM_PATHS_11 = [
116
+ { path: "choices.choice.image.focalPoint.x" },
117
+ { path: "choices.choice.image.focalPoint.y" }
118
+ ];
119
+ var TRANSFORM_PATHS_12 = [
120
+ { path: "customizationsChoices.choices.image.urlExpirationDate" },
121
+ { path: "customizationsChoices.choices.displayImage.urlExpirationDate" }
122
+ ];
123
+ var TRANSFORM_PATHS_13 = [
124
+ { path: "customizationsChoices.choices.image.focalPoint.x" },
125
+ { path: "customizationsChoices.choices.image.focalPoint.y" }
126
+ ];
127
+ var TRANSFORM_PATHS_14 = [{ path: "customizations.fieldMask" }];
128
+ var TRANSFORM_PATHS_15 = [
129
+ { path: "customizations.customization.createdDate" },
130
+ { path: "customizations.customization.updatedDate" },
131
+ {
132
+ path: "customizations.customization.choicesSettings.choices.image.urlExpirationDate"
133
+ },
134
+ {
135
+ path: "customizations.customization.choicesSettings.choices.displayImage.urlExpirationDate"
136
+ }
137
+ ];
138
+ var TRANSFORM_PATHS_16 = [
139
+ {
140
+ path: "customizations.customization.choicesSettings.choices.image.focalPoint.x"
141
+ },
142
+ {
143
+ path: "customizations.customization.choicesSettings.choices.image.focalPoint.y"
144
+ }
145
+ ];
63
146
  function resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl(opts) {
64
147
  const domainToMappings = {
65
148
  "manage._base_domain_": [
@@ -117,23 +200,11 @@ function createCustomization(payload) {
117
200
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
118
201
  {
119
202
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
120
- paths: [
121
- { path: "customization.createdDate" },
122
- { path: "customization.updatedDate" },
123
- {
124
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
125
- },
126
- {
127
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
128
- }
129
- ]
203
+ paths: TRANSFORM_PATHS_0
130
204
  },
131
205
  {
132
206
  transformFn: import_float.transformSDKFloatToRESTFloat,
133
- paths: [
134
- { path: "customization.choicesSettings.choices.image.focalPoint.x" },
135
- { path: "customization.choicesSettings.choices.image.focalPoint.y" }
136
- ]
207
+ paths: TRANSFORM_PATHS_1
137
208
  }
138
209
  ]);
139
210
  const metadata = {
@@ -153,27 +224,11 @@ function createCustomization(payload) {
153
224
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
154
225
  {
155
226
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
156
- paths: [
157
- { path: "customization.createdDate" },
158
- { path: "customization.updatedDate" },
159
- {
160
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
161
- },
162
- {
163
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
164
- }
165
- ]
227
+ paths: TRANSFORM_PATHS_0
166
228
  },
167
229
  {
168
230
  transformFn: import_float2.transformRESTFloatToSDKFloat,
169
- paths: [
170
- {
171
- path: "customization.choicesSettings.choices.image.focalPoint.x"
172
- },
173
- {
174
- path: "customization.choicesSettings.choices.image.focalPoint.y"
175
- }
176
- ]
231
+ paths: TRANSFORM_PATHS_1
177
232
  }
178
233
  ])
179
234
  };
@@ -200,27 +255,11 @@ function getCustomization(payload) {
200
255
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
201
256
  {
202
257
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
203
- paths: [
204
- { path: "customization.createdDate" },
205
- { path: "customization.updatedDate" },
206
- {
207
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
208
- },
209
- {
210
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
211
- }
212
- ]
258
+ paths: TRANSFORM_PATHS_0
213
259
  },
214
260
  {
215
261
  transformFn: import_float2.transformRESTFloatToSDKFloat,
216
- paths: [
217
- {
218
- path: "customization.choicesSettings.choices.image.focalPoint.x"
219
- },
220
- {
221
- path: "customization.choicesSettings.choices.image.focalPoint.y"
222
- }
223
- ]
262
+ paths: TRANSFORM_PATHS_1
224
263
  }
225
264
  ])
226
265
  };
@@ -233,27 +272,15 @@ function updateCustomization(payload) {
233
272
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
234
273
  {
235
274
  transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
236
- paths: [{ path: "fieldMask" }]
275
+ paths: TRANSFORM_PATHS_2
237
276
  },
238
277
  {
239
278
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
240
- paths: [
241
- { path: "customization.createdDate" },
242
- { path: "customization.updatedDate" },
243
- {
244
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
245
- },
246
- {
247
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
248
- }
249
- ]
279
+ paths: TRANSFORM_PATHS_0
250
280
  },
251
281
  {
252
282
  transformFn: import_float.transformSDKFloatToRESTFloat,
253
- paths: [
254
- { path: "customization.choicesSettings.choices.image.focalPoint.x" },
255
- { path: "customization.choicesSettings.choices.image.focalPoint.y" }
256
- ]
283
+ paths: TRANSFORM_PATHS_1
257
284
  }
258
285
  ]);
259
286
  const metadata = {
@@ -273,27 +300,11 @@ function updateCustomization(payload) {
273
300
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
274
301
  {
275
302
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
276
- paths: [
277
- { path: "customization.createdDate" },
278
- { path: "customization.updatedDate" },
279
- {
280
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
281
- },
282
- {
283
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
284
- }
285
- ]
303
+ paths: TRANSFORM_PATHS_0
286
304
  },
287
305
  {
288
306
  transformFn: import_float2.transformRESTFloatToSDKFloat,
289
- paths: [
290
- {
291
- path: "customization.choicesSettings.choices.image.focalPoint.x"
292
- },
293
- {
294
- path: "customization.choicesSettings.choices.image.focalPoint.y"
295
- }
296
- ]
307
+ paths: TRANSFORM_PATHS_1
297
308
  }
298
309
  ])
299
310
  };
@@ -341,27 +352,11 @@ function queryCustomizations(payload) {
341
352
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
342
353
  {
343
354
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
344
- paths: [
345
- { path: "customizations.createdDate" },
346
- { path: "customizations.updatedDate" },
347
- {
348
- path: "customizations.choicesSettings.choices.image.urlExpirationDate"
349
- },
350
- {
351
- path: "customizations.choicesSettings.choices.displayImage.urlExpirationDate"
352
- }
353
- ]
355
+ paths: TRANSFORM_PATHS_3
354
356
  },
355
357
  {
356
358
  transformFn: import_float2.transformRESTFloatToSDKFloat,
357
- paths: [
358
- {
359
- path: "customizations.choicesSettings.choices.image.focalPoint.x"
360
- },
361
- {
362
- path: "customizations.choicesSettings.choices.image.focalPoint.y"
363
- }
364
- ]
359
+ paths: TRANSFORM_PATHS_4
365
360
  }
366
361
  ]),
367
362
  fallback: [
@@ -406,23 +401,11 @@ function bulkCreateCustomizations(payload) {
406
401
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
407
402
  {
408
403
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
409
- paths: [
410
- { path: "customizations.createdDate" },
411
- { path: "customizations.updatedDate" },
412
- {
413
- path: "customizations.choicesSettings.choices.image.urlExpirationDate"
414
- },
415
- {
416
- path: "customizations.choicesSettings.choices.displayImage.urlExpirationDate"
417
- }
418
- ]
404
+ paths: TRANSFORM_PATHS_3
419
405
  },
420
406
  {
421
407
  transformFn: import_float.transformSDKFloatToRESTFloat,
422
- paths: [
423
- { path: "customizations.choicesSettings.choices.image.focalPoint.x" },
424
- { path: "customizations.choicesSettings.choices.image.focalPoint.y" }
425
- ]
408
+ paths: TRANSFORM_PATHS_4
426
409
  }
427
410
  ]);
428
411
  const metadata = {
@@ -442,27 +425,11 @@ function bulkCreateCustomizations(payload) {
442
425
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
443
426
  {
444
427
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
445
- paths: [
446
- { path: "results.customization.createdDate" },
447
- { path: "results.customization.updatedDate" },
448
- {
449
- path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
450
- },
451
- {
452
- path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
453
- }
454
- ]
428
+ paths: TRANSFORM_PATHS_5
455
429
  },
456
430
  {
457
431
  transformFn: import_float2.transformRESTFloatToSDKFloat,
458
- paths: [
459
- {
460
- path: "results.customization.choicesSettings.choices.image.focalPoint.x"
461
- },
462
- {
463
- path: "results.customization.choicesSettings.choices.image.focalPoint.y"
464
- }
465
- ]
432
+ paths: TRANSFORM_PATHS_6
466
433
  }
467
434
  ])
468
435
  };
@@ -475,17 +442,11 @@ function addCustomizationChoices(payload) {
475
442
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
476
443
  {
477
444
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
478
- paths: [
479
- { path: "choices.image.urlExpirationDate" },
480
- { path: "choices.displayImage.urlExpirationDate" }
481
- ]
445
+ paths: TRANSFORM_PATHS_7
482
446
  },
483
447
  {
484
448
  transformFn: import_float.transformSDKFloatToRESTFloat,
485
- paths: [
486
- { path: "choices.image.focalPoint.x" },
487
- { path: "choices.image.focalPoint.y" }
488
- ]
449
+ paths: TRANSFORM_PATHS_8
489
450
  }
490
451
  ]);
491
452
  const metadata = {
@@ -505,27 +466,11 @@ function addCustomizationChoices(payload) {
505
466
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
506
467
  {
507
468
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
508
- paths: [
509
- { path: "customization.createdDate" },
510
- { path: "customization.updatedDate" },
511
- {
512
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
513
- },
514
- {
515
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
516
- }
517
- ]
469
+ paths: TRANSFORM_PATHS_0
518
470
  },
519
471
  {
520
472
  transformFn: import_float2.transformRESTFloatToSDKFloat,
521
- paths: [
522
- {
523
- path: "customization.choicesSettings.choices.image.focalPoint.x"
524
- },
525
- {
526
- path: "customization.choicesSettings.choices.image.focalPoint.y"
527
- }
528
- ]
473
+ paths: TRANSFORM_PATHS_1
529
474
  }
530
475
  ])
531
476
  };
@@ -538,17 +483,11 @@ function setCustomizationChoices(payload) {
538
483
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
539
484
  {
540
485
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
541
- paths: [
542
- { path: "choices.image.urlExpirationDate" },
543
- { path: "choices.displayImage.urlExpirationDate" }
544
- ]
486
+ paths: TRANSFORM_PATHS_7
545
487
  },
546
488
  {
547
489
  transformFn: import_float.transformSDKFloatToRESTFloat,
548
- paths: [
549
- { path: "choices.image.focalPoint.x" },
550
- { path: "choices.image.focalPoint.y" }
551
- ]
490
+ paths: TRANSFORM_PATHS_8
552
491
  }
553
492
  ]);
554
493
  const metadata = {
@@ -568,27 +507,11 @@ function setCustomizationChoices(payload) {
568
507
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
569
508
  {
570
509
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
571
- paths: [
572
- { path: "customization.createdDate" },
573
- { path: "customization.updatedDate" },
574
- {
575
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
576
- },
577
- {
578
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
579
- }
580
- ]
510
+ paths: TRANSFORM_PATHS_0
581
511
  },
582
512
  {
583
513
  transformFn: import_float2.transformRESTFloatToSDKFloat,
584
- paths: [
585
- {
586
- path: "customization.choicesSettings.choices.image.focalPoint.x"
587
- },
588
- {
589
- path: "customization.choicesSettings.choices.image.focalPoint.y"
590
- }
591
- ]
514
+ paths: TRANSFORM_PATHS_1
592
515
  }
593
516
  ])
594
517
  };
@@ -615,27 +538,11 @@ function removeCustomizationChoices(payload) {
615
538
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
616
539
  {
617
540
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
618
- paths: [
619
- { path: "customization.createdDate" },
620
- { path: "customization.updatedDate" },
621
- {
622
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
623
- },
624
- {
625
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
626
- }
627
- ]
541
+ paths: TRANSFORM_PATHS_0
628
542
  },
629
543
  {
630
544
  transformFn: import_float2.transformRESTFloatToSDKFloat,
631
- paths: [
632
- {
633
- path: "customization.choicesSettings.choices.image.focalPoint.x"
634
- },
635
- {
636
- path: "customization.choicesSettings.choices.image.focalPoint.y"
637
- }
638
- ]
545
+ paths: TRANSFORM_PATHS_1
639
546
  }
640
547
  ])
641
548
  };
@@ -648,21 +555,15 @@ function updateCustomizationChoices(payload) {
648
555
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
649
556
  {
650
557
  transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
651
- paths: [{ path: "choices.fieldMask" }]
558
+ paths: TRANSFORM_PATHS_9
652
559
  },
653
560
  {
654
561
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
655
- paths: [
656
- { path: "choices.choice.image.urlExpirationDate" },
657
- { path: "choices.choice.displayImage.urlExpirationDate" }
658
- ]
562
+ paths: TRANSFORM_PATHS_10
659
563
  },
660
564
  {
661
565
  transformFn: import_float.transformSDKFloatToRESTFloat,
662
- paths: [
663
- { path: "choices.choice.image.focalPoint.x" },
664
- { path: "choices.choice.image.focalPoint.y" }
665
- ]
566
+ paths: TRANSFORM_PATHS_11
666
567
  }
667
568
  ]);
668
569
  const metadata = {
@@ -682,27 +583,11 @@ function updateCustomizationChoices(payload) {
682
583
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
683
584
  {
684
585
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
685
- paths: [
686
- { path: "customization.createdDate" },
687
- { path: "customization.updatedDate" },
688
- {
689
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
690
- },
691
- {
692
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
693
- }
694
- ]
586
+ paths: TRANSFORM_PATHS_0
695
587
  },
696
588
  {
697
589
  transformFn: import_float2.transformRESTFloatToSDKFloat,
698
- paths: [
699
- {
700
- path: "customization.choicesSettings.choices.image.focalPoint.x"
701
- },
702
- {
703
- path: "customization.choicesSettings.choices.image.focalPoint.y"
704
- }
705
- ]
590
+ paths: TRANSFORM_PATHS_1
706
591
  }
707
592
  ])
708
593
  };
@@ -729,27 +614,11 @@ function reorderCustomizationChoices(payload) {
729
614
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
730
615
  {
731
616
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
732
- paths: [
733
- { path: "customization.createdDate" },
734
- { path: "customization.updatedDate" },
735
- {
736
- path: "customization.choicesSettings.choices.image.urlExpirationDate"
737
- },
738
- {
739
- path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
740
- }
741
- ]
617
+ paths: TRANSFORM_PATHS_0
742
618
  },
743
619
  {
744
620
  transformFn: import_float2.transformRESTFloatToSDKFloat,
745
- paths: [
746
- {
747
- path: "customization.choicesSettings.choices.image.focalPoint.x"
748
- },
749
- {
750
- path: "customization.choicesSettings.choices.image.focalPoint.y"
751
- }
752
- ]
621
+ paths: TRANSFORM_PATHS_1
753
622
  }
754
623
  ])
755
624
  };
@@ -762,19 +631,11 @@ function bulkAddCustomizationChoices(payload) {
762
631
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
763
632
  {
764
633
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
765
- paths: [
766
- { path: "customizationsChoices.choices.image.urlExpirationDate" },
767
- {
768
- path: "customizationsChoices.choices.displayImage.urlExpirationDate"
769
- }
770
- ]
634
+ paths: TRANSFORM_PATHS_12
771
635
  },
772
636
  {
773
637
  transformFn: import_float.transformSDKFloatToRESTFloat,
774
- paths: [
775
- { path: "customizationsChoices.choices.image.focalPoint.x" },
776
- { path: "customizationsChoices.choices.image.focalPoint.y" }
777
- ]
638
+ paths: TRANSFORM_PATHS_13
778
639
  }
779
640
  ]);
780
641
  const metadata = {
@@ -794,27 +655,11 @@ function bulkAddCustomizationChoices(payload) {
794
655
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
795
656
  {
796
657
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
797
- paths: [
798
- { path: "results.customization.createdDate" },
799
- { path: "results.customization.updatedDate" },
800
- {
801
- path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
802
- },
803
- {
804
- path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
805
- }
806
- ]
658
+ paths: TRANSFORM_PATHS_5
807
659
  },
808
660
  {
809
661
  transformFn: import_float2.transformRESTFloatToSDKFloat,
810
- paths: [
811
- {
812
- path: "results.customization.choicesSettings.choices.image.focalPoint.x"
813
- },
814
- {
815
- path: "results.customization.choicesSettings.choices.image.focalPoint.y"
816
- }
817
- ]
662
+ paths: TRANSFORM_PATHS_6
818
663
  }
819
664
  ])
820
665
  };
@@ -827,31 +672,15 @@ function bulkUpdateCustomizations(payload) {
827
672
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
828
673
  {
829
674
  transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
830
- paths: [{ path: "customizations.fieldMask" }]
675
+ paths: TRANSFORM_PATHS_14
831
676
  },
832
677
  {
833
678
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
834
- paths: [
835
- { path: "customizations.customization.createdDate" },
836
- { path: "customizations.customization.updatedDate" },
837
- {
838
- path: "customizations.customization.choicesSettings.choices.image.urlExpirationDate"
839
- },
840
- {
841
- path: "customizations.customization.choicesSettings.choices.displayImage.urlExpirationDate"
842
- }
843
- ]
679
+ paths: TRANSFORM_PATHS_15
844
680
  },
845
681
  {
846
682
  transformFn: import_float.transformSDKFloatToRESTFloat,
847
- paths: [
848
- {
849
- path: "customizations.customization.choicesSettings.choices.image.focalPoint.x"
850
- },
851
- {
852
- path: "customizations.customization.choicesSettings.choices.image.focalPoint.y"
853
- }
854
- ]
683
+ paths: TRANSFORM_PATHS_16
855
684
  }
856
685
  ]);
857
686
  const metadata = {
@@ -871,27 +700,11 @@ function bulkUpdateCustomizations(payload) {
871
700
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
872
701
  {
873
702
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
874
- paths: [
875
- { path: "results.customization.createdDate" },
876
- { path: "results.customization.updatedDate" },
877
- {
878
- path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
879
- },
880
- {
881
- path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
882
- }
883
- ]
703
+ paths: TRANSFORM_PATHS_5
884
704
  },
885
705
  {
886
706
  transformFn: import_float2.transformRESTFloatToSDKFloat,
887
- paths: [
888
- {
889
- path: "results.customization.choicesSettings.choices.image.focalPoint.x"
890
- },
891
- {
892
- path: "results.customization.choicesSettings.choices.image.focalPoint.y"
893
- }
894
- ]
707
+ paths: TRANSFORM_PATHS_6
895
708
  }
896
709
  ])
897
710
  };
@@ -905,6 +718,34 @@ var import_image = require("@wix/sdk-runtime/transformations/image");
905
718
  var import_image2 = require("@wix/sdk-runtime/transformations/image");
906
719
  var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
907
720
  var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
721
+ var TRANSFORM_PATHS_02 = [
722
+ { path: "customization.choicesSettings.choices.image" },
723
+ { path: "customization.choicesSettings.choices.displayImage" }
724
+ ];
725
+ var TRANSFORM_PATHS_17 = [
726
+ { path: "customizations.choicesSettings.choices.image" },
727
+ { path: "customizations.choicesSettings.choices.displayImage" }
728
+ ];
729
+ var TRANSFORM_PATHS_22 = [
730
+ { path: "results.customization.choicesSettings.choices.image" },
731
+ { path: "results.customization.choicesSettings.choices.displayImage" }
732
+ ];
733
+ var TRANSFORM_PATHS_32 = [
734
+ { path: "choices.image" },
735
+ { path: "choices.displayImage" }
736
+ ];
737
+ var TRANSFORM_PATHS_42 = [
738
+ { path: "choices.choice.image" },
739
+ { path: "choices.choice.displayImage" }
740
+ ];
741
+ var TRANSFORM_PATHS_52 = [
742
+ { path: "customizationsChoices.choices.image" },
743
+ { path: "customizationsChoices.choices.displayImage" }
744
+ ];
745
+ var TRANSFORM_PATHS_62 = [
746
+ { path: "customizations.customization.choicesSettings.choices.image" },
747
+ { path: "customizations.customization.choicesSettings.choices.displayImage" }
748
+ ];
908
749
  var CustomizationType = /* @__PURE__ */ ((CustomizationType2) => {
909
750
  CustomizationType2["PRODUCT_OPTION"] = "PRODUCT_OPTION";
910
751
  CustomizationType2["MODIFIER"] = "MODIFIER";
@@ -955,10 +796,7 @@ async function createCustomization2(customization) {
955
796
  [
956
797
  {
957
798
  transformFn: import_image.transformSDKImageToRESTImage,
958
- paths: [
959
- { path: "customization.choicesSettings.choices.image" },
960
- { path: "customization.choicesSettings.choices.displayImage" }
961
- ]
799
+ paths: TRANSFORM_PATHS_02
962
800
  }
963
801
  ]
964
802
  );
@@ -971,10 +809,7 @@ async function createCustomization2(customization) {
971
809
  (0, import_transform_paths2.transformPaths)(result.data, [
972
810
  {
973
811
  transformFn: import_image2.transformRESTImageToSDKImage,
974
- paths: [
975
- { path: "customization.choicesSettings.choices.image" },
976
- { path: "customization.choicesSettings.choices.displayImage" }
977
- ]
812
+ paths: TRANSFORM_PATHS_02
978
813
  }
979
814
  ])
980
815
  )?.customization;
@@ -1007,10 +842,7 @@ async function getCustomization2(customizationId, options) {
1007
842
  (0, import_transform_paths2.transformPaths)(result.data, [
1008
843
  {
1009
844
  transformFn: import_image2.transformRESTImageToSDKImage,
1010
- paths: [
1011
- { path: "customization.choicesSettings.choices.image" },
1012
- { path: "customization.choicesSettings.choices.displayImage" }
1013
- ]
845
+ paths: TRANSFORM_PATHS_02
1014
846
  }
1015
847
  ])
1016
848
  )?.customization;
@@ -1041,10 +873,7 @@ async function updateCustomization2(_id, customization, options) {
1041
873
  [
1042
874
  {
1043
875
  transformFn: import_image.transformSDKImageToRESTImage,
1044
- paths: [
1045
- { path: "customization.choicesSettings.choices.image" },
1046
- { path: "customization.choicesSettings.choices.displayImage" }
1047
- ]
876
+ paths: TRANSFORM_PATHS_02
1048
877
  }
1049
878
  ]
1050
879
  );
@@ -1057,10 +886,7 @@ async function updateCustomization2(_id, customization, options) {
1057
886
  (0, import_transform_paths2.transformPaths)(result.data, [
1058
887
  {
1059
888
  transformFn: import_image2.transformRESTImageToSDKImage,
1060
- paths: [
1061
- { path: "customization.choicesSettings.choices.image" },
1062
- { path: "customization.choicesSettings.choices.displayImage" }
1063
- ]
889
+ paths: TRANSFORM_PATHS_02
1064
890
  }
1065
891
  ])
1066
892
  )?.customization;
@@ -1138,10 +964,7 @@ function queryCustomizations2(options) {
1138
964
  (0, import_transform_paths2.transformPaths)(data, [
1139
965
  {
1140
966
  transformFn: import_image2.transformRESTImageToSDKImage,
1141
- paths: [
1142
- { path: "customizations.choicesSettings.choices.image" },
1143
- { path: "customizations.choicesSettings.choices.displayImage" }
1144
- ]
967
+ paths: TRANSFORM_PATHS_17
1145
968
  }
1146
969
  ])
1147
970
  );
@@ -1177,10 +1000,7 @@ async function typedQueryCustomizations(query, options) {
1177
1000
  (0, import_transform_paths2.transformPaths)(result.data, [
1178
1001
  {
1179
1002
  transformFn: import_image2.transformRESTImageToSDKImage,
1180
- paths: [
1181
- { path: "customizations.choicesSettings.choices.image" },
1182
- { path: "customizations.choicesSettings.choices.displayImage" }
1183
- ]
1003
+ paths: TRANSFORM_PATHS_17
1184
1004
  }
1185
1005
  ])
1186
1006
  );
@@ -1236,10 +1056,7 @@ async function bulkCreateCustomizations2(customizations, options) {
1236
1056
  [
1237
1057
  {
1238
1058
  transformFn: import_image.transformSDKImageToRESTImage,
1239
- paths: [
1240
- { path: "customizations.choicesSettings.choices.image" },
1241
- { path: "customizations.choicesSettings.choices.displayImage" }
1242
- ]
1059
+ paths: TRANSFORM_PATHS_17
1243
1060
  }
1244
1061
  ]
1245
1062
  );
@@ -1252,12 +1069,7 @@ async function bulkCreateCustomizations2(customizations, options) {
1252
1069
  (0, import_transform_paths2.transformPaths)(result.data, [
1253
1070
  {
1254
1071
  transformFn: import_image2.transformRESTImageToSDKImage,
1255
- paths: [
1256
- { path: "results.customization.choicesSettings.choices.image" },
1257
- {
1258
- path: "results.customization.choicesSettings.choices.displayImage"
1259
- }
1260
- ]
1072
+ paths: TRANSFORM_PATHS_22
1261
1073
  }
1262
1074
  ])
1263
1075
  );
@@ -1289,7 +1101,7 @@ async function addCustomizationChoices2(customizationId, choices, options) {
1289
1101
  [
1290
1102
  {
1291
1103
  transformFn: import_image.transformSDKImageToRESTImage,
1292
- paths: [{ path: "choices.image" }, { path: "choices.displayImage" }]
1104
+ paths: TRANSFORM_PATHS_32
1293
1105
  }
1294
1106
  ]
1295
1107
  );
@@ -1302,10 +1114,7 @@ async function addCustomizationChoices2(customizationId, choices, options) {
1302
1114
  (0, import_transform_paths2.transformPaths)(result.data, [
1303
1115
  {
1304
1116
  transformFn: import_image2.transformRESTImageToSDKImage,
1305
- paths: [
1306
- { path: "customization.choicesSettings.choices.image" },
1307
- { path: "customization.choicesSettings.choices.displayImage" }
1308
- ]
1117
+ paths: TRANSFORM_PATHS_02
1309
1118
  }
1310
1119
  ])
1311
1120
  );
@@ -1338,7 +1147,7 @@ async function setCustomizationChoices2(customizationId, choices, options) {
1338
1147
  [
1339
1148
  {
1340
1149
  transformFn: import_image.transformSDKImageToRESTImage,
1341
- paths: [{ path: "choices.image" }, { path: "choices.displayImage" }]
1150
+ paths: TRANSFORM_PATHS_32
1342
1151
  }
1343
1152
  ]
1344
1153
  );
@@ -1351,10 +1160,7 @@ async function setCustomizationChoices2(customizationId, choices, options) {
1351
1160
  (0, import_transform_paths2.transformPaths)(result.data, [
1352
1161
  {
1353
1162
  transformFn: import_image2.transformRESTImageToSDKImage,
1354
- paths: [
1355
- { path: "customization.choicesSettings.choices.image" },
1356
- { path: "customization.choicesSettings.choices.displayImage" }
1357
- ]
1163
+ paths: TRANSFORM_PATHS_02
1358
1164
  }
1359
1165
  ])
1360
1166
  );
@@ -1395,10 +1201,7 @@ async function removeCustomizationChoices2(customizationId, choiceIds, options)
1395
1201
  (0, import_transform_paths2.transformPaths)(result.data, [
1396
1202
  {
1397
1203
  transformFn: import_image2.transformRESTImageToSDKImage,
1398
- paths: [
1399
- { path: "customization.choicesSettings.choices.image" },
1400
- { path: "customization.choicesSettings.choices.displayImage" }
1401
- ]
1204
+ paths: TRANSFORM_PATHS_02
1402
1205
  }
1403
1206
  ])
1404
1207
  );
@@ -1433,10 +1236,7 @@ async function updateCustomizationChoices2(customizationId, revision, options) {
1433
1236
  [
1434
1237
  {
1435
1238
  transformFn: import_image.transformSDKImageToRESTImage,
1436
- paths: [
1437
- { path: "choices.choice.image" },
1438
- { path: "choices.choice.displayImage" }
1439
- ]
1239
+ paths: TRANSFORM_PATHS_42
1440
1240
  }
1441
1241
  ]
1442
1242
  );
@@ -1451,10 +1251,7 @@ async function updateCustomizationChoices2(customizationId, revision, options) {
1451
1251
  (0, import_transform_paths2.transformPaths)(result.data, [
1452
1252
  {
1453
1253
  transformFn: import_image2.transformRESTImageToSDKImage,
1454
- paths: [
1455
- { path: "customization.choicesSettings.choices.image" },
1456
- { path: "customization.choicesSettings.choices.displayImage" }
1457
- ]
1254
+ paths: TRANSFORM_PATHS_02
1458
1255
  }
1459
1256
  ])
1460
1257
  );
@@ -1496,10 +1293,7 @@ async function reorderCustomizationChoices2(customizationId, revision, options)
1496
1293
  (0, import_transform_paths2.transformPaths)(result.data, [
1497
1294
  {
1498
1295
  transformFn: import_image2.transformRESTImageToSDKImage,
1499
- paths: [
1500
- { path: "customization.choicesSettings.choices.image" },
1501
- { path: "customization.choicesSettings.choices.displayImage" }
1502
- ]
1296
+ paths: TRANSFORM_PATHS_02
1503
1297
  }
1504
1298
  ])
1505
1299
  );
@@ -1533,10 +1327,7 @@ async function bulkAddCustomizationChoices2(customizationsChoices, options) {
1533
1327
  [
1534
1328
  {
1535
1329
  transformFn: import_image.transformSDKImageToRESTImage,
1536
- paths: [
1537
- { path: "customizationsChoices.choices.image" },
1538
- { path: "customizationsChoices.choices.displayImage" }
1539
- ]
1330
+ paths: TRANSFORM_PATHS_52
1540
1331
  }
1541
1332
  ]
1542
1333
  );
@@ -1551,12 +1342,7 @@ async function bulkAddCustomizationChoices2(customizationsChoices, options) {
1551
1342
  (0, import_transform_paths2.transformPaths)(result.data, [
1552
1343
  {
1553
1344
  transformFn: import_image2.transformRESTImageToSDKImage,
1554
- paths: [
1555
- { path: "results.customization.choicesSettings.choices.image" },
1556
- {
1557
- path: "results.customization.choicesSettings.choices.displayImage"
1558
- }
1559
- ]
1345
+ paths: TRANSFORM_PATHS_22
1560
1346
  }
1561
1347
  ])
1562
1348
  );
@@ -1589,14 +1375,7 @@ async function bulkUpdateCustomizations2(customizations, options) {
1589
1375
  [
1590
1376
  {
1591
1377
  transformFn: import_image.transformSDKImageToRESTImage,
1592
- paths: [
1593
- {
1594
- path: "customizations.customization.choicesSettings.choices.image"
1595
- },
1596
- {
1597
- path: "customizations.customization.choicesSettings.choices.displayImage"
1598
- }
1599
- ]
1378
+ paths: TRANSFORM_PATHS_62
1600
1379
  }
1601
1380
  ]
1602
1381
  );
@@ -1609,12 +1388,7 @@ async function bulkUpdateCustomizations2(customizations, options) {
1609
1388
  (0, import_transform_paths2.transformPaths)(result.data, [
1610
1389
  {
1611
1390
  transformFn: import_image2.transformRESTImageToSDKImage,
1612
- paths: [
1613
- { path: "results.customization.choicesSettings.choices.image" },
1614
- {
1615
- path: "results.customization.choicesSettings.choices.displayImage"
1616
- }
1617
- ]
1391
+ paths: TRANSFORM_PATHS_22
1618
1392
  }
1619
1393
  ])
1620
1394
  );