mirror of
https://github.com/fabrice404/olympics-calendar.git
synced 2026-02-21 17:19:21 +00:00
official website update
This commit is contained in:
73
scraper/types.d.ts
vendored
73
scraper/types.d.ts
vendored
@ -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;
|
||||
};
|
||||
};
|
||||
}[];
|
||||
}[];
|
||||
};
|
||||
}[];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user