add interface file
This commit is contained in:
26
backend/src/interfaces/index.ts
Normal file
26
backend/src/interfaces/index.ts
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
export interface ExportJob {
|
||||||
|
bookId: string,
|
||||||
|
type: string,
|
||||||
|
state: string,
|
||||||
|
created_at: Date,
|
||||||
|
updated_at: Date
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ImportJob {
|
||||||
|
bookId: string,
|
||||||
|
type: string,
|
||||||
|
url: string,
|
||||||
|
state: string,
|
||||||
|
created_at: Date,
|
||||||
|
updated_at: Date
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ExportJobsList {
|
||||||
|
pending: ExportJob[],
|
||||||
|
finished: ExportJob[],
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface ImportJobsList {
|
||||||
|
pending: ImportJob[],
|
||||||
|
finished: ImportJob[]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user