import { EtatDemandeRecue } from "./absence"
import { Departements } from "./etablissement"
import { BinaryQuestion } from "./trajet"

export enum TraiteStatut {
  Valide = 'valide',
  Rejete = 'non_valide'
}
export enum DriverAbsenceStatus {
  EnCours = EtatDemandeRecue.EnCours,
  NonTraite = EtatDemandeRecue.NonTraite,
  Valide = TraiteStatut.Valide,
  Rejete = TraiteStatut.Rejete
}

export interface IDriverAbsence {
  id: string
  chauffeur: string
  typeAbsence: string
  dateDebut: string
  dateFin: string
  chauffeurAffecte: BinaryQuestion
  modeReception: string
  department:Departements
  nombreHeures:string
  autorisePar:string
  validePar?:string
  statut: DriverAbsenceStatus
  justificatif?: string
}