@wix/auto_sdk_portfolio_project-items 1.0.51 → 1.0.53

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,71 +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
- function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
50
- const domainToMappings = {
51
- "manage._base_domain_": [
52
- {
53
- srcPath: "/_api/portfolio-app-service",
54
- destPath: "/api"
55
- }
56
- ],
57
- "editor._base_domain_": [
58
- {
59
- srcPath: "/_api/portfolio-app-service",
60
- destPath: "/api"
61
- }
62
- ],
63
- "blocks._base_domain_": [
64
- {
65
- srcPath: "/_api/portfolio-app-service",
66
- destPath: "/api"
67
- }
68
- ],
69
- "create.editorx": [
70
- {
71
- srcPath: "/_api/portfolio-app-service",
72
- destPath: "/api"
73
- }
74
- ],
75
- _: [
76
- {
77
- srcPath: "/_api/portfolio-app-service",
78
- destPath: "/api"
79
- }
80
- ],
81
- "api._api_base_domain_": [
82
- {
83
- srcPath: "/_api/portfolio-app-service",
84
- destPath: "/api"
85
- }
86
- ],
87
- "www.wixapis.com": [
88
- {
89
- srcPath: "/portfolio/v1/settings",
90
- destPath: "/api/v1/portfolio/settings"
91
- },
92
- {
93
- srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
94
- destPath: "/api/v1/portfolio/settings"
95
- },
96
- {
97
- srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
98
- destPath: "/api/v1/portfolio/project/items/media"
99
- }
100
- ],
101
- "*.dev.wix-code.com": [
102
- {
103
- srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
104
- destPath: "/api/v1/portfolio/settings"
105
- },
106
- {
107
- srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
108
- destPath: "/api/v1/portfolio/project/items/media"
109
- }
110
- ]
111
- };
112
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
113
- }
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
+ ];
114
115
  function resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl(opts) {
115
116
  const domainToMappings = {
116
117
  "manage._base_domain_": [
@@ -230,31 +231,103 @@ function resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl(opts) {
230
231
  };
231
232
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
232
233
  }
234
+ function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
235
+ const domainToMappings = {
236
+ "manage._base_domain_": [
237
+ {
238
+ srcPath: "/_api/portfolio-app-service",
239
+ destPath: "/api"
240
+ }
241
+ ],
242
+ "editor._base_domain_": [
243
+ {
244
+ srcPath: "/_api/portfolio-app-service",
245
+ destPath: "/api"
246
+ }
247
+ ],
248
+ "blocks._base_domain_": [
249
+ {
250
+ srcPath: "/_api/portfolio-app-service",
251
+ destPath: "/api"
252
+ }
253
+ ],
254
+ "create.editorx": [
255
+ {
256
+ srcPath: "/_api/portfolio-app-service",
257
+ destPath: "/api"
258
+ }
259
+ ],
260
+ _: [
261
+ {
262
+ srcPath: "/_api/portfolio-app-service",
263
+ destPath: "/api"
264
+ }
265
+ ],
266
+ "api._api_base_domain_": [
267
+ {
268
+ srcPath: "/_api/portfolio-app-service",
269
+ destPath: "/api"
270
+ }
271
+ ],
272
+ "www.wixapis.com": [
273
+ {
274
+ srcPath: "/portfolio/v1/settings",
275
+ destPath: "/api/v1/portfolio/settings"
276
+ },
277
+ {
278
+ srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
279
+ destPath: "/api/v1/portfolio/settings"
280
+ },
281
+ {
282
+ srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
283
+ destPath: "/api/v1/portfolio/project/items/media"
284
+ }
285
+ ],
286
+ "*.dev.wix-code.com": [
287
+ {
288
+ srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
289
+ destPath: "/api/v1/portfolio/settings"
290
+ },
291
+ {
292
+ srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
293
+ destPath: "/api/v1/portfolio/project/items/media"
294
+ }
295
+ ]
296
+ };
297
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
298
+ }
233
299
  var PACKAGE_NAME = "@wix/auto_sdk_portfolio_project-items";
300
+ function generateTokenForProjectItems(payload) {
301
+ function __generateTokenForProjectItems({ host }) {
302
+ const metadata = {
303
+ entityFqdn: "wix.portfolio.project_items.v1.project_item",
304
+ method: "POST",
305
+ methodFqn: "com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems",
306
+ packageName: PACKAGE_NAME,
307
+ migrationOptions: {
308
+ optInTransformResponse: true
309
+ },
310
+ url: resolveComWixpressPortfolioPortfolioappMediaServiceUrl({
311
+ protoPath: "/api/v1/portfolio/project/items/media",
312
+ data: payload,
313
+ host
314
+ }),
315
+ data: payload
316
+ };
317
+ return metadata;
318
+ }
319
+ return __generateTokenForProjectItems;
320
+ }
234
321
  function createProjectItem(payload) {
235
322
  function __createProjectItem({ host }) {
236
323
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
237
324
  {
238
325
  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
- ]
326
+ paths: TRANSFORM_PATHS_0
247
327
  },
248
328
  {
249
329
  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
- ]
330
+ paths: TRANSFORM_PATHS_1
258
331
  }
259
332
  ]);
