import { Workgroup } from "./workgroup"; export enum DecisionSupportFileStatus { Draft = "draft", Ready = "ready", Voted = "voted", Closed = "closed", } export interface DecisionSupportFileSection { name: string } // aka Dossier d'aide à la décision export interface DecisionSupportFile { id: string title: string sections: {[name: string]: any} status: DecisionSupportFileStatus workgroup?: Workgroup, createdAt: Date votedAt?: Date closedAt?: Date } export function newDecisionSupportFile(): DecisionSupportFile { return { id: '', title: '', sections: {}, status: DecisionSupportFileStatus.Draft, workgroup: null, createdAt: new Date(), }; }