@tdanks2000/tmdb-wrapper 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +334 -148
- package/dist/@types/models/baseEndpoint.d.ts.map +1 -1
- package/dist/endpoints/account.d.ts.map +1 -1
- package/dist/endpoints/certification.d.ts.map +1 -1
- package/dist/endpoints/changes.d.ts.map +1 -1
- package/dist/endpoints/collections.d.ts.map +1 -1
- package/dist/endpoints/collections.js +1 -1
- package/dist/endpoints/companies.d.ts.map +1 -1
- package/dist/endpoints/configuration.d.ts.map +1 -1
- package/dist/endpoints/credits.d.ts.map +1 -1
- package/dist/endpoints/discover.d.ts.map +1 -1
- package/dist/endpoints/find.d.ts.map +1 -1
- package/dist/endpoints/genre.d.ts.map +1 -1
- package/dist/endpoints/index.d.ts +3 -0
- package/dist/endpoints/index.d.ts.map +1 -1
- package/dist/endpoints/index.js +3 -0
- package/dist/endpoints/keywords.d.ts.map +1 -1
- package/dist/endpoints/movies.d.ts.map +1 -1
- package/dist/endpoints/movies.js +1 -1
- package/dist/endpoints/networks.d.ts.map +1 -1
- package/dist/endpoints/people.d.ts.map +1 -1
- package/dist/endpoints/review.d.ts.map +1 -1
- package/dist/endpoints/search.d.ts.map +1 -1
- package/dist/endpoints/trending.d.ts.map +1 -1
- package/dist/endpoints/tvEpisodes.d.ts.map +1 -1
- package/dist/endpoints/tvEpisodes.js +2 -2
- package/dist/endpoints/tvSeasons.d.ts.map +1 -1
- package/dist/endpoints/tvSeasons.js +2 -2
- package/dist/endpoints/tvShows.d.ts.map +1 -1
- package/dist/endpoints/tvShows.js +2 -2
- package/dist/endpoints/watchProviders.d.ts +33 -0
- package/dist/endpoints/watchProviders.d.ts.map +1 -0
- package/dist/endpoints/watchProviders.js +63 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/utils/api.d.ts.map +1 -1
- package/dist/utils/getimagePath.d.ts +24 -4
- package/dist/utils/getimagePath.d.ts.map +1 -1
- package/dist/utils/getimagePath.js +39 -8
- package/package.json +28 -10
- package/src/@types/endpoints/account.ts +0 -17
- package/src/@types/endpoints/certification.ts +0 -19
- package/src/@types/endpoints/changes.ts +0 -29
- package/src/@types/endpoints/collection.ts +0 -23
- package/src/@types/endpoints/companies.ts +0 -33
- package/src/@types/endpoints/configuration.ts +0 -112
- package/src/@types/endpoints/credits.ts +0 -149
- package/src/@types/endpoints/discover.ts +0 -87
- package/src/@types/endpoints/find.ts +0 -28
- package/src/@types/endpoints/genre.ts +0 -3
- package/src/@types/endpoints/index.ts +0 -22
- package/src/@types/endpoints/keywords.ts +0 -24
- package/src/@types/endpoints/movies.ts +0 -169
- package/src/@types/endpoints/networks.ts +0 -15
- package/src/@types/endpoints/options.ts +0 -189
- package/src/@types/endpoints/people.ts +0 -151
- package/src/@types/endpoints/review.ts +0 -8
- package/src/@types/endpoints/search.ts +0 -39
- package/src/@types/endpoints/trending.ts +0 -20
- package/src/@types/endpoints/tvEpisode.ts +0 -72
- package/src/@types/endpoints/tvSeasons.ts +0 -37
- package/src/@types/endpoints/tvShows.ts +0 -284
- package/src/@types/endpoints/watchProviders.ts +0 -298
- package/src/@types/index.ts +0 -3
- package/src/@types/models/baseEndpoint.ts +0 -9
- package/src/@types/models/index.ts +0 -1
- package/src/@types/types.ts +0 -199
- package/src/endpoints/account.ts +0 -22
- package/src/endpoints/certification.ts +0 -30
- package/src/endpoints/changes.ts +0 -41
- package/src/endpoints/collections.ts +0 -57
- package/src/endpoints/companies.ts +0 -41
- package/src/endpoints/configuration.ts +0 -22
- package/src/endpoints/credits.ts +0 -23
- package/src/endpoints/discover.ts +0 -40
- package/src/endpoints/find.ts +0 -24
- package/src/endpoints/genre.ts +0 -32
- package/src/endpoints/index.ts +0 -18
- package/src/endpoints/keywords.ts +0 -35
- package/src/endpoints/movies.ts +0 -244
- package/src/endpoints/networks.ts +0 -41
- package/src/endpoints/people.ts +0 -147
- package/src/endpoints/review.ts +0 -23
- package/src/endpoints/search.ts +0 -93
- package/src/endpoints/trending.ts +0 -30
- package/src/endpoints/tvEpisodes.ts +0 -125
- package/src/endpoints/tvSeasons.ts +0 -138
- package/src/endpoints/tvShows.ts +0 -286
- package/src/index.ts +0 -66
- package/src/utils/api.ts +0 -31
- package/src/utils/getimagePath.ts +0 -16
- package/src/utils/index.ts +0 -2
- package/tsconfig.json +0 -108
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
export interface ImageConfiguration {
|
|
2
|
-
base_url: string;
|
|
3
|
-
secure_base_url: string;
|
|
4
|
-
backdrop_sizes: BackdropSizes[];
|
|
5
|
-
logo_sizes: LogoSizes[];
|
|
6
|
-
poster_sizes: PosterSizes[];
|
|
7
|
-
profile_sizes: ProfileSizes[];
|
|
8
|
-
still_sizes: StillSizes[];
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export interface Configuration {
|
|
12
|
-
images: ImageConfiguration;
|
|
13
|
-
change_keys: ChangeKeys[];
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export const enum BackdropSizes {
|
|
17
|
-
W300 = 'w300',
|
|
18
|
-
W500 = 'w500',
|
|
19
|
-
W780 = 'w780',
|
|
20
|
-
W1280 = 'w1280',
|
|
21
|
-
ORIGINAL = 'original',
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export const enum LogoSizes {
|
|
25
|
-
W45 = 'w45',
|
|
26
|
-
W92 = 'w92',
|
|
27
|
-
W154 = 'w154',
|
|
28
|
-
W185 = 'w185',
|
|
29
|
-
W300 = 'w300',
|
|
30
|
-
W500 = 'w500',
|
|
31
|
-
ORIGINAL = 'original',
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export const enum PosterSizes {
|
|
35
|
-
W92 = 'w92',
|
|
36
|
-
W154 = 'w154',
|
|
37
|
-
W185 = 'w185',
|
|
38
|
-
W300 = 'w300',
|
|
39
|
-
W500 = 'w500',
|
|
40
|
-
W780 = 'w780',
|
|
41
|
-
ORIGINAL = 'original',
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export const enum ProfileSizes {
|
|
45
|
-
W45 = 'w45',
|
|
46
|
-
W185 = 'w185',
|
|
47
|
-
W632 = 'w632',
|
|
48
|
-
ORIGINAL = 'original',
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export const enum StillSizes {
|
|
52
|
-
W92 = 'w92',
|
|
53
|
-
W185 = 'w185',
|
|
54
|
-
W300 = 'w300',
|
|
55
|
-
ORIGINAL = 'original',
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export const enum ChangeKeys {
|
|
59
|
-
ADULT = 'adult',
|
|
60
|
-
AIR_DATE = 'air_date',
|
|
61
|
-
ALSO_KNOWN_AS = 'also_known_as',
|
|
62
|
-
ALTERNATIVE_TITLES = 'alternative_titles',
|
|
63
|
-
BIOGRAPHY = 'biography',
|
|
64
|
-
BIRTHDAY = 'birthday',
|
|
65
|
-
BUDGET = 'budget',
|
|
66
|
-
CAST = 'cast',
|
|
67
|
-
CERTIFICATIONS = 'certifications',
|
|
68
|
-
CHARACTER_NAMES = 'character_names',
|
|
69
|
-
CREATED_BY = 'created_by',
|
|
70
|
-
CREW = 'crew',
|
|
71
|
-
DEATHDAY = 'deathday',
|
|
72
|
-
EPISODE = 'episode',
|
|
73
|
-
EPISODE_NUMBER = 'episode_number',
|
|
74
|
-
EPISODE_RUN_TIME = 'episode_run_time',
|
|
75
|
-
FREEBASE_ID = 'freebase_id',
|
|
76
|
-
FREEBASE_MID = 'freebase_mid',
|
|
77
|
-
GENERAL = 'general',
|
|
78
|
-
GENRES = 'genres',
|
|
79
|
-
GUEST_STARS = 'guest_stars',
|
|
80
|
-
HOMEPAGE = 'homepage',
|
|
81
|
-
IMAGES = 'images',
|
|
82
|
-
IMDB_ID = 'imdb_id',
|
|
83
|
-
LANGUAGES = 'languages',
|
|
84
|
-
NAME = 'name',
|
|
85
|
-
NETWORK = 'network',
|
|
86
|
-
ORIGIN_COUNTRY = 'origin_country',
|
|
87
|
-
ORIGINAL_NAME = 'original_name',
|
|
88
|
-
ORIGINAL_TITLE = 'original_title',
|
|
89
|
-
OVERVIEW = 'overview',
|
|
90
|
-
PARTS = 'parts',
|
|
91
|
-
PLACE_OF_BIRTH = 'place_of_birth',
|
|
92
|
-
PLOT_KEYWORDS = 'plot_keywords',
|
|
93
|
-
PRODUCTION_CODE = 'production_code',
|
|
94
|
-
PRODUCTION_COMPANIES = 'production_companies',
|
|
95
|
-
PRODUCTION_COUNTRIES = 'production_countries',
|
|
96
|
-
RELEASES = 'releases',
|
|
97
|
-
REVENUE = 'revenue',
|
|
98
|
-
RUNTIME = 'runtime',
|
|
99
|
-
SEASON = 'season',
|
|
100
|
-
SEASON_NUMBER = 'season_number',
|
|
101
|
-
SEASON_REGULAR = 'season_regular',
|
|
102
|
-
SPOKEN_LANGUAGES = 'spoken_languages',
|
|
103
|
-
STATUS = 'status',
|
|
104
|
-
TAGLINE = 'tagline',
|
|
105
|
-
TITLE = 'title',
|
|
106
|
-
TRANSLATIONS = 'translations',
|
|
107
|
-
TVDB_ID = 'tvdb_id',
|
|
108
|
-
TVRAGE_ID = 'tvrage_id',
|
|
109
|
-
TYPE = 'type',
|
|
110
|
-
VIDEO = 'video',
|
|
111
|
-
VIDEOS = 'videos',
|
|
112
|
-
}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { Image, Person } from '..';
|
|
2
|
-
|
|
3
|
-
export interface CreditSeason {
|
|
4
|
-
air_date?: string;
|
|
5
|
-
poster_path?: string;
|
|
6
|
-
season_number?: number;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface Media {
|
|
10
|
-
i?: number;
|
|
11
|
-
name?: string;
|
|
12
|
-
first_air_date?: string;
|
|
13
|
-
vote_count?: number;
|
|
14
|
-
overview?: string;
|
|
15
|
-
vote_average?: number;
|
|
16
|
-
backdrop_path?: string;
|
|
17
|
-
genre_ids?: number[];
|
|
18
|
-
original_name?: string;
|
|
19
|
-
origin_country?: string[];
|
|
20
|
-
poster_path?: string;
|
|
21
|
-
original_language?: string;
|
|
22
|
-
popularity?: number;
|
|
23
|
-
character?: string;
|
|
24
|
-
episodes?: string[];
|
|
25
|
-
seasons?: CreditSeason[];
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface CreditResponse {
|
|
29
|
-
credit_type?: string;
|
|
30
|
-
department?: string;
|
|
31
|
-
job?: string;
|
|
32
|
-
media?: Media;
|
|
33
|
-
media_type?: string;
|
|
34
|
-
id?: string;
|
|
35
|
-
person?: Person;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export interface Title {
|
|
39
|
-
iso_3166_1: string;
|
|
40
|
-
title: string;
|
|
41
|
-
type: string;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export interface AlternativeTitles {
|
|
45
|
-
id: number;
|
|
46
|
-
titles: Title[];
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export interface Cast {
|
|
50
|
-
adult: boolean;
|
|
51
|
-
gender: number;
|
|
52
|
-
id: number;
|
|
53
|
-
known_for_department: string;
|
|
54
|
-
name: string;
|
|
55
|
-
original_name: string;
|
|
56
|
-
popularity: number;
|
|
57
|
-
profile_path: string;
|
|
58
|
-
cast_id: number;
|
|
59
|
-
character: string;
|
|
60
|
-
credit_id: string;
|
|
61
|
-
order: number;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export interface Crew {
|
|
65
|
-
adult: boolean;
|
|
66
|
-
gender: number;
|
|
67
|
-
id: number;
|
|
68
|
-
known_for_department: string;
|
|
69
|
-
name: string;
|
|
70
|
-
original_name: string;
|
|
71
|
-
popularity: number;
|
|
72
|
-
profile_path: string;
|
|
73
|
-
credit_id: string;
|
|
74
|
-
department: string;
|
|
75
|
-
job: string;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export interface Credits {
|
|
79
|
-
id: number;
|
|
80
|
-
cast: Cast[];
|
|
81
|
-
crew: Crew[];
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
export interface ImageCollection {
|
|
85
|
-
id: number;
|
|
86
|
-
backdrops: Image[];
|
|
87
|
-
posters: Image[];
|
|
88
|
-
}
|
|
89
|
-
export interface Video {
|
|
90
|
-
id: string;
|
|
91
|
-
iso_639_1: string;
|
|
92
|
-
iso_3166_1: string;
|
|
93
|
-
key: string;
|
|
94
|
-
name: string;
|
|
95
|
-
site: string;
|
|
96
|
-
size: number;
|
|
97
|
-
type: string;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export interface Videos {
|
|
101
|
-
id: number;
|
|
102
|
-
results: Video[];
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export interface AggregateCredits {
|
|
106
|
-
id: number;
|
|
107
|
-
cast: AggregateCast[];
|
|
108
|
-
crew: AggregateCrew[];
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export interface CastRole {
|
|
112
|
-
credit_id: string;
|
|
113
|
-
character: string;
|
|
114
|
-
episode_count: number;
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
export interface AggregateCast {
|
|
118
|
-
adult: boolean;
|
|
119
|
-
gender: number;
|
|
120
|
-
id: number;
|
|
121
|
-
known_for_department: string;
|
|
122
|
-
name: string;
|
|
123
|
-
original_name: string;
|
|
124
|
-
popularity: number;
|
|
125
|
-
profile_path: string;
|
|
126
|
-
roles: CastRole[];
|
|
127
|
-
total_episode_count: number;
|
|
128
|
-
order: number;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export interface CrewJob {
|
|
132
|
-
credit_id: string;
|
|
133
|
-
job: string;
|
|
134
|
-
episode_count: number;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
export interface AggregateCrew {
|
|
138
|
-
adult: boolean;
|
|
139
|
-
gender: number;
|
|
140
|
-
id: number;
|
|
141
|
-
known_for_department: string;
|
|
142
|
-
name: string;
|
|
143
|
-
original_name: string;
|
|
144
|
-
popularity: number;
|
|
145
|
-
profile_path: string;
|
|
146
|
-
jobs: CrewJob[];
|
|
147
|
-
department: string;
|
|
148
|
-
total_episode_count: number;
|
|
149
|
-
}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { Movie, TV } from '..';
|
|
2
|
-
|
|
3
|
-
export type SortOption =
|
|
4
|
-
| 'popularity.asc'
|
|
5
|
-
| 'popularity.desc'
|
|
6
|
-
| 'release_date.asc'
|
|
7
|
-
| 'release_date.desc'
|
|
8
|
-
| 'revenue.asc'
|
|
9
|
-
| 'revenue.desc'
|
|
10
|
-
| 'primary_release_date.asc'
|
|
11
|
-
| 'primary_release_date.desc'
|
|
12
|
-
| 'original_title.asc'
|
|
13
|
-
| 'original_title.desc'
|
|
14
|
-
| 'vote_average.asc'
|
|
15
|
-
| 'vote_average.desc'
|
|
16
|
-
| 'vote_count.asc'
|
|
17
|
-
| 'vote_count.desc';
|
|
18
|
-
|
|
19
|
-
export interface MovieDiscoverResult {
|
|
20
|
-
page: number;
|
|
21
|
-
results: Movie[];
|
|
22
|
-
total_results: number;
|
|
23
|
-
total_pages: number;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface TvShowDiscoverResult {
|
|
27
|
-
page: number;
|
|
28
|
-
results: TV[];
|
|
29
|
-
total_results: number;
|
|
30
|
-
total_pages: number;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
export interface DiscoverQueryOptions {
|
|
34
|
-
language?: string;
|
|
35
|
-
sort_by?: SortOption;
|
|
36
|
-
page?: number;
|
|
37
|
-
'vote_average.gte'?: number;
|
|
38
|
-
'vote_count.gte'?: number;
|
|
39
|
-
'vote_count.lte'?: number;
|
|
40
|
-
'vote_average.lte'?: number;
|
|
41
|
-
with_watch_providers?: string;
|
|
42
|
-
watch_region?: string;
|
|
43
|
-
without_companies?: string;
|
|
44
|
-
with_watch_monetization_types?: 'flatrate' | 'free' | 'ads' | 'rent' | 'buy';
|
|
45
|
-
'with_runtime.gte'?: number;
|
|
46
|
-
'with_runtime.lte'?: number;
|
|
47
|
-
with_genres?: string;
|
|
48
|
-
without_genres?: string;
|
|
49
|
-
with_original_language?: string;
|
|
50
|
-
without_keywords?: string;
|
|
51
|
-
with_keywords?: string;
|
|
52
|
-
with_companies?: string;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface MovieQueryOptions extends DiscoverQueryOptions {
|
|
56
|
-
region?: string;
|
|
57
|
-
certification_country?: string;
|
|
58
|
-
certification?: string;
|
|
59
|
-
'certification.lte'?: string;
|
|
60
|
-
'certification.gte'?: string;
|
|
61
|
-
include_adult?: boolean;
|
|
62
|
-
include_video?: boolean;
|
|
63
|
-
primary_release_year?: number;
|
|
64
|
-
'primary_release_date.gte'?: string;
|
|
65
|
-
'primary_release_date.lte'?: string;
|
|
66
|
-
'release_date.gte'?: string;
|
|
67
|
-
'release_date.lte'?: string;
|
|
68
|
-
with_release_type?: string;
|
|
69
|
-
year?: number;
|
|
70
|
-
with_cast?: string;
|
|
71
|
-
with_crew?: string;
|
|
72
|
-
with_people?: string;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export interface TvShowQueryOptions extends DiscoverQueryOptions {
|
|
76
|
-
'air_date.gte'?: string;
|
|
77
|
-
'air_date.lte'?: string;
|
|
78
|
-
'first_air_date.gte'?: string;
|
|
79
|
-
'first_air_date.lte'?: string;
|
|
80
|
-
first_air_date_year?: number;
|
|
81
|
-
timezone?: string;
|
|
82
|
-
with_networks?: string;
|
|
83
|
-
include_null_first_air_dates?: boolean;
|
|
84
|
-
screened_theatrically?: boolean;
|
|
85
|
-
with_status?: string;
|
|
86
|
-
with_type?: string;
|
|
87
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Episode, MediaType, Movie, Person, Season, TV } from '..';
|
|
2
|
-
|
|
3
|
-
export type ExternalSource =
|
|
4
|
-
| 'imdb_id'
|
|
5
|
-
| 'freebase_mid'
|
|
6
|
-
| 'freebase_id'
|
|
7
|
-
| 'tvdb_id'
|
|
8
|
-
| 'tvrage_id'
|
|
9
|
-
| 'facebook_id'
|
|
10
|
-
| 'twitter_id'
|
|
11
|
-
| 'instagram_id';
|
|
12
|
-
|
|
13
|
-
export interface ExternalIdOptions {
|
|
14
|
-
external_source: ExternalSource;
|
|
15
|
-
language?: string;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
type MediaTagged<T> = T & {
|
|
19
|
-
media_type: MediaType;
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export interface FindResult {
|
|
23
|
-
movie_results: MediaTagged<Movie>[];
|
|
24
|
-
person_results: MediaTagged<Person>[];
|
|
25
|
-
tv_results: MediaTagged<TV>[];
|
|
26
|
-
tv_episode_results: MediaTagged<Episode>[];
|
|
27
|
-
tv_season_results: MediaTagged<Season & { show_id: string }>[];
|
|
28
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export * from './account';
|
|
2
|
-
export * from './certification';
|
|
3
|
-
export * from './changes';
|
|
4
|
-
export * from './collection';
|
|
5
|
-
export * from './companies';
|
|
6
|
-
export * from './configuration';
|
|
7
|
-
export * from './credits';
|
|
8
|
-
export * from './discover';
|
|
9
|
-
export * from './find';
|
|
10
|
-
export * from './genre';
|
|
11
|
-
export * from './keywords';
|
|
12
|
-
export * from './movies';
|
|
13
|
-
export * from './networks';
|
|
14
|
-
export * from './options';
|
|
15
|
-
export * from './people';
|
|
16
|
-
export * from './review';
|
|
17
|
-
export * from './search';
|
|
18
|
-
export * from './trending';
|
|
19
|
-
export * from './tvEpisode';
|
|
20
|
-
export * from './tvSeasons';
|
|
21
|
-
export * from './tvShows';
|
|
22
|
-
export * from './watchProviders';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Movie } from '..';
|
|
2
|
-
import { PageOption } from './options';
|
|
3
|
-
|
|
4
|
-
export interface KeywordsOptions extends PageOption {
|
|
5
|
-
include_adult?: boolean;
|
|
6
|
-
language?: string;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
export interface BelongingMovies {
|
|
10
|
-
page: number;
|
|
11
|
-
results: Movie[];
|
|
12
|
-
total_results: number;
|
|
13
|
-
total_pages: number;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
export interface Keyword {
|
|
17
|
-
id: number;
|
|
18
|
-
name: string;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export interface Keywords {
|
|
22
|
-
id: number;
|
|
23
|
-
keywords: Keyword[];
|
|
24
|
-
}
|
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
import { Genre, LanguageOption, Movie, ProductionCompany, ProductionCountry, SpokenLanguage } from '..';
|
|
2
|
-
|
|
3
|
-
export interface BelongsToCollection {
|
|
4
|
-
id: number;
|
|
5
|
-
name: string;
|
|
6
|
-
poster_path: string;
|
|
7
|
-
backdrop_path: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface MovieDetails {
|
|
11
|
-
adult: boolean;
|
|
12
|
-
backdrop_path: string;
|
|
13
|
-
belongs_to_collection?: BelongsToCollection;
|
|
14
|
-
budget: number;
|
|
15
|
-
genres: Genre[];
|
|
16
|
-
homepage: string;
|
|
17
|
-
id: number;
|
|
18
|
-
imdb_id: string;
|
|
19
|
-
original_language: string;
|
|
20
|
-
original_title: string;
|
|
21
|
-
overview: string;
|
|
22
|
-
popularity: number;
|
|
23
|
-
poster_path?: string;
|
|
24
|
-
production_companies: ProductionCompany[];
|
|
25
|
-
production_countries: ProductionCountry[];
|
|
26
|
-
release_date: string;
|
|
27
|
-
revenue: number;
|
|
28
|
-
runtime: number;
|
|
29
|
-
spoken_languages: SpokenLanguage[];
|
|
30
|
-
status: string;
|
|
31
|
-
tagline: string;
|
|
32
|
-
title: string;
|
|
33
|
-
video: boolean;
|
|
34
|
-
vote_average: number;
|
|
35
|
-
vote_count: number;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export enum ReleaseDateType {
|
|
39
|
-
'Premiere' = 1,
|
|
40
|
-
'Theatrical (limited)',
|
|
41
|
-
'Theatrical',
|
|
42
|
-
'Digital',
|
|
43
|
-
'Physical',
|
|
44
|
-
'TV',
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export interface ReleaseDate {
|
|
48
|
-
certification: string;
|
|
49
|
-
iso_639_1: string;
|
|
50
|
-
release_date: Date;
|
|
51
|
-
type: ReleaseDateType;
|
|
52
|
-
note: string;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export interface ReleaseDateResult {
|
|
56
|
-
iso_3166_1: string;
|
|
57
|
-
release_dates: ReleaseDate[];
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export interface ReleaseDates {
|
|
61
|
-
id: number;
|
|
62
|
-
results: ReleaseDateResult[];
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export interface SimilarMovies {
|
|
66
|
-
page: number;
|
|
67
|
-
results: Movie[];
|
|
68
|
-
total_pages: number;
|
|
69
|
-
total_results: number;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export interface MovieList {
|
|
73
|
-
description: string;
|
|
74
|
-
favorite_count: number;
|
|
75
|
-
id: number;
|
|
76
|
-
item_count: number;
|
|
77
|
-
iso_639_1: string;
|
|
78
|
-
list_type: string;
|
|
79
|
-
name: string;
|
|
80
|
-
poster_path: string;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
export interface MovieLists {
|
|
84
|
-
id: number;
|
|
85
|
-
page: number;
|
|
86
|
-
results: MovieList[];
|
|
87
|
-
total_pages: number;
|
|
88
|
-
total_results: number;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export interface LatestMovie {
|
|
92
|
-
adult: boolean;
|
|
93
|
-
backdrop_path?: string;
|
|
94
|
-
belongs_to_collection?: BelongsToCollection;
|
|
95
|
-
budget: number;
|
|
96
|
-
genres: Genre[];
|
|
97
|
-
homepage: string;
|
|
98
|
-
id: number;
|
|
99
|
-
imdb_id: string;
|
|
100
|
-
original_language: string;
|
|
101
|
-
original_title: string;
|
|
102
|
-
overview: string;
|
|
103
|
-
popularity: number;
|
|
104
|
-
poster_path: string;
|
|
105
|
-
production_companies: ProductionCompany[];
|
|
106
|
-
production_countries: ProductionCountry[];
|
|
107
|
-
release_date: string;
|
|
108
|
-
revenue: number;
|
|
109
|
-
runtime: number;
|
|
110
|
-
spoken_languages: SpokenLanguage[];
|
|
111
|
-
status: string;
|
|
112
|
-
tagline: string;
|
|
113
|
-
title: string;
|
|
114
|
-
video: boolean;
|
|
115
|
-
vote_average: number;
|
|
116
|
-
vote_count: number;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
export interface Dates {
|
|
120
|
-
maximum: string;
|
|
121
|
-
minimum: string;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
export interface MoviesPlayingNow {
|
|
125
|
-
page: number;
|
|
126
|
-
results: Movie[];
|
|
127
|
-
dates: Dates;
|
|
128
|
-
total_pages: number;
|
|
129
|
-
total_results: number;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
export interface PopularMovies {
|
|
133
|
-
page: number;
|
|
134
|
-
results: Movie[];
|
|
135
|
-
total_results: number;
|
|
136
|
-
total_pages: number;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export interface TopRatedMovies {
|
|
140
|
-
page: number;
|
|
141
|
-
results: Movie[];
|
|
142
|
-
total_results: number;
|
|
143
|
-
total_pages: number;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
export interface UpcomingMovies {
|
|
147
|
-
page: number;
|
|
148
|
-
results: Movie[];
|
|
149
|
-
total_results: number;
|
|
150
|
-
total_pages: number;
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export type MovieChangeValue =
|
|
154
|
-
| string
|
|
155
|
-
| {
|
|
156
|
-
person_id: number;
|
|
157
|
-
character: string;
|
|
158
|
-
order: number;
|
|
159
|
-
cast_id: number;
|
|
160
|
-
credit_id: string;
|
|
161
|
-
}
|
|
162
|
-
| unknown;
|
|
163
|
-
|
|
164
|
-
export interface MoviesImageSearchOptions extends LanguageOption {
|
|
165
|
-
/**
|
|
166
|
-
* a list of ISO-639-1 values to query
|
|
167
|
-
*/
|
|
168
|
-
include_image_language?: string[];
|
|
169
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Image } from '..';
|
|
2
|
-
|
|
3
|
-
export interface NetworkDetails {
|
|
4
|
-
headquarters: string;
|
|
5
|
-
homepage: string;
|
|
6
|
-
id: number;
|
|
7
|
-
logo_path: string;
|
|
8
|
-
name: string;
|
|
9
|
-
origin_country: string;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export interface NetworkImages {
|
|
13
|
-
id: number;
|
|
14
|
-
logos: Image[];
|
|
15
|
-
}
|