UNPKG

javascript-ampache

Version:
29 lines (28 loc) 1.06 kB
import { GenreResponse, GenresResponse } from "./types"; import { Base, BinaryBoolean, ExtendedPagination, UID } from "../base"; export declare class Genres extends Base { /** * This returns the genres (Tags) based on the specified filter * @remarks MINIMUM_API_VERSION=380001 * @param [params.filter] UID to find * @param [params.exact] 0, 1 (if true filter is exact = rather than fuzzy LIKE) * @param [params.offset] * @param [params.limit] * @param [params.cond] * @param [params.sort] * @see {@link https://ampache.org/api/api-json-methods#genres} */ genres(params?: { filter?: string; exact?: BinaryBoolean; } & ExtendedPagination): Promise<GenresResponse>; /** * This returns a single genre based on UID * @remarks MINIMUM_API_VERSION=380001 * @param params.filter UID to find * @see {@link https://ampache.org/api/api-json-methods#genre} */ genre(params: { filter: UID; }): Promise<GenreResponse>; }