import { omit , get } from 'lodash' ; import { Filter } from './meta_filter' ; export * from './build_filters' ; export * from './custom_filter' ; export * from './exists_filter' ; export * from './geo_bounding_box_filter' ; export * from './geo_polygon_filter' ; export * from './get_display_value' ; export * from './get_filter_field' ; export * from './get_filter_params' ; export * from './get_index_pattern_from_filter' ; export * from './match_all_filter' ; export * from './meta_filter' ; export * from './missing_filter' ; export * from './phrase_filter' ; export * from './phrases_filter' ; export * from './query_string_filter' ; export * from './range_filter' ; export * from './types' ; param { object } filter returns { object } export const cleanFilter = ( filter ) : Filter => omit ( filter , [ 'meta' , '$state' ] ) as Filter ; export const isFilterDisabled = ( filter ) : boolean => get ( filter , 'meta.disabled' , false ) ;