team rating
This commit is contained in:
22
core/racing/application/use-cases/ITeamRankingUseCase.ts
Normal file
22
core/racing/application/use-cases/ITeamRankingUseCase.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* Application Use Case Interface: ITeamRankingUseCase
|
||||
*
|
||||
* Use case for computing team rankings from rating snapshots.
|
||||
* This is an application layer concern that orchestrates domain data.
|
||||
*/
|
||||
|
||||
export interface TeamRanking {
|
||||
teamId: string;
|
||||
teamName: string;
|
||||
drivingRating: number;
|
||||
adminTrustRating: number;
|
||||
overallRating: number;
|
||||
eventCount: number;
|
||||
lastUpdated: Date;
|
||||
overallRank: number | null;
|
||||
}
|
||||
|
||||
export interface ITeamRankingUseCase {
|
||||
getAllTeamRankings(): Promise<TeamRanking[]>;
|
||||
getTeamRanking(teamId: string): Promise<TeamRanking | null>;
|
||||
}
|
||||
Reference in New Issue
Block a user