official website update

This commit is contained in:
Fabrice LAMANT
2026-02-04 09:28:16 +01:00
parent d48d904f95
commit b7e4dc2ae4
11 changed files with 469 additions and 359 deletions

73
scraper/types.d.ts vendored
View File

@ -5,6 +5,7 @@ export interface MultilingualString {
export interface Language {
code: string;
name: string;
code3: string;
}
export interface Sport {
@ -13,14 +14,15 @@ export interface Sport {
order: number;
}
export interface Team {
export interface NOC {
key: string;
name: MultilingualString;
}
export interface Match {
team1: Team;
team2: Team;
export interface Competitor {
noc: string;
code: string;
name: string;
}
export interface Event {
@ -28,72 +30,17 @@ export interface Event {
start: string;
end: string;
sport: string;
isTraining: boolean;
medal: "0" | "1" | "3";
name: MultilingualString;
location: MultilingualString;
match?: Match;
nocs: string[];
competitors: string[];
}
export interface Calendar {
languages: Language[];
sports: Sport[];
nocs: NOC[];
competitors: Competitor[];
events: Event[];
nocs: Team[];
}
export interface PageData {
props: {
pageProps: {
page: {
template: {
properties: {
header: {
mainNav: {
languages: {
link: string;
lang: string;
label: string;
}[];
};
};
};
};
items: {
type: string;
name: string;
data: {
disciplines: {
disciplineCode: string;
order: number;
description: string;
}[];
schedules: {
units: {
unitCode: string;
startDateTimeUtc: string;
endDateTimeUtc: string;
isTraining: boolean;
medal: "0" | "1" | "3";
description: string;
venue: {
description: string;
};
match?: {
team1: {
teamCode: string;
description: string;
};
team2: {
teamCode: string;
description: string;
};
};
}[];
}[];
};
}[];
};
};
};
}