@lorenzopant/tmdb 1.1.7 → 1.2.0-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/endpoints/tv_series.d.ts +110 -11
  2. package/dist/endpoints/tv_series.d.ts.map +1 -1
  3. package/dist/endpoints/tv_series.js +129 -10
  4. package/dist/types/common/changes.d.ts +2 -0
  5. package/dist/types/common/changes.d.ts.map +1 -1
  6. package/dist/types/common/media.d.ts +25 -0
  7. package/dist/types/common/media.d.ts.map +1 -1
  8. package/dist/types/common/params.d.ts +9 -0
  9. package/dist/types/common/params.d.ts.map +1 -1
  10. package/dist/types/movies/alternative_titles.d.ts +2 -12
  11. package/dist/types/movies/alternative_titles.d.ts.map +1 -1
  12. package/dist/types/movies/params.d.ts +2 -7
  13. package/dist/types/movies/params.d.ts.map +1 -1
  14. package/dist/types/tv/alternative_titles.d.ts +11 -0
  15. package/dist/types/tv/alternative_titles.d.ts.map +1 -0
  16. package/dist/types/tv/alternative_titles.js +1 -0
  17. package/dist/types/tv/changes.d.ts +3 -0
  18. package/dist/types/tv/changes.d.ts.map +1 -0
  19. package/dist/types/tv/changes.js +1 -0
  20. package/dist/types/tv/content_ratings.d.ts +5 -0
  21. package/dist/types/tv/content_ratings.d.ts.map +1 -0
  22. package/dist/types/tv/content_ratings.js +1 -0
  23. package/dist/types/tv/episode_groups.d.ts +30 -0
  24. package/dist/types/tv/episode_groups.d.ts.map +1 -0
  25. package/dist/types/tv/episode_groups.js +1 -0
  26. package/dist/types/tv/external_ids.d.ts +17 -7
  27. package/dist/types/tv/external_ids.d.ts.map +1 -1
  28. package/dist/types/tv/images.d.ts +11 -5
  29. package/dist/types/tv/images.d.ts.map +1 -1
  30. package/dist/types/tv/index.d.ts +2 -0
  31. package/dist/types/tv/index.d.ts.map +1 -1
  32. package/dist/types/tv/index.js +2 -0
  33. package/dist/types/tv/params.d.ts +31 -3
  34. package/dist/types/tv/params.d.ts.map +1 -1
  35. package/package.json +1 -1
@@ -1,19 +1,28 @@
1
- import { ApiClient } from "../client";
2
- import { TVDetails, TVDetailsWithAppends, TVAppendToResponseNamespace } from "../types/tv/tv_series";
3
- import { TVAggregateCreditsParams, TVDetailsParams } from "../types/tv";
1
+ import { TVAggregateCreditsParams, TVAlternativeTitles, TVBaseParam, TVChangeParams, TVCredits, TVCreditsParams, TVDetailsParams, TVExternalIDs, TVImages, TVImagesParams, TVSeriesChanges } from "../types/tv";
4
2
  import { TVAggregateCredits } from "../types/tv/aggregate_credits";
5
- import { TMDBOptions } from "../types/config";
3
+ import { TVContentRatings } from "../types/tv/content_ratings";
4
+ import { TVEpisodeGroups } from "../types/tv/episode_groups";
5
+ import { TVAppendToResponseNamespace, TVDetails, TVDetailsWithAppends } from "../types/tv/tv_series";
6
+ import { TMDBAPIBase } from "./base";
6
7
  export declare const TV_SERIES_ENDPOINTS: {
7
8
  TV: string;
8
9
  TV_AGGREGATE_CREDITS: string;
10
+ TV_ALTERNATIVE_TITLES: string;
11
+ TV_CHANGES: string;
12
+ TV_CONTENT_RATINGS: string;
13
+ TV_CREDITS: string;
14
+ TV_EPISODE_GROUPS: string;
15
+ TV_EXTERNAL_IDS: string;
16
+ TV_IMAGES: string;
17
+ TV_KEYWORDS: string;
18
+ TV_LATEST: string;
19
+ TV_LISTS: string;
20
+ TV_RECCOMENDATIONS: string;
9
21
  };
