mirror of
https://github.com/fabrice404/olympics-calendar.git
synced 2026-02-14 04:09:05 +00:00
add docker
This commit is contained in:
59
scraper/types.d.ts
vendored
59
scraper/types.d.ts
vendored
@ -1,4 +1,3 @@
|
||||
|
||||
export interface MultilingualString {
|
||||
[key: string]: string;
|
||||
}
|
||||
@ -30,7 +29,7 @@ export interface Event {
|
||||
end: string;
|
||||
sport: string;
|
||||
isTraining: boolean;
|
||||
medal: '0' | '1' | '3';
|
||||
medal: "0" | "1" | "3";
|
||||
name: MultilingualString;
|
||||
location: MultilingualString;
|
||||
match?: Match;
|
||||
@ -42,3 +41,59 @@ export interface Calendar {
|
||||
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