@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.
- package/build/cjs/index.js +203 -432
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +0 -2
- package/build/cjs/index.typings.js +175 -401
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +0 -2
- package/build/cjs/meta.js +126 -313
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +203 -432
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +0 -2
- package/build/es/index.typings.mjs +175 -401
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +0 -2
- package/build/es/meta.mjs +126 -313
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +0 -2
- package/build/internal/cjs/meta.d.ts +0 -2
- package/build/internal/es/index.typings.d.mts +0 -2
- package/build/internal/es/meta.d.mts +0 -2
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -69,6 +69,89 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
69
69
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
70
70
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
71
71
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
72
|
+
var TRANSFORM_PATHS_0 = [
|
|
73
|
+
{ path: "customization.createdDate" },
|
|
74
|
+
{ path: "customization.updatedDate" },
|
|
75
|
+
{ path: "customization.choicesSettings.choices.image.urlExpirationDate" },
|
|
76
|
+
{
|
|
77
|
+
path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
78
|
+
}
|
|
79
|
+
];
|
|
80
|
+
var TRANSFORM_PATHS_1 = [
|
|
81
|
+
{ path: "customization.choicesSettings.choices.image.focalPoint.x" },
|
|
82
|
+
{ path: "customization.choicesSettings.choices.image.focalPoint.y" }
|
|
83
|
+
];
|
|
84
|
+
var TRANSFORM_PATHS_2 = [{ path: "fieldMask" }];
|
|
85
|
+
var TRANSFORM_PATHS_3 = [
|
|
86
|
+
{ path: "customizations.createdDate" },
|
|
87
|
+
{ path: "customizations.updatedDate" },
|
|
88
|
+
{ path: "customizations.choicesSettings.choices.image.urlExpirationDate" },
|
|
89
|
+
{
|
|
90
|
+
path: "customizations.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
91
|
+
}
|
|
92
|
+
];
|
|
93
|
+
var TRANSFORM_PATHS_4 = [
|
|
94
|
+
{ path: "customizations.choicesSettings.choices.image.focalPoint.x" },
|
|
95
|
+
{ path: "customizations.choicesSettings.choices.image.focalPoint.y" }
|
|
96
|
+
];
|
|
97
|
+
var TRANSFORM_PATHS_5 = [
|
|
98
|
+
{ path: "results.customization.createdDate" },
|
|
99
|
+
{ path: "results.customization.updatedDate" },
|
|
100
|
+
{
|
|
101
|
+
path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
105
|
+
}
|
|
106
|
+
];
|
|
107
|
+
var TRANSFORM_PATHS_6 = [
|
|
108
|
+
{ path: "results.customization.choicesSettings.choices.image.focalPoint.x" },
|
|
109
|
+
{ path: "results.customization.choicesSettings.choices.image.focalPoint.y" }
|
|
110
|
+
];
|
|
111
|
+
var TRANSFORM_PATHS_7 = [
|
|
112
|
+
{ path: "choices.image.urlExpirationDate" },
|
|
113
|
+
{ path: "choices.displayImage.urlExpirationDate" }
|
|
114
|
+
];
|
|
115
|
+
var TRANSFORM_PATHS_8 = [
|
|
116
|
+
{ path: "choices.image.focalPoint.x" },
|
|
117
|
+
{ path: "choices.image.focalPoint.y" }
|
|
118
|
+
];
|
|
119
|
+
var TRANSFORM_PATHS_9 = [{ path: "choices.fieldMask" }];
|
|
120
|
+
var TRANSFORM_PATHS_10 = [
|
|
121
|
+
{ path: "choices.choice.image.urlExpirationDate" },
|
|
122
|
+
{ path: "choices.choice.displayImage.urlExpirationDate" }
|
|
123
|
+
];
|
|
124
|
+
var TRANSFORM_PATHS_11 = [
|
|
125
|
+
{ path: "choices.choice.image.focalPoint.x" },
|
|
126
|
+
{ path: "choices.choice.image.focalPoint.y" }
|
|
127
|
+
];
|
|
128
|
+
var TRANSFORM_PATHS_12 = [
|
|
129
|
+
{ path: "customizationsChoices.choices.image.urlExpirationDate" },
|
|
130
|
+
{ path: "customizationsChoices.choices.displayImage.urlExpirationDate" }
|
|
131
|
+
];
|
|
132
|
+
var TRANSFORM_PATHS_13 = [
|
|
133
|
+
{ path: "customizationsChoices.choices.image.focalPoint.x" },
|
|
134
|
+
{ path: "customizationsChoices.choices.image.focalPoint.y" }
|
|
135
|
+
];
|
|
136
|
+
var TRANSFORM_PATHS_14 = [{ path: "customizations.fieldMask" }];
|
|
137
|
+
var TRANSFORM_PATHS_15 = [
|
|
138
|
+
{ path: "customizations.customization.createdDate" },
|
|
139
|
+
{ path: "customizations.customization.updatedDate" },
|
|
140
|
+
{
|
|
141
|
+
path: "customizations.customization.choicesSettings.choices.image.urlExpirationDate"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
path: "customizations.customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
145
|
+
}
|
|
146
|
+
];
|
|
147
|
+
var TRANSFORM_PATHS_16 = [
|
|
148
|
+
{
|
|
149
|
+
path: "customizations.customization.choicesSettings.choices.image.focalPoint.x"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
path: "customizations.customization.choicesSettings.choices.image.focalPoint.y"
|
|
153
|
+
}
|
|
154
|
+
];
|
|
72
155
|
function resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl(opts) {
|
|
73
156
|
const domainToMappings = {
|
|
74
157
|
"manage._base_domain_": [
|
|
@@ -126,23 +209,11 @@ function createCustomization(payload) {
|
|
|
126
209
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
127
210
|
{
|
|
128
211
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
129
|
-
paths:
|
|
130
|
-
{ path: "customization.createdDate" },
|
|
131
|
-
{ path: "customization.updatedDate" },
|
|
132
|
-
{
|
|
133
|
-
path: "customization.choicesSettings.choices.image.urlExpirationDate"
|
|
134
|
-
},
|
|
135
|
-
{
|
|
136
|
-
path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
137
|
-
}
|
|
138
|
-
]
|
|
212
|
+
paths: TRANSFORM_PATHS_0
|
|
139
213
|
},
|
|
140
214
|
{
|
|
141
215
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
142
|
-
paths:
|
|
143
|
-
{ path: "customization.choicesSettings.choices.image.focalPoint.x" },
|
|
144
|
-
{ path: "customization.choicesSettings.choices.image.focalPoint.y" }
|
|
145
|
-
]
|
|
216
|
+
paths: TRANSFORM_PATHS_1
|
|
146
217
|
}
|
|
147
218
|
]);
|
|
148
219
|
const metadata = {
|
|
@@ -162,27 +233,11 @@ function createCustomization(payload) {
|
|
|
162
233
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
163
234
|
{
|
|
164
235
|
transformFn: import_timestamp2.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
|
-
]
|
|
236
|
+
paths: TRANSFORM_PATHS_0
|
|
175
237
|
},
|
|
176
238
|
{
|
|
177
239
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
178
|
-
paths:
|
|
179
|
-
{
|
|
180
|
-
path: "customization.choicesSettings.choices.image.focalPoint.x"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
path: "customization.choicesSettings.choices.image.focalPoint.y"
|
|
184
|
-
}
|
|
185
|
-
]
|
|
240
|
+
paths: TRANSFORM_PATHS_1
|
|
186
241
|
}
|
|
187
242
|
])
|
|
188
243
|
};
|
|
@@ -209,27 +264,11 @@ function getCustomization(payload) {
|
|
|
209
264
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
210
265
|
{
|
|
211
266
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
212
|
-
paths:
|
|
213
|
-
{ path: "customization.createdDate" },
|
|
214
|
-
{ path: "customization.updatedDate" },
|
|
215
|
-
{
|
|
216
|
-
path: "customization.choicesSettings.choices.image.urlExpirationDate"
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
220
|
-
}
|
|
221
|
-
]
|
|
267
|
+
paths: TRANSFORM_PATHS_0
|
|
222
268
|
},
|
|
223
269
|
{
|
|
224
270
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
225
|
-
paths:
|
|
226
|
-
{
|
|
227
|
-
path: "customization.choicesSettings.choices.image.focalPoint.x"
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
path: "customization.choicesSettings.choices.image.focalPoint.y"
|
|
231
|
-
}
|
|
232
|
-
]
|
|
271
|
+
paths: TRANSFORM_PATHS_1
|
|
233
272
|
}
|
|
234
273
|
])
|
|
235
274
|
};
|
|
@@ -242,27 +281,15 @@ function updateCustomization(payload) {
|
|
|
242
281
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
243
282
|
{
|
|
244
283
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
245
|
-
paths:
|
|
284
|
+
paths: TRANSFORM_PATHS_2
|
|
246
285
|
},
|
|
247
286
|
{
|
|
248
287
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
249
|
-
paths:
|
|
250
|
-
{ path: "customization.createdDate" },
|
|
251
|
-
{ path: "customization.updatedDate" },
|
|
252
|
-
{
|
|
253
|
-
path: "customization.choicesSettings.choices.image.urlExpirationDate"
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
257
|
-
}
|
|
258
|
-
]
|
|
288
|
+
paths: TRANSFORM_PATHS_0
|
|
259
289
|
},
|
|
260
290
|
{
|
|
261
291
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
262
|
-
paths:
|
|
263
|
-
{ path: "customization.choicesSettings.choices.image.focalPoint.x" },
|
|
264
|
-
{ path: "customization.choicesSettings.choices.image.focalPoint.y" }
|
|
265
|
-
]
|
|
292
|
+
paths: TRANSFORM_PATHS_1
|
|
266
293
|
}
|
|
267
294
|
]);
|
|
268
295
|
const metadata = {
|
|
@@ -282,27 +309,11 @@ function updateCustomization(payload) {
|
|
|
282
309
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
283
310
|
{
|
|
284
311
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
285
|
-
paths:
|
|
286
|
-
{ path: "customization.createdDate" },
|
|
287
|
-
{ path: "customization.updatedDate" },
|
|
288
|
-
{
|
|
289
|
-
path: "customization.choicesSettings.choices.image.urlExpirationDate"
|
|
290
|
-
},
|
|
291
|
-
{
|
|
292
|
-
path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
293
|
-
}
|
|
294
|
-
]
|
|
312
|
+
paths: TRANSFORM_PATHS_0
|
|
295
313
|
},
|
|
296
314
|
{
|
|
297
315
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
298
|
-
paths:
|
|
299
|
-
{
|
|
300
|
-
path: "customization.choicesSettings.choices.image.focalPoint.x"
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
path: "customization.choicesSettings.choices.image.focalPoint.y"
|
|
304
|
-
}
|
|
305
|
-
]
|
|
316
|
+
paths: TRANSFORM_PATHS_1
|
|
306
317
|
}
|
|
307
318
|
])
|
|
308
319
|
};
|
|
@@ -350,27 +361,11 @@ function queryCustomizations(payload) {
|
|
|
350
361
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
351
362
|
{
|
|
352
363
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
353
|
-
paths:
|
|
354
|
-
{ path: "customizations.createdDate" },
|
|
355
|
-
{ path: "customizations.updatedDate" },
|
|
356
|
-
{
|
|
357
|
-
path: "customizations.choicesSettings.choices.image.urlExpirationDate"
|
|
358
|
-
},
|
|
359
|
-
{
|
|
360
|
-
path: "customizations.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
361
|
-
}
|
|
362
|
-
]
|
|
364
|
+
paths: TRANSFORM_PATHS_3
|
|
363
365
|
},
|
|
364
366
|
{
|
|
365
367
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
366
|
-
paths:
|
|
367
|
-
{
|
|
368
|
-
path: "customizations.choicesSettings.choices.image.focalPoint.x"
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
path: "customizations.choicesSettings.choices.image.focalPoint.y"
|
|
372
|
-
}
|
|
373
|
-
]
|
|
368
|
+
paths: TRANSFORM_PATHS_4
|
|
374
369
|
}
|
|
375
370
|
]),
|
|
376
371
|
fallback: [
|
|
@@ -415,23 +410,11 @@ function bulkCreateCustomizations(payload) {
|
|
|
415
410
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
416
411
|
{
|
|
417
412
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
418
|
-
paths:
|
|
419
|
-
{ path: "customizations.createdDate" },
|
|
420
|
-
{ path: "customizations.updatedDate" },
|
|
421
|
-
{
|
|
422
|
-
path: "customizations.choicesSettings.choices.image.urlExpirationDate"
|
|
423
|
-
},
|
|
424
|
-
{
|
|
425
|
-
path: "customizations.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
426
|
-
}
|
|
427
|
-
]
|
|
413
|
+
paths: TRANSFORM_PATHS_3
|
|
428
414
|
},
|
|
429
415
|
{
|
|
430
416
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
431
|
-
paths:
|
|
432
|
-
{ path: "customizations.choicesSettings.choices.image.focalPoint.x" },
|
|
433
|
-
{ path: "customizations.choicesSettings.choices.image.focalPoint.y" }
|
|
434
|
-
]
|
|
417
|
+
paths: TRANSFORM_PATHS_4
|
|
435
418
|
}
|
|
436
419
|
]);
|
|
437
420
|
const metadata = {
|
|
@@ -451,27 +434,11 @@ function bulkCreateCustomizations(payload) {
|
|
|
451
434
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
452
435
|
{
|
|
453
436
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
454
|
-
paths:
|
|
455
|
-
{ path: "results.customization.createdDate" },
|
|
456
|
-
{ path: "results.customization.updatedDate" },
|
|
457
|
-
{
|
|
458
|
-
path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
|
|
459
|
-
},
|
|
460
|
-
{
|
|
461
|
-
path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
462
|
-
}
|
|
463
|
-
]
|
|
437
|
+
paths: TRANSFORM_PATHS_5
|
|
464
438
|
},
|
|
465
439
|
{
|
|
466
440
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
467
|
-
paths:
|
|
468
|
-
{
|
|
469
|
-
path: "results.customization.choicesSettings.choices.image.focalPoint.x"
|
|
470
|
-
},
|
|
471
|
-
{
|
|
472
|
-
path: "results.customization.choicesSettings.choices.image.focalPoint.y"
|
|
473
|
-
}
|
|
474
|
-
]
|
|
441
|
+
paths: TRANSFORM_PATHS_6
|
|
475
442
|
}
|
|
476
443
|
])
|
|
477
444
|
};
|
|
@@ -484,17 +451,11 @@ function addCustomizationChoices(payload) {
|
|
|
484
451
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
485
452
|
{
|
|
486
453
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
487
|
-
paths:
|
|
488
|
-
{ path: "choices.image.urlExpirationDate" },
|
|
489
|
-
{ path: "choices.displayImage.urlExpirationDate" }
|
|
490
|
-
]
|
|
454
|
+
paths: TRANSFORM_PATHS_7
|
|
491
455
|
},
|
|
492
456
|
{
|
|
493
457
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
494
|
-
paths:
|
|
495
|
-
{ path: "choices.image.focalPoint.x" },
|
|
496
|
-
{ path: "choices.image.focalPoint.y" }
|
|
497
|
-
]
|
|
458
|
+
paths: TRANSFORM_PATHS_8
|
|
498
459
|
}
|
|
499
460
|
]);
|
|
500
461
|
const metadata = {
|
|
@@ -514,27 +475,11 @@ function addCustomizationChoices(payload) {
|
|
|
514
475
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
515
476
|
{
|
|
516
477
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
517
|
-
paths:
|
|
518
|
-
{ path: "customization.createdDate" },
|
|
519
|
-
{ path: "customization.updatedDate" },
|
|
520
|
-
{
|
|
521
|
-
path: "customization.choicesSettings.choices.image.urlExpirationDate"
|
|
522
|
-
},
|
|
523
|
-
{
|
|
524
|
-
path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
525
|
-
}
|
|
526
|
-
]
|
|
478
|
+
paths: TRANSFORM_PATHS_0
|
|
527
479
|
},
|
|
528
480
|
{
|
|
529
481
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
530
|
-
paths:
|
|
531
|
-
{
|
|
532
|
-
path: "customization.choicesSettings.choices.image.focalPoint.x"
|
|
533
|
-
},
|
|
534
|
-
{
|
|
535
|
-
path: "customization.choicesSettings.choices.image.focalPoint.y"
|
|
536
|
-
}
|
|
537
|
-
]
|
|
482
|
+
paths: TRANSFORM_PATHS_1
|
|
538
483
|
}
|
|
539
484
|
])
|
|
540
485
|
};
|
|
@@ -547,17 +492,11 @@ function setCustomizationChoices(payload) {
|
|
|
547
492
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
548
493
|
{
|
|
549
494
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
550
|
-
paths:
|
|
551
|
-
{ path: "choices.image.urlExpirationDate" },
|
|
552
|
-
{ path: "choices.displayImage.urlExpirationDate" }
|
|
553
|
-
]
|
|
495
|
+
paths: TRANSFORM_PATHS_7
|
|
554
496
|
},
|
|
555
497
|
{
|
|
556
498
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
557
|
-
paths:
|
|
558
|
-
{ path: "choices.image.focalPoint.x" },
|
|
559
|
-
{ path: "choices.image.focalPoint.y" }
|
|
560
|
-
]
|
|
499
|
+
paths: TRANSFORM_PATHS_8
|
|
561
500
|
}
|
|
562
501
|
]);
|
|
563
502
|
const metadata = {
|
|
@@ -577,27 +516,11 @@ function setCustomizationChoices(payload) {
|
|
|
577
516
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
578
517
|
{
|
|
579
518
|
transformFn: import_timestamp2.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
|
-
]
|
|
519
|
+
paths: TRANSFORM_PATHS_0
|
|
590
520
|
},
|
|
591
521
|
{
|
|
592
522
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
593
|
-
paths:
|
|
594
|
-
{
|
|
595
|
-
path: "customization.choicesSettings.choices.image.focalPoint.x"
|
|
596
|
-
},
|
|
597
|
-
{
|
|
598
|
-
path: "customization.choicesSettings.choices.image.focalPoint.y"
|
|
599
|
-
}
|
|
600
|
-
]
|
|
523
|
+
paths: TRANSFORM_PATHS_1
|
|
601
524
|
}
|
|
602
525
|
])
|
|
603
526
|
};
|
|
@@ -624,27 +547,11 @@ function removeCustomizationChoices(payload) {
|
|
|
624
547
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
625
548
|
{
|
|
626
549
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
627
|
-
paths:
|
|
628
|
-
{ path: "customization.createdDate" },
|
|
629
|
-
{ path: "customization.updatedDate" },
|
|
630
|
-
{
|
|
631
|
-
path: "customization.choicesSettings.choices.image.urlExpirationDate"
|
|
632
|
-
},
|
|
633
|
-
{
|
|
634
|
-
path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
635
|
-
}
|
|
636
|
-
]
|
|
550
|
+
paths: TRANSFORM_PATHS_0
|
|
637
551
|
},
|
|
638
552
|
{
|
|
639
553
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
640
|
-
paths:
|
|
641
|
-
{
|
|
642
|
-
path: "customization.choicesSettings.choices.image.focalPoint.x"
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
path: "customization.choicesSettings.choices.image.focalPoint.y"
|
|
646
|
-
}
|
|
647
|
-
]
|
|
554
|
+
paths: TRANSFORM_PATHS_1
|
|
648
555
|
}
|
|
649
556
|
])
|
|
650
557
|
};
|
|
@@ -657,21 +564,15 @@ function updateCustomizationChoices(payload) {
|
|
|
657
564
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
658
565
|
{
|
|
659
566
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
660
|
-
paths:
|
|
567
|
+
paths: TRANSFORM_PATHS_9
|
|
661
568
|
},
|
|
662
569
|
{
|
|
663
570
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
664
|
-
paths:
|
|
665
|
-
{ path: "choices.choice.image.urlExpirationDate" },
|
|
666
|
-
{ path: "choices.choice.displayImage.urlExpirationDate" }
|
|
667
|
-
]
|
|
571
|
+
paths: TRANSFORM_PATHS_10
|
|
668
572
|
},
|
|
669
573
|
{
|
|
670
574
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
671
|
-
paths:
|
|
672
|
-
{ path: "choices.choice.image.focalPoint.x" },
|
|
673
|
-
{ path: "choices.choice.image.focalPoint.y" }
|
|
674
|
-
]
|
|
575
|
+
paths: TRANSFORM_PATHS_11
|
|
675
576
|
}
|
|
676
577
|
]);
|
|
677
578
|
const metadata = {
|
|
@@ -691,27 +592,11 @@ function updateCustomizationChoices(payload) {
|
|
|
691
592
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
692
593
|
{
|
|
693
594
|
transformFn: import_timestamp2.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
|
-
]
|
|
595
|
+
paths: TRANSFORM_PATHS_0
|
|
704
596
|
},
|
|
705
597
|
{
|
|
706
598
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
707
|
-
paths:
|
|
708
|
-
{
|
|
709
|
-
path: "customization.choicesSettings.choices.image.focalPoint.x"
|
|
710
|
-
},
|
|
711
|
-
{
|
|
712
|
-
path: "customization.choicesSettings.choices.image.focalPoint.y"
|
|
713
|
-
}
|
|
714
|
-
]
|
|
599
|
+
paths: TRANSFORM_PATHS_1
|
|
715
600
|
}
|
|
716
601
|
])
|
|
717
602
|
};
|
|
@@ -738,27 +623,11 @@ function reorderCustomizationChoices(payload) {
|
|
|
738
623
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
739
624
|
{
|
|
740
625
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
741
|
-
paths:
|
|
742
|
-
{ path: "customization.createdDate" },
|
|
743
|
-
{ path: "customization.updatedDate" },
|
|
744
|
-
{
|
|
745
|
-
path: "customization.choicesSettings.choices.image.urlExpirationDate"
|
|
746
|
-
},
|
|
747
|
-
{
|
|
748
|
-
path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
749
|
-
}
|
|
750
|
-
]
|
|
626
|
+
paths: TRANSFORM_PATHS_0
|
|
751
627
|
},
|
|
752
628
|
{
|
|
753
629
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
754
|
-
paths:
|
|
755
|
-
{
|
|
756
|
-
path: "customization.choicesSettings.choices.image.focalPoint.x"
|
|
757
|
-
},
|
|
758
|
-
{
|
|
759
|
-
path: "customization.choicesSettings.choices.image.focalPoint.y"
|
|
760
|
-
}
|
|
761
|
-
]
|
|
630
|
+
paths: TRANSFORM_PATHS_1
|
|
762
631
|
}
|
|
763
632
|
])
|
|
764
633
|
};
|
|
@@ -771,19 +640,11 @@ function bulkAddCustomizationChoices(payload) {
|
|
|
771
640
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
772
641
|
{
|
|
773
642
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
774
|
-
paths:
|
|
775
|
-
{ path: "customizationsChoices.choices.image.urlExpirationDate" },
|
|
776
|
-
{
|
|
777
|
-
path: "customizationsChoices.choices.displayImage.urlExpirationDate"
|
|
778
|
-
}
|
|
779
|
-
]
|
|
643
|
+
paths: TRANSFORM_PATHS_12
|
|
780
644
|
},
|
|
781
645
|
{
|
|
782
646
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
783
|
-
paths:
|
|
784
|
-
{ path: "customizationsChoices.choices.image.focalPoint.x" },
|
|
785
|
-
{ path: "customizationsChoices.choices.image.focalPoint.y" }
|
|
786
|
-
]
|
|
647
|
+
paths: TRANSFORM_PATHS_13
|
|
787
648
|
}
|
|
788
649
|
]);
|
|
789
650
|
const metadata = {
|
|
@@ -803,27 +664,11 @@ function bulkAddCustomizationChoices(payload) {
|
|
|
803
664
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
804
665
|
{
|
|
805
666
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
806
|
-
paths:
|
|
807
|
-
{ path: "results.customization.createdDate" },
|
|
808
|
-
{ path: "results.customization.updatedDate" },
|
|
809
|
-
{
|
|
810
|
-
path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
|
|
811
|
-
},
|
|
812
|
-
{
|
|
813
|
-
path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
814
|
-
}
|
|
815
|
-
]
|
|
667
|
+
paths: TRANSFORM_PATHS_5
|
|
816
668
|
},
|
|
817
669
|
{
|
|
818
670
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
819
|
-
paths:
|
|
820
|
-
{
|
|
821
|
-
path: "results.customization.choicesSettings.choices.image.focalPoint.x"
|
|
822
|
-
},
|
|
823
|
-
{
|
|
824
|
-
path: "results.customization.choicesSettings.choices.image.focalPoint.y"
|
|
825
|
-
}
|
|
826
|
-
]
|
|
671
|
+
paths: TRANSFORM_PATHS_6
|
|
827
672
|
}
|
|
828
673
|
])
|
|
829
674
|
};
|
|
@@ -836,31 +681,15 @@ function bulkUpdateCustomizations(payload) {
|
|
|
836
681
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
837
682
|
{
|
|
838
683
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
839
|
-
paths:
|
|
684
|
+
paths: TRANSFORM_PATHS_14
|
|
840
685
|
},
|
|
841
686
|
{
|
|
842
687
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
843
|
-
paths:
|
|
844
|
-
{ path: "customizations.customization.createdDate" },
|
|
845
|
-
{ path: "customizations.customization.updatedDate" },
|
|
846
|
-
{
|
|
847
|
-
path: "customizations.customization.choicesSettings.choices.image.urlExpirationDate"
|
|
848
|
-
},
|
|
849
|
-
{
|
|
850
|
-
path: "customizations.customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
851
|
-
}
|
|
852
|
-
]
|
|
688
|
+
paths: TRANSFORM_PATHS_15
|
|
853
689
|
},
|
|
854
690
|
{
|
|
855
691
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
856
|
-
paths:
|
|
857
|
-
{
|
|
858
|
-
path: "customizations.customization.choicesSettings.choices.image.focalPoint.x"
|
|
859
|
-
},
|
|
860
|
-
{
|
|
861
|
-
path: "customizations.customization.choicesSettings.choices.image.focalPoint.y"
|
|
862
|
-
}
|
|
863
|
-
]
|
|
692
|
+
paths: TRANSFORM_PATHS_16
|
|
864
693
|
}
|
|
865
694
|
]);
|
|
866
695
|
const metadata = {
|
|
@@ -880,27 +709,11 @@ function bulkUpdateCustomizations(payload) {
|
|
|
880
709
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
881
710
|
{
|
|
882
711
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
883
|
-
paths:
|
|
884
|
-
{ path: "results.customization.createdDate" },
|
|
885
|
-
{ path: "results.customization.updatedDate" },
|
|
886
|
-
{
|
|
887
|
-
path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
|
|
888
|
-
},
|
|
889
|
-
{
|
|
890
|
-
path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
891
|
-
}
|
|
892
|
-
]
|
|
712
|
+
paths: TRANSFORM_PATHS_5
|
|
893
713
|
},
|
|
894
714
|
{
|
|
895
715
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
896
|
-
paths:
|
|
897
|
-
{
|
|
898
|
-
path: "results.customization.choicesSettings.choices.image.focalPoint.x"
|
|
899
|
-
},
|
|
900
|
-
{
|
|
901
|
-
path: "results.customization.choicesSettings.choices.image.focalPoint.y"
|
|
902
|
-
}
|
|
903
|
-
]
|
|
716
|
+
paths: TRANSFORM_PATHS_6
|
|
904
717
|
}
|
|
905
718
|
])
|
|
906
719
|
};
|
|
@@ -914,6 +727,34 @@ var import_image = require("@wix/sdk-runtime/transformations/image");
|
|
|
914
727
|
var import_image2 = require("@wix/sdk-runtime/transformations/image");
|
|
915
728
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
916
729
|
var import_query_builder_utils = require("@wix/sdk-runtime/query-builder-utils");
|
|
730
|
+
var TRANSFORM_PATHS_02 = [
|
|
731
|
+
{ path: "customization.choicesSettings.choices.image" },
|
|
732
|
+
{ path: "customization.choicesSettings.choices.displayImage" }
|
|
733
|
+
];
|
|
734
|
+
var TRANSFORM_PATHS_17 = [
|
|
735
|
+
{ path: "customizations.choicesSettings.choices.image" },
|
|
736
|
+
{ path: "customizations.choicesSettings.choices.displayImage" }
|
|
737
|
+
];
|
|
738
|
+
var TRANSFORM_PATHS_22 = [
|
|
739
|
+
{ path: "results.customization.choicesSettings.choices.image" },
|
|
740
|
+
{ path: "results.customization.choicesSettings.choices.displayImage" }
|
|
741
|
+
];
|
|
742
|
+
var TRANSFORM_PATHS_32 = [
|
|
743
|
+
{ path: "choices.image" },
|
|
744
|
+
{ path: "choices.displayImage" }
|
|
745
|
+
];
|
|
746
|
+
var TRANSFORM_PATHS_42 = [
|
|
747
|
+
{ path: "choices.choice.image" },
|
|
748
|
+
{ path: "choices.choice.displayImage" }
|
|
749
|
+
];
|
|
750
|
+
var TRANSFORM_PATHS_52 = [
|
|
751
|
+
{ path: "customizationsChoices.choices.image" },
|
|
752
|
+
{ path: "customizationsChoices.choices.displayImage" }
|
|
753
|
+
];
|
|
754
|
+
var TRANSFORM_PATHS_62 = [
|
|
755
|
+
{ path: "customizations.customization.choicesSettings.choices.image" },
|
|
756
|
+
{ path: "customizations.customization.choicesSettings.choices.displayImage" }
|
|
757
|
+
];
|
|
917
758
|
var CustomizationType = /* @__PURE__ */ ((CustomizationType2) => {
|
|
918
759
|
CustomizationType2["PRODUCT_OPTION"] = "PRODUCT_OPTION";
|
|
919
760
|
CustomizationType2["MODIFIER"] = "MODIFIER";
|
|
@@ -964,10 +805,7 @@ async function createCustomization2(customization) {
|
|
|
964
805
|
[
|
|
965
806
|
{
|
|
966
807
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
967
|
-
paths:
|
|
968
|
-
{ path: "customization.choicesSettings.choices.image" },
|
|
969
|
-
{ path: "customization.choicesSettings.choices.displayImage" }
|
|
970
|
-
]
|
|
808
|
+
paths: TRANSFORM_PATHS_02
|
|
971
809
|
}
|
|
972
810
|
]
|
|
973
811
|
);
|
|
@@ -980,10 +818,7 @@ async function createCustomization2(customization) {
|
|
|
980
818
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
981
819
|
{
|
|
982
820
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
983
|
-
paths:
|
|
984
|
-
{ path: "customization.choicesSettings.choices.image" },
|
|
985
|
-
{ path: "customization.choicesSettings.choices.displayImage" }
|
|
986
|
-
]
|
|
821
|
+
paths: TRANSFORM_PATHS_02
|
|
987
822
|
}
|
|
988
823
|
])
|
|
989
824
|
)?.customization;
|
|
@@ -1016,10 +851,7 @@ async function getCustomization2(customizationId, options) {
|
|
|
1016
851
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1017
852
|
{
|
|
1018
853
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1019
|
-
paths:
|
|
1020
|
-
{ path: "customization.choicesSettings.choices.image" },
|
|
1021
|
-
{ path: "customization.choicesSettings.choices.displayImage" }
|
|
1022
|
-
]
|
|
854
|
+
paths: TRANSFORM_PATHS_02
|
|
1023
855
|
}
|
|
1024
856
|
])
|
|
1025
857
|
)?.customization;
|
|
@@ -1050,10 +882,7 @@ async function updateCustomization2(_id, customization, options) {
|
|
|
1050
882
|
[
|
|
1051
883
|
{
|
|
1052
884
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
1053
|
-
paths:
|
|
1054
|
-
{ path: "customization.choicesSettings.choices.image" },
|
|
1055
|
-
{ path: "customization.choicesSettings.choices.displayImage" }
|
|
1056
|
-
]
|
|
885
|
+
paths: TRANSFORM_PATHS_02
|
|
1057
886
|
}
|
|
1058
887
|
]
|
|
1059
888
|
);
|
|
@@ -1066,10 +895,7 @@ async function updateCustomization2(_id, customization, options) {
|
|
|
1066
895
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1067
896
|
{
|
|
1068
897
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1069
|
-
paths:
|
|
1070
|
-
{ path: "customization.choicesSettings.choices.image" },
|
|
1071
|
-
{ path: "customization.choicesSettings.choices.displayImage" }
|
|
1072
|
-
]
|
|
898
|
+
paths: TRANSFORM_PATHS_02
|
|
1073
899
|
}
|
|
1074
900
|
])
|
|
1075
901
|
)?.customization;
|
|
@@ -1147,10 +973,7 @@ function queryCustomizations2(options) {
|
|
|
1147
973
|
(0, import_transform_paths2.transformPaths)(data, [
|
|
1148
974
|
{
|
|
1149
975
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1150
|
-
paths:
|
|
1151
|
-
{ path: "customizations.choicesSettings.choices.image" },
|
|
1152
|
-
{ path: "customizations.choicesSettings.choices.displayImage" }
|
|
1153
|
-
]
|
|
976
|
+
paths: TRANSFORM_PATHS_17
|
|
1154
977
|
}
|
|
1155
978
|
])
|
|
1156
979
|
);
|
|
@@ -1186,10 +1009,7 @@ async function typedQueryCustomizations(query, options) {
|
|
|
1186
1009
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1187
1010
|
{
|
|
1188
1011
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1189
|
-
paths:
|
|
1190
|
-
{ path: "customizations.choicesSettings.choices.image" },
|
|
1191
|
-
{ path: "customizations.choicesSettings.choices.displayImage" }
|
|
1192
|
-
]
|
|
1012
|
+
paths: TRANSFORM_PATHS_17
|
|
1193
1013
|
}
|
|
1194
1014
|
])
|
|
1195
1015
|
);
|
|
@@ -1245,10 +1065,7 @@ async function bulkCreateCustomizations2(customizations, options) {
|
|
|
1245
1065
|
[
|
|
1246
1066
|
{
|
|
1247
1067
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
1248
|
-
paths:
|
|
1249
|
-
{ path: "customizations.choicesSettings.choices.image" },
|
|
1250
|
-
{ path: "customizations.choicesSettings.choices.displayImage" }
|
|
1251
|
-
]
|
|
1068
|
+
paths: TRANSFORM_PATHS_17
|
|
1252
1069
|
}
|
|
1253
1070
|
]
|
|
1254
1071
|
);
|
|
@@ -1261,12 +1078,7 @@ async function bulkCreateCustomizations2(customizations, options) {
|
|
|
1261
1078
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1262
1079
|
{
|
|
1263
1080
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1264
|
-
paths:
|
|
1265
|
-
{ path: "results.customization.choicesSettings.choices.image" },
|
|
1266
|
-
{
|
|
1267
|
-
path: "results.customization.choicesSettings.choices.displayImage"
|
|
1268
|
-
}
|
|
1269
|
-
]
|
|
1081
|
+
paths: TRANSFORM_PATHS_22
|
|
1270
1082
|
}
|
|
1271
1083
|
])
|
|
1272
1084
|
);
|
|
@@ -1298,7 +1110,7 @@ async function addCustomizationChoices2(customizationId, choices, options) {
|
|
|
1298
1110
|
[
|
|
1299
1111
|
{
|
|
1300
1112
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
1301
|
-
paths:
|
|
1113
|
+
paths: TRANSFORM_PATHS_32
|
|
1302
1114
|
}
|
|
1303
1115
|
]
|
|
1304
1116
|
);
|
|
@@ -1311,10 +1123,7 @@ async function addCustomizationChoices2(customizationId, choices, options) {
|
|
|
1311
1123
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1312
1124
|
{
|
|
1313
1125
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1314
|
-
paths:
|
|
1315
|
-
{ path: "customization.choicesSettings.choices.image" },
|
|
1316
|
-
{ path: "customization.choicesSettings.choices.displayImage" }
|
|
1317
|
-
]
|
|
1126
|
+
paths: TRANSFORM_PATHS_02
|
|
1318
1127
|
}
|
|
1319
1128
|
])
|
|
1320
1129
|
);
|
|
@@ -1347,7 +1156,7 @@ async function setCustomizationChoices2(customizationId, choices, options) {
|
|
|
1347
1156
|
[
|
|
1348
1157
|
{
|
|
1349
1158
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
1350
|
-
paths:
|
|
1159
|
+
paths: TRANSFORM_PATHS_32
|
|
1351
1160
|
}
|
|
1352
1161
|
]
|
|
1353
1162
|
);
|
|
@@ -1360,10 +1169,7 @@ async function setCustomizationChoices2(customizationId, choices, options) {
|
|
|
1360
1169
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1361
1170
|
{
|
|
1362
1171
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1363
|
-
paths:
|
|
1364
|
-
{ path: "customization.choicesSettings.choices.image" },
|
|
1365
|
-
{ path: "customization.choicesSettings.choices.displayImage" }
|
|
1366
|
-
]
|
|
1172
|
+
paths: TRANSFORM_PATHS_02
|
|
1367
1173
|
}
|
|
1368
1174
|
])
|
|
1369
1175
|
);
|
|
@@ -1404,10 +1210,7 @@ async function removeCustomizationChoices2(customizationId, choiceIds, options)
|
|
|
1404
1210
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1405
1211
|
{
|
|
1406
1212
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1407
|
-
paths:
|
|
1408
|
-
{ path: "customization.choicesSettings.choices.image" },
|
|
1409
|
-
{ path: "customization.choicesSettings.choices.displayImage" }
|
|
1410
|
-
]
|
|
1213
|
+
paths: TRANSFORM_PATHS_02
|
|
1411
1214
|
}
|
|
1412
1215
|
])
|
|
1413
1216
|
);
|
|
@@ -1442,10 +1245,7 @@ async function updateCustomizationChoices2(customizationId, revision, options) {
|
|
|
1442
1245
|
[
|
|
1443
1246
|
{
|
|
1444
1247
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
1445
|
-
paths:
|
|
1446
|
-
{ path: "choices.choice.image" },
|
|
1447
|
-
{ path: "choices.choice.displayImage" }
|
|
1448
|
-
]
|
|
1248
|
+
paths: TRANSFORM_PATHS_42
|
|
1449
1249
|
}
|
|
1450
1250
|
]
|
|
1451
1251
|
);
|
|
@@ -1460,10 +1260,7 @@ async function updateCustomizationChoices2(customizationId, revision, options) {
|
|
|
1460
1260
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1461
1261
|
{
|
|
1462
1262
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1463
|
-
paths:
|
|
1464
|
-
{ path: "customization.choicesSettings.choices.image" },
|
|
1465
|
-
{ path: "customization.choicesSettings.choices.displayImage" }
|
|
1466
|
-
]
|
|
1263
|
+
paths: TRANSFORM_PATHS_02
|
|
1467
1264
|
}
|
|
1468
1265
|
])
|
|
1469
1266
|
);
|
|
@@ -1505,10 +1302,7 @@ async function reorderCustomizationChoices2(customizationId, revision, options)
|
|
|
1505
1302
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1506
1303
|
{
|
|
1507
1304
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1508
|
-
paths:
|
|
1509
|
-
{ path: "customization.choicesSettings.choices.image" },
|
|
1510
|
-
{ path: "customization.choicesSettings.choices.displayImage" }
|
|
1511
|
-
]
|
|
1305
|
+
paths: TRANSFORM_PATHS_02
|
|
1512
1306
|
}
|
|
1513
1307
|
])
|
|
1514
1308
|
);
|
|
@@ -1542,10 +1336,7 @@ async function bulkAddCustomizationChoices2(customizationsChoices, options) {
|
|
|
1542
1336
|
[
|
|
1543
1337
|
{
|
|
1544
1338
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
1545
|
-
paths:
|
|
1546
|
-
{ path: "customizationsChoices.choices.image" },
|
|
1547
|
-
{ path: "customizationsChoices.choices.displayImage" }
|
|
1548
|
-
]
|
|
1339
|
+
paths: TRANSFORM_PATHS_52
|
|
1549
1340
|
}
|
|
1550
1341
|
]
|
|
1551
1342
|
);
|
|
@@ -1560,12 +1351,7 @@ async function bulkAddCustomizationChoices2(customizationsChoices, options) {
|
|
|
1560
1351
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1561
1352
|
{
|
|
1562
1353
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1563
|
-
paths:
|
|
1564
|
-
{ path: "results.customization.choicesSettings.choices.image" },
|
|
1565
|
-
{
|
|
1566
|
-
path: "results.customization.choicesSettings.choices.displayImage"
|
|
1567
|
-
}
|
|
1568
|
-
]
|
|
1354
|
+
paths: TRANSFORM_PATHS_22
|
|
1569
1355
|
}
|
|
1570
1356
|
])
|
|
1571
1357
|
);
|
|
@@ -1598,14 +1384,7 @@ async function bulkUpdateCustomizations2(customizations, options) {
|
|
|
1598
1384
|
[
|
|
1599
1385
|
{
|
|
1600
1386
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
1601
|
-
paths:
|
|
1602
|
-
{
|
|
1603
|
-
path: "customizations.customization.choicesSettings.choices.image"
|
|
1604
|
-
},
|
|
1605
|
-
{
|
|
1606
|
-
path: "customizations.customization.choicesSettings.choices.displayImage"
|
|
1607
|
-
}
|
|
1608
|
-
]
|
|
1387
|
+
paths: TRANSFORM_PATHS_62
|
|
1609
1388
|
}
|
|
1610
1389
|
]
|
|
1611
1390
|
);
|
|
@@ -1618,12 +1397,7 @@ async function bulkUpdateCustomizations2(customizations, options) {
|
|
|
1618
1397
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1619
1398
|
{
|
|
1620
1399
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1621
|
-
paths:
|
|
1622
|
-
{ path: "results.customization.choicesSettings.choices.image" },
|
|
1623
|
-
{
|
|
1624
|
-
path: "results.customization.choicesSettings.choices.displayImage"
|
|
1625
|
-
}
|
|
1626
|
-
]
|
|
1400
|
+
paths: TRANSFORM_PATHS_22
|
|
1627
1401
|
}
|
|
1628
1402
|
])
|
|
1629
1403
|
);
|
|
@@ -1647,6 +1421,28 @@ async function bulkUpdateCustomizations2(customizations, options) {
|
|
|
1647
1421
|
}
|
|
1648
1422
|
|
|
1649
1423
|
// src/stores-catalog-v3-customization-customizations-v-3.public.ts
|
|
1424
|
+
var TRANSFORM_PATHS_03 = [
|
|
1425
|
+
{ path: "entity.createdDate" },
|
|
1426
|
+
{ path: "entity.updatedDate" },
|
|
1427
|
+
{ path: "metadata.eventTime" }
|
|
1428
|
+
];
|
|
1429
|
+
var TRANSFORM_PATHS_18 = [
|
|
1430
|
+
{ path: "entity.choicesSettings.choices.image" },
|
|
1431
|
+
{ path: "entity.choicesSettings.choices.displayImage" }
|
|
1432
|
+
];
|
|
1433
|
+
var TRANSFORM_PATHS_23 = [
|
|
1434
|
+
{ path: "entity.createdDate" },
|
|
1435
|
+
{ path: "entity.updatedDate" },
|
|
1436
|
+
{ path: "metadata.eventTime" },
|
|
1437
|
+
{ path: "modifiedFields.createdDate" },
|
|
1438
|
+
{ path: "modifiedFields.updatedDate" }
|
|
1439
|
+
];
|
|
1440
|
+
var TRANSFORM_PATHS_33 = [
|
|
1441
|
+
{ path: "entity.choicesSettings.choices.image" },
|
|
1442
|
+
{ path: "entity.choicesSettings.choices.displayImage" },
|
|
1443
|
+
{ path: "modifiedFields.choicesSettings.choices.image" },
|
|
1444
|
+
{ path: "modifiedFields.choicesSettings.choices.displayImage" }
|
|
1445
|
+
];
|
|
1650
1446
|
function createCustomization3(httpClient) {
|
|
1651
1447
|
return (customization) => createCustomization2(
|
|
1652
1448
|
customization,
|
|
@@ -1776,18 +1572,11 @@ var onCustomizationCreated = /* @__PURE__ */ (0, import_sdk_types.EventDefinitio
|
|
|
1776
1572
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
1777
1573
|
{
|
|
1778
1574
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1779
|
-
paths:
|
|
1780
|
-
{ path: "entity.createdDate" },
|
|
1781
|
-
{ path: "entity.updatedDate" },
|
|
1782
|
-
{ path: "metadata.eventTime" }
|
|
1783
|
-
]
|
|
1575
|
+
paths: TRANSFORM_PATHS_03
|
|
1784
1576
|
},
|
|
1785
1577
|
{
|
|
1786
1578
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
1787
|
-
paths:
|
|
1788
|
-
{ path: "entity.choicesSettings.choices.image" },
|
|
1789
|
-
{ path: "entity.choicesSettings.choices.displayImage" }
|
|
1790
|
-
]
|
|
1579
|
+
paths: TRANSFORM_PATHS_18
|
|
1791
1580
|
}
|
|
1792
1581
|
])
|
|
1793
1582
|
)
|
|
@@ -1799,18 +1588,11 @@ var onCustomizationDeleted = /* @__PURE__ */ (0, import_sdk_types.EventDefinitio
|
|
|
1799
1588
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
1800
1589
|
{
|
|
1801
1590
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1802
|
-
paths:
|
|
1803
|
-
{ path: "entity.createdDate" },
|
|
1804
|
-
{ path: "entity.updatedDate" },
|
|
1805
|
-
{ path: "metadata.eventTime" }
|
|
1806
|
-
]
|
|
1591
|
+
paths: TRANSFORM_PATHS_03
|
|
1807
1592
|
},
|
|
1808
1593
|
{
|
|
1809
1594
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
1810
|
-
paths:
|
|
1811
|
-
{ path: "entity.choicesSettings.choices.image" },
|
|
1812
|
-
{ path: "entity.choicesSettings.choices.displayImage" }
|
|
1813
|
-
]
|
|
1595
|
+
paths: TRANSFORM_PATHS_18
|
|
1814
1596
|
}
|
|
1815
1597
|
])
|
|
1816
1598
|
)
|
|
@@ -1822,22 +1604,11 @@ var onCustomizationUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinitio
|
|
|
1822
1604
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
1823
1605
|
{
|
|
1824
1606
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1825
|
-
paths:
|
|
1826
|
-
{ path: "entity.createdDate" },
|
|
1827
|
-
{ path: "entity.updatedDate" },
|
|
1828
|
-
{ path: "metadata.eventTime" },
|
|
1829
|
-
{ path: "modifiedFields.createdDate" },
|
|
1830
|
-
{ path: "modifiedFields.updatedDate" }
|
|
1831
|
-
]
|
|
1607
|
+
paths: TRANSFORM_PATHS_23
|
|
1832
1608
|
},
|
|
1833
1609
|
{
|
|
1834
1610
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
1835
|
-
paths:
|
|
1836
|
-
{ path: "entity.choicesSettings.choices.image" },
|
|
1837
|
-
{ path: "entity.choicesSettings.choices.displayImage" },
|
|
1838
|
-
{ path: "modifiedFields.choicesSettings.choices.image" },
|
|
1839
|
-
{ path: "modifiedFields.choicesSettings.choices.displayImage" }
|
|
1840
|
-
]
|
|
1611
|
+
paths: TRANSFORM_PATHS_33
|
|
1841
1612
|
}
|
|
1842
1613
|
])
|
|
1843
1614
|
)
|