10
- export declare class TVSeriesAPI {
11
- private client;
12
- private defaultOptions;
13
- constructor(client: ApiClient, defaultOptions?: TMDBOptions);
22
+ export declare class TVSeriesAPI extends TMDBAPIBase {
14
23
  /**
15
24
  * Details
16
- * GET - https://api.themoviedb.org/3/tv/{tv_id}
25
+ * GET - https://api.themoviedb.org/3/tv/{series_id}
17
26
  *
18
27
  * Get the top level details of a TV series by ID.
19
28
  * @param series_id The ID of the TV series.
@@ -27,7 +36,7 @@ export declare class TVSeriesAPI {
27
36
  }): Promise<T extends [] ? TVDetails : TVDetailsWithAppends<T>>;
28
37
  /**
29
38
  * Aggregate Credits
30
- * GET - https://api.themoviedb.org/3/tv/{tv_id}/aggregate_credits
39
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/aggregate_credits
31
40
  *
32
41
  * Get the aggregate credits (cast and crew) that have been added to a TV show.
33
42
  *
@@ -35,9 +44,99 @@ export declare class TVSeriesAPI {
35
44
  * Instead, it is a view of all the entire cast & crew for all episodes belonging to a TV show.
36
45
  * @param series_id The ID of the TV series.
37
46
  * @param language The language to use for the response.
38
- * @returns A promise that resolves to the TV series details.
47
+ * @returns A promise that resolves to the TV series aggregate credits.
39
48
  * @reference https://developer.themoviedb.org/reference/tv-series-aggregate-credits
40
49
  */
41
50
  aggregate_credits(params: TVAggregateCreditsParams): Promise<TVAggregateCredits>;
51
+ /**
52
+ * Alternative Titles
53
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/alternative_tiles
54
+ *
55
+ * Get the alternative titles that have been added to a TV show.
56
+ * @param series_id The ID of the TV series.
57
+ * @returns A promise that resolves to the TV series alternative tiles.
58
+ * @reference https://developer.themoviedb.org/reference/tv-series-alternative-titles
59
+ */
60
+ alternative_titles(params: TVBaseParam): Promise<TVAlternativeTitles>;
61
+ /**
62
+ * Changes
63
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/changes
64
+ *
65
+ * Get the changes for a TV show. By default only the last 24 hours are returned.
66
+ * You can query up to 14 days in a single query by using the start_date and end_date query parameters.
67
+ *
68
+ * NOTE: TV show changes are a little different than movie changes in that there are some edits
69
+ * on seasons and episodes that will create a top level change entry at the show level.
70
+ * These can be found under the season and episode keys.
71
+ * These keys will contain a series_id and episode_id.
72
+ * You can use the season changes and episode changes methods to look these up individually.
73
+ *
74
+ * @param series_id The ID of the TV series.
75
+ * @returns A promise that resolves to the TV series changes history.
76
+ * @reference https://developer.themoviedb.org/reference/tv-series-changes
77
+ */
78
+ changes(params: TVChangeParams): Promise<TVSeriesChanges>;
79
+ /**
80
+ * Content Ratings
81
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/content_ratings
82
+ *
83
+ * Get the content ratings that have been added to a TV show.
84
+ * @param series_id The ID of the TV series.
85
+ * @returns A promise that resolves to the TV series content ratings.
86
+ * @reference https://developer.themoviedb.org/reference/tv-series-content-ratings
87
+ */
88
+ content_ratings(params: TVBaseParam): Promise<TVContentRatings>;
89
+ /**
90
+ * Credits
91
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/credits
92
+ *
93
+ * Get the latest season credits of a TV show.
94
+ *
95
+ * This is the original TV credits method which returns the latest season credit data.
96
+ * If you would like to request the aggregate view (which is what you see on our website)
97
+ * you should use the /aggregate_credits method.
98
+ * @param series_id The ID of the TV series.
99
+ * @param language The Language for the credits
100
+ * @returns A promise that resolves to the TV series credits.
101
+ * @reference https://developer.themoviedb.org/reference/tv-series-credits
102
+ */
103
+ credits(params: TVCreditsParams): Promise<TVCredits>;
104
+ /**
105
+ * Episode Groups
106
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/episode_groups
107
+ *
108
+ * Get the episode groups that have been added to a TV show.
109
+ * With a group ID you can call the get TV episode group details method.
110
+ * @param series_id The ID of the TV series.
111
+ * @returns A promise that resolves to the TV series episode groups.
112
+ * @reference https://developer.themoviedb.org/reference/tv-series-episode-groups
113
+ */
114
+ episode_groups(params: TVBaseParam): Promise<TVEpisodeGroups>;
115
+ /**
116
+ * External IDs
117
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/external_ids
118
+ *
119
+ * Get a list of external IDs that have been added to a TV show.
120
+ * @param series_id The ID of the TV series.
121
+ * @returns A promise that resolves to the TV series external ids.
122
+ * @reference https://developer.themoviedb.org/reference/tv-series-external-ids
123
+ */
124
+ external_ids(params: TVBaseParam): Promise<TVExternalIDs>;
125
+ /**
126
+ * Images
127
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/images
128
+ *
129
+ * Fetches images related to a specific tv show, such as posters and backdrops.
130
+ * The images are returned in various sizes and formats.
131
+ *
132
+ * 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.
133
+ *
134
+ * @param series_id - The unique identifier of the tv show.
135
+ * @param language - (Optional) The language code to filter the images by language.
136
+ * @param include_image_language - (Optional) A comma-separated list of language codes to include images for.
137
+ * @returns A promise that resolves to a `TVImages` object containing the tv show's images.
138
+ * @reference https://developer.themoviedb.org/reference/tv-series-images
139
+ */
140
+ images(params: TVImagesParams): Promise<TVImages>;
42
141
  }
43
142
  //# sourceMappingURL=tv_series.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tv_series.d.ts","sourceRoot":"","sources":["../../src/endpoints/tv_series.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,oBAAoB,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AACrG,OAAO,EAAE,wBAAwB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,eAAO,MAAM,mBAAmB;;;CAG/B,CAAC;AAEF,qBAAa,WAAW;IACvB,OAAO,CAAC,MAAM,CAAY;IAC1B,OAAO,CAAC,cAAc,CAAc;gBAExB,MAAM,EAAE,SAAS,EAAE,cAAc,GAAE,WAAgB;IAK/D;;;;;;;;;;OAUG;IACG,OAAO,CAAC,CAAC,SAAS,SAAS,2BAA2B,EAAE,GAAG,EAAE,EAClE,MAAM,EAAE,eAAe,GAAG;QAAE,kBAAkB,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAA;KAAE,GAC9D,OAAO,CAAC,CAAC,SAAS,EAAE,GAAG,SAAS,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAAC;IAM9D;;;;;;;;;;;;OAYG;IACG,iBAAiB,CAAC,MAAM,EAAE,wBAAwB,GAAG,OAAO,CAAC,kBAA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e,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAKrE;;;;;;;;;;;;;OAaG;IACG,OAAO,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,SAAS,CAAC;IAM1D;;;;;;;;;OASG;IACG,cAAc,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,eAAe,CAAC;IAKnE;;;;;;;;OAQG;IACG,YAAY,CAAC,MAAM,EAAE,WAAW,GAAG,OAAO,CAAC,aAAa,CAAC;IAK/D;;;;;;;;;;;;;;OAcG;IACG,MAAM,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;CAKvD"}
@@ -1,17 +1,23 @@
1
+ import { TMDBAPIBase } from "./base";
1
2
  export const TV_SERIES_ENDPOINTS = {
2
3
  TV: "/tv",
3
4
  TV_AGGREGATE_CREDITS: "/aggregate_credits",
5
+ TV_ALTERNATIVE_TITLES: "/alternative_titles",
6
+ TV_CHANGES: "/changes",
7
+ TV_CONTENT_RATINGS: "/content_ratings",
8
+ TV_CREDITS: "/credits",
9
+ TV_EPISODE_GROUPS: "/episode_groups",
10
+ TV_EXTERNAL_IDS: "/external_ids",
11
+ TV_IMAGES: "/images",
12
+ TV_KEYWORDS: "/keywords",
13
+ TV_LATEST: "/latest",
14
+ TV_LISTS: "/lists",
15
+ TV_RECCOMENDATIONS: "/reccomendations",
4
16
  };
5
- export class TVSeriesAPI {
6
- client;
7
- defaultOptions;
8
- constructor(client, defaultOptions = {}) {
9
- this.client = client;
10
- this.defaultOptions = defaultOptions;
11
- }
17
+ export class TVSeriesAPI extends TMDBAPIBase {
12
18
  /**
13
19
  * Details
14
- * GET - https://api.themoviedb.org/3/tv/{tv_id}
20
+ * GET - https://api.themoviedb.org/3/tv/{series_id}
15
21
  *
16
22
  * Get the top level details of a TV series by ID.
17
23
  * @param series_id The ID of the TV series.
@@ -27,7 +33,7 @@ export class TVSeriesAPI {
27
33
  }
28
34
  /**
29
35
  * Aggregate Credits
30
- * GET - https://api.themoviedb.org/3/tv/{tv_id}/aggregate_credits
36
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/aggregate_credits
31
37
  *
32
38
  * Get the aggregate credits (cast and crew) that have been added to a TV show.
33
39
  *
@@ -35,7 +41,7 @@ export class TVSeriesAPI {
35
41
  * Instead, it is a view of all the entire cast & crew for all episodes belonging to a TV show.
36
42
  * @param series_id The ID of the TV series.
37
43
  * @param language The language to use for the response.
38
- * @returns A promise that resolves to the TV series details.
44
+ * @returns A promise that resolves to the TV series aggregate credits.
39
45
  * @reference https://developer.themoviedb.org/reference/tv-series-aggregate-credits
40
46
  */
41
47
  async aggregate_credits(params) {
@@ -43,4 +49,117 @@ export class TVSeriesAPI {
43
49
  const endpoint = `${TV_SERIES_ENDPOINTS.TV}/${params.series_id}${TV_SERIES_ENDPOINTS.TV_AGGREGATE_CREDITS}`;
44
50
  return this.client.request(endpoint, { language, ...rest });
45
51
  }
52
+ /**
53
+ * Alternative Titles
54
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/alternative_tiles
55
+ *
56
+ * Get the alternative titles that have been added to a TV show.
57
+ * @param series_id The ID of the TV series.
58
+ * @returns A promise that resolves to the TV series alternative tiles.
59
+ * @reference https://developer.themoviedb.org/reference/tv-series-alternative-titles
60
+ */
61
+ async alternative_titles(params) {
62
+ const endpoint = `${TV_SERIES_ENDPOINTS.TV}/${params.series_id}${TV_SERIES_ENDPOINTS.TV_ALTERNATIVE_TITLES}`;
63
+ return this.client.request(endpoint);
64
+ }
65
+ /**
66
+ * Changes
67
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/changes
68
+ *
69
+ * Get the changes for a TV show. By default only the last 24 hours are returned.
70
+ * You can query up to 14 days in a single query by using the start_date and end_date query parameters.
71
+ *
72
+ * NOTE: TV show changes are a little different than movie changes in that there are some edits
73
+ * on seasons and episodes that will create a top level change entry at the show level.
74
+ * These can be found under the season and episode keys.
75
+ * These keys will contain a series_id and episode_id.
76
+ * You can use the season changes and episode changes methods to look these up individually.
77
+ *
78
+ * @param series_id The ID of the TV series.
79
+ * @returns A promise that resolves to the TV series changes history.
80
+ * @reference https://developer.themoviedb.org/reference/tv-series-changes
81
+ */
82
+ async changes(params) {
83
+ const endpoint = `${TV_SERIES_ENDPOINTS.TV}/${params.series_id}${TV_SERIES_ENDPOINTS.TV_CHANGES}`;
84
+ return this.client.request(endpoint, { ...params });
85
+ }
86
+ /**
87
+ * Content Ratings
88
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/content_ratings
89
+ *
90
+ * Get the content ratings that have been added to a TV show.
91
+ * @param series_id The ID of the TV series.
92
+ * @returns A promise that resolves to the TV series content ratings.
93
+ * @reference https://developer.themoviedb.org/reference/tv-series-content-ratings
94
+ */
95
+ async content_ratings(params) {
96
+ const endpoint = `${TV_SERIES_ENDPOINTS.TV}/${params.series_id}${TV_SERIES_ENDPOINTS.TV_CONTENT_RATINGS}`;
97
+ return this.client.request(endpoint);
98
+ }
99
+ /**
100
+ * Credits
101
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/credits
102
+ *
103
+ * Get the latest season credits of a TV show.
104
+ *
105
+ * This is the original TV credits method which returns the latest season credit data.
106
+ * If you would like to request the aggregate view (which is what you see on our website)
107
+ * you should use the /aggregate_credits method.
108
+ * @param series_id The ID of the TV series.
109
+ * @param language The Language for the credits
110
+ * @returns A promise that resolves to the TV series credits.
111
+ * @reference https://developer.themoviedb.org/reference/tv-series-credits
112
+ */
113
+ async credits(params) {
114
+ const endpoint = `${TV_SERIES_ENDPOINTS.TV}/${params.series_id}${TV_SERIES_ENDPOINTS.TV_CREDITS}`;
115
+ const { language = this.defaultOptions.language, ...rest } = params;
116
+ return this.client.request(endpoint, { language, ...rest });
117
+ }
118
+ /**
119
+ * Episode Groups
120
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/episode_groups
121
+ *
122
+ * Get the episode groups that have been added to a TV show.
123
+ * With a group ID you can call the get TV episode group details method.
124
+ * @param series_id The ID of the TV series.
125
+ * @returns A promise that resolves to the TV series episode groups.
126
+ * @reference https://developer.themoviedb.org/reference/tv-series-episode-groups
127
+ */
128
+ async episode_groups(params) {
129
+ const endpoint = `${TV_SERIES_ENDPOINTS.TV}/${params.series_id}${TV_SERIES_ENDPOINTS.TV_EPISODE_GROUPS}`;
130
+ return this.client.request(endpoint);
131
+ }
132
+ /**
133
+ * External IDs
134
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/external_ids
135
+ *
136
+ * Get a list of external IDs that have been added to a TV show.
137
+ * @param series_id The ID of the TV series.
138
+ * @returns A promise that resolves to the TV series external ids.
139
+ * @reference https://developer.themoviedb.org/reference/tv-series-external-ids
140
+ */
141
+ async external_ids(params) {
142
+ const endpoint = `${TV_SERIES_ENDPOINTS.TV}/${params.series_id}${TV_SERIES_ENDPOINTS.TV_EXTERNAL_IDS}`;
143
+ return this.client.request(endpoint);
144
+ }
145
+ /**
146
+ * Images
147
+ * GET - https://api.themoviedb.org/3/tv/{series_id}/images
148
+ *
149
+ * Fetches images related to a specific tv show, such as posters and backdrops.
150
+ * The images are returned in various sizes and formats.
151
+ *
152
+ * 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.
153
+ *
154
+ * @param series_id - The unique identifier of the tv show.
155
+ * @param language - (Optional) The language code to filter the images by language.
156
+ * @param include_image_language - (Optional) A comma-separated list of language codes to include images for.
157
+ * @returns A promise that resolves to a `TVImages` object containing the tv show's images.
158
+ * @reference https://developer.themoviedb.org/reference/tv-series-images
159
+ */
160
+ async images(params) {
161
+ const { language = this.defaultOptions.language, ...rest } = params;
162
+ const endpoint = `${TV_SERIES_ENDPOINTS.TV}/${params.series_id}${TV_SERIES_ENDPOINTS.TV_IMAGES}`;
163
+ return this.client.request(endpoint, { language, ...rest });
164
+ }
46
165
  }
@@ -30,5 +30,7 @@ export type ChangeItem = {
30
30
  iso_3166_1: string;
31
31
  /** The changed data object (structure varies by change type) */
32
32
  value: object;
33
+ /** The original data object (structure varies by change type) */
34
+ original_value?: object;
33
35
  };
34
36
  //# sourceMappingURL=changes.d.ts.map
@@ -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;CACd,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,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"}
@@ -75,10 +75,24 @@ export type Crew = Credit & {
75
75
  department: string;
76
76
  job: string;
77
77
  };
78
+ /**
79
+ * Represents a keyword entry
80
+ */
78
81
  export type Keyword = {
79
82
  id: number;
80
83
  name: string;
81
84
  };
85
+ /**
86
+ * Alternative title entry
87
+ */
88
+ export type AlternativeTitle = {
89
+ /** Alternative title text */
90
+ title: string;
91
+ /** ISO 3166-1 country code where this title is used */
92
+ iso_3166_1: string;
93
+ /** Type of title (e.g., "original title", "working title") */
94
+ type: string;
95
+ };
82
96
  /**
83
97
  * Video metadata and details
84
98
  */
@@ -173,5 +187,16 @@ export type KnownForTV = BaseKnownForItem & {
173
187
  */
174
188
  export type KnownForItem = KnownForMovie | KnownForTV;
175
189
  export type MediaType = "movie" | "tv";
190
+ /**
191
+ * Content rating information for a TV show or movie
192
+ */
193
+ export type ContentRating = {
194
+ /** Additional content descriptors or advisory warnings (e.g., "violence", "language", "nudity") */
195
+ descriptors: string[];
196
+ /** ISO 3166-1 country code where this rating applies */
197
+ iso_3166_1: string;
198
+ /** Age or content rating (e.g., "TV-MA", "PG-13", "TV-14", "R") */
199
+ rating: string;
200
+ };
176
201
  export {};
177
202
  //# sourceMappingURL=media.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"media.d.ts","sourceRoot":"","sources":["../../../src/types/common/media.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG;IAEnB,EAAE,EAAE,MAAM,CAAC;IAGX,IAAI,EAAE,MAAM,CAAC;CACb,CAAC;AAEF;;GAEG;AACH,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M,MAAM,SAAS,GAAG,OAAO,GAAG,IAAI,CAAC;AAEvC;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC3B,mGAAmG;IACnG,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,wDAAwD;IACxD,UAAU,EAAE,MAAM,CAAC;IACnB,mEAAmE;IACnE,MAAM,EAAE,MAAM,CAAC;CACf,CAAC"}
@@ -9,6 +9,15 @@ export type TMDBQueryParams = {
9
9
  page?: number;
10
10
  region?: CountryISO3166_1;
11
11
  };
12
+ /**
13
+ * Specify a date range with start and end date.
14
+ */
15
+ export type DateRange = {
16
+ /** Start date for changes in ISO 8601 format (YYYY-MM-DD) */
17
+ start_date?: string;
18
+ /** End date for changes in ISO 8601 format (YYYY-MM-DD) */
19
+ end_date?: string;
20
+ };
12
21
  /** Generic utility */
13
22
  export type WithParams<T extends keyof TMDBQueryParams> = Pick<TMDBQueryParams, T>;
14
23
  export type WithLanguage = WithParams<"language">;
@@ -1 +1 @@
1
- {"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../../src/types/common/params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,sBAAsB;AACtB,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,eAAe,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC;AAEnF,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC;AAClD,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;AAC1C,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;AAC9C,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,UAAU,GAAG,MAAM,CAAC,CAAC"}
1
+ {"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../../src/types/common/params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAE/C;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACvB,6DAA6D;IAC7D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,sBAAsB;AACtB,MAAM,MAAM,UAAU,CAAC,CAAC,SAAS,MAAM,eAAe,IAAI,IAAI,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC;AAEnF,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC;AAClD,MAAM,MAAM,QAAQ,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC;AAC1C,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;AAC9C,MAAM,MAAM,gBAAgB,GAAG,UAAU,CAAC,UAAU,GAAG,MAAM,CAAC,CAAC"}
@@ -1,3 +1,4 @@
1
+ import { AlternativeTitle } from "../common";
1
2
  /**
2
3
  * Alternative titles for a movie in different countries/languages
3
4
  */
@@ -5,17 +6,6 @@ export type MovieAlternativeTitles = {
5
6
  /** Movie identifier */
6
7
  id: number;
7
8
  /** Array of alternative titles */
8
- titles: MovieAlternativeTitle[];
9
- };
10
- /**
11
- * Individual alternative title entry
12
- */
13
- export type MovieAlternativeTitle = {
14
- /** Alternative title text */
15
- title: string;
16
- /** ISO 3166-1 country code where this title is used */
17
- iso_3166_1: string;
18
- /** Type of title (e.g., "original title", "working title") */
19
- type: string;
9
+ titles: AlternativeTitle[];
20
10
  };
21
11
  //# sourceMappingURL=alternative_titles.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"alternative_titles.d.ts","sourceRoot":"","sources":["../../../src/types/movies/alternative_titles.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACpC,uBAAuB;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC;IAClC,MAAM,EAAE,qBAAqB,EAAE,CAAC;CAChC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IACnC,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,uDAAuD;IACvD,UAAU,EAAE,MAAM,CAAC;IACnB,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAC;CACb,CAAC"}
1
+ {"version":3,"file":"alternative_titles.d.ts","sourceRoot":"","sources":["../../../src/types/movies/alternative_titles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACpC,uBAAuB;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC;IAClC,MAAM,EAAE,gBAAgB,EAAE,CAAC;CAC3B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { TMDBQueryParams, WithLanguagePage, WithParams } from "../common";
1
+ import { DateRange, TMDBQueryParams, WithLanguagePage, WithParams } from "../common";
2
2
  import { CountryISO3166_1 } from "../config/countries";
3
3
  import { Language, LanguageISO6391 } from "../config/languages";
4
4
  import { Prettify } from "../utility";
@@ -53,12 +53,7 @@ export type MovieWatchProvidersParams = MovieBaseParam;
53
53
  /**
54
54
  * Parameters for fetching movie change history.
55
55
  */
56
- export type MovieChangesParams = Prettify<MovieBaseParam & WithParams<"page"> & {
57
- /** Start date for changes in ISO 8601 format (YYYY-MM-DD) */
58
- start_date?: string;
59
- /** End date for changes in ISO 8601 format (YYYY-MM-DD) */
60
- end_date?: string;
61
- }>;
56
+ export type MovieChangesParams = Prettify<MovieBaseParam & WithParams<"page"> & DateRange>;
62
57
  /**
63
58
  * Parameters for fetching movie images (backdrops, logos, posters).
64
59
  *
@@ -1 +1 @@
1
- {"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../../src/types/movies/params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,8BAA8B,EAAE,MAAM,SAAS,CAAC;AAEzD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC;AAC9C;;;GAGG;AACH,KAAK,cAAc,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAE3C;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CACxC,cAAc,GAAG;IAAE,kBAAkB,CAAC,EAAE,8BAA8B,EAAE,CAAA;CAAE,GAAG,UAAU,CAAC,UAAU,CAAC,CACnG,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,QAAQ,CAAC,cAAc,GAAG;IAAE,OAAO,CAAC,EAAE,gBAAgB,CAAA;CAAE,CAAC,CAAC;AAErG;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;AAEnF;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG,cA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AQ,CAAC,EAAE,QAAQ,GAAG,eAAe,CAAC;IACtC,oFAAoF;IACpF,sBAAsB,CAAC,EAAE,QAAQ,GAAG,eAAe,CAAC;CACpD,CACD,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,0BAA0B,GAAG,QAAQ,CAAC,cAAc,GAAG,gBAAgB,CAAC,CAAC;AAErF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,0BAA0B,CAAC;AAE5D;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;AAElF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,cAAc,GAAG,gBAAgB,CAAC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { AlternativeTitle } from "../common";
2
+ /**
3
+ * Alternative titles for a tv show in different countries/languages
4
+ */
5
+ export type TVAlternativeTitles = {
6
+ /** Movie identifier */
7
+ id: number;
8
+ /** Array of alternative titles */
9
+ results: AlternativeTitle[];
10
+ };
11
+ //# sourceMappingURL=alternative_titles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"alternative_titles.d.ts","sourceRoot":"","sources":["../../../src/types/tv/alternative_titles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAE7C;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IACjC,uBAAuB;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,kCAAkC;IAClC,OAAO,EAAE,gBAAgB,EAAE,CAAC;CAC5B,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,3 @@
1
+ import { Changes } from "../common";
2
+ export type TVSeriesChanges = Changes;
3
+ //# sourceMappingURL=changes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"changes.d.ts","sourceRoot":"","sources":["../../../src/types/tv/changes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ import { ContentRating } from "../common";
2
+ export type TVContentRatings = {
3
+ results: ContentRating[];
4
+ };
5
+ //# sourceMappingURL=content_ratings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content_ratings.d.ts","sourceRoot":"","sources":["../../../src/types/tv/content_ratings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE1C,MAAM,MAAM,gBAAgB,GAAG;IAC9B,OAAO,EAAE,aAAa,EAAE,CAAC;CACzB,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,30 @@
1
+ import { NetworkItem } from "../networks";
2
+ /**
3
+ * Collection of episode groups for a TV series
4
+ */
5
+ export type TVEpisodeGroups = {
6
+ /** TV series identifier */
7
+ id: number;
8
+ /** Array of episode group items */
9
+ results: TVEpisodeGroupItem[];
10
+ };
11
+ /**
12
+ * Alternative grouping of episodes (e.g., chronological order, director's cut)
13
+ */
14
+ export type TVEpisodeGroupItem = {
15
+ /** Description explaining the purpose of this episode grouping */
16
+ description: string;
17
+ /** Total number of episodes in this group */
18
+ episode_count: number;
19
+ /** Number of sub-groups within this episode group */
20
+ group_count: number;
21
+ /** Unique episode group identifier */
22
+ id: string;
23
+ /** Name of the episode group */
24
+ name: string;
25
+ /** Network that created or distributed this episode grouping */
26
+ network: NetworkItem;
27
+ /** Type of grouping (1=Original air date, 2=Absolute, 3=DVD, 4=Digital, 5=Story arc, 6=Production, 7=TV) */
28
+ type: number;
29
+ };
30
+ //# sourceMappingURL=episode_groups.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"episode_groups.d.ts","sourceRoot":"","sources":["../../../src/types/tv/episode_groups.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE1C;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC7B,2BAA2B;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,mCAAmC;IACnC,OAAO,EAAE,kBAAkB,EAAE,CAAC;CAC9B,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAChC,kEAAkE;IAClE,WAAW,EAAE,MAAM,CAAC;IACpB,6CAA6C;IAC7C,aAAa,EAAE,MAAM,CAAC;IACtB,qDAAqD;IACrD,WAAW,EAAE,MAAM,CAAC;IACpB,sCAAsC;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,gEAAgE;IAChE,OAAO,EAAE,WAAW,CAAC;IACrB,4GAA4G;IAC5G,IAAI,EAAE,MAAM,CAAC;CACb,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -1,16 +1,26 @@
1
1
  /**
2
- * External identifiers for a TV show.
2
+ * External platform identifiers for a TV series
3
3
  */
4
4
  export type TVExternalIDs = {
5
- /** TMDB unique identifier for the TV show. */
5
+ /** TV series identifier in TMDB */
6
6
  id: number;
7
- /** IMDb identifier string, or undefined if unavailable. */
7
+ /** IMDb identifier (e.g., "tt0944947"), null if not available */
8
8
  imdb_id?: string;
9
- /** Facebook identifier string, or undefined if unavailable. */
9
+ /** Freebase MID identifier (deprecated), null if not available */
10
+ freebase_mid?: string;
11
+ /** Freebase ID (deprecated), null if not available */
12
+ freebase_id?: string;
13
+ /** TheTVDB identifier, null if not available */
14
+ tvdb_id?: number;
15
+ /** TVRage identifier (service discontinued), null if not available */
16
+ tvrage_id?: number;
17
+ /** Wikidata identifier (e.g., "Q23572"), null if not available */
18
+ wikidata_id?: string;
19
+ /** Facebook page identifier, null if not available */
10
20
  facebook_id?: string;
11
- /** Twitter identifier string, or undefined if unavailable. */
12
- twitter_id?: string;
13
- /** Instagram identifier string, or undefined if unavailable. */
21
+ /** Instagram handle, null if not available */
14
22
  instagram_id?: string;
23
+ /** Twitter/X handle, null if not available */
24
+ twitter_id?: string;
15
25
  };
16
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,8CAA8C;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,2DAA2D;IAC3D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+DAA+D;IAC/D,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8DAA8D;IAC9D,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gEAAgE;IAChE,YAAY,CAAC,EAAE,MAAM,CAAC;CACtB,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,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"}
@@ -7,12 +7,18 @@ export type TVImages = {
7
7
  /** TMDB unique identifier for the TV show. */
8
8
  id: number;
9
9
  /** List of backdrop images for the TV show. */
10
- backdrops: ImageItem[];
10
+ backdrops: TVImageItem[];
11
11
  /** List of logo images for the TV show. */
12
- logos: ImageItem[];
12
+ logos: TVImageItem[];
13
13
  /** List of poster images for the TV show. */
14
- posters: ImageItem[];
15
- /** List of still images for the TV show. */
16
- stills?: ImageItem[];
14
+ posters: TVImageItem[];
15
+ };
16
+ /**
17
+ * Image items for TVShows have an undocumented "iso_3166_1" property
18
+ * I decided to put it anyway as an optional property,
19
+ * but only for tv shows images.
20
+ */
21
+ export type TVImageItem = ImageItem & {
22
+ iso_3166_1?: string;
17
23
  };
18
24
  //# sourceMappingURL=images.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../../../src/types/tv/images.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG;IACtB,8CAA8C;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,+CAA+C;IAC/C,SAAS,EAAE,SAAS,EAAE,CAAC;IACvB,2CAA2C;IAC3C,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,6CAA6C;IAC7C,OAAO,EAAE,SAAS,EAAE,CAAC;IACrB,4CAA4C;IAC5C,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;CACrB,CAAC"}
1
+ {"version":3,"file":"images.d.ts","sourceRoot":"","sources":["../../../src/types/tv/images.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEtC;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG;IACtB,8CAA8C;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,+CAA+C;IAC/C,SAAS,EAAE,WAAW,EAAE,CAAC;IACzB,2CAA2C;IAC3C,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,6CAA6C;IAC7C,OAAO,EAAE,WAAW,EAAE,CAAC;CACvB,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG;IAAE,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from "./aggregate_credits";
2
+ export * from "./alternative_titles";
2
3
  export * from "./credits";
3
4
  export * from "./episodes";
4
5
  export * from "./external_ids";
@@ -10,4 +11,5 @@ export * from "./seasons";
10
11
  export * from "./similar";
11
12
  export * from "./tv_series";
12
13
  export * from "./videos";
14
+ export * from "./changes";
13
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/tv/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/tv/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC"}
@@ -1,4 +1,5 @@
1
1
  export * from "./aggregate_credits";
2
+ export * from "./alternative_titles";
2
3
  export * from "./credits";
3
4
  export * from "./episodes";
4
5
  export * from "./external_ids";
@@ -10,3 +11,4 @@ export * from "./seasons";
10
11
  export * from "./similar";
11
12
  export * from "./tv_series";
12
13
  export * from "./videos";
14
+ export * from "./changes";
@@ -1,13 +1,14 @@
1
1
  import { Timezone } from "../config/timezones";
2
2
  import { TVAppendToResponseNamespace } from "../tv/tv_series";
3
3
  import { Prettify } from "../utility";
4
- import { WithLanguagePage, WithParams } from "../common/params";
4
+ import { DateRange, WithLanguagePage, WithParams } from "../common/params";
5
+ import { Language, LanguageISO6391 } from "../config";
5
6
  /**
6
7
  * Almost every query within the TV Series domain
7
8
  * will take this required param to identify the
8
9
  * tv show.
9
10
  */
10
- type TVBaseParam = {
11
+ export type TVBaseParam = {
11
12
  series_id: number;
12
13
  };
13
14
  /**
@@ -26,5 +27,32 @@ export type TVDetailsParams = Prettify<TVBaseParam & {
26
27
  * Parameters for fetching aggregate credits for a TV show (cast and crew across all seasons).
27
28
  */
28
29
  export type TVAggregateCreditsParams = Prettify<TVBaseParam & WithParams<"language">>;
29
- export {};
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
+ }>;
30
58
  //# sourceMappingURL=params.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../../src/types/tv/params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEhE;;;;GAIG;AACH,KAAK,WAAW,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAEzC;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,gBAAgB,GAAG;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAEtF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,WAAW,GAAG;IAAE,kBAAkB,CAAC,EAAE,2BAA2B,EAAE,CAAA;CAAE,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;AAEtI;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"params.d.ts","sourceRoot":"","sources":["../../../src/types/tv/params.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,2BAA2B,EAAE,MAAM,iBAAiB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEtD;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC,gBAAgB,GAAG;IAAE,QAAQ,CAAC,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAEtF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,WAAW,GAAG;IAAE,kBAAkB,CAAC,EAAE,2BAA2B,EAAE,CAAA;CAAE,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;AAEtI;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;AAEtF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,CAAC;AAEpF;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC;AAE7E;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,cAAc,GAAG,QAAQ,CACpC,WAAW,GAAG;IACb,qFAAqF;IACrF,QAAQ,CAAC,EAAE,QAAQ,GAAG,eAAe,CAAC;IACtC,oFAAoF;IACpF,sBAAsB,CAAC,EAAE,QAAQ,GAAG,eAAe,CAAC;CACpD,CACD,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lorenzopant/tmdb",
3
- "version": "1.1.7",
3
+ "version": "1.2.0-beta.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",