260
333
  const metadata = {
@@ -274,27 +347,11 @@ function createProjectItem(payload) {
274
347
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
275
348
  {
276
349
  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
- ]
350
+ paths: TRANSFORM_PATHS_0
285
351
  },
286
352
  {
287
353
  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
- ]
354
+ paths: TRANSFORM_PATHS_1
298
355
  }
299
356
  ])
300
357
  };
@@ -307,27 +364,11 @@ function bulkCreateProjectItems(payload) {
307
364
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
308
365
  {
309
366
  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
- ]
367
+ paths: TRANSFORM_PATHS_2
318
368
  },
319
369
  {
320
370
  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
- ]
371
+ paths: TRANSFORM_PATHS_3
331
372
  }
332
373
  ]);
333
374
  const metadata = {
@@ -347,29 +388,11 @@ function bulkCreateProjectItems(payload) {
347
388
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
348
389
  {
349
390
  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
- ]
391
+ paths: TRANSFORM_PATHS_4
358
392
  },
359
393
  {
360
394
  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
- ]
395
+ paths: TRANSFORM_PATHS_5
373
396
  }
374
397
  ])
375
398
  };
@@ -396,27 +419,11 @@ function getProjectItem(payload) {
396
419
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
397
420
  {
398
421
  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
- ]
422
+ paths: TRANSFORM_PATHS_0
407
423
  },
408
424
  {
409
425
  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
- ]
426
+ paths: TRANSFORM_PATHS_1
420
427
  }
421
428
  ]),
422
429
  fallback: [
@@ -454,27 +461,11 @@ function listProjectItems(payload) {
454
461
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
455
462
  {
456
463
  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
- ]
464
+ paths: TRANSFORM_PATHS_2
465
465
  },
466
466
  {
467
467
  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
- ]
468
+ paths: TRANSFORM_PATHS_3
478
469
  }
479
470
  ])
480
471
  };
@@ -487,29 +478,15 @@ function updateProjectItem(payload) {
487
478
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
488
479
  {
489
480
  transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
490
- paths: [{ path: "mask" }]
481
+ paths: TRANSFORM_PATHS_6
491
482
  },
492
483
  {
493
484
  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
- ]
485
+ paths: TRANSFORM_PATHS_0
502
486
  },
503
487
  {
504
488
  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
- ]
489
+ paths: TRANSFORM_PATHS_1
513
490
  }
514
491
  ]);
515
492
  const metadata = {
@@ -529,27 +506,11 @@ function updateProjectItem(payload) {
529
506
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
530
507
  {
531
508
  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
- ]
509
+ paths: TRANSFORM_PATHS_0
540
510
  },
541
511
  {
542
512
  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
- ]
513
+ paths: TRANSFORM_PATHS_1
553
514
  }
554
515
  ])
555
516
  };
@@ -562,31 +523,15 @@ function bulkUpdateProjectItems(payload) {
562
523
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
563
524
  {
564
525
  transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
565
- paths: [{ path: "items.fieldMask" }]
526
+ paths: TRANSFORM_PATHS_7
566
527
  },
567
528
  {
568
529
  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
- ]
530
+ paths: TRANSFORM_PATHS_8
577
531
  },
