@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/index.d.ts +10 -10
- package/build/cjs/index.js +282 -371
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +181 -181
- package/build/cjs/index.typings.js +232 -318
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +175 -175
- package/build/cjs/meta.js +199 -293
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +10 -10
- package/build/es/index.mjs +282 -371
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +181 -181
- package/build/es/index.typings.mjs +232 -318
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +175 -175
- package/build/es/meta.mjs +199 -293
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +10 -10
- package/build/internal/cjs/index.typings.d.ts +181 -181
- package/build/internal/cjs/meta.d.ts +217 -217
- package/build/internal/es/index.d.mts +10 -10
- package/build/internal/es/index.typings.d.mts +181 -181
- package/build/internal/es/meta.d.mts +217 -217
- package/package.json +2 -2
package/build/es/index.mjs
CHANGED
|
@@ -23,71 +23,72 @@ import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transform
|
|
|
23
23
|
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
24
24
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
25
25
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
}
|
|
26
|
+
var TRANSFORM_PATHS_0 = [
|
|
27
|
+
{ path: "item.sortOrder" },
|
|
28
|
+
{ path: "item.image.focalPoint.x" },
|
|
29
|
+
{ path: "item.image.focalPoint.y" },
|
|
30
|
+
{ path: "item.image.unsharpMasking.amount" },
|
|
31
|
+
{ path: "item.image.unsharpMasking.radius" },
|
|
32
|
+
{ path: "item.image.unsharpMasking.threshold" }
|
|
33
|
+
];
|
|
34
|
+
var TRANSFORM_PATHS_1 = [
|
|
35
|
+
{ path: "item.createdDate" },
|
|
36
|
+
{ path: "item.updatedDate" },
|
|
37
|
+
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
38
|
+
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
39
|
+
{ path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
40
|
+
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
41
|
+
];
|
|
42
|
+
var TRANSFORM_PATHS_2 = [
|
|
43
|
+
{ path: "items.sortOrder" },
|
|
44
|
+
{ path: "items.image.focalPoint.x" },
|
|
45
|
+
{ path: "items.image.focalPoint.y" },
|
|
46
|
+
{ path: "items.image.unsharpMasking.amount" },
|
|
47
|
+
{ path: "items.image.unsharpMasking.radius" },
|
|
48
|
+
{ path: "items.image.unsharpMasking.threshold" }
|
|
49
|
+
];
|
|
50
|
+
var TRANSFORM_PATHS_3 = [
|
|
51
|
+
{ path: "items.createdDate" },
|
|
52
|
+
{ path: "items.updatedDate" },
|
|
53
|
+
{ path: "items.image.imageInfo.urlExpirationDate" },
|
|
54
|
+
{ path: "items.video.videoInfo.urlExpirationDate" },
|
|
55
|
+
{ path: "items.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
56
|
+
{ path: "items.video.videoInfo.posters.urlExpirationDate" }
|
|
57
|
+
];
|
|
58
|
+
var TRANSFORM_PATHS_4 = [
|
|
59
|
+
{ path: "results.item.sortOrder" },
|
|
60
|
+
{ path: "results.item.image.focalPoint.x" },
|
|
61
|
+
{ path: "results.item.image.focalPoint.y" },
|
|
62
|
+
{ path: "results.item.image.unsharpMasking.amount" },
|
|
63
|
+
{ path: "results.item.image.unsharpMasking.radius" },
|
|
64
|
+
{ path: "results.item.image.unsharpMasking.threshold" }
|
|
65
|
+
];
|
|
66
|
+
var TRANSFORM_PATHS_5 = [
|
|
67
|
+
{ path: "results.item.createdDate" },
|
|
68
|
+
{ path: "results.item.updatedDate" },
|
|
69
|
+
{ path: "results.item.image.imageInfo.urlExpirationDate" },
|
|
70
|
+
{ path: "results.item.video.videoInfo.urlExpirationDate" },
|
|
71
|
+
{ path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
72
|
+
{ path: "results.item.video.videoInfo.posters.urlExpirationDate" }
|
|
73
|
+
];
|
|
74
|
+
var TRANSFORM_PATHS_6 = [{ path: "mask" }];
|
|
75
|
+
var TRANSFORM_PATHS_7 = [{ path: "items.fieldMask" }];
|
|
76
|
+
var TRANSFORM_PATHS_8 = [
|
|
77
|
+
{ path: "items.item.sortOrder" },
|
|
78
|
+
{ path: "items.item.image.focalPoint.x" },
|
|
79
|
+
{ path: "items.item.image.focalPoint.y" },
|
|
80
|
+
{ path: "items.item.image.unsharpMasking.amount" },
|
|
81
|
+
{ path: "items.item.image.unsharpMasking.radius" },
|
|
82
|
+
{ path: "items.item.image.unsharpMasking.threshold" }
|
|
83
|
+
];
|
|
84
|
+
var TRANSFORM_PATHS_9 = [
|
|
85
|
+
{ path: "items.item.createdDate" },
|
|
86
|
+
{ path: "items.item.updatedDate" },
|
|
87
|
+
{ path: "items.item.image.imageInfo.urlExpirationDate" },
|
|
88
|
+
{ path: "items.item.video.videoInfo.urlExpirationDate" },
|
|
89
|
+
{ path: "items.item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
90
|
+
{ path: "items.item.video.videoInfo.posters.urlExpirationDate" }
|
|
91
|
+
];
|
|
91
92
|
function resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl(opts) {
|
|
92
93
|
const domainToMappings = {
|
|
93
94
|
"manage._base_domain_": [
|
|
@@ -207,31 +208,103 @@ function resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl(opts) {
|
|
|
207
208
|
};
|
|
208
209
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
209
210
|
}
|
|
211
|
+
function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
|
|
212
|
+
const domainToMappings = {
|
|
213
|
+
"manage._base_domain_": [
|
|
214
|
+
{
|
|
215
|
+
srcPath: "/_api/portfolio-app-service",
|
|
216
|
+
destPath: "/api"
|
|
217
|
+
}
|
|
218
|
+
],
|
|
219
|
+
"editor._base_domain_": [
|
|
220
|
+
{
|
|
221
|
+
srcPath: "/_api/portfolio-app-service",
|
|
222
|
+
destPath: "/api"
|
|
223
|
+
}
|
|
224
|
+
],
|
|
225
|
+
"blocks._base_domain_": [
|
|
226
|
+
{
|
|
227
|
+
srcPath: "/_api/portfolio-app-service",
|
|
228
|
+
destPath: "/api"
|
|
229
|
+
}
|
|
230
|
+
],
|
|
231
|
+
"create.editorx": [
|
|
232
|
+
{
|
|
233
|
+
srcPath: "/_api/portfolio-app-service",
|
|
234
|
+
destPath: "/api"
|
|
235
|
+
}
|
|
236
|
+
],
|
|
237
|
+
_: [
|
|
238
|
+
{
|
|
239
|
+
srcPath: "/_api/portfolio-app-service",
|
|
240
|
+
destPath: "/api"
|
|
241
|
+
}
|
|
242
|
+
],
|
|
243
|
+
"api._api_base_domain_": [
|
|
244
|
+
{
|
|
245
|
+
srcPath: "/_api/portfolio-app-service",
|
|
246
|
+
destPath: "/api"
|
|
247
|
+
}
|
|
248
|
+
],
|
|
249
|
+
"www.wixapis.com": [
|
|
250
|
+
{
|
|
251
|
+
srcPath: "/portfolio/v1/settings",
|
|
252
|
+
destPath: "/api/v1/portfolio/settings"
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
|
|
256
|
+
destPath: "/api/v1/portfolio/settings"
|
|
257
|
+
},
|
|
258
|
+
{
|
|
259
|
+
srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
|
|
260
|
+
destPath: "/api/v1/portfolio/project/items/media"
|
|
261
|
+
}
|
|
262
|
+
],
|
|
263
|
+
"*.dev.wix-code.com": [
|
|
264
|
+
{
|
|
265
|
+
srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
|
|
266
|
+
destPath: "/api/v1/portfolio/settings"
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
|
|
270
|
+
destPath: "/api/v1/portfolio/project/items/media"
|
|
271
|
+
}
|
|
272
|
+
]
|
|
273
|
+
};
|
|
274
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
275
|
+
}
|
|
210
276
|
var PACKAGE_NAME = "@wix/auto_sdk_portfolio_project-items";
|
|
277
|
+
function generateTokenForProjectItems(payload) {
|
|
278
|
+
function __generateTokenForProjectItems({ host }) {
|
|
279
|
+
const metadata = {
|
|
280
|
+
entityFqdn: "wix.portfolio.project_items.v1.project_item",
|
|
281
|
+
method: "POST",
|
|
282
|
+
methodFqn: "com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems",
|
|
283
|
+
packageName: PACKAGE_NAME,
|
|
284
|
+
migrationOptions: {
|
|
285
|
+
optInTransformResponse: true
|
|
286
|
+
},
|
|
287
|
+
url: resolveComWixpressPortfolioPortfolioappMediaServiceUrl({
|
|
288
|
+
protoPath: "/api/v1/portfolio/project/items/media",
|
|
289
|
+
data: payload,
|
|
290
|
+
host
|
|
291
|
+
}),
|
|
292
|
+
data: payload
|
|
293
|
+
};
|
|
294
|
+
return metadata;
|
|
295
|
+
}
|
|
296
|
+
return __generateTokenForProjectItems;
|
|
297
|
+
}
|
|
211
298
|
function createProjectItem(payload) {
|
|
212
299
|
function __createProjectItem({ host }) {
|
|
213
300
|
const serializedData = transformPaths(payload, [
|
|
214
301
|
{
|
|
215
302
|
transformFn: transformSDKFloatToRESTFloat,
|
|
216
|
-
paths:
|
|
217
|
-
{ path: "item.sortOrder" },
|
|
218
|
-
{ path: "item.image.focalPoint.x" },
|
|
219
|
-
{ path: "item.image.focalPoint.y" },
|
|
220
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
221
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
222
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
223
|
-
]
|
|
303
|
+
paths: TRANSFORM_PATHS_0
|
|
224
304
|
},
|
|
225
305
|
{
|
|
226
306
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
227
|
-
paths:
|
|
228
|
-
{ path: "item.createdDate" },
|
|
229
|
-
{ path: "item.updatedDate" },
|
|
230
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
231
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
232
|
-
{ path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
233
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
234
|
-
]
|
|
307
|
+
paths: TRANSFORM_PATHS_1
|
|
235
308
|
}
|
|
236
309
|
]);
|
|
237
310
|
const metadata = {
|
|
@@ -251,27 +324,11 @@ function createProjectItem(payload) {
|
|
|
251
324
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
252
325
|
{
|
|
253
326
|
transformFn: transformRESTFloatToSDKFloat,
|
|
254
|
-
paths:
|
|
255
|
-
{ path: "item.sortOrder" },
|
|
256
|
-
{ path: "item.image.focalPoint.x" },
|
|
257
|
-
{ path: "item.image.focalPoint.y" },
|
|
258
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
259
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
260
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
261
|
-
]
|
|
327
|
+
paths: TRANSFORM_PATHS_0
|
|
262
328
|
},
|
|
263
329
|
{
|
|
264
330
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
265
|
-
paths:
|
|
266
|
-
{ path: "item.createdDate" },
|
|
267
|
-
{ path: "item.updatedDate" },
|
|
268
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
269
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
270
|
-
{
|
|
271
|
-
path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
272
|
-
},
|
|
273
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
274
|
-
]
|
|
331
|
+
paths: TRANSFORM_PATHS_1
|
|
275
332
|
}
|
|
276
333
|
])
|
|
277
334
|
};
|
|
@@ -284,27 +341,11 @@ function bulkCreateProjectItems(payload) {
|
|
|
284
341
|
const serializedData = transformPaths(payload, [
|
|
285
342
|
{
|
|
286
343
|
transformFn: transformSDKFloatToRESTFloat,
|
|
287
|
-
paths:
|
|
288
|
-
{ path: "items.sortOrder" },
|
|
289
|
-
{ path: "items.image.focalPoint.x" },
|
|
290
|
-
{ path: "items.image.focalPoint.y" },
|
|
291
|
-
{ path: "items.image.unsharpMasking.amount" },
|
|
292
|
-
{ path: "items.image.unsharpMasking.radius" },
|
|
293
|
-
{ path: "items.image.unsharpMasking.threshold" }
|
|
294
|
-
]
|
|
344
|
+
paths: TRANSFORM_PATHS_2
|
|
295
345
|
},
|
|
296
346
|
{
|
|
297
347
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
298
|
-
paths:
|
|
299
|
-
{ path: "items.createdDate" },
|
|
300
|
-
{ path: "items.updatedDate" },
|
|
301
|
-
{ path: "items.image.imageInfo.urlExpirationDate" },
|
|
302
|
-
{ path: "items.video.videoInfo.urlExpirationDate" },
|
|
303
|
-
{
|
|
304
|
-
path: "items.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
305
|
-
},
|
|
306
|
-
{ path: "items.video.videoInfo.posters.urlExpirationDate" }
|
|
307
|
-
]
|
|
348
|
+
paths: TRANSFORM_PATHS_3
|
|
308
349
|
}
|
|
309
350
|
]);
|
|
310
351
|
const metadata = {
|
|
@@ -324,29 +365,11 @@ function bulkCreateProjectItems(payload) {
|
|
|
324
365
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
325
366
|
{
|
|
326
367
|
transformFn: transformRESTFloatToSDKFloat,
|
|
327
|
-
paths:
|
|
328
|
-
{ path: "results.item.sortOrder" },
|
|
329
|
-
{ path: "results.item.image.focalPoint.x" },
|
|
330
|
-
{ path: "results.item.image.focalPoint.y" },
|
|
331
|
-
{ path: "results.item.image.unsharpMasking.amount" },
|
|
332
|
-
{ path: "results.item.image.unsharpMasking.radius" },
|
|
333
|
-
{ path: "results.item.image.unsharpMasking.threshold" }
|
|
334
|
-
]
|
|
368
|
+
paths: TRANSFORM_PATHS_4
|
|
335
369
|
},
|
|
336
370
|
{
|
|
337
371
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
338
|
-
paths:
|
|
339
|
-
{ path: "results.item.createdDate" },
|
|
340
|
-
{ path: "results.item.updatedDate" },
|
|
341
|
-
{ path: "results.item.image.imageInfo.urlExpirationDate" },
|
|
342
|
-
{ path: "results.item.video.videoInfo.urlExpirationDate" },
|
|
343
|
-
{
|
|
344
|
-
path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
345
|
-
},
|
|
346
|
-
{
|
|
347
|
-
path: "results.item.video.videoInfo.posters.urlExpirationDate"
|
|
348
|
-
}
|
|
349
|
-
]
|
|
372
|
+
paths: TRANSFORM_PATHS_5
|
|
350
373
|
}
|
|
351
374
|
])
|
|
352
375
|
};
|
|
@@ -373,27 +396,11 @@ function getProjectItem(payload) {
|
|
|
373
396
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
374
397
|
{
|
|
375
398
|
transformFn: transformRESTFloatToSDKFloat,
|
|
376
|
-
paths:
|
|
377
|
-
{ path: "item.sortOrder" },
|
|
378
|
-
{ path: "item.image.focalPoint.x" },
|
|
379
|
-
{ path: "item.image.focalPoint.y" },
|
|
380
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
381
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
382
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
383
|
-
]
|
|
399
|
+
paths: TRANSFORM_PATHS_0
|
|
384
400
|
},
|
|
385
401
|
{
|
|
386
402
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
387
|
-
paths:
|
|
388
|
-
{ path: "item.createdDate" },
|
|
389
|
-
{ path: "item.updatedDate" },
|
|
390
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
391
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
392
|
-
{
|
|
393
|
-
path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
394
|
-
},
|
|
395
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
396
|
-
]
|
|
403
|
+
paths: TRANSFORM_PATHS_1
|
|
397
404
|
}
|
|
398
405
|
]),
|
|
399
406
|
fallback: [
|
|
@@ -431,27 +438,11 @@ function listProjectItems(payload) {
|
|
|
431
438
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
432
439
|
{
|
|
433
440
|
transformFn: transformRESTFloatToSDKFloat,
|
|
434
|
-
paths:
|
|
435
|
-
{ path: "items.sortOrder" },
|
|
436
|
-
{ path: "items.image.focalPoint.x" },
|
|
437
|
-
{ path: "items.image.focalPoint.y" },
|
|
438
|
-
{ path: "items.image.unsharpMasking.amount" },
|
|
439
|
-
{ path: "items.image.unsharpMasking.radius" },
|
|
440
|
-
{ path: "items.image.unsharpMasking.threshold" }
|
|
441
|
-
]
|
|
441
|
+
paths: TRANSFORM_PATHS_2
|
|
442
442
|
},
|
|
443
443
|
{
|
|
444
444
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
445
|
-
paths:
|
|
446
|
-
{ path: "items.createdDate" },
|
|
447
|
-
{ path: "items.updatedDate" },
|
|
448
|
-
{ path: "items.image.imageInfo.urlExpirationDate" },
|
|
449
|
-
{ path: "items.video.videoInfo.urlExpirationDate" },
|
|
450
|
-
{
|
|
451
|
-
path: "items.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
452
|
-
},
|
|
453
|
-
{ path: "items.video.videoInfo.posters.urlExpirationDate" }
|
|
454
|
-
]
|
|
445
|
+
paths: TRANSFORM_PATHS_3
|
|
455
446
|
}
|
|
456
447
|
])
|
|
457
448
|
};
|
|
@@ -464,29 +455,15 @@ function updateProjectItem(payload) {
|
|
|
464
455
|
const serializedData = transformPaths(payload, [
|
|
465
456
|
{
|
|
466
457
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
467
|
-
paths:
|
|
458
|
+
paths: TRANSFORM_PATHS_6
|
|
468
459
|
},
|
|
469
460
|
{
|
|
470
461
|
transformFn: transformSDKFloatToRESTFloat,
|
|
471
|
-
paths:
|
|
472
|
-
{ path: "item.sortOrder" },
|
|
473
|
-
{ path: "item.image.focalPoint.x" },
|
|
474
|
-
{ path: "item.image.focalPoint.y" },
|
|
475
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
476
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
477
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
478
|
-
]
|
|
462
|
+
paths: TRANSFORM_PATHS_0
|
|
479
463
|
},
|
|
480
464
|
{
|
|
481
465
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
482
|
-
paths:
|
|
483
|
-
{ path: "item.createdDate" },
|
|
484
|
-
{ path: "item.updatedDate" },
|
|
485
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
486
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
487
|
-
{ path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
488
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
489
|
-
]
|
|
466
|
+
paths: TRANSFORM_PATHS_1
|
|
490
467
|
}
|
|
491
468
|
]);
|
|
492
469
|
const metadata = {
|
|
@@ -506,27 +483,11 @@ function updateProjectItem(payload) {
|
|
|
506
483
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
507
484
|
{
|
|
508
485
|
transformFn: transformRESTFloatToSDKFloat,
|
|
509
|
-
paths:
|
|
510
|
-
{ path: "item.sortOrder" },
|
|
511
|
-
{ path: "item.image.focalPoint.x" },
|
|
512
|
-
{ path: "item.image.focalPoint.y" },
|
|
513
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
514
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
515
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
516
|
-
]
|
|
486
|
+
paths: TRANSFORM_PATHS_0
|
|
517
487
|
},
|
|
518
488
|
{
|
|
519
489
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
520
|
-
paths:
|
|
521
|
-
{ path: "item.createdDate" },
|
|
522
|
-
{ path: "item.updatedDate" },
|
|
523
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
524
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
525
|
-
{
|
|
526
|
-
path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
527
|
-
},
|
|
528
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
529
|
-
]
|
|
490
|
+
paths: TRANSFORM_PATHS_1
|
|
530
491
|
}
|
|
531
492
|
])
|
|
532
493
|
};
|
|
@@ -539,31 +500,15 @@ function bulkUpdateProjectItems(payload) {
|
|
|
539
500
|
const serializedData = transformPaths(payload, [
|
|
540
501
|
{
|
|
541
502
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
542
|
-
paths:
|
|
503
|
+
paths: TRANSFORM_PATHS_7
|
|
543
504
|
},
|
|
544
505
|
{
|
|
545
506
|
transformFn: transformSDKFloatToRESTFloat,
|
|
546
|
-
paths:
|
|
547
|
-
{ path: "items.item.sortOrder" },
|
|
548
|
-
{ path: "items.item.image.focalPoint.x" },
|
|
549
|
-
{ path: "items.item.image.focalPoint.y" },
|
|
550
|
-
{ path: "items.item.image.unsharpMasking.amount" },
|
|
551
|
-
{ path: "items.item.image.unsharpMasking.radius" },
|
|
552
|
-
{ path: "items.item.image.unsharpMasking.threshold" }
|
|
553
|
-
]
|
|
507
|
+
paths: TRANSFORM_PATHS_8
|
|
554
508
|
},
|
|
555
509
|
{
|
|
556
510
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
557
|
-
paths:
|
|
558
|
-
{ path: "items.item.createdDate" },
|
|
559
|
-
{ path: "items.item.updatedDate" },
|
|
560
|
-
{ path: "items.item.image.imageInfo.urlExpirationDate" },
|
|
561
|
-
{ path: "items.item.video.videoInfo.urlExpirationDate" },
|
|
562
|
-
{
|
|
563
|
-
path: "items.item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
564
|
-
},
|
|
565
|
-
{ path: "items.item.video.videoInfo.posters.urlExpirationDate" }
|
|
566
|
-
]
|
|
511
|
+
paths: TRANSFORM_PATHS_9
|
|
567
512
|
}
|
|
568
513
|
]);
|
|
569
514
|
const metadata = {
|
|
@@ -583,29 +528,11 @@ function bulkUpdateProjectItems(payload) {
|
|
|
583
528
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
584
529
|
{
|
|
585
530
|
transformFn: transformRESTFloatToSDKFloat,
|
|
586
|
-
paths:
|
|
587
|
-
{ path: "results.item.sortOrder" },
|
|
588
|
-
{ path: "results.item.image.focalPoint.x" },
|
|
589
|
-
{ path: "results.item.image.focalPoint.y" },
|
|
590
|
-
{ path: "results.item.image.unsharpMasking.amount" },
|
|
591
|
-
{ path: "results.item.image.unsharpMasking.radius" },
|
|
592
|
-
{ path: "results.item.image.unsharpMasking.threshold" }
|
|
593
|
-
]
|
|
531
|
+
paths: TRANSFORM_PATHS_4
|
|
594
532
|
},
|
|
595
533
|
{
|
|
596
534
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
597
|
-
paths:
|
|
598
|
-
{ path: "results.item.createdDate" },
|
|
599
|
-
{ path: "results.item.updatedDate" },
|
|
600
|
-
{ path: "results.item.image.imageInfo.urlExpirationDate" },
|
|
601
|
-
{ path: "results.item.video.videoInfo.urlExpirationDate" },
|
|
602
|
-
{
|
|
603
|
-
path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
604
|
-
},
|
|
605
|
-
{
|
|
606
|
-
path: "results.item.video.videoInfo.posters.urlExpirationDate"
|
|
607
|
-
}
|
|
608
|
-
]
|
|
535
|
+
paths: TRANSFORM_PATHS_5
|
|
609
536
|
}
|
|
610
537
|
])
|
|
611
538
|
};
|
|
@@ -676,27 +603,6 @@ function duplicateProjectItems(payload) {
|
|
|
676
603
|
}
|
|
677
604
|
return __duplicateProjectItems;
|
|
678
605
|
}
|
|
679
|
-
function generateTokenForProjectItems(payload) {
|
|
680
|
-
function __generateTokenForProjectItems({ host }) {
|
|
681
|
-
const metadata = {
|
|
682
|
-
entityFqdn: "wix.portfolio.project_items.v1.project_item",
|
|
683
|
-
method: "POST",
|
|
684
|
-
methodFqn: "com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems",
|
|
685
|
-
packageName: PACKAGE_NAME,
|
|
686
|
-
migrationOptions: {
|
|
687
|
-
optInTransformResponse: true
|
|
688
|
-
},
|
|
689
|
-
url: resolveComWixpressPortfolioPortfolioappMediaServiceUrl({
|
|
690
|
-
protoPath: "/api/v1/portfolio/project/items/media",
|
|
691
|
-
data: payload,
|
|
692
|
-
host
|
|
693
|
-
}),
|
|
694
|
-
data: payload
|
|
695
|
-
};
|
|
696
|
-
return metadata;
|
|
697
|
-
}
|
|
698
|
-
return __generateTokenForProjectItems;
|
|
699
|
-
}
|
|
700
606
|
|
|
701
607
|
// src/portfolio-project-items-v1-project-item-project-items.universal.ts
|
|
702
608
|
import { transformSDKImageToRESTImage } from "@wix/sdk-runtime/transformations/image";
|
|
@@ -704,6 +610,14 @@ import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/i
|
|
|
704
610
|
import { transformSDKVideoV2ToRESTVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
|
|
705
611
|
import { transformRESTVideoV2ToSDKVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
|
|
706
612
|
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
613
|
+
var TRANSFORM_PATHS_02 = [{ path: "item.image.imageInfo" }];
|
|
614
|
+
var TRANSFORM_PATHS_12 = [{ path: "item.video.videoInfo" }];
|
|
615
|
+
var TRANSFORM_PATHS_22 = [{ path: "items.image.imageInfo" }];
|
|
616
|
+
var TRANSFORM_PATHS_32 = [{ path: "items.video.videoInfo" }];
|
|
617
|
+
var TRANSFORM_PATHS_42 = [{ path: "results.item.image.imageInfo" }];
|
|
618
|
+
var TRANSFORM_PATHS_52 = [{ path: "results.item.video.videoInfo" }];
|
|
619
|
+
var TRANSFORM_PATHS_62 = [{ path: "items.item.image.imageInfo" }];
|
|
620
|
+
var TRANSFORM_PATHS_72 = [{ path: "items.item.video.videoInfo" }];
|
|
707
621
|
var Type = /* @__PURE__ */ ((Type2) => {
|
|
708
622
|
Type2["UNDEFINED"] = "UNDEFINED";
|
|
709
623
|
Type2["IMAGE"] = "IMAGE";
|
|
@@ -716,11 +630,6 @@ var ImageType = /* @__PURE__ */ ((ImageType2) => {
|
|
|
716
630
|
ImageType2["EXTERNAL"] = "EXTERNAL";
|
|
717
631
|
return ImageType2;
|
|
718
632
|
})(ImageType || {});
|
|
719
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
720
|
-
SortOrder2["ASC"] = "ASC";
|
|
721
|
-
SortOrder2["DESC"] = "DESC";
|
|
722
|
-
return SortOrder2;
|
|
723
|
-
})(SortOrder || {});
|
|
724
633
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
725
634
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
726
635
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -729,6 +638,36 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
729
638
|
WebhookIdentityType2["APP"] = "APP";
|
|
730
639
|
return WebhookIdentityType2;
|
|
731
640
|
})(WebhookIdentityType || {});
|
|
641
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
642
|
+
SortOrder2["ASC"] = "ASC";
|
|
643
|
+
SortOrder2["DESC"] = "DESC";
|
|
644
|
+
return SortOrder2;
|
|
645
|
+
})(SortOrder || {});
|
|
646
|
+
async function generateTokenForProjectItems2(mediaIds) {
|
|
647
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
648
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ mediaIds });
|
|
649
|
+
const reqOpts = generateTokenForProjectItems(
|
|
650
|
+
payload
|
|
651
|
+
);
|
|
652
|
+
sideEffects?.onSiteCall?.();
|
|
653
|
+
try {
|
|
654
|
+
const result = await httpClient.request(reqOpts);
|
|
655
|
+
sideEffects?.onSuccess?.(result);
|
|
656
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
657
|
+
} catch (err) {
|
|
658
|
+
const transformedError = sdkTransformError(
|
|
659
|
+
err,
|
|
660
|
+
{
|
|
661
|
+
spreadPathsToArguments: {},
|
|
662
|
+
explicitPathsToArguments: { mediaIds: "$[0]" },
|
|
663
|
+
singleArgumentUnchanged: false
|
|
664
|
+
},
|
|
665
|
+
["mediaIds"]
|
|
666
|
+
);
|
|
667
|
+
sideEffects?.onError?.(err);
|
|
668
|
+
throw transformedError;
|
|
669
|
+
}
|
|
670
|
+
}
|
|
732
671
|
async function createProjectItem2(item) {
|
|
733
672
|
const { httpClient, sideEffects } = arguments[1];
|
|
734
673
|
const payload = transformPaths2(
|
|
@@ -736,11 +675,11 @@ async function createProjectItem2(item) {
|
|
|
736
675
|
[
|
|
737
676
|
{
|
|
738
677
|
transformFn: transformSDKImageToRESTImage,
|
|
739
|
-
paths:
|
|
678
|
+
paths: TRANSFORM_PATHS_02
|
|
740
679
|
},
|
|
741
680
|
{
|
|
742
681
|
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
743
|
-
paths:
|
|
682
|
+
paths: TRANSFORM_PATHS_12
|
|
744
683
|
}
|
|
745
684
|
]
|
|
746
685
|
);
|
|
@@ -753,11 +692,11 @@ async function createProjectItem2(item) {
|
|
|
753
692
|
transformPaths2(result.data, [
|
|
754
693
|
{
|
|
755
694
|
transformFn: transformRESTImageToSDKImage,
|
|
756
|
-
paths:
|
|
695
|
+
paths: TRANSFORM_PATHS_02
|
|
757
696
|
},
|
|
758
697
|
{
|
|
759
698
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
760
|
-
paths:
|
|
699
|
+
paths: TRANSFORM_PATHS_12
|
|
761
700
|
}
|
|
762
701
|
])
|
|
763
702
|
)?.item;
|
|
@@ -785,11 +724,11 @@ async function bulkCreateProjectItems2(options) {
|
|
|
785
724
|
[
|
|
786
725
|
{
|
|
787
726
|
transformFn: transformSDKImageToRESTImage,
|
|
788
|
-
paths:
|
|
727
|
+
paths: TRANSFORM_PATHS_22
|
|
789
728
|
},
|
|
790
729
|
{
|
|
791
730
|
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
792
|
-
paths:
|
|
731
|
+
paths: TRANSFORM_PATHS_32
|
|
793
732
|
}
|
|
794
733
|
]
|
|
795
734
|
);
|
|
@@ -804,11 +743,11 @@ async function bulkCreateProjectItems2(options) {
|
|
|
804
743
|
transformPaths2(result.data, [
|
|
805
744
|
{
|
|
806
745
|
transformFn: transformRESTImageToSDKImage,
|
|
807
|
-
paths:
|
|
746
|
+
paths: TRANSFORM_PATHS_42
|
|
808
747
|
},
|
|
809
748
|
{
|
|
810
749
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
811
|
-
paths:
|
|
750
|
+
paths: TRANSFORM_PATHS_52
|
|
812
751
|
}
|
|
813
752
|
])
|
|
814
753
|
);
|
|
@@ -841,11 +780,11 @@ async function getProjectItem2(itemId) {
|
|
|
841
780
|
transformPaths2(result.data, [
|
|
842
781
|
{
|
|
843
782
|
transformFn: transformRESTImageToSDKImage,
|
|
844
|
-
paths:
|
|
783
|
+
paths: TRANSFORM_PATHS_02
|
|
845
784
|
},
|
|
846
785
|
{
|
|
847
786
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
848
|
-
paths:
|
|
787
|
+
paths: TRANSFORM_PATHS_12
|
|
849
788
|
}
|
|
850
789
|
])
|
|
851
790
|
)?.item;
|
|
@@ -878,11 +817,11 @@ async function listProjectItems2(projectId, options) {
|
|
|
878
817
|
transformPaths2(result.data, [
|
|
879
818
|
{
|
|
880
819
|
transformFn: transformRESTImageToSDKImage,
|
|
881
|
-
paths:
|
|
820
|
+
paths: TRANSFORM_PATHS_22
|
|
882
821
|
},
|
|
883
822
|
{
|
|
884
823
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
885
|
-
paths:
|
|
824
|
+
paths: TRANSFORM_PATHS_32
|
|
886
825
|
}
|
|
887
826
|
])
|
|
888
827
|
);
|
|
@@ -907,11 +846,11 @@ async function updateProjectItem2(_id, item) {
|
|
|
907
846
|
[
|
|
908
847
|
{
|
|
909
848
|
transformFn: transformSDKImageToRESTImage,
|
|
910
|
-
paths:
|
|
849
|
+
paths: TRANSFORM_PATHS_02
|
|
911
850
|
},
|
|
912
851
|
{
|
|
913
852
|
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
914
|
-
paths:
|
|
853
|
+
paths: TRANSFORM_PATHS_12
|
|
915
854
|
}
|
|
916
855
|
]
|
|
917
856
|
);
|
|
@@ -924,11 +863,11 @@ async function updateProjectItem2(_id, item) {
|
|
|
924
863
|
transformPaths2(result.data, [
|
|
925
864
|
{
|
|
926
865
|
transformFn: transformRESTImageToSDKImage,
|
|
927
|
-
paths:
|
|
866
|
+
paths: TRANSFORM_PATHS_02
|
|
928
867
|
},
|
|
929
868
|
{
|
|
930
869
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
931
|
-
paths:
|
|
870
|
+
paths: TRANSFORM_PATHS_12
|
|
932
871
|
}
|
|
933
872
|
])
|
|
934
873
|
)?.item;
|
|
@@ -956,11 +895,11 @@ async function bulkUpdateProjectItems2(options) {
|
|
|
956
895
|
[
|
|
957
896
|
{
|
|
958
897
|
transformFn: transformSDKImageToRESTImage,
|
|
959
|
-
paths:
|
|
898
|
+
paths: TRANSFORM_PATHS_62
|
|
960
899
|
},
|
|
961
900
|
{
|
|
962
901
|
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
963
|
-
paths:
|
|
902
|
+
paths: TRANSFORM_PATHS_72
|
|
964
903
|
}
|
|
965
904
|
]
|
|
966
905
|
);
|
|
@@ -975,11 +914,11 @@ async function bulkUpdateProjectItems2(options) {
|
|
|
975
914
|
transformPaths2(result.data, [
|
|
976
915
|
{
|
|
977
916
|
transformFn: transformRESTImageToSDKImage,
|
|
978
|
-
paths:
|
|
917
|
+
paths: TRANSFORM_PATHS_42
|
|
979
918
|
},
|
|
980
919
|
{
|
|
981
920
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
982
|
-
paths:
|
|
921
|
+
paths: TRANSFORM_PATHS_52
|
|
983
922
|
}
|
|
984
923
|
])
|
|
985
924
|
);
|
|
@@ -1081,33 +1020,45 @@ async function duplicateProjectItems2(originProjectId, options) {
|
|
|
1081
1020
|
throw transformedError;
|
|
1082
1021
|
}
|
|
1083
1022
|
}
|
|
1084
|
-
async function generateTokenForProjectItems2(mediaIds) {
|
|
1085
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1086
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({ mediaIds });
|
|
1087
|
-
const reqOpts = generateTokenForProjectItems(
|
|
1088
|
-
payload
|
|
1089
|
-
);
|
|
1090
|
-
sideEffects?.onSiteCall?.();
|
|
1091
|
-
try {
|
|
1092
|
-
const result = await httpClient.request(reqOpts);
|
|
1093
|
-
sideEffects?.onSuccess?.(result);
|
|
1094
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1095
|
-
} catch (err) {
|
|
1096
|
-
const transformedError = sdkTransformError(
|
|
1097
|
-
err,
|
|
1098
|
-
{
|
|
1099
|
-
spreadPathsToArguments: {},
|
|
1100
|
-
explicitPathsToArguments: { mediaIds: "$[0]" },
|
|
1101
|
-
singleArgumentUnchanged: false
|
|
1102
|
-
},
|
|
1103
|
-
["mediaIds"]
|
|
1104
|
-
);
|
|
1105
|
-
sideEffects?.onError?.(err);
|
|
1106
|
-
throw transformedError;
|
|
1107
|
-
}
|
|
1108
|
-
}
|
|
1109
1023
|
|
|
1110
1024
|
// src/portfolio-project-items-v1-project-item-project-items.public.ts
|
|
1025
|
+
var TRANSFORM_PATHS_03 = [
|
|
1026
|
+
{ path: "entity.sortOrder" },
|
|
1027
|
+
{ path: "entity.image.focalPoint.x" },
|
|
1028
|
+
{ path: "entity.image.focalPoint.y" },
|
|
1029
|
+
{ path: "entity.image.unsharpMasking.amount" },
|
|
1030
|
+
{ path: "entity.image.unsharpMasking.radius" },
|
|
1031
|
+
{ path: "entity.image.unsharpMasking.threshold" }
|
|
1032
|
+
];
|
|
1033
|
+
var TRANSFORM_PATHS_13 = [
|
|
1034
|
+
{ path: "entity.createdDate" },
|
|
1035
|
+
{ path: "entity.updatedDate" },
|
|
1036
|
+
{ path: "metadata.eventTime" }
|
|
1037
|
+
];
|
|
1038
|
+
var TRANSFORM_PATHS_23 = [{ path: "entity.image.imageInfo" }];
|
|
1039
|
+
var TRANSFORM_PATHS_33 = [{ path: "entity.video.videoInfo" }];
|
|
1040
|
+
var TRANSFORM_PATHS_43 = [
|
|
1041
|
+
{ path: "undefined.sortOrder" },
|
|
1042
|
+
{ path: "undefined.image.focalPoint.x" },
|
|
1043
|
+
{ path: "undefined.image.focalPoint.y" },
|
|
1044
|
+
{ path: "undefined.image.unsharpMasking.amount" },
|
|
1045
|
+
{ path: "undefined.image.unsharpMasking.radius" },
|
|
1046
|
+
{ path: "undefined.image.unsharpMasking.threshold" }
|
|
1047
|
+
];
|
|
1048
|
+
var TRANSFORM_PATHS_53 = [
|
|
1049
|
+
{ path: "undefined.createdDate" },
|
|
1050
|
+
{ path: "undefined.updatedDate" },
|
|
1051
|
+
{ path: "metadata.eventTime" }
|
|
1052
|
+
];
|
|
1053
|
+
var TRANSFORM_PATHS_63 = [{ path: "undefined.image.imageInfo" }];
|
|
1054
|
+
var TRANSFORM_PATHS_73 = [{ path: "undefined.video.videoInfo" }];
|
|
1055
|
+
function generateTokenForProjectItems3(httpClient) {
|
|
1056
|
+
return (mediaIds) => generateTokenForProjectItems2(
|
|
1057
|
+
mediaIds,
|
|
1058
|
+
// @ts-ignore
|
|
1059
|
+
{ httpClient }
|
|
1060
|
+
);
|
|
1061
|
+
}
|
|
1111
1062
|
function createProjectItem3(httpClient) {
|
|
1112
1063
|
return (item) => createProjectItem2(
|
|
1113
1064
|
item,
|
|
@@ -1174,13 +1125,6 @@ function duplicateProjectItems3(httpClient) {
|
|
|
1174
1125
|
{ httpClient }
|
|
1175
1126
|
);
|
|
1176
1127
|
}
|
|
1177
|
-
function generateTokenForProjectItems3(httpClient) {
|
|
1178
|
-
return (mediaIds) => generateTokenForProjectItems2(
|
|
1179
|
-
mediaIds,
|
|
1180
|
-
// @ts-ignore
|
|
1181
|
-
{ httpClient }
|
|
1182
|
-
);
|
|
1183
|
-
}
|
|
1184
1128
|
var onProjectItemCreated = /* @__PURE__ */ EventDefinition(
|
|
1185
1129
|
"wix.portfolio.project_items.v1.project_item_created",
|
|
1186
1130
|
true,
|
|
@@ -1188,30 +1132,19 @@ var onProjectItemCreated = /* @__PURE__ */ EventDefinition(
|
|
|
1188
1132
|
transformPaths3(event, [
|
|
1189
1133
|
{
|
|
1190
1134
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
1191
|
-
paths:
|
|
1192
|
-
{ path: "entity.sortOrder" },
|
|
1193
|
-
{ path: "entity.image.focalPoint.x" },
|
|
1194
|
-
{ path: "entity.image.focalPoint.y" },
|
|
1195
|
-
{ path: "entity.image.unsharpMasking.amount" },
|
|
1196
|
-
{ path: "entity.image.unsharpMasking.radius" },
|
|
1197
|
-
{ path: "entity.image.unsharpMasking.threshold" }
|
|
1198
|
-
]
|
|
1135
|
+
paths: TRANSFORM_PATHS_03
|
|
1199
1136
|
},
|
|
1200
1137
|
{
|
|
1201
1138
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1202
|
-
paths:
|
|
1203
|
-
{ path: "entity.createdDate" },
|
|
1204
|
-
{ path: "entity.updatedDate" },
|
|
1205
|
-
{ path: "metadata.eventTime" }
|
|
1206
|
-
]
|
|
1139
|
+
paths: TRANSFORM_PATHS_13
|
|
1207
1140
|
},
|
|
1208
1141
|
{
|
|
1209
1142
|
transformFn: transformRESTImageToSDKImage2,
|
|
1210
|
-
paths:
|
|
1143
|
+
paths: TRANSFORM_PATHS_23
|
|
1211
1144
|
},
|
|
1212
1145
|
{
|
|
1213
1146
|
transformFn: transformRESTVideoV2ToSDKVideoV22,
|
|
1214
|
-
paths:
|
|
1147
|
+
paths: TRANSFORM_PATHS_33
|
|
1215
1148
|
}
|
|
1216
1149
|
])
|
|
1217
1150
|
)
|
|
@@ -1223,30 +1156,19 @@ var onProjectItemDeleted = /* @__PURE__ */ EventDefinition(
|
|
|
1223
1156
|
transformPaths3(event, [
|
|
1224
1157
|
{
|
|
1225
1158
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
1226
|
-
paths:
|
|
1227
|
-
{ path: "undefined.sortOrder" },
|
|
1228
|
-
{ path: "undefined.image.focalPoint.x" },
|
|
1229
|
-
{ path: "undefined.image.focalPoint.y" },
|
|
1230
|
-
{ path: "undefined.image.unsharpMasking.amount" },
|
|
1231
|
-
{ path: "undefined.image.unsharpMasking.radius" },
|
|
1232
|
-
{ path: "undefined.image.unsharpMasking.threshold" }
|
|
1233
|
-
]
|
|
1159
|
+
paths: TRANSFORM_PATHS_43
|
|
1234
1160
|
},
|
|
1235
1161
|
{
|
|
1236
1162
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1237
|
-
paths:
|
|
1238
|
-
{ path: "undefined.createdDate" },
|
|
1239
|
-
{ path: "undefined.updatedDate" },
|
|
1240
|
-
{ path: "metadata.eventTime" }
|
|
1241
|
-
]
|
|
1163
|
+
paths: TRANSFORM_PATHS_53
|
|
1242
1164
|
},
|
|
1243
1165
|
{
|
|
1244
1166
|
transformFn: transformRESTImageToSDKImage2,
|
|
1245
|
-
paths:
|
|
1167
|
+
paths: TRANSFORM_PATHS_63
|
|
1246
1168
|
},
|
|
1247
1169
|
{
|
|
1248
1170
|
transformFn: transformRESTVideoV2ToSDKVideoV22,
|
|
1249
|
-
paths:
|
|
1171
|
+
paths: TRANSFORM_PATHS_73
|
|
1250
1172
|
}
|
|
1251
1173
|
])
|
|
1252
1174
|
)
|
|
@@ -1258,30 +1180,19 @@ var onProjectItemUpdated = /* @__PURE__ */ EventDefinition(
|
|
|
1258
1180
|
transformPaths3(event, [
|
|
1259
1181
|
{
|
|
1260
1182
|
transformFn: transformRESTFloatToSDKFloat2,
|
|
1261
|
-
paths:
|
|
1262
|
-
{ path: "entity.sortOrder" },
|
|
1263
|
-
{ path: "entity.image.focalPoint.x" },
|
|
1264
|
-
{ path: "entity.image.focalPoint.y" },
|
|
1265
|
-
{ path: "entity.image.unsharpMasking.amount" },
|
|
1266
|
-
{ path: "entity.image.unsharpMasking.radius" },
|
|
1267
|
-
{ path: "entity.image.unsharpMasking.threshold" }
|
|
1268
|
-
]
|
|
1183
|
+
paths: TRANSFORM_PATHS_03
|
|
1269
1184
|
},
|
|
1270
1185
|
{
|
|
1271
1186
|
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1272
|
-
paths:
|
|
1273
|
-
{ path: "entity.createdDate" },
|
|
1274
|
-
{ path: "entity.updatedDate" },
|
|
1275
|
-
{ path: "metadata.eventTime" }
|
|
1276
|
-
]
|
|
1187
|
+
paths: TRANSFORM_PATHS_13
|
|
1277
1188
|
},
|
|
1278
1189
|
{
|
|
1279
1190
|
transformFn: transformRESTImageToSDKImage2,
|
|
1280
|
-
paths:
|
|
1191
|
+
paths: TRANSFORM_PATHS_23
|
|
1281
1192
|
},
|
|
1282
1193
|
{
|
|
1283
1194
|
transformFn: transformRESTVideoV2ToSDKVideoV22,
|
|
1284
|
-
paths:
|
|
1195
|
+
paths: TRANSFORM_PATHS_33
|
|
1285
1196
|
}
|
|
1286
1197
|
])
|
|
1287
1198
|
)
|
|
@@ -1290,6 +1201,7 @@ var onProjectItemUpdated = /* @__PURE__ */ EventDefinition(
|
|
|
1290
1201
|
// src/portfolio-project-items-v1-project-item-project-items.context.ts
|
|
1291
1202
|
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
1292
1203
|
import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
|
|
1204
|
+
var generateTokenForProjectItems4 = /* @__PURE__ */ createRESTModule(generateTokenForProjectItems3);
|
|
1293
1205
|
var createProjectItem4 = /* @__PURE__ */ createRESTModule(createProjectItem3);
|
|
1294
1206
|
var bulkCreateProjectItems4 = /* @__PURE__ */ createRESTModule(bulkCreateProjectItems3);
|
|
1295
1207
|
var getProjectItem4 = /* @__PURE__ */ createRESTModule(getProjectItem3);
|
|
@@ -1299,7 +1211,6 @@ var bulkUpdateProjectItems4 = /* @__PURE__ */ createRESTModule(bulkUpdateProject
|
|
|
1299
1211
|
var deleteProjectItem4 = /* @__PURE__ */ createRESTModule(deleteProjectItem3);
|
|
1300
1212
|
var bulkDeleteProjectItems4 = /* @__PURE__ */ createRESTModule(bulkDeleteProjectItems3);
|
|
1301
1213
|
var duplicateProjectItems4 = /* @__PURE__ */ createRESTModule(duplicateProjectItems3);
|
|
1302
|
-
var generateTokenForProjectItems4 = /* @__PURE__ */ createRESTModule(generateTokenForProjectItems3);
|
|
1303
1214
|
var onProjectItemCreated2 = /* @__PURE__ */ createEventModule(
|
|
1304
1215
|
onProjectItemCreated
|
|
1305
1216
|
);
|