-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathtypings.d.ts
168 lines (154 loc) · 3 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
export interface Genre {
id: number;
name: string;
}
export interface Movie {
adult: boolean;
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;
video: boolean;
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 {
adult: boolean;
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[];
vote_average: number;
}
export interface Seasons {
air_date: string;
episode_count: number;
id: number;
name: string;
overview: string;
poster_path: string;
season_number: number;
}
export interface Cast {
adult: boolean;
cast_id: number;
character: string;
credit_id: string;
gender: number;
id: number;
known_for_department: string;
name: string;
order: number;
original_name: string;
popularity: string;
profile_path: string;
}
export interface MovieCastCrew {
cast: Cast[];
crew: any[];
}
export interface MovieTrailer {
id: string;
iso_639_1: string;
iso_3166_1: string;
key: string;
name: string;
official: boolean;
published_at: string;
site: string;
size: string;
type: string;
}
export interface MovieImage {
aspect_ratio: number;
file_path: string;
height: number;
iso_639_1: any;
vote_average: number;
vote_count: number;
width: number;
}
export interface PopularTyping {
adult: boolean;
gender: number;
id: number;
name: string;
popularity: number;
profile_path: string;
known_for: Details[];
known_for_department: string;
}
export interface personData {
adult: boolean;
also_known_as: any[];
biography: string;
birthday: string;
deathday: string | undefined;
gender: number;
homepage: any | undefined;
id: number;
imdb_id: string;
known_for_department: string;
name: string;
place_of_birth: string;
popularity: number;
profile_path: string;
}
export interface AuthorDetails {
avatar_path: string;
name: string;
rating: number;
username: string;
}
export interface MovieReviewData {
author: string;
content: string;
created_at: string;
id: string;
updated_at: string;
url: string;
author_details: AuthorDetails;
}
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;
}