diff --git a/x-pack/legacy/plugins/siem/public/components/event_details/columns.tsx b/x-pack/legacy/plugins/siem/public/components/event_details/columns.tsx index 52d62d9100f19..4d341e633644b 100644 --- a/x-pack/legacy/plugins/siem/public/components/event_details/columns.tsx +++ b/x-pack/legacy/plugins/siem/public/components/event_details/columns.tsx @@ -28,7 +28,7 @@ import * as i18n from './translations'; import { OverflowField } from '../tables/helpers'; import { DATE_FIELD_TYPE, MESSAGE_FIELD_NAME } from '../timeline/body/renderers/constants'; import { EVENT_DURATION_FIELD_NAME } from '../duration'; -import { EventFieldsData } from './event_fields_browser'; +import { EventFieldsData } from './types'; const HoverActionsContainer = styled(EuiPanel)` align-items: center; diff --git a/x-pack/legacy/plugins/siem/public/components/event_details/event_fields_browser.tsx b/x-pack/legacy/plugins/siem/public/components/event_details/event_fields_browser.tsx index 8642b473b0744..e8be940fe831d 100644 --- a/x-pack/legacy/plugins/siem/public/components/event_details/event_fields_browser.tsx +++ b/x-pack/legacy/plugins/siem/public/components/event_details/event_fields_browser.tsx @@ -12,7 +12,7 @@ import * as React from 'react'; import { pure } from 'recompose'; import { sortBy } from 'lodash'; -import { BrowserFields, getAllFieldsByName, BrowserField } from '../../containers/source'; +import { BrowserFields, getAllFieldsByName } from '../../containers/source'; import { DetailItem } from '../../graphql/types'; import { OnUpdateColumns } from '../timeline/events'; @@ -28,8 +28,6 @@ interface Props { timelineId: string; } -export type EventFieldsData = BrowserField & DetailItem; - /** Renders a table view or JSON view of the `ECS` `data` */ export const EventFieldsBrowser = pure( ({ browserFields, data, eventId, isLoading, onUpdateColumns, timelineId }) => { diff --git a/x-pack/legacy/plugins/siem/public/components/event_details/types.ts b/x-pack/legacy/plugins/siem/public/components/event_details/types.ts new file mode 100644 index 0000000000000..4e351fcdf98e4 --- /dev/null +++ b/x-pack/legacy/plugins/siem/public/components/event_details/types.ts @@ -0,0 +1,10 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License; + * you may not use this file except in compliance with the Elastic License. + */ + +import { BrowserField } from '../../containers/source'; +import { DetailItem } from '../../graphql/types'; + +export type EventFieldsData = BrowserField & DetailItem; diff --git a/x-pack/legacy/plugins/siem/server/lib/events/elasticsearch_adapter.ts b/x-pack/legacy/plugins/siem/server/lib/events/elasticsearch_adapter.ts index b60eba8f50ecf..33c5b28393b9f 100644 --- a/x-pack/legacy/plugins/siem/server/lib/events/elasticsearch_adapter.ts +++ b/x-pack/legacy/plugins/siem/server/lib/events/elasticsearch_adapter.ts @@ -31,7 +31,7 @@ import { baseCategoryFields } from '../../utils/beat_schema/8.0.0'; import { reduceFields } from '../../utils/build_query/reduce_fields'; import { mergeFieldsWithHit, inspectStringifyObject } from '../../utils/build_query'; import { eventFieldsMap } from '../ecs_fields'; -import { FrameworkAdapter, FrameworkRequest, RequestOptions } from '../framework'; +import { FrameworkAdapter, FrameworkRequest, RequestOptionsPaginated } from '../framework'; import { TermAggregation } from '../types'; import { buildDetailsQuery, buildQuery, buildTimelineQuery } from './query.dsl';