@tdanks2000/tmdb-wrapper 1.2.0 → 1.3.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.
Files changed (167) hide show
  1. package/dist/index.cjs +1574 -0
  2. package/dist/index.d.cts +2812 -0
  3. package/dist/index.d.cts.map +1 -0
  4. package/dist/index.d.mts +2812 -0
  5. package/dist/index.d.mts.map +1 -0
  6. package/dist/index.mjs +1561 -0
  7. package/dist/index.mjs.map +1 -0
  8. package/package.json +70 -61
  9. package/dist/@types/endpoints/account.d.ts +0 -16
  10. package/dist/@types/endpoints/account.d.ts.map +0 -1
  11. package/dist/@types/endpoints/account.js +0 -2
  12. package/dist/@types/endpoints/certification.d.ts +0 -19
  13. package/dist/@types/endpoints/certification.d.ts.map +0 -1
  14. package/dist/@types/endpoints/certification.js +0 -2
  15. package/dist/@types/endpoints/changes.d.ts +0 -26
  16. package/dist/@types/endpoints/changes.d.ts.map +0 -1
  17. package/dist/@types/endpoints/changes.js +0 -2
  18. package/dist/@types/endpoints/collection.d.ts +0 -21
  19. package/dist/@types/endpoints/collection.d.ts.map +0 -1
  20. package/dist/@types/endpoints/collection.js +0 -2
  21. package/dist/@types/endpoints/companies.d.ts +0 -29
  22. package/dist/@types/endpoints/companies.d.ts.map +0 -1
  23. package/dist/@types/endpoints/companies.js +0 -2
  24. package/dist/@types/endpoints/configuration.d.ts +0 -106
  25. package/dist/@types/endpoints/configuration.d.ts.map +0 -1
  26. package/dist/@types/endpoints/configuration.js +0 -101
  27. package/dist/@types/endpoints/credits.d.ts +0 -135
  28. package/dist/@types/endpoints/credits.d.ts.map +0 -1
  29. package/dist/@types/endpoints/credits.js +0 -2
  30. package/dist/@types/endpoints/discover.d.ts +0 -68
  31. package/dist/@types/endpoints/discover.d.ts.map +0 -1
  32. package/dist/@types/endpoints/discover.js +0 -2
  33. package/dist/@types/endpoints/find.d.ts +0 -20
  34. package/dist/@types/endpoints/find.d.ts.map +0 -1
  35. package/dist/@types/endpoints/find.js +0 -2
  36. package/dist/@types/endpoints/genre.d.ts +0 -7
  37. package/dist/@types/endpoints/genre.d.ts.map +0 -1
  38. package/dist/@types/endpoints/genre.js +0 -2
  39. package/dist/@types/endpoints/index.d.ts +0 -23
  40. package/dist/@types/endpoints/index.d.ts.map +0 -1
  41. package/dist/@types/endpoints/index.js +0 -38
  42. package/dist/@types/endpoints/keywords.d.ts +0 -21
  43. package/dist/@types/endpoints/keywords.d.ts.map +0 -1
  44. package/dist/@types/endpoints/keywords.js +0 -2
  45. package/dist/@types/endpoints/movies.d.ts +0 -150
  46. package/dist/@types/endpoints/movies.d.ts.map +0 -1
  47. package/dist/@types/endpoints/movies.js +0 -12
  48. package/dist/@types/endpoints/networks.d.ts +0 -14
  49. package/dist/@types/endpoints/networks.d.ts.map +0 -1
  50. package/dist/@types/endpoints/networks.js +0 -2
  51. package/dist/@types/endpoints/options.d.ts +0 -71
  52. package/dist/@types/endpoints/options.d.ts.map +0 -1
  53. package/dist/@types/endpoints/options.js +0 -2
  54. package/dist/@types/endpoints/people.d.ts +0 -135
  55. package/dist/@types/endpoints/people.d.ts.map +0 -1
  56. package/dist/@types/endpoints/people.js +0 -2
  57. package/dist/@types/endpoints/review.d.ts +0 -8
  58. package/dist/@types/endpoints/review.d.ts.map +0 -1
  59. package/dist/@types/endpoints/review.js +0 -2
  60. package/dist/@types/endpoints/search.d.ts +0 -32
  61. package/dist/@types/endpoints/search.d.ts.map +0 -1
  62. package/dist/@types/endpoints/search.js +0 -2
  63. package/dist/@types/endpoints/trending.d.ts +0 -12
  64. package/dist/@types/endpoints/trending.d.ts.map +0 -1
  65. package/dist/@types/endpoints/trending.js +0 -2
  66. package/dist/@types/endpoints/tvEpisode.d.ts +0 -65
  67. package/dist/@types/endpoints/tvEpisode.d.ts.map +0 -1
  68. package/dist/@types/endpoints/tvEpisode.js +0 -2
  69. package/dist/@types/endpoints/tvSeasons.d.ts +0 -31
  70. package/dist/@types/endpoints/tvSeasons.d.ts.map +0 -1
  71. package/dist/@types/endpoints/tvSeasons.js +0 -2
  72. package/dist/@types/endpoints/tvShows.d.ts +0 -260
  73. package/dist/@types/endpoints/tvShows.d.ts.map +0 -1
  74. package/dist/@types/endpoints/tvShows.js +0 -2
  75. package/dist/@types/endpoints/watchProviders.d.ts +0 -303
  76. package/dist/@types/endpoints/watchProviders.d.ts.map +0 -1
  77. package/dist/@types/endpoints/watchProviders.js +0 -2
  78. package/dist/@types/index.d.ts +0 -4
  79. package/dist/@types/index.d.ts.map +0 -1
  80. package/dist/@types/index.js +0 -19
  81. package/dist/@types/models/baseEndpoint.d.ts +0 -8
  82. package/dist/@types/models/baseEndpoint.d.ts.map +0 -1
  83. package/dist/@types/models/baseEndpoint.js +0 -11
  84. package/dist/@types/models/index.d.ts +0 -2
  85. package/dist/@types/models/index.d.ts.map +0 -1
  86. package/dist/@types/models/index.js +0 -17
  87. package/dist/@types/types.d.ts +0 -179
  88. package/dist/@types/types.d.ts.map +0 -1
  89. package/dist/@types/types.js +0 -2
  90. package/dist/endpoints/account.d.ts +0 -18
  91. package/dist/endpoints/account.d.ts.map +0 -1
  92. package/dist/endpoints/account.js +0 -25
  93. package/dist/endpoints/certification.d.ts +0 -23
  94. package/dist/endpoints/certification.d.ts.map +0 -1
  95. package/dist/endpoints/certification.js +0 -32
  96. package/dist/endpoints/changes.d.ts +0 -31
  97. package/dist/endpoints/changes.d.ts.map +0 -1
  98. package/dist/endpoints/changes.js +0 -42
  99. package/dist/endpoints/collections.d.ts +0 -34
  100. package/dist/endpoints/collections.d.ts.map +0 -1
  101. package/dist/endpoints/collections.js +0 -50
  102. package/dist/endpoints/companies.d.ts +0 -31
  103. package/dist/endpoints/companies.d.ts.map +0 -1
  104. package/dist/endpoints/companies.js +0 -42
  105. package/dist/endpoints/configuration.d.ts +0 -18
  106. package/dist/endpoints/configuration.d.ts.map +0 -1
  107. package/dist/endpoints/configuration.js +0 -25
  108. package/dist/endpoints/credits.d.ts +0 -19
  109. package/dist/endpoints/credits.d.ts.map +0 -1
  110. package/dist/endpoints/credits.js +0 -26
  111. package/dist/endpoints/discover.d.ts +0 -25
  112. package/dist/endpoints/discover.d.ts.map +0 -1
  113. package/dist/endpoints/discover.js +0 -35
  114. package/dist/endpoints/find.d.ts +0 -20
  115. package/dist/endpoints/find.d.ts.map +0 -1
  116. package/dist/endpoints/find.js +0 -27
  117. package/dist/endpoints/genre.d.ts +0 -25
  118. package/dist/endpoints/genre.d.ts.map +0 -1
  119. package/dist/endpoints/genre.js +0 -34
  120. package/dist/endpoints/index.d.ts +0 -22
  121. package/dist/endpoints/index.d.ts.map +0 -1
  122. package/dist/endpoints/index.js +0 -37
  123. package/dist/endpoints/keywords.d.ts +0 -26
  124. package/dist/endpoints/keywords.d.ts.map +0 -1
  125. package/dist/endpoints/keywords.js +0 -36
  126. package/dist/endpoints/movies.d.ts +0 -142
  127. package/dist/endpoints/movies.d.ts.map +0 -1
  128. package/dist/endpoints/movies.js +0 -198
  129. package/dist/endpoints/networks.d.ts +0 -31
  130. package/dist/endpoints/networks.d.ts.map +0 -1
  131. package/dist/endpoints/networks.js +0 -42
  132. package/dist/endpoints/people.d.ts +0 -85
  133. package/dist/endpoints/people.d.ts.map +0 -1
  134. package/dist/endpoints/people.js +0 -119
  135. package/dist/endpoints/review.d.ts +0 -19
  136. package/dist/endpoints/review.d.ts.map +0 -1
  137. package/dist/endpoints/review.js +0 -26
  138. package/dist/endpoints/search.d.ts +0 -58
  139. package/dist/endpoints/search.d.ts.map +0 -1
  140. package/dist/endpoints/search.js +0 -75
  141. package/dist/endpoints/trending.d.ts +0 -22
  142. package/dist/endpoints/trending.d.ts.map +0 -1
  143. package/dist/endpoints/trending.js +0 -29
  144. package/dist/endpoints/tvEpisodes.d.ts +0 -62
  145. package/dist/endpoints/tvEpisodes.d.ts.map +0 -1
  146. package/dist/endpoints/tvEpisodes.js +0 -98
  147. package/dist/endpoints/tvSeasons.d.ts +0 -71
  148. package/dist/endpoints/tvSeasons.d.ts.map +0 -1
  149. package/dist/endpoints/tvSeasons.js +0 -109
  150. package/dist/endpoints/tvShows.d.ts +0 -164
  151. package/dist/endpoints/tvShows.d.ts.map +0 -1
  152. package/dist/endpoints/tvShows.js +0 -230
  153. package/dist/endpoints/watchProviders.d.ts +0 -33
  154. package/dist/endpoints/watchProviders.d.ts.map +0 -1
  155. package/dist/endpoints/watchProviders.js +0 -46
  156. package/dist/index.d.ts +0 -30
  157. package/dist/index.d.ts.map +0 -1
  158. package/dist/index.js +0 -46
  159. package/dist/utils/api.d.ts +0 -14
  160. package/dist/utils/api.d.ts.map +0 -1
  161. package/dist/utils/api.js +0 -61
  162. package/dist/utils/getimagePath.d.ts +0 -32
  163. package/dist/utils/getimagePath.d.ts.map +0 -1
  164. package/dist/utils/getimagePath.js +0 -50
  165. package/dist/utils/index.d.ts +0 -3
  166. package/dist/utils/index.d.ts.map +0 -1
  167. package/dist/utils/index.js +0 -18
