@lorenzopant/tmdb 1.2.0-beta.0 → 1.2.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/configuration.d.ts +3 -3
- package/dist/endpoints/configuration.d.ts.map +1 -1
- package/dist/endpoints/configuration.js +1 -1
- package/dist/endpoints/movie_lists.d.ts +2 -6
- package/dist/endpoints/movie_lists.d.ts.map +1 -1
- package/dist/endpoints/movie_lists.js +2 -7
- package/dist/endpoints/movies.d.ts +3 -2
- package/dist/endpoints/movies.d.ts.map +1 -1
- package/dist/endpoints/search.d.ts +7 -7
- package/dist/endpoints/search.d.ts.map +1 -1
- package/dist/endpoints/tv_series.d.ts +133 -4
- package/dist/endpoints/tv_series.d.ts.map +1 -1
- package/dist/endpoints/tv_series.js +160 -1
- package/dist/tmdb.d.ts +1 -1
- package/dist/tmdb.d.ts.map +1 -1
- package/dist/tmdb.js +2 -2
- package/dist/types/common/media.d.ts +82 -0
- package/dist/types/common/media.d.ts.map +1 -1
- package/dist/types/config/configuration.d.ts +9 -0
- package/dist/types/config/configuration.d.ts.map +1 -1
- package/dist/types/config/countries.d.ts +2 -9
- package/dist/types/config/countries.d.ts.map +1 -1
- package/dist/types/config/languages.d.ts +0 -1
- package/dist/types/config/languages.d.ts.map +1 -1
- package/dist/types/index.d.ts +0 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +0 -1
- package/dist/types/movies/index.d.ts +1 -2
- package/dist/types/movies/index.d.ts.map +1 -1
- package/dist/types/movies/index.js +1 -2
- package/dist/types/movies/movie.d.ts +1 -1
- package/dist/types/movies/{reccomendations.d.ts → recommendations.d.ts} +1 -1
- package/dist/types/movies/recommendations.d.ts.map +1 -0
- package/dist/types/movies/reviews.d.ts +2 -34
- package/dist/types/movies/reviews.d.ts.map +1 -1
- package/dist/types/movies/translations.d.ts +16 -23
- package/dist/types/movies/translations.d.ts.map +1 -1
- package/dist/types/search/collection.d.ts +1 -1
- package/dist/types/search/company.d.ts +1 -1
- package/dist/types/search/index.d.ts +1 -1
- package/dist/types/search/index.d.ts.map +1 -1
- package/dist/types/search/index.js +1 -1
- package/dist/types/search/keyword.d.ts +2 -6
- package/dist/types/search/keyword.d.ts.map +1 -1
- package/dist/types/search/{movies.d.ts → movie.d.ts} +1 -1
- package/dist/types/search/movie.d.ts.map +1 -0
- package/dist/types/{person → search}/person.d.ts.map +1 -1
- package/dist/types/tv/index.d.ts +8 -2
- package/dist/types/tv/index.d.ts.map +1 -1
- package/dist/types/tv/index.js +8 -2
- package/dist/types/tv/lists.d.ts +32 -0
- package/dist/types/tv/lists.d.ts.map +1 -0
- package/dist/types/tv/params.d.ts +17 -1
- package/dist/types/tv/params.d.ts.map +1 -1
- package/dist/types/tv/{reccomendations.d.ts → recommendations.d.ts} +1 -1
- package/dist/types/tv/recommendations.d.ts.map +1 -0
- package/dist/types/tv/reviews.d.ts +6 -0
- package/dist/types/tv/reviews.d.ts.map +1 -0
- package/dist/types/tv/reviews.js +1 -0
- package/dist/types/tv/screened_theatrically.d.ts +21 -0
- package/dist/types/tv/screened_theatrically.d.ts.map +1 -0
- package/dist/types/tv/screened_theatrically.js +1 -0
- package/dist/types/tv/translations.d.ts +33 -0
- package/dist/types/tv/translations.d.ts.map +1 -0
- package/dist/types/tv/translations.js +1 -0
- package/dist/types/tv/tv_series.d.ts +5 -4
- package/dist/types/tv/tv_series.d.ts.map +1 -1
- package/package.json +5 -9
- package/.husky/pre-commit +0 -15
- package/.prettierrc +0 -5
- package/CODE_OF_CONDUCT.md +0 -128
- package/CONTRIBUTING.md +0 -71
- package/dist/scripts/check-exports.d.ts +0 -2
- package/dist/scripts/check-exports.d.ts.map +0 -1
- package/dist/scripts/check-exports.js +0 -87
- package/dist/scripts/find-missing.d.ts +0 -2
- package/dist/scripts/find-missing.d.ts.map +0 -1
- package/dist/scripts/find-missing.js +0 -95
- package/dist/scripts/generate-explicit-exports.d.ts +0 -2
- package/dist/scripts/generate-explicit-exports.d.ts.map +0 -1
- package/dist/scripts/generate-explicit-exports.js +0 -47
- package/dist/scripts/generate-index-files.d.ts +0 -2
- package/dist/scripts/generate-index-files.d.ts.map +0 -1
- package/dist/scripts/generate-index-files.js +0 -27
- package/dist/types/movies/reccomendations.d.ts.map +0 -1
- package/dist/types/movies/watch_providers.d.ts +0 -37
- package/dist/types/movies/watch_providers.d.ts.map +0 -1
- package/dist/types/person/index.d.ts +0 -2
- package/dist/types/person/index.d.ts.map +0 -1
- package/dist/types/person/index.js +0 -1
- package/dist/types/search/movies.d.ts.map +0 -1
- package/dist/types/tv/reccomendations.d.ts.map +0 -1
- /package/dist/types/movies/{reccomendations.js → recommendations.js} +0 -0
- /package/dist/types/{movies/watch_providers.js → search/movie.js} +0 -0
- /package/dist/types/{person → search}/person.d.ts +0 -0
- /package/dist/types/{person → search}/person.js +0 -0
- /package/dist/types/{search/movies.js → tv/lists.js} +0 -0
- /package/dist/types/tv/{reccomendations.js → recommendations.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ConfigurationCountry } from "../types";
|
|
2
2
|
import { ConfigurationCountriesParams, ConfigurationJob, ConfigurationLanguage, ConfigurationResponse, ConfigurationTimezone } from "../types/config/configuration";
|
|
3
3
|
import { TMDBAPIBase } from "./base";
|
|
4
4
|
export declare class ConfigurationAPI extends TMDBAPIBase {
|
|
@@ -12,7 +12,7 @@ export declare class ConfigurationAPI extends TMDBAPIBase {
|
|
|
12
12
|
* For example, you can get a list of valid image sizes and the valid image address.
|
|
13
13
|
* @reference https://developer.themoviedb.org/reference/configuration-details
|
|
14
14
|
*/
|
|
15
|
-
|
|
15
|
+
details(): Promise<ConfigurationResponse>;
|
|
16
16
|
/**
|
|
17
17
|
* Countries
|
|
18
18
|
* GET - https://api.themoviedb.org/3/configuration/countries
|
|
@@ -21,7 +21,7 @@ export declare class ConfigurationAPI extends TMDBAPIBase {
|
|
|
21
21
|
* @param language Language (Defaults to en-US)
|
|
22
22
|
* @reference https://developer.themoviedb.org/reference/configuration-countries
|
|
23
23
|
*/
|
|
24
|
-
countries(params?: ConfigurationCountriesParams): Promise<
|
|
24
|
+
countries(params?: ConfigurationCountriesParams): Promise<ConfigurationCountry[]>;
|
|
25
25
|
/**
|
|
26
26
|
* Jobs
|
|
27
27
|
* GET - https://api.themoviedb.org/3/configuration/jobs
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../src/endpoints/configuration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../src/endpoints/configuration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAChD,OAAO,EACN,4BAA4B,EAC5B,gBAAgB,EAChB,qBAAqB,EACrB,qBAAqB,EACrB,qBAAqB,EACrB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAErC,qBAAa,gBAAiB,SAAQ,WAAW;IAChD;;;;;;;;;OASG;IACG,OAAO,IAAI,OAAO,CAAC,qBAAqB,CAAC;IAI/C;;;;;;;OAOG;IACG,SAAS,CAAC,MAAM,CAAC,EAAE,4BAA4B,GAAG,OAAO,CAAC,oBAAoB,EAAE,CAAC;IAIvF;;;;;;OAMG;IACG,IAAI,IAAI,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAIzC;;;;;;OAMG;IACG,SAAS,IAAI,OAAO,CAAC,qBAAqB,EAAE,CAAC;IAInD;;;;;;;;;;;;;;;;;;;;;OAqBG;IACG,oBAAoB,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;IAI/C;;;;;;OAMG;IACG,SAAS,IAAI,OAAO,CAAC,qBAAqB,EAAE,CAAC;CAGnD"}
|
|
@@ -11,7 +11,7 @@ export class ConfigurationAPI extends TMDBAPIBase {
|
|
|
11
11
|
* For example, you can get a list of valid image sizes and the valid image address.
|
|
12
12
|
* @reference https://developer.themoviedb.org/reference/configuration-details
|
|
13
13
|
*/
|
|
14
|
-
async
|
|
14
|
+
async details() {
|
|
15
15
|
return this.client.request(ENDPOINTS.CONFIGURATION.DETAILS);
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import { ApiClient } from "../client";
|
|
2
1
|
import { MovieResultItem, PaginatedResponse } from "../types";
|
|
3
|
-
import { TMDBOptions } from "../types/config";
|
|
4
2
|
import { MovieListParams } from "../types/movies";
|
|
3
|
+
import { TMDBAPIBase } from "./base";
|
|
5
4
|
export declare enum MovieListEndpoints {
|
|
6
5
|
NOW_PLAYING = "/now_playing",
|
|
7
6
|
POPULAR = "/popular",
|
|
8
7
|
TOP_RATED = "/top_rated",
|
|
9
8
|
UPCOMING = "/upcoming"
|
|
10
9
|
}
|
|
11
|
-
export declare class MovieListsAPI {
|
|
12
|
-
private client;
|
|
13
|
-
private defaultOptions;
|
|
14
|
-
constructor(client: ApiClient, defaultOptions?: TMDBOptions);
|
|
10
|
+
export declare class MovieListsAPI extends TMDBAPIBase {
|
|
15
11
|
private withDefaults;
|
|
16
12
|
/**
|
|
17
13
|
* Fetch Movie List Wrapper
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"movie_lists.d.ts","sourceRoot":"","sources":["../../src/endpoints/movie_lists.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"movie_lists.d.ts","sourceRoot":"","sources":["../../src/endpoints/movie_lists.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC9D,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAIrC,oBAAY,kBAAkB;IAC7B,WAAW,iBAAiB;IAC5B,OAAO,aAAa;IACpB,SAAS,eAAe;IACxB,QAAQ,cAAc;CACtB;AAED,qBAAa,aAAc,SAAQ,WAAW;IAC7C,OAAO,CAAC,YAAY;IAKpB;;;;;OAKG;IACH,OAAO,CAAC,gBAAgB;IAIxB;;;;;;;;OAQG;IACG,WAAW,CAAC,MAAM,GAAE,eAAoB,GAAG,OAAO,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;IAI5F;;;;;;;;OAQG;IACG,OAAO,CAAC,MAAM,GAAE,eAAoB,GAAG,OAAO,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;IAIxF;;;;;;;;OAQG;IACG,SAAS,CAAC,MAAM,GAAE,eAAoB,GAAG,OAAO,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;IAI1F;;;;;;;;OAQG;IACG,QAAQ,CAAC,MAAM,GAAE,eAAoB,GAAG,OAAO,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;CAGzF"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { TMDBAPIBase } from "./base";
|
|
1
2
|
import { MOVIE_ENDPOINTS } from "./movies";
|
|
2
3
|
export var MovieListEndpoints;
|
|
3
4
|
(function (MovieListEndpoints) {
|
|
@@ -6,13 +7,7 @@ export var MovieListEndpoints;
|
|
|
6
7
|
MovieListEndpoints["TOP_RATED"] = "/top_rated";
|
|
7
8
|
MovieListEndpoints["UPCOMING"] = "/upcoming";
|
|
8
9
|
})(MovieListEndpoints || (MovieListEndpoints = {}));
|
|
9
|
-
export class MovieListsAPI {
|
|
10
|
-
client;
|
|
11
|
-
defaultOptions;
|
|
12
|
-
constructor(client, defaultOptions = {}) {
|
|
13
|
-
this.client = client;
|
|
14
|
-
this.defaultOptions = defaultOptions;
|
|
15
|
-
}
|
|
10
|
+
export class MovieListsAPI extends TMDBAPIBase {
|
|
16
11
|
withDefaults(params) {
|
|
17
12
|
const { language = this.defaultOptions.language, region = this.defaultOptions.region, ...rest } = params;
|
|
18
13
|
return { language, region, ...rest };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ApiClient } from "../client";
|
|
2
|
+
import { MediaWatchProviders } from "../types";
|
|
2
3
|
import { TMDBOptions } from "../types/config";
|
|
3
|
-
import { MovieAlternativeTitles, MovieAppendToResponseNamespace, MovieCredits, MovieDetails, MovieDetailsWithAppends, MovieExternalIDs, MovieImages, MovieKeywords, MovieRecommendations, MovieReleaseDates, MovieReviews, MovieSimilar, MovieTranslations, MovieVideos
|
|
4
|
+
import { MovieAlternativeTitles, MovieAppendToResponseNamespace, MovieCredits, MovieDetails, MovieDetailsWithAppends, MovieExternalIDs, MovieImages, MovieKeywords, MovieRecommendations, MovieReleaseDates, MovieReviews, MovieSimilar, MovieTranslations, MovieVideos } from "../types/movies";
|
|
4
5
|
import { MovieChanges } from "../types/movies/changes";
|
|
5
6
|
import { MovieAlternativeTitlesParams, MovieChangesParams, MovieCreditsParams, MovieDetailsParams, MovieExternalIDsParams, MovieImagesParams, MovieKeywordsParams, MovieRecommendationsParams, MovieReleaseDatesParams, MovieReviewsParams, MovieSimilarParams, MovieTranslationsParams, MovieVideosParams, MovieWatchProvidersParams } from "../types/movies/params";
|
|
6
7
|
export declare const MOVIE_ENDPOINTS: {
|
|
@@ -218,6 +219,6 @@ export declare class MoviesAPI {
|
|
|
218
219
|
* @returns A promise that resolves to a list of videos for the movie.
|
|
219
220
|
* @reference https://developer.themoviedb.org/reference/movie-videos
|
|
220
221
|
*/
|
|
221
|
-
watch_providers(params: MovieWatchProvidersParams): Promise<
|
|
222
|
+
watch_providers(params: MovieWatchProvidersParams): Promise<MediaWatchProviders>;
|
|
222
223
|
}
|
|
223
224
|
//# sourceMappingURL=movies.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"movies.d.ts","sourceRoot":"","sources":["../../src/endpoints/movies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,M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,YAAY,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAK/E;;;;;;;;OAQG;IACG,MAAM,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,WAAW,CAAC;IAM7D;;;;;;;;;;;;;;;OAeG;IACG,eAAe,CAAC,MAAM,EAAE,yBAAyB,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAItF"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { MovieResultItem, PaginatedResponse } from "../types";
|
|
2
2
|
import { SearchCollectionsParams, SearchCompanyParams, SearchKeywordsParams, SearchMoviesParams, SearchPersonParams } from "../types/search/params";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { SearchKeywordItem } from "../types/search/keyword";
|
|
3
|
+
import { CollectionResultItem } from "../types/search/collection";
|
|
4
|
+
import { CompanyResultItem } from "../types/search/company";
|
|
5
|
+
import { KeywordResultItem } from "../types/search/keyword";
|
|
7
6
|
import { TMDBAPIBase } from "./base";
|
|
7
|
+
import { PersonResultItem } from "../types/search/person";
|
|
8
8
|
export declare const SEARCH_ENDPOINTS: {
|
|
9
9
|
MOVIE: string;
|
|
10
10
|
COLLECTION: string;
|
|
@@ -27,7 +27,7 @@ export declare class SearchAPI extends TMDBAPIBase {
|
|
|
27
27
|
* @param region Region
|
|
28
28
|
* @reference https://developer.themoviedb.org/reference/search-collection
|
|
29
29
|
*/
|
|
30
|
-
collections(params: SearchCollectionsParams): Promise<PaginatedResponse<
|
|
30
|
+
collections(params: SearchCollectionsParams): Promise<PaginatedResponse<CollectionResultItem>>;
|
|
31
31
|
/**
|
|
32
32
|
* Search Movies
|
|
33
33
|
* GET - https://api.themoviedb.org/3/search/movie
|
|
@@ -52,7 +52,7 @@ export declare class SearchAPI extends TMDBAPIBase {
|
|
|
52
52
|
* @param page Page (Defaults to 1)
|
|
53
53
|
* @reference https://developer.themoviedb.org/reference/search-company
|
|
54
54
|
*/
|
|
55
|
-
company(params: SearchCompanyParams): Promise<PaginatedResponse<
|
|
55
|
+
company(params: SearchCompanyParams): Promise<PaginatedResponse<CompanyResultItem>>;
|
|
56
56
|
/**
|
|
57
57
|
* Search Keyword
|
|
58
58
|
* GET - https://api.themoviedb.org/3/search/keyword
|
|
@@ -62,7 +62,7 @@ export declare class SearchAPI extends TMDBAPIBase {
|
|
|
62
62
|
* @param page Page (Defaults to 1)
|
|
63
63
|
* @reference https://developer.themoviedb.org/reference/search-keyword
|
|
64
64
|
*/
|
|
65
|
-
keyword(params: SearchKeywordsParams): Promise<PaginatedResponse<
|
|
65
|
+
keyword(params: SearchKeywordsParams): Promise<PaginatedResponse<KeywordResultItem>>;
|
|
66
66
|
/**
|
|
67
67
|
* Search Person
|
|
68
68
|
* GET - https://api.themoviedb.org/3/search/person
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/endpoints/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC9D,OAAO,EACN,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/endpoints/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC9D,OAAO,EACN,uBAAuB,EACvB,mBAAmB,EACnB,oBAAoB,EACpB,kBAAkB,EAClB,kBAAkB,EAClB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE1D,eAAO,MAAM,gBAAgB;;;;;;;;CAQ5B,CAAC;AAEF,qBAAa,SAAU,SAAQ,WAAW;IACzC;;;;;;;;;;;OAWG;IACG,WAAW,CAAC,MAAM,EAAE,uBAAuB,GAAG,OAAO,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;IAKpG;;;;;;;;;;;;;OAaG;IACG,MAAM,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;IAKrF;;;;;;;;OAQG;IACG,OAAO,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAKzF;;;;;;;;OAQG;IACG,OAAO,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAK1F;;;;;;;;OAQG;IACG,MAAM,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;CAItF"}
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { MediaWatchProviders } from "../types";
|
|
2
|
+
import { TVAggregateCreditsParams, TVAlternativeTitles, TVBaseParam, TVChangeParams, TVCredits, TVCreditsParams, TVDetailsParams, TVExternalIDs, TVImages, TVImagesParams, TVKeywords, TVRecommendations, TVRecommendationsParams, TVReviewsParams, TVSeriesChanges, TVSeriesListsParams, TVSimilar, TVSimilarParams, TVTranslations, TVVideos } from "../types/tv";
|
|
2
3
|
import { TVAggregateCredits } from "../types/tv/aggregate_credits";
|
|
3
4
|
import { TVContentRatings } from "../types/tv/content_ratings";
|
|
4
5
|
import { TVEpisodeGroups } from "../types/tv/episode_groups";
|
|
5
|
-
import {
|
|
6
|
+
import { TVSeriesLists } from "../types/tv/lists";
|
|
7
|
+
import { TVReviews } from "../types/tv/reviews";
|
|
8
|
+
import { TVScreenedTheatrically } from "../types/tv/screened_theatrically";
|
|
9
|
+
import { TVAppendToResponseNamespace, TVSeriesDetails, TVDetailsWithAppends } from "../types/tv/tv_series";
|
|
6
10
|
import { TMDBAPIBase } from "./base";
|
|
7
11
|
export declare const TV_SERIES_ENDPOINTS: {
|
|
8
12
|
TV: string;
|
|
@@ -17,7 +21,13 @@ export declare const TV_SERIES_ENDPOINTS: {
|
|
|
17
21
|
TV_KEYWORDS: string;
|
|
18
22
|
TV_LATEST: string;
|
|
19
23
|
TV_LISTS: string;
|
|
20
|
-
|
|
24
|
+
TV_RECOMMENDATIONS: string;
|
|
25
|
+
TV_REVIEWS: string;
|
|
26
|
+
TV_SCREENED_THEATRICALLY: string;
|
|
27
|
+
TV_SIMILAR: string;
|
|
28
|
+
TV_TRANSLATIONS: string;
|
|
29
|
+
TV_VIDEOS: string;
|
|
30
|
+
TV_WATCH_PROVIDERS: string;
|
|
21
31
|
};
|
|
22
32
|
export declare class TVSeriesAPI extends TMDBAPIBase {
|
|
23
33
|
/**
|
|
@@ -33,7 +43,7 @@ export declare class TVSeriesAPI extends TMDBAPIBase {
|
|
|
33
43
|
*/
|
|
34
44
|
details<T extends readonly TVAppendToResponseNamespace[] = []>(params: TVDetailsParams & {
|
|
35
45
|
append_to_response?: T[number] | T;
|
|
36
|
-
}): Promise<T extends [] ?
|
|
46
|
+
}): Promise<T extends [] ? TVSeriesDetails : TVDetailsWithAppends<T>>;
|
|
37
47
|
/**
|
|
38
48
|
* Aggregate Credits
|
|
39
49
|
* GET - https://api.themoviedb.org/3/tv/{series_id}/aggregate_credits
|
|
@@ -138,5 +148,124 @@ export declare class TVSeriesAPI extends TMDBAPIBase {
|
|
|
138
148
|
* @reference https://developer.themoviedb.org/reference/tv-series-images
|
|
139
149
|
*/
|
|
140
150
|
images(params: TVImagesParams): Promise<TVImages>;
|
|
151
|
+
/**
|
|
152
|
+
* Keywords
|
|
153
|
+
* GET - https://api.themoviedb.org/3/tv/{series_id}/keywords
|
|
154
|
+
*
|
|
155
|
+
* Get a list of keywords that have been added to a TV show.
|
|
156
|
+
* @param series_id The ID of the TV series.
|
|
157
|
+
* @returns A promise that resolves to the TV series keywords.
|
|
158
|
+
* @reference https://developer.themoviedb.org/reference/tv-series-keywords
|
|
159
|
+
*/
|
|
160
|
+
keywords(params: TVBaseParam): Promise<TVKeywords>;
|
|
161
|
+
/**
|
|
162
|
+
* Latest
|
|
163
|
+
* GET - https://api.themoviedb.org/3/tv/latest
|
|
164
|
+
*
|
|
165
|
+
* Get the newest tv show.
|
|
166
|
+
* This is a live response and will continuosly change.
|
|
167
|
+
* @returns A promise that resolves to the lastest TV series.
|
|
168
|
+
* @reference https://developer.themoviedb.org/reference/tv-series-latest-id
|
|
169
|
+
*/
|
|
170
|
+
latest(): Promise<TVSeriesDetails>;
|
|
171
|
+
/**
|
|
172
|
+
* Lists
|
|
173
|
+
* GET - https://api.themoviedb.org/3/tv/{series_id}/lists
|
|
174
|
+
*
|
|
175
|
+
* Get the lists that a TV series has been added to.
|
|
176
|
+
* @param series_id The ID of the TV series.
|
|
177
|
+
* @param language The Language for the lists
|
|
178
|
+
* @param page Page number - Defaults to 1
|
|
179
|
+
* @returns A promise that resolves to the TV series lists.
|
|
180
|
+
* @reference https://developer.themoviedb.org/reference/lists-copy (TODO: Check this url for updates, it's like this on TMDB docs (??))
|
|
181
|
+
*/
|
|
182
|
+
lists(params: TVSeriesListsParams): Promise<TVSeriesLists>;
|
|
183
|
+
/**
|
|
184
|
+
* Recomendations
|
|
185
|
+
* GET - https://api.themoviedb.org/3/tv/{series_id}/recommendations
|
|
186
|
+
*
|
|
187
|
+
* Get the recommendations shows for a TV series.
|
|
188
|
+
* @param series_id The ID of the TV series.
|
|
189
|
+
* @param language The Language for the lists
|
|
190
|
+
* @param page Page number - Defaults to 1
|
|
191
|
+
* @returns A promise that resolves to TV series recommended shows.
|
|
192
|
+
* @reference https://developer.themoviedb.org/reference/tv-series-recommendations
|
|
193
|
+
*/
|
|
194
|
+
recommendations(params: TVRecommendationsParams): Promise<TVRecommendations>;
|
|
195
|
+
/**
|
|
196
|
+
* Reviews
|
|
197
|
+
* GET - https://api.themoviedb.org/3/tv/{series_id}/reviews
|
|
198
|
+
*
|
|
199
|
+
* Get the reviews that have been added to a TV show.
|
|
200
|
+
* @param series_id The ID of the TV series.
|
|
201
|
+
* @param language The Language for the lists
|
|
202
|
+
* @param page Page number - Defaults to 1
|
|
203
|
+
* @returns A promise that resolves to TV series recommended shows.
|
|
204
|
+
* @reference https://developer.themoviedb.org/reference/tv-series-recommendations
|
|
205
|
+
*/
|
|
206
|
+
reviews(params: TVReviewsParams): Promise<TVReviews>;
|
|
207
|
+
/**
|
|
208
|
+
* Sreened Theatrically
|
|
209
|
+
* GET - https://api.themoviedb.org/3/tv/{series_id}/screened_theatrically
|
|
210
|
+
*
|
|
211
|
+
* Get the seasons and episodes that have screened theatrically.
|
|
212
|
+
* @param series_id The ID of the TV series.
|
|
213
|
+
* @returns A promise that resolves to the TV episodes that have been screened thatrically.
|
|
214
|
+
* @reference https://developer.themoviedb.org/reference/tv-series-screened-theatrically
|
|
215
|
+
*/
|
|
216
|
+
screened_theatrically(params: TVBaseParam): Promise<TVScreenedTheatrically>;
|
|
217
|
+
/**
|
|
218
|
+
* Similar
|
|
219
|
+
* GET - https://api.themoviedb.org/3/tv/{series_id}/similar
|
|
220
|
+
*
|
|
221
|
+
* Get the similar shows for a TV series.
|
|
222
|
+
* @param series_id The ID of the TV series.
|
|
223
|
+
* @param language The Language for the lists
|
|
224
|
+
* @param page Page number - Defaults to 1
|
|
225
|
+
* @returns A promise that resolves to TV series similar shows.
|
|
226
|
+
* @reference https://developer.themoviedb.org/reference/tv-series-similar
|
|
227
|
+
*/
|
|
228
|
+
similar(params: TVSimilarParams): Promise<TVSimilar>;
|
|
229
|
+
/**
|
|
230
|
+
* Translations
|
|
231
|
+
* GET - https://api.themoviedb.org/3/movie/{series_id}/translations
|
|
232
|
+
*
|
|
233
|
+
* Get the translations that have been added to a tv show.
|
|
234
|
+
* Take a read through our language documentation for more information about languages on TMDB.
|
|
235
|
+
* https://developer.themoviedb.org/docs/languages
|
|
236
|
+
* @param series_id The ID of the TV Series
|
|
237
|
+
* @returns A promise that resolves to the translations of the tv show.
|
|
238
|
+
* @reference https://developer.themoviedb.org/reference/tv-series-translations
|
|
239
|
+
*/
|
|
240
|
+
translations(params: TVBaseParam): Promise<TVTranslations>;
|
|
241
|
+
/**
|
|
242
|
+
* Videos
|
|
243
|
+
* GET - https://api.themoviedb.org/3/movie/{series_id}/videos
|
|
244
|
+
*
|
|
245
|
+
* Get the videos that belong to a TV show.
|
|
246
|
+
* @param series_id The ID of the TV Series
|
|
247
|
+
* @returns A promise that resolves to the videos for the tv show.
|
|
248
|
+
* @reference https://developer.themoviedb.org/reference/tv-series-videos
|
|
249
|
+
*/
|
|
250
|
+
videos(params: TVBaseParam): Promise<TVVideos>;
|
|
251
|
+
/**
|
|
252
|
+
* Watch Providers
|
|
253
|
+
* GET - https://api.themoviedb.org/3/movie/{series_id}/watch/providers
|
|
254
|
+
*
|
|
255
|
+
* Get the list of streaming providers we have for a TV show.
|
|
256
|
+
*
|
|
257
|
+
* Powered by our partnership with JustWatch, you can query this method to get a list of the streaming/rental/purchase availabilities per country by provider.
|
|
258
|
+
* This is not going to return full deep links, but rather, it's just enough information to display what's available where.
|
|
259
|
+
* You can link to the provided TMDB URL to help support TMDB and provide the actual deep links to the content.
|
|
260
|
+
*
|
|
261
|
+
* WARNING: JustWatch Attribution Required
|
|
262
|
+
* In order to use this data you must attribute the source of the data as JustWatch.
|
|
263
|
+
* If we find any usage not complying with these terms we will revoke access to the API.
|
|
264
|
+
*
|
|
265
|
+
* @param series_id The ID of the TV Series
|
|
266
|
+
* @returns A promise that resolves to the watch providers for the tv show.
|
|
267
|
+
* @reference https://developer.themoviedb.org/reference/tv-series-watch-providers
|
|
268
|
+
*/
|
|
269
|
+
watch_providers(params: TVBaseParam): Promise<MediaWatchProviders>;
|
|
141
270
|
}
|
|
142
271
|
//# 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,EACN,wBAAwB,EACxB,mBAAmB,EACnB,WAAW,EACX,cAAc,EACd,SAAS,EACT,eAAe,EACf,eAAe,EACf,aAAa,EACb,QAAQ,EACR,cAAc,EACd,eAAe,EACf,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"tv_series.d.ts","sourceRoot":"","sources":["../../src/endpoints/tv_series.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EACN,wBAAwB,EACxB,mBAAmB,EACnB,WAAW,EACX,cAAc,EACd,SAAS,EACT,eAAe,EACf,eAAe,EACf,aAAa,EACb,QAAQ,EACR,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,uBAAuB,EACvB,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,SAAS,EACT,eAAe,EACf,cAAc,EACd,QAAQ,EACR,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACnE,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,C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ically",
|
|
18
|
+
TV_SIMILAR: "/similar",
|
|
19
|
+
TV_TRANSLATIONS: "/translations",
|
|
20
|
+
TV_VIDEOS: "/videos",
|
|
21
|
+
TV_WATCH_PROVIDERS: "/watch/providers",
|
|
16
22
|
};
|
|
17
23
|
export class TVSeriesAPI extends TMDBAPIBase {
|
|
18
24
|
/**
|
|
@@ -162,4 +168,157 @@ export class TVSeriesAPI extends TMDBAPIBase {
|
|
|
162
168
|
const endpoint = `${TV_SERIES_ENDPOINTS.TV}/${params.series_id}${TV_SERIES_ENDPOINTS.TV_IMAGES}`;
|
|
163
169
|
return this.client.request(endpoint, { language, ...rest });
|
|
164
170
|
}
|
|
171
|
+
/**
|
|
172
|
+
* Keywords
|
|
173
|
+
* GET - https://api.themoviedb.org/3/tv/{series_id}/keywords
|
|
174
|
+
*
|
|
175
|
+
* Get a list of keywords that have been added to a TV show.
|
|
176
|
+
* @param series_id The ID of the TV series.
|
|
177
|
+
* @returns A promise that resolves to the TV series keywords.
|
|
178
|
+
* @reference https://developer.themoviedb.org/reference/tv-series-keywords
|
|
179
|
+
*/
|
|
180
|
+
async keywords(params) {
|
|
181
|
+
const endpoint = `${TV_SERIES_ENDPOINTS.TV}/${params.series_id}${TV_SERIES_ENDPOINTS.TV_KEYWORDS}`;
|
|
182
|
+
return this.client.request(endpoint);
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Latest
|
|
186
|
+
* GET - https://api.themoviedb.org/3/tv/latest
|
|
187
|
+
*
|
|
188
|
+
* Get the newest tv show.
|
|
189
|
+
* This is a live response and will continuosly change.
|
|
190
|
+
* @returns A promise that resolves to the lastest TV series.
|
|
191
|
+
* @reference https://developer.themoviedb.org/reference/tv-series-latest-id
|
|
192
|
+
*/
|
|
193
|
+
async latest() {
|
|
194
|
+
const endpoint = `${TV_SERIES_ENDPOINTS.TV}${TV_SERIES_ENDPOINTS.TV_LATEST}`;
|
|
195
|
+
return this.client.request(endpoint);
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Lists
|
|
199
|
+
* GET - https://api.themoviedb.org/3/tv/{series_id}/lists
|
|
200
|
+
*
|
|
201
|
+
* Get the lists that a TV series has been added to.
|
|
202
|
+
* @param series_id The ID of the TV series.
|
|
203
|
+
* @param language The Language for the lists
|
|
204
|
+
* @param page Page number - Defaults to 1
|
|
205
|
+
* @returns A promise that resolves to the TV series lists.
|
|
206
|
+
* @reference https://developer.themoviedb.org/reference/lists-copy (TODO: Check this url for updates, it's like this on TMDB docs (??))
|
|
207
|
+
*/
|
|
208
|
+
async lists(params) {
|
|
209
|
+
const endpoint = `${TV_SERIES_ENDPOINTS.TV}/${params.series_id}${TV_SERIES_ENDPOINTS.TV_LISTS}`;
|
|
210
|
+
const { language = this.defaultOptions.language, ...rest } = params;
|
|
211
|
+
return this.client.request(endpoint, { language, ...rest });
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* Recomendations
|
|
215
|
+
* GET - https://api.themoviedb.org/3/tv/{series_id}/recommendations
|
|
216
|
+
*
|
|
217
|
+
* Get the recommendations shows for a TV series.
|
|
218
|
+
* @param series_id The ID of the TV series.
|
|
219
|
+
* @param language The Language for the lists
|
|
220
|
+
* @param page Page number - Defaults to 1
|
|
221
|
+
* @returns A promise that resolves to TV series recommended shows.
|
|
222
|
+
* @reference https://developer.themoviedb.org/reference/tv-series-recommendations
|
|
223
|
+
*/
|
|
224
|
+
async recommendations(params) {
|
|
225
|
+
const endpoint = `${TV_SERIES_ENDPOINTS.TV}/${params.series_id}${TV_SERIES_ENDPOINTS.TV_RECOMMENDATIONS}`;
|
|
226
|
+
const { language = this.defaultOptions.language, ...rest } = params;
|
|
227
|
+
return this.client.request(endpoint, { language, ...rest });
|
|
228
|
+
}
|
|
229
|
+
/**
|
|
230
|
+
* Reviews
|
|
231
|
+
* GET - https://api.themoviedb.org/3/tv/{series_id}/reviews
|
|
232
|
+
*
|
|
233
|
+
* Get the reviews that have been added to a TV show.
|
|
234
|
+
* @param series_id The ID of the TV series.
|
|
235
|
+
* @param language The Language for the lists
|
|
236
|
+
* @param page Page number - Defaults to 1
|
|
237
|
+
* @returns A promise that resolves to TV series recommended shows.
|
|
238
|
+
* @reference https://developer.themoviedb.org/reference/tv-series-recommendations
|
|
239
|
+
*/
|
|
240
|
+
async reviews(params) {
|
|
241
|
+
const endpoint = `${TV_SERIES_ENDPOINTS.TV}/${params.series_id}${TV_SERIES_ENDPOINTS.TV_REVIEWS}`;
|
|
242
|
+
const { language = this.defaultOptions.language, ...rest } = params;
|
|
243
|
+
return this.client.request(endpoint, { language, ...rest });
|
|
244
|
+
}
|
|
245
|
+
/**
|
|
246
|
+
* Sreened Theatrically
|
|
247
|
+
* GET - https://api.themoviedb.org/3/tv/{series_id}/screened_theatrically
|
|
248
|
+
*
|
|
249
|
+
* Get the seasons and episodes that have screened theatrically.
|
|
250
|
+
* @param series_id The ID of the TV series.
|
|
251
|
+
* @returns A promise that resolves to the TV episodes that have been screened thatrically.
|
|
252
|
+
* @reference https://developer.themoviedb.org/reference/tv-series-screened-theatrically
|
|
253
|
+
*/
|
|
254
|
+
async screened_theatrically(params) {
|
|
255
|
+
const endpoint = `${TV_SERIES_ENDPOINTS.TV}/${params.series_id}${TV_SERIES_ENDPOINTS.TV_SCREENED_THEATRICALLY}`;
|
|
256
|
+
return this.client.request(endpoint);
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Similar
|
|
260
|
+
* GET - https://api.themoviedb.org/3/tv/{series_id}/similar
|
|
261
|
+
*
|
|
262
|
+
* Get the similar shows for a TV series.
|
|
263
|
+
* @param series_id The ID of the TV series.
|
|
264
|
+
* @param language The Language for the lists
|
|
265
|
+
* @param page Page number - Defaults to 1
|
|
266
|
+
* @returns A promise that resolves to TV series similar shows.
|
|
267
|
+
* @reference https://developer.themoviedb.org/reference/tv-series-similar
|
|
268
|
+
*/
|
|
269
|
+
async similar(params) {
|
|
270
|
+
const endpoint = `${TV_SERIES_ENDPOINTS.TV}/${params.series_id}${TV_SERIES_ENDPOINTS.TV_SIMILAR}`;
|
|
271
|
+
const { language = this.defaultOptions.language, ...rest } = params;
|
|
272
|
+
return this.client.request(endpoint, { language, ...rest });
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* Translations
|
|
276
|
+
* GET - https://api.themoviedb.org/3/movie/{series_id}/translations
|
|
277
|
+
*
|
|
278
|
+
* Get the translations that have been added to a tv show.
|
|
279
|
+
* Take a read through our language documentation for more information about languages on TMDB.
|
|
280
|
+
* https://developer.themoviedb.org/docs/languages
|
|
281
|
+
* @param series_id The ID of the TV Series
|
|
282
|
+
* @returns A promise that resolves to the translations of the tv show.
|
|
283
|
+
* @reference https://developer.themoviedb.org/reference/tv-series-translations
|
|
284
|
+
*/
|
|
285
|
+
async translations(params) {
|
|
286
|
+
const endpoint = `${TV_SERIES_ENDPOINTS.TV}/${params.series_id}${TV_SERIES_ENDPOINTS.TV_TRANSLATIONS}`;
|
|
287
|
+
return this.client.request(endpoint);
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Videos
|
|
291
|
+
* GET - https://api.themoviedb.org/3/movie/{series_id}/videos
|
|
292
|
+
*
|
|
293
|
+
* Get the videos that belong to a TV show.
|
|
294
|
+
* @param series_id The ID of the TV Series
|
|
295
|
+
* @returns A promise that resolves to the videos for the tv show.
|
|
296
|
+
* @reference https://developer.themoviedb.org/reference/tv-series-videos
|
|
297
|
+
*/
|
|
298
|
+
async videos(params) {
|
|
299
|
+
const endpoint = `${TV_SERIES_ENDPOINTS.TV}/${params.series_id}${TV_SERIES_ENDPOINTS.TV_VIDEOS}`;
|
|
300
|
+
return this.client.request(endpoint);
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Watch Providers
|
|
304
|
+
* GET - https://api.themoviedb.org/3/movie/{series_id}/watch/providers
|
|
305
|
+
*
|
|
306
|
+
* Get the list of streaming providers we have for a TV show.
|
|
307
|
+
*
|
|
308
|
+
* Powered by our partnership with JustWatch, you can query this method to get a list of the streaming/rental/purchase availabilities per country by provider.
|
|
309
|
+
* This is not going to return full deep links, but rather, it's just enough information to display what's available where.
|
|
310
|
+
* You can link to the provided TMDB URL to help support TMDB and provide the actual deep links to the content.
|
|
311
|
+
*
|
|
312
|
+
* WARNING: JustWatch Attribution Required
|
|
313
|
+
* In order to use this data you must attribute the source of the data as JustWatch.
|
|
314
|
+
* If we find any usage not complying with these terms we will revoke access to the API.
|
|
315
|
+
*
|
|
316
|
+
* @param series_id The ID of the TV Series
|
|
317
|
+
* @returns A promise that resolves to the watch providers for the tv show.
|
|
318
|
+
* @reference https://developer.themoviedb.org/reference/tv-series-watch-providers
|
|
319
|
+
*/
|
|
320
|
+
async watch_providers(params) {
|
|
321
|
+
const endpoint = `${TV_SERIES_ENDPOINTS.TV}/${params.series_id}${TV_SERIES_ENDPOINTS.TV_WATCH_PROVIDERS}`;
|
|
322
|
+
return this.client.request(endpoint);
|
|
323
|
+
}
|
|
165
324
|
}
|
package/dist/tmdb.d.ts
CHANGED
package/dist/tmdb.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tmdb.d.ts","sourceRoot":"","sources":["../src/tmdb.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AAE/D,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AA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|
movie_lists;
|
|
17
17
|
search;
|
|
18
18
|
images;
|
|
19
|
-
|
|
19
|
+
configuration;
|
|
20
20
|
genres;
|
|
21
21
|
tv_lists;
|
|
22
22
|
tv_series;
|
|
@@ -35,7 +35,7 @@ export class TMDB {
|
|
|
35
35
|
this.movie_lists = new MovieListsAPI(this.client, this.options);
|
|
36
36
|
this.search = new SearchAPI(this.client, this.options);
|
|
37
37
|
this.images = new ImageAPI(this.options.images);
|
|
38
|
-
this.
|
|
38
|
+
this.configuration = new ConfigurationAPI(this.client, this.options);
|
|
39
39
|
this.genres = new GenresAPI(this.client, this.options);
|
|
40
40
|
this.tv_lists = new TVSeriesListsAPI(this.client, this.options);
|
|
41
41
|
this.tv_series = new TVSeriesAPI(this.client, this.options);
|
|
@@ -198,5 +198,87 @@ export type ContentRating = {
|
|
|
198
198
|
/** Age or content rating (e.g., "TV-MA", "PG-13", "TV-14", "R") */
|
|
199
199
|
rating: string;
|
|
200
200
|
};
|
|
201
|
+
/**
|
|
202
|
+
* Individual movie review with author information
|
|
203
|
+
*/
|
|
204
|
+
export type Review = {
|
|
205
|
+
/** Review author's display name */
|
|
206
|
+
author: string;
|
|
207
|
+
/** Detailed information about the review author */
|
|
208
|
+
author_details: ReviewAuthorDetails;
|
|
209
|
+
/** Full review text content */
|
|
210
|
+
content: string;
|
|
211
|
+
/** Timestamp when the review was created (ISO 8601) */
|
|
212
|
+
created_at: string;
|
|
213
|
+
/** Unique review identifier */
|
|
214
|
+
id: string;
|
|
215
|
+
/** Timestamp of last update (ISO 8601) */
|
|
216
|
+
updated_at: string;
|
|
217
|
+
/** URL to the review on TMDB website */
|
|
218
|
+
url: string;
|
|
219
|
+
};
|
|
220
|
+
/**
|
|
221
|
+
* Author information for a movie review
|
|
222
|
+
*/
|
|
223
|
+
export type ReviewAuthorDetails = {
|
|
224
|
+
/** Author's full name */
|
|
225
|
+
name: string;
|
|
226
|
+
/** Author's username on TMDB */
|
|
227
|
+
username: string;
|
|
228
|
+
/** Path to author's avatar image (optional) */
|
|
229
|
+
avatar_path?: string;
|
|
230
|
+
/** Rating given by the author (0-10 scale, optional) */
|
|
231
|
+
rating?: number;
|
|
232
|
+
};
|
|
233
|
+
/**
|
|
234
|
+
* Translation data for a specific language
|
|
235
|
+
*/
|
|
236
|
+
export type Translation = {
|
|
237
|
+
/** ISO 3166-1 alpha-2 country code */
|
|
238
|
+
iso_3166_1: string;
|
|
239
|
+
/** ISO 639-1 language code */
|
|
240
|
+
iso_639_1: string;
|
|
241
|
+
/** Native name of the language */
|
|
242
|
+
name: string;
|
|
243
|
+
/** English name of the language */
|
|
244
|
+
english_name: string;
|
|
245
|
+
/** Translated media (tv/movie) information */
|
|
246
|
+
data: object;
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* Watch provider availability by country
|
|
250
|
+
*/
|
|
251
|
+
export type MediaWatchProviders = {
|
|
252
|
+
/** Movie/TV show identifier */
|
|
253
|
+
id: number;
|
|
254
|
+
/** Watch providers grouped by country code */
|
|
255
|
+
results: Record<CountryISO3166_1, WatchProvider>;
|
|
256
|
+
};
|
|
257
|
+
/**
|
|
258
|
+
* Watch provider options for a specific country
|
|
259
|
+
*/
|
|
260
|
+
export type WatchProvider = {
|
|
261
|
+
/** URL to watch/purchase the movie */
|
|
262
|
+
link: string;
|
|
263
|
+
/** Streaming providers (subscription required) */
|
|
264
|
+
flatrate?: WatchProviderItem[];
|
|
265
|
+
/** Rental providers */
|
|
266
|
+
rent?: WatchProviderItem[];
|
|
267
|
+
/** Purchase providers */
|
|
268
|
+
buy?: WatchProviderItem[];
|
|
269
|
+
};
|
|
270
|
+
/**
|
|
271
|
+
* Individual watch provider details
|
|
272
|
+
*/
|
|
273
|
+
export type WatchProviderItem = {
|
|
274
|
+
/** Path to provider logo image */
|
|
275
|
+
logo_path: string;
|
|
276
|
+
/** Unique provider identifier */
|
|
277
|
+
provider_id: number;
|
|
278
|
+
/** Provider name (e.g., "Netflix", "Amazon Prime Video") */
|
|
279
|
+
provider_name: string;
|
|
280
|
+
/** Display priority order (lower numbers = higher priority) */
|
|
281
|
+
display_priority: number;
|
|
282
|
+
};
|
|
201
283
|
export {};
|
|
202
284
|
//# sourceMappingURL=media.d.ts.map
|