@wix/media_files
Advanced tools
Comparing version 1.0.67 to 1.0.68
@@ -26,17 +26,29 @@ import { generateFilesDownloadUrl as publicGenerateFilesDownloadUrl, generateFileDownloadUrl as publicGenerateFileDownloadUrl, getFileDescriptor as publicGetFileDescriptor, getFileDescriptors as publicGetFileDescriptors, updateFileDescriptor as publicUpdateFileDescriptor, generateFileUploadUrl as publicGenerateFileUploadUrl, generateFileResumableUploadUrl as publicGenerateFileResumableUploadUrl, importFile as publicImportFile, bulkImportFiles as publicBulkImportFiles, bulkImportFile as publicBulkImportFile, listFiles as publicListFiles, searchFiles as publicSearchFiles, generateVideoStreamingUrl as publicGenerateVideoStreamingUrl, bulkDeleteFiles as publicBulkDeleteFiles, bulkRestoreFilesFromTrashBin as publicBulkRestoreFilesFromTrashBin, listDeletedFiles as publicListDeletedFiles } from './media-site-media-v1-file-descriptor-files.public'; | ||
export type _publicOnFileDescriptorDeletedType = typeof publicOnFileDescriptorDeleted; | ||
/** */ | ||
/** | ||
* Triggered when a file is deleted. | ||
* | ||
* If the `movedToTrash` property in the event object `true`, the file was moved to the Media Manager's trash bin. If the `movedToTrash` property in the event object is `false`, the file was permanently deleted. | ||
*/ | ||
export declare const onFileDescriptorDeleted: ReturnType<typeof createEventModule<_publicOnFileDescriptorDeletedType>>; | ||
export { publicOnFileDescriptorFileFailed }; | ||
export type _publicOnFileDescriptorFileFailedType = typeof publicOnFileDescriptorFileFailed; | ||
/** */ | ||
/** | ||
* Triggered when a file fails during essential post-upload processing. | ||
*/ | ||
export declare const onFileDescriptorFileFailed: ReturnType<typeof createEventModule<_publicOnFileDescriptorFileFailedType>>; | ||
export { publicOnFileDescriptorFileReady }; | ||
export type _publicOnFileDescriptorFileReadyType = typeof publicOnFileDescriptorFileReady; | ||
/** */ | ||
/** | ||
* Triggered when a file is ready to be used, after any post-upload processing. | ||
* | ||
* This event is also triggred when a file is restored from the Media Manager's trash bin. | ||
*/ | ||
export declare const onFileDescriptorFileReady: ReturnType<typeof createEventModule<_publicOnFileDescriptorFileReadyType>>; | ||
export { publicOnFileDescriptorUpdated }; | ||
export type _publicOnFileDescriptorUpdatedType = typeof publicOnFileDescriptorUpdated; | ||
/** */ | ||
/** | ||
* Triggered when a file is updated, including when a file is moved to a different folder. | ||
*/ | ||
export declare const onFileDescriptorUpdated: ReturnType<typeof createEventModule<_publicOnFileDescriptorUpdatedType>>; | ||
export { MediaType, OperationStatus, State, Namespace, IdentityType, ImageAnnotationType, ContentDisposition, UploadProtocol, SortOrder, RootFolder, StreamFormat, WebhookIdentityType, } from './media-site-media-v1-file-descriptor-files.universal'; | ||
export { FileDescriptor, FileMedia, FileMediaMediaOneOf, ImageMedia, FocalPoint, Colors, Color, ColorRGB, FaceRecognition, VideoResolution, AudioV2, Archive, Model3D, OtherMedia, FontMedia, FontAsset, IdentityInfo, FileReady, ExternalInfo, FileFailed, ApplicationError, DraftFilePublished, BulkAnnotateImagesRequest, BulkAnnotateImagesResponse, GenerateFilesDownloadUrlRequest, GenerateFilesDownloadUrlResponse, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse, DownloadUrl, ServiceError, GetFileDescriptorRequest, GetFileDescriptorResponse, GetFileDescriptorsRequest, GetFileDescriptorsResponse, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, UnsupportedRequestValueError, GenerateFileUploadUrlRequest, GenerateFileUploadUrlResponse, SiteQuotaExceededError, TotalQuota, Plans, Plan, GenerateFileResumableUploadUrlRequest, GenerateFileResumableUploadUrlResponse, ImportFileRequest, ImportFileResponse, BulkImportFilesRequest, BulkImportFilesResponse, BulkImportFileRequest, BulkImportFileResponse, BulkImportFileResult, ItemMetadata, BulkActionMetadata, ListFilesRequest, Sorting, CursorPaging, ListFilesResponse, PagingMetadataV2, Cursors, SearchFilesRequest, SearchFilesResponse, GenerateVideoStreamingUrlRequest, GenerateVideoStreamingUrlResponse, GenerateWebSocketTokenRequest, GenerateWebSocketTokenResponse, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, ListDeletedFilesRequest, ListDeletedFilesResponse, BulkPublishDraftFilesRequest, BulkPublishDraftFilesResponse, UpdateFileRequest, UpdateFileResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, GenerateFilesDownloadUrlResponseNonNullableFields, GenerateFileDownloadUrlResponseNonNullableFields, FileDescriptorNonNullableFields, GetFileDescriptorResponseNonNullableFields, GetFileDescriptorsResponseNonNullableFields, UpdateFileDescriptorResponseNonNullableFields, GenerateFileUploadUrlResponseNonNullableFields, GenerateFileResumableUploadUrlResponseNonNullableFields, ImportFileResponseNonNullableFields, BulkImportFilesResponseNonNullableFields, BulkImportFileResponseNonNullableFields, ListFilesResponseNonNullableFields, SearchFilesResponseNonNullableFields, GenerateVideoStreamingUrlResponseNonNullableFields, ListDeletedFilesResponseNonNullableFields, BaseEventMetadata, EventMetadata, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorUpdatedEnvelope, GenerateFileDownloadUrlOptions, GenerateFileUploadUrlOptions, GenerateFileResumableUploadUrlOptions, ImportFileOptions, BulkImportFileOptions, ListFilesOptions, SearchFilesOptions, GenerateVideoStreamingUrlOptions, BulkDeleteFilesOptions, ListDeletedFilesOptions, } from './media-site-media-v1-file-descriptor-files.universal'; | ||
export { FileDescriptor, FileMedia, FileMediaMediaOneOf, ImageMedia, FocalPoint, Colors, Color, ColorRGB, FaceRecognition, VideoResolution, AudioV2, Archive, Model3D, OtherMedia, FontMedia, FontAsset, IdentityInfo, FileReady, ExternalInfo, FileFailed, ApplicationError, DraftFilePublished, BulkAnnotateImagesRequest, BulkAnnotateImagesResponse, BulkAnnotateImageResult, ItemMetadata, BulkActionMetadata, GenerateFilesDownloadUrlRequest, GenerateFilesDownloadUrlResponse, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse, DownloadUrl, ServiceError, GetFileDescriptorRequest, GetFileDescriptorResponse, GetFileDescriptorsRequest, GetFileDescriptorsResponse, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, UnsupportedRequestValueError, GenerateFileUploadUrlRequest, ImageAnnotationConfigurations, GenerateFileUploadUrlResponse, SiteQuotaExceededError, TotalQuota, Plans, Plan, GenerateFileResumableUploadUrlRequest, GenerateFileResumableUploadUrlResponse, ImportFileRequest, ImportFileResponse, BulkImportFilesRequest, BulkImportFilesResponse, BulkImportFileRequest, BulkImportFileResponse, BulkImportFileResult, ListFilesRequest, Sorting, CursorPaging, ListFilesResponse, PagingMetadataV2, Cursors, SearchFilesRequest, SearchFilesResponse, GenerateVideoStreamingUrlRequest, GenerateVideoStreamingUrlResponse, GenerateWebSocketTokenRequest, GenerateWebSocketTokenResponse, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, ListDeletedFilesRequest, ListDeletedFilesResponse, BulkPublishDraftFilesRequest, BulkPublishDraftFilesResponse, BulkPublishDraftFileResult, UpdateFileRequest, UpdateFileResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, GenerateFilesDownloadUrlResponseNonNullableFields, GenerateFileDownloadUrlResponseNonNullableFields, FileDescriptorNonNullableFields, GetFileDescriptorResponseNonNullableFields, GetFileDescriptorsResponseNonNullableFields, UpdateFileDescriptorResponseNonNullableFields, GenerateFileUploadUrlResponseNonNullableFields, GenerateFileResumableUploadUrlResponseNonNullableFields, ImportFileResponseNonNullableFields, BulkImportFilesResponseNonNullableFields, BulkImportFileResponseNonNullableFields, ListFilesResponseNonNullableFields, SearchFilesResponseNonNullableFields, GenerateVideoStreamingUrlResponseNonNullableFields, ListDeletedFilesResponseNonNullableFields, BaseEventMetadata, EventMetadata, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorUpdatedEnvelope, GenerateFileDownloadUrlOptions, GenerateFileUploadUrlOptions, GenerateFileResumableUploadUrlOptions, ImportFileOptions, BulkImportFileOptions, ListFilesOptions, SearchFilesOptions, GenerateVideoStreamingUrlOptions, BulkDeleteFilesOptions, ListDeletedFilesOptions, } from './media-site-media-v1-file-descriptor-files.universal'; |
@@ -31,9 +31,21 @@ "use strict"; | ||
exports.listDeletedFiles = (0, rest_modules_1.createRESTModule)(media_site_media_v1_file_descriptor_files_public_1.listDeletedFiles); | ||
/** */ | ||
/** | ||
* Triggered when a file is deleted. | ||
* | ||
* If the `movedToTrash` property in the event object `true`, the file was moved to the Media Manager's trash bin. If the `movedToTrash` property in the event object is `false`, the file was permanently deleted. | ||
*/ | ||
exports.onFileDescriptorDeleted = (0, event_definition_modules_1.createEventModule)(media_site_media_v1_file_descriptor_files_public_2.onFileDescriptorDeleted); | ||
/** */ | ||
/** | ||
* Triggered when a file fails during essential post-upload processing. | ||
*/ | ||
exports.onFileDescriptorFileFailed = (0, event_definition_modules_1.createEventModule)(media_site_media_v1_file_descriptor_files_public_3.onFileDescriptorFileFailed); | ||
/** */ | ||
/** | ||
* Triggered when a file is ready to be used, after any post-upload processing. | ||
* | ||
* This event is also triggred when a file is restored from the Media Manager's trash bin. | ||
*/ | ||
exports.onFileDescriptorFileReady = (0, event_definition_modules_1.createEventModule)(media_site_media_v1_file_descriptor_files_public_4.onFileDescriptorFileReady); | ||
/** */ | ||
/** | ||
* Triggered when a file is updated, including when a file is moved to a different folder. | ||
*/ | ||
exports.onFileDescriptorUpdated = (0, event_definition_modules_1.createEventModule)(media_site_media_v1_file_descriptor_files_public_5.onFileDescriptorUpdated); | ||
@@ -40,0 +52,0 @@ var media_site_media_v1_file_descriptor_files_universal_1 = require("./media-site-media-v1-file-descriptor-files.universal"); |
@@ -265,2 +265,2 @@ import { EventDefinition, HttpClient } from '@wix/sdk-types'; | ||
export declare const onFileDescriptorUpdated: EventDefinition<FileDescriptorUpdatedEnvelope, "wix.media.site_media.v1.file_descriptor_updated">; | ||
export { ActionEvent, ApplicationError, Archive, AudioV2, BaseEventMetadata, BulkActionMetadata, BulkAnnotateImagesRequest, BulkAnnotateImagesResponse, BulkDeleteFilesOptions, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkImportFileOptions, BulkImportFileRequest, BulkImportFileResponse, BulkImportFileResponseNonNullableFields, BulkImportFileResult, BulkImportFilesRequest, BulkImportFilesResponse, BulkImportFilesResponseNonNullableFields, BulkPublishDraftFilesRequest, BulkPublishDraftFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, Color, ColorRGB, Colors, ContentDisposition, CursorPaging, Cursors, DomainEvent, DomainEventBodyOneOf, DownloadUrl, DraftFilePublished, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExternalInfo, FaceRecognition, FileDescriptor, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorNonNullableFields, FileDescriptorUpdatedEnvelope, FileFailed, FileMedia, FileMediaMediaOneOf, FileReady, FocalPoint, FontAsset, FontMedia, GenerateFileDownloadUrlOptions, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse, GenerateFileDownloadUrlResponseNonNullableFields, GenerateFileResumableUploadUrlOptions, GenerateFileResumableUploadUrlRequest, GenerateFileResumableUploadUrlResponse, GenerateFileResumableUploadUrlResponseNonNullableFields, GenerateFileUploadUrlOptions, GenerateFileUploadUrlRequest, GenerateFileUploadUrlResponse, GenerateFileUploadUrlResponseNonNullableFields, GenerateFilesDownloadUrlRequest, GenerateFilesDownloadUrlResponse, GenerateFilesDownloadUrlResponseNonNullableFields, GenerateVideoStreamingUrlOptions, GenerateVideoStreamingUrlRequest, GenerateVideoStreamingUrlResponse, GenerateVideoStreamingUrlResponseNonNullableFields, GenerateWebSocketTokenRequest, GenerateWebSocketTokenResponse, GetFileDescriptorRequest, GetFileDescriptorResponse, GetFileDescriptorResponseNonNullableFields, GetFileDescriptorsRequest, GetFileDescriptorsResponse, GetFileDescriptorsResponseNonNullableFields, IdentificationData, IdentificationDataIdOneOf, IdentityInfo, IdentityType, ImageAnnotationType, ImageMedia, ImportFileOptions, ImportFileRequest, ImportFileResponse, ImportFileResponseNonNullableFields, ItemMetadata, ListDeletedFilesOptions, ListDeletedFilesRequest, ListDeletedFilesResponse, ListDeletedFilesResponseNonNullableFields, ListFilesOptions, ListFilesRequest, ListFilesResponse, ListFilesResponseNonNullableFields, MediaType, MessageEnvelope, Model3D, Namespace, OperationStatus, OtherMedia, PagingMetadataV2, Plan, Plans, RestoreInfo, RootFolder, SearchFilesOptions, SearchFilesRequest, SearchFilesResponse, SearchFilesResponseNonNullableFields, ServiceError, SiteQuotaExceededError, SortOrder, Sorting, State, StreamFormat, TotalQuota, UnsupportedRequestValueError, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, UpdateFileDescriptorResponseNonNullableFields, UpdateFileRequest, UpdateFileResponse, UploadProtocol, VideoResolution, WebhookIdentityType, } from './media-site-media-v1-file-descriptor-files.universal'; | ||
export { ActionEvent, ApplicationError, Archive, AudioV2, BaseEventMetadata, BulkActionMetadata, BulkAnnotateImageResult, BulkAnnotateImagesRequest, BulkAnnotateImagesResponse, BulkDeleteFilesOptions, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkImportFileOptions, BulkImportFileRequest, BulkImportFileResponse, BulkImportFileResponseNonNullableFields, BulkImportFileResult, BulkImportFilesRequest, BulkImportFilesResponse, BulkImportFilesResponseNonNullableFields, BulkPublishDraftFileResult, BulkPublishDraftFilesRequest, BulkPublishDraftFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, Color, ColorRGB, Colors, ContentDisposition, CursorPaging, Cursors, DomainEvent, DomainEventBodyOneOf, DownloadUrl, DraftFilePublished, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExternalInfo, FaceRecognition, FileDescriptor, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorNonNullableFields, FileDescriptorUpdatedEnvelope, FileFailed, FileMedia, FileMediaMediaOneOf, FileReady, FocalPoint, FontAsset, FontMedia, GenerateFileDownloadUrlOptions, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse, GenerateFileDownloadUrlResponseNonNullableFields, GenerateFileResumableUploadUrlOptions, GenerateFileResumableUploadUrlRequest, GenerateFileResumableUploadUrlResponse, GenerateFileResumableUploadUrlResponseNonNullableFields, GenerateFileUploadUrlOptions, GenerateFileUploadUrlRequest, GenerateFileUploadUrlResponse, GenerateFileUploadUrlResponseNonNullableFields, GenerateFilesDownloadUrlRequest, GenerateFilesDownloadUrlResponse, GenerateFilesDownloadUrlResponseNonNullableFields, GenerateVideoStreamingUrlOptions, GenerateVideoStreamingUrlRequest, GenerateVideoStreamingUrlResponse, GenerateVideoStreamingUrlResponseNonNullableFields, GenerateWebSocketTokenRequest, GenerateWebSocketTokenResponse, GetFileDescriptorRequest, GetFileDescriptorResponse, GetFileDescriptorResponseNonNullableFields, GetFileDescriptorsRequest, GetFileDescriptorsResponse, GetFileDescriptorsResponseNonNullableFields, IdentificationData, IdentificationDataIdOneOf, IdentityInfo, IdentityType, ImageAnnotationConfigurations, ImageAnnotationType, ImageMedia, ImportFileOptions, ImportFileRequest, ImportFileResponse, ImportFileResponseNonNullableFields, ItemMetadata, ListDeletedFilesOptions, ListDeletedFilesRequest, ListDeletedFilesResponse, ListDeletedFilesResponseNonNullableFields, ListFilesOptions, ListFilesRequest, ListFilesResponse, ListFilesResponseNonNullableFields, MediaType, MessageEnvelope, Model3D, Namespace, OperationStatus, OtherMedia, PagingMetadataV2, Plan, Plans, RestoreInfo, RootFolder, SearchFilesOptions, SearchFilesRequest, SearchFilesResponse, SearchFilesResponseNonNullableFields, ServiceError, SiteQuotaExceededError, SortOrder, Sorting, State, StreamFormat, TotalQuota, UnsupportedRequestValueError, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, UpdateFileDescriptorResponseNonNullableFields, UpdateFileRequest, UpdateFileResponse, UploadProtocol, VideoResolution, WebhookIdentityType, } from './media-site-media-v1-file-descriptor-files.universal'; |
@@ -475,5 +475,7 @@ export interface FileDescriptor { | ||
overwrite?: boolean | null; | ||
/** Should the response return the item following the operation */ | ||
returnEntity?: boolean; | ||
} | ||
export declare enum ImageAnnotationType { | ||
UNKNOWN_ANNOTATION_TYPE = "UNKNOWN_ANNOTATION_TYPE", | ||
UNKNOWN_IMAGE_ANNOTATION_TYPE = "UNKNOWN_IMAGE_ANNOTATION_TYPE", | ||
CONTAINS_TEXT = "CONTAINS_TEXT", | ||
@@ -487,5 +489,34 @@ IS_ANIMATED = "IS_ANIMATED", | ||
export interface BulkAnnotateImagesResponse { | ||
/** The updated file info */ | ||
files?: FileDescriptor[]; | ||
/** Results of individual items */ | ||
results?: BulkAnnotateImageResult[]; | ||
/** Metadata of the operation */ | ||
bulkActionMetadata?: BulkActionMetadata; | ||
} | ||
export interface BulkAnnotateImageResult { | ||
/** Item metadata */ | ||
itemMetadata?: ItemMetadata; | ||
/** | ||
* The item following the operation | ||
* Only returned if operation was successful and if returnEntity flag was on | ||
*/ | ||
item?: FileDescriptor; | ||
} | ||
export interface ItemMetadata { | ||
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */ | ||
id?: string | null; | ||
/** Index of the item within the request array. Allows for correlation between request and response items. */ | ||
originalIndex?: number; | ||
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */ | ||
success?: boolean; | ||
/** Details about the error in case of failure. */ | ||
error?: ApplicationError; | ||
} | ||
export interface BulkActionMetadata { | ||
/** Number of items that were successfully processed. */ | ||
totalSuccesses?: number; | ||
/** Number of items that couldn't be processed. */ | ||
totalFailures?: number; | ||
/** Number of failures without details because detailed failure threshold was exceeded. */ | ||
undetailedFailures?: number; | ||
} | ||
export interface GenerateFilesDownloadUrlRequest { | ||
@@ -649,2 +680,12 @@ /** | ||
} | ||
export interface ImageAnnotationConfigurations { | ||
/** Whether to skip detection for the image */ | ||
skipDetection?: boolean | null; | ||
/** | ||
* A list of detections types to fill for the image | ||
* If specified at least one valid annotation type should be provided | ||
* Default will be all detections | ||
*/ | ||
annotationTypes?: ImageAnnotationType[]; | ||
} | ||
export interface GenerateFileUploadUrlResponse { | ||
@@ -805,20 +846,2 @@ /** The URL for uploading a file to the Media Manager. */ | ||
} | ||
export interface ItemMetadata { | ||
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */ | ||
id?: string | null; | ||
/** Index of the item within the request array. Allows for correlation between request and response items. */ | ||
originalIndex?: number; | ||
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */ | ||
success?: boolean; | ||
/** Details about the error in case of failure. */ | ||
error?: ApplicationError; | ||
} | ||
export interface BulkActionMetadata { | ||
/** Number of items that were successfully processed. */ | ||
totalSuccesses?: number; | ||
/** Number of items that couldn't be processed. */ | ||
totalFailures?: number; | ||
/** Number of failures without details because detailed failure threshold was exceeded. */ | ||
undetailedFailures?: number; | ||
} | ||
export interface ListFilesRequest { | ||
@@ -1005,3 +1028,3 @@ /** | ||
/** | ||
* IDs of the files to move to the Media Manager's trash bin. | ||
* IDs of the draft files to be published. | ||
* | ||
@@ -1030,6 +1053,20 @@ * You can also specify the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`. | ||
filePath?: string | null; | ||
/** Should the response return the item following the operation */ | ||
returnEntity?: boolean; | ||
} | ||
export interface BulkPublishDraftFilesResponse { | ||
files?: FileDescriptor[]; | ||
/** Results of individual items */ | ||
results?: BulkPublishDraftFileResult[]; | ||
/** Metadata of the operation */ | ||
bulkActionMetadata?: BulkActionMetadata; | ||
} | ||
export interface BulkPublishDraftFileResult { | ||
/** Item metadata */ | ||
itemMetadata?: ItemMetadata; | ||
/** | ||
* The item following the operation | ||
* Only returned if operation was successful and if returnEntity flag was on | ||
*/ | ||
item?: FileDescriptor; | ||
} | ||
export interface UpdateFileRequest { | ||
@@ -1036,0 +1073,0 @@ /** |
@@ -69,3 +69,3 @@ "use strict"; | ||
(function (ImageAnnotationType) { | ||
ImageAnnotationType["UNKNOWN_ANNOTATION_TYPE"] = "UNKNOWN_ANNOTATION_TYPE"; | ||
ImageAnnotationType["UNKNOWN_IMAGE_ANNOTATION_TYPE"] = "UNKNOWN_IMAGE_ANNOTATION_TYPE"; | ||
ImageAnnotationType["CONTAINS_TEXT"] = "CONTAINS_TEXT"; | ||
@@ -72,0 +72,0 @@ ImageAnnotationType["IS_ANIMATED"] = "IS_ANIMATED"; |
@@ -104,3 +104,3 @@ "use strict"; | ||
(function (ImageAnnotationType) { | ||
ImageAnnotationType["UNKNOWN_ANNOTATION_TYPE"] = "UNKNOWN_ANNOTATION_TYPE"; | ||
ImageAnnotationType["UNKNOWN_IMAGE_ANNOTATION_TYPE"] = "UNKNOWN_IMAGE_ANNOTATION_TYPE"; | ||
ImageAnnotationType["CONTAINS_TEXT"] = "CONTAINS_TEXT"; | ||
@@ -107,0 +107,0 @@ ImageAnnotationType["IS_ANIMATED"] = "IS_ANIMATED"; |
@@ -26,17 +26,29 @@ import { generateFilesDownloadUrl as publicGenerateFilesDownloadUrl, generateFileDownloadUrl as publicGenerateFileDownloadUrl, getFileDescriptor as publicGetFileDescriptor, getFileDescriptors as publicGetFileDescriptors, updateFileDescriptor as publicUpdateFileDescriptor, generateFileUploadUrl as publicGenerateFileUploadUrl, generateFileResumableUploadUrl as publicGenerateFileResumableUploadUrl, importFile as publicImportFile, bulkImportFiles as publicBulkImportFiles, bulkImportFile as publicBulkImportFile, listFiles as publicListFiles, searchFiles as publicSearchFiles, generateVideoStreamingUrl as publicGenerateVideoStreamingUrl, bulkDeleteFiles as publicBulkDeleteFiles, bulkRestoreFilesFromTrashBin as publicBulkRestoreFilesFromTrashBin, listDeletedFiles as publicListDeletedFiles } from './media-site-media-v1-file-descriptor-files.public'; | ||
export type _publicOnFileDescriptorDeletedType = typeof publicOnFileDescriptorDeleted; | ||
/** */ | ||
/** | ||
* Triggered when a file is deleted. | ||
* | ||
* If the `movedToTrash` property in the event object `true`, the file was moved to the Media Manager's trash bin. If the `movedToTrash` property in the event object is `false`, the file was permanently deleted. | ||
*/ | ||
export declare const onFileDescriptorDeleted: ReturnType<typeof createEventModule<_publicOnFileDescriptorDeletedType>>; | ||
export { publicOnFileDescriptorFileFailed }; | ||
export type _publicOnFileDescriptorFileFailedType = typeof publicOnFileDescriptorFileFailed; | ||
/** */ | ||
/** | ||
* Triggered when a file fails during essential post-upload processing. | ||
*/ | ||
export declare const onFileDescriptorFileFailed: ReturnType<typeof createEventModule<_publicOnFileDescriptorFileFailedType>>; | ||
export { publicOnFileDescriptorFileReady }; | ||
export type _publicOnFileDescriptorFileReadyType = typeof publicOnFileDescriptorFileReady; | ||
/** */ | ||
/** | ||
* Triggered when a file is ready to be used, after any post-upload processing. | ||
* | ||
* This event is also triggred when a file is restored from the Media Manager's trash bin. | ||
*/ | ||
export declare const onFileDescriptorFileReady: ReturnType<typeof createEventModule<_publicOnFileDescriptorFileReadyType>>; | ||
export { publicOnFileDescriptorUpdated }; | ||
export type _publicOnFileDescriptorUpdatedType = typeof publicOnFileDescriptorUpdated; | ||
/** */ | ||
/** | ||
* Triggered when a file is updated, including when a file is moved to a different folder. | ||
*/ | ||
export declare const onFileDescriptorUpdated: ReturnType<typeof createEventModule<_publicOnFileDescriptorUpdatedType>>; | ||
export { MediaType, OperationStatus, State, Namespace, IdentityType, ImageAnnotationType, ContentDisposition, UploadProtocol, SortOrder, RootFolder, StreamFormat, WebhookIdentityType, } from './media-site-media-v1-file-descriptor-files.universal'; | ||
export { FileDescriptor, FileMedia, FileMediaMediaOneOf, ImageMedia, FocalPoint, Colors, Color, ColorRGB, FaceRecognition, VideoResolution, AudioV2, Archive, Model3D, OtherMedia, FontMedia, FontAsset, IdentityInfo, FileReady, ExternalInfo, FileFailed, ApplicationError, DraftFilePublished, BulkAnnotateImagesRequest, BulkAnnotateImagesResponse, GenerateFilesDownloadUrlRequest, GenerateFilesDownloadUrlResponse, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse, DownloadUrl, ServiceError, GetFileDescriptorRequest, GetFileDescriptorResponse, GetFileDescriptorsRequest, GetFileDescriptorsResponse, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, UnsupportedRequestValueError, GenerateFileUploadUrlRequest, GenerateFileUploadUrlResponse, SiteQuotaExceededError, TotalQuota, Plans, Plan, GenerateFileResumableUploadUrlRequest, GenerateFileResumableUploadUrlResponse, ImportFileRequest, ImportFileResponse, BulkImportFilesRequest, BulkImportFilesResponse, BulkImportFileRequest, BulkImportFileResponse, BulkImportFileResult, ItemMetadata, BulkActionMetadata, ListFilesRequest, Sorting, CursorPaging, ListFilesResponse, PagingMetadataV2, Cursors, SearchFilesRequest, SearchFilesResponse, GenerateVideoStreamingUrlRequest, GenerateVideoStreamingUrlResponse, GenerateWebSocketTokenRequest, GenerateWebSocketTokenResponse, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, ListDeletedFilesRequest, ListDeletedFilesResponse, BulkPublishDraftFilesRequest, BulkPublishDraftFilesResponse, UpdateFileRequest, UpdateFileResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, GenerateFilesDownloadUrlResponseNonNullableFields, GenerateFileDownloadUrlResponseNonNullableFields, FileDescriptorNonNullableFields, GetFileDescriptorResponseNonNullableFields, GetFileDescriptorsResponseNonNullableFields, UpdateFileDescriptorResponseNonNullableFields, GenerateFileUploadUrlResponseNonNullableFields, GenerateFileResumableUploadUrlResponseNonNullableFields, ImportFileResponseNonNullableFields, BulkImportFilesResponseNonNullableFields, BulkImportFileResponseNonNullableFields, ListFilesResponseNonNullableFields, SearchFilesResponseNonNullableFields, GenerateVideoStreamingUrlResponseNonNullableFields, ListDeletedFilesResponseNonNullableFields, BaseEventMetadata, EventMetadata, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorUpdatedEnvelope, GenerateFileDownloadUrlOptions, GenerateFileUploadUrlOptions, GenerateFileResumableUploadUrlOptions, ImportFileOptions, BulkImportFileOptions, ListFilesOptions, SearchFilesOptions, GenerateVideoStreamingUrlOptions, BulkDeleteFilesOptions, ListDeletedFilesOptions, } from './media-site-media-v1-file-descriptor-files.universal'; | ||
export { FileDescriptor, FileMedia, FileMediaMediaOneOf, ImageMedia, FocalPoint, Colors, Color, ColorRGB, FaceRecognition, VideoResolution, AudioV2, Archive, Model3D, OtherMedia, FontMedia, FontAsset, IdentityInfo, FileReady, ExternalInfo, FileFailed, ApplicationError, DraftFilePublished, BulkAnnotateImagesRequest, BulkAnnotateImagesResponse, BulkAnnotateImageResult, ItemMetadata, BulkActionMetadata, GenerateFilesDownloadUrlRequest, GenerateFilesDownloadUrlResponse, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse, DownloadUrl, ServiceError, GetFileDescriptorRequest, GetFileDescriptorResponse, GetFileDescriptorsRequest, GetFileDescriptorsResponse, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, UnsupportedRequestValueError, GenerateFileUploadUrlRequest, ImageAnnotationConfigurations, GenerateFileUploadUrlResponse, SiteQuotaExceededError, TotalQuota, Plans, Plan, GenerateFileResumableUploadUrlRequest, GenerateFileResumableUploadUrlResponse, ImportFileRequest, ImportFileResponse, BulkImportFilesRequest, BulkImportFilesResponse, BulkImportFileRequest, BulkImportFileResponse, BulkImportFileResult, ListFilesRequest, Sorting, CursorPaging, ListFilesResponse, PagingMetadataV2, Cursors, SearchFilesRequest, SearchFilesResponse, GenerateVideoStreamingUrlRequest, GenerateVideoStreamingUrlResponse, GenerateWebSocketTokenRequest, GenerateWebSocketTokenResponse, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, ListDeletedFilesRequest, ListDeletedFilesResponse, BulkPublishDraftFilesRequest, BulkPublishDraftFilesResponse, BulkPublishDraftFileResult, UpdateFileRequest, UpdateFileResponse, DomainEvent, DomainEventBodyOneOf, EntityCreatedEvent, RestoreInfo, EntityUpdatedEvent, EntityDeletedEvent, ActionEvent, MessageEnvelope, IdentificationData, IdentificationDataIdOneOf, GenerateFilesDownloadUrlResponseNonNullableFields, GenerateFileDownloadUrlResponseNonNullableFields, FileDescriptorNonNullableFields, GetFileDescriptorResponseNonNullableFields, GetFileDescriptorsResponseNonNullableFields, UpdateFileDescriptorResponseNonNullableFields, GenerateFileUploadUrlResponseNonNullableFields, GenerateFileResumableUploadUrlResponseNonNullableFields, ImportFileResponseNonNullableFields, BulkImportFilesResponseNonNullableFields, BulkImportFileResponseNonNullableFields, ListFilesResponseNonNullableFields, SearchFilesResponseNonNullableFields, GenerateVideoStreamingUrlResponseNonNullableFields, ListDeletedFilesResponseNonNullableFields, BaseEventMetadata, EventMetadata, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorUpdatedEnvelope, GenerateFileDownloadUrlOptions, GenerateFileUploadUrlOptions, GenerateFileResumableUploadUrlOptions, ImportFileOptions, BulkImportFileOptions, ListFilesOptions, SearchFilesOptions, GenerateVideoStreamingUrlOptions, BulkDeleteFilesOptions, ListDeletedFilesOptions, } from './media-site-media-v1-file-descriptor-files.universal'; |
@@ -25,14 +25,26 @@ import { generateFilesDownloadUrl as publicGenerateFilesDownloadUrl, generateFileDownloadUrl as publicGenerateFileDownloadUrl, getFileDescriptor as publicGetFileDescriptor, getFileDescriptors as publicGetFileDescriptors, updateFileDescriptor as publicUpdateFileDescriptor, generateFileUploadUrl as publicGenerateFileUploadUrl, generateFileResumableUploadUrl as publicGenerateFileResumableUploadUrl, importFile as publicImportFile, bulkImportFiles as publicBulkImportFiles, bulkImportFile as publicBulkImportFile, listFiles as publicListFiles, searchFiles as publicSearchFiles, generateVideoStreamingUrl as publicGenerateVideoStreamingUrl, bulkDeleteFiles as publicBulkDeleteFiles, bulkRestoreFilesFromTrashBin as publicBulkRestoreFilesFromTrashBin, listDeletedFiles as publicListDeletedFiles, } from './media-site-media-v1-file-descriptor-files.public'; | ||
export { publicOnFileDescriptorDeleted }; | ||
/** */ | ||
/** | ||
* Triggered when a file is deleted. | ||
* | ||
* If the `movedToTrash` property in the event object `true`, the file was moved to the Media Manager's trash bin. If the `movedToTrash` property in the event object is `false`, the file was permanently deleted. | ||
*/ | ||
export const onFileDescriptorDeleted = createEventModule(publicOnFileDescriptorDeleted); | ||
export { publicOnFileDescriptorFileFailed }; | ||
/** */ | ||
/** | ||
* Triggered when a file fails during essential post-upload processing. | ||
*/ | ||
export const onFileDescriptorFileFailed = createEventModule(publicOnFileDescriptorFileFailed); | ||
export { publicOnFileDescriptorFileReady }; | ||
/** */ | ||
/** | ||
* Triggered when a file is ready to be used, after any post-upload processing. | ||
* | ||
* This event is also triggred when a file is restored from the Media Manager's trash bin. | ||
*/ | ||
export const onFileDescriptorFileReady = createEventModule(publicOnFileDescriptorFileReady); | ||
export { publicOnFileDescriptorUpdated }; | ||
/** */ | ||
/** | ||
* Triggered when a file is updated, including when a file is moved to a different folder. | ||
*/ | ||
export const onFileDescriptorUpdated = createEventModule(publicOnFileDescriptorUpdated); | ||
export { MediaType, OperationStatus, State, Namespace, IdentityType, ImageAnnotationType, ContentDisposition, UploadProtocol, SortOrder, RootFolder, StreamFormat, WebhookIdentityType, } from './media-site-media-v1-file-descriptor-files.universal'; | ||
//# sourceMappingURL=media-site-media-v1-file-descriptor-files.context.js.map |
@@ -265,2 +265,2 @@ import { EventDefinition, HttpClient } from '@wix/sdk-types'; | ||
export declare const onFileDescriptorUpdated: EventDefinition<FileDescriptorUpdatedEnvelope, "wix.media.site_media.v1.file_descriptor_updated">; | ||
export { ActionEvent, ApplicationError, Archive, AudioV2, BaseEventMetadata, BulkActionMetadata, BulkAnnotateImagesRequest, BulkAnnotateImagesResponse, BulkDeleteFilesOptions, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkImportFileOptions, BulkImportFileRequest, BulkImportFileResponse, BulkImportFileResponseNonNullableFields, BulkImportFileResult, BulkImportFilesRequest, BulkImportFilesResponse, BulkImportFilesResponseNonNullableFields, BulkPublishDraftFilesRequest, BulkPublishDraftFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, Color, ColorRGB, Colors, ContentDisposition, CursorPaging, Cursors, DomainEvent, DomainEventBodyOneOf, DownloadUrl, DraftFilePublished, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExternalInfo, FaceRecognition, FileDescriptor, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorNonNullableFields, FileDescriptorUpdatedEnvelope, FileFailed, FileMedia, FileMediaMediaOneOf, FileReady, FocalPoint, FontAsset, FontMedia, GenerateFileDownloadUrlOptions, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse, GenerateFileDownloadUrlResponseNonNullableFields, GenerateFileResumableUploadUrlOptions, GenerateFileResumableUploadUrlRequest, GenerateFileResumableUploadUrlResponse, GenerateFileResumableUploadUrlResponseNonNullableFields, GenerateFileUploadUrlOptions, GenerateFileUploadUrlRequest, GenerateFileUploadUrlResponse, GenerateFileUploadUrlResponseNonNullableFields, GenerateFilesDownloadUrlRequest, GenerateFilesDownloadUrlResponse, GenerateFilesDownloadUrlResponseNonNullableFields, GenerateVideoStreamingUrlOptions, GenerateVideoStreamingUrlRequest, GenerateVideoStreamingUrlResponse, GenerateVideoStreamingUrlResponseNonNullableFields, GenerateWebSocketTokenRequest, GenerateWebSocketTokenResponse, GetFileDescriptorRequest, GetFileDescriptorResponse, GetFileDescriptorResponseNonNullableFields, GetFileDescriptorsRequest, GetFileDescriptorsResponse, GetFileDescriptorsResponseNonNullableFields, IdentificationData, IdentificationDataIdOneOf, IdentityInfo, IdentityType, ImageAnnotationType, ImageMedia, ImportFileOptions, ImportFileRequest, ImportFileResponse, ImportFileResponseNonNullableFields, ItemMetadata, ListDeletedFilesOptions, ListDeletedFilesRequest, ListDeletedFilesResponse, ListDeletedFilesResponseNonNullableFields, ListFilesOptions, ListFilesRequest, ListFilesResponse, ListFilesResponseNonNullableFields, MediaType, MessageEnvelope, Model3D, Namespace, OperationStatus, OtherMedia, PagingMetadataV2, Plan, Plans, RestoreInfo, RootFolder, SearchFilesOptions, SearchFilesRequest, SearchFilesResponse, SearchFilesResponseNonNullableFields, ServiceError, SiteQuotaExceededError, SortOrder, Sorting, State, StreamFormat, TotalQuota, UnsupportedRequestValueError, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, UpdateFileDescriptorResponseNonNullableFields, UpdateFileRequest, UpdateFileResponse, UploadProtocol, VideoResolution, WebhookIdentityType, } from './media-site-media-v1-file-descriptor-files.universal'; | ||
export { ActionEvent, ApplicationError, Archive, AudioV2, BaseEventMetadata, BulkActionMetadata, BulkAnnotateImageResult, BulkAnnotateImagesRequest, BulkAnnotateImagesResponse, BulkDeleteFilesOptions, BulkDeleteFilesRequest, BulkDeleteFilesResponse, BulkImportFileOptions, BulkImportFileRequest, BulkImportFileResponse, BulkImportFileResponseNonNullableFields, BulkImportFileResult, BulkImportFilesRequest, BulkImportFilesResponse, BulkImportFilesResponseNonNullableFields, BulkPublishDraftFileResult, BulkPublishDraftFilesRequest, BulkPublishDraftFilesResponse, BulkRestoreFilesFromTrashBinRequest, BulkRestoreFilesFromTrashBinResponse, Color, ColorRGB, Colors, ContentDisposition, CursorPaging, Cursors, DomainEvent, DomainEventBodyOneOf, DownloadUrl, DraftFilePublished, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventMetadata, ExternalInfo, FaceRecognition, FileDescriptor, FileDescriptorDeletedEnvelope, FileDescriptorFileFailedEnvelope, FileDescriptorFileReadyEnvelope, FileDescriptorNonNullableFields, FileDescriptorUpdatedEnvelope, FileFailed, FileMedia, FileMediaMediaOneOf, FileReady, FocalPoint, FontAsset, FontMedia, GenerateFileDownloadUrlOptions, GenerateFileDownloadUrlRequest, GenerateFileDownloadUrlResponse, GenerateFileDownloadUrlResponseNonNullableFields, GenerateFileResumableUploadUrlOptions, GenerateFileResumableUploadUrlRequest, GenerateFileResumableUploadUrlResponse, GenerateFileResumableUploadUrlResponseNonNullableFields, GenerateFileUploadUrlOptions, GenerateFileUploadUrlRequest, GenerateFileUploadUrlResponse, GenerateFileUploadUrlResponseNonNullableFields, GenerateFilesDownloadUrlRequest, GenerateFilesDownloadUrlResponse, GenerateFilesDownloadUrlResponseNonNullableFields, GenerateVideoStreamingUrlOptions, GenerateVideoStreamingUrlRequest, GenerateVideoStreamingUrlResponse, GenerateVideoStreamingUrlResponseNonNullableFields, GenerateWebSocketTokenRequest, GenerateWebSocketTokenResponse, GetFileDescriptorRequest, GetFileDescriptorResponse, GetFileDescriptorResponseNonNullableFields, GetFileDescriptorsRequest, GetFileDescriptorsResponse, GetFileDescriptorsResponseNonNullableFields, IdentificationData, IdentificationDataIdOneOf, IdentityInfo, IdentityType, ImageAnnotationConfigurations, ImageAnnotationType, ImageMedia, ImportFileOptions, ImportFileRequest, ImportFileResponse, ImportFileResponseNonNullableFields, ItemMetadata, ListDeletedFilesOptions, ListDeletedFilesRequest, ListDeletedFilesResponse, ListDeletedFilesResponseNonNullableFields, ListFilesOptions, ListFilesRequest, ListFilesResponse, ListFilesResponseNonNullableFields, MediaType, MessageEnvelope, Model3D, Namespace, OperationStatus, OtherMedia, PagingMetadataV2, Plan, Plans, RestoreInfo, RootFolder, SearchFilesOptions, SearchFilesRequest, SearchFilesResponse, SearchFilesResponseNonNullableFields, ServiceError, SiteQuotaExceededError, SortOrder, Sorting, State, StreamFormat, TotalQuota, UnsupportedRequestValueError, UpdateFileDescriptorRequest, UpdateFileDescriptorResponse, UpdateFileDescriptorResponseNonNullableFields, UpdateFileRequest, UpdateFileResponse, UploadProtocol, VideoResolution, WebhookIdentityType, } from './media-site-media-v1-file-descriptor-files.universal'; |
@@ -475,5 +475,7 @@ export interface FileDescriptor { | ||
overwrite?: boolean | null; | ||
/** Should the response return the item following the operation */ | ||
returnEntity?: boolean; | ||
} | ||
export declare enum ImageAnnotationType { | ||
UNKNOWN_ANNOTATION_TYPE = "UNKNOWN_ANNOTATION_TYPE", | ||
UNKNOWN_IMAGE_ANNOTATION_TYPE = "UNKNOWN_IMAGE_ANNOTATION_TYPE", | ||
CONTAINS_TEXT = "CONTAINS_TEXT", | ||
@@ -487,5 +489,34 @@ IS_ANIMATED = "IS_ANIMATED", | ||
export interface BulkAnnotateImagesResponse { | ||
/** The updated file info */ | ||
files?: FileDescriptor[]; | ||
/** Results of individual items */ | ||
results?: BulkAnnotateImageResult[]; | ||
/** Metadata of the operation */ | ||
bulkActionMetadata?: BulkActionMetadata; | ||
} | ||
export interface BulkAnnotateImageResult { | ||
/** Item metadata */ | ||
itemMetadata?: ItemMetadata; | ||
/** | ||
* The item following the operation | ||
* Only returned if operation was successful and if returnEntity flag was on | ||
*/ | ||
item?: FileDescriptor; | ||
} | ||
export interface ItemMetadata { | ||
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */ | ||
id?: string | null; | ||
/** Index of the item within the request array. Allows for correlation between request and response items. */ | ||
originalIndex?: number; | ||
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */ | ||
success?: boolean; | ||
/** Details about the error in case of failure. */ | ||
error?: ApplicationError; | ||
} | ||
export interface BulkActionMetadata { | ||
/** Number of items that were successfully processed. */ | ||
totalSuccesses?: number; | ||
/** Number of items that couldn't be processed. */ | ||
totalFailures?: number; | ||
/** Number of failures without details because detailed failure threshold was exceeded. */ | ||
undetailedFailures?: number; | ||
} | ||
export interface GenerateFilesDownloadUrlRequest { | ||
@@ -649,2 +680,12 @@ /** | ||
} | ||
export interface ImageAnnotationConfigurations { | ||
/** Whether to skip detection for the image */ | ||
skipDetection?: boolean | null; | ||
/** | ||
* A list of detections types to fill for the image | ||
* If specified at least one valid annotation type should be provided | ||
* Default will be all detections | ||
*/ | ||
annotationTypes?: ImageAnnotationType[]; | ||
} | ||
export interface GenerateFileUploadUrlResponse { | ||
@@ -805,20 +846,2 @@ /** The URL for uploading a file to the Media Manager. */ | ||
} | ||
export interface ItemMetadata { | ||
/** Item ID. Should always be available, unless it's impossible (for example, when failing to create an item). */ | ||
id?: string | null; | ||
/** Index of the item within the request array. Allows for correlation between request and response items. */ | ||
originalIndex?: number; | ||
/** Whether the requested action was successful for this item. When `false`, the `error` field is populated. */ | ||
success?: boolean; | ||
/** Details about the error in case of failure. */ | ||
error?: ApplicationError; | ||
} | ||
export interface BulkActionMetadata { | ||
/** Number of items that were successfully processed. */ | ||
totalSuccesses?: number; | ||
/** Number of items that couldn't be processed. */ | ||
totalFailures?: number; | ||
/** Number of failures without details because detailed failure threshold was exceeded. */ | ||
undetailedFailures?: number; | ||
} | ||
export interface ListFilesRequest { | ||
@@ -1005,3 +1028,3 @@ /** | ||
/** | ||
* IDs of the files to move to the Media Manager's trash bin. | ||
* IDs of the draft files to be published. | ||
* | ||
@@ -1030,6 +1053,20 @@ * You can also specify the files' Wix media URLs. For example, `["wix:image://v1/0abec0_b291a9349a0b4da59067f76287e386fb~mv2.jpg/leon.jpg#originWidth=3024&originHeight=4032"]`. | ||
filePath?: string | null; | ||
/** Should the response return the item following the operation */ | ||
returnEntity?: boolean; | ||
} | ||
export interface BulkPublishDraftFilesResponse { | ||
files?: FileDescriptor[]; | ||
/** Results of individual items */ | ||
results?: BulkPublishDraftFileResult[]; | ||
/** Metadata of the operation */ | ||
bulkActionMetadata?: BulkActionMetadata; | ||
} | ||
export interface BulkPublishDraftFileResult { | ||
/** Item metadata */ | ||
itemMetadata?: ItemMetadata; | ||
/** | ||
* The item following the operation | ||
* Only returned if operation was successful and if returnEntity flag was on | ||
*/ | ||
item?: FileDescriptor; | ||
} | ||
export interface UpdateFileRequest { | ||
@@ -1036,0 +1073,0 @@ /** |
@@ -66,3 +66,3 @@ export var MediaType; | ||
(function (ImageAnnotationType) { | ||
ImageAnnotationType["UNKNOWN_ANNOTATION_TYPE"] = "UNKNOWN_ANNOTATION_TYPE"; | ||
ImageAnnotationType["UNKNOWN_IMAGE_ANNOTATION_TYPE"] = "UNKNOWN_IMAGE_ANNOTATION_TYPE"; | ||
ImageAnnotationType["CONTAINS_TEXT"] = "CONTAINS_TEXT"; | ||
@@ -69,0 +69,0 @@ ImageAnnotationType["IS_ANIMATED"] = "IS_ANIMATED"; |
@@ -78,3 +78,3 @@ import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error'; | ||
(function (ImageAnnotationType) { | ||
ImageAnnotationType["UNKNOWN_ANNOTATION_TYPE"] = "UNKNOWN_ANNOTATION_TYPE"; | ||
ImageAnnotationType["UNKNOWN_IMAGE_ANNOTATION_TYPE"] = "UNKNOWN_IMAGE_ANNOTATION_TYPE"; | ||
ImageAnnotationType["CONTAINS_TEXT"] = "CONTAINS_TEXT"; | ||
@@ -81,0 +81,0 @@ ImageAnnotationType["IS_ANIMATED"] = "IS_ANIMATED"; |
{ | ||
"name": "@wix/media_files", | ||
"version": "1.0.67", | ||
"version": "1.0.68", | ||
"publishConfig": { | ||
@@ -49,3 +49,3 @@ "registry": "https://registry.npmjs.org/", | ||
}, | ||
"falconPackageHash": "951d00f88e6d5964f6e848edc2bac78fb85dba2286f13a27167d975e" | ||
"falconPackageHash": "41036ca3f0e158ad8f7362484a3c12a78f683928649a0ed9aad4e104" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
1199420
22794