@adaptabletools/adaptable
Version:
Powerful AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
23 lines (22 loc) • 1.13 kB
TypeScript
import { Schedule, Weekday } from '../../../AdaptableState/Common/Schedule';
export type ScheduleRecurrencePreset = 'daily' | 'weekdays' | 'selectedDays' | 'monthly' | 'custom';
export declare function buildCronExpression(preset: ScheduleRecurrencePreset, hour: number, minute: number, options?: {
days?: Weekday[];
dayOfMonth?: number;
customExpression?: string;
}): string;
export declare function buildRunAtIso(date: string, hour: number, minute: number): string;
export declare function parseTimeFromSchedule(schedule: Schedule): {
hour: number;
minute: number;
};
export declare function inferPresetFromCron(cronExpression?: string): {
preset: ScheduleRecurrencePreset;
days: Weekday[];
dayOfMonth: number;
};
export declare function parseOneOffDateFromRunAt(runAt?: string): string;
export declare function getNextRunDateFromSchedule(schedule: Schedule): Date | null;
export declare function isScheduleValid(schedule: Schedule): true | string;
export declare function getScheduleDescription(schedule: Schedule): string;
export declare function isValidCronExpression(expression: string): boolean;