@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.
- package/build/cjs/index.d.ts +4 -1
- package/build/cjs/index.js +203 -432
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +4 -1
- package/build/cjs/index.typings.js +175 -401
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +126 -313
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +4 -1
- package/build/es/index.mjs +203 -432
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +4 -1
- package/build/es/index.typings.mjs +175 -401
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +126 -313
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +4 -1
- package/build/internal/cjs/index.typings.d.ts +4 -1
- package/build/internal/es/index.d.mts +4 -1
- package/build/internal/es/index.typings.d.mts +4 -1
- package/package.json +2 -2
package/build/es/meta.mjs
CHANGED
|
@@ -7,6 +7,89 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
|
|
|
7
7
|
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
8
8
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
9
9
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
10
|
+
var TRANSFORM_PATHS_0 = [
|
|
11
|
+
{ path: "customization.createdDate" },
|
|
12
|
+
{ path: "customization.updatedDate" },
|
|
13
|
+
{ path: "customization.choicesSettings.choices.image.urlExpirationDate" },
|
|
14
|
+
{
|
|
15
|
+
path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
16
|
+
}
|
|
17
|
+
];
|
|
18
|
+
var TRANSFORM_PATHS_1 = [
|
|
19
|
+
{ path: "customization.choicesSettings.choices.image.focalPoint.x" },
|
|
20
|
+
{ path: "customization.choicesSettings.choices.image.focalPoint.y" }
|
|
21
|
+
];
|
|
22
|
+
var TRANSFORM_PATHS_2 = [{ path: "fieldMask" }];
|
|
23
|
+
var TRANSFORM_PATHS_3 = [
|
|
24
|
+
{ path: "customizations.createdDate" },
|
|
25
|
+
{ path: "customizations.updatedDate" },
|
|
26
|
+
{ path: "customizations.choicesSettings.choices.image.urlExpirationDate" },
|
|
27
|
+
{
|
|
28
|
+
path: "customizations.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
29
|
+
}
|
|
30
|
+
];
|
|
31
|
+
var TRANSFORM_PATHS_4 = [
|
|
32
|
+
{ path: "customizations.choicesSettings.choices.image.focalPoint.x" },
|
|
33
|
+
{ path: "customizations.choicesSettings.choices.image.focalPoint.y" }
|
|
34
|
+
];
|
|
35
|
+
var TRANSFORM_PATHS_5 = [
|
|
36
|
+
{ path: "results.customization.createdDate" },
|
|
37
|
+
{ path: "results.customization.updatedDate" },
|
|
38
|
+
{
|
|
39
|
+
path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
43
|
+
}
|
|
44
|
+
];
|
|
45
|
+
var TRANSFORM_PATHS_6 = [
|
|
46
|
+
{ path: "results.customization.choicesSettings.choices.image.focalPoint.x" },
|
|
47
|
+
{ path: "results.customization.choicesSettings.choices.image.focalPoint.y" }
|
|
48
|
+
];
|
|
49
|
+
var TRANSFORM_PATHS_7 = [
|
|
50
|
+
{ path: "choices.image.urlExpirationDate" },
|
|
51
|
+
{ path: "choices.displayImage.urlExpirationDate" }
|
|
52
|
+
];
|
|
53
|
+
var TRANSFORM_PATHS_8 = [
|
|
54
|
+
{ path: "choices.image.focalPoint.x" },
|
|
55
|
+
{ path: "choices.image.focalPoint.y" }
|
|
56
|
+
];
|
|
57
|
+
var TRANSFORM_PATHS_9 = [{ path: "choices.fieldMask" }];
|
|
58
|
+
var TRANSFORM_PATHS_10 = [
|
|
59
|
+
{ path: "choices.choice.image.urlExpirationDate" },
|
|
60
|
+
{ path: "choices.choice.displayImage.urlExpirationDate" }
|
|
61
|
+
];
|
|
62
|
+
var TRANSFORM_PATHS_11 = [
|
|
63
|
+
{ path: "choices.choice.image.focalPoint.x" },
|
|
64
|
+
{ path: "choices.choice.image.focalPoint.y" }
|
|
65
|
+
];
|
|
66
|
+
var TRANSFORM_PATHS_12 = [
|
|
67
|
+
{ path: "customizationsChoices.choices.image.urlExpirationDate" },
|
|
68
|
+
{ path: "customizationsChoices.choices.displayImage.urlExpirationDate" }
|
|
69
|
+
];
|
|
70
|
+
var TRANSFORM_PATHS_13 = [
|
|
71
|
+
{ path: "customizationsChoices.choices.image.focalPoint.x" },
|
|
72
|
+
{ path: "customizationsChoices.choices.image.focalPoint.y" }
|
|
73
|
+
];
|
|
74
|
+
var TRANSFORM_PATHS_14 = [{ path: "customizations.fieldMask" }];
|
|
75
|
+
var TRANSFORM_PATHS_15 = [
|
|
76
|
+
{ path: "customizations.customization.createdDate" },
|
|
77
|
+
{ path: "customizations.customization.updatedDate" },
|
|
78
|
+
{
|
|
79
|
+
path: "customizations.customization.choicesSettings.choices.image.urlExpirationDate"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
path: "customizations.customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
83
|
+
}
|
|
84
|
+
];
|
|
85
|
+
var TRANSFORM_PATHS_16 = [
|
|
86
|
+
{
|
|
87
|
+
path: "customizations.customization.choicesSettings.choices.image.focalPoint.x"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
path: "customizations.customization.choicesSettings.choices.image.focalPoint.y"
|
|
91
|
+
}
|
|
92
|
+
];
|
|
10
93
|
function resolveWixStoresCatalogCustomizationV3CustomizationServiceUrl(opts) {
|
|
11
94
|
const domainToMappings = {
|
|
12
95
|
"manage._base_domain_": [
|
|
@@ -64,23 +147,11 @@ function createCustomization(payload) {
|
|
|
64
147
|
const serializedData = transformPaths(payload, [
|
|
65
148
|
{
|
|
66
149
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
67
|
-
paths:
|
|
68
|
-
{ path: "customization.createdDate" },
|
|
69
|
-
{ path: "customization.updatedDate" },
|
|
70
|
-
{
|
|
71
|
-
path: "customization.choicesSettings.choices.image.urlExpirationDate"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
75
|
-
}
|
|
76
|
-
]
|
|
150
|
+
paths: TRANSFORM_PATHS_0
|
|
77
151
|
},
|
|
78
152
|
{
|
|
79
153
|
transformFn: transformSDKFloatToRESTFloat,
|
|
80
|
-
paths:
|
|
81
|
-
{ path: "customization.choicesSettings.choices.image.focalPoint.x" },
|
|
82
|
-
{ path: "customization.choicesSettings.choices.image.focalPoint.y" }
|
|
83
|
-
]
|
|
154
|
+
paths: TRANSFORM_PATHS_1
|
|
84
155
|
}
|
|
85
156
|
]);
|
|
86
157
|
const metadata = {
|
|
@@ -100,27 +171,11 @@ function createCustomization(payload) {
|
|
|
100
171
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
101
172
|
{
|
|
102
173
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
103
|
-
paths:
|
|
104
|
-
{ path: "customization.createdDate" },
|
|
105
|
-
{ path: "customization.updatedDate" },
|
|
106
|
-
{
|
|
107
|
-
path: "customization.choicesSettings.choices.image.urlExpirationDate"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
111
|
-
}
|
|
112
|
-
]
|
|
174
|
+
paths: TRANSFORM_PATHS_0
|
|
113
175
|
},
|
|
114
176
|
{
|
|
115
177
|
transformFn: transformRESTFloatToSDKFloat,
|
|
116
|
-
paths:
|
|
117
|
-
{
|
|
118
|
-
path: "customization.choicesSettings.choices.image.focalPoint.x"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
path: "customization.choicesSettings.choices.image.focalPoint.y"
|
|
122
|
-
}
|
|
123
|
-
]
|
|
178
|
+
paths: TRANSFORM_PATHS_1
|
|
124
179
|
}
|
|
125
180
|
])
|
|
126
181
|
};
|
|
@@ -147,27 +202,11 @@ function getCustomization(payload) {
|
|
|
147
202
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
148
203
|
{
|
|
149
204
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
150
|
-
paths:
|
|
151
|
-
{ path: "customization.createdDate" },
|
|
152
|
-
{ path: "customization.updatedDate" },
|
|
153
|
-
{
|
|
154
|
-
path: "customization.choicesSettings.choices.image.urlExpirationDate"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
158
|
-
}
|
|
159
|
-
]
|
|
205
|
+
paths: TRANSFORM_PATHS_0
|
|
160
206
|
},
|
|
161
207
|
{
|
|
162
208
|
transformFn: transformRESTFloatToSDKFloat,
|
|
163
|
-
paths:
|
|
164
|
-
{
|
|
165
|
-
path: "customization.choicesSettings.choices.image.focalPoint.x"
|
|
166
|
-
},
|
|
167
|
-
{
|
|
168
|
-
path: "customization.choicesSettings.choices.image.focalPoint.y"
|
|
169
|
-
}
|
|
170
|
-
]
|
|
209
|
+
paths: TRANSFORM_PATHS_1
|
|
171
210
|
}
|
|
172
211
|
])
|
|
173
212
|
};
|
|
@@ -180,27 +219,15 @@ function updateCustomization(payload) {
|
|
|
180
219
|
const serializedData = transformPaths(payload, [
|
|
181
220
|
{
|
|
182
221
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
183
|
-
paths:
|
|
222
|
+
paths: TRANSFORM_PATHS_2
|
|
184
223
|
},
|
|
185
224
|
{
|
|
186
225
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
187
|
-
paths:
|
|
188
|
-
{ path: "customization.createdDate" },
|
|
189
|
-
{ path: "customization.updatedDate" },
|
|
190
|
-
{
|
|
191
|
-
path: "customization.choicesSettings.choices.image.urlExpirationDate"
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
195
|
-
}
|
|
196
|
-
]
|
|
226
|
+
paths: TRANSFORM_PATHS_0
|
|
197
227
|
},
|
|
198
228
|
{
|
|
199
229
|
transformFn: transformSDKFloatToRESTFloat,
|
|
200
|
-
paths:
|
|
201
|
-
{ path: "customization.choicesSettings.choices.image.focalPoint.x" },
|
|
202
|
-
{ path: "customization.choicesSettings.choices.image.focalPoint.y" }
|
|
203
|
-
]
|
|
230
|
+
paths: TRANSFORM_PATHS_1
|
|
204
231
|
}
|
|
205
232
|
]);
|
|
206
233
|
const metadata = {
|
|
@@ -220,27 +247,11 @@ function updateCustomization(payload) {
|
|
|
220
247
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
221
248
|
{
|
|
222
249
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
223
|
-
paths:
|
|
224
|
-
{ path: "customization.createdDate" },
|
|
225
|
-
{ path: "customization.updatedDate" },
|
|
226
|
-
{
|
|
227
|
-
path: "customization.choicesSettings.choices.image.urlExpirationDate"
|
|
228
|
-
},
|
|
229
|
-
{
|
|
230
|
-
path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
231
|
-
}
|
|
232
|
-
]
|
|
250
|
+
paths: TRANSFORM_PATHS_0
|
|
233
251
|
},
|
|
234
252
|
{
|
|
235
253
|
transformFn: transformRESTFloatToSDKFloat,
|
|
236
|
-
paths:
|
|
237
|
-
{
|
|
238
|
-
path: "customization.choicesSettings.choices.image.focalPoint.x"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
path: "customization.choicesSettings.choices.image.focalPoint.y"
|
|
242
|
-
}
|
|
243
|
-
]
|
|
254
|
+
paths: TRANSFORM_PATHS_1
|
|
244
255
|
}
|
|
245
256
|
])
|
|
246
257
|
};
|
|
@@ -288,27 +299,11 @@ function queryCustomizations(payload) {
|
|
|
288
299
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
289
300
|
{
|
|
290
301
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
291
|
-
paths:
|
|
292
|
-
{ path: "customizations.createdDate" },
|
|
293
|
-
{ path: "customizations.updatedDate" },
|
|
294
|
-
{
|
|
295
|
-
path: "customizations.choicesSettings.choices.image.urlExpirationDate"
|
|
296
|
-
},
|
|
297
|
-
{
|
|
298
|
-
path: "customizations.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
299
|
-
}
|
|
300
|
-
]
|
|
302
|
+
paths: TRANSFORM_PATHS_3
|
|
301
303
|
},
|
|
302
304
|
{
|
|
303
305
|
transformFn: transformRESTFloatToSDKFloat,
|
|
304
|
-
paths:
|
|
305
|
-
{
|
|
306
|
-
path: "customizations.choicesSettings.choices.image.focalPoint.x"
|
|
307
|
-
},
|
|
308
|
-
{
|
|
309
|
-
path: "customizations.choicesSettings.choices.image.focalPoint.y"
|
|
310
|
-
}
|
|
311
|
-
]
|
|
306
|
+
paths: TRANSFORM_PATHS_4
|
|
312
307
|
}
|
|
313
308
|
]),
|
|
314
309
|
fallback: [
|
|
@@ -353,23 +348,11 @@ function bulkCreateCustomizations(payload) {
|
|
|
353
348
|
const serializedData = transformPaths(payload, [
|
|
354
349
|
{
|
|
355
350
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
356
|
-
paths:
|
|
357
|
-
{ path: "customizations.createdDate" },
|
|
358
|
-
{ path: "customizations.updatedDate" },
|
|
359
|
-
{
|
|
360
|
-
path: "customizations.choicesSettings.choices.image.urlExpirationDate"
|
|
361
|
-
},
|
|
362
|
-
{
|
|
363
|
-
path: "customizations.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
364
|
-
}
|
|
365
|
-
]
|
|
351
|
+
paths: TRANSFORM_PATHS_3
|
|
366
352
|
},
|
|
367
353
|
{
|
|
368
354
|
transformFn: transformSDKFloatToRESTFloat,
|
|
369
|
-
paths:
|
|
370
|
-
{ path: "customizations.choicesSettings.choices.image.focalPoint.x" },
|
|
371
|
-
{ path: "customizations.choicesSettings.choices.image.focalPoint.y" }
|
|
372
|
-
]
|
|
355
|
+
paths: TRANSFORM_PATHS_4
|
|
373
356
|
}
|
|
374
357
|
]);
|
|
375
358
|
const metadata = {
|
|
@@ -389,27 +372,11 @@ function bulkCreateCustomizations(payload) {
|
|
|
389
372
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
390
373
|
{
|
|
391
374
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
392
|
-
paths:
|
|
393
|
-
{ path: "results.customization.createdDate" },
|
|
394
|
-
{ path: "results.customization.updatedDate" },
|
|
395
|
-
{
|
|
396
|
-
path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
400
|
-
}
|
|
401
|
-
]
|
|
375
|
+
paths: TRANSFORM_PATHS_5
|
|
402
376
|
},
|
|
403
377
|
{
|
|
404
378
|
transformFn: transformRESTFloatToSDKFloat,
|
|
405
|
-
paths:
|
|
406
|
-
{
|
|
407
|
-
path: "results.customization.choicesSettings.choices.image.focalPoint.x"
|
|
408
|
-
},
|
|
409
|
-
{
|
|
410
|
-
path: "results.customization.choicesSettings.choices.image.focalPoint.y"
|
|
411
|
-
}
|
|
412
|
-
]
|
|
379
|
+
paths: TRANSFORM_PATHS_6
|
|
413
380
|
}
|
|
414
381
|
])
|
|
415
382
|
};
|
|
@@ -422,17 +389,11 @@ function addCustomizationChoices(payload) {
|
|
|
422
389
|
const serializedData = transformPaths(payload, [
|
|
423
390
|
{
|
|
424
391
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
425
|
-
paths:
|
|
426
|
-
{ path: "choices.image.urlExpirationDate" },
|
|
427
|
-
{ path: "choices.displayImage.urlExpirationDate" }
|
|
428
|
-
]
|
|
392
|
+
paths: TRANSFORM_PATHS_7
|
|
429
393
|
},
|
|
430
394
|
{
|
|
431
395
|
transformFn: transformSDKFloatToRESTFloat,
|
|
432
|
-
paths:
|
|
433
|
-
{ path: "choices.image.focalPoint.x" },
|
|
434
|
-
{ path: "choices.image.focalPoint.y" }
|
|
435
|
-
]
|
|
396
|
+
paths: TRANSFORM_PATHS_8
|
|
436
397
|
}
|
|
437
398
|
]);
|
|
438
399
|
const metadata = {
|
|
@@ -452,27 +413,11 @@ function addCustomizationChoices(payload) {
|
|
|
452
413
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
453
414
|
{
|
|
454
415
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
455
|
-
paths:
|
|
456
|
-
{ path: "customization.createdDate" },
|
|
457
|
-
{ path: "customization.updatedDate" },
|
|
458
|
-
{
|
|
459
|
-
path: "customization.choicesSettings.choices.image.urlExpirationDate"
|
|
460
|
-
},
|
|
461
|
-
{
|
|
462
|
-
path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
463
|
-
}
|
|
464
|
-
]
|
|
416
|
+
paths: TRANSFORM_PATHS_0
|
|
465
417
|
},
|
|
466
418
|
{
|
|
467
419
|
transformFn: transformRESTFloatToSDKFloat,
|
|
468
|
-
paths:
|
|
469
|
-
{
|
|
470
|
-
path: "customization.choicesSettings.choices.image.focalPoint.x"
|
|
471
|
-
},
|
|
472
|
-
{
|
|
473
|
-
path: "customization.choicesSettings.choices.image.focalPoint.y"
|
|
474
|
-
}
|
|
475
|
-
]
|
|
420
|
+
paths: TRANSFORM_PATHS_1
|
|
476
421
|
}
|
|
477
422
|
])
|
|
478
423
|
};
|
|
@@ -485,17 +430,11 @@ function setCustomizationChoices(payload) {
|
|
|
485
430
|
const serializedData = transformPaths(payload, [
|
|
486
431
|
{
|
|
487
432
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
488
|
-
paths:
|
|
489
|
-
{ path: "choices.image.urlExpirationDate" },
|
|
490
|
-
{ path: "choices.displayImage.urlExpirationDate" }
|
|
491
|
-
]
|
|
433
|
+
paths: TRANSFORM_PATHS_7
|
|
492
434
|
},
|
|
493
435
|
{
|
|
494
436
|
transformFn: transformSDKFloatToRESTFloat,
|
|
495
|
-
paths:
|
|
496
|
-
{ path: "choices.image.focalPoint.x" },
|
|
497
|
-
{ path: "choices.image.focalPoint.y" }
|
|
498
|
-
]
|
|
437
|
+
paths: TRANSFORM_PATHS_8
|
|
499
438
|
}
|
|
500
439
|
]);
|
|
501
440
|
const metadata = {
|
|
@@ -515,27 +454,11 @@ function setCustomizationChoices(payload) {
|
|
|
515
454
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
516
455
|
{
|
|
517
456
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
518
|
-
paths:
|
|
519
|
-
{ path: "customization.createdDate" },
|
|
520
|
-
{ path: "customization.updatedDate" },
|
|
521
|
-
{
|
|
522
|
-
path: "customization.choicesSettings.choices.image.urlExpirationDate"
|
|
523
|
-
},
|
|
524
|
-
{
|
|
525
|
-
path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
526
|
-
}
|
|
527
|
-
]
|
|
457
|
+
paths: TRANSFORM_PATHS_0
|
|
528
458
|
},
|
|
529
459
|
{
|
|
530
460
|
transformFn: transformRESTFloatToSDKFloat,
|
|
531
|
-
paths:
|
|
532
|
-
{
|
|
533
|
-
path: "customization.choicesSettings.choices.image.focalPoint.x"
|
|
534
|
-
},
|
|
535
|
-
{
|
|
536
|
-
path: "customization.choicesSettings.choices.image.focalPoint.y"
|
|
537
|
-
}
|
|
538
|
-
]
|
|
461
|
+
paths: TRANSFORM_PATHS_1
|
|
539
462
|
}
|
|
540
463
|
])
|
|
541
464
|
};
|
|
@@ -562,27 +485,11 @@ function removeCustomizationChoices(payload) {
|
|
|
562
485
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
563
486
|
{
|
|
564
487
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
565
|
-
paths:
|
|
566
|
-
{ path: "customization.createdDate" },
|
|
567
|
-
{ path: "customization.updatedDate" },
|
|
568
|
-
{
|
|
569
|
-
path: "customization.choicesSettings.choices.image.urlExpirationDate"
|
|
570
|
-
},
|
|
571
|
-
{
|
|
572
|
-
path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
573
|
-
}
|
|
574
|
-
]
|
|
488
|
+
paths: TRANSFORM_PATHS_0
|
|
575
489
|
},
|
|
576
490
|
{
|
|
577
491
|
transformFn: transformRESTFloatToSDKFloat,
|
|
578
|
-
paths:
|
|
579
|
-
{
|
|
580
|
-
path: "customization.choicesSettings.choices.image.focalPoint.x"
|
|
581
|
-
},
|
|
582
|
-
{
|
|
583
|
-
path: "customization.choicesSettings.choices.image.focalPoint.y"
|
|
584
|
-
}
|
|
585
|
-
]
|
|
492
|
+
paths: TRANSFORM_PATHS_1
|
|
586
493
|
}
|
|
587
494
|
])
|
|
588
495
|
};
|
|
@@ -595,21 +502,15 @@ function updateCustomizationChoices(payload) {
|
|
|
595
502
|
const serializedData = transformPaths(payload, [
|
|
596
503
|
{
|
|
597
504
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
598
|
-
paths:
|
|
505
|
+
paths: TRANSFORM_PATHS_9
|
|
599
506
|
},
|
|
600
507
|
{
|
|
601
508
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
602
|
-
paths:
|
|
603
|
-
{ path: "choices.choice.image.urlExpirationDate" },
|
|
604
|
-
{ path: "choices.choice.displayImage.urlExpirationDate" }
|
|
605
|
-
]
|
|
509
|
+
paths: TRANSFORM_PATHS_10
|
|
606
510
|
},
|
|
607
511
|
{
|
|
608
512
|
transformFn: transformSDKFloatToRESTFloat,
|
|
609
|
-
paths:
|
|
610
|
-
{ path: "choices.choice.image.focalPoint.x" },
|
|
611
|
-
{ path: "choices.choice.image.focalPoint.y" }
|
|
612
|
-
]
|
|
513
|
+
paths: TRANSFORM_PATHS_11
|
|
613
514
|
}
|
|
614
515
|
]);
|
|
615
516
|
const metadata = {
|
|
@@ -629,27 +530,11 @@ function updateCustomizationChoices(payload) {
|
|
|
629
530
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
630
531
|
{
|
|
631
532
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
632
|
-
paths:
|
|
633
|
-
{ path: "customization.createdDate" },
|
|
634
|
-
{ path: "customization.updatedDate" },
|
|
635
|
-
{
|
|
636
|
-
path: "customization.choicesSettings.choices.image.urlExpirationDate"
|
|
637
|
-
},
|
|
638
|
-
{
|
|
639
|
-
path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
640
|
-
}
|
|
641
|
-
]
|
|
533
|
+
paths: TRANSFORM_PATHS_0
|
|
642
534
|
},
|
|
643
535
|
{
|
|
644
536
|
transformFn: transformRESTFloatToSDKFloat,
|
|
645
|
-
paths:
|
|
646
|
-
{
|
|
647
|
-
path: "customization.choicesSettings.choices.image.focalPoint.x"
|
|
648
|
-
},
|
|
649
|
-
{
|
|
650
|
-
path: "customization.choicesSettings.choices.image.focalPoint.y"
|
|
651
|
-
}
|
|
652
|
-
]
|
|
537
|
+
paths: TRANSFORM_PATHS_1
|
|
653
538
|
}
|
|
654
539
|
])
|
|
655
540
|
};
|
|
@@ -676,27 +561,11 @@ function reorderCustomizationChoices(payload) {
|
|
|
676
561
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
677
562
|
{
|
|
678
563
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
679
|
-
paths:
|
|
680
|
-
{ path: "customization.createdDate" },
|
|
681
|
-
{ path: "customization.updatedDate" },
|
|
682
|
-
{
|
|
683
|
-
path: "customization.choicesSettings.choices.image.urlExpirationDate"
|
|
684
|
-
},
|
|
685
|
-
{
|
|
686
|
-
path: "customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
687
|
-
}
|
|
688
|
-
]
|
|
564
|
+
paths: TRANSFORM_PATHS_0
|
|
689
565
|
},
|
|
690
566
|
{
|
|
691
567
|
transformFn: transformRESTFloatToSDKFloat,
|
|
692
|
-
paths:
|
|
693
|
-
{
|
|
694
|
-
path: "customization.choicesSettings.choices.image.focalPoint.x"
|
|
695
|
-
},
|
|
696
|
-
{
|
|
697
|
-
path: "customization.choicesSettings.choices.image.focalPoint.y"
|
|
698
|
-
}
|
|
699
|
-
]
|
|
568
|
+
paths: TRANSFORM_PATHS_1
|
|
700
569
|
}
|
|
701
570
|
])
|
|
702
571
|
};
|
|
@@ -709,19 +578,11 @@ function bulkAddCustomizationChoices(payload) {
|
|
|
709
578
|
const serializedData = transformPaths(payload, [
|
|
710
579
|
{
|
|
711
580
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
712
|
-
paths:
|
|
713
|
-
{ path: "customizationsChoices.choices.image.urlExpirationDate" },
|
|
714
|
-
{
|
|
715
|
-
path: "customizationsChoices.choices.displayImage.urlExpirationDate"
|
|
716
|
-
}
|
|
717
|
-
]
|
|
581
|
+
paths: TRANSFORM_PATHS_12
|
|
718
582
|
},
|
|
719
583
|
{
|
|
720
584
|
transformFn: transformSDKFloatToRESTFloat,
|
|
721
|
-
paths:
|
|
722
|
-
{ path: "customizationsChoices.choices.image.focalPoint.x" },
|
|
723
|
-
{ path: "customizationsChoices.choices.image.focalPoint.y" }
|
|
724
|
-
]
|
|
585
|
+
paths: TRANSFORM_PATHS_13
|
|
725
586
|
}
|
|
726
587
|
]);
|
|
727
588
|
const metadata = {
|
|
@@ -741,27 +602,11 @@ function bulkAddCustomizationChoices(payload) {
|
|
|
741
602
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
742
603
|
{
|
|
743
604
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
744
|
-
paths:
|
|
745
|
-
{ path: "results.customization.createdDate" },
|
|
746
|
-
{ path: "results.customization.updatedDate" },
|
|
747
|
-
{
|
|
748
|
-
path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
|
|
749
|
-
},
|
|
750
|
-
{
|
|
751
|
-
path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
752
|
-
}
|
|
753
|
-
]
|
|
605
|
+
paths: TRANSFORM_PATHS_5
|
|
754
606
|
},
|
|
755
607
|
{
|
|
756
608
|
transformFn: transformRESTFloatToSDKFloat,
|
|
757
|
-
paths:
|
|
758
|
-
{
|
|
759
|
-
path: "results.customization.choicesSettings.choices.image.focalPoint.x"
|
|
760
|
-
},
|
|
761
|
-
{
|
|
762
|
-
path: "results.customization.choicesSettings.choices.image.focalPoint.y"
|
|
763
|
-
}
|
|
764
|
-
]
|
|
609
|
+
paths: TRANSFORM_PATHS_6
|
|
765
610
|
}
|
|
766
611
|
])
|
|
767
612
|
};
|
|
@@ -774,31 +619,15 @@ function bulkUpdateCustomizations(payload) {
|
|
|
774
619
|
const serializedData = transformPaths(payload, [
|
|
775
620
|
{
|
|
776
621
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
777
|
-
paths:
|
|
622
|
+
paths: TRANSFORM_PATHS_14
|
|
778
623
|
},
|
|
779
624
|
{
|
|
780
625
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
781
|
-
paths:
|
|
782
|
-
{ path: "customizations.customization.createdDate" },
|
|
783
|
-
{ path: "customizations.customization.updatedDate" },
|
|
784
|
-
{
|
|
785
|
-
path: "customizations.customization.choicesSettings.choices.image.urlExpirationDate"
|
|
786
|
-
},
|
|
787
|
-
{
|
|
788
|
-
path: "customizations.customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
789
|
-
}
|
|
790
|
-
]
|
|
626
|
+
paths: TRANSFORM_PATHS_15
|
|
791
627
|
},
|
|
792
628
|
{
|
|
793
629
|
transformFn: transformSDKFloatToRESTFloat,
|
|
794
|
-
paths:
|
|
795
|
-
{
|
|
796
|
-
path: "customizations.customization.choicesSettings.choices.image.focalPoint.x"
|
|
797
|
-
},
|
|
798
|
-
{
|
|
799
|
-
path: "customizations.customization.choicesSettings.choices.image.focalPoint.y"
|
|
800
|
-
}
|
|
801
|
-
]
|
|
630
|
+
paths: TRANSFORM_PATHS_16
|
|
802
631
|
}
|
|
803
632
|
]);
|
|
804
633
|
const metadata = {
|
|
@@ -818,27 +647,11 @@ function bulkUpdateCustomizations(payload) {
|
|
|
818
647
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
819
648
|
{
|
|
820
649
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
821
|
-
paths:
|
|
822
|
-
{ path: "results.customization.createdDate" },
|
|
823
|
-
{ path: "results.customization.updatedDate" },
|
|
824
|
-
{
|
|
825
|
-
path: "results.customization.choicesSettings.choices.image.urlExpirationDate"
|
|
826
|
-
},
|
|
827
|
-
{
|
|
828
|
-
path: "results.customization.choicesSettings.choices.displayImage.urlExpirationDate"
|
|
829
|
-
}
|
|
830
|
-
]
|
|
650
|
+
paths: TRANSFORM_PATHS_5
|
|
831
651
|
},
|
|
832
652
|
{
|
|
833
653
|
transformFn: transformRESTFloatToSDKFloat,
|
|
834
|
-
paths:
|
|
835
|
-
{
|
|
836
|
-
path: "results.customization.choicesSettings.choices.image.focalPoint.x"
|
|
837
|
-
},
|
|
838
|
-
{
|
|
839
|
-
path: "results.customization.choicesSettings.choices.image.focalPoint.y"
|
|
840
|
-
}
|
|
841
|
-
]
|
|
654
|
+
paths: TRANSFORM_PATHS_6
|
|
842
655
|
}
|
|
843
656
|
])
|
|
844
657
|
};
|