/** * Defines allowed recurrence types including Daily, Weekly, Monthly, Yearly. * @internal */ export declare enum RecurrenceType { MINUTES = "Minutes", HOURLY = "Hourly", DAILY = "Daily", WEEKLY = "Weekly", MONTHLY = "Monthly", YEARLY = "Yearly" } /** @internal */ export declare enum WeekType { WEEK = "Week", WORK_WEEK = "Work week" } /** @internal */ export declare enum DateOrDay { DATE = "Date", DAY_OF_MONTH = "Day of month" } /** @internal */ export declare const daysOfWeek: { value: string; label: string; }[]; /** @internal */ export declare const weekNumber: { value: string; label: string; }[]; /** @internal */ export declare const months: { value: string; label: string; }[]; export declare const MAX_MONTHS = 12; export declare const MAX_DAYS = 31; export declare const CRON_LENGTH = 6; export declare const MAX_WEEK_DAYS = 7; export declare const MAX_HOURS = 24; export declare const MAX_MINS_SEC = 60; export declare const MAX_WEEK_NUMBER = 4; export declare const MAX_MINUTE_RECURRENCE = 30; export declare enum CronBuilderEvents { updateCronConfig = "update-cron-config" } export type CronBuilderEventDetailMap = { [CronBuilderEvents.updateCronConfig]: DailyConfig | WeeklyConfig | MonthlyConfig | YearlyConfig; }; export type baseConfig = { frequency?: string; hours?: string; minutes?: string; seconds?: string; }; export type MonthlyDateDay = { type: DateOrDay.DATE; dayDate: string; } | { type: DateOrDay.DAY_OF_MONTH; day: string; weekNumber: string; }; export type YearlyDateDay = { type: DateOrDay.DATE; month: string; dayDate: string; } | { type: DateOrDay.DAY_OF_MONTH; month: string; day: string; weekNumber: string; }; export type HourlyConfig = baseConfig & { type: RecurrenceType.HOURLY; during?: 'every_hour' | 'specific_hours'; }; export type MinutesConfig = Omit & { type: RecurrenceType.MINUTES; during?: 'every_hour' | 'specific_hours'; }; export type DailyConfig = { type: RecurrenceType.DAILY; weekType: WeekType; } & baseConfig; export type WeeklyConfig = { type: RecurrenceType.WEEKLY; selectedDays: Set; } & baseConfig; export type MonthlyConfig = { type: RecurrenceType.MONTHLY; dateOrDay: MonthlyDateDay; } & baseConfig; export type YearlyConfig = { type: RecurrenceType.YEARLY; dateOrDay: YearlyDateDay; } & baseConfig; export type CronConfig = MinutesConfig | HourlyConfig | DailyConfig | WeeklyConfig | MonthlyConfig | YearlyConfig; //# sourceMappingURL=types.d.ts.map