-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathtypings.d.ts
153 lines (139 loc) · 2.63 KB
/
typings.d.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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
export interface Genre {
id: number;
name: string;
}
export interface Movie {
title: string;
backdrop_path: string;
media_type?: string;
release_date?: string;
first_air_date: string;
genre_ids: number[];
id: number;
name: string;
origin_country: string[];
original_language: string;
original_name: string;
overview: string;
popularity: number;
poster_path: string;
vote_average: number;
vote_count: number;
}
export interface Companies {
id: number;
logo_path: string;
name: string;
origin_country: string;
}
export interface Languages {
english_name: string;
}
export interface Details {
backdrop_path: string;
id: number;
original_title: string;
overview: string;
poster_path: string;
release_date: string;
genres: Genre[];
production_companies: Companies[];
title: string;
name: string;
original_name: string;
spoken_languages: Languages[];
seasons: Seasons[];
}
export interface Seasons {
air_date: string;
episode_count: number;
id: number;
name: string;
overview: string;
poster_path: string;
season_number: number;
}
export interface Result {
id: number;
key: string;
name: string;
}
export interface Cast {
id: number;
profile_path: string;
name: string;
original_name: string;
character: string;
}
export interface CastPerson {
id: number;
profile_path: string;
name: string;
known_for_department: string;
biography: string;
place_of_birth: string;
birthday: string;
gender: number;
popularity: number;
also_known_as: string[];
}
export interface PopularTyping {
adult: boolean;
gender: number;
id: number;
name: string;
popularity: number;
profile_path: string;
known_for_department: string;
}
export interface CastDataTyping {
id: number;
poster_path: string;
title: string;
}
export interface Episode {
air_date: string;
crew: any[];
episode_number: number;
guest_stars: Cast[];
id: number;
name: string;
overview: string;
production_code: string;
runtime: number;
season_number: number;
show_id: number;
still_path: number;
vote_average: number;
vote_count: number;
}
export interface SeasonDetail {
air_date: string;
name: string;
episodes: Episode[];
id: number;
overview: string;
poster_path: string;
season_number: number;
_id: string;
}
export interface MovieTrailer {
id: string;
iso_639_1: string;
key: string;
name: string;
official: boolean;
published_at: string;
site: string;
size: number;
type: string;
}
export interface Element {
type:
| "Bloopers"
| "Featurette"
| "Behind the Scenes"
| "Clip"
| "Trailer"
| "Teaser";
}