@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/meta.js CHANGED
@@ -46,6 +46,72 @@ var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
46
46
  var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
47
47
  var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
48
48
  var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
49
+ var TRANSFORM_PATHS_0 = [
50
+ { path: "item.sortOrder" },
51
+ { path: "item.image.focalPoint.x" },
52
+ { path: "item.image.focalPoint.y" },
53
+ { path: "item.image.unsharpMasking.amount" },
54
+ { path: "item.image.unsharpMasking.radius" },
55
+ { path: "item.image.unsharpMasking.threshold" }
56
+ ];
57
+ var TRANSFORM_PATHS_1 = [
58
+ { path: "item.createdDate" },
59
+ { path: "item.updatedDate" },
60
+ { path: "item.image.imageInfo.urlExpirationDate" },
61
+ { path: "item.video.videoInfo.urlExpirationDate" },
62
+ { path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
63
+ { path: "item.video.videoInfo.posters.urlExpirationDate" }
64
+ ];
65
+ var TRANSFORM_PATHS_2 = [
66
+ { path: "items.sortOrder" },
67
+ { path: "items.image.focalPoint.x" },
68
+ { path: "items.image.focalPoint.y" },
69
+ { path: "items.image.unsharpMasking.amount" },
70
+ { path: "items.image.unsharpMasking.radius" },
71
+ { path: "items.image.unsharpMasking.threshold" }
72
+ ];
73
+ var TRANSFORM_PATHS_3 = [
74
+ { path: "items.createdDate" },
75
+ { path: "items.updatedDate" },
76
+ { path: "items.image.imageInfo.urlExpirationDate" },
77
+ { path: "items.video.videoInfo.urlExpirationDate" },
78
+ { path: "items.video.videoInfo.resolutions.poster.urlExpirationDate" },
79
+ { path: "items.video.videoInfo.posters.urlExpirationDate" }
80
+ ];
81
+ var TRANSFORM_PATHS_4 = [
82
+ { path: "results.item.sortOrder" },
83
+ { path: "results.item.image.focalPoint.x" },
84
+ { path: "results.item.image.focalPoint.y" },
85
+ { path: "results.item.image.unsharpMasking.amount" },
86
+ { path: "results.item.image.unsharpMasking.radius" },
87
+ { path: "results.item.image.unsharpMasking.threshold" }
88
+ ];
89
+ var TRANSFORM_PATHS_5 = [
90
+ { path: "results.item.createdDate" },
91
+ { path: "results.item.updatedDate" },
92
+ { path: "results.item.image.imageInfo.urlExpirationDate" },
93
+ { path: "results.item.video.videoInfo.urlExpirationDate" },
94
+ { path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate" },
95
+ { path: "results.item.video.videoInfo.posters.urlExpirationDate" }
96
+ ];
97
+ var TRANSFORM_PATHS_6 = [{ path: "mask" }];
98
+ var TRANSFORM_PATHS_7 = [{ path: "items.fieldMask" }];
99
+ var TRANSFORM_PATHS_8 = [
100
+ { path: "items.item.sortOrder" },
101
+ { path: "items.item.image.focalPoint.x" },
102
+ { path: "items.item.image.focalPoint.y" },
103
+ { path: "items.item.image.unsharpMasking.amount" },
104
+ { path: "items.item.image.unsharpMasking.radius" },
105
+ { path: "items.item.image.unsharpMasking.threshold" }
106
+ ];
107
+ var TRANSFORM_PATHS_9 = [
108
+ { path: "items.item.createdDate" },
109
+ { path: "items.item.updatedDate" },
110
+ { path: "items.item.image.imageInfo.urlExpirationDate" },
111
+ { path: "items.item.video.videoInfo.urlExpirationDate" },
112
+ { path: "items.item.video.videoInfo.resolutions.poster.urlExpirationDate" },
113
+ { path: "items.item.video.videoInfo.posters.urlExpirationDate" }
114
+ ];
49
115
  function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
50
116
  const domainToMappings = {
51
117
  "manage._base_domain_": [
@@ -236,25 +302,11 @@ function createProjectItem(payload) {
236
302
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
237
303
  {
238
304
  transformFn: import_float.transformSDKFloatToRESTFloat,
239
- paths: [
240
- { path: "item.sortOrder" },
241
- { path: "item.image.focalPoint.x" },
242
- { path: "item.image.focalPoint.y" },
243
- { path: "item.image.unsharpMasking.amount" },
244
- { path: "item.image.unsharpMasking.radius" },
245
- { path: "item.image.unsharpMasking.threshold" }
246
- ]
305
+ paths: TRANSFORM_PATHS_0
247
306
  },
248
307
  {
249
308
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
250
- paths: [
251
- { path: "item.createdDate" },
252
- { path: "item.updatedDate" },
253
- { path: "item.image.imageInfo.urlExpirationDate" },
254
- { path: "item.video.videoInfo.urlExpirationDate" },
255
- { path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
256
- { path: "item.video.videoInfo.posters.urlExpirationDate" }
257
- ]
309
+ paths: TRANSFORM_PATHS_1
258
310
  }
259
311
  ]);
260
312
  const metadata = {
@@ -274,27 +326,11 @@ function createProjectItem(payload) {
274
326
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
275
327
  {
276
328
  transformFn: import_float2.transformRESTFloatToSDKFloat,
277
- paths: [
278
- { path: "item.sortOrder" },
279
- { path: "item.image.focalPoint.x" },
280
- { path: "item.image.focalPoint.y" },
281
- { path: "item.image.unsharpMasking.amount" },
282
- { path: "item.image.unsharpMasking.radius" },
283
- { path: "item.image.unsharpMasking.threshold" }
284
- ]
329
+ paths: TRANSFORM_PATHS_0
285
330
  },
286
331
  {
287
332
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
288
- paths: [
289
- { path: "item.createdDate" },
290
- { path: "item.updatedDate" },
291
- { path: "item.image.imageInfo.urlExpirationDate" },
292
- { path: "item.video.videoInfo.urlExpirationDate" },
293
- {
294
- path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
295
- },
296
- { path: "item.video.videoInfo.posters.urlExpirationDate" }
297
- ]
333
+ paths: TRANSFORM_PATHS_1
298
334
  }
299
335
  ])
300
336
  };
@@ -307,27 +343,11 @@ function bulkCreateProjectItems(payload) {
307
343
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
308
344
  {
309
345
  transformFn: import_float.transformSDKFloatToRESTFloat,
310
- paths: [
311
- { path: "items.sortOrder" },
312
- { path: "items.image.focalPoint.x" },
313
- { path: "items.image.focalPoint.y" },
314
- { path: "items.image.unsharpMasking.amount" },
315
- { path: "items.image.unsharpMasking.radius" },
316
- { path: "items.image.unsharpMasking.threshold" }
317
- ]
346
+ paths: TRANSFORM_PATHS_2
318
347
  },
319
348
  {
320
349
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
321
- paths: [
322
- { path: "items.createdDate" },
323
- { path: "items.updatedDate" },
324
- { path: "items.image.imageInfo.urlExpirationDate" },
325
- { path: "items.video.videoInfo.urlExpirationDate" },
326
- {
327
- path: "items.video.videoInfo.resolutions.poster.urlExpirationDate"
328
- },
329
- { path: "items.video.videoInfo.posters.urlExpirationDate" }
330
- ]
350
+ paths: TRANSFORM_PATHS_3
331
351
  }
332
352
  ]);
333
353
  const metadata = {
@@ -347,29 +367,11 @@ function bulkCreateProjectItems(payload) {
347
367
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
348
368
  {
349
369
  transformFn: import_float2.transformRESTFloatToSDKFloat,
350
- paths: [
351
- { path: "results.item.sortOrder" },
352
- { path: "results.item.image.focalPoint.x" },
353
- { path: "results.item.image.focalPoint.y" },
354
- { path: "results.item.image.unsharpMasking.amount" },
355
- { path: "results.item.image.unsharpMasking.radius" },
356
- { path: "results.item.image.unsharpMasking.threshold" }
357
- ]
370
+ paths: TRANSFORM_PATHS_4
358
371
  },
359
372
  {
360
373
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
361
- paths: [
362
- { path: "results.item.createdDate" },
363
- { path: "results.item.updatedDate" },
364
- { path: "results.item.image.imageInfo.urlExpirationDate" },
365
- { path: "results.item.video.videoInfo.urlExpirationDate" },
366
- {
367
- path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate"
368
- },
369
- {
370
- path: "results.item.video.videoInfo.posters.urlExpirationDate"
371
- }
372
- ]
374
+ paths: TRANSFORM_PATHS_5
373
375
  }
374
376
  ])
375
377
  };
@@ -396,27 +398,11 @@ function getProjectItem(payload) {
396
398
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
397
399
  {
398
400
  transformFn: import_float2.transformRESTFloatToSDKFloat,
399
- paths: [
400
- { path: "item.sortOrder" },
401
- { path: "item.image.focalPoint.x" },
402
- { path: "item.image.focalPoint.y" },
403
- { path: "item.image.unsharpMasking.amount" },
404
- { path: "item.image.unsharpMasking.radius" },
405
- { path: "item.image.unsharpMasking.threshold" }
406
- ]
401
+ paths: TRANSFORM_PATHS_0
407
402
  },
408
403
  {
409
404
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
410
- paths: [
411
- { path: "item.createdDate" },
412
- { path: "item.updatedDate" },
413
- { path: "item.image.imageInfo.urlExpirationDate" },
414
- { path: "item.video.videoInfo.urlExpirationDate" },
415
- {
416
- path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
417
- },
418
- { path: "item.video.videoInfo.posters.urlExpirationDate" }
419
- ]
405
+ paths: TRANSFORM_PATHS_1
420
406
  }
421
407
  ]),
