@wix/auto_sdk_portfolio_project-items 1.0.46 → 1.0.48

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.
Files changed (49) hide show
  1. package/build/cjs/index.d.ts +10 -10
  2. package/build/cjs/index.js +124 -124
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +181 -181
  5. package/build/cjs/index.typings.js +116 -116
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +175 -175
  8. package/build/cjs/meta.js +111 -111
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/cjs/schemas.d.ts +9 -9
  11. package/build/cjs/schemas.js +400 -383
  12. package/build/cjs/schemas.js.map +1 -1
  13. package/build/es/index.d.mts +10 -10
  14. package/build/es/index.mjs +124 -124
  15. package/build/es/index.mjs.map +1 -1
  16. package/build/es/index.typings.d.mts +181 -181
  17. package/build/es/index.typings.mjs +116 -116
  18. package/build/es/index.typings.mjs.map +1 -1
  19. package/build/es/meta.d.mts +175 -175
  20. package/build/es/meta.mjs +111 -111
  21. package/build/es/meta.mjs.map +1 -1
  22. package/build/es/schemas.d.mts +9 -9
  23. package/build/es/schemas.mjs +400 -383
  24. package/build/es/schemas.mjs.map +1 -1
  25. package/build/internal/cjs/index.d.ts +10 -10
  26. package/build/internal/cjs/index.typings.d.ts +181 -181
  27. package/build/internal/cjs/meta.d.ts +217 -217
  28. package/build/internal/cjs/schemas.d.ts +9 -9
  29. package/build/internal/es/index.d.mts +10 -10
  30. package/build/internal/es/index.typings.d.mts +181 -181
  31. package/build/internal/es/meta.d.mts +217 -217
  32. package/build/internal/es/schemas.d.mts +9 -9
  33. package/package.json +2 -2
  34. package/build/internal/cjs/index.js +0 -1371
  35. package/build/internal/cjs/index.js.map +0 -1
  36. package/build/internal/cjs/index.typings.js +0 -1153
  37. package/build/internal/cjs/index.typings.js.map +0 -1
  38. package/build/internal/cjs/meta.js +0 -959
  39. package/build/internal/cjs/meta.js.map +0 -1
  40. package/build/internal/cjs/schemas.js +0 -824
  41. package/build/internal/cjs/schemas.js.map +0 -1
  42. package/build/internal/es/index.mjs +0 -1331
  43. package/build/internal/es/index.mjs.map +0 -1
  44. package/build/internal/es/index.typings.mjs +0 -1116
  45. package/build/internal/es/index.typings.mjs.map +0 -1
  46. package/build/internal/es/meta.mjs +0 -919
  47. package/build/internal/es/meta.mjs.map +0 -1
  48. package/build/internal/es/schemas.mjs +0 -768
  49. package/build/internal/es/schemas.mjs.map +0 -1
