run npm format
This commit is contained in:
@@ -29,29 +29,40 @@ export class SearchEndpoint extends BaseEndpoint {
|
||||
super(accessToken);
|
||||
}
|
||||
|
||||
async companies(options: SearchOptions): Promise<Search<Company>>{
|
||||
return await this.api.get<Search<Company>>(`${BASE_SEARCH}/company`, options);
|
||||
async companies(options: SearchOptions): Promise<Search<Company>> {
|
||||
return await this.api.get<Search<Company>>(
|
||||
`${BASE_SEARCH}/company`,
|
||||
options
|
||||
);
|
||||
}
|
||||
|
||||
async collections(options: SearchOptions): Promise<Search<Collection>>{
|
||||
return await this.api.get<Search<Collection>>(`${BASE_SEARCH}/collection`, options);
|
||||
async collections(options: SearchOptions): Promise<Search<Collection>> {
|
||||
return await this.api.get<Search<Collection>>(
|
||||
`${BASE_SEARCH}/collection`,
|
||||
options
|
||||
);
|
||||
}
|
||||
|
||||
async keywords(options: SearchOptions): Promise<Search<{ id: string, name: string }>>{
|
||||
return await this.api.get<Search<{ id: string, name: string }>>(`${BASE_SEARCH}/keyword`, options);
|
||||
async keywords(
|
||||
options: SearchOptions
|
||||
): Promise<Search<{ id: string; name: string }>> {
|
||||
return await this.api.get<Search<{ id: string; name: string }>>(
|
||||
`${BASE_SEARCH}/keyword`,
|
||||
options
|
||||
);
|
||||
}
|
||||
|
||||
async movies(options: MovieSearchOptions): Promise<Search<Movie>>{
|
||||
async movies(options: MovieSearchOptions): Promise<Search<Movie>> {
|
||||
return await this.api.get<Search<Movie>>(`${BASE_SEARCH}/movie`, options);
|
||||
}
|
||||
|
||||
async people(options: PeopleSearchOptions): Promise<Search<Person>>{
|
||||
async people(options: PeopleSearchOptions): Promise<Search<Person>> {
|
||||
return await this.api.get<Search<Person>>(`${BASE_SEARCH}/person`, options);
|
||||
}
|
||||
|
||||
// TODO: Multi search
|
||||
|
||||
async tvShows(options: TvSearchOptions): Promise<Search<TV>>{
|
||||
async tvShows(options: TvSearchOptions): Promise<Search<TV>> {
|
||||
return await this.api.get<Search<TV>>(`${BASE_SEARCH}/tv`, options);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user