Add Job-Interface (and ProgressToken)

This commit is contained in:
2024-10-18 19:45:04 +02:00
parent ac8ca1f886
commit dbad993c7a
3 changed files with 129 additions and 0 deletions

View File

@ -0,0 +1,16 @@
import IMangaConnector from "./IMangaConnector";
import IProgressToken from "./IProgressToken";
export default interface IJob{
jobType: number;
mangaInternalId: string;
translatedLanguage: string;
progressToken: IProgressToken;
recurring: boolean;
recurrenceTime: string;
lastExecution: Date;
nextExecution: Date;
id: string;
parentJobId: string | null;
mangaConnector: IMangaConnector;
}

View File

@ -0,0 +1,10 @@
export default interface IProgressToken{
cancellationRequested: boolean;
increments: number;
incrementsCompleted: number;
progress: number;
lastUpdate: Date;
executionStarted: Date;
timeRemaining: Date;
state: number;
}