23 lines
510 B
TypeScript
23 lines
510 B
TypeScript
// TODO is this even used? either remove or it must be within racing domain
|
|
|
|
export interface GetLeagueStandingsUseCase {
|
|
execute(leagueId: string): Promise<LeagueStandingsViewModel>;
|
|
}
|
|
|
|
export interface StandingItemViewModel {
|
|
id: string;
|
|
leagueId: string;
|
|
seasonId: string;
|
|
driverId: string;
|
|
position: number;
|
|
points: number;
|
|
wins: number;
|
|
podiums: number;
|
|
racesCompleted: number;
|
|
}
|
|
|
|
export interface LeagueStandingsViewModel {
|
|
leagueId: string;
|
|
standings: StandingItemViewModel[];
|
|
}
|