import { buildProcessorFunction } from '../build_processor_function' ; import { query , dateHistogram , topHits } from '../request_processors/annotations' ; import type { AnnotationSearchRequest , AnnotationsRequestProcessorsFunction , AnnotationsRequestProcessorsParams , } from '../request_processors/annotations/types' ; export function buildAnnotationRequest ( params ) { const processor = buildProcessorFunction < AnnotationsRequestProcessorsFunction , AnnotationsRequestProcessorsParams , AnnotationSearchRequest > ( [ query , dateHistogram , topHits ] , params ) ; return processor ( { } ) ; }