@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.
Files changed (112) hide show
  1. package/README.md +11 -0
  2. package/dist/@types/endpoints/configuration.d.ts +1 -0
  3. package/dist/@types/endpoints/configuration.d.ts.map +1 -1
  4. package/dist/@types/endpoints/discover.d.ts +53 -0
  5. package/dist/@types/endpoints/discover.d.ts.map +1 -1
  6. package/dist/@types/endpoints/genre.d.ts +7 -0
  7. package/dist/@types/endpoints/genre.d.ts.map +1 -0
  8. package/dist/@types/endpoints/genre.js +2 -0
  9. package/dist/@types/endpoints/index.d.ts +1 -0
  10. package/dist/@types/endpoints/index.d.ts.map +1 -1
  11. package/dist/@types/endpoints/index.js +1 -0
  12. package/dist/@types/endpoints/movies.d.ts +7 -1
  13. package/dist/@types/endpoints/movies.d.ts.map +1 -1
  14. package/dist/@types/endpoints/search.d.ts +24 -1
  15. package/dist/@types/endpoints/search.d.ts.map +1 -1
  16. package/dist/@types/endpoints/tvEpisode.d.ts +13 -1
  17. package/dist/@types/endpoints/tvEpisode.d.ts.map +1 -1
  18. package/dist/@types/endpoints/tvSeasons.d.ts +13 -1
  19. package/dist/@types/endpoints/tvSeasons.d.ts.map +1 -1
  20. package/dist/@types/models/baseEndpoint.d.ts +1 -1
  21. package/dist/@types/models/baseEndpoint.js +1 -1
  22. package/dist/endpoints/account.d.ts +12 -1
  23. package/dist/endpoints/account.d.ts.map +1 -1
  24. package/dist/endpoints/account.js +12 -1
  25. package/dist/endpoints/certification.d.ts +16 -1
  26. package/dist/endpoints/certification.d.ts.map +1 -1
  27. package/dist/endpoints/certification.js +16 -1
  28. package/dist/endpoints/changes.d.ts +23 -1
  29. package/dist/endpoints/changes.d.ts.map +1 -1
  30. package/dist/endpoints/changes.js +26 -4
  31. package/dist/endpoints/collections.d.ts +26 -1
  32. package/dist/endpoints/collections.d.ts.map +1 -1
  33. package/dist/endpoints/collections.js +26 -1
  34. package/dist/endpoints/companies.d.ts +23 -1
  35. package/dist/endpoints/companies.d.ts.map +1 -1
  36. package/dist/endpoints/companies.js +23 -1
  37. package/dist/endpoints/configuration.d.ts +12 -1
  38. package/dist/endpoints/configuration.d.ts.map +1 -1
  39. package/dist/endpoints/configuration.js +12 -1
  40. package/dist/endpoints/credits.d.ts +13 -1
  41. package/dist/endpoints/credits.d.ts.map +1 -1
  42. package/dist/endpoints/credits.js +13 -1
  43. package/dist/endpoints/discover.d.ts +18 -55
  44. package/dist/endpoints/discover.d.ts.map +1 -1
  45. package/dist/endpoints/discover.js +18 -1
  46. package/dist/endpoints/find.d.ts +14 -1
  47. package/dist/endpoints/find.d.ts.map +1 -1
  48. package/dist/endpoints/find.js +14 -1
  49. package/dist/endpoints/genre.d.ts +18 -7
  50. package/dist/endpoints/genre.d.ts.map +1 -1
  51. package/dist/endpoints/genre.js +18 -1
  52. package/dist/endpoints/keywords.d.ts +19 -1
  53. package/dist/endpoints/keywords.d.ts.map +1 -1
  54. package/dist/endpoints/keywords.js +22 -4
  55. package/dist/endpoints/movies.d.ts +115 -9
  56. package/dist/endpoints/movies.d.ts.map +1 -1
  57. package/dist/endpoints/movies.js +115 -3
  58. package/dist/endpoints/networks.d.ts +23 -1
  59. package/dist/endpoints/networks.d.ts.map +1 -1
  60. package/dist/endpoints/networks.js +23 -1
  61. package/dist/endpoints/people.d.ts +69 -1
  62. package/dist/endpoints/people.d.ts.map +1 -1
  63. package/dist/endpoints/people.js +69 -1
  64. package/dist/endpoints/review.d.ts +13 -1
  65. package/dist/endpoints/review.d.ts.map +1 -1
  66. package/dist/endpoints/review.js +13 -1
  67. package/dist/endpoints/search.d.ts +43 -24
  68. package/dist/endpoints/search.d.ts.map +1 -1
  69. package/dist/endpoints/search.js +43 -1
  70. package/dist/endpoints/trending.d.ts +17 -2
  71. package/dist/endpoints/trending.d.ts.map +1 -1
  72. package/dist/endpoints/trending.js +16 -1
  73. package/dist/endpoints/tvEpisodes.d.ts +48 -11
  74. package/dist/endpoints/tvEpisodes.d.ts.map +1 -1
  75. package/dist/endpoints/tvEpisodes.js +50 -1
  76. package/dist/endpoints/tvSeasons.d.ts +56 -11
  77. package/dist/endpoints/tvSeasons.d.ts.map +1 -1
  78. package/dist/endpoints/tvSeasons.js +58 -1
  79. package/dist/endpoints/tvShows.d.ts +135 -4
  80. package/dist/endpoints/tvShows.d.ts.map +1 -1
  81. package/dist/endpoints/tvShows.js +134 -3
  82. package/dist/index.d.ts +1 -1
  83. package/dist/index.js +1 -1
  84. package/package.json +4 -3
  85. package/src/@types/endpoints/configuration.ts +1 -0
  86. package/src/@types/endpoints/discover.ts +56 -0
  87. package/src/@types/endpoints/genre.ts +3 -0
  88. package/src/@types/endpoints/index.ts +1 -0
  89. package/src/@types/endpoints/movies.ts +8 -1
  90. package/src/@types/endpoints/search.ts +30 -1
  91. package/src/@types/endpoints/tvEpisode.ts +15 -1
  92. package/src/@types/endpoints/tvSeasons.ts +15 -1
  93. package/src/endpoints/account.ts +11 -0
  94. package/src/endpoints/certification.ts +15 -0
  95. package/src/endpoints/changes.ts +25 -3
  96. package/src/endpoints/collections.ts +25 -0
  97. package/src/endpoints/companies.ts +22 -0
  98. package/src/endpoints/configuration.ts +11 -0
  99. package/src/endpoints/credits.ts +12 -0
  100. package/src/endpoints/discover.ts +24 -57
  101. package/src/endpoints/find.ts +13 -0
  102. package/src/endpoints/genre.ts +18 -5
  103. package/src/endpoints/keywords.ts +21 -3
  104. package/src/endpoints/movies.ts +114 -8
  105. package/src/endpoints/networks.ts +22 -0
  106. package/src/endpoints/people.ts +68 -0
  107. package/src/endpoints/review.ts +12 -0
  108. package/src/endpoints/search.ts +47 -32
  109. package/src/endpoints/trending.ts +17 -2
  110. package/src/endpoints/tvEpisodes.ts +50 -13
  111. package/src/endpoints/tvSeasons.ts +58 -13
  112. package/src/endpoints/tvShows.ts +138 -3
