@wix/auto_sdk_portfolio_project-items 1.0.51 → 1.0.52
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 +158 -247
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js +116 -202
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js +88 -182
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.mjs +158 -247
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs +116 -202
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs +88 -182
- package/build/es/meta.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -14,6 +14,72 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
|
|
|
14
14
|
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
15
15
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
16
16
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
17
|
+
var TRANSFORM_PATHS_0 = [
|
|
18
|
+
{ path: "item.sortOrder" },
|
|
19
|
+
{ path: "item.image.focalPoint.x" },
|
|
20
|
+
{ path: "item.image.focalPoint.y" },
|
|
21
|
+
{ path: "item.image.unsharpMasking.amount" },
|
|
22
|
+
{ path: "item.image.unsharpMasking.radius" },
|
|
23
|
+
{ path: "item.image.unsharpMasking.threshold" }
|
|
24
|
+
];
|
|
25
|
+
var TRANSFORM_PATHS_1 = [
|
|
26
|
+
{ path: "item.createdDate" },
|
|
27
|
+
{ path: "item.updatedDate" },
|
|
28
|
+
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
29
|
+
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
30
|
+
{ path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
31
|
+
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
32
|
+
];
|
|
33
|
+
var TRANSFORM_PATHS_2 = [
|
|
34
|
+
{ path: "items.sortOrder" },
|
|
35
|
+
{ path: "items.image.focalPoint.x" },
|
|
36
|
+
{ path: "items.image.focalPoint.y" },
|
|
37
|
+
{ path: "items.image.unsharpMasking.amount" },
|
|
38
|
+
{ path: "items.image.unsharpMasking.radius" },
|
|
39
|
+
{ path: "items.image.unsharpMasking.threshold" }
|
|
40
|
+
];
|
|
41
|
+
var TRANSFORM_PATHS_3 = [
|
|
42
|
+
{ path: "items.createdDate" },
|
|
43
|
+
{ path: "items.updatedDate" },
|
|
44
|
+
{ path: "items.image.imageInfo.urlExpirationDate" },
|
|
45
|
+
{ path: "items.video.videoInfo.urlExpirationDate" },
|
|
46
|
+
{ path: "items.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
47
|
+
{ path: "items.video.videoInfo.posters.urlExpirationDate" }
|
|
48
|
+
];
|
|
49
|
+
var TRANSFORM_PATHS_4 = [
|
|
50
|
+
{ path: "results.item.sortOrder" },
|
|
51
|
+
{ path: "results.item.image.focalPoint.x" },
|
|
52
|
+
{ path: "results.item.image.focalPoint.y" },
|
|
53
|
+
{ path: "results.item.image.unsharpMasking.amount" },
|
|
54
|
+
{ path: "results.item.image.unsharpMasking.radius" },
|
|
55
|
+
{ path: "results.item.image.unsharpMasking.threshold" }
|
|
56
|
+
];
|
|
57
|
+
var TRANSFORM_PATHS_5 = [
|
|
58
|
+
{ path: "results.item.createdDate" },
|
|
59
|
+
{ path: "results.item.updatedDate" },
|
|
60
|
+
{ path: "results.item.image.imageInfo.urlExpirationDate" },
|
|
61
|
+
{ path: "results.item.video.videoInfo.urlExpirationDate" },
|
|
62
|
+
{ path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
63
|
+
{ path: "results.item.video.videoInfo.posters.urlExpirationDate" }
|
|
64
|
+
];
|
|
65
|
+
var TRANSFORM_PATHS_6 = [{ path: "mask" }];
|
|
66
|
+
var TRANSFORM_PATHS_7 = [{ path: "items.fieldMask" }];
|
|
67
|
+
var TRANSFORM_PATHS_8 = [
|
|
68
|
+
{ path: "items.item.sortOrder" },
|
|
69
|
+
{ path: "items.item.image.focalPoint.x" },
|
|
70
|
+
{ path: "items.item.image.focalPoint.y" },
|
|
71
|
+
{ path: "items.item.image.unsharpMasking.amount" },
|
|
72
|
+
{ path: "items.item.image.unsharpMasking.radius" },
|
|
73
|
+
{ path: "items.item.image.unsharpMasking.threshold" }
|
|
74
|
+
];
|
|
75
|
+
var TRANSFORM_PATHS_9 = [
|
|
76
|
+
{ path: "items.item.createdDate" },
|
|
77
|
+
{ path: "items.item.updatedDate" },
|
|
78
|
+
{ path: "items.item.image.imageInfo.urlExpirationDate" },
|
|
79
|
+
{ path: "items.item.video.videoInfo.urlExpirationDate" },
|
|
80
|
+
{ path: "items.item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
81
|
+
{ path: "items.item.video.videoInfo.posters.urlExpirationDate" }
|
|
82
|
+
];
|
|
17
83
|
function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
|
|
18
84
|
const domainToMappings = {
|
|
19
85
|
"manage._base_domain_": [
|
|
@@ -204,25 +270,11 @@ function createProjectItem(payload) {
|
|
|
204
270
|
const serializedData = transformPaths(payload, [
|
|
205
271
|
{
|
|
206
272
|
transformFn: transformSDKFloatToRESTFloat,
|
|
207
|
-
paths:
|
|
208
|
-
{ path: "item.sortOrder" },
|
|
209
|
-
{ path: "item.image.focalPoint.x" },
|
|
210
|
-
{ path: "item.image.focalPoint.y" },
|
|
211
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
212
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
213
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
214
|
-
]
|
|
273
|
+
paths: TRANSFORM_PATHS_0
|
|
215
274
|
},
|
|
216
275
|
{
|
|
217
276
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
218
|
-
paths:
|
|
219
|
-
{ path: "item.createdDate" },
|
|
220
|
-
{ path: "item.updatedDate" },
|
|
221
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
222
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
223
|
-
{ path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
224
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
225
|
-
]
|
|
277
|
+
paths: TRANSFORM_PATHS_1
|
|
226
278
|
}
|
|
227
279
|
]);
|
|
228
280
|
const metadata = {
|
|
@@ -242,27 +294,11 @@ function createProjectItem(payload) {
|
|
|
242
294
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
243
295
|
{
|
|
244
296
|
transformFn: transformRESTFloatToSDKFloat,
|
|
245
|
-
paths:
|
|
246
|
-
{ path: "item.sortOrder" },
|
|
247
|
-
{ path: "item.image.focalPoint.x" },
|
|
248
|
-
{ path: "item.image.focalPoint.y" },
|
|
249
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
250
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
251
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
252
|
-
]
|
|
297
|
+
paths: TRANSFORM_PATHS_0
|
|
253
298
|
},
|
|
254
299
|
{
|
|
255
300
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
256
|
-
paths:
|
|
257
|
-
{ path: "item.createdDate" },
|
|
258
|
-
{ path: "item.updatedDate" },
|
|
259
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
260
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
261
|
-
{
|
|
262
|
-
path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
263
|
-
},
|
|
264
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
265
|
-
]
|
|
301
|
+
paths: TRANSFORM_PATHS_1
|
|
266
302
|
}
|
|
267
303
|
])
|
|
268
304
|
};
|
|
@@ -275,27 +311,11 @@ function bulkCreateProjectItems(payload) {
|
|
|
275
311
|
const serializedData = transformPaths(payload, [
|
|
276
312
|
{
|
|
277
313
|
transformFn: transformSDKFloatToRESTFloat,
|
|
278
|
-
paths:
|
|
279
|
-
{ path: "items.sortOrder" },
|
|
280
|
-
{ path: "items.image.focalPoint.x" },
|
|
281
|
-
{ path: "items.image.focalPoint.y" },
|
|
282
|
-
{ path: "items.image.unsharpMasking.amount" },
|
|
283
|
-
{ path: "items.image.unsharpMasking.radius" },
|
|
284
|
-
{ path: "items.image.unsharpMasking.threshold" }
|
|
285
|
-
]
|
|
314
|
+
paths: TRANSFORM_PATHS_2
|
|
286
315
|
},
|
|
287
316
|
{
|
|
288
317
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
289
|
-
paths:
|
|
290
|
-
{ path: "items.createdDate" },
|
|
291
|
-
{ path: "items.updatedDate" },
|
|
292
|
-
{ path: "items.image.imageInfo.urlExpirationDate" },
|
|
293
|
-
{ path: "items.video.videoInfo.urlExpirationDate" },
|
|
294
|
-
{
|
|
295
|
-
path: "items.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
296
|
-
},
|
|
297
|
-
{ path: "items.video.videoInfo.posters.urlExpirationDate" }
|
|
298
|
-
]
|
|
318
|
+
paths: TRANSFORM_PATHS_3
|
|
299
319
|
}
|
|
300
320
|
]);
|
|
301
321
|
const metadata = {
|
|
@@ -315,29 +335,11 @@ function bulkCreateProjectItems(payload) {
|
|
|
315
335
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
316
336
|
{
|
|
317
337
|
transformFn: transformRESTFloatToSDKFloat,
|
|
318
|
-
paths:
|
|
319
|
-
{ path: "results.item.sortOrder" },
|
|
320
|
-
{ path: "results.item.image.focalPoint.x" },
|
|
321
|
-
{ path: "results.item.image.focalPoint.y" },
|
|
322
|
-
{ path: "results.item.image.unsharpMasking.amount" },
|
|
323
|
-
{ path: "results.item.image.unsharpMasking.radius" },
|
|
324
|
-
{ path: "results.item.image.unsharpMasking.threshold" }
|
|
325
|
-
]
|
|
338
|
+
paths: TRANSFORM_PATHS_4
|
|
326
339
|
},
|
|
327
340
|
{
|
|
328
341
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
329
|
-
paths:
|
|
330
|
-
{ path: "results.item.createdDate" },
|
|
331
|
-
{ path: "results.item.updatedDate" },
|
|
332
|
-
{ path: "results.item.image.imageInfo.urlExpirationDate" },
|
|
333
|
-
{ path: "results.item.video.videoInfo.urlExpirationDate" },
|
|
334
|
-
{
|
|
335
|
-
path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
336
|
-
},
|
|
337
|
-
{
|
|
338
|
-
path: "results.item.video.videoInfo.posters.urlExpirationDate"
|
|
339
|
-
}
|
|
340
|
-
]
|
|
342
|
+
paths: TRANSFORM_PATHS_5
|
|
341
343
|
}
|
|
342
344
|
])
|
|
343
345
|
};
|
|
@@ -364,27 +366,11 @@ function getProjectItem(payload) {
|
|
|
364
366
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
365
367
|
{
|
|
366
368
|
transformFn: transformRESTFloatToSDKFloat,
|
|
367
|
-
paths:
|
|
368
|
-
{ path: "item.sortOrder" },
|
|
369
|
-
{ path: "item.image.focalPoint.x" },
|
|
370
|
-
{ path: "item.image.focalPoint.y" },
|
|
371
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
372
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
373
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
374
|
-
]
|
|
369
|
+
paths: TRANSFORM_PATHS_0
|
|
375
370
|
},
|
|
376
371
|
{
|
|
377
372
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
378
|
-
paths:
|
|
379
|
-
{ path: "item.createdDate" },
|
|
380
|
-
{ path: "item.updatedDate" },
|
|
381
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
382
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
383
|
-
{
|
|
384
|
-
path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
385
|
-
},
|
|
386
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
387
|
-
]
|
|
373
|
+
paths: TRANSFORM_PATHS_1
|
|
388
374
|
}
|
|
389
375
|
]),
|
|
390
376
|
fallback: [
|
|
@@ -422,27 +408,11 @@ function listProjectItems(payload) {
|
|
|
422
408
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
423
409
|
{
|
|
424
410
|
transformFn: transformRESTFloatToSDKFloat,
|
|
425
|
-
paths:
|
|
426
|
-
{ path: "items.sortOrder" },
|
|
427
|
-
{ path: "items.image.focalPoint.x" },
|
|
428
|
-
{ path: "items.image.focalPoint.y" },
|
|
429
|
-
{ path: "items.image.unsharpMasking.amount" },
|
|
430
|
-
{ path: "items.image.unsharpMasking.radius" },
|
|
431
|
-
{ path: "items.image.unsharpMasking.threshold" }
|
|
432
|
-
]
|
|
411
|
+
paths: TRANSFORM_PATHS_2
|
|
433
412
|
},
|
|
434
413
|
{
|
|
435
414
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
436
|
-
paths:
|
|
437
|
-
{ path: "items.createdDate" },
|
|
438
|
-
{ path: "items.updatedDate" },
|
|
439
|
-
{ path: "items.image.imageInfo.urlExpirationDate" },
|
|
440
|
-
{ path: "items.video.videoInfo.urlExpirationDate" },
|
|
441
|
-
{
|
|
442
|
-
path: "items.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
443
|
-
},
|
|
444
|
-
{ path: "items.video.videoInfo.posters.urlExpirationDate" }
|
|
445
|
-
]
|
|
415
|
+
paths: TRANSFORM_PATHS_3
|
|
446
416
|
}
|
|
447
417
|
])
|
|
448
418
|
};
|
|
@@ -455,29 +425,15 @@ function updateProjectItem(payload) {
|
|
|
455
425
|
const serializedData = transformPaths(payload, [
|
|
456
426
|
{
|
|
457
427
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
458
|
-
paths:
|
|
428
|
+
paths: TRANSFORM_PATHS_6
|
|
459
429
|
},
|
|
460
430
|
{
|
|
461
431
|
transformFn: transformSDKFloatToRESTFloat,
|
|
462
|
-
paths:
|
|
463
|
-
{ path: "item.sortOrder" },
|
|
464
|
-
{ path: "item.image.focalPoint.x" },
|
|
465
|
-
{ path: "item.image.focalPoint.y" },
|
|
466
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
467
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
468
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
469
|
-
]
|
|
432
|
+
paths: TRANSFORM_PATHS_0
|
|
470
433
|
},
|
|
471
434
|
{
|
|
472
435
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
473
|
-
paths:
|
|
474
|
-
{ path: "item.createdDate" },
|
|
475
|
-
{ path: "item.updatedDate" },
|
|
476
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
477
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
478
|
-
{ path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
479
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
480
|
-
]
|
|
436
|
+
paths: TRANSFORM_PATHS_1
|
|
481
437
|
}
|
|
482
438
|
]);
|
|
483
439
|
const metadata = {
|
|
@@ -497,27 +453,11 @@ function updateProjectItem(payload) {
|
|
|
497
453
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
498
454
|
{
|
|
499
455
|
transformFn: transformRESTFloatToSDKFloat,
|
|
500
|
-
paths:
|
|
501
|
-
{ path: "item.sortOrder" },
|
|
502
|
-
{ path: "item.image.focalPoint.x" },
|
|
503
|
-
{ path: "item.image.focalPoint.y" },
|
|
504
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
505
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
506
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
507
|
-
]
|
|
456
|
+
paths: TRANSFORM_PATHS_0
|
|
508
457
|
},
|
|
509
458
|
{
|
|
510
459
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
511
|
-
paths:
|
|
512
|
-
{ path: "item.createdDate" },
|
|
513
|
-
{ path: "item.updatedDate" },
|
|
514
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
515
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
516
|
-
{
|
|
517
|
-
path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
518
|
-
},
|
|
519
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
520
|
-
]
|
|
460
|
+
paths: TRANSFORM_PATHS_1
|
|
521
461
|
}
|
|
522
462
|
])
|
|
523
463
|
};
|
|
@@ -530,31 +470,15 @@ function bulkUpdateProjectItems(payload) {
|
|
|
530
470
|
const serializedData = transformPaths(payload, [
|
|
531
471
|
{
|
|
532
472
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
533
|
-
paths:
|
|
473
|
+
paths: TRANSFORM_PATHS_7
|
|
534
474
|
},
|
|
535
475
|
{
|
|
536
476
|
transformFn: transformSDKFloatToRESTFloat,
|
|
537
|
-
paths:
|
|
538
|
-
{ path: "items.item.sortOrder" },
|
|
539
|
-
{ path: "items.item.image.focalPoint.x" },
|
|
540
|
-
{ path: "items.item.image.focalPoint.y" },
|
|
541
|
-
{ path: "items.item.image.unsharpMasking.amount" },
|
|
542
|
-
{ path: "items.item.image.unsharpMasking.radius" },
|
|
543
|
-
{ path: "items.item.image.unsharpMasking.threshold" }
|
|
544
|
-
]
|
|
477
|
+
paths: TRANSFORM_PATHS_8
|
|
545
478
|
},
|
|
546
479
|
{
|
|
547
480
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
548
|
-
paths:
|
|
549
|
-
{ path: "items.item.createdDate" },
|
|
550
|
-
{ path: "items.item.updatedDate" },
|
|
551
|
-
{ path: "items.item.image.imageInfo.urlExpirationDate" },
|
|
552
|
-
{ path: "items.item.video.videoInfo.urlExpirationDate" },
|
|
553
|
-
{
|
|
554
|
-
path: "items.item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
555
|
-
},
|
|
556
|
-
{ path: "items.item.video.videoInfo.posters.urlExpirationDate" }
|
|
557
|
-
]
|
|
481
|
+
paths: TRANSFORM_PATHS_9
|
|
558
482
|
}
|
|
559
483
|
]);
|
|
560
484
|
const metadata = {
|
|
@@ -574,29 +498,11 @@ function bulkUpdateProjectItems(payload) {
|
|
|
574
498
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
575
499
|
{
|
|
576
500
|
transformFn: transformRESTFloatToSDKFloat,
|
|
577
|
-
paths:
|
|
578
|
-
{ path: "results.item.sortOrder" },
|
|
579
|
-
{ path: "results.item.image.focalPoint.x" },
|
|
580
|
-
{ path: "results.item.image.focalPoint.y" },
|
|
581
|
-
{ path: "results.item.image.unsharpMasking.amount" },
|
|
582
|
-
{ path: "results.item.image.unsharpMasking.radius" },
|
|
583
|
-
{ path: "results.item.image.unsharpMasking.threshold" }
|
|
584
|
-
]
|
|
501
|
+
paths: TRANSFORM_PATHS_4
|
|
585
502
|
},
|
|
586
503
|
{
|
|
587
504
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
588
|
-
paths:
|
|
589
|
-
{ path: "results.item.createdDate" },
|
|
590
|
-
{ path: "results.item.updatedDate" },
|
|
591
|
-
{ path: "results.item.image.imageInfo.urlExpirationDate" },
|
|
592
|
-
{ path: "results.item.video.videoInfo.urlExpirationDate" },
|
|
593
|
-
{
|
|
594
|
-
path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
595
|
-
},
|
|
596
|
-
{
|
|
597
|
-
path: "results.item.video.videoInfo.posters.urlExpirationDate"
|
|
598
|
-
}
|
|
599
|
-
]
|
|
505
|
+
paths: TRANSFORM_PATHS_5
|
|
600
506
|
}
|
|
601
507
|
])
|
|
602
508
|
};
|
|
@@ -695,6 +601,14 @@ import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/i
|
|
|
695
601
|
import { transformSDKVideoV2ToRESTVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
|
|
696
602
|
import { transformRESTVideoV2ToSDKVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
|
|
697
603
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
604
|
+
var TRANSFORM_PATHS_02 = [{ path: "item.image.imageInfo" }];
|
|
605
|
+
var TRANSFORM_PATHS_12 = [{ path: "item.video.videoInfo" }];
|
|
606
|
+
var TRANSFORM_PATHS_22 = [{ path: "items.image.imageInfo" }];
|
|
607
|
+
var TRANSFORM_PATHS_32 = [{ path: "items.video.videoInfo" }];
|
|
608
|
+
var TRANSFORM_PATHS_42 = [{ path: "results.item.image.imageInfo" }];
|
|
609
|
+
var TRANSFORM_PATHS_52 = [{ path: "results.item.video.videoInfo" }];
|
|
610
|
+
var TRANSFORM_PATHS_62 = [{ path: "items.item.image.imageInfo" }];
|
|
611
|
+
var TRANSFORM_PATHS_72 = [{ path: "items.item.video.videoInfo" }];
|
|
698
612
|
var Type = /* @__PURE__ */ ((Type2) => {
|
|
699
613
|
Type2["UNDEFINED"] = "UNDEFINED";
|
|
700
614
|
Type2["IMAGE"] = "IMAGE";
|
|
@@ -727,11 +641,11 @@ async function createProjectItem2(item) {
|
|
|
727
641
|
[
|
|
728
642
|
{
|
|
729
643
|
transformFn: transformSDKImageToRESTImage,
|
|
730
|
-
paths:
|
|
644
|
+
paths: TRANSFORM_PATHS_02
|
|
731
645
|
},
|
|
732
646
|
{
|
|
733
647
|
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
734
|
-
paths:
|
|
648
|
+
paths: TRANSFORM_PATHS_12
|
|
735
649
|
}
|
|
736
650
|
]
|
|
737
651
|
);
|
|
@@ -744,11 +658,11 @@ async function createProjectItem2(item) {
|
|
|
744
658
|
transformPaths2(result.data, [
|
|
745
659
|
{
|
|
746
660
|
transformFn: transformRESTImageToSDKImage,
|
|
747
|
-
paths:
|
|
661
|
+
paths: TRANSFORM_PATHS_02
|
|
748
662
|
},
|
|
749
663
|
{
|
|
750
664
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
751
|
-
paths:
|
|
665
|
+
paths: TRANSFORM_PATHS_12
|
|
752
666
|
}
|
|
753
667
|
])
|
|
754
668
|
)?.item;
|
|
@@ -776,11 +690,11 @@ async function bulkCreateProjectItems2(options) {
|
|
|
776
690
|
[
|
|
777
691
|
{
|
|
778
692
|
transformFn: transformSDKImageToRESTImage,
|
|
779
|
-
paths:
|
|
693
|
+
paths: TRANSFORM_PATHS_22
|
|
780
694
|
},
|
|
781
695
|
{
|
|
782
696
|
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
783
|
-
paths:
|
|
697
|
+
paths: TRANSFORM_PATHS_32
|
|
784
698
|
}
|
|
785
699
|
]
|
|
786
700
|
);
|
|
@@ -795,11 +709,11 @@ async function bulkCreateProjectItems2(options) {
|
|
|
795
709
|
transformPaths2(result.data, [
|
|
796
710
|
{
|
|
797
711
|
transformFn: transformRESTImageToSDKImage,
|
|
798
|
-
paths:
|
|
712
|
+
paths: TRANSFORM_PATHS_42
|
|
799
713
|
},
|
|
800
714
|
{
|
|
801
715
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
802
|
-
paths:
|
|
716
|
+
paths: TRANSFORM_PATHS_52
|
|
803
717
|
}
|
|
804
718
|
])
|
|
805
719
|
);
|
|
@@ -832,11 +746,11 @@ async function getProjectItem2(itemId) {
|
|
|
832
746
|
transformPaths2(result.data, [
|
|
833
747
|
{
|
|
834
748
|
transformFn: transformRESTImageToSDKImage,
|
|
835
|
-
paths:
|
|
749
|
+
paths: TRANSFORM_PATHS_02
|
|
836
750
|
},
|
|
837
751
|
{
|
|
838
752
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
839
|
-
paths:
|
|
753
|
+
paths: TRANSFORM_PATHS_12
|
|
840
754
|
}
|
|
841
755
|
])
|
|
842
756
|
)?.item;
|
|
@@ -869,11 +783,11 @@ async function listProjectItems2(projectId, options) {
|
|
|
869
783
|
transformPaths2(result.data, [
|
|
870
784
|
{
|
|
871
785
|
transformFn: transformRESTImageToSDKImage,
|
|
872
|
-
paths:
|
|
786
|
+
paths: TRANSFORM_PATHS_22
|
|
873
787
|
},
|
|
874
788
|
{
|
|
875
789
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
876
|
-
paths:
|
|
790
|
+
paths: TRANSFORM_PATHS_32
|
|
877
791
|
}
|
|
878
792
|
])
|
|
879
793
|
);
|
|
@@ -898,11 +812,11 @@ async function updateProjectItem2(_id, item) {
|
|
|
898
812
|
[
|
|
899
813
|
{
|
|
900
814
|
transformFn: transformSDKImageToRESTImage,
|
|
901
|
-
paths:
|
|
815
|
+
paths: TRANSFORM_PATHS_02
|
|
902
816
|
},
|
|
903
817
|
{
|
|
904
818
|
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
905
|
-
paths:
|
|
819
|
+
paths: TRANSFORM_PATHS_12
|
|
906
820
|
}
|
|
907
821
|
]
|
|
908
822
|
);
|
|
@@ -915,11 +829,11 @@ async function updateProjectItem2(_id, item) {
|
|
|
915
829
|
transformPaths2(result.data, [
|
|
916
830
|
{
|
|
917
831
|
transformFn: transformRESTImageToSDKImage,
|
|
918
|
-
paths:
|
|
832
|
+
paths: TRANSFORM_PATHS_02
|
|
919
833
|
},
|
|
920
834
|
{
|
|
921
835
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
922
|
-
paths:
|
|
836
|
+
paths: TRANSFORM_PATHS_12
|
|
923
837
|
}
|
|
924
838
|
])
|
|
925
839
|
)?.item;
|
|
@@ -947,11 +861,11 @@ async function bulkUpdateProjectItems2(options) {
|
|
|
947
861
|
[
|
|
948
862
|
{
|
|
949
863
|
transformFn: transformSDKImageToRESTImage,
|
|
950
|
-
paths:
|
|
864
|
+
paths: TRANSFORM_PATHS_62
|
|
951
865
|
},
|
|
952
866
|
{
|
|
953
867
|
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
954
|
-
paths:
|
|
868
|
+
paths: TRANSFORM_PATHS_72
|
|
955
869
|
}
|
|
956
870
|
]
|
|
957
871
|
);
|
|
@@ -966,11 +880,11 @@ async function bulkUpdateProjectItems2(options) {
|
|
|
966
880
|
transformPaths2(result.data, [
|
|
967
881
|
{
|
|
968
882
|
transformFn: transformRESTImageToSDKImage,
|
|
969
|
-
paths:
|
|
883
|
+
paths: TRANSFORM_PATHS_42
|
|
970
884
|
},
|
|
971
885
|
{
|
|
972
886
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
973
|
-
paths:
|
|
887
|
+
paths: TRANSFORM_PATHS_52
|
|
974
888
|
}
|
|
975
889
|
])
|
|
976
890
|
);
|