@netgrif/components-core
Version:
Netgrif Application engine frontend core Angular library
25 lines (24 loc) • 1.33 kB
TypeScript
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 time in timestamp format.
*
* Will create a range query that matches every timestamp from the 0th millisecond of the first date time object (included)
* to the 0th millisecond of the next minute after the minute in the second date time object (excluded).
*/
export declare class InRangeDateTime 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. If you want to ignore the time information use {@link InRangeDate}
* Operator instead. The two date time objects 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;
}