@wix/media_files
Advanced tools
Comparing version 1.0.24 to 1.0.25
@@ -132,3 +132,3 @@ import { RequestOptionsFactory } from '@wix/sdk-types'; | ||
* | ||
* To retrieve a list of files within a specific folder in the Media Manager, pass the folder's ID in the `parentFolderId` parameter. If no folder is specified, the function retrieves only the list of files in the root folder of the Media Manager. | ||
* To retrieve a list of files within a specific folder in the Media Manager, pass the folder's ID in the `parentFolderId` parameter. If no folder is specified, the function retrieves only the files in the root folder of the Media Manager. | ||
* | ||
@@ -135,0 +135,0 @@ * To retrieve a list of (non-permanently) deleted files, use the `listDeletedFiles()` function. |
@@ -590,3 +590,3 @@ "use strict"; | ||
* | ||
* To retrieve a list of files within a specific folder in the Media Manager, pass the folder's ID in the `parentFolderId` parameter. If no folder is specified, the function retrieves only the list of files in the root folder of the Media Manager. | ||
* To retrieve a list of files within a specific folder in the Media Manager, pass the folder's ID in the `parentFolderId` parameter. If no folder is specified, the function retrieves only the files in the root folder of the Media Manager. | ||
* | ||
@@ -593,0 +593,0 @@ * To retrieve a list of (non-permanently) deleted files, use the `listDeletedFiles()` function. |
@@ -658,20 +658,5 @@ "use strict"; | ||
/** | ||
* > **Deprecated.** | ||
* > This function has been replaced with `bulkImportFile()`, and will be removed on March 31, 2024. | ||
* | ||
* | ||
* The `bulkImportFiles()` function returns a Promise that resolves to an array of the imported files' descriptors. | ||
* | ||
* Imports a bulk of files to the Media Manager using external urls. | ||
* | ||
* Returns information about the imported files. Use the `parentFolderId` parameter to specify in which folder you want each file to be imported. | ||
* If no folder is specified, the file is imported to the `media-root` folder. | ||
* | ||
* >**Note:** The `media` property isn't returned in the `files` response object. | ||
* | ||
* To import files, you need to do one of the following for each file: | ||
* - Pass its [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) in the `mimeType` field of the request. For example, `mimeType: 'image/jpeg'`. | ||
* - Include its extension in either the `displayName` or `url` field of the request. For example, `displayName: 'Example Image.jpeg` or `url: https://www.example.com/image.jpeg`. | ||
* - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server. | ||
* > **Note:** If you want to validate the media type, pass the file's expected media type in the optional `mediaType` field of the request. For example, `mediaType: 'IMAGE'`. | ||
* @removalDate 2024-03-31 | ||
* @replacedBy com.wix.media.site_media.v1.FilesService.BulkImportFile | ||
* @deprecated | ||
* @param importFileRequests - Information about the files to import. | ||
@@ -817,3 +802,3 @@ * @public | ||
* | ||
* To retrieve a list of files within a specific folder in the Media Manager, pass the folder's ID in the `parentFolderId` parameter. If no folder is specified, the function retrieves only the list of files in the root folder of the Media Manager. | ||
* To retrieve a list of files within a specific folder in the Media Manager, pass the folder's ID in the `parentFolderId` parameter. If no folder is specified, the function retrieves only the files in the root folder of the Media Manager. | ||
* | ||
@@ -820,0 +805,0 @@ * To retrieve a list of (non-permanently) deleted files, use the `listDeletedFiles()` function. |
@@ -132,3 +132,3 @@ import { RequestOptionsFactory } from '@wix/sdk-types'; | ||
* | ||
* To retrieve a list of files within a specific folder in the Media Manager, pass the folder's ID in the `parentFolderId` parameter. If no folder is specified, the function retrieves only the list of files in the root folder of the Media Manager. | ||
* To retrieve a list of files within a specific folder in the Media Manager, pass the folder's ID in the `parentFolderId` parameter. If no folder is specified, the function retrieves only the files in the root folder of the Media Manager. | ||
* | ||
@@ -135,0 +135,0 @@ * To retrieve a list of (non-permanently) deleted files, use the `listDeletedFiles()` function. |
@@ -577,3 +577,3 @@ import { toURLSearchParams } from '@wix/metro-runtime'; | ||
* | ||
* To retrieve a list of files within a specific folder in the Media Manager, pass the folder's ID in the `parentFolderId` parameter. If no folder is specified, the function retrieves only the list of files in the root folder of the Media Manager. | ||
* To retrieve a list of files within a specific folder in the Media Manager, pass the folder's ID in the `parentFolderId` parameter. If no folder is specified, the function retrieves only the files in the root folder of the Media Manager. | ||
* | ||
@@ -580,0 +580,0 @@ * To retrieve a list of (non-permanently) deleted files, use the `listDeletedFiles()` function. |
@@ -624,20 +624,5 @@ import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error'; | ||
/** | ||
* > **Deprecated.** | ||
* > This function has been replaced with `bulkImportFile()`, and will be removed on March 31, 2024. | ||
* | ||
* | ||
* The `bulkImportFiles()` function returns a Promise that resolves to an array of the imported files' descriptors. | ||
* | ||
* Imports a bulk of files to the Media Manager using external urls. | ||
* | ||
* Returns information about the imported files. Use the `parentFolderId` parameter to specify in which folder you want each file to be imported. | ||
* If no folder is specified, the file is imported to the `media-root` folder. | ||
* | ||
* >**Note:** The `media` property isn't returned in the `files` response object. | ||
* | ||
* To import files, you need to do one of the following for each file: | ||
* - Pass its [MIME type](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types) in the `mimeType` field of the request. For example, `mimeType: 'image/jpeg'`. | ||
* - Include its extension in either the `displayName` or `url` field of the request. For example, `displayName: 'Example Image.jpeg` or `url: https://www.example.com/image.jpeg`. | ||
* - Ensure the server hosting the file supports HEAD requests. In these cases the Wix servers can retrieve the MIME type from the hosting server. | ||
* > **Note:** If you want to validate the media type, pass the file's expected media type in the optional `mediaType` field of the request. For example, `mediaType: 'IMAGE'`. | ||
* @removalDate 2024-03-31 | ||
* @replacedBy com.wix.media.site_media.v1.FilesService.BulkImportFile | ||
* @deprecated | ||
* @param importFileRequests - Information about the files to import. | ||
@@ -781,3 +766,3 @@ * @public | ||
* | ||
* To retrieve a list of files within a specific folder in the Media Manager, pass the folder's ID in the `parentFolderId` parameter. If no folder is specified, the function retrieves only the list of files in the root folder of the Media Manager. | ||
* To retrieve a list of files within a specific folder in the Media Manager, pass the folder's ID in the `parentFolderId` parameter. If no folder is specified, the function retrieves only the files in the root folder of the Media Manager. | ||
* | ||
@@ -784,0 +769,0 @@ * To retrieve a list of (non-permanently) deleted files, use the `listDeletedFiles()` function. |
{ | ||
"name": "@wix/media_files", | ||
"version": "1.0.24", | ||
"version": "1.0.25", | ||
"publishConfig": { | ||
@@ -42,3 +42,3 @@ "registry": "https://registry.npmjs.org/", | ||
}, | ||
"falconPackageHash": "20529cd79ea32dedabc035aa85a992cb58d225e2c3e0990321f9d3d2" | ||
"falconPackageHash": "260d76eb7e693a335d6ebe03eda6db15afd10a64f18bb7af80cc9dd2" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
749124
15300