-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.d.ts
116 lines (105 loc) · 2.17 KB
/
types.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
import { StaticImageData } from "next/image";
export type BasicDataType = {
id: number;
image: string | StaticImageData;
title: string;
type: ItemType;
};
export type GalleryType = {
id: number;
name?: string;
title?: string;
type: string;
official: boolean;
poster_path?: string;
backdrop_path?: string;
};
export type CardType = "video" | "category" | "credits" | "poster" | "season";
export type ItemType = "movie" | "tv";
export type SeasonCardType = {};
export type CastProfileType = {
name: string;
profile_path?: null | string;
character?: string;
job?: string;
};
export type CreditsListType = {
cast: CastProfileType[];
crew: CastProfileType[];
};
export type CategoryCardType = {
title: string;
link: string;
from: string;
to: string;
isGallery?: boolean;
};
type CollectionType = {
id: string;
name: string;
poster_path: string;
backdrop_path: string;
};
type GenreType = {
id: number;
name: string;
};
type ProductionCompaniesType = {
id: number;
logo_path: string;
name: string;
origin_country: string;
};
type ProductionCountriesType = {
iso_3166_1: string;
name: string;
};
type NetworkType = {
id: number;
logo_path: string;
name: string;
origin_country: string;
};
export interface DataListType {
id: number;
original_title: string;
tagline?: string;
poster_path?: string;
backdrop_path?: string;
overview?: string;
media_type: ItemType;
adult: boolean;
original_language: string;
genre_ids: number[];
popularity: number;
release_date: string;
video: boolean;
origin_country?: string[];
runtime?: number;
name?: string;
title?: string;
}
export interface DataDetailsType extends DataListType {
genres: object[];
belongs_to_collection: CollectionType;
networks?: NetworkType[];
budget?: number;
genres?: GenreType[];
production_companies?: ProductionCompaniesType[];
revenue?: number;
status: string;
homepage?: string;
languages?: string[];
first_air_date: string;
episodes: number;
number_of_seasons: number;
status: string;
episode_run_time: number[];
networks: NetworkType[];
number_of_episodes: number;
number_of_seasons: number;
original_language: string;
original_name: string;
seasons: object[];
status: string;
}