24 lines
615 B
TypeScript
24 lines
615 B
TypeScript
export type LeagueDTO = {
|
|
id: string;
|
|
name: string;
|
|
description: string;
|
|
ownerId: string;
|
|
settings: {
|
|
pointsSystem: 'f1-2024' | 'indycar' | 'custom';
|
|
sessionDuration?: number;
|
|
qualifyingFormat?: 'single-lap' | 'open';
|
|
customPoints?: Record<number, number>;
|
|
maxDrivers?: number;
|
|
};
|
|
createdAt: string;
|
|
socialLinks?: {
|
|
discordUrl?: string;
|
|
youtubeUrl?: string;
|
|
websiteUrl?: string;
|
|
};
|
|
/**
|
|
* Number of active driver slots currently used in this league.
|
|
* Populated by capacity-aware queries such as GetAllLeaguesWithCapacityQuery.
|
|
*/
|
|
usedSlots?: number;
|
|
}; |