@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.
- package/dist/index.cjs +1574 -0
- package/dist/index.d.cts +2812 -0
- package/dist/index.d.cts.map +1 -0
- package/dist/index.d.mts +2812 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +1561 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +70 -61
- package/dist/@types/endpoints/account.d.ts +0 -16
- package/dist/@types/endpoints/account.d.ts.map +0 -1
- package/dist/@types/endpoints/account.js +0 -2
- package/dist/@types/endpoints/certification.d.ts +0 -19
- package/dist/@types/endpoints/certification.d.ts.map +0 -1
- package/dist/@types/endpoints/certification.js +0 -2
- package/dist/@types/endpoints/changes.d.ts +0 -26
- package/dist/@types/endpoints/changes.d.ts.map +0 -1
- package/dist/@types/endpoints/changes.js +0 -2
- package/dist/@types/endpoints/collection.d.ts +0 -21
- package/dist/@types/endpoints/collection.d.ts.map +0 -1
- package/dist/@types/endpoints/collection.js +0 -2
- package/dist/@types/endpoints/companies.d.ts +0 -29
- package/dist/@types/endpoints/companies.d.ts.map +0 -1
- package/dist/@types/endpoints/companies.js +0 -2
- package/dist/@types/endpoints/configuration.d.ts +0 -106
- package/dist/@types/endpoints/configuration.d.ts.map +0 -1
- package/dist/@types/endpoints/configuration.js +0 -101
- package/dist/@types/endpoints/credits.d.ts +0 -135
- package/dist/@types/endpoints/credits.d.ts.map +0 -1
- package/dist/@types/endpoints/credits.js +0 -2
- package/dist/@types/endpoints/discover.d.ts +0 -68
- package/dist/@types/endpoints/discover.d.ts.map +0 -1
- package/dist/@types/endpoints/discover.js +0 -2
- package/dist/@types/endpoints/find.d.ts +0 -20
- package/dist/@types/endpoints/find.d.ts.map +0 -1
- package/dist/@types/endpoints/find.js +0 -2
- package/dist/@types/endpoints/genre.d.ts +0 -7
- package/dist/@types/endpoints/genre.d.ts.map +0 -1
- package/dist/@types/endpoints/genre.js +0 -2
- package/dist/@types/endpoints/index.d.ts +0 -23
- package/dist/@types/endpoints/index.d.ts.map +0 -1
- package/dist/@types/endpoints/index.js +0 -38
- package/dist/@types/endpoints/keywords.d.ts +0 -21
- package/dist/@types/endpoints/keywords.d.ts.map +0 -1
- package/dist/@types/endpoints/keywords.js +0 -2
- package/dist/@types/endpoints/movies.d.ts +0 -150
- package/dist/@types/endpoints/movies.d.ts.map +0 -1
- package/dist/@types/endpoints/movies.js +0 -12
- package/dist/@types/endpoints/networks.d.ts +0 -14
- package/dist/@types/endpoints/networks.d.ts.map +0 -1
- package/dist/@types/endpoints/networks.js +0 -2
- package/dist/@types/endpoints/options.d.ts +0 -71
- package/dist/@types/endpoints/options.d.ts.map +0 -1
- package/dist/@types/endpoints/options.js +0 -2
- package/dist/@types/endpoints/people.d.ts +0 -135
- package/dist/@types/endpoints/people.d.ts.map +0 -1
- package/dist/@types/endpoints/people.js +0 -2
- package/dist/@types/endpoints/review.d.ts +0 -8
- package/dist/@types/endpoints/review.d.ts.map +0 -1
- package/dist/@types/endpoints/review.js +0 -2
- package/dist/@types/endpoints/search.d.ts +0 -32
- package/dist/@types/endpoints/search.d.ts.map +0 -1
- package/dist/@types/endpoints/search.js +0 -2
- package/dist/@types/endpoints/trending.d.ts +0 -12
- package/dist/@types/endpoints/trending.d.ts.map +0 -1
- package/dist/@types/endpoints/trending.js +0 -2
- package/dist/@types/endpoints/tvEpisode.d.ts +0 -65
- package/dist/@types/endpoints/tvEpisode.d.ts.map +0 -1
- package/dist/@types/endpoints/tvEpisode.js +0 -2
- package/dist/@types/endpoints/tvSeasons.d.ts +0 -31
- package/dist/@types/endpoints/tvSeasons.d.ts.map +0 -1
- package/dist/@types/endpoints/tvSeasons.js +0 -2
- package/dist/@types/endpoints/tvShows.d.ts +0 -260
- package/dist/@types/endpoints/tvShows.d.ts.map +0 -1
- package/dist/@types/endpoints/tvShows.js +0 -2
- package/dist/@types/endpoints/watchProviders.d.ts +0 -303
- package/dist/@types/endpoints/watchProviders.d.ts.map +0 -1
- package/dist/@types/endpoints/watchProviders.js +0 -2
- package/dist/@types/index.d.ts +0 -4
- package/dist/@types/index.d.ts.map +0 -1
- package/dist/@types/index.js +0 -19
- package/dist/@types/models/baseEndpoint.d.ts +0 -8
- package/dist/@types/models/baseEndpoint.d.ts.map +0 -1
- package/dist/@types/models/baseEndpoint.js +0 -11
- package/dist/@types/models/index.d.ts +0 -2
- package/dist/@types/models/index.d.ts.map +0 -1
- package/dist/@types/models/index.js +0 -17
- package/dist/@types/types.d.ts +0 -179
- package/dist/@types/types.d.ts.map +0 -1
- package/dist/@types/types.js +0 -2
- package/dist/endpoints/account.d.ts +0 -18
- package/dist/endpoints/account.d.ts.map +0 -1
- package/dist/endpoints/account.js +0 -25
- package/dist/endpoints/certification.d.ts +0 -23
- package/dist/endpoints/certification.d.ts.map +0 -1
- package/dist/endpoints/certification.js +0 -32
- package/dist/endpoints/changes.d.ts +0 -31
- package/dist/endpoints/changes.d.ts.map +0 -1
- package/dist/endpoints/changes.js +0 -42
- package/dist/endpoints/collections.d.ts +0 -34
- package/dist/endpoints/collections.d.ts.map +0 -1
- package/dist/endpoints/collections.js +0 -50
- package/dist/endpoints/companies.d.ts +0 -31
- package/dist/endpoints/companies.d.ts.map +0 -1
- package/dist/endpoints/companies.js +0 -42
- package/dist/endpoints/configuration.d.ts +0 -18
- package/dist/endpoints/configuration.d.ts.map +0 -1
- package/dist/endpoints/configuration.js +0 -25
- package/dist/endpoints/credits.d.ts +0 -19
- package/dist/endpoints/credits.d.ts.map +0 -1
- package/dist/endpoints/credits.js +0 -26
- package/dist/endpoints/discover.d.ts +0 -25
- package/dist/endpoints/discover.d.ts.map +0 -1
- package/dist/endpoints/discover.js +0 -35
- package/dist/endpoints/find.d.ts +0 -20
- package/dist/endpoints/find.d.ts.map +0 -1
- package/dist/endpoints/find.js +0 -27
- package/dist/endpoints/genre.d.ts +0 -25
- package/dist/endpoints/genre.d.ts.map +0 -1
- package/dist/endpoints/genre.js +0 -34
- package/dist/endpoints/index.d.ts +0 -22
- package/dist/endpoints/index.d.ts.map +0 -1
- package/dist/endpoints/index.js +0 -37
- package/dist/endpoints/keywords.d.ts +0 -26
- package/dist/endpoints/keywords.d.ts.map +0 -1
- package/dist/endpoints/keywords.js +0 -36
- package/dist/endpoints/movies.d.ts +0 -142
- package/dist/endpoints/movies.d.ts.map +0 -1
- package/dist/endpoints/movies.js +0 -198
- package/dist/endpoints/networks.d.ts +0 -31
- package/dist/endpoints/networks.d.ts.map +0 -1
- package/dist/endpoints/networks.js +0 -42
- package/dist/endpoints/people.d.ts +0 -85
- package/dist/endpoints/people.d.ts.map +0 -1
- package/dist/endpoints/people.js +0 -119
- package/dist/endpoints/review.d.ts +0 -19
- package/dist/endpoints/review.d.ts.map +0 -1
- package/dist/endpoints/review.js +0 -26
- package/dist/endpoints/search.d.ts +0 -58
- package/dist/endpoints/search.d.ts.map +0 -1
- package/dist/endpoints/search.js +0 -75
- package/dist/endpoints/trending.d.ts +0 -22
- package/dist/endpoints/trending.d.ts.map +0 -1
- package/dist/endpoints/trending.js +0 -29
- package/dist/endpoints/tvEpisodes.d.ts +0 -62
- package/dist/endpoints/tvEpisodes.d.ts.map +0 -1
- package/dist/endpoints/tvEpisodes.js +0 -98
- package/dist/endpoints/tvSeasons.d.ts +0 -71
- package/dist/endpoints/tvSeasons.d.ts.map +0 -1
- package/dist/endpoints/tvSeasons.js +0 -109
- package/dist/endpoints/tvShows.d.ts +0 -164
- package/dist/endpoints/tvShows.d.ts.map +0 -1
- package/dist/endpoints/tvShows.js +0 -230
- package/dist/endpoints/watchProviders.d.ts +0 -33
- package/dist/endpoints/watchProviders.d.ts.map +0 -1
- package/dist/endpoints/watchProviders.js +0 -46
- package/dist/index.d.ts +0 -30
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -46
- package/dist/utils/api.d.ts +0 -14
- package/dist/utils/api.d.ts.map +0 -1
- package/dist/utils/api.js +0 -61
- package/dist/utils/getimagePath.d.ts +0 -32
- package/dist/utils/getimagePath.d.ts.map +0 -1
- package/dist/utils/getimagePath.js +0 -50
- package/dist/utils/index.d.ts +0 -3
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -18
package/dist/endpoints/movies.js
DELETED
|
@@ -1,198 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MoviesEndpoint = void 0;
|
|
4
|
-
const _types_1 = require("../@types");
|
|
5
|
-
const BASE_MOVIE = "/movie";
|
|
6
|
-
/**
|
|
7
|
-
* Represents an endpoint for accessing movie-related information.
|
|
8
|
-
*/
|
|
9
|
-
class MoviesEndpoint extends _types_1.BaseEndpoint {
|
|
10
|
-
/**
|
|
11
|
-
* Constructs a new MoviesEndpoint instance.
|
|
12
|
-
* @param {string} access_token - The access token used for authentication.
|
|
13
|
-
*/
|
|
14
|
-
constructor(access_token) {
|
|
15
|
-
super(access_token);
|
|
16
|
-
this.access_token = access_token;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Retrieves details of a specific movie asynchronously.
|
|
20
|
-
* @param {number} id - The ID of the movie.
|
|
21
|
-
* @param {AppendToResponseMovieKey[]} [appendToResponse] - Optional keys to append to the response.
|
|
22
|
-
* @param {string} [language] - Optional parameter for specifying the language.
|
|
23
|
-
* @returns {Promise<AppendToResponse<MovieDetails, AppendToResponseMovieKey[], 'movie'>>} A Promise that resolves with the details of the movie.
|
|
24
|
-
*/
|
|
25
|
-
async details(id, appendToResponse, language) {
|
|
26
|
-
const options = {
|
|
27
|
-
append_to_response: appendToResponse
|
|
28
|
-
? appendToResponse.join(",")
|
|
29
|
-
: undefined,
|
|
30
|
-
language: language,
|
|
31
|
-
};
|
|
32
|
-
return await this.api.get(`${BASE_MOVIE}/${id}`, options);
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Retrieves alternative titles of a specific movie asynchronously.
|
|
36
|
-
* @param {number} id - The ID of the movie.
|
|
37
|
-
* @returns {Promise<AlternativeTitles>} A Promise that resolves with the alternative titles of the movie.
|
|
38
|
-
*/
|
|
39
|
-
async alternativeTitles(id) {
|
|
40
|
-
return await this.api.get(`${BASE_MOVIE}/${id}/alternative_titles`);
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Retrieves changes made to a specific movie asynchronously.
|
|
44
|
-
* @param {number} id - The ID of the movie.
|
|
45
|
-
* @param {ChangeOption} [options] - Optional parameters for filtering changes.
|
|
46
|
-
* @returns {Promise<Changes<MovieChangeValue>>} A Promise that resolves with the changes made to the movie.
|
|
47
|
-
*/
|
|
48
|
-
async changes(id, options) {
|
|
49
|
-
return await this.api.get(`${BASE_MOVIE}/${id}/changes`, options);
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Retrieves credits of a specific movie asynchronously.
|
|
53
|
-
* @param {number} id - The ID of the movie.
|
|
54
|
-
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
55
|
-
* @returns {Promise<Credits>} A Promise that resolves with the credits of the movie.
|
|
56
|
-
*/
|
|
57
|
-
async credits(id, options) {
|
|
58
|
-
return await this.api.get(`${BASE_MOVIE}/${id}/credits`, options);
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Retrieves external IDs of a specific movie asynchronously.
|
|
62
|
-
* @param {number} id - The ID of the movie.
|
|
63
|
-
* @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs of the movie.
|
|
64
|
-
*/
|
|
65
|
-
async externalIds(id) {
|
|
66
|
-
return await this.api.get(`${BASE_MOVIE}/${id}/external_ids`);
|
|
67
|
-
}
|
|
68
|
-
/**
|
|
69
|
-
* Retrieves images of a specific movie asynchronously.
|
|
70
|
-
* @param {number} id - The ID of the movie.
|
|
71
|
-
* @param {MoviesImageSearchOptions} [options] - Optional parameters for specifying image search options.
|
|
72
|
-
* @returns {Promise<Images>} A Promise that resolves with the images of the movie.
|
|
73
|
-
*/
|
|
74
|
-
async images(id, options) {
|
|
75
|
-
const computedOptions = {
|
|
76
|
-
include_image_language: options?.include_image_language?.join(","),
|
|
77
|
-
language: options?.language,
|
|
78
|
-
};
|
|
79
|
-
return await this.api.get(`${BASE_MOVIE}/${id}/images`, computedOptions);
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* Retrieves keywords of a specific movie asynchronously.
|
|
83
|
-
* @param {number} id - The ID of the movie.
|
|
84
|
-
* @returns {Promise<Keywords>} A Promise that resolves with the keywords of the movie.
|
|
85
|
-
*/
|
|
86
|
-
async keywords(id) {
|
|
87
|
-
return await this.api.get(`${BASE_MOVIE}/${id}/keywords`);
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Retrieves lists containing a specific movie asynchronously.
|
|
91
|
-
* @param {number} id - The ID of the movie.
|
|
92
|
-
* @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
|
|
93
|
-
* @returns {Promise<MovieLists>} A Promise that resolves with the lists containing the movie.
|
|
94
|
-
*/
|
|
95
|
-
async lists(id, options) {
|
|
96
|
-
return await this.api.get(`${BASE_MOVIE}/${id}/lists`, options);
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Retrieves recommendations for a specific movie asynchronously.
|
|
100
|
-
* @param {number} id - The ID of the movie.
|
|
101
|
-
* @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
|
|
102
|
-
* @returns {Promise<Recommendations>} A Promise that resolves with the recommendations for the movie.
|
|
103
|
-
*/
|
|
104
|
-
async recommendations(id, options) {
|
|
105
|
-
return await this.api.get(`${BASE_MOVIE}/${id}/recommendations`, options);
|
|
106
|
-
}
|
|
107
|
-
/**
|
|
108
|
-
* Retrieves release dates of a specific movie asynchronously.
|
|
109
|
-
* @param {number} id - The ID of the movie.
|
|
110
|
-
* @returns {Promise<ReleaseDates>} A Promise that resolves with the release dates of the movie.
|
|
111
|
-
*/
|
|
112
|
-
async releaseDates(id) {
|
|
113
|
-
return await this.api.get(`${BASE_MOVIE}/${id}/release_dates`);
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Retrieves reviews for a specific movie asynchronously.
|
|
117
|
-
* @param {number} id - The ID of the movie.
|
|
118
|
-
* @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
|
|
119
|
-
* @returns {Promise<Reviews>} A Promise that resolves with the reviews for the movie.
|
|
120
|
-
*/
|
|
121
|
-
async reviews(id, options) {
|
|
122
|
-
return await this.api.get(`${BASE_MOVIE}/${id}/reviews`, options);
|
|
123
|
-
}
|
|
124
|
-
/**
|
|
125
|
-
* Retrieves similar movies for a specific movie asynchronously.
|
|
126
|
-
* @param {number} id - The ID of the movie.
|
|
127
|
-
* @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
|
|
128
|
-
* @returns {Promise<SimilarMovies>} A Promise that resolves with the similar movies for the movie.
|
|
129
|
-
*/
|
|
130
|
-
async similar(id, options) {
|
|
131
|
-
return await this.api.get(`${BASE_MOVIE}/${id}/similar`, options);
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Retrieves translations of a specific movie asynchronously.
|
|
135
|
-
* @param {number} id - The ID of the movie.
|
|
136
|
-
* @returns {Promise<Translations>} A Promise that resolves with the translations of the movie.
|
|
137
|
-
*/
|
|
138
|
-
async translations(id) {
|
|
139
|
-
return await this.api.get(`${BASE_MOVIE}/${id}/translations`);
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Retrieves videos of a specific movie asynchronously.
|
|
143
|
-
* @param {number} id - The ID of the movie.
|
|
144
|
-
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
145
|
-
* @returns {Promise<Videos>} A Promise that resolves with the videos of the movie.
|
|
146
|
-
*/
|
|
147
|
-
async videos(id, options) {
|
|
148
|
-
return await this.api.get(`${BASE_MOVIE}/${id}/videos`, options);
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Retrieves watch providers of a specific movie asynchronously.
|
|
152
|
-
* @param {number} id - The ID of the movie.
|
|
153
|
-
* @returns {Promise<WatchProviders>} A Promise that resolves with the watch providers of the movie.
|
|
154
|
-
*/
|
|
155
|
-
async watchProviders(id) {
|
|
156
|
-
return await this.api.get(`${BASE_MOVIE}/${id}/watch/providers`);
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Retrieves details of the latest movie asynchronously.
|
|
160
|
-
* @returns {Promise<LatestMovie>} A Promise that resolves with the details of the latest movie.
|
|
161
|
-
*/
|
|
162
|
-
async latest() {
|
|
163
|
-
return await this.api.get(`${BASE_MOVIE}/latest`);
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Retrieves movies playing now asynchronously.
|
|
167
|
-
* @param {PageOption & LanguageOption & RegionOption} [options] - Optional parameters for specifying language, region, and pagination options.
|
|
168
|
-
* @returns {Promise<MoviesPlayingNow>} A Promise that resolves with the movies playing now.
|
|
169
|
-
*/
|
|
170
|
-
async nowPlaying(options) {
|
|
171
|
-
return await this.api.get(`${BASE_MOVIE}/now_playing`, options);
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Retrieves popular movies asynchronously.
|
|
175
|
-
* @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
|
|
176
|
-
* @returns {Promise<PopularMovies>} A Promise that resolves with the popular movies.
|
|
177
|
-
*/
|
|
178
|
-
async popular(options) {
|
|
179
|
-
return await this.api.get(`${BASE_MOVIE}/popular`, options);
|
|
180
|
-
}
|
|
181
|
-
/**
|
|
182
|
-
* Retrieves top rated movies asynchronously.
|
|
183
|
-
* @param {PageOption & LanguageOption & RegionOption} [options] - Optional parameters for specifying language, region, and pagination options.
|
|
184
|
-
* @returns {Promise<TopRatedMovies>} A Promise that resolves with the top rated movies.
|
|
185
|
-
*/
|
|
186
|
-
async topRated(options) {
|
|
187
|
-
return await this.api.get(`${BASE_MOVIE}/top_rated`, options);
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* Retrieves upcoming movies asynchronously.
|
|
191
|
-
* @param {PageOption & LanguageOption & RegionOption} [options] - Optional parameters for specifying language, region, and pagination options.
|
|
192
|
-
* @returns {Promise<UpcomingMovies>} A Promise that resolves with the upcoming movies.
|
|
193
|
-
*/
|
|
194
|
-
async upcoming(options) {
|
|
195
|
-
return await this.api.get(`${BASE_MOVIE}/upcoming`, options);
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
exports.MoviesEndpoint = MoviesEndpoint;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { AlternativeNames, BaseEndpoint, NetworkDetails, NetworkImages, TokenType } from "../@types";
|
|
2
|
-
/**
|
|
3
|
-
* Represents an endpoint for accessing network details.
|
|
4
|
-
*/
|
|
5
|
-
export declare class NetworksEndpoint extends BaseEndpoint {
|
|
6
|
-
protected readonly access_token: TokenType;
|
|
7
|
-
/**
|
|
8
|
-
* Constructs a new NetworksEndpoint 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 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
|
-
*/
|
|
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
|
-
*/
|
|
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
|
-
*/
|
|
29
|
-
images(id: number): Promise<NetworkImages>;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=networks.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"networks.d.ts","sourceRoot":"","sources":["../../src/endpoints/networks.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,gBAAgB,EAChB,YAAY,EACZ,cAAc,EACd,aAAa,EACb,SAAS,EACT,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;;;;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;IAM7D;;;;OAIG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CAGhD"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NetworksEndpoint = void 0;
|
|
4
|
-
const _types_1 = require("../@types");
|
|
5
|
-
/**
|
|
6
|
-
* Represents an endpoint for accessing network details.
|
|
7
|
-
*/
|
|
8
|
-
class NetworksEndpoint extends _types_1.BaseEndpoint {
|
|
9
|
-
/**
|
|
10
|
-
* Constructs a new NetworksEndpoint 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 details of a specific network asynchronously.
|
|
19
|
-
* @param {number} id - The ID of the network.
|
|
20
|
-
* @returns {Promise<NetworkDetails>} A Promise that resolves with the details of the network.
|
|
21
|
-
*/
|
|
22
|
-
async details(id) {
|
|
23
|
-
return await this.api.get(`/network/${id}`);
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Retrieves alternative names of a specific network asynchronously.
|
|
27
|
-
* @param {number} id - The ID of the network.
|
|
28
|
-
* @returns {Promise<AlternativeNames>} A Promise that resolves with the alternative names of the network.
|
|
29
|
-
*/
|
|
30
|
-
async alternativeNames(id) {
|
|
31
|
-
return await this.api.get(`/network/${id}/alternative_names`);
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Retrieves images of a specific network asynchronously.
|
|
35
|
-
* @param {number} id - The ID of the network.
|
|
36
|
-
* @returns {Promise<NetworkImages>} A Promise that resolves with the images of the network.
|
|
37
|
-
*/
|
|
38
|
-
async images(id) {
|
|
39
|
-
return await this.api.get(`/network/${id}/images`);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
exports.NetworksEndpoint = NetworksEndpoint;
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { AppendToResponse, AppendToResponsePersonKey, BaseEndpoint, ChangeOption, Changes, ExternalIds, LanguageOption, PageOption, PeopleImages, PersonChangeValue, PersonCombinedCredits, PersonDetails, PersonMovieCredit, PersonTranslations, PersonTvShowCredit, PopularPersons, TaggedImages, TokenType } from "../@types";
|
|
2
|
-
/**
|
|
3
|
-
* Represents an endpoint for accessing information about people.
|
|
4
|
-
*/
|
|
5
|
-
export declare class PeopleEndpoint extends BaseEndpoint {
|
|
6
|
-
protected readonly access_token: TokenType;
|
|
7
|
-
/**
|
|
8
|
-
* Constructs a new PeopleEndpoint 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 person asynchronously.
|
|
14
|
-
* @param {number} id - The ID of the person.
|
|
15
|
-
* @param {AppendToResponsePersonKey[]} [appendToResponse] - Optional keys to append to the response.
|
|
16
|
-
* @param {string} [language] - Optional parameter for specifying the language.
|
|
17
|
-
* @returns {Promise<AppendToResponse<PersonDetails, AppendToResponsePersonKey[], 'person'>>} A Promise that resolves with the details of the person.
|
|
18
|
-
*/
|
|
19
|
-
details<T extends AppendToResponsePersonKey[] | undefined>(id: number, appendToResponse?: T, language?: string): Promise<AppendToResponse<PersonDetails, T, "person">>;
|
|
20
|
-
/**
|
|
21
|
-
* Retrieves changes made to a specific person asynchronously.
|
|
22
|
-
* @param {number} id - The ID of the person.
|
|
23
|
-
* @param {ChangeOption} [options] - Optional parameters for filtering changes.
|
|
24
|
-
* @returns {Promise<Changes<PersonChangeValue>>} A Promise that resolves with the changes made to the person.
|
|
25
|
-
*/
|
|
26
|
-
changes(id: number, options?: ChangeOption): Promise<Changes<PersonChangeValue>>;
|
|
27
|
-
/**
|
|
28
|
-
* Retrieves movie credits of a specific person asynchronously.
|
|
29
|
-
* @param {number} id - The ID of the person.
|
|
30
|
-
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
31
|
-
* @returns {Promise<PersonMovieCredit>} A Promise that resolves with the movie credits of the person.
|
|
32
|
-
*/
|
|
33
|
-
movieCredits(id: number, options?: LanguageOption): Promise<PersonMovieCredit>;
|
|
34
|
-
/**
|
|
35
|
-
* Retrieves TV show credits of a specific person asynchronously.
|
|
36
|
-
* @param {number} id - The ID of the person.
|
|
37
|
-
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
38
|
-
* @returns {Promise<PersonTvShowCredit>} A Promise that resolves with the TV show credits of the person.
|
|
39
|
-
*/
|
|
40
|
-
tvShowCredits(id: number, options?: LanguageOption): Promise<PersonTvShowCredit>;
|
|
41
|
-
/**
|
|
42
|
-
* Retrieves combined credits of a specific person asynchronously.
|
|
43
|
-
* @param {number} id - The ID of the person.
|
|
44
|
-
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
45
|
-
* @returns {Promise<PersonCombinedCredits>} A Promise that resolves with the combined credits of the person.
|
|
46
|
-
*/
|
|
47
|
-
combinedCredits(id: number, options?: LanguageOption): Promise<PersonCombinedCredits>;
|
|
48
|
-
/**
|
|
49
|
-
* Retrieves external IDs of a specific person asynchronously.
|
|
50
|
-
* @param {number} id - The ID of the person.
|
|
51
|
-
* @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs of the person.
|
|
52
|
-
*/
|
|
53
|
-
externalId(id: number): Promise<ExternalIds>;
|
|
54
|
-
/**
|
|
55
|
-
* Retrieves images of a specific person asynchronously.
|
|
56
|
-
* @param {number} id - The ID of the person.
|
|
57
|
-
* @returns {Promise<PeopleImages>} A Promise that resolves with the images of the person.
|
|
58
|
-
*/
|
|
59
|
-
images(id: number): Promise<PeopleImages>;
|
|
60
|
-
/**
|
|
61
|
-
* Retrieves tagged images of a specific person asynchronously.
|
|
62
|
-
* @param {number} id - The ID of the person.
|
|
63
|
-
* @param {PageOption} [options] - Optional parameters for specifying pagination options.
|
|
64
|
-
* @returns {Promise<TaggedImages>} A Promise that resolves with the tagged images of the person.
|
|
65
|
-
*/
|
|
66
|
-
taggedImages(id: number, options?: PageOption): Promise<TaggedImages>;
|
|
67
|
-
/**
|
|
68
|
-
* Retrieves translations of a specific person asynchronously.
|
|
69
|
-
* @param {number} id - The ID of the person.
|
|
70
|
-
* @returns {Promise<PersonTranslations>} A Promise that resolves with the translations of the person.
|
|
71
|
-
*/
|
|
72
|
-
translation(id: number): Promise<PersonTranslations>;
|
|
73
|
-
/**
|
|
74
|
-
* Retrieves details of the latest person asynchronously.
|
|
75
|
-
* @returns {Promise<PersonDetails>} A Promise that resolves with the details of the latest person.
|
|
76
|
-
*/
|
|
77
|
-
latest(): Promise<PersonDetails>;
|
|
78
|
-
/**
|
|
79
|
-
* Retrieves popular persons asynchronously.
|
|
80
|
-
* @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
|
|
81
|
-
* @returns {Promise<PopularPersons>} A Promise that resolves with the popular persons.
|
|
82
|
-
*/
|
|
83
|
-
popular(options?: LanguageOption & PageOption): Promise<PopularPersons>;
|
|
84
|
-
}
|
|
85
|
-
//# sourceMappingURL=people.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"people.d.ts","sourceRoot":"","sources":["../../src/endpoints/people.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,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,EACZ,SAAS,EACT,MAAM,WAAW,CAAC;AAInB;;GAEG;AACH,qBAAa,cAAe,SAAQ,YAAY;IAKnC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;;;;OAMG;IACG,OAAO,CAAC,CAAC,SAAS,yBAAyB,EAAE,GAAG,SAAS,EAC9D,EAAE,EAAE,MAAM,EACV,gBAAgB,CAAC,EAAE,CAAC,EACpB,QAAQ,CAAC,EAAE,MAAM;IAclB;;;;;OAKG;IACG,OAAO,CACZ,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,YAAY,GACpB,OAAO,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAQtC;;;;;OAKG;IACG,YAAY,CACjB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,iBAAiB,CAAC;IAO7B;;;;;OAKG;IACG,aAAa,CAClB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,kBAAkB,CAAC;IAO9B;;;;;OAKG;IACG,eAAe,CACpB,EAAE,EAAE,MAAM,EACV,OAAO,CAAC,EAAE,cAAc,GACtB,OAAO,CAAC,qBAAqB,CAAC;IAOjC;;;;OAIG;IACG,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;IAIlD;;;;OAIG;IACG,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC;IAI/C;;;;;OAKG;IACG,YAAY,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,YAAY,CAAC;IAO3E;;;;OAIG;IACG,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAM1D;;;OAGG;IACG,MAAM,IAAI,OAAO,CAAC,aAAa,CAAC;IAItC;;;;OAIG;IACG,OAAO,CACZ,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,GACnC,OAAO,CAAC,cAAc,CAAC;CAM1B"}
|
package/dist/endpoints/people.js
DELETED
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PeopleEndpoint = void 0;
|
|
4
|
-
const _types_1 = require("../@types");
|
|
5
|
-
const BASE_PERSON = "/person";
|
|
6
|
-
/**
|
|
7
|
-
* Represents an endpoint for accessing information about people.
|
|
8
|
-
*/
|
|
9
|
-
class PeopleEndpoint extends _types_1.BaseEndpoint {
|
|
10
|
-
/**
|
|
11
|
-
* Constructs a new PeopleEndpoint instance.
|
|
12
|
-
* @param {string} access_token - The access token used for authentication.
|
|
13
|
-
*/
|
|
14
|
-
constructor(access_token) {
|
|
15
|
-
super(access_token);
|
|
16
|
-
this.access_token = access_token;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Retrieves details of a specific person asynchronously.
|
|
20
|
-
* @param {number} id - The ID of the person.
|
|
21
|
-
* @param {AppendToResponsePersonKey[]} [appendToResponse] - Optional keys to append to the response.
|
|
22
|
-
* @param {string} [language] - Optional parameter for specifying the language.
|
|
23
|
-
* @returns {Promise<AppendToResponse<PersonDetails, AppendToResponsePersonKey[], 'person'>>} A Promise that resolves with the details of the person.
|
|
24
|
-
*/
|
|
25
|
-
async details(id, appendToResponse, language) {
|
|
26
|
-
const options = {
|
|
27
|
-
append_to_response: appendToResponse
|
|
28
|
-
? appendToResponse.join(",")
|
|
29
|
-
: undefined,
|
|
30
|
-
language: language,
|
|
31
|
-
};
|
|
32
|
-
return await this.api.get(`${BASE_PERSON}/${id}`, options);
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Retrieves changes made to a specific person asynchronously.
|
|
36
|
-
* @param {number} id - The ID of the person.
|
|
37
|
-
* @param {ChangeOption} [options] - Optional parameters for filtering changes.
|
|
38
|
-
* @returns {Promise<Changes<PersonChangeValue>>} A Promise that resolves with the changes made to the person.
|
|
39
|
-
*/
|
|
40
|
-
async changes(id, options) {
|
|
41
|
-
return await this.api.get(`${BASE_PERSON}/${id}/changes`, options);
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Retrieves movie credits of a specific person asynchronously.
|
|
45
|
-
* @param {number} id - The ID of the person.
|
|
46
|
-
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
47
|
-
* @returns {Promise<PersonMovieCredit>} A Promise that resolves with the movie credits of the person.
|
|
48
|
-
*/
|
|
49
|
-
async movieCredits(id, options) {
|
|
50
|
-
return await this.api.get(`${BASE_PERSON}/${id}/movie_credits`, options);
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Retrieves TV show credits of a specific person asynchronously.
|
|
54
|
-
* @param {number} id - The ID of the person.
|
|
55
|
-
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
56
|
-
* @returns {Promise<PersonTvShowCredit>} A Promise that resolves with the TV show credits of the person.
|
|
57
|
-
*/
|
|
58
|
-
async tvShowCredits(id, options) {
|
|
59
|
-
return await this.api.get(`${BASE_PERSON}/${id}/tv_credits`, options);
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Retrieves combined credits of a specific person asynchronously.
|
|
63
|
-
* @param {number} id - The ID of the person.
|
|
64
|
-
* @param {LanguageOption} [options] - Optional parameters for specifying the language.
|
|
65
|
-
* @returns {Promise<PersonCombinedCredits>} A Promise that resolves with the combined credits of the person.
|
|
66
|
-
*/
|
|
67
|
-
async combinedCredits(id, options) {
|
|
68
|
-
return await this.api.get(`${BASE_PERSON}/${id}/combined_credits`, options);
|
|
69
|
-
}
|
|
70
|
-
/**
|
|
71
|
-
* Retrieves external IDs of a specific person asynchronously.
|
|
72
|
-
* @param {number} id - The ID of the person.
|
|
73
|
-
* @returns {Promise<ExternalIds>} A Promise that resolves with the external IDs of the person.
|
|
74
|
-
*/
|
|
75
|
-
async externalId(id) {
|
|
76
|
-
return await this.api.get(`${BASE_PERSON}/${id}/external_ids`);
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Retrieves images of a specific person asynchronously.
|
|
80
|
-
* @param {number} id - The ID of the person.
|
|
81
|
-
* @returns {Promise<PeopleImages>} A Promise that resolves with the images of the person.
|
|
82
|
-
*/
|
|
83
|
-
async images(id) {
|
|
84
|
-
return await this.api.get(`${BASE_PERSON}/${id}/images`);
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Retrieves tagged images of a specific person asynchronously.
|
|
88
|
-
* @param {number} id - The ID of the person.
|
|
89
|
-
* @param {PageOption} [options] - Optional parameters for specifying pagination options.
|
|
90
|
-
* @returns {Promise<TaggedImages>} A Promise that resolves with the tagged images of the person.
|
|
91
|
-
*/
|
|
92
|
-
async taggedImages(id, options) {
|
|
93
|
-
return await this.api.get(`${BASE_PERSON}/${id}/tagged_images`, options);
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Retrieves translations of a specific person asynchronously.
|
|
97
|
-
* @param {number} id - The ID of the person.
|
|
98
|
-
* @returns {Promise<PersonTranslations>} A Promise that resolves with the translations of the person.
|
|
99
|
-
*/
|
|
100
|
-
async translation(id) {
|
|
101
|
-
return await this.api.get(`${BASE_PERSON}/${id}/translations`);
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Retrieves details of the latest person asynchronously.
|
|
105
|
-
* @returns {Promise<PersonDetails>} A Promise that resolves with the details of the latest person.
|
|
106
|
-
*/
|
|
107
|
-
async latest() {
|
|
108
|
-
return await this.api.get(`${BASE_PERSON}/latest`);
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Retrieves popular persons asynchronously.
|
|
112
|
-
* @param {LanguageOption & PageOption} [options] - Optional parameters for specifying language and pagination options.
|
|
113
|
-
* @returns {Promise<PopularPersons>} A Promise that resolves with the popular persons.
|
|
114
|
-
*/
|
|
115
|
-
async popular(options) {
|
|
116
|
-
return await this.api.get(`${BASE_PERSON}/popular`, options);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
exports.PeopleEndpoint = PeopleEndpoint;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { BaseEndpoint, ReviewDetails, TokenType } from "../@types";
|
|
2
|
-
/**
|
|
3
|
-
* Represents an endpoint for accessing review details.
|
|
4
|
-
*/
|
|
5
|
-
export declare class ReviewEndpoint extends BaseEndpoint {
|
|
6
|
-
protected readonly access_token: TokenType;
|
|
7
|
-
/**
|
|
8
|
-
* Constructs a new ReviewEndpoint 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 review asynchronously.
|
|
14
|
-
* @param {string} id - The ID of the review.
|
|
15
|
-
* @returns {Promise<ReviewDetails>} A Promise that resolves with the details of the review.
|
|
16
|
-
*/
|
|
17
|
-
details(id: string): Promise<ReviewDetails>;
|
|
18
|
-
}
|
|
19
|
-
//# sourceMappingURL=review.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../../src/endpoints/review.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAEnE;;GAEG;AACH,qBAAa,cAAe,SAAQ,YAAY;IAKnC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;;OAIG;IACG,OAAO,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC;CAGjD"}
|
package/dist/endpoints/review.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ReviewEndpoint = void 0;
|
|
4
|
-
const _types_1 = require("../@types");
|
|
5
|
-
/**
|
|
6
|
-
* Represents an endpoint for accessing review details.
|
|
7
|
-
*/
|
|
8
|
-
class ReviewEndpoint extends _types_1.BaseEndpoint {
|
|
9
|
-
/**
|
|
10
|
-
* Constructs a new ReviewEndpoint 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 details of a specific review asynchronously.
|
|
19
|
-
* @param {string} id - The ID of the review.
|
|
20
|
-
* @returns {Promise<ReviewDetails>} A Promise that resolves with the details of the review.
|
|
21
|
-
*/
|
|
22
|
-
async details(id) {
|
|
23
|
-
return await this.api.get(`/review/${id}`);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
exports.ReviewEndpoint = ReviewEndpoint;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { BaseEndpoint, Collection, Company, Movie, MovieSearchOptions, MultiSearchOptions, MultiSearchResult, PeopleSearchOptions, Person, Search, SearchOptions, TokenType, TV, TvSearchOptions } from "../@types";
|
|
2
|
-
/**
|
|
3
|
-
* Represents an endpoint for performing various search operations.
|
|
4
|
-
*/
|
|
5
|
-
export declare class SearchEndpoint extends BaseEndpoint {
|
|
6
|
-
protected readonly access_token: TokenType;
|
|
7
|
-
/**
|
|
8
|
-
* Constructs a new SearchEndpoint instance.
|
|
9
|
-
* @param {string} access_token - The access token used for authentication.
|
|
10
|
-
*/
|
|
11
|
-
constructor(access_token: TokenType);
|
|
12
|
-
/**
|
|
13
|
-
* Searches for companies asynchronously.
|
|
14
|
-
* @param {SearchOptions} options - The search options.
|
|
15
|
-
* @returns {Promise<Search<Company>>} A Promise that resolves with the search results for companies.
|
|
16
|
-
*/
|
|
17
|
-
companies(options: SearchOptions): Promise<Search<Company>>;
|
|
18
|
-
/**
|
|
19
|
-
* Searches for collections asynchronously.
|
|
20
|
-
* @param {SearchOptions} options - The search options.
|
|
21
|
-
* @returns {Promise<Search<Collection>>} A Promise that resolves with the search results for collections.
|
|
22
|
-
*/
|
|
23
|
-
collections(options: SearchOptions): Promise<Search<Collection>>;
|
|
24
|
-
/**
|
|
25
|
-
* Searches for keywords asynchronously.
|
|
26
|
-
* @param {SearchOptions} options - The search options.
|
|
27
|
-
* @returns {Promise<Search<{ id: string; name: string }>>} A Promise that resolves with the search results for keywords.
|
|
28
|
-
*/
|
|
29
|
-
keywords(options: SearchOptions): Promise<Search<{
|
|
30
|
-
id: string;
|
|
31
|
-
name: string;
|
|
32
|
-
}>>;
|
|
33
|
-
/**
|
|
34
|
-
* Searches for movies asynchronously.
|
|
35
|
-
* @param {MovieSearchOptions} options - The search options.
|
|
36
|
-
* @returns {Promise<Search<Movie>>} A Promise that resolves with the search results for movies.
|
|
37
|
-
*/
|
|
38
|
-
movies(options: MovieSearchOptions): Promise<Search<Movie>>;
|
|
39
|
-
/**
|
|
40
|
-
* Searches for people asynchronously.
|
|
41
|
-
* @param {PeopleSearchOptions} options - The search options.
|
|
42
|
-
* @returns {Promise<Search<Person>>} A Promise that resolves with the search results for people.
|
|
43
|
-
*/
|
|
44
|
-
people(options: PeopleSearchOptions): Promise<Search<Person>>;
|
|
45
|
-
/**
|
|
46
|
-
* Searches for TV shows asynchronously.
|
|
47
|
-
* @param {TvSearchOptions} options - The search options.
|
|
48
|
-
* @returns {Promise<Search<TV>>} A Promise that resolves with the search results for TV shows.
|
|
49
|
-
*/
|
|
50
|
-
tv(options: TvSearchOptions): Promise<Search<TV>>;
|
|
51
|
-
/**
|
|
52
|
-
* Performs a multi-search asynchronously.
|
|
53
|
-
* @param {MultiSearchOptions} options - The search options.
|
|
54
|
-
* @returns {Promise<Search<MultiSearchResult>>} A Promise that resolves with the multi-search results.
|
|
55
|
-
*/
|
|
56
|
-
multi(options: MultiSearchOptions): Promise<Search<MultiSearchResult>>;
|
|
57
|
-
}
|
|
58
|
-
//# sourceMappingURL=search.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["../../src/endpoints/search.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,YAAY,EACZ,UAAU,EACV,OAAO,EACP,KAAK,EACL,kBAAkB,EAClB,kBAAkB,EAClB,iBAAiB,EACjB,mBAAmB,EACnB,MAAM,EACN,MAAM,EACN,aAAa,EACb,SAAS,EACT,EAAE,EACF,eAAe,EACf,MAAM,WAAW,CAAC;AAInB;;GAEG;AACH,qBAAa,cAAe,SAAQ,YAAY;IAKnC,SAAS,CAAC,QAAQ,CAAC,YAAY,EAAE,SAAS;IAJtD;;;OAGG;gBAC4B,YAAY,EAAE,SAAS;IAItD;;;;OAIG;IACG,SAAS,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAQjE;;;;OAIG;IACG,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IAQtE;;;;OAIG;IACG,QAAQ,CACb,OAAO,EAAE,aAAa,GACpB,OAAO,CAAC,MAAM,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAQhD;;;;OAIG;IACG,MAAM,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAQjE;;;;OAIG;IACG,MAAM,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;IAQnE;;;;OAIG;IACG,EAAE,CAAC,OAAO,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;IAQvD;;;;OAIG;IACG,KAAK,CAAC,OAAO,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAC,CAAC;CAO5E"}
|