UNPKG

dsl-builder

Version:

OpenSearch Query Builder - Extract from OpenSearch Dashboards

23 lines (22 loc) 594 B
import { FieldSpec, IFieldSubType, IndexPattern } from '../..'; export interface IFieldType { name: string; type: string; script?: string; lang?: string; count?: number; esTypes?: string[]; aggregatable?: boolean; filterable?: boolean; searchable?: boolean; sortable?: boolean; visualizable?: boolean; readFromDocValues?: boolean; scripted?: boolean; subType?: IFieldSubType; displayName?: string; format?: any; toSpec?: (options?: { getFormatterForField?: IndexPattern['getFormatterForField']; }) => FieldSpec; }