wip milano-cortina 2026

This commit is contained in:
Fabrice Lamant
2025-12-05 21:30:34 +01:00
parent 5074fd5155
commit e2b6c42f01
10 changed files with 684 additions and 11 deletions

44
scraper/types.d.ts vendored Normal file
View File

@ -0,0 +1,44 @@
export interface MultilingualString {
[key: string]: string;
}
export interface Language {
code: string;
name: string;
}
export interface Sport {
key: string;
name: MultilingualString;
order: number;
}
export interface Team {
key: string;
name: MultilingualString;
}
export interface Match {
team1: Team;
team2: Team;
}
export interface Event {
key: string;
start: string;
end: string;
sport: string;
isTraining: boolean;
medal: '0' | '1' | '3';
name: MultilingualString;
location: MultilingualString;
match?: Match;
}
export interface Calendar {
languages: Language[];
sports: Sport[];
events: Event[];
nocs: Team[];
}