import type { artistType } from './artist'; import type { trackType, contributorsPublicApi } from './tracks'; export interface albumTypeMinimal { ALB_ID: string; ALB_TITLE: string; ALB_PICTURE: string; ARTISTS: artistType[]; AVAILABLE: boolean; VERSION: string; ART_ID: string; ART_NAME: string; EXPLICIT_ALBUM_CONTENT: { EXPLICIT_LYRICS_STATUS: number; EXPLICIT_COVER_STATUS: number; }; PHYSICAL_RELEASE_DATE: string; TYPE: string; ARTIST_IS_DUMMY: boolean; NUMBER_TRACK: number; __TYPE__: 'album'; } export interface albumType { ALB_CONTRIBUTORS: { main_artist: string[]; }; ALB_ID: string; ALB_PICTURE: string; EXPLICIT_ALBUM_CONTENT: { EXPLICIT_LYRICS_STATUS: number; EXPLICIT_COVER_STATUS: number; }; ALB_TITLE: string; ARTISTS: artistType[]; ART_ID: string; ART_NAME: string; ARTIST_IS_DUMMY: boolean; DIGITAL_RELEASE_DATE: string; EXPLICIT_LYRICS?: string; NB_FAN: number; NUMBER_DISK: string; NUMBER_TRACK: string; PHYSICAL_RELEASE_DATE?: string; PRODUCER_LINE: string; PROVIDER_ID: string; RANK: string; RANK_ART: string; STATUS: string; TYPE: string; UPC: string; __TYPE__: 'album'; } export interface albumTracksType { data: trackType[]; count: number; total: number; filtered_count: number; filtered_items?: number[]; next?: number; } interface trackDataPublicApi { id: number; readable: boolean; title: string; title_short: string; title_version?: string; link: 'https://www.deezer.com/track/3135556'; duration: number; rank: number; explicit_lyrics: boolean; explicit_content_lyrics: number; explicit_content_cover: number; preview: string; md5_image: string; artist: { id: number; name: number; tracklist: string; type: 'artist'; }; type: 'track'; } interface genreTypePublicApi { id: number; name: string; picture: string; type: 'genre'; } export interface albumTypePublicApi { id: number; title: 'Discovery'; upc: string; link: string; share: string; cover: string; cover_small: string; cover_medium: string; cover_big: string; cover_xl: string; md5_image: string; genre_id: number; genres: { data: genreTypePublicApi[]; }; label: string; nb_tracks: number; duration: number; fans: number; rating: number; release_date: string; record_type: string; available: boolean; tracklist: string; explicit_lyrics: boolean; explicit_content_lyrics: number; explicit_content_cover: number; contributors: contributorsPublicApi[]; artist: contributorsPublicApi; type: 'album'; tracks: { data: trackDataPublicApi[]; }; } export {};