422
408
  fallback: [
@@ -454,27 +440,11 @@ function listProjectItems(payload) {
454
440
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
455
441
  {
456
442
  transformFn: import_float2.transformRESTFloatToSDKFloat,
457
- paths: [
458
- { path: "items.sortOrder" },
459
- { path: "items.image.focalPoint.x" },
460
- { path: "items.image.focalPoint.y" },
461
- { path: "items.image.unsharpMasking.amount" },
462
- { path: "items.image.unsharpMasking.radius" },
463
- { path: "items.image.unsharpMasking.threshold" }
464
- ]
443
+ paths: TRANSFORM_PATHS_2
465
444
  },
466
445
  {
467
446
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
468
- paths: [
469
- { path: "items.createdDate" },
470
- { path: "items.updatedDate" },
471
- { path: "items.image.imageInfo.urlExpirationDate" },
472
- { path: "items.video.videoInfo.urlExpirationDate" },
473
- {
474
- path: "items.video.videoInfo.resolutions.poster.urlExpirationDate"
475
- },
476
- { path: "items.video.videoInfo.posters.urlExpirationDate" }
477
- ]
447
+ paths: TRANSFORM_PATHS_3
478
448
  }
479
449
  ])
480
450
  };
@@ -487,29 +457,15 @@ function updateProjectItem(payload) {
487
457
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
488
458
  {
489
459
  transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
490
- paths: [{ path: "mask" }]
460
+ paths: TRANSFORM_PATHS_6
491
461
  },
492
462
  {
493
463
  transformFn: import_float.transformSDKFloatToRESTFloat,
494
- paths: [
495
- { path: "item.sortOrder" },
496
- { path: "item.image.focalPoint.x" },
497
- { path: "item.image.focalPoint.y" },
498
- { path: "item.image.unsharpMasking.amount" },
499
- { path: "item.image.unsharpMasking.radius" },
500
- { path: "item.image.unsharpMasking.threshold" }
501
- ]
464
+ paths: TRANSFORM_PATHS_0
502
465
  },
503
466
  {
504
467
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
505
- paths: [
506
- { path: "item.createdDate" },
507
- { path: "item.updatedDate" },
508
- { path: "item.image.imageInfo.urlExpirationDate" },
509
- { path: "item.video.videoInfo.urlExpirationDate" },
510
- { path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
511
- { path: "item.video.videoInfo.posters.urlExpirationDate" }
512
- ]
468
+ paths: TRANSFORM_PATHS_1
513
469
  }
514
470
  ]);