@@ -1,25 +0,0 @@
1
- import { BaseEndpoint, MovieDiscoverResult, MovieQueryOptions, TokenType, TvShowDiscoverResult, TvShowQueryOptions } from "../@types";
2
- /**
3
- * Represents an endpoint for discovering movies and TV shows based on various criteria.
4
- */
5
- export declare class DiscoverEndpoint extends BaseEndpoint {
6
- protected readonly access_token: TokenType;
7
- /**
8
- * Constructs a new DiscoverEndpoint instance.
9
- * @param {string} access_token - The access token used for authentication.
10
- */
11
- constructor(access_token: TokenType);
12
- /**
13
- * Retrieves a list of movies based on the provided query options asynchronously.
14
- * @param {MovieQueryOptions} [options] - Optional parameters for refining the movie discovery.
15
- * @returns {Promise<MovieDiscoverResult>} A Promise that resolves with the movie discovery results.
16
- */
17
- movie(options?: MovieQueryOptions): Promise<MovieDiscoverResult>;
18
- /**
19
- * Retrieves a list of TV shows based on the provided query options asynchronously.
20
- * @param {TvShowQueryOptions} [options] - Optional parameters for refining the TV show discovery.
21
- * @returns {Promise<TvShowDiscoverResult>} A Promise that resolves with the TV show discovery results.
22
- */
23
- tvShow(options?: TvShowQueryOptions): Promise<TvShowDiscoverResult>;
24
- }
25
- //# sourceMappingURL=discover.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../../src/endpoints/discover.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,SAAS,EACT,oBAAoB,EACpB,kBAAkB,EAClB,MAAM,WAAW,CAAC;AAInB;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,YAAY;IAKrC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;;OAIG;IACG,KAAK,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAOtE;;;;OAIG;IACG,MAAM,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAMzE"}
@@ -1,35 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.DiscoverEndpoint = void 0;
4
- const _types_1 = require("../@types");
5
- const BASE_DISCOVER = "/discover";
6
- /**
7
- * Represents an endpoint for discovering movies and TV shows based on various criteria.
8
- */
9
- class DiscoverEndpoint extends _types_1.BaseEndpoint {
10
- /**
11
- * Constructs a new DiscoverEndpoint instance.
12
- * @param {string} access_token - The access token used for authentication.
13
- */
14
- constructor(access_token) {
15
- super(access_token);
16
- this.access_token = access_token;
17
- }
18
- /**
19
- * Retrieves a list of movies based on the provided query options asynchronously.
20
- * @param {MovieQueryOptions} [options] - Optional parameters for refining the movie discovery.
21
- * @returns {Promise<MovieDiscoverResult>} A Promise that resolves with the movie discovery results.
22
- */
23
- async movie(options) {
24
- return await this.api.get(`${BASE_DISCOVER}/movie`, options);
25
- }
26
- /**
27
- * Retrieves a list of TV shows based on the provided query options asynchronously.
28
- * @param {TvShowQueryOptions} [options] - Optional parameters for refining the TV show discovery.
29
- * @returns {Promise<TvShowDiscoverResult>} A Promise that resolves with the TV show discovery results.
30
- */
31
- async tvShow(options) {
32
- return await this.api.get(`${BASE_DISCOVER}/tv`, options);
33
- }
34
- }
35
- exports.DiscoverEndpoint = DiscoverEndpoint;
@@ -1,20 +0,0 @@
1
- import { BaseEndpoint, ExternalIdOptions, FindResult, TokenType } from "../@types";
2
- /**
3
- * Represents an endpoint for finding media by external ID.
4
- */
5
- export declare class FindEndpoint extends BaseEndpoint {
6
- protected readonly access_token: TokenType;
7
- /**
8
- * Constructs a new FindEndpoint instance.
9
- * @param {string} access_token - The access token used for authentication.
10
- */
11
- constructor(access_token: TokenType);
12
- /**
13
- * Retrieves media by external ID asynchronously.
14
- * @param {string} externalId - The external ID of the media.
15
- * @param {ExternalIdOptions} options - Options for finding media by external ID.
16
- * @returns {Promise<FindResult>} A Promise that resolves with the result of the find operation.
17
- */
18
- byId(externalId: string, options: ExternalIdOptions): Promise<FindResult>;
19
- }
20
- //# sourceMappingURL=find.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../src/endpoints/find.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,iBAAiB,EACjB,UAAU,EACV,SAAS,EACT,MAAM,WAAW,CAAC;AAEnB;;GAEG;AACH,qBAAa,YAAa,SAAQ,YAAY;IAKjC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;;;OAKG;IACG,IAAI,CACT,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,iBAAiB,GACxB,OAAO,CAAC,UAAU,CAAC;CAMtB"}
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FindEndpoint = void 0;
4
- const _types_1 = require("../@types");
5
- /**
6
- * Represents an endpoint for finding media by external ID.
7
- */
8
- class FindEndpoint extends _types_1.BaseEndpoint {
9
- /**
10
- * Constructs a new FindEndpoint instance.
11
- * @param {string} access_token - The access token used for authentication.
12
- */
13
- constructor(access_token) {
14
- super(access_token);
15
- this.access_token = access_token;
16
- }
17
- /**
18
- * Retrieves media by external ID asynchronously.
19
- * @param {string} externalId - The external ID of the media.
20
- * @param {ExternalIdOptions} options - Options for finding media by external ID.
21
- * @returns {Promise<FindResult>} A Promise that resolves with the result of the find operation.
22
- */
23
- async byId(externalId, options) {
24
- return await this.api.get(`/find/${externalId}`, options);
25
- }
26
- }
27
- exports.FindEndpoint = FindEndpoint;
@@ -1,25 +0,0 @@
1
- import { BaseEndpoint, Genres, LanguageOption, TokenType } from "../@types";
2
- /**
3
- * Represents an endpoint for retrieving genre information for movies and TV shows.
4
- */
5
- export declare class GenreEndpoint extends BaseEndpoint {
6
- protected readonly access_token: TokenType;
7
- /**
8
- * Constructs a new GenreEndpoint instance.
9
- * @param {string} access_token - The access token used for authentication.
10
- */
11
- constructor(access_token: TokenType);
12
- /**
13
- * Retrieves genre information for movies asynchronously.
14
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
15
- * @returns {Promise<Genres>} A Promise that resolves with the genre information for movies.
16
- */
17
- movies(options?: LanguageOption): Promise<Genres>;
18
- /**
19
- * Retrieves genre information for TV shows asynchronously.
20
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
21
- * @returns {Promise<Genres>} A Promise that resolves with the genre information for TV shows.
22
- */
23
- tv(options?: LanguageOption): Promise<Genres>;
24
- }
25
- //# sourceMappingURL=genre.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"genre.d.ts","sourceRoot":"","sources":["../../src/endpoints/genre.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAE5E;;GAEG;AACH,qBAAa,aAAc,SAAQ,YAAY;IAKlC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;;OAIG;IACG,MAAM,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;IAOvD;;;;OAIG;IACG,EAAE,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC;CAMnD"}
@@ -1,34 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GenreEndpoint = void 0;
4
- const _types_1 = require("../@types");
5
- /**
6
- * Represents an endpoint for retrieving genre information for movies and TV shows.
7
- */
8
- class GenreEndpoint extends _types_1.BaseEndpoint {
9
- /**
10
- * Constructs a new GenreEndpoint instance.
11
- * @param {string} access_token - The access token used for authentication.
12
- */
13
- constructor(access_token) {
14
- super(access_token);
15
- this.access_token = access_token;
16
- }
17
- /**
18
- * Retrieves genre information for movies asynchronously.
19
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
20
- * @returns {Promise<Genres>} A Promise that resolves with the genre information for movies.
21
- */
22
- async movies(options) {
23
- return await this.api.get("/genre/movie/list", options);
24
- }
25
- /**
26
- * Retrieves genre information for TV shows asynchronously.
27
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
28
- * @returns {Promise<Genres>} A Promise that resolves with the genre information for TV shows.
29
- */
30
- async tv(options) {
31
- return await this.api.get("/genre/tv/list", options);
32
- }
33
- }
34
- exports.GenreEndpoint = GenreEndpoint;
@@ -1,22 +0,0 @@
1
- export * from "./account";
2
- export * from "./certification";
3
- export * from "./changes";
4
- export * from "./collections";
5
- export * from "./companies";
6
- export * from "./configuration";
7
- export * from "./credits";
8
- export * from "./discover";
9
- export * from "./find";
10
- export * from "./genre";
11
- export * from "./keywords";
12
- export * from "./movies";
13
- export * from "./networks";
14
- export * from "./people";
15
- export * from "./review";
16
- export * from "./search";
17
- export * from "./trending";
18
- export * from "./tvEpisodes";
19
- export * from "./tvSeasons";
20
- export * from "./tvShows";
21
- export * from "./watchProviders";
22
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/endpoints/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,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,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,kBAAkB,CAAC"}
@@ -1,37 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./account"), exports);
18
- __exportStar(require("./certification"), exports);
19
- __exportStar(require("./changes"), exports);
20
- __exportStar(require("./collections"), exports);
21
- __exportStar(require("./companies"), exports);
22
- __exportStar(require("./configuration"), exports);
23
- __exportStar(require("./credits"), exports);
24
- __exportStar(require("./discover"), exports);
25
- __exportStar(require("./find"), exports);
26
- __exportStar(require("./genre"), exports);
27
- __exportStar(require("./keywords"), exports);
28
- __exportStar(require("./movies"), exports);
29
- __exportStar(require("./networks"), exports);
30
- __exportStar(require("./people"), exports);
31
- __exportStar(require("./review"), exports);
32
- __exportStar(require("./search"), exports);
33
- __exportStar(require("./trending"), exports);
34
- __exportStar(require("./tvEpisodes"), exports);
35
- __exportStar(require("./tvSeasons"), exports);
36
- __exportStar(require("./tvShows"), exports);
37
- __exportStar(require("./watchProviders"), exports);
@@ -1,26 +0,0 @@
1
- import { BaseEndpoint, BelongingMovies, Keyword, KeywordsOptions, TokenType } from "../@types";
2
- /**
3
- * Represents an endpoint for accessing keyword details and related movies.
4
- */
5
- export declare class KeywordsEndpoint extends BaseEndpoint {
6
- protected readonly access_token: TokenType;
7
- /**
8
- * Constructs a new KeywordsEndpoint instance.
9
- * @param {string} access_token - The access token used for authentication.
10
- */
11
- constructor(access_token: TokenType);
12
- /**
13
- * Retrieves details of a specific keyword asynchronously.
14
- * @param {number} keywordId - The ID of the keyword.
15
- * @returns {Promise<Keyword>} A Promise that resolves with the details of the keyword.
16
- */
17
- details(keywordId: number): Promise<Keyword>;
18
- /**
19
- * Retrieves movies belonging to a specific keyword asynchronously.
20
- * @param {number} keywordId - The ID of the keyword.
21
- * @param {KeywordsOptions} [options] - Optional parameters for refining the search.
22
- * @returns {Promise<BelongingMovies>} A Promise that resolves with the movies belonging to the keyword.
23
- */
24
- belongingMovies(keywordId: number, options?: KeywordsOptions): Promise<BelongingMovies>;
25
- }
26
- //# sourceMappingURL=keywords.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"keywords.d.ts","sourceRoot":"","sources":["../../src/endpoints/keywords.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,eAAe,EACf,OAAO,EACP,eAAe,EACf,SAAS,EACT,MAAM,WAAW,CAAC;AAInB;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,YAAY;IAKrC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;;OAIG;IACG,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAIlD;;;;;OAKG;IACG,eAAe,CACpB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,eAAe,GACvB,OAAO,CAAC,eAAe,CAAC;CAO3B"}
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.KeywordsEndpoint = void 0;
4
- const _types_1 = require("../@types");
5
- const BASE_KEYWORD = "/keyword";
6
- /**
7
- * Represents an endpoint for accessing keyword details and related movies.
8
- */
9
- class KeywordsEndpoint extends _types_1.BaseEndpoint {
10
- /**
11
- * Constructs a new KeywordsEndpoint instance.
12
- * @param {string} access_token - The access token used for authentication.
13
- */
14
- constructor(access_token) {
15
- super(access_token);
16
- this.access_token = access_token;
17
- }
18
- /**
19
- * Retrieves details of a specific keyword asynchronously.
20
- * @param {number} keywordId - The ID of the keyword.
21
- * @returns {Promise<Keyword>} A Promise that resolves with the details of the keyword.
22
- */
23
- async details(keywordId) {
24
- return await this.api.get(`${BASE_KEYWORD}/${keywordId}`);
25
- }
26
- /**
27
- * Retrieves movies belonging to a specific keyword asynchronously.
28
- * @param {number} keywordId - The ID of the keyword.
29
- * @param {KeywordsOptions} [options] - Optional parameters for refining the search.
30
- * @returns {Promise<BelongingMovies>} A Promise that resolves with the movies belonging to the keyword.
31
- */
32
- async belongingMovies(keywordId, options) {
33
- return await this.api.get(`${BASE_KEYWORD}/${keywordId}/movies`, options);
34
- }
35
- }
36
- exports.KeywordsEndpoint = KeywordsEndpoint;
@@ -1,142 +0,0 @@
1
- import { AlternativeTitles, AppendToResponse, AppendToResponseMovieKey, BaseEndpoint, ChangeOption, Changes, Credits, ExternalIds, Images, Keywords, LanguageOption, LatestMovie, MovieChangeValue, MovieDetails, MovieLists, MoviesImageSearchOptions, MoviesPlayingNow, PageOption, PopularMovies, Recommendations, RegionOption, ReleaseDates, Reviews, SimilarMovies, TokenType, TopRatedMovies, Translations, UpcomingMovies, Videos, WatchProviders } from "../@types";
2
- /**
3
- * Represents an endpoint for accessing movie-related information.
4
- */
5
- export declare class MoviesEndpoint extends BaseEndpoint {
6
- protected readonly access_token: TokenType;
7
- /**
8
- * Constructs a new MoviesEndpoint instance.
9
- * @param {string} access_token - The access token used for authentication.
10
- */
11
- constructor(access_token: TokenType);
12
- /**
13
- * Retrieves details of a specific movie asynchronously.
14
- * @param {number} id - The ID of the movie.
15
- * @param {AppendToResponseMovieKey[]} [appendToResponse] - Optional keys to append to the response.
16
- * @param {string} [language] - Optional parameter for specifying the language.
17
- * @returns {Promise<AppendToResponse<MovieDetails, AppendToResponseMovieKey[], 'movie'>>} A Promise that resolves with the details of the movie.
18
- */
19
- details<T extends AppendToResponseMovieKey[] | undefined>(id: number, appendToResponse?: T, language?: string): Promise<AppendToResponse<MovieDetails, T, "movie">>;
20
- /**
21
- * Retrieves alternative titles of a specific movie asynchronously.
22
- * @param {number} id - The ID of the movie.
23
- * @returns {Promise<AlternativeTitles>} A Promise that resolves with the alternative titles of the movie.
24
- */
25
- alternativeTitles(id: number): Promise<AlternativeTitles>;
26
- /**
27
- * Retrieves changes made to a specific movie asynchronously.
28
- * @param {number} id - The ID of the movie.
29
- * @param {ChangeOption} [options] - Optional parameters for filtering changes.
30
- * @returns {Promise<Changes<MovieChangeValue>>} A Promise that resolves with the changes made to the movie.
31
- */
32
- changes(id: number, options?: ChangeOption): Promise<Changes<MovieChangeValue>>;
33
- /**
34
- * Retrieves credits of a specific movie asynchronously.
35
- * @param {number} id - The ID of the movie.
36
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
37
- * @returns {Promise<Credits>} A Promise that resolves with the credits of the movie.
38
- */
39
- credits(id: number, options?: LanguageOption): Promise<Credits>;
40
- /**
41
- * Retrieves external IDs of a specific movie asynchronously.
42
- * @param {number} id - The ID of the movie.
43
- * @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs of the movie.
44
- */
45
- externalIds(id: number): Promise<ExternalIds>;
46
- /**
47
- * Retrieves images of a specific movie asynchronously.
48
- * @param {number} id - The ID of the movie.
49
- * @param {MoviesImageSearchOptions} [options] - Optional parameters for specifying image search options.
50
- * @returns {Promise<Images>} A Promise that resolves with the images of the movie.
51
- */
52
- images(id: number, options?: MoviesImageSearchOptions): Promise<Images>;
53
- /**
54
- * Retrieves keywords of a specific movie asynchronously.
55
- * @param {number} id - The ID of the movie.
56
- * @returns {Promise<Keywords>} A Promise that resolves with the keywords of the movie.
57
- */
58
- keywords(id: number): Promise<Keywords>;
59
- /**
60
- * Retrieves lists containing a specific movie asynchronously.
61
- * @param {number} id - The ID of the movie.
62
- * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
63
- * @returns {Promise<MovieLists>} A Promise that resolves with the lists containing the movie.
64
- */
65
- lists(id: number, options?: LanguageOption & PageOption): Promise<MovieLists>;
66
- /**
67
- * Retrieves recommendations for a specific movie asynchronously.
68
- * @param {number} id - The ID of the movie.
69
- * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
70
- * @returns {Promise<Recommendations>} A Promise that resolves with the recommendations for the movie.
71
- */
72
- recommendations(id: number, options?: LanguageOption & PageOption): Promise<Recommendations>;
73
- /**
74
- * Retrieves release dates of a specific movie asynchronously.
75
- * @param {number} id - The ID of the movie.
76
- * @returns {Promise<ReleaseDates>} A Promise that resolves with the release dates of the movie.
77
- */
78
- releaseDates(id: number): Promise<ReleaseDates>;
79
- /**
80
- * Retrieves reviews for a specific movie asynchronously.
81
- * @param {number} id - The ID of the movie.
82
- * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
83
- * @returns {Promise<Reviews>} A Promise that resolves with the reviews for the movie.
84
- */
85
- reviews(id: number, options?: LanguageOption & PageOption): Promise<Reviews>;
86
- /**
87
- * Retrieves similar movies for a specific movie asynchronously.
88
- * @param {number} id - The ID of the movie.
89
- * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
90
- * @returns {Promise<SimilarMovies>} A Promise that resolves with the similar movies for the movie.
91
- */
92
- similar(id: number, options?: LanguageOption & PageOption): Promise<SimilarMovies>;
93
- /**
94
- * Retrieves translations of a specific movie asynchronously.
95
- * @param {number} id - The ID of the movie.
96
- * @returns {Promise<Translations>} A Promise that resolves with the translations of the movie.
97
- */
98
- translations(id: number): Promise<Translations>;
99
- /**
100
- * Retrieves videos of a specific movie asynchronously.
101
- * @param {number} id - The ID of the movie.
102
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
103
- * @returns {Promise<Videos>} A Promise that resolves with the videos of the movie.
104
- */
105
- videos(id: number, options?: LanguageOption): Promise<Videos>;
106
- /**
107
- * Retrieves watch providers of a specific movie asynchronously.
108
- * @param {number} id - The ID of the movie.
109
- * @returns {Promise<WatchProviders>} A Promise that resolves with the watch providers of the movie.
110
- */
111
- watchProviders(id: number): Promise<WatchProviders>;
112
- /**
113
- * Retrieves details of the latest movie asynchronously.
114
- * @returns {Promise<LatestMovie>} A Promise that resolves with the details of the latest movie.
115
- */
116
- latest(): Promise<LatestMovie>;
117
- /**
118
- * Retrieves movies playing now asynchronously.
119
- * @param {PageOption & LanguageOption & RegionOption} [options] - Optional parameters for specifying language, region, and pagination options.
120
- * @returns {Promise<MoviesPlayingNow>} A Promise that resolves with the movies playing now.
121
- */
122
- nowPlaying(options?: PageOption & LanguageOption & RegionOption): Promise<MoviesPlayingNow>;
123
- /**
124
- * Retrieves popular movies asynchronously.
125
- * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
126
- * @returns {Promise<PopularMovies>} A Promise that resolves with the popular movies.
127
- */
128
- popular(options?: LanguageOption & PageOption): Promise<PopularMovies>;
129
- /**
130
- * Retrieves top rated movies asynchronously.
131
- * @param {PageOption & LanguageOption & RegionOption} [options] - Optional parameters for specifying language, region, and pagination options.
132
- * @returns {Promise<TopRatedMovies>} A Promise that resolves with the top rated movies.
133
- */
134
- topRated(options?: PageOption & LanguageOption & RegionOption): Promise<TopRatedMovies>;
135
- /**
136
- * Retrieves upcoming movies asynchronously.
137
- * @param {PageOption & LanguageOption & RegionOption} [options] - Optional parameters for specifying language, region, and pagination options.
138
- * @returns {Promise<UpcomingMovies>} A Promise that resolves with the upcoming movies.
139
- */
140
- upcoming(options?: PageOption & LanguageOption & RegionOption): Promise<UpcomingMovies>;
141
- }
142
- //# sourceMappingURL=movies.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"movies.d.ts","sourceRoot":"","sources":["../../src/endpoints/movies.ts"],"names":[],"mappings":"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"}