/**
 * Filtered Races Page Data DTO
 *
 * API response for filtered races page data with status, time, and league filters.
 * Used when the API supports filtering parameters.
 */

export interface FilteredRacesPageDataDTO {
  races: FilteredRacesPageDataRaceDTO[];
  totalCount: number;
  scheduledRaces: FilteredRacesPageDataRaceDTO[];
  runningRaces: FilteredRacesPageDataRaceDTO[];
  completedRaces: FilteredRacesPageDataRaceDTO[];
  filters: {
    statuses: { value: string; label: string }[];
    leagues: { id: string; name: string }[];
    timeFilters: { value: string; label: string }[];
  };
}

export interface FilteredRacesPageDataRaceDTO {
  id: string;
  track: string;
  car: string;
  scheduledAt: string;
  status: 'scheduled' | 'running' | 'completed' | 'cancelled';
  sessionType: string;
  leagueId?: string;
  leagueName?: string;
  strengthOfField?: number;
  isUpcoming: boolean;
  isLive: boolean;
  isPast: boolean;
}