add channel type
This commit is contained in:
parent
605a89e831
commit
42b4173486
|
@ -0,0 +1,35 @@
|
||||||
|
interface picturesType {
|
||||||
|
md5: string; // '8e211af480caea6fc4fa5378c1757e16'
|
||||||
|
type: string; // 'misc'
|
||||||
|
}
|
||||||
|
|
||||||
|
interface dataType {
|
||||||
|
type: string; // 'channel';
|
||||||
|
id: string; // 'ff7f8b9a-2cff-48e4-9228-7d4136ce4aa8';
|
||||||
|
name: string; // 'Asian music';
|
||||||
|
title: string; // 'Asian music';
|
||||||
|
logo: null | string;
|
||||||
|
description: null | string;
|
||||||
|
slug: string; // 'asian';
|
||||||
|
background_color: string; // '#3ABEA7';
|
||||||
|
pictures: picturesType[];
|
||||||
|
__TYPE__: 'channel';
|
||||||
|
}
|
||||||
|
|
||||||
|
interface channelDataType {
|
||||||
|
item_id: string; // 'item_type=channel,item_id=bab5f0dc-1eec-4ff8-a297-b23a10bd8d87,item_position=0'
|
||||||
|
id: string; // 'bab5f0dc-1eec-4ff8-a297-b23a10bd8d87'
|
||||||
|
type: string; // 'channel'
|
||||||
|
data: dataType[];
|
||||||
|
target: string; //'/channels/booklovers'
|
||||||
|
title: string; // 'For book lovers';
|
||||||
|
pictures: picturesType[];
|
||||||
|
weight: number; // 1
|
||||||
|
background_color: string; // '#FFAE2E'
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface channelSearchType {
|
||||||
|
data: channelDataType[];
|
||||||
|
count: number;
|
||||||
|
total: number;
|
||||||
|
}
|
|
@ -2,6 +2,7 @@ import type {albumType, albumTypeMinimal} from './album';
|
||||||
import type {artistInfoTypeMinimal, artistType} from './artist';
|
import type {artistInfoTypeMinimal, artistType} from './artist';
|
||||||
import type {playlistInfo, playlistInfoMinimal} from './playlist';
|
import type {playlistInfo, playlistInfoMinimal} from './playlist';
|
||||||
import type {trackType} from './tracks';
|
import type {trackType} from './tracks';
|
||||||
|
import type {channelSearchType} from './channel';
|
||||||
|
|
||||||
interface searchTypeCommon {
|
interface searchTypeCommon {
|
||||||
count: number;
|
count: number;
|
||||||
|
@ -23,7 +24,7 @@ interface playlistSearchType extends searchTypeCommon {
|
||||||
data: playlistInfoMinimal[];
|
data: playlistInfoMinimal[];
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface trackSearchType extends searchTypeCommon {
|
interface trackSearchType extends searchTypeCommon {
|
||||||
data: trackType[];
|
data: trackType[];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -65,5 +66,5 @@ export interface searchType {
|
||||||
SHOW: trackSearchType;
|
SHOW: trackSearchType;
|
||||||
USER: trackSearchType;
|
USER: trackSearchType;
|
||||||
LIVESTREAM: trackSearchType;
|
LIVESTREAM: trackSearchType;
|
||||||
CHANNEL: trackSearchType;
|
CHANNEL: channelSearchType;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue