mirror of
https://github.com/C9Glax/tranga-website.git
synced 2025-06-15 16:27:54 +02:00
Add Job-Interface (and ProgressToken)
This commit is contained in:
16
Website/modules/interfaces/IJob.tsx
Normal file
16
Website/modules/interfaces/IJob.tsx
Normal 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;
|
||||
}
|
10
Website/modules/interfaces/IProgressToken.tsx
Normal file
10
Website/modules/interfaces/IProgressToken.tsx
Normal 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;
|
||||
}
|
Reference in New Issue
Block a user