@wix/auto_sdk_portfolio_project-items 1.0.50 → 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,137 @@ 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
+ ];
115
+ function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
116
+ const domainToMappings = {
117
+ "manage._base_domain_": [
118
+ {
119
+ srcPath: "/_api/portfolio-app-service",
120
+ destPath: "/api"
121
+ }
122
+ ],
123
+ "editor._base_domain_": [
124
+ {
125
+ srcPath: "/_api/portfolio-app-service",
126
+ destPath: "/api"
127
+ }
128
+ ],
129
+ "blocks._base_domain_": [
130
+ {
131
+ srcPath: "/_api/portfolio-app-service",
132
+ destPath: "/api"
133
+ }
134
+ ],
135
+ "create.editorx": [
136
+ {
137
+ srcPath: "/_api/portfolio-app-service",
138
+ destPath: "/api"
139
+ }
140
+ ],
141
+ _: [
142
+ {
143
+ srcPath: "/_api/portfolio-app-service",
144
+ destPath: "/api"
145
+ }
146
+ ],
147
+ "api._api_base_domain_": [
148
+ {
149
+ srcPath: "/_api/portfolio-app-service",
150
+ destPath: "/api"
151
+ }
152
+ ],
153
+ "www.wixapis.com": [
154
+ {
155
+ srcPath: "/portfolio/v1/settings",
156
+ destPath: "/api/v1/portfolio/settings"
157
+ },
158
+ {
159
+ srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
160
+ destPath: "/api/v1/portfolio/settings"
161
+ },
162
+ {
163
+ srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
164
+ destPath: "/api/v1/portfolio/project/items/media"
165
+ }
166
+ ],
167
+ "*.dev.wix-code.com": [
168
+ {
169
+ srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
170
+ destPath: "/api/v1/portfolio/settings"
171
+ },
172
+ {
173
+ srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
174
+ destPath: "/api/v1/portfolio/project/items/media"
175
+ }
176
+ ]
177
+ };
178
+ return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
179
+ }
49
180
  function resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl(opts) {
50
181
  const domainToMappings = {
51
182
  "manage._base_domain_": [
@@ -165,117 +296,17 @@ function resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl(opts) {
165
296
  };
166
297
  return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
167
298
  }
168
- function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
169
- const domainToMappings = {
170
- "manage._base_domain_": [
171
- {
172
- srcPath: "/_api/portfolio-app-service",
173
- destPath: "/api"
174
- }
175
- ],
176
- "editor._base_domain_": [
177
- {
178
- srcPath: "/_api/portfolio-app-service",
179
- destPath: "/api"
180
- }
181
- ],
182
- "blocks._base_domain_": [
183
- {
184
- srcPath: "/_api/portfolio-app-service",
185
- destPath: "/api"
186
- }
187
- ],
188
- "create.editorx": [
189
- {
190
- srcPath: "/_api/portfolio-app-service",
191
- destPath: "/api"
192
- }
193
- ],
194
- _: [
195
- {
196
- srcPath: "/_api/portfolio-app-service",
197
- destPath: "/api"
198
- }
199
- ],
200
- "api._api_base_domain_": [
201
- {
202
- srcPath: "/_api/portfolio-app-service",
203
- destPath: "/api"
204
- }
205
- ],
206
- "www.wixapis.com": [
207
- {
208
- srcPath: "/portfolio/v1/settings",
209
- destPath: "/api/v1/portfolio/settings"
210
- },
211
- {
212
- srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
213
- destPath: "/api/v1/portfolio/settings"
214
- },
215
- {
216
- srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
217
- destPath: "/api/v1/portfolio/project/items/media"
218
- }
219
- ],
220
- "*.dev.wix-code.com": [
221
- {
222
- srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
223
- destPath: "/api/v1/portfolio/settings"
224
- },
225
- {
226
- srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
227
- destPath: "/api/v1/portfolio/project/items/media"
228
- }
229
- ]
230
- };
231
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
232
- }
233
299
  var PACKAGE_NAME = "@wix/auto_sdk_portfolio_project-items";
234
- function generateTokenForProjectItems(payload) {
235
- function __generateTokenForProjectItems({ host }) {
236
- const metadata = {
237
- entityFqdn: "wix.portfolio.project_items.v1.project_item",
238
- method: "POST",
239
- methodFqn: "com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems",
240
- packageName: PACKAGE_NAME,
241
- migrationOptions: {
242
- optInTransformResponse: true
243
- },
244
- url: resolveComWixpressPortfolioPortfolioappMediaServiceUrl({
245
- protoPath: "/api/v1/portfolio/project/items/media",
246
- data: payload,
247
- host
248
- }),
249
- data: payload
250
- };
251
- return metadata;
252
- }
253
- return __generateTokenForProjectItems;
254
- }
255
300
  function createProjectItem(payload) {
256
301
  function __createProjectItem({ host }) {
257
302
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
258
303
  {
259
304
  transformFn: import_float.transformSDKFloatToRESTFloat,
260
- paths: [
261
- { path: "item.sortOrder" },
262
- { path: "item.image.focalPoint.x" },
263
- { path: "item.image.focalPoint.y" },
264
- { path: "item.image.unsharpMasking.amount" },
265
- { path: "item.image.unsharpMasking.radius" },
266
- { path: "item.image.unsharpMasking.threshold" }
267
- ]
305
+ paths: TRANSFORM_PATHS_0
268
306
  },
269
307
  {
270
308
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
271
- paths: [
272
- { path: "item.createdDate" },
273
- { path: "item.updatedDate" },
274
- { path: "item.image.imageInfo.urlExpirationDate" },
275
- { path: "item.video.videoInfo.urlExpirationDate" },
276
- { path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
277
- { path: "item.video.videoInfo.posters.urlExpirationDate" }
278
- ]
309
+ paths: TRANSFORM_PATHS_1
279
310
  }
280
311
  ]);
281
312
  const metadata = {
@@ -295,27 +326,11 @@ function createProjectItem(payload) {
295
326
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
296
327
  {
297
328
  transformFn: import_float2.transformRESTFloatToSDKFloat,
298
- paths: [
299
- { path: "item.sortOrder" },
300
- { path: "item.image.focalPoint.x" },
301
- { path: "item.image.focalPoint.y" },
302
- { path: "item.image.unsharpMasking.amount" },
303
- { path: "item.image.unsharpMasking.radius" },
304
- { path: "item.image.unsharpMasking.threshold" }
305
- ]
329
+ paths: TRANSFORM_PATHS_0
306
330
  },
307
331
  {
308
332
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
309
- paths: [
310
- { path: "item.createdDate" },
311
- { path: "item.updatedDate" },
312
- { path: "item.image.imageInfo.urlExpirationDate" },
313
- { path: "item.video.videoInfo.urlExpirationDate" },
314
- {
315
- path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
316
- },
317
- { path: "item.video.videoInfo.posters.urlExpirationDate" }
318
- ]
333
+ paths: TRANSFORM_PATHS_1
319
334
  }
320
335
  ])
321
336
  };
@@ -328,27 +343,11 @@ function bulkCreateProjectItems(payload) {
328
343
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
329
344
  {
330
345
  transformFn: import_float.transformSDKFloatToRESTFloat,
331
- paths: [
332
- { path: "items.sortOrder" },
333
- { path: "items.image.focalPoint.x" },
334
- { path: "items.image.focalPoint.y" },
335
- { path: "items.image.unsharpMasking.amount" },
336
- { path: "items.image.unsharpMasking.radius" },
337
- { path: "items.image.unsharpMasking.threshold" }
338
- ]
346
+ paths: TRANSFORM_PATHS_2
339
347
  },
340
348
  {
341
349
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
342
- paths: [
343
- { path: "items.createdDate" },
344
- { path: "items.updatedDate" },
345
- { path: "items.image.imageInfo.urlExpirationDate" },
346
- { path: "items.video.videoInfo.urlExpirationDate" },
347
- {
348
- path: "items.video.videoInfo.resolutions.poster.urlExpirationDate"
349
- },
350
- { path: "items.video.videoInfo.posters.urlExpirationDate" }
351
- ]
350
+ paths: TRANSFORM_PATHS_3
352
351
  }
353
352
  ]);
