@tdanks2000/tmdb-wrapper 1.2.0 → 1.3.1
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/dist/index.cjs +1598 -0
- package/dist/index.d.cts +2812 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +2812 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +1563 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +70 -61
- package/dist/@types/endpoints/account.d.ts +0 -16
- package/dist/@types/endpoints/account.d.ts.map +0 -1
- package/dist/@types/endpoints/account.js +0 -2
- package/dist/@types/endpoints/certification.d.ts +0 -19
- package/dist/@types/endpoints/certification.d.ts.map +0 -1
- package/dist/@types/endpoints/certification.js +0 -2
- package/dist/@types/endpoints/changes.d.ts +0 -26
- package/dist/@types/endpoints/changes.d.ts.map +0 -1
- package/dist/@types/endpoints/changes.js +0 -2
- package/dist/@types/endpoints/collection.d.ts +0 -21
- package/dist/@types/endpoints/collection.d.ts.map +0 -1
- package/dist/@types/endpoints/collection.js +0 -2
- package/dist/@types/endpoints/companies.d.ts +0 -29
- package/dist/@types/endpoints/companies.d.ts.map +0 -1
- package/dist/@types/endpoints/companies.js +0 -2
- package/dist/@types/endpoints/configuration.d.ts +0 -106
- package/dist/@types/endpoints/configuration.d.ts.map +0 -1
- package/dist/@types/endpoints/configuration.js +0 -101
- package/dist/@types/endpoints/credits.d.ts +0 -135
- package/dist/@types/endpoints/credits.d.ts.map +0 -1
- package/dist/@types/endpoints/credits.js +0 -2
- package/dist/@types/endpoints/discover.d.ts +0 -68
- package/dist/@types/endpoints/discover.d.ts.map +0 -1
- package/dist/@types/endpoints/discover.js +0 -2
- package/dist/@types/endpoints/find.d.ts +0 -20
- package/dist/@types/endpoints/find.d.ts.map +0 -1
- package/dist/@types/endpoints/find.js +0 -2
- package/dist/@types/endpoints/genre.d.ts +0 -7
- package/dist/@types/endpoints/genre.d.ts.map +0 -1
- package/dist/@types/endpoints/genre.js +0 -2
- package/dist/@types/endpoints/index.d.ts +0 -23
- package/dist/@types/endpoints/index.d.ts.map +0 -1
- package/dist/@types/endpoints/index.js +0 -38
- package/dist/@types/endpoints/keywords.d.ts +0 -21
- package/dist/@types/endpoints/keywords.d.ts.map +0 -1
- package/dist/@types/endpoints/keywords.js +0 -2
- package/dist/@types/endpoints/movies.d.ts +0 -150
- package/dist/@types/endpoints/movies.d.ts.map +0 -1
- package/dist/@types/endpoints/movies.js +0 -12
- package/dist/@types/endpoints/networks.d.ts +0 -14
- package/dist/@types/endpoints/networks.d.ts.map +0 -1
- package/dist/@types/endpoints/networks.js +0 -2
- package/dist/@types/endpoints/options.d.ts +0 -71
- package/dist/@types/endpoints/options.d.ts.map +0 -1
- package/dist/@types/endpoints/options.js +0 -2
- package/dist/@types/endpoints/people.d.ts +0 -135
- package/dist/@types/endpoints/people.d.ts.map +0 -1
- package/dist/@types/endpoints/people.js +0 -2
- package/dist/@types/endpoints/review.d.ts +0 -8
- package/dist/@types/endpoints/review.d.ts.map +0 -1
- package/dist/@types/endpoints/review.js +0 -2
- package/dist/@types/endpoints/search.d.ts +0 -32
- package/dist/@types/endpoints/search.d.ts.map +0 -1
- package/dist/@types/endpoints/search.js +0 -2
- package/dist/@types/endpoints/trending.d.ts +0 -12
- package/dist/@types/endpoints/trending.d.ts.map +0 -1
- package/dist/@types/endpoints/trending.js +0 -2
- package/dist/@types/endpoints/tvEpisode.d.ts +0 -65
- package/dist/@types/endpoints/tvEpisode.d.ts.map +0 -1
- package/dist/@types/endpoints/tvEpisode.js +0 -2
- package/dist/@types/endpoints/tvSeasons.d.ts +0 -31
- package/dist/@types/endpoints/tvSeasons.d.ts.map +0 -1
- package/dist/@types/endpoints/tvSeasons.js +0 -2
- package/dist/@types/endpoints/tvShows.d.ts +0 -260
- package/dist/@types/endpoints/tvShows.d.ts.map +0 -1
- package/dist/@types/endpoints/tvShows.js +0 -2
- package/dist/@types/endpoints/watchProviders.d.ts +0 -303
- package/dist/@types/endpoints/watchProviders.d.ts.map +0 -1
- package/dist/@types/endpoints/watchProviders.js +0 -2
- package/dist/@types/index.d.ts +0 -4
- package/dist/@types/index.d.ts.map +0 -1
- package/dist/@types/index.js +0 -19
- package/dist/@types/models/baseEndpoint.d.ts +0 -8
- package/dist/@types/models/baseEndpoint.d.ts.map +0 -1
- package/dist/@types/models/baseEndpoint.js +0 -11
- package/dist/@types/models/index.d.ts +0 -2
- package/dist/@types/models/index.d.ts.map +0 -1
- package/dist/@types/models/index.js +0 -17
- package/dist/@types/types.d.ts +0 -179
- package/dist/@types/types.d.ts.map +0 -1
- package/dist/@types/types.js +0 -2
- package/dist/endpoints/account.d.ts +0 -18
- package/dist/endpoints/account.d.ts.map +0 -1
- package/dist/endpoints/account.js +0 -25
- package/dist/endpoints/certification.d.ts +0 -23
- package/dist/endpoints/certification.d.ts.map +0 -1
- package/dist/endpoints/certification.js +0 -32
- package/dist/endpoints/changes.d.ts +0 -31
- package/dist/endpoints/changes.d.ts.map +0 -1
- package/dist/endpoints/changes.js +0 -42
- package/dist/endpoints/collections.d.ts +0 -34
- package/dist/endpoints/collections.d.ts.map +0 -1
- package/dist/endpoints/collections.js +0 -50
- package/dist/endpoints/companies.d.ts +0 -31
- package/dist/endpoints/companies.d.ts.map +0 -1
- package/dist/endpoints/companies.js +0 -42
- package/dist/endpoints/configuration.d.ts +0 -18
- package/dist/endpoints/configuration.d.ts.map +0 -1
- package/dist/endpoints/configuration.js +0 -25
- package/dist/endpoints/credits.d.ts +0 -19
- package/dist/endpoints/credits.d.ts.map +0 -1
- package/dist/endpoints/credits.js +0 -26
- package/dist/endpoints/discover.d.ts +0 -25
- package/dist/endpoints/discover.d.ts.map +0 -1
- package/dist/endpoints/discover.js +0 -35
- package/dist/endpoints/find.d.ts +0 -20
- package/dist/endpoints/find.d.ts.map +0 -1
- package/dist/endpoints/find.js +0 -27
- package/dist/endpoints/genre.d.ts +0 -25
- package/dist/endpoints/genre.d.ts.map +0 -1
- package/dist/endpoints/genre.js +0 -34
- package/dist/endpoints/index.d.ts +0 -22
- package/dist/endpoints/index.d.ts.map +0 -1
- package/dist/endpoints/index.js +0 -37
- package/dist/endpoints/keywords.d.ts +0 -26
- package/dist/endpoints/keywords.d.ts.map +0 -1
- package/dist/endpoints/keywords.js +0 -36
- package/dist/endpoints/movies.d.ts +0 -142
- package/dist/endpoints/movies.d.ts.map +0 -1
- package/dist/endpoints/movies.js +0 -198
- package/dist/endpoints/networks.d.ts +0 -31
- package/dist/endpoints/networks.d.ts.map +0 -1
- package/dist/endpoints/networks.js +0 -42
- package/dist/endpoints/people.d.ts +0 -85
- package/dist/endpoints/people.d.ts.map +0 -1
- package/dist/endpoints/people.js +0 -119
- package/dist/endpoints/review.d.ts +0 -19
- package/dist/endpoints/review.d.ts.map +0 -1
- package/dist/endpoints/review.js +0 -26
- package/dist/endpoints/search.d.ts +0 -58
- package/dist/endpoints/search.d.ts.map +0 -1
- package/dist/endpoints/search.js +0 -75
- package/dist/endpoints/trending.d.ts +0 -22
- package/dist/endpoints/trending.d.ts.map +0 -1
- package/dist/endpoints/trending.js +0 -29
- package/dist/endpoints/tvEpisodes.d.ts +0 -62
- package/dist/endpoints/tvEpisodes.d.ts.map +0 -1
- package/dist/endpoints/tvEpisodes.js +0 -98
- package/dist/endpoints/tvSeasons.d.ts +0 -71
- package/dist/endpoints/tvSeasons.d.ts.map +0 -1
- package/dist/endpoints/tvSeasons.js +0 -109
- package/dist/endpoints/tvShows.d.ts +0 -164
- package/dist/endpoints/tvShows.d.ts.map +0 -1
- package/dist/endpoints/tvShows.js +0 -230
- package/dist/endpoints/watchProviders.d.ts +0 -33
- package/dist/endpoints/watchProviders.d.ts.map +0 -1
- package/dist/endpoints/watchProviders.js +0 -46
- package/dist/index.d.ts +0 -30
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -46
- package/dist/utils/api.d.ts +0 -14
- package/dist/utils/api.d.ts.map +0 -1
- package/dist/utils/api.js +0 -61
- package/dist/utils/getimagePath.d.ts +0 -32
- package/dist/utils/getimagePath.d.ts.map +0 -1
- package/dist/utils/getimagePath.js +0 -50
- package/dist/utils/index.d.ts +0 -3
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -18
package/dist/index.d.cts
ADDED
|
@@ -0,0 +1,2812 @@
|
|
|
1
|
+
//#region src/@types/endpoints/account.d.ts
|
|
2
|
+
interface Gravatar {
|
|
3
|
+
hash: string;
|
|
4
|
+
}
|
|
5
|
+
interface Avatar {
|
|
6
|
+
gravatar: Gravatar;
|
|
7
|
+
}
|
|
8
|
+
interface AccountDetails {
|
|
9
|
+
avatar: Avatar;
|
|
10
|
+
id: number;
|
|
11
|
+
include_adult: boolean;
|
|
12
|
+
iso_3166_1: string;
|
|
13
|
+
iso_639_1: string;
|
|
14
|
+
name: string;
|
|
15
|
+
username: string;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=account.d.ts.map
|
|
18
|
+
//#endregion
|
|
19
|
+
//#region src/@types/endpoints/certification.d.ts
|
|
20
|
+
interface Certification {
|
|
21
|
+
certification: string;
|
|
22
|
+
meaning: string;
|
|
23
|
+
order: number;
|
|
24
|
+
}
|
|
25
|
+
interface Certifications {
|
|
26
|
+
certifications: {
|
|
27
|
+
US: Certification[];
|
|
28
|
+
CA: Certification[];
|
|
29
|
+
DE: Certification[];
|
|
30
|
+
GB: Certification[];
|
|
31
|
+
AU: Certification[];
|
|
32
|
+
BR: Certification[];
|
|
33
|
+
FR: Certification[];
|
|
34
|
+
NZ: Certification[];
|
|
35
|
+
IN: Certification[];
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=certification.d.ts.map
|
|
39
|
+
//#endregion
|
|
40
|
+
//#region src/@types/endpoints/changes.d.ts
|
|
41
|
+
interface MediaChange {
|
|
42
|
+
id: number;
|
|
43
|
+
adult: boolean | undefined;
|
|
44
|
+
}
|
|
45
|
+
interface MediaChanges {
|
|
46
|
+
results: MediaChange[];
|
|
47
|
+
page: number;
|
|
48
|
+
total_pages: number;
|
|
49
|
+
total_results: number;
|
|
50
|
+
}
|
|
51
|
+
interface Changes<T> {
|
|
52
|
+
changes: Change<T>[];
|
|
53
|
+
}
|
|
54
|
+
interface Change<T> {
|
|
55
|
+
key: string;
|
|
56
|
+
items: ChangeItem<T>[];
|
|
57
|
+
}
|
|
58
|
+
interface ChangeItem<T> {
|
|
59
|
+
id: string;
|
|
60
|
+
action: string;
|
|
61
|
+
time: string;
|
|
62
|
+
value: T;
|
|
63
|
+
iso_639_1: string;
|
|
64
|
+
original_value: T;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=changes.d.ts.map
|
|
67
|
+
//#endregion
|
|
68
|
+
//#region src/@types/endpoints/collection.d.ts
|
|
69
|
+
interface Collection {
|
|
70
|
+
id: number;
|
|
71
|
+
backdrop_path: string;
|
|
72
|
+
name: string;
|
|
73
|
+
poster_path: string;
|
|
74
|
+
adult: boolean;
|
|
75
|
+
original_language: string;
|
|
76
|
+
original_name: string;
|
|
77
|
+
overview: string;
|
|
78
|
+
}
|
|
79
|
+
interface DetailedCollection extends Collection {
|
|
80
|
+
parts: Movie[];
|
|
81
|
+
}
|
|
82
|
+
interface CollectionImageOptions extends LanguageOption {
|
|
83
|
+
/**
|
|
84
|
+
* a list of ISO-639-1 values to query
|
|
85
|
+
*/
|
|
86
|
+
include_image_language?: string[];
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=collection.d.ts.map
|
|
89
|
+
//#endregion
|
|
90
|
+
//#region src/@types/endpoints/companies.d.ts
|
|
91
|
+
interface CompanyDetails {
|
|
92
|
+
description: string;
|
|
93
|
+
headquarters: string;
|
|
94
|
+
homepage: string;
|
|
95
|
+
id: number;
|
|
96
|
+
logo_path: string;
|
|
97
|
+
name: string;
|
|
98
|
+
origin_country: string;
|
|
99
|
+
parent_company: ParentCompany;
|
|
100
|
+
}
|
|
101
|
+
interface ParentCompany {
|
|
102
|
+
name: string;
|
|
103
|
+
id: number;
|
|
104
|
+
logo_path: string;
|
|
105
|
+
}
|
|
106
|
+
interface AlternativeNames {
|
|
107
|
+
id: number;
|
|
108
|
+
results: Name[];
|
|
109
|
+
}
|
|
110
|
+
interface Name {
|
|
111
|
+
name: string;
|
|
112
|
+
type: string;
|
|
113
|
+
}
|
|
114
|
+
interface CompanyImages {
|
|
115
|
+
id: number;
|
|
116
|
+
logos: Image[];
|
|
117
|
+
}
|
|
118
|
+
//# sourceMappingURL=companies.d.ts.map
|
|
119
|
+
//#endregion
|
|
120
|
+
//#region src/@types/endpoints/configuration.d.ts
|
|
121
|
+
interface ImageConfiguration {
|
|
122
|
+
base_url: string;
|
|
123
|
+
secure_base_url: string;
|
|
124
|
+
backdrop_sizes: BackdropSizes[];
|
|
125
|
+
logo_sizes: LogoSizes[];
|
|
126
|
+
poster_sizes: PosterSizes[];
|
|
127
|
+
profile_sizes: ProfileSizes[];
|
|
128
|
+
still_sizes: StillSizes[];
|
|
129
|
+
}
|
|
130
|
+
interface Configuration {
|
|
131
|
+
images: ImageConfiguration;
|
|
132
|
+
change_keys: ChangeKeys[];
|
|
133
|
+
}
|
|
134
|
+
declare enum BackdropSizes {
|
|
135
|
+
W300 = "w300",
|
|
136
|
+
W500 = "w500",
|
|
137
|
+
W780 = "w780",
|
|
138
|
+
W1280 = "w1280",
|
|
139
|
+
ORIGINAL = "original",
|
|
140
|
+
}
|
|
141
|
+
declare enum LogoSizes {
|
|
142
|
+
W45 = "w45",
|
|
143
|
+
W92 = "w92",
|
|
144
|
+
W154 = "w154",
|
|
145
|
+
W185 = "w185",
|
|
146
|
+
W300 = "w300",
|
|
147
|
+
W500 = "w500",
|
|
148
|
+
ORIGINAL = "original",
|
|
149
|
+
}
|
|
150
|
+
declare enum PosterSizes {
|
|
151
|
+
W92 = "w92",
|
|
152
|
+
W154 = "w154",
|
|
153
|
+
W185 = "w185",
|
|
154
|
+
W300 = "w300",
|
|
155
|
+
W500 = "w500",
|
|
156
|
+
W780 = "w780",
|
|
157
|
+
ORIGINAL = "original",
|
|
158
|
+
}
|
|
159
|
+
declare enum ProfileSizes {
|
|
160
|
+
W45 = "w45",
|
|
161
|
+
W185 = "w185",
|
|
162
|
+
W632 = "w632",
|
|
163
|
+
ORIGINAL = "original",
|
|
164
|
+
}
|
|
165
|
+
declare enum StillSizes {
|
|
166
|
+
W92 = "w92",
|
|
167
|
+
W185 = "w185",
|
|
168
|
+
W300 = "w300",
|
|
169
|
+
ORIGINAL = "original",
|
|
170
|
+
}
|
|
171
|
+
declare enum ChangeKeys {
|
|
172
|
+
ADULT = "adult",
|
|
173
|
+
AIR_DATE = "air_date",
|
|
174
|
+
ALSO_KNOWN_AS = "also_known_as",
|
|
175
|
+
ALTERNATIVE_TITLES = "alternative_titles",
|
|
176
|
+
BIOGRAPHY = "biography",
|
|
177
|
+
BIRTHDAY = "birthday",
|
|
178
|
+
BUDGET = "budget",
|
|
179
|
+
CAST = "cast",
|
|
180
|
+
CERTIFICATIONS = "certifications",
|
|
181
|
+
CHARACTER_NAMES = "character_names",
|
|
182
|
+
CREATED_BY = "created_by",
|
|
183
|
+
CREW = "crew",
|
|
184
|
+
DEATHDAY = "deathday",
|
|
185
|
+
EPISODE = "episode",
|
|
186
|
+
EPISODE_NUMBER = "episode_number",
|
|
187
|
+
EPISODE_RUN_TIME = "episode_run_time",
|
|
188
|
+
FREEBASE_ID = "freebase_id",
|
|
189
|
+
FREEBASE_MID = "freebase_mid",
|
|
190
|
+
GENERAL = "general",
|
|
191
|
+
GENRES = "genres",
|
|
192
|
+
GUEST_STARS = "guest_stars",
|
|
193
|
+
HOMEPAGE = "homepage",
|
|
194
|
+
IMAGES = "images",
|
|
195
|
+
IMDB_ID = "imdb_id",
|
|
196
|
+
LANGUAGES = "languages",
|
|
197
|
+
NAME = "name",
|
|
198
|
+
NETWORK = "network",
|
|
199
|
+
ORIGIN_COUNTRY = "origin_country",
|
|
200
|
+
ORIGINAL_NAME = "original_name",
|
|
201
|
+
ORIGINAL_TITLE = "original_title",
|
|
202
|
+
OVERVIEW = "overview",
|
|
203
|
+
PARTS = "parts",
|
|
204
|
+
PLACE_OF_BIRTH = "place_of_birth",
|
|
205
|
+
PLOT_KEYWORDS = "plot_keywords",
|
|
206
|
+
PRODUCTION_CODE = "production_code",
|
|
207
|
+
PRODUCTION_COMPANIES = "production_companies",
|
|
208
|
+
PRODUCTION_COUNTRIES = "production_countries",
|
|
209
|
+
RELEASES = "releases",
|
|
210
|
+
REVENUE = "revenue",
|
|
211
|
+
RUNTIME = "runtime",
|
|
212
|
+
SEASON = "season",
|
|
213
|
+
SEASON_NUMBER = "season_number",
|
|
214
|
+
SEASON_REGULAR = "season_regular",
|
|
215
|
+
SPOKEN_LANGUAGES = "spoken_languages",
|
|
216
|
+
STATUS = "status",
|
|
217
|
+
TAGLINE = "tagline",
|
|
218
|
+
TITLE = "title",
|
|
219
|
+
TRANSLATIONS = "translations",
|
|
220
|
+
TVDB_ID = "tvdb_id",
|
|
221
|
+
TVRAGE_ID = "tvrage_id",
|
|
222
|
+
TYPE = "type",
|
|
223
|
+
VIDEO = "video",
|
|
224
|
+
VIDEOS = "videos",
|
|
225
|
+
}
|
|
226
|
+
//# sourceMappingURL=configuration.d.ts.map
|
|
227
|
+
//#endregion
|
|
228
|
+
//#region src/@types/endpoints/credits.d.ts
|
|
229
|
+
interface CreditSeason {
|
|
230
|
+
air_date?: string;
|
|
231
|
+
poster_path?: string;
|
|
232
|
+
season_number?: number;
|
|
233
|
+
}
|
|
234
|
+
interface Media$1 {
|
|
235
|
+
i?: number;
|
|
236
|
+
name?: string;
|
|
237
|
+
first_air_date?: string;
|
|
238
|
+
vote_count?: number;
|
|
239
|
+
overview?: string;
|
|
240
|
+
vote_average?: number;
|
|
241
|
+
backdrop_path?: string;
|
|
242
|
+
genre_ids?: number[];
|
|
243
|
+
original_name?: string;
|
|
244
|
+
origin_country?: string[];
|
|
245
|
+
poster_path?: string;
|
|
246
|
+
original_language?: string;
|
|
247
|
+
popularity?: number;
|
|
248
|
+
character?: string;
|
|
249
|
+
episodes?: string[];
|
|
250
|
+
seasons?: CreditSeason[];
|
|
251
|
+
}
|
|
252
|
+
interface CreditResponse {
|
|
253
|
+
credit_type?: string;
|
|
254
|
+
department?: string;
|
|
255
|
+
job?: string;
|
|
256
|
+
media?: Media$1;
|
|
257
|
+
media_type?: string;
|
|
258
|
+
id?: string;
|
|
259
|
+
person?: Person;
|
|
260
|
+
}
|
|
261
|
+
interface Title {
|
|
262
|
+
iso_3166_1: string;
|
|
263
|
+
title: string;
|
|
264
|
+
type: string;
|
|
265
|
+
}
|
|
266
|
+
interface AlternativeTitles {
|
|
267
|
+
id: number;
|
|
268
|
+
titles: Title[];
|
|
269
|
+
}
|
|
270
|
+
interface Cast {
|
|
271
|
+
adult: boolean;
|
|
272
|
+
gender: number;
|
|
273
|
+
id: number;
|
|
274
|
+
known_for_department: string;
|
|
275
|
+
name: string;
|
|
276
|
+
original_name: string;
|
|
277
|
+
popularity: number;
|
|
278
|
+
profile_path: string;
|
|
279
|
+
cast_id: number;
|
|
280
|
+
character: string;
|
|
281
|
+
credit_id: string;
|
|
282
|
+
order: number;
|
|
283
|
+
}
|
|
284
|
+
interface Crew {
|
|
285
|
+
adult: boolean;
|
|
286
|
+
gender: number;
|
|
287
|
+
id: number;
|
|
288
|
+
known_for_department: string;
|
|
289
|
+
name: string;
|
|
290
|
+
original_name: string;
|
|
291
|
+
popularity: number;
|
|
292
|
+
profile_path: string;
|
|
293
|
+
credit_id: string;
|
|
294
|
+
department: string;
|
|
295
|
+
job: string;
|
|
296
|
+
}
|
|
297
|
+
interface Credits {
|
|
298
|
+
id: number;
|
|
299
|
+
cast: Cast[];
|
|
300
|
+
crew: Crew[];
|
|
301
|
+
}
|
|
302
|
+
interface ImageCollection {
|
|
303
|
+
id: number;
|
|
304
|
+
backdrops: Image[];
|
|
305
|
+
posters: Image[];
|
|
306
|
+
}
|
|
307
|
+
interface Video {
|
|
308
|
+
id: string;
|
|
309
|
+
iso_639_1: string;
|
|
310
|
+
iso_3166_1: string;
|
|
311
|
+
key: string;
|
|
312
|
+
name: string;
|
|
313
|
+
site: string;
|
|
314
|
+
size: number;
|
|
315
|
+
type: string;
|
|
316
|
+
}
|
|
317
|
+
interface Videos {
|
|
318
|
+
id: number;
|
|
319
|
+
results: Video[];
|
|
320
|
+
}
|
|
321
|
+
interface AggregateCredits {
|
|
322
|
+
id: number;
|
|
323
|
+
cast: AggregateCast[];
|
|
324
|
+
crew: AggregateCrew[];
|
|
325
|
+
}
|
|
326
|
+
interface CastRole {
|
|
327
|
+
credit_id: string;
|
|
328
|
+
character: string;
|
|
329
|
+
episode_count: number;
|
|
330
|
+
}
|
|
331
|
+
interface AggregateCast {
|
|
332
|
+
adult: boolean;
|
|
333
|
+
gender: number;
|
|
334
|
+
id: number;
|
|
335
|
+
known_for_department: string;
|
|
336
|
+
name: string;
|
|
337
|
+
original_name: string;
|
|
338
|
+
popularity: number;
|
|
339
|
+
profile_path: string;
|
|
340
|
+
roles: CastRole[];
|
|
341
|
+
total_episode_count: number;
|
|
342
|
+
order: number;
|
|
343
|
+
}
|
|
344
|
+
interface CrewJob {
|
|
345
|
+
credit_id: string;
|
|
346
|
+
job: string;
|
|
347
|
+
episode_count: number;
|
|
348
|
+
}
|
|
349
|
+
interface AggregateCrew {
|
|
350
|
+
adult: boolean;
|
|
351
|
+
gender: number;
|
|
352
|
+
id: number;
|
|
353
|
+
known_for_department: string;
|
|
354
|
+
name: string;
|
|
355
|
+
original_name: string;
|
|
356
|
+
popularity: number;
|
|
357
|
+
profile_path: string;
|
|
358
|
+
jobs: CrewJob[];
|
|
359
|
+
department: string;
|
|
360
|
+
total_episode_count: number;
|
|
361
|
+
}
|
|
362
|
+
//# sourceMappingURL=credits.d.ts.map
|
|
363
|
+
//#endregion
|
|
364
|
+
//#region src/@types/endpoints/discover.d.ts
|
|
365
|
+
type SortOption = "popularity.asc" | "popularity.desc" | "release_date.asc" | "release_date.desc" | "revenue.asc" | "revenue.desc" | "primary_release_date.asc" | "primary_release_date.desc" | "original_title.asc" | "original_title.desc" | "vote_average.asc" | "vote_average.desc" | "vote_count.asc" | "vote_count.desc";
|
|
366
|
+
interface MovieDiscoverResult {
|
|
367
|
+
page: number;
|
|
368
|
+
results: Movie[];
|
|
369
|
+
total_results: number;
|
|
370
|
+
total_pages: number;
|
|
371
|
+
}
|
|
372
|
+
interface TvShowDiscoverResult {
|
|
373
|
+
page: number;
|
|
374
|
+
results: TV[];
|
|
375
|
+
total_results: number;
|
|
376
|
+
total_pages: number;
|
|
377
|
+
}
|
|
378
|
+
interface DiscoverQueryOptions {
|
|
379
|
+
language?: string;
|
|
380
|
+
sort_by?: SortOption;
|
|
381
|
+
page?: number;
|
|
382
|
+
"vote_average.gte"?: number;
|
|
383
|
+
"vote_count.gte"?: number;
|
|
384
|
+
"vote_count.lte"?: number;
|
|
385
|
+
"vote_average.lte"?: number;
|
|
386
|
+
with_watch_providers?: string;
|
|
387
|
+
watch_region?: string;
|
|
388
|
+
without_companies?: string;
|
|
389
|
+
with_watch_monetization_types?: "flatrate" | "free" | "ads" | "rent" | "buy";
|
|
390
|
+
"with_runtime.gte"?: number;
|
|
391
|
+
"with_runtime.lte"?: number;
|
|
392
|
+
with_genres?: string;
|
|
393
|
+
without_genres?: string;
|
|
394
|
+
with_original_language?: string;
|
|
395
|
+
without_keywords?: string;
|
|
396
|
+
with_keywords?: string;
|
|
397
|
+
with_companies?: string;
|
|
398
|
+
}
|
|
399
|
+
interface MovieQueryOptions extends DiscoverQueryOptions {
|
|
400
|
+
region?: string;
|
|
401
|
+
certification_country?: string;
|
|
402
|
+
certification?: string;
|
|
403
|
+
"certification.lte"?: string;
|
|
404
|
+
"certification.gte"?: string;
|
|
405
|
+
include_adult?: boolean;
|
|
406
|
+
include_video?: boolean;
|
|
407
|
+
primary_release_year?: number;
|
|
408
|
+
"primary_release_date.gte"?: string;
|
|
409
|
+
"primary_release_date.lte"?: string;
|
|
410
|
+
"release_date.gte"?: string;
|
|
411
|
+
"release_date.lte"?: string;
|
|
412
|
+
with_release_type?: string;
|
|
413
|
+
year?: number;
|
|
414
|
+
with_cast?: string;
|
|
415
|
+
with_crew?: string;
|
|
416
|
+
with_people?: string;
|
|
417
|
+
}
|
|
418
|
+
interface TvShowQueryOptions extends DiscoverQueryOptions {
|
|
419
|
+
"air_date.gte"?: string;
|
|
420
|
+
"air_date.lte"?: string;
|
|
421
|
+
"first_air_date.gte"?: string;
|
|
422
|
+
"first_air_date.lte"?: string;
|
|
423
|
+
first_air_date_year?: number;
|
|
424
|
+
timezone?: string;
|
|
425
|
+
with_networks?: string;
|
|
426
|
+
include_null_first_air_dates?: boolean;
|
|
427
|
+
screened_theatrically?: boolean;
|
|
428
|
+
with_status?: string;
|
|
429
|
+
with_type?: string;
|
|
430
|
+
}
|
|
431
|
+
//# sourceMappingURL=discover.d.ts.map
|
|
432
|
+
//#endregion
|
|
433
|
+
//#region src/@types/endpoints/find.d.ts
|
|
434
|
+
type ExternalSource = "imdb_id" | "freebase_mid" | "freebase_id" | "tvdb_id" | "tvrage_id" | "facebook_id" | "twitter_id" | "instagram_id";
|
|
435
|
+
interface ExternalIdOptions {
|
|
436
|
+
external_source: ExternalSource;
|
|
437
|
+
language?: string;
|
|
438
|
+
}
|
|
439
|
+
type MediaTagged<T> = T & {
|
|
440
|
+
media_type: MediaType;
|
|
441
|
+
};
|
|
442
|
+
interface FindResult {
|
|
443
|
+
movie_results: MediaTagged<Movie>[];
|
|
444
|
+
person_results: MediaTagged<Person>[];
|
|
445
|
+
tv_results: MediaTagged<TV>[];
|
|
446
|
+
tv_episode_results: MediaTagged<Episode>[];
|
|
447
|
+
tv_season_results: MediaTagged<Season & {
|
|
448
|
+
show_id: string;
|
|
449
|
+
}>[];
|
|
450
|
+
}
|
|
451
|
+
//#endregion
|
|
452
|
+
//#region src/@types/endpoints/genre.d.ts
|
|
453
|
+
interface Genres {
|
|
454
|
+
genres: Array<{
|
|
455
|
+
id: number;
|
|
456
|
+
name: string;
|
|
457
|
+
}>;
|
|
458
|
+
}
|
|
459
|
+
//# sourceMappingURL=genre.d.ts.map
|
|
460
|
+
//#endregion
|
|
461
|
+
//#region src/@types/endpoints/options.d.ts
|
|
462
|
+
interface LanguageOption {
|
|
463
|
+
language?: string;
|
|
464
|
+
}
|
|
465
|
+
interface RegionOption {
|
|
466
|
+
region?: string;
|
|
467
|
+
}
|
|
468
|
+
interface TimezoneOption {
|
|
469
|
+
timezone?: string;
|
|
470
|
+
}
|
|
471
|
+
interface PageOption {
|
|
472
|
+
page?: number;
|
|
473
|
+
}
|
|
474
|
+
interface ChangeOption extends PageOption {
|
|
475
|
+
start_date?: Date;
|
|
476
|
+
end_date?: Date;
|
|
477
|
+
}
|
|
478
|
+
type AppendToResponseMovieKey = "images" | "videos" | "credits" | "recommendations" | "reviews" | "changes" | "similar" | "lists" | "release_dates" | "alternative_titles" | "external_ids" | "translations" | "watch/providers" | "keywords";
|
|
479
|
+
type AppendToResponseTvKey = "content_ratings" | "images" | "videos" | "credits" | "recommendations" | "reviews" | "changes" | "similar" | "alternative_titles" | "external_ids" | "translations" | "watch/providers" | "aggregate_credits" | "episode_groups" | "screened_theatrically" | "keywords";
|
|
480
|
+
type AppendToResponsePersonKey = "images" | "changes" | "movie_credits" | "tv_credits" | "combined_credits" | "external_ids" | "tagged_images" | "translations";
|
|
481
|
+
type AppendToResponseTvEpisodeKey = "images" | "credits" | "external_ids" | "videos" | "translations";
|
|
482
|
+
type AppendToResponseTvSeasonKey = "images" | "credits" | "external_ids" | "videos" | "aggregate_credits" | "translations";
|
|
483
|
+
type AppendToResponseAllKeys = AppendToResponseTvKey | AppendToResponseMovieKey | AppendToResponseTvEpisodeKey | AppendToResponseTvSeasonKey | AppendToResponsePersonKey;
|
|
484
|
+
type AppendToResponseMediaType = "movie" | "tvShow" | "person" | "tvSeason" | "tvEpisode";
|
|
485
|
+
type AppendToResponse<K, T extends AppendToResponseAllKeys[] | undefined, Media extends AppendToResponseMediaType> = K & (T extends undefined ? object : T extends Array<unknown> ? ("credits" extends T[number] ? {
|
|
486
|
+
credits: Media extends "tvEpisode" ? TvEpisodeCredit : Omit<Credits, "id">;
|
|
487
|
+
} : object) & ("videos" extends T[number] ? {
|
|
488
|
+
videos: Omit<Videos, "id">;
|
|
489
|
+
} : object) & ("images" extends T[number] ? {
|
|
490
|
+
images: Omit<Media extends "person" ? PeopleImages : Images, "id">;
|
|
491
|
+
} : object) & ("recommendations" extends T[number] ? {
|
|
492
|
+
recommendations: Recommendations;
|
|
493
|
+
} : object) & ("reviews" extends T[number] ? {
|
|
494
|
+
reviews: Omit<Reviews, "id">;
|
|
495
|
+
} : object) & ("changes" extends T[number] ? {
|
|
496
|
+
changes: Changes<Media extends "person" ? PersonChangeValue : Media extends "movie" ? MovieChangeValue : Media extends "tvShow" ? TvShowChangeValue : Media extends "tvSeason" ? TvSeasonChangeValue : TvEpisodeChangeValue>;
|
|
497
|
+
} : object) & ("keywords" extends T[number] ? {
|
|
498
|
+
keywords: Omit<Keywords, "id">;
|
|
499
|
+
} : object) & ("lists" extends T[number] ? {
|
|
500
|
+
lists: Omit<MovieLists, "id">;
|
|
501
|
+
} : object) & ("release_dates" extends T[number] ? {
|
|
502
|
+
release_dates: Omit<ReleaseDates, "id">;
|
|
503
|
+
} : object) & ("alternative_titles" extends T[number] ? {
|
|
504
|
+
alternative_titles: Omit<AlternativeTitles, "id">;
|
|
505
|
+
} : object) & ("external_ids" extends T[number] ? {
|
|
506
|
+
external_ids: Omit<ExternalIds, "id">;
|
|
507
|
+
} : object) & ("translations" extends T[number] ? {
|
|
508
|
+
translations: Omit<Media extends "person" ? PersonTranslations : Media extends "tvEpisode" ? TvEpisodeTranslations : Translations, "id">;
|
|
509
|
+
} : object) & ("watch/providers" extends T[number] ? {
|
|
510
|
+
"watch/providers": Omit<WatchProviders, "id">;
|
|
511
|
+
} : object) & ("aggregate_credits" extends T[number] ? {
|
|
512
|
+
aggregate_credits: Omit<Credits, "id">;
|
|
513
|
+
} : object) & ("episode_groups" extends T[number] ? {
|
|
514
|
+
episode_groups: Omit<EpisodeGroups, "id">;
|
|
515
|
+
} : object) & ("screened_theatrically" extends T[number] ? {
|
|
516
|
+
screened_theatrically: Omit<ScreenedTheatrically, "id">;
|
|
517
|
+
} : object) & ("similar" extends T[number] ? {
|
|
518
|
+
similar: Media extends "movie" ? SimilarMovies : Media extends "tvShow" ? Similartv : unknown;
|
|
519
|
+
} : object) & ("content_ratings" extends T[number] ? {
|
|
520
|
+
content_ratings: Omit<ContentRatings, "id">;
|
|
521
|
+
} : object) & ("movie_credits" extends T[number] ? {
|
|
522
|
+
movie_credits: Omit<PersonMovieCredit, "id">;
|
|
523
|
+
} : object) & ("tv_credits" extends T[number] ? {
|
|
524
|
+
tv_credits: Omit<PersonTvShowCredit, "id">;
|
|
525
|
+
} : object) & ("combined_credits" extends T[number] ? {
|
|
526
|
+
combined_credits: Omit<PersonCombinedCredits, "id">;
|
|
527
|
+
} : object) & ("tagged_images" extends T[number] ? {
|
|
528
|
+
tagged_images: TaggedImages;
|
|
529
|
+
} : object) : never);
|
|
530
|
+
//#endregion
|
|
531
|
+
//#region src/@types/endpoints/keywords.d.ts
|
|
532
|
+
interface KeywordsOptions extends PageOption {
|
|
533
|
+
include_adult?: boolean;
|
|
534
|
+
language?: string;
|
|
535
|
+
}
|
|
536
|
+
interface BelongingMovies {
|
|
537
|
+
page: number;
|
|
538
|
+
results: Movie[];
|
|
539
|
+
total_results: number;
|
|
540
|
+
total_pages: number;
|
|
541
|
+
}
|
|
542
|
+
interface Keyword {
|
|
543
|
+
id: number;
|
|
544
|
+
name: string;
|
|
545
|
+
}
|
|
546
|
+
interface Keywords {
|
|
547
|
+
id: number;
|
|
548
|
+
keywords: Keyword[];
|
|
549
|
+
}
|
|
550
|
+
//# sourceMappingURL=keywords.d.ts.map
|
|
551
|
+
//#endregion
|
|
552
|
+
//#region src/@types/endpoints/movies.d.ts
|
|
553
|
+
interface BelongsToCollection {
|
|
554
|
+
id: number;
|
|
555
|
+
name: string;
|
|
556
|
+
poster_path: string;
|
|
557
|
+
backdrop_path: string;
|
|
558
|
+
}
|
|
559
|
+
interface MovieDetails {
|
|
560
|
+
adult: boolean;
|
|
561
|
+
backdrop_path: string;
|
|
562
|
+
belongs_to_collection?: BelongsToCollection;
|
|
563
|
+
budget: number;
|
|
564
|
+
genres: Genre[];
|
|
565
|
+
homepage: string;
|
|
566
|
+
id: number;
|
|
567
|
+
imdb_id: string;
|
|
568
|
+
original_language: string;
|
|
569
|
+
original_title: string;
|
|
570
|
+
overview: string;
|
|
571
|
+
popularity: number;
|
|
572
|
+
poster_path?: string;
|
|
573
|
+
production_companies: ProductionCompany[];
|
|
574
|
+
production_countries: ProductionCountry[];
|
|
575
|
+
release_date: string;
|
|
576
|
+
revenue: number;
|
|
577
|
+
runtime: number;
|
|
578
|
+
spoken_languages: SpokenLanguage[];
|
|
579
|
+
status: string;
|
|
580
|
+
tagline: string;
|
|
581
|
+
title: string;
|
|
582
|
+
video: boolean;
|
|
583
|
+
vote_average: number;
|
|
584
|
+
vote_count: number;
|
|
585
|
+
}
|
|
586
|
+
declare enum ReleaseDateType {
|
|
587
|
+
Premiere = 1,
|
|
588
|
+
"Theatrical (limited)" = 2,
|
|
589
|
+
Theatrical = 3,
|
|
590
|
+
Digital = 4,
|
|
591
|
+
Physical = 5,
|
|
592
|
+
TV = 6,
|
|
593
|
+
}
|
|
594
|
+
interface ReleaseDate {
|
|
595
|
+
certification: string;
|
|
596
|
+
iso_639_1: string;
|
|
597
|
+
release_date: Date;
|
|
598
|
+
type: ReleaseDateType;
|
|
599
|
+
note: string;
|
|
600
|
+
}
|
|
601
|
+
interface ReleaseDateResult {
|
|
602
|
+
iso_3166_1: string;
|
|
603
|
+
release_dates: ReleaseDate[];
|
|
604
|
+
}
|
|
605
|
+
interface ReleaseDates {
|
|
606
|
+
id: number;
|
|
607
|
+
results: ReleaseDateResult[];
|
|
608
|
+
}
|
|
609
|
+
interface SimilarMovies {
|
|
610
|
+
page: number;
|
|
611
|
+
results: Movie[];
|
|
612
|
+
total_pages: number;
|
|
613
|
+
total_results: number;
|
|
614
|
+
}
|
|
615
|
+
interface MovieList {
|
|
616
|
+
description: string;
|
|
617
|
+
favorite_count: number;
|
|
618
|
+
id: number;
|
|
619
|
+
item_count: number;
|
|
620
|
+
iso_639_1: string;
|
|
621
|
+
list_type: string;
|
|
622
|
+
name: string;
|
|
623
|
+
poster_path: string;
|
|
624
|
+
}
|
|
625
|
+
interface MovieLists {
|
|
626
|
+
id: number;
|
|
627
|
+
page: number;
|
|
628
|
+
results: MovieList[];
|
|
629
|
+
total_pages: number;
|
|
630
|
+
total_results: number;
|
|
631
|
+
}
|
|
632
|
+
interface LatestMovie {
|
|
633
|
+
adult: boolean;
|
|
634
|
+
backdrop_path?: string;
|
|
635
|
+
belongs_to_collection?: BelongsToCollection;
|
|
636
|
+
budget: number;
|
|
637
|
+
genres: Genre[];
|
|
638
|
+
homepage: string;
|
|
639
|
+
id: number;
|
|
640
|
+
imdb_id: string;
|
|
641
|
+
original_language: string;
|
|
642
|
+
original_title: string;
|
|
643
|
+
overview: string;
|
|
644
|
+
popularity: number;
|
|
645
|
+
poster_path: string;
|
|
646
|
+
production_companies: ProductionCompany[];
|
|
647
|
+
production_countries: ProductionCountry[];
|
|
648
|
+
release_date: string;
|
|
649
|
+
revenue: number;
|
|
650
|
+
runtime: number;
|
|
651
|
+
spoken_languages: SpokenLanguage[];
|
|
652
|
+
status: string;
|
|
653
|
+
tagline: string;
|
|
654
|
+
title: string;
|
|
655
|
+
video: boolean;
|
|
656
|
+
vote_average: number;
|
|
657
|
+
vote_count: number;
|
|
658
|
+
}
|
|
659
|
+
interface Dates {
|
|
660
|
+
maximum: string;
|
|
661
|
+
minimum: string;
|
|
662
|
+
}
|
|
663
|
+
interface MoviesPlayingNow {
|
|
664
|
+
page: number;
|
|
665
|
+
results: Movie[];
|
|
666
|
+
dates: Dates;
|
|
667
|
+
total_pages: number;
|
|
668
|
+
total_results: number;
|
|
669
|
+
}
|
|
670
|
+
interface PopularMovies {
|
|
671
|
+
page: number;
|
|
672
|
+
results: Movie[];
|
|
673
|
+
total_results: number;
|
|
674
|
+
total_pages: number;
|
|
675
|
+
}
|
|
676
|
+
interface TopRatedMovies {
|
|
677
|
+
page: number;
|
|
678
|
+
results: Movie[];
|
|
679
|
+
total_results: number;
|
|
680
|
+
total_pages: number;
|
|
681
|
+
}
|
|
682
|
+
interface UpcomingMovies {
|
|
683
|
+
page: number;
|
|
684
|
+
results: Movie[];
|
|
685
|
+
total_results: number;
|
|
686
|
+
total_pages: number;
|
|
687
|
+
}
|
|
688
|
+
type MovieChangeValue = string | {
|
|
689
|
+
person_id: number;
|
|
690
|
+
character: string;
|
|
691
|
+
order: number;
|
|
692
|
+
cast_id: number;
|
|
693
|
+
credit_id: string;
|
|
694
|
+
} | unknown;
|
|
695
|
+
interface MoviesImageSearchOptions extends LanguageOption {
|
|
696
|
+
/**
|
|
697
|
+
* a list of ISO-639-1 values to query
|
|
698
|
+
*/
|
|
699
|
+
include_image_language?: string[];
|
|
700
|
+
}
|
|
701
|
+
//# sourceMappingURL=movies.d.ts.map
|
|
702
|
+
//#endregion
|
|
703
|
+
//#region src/@types/endpoints/networks.d.ts
|
|
704
|
+
interface NetworkDetails {
|
|
705
|
+
headquarters: string;
|
|
706
|
+
homepage: string;
|
|
707
|
+
id: number;
|
|
708
|
+
logo_path: string;
|
|
709
|
+
name: string;
|
|
710
|
+
origin_country: string;
|
|
711
|
+
}
|
|
712
|
+
interface NetworkImages {
|
|
713
|
+
id: number;
|
|
714
|
+
logos: Image[];
|
|
715
|
+
}
|
|
716
|
+
//# sourceMappingURL=networks.d.ts.map
|
|
717
|
+
//#endregion
|
|
718
|
+
//#region src/@types/endpoints/people.d.ts
|
|
719
|
+
interface Cast$1 {
|
|
720
|
+
character: string;
|
|
721
|
+
credit_id: string;
|
|
722
|
+
vote_count: number;
|
|
723
|
+
id: number;
|
|
724
|
+
backdrop_path: string;
|
|
725
|
+
poster_path: string;
|
|
726
|
+
original_language: string;
|
|
727
|
+
vote_average: number;
|
|
728
|
+
genre_ids: number[];
|
|
729
|
+
popularity: number;
|
|
730
|
+
overview: string;
|
|
731
|
+
}
|
|
732
|
+
interface Crew$1 {
|
|
733
|
+
id: number;
|
|
734
|
+
department: string;
|
|
735
|
+
original_language: string;
|
|
736
|
+
credit_id: string;
|
|
737
|
+
overview: string;
|
|
738
|
+
vote_count: number;
|
|
739
|
+
poster_path: string;
|
|
740
|
+
backdrop_path: string;
|
|
741
|
+
popularity: number;
|
|
742
|
+
genre_ids: number[];
|
|
743
|
+
job: string;
|
|
744
|
+
vote_average: number;
|
|
745
|
+
}
|
|
746
|
+
interface PersonMovieCast extends Cast$1 {
|
|
747
|
+
release_date: string;
|
|
748
|
+
video: boolean;
|
|
749
|
+
adult: boolean;
|
|
750
|
+
title: string;
|
|
751
|
+
original_title: string;
|
|
752
|
+
}
|
|
753
|
+
interface PersonMovieCrew extends Crew$1 {
|
|
754
|
+
original_title: string;
|
|
755
|
+
video: boolean;
|
|
756
|
+
title: string;
|
|
757
|
+
adult: boolean;
|
|
758
|
+
release_date: string;
|
|
759
|
+
}
|
|
760
|
+
interface PersonTvShowCrew extends Crew$1 {
|
|
761
|
+
episode_count: number;
|
|
762
|
+
origin_country: string[];
|
|
763
|
+
original_name: string;
|
|
764
|
+
name: string;
|
|
765
|
+
first_air_date: string;
|
|
766
|
+
}
|
|
767
|
+
interface PersonTvShowCast extends Cast$1 {
|
|
768
|
+
original_name: string;
|
|
769
|
+
name: string;
|
|
770
|
+
episode_count: number;
|
|
771
|
+
first_air_date: string;
|
|
772
|
+
origin_country: string[];
|
|
773
|
+
}
|
|
774
|
+
interface PersonMovieCredit {
|
|
775
|
+
cast: PersonMovieCast[];
|
|
776
|
+
crew: PersonMovieCrew[];
|
|
777
|
+
id: number;
|
|
778
|
+
}
|
|
779
|
+
interface PersonTvShowCredit {
|
|
780
|
+
cast: PersonTvShowCast[];
|
|
781
|
+
crew: PersonTvShowCrew[];
|
|
782
|
+
id: number;
|
|
783
|
+
}
|
|
784
|
+
interface PersonCombinedCredits {
|
|
785
|
+
cast: (PersonMovieCast & PersonTvShowCast)[];
|
|
786
|
+
crew: (PersonMovieCrew & PersonTvShowCrew)[];
|
|
787
|
+
id: number;
|
|
788
|
+
}
|
|
789
|
+
interface PersonDetails {
|
|
790
|
+
birthday: string;
|
|
791
|
+
known_for_department: string;
|
|
792
|
+
deathday: string;
|
|
793
|
+
id: number;
|
|
794
|
+
name: string;
|
|
795
|
+
also_known_as: string[];
|
|
796
|
+
gender: number;
|
|
797
|
+
biography: string;
|
|
798
|
+
popularity: number;
|
|
799
|
+
place_of_birth: string;
|
|
800
|
+
profile_path: string;
|
|
801
|
+
adult: boolean;
|
|
802
|
+
imdb_id: string;
|
|
803
|
+
homepage: string;
|
|
804
|
+
}
|
|
805
|
+
type PersonChangeValue = string | {
|
|
806
|
+
profile: {
|
|
807
|
+
file_path: string;
|
|
808
|
+
};
|
|
809
|
+
};
|
|
810
|
+
interface PopularPersons {
|
|
811
|
+
page: number;
|
|
812
|
+
results: Person[];
|
|
813
|
+
total_results: number;
|
|
814
|
+
total_pages: number;
|
|
815
|
+
}
|
|
816
|
+
interface PeopleImages {
|
|
817
|
+
id: number;
|
|
818
|
+
profiles: Image[];
|
|
819
|
+
}
|
|
820
|
+
interface TaggedImage {
|
|
821
|
+
aspect_ratio: number;
|
|
822
|
+
file_path: string;
|
|
823
|
+
height: number;
|
|
824
|
+
id: string;
|
|
825
|
+
iso_639_1: string;
|
|
826
|
+
vote_average: number;
|
|
827
|
+
vote_count: number;
|
|
828
|
+
width: number;
|
|
829
|
+
image_type: string;
|
|
830
|
+
media_type: string;
|
|
831
|
+
media: Movie | TV;
|
|
832
|
+
}
|
|
833
|
+
interface TaggedImages {
|
|
834
|
+
page: number;
|
|
835
|
+
results: TaggedImage[];
|
|
836
|
+
total_results: number;
|
|
837
|
+
total_pages: number;
|
|
838
|
+
}
|
|
839
|
+
interface PersonTranslations {
|
|
840
|
+
id: number;
|
|
841
|
+
translations: {
|
|
842
|
+
iso_3166_1: string;
|
|
843
|
+
iso_639_1: string;
|
|
844
|
+
name: string;
|
|
845
|
+
english_name: string;
|
|
846
|
+
data: {
|
|
847
|
+
biography: string;
|
|
848
|
+
};
|
|
849
|
+
};
|
|
850
|
+
}
|
|
851
|
+
//#endregion
|
|
852
|
+
//#region src/@types/endpoints/review.d.ts
|
|
853
|
+
interface ReviewDetails extends Review {
|
|
854
|
+
iso_639_1: string;
|
|
855
|
+
media_id: number;
|
|
856
|
+
media_title: number;
|
|
857
|
+
media_type: number;
|
|
858
|
+
}
|
|
859
|
+
//# sourceMappingURL=review.d.ts.map
|
|
860
|
+
//#endregion
|
|
861
|
+
//#region src/@types/endpoints/search.d.ts
|
|
862
|
+
interface Search<T> {
|
|
863
|
+
page: number;
|
|
864
|
+
results: T[];
|
|
865
|
+
total_pages: number;
|
|
866
|
+
total_results: number;
|
|
867
|
+
}
|
|
868
|
+
type MultiSearchResult = MovieWithMediaType | TVWithMediaType | PersonWithMediaType;
|
|
869
|
+
interface SearchOptions {
|
|
870
|
+
query: string;
|
|
871
|
+
page?: number;
|
|
872
|
+
}
|
|
873
|
+
interface MovieSearchOptions extends SearchOptions, LanguageOption, PageOption, RegionOption {
|
|
874
|
+
include_adult?: boolean;
|
|
875
|
+
year?: number;
|
|
876
|
+
primary_release_year?: number;
|
|
877
|
+
}
|
|
878
|
+
interface CollectionSearchOptions extends SearchOptions, LanguageOption, PageOption, RegionOption {
|
|
879
|
+
include_adult?: boolean;
|
|
880
|
+
}
|
|
881
|
+
interface TvSearchOptions extends SearchOptions, LanguageOption, PageOption {
|
|
882
|
+
include_adult?: boolean;
|
|
883
|
+
year?: number;
|
|
884
|
+
first_air_date_year?: number;
|
|
885
|
+
}
|
|
886
|
+
interface PeopleSearchOptions extends SearchOptions, LanguageOption, PageOption {
|
|
887
|
+
include_adult?: boolean;
|
|
888
|
+
}
|
|
889
|
+
interface MultiSearchOptions extends SearchOptions, LanguageOption, PageOption {
|
|
890
|
+
include_adult?: boolean;
|
|
891
|
+
}
|
|
892
|
+
//# sourceMappingURL=search.d.ts.map
|
|
893
|
+
//#endregion
|
|
894
|
+
//#region src/@types/endpoints/trending.d.ts
|
|
895
|
+
type TimeWindow = "day" | "week";
|
|
896
|
+
type TrendingMediaType = MediaType | "all";
|
|
897
|
+
type TrendingResult<T extends TrendingMediaType> = T extends "tv" ? TV : T extends "movie" ? Movie : T extends "person" ? Person : TVWithMediaType | MovieWithMediaType | PersonWithMediaType;
|
|
898
|
+
interface TrendingResults<T extends TrendingMediaType> {
|
|
899
|
+
page: number;
|
|
900
|
+
results: TrendingResult<T>[];
|
|
901
|
+
total_pages: number;
|
|
902
|
+
total_results: number;
|
|
903
|
+
}
|
|
904
|
+
//#endregion
|
|
905
|
+
//#region src/@types/endpoints/tvEpisode.d.ts
|
|
906
|
+
interface EpisodeSelection {
|
|
907
|
+
tvShowID: number;
|
|
908
|
+
seasonNumber: number;
|
|
909
|
+
episodeNumber: number;
|
|
910
|
+
}
|
|
911
|
+
interface Episode {
|
|
912
|
+
air_date: string;
|
|
913
|
+
episode_number: number;
|
|
914
|
+
crew: Crew[];
|
|
915
|
+
guest_stars: GuestStar[];
|
|
916
|
+
id: number;
|
|
917
|
+
name: string;
|
|
918
|
+
overview: string;
|
|
919
|
+
production_code: string;
|
|
920
|
+
season_number: number;
|
|
921
|
+
still_path: string;
|
|
922
|
+
vote_average: number;
|
|
923
|
+
vote_count: number;
|
|
924
|
+
runtime: number;
|
|
925
|
+
show_id: number;
|
|
926
|
+
}
|
|
927
|
+
interface GuestStar {
|
|
928
|
+
credit_id: string;
|
|
929
|
+
order: number;
|
|
930
|
+
character: string;
|
|
931
|
+
adult: boolean;
|
|
932
|
+
gender: number | null;
|
|
933
|
+
id: number;
|
|
934
|
+
known_for_department: string;
|
|
935
|
+
name: string;
|
|
936
|
+
original_name: string;
|
|
937
|
+
popularity: number;
|
|
938
|
+
profile_path: string | null;
|
|
939
|
+
}
|
|
940
|
+
interface TvEpisodeCredit extends Credits {
|
|
941
|
+
guest_stars: GuestStar[];
|
|
942
|
+
}
|
|
943
|
+
interface TvEpisodeTranslations {
|
|
944
|
+
id: number;
|
|
945
|
+
translations: {
|
|
946
|
+
iso_3166_1: string;
|
|
947
|
+
iso_639_1: string;
|
|
948
|
+
name: string;
|
|
949
|
+
english_name: string;
|
|
950
|
+
data: {
|
|
951
|
+
name: string;
|
|
952
|
+
overview: string;
|
|
953
|
+
};
|
|
954
|
+
};
|
|
955
|
+
}
|
|
956
|
+
type TvEpisodeChangeValue = string | unknown;
|
|
957
|
+
interface TvEpisodeImageSearchOptions extends LanguageOption {
|
|
958
|
+
/**
|
|
959
|
+
* a list of ISO-639-1 values to query
|
|
960
|
+
*/
|
|
961
|
+
include_image_language?: string[];
|
|
962
|
+
}
|
|
963
|
+
interface TvEpisodeVideoSearchOptions extends LanguageOption {
|
|
964
|
+
/**
|
|
965
|
+
* a list of ISO-639-1 values to query
|
|
966
|
+
*/
|
|
967
|
+
include_video_language?: string[];
|
|
968
|
+
}
|
|
969
|
+
//# sourceMappingURL=tvEpisode.d.ts.map
|
|
970
|
+
//#endregion
|
|
971
|
+
//#region src/@types/endpoints/tvSeasons.d.ts
|
|
972
|
+
interface SeasonSelection {
|
|
973
|
+
tvShowID: number;
|
|
974
|
+
seasonNumber: number;
|
|
975
|
+
}
|
|
976
|
+
interface SeasonDetails {
|
|
977
|
+
air_date: string;
|
|
978
|
+
episodes: Episode[];
|
|
979
|
+
name: string;
|
|
980
|
+
overview: string;
|
|
981
|
+
id: number;
|
|
982
|
+
poster_path: string | null;
|
|
983
|
+
season_number: number;
|
|
984
|
+
}
|
|
985
|
+
type TvSeasonChangeValue = string | {
|
|
986
|
+
episode_id: number;
|
|
987
|
+
episode_number: number;
|
|
988
|
+
};
|
|
989
|
+
interface TvSeasonImageSearchOptions extends LanguageOption {
|
|
990
|
+
/**
|
|
991
|
+
* a list of ISO-639-1 values to query
|
|
992
|
+
*/
|
|
993
|
+
include_image_language?: string[];
|
|
994
|
+
}
|
|
995
|
+
interface TvSeasonVideoSearchOptions extends LanguageOption {
|
|
996
|
+
/**
|
|
997
|
+
* a list of ISO-639-1 values to query
|
|
998
|
+
*/
|
|
999
|
+
include_video_language?: string[];
|
|
1000
|
+
}
|
|
1001
|
+
//# sourceMappingURL=tvSeasons.d.ts.map
|
|
1002
|
+
//#endregion
|
|
1003
|
+
//#region src/@types/endpoints/tvShows.d.ts
|
|
1004
|
+
interface CreatedBy {
|
|
1005
|
+
id: number;
|
|
1006
|
+
credit_id: string;
|
|
1007
|
+
name: string;
|
|
1008
|
+
gender: number;
|
|
1009
|
+
profile_path: string;
|
|
1010
|
+
}
|
|
1011
|
+
interface NextEpisodeToAir {
|
|
1012
|
+
id: number;
|
|
1013
|
+
name: string;
|
|
1014
|
+
overview: string;
|
|
1015
|
+
vote_average: number;
|
|
1016
|
+
vote_count: number;
|
|
1017
|
+
air_date: string;
|
|
1018
|
+
episode_number: number;
|
|
1019
|
+
production_code: string;
|
|
1020
|
+
runtime: number;
|
|
1021
|
+
season_number: number;
|
|
1022
|
+
show_id: number;
|
|
1023
|
+
still_path: string;
|
|
1024
|
+
}
|
|
1025
|
+
interface LastEpisodeToAir {
|
|
1026
|
+
air_date: string;
|
|
1027
|
+
episode_number: number;
|
|
1028
|
+
id: number;
|
|
1029
|
+
name: string;
|
|
1030
|
+
overview: string;
|
|
1031
|
+
production_code: string;
|
|
1032
|
+
season_number: number;
|
|
1033
|
+
still_path: string;
|
|
1034
|
+
vote_average: number;
|
|
1035
|
+
vote_count: number;
|
|
1036
|
+
}
|
|
1037
|
+
interface Network {
|
|
1038
|
+
name: string;
|
|
1039
|
+
id: number;
|
|
1040
|
+
logo_path: string;
|
|
1041
|
+
origin_country: string;
|
|
1042
|
+
}
|
|
1043
|
+
interface Season {
|
|
1044
|
+
air_date: string;
|
|
1045
|
+
episode_count: number;
|
|
1046
|
+
id: number;
|
|
1047
|
+
name: string;
|
|
1048
|
+
overview: string;
|
|
1049
|
+
poster_path: string;
|
|
1050
|
+
season_number: number;
|
|
1051
|
+
}
|
|
1052
|
+
interface TvShowDetails {
|
|
1053
|
+
backdrop_path: string;
|
|
1054
|
+
created_by: CreatedBy[];
|
|
1055
|
+
episode_run_time: number[];
|
|
1056
|
+
first_air_date: string;
|
|
1057
|
+
genres: Genre[];
|
|
1058
|
+
homepage: string;
|
|
1059
|
+
id: number;
|
|
1060
|
+
in_production: boolean;
|
|
1061
|
+
languages: string[];
|
|
1062
|
+
last_air_date: string;
|
|
1063
|
+
last_episode_to_air: LastEpisodeToAir;
|
|
1064
|
+
name: string;
|
|
1065
|
+
next_episode_to_air?: NextEpisodeToAir;
|
|
1066
|
+
networks: Network[];
|
|
1067
|
+
number_of_episodes: number;
|
|
1068
|
+
number_of_seasons: number;
|
|
1069
|
+
origin_country: string[];
|
|
1070
|
+
original_language: string;
|
|
1071
|
+
original_name: string;
|
|
1072
|
+
overview: string;
|
|
1073
|
+
popularity: number;
|
|
1074
|
+
poster_path: string;
|
|
1075
|
+
production_companies: ProductionCompany[];
|
|
1076
|
+
production_countries: ProductionCountry[];
|
|
1077
|
+
seasons: Season[];
|
|
1078
|
+
spoken_languages: SpokenLanguage[];
|
|
1079
|
+
status: string;
|
|
1080
|
+
tagline: string;
|
|
1081
|
+
type: string;
|
|
1082
|
+
vote_average: number;
|
|
1083
|
+
vote_count: number;
|
|
1084
|
+
}
|
|
1085
|
+
interface Network {
|
|
1086
|
+
id: number;
|
|
1087
|
+
logo_path: string;
|
|
1088
|
+
name: string;
|
|
1089
|
+
origin_country: string;
|
|
1090
|
+
}
|
|
1091
|
+
interface EpisodeGroup {
|
|
1092
|
+
description: string;
|
|
1093
|
+
episode_count: number;
|
|
1094
|
+
group_count: number;
|
|
1095
|
+
id: string;
|
|
1096
|
+
name: string;
|
|
1097
|
+
network: Network;
|
|
1098
|
+
type: number;
|
|
1099
|
+
}
|
|
1100
|
+
interface EpisodeGroups {
|
|
1101
|
+
results: EpisodeGroup[];
|
|
1102
|
+
id: number;
|
|
1103
|
+
}
|
|
1104
|
+
interface ScreenedTheatricallyResult {
|
|
1105
|
+
id: number;
|
|
1106
|
+
episode_number: number;
|
|
1107
|
+
season_number: number;
|
|
1108
|
+
}
|
|
1109
|
+
interface ScreenedTheatrically {
|
|
1110
|
+
id: number;
|
|
1111
|
+
results: ScreenedTheatricallyResult[];
|
|
1112
|
+
}
|
|
1113
|
+
interface SimilarTvShow {
|
|
1114
|
+
backdrop_path: string;
|
|
1115
|
+
first_air_date: string;
|
|
1116
|
+
genre_ids: number[];
|
|
1117
|
+
id: number;
|
|
1118
|
+
original_language: string;
|
|
1119
|
+
original_name: string;
|
|
1120
|
+
overview: string;
|
|
1121
|
+
origin_country: string[];
|
|
1122
|
+
poster_path: string;
|
|
1123
|
+
popularity: number;
|
|
1124
|
+
name: string;
|
|
1125
|
+
vote_average: number;
|
|
1126
|
+
vote_count: number;
|
|
1127
|
+
}
|
|
1128
|
+
interface Similartv {
|
|
1129
|
+
page: number;
|
|
1130
|
+
results: SimilarTvShow[];
|
|
1131
|
+
total_pages: number;
|
|
1132
|
+
total_results: number;
|
|
1133
|
+
}
|
|
1134
|
+
interface Latesttv {
|
|
1135
|
+
backdrop_path?: string;
|
|
1136
|
+
created_by: CreatedBy[];
|
|
1137
|
+
episode_run_time: number[];
|
|
1138
|
+
first_air_date: string;
|
|
1139
|
+
genres: Genre[];
|
|
1140
|
+
homepage: string;
|
|
1141
|
+
id: number;
|
|
1142
|
+
in_production: boolean;
|
|
1143
|
+
languages: string[];
|
|
1144
|
+
last_air_date: string;
|
|
1145
|
+
name: string;
|
|
1146
|
+
networks: Network[];
|
|
1147
|
+
number_of_episodes: number;
|
|
1148
|
+
number_of_seasons: number;
|
|
1149
|
+
origin_country: string[];
|
|
1150
|
+
original_language: string;
|
|
1151
|
+
original_name: string;
|
|
1152
|
+
overview?: string;
|
|
1153
|
+
popularity: number;
|
|
1154
|
+
poster_path?: string;
|
|
1155
|
+
production_companies: ProductionCompany[];
|
|
1156
|
+
seasons: Season[];
|
|
1157
|
+
status: string;
|
|
1158
|
+
type: string;
|
|
1159
|
+
vote_average: number;
|
|
1160
|
+
vote_count: number;
|
|
1161
|
+
}
|
|
1162
|
+
interface OnTheAirResult {
|
|
1163
|
+
poster_path: string;
|
|
1164
|
+
popularity: number;
|
|
1165
|
+
id: number;
|
|
1166
|
+
backdrop_path: string;
|
|
1167
|
+
vote_average: number;
|
|
1168
|
+
overview: string;
|
|
1169
|
+
first_air_date: string;
|
|
1170
|
+
origin_country: string[];
|
|
1171
|
+
genre_ids: number[];
|
|
1172
|
+
original_language: string;
|
|
1173
|
+
vote_count: number;
|
|
1174
|
+
name: string;
|
|
1175
|
+
original_name: string;
|
|
1176
|
+
}
|
|
1177
|
+
interface OnTheAir {
|
|
1178
|
+
page: number;
|
|
1179
|
+
results: OnTheAirResult[];
|
|
1180
|
+
total_results: number;
|
|
1181
|
+
total_pages: number;
|
|
1182
|
+
}
|
|
1183
|
+
interface AiringTodayResult {
|
|
1184
|
+
poster_path: string;
|
|
1185
|
+
popularity: number;
|
|
1186
|
+
id: number;
|
|
1187
|
+
backdrop_path: string;
|
|
1188
|
+
vote_average: number;
|
|
1189
|
+
overview: string;
|
|
1190
|
+
first_air_date: string;
|
|
1191
|
+
origin_country: string[];
|
|
1192
|
+
genre_ids: number[];
|
|
1193
|
+
original_language: string;
|
|
1194
|
+
vote_count: number;
|
|
1195
|
+
name: string;
|
|
1196
|
+
original_name: string;
|
|
1197
|
+
}
|
|
1198
|
+
interface tvAiringToday {
|
|
1199
|
+
page: number;
|
|
1200
|
+
results: AiringTodayResult[];
|
|
1201
|
+
total_results: number;
|
|
1202
|
+
total_pages: number;
|
|
1203
|
+
}
|
|
1204
|
+
interface PopularTvShowResult {
|
|
1205
|
+
poster_path: string;
|
|
1206
|
+
popularity: number;
|
|
1207
|
+
id: number;
|
|
1208
|
+
backdrop_path: string;
|
|
1209
|
+
vote_average: number;
|
|
1210
|
+
overview: string;
|
|
1211
|
+
first_air_date: string;
|
|
1212
|
+
origin_country: string[];
|
|
1213
|
+
genre_ids: number[];
|
|
1214
|
+
original_language: string;
|
|
1215
|
+
vote_count: number;
|
|
1216
|
+
name: string;
|
|
1217
|
+
original_name: string;
|
|
1218
|
+
}
|
|
1219
|
+
interface Populartv {
|
|
1220
|
+
page: number;
|
|
1221
|
+
results: PopularTvShowResult[];
|
|
1222
|
+
total_results: number;
|
|
1223
|
+
total_pages: number;
|
|
1224
|
+
}
|
|
1225
|
+
interface TopRatedTvShowResult {
|
|
1226
|
+
poster_path: string;
|
|
1227
|
+
popularity: number;
|
|
1228
|
+
id: number;
|
|
1229
|
+
backdrop_path: string;
|
|
1230
|
+
vote_average: number;
|
|
1231
|
+
overview: string;
|
|
1232
|
+
first_air_date: string;
|
|
1233
|
+
origin_country: string[];
|
|
1234
|
+
genre_ids: number[];
|
|
1235
|
+
original_language: string;
|
|
1236
|
+
vote_count: number;
|
|
1237
|
+
name: string;
|
|
1238
|
+
original_name: string;
|
|
1239
|
+
}
|
|
1240
|
+
interface TopRatedtv {
|
|
1241
|
+
page: number;
|
|
1242
|
+
results: TopRatedTvShowResult[];
|
|
1243
|
+
total_results: number;
|
|
1244
|
+
total_pages: number;
|
|
1245
|
+
}
|
|
1246
|
+
interface TvShowChangeValue {
|
|
1247
|
+
season_id: number;
|
|
1248
|
+
season_number: number;
|
|
1249
|
+
}
|
|
1250
|
+
interface TvShowImageOptions extends LanguageOption {
|
|
1251
|
+
/**
|
|
1252
|
+
* a list of ISO-639-1 values to query
|
|
1253
|
+
*/
|
|
1254
|
+
include_image_language?: string[];
|
|
1255
|
+
}
|
|
1256
|
+
interface TvShowVideoOptions extends LanguageOption {
|
|
1257
|
+
/**
|
|
1258
|
+
* a list of ISO-639-1 values to query
|
|
1259
|
+
*/
|
|
1260
|
+
include_video_language?: string[];
|
|
1261
|
+
}
|
|
1262
|
+
//# sourceMappingURL=tvShows.d.ts.map
|
|
1263
|
+
//#endregion
|
|
1264
|
+
//#region src/@types/endpoints/watchProviders.d.ts
|
|
1265
|
+
interface Flatrate {
|
|
1266
|
+
display_priority: number;
|
|
1267
|
+
logo_path: string;
|
|
1268
|
+
provider_id: number;
|
|
1269
|
+
provider_name: string;
|
|
1270
|
+
}
|
|
1271
|
+
interface Rent {
|
|
1272
|
+
display_priority: number;
|
|
1273
|
+
logo_path: string;
|
|
1274
|
+
provider_id: number;
|
|
1275
|
+
provider_name: string;
|
|
1276
|
+
}
|
|
1277
|
+
interface Buy {
|
|
1278
|
+
display_priority: number;
|
|
1279
|
+
logo_path: string;
|
|
1280
|
+
provider_id: number;
|
|
1281
|
+
provider_name: string;
|
|
1282
|
+
}
|
|
1283
|
+
interface WatchRegion {
|
|
1284
|
+
iso_3166_1: string;
|
|
1285
|
+
english_name: string;
|
|
1286
|
+
native_name: string;
|
|
1287
|
+
}
|
|
1288
|
+
interface WatchRegionsResponse {
|
|
1289
|
+
results: WatchRegion[];
|
|
1290
|
+
}
|
|
1291
|
+
interface WatchLocale {
|
|
1292
|
+
AR: {
|
|
1293
|
+
link: string;
|
|
1294
|
+
flatrate: Flatrate[];
|
|
1295
|
+
rent: Rent[];
|
|
1296
|
+
buy: Buy[];
|
|
1297
|
+
};
|
|
1298
|
+
AT: {
|
|
1299
|
+
link: string;
|
|
1300
|
+
rent: Rent[];
|
|
1301
|
+
buy: Buy[];
|
|
1302
|
+
};
|
|
1303
|
+
AU: {
|
|
1304
|
+
link: string;
|
|
1305
|
+
flatrate: Flatrate[];
|
|
1306
|
+
rent: Rent[];
|
|
1307
|
+
buy: Buy[];
|
|
1308
|
+
};
|
|
1309
|
+
BE: {
|
|
1310
|
+
link: string;
|
|
1311
|
+
buy: Buy[];
|
|
1312
|
+
flatrate: Flatrate[];
|
|
1313
|
+
rent: Rent[];
|
|
1314
|
+
};
|
|
1315
|
+
BR: {
|
|
1316
|
+
link: string;
|
|
1317
|
+
rent: Rent[];
|
|
1318
|
+
buy: Buy[];
|
|
1319
|
+
flatrate: Flatrate[];
|
|
1320
|
+
};
|
|
1321
|
+
CA: {
|
|
1322
|
+
link: string;
|
|
1323
|
+
rent: Rent[];
|
|
1324
|
+
flatrate: Flatrate[];
|
|
1325
|
+
buy: Buy[];
|
|
1326
|
+
};
|
|
1327
|
+
CH: {
|
|
1328
|
+
link: string;
|
|
1329
|
+
rent: Rent[];
|
|
1330
|
+
buy: Buy[];
|
|
1331
|
+
flatrate: Flatrate[];
|
|
1332
|
+
};
|
|
1333
|
+
CL: {
|
|
1334
|
+
link: string;
|
|
1335
|
+
flatrate: Flatrate[];
|
|
1336
|
+
buy: Buy[];
|
|
1337
|
+
rent: Rent[];
|
|
1338
|
+
};
|
|
1339
|
+
CO: {
|
|
1340
|
+
link: string;
|
|
1341
|
+
flatrate: Flatrate[];
|
|
1342
|
+
rent: Rent[];
|
|
1343
|
+
buy: Buy[];
|
|
1344
|
+
};
|
|
1345
|
+
CZ: {
|
|
1346
|
+
link: string;
|
|
1347
|
+
buy: Buy[];
|
|
1348
|
+
flatrate: Flatrate[];
|
|
1349
|
+
rent: Rent[];
|
|
1350
|
+
};
|
|
1351
|
+
DE: {
|
|
1352
|
+
link: string;
|
|
1353
|
+
rent: Rent[];
|
|
1354
|
+
buy: Buy[];
|
|
1355
|
+
};
|
|
1356
|
+
DK: {
|
|
1357
|
+
link: string;
|
|
1358
|
+
rent: Rent[];
|
|
1359
|
+
buy: Buy[];
|
|
1360
|
+
flatrate: Flatrate[];
|
|
1361
|
+
};
|
|
1362
|
+
EC: {
|
|
1363
|
+
link: string;
|
|
1364
|
+
flatrate: Flatrate[];
|
|
1365
|
+
buy: Buy[];
|
|
1366
|
+
rent: Rent[];
|
|
1367
|
+
};
|
|
1368
|
+
EE: {
|
|
1369
|
+
link: string;
|
|
1370
|
+
flatrate: Flatrate[];
|
|
1371
|
+
buy: Buy[];
|
|
1372
|
+
rent: Rent[];
|
|
1373
|
+
};
|
|
1374
|
+
ES: {
|
|
1375
|
+
link: string;
|
|
1376
|
+
rent: Rent[];
|
|
1377
|
+
flatrate: Flatrate[];
|
|
1378
|
+
buy: Buy[];
|
|
1379
|
+
};
|
|
1380
|
+
FI: {
|
|
1381
|
+
link: string;
|
|
1382
|
+
buy: Buy[];
|
|
1383
|
+
flatrate: Flatrate[];
|
|
1384
|
+
rent: Rent[];
|
|
1385
|
+
};
|
|
1386
|
+
FR: {
|
|
1387
|
+
link: string;
|
|
1388
|
+
flatrate: Flatrate[];
|
|
1389
|
+
buy: Buy[];
|
|
1390
|
+
rent: Rent[];
|
|
1391
|
+
};
|
|
1392
|
+
GB: {
|
|
1393
|
+
link: string;
|
|
1394
|
+
rent: Rent[];
|
|
1395
|
+
flatrate: Flatrate[];
|
|
1396
|
+
buy: Buy[];
|
|
1397
|
+
};
|
|
1398
|
+
GR: {
|
|
1399
|
+
link: string;
|
|
1400
|
+
flatrate: Flatrate[];
|
|
1401
|
+
rent: Rent[];
|
|
1402
|
+
buy: Buy[];
|
|
1403
|
+
};
|
|
1404
|
+
HU: {
|
|
1405
|
+
link: string;
|
|
1406
|
+
rent: Rent[];
|
|
1407
|
+
buy: Buy[];
|
|
1408
|
+
flatrate: Flatrate[];
|
|
1409
|
+
};
|
|
1410
|
+
ID: {
|
|
1411
|
+
link: string;
|
|
1412
|
+
flatrate: Flatrate[];
|
|
1413
|
+
rent: Rent[];
|
|
1414
|
+
buy: Buy[];
|
|
1415
|
+
};
|
|
1416
|
+
IE: {
|
|
1417
|
+
link: string;
|
|
1418
|
+
rent: Rent[];
|
|
1419
|
+
flatrate: Flatrate[];
|
|
1420
|
+
buy: Buy[];
|
|
1421
|
+
};
|
|
1422
|
+
IN: {
|
|
1423
|
+
link: string;
|
|
1424
|
+
buy: Buy[];
|
|
1425
|
+
flatrate: Flatrate[];
|
|
1426
|
+
rent: Rent[];
|
|
1427
|
+
};
|
|
1428
|
+
IT: {
|
|
1429
|
+
link: string;
|
|
1430
|
+
buy: Buy[];
|
|
1431
|
+
flatrate: Flatrate[];
|
|
1432
|
+
rent: Rent[];
|
|
1433
|
+
};
|
|
1434
|
+
JP: {
|
|
1435
|
+
link: string;
|
|
1436
|
+
rent: Rent[];
|
|
1437
|
+
flatrate: Flatrate[];
|
|
1438
|
+
buy: Buy[];
|
|
1439
|
+
};
|
|
1440
|
+
KR: {
|
|
1441
|
+
link: string;
|
|
1442
|
+
buy: Buy[];
|
|
1443
|
+
rent: Rent[];
|
|
1444
|
+
flatrate: Flatrate[];
|
|
1445
|
+
};
|
|
1446
|
+
LT: {
|
|
1447
|
+
link: string;
|
|
1448
|
+
buy: Buy[];
|
|
1449
|
+
flatrate: Flatrate[];
|
|
1450
|
+
};
|
|
1451
|
+
LV: {
|
|
1452
|
+
link: string;
|
|
1453
|
+
buy: Buy[];
|
|
1454
|
+
flatrate: Flatrate[];
|
|
1455
|
+
};
|
|
1456
|
+
MX: {
|
|
1457
|
+
link: string;
|
|
1458
|
+
flatrate: Flatrate[];
|
|
1459
|
+
rent: Rent[];
|
|
1460
|
+
buy: Buy[];
|
|
1461
|
+
};
|
|
1462
|
+
MY: {
|
|
1463
|
+
link: string;
|
|
1464
|
+
rent: Rent[];
|
|
1465
|
+
flatrate: Flatrate[];
|
|
1466
|
+
buy: Buy[];
|
|
1467
|
+
};
|
|
1468
|
+
NL: {
|
|
1469
|
+
link: string;
|
|
1470
|
+
flatrate: Flatrate[];
|
|
1471
|
+
buy: Buy[];
|
|
1472
|
+
rent: Rent[];
|
|
1473
|
+
};
|
|
1474
|
+
NO: {
|
|
1475
|
+
link: string;
|
|
1476
|
+
buy: Buy[];
|
|
1477
|
+
rent: Rent[];
|
|
1478
|
+
flatrate: Flatrate[];
|
|
1479
|
+
};
|
|
1480
|
+
NZ: {
|
|
1481
|
+
link: string;
|
|
1482
|
+
buy: Buy[];
|
|
1483
|
+
rent: Rent[];
|
|
1484
|
+
flatrate: Flatrate[];
|
|
1485
|
+
};
|
|
1486
|
+
PE: {
|
|
1487
|
+
link: string;
|
|
1488
|
+
flatrate: Flatrate[];
|
|
1489
|
+
rent: Rent[];
|
|
1490
|
+
buy: Buy[];
|
|
1491
|
+
};
|
|
1492
|
+
PH: {
|
|
1493
|
+
link: string;
|
|
1494
|
+
rent: Rent[];
|
|
1495
|
+
buy: Buy[];
|
|
1496
|
+
flatrate: Flatrate[];
|
|
1497
|
+
};
|
|
1498
|
+
PL: {
|
|
1499
|
+
link: string;
|
|
1500
|
+
rent: Rent[];
|
|
1501
|
+
flatrate: Flatrate[];
|
|
1502
|
+
buy: Buy[];
|
|
1503
|
+
};
|
|
1504
|
+
PT: {
|
|
1505
|
+
link: string;
|
|
1506
|
+
rent: Rent[];
|
|
1507
|
+
flatrate: Flatrate[];
|
|
1508
|
+
buy: Buy[];
|
|
1509
|
+
};
|
|
1510
|
+
RO: {
|
|
1511
|
+
link: string;
|
|
1512
|
+
flatrate: Flatrate[];
|
|
1513
|
+
};
|
|
1514
|
+
RU: {
|
|
1515
|
+
link: string;
|
|
1516
|
+
rent: Rent[];
|
|
1517
|
+
flatrate: Flatrate[];
|
|
1518
|
+
buy: Buy[];
|
|
1519
|
+
};
|
|
1520
|
+
SE: {
|
|
1521
|
+
link: string;
|
|
1522
|
+
rent: Rent[];
|
|
1523
|
+
flatrate: Flatrate[];
|
|
1524
|
+
buy: Buy[];
|
|
1525
|
+
};
|
|
1526
|
+
SG: {
|
|
1527
|
+
link: string;
|
|
1528
|
+
flatrate: Flatrate[];
|
|
1529
|
+
buy: Buy[];
|
|
1530
|
+
rent: Rent[];
|
|
1531
|
+
};
|
|
1532
|
+
TH: {
|
|
1533
|
+
link: string;
|
|
1534
|
+
flatrate: Flatrate[];
|
|
1535
|
+
rent: Rent[];
|
|
1536
|
+
buy: Buy[];
|
|
1537
|
+
};
|
|
1538
|
+
TR: {
|
|
1539
|
+
link: string;
|
|
1540
|
+
buy: Buy[];
|
|
1541
|
+
rent: Rent[];
|
|
1542
|
+
flatrate: Flatrate[];
|
|
1543
|
+
};
|
|
1544
|
+
US: {
|
|
1545
|
+
link: string;
|
|
1546
|
+
rent: Rent[];
|
|
1547
|
+
buy: Buy[];
|
|
1548
|
+
flatrate: Flatrate[];
|
|
1549
|
+
};
|
|
1550
|
+
VE: {
|
|
1551
|
+
link: string;
|
|
1552
|
+
flatrate: Flatrate[];
|
|
1553
|
+
rent: Rent[];
|
|
1554
|
+
buy: Buy[];
|
|
1555
|
+
};
|
|
1556
|
+
ZA: {
|
|
1557
|
+
link: string;
|
|
1558
|
+
rent: Rent[];
|
|
1559
|
+
buy: Buy[];
|
|
1560
|
+
flatrate: Flatrate[];
|
|
1561
|
+
};
|
|
1562
|
+
}
|
|
1563
|
+
interface WatchProviders {
|
|
1564
|
+
id: number;
|
|
1565
|
+
results: WatchLocale;
|
|
1566
|
+
}
|
|
1567
|
+
//# sourceMappingURL=watchProviders.d.ts.map
|
|
1568
|
+
//#endregion
|
|
1569
|
+
//#region src/utils/api.d.ts
|
|
1570
|
+
declare class API {
|
|
1571
|
+
private apiKey?;
|
|
1572
|
+
private accessToken?;
|
|
1573
|
+
constructor(auth: TokenType);
|
|
1574
|
+
/**
|
|
1575
|
+
* Generic GET:
|
|
1576
|
+
* @template T — response type
|
|
1577
|
+
* @template O — options (query params) type
|
|
1578
|
+
*/
|
|
1579
|
+
get<T, O extends Record<string, unknown> = Record<string, unknown>>(path: string, options?: O): Promise<T>;
|
|
1580
|
+
}
|
|
1581
|
+
declare const parseOptions: (options?: Record<string, unknown>) => string;
|
|
1582
|
+
//# sourceMappingURL=api.d.ts.map
|
|
1583
|
+
//#endregion
|
|
1584
|
+
//#region src/utils/getimagePath.d.ts
|
|
1585
|
+
/**
|
|
1586
|
+
* Utility method to construct full url for image
|
|
1587
|
+
* based on configuration
|
|
1588
|
+
*
|
|
1589
|
+
* https://developers.themoviedb.org/3/getting-started/images
|
|
1590
|
+
* @param {string} baseUrl base image url (e.g., 'https://image.tmdb.org/t/p/')
|
|
1591
|
+
* @param {string} fileSize file size (e.g., 'original', 'w500')
|
|
1592
|
+
* @param {string} imagePath raw image path
|
|
1593
|
+
* @param {string} format override image format (e.g., 'svg', 'png', 'jpg')
|
|
1594
|
+
* @returns {string} The complete image URL
|
|
1595
|
+
*/
|
|
1596
|
+
declare const getFullImagePath: (baseUrl: string, fileSize: string, imagePath: string, format?: string) => string;
|
|
1597
|
+
/**
|
|
1598
|
+
* Common image sizes available in TMDB
|
|
1599
|
+
*/
|
|
1600
|
+
declare const ImageSizes: {
|
|
1601
|
+
ORIGINAL: string;
|
|
1602
|
+
W500: string;
|
|
1603
|
+
W300: string;
|
|
1604
|
+
W185: string;
|
|
1605
|
+
W92: string;
|
|
1606
|
+
H632: string;
|
|
1607
|
+
};
|
|
1608
|
+
/**
|
|
1609
|
+
* Image formats supported by TMDB
|
|
1610
|
+
*/
|
|
1611
|
+
declare const ImageFormats: {
|
|
1612
|
+
JPG: string;
|
|
1613
|
+
PNG: string;
|
|
1614
|
+
SVG: string;
|
|
1615
|
+
};
|
|
1616
|
+
//# sourceMappingURL=getimagePath.d.ts.map
|
|
1617
|
+
//#endregion
|
|
1618
|
+
//#region src/@types/types.d.ts
|
|
1619
|
+
interface ErrorResponse {
|
|
1620
|
+
status_code: number;
|
|
1621
|
+
status_message: string;
|
|
1622
|
+
success: boolean;
|
|
1623
|
+
}
|
|
1624
|
+
type MediaType = "movie" | "tv" | "person";
|
|
1625
|
+
interface AuthorDetails {
|
|
1626
|
+
name: string;
|
|
1627
|
+
username: string;
|
|
1628
|
+
avatar_path: string;
|
|
1629
|
+
rating?: number;
|
|
1630
|
+
}
|
|
1631
|
+
type KnownFor = MovieWithMediaType | TVWithMediaType;
|
|
1632
|
+
interface Person {
|
|
1633
|
+
id: number;
|
|
1634
|
+
name: string;
|
|
1635
|
+
known_for: KnownFor[];
|
|
1636
|
+
profile_path: string;
|
|
1637
|
+
adult: boolean;
|
|
1638
|
+
known_for_department: string;
|
|
1639
|
+
gender: number;
|
|
1640
|
+
popularity: number;
|
|
1641
|
+
}
|
|
1642
|
+
interface PersonWithMediaType extends Person {
|
|
1643
|
+
media_type: "person";
|
|
1644
|
+
}
|
|
1645
|
+
interface Movie {
|
|
1646
|
+
id: number;
|
|
1647
|
+
poster_path: string;
|
|
1648
|
+
adult: boolean;
|
|
1649
|
+
overview: string;
|
|
1650
|
+
release_date: string;
|
|
1651
|
+
genre_ids: number[];
|
|
1652
|
+
original_title: string;
|
|
1653
|
+
original_language: string;
|
|
1654
|
+
title: string;
|
|
1655
|
+
backdrop_path: string;
|
|
1656
|
+
popularity: number;
|
|
1657
|
+
vote_count: number;
|
|
1658
|
+
video: boolean;
|
|
1659
|
+
vote_average: number;
|
|
1660
|
+
}
|
|
1661
|
+
interface MovieWithMediaType extends Movie {
|
|
1662
|
+
media_type: "movie";
|
|
1663
|
+
}
|
|
1664
|
+
interface Company {
|
|
1665
|
+
id: number;
|
|
1666
|
+
logo_path: string;
|
|
1667
|
+
name: string;
|
|
1668
|
+
origin_country: string;
|
|
1669
|
+
}
|
|
1670
|
+
interface TV {
|
|
1671
|
+
id: number;
|
|
1672
|
+
name: string;
|
|
1673
|
+
first_air_date: string;
|
|
1674
|
+
backdrop_path: string;
|
|
1675
|
+
genre_ids: number[];
|
|
1676
|
+
origin_country: string[];
|
|
1677
|
+
original_language: string;
|
|
1678
|
+
original_name: string;
|
|
1679
|
+
overview: string;
|
|
1680
|
+
poster_path: string;
|
|
1681
|
+
popularity: number;
|
|
1682
|
+
vote_count: number;
|
|
1683
|
+
vote_average: number;
|
|
1684
|
+
}
|
|
1685
|
+
interface TVWithMediaType extends TV {
|
|
1686
|
+
media_type: "tv";
|
|
1687
|
+
}
|
|
1688
|
+
interface Genre {
|
|
1689
|
+
id: number;
|
|
1690
|
+
name: string;
|
|
1691
|
+
}
|
|
1692
|
+
interface ExternalIds {
|
|
1693
|
+
imdb_id: string;
|
|
1694
|
+
facebook_id: string;
|
|
1695
|
+
instagram_id: string;
|
|
1696
|
+
twitter_id: string;
|
|
1697
|
+
id: number;
|
|
1698
|
+
}
|
|
1699
|
+
interface ProductionCompany {
|
|
1700
|
+
id: number;
|
|
1701
|
+
logo_path: string;
|
|
1702
|
+
name: string;
|
|
1703
|
+
origin_country: string;
|
|
1704
|
+
}
|
|
1705
|
+
interface ProductionCountry {
|
|
1706
|
+
iso_3166_1: string;
|
|
1707
|
+
name: string;
|
|
1708
|
+
}
|
|
1709
|
+
interface SpokenLanguage {
|
|
1710
|
+
english_name: string;
|
|
1711
|
+
iso_639_1: string;
|
|
1712
|
+
name: string;
|
|
1713
|
+
}
|
|
1714
|
+
interface ContentRatings {
|
|
1715
|
+
results: ContentRatingsResult[];
|
|
1716
|
+
id: number;
|
|
1717
|
+
}
|
|
1718
|
+
interface ContentRatingsResult {
|
|
1719
|
+
descriptor: unknown[];
|
|
1720
|
+
iso_3166_1: string;
|
|
1721
|
+
rating: string;
|
|
1722
|
+
}
|
|
1723
|
+
interface Recommendation {
|
|
1724
|
+
adult: boolean;
|
|
1725
|
+
backdrop_path?: string;
|
|
1726
|
+
genre_ids: number[];
|
|
1727
|
+
id: number;
|
|
1728
|
+
original_language: string;
|
|
1729
|
+
original_title: string;
|
|
1730
|
+
overview: string;
|
|
1731
|
+
release_date: string;
|
|
1732
|
+
poster_path?: string;
|
|
1733
|
+
popularity: number;
|
|
1734
|
+
title: string;
|
|
1735
|
+
video: boolean;
|
|
1736
|
+
vote_average: number;
|
|
1737
|
+
vote_count: number;
|
|
1738
|
+
}
|
|
1739
|
+
interface Recommendations {
|
|
1740
|
+
page: number;
|
|
1741
|
+
results: Recommendation[];
|
|
1742
|
+
total_pages: number;
|
|
1743
|
+
total_results: number;
|
|
1744
|
+
}
|
|
1745
|
+
interface Review {
|
|
1746
|
+
author: string;
|
|
1747
|
+
author_details: AuthorDetails;
|
|
1748
|
+
content: string;
|
|
1749
|
+
created_at: Date;
|
|
1750
|
+
id: string;
|
|
1751
|
+
updated_at: Date;
|
|
1752
|
+
url: string;
|
|
1753
|
+
}
|
|
1754
|
+
interface Reviews {
|
|
1755
|
+
id: number;
|
|
1756
|
+
page: number;
|
|
1757
|
+
results: Review[];
|
|
1758
|
+
total_pages: number;
|
|
1759
|
+
total_results: number;
|
|
1760
|
+
}
|
|
1761
|
+
interface TranslationData {
|
|
1762
|
+
title: string;
|
|
1763
|
+
overview: string;
|
|
1764
|
+
homepage: string;
|
|
1765
|
+
}
|
|
1766
|
+
interface Translation {
|
|
1767
|
+
iso_3166_1: string;
|
|
1768
|
+
iso_639_1: string;
|
|
1769
|
+
name: string;
|
|
1770
|
+
english_name: string;
|
|
1771
|
+
data: TranslationData;
|
|
1772
|
+
}
|
|
1773
|
+
interface Translations {
|
|
1774
|
+
id: number;
|
|
1775
|
+
translations: Translation[];
|
|
1776
|
+
}
|
|
1777
|
+
interface Image {
|
|
1778
|
+
aspect_ratio: number;
|
|
1779
|
+
file_path: string;
|
|
1780
|
+
height: number;
|
|
1781
|
+
iso_639_1: string;
|
|
1782
|
+
vote_average: number;
|
|
1783
|
+
vote_count: number;
|
|
1784
|
+
width: number;
|
|
1785
|
+
}
|
|
1786
|
+
interface Images {
|
|
1787
|
+
id: number;
|
|
1788
|
+
backdrops: Image[];
|
|
1789
|
+
logos: Image[];
|
|
1790
|
+
posters: Image[];
|
|
1791
|
+
}
|
|
1792
|
+
interface TMDBConfig {
|
|
1793
|
+
apiKey?: string;
|
|
1794
|
+
accessToken?: string;
|
|
1795
|
+
}
|
|
1796
|
+
type TokenType = string | TMDBConfig;
|
|
1797
|
+
//# sourceMappingURL=types.d.ts.map
|
|
1798
|
+
//#endregion
|
|
1799
|
+
//#region src/@types/models/baseEndpoint.d.ts
|
|
1800
|
+
declare class BaseEndpoint {
|
|
1801
|
+
protected readonly auth: TokenType;
|
|
1802
|
+
protected api: API;
|
|
1803
|
+
constructor(auth: TokenType);
|
|
1804
|
+
}
|
|
1805
|
+
//# sourceMappingURL=baseEndpoint.d.ts.map
|
|
1806
|
+
//#endregion
|
|
1807
|
+
//#region src/endpoints/account.d.ts
|
|
1808
|
+
/**
|
|
1809
|
+
* Represents an endpoint for retrieving account details.
|
|
1810
|
+
*/
|
|
1811
|
+
declare class AccountEndpoint extends BaseEndpoint {
|
|
1812
|
+
protected readonly access_token: TokenType;
|
|
1813
|
+
/**
|
|
1814
|
+
* Constructs a new AccountEndpoint instance.
|
|
1815
|
+
* @param {string} access_token - The access token used for authentication.
|
|
1816
|
+
*/
|
|
1817
|
+
constructor(access_token: TokenType);
|
|
1818
|
+
/**
|
|
1819
|
+
* Retrieves account details asynchronously.
|
|
1820
|
+
* @returns {Promise<AccountDetails>} A Promise that resolves with the account details.
|
|
1821
|
+
*/
|
|
1822
|
+
details(): Promise<AccountDetails>;
|
|
1823
|
+
}
|
|
1824
|
+
//# sourceMappingURL=account.d.ts.map
|
|
1825
|
+
//#endregion
|
|
1826
|
+
//#region src/endpoints/certification.d.ts
|
|
1827
|
+
/**
|
|
1828
|
+
* Represents an endpoint for retrieving certifications for movies and TV shows.
|
|
1829
|
+
*/
|
|
1830
|
+
declare class CertificationEndpoint extends BaseEndpoint {
|
|
1831
|
+
protected readonly access_token: TokenType;
|
|
1832
|
+
/**
|
|
1833
|
+
* Constructs a new CertificationEndpoint instance.
|
|
1834
|
+
* @param {string} access_token - The access token used for authentication.
|
|
1835
|
+
*/
|
|
1836
|
+
constructor(access_token: TokenType);
|
|
1837
|
+
/**
|
|
1838
|
+
* Retrieves certifications for movies asynchronously.
|
|
1839
|
+
* @returns {Promise<Certifications>} A Promise that resolves with the certifications for movies.
|
|
1840
|
+
*/
|
|
1841
|
+
movies(): Promise<Certifications>;
|
|
1842
|
+
/**
|
|
1843
|
+
* Retrieves certifications for TV shows asynchronously.
|
|
1844
|
+
* @returns {Promise<Certifications>} A Promise that resolves with the certifications for TV shows.
|
|
1845
|
+
*/
|
|
1846
|
+
tv(): Promise<Certifications>;
|
|
1847
|
+
}
|
|
1848
|
+
//# sourceMappingURL=certification.d.ts.map
|
|
1849
|
+
//#endregion
|
|
1850
|
+
//#region src/endpoints/changes.d.ts
|
|
1851
|
+
/**
|
|
1852
|
+
* Represents an endpoint for retrieving changes in movies, TV shows, and persons.
|
|
1853
|
+
*/
|
|
1854
|
+
declare class ChangeEndpoint extends BaseEndpoint {
|
|
1855
|
+
protected readonly access_token: TokenType;
|
|
1856
|
+
/**
|
|
1857
|
+
* Constructs a new ChangeEndpoint instance.
|
|
1858
|
+
* @param {string} access_token - The access token used for authentication.
|
|
1859
|
+
*/
|
|
1860
|
+
constructor(access_token: TokenType);
|
|
1861
|
+
/**
|
|
1862
|
+
* Retrieves changes in movies asynchronously.
|
|
1863
|
+
* @param {ChangeOption} [options] - Optional parameters for filtering the changes.
|
|
1864
|
+
* @returns {Promise<MediaChanges>} A Promise that resolves with the changes in movies.
|
|
1865
|
+
*/
|
|
1866
|
+
movies(options?: ChangeOption): Promise<MediaChanges>;
|
|
1867
|
+
/**
|
|
1868
|
+
* Retrieves changes in TV shows asynchronously.
|
|
1869
|
+
* @param {ChangeOption} [options] - Optional parameters for filtering the changes.
|
|
1870
|
+
* @returns {Promise<MediaChanges>} A Promise that resolves with the changes in TV shows.
|
|
1871
|
+
*/
|
|
1872
|
+
tv(options?: ChangeOption): Promise<MediaChanges>;
|
|
1873
|
+
/**
|
|
1874
|
+
* Retrieves changes related to persons asynchronously.
|
|
1875
|
+
* @param {ChangeOption} [options] - Optional parameters for filtering the changes.
|
|
1876
|
+
* @returns {Promise<MediaChanges>} A Promise that resolves with the changes related to persons.
|
|
1877
|
+
*/
|
|
1878
|
+
person(options?: ChangeOption): Promise<MediaChanges>;
|
|
1879
|
+
}
|
|
1880
|
+
//# sourceMappingURL=changes.d.ts.map
|
|
1881
|
+
//#endregion
|
|
1882
|
+
//#region src/endpoints/collections.d.ts
|
|
1883
|
+
/**
|
|
1884
|
+
* Represents an endpoint for accessing collections and their details.
|
|
1885
|
+
*/
|
|
1886
|
+
declare class CollectionsEndpoint extends BaseEndpoint {
|
|
1887
|
+
protected readonly access_token: TokenType;
|
|
1888
|
+
/**
|
|
1889
|
+
* Constructs a new CollectionsEndpoint instance.
|
|
1890
|
+
* @param {string} access_token - The access token used for authentication.
|
|
1891
|
+
*/
|
|
1892
|
+
constructor(access_token: TokenType);
|
|
1893
|
+
/**
|
|
1894
|
+
* Retrieves details of a specific collection asynchronously.
|
|
1895
|
+
* @param {number} id - The ID of the collection.
|
|
1896
|
+
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
1897
|
+
* @returns {Promise<DetailedCollection>} A Promise that resolves with the detailed information of the collection.
|
|
1898
|
+
*/
|
|
1899
|
+
details(id: number, options?: LanguageOption): Promise<DetailedCollection>;
|
|
1900
|
+
/**
|
|
1901
|
+
* Retrieves images associated with a specific collection asynchronously.
|
|
1902
|
+
* @param {number} id - The ID of the collection.
|
|
1903
|
+
* @param {CollectionImageOptions} [options] - Optional parameters for specifying image options.
|
|
1904
|
+
* @returns {Promise<ImageCollection>} A Promise that resolves with the collection images.
|
|
1905
|
+
*/
|
|
1906
|
+
images(id: number, options?: CollectionImageOptions): Promise<ImageCollection>;
|
|
1907
|
+
/**
|
|
1908
|
+
* Retrieves translations for a specific collection asynchronously.
|
|
1909
|
+
* @param {number} id - The ID of the collection.
|
|
1910
|
+
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
1911
|
+
* @returns {Promise<Translations>} A Promise that resolves with the translations of the collection.
|
|
1912
|
+
*/
|
|
1913
|
+
translations(id: number, options?: LanguageOption): Promise<Translations>;
|
|
1914
|
+
}
|
|
1915
|
+
//# sourceMappingURL=collections.d.ts.map
|
|
1916
|
+
//#endregion
|
|
1917
|
+
//#region src/endpoints/companies.d.ts
|
|
1918
|
+
/**
|
|
1919
|
+
* Represents an endpoint for accessing company details and related information.
|
|
1920
|
+
*/
|
|
1921
|
+
declare class CompaniesEndpoint extends BaseEndpoint {
|
|
1922
|
+
protected readonly access_token: TokenType;
|
|
1923
|
+
/**
|
|
1924
|
+
* Constructs a new CompaniesEndpoint instance.
|
|
1925
|
+
* @param {string} access_token - The access token used for authentication.
|
|
1926
|
+
*/
|
|
1927
|
+
constructor(access_token: TokenType);
|
|
1928
|
+
/**
|
|
1929
|
+
* Retrieves details of a specific company asynchronously.
|
|
1930
|
+
* @param {number} id - The ID of the company.
|
|
1931
|
+
* @returns {Promise<CompanyDetails>} A Promise that resolves with the detailed information of the company.
|
|
1932
|
+
*/
|
|
1933
|
+
details(id: number): Promise<CompanyDetails>;
|
|
1934
|
+
/**
|
|
1935
|
+
* Retrieves alternative names of a specific company asynchronously.
|
|
1936
|
+
* @param {number} id - The ID of the company.
|
|
1937
|
+
* @returns {Promise<AlternativeNames>} A Promise that resolves with the alternative names of the company.
|
|
1938
|
+
*/
|
|
1939
|
+
alternativeNames(id: number): Promise<AlternativeNames>;
|
|
1940
|
+
/**
|
|
1941
|
+
* Retrieves images associated with a specific company asynchronously.
|
|
1942
|
+
* @param {number} id - The ID of the company.
|
|
1943
|
+
* @returns {Promise<CompanyImages>} A Promise that resolves with the images of the company.
|
|
1944
|
+
*/
|
|
1945
|
+
images(id: number): Promise<CompanyImages>;
|
|
1946
|
+
}
|
|
1947
|
+
//# sourceMappingURL=companies.d.ts.map
|
|
1948
|
+
//#endregion
|
|
1949
|
+
//#region src/endpoints/configuration.d.ts
|
|
1950
|
+
/**
|
|
1951
|
+
* Represents an endpoint for retrieving current system configuration.
|
|
1952
|
+
*/
|
|
1953
|
+
declare class ConfigurationEndpoint extends BaseEndpoint {
|
|
1954
|
+
protected readonly access_token: TokenType;
|
|
1955
|
+
/**
|
|
1956
|
+
* Constructs a new ConfigurationEndpoint instance.
|
|
1957
|
+
* @param {string} access_token - The access token used for authentication.
|
|
1958
|
+
*/
|
|
1959
|
+
constructor(access_token: TokenType);
|
|
1960
|
+
/**
|
|
1961
|
+
* Retrieves the current system configuration asynchronously.
|
|
1962
|
+
* @returns {Promise<Configuration>} A Promise that resolves with the current system configuration.
|
|
1963
|
+
*/
|
|
1964
|
+
getCurrent(): Promise<Configuration>;
|
|
1965
|
+
}
|
|
1966
|
+
//# sourceMappingURL=configuration.d.ts.map
|
|
1967
|
+
//#endregion
|
|
1968
|
+
//#region src/endpoints/credits.d.ts
|
|
1969
|
+
/**
|
|
1970
|
+
* Represents an endpoint for retrieving credit details.
|
|
1971
|
+
*/
|
|
1972
|
+
declare class CreditsEndpoint extends BaseEndpoint {
|
|
1973
|
+
protected readonly access_token: TokenType;
|
|
1974
|
+
/**
|
|
1975
|
+
* Constructs a new CreditsEndpoint instance.
|
|
1976
|
+
* @param {string} access_token - The access token used for authentication.
|
|
1977
|
+
*/
|
|
1978
|
+
constructor(access_token: TokenType);
|
|
1979
|
+
/**
|
|
1980
|
+
* Retrieves credit details by ID asynchronously.
|
|
1981
|
+
* @param {string} id - The ID of the credit.
|
|
1982
|
+
* @returns {Promise<CreditResponse>} A Promise that resolves with the credit details.
|
|
1983
|
+
*/
|
|
1984
|
+
getById(id: string): Promise<CreditResponse>;
|
|
1985
|
+
}
|
|
1986
|
+
//# sourceMappingURL=credits.d.ts.map
|
|
1987
|
+
//#endregion
|
|
1988
|
+
//#region src/endpoints/discover.d.ts
|
|
1989
|
+
/**
|
|
1990
|
+
* Represents an endpoint for discovering movies and TV shows based on various criteria.
|
|
1991
|
+
*/
|
|
1992
|
+
declare class DiscoverEndpoint extends BaseEndpoint {
|
|
1993
|
+
protected readonly access_token: TokenType;
|
|
1994
|
+
/**
|
|
1995
|
+
* Constructs a new DiscoverEndpoint instance.
|
|
1996
|
+
* @param {string} access_token - The access token used for authentication.
|
|
1997
|
+
*/
|
|
1998
|
+
constructor(access_token: TokenType);
|
|
1999
|
+
/**
|
|
2000
|
+
* Retrieves a list of movies based on the provided query options asynchronously.
|
|
2001
|
+
* @param {MovieQueryOptions} [options] - Optional parameters for refining the movie discovery.
|
|
2002
|
+
* @returns {Promise<MovieDiscoverResult>} A Promise that resolves with the movie discovery results.
|
|
2003
|
+
*/
|
|
2004
|
+
movie(options?: MovieQueryOptions): Promise<MovieDiscoverResult>;
|
|
2005
|
+
/**
|
|
2006
|
+
* Retrieves a list of TV shows based on the provided query options asynchronously.
|
|
2007
|
+
* @param {TvShowQueryOptions} [options] - Optional parameters for refining the TV show discovery.
|
|
2008
|
+
* @returns {Promise<TvShowDiscoverResult>} A Promise that resolves with the TV show discovery results.
|
|
2009
|
+
*/
|
|
2010
|
+
tvShow(options?: TvShowQueryOptions): Promise<TvShowDiscoverResult>;
|
|
2011
|
+
}
|
|
2012
|
+
//# sourceMappingURL=discover.d.ts.map
|
|
2013
|
+
//#endregion
|
|
2014
|
+
//#region src/endpoints/find.d.ts
|
|
2015
|
+
/**
|
|
2016
|
+
* Represents an endpoint for finding media by external ID.
|
|
2017
|
+
*/
|
|
2018
|
+
declare class FindEndpoint extends BaseEndpoint {
|
|
2019
|
+
protected readonly access_token: TokenType;
|
|
2020
|
+
/**
|
|
2021
|
+
* Constructs a new FindEndpoint instance.
|
|
2022
|
+
* @param {string} access_token - The access token used for authentication.
|
|
2023
|
+
*/
|
|
2024
|
+
constructor(access_token: TokenType);
|
|
2025
|
+
/**
|
|
2026
|
+
* Retrieves media by external ID asynchronously.
|
|
2027
|
+
* @param {string} externalId - The external ID of the media.
|
|
2028
|
+
* @param {ExternalIdOptions} options - Options for finding media by external ID.
|
|
2029
|
+
* @returns {Promise<FindResult>} A Promise that resolves with the result of the find operation.
|
|
2030
|
+
*/
|
|
2031
|
+
byId(externalId: string, options: ExternalIdOptions): Promise<FindResult>;
|
|
2032
|
+
}
|
|
2033
|
+
//# sourceMappingURL=find.d.ts.map
|
|
2034
|
+
//#endregion
|
|
2035
|
+
//#region src/endpoints/genre.d.ts
|
|
2036
|
+
/**
|
|
2037
|
+
* Represents an endpoint for retrieving genre information for movies and TV shows.
|
|
2038
|
+
*/
|
|
2039
|
+
declare class GenreEndpoint extends BaseEndpoint {
|
|
2040
|
+
protected readonly access_token: TokenType;
|
|
2041
|
+
/**
|
|
2042
|
+
* Constructs a new GenreEndpoint instance.
|
|
2043
|
+
* @param {string} access_token - The access token used for authentication.
|
|
2044
|
+
*/
|
|
2045
|
+
constructor(access_token: TokenType);
|
|
2046
|
+
/**
|
|
2047
|
+
* Retrieves genre information for movies asynchronously.
|
|
2048
|
+
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
2049
|
+
* @returns {Promise<Genres>} A Promise that resolves with the genre information for movies.
|
|
2050
|
+
*/
|
|
2051
|
+
movies(options?: LanguageOption): Promise<Genres>;
|
|
2052
|
+
/**
|
|
2053
|
+
* Retrieves genre information for TV shows asynchronously.
|
|
2054
|
+
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
2055
|
+
* @returns {Promise<Genres>} A Promise that resolves with the genre information for TV shows.
|
|
2056
|
+
*/
|
|
2057
|
+
tv(options?: LanguageOption): Promise<Genres>;
|
|
2058
|
+
}
|
|
2059
|
+
//# sourceMappingURL=genre.d.ts.map
|
|
2060
|
+
//#endregion
|
|
2061
|
+
//#region src/endpoints/keywords.d.ts
|
|
2062
|
+
/**
|
|
2063
|
+
* Represents an endpoint for accessing keyword details and related movies.
|
|
2064
|
+
*/
|
|
2065
|
+
declare class KeywordsEndpoint extends BaseEndpoint {
|
|
2066
|
+
protected readonly access_token: TokenType;
|
|
2067
|
+
/**
|
|
2068
|
+
* Constructs a new KeywordsEndpoint instance.
|
|
2069
|
+
* @param {string} access_token - The access token used for authentication.
|
|
2070
|
+
*/
|
|
2071
|
+
constructor(access_token: TokenType);
|
|
2072
|
+
/**
|
|
2073
|
+
* Retrieves details of a specific keyword asynchronously.
|
|
2074
|
+
* @param {number} keywordId - The ID of the keyword.
|
|
2075
|
+
* @returns {Promise<Keyword>} A Promise that resolves with the details of the keyword.
|
|
2076
|
+
*/
|
|
2077
|
+
details(keywordId: number): Promise<Keyword>;
|
|
2078
|
+
/**
|
|
2079
|
+
* Retrieves movies belonging to a specific keyword asynchronously.
|
|
2080
|
+
* @param {number} keywordId - The ID of the keyword.
|
|
2081
|
+
* @param {KeywordsOptions} [options] - Optional parameters for refining the search.
|
|
2082
|
+
* @returns {Promise<BelongingMovies>} A Promise that resolves with the movies belonging to the keyword.
|
|
2083
|
+
*/
|
|
2084
|
+
belongingMovies(keywordId: number, options?: KeywordsOptions): Promise<BelongingMovies>;
|
|
2085
|
+
}
|
|
2086
|
+
//# sourceMappingURL=keywords.d.ts.map
|
|
2087
|
+
//#endregion
|
|
2088
|
+
//#region src/endpoints/movies.d.ts
|
|
2089
|
+
/**
|
|
2090
|
+
* Represents an endpoint for accessing movie-related information.
|
|
2091
|
+
*/
|
|
2092
|
+
declare class MoviesEndpoint extends BaseEndpoint {
|
|
2093
|
+
protected readonly access_token: TokenType;
|
|
2094
|
+
/**
|
|
2095
|
+
* Constructs a new MoviesEndpoint instance.
|
|
2096
|
+
* @param {string} access_token - The access token used for authentication.
|
|
2097
|
+
*/
|
|
2098
|
+
constructor(access_token: TokenType);
|
|
2099
|
+
/**
|
|
2100
|
+
* Retrieves details of a specific movie asynchronously.
|
|
2101
|
+
* @param {number} id - The ID of the movie.
|
|
2102
|
+
* @param {AppendToResponseMovieKey[]} [appendToResponse] - Optional keys to append to the response.
|
|
2103
|
+
* @param {string} [language] - Optional parameter for specifying the language.
|
|
2104
|
+
* @returns {Promise<AppendToResponse<MovieDetails, AppendToResponseMovieKey[], 'movie'>>} A Promise that resolves with the details of the movie.
|
|
2105
|
+
*/
|
|
2106
|
+
details<T extends AppendToResponseMovieKey[] | undefined>(id: number, appendToResponse?: T, language?: string): Promise<AppendToResponse<MovieDetails, T, "movie">>;
|
|
2107
|
+
/**
|
|
2108
|
+
* Retrieves alternative titles of a specific movie asynchronously.
|
|
2109
|
+
* @param {number} id - The ID of the movie.
|
|
2110
|
+
* @returns {Promise<AlternativeTitles>} A Promise that resolves with the alternative titles of the movie.
|
|
2111
|
+
*/
|
|
2112
|
+
alternativeTitles(id: number): Promise<AlternativeTitles>;
|
|
2113
|
+
/**
|
|
2114
|
+
* Retrieves changes made to a specific movie asynchronously.
|
|
2115
|
+
* @param {number} id - The ID of the movie.
|
|
2116
|
+
* @param {ChangeOption} [options] - Optional parameters for filtering changes.
|
|
2117
|
+
* @returns {Promise<Changes<MovieChangeValue>>} A Promise that resolves with the changes made to the movie.
|
|
2118
|
+
*/
|
|
2119
|
+
changes(id: number, options?: ChangeOption): Promise<Changes<MovieChangeValue>>;
|
|
2120
|
+
/**
|
|
2121
|
+
* Retrieves credits of a specific movie asynchronously.
|
|
2122
|
+
* @param {number} id - The ID of the movie.
|
|
2123
|
+
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
2124
|
+
* @returns {Promise<Credits>} A Promise that resolves with the credits of the movie.
|
|
2125
|
+
*/
|
|
2126
|
+
credits(id: number, options?: LanguageOption): Promise<Credits>;
|
|
2127
|
+
/**
|
|
2128
|
+
* Retrieves external IDs of a specific movie asynchronously.
|
|
2129
|
+
* @param {number} id - The ID of the movie.
|
|
2130
|
+
* @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs of the movie.
|
|
2131
|
+
*/
|
|
2132
|
+
externalIds(id: number): Promise<ExternalIds>;
|
|
2133
|
+
/**
|
|
2134
|
+
* Retrieves images of a specific movie asynchronously.
|
|
2135
|
+
* @param {number} id - The ID of the movie.
|
|
2136
|
+
* @param {MoviesImageSearchOptions} [options] - Optional parameters for specifying image search options.
|
|
2137
|
+
* @returns {Promise<Images>} A Promise that resolves with the images of the movie.
|
|
2138
|
+
*/
|
|
2139
|
+
images(id: number, options?: MoviesImageSearchOptions): Promise<Images>;
|
|
2140
|
+
/**
|
|
2141
|
+
* Retrieves keywords of a specific movie asynchronously.
|
|
2142
|
+
* @param {number} id - The ID of the movie.
|
|
2143
|
+
* @returns {Promise<Keywords>} A Promise that resolves with the keywords of the movie.
|
|
2144
|
+
*/
|
|
2145
|
+
keywords(id: number): Promise<Keywords>;
|
|
2146
|
+
/**
|
|
2147
|
+
* Retrieves lists containing a specific movie asynchronously.
|
|
2148
|
+
* @param {number} id - The ID of the movie.
|
|
2149
|
+
* @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
|
|
2150
|
+
* @returns {Promise<MovieLists>} A Promise that resolves with the lists containing the movie.
|
|
2151
|
+
*/
|
|
2152
|
+
lists(id: number, options?: LanguageOption & PageOption): Promise<MovieLists>;
|
|
2153
|
+
/**
|
|
2154
|
+
* Retrieves recommendations for a specific movie asynchronously.
|
|
2155
|
+
* @param {number} id - The ID of the movie.
|
|
2156
|
+
* @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
|
|
2157
|
+
* @returns {Promise<Recommendations>} A Promise that resolves with the recommendations for the movie.
|
|
2158
|
+
*/
|
|
2159
|
+
recommendations(id: number, options?: LanguageOption & PageOption): Promise<Recommendations>;
|
|
2160
|
+
/**
|
|
2161
|
+
* Retrieves release dates of a specific movie asynchronously.
|
|
2162
|
+
* @param {number} id - The ID of the movie.
|
|
2163
|
+
* @returns {Promise<ReleaseDates>} A Promise that resolves with the release dates of the movie.
|
|
2164
|
+
*/
|
|
2165
|
+
releaseDates(id: number): Promise<ReleaseDates>;
|
|
2166
|
+
/**
|
|
2167
|
+
* Retrieves reviews for a specific movie asynchronously.
|
|
2168
|
+
* @param {number} id - The ID of the movie.
|
|
2169
|
+
* @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
|
|
2170
|
+
* @returns {Promise<Reviews>} A Promise that resolves with the reviews for the movie.
|
|
2171
|
+
*/
|
|
2172
|
+
reviews(id: number, options?: LanguageOption & PageOption): Promise<Reviews>;
|
|
2173
|
+
/**
|
|
2174
|
+
* Retrieves similar movies for a specific movie asynchronously.
|
|
2175
|
+
* @param {number} id - The ID of the movie.
|
|
2176
|
+
* @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
|
|
2177
|
+
* @returns {Promise<SimilarMovies>} A Promise that resolves with the similar movies for the movie.
|
|
2178
|
+
*/
|
|
2179
|
+
similar(id: number, options?: LanguageOption & PageOption): Promise<SimilarMovies>;
|
|
2180
|
+
/**
|
|
2181
|
+
* Retrieves translations of a specific movie asynchronously.
|
|
2182
|
+
* @param {number} id - The ID of the movie.
|
|
2183
|
+
* @returns {Promise<Translations>} A Promise that resolves with the translations of the movie.
|
|
2184
|
+
*/
|
|
2185
|
+
translations(id: number): Promise<Translations>;
|
|
2186
|
+
/**
|
|
2187
|
+
* Retrieves videos of a specific movie asynchronously.
|
|
2188
|
+
* @param {number} id - The ID of the movie.
|
|
2189
|
+
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
2190
|
+
* @returns {Promise<Videos>} A Promise that resolves with the videos of the movie.
|
|
2191
|
+
*/
|
|
2192
|
+
videos(id: number, options?: LanguageOption): Promise<Videos>;
|
|
2193
|
+
/**
|
|
2194
|
+
* Retrieves watch providers of a specific movie asynchronously.
|
|
2195
|
+
* @param {number} id - The ID of the movie.
|
|
2196
|
+
* @returns {Promise<WatchProviders>} A Promise that resolves with the watch providers of the movie.
|
|
2197
|
+
*/
|
|
2198
|
+
watchProviders(id: number): Promise<WatchProviders>;
|
|
2199
|
+
/**
|
|
2200
|
+
* Retrieves details of the latest movie asynchronously.
|
|
2201
|
+
* @returns {Promise<LatestMovie>} A Promise that resolves with the details of the latest movie.
|
|
2202
|
+
*/
|
|
2203
|
+
latest(): Promise<LatestMovie>;
|
|
2204
|
+
/**
|
|
2205
|
+
* Retrieves movies playing now asynchronously.
|
|
2206
|
+
* @param {PageOption & LanguageOption & RegionOption} [options] - Optional parameters for specifying language, region, and pagination options.
|
|
2207
|
+
* @returns {Promise<MoviesPlayingNow>} A Promise that resolves with the movies playing now.
|
|
2208
|
+
*/
|
|
2209
|
+
nowPlaying(options?: PageOption & LanguageOption & RegionOption): Promise<MoviesPlayingNow>;
|
|
2210
|
+
/**
|
|
2211
|
+
* Retrieves popular movies asynchronously.
|
|
2212
|
+
* @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
|
|
2213
|
+
* @returns {Promise<PopularMovies>} A Promise that resolves with the popular movies.
|
|
2214
|
+
*/
|
|
2215
|
+
popular(options?: LanguageOption & PageOption): Promise<PopularMovies>;
|
|
2216
|
+
/**
|
|
2217
|
+
* Retrieves top rated movies asynchronously.
|
|
2218
|
+
* @param {PageOption & LanguageOption & RegionOption} [options] - Optional parameters for specifying language, region, and pagination options.
|
|
2219
|
+
* @returns {Promise<TopRatedMovies>} A Promise that resolves with the top rated movies.
|
|
2220
|
+
*/
|
|
2221
|
+
topRated(options?: PageOption & LanguageOption & RegionOption): Promise<TopRatedMovies>;
|
|
2222
|
+
/**
|
|
2223
|
+
* Retrieves upcoming movies asynchronously.
|
|
2224
|
+
* @param {PageOption & LanguageOption & RegionOption} [options] - Optional parameters for specifying language, region, and pagination options.
|
|
2225
|
+
* @returns {Promise<UpcomingMovies>} A Promise that resolves with the upcoming movies.
|
|
2226
|
+
*/
|
|
2227
|
+
upcoming(options?: PageOption & LanguageOption & RegionOption): Promise<UpcomingMovies>;
|
|
2228
|
+
}
|
|
2229
|
+
//# sourceMappingURL=movies.d.ts.map
|
|
2230
|
+
//#endregion
|
|
2231
|
+
//#region src/endpoints/networks.d.ts
|
|
2232
|
+
/**
|
|
2233
|
+
* Represents an endpoint for accessing network details.
|
|
2234
|
+
*/
|
|
2235
|
+
declare class NetworksEndpoint extends BaseEndpoint {
|
|
2236
|
+
protected readonly access_token: TokenType;
|
|
2237
|
+
/**
|
|
2238
|
+
* Constructs a new NetworksEndpoint instance.
|
|
2239
|
+
* @param {string} access_token - The access token used for authentication.
|
|
2240
|
+
*/
|
|
2241
|
+
constructor(access_token: TokenType);
|
|
2242
|
+
/**
|
|
2243
|
+
* Retrieves details of a specific network asynchronously.
|
|
2244
|
+
* @param {number} id - The ID of the network.
|
|
2245
|
+
* @returns {Promise<NetworkDetails>} A Promise that resolves with the details of the network.
|
|
2246
|
+
*/
|
|
2247
|
+
details(id: number): Promise<NetworkDetails>;
|
|
2248
|
+
/**
|
|
2249
|
+
* Retrieves alternative names of a specific network asynchronously.
|
|
2250
|
+
* @param {number} id - The ID of the network.
|
|
2251
|
+
* @returns {Promise<AlternativeNames>} A Promise that resolves with the alternative names of the network.
|
|
2252
|
+
*/
|
|
2253
|
+
alternativeNames(id: number): Promise<AlternativeNames>;
|
|
2254
|
+
/**
|
|
2255
|
+
* Retrieves images of a specific network asynchronously.
|
|
2256
|
+
* @param {number} id - The ID of the network.
|
|
2257
|
+
* @returns {Promise<NetworkImages>} A Promise that resolves with the images of the network.
|
|
2258
|
+
*/
|
|
2259
|
+
images(id: number): Promise<NetworkImages>;
|
|
2260
|
+
}
|
|
2261
|
+
//# sourceMappingURL=networks.d.ts.map
|
|
2262
|
+
//#endregion
|
|
2263
|
+
//#region src/endpoints/people.d.ts
|
|
2264
|
+
/**
|
|
2265
|
+
* Represents an endpoint for accessing information about people.
|
|
2266
|
+
*/
|
|
2267
|
+
declare class PeopleEndpoint extends BaseEndpoint {
|
|
2268
|
+
protected readonly access_token: TokenType;
|
|
2269
|
+
/**
|
|
2270
|
+
* Constructs a new PeopleEndpoint instance.
|
|
2271
|
+
* @param {string} access_token - The access token used for authentication.
|
|
2272
|
+
*/
|
|
2273
|
+
constructor(access_token: TokenType);
|
|
2274
|
+
/**
|
|
2275
|
+
* Retrieves details of a specific person asynchronously.
|
|
2276
|
+
* @param {number} id - The ID of the person.
|
|
2277
|
+
* @param {AppendToResponsePersonKey[]} [appendToResponse] - Optional keys to append to the response.
|
|
2278
|
+
* @param {string} [language] - Optional parameter for specifying the language.
|
|
2279
|
+
* @returns {Promise<AppendToResponse<PersonDetails, AppendToResponsePersonKey[], 'person'>>} A Promise that resolves with the details of the person.
|
|
2280
|
+
*/
|
|
2281
|
+
details<T extends AppendToResponsePersonKey[] | undefined>(id: number, appendToResponse?: T, language?: string): Promise<AppendToResponse<PersonDetails, T, "person">>;
|
|
2282
|
+
/**
|
|
2283
|
+
* Retrieves changes made to a specific person asynchronously.
|
|
2284
|
+
* @param {number} id - The ID of the person.
|
|
2285
|
+
* @param {ChangeOption} [options] - Optional parameters for filtering changes.
|
|
2286
|
+
* @returns {Promise<Changes<PersonChangeValue>>} A Promise that resolves with the changes made to the person.
|
|
2287
|
+
*/
|
|
2288
|
+
changes(id: number, options?: ChangeOption): Promise<Changes<PersonChangeValue>>;
|
|
2289
|
+
/**
|
|
2290
|
+
* Retrieves movie credits of a specific person asynchronously.
|
|
2291
|
+
* @param {number} id - The ID of the person.
|
|
2292
|
+
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
2293
|
+
* @returns {Promise<PersonMovieCredit>} A Promise that resolves with the movie credits of the person.
|
|
2294
|
+
*/
|
|
2295
|
+
movieCredits(id: number, options?: LanguageOption): Promise<PersonMovieCredit>;
|
|
2296
|
+
/**
|
|
2297
|
+
* Retrieves TV show credits of a specific person asynchronously.
|
|
2298
|
+
* @param {number} id - The ID of the person.
|
|
2299
|
+
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
2300
|
+
* @returns {Promise<PersonTvShowCredit>} A Promise that resolves with the TV show credits of the person.
|
|
2301
|
+
*/
|
|
2302
|
+
tvShowCredits(id: number, options?: LanguageOption): Promise<PersonTvShowCredit>;
|
|
2303
|
+
/**
|
|
2304
|
+
* Retrieves combined credits of a specific person asynchronously.
|
|
2305
|
+
* @param {number} id - The ID of the person.
|
|
2306
|
+
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
2307
|
+
* @returns {Promise<PersonCombinedCredits>} A Promise that resolves with the combined credits of the person.
|
|
2308
|
+
*/
|
|
2309
|
+
combinedCredits(id: number, options?: LanguageOption): Promise<PersonCombinedCredits>;
|
|
2310
|
+
/**
|
|
2311
|
+
* Retrieves external IDs of a specific person asynchronously.
|
|
2312
|
+
* @param {number} id - The ID of the person.
|
|
2313
|
+
* @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs of the person.
|
|
2314
|
+
*/
|
|
2315
|
+
externalId(id: number): Promise<ExternalIds>;
|
|
2316
|
+
/**
|
|
2317
|
+
* Retrieves images of a specific person asynchronously.
|
|
2318
|
+
* @param {number} id - The ID of the person.
|
|
2319
|
+
* @returns {Promise<PeopleImages>} A Promise that resolves with the images of the person.
|
|
2320
|
+
*/
|
|
2321
|
+
images(id: number): Promise<PeopleImages>;
|
|
2322
|
+
/**
|
|
2323
|
+
* Retrieves tagged images of a specific person asynchronously.
|
|
2324
|
+
* @param {number} id - The ID of the person.
|
|
2325
|
+
* @param {PageOption} [options] - Optional parameters for specifying pagination options.
|
|
2326
|
+
* @returns {Promise<TaggedImages>} A Promise that resolves with the tagged images of the person.
|
|
2327
|
+
*/
|
|
2328
|
+
taggedImages(id: number, options?: PageOption): Promise<TaggedImages>;
|
|
2329
|
+
/**
|
|
2330
|
+
* Retrieves translations of a specific person asynchronously.
|
|
2331
|
+
* @param {number} id - The ID of the person.
|
|
2332
|
+
* @returns {Promise<PersonTranslations>} A Promise that resolves with the translations of the person.
|
|
2333
|
+
*/
|
|
2334
|
+
translation(id: number): Promise<PersonTranslations>;
|
|
2335
|
+
/**
|
|
2336
|
+
* Retrieves details of the latest person asynchronously.
|
|
2337
|
+
* @returns {Promise<PersonDetails>} A Promise that resolves with the details of the latest person.
|
|
2338
|
+
*/
|
|
2339
|
+
latest(): Promise<PersonDetails>;
|
|
2340
|
+
/**
|
|
2341
|
+
* Retrieves popular persons asynchronously.
|
|
2342
|
+
* @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
|
|
2343
|
+
* @returns {Promise<PopularPersons>} A Promise that resolves with the popular persons.
|
|
2344
|
+
*/
|
|
2345
|
+
popular(options?: LanguageOption & PageOption): Promise<PopularPersons>;
|
|
2346
|
+
}
|
|
2347
|
+
//# sourceMappingURL=people.d.ts.map
|
|
2348
|
+
//#endregion
|
|
2349
|
+
//#region src/endpoints/review.d.ts
|
|
2350
|
+
/**
|
|
2351
|
+
* Represents an endpoint for accessing review details.
|
|
2352
|
+
*/
|
|
2353
|
+
declare class ReviewEndpoint extends BaseEndpoint {
|
|
2354
|
+
protected readonly access_token: TokenType;
|
|
2355
|
+
/**
|
|
2356
|
+
* Constructs a new ReviewEndpoint instance.
|
|
2357
|
+
* @param {string} access_token - The access token used for authentication.
|
|
2358
|
+
*/
|
|
2359
|
+
constructor(access_token: TokenType);
|
|
2360
|
+
/**
|
|
2361
|
+
* Retrieves details of a specific review asynchronously.
|
|
2362
|
+
* @param {string} id - The ID of the review.
|
|
2363
|
+
* @returns {Promise<ReviewDetails>} A Promise that resolves with the details of the review.
|
|
2364
|
+
*/
|
|
2365
|
+
details(id: string): Promise<ReviewDetails>;
|
|
2366
|
+
}
|
|
2367
|
+
//# sourceMappingURL=review.d.ts.map
|
|
2368
|
+
//#endregion
|
|
2369
|
+
//#region src/endpoints/search.d.ts
|
|
2370
|
+
/**
|
|
2371
|
+
* Represents an endpoint for performing various search operations.
|
|
2372
|
+
*/
|
|
2373
|
+
declare class SearchEndpoint extends BaseEndpoint {
|
|
2374
|
+
protected readonly access_token: TokenType;
|
|
2375
|
+
/**
|
|
2376
|
+
* Constructs a new SearchEndpoint instance.
|
|
2377
|
+
* @param {string} access_token - The access token used for authentication.
|
|
2378
|
+
*/
|
|
2379
|
+
constructor(access_token: TokenType);
|
|
2380
|
+
/**
|
|
2381
|
+
* Searches for companies asynchronously.
|
|
2382
|
+
* @param {SearchOptions} options - The search options.
|
|
2383
|
+
* @returns {Promise<Search<Company>>} A Promise that resolves with the search results for companies.
|
|
2384
|
+
*/
|
|
2385
|
+
companies(options: SearchOptions): Promise<Search<Company>>;
|
|
2386
|
+
/**
|
|
2387
|
+
* Searches for collections asynchronously.
|
|
2388
|
+
* @param {SearchOptions} options - The search options.
|
|
2389
|
+
* @returns {Promise<Search<Collection>>} A Promise that resolves with the search results for collections.
|
|
2390
|
+
*/
|
|
2391
|
+
collections(options: SearchOptions): Promise<Search<Collection>>;
|
|
2392
|
+
/**
|
|
2393
|
+
* Searches for keywords asynchronously.
|
|
2394
|
+
* @param {SearchOptions} options - The search options.
|
|
2395
|
+
* @returns {Promise<Search<{ id: string; name: string }>>} A Promise that resolves with the search results for keywords.
|
|
2396
|
+
*/
|
|
2397
|
+
keywords(options: SearchOptions): Promise<Search<{
|
|
2398
|
+
id: string;
|
|
2399
|
+
name: string;
|
|
2400
|
+
}>>;
|
|
2401
|
+
/**
|
|
2402
|
+
* Searches for movies asynchronously.
|
|
2403
|
+
* @param {MovieSearchOptions} options - The search options.
|
|
2404
|
+
* @returns {Promise<Search<Movie>>} A Promise that resolves with the search results for movies.
|
|
2405
|
+
*/
|
|
2406
|
+
movies(options: MovieSearchOptions): Promise<Search<Movie>>;
|
|
2407
|
+
/**
|
|
2408
|
+
* Searches for people asynchronously.
|
|
2409
|
+
* @param {PeopleSearchOptions} options - The search options.
|
|
2410
|
+
* @returns {Promise<Search<Person>>} A Promise that resolves with the search results for people.
|
|
2411
|
+
*/
|
|
2412
|
+
people(options: PeopleSearchOptions): Promise<Search<Person>>;
|
|
2413
|
+
/**
|
|
2414
|
+
* Searches for TV shows asynchronously.
|
|
2415
|
+
* @param {TvSearchOptions} options - The search options.
|
|
2416
|
+
* @returns {Promise<Search<TV>>} A Promise that resolves with the search results for TV shows.
|
|
2417
|
+
*/
|
|
2418
|
+
tv(options: TvSearchOptions): Promise<Search<TV>>;
|
|
2419
|
+
/**
|
|
2420
|
+
* Performs a multi-search asynchronously.
|
|
2421
|
+
* @param {MultiSearchOptions} options - The search options.
|
|
2422
|
+
* @returns {Promise<Search<MultiSearchResult>>} A Promise that resolves with the multi-search results.
|
|
2423
|
+
*/
|
|
2424
|
+
multi(options: MultiSearchOptions): Promise<Search<MultiSearchResult>>;
|
|
2425
|
+
}
|
|
2426
|
+
//# sourceMappingURL=search.d.ts.map
|
|
2427
|
+
//#endregion
|
|
2428
|
+
//#region src/endpoints/trending.d.ts
|
|
2429
|
+
/**
|
|
2430
|
+
* Represents an endpoint for retrieving trending content.
|
|
2431
|
+
*/
|
|
2432
|
+
declare class TrendingEndpoint extends BaseEndpoint {
|
|
2433
|
+
protected readonly access_token: TokenType;
|
|
2434
|
+
/**
|
|
2435
|
+
* Constructs a new TrendingEndpoint instance.
|
|
2436
|
+
* @param {string} access_token - The access token used for authentication.
|
|
2437
|
+
*/
|
|
2438
|
+
constructor(access_token: TokenType);
|
|
2439
|
+
/**
|
|
2440
|
+
* Retrieves trending content asynchronously based on media type and time window.
|
|
2441
|
+
* @param {TrendingMediaType} mediaType - The type of media (e.g., 'all', 'movie', 'tv').
|
|
2442
|
+
* @param {TimeWindow} timeWindow - The time window for trending content (e.g., 'day', 'week').
|
|
2443
|
+
* @param {LanguageOption & PageOption} [options] - Optional parameters for specifying the language and pagination.
|
|
2444
|
+
* @returns {Promise<TrendingResults<T>>} A Promise that resolves with the trending results.
|
|
2445
|
+
* @template T - The type of media being searched for (e.g., 'movie', 'tv').
|
|
2446
|
+
*/
|
|
2447
|
+
trending<T extends TrendingMediaType>(mediaType: T, timeWindow: TimeWindow, options?: LanguageOption & PageOption): Promise<TrendingResults<T>>;
|
|
2448
|
+
}
|
|
2449
|
+
//# sourceMappingURL=trending.d.ts.map
|
|
2450
|
+
//#endregion
|
|
2451
|
+
//#region src/endpoints/tvEpisodes.d.ts
|
|
2452
|
+
/**
|
|
2453
|
+
* Represents an endpoint for accessing TV episode-related information.
|
|
2454
|
+
*/
|
|
2455
|
+
declare class TvEpisodesEndpoint extends BaseEndpoint {
|
|
2456
|
+
protected readonly access_token: TokenType;
|
|
2457
|
+
/**
|
|
2458
|
+
* Constructs a new TvEpisodesEndpoint instance.
|
|
2459
|
+
* @param {string} access_token - The access token used for authentication.
|
|
2460
|
+
*/
|
|
2461
|
+
constructor(access_token: TokenType);
|
|
2462
|
+
/**
|
|
2463
|
+
* Retrieves details of a specific TV episode asynchronously.
|
|
2464
|
+
* @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
|
|
2465
|
+
* @param {AppendToResponseTvEpisodeKey[]} [appendToResponse] - Additional data to append to the response.
|
|
2466
|
+
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
2467
|
+
* @returns {Promise<AppendToResponse<Omit<Episode, 'show_id'>, AppendToResponseTvEpisodeKey[], 'tvEpisode'>>}
|
|
2468
|
+
* A Promise that resolves with the details of the TV episode.
|
|
2469
|
+
*/
|
|
2470
|
+
details<T extends AppendToResponseTvEpisodeKey[] | undefined>(episodeSelection: EpisodeSelection, appendToResponse?: T, options?: LanguageOption): Promise<AppendToResponse<Omit<Episode, "show_id">, T, "tvEpisode">>;
|
|
2471
|
+
/**
|
|
2472
|
+
* Retrieves changes related to a specific TV episode asynchronously.
|
|
2473
|
+
* @param {number} episodeID - The ID of the TV episode.
|
|
2474
|
+
* @param {ChangeOption} [options] - Optional parameters for specifying changes.
|
|
2475
|
+
* @returns {Promise<Changes<TvEpisodeChangeValue>>} A Promise that resolves with the changes related to the TV episode.
|
|
2476
|
+
*/
|
|
2477
|
+
changes(episodeID: number, options?: ChangeOption): Promise<Changes<unknown>>;
|
|
2478
|
+
/**
|
|
2479
|
+
* Retrieves credits for a specific TV episode asynchronously.
|
|
2480
|
+
* @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
|
|
2481
|
+
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
2482
|
+
* @returns {Promise<TvEpisodeCredit>} A Promise that resolves with the credits for the TV episode.
|
|
2483
|
+
*/
|
|
2484
|
+
credits(episodeSelection: EpisodeSelection, options?: LanguageOption): Promise<TvEpisodeCredit>;
|
|
2485
|
+
/**
|
|
2486
|
+
* Retrieves external IDs for a specific TV episode asynchronously.
|
|
2487
|
+
* @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
|
|
2488
|
+
* @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs for the TV episode.
|
|
2489
|
+
*/
|
|
2490
|
+
externalIds(episodeSelection: EpisodeSelection): Promise<ExternalIds>;
|
|
2491
|
+
/**
|
|
2492
|
+
* Retrieves images for a specific TV episode asynchronously.
|
|
2493
|
+
* @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
|
|
2494
|
+
* @param {TvEpisodeImageSearchOptions} [options] - Optional parameters for specifying image search options.
|
|
2495
|
+
* @returns {Promise<Images>} A Promise that resolves with the images for the TV episode.
|
|
2496
|
+
*/
|
|
2497
|
+
images(episodeSelection: EpisodeSelection, options?: TvEpisodeImageSearchOptions): Promise<Images>;
|
|
2498
|
+
/**
|
|
2499
|
+
* Retrieves translations for a specific TV episode asynchronously.
|
|
2500
|
+
* @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
|
|
2501
|
+
* @returns {Promise<TvEpisodeTranslations>} A Promise that resolves with the translations for the TV episode.
|
|
2502
|
+
*/
|
|
2503
|
+
translations(episodeSelection: EpisodeSelection): Promise<TvEpisodeTranslations>;
|
|
2504
|
+
/**
|
|
2505
|
+
* Retrieves videos for a specific TV episode asynchronously.
|
|
2506
|
+
* @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
|
|
2507
|
+
* @param {TvEpisodeVideoSearchOptions} [options] - Optional parameters for specifying video search options.
|
|
2508
|
+
* @returns {Promise<Videos>} A Promise that resolves with the videos for the TV episode.
|
|
2509
|
+
*/
|
|
2510
|
+
videos(episodeSelection: EpisodeSelection, options?: TvEpisodeVideoSearchOptions): Promise<Videos>;
|
|
2511
|
+
}
|
|
2512
|
+
//# sourceMappingURL=tvEpisodes.d.ts.map
|
|
2513
|
+
//#endregion
|
|
2514
|
+
//#region src/endpoints/tvSeasons.d.ts
|
|
2515
|
+
/**
|
|
2516
|
+
* Represents an endpoint for accessing TV season-related information.
|
|
2517
|
+
*/
|
|
2518
|
+
declare class TvSeasonsEndpoint extends BaseEndpoint {
|
|
2519
|
+
protected readonly access_token: TokenType;
|
|
2520
|
+
/**
|
|
2521
|
+
* Constructs a new TvSeasonsEndpoint instance.
|
|
2522
|
+
* @param {string} access_token - The access token used for authentication.
|
|
2523
|
+
*/
|
|
2524
|
+
constructor(access_token: TokenType);
|
|
2525
|
+
/**
|
|
2526
|
+
* Retrieves details of a specific TV season asynchronously.
|
|
2527
|
+
* @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
|
|
2528
|
+
* @param {AppendToResponseTvSeasonKey[]} [appendToResponse] - Additional data to append to the response.
|
|
2529
|
+
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
2530
|
+
* @returns {Promise<AppendToResponse<SeasonDetails, AppendToResponseTvSeasonKey[], 'tvSeason'>>}
|
|
2531
|
+
* A Promise that resolves with the details of the TV season.
|
|
2532
|
+
*/
|
|
2533
|
+
details<T extends AppendToResponseTvSeasonKey[] | undefined>(seasonSelection: SeasonSelection, appendToResponse?: T, options?: LanguageOption): Promise<AppendToResponse<SeasonDetails, T, "tvSeason">>;
|
|
2534
|
+
/**
|
|
2535
|
+
* Retrieves aggregate credits for a specific TV season asynchronously.
|
|
2536
|
+
* @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
|
|
2537
|
+
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
2538
|
+
* @returns {Promise<AggregateCredits>} A Promise that resolves with the aggregate credits for the TV season.
|
|
2539
|
+
*/
|
|
2540
|
+
aggregateCredits(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<AggregateCredits>;
|
|
2541
|
+
/**
|
|
2542
|
+
* Retrieves changes related to a specific TV season asynchronously.
|
|
2543
|
+
* @param {number} seasonId - The ID of the TV season.
|
|
2544
|
+
* @param {ChangeOption} [options] - Optional parameters for specifying changes.
|
|
2545
|
+
* @returns {Promise<Changes<TvSeasonChangeValue>>} A Promise that resolves with the changes related to the TV season.
|
|
2546
|
+
*/
|
|
2547
|
+
changes(seasonId: number, options?: ChangeOption): Promise<Changes<TvSeasonChangeValue>>;
|
|
2548
|
+
/**
|
|
2549
|
+
* Retrieves credits for a specific TV season asynchronously.
|
|
2550
|
+
* @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
|
|
2551
|
+
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
2552
|
+
* @returns {Promise<Credits>} A Promise that resolves with the credits for the TV season.
|
|
2553
|
+
*/
|
|
2554
|
+
credits(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<Credits>;
|
|
2555
|
+
/**
|
|
2556
|
+
* Retrieves external IDs for a specific TV season asynchronously.
|
|
2557
|
+
* @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
|
|
2558
|
+
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
2559
|
+
* @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs for the TV season.
|
|
2560
|
+
*/
|
|
2561
|
+
externalIds(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<ExternalIds>;
|
|
2562
|
+
/**
|
|
2563
|
+
* Retrieves images for a specific TV season asynchronously.
|
|
2564
|
+
* @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
|
|
2565
|
+
* @param {TvSeasonImageSearchOptions} [options] - Optional parameters for specifying image search options.
|
|
2566
|
+
* @returns {Promise<Images>} A Promise that resolves with the images for the TV season.
|
|
2567
|
+
*/
|
|
2568
|
+
images(seasonSelection: SeasonSelection, options?: TvSeasonImageSearchOptions): Promise<Images>;
|
|
2569
|
+
/**
|
|
2570
|
+
* Retrieves videos for a specific TV season asynchronously.
|
|
2571
|
+
* @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
|
|
2572
|
+
* @param {TvSeasonVideoSearchOptions} [options] - Optional parameters for specifying video search options.
|
|
2573
|
+
* @returns {Promise<Videos>} A Promise that resolves with the videos for the TV season.
|
|
2574
|
+
*/
|
|
2575
|
+
videos(seasonSelection: SeasonSelection, options?: TvSeasonVideoSearchOptions): Promise<Videos>;
|
|
2576
|
+
/**
|
|
2577
|
+
* Retrieves translations for a specific TV season asynchronously.
|
|
2578
|
+
* @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
|
|
2579
|
+
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
2580
|
+
* @returns {Promise<Translations>} A Promise that resolves with the translations for the TV season.
|
|
2581
|
+
*/
|
|
2582
|
+
translations(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<Translations>;
|
|
2583
|
+
}
|
|
2584
|
+
//# sourceMappingURL=tvSeasons.d.ts.map
|
|
2585
|
+
//#endregion
|
|
2586
|
+
//#region src/endpoints/tvShows.d.ts
|
|
2587
|
+
/**
|
|
2588
|
+
* Represents an endpoint for accessing TV show-related information.
|
|
2589
|
+
*/
|
|
2590
|
+
declare class TvShowsEndpoint extends BaseEndpoint {
|
|
2591
|
+
protected readonly access_token: TokenType;
|
|
2592
|
+
/**
|
|
2593
|
+
* Constructs a new TvShowsEndpoint instance.
|
|
2594
|
+
* @param {string} access_token - The access token used for authentication.
|
|
2595
|
+
*/
|
|
2596
|
+
constructor(access_token: TokenType);
|
|
2597
|
+
/**
|
|
2598
|
+
* Retrieves details of a specific TV show asynchronously.
|
|
2599
|
+
* @param {number} id - The ID of the TV show.
|
|
2600
|
+
* @param {AppendToResponseTvKey[]} [appendToResponse] - Additional data to append to the response.
|
|
2601
|
+
* @param {string} [language] - The language for the response.
|
|
2602
|
+
* @returns {Promise<AppendToResponse<TvShowDetails, AppendToResponseTvKey[], 'tvShow'>>}
|
|
2603
|
+
* A Promise that resolves with the details of the TV show.
|
|
2604
|
+
*/
|
|
2605
|
+
details<T extends AppendToResponseTvKey[] | undefined>(id: number, appendToResponse?: T, language?: string): Promise<AppendToResponse<TvShowDetails, T, "tvShow">>;
|
|
2606
|
+
/**
|
|
2607
|
+
* Retrieves alternative titles of a specific TV show asynchronously.
|
|
2608
|
+
* @param {number} id - The ID of the TV show.
|
|
2609
|
+
* @returns {Promise<AlternativeTitles>} A Promise that resolves with the alternative titles of the TV show.
|
|
2610
|
+
*/
|
|
2611
|
+
alternativeTitles(id: number): Promise<AlternativeTitles>;
|
|
2612
|
+
/**
|
|
2613
|
+
* Retrieves changes for a specific TV show asynchronously.
|
|
2614
|
+
* @param {number} id - The ID of the TV show.
|
|
2615
|
+
* @param {ChangeOption} [options] - Additional options for the request.
|
|
2616
|
+
* @returns {Promise<Changes<TvShowChangeValue>>}
|
|
2617
|
+
* A Promise that resolves with the changes for the TV show.
|
|
2618
|
+
*/
|
|
2619
|
+
changes(id: number, options?: ChangeOption): Promise<Changes<TvShowChangeValue>>;
|
|
2620
|
+
/**
|
|
2621
|
+
* Retrieves content ratings for a specific TV show asynchronously.
|
|
2622
|
+
* @param {number} id - The ID of the TV show.
|
|
2623
|
+
* @returns {Promise<ContentRatings>} A Promise that resolves with the content ratings of the TV show.
|
|
2624
|
+
*/
|
|
2625
|
+
contentRatings(id: number): Promise<ContentRatings>;
|
|
2626
|
+
/**
|
|
2627
|
+
* Retrieves aggregate credits for a specific TV show asynchronously.
|
|
2628
|
+
* @param {number} id - The ID of the TV show.
|
|
2629
|
+
* @param {LanguageOption} [options] - Additional options for the request.
|
|
2630
|
+
* @returns {Promise<AggregateCredits>} A Promise that resolves with the aggregate credits of the TV show.
|
|
2631
|
+
*/
|
|
2632
|
+
aggregateCredits(id: number, options?: LanguageOption): Promise<AggregateCredits>;
|
|
2633
|
+
/**
|
|
2634
|
+
* Retrieves credits for a specific TV show asynchronously.
|
|
2635
|
+
* @param {number} id - The ID of the TV show.
|
|
2636
|
+
* @param {LanguageOption} [options] - Additional options for the request.
|
|
2637
|
+
* @returns {Promise<Credits>} A Promise that resolves with the credits of the TV show.
|
|
2638
|
+
*/
|
|
2639
|
+
credits(id: number, options?: LanguageOption): Promise<Credits>;
|
|
2640
|
+
/**
|
|
2641
|
+
* Retrieves details of a specific season of a TV show asynchronously.
|
|
2642
|
+
* @param {number} tvId - The ID of the TV show.
|
|
2643
|
+
* @param {number} seasonNumber - The season number.
|
|
2644
|
+
* @returns {Promise<SeasonDetails>} A Promise that resolves with the details of the season.
|
|
2645
|
+
*/
|
|
2646
|
+
season(tvId: number, seasonNumber: number): Promise<SeasonDetails>;
|
|
2647
|
+
/**
|
|
2648
|
+
* Retrieves episode groups for a specific TV show asynchronously.
|
|
2649
|
+
* @param {number} id - The ID of the TV show.
|
|
2650
|
+
* @returns {Promise<EpisodeGroups>} A Promise that resolves with the episode groups of the TV show.
|
|
2651
|
+
*/
|
|
2652
|
+
episodeGroups(id: number): Promise<EpisodeGroups>;
|
|
2653
|
+
/**
|
|
2654
|
+
* Retrieves external IDs for a specific TV show asynchronously.
|
|
2655
|
+
* @param {number} id - The ID of the TV show.
|
|
2656
|
+
* @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs of the TV show.
|
|
2657
|
+
*/
|
|
2658
|
+
externalIds(id: number): Promise<ExternalIds>;
|
|
2659
|
+
/**
|
|
2660
|
+
* Retrieves images for a specific TV show asynchronously.
|
|
2661
|
+
* @param {number} id - The ID of the TV show.
|
|
2662
|
+
* @param {TvShowImageOptions} [options] - Additional options for the request.
|
|
2663
|
+
* @returns {Promise<Images>} A Promise that resolves with the images of the TV show.
|
|
2664
|
+
*/
|
|
2665
|
+
images(id: number, options?: TvShowImageOptions): Promise<Images>;
|
|
2666
|
+
/**
|
|
2667
|
+
* Retrieves keywords for a specific TV show asynchronously.
|
|
2668
|
+
* @param {number} id - The ID of the TV show.
|
|
2669
|
+
* @returns {Promise<Keywords>} A Promise that resolves with the keywords of the TV show.
|
|
2670
|
+
*/
|
|
2671
|
+
keywords(id: number): Promise<Keywords>;
|
|
2672
|
+
/**
|
|
2673
|
+
* Retrieves recommendations for a specific TV show asynchronously.
|
|
2674
|
+
* @param {number} id - The ID of the TV show.
|
|
2675
|
+
* @param {LanguageOption & PageOption} [options] - Additional options for the request.
|
|
2676
|
+
* @returns {Promise<Recommendations>} A Promise that resolves with the recommendations for the TV show.
|
|
2677
|
+
*/
|
|
2678
|
+
recommendations(id: number, options?: LanguageOption & PageOption): Promise<Recommendations>;
|
|
2679
|
+
/**
|
|
2680
|
+
* Retrieves reviews for a specific TV show asynchronously.
|
|
2681
|
+
* @param {number} id - The ID of the TV show.
|
|
2682
|
+
* @param {LanguageOption & PageOption} [options] - Additional options for the request.
|
|
2683
|
+
* @returns {Promise<Reviews>} A Promise that resolves with the reviews of the TV show.
|
|
2684
|
+
*/
|
|
2685
|
+
reviews(id: number, options?: LanguageOption & PageOption): Promise<Reviews>;
|
|
2686
|
+
/**
|
|
2687
|
+
* Retrieves information about whether the TV show was screened theatrically asynchronously.
|
|
2688
|
+
* @param {number} id - The ID of the TV show.
|
|
2689
|
+
* @returns {Promise<ScreenedTheatrically>} A Promise that resolves with information about theatrical screenings.
|
|
2690
|
+
*/
|
|
2691
|
+
screenedTheatrically(id: number): Promise<ScreenedTheatrically>;
|
|
2692
|
+
/**
|
|
2693
|
+
* Retrieves similar TV shows for a specific TV show asynchronously.
|
|
2694
|
+
* @param {number} id - The ID of the TV show.
|
|
2695
|
+
* @param {LanguageOption & PageOption} [options] - Additional options for the request.
|
|
2696
|
+
* @returns {Promise<Similartv>} A Promise that resolves with the similar TV shows.
|
|
2697
|
+
*/
|
|
2698
|
+
similar(id: number, options?: LanguageOption & PageOption): Promise<Similartv>;
|
|
2699
|
+
/**
|
|
2700
|
+
* Retrieves translations for a specific TV show asynchronously.
|
|
2701
|
+
* @param {number} id - The ID of the TV show.
|
|
2702
|
+
* @returns {Promise<Translations>} A Promise that resolves with the translations of the TV show.
|
|
2703
|
+
*/
|
|
2704
|
+
translations(id: number): Promise<Translations>;
|
|
2705
|
+
/**
|
|
2706
|
+
* Retrieves videos for a specific TV show asynchronously.
|
|
2707
|
+
* @param {number} id - The ID of the TV show.
|
|
2708
|
+
* @param {TvShowVideoOptions} [options] - Additional options for the request.
|
|
2709
|
+
* @returns {Promise<Videos>} A Promise that resolves with the videos of the TV show.
|
|
2710
|
+
*/
|
|
2711
|
+
videos(id: number, options?: TvShowVideoOptions): Promise<Videos>;
|
|
2712
|
+
/**
|
|
2713
|
+
* Retrieves watch providers for a specific TV show asynchronously.
|
|
2714
|
+
* Powered by JustWatch.
|
|
2715
|
+
* @param {number} id - The ID of the TV show.
|
|
2716
|
+
* @returns {Promise<WatchProviders>} A Promise that resolves with the watch providers of the TV show.
|
|
2717
|
+
*/
|
|
2718
|
+
watchProviders(id: number): Promise<WatchProviders>;
|
|
2719
|
+
/**
|
|
2720
|
+
* Retrieves the latest TV show asynchronously.
|
|
2721
|
+
* @returns {Promise<Latesttv>} A Promise that resolves with the latest TV show.
|
|
2722
|
+
*/
|
|
2723
|
+
latest(): Promise<Latesttv>;
|
|
2724
|
+
/**
|
|
2725
|
+
* Retrieves TV shows that are currently on the air asynchronously.
|
|
2726
|
+
* @param {PageOption & LanguageOption & TimezoneOption} [options] - Additional options for the request.
|
|
2727
|
+
* @returns {Promise<OnTheAir>} A Promise that resolves with TV shows currently on the air.
|
|
2728
|
+
*/
|
|
2729
|
+
onTheAir(options?: PageOption & LanguageOption & TimezoneOption): Promise<OnTheAir>;
|
|
2730
|
+
/**
|
|
2731
|
+
* Retrieves TV shows that are airing today asynchronously.
|
|
2732
|
+
* @param {PageOption & LanguageOption & TimezoneOption} [options] - Additional options for the request.
|
|
2733
|
+
* @returns {Promise<tvAiringToday>} A Promise that resolves with TV shows airing today.
|
|
2734
|
+
*/
|
|
2735
|
+
airingToday(options?: PageOption & LanguageOption & TimezoneOption): Promise<tvAiringToday>;
|
|
2736
|
+
/**
|
|
2737
|
+
* Retrieves popular TV shows asynchronously.
|
|
2738
|
+
* @param {PageOption & LanguageOption} [options] - Additional options for the request.
|
|
2739
|
+
* @returns {Promise<Populartv>} A Promise that resolves with popular TV shows.
|
|
2740
|
+
*/
|
|
2741
|
+
popular(options?: PageOption & LanguageOption): Promise<Populartv>;
|
|
2742
|
+
/**
|
|
2743
|
+
* Retrieves top-rated TV shows asynchronously.
|
|
2744
|
+
* @param {PageOption & LanguageOption} [options] - Additional options for the request.
|
|
2745
|
+
* @returns {Promise<TopRatedtv>} A Promise that resolves with top-rated TV shows.
|
|
2746
|
+
*/
|
|
2747
|
+
topRated(options?: PageOption & LanguageOption): Promise<TopRatedtv>;
|
|
2748
|
+
}
|
|
2749
|
+
//# sourceMappingURL=tvShows.d.ts.map
|
|
2750
|
+
//#endregion
|
|
2751
|
+
//#region src/endpoints/watchProviders.d.ts
|
|
2752
|
+
/**
|
|
2753
|
+
* Represents an endpoint for accessing watch provider information.
|
|
2754
|
+
*/
|
|
2755
|
+
declare class WatchProvidersEndpoint extends BaseEndpoint {
|
|
2756
|
+
protected readonly access_token: TokenType;
|
|
2757
|
+
/**
|
|
2758
|
+
* Constructs a new WatchProvidersEndpoint instance.
|
|
2759
|
+
* @param {string} access_token - The access token used for authentication.
|
|
2760
|
+
*/
|
|
2761
|
+
constructor(access_token: TokenType);
|
|
2762
|
+
/**
|
|
2763
|
+
* Retrieves a list of all available watch providers (streaming services).
|
|
2764
|
+
* @returns {Promise<WatchProviders>} A Promise that resolves with the list of watch providers.
|
|
2765
|
+
*/
|
|
2766
|
+
available(): Promise<WatchProviders>;
|
|
2767
|
+
/**
|
|
2768
|
+
* Retrieves a list of available regions for watch providers.
|
|
2769
|
+
* @returns {Promise<WatchRegionsResponse>} A Promise that resolves with the list of available regions.
|
|
2770
|
+
*/
|
|
2771
|
+
regions(): Promise<WatchRegionsResponse>;
|
|
2772
|
+
/**
|
|
2773
|
+
* Retrieves a list of watch providers for movies.
|
|
2774
|
+
* @returns {Promise<WatchProviders>} A Promise that resolves with the list of movie watch providers.
|
|
2775
|
+
*/
|
|
2776
|
+
movie(): Promise<WatchProviders>;
|
|
2777
|
+
/**
|
|
2778
|
+
* Retrieves a list of watch providers for TV shows.
|
|
2779
|
+
* @returns {Promise<WatchProviders>} A Promise that resolves with the list of TV watch providers.
|
|
2780
|
+
*/
|
|
2781
|
+
tv(): Promise<WatchProviders>;
|
|
2782
|
+
}
|
|
2783
|
+
//# sourceMappingURL=watchProviders.d.ts.map
|
|
2784
|
+
//#endregion
|
|
2785
|
+
//#region src/index.d.ts
|
|
2786
|
+
declare class TMDB {
|
|
2787
|
+
constructor(auth: TokenType);
|
|
2788
|
+
account: AccountEndpoint;
|
|
2789
|
+
certification: CertificationEndpoint;
|
|
2790
|
+
changes: ChangeEndpoint;
|
|
2791
|
+
collections: CollectionsEndpoint;
|
|
2792
|
+
companies: CompaniesEndpoint;
|
|
2793
|
+
configuration: ConfigurationEndpoint;
|
|
2794
|
+
credits: CreditsEndpoint;
|
|
2795
|
+
discover: DiscoverEndpoint;
|
|
2796
|
+
find: FindEndpoint;
|
|
2797
|
+
genre: GenreEndpoint;
|
|
2798
|
+
keywords: KeywordsEndpoint;
|
|
2799
|
+
movies: MoviesEndpoint;
|
|
2800
|
+
networks: NetworksEndpoint;
|
|
2801
|
+
people: PeopleEndpoint;
|
|
2802
|
+
review: ReviewEndpoint;
|
|
2803
|
+
search: SearchEndpoint;
|
|
2804
|
+
trending: TrendingEndpoint;
|
|
2805
|
+
tvEpisodes: TvEpisodesEndpoint;
|
|
2806
|
+
tvSeasons: TvSeasonsEndpoint;
|
|
2807
|
+
tvShows: TvShowsEndpoint;
|
|
2808
|
+
watchProviders: WatchProvidersEndpoint;
|
|
2809
|
+
}
|
|
2810
|
+
//#endregion
|
|
2811
|
+
export { API, AccountDetails, AggregateCast, AggregateCredits, AggregateCrew, AiringTodayResult, AlternativeNames, AlternativeTitles, AppendToResponse, AppendToResponseMediaType, AppendToResponseMovieKey, AppendToResponsePersonKey, AppendToResponseTvEpisodeKey, AppendToResponseTvKey, AppendToResponseTvSeasonKey, AuthorDetails, Avatar, BackdropSizes, BaseEndpoint, BelongingMovies, BelongsToCollection, Buy, Cast, CastRole, Certification, Certifications, Change, ChangeItem, ChangeKeys, ChangeOption, Changes, Collection, CollectionImageOptions, CollectionSearchOptions, Company, CompanyDetails, CompanyImages, Configuration, ContentRatings, ContentRatingsResult, CreatedBy, CreditResponse, CreditSeason, Credits, Crew, CrewJob, Dates, DetailedCollection, DiscoverQueryOptions, Episode, EpisodeGroup, EpisodeGroups, EpisodeSelection, ErrorResponse, ExternalIdOptions, ExternalIds, ExternalSource, FindResult, Flatrate, Genre, Genres, Gravatar, GuestStar, Image, ImageCollection, ImageConfiguration, ImageFormats, ImageSizes, Images, Keyword, Keywords, KeywordsOptions, KnownFor, LanguageOption, LastEpisodeToAir, LatestMovie, Latesttv, LogoSizes, Media$1 as Media, MediaChange, MediaChanges, MediaType, Movie, MovieChangeValue, MovieDetails, MovieDiscoverResult, MovieList, MovieLists, MovieQueryOptions, MovieSearchOptions, MovieWithMediaType, MoviesImageSearchOptions, MoviesPlayingNow, MultiSearchOptions, MultiSearchResult, Name, Network, NetworkDetails, NetworkImages, NextEpisodeToAir, OnTheAir, OnTheAirResult, PageOption, ParentCompany, PeopleImages, PeopleSearchOptions, Person, PersonChangeValue, PersonCombinedCredits, PersonDetails, PersonMovieCast, PersonMovieCredit, PersonMovieCrew, PersonTranslations, PersonTvShowCast, PersonTvShowCredit, PersonTvShowCrew, PersonWithMediaType, PopularMovies, PopularPersons, PopularTvShowResult, Populartv, PosterSizes, ProductionCompany, ProductionCountry, ProfileSizes, Recommendation, Recommendations, RegionOption, ReleaseDate, ReleaseDateResult, ReleaseDateType, ReleaseDates, Rent, Review, ReviewDetails, Reviews, ScreenedTheatrically, ScreenedTheatricallyResult, Search, SearchOptions, Season, SeasonDetails, SeasonSelection, SimilarMovies, SimilarTvShow, Similartv, SortOption, SpokenLanguage, StillSizes, TMDB, TMDBConfig, TV, TVWithMediaType, TaggedImage, TaggedImages, TimeWindow, TimezoneOption, Title, TokenType, TopRatedMovies, TopRatedTvShowResult, TopRatedtv, Translation, TranslationData, Translations, TrendingMediaType, TrendingResults, TvEpisodeChangeValue, TvEpisodeCredit, TvEpisodeImageSearchOptions, TvEpisodeTranslations, TvEpisodeVideoSearchOptions, TvSearchOptions, TvSeasonChangeValue, TvSeasonImageSearchOptions, TvSeasonVideoSearchOptions, TvShowChangeValue, TvShowDetails, TvShowDiscoverResult, TvShowImageOptions, TvShowQueryOptions, TvShowVideoOptions, UpcomingMovies, Video, Videos, WatchLocale, WatchProviders, WatchRegion, WatchRegionsResponse, getFullImagePath, parseOptions, tvAiringToday };
|
|
2812
|
+
//# sourceMappingURL=index.d.cts.map
|