@wix/media 1.0.40 → 1.0.41
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 +6 -6
- package/build/cjs/src/media-site-media-v1-file-descriptor.types.d.ts +9 -27
- package/build/cjs/src/media-site-media-v1-file-descriptor.types.js +68 -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 +9 -26
- package/build/cjs/src/media-site-media-v1-file-descriptor.universal.js +68 -68
- 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 +6 -6
- package/build/es/src/media-site-media-v1-file-descriptor.types.d.ts +9 -27
- package/build/es/src/media-site-media-v1-file-descriptor.types.js +68 -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 +9 -26
- package/build/es/src/media-site-media-v1-file-descriptor.universal.js +68 -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>;
|
|
@@ -79,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;
|
|
@@ -556,12 +546,10 @@ export interface GenerateFileResumableUploadUrlRequest {
|
|
|
556
546
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
557
547
|
uploadProtocol?: UploadProtocol;
|
|
558
548
|
}
|
|
559
|
-
declare enum
|
|
549
|
+
export declare enum UploadProtocol {
|
|
560
550
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
561
551
|
TUS = "TUS"
|
|
562
552
|
}
|
|
563
|
-
type UploadProtocol = `${UploadProtocolEnum}`;
|
|
564
|
-
export { UploadProtocolEnum as UploadProtocol };
|
|
565
553
|
export interface GenerateFileResumableUploadUrlResponse {
|
|
566
554
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
567
555
|
uploadProtocol?: UploadProtocol;
|
|
@@ -684,12 +672,10 @@ export interface Sorting {
|
|
|
684
672
|
/** Sort order. */
|
|
685
673
|
order?: SortOrder;
|
|
686
674
|
}
|
|
687
|
-
declare enum
|
|
675
|
+
export declare enum SortOrder {
|
|
688
676
|
ASC = "ASC",
|
|
689
677
|
DESC = "DESC"
|
|
690
678
|
}
|
|
691
|
-
type SortOrder = `${SortOrderEnum}`;
|
|
692
|
-
export { SortOrderEnum as SortOrder };
|
|
693
679
|
export interface CursorPaging {
|
|
694
680
|
/** Number of items to load. */
|
|
695
681
|
limit?: number | null;
|
|
@@ -748,7 +734,7 @@ export interface SearchFilesRequest {
|
|
|
748
734
|
/** Cursor and paging information. */
|
|
749
735
|
paging?: CursorPaging;
|
|
750
736
|
}
|
|
751
|
-
declare enum
|
|
737
|
+
export declare enum RootFolder {
|
|
752
738
|
/** Root of all site media */
|
|
753
739
|
MEDIA_ROOT = "MEDIA_ROOT",
|
|
754
740
|
/** Root of the trash system folder */
|
|
@@ -756,8 +742,6 @@ declare enum RootFolderEnum {
|
|
|
756
742
|
/** Root of all visitor uploads */
|
|
757
743
|
VISITOR_UPLOADS_ROOT = "VISITOR_UPLOADS_ROOT"
|
|
758
744
|
}
|
|
759
|
-
type RootFolder = `${RootFolderEnum}`;
|
|
760
|
-
export { RootFolderEnum as RootFolder };
|
|
761
745
|
export interface SearchFilesResponse {
|
|
762
746
|
/** Files matching the query. */
|
|
763
747
|
files?: FileDescriptor[];
|
|
@@ -770,13 +754,11 @@ export interface GenerateVideoStreamingUrlRequest {
|
|
|
770
754
|
/** Video stream format. */
|
|
771
755
|
format?: StreamFormat;
|
|
772
756
|
}
|
|
773
|
-
declare enum
|
|
757
|
+
export declare enum StreamFormat {
|
|
774
758
|
UNKNOWN = "UNKNOWN",
|
|
775
759
|
HLS = "HLS",
|
|
776
760
|
DASH = "DASH"
|
|
777
761
|
}
|
|
778
|
-
type StreamFormat = `${StreamFormatEnum}`;
|
|
779
|
-
export { StreamFormatEnum as StreamFormat };
|
|
780
762
|
export interface GenerateVideoStreamingUrlResponse {
|
|
781
763
|
/** URL for streaming a specific file in the Media Manager. */
|
|
782
764
|
downloadUrl?: DownloadUrl;
|
|
@@ -1,92 +1,92 @@
|
|
|
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
|
-
var
|
|
17
|
-
(function (
|
|
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 UploadProtocol;
|
|
68
|
+
(function (UploadProtocol) {
|
|
69
69
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
70
|
-
|
|
71
|
-
})(
|
|
72
|
-
var
|
|
73
|
-
(function (
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
})(
|
|
77
|
-
var
|
|
78
|
-
(function (
|
|
70
|
+
UploadProtocol["TUS"] = "TUS";
|
|
71
|
+
})(UploadProtocol || (exports.UploadProtocol = UploadProtocol = {}));
|
|
72
|
+
var SortOrder;
|
|
73
|
+
(function (SortOrder) {
|
|
74
|
+
SortOrder["ASC"] = "ASC";
|
|
75
|
+
SortOrder["DESC"] = "DESC";
|
|
76
|
+
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
77
|
+
var RootFolder;
|
|
78
|
+
(function (RootFolder) {
|
|
79
79
|
/** Root of all site media */
|
|
80
|
-
|
|
80
|
+
RootFolder["MEDIA_ROOT"] = "MEDIA_ROOT";
|
|
81
81
|
/** Root of the trash system folder */
|
|
82
|
-
|
|
82
|
+
RootFolder["TRASH_ROOT"] = "TRASH_ROOT";
|
|
83
83
|
/** Root of all visitor uploads */
|
|
84
|
-
|
|
85
|
-
})(
|
|
86
|
-
var
|
|
87
|
-
(function (
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
})(
|
|
84
|
+
RootFolder["VISITOR_UPLOADS_ROOT"] = "VISITOR_UPLOADS_ROOT";
|
|
85
|
+
})(RootFolder || (exports.RootFolder = RootFolder = {}));
|
|
86
|
+
var StreamFormat;
|
|
87
|
+
(function (StreamFormat) {
|
|
88
|
+
StreamFormat["UNKNOWN"] = "UNKNOWN";
|
|
89
|
+
StreamFormat["HLS"] = "HLS";
|
|
90
|
+
StreamFormat["DASH"] = "DASH";
|
|
91
|
+
})(StreamFormat || (exports.StreamFormat = StreamFormat = {}));
|
|
92
92
|
//# 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;IACf,oCAAuB,CAAA;IACvB,kBAAkB;IAClB,oCAAuB,CAAA;IACvB,kBAAkB;IAClB,0DAA6C,CAAA;IAC7C,wBAAwB;IACxB,kCAAqB,CAAA;IACrB,uBAAuB;IACvB,gDAAmC,CAAA;IACnC,qBAAqB;IACrB,wCAA2B,CAAA;IAC3B,aAAa;IACb,0BAAa,CAAA;IACb,kBAAkB;IAClB,0CAA6B,CAAA;IAC7B,kBAAkB;IAClB,sCAAyB,CAAA;IACzB,0BAA0B;IAC1B,wCAA2B,CAAA;IAC3B,kBAAkB;IAClB,oCAAuB,CAAA;AACzB,CAAC,EAzBW,SAAS,yBAAT,SAAS,QAyBpB;AASD,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,uDAAuC,CAAA;IACvC,iCAAiB,CAAA;IACjB,qCAAqB,CAAA;IACrB,2BAAW,CAAA;AACb,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB;AAqLD,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,wEAAwE;IACxE,6BAAW,CAAA;AACb,CAAC,EAHW,cAAc,8BAAd,cAAc,QAGzB;AAyID,IAAY,SAGX;AAHD,WAAY,SAAS;IACnB,wBAAW,CAAA;IACX,0BAAa,CAAA;AACf,CAAC,EAHW,SAAS,yBAAT,SAAS,QAGpB;AAiED,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,6BAA6B;IAC7B,uCAAyB,CAAA;IACzB,sCAAsC;IACtC,uCAAyB,CAAA;IACzB,kCAAkC;IAClC,2DAA6C,CAAA;AAC/C,CAAC,EAPW,UAAU,0BAAV,UAAU,QAOrB;AAgBD,IAAY,YAIX;AAJD,WAAY,YAAY;IACtB,mCAAmB,CAAA;IACnB,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;
|
|
@@ -511,12 +502,10 @@ export interface GenerateFileResumableUploadUrlRequest {
|
|
|
511
502
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
512
503
|
uploadProtocol?: UploadProtocol;
|
|
513
504
|
}
|
|
514
|
-
declare enum
|
|
505
|
+
export declare enum UploadProtocol {
|
|
515
506
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
516
507
|
TUS = "TUS"
|
|
517
508
|
}
|
|
518
|
-
type UploadProtocol = `${UploadProtocolEnum}`;
|
|
519
|
-
export { UploadProtocolEnum as UploadProtocol };
|
|
520
509
|
export interface GenerateFileResumableUploadUrlResponse {
|
|
521
510
|
/**
|
|
522
511
|
* The upload protocol to use for implementing the resumable upload.
|
|
@@ -648,12 +637,10 @@ export interface Sorting {
|
|
|
648
637
|
*/
|
|
649
638
|
order?: SortOrder;
|
|
650
639
|
}
|
|
651
|
-
declare enum
|
|
640
|
+
export declare enum SortOrder {
|
|
652
641
|
ASC = "ASC",
|
|
653
642
|
DESC = "DESC"
|
|
654
643
|
}
|
|
655
|
-
type SortOrder = `${SortOrderEnum}`;
|
|
656
|
-
export { SortOrderEnum as SortOrder };
|
|
657
644
|
export interface CursorPaging {
|
|
658
645
|
/** Number of items to load. */
|
|
659
646
|
limit?: number | null;
|
|
@@ -712,7 +699,7 @@ export interface SearchFilesRequest {
|
|
|
712
699
|
/** Cursor and paging information. */
|
|
713
700
|
paging?: CursorPaging;
|
|
714
701
|
}
|
|
715
|
-
declare enum
|
|
702
|
+
export declare enum RootFolder {
|
|
716
703
|
/** Root of all site media */
|
|
717
704
|
MEDIA_ROOT = "MEDIA_ROOT",
|
|
718
705
|
/** Root of the trash system folder */
|
|
@@ -720,8 +707,6 @@ declare enum RootFolderEnum {
|
|
|
720
707
|
/** Root of all visitor uploads */
|
|
721
708
|
VISITOR_UPLOADS_ROOT = "VISITOR_UPLOADS_ROOT"
|
|
722
709
|
}
|
|
723
|
-
type RootFolder = `${RootFolderEnum}`;
|
|
724
|
-
export { RootFolderEnum as RootFolder };
|
|
725
710
|
export interface SearchFilesResponse {
|
|
726
711
|
/** Files matching the query. */
|
|
727
712
|
files?: FileDescriptor[];
|
|
@@ -734,13 +719,11 @@ export interface GenerateVideoStreamingUrlRequest {
|
|
|
734
719
|
/** Video stream format. */
|
|
735
720
|
format?: StreamFormat;
|
|
736
721
|
}
|
|
737
|
-
declare enum
|
|
722
|
+
export declare enum StreamFormat {
|
|
738
723
|
UNKNOWN = "UNKNOWN",
|
|
739
724
|
HLS = "HLS",
|
|
740
725
|
DASH = "DASH"
|
|
741
726
|
}
|
|
742
|
-
type StreamFormat = `${StreamFormatEnum}`;
|
|
743
|
-
export { StreamFormatEnum as StreamFormat };
|
|
744
727
|
export interface GenerateVideoStreamingUrlResponse {
|
|
745
728
|
/** URL for streaming a specific file in the Media Manager. */
|
|
746
729
|
downloadUrl?: DownloadUrl;
|
|
@@ -50,94 +50,94 @@ exports.__debug = {
|
|
|
50
50
|
};
|
|
51
51
|
const _toVeloEntity = '$';
|
|
52
52
|
const _fromVeloEntity = '$';
|
|
53
|
-
var
|
|
54
|
-
(function (
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
})(
|
|
65
|
-
var
|
|
66
|
-
(function (
|
|
53
|
+
var MediaType;
|
|
54
|
+
(function (MediaType) {
|
|
55
|
+
MediaType["UNKNOWN"] = "UNKNOWN";
|
|
56
|
+
MediaType["IMAGE"] = "IMAGE";
|
|
57
|
+
MediaType["VIDEO"] = "VIDEO";
|
|
58
|
+
MediaType["AUDIO"] = "AUDIO";
|
|
59
|
+
MediaType["DOCUMENT"] = "DOCUMENT";
|
|
60
|
+
MediaType["VECTOR"] = "VECTOR";
|
|
61
|
+
MediaType["ARCHIVE"] = "ARCHIVE";
|
|
62
|
+
MediaType["MODEL3D"] = "MODEL3D";
|
|
63
|
+
MediaType["OTHER"] = "OTHER";
|
|
64
|
+
})(MediaType || (exports.MediaType = MediaType = {}));
|
|
65
|
+
var OperationStatus;
|
|
66
|
+
(function (OperationStatus) {
|
|
67
67
|
/** File upload or processing failed */
|
|
68
|
-
|
|
68
|
+
OperationStatus["FAILED"] = "FAILED";
|
|
69
69
|
/** File is ready for consumption */
|
|
70
|
-
|
|
70
|
+
OperationStatus["READY"] = "READY";
|
|
71
71
|
/** File is waiting for processing or currently being processed */
|
|
72
|
-
|
|
73
|
-
})(
|
|
74
|
-
var
|
|
75
|
-
(function (
|
|
72
|
+
OperationStatus["PENDING"] = "PENDING";
|
|
73
|
+
})(OperationStatus || (exports.OperationStatus = OperationStatus = {}));
|
|
74
|
+
var State;
|
|
75
|
+
(function (State) {
|
|
76
76
|
/** File is ready for consumption */
|
|
77
|
-
|
|
77
|
+
State["OK"] = "OK";
|
|
78
78
|
/** Deleted file */
|
|
79
|
-
|
|
80
|
-
})(
|
|
81
|
-
var
|
|
82
|
-
(function (
|
|
83
|
-
|
|
84
|
-
|
|
79
|
+
State["DELETED"] = "DELETED";
|
|
80
|
+
})(State || (exports.State = State = {}));
|
|
81
|
+
var Namespace;
|
|
82
|
+
(function (Namespace) {
|
|
83
|
+
Namespace["NO_NAMESPACE"] = "NO_NAMESPACE";
|
|
84
|
+
Namespace["OTHERS"] = "OTHERS";
|
|
85
85
|
/** ANY = 2; */
|
|
86
|
-
|
|
86
|
+
Namespace["WIX_VIDEO"] = "WIX_VIDEO";
|
|
87
87
|
/** _nsWixMusic */
|
|
88
|
-
|
|
88
|
+
Namespace["WIX_MUSIC"] = "WIX_MUSIC";
|
|
89
89
|
/** _nsArtStore */
|
|
90
|
-
|
|
90
|
+
Namespace["ALBUMS_AND_ART_STORE"] = "ALBUMS_AND_ART_STORE";
|
|
91
91
|
/** _nsDigitalProduct */
|
|
92
|
-
|
|
92
|
+
Namespace["WIX_ECOM"] = "WIX_ECOM";
|
|
93
93
|
/** _nsPhotoShareApp */
|
|
94
|
-
|
|
94
|
+
Namespace["PHOTO_SHARE_APP"] = "PHOTO_SHARE_APP";
|
|
95
95
|
/** _nsSharingApp, */
|
|
96
|
-
|
|
96
|
+
Namespace["SHARING_APP"] = "SHARING_APP";
|
|
97
97
|
/** engage */
|
|
98
|
-
|
|
98
|
+
Namespace["CHAT"] = "CHAT";
|
|
99
99
|
/** logobuilder */
|
|
100
|
-
|
|
100
|
+
Namespace["LOGO_BUILDER"] = "LOGO_BUILDER";
|
|
101
101
|
/** WixExposure */
|
|
102
|
-
|
|
102
|
+
Namespace["ALBUMS_OLD"] = "ALBUMS_OLD";
|
|
103
103
|
/** chat-mobile-uploads */
|
|
104
|
-
|
|
104
|
+
Namespace["CHAT_MOBILE"] = "CHAT_MOBILE";
|
|
105
105
|
/** _nsWixForms */
|
|
106
|
-
|
|
107
|
-
})(
|
|
108
|
-
var
|
|
109
|
-
(function (
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
})(
|
|
116
|
-
var
|
|
117
|
-
(function (
|
|
106
|
+
Namespace["WIX_FORMS"] = "WIX_FORMS";
|
|
107
|
+
})(Namespace || (exports.Namespace = Namespace = {}));
|
|
108
|
+
var IdentityType;
|
|
109
|
+
(function (IdentityType) {
|
|
110
|
+
IdentityType["UNKNOWN"] = "UNKNOWN";
|
|
111
|
+
IdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
112
|
+
IdentityType["MEMBER"] = "MEMBER";
|
|
113
|
+
IdentityType["WIX_USER"] = "WIX_USER";
|
|
114
|
+
IdentityType["APP"] = "APP";
|
|
115
|
+
})(IdentityType || (exports.IdentityType = IdentityType = {}));
|
|
116
|
+
var UploadProtocol;
|
|
117
|
+
(function (UploadProtocol) {
|
|
118
118
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
119
|
-
|
|
120
|
-
})(
|
|
121
|
-
var
|
|
122
|
-
(function (
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
})(
|
|
126
|
-
var
|
|
127
|
-
(function (
|
|
119
|
+
UploadProtocol["TUS"] = "TUS";
|
|
120
|
+
})(UploadProtocol || (exports.UploadProtocol = UploadProtocol = {}));
|
|
121
|
+
var SortOrder;
|
|
122
|
+
(function (SortOrder) {
|
|
123
|
+
SortOrder["ASC"] = "ASC";
|
|
124
|
+
SortOrder["DESC"] = "DESC";
|
|
125
|
+
})(SortOrder || (exports.SortOrder = SortOrder = {}));
|
|
126
|
+
var RootFolder;
|
|
127
|
+
(function (RootFolder) {
|
|
128
128
|
/** Root of all site media */
|
|
129
|
-
|
|
129
|
+
RootFolder["MEDIA_ROOT"] = "MEDIA_ROOT";
|
|
130
130
|
/** Root of the trash system folder */
|
|
131
|
-
|
|
131
|
+
RootFolder["TRASH_ROOT"] = "TRASH_ROOT";
|
|
132
132
|
/** Root of all visitor uploads */
|
|
133
|
-
|
|
134
|
-
})(
|
|
135
|
-
var
|
|
136
|
-
(function (
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
})(
|
|
133
|
+
RootFolder["VISITOR_UPLOADS_ROOT"] = "VISITOR_UPLOADS_ROOT";
|
|
134
|
+
})(RootFolder || (exports.RootFolder = RootFolder = {}));
|
|
135
|
+
var StreamFormat;
|
|
136
|
+
(function (StreamFormat) {
|
|
137
|
+
StreamFormat["UNKNOWN"] = "UNKNOWN";
|
|
138
|
+
StreamFormat["HLS"] = "HLS";
|
|
139
|
+
StreamFormat["DASH"] = "DASH";
|
|
140
|
+
})(StreamFormat || (exports.StreamFormat = StreamFormat = {}));
|
|
141
141
|
const _audioV2 = { assets: 'wix.common.Audio' };
|
|
142
142
|
const _bulkDeleteFilesRequest = {};
|
|
143
143
|
const _bulkDeleteFilesResponse = {};
|