team rating
This commit is contained in:
26
core/racing/application/use-cases/IDriverStatsUseCase.ts
Normal file
26
core/racing/application/use-cases/IDriverStatsUseCase.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
/**
|
||||
* Application Use Case Interface: IDriverStatsUseCase
|
||||
*
|
||||
* Use case for computing detailed driver statistics from race results and standings.
|
||||
* This is an application layer concern that orchestrates domain data.
|
||||
*/
|
||||
|
||||
export interface DriverStats {
|
||||
rating: number;
|
||||
safetyRating: number;
|
||||
sportsmanshipRating: number;
|
||||
totalRaces: number;
|
||||
wins: number;
|
||||
podiums: number;
|
||||
dnfs: number;
|
||||
avgFinish: number;
|
||||
bestFinish: number;
|
||||
worstFinish: number;
|
||||
consistency: number;
|
||||
experienceLevel: string;
|
||||
overallRank: number | null;
|
||||
}
|
||||
|
||||
export interface IDriverStatsUseCase {
|
||||
getDriverStats(driverId: string): Promise<DriverStats | null>;
|
||||
}
|
||||
Reference in New Issue
Block a user