update album search type

This commit is contained in:
Sayem Chowdhury 2021-03-03 01:18:06 +06:00
parent 2eb6d60b9d
commit 701f6d423d

View File

@ -108,6 +108,26 @@ export interface trackType extends songType {
TRACK_POSITION?: number;
}
interface albumTypeMinimal {
ALB_ID: string;
ALB_TITLE: string;
ALB_PICTURE: string;
ARTISTS: artistType[];
AVAILABLE: boolean;
VERSION: string; // ''
ART_ID: string;
ART_NAME: string;
EXPLICIT_ALBUM_CONTENT: {
EXPLICIT_LYRICS_STATUS: number; // 1
EXPLICIT_COVER_STATUS: number; //2
};
PHYSICAL_RELEASE_DATE: string;
TYPE: string; // '0'
ARTIST_IS_DUMMY: boolean;
NUMBER_TRACK: number; // '1';
__TYPE__: 'album';
}
export interface albumType {
ALB_CONTRIBUTORS: {
main_artist: string[]; // ['Avicii']
@ -148,6 +168,15 @@ export interface albumTracksType {
next?: number;
}
interface albumSearchType {
data: albumTypeMinimal[];
count: number;
total: number;
filtered_count: number;
filtered_items: number[];
next: number;
}
export interface playlistInfo {
PLAYLIST_ID: string; // '4523119944'
DESCRIPTION?: string; // ''
@ -237,7 +266,7 @@ export interface searchType {
'USER',
'LYRICS',
];
ALBUM: albumTracksType;
ALBUM: albumSearchType;
ARTIST: albumTracksType;
TRACK: albumTracksType;
PLAYLIST: albumTracksType;