@@ -1,919 +0,0 @@
1
- // src/portfolio-project-items-v1-project-item-project-items.http.ts
2
- import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
3
- import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
4
- import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
5
- import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
6
- import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
7
- import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
8
- import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
9
- import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
10
- function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
11
- const domainToMappings = {
12
- "manage._base_domain_": [
13
- {
14
- srcPath: "/_api/portfolio-app-service",
15
- destPath: "/api"
16
- }
17
- ],
18
- "editor._base_domain_": [
19
- {
20
- srcPath: "/_api/portfolio-app-service",
21
- destPath: "/api"
22
- }
23
- ],
24
- "blocks._base_domain_": [
25
- {
26
- srcPath: "/_api/portfolio-app-service",
27
- destPath: "/api"
28
- }
29
- ],
30
- "create.editorx": [
31
- {
32
- srcPath: "/_api/portfolio-app-service",
33
- destPath: "/api"
34
- }
35
- ],
36
- _: [
37
- {
38
- srcPath: "/_api/portfolio-app-service",
39
- destPath: "/api"
40
- }
41
- ],
42
- "api._api_base_domain_": [
43
- {
44
- srcPath: "/_api/portfolio-app-service",
45
- destPath: "/api"
46
- }
47
- ],
48
- "www.wixapis.com": [
49
- {
50
- srcPath: "/portfolio/v1/settings",
51
- destPath: "/api/v1/portfolio/settings"
52
- },
53
- {
54
- srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
55
- destPath: "/api/v1/portfolio/settings"
56
- },
57
- {
58
- srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
59
- destPath: "/api/v1/portfolio/project/items/media"
60
- }
61
- ],
62
- "*.dev.wix-code.com": [
63
- {
64
- srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
65
- destPath: "/api/v1/portfolio/settings"
66
- },
67
- {
68
- srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
69
- destPath: "/api/v1/portfolio/project/items/media"
70
- }
71
- ]
72
- };
73
- return resolveUrl(Object.assign(opts, { domainToMappings }));
74
- }
75
- function resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl(opts) {
76
- const domainToMappings = {
77
- "manage._base_domain_": [
78
- {
79
- srcPath: "/_api/project-items-service",
80
- destPath: "/api"
81
- }
82
- ],
83
- "editor._base_domain_": [
84
- {
85
- srcPath: "/_api/project-items-service",
86
- destPath: "/api"
87
- }
88
- ],
89
- "blocks._base_domain_": [
90
- {
91
- srcPath: "/_api/project-items-service",
92
- destPath: "/api"
93
- }
94
- ],
95
- "create.editorx": [
96
- {
97
- srcPath: "/_api/project-items-service",
98
- destPath: "/api"
99
- }
100
- ],
101
- "*.dev.wix-code.com": [
102
- {
103
- srcPath: "/_api/project-items-service",
104
- destPath: "/api"
105
- },
106
- {
107
- srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/create",
108
- destPath: "/api/v1/bulk/portfolio/items/create"
109
- },
110
- {
111
- srcPath: "/portfolio/project-items/api/v1/items/duplicate",
112
- destPath: "/api/v1/items/duplicate"
113
- },
114
- {
115
- srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/delete",
116
- destPath: "/api/v1/bulk/portfolio/items/delete"
117
- },
118
- {
119
- srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/update",
120
- destPath: "/api/v1/bulk/portfolio/items/update"
121
- }
122
- ],
123
- "www._base_domain_": [
124
- {
125
- srcPath: "/_api/project-items-service",
126
- destPath: "/api"
127
- }
128
- ],
129
- "www.wixapis.com": [
130
- {
131
- srcPath: "/portfolio/v1/projectItems",
132
- destPath: "/api/v1/portfolio/projects"
133
- },
134
- {
135
- srcPath: "/portfolio/v1/items",
136
- destPath: "/api/v1/portfolio/items"
137
- },
138
- {
139
- srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/create",
140
- destPath: "/api/v1/bulk/portfolio/items/create"
141
- },
142
- {
143
- srcPath: "/portfolio/project-items/api/v1/items/duplicate",
144
- destPath: "/api/v1/items/duplicate"
145
- },
146
- {
147
- srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/delete",
148
- destPath: "/api/v1/bulk/portfolio/items/delete"
149
- },
150
- {
151
- srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/update",
152
- destPath: "/api/v1/bulk/portfolio/items/update"
153
- },
154
- {
155
- srcPath: "/portfolio/project-items/api/v1/portfolio/items",
156
- destPath: "/api/v1/portfolio/items"
157
- },
158
- {
159
- srcPath: "/portfolio/project-items/api/v1/portfolio/projects",
160
- destPath: "/api/v1/portfolio/projects"
161
- }
162
- ],
163
- "api._api_base_domain_": [
164
- {
165
- srcPath: "/project-items-service",
166
- destPath: ""
167
- }
168
- ],
169
- _: [
170
- {
171
- srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/create",
172
- destPath: "/api/v1/bulk/portfolio/items/create"
173
- },
174
- {
175
- srcPath: "/portfolio/project-items/api/v1/items/duplicate",
176
- destPath: "/api/v1/items/duplicate"
177
- },
178
- {
179
- srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/delete",
180
- destPath: "/api/v1/bulk/portfolio/items/delete"
181
- },
182
- {
183
- srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/update",
184
- destPath: "/api/v1/bulk/portfolio/items/update"
185
- },
186
- {
187
- srcPath: "/_api/project-items-service",
188
- destPath: "/api"
189
- }
190
- ]
191
- };
192
- return resolveUrl(Object.assign(opts, { domainToMappings }));
193
- }
194
- var PACKAGE_NAME = "@wix/auto_sdk_portfolio_project-items";
195
- function createProjectItem(payload) {
196
- function __createProjectItem({ host }) {
197
- const serializedData = transformPaths(payload, [
198
- {
199
- 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
- ]
208
- },
209
- {
210
- 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
- ]
219
- }
220
- ]);
221
- const metadata = {
222
- entityFqdn: "wix.portfolio.project_items.v1.project_item",
223
- method: "POST",
224
- methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.CreateProjectItem",
225
- packageName: PACKAGE_NAME,
226
- migrationOptions: {
227
- optInTransformResponse: true
228
- },
229
- url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
230
- protoPath: "/api/v1/portfolio/items",
231
- data: serializedData,
232
- host
233
- }),
234
- data: serializedData,
235
- transformResponse: (payload2) => transformPaths(payload2, [
236
- {
237
- 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
- ]
246
- },
247
- {
248
- 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
- ]
259
- }
260
- ])
261
- };
262
- return metadata;
263
- }
264
- return __createProjectItem;
265
- }
266
- function bulkCreateProjectItems(payload) {
267
- function __bulkCreateProjectItems({ host }) {
268
- const serializedData = transformPaths(payload, [
269
- {
270
- 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
- ]
279
- },
280
- {
281
- 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
- ]
292
- }
293
- ]);
294
- const metadata = {
295
- entityFqdn: "wix.portfolio.project_items.v1.project_item",
296
- method: "POST",
297
- methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.BulkCreateProjectItems",
298
- packageName: PACKAGE_NAME,
299
- migrationOptions: {
300
- optInTransformResponse: true
301
- },
302
- url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
303
- protoPath: "/api/v1/bulk/portfolio/items/create",
304
- data: serializedData,
305
- host
306
- }),
307
- data: serializedData,
308
- transformResponse: (payload2) => transformPaths(payload2, [
309
- {
310
- 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
- ]
319
- },
320
- {
321
- 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
- ]
334
- }
335
- ])
336
- };
337
- return metadata;
338
- }
339
- return __bulkCreateProjectItems;
340
- }
341
- function getProjectItem(payload) {
342
- function __getProjectItem({ host }) {
343
- const metadata = {
344
- entityFqdn: "wix.portfolio.project_items.v1.project_item",
345
- method: "GET",
346
- methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.GetProjectItem",
347
- packageName: PACKAGE_NAME,
348
- migrationOptions: {
349
- optInTransformResponse: true
350
- },
351
- url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
352
- protoPath: "/api/v1/portfolio/items/{itemId}",
353
- data: payload,
354
- host
355
- }),
356
- params: toURLSearchParams(payload),
357
- transformResponse: (payload2) => transformPaths(payload2, [
358
- {
359
- 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
- ]
368
- },
369
- {
370
- 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
- ]
381
- }
382
- ]),
383
- fallback: [
384
- {
385
- method: "GET",
386
- url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
387
- protoPath: "/api/v1/portfolio/items/{itemId}",
388
- data: payload,
389
- host
390
- }),
391
- params: toURLSearchParams(payload)
392
- }
393
- ]
394
- };
395
- return metadata;
396
- }
397
- return __getProjectItem;
398
- }
399
- function listProjectItems(payload) {
400
- function __listProjectItems({ host }) {
401
- const metadata = {
402
- entityFqdn: "wix.portfolio.project_items.v1.project_item",
403
- method: "GET",
404
- methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.ListProjectItems",
405
- packageName: PACKAGE_NAME,
406
- migrationOptions: {
407
- optInTransformResponse: true
408
- },
409
- url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
410
- protoPath: "/api/v1/portfolio/projects/{projectId}/items",
411
- data: payload,
412
- host
413
- }),
414
- params: toURLSearchParams(payload),
415
- transformResponse: (payload2) => transformPaths(payload2, [
416
- {
417
- 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
- ]
426
- },
427
- {
428
- 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
- ]
439
- }
440
- ])
441
- };
442
- return metadata;
443
- }
444
- return __listProjectItems;
445
- }
446
- function updateProjectItem(payload) {
447
- function __updateProjectItem({ host }) {
448
- const serializedData = transformPaths(payload, [
449
- {
450
- transformFn: transformSDKFieldMaskToRESTFieldMask,
451
- paths: [{ path: "mask" }]
452
- },
453
- {
454
- 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
- ]
463
- },
464
- {
465
- 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
- ]
474
- }
475
- ]);
476
- const metadata = {
477
- entityFqdn: "wix.portfolio.project_items.v1.project_item",
478
- method: "PATCH",
479
- methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.UpdateProjectItem",
480
- packageName: PACKAGE_NAME,
481
- migrationOptions: {
482
- optInTransformResponse: true
483
- },
484
- url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
485
- protoPath: "/api/v1/portfolio/items/{item.id}",
486
- data: serializedData,
487
- host
488
- }),
489
- data: serializedData,
490
- transformResponse: (payload2) => transformPaths(payload2, [
491
- {
492
- 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
- ]
501
- },
502
- {
503
- 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
- ]
514
- }
515
- ])
516
- };
517
- return metadata;
518
- }
519
- return __updateProjectItem;
520
- }
521
- function bulkUpdateProjectItems(payload) {
522
- function __bulkUpdateProjectItems({ host }) {
523
- const serializedData = transformPaths(payload, [
524
- {
525
- transformFn: transformSDKFieldMaskToRESTFieldMask,
526
- paths: [{ path: "items.fieldMask" }]
527
- },
528
- {
529
- 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
- ]
538
- },
539
- {
540
- 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
- ]
551
- }
552
- ]);
553
- const metadata = {
554
- entityFqdn: "wix.portfolio.project_items.v1.project_item",
555
- method: "PATCH",
556
- methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.BulkUpdateProjectItems",
557
- packageName: PACKAGE_NAME,
558
- migrationOptions: {
559
- optInTransformResponse: true
560
- },
561
- url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
562
- protoPath: "/api/v1/bulk/portfolio/items/update",
563
- data: serializedData,
564
- host
565
- }),
566
- data: serializedData,
567
- transformResponse: (payload2) => transformPaths(payload2, [
568
- {
569
- 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
- ]
578
- },
579
- {
580
- 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
- ]
593
- }
594
- ])
595
- };
596
- return metadata;
597
- }
598
- return __bulkUpdateProjectItems;
599
- }
600
- function deleteProjectItem(payload) {
601
- function __deleteProjectItem({ host }) {
602
- const metadata = {
603
- entityFqdn: "wix.portfolio.project_items.v1.project_item",
604
- method: "DELETE",
605
- methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.DeleteProjectItem",
606
- packageName: PACKAGE_NAME,
607
- migrationOptions: {
608
- optInTransformResponse: true
609
- },
610
- url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
611
- protoPath: "/api/v1/portfolio/items/{itemId}",
612
- data: payload,
613
- host
614
- }),
615
- params: toURLSearchParams(payload)
616
- };
617
- return metadata;
618
- }
619
- return __deleteProjectItem;
620
- }
621
- function bulkDeleteProjectItems(payload) {
622
- function __bulkDeleteProjectItems({ host }) {
623
- const metadata = {
624
- entityFqdn: "wix.portfolio.project_items.v1.project_item",
625
- method: "DELETE",
626
- methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.BulkDeleteProjectItems",
627
- packageName: PACKAGE_NAME,
628
- migrationOptions: {
629
- optInTransformResponse: true
630
- },
631
- url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
632
- protoPath: "/api/v1/bulk/portfolio/items/delete",
633
- data: payload,
634
- host
635
- }),
636
- params: toURLSearchParams(payload)
637
- };
638
- return metadata;
639
- }
640
- return __bulkDeleteProjectItems;
641
- }
642
- function duplicateProjectItems(payload) {
643
- function __duplicateProjectItems({ host }) {
644
- const metadata = {
645
- entityFqdn: "wix.portfolio.project_items.v1.project_item",
646
- method: "POST",
647
- methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.DuplicateProjectItems",
648
- packageName: PACKAGE_NAME,
649
- migrationOptions: {
650
- optInTransformResponse: true
651
- },
652
- url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
653
- protoPath: "/api/v1/items/duplicate",
654
- data: payload,
655
- host
656
- }),
657
- data: payload
658
- };
659
- return metadata;
660
- }
661
- return __duplicateProjectItems;
662
- }
663
- function generateTokenForProjectItems(payload) {
664
- function __generateTokenForProjectItems({ host }) {
665
- const metadata = {
666
- entityFqdn: "wix.portfolio.project_items.v1.project_item",
667
- method: "POST",
668
- methodFqn: "com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems",
669
- packageName: PACKAGE_NAME,
670
- migrationOptions: {
671
- optInTransformResponse: true
672
- },
673
- url: resolveComWixpressPortfolioPortfolioappMediaServiceUrl({
674
- protoPath: "/api/v1/portfolio/project/items/media",
675
- data: payload,
676
- host
677
- }),
678
- data: payload
679
- };
680
- return metadata;
681
- }
682
- return __generateTokenForProjectItems;
683
- }
684
-
685
- // src/portfolio-project-items-v1-project-item-project-items.types.ts
686
- var Type = /* @__PURE__ */ ((Type2) => {
687
- Type2["UNDEFINED"] = "UNDEFINED";
688
- Type2["IMAGE"] = "IMAGE";
689
- Type2["VIDEO"] = "VIDEO";
690
- return Type2;
691
- })(Type || {});
692
- var ImageType = /* @__PURE__ */ ((ImageType2) => {
693
- ImageType2["UNDEFINED"] = "UNDEFINED";
694
- ImageType2["WIX_MEDIA"] = "WIX_MEDIA";
695
- ImageType2["EXTERNAL"] = "EXTERNAL";
696
- return ImageType2;
697
- })(ImageType || {});
698
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
699
- SortOrder2["ASC"] = "ASC";
700
- SortOrder2["DESC"] = "DESC";
701
- return SortOrder2;
702
- })(SortOrder || {});
703
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
704
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
705
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
706
- WebhookIdentityType2["MEMBER"] = "MEMBER";
707
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
708
- WebhookIdentityType2["APP"] = "APP";
709
- return WebhookIdentityType2;
710
- })(WebhookIdentityType || {});
711
-
712
- // src/portfolio-project-items-v1-project-item-project-items.meta.ts
713
- function createProjectItem2() {
714
- const payload = {};
715
- const getRequestOptions = createProjectItem(payload);
716
- const getUrl = (context) => {
717
- const { url } = getRequestOptions(context);
718
- return url;
719
- };
720
- return {
721
- getUrl,
722
- httpMethod: "POST",
723
- path: "/api/v1/portfolio/items",
724
- pathParams: {},
725
- __requestType: null,
726
- __originalRequestType: null,
727
- __responseType: null,
728
- __originalResponseType: null
729
- };
730
- }
731
- function bulkCreateProjectItems2() {
732
- const payload = {};
733
- const getRequestOptions = bulkCreateProjectItems(
734
- payload
735
- );
736
- const getUrl = (context) => {
737
- const { url } = getRequestOptions(context);
738
- return url;
739
- };
740
- return {
741
- getUrl,
742
- httpMethod: "POST",
743
- path: "/api/v1/bulk/portfolio/items/create",
744
- pathParams: {},
745
- __requestType: null,
746
- __originalRequestType: null,
747
- __responseType: null,
748
- __originalResponseType: null
749
- };
750
- }
751
- function getProjectItem2() {
752
- const payload = { itemId: ":itemId" };
753
- const getRequestOptions = getProjectItem(payload);
754
- const getUrl = (context) => {
755
- const { url } = getRequestOptions(context);
756
- return url;
757
- };
758
- return {
759
- getUrl,
760
- httpMethod: "GET",
761
- path: "/api/v1/portfolio/items/{itemId}",
762
- pathParams: { itemId: "itemId" },
763
- __requestType: null,
764
- __originalRequestType: null,
765
- __responseType: null,
766
- __originalResponseType: null
767
- };
768
- }
769
- function listProjectItems2() {
770
- const payload = { projectId: ":projectId" };
771
- const getRequestOptions = listProjectItems(payload);
772
- const getUrl = (context) => {
773
- const { url } = getRequestOptions(context);
774
- return url;
775
- };
776
- return {
777
- getUrl,
778
- httpMethod: "GET",
779
- path: "/api/v1/portfolio/projects/{projectId}/items",
780
- pathParams: { projectId: "projectId" },
781
- __requestType: null,
782
- __originalRequestType: null,
783
- __responseType: null,
784
- __originalResponseType: null
785
- };
786
- }
787
- function updateProjectItem2() {
788
- const payload = { item: { id: ":itemId" } };
789
- const getRequestOptions = updateProjectItem(payload);
790
- const getUrl = (context) => {
791
- const { url } = getRequestOptions(context);
792
- return url;
793
- };
794
- return {
795
- getUrl,
796
- httpMethod: "PATCH",
797
- path: "/api/v1/portfolio/items/{item.id}",
798
- pathParams: { itemId: "itemId" },
799
- __requestType: null,
800
- __originalRequestType: null,
801
- __responseType: null,
802
- __originalResponseType: null
803
- };
804
- }
805
- function bulkUpdateProjectItems2() {
806
- const payload = {};
807
- const getRequestOptions = bulkUpdateProjectItems(
808
- payload
809
- );
810
- const getUrl = (context) => {
811
- const { url } = getRequestOptions(context);
812
- return url;
813
- };
814
- return {
815
- getUrl,
816
- httpMethod: "PATCH",
817
- path: "/api/v1/bulk/portfolio/items/update",
818
- pathParams: {},
819
- __requestType: null,
820
- __originalRequestType: null,
821
- __responseType: null,
822
- __originalResponseType: null
823
- };
824
- }
825
- function deleteProjectItem2() {
826
- const payload = { itemId: ":itemId" };
827
- const getRequestOptions = deleteProjectItem(payload);
828
- const getUrl = (context) => {
829
- const { url } = getRequestOptions(context);
830
- return url;
831
- };
832
- return {
833
- getUrl,
834
- httpMethod: "DELETE",
835
- path: "/api/v1/portfolio/items/{itemId}",
836
- pathParams: { itemId: "itemId" },
837
- __requestType: null,
838
- __originalRequestType: null,
839
- __responseType: null,
840
- __originalResponseType: null
841
- };
842
- }
843
- function bulkDeleteProjectItems2() {
844
- const payload = {};
845
- const getRequestOptions = bulkDeleteProjectItems(
846
- payload
847
- );
848
- const getUrl = (context) => {
849
- const { url } = getRequestOptions(context);
850
- return url;
851
- };
852
- return {
853
- getUrl,
854
- httpMethod: "DELETE",
855
- path: "/api/v1/bulk/portfolio/items/delete",
856
- pathParams: {},
857
- __requestType: null,
858
- __originalRequestType: null,
859
- __responseType: null,
860
- __originalResponseType: null
861
- };
862
- }
863
- function duplicateProjectItems2() {
864
- const payload = {};
865
- const getRequestOptions = duplicateProjectItems(
866
- payload
867
- );
868
- const getUrl = (context) => {
869
- const { url } = getRequestOptions(context);
870
- return url;
871
- };
872
- return {
873
- getUrl,
874
- httpMethod: "POST",
875
- path: "/api/v1/items/duplicate",
876
- pathParams: {},
877
- __requestType: null,
878
- __originalRequestType: null,
879
- __responseType: null,
880
- __originalResponseType: null
881
- };
882
- }
883
- function generateTokenForProjectItems2() {
884
- const payload = {};
885
- const getRequestOptions = generateTokenForProjectItems(
886
- payload
887
- );
888
- const getUrl = (context) => {
889
- const { url } = getRequestOptions(context);
890
- return url;
891
- };
892
- return {
893
- getUrl,
894
- httpMethod: "POST",
895
- path: "/api/v1/portfolio/project/items/media",
896
- pathParams: {},
897
- __requestType: null,
898
- __originalRequestType: null,
899
- __responseType: null,
900
- __originalResponseType: null
901
- };
902
- }
903
- export {
904
- ImageType as ImageTypeOriginal,
905
- SortOrder as SortOrderOriginal,
906
- Type as TypeOriginal,
907
- WebhookIdentityType as WebhookIdentityTypeOriginal,
908
- bulkCreateProjectItems2 as bulkCreateProjectItems,
909
- bulkDeleteProjectItems2 as bulkDeleteProjectItems,
910
- bulkUpdateProjectItems2 as bulkUpdateProjectItems,
911
- createProjectItem2 as createProjectItem,
912
- deleteProjectItem2 as deleteProjectItem,
913
- duplicateProjectItems2 as duplicateProjectItems,
914
- generateTokenForProjectItems2 as generateTokenForProjectItems,
915
- getProjectItem2 as getProjectItem,
916
- listProjectItems2 as listProjectItems,
917
- updateProjectItem2 as updateProjectItem
918
- };
919
- //# sourceMappingURL=meta.mjs.map