update playlist search type
This commit is contained in:
parent
f6682df155
commit
09d1beb5d1
|
@ -1,5 +1,23 @@
|
|||
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 {
|
||||
PLAYLIST_ID: string; // '4523119944'
|
||||
DESCRIPTION?: string; // ''
|
||||
|
|
|
@ -1,10 +1,9 @@
|
|||
import type {albumTracksType, albumType, albumTypeMinimal} from './album';
|
||||
import type {artistType} from './artist';
|
||||
import type {playlistInfo} from './playlist';
|
||||
import type {playlistInfo, playlistInfoMinimal} from './playlist';
|
||||
import type {trackType} from './tracks';
|
||||
|
||||
interface albumSearchType {
|
||||
data: albumTypeMinimal[];
|
||||
interface searchTypeCommon {
|
||||
count: number;
|
||||
total: number;
|
||||
filtered_count: number;
|
||||
|
@ -12,6 +11,14 @@ interface albumSearchType {
|
|||
next: number;
|
||||
}
|
||||
|
||||
interface albumSearchType extends searchTypeCommon {
|
||||
data: albumTypeMinimal[];
|
||||
}
|
||||
|
||||
interface playlistSearchType extends searchTypeCommon {
|
||||
data: playlistInfoMinimal[];
|
||||
}
|
||||
|
||||
export interface discographyType {
|
||||
data: albumType[];
|
||||
count: number; // 109,
|
||||
|
@ -45,7 +52,7 @@ export interface searchType {
|
|||
ALBUM: albumSearchType;
|
||||
ARTIST: albumTracksType;
|
||||
TRACK: albumTracksType;
|
||||
PLAYLIST: albumTracksType;
|
||||
PLAYLIST: playlistSearchType;
|
||||
RADIO: albumTracksType;
|
||||
SHOW: albumTracksType;
|
||||
USER: albumTracksType;
|
||||
|
|
Loading…
Reference in New Issue