update playlist search type

This commit is contained in:
Sayem Chowdhury 2021-03-03 01:43:54 +06:00
parent f6682df155
commit 09d1beb5d1
2 changed files with 29 additions and 4 deletions

View File

@ -1,5 +1,23 @@
import type {trackType} from './tracks'; import type {trackType} from './tracks';
export interface playlistInfoMinimal {
PLAYLIST_ID: string;
PARENT_PLAYLIST_ID: string;
TYPE: string; // '0'
TITLE: string;
PARENT_USER_ID: string;
PARENT_USERNAME: string;
PARENT_USER_PICTURE?: string;
STATUS: string; // 0
PLAYLIST_PICTURE: string;
PICTURE_TYPE: string; // 'playlist'
NB_SONG: number; // 180
HAS_ARTIST_LINKED: boolean;
DATE_ADD: string; // '2021-01-29 20:54:13'
DATE_MOD: string; // '2021-02-01 05:52:40'
__TYPE__: 'playlist';
}
export interface playlistInfo { export interface playlistInfo {
PLAYLIST_ID: string; // '4523119944' PLAYLIST_ID: string; // '4523119944'
DESCRIPTION?: string; // '' DESCRIPTION?: string; // ''

View File

@ -1,10 +1,9 @@
import type {albumTracksType, albumType, albumTypeMinimal} from './album'; import type {albumTracksType, albumType, albumTypeMinimal} from './album';
import type {artistType} from './artist'; import type {artistType} from './artist';
import type {playlistInfo} from './playlist'; import type {playlistInfo, playlistInfoMinimal} from './playlist';
import type {trackType} from './tracks'; import type {trackType} from './tracks';
interface albumSearchType { interface searchTypeCommon {
data: albumTypeMinimal[];
count: number; count: number;
total: number; total: number;
filtered_count: number; filtered_count: number;
@ -12,6 +11,14 @@ interface albumSearchType {
next: number; next: number;
} }
interface albumSearchType extends searchTypeCommon {
data: albumTypeMinimal[];
}
interface playlistSearchType extends searchTypeCommon {
data: playlistInfoMinimal[];
}
export interface discographyType { export interface discographyType {
data: albumType[]; data: albumType[];
count: number; // 109, count: number; // 109,
@ -45,7 +52,7 @@ export interface searchType {
ALBUM: albumSearchType; ALBUM: albumSearchType;
ARTIST: albumTracksType; ARTIST: albumTracksType;
TRACK: albumTracksType; TRACK: albumTracksType;
PLAYLIST: albumTracksType; PLAYLIST: playlistSearchType;
RADIO: albumTracksType; RADIO: albumTracksType;
SHOW: albumTracksType; SHOW: albumTracksType;
USER: albumTracksType; USER: albumTracksType;