44 lines
974 B
TypeScript
44 lines
974 B
TypeScript
import type { PenaltyType, PenaltyStatus } from '../../domain/entities/Penalty';
|
|
|
|
export interface RacePenaltyViewModel {
|
|
id: string;
|
|
raceId: string;
|
|
driverId: string;
|
|
driverName: string;
|
|
type: PenaltyType;
|
|
value?: number;
|
|
reason: string;
|
|
protestId?: string;
|
|
issuedBy: string;
|
|
issuedByName: string;
|
|
status: PenaltyStatus;
|
|
description: string;
|
|
issuedAt: string;
|
|
appliedAt?: string;
|
|
notes?: string;
|
|
}
|
|
|
|
export interface RacePenaltiesViewModel {
|
|
penalties: RacePenaltyViewModel[];
|
|
}
|
|
|
|
export interface IRacePenaltiesPresenter {
|
|
present(
|
|
penalties: Array<{
|
|
id: string;
|
|
raceId: string;
|
|
driverId: string;
|
|
type: PenaltyType;
|
|
value?: number;
|
|
reason: string;
|
|
protestId?: string;
|
|
issuedBy: string;
|
|
status: PenaltyStatus;
|
|
issuedAt: Date;
|
|
appliedAt?: Date;
|
|
notes?: string;
|
|
getDescription(): string;
|
|
}>,
|
|
driverMap: Map<string, string>
|
|
): RacePenaltiesViewModel;
|
|
} |