blob: a61cb5937a0b352dba44a4214079c91bb89e47ce [file] [log] [blame]
import { QueryObject } from './Query';
export type TimeRange = {
/** Time range of the query [from, to] */
time_range?: string;
since?: string;
until?: string;
};
export type TimeColumnConfigKey =
| '__time_col'
| '__time_grain'
| '__time_range'
| '__time_origin'
| '__granularity';
export type AppliedTimeExtras = Partial<Record<TimeColumnConfigKey, keyof QueryObject>>;
export type TimeRangeEndpoint = 'unknown' | 'inclusive' | 'exclusive';
export type TimeRangeEndpoints = [TimeRangeEndpoint, TimeRangeEndpoint];