@wix/media 1.0.37 → 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 +10 -10
- package/build/cjs/src/media-site-media-v1-file-descriptor.public.js +4 -2
- 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 +105 -8
- package/build/cjs/src/media-site-media-v1-file-descriptor.types.js +91 -45
- 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 +73 -9
- package/build/cjs/src/media-site-media-v1-file-descriptor.universal.js +99 -49
- 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 +3 -3
- package/build/cjs/src/media-site-media-v1-folder.public.js +2 -1
- package/build/cjs/src/media-site-media-v1-folder.public.js.map +1 -1
- package/build/cjs/src/media-site-media-v1-folder.types.d.ts +43 -3
- package/build/cjs/src/media-site-media-v1-folder.types.js +48 -17
- 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 +49 -3
- package/build/cjs/src/media-site-media-v1-folder.universal.js +61 -17
- 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 +10 -10
- package/build/es/src/media-site-media-v1-file-descriptor.public.js +2 -2
- 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 +105 -8
- package/build/es/src/media-site-media-v1-file-descriptor.types.js +90 -44
- 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 +73 -9
- package/build/es/src/media-site-media-v1-file-descriptor.universal.js +98 -48
- 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 +3 -3
- package/build/es/src/media-site-media-v1-folder.public.js +1 -1
- package/build/es/src/media-site-media-v1-folder.public.js.map +1 -1
- package/build/es/src/media-site-media-v1-folder.types.d.ts +43 -3
- package/build/es/src/media-site-media-v1-folder.types.js +47 -16
- 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 +49 -3
- package/build/es/src/media-site-media-v1-folder.universal.js +60 -16
- package/build/es/src/media-site-media-v1-folder.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -46,7 +46,7 @@ export function bulkImportFiles(httpClient) {
|
|
|
46
46
|
{ httpClient });
|
|
47
47
|
}
|
|
48
48
|
export function bulkImportFile(httpClient) {
|
|
49
|
-
return (importFileRequests) => universalBulkImportFile(importFileRequests,
|
|
49
|
+
return (importFileRequests, options) => universalBulkImportFile(importFileRequests, options,
|
|
50
50
|
// @ts-ignore
|
|
51
51
|
{ httpClient });
|
|
52
52
|
}
|
|
@@ -80,5 +80,5 @@ export function listDeletedFiles(httpClient) {
|
|
|
80
80
|
// @ts-ignore
|
|
81
81
|
{ httpClient });
|
|
82
82
|
}
|
|
83
|
-
export { MediaType, OperationStatus, State, UploadProtocol, SortOrder, RootFolder, StreamFormat, } from './media-site-media-v1-file-descriptor.universal';
|
|
83
|
+
export { MediaType, OperationStatus, State, Namespace, IdentityType, UploadProtocol, SortOrder, RootFolder, StreamFormat, } from './media-site-media-v1-file-descriptor.universal';
|
|
84
84
|
//# sourceMappingURL=media-site-media-v1-file-descriptor.public.js.map
|
|
@@ -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,OAAO,EACL,wBAAwB,IAAI,iCAAiC,EAC7D,uBAAuB,IAAI,gCAAgC,EAC3D,iBAAiB,IAAI,0BAA0B,EAC/C,kBAAkB,IAAI,2BAA2B,EACjD,oBAAoB,IAAI,6BAA6B,EACrD,qBAAqB,IAAI,8BAA8B,EACvD,8BAA8B,IAAI,uCAAuC,EACzE,UAAU,IAAI,mBAAmB,EACjC,eAAe,IAAI,wBAAwB,EAC3C,cAAc,IAAI,uBAAuB,EACzC,SAAS,IAAI,kBAAkB,EAC/B,WAAW,IAAI,oBAAoB,EACnC,yBAAyB,IAAI,kCAAkC,EAC/D,eAAe,IAAI,wBAAwB,EAC3C,4BAA4B,IAAI,qCAAqC,EACrE,gBAAgB,IAAI,yBAAyB,
|
|
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,OAAO,EACL,wBAAwB,IAAI,iCAAiC,EAC7D,uBAAuB,IAAI,gCAAgC,EAC3D,iBAAiB,IAAI,0BAA0B,EAC/C,kBAAkB,IAAI,2BAA2B,EACjD,oBAAoB,IAAI,6BAA6B,EACrD,qBAAqB,IAAI,8BAA8B,EACvD,8BAA8B,IAAI,uCAAuC,EACzE,UAAU,IAAI,mBAAmB,EACjC,eAAe,IAAI,wBAAwB,EAC3C,cAAc,IAAI,uBAAuB,EACzC,SAAS,IAAI,kBAAkB,EAC/B,WAAW,IAAI,oBAAoB,EACnC,yBAAyB,IAAI,kCAAkC,EAC/D,eAAe,IAAI,wBAAwB,EAC3C,4BAA4B,IAAI,qCAAqC,EACrE,gBAAgB,IAAI,yBAAyB,GAa9C,MAAM,iDAAiD,CAAC;AAEzD,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;AAEzD,MAAM,UAAU,wBAAwB,CAAC,UAAsB;IAC7D,OAAO,CAAC,OAAiB,EAAE,EAAE,CAC3B,iCAAiC,CAC/B,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CA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AAiC,EAAE,EAAE,CAC3C,yBAAyB,CACvB,OAAO;IACP,aAAa;IACb,EAAE,UAAU,EAAE,CACf,CAAC;AACN,CAAC;AAED,OAAO,EACL,SAAS,EACT,eAAe,EACf,KAAK,EACL,SAAS,EACT,YAAY,EACZ,cAAc,EACd,SAAS,EACT,UAAU,EACV,YAAY,GACb,MAAM,iDAAiD,CAAC"}
|
|
@@ -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,10 +343,59 @@ 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 {
|
|
349
|
+
/** File is ready for consumption */
|
|
345
350
|
OK = "OK",
|
|
351
|
+
/** Deleted file */
|
|
346
352
|
DELETED = "DELETED"
|
|
347
353
|
}
|
|
354
|
+
declare type State = `${StateEnum}`;
|
|
355
|
+
export { StateEnum as State };
|
|
356
|
+
declare enum NamespaceEnum {
|
|
357
|
+
NO_NAMESPACE = "NO_NAMESPACE",
|
|
358
|
+
OTHERS = "OTHERS",
|
|
359
|
+
/** ANY = 2; */
|
|
360
|
+
WIX_VIDEO = "WIX_VIDEO",
|
|
361
|
+
/** _nsWixMusic */
|
|
362
|
+
WIX_MUSIC = "WIX_MUSIC",
|
|
363
|
+
/** _nsArtStore */
|
|
364
|
+
ALBUMS_AND_ART_STORE = "ALBUMS_AND_ART_STORE",
|
|
365
|
+
/** _nsDigitalProduct */
|
|
366
|
+
WIX_ECOM = "WIX_ECOM",
|
|
367
|
+
/** _nsPhotoShareApp */
|
|
368
|
+
PHOTO_SHARE_APP = "PHOTO_SHARE_APP",
|
|
369
|
+
/** _nsSharingApp, */
|
|
370
|
+
SHARING_APP = "SHARING_APP",
|
|
371
|
+
/** engage */
|
|
372
|
+
CHAT = "CHAT",
|
|
373
|
+
/** logobuilder */
|
|
374
|
+
LOGO_BUILDER = "LOGO_BUILDER",
|
|
375
|
+
/** WixExposure */
|
|
376
|
+
ALBUMS_OLD = "ALBUMS_OLD",
|
|
377
|
+
/** chat-mobile-uploads */
|
|
378
|
+
CHAT_MOBILE = "CHAT_MOBILE",
|
|
379
|
+
/** _nsWixForms */
|
|
380
|
+
WIX_FORMS = "WIX_FORMS"
|
|
381
|
+
}
|
|
382
|
+
declare type Namespace = `${NamespaceEnum}`;
|
|
383
|
+
export { NamespaceEnum as Namespace };
|
|
384
|
+
export interface IdentityInfo {
|
|
385
|
+
/** The type of the user that uploaded the file */
|
|
386
|
+
identityType?: IdentityType;
|
|
387
|
+
/** User Id. empty when UNKNOWN */
|
|
388
|
+
identityId?: string | null;
|
|
389
|
+
}
|
|
390
|
+
declare enum IdentityTypeEnum {
|
|
391
|
+
UNKNOWN = "UNKNOWN",
|
|
392
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
393
|
+
MEMBER = "MEMBER",
|
|
394
|
+
WIX_USER = "WIX_USER",
|
|
395
|
+
APP = "APP"
|
|
396
|
+
}
|
|
397
|
+
declare type IdentityType = `${IdentityTypeEnum}`;
|
|
398
|
+
export { IdentityTypeEnum as IdentityType };
|
|
348
399
|
export interface FileReady {
|
|
349
400
|
/** File entity that is ready with full information */
|
|
350
401
|
file?: FileDescriptor;
|
|
@@ -505,10 +556,12 @@ export interface GenerateFileResumableUploadUrlRequest {
|
|
|
505
556
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
506
557
|
uploadProtocol?: UploadProtocol;
|
|
507
558
|
}
|
|
508
|
-
|
|
559
|
+
declare enum UploadProtocolEnum {
|
|
509
560
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
510
561
|
TUS = "TUS"
|
|
511
562
|
}
|
|
563
|
+
declare type UploadProtocol = `${UploadProtocolEnum}`;
|
|
564
|
+
export { UploadProtocolEnum as UploadProtocol };
|
|
512
565
|
export interface GenerateFileResumableUploadUrlResponse {
|
|
513
566
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
514
567
|
uploadProtocol?: UploadProtocol;
|
|
@@ -560,6 +613,8 @@ export interface BulkImportFilesResponse {
|
|
|
560
613
|
export interface BulkImportFileRequest {
|
|
561
614
|
/** Information about the files to import. */
|
|
562
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;
|
|
563
618
|
}
|
|
564
619
|
export interface BulkImportFileResponse {
|
|
565
620
|
/** Requests to update individual item */
|
|
@@ -570,7 +625,7 @@ export interface BulkImportFileResponse {
|
|
|
570
625
|
export interface BulkImportFileResult {
|
|
571
626
|
/** updated item metadata */
|
|
572
627
|
itemMetadata?: ItemMetadata;
|
|
573
|
-
/** only returned if operation was successful and
|
|
628
|
+
/** only returned if operation was successful and returnEntity is not set to false */
|
|
574
629
|
item?: FileDescriptor;
|
|
575
630
|
}
|
|
576
631
|
export interface ItemMetadata {
|
|
@@ -629,10 +684,12 @@ export interface Sorting {
|
|
|
629
684
|
/** Sort order. */
|
|
630
685
|
order?: SortOrder;
|
|
631
686
|
}
|
|
632
|
-
|
|
687
|
+
declare enum SortOrderEnum {
|
|
633
688
|
ASC = "ASC",
|
|
634
689
|
DESC = "DESC"
|
|
635
690
|
}
|
|
691
|
+
declare type SortOrder = `${SortOrderEnum}`;
|
|
692
|
+
export { SortOrderEnum as SortOrder };
|
|
636
693
|
export interface CursorPaging {
|
|
637
694
|
/** Number of items to load. */
|
|
638
695
|
limit?: number | null;
|
|
@@ -691,7 +748,7 @@ export interface SearchFilesRequest {
|
|
|
691
748
|
/** Cursor and paging information. */
|
|
692
749
|
paging?: CursorPaging;
|
|
693
750
|
}
|
|
694
|
-
|
|
751
|
+
declare enum RootFolderEnum {
|
|
695
752
|
/** Root of all site media */
|
|
696
753
|
MEDIA_ROOT = "MEDIA_ROOT",
|
|
697
754
|
/** Root of the trash system folder */
|
|
@@ -699,6 +756,8 @@ export declare enum RootFolder {
|
|
|
699
756
|
/** Root of all visitor uploads */
|
|
700
757
|
VISITOR_UPLOADS_ROOT = "VISITOR_UPLOADS_ROOT"
|
|
701
758
|
}
|
|
759
|
+
declare type RootFolder = `${RootFolderEnum}`;
|
|
760
|
+
export { RootFolderEnum as RootFolder };
|
|
702
761
|
export interface SearchFilesResponse {
|
|
703
762
|
/** Files matching the query. */
|
|
704
763
|
files?: FileDescriptor[];
|
|
@@ -711,11 +770,13 @@ export interface GenerateVideoStreamingUrlRequest {
|
|
|
711
770
|
/** Video stream format. */
|
|
712
771
|
format?: StreamFormat;
|
|
713
772
|
}
|
|
714
|
-
|
|
773
|
+
declare enum StreamFormatEnum {
|
|
715
774
|
UNKNOWN = "UNKNOWN",
|
|
716
775
|
HLS = "HLS",
|
|
717
776
|
DASH = "DASH"
|
|
718
777
|
}
|
|
778
|
+
declare type StreamFormat = `${StreamFormatEnum}`;
|
|
779
|
+
export { StreamFormatEnum as StreamFormat };
|
|
719
780
|
export interface GenerateVideoStreamingUrlResponse {
|
|
720
781
|
/** URL for streaming a specific file in the Media Manager. */
|
|
721
782
|
downloadUrl?: DownloadUrl;
|
|
@@ -895,6 +956,10 @@ export interface GetFileDescriptorResponseNonNullableFields {
|
|
|
895
956
|
siteId: string;
|
|
896
957
|
state: State;
|
|
897
958
|
internalTags: string[];
|
|
959
|
+
namespace: Namespace;
|
|
960
|
+
addedBy?: {
|
|
961
|
+
identityType: IdentityType;
|
|
962
|
+
};
|
|
898
963
|
};
|
|
899
964
|
}
|
|
900
965
|
export interface GetFileDescriptorsResponseNonNullableFields {
|
|
@@ -1010,6 +1075,10 @@ export interface GetFileDescriptorsResponseNonNullableFields {
|
|
|
1010
1075
|
siteId: string;
|
|
1011
1076
|
state: State;
|
|
1012
1077
|
internalTags: string[];
|
|
1078
|
+
namespace: Namespace;
|
|
1079
|
+
addedBy?: {
|
|
1080
|
+
identityType: IdentityType;
|
|
1081
|
+
};
|
|
1013
1082
|
}[];
|
|
1014
1083
|
}
|
|
1015
1084
|
export interface UpdateFileDescriptorResponseNonNullableFields {
|
|
@@ -1125,6 +1194,10 @@ export interface UpdateFileDescriptorResponseNonNullableFields {
|
|
|
1125
1194
|
siteId: string;
|
|
1126
1195
|
state: State;
|
|
1127
1196
|
internalTags: string[];
|
|
1197
|
+
namespace: Namespace;
|
|
1198
|
+
addedBy?: {
|
|
1199
|
+
identityType: IdentityType;
|
|
1200
|
+
};
|
|
1128
1201
|
};
|
|
1129
1202
|
}
|
|
1130
1203
|
export interface GenerateFileUploadUrlResponseNonNullableFields {
|
|
@@ -1248,6 +1321,10 @@ export interface ImportFileResponseNonNullableFields {
|
|
|
1248
1321
|
siteId: string;
|
|
1249
1322
|
state: State;
|
|
1250
1323
|
internalTags: string[];
|
|
1324
|
+
namespace: Namespace;
|
|
1325
|
+
addedBy?: {
|
|
1326
|
+
identityType: IdentityType;
|
|
1327
|
+
};
|
|
1251
1328
|
};
|
|
1252
1329
|
}
|
|
1253
1330
|
export interface BulkImportFilesResponseNonNullableFields {
|
|
@@ -1363,6 +1440,10 @@ export interface BulkImportFilesResponseNonNullableFields {
|
|
|
1363
1440
|
siteId: string;
|
|
1364
1441
|
state: State;
|
|
1365
1442
|
internalTags: string[];
|
|
1443
|
+
namespace: Namespace;
|
|
1444
|
+
addedBy?: {
|
|
1445
|
+
identityType: IdentityType;
|
|
1446
|
+
};
|
|
1366
1447
|
}[];
|
|
1367
1448
|
}
|
|
1368
1449
|
export interface BulkImportFileResponseNonNullableFields {
|
|
@@ -1487,6 +1568,10 @@ export interface BulkImportFileResponseNonNullableFields {
|
|
|
1487
1568
|
siteId: string;
|
|
1488
1569
|
state: State;
|
|
1489
1570
|
internalTags: string[];
|
|
1571
|
+
namespace: Namespace;
|
|
1572
|
+
addedBy?: {
|
|
1573
|
+
identityType: IdentityType;
|
|
1574
|
+
};
|
|
1490
1575
|
};
|
|
1491
1576
|
}[];
|
|
1492
1577
|
bulkActionMetadata?: {
|
|
@@ -1608,6 +1693,10 @@ export interface ListFilesResponseNonNullableFields {
|
|
|
1608
1693
|
siteId: string;
|
|
1609
1694
|
state: State;
|
|
1610
1695
|
internalTags: string[];
|
|
1696
|
+
namespace: Namespace;
|
|
1697
|
+
addedBy?: {
|
|
1698
|
+
identityType: IdentityType;
|
|
1699
|
+
};
|
|
1611
1700
|
}[];
|
|
1612
1701
|
}
|
|
1613
1702
|
export interface SearchFilesResponseNonNullableFields {
|
|
@@ -1723,6 +1812,10 @@ export interface SearchFilesResponseNonNullableFields {
|
|
|
1723
1812
|
siteId: string;
|
|
1724
1813
|
state: State;
|
|
1725
1814
|
internalTags: string[];
|
|
1815
|
+
namespace: Namespace;
|
|
1816
|
+
addedBy?: {
|
|
1817
|
+
identityType: IdentityType;
|
|
1818
|
+
};
|
|
1726
1819
|
}[];
|
|
1727
1820
|
}
|
|
1728
1821
|
export interface GenerateVideoStreamingUrlResponseNonNullableFields {
|
|
@@ -1844,5 +1937,9 @@ export interface ListDeletedFilesResponseNonNullableFields {
|
|
|
1844
1937
|
siteId: string;
|
|
1845
1938
|
state: State;
|
|
1846
1939
|
internalTags: string[];
|
|
1940
|
+
namespace: Namespace;
|
|
1941
|
+
addedBy?: {
|
|
1942
|
+
identityType: IdentityType;
|
|
1943
|
+
};
|
|
1847
1944
|
}[];
|
|
1848
1945
|
}
|
|
@@ -1,52 +1,98 @@
|
|
|
1
|
-
|
|
2
|
-
(function (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
})(
|
|
13
|
-
export
|
|
14
|
-
|
|
1
|
+
var MediaTypeEnum;
|
|
2
|
+
(function (MediaTypeEnum) {
|
|
3
|
+
MediaTypeEnum["UNKNOWN"] = "UNKNOWN";
|
|
4
|
+
MediaTypeEnum["IMAGE"] = "IMAGE";
|
|
5
|
+
MediaTypeEnum["VIDEO"] = "VIDEO";
|
|
6
|
+
MediaTypeEnum["AUDIO"] = "AUDIO";
|
|
7
|
+
MediaTypeEnum["DOCUMENT"] = "DOCUMENT";
|
|
8
|
+
MediaTypeEnum["VECTOR"] = "VECTOR";
|
|
9
|
+
MediaTypeEnum["ARCHIVE"] = "ARCHIVE";
|
|
10
|
+
MediaTypeEnum["MODEL3D"] = "MODEL3D";
|
|
11
|
+
MediaTypeEnum["OTHER"] = "OTHER";
|
|
12
|
+
})(MediaTypeEnum || (MediaTypeEnum = {}));
|
|
13
|
+
export { MediaTypeEnum as MediaType };
|
|
14
|
+
var OperationStatusEnum;
|
|
15
|
+
(function (OperationStatusEnum) {
|
|
15
16
|
/** File upload or processing failed */
|
|
16
|
-
|
|
17
|
+
OperationStatusEnum["FAILED"] = "FAILED";
|
|
17
18
|
/** File is ready for consumption */
|
|
18
|
-
|
|
19
|
+
OperationStatusEnum["READY"] = "READY";
|
|
19
20
|
/** File is waiting for processing or currently being processed */
|
|
20
|
-
|
|
21
|
-
})(
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
21
|
+
OperationStatusEnum["PENDING"] = "PENDING";
|
|
22
|
+
})(OperationStatusEnum || (OperationStatusEnum = {}));
|
|
23
|
+
export { OperationStatusEnum as OperationStatus };
|
|
24
|
+
var StateEnum;
|
|
25
|
+
(function (StateEnum) {
|
|
26
|
+
/** File is ready for consumption */
|
|
27
|
+
StateEnum["OK"] = "OK";
|
|
28
|
+
/** Deleted file */
|
|
29
|
+
StateEnum["DELETED"] = "DELETED";
|
|
30
|
+
})(StateEnum || (StateEnum = {}));
|
|
31
|
+
export { StateEnum as State };
|
|
32
|
+
var NamespaceEnum;
|
|
33
|
+
(function (NamespaceEnum) {
|
|
34
|
+
NamespaceEnum["NO_NAMESPACE"] = "NO_NAMESPACE";
|
|
35
|
+
NamespaceEnum["OTHERS"] = "OTHERS";
|
|
36
|
+
/** ANY = 2; */
|
|
37
|
+
NamespaceEnum["WIX_VIDEO"] = "WIX_VIDEO";
|
|
38
|
+
/** _nsWixMusic */
|
|
39
|
+
NamespaceEnum["WIX_MUSIC"] = "WIX_MUSIC";
|
|
40
|
+
/** _nsArtStore */
|
|
41
|
+
NamespaceEnum["ALBUMS_AND_ART_STORE"] = "ALBUMS_AND_ART_STORE";
|
|
42
|
+
/** _nsDigitalProduct */
|
|
43
|
+
NamespaceEnum["WIX_ECOM"] = "WIX_ECOM";
|
|
44
|
+
/** _nsPhotoShareApp */
|
|
45
|
+
NamespaceEnum["PHOTO_SHARE_APP"] = "PHOTO_SHARE_APP";
|
|
46
|
+
/** _nsSharingApp, */
|
|
47
|
+
NamespaceEnum["SHARING_APP"] = "SHARING_APP";
|
|
48
|
+
/** engage */
|
|
49
|
+
NamespaceEnum["CHAT"] = "CHAT";
|
|
50
|
+
/** logobuilder */
|
|
51
|
+
NamespaceEnum["LOGO_BUILDER"] = "LOGO_BUILDER";
|
|
52
|
+
/** WixExposure */
|
|
53
|
+
NamespaceEnum["ALBUMS_OLD"] = "ALBUMS_OLD";
|
|
54
|
+
/** chat-mobile-uploads */
|
|
55
|
+
NamespaceEnum["CHAT_MOBILE"] = "CHAT_MOBILE";
|
|
56
|
+
/** _nsWixForms */
|
|
57
|
+
NamespaceEnum["WIX_FORMS"] = "WIX_FORMS";
|
|
58
|
+
})(NamespaceEnum || (NamespaceEnum = {}));
|
|
59
|
+
export { NamespaceEnum as Namespace };
|
|
60
|
+
var IdentityTypeEnum;
|
|
61
|
+
(function (IdentityTypeEnum) {
|
|
62
|
+
IdentityTypeEnum["UNKNOWN"] = "UNKNOWN";
|
|
63
|
+
IdentityTypeEnum["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
64
|
+
IdentityTypeEnum["MEMBER"] = "MEMBER";
|
|
65
|
+
IdentityTypeEnum["WIX_USER"] = "WIX_USER";
|
|
66
|
+
IdentityTypeEnum["APP"] = "APP";
|
|
67
|
+
})(IdentityTypeEnum || (IdentityTypeEnum = {}));
|
|
68
|
+
export { IdentityTypeEnum as IdentityType };
|
|
69
|
+
var UploadProtocolEnum;
|
|
70
|
+
(function (UploadProtocolEnum) {
|
|
29
71
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
30
|
-
|
|
31
|
-
})(
|
|
32
|
-
export
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
72
|
+
UploadProtocolEnum["TUS"] = "TUS";
|
|
73
|
+
})(UploadProtocolEnum || (UploadProtocolEnum = {}));
|
|
74
|
+
export { UploadProtocolEnum as UploadProtocol };
|
|
75
|
+
var SortOrderEnum;
|
|
76
|
+
(function (SortOrderEnum) {
|
|
77
|
+
SortOrderEnum["ASC"] = "ASC";
|
|
78
|
+
SortOrderEnum["DESC"] = "DESC";
|
|
79
|
+
})(SortOrderEnum || (SortOrderEnum = {}));
|
|
80
|
+
export { SortOrderEnum as SortOrder };
|
|
81
|
+
var RootFolderEnum;
|
|
82
|
+
(function (RootFolderEnum) {
|
|
39
83
|
/** Root of all site media */
|
|
40
|
-
|
|
84
|
+
RootFolderEnum["MEDIA_ROOT"] = "MEDIA_ROOT";
|
|
41
85
|
/** Root of the trash system folder */
|
|
42
|
-
|
|
86
|
+
RootFolderEnum["TRASH_ROOT"] = "TRASH_ROOT";
|
|
43
87
|
/** Root of all visitor uploads */
|
|
44
|
-
|
|
45
|
-
})(
|
|
46
|
-
export
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
88
|
+
RootFolderEnum["VISITOR_UPLOADS_ROOT"] = "VISITOR_UPLOADS_ROOT";
|
|
89
|
+
})(RootFolderEnum || (RootFolderEnum = {}));
|
|
90
|
+
export { RootFolderEnum as RootFolder };
|
|
91
|
+
var StreamFormatEnum;
|
|
92
|
+
(function (StreamFormatEnum) {
|
|
93
|
+
StreamFormatEnum["UNKNOWN"] = "UNKNOWN";
|
|
94
|
+
StreamFormatEnum["HLS"] = "HLS";
|
|
95
|
+
StreamFormatEnum["DASH"] = "DASH";
|
|
96
|
+
})(StreamFormatEnum || (StreamFormatEnum = {}));
|
|
97
|
+
export { StreamFormatEnum as StreamFormat };
|
|
52
98
|
//# 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,C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|
@@ -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,10 +299,58 @@ 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 {
|
|
305
|
+
/** File is ready for consumption */
|
|
301
306
|
OK = "OK",
|
|
307
|
+
/** Deleted file */
|
|
302
308
|
DELETED = "DELETED"
|
|
303
309
|
}
|
|
310
|
+
declare type State = `${StateEnum}`;
|
|
311
|
+
export { StateEnum as State };
|
|
312
|
+
declare enum NamespaceEnum {
|
|
313
|
+
NO_NAMESPACE = "NO_NAMESPACE",
|
|
314
|
+
OTHERS = "OTHERS",
|
|
315
|
+
/** ANY = 2; */
|
|
316
|
+
WIX_VIDEO = "WIX_VIDEO",
|
|
317
|
+
/** _nsWixMusic */
|
|
318
|
+
WIX_MUSIC = "WIX_MUSIC",
|
|
319
|
+
/** _nsArtStore */
|
|
320
|
+
ALBUMS_AND_ART_STORE = "ALBUMS_AND_ART_STORE",
|
|
321
|
+
/** _nsDigitalProduct */
|
|
322
|
+
WIX_ECOM = "WIX_ECOM",
|
|
323
|
+
/** _nsPhotoShareApp */
|
|
324
|
+
PHOTO_SHARE_APP = "PHOTO_SHARE_APP",
|
|
325
|
+
/** _nsSharingApp, */
|
|
326
|
+
SHARING_APP = "SHARING_APP",
|
|
327
|
+
/** engage */
|
|
328
|
+
CHAT = "CHAT",
|
|
329
|
+
/** logobuilder */
|
|
330
|
+
LOGO_BUILDER = "LOGO_BUILDER",
|
|
331
|
+
/** WixExposure */
|
|
332
|
+
ALBUMS_OLD = "ALBUMS_OLD",
|
|
333
|
+
/** chat-mobile-uploads */
|
|
334
|
+
CHAT_MOBILE = "CHAT_MOBILE",
|
|
335
|
+
/** _nsWixForms */
|
|
336
|
+
WIX_FORMS = "WIX_FORMS"
|
|
337
|
+
}
|
|
338
|
+
export { NamespaceEnum as Namespace };
|
|
339
|
+
export interface IdentityInfo {
|
|
340
|
+
/** The type of the user that uploaded the file */
|
|
341
|
+
identityType?: IdentityType;
|
|
342
|
+
/** User Id. empty when UNKNOWN */
|
|
343
|
+
identityId?: string | null;
|
|
344
|
+
}
|
|
345
|
+
declare enum IdentityTypeEnum {
|
|
346
|
+
UNKNOWN = "UNKNOWN",
|
|
347
|
+
ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
|
|
348
|
+
MEMBER = "MEMBER",
|
|
349
|
+
WIX_USER = "WIX_USER",
|
|
350
|
+
APP = "APP"
|
|
351
|
+
}
|
|
352
|
+
declare type IdentityType = `${IdentityTypeEnum}`;
|
|
353
|
+
export { IdentityTypeEnum as IdentityType };
|
|
304
354
|
export interface FileReady {
|
|
305
355
|
/** File entity that is ready with full information */
|
|
306
356
|
file?: FileDescriptor;
|
|
@@ -461,10 +511,12 @@ export interface GenerateFileResumableUploadUrlRequest {
|
|
|
461
511
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
462
512
|
uploadProtocol?: UploadProtocol;
|
|
463
513
|
}
|
|
464
|
-
|
|
514
|
+
declare enum UploadProtocolEnum {
|
|
465
515
|
/** The upload protocol to use for implementing the resumable upload. */
|
|
466
516
|
TUS = "TUS"
|
|
467
517
|
}
|
|
518
|
+
declare type UploadProtocol = `${UploadProtocolEnum}`;
|
|
519
|
+
export { UploadProtocolEnum as UploadProtocol };
|
|
468
520
|
export interface GenerateFileResumableUploadUrlResponse {
|
|
469
521
|
/**
|
|
470
522
|
* The upload protocol to use for implementing the resumable upload.
|
|
@@ -521,6 +573,8 @@ export interface BulkImportFilesResponse {
|
|
|
521
573
|
export interface BulkImportFileRequest {
|
|
522
574
|
/** Information about the files to import. */
|
|
523
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;
|
|
524
578
|
}
|
|
525
579
|
export interface BulkImportFileResponse {
|
|
526
580
|
/** Requests to update individual item */
|
|
@@ -531,7 +585,7 @@ export interface BulkImportFileResponse {
|
|
|
531
585
|
export interface BulkImportFileResult {
|
|
532
586
|
/** updated item metadata */
|
|
533
587
|
itemMetadata?: ItemMetadata;
|
|
534
|
-
/** only returned if operation was successful and
|
|
588
|
+
/** only returned if operation was successful and returnEntity is not set to false */
|
|
535
589
|
item?: FileDescriptor;
|
|
536
590
|
}
|
|
537
591
|
export interface ItemMetadata {
|
|
@@ -594,10 +648,12 @@ export interface Sorting {
|
|
|
594
648
|
*/
|
|
595
649
|
order?: SortOrder;
|
|
596
650
|
}
|
|
597
|
-
|
|
651
|
+
declare enum SortOrderEnum {
|
|
598
652
|
ASC = "ASC",
|
|
599
653
|
DESC = "DESC"
|
|
600
654
|
}
|
|
655
|
+
declare type SortOrder = `${SortOrderEnum}`;
|
|
656
|
+
export { SortOrderEnum as SortOrder };
|
|
601
657
|
export interface CursorPaging {
|
|
602
658
|
/** Number of items to load. */
|
|
603
659
|
limit?: number | null;
|
|
@@ -656,7 +712,7 @@ export interface SearchFilesRequest {
|
|
|
656
712
|
/** Cursor and paging information. */
|
|
657
713
|
paging?: CursorPaging;
|
|
658
714
|
}
|
|
659
|
-
|
|
715
|
+
declare enum RootFolderEnum {
|
|
660
716
|
/** Root of all site media */
|
|
661
717
|
MEDIA_ROOT = "MEDIA_ROOT",
|
|
662
718
|
/** Root of the trash system folder */
|
|
@@ -664,6 +720,8 @@ export declare enum RootFolder {
|
|
|
664
720
|
/** Root of all visitor uploads */
|
|
665
721
|
VISITOR_UPLOADS_ROOT = "VISITOR_UPLOADS_ROOT"
|
|
666
722
|
}
|
|
723
|
+
declare type RootFolder = `${RootFolderEnum}`;
|
|
724
|
+
export { RootFolderEnum as RootFolder };
|
|
667
725
|
export interface SearchFilesResponse {
|
|
668
726
|
/** Files matching the query. */
|
|
669
727
|
files?: FileDescriptor[];
|
|
@@ -676,11 +734,13 @@ export interface GenerateVideoStreamingUrlRequest {
|
|
|
676
734
|
/** Video stream format. */
|
|
677
735
|
format?: StreamFormat;
|
|
678
736
|
}
|
|
679
|
-
|
|
737
|
+
declare enum StreamFormatEnum {
|
|
680
738
|
UNKNOWN = "UNKNOWN",
|
|
681
739
|
HLS = "HLS",
|
|
682
740
|
DASH = "DASH"
|
|
683
741
|
}
|
|
742
|
+
declare type StreamFormat = `${StreamFormatEnum}`;
|
|
743
|
+
export { StreamFormatEnum as StreamFormat };
|
|
684
744
|
export interface GenerateVideoStreamingUrlResponse {
|
|
685
745
|
/** URL for streaming a specific file in the Media Manager. */
|
|
686
746
|
downloadUrl?: DownloadUrl;
|
|
@@ -1656,7 +1716,11 @@ export declare function bulkImportFiles(importFileRequests: ImportFileRequest[])
|
|
|
1656
1716
|
* @permissionScope Manage Media Manager
|
|
1657
1717
|
* @applicableIdentity APP
|
|
1658
1718
|
*/
|
|
1659
|
-
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
|
+
}
|
|
1660
1724
|
/**
|
|
1661
1725
|
* Retrieves a list of files in the Media Manager.
|
|
1662
1726
|
*
|