SPB Git

Repository Public

types.ts 1.6 KB 16 lines typescript

1export interface Track {2  id: string; title: string; trackNo: number | null; discNo: number; durationMs: number; year: number | null;3  codec: string; container: string; sampleRate: number | null; bitDepth: number | null; channels: number | null; bitrate: number | null;4  webPlayable: "yes" | "some" | "no"; compatState: "none" | "queued" | "working" | "ready" | "error" | "disabled";5  artist: { id: string; name: string }; album: { id: string; title: string; artworkId: string | null; artistName: string };6  genre: string | null; favorite: boolean; entryId?: string;7  lyricsState: null | "queued" | "working" | "ready" | "empty" | "error";8}9export interface Album { id: string; title: string; year: number | null; artworkId: string | null; createdAt: string; artist: { id: string; name: string }; genre: string | null; trackCount: number; durationMs: number; favorite: boolean }10export interface Artist { id: string; name: string; albumCount: number; trackCount: number; artworkId: string | null }11export interface Playlist { id: string; name: string; updatedAt: string; trackCount: number; artworkIds: string[] }12export interface Me { id: string; email: string; displayName: string; role: "admin" | "listener"; isOwner: boolean; locale: "fr" | "en"; accent: string }13export interface Paged<T> { items: T[]; total: number; limit: number; offset: number }14export interface LyricLine { t: number; e: number; text: string; w?: [number, number, string][] }15export interface Lyrics { state: "none" | "queued" | "working" | "ready" | "empty" | "error"; language?: string | null; source?: string; edited?: boolean; lines: LyricLine[]; enabled: boolean }16
Files main
Menu

Theme