@wix/auto_sdk_portfolio_project-items 1.0.46 → 1.0.47

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.
@@ -1,959 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // meta.ts
21
- var meta_exports = {};
22
- __export(meta_exports, {
23
- ImageTypeOriginal: () => ImageType,
24
- SortOrderOriginal: () => SortOrder,
25
- TypeOriginal: () => Type,
26
- WebhookIdentityTypeOriginal: () => WebhookIdentityType,
27
- bulkCreateProjectItems: () => bulkCreateProjectItems2,
28
- bulkDeleteProjectItems: () => bulkDeleteProjectItems2,
29
- bulkUpdateProjectItems: () => bulkUpdateProjectItems2,
30
- createProjectItem: () => createProjectItem2,
31
- deleteProjectItem: () => deleteProjectItem2,
32
- duplicateProjectItems: () => duplicateProjectItems2,
33
- generateTokenForProjectItems: () => generateTokenForProjectItems2,
34
- getProjectItem: () => getProjectItem2,
35
- listProjectItems: () => listProjectItems2,
36
- updateProjectItem: () => updateProjectItem2
37
- });
38
- module.exports = __toCommonJS(meta_exports);
39
-
40
- // src/portfolio-project-items-v1-project-item-project-items.http.ts
41
- var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
42
- var import_float = require("@wix/sdk-runtime/transformations/float");
43
- var import_float2 = require("@wix/sdk-runtime/transformations/float");
44
- var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
45
- var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
46
- var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
47
- var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
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
- }
114
- function resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl(opts) {
115
- const domainToMappings = {
116
- "manage._base_domain_": [
117
- {
118
- srcPath: "/_api/project-items-service",
119
- destPath: "/api"
120
- }
121
- ],
122
- "editor._base_domain_": [
123
- {
124
- srcPath: "/_api/project-items-service",
125
- destPath: "/api"
126
- }
127
- ],
128
- "blocks._base_domain_": [
129
- {
130
- srcPath: "/_api/project-items-service",
131
- destPath: "/api"
132
- }
133
- ],
134
- "create.editorx": [
135
- {
136
- srcPath: "/_api/project-items-service",
137
- destPath: "/api"
138
- }
139
- ],
140
- "*.dev.wix-code.com": [
141
- {
142
- srcPath: "/_api/project-items-service",
143
- destPath: "/api"
144
- },
145
- {
146
- srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/create",
147
- destPath: "/api/v1/bulk/portfolio/items/create"
148
- },
149
- {
150
- srcPath: "/portfolio/project-items/api/v1/items/duplicate",
151
- destPath: "/api/v1/items/duplicate"
152
- },
153
- {
154
- srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/delete",
155
- destPath: "/api/v1/bulk/portfolio/items/delete"
156
- },
157
- {
158
- srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/update",
159
- destPath: "/api/v1/bulk/portfolio/items/update"
160
- }
161
- ],
162
- "www._base_domain_": [
163
- {
164
- srcPath: "/_api/project-items-service",
165
- destPath: "/api"
166
- }
167
- ],
168
- "www.wixapis.com": [
169
- {
170
- srcPath: "/portfolio/v1/projectItems",
171
- destPath: "/api/v1/portfolio/projects"
172
- },
173
- {
174
- srcPath: "/portfolio/v1/items",
175
- destPath: "/api/v1/portfolio/items"
176
- },
177
- {
178
- srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/create",
179
- destPath: "/api/v1/bulk/portfolio/items/create"
180
- },
181
- {
182
- srcPath: "/portfolio/project-items/api/v1/items/duplicate",
183
- destPath: "/api/v1/items/duplicate"
184
- },
185
- {
186
- srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/delete",
187
- destPath: "/api/v1/bulk/portfolio/items/delete"
188
- },
189
- {
190
- srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/update",
191
- destPath: "/api/v1/bulk/portfolio/items/update"
192
- },
193
- {
194
- srcPath: "/portfolio/project-items/api/v1/portfolio/items",
195
- destPath: "/api/v1/portfolio/items"
196
- },
197
- {
198
- srcPath: "/portfolio/project-items/api/v1/portfolio/projects",
199
- destPath: "/api/v1/portfolio/projects"
200
- }
201
- ],
202
- "api._api_base_domain_": [
203
- {
204
- srcPath: "/project-items-service",
205
- destPath: ""
206
- }
207
- ],
208
- _: [
209
- {
210
- srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/create",
211
- destPath: "/api/v1/bulk/portfolio/items/create"
212
- },
213
- {
214
- srcPath: "/portfolio/project-items/api/v1/items/duplicate",
215
- destPath: "/api/v1/items/duplicate"
216
- },
217
- {
218
- srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/delete",
219
- destPath: "/api/v1/bulk/portfolio/items/delete"
220
- },
221
- {
222
- srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/update",
223
- destPath: "/api/v1/bulk/portfolio/items/update"
224
- },
225
- {
226
- srcPath: "/_api/project-items-service",
227
- destPath: "/api"
228
- }
229
- ]
230
- };
231
- return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
232
- }
233
- var PACKAGE_NAME = "@wix/auto_sdk_portfolio_project-items";
234
- function createProjectItem(payload) {
235
- function __createProjectItem({ host }) {
236
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
237
- {
238
- 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
- ]
247
- },
248
- {
249
- 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
- ]
258
- }
259
- ]);
260
- const metadata = {
261
- entityFqdn: "wix.portfolio.project_items.v1.project_item",
262
- method: "POST",
263
- methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.CreateProjectItem",
264
- packageName: PACKAGE_NAME,
265
- migrationOptions: {
266
- optInTransformResponse: true
267
- },
268
- url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
269
- protoPath: "/api/v1/portfolio/items",
270
- data: serializedData,
271
- host
272
- }),
273
- data: serializedData,
274
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
275
- {
276
- 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
- ]
285
- },
286
- {
287
- 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
- ]
298
- }
299
- ])
300
- };
301
- return metadata;
302
- }
303
- return __createProjectItem;
304
- }
305
- function bulkCreateProjectItems(payload) {
306
- function __bulkCreateProjectItems({ host }) {
307
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
308
- {
309
- 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
- ]
318
- },
319
- {
320
- 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
- ]
331
- }
332
- ]);
333
- const metadata = {
334
- entityFqdn: "wix.portfolio.project_items.v1.project_item",
335
- method: "POST",
336
- methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.BulkCreateProjectItems",
337
- packageName: PACKAGE_NAME,
338
- migrationOptions: {
339
- optInTransformResponse: true
340
- },
341
- url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
342
- protoPath: "/api/v1/bulk/portfolio/items/create",
343
- data: serializedData,
344
- host
345
- }),
346
- data: serializedData,
347
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
348
- {
349
- 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
- ]
358
- },
359
- {
360
- 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
- ]
373
- }
374
- ])
375
- };
376
- return metadata;
377
- }
378
- return __bulkCreateProjectItems;
379
- }
380
- function getProjectItem(payload) {
381
- function __getProjectItem({ host }) {
382
- const metadata = {
383
- entityFqdn: "wix.portfolio.project_items.v1.project_item",
384
- method: "GET",
385
- methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.GetProjectItem",
386
- packageName: PACKAGE_NAME,
387
- migrationOptions: {
388
- optInTransformResponse: true
389
- },
390
- url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
391
- protoPath: "/api/v1/portfolio/items/{itemId}",
392
- data: payload,
393
- host
394
- }),
395
- params: (0, import_rest_modules.toURLSearchParams)(payload),
396
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
397
- {
398
- 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
- ]
407
- },
408
- {
409
- 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
- ]
420
- }
421
- ]),
422
- fallback: [
423
- {
424
- method: "GET",
425
- url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
426
- protoPath: "/api/v1/portfolio/items/{itemId}",
427
- data: payload,
428
- host
429
- }),
430
- params: (0, import_rest_modules.toURLSearchParams)(payload)
431
- }
432
- ]
433
- };
434
- return metadata;
435
- }
436
- return __getProjectItem;
437
- }
438
- function listProjectItems(payload) {
439
- function __listProjectItems({ host }) {
440
- const metadata = {
441
- entityFqdn: "wix.portfolio.project_items.v1.project_item",
442
- method: "GET",
443
- methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.ListProjectItems",
444
- packageName: PACKAGE_NAME,
445
- migrationOptions: {
446
- optInTransformResponse: true
447
- },
448
- url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
449
- protoPath: "/api/v1/portfolio/projects/{projectId}/items",
450
- data: payload,
451
- host
452
- }),
453
- params: (0, import_rest_modules.toURLSearchParams)(payload),
454
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
455
- {
456
- 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
- ]
465
- },
466
- {
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
- ]
478
- }
479
- ])
480
- };
481
- return metadata;
482
- }
483
- return __listProjectItems;
484
- }
485
- function updateProjectItem(payload) {
486
- function __updateProjectItem({ host }) {
487
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
488
- {
489
- transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
490
- paths: [{ path: "mask" }]
491
- },
492
- {
493
- 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
- ]
502
- },
503
- {
504
- 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
- ]
513
- }
514
- ]);
515
- const metadata = {
516
- entityFqdn: "wix.portfolio.project_items.v1.project_item",
517
- method: "PATCH",
518
- methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.UpdateProjectItem",
519
- packageName: PACKAGE_NAME,
520
- migrationOptions: {
521
- optInTransformResponse: true
522
- },
523
- url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
524
- protoPath: "/api/v1/portfolio/items/{item.id}",
525
- data: serializedData,
526
- host
527
- }),
528
- data: serializedData,
529
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
530
- {
531
- 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
- ]
540
- },
541
- {
542
- 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
- ]
553
- }
554
- ])
555
- };
556
- return metadata;
557
- }
558
- return __updateProjectItem;
559
- }
560
- function bulkUpdateProjectItems(payload) {
561
- function __bulkUpdateProjectItems({ host }) {
562
- const serializedData = (0, import_transform_paths.transformPaths)(payload, [
563
- {
564
- transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
565
- paths: [{ path: "items.fieldMask" }]
566
- },
567
- {
568
- 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
- ]
577
- },
578
- {
579
- 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
- ]
590
- }
591
- ]);
592
- const metadata = {
593
- entityFqdn: "wix.portfolio.project_items.v1.project_item",
594
- method: "PATCH",
595
- methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.BulkUpdateProjectItems",
596
- packageName: PACKAGE_NAME,
597
- migrationOptions: {
598
- optInTransformResponse: true
599
- },
600
- url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
601
- protoPath: "/api/v1/bulk/portfolio/items/update",
602
- data: serializedData,
603
- host
604
- }),
605
- data: serializedData,
606
- transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
607
- {
608
- 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
- ]
617
- },
618
- {
619
- 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
- ]
632
- }
633
- ])
634
- };
635
- return metadata;
636
- }
637
- return __bulkUpdateProjectItems;
638
- }
639
- function deleteProjectItem(payload) {
640
- function __deleteProjectItem({ host }) {
641
- const metadata = {
642
- entityFqdn: "wix.portfolio.project_items.v1.project_item",
643
- method: "DELETE",
644
- methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.DeleteProjectItem",
645
- packageName: PACKAGE_NAME,
646
- migrationOptions: {
647
- optInTransformResponse: true
648
- },
649
- url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
650
- protoPath: "/api/v1/portfolio/items/{itemId}",
651
- data: payload,
652
- host
653
- }),
654
- params: (0, import_rest_modules.toURLSearchParams)(payload)
655
- };
656
- return metadata;
657
- }
658
- return __deleteProjectItem;
659
- }
660
- function bulkDeleteProjectItems(payload) {
661
- function __bulkDeleteProjectItems({ host }) {
662
- const metadata = {
663
- entityFqdn: "wix.portfolio.project_items.v1.project_item",
664
- method: "DELETE",
665
- methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.BulkDeleteProjectItems",
666
- packageName: PACKAGE_NAME,
667
- migrationOptions: {
668
- optInTransformResponse: true
669
- },
670
- url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
671
- protoPath: "/api/v1/bulk/portfolio/items/delete",
672
- data: payload,
673
- host
674
- }),
675
- params: (0, import_rest_modules.toURLSearchParams)(payload)
676
- };
677
- return metadata;
678
- }
679
- return __bulkDeleteProjectItems;
680
- }
681
- function duplicateProjectItems(payload) {
682
- function __duplicateProjectItems({ host }) {
683
- const metadata = {
684
- entityFqdn: "wix.portfolio.project_items.v1.project_item",
685
- method: "POST",
686
- methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.DuplicateProjectItems",
687
- packageName: PACKAGE_NAME,
688
- migrationOptions: {
689
- optInTransformResponse: true
690
- },
691
- url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
692
- protoPath: "/api/v1/items/duplicate",
693
- data: payload,
694
- host
695
- }),
696
- data: payload
697
- };
698
- return metadata;
699
- }
700
- return __duplicateProjectItems;
701
- }
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
-
724
- // src/portfolio-project-items-v1-project-item-project-items.types.ts
725
- var Type = /* @__PURE__ */ ((Type2) => {
726
- Type2["UNDEFINED"] = "UNDEFINED";
727
- Type2["IMAGE"] = "IMAGE";
728
- Type2["VIDEO"] = "VIDEO";
729
- return Type2;
730
- })(Type || {});
731
- var ImageType = /* @__PURE__ */ ((ImageType2) => {
732
- ImageType2["UNDEFINED"] = "UNDEFINED";
733
- ImageType2["WIX_MEDIA"] = "WIX_MEDIA";
734
- ImageType2["EXTERNAL"] = "EXTERNAL";
735
- return ImageType2;
736
- })(ImageType || {});
737
- var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
738
- SortOrder2["ASC"] = "ASC";
739
- SortOrder2["DESC"] = "DESC";
740
- return SortOrder2;
741
- })(SortOrder || {});
742
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
743
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
744
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
745
- WebhookIdentityType2["MEMBER"] = "MEMBER";
746
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
747
- WebhookIdentityType2["APP"] = "APP";
748
- return WebhookIdentityType2;
749
- })(WebhookIdentityType || {});
750
-
751
- // src/portfolio-project-items-v1-project-item-project-items.meta.ts
752
- function createProjectItem2() {
753
- const payload = {};
754
- const getRequestOptions = createProjectItem(payload);
755
- const getUrl = (context) => {
756
- const { url } = getRequestOptions(context);
757
- return url;
758
- };
759
- return {
760
- getUrl,
761
- httpMethod: "POST",
762
- path: "/api/v1/portfolio/items",
763
- pathParams: {},
764
- __requestType: null,
765
- __originalRequestType: null,
766
- __responseType: null,
767
- __originalResponseType: null
768
- };
769
- }
770
- function bulkCreateProjectItems2() {
771
- const payload = {};
772
- const getRequestOptions = bulkCreateProjectItems(
773
- payload
774
- );
775
- const getUrl = (context) => {
776
- const { url } = getRequestOptions(context);
777
- return url;
778
- };
779
- return {
780
- getUrl,
781
- httpMethod: "POST",
782
- path: "/api/v1/bulk/portfolio/items/create",
783
- pathParams: {},
784
- __requestType: null,
785
- __originalRequestType: null,
786
- __responseType: null,
787
- __originalResponseType: null
788
- };
789
- }
790
- function getProjectItem2() {
791
- const payload = { itemId: ":itemId" };
792
- const getRequestOptions = getProjectItem(payload);
793
- const getUrl = (context) => {
794
- const { url } = getRequestOptions(context);
795
- return url;
796
- };
797
- return {
798
- getUrl,
799
- httpMethod: "GET",
800
- path: "/api/v1/portfolio/items/{itemId}",
801
- pathParams: { itemId: "itemId" },
802
- __requestType: null,
803
- __originalRequestType: null,
804
- __responseType: null,
805
- __originalResponseType: null
806
- };
807
- }
808
- function listProjectItems2() {
809
- const payload = { projectId: ":projectId" };
810
- const getRequestOptions = listProjectItems(payload);
811
- const getUrl = (context) => {
812
- const { url } = getRequestOptions(context);
813
- return url;
814
- };
815
- return {
816
- getUrl,
817
- httpMethod: "GET",
818
- path: "/api/v1/portfolio/projects/{projectId}/items",
819
- pathParams: { projectId: "projectId" },
820
- __requestType: null,
821
- __originalRequestType: null,
822
- __responseType: null,
823
- __originalResponseType: null
824
- };
825
- }
826
- function updateProjectItem2() {
827
- const payload = { item: { id: ":itemId" } };
828
- const getRequestOptions = updateProjectItem(payload);
829
- const getUrl = (context) => {
830
- const { url } = getRequestOptions(context);
831
- return url;
832
- };
833
- return {
834
- getUrl,
835
- httpMethod: "PATCH",
836
- path: "/api/v1/portfolio/items/{item.id}",
837
- pathParams: { itemId: "itemId" },
838
- __requestType: null,
839
- __originalRequestType: null,
840
- __responseType: null,
841
- __originalResponseType: null
842
- };
843
- }
844
- function bulkUpdateProjectItems2() {
845
- const payload = {};
846
- const getRequestOptions = bulkUpdateProjectItems(
847
- payload
848
- );
849
- const getUrl = (context) => {
850
- const { url } = getRequestOptions(context);
851
- return url;
852
- };
853
- return {
854
- getUrl,
855
- httpMethod: "PATCH",
856
- path: "/api/v1/bulk/portfolio/items/update",
857
- pathParams: {},
858
- __requestType: null,
859
- __originalRequestType: null,
860
- __responseType: null,
861
- __originalResponseType: null
862
- };
863
- }
864
- function deleteProjectItem2() {
865
- const payload = { itemId: ":itemId" };
866
- const getRequestOptions = deleteProjectItem(payload);
867
- const getUrl = (context) => {
868
- const { url } = getRequestOptions(context);
869
- return url;
870
- };
871
- return {
872
- getUrl,
873
- httpMethod: "DELETE",
874
- path: "/api/v1/portfolio/items/{itemId}",
875
- pathParams: { itemId: "itemId" },
876
- __requestType: null,
877
- __originalRequestType: null,
878
- __responseType: null,
879
- __originalResponseType: null
880
- };
881
- }
882
- function bulkDeleteProjectItems2() {
883
- const payload = {};
884
- const getRequestOptions = bulkDeleteProjectItems(
885
- payload
886
- );
887
- const getUrl = (context) => {
888
- const { url } = getRequestOptions(context);
889
- return url;
890
- };
891
- return {
892
- getUrl,
893
- httpMethod: "DELETE",
894
- path: "/api/v1/bulk/portfolio/items/delete",
895
- pathParams: {},
896
- __requestType: null,
897
- __originalRequestType: null,
898
- __responseType: null,
899
- __originalResponseType: null
900
- };
901
- }
902
- function duplicateProjectItems2() {
903
- const payload = {};
904
- const getRequestOptions = duplicateProjectItems(
905
- payload
906
- );
907
- const getUrl = (context) => {
908
- const { url } = getRequestOptions(context);
909
- return url;
910
- };
911
- return {
912
- getUrl,
913
- httpMethod: "POST",
914
- path: "/api/v1/items/duplicate",
915
- pathParams: {},
916
- __requestType: null,
917
- __originalRequestType: null,
918
- __responseType: null,
919
- __originalResponseType: null
920
- };
921
- }
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
- // Annotate the CommonJS export names for ESM import in node:
943
- 0 && (module.exports = {
944
- ImageTypeOriginal,
945
- SortOrderOriginal,
946
- TypeOriginal,
947
- WebhookIdentityTypeOriginal,
948
- bulkCreateProjectItems,
949
- bulkDeleteProjectItems,
950
- bulkUpdateProjectItems,
951
- createProjectItem,
952
- deleteProjectItem,
953
- duplicateProjectItems,
954
- generateTokenForProjectItems,
955
- getProjectItem,
956
- listProjectItems,
957
- updateProjectItem
958
- });
959
- //# sourceMappingURL=meta.js.map