@wix/auto_sdk_media_files 1.0.19 → 1.0.21
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 +53 -18
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/{media-site-media-v1-file-descriptor-files.universal-C5dCrbUZ.d.ts → index.typings.d.ts} +498 -1
- package/build/cjs/index.typings.js +1938 -0
- package/build/cjs/index.typings.js.map +1 -0
- package/build/cjs/meta.d.ts +3 -27
- package/build/es/index.d.mts +53 -18
- package/build/es/index.mjs.map +1 -1
- package/build/es/{media-site-media-v1-file-descriptor-files.universal-C5dCrbUZ.d.mts → index.typings.d.mts} +498 -1
- package/build/es/index.typings.mjs +1887 -0
- package/build/es/index.typings.mjs.map +1 -0
- package/build/es/meta.d.mts +3 -27
- package/build/internal/cjs/index.d.ts +53 -18
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/{media-site-media-v1-file-descriptor-files.universal-C5dCrbUZ.d.ts → index.typings.d.ts} +498 -1
- package/build/internal/cjs/index.typings.js +1938 -0
- package/build/internal/cjs/index.typings.js.map +1 -0
- package/build/internal/cjs/meta.d.ts +3 -27
- package/build/internal/es/index.d.mts +53 -18
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/{media-site-media-v1-file-descriptor-files.universal-C5dCrbUZ.d.mts → index.typings.d.mts} +498 -1
- package/build/internal/es/index.typings.mjs +1887 -0
- package/build/internal/es/index.typings.mjs.map +1 -0
- package/build/internal/es/meta.d.mts +3 -27
- package/package.json +4 -3
|
@@ -0,0 +1,1938 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// index.typings.ts
|
|
21
|
+
var index_typings_exports = {};
|
|
22
|
+
__export(index_typings_exports, {
|
|
23
|
+
ContentDisposition: () => ContentDisposition,
|
|
24
|
+
IdentityType: () => IdentityType,
|
|
25
|
+
ImageAnnotationType: () => ImageAnnotationType,
|
|
26
|
+
MediaType: () => MediaType,
|
|
27
|
+
Namespace: () => Namespace,
|
|
28
|
+
OperationStatus: () => OperationStatus,
|
|
29
|
+
RootFolder: () => RootFolder,
|
|
30
|
+
SortOrder: () => SortOrder,
|
|
31
|
+
State: () => State,
|
|
32
|
+
StreamFormat: () => StreamFormat,
|
|
33
|
+
UploadProtocol: () => UploadProtocol,
|
|
34
|
+
WebhookIdentityType: () => WebhookIdentityType,
|
|
35
|
+
bulkDeleteFiles: () => bulkDeleteFiles2,
|
|
36
|
+
bulkImportFile: () => bulkImportFile2,
|
|
37
|
+
bulkImportFiles: () => bulkImportFiles2,
|
|
38
|
+
bulkRestoreFilesFromTrashBin: () => bulkRestoreFilesFromTrashBin2,
|
|
39
|
+
generateFileDownloadUrl: () => generateFileDownloadUrl2,
|
|
40
|
+
generateFileResumableUploadUrl: () => generateFileResumableUploadUrl2,
|
|
41
|
+
generateFileUploadUrl: () => generateFileUploadUrl2,
|
|
42
|
+
generateFilesDownloadUrl: () => generateFilesDownloadUrl2,
|
|
43
|
+
generateVideoStreamingUrl: () => generateVideoStreamingUrl2,
|
|
44
|
+
getFileDescriptor: () => getFileDescriptor2,
|
|
45
|
+
getFileDescriptors: () => getFileDescriptors2,
|
|
46
|
+
importFile: () => importFile2,
|
|
47
|
+
listDeletedFiles: () => listDeletedFiles2,
|
|
48
|
+
listFiles: () => listFiles2,
|
|
49
|
+
searchFiles: () => searchFiles2,
|
|
50
|
+
updateFileDescriptor: () => updateFileDescriptor2
|
|
51
|
+
});
|
|
52
|
+
module.exports = __toCommonJS(index_typings_exports);
|
|
53
|
+
|
|
54
|
+
// src/media-site-media-v1-file-descriptor-files.universal.ts
|
|
55
|
+
var import_transform_error = require("@wix/sdk-runtime/transform-error");
|
|
56
|
+
var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-keys");
|
|
57
|
+
|
|
58
|
+
// src/media-site-media-v1-file-descriptor-files.http.ts
|
|
59
|
+
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
60
|
+
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
61
|
+
var import_float2 = require("@wix/sdk-runtime/transformations/float");
|
|
62
|
+
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
63
|
+
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
64
|
+
var import_field_mask = require("@wix/sdk-runtime/transformations/field-mask");
|
|
65
|
+
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
66
|
+
var import_rest_modules2 = require("@wix/sdk-runtime/rest-modules");
|
|
67
|
+
function resolveComWixMediaSiteMediaV1FilesServiceUrl(opts) {
|
|
68
|
+
const domainToMappings = {
|
|
69
|
+
"apps._base_domain_": [
|
|
70
|
+
{
|
|
71
|
+
srcPath: "/_api/wix-privatemedia-proxy-server",
|
|
72
|
+
destPath: "/api"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
srcPath: "/_api/wix-privatemedia-proxy-server/v1",
|
|
76
|
+
destPath: "/v1"
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"manage._base_domain_": [
|
|
80
|
+
{
|
|
81
|
+
srcPath: "/_api/wix-privatemedia-proxy-server",
|
|
82
|
+
destPath: ""
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"www.wixapis.com": [
|
|
86
|
+
{
|
|
87
|
+
srcPath: "/site-media/v1",
|
|
88
|
+
destPath: "/v1"
|
|
89
|
+
}
|
|
90
|
+
],
|
|
91
|
+
"*.dev.wix-code.com": [
|
|
92
|
+
{
|
|
93
|
+
srcPath: "/_api/wix-privatemedia-proxy-server",
|
|
94
|
+
destPath: ""
|
|
95
|
+
}
|
|
96
|
+
],
|
|
97
|
+
"api._api_base_domain_": [
|
|
98
|
+
{
|
|
99
|
+
srcPath: "/wix-privatemedia-proxy-server",
|
|
100
|
+
destPath: ""
|
|
101
|
+
}
|
|
102
|
+
],
|
|
103
|
+
"bo._base_domain_": [
|
|
104
|
+
{
|
|
105
|
+
srcPath: "/wix-privatemedia-proxy-server",
|
|
106
|
+
destPath: ""
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
"wixbo.ai": [
|
|
110
|
+
{
|
|
111
|
+
srcPath: "/wix-privatemedia-proxy-server",
|
|
112
|
+
destPath: ""
|
|
113
|
+
}
|
|
114
|
+
],
|
|
115
|
+
"wix-bo.com": [
|
|
116
|
+
{
|
|
117
|
+
srcPath: "/wix-privatemedia-proxy-server",
|
|
118
|
+
destPath: ""
|
|
119
|
+
}
|
|
120
|
+
],
|
|
121
|
+
_: [
|
|
122
|
+
{
|
|
123
|
+
srcPath: "/wix-privatemedia-proxy-server",
|
|
124
|
+
destPath: ""
|
|
125
|
+
}
|
|
126
|
+
],
|
|
127
|
+
"editor._base_domain_": [
|
|
128
|
+
{
|
|
129
|
+
srcPath: "/_api/wix-privatemedia-proxy-server",
|
|
130
|
+
destPath: ""
|
|
131
|
+
}
|
|
132
|
+
],
|
|
133
|
+
"blocks._base_domain_": [
|
|
134
|
+
{
|
|
135
|
+
srcPath: "/_api/wix-privatemedia-proxy-server",
|
|
136
|
+
destPath: ""
|
|
137
|
+
}
|
|
138
|
+
],
|
|
139
|
+
"create.editorx": [
|
|
140
|
+
{
|
|
141
|
+
srcPath: "/_api/wix-privatemedia-proxy-server",
|
|
142
|
+
destPath: ""
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
"platform.rise.ai": [
|
|
146
|
+
{
|
|
147
|
+
srcPath: "/_api/wix-privatemedia-proxy-server",
|
|
148
|
+
destPath: ""
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
};
|
|
152
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
153
|
+
}
|
|
154
|
+
var PACKAGE_NAME = "@wix/auto_sdk_media_files";
|
|
155
|
+
function generateFilesDownloadUrl(payload) {
|
|
156
|
+
function __generateFilesDownloadUrl({ host }) {
|
|
157
|
+
const metadata = {
|
|
158
|
+
entityFqdn: "wix.media.site_media.v1.file_descriptor",
|
|
159
|
+
method: "POST",
|
|
160
|
+
methodFqn: "com.wix.media.site_media.v1.FilesService.GenerateFilesDownloadUrl",
|
|
161
|
+
packageName: PACKAGE_NAME,
|
|
162
|
+
url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
|
|
163
|
+
protoPath: "/v1/files/generate-download-url",
|
|
164
|
+
data: payload,
|
|
165
|
+
host
|
|
166
|
+
}),
|
|
167
|
+
data: payload
|
|
168
|
+
};
|
|
169
|
+
return metadata;
|
|
170
|
+
}
|
|
171
|
+
return __generateFilesDownloadUrl;
|
|
172
|
+
}
|
|
173
|
+
function generateFileDownloadUrl(payload) {
|
|
174
|
+
function __generateFileDownloadUrl({ host }) {
|
|
175
|
+
const metadata = {
|
|
176
|
+
entityFqdn: "wix.media.site_media.v1.file_descriptor",
|
|
177
|
+
method: "POST",
|
|
178
|
+
methodFqn: "com.wix.media.site_media.v1.FilesService.GenerateFileDownloadUrl",
|
|
179
|
+
packageName: PACKAGE_NAME,
|
|
180
|
+
url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
|
|
181
|
+
protoPath: "/v1/files/generate-file-download-url",
|
|
182
|
+
data: payload,
|
|
183
|
+
host
|
|
184
|
+
}),
|
|
185
|
+
data: payload
|
|
186
|
+
};
|
|
187
|
+
return metadata;
|
|
188
|
+
}
|
|
189
|
+
return __generateFileDownloadUrl;
|
|
190
|
+
}
|
|
191
|
+
function getFileDescriptor(payload) {
|
|
192
|
+
function __getFileDescriptor({ host }) {
|
|
193
|
+
const metadata = {
|
|
194
|
+
entityFqdn: "wix.media.site_media.v1.file_descriptor",
|
|
195
|
+
method: "GET",
|
|
196
|
+
methodFqn: "com.wix.media.site_media.v1.FilesService.GetFileDescriptor",
|
|
197
|
+
packageName: PACKAGE_NAME,
|
|
198
|
+
url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
|
|
199
|
+
protoPath: "/v1/files/get-file-by-id",
|
|
200
|
+
data: payload,
|
|
201
|
+
host
|
|
202
|
+
}),
|
|
203
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
204
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
205
|
+
{
|
|
206
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
207
|
+
paths: [
|
|
208
|
+
{ path: "file.createdDate" },
|
|
209
|
+
{ path: "file.updatedDate" },
|
|
210
|
+
{ path: "file.lastUsedDate" },
|
|
211
|
+
{ path: "file.media.image.image.urlExpirationDate" },
|
|
212
|
+
{ path: "file.media.image.previewImage.urlExpirationDate" },
|
|
213
|
+
{ path: "file.media.video.urlExpirationDate" },
|
|
214
|
+
{ path: "file.media.video.resolutions.urlExpirationDate" },
|
|
215
|
+
{ path: "file.media.video.resolutions.poster.urlExpirationDate" },
|
|
216
|
+
{ path: "file.media.video.posters.urlExpirationDate" },
|
|
217
|
+
{ path: "file.media.audio.assets.urlExpirationDate" },
|
|
218
|
+
{ path: "file.media.document.urlExpirationDate" },
|
|
219
|
+
{ path: "file.media.document.thumbnail.urlExpirationDate" },
|
|
220
|
+
{ path: "file.media.vector.image.urlExpirationDate" },
|
|
221
|
+
{ path: "file.media.vector.previewImage.urlExpirationDate" },
|
|
222
|
+
{ path: "file.media.archive.urlExpirationDate" },
|
|
223
|
+
{ path: "file.media.model3d.urlExpirationDate" },
|
|
224
|
+
{ path: "file.media.model3d.thumbnail.urlExpirationDate" },
|
|
225
|
+
{ path: "file.media.icon.image.urlExpirationDate" },
|
|
226
|
+
{ path: "file.media.icon.previewImage.urlExpirationDate" }
|
|
227
|
+
]
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
231
|
+
paths: [
|
|
232
|
+
{ path: "file.media.image.image.focalPoint.x" },
|
|
233
|
+
{ path: "file.media.image.image.focalPoint.y" },
|
|
234
|
+
{ path: "file.media.image.faces.confidence" },
|
|
235
|
+
{ path: "file.media.image.previewImage.focalPoint.x" },
|
|
236
|
+
{ path: "file.media.image.previewImage.focalPoint.y" },
|
|
237
|
+
{ path: "file.media.video.resolutions.poster.focalPoint.x" },
|
|
238
|
+
{ path: "file.media.video.resolutions.poster.focalPoint.y" },
|
|
239
|
+
{ path: "file.media.video.posters.focalPoint.x" },
|
|
240
|
+
{ path: "file.media.video.posters.focalPoint.y" },
|
|
241
|
+
{ path: "file.media.document.thumbnail.focalPoint.x" },
|
|
242
|
+
{ path: "file.media.document.thumbnail.focalPoint.y" },
|
|
243
|
+
{ path: "file.media.vector.image.focalPoint.x" },
|
|
244
|
+
{ path: "file.media.vector.image.focalPoint.y" },
|
|
245
|
+
{ path: "file.media.vector.faces.confidence" },
|
|
246
|
+
{ path: "file.media.vector.previewImage.focalPoint.x" },
|
|
247
|
+
{ path: "file.media.vector.previewImage.focalPoint.y" },
|
|
248
|
+
{ path: "file.media.model3d.thumbnail.focalPoint.x" },
|
|
249
|
+
{ path: "file.media.model3d.thumbnail.focalPoint.y" },
|
|
250
|
+
{ path: "file.media.icon.image.focalPoint.x" },
|
|
251
|
+
{ path: "file.media.icon.image.focalPoint.y" },
|
|
252
|
+
{ path: "file.media.icon.faces.confidence" },
|
|
253
|
+
{ path: "file.media.icon.previewImage.focalPoint.x" },
|
|
254
|
+
{ path: "file.media.icon.previewImage.focalPoint.y" }
|
|
255
|
+
]
|
|
256
|
+
}
|
|
257
|
+
]),
|
|
258
|
+
fallback: [
|
|
259
|
+
{
|
|
260
|
+
method: "GET",
|
|
261
|
+
url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
|
|
262
|
+
protoPath: "/v1/files/get-file-by-id",
|
|
263
|
+
data: payload,
|
|
264
|
+
host
|
|
265
|
+
}),
|
|
266
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload)
|
|
267
|
+
}
|
|
268
|
+
]
|
|
269
|
+
};
|
|
270
|
+
return metadata;
|
|
271
|
+
}
|
|
272
|
+
return __getFileDescriptor;
|
|
273
|
+
}
|
|
274
|
+
function getFileDescriptors(payload) {
|
|
275
|
+
function __getFileDescriptors({ host }) {
|
|
276
|
+
const metadata = {
|
|
277
|
+
entityFqdn: "wix.media.site_media.v1.file_descriptor",
|
|
278
|
+
method: "POST",
|
|
279
|
+
methodFqn: "com.wix.media.site_media.v1.FilesService.GetFileDescriptors",
|
|
280
|
+
packageName: PACKAGE_NAME,
|
|
281
|
+
url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
|
|
282
|
+
protoPath: "/v1/files/get-files",
|
|
283
|
+
data: payload,
|
|
284
|
+
host
|
|
285
|
+
}),
|
|
286
|
+
data: payload,
|
|
287
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
288
|
+
{
|
|
289
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
290
|
+
paths: [
|
|
291
|
+
{ path: "files.createdDate" },
|
|
292
|
+
{ path: "files.updatedDate" },
|
|
293
|
+
{ path: "files.lastUsedDate" },
|
|
294
|
+
{ path: "files.media.image.image.urlExpirationDate" },
|
|
295
|
+
{ path: "files.media.image.previewImage.urlExpirationDate" },
|
|
296
|
+
{ path: "files.media.video.urlExpirationDate" },
|
|
297
|
+
{ path: "files.media.video.resolutions.urlExpirationDate" },
|
|
298
|
+
{
|
|
299
|
+
path: "files.media.video.resolutions.poster.urlExpirationDate"
|
|
300
|
+
},
|
|
301
|
+
{ path: "files.media.video.posters.urlExpirationDate" },
|
|
302
|
+
{ path: "files.media.audio.assets.urlExpirationDate" },
|
|
303
|
+
{ path: "files.media.document.urlExpirationDate" },
|
|
304
|
+
{ path: "files.media.document.thumbnail.urlExpirationDate" },
|
|
305
|
+
{ path: "files.media.vector.image.urlExpirationDate" },
|
|
306
|
+
{ path: "files.media.vector.previewImage.urlExpirationDate" },
|
|
307
|
+
{ path: "files.media.archive.urlExpirationDate" },
|
|
308
|
+
{ path: "files.media.model3d.urlExpirationDate" },
|
|
309
|
+
{ path: "files.media.model3d.thumbnail.urlExpirationDate" },
|
|
310
|
+
{ path: "files.media.icon.image.urlExpirationDate" },
|
|
311
|
+
{ path: "files.media.icon.previewImage.urlExpirationDate" }
|
|
312
|
+
]
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
316
|
+
paths: [
|
|
317
|
+
{ path: "files.media.image.image.focalPoint.x" },
|
|
318
|
+
{ path: "files.media.image.image.focalPoint.y" },
|
|
319
|
+
{ path: "files.media.image.faces.confidence" },
|
|
320
|
+
{ path: "files.media.image.previewImage.focalPoint.x" },
|
|
321
|
+
{ path: "files.media.image.previewImage.focalPoint.y" },
|
|
322
|
+
{ path: "files.media.video.resolutions.poster.focalPoint.x" },
|
|
323
|
+
{ path: "files.media.video.resolutions.poster.focalPoint.y" },
|
|
324
|
+
{ path: "files.media.video.posters.focalPoint.x" },
|
|
325
|
+
{ path: "files.media.video.posters.focalPoint.y" },
|
|
326
|
+
{ path: "files.media.document.thumbnail.focalPoint.x" },
|
|
327
|
+
{ path: "files.media.document.thumbnail.focalPoint.y" },
|
|
328
|
+
{ path: "files.media.vector.image.focalPoint.x" },
|
|
329
|
+
{ path: "files.media.vector.image.focalPoint.y" },
|
|
330
|
+
{ path: "files.media.vector.faces.confidence" },
|
|
331
|
+
{ path: "files.media.vector.previewImage.focalPoint.x" },
|
|
332
|
+
{ path: "files.media.vector.previewImage.focalPoint.y" },
|
|
333
|
+
{ path: "files.media.model3d.thumbnail.focalPoint.x" },
|
|
334
|
+
{ path: "files.media.model3d.thumbnail.focalPoint.y" },
|
|
335
|
+
{ path: "files.media.icon.image.focalPoint.x" },
|
|
336
|
+
{ path: "files.media.icon.image.focalPoint.y" },
|
|
337
|
+
{ path: "files.media.icon.faces.confidence" },
|
|
338
|
+
{ path: "files.media.icon.previewImage.focalPoint.x" },
|
|
339
|
+
{ path: "files.media.icon.previewImage.focalPoint.y" }
|
|
340
|
+
]
|
|
341
|
+
}
|
|
342
|
+
])
|
|
343
|
+
};
|
|
344
|
+
return metadata;
|
|
345
|
+
}
|
|
346
|
+
return __getFileDescriptors;
|
|
347
|
+
}
|
|
348
|
+
function updateFileDescriptor(payload) {
|
|
349
|
+
function __updateFileDescriptor({ host }) {
|
|
350
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
351
|
+
{
|
|
352
|
+
transformFn: import_field_mask.transformSDKFieldMaskToRESTFieldMask,
|
|
353
|
+
paths: [{ path: "fieldMask" }]
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
357
|
+
paths: [
|
|
358
|
+
{ path: "file.createdDate" },
|
|
359
|
+
{ path: "file.updatedDate" },
|
|
360
|
+
{ path: "file.lastUsedDate" },
|
|
361
|
+
{ path: "file.media.image.image.urlExpirationDate" },
|
|
362
|
+
{ path: "file.media.image.previewImage.urlExpirationDate" },
|
|
363
|
+
{ path: "file.media.video.urlExpirationDate" },
|
|
364
|
+
{ path: "file.media.video.resolutions.urlExpirationDate" },
|
|
365
|
+
{ path: "file.media.video.resolutions.poster.urlExpirationDate" },
|
|
366
|
+
{ path: "file.media.video.posters.urlExpirationDate" },
|
|
367
|
+
{ path: "file.media.audio.assets.urlExpirationDate" },
|
|
368
|
+
{ path: "file.media.document.urlExpirationDate" },
|
|
369
|
+
{ path: "file.media.document.thumbnail.urlExpirationDate" },
|
|
370
|
+
{ path: "file.media.vector.image.urlExpirationDate" },
|
|
371
|
+
{ path: "file.media.vector.previewImage.urlExpirationDate" },
|
|
372
|
+
{ path: "file.media.archive.urlExpirationDate" },
|
|
373
|
+
{ path: "file.media.model3d.urlExpirationDate" },
|
|
374
|
+
{ path: "file.media.model3d.thumbnail.urlExpirationDate" },
|
|
375
|
+
{ path: "file.media.icon.image.urlExpirationDate" },
|
|
376
|
+
{ path: "file.media.icon.previewImage.urlExpirationDate" }
|
|
377
|
+
]
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
381
|
+
paths: [
|
|
382
|
+
{ path: "file.media.image.image.focalPoint.x" },
|
|
383
|
+
{ path: "file.media.image.image.focalPoint.y" },
|
|
384
|
+
{ path: "file.media.image.faces.confidence" },
|
|
385
|
+
{ path: "file.media.image.previewImage.focalPoint.x" },
|
|
386
|
+
{ path: "file.media.image.previewImage.focalPoint.y" },
|
|
387
|
+
{ path: "file.media.video.resolutions.poster.focalPoint.x" },
|
|
388
|
+
{ path: "file.media.video.resolutions.poster.focalPoint.y" },
|
|
389
|
+
{ path: "file.media.video.posters.focalPoint.x" },
|
|
390
|
+
{ path: "file.media.video.posters.focalPoint.y" },
|
|
391
|
+
{ path: "file.media.document.thumbnail.focalPoint.x" },
|
|
392
|
+
{ path: "file.media.document.thumbnail.focalPoint.y" },
|
|
393
|
+
{ path: "file.media.vector.image.focalPoint.x" },
|
|
394
|
+
{ path: "file.media.vector.image.focalPoint.y" },
|
|
395
|
+
{ path: "file.media.vector.faces.confidence" },
|
|
396
|
+
{ path: "file.media.vector.previewImage.focalPoint.x" },
|
|
397
|
+
{ path: "file.media.vector.previewImage.focalPoint.y" },
|
|
398
|
+
{ path: "file.media.model3d.thumbnail.focalPoint.x" },
|
|
399
|
+
{ path: "file.media.model3d.thumbnail.focalPoint.y" },
|
|
400
|
+
{ path: "file.media.icon.image.focalPoint.x" },
|
|
401
|
+
{ path: "file.media.icon.image.focalPoint.y" },
|
|
402
|
+
{ path: "file.media.icon.faces.confidence" },
|
|
403
|
+
{ path: "file.media.icon.previewImage.focalPoint.x" },
|
|
404
|
+
{ path: "file.media.icon.previewImage.focalPoint.y" }
|
|
405
|
+
]
|
|
406
|
+
}
|
|
407
|
+
]);
|
|
408
|
+
const metadata = {
|
|
409
|
+
entityFqdn: "wix.media.site_media.v1.file_descriptor",
|
|
410
|
+
method: "PATCH",
|
|
411
|
+
methodFqn: "com.wix.media.site_media.v1.FilesService.UpdateFileDescriptor",
|
|
412
|
+
packageName: PACKAGE_NAME,
|
|
413
|
+
url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
|
|
414
|
+
protoPath: "/v1/files/update-file-descriptor",
|
|
415
|
+
data: serializedData,
|
|
416
|
+
host
|
|
417
|
+
}),
|
|
418
|
+
data: serializedData,
|
|
419
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
420
|
+
{
|
|
421
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
422
|
+
paths: [
|
|
423
|
+
{ path: "file.createdDate" },
|
|
424
|
+
{ path: "file.updatedDate" },
|
|
425
|
+
{ path: "file.lastUsedDate" },
|
|
426
|
+
{ path: "file.media.image.image.urlExpirationDate" },
|
|
427
|
+
{ path: "file.media.image.previewImage.urlExpirationDate" },
|
|
428
|
+
{ path: "file.media.video.urlExpirationDate" },
|
|
429
|
+
{ path: "file.media.video.resolutions.urlExpirationDate" },
|
|
430
|
+
{ path: "file.media.video.resolutions.poster.urlExpirationDate" },
|
|
431
|
+
{ path: "file.media.video.posters.urlExpirationDate" },
|
|
432
|
+
{ path: "file.media.audio.assets.urlExpirationDate" },
|
|
433
|
+
{ path: "file.media.document.urlExpirationDate" },
|
|
434
|
+
{ path: "file.media.document.thumbnail.urlExpirationDate" },
|
|
435
|
+
{ path: "file.media.vector.image.urlExpirationDate" },
|
|
436
|
+
{ path: "file.media.vector.previewImage.urlExpirationDate" },
|
|
437
|
+
{ path: "file.media.archive.urlExpirationDate" },
|
|
438
|
+
{ path: "file.media.model3d.urlExpirationDate" },
|
|
439
|
+
{ path: "file.media.model3d.thumbnail.urlExpirationDate" },
|
|
440
|
+
{ path: "file.media.icon.image.urlExpirationDate" },
|
|
441
|
+
{ path: "file.media.icon.previewImage.urlExpirationDate" }
|
|
442
|
+
]
|
|
443
|
+
},
|
|
444
|
+
{
|
|
445
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
446
|
+
paths: [
|
|
447
|
+
{ path: "file.media.image.image.focalPoint.x" },
|
|
448
|
+
{ path: "file.media.image.image.focalPoint.y" },
|
|
449
|
+
{ path: "file.media.image.faces.confidence" },
|
|
450
|
+
{ path: "file.media.image.previewImage.focalPoint.x" },
|
|
451
|
+
{ path: "file.media.image.previewImage.focalPoint.y" },
|
|
452
|
+
{ path: "file.media.video.resolutions.poster.focalPoint.x" },
|
|
453
|
+
{ path: "file.media.video.resolutions.poster.focalPoint.y" },
|
|
454
|
+
{ path: "file.media.video.posters.focalPoint.x" },
|
|
455
|
+
{ path: "file.media.video.posters.focalPoint.y" },
|
|
456
|
+
{ path: "file.media.document.thumbnail.focalPoint.x" },
|
|
457
|
+
{ path: "file.media.document.thumbnail.focalPoint.y" },
|
|
458
|
+
{ path: "file.media.vector.image.focalPoint.x" },
|
|
459
|
+
{ path: "file.media.vector.image.focalPoint.y" },
|
|
460
|
+
{ path: "file.media.vector.faces.confidence" },
|
|
461
|
+
{ path: "file.media.vector.previewImage.focalPoint.x" },
|
|
462
|
+
{ path: "file.media.vector.previewImage.focalPoint.y" },
|
|
463
|
+
{ path: "file.media.model3d.thumbnail.focalPoint.x" },
|
|
464
|
+
{ path: "file.media.model3d.thumbnail.focalPoint.y" },
|
|
465
|
+
{ path: "file.media.icon.image.focalPoint.x" },
|
|
466
|
+
{ path: "file.media.icon.image.focalPoint.y" },
|
|
467
|
+
{ path: "file.media.icon.faces.confidence" },
|
|
468
|
+
{ path: "file.media.icon.previewImage.focalPoint.x" },
|
|
469
|
+
{ path: "file.media.icon.previewImage.focalPoint.y" }
|
|
470
|
+
]
|
|
471
|
+
}
|
|
472
|
+
])
|
|
473
|
+
};
|
|
474
|
+
return metadata;
|
|
475
|
+
}
|
|
476
|
+
return __updateFileDescriptor;
|
|
477
|
+
}
|
|
478
|
+
function generateFileUploadUrl(payload) {
|
|
479
|
+
function __generateFileUploadUrl({ host }) {
|
|
480
|
+
const metadata = {
|
|
481
|
+
entityFqdn: "wix.media.site_media.v1.file_descriptor",
|
|
482
|
+
method: "POST",
|
|
483
|
+
methodFqn: "com.wix.media.site_media.v1.FilesService.GenerateFileUploadUrl",
|
|
484
|
+
packageName: PACKAGE_NAME,
|
|
485
|
+
url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
|
|
486
|
+
protoPath: "/v1/files/generate-upload-url",
|
|
487
|
+
data: payload,
|
|
488
|
+
host
|
|
489
|
+
}),
|
|
490
|
+
data: payload
|
|
491
|
+
};
|
|
492
|
+
return metadata;
|
|
493
|
+
}
|
|
494
|
+
return __generateFileUploadUrl;
|
|
495
|
+
}
|
|
496
|
+
function generateFileResumableUploadUrl(payload) {
|
|
497
|
+
function __generateFileResumableUploadUrl({ host }) {
|
|
498
|
+
const metadata = {
|
|
499
|
+
entityFqdn: "wix.media.site_media.v1.file_descriptor",
|
|
500
|
+
method: "POST",
|
|
501
|
+
methodFqn: "com.wix.media.site_media.v1.FilesService.GenerateFileResumableUploadUrl",
|
|
502
|
+
packageName: PACKAGE_NAME,
|
|
503
|
+
url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
|
|
504
|
+
protoPath: "/v1/files/generate-resumable-upload-url",
|
|
505
|
+
data: payload,
|
|
506
|
+
host
|
|
507
|
+
}),
|
|
508
|
+
data: payload
|
|
509
|
+
};
|
|
510
|
+
return metadata;
|
|
511
|
+
}
|
|
512
|
+
return __generateFileResumableUploadUrl;
|
|
513
|
+
}
|
|
514
|
+
function importFile(payload) {
|
|
515
|
+
function __importFile({ host }) {
|
|
516
|
+
const metadata = {
|
|
517
|
+
entityFqdn: "wix.media.site_media.v1.file_descriptor",
|
|
518
|
+
method: "POST",
|
|
519
|
+
methodFqn: "com.wix.media.site_media.v1.FilesService.ImportFile",
|
|
520
|
+
packageName: PACKAGE_NAME,
|
|
521
|
+
url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
|
|
522
|
+
protoPath: "/v1/files/import",
|
|
523
|
+
data: payload,
|
|
524
|
+
host
|
|
525
|
+
}),
|
|
526
|
+
data: payload,
|
|
527
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
528
|
+
{
|
|
529
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
530
|
+
paths: [
|
|
531
|
+
{ path: "file.createdDate" },
|
|
532
|
+
{ path: "file.updatedDate" },
|
|
533
|
+
{ path: "file.lastUsedDate" },
|
|
534
|
+
{ path: "file.media.image.image.urlExpirationDate" },
|
|
535
|
+
{ path: "file.media.image.previewImage.urlExpirationDate" },
|
|
536
|
+
{ path: "file.media.video.urlExpirationDate" },
|
|
537
|
+
{ path: "file.media.video.resolutions.urlExpirationDate" },
|
|
538
|
+
{ path: "file.media.video.resolutions.poster.urlExpirationDate" },
|
|
539
|
+
{ path: "file.media.video.posters.urlExpirationDate" },
|
|
540
|
+
{ path: "file.media.audio.assets.urlExpirationDate" },
|
|
541
|
+
{ path: "file.media.document.urlExpirationDate" },
|
|
542
|
+
{ path: "file.media.document.thumbnail.urlExpirationDate" },
|
|
543
|
+
{ path: "file.media.vector.image.urlExpirationDate" },
|
|
544
|
+
{ path: "file.media.vector.previewImage.urlExpirationDate" },
|
|
545
|
+
{ path: "file.media.archive.urlExpirationDate" },
|
|
546
|
+
{ path: "file.media.model3d.urlExpirationDate" },
|
|
547
|
+
{ path: "file.media.model3d.thumbnail.urlExpirationDate" },
|
|
548
|
+
{ path: "file.media.icon.image.urlExpirationDate" },
|
|
549
|
+
{ path: "file.media.icon.previewImage.urlExpirationDate" }
|
|
550
|
+
]
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
554
|
+
paths: [
|
|
555
|
+
{ path: "file.media.image.image.focalPoint.x" },
|
|
556
|
+
{ path: "file.media.image.image.focalPoint.y" },
|
|
557
|
+
{ path: "file.media.image.faces.confidence" },
|
|
558
|
+
{ path: "file.media.image.previewImage.focalPoint.x" },
|
|
559
|
+
{ path: "file.media.image.previewImage.focalPoint.y" },
|
|
560
|
+
{ path: "file.media.video.resolutions.poster.focalPoint.x" },
|
|
561
|
+
{ path: "file.media.video.resolutions.poster.focalPoint.y" },
|
|
562
|
+
{ path: "file.media.video.posters.focalPoint.x" },
|
|
563
|
+
{ path: "file.media.video.posters.focalPoint.y" },
|
|
564
|
+
{ path: "file.media.document.thumbnail.focalPoint.x" },
|
|
565
|
+
{ path: "file.media.document.thumbnail.focalPoint.y" },
|
|
566
|
+
{ path: "file.media.vector.image.focalPoint.x" },
|
|
567
|
+
{ path: "file.media.vector.image.focalPoint.y" },
|
|
568
|
+
{ path: "file.media.vector.faces.confidence" },
|
|
569
|
+
{ path: "file.media.vector.previewImage.focalPoint.x" },
|
|
570
|
+
{ path: "file.media.vector.previewImage.focalPoint.y" },
|
|
571
|
+
{ path: "file.media.model3d.thumbnail.focalPoint.x" },
|
|
572
|
+
{ path: "file.media.model3d.thumbnail.focalPoint.y" },
|
|
573
|
+
{ path: "file.media.icon.image.focalPoint.x" },
|
|
574
|
+
{ path: "file.media.icon.image.focalPoint.y" },
|
|
575
|
+
{ path: "file.media.icon.faces.confidence" },
|
|
576
|
+
{ path: "file.media.icon.previewImage.focalPoint.x" },
|
|
577
|
+
{ path: "file.media.icon.previewImage.focalPoint.y" }
|
|
578
|
+
]
|
|
579
|
+
}
|
|
580
|
+
])
|
|
581
|
+
};
|
|
582
|
+
return metadata;
|
|
583
|
+
}
|
|
584
|
+
return __importFile;
|
|
585
|
+
}
|
|
586
|
+
function bulkImportFiles(payload) {
|
|
587
|
+
function __bulkImportFiles({ host }) {
|
|
588
|
+
const metadata = {
|
|
589
|
+
entityFqdn: "wix.media.site_media.v1.file_descriptor",
|
|
590
|
+
method: "POST",
|
|
591
|
+
methodFqn: "com.wix.media.site_media.v1.FilesService.BulkImportFiles",
|
|
592
|
+
packageName: PACKAGE_NAME,
|
|
593
|
+
url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
|
|
594
|
+
protoPath: "/v1/bulk/files/import",
|
|
595
|
+
data: payload,
|
|
596
|
+
host
|
|
597
|
+
}),
|
|
598
|
+
data: payload,
|
|
599
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
600
|
+
{
|
|
601
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
602
|
+
paths: [
|
|
603
|
+
{ path: "files.createdDate" },
|
|
604
|
+
{ path: "files.updatedDate" },
|
|
605
|
+
{ path: "files.lastUsedDate" },
|
|
606
|
+
{ path: "files.media.image.image.urlExpirationDate" },
|
|
607
|
+
{ path: "files.media.image.previewImage.urlExpirationDate" },
|
|
608
|
+
{ path: "files.media.video.urlExpirationDate" },
|
|
609
|
+
{ path: "files.media.video.resolutions.urlExpirationDate" },
|
|
610
|
+
{
|
|
611
|
+
path: "files.media.video.resolutions.poster.urlExpirationDate"
|
|
612
|
+
},
|
|
613
|
+
{ path: "files.media.video.posters.urlExpirationDate" },
|
|
614
|
+
{ path: "files.media.audio.assets.urlExpirationDate" },
|
|
615
|
+
{ path: "files.media.document.urlExpirationDate" },
|
|
616
|
+
{ path: "files.media.document.thumbnail.urlExpirationDate" },
|
|
617
|
+
{ path: "files.media.vector.image.urlExpirationDate" },
|
|
618
|
+
{ path: "files.media.vector.previewImage.urlExpirationDate" },
|
|
619
|
+
{ path: "files.media.archive.urlExpirationDate" },
|
|
620
|
+
{ path: "files.media.model3d.urlExpirationDate" },
|
|
621
|
+
{ path: "files.media.model3d.thumbnail.urlExpirationDate" },
|
|
622
|
+
{ path: "files.media.icon.image.urlExpirationDate" },
|
|
623
|
+
{ path: "files.media.icon.previewImage.urlExpirationDate" }
|
|
624
|
+
]
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
628
|
+
paths: [
|
|
629
|
+
{ path: "files.media.image.image.focalPoint.x" },
|
|
630
|
+
{ path: "files.media.image.image.focalPoint.y" },
|
|
631
|
+
{ path: "files.media.image.faces.confidence" },
|
|
632
|
+
{ path: "files.media.image.previewImage.focalPoint.x" },
|
|
633
|
+
{ path: "files.media.image.previewImage.focalPoint.y" },
|
|
634
|
+
{ path: "files.media.video.resolutions.poster.focalPoint.x" },
|
|
635
|
+
{ path: "files.media.video.resolutions.poster.focalPoint.y" },
|
|
636
|
+
{ path: "files.media.video.posters.focalPoint.x" },
|
|
637
|
+
{ path: "files.media.video.posters.focalPoint.y" },
|
|
638
|
+
{ path: "files.media.document.thumbnail.focalPoint.x" },
|
|
639
|
+
{ path: "files.media.document.thumbnail.focalPoint.y" },
|
|
640
|
+
{ path: "files.media.vector.image.focalPoint.x" },
|
|
641
|
+
{ path: "files.media.vector.image.focalPoint.y" },
|
|
642
|
+
{ path: "files.media.vector.faces.confidence" },
|
|
643
|
+
{ path: "files.media.vector.previewImage.focalPoint.x" },
|
|
644
|
+
{ path: "files.media.vector.previewImage.focalPoint.y" },
|
|
645
|
+
{ path: "files.media.model3d.thumbnail.focalPoint.x" },
|
|
646
|
+
{ path: "files.media.model3d.thumbnail.focalPoint.y" },
|
|
647
|
+
{ path: "files.media.icon.image.focalPoint.x" },
|
|
648
|
+
{ path: "files.media.icon.image.focalPoint.y" },
|
|
649
|
+
{ path: "files.media.icon.faces.confidence" },
|
|
650
|
+
{ path: "files.media.icon.previewImage.focalPoint.x" },
|
|
651
|
+
{ path: "files.media.icon.previewImage.focalPoint.y" }
|
|
652
|
+
]
|
|
653
|
+
}
|
|
654
|
+
])
|
|
655
|
+
};
|
|
656
|
+
return metadata;
|
|
657
|
+
}
|
|
658
|
+
return __bulkImportFiles;
|
|
659
|
+
}
|
|
660
|
+
function bulkImportFile(payload) {
|
|
661
|
+
function __bulkImportFile({ host }) {
|
|
662
|
+
const metadata = {
|
|
663
|
+
entityFqdn: "wix.media.site_media.v1.file_descriptor",
|
|
664
|
+
method: "POST",
|
|
665
|
+
methodFqn: "com.wix.media.site_media.v1.FilesService.BulkImportFile",
|
|
666
|
+
packageName: PACKAGE_NAME,
|
|
667
|
+
url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
|
|
668
|
+
protoPath: "/v1/bulk/files/import-v2",
|
|
669
|
+
data: payload,
|
|
670
|
+
host
|
|
671
|
+
}),
|
|
672
|
+
data: payload,
|
|
673
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
674
|
+
{
|
|
675
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
676
|
+
paths: [
|
|
677
|
+
{ path: "results.item.createdDate" },
|
|
678
|
+
{ path: "results.item.updatedDate" },
|
|
679
|
+
{ path: "results.item.lastUsedDate" },
|
|
680
|
+
{ path: "results.item.media.image.image.urlExpirationDate" },
|
|
681
|
+
{
|
|
682
|
+
path: "results.item.media.image.previewImage.urlExpirationDate"
|
|
683
|
+
},
|
|
684
|
+
{ path: "results.item.media.video.urlExpirationDate" },
|
|
685
|
+
{
|
|
686
|
+
path: "results.item.media.video.resolutions.urlExpirationDate"
|
|
687
|
+
},
|
|
688
|
+
{
|
|
689
|
+
path: "results.item.media.video.resolutions.poster.urlExpirationDate"
|
|
690
|
+
},
|
|
691
|
+
{ path: "results.item.media.video.posters.urlExpirationDate" },
|
|
692
|
+
{ path: "results.item.media.audio.assets.urlExpirationDate" },
|
|
693
|
+
{ path: "results.item.media.document.urlExpirationDate" },
|
|
694
|
+
{
|
|
695
|
+
path: "results.item.media.document.thumbnail.urlExpirationDate"
|
|
696
|
+
},
|
|
697
|
+
{ path: "results.item.media.vector.image.urlExpirationDate" },
|
|
698
|
+
{
|
|
699
|
+
path: "results.item.media.vector.previewImage.urlExpirationDate"
|
|
700
|
+
},
|
|
701
|
+
{ path: "results.item.media.archive.urlExpirationDate" },
|
|
702
|
+
{ path: "results.item.media.model3d.urlExpirationDate" },
|
|
703
|
+
{
|
|
704
|
+
path: "results.item.media.model3d.thumbnail.urlExpirationDate"
|
|
705
|
+
},
|
|
706
|
+
{ path: "results.item.media.icon.image.urlExpirationDate" },
|
|
707
|
+
{
|
|
708
|
+
path: "results.item.media.icon.previewImage.urlExpirationDate"
|
|
709
|
+
}
|
|
710
|
+
]
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
714
|
+
paths: [
|
|
715
|
+
{ path: "results.item.media.image.image.focalPoint.x" },
|
|
716
|
+
{ path: "results.item.media.image.image.focalPoint.y" },
|
|
717
|
+
{ path: "results.item.media.image.faces.confidence" },
|
|
718
|
+
{ path: "results.item.media.image.previewImage.focalPoint.x" },
|
|
719
|
+
{ path: "results.item.media.image.previewImage.focalPoint.y" },
|
|
720
|
+
{
|
|
721
|
+
path: "results.item.media.video.resolutions.poster.focalPoint.x"
|
|
722
|
+
},
|
|
723
|
+
{
|
|
724
|
+
path: "results.item.media.video.resolutions.poster.focalPoint.y"
|
|
725
|
+
},
|
|
726
|
+
{ path: "results.item.media.video.posters.focalPoint.x" },
|
|
727
|
+
{ path: "results.item.media.video.posters.focalPoint.y" },
|
|
728
|
+
{ path: "results.item.media.document.thumbnail.focalPoint.x" },
|
|
729
|
+
{ path: "results.item.media.document.thumbnail.focalPoint.y" },
|
|
730
|
+
{ path: "results.item.media.vector.image.focalPoint.x" },
|
|
731
|
+
{ path: "results.item.media.vector.image.focalPoint.y" },
|
|
732
|
+
{ path: "results.item.media.vector.faces.confidence" },
|
|
733
|
+
{ path: "results.item.media.vector.previewImage.focalPoint.x" },
|
|
734
|
+
{ path: "results.item.media.vector.previewImage.focalPoint.y" },
|
|
735
|
+
{ path: "results.item.media.model3d.thumbnail.focalPoint.x" },
|
|
736
|
+
{ path: "results.item.media.model3d.thumbnail.focalPoint.y" },
|
|
737
|
+
{ path: "results.item.media.icon.image.focalPoint.x" },
|
|
738
|
+
{ path: "results.item.media.icon.image.focalPoint.y" },
|
|
739
|
+
{ path: "results.item.media.icon.faces.confidence" },
|
|
740
|
+
{ path: "results.item.media.icon.previewImage.focalPoint.x" },
|
|
741
|
+
{ path: "results.item.media.icon.previewImage.focalPoint.y" }
|
|
742
|
+
]
|
|
743
|
+
}
|
|
744
|
+
])
|
|
745
|
+
};
|
|
746
|
+
return metadata;
|
|
747
|
+
}
|
|
748
|
+
return __bulkImportFile;
|
|
749
|
+
}
|
|
750
|
+
function listFiles(payload) {
|
|
751
|
+
function __listFiles({ host }) {
|
|
752
|
+
const metadata = {
|
|
753
|
+
entityFqdn: "wix.media.site_media.v1.file_descriptor",
|
|
754
|
+
method: "GET",
|
|
755
|
+
methodFqn: "com.wix.media.site_media.v1.FilesService.ListFiles",
|
|
756
|
+
packageName: PACKAGE_NAME,
|
|
757
|
+
url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
|
|
758
|
+
protoPath: "/v1/files",
|
|
759
|
+
data: payload,
|
|
760
|
+
host
|
|
761
|
+
}),
|
|
762
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload, true),
|
|
763
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
764
|
+
{
|
|
765
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
766
|
+
paths: [
|
|
767
|
+
{ path: "files.createdDate" },
|
|
768
|
+
{ path: "files.updatedDate" },
|
|
769
|
+
{ path: "files.lastUsedDate" },
|
|
770
|
+
{ path: "files.media.image.image.urlExpirationDate" },
|
|
771
|
+
{ path: "files.media.image.previewImage.urlExpirationDate" },
|
|
772
|
+
{ path: "files.media.video.urlExpirationDate" },
|
|
773
|
+
{ path: "files.media.video.resolutions.urlExpirationDate" },
|
|
774
|
+
{
|
|
775
|
+
path: "files.media.video.resolutions.poster.urlExpirationDate"
|
|
776
|
+
},
|
|
777
|
+
{ path: "files.media.video.posters.urlExpirationDate" },
|
|
778
|
+
{ path: "files.media.audio.assets.urlExpirationDate" },
|
|
779
|
+
{ path: "files.media.document.urlExpirationDate" },
|
|
780
|
+
{ path: "files.media.document.thumbnail.urlExpirationDate" },
|
|
781
|
+
{ path: "files.media.vector.image.urlExpirationDate" },
|
|
782
|
+
{ path: "files.media.vector.previewImage.urlExpirationDate" },
|
|
783
|
+
{ path: "files.media.archive.urlExpirationDate" },
|
|
784
|
+
{ path: "files.media.model3d.urlExpirationDate" },
|
|
785
|
+
{ path: "files.media.model3d.thumbnail.urlExpirationDate" },
|
|
786
|
+
{ path: "files.media.icon.image.urlExpirationDate" },
|
|
787
|
+
{ path: "files.media.icon.previewImage.urlExpirationDate" }
|
|
788
|
+
]
|
|
789
|
+
},
|
|
790
|
+
{
|
|
791
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
792
|
+
paths: [
|
|
793
|
+
{ path: "files.media.image.image.focalPoint.x" },
|
|
794
|
+
{ path: "files.media.image.image.focalPoint.y" },
|
|
795
|
+
{ path: "files.media.image.faces.confidence" },
|
|
796
|
+
{ path: "files.media.image.previewImage.focalPoint.x" },
|
|
797
|
+
{ path: "files.media.image.previewImage.focalPoint.y" },
|
|
798
|
+
{ path: "files.media.video.resolutions.poster.focalPoint.x" },
|
|
799
|
+
{ path: "files.media.video.resolutions.poster.focalPoint.y" },
|
|
800
|
+
{ path: "files.media.video.posters.focalPoint.x" },
|
|
801
|
+
{ path: "files.media.video.posters.focalPoint.y" },
|
|
802
|
+
{ path: "files.media.document.thumbnail.focalPoint.x" },
|
|
803
|
+
{ path: "files.media.document.thumbnail.focalPoint.y" },
|
|
804
|
+
{ path: "files.media.vector.image.focalPoint.x" },
|
|
805
|
+
{ path: "files.media.vector.image.focalPoint.y" },
|
|
806
|
+
{ path: "files.media.vector.faces.confidence" },
|
|
807
|
+
{ path: "files.media.vector.previewImage.focalPoint.x" },
|
|
808
|
+
{ path: "files.media.vector.previewImage.focalPoint.y" },
|
|
809
|
+
{ path: "files.media.model3d.thumbnail.focalPoint.x" },
|
|
810
|
+
{ path: "files.media.model3d.thumbnail.focalPoint.y" },
|
|
811
|
+
{ path: "files.media.icon.image.focalPoint.x" },
|
|
812
|
+
{ path: "files.media.icon.image.focalPoint.y" },
|
|
813
|
+
{ path: "files.media.icon.faces.confidence" },
|
|
814
|
+
{ path: "files.media.icon.previewImage.focalPoint.x" },
|
|
815
|
+
{ path: "files.media.icon.previewImage.focalPoint.y" }
|
|
816
|
+
]
|
|
817
|
+
}
|
|
818
|
+
])
|
|
819
|
+
};
|
|
820
|
+
return metadata;
|
|
821
|
+
}
|
|
822
|
+
return __listFiles;
|
|
823
|
+
}
|
|
824
|
+
function searchFiles(payload) {
|
|
825
|
+
function __searchFiles({ host }) {
|
|
826
|
+
const metadata = {
|
|
827
|
+
entityFqdn: "wix.media.site_media.v1.file_descriptor",
|
|
828
|
+
method: "POST",
|
|
829
|
+
methodFqn: "com.wix.media.site_media.v1.FilesService.SearchFiles",
|
|
830
|
+
packageName: PACKAGE_NAME,
|
|
831
|
+
url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
|
|
832
|
+
protoPath: "/v1/files/search",
|
|
833
|
+
data: payload,
|
|
834
|
+
host
|
|
835
|
+
}),
|
|
836
|
+
data: payload,
|
|
837
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
838
|
+
{
|
|
839
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
840
|
+
paths: [
|
|
841
|
+
{ path: "files.createdDate" },
|
|
842
|
+
{ path: "files.updatedDate" },
|
|
843
|
+
{ path: "files.lastUsedDate" },
|
|
844
|
+
{ path: "files.media.image.image.urlExpirationDate" },
|
|
845
|
+
{ path: "files.media.image.previewImage.urlExpirationDate" },
|
|
846
|
+
{ path: "files.media.video.urlExpirationDate" },
|
|
847
|
+
{ path: "files.media.video.resolutions.urlExpirationDate" },
|
|
848
|
+
{
|
|
849
|
+
path: "files.media.video.resolutions.poster.urlExpirationDate"
|
|
850
|
+
},
|
|
851
|
+
{ path: "files.media.video.posters.urlExpirationDate" },
|
|
852
|
+
{ path: "files.media.audio.assets.urlExpirationDate" },
|
|
853
|
+
{ path: "files.media.document.urlExpirationDate" },
|
|
854
|
+
{ path: "files.media.document.thumbnail.urlExpirationDate" },
|
|
855
|
+
{ path: "files.media.vector.image.urlExpirationDate" },
|
|
856
|
+
{ path: "files.media.vector.previewImage.urlExpirationDate" },
|
|
857
|
+
{ path: "files.media.archive.urlExpirationDate" },
|
|
858
|
+
{ path: "files.media.model3d.urlExpirationDate" },
|
|
859
|
+
{ path: "files.media.model3d.thumbnail.urlExpirationDate" },
|
|
860
|
+
{ path: "files.media.icon.image.urlExpirationDate" },
|
|
861
|
+
{ path: "files.media.icon.previewImage.urlExpirationDate" }
|
|
862
|
+
]
|
|
863
|
+
},
|
|
864
|
+
{
|
|
865
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
866
|
+
paths: [
|
|
867
|
+
{ path: "files.media.image.image.focalPoint.x" },
|
|
868
|
+
{ path: "files.media.image.image.focalPoint.y" },
|
|
869
|
+
{ path: "files.media.image.faces.confidence" },
|
|
870
|
+
{ path: "files.media.image.previewImage.focalPoint.x" },
|
|
871
|
+
{ path: "files.media.image.previewImage.focalPoint.y" },
|
|
872
|
+
{ path: "files.media.video.resolutions.poster.focalPoint.x" },
|
|
873
|
+
{ path: "files.media.video.resolutions.poster.focalPoint.y" },
|
|
874
|
+
{ path: "files.media.video.posters.focalPoint.x" },
|
|
875
|
+
{ path: "files.media.video.posters.focalPoint.y" },
|
|
876
|
+
{ path: "files.media.document.thumbnail.focalPoint.x" },
|
|
877
|
+
{ path: "files.media.document.thumbnail.focalPoint.y" },
|
|
878
|
+
{ path: "files.media.vector.image.focalPoint.x" },
|
|
879
|
+
{ path: "files.media.vector.image.focalPoint.y" },
|
|
880
|
+
{ path: "files.media.vector.faces.confidence" },
|
|
881
|
+
{ path: "files.media.vector.previewImage.focalPoint.x" },
|
|
882
|
+
{ path: "files.media.vector.previewImage.focalPoint.y" },
|
|
883
|
+
{ path: "files.media.model3d.thumbnail.focalPoint.x" },
|
|
884
|
+
{ path: "files.media.model3d.thumbnail.focalPoint.y" },
|
|
885
|
+
{ path: "files.media.icon.image.focalPoint.x" },
|
|
886
|
+
{ path: "files.media.icon.image.focalPoint.y" },
|
|
887
|
+
{ path: "files.media.icon.faces.confidence" },
|
|
888
|
+
{ path: "files.media.icon.previewImage.focalPoint.x" },
|
|
889
|
+
{ path: "files.media.icon.previewImage.focalPoint.y" }
|
|
890
|
+
]
|
|
891
|
+
}
|
|
892
|
+
])
|
|
893
|
+
};
|
|
894
|
+
return metadata;
|
|
895
|
+
}
|
|
896
|
+
return __searchFiles;
|
|
897
|
+
}
|
|
898
|
+
function generateVideoStreamingUrl(payload) {
|
|
899
|
+
function __generateVideoStreamingUrl({ host }) {
|
|
900
|
+
const metadata = {
|
|
901
|
+
entityFqdn: "wix.media.site_media.v1.file_descriptor",
|
|
902
|
+
method: "POST",
|
|
903
|
+
methodFqn: "com.wix.media.site_media.v1.FilesService.GenerateVideoStreamingUrl",
|
|
904
|
+
packageName: PACKAGE_NAME,
|
|
905
|
+
url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
|
|
906
|
+
protoPath: "/v1/files/generate-video-stream-url",
|
|
907
|
+
data: payload,
|
|
908
|
+
host
|
|
909
|
+
}),
|
|
910
|
+
data: payload
|
|
911
|
+
};
|
|
912
|
+
return metadata;
|
|
913
|
+
}
|
|
914
|
+
return __generateVideoStreamingUrl;
|
|
915
|
+
}
|
|
916
|
+
function bulkDeleteFiles(payload) {
|
|
917
|
+
function __bulkDeleteFiles({ host }) {
|
|
918
|
+
const metadata = {
|
|
919
|
+
entityFqdn: "wix.media.site_media.v1.file_descriptor",
|
|
920
|
+
method: "POST",
|
|
921
|
+
methodFqn: "com.wix.media.site_media.v1.FilesService.BulkDeleteFiles",
|
|
922
|
+
packageName: PACKAGE_NAME,
|
|
923
|
+
url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
|
|
924
|
+
protoPath: "/v1/bulk/files/delete",
|
|
925
|
+
data: payload,
|
|
926
|
+
host
|
|
927
|
+
}),
|
|
928
|
+
data: payload
|
|
929
|
+
};
|
|
930
|
+
return metadata;
|
|
931
|
+
}
|
|
932
|
+
return __bulkDeleteFiles;
|
|
933
|
+
}
|
|
934
|
+
function bulkRestoreFilesFromTrashBin(payload) {
|
|
935
|
+
function __bulkRestoreFilesFromTrashBin({ host }) {
|
|
936
|
+
const metadata = {
|
|
937
|
+
entityFqdn: "wix.media.site_media.v1.file_descriptor",
|
|
938
|
+
method: "POST",
|
|
939
|
+
methodFqn: "com.wix.media.site_media.v1.FilesService.BulkRestoreFilesFromTrashBin",
|
|
940
|
+
packageName: PACKAGE_NAME,
|
|
941
|
+
url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
|
|
942
|
+
protoPath: "/v1/bulk/trash-bin/files/restore",
|
|
943
|
+
data: payload,
|
|
944
|
+
host
|
|
945
|
+
}),
|
|
946
|
+
data: payload
|
|
947
|
+
};
|
|
948
|
+
return metadata;
|
|
949
|
+
}
|
|
950
|
+
return __bulkRestoreFilesFromTrashBin;
|
|
951
|
+
}
|
|
952
|
+
function listDeletedFiles(payload) {
|
|
953
|
+
function __listDeletedFiles({ host }) {
|
|
954
|
+
const metadata = {
|
|
955
|
+
entityFqdn: "wix.media.site_media.v1.file_descriptor",
|
|
956
|
+
method: "GET",
|
|
957
|
+
methodFqn: "com.wix.media.site_media.v1.FilesService.ListDeletedFiles",
|
|
958
|
+
packageName: PACKAGE_NAME,
|
|
959
|
+
url: resolveComWixMediaSiteMediaV1FilesServiceUrl({
|
|
960
|
+
protoPath: "/v1/trash-bin/files",
|
|
961
|
+
data: payload,
|
|
962
|
+
host
|
|
963
|
+
}),
|
|
964
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload, true),
|
|
965
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
966
|
+
{
|
|
967
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
968
|
+
paths: [
|
|
969
|
+
{ path: "files.createdDate" },
|
|
970
|
+
{ path: "files.updatedDate" },
|
|
971
|
+
{ path: "files.lastUsedDate" },
|
|
972
|
+
{ path: "files.media.image.image.urlExpirationDate" },
|
|
973
|
+
{ path: "files.media.image.previewImage.urlExpirationDate" },
|
|
974
|
+
{ path: "files.media.video.urlExpirationDate" },
|
|
975
|
+
{ path: "files.media.video.resolutions.urlExpirationDate" },
|
|
976
|
+
{
|
|
977
|
+
path: "files.media.video.resolutions.poster.urlExpirationDate"
|
|
978
|
+
},
|
|
979
|
+
{ path: "files.media.video.posters.urlExpirationDate" },
|
|
980
|
+
{ path: "files.media.audio.assets.urlExpirationDate" },
|
|
981
|
+
{ path: "files.media.document.urlExpirationDate" },
|
|
982
|
+
{ path: "files.media.document.thumbnail.urlExpirationDate" },
|
|
983
|
+
{ path: "files.media.vector.image.urlExpirationDate" },
|
|
984
|
+
{ path: "files.media.vector.previewImage.urlExpirationDate" },
|
|
985
|
+
{ path: "files.media.archive.urlExpirationDate" },
|
|
986
|
+
{ path: "files.media.model3d.urlExpirationDate" },
|
|
987
|
+
{ path: "files.media.model3d.thumbnail.urlExpirationDate" },
|
|
988
|
+
{ path: "files.media.icon.image.urlExpirationDate" },
|
|
989
|
+
{ path: "files.media.icon.previewImage.urlExpirationDate" }
|
|
990
|
+
]
|
|
991
|
+
},
|
|
992
|
+
{
|
|
993
|
+
transformFn: import_float2.transformRESTFloatToSDKFloat,
|
|
994
|
+
paths: [
|
|
995
|
+
{ path: "files.media.image.image.focalPoint.x" },
|
|
996
|
+
{ path: "files.media.image.image.focalPoint.y" },
|
|
997
|
+
{ path: "files.media.image.faces.confidence" },
|
|
998
|
+
{ path: "files.media.image.previewImage.focalPoint.x" },
|
|
999
|
+
{ path: "files.media.image.previewImage.focalPoint.y" },
|
|
1000
|
+
{ path: "files.media.video.resolutions.poster.focalPoint.x" },
|
|
1001
|
+
{ path: "files.media.video.resolutions.poster.focalPoint.y" },
|
|
1002
|
+
{ path: "files.media.video.posters.focalPoint.x" },
|
|
1003
|
+
{ path: "files.media.video.posters.focalPoint.y" },
|
|
1004
|
+
{ path: "files.media.document.thumbnail.focalPoint.x" },
|
|
1005
|
+
{ path: "files.media.document.thumbnail.focalPoint.y" },
|
|
1006
|
+
{ path: "files.media.vector.image.focalPoint.x" },
|
|
1007
|
+
{ path: "files.media.vector.image.focalPoint.y" },
|
|
1008
|
+
{ path: "files.media.vector.faces.confidence" },
|
|
1009
|
+
{ path: "files.media.vector.previewImage.focalPoint.x" },
|
|
1010
|
+
{ path: "files.media.vector.previewImage.focalPoint.y" },
|
|
1011
|
+
{ path: "files.media.model3d.thumbnail.focalPoint.x" },
|
|
1012
|
+
{ path: "files.media.model3d.thumbnail.focalPoint.y" },
|
|
1013
|
+
{ path: "files.media.icon.image.focalPoint.x" },
|
|
1014
|
+
{ path: "files.media.icon.image.focalPoint.y" },
|
|
1015
|
+
{ path: "files.media.icon.faces.confidence" },
|
|
1016
|
+
{ path: "files.media.icon.previewImage.focalPoint.x" },
|
|
1017
|
+
{ path: "files.media.icon.previewImage.focalPoint.y" }
|
|
1018
|
+
]
|
|
1019
|
+
}
|
|
1020
|
+
])
|
|
1021
|
+
};
|
|
1022
|
+
return metadata;
|
|
1023
|
+
}
|
|
1024
|
+
return __listDeletedFiles;
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
// src/media-site-media-v1-file-descriptor-files.universal.ts
|
|
1028
|
+
var import_audio = require("@wix/sdk-runtime/transformations/audio");
|
|
1029
|
+
var import_audio2 = require("@wix/sdk-runtime/transformations/audio");
|
|
1030
|
+
var import_image = require("@wix/sdk-runtime/transformations/image");
|
|
1031
|
+
var import_image2 = require("@wix/sdk-runtime/transformations/image");
|
|
1032
|
+
var import_video_v2 = require("@wix/sdk-runtime/transformations/video-v2");
|
|
1033
|
+
var import_video_v22 = require("@wix/sdk-runtime/transformations/video-v2");
|
|
1034
|
+
var import_document = require("@wix/sdk-runtime/transformations/document");
|
|
1035
|
+
var import_document2 = require("@wix/sdk-runtime/transformations/document");
|
|
1036
|
+
var import_transform_paths2 = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
1037
|
+
var MediaType = /* @__PURE__ */ ((MediaType2) => {
|
|
1038
|
+
MediaType2["UNKNOWN"] = "UNKNOWN";
|
|
1039
|
+
MediaType2["IMAGE"] = "IMAGE";
|
|
1040
|
+
MediaType2["VIDEO"] = "VIDEO";
|
|
1041
|
+
MediaType2["AUDIO"] = "AUDIO";
|
|
1042
|
+
MediaType2["DOCUMENT"] = "DOCUMENT";
|
|
1043
|
+
MediaType2["VECTOR"] = "VECTOR";
|
|
1044
|
+
MediaType2["ARCHIVE"] = "ARCHIVE";
|
|
1045
|
+
MediaType2["MODEL3D"] = "MODEL3D";
|
|
1046
|
+
MediaType2["OTHER"] = "OTHER";
|
|
1047
|
+
return MediaType2;
|
|
1048
|
+
})(MediaType || {});
|
|
1049
|
+
var OperationStatus = /* @__PURE__ */ ((OperationStatus2) => {
|
|
1050
|
+
OperationStatus2["FAILED"] = "FAILED";
|
|
1051
|
+
OperationStatus2["READY"] = "READY";
|
|
1052
|
+
OperationStatus2["PENDING"] = "PENDING";
|
|
1053
|
+
return OperationStatus2;
|
|
1054
|
+
})(OperationStatus || {});
|
|
1055
|
+
var State = /* @__PURE__ */ ((State2) => {
|
|
1056
|
+
State2["OK"] = "OK";
|
|
1057
|
+
State2["DELETED"] = "DELETED";
|
|
1058
|
+
return State2;
|
|
1059
|
+
})(State || {});
|
|
1060
|
+
var Namespace = /* @__PURE__ */ ((Namespace2) => {
|
|
1061
|
+
Namespace2["NO_NAMESPACE"] = "NO_NAMESPACE";
|
|
1062
|
+
Namespace2["OTHERS"] = "OTHERS";
|
|
1063
|
+
Namespace2["WIX_VIDEO"] = "WIX_VIDEO";
|
|
1064
|
+
Namespace2["WIX_MUSIC"] = "WIX_MUSIC";
|
|
1065
|
+
Namespace2["ALBUMS_AND_ART_STORE"] = "ALBUMS_AND_ART_STORE";
|
|
1066
|
+
Namespace2["WIX_ECOM"] = "WIX_ECOM";
|
|
1067
|
+
Namespace2["PHOTO_SHARE_APP"] = "PHOTO_SHARE_APP";
|
|
1068
|
+
Namespace2["SHARING_APP"] = "SHARING_APP";
|
|
1069
|
+
Namespace2["CHAT"] = "CHAT";
|
|
1070
|
+
Namespace2["LOGO_BUILDER"] = "LOGO_BUILDER";
|
|
1071
|
+
Namespace2["ALBUMS_OLD"] = "ALBUMS_OLD";
|
|
1072
|
+
Namespace2["CHAT_MOBILE"] = "CHAT_MOBILE";
|
|
1073
|
+
Namespace2["WIX_FORMS"] = "WIX_FORMS";
|
|
1074
|
+
Namespace2["WIX_LEGENDS"] = "WIX_LEGENDS";
|
|
1075
|
+
return Namespace2;
|
|
1076
|
+
})(Namespace || {});
|
|
1077
|
+
var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
|
|
1078
|
+
IdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1079
|
+
IdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1080
|
+
IdentityType2["MEMBER"] = "MEMBER";
|
|
1081
|
+
IdentityType2["WIX_USER"] = "WIX_USER";
|
|
1082
|
+
IdentityType2["APP"] = "APP";
|
|
1083
|
+
return IdentityType2;
|
|
1084
|
+
})(IdentityType || {});
|
|
1085
|
+
var ImageAnnotationType = /* @__PURE__ */ ((ImageAnnotationType2) => {
|
|
1086
|
+
ImageAnnotationType2["UNKNOWN_IMAGE_ANNOTATION_TYPE"] = "UNKNOWN_IMAGE_ANNOTATION_TYPE";
|
|
1087
|
+
ImageAnnotationType2["CONTAINS_TEXT"] = "CONTAINS_TEXT";
|
|
1088
|
+
ImageAnnotationType2["IS_ANIMATED"] = "IS_ANIMATED";
|
|
1089
|
+
ImageAnnotationType2["FACES"] = "FACES";
|
|
1090
|
+
ImageAnnotationType2["LABELS"] = "LABELS";
|
|
1091
|
+
ImageAnnotationType2["COLORS"] = "COLORS";
|
|
1092
|
+
ImageAnnotationType2["CAPTION"] = "CAPTION";
|
|
1093
|
+
return ImageAnnotationType2;
|
|
1094
|
+
})(ImageAnnotationType || {});
|
|
1095
|
+
var ContentDisposition = /* @__PURE__ */ ((ContentDisposition2) => {
|
|
1096
|
+
ContentDisposition2["ATTACHMENT"] = "ATTACHMENT";
|
|
1097
|
+
ContentDisposition2["INLINE"] = "INLINE";
|
|
1098
|
+
return ContentDisposition2;
|
|
1099
|
+
})(ContentDisposition || {});
|
|
1100
|
+
var UploadProtocol = /* @__PURE__ */ ((UploadProtocol2) => {
|
|
1101
|
+
UploadProtocol2["TUS"] = "TUS";
|
|
1102
|
+
return UploadProtocol2;
|
|
1103
|
+
})(UploadProtocol || {});
|
|
1104
|
+
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
1105
|
+
SortOrder2["ASC"] = "ASC";
|
|
1106
|
+
SortOrder2["DESC"] = "DESC";
|
|
1107
|
+
return SortOrder2;
|
|
1108
|
+
})(SortOrder || {});
|
|
1109
|
+
var RootFolder = /* @__PURE__ */ ((RootFolder2) => {
|
|
1110
|
+
RootFolder2["MEDIA_ROOT"] = "MEDIA_ROOT";
|
|
1111
|
+
RootFolder2["TRASH_ROOT"] = "TRASH_ROOT";
|
|
1112
|
+
RootFolder2["VISITOR_UPLOADS_ROOT"] = "VISITOR_UPLOADS_ROOT";
|
|
1113
|
+
return RootFolder2;
|
|
1114
|
+
})(RootFolder || {});
|
|
1115
|
+
var StreamFormat = /* @__PURE__ */ ((StreamFormat2) => {
|
|
1116
|
+
StreamFormat2["UNKNOWN"] = "UNKNOWN";
|
|
1117
|
+
StreamFormat2["HLS"] = "HLS";
|
|
1118
|
+
StreamFormat2["DASH"] = "DASH";
|
|
1119
|
+
return StreamFormat2;
|
|
1120
|
+
})(StreamFormat || {});
|
|
1121
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1122
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1123
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1124
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1125
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1126
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
1127
|
+
return WebhookIdentityType2;
|
|
1128
|
+
})(WebhookIdentityType || {});
|
|
1129
|
+
async function generateFilesDownloadUrl2(fileIds) {
|
|
1130
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1131
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ fileIds });
|
|
1132
|
+
const reqOpts = generateFilesDownloadUrl(
|
|
1133
|
+
payload
|
|
1134
|
+
);
|
|
1135
|
+
sideEffects?.onSiteCall?.();
|
|
1136
|
+
try {
|
|
1137
|
+
const result = await httpClient.request(reqOpts);
|
|
1138
|
+
sideEffects?.onSuccess?.(result);
|
|
1139
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1140
|
+
} catch (err) {
|
|
1141
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1142
|
+
err,
|
|
1143
|
+
{
|
|
1144
|
+
spreadPathsToArguments: {},
|
|
1145
|
+
explicitPathsToArguments: { fileIds: "$[0]" },
|
|
1146
|
+
singleArgumentUnchanged: false
|
|
1147
|
+
},
|
|
1148
|
+
["fileIds"]
|
|
1149
|
+
);
|
|
1150
|
+
sideEffects?.onError?.(err);
|
|
1151
|
+
throw transformedError;
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
async function generateFileDownloadUrl2(fileId, options) {
|
|
1155
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1156
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1157
|
+
fileId,
|
|
1158
|
+
downloadFileName: options?.downloadFileName,
|
|
1159
|
+
expirationInMinutes: options?.expirationInMinutes,
|
|
1160
|
+
expirationRedirectUrl: options?.expirationRedirectUrl,
|
|
1161
|
+
assetKeys: options?.assetKeys,
|
|
1162
|
+
contentDisposition: options?.contentDisposition
|
|
1163
|
+
});
|
|
1164
|
+
const reqOpts = generateFileDownloadUrl(
|
|
1165
|
+
payload
|
|
1166
|
+
);
|
|
1167
|
+
sideEffects?.onSiteCall?.();
|
|
1168
|
+
try {
|
|
1169
|
+
const result = await httpClient.request(reqOpts);
|
|
1170
|
+
sideEffects?.onSuccess?.(result);
|
|
1171
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1172
|
+
} catch (err) {
|
|
1173
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1174
|
+
err,
|
|
1175
|
+
{
|
|
1176
|
+
spreadPathsToArguments: {},
|
|
1177
|
+
explicitPathsToArguments: {
|
|
1178
|
+
fileId: "$[0]",
|
|
1179
|
+
downloadFileName: "$[1].downloadFileName",
|
|
1180
|
+
expirationInMinutes: "$[1].expirationInMinutes",
|
|
1181
|
+
expirationRedirectUrl: "$[1].expirationRedirectUrl",
|
|
1182
|
+
assetKeys: "$[1].assetKeys",
|
|
1183
|
+
contentDisposition: "$[1].contentDisposition"
|
|
1184
|
+
},
|
|
1185
|
+
singleArgumentUnchanged: false
|
|
1186
|
+
},
|
|
1187
|
+
["fileId", "options"]
|
|
1188
|
+
);
|
|
1189
|
+
sideEffects?.onError?.(err);
|
|
1190
|
+
throw transformedError;
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
async function getFileDescriptor2(fileId) {
|
|
1194
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1195
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ fileId });
|
|
1196
|
+
const reqOpts = getFileDescriptor(payload);
|
|
1197
|
+
sideEffects?.onSiteCall?.();
|
|
1198
|
+
try {
|
|
1199
|
+
const result = await httpClient.request(reqOpts);
|
|
1200
|
+
sideEffects?.onSuccess?.(result);
|
|
1201
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1202
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1203
|
+
{
|
|
1204
|
+
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
1205
|
+
paths: [{ path: "file.media.video" }]
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
transformFn: import_document2.transformRESTDocumentToSDKDocument,
|
|
1209
|
+
paths: [{ path: "file.media.document" }]
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1213
|
+
paths: [
|
|
1214
|
+
{ path: "file.media.image.image" },
|
|
1215
|
+
{ path: "file.media.image.previewImage" },
|
|
1216
|
+
{ path: "file.media.vector.image" },
|
|
1217
|
+
{ path: "file.media.vector.previewImage" },
|
|
1218
|
+
{ path: "file.media.model3d.thumbnail" },
|
|
1219
|
+
{ path: "file.media.icon.image" },
|
|
1220
|
+
{ path: "file.media.icon.previewImage" }
|
|
1221
|
+
]
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
transformFn: import_audio2.transformRESTAudioToSDKAudio,
|
|
1225
|
+
paths: [{ path: "file.media.audio.assets", isRepeated: true }]
|
|
1226
|
+
}
|
|
1227
|
+
])
|
|
1228
|
+
)?.file;
|
|
1229
|
+
} catch (err) {
|
|
1230
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1231
|
+
err,
|
|
1232
|
+
{
|
|
1233
|
+
spreadPathsToArguments: {},
|
|
1234
|
+
explicitPathsToArguments: { fileId: "$[0]" },
|
|
1235
|
+
singleArgumentUnchanged: false
|
|
1236
|
+
},
|
|
1237
|
+
["fileId"]
|
|
1238
|
+
);
|
|
1239
|
+
sideEffects?.onError?.(err);
|
|
1240
|
+
throw transformedError;
|
|
1241
|
+
}
|
|
1242
|
+
}
|
|
1243
|
+
async function getFileDescriptors2(fileIds) {
|
|
1244
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1245
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ fileIds });
|
|
1246
|
+
const reqOpts = getFileDescriptors(payload);
|
|
1247
|
+
sideEffects?.onSiteCall?.();
|
|
1248
|
+
try {
|
|
1249
|
+
const result = await httpClient.request(reqOpts);
|
|
1250
|
+
sideEffects?.onSuccess?.(result);
|
|
1251
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1252
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1253
|
+
{
|
|
1254
|
+
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
1255
|
+
paths: [{ path: "files.media.video" }]
|
|
1256
|
+
},
|
|
1257
|
+
{
|
|
1258
|
+
transformFn: import_document2.transformRESTDocumentToSDKDocument,
|
|
1259
|
+
paths: [{ path: "files.media.document" }]
|
|
1260
|
+
},
|
|
1261
|
+
{
|
|
1262
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1263
|
+
paths: [
|
|
1264
|
+
{ path: "files.media.image.image" },
|
|
1265
|
+
{ path: "files.media.image.previewImage" },
|
|
1266
|
+
{ path: "files.media.vector.image" },
|
|
1267
|
+
{ path: "files.media.vector.previewImage" },
|
|
1268
|
+
{ path: "files.media.model3d.thumbnail" },
|
|
1269
|
+
{ path: "files.media.icon.image" },
|
|
1270
|
+
{ path: "files.media.icon.previewImage" }
|
|
1271
|
+
]
|
|
1272
|
+
},
|
|
1273
|
+
{
|
|
1274
|
+
transformFn: import_audio2.transformRESTAudioToSDKAudio,
|
|
1275
|
+
paths: [{ path: "files.media.audio.assets", isRepeated: true }]
|
|
1276
|
+
}
|
|
1277
|
+
])
|
|
1278
|
+
);
|
|
1279
|
+
} catch (err) {
|
|
1280
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1281
|
+
err,
|
|
1282
|
+
{
|
|
1283
|
+
spreadPathsToArguments: {},
|
|
1284
|
+
explicitPathsToArguments: { fileIds: "$[0]" },
|
|
1285
|
+
singleArgumentUnchanged: false
|
|
1286
|
+
},
|
|
1287
|
+
["fileIds"]
|
|
1288
|
+
);
|
|
1289
|
+
sideEffects?.onError?.(err);
|
|
1290
|
+
throw transformedError;
|
|
1291
|
+
}
|
|
1292
|
+
}
|
|
1293
|
+
async function updateFileDescriptor2(file) {
|
|
1294
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1295
|
+
const payload = (0, import_transform_paths2.transformPaths)(
|
|
1296
|
+
(0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ file }),
|
|
1297
|
+
[
|
|
1298
|
+
{
|
|
1299
|
+
transformFn: import_video_v2.transformSDKVideoV2ToRESTVideoV2,
|
|
1300
|
+
paths: [{ path: "file.media.video" }]
|
|
1301
|
+
},
|
|
1302
|
+
{
|
|
1303
|
+
transformFn: import_document.transformSDKDocumentToRESTDocument,
|
|
1304
|
+
paths: [{ path: "file.media.document" }]
|
|
1305
|
+
},
|
|
1306
|
+
{
|
|
1307
|
+
transformFn: import_image.transformSDKImageToRESTImage,
|
|
1308
|
+
paths: [
|
|
1309
|
+
{ path: "file.media.image.image" },
|
|
1310
|
+
{ path: "file.media.image.previewImage" },
|
|
1311
|
+
{ path: "file.media.vector.image" },
|
|
1312
|
+
{ path: "file.media.vector.previewImage" },
|
|
1313
|
+
{ path: "file.media.model3d.thumbnail" },
|
|
1314
|
+
{ path: "file.media.icon.image" },
|
|
1315
|
+
{ path: "file.media.icon.previewImage" }
|
|
1316
|
+
]
|
|
1317
|
+
},
|
|
1318
|
+
{
|
|
1319
|
+
transformFn: import_audio.transformSDKAudioToRESTAudio,
|
|
1320
|
+
paths: [{ path: "file.media.audio.assets", isRepeated: true }]
|
|
1321
|
+
}
|
|
1322
|
+
]
|
|
1323
|
+
);
|
|
1324
|
+
const reqOpts = updateFileDescriptor(payload);
|
|
1325
|
+
sideEffects?.onSiteCall?.();
|
|
1326
|
+
try {
|
|
1327
|
+
const result = await httpClient.request(reqOpts);
|
|
1328
|
+
sideEffects?.onSuccess?.(result);
|
|
1329
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1330
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1331
|
+
{
|
|
1332
|
+
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
1333
|
+
paths: [{ path: "file.media.video" }]
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
transformFn: import_document2.transformRESTDocumentToSDKDocument,
|
|
1337
|
+
paths: [{ path: "file.media.document" }]
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1341
|
+
paths: [
|
|
1342
|
+
{ path: "file.media.image.image" },
|
|
1343
|
+
{ path: "file.media.image.previewImage" },
|
|
1344
|
+
{ path: "file.media.vector.image" },
|
|
1345
|
+
{ path: "file.media.vector.previewImage" },
|
|
1346
|
+
{ path: "file.media.model3d.thumbnail" },
|
|
1347
|
+
{ path: "file.media.icon.image" },
|
|
1348
|
+
{ path: "file.media.icon.previewImage" }
|
|
1349
|
+
]
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
transformFn: import_audio2.transformRESTAudioToSDKAudio,
|
|
1353
|
+
paths: [{ path: "file.media.audio.assets", isRepeated: true }]
|
|
1354
|
+
}
|
|
1355
|
+
])
|
|
1356
|
+
)?.file;
|
|
1357
|
+
} catch (err) {
|
|
1358
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1359
|
+
err,
|
|
1360
|
+
{
|
|
1361
|
+
spreadPathsToArguments: {},
|
|
1362
|
+
explicitPathsToArguments: { file: "$[0]" },
|
|
1363
|
+
singleArgumentUnchanged: false
|
|
1364
|
+
},
|
|
1365
|
+
["file"]
|
|
1366
|
+
);
|
|
1367
|
+
sideEffects?.onError?.(err);
|
|
1368
|
+
throw transformedError;
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
async function generateFileUploadUrl2(mimeType, options) {
|
|
1372
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1373
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1374
|
+
mimeType,
|
|
1375
|
+
fileName: options?.fileName,
|
|
1376
|
+
sizeInBytes: options?.sizeInBytes,
|
|
1377
|
+
parentFolderId: options?.parentFolderId,
|
|
1378
|
+
private: options?.private,
|
|
1379
|
+
labels: options?.labels,
|
|
1380
|
+
externalInfo: options?.externalInfo,
|
|
1381
|
+
filePath: options?.filePath
|
|
1382
|
+
});
|
|
1383
|
+
const reqOpts = generateFileUploadUrl(payload);
|
|
1384
|
+
sideEffects?.onSiteCall?.();
|
|
1385
|
+
try {
|
|
1386
|
+
const result = await httpClient.request(reqOpts);
|
|
1387
|
+
sideEffects?.onSuccess?.(result);
|
|
1388
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1389
|
+
} catch (err) {
|
|
1390
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1391
|
+
err,
|
|
1392
|
+
{
|
|
1393
|
+
spreadPathsToArguments: {},
|
|
1394
|
+
explicitPathsToArguments: {
|
|
1395
|
+
mimeType: "$[0]",
|
|
1396
|
+
fileName: "$[1].fileName",
|
|
1397
|
+
sizeInBytes: "$[1].sizeInBytes",
|
|
1398
|
+
parentFolderId: "$[1].parentFolderId",
|
|
1399
|
+
private: "$[1].private",
|
|
1400
|
+
labels: "$[1].labels",
|
|
1401
|
+
externalInfo: "$[1].externalInfo",
|
|
1402
|
+
filePath: "$[1].filePath"
|
|
1403
|
+
},
|
|
1404
|
+
singleArgumentUnchanged: false
|
|
1405
|
+
},
|
|
1406
|
+
["mimeType", "options"]
|
|
1407
|
+
);
|
|
1408
|
+
sideEffects?.onError?.(err);
|
|
1409
|
+
throw transformedError;
|
|
1410
|
+
}
|
|
1411
|
+
}
|
|
1412
|
+
async function generateFileResumableUploadUrl2(mimeType, options) {
|
|
1413
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1414
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1415
|
+
mimeType,
|
|
1416
|
+
fileName: options?.fileName,
|
|
1417
|
+
sizeInBytes: options?.sizeInBytes,
|
|
1418
|
+
parentFolderId: options?.parentFolderId,
|
|
1419
|
+
private: options?.private,
|
|
1420
|
+
labels: options?.labels,
|
|
1421
|
+
uploadProtocol: options?.uploadProtocol,
|
|
1422
|
+
filePath: options?.filePath
|
|
1423
|
+
});
|
|
1424
|
+
const reqOpts = generateFileResumableUploadUrl(
|
|
1425
|
+
payload
|
|
1426
|
+
);
|
|
1427
|
+
sideEffects?.onSiteCall?.();
|
|
1428
|
+
try {
|
|
1429
|
+
const result = await httpClient.request(reqOpts);
|
|
1430
|
+
sideEffects?.onSuccess?.(result);
|
|
1431
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1432
|
+
} catch (err) {
|
|
1433
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1434
|
+
err,
|
|
1435
|
+
{
|
|
1436
|
+
spreadPathsToArguments: {},
|
|
1437
|
+
explicitPathsToArguments: {
|
|
1438
|
+
mimeType: "$[0]",
|
|
1439
|
+
fileName: "$[1].fileName",
|
|
1440
|
+
sizeInBytes: "$[1].sizeInBytes",
|
|
1441
|
+
parentFolderId: "$[1].parentFolderId",
|
|
1442
|
+
private: "$[1].private",
|
|
1443
|
+
labels: "$[1].labels",
|
|
1444
|
+
uploadProtocol: "$[1].uploadProtocol",
|
|
1445
|
+
filePath: "$[1].filePath"
|
|
1446
|
+
},
|
|
1447
|
+
singleArgumentUnchanged: false
|
|
1448
|
+
},
|
|
1449
|
+
["mimeType", "options"]
|
|
1450
|
+
);
|
|
1451
|
+
sideEffects?.onError?.(err);
|
|
1452
|
+
throw transformedError;
|
|
1453
|
+
}
|
|
1454
|
+
}
|
|
1455
|
+
async function importFile2(url, options) {
|
|
1456
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1457
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1458
|
+
url,
|
|
1459
|
+
mediaType: options?.mediaType,
|
|
1460
|
+
displayName: options?.displayName,
|
|
1461
|
+
parentFolderId: options?.parentFolderId,
|
|
1462
|
+
private: options?.private,
|
|
1463
|
+
labels: options?.labels,
|
|
1464
|
+
mimeType: options?.mimeType,
|
|
1465
|
+
externalInfo: options?.externalInfo,
|
|
1466
|
+
urlParams: options?.urlParams,
|
|
1467
|
+
urlHeaders: options?.urlHeaders,
|
|
1468
|
+
filePath: options?.filePath
|
|
1469
|
+
});
|
|
1470
|
+
const reqOpts = importFile(payload);
|
|
1471
|
+
sideEffects?.onSiteCall?.();
|
|
1472
|
+
try {
|
|
1473
|
+
const result = await httpClient.request(reqOpts);
|
|
1474
|
+
sideEffects?.onSuccess?.(result);
|
|
1475
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1476
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1477
|
+
{
|
|
1478
|
+
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
1479
|
+
paths: [{ path: "file.media.video" }]
|
|
1480
|
+
},
|
|
1481
|
+
{
|
|
1482
|
+
transformFn: import_document2.transformRESTDocumentToSDKDocument,
|
|
1483
|
+
paths: [{ path: "file.media.document" }]
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1487
|
+
paths: [
|
|
1488
|
+
{ path: "file.media.image.image" },
|
|
1489
|
+
{ path: "file.media.image.previewImage" },
|
|
1490
|
+
{ path: "file.media.vector.image" },
|
|
1491
|
+
{ path: "file.media.vector.previewImage" },
|
|
1492
|
+
{ path: "file.media.model3d.thumbnail" },
|
|
1493
|
+
{ path: "file.media.icon.image" },
|
|
1494
|
+
{ path: "file.media.icon.previewImage" }
|
|
1495
|
+
]
|
|
1496
|
+
},
|
|
1497
|
+
{
|
|
1498
|
+
transformFn: import_audio2.transformRESTAudioToSDKAudio,
|
|
1499
|
+
paths: [{ path: "file.media.audio.assets", isRepeated: true }]
|
|
1500
|
+
}
|
|
1501
|
+
])
|
|
1502
|
+
);
|
|
1503
|
+
} catch (err) {
|
|
1504
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1505
|
+
err,
|
|
1506
|
+
{
|
|
1507
|
+
spreadPathsToArguments: {},
|
|
1508
|
+
explicitPathsToArguments: {
|
|
1509
|
+
url: "$[0]",
|
|
1510
|
+
mediaType: "$[1].mediaType",
|
|
1511
|
+
displayName: "$[1].displayName",
|
|
1512
|
+
parentFolderId: "$[1].parentFolderId",
|
|
1513
|
+
private: "$[1].private",
|
|
1514
|
+
labels: "$[1].labels",
|
|
1515
|
+
mimeType: "$[1].mimeType",
|
|
1516
|
+
externalInfo: "$[1].externalInfo",
|
|
1517
|
+
urlParams: "$[1].urlParams",
|
|
1518
|
+
urlHeaders: "$[1].urlHeaders",
|
|
1519
|
+
filePath: "$[1].filePath"
|
|
1520
|
+
},
|
|
1521
|
+
singleArgumentUnchanged: false
|
|
1522
|
+
},
|
|
1523
|
+
["url", "options"]
|
|
1524
|
+
);
|
|
1525
|
+
sideEffects?.onError?.(err);
|
|
1526
|
+
throw transformedError;
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
async function bulkImportFiles2(importFileRequests) {
|
|
1530
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1531
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1532
|
+
importFileRequests
|
|
1533
|
+
});
|
|
1534
|
+
const reqOpts = bulkImportFiles(payload);
|
|
1535
|
+
sideEffects?.onSiteCall?.();
|
|
1536
|
+
try {
|
|
1537
|
+
const result = await httpClient.request(reqOpts);
|
|
1538
|
+
sideEffects?.onSuccess?.(result);
|
|
1539
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1540
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1541
|
+
{
|
|
1542
|
+
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
1543
|
+
paths: [{ path: "files.media.video" }]
|
|
1544
|
+
},
|
|
1545
|
+
{
|
|
1546
|
+
transformFn: import_document2.transformRESTDocumentToSDKDocument,
|
|
1547
|
+
paths: [{ path: "files.media.document" }]
|
|
1548
|
+
},
|
|
1549
|
+
{
|
|
1550
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1551
|
+
paths: [
|
|
1552
|
+
{ path: "files.media.image.image" },
|
|
1553
|
+
{ path: "files.media.image.previewImage" },
|
|
1554
|
+
{ path: "files.media.vector.image" },
|
|
1555
|
+
{ path: "files.media.vector.previewImage" },
|
|
1556
|
+
{ path: "files.media.model3d.thumbnail" },
|
|
1557
|
+
{ path: "files.media.icon.image" },
|
|
1558
|
+
{ path: "files.media.icon.previewImage" }
|
|
1559
|
+
]
|
|
1560
|
+
},
|
|
1561
|
+
{
|
|
1562
|
+
transformFn: import_audio2.transformRESTAudioToSDKAudio,
|
|
1563
|
+
paths: [{ path: "files.media.audio.assets", isRepeated: true }]
|
|
1564
|
+
}
|
|
1565
|
+
])
|
|
1566
|
+
);
|
|
1567
|
+
} catch (err) {
|
|
1568
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1569
|
+
err,
|
|
1570
|
+
{
|
|
1571
|
+
spreadPathsToArguments: {},
|
|
1572
|
+
explicitPathsToArguments: { importFileRequests: "$[0]" },
|
|
1573
|
+
singleArgumentUnchanged: false
|
|
1574
|
+
},
|
|
1575
|
+
["importFileRequests"]
|
|
1576
|
+
);
|
|
1577
|
+
sideEffects?.onError?.(err);
|
|
1578
|
+
throw transformedError;
|
|
1579
|
+
}
|
|
1580
|
+
}
|
|
1581
|
+
async function bulkImportFile2(importFileRequests, options) {
|
|
1582
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1583
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1584
|
+
importFileRequests,
|
|
1585
|
+
returnEntity: options?.returnEntity
|
|
1586
|
+
});
|
|
1587
|
+
const reqOpts = bulkImportFile(payload);
|
|
1588
|
+
sideEffects?.onSiteCall?.();
|
|
1589
|
+
try {
|
|
1590
|
+
const result = await httpClient.request(reqOpts);
|
|
1591
|
+
sideEffects?.onSuccess?.(result);
|
|
1592
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1593
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1594
|
+
{
|
|
1595
|
+
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
1596
|
+
paths: [{ path: "results.item.media.video" }]
|
|
1597
|
+
},
|
|
1598
|
+
{
|
|
1599
|
+
transformFn: import_document2.transformRESTDocumentToSDKDocument,
|
|
1600
|
+
paths: [{ path: "results.item.media.document" }]
|
|
1601
|
+
},
|
|
1602
|
+
{
|
|
1603
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1604
|
+
paths: [
|
|
1605
|
+
{ path: "results.item.media.image.image" },
|
|
1606
|
+
{ path: "results.item.media.image.previewImage" },
|
|
1607
|
+
{ path: "results.item.media.vector.image" },
|
|
1608
|
+
{ path: "results.item.media.vector.previewImage" },
|
|
1609
|
+
{ path: "results.item.media.model3d.thumbnail" },
|
|
1610
|
+
{ path: "results.item.media.icon.image" },
|
|
1611
|
+
{ path: "results.item.media.icon.previewImage" }
|
|
1612
|
+
]
|
|
1613
|
+
},
|
|
1614
|
+
{
|
|
1615
|
+
transformFn: import_audio2.transformRESTAudioToSDKAudio,
|
|
1616
|
+
paths: [
|
|
1617
|
+
{ path: "results.item.media.audio.assets", isRepeated: true }
|
|
1618
|
+
]
|
|
1619
|
+
}
|
|
1620
|
+
])
|
|
1621
|
+
);
|
|
1622
|
+
} catch (err) {
|
|
1623
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1624
|
+
err,
|
|
1625
|
+
{
|
|
1626
|
+
spreadPathsToArguments: {},
|
|
1627
|
+
explicitPathsToArguments: {
|
|
1628
|
+
importFileRequests: "$[0]",
|
|
1629
|
+
returnEntity: "$[1].returnEntity"
|
|
1630
|
+
},
|
|
1631
|
+
singleArgumentUnchanged: false
|
|
1632
|
+
},
|
|
1633
|
+
["importFileRequests", "options"]
|
|
1634
|
+
);
|
|
1635
|
+
sideEffects?.onError?.(err);
|
|
1636
|
+
throw transformedError;
|
|
1637
|
+
}
|
|
1638
|
+
}
|
|
1639
|
+
async function listFiles2(options) {
|
|
1640
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1641
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1642
|
+
parentFolderId: options?.parentFolderId,
|
|
1643
|
+
mediaTypes: options?.mediaTypes,
|
|
1644
|
+
private: options?.private,
|
|
1645
|
+
sort: options?.sort,
|
|
1646
|
+
paging: options?.paging
|
|
1647
|
+
});
|
|
1648
|
+
const reqOpts = listFiles(payload);
|
|
1649
|
+
sideEffects?.onSiteCall?.();
|
|
1650
|
+
try {
|
|
1651
|
+
const result = await httpClient.request(reqOpts);
|
|
1652
|
+
sideEffects?.onSuccess?.(result);
|
|
1653
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1654
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1655
|
+
{
|
|
1656
|
+
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
1657
|
+
paths: [{ path: "files.media.video" }]
|
|
1658
|
+
},
|
|
1659
|
+
{
|
|
1660
|
+
transformFn: import_document2.transformRESTDocumentToSDKDocument,
|
|
1661
|
+
paths: [{ path: "files.media.document" }]
|
|
1662
|
+
},
|
|
1663
|
+
{
|
|
1664
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1665
|
+
paths: [
|
|
1666
|
+
{ path: "files.media.image.image" },
|
|
1667
|
+
{ path: "files.media.image.previewImage" },
|
|
1668
|
+
{ path: "files.media.vector.image" },
|
|
1669
|
+
{ path: "files.media.vector.previewImage" },
|
|
1670
|
+
{ path: "files.media.model3d.thumbnail" },
|
|
1671
|
+
{ path: "files.media.icon.image" },
|
|
1672
|
+
{ path: "files.media.icon.previewImage" }
|
|
1673
|
+
]
|
|
1674
|
+
},
|
|
1675
|
+
{
|
|
1676
|
+
transformFn: import_audio2.transformRESTAudioToSDKAudio,
|
|
1677
|
+
paths: [{ path: "files.media.audio.assets", isRepeated: true }]
|
|
1678
|
+
}
|
|
1679
|
+
])
|
|
1680
|
+
);
|
|
1681
|
+
} catch (err) {
|
|
1682
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1683
|
+
err,
|
|
1684
|
+
{
|
|
1685
|
+
spreadPathsToArguments: {},
|
|
1686
|
+
explicitPathsToArguments: {
|
|
1687
|
+
parentFolderId: "$[0].parentFolderId",
|
|
1688
|
+
mediaTypes: "$[0].mediaTypes",
|
|
1689
|
+
private: "$[0].private",
|
|
1690
|
+
sort: "$[0].sort",
|
|
1691
|
+
paging: "$[0].paging"
|
|
1692
|
+
},
|
|
1693
|
+
singleArgumentUnchanged: false
|
|
1694
|
+
},
|
|
1695
|
+
["options"]
|
|
1696
|
+
);
|
|
1697
|
+
sideEffects?.onError?.(err);
|
|
1698
|
+
throw transformedError;
|
|
1699
|
+
}
|
|
1700
|
+
}
|
|
1701
|
+
async function searchFiles2(options) {
|
|
1702
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1703
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1704
|
+
search: options?.search,
|
|
1705
|
+
rootFolder: options?.rootFolder,
|
|
1706
|
+
mediaTypes: options?.mediaTypes,
|
|
1707
|
+
private: options?.private,
|
|
1708
|
+
sort: options?.sort,
|
|
1709
|
+
paging: options?.paging
|
|
1710
|
+
});
|
|
1711
|
+
const reqOpts = searchFiles(payload);
|
|
1712
|
+
sideEffects?.onSiteCall?.();
|
|
1713
|
+
try {
|
|
1714
|
+
const result = await httpClient.request(reqOpts);
|
|
1715
|
+
sideEffects?.onSuccess?.(result);
|
|
1716
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1717
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1718
|
+
{
|
|
1719
|
+
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
1720
|
+
paths: [{ path: "files.media.video" }]
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
transformFn: import_document2.transformRESTDocumentToSDKDocument,
|
|
1724
|
+
paths: [{ path: "files.media.document" }]
|
|
1725
|
+
},
|
|
1726
|
+
{
|
|
1727
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1728
|
+
paths: [
|
|
1729
|
+
{ path: "files.media.image.image" },
|
|
1730
|
+
{ path: "files.media.image.previewImage" },
|
|
1731
|
+
{ path: "files.media.vector.image" },
|
|
1732
|
+
{ path: "files.media.vector.previewImage" },
|
|
1733
|
+
{ path: "files.media.model3d.thumbnail" },
|
|
1734
|
+
{ path: "files.media.icon.image" },
|
|
1735
|
+
{ path: "files.media.icon.previewImage" }
|
|
1736
|
+
]
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
transformFn: import_audio2.transformRESTAudioToSDKAudio,
|
|
1740
|
+
paths: [{ path: "files.media.audio.assets", isRepeated: true }]
|
|
1741
|
+
}
|
|
1742
|
+
])
|
|
1743
|
+
);
|
|
1744
|
+
} catch (err) {
|
|
1745
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1746
|
+
err,
|
|
1747
|
+
{
|
|
1748
|
+
spreadPathsToArguments: {},
|
|
1749
|
+
explicitPathsToArguments: {
|
|
1750
|
+
search: "$[0].search",
|
|
1751
|
+
rootFolder: "$[0].rootFolder",
|
|
1752
|
+
mediaTypes: "$[0].mediaTypes",
|
|
1753
|
+
private: "$[0].private",
|
|
1754
|
+
sort: "$[0].sort",
|
|
1755
|
+
paging: "$[0].paging"
|
|
1756
|
+
},
|
|
1757
|
+
singleArgumentUnchanged: false
|
|
1758
|
+
},
|
|
1759
|
+
["options"]
|
|
1760
|
+
);
|
|
1761
|
+
sideEffects?.onError?.(err);
|
|
1762
|
+
throw transformedError;
|
|
1763
|
+
}
|
|
1764
|
+
}
|
|
1765
|
+
async function generateVideoStreamingUrl2(fileId, options) {
|
|
1766
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1767
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1768
|
+
fileId,
|
|
1769
|
+
format: options?.format
|
|
1770
|
+
});
|
|
1771
|
+
const reqOpts = generateVideoStreamingUrl(
|
|
1772
|
+
payload
|
|
1773
|
+
);
|
|
1774
|
+
sideEffects?.onSiteCall?.();
|
|
1775
|
+
try {
|
|
1776
|
+
const result = await httpClient.request(reqOpts);
|
|
1777
|
+
sideEffects?.onSuccess?.(result);
|
|
1778
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1779
|
+
} catch (err) {
|
|
1780
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1781
|
+
err,
|
|
1782
|
+
{
|
|
1783
|
+
spreadPathsToArguments: {},
|
|
1784
|
+
explicitPathsToArguments: { fileId: "$[0]", format: "$[1].format" },
|
|
1785
|
+
singleArgumentUnchanged: false
|
|
1786
|
+
},
|
|
1787
|
+
["fileId", "options"]
|
|
1788
|
+
);
|
|
1789
|
+
sideEffects?.onError?.(err);
|
|
1790
|
+
throw transformedError;
|
|
1791
|
+
}
|
|
1792
|
+
}
|
|
1793
|
+
async function bulkDeleteFiles2(fileIds, options) {
|
|
1794
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1795
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1796
|
+
fileIds,
|
|
1797
|
+
permanent: options?.permanent
|
|
1798
|
+
});
|
|
1799
|
+
const reqOpts = bulkDeleteFiles(payload);
|
|
1800
|
+
sideEffects?.onSiteCall?.();
|
|
1801
|
+
try {
|
|
1802
|
+
const result = await httpClient.request(reqOpts);
|
|
1803
|
+
sideEffects?.onSuccess?.(result);
|
|
1804
|
+
} catch (err) {
|
|
1805
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1806
|
+
err,
|
|
1807
|
+
{
|
|
1808
|
+
spreadPathsToArguments: {},
|
|
1809
|
+
explicitPathsToArguments: {
|
|
1810
|
+
fileIds: "$[0]",
|
|
1811
|
+
permanent: "$[1].permanent"
|
|
1812
|
+
},
|
|
1813
|
+
singleArgumentUnchanged: false
|
|
1814
|
+
},
|
|
1815
|
+
["fileIds", "options"]
|
|
1816
|
+
);
|
|
1817
|
+
sideEffects?.onError?.(err);
|
|
1818
|
+
throw transformedError;
|
|
1819
|
+
}
|
|
1820
|
+
}
|
|
1821
|
+
async function bulkRestoreFilesFromTrashBin2(fileIds) {
|
|
1822
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1823
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ fileIds });
|
|
1824
|
+
const reqOpts = bulkRestoreFilesFromTrashBin(
|
|
1825
|
+
payload
|
|
1826
|
+
);
|
|
1827
|
+
sideEffects?.onSiteCall?.();
|
|
1828
|
+
try {
|
|
1829
|
+
const result = await httpClient.request(reqOpts);
|
|
1830
|
+
sideEffects?.onSuccess?.(result);
|
|
1831
|
+
} catch (err) {
|
|
1832
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1833
|
+
err,
|
|
1834
|
+
{
|
|
1835
|
+
spreadPathsToArguments: {},
|
|
1836
|
+
explicitPathsToArguments: { fileIds: "$[0]" },
|
|
1837
|
+
singleArgumentUnchanged: false
|
|
1838
|
+
},
|
|
1839
|
+
["fileIds"]
|
|
1840
|
+
);
|
|
1841
|
+
sideEffects?.onError?.(err);
|
|
1842
|
+
throw transformedError;
|
|
1843
|
+
}
|
|
1844
|
+
}
|
|
1845
|
+
async function listDeletedFiles2(options) {
|
|
1846
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1847
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1848
|
+
parentFolderId: options?.parentFolderId,
|
|
1849
|
+
mediaTypes: options?.mediaTypes,
|
|
1850
|
+
private: options?.private,
|
|
1851
|
+
sort: options?.sort,
|
|
1852
|
+
paging: options?.paging
|
|
1853
|
+
});
|
|
1854
|
+
const reqOpts = listDeletedFiles(payload);
|
|
1855
|
+
sideEffects?.onSiteCall?.();
|
|
1856
|
+
try {
|
|
1857
|
+
const result = await httpClient.request(reqOpts);
|
|
1858
|
+
sideEffects?.onSuccess?.(result);
|
|
1859
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
1860
|
+
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
1861
|
+
{
|
|
1862
|
+
transformFn: import_video_v22.transformRESTVideoV2ToSDKVideoV2,
|
|
1863
|
+
paths: [{ path: "files.media.video" }]
|
|
1864
|
+
},
|
|
1865
|
+
{
|
|
1866
|
+
transformFn: import_document2.transformRESTDocumentToSDKDocument,
|
|
1867
|
+
paths: [{ path: "files.media.document" }]
|
|
1868
|
+
},
|
|
1869
|
+
{
|
|
1870
|
+
transformFn: import_image2.transformRESTImageToSDKImage,
|
|
1871
|
+
paths: [
|
|
1872
|
+
{ path: "files.media.image.image" },
|
|
1873
|
+
{ path: "files.media.image.previewImage" },
|
|
1874
|
+
{ path: "files.media.vector.image" },
|
|
1875
|
+
{ path: "files.media.vector.previewImage" },
|
|
1876
|
+
{ path: "files.media.model3d.thumbnail" },
|
|
1877
|
+
{ path: "files.media.icon.image" },
|
|
1878
|
+
{ path: "files.media.icon.previewImage" }
|
|
1879
|
+
]
|
|
1880
|
+
},
|
|
1881
|
+
{
|
|
1882
|
+
transformFn: import_audio2.transformRESTAudioToSDKAudio,
|
|
1883
|
+
paths: [{ path: "files.media.audio.assets", isRepeated: true }]
|
|
1884
|
+
}
|
|
1885
|
+
])
|
|
1886
|
+
);
|
|
1887
|
+
} catch (err) {
|
|
1888
|
+
const transformedError = (0, import_transform_error.transformError)(
|
|
1889
|
+
err,
|
|
1890
|
+
{
|
|
1891
|
+
spreadPathsToArguments: {},
|
|
1892
|
+
explicitPathsToArguments: {
|
|
1893
|
+
parentFolderId: "$[0].parentFolderId",
|
|
1894
|
+
mediaTypes: "$[0].mediaTypes",
|
|
1895
|
+
private: "$[0].private",
|
|
1896
|
+
sort: "$[0].sort",
|
|
1897
|
+
paging: "$[0].paging"
|
|
1898
|
+
},
|
|
1899
|
+
singleArgumentUnchanged: false
|
|
1900
|
+
},
|
|
1901
|
+
["options"]
|
|
1902
|
+
);
|
|
1903
|
+
sideEffects?.onError?.(err);
|
|
1904
|
+
throw transformedError;
|
|
1905
|
+
}
|
|
1906
|
+
}
|
|
1907
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
1908
|
+
0 && (module.exports = {
|
|
1909
|
+
ContentDisposition,
|
|
1910
|
+
IdentityType,
|
|
1911
|
+
ImageAnnotationType,
|
|
1912
|
+
MediaType,
|
|
1913
|
+
Namespace,
|
|
1914
|
+
OperationStatus,
|
|
1915
|
+
RootFolder,
|
|
1916
|
+
SortOrder,
|
|
1917
|
+
State,
|
|
1918
|
+
StreamFormat,
|
|
1919
|
+
UploadProtocol,
|
|
1920
|
+
WebhookIdentityType,
|
|
1921
|
+
bulkDeleteFiles,
|
|
1922
|
+
bulkImportFile,
|
|
1923
|
+
bulkImportFiles,
|
|
1924
|
+
bulkRestoreFilesFromTrashBin,
|
|
1925
|
+
generateFileDownloadUrl,
|
|
1926
|
+
generateFileResumableUploadUrl,
|
|
1927
|
+
generateFileUploadUrl,
|
|
1928
|
+
generateFilesDownloadUrl,
|
|
1929
|
+
generateVideoStreamingUrl,
|
|
1930
|
+
getFileDescriptor,
|
|
1931
|
+
getFileDescriptors,
|
|
1932
|
+
importFile,
|
|
1933
|
+
listDeletedFiles,
|
|
1934
|
+
listFiles,
|
|
1935
|
+
searchFiles,
|
|
1936
|
+
updateFileDescriptor
|
|
1937
|
+
});
|
|
1938
|
+
//# sourceMappingURL=index.typings.js.map
|