import type { EntryNested } from '@kbn/securitysolution-io-ts-list-types' ; import { NESTED , NESTED_FIELD } from '../../constants.mock' ; import { getEntryMatchExcludeMock , getEntryMatchMock } from './entry_match.mock' ; import { getEntryMatchAnyExcludeMock , getEntryMatchAnyMock } from './entry_match_any.mock' ; import { getEntryExistsMock } from './entry_exists.mock' ; export const getEntryNestedMock = ( ) : EntryNested => ( { entries : [ getEntryMatchMock ( ) , getEntryMatchAnyMock ( ) ] , field : NESTED_FIELD , type : NESTED , } ) ; export const getEntryNestedExcludeMock = ( ) : EntryNested => ( { ... getEntryNestedMock ( ) , entries : [ getEntryMatchExcludeMock ( ) , getEntryMatchAnyExcludeMock ( ) ] , } ) ; export const getEntryNestedMixedEntries = ( ) : EntryNested => ( { ... getEntryNestedMock ( ) , entries : [ getEntryMatchMock ( ) , getEntryMatchAnyExcludeMock ( ) , getEntryExistsMock ( ) ] , } ) ;