26 lines
553 B
TypeScript
26 lines
553 B
TypeScript
import { ViewData } from '@/lib/contracts/view-data/ViewData';
|
|
|
|
/**
|
|
* LeagueScheduleViewData - Pure ViewData for LeagueScheduleTemplate
|
|
* Contains only raw serializable data, no methods or computed properties
|
|
*/
|
|
|
|
export interface ScheduleRaceData {
|
|
id: string;
|
|
name: string;
|
|
track: string;
|
|
car: string;
|
|
scheduledAt: string;
|
|
status: string;
|
|
}
|
|
|
|
|
|
export interface LeagueScheduleViewData extends ViewData {
|
|
leagueId: string;
|
|
races: ScheduleRaceData[];
|
|
seasons: Array<{
|
|
seasonId: string;
|
|
name: string;
|
|
status: string;
|
|
}>;
|
|
} |