354
353
  const metadata = {
@@ -368,29 +367,11 @@ function bulkCreateProjectItems(payload) {
368
367
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
369
368
  {
370
369
  transformFn: import_float2.transformRESTFloatToSDKFloat,
371
- paths: [
372
- { path: "results.item.sortOrder" },
373
- { path: "results.item.image.focalPoint.x" },
374
- { path: "results.item.image.focalPoint.y" },
375
- { path: "results.item.image.unsharpMasking.amount" },
376
- { path: "results.item.image.unsharpMasking.radius" },
377
- { path: "results.item.image.unsharpMasking.threshold" }
378
- ]
370
+ paths: TRANSFORM_PATHS_4
379
371
  },
380
372
  {
381
373
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
382
- paths: [
383
- { path: "results.item.createdDate" },
384
- { path: "results.item.updatedDate" },
385
- { path: "results.item.image.imageInfo.urlExpirationDate" },
386
- { path: "results.item.video.videoInfo.urlExpirationDate" },
387
- {
388
- path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate"
389
- },
390
- {
391
- path: "results.item.video.videoInfo.posters.urlExpirationDate"
392
- }
393
- ]
374
+ paths: TRANSFORM_PATHS_5
394
375
  }
395
376
  ])
396
377
  };
@@ -417,27 +398,11 @@ function getProjectItem(payload) {
417
398
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
418
399
  {
419
400
  transformFn: import_float2.transformRESTFloatToSDKFloat,
420
- paths: [
421
- { path: "item.sortOrder" },
422
- { path: "item.image.focalPoint.x" },
423
- { path: "item.image.focalPoint.y" },
424
- { path: "item.image.unsharpMasking.amount" },
425
- { path: "item.image.unsharpMasking.radius" },
426
- { path: "item.image.unsharpMasking.threshold" }
427
- ]
401
+ paths: TRANSFORM_PATHS_0
428
402
  },
429
403
  {
430
404
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
431
- paths: [
432
- { path: "item.createdDate" },
433
- { path: "item.updatedDate" },
434
- { path: "item.image.imageInfo.urlExpirationDate" },
435
- { path: "item.video.videoInfo.urlExpirationDate" },
436
- {
437
- path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
438
- },
439
- { path: "item.video.videoInfo.posters.urlExpirationDate" }
440
- ]
405
+ paths: TRANSFORM_PATHS_1
441
406
  }
442
407
  ]),
