@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
|
@@ -0,0 +1,30 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/types/tv-episodes/translations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,MAAM,qBAAqB,GAAG,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;AAG7E,MAAM,MAAM,oBAAoB,GAAG;IAClC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { Cast, Crew } from "../common";
|
|
2
|
+
import { TVEpisodeCredits } from "./credits";
|
|
3
|
+
import { TVEpisodeExternalIDs } from "./external_ids";
|
|
4
|
+
import { TVEpisodeImages } from "./images";
|
|
5
|
+
import { TVEpisodeTranslations } from "./translations";
|
|
6
|
+
import { TVEpisodeVideos } from "./videos";
|
|
7
|
+
/**
|
|
8
|
+
* Represents a single episode of a TV series from the TMDB API.
|
|
9
|
+
* Contains detailed metadata including crew, guest stars, and voting stats.
|
|
10
|
+
*/
|
|
11
|
+
export type TVEpisode = {
|
|
12
|
+
/** ISO 8601 formatted date when the episode first aired (e.g. `"2023-05-15"`) */
|
|
13
|
+
air_date: string;
|
|
14
|
+
/** Array of crew members who worked on this specific episode */
|
|
15
|
+
crew: Crew[];
|
|
16
|
+
/** Sequential number of this episode within its season (1-based) */
|
|
17
|
+
episode_number: number;
|
|
18
|
+
/** Array of guest stars appearing in this episode (subset of cast without `cast_id`) */
|
|
19
|
+
guest_stars: Omit<Cast, "cast_id">[];
|
|
20
|
+
/** Episode title or name */
|
|
21
|
+
name: string;
|
|
22
|
+
/** Episode synopsis or description */
|
|
23
|
+
overview: string;
|
|
24
|
+
/** Unique TMDB identifier for this episode */
|
|
25
|
+
id: number;
|
|
26
|
+
/** Production code assigned by the production company, if available */
|
|
27
|
+
production_code?: string | null;
|
|
28
|
+
/** Runtime of the episode in minutes */
|
|
29
|
+
runtime: number;
|
|
30
|
+
/** Season number this episode belongs to (1-based) */
|
|
31
|
+
season_number: number;
|
|
32
|
+
/** Relative path to the episode still/image (e.g. `"/abc123.jpg"`), or null if none */
|
|
33
|
+
still_path?: string | null;
|
|
34
|
+
/** Average user rating of the episode (0-10 scale) */
|
|
35
|
+
vote_average: number;
|
|
36
|
+
/** Total number of user votes for the episode */
|
|
37
|
+
vote_count: number;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Available append-to-response options for TV episode details.
|
|
41
|
+
* These allow fetching additional related data in a single API request.
|
|
42
|
+
*/
|
|
43
|
+
export type TVEpisodeAppendToResponseNamespace = "credits" | "external_ids" | "images" | "translations" | "videos";
|
|
44
|
+
/**
|
|
45
|
+
* Maps append-to-response keys to their corresponding response types.
|
|
46
|
+
*/
|
|
47
|
+
export type TVEpisodeAppendableMap = {
|
|
48
|
+
credits: TVEpisodeCredits;
|
|
49
|
+
external_ids: TVEpisodeExternalIDs;
|
|
50
|
+
images: TVEpisodeImages;
|
|
51
|
+
translations: TVEpisodeTranslations;
|
|
52
|
+
videos: TVEpisodeVideos;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* TV show details with additional appended data based on the requested namespaces.
|
|
56
|
+
* @template T - Array of append-to-response namespace keys to include
|
|
57
|
+
*/
|
|
58
|
+
export type TVEpisodeDetailsWithAppends<T extends readonly TVEpisodeAppendToResponseNamespace[]> = TVEpisode & {
|
|
59
|
+
[K in T[number]]: TVEpisodeAppendableMap[K];
|
|
60
|
+
};
|
|
61
|
+
//# sourceMappingURL=tv_episodes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tv_episodes.d.ts","sourceRoot":"","sources":["../../../src/types/tv-episodes/tv_episodes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C;;;GAGG;AACH,MAAM,MAAM,SAAS,GAAG;IACvB,iFAAiF;IACjF,QAAQ,EAAE,MAAM,CAAC;IACjB,gEAAgE;IAChE,IAAI,EAAE,IAAI,EAAE,CAAC;IACb,oEAAoE;IACpE,cAAc,EAAE,MAAM,CAAC;IACvB,wFAAwF;IACxF,WAAW,EAAE,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,CAAC;IACrC,4BAA4B;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,sCAAsC;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,8CAA8C;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,uEAAuE;IACvE,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,wCAAwC;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,sDAAsD;IACtD,aAAa,EAAE,MAAM,CAAC;IACtB,uFAAuF;IACvF,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,sDAAsD;IACtD,YAAY,EAAE,MAAM,CAAC;IACrB,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,kCAAkC,GAAG,SAAS,GAAG,cAAc,GAAG,QAAQ,GAAG,cAAc,GAAG,QAAQ,CAAC;AAEnH;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACpC,OAAO,EAAE,gBAAgB,CAAC;IAC1B,YAAY,EAAE,oBAAoB,CAAC;IACnC,MAAM,EAAE,eAAe,CAAC;IACxB,YAAY,EAAE,qBAAqB,CAAC;IACpC,MAAM,EAAE,eAAe,CAAC;CACxB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,2BAA2B,CAAC,CAAC,SAAS,SAAS,kCAAkC,EAAE,IAAI,SAAS,GAAG;KAC7G,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,GAAG,sBAAsB,CAAC,CAAC,CAAC;CAC3C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"videos.d.ts","sourceRoot":"","sources":["../../../src/types/tv-episodes/videos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,MAAM,eAAe,GAAG,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TVBaseParam } from "../tv/params";
|
|
2
|
+
/**
|
|
3
|
+
* Almost every query within the TV Series Seasons domain
|
|
4
|
+
* will take this required param to identify the
|
|
5
|
+
* tv show season.
|
|
6
|
+
*/
|
|
7
|
+
export type TVSeasonBaseParams = TVBaseParam & {
|
|
8
|
+
/** The Season */
|
|
9
|
+
season_number: number;
|
|
10
|
+
};
|
|
11
|
+
/** Uniquely identifies a season across different tv shows. */
|
|
12
|
+
export type TVSeasonId = {
|
|
13
|
+
season_id: string;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=params.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../../src/types/tv-seasons/params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAE3C;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,WAAW,GAAG;IAC9C,iBAAiB;IACjB,aAAa,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,8DAA8D;AAC9D,MAAM,MAAM,UAAU,GAAG;IACxB,SAAS,EAAE,MAAM,CAAC;CAClB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=tv-season.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tv-season.d.ts","sourceRoot":"","sources":["../../../src/types/tv-seasons/tv-season.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=alternative_names.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"alternative_names.d.ts","sourceRoot":"","sources":["../../../src/types/networks/alternative_names.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=images.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../../../src/types/networks/images.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/networks/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./network";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"network.d.ts","sourceRoot":"","sources":["../../../src/types/networks/network.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,MAAM,WAAW,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,cAAc,EAAE,gBAAgB,CAAC;CACjC,CAAC"}
|
|
File without changes
|
|
File without changes
|