import {Extension, HttpMethod, IServiceCall, SessionRequirement} from "@chaosinsight/portalclient" export default class EZDownload extends Extension { protected readonly extensionName = "EZDownload" public get(fileId: number): IServiceCall { return this.call("Get", {fileId}, HttpMethod.Get, SessionRequirement.basic) } } Extension.add(EZDownload, "ezDownload") declare module "@chaosinsight/portalclient" { interface ExtensionHandler { ezDownload: EZDownload } }