import { Course } from './course';

export type ReportStatut = 'Validé' | 'Non Validé' | 'En attente';
export type CourseCloseStatut = 'Clôturée' | 'Ouverte';

export interface CourseReportSummary {
  id: string; // same as course id
  course: Course; // full course reference; the course must be CLOSED
  statut: ReportStatut;
  confirmed?: boolean; // when true, report is locked (no further edits)
}

export interface CourseReportDetailRow {
  typeGain: string; // e.g., QUINTE ORDRE
  typeJeu: string; // e.g., Quinte+
  montant: number; // amount per winning ticket
  nombre: number; // number of winners
  statut: 'Validée' | 'Non Validée';
  distributed?: boolean;
  externe?: boolean;
}

export interface CourseReportDetail {
  summary: CourseReportSummary;
  rows: CourseReportDetailRow[];
}
