@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/es/meta.mjs CHANGED
@@ -7,6 +7,72 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
7
7
  import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
8
8
  import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
9
9
  import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
10
+ var TRANSFORM_PATHS_0 = [
11
+ { path: "item.sortOrder" },
12
+ { path: "item.image.focalPoint.x" },
13
+ { path: "item.image.focalPoint.y" },
14
+ { path: "item.image.unsharpMasking.amount" },
15
+ { path: "item.image.unsharpMasking.radius" },
16
+ { path: "item.image.unsharpMasking.threshold" }
17
+ ];
18
+ var TRANSFORM_PATHS_1 = [
19
+ { path: "item.createdDate" },
20
+ { path: "item.updatedDate" },
21
+ { path: "item.image.imageInfo.urlExpirationDate" },
22
+ { path: "item.video.videoInfo.urlExpirationDate" },
23
+ { path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
24
+ { path: "item.video.videoInfo.posters.urlExpirationDate" }
25
+ ];
26
+ var TRANSFORM_PATHS_2 = [
27
+ { path: "items.sortOrder" },
28
+ { path: "items.image.focalPoint.x" },
29
+ { path: "items.image.focalPoint.y" },
30
+ { path: "items.image.unsharpMasking.amount" },
31
+ { path: "items.image.unsharpMasking.radius" },
32
+ { path: "items.image.unsharpMasking.threshold" }
33
+ ];
34
+ var TRANSFORM_PATHS_3 = [
35
+ { path: "items.createdDate" },
36
+ { path: "items.updatedDate" },
37
+ { path: "items.image.imageInfo.urlExpirationDate" },
38
+ { path: "items.video.videoInfo.urlExpirationDate" },
39
+ { path: "items.video.videoInfo.resolutions.poster.urlExpirationDate" },
40
+ { path: "items.video.videoInfo.posters.urlExpirationDate" }
41
+ ];
42
+ var TRANSFORM_PATHS_4 = [
43
+ { path: "results.item.sortOrder" },
44
+ { path: "results.item.image.focalPoint.x" },
45
+ { path: "results.item.image.focalPoint.y" },
46
+ { path: "results.item.image.unsharpMasking.amount" },
47
+ { path: "results.item.image.unsharpMasking.radius" },
48
+ { path: "results.item.image.unsharpMasking.threshold" }
49
+ ];
50
+ var TRANSFORM_PATHS_5 = [
51
+ { path: "results.item.createdDate" },
52
+ { path: "results.item.updatedDate" },
53
+ { path: "results.item.image.imageInfo.urlExpirationDate" },
54
+ { path: "results.item.video.videoInfo.urlExpirationDate" },
55
+ { path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate" },
56
+ { path: "results.item.video.videoInfo.posters.urlExpirationDate" }
57
+ ];
58
+ var TRANSFORM_PATHS_6 = [{ path: "mask" }];
59
+ var TRANSFORM_PATHS_7 = [{ path: "items.fieldMask" }];
60
+ var TRANSFORM_PATHS_8 = [
61
+ { path: "items.item.sortOrder" },
62
+ { path: "items.item.image.focalPoint.x" },
63
+ { path: "items.item.image.focalPoint.y" },
64
+ { path: "items.item.image.unsharpMasking.amount" },
65
+ { path: "items.item.image.unsharpMasking.radius" },
66
+ { path: "items.item.image.unsharpMasking.threshold" }
67
+ ];
68
+ var TRANSFORM_PATHS_9 = [
69
+ { path: "items.item.createdDate" },
70
+ { path: "items.item.updatedDate" },
71
+ { path: "items.item.image.imageInfo.urlExpirationDate" },
72
+ { path: "items.item.video.videoInfo.urlExpirationDate" },
73
+ { path: "items.item.video.videoInfo.resolutions.poster.urlExpirationDate" },
74
+ { path: "items.item.video.videoInfo.posters.urlExpirationDate" }
75
+ ];
10
76
  function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
11
77
  const domainToMappings = {
12
78
  "manage._base_domain_": [
@@ -197,25 +263,11 @@ function createProjectItem(payload) {
197
263
  const serializedData = transformPaths(payload, [
198
264
  {
199
265
  transformFn: transformSDKFloatToRESTFloat,
200
- paths: [
201
- { path: "item.sortOrder" },
202
- { path: "item.image.focalPoint.x" },
203
- { path: "item.image.focalPoint.y" },
204
- { path: "item.image.unsharpMasking.amount" },
205
- { path: "item.image.unsharpMasking.radius" },
206
- { path: "item.image.unsharpMasking.threshold" }
207
- ]
266
+ paths: TRANSFORM_PATHS_0
208
267
  },
209
268
  {
210
269
  transformFn: transformSDKTimestampToRESTTimestamp,
211
- paths: [
212
- { path: "item.createdDate" },
213
- { path: "item.updatedDate" },
214
- { path: "item.image.imageInfo.urlExpirationDate" },
215
- { path: "item.video.videoInfo.urlExpirationDate" },
216
- { path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
217
- { path: "item.video.videoInfo.posters.urlExpirationDate" }
218
- ]
270
+ paths: TRANSFORM_PATHS_1
219
271
  }
220
272
  ]);
221
273
  const metadata = {
@@ -235,27 +287,11 @@ function createProjectItem(payload) {
235
287
  transformResponse: (payload2) => transformPaths(payload2, [
236
288
  {
237
289
  transformFn: transformRESTFloatToSDKFloat,
238
- paths: [
239
- { path: "item.sortOrder" },
240
- { path: "item.image.focalPoint.x" },
241
- { path: "item.image.focalPoint.y" },
242
- { path: "item.image.unsharpMasking.amount" },
243
- { path: "item.image.unsharpMasking.radius" },
244
- { path: "item.image.unsharpMasking.threshold" }
245
- ]
290
+ paths: TRANSFORM_PATHS_0
246
291
  },
247
292
  {
248
293
  transformFn: transformRESTTimestampToSDKTimestamp,
249
- paths: [
250
- { path: "item.createdDate" },
251
- { path: "item.updatedDate" },
252
- { path: "item.image.imageInfo.urlExpirationDate" },
253
- { path: "item.video.videoInfo.urlExpirationDate" },
254
- {
255
- path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
256
- },
257
- { path: "item.video.videoInfo.posters.urlExpirationDate" }
258
- ]
294
+ paths: TRANSFORM_PATHS_1
259
295
  }
260
296
  ])
261
297
  };
@@ -268,27 +304,11 @@ function bulkCreateProjectItems(payload) {
268
304
  const serializedData = transformPaths(payload, [
269
305
  {
270
306
  transformFn: transformSDKFloatToRESTFloat,
271
- paths: [
272
- { path: "items.sortOrder" },
273
- { path: "items.image.focalPoint.x" },
274
- { path: "items.image.focalPoint.y" },
275
- { path: "items.image.unsharpMasking.amount" },
276
- { path: "items.image.unsharpMasking.radius" },
277
- { path: "items.image.unsharpMasking.threshold" }
278
- ]
307
+ paths: TRANSFORM_PATHS_2
279
308
  },
280
309
  {
281
310
  transformFn: transformSDKTimestampToRESTTimestamp,
282
- paths: [
283
- { path: "items.createdDate" },
284
- { path: "items.updatedDate" },
285
- { path: "items.image.imageInfo.urlExpirationDate" },
286
- { path: "items.video.videoInfo.urlExpirationDate" },
287
- {
288
- path: "items.video.videoInfo.resolutions.poster.urlExpirationDate"
289
- },
290
- { path: "items.video.videoInfo.posters.urlExpirationDate" }
291
- ]
311
+ paths: TRANSFORM_PATHS_3
292
312
  }
293
313
  ]);
294
314
  const metadata = {
@@ -308,29 +328,11 @@ function bulkCreateProjectItems(payload) {
308
328
  transformResponse: (payload2) => transformPaths(payload2, [
309
329
  {
310
330
  transformFn: transformRESTFloatToSDKFloat,
311
- paths: [
312
- { path: "results.item.sortOrder" },
313
- { path: "results.item.image.focalPoint.x" },
314
- { path: "results.item.image.focalPoint.y" },
315
- { path: "results.item.image.unsharpMasking.amount" },
316
- { path: "results.item.image.unsharpMasking.radius" },
317
- { path: "results.item.image.unsharpMasking.threshold" }
318
- ]
331
+ paths: TRANSFORM_PATHS_4
319
332
  },
320
333
  {
321
334
  transformFn: transformRESTTimestampToSDKTimestamp,
322
- paths: [
323
- { path: "results.item.createdDate" },
324
- { path: "results.item.updatedDate" },
325
- { path: "results.item.image.imageInfo.urlExpirationDate" },
326
- { path: "results.item.video.videoInfo.urlExpirationDate" },
327
- {
328
- path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate"
329
- },
330
- {
331
- path: "results.item.video.videoInfo.posters.urlExpirationDate"
332
- }
333
- ]
335
+ paths: TRANSFORM_PATHS_5
334
336
  }
335
337
  ])
336
338
  };
@@ -357,27 +359,11 @@ function getProjectItem(payload) {
357
359
  transformResponse: (payload2) => transformPaths(payload2, [
358
360
  {
359
361
  transformFn: transformRESTFloatToSDKFloat,
360
- paths: [
361
- { path: "item.sortOrder" },
362
- { path: "item.image.focalPoint.x" },
363
- { path: "item.image.focalPoint.y" },
364
- { path: "item.image.unsharpMasking.amount" },
365
- { path: "item.image.unsharpMasking.radius" },
366
- { path: "item.image.unsharpMasking.threshold" }
367
- ]
362
+ paths: TRANSFORM_PATHS_0
368
363
  },
369
364
  {
370
365
  transformFn: transformRESTTimestampToSDKTimestamp,
371
- paths: [
372
- { path: "item.createdDate" },
373
- { path: "item.updatedDate" },
374
- { path: "item.image.imageInfo.urlExpirationDate" },
375
- { path: "item.video.videoInfo.urlExpirationDate" },
376
- {
377
- path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
378
- },
379
- { path: "item.video.videoInfo.posters.urlExpirationDate" }
380
- ]
366
+ paths: TRANSFORM_PATHS_1
381
367
  }
382
368
  ]),
383
369
  fallback: [
@@ -415,27 +401,11 @@ function listProjectItems(payload) {
415
401
  transformResponse: (payload2) => transformPaths(payload2, [
416
402
  {
417
403
  transformFn: transformRESTFloatToSDKFloat,
418
- paths: [
419
- { path: "items.sortOrder" },
420
- { path: "items.image.focalPoint.x" },
421
- { path: "items.image.focalPoint.y" },
422
- { path: "items.image.unsharpMasking.amount" },
423
- { path: "items.image.unsharpMasking.radius" },
424
- { path: "items.image.unsharpMasking.threshold" }
425
- ]
404
+ paths: TRANSFORM_PATHS_2
426
405
  },
427
406
  {
428
407
  transformFn: transformRESTTimestampToSDKTimestamp,
429
- paths: [
430
- { path: "items.createdDate" },
431
- { path: "items.updatedDate" },
432
- { path: "items.image.imageInfo.urlExpirationDate" },
433
- { path: "items.video.videoInfo.urlExpirationDate" },
434
- {
435
- path: "items.video.videoInfo.resolutions.poster.urlExpirationDate"
436
- },
437
- { path: "items.video.videoInfo.posters.urlExpirationDate" }
438
- ]
408
+ paths: TRANSFORM_PATHS_3
439
409
  }
440
410
  ])
441
411
  };
@@ -448,29 +418,15 @@ function updateProjectItem(payload) {
448
418
  const serializedData = transformPaths(payload, [
449
419
  {
450
420
  transformFn: transformSDKFieldMaskToRESTFieldMask,
451
- paths: [{ path: "mask" }]
421
+ paths: TRANSFORM_PATHS_6
452
422
  },
453
423
  {
454
424
  transformFn: transformSDKFloatToRESTFloat,
455
- paths: [
456
- { path: "item.sortOrder" },
457
- { path: "item.image.focalPoint.x" },
458
- { path: "item.image.focalPoint.y" },
459
- { path: "item.image.unsharpMasking.amount" },
460
- { path: "item.image.unsharpMasking.radius" },
461
- { path: "item.image.unsharpMasking.threshold" }
462
- ]
425
+ paths: TRANSFORM_PATHS_0
463
426
  },
464
427
  {
465
428
  transformFn: transformSDKTimestampToRESTTimestamp,
466
- paths: [
467
- { path: "item.createdDate" },
468
- { path: "item.updatedDate" },
469
- { path: "item.image.imageInfo.urlExpirationDate" },
470
- { path: "item.video.videoInfo.urlExpirationDate" },
471
- { path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
472
- { path: "item.video.videoInfo.posters.urlExpirationDate" }
473
- ]
429
+ paths: TRANSFORM_PATHS_1
474
430
  }
475
431
  ]);
476
432
  const metadata = {
@@ -490,27 +446,11 @@ function updateProjectItem(payload) {
490
446
  transformResponse: (payload2) => transformPaths(payload2, [
491
447
  {
492
448
  transformFn: transformRESTFloatToSDKFloat,
493
- paths: [
494
- { path: "item.sortOrder" },
495
- { path: "item.image.focalPoint.x" },
496
- { path: "item.image.focalPoint.y" },
497
- { path: "item.image.unsharpMasking.amount" },
498
- { path: "item.image.unsharpMasking.radius" },
499
- { path: "item.image.unsharpMasking.threshold" }
500
- ]
449
+ paths: TRANSFORM_PATHS_0
501
450
  },
502
451
  {
503
452
  transformFn: transformRESTTimestampToSDKTimestamp,
504
- paths: [
505
- { path: "item.createdDate" },
506
- { path: "item.updatedDate" },
507
- { path: "item.image.imageInfo.urlExpirationDate" },
508
- { path: "item.video.videoInfo.urlExpirationDate" },
509
- {
510
- path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
511
- },
512
- { path: "item.video.videoInfo.posters.urlExpirationDate" }
513
- ]
453
+ paths: TRANSFORM_PATHS_1
514
454
  }
515
455
  ])
516
456
  };
@@ -523,31 +463,15 @@ function bulkUpdateProjectItems(payload) {
523
463
  const serializedData = transformPaths(payload, [
524
464
  {
525
465
  transformFn: transformSDKFieldMaskToRESTFieldMask,
526
- paths: [{ path: "items.fieldMask" }]
466
+ paths: TRANSFORM_PATHS_7
527
467
  },
528
468
  {
529
469
  transformFn: transformSDKFloatToRESTFloat,
530
- paths: [
531
- { path: "items.item.sortOrder" },
532
- { path: "items.item.image.focalPoint.x" },
533
- { path: "items.item.image.focalPoint.y" },
534
- { path: "items.item.image.unsharpMasking.amount" },
535
- { path: "items.item.image.unsharpMasking.radius" },
536
- { path: "items.item.image.unsharpMasking.threshold" }
537
- ]
470
+ paths: TRANSFORM_PATHS_8
538
471
  },
539
472
  {
540
473
  transformFn: transformSDKTimestampToRESTTimestamp,
541
- paths: [
542
- { path: "items.item.createdDate" },
543
- { path: "items.item.updatedDate" },
544
- { path: "items.item.image.imageInfo.urlExpirationDate" },
545
- { path: "items.item.video.videoInfo.urlExpirationDate" },
546
- {
547
- path: "items.item.video.videoInfo.resolutions.poster.urlExpirationDate"
548
- },
549
- { path: "items.item.video.videoInfo.posters.urlExpirationDate" }
550
- ]
474
+ paths: TRANSFORM_PATHS_9
551
475
  }
552
476
  ]);
553
477
  const metadata = {
@@ -567,29 +491,11 @@ function bulkUpdateProjectItems(payload) {
567
491
  transformResponse: (payload2) => transformPaths(payload2, [
568
492
  {
569
493
  transformFn: transformRESTFloatToSDKFloat,
570
- paths: [
571
- { path: "results.item.sortOrder" },
572
- { path: "results.item.image.focalPoint.x" },
573
- { path: "results.item.image.focalPoint.y" },
574
- { path: "results.item.image.unsharpMasking.amount" },
575
- { path: "results.item.image.unsharpMasking.radius" },
576
- { path: "results.item.image.unsharpMasking.threshold" }
577
- ]
494
+ paths: TRANSFORM_PATHS_4
578
495
  },
579
496
  {
580
497
  transformFn: transformRESTTimestampToSDKTimestamp,
581
- paths: [
582
- { path: "results.item.createdDate" },
583
- { path: "results.item.updatedDate" },
584
- { path: "results.item.image.imageInfo.urlExpirationDate" },
585
- { path: "results.item.video.videoInfo.urlExpirationDate" },
586
- {
587
- path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate"
588
- },
589
- {
590
- path: "results.item.video.videoInfo.posters.urlExpirationDate"
591
- }
592
- ]
498
+ paths: TRANSFORM_PATHS_5
593
499
  }
594
500
  ])
595
501
  };