@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,75 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SearchEndpoint = void 0;
4
- const _types_1 = require("../@types");
5
- const BASE_SEARCH = "/search";
6
- /**
7
- * Represents an endpoint for performing various search operations.
8
- */
9
- class SearchEndpoint extends _types_1.BaseEndpoint {
10
- /**
11
- * Constructs a new SearchEndpoint 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
- * Searches for companies asynchronously.
20
- * @param {SearchOptions} options - The search options.
21
- * @returns {Promise<Search<Company>>} A Promise that resolves with the search results for companies.
22
- */
23
- async companies(options) {
24
- return await this.api.get(`${BASE_SEARCH}/company`, options);
25
- }
26
- /**
27
- * Searches for collections asynchronously.
28
- * @param {SearchOptions} options - The search options.
29
- * @returns {Promise<Search<Collection>>} A Promise that resolves with the search results for collections.
30
- */
31
- async collections(options) {
32
- return await this.api.get(`${BASE_SEARCH}/collection`, options);
33
- }
34
- /**
35
- * Searches for keywords asynchronously.
36
- * @param {SearchOptions} options - The search options.
37
- * @returns {Promise<Search<{ id: string; name: string }>>} A Promise that resolves with the search results for keywords.
38
- */
39
- async keywords(options) {
40
- return await this.api.get(`${BASE_SEARCH}/keyword`, options);
41
- }
42
- /**
43
- * Searches for movies asynchronously.
44
- * @param {MovieSearchOptions} options - The search options.
45
- * @returns {Promise<Search<Movie>>} A Promise that resolves with the search results for movies.
46
- */
47
- async movies(options) {
48
- return await this.api.get(`${BASE_SEARCH}/movie`, options);
49
- }
50
- /**
51
- * Searches for people asynchronously.
52
- * @param {PeopleSearchOptions} options - The search options.
53
- * @returns {Promise<Search<Person>>} A Promise that resolves with the search results for people.
54
- */
55
- async people(options) {
56
- return await this.api.get(`${BASE_SEARCH}/person`, options);
57
- }
58
- /**
59
- * Searches for TV shows asynchronously.
60
- * @param {TvSearchOptions} options - The search options.
61
- * @returns {Promise<Search<TV>>} A Promise that resolves with the search results for TV shows.
62
- */
63
- async tv(options) {
64
- return await this.api.get(`${BASE_SEARCH}/tv`, options);
65
- }
66
- /**
67
- * Performs a multi-search asynchronously.
68
- * @param {MultiSearchOptions} options - The search options.
69
- * @returns {Promise<Search<MultiSearchResult>>} A Promise that resolves with the multi-search results.
70
- */
71
- async multi(options) {
72
- return await this.api.get(`${BASE_SEARCH}/multi`, options);
73
- }
74
- }
75
- exports.SearchEndpoint = SearchEndpoint;
@@ -1,22 +0,0 @@
1
- import { BaseEndpoint, LanguageOption, PageOption, TimeWindow, TokenType, TrendingMediaType, TrendingResults } from "../@types";
2
- /**
3
- * Represents an endpoint for retrieving trending content.
4
- */
5
- export declare class TrendingEndpoint extends BaseEndpoint {
6
- protected readonly access_token: TokenType;
7
- /**
8
- * Constructs a new TrendingEndpoint instance.
9
- * @param {string} access_token - The access token used for authentication.
10
- */
11
- constructor(access_token: TokenType);
12
- /**
13
- * Retrieves trending content asynchronously based on media type and time window.
14
- * @param {TrendingMediaType} mediaType - The type of media (e.g., 'all', 'movie', 'tv').
15
- * @param {TimeWindow} timeWindow - The time window for trending content (e.g., 'day', 'week').
16
- * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying the language and pagination.
17
- * @returns {Promise<TrendingResults<T>>} A Promise that resolves with the trending results.
18
- * @template T - The type of media being searched for (e.g., 'movie', 'tv').
19
- */
20
- trending<T extends TrendingMediaType>(mediaType: T, timeWindow: TimeWindow, options?: LanguageOption & PageOption): Promise<TrendingResults<T>>;
21
- }
22
- //# sourceMappingURL=trending.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"trending.d.ts","sourceRoot":"","sources":["../../src/endpoints/trending.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,cAAc,EACd,UAAU,EACV,UAAU,EACV,SAAS,EACT,iBAAiB,EACjB,eAAe,EACf,MAAM,WAAW,CAAC;AAEnB;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,YAAY;IAKrC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;;;;;OAOG;IACG,QAAQ,CAAC,CAAC,SAAS,iBAAiB,EACzC,SAAS,EAAE,CAAC,EACZ,UAAU,EAAE,UAAU,EACtB,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,GACnC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;CAM9B"}
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TrendingEndpoint = void 0;
4
- const _types_1 = require("../@types");
5
- /**
6
- * Represents an endpoint for retrieving trending content.
7
- */
8
- class TrendingEndpoint extends _types_1.BaseEndpoint {
9
- /**
10
- * Constructs a new TrendingEndpoint 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 trending content asynchronously based on media type and time window.
19
- * @param {TrendingMediaType} mediaType - The type of media (e.g., 'all', 'movie', 'tv').
20
- * @param {TimeWindow} timeWindow - The time window for trending content (e.g., 'day', 'week').
21
- * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying the language and pagination.
22
- * @returns {Promise<TrendingResults<T>>} A Promise that resolves with the trending results.
23
- * @template T - The type of media being searched for (e.g., 'movie', 'tv').
24
- */
25
- async trending(mediaType, timeWindow, options) {
26
- return await this.api.get(`/trending/${mediaType}/${timeWindow}`, options);
27
- }
28
- }
29
- exports.TrendingEndpoint = TrendingEndpoint;
@@ -1,62 +0,0 @@
1
- import { AppendToResponse, AppendToResponseTvEpisodeKey, BaseEndpoint, ChangeOption, Changes, Episode, EpisodeSelection, ExternalIds, Images, LanguageOption, TokenType, TvEpisodeCredit, TvEpisodeImageSearchOptions, TvEpisodeTranslations, TvEpisodeVideoSearchOptions, Videos } from "../@types";
2
- /**
3
- * Represents an endpoint for accessing TV episode-related information.
4
- */
5
- export declare class TvEpisodesEndpoint extends BaseEndpoint {
6
- protected readonly access_token: TokenType;
7
- /**
8
- * Constructs a new TvEpisodesEndpoint 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 TV episode asynchronously.
14
- * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
15
- * @param {AppendToResponseTvEpisodeKey[]} [appendToResponse] - Additional data to append to the response.
16
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
17
- * @returns {Promise<AppendToResponse<Omit<Episode, 'show_id'>, AppendToResponseTvEpisodeKey[], 'tvEpisode'>>}
18
- * A Promise that resolves with the details of the TV episode.
19
- */
20
- details<T extends AppendToResponseTvEpisodeKey[] | undefined>(episodeSelection: EpisodeSelection, appendToResponse?: T, options?: LanguageOption): Promise<AppendToResponse<Omit<Episode, "show_id">, T, "tvEpisode">>;
21
- /**
22
- * Retrieves changes related to a specific TV episode asynchronously.
23
- * @param {number} episodeID - The ID of the TV episode.
24
- * @param {ChangeOption} [options] - Optional parameters for specifying changes.
25
- * @returns {Promise<Changes<TvEpisodeChangeValue>>} A Promise that resolves with the changes related to the TV episode.
26
- */
27
- changes(episodeID: number, options?: ChangeOption): Promise<Changes<unknown>>;
28
- /**
29
- * Retrieves credits for a specific TV episode asynchronously.
30
- * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
31
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
32
- * @returns {Promise<TvEpisodeCredit>} A Promise that resolves with the credits for the TV episode.
33
- */
34
- credits(episodeSelection: EpisodeSelection, options?: LanguageOption): Promise<TvEpisodeCredit>;
35
- /**
36
- * Retrieves external IDs for a specific TV episode asynchronously.
37
- * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
38
- * @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs for the TV episode.
39
- */
40
- externalIds(episodeSelection: EpisodeSelection): Promise<ExternalIds>;
41
- /**
42
- * Retrieves images for a specific TV episode asynchronously.
43
- * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
44
- * @param {TvEpisodeImageSearchOptions} [options] - Optional parameters for specifying image search options.
45
- * @returns {Promise<Images>} A Promise that resolves with the images for the TV episode.
46
- */
47
- images(episodeSelection: EpisodeSelection, options?: TvEpisodeImageSearchOptions): Promise<Images>;
48
- /**
49
- * Retrieves translations for a specific TV episode asynchronously.
50
- * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
51
- * @returns {Promise<TvEpisodeTranslations>} A Promise that resolves with the translations for the TV episode.
52
- */
53
- translations(episodeSelection: EpisodeSelection): Promise<TvEpisodeTranslations>;
54
- /**
55
- * Retrieves videos for a specific TV episode asynchronously.
56
- * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
57
- * @param {TvEpisodeVideoSearchOptions} [options] - Optional parameters for specifying video search options.
58
- * @returns {Promise<Videos>} A Promise that resolves with the videos for the TV episode.
59
- */
60
- videos(episodeSelection: EpisodeSelection, options?: TvEpisodeVideoSearchOptions): Promise<Videos>;
61
- }
62
- //# sourceMappingURL=tvEpisodes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tvEpisodes.d.ts","sourceRoot":"","sources":["../../src/endpoints/tvEpisodes.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,gBAAgB,EAChB,4BAA4B,EAC5B,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,OAAO,EACP,gBAAgB,EAChB,WAAW,EACX,MAAM,EACN,cAAc,EACd,SAAS,EAET,eAAe,EACf,2BAA2B,EAC3B,qBAAqB,EACrB,2BAA2B,EAC3B,MAAM,EACN,MAAM,WAAW,CAAC;AAMnB;;GAEG;AACH,qBAAa,kBAAmB,SAAQ,YAAY;IAKvC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;;;;;OAOG;IACG,OAAO,CAAC,CAAC,SAAS,4BAA4B,EAAE,GAAG,SAAS,EACjE,gBAAgB,EAAE,gBAAgB,EAClC,gBAAgB,CAAC,EAAE,CAAC,EACpB,OAAO,CAAC,EAAE,cAAc;IAczB;;;;;OAKG;IACG,OAAO,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;IAOvD;;;;;OAKG;IACG,OAAO,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,OAAO,CAAC,EAAE,cAAc;IAO1E;;;;OAIG;IACG,WAAW,CAAC,gBAAgB,EAAE,gBAAgB;IAMpD;;;;;OAKG;IACG,MAAM,CACX,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,CAAC,EAAE,2BAA2B;IAYtC;;;;OAIG;IACG,YAAY,CAAC,gBAAgB,EAAE,gBAAgB;IAMrD;;;;;OAKG;IACG,MAAM,CACX,gBAAgB,EAAE,gBAAgB,EAClC,OAAO,CAAC,EAAE,2BAA2B;CAWtC"}
@@ -1,98 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TvEpisodesEndpoint = void 0;
4
- const _types_1 = require("../@types");
5
- const BASE_EPISODE = (episodeSelection) => {
6
- return `/tv/${episodeSelection.tvShowID}/season/${episodeSelection.seasonNumber}/episode/${episodeSelection.episodeNumber}`;
7
- };
8
- /**
9
- * Represents an endpoint for accessing TV episode-related information.
10
- */
11
- class TvEpisodesEndpoint extends _types_1.BaseEndpoint {
12
- /**
13
- * Constructs a new TvEpisodesEndpoint instance.
14
- * @param {string} access_token - The access token used for authentication.
15
- */
16
- constructor(access_token) {
17
- super(access_token);
18
- this.access_token = access_token;
19
- }
20
- /**
21
- * Retrieves details of a specific TV episode asynchronously.
22
- * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
23
- * @param {AppendToResponseTvEpisodeKey[]} [appendToResponse] - Additional data to append to the response.
24
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
25
- * @returns {Promise<AppendToResponse<Omit<Episode, 'show_id'>, AppendToResponseTvEpisodeKey[], 'tvEpisode'>>}
26
- * A Promise that resolves with the details of the TV episode.
27
- */
28
- async details(episodeSelection, appendToResponse, options) {
29
- const combinedOptions = {
30
- append_to_response: appendToResponse
31
- ? appendToResponse.join(",")
32
- : undefined,
33
- ...options,
34
- };
35
- return await this.api.get(`${BASE_EPISODE(episodeSelection)}`, combinedOptions);
36
- }
37
- /**
38
- * Retrieves changes related to a specific TV episode asynchronously.
39
- * @param {number} episodeID - The ID of the TV episode.
40
- * @param {ChangeOption} [options] - Optional parameters for specifying changes.
41
- * @returns {Promise<Changes<TvEpisodeChangeValue>>} A Promise that resolves with the changes related to the TV episode.
42
- */
43
- async changes(episodeID, options) {
44
- return await this.api.get(`/tv/episode/${episodeID}/changes`, options);
45
- }
46
- /**
47
- * Retrieves credits for a specific TV episode asynchronously.
48
- * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
49
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
50
- * @returns {Promise<TvEpisodeCredit>} A Promise that resolves with the credits for the TV episode.
51
- */
52
- async credits(episodeSelection, options) {
53
- return await this.api.get(`${BASE_EPISODE(episodeSelection)}/credits`, options);
54
- }
55
- /**
56
- * Retrieves external IDs for a specific TV episode asynchronously.
57
- * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
58
- * @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs for the TV episode.
59
- */
60
- async externalIds(episodeSelection) {
61
- return await this.api.get(`${BASE_EPISODE(episodeSelection)}/external_ids`);
62
- }
63
- /**
64
- * Retrieves images for a specific TV episode asynchronously.
65
- * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
66
- * @param {TvEpisodeImageSearchOptions} [options] - Optional parameters for specifying image search options.
67
- * @returns {Promise<Images>} A Promise that resolves with the images for the TV episode.
68
- */
69
- async images(episodeSelection, options) {
70
- const computedOptions = {
71
- include_image_language: options?.include_image_language?.join(","),
72
- language: options?.language,
73
- };
74
- return await this.api.get(`${BASE_EPISODE(episodeSelection)}/images`, computedOptions);
75
- }
76
- /**
77
- * Retrieves translations for a specific TV episode asynchronously.
78
- * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
79
- * @returns {Promise<TvEpisodeTranslations>} A Promise that resolves with the translations for the TV episode.
80
- */
81
- async translations(episodeSelection) {
82
- return await this.api.get(`${BASE_EPISODE(episodeSelection)}/translations`);
83
- }
84
- /**
85
- * Retrieves videos for a specific TV episode asynchronously.
86
- * @param {EpisodeSelection} episodeSelection - The selection criteria for the TV episode.
87
- * @param {TvEpisodeVideoSearchOptions} [options] - Optional parameters for specifying video search options.
88
- * @returns {Promise<Videos>} A Promise that resolves with the videos for the TV episode.
89
- */
90
- async videos(episodeSelection, options) {
91
- const computedOptions = {
92
- include_video_language: options?.include_video_language?.join(","),
93
- language: options?.language,
94
- };
95
- return await this.api.get(`${BASE_EPISODE(episodeSelection)}/videos`, computedOptions);
96
- }
97
- }
98
- exports.TvEpisodesEndpoint = TvEpisodesEndpoint;
@@ -1,71 +0,0 @@
1
- import { AggregateCredits, AppendToResponse, AppendToResponseTvSeasonKey, BaseEndpoint, ChangeOption, Changes, Credits, ExternalIds, Images, LanguageOption, SeasonDetails, SeasonSelection, TokenType, Translations, TvSeasonChangeValue, TvSeasonImageSearchOptions, TvSeasonVideoSearchOptions, Videos } from "../@types";
2
- /**
3
- * Represents an endpoint for accessing TV season-related information.
4
- */
5
- export declare class TvSeasonsEndpoint extends BaseEndpoint {
6
- protected readonly access_token: TokenType;
7
- /**
8
- * Constructs a new TvSeasonsEndpoint 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 TV season asynchronously.
14
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
15
- * @param {AppendToResponseTvSeasonKey[]} [appendToResponse] - Additional data to append to the response.
16
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
17
- * @returns {Promise<AppendToResponse<SeasonDetails, AppendToResponseTvSeasonKey[], 'tvSeason'>>}
18
- * A Promise that resolves with the details of the TV season.
19
- */
20
- details<T extends AppendToResponseTvSeasonKey[] | undefined>(seasonSelection: SeasonSelection, appendToResponse?: T, options?: LanguageOption): Promise<AppendToResponse<SeasonDetails, T, "tvSeason">>;
21
- /**
22
- * Retrieves aggregate credits for a specific TV season asynchronously.
23
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
24
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
25
- * @returns {Promise<AggregateCredits>} A Promise that resolves with the aggregate credits for the TV season.
26
- */
27
- aggregateCredits(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<AggregateCredits>;
28
- /**
29
- * Retrieves changes related to a specific TV season asynchronously.
30
- * @param {number} seasonId - The ID of the TV season.
31
- * @param {ChangeOption} [options] - Optional parameters for specifying changes.
32
- * @returns {Promise<Changes<TvSeasonChangeValue>>} A Promise that resolves with the changes related to the TV season.
33
- */
34
- changes(seasonId: number, options?: ChangeOption): Promise<Changes<TvSeasonChangeValue>>;
35
- /**
36
- * Retrieves credits for a specific TV season asynchronously.
37
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
38
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
39
- * @returns {Promise<Credits>} A Promise that resolves with the credits for the TV season.
40
- */
41
- credits(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<Credits>;
42
- /**
43
- * Retrieves external IDs for a specific TV season asynchronously.
44
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
45
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
46
- * @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs for the TV season.
47
- */
48
- externalIds(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<ExternalIds>;
49
- /**
50
- * Retrieves images for a specific TV season asynchronously.
51
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
52
- * @param {TvSeasonImageSearchOptions} [options] - Optional parameters for specifying image search options.
53
- * @returns {Promise<Images>} A Promise that resolves with the images for the TV season.
54
- */
55
- images(seasonSelection: SeasonSelection, options?: TvSeasonImageSearchOptions): Promise<Images>;
56
- /**
57
- * Retrieves videos for a specific TV season asynchronously.
58
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
59
- * @param {TvSeasonVideoSearchOptions} [options] - Optional parameters for specifying video search options.
60
- * @returns {Promise<Videos>} A Promise that resolves with the videos for the TV season.
61
- */
62
- videos(seasonSelection: SeasonSelection, options?: TvSeasonVideoSearchOptions): Promise<Videos>;
63
- /**
64
- * Retrieves translations for a specific TV season asynchronously.
65
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
66
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
67
- * @returns {Promise<Translations>} A Promise that resolves with the translations for the TV season.
68
- */
69
- translations(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<Translations>;
70
- }
71
- //# sourceMappingURL=tvSeasons.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tvSeasons.d.ts","sourceRoot":"","sources":["../../src/endpoints/tvSeasons.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,gBAAgB,EAChB,gBAAgB,EAChB,2BAA2B,EAC3B,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,OAAO,EACP,WAAW,EACX,MAAM,EACN,cAAc,EACd,aAAa,EACb,eAAe,EACf,SAAS,EACT,YAAY,EACZ,mBAAmB,EACnB,0BAA0B,EAC1B,0BAA0B,EAC1B,MAAM,EACN,MAAM,WAAW,CAAC;AAMnB;;GAEG;AACH,qBAAa,iBAAkB,SAAQ,YAAY;IAKtC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;;;;;OAOG;IACG,OAAO,CAAC,CAAC,SAAS,2BAA2B,EAAE,GAAG,SAAS,EAChE,eAAe,EAAE,eAAe,EAChC,gBAAgB,CAAC,EAAE,CAAC,EACpB,OAAO,CAAC,EAAE,cAAc;IAezB;;;;;OAKG;IACG,gBAAgB,CACrB,eAAe,EAAE,eAAe,EAChC,OAAO,CAAC,EAAE,cAAc;IAQzB;;;;;OAKG;IACG,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;IAOtD;;;;;OAKG;IACG,OAAO,CAAC,eAAe,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc;IAOxE;;;;;OAKG;IACG,WAAW,CAChB,eAAe,EAAE,eAAe,EAChC,OAAO,CAAC,EAAE,cAAc;IAQzB;;;;;OAKG;IACG,MAAM,CACX,eAAe,EAAE,eAAe,EAChC,OAAO,CAAC,EAAE,0BAA0B;IAYrC;;;;;OAKG;IACG,MAAM,CACX,eAAe,EAAE,eAAe,EAChC,OAAO,CAAC,EAAE,0BAA0B;IAYrC;;;;;OAKG;IACG,YAAY,CACjB,eAAe,EAAE,eAAe,EAChC,OAAO,CAAC,EAAE,cAAc;CAOzB"}
@@ -1,109 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TvSeasonsEndpoint = void 0;
4
- const _types_1 = require("../@types");
5
- const BASE_SEASON = (seasonSelection) => {
6
- return `/tv/${seasonSelection.tvShowID}/season/${seasonSelection.seasonNumber}`;
7
- };
8
- /**
9
- * Represents an endpoint for accessing TV season-related information.
10
- */
11
- class TvSeasonsEndpoint extends _types_1.BaseEndpoint {
12
- /**
13
- * Constructs a new TvSeasonsEndpoint instance.
14
- * @param {string} access_token - The access token used for authentication.
15
- */
16
- constructor(access_token) {
17
- super(access_token);
18
- this.access_token = access_token;
19
- }
20
- /**
21
- * Retrieves details of a specific TV season asynchronously.
22
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
23
- * @param {AppendToResponseTvSeasonKey[]} [appendToResponse] - Additional data to append to the response.
24
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
25
- * @returns {Promise<AppendToResponse<SeasonDetails, AppendToResponseTvSeasonKey[], 'tvSeason'>>}
26
- * A Promise that resolves with the details of the TV season.
27
- */
28
- async details(seasonSelection, appendToResponse, options) {
29
- const combinedOptions = {
30
- append_to_response: appendToResponse
31
- ? appendToResponse.join(",")
32
- : undefined,
33
- ...options,
34
- };
35
- return await this.api.get(`${BASE_SEASON(seasonSelection)}`, combinedOptions);
36
- }
37
- /**
38
- * Retrieves aggregate credits for a specific TV season asynchronously.
39
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
40
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
41
- * @returns {Promise<AggregateCredits>} A Promise that resolves with the aggregate credits for the TV season.
42
- */
43
- async aggregateCredits(seasonSelection, options) {
44
- return await this.api.get(`${BASE_SEASON(seasonSelection)}/aggregate_credits`, options);
45
- }
46
- /**
47
- * Retrieves changes related to a specific TV season asynchronously.
48
- * @param {number} seasonId - The ID of the TV season.
49
- * @param {ChangeOption} [options] - Optional parameters for specifying changes.
50
- * @returns {Promise<Changes<TvSeasonChangeValue>>} A Promise that resolves with the changes related to the TV season.
51
- */
52
- async changes(seasonId, options) {
53
- return await this.api.get(`/tv/season/${seasonId}/changes`, options);
54
- }
55
- /**
56
- * Retrieves credits for a specific TV season asynchronously.
57
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
58
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
59
- * @returns {Promise<Credits>} A Promise that resolves with the credits for the TV season.
60
- */
61
- async credits(seasonSelection, options) {
62
- return await this.api.get(`${BASE_SEASON(seasonSelection)}/credits`, options);
63
- }
64
- /**
65
- * Retrieves external IDs for a specific TV season asynchronously.
66
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
67
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
68
- * @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs for the TV season.
69
- */
70
- async externalIds(seasonSelection, options) {
71
- return await this.api.get(`${BASE_SEASON(seasonSelection)}/external_ids`, options);
72
- }
73
- /**
74
- * Retrieves images for a specific TV season asynchronously.
75
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
76
- * @param {TvSeasonImageSearchOptions} [options] - Optional parameters for specifying image search options.
77
- * @returns {Promise<Images>} A Promise that resolves with the images for the TV season.
78
- */
79
- async images(seasonSelection, options) {
80
- const computedOptions = {
81
- include_image_language: options?.include_image_language?.join(","),
82
- language: options?.language,
83
- };
84
- return await this.api.get(`${BASE_SEASON(seasonSelection)}/images`, computedOptions);
85
- }
86
- /**
87
- * Retrieves videos for a specific TV season asynchronously.
88
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
89
- * @param {TvSeasonVideoSearchOptions} [options] - Optional parameters for specifying video search options.
90
- * @returns {Promise<Videos>} A Promise that resolves with the videos for the TV season.
91
- */
92
- async videos(seasonSelection, options) {
93
- const computedOptions = {
94
- include_video_language: options?.include_video_language?.join(","),
95
- language: options?.language,
96
- };
97
- return await this.api.get(`${BASE_SEASON(seasonSelection)}/videos`, computedOptions);
98
- }
99
- /**
100
- * Retrieves translations for a specific TV season asynchronously.
101
- * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
102
- * @param {LanguageOption} [options] - Optional parameters for specifying the language.
103
- * @returns {Promise<Translations>} A Promise that resolves with the translations for the TV season.
104
- */
105
- async translations(seasonSelection, options) {
106
- return await this.api.get(`${BASE_SEASON(seasonSelection)}/translations`, options);
107
- }
108
- }
109
- exports.TvSeasonsEndpoint = TvSeasonsEndpoint;
@@ -1,164 +0,0 @@
1
- import { AggregateCredits, AlternativeTitles, AppendToResponse, AppendToResponseTvKey, BaseEndpoint, ChangeOption, Changes, ContentRatings, Credits, EpisodeGroups, ExternalIds, Images, Keywords, LanguageOption, Latesttv, OnTheAir, PageOption, Populartv, Recommendations, Reviews, ScreenedTheatrically, SeasonDetails, Similartv, TimezoneOption, TokenType, TopRatedtv, Translations, TvShowChangeValue, TvShowDetails, TvShowImageOptions, TvShowVideoOptions, tvAiringToday, Videos, WatchProviders } from "../@types";
2
- /**
3
- * Represents an endpoint for accessing TV show-related information.
4
- */
5
- export declare class TvShowsEndpoint extends BaseEndpoint {
6
- protected readonly access_token: TokenType;
7
- /**
8
- * Constructs a new TvShowsEndpoint 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 TV show asynchronously.
14
- * @param {number} id - The ID of the TV show.
15
- * @param {AppendToResponseTvKey[]} [appendToResponse] - Additional data to append to the response.
16
- * @param {string} [language] - The language for the response.
17
- * @returns {Promise<AppendToResponse<TvShowDetails, AppendToResponseTvKey[], 'tvShow'>>}
18
- * A Promise that resolves with the details of the TV show.
19
- */
20
- details<T extends AppendToResponseTvKey[] | undefined>(id: number, appendToResponse?: T, language?: string): Promise<AppendToResponse<TvShowDetails, T, "tvShow">>;
21
- /**
22
- * Retrieves alternative titles of a specific TV show asynchronously.
23
- * @param {number} id - The ID of the TV show.
24
- * @returns {Promise<AlternativeTitles>} A Promise that resolves with the alternative titles of the TV show.
25
- */
26
- alternativeTitles(id: number): Promise<AlternativeTitles>;
27
- /**
28
- * Retrieves changes for a specific TV show asynchronously.
29
- * @param {number} id - The ID of the TV show.
30
- * @param {ChangeOption} [options] - Additional options for the request.
31
- * @returns {Promise<Changes<TvShowChangeValue>>}
32
- * A Promise that resolves with the changes for the TV show.
33
- */
34
- changes(id: number, options?: ChangeOption): Promise<Changes<TvShowChangeValue>>;
35
- /**
36
- * Retrieves content ratings for a specific TV show asynchronously.
37
- * @param {number} id - The ID of the TV show.
38
- * @returns {Promise<ContentRatings>} A Promise that resolves with the content ratings of the TV show.
39
- */
40
- contentRatings(id: number): Promise<ContentRatings>;
41
- /**
42
- * Retrieves aggregate credits for a specific TV show asynchronously.
43
- * @param {number} id - The ID of the TV show.
44
- * @param {LanguageOption} [options] - Additional options for the request.
45
- * @returns {Promise<AggregateCredits>} A Promise that resolves with the aggregate credits of the TV show.
46
- */
47
- aggregateCredits(id: number, options?: LanguageOption): Promise<AggregateCredits>;
48
- /**
49
- * Retrieves credits for a specific TV show asynchronously.
50
- * @param {number} id - The ID of the TV show.
51
- * @param {LanguageOption} [options] - Additional options for the request.
52
- * @returns {Promise<Credits>} A Promise that resolves with the credits of the TV show.
53
- */
54
- credits(id: number, options?: LanguageOption): Promise<Credits>;
55
- /**
56
- * Retrieves details of a specific season of a TV show asynchronously.
57
- * @param {number} tvId - The ID of the TV show.
58
- * @param {number} seasonNumber - The season number.
59
- * @returns {Promise<SeasonDetails>} A Promise that resolves with the details of the season.
60
- */
61
- season(tvId: number, seasonNumber: number): Promise<SeasonDetails>;
62
- /**
63
- * Retrieves episode groups for a specific TV show asynchronously.
64
- * @param {number} id - The ID of the TV show.
65
- * @returns {Promise<EpisodeGroups>} A Promise that resolves with the episode groups of the TV show.
66
- */
67
- episodeGroups(id: number): Promise<EpisodeGroups>;
68
- /**
69
- * Retrieves external IDs for a specific TV show asynchronously.
70
- * @param {number} id - The ID of the TV show.
71
- * @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs of the TV show.
72
- */
73
- externalIds(id: number): Promise<ExternalIds>;
74
- /**
75
- * Retrieves images for a specific TV show asynchronously.
76
- * @param {number} id - The ID of the TV show.
77
- * @param {TvShowImageOptions} [options] - Additional options for the request.
78
- * @returns {Promise<Images>} A Promise that resolves with the images of the TV show.
79
- */
80
- images(id: number, options?: TvShowImageOptions): Promise<Images>;
81
- /**
82
- * Retrieves keywords for a specific TV show asynchronously.
83
- * @param {number} id - The ID of the TV show.
84
- * @returns {Promise<Keywords>} A Promise that resolves with the keywords of the TV show.
85
- */
86
- keywords(id: number): Promise<Keywords>;
87
- /**
88
- * Retrieves recommendations for a specific TV show asynchronously.
89
- * @param {number} id - The ID of the TV show.
90
- * @param {LanguageOption & PageOption} [options] - Additional options for the request.
91
- * @returns {Promise<Recommendations>} A Promise that resolves with the recommendations for the TV show.
92
- */
93
- recommendations(id: number, options?: LanguageOption & PageOption): Promise<Recommendations>;
94
- /**
95
- * Retrieves reviews for a specific TV show asynchronously.
96
- * @param {number} id - The ID of the TV show.
97
- * @param {LanguageOption & PageOption} [options] - Additional options for the request.
98
- * @returns {Promise<Reviews>} A Promise that resolves with the reviews of the TV show.
99
- */
100
- reviews(id: number, options?: LanguageOption & PageOption): Promise<Reviews>;
101
- /**
102
- * Retrieves information about whether the TV show was screened theatrically asynchronously.
103
- * @param {number} id - The ID of the TV show.
104
- * @returns {Promise<ScreenedTheatrically>} A Promise that resolves with information about theatrical screenings.
105
- */
106
- screenedTheatrically(id: number): Promise<ScreenedTheatrically>;
107
- /**
108
- * Retrieves similar TV shows for a specific TV show asynchronously.
109
- * @param {number} id - The ID of the TV show.
110
- * @param {LanguageOption & PageOption} [options] - Additional options for the request.
111
- * @returns {Promise<Similartv>} A Promise that resolves with the similar TV shows.
112
- */
113
- similar(id: number, options?: LanguageOption & PageOption): Promise<Similartv>;
114
- /**
115
- * Retrieves translations for a specific TV show asynchronously.
116
- * @param {number} id - The ID of the TV show.
117
- * @returns {Promise<Translations>} A Promise that resolves with the translations of the TV show.
118
- */
119
- translations(id: number): Promise<Translations>;
120
- /**
121
- * Retrieves videos for a specific TV show asynchronously.
122
- * @param {number} id - The ID of the TV show.
123
- * @param {TvShowVideoOptions} [options] - Additional options for the request.
124
- * @returns {Promise<Videos>} A Promise that resolves with the videos of the TV show.
125
- */
126
- videos(id: number, options?: TvShowVideoOptions): Promise<Videos>;
127
- /**
128
- * Retrieves watch providers for a specific TV show asynchronously.
129
- * Powered by JustWatch.
130
- * @param {number} id - The ID of the TV show.
131
- * @returns {Promise<WatchProviders>} A Promise that resolves with the watch providers of the TV show.
132
- */
133
- watchProviders(id: number): Promise<WatchProviders>;
134
- /**
135
- * Retrieves the latest TV show asynchronously.
136
- * @returns {Promise<Latesttv>} A Promise that resolves with the latest TV show.
137
- */
138
- latest(): Promise<Latesttv>;
139
- /**
140
- * Retrieves TV shows that are currently on the air asynchronously.
141
- * @param {PageOption & LanguageOption & TimezoneOption} [options] - Additional options for the request.
142
- * @returns {Promise<OnTheAir>} A Promise that resolves with TV shows currently on the air.
143
- */
144
- onTheAir(options?: PageOption & LanguageOption & TimezoneOption): Promise<OnTheAir>;
145
- /**
146
- * Retrieves TV shows that are airing today asynchronously.
147
- * @param {PageOption & LanguageOption & TimezoneOption} [options] - Additional options for the request.
148
- * @returns {Promise<tvAiringToday>} A Promise that resolves with TV shows airing today.
149
- */
150
- airingToday(options?: PageOption & LanguageOption & TimezoneOption): Promise<tvAiringToday>;
151
- /**
152
- * Retrieves popular TV shows asynchronously.
153
- * @param {PageOption & LanguageOption} [options] - Additional options for the request.
154
- * @returns {Promise<Populartv>} A Promise that resolves with popular TV shows.
155
- */
156
- popular(options?: PageOption & LanguageOption): Promise<Populartv>;
157
- /**
158
- * Retrieves top-rated TV shows asynchronously.
159
- * @param {PageOption & LanguageOption} [options] - Additional options for the request.
160
- * @returns {Promise<TopRatedtv>} A Promise that resolves with top-rated TV shows.
161
- */
162
- topRated(options?: PageOption & LanguageOption): Promise<TopRatedtv>;
163
- }
164
- //# sourceMappingURL=tvShows.d.ts.map