Skip to content

Commit

Permalink
Create new types for project excel export
Browse files Browse the repository at this point in the history
  • Loading branch information
krishnareddy-tadi authored and Pl217 committed Apr 11, 2022
1 parent bb9d12e commit c6aa673
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/db/models/job.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const JOB_STATUS = {
export const JOB_TYPE = {
confirmableCommand: null,
locationImport: null,
projectExcelGeneration: null,
projectPdfGeneration: null,
};

Expand All @@ -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,
Expand All @@ -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,
]);
Expand Down

0 comments on commit c6aa673

Please sign in to comment.