@wix/media 1.0.40 → 1.0.42
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 +7 -7
- package/build/cjs/src/media-site-media-v1-file-descriptor.public.js +2 -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 +20 -27
- package/build/cjs/src/media-site-media-v1-file-descriptor.types.js +76 -69
- 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 +25 -26
- package/build/cjs/src/media-site-media-v1-file-descriptor.universal.js +77 -69
- 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 +4 -12
- package/build/cjs/src/media-site-media-v1-folder.types.js +32 -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 +4 -11
- package/build/cjs/src/media-site-media-v1-folder.universal.js +32 -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 +7 -7
- 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 +20 -27
- package/build/es/src/media-site-media-v1-file-descriptor.types.js +75 -77
- 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 +25 -26
- package/build/es/src/media-site-media-v1-file-descriptor.universal.js +76 -77
- 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 +4 -12
- package/build/es/src/media-site-media-v1-folder.types.js +32 -36
- 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 +4 -11
- package/build/es/src/media-site-media-v1-folder.universal.js +32 -36
- package/build/es/src/media-site-media-v1-folder.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -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: import("./media-site-media-v1-file-descriptor.universal").MediaType;
|
|
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: import("./media-site-media-v1-file-descriptor.universal").OperationStatus;
|
|
61
61
|
labels: string[];
|
|
62
62
|
siteId: string;
|
|
63
|
-
state: "
|
|
63
|
+
state: import("./media-site-media-v1-file-descriptor.universal").State;
|
|
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: import("./media-site-media-v1-file-descriptor.universal").MediaType;
|
|
73
73
|
media?: {
|
|
74
74
|
image?: {
|
|
75
75
|
image: string;
|
|
@@ -115,10 +115,10 @@ export declare function updateFileDescriptor(httpClient: HttpClient): (_id: stri
|
|
|
115
115
|
thumbnail: string;
|
|
116
116
|
} | undefined;
|
|
117
117
|
} | undefined;
|
|
118
|
-
operationStatus: "
|
|
118
|
+
operationStatus: import("./media-site-media-v1-file-descriptor.universal").OperationStatus;
|
|
119
119
|
labels: string[];
|
|
120
120
|
siteId: string;
|
|
121
|
-
state: "
|
|
121
|
+
state: import("./media-site-media-v1-file-descriptor.universal").State;
|
|
122
122
|
}>;
|
|
123
123
|
export declare function generateFileUploadUrl(httpClient: HttpClient): (mimeType: string | null, options?: GenerateFileUploadUrlOptions) => 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) => Promise<import("./media-site-media-v1-file-descriptor.universal").GenerateFileResumableUploadUrlResponse & import("./media-site-media-v1-file-descriptor.universal").GenerateFileResumableUploadUrlResponseNonNullableFields>;
|
|
@@ -131,5 +131,5 @@ export declare function generateVideoStreamingUrl(httpClient: HttpClient): (file
|
|
|
131
131
|
export declare function bulkDeleteFiles(httpClient: HttpClient): (fileIds: string[], options?: BulkDeleteFilesOptions) => Promise<void>;
|
|
132
132
|
export declare function bulkRestoreFilesFromTrashBin(httpClient: HttpClient): (fileIds: string[]) => Promise<void>;
|
|
133
133
|
export declare function listDeletedFiles(httpClient: HttpClient): (options?: ListDeletedFilesOptions) => Promise<import("./media-site-media-v1-file-descriptor.universal").ListDeletedFilesResponse & import("./media-site-media-v1-file-descriptor.universal").ListDeletedFilesResponseNonNullableFields>;
|
|
134
|
-
export { MediaType, OperationStatus, State, Namespace, IdentityType, UploadProtocol, SortOrder, RootFolder, StreamFormat, } from './media-site-media-v1-file-descriptor.universal';
|
|
134
|
+
export { MediaType, OperationStatus, State, Namespace, IdentityType, ContentDisposition, UploadProtocol, SortOrder, RootFolder, StreamFormat, } from './media-site-media-v1-file-descriptor.universal';
|
|
135
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';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StreamFormat = exports.RootFolder = exports.SortOrder = exports.UploadProtocol = exports.IdentityType = exports.Namespace = exports.State = exports.OperationStatus = exports.MediaType = exports.listDeletedFiles = exports.bulkRestoreFilesFromTrashBin = exports.bulkDeleteFiles = exports.generateVideoStreamingUrl = exports.searchFiles = exports.listFiles = exports.bulkImportFile = exports.bulkImportFiles = exports.importFile = exports.generateFileResumableUploadUrl = exports.generateFileUploadUrl = exports.updateFileDescriptor = exports.getFileDescriptors = exports.getFileDescriptor = exports.generateFileDownloadUrl = exports.generateFilesDownloadUrl = exports.__metadata = void 0;
|
|
3
|
+
exports.StreamFormat = exports.RootFolder = exports.SortOrder = exports.UploadProtocol = exports.ContentDisposition = exports.IdentityType = exports.Namespace = exports.State = exports.OperationStatus = exports.MediaType = exports.listDeletedFiles = exports.bulkRestoreFilesFromTrashBin = exports.bulkDeleteFiles = exports.generateVideoStreamingUrl = exports.searchFiles = exports.listFiles = exports.bulkImportFile = exports.bulkImportFiles = exports.importFile = exports.generateFileResumableUploadUrl = exports.generateFileUploadUrl = exports.updateFileDescriptor = exports.getFileDescriptors = exports.getFileDescriptor = exports.generateFileDownloadUrl = exports.generateFilesDownloadUrl = exports.__metadata = void 0;
|
|
4
4
|
const media_site_media_v1_file_descriptor_universal_1 = require("./media-site-media-v1-file-descriptor.universal");
|
|
5
5
|
exports.__metadata = { PACKAGE_NAME: '@wix/media' };
|
|
6
6
|
function generateFilesDownloadUrl(httpClient) {
|
|
@@ -105,6 +105,7 @@ Object.defineProperty(exports, "OperationStatus", { enumerable: true, get: funct
|
|
|
105
105
|
Object.defineProperty(exports, "State", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_universal_2.State; } });
|
|
106
106
|
Object.defineProperty(exports, "Namespace", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_universal_2.Namespace; } });
|
|
107
107
|
Object.defineProperty(exports, "IdentityType", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_universal_2.IdentityType; } });
|
|
108
|
+
Object.defineProperty(exports, "ContentDisposition", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_universal_2.ContentDisposition; } });
|
|
108
109
|
Object.defineProperty(exports, "UploadProtocol", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_universal_2.UploadProtocol; } });
|
|
109
110
|
Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_universal_2.SortOrder; } });
|
|
110
111
|
Object.defineProperty(exports, "RootFolder", { enumerable: true, get: function () { return media_site_media_v1_file_descriptor_universal_2.RootFolder; } });
|
|
@@ -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,mHA6ByD;AAE5C,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;AAEzD,SAAgB,wBAAwB,CAAC,UAAsB;IAC7D,OAAO,CAAC,OAAiB,EAAE,EAAE,CAC3B,IAAA,wEAAiC,EAC/B,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,4DAOC;AAED,SAAgB,uBAAuB,CAAC,UA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E,CAC3B,IAAA,4EAAqC,EACnC,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,oEAOC;AAED,SAAgB,gBAAgB,CAAC,UAAsB;IACrD,OAAO,CAAC,OAAiC,EAAE,EAAE,CAC3C,IAAA,gEAAyB,EACvB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,4CAOC;AAED,
|
|
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,mHA6ByD;AAE5C,QAAA,UAAU,GAAG,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;AAEzD,SAAgB,wBAAwB,CAAC,UAAsB;IAC7D,OAAO,CAAC,OAAiB,EAAE,EAAE,CAC3B,IAAA,wEAAiC,EAC/B,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,4DAOC;AAED,SAAgB,uBAAuB,CAAC,UAAsB;IAC5D,OAAO,CAAC,MAAc,EAAE,OAAwC,EAAE,EAAE,CAClE,IAAA,uEAAgC,EAC9B,MAAM,EACN,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AARD,0DAQC;AAED,SAAgB,iBAAiB,CAAC,UAAsB;IACtD,OAAO,CAAC,MAAc,EAAE,EAAE,CACxB,IAAA,iEAA0B,EACxB,MAAM;IACN,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,8CAOC;AAED,SAAgB,kBAAkB,CAAC,UAAsB;IACvD,OAAO,CAAC,OAAiB,EAAE,EAAE,CAC3B,IAAA,kEAA2B,EACzB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAPD,gDAOC;AAED,SAAgB,oBAAoB,CAAC,UAAsB;IACzD,OA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7 +79,7 @@ export interface FileDescriptor {
|
|
|
79
79
|
*/
|
|
80
80
|
state?: State;
|
|
81
81
|
}
|
|
82
|
-
declare enum
|
|
82
|
+
export declare enum MediaType {
|
|
83
83
|
UNKNOWN = "UNKNOWN",
|
|
84
84
|
IMAGE = "IMAGE",
|
|
85
85
|
VIDEO = "VIDEO",
|
|
@@ -90,8 +90,6 @@ declare enum MediaTypeEnum {
|
|
|
90
90
|
MODEL3D = "MODEL3D",
|
|
91
91
|
OTHER = "OTHER"
|
|
92
92
|
}
|
|
93
|
-
type MediaType = `${MediaTypeEnum}`;
|
|
94
|
-
export { MediaTypeEnum as MediaType };
|
|
95
93
|
export interface FileMedia extends FileMediaMediaOneOf {
|
|
96
94
|
/** Information about the image. */
|
|
97
95
|
image?: ImageMedia;
|
|
@@ -335,7 +333,7 @@ export interface OtherMedia {
|
|
|
335
333
|
*/
|
|
336
334
|
sizeInBytes?: string | null;
|
|
337
335
|
}
|
|
338
|
-
declare enum
|
|
336
|
+
export declare enum OperationStatus {
|
|
339
337
|
/** File upload or processing failed */
|
|
340
338
|
FAILED = "FAILED",
|
|
341
339
|
/** File is ready for consumption */
|
|
@@ -343,17 +341,13 @@ declare enum OperationStatusEnum {
|
|
|
343
341
|
/** File is waiting for processing or currently being processed */
|
|
344
342
|
PENDING = "PENDING"
|
|
345
343
|
}
|
|
346
|
-
|
|
347
|
-
export { OperationStatusEnum as OperationStatus };
|
|
348
|
-
declare enum StateEnum {
|
|
344
|
+
export declare enum State {
|
|
349
345
|
/** File is ready for consumption */
|
|
350
346
|
OK = "OK",
|
|
351
347
|
/** Deleted file */
|
|
352
348
|
DELETED = "DELETED"
|
|
353
349
|
}
|
|
354
|
-
|
|
355
|
-
export { StateEnum as State };
|
|
356
|
-
declare enum NamespaceEnum {
|
|
350
|
+
export declare enum Namespace {
|
|
357
351
|
NO_NAMESPACE = "NO_NAMESPACE",
|
|
358
352
|
OTHERS = "OTHERS",
|
|
359
353
|
/** ANY = 2; */
|
|
@@ -379,23 +373,19 @@ declare enum NamespaceEnum {
|
|
|
379
373
|
/** _nsWixForms */
|
|
380
374
|
WIX_FORMS = "WIX_FORMS"
|
|
381
375
|
}
|
|
382
|
-
type Namespace = `${NamespaceEnum}`;
|
|
383
|
-
export { NamespaceEnum as Namespace };
|
|
384
376
|
export interface IdentityInfo {
|
|
385
377
|
/** The type of the user that uploaded the file */
|
|
386
378
|
identityType?: IdentityType;
|
|
387
379
|
/** User Id. empty when UNKNOWN */
|
|
388
380
|
identityId?: string | null;
|
|
389
381
|
}
|
|
390
|
-
declare enum
|
|
382
|
+
export declare enum IdentityType {
|
|
391
383
|
UNKNOWN = "UNKNOWN",
|
|
392
384
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
393
385
|
MEMBER = "MEMBER",
|
|
394
386
|
WIX_USER = "WIX_USER",
|
|
395
387
|
APP = "APP"
|
|
396
388
|
}
|
|
397
|
-
type IdentityType = `${IdentityTypeEnum}`;
|
|
398
|
-
export { IdentityTypeEnum as IdentityType };
|
|
399
389
|
export interface FileReady {
|
|
400
390
|
/** File entity that is ready with full information */
|
|
401
391
|
file?: FileDescriptor;
|
|
@@ -447,6 +437,17 @@ export interface GenerateFileDownloadUrlRequest {
|
|
|
447
437
|
* Default: `src`, key representing the original file's format and quality.
|
|
448
438
|
*/
|
|
449
439
|
assetKeys?: string[] | null;
|
|
440
|
+
/**
|
|
441
|
+
* Controls if the link will download the file or open it in the browser
|
|
442
|
+
* Default: `ATTACHMENT`, the link will download the file
|
|
443
|
+
*/
|
|
444
|
+
contentDisposition?: ContentDisposition;
|
|
445
|
+
}
|
|
446
|
+
export declare enum ContentDisposition {
|
|
447
|
+
/** Using the link in the browser will download the file */
|
|
448
|
+
ATTACHMENT = "ATTACHMENT",
|
|
449
|
+
/** Using the link in the browser will open the file in the browser */
|
|
450
|
+
INLINE = "INLINE"
|
|
450
451
|
}
|
|
451
452
|
export interface GenerateFileDownloadUrlResponse {
|
|
452
453
|
/** URL for downloading a specific file in the Media Manager. */
|
|
@@ -556,12 +557,10 @@ export interface GenerateFileResumableUploadUrlRequest {
|
|
|
556
557
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
557
558
|
uploadProtocol?: UploadProtocol;
|
|
558
559
|
}
|
|
559
|
-
declare enum
|
|
560
|
+
export declare enum UploadProtocol {
|
|
560
561
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
561
562
|
TUS = "TUS"
|
|
562
563
|
}
|
|
563
|
-
type UploadProtocol = `${UploadProtocolEnum}`;
|
|
564
|
-
export { UploadProtocolEnum as UploadProtocol };
|
|
565
564
|
export interface GenerateFileResumableUploadUrlResponse {
|
|
566
565
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
567
566
|
uploadProtocol?: UploadProtocol;
|
|
@@ -684,12 +683,10 @@ export interface Sorting {
|
|
|
684
683
|
/** Sort order. */
|
|
685
684
|
order?: SortOrder;
|
|
686
685
|
}
|
|
687
|
-
declare enum
|
|
686
|
+
export declare enum SortOrder {
|
|
688
687
|
ASC = "ASC",
|
|
689
688
|
DESC = "DESC"
|
|
690
689
|
}
|
|
691
|
-
type SortOrder = `${SortOrderEnum}`;
|
|
692
|
-
export { SortOrderEnum as SortOrder };
|
|
693
690
|
export interface CursorPaging {
|
|
694
691
|
/** Number of items to load. */
|
|
695
692
|
limit?: number | null;
|
|
@@ -748,7 +745,7 @@ export interface SearchFilesRequest {
|
|
|
748
745
|
/** Cursor and paging information. */
|
|
749
746
|
paging?: CursorPaging;
|
|
750
747
|
}
|
|
751
|
-
declare enum
|
|
748
|
+
export declare enum RootFolder {
|
|
752
749
|
/** Root of all site media */
|
|
753
750
|
MEDIA_ROOT = "MEDIA_ROOT",
|
|
754
751
|
/** Root of the trash system folder */
|
|
@@ -756,8 +753,6 @@ declare enum RootFolderEnum {
|
|
|
756
753
|
/** Root of all visitor uploads */
|
|
757
754
|
VISITOR_UPLOADS_ROOT = "VISITOR_UPLOADS_ROOT"
|
|
758
755
|
}
|
|
759
|
-
type RootFolder = `${RootFolderEnum}`;
|
|
760
|
-
export { RootFolderEnum as RootFolder };
|
|
761
756
|
export interface SearchFilesResponse {
|
|
762
757
|
/** Files matching the query. */
|
|
763
758
|
files?: FileDescriptor[];
|
|
@@ -770,13 +765,11 @@ export interface GenerateVideoStreamingUrlRequest {
|
|
|
770
765
|
/** Video stream format. */
|
|
771
766
|
format?: StreamFormat;
|
|
772
767
|
}
|
|
773
|
-
declare enum
|
|
768
|
+
export declare enum StreamFormat {
|
|
774
769
|
UNKNOWN = "UNKNOWN",
|
|
775
770
|
HLS = "HLS",
|
|
776
771
|
DASH = "DASH"
|
|
777
772
|
}
|
|
778
|
-
type StreamFormat = `${StreamFormatEnum}`;
|
|
779
|
-
export { StreamFormatEnum as StreamFormat };
|
|
780
773
|
export interface GenerateVideoStreamingUrlResponse {
|
|
781
774
|
/** URL for streaming a specific file in the Media Manager. */
|
|
782
775
|
downloadUrl?: DownloadUrl;
|
|
@@ -1,92 +1,99 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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
|
-
var
|
|
17
|
-
(function (
|
|
3
|
+
exports.StreamFormat = exports.RootFolder = exports.SortOrder = exports.UploadProtocol = exports.ContentDisposition = exports.IdentityType = exports.Namespace = exports.State = exports.OperationStatus = exports.MediaType = void 0;
|
|
4
|
+
var MediaType;
|
|
5
|
+
(function (MediaType) {
|
|
6
|
+
MediaType["UNKNOWN"] = "UNKNOWN";
|
|
7
|
+
MediaType["IMAGE"] = "IMAGE";
|
|
8
|
+
MediaType["VIDEO"] = "VIDEO";
|
|
9
|
+
MediaType["AUDIO"] = "AUDIO";
|
|
10
|
+
MediaType["DOCUMENT"] = "DOCUMENT";
|
|
11
|
+
MediaType["VECTOR"] = "VECTOR";
|
|
12
|
+
MediaType["ARCHIVE"] = "ARCHIVE";
|
|
13
|
+
MediaType["MODEL3D"] = "MODEL3D";
|
|
14
|
+
MediaType["OTHER"] = "OTHER";
|
|
15
|
+
})(MediaType || (exports.MediaType = MediaType = {}));
|
|
16
|
+
var OperationStatus;
|
|
17
|
+
(function (OperationStatus) {
|
|
18
18
|
/** File upload or processing failed */
|
|
19
|
-
|
|
19
|
+
OperationStatus["FAILED"] = "FAILED";
|
|
20
20
|
/** File is ready for consumption */
|
|
21
|
-
|
|
21
|
+
OperationStatus["READY"] = "READY";
|
|
22
22
|
/** File is waiting for processing or currently being processed */
|
|
23
|
-
|
|
24
|
-
})(
|
|
25
|
-
var
|
|
26
|
-
(function (
|
|
23
|
+
OperationStatus["PENDING"] = "PENDING";
|
|
24
|
+
})(OperationStatus || (exports.OperationStatus = OperationStatus = {}));
|
|
25
|
+
var State;
|
|
26
|
+
(function (State) {
|
|
27
27
|
/** File is ready for consumption */
|
|
28
|
-
|
|
28
|
+
State["OK"] = "OK";
|
|
29
29
|
/** Deleted file */
|
|
30
|
-
|
|
31
|
-
})(
|
|
32
|
-
var
|
|
33
|
-
(function (
|
|
34
|
-
|
|
35
|
-
|
|
30
|
+
State["DELETED"] = "DELETED";
|
|
31
|
+
})(State || (exports.State = State = {}));
|
|
32
|
+
var Namespace;
|
|
33
|
+
(function (Namespace) {
|
|
34
|
+
Namespace["NO_NAMESPACE"] = "NO_NAMESPACE";
|
|
35
|
+
Namespace["OTHERS"] = "OTHERS";
|
|
36
36
|
/** ANY = 2; */
|
|
37
|
-
|
|
37
|
+
Namespace["WIX_VIDEO"] = "WIX_VIDEO";
|
|
38
38
|
/** _nsWixMusic */
|
|
39
|
-
|
|
39
|
+
Namespace["WIX_MUSIC"] = "WIX_MUSIC";
|
|
40
40
|
/** _nsArtStore */
|
|
41
|
-
|
|
41
|
+
Namespace["ALBUMS_AND_ART_STORE"] = "ALBUMS_AND_ART_STORE";
|
|
42
42
|
/** _nsDigitalProduct */
|
|
43
|
-
|
|
43
|
+
Namespace["WIX_ECOM"] = "WIX_ECOM";
|
|
44
44
|
/** _nsPhotoShareApp */
|
|
45
|
-
|
|
45
|
+
Namespace["PHOTO_SHARE_APP"] = "PHOTO_SHARE_APP";
|
|
46
46
|
/** _nsSharingApp, */
|
|
47
|
-
|
|
47
|
+
Namespace["SHARING_APP"] = "SHARING_APP";
|
|
48
48
|
/** engage */
|
|
49
|
-
|
|
49
|
+
Namespace["CHAT"] = "CHAT";
|
|
50
50
|
/** logobuilder */
|
|
51
|
-
|
|
51
|
+
Namespace["LOGO_BUILDER"] = "LOGO_BUILDER";
|
|
52
52
|
/** WixExposure */
|
|
53
|
-
|
|
53
|
+
Namespace["ALBUMS_OLD"] = "ALBUMS_OLD";
|
|
54
54
|
/** chat-mobile-uploads */
|
|
55
|
-
|
|
55
|
+
Namespace["CHAT_MOBILE"] = "CHAT_MOBILE";
|
|
56
56
|
/** _nsWixForms */
|
|
57
|
-
|
|
58
|
-
})(
|
|
59
|
-
var
|
|
60
|
-
(function (
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
})(
|
|
67
|
-
var
|
|
68
|
-
(function (
|
|
57
|
+
Namespace["WIX_FORMS"] = "WIX_FORMS";
|
|
58
|
+
})(Namespace || (exports.Namespace = Namespace = {}));
|
|
59
|
+
var IdentityType;
|
|
60
|
+
(function (IdentityType) {
|
|
61
|
+
IdentityType["UNKNOWN"] = "UNKNOWN";
|
|
62
|
+
IdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
63
|
+
IdentityType["MEMBER"] = "MEMBER";
|
|
64
|
+
IdentityType["WIX_USER"] = "WIX_USER";
|
|
65
|
+
IdentityType["APP"] = "APP";
|
|
66
|
+
})(IdentityType || (exports.IdentityType = IdentityType = {}));
|
|
67
|
+
var ContentDisposition;
|
|
68
|
+
(function (ContentDisposition) {
|
|
69
|
+
/** Using the link in the browser will download the file */
|
|
70
|
+
ContentDisposition["ATTACHMENT"] = "ATTACHMENT";
|
|
71
|
+
/** Using the link in the browser will open the file in the browser */
|
|
72
|
+
ContentDisposition["INLINE"] = "INLINE";
|
|
73
|
+
})(ContentDisposition || (exports.ContentDisposition = ContentDisposition = {}));
|
|
74
|
+
var UploadProtocol;
|
|
75
|
+
(function (UploadProtocol) {
|
|
69
76
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
70
|
-
|
|
71
|
-
})(
|
|
72
|
-
var
|
|
73
|
-
(function (
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
})(
|
|
77
|
-
var
|
|
78
|
-
(function (
|
|
77
|
+
UploadProtocol["TUS"] = "TUS";
|
|
78
|
+
})(UploadProtocol || (exports.UploadProtocol = UploadProtocol = {}));
|
|
79
|
+
var SortOrder;
|
|
80
|
+
(function (SortOrder) {
|
|
81
|
+
SortOrder["ASC"] = "ASC";
|
|
82
|
+
SortOrder["DESC"] = "DESC";
|
|
83
|
+
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
84
|
+
var RootFolder;
|
|
85
|
+
(function (RootFolder) {
|
|
79
86
|
/** Root of all site media */
|
|
80
|
-
|
|
87
|
+
RootFolder["MEDIA_ROOT"] = "MEDIA_ROOT";
|
|
81
88
|
/** Root of the trash system folder */
|
|
82
|
-
|
|
89
|
+
RootFolder["TRASH_ROOT"] = "TRASH_ROOT";
|
|
83
90
|
/** Root of all visitor uploads */
|
|
84
|
-
|
|
85
|
-
})(
|
|
86
|
-
var
|
|
87
|
-
(function (
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
})(
|
|
91
|
+
RootFolder["VISITOR_UPLOADS_ROOT"] = "VISITOR_UPLOADS_ROOT";
|
|
92
|
+
})(RootFolder || (exports.RootFolder = RootFolder = {}));
|
|
93
|
+
var StreamFormat;
|
|
94
|
+
(function (StreamFormat) {
|
|
95
|
+
StreamFormat["UNKNOWN"] = "UNKNOWN";
|
|
96
|
+
StreamFormat["HLS"] = "HLS";
|
|
97
|
+
StreamFormat["DASH"] = "DASH";
|
|
98
|
+
})(StreamFormat || (exports.StreamFormat = StreamFormat = {}));
|
|
92
99
|
//# 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,IAAY,SAUX;AAVD,WAAY,SAAS;IACnB,gCAAmB,CAAA;IACnB,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,4BAAe,CAAA;IACf,kCAAqB,CAAA;IACrB,8BAAiB,CAAA;IACjB,gCAAmB,CAAA;IACnB,gCAAmB,CAAA;IACnB,4BAAe,CAAA;AACjB,CAAC,EAVW,SAAS,yBAAT,SAAS,QAUpB;AAqQD,IAAY,eAOX;AAPD,WAAY,eAAe;IACzB,uCAAuC;IACvC,oCAAiB,CAAA;IACjB,oCAAoC;IACpC,kCAAe,CAAA;IACf,kEAAkE;IAClE,sCAAmB,CAAA;AACrB,CAAC,EAPW,eAAe,+BAAf,eAAe,QAO1B;AAED,IAAY,KAKX;AALD,WAAY,KAAK;IACf,oCAAoC;IACpC,kBAAS,CAAA;IACT,mBAAmB;IACnB,4BAAmB,CAAA;AACrB,CAAC,EALW,KAAK,qBAAL,KAAK,QAKhB;AAED,IAAY,SAyBX;AAzBD,WAAY,SAAS;IACnB,0CAA6B,CAAA;IAC7B,8BAAiB,CAAA;IACjB,eAAe;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nB,2BAAW,CAAA;IACX,6BAAa,CAAA;AACf,CAAC,EAJW,YAAY,4BAAZ,YAAY,QAIvB"}
|
|
@@ -91,7 +91,7 @@ export interface FileDescriptor {
|
|
|
91
91
|
*/
|
|
92
92
|
state?: State;
|
|
93
93
|
}
|
|
94
|
-
declare enum
|
|
94
|
+
export declare enum MediaType {
|
|
95
95
|
UNKNOWN = "UNKNOWN",
|
|
96
96
|
IMAGE = "IMAGE",
|
|
97
97
|
VIDEO = "VIDEO",
|
|
@@ -102,8 +102,6 @@ declare enum MediaTypeEnum {
|
|
|
102
102
|
MODEL3D = "MODEL3D",
|
|
103
103
|
OTHER = "OTHER"
|
|
104
104
|
}
|
|
105
|
-
type MediaType = `${MediaTypeEnum}`;
|
|
106
|
-
export { MediaTypeEnum as MediaType };
|
|
107
105
|
export interface FileMedia extends FileMediaMediaOneOf {
|
|
108
106
|
/** Information about the image. */
|
|
109
107
|
image?: ImageMedia;
|
|
@@ -291,7 +289,7 @@ export interface OtherMedia {
|
|
|
291
289
|
*/
|
|
292
290
|
sizeInBytes?: string | null;
|
|
293
291
|
}
|
|
294
|
-
declare enum
|
|
292
|
+
export declare enum OperationStatus {
|
|
295
293
|
/** File upload or processing failed */
|
|
296
294
|
FAILED = "FAILED",
|
|
297
295
|
/** File is ready for consumption */
|
|
@@ -299,17 +297,13 @@ declare enum OperationStatusEnum {
|
|
|
299
297
|
/** File is waiting for processing or currently being processed */
|
|
300
298
|
PENDING = "PENDING"
|
|
301
299
|
}
|
|
302
|
-
|
|
303
|
-
export { OperationStatusEnum as OperationStatus };
|
|
304
|
-
declare enum StateEnum {
|
|
300
|
+
export declare enum State {
|
|
305
301
|
/** File is ready for consumption */
|
|
306
302
|
OK = "OK",
|
|
307
303
|
/** Deleted file */
|
|
308
304
|
DELETED = "DELETED"
|
|
309
305
|
}
|
|
310
|
-
|
|
311
|
-
export { StateEnum as State };
|
|
312
|
-
declare enum NamespaceEnum {
|
|
306
|
+
export declare enum Namespace {
|
|
313
307
|
NO_NAMESPACE = "NO_NAMESPACE",
|
|
314
308
|
OTHERS = "OTHERS",
|
|
315
309
|
/** ANY = 2; */
|
|
@@ -335,22 +329,19 @@ declare enum NamespaceEnum {
|
|
|
335
329
|
/** _nsWixForms */
|
|
336
330
|
WIX_FORMS = "WIX_FORMS"
|
|
337
331
|
}
|
|
338
|
-
export { NamespaceEnum as Namespace };
|
|
339
332
|
export interface IdentityInfo {
|
|
340
333
|
/** The type of the user that uploaded the file */
|
|
341
334
|
identityType?: IdentityType;
|
|
342
335
|
/** User Id. empty when UNKNOWN */
|
|
343
336
|
identityId?: string | null;
|
|
344
337
|
}
|
|
345
|
-
declare enum
|
|
338
|
+
export declare enum IdentityType {
|
|
346
339
|
UNKNOWN = "UNKNOWN",
|
|
347
340
|
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
348
341
|
MEMBER = "MEMBER",
|
|
349
342
|
WIX_USER = "WIX_USER",
|
|
350
343
|
APP = "APP"
|
|
351
344
|
}
|
|
352
|
-
type IdentityType = `${IdentityTypeEnum}`;
|
|
353
|
-
export { IdentityTypeEnum as IdentityType };
|
|
354
345
|
export interface FileReady {
|
|
355
346
|
/** File entity that is ready with full information */
|
|
356
347
|
file?: FileDescriptor;
|
|
@@ -402,6 +393,17 @@ export interface GenerateFileDownloadUrlRequest {
|
|
|
402
393
|
* Default: `src`, key representing the original file's format and quality.
|
|
403
394
|
*/
|
|
404
395
|
assetKeys?: string[] | null;
|
|
396
|
+
/**
|
|
397
|
+
* Controls if the link will download the file or open it in the browser
|
|
398
|
+
* Default: `ATTACHMENT`, the link will download the file
|
|
399
|
+
*/
|
|
400
|
+
contentDisposition?: ContentDisposition;
|
|
401
|
+
}
|
|
402
|
+
export declare enum ContentDisposition {
|
|
403
|
+
/** Using the link in the browser will download the file */
|
|
404
|
+
ATTACHMENT = "ATTACHMENT",
|
|
405
|
+
/** Using the link in the browser will open the file in the browser */
|
|
406
|
+
INLINE = "INLINE"
|
|
405
407
|
}
|
|
406
408
|
export interface GenerateFileDownloadUrlResponse {
|
|
407
409
|
/** URL for downloading a specific file in the Media Manager. */
|
|
@@ -511,12 +513,10 @@ export interface GenerateFileResumableUploadUrlRequest {
|
|
|
511
513
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
512
514
|
uploadProtocol?: UploadProtocol;
|
|
513
515
|
}
|
|
514
|
-
declare enum
|
|
516
|
+
export declare enum UploadProtocol {
|
|
515
517
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
516
518
|
TUS = "TUS"
|
|
517
519
|
}
|
|
518
|
-
type UploadProtocol = `${UploadProtocolEnum}`;
|
|
519
|
-
export { UploadProtocolEnum as UploadProtocol };
|
|
520
520
|
export interface GenerateFileResumableUploadUrlResponse {
|
|
521
521
|
/**
|
|
522
522
|
* The upload protocol to use for implementing the resumable upload.
|
|
@@ -648,12 +648,10 @@ export interface Sorting {
|
|
|
648
648
|
*/
|
|
649
649
|
order?: SortOrder;
|
|
650
650
|
}
|
|
651
|
-
declare enum
|
|
651
|
+
export declare enum SortOrder {
|
|
652
652
|
ASC = "ASC",
|
|
653
653
|
DESC = "DESC"
|
|
654
654
|
}
|
|
655
|
-
type SortOrder = `${SortOrderEnum}`;
|
|
656
|
-
export { SortOrderEnum as SortOrder };
|
|
657
655
|
export interface CursorPaging {
|
|
658
656
|
/** Number of items to load. */
|
|
659
657
|
limit?: number | null;
|
|
@@ -712,7 +710,7 @@ export interface SearchFilesRequest {
|
|
|
712
710
|
/** Cursor and paging information. */
|
|
713
711
|
paging?: CursorPaging;
|
|
714
712
|
}
|
|
715
|
-
declare enum
|
|
713
|
+
export declare enum RootFolder {
|
|
716
714
|
/** Root of all site media */
|
|
717
715
|
MEDIA_ROOT = "MEDIA_ROOT",
|
|
718
716
|
/** Root of the trash system folder */
|
|
@@ -720,8 +718,6 @@ declare enum RootFolderEnum {
|
|
|
720
718
|
/** Root of all visitor uploads */
|
|
721
719
|
VISITOR_UPLOADS_ROOT = "VISITOR_UPLOADS_ROOT"
|
|
722
720
|
}
|
|
723
|
-
type RootFolder = `${RootFolderEnum}`;
|
|
724
|
-
export { RootFolderEnum as RootFolder };
|
|
725
721
|
export interface SearchFilesResponse {
|
|
726
722
|
/** Files matching the query. */
|
|
727
723
|
files?: FileDescriptor[];
|
|
@@ -734,13 +730,11 @@ export interface GenerateVideoStreamingUrlRequest {
|
|
|
734
730
|
/** Video stream format. */
|
|
735
731
|
format?: StreamFormat;
|
|
736
732
|
}
|
|
737
|
-
declare enum
|
|
733
|
+
export declare enum StreamFormat {
|
|
738
734
|
UNKNOWN = "UNKNOWN",
|
|
739
735
|
HLS = "HLS",
|
|
740
736
|
DASH = "DASH"
|
|
741
737
|
}
|
|
742
|
-
type StreamFormat = `${StreamFormatEnum}`;
|
|
743
|
-
export { StreamFormatEnum as StreamFormat };
|
|
744
738
|
export interface GenerateVideoStreamingUrlResponse {
|
|
745
739
|
/** URL for streaming a specific file in the Media Manager. */
|
|
746
740
|
downloadUrl?: DownloadUrl;
|
|
@@ -1418,6 +1412,11 @@ export interface GenerateFileDownloadUrlOptions {
|
|
|
1418
1412
|
* Default: `src`, key representing the original file's format and quality.
|
|
1419
1413
|
*/
|
|
1420
1414
|
assetKeys?: string[] | null;
|
|
1415
|
+
/**
|
|
1416
|
+
* Controls if the link will download the file or open it in the browser
|
|
1417
|
+
* Default: `ATTACHMENT`, the link will download the file
|
|
1418
|
+
*/
|
|
1419
|
+
contentDisposition?: ContentDisposition;
|
|
1421
1420
|
}
|
|
1422
1421
|
/**
|
|
1423
1422
|
* Gets information about a specific file in the Media Manager.
|