view data fixes
This commit is contained in:
38
apps/website/lib/view-data/LeagueViewData.ts
Normal file
38
apps/website/lib/view-data/LeagueViewData.ts
Normal file
@@ -0,0 +1,38 @@
|
||||
import { ViewData } from "../contracts/view-data/ViewData";
|
||||
|
||||
export interface LeagueViewData extends ViewData {
|
||||
id: string;
|
||||
name: string;
|
||||
game: string;
|
||||
tier: 'premium' | 'standard' | 'starter';
|
||||
season: string;
|
||||
description: string;
|
||||
drivers: number;
|
||||
races: number;
|
||||
completedRaces: number;
|
||||
totalImpressions: number;
|
||||
avgViewsPerRace: number;
|
||||
engagement: number;
|
||||
rating: number;
|
||||
seasonStatus: 'active' | 'upcoming' | 'completed';
|
||||
seasonDates: {
|
||||
start: string;
|
||||
end: string;
|
||||
};
|
||||
nextRace?: {
|
||||
name: string;
|
||||
date: string;
|
||||
track: string;
|
||||
};
|
||||
sponsorSlots: {
|
||||
main: {
|
||||
price: number;
|
||||
status: 'available' | 'occupied';
|
||||
};
|
||||
secondary: {
|
||||
price: number;
|
||||
total: number;
|
||||
occupied: number;
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user