eui icon indicating copy to clipboard operation
eui copied to clipboard

[SearchBar] Export common `search_bar/query` types

Open PhaedrusTheGreek opened this issue 3 years ago • 0 comments

It is possible to supply a custom options.fieldValuesToQuery to Query.toESQuery, however much of the types required to work with that function are not exported from @elastic/eui:

Specifically,

import {
  AST,
  OperatorType,
  Value,
} from '@elastic/eui/src/components/search_bar/query/ast';
import { QueryContainer } from '@elastic/eui/src/components/search_bar/query/ast_to_es_query_dsl';
import { printIso8601 } from '@elastic/eui/src/components/search_bar/query/date_format';
import {
  dateValue,
  DateValue,
  isDateValue,
} from '@elastic/eui/src/components/search_bar/query/date_value';
import { isDateLike } from '@elastic/eui/src/services/predicate';

PhaedrusTheGreek avatar Sep 07 '22 17:09 PhaedrusTheGreek