import { Client, UploadProgress } from '../client'; import { Visibility } from '../enums/visibility'; export declare class Storage { client: Client; constructor(client: Client); /** * * @param {string} params.search - * @throws {RevenexxException} * @returns {Promise<{}>} */ assetIndex(params?: { search?: string; }): Promise<{}>; /** * * @param {string} search - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ assetIndex(search?: string): Promise<{}>; /** * * @param {string} params.file - * @param {string} params.altText - * @param {string} params.description - * @param {string} params.displayName - * @param {string} params.folderId - * @param {boolean} params.keepArchive - * @param {string[]} params.tags - * @param {boolean} params.unpack - Archives only: unpack the members after upload (see AssetController). * @param {Visibility} params.visibility - * @throws {RevenexxException} * @returns {Promise<{}>} */ assetStore(params: { file: string; altText?: string; description?: string; displayName?: string; folderId?: string; keepArchive?: boolean; tags?: string[]; unpack?: boolean; visibility?: Visibility; onProgress?: (progress: UploadProgress) => void; }): Promise<{}>; /** * * @param {string} file - * @param {string} altText - * @param {string} description - * @param {string} displayName - * @param {string} folderId - * @param {boolean} keepArchive - * @param {string[]} tags - * @param {boolean} unpack - Archives only: unpack the members after upload (see AssetController). * @param {Visibility} visibility - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ assetStore(file: string, altText?: string, description?: string, displayName?: string, folderId?: string, keepArchive?: boolean, tags?: string[], unpack?: boolean, visibility?: Visibility, onProgress?: (progress: UploadProgress) => void): Promise<{}>; /** * * @param {string} params.folderId - * @param {string} params.visibility - * @throws {RevenexxException} * @returns {Promise<{}>} */ assetBulk(params?: { folderId?: string; visibility?: string; }): Promise<{}>; /** * * @param {string} folderId - * @param {string} visibility - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ assetBulk(folderId?: string, visibility?: string): Promise<{}>; /** * * @param {string} params.id - * @throws {RevenexxException} * @returns {Promise<{}>} */ assetDestroy(params: { id: string; }): Promise<{}>; /** * * @param {string} id - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ assetDestroy(id: string): Promise<{}>; /** * * @param {string} params.id - * @throws {RevenexxException} * @returns {Promise<{}>} */ assetShow(params: { id: string; }): Promise<{}>; /** * * @param {string} id - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ assetShow(id: string): Promise<{}>; /** * * @param {string} params.id - * @param {string} params.altText - * @param {string} params.description - * @param {string} params.displayName - * @param {string} params.folderId - * @param {string} params.name - * @param {string[]} params.tags - * @param {Visibility} params.visibility - * @throws {RevenexxException} * @returns {Promise<{}>} */ assetUpdate(params: { id: string; altText?: string; description?: string; displayName?: string; folderId?: string; name?: string; tags?: string[]; visibility?: Visibility; }): Promise<{}>; /** * * @param {string} id - * @param {string} altText - * @param {string} description - * @param {string} displayName - * @param {string} folderId - * @param {string} name - * @param {string[]} tags - * @param {Visibility} visibility - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ assetUpdate(id: string, altText?: string, description?: string, displayName?: string, folderId?: string, name?: string, tags?: string[], visibility?: Visibility): Promise<{}>; /** * * @param {string} params.id - * @throws {RevenexxException} * @returns {Promise<{}>} */ assetDownload(params: { id: string; }): Promise<{}>; /** * * @param {string} id - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ assetDownload(id: string): Promise<{}>; /** * * @param {string} params.id - * @throws {RevenexxException} * @returns {Promise<{}>} */ assetPermanent(params: { id: string; }): Promise<{}>; /** * * @param {string} id - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ assetPermanent(id: string): Promise<{}>; /** * * @param {string} params.id - * @throws {RevenexxException} * @returns {Promise<{}>} */ assetReprocess(params: { id: string; }): Promise<{}>; /** * * @param {string} id - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ assetReprocess(id: string): Promise<{}>; /** * * @param {string} params.id - * @throws {RevenexxException} * @returns {Promise<{}>} */ assetRestore(params: { id: string; }): Promise<{}>; /** * * @param {string} id - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ assetRestore(id: string): Promise<{}>; /** * * @param {string} params.id - * @param {number} params.ttlSeconds - * @throws {RevenexxException} * @returns {Promise<{}>} */ assetSign(params: { id: string; ttlSeconds?: number; }): Promise<{}>; /** * * @param {string} id - * @param {number} ttlSeconds - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ assetSign(id: string, ttlSeconds?: number): Promise<{}>; /** * * @param {string} params.id - * @param {boolean} params.keepArchive - * @param {string} params.targetFolderId - * @throws {RevenexxException} * @returns {Promise<{}>} */ assetUnpack(params: { id: string; keepArchive?: boolean; targetFolderId?: string; }): Promise<{}>; /** * * @param {string} id - * @param {boolean} keepArchive - * @param {string} targetFolderId - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ assetUnpack(id: string, keepArchive?: boolean, targetFolderId?: string): Promise<{}>; /** * * @throws {RevenexxException} * @returns {Promise<{}>} */ folderIndex(): Promise<{}>; /** * * @param {string} params.name - * @param {string} params.parentId - * @throws {RevenexxException} * @returns {Promise<{}>} */ folderStore(params: { name: string; parentId?: string; }): Promise<{}>; /** * * @param {string} name - * @param {string} parentId - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ folderStore(name: string, parentId?: string): Promise<{}>; /** * * @param {string} params.id - * @param {boolean} params.recursive - * @throws {RevenexxException} * @returns {Promise<{}>} */ folderDestroy(params: { id: string; recursive?: boolean; }): Promise<{}>; /** * * @param {string} id - * @param {boolean} recursive - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ folderDestroy(id: string, recursive?: boolean): Promise<{}>; /** * * @param {string} params.id - * @throws {RevenexxException} * @returns {Promise<{}>} */ folderShow(params: { id: string; }): Promise<{}>; /** * * @param {string} id - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ folderShow(id: string): Promise<{}>; /** * * @param {string} params.id - * @param {string} params.name - * @param {string} params.parentId - * @throws {RevenexxException} * @returns {Promise<{}>} */ folderUpdate(params: { id: string; name?: string; parentId?: string; }): Promise<{}>; /** * * @param {string} id - * @param {string} name - * @param {string} parentId - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ folderUpdate(id: string, name?: string, parentId?: string): Promise<{}>; /** * * @throws {RevenexxException} * @returns {Promise<{}>} */ syncRuleIndex(): Promise<{}>; /** * * @throws {RevenexxException} * @returns {Promise<{}>} */ syncRuleStore(): Promise<{}>; /** * * @param {string} params.id - * @throws {RevenexxException} * @returns {Promise<{}>} */ syncRuleDestroy(params: { id: string; }): Promise<{}>; /** * * @param {string} id - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ syncRuleDestroy(id: string): Promise<{}>; /** * * @param {string} params.id - * @throws {RevenexxException} * @returns {Promise<{}>} */ syncRuleShow(params: { id: string; }): Promise<{}>; /** * * @param {string} id - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ syncRuleShow(id: string): Promise<{}>; /** * * @param {string} params.id - * @throws {RevenexxException} * @returns {Promise<{}>} */ syncRuleUpdate(params: { id: string; }): Promise<{}>; /** * * @param {string} id - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ syncRuleUpdate(id: string): Promise<{}>; /** * * @param {string} params.id - * @throws {RevenexxException} * @returns {Promise<{}>} */ syncRuleRun(params: { id: string; }): Promise<{}>; /** * * @param {string} id - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ syncRuleRun(id: string): Promise<{}>; /** * * @param {string} params.id - * @param {string} params.runId - * @throws {RevenexxException} * @returns {Promise<{}>} */ syncRuleRunProtocol(params: { id: string; runId: string; }): Promise<{}>; /** * * @param {string} id - * @param {string} runId - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ syncRuleRunProtocol(id: string, runId: string): Promise<{}>; /** * * @param {string} params.ruleId - * @param {string} params.from - * @param {string} params.to - * @throws {RevenexxException} * @returns {Promise<{}>} */ syncRuleHistory(params?: { ruleId?: string; from?: string; to?: string; }): Promise<{}>; /** * * @param {string} ruleId - * @param {string} from - * @param {string} to - * @throws {RevenexxException} * @returns {Promise<{}>} * @deprecated Use the object parameter style method for a better developer experience. */ syncRuleHistory(ruleId?: string, from?: string, to?: string): Promise<{}>; /** * * @throws {RevenexxException} * @returns {Promise<{}>} */ tenantStats(): Promise<{}>; /** * * @throws {RevenexxException} * @returns {Promise<{}>} */ tenantUsage(): Promise<{}>; }