From 3f7875b519bd53945b271ad4229df849f161c003 Mon Sep 17 00:00:00 2001 From: Matthew Kime Date: Mon, 2 Aug 2021 05:12:05 -0500 Subject: [PATCH] [discover] remove IFieldType references (#107237) * remove IFieldType references * remove IFieldType references Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../doc_table/components/table_header/table_header.test.tsx | 6 +++--- .../application/embeddable/saved_search_embeddable.tsx | 4 ++-- src/plugins/discover/public/kibana_services.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/plugins/discover/public/application/angular/doc_table/components/table_header/table_header.test.tsx b/src/plugins/discover/public/application/angular/doc_table/components/table_header/table_header.test.tsx index 85980ab96b647..48ea7ffc46384 100644 --- a/src/plugins/discover/public/application/angular/doc_table/components/table_header/table_header.test.tsx +++ b/src/plugins/discover/public/application/angular/doc_table/components/table_header/table_header.test.tsx @@ -11,7 +11,7 @@ import { mountWithIntl } from '@kbn/test/jest'; import { TableHeader } from './table_header'; import { findTestSubject } from '@elastic/eui/lib/test'; import { SortOrder } from './helpers'; -import { IndexPattern, IFieldType } from '../../../../../kibana_services'; +import { IndexPattern, IndexPatternField } from '../../../../../kibana_services'; function getMockIndexPattern() { return ({ @@ -29,7 +29,7 @@ function getMockIndexPattern() { aggregatable: false, searchable: true, sortable: true, - } as IFieldType; + } as IndexPatternField; } else { return { name, @@ -38,7 +38,7 @@ function getMockIndexPattern() { aggregatable: false, searchable: true, sortable: false, - } as IFieldType; + } as IndexPatternField; } }, } as unknown) as IndexPattern; diff --git a/src/plugins/discover/public/application/embeddable/saved_search_embeddable.tsx b/src/plugins/discover/public/application/embeddable/saved_search_embeddable.tsx index c885cb92e7649..098c7f55fbd9f 100644 --- a/src/plugins/discover/public/application/embeddable/saved_search_embeddable.tsx +++ b/src/plugins/discover/public/application/embeddable/saved_search_embeddable.tsx @@ -22,7 +22,7 @@ import { Query, TimeRange, Filter, - IFieldType, + IndexPatternField, IndexPattern, ISearchSource, } from '../../../../data/common'; @@ -50,7 +50,7 @@ export interface SearchProps extends Partial { sharedItemTitle?: string; inspectorAdapters?: Adapters; - filter?: (field: IFieldType, value: string[], operator: string) => void; + filter?: (field: IndexPatternField, value: string[], operator: string) => void; hits?: ElasticSearchHit[]; totalHitCount?: number; onMoveColumn?: (column: string, index: number) => void; diff --git a/src/plugins/discover/public/kibana_services.ts b/src/plugins/discover/public/kibana_services.ts index c2ab4ae34c958..366656cc60ffb 100644 --- a/src/plugins/discover/public/kibana_services.ts +++ b/src/plugins/discover/public/kibana_services.ts @@ -101,7 +101,7 @@ export { IIndexPattern, IndexPattern, indexPatterns, - IFieldType, + IndexPatternField, ISearchSource, EsQuerySortValue, SortDirection,