@wix/auto_sdk_portfolio_project-items 1.0.50 → 1.0.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +20 -20
- package/build/cjs/index.js +282 -371
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +197 -191
- package/build/cjs/index.typings.js +232 -318
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +182 -176
- package/build/cjs/meta.js +199 -293
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +20 -20
- package/build/es/index.mjs +282 -371
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +197 -191
- package/build/es/index.typings.mjs +232 -318
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +182 -176
- package/build/es/meta.mjs +199 -293
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +20 -20
- package/build/internal/cjs/index.typings.d.ts +197 -191
- package/build/internal/cjs/meta.d.ts +224 -218
- package/build/internal/es/index.d.mts +20 -20
- package/build/internal/es/index.typings.d.mts +197 -191
- package/build/internal/es/meta.d.mts +224 -218
- package/package.json +2 -2
package/build/es/index.mjs
CHANGED
|
@@ -23,6 +23,137 @@ 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
|
+
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
|
+
];
|
|
92
|
+
function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
|
|
93
|
+
const domainToMappings = {
|
|
94
|
+
"manage._base_domain_": [
|
|
95
|
+
{
|
|
96
|
+
srcPath: "/_api/portfolio-app-service",
|
|
97
|
+
destPath: "/api"
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
"editor._base_domain_": [
|
|
101
|
+
{
|
|
102
|
+
srcPath: "/_api/portfolio-app-service",
|
|
103
|
+
destPath: "/api"
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
"blocks._base_domain_": [
|
|
107
|
+
{
|
|
108
|
+
srcPath: "/_api/portfolio-app-service",
|
|
109
|
+
destPath: "/api"
|
|
110
|
+
}
|
|
111
|
+
],
|
|
112
|
+
"create.editorx": [
|
|
113
|
+
{
|
|
114
|
+
srcPath: "/_api/portfolio-app-service",
|
|
115
|
+
destPath: "/api"
|
|
116
|
+
}
|
|
117
|
+
],
|
|
118
|
+
_: [
|
|
119
|
+
{
|
|
120
|
+
srcPath: "/_api/portfolio-app-service",
|
|
121
|
+
destPath: "/api"
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"api._api_base_domain_": [
|
|
125
|
+
{
|
|
126
|
+
srcPath: "/_api/portfolio-app-service",
|
|
127
|
+
destPath: "/api"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
"www.wixapis.com": [
|
|
131
|
+
{
|
|
132
|
+
srcPath: "/portfolio/v1/settings",
|
|
133
|
+
destPath: "/api/v1/portfolio/settings"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
|
|
137
|
+
destPath: "/api/v1/portfolio/settings"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
|
|
141
|
+
destPath: "/api/v1/portfolio/project/items/media"
|
|
142
|
+
}
|
|
143
|
+
],
|
|
144
|
+
"*.dev.wix-code.com": [
|
|
145
|
+
{
|
|
146
|
+
srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
|
|
147
|
+
destPath: "/api/v1/portfolio/settings"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
|
|
151
|
+
destPath: "/api/v1/portfolio/project/items/media"
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
};
|
|
155
|
+
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
156
|
+
}
|
|
26
157
|
function resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl(opts) {
|
|
27
158
|
const domainToMappings = {
|
|
28
159
|
"manage._base_domain_": [
|
|
@@ -142,117 +273,17 @@ function resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl(opts) {
|
|
|
142
273
|
};
|
|
143
274
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
144
275
|
}
|
|
145
|
-
function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
|
|
146
|
-
const domainToMappings = {
|
|
147
|
-
"manage._base_domain_": [
|
|
148
|
-
{
|
|
149
|
-
srcPath: "/_api/portfolio-app-service",
|
|
150
|
-
destPath: "/api"
|
|
151
|
-
}
|
|
152
|
-
],
|
|
153
|
-
"editor._base_domain_": [
|
|
154
|
-
{
|
|
155
|
-
srcPath: "/_api/portfolio-app-service",
|
|
156
|
-
destPath: "/api"
|
|
157
|
-
}
|
|
158
|
-
],
|
|
159
|
-
"blocks._base_domain_": [
|
|
160
|
-
{
|
|
161
|
-
srcPath: "/_api/portfolio-app-service",
|
|
162
|
-
destPath: "/api"
|
|
163
|
-
}
|
|
164
|
-
],
|
|
165
|
-
"create.editorx": [
|
|
166
|
-
{
|
|
167
|
-
srcPath: "/_api/portfolio-app-service",
|
|
168
|
-
destPath: "/api"
|
|
169
|
-
}
|
|
170
|
-
],
|
|
171
|
-
_: [
|
|
172
|
-
{
|
|
173
|
-
srcPath: "/_api/portfolio-app-service",
|
|
174
|
-
destPath: "/api"
|
|
175
|
-
}
|
|
176
|
-
],
|
|
177
|
-
"api._api_base_domain_": [
|
|
178
|
-
{
|
|
179
|
-
srcPath: "/_api/portfolio-app-service",
|
|
180
|
-
destPath: "/api"
|
|
181
|
-
}
|
|
182
|
-
],
|
|
183
|
-
"www.wixapis.com": [
|
|
184
|
-
{
|
|
185
|
-
srcPath: "/portfolio/v1/settings",
|
|
186
|
-
destPath: "/api/v1/portfolio/settings"
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
|
|
190
|
-
destPath: "/api/v1/portfolio/settings"
|
|
191
|
-
},
|
|
192
|
-
{
|
|
193
|
-
srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
|
|
194
|
-
destPath: "/api/v1/portfolio/project/items/media"
|
|
195
|
-
}
|
|
196
|
-
],
|
|
197
|
-
"*.dev.wix-code.com": [
|
|
198
|
-
{
|
|
199
|
-
srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
|
|
200
|
-
destPath: "/api/v1/portfolio/settings"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
|
|
204
|
-
destPath: "/api/v1/portfolio/project/items/media"
|
|
205
|
-
}
|
|
206
|
-
]
|
|
207
|
-
};
|
|
208
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
209
|
-
}
|
|
210
276
|
var PACKAGE_NAME = "@wix/auto_sdk_portfolio_project-items";
|
|
211
|
-
function generateTokenForProjectItems(payload) {
|
|
212
|
-
function __generateTokenForProjectItems({ host }) {
|
|
213
|
-
const metadata = {
|
|
214
|
-
entityFqdn: "wix.portfolio.project_items.v1.project_item",
|
|
215
|
-
method: "POST",
|
|
216
|
-
methodFqn: "com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems",
|
|
217
|
-
packageName: PACKAGE_NAME,
|
|
218
|
-
migrationOptions: {
|
|
219
|
-
optInTransformResponse: true
|
|
220
|
-
},
|
|
221
|
-
url: resolveComWixpressPortfolioPortfolioappMediaServiceUrl({
|
|
222
|
-
protoPath: "/api/v1/portfolio/project/items/media",
|
|
223
|
-
data: payload,
|
|
224
|
-
host
|
|
225
|
-
}),
|
|
226
|
-
data: payload
|
|
227
|
-
};
|
|
228
|
-
return metadata;
|
|
229
|
-
}
|
|
230
|
-
return __generateTokenForProjectItems;
|
|
231
|
-
}
|
|
232
277
|
function createProjectItem(payload) {
|
|
233
278
|
function __createProjectItem({ host }) {
|
|
234
279
|
const serializedData = transformPaths(payload, [
|
|
235
280
|
{
|
|
236
281
|
transformFn: transformSDKFloatToRESTFloat,
|
|
237
|
-
paths:
|
|
238
|
-
{ path: "item.sortOrder" },
|
|
239
|
-
{ path: "item.image.focalPoint.x" },
|
|
240
|
-
{ path: "item.image.focalPoint.y" },
|
|
241
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
242
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
243
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
244
|
-
]
|
|
282
|
+
paths: TRANSFORM_PATHS_0
|
|
245
283
|
},
|
|
246
284
|
{
|
|
247
285
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
248
|
-
paths:
|
|
249
|
-
{ path: "item.createdDate" },
|
|
250
|
-
{ path: "item.updatedDate" },
|
|
251
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
252
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
253
|
-
{ path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
254
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
255
|
-
]
|
|
286
|
+
paths: TRANSFORM_PATHS_1
|
|
256
287
|
}
|
|
257
288
|
]);
|
|
258
289
|
const metadata = {
|
|
@@ -272,27 +303,11 @@ function createProjectItem(payload) {
|
|
|
272
303
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
273
304
|
{
|
|
274
305
|
transformFn: transformRESTFloatToSDKFloat,
|
|
275
|
-
paths:
|
|
276
|
-
{ path: "item.sortOrder" },
|
|
277
|
-
{ path: "item.image.focalPoint.x" },
|
|
278
|
-
{ path: "item.image.focalPoint.y" },
|
|
279
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
280
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
281
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
282
|
-
]
|
|
306
|
+
paths: TRANSFORM_PATHS_0
|
|
283
307
|
},
|
|
284
308
|
{
|
|
285
309
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
286
|
-
paths:
|
|
287
|
-
{ path: "item.createdDate" },
|
|
288
|
-
{ path: "item.updatedDate" },
|
|
289
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
290
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
291
|
-
{
|
|
292
|
-
path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
293
|
-
},
|
|
294
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
295
|
-
]
|
|
310
|
+
paths: TRANSFORM_PATHS_1
|
|
296
311
|
}
|
|
297
312
|
])
|
|
298
313
|
};
|
|
@@ -305,27 +320,11 @@ function bulkCreateProjectItems(payload) {
|
|
|
305
320
|
const serializedData = transformPaths(payload, [
|
|
306
321
|
{
|
|
307
322
|
transformFn: transformSDKFloatToRESTFloat,
|
|
308
|
-
paths:
|
|
309
|
-
{ path: "items.sortOrder" },
|
|
310
|
-
{ path: "items.image.focalPoint.x" },
|
|
311
|
-
{ path: "items.image.focalPoint.y" },
|
|
312
|
-
{ path: "items.image.unsharpMasking.amount" },
|
|
313
|
-
{ path: "items.image.unsharpMasking.radius" },
|
|
314
|
-
{ path: "items.image.unsharpMasking.threshold" }
|
|
315
|
-
]
|
|
323
|
+
paths: TRANSFORM_PATHS_2
|
|
316
324
|
},
|
|
317
325
|
{
|
|
318
326
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
319
|
-
paths:
|
|
320
|
-
{ path: "items.createdDate" },
|
|
321
|
-
{ path: "items.updatedDate" },
|
|
322
|
-
{ path: "items.image.imageInfo.urlExpirationDate" },
|
|
323
|
-
{ path: "items.video.videoInfo.urlExpirationDate" },
|
|
324
|
-
{
|
|
325
|
-
path: "items.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
326
|
-
},
|
|
327
|
-
{ path: "items.video.videoInfo.posters.urlExpirationDate" }
|
|
328
|
-
]
|
|
327
|
+
paths: TRANSFORM_PATHS_3
|
|
329
328
|
}
|
|
330
329
|
]);
|
|
331
330
|
const metadata = {
|
|
@@ -345,29 +344,11 @@ function bulkCreateProjectItems(payload) {
|
|
|
345
344
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
346
345
|
{
|
|
347
346
|
transformFn: transformRESTFloatToSDKFloat,
|
|
348
|
-
paths:
|
|
349
|
-
{ path: "results.item.sortOrder" },
|
|
350
|
-
{ path: "results.item.image.focalPoint.x" },
|
|
351
|
-
{ path: "results.item.image.focalPoint.y" },
|
|
352
|
-
{ path: "results.item.image.unsharpMasking.amount" },
|
|
353
|
-
{ path: "results.item.image.unsharpMasking.radius" },
|
|
354
|
-
{ path: "results.item.image.unsharpMasking.threshold" }
|
|
355
|
-
]
|
|
347
|
+
paths: TRANSFORM_PATHS_4
|
|
356
348
|
},
|
|
357
349
|
{
|
|
358
350
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
359
|
-
paths:
|
|
360
|
-
{ path: "results.item.createdDate" },
|
|
361
|
-
{ path: "results.item.updatedDate" },
|
|
362
|
-
{ path: "results.item.image.imageInfo.urlExpirationDate" },
|
|
363
|
-
{ path: "results.item.video.videoInfo.urlExpirationDate" },
|
|
364
|
-
{
|
|
365
|
-
path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
366
|
-
},
|
|
367
|
-
{
|
|
368
|
-
path: "results.item.video.videoInfo.posters.urlExpirationDate"
|
|
369
|
-
}
|
|
370
|
-
]
|
|
351
|
+
paths: TRANSFORM_PATHS_5
|
|
371
352
|
}
|
|
372
353
|
])
|
|
373
354
|
};
|
|
@@ -394,27 +375,11 @@ function getProjectItem(payload) {
|
|
|
394
375
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
395
376
|
{
|
|
396
377
|
transformFn: transformRESTFloatToSDKFloat,
|
|
397
|
-
paths:
|
|
398
|
-
{ path: "item.sortOrder" },
|
|
399
|
-
{ path: "item.image.focalPoint.x" },
|
|
400
|
-
{ path: "item.image.focalPoint.y" },
|
|
401
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
402
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
403
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
404
|
-
]
|
|
378
|
+
paths: TRANSFORM_PATHS_0
|
|
405
379
|
},
|
|
406
380
|
{
|
|
407
381
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
408
|
-
paths:
|
|
409
|
-
{ path: "item.createdDate" },
|
|
410
|
-
{ path: "item.updatedDate" },
|
|
411
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
412
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
413
|
-
{
|
|
414
|
-
path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
415
|
-
},
|
|
416
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
417
|
-
]
|
|
382
|
+
paths: TRANSFORM_PATHS_1
|
|
418
383
|
}
|
|
419
384
|
]),
|
|
420
385
|
fallback: [
|
|
@@ -452,27 +417,11 @@ function listProjectItems(payload) {
|
|
|
452
417
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
453
418
|
{
|
|
454
419
|
transformFn: transformRESTFloatToSDKFloat,
|
|
455
|
-
paths:
|
|
456
|
-
{ path: "items.sortOrder" },
|
|
457
|
-
{ path: "items.image.focalPoint.x" },
|
|
458
|
-
{ path: "items.image.focalPoint.y" },
|
|
459
|
-
{ path: "items.image.unsharpMasking.amount" },
|
|
460
|
-
{ path: "items.image.unsharpMasking.radius" },
|
|
461
|
-
{ path: "items.image.unsharpMasking.threshold" }
|
|
462
|
-
]
|
|
420
|
+
paths: TRANSFORM_PATHS_2
|
|
463
421
|
},
|
|
464
422
|
{
|
|
465
423
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
466
|
-
paths:
|
|
467
|
-
{ path: "items.createdDate" },
|
|
468
|
-
{ path: "items.updatedDate" },
|
|
469
|
-
{ path: "items.image.imageInfo.urlExpirationDate" },
|
|
470
|
-
{ path: "items.video.videoInfo.urlExpirationDate" },
|
|
471
|
-
{
|
|
472
|
-
path: "items.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
473
|
-
},
|
|
474
|
-
{ path: "items.video.videoInfo.posters.urlExpirationDate" }
|
|
475
|
-
]
|
|
424
|
+
paths: TRANSFORM_PATHS_3
|
|
476
425
|
}
|
|
477
426
|
])
|
|
478
427
|
};
|
|
@@ -485,29 +434,15 @@ function updateProjectItem(payload) {
|
|
|
485
434
|
const serializedData = transformPaths(payload, [
|
|
486
435
|
{
|
|
487
436
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
488
|
-
paths:
|
|
437
|
+
paths: TRANSFORM_PATHS_6
|
|
489
438
|
},
|
|
490
439
|
{
|
|
491
440
|
transformFn: transformSDKFloatToRESTFloat,
|
|
492
|
-
paths:
|
|
493
|
-
{ path: "item.sortOrder" },
|
|
494
|
-
{ path: "item.image.focalPoint.x" },
|
|
495
|
-
{ path: "item.image.focalPoint.y" },
|
|
496
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
497
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
498
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
499
|
-
]
|
|
441
|
+
paths: TRANSFORM_PATHS_0
|
|
500
442
|
},
|
|
501
443
|
{
|
|
502
444
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
503
|
-
paths:
|
|
504
|
-
{ path: "item.createdDate" },
|
|
505
|
-
{ path: "item.updatedDate" },
|
|
506
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
507
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
508
|
-
{ path: "item.video.videoInfo.resolutions.poster.urlExpirationDate" },
|
|
509
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
510
|
-
]
|
|
445
|
+
paths: TRANSFORM_PATHS_1
|
|
511
446
|
}
|
|
512
447
|
]);
|
|
513
448
|
const metadata = {
|
|
@@ -527,27 +462,11 @@ function updateProjectItem(payload) {
|
|
|
527
462
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
528
463
|
{
|
|
529
464
|
transformFn: transformRESTFloatToSDKFloat,
|
|
530
|
-
paths:
|
|
531
|
-
{ path: "item.sortOrder" },
|
|
532
|
-
{ path: "item.image.focalPoint.x" },
|
|
533
|
-
{ path: "item.image.focalPoint.y" },
|
|
534
|
-
{ path: "item.image.unsharpMasking.amount" },
|
|
535
|
-
{ path: "item.image.unsharpMasking.radius" },
|
|
536
|
-
{ path: "item.image.unsharpMasking.threshold" }
|
|
537
|
-
]
|
|
465
|
+
paths: TRANSFORM_PATHS_0
|
|
538
466
|
},
|
|
539
467
|
{
|
|
540
468
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
541
|
-
paths:
|
|
542
|
-
{ path: "item.createdDate" },
|
|
543
|
-
{ path: "item.updatedDate" },
|
|
544
|
-
{ path: "item.image.imageInfo.urlExpirationDate" },
|
|
545
|
-
{ path: "item.video.videoInfo.urlExpirationDate" },
|
|
546
|
-
{
|
|
547
|
-
path: "item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
548
|
-
},
|
|
549
|
-
{ path: "item.video.videoInfo.posters.urlExpirationDate" }
|
|
550
|
-
]
|
|
469
|
+
paths: TRANSFORM_PATHS_1
|
|
551
470
|
}
|
|
552
471
|
])
|
|
553
472
|
};
|
|
@@ -560,31 +479,15 @@ function bulkUpdateProjectItems(payload) {
|
|
|
560
479
|
const serializedData = transformPaths(payload, [
|
|
561
480
|
{
|
|
562
481
|
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
563
|
-
paths:
|
|
482
|
+
paths: TRANSFORM_PATHS_7
|
|
564
483
|
},
|
|
565
484
|
{
|
|
566
485
|
transformFn: transformSDKFloatToRESTFloat,
|
|
567
|
-
paths:
|
|
568
|
-
{ path: "items.item.sortOrder" },
|
|
569
|
-
{ path: "items.item.image.focalPoint.x" },
|
|
570
|
-
{ path: "items.item.image.focalPoint.y" },
|
|
571
|
-
{ path: "items.item.image.unsharpMasking.amount" },
|
|
572
|
-
{ path: "items.item.image.unsharpMasking.radius" },
|
|
573
|
-
{ path: "items.item.image.unsharpMasking.threshold" }
|
|
574
|
-
]
|
|
486
|
+
paths: TRANSFORM_PATHS_8
|
|
575
487
|
},
|
|
576
488
|
{
|
|
577
489
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
578
|
-
paths:
|
|
579
|
-
{ path: "items.item.createdDate" },
|
|
580
|
-
{ path: "items.item.updatedDate" },
|
|
581
|
-
{ path: "items.item.image.imageInfo.urlExpirationDate" },
|
|
582
|
-
{ path: "items.item.video.videoInfo.urlExpirationDate" },
|
|
583
|
-
{
|
|
584
|
-
path: "items.item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
585
|
-
},
|
|
586
|
-
{ path: "items.item.video.videoInfo.posters.urlExpirationDate" }
|
|
587
|
-
]
|
|
490
|
+
paths: TRANSFORM_PATHS_9
|
|
588
491
|
}
|
|
589
492
|
]);
|
|
590
493
|
const metadata = {
|
|
@@ -604,29 +507,11 @@ function bulkUpdateProjectItems(payload) {
|
|
|
604
507
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
605
508
|
{
|
|
606
509
|
transformFn: transformRESTFloatToSDKFloat,
|
|
607
|
-
paths:
|
|
608
|
-
{ path: "results.item.sortOrder" },
|
|
609
|
-
{ path: "results.item.image.focalPoint.x" },
|
|
610
|
-
{ path: "results.item.image.focalPoint.y" },
|
|
611
|
-
{ path: "results.item.image.unsharpMasking.amount" },
|
|
612
|
-
{ path: "results.item.image.unsharpMasking.radius" },
|
|
613
|
-
{ path: "results.item.image.unsharpMasking.threshold" }
|
|
614
|
-
]
|
|
510
|
+
paths: TRANSFORM_PATHS_4
|
|
615
511
|
},
|
|
616
512
|
{
|
|
617
513
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
618
|
-
paths:
|
|
619
|
-
{ path: "results.item.createdDate" },
|
|
620
|
-
{ path: "results.item.updatedDate" },
|
|
621
|
-
{ path: "results.item.image.imageInfo.urlExpirationDate" },
|
|
622
|
-
{ path: "results.item.video.videoInfo.urlExpirationDate" },
|
|
623
|
-
{
|
|
624
|
-
path: "results.item.video.videoInfo.resolutions.poster.urlExpirationDate"
|
|
625
|
-
},
|
|
626
|
-
{
|
|
627
|
-
path: "results.item.video.videoInfo.posters.urlExpirationDate"
|
|
628
|
-
}
|
|
629
|
-
]
|
|
514
|
+
paths: TRANSFORM_PATHS_5
|
|
630
515
|
}
|
|
631
516
|
])
|
|
632
517
|
};
|
|
@@ -697,6 +582,27 @@ function duplicateProjectItems(payload) {
|
|
|
697
582
|
}
|
|
698
583
|
return __duplicateProjectItems;
|
|
699
584
|
}
|
|
585
|
+
function generateTokenForProjectItems(payload) {
|
|
586
|
+
function __generateTokenForProjectItems({ host }) {
|
|
587
|
+
const metadata = {
|
|
588
|
+
entityFqdn: "wix.portfolio.project_items.v1.project_item",
|
|
589
|
+
method: "POST",
|
|
590
|
+
methodFqn: "com.wixpress.portfolio.portfolioapp.MediaService.GenerateTokenForProjectItems",
|
|
591
|
+
packageName: PACKAGE_NAME,
|
|
592
|
+
migrationOptions: {
|
|
593
|
+
optInTransformResponse: true
|
|
594
|
+
},
|
|
595
|
+
url: resolveComWixpressPortfolioPortfolioappMediaServiceUrl({
|
|
596
|
+
protoPath: "/api/v1/portfolio/project/items/media",
|
|
597
|
+
data: payload,
|
|
598
|
+
host
|
|
599
|
+
}),
|
|
600
|
+
data: payload
|
|
601
|
+
};
|
|
602
|
+
return metadata;
|
|
603
|
+
}
|
|
604
|
+
return __generateTokenForProjectItems;
|
|
605
|
+
}
|
|
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,6 +630,11 @@ var ImageType = /* @__PURE__ */ ((ImageType2) => {
|
|
|
716
630
|
ImageType2["EXTERNAL"] = "EXTERNAL";
|
|
717
631
|
return ImageType2;
|
|
718
632
|
})(ImageType || {});
|
|
633
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
634
|
+
SortOrder2["ASC"] = "ASC";
|
|
635
|
+
SortOrder2["DESC"] = "DESC";
|
|
636
|
+
return SortOrder2;
|
|
637
|
+
})(SortOrder || {});
|
|
719
638
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
720
639
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
721
640
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -724,36 +643,6 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
724
643
|
WebhookIdentityType2["APP"] = "APP";
|
|
725
644
|
return WebhookIdentityType2;
|
|
726
645
|
})(WebhookIdentityType || {});
|
|
727
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
728
|
-
SortOrder2["ASC"] = "ASC";
|
|
729
|
-
SortOrder2["DESC"] = "DESC";
|
|
730
|
-
return SortOrder2;
|
|
731
|
-
})(SortOrder || {});
|
|
732
|
-
async function generateTokenForProjectItems2(mediaIds) {
|
|
733
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
734
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({ mediaIds });
|
|
735
|
-
const reqOpts = generateTokenForProjectItems(
|
|
736
|
-
payload
|
|
737
|
-
);
|
|
738
|
-
sideEffects?.onSiteCall?.();
|
|
739
|
-
try {
|
|
740
|
-
const result = await httpClient.request(reqOpts);
|
|
741
|
-
sideEffects?.onSuccess?.(result);
|
|
742
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
743
|
-
} catch (err) {
|
|
744
|
-
const transformedError = sdkTransformError(
|
|
745
|
-
err,
|
|
746
|
-
{
|
|
747
|
-
spreadPathsToArguments: {},
|
|
748
|
-
explicitPathsToArguments: { mediaIds: "$[0]" },
|
|
749
|
-
singleArgumentUnchanged: false
|
|
750
|
-
},
|
|
751
|
-
["mediaIds"]
|
|
752
|
-
);
|
|
753
|
-
sideEffects?.onError?.(err);
|
|
754
|
-
throw transformedError;
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
646
|
async function createProjectItem2(item) {
|
|
758
647
|
const { httpClient, sideEffects } = arguments[1];
|
|
759
648
|
const payload = transformPaths2(
|
|
@@ -761,11 +650,11 @@ async function createProjectItem2(item) {
|
|
|
761
650
|
[
|
|
762
651
|
{
|
|
763
652
|
transformFn: transformSDKImageToRESTImage,
|
|
764
|
-
paths:
|
|
653
|
+
paths: TRANSFORM_PATHS_02
|
|
765
654
|
},
|
|
766
655
|
{
|
|
767
656
|
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
768
|
-
paths:
|
|
657
|
+
paths: TRANSFORM_PATHS_12
|
|
769
658
|
}
|
|
770
659
|
]
|
|
771
660
|
);
|
|
@@ -778,11 +667,11 @@ async function createProjectItem2(item) {
|
|
|
778
667
|
transformPaths2(result.data, [
|
|
779
668
|
{
|
|
780
669
|
transformFn: transformRESTImageToSDKImage,
|
|
781
|
-
paths:
|
|
670
|
+
paths: TRANSFORM_PATHS_02
|
|
782
671
|
},
|
|
783
672
|
{
|
|
784
673
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
785
|
-
paths:
|
|
674
|
+
paths: TRANSFORM_PATHS_12
|
|
786
675
|
}
|
|
787
676
|
])
|
|
788
677
|
)?.item;
|
|
@@ -810,11 +699,11 @@ async function bulkCreateProjectItems2(options) {
|
|
|
810
699
|
[
|
|
811
700
|
{
|
|
812
701
|
transformFn: transformSDKImageToRESTImage,
|
|
813
|
-
paths:
|
|
702
|
+
paths: TRANSFORM_PATHS_22
|
|
814
703
|
},
|
|
815
704
|
{
|
|
816
705
|
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
817
|
-
paths:
|
|
706
|
+
paths: TRANSFORM_PATHS_32
|
|
818
707
|
}
|
|
819
708
|
]
|
|
820
709
|
);
|
|
@@ -829,11 +718,11 @@ async function bulkCreateProjectItems2(options) {
|
|
|
829
718
|
transformPaths2(result.data, [
|
|
830
719
|
{
|
|
831
720
|
transformFn: transformRESTImageToSDKImage,
|
|
832
|
-
paths:
|
|
721
|
+
paths: TRANSFORM_PATHS_42
|
|
833
722
|
},
|
|
834
723
|
{
|
|
835
724
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
836
|
-
paths:
|
|
725
|
+
paths: TRANSFORM_PATHS_52
|
|
837
726
|
}
|
|
838
727
|
])
|
|
839
728
|
);
|
|
@@ -866,11 +755,11 @@ async function getProjectItem2(itemId) {
|
|
|
866
755
|
transformPaths2(result.data, [
|
|
867
756
|
{
|
|
868
757
|
transformFn: transformRESTImageToSDKImage,
|
|
869
|
-
paths:
|
|
758
|
+
paths: TRANSFORM_PATHS_02
|
|
870
759
|
},
|
|
871
760
|
{
|
|
872
761
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
873
|
-
paths:
|
|
762
|
+
paths: TRANSFORM_PATHS_12
|
|
874
763
|
}
|
|
875
764
|
])
|
|
876
765
|
)?.item;
|
|
@@ -903,11 +792,11 @@ async function listProjectItems2(projectId, options) {
|
|
|
903
792
|
transformPaths2(result.data, [
|
|
904
793
|
{
|
|
905
794
|
transformFn: transformRESTImageToSDKImage,
|
|
906
|
-
paths:
|
|
795
|
+
paths: TRANSFORM_PATHS_22
|
|
907
796
|
},
|
|
908
797
|
{
|
|
909
798
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
910
|
-
paths:
|
|
799
|
+
paths: TRANSFORM_PATHS_32
|
|
911
800
|
}
|
|
912
801
|
])
|
|
913
802
|
);
|
|
@@ -932,11 +821,11 @@ async function updateProjectItem2(_id, item) {
|
|
|
932
821
|
[
|
|
933
822
|
{
|
|
934
823
|
transformFn: transformSDKImageToRESTImage,
|
|
935
|
-
paths:
|
|
824
|
+
paths: TRANSFORM_PATHS_02
|
|
936
825
|
},
|
|
937
826
|
{
|
|
938
827
|
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
939
|
-
paths:
|
|
828
|
+
paths: TRANSFORM_PATHS_12
|
|
940
829
|
}
|
|
941
830
|
]
|
|
942
831
|
);
|
|
@@ -949,11 +838,11 @@ async function updateProjectItem2(_id, item) {
|
|
|
949
838
|
transformPaths2(result.data, [
|
|
950
839
|
{
|
|
951
840
|
transformFn: transformRESTImageToSDKImage,
|
|
952
|
-
paths:
|
|
841
|
+
paths: TRANSFORM_PATHS_02
|
|
953
842
|
},
|
|
954
843
|
{
|
|
955
844
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
956
|
-
paths:
|
|
845
|
+
paths: TRANSFORM_PATHS_12
|
|
957
846
|
}
|
|
958
847
|
])
|
|
959
848
|
)?.item;
|
|
@@ -981,11 +870,11 @@ async function bulkUpdateProjectItems2(options) {
|
|
|
981
870
|
[
|
|
982
871
|
{
|
|
983
872
|
transformFn: transformSDKImageToRESTImage,
|
|
984
|
-
paths:
|
|
873
|
+
paths: TRANSFORM_PATHS_62
|
|
985
874
|
},
|
|
986
875
|
{
|
|
987
876
|
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
988
|
-
paths:
|
|
877
|
+
paths: TRANSFORM_PATHS_72
|
|
989
878
|
}
|
|
990
879
|
]
|
|
991
880
|
);
|
|
@@ -1000,11 +889,11 @@ async function bulkUpdateProjectItems2(options) {
|
|
|
1000
889
|
transformPaths2(result.data, [
|
|
1001
890
|
{
|
|
1002
891
|
transformFn: transformRESTImageToSDKImage,
|
|
1003
|
-
paths:
|
|
892
|
+
paths: TRANSFORM_PATHS_42
|
|
1004
893
|
},
|
|
1005
894
|
{
|
|
1006
895
|
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
1007
|
-
paths:
|
|
896
|
+
paths: TRANSFORM_PATHS_52
|
|
1008
897
|
}
|
|
1009
898
|
])
|
|
1010
899
|
);
|
|
@@ -1106,15 +995,63 @@ async function duplicateProjectItems2(originProjectId, options) {
|
|
|
1106
995
|
throw transformedError;
|
|
1107
996
|
}
|
|
1108
997
|
}
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
// @ts-ignore
|
|
1115
|
-
{ httpClient }
|
|
998
|
+
async function generateTokenForProjectItems2(mediaIds) {
|
|
999
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1000
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ mediaIds });
|
|
1001
|
+
const reqOpts = generateTokenForProjectItems(
|
|
1002
|
+
payload
|
|
1116
1003
|
);
|
|
1004
|
+
sideEffects?.onSiteCall?.();
|
|
1005
|
+
try {
|
|
1006
|
+
const result = await httpClient.request(reqOpts);
|
|
1007
|
+
sideEffects?.onSuccess?.(result);
|
|
1008
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1009
|
+
} catch (err) {
|
|
1010
|
+
const transformedError = sdkTransformError(
|
|
1011
|
+
err,
|
|
1012
|
+
{
|
|
1013
|
+
spreadPathsToArguments: {},
|
|
1014
|
+
explicitPathsToArguments: { mediaIds: "$[0]" },
|
|
1015
|
+
singleArgumentUnchanged: false
|
|
1016
|
+
},
|
|
1017
|
+
["mediaIds"]
|
|
1018
|
+
);
|
|
1019
|
+
sideEffects?.onError?.(err);
|
|
1020
|
+
throw transformedError;
|
|
1021
|
+
}
|
|
1117
1022
|
}
|
|
1023
|
+
|
|
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" }];
|
|
1118
1055
|
function createProjectItem3(httpClient) {
|
|
1119
1056
|
return (item) => createProjectItem2(
|
|
1120
1057
|
item,
|
|
@@ -1181,6 +1118,13 @@ function duplicateProjectItems3(httpClient) {
|
|
|
1181
1118
|
{ httpClient }
|
|
1182
1119
|
);
|
|
1183
1120
|
}
|
|
1121
|
+
function generateTokenForProjectItems3(httpClient) {
|
|
1122
|
+
return (mediaIds) => generateTokenForProjectItems2(
|
|
1123
|
+
mediaIds,
|
|
1124
|
+
// @ts-ignore
|
|
1125
|
+
{ httpClient }
|
|
1126
|
+
);
|
|
1127
|
+
}
|
|
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,7 +1201,6 @@ 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";
|
|
1293
|
-
var generateTokenForProjectItems4 = /* @__PURE__ */ createRESTModule(generateTokenForProjectItems3);
|
|
1294
1204
|
var createProjectItem4 = /* @__PURE__ */ createRESTModule(createProjectItem3);
|
|
1295
1205
|
var bulkCreateProjectItems4 = /* @__PURE__ */ createRESTModule(bulkCreateProjectItems3);
|
|
1296
1206
|
var getProjectItem4 = /* @__PURE__ */ createRESTModule(getProjectItem3);
|
|
@@ -1300,6 +1210,7 @@ var bulkUpdateProjectItems4 = /* @__PURE__ */ createRESTModule(bulkUpdateProject
|
|
|
1300
1210
|
var deleteProjectItem4 = /* @__PURE__ */ createRESTModule(deleteProjectItem3);
|
|
1301
1211
|
var bulkDeleteProjectItems4 = /* @__PURE__ */ createRESTModule(bulkDeleteProjectItems3);
|
|
1302
1212
|
var duplicateProjectItems4 = /* @__PURE__ */ createRESTModule(duplicateProjectItems3);
|
|
1213
|
+
var generateTokenForProjectItems4 = /* @__PURE__ */ createRESTModule(generateTokenForProjectItems3);
|
|
1303
1214
|
var onProjectItemCreated2 = /* @__PURE__ */ createEventModule(
|
|
1304
1215
|
onProjectItemCreated
|
|
1305
1216
|
);
|