@wix/media 1.0.107 → 1.0.108
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/media",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.108",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@wix/media_enterprise-media-categories": "1.0.28",
|
|
22
22
|
"@wix/media_enterprise-media-items": "1.0.31",
|
|
23
|
-
"@wix/media_files": "1.0.
|
|
23
|
+
"@wix/media_files": "1.0.43",
|
|
24
24
|
"@wix/media_folders": "1.0.31"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"fqdn": ""
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
"falconPackageHash": "
|
|
49
|
+
"falconPackageHash": "25b8810d7b0314d04bab5e7ff4b4c90f3df16fb99f2deb94da371ed9"
|
|
50
50
|
}
|
|
@@ -2620,8 +2620,87 @@ interface GenerateFileDownloadUrlOptions {
|
|
|
2620
2620
|
contentDisposition?: ContentDisposition;
|
|
2621
2621
|
}
|
|
2622
2622
|
interface UpdateFileDescriptorOptions {
|
|
2623
|
-
|
|
2624
|
-
|
|
2623
|
+
file: {
|
|
2624
|
+
/**
|
|
2625
|
+
* File ID. Generated when a file is uploaded to the Media Manager.
|
|
2626
|
+
* @readonly
|
|
2627
|
+
*/
|
|
2628
|
+
_id?: string;
|
|
2629
|
+
/** File name as it appears in the Media Manager. */
|
|
2630
|
+
displayName?: string;
|
|
2631
|
+
/**
|
|
2632
|
+
* Static URL of the file.
|
|
2633
|
+
* @readonly
|
|
2634
|
+
*/
|
|
2635
|
+
url?: string;
|
|
2636
|
+
/** ID of the file's parent folder. */
|
|
2637
|
+
parentFolderId?: string | null;
|
|
2638
|
+
/**
|
|
2639
|
+
* File hash.
|
|
2640
|
+
* @readonly
|
|
2641
|
+
*/
|
|
2642
|
+
hash?: string;
|
|
2643
|
+
/**
|
|
2644
|
+
* Size of the uploaded file in bytes.
|
|
2645
|
+
* @readonly
|
|
2646
|
+
*/
|
|
2647
|
+
sizeInBytes?: string | null;
|
|
2648
|
+
/**
|
|
2649
|
+
* Whether the link to the uploaded file is public or private. Private links require a token.
|
|
2650
|
+
* @readonly
|
|
2651
|
+
*/
|
|
2652
|
+
private?: boolean;
|
|
2653
|
+
/**
|
|
2654
|
+
* Media file type.
|
|
2655
|
+
* @readonly
|
|
2656
|
+
*/
|
|
2657
|
+
mediaType?: MediaType;
|
|
2658
|
+
/**
|
|
2659
|
+
* Media file content.
|
|
2660
|
+
* @readonly
|
|
2661
|
+
*/
|
|
2662
|
+
media?: FileMedia;
|
|
2663
|
+
/**
|
|
2664
|
+
* Status of the file that was uploaded.
|
|
2665
|
+
* * `FAILED`: The file failed to upload, for example, during media post processing.
|
|
2666
|
+
* * `READY`: The file uploaded, finished all processing, and is ready for use.
|
|
2667
|
+
* * `PENDING`: The file is processing and the URLs are not yet available. This response is returned when importing a file.
|
|
2668
|
+
* @readonly
|
|
2669
|
+
*/
|
|
2670
|
+
operationStatus?: OperationStatus;
|
|
2671
|
+
/**
|
|
2672
|
+
* URL where the file was uploaded from.
|
|
2673
|
+
* @readonly
|
|
2674
|
+
*/
|
|
2675
|
+
sourceUrl?: string | null;
|
|
2676
|
+
/**
|
|
2677
|
+
* URL of the file's thumbnail.
|
|
2678
|
+
* @readonly
|
|
2679
|
+
*/
|
|
2680
|
+
thumbnailUrl?: string | null;
|
|
2681
|
+
/** Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
|
|
2682
|
+
labels?: string[];
|
|
2683
|
+
/**
|
|
2684
|
+
* Date and time the file was created.
|
|
2685
|
+
* @readonly
|
|
2686
|
+
*/
|
|
2687
|
+
_createdDate?: Date;
|
|
2688
|
+
/**
|
|
2689
|
+
* Date and time the file was updated.
|
|
2690
|
+
* @readonly
|
|
2691
|
+
*/
|
|
2692
|
+
_updatedDate?: Date;
|
|
2693
|
+
/**
|
|
2694
|
+
* The Wix site ID where the media file is stored.
|
|
2695
|
+
* @readonly
|
|
2696
|
+
*/
|
|
2697
|
+
siteId?: string;
|
|
2698
|
+
/**
|
|
2699
|
+
* State of the file.
|
|
2700
|
+
* @readonly
|
|
2701
|
+
*/
|
|
2702
|
+
state?: State$1;
|
|
2703
|
+
};
|
|
2625
2704
|
}
|
|
2626
2705
|
interface GenerateFileUploadUrlOptions {
|
|
2627
2706
|
/**
|
|
@@ -2824,7 +2903,7 @@ declare function generateFilesDownloadUrl$1(httpClient: HttpClient): (fileIds: s
|
|
|
2824
2903
|
declare function generateFileDownloadUrl$1(httpClient: HttpClient): (fileId: string, options?: GenerateFileDownloadUrlOptions) => Promise<GenerateFileDownloadUrlResponse & GenerateFileDownloadUrlResponseNonNullableFields>;
|
|
2825
2904
|
declare function getFileDescriptor$1(httpClient: HttpClient): (fileId: string) => Promise<FileDescriptor & FileDescriptorNonNullableFields>;
|
|
2826
2905
|
declare function getFileDescriptors$1(httpClient: HttpClient): (fileIds: string[]) => Promise<GetFileDescriptorsResponse & GetFileDescriptorsResponseNonNullableFields>;
|
|
2827
|
-
declare function updateFileDescriptor$1(httpClient: HttpClient): (options: UpdateFileDescriptorOptions) => Promise<FileDescriptor & FileDescriptorNonNullableFields>;
|
|
2906
|
+
declare function updateFileDescriptor$1(httpClient: HttpClient): (_id: string, options: UpdateFileDescriptorOptions) => Promise<FileDescriptor & FileDescriptorNonNullableFields>;
|
|
2828
2907
|
declare function generateFileUploadUrl$1(httpClient: HttpClient): (mimeType: string | null, options?: GenerateFileUploadUrlOptions) => Promise<GenerateFileUploadUrlResponse & GenerateFileUploadUrlResponseNonNullableFields>;
|
|
2829
2908
|
declare function generateFileResumableUploadUrl$1(httpClient: HttpClient): (mimeType: string | null, options?: GenerateFileResumableUploadUrlOptions) => Promise<GenerateFileResumableUploadUrlResponse & GenerateFileResumableUploadUrlResponseNonNullableFields>;
|
|
2830
2909
|
declare function importFile$1(httpClient: HttpClient): (url: string, options?: ImportFileOptions) => Promise<ImportFileResponse & ImportFileResponseNonNullableFields>;
|
|
@@ -2620,8 +2620,87 @@ interface GenerateFileDownloadUrlOptions {
|
|
|
2620
2620
|
contentDisposition?: ContentDisposition;
|
|
2621
2621
|
}
|
|
2622
2622
|
interface UpdateFileDescriptorOptions {
|
|
2623
|
-
|
|
2624
|
-
|
|
2623
|
+
file: {
|
|
2624
|
+
/**
|
|
2625
|
+
* File ID. Generated when a file is uploaded to the Media Manager.
|
|
2626
|
+
* @readonly
|
|
2627
|
+
*/
|
|
2628
|
+
_id?: string;
|
|
2629
|
+
/** File name as it appears in the Media Manager. */
|
|
2630
|
+
displayName?: string;
|
|
2631
|
+
/**
|
|
2632
|
+
* Static URL of the file.
|
|
2633
|
+
* @readonly
|
|
2634
|
+
*/
|
|
2635
|
+
url?: string;
|
|
2636
|
+
/** ID of the file's parent folder. */
|
|
2637
|
+
parentFolderId?: string | null;
|
|
2638
|
+
/**
|
|
2639
|
+
* File hash.
|
|
2640
|
+
* @readonly
|
|
2641
|
+
*/
|
|
2642
|
+
hash?: string;
|
|
2643
|
+
/**
|
|
2644
|
+
* Size of the uploaded file in bytes.
|
|
2645
|
+
* @readonly
|
|
2646
|
+
*/
|
|
2647
|
+
sizeInBytes?: string | null;
|
|
2648
|
+
/**
|
|
2649
|
+
* Whether the link to the uploaded file is public or private. Private links require a token.
|
|
2650
|
+
* @readonly
|
|
2651
|
+
*/
|
|
2652
|
+
private?: boolean;
|
|
2653
|
+
/**
|
|
2654
|
+
* Media file type.
|
|
2655
|
+
* @readonly
|
|
2656
|
+
*/
|
|
2657
|
+
mediaType?: MediaType;
|
|
2658
|
+
/**
|
|
2659
|
+
* Media file content.
|
|
2660
|
+
* @readonly
|
|
2661
|
+
*/
|
|
2662
|
+
media?: FileMedia;
|
|
2663
|
+
/**
|
|
2664
|
+
* Status of the file that was uploaded.
|
|
2665
|
+
* * `FAILED`: The file failed to upload, for example, during media post processing.
|
|
2666
|
+
* * `READY`: The file uploaded, finished all processing, and is ready for use.
|
|
2667
|
+
* * `PENDING`: The file is processing and the URLs are not yet available. This response is returned when importing a file.
|
|
2668
|
+
* @readonly
|
|
2669
|
+
*/
|
|
2670
|
+
operationStatus?: OperationStatus;
|
|
2671
|
+
/**
|
|
2672
|
+
* URL where the file was uploaded from.
|
|
2673
|
+
* @readonly
|
|
2674
|
+
*/
|
|
2675
|
+
sourceUrl?: string | null;
|
|
2676
|
+
/**
|
|
2677
|
+
* URL of the file's thumbnail.
|
|
2678
|
+
* @readonly
|
|
2679
|
+
*/
|
|
2680
|
+
thumbnailUrl?: string | null;
|
|
2681
|
+
/** Labels assigned to media files that describe and categorize them. Provided by the user, or generated by [Google Vision API](https://cloud.google.com/vision/docs/drag-and-drop) for images. */
|
|
2682
|
+
labels?: string[];
|
|
2683
|
+
/**
|
|
2684
|
+
* Date and time the file was created.
|
|
2685
|
+
* @readonly
|
|
2686
|
+
*/
|
|
2687
|
+
_createdDate?: Date;
|
|
2688
|
+
/**
|
|
2689
|
+
* Date and time the file was updated.
|
|
2690
|
+
* @readonly
|
|
2691
|
+
*/
|
|
2692
|
+
_updatedDate?: Date;
|
|
2693
|
+
/**
|
|
2694
|
+
* The Wix site ID where the media file is stored.
|
|
2695
|
+
* @readonly
|
|
2696
|
+
*/
|
|
2697
|
+
siteId?: string;
|
|
2698
|
+
/**
|
|
2699
|
+
* State of the file.
|
|
2700
|
+
* @readonly
|
|
2701
|
+
*/
|
|
2702
|
+
state?: State$1;
|
|
2703
|
+
};
|
|
2625
2704
|
}
|
|
2626
2705
|
interface GenerateFileUploadUrlOptions {
|
|
2627
2706
|
/**
|
|
@@ -2824,7 +2903,7 @@ declare function generateFilesDownloadUrl$1(httpClient: HttpClient): (fileIds: s
|
|
|
2824
2903
|
declare function generateFileDownloadUrl$1(httpClient: HttpClient): (fileId: string, options?: GenerateFileDownloadUrlOptions) => Promise<GenerateFileDownloadUrlResponse & GenerateFileDownloadUrlResponseNonNullableFields>;
|
|
2825
2904
|
declare function getFileDescriptor$1(httpClient: HttpClient): (fileId: string) => Promise<FileDescriptor & FileDescriptorNonNullableFields>;
|
|
2826
2905
|
declare function getFileDescriptors$1(httpClient: HttpClient): (fileIds: string[]) => Promise<GetFileDescriptorsResponse & GetFileDescriptorsResponseNonNullableFields>;
|
|
2827
|
-
declare function updateFileDescriptor$1(httpClient: HttpClient): (options: UpdateFileDescriptorOptions) => Promise<FileDescriptor & FileDescriptorNonNullableFields>;
|
|
2906
|
+
declare function updateFileDescriptor$1(httpClient: HttpClient): (_id: string, options: UpdateFileDescriptorOptions) => Promise<FileDescriptor & FileDescriptorNonNullableFields>;
|
|
2828
2907
|
declare function generateFileUploadUrl$1(httpClient: HttpClient): (mimeType: string | null, options?: GenerateFileUploadUrlOptions) => Promise<GenerateFileUploadUrlResponse & GenerateFileUploadUrlResponseNonNullableFields>;
|
|
2829
2908
|
declare function generateFileResumableUploadUrl$1(httpClient: HttpClient): (mimeType: string | null, options?: GenerateFileResumableUploadUrlOptions) => Promise<GenerateFileResumableUploadUrlResponse & GenerateFileResumableUploadUrlResponseNonNullableFields>;
|
|
2830
2909
|
declare function importFile$1(httpClient: HttpClient): (url: string, options?: ImportFileOptions) => Promise<ImportFileResponse & ImportFileResponseNonNullableFields>;
|