/** This is spectacularly generated code by spectacular based on Qlik Cloud Services APIs */ import Auth from '../auth/auth.js'; import type { Config } from '../types/types.js'; export type BundleMeta = { /** Description of the bundle. */ description?: string; /** Unique identifier of the bundle. */ id?: string; /** Name of the bundle. */ name?: string; [key: string]: any; }; /** The extension model. @param author - Author of the extension. @param bundle - Object containing meta data regarding the bundle the extension belongs to. If it does not belong to a bundle, this object is not defined. @param bundled - If the extension is part of an extension bundle. @param checksum - Checksum of the extension contents. @param createdAt - @param dependencies - Map of dependencies describing version of the component it requires. @param deprecated - A date noting when the extension was deprecated. @param description - Description of the extension. @param file - The file that was uploaded with the extension. @param homepage - Home page of the extension. @param icon - Icon to show in the client. @param id - @param keywords - Keywords for the extension. @param license - Under which license this extension is published. @param loadpath - Relative path to the extension's entry file, defaults to `filename` from the qext file. @param name - The display name of this extension. @param preview - Path to an image that enables users to preview the extension. @param qextFilename - The name of the qext file that was uploaded with this extension. @param qextVersion - The version from the qext file that was uploaded with this extension. @param repository - Link to the extension source code. @param supernova - If the extension is a supernova extension or not. @param supplier - Supplier of the extension. @param tags - List of tags. @param tenantId - @param type - The type of this extension (visualization, etc.). @param updateAt - @param userId - @param version - Version of the extension. @param auth - Auth object used to make requests */ export declare class Extension { auth: Auth; author?: string; bundle?: BundleMeta; bundled?: boolean; checksum?: string; createdAt?: string; dependencies?: object; deprecated?: string; description?: string; file?: object; homepage?: string; icon?: string; id?: string; keywords?: string; license?: string; loadpath?: string; name?: string; preview?: string; qextFilename?: string; qextVersion?: string; repository?: string; supernova?: boolean; supplier?: string; tags?: Array; tenantId?: string; type?: string; updateAt?: string; userId?: string; version?: string; [key: string]: any; constructor({ author, bundle, bundled, checksum, createdAt, dependencies, deprecated, description, file, homepage, icon, id, keywords, license, loadpath, name, preview, qextFilename, qextVersion, repository, supernova, supplier, tags, tenantId, type, updateAt, userId, version, ...rest }: { author?: string; bundle?: BundleMeta; bundled?: boolean; checksum?: string; createdAt?: string; dependencies?: object; deprecated?: string; description?: string; file?: object; homepage?: string; icon?: string; id?: string; keywords?: string; license?: string; loadpath?: string; name?: string; preview?: string; qextFilename?: string; qextVersion?: string; repository?: string; supernova?: boolean; supplier?: string; tags?: Array; tenantId?: string; type?: string; updateAt?: string; userId?: string; version?: string; }, auth?: Auth); /** Downloads a file from the extension archive. @param filepath - Path to the file archive for the specified extension archive. Folders separated with forward slashes. */ getFileByFilepath(filepath: string): Promise; /** Downloads the extension as an archive. */ getFile(): Promise; /** Deletes a specific extension. */ delete(): Promise; /** Updates a specific extension with provided data. If a file is provided, the data field is not required. @param data - @param file - Extension archive. */ patch(data?: ExtensionDef, file?: Buffer): Promise; } export type ExtensionDef = { /** Author of the extension. */ author?: string; /** Object containing meta data regarding the bundle the extension belongs to. If it does not belong to a bundle, this object is not defined. */ bundle?: BundleMeta; /** If the extension is part of an extension bundle. */ bundled?: boolean; /** Checksum of the extension contents. */ checksum?: string; /** Map of dependencies describing version of the component it requires. */ dependencies?: object; /** A date noting when the extension was deprecated. */ deprecated?: string; /** Description of the extension. */ description?: string; /** The file that was uploaded with the extension. */ file?: object; /** Home page of the extension. */ homepage?: string; /** Icon to show in the client. */ icon?: string; /** Keywords for the extension. */ keywords?: string; /** Under which license this extension is published. */ license?: string; /** Relative path to the extension's entry file, defaults to `filename` from the qext file. */ loadpath?: string; /** The display name of this extension. */ name?: string; /** Path to an image that enables users to preview the extension. */ preview?: string; /** The name of the qext file that was uploaded with this extension. */ qextFilename?: string; /** The version from the qext file that was uploaded with this extension. */ qextVersion?: string; /** Link to the extension source code. */ repository?: string; /** If the extension is a supernova extension or not. */ supernova?: boolean; /** Supplier of the extension. */ supplier?: string; /** List of tags. */ tags?: Array; /** The type of this extension (visualization, etc.). */ type?: string; /** Version of the extension. */ version?: string; [key: string]: any; }; /** @param data - @param auth - Auth object used to make requests */ export declare class ExtensionsClass { auth: Auth; data?: Array; [key: string]: any; constructor({ data, ...rest }: { data?: Array; }, auth?: Auth); } export declare class Extensions { auth: Auth; config: Config; constructor(config: Config | Auth); /** Returns a specific extension. @param id - Extension identifier or its qextFilename. */ get(id: string): Promise; /** Lists all extensions. */ getExtensions(): Promise; /** Creates a new extension. If a file is provided, the data field is not required. @param data - @param file - Extension archive. */ create(data?: ExtensionDef, file?: Buffer): Promise; }