From c6aa673f84aa2070f4978a5ec6563e190f540610 Mon Sep 17 00:00:00 2001 From: "krishnareddy.tadi" Date: Tue, 8 Mar 2022 14:55:46 +0530 Subject: [PATCH] Create new types for project excel export --- src/db/models/job.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/db/models/job.ts b/src/db/models/job.ts index 2a6bba78..baf6f601 100644 --- a/src/db/models/job.ts +++ b/src/db/models/job.ts @@ -21,6 +21,7 @@ export const JOB_STATUS = { export const JOB_TYPE = { confirmableCommand: null, locationImport: null, + projectExcelGeneration: null, projectPdfGeneration: null, }; @@ -45,6 +46,11 @@ export const JOB_METADATA_PROJECT_PDF = t.partial({ files: t.array(PDF_FILE_RECORD), }); +export const JOB_METADATA_PROJECT_EXCEL = t.partial({ + startedBy: PARTICIPANT_ID, + fileName: t.string, +}); + const JOB_METADATA_CONFIRMABLE_ADMIN_COMMAND = t.type({ requester: PARTICIPANT_ID, command: t.string, @@ -53,6 +59,7 @@ const JOB_METADATA_CONFIRMABLE_ADMIN_COMMAND = t.type({ const JOB_METADATA = t.union([ JOB_METADATA_LOCATION_IMPORT, + JOB_METADATA_PROJECT_EXCEL, JOB_METADATA_PROJECT_PDF, JOB_METADATA_CONFIRMABLE_ADMIN_COMMAND, ]);