From a91df8d6ccab77284dff905ebbac8c29bcf6cc9f Mon Sep 17 00:00:00 2001 From: Bilal Catic Date: Fri, 14 Feb 2020 21:07:10 +0100 Subject: [PATCH] add interface file --- backend/src/interfaces/index.ts | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 backend/src/interfaces/index.ts diff --git a/backend/src/interfaces/index.ts b/backend/src/interfaces/index.ts new file mode 100644 index 0000000..c8b5ebe --- /dev/null +++ b/backend/src/interfaces/index.ts @@ -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[] +}