import { getFilterableOsdTypeNames } from '../../osd_field_types' ; import { IFieldType } from './types' ; const filterableTypes = getFilterableOsdTypeNames ( ) ; export function isFilterable ( field ) { return ( field . name === '_id' || field . scripted || Boolean ( field . searchable && filterableTypes . includes ( field . type ) ) ) ; } export function isNestedField ( field ) { return ! ! field . subType ?. nested ; }