wip league admin tools
This commit is contained in:
26
apps/website/lib/view-models/ProtestDetailViewModel.ts
Normal file
26
apps/website/lib/view-models/ProtestDetailViewModel.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import { ProtestDriverViewModel } from './ProtestDriverViewModel';
|
||||
import { ProtestViewModel } from './ProtestViewModel';
|
||||
import { RaceViewModel } from './RaceViewModel';
|
||||
|
||||
export type PenaltyTypeOptionViewModel = {
|
||||
type: string;
|
||||
label: string;
|
||||
description: string;
|
||||
requiresValue: boolean;
|
||||
valueLabel: string;
|
||||
defaultValue: number;
|
||||
};
|
||||
|
||||
export type ProtestDetailViewModel = {
|
||||
protest: ProtestViewModel;
|
||||
race: RaceViewModel;
|
||||
protestingDriver: ProtestDriverViewModel;
|
||||
accusedDriver: ProtestDriverViewModel;
|
||||
penaltyTypes: PenaltyTypeOptionViewModel[];
|
||||
defaultReasons: {
|
||||
upheld: string;
|
||||
dismissed: string;
|
||||
};
|
||||
initialPenaltyType: string | null;
|
||||
initialPenaltyValue: number;
|
||||
};
|
||||
Reference in New Issue
Block a user