UNPKG

@netgrif/components-core

Version:

Netgrif Application engine frontend core Angular library

25 lines (24 loc) 1.27 kB
import { Operator } from './operator'; import { Moment } from 'moment'; import { Query } from '../query/query'; import { Operators } from './operators'; /** * Range operator for indexed fields that store a date in timestamp format. * * Will create a range query that matches every timestamp from the midnight of the first day (included) * to the midnight of the day after the second day (excluded). */ export declare class InRangeDate extends Operator<Moment> { constructor(); /** * Creates a query as specified by the [classes]{@link InRangeDate} documentation. * See [super.createQuery()]{@link Operator#createQuery} for more information. * @param elasticKeywords keywords of the fields that should be queried. * If more than one is provided then queries for every keyword will be generated and combined with an OR operator. * @param args start and end date for the range. Any time information will be ignored use {@link InRangeDateTime} * if you want a date time query instead. The two dates must be in ascending order, if not the behavior is undefined. */ createQuery(elasticKeywords: Array<string>, args: Array<Moment>): Query; getOperatorNameTemplate(): Array<string>; serialize(): Operators | string; }