@lorenzopant/tmdb 1.13.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -1
- package/dist/client.d.ts +5 -1
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +47 -8
- package/dist/endpoints/base.d.ts +1 -0
- package/dist/endpoints/base.d.ts.map +1 -1
- package/dist/endpoints/base.js +3 -1
- package/dist/endpoints/collections.d.ts +1 -1
- package/dist/endpoints/collections.d.ts.map +1 -1
- package/dist/endpoints/companies.d.ts +1 -1
- package/dist/endpoints/companies.d.ts.map +1 -1
- package/dist/endpoints/credits.d.ts +1 -1
- package/dist/endpoints/credits.d.ts.map +1 -1
- package/dist/endpoints/movies.d.ts +4 -10
- package/dist/endpoints/movies.d.ts.map +1 -1
- package/dist/endpoints/movies.js +2 -7
- package/dist/endpoints/networks.d.ts +2 -1
- package/dist/endpoints/networks.d.ts.map +1 -1
- package/dist/endpoints/search.d.ts +1 -6
- package/dist/endpoints/search.d.ts.map +1 -1
- package/dist/endpoints/tv_episode_groups.d.ts +1 -1
- package/dist/endpoints/tv_episode_groups.d.ts.map +1 -1
- package/dist/endpoints/tv_episodes.d.ts +1 -8
- package/dist/endpoints/tv_episodes.d.ts.map +1 -1
- package/dist/endpoints/tv_seasons.d.ts +129 -0
- package/dist/endpoints/tv_seasons.d.ts.map +1 -0
- package/dist/endpoints/tv_seasons.js +164 -0
- package/dist/endpoints/tv_series.d.ts +1 -8
- package/dist/endpoints/tv_series.d.ts.map +1 -1
- package/dist/endpoints/tv_series_lists.d.ts +3 -7
- package/dist/endpoints/tv_series_lists.d.ts.map +1 -1
- package/dist/endpoints/tv_series_lists.js +2 -7
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/routes.d.ts +8 -0
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +8 -0
- package/dist/tmdb.d.ts +2 -0
- package/dist/tmdb.d.ts.map +1 -1
- package/dist/tmdb.js +4 -1
- package/dist/types/{other/collections.d.ts → collections.d.ts} +4 -4
- package/dist/types/collections.d.ts.map +1 -0
- package/dist/types/common/media.d.ts +1 -1
- package/dist/types/{other/companies.d.ts → companies.d.ts} +4 -4
- package/dist/types/companies.d.ts.map +1 -0
- package/dist/types/config/options.d.ts +7 -0
- package/dist/types/config/options.d.ts.map +1 -1
- package/dist/types/{other/credits.d.ts → credits.d.ts} +2 -2
- package/dist/types/credits.d.ts.map +1 -0
- package/dist/types/discover.d.ts +131 -0
- package/dist/types/discover.d.ts.map +1 -0
- package/dist/types/{other/find.d.ts → find.d.ts} +3 -3
- package/dist/types/find.d.ts.map +1 -0
- package/dist/types/index.d.ts +11 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +11 -3
- package/dist/types/{other/keywords.d.ts → keywords.d.ts} +1 -1
- package/dist/types/keywords.d.ts.map +1 -0
- package/dist/types/movies.d.ts +305 -0
- package/dist/types/movies.d.ts.map +1 -0
- package/dist/types/{other/networks.d.ts → networks.d.ts} +2 -2
- package/dist/types/networks.d.ts.map +1 -0
- package/dist/types/search.d.ts +167 -0
- package/dist/types/search.d.ts.map +1 -0
- package/dist/types/{other/tv_episode_groups.d.ts → tv-episode-groups.d.ts} +2 -2
- package/dist/types/tv-episode-groups.d.ts.map +1 -0
- package/dist/types/{tv-episodes/tv_episodes.d.ts → tv-episodes.d.ts} +44 -7
- package/dist/types/tv-episodes.d.ts.map +1 -0
- package/dist/types/tv-seasons.d.ts +132 -0
- package/dist/types/tv-seasons.d.ts.map +1 -0
- package/dist/types/tv-series.d.ts +446 -0
- package/dist/types/tv-series.d.ts.map +1 -0
- package/dist/types/{other/watch_providers.d.ts → watch-providers.d.ts} +5 -5
- package/dist/types/watch-providers.d.ts.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +1 -0
- package/dist/utils/logger.d.ts +19 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/logger.js +41 -0
- package/package.json +1 -1
- package/dist/types/discover/index.d.ts +0 -4
- package/dist/types/discover/index.d.ts.map +0 -1
- package/dist/types/discover/index.js +0 -3
- package/dist/types/discover/movie.d.ts +0 -6
- package/dist/types/discover/movie.d.ts.map +0 -1
- package/dist/types/discover/params.d.ts +0 -81
- package/dist/types/discover/params.d.ts.map +0 -1
- package/dist/types/discover/tv.d.ts +0 -50
- package/dist/types/discover/tv.d.ts.map +0 -1
- package/dist/types/movies/alternative_titles.d.ts +0 -11
- package/dist/types/movies/alternative_titles.d.ts.map +0 -1
- package/dist/types/movies/changes.d.ts +0 -3
- package/dist/types/movies/changes.d.ts.map +0 -1
- package/dist/types/movies/credits.d.ts +0 -13
- package/dist/types/movies/credits.d.ts.map +0 -1
- package/dist/types/movies/external_ids.d.ts +0 -16
- package/dist/types/movies/external_ids.d.ts.map +0 -1
- package/dist/types/movies/images.d.ts +0 -6
- package/dist/types/movies/images.d.ts.map +0 -1
- package/dist/types/movies/index.d.ts +0 -15
- package/dist/types/movies/index.d.ts.map +0 -1
- package/dist/types/movies/index.js +0 -14
- package/dist/types/movies/keywords.d.ts +0 -11
- package/dist/types/movies/keywords.d.ts.map +0 -1
- package/dist/types/movies/movie.d.ts +0 -106
- package/dist/types/movies/movie.d.ts.map +0 -1
- package/dist/types/movies/movie.js +0 -1
- package/dist/types/movies/params.d.ts +0 -94
- package/dist/types/movies/params.d.ts.map +0 -1
- package/dist/types/movies/params.js +0 -1
- package/dist/types/movies/recommendations.d.ts +0 -7
- package/dist/types/movies/recommendations.d.ts.map +0 -1
- package/dist/types/movies/recommendations.js +0 -1
- package/dist/types/movies/release_dates.d.ts +0 -37
- package/dist/types/movies/release_dates.d.ts.map +0 -1
- package/dist/types/movies/release_dates.js +0 -1
- package/dist/types/movies/reviews.d.ts +0 -6
- package/dist/types/movies/reviews.d.ts.map +0 -1
- package/dist/types/movies/reviews.js +0 -1
- package/dist/types/movies/similar.d.ts +0 -7
- package/dist/types/movies/similar.d.ts.map +0 -1
- package/dist/types/movies/similar.js +0 -1
- package/dist/types/movies/translations.d.ts +0 -21
- package/dist/types/movies/translations.d.ts.map +0 -1
- package/dist/types/movies/translations.js +0 -1
- package/dist/types/movies/videos.d.ts +0 -6
- package/dist/types/movies/videos.d.ts.map +0 -1
- package/dist/types/movies/videos.js +0 -1
- package/dist/types/other/collections.d.ts.map +0 -1
- package/dist/types/other/companies.d.ts.map +0 -1
- package/dist/types/other/credits.d.ts.map +0 -1
- package/dist/types/other/credits.js +0 -1
- package/dist/types/other/find.d.ts.map +0 -1
- package/dist/types/other/index.d.ts +0 -9
- package/dist/types/other/index.d.ts.map +0 -1
- package/dist/types/other/index.js +0 -8
- package/dist/types/other/keywords.d.ts.map +0 -1
- package/dist/types/other/keywords.js +0 -1
- package/dist/types/other/networks.d.ts.map +0 -1
- package/dist/types/other/tv_episode_groups.d.ts.map +0 -1
- package/dist/types/other/watch_providers.d.ts.map +0 -1
- package/dist/types/other/watch_providers.js +0 -1
- package/dist/types/search/collection.d.ts +0 -22
- package/dist/types/search/collection.d.ts.map +0 -1
- package/dist/types/search/collection.js +0 -1
- package/dist/types/search/company.d.ts +0 -15
- package/dist/types/search/company.d.ts.map +0 -1
- package/dist/types/search/company.js +0 -1
- package/dist/types/search/index.d.ts +0 -7
- package/dist/types/search/index.d.ts.map +0 -1
- package/dist/types/search/index.js +0 -6
- package/dist/types/search/keyword.d.ts +0 -6
- package/dist/types/search/keyword.d.ts.map +0 -1
- package/dist/types/search/keyword.js +0 -1
- package/dist/types/search/movie.d.ts +0 -34
- package/dist/types/search/movie.d.ts.map +0 -1
- package/dist/types/search/movie.js +0 -1
- package/dist/types/search/multi.d.ts +0 -1
- package/dist/types/search/multi.d.ts.map +0 -1
- package/dist/types/search/multi.js +0 -1
- package/dist/types/search/params.d.ts +0 -37
- package/dist/types/search/params.d.ts.map +0 -1
- package/dist/types/search/params.js +0 -1
- package/dist/types/search/person.d.ts +0 -13
- package/dist/types/search/person.d.ts.map +0 -1
- package/dist/types/search/person.js +0 -1
- package/dist/types/search/tv.d.ts +0 -39
- package/dist/types/search/tv.d.ts.map +0 -1
- package/dist/types/search/tv.js +0 -1
- package/dist/types/tv/aggregate_credits.d.ts +0 -58
- package/dist/types/tv/aggregate_credits.d.ts.map +0 -1
- package/dist/types/tv/aggregate_credits.js +0 -1
- package/dist/types/tv/alternative_titles.d.ts +0 -11
- package/dist/types/tv/alternative_titles.d.ts.map +0 -1
- package/dist/types/tv/alternative_titles.js +0 -1
- package/dist/types/tv/changes.d.ts +0 -3
- package/dist/types/tv/changes.d.ts.map +0 -1
- package/dist/types/tv/changes.js +0 -1
- package/dist/types/tv/content_ratings.d.ts +0 -5
- package/dist/types/tv/content_ratings.d.ts.map +0 -1
- package/dist/types/tv/content_ratings.js +0 -1
- package/dist/types/tv/credits.d.ts +0 -15
- package/dist/types/tv/credits.d.ts.map +0 -1
- package/dist/types/tv/credits.js +0 -1
- package/dist/types/tv/episode_groups.d.ts +0 -30
- package/dist/types/tv/episode_groups.d.ts.map +0 -1
- package/dist/types/tv/episode_groups.js +0 -1
- package/dist/types/tv/episodes.d.ts +0 -27
- package/dist/types/tv/episodes.d.ts.map +0 -1
- package/dist/types/tv/episodes.js +0 -1
- package/dist/types/tv/external_ids.d.ts +0 -26
- package/dist/types/tv/external_ids.d.ts.map +0 -1
- package/dist/types/tv/external_ids.js +0 -1
- package/dist/types/tv/images.d.ts +0 -15
- package/dist/types/tv/images.d.ts.map +0 -1
- package/dist/types/tv/images.js +0 -1
- package/dist/types/tv/index.d.ts +0 -21
- package/dist/types/tv/index.d.ts.map +0 -1
- package/dist/types/tv/index.js +0 -20
- package/dist/types/tv/keywords.d.ts +0 -11
- package/dist/types/tv/keywords.d.ts.map +0 -1
- package/dist/types/tv/keywords.js +0 -1
- package/dist/types/tv/lists.d.ts +0 -32
- package/dist/types/tv/lists.d.ts.map +0 -1
- package/dist/types/tv/lists.js +0 -1
- package/dist/types/tv/params.d.ts +0 -74
- package/dist/types/tv/params.d.ts.map +0 -1
- package/dist/types/tv/params.js +0 -1
- package/dist/types/tv/recommendations.d.ts +0 -5
- package/dist/types/tv/recommendations.d.ts.map +0 -1
- package/dist/types/tv/recommendations.js +0 -1
- package/dist/types/tv/reviews.d.ts +0 -6
- package/dist/types/tv/reviews.d.ts.map +0 -1
- package/dist/types/tv/reviews.js +0 -1
- package/dist/types/tv/screened_theatrically.d.ts +0 -21
- package/dist/types/tv/screened_theatrically.d.ts.map +0 -1
- package/dist/types/tv/screened_theatrically.js +0 -1
- package/dist/types/tv/seasons.d.ts +0 -17
- package/dist/types/tv/seasons.d.ts.map +0 -1
- package/dist/types/tv/seasons.js +0 -1
- package/dist/types/tv/similar.d.ts +0 -5
- package/dist/types/tv/similar.d.ts.map +0 -1
- package/dist/types/tv/similar.js +0 -1
- package/dist/types/tv/translations.d.ts +0 -20
- package/dist/types/tv/translations.d.ts.map +0 -1
- package/dist/types/tv/translations.js +0 -1
- package/dist/types/tv/tv_series.d.ts +0 -104
- package/dist/types/tv/tv_series.d.ts.map +0 -1
- package/dist/types/tv/tv_series.js +0 -1
- package/dist/types/tv/videos.d.ts +0 -9
- package/dist/types/tv/videos.d.ts.map +0 -1
- package/dist/types/tv/videos.js +0 -1
- package/dist/types/tv-episodes/credits.d.ts +0 -8
- package/dist/types/tv-episodes/credits.d.ts.map +0 -1
- package/dist/types/tv-episodes/credits.js +0 -1
- package/dist/types/tv-episodes/external_ids.d.ts +0 -3
- package/dist/types/tv-episodes/external_ids.d.ts.map +0 -1
- package/dist/types/tv-episodes/external_ids.js +0 -1
- package/dist/types/tv-episodes/images.d.ts +0 -3
- package/dist/types/tv-episodes/images.d.ts.map +0 -1
- package/dist/types/tv-episodes/images.js +0 -1
- package/dist/types/tv-episodes/index.d.ts +0 -4
- package/dist/types/tv-episodes/index.d.ts.map +0 -1
- package/dist/types/tv-episodes/index.js +0 -3
- package/dist/types/tv-episodes/params.d.ts +0 -30
- package/dist/types/tv-episodes/params.d.ts.map +0 -1
- package/dist/types/tv-episodes/params.js +0 -1
- package/dist/types/tv-episodes/translations.d.ts +0 -7
- package/dist/types/tv-episodes/translations.d.ts.map +0 -1
- package/dist/types/tv-episodes/translations.js +0 -1
- package/dist/types/tv-episodes/tv_episodes.d.ts.map +0 -1
- package/dist/types/tv-episodes/tv_episodes.js +0 -1
- package/dist/types/tv-episodes/videos.d.ts +0 -3
- package/dist/types/tv-episodes/videos.d.ts.map +0 -1
- package/dist/types/tv-episodes/videos.js +0 -1
- package/dist/types/tv-seasons/params.d.ts +0 -15
- package/dist/types/tv-seasons/params.d.ts.map +0 -1
- package/dist/types/tv-seasons/params.js +0 -1
- package/dist/types/tv-seasons/tv-season.d.ts +0 -1
- package/dist/types/tv-seasons/tv-season.d.ts.map +0 -1
- package/dist/types/tv-seasons/tv-season.js +0 -1
- /package/dist/types/{other/collections.js → collections.js} +0 -0
- /package/dist/types/{other/companies.js → companies.js} +0 -0
- /package/dist/types/{movies/credits.js → credits.js} +0 -0
- /package/dist/types/{discover/tv.js → discover.js} +0 -0
- /package/dist/types/{other/find.js → find.js} +0 -0
- /package/dist/types/{movies/keywords.js → keywords.js} +0 -0
- /package/dist/types/{discover/movie.js → movies.js} +0 -0
- /package/dist/types/{other/networks.js → networks.js} +0 -0
- /package/dist/types/{discover/params.js → search.js} +0 -0
- /package/dist/types/{other/tv_episode_groups.js → tv-episode-groups.js} +0 -0
- /package/dist/types/{movies/alternative_titles.js → tv-episodes.js} +0 -0
- /package/dist/types/{movies/changes.js → tv-seasons.js} +0 -0
- /package/dist/types/{movies/external_ids.js → tv-series.js} +0 -0
- /package/dist/types/{movies/images.js → watch-providers.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,26 +0,0 @@
|
|
|
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 | null;
|
|
9
|
-
/** Freebase MID identifier (deprecated), null if not available */
|
|
10
|
-
freebase_mid?: string | null;
|
|
11
|
-
/** Freebase ID (deprecated), null if not available */
|
|
12
|
-
freebase_id?: string | null;
|
|
13
|
-
/** TheTVDB identifier, null if not available */
|
|
14
|
-
tvdb_id?: number | null;
|
|
15
|
-
/** TVRage identifier (service discontinued), null if not available */
|
|
16
|
-
tvrage_id?: number | null;
|
|
17
|
-
/** Wikidata identifier (e.g., "Q23572"), null if not available */
|
|
18
|
-
wikidata_id?: string | null;
|
|
19
|
-
/** Facebook page identifier, null if not available */
|
|
20
|
-
facebook_id?: string | null;
|
|
21
|
-
/** Instagram handle, null if not available */
|
|
22
|
-
instagram_id?: string | null;
|
|
23
|
-
/** Twitter/X handle, null if not available */
|
|
24
|
-
twitter_id?: string | null;
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=external_ids.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ImageItem, ImagesResult } from "../common/images";
|
|
2
|
-
/**
|
|
3
|
-
* Images related to a TV show.
|
|
4
|
-
* Contains backdrops, logos, posters and stills.
|
|
5
|
-
*/
|
|
6
|
-
export type TVImages = ImagesResult<TVImageItem, "backdrops" | "logos" | "posters">;
|
|
7
|
-
/**
|
|
8
|
-
* Image items for TVShows have an undocumented "iso_3166_1" property
|
|
9
|
-
* I decided to put it anyway as an optional property,
|
|
10
|
-
* but only for tv shows images.
|
|
11
|
-
*/
|
|
12
|
-
export type TVImageItem = ImageItem & {
|
|
13
|
-
iso_3166_1?: string;
|
|
14
|
-
};
|
|
15
|
-
//# sourceMappingURL=images.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/types/tv/images.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/types/tv/index.d.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export * from "./aggregate_credits";
|
|
2
|
-
export * from "./alternative_titles";
|
|
3
|
-
export * from "./changes";
|
|
4
|
-
export * from "./content_ratings";
|
|
5
|
-
export * from "./credits";
|
|
6
|
-
export * from "./episode_groups";
|
|
7
|
-
export * from "./episodes";
|
|
8
|
-
export * from "./external_ids";
|
|
9
|
-
export * from "./images";
|
|
10
|
-
export * from "./keywords";
|
|
11
|
-
export * from "./lists";
|
|
12
|
-
export * from "./params";
|
|
13
|
-
export * from "./recommendations";
|
|
14
|
-
export * from "./reviews";
|
|
15
|
-
export * from "./screened_theatrically";
|
|
16
|
-
export * from "./seasons";
|
|
17
|
-
export * from "./similar";
|
|
18
|
-
export * from "./tv_series";
|
|
19
|
-
export * from "./videos";
|
|
20
|
-
export * from "./translations";
|
|
21
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,gBAAgB,CAAC"}
|
package/dist/types/tv/index.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export * from "./aggregate_credits";
|
|
2
|
-
export * from "./alternative_titles";
|
|
3
|
-
export * from "./changes";
|
|
4
|
-
export * from "./content_ratings";
|
|
5
|
-
export * from "./credits";
|
|
6
|
-
export * from "./episode_groups";
|
|
7
|
-
export * from "./episodes";
|
|
8
|
-
export * from "./external_ids";
|
|
9
|
-
export * from "./images";
|
|
10
|
-
export * from "./keywords";
|
|
11
|
-
export * from "./lists";
|
|
12
|
-
export * from "./params";
|
|
13
|
-
export * from "./recommendations";
|
|
14
|
-
export * from "./reviews";
|
|
15
|
-
export * from "./screened_theatrically";
|
|
16
|
-
export * from "./seasons";
|
|
17
|
-
export * from "./similar";
|
|
18
|
-
export * from "./tv_series";
|
|
19
|
-
export * from "./videos";
|
|
20
|
-
export * from "./translations";
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/types/tv/lists.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { PaginatedResponse } from "../common";
|
|
2
|
-
import { CountryISO3166_1, LanguageISO6391 } from "../config";
|
|
3
|
-
/**
|
|
4
|
-
* Represents a paginated collection of TV series lists, extended with a unique identifier.
|
|
5
|
-
* Combines a standard `PaginatedResponse<TVSeriesListItem>` with an `id` field
|
|
6
|
-
* that uniquely identifies the tv show.
|
|
7
|
-
*/
|
|
8
|
-
export type TVSeriesLists = PaginatedResponse<TVSeriesListItem> & {
|
|
9
|
-
id: number;
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Represents a single TV series list entry as returned by the TMDB API.
|
|
13
|
-
*/
|
|
14
|
-
export type TVSeriesListItem = {
|
|
15
|
-
/** A brief description of the list provided by its creator. */
|
|
16
|
-
description: string;
|
|
17
|
-
/** The number of times this list has been marked as a favorite by TMDB users. */
|
|
18
|
-
favorite_count: number;
|
|
19
|
-
/** The unique identifier for this list on TMDB. */
|
|
20
|
-
id: number;
|
|
21
|
-
/** The total number of items (TV series) currently in this list. */
|
|
22
|
-
item_count: number;
|
|
23
|
-
/** The primary language of the list content as an ISO 639-1 code (e.g. `"en"`). */
|
|
24
|
-
iso_639_1: string | LanguageISO6391;
|
|
25
|
-
/** The country associated with the list as an ISO 3166-1 alpha-2 code (e.g. `"US"`). */
|
|
26
|
-
iso_3166_1: string | CountryISO3166_1;
|
|
27
|
-
/** The display name of the list. */
|
|
28
|
-
name: string;
|
|
29
|
-
/** Path to the list's poster image on the TMDB CDN. Combine with a base URL to get the full image path. */
|
|
30
|
-
poster_path?: string;
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=lists.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lists.d.ts","sourceRoot":"","sources":["../../../src/types/tv/lists.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE9D;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,iBAAiB,CAAC,gBAAgB,CAAC,GAAG;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AAEjF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B,+DAA+D;IAC/D,WAAW,EAAE,MAAM,CAAC;IACpB,iFAAiF;IACjF,cAAc,EAAE,MAAM,CAAC;IACvB,mDAAmD;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,oEAAoE;IACpE,UAAU,EAAE,MAAM,CAAC;IACnB,mFAAmF;IACnF,SAAS,EAAE,MAAM,GAAG,eAAe,CAAC;IACpC,wFAAwF;IACxF,UAAU,EAAE,MAAM,GAAG,gBAAgB,CAAC;IACtC,oCAAoC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,2GAA2G;IAC3G,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
|
package/dist/types/tv/lists.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { Timezone } from "../config/timezones";
|
|
2
|
-
import { TVAppendToResponseNamespace } from "./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
|
-
/**
|
|
59
|
-
* Parameters for fetching TV series lists (lists endpoint, different from airing_today ecc...).
|
|
60
|
-
*/
|
|
61
|
-
export type TVSeriesListsParams = Prettify<TVBaseParam & WithLanguagePage>;
|
|
62
|
-
/**
|
|
63
|
-
* Parameters for fetching tv shows recommendations.
|
|
64
|
-
*/
|
|
65
|
-
export type TVRecommendationsParams = Prettify<TVBaseParam & WithLanguagePage>;
|
|
66
|
-
/**
|
|
67
|
-
* Parameters for fetching similar tv shows.
|
|
68
|
-
*/
|
|
69
|
-
export type TVSimilarParams = Prettify<TVBaseParam & WithLanguagePage>;
|
|
70
|
-
/**
|
|
71
|
-
* Parameters for fetching tv show reviews.
|
|
72
|
-
*/
|
|
73
|
-
export type TVReviewsParams = Prettify<TVBaseParam & WithLanguagePage>;
|
|
74
|
-
//# sourceMappingURL=params.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../../src/types/tv/params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EA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M,mBAAmB,GAAG,QAAQ,CAAC,WAAW,GAAG,gBAAgB,CAAC,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG,QAAQ,CAAC,WAAW,GAAG,gBAAgB,CAAC,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,WAAW,GAAG,gBAAgB,CAAC,CAAC;AAEvE;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,WAAW,GAAG,gBAAgB,CAAC,CAAC"}
|
package/dist/types/tv/params.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,5 +0,0 @@
|
|
|
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=recommendations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"recommendations.d.ts","sourceRoot":"","sources":["../../../src/types/tv/recommendations.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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reviews.d.ts","sourceRoot":"","sources":["../../../src/types/tv/reviews.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC"}
|
package/dist/types/tv/reviews.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Represents the response for TV episodes that have been screened theatrically.
|
|
3
|
-
*/
|
|
4
|
-
export type TVScreenedTheatrically = {
|
|
5
|
-
/** The unique identifier of the TV series. */
|
|
6
|
-
id: number;
|
|
7
|
-
/** The list of episodes that received a theatrical screening. */
|
|
8
|
-
results: TVScreeningItem[];
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Represents a single TV episode that was screened theatrically.
|
|
12
|
-
*/
|
|
13
|
-
export type TVScreeningItem = {
|
|
14
|
-
/** The unique identifier of the episode. */
|
|
15
|
-
id: number;
|
|
16
|
-
/** The episode number within its season. */
|
|
17
|
-
episode_number: number;
|
|
18
|
-
/** The season number the episode belongs to. */
|
|
19
|
-
season_number: number;
|
|
20
|
-
};
|
|
21
|
-
//# sourceMappingURL=screened_theatrically.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"screened_theatrically.d.ts","sourceRoot":"","sources":["../../../src/types/tv/screened_theatrically.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACpC,8CAA8C;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,iEAAiE;IACjE,OAAO,EAAE,eAAe,EAAE,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B,4CAA4C;IAC5C,EAAE,EAAE,MAAM,CAAC;IACX,4CAA4C;IAC5C,cAAc,EAAE,MAAM,CAAC;IACvB,gDAAgD;IAChD,aAAa,EAAE,MAAM,CAAC;CACtB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export type TVSeasonItem = {
|
|
2
|
-
/** The date the season first aired, or null if not available */
|
|
3
|
-
air_date?: string;
|
|
4
|
-
/** The total number of episodes in the season */
|
|
5
|
-
episode_count: number;
|
|
6
|
-
/** The unique identifier for the season */
|
|
7
|
-
id: number;
|
|
8
|
-
/** The title of the season */
|
|
9
|
-
name: string;
|
|
10
|
-
/** A brief description or summary of the season */
|
|
11
|
-
overview: string;
|
|
12
|
-
/** The path to the season's poster image, or null if not available */
|
|
13
|
-
poster_path?: string;
|
|
14
|
-
/** The season number within the TV show */
|
|
15
|
-
season_number: number;
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=seasons.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/types/tv/seasons.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/types/tv/similar.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { TranslationResults } from "../common";
|
|
2
|
-
/**
|
|
3
|
-
* Represents the collection of available translations for a TV series.
|
|
4
|
-
*/
|
|
5
|
-
export type TVTranslations = TranslationResults<TVTranslationData>;
|
|
6
|
-
/**
|
|
7
|
-
* The translated text fields for a TV series in a specific language.
|
|
8
|
-
* All fields are optional as not every translation may provide all values.
|
|
9
|
-
*/
|
|
10
|
-
export type TVTranslationData = {
|
|
11
|
-
/** The translated name of the TV series. */
|
|
12
|
-
name?: string;
|
|
13
|
-
/** The translated overview or synopsis of the TV series. */
|
|
14
|
-
overview?: string;
|
|
15
|
-
/** The translated homepage URL for the TV series. */
|
|
16
|
-
homepage?: string;
|
|
17
|
-
/** The translated tagline of the TV series. */
|
|
18
|
-
tagline?: string;
|
|
19
|
-
};
|
|
20
|
-
//# sourceMappingURL=translations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { Credit, Genre, ProductionCompany, ProductionCountry, SpokenLanguage } from "../common";
|
|
2
|
-
import { CountryISO3166_1 } from "../config/countries";
|
|
3
|
-
import { NetworkItem } from "../other";
|
|
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 "./recommendations";
|
|
10
|
-
import { TVSeasonItem } from "./seasons";
|
|
11
|
-
import { TVSimilar } from "./similar";
|
|
12
|
-
import { TVTranslations } from "./translations";
|
|
13
|
-
import { TVVideos } from "./videos";
|
|
14
|
-
/**
|
|
15
|
-
* Represent the detailed information about a TV show.
|
|
16
|
-
*/
|
|
17
|
-
export type TVSeriesDetails = {
|
|
18
|
-
/** The path to the backdrop image, or null if not available */
|
|
19
|
-
backdrop_path: string | null;
|
|
20
|
-
/** Array of creators who developed the TV show */
|
|
21
|
-
created_by: Pick<Credit, "id" | "credit_id" | "gender" | "name" | "profile_path">[];
|
|
22
|
-
/** Array of typical episode runtimes in minutes */
|
|
23
|
-
episode_run_time: number[];
|
|
24
|
-
/** The date the first episode aired */
|
|
25
|
-
first_air_date: string;
|
|
26
|
-
/** Array of genres associated with the TV show */
|
|
27
|
-
genres: Genre[];
|
|
28
|
-
/** The official homepage URL for the TV show, or null if not available */
|
|
29
|
-
homepage: string | null;
|
|
30
|
-
/** The unique identifier for the TV show */
|
|
31
|
-
id: number;
|
|
32
|
-
/** Indicates whether the TV show is currently in production */
|
|
33
|
-
in_production: boolean;
|
|
34
|
-
/** Array of language codes used in the TV show */
|
|
35
|
-
languages: string[];
|
|
36
|
-
/** The date the most recent episode aired */
|
|
37
|
-
last_air_date: string;
|
|
38
|
-
/** Details of the last episode that aired, if available */
|
|
39
|
-
last_episode_to_air?: TVEpisodeItem | null;
|
|
40
|
-
/** The title of the TV show */
|
|
41
|
-
name: string;
|
|
42
|
-
/** Details of the next episode to air, if available */
|
|
43
|
-
next_episode_to_air?: TVEpisodeItem;
|
|
44
|
-
/** Array of networks that broadcast the TV show */
|
|
45
|
-
networks?: NetworkItem[];
|
|
46
|
-
/** The total number of episodes across all seasons */
|
|
47
|
-
number_of_episodes: number;
|
|
48
|
-
/** The total number of seasons */
|
|
49
|
-
number_of_seasons: number;
|
|
50
|
-
/** Array of country codes where the show originated (ISO 3166-1 format) */
|
|
51
|
-
origin_country: CountryISO3166_1[];
|
|
52
|
-
/** The original language code of the TV show */
|
|
53
|
-
original_language: string;
|
|
54
|
-
/** The original title of the TV show */
|
|
55
|
-
original_name: string;
|
|
56
|
-
/** A brief description or summary of the TV show, or null if not available */
|
|
57
|
-
overview: string | null;
|
|
58
|
-
/** The popularity score of the TV show */
|
|
59
|
-
popularity: number;
|
|
60
|
-
/** The path to the poster image, or null if not available */
|
|
61
|
-
poster_path: string | null;
|
|
62
|
-
/** Array of companies that produced the TV show */
|
|
63
|
-
production_companies?: ProductionCompany[];
|
|
64
|
-
/** Array of countries where the TV show was produced */
|
|
65
|
-
production_countries?: ProductionCountry[];
|
|
66
|
-
/** Array of all seasons in the TV show */
|
|
67
|
-
seasons?: TVSeasonItem[];
|
|
68
|
-
/** Array of languages spoken in the TV show with full names */
|
|
69
|
-
spoken_languages?: SpokenLanguage[];
|
|
70
|
-
/** The current status of the TV show (e.g., "Returning Series", "Ended") */
|
|
71
|
-
status?: string;
|
|
72
|
-
/** The type of TV show (e.g., "Scripted", "Documentary", "Reality") */
|
|
73
|
-
type?: string;
|
|
74
|
-
/** The average rating score for the TV show (0-10 scale) */
|
|
75
|
-
vote_average: number;
|
|
76
|
-
/** The total number of votes received for the TV show */
|
|
77
|
-
vote_count: number;
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* Available append-to-response options for TV show details.
|
|
81
|
-
* These allow fetching additional related data in a single API request.
|
|
82
|
-
*/
|
|
83
|
-
export type TVAppendToResponseNamespace = "credits" | "external_ids" | "images" | "keywords" | "recommendations" | "similar" | "translations" | "videos";
|
|
84
|
-
/**
|
|
85
|
-
* Maps append-to-response keys to their corresponding response types.
|
|
86
|
-
*/
|
|
87
|
-
export type TVAppendableMap = {
|
|
88
|
-
credits: TVCredits;
|
|
89
|
-
external_ids: TVExternalIDs;
|
|
90
|
-
images: TVImages;
|
|
91
|
-
keywords: TVKeywords;
|
|
92
|
-
recommendations: TVRecommendations;
|
|
93
|
-
similar: TVSimilar;
|
|
94
|
-
translations: TVTranslations;
|
|
95
|
-
videos: TVVideos;
|
|
96
|
-
};
|
|
97
|
-
/**
|
|
98
|
-
* TV show details with additional appended data based on the requested namespaces.
|
|
99
|
-
* @template T - Array of append-to-response namespace keys to include
|
|
100
|
-
*/
|
|
101
|
-
export type TVDetailsWithAppends<T extends readonly TVAppendToResponseNamespace[]> = TVSeriesDetails & {
|
|
102
|
-
[K in T[number]]: TVAppendableMap[K];
|
|
103
|
-
};
|
|
104
|
-
//# sourceMappingURL=tv_series.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,SAA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@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
package/dist/types/tv/videos.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { WithLanguage, WithParams } from "../common";
|
|
2
|
-
import { Language } from "../config";
|
|
3
|
-
import { TVSeasonBaseParams } from "../tv-seasons/params";
|
|
4
|
-
import { Prettify } from "../utility";
|
|
5
|
-
import { TVEpisodeAppendToResponseNamespace } from "./tv_episodes";
|
|
6
|
-
/**
|
|
7
|
-
* Almost every query within the TV Episodes domain
|
|
8
|
-
* will take this required param to identify the
|
|
9
|
-
* tv show episode.
|
|
10
|
-
*/
|
|
11
|
-
export type TVEpisodeBaseParams = TVSeasonBaseParams & {
|
|
12
|
-
/** Episode number */
|
|
13
|
-
episode_number: number;
|
|
14
|
-
};
|
|
15
|
-
/** Uniquely identifies an episode across different tv shows. */
|
|
16
|
-
export type TVEpisodeId = {
|
|
17
|
-
episode_id: string | number;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* Parameters for fetching TV episode details with optional additional data appended.
|
|
21
|
-
*/
|
|
22
|
-
export type TVEpisodeDetailsParams = Prettify<TVEpisodeBaseParams & {
|
|
23
|
-
append_to_response?: TVEpisodeAppendToResponseNamespace[];
|
|
24
|
-
} & WithParams<"language">>;
|
|
25
|
-
/** Parameters for tv episode credits endpoint */
|
|
26
|
-
export type TVEpisodeCreditsParams = TVEpisodeBaseParams & WithLanguage;
|
|
27
|
-
export type TVEpisodeImagesParams = TVEpisodeBaseParams & WithLanguage & {
|
|
28
|
-
include_image_language?: Language;
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=params.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../../src/types/tv-episodes/params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,kCAAkC,EAAE,MAAM,eAAe,CAAC;AAEnE;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,GAAG;IACtD,qBAAqB;IACrB,cAAc,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,gEAAgE;AAChE,MAAM,MAAM,WAAW,GAAG;IACzB,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAC5C,mBAAmB,GAAG;IAAE,kBAAkB,CAAC,EAAE,kCAAkC,EAAE,CAAA;CAAE,GAAG,UAAU,CAAC,UAAU,CAAC,CAC5G,CAAC;AAEF,iDAAiD;AACjD,MAAM,MAAM,sBAAsB,GAAG,mBAAmB,GAAG,YAAY,CAAC;AAExE,MAAM,MAAM,qBAAqB,GAAG,mBAAmB,GACtD,YAAY,GAAG;IACd,sBAAsB,CAAC,EAAE,QAAQ,CAAC;CAClC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { TranslationResults } from "../common";
|
|
2
|
-
export type TVEpisodeTranslations = TranslationResults<TVEpisodeTranslation>;
|
|
3
|
-
export type TVEpisodeTranslation = {
|
|
4
|
-
name?: string | null;
|
|
5
|
-
overview?: string | null;
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=translations.d.ts.map
|