api client refactor
This commit is contained in:
18
apps/website/lib/dtos/RaceResultDto.ts
Normal file
18
apps/website/lib/dtos/RaceResultDto.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* Race result data transfer object
|
||||
* Represents a driver's result in a race
|
||||
*/
|
||||
export interface RaceResultDto {
|
||||
id: string;
|
||||
raceId: string;
|
||||
driverId: string;
|
||||
driverName: string;
|
||||
avatarUrl: string;
|
||||
position: number;
|
||||
startPosition: number;
|
||||
incidents: number;
|
||||
fastestLap: number;
|
||||
positionChange: number;
|
||||
isPodium: boolean;
|
||||
isClean: boolean;
|
||||
}
|
||||
Reference in New Issue
Block a user