yandex-music
Version:
Creative and progressive Node.js framework for applications that interact with yandex music
35 lines • 1.33 kB
TypeScript
import { YandexMusicClient } from "../client";
import { Chart, NewPlaylists, NewRealeses, Podcast, LandingInterface } from "../interfaces";
declare type block = "personalplaylists" | "promotions" | "new-releases" | "new-playlists" | "mixes" | "chart" | "artists" | "albums" | "playlists" | "play_contexts";
export declare class Landing {
private readonly client;
constructor(client: YandexMusicClient);
/**
* Getting a landing page containing blocks with new releases, charts, playlists with new products, etc.
* @param {block} blocks A block or a list of blocks required for issuing.
* @returns Landing page.
*/
get(blocks: block): Promise<LandingInterface>;
/**
* Getting the chart.
* @returns Chart.
*/
chart(): Promise<Chart>;
/**
* Getting a complete list of all new releases (albums).
* @returns List of new albums.
*/
releases(): Promise<NewRealeses>;
/**
* Getting a complete list of all new playlists.
* @returns A list of new playlists.
*/
playlists(): Promise<NewPlaylists>;
/**
* Getting podcasts from the landing page.
* @returns List of podcasts.
*/
podcasts(): Promise<Podcast>;
}
export {};
//# sourceMappingURL=index.d.ts.map