51 lines
1.1 KiB
TypeScript
51 lines
1.1 KiB
TypeScript
import { ViewData } from "../contracts/view-data/ViewData";
|
|
|
|
|
|
export interface StewardingViewData extends ViewData {
|
|
leagueId: string;
|
|
totalPending: number;
|
|
totalResolved: number;
|
|
totalPenalties: number;
|
|
races: Array<{
|
|
id: string;
|
|
track: string;
|
|
scheduledAt: string; // ISO string
|
|
pendingProtests: Array<{
|
|
id: string;
|
|
protestingDriverId: string;
|
|
accusedDriverId: string;
|
|
incident: {
|
|
lap: number;
|
|
description: string;
|
|
};
|
|
filedAt: string; // ISO string
|
|
status: string;
|
|
proofVideoUrl?: string;
|
|
decisionNotes?: string;
|
|
}>;
|
|
resolvedProtests: Array<{
|
|
id: string;
|
|
protestingDriverId: string;
|
|
accusedDriverId: string;
|
|
incident: {
|
|
lap: number;
|
|
description: string;
|
|
};
|
|
filedAt: string; // ISO string
|
|
status: string;
|
|
proofVideoUrl?: string;
|
|
decisionNotes?: string;
|
|
}>;
|
|
penalties: Array<{
|
|
id: string;
|
|
driverId: string;
|
|
type: string;
|
|
value: number;
|
|
reason: string;
|
|
}>;
|
|
}>;
|
|
drivers: Array<{
|
|
id: string;
|
|
name: string;
|
|
}>;
|
|
} |