@lorenzopant/tmdb 1.11.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.
Files changed (57) hide show
  1. package/dist/endpoints/tv_episodes.d.ts +118 -0
  2. package/dist/endpoints/tv_episodes.d.ts.map +1 -0
  3. package/dist/endpoints/tv_episodes.js +136 -0
  4. package/dist/routes.d.ts +12 -0
  5. package/dist/routes.d.ts.map +1 -1
  6. package/dist/routes.js +12 -0
  7. package/dist/tmdb.d.ts +2 -0
  8. package/dist/tmdb.d.ts.map +1 -1
  9. package/dist/tmdb.js +3 -0
  10. package/dist/types/common/changes.d.ts +5 -5
  11. package/dist/types/common/changes.d.ts.map +1 -1
  12. package/dist/types/common/media.d.ts +13 -2
  13. package/dist/types/common/media.d.ts.map +1 -1
  14. package/dist/types/index.d.ts +1 -0
  15. package/dist/types/index.d.ts.map +1 -1
  16. package/dist/types/index.js +1 -0
  17. package/dist/types/movies/translations.d.ts +2 -10
  18. package/dist/types/movies/translations.d.ts.map +1 -1
  19. package/dist/types/movies/videos.d.ts +2 -7
  20. package/dist/types/movies/videos.d.ts.map +1 -1
  21. package/dist/types/other/collections.d.ts +2 -15
  22. package/dist/types/other/collections.d.ts.map +1 -1
  23. package/dist/types/tv/external_ids.d.ts +9 -9
  24. package/dist/types/tv/external_ids.d.ts.map +1 -1
  25. package/dist/types/tv/translations.d.ts +2 -15
  26. package/dist/types/tv/translations.d.ts.map +1 -1
  27. package/dist/types/tv-episodes/credits.d.ts +8 -0
  28. package/dist/types/tv-episodes/credits.d.ts.map +1 -0
  29. package/dist/types/tv-episodes/credits.js +1 -0
  30. package/dist/types/tv-episodes/external_ids.d.ts +3 -0
  31. package/dist/types/tv-episodes/external_ids.d.ts.map +1 -0
  32. package/dist/types/tv-episodes/external_ids.js +1 -0
  33. package/dist/types/tv-episodes/images.d.ts +3 -0
  34. package/dist/types/tv-episodes/images.d.ts.map +1 -0
  35. package/dist/types/tv-episodes/images.js +1 -0
  36. package/dist/types/tv-episodes/index.d.ts +4 -0
  37. package/dist/types/tv-episodes/index.d.ts.map +1 -0
  38. package/dist/types/tv-episodes/index.js +3 -0
  39. package/dist/types/tv-episodes/params.d.ts +30 -0
  40. package/dist/types/tv-episodes/params.d.ts.map +1 -0
  41. package/dist/types/tv-episodes/params.js +1 -0
  42. package/dist/types/tv-episodes/translations.d.ts +7 -0
  43. package/dist/types/tv-episodes/translations.d.ts.map +1 -0
  44. package/dist/types/tv-episodes/translations.js +1 -0
  45. package/dist/types/tv-episodes/tv_episodes.d.ts +61 -0
  46. package/dist/types/tv-episodes/tv_episodes.d.ts.map +1 -0
  47. package/dist/types/tv-episodes/tv_episodes.js +1 -0
  48. package/dist/types/tv-episodes/videos.d.ts +3 -0
  49. package/dist/types/tv-episodes/videos.d.ts.map +1 -0
  50. package/dist/types/tv-episodes/videos.js +1 -0
  51. package/dist/types/tv-seasons/params.d.ts +15 -0
  52. package/dist/types/tv-seasons/params.d.ts.map +1 -0
  53. package/dist/types/tv-seasons/params.js +1 -0
  54. package/dist/types/tv-seasons/tv-season.d.ts +1 -0
  55. package/dist/types/tv-seasons/tv-season.d.ts.map +1 -0
  56. package/dist/types/tv-seasons/tv-season.js +1 -0
  57. package/package.json +1 -1
