Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,19 @@ export const validateChildren = {
legacyEndpointID: schema.maybe(schema.string()),
}),
};

/**
* Used to validate GET requests for 'entities'
*/
export const validateEntities = {
query: schema.object({
/**
* Return the process entities related to the document w/ the matching `_id`.
*/
_id: schema.string(),
/**
* Indices to search in.
*/
indices: schema.arrayOf(schema.string()),
}),
};
5 changes: 5 additions & 0 deletions x-pack/plugins/security_solution/common/endpoint/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,11 @@ export interface EndpointEvent {

export type ResolverEvent = EndpointEvent | LegacyEndpointEvent;

/**
* The response body for the resolver '/entity' index API
*/
export type ResolverEntityIndex = Array<{ entity_id: string }>;

/**
* Takes a @kbn/config-schema 'schema' type and returns a type that represents valid inputs.
* Similar to `TypeOf`, but allows strings as input for `schema.number()` (which is inline
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import { useAlertListSelector } from '../../hooks/use_alerts_selector';
import * as selectors from '../../../store/selectors';
import { MetadataPanel } from './metadata_panel';
import { FormattedDate } from '../../formatted_date';
import { AlertDetailResolver } from '../../resolver';
import { ResolverEvent } from '../../../../../common/endpoint/types';
import { TakeActionDropdown } from './take_action_dropdown';
import { urlFromQueryParams } from '../../url_from_query_params';

Expand Down Expand Up @@ -65,12 +63,11 @@ const AlertDetailsOverviewComponent = memo(() => {
content: (
<>
<EuiSpacer />
<AlertDetailResolver selectedEvent={(alertDetailsData as unknown) as ResolverEvent} />
</>
),
},
];
}, [alertDetailsData]);
}, []);

/* eslint-disable-next-line react-hooks/rules-of-hooks */
const activeTab = useMemo(
Expand Down

This file was deleted.

Loading