import {Extension, HttpMethod, IServiceCall, SessionRequirement} from "@chaosinsight/portalclient" import type {IPortalResponse} from "../index" export default class EZSearchDefinition extends Extension { protected readonly extensionName = "EZSearchDefinition" public getGet(): IServiceCall> { return this.call("Get", null, HttpMethod.Get, SessionRequirement.basic) } } export interface IEZSearchDefinition { Fields: IEZSearchDefinitionField[] } export interface IEZSearchDefinitionField { DisplayName: string IsSortable: boolean Type: string } Extension.add(EZSearchDefinition, "ezSearchDefinition") declare module "@chaosinsight/portalclient" { interface ExtensionHandler { ezSearchDefinition: EZSearchDefinition } }