21 lines
590 B
TypeScript
21 lines
590 B
TypeScript
import type { Standing } from '../../domain/entities/Standing';
|
|
import type { Presenter } from '@core/shared/presentation/Presenter';
|
|
|
|
export interface StandingItemViewModel {
|
|
driverId: string;
|
|
driver: { id: string; name: string };
|
|
points: number;
|
|
rank: number;
|
|
}
|
|
|
|
export interface LeagueStandingsViewModel {
|
|
standings: StandingItemViewModel[];
|
|
}
|
|
|
|
export interface LeagueStandingsResultDTO {
|
|
standings: Standing[];
|
|
drivers: { id: string; name: string }[];
|
|
}
|
|
|
|
export interface ILeagueStandingsPresenter
|
|
extends Presenter<LeagueStandingsResultDTO, LeagueStandingsViewModel> {} |