import { JobStatus } from './types'; export declare class JobEntity { id: string; /** * Job type, primarily to be used for Processor to * only process jobs it is in charge of. */ method: string; /** * Identifier that groups together all (re)schedules of the same job */ thread: string; /** * Identifiers that group together all jobs/threads that share a common concern * such as a client they call, category of activity, etc. * Searchable field, unlike params. */ labels: string[]; /** * Parameters of the job that will be given to its handler. * Searching for jobs based on params is not possible. */ params: TParams; /** * Result of the job's execution containing data specific for that job type */ resultData?: TResultData | { err: unknown; }; /** * Status of the job. */ status?: JobStatus; /** * Job will not be processed before this time. Should be as close to this time as possible * but no guarantees are provided. */ runAfter: Date; created: Date; updated: Date; }