This repository has been archived by the owner on Jun 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Anime.ts
68 lines (64 loc) · 1.43 KB
/
Anime.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
import { AnimeGenres } from '../handlers/Anime';
export interface Anime {
id: number;
anilist_id: number;
mal_id: number | null;
format: AnimeFormat;
status: AnimeStatus;
titles: { [key: string]: string };
descriptions: { [key: string]: string };
start_date: string | null;
end_date: string | null;
season_period: AnimeSeasonPeriod;
season_year: number | null;
episodes_count: number;
episode_duration: number | null;
episode_from: number;
episode_to: number;
trailer_url: string | null;
cover_image: string;
cover_color: string;
banner_image: string;
genres: AnimeGenres[];
sequel: number | null;
prequel: number | null;
score: number;
sagas?: Saga[];
has_cover_image: boolean;
recommendations: number[];
}
export type Saga = Pick<
Anime,
'episode_from' | 'episode_to' | 'episodes_count' | 'titles' | 'descriptions'
>;
export enum AnimeWeeklyAiringDay {
'Sunday',
'Monday',
'Tuesday',
'Wednesday',
'Thursday',
'Friday',
'Saturday',
}
export enum AnimeFormat {
'TV' = 0,
'TV_SHORT' = 1,
'MOVIE' = 2,
'SPECIAL' = 3,
'OVA' = 4,
'ONA' = 5,
'MUSIC' = 6,
}
export enum AnimeStatus {
'FINISHED' = 0,
'RELEASING' = 1,
'NOT_YET_RELEASED' = 2,
'CANCELLED' = 3,
}
export enum AnimeSeasonPeriod {
'WINTER' = 0,
'SPRING' = 1,
'SUMMER' = 2,
'FALL' = 3,
'UNKNOWN' = 4,
}