@lorenzopant/tmdb 1.1.5 → 1.2.0-beta.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/client.js +3 -7
- package/dist/endpoints/base.d.ts +2 -1
- package/dist/endpoints/base.d.ts.map +1 -1
- package/dist/endpoints/base.js +1 -5
- package/dist/endpoints/configuration.d.ts +1 -1
- package/dist/endpoints/configuration.d.ts.map +1 -1
- package/dist/endpoints/configuration.js +9 -13
- package/dist/endpoints/genres.d.ts +4 -4
- package/dist/endpoints/genres.d.ts.map +1 -1
- package/dist/endpoints/genres.js +5 -9
- package/dist/endpoints/movie_lists.d.ts +3 -3
- package/dist/endpoints/movie_lists.d.ts.map +1 -1
- package/dist/endpoints/movie_lists.js +5 -9
- package/dist/endpoints/movies.d.ts +4 -4
- package/dist/endpoints/movies.d.ts.map +1 -1
- package/dist/endpoints/movies.js +17 -21
- package/dist/endpoints/search.d.ts +5 -5
- package/dist/endpoints/search.d.ts.map +1 -1
- package/dist/endpoints/search.js +8 -12
- package/dist/endpoints/tv_series.d.ts +111 -12
- package/dist/endpoints/tv_series.d.ts.map +1 -1
- package/dist/endpoints/tv_series.js +132 -17
- package/dist/endpoints/tv_series_lists.d.ts +3 -4
- package/dist/endpoints/tv_series_lists.d.ts.map +1 -1
- package/dist/endpoints/tv_series_lists.js +5 -9
- package/dist/errors/messages.js +2 -5
- package/dist/errors/tmdb.js +1 -5
- package/dist/images/images.d.ts +1 -1
- package/dist/images/images.d.ts.map +1 -1
- package/dist/images/images.js +3 -7
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -22
- package/dist/routes.js +1 -4
- package/dist/scripts/check-exports.d.ts +2 -0
- package/dist/scripts/check-exports.d.ts.map +1 -0
- package/dist/scripts/check-exports.js +87 -0
- package/dist/scripts/find-missing.d.ts +2 -0
- package/dist/scripts/find-missing.d.ts.map +1 -0
- package/dist/scripts/find-missing.js +95 -0
- package/dist/scripts/generate-explicit-exports.d.ts +2 -0
- package/dist/scripts/generate-explicit-exports.d.ts.map +1 -0
- package/dist/scripts/generate-explicit-exports.js +47 -0
- package/dist/scripts/generate-index-files.d.ts +2 -0
- package/dist/scripts/generate-index-files.d.ts.map +1 -0
- package/dist/scripts/generate-index-files.js +27 -0
- package/dist/tmdb.d.ts +1 -1
- package/dist/tmdb.d.ts.map +1 -1
- package/dist/tmdb.js +21 -25
- package/dist/types/common/changes.d.ts +36 -0
- package/dist/types/common/changes.d.ts.map +1 -0
- package/dist/types/common/changes.js +1 -0
- package/dist/types/common/index.d.ts +5 -0
- package/dist/types/common/index.d.ts.map +1 -0
- package/dist/types/common/index.js +4 -0
- package/dist/types/common/media.d.ts +202 -0
- package/dist/types/common/media.d.ts.map +1 -0
- package/dist/types/common/media.js +2 -0
- package/dist/types/common/pagination.d.ts +7 -0
- package/dist/types/common/pagination.d.ts.map +1 -0
- package/dist/types/common/pagination.js +1 -0
- package/dist/types/{params/common.d.ts → common/params.d.ts} +12 -3
- package/dist/types/common/params.d.ts.map +1 -0
- package/dist/types/common/params.js +1 -0
- package/dist/types/config/configuration.d.ts +48 -0
- package/dist/types/config/configuration.d.ts.map +1 -0
- package/dist/types/config/configuration.js +1 -0
- package/dist/types/{countries.d.ts → config/countries.d.ts} +3 -0
- package/dist/types/{countries.d.ts.map → config/countries.d.ts.map} +1 -1
- package/dist/types/{countries.js → config/countries.js} +1 -4
- package/dist/types/config/images.d.ts +50 -0
- package/dist/types/config/images.d.ts.map +1 -0
- package/dist/types/config/images.js +13 -0
- package/dist/types/config/index.d.ts +7 -0
- package/dist/types/config/index.d.ts.map +1 -0
- package/dist/types/config/index.js +6 -0
- package/dist/types/{lang.d.ts → config/languages.d.ts} +2 -3
- package/dist/types/{lang.d.ts.map → config/languages.d.ts.map} +1 -1
- package/dist/types/config/languages.js +1 -0
- package/dist/types/config/options.d.ts +30 -0
- package/dist/types/config/options.d.ts.map +1 -0
- package/dist/types/config/options.js +1 -0
- package/dist/types/{timezones.d.ts.map → config/timezones.d.ts.map} +1 -1
- package/dist/types/{timezones.js → config/timezones.js} +1 -2
- package/dist/types/enums.js +2 -5
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +8 -24
- package/dist/types/movies/alternative_titles.d.ts +11 -0
- package/dist/types/movies/alternative_titles.d.ts.map +1 -0
- package/dist/types/movies/alternative_titles.js +1 -0
- package/dist/types/movies/changes.d.ts +3 -0
- package/dist/types/movies/changes.d.ts.map +1 -0
- package/dist/types/movies/changes.js +1 -0
- package/dist/types/movies/credits.d.ts +13 -0
- package/dist/types/movies/credits.d.ts.map +1 -0
- package/dist/types/movies/credits.js +1 -0
- package/dist/types/movies/external_ids.d.ts +16 -0
- package/dist/types/movies/external_ids.d.ts.map +1 -0
- package/dist/types/movies/external_ids.js +1 -0
- package/dist/types/movies/images.d.ts +15 -0
- package/dist/types/movies/images.d.ts.map +1 -0
- package/dist/types/movies/images.js +1 -0
- package/dist/types/movies/index.d.ts +16 -0
- package/dist/types/movies/index.d.ts.map +1 -0
- package/dist/types/movies/index.js +15 -0
- package/dist/types/movies/keywords.d.ts +11 -0
- package/dist/types/movies/keywords.d.ts.map +1 -0
- package/dist/types/movies/keywords.js +1 -0
- package/dist/types/movies/movie.d.ts +106 -0
- package/dist/types/movies/movie.d.ts.map +1 -0
- package/dist/types/movies/movie.js +1 -0
- package/dist/types/movies/params.d.ts +94 -0
- package/dist/types/movies/params.d.ts.map +1 -0
- package/dist/types/movies/params.js +1 -0
- package/dist/types/movies/reccomendations.d.ts +7 -0
- package/dist/types/movies/reccomendations.d.ts.map +1 -0
- package/dist/types/movies/reccomendations.js +1 -0
- package/dist/types/movies/release_dates.d.ts +37 -0
- package/dist/types/movies/release_dates.d.ts.map +1 -0
- package/dist/types/movies/release_dates.js +1 -0
- package/dist/types/movies/reviews.d.ts +38 -0
- package/dist/types/movies/reviews.d.ts.map +1 -0
- package/dist/types/movies/reviews.js +1 -0
- package/dist/types/movies/similar.d.ts +7 -0
- package/dist/types/movies/similar.d.ts.map +1 -0
- package/dist/types/movies/similar.js +1 -0
- package/dist/types/movies/translations.d.ts +36 -0
- package/dist/types/movies/translations.d.ts.map +1 -0
- package/dist/types/movies/translations.js +1 -0
- package/dist/types/movies/videos.d.ts +11 -0
- package/dist/types/movies/videos.d.ts.map +1 -0
- package/dist/types/movies/videos.js +1 -0
- package/dist/types/movies/watch_providers.d.ts +37 -0
- package/dist/types/movies/watch_providers.d.ts.map +1 -0
- package/dist/types/movies/watch_providers.js +1 -0
- package/dist/types/networks/alternative_names.d.ts +1 -0
- package/dist/types/networks/alternative_names.d.ts.map +1 -0
- package/dist/types/networks/alternative_names.js +1 -0
- package/dist/types/networks/images.d.ts +1 -0
- package/dist/types/networks/images.d.ts.map +1 -0
- package/dist/types/networks/images.js +1 -0
- package/dist/types/networks/index.d.ts +2 -0
- package/dist/types/networks/index.d.ts.map +1 -0
- package/dist/types/networks/index.js +1 -0
- package/dist/types/{networks.d.ts → networks/network.d.ts} +2 -2
- package/dist/types/networks/network.d.ts.map +1 -0
- package/dist/types/networks/network.js +1 -0
- package/dist/types/person/index.d.ts +2 -0
- package/dist/types/person/index.d.ts.map +1 -0
- package/dist/types/person/index.js +1 -0
- package/dist/types/{person.d.ts → person/person.d.ts} +2 -5
- package/dist/types/person/person.d.ts.map +1 -0
- package/dist/types/person/person.js +1 -0
- package/dist/types/search/collection.d.ts +22 -0
- package/dist/types/search/collection.d.ts.map +1 -0
- package/dist/types/search/collection.js +1 -0
- package/dist/types/search/company.d.ts +15 -0
- package/dist/types/search/company.d.ts.map +1 -0
- package/dist/types/search/company.js +1 -0
- package/dist/types/search/index.d.ts +7 -0
- package/dist/types/search/index.d.ts.map +1 -0
- package/dist/types/search/index.js +6 -0
- package/dist/types/search/keyword.d.ts +10 -0
- package/dist/types/search/keyword.d.ts.map +1 -0
- package/dist/types/search/keyword.js +1 -0
- package/dist/types/search/movies.d.ts +34 -0
- package/dist/types/search/movies.d.ts.map +1 -0
- package/dist/types/search/movies.js +1 -0
- package/dist/types/search/multi.d.ts +1 -0
- package/dist/types/search/multi.d.ts.map +1 -0
- package/dist/types/search/multi.js +1 -0
- package/dist/types/search/params.d.ts +37 -0
- package/dist/types/search/params.d.ts.map +1 -0
- package/dist/types/search/params.js +1 -0
- package/dist/types/search/tv.d.ts +39 -0
- package/dist/types/search/tv.d.ts.map +1 -0
- package/dist/types/search/tv.js +1 -0
- package/dist/types/tv/{tv_credits.d.ts → aggregate_credits.d.ts} +12 -1
- package/dist/types/tv/aggregate_credits.d.ts.map +1 -0
- package/dist/types/tv/aggregate_credits.js +1 -0
- package/dist/types/tv/alternative_titles.d.ts +11 -0
- package/dist/types/tv/alternative_titles.d.ts.map +1 -0
- package/dist/types/tv/alternative_titles.js +1 -0
- package/dist/types/tv/changes.d.ts +3 -0
- package/dist/types/tv/changes.d.ts.map +1 -0
- package/dist/types/tv/changes.js +1 -0
- package/dist/types/tv/content_ratings.d.ts +5 -0
- package/dist/types/tv/content_ratings.d.ts.map +1 -0
- package/dist/types/tv/content_ratings.js +1 -0
- package/dist/types/tv/credits.d.ts +15 -0
- package/dist/types/tv/credits.d.ts.map +1 -0
- package/dist/types/tv/credits.js +1 -0
- package/dist/types/tv/episode_groups.d.ts +30 -0
- package/dist/types/tv/episode_groups.d.ts.map +1 -0
- package/dist/types/tv/episode_groups.js +1 -0
- package/dist/types/tv/{tv_episodes.d.ts → episodes.d.ts} +1 -1
- package/dist/types/tv/episodes.d.ts.map +1 -0
- package/dist/types/tv/episodes.js +1 -0
- package/dist/types/tv/external_ids.d.ts +26 -0
- package/dist/types/tv/external_ids.d.ts.map +1 -0
- package/dist/types/tv/external_ids.js +1 -0
- package/dist/types/tv/images.d.ts +24 -0
- package/dist/types/tv/images.d.ts.map +1 -0
- package/dist/types/tv/images.js +1 -0
- package/dist/types/tv/index.d.ts +15 -0
- package/dist/types/tv/index.d.ts.map +1 -0
- package/dist/types/tv/index.js +14 -0
- package/dist/types/tv/keywords.d.ts +11 -0
- package/dist/types/tv/keywords.d.ts.map +1 -0
- package/dist/types/tv/keywords.js +1 -0
- package/dist/types/tv/params.d.ts +58 -0
- package/dist/types/tv/params.d.ts.map +1 -0
- package/dist/types/tv/params.js +1 -0
- package/dist/types/tv/reccomendations.d.ts +5 -0
- package/dist/types/tv/reccomendations.d.ts.map +1 -0
- package/dist/types/tv/reccomendations.js +1 -0
- package/dist/types/tv/{tv_seasons.d.ts → seasons.d.ts} +1 -1
- package/dist/types/tv/seasons.d.ts.map +1 -0
- package/dist/types/tv/seasons.js +1 -0
- package/dist/types/tv/similar.d.ts +5 -0
- package/dist/types/tv/similar.d.ts.map +1 -0
- package/dist/types/tv/similar.js +1 -0
- package/dist/types/tv/tv_series.d.ts +11 -42
- package/dist/types/tv/tv_series.d.ts.map +1 -1
- package/dist/types/tv/tv_series.js +1 -2
- package/dist/types/tv/videos.d.ts +9 -0
- package/dist/types/tv/videos.d.ts.map +1 -0
- package/dist/types/tv/videos.js +1 -0
- package/dist/types/utility.d.ts +7 -49
- package/dist/types/utility.d.ts.map +1 -1
- package/dist/types/utility.js +10 -2
- package/package.json +8 -2
- package/tsconfig.json +2 -2
- package/dist/types/collections.d.ts +0 -11
- package/dist/types/collections.d.ts.map +0 -1
- package/dist/types/collections.js +0 -2
- package/dist/types/common.d.ts +0 -110
- package/dist/types/common.d.ts.map +0 -1
- package/dist/types/common.js +0 -3
- package/dist/types/companies.d.ts +0 -8
- package/dist/types/companies.d.ts.map +0 -1
- package/dist/types/companies.js +0 -2
- package/dist/types/configuration.d.ts +0 -31
- package/dist/types/configuration.d.ts.map +0 -1
- package/dist/types/configuration.js +0 -2
- package/dist/types/genres.d.ts +0 -8
- package/dist/types/genres.d.ts.map +0 -1
- package/dist/types/genres.js +0 -2
- package/dist/types/images.d.ts +0 -14
- package/dist/types/images.d.ts.map +0 -1
- package/dist/types/images.js +0 -16
- package/dist/types/intl.d.ts +0 -2
- package/dist/types/intl.d.ts.map +0 -1
- package/dist/types/intl.js +0 -2
- package/dist/types/keywords.d.ts +0 -5
- package/dist/types/keywords.d.ts.map +0 -1
- package/dist/types/keywords.js +0 -2
- package/dist/types/lang.js +0 -940
- package/dist/types/movies.d.ts +0 -171
- package/dist/types/movies.d.ts.map +0 -1
- package/dist/types/movies.js +0 -3
- package/dist/types/networks.d.ts.map +0 -1
- package/dist/types/networks.js +0 -2
- package/dist/types/params/common.d.ts.map +0 -1
- package/dist/types/params/common.js +0 -2
- package/dist/types/params/tv.d.ts +0 -30
- package/dist/types/params/tv.d.ts.map +0 -1
- package/dist/types/params/tv.js +0 -2
- package/dist/types/params.d.ts +0 -84
- package/dist/types/params.d.ts.map +0 -1
- package/dist/types/params.js +0 -2
- package/dist/types/person.d.ts.map +0 -1
- package/dist/types/person.js +0 -2
- package/dist/types/tv/tv_credits.d.ts.map +0 -1
- package/dist/types/tv/tv_credits.js +0 -2
- package/dist/types/tv/tv_episodes.d.ts.map +0 -1
- package/dist/types/tv/tv_episodes.js +0 -2
- package/dist/types/tv/tv_others.d.ts +0 -81
- package/dist/types/tv/tv_others.d.ts.map +0 -1
- package/dist/types/tv/tv_others.js +0 -2
- package/dist/types/tv/tv_seasons.d.ts.map +0 -1
- package/dist/types/tv/tv_seasons.js +0 -2
- /package/dist/types/{timezones.d.ts → config/timezones.d.ts} +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { CountryISO3166_1 } from "../config";
|
|
2
|
+
/**
|
|
3
|
+
* A single TV series result as returned by TMDB APIs.
|
|
4
|
+
*
|
|
5
|
+
* Contains identifiers, localized and original titles, image path references,
|
|
6
|
+
* release and origin information, genre ids, and popularity/vote statistics.
|
|
7
|
+
* It is a partial representation of the TVDetails type.
|
|
8
|
+
*/
|
|
9
|
+
export type TVSeriesResultItem = {
|
|
10
|
+
/** Relative path to the backdrop image for the series (nullable on some responses). */
|
|
11
|
+
backdrop_path: string;
|
|
12
|
+
/** First air date of the series (YYYY-MM-DD). */
|
|
13
|
+
first_air_date: string;
|
|
14
|
+
/** Array of genre ids associated with the series. */
|
|
15
|
+
genre_ids: number[];
|
|
16
|
+
/** Unique TMDB id for the series. */
|
|
17
|
+
id: number;
|
|
18
|
+
/** Series name (localized). */
|
|
19
|
+
name: string;
|
|
20
|
+
/** Origin country codes for the series (ISO 3166-1). */
|
|
21
|
+
origin_country: CountryISO3166_1[];
|
|
22
|
+
/** Original language code (ISO 639-1). */
|
|
23
|
+
original_language: string;
|
|
24
|
+
/** Brief synopsis/overview of the series. */
|
|
25
|
+
overview: string;
|
|
26
|
+
/** Popularity score as returned by TMDB. */
|
|
27
|
+
popularity: number;
|
|
28
|
+
/** Relative path to the poster image for the series (nullable on some responses). */
|
|
29
|
+
poster_path: string;
|
|
30
|
+
/** Average vote score for the series. */
|
|
31
|
+
vote_average: number;
|
|
32
|
+
/** Total number of votes the series has received. */
|
|
33
|
+
vote_count: number;
|
|
34
|
+
/** Localized or display title for the series (may match name). */
|
|
35
|
+
title: string;
|
|
36
|
+
/** Original (non-localized) title of the series. */
|
|
37
|
+
original_title: string;
|
|
38
|
+
};
|
|
39
|
+
//# sourceMappingURL=tv.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tv.d.ts","sourceRoot":"","sources":["../../../src/types/search/tv.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C;;;;;;GAMG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAChC,uFAAuF;IACvF,aAAa,EAAE,MAAM,CAAC;IACtB,iDAAiD;IACjD,cAAc,EAAE,MAAM,CAAC;IACvB,qDAAqD;IACrD,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,qCAAqC;IACrC,EAAE,EAAE,MAAM,CAAC;IACX,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,wDAAwD;IACxD,cAAc,EAAE,gBAAgB,EAAE,CAAC;IACnC,0CAA0C;IAC1C,iBAAiB,EAAE,MAAM,CAAC;IAC1B,6CAA6C;IAC7C,QAAQ,EAAE,MAAM,CAAC;IACjB,4CAA4C;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,qFAAqF;IACrF,WAAW,EAAE,MAAM,CAAC;IACpB,yCAAyC;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,qDAAqD;IACrD,UAAU,EAAE,MAAM,CAAC;IACnB,kEAAkE;IAClE,KAAK,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,cAAc,EAAE,MAAM,CAAC;CACvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,15 @@
|
|
|
1
1
|
import { Credit } from "../common";
|
|
2
|
+
/**
|
|
3
|
+
* Aggregate credits for a TV show, including cast and crew across all seasons and episodes.
|
|
4
|
+
*/
|
|
5
|
+
export type TVAggregateCredits = {
|
|
6
|
+
/** TMDB unique identifier for the TV show. */
|
|
7
|
+
id: number;
|
|
8
|
+
/** List of all the known cast for the TV show. */
|
|
9
|
+
cast: TVAggregateCreditsCastItem[];
|
|
10
|
+
/** List of all the known crew members for the TV show. */
|
|
11
|
+
crew: TVAggregateCreditsCrewItem[];
|
|
12
|
+
};
|
|
2
13
|
/**
|
|
3
14
|
* Cast member in TV show aggregate credits with their roles across all seasons.
|
|
4
15
|
*/
|
|
@@ -44,4 +55,4 @@ type TVCreditJob = {
|
|
|
44
55
|
episode_count: number;
|
|
45
56
|
};
|
|
46
57
|
export {};
|
|
47
|
-
//# sourceMappingURL=
|
|
58
|
+
//# sourceMappingURL=aggregate_credits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aggregate_credits.d.ts","sourceRoot":"","sources":["../../../src/types/tv/aggregate_credits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAChC,8CAA8C;IAC9C,EAAE,EAAE,MAAM,CAAC;IAEX,kDAAkD;IAClD,IAAI,EAAE,0BAA0B,EAAE,CAAC;IAEnC,0DAA0D;IAC1D,IAAI,EAAE,0BAA0B,EAAE,CAAC;CACnC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG;IACpE,0EAA0E;IAC1E,KAAK,EAAE,YAAY,EAAE,CAAC;IAEtB,4DAA4D;IAC5D,mBAAmB,EAAE,MAAM,CAAC;IAE5B,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAC;CACd,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,IAAI,CAAC,MAAM,EAAE,WAAW,CAAC,GAAG;IACpE,4EAA4E;IAC5E,IAAI,EAAE,WAAW,EAAE,CAAC;IAEpB,0DAA0D;IAC1D,mBAAmB,EAAE,MAAM,CAAC;IAE5B,2EAA2E;IAC3E,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,KAAK,YAAY,GAAG;IACnB,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAC;IAElB,yCAAyC;IACzC,SAAS,EAAE,MAAM,CAAC;IAElB,0DAA0D;IAC1D,aAAa,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,KAAK,WAAW,GAAG;IAClB,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAC;IAElB,yDAAyD;IACzD,GAAG,EAAE,MAAM,CAAC;IAEZ,0DAA0D;IAC1D,aAAa,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { AlternativeTitle } from "../common";
|
|
2
|
+
/**
|
|
3
|
+
* Alternative titles for a tv show in different countries/languages
|
|
4
|
+
*/
|
|
5
|
+
export type TVAlternativeTitles = {
|
|
6
|
+
/** Movie identifier */
|
|
7
|
+
id: number;
|
|
8
|
+
/** Array of alternative titles */
|
|
9
|
+
results: AlternativeTitle[];
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=alternative_titles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"alternative_titles.d.ts","sourceRoot":"","sources":["../../../src/types/tv/alternative_titles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IACjC,uBAAuB;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC;IAClC,OAAO,EAAE,gBAAgB,EAAE,CAAC;CAC5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"changes.d.ts","sourceRoot":"","sources":["../../../src/types/tv/changes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"content_ratings.d.ts","sourceRoot":"","sources":["../../../src/types/tv/content_ratings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,MAAM,gBAAgB,GAAG;IAC9B,OAAO,EAAE,aAAa,EAAE,CAAC;CACzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Cast, Crew } from "../common";
|
|
2
|
+
/**
|
|
3
|
+
* This is the original TV credits method which returns the latest season credit data.
|
|
4
|
+
* If you would like to request the aggregate view (which is what you see on the TMDB website)
|
|
5
|
+
* you should use the aggregate_credits method.
|
|
6
|
+
*/
|
|
7
|
+
export type TVCredits = {
|
|
8
|
+
/** TMDB unique identifier for the TV show. */
|
|
9
|
+
id: number;
|
|
10
|
+
/** List of all the known cast for the TV show. */
|
|
11
|
+
cast: Cast[];
|
|
12
|
+
/** List of all the known crew members for the TV show. */
|
|
13
|
+
crew: Crew[];
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=credits.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credits.d.ts","sourceRoot":"","sources":["../../../src/types/tv/credits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEvC;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG;IACvB,8CAA8C;IAC9C,EAAE,EAAE,MAAM,CAAC;IAEX,kDAAkD;IAClD,IAAI,EAAE,IAAI,EAAE,CAAC;IAEb,0DAA0D;IAC1D,IAAI,EAAE,IAAI,EAAE,CAAC;CACb,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { NetworkItem } from "../networks";
|
|
2
|
+
/**
|
|
3
|
+
* Collection of episode groups for a TV series
|
|
4
|
+
*/
|
|
5
|
+
export type TVEpisodeGroups = {
|
|
6
|
+
/** TV series identifier */
|
|
7
|
+
id: number;
|
|
8
|
+
/** Array of episode group items */
|
|
9
|
+
results: TVEpisodeGroupItem[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Alternative grouping of episodes (e.g., chronological order, director's cut)
|
|
13
|
+
*/
|
|
14
|
+
export type TVEpisodeGroupItem = {
|
|
15
|
+
/** Description explaining the purpose of this episode grouping */
|
|
16
|
+
description: string;
|
|
17
|
+
/** Total number of episodes in this group */
|
|
18
|
+
episode_count: number;
|
|
19
|
+
/** Number of sub-groups within this episode group */
|
|
20
|
+
group_count: number;
|
|
21
|
+
/** Unique episode group identifier */
|
|
22
|
+
id: string;
|
|
23
|
+
/** Name of the episode group */
|
|
24
|
+
name: string;
|
|
25
|
+
/** Network that created or distributed this episode grouping */
|
|
26
|
+
network: NetworkItem;
|
|
27
|
+
/** Type of grouping (1=Original air date, 2=Absolute, 3=DVD, 4=Digital, 5=Story arc, 6=Production, 7=TV) */
|
|
28
|
+
type: number;
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=episode_groups.d.ts.map
|
|
@@ -0,0 +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,aAAa,CAAC;AAE1C;;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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"episodes.d.ts","sourceRoot":"","sources":["../../../src/types/tv/episodes.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IAC3B,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,2DAA2D;IAC3D,QAAQ,EAAE,MAAM,CAAC;IACjB,4DAA4D;IAC5D,YAAY,EAAE,MAAM,CAAC;IACrB,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;IACnB,uCAAuC;IACvC,QAAQ,EAAE,IAAI,CAAC;IACf,2CAA2C;IAC3C,cAAc,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,eAAe,EAAE,MAAM,CAAC;IACxB,4CAA4C;IAC5C,OAAO,EAAE,MAAM,CAAC;IAChB,gDAAgD;IAChD,aAAa,EAAE,MAAM,CAAC;IACtB,mEAAmE;IACnE,OAAO,EAAE,MAAM,CAAC;IAChB,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* External platform identifiers for a TV series
|
|
3
|
+
*/
|
|
4
|
+
export type TVExternalIDs = {
|
|
5
|
+
/** TV series identifier in TMDB */
|
|
6
|
+
id: number;
|
|
7
|
+
/** IMDb identifier (e.g., "tt0944947"), null if not available */
|
|
8
|
+
imdb_id?: string;
|
|
9
|
+
/** Freebase MID identifier (deprecated), null if not available */
|
|
10
|
+
freebase_mid?: string;
|
|
11
|
+
/** Freebase ID (deprecated), null if not available */
|
|
12
|
+
freebase_id?: string;
|
|
13
|
+
/** TheTVDB identifier, null if not available */
|
|
14
|
+
tvdb_id?: number;
|
|
15
|
+
/** TVRage identifier (service discontinued), null if not available */
|
|
16
|
+
tvrage_id?: number;
|
|
17
|
+
/** Wikidata identifier (e.g., "Q23572"), null if not available */
|
|
18
|
+
wikidata_id?: string;
|
|
19
|
+
/** Facebook page identifier, null if not available */
|
|
20
|
+
facebook_id?: string;
|
|
21
|
+
/** Instagram handle, null if not available */
|
|
22
|
+
instagram_id?: string;
|
|
23
|
+
/** Twitter/X handle, null if not available */
|
|
24
|
+
twitter_id?: string;
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=external_ids.d.ts.map
|
|
@@ -0,0 +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;IACjB,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,gDAAgD;IAChD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,sEAAsE;IACtE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kEAAkE;IAClE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,sDAAsD;IACtD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8CAA8C;IAC9C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,8CAA8C;IAC9C,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ImageItem } from "../common";
|
|
2
|
+
/**
|
|
3
|
+
* Images related to a TV show.
|
|
4
|
+
* Contains backdrops, logos, posters and stills.
|
|
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
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Image items for TVShows have an undocumented "iso_3166_1" property
|
|
18
|
+
* I decided to put it anyway as an optional property,
|
|
19
|
+
* but only for tv shows images.
|
|
20
|
+
*/
|
|
21
|
+
export type TVImageItem = ImageItem & {
|
|
22
|
+
iso_3166_1?: string;
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=images.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../../../src/types/tv/images.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG;IACtB,8CAA8C;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,+CAA+C;IAC/C,SAAS,EAAE,WAAW,EAAE,CAAC;IACzB,2CAA2C;IAC3C,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,6CAA6C;IAC7C,OAAO,EAAE,WAAW,EAAE,CAAC;CACvB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export * from "./aggregate_credits";
|
|
2
|
+
export * from "./alternative_titles";
|
|
3
|
+
export * from "./credits";
|
|
4
|
+
export * from "./episodes";
|
|
5
|
+
export * from "./external_ids";
|
|
6
|
+
export * from "./images";
|
|
7
|
+
export * from "./keywords";
|
|
8
|
+
export * from "./params";
|
|
9
|
+
export * from "./reccomendations";
|
|
10
|
+
export * from "./seasons";
|
|
11
|
+
export * from "./similar";
|
|
12
|
+
export * from "./tv_series";
|
|
13
|
+
export * from "./videos";
|
|
14
|
+
export * from "./changes";
|
|
15
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/tv/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from "./aggregate_credits";
|
|
2
|
+
export * from "./alternative_titles";
|
|
3
|
+
export * from "./credits";
|
|
4
|
+
export * from "./episodes";
|
|
5
|
+
export * from "./external_ids";
|
|
6
|
+
export * from "./images";
|
|
7
|
+
export * from "./keywords";
|
|
8
|
+
export * from "./params";
|
|
9
|
+
export * from "./reccomendations";
|
|
10
|
+
export * from "./seasons";
|
|
11
|
+
export * from "./similar";
|
|
12
|
+
export * from "./tv_series";
|
|
13
|
+
export * from "./videos";
|
|
14
|
+
export * from "./changes";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Keyword } from "../common";
|
|
2
|
+
/**
|
|
3
|
+
* List of keywords related to the TV show.
|
|
4
|
+
*/
|
|
5
|
+
export type TVKeywords = {
|
|
6
|
+
/** TMDB unique identifier for the TV show. */
|
|
7
|
+
id: number;
|
|
8
|
+
/** List of keywords related to the TV show. */
|
|
9
|
+
results: Keyword[];
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=keywords.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keywords.d.ts","sourceRoot":"","sources":["../../../src/types/tv/keywords.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACxB,8CAA8C;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,+CAA+C;IAC/C,OAAO,EAAE,OAAO,EAAE,CAAC;CACnB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Timezone } from "../config/timezones";
|
|
2
|
+
import { TVAppendToResponseNamespace } from "../tv/tv_series";
|
|
3
|
+
import { Prettify } from "../utility";
|
|
4
|
+
import { DateRange, WithLanguagePage, WithParams } from "../common/params";
|
|
5
|
+
import { Language, LanguageISO6391 } from "../config";
|
|
6
|
+
/**
|
|
7
|
+
* Almost every query within the TV Series domain
|
|
8
|
+
* will take this required param to identify the
|
|
9
|
+
* tv show.
|
|
10
|
+
*/
|
|
11
|
+
export type TVBaseParam = {
|
|
12
|
+
series_id: number;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* Parameters for TV series list endpoints (popular, top rated, airing today, on the air).
|
|
16
|
+
*/
|
|
17
|
+
export type TVSeriesListParams = Prettify<WithLanguagePage & {
|
|
18
|
+
timezone?: Timezone;
|
|
19
|
+
}>;
|
|
20
|
+
/**
|
|
21
|
+
* Parameters for fetching TV show details with optional additional data appended.
|
|
22
|
+
*/
|
|
23
|
+
export type TVDetailsParams = Prettify<TVBaseParam & {
|
|
24
|
+
append_to_response?: TVAppendToResponseNamespace[];
|
|
25
|
+
} & WithParams<"language">>;
|
|
26
|
+
/**
|
|
27
|
+
* Parameters for fetching aggregate credits for a TV show (cast and crew across all seasons).
|
|
28
|
+
*/
|
|
29
|
+
export type TVAggregateCreditsParams = Prettify<TVBaseParam & WithParams<"language">>;
|
|
30
|
+
/**
|
|
31
|
+
* Parameters for fetching tv show change history.
|
|
32
|
+
*/
|
|
33
|
+
export type TVChangeParams = Prettify<TVBaseParam & WithParams<"page"> & DateRange>;
|
|
34
|
+
/**
|
|
35
|
+
* Parameters for fetching tv show credits (cast and crew last season).
|
|
36
|
+
*/
|
|
37
|
+
export type TVCreditsParams = Prettify<TVBaseParam & WithParams<"language">>;
|
|
38
|
+
/**
|
|
39
|
+
* Parameters for fetching tv shows images (backdrops, logos, posters).
|
|
40
|
+
*
|
|
41
|
+
* Note: language and include_image_language params still only support
|
|
42
|
+
* ISO-639-1 language definition according to TMDB docs:
|
|
43
|
+
*
|
|
44
|
+
* "These are all specified as IETF tags to identify the languages we use on TMDB.
|
|
45
|
+
* There is one exception which is image languages.
|
|
46
|
+
* They are currently only designated by a ISO-639-1 tag. This is a planned upgrade for the future."
|
|
47
|
+
* https://developer.themoviedb.org/reference/configuration-primary-translations
|
|
48
|
+
*
|
|
49
|
+
* However, in practice, language in format "en-US" is still accepted.
|
|
50
|
+
* So we allow for both formats.
|
|
51
|
+
*/
|
|
52
|
+
export type TVImagesParams = Prettify<TVBaseParam & {
|
|
53
|
+
/** Language for image metadata (supports both ISO-639-1 and full Language format) */
|
|
54
|
+
language?: Language | LanguageISO6391;
|
|
55
|
+
/** Include images with specific language tags (comma-separated, e.g., "en,null") */
|
|
56
|
+
include_image_language?: Language | LanguageISO6391;
|
|
57
|
+
}>;
|
|
58
|
+
//# sourceMappingURL=params.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../../src/types/tv/params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEtD;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,gBAAgB,GAAG;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAEtF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,WAAW,GAAG;IAAE,kBAAkB,CAAC,EAAE,2BAA2B,EAAE,CAAA;CAAE,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;AAEtI;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;AAEtF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,CAAC;AAEpF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;AAE7E;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,CACpC,WAAW,GAAG;IACb,qFAAqF;IACrF,QAAQ,CAAC,EAAE,QAAQ,GAAG,eAAe,CAAC;IACtC,oFAAoF;IACpF,sBAAsB,CAAC,EAAE,QAAQ,GAAG,eAAe,CAAC;CACpD,CACD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { PaginatedResponse } from "../common";
|
|
2
|
+
import { TVSeriesResultItem } from "../search";
|
|
3
|
+
/** List of TV shows that are recommended for a TV show. */
|
|
4
|
+
export type TVRecommendations = PaginatedResponse<TVSeriesResultItem>;
|
|
5
|
+
//# sourceMappingURL=reccomendations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reccomendations.d.ts","sourceRoot":"","sources":["../../../src/types/tv/reccomendations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,2DAA2D;AAC3D,MAAM,MAAM,iBAAiB,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"seasons.d.ts","sourceRoot":"","sources":["../../../src/types/tv/seasons.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG;IAC1B,gEAAgE;IAChE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,iDAAiD;IACjD,aAAa,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,8BAA8B;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,mDAAmD;IACnD,QAAQ,EAAE,MAAM,CAAC;IACjB,sEAAsE;IACtE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2CAA2C;IAC3C,aAAa,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"similar.d.ts","sourceRoot":"","sources":["../../../src/types/tv/similar.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,sDAAsD;AACtD,MAAM,MAAM,SAAS,GAAG,iBAAiB,CAAC,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,46 +1,15 @@
|
|
|
1
1
|
import { Credit, Genre, ProductionCompany, ProductionCountry, SpokenLanguage } from "../common";
|
|
2
|
-
import { CountryISO3166_1 } from "../countries";
|
|
2
|
+
import { CountryISO3166_1 } from "../config/countries";
|
|
3
3
|
import { NetworkItem } from "../networks";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
*/
|
|
14
|
-
export type TVSeriesResultItem = {
|
|
15
|
-
/** Relative path to the backdrop image for the series (nullable on some responses). */
|
|
16
|
-
backdrop_path: string;
|
|
17
|
-
/** First air date of the series (YYYY-MM-DD). */
|
|
18
|
-
first_air_date: string;
|
|
19
|
-
/** Array of genre ids associated with the series. */
|
|
20
|
-
genre_ids: number[];
|
|
21
|
-
/** Unique TMDB id for the series. */
|
|
22
|
-
id: number;
|
|
23
|
-
/** Series name (localized). */
|
|
24
|
-
name: string;
|
|
25
|
-
/** Origin country codes for the series (ISO 3166-1). */
|
|
26
|
-
origin_country: CountryISO3166_1[];
|
|
27
|
-
/** Original language code (ISO 639-1). */
|
|
28
|
-
original_language: string;
|
|
29
|
-
/** Brief synopsis/overview of the series. */
|
|
30
|
-
overview: string;
|
|
31
|
-
/** Popularity score as returned by TMDB. */
|
|
32
|
-
popularity: number;
|
|
33
|
-
/** Relative path to the poster image for the series (nullable on some responses). */
|
|
34
|
-
poster_path: string;
|
|
35
|
-
/** Average vote score for the series. */
|
|
36
|
-
vote_average: number;
|
|
37
|
-
/** Total number of votes the series has received. */
|
|
38
|
-
vote_count: number;
|
|
39
|
-
/** Localized or display title for the series (may match name). */
|
|
40
|
-
title: string;
|
|
41
|
-
/** Original (non-localized) title of the series. */
|
|
42
|
-
original_title: string;
|
|
43
|
-
};
|
|
4
|
+
import { TVCredits } from "./credits";
|
|
5
|
+
import { TVEpisodeItem } from "./episodes";
|
|
6
|
+
import { TVExternalIDs } from "./external_ids";
|
|
7
|
+
import { TVImages } from "./images";
|
|
8
|
+
import { TVKeywords } from "./keywords";
|
|
9
|
+
import { TVRecommendations } from "./reccomendations";
|
|
10
|
+
import { TVSeasonItem } from "./seasons";
|
|
11
|
+
import { TVSimilar } from "./similar";
|
|
12
|
+
import { TVVideos } from "./videos";
|
|
44
13
|
/**
|
|
45
14
|
* Represent the detailed information about a TV show.
|
|
46
15
|
*/
|
|
@@ -66,7 +35,7 @@ export type TVDetails = {
|
|
|
66
35
|
/** The date the most recent episode aired */
|
|
67
36
|
last_air_date: string;
|
|
68
37
|
/** Details of the last episode that aired, if available */
|
|
69
|
-
last_episode_to_air?: TVEpisodeItem;
|
|
38
|
+
last_episode_to_air?: TVEpisodeItem | null;
|
|
70
39
|
/** The title of the TV show */
|
|
71
40
|
name: string;
|
|
72
41
|
/** Details of the next episode to air, if available */
|
|
@@ -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,
|
|
1
|
+
{"version":3,"file":"tv_series.d.ts","sourceRoot":"","sources":["../../../src/types/tv/tv_series.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { VideoItem } from "../common";
|
|
2
|
+
/** List of videos related to a TV show. */
|
|
3
|
+
export type TVVideos = {
|
|
4
|
+
/** TMDB unique identifier for the TV show. */
|
|
5
|
+
id: number;
|
|
6
|
+
/** List of video results. */
|
|
7
|
+
results: VideoItem[];
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=videos.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"videos.d.ts","sourceRoot":"","sources":["../../../src/types/tv/videos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC,2CAA2C;AAC3C,MAAM,MAAM,QAAQ,GAAG;IACtB,8CAA8C;IAC9C,EAAE,EAAE,MAAM,CAAC;IAEX,6BAA6B;IAC7B,OAAO,EAAE,SAAS,EAAE,CAAC;CACrB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/utility.d.ts
CHANGED
|
@@ -1,52 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BackdropSize, LogoSize, PosterSize, ProfileSize, StillSize } from "./images";
|
|
3
|
-
import { Language } from "./lang";
|
|
4
|
-
import { Timezone } from "./timezones";
|
|
5
|
-
export type TMDBOptions = {
|
|
6
|
-
/**
|
|
7
|
-
* The language to use for requests (ISO 639-1 code)
|
|
8
|
-
* This provides localization and translated data.
|
|
9
|
-
*/
|
|
10
|
-
language?: Language;
|
|
11
|
-
/**
|
|
12
|
-
* Region codes follow ISO 3166-1 (e.g. 'US', 'IT', 'JP') and are used to localize results.
|
|
13
|
-
* They affect release dates, age certifications, watch providers, and filtered movie lists.
|
|
14
|
-
* Example: 'region=IT' returns Italian-specific results for now playing, watch providers, etc.
|
|
15
|
-
* If not set, TMDB may fall back to a default or global data.
|
|
16
|
-
*/
|
|
17
|
-
region?: CountryISO3166_1;
|
|
18
|
-
/**
|
|
19
|
-
* Provide images default configuration
|
|
20
|
-
*/
|
|
21
|
-
images?: ImagesConfig;
|
|
22
|
-
/**
|
|
23
|
-
* Provide a timezone default for all the TV Series related queries
|
|
24
|
-
* which support the timezone param.
|
|
25
|
-
* The timezone is used to calculate the “today” for airing TV shows.
|
|
26
|
-
* Read more: https://www.themoviedb.org/talk/54c554679251416eae010d6d
|
|
27
|
-
*/
|
|
28
|
-
timezone?: Timezone;
|
|
29
|
-
};
|
|
30
|
-
export type ImagesConfig = {
|
|
31
|
-
/**
|
|
32
|
-
* Whether to use the secure (HTTPS) image base URL.
|
|
33
|
-
* Defaults to true. Set to false only if working in an environment where HTTPS is not supported
|
|
34
|
-
* or where you explicitly need non-secure image URLs.
|
|
35
|
-
*/
|
|
36
|
-
secure_images_url?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Provide default image size configuration for each type of images.
|
|
39
|
-
*/
|
|
40
|
-
default_image_sizes?: Partial<DefaultImageSizesConfig>;
|
|
41
|
-
};
|
|
42
|
-
export type DefaultImageSizesConfig = {
|
|
43
|
-
posters?: PosterSize;
|
|
44
|
-
backdrops?: BackdropSize;
|
|
45
|
-
logos?: LogoSize;
|
|
46
|
-
profiles?: ProfileSize;
|
|
47
|
-
still?: StillSize;
|
|
48
|
-
};
|
|
49
|
-
export type MediaType = "movie" | "tv";
|
|
1
|
+
import { KnownForItem, KnownForMovie, KnownForTV } from "./common";
|
|
50
2
|
/**
|
|
51
3
|
* Forces TypeScript to resolve and display the final shape of a type.
|
|
52
4
|
* Useful for seeing the actual properties when hovering in the IDE.
|
|
@@ -54,4 +6,10 @@ export type MediaType = "movie" | "tv";
|
|
|
54
6
|
export type Prettify<T> = T extends object ? (T extends infer O ? {
|
|
55
7
|
[K in keyof O]: Prettify<O[K]>;
|
|
56
8
|
} : never) : T;
|
|
9
|
+
/**
|
|
10
|
+
* Type guard checks for KnowForItems (tv or movie)
|
|
11
|
+
* @returns
|
|
12
|
+
*/
|
|
13
|
+
export declare function isKnownForMovie(item: KnownForItem): item is KnownForMovie;
|
|
14
|
+
export declare function isKnownForTV(item: KnownForItem): item is KnownForTV;
|
|
57
15
|
//# sourceMappingURL=utility.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../../src/types/utility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"utility.d.ts","sourceRoot":"","sources":["../../src/types/utility.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAEnE;;;GAGG;AACH,MAAM,MAAM,QAAQ,CAAC,CAAC,IAAI,CAAC,SAAS,MAAM,GAAG,CAAC,CAAC,SAAS,MAAM,CAAC,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;AAElH;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,YAAY,GAAG,IAAI,IAAI,aAAa,CAEzE;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,YAAY,GAAG,IAAI,IAAI,UAAU,CAEnE"}
|