import { ScheduledJobMisfirePolicy } from '@n8n/constants'; import type { ScheduledJobKind, RecurringCronUnit } from '@n8n/constants'; import { WithTimestamps } from './abstract-entity'; export { ScheduledJobKind, ScheduledJobKindList } from '@n8n/constants'; export { ScheduledJobMisfirePolicy, ScheduledJobOwnerType } from '@n8n/constants'; export declare class ScheduledJob extends WithTimestamps { id: number; name: string; ownerType: string; ownerId: string; ownerMemberId: string | null; taskType: string; payload: Record; kind: ScheduledJobKind; cronExpression: string | null; timezone: string | null; intervalSeconds: number | null; fireAt: Date | null; recurrenceUnit: RecurringCronUnit | null; recurrenceSize: number | null; enabled: boolean; nextRunAt: Date | null; lastFiredAt: Date | null; maxAttempts: number; timeoutSeconds: number; concurrencyLimit: number | null; misfirePolicy: ScheduledJobMisfirePolicy; misfireGraceSeconds: number; orphanedAt: Date | null; } export interface ScheduledJobOwner { ownerType: string; ownerId: string; ownerMemberId: string | null; } export type ScheduledJobOwnerRef = Pick;