import { ElasticsearchQueryBuilderOperatorPlugin } from "~/plugins/definition/ElasticsearchQueryBuilderOperatorPlugin" ; import { ElasticsearchBoolQueryConfig , ElasticsearchQueryBuilderArgsPlugin } from "~/types" ; export class ElasticsearchQueryBuilderOperatorGreaterThanOrEqualToPlugin extends ElasticsearchQueryBuilderOperatorPlugin { public name = "elasticsearch.queryBuilder.operator.greaterThanOrEqualTo.default" ; public getOperator ( ) { return "gte" ; } public apply ( query , params ) { const { value , basePath } = params ; query . must . push ( { range : { [ basePath ] : { gte : value } } } ) ; } }