update types

This commit is contained in:
Sayem Chowdhury 2021-04-20 23:12:16 +06:00
parent 1e1c6bf9c5
commit fa2110e687

View File

@ -14,15 +14,18 @@ interface nativeAdsType {
weight: number; // 1 weight: number; // 1
} }
type itemType = 'album' | 'playlist' | 'radio' | 'show' | 'livestream';
export interface playlistChannelItemsType { export interface playlistChannelItemsType {
item_id: string; // 'page_id=channels/dance,render_id=608a93738223d615200e6390ea48f8f3,version=channel-cms.1.0,section_id=long-card-horizontal-grid,section_position=0,module_id=be55d60e-e3c3-421a-9ea9-aef6f0c63c6c,module_type=playlists,layout=playlists_layout_long-card-horizontal-grid,content_source=playlists_content-source_custom,content_source_count=0,content_programming_count=8,section_content=playlist%3A1291471565%3Bplaylist%3A2249258602%3Bplaylist%3A2113355604%3Bplaylist%3A1950512362%3Bplaylist%3A1495242491%3Bplaylist%3A6090195324%3Bplaylist%3A706093725%3Bplaylist%3A7837492422,item_type=playlist,item_id=1291471565,item_position=0' item_id: string; // 'page_id=channels/dance,render_id=608a93738223d615200e6390ea48f8f3,version=channel-cms.1.0,section_id=long-card-horizontal-grid,section_position=0,module_id=be55d60e-e3c3-421a-9ea9-aef6f0c63c6c,module_type=playlists,layout=playlists_layout_long-card-horizontal-grid,content_source=playlists_content-source_custom,content_source_count=0,content_programming_count=8,section_content=playlist%3A1291471565%3Bplaylist%3A2249258602%3Bplaylist%3A2113355604%3Bplaylist%3A1950512362%3Bplaylist%3A1495242491%3Bplaylist%3A6090195324%3Bplaylist%3A706093725%3Bplaylist%3A7837492422,item_type=playlist,item_id=1291471565,item_position=0'
id: string; // '1291471565' id: string; // '1291471565'
type: 'playlist'; type: itemType;
data: { data:
| {
NB_FAN: number; // 231133 NB_FAN: number; // 231133
NB_SONG: number; // 50 NB_SONG: number; // 50
PARENT_USER_ID: string; // '2834392844' PARENT_USER_ID: string; // '2834392844'
PICTURE_TYPE: 'playlist'; PICTURE_TYPE: string; // 'playlist';
PLAYLIST_ID: string; // '1291471565' PLAYLIST_ID: string; // '1291471565'
PLAYLIST_PICTURE: string; // 'c5eb1bf10a83734c032e983ef190105e' PLAYLIST_PICTURE: string; // 'c5eb1bf10a83734c032e983ef190105e'
STATUS: number; // 0 STATUS: number; // 0
@ -31,8 +34,26 @@ export interface playlistChannelItemsType {
DATE_MOD: string; // '2021-04-02 19:57:27' DATE_MOD: string; // '2021-04-02 19:57:27'
DATE_ADD: string; // '2020-12-15 19:31:07' DATE_ADD: string; // '2020-12-15 19:31:07'
DESCRIPTION: string; // 'The biggest dance hits to keep the party going!' DESCRIPTION: string; // 'The biggest dance hits to keep the party going!'
__TYPE__: 'playlist'; __TYPE__: itemType;
} | null; }
| {
__TYPE__: itemType;
background_color: string; // '#ffffff';
description: string | null;
id: string; // '75092dd5-4857-4219-be1d-89074a716982';
logo: string | null; // '440dc61fe940f0e20b78a540d1484c3c';
name: string; // 'NBC News';
pictures: [
{
md5: string;
type: string;
},
];
slug: string; // 'nbcnews';
title: string; // 'NBC News';
type: itemType;
}
| null;
target: string; // '/playlist/1291471565' target: string; // '/playlist/1291471565'
title: string; // 'Dance Party' title: string; // 'Dance Party'
subtitle: string; // '50 tracks' subtitle: string; // '50 tracks'