import { JobState } from './JobState'; /** Represents the base job without arguments or a result. */ export interface IJobBase { /** Gets or sets a unique identifier of the entity. */ id: number; /** Gets or sets the time when the job was added to the database. */ createdAt: Date; /** Gets or sets the time when the job was last edited. */ updatedAt?: Date; /** Gets or sets the earliest time when the job should be done. */ dueDate: Date; /** Gets or sets the current state of the job. */ state: JobState; /** Gets or sets the type of the job. */ type: string; /** Gets or sets thename of the runner that executed the job. */ runner?: string; /** Gets or sets the time the job took to finish. */ processingTimeMs?: number; /** Gets or sets the amount of items the job must process. */ totalItems?: number; /** Gets or sets the amount of items that were successfully processed. */ successfulItems?: number; /** Gets or sets the amount of items that failed processing. */ failedItems?: number; }