import { Hippodrome } from './hippodrome';
import { Reunion } from './reunion';

export enum CourseType {
  GAGNANT = 'GAGNANT',
  PLACE = 'PLACE',
  JUMELE_GAGNANT = 'JUMELE_GAGNANT',
  JUMELE_PLACE = "JUMELE_PLACE",
  JUMELE_ORDRE = "JUMELE_ORDRE",
  TRIO = "TRIO",
  TRIO_ORDRE = "TRIO_ORDRE",
  TRIPLET = "TRIPLET",
  QUATRO = "QUATRO",
  QUINTE = "QUINTE"
}

export enum CourseStatut {
  BROUILLON = 'BROUILLON',
  VALIDE = 'VALIDE',
  OUVERT = 'OUVERT',
  FERME = 'FERME',
  RESULTAT_PROVISOIRE = 'RESULTAT_PROVISOIRE',
  RESULTAT_OFFICIEL = 'RESULTAT_OFFICIEL',
  REGLEE = 'REGLEE',
  ANNULEE = 'ANNULEE'
}

export enum ResultatStatut {
  NONE = 'NONE',
  NON_GENERE = 'NON_GENERE',
  CREATED = 'CREATED',
  VALIDATED = 'VALIDATED',
  CONFIRMED = 'CONFIRMED',
}

export interface Course {
  id: string;
  hippodrome: Hippodrome | undefined;
  reunionNumero: number;
  reunionDate: string;
  nom: string;
  numero: number;
  heureDepartPrevue: string;
  discipline: string;
  distanceMetres: number;
  categorie: string;
  nombrePartants: number;
  statut: string;
  annulee: boolean;
  reporteeMemeJour: boolean;
  reporteeAutreJour: boolean;
  incidentTechnique: boolean;
  nonPartants: Array<unknown>;
  typesParisOuverts: Array<string>
}
