@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,36 +1,142 @@
1
- import { AlternativeTitles, AppendToResponse, AppendToResponseMovieKey, BaseEndpoint, ChangeOption, Changes, Credits, ExternalIds, Images, Keywords, LanguageOption, LatestMovie, MovieChangeValue, MovieDetails, MovieLists, MoviesPlayingNow, PageOption, PopularMovies, Recommendations, RegionOption, ReleaseDates, Reviews, SimilarMovies, TopRatedMovies, Translations, UpcomingMovies, Videos, WatchProviders } from '@/@types';
2
- export interface MoviesImageSearchOptions extends LanguageOption {
3
- /**
4
- * a list of ISO-639-1 values to query
5
- */
6
- include_image_language?: string[];
7
- }
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, TopRatedMovies, Translations, UpcomingMovies, Videos, WatchProviders } from '../@types';
2
+ /**
3
+ * Represents an endpoint for accessing movie-related information.
4
+ */
8
5
  export declare class MoviesEndpoint extends BaseEndpoint {
9
6
  protected readonly access_token: string;
7
+ /**
8
+ * Constructs a new MoviesEndpoint instance.
9
+ * @param {string} access_token - The access token used for authentication.
10
+ */
10
11
  constructor(access_token: string);
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
+ */
11
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
+ */
12
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
+ */
13
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
+ */
14
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
+ */
15
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
+ */
16
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
+ */
17
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
+ */
18
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
+ */
19
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
+ */
20
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
+ */
21
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
+ */
22
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
+ */
23
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
+ */
24
105
  videos(id: number, options?: LanguageOption): Promise<Videos>;
25
106
  /**
26
- * Powered by JustWatch
27
- * @param id
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.
28
110
  */
29
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
+ */
30
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
+ */
31
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
+ */
32
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
+ */
33
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
+ */
34
140
  upcoming(options?: PageOption & LanguageOption & RegionOption): Promise<UpcomingMovies>;
35
141
  }
36
142
  //# sourceMappingURL=movies.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"movies.d.ts","sourceRoot":"","sources":["../../src/endpoints/movies.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,EACxB,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,OAAO,EACP,WAAW,EACX,MAAM,EACN,QAAQ,EACR,cAA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AAO,CAAC,EAAE,UAAU,GAAG,cAAc,GAAG,YAAY,GAAG,OAAO,CAAC,cAAc,CAAC;CAG9F"}
@@ -10,13 +10,27 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.MoviesEndpoint = void 0;
13
- const _types_1 = require("@/@types");
13
+ const _types_1 = require("../@types");
14
14
  const BASE_MOVIE = '/movie';
