@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
|
@@ -50,6 +50,72 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
|
50
50
|
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
51
51
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
52
52
|
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
53
|
+
var TRANSFORM_PATHS_0 = [
|
|
54
|
+
{ path: "item.sortOrder" },
|
|
55
|
+
{ path: "item.image.focalPoint.x" },
|
|
56
|
+
{ path: "item.image.focalPoint.y" },
|
|
57
|
+
{ path: "item.image.unsharpMasking.amount" },
|
|
58
|
+
{ path: "item.image.unsharpMasking.radius" },
|
|
59
|
+
{ path: "item.image.unsharpMasking.threshold" }
|
|
60
|
+
];
|
|
61
|
+
var TRANSFORM_PATHS_1 = [
|
|
62
|
+
{ path: "item.createdDate" },
|
|
63
|
+
{ path: "item.updatedDate" },
|
|
64
|
+
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
65
|
+
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
66
|
+
{ path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
67
|
+
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
68
|
+
];
|
|
69
|
+
var TRANSFORM_PATHS_2 = [
|
|
70
|
+
{ path: "items.sortOrder" },
|
|
71
|
+
{ path: "items.image.focalPoint.x" },
|
|
72
|
+
{ path: "items.image.focalPoint.y" },
|
|
73
|
+
{ path: "items.image.unsharpMasking.amount" },
|
|
74
|
+
{ path: "items.image.unsharpMasking.radius" },
|
|
75
|
+
{ path: "items.image.unsharpMasking.threshold" }
|
|
76
|
+
];
|
|
77
|
+
var TRANSFORM_PATHS_3 = [
|
|
78
|
+
{ path: "items.createdDate" },
|
|
79
|
+
{ path: "items.updatedDate" },
|
|
80
|
+
{ path: "items.image.imageInfo.urlExpirationDate" },
|
|
81
|
+
{ path: "items.video.videoInfo.urlExpirationDate" },
|
|
82
|
+
{ path: "items.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
83
|
+
{ path: "items.video.videoInfo.posters.urlExpirationDate" }
|
|
84
|
+
];
|
|
85
|
+
var TRANSFORM_PATHS_4 = [
|
|
86
|
+
{ path: "results.item.sortOrder" },
|
|
87
|
+
{ path: "results.item.image.focalPoint.x" },
|
|
88
|
+
{ path: "results.item.image.focalPoint.y" },
|
|
89
|
+
{ path: "results.item.image.unsharpMasking.amount" },
|
|
90
|
+
{ path: "results.item.image.unsharpMasking.radius" },
|
|
91
|
+
{ path: "results.item.image.unsharpMasking.threshold" }
|
|
92
|
+
];
|
|
93
|
+
var TRANSFORM_PATHS_5 = [
|
|
94
|
+
{ path: "results.item.createdDate" },
|
|
95
|
+
{ path: "results.item.updatedDate" },
|
|
96
|
+
{ path: "results.item.image.imageInfo.urlExpirationDate" },
|
|
97
|
+
{ path: "results.item.video.videoInfo.urlExpirationDate" },
|
|
98
|
+
{ path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
99
|
+
{ path: "results.item.video.videoInfo.posters.urlExpirationDate" }
|
|
100
|
+
];
|
|
101
|
+
var TRANSFORM_PATHS_6 = [{ path: "mask" }];
|
|
102
|
+
var TRANSFORM_PATHS_7 = [{ path: "items.fieldMask" }];
|
|
103
|
+
var TRANSFORM_PATHS_8 = [
|
|
104
|
+
{ path: "items.item.sortOrder" },
|
|
105
|
+
{ path: "items.item.image.focalPoint.x" },
|
|
106
|
+
{ path: "items.item.image.focalPoint.y" },
|
|
107
|
+
{ path: "items.item.image.unsharpMasking.amount" },
|
|
108
|
+
{ path: "items.item.image.unsharpMasking.radius" },
|
|
109
|
+
{ path: "items.item.image.unsharpMasking.threshold" }
|
|
110
|
+
];
|
|
111
|
+
var TRANSFORM_PATHS_9 = [
|
|
112
|
+
{ path: "items.item.createdDate" },
|
|
113
|
+
{ path: "items.item.updatedDate" },
|
|
114
|
+
{ path: "items.item.image.imageInfo.urlExpirationDate" },
|
|
115
|
+
{ path: "items.item.video.videoInfo.urlExpirationDate" },
|
|
116
|
+
{ path: "items.item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
117
|
+
{ path: "items.item.video.videoInfo.posters.urlExpirationDate" }
|
|
118
|
+
];
|
|
53
119
|
function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
|
|
54
120
|
const domainToMappings = {
|
|
55
121
|
"manage._base_domain_": [
|
|
@@ -240,25 +306,11 @@ function createProjectItem(payload) {
|
|
|
240
306
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
241
307
|
{
|
|
242
308
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
243
|
-
paths:
|
|
244
|
-
{ path: "item.sortOrder" },
|
|
245
|
-
{ path: "item.image.focalPoint.x" },
|
|
246
|
-
{ path: "item.image.focalPoint.y" },
|
|
247
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
248
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
249
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
250
|
-
]
|
|
309
|
+
paths: TRANSFORM_PATHS_0
|
|
251
310
|
},
|
|
252
311
|
{
|
|
253
312
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
254
|
-
paths:
|
|
255
|
-
{ path: "item.createdDate" },
|
|
256
|
-
{ path: "item.updatedDate" },
|
|
257
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
258
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
259
|
-
{ path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
260
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
261
|
-
]
|
|
313
|
+
paths: TRANSFORM_PATHS_1
|
|
262
314
|
}
|
|
263
315
|
]);
|
|
264
316
|
const metadata = {
|
|
@@ -278,27 +330,11 @@ function createProjectItem(payload) {
|
|
|
278
330
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
279
331
|
{
|
|
280
332
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
281
|
-
paths:
|
|
282
|
-
{ path: "item.sortOrder" },
|
|
283
|
-
{ path: "item.image.focalPoint.x" },
|
|
284
|
-
{ path: "item.image.focalPoint.y" },
|
|
285
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
286
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
287
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
288
|
-
]
|
|
333
|
+
paths: TRANSFORM_PATHS_0
|
|
289
334
|
},
|
|
290
335
|
{
|
|
291
336
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
292
|
-
paths:
|
|
293
|
-
{ path: "item.createdDate" },
|
|
294
|
-
{ path: "item.updatedDate" },
|
|
295
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
296
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
297
|
-
{
|
|
298
|
-
path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
299
|
-
},
|
|
300
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
301
|
-
]
|
|
337
|
+
paths: TRANSFORM_PATHS_1
|
|
302
338
|
}
|
|
303
339
|
])
|
|
304
340
|
};
|
|
@@ -311,27 +347,11 @@ function bulkCreateProjectItems(payload) {
|
|
|
311
347
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
312
348
|
{
|
|
313
349
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
314
|
-
paths:
|
|
315
|
-
{ path: "items.sortOrder" },
|
|
316
|
-
{ path: "items.image.focalPoint.x" },
|
|
317
|
-
{ path: "items.image.focalPoint.y" },
|
|
318
|
-
{ path: "items.image.unsharpMasking.amount" },
|
|
319
|
-
{ path: "items.image.unsharpMasking.radius" },
|
|
320
|
-
{ path: "items.image.unsharpMasking.threshold" }
|
|
321
|
-
]
|
|
350
|
+
paths: TRANSFORM_PATHS_2
|
|
322
351
|
},
|
|
323
352
|
{
|
|
324
353
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
325
|
-
paths:
|
|
326
|
-
{ path: "items.createdDate" },
|
|
327
|
-
{ path: "items.updatedDate" },
|
|
328
|
-
{ path: "items.image.imageInfo.urlExpirationDate" },
|
|
329
|
-
{ path: "items.video.videoInfo.urlExpirationDate" },
|
|
330
|
-
{
|
|
331
|
-
path: "items.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
332
|
-
},
|
|
333
|
-
{ path: "items.video.videoInfo.posters.urlExpirationDate" }
|
|
334
|
-
]
|
|
354
|
+
paths: TRANSFORM_PATHS_3
|
|
335
355
|
}
|
|
336
356
|
]);
|
|
337
357
|
const metadata = {
|
|
@@ -351,29 +371,11 @@ function bulkCreateProjectItems(payload) {
|
|
|
351
371
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
352
372
|
{
|
|
353
373
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
354
|
-
paths:
|
|
355
|
-
{ path: "results.item.sortOrder" },
|
|
356
|
-
{ path: "results.item.image.focalPoint.x" },
|
|
357
|
-
{ path: "results.item.image.focalPoint.y" },
|
|
358
|
-
{ path: "results.item.image.unsharpMasking.amount" },
|
|
359
|
-
{ path: "results.item.image.unsharpMasking.radius" },
|
|
360
|
-
{ path: "results.item.image.unsharpMasking.threshold" }
|
|
361
|
-
]
|
|
374
|
+
paths: TRANSFORM_PATHS_4
|
|
362
375
|
},
|
|
363
376
|
{
|
|
364
377
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
365
|
-
paths:
|
|
366
|
-
{ path: "results.item.createdDate" },
|
|
367
|
-
{ path: "results.item.updatedDate" },
|
|
368
|
-
{ path: "results.item.image.imageInfo.urlExpirationDate" },
|
|
369
|
-
{ path: "results.item.video.videoInfo.urlExpirationDate" },
|
|
370
|
-
{
|
|
371
|
-
path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
372
|
-
},
|
|
373
|
-
{
|
|
374
|
-
path: "results.item.video.videoInfo.posters.urlExpirationDate"
|
|
375
|
-
}
|
|
376
|
-
]
|
|
378
|
+
paths: TRANSFORM_PATHS_5
|
|
377
379
|
}
|
|
378
380
|
])
|
|
379
381
|
};
|
|
@@ -400,27 +402,11 @@ function getProjectItem(payload) {
|
|
|
400
402
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
401
403
|
{
|
|
402
404
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
403
|
-
paths:
|
|
404
|
-
{ path: "item.sortOrder" },
|
|
405
|
-
{ path: "item.image.focalPoint.x" },
|
|
406
|
-
{ path: "item.image.focalPoint.y" },
|
|
407
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
408
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
409
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
410
|
-
]
|
|
405
|
+
paths: TRANSFORM_PATHS_0
|
|
411
406
|
},
|
|
412
407
|
{
|
|
413
408
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
414
|
-
paths:
|
|
415
|
-
{ path: "item.createdDate" },
|
|
416
|
-
{ path: "item.updatedDate" },
|
|
417
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
418
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
419
|
-
{
|
|
420
|
-
path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
421
|
-
},
|
|
422
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
423
|
-
]
|
|
409
|
+
paths: TRANSFORM_PATHS_1
|
|
424
410
|
}
|
|
425
411
|
]),
|
|
426
412
|
fallback: [
|
|
@@ -458,27 +444,11 @@ function listProjectItems(payload) {
|
|
|
458
444
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
459
445
|
{
|
|
460
446
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
461
|
-
paths:
|
|
462
|
-
{ path: "items.sortOrder" },
|
|
463
|
-
{ path: "items.image.focalPoint.x" },
|
|
464
|
-
{ path: "items.image.focalPoint.y" },
|
|
465
|
-
{ path: "items.image.unsharpMasking.amount" },
|
|
466
|
-
{ path: "items.image.unsharpMasking.radius" },
|
|
467
|
-
{ path: "items.image.unsharpMasking.threshold" }
|
|
468
|
-
]
|
|
447
|
+
paths: TRANSFORM_PATHS_2
|
|
469
448
|
},
|
|
470
449
|
{
|
|
471
450
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
472
|
-
paths:
|
|
473
|
-
{ path: "items.createdDate" },
|
|
474
|
-
{ path: "items.updatedDate" },
|
|
475
|
-
{ path: "items.image.imageInfo.urlExpirationDate" },
|
|
476
|
-
{ path: "items.video.videoInfo.urlExpirationDate" },
|
|
477
|
-
{
|
|
478
|
-
path: "items.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
479
|
-
},
|
|
480
|
-
{ path: "items.video.videoInfo.posters.urlExpirationDate" }
|
|
481
|
-
]
|
|
451
|
+
paths: TRANSFORM_PATHS_3
|
|
482
452
|
}
|
|
483
453
|
])
|
|
484
454
|
};
|
|
@@ -491,29 +461,15 @@ function updateProjectItem(payload) {
|
|
|
491
461
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
492
462
|
{
|
|
493
463
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
494
|
-
paths:
|
|
464
|
+
paths: TRANSFORM_PATHS_6
|
|
495
465
|
},
|
|
496
466
|
{
|
|
497
467
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
498
|
-
paths:
|
|
499
|
-
{ path: "item.sortOrder" },
|
|
500
|
-
{ path: "item.image.focalPoint.x" },
|
|
501
|
-
{ path: "item.image.focalPoint.y" },
|
|
502
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
503
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
504
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
505
|
-
]
|
|
468
|
+
paths: TRANSFORM_PATHS_0
|
|
506
469
|
},
|
|
507
470
|
{
|
|
508
471
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
509
|
-
paths:
|
|
510
|
-
{ path: "item.createdDate" },
|
|
511
|
-
{ path: "item.updatedDate" },
|
|
512
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
513
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
514
|
-
{ path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
515
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
516
|
-
]
|
|
472
|
+
paths: TRANSFORM_PATHS_1
|
|
517
473
|
}
|
|
518
474
|
]);
|
|
519
475
|
const metadata = {
|
|
@@ -533,27 +489,11 @@ function updateProjectItem(payload) {
|
|
|
533
489
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
534
490
|
{
|
|
535
491
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
536
|
-
paths:
|
|
537
|
-
{ path: "item.sortOrder" },
|
|
538
|
-
{ path: "item.image.focalPoint.x" },
|
|
539
|
-
{ path: "item.image.focalPoint.y" },
|
|
540
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
541
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
542
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
543
|
-
]
|
|
492
|
+
paths: TRANSFORM_PATHS_0
|
|
544
493
|
},
|
|
545
494
|
{
|
|
546
495
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
547
|
-
paths:
|
|
548
|
-
{ path: "item.createdDate" },
|
|
549
|
-
{ path: "item.updatedDate" },
|
|
550
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
551
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
552
|
-
{
|
|
553
|
-
path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
554
|
-
},
|
|
555
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
556
|
-
]
|
|
496
|
+
paths: TRANSFORM_PATHS_1
|
|
557
497
|
}
|
|
558
498
|
])
|
|
559
499
|
};
|
|
@@ -566,31 +506,15 @@ function bulkUpdateProjectItems(payload) {
|
|
|
566
506
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
567
507
|
{
|
|
568
508
|
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
569
|
-
paths:
|
|
509
|
+
paths: TRANSFORM_PATHS_7
|
|
570
510
|
},
|
|
571
511
|
{
|
|
572
512
|
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
573
|
-
paths:
|
|
574
|
-
{ path: "items.item.sortOrder" },
|
|
575
|
-
{ path: "items.item.image.focalPoint.x" },
|
|
576
|
-
{ path: "items.item.image.focalPoint.y" },
|
|
577
|
-
{ path: "items.item.image.unsharpMasking.amount" },
|
|
578
|
-
{ path: "items.item.image.unsharpMasking.radius" },
|
|
579
|
-
{ path: "items.item.image.unsharpMasking.threshold" }
|
|
580
|
-
]
|
|
513
|
+
paths: TRANSFORM_PATHS_8
|
|
581
514
|
},
|
|
582
515
|
{
|
|
583
516
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
584
|
-
paths:
|
|
585
|
-
{ path: "items.item.createdDate" },
|
|
586
|
-
{ path: "items.item.updatedDate" },
|
|
587
|
-
{ path: "items.item.image.imageInfo.urlExpirationDate" },
|
|
588
|
-
{ path: "items.item.video.videoInfo.urlExpirationDate" },
|
|
589
|
-
{
|
|
590
|
-
path: "items.item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
591
|
-
},
|
|
592
|
-
{ path: "items.item.video.videoInfo.posters.urlExpirationDate" }
|
|
593
|
-
]
|
|
517
|
+
paths: TRANSFORM_PATHS_9
|
|
594
518
|
}
|
|
595
519
|
]);
|
|
596
520
|
const metadata = {
|
|
@@ -610,29 +534,11 @@ function bulkUpdateProjectItems(payload) {
|
|
|
610
534
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
611
535
|
{
|
|
612
536
|
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
613
|
-
paths:
|
|
614
|
-
{ path: "results.item.sortOrder" },
|
|
615
|
-
{ path: "results.item.image.focalPoint.x" },
|
|
616
|
-
{ path: "results.item.image.focalPoint.y" },
|
|
617
|
-
{ path: "results.item.image.unsharpMasking.amount" },
|
|
618
|
-
{ path: "results.item.image.unsharpMasking.radius" },
|
|
619
|
-
{ path: "results.item.image.unsharpMasking.threshold" }
|
|
620
|
-
]
|
|
537
|
+
paths: TRANSFORM_PATHS_4
|
|
621
538
|
},
|
|
622
539
|
{
|
|
623
540
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
624
|
-
paths:
|
|
625
|
-
{ path: "results.item.createdDate" },
|
|
626
|
-
{ path: "results.item.updatedDate" },
|
|
627
|
-
{ path: "results.item.image.imageInfo.urlExpirationDate" },
|
|
628
|
-
{ path: "results.item.video.videoInfo.urlExpirationDate" },
|
|
629
|
-
{
|
|
630
|
-
path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
631
|
-
},
|
|
632
|
-
{
|
|
633
|
-
path: "results.item.video.videoInfo.posters.urlExpirationDate"
|
|
634
|
-
}
|
|
635
|
-
]
|
|
541
|
+
paths: TRANSFORM_PATHS_5
|
|
636
542
|
}
|
|
637
543
|
])
|
|
638
544
|
};
|
|
@@ -731,6 +637,14 @@ var import_image2 = require("@wix/sdk-runtime/transformations/image");
|
|
|
731
637
|
var import_video_v2 = require("@wix/sdk-runtime/transformations/video-v2");
|
|
732
638
|
var import_video_v22 = require("@wix/sdk-runtime/transformations/video-v2");
|
|
733
639
|
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
640
|
+
var TRANSFORM_PATHS_02 = [{ path: "item.image.imageInfo" }];
|
|
641
|
+
var TRANSFORM_PATHS_12 = [{ path: "item.video.videoInfo" }];
|
|
642
|
+
var TRANSFORM_PATHS_22 = [{ path: "items.image.imageInfo" }];
|
|
643
|
+
var TRANSFORM_PATHS_32 = [{ path: "items.video.videoInfo" }];
|
|
644
|
+
var TRANSFORM_PATHS_42 = [{ path: "results.item.image.imageInfo" }];
|
|
645
|
+
var TRANSFORM_PATHS_52 = [{ path: "results.item.video.videoInfo" }];
|
|
646
|
+
var TRANSFORM_PATHS_62 = [{ path: "items.item.image.imageInfo" }];
|
|
647
|
+
var TRANSFORM_PATHS_72 = [{ path: "items.item.video.videoInfo" }];
|
|
734
648
|
var Type = /* @__PURE__ */ ((Type2) => {
|
|
735
649
|
Type2["UNDEFINED"] = "UNDEFINED";
|
|
736
650
|
Type2["IMAGE"] = "IMAGE";
|
|
@@ -763,11 +677,11 @@ async function createProjectItem2(item) {
|
|
|
763
677
|
[
|
|
764
678
|
{
|
|
765
679
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
766
|
-
paths:
|
|
680
|
+
paths: TRANSFORM_PATHS_02
|
|
767
681
|
},
|
|
768
682
|
{
|
|
769
683
|
transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
|
|
770
|
-
paths:
|
|
684
|
+
paths: TRANSFORM_PATHS_12
|
|
771
685
|
}
|
|
772
686
|
]
|
|
773
687
|
);
|
|
@@ -780,11 +694,11 @@ async function createProjectItem2(item) {
|
|
|
780
694
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
781
695
|
{
|
|
782
696
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
783
|
-
paths:
|
|
697
|
+
paths: TRANSFORM_PATHS_02
|
|
784
698
|
},
|
|
785
699
|
{
|
|
786
700
|
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
787
|
-
paths:
|
|
701
|
+
paths: TRANSFORM_PATHS_12
|
|
788
702
|
}
|
|
789
703
|
])
|
|
790
704
|
)?.item;
|
|
@@ -812,11 +726,11 @@ async function bulkCreateProjectItems2(options) {
|
|
|
812
726
|
[
|
|
813
727
|
{
|
|
814
728
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
815
|
-
paths:
|
|
729
|
+
paths: TRANSFORM_PATHS_22
|
|
816
730
|
},
|
|
817
731
|
{
|
|
818
732
|
transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
|
|
819
|
-
paths:
|
|
733
|
+
paths: TRANSFORM_PATHS_32
|
|
820
734
|
}
|
|
821
735
|
]
|
|
822
736
|
);
|
|
@@ -831,11 +745,11 @@ async function bulkCreateProjectItems2(options) {
|
|
|
831
745
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
832
746
|
{
|
|
833
747
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
834
|
-
paths:
|
|
748
|
+
paths: TRANSFORM_PATHS_42
|
|
835
749
|
},
|
|
836
750
|
{
|
|
837
751
|
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
838
|
-
paths:
|
|
752
|
+
paths: TRANSFORM_PATHS_52
|
|
839
753
|
}
|
|
840
754
|
])
|
|
841
755
|
);
|
|
@@ -868,11 +782,11 @@ async function getProjectItem2(itemId) {
|
|
|
868
782
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
869
783
|
{
|
|
870
784
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
871
|
-
paths:
|
|
785
|
+
paths: TRANSFORM_PATHS_02
|
|
872
786
|
},
|
|
873
787
|
{
|
|
874
788
|
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
875
|
-
paths:
|
|
789
|
+
paths: TRANSFORM_PATHS_12
|
|
876
790
|
}
|
|
877
791
|
])
|
|
878
792
|
)?.item;
|
|
@@ -905,11 +819,11 @@ async function listProjectItems2(projectId, options) {
|
|
|
905
819
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
906
820
|
{
|
|
907
821
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
908
|
-
paths:
|
|
822
|
+
paths: TRANSFORM_PATHS_22
|
|
909
823
|
},
|
|
910
824
|
{
|
|
911
825
|
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
912
|
-
paths:
|
|
826
|
+
paths: TRANSFORM_PATHS_32
|
|
913
827
|
}
|
|
914
828
|
])
|
|
915
829
|
);
|
|
@@ -934,11 +848,11 @@ async function updateProjectItem2(_id, item) {
|
|
|
934
848
|
[
|
|
935
849
|
{
|
|
936
850
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
937
|
-
paths:
|
|
851
|
+
paths: TRANSFORM_PATHS_02
|
|
938
852
|
},
|
|
939
853
|
{
|
|
940
854
|
transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
|
|
941
|
-
paths:
|
|
855
|
+
paths: TRANSFORM_PATHS_12
|
|
942
856
|
}
|
|
943
857
|
]
|
|
944
858
|
);
|
|
@@ -951,11 +865,11 @@ async function updateProjectItem2(_id, item) {
|
|
|
951
865
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
952
866
|
{
|
|
953
867
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
954
|
-
paths:
|
|
868
|
+
paths: TRANSFORM_PATHS_02
|
|
955
869
|
},
|
|
956
870
|
{
|
|
957
871
|
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
958
|
-
paths:
|
|
872
|
+
paths: TRANSFORM_PATHS_12
|
|
959
873
|
}
|
|
960
874
|
])
|
|
961
875
|
)?.item;
|
|
@@ -983,11 +897,11 @@ async function bulkUpdateProjectItems2(options) {
|
|
|
983
897
|
[
|
|
984
898
|
{
|
|
985
899
|
transformFn: import_image.transformSDKImageToRESTImage,
|
|
986
|
-
paths:
|
|
900
|
+
paths: TRANSFORM_PATHS_62
|
|
987
901
|
},
|
|
988
902
|
{
|
|
989
903
|
transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
|
|
990
|
-
paths:
|
|
904
|
+
paths: TRANSFORM_PATHS_72
|
|
991
905
|
}
|
|
992
906
|
]
|
|
993
907
|
);
|
|
@@ -1002,11 +916,11 @@ async function bulkUpdateProjectItems2(options) {
|
|
|
1002
916
|
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1003
917
|
{
|
|
1004
918
|
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1005
|
-
paths:
|
|
919
|
+
paths: TRANSFORM_PATHS_42
|
|
1006
920
|
},
|
|
1007
921
|
{
|
|
1008
922
|
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
1009
|
-
paths:
|
|
923
|
+
paths: TRANSFORM_PATHS_52
|
|
1010
924
|
}
|
|
1011
925
|
])
|
|
1012
926
|
);
|