update user search type

This commit is contained in:
Sayem Chowdhury 2021-03-03 02:13:58 +06:00
parent ac44531daa
commit 857eb66831
2 changed files with 17 additions and 1 deletions

View File

@ -1,5 +1,15 @@
import type {albumTracksType} from './album';
export interface profileTypeMinimal {
USER_ID: string;
FIRSTNAME: string;
LASTNAME: string;
BLOG_NAME: string;
USER_PICTURE?: string;
IS_FOLLOW: boolean;
__TYPE__: 'user';
}
export interface profileType {
IS_FOLLOW: boolean;
NB_ARTISTS: number;

View File

@ -2,6 +2,7 @@ import type {albumType, albumTypeMinimal} from './album';
import type {artistInfoTypeMinimal, artistType} from './artist';
import type {playlistInfo, playlistInfoMinimal} from './playlist';
import type {trackType} from './tracks';
import type {profileTypeMinimal} from './profile';
import type {channelSearchType} from './channel';
import type {radioType} from './radio';
@ -28,6 +29,11 @@ interface playlistSearchType extends searchTypeCommon {
interface trackSearchType extends searchTypeCommon {
data: trackType[];
}
interface profileSearchType extends searchTypeCommon {
data: profileTypeMinimal[];
}
interface radioSearchType extends searchTypeCommon {
data: radioType[];
}
@ -76,7 +82,7 @@ export interface searchType {
PLAYLIST: playlistSearchType;
RADIO: radioSearchType;
SHOW: showSearchType;
USER: trackSearchType;
USER: profileSearchType;
LIVESTREAM: liveSearchType;
CHANNEL: channelSearchType;
}