15
+ /**
16
+ * Represents an endpoint for accessing movie-related information.
17
+ */
15
18
  class MoviesEndpoint extends _types_1.BaseEndpoint {
19
+ /**
20
+ * Constructs a new MoviesEndpoint 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 movie asynchronously.
29
+ * @param {number} id - The ID of the movie.
30
+ * @param {AppendToResponseMovieKey[]} [appendToResponse] - Optional keys to append to the response.
31
+ * @param {string} [language] - Optional parameter for specifying the language.
32
+ * @returns {Promise<AppendToResponse<MovieDetails, AppendToResponseMovieKey[], 'movie'>>} A Promise that resolves with the details of the movie.
33
+ */
20
34
  details(id, appendToResponse, language) {
21
35
  return __awaiter(this, void 0, void 0, function* () {
22
36
  const options = {
@@ -26,26 +40,54 @@ class MoviesEndpoint extends _types_1.BaseEndpoint {
26
40
  return yield this.api.get(`${BASE_MOVIE}/${id}`, options);
27
41
  });
28
42
  }
43
+ /**
44
+ * Retrieves alternative titles of a specific movie asynchronously.
45
+ * @param {number} id - The ID of the movie.
46
+ * @returns {Promise<AlternativeTitles>} A Promise that resolves with the alternative titles of the movie.
47
+ */
29
48
  alternativeTitles(id) {
30
49
  return __awaiter(this, void 0, void 0, function* () {
31
50
  return yield this.api.get(`${BASE_MOVIE}/${id}/alternative_titles`);
32
51
  });
33
52
  }
53
+ /**
54
+ * Retrieves changes made to a specific movie asynchronously.
55
+ * @param {number} id - The ID of the movie.
56
+ * @param {ChangeOption} [options] - Optional parameters for filtering changes.
57
+ * @returns {Promise<Changes<MovieChangeValue>>} A Promise that resolves with the changes made to the movie.
58
+ */
34
59
  changes(id, options) {
35
60
  return __awaiter(this, void 0, void 0, function* () {
36
61
  return yield this.api.get(`${BASE_MOVIE}/${id}/changes`, options);
37
62
  });
38
63
  }
64
+ /**
65
+ * Retrieves credits of a specific movie asynchronously.
66
+ * @param {number} id - The ID of the movie.
67
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
68
+ * @returns {Promise<Credits>} A Promise that resolves with the credits of the movie.
69
+ */
39
70
  credits(id, options) {
40
71
  return __awaiter(this, void 0, void 0, function* () {
41
72
  return yield this.api.get(`${BASE_MOVIE}/${id}/credits`, options);
42
73
  });
43
74
  }
75
+ /**
76
+ * Retrieves external IDs of a specific movie asynchronously.
77
+ * @param {number} id - The ID of the movie.
78
+ * @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs of the movie.
79
+ */
44
80
  externalIds(id) {
45
81
  return __awaiter(this, void 0, void 0, function* () {
46
82
  return yield this.api.get(`${BASE_MOVIE}/${id}/external_ids`);
47
83
  });
48
84
  }
85
+ /**
86
+ * Retrieves images of a specific movie asynchronously.
87
+ * @param {number} id - The ID of the movie.
88
+ * @param {MoviesImageSearchOptions} [options] - Optional parameters for specifying image search options.
89
+ * @returns {Promise<Images>} A Promise that resolves with the images of the movie.
90
+ */
49
91
  images(id, options) {
50
92
  var _a;
51
93
  return __awaiter(this, void 0, void 0, function* () {
@@ -56,75 +98,145 @@ class MoviesEndpoint extends _types_1.BaseEndpoint {
56
98
  return yield this.api.get(`${BASE_MOVIE}/${id}/images`, computedOptions);
57
99
  });
58
100
  }
101
+ /**
102
+ * Retrieves keywords of a specific movie asynchronously.
103
+ * @param {number} id - The ID of the movie.
104
+ * @returns {Promise<Keywords>} A Promise that resolves with the keywords of the movie.
105
+ */
59
106
  keywords(id) {
60
107
  return __awaiter(this, void 0, void 0, function* () {
61
108
  return yield this.api.get(`${BASE_MOVIE}/${id}/keywords`);
62
109
  });
63
110
  }
111
+ /**
112
+ * Retrieves lists containing a specific movie asynchronously.
113
+ * @param {number} id - The ID of the movie.
114
+ * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
115
+ * @returns {Promise<MovieLists>} A Promise that resolves with the lists containing the movie.
116
+ */
64
117
  lists(id, options) {
65
118
  return __awaiter(this, void 0, void 0, function* () {
66
119
  return yield this.api.get(`${BASE_MOVIE}/${id}/lists`, options);
67
120
  });
68
121
  }
122
+ /**
123
+ * Retrieves recommendations for a specific movie asynchronously.
124
+ * @param {number} id - The ID of the movie.
125
+ * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
126
+ * @returns {Promise<Recommendations>} A Promise that resolves with the recommendations for the movie.
127
+ */
69
128
  recommendations(id, options) {
70
129
  return __awaiter(this, void 0, void 0, function* () {
71
130
  return yield this.api.get(`${BASE_MOVIE}/${id}/recommendations`, options);
72
131
  });
73
132
  }
133
+ /**
134
+ * Retrieves release dates of a specific movie asynchronously.
135
+ * @param {number} id - The ID of the movie.
136
+ * @returns {Promise<ReleaseDates>} A Promise that resolves with the release dates of the movie.
137
+ */
74
138
  releaseDates(id) {
75
139
  return __awaiter(this, void 0, void 0, function* () {
76
140
  return yield this.api.get(`${BASE_MOVIE}/${id}/release_dates`);
77
141
  });
78
142
  }
143
+ /**
144
+ * Retrieves reviews for a specific movie asynchronously.
145
+ * @param {number} id - The ID of the movie.
146
+ * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
147
+ * @returns {Promise<Reviews>} A Promise that resolves with the reviews for the movie.
148
+ */
79
149
  reviews(id, options) {
80
150
  return __awaiter(this, void 0, void 0, function* () {
81
151
  return yield this.api.get(`${BASE_MOVIE}/${id}/reviews`, options);
82
152
  });
83
153
  }
154
+ /**
155
+ * Retrieves similar movies for a specific movie asynchronously.
156
+ * @param {number} id - The ID of the movie.
157
+ * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
158
+ * @returns {Promise<SimilarMovies>} A Promise that resolves with the similar movies for the movie.
159
+ */
84
160
  similar(id, options) {
85
161
  return __awaiter(this, void 0, void 0, function* () {
86
162
  return yield this.api.get(`${BASE_MOVIE}/${id}/similar`, options);
87
163
  });
88
164
  }
165
+ /**
166
+ * Retrieves translations of a specific movie asynchronously.
167
+ * @param {number} id - The ID of the movie.
168
+ * @returns {Promise<Translations>} A Promise that resolves with the translations of the movie.
169
+ */
89
170
  translations(id) {
90
171
  return __awaiter(this, void 0, void 0, function* () {
91
172
  return yield this.api.get(`${BASE_MOVIE}/${id}/translations`);
92
173
  });
93
174
  }
175
+ /**
176
+ * Retrieves videos of a specific movie asynchronously.
177
+ * @param {number} id - The ID of the movie.
178
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
179
+ * @returns {Promise<Videos>} A Promise that resolves with the videos of the movie.
180
+ */
94
181
  videos(id, options) {
95
182
  return __awaiter(this, void 0, void 0, function* () {
96
183
  return yield this.api.get(`${BASE_MOVIE}/${id}/videos`, options);
97
184
  });
98
185
  }
99
186
  /**
100
- * Powered by JustWatch
101
- * @param id
187
+ * Retrieves watch providers of a specific movie asynchronously.
188
+ * @param {number} id - The ID of the movie.
189
+ * @returns {Promise<WatchProviders>} A Promise that resolves with the watch providers of the movie.
102
190
  */
103
191
  watchProviders(id) {
104
192
  return __awaiter(this, void 0, void 0, function* () {
105
193
  return yield this.api.get(`${BASE_MOVIE}/${id}/watch/providers`);
106
194
  });
107
195
  }
196
+ /**
197
+ * Retrieves details of the latest movie asynchronously.
198
+ * @returns {Promise<LatestMovie>} A Promise that resolves with the details of the latest movie.
199
+ */
108
200
  latest() {
109
201
  return __awaiter(this, void 0, void 0, function* () {
110
202
  return yield this.api.get(`${BASE_MOVIE}/latest`);
111
203
  });
112
204
  }
205
+ /**
206
+ * Retrieves movies playing now asynchronously.
207
+ * @param {PageOption & LanguageOption & RegionOption} [options] - Optional parameters for specifying language, region, and pagination options.
208
+ * @returns {Promise<MoviesPlayingNow>} A Promise that resolves with the movies playing now.
209
+ */
113
210
  nowPlaying(options) {
114
211
  return __awaiter(this, void 0, void 0, function* () {
115
212
  return yield this.api.get(`${BASE_MOVIE}/now_playing`, options);
116
213
  });
117
214
  }
215
+ /**
216
+ * Retrieves popular movies asynchronously.
217
+ * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
218
+ * @returns {Promise<PopularMovies>} A Promise that resolves with the popular movies.
219
+ */
118
220
  popular(options) {
119
221
  return __awaiter(this, void 0, void 0, function* () {
120
222
  return yield this.api.get(`${BASE_MOVIE}/popular`, options);
121
223
  });
122
224
  }
225
+ /**
226
+ * Retrieves top rated movies asynchronously.
227
+ * @param {PageOption & LanguageOption & RegionOption} [options] - Optional parameters for specifying language, region, and pagination options.
228
+ * @returns {Promise<TopRatedMovies>} A Promise that resolves with the top rated movies.
229
+ */
123
230
  topRated(options) {
124
231
  return __awaiter(this, void 0, void 0, function* () {
125
232
  return yield this.api.get(`${BASE_MOVIE}/top_rated`, options);
126
233
  });
127
234
  }
235
+ /**
236
+ * Retrieves upcoming movies asynchronously.
237
+ * @param {PageOption & LanguageOption & RegionOption} [options] - Optional parameters for specifying language, region, and pagination options.
238
+ * @returns {Promise<UpcomingMovies>} A Promise that resolves with the upcoming movies.
239
+ */
128
240
  upcoming(options) {
129
241
  return __awaiter(this, void 0, void 0, function* () {
130
242
  return yield this.api.get(`${BASE_MOVIE}/upcoming`, options);
@@ -1,9 +1,31 @@
1
- import { AlternativeNames, BaseEndpoint, NetworkDetails, NetworkImages } from '@/@types';
1
+ import { AlternativeNames, BaseEndpoint, NetworkDetails, NetworkImages } from '../@types';
2
+ /**
3
+ * Represents an endpoint for accessing network details.
4
+ */
2
5
  export declare class NetworksEndpoint extends BaseEndpoint {
3
6
  protected readonly access_token: string;
7
+ /**
8
+ * Constructs a new NetworksEndpoint instance.
9
+ * @param {string} access_token - The access token used for authentication.
10
+ */
4
11
  constructor(access_token: string);
12
+ /**
13
+ * Retrieves details of a specific network asynchronously.
14
+ * @param {number} id - The ID of the network.
15
+ * @returns {Promise<NetworkDetails>} A Promise that resolves with the details of the network.
16
+ */
5
17
  details(id: number): Promise<NetworkDetails>;
18
+ /**
19
+ * Retrieves alternative names of a specific network asynchronously.
20
+ * @param {number} id - The ID of the network.
21
+ * @returns {Promise<AlternativeNames>} A Promise that resolves with the alternative names of the network.
22
+ */
6
23
  alternativeNames(id: number): Promise<AlternativeNames>;
24
+ /**
25
+ * Retrieves images of a specific network asynchronously.
26
+ * @param {number} id - The ID of the network.
27
+ * @returns {Promise<NetworkImages>} A Promise that resolves with the images of the network.
28
+ */
7
29
  images(id: number): Promise<NetworkImages>;
8
30
  }
9
31
  //# sourceMappingURL=networks.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"networks.d.ts","sourceRoot":"","sources":["../../src/endpoints/networks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzF,qBAAa,gBAAiB,SAAQ,YAAY;IACpC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM;gBAApB,YAAY,EAAE,MAAM;IAI7C,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAI5C,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAIvD,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CAGjD"}
1
+ {"version":3,"file":"networks.d.ts","sourceRoot":"","sources":["../../src/endpoints/networks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAEzF;;GAEG;AACH,qBAAa,gBAAiB,SAAQ,YAAY;IAKpC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,MAAM;IAJnD;;;OAGG;gBAC4B,YAAY,EAAE,MAAM;IAInD;;;;OAIG;IACG,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAIlD;;;;OAIG;IACG,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,CAAC;IAI7D;;;;OAIG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CAGjD"}
@@ -10,22 +10,44 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.NetworksEndpoint = void 0;
13
- const _types_1 = require("@/@types");
13
+ const _types_1 = require("../@types");
14
+ /**
15
+ * Represents an endpoint for accessing network details.
16
+ */
14
17
  class NetworksEndpoint extends _types_1.BaseEndpoint {
18
+ /**
19
+ * Constructs a new NetworksEndpoint instance.
20
+ * @param {string} access_token - The access token used for authentication.
21
+ */
15
22
  constructor(access_token) {
16
23
  super(access_token);
17
24
  this.access_token = access_token;
18
25
  }
26
+ /**
27
+ * Retrieves details of a specific network asynchronously.
28
+ * @param {number} id - The ID of the network.
29
+ * @returns {Promise<NetworkDetails>} A Promise that resolves with the details of the network.
30
+ */
19
31
  details(id) {
20
32
  return __awaiter(this, void 0, void 0, function* () {
21
33
  return yield this.api.get(`/network/${id}`);
22
34
  });
23
35
  }
36
+ /**
37
+ * Retrieves alternative names of a specific network asynchronously.
38
+ * @param {number} id - The ID of the network.
39
+ * @returns {Promise<AlternativeNames>} A Promise that resolves with the alternative names of the network.
40
+ */
24
41
  alternativeNames(id) {
25
42
  return __awaiter(this, void 0, void 0, function* () {
26
43
  return yield this.api.get(`/network/${id}/alternative_names`);
27
44
  });
28
45
  }
46
+ /**
47
+ * Retrieves images of a specific network asynchronously.
48
+ * @param {number} id - The ID of the network.
49
+ * @returns {Promise<NetworkImages>} A Promise that resolves with the images of the network.
50
+ */
29
51
  images(id) {
30
52
  return __awaiter(this, void 0, void 0, function* () {
31
53
  return yield this.api.get(`/network/${id}/images`);
@@ -1,16 +1,84 @@
1
- import { AppendToResponse, AppendToResponsePersonKey, BaseEndpoint, ChangeOption, Changes, ExternalIds, LanguageOption, PageOption, PeopleImages, PersonChangeValue, PersonCombinedCredits, PersonDetails, PersonMovieCredit, PersonTranslations, PersonTvShowCredit, PopularPersons, TaggedImages } from '@/@types';
1
+ import { AppendToResponse, AppendToResponsePersonKey, BaseEndpoint, ChangeOption, Changes, ExternalIds, LanguageOption, PageOption, PeopleImages, PersonChangeValue, PersonCombinedCredits, PersonDetails, PersonMovieCredit, PersonTranslations, PersonTvShowCredit, PopularPersons, TaggedImages } from '../@types';
2
+ /**
3
+ * Represents an endpoint for accessing information about people.
4
+ */
2
5
  export declare class PeopleEndpoint extends BaseEndpoint {
6
+ /**
7
+ * Constructs a new PeopleEndpoint instance.
8
+ * @param {string} access_token - The access token used for authentication.
9
+ */
3
10
  constructor(access_token: string);
11
+ /**
12
+ * Retrieves details of a specific person asynchronously.
13
+ * @param {number} id - The ID of the person.
14
+ * @param {AppendToResponsePersonKey[]} [appendToResponse] - Optional keys to append to the response.
15
+ * @param {string} [language] - Optional parameter for specifying the language.
16
+ * @returns {Promise<AppendToResponse<PersonDetails, AppendToResponsePersonKey[], 'person'>>} A Promise that resolves with the details of the person.
17
+ */
4
18
  details<T extends AppendToResponsePersonKey[] | undefined>(id: number, appendToResponse?: T, language?: string): Promise<AppendToResponse<PersonDetails, T, "person">>;
19
+ /**
20
+ * Retrieves changes made to a specific person asynchronously.
21
+ * @param {number} id - The ID of the person.
22
+ * @param {ChangeOption} [options] - Optional parameters for filtering changes.
23
+ * @returns {Promise<Changes<PersonChangeValue>>} A Promise that resolves with the changes made to the person.
24
+ */
5
25
  changes(id: number, options?: ChangeOption): Promise<Changes<PersonChangeValue>>;
26
+ /**
27
+ * Retrieves movie credits of a specific person asynchronously.
28
+ * @param {number} id - The ID of the person.
29
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
30
+ * @returns {Promise<PersonMovieCredit>} A Promise that resolves with the movie credits of the person.
31
+ */
6
32
  movieCredits(id: number, options?: LanguageOption): Promise<PersonMovieCredit>;
33
+ /**
34
+ * Retrieves TV show credits of a specific person asynchronously.
35
+ * @param {number} id - The ID of the person.
36
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
37
+ * @returns {Promise<PersonTvShowCredit>} A Promise that resolves with the TV show credits of the person.
38
+ */
7
39
  tvShowCredits(id: number, options?: LanguageOption): Promise<PersonTvShowCredit>;
40
+ /**
41
+ * Retrieves combined credits of a specific person asynchronously.
42
+ * @param {number} id - The ID of the person.
43
+ * @param {LanguageOption} [options] - Optional parameters for specifying the language.
44
+ * @returns {Promise<PersonCombinedCredits>} A Promise that resolves with the combined credits of the person.
45
+ */
8
46
  combinedCredits(id: number, options?: LanguageOption): Promise<PersonCombinedCredits>;
47
+ /**
48
+ * Retrieves external IDs of a specific person asynchronously.
49
+ * @param {number} id - The ID of the person.
50
+ * @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs of the person.
51
+ */
9
52
  externalId(id: number): Promise<ExternalIds>;
53
+ /**
54
+ * Retrieves images of a specific person asynchronously.
55
+ * @param {number} id - The ID of the person.
56
+ * @returns {Promise<PeopleImages>} A Promise that resolves with the images of the person.
57
+ */
10
58
  images(id: number): Promise<PeopleImages>;
59
+ /**
60
+ * Retrieves tagged images of a specific person asynchronously.
61
+ * @param {number} id - The ID of the person.
62
+ * @param {PageOption} [options] - Optional parameters for specifying pagination options.
63
+ * @returns {Promise<TaggedImages>} A Promise that resolves with the tagged images of the person.
64
+ */
11
65
  taggedImages(id: number, options?: PageOption): Promise<TaggedImages>;
66
+ /**
67
+ * Retrieves translations of a specific person asynchronously.
68
+ * @param {number} id - The ID of the person.
69
+ * @returns {Promise<PersonTranslations>} A Promise that resolves with the translations of the person.
70
+ */
12
71
  translation(id: number): Promise<PersonTranslations>;
72
+ /**
73
+ * Retrieves details of the latest person asynchronously.
74
+ * @returns {Promise<PersonDetails>} A Promise that resolves with the details of the latest person.
75
+ */
13
76
  latest(): Promise<PersonDetails>;
77
+ /**
78
+ * Retrieves popular persons asynchronously.
79
+ * @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
80
+ * @returns {Promise<PopularPersons>} A Promise that resolves with the popular persons.
81
+ */
14
82
  popular(options?: LanguageOption & PageOption): Promise<PopularPersons>;
15
83
  }
16
84
  //# sourceMappingURL=people.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"people.d.ts","sourceRoot":"","sources":["../../src/endpoints/people.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,gBAAgB,EAChB,yBAAyB,EACzB,YAAY,EACZ,YAAY,EACZ,OAAO,EACP,WAAW,EACX,cAAc,EACd,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,qBAAqB,EACrB,aAAa,EACb,iBAAiB,EACjB,kBAAkB,EAClB,kBAAkB,EAClB,cAAc,EACd,YAAY,EACb,MAAM,UAAU,CAAC;AAIlB,qBAAa,cAAe,SAAQ,YAAY;gBAClC,YAAY,EAAE,MAAM;IAI1B,OAAO,CAAC,CAAC,SAAS,yBAAyB,EAAE,GAAG,SAAS,EAC7D,EAAE,EAAE,MAAM,EACV,gBAAgB,CAAC,EAAE,CAAC,EACpB,QAAQ,CAAC,EAAE,MAAM;IASb,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAIhF,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,iBAAiB,CAAC;IAI9E,aAAa,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAIhF,eAAe,CAAC,EAAE,EAAE,MAAM,EAAE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