32 lines
787 B
TypeScript
32 lines
787 B
TypeScript
/**
|
|
* ViewData for LeagueSummary
|
|
* This is the JSON-serializable input for the Template.
|
|
*/
|
|
export interface LeagueSummaryViewData {
|
|
id: string;
|
|
name: string;
|
|
description: string | null;
|
|
logoUrl: string | null;
|
|
ownerId: string;
|
|
createdAt: string;
|
|
maxDrivers: number;
|
|
usedDriverSlots: number;
|
|
activeDriversCount?: number;
|
|
nextRaceAt?: string;
|
|
maxTeams?: number;
|
|
usedTeamSlots?: number;
|
|
structureSummary: string;
|
|
scoringPatternSummary?: string;
|
|
timingSummary: string;
|
|
category?: string | null;
|
|
scoring?: {
|
|
gameId: string;
|
|
gameName: string;
|
|
primaryChampionshipType: 'driver' | 'team' | 'nations' | 'trophy';
|
|
scoringPresetId: string;
|
|
scoringPresetName: string;
|
|
dropPolicySummary: string;
|
|
scoringPatternSummary: string;
|
|
};
|
|
}
|