@lorenzopant/tmdb 1.8.0 → 1.10.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/find.d.ts +17 -0
- package/dist/endpoints/find.d.ts.map +1 -0
- package/dist/endpoints/find.js +21 -0
- package/dist/endpoints/keywords.d.ts +30 -0
- package/dist/endpoints/keywords.d.ts.map +1 -0
- package/dist/endpoints/keywords.js +38 -0
- package/dist/endpoints/watch_providers.d.ts +35 -0
- package/dist/endpoints/watch_providers.d.ts.map +1 -0
- package/dist/endpoints/watch_providers.js +46 -0
- package/dist/routes.d.ts +10 -0
- package/dist/routes.d.ts.map +1 -1
- package/dist/routes.js +10 -0
- package/dist/tmdb.d.ts +6 -0
- package/dist/tmdb.d.ts.map +1 -1
- package/dist/tmdb.js +9 -0
- package/dist/types/other/find.d.ts +104 -0
- package/dist/types/other/find.d.ts.map +1 -0
- package/dist/types/other/find.js +1 -0
- package/dist/types/other/index.d.ts +3 -0
- package/dist/types/other/index.d.ts.map +1 -1
- package/dist/types/other/index.js +3 -0
- package/dist/types/other/keywords.d.ts +20 -0
- package/dist/types/other/keywords.d.ts.map +1 -0
- package/dist/types/other/keywords.js +1 -0
- package/dist/types/other/watch_providers.d.ts +35 -0
- package/dist/types/other/watch_providers.d.ts.map +1 -0
- package/dist/types/other/watch_providers.js +1 -0
- package/package.json +70 -68
- package/LICENSE +0 -21
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { FindByIDParams, FindResults } from "../types";
|
|
2
|
+
import { TMDBAPIBase } from "./base";
|
|
3
|
+
export declare class FindAPI extends TMDBAPIBase {
|
|
4
|
+
/**
|
|
5
|
+
* By ID
|
|
6
|
+
* GET - https://api.themoviedb.org/3/find/{external_id}
|
|
7
|
+
*
|
|
8
|
+
* Find movies, TV series, seasons, episodes, or people by an external ID.
|
|
9
|
+
*
|
|
10
|
+
* @param external_id External identifier to look up
|
|
11
|
+
* @param external_source Source namespace for the external ID
|
|
12
|
+
* @param language Language for localized results
|
|
13
|
+
* @reference https://developer.themoviedb.org/reference/find-by-id
|
|
14
|
+
*/
|
|
15
|
+
by_id(params: FindByIDParams): Promise<FindResults>;
|
|
16
|
+
}
|
|
17
|
+
//# sourceMappingURL=find.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../src/endpoints/find.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAErC,qBAAa,OAAQ,SAAQ,WAAW;IACvC;;;;;;;;;;OAUG;IACG,KAAK,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC;CAMzD"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ENDPOINTS } from "../routes";
|
|
2
|
+
import { TMDBAPIBase } from "./base";
|
|
3
|
+
export class FindAPI extends TMDBAPIBase {
|
|
4
|
+
/**
|
|
5
|
+
* By ID
|
|
6
|
+
* GET - https://api.themoviedb.org/3/find/{external_id}
|
|
7
|
+
*
|
|
8
|
+
* Find movies, TV series, seasons, episodes, or people by an external ID.
|
|
9
|
+
*
|
|
10
|
+
* @param external_id External identifier to look up
|
|
11
|
+
* @param external_source Source namespace for the external ID
|
|
12
|
+
* @param language Language for localized results
|
|
13
|
+
* @reference https://developer.themoviedb.org/reference/find-by-id
|
|
14
|
+
*/
|
|
15
|
+
async by_id(params) {
|
|
16
|
+
const { external_id, ...rest } = params;
|
|
17
|
+
const endpoint = `${ENDPOINTS.FIND}/${encodeURIComponent(external_id)}`;
|
|
18
|
+
const requestParams = this.withLanguage(rest);
|
|
19
|
+
return this.client.request(endpoint, requestParams);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Keyword, KeywordDetailsParams, KeywordMoviesParams, MovieResultItem, PaginatedResponse } from "../types";
|
|
2
|
+
import { TMDBAPIBase } from "./base";
|
|
3
|
+
export declare class KeywordsAPI extends TMDBAPIBase {
|
|
4
|
+
private keywordPath;
|
|
5
|
+
/**
|
|
6
|
+
* Details
|
|
7
|
+
* GET - https://api.themoviedb.org/3/keyword/{keyword_id}
|
|
8
|
+
*
|
|
9
|
+
* Get the details of a keyword by ID.
|
|
10
|
+
*
|
|
11
|
+
* @param keyword_id Unique identifier for the keyword
|
|
12
|
+
* @reference https://developer.themoviedb.org/reference/keyword-details
|
|
13
|
+
*/
|
|
14
|
+
details(params: KeywordDetailsParams): Promise<Keyword>;
|
|
15
|
+
/**
|
|
16
|
+
* Movies
|
|
17
|
+
* GET - https://api.themoviedb.org/3/keyword/{keyword_id}/movies
|
|
18
|
+
*
|
|
19
|
+
* Get the movies associated with a keyword.
|
|
20
|
+
*
|
|
21
|
+
* @deprecated TMDB marks this endpoint as deprecated. Use discover/movie with_keywords instead.
|
|
22
|
+
* @param keyword_id Unique identifier for the keyword
|
|
23
|
+
* @param language Language for localized results
|
|
24
|
+
* @param page Page number for paginated results
|
|
25
|
+
* @param include_adult Include adult titles in results
|
|
26
|
+
* @reference https://developer.themoviedb.org/reference/keyword-movies
|
|
27
|
+
*/
|
|
28
|
+
movies(params: KeywordMoviesParams): Promise<PaginatedResponse<MovieResultItem>>;
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=keywords.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keywords.d.ts","sourceRoot":"","sources":["../../src/endpoints/keywords.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAClH,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAErC,qBAAa,WAAY,SAAQ,WAAW;IAC3C,OAAO,CAAC,WAAW;IAInB;;;;;;;;OAQG;IACG,OAAO,CAAC,MAAM,EAAE,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC;IAK7D;;;;;;;;;;;;OAYG;IACG,MAAM,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO,CAAC,iBAAiB,CAAC,eAAe,CAAC,CAAC;CAKtF"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ENDPOINTS } from "../routes";
|
|
2
|
+
import { TMDBAPIBase } from "./base";
|
|
3
|
+
export class KeywordsAPI extends TMDBAPIBase {
|
|
4
|
+
keywordPath(keyword_id) {
|
|
5
|
+
return `${ENDPOINTS.KEYWORDS.DETAILS}/${keyword_id}`;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Details
|
|
9
|
+
* GET - https://api.themoviedb.org/3/keyword/{keyword_id}
|
|
10
|
+
*
|
|
11
|
+
* Get the details of a keyword by ID.
|
|
12
|
+
*
|
|
13
|
+
* @param keyword_id Unique identifier for the keyword
|
|
14
|
+
* @reference https://developer.themoviedb.org/reference/keyword-details
|
|
15
|
+
*/
|
|
16
|
+
async details(params) {
|
|
17
|
+
const endpoint = this.keywordPath(params.keyword_id);
|
|
18
|
+
return this.client.request(endpoint, params);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Movies
|
|
22
|
+
* GET - https://api.themoviedb.org/3/keyword/{keyword_id}/movies
|
|
23
|
+
*
|
|
24
|
+
* Get the movies associated with a keyword.
|
|
25
|
+
*
|
|
26
|
+
* @deprecated TMDB marks this endpoint as deprecated. Use discover/movie with_keywords instead.
|
|
27
|
+
* @param keyword_id Unique identifier for the keyword
|
|
28
|
+
* @param language Language for localized results
|
|
29
|
+
* @param page Page number for paginated results
|
|
30
|
+
* @param include_adult Include adult titles in results
|
|
31
|
+
* @reference https://developer.themoviedb.org/reference/keyword-movies
|
|
32
|
+
*/
|
|
33
|
+
async movies(params) {
|
|
34
|
+
const endpoint = `${this.keywordPath(params.keyword_id)}${ENDPOINTS.KEYWORDS.MOVIES}`;
|
|
35
|
+
const requestParams = this.withLanguage(params);
|
|
36
|
+
return this.client.request(endpoint, requestParams);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { WatchProviderListParams, WatchProviderListResponse, WatchProviderRegionsParams, WatchProviderRegionsResponse } from "../types";
|
|
2
|
+
import { TMDBAPIBase } from "./base";
|
|
3
|
+
export declare class WatchProvidersAPI extends TMDBAPIBase {
|
|
4
|
+
/**
|
|
5
|
+
* Movie Providers
|
|
6
|
+
* GET - https://api.themoviedb.org/3/watch/providers/movie
|
|
7
|
+
*
|
|
8
|
+
* Get the list of movie watch providers supported by TMDB.
|
|
9
|
+
*
|
|
10
|
+
* @param language Language used for localized provider names
|
|
11
|
+
* @reference https://developer.themoviedb.org/reference/watch-provider-movie-list
|
|
12
|
+
*/
|
|
13
|
+
movie_providers(params?: WatchProviderListParams): Promise<WatchProviderListResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* TV Providers
|
|
16
|
+
* GET - https://api.themoviedb.org/3/watch/providers/tv
|
|
17
|
+
*
|
|
18
|
+
* Get the list of TV watch providers supported by TMDB.
|
|
19
|
+
*
|
|
20
|
+
* @param language Language used for localized provider names
|
|
21
|
+
* @reference https://developer.themoviedb.org/reference/watch-provider-tv-list
|
|
22
|
+
*/
|
|
23
|
+
tv_providers(params?: WatchProviderListParams): Promise<WatchProviderListResponse>;
|
|
24
|
+
/**
|
|
25
|
+
* Available Regions
|
|
26
|
+
* GET - https://api.themoviedb.org/3/watch/providers/regions
|
|
27
|
+
*
|
|
28
|
+
* Get the list of regions with watch provider support.
|
|
29
|
+
*
|
|
30
|
+
* @param language Language used for localized region names
|
|
31
|
+
* @reference https://developer.themoviedb.org/reference/watch-providers-available-regions
|
|
32
|
+
*/
|
|
33
|
+
available_regions(params?: WatchProviderRegionsParams): Promise<WatchProviderRegionsResponse>;
|
|
34
|
+
}
|
|
35
|
+
//# sourceMappingURL=watch_providers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watch_providers.d.ts","sourceRoot":"","sources":["../../src/endpoints/watch_providers.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,4BAA4B,EAAE,MAAM,UAAU,CAAC;AACxI,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAErC,qBAAa,iBAAkB,SAAQ,WAAW;IACjD;;;;;;;;OAQG;IACG,eAAe,CAAC,MAAM,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAM3F;;;;;;;;OAQG;IACG,YAAY,CAAC,MAAM,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,yBAAyB,CAAC;IAMxF;;;;;;;;OAQG;IACG,iBAAiB,CAAC,MAAM,CAAC,EAAE,0BAA0B,GAAG,OAAO,CAAC,4BAA4B,CAAC;CAKnG"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { ENDPOINTS } from "../routes";
|
|
2
|
+
import { TMDBAPIBase } from "./base";
|
|
3
|
+
export class WatchProvidersAPI extends TMDBAPIBase {
|
|
4
|
+
/**
|
|
5
|
+
* Movie Providers
|
|
6
|
+
* GET - https://api.themoviedb.org/3/watch/providers/movie
|
|
7
|
+
*
|
|
8
|
+
* Get the list of movie watch providers supported by TMDB.
|
|
9
|
+
*
|
|
10
|
+
* @param language Language used for localized provider names
|
|
11
|
+
* @reference https://developer.themoviedb.org/reference/watch-provider-movie-list
|
|
12
|
+
*/
|
|
13
|
+
async movie_providers(params) {
|
|
14
|
+
const language = params?.language ?? this.defaultOptions.language;
|
|
15
|
+
const requestParams = language === undefined ? params : { ...params, language };
|
|
16
|
+
return this.client.request(ENDPOINTS.WATCH_PROVIDERS.MOVIE, requestParams);
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* TV Providers
|
|
20
|
+
* GET - https://api.themoviedb.org/3/watch/providers/tv
|
|
21
|
+
*
|
|
22
|
+
* Get the list of TV watch providers supported by TMDB.
|
|
23
|
+
*
|
|
24
|
+
* @param language Language used for localized provider names
|
|
25
|
+
* @reference https://developer.themoviedb.org/reference/watch-provider-tv-list
|
|
26
|
+
*/
|
|
27
|
+
async tv_providers(params) {
|
|
28
|
+
const language = params?.language ?? this.defaultOptions.language;
|
|
29
|
+
const requestParams = language === undefined ? params : { ...params, language };
|
|
30
|
+
return this.client.request(ENDPOINTS.WATCH_PROVIDERS.TV, requestParams);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Available Regions
|
|
34
|
+
* GET - https://api.themoviedb.org/3/watch/providers/regions
|
|
35
|
+
*
|
|
36
|
+
* Get the list of regions with watch provider support.
|
|
37
|
+
*
|
|
38
|
+
* @param language Language used for localized region names
|
|
39
|
+
* @reference https://developer.themoviedb.org/reference/watch-providers-available-regions
|
|
40
|
+
*/
|
|
41
|
+
async available_regions(params) {
|
|
42
|
+
const language = params?.language ?? this.defaultOptions.language;
|
|
43
|
+
const requestParams = language === undefined ? params : { ...params, language };
|
|
44
|
+
return this.client.request(ENDPOINTS.WATCH_PROVIDERS.REGIONS, requestParams);
|
|
45
|
+
}
|
|
46
|
+
}
|
package/dist/routes.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export declare const ENDPOINTS: {
|
|
|
20
20
|
MOVIE: string;
|
|
21
21
|
TV: string;
|
|
22
22
|
};
|
|
23
|
+
FIND: string;
|
|
23
24
|
CREDITS: {
|
|
24
25
|
DETAILS: string;
|
|
25
26
|
};
|
|
@@ -37,6 +38,10 @@ export declare const ENDPOINTS: {
|
|
|
37
38
|
MOVIE_LIST: string;
|
|
38
39
|
TV_LIST: string;
|
|
39
40
|
};
|
|
41
|
+
KEYWORDS: {
|
|
42
|
+
DETAILS: string;
|
|
43
|
+
MOVIES: string;
|
|
44
|
+
};
|
|
40
45
|
MOVIES: {
|
|
41
46
|
DETAILS: string;
|
|
42
47
|
ALTERNATIVE_TITLES: string;
|
|
@@ -92,5 +97,10 @@ export declare const ENDPOINTS: {
|
|
|
92
97
|
VIDEOS: string;
|
|
93
98
|
WATCH_PROVIDERS: string;
|
|
94
99
|
};
|
|
100
|
+
WATCH_PROVIDERS: {
|
|
101
|
+
MOVIE: string;
|
|
102
|
+
TV: string;
|
|
103
|
+
REGIONS: string;
|
|
104
|
+
};
|
|
95
105
|
};
|
|
96
106
|
//# sourceMappingURL=routes.d.ts.map
|
package/dist/routes.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../src/routes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwGrB,CAAC"}
|
package/dist/routes.js
CHANGED
|
@@ -20,6 +20,7 @@ export const ENDPOINTS = {
|
|
|
20
20
|
MOVIE: "/discover/movie",
|
|
21
21
|
TV: "/discover/tv",
|
|
22
22
|
},
|
|
23
|
+
FIND: "/find",
|
|
23
24
|
CREDITS: {
|
|
24
25
|
DETAILS: "/credit",
|
|
25
26
|
},
|
|
@@ -37,6 +38,10 @@ export const ENDPOINTS = {
|
|
|
37
38
|
MOVIE_LIST: "/genre/movie/list",
|
|
38
39
|
TV_LIST: "/genre/tv/list",
|
|
39
40
|
},
|
|
41
|
+
KEYWORDS: {
|
|
42
|
+
DETAILS: "/keyword",
|
|
43
|
+
MOVIES: "/movies",
|
|
44
|
+
},
|
|
40
45
|
MOVIES: {
|
|
41
46
|
DETAILS: "/movie",
|
|
42
47
|
ALTERNATIVE_TITLES: "/alternative_titles",
|
|
@@ -92,4 +97,9 @@ export const ENDPOINTS = {
|
|
|
92
97
|
VIDEOS: "/videos",
|
|
93
98
|
WATCH_PROVIDERS: "/watch/providers",
|
|
94
99
|
},
|
|
100
|
+
WATCH_PROVIDERS: {
|
|
101
|
+
MOVIE: "/watch/providers/movie",
|
|
102
|
+
TV: "/watch/providers/tv",
|
|
103
|
+
REGIONS: "/watch/providers/regions",
|
|
104
|
+
},
|
|
95
105
|
};
|
package/dist/tmdb.d.ts
CHANGED
|
@@ -5,12 +5,15 @@ import { CreditsAPI } from "./endpoints/credits";
|
|
|
5
5
|
import { CollectionsAPI } from "./endpoints/collections";
|
|
6
6
|
import { ConfigurationAPI } from "./endpoints/configuration";
|
|
7
7
|
import { DiscoverAPI } from "./endpoints/discover";
|
|
8
|
+
import { FindAPI } from "./endpoints/find";
|
|
8
9
|
import { GenresAPI } from "./endpoints/genres";
|
|
10
|
+
import { KeywordsAPI } from "./endpoints/keywords";
|
|
9
11
|
import { MovieListsAPI } from "./endpoints/movie_lists";
|
|
10
12
|
import { MoviesAPI } from "./endpoints/movies";
|
|
11
13
|
import { SearchAPI } from "./endpoints/search";
|
|
12
14
|
import { TVSeriesAPI } from "./endpoints/tv_series";
|
|
13
15
|
import { TVSeriesListsAPI } from "./endpoints/tv_series_lists";
|
|
16
|
+
import { WatchProvidersAPI } from "./endpoints/watch_providers";
|
|
14
17
|
import { ImageAPI } from "./images/images";
|
|
15
18
|
import { TMDBOptions } from "./types/config";
|
|
16
19
|
export declare class TMDB {
|
|
@@ -22,14 +25,17 @@ export declare class TMDB {
|
|
|
22
25
|
images: ImageAPI;
|
|
23
26
|
configuration: ConfigurationAPI;
|
|
24
27
|
genres: GenresAPI;
|
|
28
|
+
keywords: KeywordsAPI;
|
|
25
29
|
tv_lists: TVSeriesListsAPI;
|
|
26
30
|
tv_series: TVSeriesAPI;
|
|
31
|
+
watch_providers: WatchProvidersAPI;
|
|
27
32
|
certifications: CertificationsAPI;
|
|
28
33
|
changes: ChangesAPI;
|
|
29
34
|
companies: CompaniesAPI;
|
|
30
35
|
credits: CreditsAPI;
|
|
31
36
|
collections: CollectionsAPI;
|
|
32
37
|
discover: DiscoverAPI;
|
|
38
|
+
find: FindAPI;
|
|
33
39
|
/**
|
|
34
40
|
* Creates a new TMDB instance.
|
|
35
41
|
* @param accessToken The TMDB API access token.
|
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,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,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;
|
|
1
|
+
{"version":3,"file":"tmdb.d.ts","sourceRoot":"","sources":["../src/tmdb.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAA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AAS,EAAE,YAAY,CAAC;IACxB,OAAO,EAAE,UAAU,CAAC;IACpB,WAAW,EAAE,cAAc,CAAC;IAC5B,QAAQ,EAAE,WAAW,CAAC;IACtB,IAAI,EAAE,OAAO,CAAC;IAGrB;;;;OAIG;gBACS,WAAW,EAAE,MAAM,EAAE,OAAO,GAAE,WAAgB;CAsB1D"}
|
package/dist/tmdb.js
CHANGED
|
@@ -7,12 +7,15 @@ import { CreditsAPI } from "./endpoints/credits";
|
|
|
7
7
|
import { CollectionsAPI } from "./endpoints/collections";
|
|
8
8
|
import { ConfigurationAPI } from "./endpoints/configuration";
|
|
9
9
|
import { DiscoverAPI } from "./endpoints/discover";
|
|
10
|
+
import { FindAPI } from "./endpoints/find";
|
|
10
11
|
import { GenresAPI } from "./endpoints/genres";
|
|
12
|
+
import { KeywordsAPI } from "./endpoints/keywords";
|
|
11
13
|
import { MovieListsAPI } from "./endpoints/movie_lists";
|
|
12
14
|
import { MoviesAPI } from "./endpoints/movies";
|
|
13
15
|
import { SearchAPI } from "./endpoints/search";
|
|
14
16
|
import { TVSeriesAPI } from "./endpoints/tv_series";
|
|
15
17
|
import { TVSeriesListsAPI } from "./endpoints/tv_series_lists";
|
|
18
|
+
import { WatchProvidersAPI } from "./endpoints/watch_providers";
|
|
16
19
|
import { Errors } from "./errors/messages";
|
|
17
20
|
import { ImageAPI } from "./images/images";
|
|
18
21
|
export class TMDB {
|
|
@@ -24,14 +27,17 @@ export class TMDB {
|
|
|
24
27
|
images;
|
|
25
28
|
configuration;
|
|
26
29
|
genres;
|
|
30
|
+
keywords;
|
|
27
31
|
tv_lists;
|
|
28
32
|
tv_series;
|
|
33
|
+
watch_providers;
|
|
29
34
|
certifications;
|
|
30
35
|
changes;
|
|
31
36
|
companies;
|
|
32
37
|
credits;
|
|
33
38
|
collections;
|
|
34
39
|
discover;
|
|
40
|
+
find;
|
|
35
41
|
// etc...
|
|
36
42
|
/**
|
|
37
43
|
* Creates a new TMDB instance.
|
|
@@ -49,13 +55,16 @@ export class TMDB {
|
|
|
49
55
|
this.images = new ImageAPI(this.options.images);
|
|
50
56
|
this.configuration = new ConfigurationAPI(this.client, this.options);
|
|
51
57
|
this.genres = new GenresAPI(this.client, this.options);
|
|
58
|
+
this.keywords = new KeywordsAPI(this.client, this.options);
|
|
52
59
|
this.tv_lists = new TVSeriesListsAPI(this.client, this.options);
|
|
53
60
|
this.tv_series = new TVSeriesAPI(this.client, this.options);
|
|
61
|
+
this.watch_providers = new WatchProvidersAPI(this.client, this.options);
|
|
54
62
|
this.certifications = new CertificationsAPI(this.client, this.options);
|
|
55
63
|
this.changes = new ChangesAPI(this.client, this.options);
|
|
56
64
|
this.companies = new CompaniesAPI(this.client, this.options);
|
|
57
65
|
this.credits = new CreditsAPI(this.client, this.options);
|
|
58
66
|
this.collections = new CollectionsAPI(this.client, this.options);
|
|
59
67
|
this.discover = new DiscoverAPI(this.client, this.options);
|
|
68
|
+
this.find = new FindAPI(this.client, this.options);
|
|
60
69
|
}
|
|
61
70
|
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { CountryISO3166_1 } from "../config";
|
|
2
|
+
import { Language } from "../config/languages";
|
|
3
|
+
import { LiteralUnion } from "../utility";
|
|
4
|
+
/**
|
|
5
|
+
* External source values accepted by TMDB's find-by-id endpoint.
|
|
6
|
+
* @reference https://developer.themoviedb.org/reference/find-by-id
|
|
7
|
+
*/
|
|
8
|
+
export type FindExternalSource = LiteralUnion<"imdb_id" | "tvdb_id" | "freebase_mid" | "freebase_id" | "tvrage_id" | "facebook_id" | "instagram_id" | "twitter_id">;
|
|
9
|
+
/**
|
|
10
|
+
* Parameters for TMDB's find-by-id endpoint.
|
|
11
|
+
* `external_id` is sent in the request path and `external_source` as a query param.
|
|
12
|
+
*/
|
|
13
|
+
export type FindByIDParams = {
|
|
14
|
+
external_id: string;
|
|
15
|
+
external_source: FindExternalSource;
|
|
16
|
+
language?: Language;
|
|
17
|
+
};
|
|
18
|
+
type FindMediaResultBase = {
|
|
19
|
+
adult: boolean;
|
|
20
|
+
backdrop_path: string | null;
|
|
21
|
+
id: number;
|
|
22
|
+
original_language: string;
|
|
23
|
+
overview: string;
|
|
24
|
+
poster_path: string | null;
|
|
25
|
+
popularity: number;
|
|
26
|
+
vote_average: number;
|
|
27
|
+
vote_count: number;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Movie item returned inside `movie_results`.
|
|
31
|
+
*/
|
|
32
|
+
export type FindMovieResultItem = FindMediaResultBase & {
|
|
33
|
+
media_type: "movie";
|
|
34
|
+
original_title: string;
|
|
35
|
+
release_date: string;
|
|
36
|
+
title: string;
|
|
37
|
+
video: boolean;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Person item returned inside `person_results`.
|
|
41
|
+
*/
|
|
42
|
+
export type FindPersonResultItem = {
|
|
43
|
+
adult: boolean;
|
|
44
|
+
gender: number | null;
|
|
45
|
+
id: number;
|
|
46
|
+
known_for_department: string;
|
|
47
|
+
media_type: "person";
|
|
48
|
+
name: string;
|
|
49
|
+
original_name: string;
|
|
50
|
+
popularity: number;
|
|
51
|
+
profile_path: string | null;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* TV series item returned inside `tv_results`.
|
|
55
|
+
*/
|
|
56
|
+
export type FindTVResultItem = FindMediaResultBase & {
|
|
57
|
+
media_type: "tv";
|
|
58
|
+
first_air_date: string;
|
|
59
|
+
name: string;
|
|
60
|
+
origin_country: CountryISO3166_1[];
|
|
61
|
+
original_name: string;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* TV episode item returned inside `tv_episode_results`.
|
|
65
|
+
*/
|
|
66
|
+
export type FindTVEpisodeResultItem = {
|
|
67
|
+
air_date: string;
|
|
68
|
+
episode_number: number;
|
|
69
|
+
id: number;
|
|
70
|
+
media_type: "tv_episode";
|
|
71
|
+
name: string;
|
|
72
|
+
overview: string;
|
|
73
|
+
production_code: string;
|
|
74
|
+
season_number: number;
|
|
75
|
+
show_id: number;
|
|
76
|
+
still_path: string | null;
|
|
77
|
+
vote_average: number;
|
|
78
|
+
vote_count: number;
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* TV season item returned inside `tv_season_results`.
|
|
82
|
+
*/
|
|
83
|
+
export type FindTVSeasonResultItem = {
|
|
84
|
+
air_date: string;
|
|
85
|
+
episode_count: number;
|
|
86
|
+
id: number;
|
|
87
|
+
media_type: "tv_season";
|
|
88
|
+
name: string;
|
|
89
|
+
overview: string;
|
|
90
|
+
poster_path: string | null;
|
|
91
|
+
season_number: number;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Response returned by TMDB's find-by-id endpoint.
|
|
95
|
+
*/
|
|
96
|
+
export type FindResults = {
|
|
97
|
+
movie_results: FindMovieResultItem[];
|
|
98
|
+
person_results: FindPersonResultItem[];
|
|
99
|
+
tv_results: FindTVResultItem[];
|
|
100
|
+
tv_episode_results: FindTVEpisodeResultItem[];
|
|
101
|
+
tv_season_results: FindTVSeasonResultItem[];
|
|
102
|
+
};
|
|
103
|
+
export {};
|
|
104
|
+
//# sourceMappingURL=find.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../src/types/other/find.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG,YAAY,CAC5C,SAAS,GAAG,SAAS,GAAG,cAAc,GAAG,aAAa,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,GAAG,YAAY,CACpH,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,kBAAkB,CA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,GAAG;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,YAAY,CAAC;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,WAAW,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACzB,aAAa,EAAE,mBAAmB,EAAE,CAAC;IACrC,cAAc,EAAE,oBAAoB,EAAE,CAAC;IACvC,UAAU,EAAE,gBAAgB,EAAE,CAAC;IAC/B,kBAAkB,EAAE,uBAAuB,EAAE,CAAC;IAC9C,iBAAiB,EAAE,sBAAsB,EAAE,CAAC;CAC5C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/other/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/other/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { TMDBQueryParams } from "../common";
|
|
2
|
+
/**
|
|
3
|
+
* Base params used by keyword endpoints.
|
|
4
|
+
*/
|
|
5
|
+
export type KeywordBaseParam = {
|
|
6
|
+
/** TMDB keyword identifier. */
|
|
7
|
+
keyword_id: number;
|
|
8
|
+
};
|
|
9
|
+
/**
|
|
10
|
+
* Parameters for fetching keyword details.
|
|
11
|
+
*/
|
|
12
|
+
export type KeywordDetailsParams = KeywordBaseParam;
|
|
13
|
+
/**
|
|
14
|
+
* Parameters for fetching movies associated with a keyword.
|
|
15
|
+
* @reference https://developer.themoviedb.org/reference/keyword-movies
|
|
16
|
+
*/
|
|
17
|
+
export type KeywordMoviesParams = KeywordBaseParam & Pick<TMDBQueryParams, "language" | "page"> & {
|
|
18
|
+
include_adult?: boolean;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=keywords.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"keywords.d.ts","sourceRoot":"","sources":["../../../src/types/other/keywords.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC9B,+BAA+B;IAC/B,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,gBAAgB,CAAC;AAEpD;;;GAGG;AACH,MAAM,MAAM,mBAAmB,GAAG,gBAAgB,GACjD,IAAI,CAAC,eAAe,EAAE,UAAU,GAAG,MAAM,CAAC,GAAG;IAC5C,aAAa,CAAC,EAAE,OAAO,CAAC;CACxB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { WithLanguage } from "../common";
|
|
2
|
+
import { WatchProviderItem } from "../common/media";
|
|
3
|
+
import { CountryISO3166_1 } from "../config";
|
|
4
|
+
import { ConfigurationCountry } from "../config/configuration";
|
|
5
|
+
/**
|
|
6
|
+
* Parameters supported by watch provider namespace endpoints.
|
|
7
|
+
*/
|
|
8
|
+
export type WatchProviderListParams = WithLanguage;
|
|
9
|
+
/**
|
|
10
|
+
* Parameters for listing the available watch provider regions.
|
|
11
|
+
*/
|
|
12
|
+
export type WatchProviderRegionsParams = WithLanguage;
|
|
13
|
+
/**
|
|
14
|
+
* Country-specific display priorities returned by top-level watch provider list endpoints.
|
|
15
|
+
*/
|
|
16
|
+
export type WatchProviderDisplayPriorities = Partial<Record<CountryISO3166_1, number>>;
|
|
17
|
+
/**
|
|
18
|
+
* A watch provider returned by top-level movie and TV provider list endpoints.
|
|
19
|
+
*/
|
|
20
|
+
export type WatchProviderListItem = WatchProviderItem & {
|
|
21
|
+
display_priorities: WatchProviderDisplayPriorities;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Response returned by movie and TV watch provider list endpoints.
|
|
25
|
+
*/
|
|
26
|
+
export type WatchProviderListResponse = {
|
|
27
|
+
results: WatchProviderListItem[];
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Response returned by the available regions endpoint.
|
|
31
|
+
*/
|
|
32
|
+
export type WatchProviderRegionsResponse = {
|
|
33
|
+
results: ConfigurationCountry[];
|
|
34
|
+
};
|
|
35
|
+
//# sourceMappingURL=watch_providers.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watch_providers.d.ts","sourceRoot":"","sources":["../../../src/types/other/watch_providers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,E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-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
}
|
|
2
|
+
"name": "@lorenzopant/tmdb",
|
|
3
|
+
"version": "1.10.0",
|
|
4
|
+
"description": "A completely type-safe The Movie Database (TMDB) API wrapper for typescript applications.",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"types": "dist/index.d.ts",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "git+https://github.com/lorenzopant/tmdb"
|
|
10
|
+
},
|
|
11
|
+
"homepage": "https://lorenzopant-tmdb-docs.vercel.app",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/lorenzopant/tmdb/issues"
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsc",
|
|
17
|
+
"dev": "tsc --watch",
|
|
18
|
+
"typecheck": "tsc --noEmit",
|
|
19
|
+
"test": "vitest",
|
|
20
|
+
"test:ui": "vitest --ui",
|
|
21
|
+
"test:coverage": "vitest --coverage",
|
|
22
|
+
"prepare": "husky",
|
|
23
|
+
"lint": "eslint .",
|
|
24
|
+
"release": "pnpm release:patch",
|
|
25
|
+
"release:patch": "pnpm version patch --git-tag-version && git push --follow-tags",
|
|
26
|
+
"release:minor": "pnpm version minor --git-tag-version && git push --follow-tags",
|
|
27
|
+
"release:major": "pnpm version major --git-tag-version && git push --follow-tags"
|
|
28
|
+
},
|
|
29
|
+
"author": "Lorenzo Pantano",
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"keywords": [
|
|
32
|
+
"tmdb",
|
|
33
|
+
"typescript",
|
|
34
|
+
"api",
|
|
35
|
+
"movies"
|
|
36
|
+
],
|
|
37
|
+
"packageManager": "pnpm@8.8.0",
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@eslint/compat": "^2.0.0",
|
|
40
|
+
"@eslint/eslintrc": "^3.3.1",
|
|
41
|
+
"@eslint/js": "^9.30.0",
|
|
42
|
+
"@types/node": "^22.15.2",
|
|
43
|
+
"@typescript-eslint/eslint-plugin": "^8.35.0",
|
|
44
|
+
"@typescript-eslint/parser": "^8.35.0",
|
|
45
|
+
"@vitest/coverage-v8": "^4.0.9",
|
|
46
|
+
"@vitest/ui": "^4.0.10",
|
|
47
|
+
"dotenv": "^16.5.0",
|
|
48
|
+
"eslint": "^9.30.0",
|
|
49
|
+
"eslint-config-prettier": "^10.1.5",
|
|
50
|
+
"eslint-plugin-import": "^2.32.0",
|
|
51
|
+
"husky": "^9.1.7",
|
|
52
|
+
"release-it": "^19.0.3",
|
|
53
|
+
"release-it-pnpm": "^4.6.6",
|
|
54
|
+
"ts-morph": "^27.0.2",
|
|
55
|
+
"tsx": "^4.21.0",
|
|
56
|
+
"typescript": "^5.8.3",
|
|
57
|
+
"typescript-eslint": "^8.35.0",
|
|
58
|
+
"vite": "^7.0.0",
|
|
59
|
+
"vitest": "^4.0.9"
|
|
60
|
+
},
|
|
61
|
+
"exports": {
|
|
62
|
+
".": {
|
|
63
|
+
"import": "./dist/index.js",
|
|
64
|
+
"types": "./dist/index.d.ts"
|
|
65
|
+
},
|
|
66
|
+
"./types": {
|
|
67
|
+
"types": "./dist/types/index.d.ts",
|
|
68
|
+
"default": "./dist/types/index.js"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 @lorenzopant
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|