@wix/auto_sdk_portfolio_project-items 1.0.45 → 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.
- package/build/cjs/index.js +6 -6
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +414 -397
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.mjs +6 -6
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +414 -397
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +143 -0
- package/build/internal/cjs/meta.d.ts +202 -0
- package/build/internal/es/index.typings.d.mts +143 -0
- package/build/internal/es/meta.d.mts +202 -0
- package/package.json +4 -4
- package/build/internal/cjs/index.js +0 -1371
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -1153
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -959
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.js +0 -824
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -1331
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -1116
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -919
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.mjs +0 -768
- package/build/internal/es/schemas.mjs.map +0 -1
|
@@ -1,1331 +0,0 @@
|
|
|
1
|
-
// src/portfolio-project-items-v1-project-item-project-items.public.ts
|
|
2
|
-
import { renameKeysFromRESTResponseToSDKResponse as renameKeysFromRESTResponseToSDKResponse2 } from "@wix/sdk-runtime/rename-all-nested-keys";
|
|
3
|
-
import { transformRESTFloatToSDKFloat as transformRESTFloatToSDKFloat2 } from "@wix/sdk-runtime/transformations/float";
|
|
4
|
-
import { transformRESTImageToSDKImage as transformRESTImageToSDKImage2 } from "@wix/sdk-runtime/transformations/image";
|
|
5
|
-
import { transformRESTTimestampToSDKTimestamp as transformRESTTimestampToSDKTimestamp2 } from "@wix/sdk-runtime/transformations/timestamp";
|
|
6
|
-
import { transformPaths as transformPaths3 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
7
|
-
import { transformRESTVideoV2ToSDKVideoV2 as transformRESTVideoV2ToSDKVideoV22 } from "@wix/sdk-runtime/transformations/video-v2";
|
|
8
|
-
import { EventDefinition } from "@wix/sdk-types";
|
|
9
|
-
|
|
10
|
-
// src/portfolio-project-items-v1-project-item-project-items.universal.ts
|
|
11
|
-
import { transformError as sdkTransformError } from "@wix/sdk-runtime/transform-error";
|
|
12
|
-
import {
|
|
13
|
-
renameKeysFromSDKRequestToRESTRequest,
|
|
14
|
-
renameKeysFromRESTResponseToSDKResponse
|
|
15
|
-
} from "@wix/sdk-runtime/rename-all-nested-keys";
|
|
16
|
-
|
|
17
|
-
// src/portfolio-project-items-v1-project-item-project-items.http.ts
|
|
18
|
-
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
19
|
-
import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
|
|
20
|
-
import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
|
|
21
|
-
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
22
|
-
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
23
|
-
import { transformSDKFieldMaskToRESTFieldMask } from "@wix/sdk-runtime/transformations/field-mask";
|
|
24
|
-
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
25
|
-
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
26
|
-
function resolveComWixpressPortfolioPortfolioappMediaServiceUrl(opts) {
|
|
27
|
-
const domainToMappings = {
|
|
28
|
-
"manage._base_domain_": [
|
|
29
|
-
{
|
|
30
|
-
srcPath: "/_api/portfolio-app-service",
|
|
31
|
-
destPath: "/api"
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
"editor._base_domain_": [
|
|
35
|
-
{
|
|
36
|
-
srcPath: "/_api/portfolio-app-service",
|
|
37
|
-
destPath: "/api"
|
|
38
|
-
}
|
|
39
|
-
],
|
|
40
|
-
"blocks._base_domain_": [
|
|
41
|
-
{
|
|
42
|
-
srcPath: "/_api/portfolio-app-service",
|
|
43
|
-
destPath: "/api"
|
|
44
|
-
}
|
|
45
|
-
],
|
|
46
|
-
"create.editorx": [
|
|
47
|
-
{
|
|
48
|
-
srcPath: "/_api/portfolio-app-service",
|
|
49
|
-
destPath: "/api"
|
|
50
|
-
}
|
|
51
|
-
],
|
|
52
|
-
_: [
|
|
53
|
-
{
|
|
54
|
-
srcPath: "/_api/portfolio-app-service",
|
|
55
|
-
destPath: "/api"
|
|
56
|
-
}
|
|
57
|
-
],
|
|
58
|
-
"api._api_base_domain_": [
|
|
59
|
-
{
|
|
60
|
-
srcPath: "/_api/portfolio-app-service",
|
|
61
|
-
destPath: "/api"
|
|
62
|
-
}
|
|
63
|
-
],
|
|
64
|
-
"www.wixapis.com": [
|
|
65
|
-
{
|
|
66
|
-
srcPath: "/portfolio/v1/settings",
|
|
67
|
-
destPath: "/api/v1/portfolio/settings"
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
|
|
71
|
-
destPath: "/api/v1/portfolio/settings"
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
|
|
75
|
-
destPath: "/api/v1/portfolio/project/items/media"
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
"*.dev.wix-code.com": [
|
|
79
|
-
{
|
|
80
|
-
srcPath: "/portfolio/portfolio-app/api/v1/portfolio/settings",
|
|
81
|
-
destPath: "/api/v1/portfolio/settings"
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
srcPath: "/portfolio/project-items/api/v1/portfolio/project/items/media",
|
|
85
|
-
destPath: "/api/v1/portfolio/project/items/media"
|
|
86
|
-
}
|
|
87
|
-
]
|
|
88
|
-
};
|
|
89
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
90
|
-
}
|
|
91
|
-
function resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl(opts) {
|
|
92
|
-
const domainToMappings = {
|
|
93
|
-
"manage._base_domain_": [
|
|
94
|
-
{
|
|
95
|
-
srcPath: "/_api/project-items-service",
|
|
96
|
-
destPath: "/api"
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
"editor._base_domain_": [
|
|
100
|
-
{
|
|
101
|
-
srcPath: "/_api/project-items-service",
|
|
102
|
-
destPath: "/api"
|
|
103
|
-
}
|
|
104
|
-
],
|
|
105
|
-
"blocks._base_domain_": [
|
|
106
|
-
{
|
|
107
|
-
srcPath: "/_api/project-items-service",
|
|
108
|
-
destPath: "/api"
|
|
109
|
-
}
|
|
110
|
-
],
|
|
111
|
-
"create.editorx": [
|
|
112
|
-
{
|
|
113
|
-
srcPath: "/_api/project-items-service",
|
|
114
|
-
destPath: "/api"
|
|
115
|
-
}
|
|
116
|
-
],
|
|
117
|
-
"*.dev.wix-code.com": [
|
|
118
|
-
{
|
|
119
|
-
srcPath: "/_api/project-items-service",
|
|
120
|
-
destPath: "/api"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/create",
|
|
124
|
-
destPath: "/api/v1/bulk/portfolio/items/create"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
srcPath: "/portfolio/project-items/api/v1/items/duplicate",
|
|
128
|
-
destPath: "/api/v1/items/duplicate"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/delete",
|
|
132
|
-
destPath: "/api/v1/bulk/portfolio/items/delete"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/update",
|
|
136
|
-
destPath: "/api/v1/bulk/portfolio/items/update"
|
|
137
|
-
}
|
|
138
|
-
],
|
|
139
|
-
"www._base_domain_": [
|
|
140
|
-
{
|
|
141
|
-
srcPath: "/_api/project-items-service",
|
|
142
|
-
destPath: "/api"
|
|
143
|
-
}
|
|
144
|
-
],
|
|
145
|
-
"www.wixapis.com": [
|
|
146
|
-
{
|
|
147
|
-
srcPath: "/portfolio/v1/projectItems",
|
|
148
|
-
destPath: "/api/v1/portfolio/projects"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
srcPath: "/portfolio/v1/items",
|
|
152
|
-
destPath: "/api/v1/portfolio/items"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/create",
|
|
156
|
-
destPath: "/api/v1/bulk/portfolio/items/create"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
srcPath: "/portfolio/project-items/api/v1/items/duplicate",
|
|
160
|
-
destPath: "/api/v1/items/duplicate"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/delete",
|
|
164
|
-
destPath: "/api/v1/bulk/portfolio/items/delete"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/update",
|
|
168
|
-
destPath: "/api/v1/bulk/portfolio/items/update"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
srcPath: "/portfolio/project-items/api/v1/portfolio/items",
|
|
172
|
-
destPath: "/api/v1/portfolio/items"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
srcPath: "/portfolio/project-items/api/v1/portfolio/projects",
|
|
176
|
-
destPath: "/api/v1/portfolio/projects"
|
|
177
|
-
}
|
|
178
|
-
],
|
|
179
|
-
"api._api_base_domain_": [
|
|
180
|
-
{
|
|
181
|
-
srcPath: "/project-items-service",
|
|
182
|
-
destPath: ""
|
|
183
|
-
}
|
|
184
|
-
],
|
|
185
|
-
_: [
|
|
186
|
-
{
|
|
187
|
-
srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/create",
|
|
188
|
-
destPath: "/api/v1/bulk/portfolio/items/create"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
srcPath: "/portfolio/project-items/api/v1/items/duplicate",
|
|
192
|
-
destPath: "/api/v1/items/duplicate"
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/delete",
|
|
196
|
-
destPath: "/api/v1/bulk/portfolio/items/delete"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
srcPath: "/portfolio/project-items/api/v1/bulk/portfolio/items/update",
|
|
200
|
-
destPath: "/api/v1/bulk/portfolio/items/update"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
srcPath: "/_api/project-items-service",
|
|
204
|
-
destPath: "/api"
|
|
205
|
-
}
|
|
206
|
-
]
|
|
207
|
-
};
|
|
208
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
209
|
-
}
|
|
210
|
-
var PACKAGE_NAME = "@wix/auto_sdk_portfolio_project-items";
|
|
211
|
-
function createProjectItem(payload) {
|
|
212
|
-
function __createProjectItem({ host }) {
|
|
213
|
-
const serializedData = transformPaths(payload, [
|
|
214
|
-
{
|
|
215
|
-
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
|
-
]
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
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
|
-
]
|
|
235
|
-
}
|
|
236
|
-
]);
|
|
237
|
-
const metadata = {
|
|
238
|
-
entityFqdn: "wix.portfolio.project_items.v1.project_item",
|
|
239
|
-
method: "POST",
|
|
240
|
-
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.CreateProjectItem",
|
|
241
|
-
packageName: PACKAGE_NAME,
|
|
242
|
-
migrationOptions: {
|
|
243
|
-
optInTransformResponse: true
|
|
244
|
-
},
|
|
245
|
-
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
246
|
-
protoPath: "/api/v1/portfolio/items",
|
|
247
|
-
data: serializedData,
|
|
248
|
-
host
|
|
249
|
-
}),
|
|
250
|
-
data: serializedData,
|
|
251
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
252
|
-
{
|
|
253
|
-
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
|
-
]
|
|
262
|
-
},
|
|
263
|
-
{
|
|
264
|
-
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
|
-
]
|
|
275
|
-
}
|
|
276
|
-
])
|
|
277
|
-
};
|
|
278
|
-
return metadata;
|
|
279
|
-
}
|
|
280
|
-
return __createProjectItem;
|
|
281
|
-
}
|
|
282
|
-
function bulkCreateProjectItems(payload) {
|
|
283
|
-
function __bulkCreateProjectItems({ host }) {
|
|
284
|
-
const serializedData = transformPaths(payload, [
|
|
285
|
-
{
|
|
286
|
-
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
|
-
]
|
|
295
|
-
},
|
|
296
|
-
{
|
|
297
|
-
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
|
-
]
|
|
308
|
-
}
|
|
309
|
-
]);
|
|
310
|
-
const metadata = {
|
|
311
|
-
entityFqdn: "wix.portfolio.project_items.v1.project_item",
|
|
312
|
-
method: "POST",
|
|
313
|
-
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.BulkCreateProjectItems",
|
|
314
|
-
packageName: PACKAGE_NAME,
|
|
315
|
-
migrationOptions: {
|
|
316
|
-
optInTransformResponse: true
|
|
317
|
-
},
|
|
318
|
-
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
319
|
-
protoPath: "/api/v1/bulk/portfolio/items/create",
|
|
320
|
-
data: serializedData,
|
|
321
|
-
host
|
|
322
|
-
}),
|
|
323
|
-
data: serializedData,
|
|
324
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
325
|
-
{
|
|
326
|
-
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
|
-
]
|
|
335
|
-
},
|
|
336
|
-
{
|
|
337
|
-
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
|
-
]
|
|
350
|
-
}
|
|
351
|
-
])
|
|
352
|
-
};
|
|
353
|
-
return metadata;
|
|
354
|
-
}
|
|
355
|
-
return __bulkCreateProjectItems;
|
|
356
|
-
}
|
|
357
|
-
function getProjectItem(payload) {
|
|
358
|
-
function __getProjectItem({ host }) {
|
|
359
|
-
const metadata = {
|
|
360
|
-
entityFqdn: "wix.portfolio.project_items.v1.project_item",
|
|
361
|
-
method: "GET",
|
|
362
|
-
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.GetProjectItem",
|
|
363
|
-
packageName: PACKAGE_NAME,
|
|
364
|
-
migrationOptions: {
|
|
365
|
-
optInTransformResponse: true
|
|
366
|
-
},
|
|
367
|
-
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
368
|
-
protoPath: "/api/v1/portfolio/items/{itemId}",
|
|
369
|
-
data: payload,
|
|
370
|
-
host
|
|
371
|
-
}),
|
|
372
|
-
params: toURLSearchParams(payload),
|
|
373
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
374
|
-
{
|
|
375
|
-
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
|
-
]
|
|
384
|
-
},
|
|
385
|
-
{
|
|
386
|
-
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
|
-
]
|
|
397
|
-
}
|
|
398
|
-
]),
|
|
399
|
-
fallback: [
|
|
400
|
-
{
|
|
401
|
-
method: "GET",
|
|
402
|
-
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
403
|
-
protoPath: "/api/v1/portfolio/items/{itemId}",
|
|
404
|
-
data: payload,
|
|
405
|
-
host
|
|
406
|
-
}),
|
|
407
|
-
params: toURLSearchParams(payload)
|
|
408
|
-
}
|
|
409
|
-
]
|
|
410
|
-
};
|
|
411
|
-
return metadata;
|
|
412
|
-
}
|
|
413
|
-
return __getProjectItem;
|
|
414
|
-
}
|
|
415
|
-
function listProjectItems(payload) {
|
|
416
|
-
function __listProjectItems({ host }) {
|
|
417
|
-
const metadata = {
|
|
418
|
-
entityFqdn: "wix.portfolio.project_items.v1.project_item",
|
|
419
|
-
method: "GET",
|
|
420
|
-
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.ListProjectItems",
|
|
421
|
-
packageName: PACKAGE_NAME,
|
|
422
|
-
migrationOptions: {
|
|
423
|
-
optInTransformResponse: true
|
|
424
|
-
},
|
|
425
|
-
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
426
|
-
protoPath: "/api/v1/portfolio/projects/{projectId}/items",
|
|
427
|
-
data: payload,
|
|
428
|
-
host
|
|
429
|
-
}),
|
|
430
|
-
params: toURLSearchParams(payload),
|
|
431
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
432
|
-
{
|
|
433
|
-
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
|
-
]
|
|
442
|
-
},
|
|
443
|
-
{
|
|
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
|
-
]
|
|
455
|
-
}
|
|
456
|
-
])
|
|
457
|
-
};
|
|
458
|
-
return metadata;
|
|
459
|
-
}
|
|
460
|
-
return __listProjectItems;
|
|
461
|
-
}
|
|
462
|
-
function updateProjectItem(payload) {
|
|
463
|
-
function __updateProjectItem({ host }) {
|
|
464
|
-
const serializedData = transformPaths(payload, [
|
|
465
|
-
{
|
|
466
|
-
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
467
|
-
paths: [{ path: "mask" }]
|
|
468
|
-
},
|
|
469
|
-
{
|
|
470
|
-
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
|
-
]
|
|
479
|
-
},
|
|
480
|
-
{
|
|
481
|
-
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
|
-
]
|
|
490
|
-
}
|
|
491
|
-
]);
|
|
492
|
-
const metadata = {
|
|
493
|
-
entityFqdn: "wix.portfolio.project_items.v1.project_item",
|
|
494
|
-
method: "PATCH",
|
|
495
|
-
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.UpdateProjectItem",
|
|
496
|
-
packageName: PACKAGE_NAME,
|
|
497
|
-
migrationOptions: {
|
|
498
|
-
optInTransformResponse: true
|
|
499
|
-
},
|
|
500
|
-
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
501
|
-
protoPath: "/api/v1/portfolio/items/{item.id}",
|
|
502
|
-
data: serializedData,
|
|
503
|
-
host
|
|
504
|
-
}),
|
|
505
|
-
data: serializedData,
|
|
506
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
507
|
-
{
|
|
508
|
-
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
|
-
]
|
|
517
|
-
},
|
|
518
|
-
{
|
|
519
|
-
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
|
-
]
|
|
530
|
-
}
|
|
531
|
-
])
|
|
532
|
-
};
|
|
533
|
-
return metadata;
|
|
534
|
-
}
|
|
535
|
-
return __updateProjectItem;
|
|
536
|
-
}
|
|
537
|
-
function bulkUpdateProjectItems(payload) {
|
|
538
|
-
function __bulkUpdateProjectItems({ host }) {
|
|
539
|
-
const serializedData = transformPaths(payload, [
|
|
540
|
-
{
|
|
541
|
-
transformFn: transformSDKFieldMaskToRESTFieldMask,
|
|
542
|
-
paths: [{ path: "items.fieldMask" }]
|
|
543
|
-
},
|
|
544
|
-
{
|
|
545
|
-
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
|
-
]
|
|
554
|
-
},
|
|
555
|
-
{
|
|
556
|
-
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
|
-
]
|
|
567
|
-
}
|
|
568
|
-
]);
|
|
569
|
-
const metadata = {
|
|
570
|
-
entityFqdn: "wix.portfolio.project_items.v1.project_item",
|
|
571
|
-
method: "PATCH",
|
|
572
|
-
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.BulkUpdateProjectItems",
|
|
573
|
-
packageName: PACKAGE_NAME,
|
|
574
|
-
migrationOptions: {
|
|
575
|
-
optInTransformResponse: true
|
|
576
|
-
},
|
|
577
|
-
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
578
|
-
protoPath: "/api/v1/bulk/portfolio/items/update",
|
|
579
|
-
data: serializedData,
|
|
580
|
-
host
|
|
581
|
-
}),
|
|
582
|
-
data: serializedData,
|
|
583
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
584
|
-
{
|
|
585
|
-
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
|
-
]
|
|
594
|
-
},
|
|
595
|
-
{
|
|
596
|
-
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
|
-
]
|
|
609
|
-
}
|
|
610
|
-
])
|
|
611
|
-
};
|
|
612
|
-
return metadata;
|
|
613
|
-
}
|
|
614
|
-
return __bulkUpdateProjectItems;
|
|
615
|
-
}
|
|
616
|
-
function deleteProjectItem(payload) {
|
|
617
|
-
function __deleteProjectItem({ host }) {
|
|
618
|
-
const metadata = {
|
|
619
|
-
entityFqdn: "wix.portfolio.project_items.v1.project_item",
|
|
620
|
-
method: "DELETE",
|
|
621
|
-
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.DeleteProjectItem",
|
|
622
|
-
packageName: PACKAGE_NAME,
|
|
623
|
-
migrationOptions: {
|
|
624
|
-
optInTransformResponse: true
|
|
625
|
-
},
|
|
626
|
-
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
627
|
-
protoPath: "/api/v1/portfolio/items/{itemId}",
|
|
628
|
-
data: payload,
|
|
629
|
-
host
|
|
630
|
-
}),
|
|
631
|
-
params: toURLSearchParams(payload)
|
|
632
|
-
};
|
|
633
|
-
return metadata;
|
|
634
|
-
}
|
|
635
|
-
return __deleteProjectItem;
|
|
636
|
-
}
|
|
637
|
-
function bulkDeleteProjectItems(payload) {
|
|
638
|
-
function __bulkDeleteProjectItems({ host }) {
|
|
639
|
-
const metadata = {
|
|
640
|
-
entityFqdn: "wix.portfolio.project_items.v1.project_item",
|
|
641
|
-
method: "DELETE",
|
|
642
|
-
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.BulkDeleteProjectItems",
|
|
643
|
-
packageName: PACKAGE_NAME,
|
|
644
|
-
migrationOptions: {
|
|
645
|
-
optInTransformResponse: true
|
|
646
|
-
},
|
|
647
|
-
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
648
|
-
protoPath: "/api/v1/bulk/portfolio/items/delete",
|
|
649
|
-
data: payload,
|
|
650
|
-
host
|
|
651
|
-
}),
|
|
652
|
-
params: toURLSearchParams(payload)
|
|
653
|
-
};
|
|
654
|
-
return metadata;
|
|
655
|
-
}
|
|
656
|
-
return __bulkDeleteProjectItems;
|
|
657
|
-
}
|
|
658
|
-
function duplicateProjectItems(payload) {
|
|
659
|
-
function __duplicateProjectItems({ host }) {
|
|
660
|
-
const metadata = {
|
|
661
|
-
entityFqdn: "wix.portfolio.project_items.v1.project_item",
|
|
662
|
-
method: "POST",
|
|
663
|
-
methodFqn: "com.wixpress.portfolio.projectitems.ProjectItemsService.DuplicateProjectItems",
|
|
664
|
-
packageName: PACKAGE_NAME,
|
|
665
|
-
migrationOptions: {
|
|
666
|
-
optInTransformResponse: true
|
|
667
|
-
},
|
|
668
|
-
url: resolveComWixpressPortfolioProjectitemsProjectItemsServiceUrl({
|
|
669
|
-
protoPath: "/api/v1/items/duplicate",
|
|
670
|
-
data: payload,
|
|
671
|
-
host
|
|
672
|
-
}),
|
|
673
|
-
data: payload
|
|
674
|
-
};
|
|
675
|
-
return metadata;
|
|
676
|
-
}
|
|
677
|
-
return __duplicateProjectItems;
|
|
678
|
-
}
|
|
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
|
-
|
|
701
|
-
// src/portfolio-project-items-v1-project-item-project-items.universal.ts
|
|
702
|
-
import { transformSDKImageToRESTImage } from "@wix/sdk-runtime/transformations/image";
|
|
703
|
-
import { transformRESTImageToSDKImage } from "@wix/sdk-runtime/transformations/image";
|
|
704
|
-
import { transformSDKVideoV2ToRESTVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
|
|
705
|
-
import { transformRESTVideoV2ToSDKVideoV2 } from "@wix/sdk-runtime/transformations/video-v2";
|
|
706
|
-
import { transformPaths as transformPaths2 } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
707
|
-
var Type = /* @__PURE__ */ ((Type2) => {
|
|
708
|
-
Type2["UNDEFINED"] = "UNDEFINED";
|
|
709
|
-
Type2["IMAGE"] = "IMAGE";
|
|
710
|
-
Type2["VIDEO"] = "VIDEO";
|
|
711
|
-
return Type2;
|
|
712
|
-
})(Type || {});
|
|
713
|
-
var ImageType = /* @__PURE__ */ ((ImageType2) => {
|
|
714
|
-
ImageType2["UNDEFINED"] = "UNDEFINED";
|
|
715
|
-
ImageType2["WIX_MEDIA"] = "WIX_MEDIA";
|
|
716
|
-
ImageType2["EXTERNAL"] = "EXTERNAL";
|
|
717
|
-
return ImageType2;
|
|
718
|
-
})(ImageType || {});
|
|
719
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
720
|
-
SortOrder2["ASC"] = "ASC";
|
|
721
|
-
SortOrder2["DESC"] = "DESC";
|
|
722
|
-
return SortOrder2;
|
|
723
|
-
})(SortOrder || {});
|
|
724
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
725
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
726
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
727
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
728
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
729
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
730
|
-
return WebhookIdentityType2;
|
|
731
|
-
})(WebhookIdentityType || {});
|
|
732
|
-
async function createProjectItem2(item) {
|
|
733
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
734
|
-
const payload = transformPaths2(
|
|
735
|
-
renameKeysFromSDKRequestToRESTRequest({ item }),
|
|
736
|
-
[
|
|
737
|
-
{
|
|
738
|
-
transformFn: transformSDKImageToRESTImage,
|
|
739
|
-
paths: [{ path: "item.image.imageInfo" }]
|
|
740
|
-
},
|
|
741
|
-
{
|
|
742
|
-
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
743
|
-
paths: [{ path: "item.video.videoInfo" }]
|
|
744
|
-
}
|
|
745
|
-
]
|
|
746
|
-
);
|
|
747
|
-
const reqOpts = createProjectItem(payload);
|
|
748
|
-
sideEffects?.onSiteCall?.();
|
|
749
|
-
try {
|
|
750
|
-
const result = await httpClient.request(reqOpts);
|
|
751
|
-
sideEffects?.onSuccess?.(result);
|
|
752
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
753
|
-
transformPaths2(result.data, [
|
|
754
|
-
{
|
|
755
|
-
transformFn: transformRESTImageToSDKImage,
|
|
756
|
-
paths: [{ path: "item.image.imageInfo" }]
|
|
757
|
-
},
|
|
758
|
-
{
|
|
759
|
-
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
760
|
-
paths: [{ path: "item.video.videoInfo" }]
|
|
761
|
-
}
|
|
762
|
-
])
|
|
763
|
-
)?.item;
|
|
764
|
-
} catch (err) {
|
|
765
|
-
const transformedError = sdkTransformError(
|
|
766
|
-
err,
|
|
767
|
-
{
|
|
768
|
-
spreadPathsToArguments: {},
|
|
769
|
-
explicitPathsToArguments: { item: "$[0]" },
|
|
770
|
-
singleArgumentUnchanged: false
|
|
771
|
-
},
|
|
772
|
-
["item"]
|
|
773
|
-
);
|
|
774
|
-
sideEffects?.onError?.(err);
|
|
775
|
-
throw transformedError;
|
|
776
|
-
}
|
|
777
|
-
}
|
|
778
|
-
async function bulkCreateProjectItems2(options) {
|
|
779
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
780
|
-
const payload = transformPaths2(
|
|
781
|
-
renameKeysFromSDKRequestToRESTRequest({
|
|
782
|
-
items: options?.items,
|
|
783
|
-
returnFullEntity: options?.returnFullEntity
|
|
784
|
-
}),
|
|
785
|
-
[
|
|
786
|
-
{
|
|
787
|
-
transformFn: transformSDKImageToRESTImage,
|
|
788
|
-
paths: [{ path: "items.image.imageInfo" }]
|
|
789
|
-
},
|
|
790
|
-
{
|
|
791
|
-
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
792
|
-
paths: [{ path: "items.video.videoInfo" }]
|
|
793
|
-
}
|
|
794
|
-
]
|
|
795
|
-
);
|
|
796
|
-
const reqOpts = bulkCreateProjectItems(
|
|
797
|
-
payload
|
|
798
|
-
);
|
|
799
|
-
sideEffects?.onSiteCall?.();
|
|
800
|
-
try {
|
|
801
|
-
const result = await httpClient.request(reqOpts);
|
|
802
|
-
sideEffects?.onSuccess?.(result);
|
|
803
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
804
|
-
transformPaths2(result.data, [
|
|
805
|
-
{
|
|
806
|
-
transformFn: transformRESTImageToSDKImage,
|
|
807
|
-
paths: [{ path: "results.item.image.imageInfo" }]
|
|
808
|
-
},
|
|
809
|
-
{
|
|
810
|
-
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
811
|
-
paths: [{ path: "results.item.video.videoInfo" }]
|
|
812
|
-
}
|
|
813
|
-
])
|
|
814
|
-
);
|
|
815
|
-
} catch (err) {
|
|
816
|
-
const transformedError = sdkTransformError(
|
|
817
|
-
err,
|
|
818
|
-
{
|
|
819
|
-
spreadPathsToArguments: {},
|
|
820
|
-
explicitPathsToArguments: {
|
|
821
|
-
items: "$[0].items",
|
|
822
|
-
returnFullEntity: "$[0].returnFullEntity"
|
|
823
|
-
},
|
|
824
|
-
singleArgumentUnchanged: false
|
|
825
|
-
},
|
|
826
|
-
["options"]
|
|
827
|
-
);
|
|
828
|
-
sideEffects?.onError?.(err);
|
|
829
|
-
throw transformedError;
|
|
830
|
-
}
|
|
831
|
-
}
|
|
832
|
-
async function getProjectItem2(itemId) {
|
|
833
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
834
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({ itemId });
|
|
835
|
-
const reqOpts = getProjectItem(payload);
|
|
836
|
-
sideEffects?.onSiteCall?.();
|
|
837
|
-
try {
|
|
838
|
-
const result = await httpClient.request(reqOpts);
|
|
839
|
-
sideEffects?.onSuccess?.(result);
|
|
840
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
841
|
-
transformPaths2(result.data, [
|
|
842
|
-
{
|
|
843
|
-
transformFn: transformRESTImageToSDKImage,
|
|
844
|
-
paths: [{ path: "item.image.imageInfo" }]
|
|
845
|
-
},
|
|
846
|
-
{
|
|
847
|
-
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
848
|
-
paths: [{ path: "item.video.videoInfo" }]
|
|
849
|
-
}
|
|
850
|
-
])
|
|
851
|
-
)?.item;
|
|
852
|
-
} catch (err) {
|
|
853
|
-
const transformedError = sdkTransformError(
|
|
854
|
-
err,
|
|
855
|
-
{
|
|
856
|
-
spreadPathsToArguments: {},
|
|
857
|
-
explicitPathsToArguments: { itemId: "$[0]" },
|
|
858
|
-
singleArgumentUnchanged: false
|
|
859
|
-
},
|
|
860
|
-
["itemId"]
|
|
861
|
-
);
|
|
862
|
-
sideEffects?.onError?.(err);
|
|
863
|
-
throw transformedError;
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
async function listProjectItems2(projectId, options) {
|
|
867
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
868
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
869
|
-
projectId,
|
|
870
|
-
paging: options?.paging
|
|
871
|
-
});
|
|
872
|
-
const reqOpts = listProjectItems(payload);
|
|
873
|
-
sideEffects?.onSiteCall?.();
|
|
874
|
-
try {
|
|
875
|
-
const result = await httpClient.request(reqOpts);
|
|
876
|
-
sideEffects?.onSuccess?.(result);
|
|
877
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
878
|
-
transformPaths2(result.data, [
|
|
879
|
-
{
|
|
880
|
-
transformFn: transformRESTImageToSDKImage,
|
|
881
|
-
paths: [{ path: "items.image.imageInfo" }]
|
|
882
|
-
},
|
|
883
|
-
{
|
|
884
|
-
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
885
|
-
paths: [{ path: "items.video.videoInfo" }]
|
|
886
|
-
}
|
|
887
|
-
])
|
|
888
|
-
);
|
|
889
|
-
} catch (err) {
|
|
890
|
-
const transformedError = sdkTransformError(
|
|
891
|
-
err,
|
|
892
|
-
{
|
|
893
|
-
spreadPathsToArguments: {},
|
|
894
|
-
explicitPathsToArguments: { projectId: "$[0]", paging: "$[1].paging" },
|
|
895
|
-
singleArgumentUnchanged: false
|
|
896
|
-
},
|
|
897
|
-
["projectId", "options"]
|
|
898
|
-
);
|
|
899
|
-
sideEffects?.onError?.(err);
|
|
900
|
-
throw transformedError;
|
|
901
|
-
}
|
|
902
|
-
}
|
|
903
|
-
async function updateProjectItem2(_id, item) {
|
|
904
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
905
|
-
const payload = transformPaths2(
|
|
906
|
-
renameKeysFromSDKRequestToRESTRequest({ item: { ...item, id: _id } }),
|
|
907
|
-
[
|
|
908
|
-
{
|
|
909
|
-
transformFn: transformSDKImageToRESTImage,
|
|
910
|
-
paths: [{ path: "item.image.imageInfo" }]
|
|
911
|
-
},
|
|
912
|
-
{
|
|
913
|
-
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
914
|
-
paths: [{ path: "item.video.videoInfo" }]
|
|
915
|
-
}
|
|
916
|
-
]
|
|
917
|
-
);
|
|
918
|
-
const reqOpts = updateProjectItem(payload);
|
|
919
|
-
sideEffects?.onSiteCall?.();
|
|
920
|
-
try {
|
|
921
|
-
const result = await httpClient.request(reqOpts);
|
|
922
|
-
sideEffects?.onSuccess?.(result);
|
|
923
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
924
|
-
transformPaths2(result.data, [
|
|
925
|
-
{
|
|
926
|
-
transformFn: transformRESTImageToSDKImage,
|
|
927
|
-
paths: [{ path: "item.image.imageInfo" }]
|
|
928
|
-
},
|
|
929
|
-
{
|
|
930
|
-
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
931
|
-
paths: [{ path: "item.video.videoInfo" }]
|
|
932
|
-
}
|
|
933
|
-
])
|
|
934
|
-
)?.item;
|
|
935
|
-
} catch (err) {
|
|
936
|
-
const transformedError = sdkTransformError(
|
|
937
|
-
err,
|
|
938
|
-
{
|
|
939
|
-
spreadPathsToArguments: { item: "$[1]" },
|
|
940
|
-
explicitPathsToArguments: { "item.id": "$[0]" },
|
|
941
|
-
singleArgumentUnchanged: false
|
|
942
|
-
},
|
|
943
|
-
["_id", "item"]
|
|
944
|
-
);
|
|
945
|
-
sideEffects?.onError?.(err);
|
|
946
|
-
throw transformedError;
|
|
947
|
-
}
|
|
948
|
-
}
|
|
949
|
-
async function bulkUpdateProjectItems2(options) {
|
|
950
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
951
|
-
const payload = transformPaths2(
|
|
952
|
-
renameKeysFromSDKRequestToRESTRequest({
|
|
953
|
-
items: options?.items,
|
|
954
|
-
returnFullEntity: options?.returnFullEntity
|
|
955
|
-
}),
|
|
956
|
-
[
|
|
957
|
-
{
|
|
958
|
-
transformFn: transformSDKImageToRESTImage,
|
|
959
|
-
paths: [{ path: "items.item.image.imageInfo" }]
|
|
960
|
-
},
|
|
961
|
-
{
|
|
962
|
-
transformFn: transformSDKVideoV2ToRESTVideoV2,
|
|
963
|
-
paths: [{ path: "items.item.video.videoInfo" }]
|
|
964
|
-
}
|
|
965
|
-
]
|
|
966
|
-
);
|
|
967
|
-
const reqOpts = bulkUpdateProjectItems(
|
|
968
|
-
payload
|
|
969
|
-
);
|
|
970
|
-
sideEffects?.onSiteCall?.();
|
|
971
|
-
try {
|
|
972
|
-
const result = await httpClient.request(reqOpts);
|
|
973
|
-
sideEffects?.onSuccess?.(result);
|
|
974
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
975
|
-
transformPaths2(result.data, [
|
|
976
|
-
{
|
|
977
|
-
transformFn: transformRESTImageToSDKImage,
|
|
978
|
-
paths: [{ path: "results.item.image.imageInfo" }]
|
|
979
|
-
},
|
|
980
|
-
{
|
|
981
|
-
transformFn: transformRESTVideoV2ToSDKVideoV2,
|
|
982
|
-
paths: [{ path: "results.item.video.videoInfo" }]
|
|
983
|
-
}
|
|
984
|
-
])
|
|
985
|
-
);
|
|
986
|
-
} catch (err) {
|
|
987
|
-
const transformedError = sdkTransformError(
|
|
988
|
-
err,
|
|
989
|
-
{
|
|
990
|
-
spreadPathsToArguments: {},
|
|
991
|
-
explicitPathsToArguments: {
|
|
992
|
-
items: "$[0].items",
|
|
993
|
-
returnFullEntity: "$[0].returnFullEntity"
|
|
994
|
-
},
|
|
995
|
-
singleArgumentUnchanged: false
|
|
996
|
-
},
|
|
997
|
-
["options"]
|
|
998
|
-
);
|
|
999
|
-
sideEffects?.onError?.(err);
|
|
1000
|
-
throw transformedError;
|
|
1001
|
-
}
|
|
1002
|
-
}
|
|
1003
|
-
async function deleteProjectItem2(itemId) {
|
|
1004
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1005
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({ itemId });
|
|
1006
|
-
const reqOpts = deleteProjectItem(payload);
|
|
1007
|
-
sideEffects?.onSiteCall?.();
|
|
1008
|
-
try {
|
|
1009
|
-
const result = await httpClient.request(reqOpts);
|
|
1010
|
-
sideEffects?.onSuccess?.(result);
|
|
1011
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1012
|
-
} catch (err) {
|
|
1013
|
-
const transformedError = sdkTransformError(
|
|
1014
|
-
err,
|
|
1015
|
-
{
|
|
1016
|
-
spreadPathsToArguments: {},
|
|
1017
|
-
explicitPathsToArguments: { itemId: "$[0]" },
|
|
1018
|
-
singleArgumentUnchanged: false
|
|
1019
|
-
},
|
|
1020
|
-
["itemId"]
|
|
1021
|
-
);
|
|
1022
|
-
sideEffects?.onError?.(err);
|
|
1023
|
-
throw transformedError;
|
|
1024
|
-
}
|
|
1025
|
-
}
|
|
1026
|
-
async function bulkDeleteProjectItems2(options) {
|
|
1027
|
-
const { httpClient, sideEffects } = arguments[1];
|
|
1028
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1029
|
-
itemIds: options?.itemIds
|
|
1030
|
-
});
|
|
1031
|
-
const reqOpts = bulkDeleteProjectItems(
|
|
1032
|
-
payload
|
|
1033
|
-
);
|
|
1034
|
-
sideEffects?.onSiteCall?.();
|
|
1035
|
-
try {
|
|
1036
|
-
const result = await httpClient.request(reqOpts);
|
|
1037
|
-
sideEffects?.onSuccess?.(result);
|
|
1038
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1039
|
-
} catch (err) {
|
|
1040
|
-
const transformedError = sdkTransformError(
|
|
1041
|
-
err,
|
|
1042
|
-
{
|
|
1043
|
-
spreadPathsToArguments: {},
|
|
1044
|
-
explicitPathsToArguments: { itemIds: "$[0].itemIds" },
|
|
1045
|
-
singleArgumentUnchanged: false
|
|
1046
|
-
},
|
|
1047
|
-
["options"]
|
|
1048
|
-
);
|
|
1049
|
-
sideEffects?.onError?.(err);
|
|
1050
|
-
throw transformedError;
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
async function duplicateProjectItems2(originProjectId, options) {
|
|
1054
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
1055
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1056
|
-
originProjectId,
|
|
1057
|
-
targetProjectId: options?.targetProjectId
|
|
1058
|
-
});
|
|
1059
|
-
const reqOpts = duplicateProjectItems(
|
|
1060
|
-
payload
|
|
1061
|
-
);
|
|
1062
|
-
sideEffects?.onSiteCall?.();
|
|
1063
|
-
try {
|
|
1064
|
-
const result = await httpClient.request(reqOpts);
|
|
1065
|
-
sideEffects?.onSuccess?.(result);
|
|
1066
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1067
|
-
} catch (err) {
|
|
1068
|
-
const transformedError = sdkTransformError(
|
|
1069
|
-
err,
|
|
1070
|
-
{
|
|
1071
|
-
spreadPathsToArguments: {},
|
|
1072
|
-
explicitPathsToArguments: {
|
|
1073
|
-
originProjectId: "$[0]",
|
|
1074
|
-
targetProjectId: "$[1].targetProjectId"
|
|
1075
|
-
},
|
|
1076
|
-
singleArgumentUnchanged: false
|
|
1077
|
-
},
|
|
1078
|
-
["originProjectId", "options"]
|
|
1079
|
-
);
|
|
1080
|
-
sideEffects?.onError?.(err);
|
|
1081
|
-
throw transformedError;
|
|
1082
|
-
}
|
|
1083
|
-
}
|
|
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
|
-
|
|
1110
|
-
// src/portfolio-project-items-v1-project-item-project-items.public.ts
|
|
1111
|
-
function createProjectItem3(httpClient) {
|
|
1112
|
-
return (item) => createProjectItem2(
|
|
1113
|
-
item,
|
|
1114
|
-
// @ts-ignore
|
|
1115
|
-
{ httpClient }
|
|
1116
|
-
);
|
|
1117
|
-
}
|
|
1118
|
-
function bulkCreateProjectItems3(httpClient) {
|
|
1119
|
-
return (options) => bulkCreateProjectItems2(
|
|
1120
|
-
options,
|
|
1121
|
-
// @ts-ignore
|
|
1122
|
-
{ httpClient }
|
|
1123
|
-
);
|
|
1124
|
-
}
|
|
1125
|
-
function getProjectItem3(httpClient) {
|
|
1126
|
-
return (itemId) => getProjectItem2(
|
|
1127
|
-
itemId,
|
|
1128
|
-
// @ts-ignore
|
|
1129
|
-
{ httpClient }
|
|
1130
|
-
);
|
|
1131
|
-
}
|
|
1132
|
-
function listProjectItems3(httpClient) {
|
|
1133
|
-
return (projectId, options) => listProjectItems2(
|
|
1134
|
-
projectId,
|
|
1135
|
-
options,
|
|
1136
|
-
// @ts-ignore
|
|
1137
|
-
{ httpClient }
|
|
1138
|
-
);
|
|
1139
|
-
}
|
|
1140
|
-
function updateProjectItem3(httpClient) {
|
|
1141
|
-
return (_id, item) => updateProjectItem2(
|
|
1142
|
-
_id,
|
|
1143
|
-
item,
|
|
1144
|
-
// @ts-ignore
|
|
1145
|
-
{ httpClient }
|
|
1146
|
-
);
|
|
1147
|
-
}
|
|
1148
|
-
function bulkUpdateProjectItems3(httpClient) {
|
|
1149
|
-
return (options) => bulkUpdateProjectItems2(
|
|
1150
|
-
options,
|
|
1151
|
-
// @ts-ignore
|
|
1152
|
-
{ httpClient }
|
|
1153
|
-
);
|
|
1154
|
-
}
|
|
1155
|
-
function deleteProjectItem3(httpClient) {
|
|
1156
|
-
return (itemId) => deleteProjectItem2(
|
|
1157
|
-
itemId,
|
|
1158
|
-
// @ts-ignore
|
|
1159
|
-
{ httpClient }
|
|
1160
|
-
);
|
|
1161
|
-
}
|
|
1162
|
-
function bulkDeleteProjectItems3(httpClient) {
|
|
1163
|
-
return (options) => bulkDeleteProjectItems2(
|
|
1164
|
-
options,
|
|
1165
|
-
// @ts-ignore
|
|
1166
|
-
{ httpClient }
|
|
1167
|
-
);
|
|
1168
|
-
}
|
|
1169
|
-
function duplicateProjectItems3(httpClient) {
|
|
1170
|
-
return (originProjectId, options) => duplicateProjectItems2(
|
|
1171
|
-
originProjectId,
|
|
1172
|
-
options,
|
|
1173
|
-
// @ts-ignore
|
|
1174
|
-
{ httpClient }
|
|
1175
|
-
);
|
|
1176
|
-
}
|
|
1177
|
-
function generateTokenForProjectItems3(httpClient) {
|
|
1178
|
-
return (mediaIds) => generateTokenForProjectItems2(
|
|
1179
|
-
mediaIds,
|
|
1180
|
-
// @ts-ignore
|
|
1181
|
-
{ httpClient }
|
|
1182
|
-
);
|
|
1183
|
-
}
|
|
1184
|
-
var onProjectItemCreated = EventDefinition(
|
|
1185
|
-
"wix.portfolio.project_items.v1.project_item_created",
|
|
1186
|
-
true,
|
|
1187
|
-
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
1188
|
-
transformPaths3(event, [
|
|
1189
|
-
{
|
|
1190
|
-
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
|
-
]
|
|
1199
|
-
},
|
|
1200
|
-
{
|
|
1201
|
-
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1202
|
-
paths: [
|
|
1203
|
-
{ path: "entity.createdDate" },
|
|
1204
|
-
{ path: "entity.updatedDate" },
|
|
1205
|
-
{ path: "metadata.eventTime" }
|
|
1206
|
-
]
|
|
1207
|
-
},
|
|
1208
|
-
{
|
|
1209
|
-
transformFn: transformRESTImageToSDKImage2,
|
|
1210
|
-
paths: [{ path: "entity.image.imageInfo" }]
|
|
1211
|
-
},
|
|
1212
|
-
{
|
|
1213
|
-
transformFn: transformRESTVideoV2ToSDKVideoV22,
|
|
1214
|
-
paths: [{ path: "entity.video.videoInfo" }]
|
|
1215
|
-
}
|
|
1216
|
-
])
|
|
1217
|
-
)
|
|
1218
|
-
)();
|
|
1219
|
-
var onProjectItemDeleted = EventDefinition(
|
|
1220
|
-
"wix.portfolio.project_items.v1.project_item_deleted",
|
|
1221
|
-
true,
|
|
1222
|
-
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
1223
|
-
transformPaths3(event, [
|
|
1224
|
-
{
|
|
1225
|
-
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
|
-
]
|
|
1234
|
-
},
|
|
1235
|
-
{
|
|
1236
|
-
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1237
|
-
paths: [
|
|
1238
|
-
{ path: "undefined.createdDate" },
|
|
1239
|
-
{ path: "undefined.updatedDate" },
|
|
1240
|
-
{ path: "metadata.eventTime" }
|
|
1241
|
-
]
|
|
1242
|
-
},
|
|
1243
|
-
{
|
|
1244
|
-
transformFn: transformRESTImageToSDKImage2,
|
|
1245
|
-
paths: [{ path: "undefined.image.imageInfo" }]
|
|
1246
|
-
},
|
|
1247
|
-
{
|
|
1248
|
-
transformFn: transformRESTVideoV2ToSDKVideoV22,
|
|
1249
|
-
paths: [{ path: "undefined.video.videoInfo" }]
|
|
1250
|
-
}
|
|
1251
|
-
])
|
|
1252
|
-
)
|
|
1253
|
-
)();
|
|
1254
|
-
var onProjectItemUpdated = EventDefinition(
|
|
1255
|
-
"wix.portfolio.project_items.v1.project_item_updated",
|
|
1256
|
-
true,
|
|
1257
|
-
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
1258
|
-
transformPaths3(event, [
|
|
1259
|
-
{
|
|
1260
|
-
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
|
-
]
|
|
1269
|
-
},
|
|
1270
|
-
{
|
|
1271
|
-
transformFn: transformRESTTimestampToSDKTimestamp2,
|
|
1272
|
-
paths: [
|
|
1273
|
-
{ path: "entity.createdDate" },
|
|
1274
|
-
{ path: "entity.updatedDate" },
|
|
1275
|
-
{ path: "metadata.eventTime" }
|
|
1276
|
-
]
|
|
1277
|
-
},
|
|
1278
|
-
{
|
|
1279
|
-
transformFn: transformRESTImageToSDKImage2,
|
|
1280
|
-
paths: [{ path: "entity.image.imageInfo" }]
|
|
1281
|
-
},
|
|
1282
|
-
{
|
|
1283
|
-
transformFn: transformRESTVideoV2ToSDKVideoV22,
|
|
1284
|
-
paths: [{ path: "entity.video.videoInfo" }]
|
|
1285
|
-
}
|
|
1286
|
-
])
|
|
1287
|
-
)
|
|
1288
|
-
)();
|
|
1289
|
-
|
|
1290
|
-
// src/portfolio-project-items-v1-project-item-project-items.context.ts
|
|
1291
|
-
import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
|
|
1292
|
-
import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
|
|
1293
|
-
var createProjectItem4 = /* @__PURE__ */ createRESTModule(createProjectItem3);
|
|
1294
|
-
var bulkCreateProjectItems4 = /* @__PURE__ */ createRESTModule(bulkCreateProjectItems3);
|
|
1295
|
-
var getProjectItem4 = /* @__PURE__ */ createRESTModule(getProjectItem3);
|
|
1296
|
-
var listProjectItems4 = /* @__PURE__ */ createRESTModule(listProjectItems3);
|
|
1297
|
-
var updateProjectItem4 = /* @__PURE__ */ createRESTModule(updateProjectItem3);
|
|
1298
|
-
var bulkUpdateProjectItems4 = /* @__PURE__ */ createRESTModule(bulkUpdateProjectItems3);
|
|
1299
|
-
var deleteProjectItem4 = /* @__PURE__ */ createRESTModule(deleteProjectItem3);
|
|
1300
|
-
var bulkDeleteProjectItems4 = /* @__PURE__ */ createRESTModule(bulkDeleteProjectItems3);
|
|
1301
|
-
var duplicateProjectItems4 = /* @__PURE__ */ createRESTModule(duplicateProjectItems3);
|
|
1302
|
-
var generateTokenForProjectItems4 = /* @__PURE__ */ createRESTModule(generateTokenForProjectItems3);
|
|
1303
|
-
var onProjectItemCreated2 = createEventModule(
|
|
1304
|
-
onProjectItemCreated
|
|
1305
|
-
);
|
|
1306
|
-
var onProjectItemDeleted2 = createEventModule(
|
|
1307
|
-
onProjectItemDeleted
|
|
1308
|
-
);
|
|
1309
|
-
var onProjectItemUpdated2 = createEventModule(
|
|
1310
|
-
onProjectItemUpdated
|
|
1311
|
-
);
|
|
1312
|
-
export {
|
|
1313
|
-
ImageType,
|
|
1314
|
-
SortOrder,
|
|
1315
|
-
Type,
|
|
1316
|
-
WebhookIdentityType,
|
|
1317
|
-
bulkCreateProjectItems4 as bulkCreateProjectItems,
|
|
1318
|
-
bulkDeleteProjectItems4 as bulkDeleteProjectItems,
|
|
1319
|
-
bulkUpdateProjectItems4 as bulkUpdateProjectItems,
|
|
1320
|
-
createProjectItem4 as createProjectItem,
|
|
1321
|
-
deleteProjectItem4 as deleteProjectItem,
|
|
1322
|
-
duplicateProjectItems4 as duplicateProjectItems,
|
|
1323
|
-
generateTokenForProjectItems4 as generateTokenForProjectItems,
|
|
1324
|
-
getProjectItem4 as getProjectItem,
|
|
1325
|
-
listProjectItems4 as listProjectItems,
|
|
1326
|
-
onProjectItemCreated2 as onProjectItemCreated,
|
|
1327
|
-
onProjectItemDeleted2 as onProjectItemDeleted,
|
|
1328
|
-
onProjectItemUpdated2 as onProjectItemUpdated,
|
|
1329
|
-
updateProjectItem4 as updateProjectItem
|
|
1330
|
-
};
|
|
1331
|
-
//# sourceMappingURL=index.mjs.map
|