@tdanks2000/tmdb-wrapper 1.0.0 → 1.0.2
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/README.md +11 -0
- package/dist/@types/endpoints/configuration.d.ts +1 -0
- package/dist/@types/endpoints/configuration.d.ts.map +1 -1
- package/dist/@types/endpoints/discover.d.ts +53 -0
- package/dist/@types/endpoints/discover.d.ts.map +1 -1
- package/dist/@types/endpoints/genre.d.ts +7 -0
- package/dist/@types/endpoints/genre.d.ts.map +1 -0
- package/dist/@types/endpoints/genre.js +2 -0
- package/dist/@types/endpoints/index.d.ts +1 -0
- package/dist/@types/endpoints/index.d.ts.map +1 -1
- package/dist/@types/endpoints/index.js +1 -0
- package/dist/@types/endpoints/movies.d.ts +7 -1
- package/dist/@types/endpoints/movies.d.ts.map +1 -1
- package/dist/@types/endpoints/search.d.ts +24 -1
- package/dist/@types/endpoints/search.d.ts.map +1 -1
- package/dist/@types/endpoints/tvEpisode.d.ts +13 -1
- package/dist/@types/endpoints/tvEpisode.d.ts.map +1 -1
- package/dist/@types/endpoints/tvSeasons.d.ts +13 -1
- package/dist/@types/endpoints/tvSeasons.d.ts.map +1 -1
- package/dist/@types/models/baseEndpoint.d.ts +1 -1
- package/dist/@types/models/baseEndpoint.js +1 -1
- package/dist/endpoints/account.d.ts +12 -1
- package/dist/endpoints/account.d.ts.map +1 -1
- package/dist/endpoints/account.js +12 -1
- package/dist/endpoints/certification.d.ts +16 -1
- package/dist/endpoints/certification.d.ts.map +1 -1
- package/dist/endpoints/certification.js +16 -1
- package/dist/endpoints/changes.d.ts +23 -1
- package/dist/endpoints/changes.d.ts.map +1 -1
- package/dist/endpoints/changes.js +26 -4
- package/dist/endpoints/collections.d.ts +26 -1
- package/dist/endpoints/collections.d.ts.map +1 -1
- package/dist/endpoints/collections.js +26 -1
- package/dist/endpoints/companies.d.ts +23 -1
- package/dist/endpoints/companies.d.ts.map +1 -1
- package/dist/endpoints/companies.js +23 -1
- package/dist/endpoints/configuration.d.ts +12 -1
- package/dist/endpoints/configuration.d.ts.map +1 -1
- package/dist/endpoints/configuration.js +12 -1
- package/dist/endpoints/credits.d.ts +13 -1
- package/dist/endpoints/credits.d.ts.map +1 -1
- package/dist/endpoints/credits.js +13 -1
- package/dist/endpoints/discover.d.ts +18 -55
- package/dist/endpoints/discover.d.ts.map +1 -1
- package/dist/endpoints/discover.js +18 -1
- package/dist/endpoints/find.d.ts +14 -1
- package/dist/endpoints/find.d.ts.map +1 -1
- package/dist/endpoints/find.js +14 -1
- package/dist/endpoints/genre.d.ts +18 -7
- package/dist/endpoints/genre.d.ts.map +1 -1
- package/dist/endpoints/genre.js +18 -1
- package/dist/endpoints/keywords.d.ts +19 -1
- package/dist/endpoints/keywords.d.ts.map +1 -1
- package/dist/endpoints/keywords.js +22 -4
- package/dist/endpoints/movies.d.ts +115 -9
- package/dist/endpoints/movies.d.ts.map +1 -1
- package/dist/endpoints/movies.js +115 -3
- package/dist/endpoints/networks.d.ts +23 -1
- package/dist/endpoints/networks.d.ts.map +1 -1
- package/dist/endpoints/networks.js +23 -1
- package/dist/endpoints/people.d.ts +69 -1
- package/dist/endpoints/people.d.ts.map +1 -1
- package/dist/endpoints/people.js +69 -1
- package/dist/endpoints/review.d.ts +13 -1
- package/dist/endpoints/review.d.ts.map +1 -1
- package/dist/endpoints/review.js +13 -1
- package/dist/endpoints/search.d.ts +43 -24
- package/dist/endpoints/search.d.ts.map +1 -1
- package/dist/endpoints/search.js +43 -1
- package/dist/endpoints/trending.d.ts +17 -2
- package/dist/endpoints/trending.d.ts.map +1 -1
- package/dist/endpoints/trending.js +16 -1
- package/dist/endpoints/tvEpisodes.d.ts +48 -11
- package/dist/endpoints/tvEpisodes.d.ts.map +1 -1
- package/dist/endpoints/tvEpisodes.js +50 -1
- package/dist/endpoints/tvSeasons.d.ts +56 -11
- package/dist/endpoints/tvSeasons.d.ts.map +1 -1
- package/dist/endpoints/tvSeasons.js +58 -1
- package/dist/endpoints/tvShows.d.ts +135 -4
- package/dist/endpoints/tvShows.d.ts.map +1 -1
- package/dist/endpoints/tvShows.js +134 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +4 -3
- package/src/@types/endpoints/configuration.ts +1 -0
- package/src/@types/endpoints/discover.ts +56 -0
- package/src/@types/endpoints/genre.ts +3 -0
- package/src/@types/endpoints/index.ts +1 -0
- package/src/@types/endpoints/movies.ts +8 -1
- package/src/@types/endpoints/search.ts +30 -1
- package/src/@types/endpoints/tvEpisode.ts +15 -1
- package/src/@types/endpoints/tvSeasons.ts +15 -1
- package/src/endpoints/account.ts +11 -0
- package/src/endpoints/certification.ts +15 -0
- package/src/endpoints/changes.ts +25 -3
- package/src/endpoints/collections.ts +25 -0
- package/src/endpoints/companies.ts +22 -0
- package/src/endpoints/configuration.ts +11 -0
- package/src/endpoints/credits.ts +12 -0
- package/src/endpoints/discover.ts +24 -57
- package/src/endpoints/find.ts +13 -0
- package/src/endpoints/genre.ts +18 -5
- package/src/endpoints/keywords.ts +21 -3
- package/src/endpoints/movies.ts +114 -8
- package/src/endpoints/networks.ts +22 -0
- package/src/endpoints/people.ts +68 -0
- package/src/endpoints/review.ts +12 -0
- package/src/endpoints/search.ts +47 -32
- package/src/endpoints/trending.ts +17 -2
- package/src/endpoints/tvEpisodes.ts +50 -13
- package/src/endpoints/tvSeasons.ts +58 -13
- package/src/endpoints/tvShows.ts +138 -3
package/README.md
CHANGED
|
@@ -2,6 +2,17 @@
|
|
|
2
2
|
TMDB Api Wrapper
|
|
3
3
|
</h1>
|
|
4
4
|
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="https://www.npmjs.com/package/@tdanks2000/tmdb-wrapper">
|
|
7
|
+
<img alt="NPM Version" src="https://img.shields.io/npm/v/%40tdanks2000%2Ftmdb-wrapper">
|
|
8
|
+
</a>
|
|
9
|
+
<a href="https://github.com/tdanks2000/tmdb-wrapper/blob/master/LICENSE">
|
|
10
|
+
<img src="https://img.shields.io/npm/l/@tdanks2000/tmdb-wrapper" alt="GitHub">
|
|
11
|
+
</a>
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+
<br />
|
|
15
|
+
|
|
5
16
|
The TMDB Api Wrapper simplifies the process of making API requests to The Movie Database (TMDb), a comprehensive database for movies and TV shows. It encapsulates functionality related to various API endpoints, such as account, certifications, changes, collections, configuration, credits, discover, find, genres, keywords, movies, people, reviews, search, trending, TV episodes, TV seasons, and TV shows. With this wrapper, developers can quickly integrate TMDB functionality into their TypeScript projects.
|
|
6
17
|
|
|
7
18
|
## Table of Contents
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../src/@types/endpoints/configuration.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,kBAAkB,CAAC;IAC3B,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B;AAED,0BAAkB,aAAa;IAC7B,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,QAAQ,aAAa;CACtB;AAED,0BAAkB,SAAS;IACzB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAED,0BAAkB,WAAW;IAC3B,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;I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;IACb,KAAK,UAAU;IACf,MAAM,WAAW;CAClB"}
|
|
1
|
+
{"version":3,"file":"configuration.d.ts","sourceRoot":"","sources":["../../../src/@types/endpoints/configuration.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,MAAM,CAAC;IACxB,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,kBAAkB,CAAC;IAC3B,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B;AAED,0BAAkB,aAAa;IAC7B,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,KAAK,UAAU;IACf,QAAQ,aAAa;CACtB;AAED,0BAAkB,SAAS;IACzB,GAAG,QAAQ;IACX,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAED,0BAAkB,WAAW;IAC3B,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAED,0BAAkB,YAAY;IAC5B,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAED,0BAAkB,UAAU;IAC1B,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,IAAI,SAAS;IACb,QAAQ,aAAa;CACtB;AAED,0BAAkB,UAAU;IAC1B,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,aAAa,kBAAkB;IAC/B,kBAAkB,uBAAuB;IACzC,SAAS,cAAc;IACvB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,cAAc,mBAAmB;IACjC,eAAe,oBAAoB;IACnC,UAAU,eAAe;IACzB,IAAI,SAAS;IACb,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,cAAc,mBAAmB;IACjC,gBAAgB,qBAAqB;IACrC,WAAW,gBAAgB;IAC3B,YAAY,iBAAiB;IAC7B,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,WAAW,gBAAgB;IAC3B,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,cAAc,mBAAmB;IACjC,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IACjC,QAAQ,aAAa;IACrB,KAAK,UAAU;IACf,cAAc,mBAAmB;IACjC,aAAa,kBAAkB;IAC/B,eAAe,oBAAoB;IACnC,oBAAoB,yBAAyB;IAC7C,oBAAoB,yBAAyB;IAC7C,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,aAAa,kBAAkB;IAC/B,cAAc,mBAAmB;IACjC,gBAAgB,qBAAqB;IACrC,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,YAAY,iBAAiB;IAC7B,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,IAAI,SAAS;IACb,KAAK,UAAU;IACf,MAAM,WAAW;CAClB"}
|
|
@@ -12,4 +12,57 @@ export interface TvShowDiscoverResult {
|
|
|
12
12
|
total_results: number;
|
|
13
13
|
total_pages: number;
|
|
14
14
|
}
|
|
15
|
+
export interface DiscoverQueryOptions {
|
|
16
|
+
language?: string;
|
|
17
|
+
sort_by?: SortOption;
|
|
18
|
+
page?: number;
|
|
19
|
+
'vote_average.gte'?: number;
|
|
20
|
+
'vote_count.gte'?: number;
|
|
21
|
+
'vote_count.lte'?: number;
|
|
22
|
+
'vote_average.lte'?: number;
|
|
23
|
+
with_watch_providers?: string;
|
|
24
|
+
watch_region?: string;
|
|
25
|
+
without_companies?: string;
|
|
26
|
+
with_watch_monetization_types?: 'flatrate' | 'free' | 'ads' | 'rent' | 'buy';
|
|
27
|
+
'with_runtime.gte'?: number;
|
|
28
|
+
'with_runtime.lte'?: number;
|
|
29
|
+
with_genres?: string;
|
|
30
|
+
without_genres?: string;
|
|
31
|
+
with_original_language?: string;
|
|
32
|
+
without_keywords?: string;
|
|
33
|
+
with_keywords?: string;
|
|
34
|
+
with_companies?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface MovieQueryOptions extends DiscoverQueryOptions {
|
|
37
|
+
region?: string;
|
|
38
|
+
certification_country?: string;
|
|
39
|
+
certification?: string;
|
|
40
|
+
'certification.lte'?: string;
|
|
41
|
+
'certification.gte'?: string;
|
|
42
|
+
include_adult?: boolean;
|
|
43
|
+
include_video?: boolean;
|
|
44
|
+
primary_release_year?: number;
|
|
45
|
+
'primary_release_date.gte'?: string;
|
|
46
|
+
'primary_release_date.lte'?: string;
|
|
47
|
+
'release_date.gte'?: string;
|
|
48
|
+
'release_date.lte'?: string;
|
|
49
|
+
with_release_type?: string;
|
|
50
|
+
year?: number;
|
|
51
|
+
with_cast?: string;
|
|
52
|
+
with_crew?: string;
|
|
53
|
+
with_people?: string;
|
|
54
|
+
}
|
|
55
|
+
export interface TvShowQueryOptions extends DiscoverQueryOptions {
|
|
56
|
+
'air_date.gte'?: string;
|
|
57
|
+
'air_date.lte'?: string;
|
|
58
|
+
'first_air_date.gte'?: string;
|
|
59
|
+
'first_air_date.lte'?: string;
|
|
60
|
+
first_air_date_year?: number;
|
|
61
|
+
timezone?: string;
|
|
62
|
+
with_networks?: string;
|
|
63
|
+
include_null_first_air_dates?: boolean;
|
|
64
|
+
screened_theatrically?: boolean;
|
|
65
|
+
with_status?: string;
|
|
66
|
+
with_type?: string;
|
|
67
|
+
}
|
|
15
68
|
//# sourceMappingURL=discover.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../../../src/@types/endpoints/discover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,IAAI,CAAC;AAE/B,MAAM,MAAM,UAAU,GAClB,gBAAgB,GAChB,iBAAiB,GACjB,kBAAkB,GAClB,mBAAmB,GACnB,aAAa,GACb,cAAc,GACd,0BAA0B,GAC1B,2BAA2B,GAC3B,oBAAoB,GACpB,qBAAqB,GACrB,kBAAkB,GAClB,mBAAmB,GACnB,gBAAgB,GAChB,iBAAiB,CAAC;AAEtB,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,KAAK,EAAE,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,EAAE,EAAE,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
|
1
|
+
{"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../../../src/@types/endpoints/discover.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,EAAE,EAAE,MAAM,IAAI,CAAC;AAE/B,MAAM,MAAM,UAAU,GAClB,gBAAgB,GAChB,iBAAiB,GACjB,kBAAkB,GAClB,mBAAmB,GACnB,aAAa,GACb,cAAc,GACd,0BAA0B,GAC1B,2BAA2B,GAC3B,oBAAoB,GACpB,qBAAqB,GACrB,kBAAkB,GAClB,mBAAmB,GACnB,gBAAgB,GAChB,iBAAiB,CAAC;AAEtB,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,KAAK,EAAE,CAAC;IACjB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,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C,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,0BAA0B,CAAC,EAAE,MAAM,CAAC;IACpC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,kBAAmB,SAAQ,oBAAoB;IAC9D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,4BAA4B,CAAC,EAAE,OAAO,CAAC;IACvC,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"genre.d.ts","sourceRoot":"","sources":["../../../src/@types/endpoints/genre.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,MAAM,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CAC7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/@types/endpoints/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/@types/endpoints/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC"}
|
|
@@ -23,6 +23,7 @@ __exportStar(require("./configuration"), exports);
|
|
|
23
23
|
__exportStar(require("./credits"), exports);
|
|
24
24
|
__exportStar(require("./discover"), exports);
|
|
25
25
|
__exportStar(require("./find"), exports);
|
|
26
|
+
__exportStar(require("./genre"), exports);
|
|
26
27
|
__exportStar(require("./keywords"), exports);
|
|
27
28
|
__exportStar(require("./movies"), exports);
|
|
28
29
|
__exportStar(require("./networks"), exports);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Genre, Movie, ProductionCompany, ProductionCountry, SpokenLanguage } from '..';
|
|
1
|
+
import { Genre, LanguageOption, Movie, ProductionCompany, ProductionCountry, SpokenLanguage } from '..';
|
|
2
2
|
export interface BelongsToCollection {
|
|
3
3
|
id: number;
|
|
4
4
|
name: string;
|
|
@@ -141,4 +141,10 @@ export type MovieChangeValue = string | {
|
|
|
141
141
|
cast_id: number;
|
|
142
142
|
credit_id: string;
|
|
143
143
|
} | unknown;
|
|
144
|
+
export interface MoviesImageSearchOptions extends LanguageOption {
|
|
145
|
+
/**
|
|
146
|
+
* a list of ISO-639-1 values to query
|
|
147
|
+
*/
|
|
148
|
+
include_image_language?: string[];
|
|
149
|
+
}
|
|
144
150
|
//# sourceMappingURL=movies.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"movies.d.ts","sourceRoot":"","sources":["../../../src/@types/endpoints/movies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"movies.d.ts","sourceRoot":"","sources":["../../../src/@types/endpoints/movies.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAExG,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAA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EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;CACnB,GACD,OAAO,CAAC;AAEZ,MAAM,WAAW,wBAAyB,SAAQ,cAAc;IAC9D;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;CACnC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MovieWithMediaType, PersonWithMediaType, TVWithMediaType } from '..';
|
|
1
|
+
import { LanguageOption, MovieWithMediaType, PageOption, PersonWithMediaType, RegionOption, TVWithMediaType } from '..';
|
|
2
2
|
export interface Search<T> {
|
|
3
3
|
page: number;
|
|
4
4
|
results: T[];
|
|
@@ -6,4 +6,27 @@ export interface Search<T> {
|
|
|
6
6
|
total_results: number;
|
|
7
7
|
}
|
|
8
8
|
export type MultiSearchResult = MovieWithMediaType | TVWithMediaType | PersonWithMediaType;
|
|
9
|
+
export interface SearchOptions {
|
|
10
|
+
query: string;
|
|
11
|
+
page?: number;
|
|
12
|
+
}
|
|
13
|
+
export interface MovieSearchOptions extends SearchOptions, LanguageOption, PageOption, RegionOption {
|
|
14
|
+
include_adult?: boolean;
|
|
15
|
+
year?: number;
|
|
16
|
+
primary_release_year?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface CollectionSearchOptions extends SearchOptions, LanguageOption, PageOption, RegionOption {
|
|
19
|
+
include_adult?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface TvSearchOptions extends SearchOptions, LanguageOption, PageOption {
|
|
22
|
+
include_adult?: boolean;
|
|
23
|
+
year?: number;
|
|
24
|
+
first_air_date_year?: number;
|
|
25
|
+
}
|
|
26
|
+
export interface PeopleSearchOptions extends SearchOptions, LanguageOption, PageOption {
|
|
27
|
+
include_adult?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export interface MultiSearchOptions extends SearchOptions, LanguageOption, PageOption {
|
|
30
|
+
include_adult?: boolean;
|
|
31
|
+
}
|
|
9
32
|
//# sourceMappingURL=search.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/@types/endpoints/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../../src/@types/endpoints/search.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,UAAU,EAAE,mBAAmB,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,IAAI,CAAC;AAExH,MAAM,WAAW,MAAM,CAAC,CAAC;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,CAAC,EAAE,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,iBAAiB,GAAG,kBAAkB,GAAG,eAAe,GAAG,mBAAmB,CAAC;AAE3F,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,kBAAmB,SAAQ,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,YAAY;IACjG,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B;AAED,MAAM,WAAW,uBAAwB,SAAQ,aAAa,EAAE,cAAc,EAAE,UAAU,EAAE,YAAY;IACtG,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,eAAgB,SAAQ,aAAa,EAAE,cAAc,EAAE,UAAU;IAChF,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mBAAmB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,mBAAoB,SAAQ,aAAa,EAAE,cAAc,EAAE,UAAU;IACpF,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,kBAAmB,SAAQ,aAAa,EAAE,cAAc,EAAE,UAAU;IACnF,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Credits, Crew } from '..';
|
|
1
|
+
import { Credits, Crew, LanguageOption } from '..';
|
|
2
2
|
export interface EpisodeSelection {
|
|
3
3
|
tvShowID: number;
|
|
4
4
|
seasonNumber: number;
|
|
@@ -50,4 +50,16 @@ export interface TvEpisodeTranslations {
|
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
export type TvEpisodeChangeValue = string | unknown;
|
|
53
|
+
export interface TvEpisodeImageSearchOptions extends LanguageOption {
|
|
54
|
+
/**
|
|
55
|
+
* a list of ISO-639-1 values to query
|
|
56
|
+
*/
|
|
57
|
+
include_image_language?: string[];
|
|
58
|
+
}
|
|
59
|
+
export interface TvEpisodeVideoSearchOptions extends LanguageOption {
|
|
60
|
+
/**
|
|
61
|
+
* a list of ISO-639-1 values to query
|
|
62
|
+
*/
|
|
63
|
+
include_video_language?: string[];
|
|
64
|
+
}
|
|
53
65
|
//# sourceMappingURL=tvEpisode.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tvEpisode.d.ts","sourceRoot":"","sources":["../../../src/@types/endpoints/tvEpisode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"tvEpisode.d.ts","sourceRoot":"","sources":["../../../src/@types/endpoints/tvEpisode.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAEnD,MAAM,WAAW,gBAAgB;IAC/B,QAA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AI,EAAE,MAAM,CAAC;YACb,QAAQ,EAAE,MAAM,CAAC;SAClB,CAAC;KACH,CAAC;CACH;AAED,MAAM,MAAM,oBAAoB,GAAG,MAAM,GAAG,OAAO,CAAC;AAEpD,MAAM,WAAW,2BAA4B,SAAQ,cAAc;IACjE;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,2BAA4B,SAAQ,cAAc;IACjE;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;CACnC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Episode } from '..';
|
|
1
|
+
import { Episode, LanguageOption } from '..';
|
|
2
2
|
export interface SeasonSelection {
|
|
3
3
|
tvShowID: number;
|
|
4
4
|
seasonNumber: number;
|
|
@@ -16,4 +16,16 @@ export type TvSeasonChangeValue = string | {
|
|
|
16
16
|
episode_id: number;
|
|
17
17
|
episode_number: number;
|
|
18
18
|
};
|
|
19
|
+
export interface TvSeasonImageSearchOptions extends LanguageOption {
|
|
20
|
+
/**
|
|
21
|
+
* a list of ISO-639-1 values to query
|
|
22
|
+
*/
|
|
23
|
+
include_image_language?: string[];
|
|
24
|
+
}
|
|
25
|
+
export interface TvSeasonVideoSearchOptions extends LanguageOption {
|
|
26
|
+
/**
|
|
27
|
+
* a list of ISO-639-1 values to query
|
|
28
|
+
*/
|
|
29
|
+
include_video_language?: string[];
|
|
30
|
+
}
|
|
19
31
|
//# sourceMappingURL=tvSeasons.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tvSeasons.d.ts","sourceRoot":"","sources":["../../../src/@types/endpoints/tvSeasons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"tvSeasons.d.ts","sourceRoot":"","sources":["../../../src/@types/endpoints/tvSeasons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,IAAI,CAAC;AAE7C,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,mBAAmB,GAC3B,MAAM,GACN;IACE,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEN,MAAM,WAAW,0BAA2B,SAAQ,cAAc;IAChE;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;CACnC;AAED,MAAM,WAAW,0BAA2B,SAAQ,cAAc;IAChE;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,EAAE,CAAC;CACnC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.BaseEndpoint = void 0;
|
|
4
|
-
const utils_1 = require("
|
|
4
|
+
const utils_1 = require("../../utils");
|
|
5
5
|
class BaseEndpoint {
|
|
6
6
|
constructor(access_token) {
|
|
7
7
|
this.access_token = access_token;
|
|
@@ -1,6 +1,17 @@
|
|
|
1
|
-
import { AccountDetails, BaseEndpoint } from '
|
|
1
|
+
import { AccountDetails, BaseEndpoint } from '../@types';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an endpoint for retrieving account details.
|
|
4
|
+
*/
|
|
2
5
|
export declare class AccountEndpoint extends BaseEndpoint {
|
|
6
|
+
/**
|
|
7
|
+
* Constructs a new AccountEndpoint instance.
|
|
8
|
+
* @param {string} access_token - The access token used for authentication.
|
|
9
|
+
*/
|
|
3
10
|
constructor(access_token: string);
|
|
11
|
+
/**
|
|
12
|
+
* Retrieves account details asynchronously.
|
|
13
|
+
* @returns {Promise<AccountDetails>} A Promise that resolves with the account details.
|
|
14
|
+
*/
|
|
4
15
|
details(): Promise<AccountDetails>;
|
|
5
16
|
}
|
|
6
17
|
//# sourceMappingURL=account.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/endpoints/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExD,qBAAa,eAAgB,SAAQ,YAAY;
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../src/endpoints/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExD;;GAEG;AACH,qBAAa,eAAgB,SAAQ,YAAY;IAC/C;;;OAGG;gBACS,YAAY,EAAE,MAAM;IAIhC;;;OAGG;IACG,OAAO,IAAI,OAAO,CAAC,cAAc,CAAC;CAGzC"}
|
|
@@ -10,11 +10,22 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.AccountEndpoint = void 0;
|
|
13
|
-
const _types_1 = require("
|
|
13
|
+
const _types_1 = require("../@types");
|
|
14
|
+
/**
|
|
15
|
+
* Represents an endpoint for retrieving account details.
|
|
16
|
+
*/
|
|
14
17
|
class AccountEndpoint extends _types_1.BaseEndpoint {
|
|
18
|
+
/**
|
|
19
|
+
* Constructs a new AccountEndpoint instance.
|
|
20
|
+
* @param {string} access_token - The access token used for authentication.
|
|
21
|
+
*/
|
|
15
22
|
constructor(access_token) {
|
|
16
23
|
super(access_token);
|
|
17
24
|
}
|
|
25
|
+
/**
|
|
26
|
+
* Retrieves account details asynchronously.
|
|
27
|
+
* @returns {Promise<AccountDetails>} A Promise that resolves with the account details.
|
|
28
|
+
*/
|
|
18
29
|
details() {
|
|
19
30
|
return __awaiter(this, void 0, void 0, function* () {
|
|
20
31
|
return yield this.api.get('/account');
|
|
@@ -1,8 +1,23 @@
|
|
|
1
|
-
import { BaseEndpoint, Certifications } from '
|
|
1
|
+
import { BaseEndpoint, Certifications } from '../@types';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an endpoint for retrieving certifications for movies and TV shows.
|
|
4
|
+
*/
|
|
2
5
|
export declare class CertificationEndpoint extends BaseEndpoint {
|
|
3
6
|
protected readonly access_token: string;
|
|
7
|
+
/**
|
|
8
|
+
* Constructs a new CertificationEndpoint instance.
|
|
9
|
+
* @param {string} access_token - The access token used for authentication.
|
|
10
|
+
*/
|
|
4
11
|
constructor(access_token: string);
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves certifications for movies asynchronously.
|
|
14
|
+
* @returns {Promise<Certifications>} A Promise that resolves with the certifications for movies.
|
|
15
|
+
*/
|
|
5
16
|
movies(): Promise<Certifications>;
|
|
17
|
+
/**
|
|
18
|
+
* Retrieves certifications for TV shows asynchronously.
|
|
19
|
+
* @returns {Promise<Certifications>} A Promise that resolves with the certifications for TV shows.
|
|
20
|
+
*/
|
|
6
21
|
tv(): Promise<Certifications>;
|
|
7
22
|
}
|
|
8
23
|
//# sourceMappingURL=certification.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"certification.d.ts","sourceRoot":"","sources":["../../src/endpoints/certification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAExD,qBAAa,qBAAsB,SAAQ,YAAY;
|
|
1
|
+
{"version":3,"file":"certification.d.ts","sourceRoot":"","sources":["../../src/endpoints/certification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAExD;;GAEG;AACH,qBAAa,qBAAsB,SAAQ,YAAY;IAKzC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM;IAJnD;;;OAGG;gBAC4B,YAAY,EAAE,MAAM;IAInD;;;OAGG;IACG,MAAM,IAAI,OAAO,CAAC,cAAc,CAAC;IAIvC;;;OAGG;IACG,EAAE,IAAI,OAAO,CAAC,cAAc,CAAC;CAGpC"}
|
|
@@ -10,17 +10,32 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CertificationEndpoint = void 0;
|
|
13
|
-
const _types_1 = require("
|
|
13
|
+
const _types_1 = require("../@types");
|
|
14
|
+
/**
|
|
15
|
+
* Represents an endpoint for retrieving certifications for movies and TV shows.
|
|
16
|
+
*/
|
|
14
17
|
class CertificationEndpoint extends _types_1.BaseEndpoint {
|
|
18
|
+
/**
|
|
19
|
+
* Constructs a new CertificationEndpoint instance.
|
|
20
|
+
* @param {string} access_token - The access token used for authentication.
|
|
21
|
+
*/
|
|
15
22
|
constructor(access_token) {
|
|
16
23
|
super(access_token);
|
|
17
24
|
this.access_token = access_token;
|
|
18
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves certifications for movies asynchronously.
|
|
28
|
+
* @returns {Promise<Certifications>} A Promise that resolves with the certifications for movies.
|
|
29
|
+
*/
|
|
19
30
|
movies() {
|
|
20
31
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
32
|
return yield this.api.get('/certification/movie/list');
|
|
22
33
|
});
|
|
23
34
|
}
|
|
35
|
+
/**
|
|
36
|
+
* Retrieves certifications for TV shows asynchronously.
|
|
37
|
+
* @returns {Promise<Certifications>} A Promise that resolves with the certifications for TV shows.
|
|
38
|
+
*/
|
|
24
39
|
tv() {
|
|
25
40
|
return __awaiter(this, void 0, void 0, function* () {
|
|
26
41
|
return yield this.api.get('/certification/tv/list');
|
|
@@ -1,9 +1,31 @@
|
|
|
1
|
-
import { BaseEndpoint, ChangeOption, MediaChanges } from '
|
|
1
|
+
import { BaseEndpoint, ChangeOption, MediaChanges } from '../@types';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an endpoint for retrieving changes in movies, TV shows, and persons.
|
|
4
|
+
*/
|
|
2
5
|
export declare class ChangeEndpoint extends BaseEndpoint {
|
|
3
6
|
protected readonly access_token: string;
|
|
7
|
+
/**
|
|
8
|
+
* Constructs a new ChangeEndpoint instance.
|
|
9
|
+
* @param {string} access_token - The access token used for authentication.
|
|
10
|
+
*/
|
|
4
11
|
constructor(access_token: string);
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves changes in movies asynchronously.
|
|
14
|
+
* @param {ChangeOption} [options] - Optional parameters for filtering the changes.
|
|
15
|
+
* @returns {Promise<MediaChanges>} A Promise that resolves with the changes in movies.
|
|
16
|
+
*/
|
|
5
17
|
movies(options?: ChangeOption): Promise<MediaChanges>;
|
|
18
|
+
/**
|
|
19
|
+
* Retrieves changes in TV shows asynchronously.
|
|
20
|
+
* @param {ChangeOption} [options] - Optional parameters for filtering the changes.
|
|
21
|
+
* @returns {Promise<MediaChanges>} A Promise that resolves with the changes in TV shows.
|
|
22
|
+
*/
|
|
6
23
|
tv(options?: ChangeOption): Promise<MediaChanges>;
|
|
24
|
+
/**
|
|
25
|
+
* Retrieves changes related to persons asynchronously.
|
|
26
|
+
* @param {ChangeOption} [options] - Optional parameters for filtering the changes.
|
|
27
|
+
* @returns {Promise<MediaChanges>} A Promise that resolves with the changes related to persons.
|
|
28
|
+
*/
|
|
7
29
|
person(options?: ChangeOption): Promise<MediaChanges>;
|
|
8
30
|
}
|
|
9
31
|
//# sourceMappingURL=changes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changes.d.ts","sourceRoot":"","sources":["../../src/endpoints/changes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAEpE,qBAAa,cAAe,SAAQ,YAAY;
|
|
1
|
+
{"version":3,"file":"changes.d.ts","sourceRoot":"","sources":["../../src/endpoints/changes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAEpE;;GAEG;AACH,qBAAa,cAAe,SAAQ,YAAY;IAKlC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM;IAJnD;;;OAGG;gBAC4B,YAAY,EAAE,MAAM;IAInD;;;;OAIG;IACG,MAAM,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAI3D;;;;OAIG;IACG,EAAE,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;IAIvD;;;;OAIG;IACG,MAAM,CAAC,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC;CAG5D"}
|
|
@@ -10,25 +10,47 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.ChangeEndpoint = void 0;
|
|
13
|
-
const _types_1 = require("
|
|
13
|
+
const _types_1 = require("../@types");
|
|
14
|
+
/**
|
|
15
|
+
* Represents an endpoint for retrieving changes in movies, TV shows, and persons.
|
|
16
|
+
*/
|
|
14
17
|
class ChangeEndpoint extends _types_1.BaseEndpoint {
|
|
18
|
+
/**
|
|
19
|
+
* Constructs a new ChangeEndpoint instance.
|
|
20
|
+
* @param {string} access_token - The access token used for authentication.
|
|
21
|
+
*/
|
|
15
22
|
constructor(access_token) {
|
|
16
23
|
super(access_token);
|
|
17
24
|
this.access_token = access_token;
|
|
18
25
|
}
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves changes in movies asynchronously.
|
|
28
|
+
* @param {ChangeOption} [options] - Optional parameters for filtering the changes.
|
|
29
|
+
* @returns {Promise<MediaChanges>} A Promise that resolves with the changes in movies.
|
|
30
|
+
*/
|
|
19
31
|
movies(options) {
|
|
20
32
|
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
-
return yield this.api.get(
|
|
33
|
+
return yield this.api.get('/movie/changes', options);
|
|
22
34
|
});
|
|
23
35
|
}
|
|
36
|
+
/**
|
|
37
|
+
* Retrieves changes in TV shows asynchronously.
|
|
38
|
+
* @param {ChangeOption} [options] - Optional parameters for filtering the changes.
|
|
39
|
+
* @returns {Promise<MediaChanges>} A Promise that resolves with the changes in TV shows.
|
|
40
|
+
*/
|
|
24
41
|
tv(options) {
|
|
25
42
|
return __awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
return yield this.api.get(
|
|
43
|
+
return yield this.api.get('/tv/changes', options);
|
|
27
44
|
});
|
|
28
45
|
}
|
|
46
|
+
/**
|
|
47
|
+
* Retrieves changes related to persons asynchronously.
|
|
48
|
+
* @param {ChangeOption} [options] - Optional parameters for filtering the changes.
|
|
49
|
+
* @returns {Promise<MediaChanges>} A Promise that resolves with the changes related to persons.
|
|
50
|
+
*/
|
|
29
51
|
person(options) {
|
|
30
52
|
return __awaiter(this, void 0, void 0, function* () {
|
|
31
|
-
return yield this.api.get(
|
|
53
|
+
return yield this.api.get('/person/change', options);
|
|
32
54
|
});
|
|
33
55
|
}
|
|
34
56
|
}
|
|
@@ -1,9 +1,34 @@
|
|
|
1
|
-
import { BaseEndpoint, CollectionImageOptions, DetailedCollection, ImageCollection, LanguageOption, Translations } from '
|
|
1
|
+
import { BaseEndpoint, CollectionImageOptions, DetailedCollection, ImageCollection, LanguageOption, Translations } from '../@types';
|
|
2
|
+
/**
|
|
3
|
+
* Represents an endpoint for accessing collections and their details.
|
|
4
|
+
*/
|
|
2
5
|
export declare class CollectionsEndpoint extends BaseEndpoint {
|
|
3
6
|
protected readonly access_token: string;
|
|
7
|
+
/**
|
|
8
|
+
* Constructs a new CollectionsEndpoint instance.
|
|
9
|
+
* @param {string} access_token - The access token used for authentication.
|
|
10
|
+
*/
|
|
4
11
|
constructor(access_token: string);
|
|
12
|
+
/**
|
|
13
|
+
* Retrieves details of a specific collection asynchronously.
|
|
14
|
+
* @param {number} id - The ID of the collection.
|
|
15
|
+
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
16
|
+
* @returns {Promise<DetailedCollection>} A Promise that resolves with the detailed information of the collection.
|
|
17
|
+
*/
|
|
5
18
|
details(id: number, options?: LanguageOption): Promise<DetailedCollection>;
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves images associated with a specific collection asynchronously.
|
|
21
|
+
* @param {number} id - The ID of the collection.
|
|
22
|
+
* @param {CollectionImageOptions} [options] - Optional parameters for specifying image options.
|
|
23
|
+
* @returns {Promise<ImageCollection>} A Promise that resolves with the collection images.
|
|
24
|
+
*/
|
|
6
25
|
images(id: number, options?: CollectionImageOptions): Promise<ImageCollection>;
|
|
26
|
+
/**
|
|
27
|
+
* Retrieves translations for a specific collection asynchronously.
|
|
28
|
+
* @param {number} id - The ID of the collection.
|
|
29
|
+
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
30
|
+
* @returns {Promise<Translations>} A Promise that resolves with the translations of the collection.
|
|
31
|
+
*/
|
|
7
32
|
translations(id: number, options?: LanguageOption): Promise<Translations>;
|
|
8
33
|
}
|
|
9
34
|
//# sourceMappingURL=collections.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../src/endpoints/collections.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,YAAY,EACb,MAAM,UAAU,CAAC;AAIlB,qBAAa,mBAAoB,SAAQ,YAAY;
|
|
1
|
+
{"version":3,"file":"collections.d.ts","sourceRoot":"","sources":["../../src/endpoints/collections.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,YAAY,EACb,MAAM,UAAU,CAAC;AAIlB;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,YAAY;IAKvC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM;IAJnD;;;OAGG;gBAC4B,YAAY,EAAE,MAAM;IAInD;;;;;OAKG;IACG,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIhF;;;;;OAKG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,sBAAsB,GAAG,OAAO,CAAC,eAAe,CAAC;IAQpF;;;;;OAKG;IACG,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,YAAY,CAAC;CAGhF"}
|
|
@@ -10,18 +10,37 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.CollectionsEndpoint = void 0;
|
|
13
|
-
const _types_1 = require("
|
|
13
|
+
const _types_1 = require("../@types");
|
|
14
14
|
const BASE_COLLECTION = '/collection';
|
|
15
|
+
/**
|
|
16
|
+
* Represents an endpoint for accessing collections and their details.
|
|
17
|
+
*/
|
|
15
18
|
class CollectionsEndpoint extends _types_1.BaseEndpoint {
|
|
19
|
+
/**
|
|
20
|
+
* Constructs a new CollectionsEndpoint instance.
|
|
21
|
+
* @param {string} access_token - The access token used for authentication.
|
|
22
|
+
*/
|
|
16
23
|
constructor(access_token) {
|
|
17
24
|
super(access_token);
|
|
18
25
|
this.access_token = access_token;
|
|
19
26
|
}
|
|
27
|
+
/**
|
|
28
|
+
* Retrieves details of a specific collection asynchronously.
|
|
29
|
+
* @param {number} id - The ID of the collection.
|
|
30
|
+
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
31
|
+
* @returns {Promise<DetailedCollection>} A Promise that resolves with the detailed information of the collection.
|
|
32
|
+
*/
|
|
20
33
|
details(id, options) {
|
|
21
34
|
return __awaiter(this, void 0, void 0, function* () {
|
|
22
35
|
return yield this.api.get(`${BASE_COLLECTION}/${id}`, options);
|
|
23
36
|
});
|
|
24
37
|
}
|
|
38
|
+
/**
|
|
39
|
+
* Retrieves images associated with a specific collection asynchronously.
|
|
40
|
+
* @param {number} id - The ID of the collection.
|
|
41
|
+
* @param {CollectionImageOptions} [options] - Optional parameters for specifying image options.
|
|
42
|
+
* @returns {Promise<ImageCollection>} A Promise that resolves with the collection images.
|
|
43
|
+
*/
|
|
25
44
|
images(id, options) {
|
|
26
45
|
var _a;
|
|
27
46
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -32,6 +51,12 @@ class CollectionsEndpoint extends _types_1.BaseEndpoint {
|
|
|
32
51
|
return yield this.api.get(`${BASE_COLLECTION}/${id}/images`, computedOptions);
|
|
33
52
|
});
|
|
34
53
|
}
|
|
54
|
+
/**
|
|
55
|
+
* Retrieves translations for a specific collection asynchronously.
|
|
56
|
+
* @param {number} id - The ID of the collection.
|
|
57
|
+
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
58
|
+
* @returns {Promise<Translations>} A Promise that resolves with the translations of the collection.
|
|
59
|
+
*/
|
|
35
60
|
translations(id, options) {
|
|
36
61
|
return __awaiter(this, void 0, void 0, function* () {
|
|
37
62
|
return yield this.api.get(`${BASE_COLLECTION}/${id}/translations`, options);
|