@@ -1,25 +1,70 @@
1
- import { AggregateCredits, AppendToResponse, AppendToResponseTvSeasonKey, BaseEndpoint, ChangeOption, Changes, Credits, ExternalIds, Images, LanguageOption, SeasonDetails, SeasonSelection, Translations, TvSeasonChangeValue, Videos } from '@/@types';
2
- export interface TvSeasonImageSearchOptions extends LanguageOption {
1
+ import { AggregateCredits, AppendToResponse, AppendToResponseTvSeasonKey, BaseEndpoint, ChangeOption, Changes, Credits, ExternalIds, Images, LanguageOption, SeasonDetails, SeasonSelection, 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 {
3
6
  /**
4
- * a list of ISO-639-1 values to query
7
+ * Constructs a new TvSeasonsEndpoint instance.
8
+ * @param {string} access_token - The access token used for authentication.
5
9
  */
6
- include_image_language?: string[];
7
- }
8
- export interface TvSeasonVideoSearchOptions extends LanguageOption {
10
+ constructor(access_token: string);
9
11
  /**
10
- * a list of ISO-639-1 values to query
12
+ * Retrieves details of a specific TV season asynchronously.
13
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
14
+ * @param {AppendToResponseTvSeasonKey[]} [appendToResponse] - Additional data to append to the response.
15
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
16
+ * @returns {Promise<AppendToResponse<SeasonDetails, AppendToResponseTvSeasonKey[], 'tvSeason'>>}
17
+ * A Promise that resolves with the details of the TV season.
11
18
  */
12
- include_video_language?: string[];
13
- }
14
- export declare class TvSeasonsEndpoint extends BaseEndpoint {
15
- constructor(access_token: string);
16
19
  details<T extends AppendToResponseTvSeasonKey[] | undefined>(seasonSelection: SeasonSelection, appendToResponse?: T, options?: LanguageOption): Promise<AppendToResponse<SeasonDetails, T, "tvSeason">>;
20
+ /**
21
+ * Retrieves aggregate credits for a specific TV season asynchronously.
22
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
23
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
24
+ * @returns {Promise<AggregateCredits>} A Promise that resolves with the aggregate credits for the TV season.
25
+ */
17
26
  aggregateCredits(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<AggregateCredits>;
27
+ /**
28
+ * Retrieves changes related to a specific TV season asynchronously.
29
+ * @param {number} seasonId - The ID of the TV season.
30
+ * @param {ChangeOption} [options] - Optional parameters for specifying changes.
31
+ * @returns {Promise<Changes<TvSeasonChangeValue>>} A Promise that resolves with the changes related to the TV season.
32
+ */
18
33
  changes(seasonId: number, options?: ChangeOption): Promise<Changes<TvSeasonChangeValue>>;
34
+ /**
35
+ * Retrieves credits for a specific TV season asynchronously.
36
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
37
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
38
+ * @returns {Promise<Credits>} A Promise that resolves with the credits for the TV season.
39
+ */
19
40
  credits(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<Credits>;
41
+ /**
42
+ * Retrieves external IDs for a specific TV season asynchronously.
43
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
44
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
45
+ * @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs for the TV season.
46
+ */
20
47
  externalIds(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<ExternalIds>;
48
+ /**
49
+ * Retrieves images for a specific TV season asynchronously.
50
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
51
+ * @param {TvSeasonImageSearchOptions} [options] - Optional parameters for specifying image search options.
52
+ * @returns {Promise<Images>} A Promise that resolves with the images for the TV season.
53
+ */
21
54
  images(seasonSelection: SeasonSelection, options?: TvSeasonImageSearchOptions): Promise<Images>;
55
+ /**
56
+ * Retrieves videos for a specific TV season asynchronously.
57
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
58
+ * @param {TvSeasonVideoSearchOptions} [options] - Optional parameters for specifying video search options.
59
+ * @returns {Promise<Videos>} A Promise that resolves with the videos for the TV season.
60
+ */
22
61
  videos(seasonSelection: SeasonSelection, options?: TvSeasonVideoSearchOptions): Promise<Videos>;
62
+ /**
63
+ * Retrieves translations for a specific TV season asynchronously.
64
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
65
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
66
+ * @returns {Promise<Translations>} A Promise that resolves with the translations for the TV season.
67
+ */
23
68
  translations(seasonSelection: SeasonSelection, options?: LanguageOption): Promise<Translations>;
24
69
  }
25
70
  //# sourceMappingURL=tvSeasons.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tvSeasons.d.ts","sourceRoot":"","sources":["../../src/endpoints/tvSeasons.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,2BAA2B,EAC3B,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,OAAO,EACP,WAAW,EACX,MAAM,EACN,cAAc,EACd,aAAa,EACb,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,MAAM,EACP,MAAM,UAAU,CAAC;AAMlB,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;AAED,qBAAa,iBAAkB,SAAQ,YAAY;gBACrC,YAAY,EAAE,MAAM;IAI1B,OAAO,CAAC,CAAC,SAAS,2BAA2B,EAAE,GAAG,SAAS,EAC/D,eAAe,EAAE,eAAe,EAChC,gBAAgB,CAAC,EAAE,CAAC,EACpB,OAAO,CAAC,EAAE,cAAc;IAapB,gBAAgB,CAAC,eAAe,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc;IAI3E,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;IAIhD,OAAO,CAAC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,CAAC,EAAE,cAAc;IAI5E;;;;;OAKG;IACG,MAAM,CAAC,eAAe,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,0BAA0B;IAQnF;;;;;OAKG;IACG,MAAM,CAAC,eAAe,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,0BAA0B;IAQnF;;;;;OAKG;IACG,YAAY,CAAC,eAAe,EAAE,eAAe,EAAE,OAAO,CAAC,EAAE,cAAc;CAG9E"}
@@ -10,40 +10,85 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.TvSeasonsEndpoint = void 0;
13
- const _types_1 = require("@/@types");
13
+ const _types_1 = require("../@types");
14
14
  const BASE_SEASON = (seasonSelection) => {
15
15
  return `/tv/${seasonSelection.tvShowID}/season/${seasonSelection.seasonNumber}`;
16
16
  };
17
+ /**
18
+ * Represents an endpoint for accessing TV season-related information.
19
+ */
17
20
  class TvSeasonsEndpoint extends _types_1.BaseEndpoint {
21
+ /**
22
+ * Constructs a new TvSeasonsEndpoint instance.
23
+ * @param {string} access_token - The access token used for authentication.
24
+ */
18
25
  constructor(access_token) {
19
26
  super(access_token);
20
27
  }
28
+ /**
29
+ * Retrieves details of a specific TV season asynchronously.
30
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
31
+ * @param {AppendToResponseTvSeasonKey[]} [appendToResponse] - Additional data to append to the response.
32
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
33
+ * @returns {Promise<AppendToResponse<SeasonDetails, AppendToResponseTvSeasonKey[], 'tvSeason'>>}
34
+ * A Promise that resolves with the details of the TV season.
35
+ */
21
36
  details(seasonSelection, appendToResponse, options) {
22
37
  return __awaiter(this, void 0, void 0, function* () {
23
38
  const combinedOptions = Object.assign({ append_to_response: appendToResponse ? appendToResponse.join(',') : undefined }, options);
24
39
  return yield this.api.get(`${BASE_SEASON(seasonSelection)}`, combinedOptions);
25
40
  });
26
41
  }
42
+ /**
43
+ * Retrieves aggregate credits 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<AggregateCredits>} A Promise that resolves with the aggregate credits for the TV season.
47
+ */
27
48
  aggregateCredits(seasonSelection, options) {
28
49
  return __awaiter(this, void 0, void 0, function* () {
29
50
  return yield this.api.get(`${BASE_SEASON(seasonSelection)}/aggregate_credits`, options);
30
51
  });
31
52
  }
53
+ /**
54
+ * Retrieves changes related to a specific TV season asynchronously.
55
+ * @param {number} seasonId - The ID of the TV season.
56
+ * @param {ChangeOption} [options] - Optional parameters for specifying changes.
57
+ * @returns {Promise<Changes<TvSeasonChangeValue>>} A Promise that resolves with the changes related to the TV season.
58
+ */
32
59
  changes(seasonId, options) {
33
60
  return __awaiter(this, void 0, void 0, function* () {
34
61
  return yield this.api.get(`/tv/season/${seasonId}/changes`, options);
35
62
  });
36
63
  }
64
+ /**
65
+ * Retrieves credits 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<Credits>} A Promise that resolves with the credits for the TV season.
69
+ */
37
70
  credits(seasonSelection, options) {
38
71
  return __awaiter(this, void 0, void 0, function* () {
39
72
  return yield this.api.get(`${BASE_SEASON(seasonSelection)}/credits`, options);
40
73
  });
41
74
  }
75
+ /**
76
+ * Retrieves external IDs for a specific TV season asynchronously.
77
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
78
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
79
+ * @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs for the TV season.
80
+ */
42
81
  externalIds(seasonSelection, options) {
43
82
  return __awaiter(this, void 0, void 0, function* () {
44
83
  return yield this.api.get(`${BASE_SEASON(seasonSelection)}/external_ids`, options);
45
84
  });
46
85
  }
86
+ /**
87
+ * Retrieves images for a specific TV season asynchronously.
88
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
89
+ * @param {TvSeasonImageSearchOptions} [options] - Optional parameters for specifying image search options.
90
+ * @returns {Promise<Images>} A Promise that resolves with the images for the TV season.
91
+ */
47
92
  images(seasonSelection, options) {
48
93
  var _a;
49
94
  return __awaiter(this, void 0, void 0, function* () {
@@ -54,6 +99,12 @@ class TvSeasonsEndpoint extends _types_1.BaseEndpoint {
54
99
  return yield this.api.get(`${BASE_SEASON(seasonSelection)}/images`, computedOptions);
55
100
  });
56
101
  }
102
+ /**
103
+ * Retrieves videos for a specific TV season asynchronously.
104
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
105
+ * @param {TvSeasonVideoSearchOptions} [options] - Optional parameters for specifying video search options.
106
+ * @returns {Promise<Videos>} A Promise that resolves with the videos for the TV season.
107
+ */
57
108
  videos(seasonSelection, options) {
58
109
  var _a;
59
110
  return __awaiter(this, void 0, void 0, function* () {
@@ -64,6 +115,12 @@ class TvSeasonsEndpoint extends _types_1.BaseEndpoint {
64
115
  return yield this.api.get(`${BASE_SEASON(seasonSelection)}/videos`, computedOptions);
65
116
  });
66
117
  }
118
+ /**
119
+ * Retrieves translations for a specific TV season asynchronously.
120
+ * @param {SeasonSelection} seasonSelection - The selection criteria for the TV season.
121
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
122
+ * @returns {Promise<Translations>} A Promise that resolves with the translations for the TV season.
123
+ */
67
124
  translations(seasonSelection, options) {
68
125
  return __awaiter(this, void 0, void 0, function* () {
69
126
  return yield this.api.get(`${BASE_SEASON(seasonSelection)}/translations`, options);
@@ -1,33 +1,164 @@
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, TopRatedtv, Translations, TvShowChangeValue, TvShowDetails, TvShowImageOptions, TvShowVideoOptions, Videos, WatchProviders, tvAiringToday } from '@/@types';
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, TopRatedtv, Translations, TvShowChangeValue, TvShowDetails, TvShowImageOptions, TvShowVideoOptions, Videos, WatchProviders, tvAiringToday } from '../@types';
2
+ /**
3
+ * Represents an endpoint for accessing TV show-related information.
4
+ */
2
5
  export declare class TvShowsEndpoint extends BaseEndpoint {
3
6
  protected readonly access_token: string;
7
+ /**
8
+ * Constructs a new TvShowsEndpoint instance.
9
+ * @param {string} access_token - The access token used for authentication.
10
+ */
4
11
  constructor(access_token: string);
5
- details<T extends AppendToResponseTvKey[] | undefined>(id: number, appendToResponse?: T, language?: string): Promise<AppendToResponse<TvShowDetails, T, "tvShow">>;
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
+ */
6
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
+ */
7
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
+ */
8
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
+ */
9
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
+ */
10
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
+ */
11
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
+ */
12
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
+ */
13
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
+ */
14
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
+ */
15
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
+ */
16
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
+ */
17
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
+ */
18
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
+ */
19
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
+ */
20
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
+ */
21
126
  videos(id: number, options?: TvShowVideoOptions): Promise<Videos>;
22
127
  /**
23
- * Powered by JustWatch
24
- * @param id
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.
25
132
  */
26
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
+ */
27
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
+ */
28
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
+ */
29
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
+ */
30
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
+ */
31
162
  topRated(options?: PageOption & LanguageOption): Promise<TopRatedtv>;
32
163
  }
33
164
  //# sourceMappingURL=tvShows.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tvShows.d.ts","sourceRoot":"","sources":["../../src/endpoints/tvShows.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,iBAAiB,EACjB,gBAAgB,EAChB,qBAAqB,EACrB,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,cAAc,EACd,OAAO,EACP,aAAa,EACb,WAAW,EACX,MAAM,EACN,QAAQ,EACR,cAAc,EACd,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,SAAS,EACT,eAAe,EACf,OAAO,EACP,oBAAoB,EACpB,aAAa,EACb,SAAS,EACT,cAAc,EACd,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,aAAa,EACb,kBAAkB,EAClB,kBAAkB,EAClB,MAAM,EACN,cAAc,EACd,aAAa,EACd,MAAM,UAAU,CAAC;AAIlB,qBAAa,eAAgB,SAAQ,YAAY;IACnC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM;gBAApB,YAAY,EAAE,MAAM;IAI7C,OAAO,CAAC,CAAC,SAAS,qBAAqB,EAAE,GAAG,SAAS,EAAE,EAAE,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,CAAC,EAAE,QAAQ,CAAC,EAAE,MAAM;IAQ1G,iBAAiB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAIzD,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAIhF,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;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G,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC;IAIlF;;;;OAIG;IACG,oBAAoB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAIrE;;;;;OAKG;IACG,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,GAAG,OAAO,CAAC,SAAS,CAAC;IAIpF;;;;OAIG;IACG,YAAY,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAIrD;;;;;OAKG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC;IAQvE;;;;;OAKG;IACG,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAIzD;;;OAGG;IACG,MAAM,IAAI,OAAO,CAAC,QAAQ,CAAC;IAIjC;;;;OAIG;IACG,QAAQ,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,cAAc,GAAG,cAAc,GAAG,OAAO,CAAC,QAAQ,CAAC;IAIzF;;;;OAIG;IACG,WAAW,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,cAAc,GAAG,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAIjG;;;;OAIG;IACG,OAAO,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,cAAc,GAAG,OAAO,CAAC,SAAS,CAAC;IAIxE;;;;OAIG;IACG,QAAQ,CAAC,OAAO,CAAC,EAAE,UAAU,GAAG,cAAc,GAAG,OAAO,CAAC,UAAU,CAAC;CAG3E"}
@@ -10,13 +10,28 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.TvShowsEndpoint = void 0;
13
- const _types_1 = require("@/@types");
13
+ const _types_1 = require("../@types");
14
14
  const BASE_TV = '/tv';
15
+ /**
16
+ * Represents an endpoint for accessing TV show-related information.
17
+ */
15
18
  class TvShowsEndpoint extends _types_1.BaseEndpoint {
19
+ /**
20
+ * Constructs a new TvShowsEndpoint 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 TV show asynchronously.
29
+ * @param {number} id - The ID of the TV show.
30
+ * @param {AppendToResponseTvKey[]} [appendToResponse] - Additional data to append to the response.
31
+ * @param {string} [language] - The language for the response.
32
+ * @returns {Promise<AppendToResponse<TvShowDetails, AppendToResponseTvKey[], 'tvShow'>>}
33
+ * A Promise that resolves with the details of the TV show.
34
+ */
20
35
  details(id, appendToResponse, language) {
21
36
  return __awaiter(this, void 0, void 0, function* () {
22
37
  const options = {
@@ -26,46 +41,97 @@ class TvShowsEndpoint extends _types_1.BaseEndpoint {
26
41
  return yield this.api.get(`${BASE_TV}/${id}`, options);
27
42
  });
28
43
  }
44
+ /**
45
+ * Retrieves alternative titles of a specific TV show asynchronously.
46
+ * @param {number} id - The ID of the TV show.
47
+ * @returns {Promise<AlternativeTitles>} A Promise that resolves with the alternative titles of the TV show.
48
+ */
29
49
  alternativeTitles(id) {
30
50
  return __awaiter(this, void 0, void 0, function* () {
31
51
  return yield this.api.get(`${BASE_TV}/${id}/alternative_titles`);
32
52
  });
33
53
  }
54
+ /**
55
+ * Retrieves changes for a specific TV show asynchronously.
56
+ * @param {number} id - The ID of the TV show.
57
+ * @param {ChangeOption} [options] - Additional options for the request.
58
+ * @returns {Promise<Changes<TvShowChangeValue>>}
59
+ * A Promise that resolves with the changes for the TV show.
60
+ */
34
61
  changes(id, options) {
35
62
  return __awaiter(this, void 0, void 0, function* () {
36
63
  return yield this.api.get(`${BASE_TV}/${id}/changes`, options);
37
64
  });
38
65
  }
66
+ /**
67
+ * Retrieves content ratings for a specific TV show asynchronously.
68
+ * @param {number} id - The ID of the TV show.
69
+ * @returns {Promise<ContentRatings>} A Promise that resolves with the content ratings of the TV show.
70
+ */
39
71
  contentRatings(id) {
40
72
  return __awaiter(this, void 0, void 0, function* () {
41
73
  return yield this.api.get(`${BASE_TV}/${id}/content_ratings`);
42
74
  });
43
75
  }
76
+ /**
77
+ * Retrieves aggregate credits for a specific TV show asynchronously.
78
+ * @param {number} id - The ID of the TV show.
79
+ * @param {LanguageOption} [options] - Additional options for the request.
80
+ * @returns {Promise<AggregateCredits>} A Promise that resolves with the aggregate credits of the TV show.
81
+ */
44
82
  aggregateCredits(id, options) {
45
83
  return __awaiter(this, void 0, void 0, function* () {
46
84
  return yield this.api.get(`${BASE_TV}/${id}/aggregate_credits`, options);
47
85
  });
48
86
  }
87
+ /**
88
+ * Retrieves credits for a specific TV show asynchronously.
89
+ * @param {number} id - The ID of the TV show.
90
+ * @param {LanguageOption} [options] - Additional options for the request.
91
+ * @returns {Promise<Credits>} A Promise that resolves with the credits of the TV show.
92
+ */
49
93
  credits(id, options) {
50
94
  return __awaiter(this, void 0, void 0, function* () {
51
95
  return yield this.api.get(`${BASE_TV}/${id}/credits`, options);
52
96
  });
53
97
  }
98
+ /**
99
+ * Retrieves details of a specific season of a TV show asynchronously.
100
+ * @param {number} tvId - The ID of the TV show.
101
+ * @param {number} seasonNumber - The season number.
102
+ * @returns {Promise<SeasonDetails>} A Promise that resolves with the details of the season.
103
+ */
54
104
  season(tvId, seasonNumber) {
55
105
  return __awaiter(this, void 0, void 0, function* () {
56
106
  return yield this.api.get(`${BASE_TV}/${tvId}/season/${seasonNumber}`);
57
107
  });
58
108
  }
109
+ /**
110
+ * Retrieves episode groups for a specific TV show asynchronously.
111
+ * @param {number} id - The ID of the TV show.
112
+ * @returns {Promise<EpisodeGroups>} A Promise that resolves with the episode groups of the TV show.
113
+ */
59
114
  episodeGroups(id) {
60
115
  return __awaiter(this, void 0, void 0, function* () {
61
116
  return yield this.api.get(`${BASE_TV}/${id}/episode_groups`);
62
117
  });
63
118
  }
119
+ /**
120
+ * Retrieves external IDs for a specific TV show asynchronously.
121
+ * @param {number} id - The ID of the TV show.
122
+ * @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs of the TV show.
123
+ */
64
124
  externalIds(id) {
65
125
  return __awaiter(this, void 0, void 0, function* () {
66
126
  return yield this.api.get(`${BASE_TV}/${id}/external_ids`);
67
127
  });
68
128
  }
129
+ /**
130
+ * Retrieves images for a specific TV show asynchronously.
131
+ * @param {number} id - The ID of the TV show.
132
+ * @param {TvShowImageOptions} [options] - Additional options for the request.
133
+ * @returns {Promise<Images>} A Promise that resolves with the images of the TV show.
134
+ */
69
135
  images(id, options) {
70
136
  var _a;
71
137
  return __awaiter(this, void 0, void 0, function* () {
@@ -76,36 +142,75 @@ class TvShowsEndpoint extends _types_1.BaseEndpoint {
76
142
  return yield this.api.get(`${BASE_TV}/${id}/images`, computedOptions);
77
143
  });
78
144
  }
145
+ /**
146
+ * Retrieves keywords for a specific TV show asynchronously.
147
+ * @param {number} id - The ID of the TV show.
148
+ * @returns {Promise<Keywords>} A Promise that resolves with the keywords of the TV show.
149
+ */
79
150
  keywords(id) {
80
151
  return __awaiter(this, void 0, void 0, function* () {
81
152
  return yield this.api.get(`${BASE_TV}/${id}/keywords`);
82
153
  });
83
154
  }
155
+ /**
156
+ * Retrieves recommendations for a specific TV show asynchronously.
157
+ * @param {number} id - The ID of the TV show.
158
+ * @param {LanguageOption & PageOption} [options] - Additional options for the request.
159
+ * @returns {Promise<Recommendations>} A Promise that resolves with the recommendations for the TV show.
160
+ */
84
161
  recommendations(id, options) {
85
162
  return __awaiter(this, void 0, void 0, function* () {
86
163
  return yield this.api.get(`${BASE_TV}/${id}/recommendations`, options);
87
164
  });
88
165
  }
166
+ /**
167
+ * Retrieves reviews for a specific TV show asynchronously.
168
+ * @param {number} id - The ID of the TV show.
169
+ * @param {LanguageOption & PageOption} [options] - Additional options for the request.
170
+ * @returns {Promise<Reviews>} A Promise that resolves with the reviews of the TV show.
171
+ */
89
172
  reviews(id, options) {
90
173
  return __awaiter(this, void 0, void 0, function* () {
91
174
  return yield this.api.get(`${BASE_TV}/${id}/reviews`, options);
92
175
  });
93
176
  }
177
+ /**
178
+ * Retrieves information about whether the TV show was screened theatrically asynchronously.
179
+ * @param {number} id - The ID of the TV show.
180
+ * @returns {Promise<ScreenedTheatrically>} A Promise that resolves with information about theatrical screenings.
181
+ */
94
182
  screenedTheatrically(id) {
95
183
  return __awaiter(this, void 0, void 0, function* () {
96
184
  return yield this.api.get(`${BASE_TV}/${id}/screened_theatrically`);
97
185
  });
98
186
  }
187
+ /**
188
+ * Retrieves similar TV shows for a specific TV show asynchronously.
189
+ * @param {number} id - The ID of the TV show.
190
+ * @param {LanguageOption & PageOption} [options] - Additional options for the request.
191
+ * @returns {Promise<Similartv>} A Promise that resolves with the similar TV shows.
192
+ */
99
193
  similar(id, options) {
100
194
  return __awaiter(this, void 0, void 0, function* () {
101
195
  return yield this.api.get(`${BASE_TV}/${id}/similar`, options);
102
196
  });
103
197
  }
198
+ /**
199
+ * Retrieves translations for a specific TV show asynchronously.
200
+ * @param {number} id - The ID of the TV show.
201
+ * @returns {Promise<Translations>} A Promise that resolves with the translations of the TV show.
202
+ */
104
203
  translations(id) {
105
204
  return __awaiter(this, void 0, void 0, function* () {
106
205
  return yield this.api.get(`${BASE_TV}/${id}/translations`);
107
206
  });
108
207
  }
208
+ /**
209
+ * Retrieves videos for a specific TV show asynchronously.
210
+ * @param {number} id - The ID of the TV show.
211
+ * @param {TvShowVideoOptions} [options] - Additional options for the request.
212
+ * @returns {Promise<Videos>} A Promise that resolves with the videos of the TV show.
213
+ */
109
214
  videos(id, options) {
110
215
  var _a;
111
216
  return __awaiter(this, void 0, void 0, function* () {
@@ -117,34 +222,60 @@ class TvShowsEndpoint extends _types_1.BaseEndpoint {
117
222
  });
118
223
  }
119
224
  /**
120
- * Powered by JustWatch
121
- * @param id
225
+ * Retrieves watch providers for a specific TV show asynchronously.
226
+ * Powered by JustWatch.
227
+ * @param {number} id - The ID of the TV show.
228
+ * @returns {Promise<WatchProviders>} A Promise that resolves with the watch providers of the TV show.
122
229
  */
123
230
  watchProviders(id) {
124
231
  return __awaiter(this, void 0, void 0, function* () {
125
232
  return yield this.api.get(`${BASE_TV}/${id}/watch/providers`);
126
233
  });
127
234
  }
235
+ /**
236
+ * Retrieves the latest TV show asynchronously.
237
+ * @returns {Promise<Latesttv>} A Promise that resolves with the latest TV show.
238
+ */
128
239
  latest() {
129
240
  return __awaiter(this, void 0, void 0, function* () {
130
241
  return yield this.api.get(`${BASE_TV}/latest`);
131
242
  });
132
243
  }
244
+ /**
245
+ * Retrieves TV shows that are currently on the air asynchronously.
246
+ * @param {PageOption & LanguageOption & TimezoneOption} [options] - Additional options for the request.
247
+ * @returns {Promise<OnTheAir>} A Promise that resolves with TV shows currently on the air.
248
+ */
133
249
  onTheAir(options) {
134
250
  return __awaiter(this, void 0, void 0, function* () {
135
251
  return yield this.api.get(`${BASE_TV}/on_the_air`, options);
136
252
  });
137
253
  }
254
+ /**
255
+ * Retrieves TV shows that are airing today asynchronously.
256
+ * @param {PageOption & LanguageOption & TimezoneOption} [options] - Additional options for the request.
257
+ * @returns {Promise<tvAiringToday>} A Promise that resolves with TV shows airing today.
258
+ */
138
259
  airingToday(options) {
139
260
  return __awaiter(this, void 0, void 0, function* () {
140
261
  return yield this.api.get(`${BASE_TV}/airing_today`, options);
141
262
  });
142
263
  }
264
+ /**
265
+ * Retrieves popular TV shows asynchronously.
266
+ * @param {PageOption & LanguageOption} [options] - Additional options for the request.
267
+ * @returns {Promise<Populartv>} A Promise that resolves with popular TV shows.
268
+ */
143
269
  popular(options) {
144
270
  return __awaiter(this, void 0, void 0, function* () {
145
271
  return yield this.api.get(`${BASE_TV}/popular`, options);
146
272
  });
147
273
  }
274
+ /**
275
+ * Retrieves top-rated TV shows asynchronously.
276
+ * @param {PageOption & LanguageOption} [options] - Additional options for the request.
277
+ * @returns {Promise<TopRatedtv>} A Promise that resolves with top-rated TV shows.
278
+ */
148
279
  topRated(options) {
149
280
  return __awaiter(this, void 0, void 0, function* () {
150
281
  return yield this.api.get(`${BASE_TV}/top_rated`, options);