578
532
  {
579
533
  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
- ]
534
+ paths: TRANSFORM_PATHS_9
590
535
  }
591
536
  ]);
592
537
  const metadata = {
@@ -606,29 +551,11 @@ function bulkUpdateProjectItems(payload) {
606
551
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
607
552
  {
608
553
  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
- ]
554
+ paths: TRANSFORM_PATHS_4
617
555
  },
618
556
  {
619
557
  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
- ]
558
+ paths: TRANSFORM_PATHS_5
632
559
  }
633
560
  ])
634
561
  };
@@ -699,27 +626,6 @@ function duplicateProjectItems(payload) {
699
626
  }
700
627
  return __duplicateProjectItems;
701
628
  }
702
- function generateTokenForProjectItems(payload) {
703
- function __generateTokenForProjectItems({ host }) {
704
- const metadata = {
705
- entityFqdn: "wix.portfolio.project_items.v1.project_item",
706
- method: "POST",
707
- methodFqn: "com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems",
708
- packageName: PACKAGE_NAME,
709
- migrationOptions: {
710
- optInTransformResponse: true
711
- },
712
- url: resolveComWixpressPortfolioPortfolioappMediaServiceUrl({
713
- protoPath: "/api/v1/portfolio/project/items/media",
714
- data: payload,
715
- host
716
- }),
717
- data: payload
718
- };
719
- return metadata;
720
- }
721
- return __generateTokenForProjectItems;
722
- }
723
629
 
724
630
  // src/portfolio-project-items-v1-project-item-project-items.types.ts
725
631
  var Type = /* @__PURE__ */ ((Type2) => {
@@ -734,11 +640,6 @@ var ImageType = /* @__PURE__ */ ((ImageType2) => {
734
640
  ImageType2["EXTERNAL"] = "EXTERNAL";
735
641
  return ImageType2;
736
642
  })(ImageType || {});
737
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
738
- SortOrder2["ASC"] = "ASC";
739
- SortOrder2["DESC"] = "DESC";
740
- return SortOrder2;
741
- })(SortOrder || {});
742
643
  var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
743
644
  WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
744
645
  WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
@@ -747,8 +648,33 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
747
648
  WebhookIdentityType2["APP"] = "APP";
748
649
  return WebhookIdentityType2;
749
650
  })(WebhookIdentityType || {});
651
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
652
+ SortOrder2["ASC"] = "ASC";
653
+ SortOrder2["DESC"] = "DESC";
654
+ return SortOrder2;
655
+ })(SortOrder || {});
750
656
 
751
657
  // src/portfolio-project-items-v1-project-item-project-items.meta.ts
658
+ function generateTokenForProjectItems2() {
659
+ const payload = {};
660
+ const getRequestOptions = generateTokenForProjectItems(
661
+ payload
662
+ );
663
+ const getUrl = (context) => {
664
+ const { url } = getRequestOptions(context);
665
+ return url;
666
+ };
667
+ return {
668
+ getUrl,
669
+ httpMethod: "POST",
670
+ path: "/api/v1/portfolio/project/items/media",
671
+ pathParams: {},
672
+ __requestType: null,
673
+ __originalRequestType: null,
674
+ __responseType: null,
675
+ __originalResponseType: null
676
+ };
677
+ }
752
678
  function createProjectItem2() {
753
679
  const payload = {};
754
680
  const getRequestOptions = createProjectItem(payload);
@@ -919,26 +845,6 @@ function duplicateProjectItems2() {
919
845
  __originalResponseType: null
920
846
  };
921
847
  }
922
- function generateTokenForProjectItems2() {
923
- const payload = {};
924
- const getRequestOptions = generateTokenForProjectItems(
925
- payload
926
- );
927
- const getUrl = (context) => {
928
- const { url } = getRequestOptions(context);
929
- return url;
930
- };
931
- return {
932
- getUrl,
933
- httpMethod: "POST",
934
- path: "/api/v1/portfolio/project/items/media",
935
- pathParams: {},
936
- __requestType: null,
937
- __originalRequestType: null,
938
- __responseType: null,
939
- __originalResponseType: null
940
- };
941
- }
942
848
  // Annotate the CommonJS export names for ESM import in node:
943
849
  0 && (module.exports = {
944
850
  ImageTypeOriginal,