515
471
  const metadata = {
@@ -529,27 +485,11 @@ function updateProjectItem(payload) {
529
485
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
530
486
  {
531
487
  transformFn: import_float2.transformRESTFloatToSDKFloat,
532
- paths: [
533
- { path: "item.sortOrder" },
534
- { path: "item.image.focalPoint.x" },
535
- { path: "item.image.focalPoint.y" },
536
- { path: "item.image.unsharpMasking.amount" },
537
- { path: "item.image.unsharpMasking.radius" },
538
- { path: "item.image.unsharpMasking.threshold" }
539
- ]
488
+ paths: TRANSFORM_PATHS_0
540
489
  },
541
490
  {
542
491
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
543
- paths: [
544
- { path: "item.createdDate" },
545
- { path: "item.updatedDate" },
546
- { path: "item.image.imageInfo.urlExpirationDate" },
547
- { path: "item.video.videoInfo.urlExpirationDate" },
548
- {
549
- path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
550
- },
551
- { path: "item.video.videoInfo.posters.urlExpirationDate" }
552
- ]
492
+ paths: TRANSFORM_PATHS_1
553
493
  }
554
494
  ])
555
495
  };
@@ -562,31 +502,15 @@ function bulkUpdateProjectItems(payload) {
562
502
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
563
503
  {
564
504
  transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
565
- paths: [{ path: "items.fieldMask" }]
505
+ paths: TRANSFORM_PATHS_7
566
506
  },
567
507
  {
568
508
  transformFn: import_float.transformSDKFloatToRESTFloat,
569
- paths: [
570
- { path: "items.item.sortOrder" },
571
- { path: "items.item.image.focalPoint.x" },
572
- { path: "items.item.image.focalPoint.y" },
573
- { path: "items.item.image.unsharpMasking.amount" },
574
- { path: "items.item.image.unsharpMasking.radius" },
575
- { path: "items.item.image.unsharpMasking.threshold" }
576
- ]
509
+ paths: TRANSFORM_PATHS_8
577
510
  },
578
511
  {
579
512
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
580
- paths: [
581
- { path: "items.item.createdDate" },
582
- { path: "items.item.updatedDate" },
583
- { path: "items.item.image.imageInfo.urlExpirationDate" },
584
- { path: "items.item.video.videoInfo.urlExpirationDate" },
585
- {
586
- path: "items.item.video.videoInfo.resolutions.poster.urlExpirationDate"
587
- },
588
- { path: "items.item.video.videoInfo.posters.urlExpirationDate" }
589
- ]
513
+ paths: TRANSFORM_PATHS_9
590
514
  }
591
515
  ]);
592
516
  const metadata = {
@@ -606,29 +530,11 @@ function bulkUpdateProjectItems(payload) {
606
530
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
607
531
  {
608
532
  transformFn: import_float2.transformRESTFloatToSDKFloat,
609
- paths: [
610
- { path: "results.item.sortOrder" },
611
- { path: "results.item.image.focalPoint.x" },
612
- { path: "results.item.image.focalPoint.y" },
613
- { path: "results.item.image.unsharpMasking.amount" },
614
- { path: "results.item.image.unsharpMasking.radius" },
615
- { path: "results.item.image.unsharpMasking.threshold" }
616
- ]
533
+ paths: TRANSFORM_PATHS_4
617
534
  },
618
535
  {
619
536
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
620
- paths: [
621
- { path: "results.item.createdDate" },
622
- { path: "results.item.updatedDate" },
623
- { path: "results.item.image.imageInfo.urlExpirationDate" },
624
- { path: "results.item.video.videoInfo.urlExpirationDate" },
625
- {
626
- path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate"
627
- },
628
- {
629
- path: "results.item.video.videoInfo.posters.urlExpirationDate"
630
- }
631
- ]
537
+ paths: TRANSFORM_PATHS_5
632
538
  }
633
539
  ])
634
540
  };