mirror of
https://github.com/austinried/subtracks.git
synced 2026-02-10 15:02:42 +01:00
build out artist view
clean up mapping methods a bit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user