@wix/media 1.0.38 → 1.0.39
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/src/media-site-media-v1-file-descriptor.public.d.ts +9 -9
- package/build/cjs/src/media-site-media-v1-file-descriptor.public.js +1 -1
- package/build/cjs/src/media-site-media-v1-file-descriptor.public.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-file-descriptor.types.d.ts +30 -10
- package/build/cjs/src/media-site-media-v1-file-descriptor.types.js +77 -68
- package/build/cjs/src/media-site-media-v1-file-descriptor.types.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-file-descriptor.universal.d.ts +34 -11
- package/build/cjs/src/media-site-media-v1-file-descriptor.universal.js +85 -72
- package/build/cjs/src/media-site-media-v1-file-descriptor.universal.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-folder.public.d.ts +2 -2
- package/build/cjs/src/media-site-media-v1-folder.types.d.ts +12 -4
- package/build/cjs/src/media-site-media-v1-folder.types.js +36 -32
- package/build/cjs/src/media-site-media-v1-folder.types.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-folder.universal.d.ts +11 -4
- package/build/cjs/src/media-site-media-v1-folder.universal.js +36 -32
- package/build/cjs/src/media-site-media-v1-folder.universal.js.map +1 -1
- package/build/es/src/media-site-media-v1-file-descriptor.public.d.ts +9 -9
- package/build/es/src/media-site-media-v1-file-descriptor.public.js +1 -1
- package/build/es/src/media-site-media-v1-file-descriptor.public.js.map +1 -1
- package/build/es/src/media-site-media-v1-file-descriptor.types.d.ts +30 -10
- package/build/es/src/media-site-media-v1-file-descriptor.types.js +77 -68
- package/build/es/src/media-site-media-v1-file-descriptor.types.js.map +1 -1
- package/build/es/src/media-site-media-v1-file-descriptor.universal.d.ts +34 -11
- package/build/es/src/media-site-media-v1-file-descriptor.universal.js +85 -72
- package/build/es/src/media-site-media-v1-file-descriptor.universal.js.map +1 -1
- package/build/es/src/media-site-media-v1-folder.public.d.ts +2 -2
- package/build/es/src/media-site-media-v1-folder.types.d.ts +12 -4
- package/build/es/src/media-site-media-v1-folder.types.js +36 -32
- package/build/es/src/media-site-media-v1-folder.types.js.map +1 -1
- package/build/es/src/media-site-media-v1-folder.universal.d.ts +11 -4
- package/build/es/src/media-site-media-v1-folder.universal.js +36 -32
- package/build/es/src/media-site-media-v1-folder.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HttpClient } from '@wix/sdk-types';
|
|
2
|
-
import { UpdateFileDescriptorFile, ImportFileRequest, BulkDeleteFilesOptions, GenerateFileDownloadUrlOptions, GenerateFileResumableUploadUrlOptions, GenerateFileUploadUrlOptions, GenerateVideoStreamingUrlOptions, ImportFileOptions, ListDeletedFilesOptions, ListFilesOptions, SearchFilesOptions } from './media-site-media-v1-file-descriptor.universal';
|
|
2
|
+
import { UpdateFileDescriptorFile, ImportFileRequest, BulkDeleteFilesOptions, BulkImportFileOptions, GenerateFileDownloadUrlOptions, GenerateFileResumableUploadUrlOptions, GenerateFileUploadUrlOptions, GenerateVideoStreamingUrlOptions, ImportFileOptions, ListDeletedFilesOptions, ListFilesOptions, SearchFilesOptions } from './media-site-media-v1-file-descriptor.universal';
|
|
3
3
|
export declare const __metadata: {
|
|
4
4
|
PACKAGE_NAME: string;
|
|
5
5
|
};
|
|
@@ -11,7 +11,7 @@ export declare function getFileDescriptor(httpClient: HttpClient): (fileId: stri
|
|
|
11
11
|
url: string;
|
|
12
12
|
hash: string;
|
|
13
13
|
private: boolean;
|
|
14
|
-
mediaType:
|
|
14
|
+
mediaType: "UNKNOWN" | "IMAGE" | "VIDEO" | "AUDIO" | "DOCUMENT" | "VECTOR" | "ARCHIVE" | "MODEL3D" | "OTHER";
|
|
15
15
|
media?: {
|
|
16
16
|
image?: {
|
|
17
17
|
image: string;
|
|
@@ -57,10 +57,10 @@ export declare function getFileDescriptor(httpClient: HttpClient): (fileId: stri
|
|
|
57
57
|
thumbnail: string;
|
|
58
58
|
} | undefined;
|
|
59
59
|
} | undefined;
|
|
60
|
-
operationStatus:
|
|
60
|
+
operationStatus: "FAILED" | "READY" | "PENDING";
|
|
61
61
|
labels: string[];
|
|
62
62
|
siteId: string;
|
|
63
|
-
state:
|
|
63
|
+
state: "OK" | "DELETED";
|
|
64
64
|
}>;
|
|
65
65
|
export declare function getFileDescriptors(httpClient: HttpClient): (fileIds: string[]) => Promise<import("./media-site-media-v1-file-descriptor.universal").GetFileDescriptorsResponse & import("./media-site-media-v1-file-descriptor.universal").GetFileDescriptorsResponseNonNullableFields>;
|
|
66
66
|
export declare function updateFileDescriptor(httpClient: HttpClient): (_id: string, file: UpdateFileDescriptorFile) => Promise<import("./media-site-media-v1-file-descriptor.universal").FileDescriptor & {
|
|
@@ -69,7 +69,7 @@ export declare function updateFileDescriptor(httpClient: HttpClient): (_id: stri
|
|
|
69
69
|
url: string;
|
|
70
70
|
hash: string;
|
|
71
71
|
private: boolean;
|
|
72
|
-
mediaType:
|
|
72
|
+
mediaType: "UNKNOWN" | "IMAGE" | "VIDEO" | "AUDIO" | "DOCUMENT" | "VECTOR" | "ARCHIVE" | "MODEL3D" | "OTHER";
|
|
73
73
|
media?: {
|
|
74
74
|
image?: {
|
|
75
75
|
image: string;
|
|
@@ -115,16 +115,16 @@ export declare function updateFileDescriptor(httpClient: HttpClient): (_id: stri
|
|
|
115
115
|
thumbnail: string;
|
|
116
116
|
} | undefined;
|
|
117
117
|
} | undefined;
|
|
118
|
-
operationStatus:
|
|
118
|
+
operationStatus: "FAILED" | "READY" | "PENDING";
|
|
119
119
|
labels: string[];
|
|
120
120
|
siteId: string;
|
|
121
|
-
state:
|
|
121
|
+
state: "OK" | "DELETED";
|
|
122
122
|
}>;
|
|
123
123
|
export declare function generateFileUploadUrl(httpClient: HttpClient): (mimeType: string | null, options?: GenerateFileUploadUrlOptions | undefined) => Promise<import("./media-site-media-v1-file-descriptor.universal").GenerateFileUploadUrlResponse & import("./media-site-media-v1-file-descriptor.universal").GenerateFileUploadUrlResponseNonNullableFields>;
|
|
124
124
|
export declare function generateFileResumableUploadUrl(httpClient: HttpClient): (mimeType: string | null, options?: GenerateFileResumableUploadUrlOptions | undefined) => Promise<import("./media-site-media-v1-file-descriptor.universal").GenerateFileResumableUploadUrlResponse & import("./media-site-media-v1-file-descriptor.universal").GenerateFileResumableUploadUrlResponseNonNullableFields>;
|
|
125
125
|
export declare function importFile(httpClient: HttpClient): (url: string, options?: ImportFileOptions | undefined) => Promise<import("./media-site-media-v1-file-descriptor.universal").ImportFileResponse & import("./media-site-media-v1-file-descriptor.universal").ImportFileResponseNonNullableFields>;
|
|
126
126
|
export declare function bulkImportFiles(httpClient: HttpClient): (importFileRequests: ImportFileRequest[]) => Promise<import("./media-site-media-v1-file-descriptor.universal").BulkImportFilesResponse & import("./media-site-media-v1-file-descriptor.universal").BulkImportFilesResponseNonNullableFields>;
|
|
127
|
-
export declare function bulkImportFile(httpClient: HttpClient): (importFileRequests: ImportFileRequest[]) => Promise<import("./media-site-media-v1-file-descriptor.universal").BulkImportFileResponse & import("./media-site-media-v1-file-descriptor.universal").BulkImportFileResponseNonNullableFields>;
|
|
127
|
+
export declare function bulkImportFile(httpClient: HttpClient): (importFileRequests: ImportFileRequest[], options?: BulkImportFileOptions | undefined) => Promise<import("./media-site-media-v1-file-descriptor.universal").BulkImportFileResponse & import("./media-site-media-v1-file-descriptor.universal").BulkImportFileResponseNonNullableFields>;
|
|
128
128
|
export declare function listFiles(httpClient: HttpClient): (options?: ListFilesOptions | undefined) => Promise<import("./media-site-media-v1-file-descriptor.universal").ListFilesResponse & import("./media-site-media-v1-file-descriptor.universal").ListFilesResponseNonNullableFields>;
|
|
129
129
|
export declare function searchFiles(httpClient: HttpClient): (options?: SearchFilesOptions | undefined) => Promise<import("./media-site-media-v1-file-descriptor.universal").SearchFilesResponse & import("./media-site-media-v1-file-descriptor.universal").SearchFilesResponseNonNullableFields>;
|
|
130
130
|
export declare function generateVideoStreamingUrl(httpClient: HttpClient): (fileId: string, options?: GenerateVideoStreamingUrlOptions | undefined) => Promise<import("./media-site-media-v1-file-descriptor.universal").GenerateVideoStreamingUrlResponse & import("./media-site-media-v1-file-descriptor.universal").GenerateVideoStreamingUrlResponseNonNullableFields>;
|
|
@@ -132,4 +132,4 @@ export declare function bulkDeleteFiles(httpClient: HttpClient): (fileIds: strin
|
|
|
132
132
|
export declare function bulkRestoreFilesFromTrashBin(httpClient: HttpClient): (fileIds: string[]) => Promise<void>;
|
|
133
133
|
export declare function listDeletedFiles(httpClient: HttpClient): (options?: ListDeletedFilesOptions | undefined) => Promise<import("./media-site-media-v1-file-descriptor.universal").ListDeletedFilesResponse & import("./media-site-media-v1-file-descriptor.universal").ListDeletedFilesResponseNonNullableFields>;
|
|
134
134
|
export { MediaType, OperationStatus, State, Namespace, IdentityType, UploadProtocol, SortOrder, RootFolder, StreamFormat, } from './media-site-media-v1-file-descriptor.universal';
|
|
135
|
-
export { FileDescriptor, FileMedia, FileMediaMediaOneOf, ImageMedia, Colors, Color, ColorRGB, FaceRecognition, VideoResolution, AudioV2, Archive, Model3D, OtherMedia, IdentityInfo, FileReady, ExternalInfo, FileFailed, GenerateFilesDownloadUrlRequest, GenerateFilesDownloadUrlResponse, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse, DownloadUrl, GetFileDescriptorRequest, GetFileDescriptorResponse, GetFileDescriptorsRequest, GetFileDescriptorsResponse, UpdateFileRequest, UpdateFileResponse, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, GenerateFileUploadUrlRequest, GenerateFileUploadUrlResponse, GenerateFileResumableUploadUrlRequest, GenerateFileResumableUploadUrlResponse, ImportFileRequest, ImportFileResponse, BulkImportFilesRequest, BulkImportFilesResponse, BulkImportFileRequest, BulkImportFileResponse, BulkImportFileResult, ItemMetadata, ApplicationError, BulkActionMetadata, ListFilesRequest, Sorting, CursorPaging, ListFilesResponse, PagingMetadataV2, Cursors, SearchFilesRequest, SearchFilesResponse, GenerateVideoStreamingUrlRequest, GenerateVideoStreamingUrlResponse, GenerateWebSocketTokenRequest, GenerateWebSocketTokenResponse, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, ListDeletedFilesRequest, ListDeletedFilesResponse, GenerateFilesDownloadUrlResponseNonNullableFields, GenerateFileDownloadUrlResponseNonNullableFields, GetFileDescriptorResponseNonNullableFields, GetFileDescriptorsResponseNonNullableFields, UpdateFileDescriptorResponseNonNullableFields, GenerateFileUploadUrlResponseNonNullableFields, GenerateFileResumableUploadUrlResponseNonNullableFields, ImportFileResponseNonNullableFields, BulkImportFilesResponseNonNullableFields, BulkImportFileResponseNonNullableFields, ListFilesResponseNonNullableFields, SearchFilesResponseNonNullableFields, GenerateVideoStreamingUrlResponseNonNullableFields, ListDeletedFilesResponseNonNullableFields, GenerateFileDownloadUrlOptions, UpdateFileDescriptorFile, GenerateFileUploadUrlOptions, GenerateFileResumableUploadUrlOptions, ImportFileOptions, ListFilesOptions, SearchFilesOptions, GenerateVideoStreamingUrlOptions, BulkDeleteFilesOptions, ListDeletedFilesOptions, } from './media-site-media-v1-file-descriptor.universal';
|
|
135
|
+
export { FileDescriptor, FileMedia, FileMediaMediaOneOf, ImageMedia, Colors, Color, ColorRGB, FaceRecognition, VideoResolution, AudioV2, Archive, Model3D, OtherMedia, IdentityInfo, FileReady, ExternalInfo, FileFailed, GenerateFilesDownloadUrlRequest, GenerateFilesDownloadUrlResponse, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse, DownloadUrl, GetFileDescriptorRequest, GetFileDescriptorResponse, GetFileDescriptorsRequest, GetFileDescriptorsResponse, UpdateFileRequest, UpdateFileResponse, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, GenerateFileUploadUrlRequest, GenerateFileUploadUrlResponse, GenerateFileResumableUploadUrlRequest, GenerateFileResumableUploadUrlResponse, ImportFileRequest, ImportFileResponse, BulkImportFilesRequest, BulkImportFilesResponse, BulkImportFileRequest, BulkImportFileResponse, BulkImportFileResult, ItemMetadata, ApplicationError, BulkActionMetadata, ListFilesRequest, Sorting, CursorPaging, ListFilesResponse, PagingMetadataV2, Cursors, SearchFilesRequest, SearchFilesResponse, GenerateVideoStreamingUrlRequest, GenerateVideoStreamingUrlResponse, GenerateWebSocketTokenRequest, GenerateWebSocketTokenResponse, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, ListDeletedFilesRequest, ListDeletedFilesResponse, GenerateFilesDownloadUrlResponseNonNullableFields, GenerateFileDownloadUrlResponseNonNullableFields, GetFileDescriptorResponseNonNullableFields, GetFileDescriptorsResponseNonNullableFields, UpdateFileDescriptorResponseNonNullableFields, GenerateFileUploadUrlResponseNonNullableFields, GenerateFileResumableUploadUrlResponseNonNullableFields, ImportFileResponseNonNullableFields, BulkImportFilesResponseNonNullableFields, BulkImportFileResponseNonNullableFields, ListFilesResponseNonNullableFields, SearchFilesResponseNonNullableFields, GenerateVideoStreamingUrlResponseNonNullableFields, ListDeletedFilesResponseNonNullableFields, GenerateFileDownloadUrlOptions, UpdateFileDescriptorFile, GenerateFileUploadUrlOptions, GenerateFileResumableUploadUrlOptions, ImportFileOptions, BulkImportFileOptions, ListFilesOptions, SearchFilesOptions, GenerateVideoStreamingUrlOptions, BulkDeleteFilesOptions, ListDeletedFilesOptions, } from './media-site-media-v1-file-descriptor.universal';
|
|
@@ -58,7 +58,7 @@ function bulkImportFiles(httpClient) {
|
|
|
58
58
|
}
|
|
59
59
|
exports.bulkImportFiles = bulkImportFiles;
|
|
60
60
|
function bulkImportFile(httpClient) {
|
|
61
|
-
return (importFileRequests) => (0, media_site_media_v1_file_descriptor_universal_1.bulkImportFile)(importFileRequests,
|
|
61
|
+
return (importFileRequests, options) => (0, media_site_media_v1_file_descriptor_universal_1.bulkImportFile)(importFileRequests, options,
|
|
62
62
|
// @ts-ignore
|
|
63
63
|
{ httpClient });
|
|
64
64
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-site-media-v1-file-descriptor.public.js","sourceRoot":"","sources":["../../../src/media-site-media-v1-file-descriptor.public.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"media-site-media-v1-file-descriptor.public.js","sourceRoot":"","sources":["../../../src/media-site-media-v1-file-descriptor.public.ts"],"names":[],"mappings":"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"}
|
|
@@ -79,7 +79,7 @@ export interface FileDescriptor {
|
|
|
79
79
|
*/
|
|
80
80
|
state?: State;
|
|
81
81
|
}
|
|
82
|
-
|
|
82
|
+
declare enum MediaTypeEnum {
|
|
83
83
|
UNKNOWN = "UNKNOWN",
|
|
84
84
|
IMAGE = "IMAGE",
|
|
85
85
|
VIDEO = "VIDEO",
|
|
@@ -90,6 +90,8 @@ export declare enum MediaType {
|
|
|
90
90
|
MODEL3D = "MODEL3D",
|
|
91
91
|
OTHER = "OTHER"
|
|
92
92
|
}
|
|
93
|
+
declare type MediaType = `${MediaTypeEnum}`;
|
|
94
|
+
export { MediaTypeEnum as MediaType };
|
|
93
95
|
export interface FileMedia extends FileMediaMediaOneOf {
|
|
94
96
|
/** Information about the image. */
|
|
95
97
|
image?: ImageMedia;
|
|
@@ -333,7 +335,7 @@ export interface OtherMedia {
|
|
|
333
335
|
*/
|
|
334
336
|
sizeInBytes?: string | null;
|
|
335
337
|
}
|
|
336
|
-
|
|
338
|
+
declare enum OperationStatusEnum {
|
|
337
339
|
/** File upload or processing failed */
|
|
338
340
|
FAILED = "FAILED",
|
|
339
341
|
/** File is ready for consumption */
|
|
@@ -341,13 +343,17 @@ export declare enum OperationStatus {
|
|
|
341
343
|
/** File is waiting for processing or currently being processed */
|
|
342
344
|
PENDING = "PENDING"
|
|
343
345
|
}
|
|
344
|
-
|
|
346
|
+
declare type OperationStatus = `${OperationStatusEnum}`;
|
|
347
|
+
export { OperationStatusEnum as OperationStatus };
|
|
348
|
+
declare enum StateEnum {
|
|
345
349
|
/** File is ready for consumption */
|
|
346
350
|
OK = "OK",
|
|
347
351
|
/** Deleted file */
|
|
348
352
|
DELETED = "DELETED"
|
|
349
353
|
}
|
|
350
|
-
|
|
354
|
+
declare type State = `${StateEnum}`;
|
|
355
|
+
export { StateEnum as State };
|
|
356
|
+
declare enum NamespaceEnum {
|
|
351
357
|
NO_NAMESPACE = "NO_NAMESPACE",
|
|
352
358
|
OTHERS = "OTHERS",
|
|
353
359
|
/** ANY = 2; */
|
|
@@ -373,19 +379,23 @@ export declare enum Namespace {
|
|
|
373
379
|
/** _nsWixForms */
|
|
374
380
|
WIX_FORMS = "WIX_FORMS"
|
|
375
381
|
}
|
|
382
|
+
declare type Namespace = `${NamespaceEnum}`;
|
|
383
|
+
export { NamespaceEnum as Namespace };
|
|
376
384
|
export interface IdentityInfo {
|
|
377
385
|
/** The type of the user that uploaded the file */
|
|
378
386
|
identityType?: IdentityType;
|
|
379
387
|
/** User Id. empty when UNKNOWN */
|
|
380
388
|
identityId?: string | null;
|
|
381
389
|
}
|
|
382
|
-
|
|
390
|
+
declare enum IdentityTypeEnum {
|
|
383
391
|
UNKNOWN = "UNKNOWN",
|
|
384
392
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
385
393
|
MEMBER = "MEMBER",
|
|
386
394
|
WIX_USER = "WIX_USER",
|
|
387
395
|
APP = "APP"
|
|
388
396
|
}
|
|
397
|
+
declare type IdentityType = `${IdentityTypeEnum}`;
|
|
398
|
+
export { IdentityTypeEnum as IdentityType };
|
|
389
399
|
export interface FileReady {
|
|
390
400
|
/** File entity that is ready with full information */
|
|
391
401
|
file?: FileDescriptor;
|
|
@@ -546,10 +556,12 @@ export interface GenerateFileResumableUploadUrlRequest {
|
|
|
546
556
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
547
557
|
uploadProtocol?: UploadProtocol;
|
|
548
558
|
}
|
|
549
|
-
|
|
559
|
+
declare enum UploadProtocolEnum {
|
|
550
560
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
551
561
|
TUS = "TUS"
|
|
552
562
|
}
|
|
563
|
+
declare type UploadProtocol = `${UploadProtocolEnum}`;
|
|
564
|
+
export { UploadProtocolEnum as UploadProtocol };
|
|
553
565
|
export interface GenerateFileResumableUploadUrlResponse {
|
|
554
566
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
555
567
|
uploadProtocol?: UploadProtocol;
|
|
@@ -601,6 +613,8 @@ export interface BulkImportFilesResponse {
|
|
|
601
613
|
export interface BulkImportFileRequest {
|
|
602
614
|
/** Information about the files to import. */
|
|
603
615
|
importFileRequests: ImportFileRequest[];
|
|
616
|
+
/** set to `false` if you wish don't wish to receive back the created FileDescriptor in the response */
|
|
617
|
+
returnEntity?: boolean | null;
|
|
604
618
|
}
|
|
605
619
|
export interface BulkImportFileResponse {
|
|
606
620
|
/** Requests to update individual item */
|
|
@@ -611,7 +625,7 @@ export interface BulkImportFileResponse {
|
|
|
611
625
|
export interface BulkImportFileResult {
|
|
612
626
|
/** updated item metadata */
|
|
613
627
|
itemMetadata?: ItemMetadata;
|
|
614
|
-
/** only returned if operation was successful */
|
|
628
|
+
/** only returned if operation was successful and returnEntity is not set to false */
|
|
615
629
|
item?: FileDescriptor;
|
|
616
630
|
}
|
|
617
631
|
export interface ItemMetadata {
|
|
@@ -670,10 +684,12 @@ export interface Sorting {
|
|
|
670
684
|
/** Sort order. */
|
|
671
685
|
order?: SortOrder;
|
|
672
686
|
}
|
|
673
|
-
|
|
687
|
+
declare enum SortOrderEnum {
|
|
674
688
|
ASC = "ASC",
|
|
675
689
|
DESC = "DESC"
|
|
676
690
|
}
|
|
691
|
+
declare type SortOrder = `${SortOrderEnum}`;
|
|
692
|
+
export { SortOrderEnum as SortOrder };
|
|
677
693
|
export interface CursorPaging {
|
|
678
694
|
/** Number of items to load. */
|
|
679
695
|
limit?: number | null;
|
|
@@ -732,7 +748,7 @@ export interface SearchFilesRequest {
|
|
|
732
748
|
/** Cursor and paging information. */
|
|
733
749
|
paging?: CursorPaging;
|
|
734
750
|
}
|
|
735
|
-
|
|
751
|
+
declare enum RootFolderEnum {
|
|
736
752
|
/** Root of all site media */
|
|
737
753
|
MEDIA_ROOT = "MEDIA_ROOT",
|
|
738
754
|
/** Root of the trash system folder */
|
|
@@ -740,6 +756,8 @@ export declare enum RootFolder {
|
|
|
740
756
|
/** Root of all visitor uploads */
|
|
741
757
|
VISITOR_UPLOADS_ROOT = "VISITOR_UPLOADS_ROOT"
|
|
742
758
|
}
|
|
759
|
+
declare type RootFolder = `${RootFolderEnum}`;
|
|
760
|
+
export { RootFolderEnum as RootFolder };
|
|
743
761
|
export interface SearchFilesResponse {
|
|
744
762
|
/** Files matching the query. */
|
|
745
763
|
files?: FileDescriptor[];
|
|
@@ -752,11 +770,13 @@ export interface GenerateVideoStreamingUrlRequest {
|
|
|
752
770
|
/** Video stream format. */
|
|
753
771
|
format?: StreamFormat;
|
|
754
772
|
}
|
|
755
|
-
|
|
773
|
+
declare enum StreamFormatEnum {
|
|
756
774
|
UNKNOWN = "UNKNOWN",
|
|
757
775
|
HLS = "HLS",
|
|
758
776
|
DASH = "DASH"
|
|
759
777
|
}
|
|
778
|
+
declare type StreamFormat = `${StreamFormatEnum}`;
|
|
779
|
+
export { StreamFormatEnum as StreamFormat };
|
|
760
780
|
export interface GenerateVideoStreamingUrlResponse {
|
|
761
781
|
/** URL for streaming a specific file in the Media Manager. */
|
|
762
782
|
downloadUrl?: DownloadUrl;
|
|
@@ -1,92 +1,101 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.StreamFormat = exports.RootFolder = exports.SortOrder = exports.UploadProtocol = exports.IdentityType = exports.Namespace = exports.State = exports.OperationStatus = exports.MediaType = void 0;
|
|
4
|
-
var
|
|
5
|
-
(function (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
})(
|
|
16
|
-
|
|
17
|
-
|
|
4
|
+
var MediaTypeEnum;
|
|
5
|
+
(function (MediaTypeEnum) {
|
|
6
|
+
MediaTypeEnum["UNKNOWN"] = "UNKNOWN";
|
|
7
|
+
MediaTypeEnum["IMAGE"] = "IMAGE";
|
|
8
|
+
MediaTypeEnum["VIDEO"] = "VIDEO";
|
|
9
|
+
MediaTypeEnum["AUDIO"] = "AUDIO";
|
|
10
|
+
MediaTypeEnum["DOCUMENT"] = "DOCUMENT";
|
|
11
|
+
MediaTypeEnum["VECTOR"] = "VECTOR";
|
|
12
|
+
MediaTypeEnum["ARCHIVE"] = "ARCHIVE";
|
|
13
|
+
MediaTypeEnum["MODEL3D"] = "MODEL3D";
|
|
14
|
+
MediaTypeEnum["OTHER"] = "OTHER";
|
|
15
|
+
})(MediaTypeEnum || (MediaTypeEnum = {}));
|
|
16
|
+
exports.MediaType = MediaTypeEnum;
|
|
17
|
+
var OperationStatusEnum;
|
|
18
|
+
(function (OperationStatusEnum) {
|
|
18
19
|
/** File upload or processing failed */
|
|
19
|
-
|
|
20
|
+
OperationStatusEnum["FAILED"] = "FAILED";
|
|
20
21
|
/** File is ready for consumption */
|
|
21
|
-
|
|
22
|
+
OperationStatusEnum["READY"] = "READY";
|
|
22
23
|
/** File is waiting for processing or currently being processed */
|
|
23
|
-
|
|
24
|
-
})(
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
OperationStatusEnum["PENDING"] = "PENDING";
|
|
25
|
+
})(OperationStatusEnum || (OperationStatusEnum = {}));
|
|
26
|
+
exports.OperationStatus = OperationStatusEnum;
|
|
27
|
+
var StateEnum;
|
|
28
|
+
(function (StateEnum) {
|
|
27
29
|
/** File is ready for consumption */
|
|
28
|
-
|
|
30
|
+
StateEnum["OK"] = "OK";
|
|
29
31
|
/** Deleted file */
|
|
30
|
-
|
|
31
|
-
})(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
StateEnum["DELETED"] = "DELETED";
|
|
33
|
+
})(StateEnum || (StateEnum = {}));
|
|
34
|
+
exports.State = StateEnum;
|
|
35
|
+
var NamespaceEnum;
|
|
36
|
+
(function (NamespaceEnum) {
|
|
37
|
+
NamespaceEnum["NO_NAMESPACE"] = "NO_NAMESPACE";
|
|
38
|
+
NamespaceEnum["OTHERS"] = "OTHERS";
|
|
36
39
|
/** ANY = 2; */
|
|
37
|
-
|
|
40
|
+
NamespaceEnum["WIX_VIDEO"] = "WIX_VIDEO";
|
|
38
41
|
/** _nsWixMusic */
|
|
39
|
-
|
|
42
|
+
NamespaceEnum["WIX_MUSIC"] = "WIX_MUSIC";
|
|
40
43
|
/** _nsArtStore */
|
|
41
|
-
|
|
44
|
+
NamespaceEnum["ALBUMS_AND_ART_STORE"] = "ALBUMS_AND_ART_STORE";
|
|
42
45
|
/** _nsDigitalProduct */
|
|
43
|
-
|
|
46
|
+
NamespaceEnum["WIX_ECOM"] = "WIX_ECOM";
|
|
44
47
|
/** _nsPhotoShareApp */
|
|
45
|
-
|
|
48
|
+
NamespaceEnum["PHOTO_SHARE_APP"] = "PHOTO_SHARE_APP";
|
|
46
49
|
/** _nsSharingApp, */
|
|
47
|
-
|
|
50
|
+
NamespaceEnum["SHARING_APP"] = "SHARING_APP";
|
|
48
51
|
/** engage */
|
|
49
|
-
|
|
52
|
+
NamespaceEnum["CHAT"] = "CHAT";
|
|
50
53
|
/** logobuilder */
|
|
51
|
-
|
|
54
|
+
NamespaceEnum["LOGO_BUILDER"] = "LOGO_BUILDER";
|
|
52
55
|
/** WixExposure */
|
|
53
|
-
|
|
56
|
+
NamespaceEnum["ALBUMS_OLD"] = "ALBUMS_OLD";
|
|
54
57
|
/** chat-mobile-uploads */
|
|
55
|
-
|
|
58
|
+
NamespaceEnum["CHAT_MOBILE"] = "CHAT_MOBILE";
|
|
56
59
|
/** _nsWixForms */
|
|
57
|
-
|
|
58
|
-
})(
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
60
|
+
NamespaceEnum["WIX_FORMS"] = "WIX_FORMS";
|
|
61
|
+
})(NamespaceEnum || (NamespaceEnum = {}));
|
|
62
|
+
exports.Namespace = NamespaceEnum;
|
|
63
|
+
var IdentityTypeEnum;
|
|
64
|
+
(function (IdentityTypeEnum) {
|
|
65
|
+
IdentityTypeEnum["UNKNOWN"] = "UNKNOWN";
|
|
66
|
+
IdentityTypeEnum["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
67
|
+
IdentityTypeEnum["MEMBER"] = "MEMBER";
|
|
68
|
+
IdentityTypeEnum["WIX_USER"] = "WIX_USER";
|
|
69
|
+
IdentityTypeEnum["APP"] = "APP";
|
|
70
|
+
})(IdentityTypeEnum || (IdentityTypeEnum = {}));
|
|
71
|
+
exports.IdentityType = IdentityTypeEnum;
|
|
72
|
+
var UploadProtocolEnum;
|
|
73
|
+
(function (UploadProtocolEnum) {
|
|
69
74
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
70
|
-
|
|
71
|
-
})(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
UploadProtocolEnum["TUS"] = "TUS";
|
|
76
|
+
})(UploadProtocolEnum || (UploadProtocolEnum = {}));
|
|
77
|
+
exports.UploadProtocol = UploadProtocolEnum;
|
|
78
|
+
var SortOrderEnum;
|
|
79
|
+
(function (SortOrderEnum) {
|
|
80
|
+
SortOrderEnum["ASC"] = "ASC";
|
|
81
|
+
SortOrderEnum["DESC"] = "DESC";
|
|
82
|
+
})(SortOrderEnum || (SortOrderEnum = {}));
|
|
83
|
+
exports.SortOrder = SortOrderEnum;
|
|
84
|
+
var RootFolderEnum;
|
|
85
|
+
(function (RootFolderEnum) {
|
|
79
86
|
/** Root of all site media */
|
|
80
|
-
|
|
87
|
+
RootFolderEnum["MEDIA_ROOT"] = "MEDIA_ROOT";
|
|
81
88
|
/** Root of the trash system folder */
|
|
82
|
-
|
|
89
|
+
RootFolderEnum["TRASH_ROOT"] = "TRASH_ROOT";
|
|
83
90
|
/** Root of all visitor uploads */
|
|
84
|
-
|
|
85
|
-
})(
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
91
|
+
RootFolderEnum["VISITOR_UPLOADS_ROOT"] = "VISITOR_UPLOADS_ROOT";
|
|
92
|
+
})(RootFolderEnum || (RootFolderEnum = {}));
|
|
93
|
+
exports.RootFolder = RootFolderEnum;
|
|
94
|
+
var StreamFormatEnum;
|
|
95
|
+
(function (StreamFormatEnum) {
|
|
96
|
+
StreamFormatEnum["UNKNOWN"] = "UNKNOWN";
|
|
97
|
+
StreamFormatEnum["HLS"] = "HLS";
|
|
98
|
+
StreamFormatEnum["DASH"] = "DASH";
|
|
99
|
+
})(StreamFormatEnum || (StreamFormatEnum = {}));
|
|
100
|
+
exports.StreamFormat = StreamFormatEnum;
|
|
92
101
|
//# sourceMappingURL=media-site-media-v1-file-descriptor.types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media-site-media-v1-file-descriptor.types.js","sourceRoot":"","sources":["../../../src/media-site-media-v1-file-descriptor.types.ts"],"names":[],"mappings":";;;AAkFA,
|
|
1
|
+
{"version":3,"file":"media-site-media-v1-file-descriptor.types.js","sourceRoot":"","sources":["../../../src/media-site-media-v1-file-descriptor.types.ts"],"names":[],"mappings":";;;AAkFA,IAAK,aAUJ;AAVD,WAAK,aAAa;IAChB,oCAAmB,CAAA;IACnB,gCAAe,CAAA;IACf,gCAAe,CAAA;IACf,gCAAe,CAAA;IACf,sCAAqB,CAAA;IACrB,kCAAiB,CAAA;IACjB,oCAAmB,CAAA;IACnB,oCAAmB,CAAA;IACnB,gCAAe,CAAA;AACjB,CAAC,EAVI,aAAa,KAAb,aAAa,QAUjB;AAIyB,kCAAS;AAqQnC,IAAK,mBAOJ;AAPD,WAAK,mBAAmB;IACtB,uCAAuC;IACvC,wCAAiB,CAAA;IACjB,oCAAoC;IACpC,sCAAe,CAAA;IACf,kEAAkE;IAClE,0CAAmB,CAAA;AACrB,CAAC,EAPI,mBAAmB,KAAnB,mBAAmB,QAOvB;AAI+B,8CAAe;AAE/C,IAAK,SAKJ;AALD,WAAK,SAAS;IACZ,oCAAoC;IACpC,sBAAS,CAAA;IACT,mBAAmB;IACnB,gCAAmB,CAAA;AACrB,CAAC,EALI,SAAS,KAAT,SAAS,QAKb;AAIqB,0BAAK;AAE3B,IAAK,aAyBJ;AAzBD,WAAK,aAAa;IAChB,8CAA6B,CAAA;IAC7B,kCAAiB,CAAA;IACjB,eAAe;IACf,wCAAuB,CAAA;IACvB,kBAAkB;IAClB,wCAAuB,CAAA;IACvB,kBAAkB;IAClB,8DAA6C,CAAA;IAC7C,wBAAwB;IACxB,sCAAqB,CAAA;IACrB,uBAAuB;IACvB,oDAAmC,CAAA;IACnC,qBAAqB;IACrB,4CAA2B,CAAA;IAC3B,aAAa;IACb,8BAAa,CAAA;IACb,kBAAkB;IAClB,8CAA6B,CAAA;IAC7B,kBAAkB;IAClB,0CAAyB,CAAA;IACzB,0BAA0B;IAC1B,4CAA2B,CAAA;IAC3B,kBAAkB;IAClB,wCAAuB,CAAA;AACzB,CAAC,EAzBI,aAAa,KAAb,aAAa,QAyBjB;AAIyB,kCAAS;AASnC,IAAK,gBAMJ;AAND,WAAK,gBAAgB;IACnB,uCAAmB,CAAA;IACnB,2DAAuC,CAAA;IACvC,qCAAiB,CAAA;IACjB,yCAAqB,CAAA;IACrB,+BAAW,CAAA;AACb,CAAC,EANI,gBAAgB,KAAhB,gBAAgB,QAMpB;AAI4B,wCAAY;AAqLzC,IAAK,kBAGJ;AAHD,WAAK,kBAAkB;IACrB,wEAAwE;IACxE,iCAAW,CAAA;AACb,CAAC,EAHI,kBAAkB,KAAlB,kBAAkB,QAGtB;AAI8B,4CAAc;AAyI7C,IAAK,aAGJ;AAHD,WAAK,aAAa;IAChB,4BAAW,CAAA;IACX,8BAAa,CAAA;AACf,CAAC,EAHI,aAAa,KAAb,aAAa,QAGjB;AAIyB,kCAAS;AAiEnC,IAAK,cAOJ;AAPD,WAAK,cAAc;IACjB,6BAA6B;IAC7B,2CAAyB,CAAA;IACzB,sCAAsC;IACtC,2CAAyB,CAAA;IACzB,kCAAkC;IAClC,+DAA6C,CAAA;AAC/C,CAAC,EAPI,cAAc,KAAd,cAAc,QAOlB;AAI0B,oCAAU;AAgBrC,IAAK,gBAIJ;AAJD,WAAK,gBAAgB;IACnB,uCAAmB,CAAA;IACnB,+BAAW,CAAA;IACX,iCAAa,CAAA;AACf,CAAC,EAJI,gBAAgB,KAAhB,gBAAgB,QAIpB;AAI4B,wCAAY"}
|
|
@@ -91,7 +91,7 @@ export interface FileDescriptor {
|
|
|
91
91
|
*/
|
|
92
92
|
state?: State;
|
|
93
93
|
}
|
|
94
|
-
|
|
94
|
+
declare enum MediaTypeEnum {
|
|
95
95
|
UNKNOWN = "UNKNOWN",
|
|
96
96
|
IMAGE = "IMAGE",
|
|
97
97
|
VIDEO = "VIDEO",
|
|
@@ -102,6 +102,8 @@ export declare enum MediaType {
|
|
|
102
102
|
MODEL3D = "MODEL3D",
|
|
103
103
|
OTHER = "OTHER"
|
|
104
104
|
}
|
|
105
|
+
declare type MediaType = `${MediaTypeEnum}`;
|
|
106
|
+
export { MediaTypeEnum as MediaType };
|
|
105
107
|
export interface FileMedia extends FileMediaMediaOneOf {
|
|
106
108
|
/** Information about the image. */
|
|
107
109
|
image?: ImageMedia;
|
|
@@ -289,7 +291,7 @@ export interface OtherMedia {
|
|
|
289
291
|
*/
|
|
290
292
|
sizeInBytes?: string | null;
|
|
291
293
|
}
|
|
292
|
-
|
|
294
|
+
declare enum OperationStatusEnum {
|
|
293
295
|
/** File upload or processing failed */
|
|
294
296
|
FAILED = "FAILED",
|
|
295
297
|
/** File is ready for consumption */
|
|
@@ -297,13 +299,17 @@ export declare enum OperationStatus {
|
|
|
297
299
|
/** File is waiting for processing or currently being processed */
|
|
298
300
|
PENDING = "PENDING"
|
|
299
301
|
}
|
|
300
|
-
|
|
302
|
+
declare type OperationStatus = `${OperationStatusEnum}`;
|
|
303
|
+
export { OperationStatusEnum as OperationStatus };
|
|
304
|
+
declare enum StateEnum {
|
|
301
305
|
/** File is ready for consumption */
|
|
302
306
|
OK = "OK",
|
|
303
307
|
/** Deleted file */
|
|
304
308
|
DELETED = "DELETED"
|
|
305
309
|
}
|
|
306
|
-
|
|
310
|
+
declare type State = `${StateEnum}`;
|
|
311
|
+
export { StateEnum as State };
|
|
312
|
+
declare enum NamespaceEnum {
|
|
307
313
|
NO_NAMESPACE = "NO_NAMESPACE",
|
|
308
314
|
OTHERS = "OTHERS",
|
|
309
315
|
/** ANY = 2; */
|
|
@@ -329,19 +335,22 @@ export declare enum Namespace {
|
|
|
329
335
|
/** _nsWixForms */
|
|
330
336
|
WIX_FORMS = "WIX_FORMS"
|
|
331
337
|
}
|
|
338
|
+
export { NamespaceEnum as Namespace };
|
|
332
339
|
export interface IdentityInfo {
|
|
333
340
|
/** The type of the user that uploaded the file */
|
|
334
341
|
identityType?: IdentityType;
|
|
335
342
|
/** User Id. empty when UNKNOWN */
|
|
336
343
|
identityId?: string | null;
|
|
337
344
|
}
|
|
338
|
-
|
|
345
|
+
declare enum IdentityTypeEnum {
|
|
339
346
|
UNKNOWN = "UNKNOWN",
|
|
340
347
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
341
348
|
MEMBER = "MEMBER",
|
|
342
349
|
WIX_USER = "WIX_USER",
|
|
343
350
|
APP = "APP"
|
|
344
351
|
}
|
|
352
|
+
declare type IdentityType = `${IdentityTypeEnum}`;
|
|
353
|
+
export { IdentityTypeEnum as IdentityType };
|
|
345
354
|
export interface FileReady {
|
|
346
355
|
/** File entity that is ready with full information */
|
|
347
356
|
file?: FileDescriptor;
|
|
@@ -502,10 +511,12 @@ export interface GenerateFileResumableUploadUrlRequest {
|
|
|
502
511
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
503
512
|
uploadProtocol?: UploadProtocol;
|
|
504
513
|
}
|
|
505
|
-
|
|
514
|
+
declare enum UploadProtocolEnum {
|
|
506
515
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
507
516
|
TUS = "TUS"
|
|
508
517
|
}
|
|
518
|
+
declare type UploadProtocol = `${UploadProtocolEnum}`;
|
|
519
|
+
export { UploadProtocolEnum as UploadProtocol };
|
|
509
520
|
export interface GenerateFileResumableUploadUrlResponse {
|
|
510
521
|
/**
|
|
511
522
|
* The upload protocol to use for implementing the resumable upload.
|
|
@@ -562,6 +573,8 @@ export interface BulkImportFilesResponse {
|
|
|
562
573
|
export interface BulkImportFileRequest {
|
|
563
574
|
/** Information about the files to import. */
|
|
564
575
|
importFileRequests: ImportFileRequest[];
|
|
576
|
+
/** set to `false` if you wish don't wish to receive back the created FileDescriptor in the response */
|
|
577
|
+
returnEntity?: boolean | null;
|
|
565
578
|
}
|
|
566
579
|
export interface BulkImportFileResponse {
|
|
567
580
|
/** Requests to update individual item */
|
|
@@ -572,7 +585,7 @@ export interface BulkImportFileResponse {
|
|
|
572
585
|
export interface BulkImportFileResult {
|
|
573
586
|
/** updated item metadata */
|
|
574
587
|
itemMetadata?: ItemMetadata;
|
|
575
|
-
/** only returned if operation was successful */
|
|
588
|
+
/** only returned if operation was successful and returnEntity is not set to false */
|
|
576
589
|
item?: FileDescriptor;
|
|
577
590
|
}
|
|
578
591
|
export interface ItemMetadata {
|
|
@@ -635,10 +648,12 @@ export interface Sorting {
|
|
|
635
648
|
*/
|
|
636
649
|
order?: SortOrder;
|
|
637
650
|
}
|
|
638
|
-
|
|
651
|
+
declare enum SortOrderEnum {
|
|
639
652
|
ASC = "ASC",
|
|
640
653
|
DESC = "DESC"
|
|
641
654
|
}
|
|
655
|
+
declare type SortOrder = `${SortOrderEnum}`;
|
|
656
|
+
export { SortOrderEnum as SortOrder };
|
|
642
657
|
export interface CursorPaging {
|
|
643
658
|
/** Number of items to load. */
|
|
644
659
|
limit?: number | null;
|
|
@@ -697,7 +712,7 @@ export interface SearchFilesRequest {
|
|
|
697
712
|
/** Cursor and paging information. */
|
|
698
713
|
paging?: CursorPaging;
|
|
699
714
|
}
|
|
700
|
-
|
|
715
|
+
declare enum RootFolderEnum {
|
|
701
716
|
/** Root of all site media */
|
|
702
717
|
MEDIA_ROOT = "MEDIA_ROOT",
|
|
703
718
|
/** Root of the trash system folder */
|
|
@@ -705,6 +720,8 @@ export declare enum RootFolder {
|
|
|
705
720
|
/** Root of all visitor uploads */
|
|
706
721
|
VISITOR_UPLOADS_ROOT = "VISITOR_UPLOADS_ROOT"
|
|
707
722
|
}
|
|
723
|
+
declare type RootFolder = `${RootFolderEnum}`;
|
|
724
|
+
export { RootFolderEnum as RootFolder };
|
|
708
725
|
export interface SearchFilesResponse {
|
|
709
726
|
/** Files matching the query. */
|
|
710
727
|
files?: FileDescriptor[];
|
|
@@ -717,11 +734,13 @@ export interface GenerateVideoStreamingUrlRequest {
|
|
|
717
734
|
/** Video stream format. */
|
|
718
735
|
format?: StreamFormat;
|
|
719
736
|
}
|
|
720
|
-
|
|
737
|
+
declare enum StreamFormatEnum {
|
|
721
738
|
UNKNOWN = "UNKNOWN",
|
|
722
739
|
HLS = "HLS",
|
|
723
740
|
DASH = "DASH"
|
|
724
741
|
}
|
|
742
|
+
declare type StreamFormat = `${StreamFormatEnum}`;
|
|
743
|
+
export { StreamFormatEnum as StreamFormat };
|
|
725
744
|
export interface GenerateVideoStreamingUrlResponse {
|
|
726
745
|
/** URL for streaming a specific file in the Media Manager. */
|
|
727
746
|
downloadUrl?: DownloadUrl;
|
|
@@ -1697,7 +1716,11 @@ export declare function bulkImportFiles(importFileRequests: ImportFileRequest[])
|
|
|
1697
1716
|
* @permissionScope Manage Media Manager
|
|
1698
1717
|
* @applicableIdentity APP
|
|
1699
1718
|
*/
|
|
1700
|
-
export declare function bulkImportFile(importFileRequests: ImportFileRequest[]): Promise<BulkImportFileResponse & BulkImportFileResponseNonNullableFields>;
|
|
1719
|
+
export declare function bulkImportFile(importFileRequests: ImportFileRequest[], options?: BulkImportFileOptions): Promise<BulkImportFileResponse & BulkImportFileResponseNonNullableFields>;
|
|
1720
|
+
export interface BulkImportFileOptions {
|
|
1721
|
+
/** set to `false` if you wish don't wish to receive back the created FileDescriptor in the response */
|
|
1722
|
+
returnEntity?: boolean | null;
|
|
1723
|
+
}
|
|
1701
1724
|
/**
|
|
1702
1725
|
* Retrieves a list of files in the Media Manager.
|
|
1703
1726
|
*
|