team rating
This commit is contained in:
15
core/racing/application/ports/ITeamRaceResultsProvider.ts
Normal file
15
core/racing/application/ports/ITeamRaceResultsProvider.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { TeamDrivingRaceFactsDto } from '../../domain/services/TeamDrivingRatingEventFactory';
|
||||
|
||||
/**
|
||||
* Port: ITeamRaceResultsProvider
|
||||
*
|
||||
* Provides race results for teams from the racing context.
|
||||
* This is a port that adapts the racing domain data to the rating system.
|
||||
*/
|
||||
export interface ITeamRaceResultsProvider {
|
||||
/**
|
||||
* Get race results for teams
|
||||
* Returns team race facts needed for rating calculations
|
||||
*/
|
||||
getTeamRaceResults(raceId: string): Promise<TeamDrivingRaceFactsDto | null>;
|
||||
}
|
||||
Reference in New Issue
Block a user