@prefecthq/prefect-ui-library
Version:
This library is the Vue and Typescript component library for [Prefect 2](https://github.com/PrefectHQ/prefect) and [Prefect Cloud 2](https://www.prefect.io/cloud/). _The components and utilities in this project are not meant to be used independently_.
28 lines (27 loc) • 838 B
TypeScript
import { ISchedule } from '../models';
import { IntervalScheduleResponse } from '../models/api/ScheduleResponse';
export type Intervals = {
seconds: number;
minutes: number;
hours: number;
days: number;
};
export interface IIntervalSchedule extends ISchedule {
interval: number;
timezone: string | null;
anchorDate: Date | null;
getIntervals?: () => Intervals;
}
export declare class IntervalSchedule implements IIntervalSchedule {
timezone: string | null;
interval: number;
anchorDate: Date | null;
constructor(schedule: Pick<IIntervalSchedule, 'interval' | 'timezone' | 'anchorDate'>);
get raw(): number;
getIntervals(): Intervals;
toString({ verbose, neat }?: {
neat?: boolean;
verbose?: boolean;
}): string;
toResponse(): IntervalScheduleResponse;
}