@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/cjs/index.js
CHANGED
|
@@ -62,6 +62,72 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
62
62
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
63
63
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
64
64
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
65
|
+
var TRANSFORM_PATHS_0 = [
|
|
66
|
+
{ path: "item.sortOrder" },
|
|
67
|
+
{ path: "item.image.focalPoint.x" },
|
|
68
|
+
{ path: "item.image.focalPoint.y" },
|
|
69
|
+
{ path: "item.image.unsharpMasking.amount" },
|
|
70
|
+
{ path: "item.image.unsharpMasking.radius" },
|
|
71
|
+
{ path: "item.image.unsharpMasking.threshold" }
|
|
72
|
+
];
|
|
73
|
+
var TRANSFORM_PATHS_1 = [
|
|
74
|
+
{ path: "item.createdDate" },
|
|
75
|
+
{ path: "item.updatedDate" },
|
|
76
|
+
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
77
|
+
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
78
|
+
{ path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
79
|
+
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
80
|
+
];
|
|
81
|
+
var TRANSFORM_PATHS_2 = [
|
|
82
|
+
{ path: "items.sortOrder" },
|
|
83
|
+
{ path: "items.image.focalPoint.x" },
|
|
84
|
+
{ path: "items.image.focalPoint.y" },
|
|
85
|
+
{ path: "items.image.unsharpMasking.amount" },
|
|
86
|
+
{ path: "items.image.unsharpMasking.radius" },
|
|
87
|
+
{ path: "items.image.unsharpMasking.threshold" }
|
|
88
|
+
];
|
|
89
|
+
var TRANSFORM_PATHS_3 = [
|
|
90
|
+
{ path: "items.createdDate" },
|
|
91
|
+
{ path: "items.updatedDate" },
|
|
92
|
+
{ path: "items.image.imageInfo.urlExpirationDate" },
|
|
93
|
+
{ path: "items.video.videoInfo.urlExpirationDate" },
|
|
94
|
+
{ path: "items.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
95
|
+
{ path: "items.video.videoInfo.posters.urlExpirationDate" }
|
|
96
|
+
];
|
|
97
|
+
var TRANSFORM_PATHS_4 = [
|
|
98
|
+
{ path: "results.item.sortOrder" },
|
|
99
|
+
{ path: "results.item.image.focalPoint.x" },
|
|
100
|
+
{ path: "results.item.image.focalPoint.y" },
|
|
101
|
+
{ path: "results.item.image.unsharpMasking.amount" },
|
|
102
|
+
{ path: "results.item.image.unsharpMasking.radius" },
|
|
103
|
+
{ path: "results.item.image.unsharpMasking.threshold" }
|
|
104
|
+
];
|
|
105
|
+
var TRANSFORM_PATHS_5 = [
|
|
106
|
+
{ path: "results.item.createdDate" },
|
|
107
|
+
{ path: "results.item.updatedDate" },
|
|
108
|
+
{ path: "results.item.image.imageInfo.urlExpirationDate" },
|
|
109
|
+
{ path: "results.item.video.videoInfo.urlExpirationDate" },
|
|
110
|
+
{ path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
111
|
+
{ path: "results.item.video.videoInfo.posters.urlExpirationDate" }
|
|
112
|
+
];
|
|
113
|
+
var TRANSFORM_PATHS_6 = [{ path: "mask" }];
|
|
114
|
+
var TRANSFORM_PATHS_7 = [{ path: "items.fieldMask" }];
|
|
115
|
+
var TRANSFORM_PATHS_8 = [
|
|
116
|
+
{ path: "items.item.sortOrder" },
|
|
117
|
+
{ path: "items.item.image.focalPoint.x" },
|
|
118
|
+
{ path: "items.item.image.focalPoint.y" },
|
|
119
|
+
{ path: "items.item.image.unsharpMasking.amount" },
|
|
120
|
+
{ path: "items.item.image.unsharpMasking.radius" },
|
|
121
|
+
{ path: "items.item.image.unsharpMasking.threshold" }
|
|
122
|
+
];
|
|
123
|
+
var TRANSFORM_PATHS_9 = [
|
|
124
|
+
{ path: "items.item.createdDate" },
|
|
125
|
+
{ path: "items.item.updatedDate" },
|
|
126
|
+
{ path: "items.item.image.imageInfo.urlExpirationDate" },
|
|
127
|
+
{ path: "items.item.video.videoInfo.urlExpirationDate" },
|
|
128
|
+
{ path: "items.item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
129
|
+
{ path: "items.item.video.videoInfo.posters.urlExpirationDate" }
|
|
130
|
+
];
|
|
65
131
|
function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
|
|
66
132
|
const domainToMappings = {
|
|
67
133
|
"manage._base_domain_": [
|
|
@@ -252,25 +318,11 @@ function createProjectItem(payload) {
|
|
|
252
318
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
253
319
|
{
|
|
254
320
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
255
|
-
paths:
|
|
256
|
-
{ path: "item.sortOrder" },
|
|
257
|
-
{ path: "item.image.focalPoint.x" },
|
|
258
|
-
{ path: "item.image.focalPoint.y" },
|
|
259
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
260
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
261
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
262
|
-
]
|
|
321
|
+
paths: TRANSFORM_PATHS_0
|
|
263
322
|
},
|
|
264
323
|
{
|
|
265
324
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
266
|
-
paths:
|
|
267
|
-
{ path: "item.createdDate" },
|
|
268
|
-
{ path: "item.updatedDate" },
|
|
269
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
270
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
271
|
-
{ path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
272
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
273
|
-
]
|
|
325
|
+
paths: TRANSFORM_PATHS_1
|
|
274
326
|
}
|
|
275
327
|
]);
|
|
276
328
|
const metadata = {
|
|
@@ -290,27 +342,11 @@ function createProjectItem(payload) {
|
|
|
290
342
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
291
343
|
{
|
|
292
344
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
293
|
-
paths:
|
|
294
|
-
{ path: "item.sortOrder" },
|
|
295
|
-
{ path: "item.image.focalPoint.x" },
|
|
296
|
-
{ path: "item.image.focalPoint.y" },
|
|
297
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
298
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
299
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
300
|
-
]
|
|
345
|
+
paths: TRANSFORM_PATHS_0
|
|
301
346
|
},
|
|
302
347
|
{
|
|
303
348
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
304
|
-
paths:
|
|
305
|
-
{ path: "item.createdDate" },
|
|
306
|
-
{ path: "item.updatedDate" },
|
|
307
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
308
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
309
|
-
{
|
|
310
|
-
path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
311
|
-
},
|
|
312
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
313
|
-
]
|
|
349
|
+
paths: TRANSFORM_PATHS_1
|
|
314
350
|
}
|
|
315
351
|
])
|
|
316
352
|
};
|
|
@@ -323,27 +359,11 @@ function bulkCreateProjectItems(payload) {
|
|
|
323
359
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
324
360
|
{
|
|
325
361
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
326
|
-
paths:
|
|
327
|
-
{ path: "items.sortOrder" },
|
|
328
|
-
{ path: "items.image.focalPoint.x" },
|
|
329
|
-
{ path: "items.image.focalPoint.y" },
|
|
330
|
-
{ path: "items.image.unsharpMasking.amount" },
|
|
331
|
-
{ path: "items.image.unsharpMasking.radius" },
|
|
332
|
-
{ path: "items.image.unsharpMasking.threshold" }
|
|
333
|
-
]
|
|
362
|
+
paths: TRANSFORM_PATHS_2
|
|
334
363
|
},
|
|
335
364
|
{
|
|
336
365
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
337
|
-
paths:
|
|
338
|
-
{ path: "items.createdDate" },
|
|
339
|
-
{ path: "items.updatedDate" },
|
|
340
|
-
{ path: "items.image.imageInfo.urlExpirationDate" },
|
|
341
|
-
{ path: "items.video.videoInfo.urlExpirationDate" },
|
|
342
|
-
{
|
|
343
|
-
path: "items.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
344
|
-
},
|
|
345
|
-
{ path: "items.video.videoInfo.posters.urlExpirationDate" }
|
|
346
|
-
]
|
|
366
|
+
paths: TRANSFORM_PATHS_3
|
|
347
367
|
}
|
|
348
368
|
]);
|
|
349
369
|
const metadata = {
|
|
@@ -363,29 +383,11 @@ function bulkCreateProjectItems(payload) {
|
|
|
363
383
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
364
384
|
{
|
|
365
385
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
366
|
-
paths:
|
|
367
|
-
{ path: "results.item.sortOrder" },
|
|
368
|
-
{ path: "results.item.image.focalPoint.x" },
|
|
369
|
-
{ path: "results.item.image.focalPoint.y" },
|
|
370
|
-
{ path: "results.item.image.unsharpMasking.amount" },
|
|
371
|
-
{ path: "results.item.image.unsharpMasking.radius" },
|
|
372
|
-
{ path: "results.item.image.unsharpMasking.threshold" }
|
|
373
|
-
]
|
|
386
|
+
paths: TRANSFORM_PATHS_4
|
|
374
387
|
},
|
|
375
388
|
{
|
|
376
389
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
377
|
-
paths:
|
|
378
|
-
{ path: "results.item.createdDate" },
|
|
379
|
-
{ path: "results.item.updatedDate" },
|
|
380
|
-
{ path: "results.item.image.imageInfo.urlExpirationDate" },
|
|
381
|
-
{ path: "results.item.video.videoInfo.urlExpirationDate" },
|
|
382
|
-
{
|
|
383
|
-
path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
path: "results.item.video.videoInfo.posters.urlExpirationDate"
|
|
387
|
-
}
|
|
388
|
-
]
|
|
390
|
+
paths: TRANSFORM_PATHS_5
|
|
389
391
|
}
|
|
390
392
|
])
|
|
391
393
|
};
|
|
@@ -412,27 +414,11 @@ function getProjectItem(payload) {
|
|
|
412
414
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
413
415
|
{
|
|
414
416
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
415
|
-
paths:
|
|
416
|
-
{ path: "item.sortOrder" },
|
|
417
|
-
{ path: "item.image.focalPoint.x" },
|
|
418
|
-
{ path: "item.image.focalPoint.y" },
|
|
419
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
420
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
421
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
422
|
-
]
|
|
417
|
+
paths: TRANSFORM_PATHS_0
|
|
423
418
|
},
|
|
424
419
|
{
|
|
425
420
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
426
|
-
paths:
|
|
427
|
-
{ path: "item.createdDate" },
|
|
428
|
-
{ path: "item.updatedDate" },
|
|
429
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
430
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
431
|
-
{
|
|
432
|
-
path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
433
|
-
},
|
|
434
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
435
|
-
]
|
|
421
|
+
paths: TRANSFORM_PATHS_1
|
|
436
422
|
}
|
|
437
423
|
]),
|
|
438
424
|
fallback: [
|
|
@@ -470,27 +456,11 @@ function listProjectItems(payload) {
|
|
|
470
456
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
471
457
|
{
|
|
472
458
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
473
|
-
paths:
|
|
474
|
-
{ path: "items.sortOrder" },
|
|
475
|
-
{ path: "items.image.focalPoint.x" },
|
|
476
|
-
{ path: "items.image.focalPoint.y" },
|
|
477
|
-
{ path: "items.image.unsharpMasking.amount" },
|
|
478
|
-
{ path: "items.image.unsharpMasking.radius" },
|
|
479
|
-
{ path: "items.image.unsharpMasking.threshold" }
|
|
480
|
-
]
|
|
459
|
+
paths: TRANSFORM_PATHS_2
|
|
481
460
|
},
|
|
482
461
|
{
|
|
483
462
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
484
|
-
paths:
|
|
485
|
-
{ path: "items.createdDate" },
|
|
486
|
-
{ path: "items.updatedDate" },
|
|
487
|
-
{ path: "items.image.imageInfo.urlExpirationDate" },
|
|
488
|
-
{ path: "items.video.videoInfo.urlExpirationDate" },
|
|
489
|
-
{
|
|
490
|
-
path: "items.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
491
|
-
},
|
|
492
|
-
{ path: "items.video.videoInfo.posters.urlExpirationDate" }
|
|
493
|
-
]
|
|
463
|
+
paths: TRANSFORM_PATHS_3
|
|
494
464
|
}
|
|
495
465
|
])
|
|
496
466
|
};
|
|
@@ -503,29 +473,15 @@ function updateProjectItem(payload) {
|
|
|
503
473
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
504
474
|
{
|
|
505
475
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
506
|
-
paths:
|
|
476
|
+
paths: TRANSFORM_PATHS_6
|
|
507
477
|
},
|
|
508
478
|
{
|
|
509
479
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
510
|
-
paths:
|
|
511
|
-
{ path: "item.sortOrder" },
|
|
512
|
-
{ path: "item.image.focalPoint.x" },
|
|
513
|
-
{ path: "item.image.focalPoint.y" },
|
|
514
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
515
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
516
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
517
|
-
]
|
|
480
|
+
paths: TRANSFORM_PATHS_0
|
|
518
481
|
},
|
|
519
482
|
{
|
|
520
483
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
521
|
-
paths:
|
|
522
|
-
{ path: "item.createdDate" },
|
|
523
|
-
{ path: "item.updatedDate" },
|
|
524
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
525
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
526
|
-
{ path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
527
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
528
|
-
]
|
|
484
|
+
paths: TRANSFORM_PATHS_1
|
|
529
485
|
}
|
|
530
486
|
]);
|
|
531
487
|
const metadata = {
|
|
@@ -545,27 +501,11 @@ function updateProjectItem(payload) {
|
|
|
545
501
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
546
502
|
{
|
|
547
503
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
548
|
-
paths:
|
|
549
|
-
{ path: "item.sortOrder" },
|
|
550
|
-
{ path: "item.image.focalPoint.x" },
|
|
551
|
-
{ path: "item.image.focalPoint.y" },
|
|
552
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
553
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
554
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
555
|
-
]
|
|
504
|
+
paths: TRANSFORM_PATHS_0
|
|
556
505
|
},
|
|
557
506
|
{
|
|
558
507
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
559
|
-
paths:
|
|
560
|
-
{ path: "item.createdDate" },
|
|
561
|
-
{ path: "item.updatedDate" },
|
|
562
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
563
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
564
|
-
{
|
|
565
|
-
path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
566
|
-
},
|
|
567
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
568
|
-
]
|
|
508
|
+
paths: TRANSFORM_PATHS_1
|
|
569
509
|
}
|
|
570
510
|
])
|
|
571
511
|
};
|
|
@@ -578,31 +518,15 @@ function bulkUpdateProjectItems(payload) {
|
|
|
578
518
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
579
519
|
{
|
|
580
520
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
581
|
-
paths:
|
|
521
|
+
paths: TRANSFORM_PATHS_7
|
|
582
522
|
},
|
|
583
523
|
{
|
|
584
524
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
585
|
-
paths:
|
|
586
|
-
{ path: "items.item.sortOrder" },
|
|
587
|
-
{ path: "items.item.image.focalPoint.x" },
|
|
588
|
-
{ path: "items.item.image.focalPoint.y" },
|
|
589
|
-
{ path: "items.item.image.unsharpMasking.amount" },
|
|
590
|
-
{ path: "items.item.image.unsharpMasking.radius" },
|
|
591
|
-
{ path: "items.item.image.unsharpMasking.threshold" }
|
|
592
|
-
]
|
|
525
|
+
paths: TRANSFORM_PATHS_8
|
|
593
526
|
},
|
|
594
527
|
{
|
|
595
528
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
596
|
-
paths:
|
|
597
|
-
{ path: "items.item.createdDate" },
|
|
598
|
-
{ path: "items.item.updatedDate" },
|
|
599
|
-
{ path: "items.item.image.imageInfo.urlExpirationDate" },
|
|
600
|
-
{ path: "items.item.video.videoInfo.urlExpirationDate" },
|
|
601
|
-
{
|
|
602
|
-
path: "items.item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
603
|
-
},
|
|
604
|
-
{ path: "items.item.video.videoInfo.posters.urlExpirationDate" }
|
|
605
|
-
]
|
|
529
|
+
paths: TRANSFORM_PATHS_9
|
|
606
530
|
}
|
|
607
531
|
]);
|
|
608
532
|
const metadata = {
|
|
@@ -622,29 +546,11 @@ function bulkUpdateProjectItems(payload) {
|
|
|
622
546
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
623
547
|
{
|
|
624
548
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
625
|
-
paths:
|
|
626
|
-
{ path: "results.item.sortOrder" },
|
|
627
|
-
{ path: "results.item.image.focalPoint.x" },
|
|
628
|
-
{ path: "results.item.image.focalPoint.y" },
|
|
629
|
-
{ path: "results.item.image.unsharpMasking.amount" },
|
|
630
|
-
{ path: "results.item.image.unsharpMasking.radius" },
|
|
631
|
-
{ path: "results.item.image.unsharpMasking.threshold" }
|
|
632
|
-
]
|
|
549
|
+
paths: TRANSFORM_PATHS_4
|
|
633
550
|
},
|
|
634
551
|
{
|
|
635
552
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
636
|
-
paths:
|
|
637
|
-
{ path: "results.item.createdDate" },
|
|
638
|
-
{ path: "results.item.updatedDate" },
|
|
639
|
-
{ path: "results.item.image.imageInfo.urlExpirationDate" },
|
|
640
|
-
{ path: "results.item.video.videoInfo.urlExpirationDate" },
|
|
641
|
-
{
|
|
642
|
-
path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
643
|
-
},
|
|
644
|
-
{
|
|
645
|
-
path: "results.item.video.videoInfo.posters.urlExpirationDate"
|
|
646
|
-
}
|
|
647
|
-
]
|
|
553
|
+
paths: TRANSFORM_PATHS_5
|
|
648
554
|
}
|
|
649
555
|
])
|
|
650
556
|
};
|
|
@@ -743,6 +649,14 @@ var import_image2 = require("@wix/sdk-runtime/transformations/image");
|
|
|
743
649
|
var import_video_v2 = require("@wix/sdk-runtime/transformations/video-v2");
|
|
744
650
|
var import_video_v22 = require("@wix/sdk-runtime/transformations/video-v2");
|
|
745
651
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
652
|
+
var TRANSFORM_PATHS_02 = [{ path: "item.image.imageInfo" }];
|
|
653
|
+
var TRANSFORM_PATHS_12 = [{ path: "item.video.videoInfo" }];
|
|
654
|
+
var TRANSFORM_PATHS_22 = [{ path: "items.image.imageInfo" }];
|
|
655
|
+
var TRANSFORM_PATHS_32 = [{ path: "items.video.videoInfo" }];
|
|
656
|
+
var TRANSFORM_PATHS_42 = [{ path: "results.item.image.imageInfo" }];
|
|
657
|
+
var TRANSFORM_PATHS_52 = [{ path: "results.item.video.videoInfo" }];
|
|
658
|
+
var TRANSFORM_PATHS_62 = [{ path: "items.item.image.imageInfo" }];
|
|
659
|
+
var TRANSFORM_PATHS_72 = [{ path: "items.item.video.videoInfo" }];
|
|
746
660
|
var Type = /* @__PURE__ */ ((Type2) => {
|
|
747
661
|
Type2["UNDEFINED"] = "UNDEFINED";
|
|
748
662
|
Type2["IMAGE"] = "IMAGE";
|
|
@@ -775,11 +689,11 @@ async function createProjectItem2(item) {
|
|
|
775
689
|
[
|
|
776
690
|
{
|
|
777
691
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
778
|
-
paths:
|
|
692
|
+
paths: TRANSFORM_PATHS_02
|
|
779
693
|
},
|
|
780
694
|
{
|
|
781
695
|
transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
|
|
782
|
-
paths:
|
|
696
|
+
paths: TRANSFORM_PATHS_12
|
|
783
697
|
}
|
|
784
698
|
]
|
|
785
699
|
);
|
|
@@ -792,11 +706,11 @@ async function createProjectItem2(item) {
|
|
|
792
706
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
793
707
|
{
|
|
794
708
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
795
|
-
paths:
|
|
709
|
+
paths: TRANSFORM_PATHS_02
|
|
796
710
|
},
|
|
797
711
|
{
|
|
798
712
|
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
799
|
-
paths:
|
|
713
|
+
paths: TRANSFORM_PATHS_12
|
|
800
714
|
}
|
|
801
715
|
])
|
|
802
716
|
)?.item;
|
|
@@ -824,11 +738,11 @@ async function bulkCreateProjectItems2(options) {
|
|
|
824
738
|
[
|
|
825
739
|
{
|
|
826
740
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
827
|
-
paths:
|
|
741
|
+
paths: TRANSFORM_PATHS_22
|
|
828
742
|
},
|
|
829
743
|
{
|
|
830
744
|
transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
|
|
831
|
-
paths:
|
|
745
|
+
paths: TRANSFORM_PATHS_32
|
|
832
746
|
}
|
|
833
747
|
]
|
|
834
748
|
);
|
|
@@ -843,11 +757,11 @@ async function bulkCreateProjectItems2(options) {
|
|
|
843
757
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
844
758
|
{
|
|
845
759
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
846
|
-
paths:
|
|
760
|
+
paths: TRANSFORM_PATHS_42
|
|
847
761
|
},
|
|
848
762
|
{
|
|
849
763
|
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
850
|
-
paths:
|
|
764
|
+
paths: TRANSFORM_PATHS_52
|
|
851
765
|
}
|
|
852
766
|
])
|
|
853
767
|
);
|
|
@@ -880,11 +794,11 @@ async function getProjectItem2(itemId) {
|
|
|
880
794
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
881
795
|
{
|
|
882
796
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
883
|
-
paths:
|
|
797
|
+
paths: TRANSFORM_PATHS_02
|
|
884
798
|
},
|
|
885
799
|
{
|
|
886
800
|
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
887
|
-
paths:
|
|
801
|
+
paths: TRANSFORM_PATHS_12
|
|
888
802
|
}
|
|
889
803
|
])
|
|
890
804
|
)?.item;
|
|
@@ -917,11 +831,11 @@ async function listProjectItems2(projectId, options) {
|
|
|
917
831
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
918
832
|
{
|
|
919
833
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
920
|
-
paths:
|
|
834
|
+
paths: TRANSFORM_PATHS_22
|
|
921
835
|
},
|
|
922
836
|
{
|
|
923
837
|
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
924
|
-
paths:
|
|
838
|
+
paths: TRANSFORM_PATHS_32
|
|
925
839
|
}
|
|
926
840
|
])
|
|
927
841
|
);
|
|
@@ -946,11 +860,11 @@ async function updateProjectItem2(_id, item) {
|
|
|
946
860
|
[
|
|
947
861
|
{
|
|
948
862
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
949
|
-
paths:
|
|
863
|
+
paths: TRANSFORM_PATHS_02
|
|
950
864
|
},
|
|
951
865
|
{
|
|
952
866
|
transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
|
|
953
|
-
paths:
|
|
867
|
+
paths: TRANSFORM_PATHS_12
|
|
954
868
|
}
|
|
955
869
|
]
|
|
956
870
|
);
|
|
@@ -963,11 +877,11 @@ async function updateProjectItem2(_id, item) {
|
|
|
963
877
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
964
878
|
{
|
|
965
879
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
966
|
-
paths:
|
|
880
|
+
paths: TRANSFORM_PATHS_02
|
|
967
881
|
},
|
|
968
882
|
{
|
|
969
883
|
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
970
|
-
paths:
|
|
884
|
+
paths: TRANSFORM_PATHS_12
|
|
971
885
|
}
|
|
972
886
|
])
|
|
973
887
|
)?.item;
|
|
@@ -995,11 +909,11 @@ async function bulkUpdateProjectItems2(options) {
|
|
|
995
909
|
[
|
|
996
910
|
{
|
|
997
911
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
998
|
-
paths:
|
|
912
|
+
paths: TRANSFORM_PATHS_62
|
|
999
913
|
},
|
|
1000
914
|
{
|
|
1001
915
|
transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
|
|
1002
|
-
paths:
|
|
916
|
+
paths: TRANSFORM_PATHS_72
|
|
1003
917
|
}
|
|
1004
918
|
]
|
|
1005
919
|
);
|
|
@@ -1014,11 +928,11 @@ async function bulkUpdateProjectItems2(options) {
|
|
|
1014
928
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1015
929
|
{
|
|
1016
930
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1017
|
-
paths:
|
|
931
|
+
paths: TRANSFORM_PATHS_42
|
|
1018
932
|
},
|
|
1019
933
|
{
|
|
1020
934
|
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
1021
|
-
paths:
|
|
935
|
+
paths: TRANSFORM_PATHS_52
|
|
1022
936
|
}
|
|
1023
937
|
])
|
|
1024
938
|
);
|
|
@@ -1147,6 +1061,36 @@ async function generateTokenForProjectItems2(mediaIds) {
|
|
|
1147
1061
|
}
|
|
1148
1062
|
|
|
1149
1063
|
// src/portfolio-project-items-v1-project-item-project-items.public.ts
|
|
1064
|
+
var TRANSFORM_PATHS_03 = [
|
|
1065
|
+
{ path: "entity.sortOrder" },
|
|
1066
|
+
{ path: "entity.image.focalPoint.x" },
|
|
1067
|
+
{ path: "entity.image.focalPoint.y" },
|
|
1068
|
+
{ path: "entity.image.unsharpMasking.amount" },
|
|
1069
|
+
{ path: "entity.image.unsharpMasking.radius" },
|
|
1070
|
+
{ path: "entity.image.unsharpMasking.threshold" }
|
|
1071
|
+
];
|
|
1072
|
+
var TRANSFORM_PATHS_13 = [
|
|
1073
|
+
{ path: "entity.createdDate" },
|
|
1074
|
+
{ path: "entity.updatedDate" },
|
|
1075
|
+
{ path: "metadata.eventTime" }
|
|
1076
|
+
];
|
|
1077
|
+
var TRANSFORM_PATHS_23 = [{ path: "entity.image.imageInfo" }];
|
|
1078
|
+
var TRANSFORM_PATHS_33 = [{ path: "entity.video.videoInfo" }];
|
|
1079
|
+
var TRANSFORM_PATHS_43 = [
|
|
1080
|
+
{ path: "undefined.sortOrder" },
|
|
1081
|
+
{ path: "undefined.image.focalPoint.x" },
|
|
1082
|
+
{ path: "undefined.image.focalPoint.y" },
|
|
1083
|
+
{ path: "undefined.image.unsharpMasking.amount" },
|
|
1084
|
+
{ path: "undefined.image.unsharpMasking.radius" },
|
|
1085
|
+
{ path: "undefined.image.unsharpMasking.threshold" }
|
|
1086
|
+
];
|
|
1087
|
+
var TRANSFORM_PATHS_53 = [
|
|
1088
|
+
{ path: "undefined.createdDate" },
|
|
1089
|
+
{ path: "undefined.updatedDate" },
|
|
1090
|
+
{ path: "metadata.eventTime" }
|
|
1091
|
+
];
|
|
1092
|
+
var TRANSFORM_PATHS_63 = [{ path: "undefined.image.imageInfo" }];
|
|
1093
|
+
var TRANSFORM_PATHS_73 = [{ path: "undefined.video.videoInfo" }];
|
|
1150
1094
|
function createProjectItem3(httpClient) {
|
|
1151
1095
|
return (item) => createProjectItem2(
|
|
1152
1096
|
item,
|
|
@@ -1227,30 +1171,19 @@ var onProjectItemCreated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)
|
|
|
1227
1171
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
1228
1172
|
{
|
|
1229
1173
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1230
|
-
paths:
|
|
1231
|
-
{ path: "entity.sortOrder" },
|
|
1232
|
-
{ path: "entity.image.focalPoint.x" },
|
|
1233
|
-
{ path: "entity.image.focalPoint.y" },
|
|
1234
|
-
{ path: "entity.image.unsharpMasking.amount" },
|
|
1235
|
-
{ path: "entity.image.unsharpMasking.radius" },
|
|
1236
|
-
{ path: "entity.image.unsharpMasking.threshold" }
|
|
1237
|
-
]
|
|
1174
|
+
paths: TRANSFORM_PATHS_03
|
|
1238
1175
|
},
|
|
1239
1176
|
{
|
|
1240
1177
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1241
|
-
paths:
|
|
1242
|
-
{ path: "entity.createdDate" },
|
|
1243
|
-
{ path: "entity.updatedDate" },
|
|
1244
|
-
{ path: "metadata.eventTime" }
|
|
1245
|
-
]
|
|
1178
|
+
paths: TRANSFORM_PATHS_13
|
|
1246
1179
|
},
|
|
1247
1180
|
{
|
|
1248
1181
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
1249
|
-
paths:
|
|
1182
|
+
paths: TRANSFORM_PATHS_23
|
|
1250
1183
|
},
|
|
1251
1184
|
{
|
|
1252
1185
|
transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
|
|
1253
|
-
paths:
|
|
1186
|
+
paths: TRANSFORM_PATHS_33
|
|
1254
1187
|
}
|
|
1255
1188
|
])
|
|
1256
1189
|
)
|
|
@@ -1262,30 +1195,19 @@ var onProjectItemDeleted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)
|
|
|
1262
1195
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
1263
1196
|
{
|
|
1264
1197
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1265
|
-
paths:
|
|
1266
|
-
{ path: "undefined.sortOrder" },
|
|
1267
|
-
{ path: "undefined.image.focalPoint.x" },
|
|
1268
|
-
{ path: "undefined.image.focalPoint.y" },
|
|
1269
|
-
{ path: "undefined.image.unsharpMasking.amount" },
|
|
1270
|
-
{ path: "undefined.image.unsharpMasking.radius" },
|
|
1271
|
-
{ path: "undefined.image.unsharpMasking.threshold" }
|
|
1272
|
-
]
|
|
1198
|
+
paths: TRANSFORM_PATHS_43
|
|
1273
1199
|
},
|
|
1274
1200
|
{
|
|
1275
1201
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1276
|
-
paths:
|
|
1277
|
-
{ path: "undefined.createdDate" },
|
|
1278
|
-
{ path: "undefined.updatedDate" },
|
|
1279
|
-
{ path: "metadata.eventTime" }
|
|
1280
|
-
]
|
|
1202
|
+
paths: TRANSFORM_PATHS_53
|
|
1281
1203
|
},
|
|
1282
1204
|
{
|
|
1283
1205
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
1284
|
-
paths:
|
|
1206
|
+
paths: TRANSFORM_PATHS_63
|
|
1285
1207
|
},
|
|
1286
1208
|
{
|
|
1287
1209
|
transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
|
|
1288
|
-
paths:
|
|
1210
|
+
paths: TRANSFORM_PATHS_73
|
|
1289
1211
|
}
|
|
1290
1212
|
])
|
|
1291
1213
|
)
|
|
@@ -1297,30 +1219,19 @@ var onProjectItemUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)
|
|
|
1297
1219
|
(0, import_transform_paths3.transformPaths)(event, [
|
|
1298
1220
|
{
|
|
1299
1221
|
transformFn: import_float3.transformRESTFloatToSDKFloat,
|
|
1300
|
-
paths:
|
|
1301
|
-
{ path: "entity.sortOrder" },
|
|
1302
|
-
{ path: "entity.image.focalPoint.x" },
|
|
1303
|
-
{ path: "entity.image.focalPoint.y" },
|
|
1304
|
-
{ path: "entity.image.unsharpMasking.amount" },
|
|
1305
|
-
{ path: "entity.image.unsharpMasking.radius" },
|
|
1306
|
-
{ path: "entity.image.unsharpMasking.threshold" }
|
|
1307
|
-
]
|
|
1222
|
+
paths: TRANSFORM_PATHS_03
|
|
1308
1223
|
},
|
|
1309
1224
|
{
|
|
1310
1225
|
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1311
|
-
paths:
|
|
1312
|
-
{ path: "entity.createdDate" },
|
|
1313
|
-
{ path: "entity.updatedDate" },
|
|
1314
|
-
{ path: "metadata.eventTime" }
|
|
1315
|
-
]
|
|
1226
|
+
paths: TRANSFORM_PATHS_13
|
|
1316
1227
|
},
|
|
1317
1228
|
{
|
|
1318
1229
|
transformFn: import_image3.transformRESTImageToSDKImage,
|
|
1319
|
-
paths:
|
|
1230
|
+
paths: TRANSFORM_PATHS_23
|
|
1320
1231
|
},
|
|
1321
1232
|
{
|
|
1322
1233
|
transformFn: import_video_v23.transformRESTVideoV2ToSDKVideoV2,
|
|
1323
|
-
paths:
|
|
1234
|
+
paths: TRANSFORM_PATHS_33
|
|
1324
1235
|
}
|
|
1325
1236
|
])
|
|
1326
1237
|
)
|