443
408
  fallback: [
@@ -475,27 +440,11 @@ function listProjectItems(payload) {
475
440
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
476
441
  {
477
442
  transformFn: import_float2.transformRESTFloatToSDKFloat,
478
- paths: [
479
- { path: "items.sortOrder" },
480
- { path: "items.image.focalPoint.x" },
481
- { path: "items.image.focalPoint.y" },
482
- { path: "items.image.unsharpMasking.amount" },
483
- { path: "items.image.unsharpMasking.radius" },
484
- { path: "items.image.unsharpMasking.threshold" }
485
- ]
443
+ paths: TRANSFORM_PATHS_2
486
444
  },
487
445
  {
488
446
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
489
- paths: [
490
- { path: "items.createdDate" },
491
- { path: "items.updatedDate" },
492
- { path: "items.image.imageInfo.urlExpirationDate" },
493
- { path: "items.video.videoInfo.urlExpirationDate" },
494
- {
495
- path: "items.video.videoInfo.resolutions.poster.urlExpirationDate"
496
- },
497
- { path: "items.video.videoInfo.posters.urlExpirationDate" }
498
- ]
447
+ paths: TRANSFORM_PATHS_3
499
448
  }
500
449
  ])
501
450
  };
@@ -508,29 +457,15 @@ function updateProjectItem(payload) {
508
457
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
509
458
  {
510
459
  transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
511
- paths: [{ path: "mask" }]
460
+ paths: TRANSFORM_PATHS_6
512
461
  },
513
462
  {
514
463
  transformFn: import_float.transformSDKFloatToRESTFloat,
515
- paths: [
516
- { path: "item.sortOrder" },
517
- { path: "item.image.focalPoint.x" },
518
- { path: "item.image.focalPoint.y" },
519
- { path: "item.image.unsharpMasking.amount" },
520
- { path: "item.image.unsharpMasking.radius" },
521
- { path: "item.image.unsharpMasking.threshold" }
522
- ]
464
+ paths: TRANSFORM_PATHS_0
523
465
  },
524
466
  {
525
467
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
526
- paths: [
527
- { path: "item.createdDate" },
528
- { path: "item.updatedDate" },
529
- { path: "item.image.imageInfo.urlExpirationDate" },
530
- { path: "item.video.videoInfo.urlExpirationDate" },
531
- { path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
532
- { path: "item.video.videoInfo.posters.urlExpirationDate" }
533
- ]
468
+ paths: TRANSFORM_PATHS_1
534
469
  }
535
470
  ]);
