import * as estypes from '@elastic/elasticsearch/lib/api/typesWithBodyKey' ; /**
 * Types that are no longer registered and need to be removed
 */ export const REMOVED_TYPES = [ 'apm-services-telemetry' , 'background-session' , 'cases-sub-case' , 'file-upload-telemetry' , 'fleet-agent-events' , 'fleet-agents' , 'fleet-agent-actions' , 'fleet-enrollment-api-keys' , 'ml-telemetry' , 'server' , 'tsvb-validation-telemetry' , 'osquery-usage-metric' , 'timelion-sheet' , ] . sort ( ) ; export const excludeUnusedTypesQuery = { bool : { must_not : [ ... REMOVED_TYPES . map ( ( typeName ) => ( { term : { type : typeName , } , } ) ) , { bool : { must : [ { match : { type : 'search-session' , } , } , { match : { 'search-session.persisted' : false , } , } , ] , } , } , ] , } , } ;