@@ -0,0 +1,118 @@
1
+ import { Changes } from "../types";
2
+ import { TVEpisodeCredits } from "../types/tv-episodes";
3
+ import { TVEpisodeExternalIDs } from "../types/tv-episodes/external_ids";
4
+ import { TVEpisodeImages } from "../types/tv-episodes/images";
5
+ import { TVEpisodeBaseParams, TVEpisodeCreditsParams, TVEpisodeDetailsParams, TVEpisodeId, TVEpisodeImagesParams } from "../types/tv-episodes/params";
6
+ import { TVEpisodeTranslations } from "../types/tv-episodes/translations";
7
+ import { TVEpisode, TVEpisodeAppendToResponseNamespace, TVEpisodeDetailsWithAppends } from "../types/tv-episodes/tv_episodes";
8
+ import { TVEpisodeVideos } from "../types/tv-episodes/videos";
9
+ import { TMDBAPIBase } from "./base";
10
+ export declare class TVEpisodesAPI extends TMDBAPIBase {
11
+ private episodePath;
12
+ private episodeSubPath;
13
+ /**
14
+ * Details
15
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/season/{season_number}/episode/{episode_number}
16
+ *
17
+ * Query the details of a TV episode.
18
+ * @param series_id The ID of the TV series.
19
+ * @param season_number The number of the season within the TV show
20
+ * @param episode_number The number of the episode within the season
21
+ * @param append_to_response A comma-separated list of the fields to include in the response.
22
+ * @param language The language to use for the response.
23
+ * @returns A promise that resolves to the TV episode .
24
+ * @reference https://developer.themoviedb.org/reference/tv-episode-details
25
+ */
26
+ details<T extends readonly TVEpisodeAppendToResponseNamespace[] = []>(params: TVEpisodeDetailsParams & {
27
+ append_to_response?: T[number] | T;
28
+ }): Promise<T extends [] ? TVEpisode : TVEpisodeDetailsWithAppends<T>>;
29
+ /**
30
+ * Changes
31
+ * GET - https://api.themoviedb.org/3/tv/episode/{episode_id}/changes
32
+ *
33
+ * Get the changes for a TV episode. By default only the last 24 hours are returned.
34
+ * ACCORDING TO TMDB DOCS:
35
+ * You can query up to 14 days in a single query by using the start_date and end_date query parameters.
36
+ * BUT NO start_date or end_date query params are specified in the documentation
37
+ *
38
+ * NOTE: TV show changes are a little different than movie changes in that there are some edits
39
+ * on seasons and episodes that will create a top level change entry at the show level.
40
+ * These can be found under the season and episode keys.
41
+ * These keys will contain a series_id and episode_id.
42
+ * You can use the season changes and episode changes methods to look these up individually.
43
+ *
44
+ * @param episode_id The ID of the TV episode.
45
+ * @returns A promise that resolves to the TV episode changes history.
46
+ * @reference https://developer.themoviedb.org/reference/tv-episode-changes-by-id
47
+ */
48
+ changes(params: TVEpisodeId): Promise<Changes>;
49
+ /**
50
+ * Credits
51
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/season/{season_number}/episode/{episode_number}/credits
52
+ *
53
+ * Get the credits for a TV episode.
54
+ * @param series_id The ID of the TV series.
55
+ * @param season_number The number of the season within the TV show
56
+ * @param episode_number The number of the episode within the season
57
+ * @param language The language to use for the response.
58
+ * @reference https://developer.themoviedb.org/reference/tv-episode-credits
59
+ */
60
+ credits(params: TVEpisodeCreditsParams): Promise<TVEpisodeCredits>;
61
+ /**
62
+ * External IDs
63
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/season/{season_number}/episode/{episode_number}/external_ids
64
+ *
65
+ * Get a list of external IDs that have been added to a TV episode.
66
+ * @param series_id The ID of the TV series.
67
+ * @param season_number The number of the season within the TV show
68
+ * @param episode_number The number of the episode within the season
69
+ * @returns A promise that resolves to the TV episode external ids.
70
+ * @reference https://developer.themoviedb.org/reference/tv-episode-external-ids
71
+ */
72
+ external_ids(params: TVEpisodeBaseParams): Promise<TVEpisodeExternalIDs>;
73
+ /**
74
+ * Images
75
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/season/{season_number}/episode/{episode_number}/images
76
+ *
77
+ * Fetches still images related to a specific tv episode
78
+ * The images are returned in various sizes and formats.
79
+ *
80
+ * NOTE: If you have a language specified, it will act as a filter on the returned items. You can use the include_image_language param to query additional languages.
81
+ *
82
+ * @param series_id The ID of the TV series.
83
+ * @param season_number The number of the season within the TV show
84
+ * @param episode_number The number of the episode within the season
85
+ * @param language - (Optional) The language code to filter the images by language.
86
+ * @param include_image_language - (Optional) A comma-separated list of language codes to include images for.
87
+ * @returns A promise that resolves to a `TVEpisodeImages` object containing the tv episode's images.
88
+ * @reference https://developer.themoviedb.org/reference/tv-episode-images
89
+ */
90
+ images(params: TVEpisodeImagesParams): Promise<TVEpisodeImages>;
91
+ /**
92
+ * Translations
93
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/season/{season_number}/episode/{episode_number}/translations
94
+ *
95
+ * Get the translations that have been added to a TV episode.
96
+ * Take a read through our language documentation for more information about languages on TMDB.
97
+ * https://developer.themoviedb.org/docs/languages
98
+ * @param series_id The ID of the TV series.
99
+ * @param season_number The number of the season within the TV show
100
+ * @param episode_number The number of the episode within the season
101
+ * @returns A promise that resolves to the translations of the tv episode.
102
+ * @reference https://developer.themoviedb.org/reference/tv-episode-translations
103
+ */
104
+ translations(params: TVEpisodeBaseParams): Promise<TVEpisodeTranslations>;
105
+ /**
106
+ * Videos
107
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/season/{season_number}/episode/{episode_number}/videos
108
+ *
109
+ * Get the videos that belong to a TV episode.
110
+ * @param series_id The ID of the TV series.
111
+ * @param season_number The number of the season within the TV show
112
+ * @param episode_number The number of the episode within the season
113
+ * @returns A promise that resolves to the videos for the tv episode.
114
+ * @reference https://developer.themoviedb.org/reference/tv-episode-videos
115
+ */
116
+ videos(params: TVEpisodeBaseParams): Promise<TVEpisodeVideos>;
117
+ }
118
+ //# sourceMappingURL=tv_episodes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tv_episodes.d.ts","sourceRoot":"","sources":["../../src/endpoints/tv_episodes.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,UAAU,CAAC;AACnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EACN,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,WAAW,EACX,qBAAqB,EACrB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,SAAS,EAAE,kCAAkC,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAC9H,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAErC,qBAAa,aAAc,SAAQ,WAAW;IAC7C,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,cAAc;IAItB;;;;;;;;;;;;OAYG;IACG,OAAO,CAAC,CAAC,SAAS,SAAS,kCAAkC,EAAE,GAAG,EAAE,EACzE,MAAM,EAAE,sBAAsB,GAAG;QAAE,kBAAkB,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;KAAE,GACrE,OAAO,CAAC,CAAC,SAAS,EAAE,GAAG,SAAS,GAAG,2BAA2B,CAAC,CAAC,CAAC,CAAC;IAMrE;;;;;;;;;;;;;;;;;;OAkBG;IACG,OAAO,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,OAAO,CAAC;IAKpD;;;;;;;;;;OAUG;IACG,OAAO,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAMxE;;;;;;;;;;OAUG;IACG,YAAY,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAK9E;;;;;;;;;;;;;;;;OAgBG;IACG,MAAM,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,eAAe,CAAC;IAMrE;;;;;;;;;;;;OAYG;IACG,YAAY,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAK/E;;;;;;;;;;OAUG;IACG,MAAM,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,eAAe,CAAC;CAInE"}
@@ -0,0 +1,136 @@
1
+ import { ENDPOINTS } from "../routes";
2
+ import { TMDBAPIBase } from "./base";
3
+ export class TVEpisodesAPI extends TMDBAPIBase {
4
+ episodePath(params) {
5
+ return `${ENDPOINTS.TV_SERIES.DETAILS}/${params.series_id}${ENDPOINTS.TV_SEASONS.DETAILS}/${params.season_number}${ENDPOINTS.TV_EPISODES.DETAILS}/${params.episode_number}`;
6
+ }
7
+ episodeSubPath(params, route) {
8
+ return `${this.episodePath(params)}${route}`;
9
+ }
10
+ /**
11
+ * Details
12
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/season/{season_number}/episode/{episode_number}
13
+ *
14
+ * Query the details of a TV episode.
15
+ * @param series_id The ID of the TV series.
16
+ * @param season_number The number of the season within the TV show
17
+ * @param episode_number The number of the episode within the season
18
+ * @param append_to_response A comma-separated list of the fields to include in the response.
19
+ * @param language The language to use for the response.
20
+ * @returns A promise that resolves to the TV episode .
21
+ * @reference https://developer.themoviedb.org/reference/tv-episode-details
22
+ */
23
+ async details(params) {
24
+ const { language = this.defaultOptions.language, append_to_response, ...rest } = params;
25
+ const endpoint = this.episodePath(rest);
26
+ return this.client.request(endpoint, { language, append_to_response });
27
+ }
28
+ /**
29
+ * Changes
30
+ * GET - https://api.themoviedb.org/3/tv/episode/{episode_id}/changes
31
+ *
32
+ * Get the changes for a TV episode. By default only the last 24 hours are returned.
33
+ * ACCORDING TO TMDB DOCS:
34
+ * You can query up to 14 days in a single query by using the start_date and end_date query parameters.
35
+ * BUT NO start_date or end_date query params are specified in the documentation
36
+ *
37
+ * NOTE: TV show changes are a little different than movie changes in that there are some edits
38
+ * on seasons and episodes that will create a top level change entry at the show level.
39
+ * These can be found under the season and episode keys.
40
+ * These keys will contain a series_id and episode_id.
41
+ * You can use the season changes and episode changes methods to look these up individually.
42
+ *
43
+ * @param episode_id The ID of the TV episode.
44
+ * @returns A promise that resolves to the TV episode changes history.
45
+ * @reference https://developer.themoviedb.org/reference/tv-episode-changes-by-id
46
+ */
47
+ async changes(params) {
48
+ const endpoint = `${ENDPOINTS.TV_SERIES.DETAILS}/${ENDPOINTS.TV_EPISODES.DETAILS}/${params.episode_id}/${ENDPOINTS.TV_EPISODES.CHANGES}`;
49
+ return this.client.request(endpoint, { ...params });
50
+ }
51
+ /**
52
+ * Credits
53
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/season/{season_number}/episode/{episode_number}/credits
54
+ *
55
+ * Get the credits for a TV episode.
56
+ * @param series_id The ID of the TV series.
57
+ * @param season_number The number of the season within the TV show
58
+ * @param episode_number The number of the episode within the season
59
+ * @param language The language to use for the response.
60
+ * @reference https://developer.themoviedb.org/reference/tv-episode-credits
61
+ */
62
+ async credits(params) {
63
+ const { language = this.defaultOptions.language, ...rest } = params;
64
+ const endpoint = this.episodeSubPath(rest, ENDPOINTS.TV_EPISODES.CREDITS);
65
+ return this.client.request(endpoint, { language });
66
+ }
67
+ /**
68
+ * External IDs
69
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/season/{season_number}/episode/{episode_number}/external_ids
70
+ *
71
+ * Get a list of external IDs that have been added to a TV episode.
72
+ * @param series_id The ID of the TV series.
73
+ * @param season_number The number of the season within the TV show
74
+ * @param episode_number The number of the episode within the season
75
+ * @returns A promise that resolves to the TV episode external ids.
76
+ * @reference https://developer.themoviedb.org/reference/tv-episode-external-ids
77
+ */
78
+ async external_ids(params) {
79
+ const endpoint = this.episodeSubPath(params, ENDPOINTS.TV_EPISODES.EXTERNAL_IDS);
80
+ return this.client.request(endpoint);
81
+ }
82
+ /**
83
+ * Images
84
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/season/{season_number}/episode/{episode_number}/images
85
+ *
86
+ * Fetches still images related to a specific tv episode
87
+ * The images are returned in various sizes and formats.
88
+ *
89
+ * NOTE: If you have a language specified, it will act as a filter on the returned items. You can use the include_image_language param to query additional languages.
90
+ *
91
+ * @param series_id The ID of the TV series.
92
+ * @param season_number The number of the season within the TV show
93
+ * @param episode_number The number of the episode within the season
94
+ * @param language - (Optional) The language code to filter the images by language.
95
+ * @param include_image_language - (Optional) A comma-separated list of language codes to include images for.
96
+ * @returns A promise that resolves to a `TVEpisodeImages` object containing the tv episode's images.
97
+ * @reference https://developer.themoviedb.org/reference/tv-episode-images
98
+ */
99
+ async images(params) {
100
+ const { language = this.defaultOptions.language, include_image_language, ...rest } = params;
101
+ const endpoint = this.episodeSubPath(rest, ENDPOINTS.TV_EPISODES.IMAGES);
102
+ return this.client.request(endpoint, { language, include_image_language });
103
+ }
104
+ /**
105
+ * Translations
106
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/season/{season_number}/episode/{episode_number}/translations
107
+ *
108
+ * Get the translations that have been added to a TV episode.
109
+ * Take a read through our language documentation for more information about languages on TMDB.
110
+ * https://developer.themoviedb.org/docs/languages
111
+ * @param series_id The ID of the TV series.
112
+ * @param season_number The number of the season within the TV show
113
+ * @param episode_number The number of the episode within the season
114
+ * @returns A promise that resolves to the translations of the tv episode.
115
+ * @reference https://developer.themoviedb.org/reference/tv-episode-translations
116
+ */
117
+ async translations(params) {
118
+ const endpoint = this.episodeSubPath(params, ENDPOINTS.TV_EPISODES.TRANSLATIONS);
119
+ return this.client.request(endpoint);
120
+ }
121
+ /**
122
+ * Videos
123
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/season/{season_number}/episode/{episode_number}/videos
124
+ *
125
+ * Get the videos that belong to a TV episode.
126
+ * @param series_id The ID of the TV series.
127
+ * @param season_number The number of the season within the TV show
128
+ * @param episode_number The number of the episode within the season
129
+ * @returns A promise that resolves to the videos for the tv episode.
130
+ * @reference https://developer.themoviedb.org/reference/tv-episode-videos
131
+ */
132
+ async videos(params) {
133
+ const endpoint = this.episodeSubPath(params, ENDPOINTS.TV_EPISODES.VIDEOS);
134
+ return this.client.request(endpoint);
135
+ }
136
+ }
package/dist/routes.d.ts CHANGED
@@ -102,6 +102,18 @@ export declare const ENDPOINTS: {
102
102
  VIDEOS: string;
103
103
  WATCH_PROVIDERS: string;
104
104
  };
