@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
package/build/es/index.mjs
CHANGED
|
@@ -23,6 +23,72 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
|
|
|
23
23
|
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
24
24
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
25
25
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
26
|
+
var TRANSFORM_PATHS_0 = [
|
|
27
|
+
{ path: "item.sortOrder" },
|
|
28
|
+
{ path: "item.image.focalPoint.x" },
|
|
29
|
+
{ path: "item.image.focalPoint.y" },
|
|
30
|
+
{ path: "item.image.unsharpMasking.amount" },
|
|
31
|
+
{ path: "item.image.unsharpMasking.radius" },
|
|
32
|
+
{ path: "item.image.unsharpMasking.threshold" }
|
|
33
|
+
];
|
|
34
|
+
var TRANSFORM_PATHS_1 = [
|
|
35
|
+
{ path: "item.createdDate" },
|
|
36
|
+
{ path: "item.updatedDate" },
|
|
37
|
+
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
38
|
+
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
39
|
+
{ path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
40
|
+
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
41
|
+
];
|
|
42
|
+
var TRANSFORM_PATHS_2 = [
|
|
43
|
+
{ path: "items.sortOrder" },
|
|
44
|
+
{ path: "items.image.focalPoint.x" },
|
|
45
|
+
{ path: "items.image.focalPoint.y" },
|
|
46
|
+
{ path: "items.image.unsharpMasking.amount" },
|
|
47
|
+
{ path: "items.image.unsharpMasking.radius" },
|
|
48
|
+
{ path: "items.image.unsharpMasking.threshold" }
|
|
49
|
+
];
|
|
50
|
+
var TRANSFORM_PATHS_3 = [
|
|
51
|
+
{ path: "items.createdDate" },
|
|
52
|
+
{ path: "items.updatedDate" },
|
|
53
|
+
{ path: "items.image.imageInfo.urlExpirationDate" },
|
|
54
|
+
{ path: "items.video.videoInfo.urlExpirationDate" },
|
|
55
|
+
{ path: "items.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
56
|
+
{ path: "items.video.videoInfo.posters.urlExpirationDate" }
|
|
57
|
+
];
|
|
58
|
+
var TRANSFORM_PATHS_4 = [
|
|
59
|
+
{ path: "results.item.sortOrder" },
|
|
60
|
+
{ path: "results.item.image.focalPoint.x" },
|
|
61
|
+
{ path: "results.item.image.focalPoint.y" },
|
|
62
|
+
{ path: "results.item.image.unsharpMasking.amount" },
|
|
63
|
+
{ path: "results.item.image.unsharpMasking.radius" },
|
|
64
|
+
{ path: "results.item.image.unsharpMasking.threshold" }
|
|
65
|
+
];
|
|
66
|
+
var TRANSFORM_PATHS_5 = [
|
|
67
|
+
{ path: "results.item.createdDate" },
|
|
68
|
+
{ path: "results.item.updatedDate" },
|
|
69
|
+
{ path: "results.item.image.imageInfo.urlExpirationDate" },
|
|
70
|
+
{ path: "results.item.video.videoInfo.urlExpirationDate" },
|
|
71
|
+
{ path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
72
|
+
{ path: "results.item.video.videoInfo.posters.urlExpirationDate" }
|
|
73
|
+
];
|
|
74
|
+
var TRANSFORM_PATHS_6 = [{ path: "mask" }];
|
|
75
|
+
var TRANSFORM_PATHS_7 = [{ path: "items.fieldMask" }];
|
|
76
|
+
var TRANSFORM_PATHS_8 = [
|
|
77
|
+
{ path: "items.item.sortOrder" },
|
|
78
|
+
{ path: "items.item.image.focalPoint.x" },
|
|
79
|
+
{ path: "items.item.image.focalPoint.y" },
|
|
80
|
+
{ path: "items.item.image.unsharpMasking.amount" },
|
|
81
|
+
{ path: "items.item.image.unsharpMasking.radius" },
|
|
82
|
+
{ path: "items.item.image.unsharpMasking.threshold" }
|
|
83
|
+
];
|
|
84
|
+
var TRANSFORM_PATHS_9 = [
|
|
85
|
+
{ path: "items.item.createdDate" },
|
|
86
|
+
{ path: "items.item.updatedDate" },
|
|
87
|
+
{ path: "items.item.image.imageInfo.urlExpirationDate" },
|
|
88
|
+
{ path: "items.item.video.videoInfo.urlExpirationDate" },
|
|
89
|
+
{ path: "items.item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
90
|
+
{ path: "items.item.video.videoInfo.posters.urlExpirationDate" }
|
|
91
|
+
];
|
|
26
92
|
function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
|
|
27
93
|
const domainToMappings = {
|
|
28
94
|
"manage._base_domain_": [
|
|
@@ -213,25 +279,11 @@ function createProjectItem(payload) {
|
|
|
213
279
|
const serializedData = transformPaths(payload, [
|
|
214
280
|
{
|
|
215
281
|
transformFn: transformSDKFloatToRESTFloat,
|
|
216
|
-
paths:
|
|
217
|
-
{ path: "item.sortOrder" },
|
|
218
|
-
{ path: "item.image.focalPoint.x" },
|
|
219
|
-
{ path: "item.image.focalPoint.y" },
|
|
220
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
221
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
222
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
223
|
-
]
|
|
282
|
+
paths: TRANSFORM_PATHS_0
|
|
224
283
|
},
|
|
225
284
|
{
|
|
226
285
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
227
|
-
paths:
|
|
228
|
-
{ path: "item.createdDate" },
|
|
229
|
-
{ path: "item.updatedDate" },
|
|
230
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
231
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
232
|
-
{ path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
233
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
234
|
-
]
|
|
286
|
+
paths: TRANSFORM_PATHS_1
|
|
235
287
|
}
|
|
236
288
|
]);
|
|
237
289
|
const metadata = {
|
|
@@ -251,27 +303,11 @@ function createProjectItem(payload) {
|
|
|
251
303
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
252
304
|
{
|
|
253
305
|
transformFn: transformRESTFloatToSDKFloat,
|
|
254
|
-
paths:
|
|
255
|
-
{ path: "item.sortOrder" },
|
|
256
|
-
{ path: "item.image.focalPoint.x" },
|
|
257
|
-
{ path: "item.image.focalPoint.y" },
|
|
258
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
259
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
260
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
261
|
-
]
|
|
306
|
+
paths: TRANSFORM_PATHS_0
|
|
262
307
|
},
|
|
263
308
|
{
|
|
264
309
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
265
|
-
paths:
|
|
266
|
-
{ path: "item.createdDate" },
|
|
267
|
-
{ path: "item.updatedDate" },
|
|
268
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
269
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
270
|
-
{
|
|
271
|
-
path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
272
|
-
},
|
|
273
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
274
|
-
]
|
|
310
|
+
paths: TRANSFORM_PATHS_1
|
|
275
311
|
}
|
|
276
312
|
])
|
|
277
313
|
};
|
|
@@ -284,27 +320,11 @@ function bulkCreateProjectItems(payload) {
|
|
|
284
320
|
const serializedData = transformPaths(payload, [
|
|
285
321
|
{
|
|
286
322
|
transformFn: transformSDKFloatToRESTFloat,
|
|
287
|
-
paths:
|
|
288
|
-
{ path: "items.sortOrder" },
|
|
289
|
-
{ path: "items.image.focalPoint.x" },
|
|
290
|
-
{ path: "items.image.focalPoint.y" },
|
|
291
|
-
{ path: "items.image.unsharpMasking.amount" },
|
|
292
|
-
{ path: "items.image.unsharpMasking.radius" },
|
|
293
|
-
{ path: "items.image.unsharpMasking.threshold" }
|
|
294
|
-
]
|
|
323
|
+
paths: TRANSFORM_PATHS_2
|
|
295
324
|
},
|
|
296
325
|
{
|
|
297
326
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
298
|
-
paths:
|
|
299
|
-
{ path: "items.createdDate" },
|
|
300
|
-
{ path: "items.updatedDate" },
|
|
301
|
-
{ path: "items.image.imageInfo.urlExpirationDate" },
|
|
302
|
-
{ path: "items.video.videoInfo.urlExpirationDate" },
|
|
303
|
-
{
|
|
304
|
-
path: "items.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
305
|
-
},
|
|
306
|
-
{ path: "items.video.videoInfo.posters.urlExpirationDate" }
|
|
307
|
-
]
|
|
327
|
+
paths: TRANSFORM_PATHS_3
|
|
308
328
|
}
|
|
309
329
|
]);
|
|
310
330
|
const metadata = {
|
|
@@ -324,29 +344,11 @@ function bulkCreateProjectItems(payload) {
|
|
|
324
344
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
325
345
|
{
|
|
326
346
|
transformFn: transformRESTFloatToSDKFloat,
|
|
327
|
-
paths:
|
|
328
|
-
{ path: "results.item.sortOrder" },
|
|
329
|
-
{ path: "results.item.image.focalPoint.x" },
|
|
330
|
-
{ path: "results.item.image.focalPoint.y" },
|
|
331
|
-
{ path: "results.item.image.unsharpMasking.amount" },
|
|
332
|
-
{ path: "results.item.image.unsharpMasking.radius" },
|
|
333
|
-
{ path: "results.item.image.unsharpMasking.threshold" }
|
|
334
|
-
]
|
|
347
|
+
paths: TRANSFORM_PATHS_4
|
|
335
348
|
},
|
|
336
349
|
{
|
|
337
350
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
338
|
-
paths:
|
|
339
|
-
{ path: "results.item.createdDate" },
|
|
340
|
-
{ path: "results.item.updatedDate" },
|
|
341
|
-
{ path: "results.item.image.imageInfo.urlExpirationDate" },
|
|
342
|
-
{ path: "results.item.video.videoInfo.urlExpirationDate" },
|
|
343
|
-
{
|
|
344
|
-
path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
path: "results.item.video.videoInfo.posters.urlExpirationDate"
|
|
348
|
-
}
|
|
349
|
-
]
|
|
351
|
+
paths: TRANSFORM_PATHS_5
|
|
350
352
|
}
|
|
351
353
|
])
|
|
352
354
|
};
|
|
@@ -373,27 +375,11 @@ function getProjectItem(payload) {
|
|
|
373
375
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
374
376
|
{
|
|
375
377
|
transformFn: transformRESTFloatToSDKFloat,
|
|
376
|
-
paths:
|
|
377
|
-
{ path: "item.sortOrder" },
|
|
378
|
-
{ path: "item.image.focalPoint.x" },
|
|
379
|
-
{ path: "item.image.focalPoint.y" },
|
|
380
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
381
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
382
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
383
|
-
]
|
|
378
|
+
paths: TRANSFORM_PATHS_0
|
|
384
379
|
},
|
|
385
380
|
{
|
|
386
381
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
387
|
-
paths:
|
|
388
|
-
{ path: "item.createdDate" },
|
|
389
|
-
{ path: "item.updatedDate" },
|
|
390
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
391
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
392
|
-
{
|
|
393
|
-
path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
394
|
-
},
|
|
395
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
396
|
-
]
|
|
382
|
+
paths: TRANSFORM_PATHS_1
|
|
397
383
|
}
|
|
398
384
|
]),
|
|
399
385
|
fallback: [
|
|
@@ -431,27 +417,11 @@ function listProjectItems(payload) {
|
|
|
431
417
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
432
418
|
{
|
|
433
419
|
transformFn: transformRESTFloatToSDKFloat,
|
|
434
|
-
paths:
|
|
435
|
-
{ path: "items.sortOrder" },
|
|
436
|
-
{ path: "items.image.focalPoint.x" },
|
|
437
|
-
{ path: "items.image.focalPoint.y" },
|
|
438
|
-
{ path: "items.image.unsharpMasking.amount" },
|
|
439
|
-
{ path: "items.image.unsharpMasking.radius" },
|
|
440
|
-
{ path: "items.image.unsharpMasking.threshold" }
|
|
441
|
-
]
|
|
420
|
+
paths: TRANSFORM_PATHS_2
|
|
442
421
|
},
|
|
443
422
|
{
|
|
444
423
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
445
|
-
paths:
|
|
446
|
-
{ path: "items.createdDate" },
|
|
447
|
-
{ path: "items.updatedDate" },
|
|
448
|
-
{ path: "items.image.imageInfo.urlExpirationDate" },
|
|
449
|
-
{ path: "items.video.videoInfo.urlExpirationDate" },
|
|
450
|
-
{
|
|
451
|
-
path: "items.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
452
|
-
},
|
|
453
|
-
{ path: "items.video.videoInfo.posters.urlExpirationDate" }
|
|
454
|
-
]
|
|
424
|
+
paths: TRANSFORM_PATHS_3
|
|
455
425
|
}
|
|
456
426
|
])
|
|
457
427
|
};
|
|
@@ -464,29 +434,15 @@ function updateProjectItem(payload) {
|
|
|
464
434
|
const serializedData = transformPaths(payload, [
|
|
465
435
|
{
|
|
466
436
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
467
|
-
paths:
|
|
437
|
+
paths: TRANSFORM_PATHS_6
|
|
468
438
|
},
|
|
469
439
|
{
|
|
470
440
|
transformFn: transformSDKFloatToRESTFloat,
|
|
471
|
-
paths:
|
|
472
|
-
{ path: "item.sortOrder" },
|
|
473
|
-
{ path: "item.image.focalPoint.x" },
|
|
474
|
-
{ path: "item.image.focalPoint.y" },
|
|
475
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
476
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
477
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
478
|
-
]
|
|
441
|
+
paths: TRANSFORM_PATHS_0
|
|
479
442
|
},
|
|
480
443
|
{
|
|
481
444
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
482
|
-
paths:
|
|
483
|
-
{ path: "item.createdDate" },
|
|
484
|
-
{ path: "item.updatedDate" },
|
|
485
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
486
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
487
|
-
{ path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
488
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
489
|
-
]
|
|
445
|
+
paths: TRANSFORM_PATHS_1
|
|
490
446
|
}
|
|
491
447
|
]);
|
|
492
448
|
const metadata = {
|
|
@@ -506,27 +462,11 @@ function updateProjectItem(payload) {
|
|
|
506
462
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
507
463
|
{
|
|
508
464
|
transformFn: transformRESTFloatToSDKFloat,
|
|
509
|
-
paths:
|
|
510
|
-
{ path: "item.sortOrder" },
|
|
511
|
-
{ path: "item.image.focalPoint.x" },
|
|
512
|
-
{ path: "item.image.focalPoint.y" },
|
|
513
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
514
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
515
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
516
|
-
]
|
|
465
|
+
paths: TRANSFORM_PATHS_0
|
|
517
466
|
},
|
|
518
467
|
{
|
|
519
468
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
520
|
-
paths:
|
|
521
|
-
{ path: "item.createdDate" },
|
|
522
|
-
{ path: "item.updatedDate" },
|
|
523
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
524
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
525
|
-
{
|
|
526
|
-
path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
527
|
-
},
|
|
528
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
529
|
-
]
|
|
469
|
+
paths: TRANSFORM_PATHS_1
|
|
530
470
|
}
|
|
531
471
|
])
|
|
532
472
|
};
|
|
@@ -539,31 +479,15 @@ function bulkUpdateProjectItems(payload) {
|
|
|
539
479
|
const serializedData = transformPaths(payload, [
|
|
540
480
|
{
|
|
541
481
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
542
|
-
paths:
|
|
482
|
+
paths: TRANSFORM_PATHS_7
|
|
543
483
|
},
|
|
544
484
|
{
|
|
545
485
|
transformFn: transformSDKFloatToRESTFloat,
|
|
546
|
-
paths:
|
|
547
|
-
{ path: "items.item.sortOrder" },
|
|
548
|
-
{ path: "items.item.image.focalPoint.x" },
|
|
549
|
-
{ path: "items.item.image.focalPoint.y" },
|
|
550
|
-
{ path: "items.item.image.unsharpMasking.amount" },
|
|
551
|
-
{ path: "items.item.image.unsharpMasking.radius" },
|
|
552
|
-
{ path: "items.item.image.unsharpMasking.threshold" }
|
|
553
|
-
]
|
|
486
|
+
paths: TRANSFORM_PATHS_8
|
|
554
487
|
},
|
|
555
488
|
{
|
|
556
489
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
557
|
-
paths:
|
|
558
|
-
{ path: "items.item.createdDate" },
|
|
559
|
-
{ path: "items.item.updatedDate" },
|
|
560
|
-
{ path: "items.item.image.imageInfo.urlExpirationDate" },
|
|
561
|
-
{ path: "items.item.video.videoInfo.urlExpirationDate" },
|
|
562
|
-
{
|
|
563
|
-
path: "items.item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
564
|
-
},
|
|
565
|
-
{ path: "items.item.video.videoInfo.posters.urlExpirationDate" }
|
|
566
|
-
]
|
|
490
|
+
paths: TRANSFORM_PATHS_9
|
|
567
491
|
}
|
|
568
492
|
]);
|
|
569
493
|
const metadata = {
|
|
@@ -583,29 +507,11 @@ function bulkUpdateProjectItems(payload) {
|
|
|
583
507
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
584
508
|
{
|
|
585
509
|
transformFn: transformRESTFloatToSDKFloat,
|
|
586
|
-
paths:
|
|
587
|
-
{ path: "results.item.sortOrder" },
|
|
588
|
-
{ path: "results.item.image.focalPoint.x" },
|
|
589
|
-
{ path: "results.item.image.focalPoint.y" },
|
|
590
|
-
{ path: "results.item.image.unsharpMasking.amount" },
|
|
591
|
-
{ path: "results.item.image.unsharpMasking.radius" },
|
|
592
|
-
{ path: "results.item.image.unsharpMasking.threshold" }
|
|
593
|
-
]
|
|
510
|
+
paths: TRANSFORM_PATHS_4
|
|
594
511
|
},
|
|
595
512
|
{
|
|
596
513
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
597
|
-
paths:
|
|
598
|
-
{ path: "results.item.createdDate" },
|
|
599
|
-
{ path: "results.item.updatedDate" },
|
|
600
|
-
{ path: "results.item.image.imageInfo.urlExpirationDate" },
|
|
601
|
-
{ path: "results.item.video.videoInfo.urlExpirationDate" },
|
|
602
|
-
{
|
|
603
|
-
path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
604
|
-
},
|
|
605
|
-
{
|
|
606
|
-
path: "results.item.video.videoInfo.posters.urlExpirationDate"
|
|
607
|
-
}
|
|
608
|
-
]
|
|
514
|
+
paths: TRANSFORM_PATHS_5
|
|
609
515
|
}
|
|
610
516
|
])
|
|
611
517
|
};
|
|
@@ -704,6 +610,14 @@ import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/i
|
|
|
704
610
|
import { transformSDKVideoV2ToRESTVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
|
|
705
611
|
import { transformRESTVideoV2ToSDKVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
|
|
706
612
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
613
|
+
var TRANSFORM_PATHS_02 = [{ path: "item.image.imageInfo" }];
|
|
614
|
+
var TRANSFORM_PATHS_12 = [{ path: "item.video.videoInfo" }];
|
|
615
|
+
var TRANSFORM_PATHS_22 = [{ path: "items.image.imageInfo" }];
|
|
616
|
+
var TRANSFORM_PATHS_32 = [{ path: "items.video.videoInfo" }];
|
|
617
|
+
var TRANSFORM_PATHS_42 = [{ path: "results.item.image.imageInfo" }];
|
|
618
|
+
var TRANSFORM_PATHS_52 = [{ path: "results.item.video.videoInfo" }];
|
|
619
|
+
var TRANSFORM_PATHS_62 = [{ path: "items.item.image.imageInfo" }];
|
|
620
|
+
var TRANSFORM_PATHS_72 = [{ path: "items.item.video.videoInfo" }];
|
|
707
621
|
var Type = /* @__PURE__ */ ((Type2) => {
|
|
708
622
|
Type2["UNDEFINED"] = "UNDEFINED";
|
|
709
623
|
Type2["IMAGE"] = "IMAGE";
|
|
@@ -736,11 +650,11 @@ async function createProjectItem2(item) {
|
|
|
736
650
|
[
|
|
737
651
|
{
|
|
738
652
|
transformFn: transformSDKImageToRESTImage,
|
|
739
|
-
paths:
|
|
653
|
+
paths: TRANSFORM_PATHS_02
|
|
740
654
|
},
|
|
741
655
|
{
|
|
742
656
|
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
743
|
-
paths:
|
|
657
|
+
paths: TRANSFORM_PATHS_12
|
|
744
658
|
}
|
|
745
659
|
]
|
|
746
660
|
);
|
|
@@ -753,11 +667,11 @@ async function createProjectItem2(item) {
|
|
|
753
667
|
transformPaths2(result.data, [
|
|
754
668
|
{
|
|
755
669
|
transformFn: transformRESTImageToSDKImage,
|
|
756
|
-
paths:
|
|
670
|
+
paths: TRANSFORM_PATHS_02
|
|
757
671
|
},
|
|
758
672
|
{
|
|
759
673
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
760
|
-
paths:
|
|
674
|
+
paths: TRANSFORM_PATHS_12
|
|
761
675
|
}
|
|
762
676
|
])
|
|
763
677
|
)?.item;
|
|
@@ -785,11 +699,11 @@ async function bulkCreateProjectItems2(options) {
|
|
|
785
699
|
[
|
|
786
700
|
{
|
|
787
701
|
transformFn: transformSDKImageToRESTImage,
|
|
788
|
-
paths:
|
|
702
|
+
paths: TRANSFORM_PATHS_22
|
|
789
703
|
},
|
|
790
704
|
{
|
|
791
705
|
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
792
|
-
paths:
|
|
706
|
+
paths: TRANSFORM_PATHS_32
|
|
793
707
|
}
|
|
794
708
|
]
|
|
795
709
|
);
|
|
@@ -804,11 +718,11 @@ async function bulkCreateProjectItems2(options) {
|
|
|
804
718
|
transformPaths2(result.data, [
|
|
805
719
|
{
|
|
806
720
|
transformFn: transformRESTImageToSDKImage,
|
|
807
|
-
paths:
|
|
721
|
+
paths: TRANSFORM_PATHS_42
|
|
808
722
|
},
|
|
809
723
|
{
|
|
810
724
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
811
|
-
paths:
|
|
725
|
+
paths: TRANSFORM_PATHS_52
|
|
812
726
|
}
|
|
813
727
|
])
|
|
814
728
|
);
|
|
@@ -841,11 +755,11 @@ async function getProjectItem2(itemId) {
|
|
|
841
755
|
transformPaths2(result.data, [
|
|
842
756
|
{
|
|
843
757
|
transformFn: transformRESTImageToSDKImage,
|
|
844
|
-
paths:
|
|
758
|
+
paths: TRANSFORM_PATHS_02
|
|
845
759
|
},
|
|
846
760
|
{
|
|
847
761
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
848
|
-
paths:
|
|
762
|
+
paths: TRANSFORM_PATHS_12
|
|
849
763
|
}
|
|
850
764
|
])
|
|
851
765
|
)?.item;
|
|
@@ -878,11 +792,11 @@ async function listProjectItems2(projectId, options) {
|
|
|
878
792
|
transformPaths2(result.data, [
|
|
879
793
|
{
|
|
880
794
|
transformFn: transformRESTImageToSDKImage,
|
|
881
|
-
paths:
|
|
795
|
+
paths: TRANSFORM_PATHS_22
|
|
882
796
|
},
|
|
883
797
|
{
|
|
884
798
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
885
|
-
paths:
|
|
799
|
+
paths: TRANSFORM_PATHS_32
|
|
886
800
|
}
|
|
887
801
|
])
|
|
888
802
|
);
|
|
@@ -907,11 +821,11 @@ async function updateProjectItem2(_id, item) {
|
|
|
907
821
|
[
|
|
908
822
|
{
|
|
909
823
|
transformFn: transformSDKImageToRESTImage,
|
|
910
|
-
paths:
|
|
824
|
+
paths: TRANSFORM_PATHS_02
|
|
911
825
|
},
|
|
912
826
|
{
|
|
913
827
|
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
914
|
-
paths:
|
|
828
|
+
paths: TRANSFORM_PATHS_12
|
|
915
829
|
}
|
|
916
830
|
]
|
|
917
831
|
);
|
|
@@ -924,11 +838,11 @@ async function updateProjectItem2(_id, item) {
|
|
|
924
838
|
transformPaths2(result.data, [
|
|
925
839
|
{
|
|
926
840
|
transformFn: transformRESTImageToSDKImage,
|
|
927
|
-
paths:
|
|
841
|
+
paths: TRANSFORM_PATHS_02
|
|
928
842
|
},
|
|
929
843
|
{
|
|
930
844
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
931
|
-
paths:
|
|
845
|
+
paths: TRANSFORM_PATHS_12
|
|
932
846
|
}
|
|
933
847
|
])
|
|
934
848
|
)?.item;
|
|
@@ -956,11 +870,11 @@ async function bulkUpdateProjectItems2(options) {
|
|
|
956
870
|
[
|
|
957
871
|
{
|
|
958
872
|
transformFn: transformSDKImageToRESTImage,
|
|
959
|
-
paths:
|
|
873
|
+
paths: TRANSFORM_PATHS_62
|
|
960
874
|
},
|
|
961
875
|
{
|
|
962
876
|
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
963
|
-
paths:
|
|
877
|
+
paths: TRANSFORM_PATHS_72
|
|
964
878
|
}
|
|
965
879
|
]
|
|
966
880
|
);
|
|
@@ -975,11 +889,11 @@ async function bulkUpdateProjectItems2(options) {
|
|
|
975
889
|
transformPaths2(result.data, [
|
|
976
890
|
{
|
|
977
891
|
transformFn: transformRESTImageToSDKImage,
|
|
978
|
-
paths:
|
|
892
|
+
paths: TRANSFORM_PATHS_42
|
|
979
893
|
},
|
|
980
894
|
{
|
|
981
895
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
982
|
-
paths:
|
|
896
|
+
paths: TRANSFORM_PATHS_52
|
|
983
897
|
}
|
|
984
898
|
])
|
|
985
899
|
);
|
|
@@ -1108,6 +1022,36 @@ async function generateTokenForProjectItems2(mediaIds) {
|
|
|
1108
1022
|
}
|
|
1109
1023
|
|
|
1110
1024
|
// src/portfolio-project-items-v1-project-item-project-items.public.ts
|
|
1025
|
+
var TRANSFORM_PATHS_03 = [
|
|
1026
|
+
{ path: "entity.sortOrder" },
|
|
1027
|
+
{ path: "entity.image.focalPoint.x" },
|
|
1028
|
+
{ path: "entity.image.focalPoint.y" },
|
|
1029
|
+
{ path: "entity.image.unsharpMasking.amount" },
|
|
1030
|
+
{ path: "entity.image.unsharpMasking.radius" },
|
|
1031
|
+
{ path: "entity.image.unsharpMasking.threshold" }
|
|
1032
|
+
];
|
|
1033
|
+
var TRANSFORM_PATHS_13 = [
|
|
1034
|
+
{ path: "entity.createdDate" },
|
|
1035
|
+
{ path: "entity.updatedDate" },
|
|
1036
|
+
{ path: "metadata.eventTime" }
|
|
1037
|
+
];
|
|
1038
|
+
var TRANSFORM_PATHS_23 = [{ path: "entity.image.imageInfo" }];
|
|
1039
|
+
var TRANSFORM_PATHS_33 = [{ path: "entity.video.videoInfo" }];
|
|
1040
|
+
var TRANSFORM_PATHS_43 = [
|
|
1041
|
+
{ path: "undefined.sortOrder" },
|
|
1042
|
+
{ path: "undefined.image.focalPoint.x" },
|
|
1043
|
+
{ path: "undefined.image.focalPoint.y" },
|
|
1044
|
+
{ path: "undefined.image.unsharpMasking.amount" },
|
|
1045
|
+
{ path: "undefined.image.unsharpMasking.radius" },
|
|
1046
|
+
{ path: "undefined.image.unsharpMasking.threshold" }
|
|
1047
|
+
];
|
|
1048
|
+
var TRANSFORM_PATHS_53 = [
|
|
1049
|
+
{ path: "undefined.createdDate" },
|
|
1050
|
+
{ path: "undefined.updatedDate" },
|
|
1051
|
+
{ path: "metadata.eventTime" }
|
|
1052
|
+
];
|
|
1053
|
+
var TRANSFORM_PATHS_63 = [{ path: "undefined.image.imageInfo" }];
|
|
1054
|
+
var TRANSFORM_PATHS_73 = [{ path: "undefined.video.videoInfo" }];
|
|
1111
1055
|
function createProjectItem3(httpClient) {
|
|
1112
1056
|
return (item) => createProjectItem2(
|
|
1113
1057
|
item,
|
|
@@ -1188,30 +1132,19 @@ var onProjectItemCreated = /* @__PURE__ */ EventDefinition(
|
|
|
1188
1132
|
transformPaths3(event, [
|
|
1189
1133
|
{
|
|
1190
1134
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
1191
|
-
paths:
|
|
1192
|
-
{ path: "entity.sortOrder" },
|
|
1193
|
-
{ path: "entity.image.focalPoint.x" },
|
|
1194
|
-
{ path: "entity.image.focalPoint.y" },
|
|
1195
|
-
{ path: "entity.image.unsharpMasking.amount" },
|
|
1196
|
-
{ path: "entity.image.unsharpMasking.radius" },
|
|
1197
|
-
{ path: "entity.image.unsharpMasking.threshold" }
|
|
1198
|
-
]
|
|
1135
|
+
paths: TRANSFORM_PATHS_03
|
|
1199
1136
|
},
|
|
1200
1137
|
{
|
|
1201
1138
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1202
|
-
paths:
|
|
1203
|
-
{ path: "entity.createdDate" },
|
|
1204
|
-
{ path: "entity.updatedDate" },
|
|
1205
|
-
{ path: "metadata.eventTime" }
|
|
1206
|
-
]
|
|
1139
|
+
paths: TRANSFORM_PATHS_13
|
|
1207
1140
|
},
|
|
1208
1141
|
{
|
|
1209
1142
|
transformFn: transformRESTImageToSDKImage2,
|
|
1210
|
-
paths:
|
|
1143
|
+
paths: TRANSFORM_PATHS_23
|
|
1211
1144
|
},
|
|
1212
1145
|
{
|
|
1213
1146
|
transformFn: transformRESTVideoV2ToSDKVideoV22,
|
|
1214
|
-
paths:
|
|
1147
|
+
paths: TRANSFORM_PATHS_33
|
|
1215
1148
|
}
|
|
1216
1149
|
])
|
|
1217
1150
|
)
|
|
@@ -1223,30 +1156,19 @@ var onProjectItemDeleted = /* @__PURE__ */ EventDefinition(
|
|
|
1223
1156
|
transformPaths3(event, [
|
|
1224
1157
|
{
|
|
1225
1158
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
1226
|
-
paths:
|
|
1227
|
-
{ path: "undefined.sortOrder" },
|
|
1228
|
-
{ path: "undefined.image.focalPoint.x" },
|
|
1229
|
-
{ path: "undefined.image.focalPoint.y" },
|
|
1230
|
-
{ path: "undefined.image.unsharpMasking.amount" },
|
|
1231
|
-
{ path: "undefined.image.unsharpMasking.radius" },
|
|
1232
|
-
{ path: "undefined.image.unsharpMasking.threshold" }
|
|
1233
|
-
]
|
|
1159
|
+
paths: TRANSFORM_PATHS_43
|
|
1234
1160
|
},
|
|
1235
1161
|
{
|
|
1236
1162
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1237
|
-
paths:
|
|
1238
|
-
{ path: "undefined.createdDate" },
|
|
1239
|
-
{ path: "undefined.updatedDate" },
|
|
1240
|
-
{ path: "metadata.eventTime" }
|
|
1241
|
-
]
|
|
1163
|
+
paths: TRANSFORM_PATHS_53
|
|
1242
1164
|
},
|
|
1243
1165
|
{
|
|
1244
1166
|
transformFn: transformRESTImageToSDKImage2,
|
|
1245
|
-
paths:
|
|
1167
|
+
paths: TRANSFORM_PATHS_63
|
|
1246
1168
|
},
|
|
1247
1169
|
{
|
|
1248
1170
|
transformFn: transformRESTVideoV2ToSDKVideoV22,
|
|
1249
|
-
paths:
|
|
1171
|
+
paths: TRANSFORM_PATHS_73
|
|
1250
1172
|
}
|
|
1251
1173
|
])
|
|
1252
1174
|
)
|
|
@@ -1258,30 +1180,19 @@ var onProjectItemUpdated = /* @__PURE__ */ EventDefinition(
|
|
|
1258
1180
|
transformPaths3(event, [
|
|
1259
1181
|
{
|
|
1260
1182
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
1261
|
-
paths:
|
|
1262
|
-
{ path: "entity.sortOrder" },
|
|
1263
|
-
{ path: "entity.image.focalPoint.x" },
|
|
1264
|
-
{ path: "entity.image.focalPoint.y" },
|
|
1265
|
-
{ path: "entity.image.unsharpMasking.amount" },
|
|
1266
|
-
{ path: "entity.image.unsharpMasking.radius" },
|
|
1267
|
-
{ path: "entity.image.unsharpMasking.threshold" }
|
|
1268
|
-
]
|
|
1183
|
+
paths: TRANSFORM_PATHS_03
|
|
1269
1184
|
},
|
|
1270
1185
|
{
|
|
1271
1186
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1272
|
-
paths:
|
|
1273
|
-
{ path: "entity.createdDate" },
|
|
1274
|
-
{ path: "entity.updatedDate" },
|
|
1275
|
-
{ path: "metadata.eventTime" }
|
|
1276
|
-
]
|
|
1187
|
+
paths: TRANSFORM_PATHS_13
|
|
1277
1188
|
},
|
|
1278
1189
|
{
|
|
1279
1190
|
transformFn: transformRESTImageToSDKImage2,
|
|
1280
|
-
paths:
|
|
1191
|
+
paths: TRANSFORM_PATHS_23
|
|
1281
1192
|
},
|
|
1282
1193
|
{
|
|
1283
1194
|
transformFn: transformRESTVideoV2ToSDKVideoV22,
|
|
1284
|
-
paths:
|
|
1195
|
+
paths: TRANSFORM_PATHS_33
|
|
1285
1196
|
}
|
|
1286
1197
|
])
|
|
1287
1198
|
)
|