536
471
  const metadata = {
@@ -550,27 +485,11 @@ function updateProjectItem(payload) {
550
485
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
551
486
  {
552
487
  transformFn: import_float2.transformRESTFloatToSDKFloat,
553
- paths: [
554
- { path: "item.sortOrder" },
555
- { path: "item.image.focalPoint.x" },
556
- { path: "item.image.focalPoint.y" },
557
- { path: "item.image.unsharpMasking.amount" },
558
- { path: "item.image.unsharpMasking.radius" },
559
- { path: "item.image.unsharpMasking.threshold" }
560
- ]
488
+ paths: TRANSFORM_PATHS_0
561
489
  },
562
490
  {
563
491
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
564
- paths: [
565
- { path: "item.createdDate" },
566
- { path: "item.updatedDate" },
567
- { path: "item.image.imageInfo.urlExpirationDate" },
568
- { path: "item.video.videoInfo.urlExpirationDate" },
569
- {
570
- path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
571
- },
572
- { path: "item.video.videoInfo.posters.urlExpirationDate" }
573
- ]
492
+ paths: TRANSFORM_PATHS_1
574
493
  }
575
494
  ])
576
495
  };
@@ -583,31 +502,15 @@ function bulkUpdateProjectItems(payload) {
583
502
  const serializedData = (0, import_transform_paths.transformPaths)(payload, [
584
503
  {
585
504
  transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
586
- paths: [{ path: "items.fieldMask" }]
505
+ paths: TRANSFORM_PATHS_7
587
506
  },
588
507
  {
589
508
  transformFn: import_float.transformSDKFloatToRESTFloat,
590
- paths: [
591
- { path: "items.item.sortOrder" },
592
- { path: "items.item.image.focalPoint.x" },
593
- { path: "items.item.image.focalPoint.y" },
594
- { path: "items.item.image.unsharpMasking.amount" },
595
- { path: "items.item.image.unsharpMasking.radius" },
596
- { path: "items.item.image.unsharpMasking.threshold" }
597
- ]
509
+ paths: TRANSFORM_PATHS_8
598
510
  },
599
511
  {
600
512
  transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
601
- paths: [
602
- { path: "items.item.createdDate" },
603
- { path: "items.item.updatedDate" },
604
- { path: "items.item.image.imageInfo.urlExpirationDate" },
605
- { path: "items.item.video.videoInfo.urlExpirationDate" },
606
- {
607
- path: "items.item.video.videoInfo.resolutions.poster.urlExpirationDate"
608
- },
609
- { path: "items.item.video.videoInfo.posters.urlExpirationDate" }
610
- ]
513
+ paths: TRANSFORM_PATHS_9
611
514
  }
612
515
  ]);
613
516
  const metadata = {
@@ -627,29 +530,11 @@ function bulkUpdateProjectItems(payload) {
627
530
  transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
628
531
  {
629
532
  transformFn: import_float2.transformRESTFloatToSDKFloat,
630
- paths: [
631
- { path: "results.item.sortOrder" },
632
- { path: "results.item.image.focalPoint.x" },
633
- { path: "results.item.image.focalPoint.y" },
634
- { path: "results.item.image.unsharpMasking.amount" },
635
- { path: "results.item.image.unsharpMasking.radius" },
636
- { path: "results.item.image.unsharpMasking.threshold" }
637
- ]
533
+ paths: TRANSFORM_PATHS_4
638
534
  },
639
535
  {
640
536
  transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
641
- paths: [
642
- { path: "results.item.createdDate" },
643
- { path: "results.item.updatedDate" },
644
- { path: "results.item.image.imageInfo.urlExpirationDate" },
645
- { path: "results.item.video.videoInfo.urlExpirationDate" },
646
- {
647
- path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate"
648
- },
649
- {
650
- path: "results.item.video.videoInfo.posters.urlExpirationDate"
651
- }
652
- ]
537
+ paths: TRANSFORM_PATHS_5
653
538
  }
654
539
  ])
655
540
  };