105
+ TV_SEASONS: {
106
+ DETAILS: string;
107
+ };
108
+ TV_EPISODES: {
109
+ DETAILS: string;
110
+ CHANGES: string;
111
+ CREDITS: string;
112
+ EXTERNAL_IDS: string;
113
+ IMAGES: string;
114
+ TRANSLATIONS: string;
115
+ VIDEOS: string;
116
+ };
105
117
  WATCH_PROVIDERS: {
106
118
  MOVIE: string;
107
119
  TV: string;
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6GrB,CAAC"}
1
+ {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyHrB,CAAC"}
package/dist/routes.js CHANGED
@@ -102,6 +102,18 @@ export const ENDPOINTS = {
102
102
  VIDEOS: "/videos",
103
103
  WATCH_PROVIDERS: "/watch/providers",
104
104
  },
105
+ TV_SEASONS: {
106
+ DETAILS: "/season",
107
+ },
108
+ TV_EPISODES: {
109
+ DETAILS: "/episode",
110
+ CHANGES: "/changes",
111
+ CREDITS: "/credits",
112
+ EXTERNAL_IDS: "/external_ids",
113
+ IMAGES: "/images",
114
+ TRANSLATIONS: "/translations",
115
+ VIDEOS: "/videos",
116
+ },
105
117
  WATCH_PROVIDERS: {
106
118
  MOVIE: "/watch/providers/movie",
107
119
  TV: "/watch/providers/tv",
package/dist/tmdb.d.ts CHANGED
@@ -17,6 +17,7 @@ import { WatchProvidersAPI } from "./endpoints/watch_providers";
17
17
  import { ImageAPI } from "./images/images";
18
18
  import { TMDBOptions } from "./types/config";
19
19
  import { NetworksAPI } from "./endpoints/networks";
20
+ import { TVEpisodesAPI } from "./endpoints/tv_episodes";
20
21
  export declare class TMDB {
21
22
  private client;
22
23
  private options;
@@ -38,6 +39,7 @@ export declare class TMDB {
38
39
  discover: DiscoverAPI;
39
40
  find: FindAPI;
40
41
  networks: NetworksAPI;
42
+ tv_episodes: TVEpisodesAPI;
41
43
  /**
42
44
  * Creates a new TMDB instance.
43
45
  * @param accessToken The TMDB API access token.
@@ -1 +1 @@
1
- {"version":3,"file":"tmdb.d.ts","sourceRoot":"","sources":["../src/tmdb.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C,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAEhE,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAExD,qBAAa,IAAI;IAChB,OAAO,CAAC,MAAM,CAAY;IAC1B,OAAO,CAAC,OAAO,CAAc;IACtB,MAAM,EAAE,SAAS,CAAC;IAClB,WAAW,EAAE,aAAa,CAAC;IAC3B,MAAM,EAAE,SAAS,CAAC;IAClB,MAAM,EAAE,QAAQ,CAAC;IACjB,aAAa,EAAE,gBAAgB,CAAC;IAChC,MAAM,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,WAAW,CAAC;IACtB,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,SAAS,EAAE,WAAW,CAAC;IACvB,eAAe,EAAE,iBAAiB,CAAC;IACnC,cAAc,EAAE,iBAAiB,CAAC;IAClC,OAAO,EAAE,UAAU,CAAC;IACpB,SAAS,EAAE,YAAY,CAAC;IACxB,OAAO,EAAE,UAAU,CAAC;IACpB,WAAW,EAAE,cAAc,CAAC;IAC5B,QAAQ,EAAE,WAAW,CAAC;IACtB,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,EAAE,WAAW,CAAC;IACtB,WAAW,EAAE,aAAa,CAAC;IAGlC;;;;OAIG;gBACS,WAAW,EAAE,MAAM,EAAE,OAAO,GAAE,WAAgB;CAwB1D"}
package/dist/tmdb.js CHANGED
@@ -19,6 +19,7 @@ import { WatchProvidersAPI } from "./endpoints/watch_providers";
19
19
  import { Errors } from "./errors/messages";
20
20
  import { ImageAPI } from "./images/images";
21
21
  import { NetworksAPI } from "./endpoints/networks";
22
+ import { TVEpisodesAPI } from "./endpoints/tv_episodes";
22
23
  export class TMDB {
23
24
  client;
24
25
  options; // ** Default options for all requests
@@ -40,6 +41,7 @@ export class TMDB {
40
41
  discover;
41
42
  find;
42
43
  networks;
44
+ tv_episodes;
43
45
  // etc...
44
46
  /**
45
47
  * Creates a new TMDB instance.
@@ -69,5 +71,6 @@ export class TMDB {
69
71
  this.discover = new DiscoverAPI(this.client, this.options);
70
72
  this.find = new FindAPI(this.client, this.options);
71
73
  this.networks = new NetworksAPI(this.client, this.options);
74
+ this.tv_episodes = new TVEpisodesAPI(this.client, this.options);
72
75
  }
73
76
  }
@@ -19,19 +19,19 @@ export type Change = {
19
19
  */
20
20
  export type ChangeItem = {
21
21
  /** Unique identifier for the changed item */
22
- id: number;
22
+ id: number | string;
23
23
  /** Type of change performed (e.g., "added", "updated", "deleted") */
24
24
  action: string;
25
25
  /** Timestamp of when the change occurred (ISO 8601 format) */
26
26
  time: string;
27
27
  /** ISO 639-1 language code associated with the change */
28
- iso_639_1: string;
28
+ iso_639_1?: string | null;
29
29
  /** ISO 3166-1 country code associated with the change */
30
- iso_3166_1: string;
30
+ iso_3166_1?: string | null;
31
31
  /** The changed data object (structure varies by change type) */
32
- value: object;
32
+ value: object | string;
33
33
  /** The original data object (structure varies by change type) */
34
- original_value?: object;
34
+ original_value?: object | string;
35
35
  };
36
36
  /**
37
37
  * Represents a single change result item from the changes endpoint.
@@ -1 +1 @@
1
- {"version":3,"file":"changes.d.ts","sourceRoot":"","sources":["../../../src/types/common/changes.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG;IACrB,uCAAuC;IACvC,OAAO,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG;IACpB,2EAA2E;IAC3E,GAAG,EAAE,MAAM,CAAC;IACZ,+CAA+C;IAC/C,KAAK,EAAE,UAAU,EAAE,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACxB,6CAA6C;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAC;IACf,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAC;IACb,yDAAyD;IACzD,SAAS,EAAE,MAAM,CAAC;IAClB,yDAAyD;IACzD,UAAU,EAAE,MAAM,CAAC;IACnB,gEAAgE;IAChE,KAAK,EAAE,MAAM,CAAC;IACd,iEAAiE;IACjE,cAAc,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,sEAAsE;IACtE,KAAK,EAAE,OAAO,CAAC;CACf,CAAC"}
1
+ {"version":3,"file":"changes.d.ts","sourceRoot":"","sources":["../../../src/types/common/changes.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG;IACrB,uCAAuC;IACvC,OAAO,EAAE,MAAM,EAAE,CAAC;CAClB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG;IACpB,2EAA2E;IAC3E,GAAG,EAAE,MAAM,CAAC;IACZ,+CAA+C;IAC/C,KAAK,EAAE,UAAU,EAAE,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACxB,6CAA6C;IAC7C,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,qEAAqE;IACrE,MAAM,EAAE,MAAM,CAAC;IACf,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAC;IACb,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,yDAAyD;IACzD,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,gEAAgE;IAChE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,iEAAiE;IACjE,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACjC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B,yCAAyC;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,sEAAsE;IACtE,KAAK,EAAE,OAAO,CAAC;CACf,CAAC"}
@@ -118,6 +118,12 @@ export type AlternativeTitle = {
118
118
  /** Type of title (e.g., "original title", "working title") */
119
119
  type: string;
120
120
  };
121
+ export type VideoResults = {
122
+ /** Media identifier */
123
+ id: number | string;
124
+ /** Array of video items */
125
+ results: VideoItem[];
126
+ };
121
127
  /**
122
128
  * Video metadata and details
123
129
  */
@@ -241,10 +247,15 @@ export type ReviewAuthorDetails = {
241
247
  /** Rating given by the author (0-10 scale, optional) */
242
248
  rating?: number;
243
249
  };
250
+ /** Collection of translations for a media item (object with `id` and `translations`). */
251
+ export type TranslationResults<T> = {
252
+ id: number | string;
253
+ translations: Translation<T>[];
254
+ };
244
255
  /**
245
256
  * Translation data for a specific language
246
257
  */
247
- export type Translation = {
258
+ export type Translation<T = unknown> = {
248
259
  /** ISO 3166-1 alpha-2 country code */
249
260
  iso_3166_1: string;
250
261
  /** ISO 639-1 language code */
@@ -254,7 +265,7 @@ export type Translation = {
254
265
  /** English name of the language */
255
266
  english_name: string;
256
267
  /** Translated media (tv/movie) information */
257
- data: object;
268
+ data: T;
258
269
  };
259
270
  /**
260
271
  * Watch provider availability by country
@@ -1 +1 @@
1
- {"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../../src/types/common/media.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG;IAEnB,EAAE,EAAE,MAAM,CAAC;IAEX,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC5B,8CAA8C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,CAAC,CAAC;CACjD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC3B,sCAAsC;IACtC,IAAI,EAAE,MAAM,CAAC;IACb,kDAAkD;IAClD,QAAQ,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC/B,uBAAuB;IACvB,IAAI,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC3B,yBAAyB;IACzB,GAAG,CAAC,EAAE,iBAAiB,EAAE,CAAC;CAC1B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC/B,kCAAkC;IAClC,SAAS,EAAE,MAAM,CAAC;IAClB,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,4DAA4D;IAC5D,aAAa,EAAE,MAAM,CAAC;IACtB,+DAA+D;IAC/D,gBAAgB,EAAE,MAAM,CAAC;CACzB,CAAC"}
@@ -4,6 +4,7 @@ export * from "./discover";
4
4
  export * from "./movies";
5
5
  export * from "./search";
6
6
  export * from "./tv";
7
+ export * from "./tv-episodes/tv_episodes";
7
8
  export * from "./utility";
8
9
  export * from "./other";
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,MAAM,CAAC;AACrB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,MAAM,CAAC;AACrB,cAAc,2BAA2B,CAAC;AAC1C,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC"}
@@ -4,5 +4,6 @@ export * from "./discover";
4
4
  export * from "./movies";
5
5
  export * from "./search";
6
6
  export * from "./tv";
7
+ export * from "./tv-episodes/tv_episodes";
7
8
  export * from "./utility";
8
9
  export * from "./other";
@@ -1,16 +1,8 @@
1
- import { Translation } from "../common";
1
+ import { TranslationResults } from "../common";
2
2
  /**
3
3
  * Movie translations containing all available language versions
4
4
  */
5
- export type MovieTranslations = {
6
- /** Movie identifier */
7
- id: number;
8
- /** Array of translations in different languages */
9
- translations: MovieTranslationItem[];
10
- };
11
- export type MovieTranslationItem = Translation & {
12
- data: MovieTranslationData;
13
- };
5
+ export type MovieTranslations = TranslationResults<MovieTranslationData>;
14
6
  /**
15
7
  * Translation data for a specific language
16
8
  */
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/types/movies/translations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC/B,uBAAuB;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,mDAAmD;IACnD,YAAY,EAAE,oBAAoB,EAAE,CAAC;CACrC,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG,WAAW,GAAG;IAChD,IAAI,EAAE,oBAAoB,CAAC;CAC3B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAClC,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+BAA+B;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yBAAyB;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
1
+ {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/types/movies/translations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAE/C;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;AAEzE;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IAClC,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mCAAmC;IACnC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,+BAA+B;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yBAAyB;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;CACf,CAAC"}
@@ -1,11 +1,6 @@
1
- import { VideoItem } from "../common";
1
+ import { VideoResults } from "../common";
2
2
  /**
3
3
  * Collection of videos (trailers, teasers, clips) for a movie
4
4
  */
5
- export type MovieVideos = {
6
- /** Movie identifier */
7
- id: number;
8
- /** Array of video items */
9
- results: VideoItem[];
10
- };
5
+ export type MovieVideos = VideoResults;
11
6
  //# sourceMappingURL=videos.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"videos.d.ts","sourceRoot":"","sources":["../../../src/types/movies/videos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACzB,uBAAuB;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,2BAA2B;IAC3B,OAAO,EAAE,SAAS,EAAE,CAAC;CACrB,CAAC"}
1
+ {"version":3,"file":"videos.d.ts","sourceRoot":"","sources":["../../../src/types/movies/videos.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,YAAY,CAAC"}
@@ -1,4 +1,4 @@
1
- import { MediaType, Translation, WithLanguage } from "../common";
1
+ import { MediaType, TranslationResults, WithLanguage } from "../common";
2
2
  import { ImageItem, ImagesResult } from "../common/images";
3
3
  import { Language, LanguageISO6391 } from "../config";
4
4
  import { MovieResultItem } from "../search";
@@ -46,20 +46,7 @@ export type CollectionImages = ImagesResult<ImageItem, "backdrops" | "posters">;
46
46
  /**
47
47
  * Represents the available translations for a TMDB collection.
48
48
  */
49
- export type CollectionTranslations = {
50
- /** Unique TMDB identifier for the collection */
51
- id: number;
52
- /** List of translations available for the collection */
53
- translations: CollectionTranslationItem[];
54
- };
55
- /**
56
- * Represents a single translation entry for a collection,
57
- * containing the localized data payload.
58
- */
59
- export type CollectionTranslationItem = Translation & {
60
- /** Localized data for this translation */
61
- data: CollectionTranslationData;
62
- };
49
+ export type CollectionTranslations = TranslationResults<CollectionTranslationData>;
63
50
  /**
64
51
  * Contains the localized fields provided by a collection translation.
65
52
  * All fields are optional as not every translation may supply all values.
@@ -1 +1 @@
1
- {"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../../src/types/other/collections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C;;;GAGG;AACH,MAAM,MAAM,UAAU,GAAG;IACxB,gDAAgD;IAChD,EAAE,EAAE,MAAM,CAAC;IACX,qCAAqC;IACrC,IAAI,EAAE,MAAM,CAAC;IACb,qEAAqE;IACrE,iBAAiB,EAAE,MAAM,CAAC;IAC1B,sDAAsD;IACtD,aAAa,EAAE,MAAM,CAAC;IACtB,sDAAsD;IACtD,QAAQ,EAAE,MAAM,CAAC;IACjB,8GAA8G;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AAC;AAEhF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG,kBAAkB,CAAC,yBAAyB,CAAC,CAAC;AAEnF;;;GAGG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACvC,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uDAAuD;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,gDAAgD;AAChD,MAAM,MAAM,mBAAmB,GAAG;IACjC,gDAAgD;IAChD,aAAa,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,mBAAmB,GAAG,YAAY,CAAC;AACzE,MAAM,MAAM,sBAAsB,GAAG,mBAAmB,GAAG;IAC1D,QAAQ,CAAC,EAAE,QAAQ,GAAG,eAAe,CAAC;IACtC,sBAAsB,CAAC,EAAE,QAAQ,GAAG,eAAe,CAAC;CACpD,CAAC"}
@@ -5,22 +5,22 @@ export type TVExternalIDs = {
5
5
  /** TV series identifier in TMDB */
6
6
  id: number;
7
7
  /** IMDb identifier (e.g., "tt0944947"), null if not available */
8
- imdb_id?: string;
8
+ imdb_id?: string | null;
9
9
  /** Freebase MID identifier (deprecated), null if not available */
10
- freebase_mid?: string;
10
+ freebase_mid?: string | null;
11
11
  /** Freebase ID (deprecated), null if not available */
12
- freebase_id?: string;
12
+ freebase_id?: string | null;
13
13
  /** TheTVDB identifier, null if not available */
14
- tvdb_id?: number;
14
+ tvdb_id?: number | null;
15
15
  /** TVRage identifier (service discontinued), null if not available */
16
- tvrage_id?: number;
16
+ tvrage_id?: number | null;
17
17
  /** Wikidata identifier (e.g., "Q23572"), null if not available */
18
- wikidata_id?: string;
18
+ wikidata_id?: string | null;
19
19
  /** Facebook page identifier, null if not available */
20
- facebook_id?: string;
20
+ facebook_id?: string | null;
21
21
  /** Instagram handle, null if not available */
22
- instagram_id?: string;
22
+ instagram_id?: string | null;
23
23
  /** Twitter/X handle, null if not available */
24
- twitter_id?: string;
24
+ twitter_id?: string | null;
25
25
  };
26
26
  //# sourceMappingURL=external_ids.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"external_ids.d.ts","sourceRoot":"","sources":["../../../src/types/tv/external_ids.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC3B,mCAAmC;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,iEAAiE;IACjE,OAAO,CAAC,EAAE,MAAM,CAAC;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"}
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,21 +1,8 @@
1
- import { Translation } from "../common";
1
+ import { TranslationResults } from "../common";
2
2
  /**
3
3
  * Represents the collection of available translations for a TV series.
4
4
  */
5
- export type TVTranslations = {
6
- /** The unique identifier of the TV series. */
7
- id: number;
8
- /** The list of available translations for this TV series. */
9
- translations: TVTranslationItem[];
10
- };
11
- /**
12
- * Represents a single translation entry for a TV series,
13
- * extending the base `Translation` type with TV-specific translated data.
14
- */
15
- export type TVTranslationItem = Translation & {
16
- /** The translated content fields for this TV series. */
17
- data: TVTranslationData;
18
- };
5
+ export type TVTranslations = TranslationResults<TVTranslationData>;
19
6
  /**
20
7
  * The translated text fields for a TV series in a specific language.
21
8
  * All fields are optional as not every translation may provide all values.
@@ -1 +1 @@
1
- {"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../src/types/tv/translations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC5B,8CAA8C;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,6DAA6D;IAC7D,YAAY,EAAE,iBAAiB,EAAE,CAAC;CAClC,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,WAAW,GAAG;IAC7C,wDAAwD;IACxD,IAAI,EAAE,iBAAiB,CAAC;CACxB,CAAC;AAEF;;;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
+ {"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"}
@@ -0,0 +1,8 @@
1
+ import { Cast, Crew } from "../common";
2
+ export type TVEpisodeCredits = {
3
+ id: number | string;
4
+ cast: Omit<Cast, "cast_id">[];
5
+ crew: Crew[];
6
+ guest_stars: Omit<Cast, "cast_id">[];
7
+ };
8
+ //# sourceMappingURL=credits.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"credits.d.ts","sourceRoot":"","sources":["../../../src/types/tv-episodes/credits.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEvC,MAAM,MAAM,gBAAgB,GAAG;IAC9B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,CAAC;IAC9B,IAAI,EAAE,IAAI,EAAE,CAAC;IACb,WAAW,EAAE,IAAI,CAAC,IAAI,EAAE,SAAS,CAAC,EAAE,CAAC;CACrC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { TVExternalIDs } from "../tv/external_ids";
2
+ export type TVEpisodeExternalIDs = Omit<TVExternalIDs, "facebook_id" | "instagram_id" | "twitter_id">;
3
+ //# sourceMappingURL=external_ids.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"external_ids.d.ts","sourceRoot":"","sources":["../../../src/types/tv-episodes/external_ids.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEnD,MAAM,MAAM,oBAAoB,GAAG,IAAI,CAAC,aAAa,EAAE,aAAa,GAAG,cAAc,GAAG,YAAY,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { ImageItem, ImagesResult } from "../common";
2
+ export type TVEpisodeImages = ImagesResult<ImageItem, "stills">;
3
+ //# sourceMappingURL=images.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../../../src/types/tv-episodes/images.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEpD,MAAM,MAAM,eAAe,GAAG,YAAY,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,4 @@
1
+ export * from "./tv_episodes";
2
+ export * from "./params";
3
+ export * from "./credits";
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/tv-episodes/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./tv_episodes";
2
+ export * from "./params";
3
+ export * from "./credits";
@@ -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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C;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,3 @@
1
+ import { MovieVideos } from "../movies";
2
+ export type TVEpisodeVideos = MovieVideos;
3
+ //# sourceMappingURL=videos.d.ts.map
@@ -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":""}
@@ -0,0 +1 @@
1
+ "use strict";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lorenzopant/tmdb",
3
- "version": "1.11.0",
3
+ "version": "1.12.0",
4
4
  "description": "A completely type-safe The Movie Database (TMDB) API wrapper for typescript applications.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",