build out artist view

clean up mapping methods a bit
This commit is contained in:
austinried
2021-07-15 16:58:08 +09:00
parent e7f9b1db86
commit 62a721ba4d
9 changed files with 180 additions and 83 deletions

View File

@@ -17,18 +17,6 @@ export interface ArtistArt {
coverArtUris: string[]
}
export interface Album {
id: string
artistId?: string
artist?: string
name: string
starred?: Date
coverArt?: string
coverArtUri?: string
coverArtThumbUri?: string
year?: number
}
export interface AlbumListItem {
id: string
name: string
@@ -37,6 +25,11 @@ export interface AlbumListItem {
coverArtThumbUri?: string
}
export interface Album extends AlbumListItem {
coverArtUri?: string
year?: number
}
export interface AlbumWithSongs extends Album {
songs: Song[]
}
@@ -47,19 +40,7 @@ export interface Song {
artist?: string
title: string
track?: number
year?: number
genre?: string
coverArt?: string
size?: number
contentType?: string
suffix?: string
duration?: number
bitRate?: number
userRating?: number
averageRating?: number
playCount?: number
discNumber?: number
created?: Date
starred?: Date
streamUri: string