@lorenzopant/tmdb 1.10.0 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/endpoints/networks.d.ts +36 -0
- package/dist/endpoints/networks.d.ts.map +1 -0
- package/dist/endpoints/networks.js +46 -0
- package/dist/endpoints/tv_episodes.d.ts +118 -0
- package/dist/endpoints/tv_episodes.d.ts.map +1 -0
- package/dist/endpoints/tv_episodes.js +136 -0
- package/dist/routes.d.ts +17 -0
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +17 -0
- package/dist/tmdb.d.ts +4 -0
- package/dist/tmdb.d.ts.map +1 -1
- package/dist/tmdb.js +6 -0
- package/dist/types/common/changes.d.ts +5 -5
- package/dist/types/common/changes.d.ts.map +1 -1
- package/dist/types/common/images.d.ts +65 -0
- package/dist/types/common/images.d.ts.map +1 -0
- package/dist/types/common/index.d.ts +1 -0
- package/dist/types/common/index.d.ts.map +1 -1
- package/dist/types/common/index.js +1 -0
- package/dist/types/common/media.d.ts +38 -24
- package/dist/types/common/media.d.ts.map +1 -1
- package/dist/types/common/media.js +0 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +1 -1
- package/dist/types/movies/images.d.ts +2 -11
- package/dist/types/movies/images.d.ts.map +1 -1
- package/dist/types/movies/translations.d.ts +2 -10
- package/dist/types/movies/translations.d.ts.map +1 -1
- package/dist/types/movies/videos.d.ts +2 -7
- package/dist/types/movies/videos.d.ts.map +1 -1
- package/dist/types/other/collections.d.ts +4 -23
- package/dist/types/other/collections.d.ts.map +1 -1
- package/dist/types/other/companies.d.ts +5 -33
- package/dist/types/other/companies.d.ts.map +1 -1
- package/dist/types/other/index.d.ts +1 -0
- package/dist/types/other/index.d.ts.map +1 -1
- package/dist/types/other/index.js +1 -0
- package/dist/types/other/networks.d.ts +46 -0
- package/dist/types/other/networks.d.ts.map +1 -0
- package/dist/types/other/networks.js +1 -0
- package/dist/types/tv/episode_groups.d.ts +1 -1
- package/dist/types/tv/episode_groups.d.ts.map +1 -1
- package/dist/types/tv/external_ids.d.ts +9 -9
- package/dist/types/tv/external_ids.d.ts.map +1 -1
- package/dist/types/tv/images.d.ts +2 -11
- package/dist/types/tv/images.d.ts.map +1 -1
- package/dist/types/tv/translations.d.ts +2 -15
- package/dist/types/tv/translations.d.ts.map +1 -1
- package/dist/types/tv/tv_series.d.ts +1 -1
- package/dist/types/tv/tv_series.d.ts.map +1 -1
- package/dist/types/tv-episodes/credits.d.ts +8 -0
- package/dist/types/tv-episodes/credits.d.ts.map +1 -0
- package/dist/types/tv-episodes/credits.js +1 -0
- package/dist/types/tv-episodes/external_ids.d.ts +3 -0
- package/dist/types/tv-episodes/external_ids.d.ts.map +1 -0
- package/dist/types/tv-episodes/external_ids.js +1 -0
- package/dist/types/tv-episodes/images.d.ts +3 -0
- package/dist/types/tv-episodes/images.d.ts.map +1 -0
- package/dist/types/tv-episodes/images.js +1 -0
- package/dist/types/tv-episodes/index.d.ts +4 -0
- package/dist/types/tv-episodes/index.d.ts.map +1 -0
- package/dist/types/tv-episodes/index.js +3 -0
- package/dist/types/tv-episodes/params.d.ts +30 -0
- package/dist/types/tv-episodes/params.d.ts.map +1 -0
- package/dist/types/tv-episodes/params.js +1 -0
- package/dist/types/tv-episodes/translations.d.ts +7 -0
- package/dist/types/tv-episodes/translations.d.ts.map +1 -0
- package/dist/types/tv-episodes/translations.js +1 -0
- package/dist/types/tv-episodes/tv_episodes.d.ts +61 -0
- package/dist/types/tv-episodes/tv_episodes.d.ts.map +1 -0
- package/dist/types/tv-episodes/tv_episodes.js +1 -0
- package/dist/types/tv-episodes/videos.d.ts +3 -0
- package/dist/types/tv-episodes/videos.d.ts.map +1 -0
- package/dist/types/tv-episodes/videos.js +1 -0
- package/dist/types/tv-seasons/params.d.ts +15 -0
- package/dist/types/tv-seasons/params.d.ts.map +1 -0
- package/dist/types/tv-seasons/params.js +1 -0
- package/dist/types/tv-seasons/tv-season.d.ts +1 -0
- package/dist/types/tv-seasons/tv-season.d.ts.map +1 -0
- package/package.json +1 -1
- package/dist/types/networks/alternative_names.d.ts +0 -1
- package/dist/types/networks/alternative_names.d.ts.map +0 -1
- package/dist/types/networks/images.d.ts +0 -1
- package/dist/types/networks/images.d.ts.map +0 -1
- package/dist/types/networks/images.js +0 -1
- package/dist/types/networks/index.d.ts +0 -2
- package/dist/types/networks/index.d.ts.map +0 -1
- package/dist/types/networks/index.js +0 -1
- package/dist/types/networks/network.d.ts +0 -8
- package/dist/types/networks/network.d.ts.map +0 -1
- /package/dist/types/{networks/network.js → common/images.js} +0 -0
- /package/dist/types/{networks/alternative_names.js → tv-seasons/tv-season.js} +0 -0
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CountryISO3166_1 } from "../config/countries";
|
|
2
|
-
import type { LiteralUnion } from "../utility";
|
|
3
2
|
/**
|
|
4
3
|
* Represents a genre of a movie or TV show.
|
|
5
4
|
*/
|
|
@@ -83,6 +82,31 @@ export type Keyword = {
|
|
|
83
82
|
id: number;
|
|
84
83
|
name: string;
|
|
85
84
|
};
|
|
85
|
+
/**
|
|
86
|
+
* Represents an alternative name entry for a company or network.
|
|
87
|
+
*
|
|
88
|
+
* @see https://developer.themoviedb.org/reference/company-alternative-names
|
|
89
|
+
* @see https://developer.themoviedb.org/reference/network-alternative-names
|
|
90
|
+
*/
|
|
91
|
+
export type AlternativeName = {
|
|
92
|
+
/** The alternative name. */
|
|
93
|
+
name: string;
|
|
94
|
+
/** The type or context of the alternative name (e.g. "short name", "abbreviation"). */
|
|
95
|
+
type: string;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Represents the response from the TMDB alternative names endpoint
|
|
99
|
+
* for a company or network.
|
|
100
|
+
*
|
|
101
|
+
* @see https://developer.themoviedb.org/reference/company-alternative-names
|
|
102
|
+
* @see https://developer.themoviedb.org/reference/network-alternative-names
|
|
103
|
+
*/
|
|
104
|
+
export type AlternativeNamesResult = {
|
|
105
|
+
/** The unique TMDB identifier of the company or network. */
|
|
106
|
+
id: number;
|
|
107
|
+
/** A list of alternative names associated with the company or network. */
|
|
108
|
+
results: AlternativeName[];
|
|
109
|
+
};
|
|
86
110
|
/**
|
|
87
111
|
* Alternative title entry
|
|
88
112
|
*/
|
|
@@ -94,6 +118,12 @@ export type AlternativeTitle = {
|
|
|
94
118
|
/** Type of title (e.g., "original title", "working title") */
|
|
95
119
|
type: string;
|
|
96
120
|
};
|
|
121
|
+
export type VideoResults = {
|
|
122
|
+
/** Media identifier */
|
|
123
|
+
id: number | string;
|
|
124
|
+
/** Array of video items */
|
|
125
|
+
results: VideoItem[];
|
|
126
|
+
};
|
|
97
127
|
/**
|
|
98
128
|
* Video metadata and details
|
|
99
129
|
*/
|
|
@@ -123,25 +153,6 @@ export type VideoItem = {
|
|
|
123
153
|
* Watch provider monetization filters supported by TMDB media discovery endpoints.
|
|
124
154
|
*/
|
|
125
155
|
export type WatchMonetizationType = "flatrate" | "free" | "ads" | "rent" | "buy";
|
|
126
|
-
/**
|
|
127
|
-
* Image metadata and details
|
|
128
|
-
*/
|
|
129
|
-
export type ImageItem = {
|
|
130
|
-
/** Aspect ratio of the image (width/height) */
|
|
131
|
-
aspect_ratio: number;
|
|
132
|
-
/** Image height in pixels */
|
|
133
|
-
height: number;
|
|
134
|
-
/** ISO 639-1 language code if image contains text, null otherwise */
|
|
135
|
-
iso_639_1?: string | null;
|
|
136
|
-
/** Relative path to the image file (append to base URL) */
|
|
137
|
-
file_path: string;
|
|
138
|
-
/** Average user rating for this image */
|
|
139
|
-
vote_average: number;
|
|
140
|
-
/** Total number of votes for this image */
|
|
141
|
-
vote_count: number;
|
|
142
|
-
/** Image width in pixels */
|
|
143
|
-
width: number;
|
|
144
|
-
};
|
|
145
156
|
/**
|
|
146
157
|
* Base properties shared between movie and TV show results
|
|
147
158
|
*/
|
|
@@ -193,8 +204,6 @@ export type KnownForTV = BaseKnownForItem & {
|
|
|
193
204
|
export type KnownForItem = KnownForMovie | KnownForTV;
|
|
194
205
|
/** Available media types on TMDB */
|
|
195
206
|
export type MediaType = "movie" | "tv";
|
|
196
|
-
/** Available file type on svg (for images) */
|
|
197
|
-
export type FileType = LiteralUnion<".png" | ".svg">;
|
|
198
207
|
/**
|
|
199
208
|
* Content rating information for a TV show or movie
|
|
200
209
|
*/
|
|
@@ -238,10 +247,15 @@ export type ReviewAuthorDetails = {
|
|
|
238
247
|
/** Rating given by the author (0-10 scale, optional) */
|
|
239
248
|
rating?: number;
|
|
240
249
|
};
|
|
250
|
+
/** Collection of translations for a media item (object with `id` and `translations`). */
|
|
251
|
+
export type TranslationResults<T> = {
|
|
252
|
+
id: number | string;
|
|
253
|
+
translations: Translation<T>[];
|
|
254
|
+
};
|
|
241
255
|
/**
|
|
242
256
|
* Translation data for a specific language
|
|
243
257
|
*/
|
|
244
|
-
export type Translation = {
|
|
258
|
+
export type Translation<T = unknown> = {
|
|
245
259
|
/** ISO 3166-1 alpha-2 country code */
|
|
246
260
|
iso_3166_1: string;
|
|
247
261
|
/** ISO 639-1 language code */
|
|
@@ -251,7 +265,7 @@ export type Translation = {
|
|
|
251
265
|
/** English name of the language */
|
|
252
266
|
english_name: string;
|
|
253
267
|
/** Translated media (tv/movie) information */
|
|
254
|
-
data:
|
|
268
|
+
data: T;
|
|
255
269
|
};
|
|
256
270
|
/**
|
|
257
271
|
* Watch provider availability by country
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../../src/types/common/media.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../../src/types/common/media.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG;IAEnB,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AA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,CAAC,CAAC,GAAG,OAAO,IAAI;IACtC,sCAAsC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,8BAA8B;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,kCAAkC;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,mCAAmC;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,8CAA8C;IAC9C,IAAI,EAAE,CAAC,CAAC;CACR,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IACjC,+BAA+B;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,8CAA8C;IAC9C,OAAO,EAAE,MAAM,CAAC,gBAAgB,EAAE,aAAa,CAAC,CAAC;CACjD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC3B,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,kDAAkD;IAClD,QAAQ,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC/B,uBAAuB;IACvB,IAAI,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC3B,yBAAyB;IACzB,GAAG,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC1B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC/B,kCAAkC;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,4DAA4D;IAC5D,aAAa,EAAE,MAAM,CAAC;IACtB,+DAA+D;IAC/D,gBAAgB,EAAE,MAAM,CAAC;CACzB,CAAC"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,9 +2,9 @@ export * from "./common";
|
|
|
2
2
|
export * from "./config";
|
|
3
3
|
export * from "./discover";
|
|
4
4
|
export * from "./movies";
|
|
5
|
-
export * from "./networks";
|
|
6
5
|
export * from "./search";
|
|
7
6
|
export * from "./tv";
|
|
7
|
+
export * from "./tv-episodes/tv_episodes";
|
|
8
8
|
export * from "./utility";
|
|
9
9
|
export * from "./other";
|
|
10
10
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,MAAM,CAAC;AACrB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
|
package/dist/types/index.js
CHANGED
|
@@ -2,8 +2,8 @@ export * from "./common";
|
|
|
2
2
|
export * from "./config";
|
|
3
3
|
export * from "./discover";
|
|
4
4
|
export * from "./movies";
|
|
5
|
-
export * from "./networks";
|
|
6
5
|
export * from "./search";
|
|
7
6
|
export * from "./tv";
|
|
7
|
+
export * from "./tv-episodes/tv_episodes";
|
|
8
8
|
export * from "./utility";
|
|
9
9
|
export * from "./other";
|
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import { ImageItem } from "../common";
|
|
1
|
+
import { ImageItem, ImagesResult } from "../common/images";
|
|
2
2
|
/**
|
|
3
3
|
* Collection of movie images (backdrops, logos, posters)
|
|
4
4
|
*/
|
|
5
|
-
export type MovieImages =
|
|
6
|
-
/** Movie identifier */
|
|
7
|
-
id: number;
|
|
8
|
-
/** Array of backdrop images */
|
|
9
|
-
backdrops: ImageItem[];
|
|
10
|
-
/** Array of logo images */
|
|
11
|
-
logos: ImageItem[];
|
|
12
|
-
/** Array of poster images */
|
|
13
|
-
posters: ImageItem[];
|
|
14
|
-
};
|
|
5
|
+
export type MovieImages = ImagesResult<ImageItem, "backdrops" | "logos" | "posters">;
|
|
15
6
|
//# sourceMappingURL=images.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../../../src/types/movies/images.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../../../src/types/movies/images.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC,SAAS,EAAE,WAAW,GAAG,OAAO,GAAG,SAAS,CAAC,CAAC"}
|
|
@@ -1,16 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TranslationResults } from "../common";
|
|
2
2
|
/**
|
|
3
3
|
* Movie translations containing all available language versions
|
|
4
4
|
*/
|
|
5
|
-
export type MovieTranslations =
|
|
6
|
-
/** Movie identifier */
|
|
7
|
-
id: number;
|
|
8
|
-
/** Array of translations in different languages */
|
|
9
|
-
translations: MovieTranslationItem[];
|
|
10
|
-
};
|
|
11
|
-
export type MovieTranslationItem = Translation & {
|
|
12
|
-
data: MovieTranslationData;
|
|
13
|
-
};
|
|
5
|
+
export type MovieTranslations = TranslationResults<MovieTranslationData>;
|
|
14
6
|
/**
|
|
15
7
|
* Translation data for a specific language
|
|
16
8
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/types/movies/translations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/types/movies/translations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;AAEzE;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAClC,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+BAA+B;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yBAAyB;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VideoResults } from "../common";
|
|
2
2
|
/**
|
|
3
3
|
* Collection of videos (trailers, teasers, clips) for a movie
|
|
4
4
|
*/
|
|
5
|
-
export type MovieVideos =
|
|
6
|
-
/** Movie identifier */
|
|
7
|
-
id: number;
|
|
8
|
-
/** Array of video items */
|
|
9
|
-
results: VideoItem[];
|
|
10
|
-
};
|
|
5
|
+
export type MovieVideos = VideoResults;
|
|
11
6
|
//# sourceMappingURL=videos.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"videos.d.ts","sourceRoot":"","sources":["../../../src/types/movies/videos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"videos.d.ts","sourceRoot":"","sources":["../../../src/types/movies/videos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MediaType, TranslationResults, WithLanguage } from "../common";
|
|
2
|
+
import { ImageItem, ImagesResult } from "../common/images";
|
|
2
3
|
import { Language, LanguageISO6391 } from "../config";
|
|
3
4
|
import { MovieResultItem } from "../search";
|
|
4
5
|
/**
|
|
@@ -41,31 +42,11 @@ export type CollectionItem = Omit<MovieResultItem, "title" | "original_title"> &
|
|
|
41
42
|
* Represents the images associated with a TMDB collection,
|
|
42
43
|
* including backdrops and posters.
|
|
43
44
|
*/
|
|
44
|
-
export type CollectionImages =
|
|
45
|
-
/** Unique TMDB identifier for the collection */
|
|
46
|
-
id: number;
|
|
47
|
-
/** List of backdrop images available for the collection */
|
|
48
|
-
backdrops: ImageItem[];
|
|
49
|
-
/** List of poster images available for the collection */
|
|
50
|
-
posters: ImageItem[];
|
|
51
|
-
};
|
|
45
|
+
export type CollectionImages = ImagesResult<ImageItem, "backdrops" | "posters">;
|
|
52
46
|
/**
|
|
53
47
|
* Represents the available translations for a TMDB collection.
|
|
54
48
|
*/
|
|
55
|
-
export type CollectionTranslations =
|
|
56
|
-
/** Unique TMDB identifier for the collection */
|
|
57
|
-
id: number;
|
|
58
|
-
/** List of translations available for the collection */
|
|
59
|
-
translations: CollectionTranslationItem[];
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* Represents a single translation entry for a collection,
|
|
63
|
-
* containing the localized data payload.
|
|
64
|
-
*/
|
|
65
|
-
export type CollectionTranslationItem = Translation & {
|
|
66
|
-
/** Localized data for this translation */
|
|
67
|
-
data: CollectionTranslationData;
|
|
68
|
-
};
|
|
49
|
+
export type CollectionTranslations = TranslationResults<CollectionTranslationData>;
|
|
69
50
|
/**
|
|
70
51
|
* Contains the localized fields provided by a collection translation.
|
|
71
52
|
* All fields are optional as not every translation may supply all values.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../../src/types/other/collections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../../src/types/other/collections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACxE,OAAO,EAA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AE,MAAM,CAAC;CAClB,CAAC;AAEF,gDAAgD;AAChD,MAAM,MAAM,mBAAmB,GAAG;IACjC,gDAAgD;IAChD,aAAa,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,GAAG,YAAY,CAAC;AACzE,MAAM,MAAM,sBAAsB,GAAG,mBAAmB,GAAG;IAC1D,QAAQ,CAAC,EAAE,QAAQ,GAAG,eAAe,CAAC;IACtC,sBAAsB,CAAC,EAAE,QAAQ,GAAG,eAAe,CAAC;CACpD,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AlternativeName, AlternativeNamesResult, WithLanguage } from "../common";
|
|
2
|
+
import { ImagesResult, OrganizationImage } from "../common/images";
|
|
2
3
|
import { CountryISO3166_1 } from "../config/countries";
|
|
3
4
|
import { Language, LanguageISO6391 } from "../config/languages";
|
|
4
5
|
/**
|
|
@@ -30,44 +31,15 @@ export type Company = CompanySummary & {
|
|
|
30
31
|
/**
|
|
31
32
|
* A single alternative company name entry.
|
|
32
33
|
*/
|
|
33
|
-
export type CompanyAlternativeName =
|
|
34
|
-
/** Alternative company name */
|
|
35
|
-
name: string;
|
|
36
|
-
/** Optional classification for the name */
|
|
37
|
-
type: string;
|
|
38
|
-
};
|
|
34
|
+
export type CompanyAlternativeName = AlternativeName;
|
|
39
35
|
/**
|
|
40
36
|
* Alternative names response for a company.
|
|
41
37
|
*/
|
|
42
|
-
export type CompanyAlternativeNames =
|
|
43
|
-
/** Unique company identifier */
|
|
44
|
-
id: number;
|
|
45
|
-
/** List of alternative names associated with the company */
|
|
46
|
-
results: CompanyAlternativeName[];
|
|
47
|
-
};
|
|
38
|
+
export type CompanyAlternativeNames = AlternativeNamesResult;
|
|
48
39
|
/**
|
|
49
40
|
* Company logo images returned by `/company/{company_id}/images`.
|
|
50
41
|
*/
|
|
51
|
-
export type CompanyImages =
|
|
52
|
-
/** Unique company identifier */
|
|
53
|
-
id: number;
|
|
54
|
-
/** Logos available for the company */
|
|
55
|
-
logos: CompanyImage[];
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* Represents a single company logo (slightly different from ImageItem)
|
|
59
|
-
*
|
|
60
|
-
* Note on FileType from TMDB:
|
|
61
|
-
* There are two image formats that are supported for companies, PNG's and SVG's.
|
|
62
|
-
* You can see which type the original file is by looking at the file_type field.
|
|
63
|
-
* We prefer SVG's as they are resolution independent and as such, the width and height are only
|
|
64
|
-
* there to reflect the original asset that was uploaded.
|
|
65
|
-
* An SVG can be scaled properly beyond those dimensions if you call them as a PNG.
|
|
66
|
-
*/
|
|
67
|
-
export type CompanyImage = Omit<ImageItem, "iso_639_1"> & {
|
|
68
|
-
id: string;
|
|
69
|
-
file_type: FileType;
|
|
70
|
-
};
|
|
42
|
+
export type CompanyImages = ImagesResult<OrganizationImage, "logos">;
|
|
71
43
|
/** Base param used by all company queries */
|
|
72
44
|
export type CompanyBaseParam = {
|
|
73
45
|
/** Uniquely identifies a company in TMDB. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"companies.d.ts","sourceRoot":"","sources":["../../../src/types/other/companies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"companies.d.ts","sourceRoot":"","sources":["../../../src/types/other/companies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAClF,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC5B,gCAAgC;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,wCAAwC;IACxC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,cAAc,GAAG;IACtC,wCAAwC;IACxC,cAAc,EAAE,gBAAgB,CAAC;IACjC,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,oCAAoC;IACpC,YAAY,EAAE,MAAM,CAAC;IACrB,gCAAgC;IAChC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,wCAAwC;IACxC,cAAc,CAAC,EAAE,cAAc,GAAG,IAAI,CAAC;CACvC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,eAAe,CAAC;AAErD;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,sBAAsB,CAAC;AAE7D;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;AAErE,6CAA6C;AAC7C,MAAM,MAAM,gBAAgB,GAAG;IAC9B,6CAA6C;IAC7C,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,CAAC;AACpD,MAAM,MAAM,6BAA6B,GAAG,gBAAgB,CAAC;AAC7D,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,GAAG;IACpD,sBAAsB,CAAC,EAAE,QAAQ,GAAG,eAAe,CAAC;CACpD,GAAG,YAAY,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/other/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/other/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ImagesResult, OrganizationImage } from "../common/images";
|
|
2
|
+
import { CountryISO3166_1 } from "../config/countries";
|
|
3
|
+
/**
|
|
4
|
+
* Represents a network entry as returned in search results or list responses.
|
|
5
|
+
*
|
|
6
|
+
* @see https://developer.themoviedb.org/reference/network-details
|
|
7
|
+
*/
|
|
8
|
+
export type NetworkItem = {
|
|
9
|
+
/** The unique TMDB identifier of the network. */
|
|
10
|
+
id: number;
|
|
11
|
+
/** Path to the network's logo, to be appended to the TMDB base image URL. */
|
|
12
|
+
logo_path: string;
|
|
13
|
+
/** The name of the network. */
|
|
14
|
+
name: string;
|
|
15
|
+
/** The ISO 3166-1 country code of the network's country of origin. */
|
|
16
|
+
origin_country: CountryISO3166_1;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* Represents the images response for a network.
|
|
20
|
+
* Networks only expose logo images.
|
|
21
|
+
*
|
|
22
|
+
* @see https://developer.themoviedb.org/reference/network-images
|
|
23
|
+
*/
|
|
24
|
+
export type NetworkImages = ImagesResult<OrganizationImage, "logos">;
|
|
25
|
+
/**
|
|
26
|
+
* Represents the full details of a network, as returned by the network details endpoint.
|
|
27
|
+
* Extends {@link NetworkItem} with additional metadata.
|
|
28
|
+
*
|
|
29
|
+
* @see https://developer.themoviedb.org/reference/network-details
|
|
30
|
+
*/
|
|
31
|
+
export type Network = NetworkItem & {
|
|
32
|
+
/** The city or location of the network's headquarters, if available. */
|
|
33
|
+
headquarters?: string | null;
|
|
34
|
+
/** The URL of the network's official homepage, if available. */
|
|
35
|
+
homepage?: string | null;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Base parameters required by all network endpoints.
|
|
39
|
+
*
|
|
40
|
+
* @see https://developer.themoviedb.org/reference/network-details
|
|
41
|
+
*/
|
|
42
|
+
export type NetworkBaseParams = {
|
|
43
|
+
/** The unique TMDB identifier of the network. */
|
|
44
|
+
network_id: number;
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=networks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"networks.d.ts","sourceRoot":"","sources":["../../../src/types/other/networks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG;IACzB,iDAAiD;IACjD,EAAE,EAAE,MAAM,CAAC;IACX,6EAA6E;IAC7E,SAAS,EAAE,MAAM,CAAC;IAClB,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,sEAAsE;IACtE,cAAc,EAAE,gBAAgB,CAAC;CACjC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,MAAM,aAAa,GAAG,YAAY,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;AAErE;;;;;GAKG;AACH,MAAM,MAAM,OAAO,GAAG,WAAW,GAAG;IACnC,wEAAwE;IACxE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,gEAAgE;IAChE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC/B,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"episode_groups.d.ts","sourceRoot":"","sources":["../../../src/types/tv/episode_groups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"episode_groups.d.ts","sourceRoot":"","sources":["../../../src/types/tv/episode_groups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B,2BAA2B;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,mCAAmC;IACnC,OAAO,EAAE,kBAAkB,EAAE,CAAC;CAC9B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAChC,kEAAkE;IAClE,WAAW,EAAE,MAAM,CAAC;IACpB,6CAA6C;IAC7C,aAAa,EAAE,MAAM,CAAC;IACtB,qDAAqD;IACrD,WAAW,EAAE,MAAM,CAAC;IACpB,sCAAsC;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,gEAAgE;IAChE,OAAO,EAAE,WAAW,CAAC;IACrB,4GAA4G;IAC5G,IAAI,EAAE,MAAM,CAAC;CACb,CAAC"}
|
|
@@ -5,22 +5,22 @@ export type TVExternalIDs = {
|
|
|
5
5
|
/** TV series identifier in TMDB */
|
|
6
6
|
id: number;
|
|
7
7
|
/** IMDb identifier (e.g., "tt0944947"), null if not available */
|
|
8
|
-
imdb_id?: string;
|
|
8
|
+
imdb_id?: string | null;
|
|
9
9
|
/** Freebase MID identifier (deprecated), null if not available */
|
|
10
|
-
freebase_mid?: string;
|
|
10
|
+
freebase_mid?: string | null;
|
|
11
11
|
/** Freebase ID (deprecated), null if not available */
|
|
12
|
-
freebase_id?: string;
|
|
12
|
+
freebase_id?: string | null;
|
|
13
13
|
/** TheTVDB identifier, null if not available */
|
|
14
|
-
tvdb_id?: number;
|
|
14
|
+
tvdb_id?: number | null;
|
|
15
15
|
/** TVRage identifier (service discontinued), null if not available */
|
|
16
|
-
tvrage_id?: number;
|
|
16
|
+
tvrage_id?: number | null;
|
|
17
17
|
/** Wikidata identifier (e.g., "Q23572"), null if not available */
|
|
18
|
-
wikidata_id?: string;
|
|
18
|
+
wikidata_id?: string | null;
|
|
19
19
|
/** Facebook page identifier, null if not available */
|
|
20
|
-
facebook_id?: string;
|
|
20
|
+
facebook_id?: string | null;
|
|
21
21
|
/** Instagram handle, null if not available */
|
|
22
|
-
instagram_id?: string;
|
|
22
|
+
instagram_id?: string | null;
|
|
23
23
|
/** Twitter/X handle, null if not available */
|
|
24
|
-
twitter_id?: string;
|
|
24
|
+
twitter_id?: string | null;
|
|
25
25
|
};
|
|
26
26
|
//# sourceMappingURL=external_ids.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"external_ids.d.ts","sourceRoot":"","sources":["../../../src/types/tv/external_ids.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC3B,mCAAmC;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"external_ids.d.ts","sourceRoot":"","sources":["../../../src/types/tv/external_ids.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC3B,mCAAmC;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B,8CAA8C;IAC9C,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,8CAA8C;IAC9C,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B,CAAC"}
|
|
@@ -1,18 +1,9 @@
|
|
|
1
|
-
import { ImageItem } from "../common";
|
|
1
|
+
import { ImageItem, ImagesResult } from "../common/images";
|
|
2
2
|
/**
|
|
3
3
|
* Images related to a TV show.
|
|
4
4
|
* Contains backdrops, logos, posters and stills.
|
|
5
5
|
*/
|
|
6
|
-
export type TVImages =
|
|
7
|
-
/** TMDB unique identifier for the TV show. */
|
|
8
|
-
id: number;
|
|
9
|
-
/** List of backdrop images for the TV show. */
|
|
10
|
-
backdrops: TVImageItem[];
|
|
11
|
-
/** List of logo images for the TV show. */
|
|
12
|
-
logos: TVImageItem[];
|
|
13
|
-
/** List of poster images for the TV show. */
|
|
14
|
-
posters: TVImageItem[];
|
|
15
|
-
};
|
|
6
|
+
export type TVImages = ImagesResult<TVImageItem, "backdrops" | "logos" | "posters">;
|
|
16
7
|
/**
|
|
17
8
|
* Image items for TVShows have an undocumented "iso_3166_1" property
|
|
18
9
|
* I decided to put it anyway as an optional property,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../../../src/types/tv/images.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../../../src/types/tv/images.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAE3D;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,YAAY,CAAC,WAAW,EAAE,WAAW,GAAG,OAAO,GAAG,SAAS,CAAC,CAAC;AAEpF;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
|
@@ -1,21 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TranslationResults } from "../common";
|
|
2
2
|
/**
|
|
3
3
|
* Represents the collection of available translations for a TV series.
|
|
4
4
|
*/
|
|
5
|
-
export type TVTranslations =
|
|
6
|
-
/** The unique identifier of the TV series. */
|
|
7
|
-
id: number;
|
|
8
|
-
/** The list of available translations for this TV series. */
|
|
9
|
-
translations: TVTranslationItem[];
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Represents a single translation entry for a TV series,
|
|
13
|
-
* extending the base `Translation` type with TV-specific translated data.
|
|
14
|
-
*/
|
|
15
|
-
export type TVTranslationItem = Translation & {
|
|
16
|
-
/** The translated content fields for this TV series. */
|
|
17
|
-
data: TVTranslationData;
|
|
18
|
-
};
|
|
5
|
+
export type TVTranslations = TranslationResults<TVTranslationData>;
|
|
19
6
|
/**
|
|
20
7
|
* The translated text fields for a TV series in a specific language.
|
|
21
8
|
* All fields are optional as not every translation may provide all values.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/types/tv/translations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/types/tv/translations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,kBAAkB,CAAC,iBAAiB,CAAC,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC/B,4CAA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,qDAAqD;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Credit, Genre, ProductionCompany, ProductionCountry, SpokenLanguage } from "../common";
|
|
2
2
|
import { CountryISO3166_1 } from "../config/countries";
|
|
3
|
-
import { NetworkItem } from "../
|
|
3
|
+
import { NetworkItem } from "../other";
|
|
4
4
|
import { TVCredits } from "./credits";
|
|
5
5
|
import { TVEpisodeItem } from "./episodes";
|
|
6
6
|
import { TVExternalIDs } from "./external_ids";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tv_series.d.ts","sourceRoot":"","sources":["../../../src/types/tv/tv_series.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAChG,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"tv_series.d.ts","sourceRoot":"","sources":["../../../src/types/tv/tv_series.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAChG,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACxC,OAAO,EAAE,iBAAi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GAAG;KACrG,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,eAAe,CAAC,CAAC,CAAC;CACpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credits.d.ts","sourceRoot":"","sources":["../../../src/types/tv-episodes/credits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEvC,MAAM,MAAM,gBAAgB,GAAG;IAC9B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,CAAC;IAC9B,IAAI,EAAE,IAAI,EAAE,CAAC;IACb,WAAW,EAAE,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,CAAC;CACrC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"external_ids.d.ts","sourceRoot":"","sources":["../../../src/types/tv-episodes/external_ids.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,aAAa,EAAE,aAAa,GAAG,cAAc,GAAG,YAAY,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../../../src/types/tv-episodes/images.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEpD,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/tv-episodes/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
|