update to new content tracker endpoints

This commit is contained in:
2024-12-24 01:11:29 -05:00
parent 220bc1a238
commit d3f91c2ff1
3 changed files with 35 additions and 43 deletions
+20 -9
View File
@@ -1,9 +1,4 @@
type MusicAPIResponse = {
data: {
tracks: MusicData[]
}
}
// music type
type MusicData = {
artist: {
mbid: string,
@@ -18,13 +13,29 @@ type MusicData = {
url: string,
image: MusicImage[]
}
type MusicImage = {
size: string,
"#text": string
}
// tracker type
type ContentTrackerItem = {
id: number,
title: string,
author?: string,
description: string,
episode?: string,
image: string,
type: "tv" | "book" | "game",
tmdbId?: string,
yearReleased: number,
updatedAt: Date,
genre: string,
startedOn: Date,
finished: boolean
}
export type {
MusicAPIResponse,
MusicData
MusicData,
ContentTrackerItem
}