@@ -720,6 +605,27 @@ function duplicateProjectItems(payload) {
720
605
  }
721
606
  return __duplicateProjectItems;
722
607
  }
608
+ function generateTokenForProjectItems(payload) {
609
+ function __generateTokenForProjectItems({ host }) {
610
+ const metadata = {
611
+ entityFqdn: "wix.portfolio.project_items.v1.project_item",
612
+ method: "POST",
613
+ methodFqn: "com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems",
614
+ packageName: PACKAGE_NAME,
615
+ migrationOptions: {
616
+ optInTransformResponse: true
617
+ },
618
+ url: resolveComWixpressPortfolioPortfolioappMediaServiceUrl({
619
+ protoPath: "/api/v1/portfolio/project/items/media",
620
+ data: payload,
621
+ host
622
+ }),
623
+ data: payload
624
+ };
625
+ return metadata;
626
+ }
627
+ return __generateTokenForProjectItems;
628
+ }
723
629
 
724
630
  // src/portfolio-project-items-v1-project-item-project-items.types.ts
725
631
  var Type = /* @__PURE__ */ ((Type2) => {
@@ -734,6 +640,11 @@ var ImageType = /* @__PURE__ */ ((ImageType2) => {
734
640
  ImageType2["EXTERNAL"] = "EXTERNAL";
735
641
  return ImageType2;
736
642
  })(ImageType || {});
643
+ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
644
+ SortOrder2["ASC"] = "ASC";
645
+ SortOrder2["DESC"] = "DESC";
646
+ return SortOrder2;
647
+ })(SortOrder || {});
737
648
  var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
738
649
  WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
739
650
  WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
@@ -742,33 +653,8 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
742
653
  WebhookIdentityType2["APP"] = "APP";
743
654
  return WebhookIdentityType2;
744
655
  })(WebhookIdentityType || {});
745
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
746
- SortOrder2["ASC"] = "ASC";
747
- SortOrder2["DESC"] = "DESC";
748
- return SortOrder2;
749
- })(SortOrder || {});
750
656
 
751
657
  // src/portfolio-project-items-v1-project-item-project-items.meta.ts
752
- function generateTokenForProjectItems2() {
753
- const payload = {};
754
- const getRequestOptions = generateTokenForProjectItems(
755
- payload
756
- );
757
- const getUrl = (context) => {
758
- const { url } = getRequestOptions(context);
759
- return url;
760
- };
761
- return {
762
- getUrl,
763
- httpMethod: "POST",
764
- path: "/api/v1/portfolio/project/items/media",
765
- pathParams: {},
766
- __requestType: null,
767
- __originalRequestType: null,
768
- __responseType: null,
769
- __originalResponseType: null
770
- };
771
- }
772
658
  function createProjectItem2() {
773
659
  const payload = {};
774
660
  const getRequestOptions = createProjectItem(payload);
@@ -939,6 +825,26 @@ function duplicateProjectItems2() {
939
825
  __originalResponseType: null
940
826
  };
941
827
  }
828
+ function generateTokenForProjectItems2() {
829
+ const payload = {};
830
+ const getRequestOptions = generateTokenForProjectItems(
831
+ payload
832
+ );
833
+ const getUrl = (context) => {
834
+ const { url } = getRequestOptions(context);
835
+ return url;
836
+ };
837
+ return {
838
+ getUrl,
839
+ httpMethod: "POST",
840
+ path: "/api/v1/portfolio/project/items/media",
841
+ pathParams: {},
842
+ __requestType: null,
843
+ __originalRequestType: null,
844
+ __responseType: null,
845
+ __originalResponseType: null
846
+ };
847
+ }
942
848
  // Annotate the CommonJS export names for ESM import in node:
943
849
  0 && (module.exports = {
944
850
  ImageTypeOriginal,