import { Course, CourseType } from "./course";

export type TypeFormule =
  | 'UNITAIRE'
  | 'CHAMP_X'
  | 'CHAMP_TOTAL'
  | 'FORMULE_COMPLETE';


  export interface RapportDetail {
  id: number;
  libelle: string;
  rapport: number;
  nombreGagnants: number;
  massePartageeRang: number;
  gainsFormule: string;
}


export interface Formule {
  id: number;
  gains: string;
  typePari: CourseType;
  typeFormule: TypeFormule;
  masseInitiale: number;
  masseApresPrelevements: number;
  masseFinale: number;
  totalPari: number;
  totalGagnants: number;
  rapportsDetails: RapportDetail[];
}


export interface ResultatCagnotte {
  id: number;
  course: Course;
  montantCagnotte: number;
  montantARembourser: number;
  dateCalcul: string;
  formules: Formule[];
}
