fixed simkl types

This commit is contained in:
John O'Keefe 2024-08-09 15:12:10 -04:00
parent 1dcf7ba5bd
commit 77289052e9
2 changed files with 47 additions and 45 deletions

View File

@ -28,14 +28,14 @@ type SimklUser struct {
type SimklWatchList struct { type SimklWatchList struct {
Anime []struct { Anime []struct {
LastWatchedAt string `json:"last_watched_at" ts_type:"last_watched_at"` LastWatchedAt string `json:"last_watched_at" ts_type:"last_watched_at"`
Status string `json:"status" ts_type:"status"` Status string `json:"status" ts_type:"status"`
UserRating int `json:"user_rating" ts_type:"user_rating"` UserRating float64 `json:"user_rating" ts_type:"user_rating"`
LastWatched string `json:"last_watched" ts_type:"last_watched"` LastWatched string `json:"last_watched" ts_type:"last_watched"`
NextToWatch string `json:"next_to_watch" ts_type:"next_to_watch"` NextToWatch string `json:"next_to_watch" ts_type:"next_to_watch"`
WatchedEpisodesCount int `json:"watched_episodes_count" ts_type:"watched_episodes_count"` WatchedEpisodesCount int `json:"watched_episodes_count" ts_type:"watched_episodes_count"`
TotalEpisodesCount int `json:"total_episodes_count" ts_type:"total_episodes_count"` TotalEpisodesCount int `json:"total_episodes_count" ts_type:"total_episodes_count"`
NotAiredEpisodesCount int `json:"not_aired_episodes_count" ts_type:"not_aired_episodes_count"` NotAiredEpisodesCount int `json:"not_aired_episodes_count" ts_type:"not_aired_episodes_count"`
Show struct { Show struct {
Title string `json:"title" ts_type:"title"` Title string `json:"title" ts_type:"title"`
Poster string `json:"poster" ts_type:"poster"` Poster string `json:"poster" ts_type:"poster"`

View File

@ -19,41 +19,43 @@ export type SimklUser = {
} }
export type SimklWatchList = { export type SimklWatchList = {
anime: [{ anime: [SimklAnime]
last_watched_at: string, }
status: string
user_rating: number, export type SimklAnime = {
last_watched: string, last_watched_at: string,
next_to_watch: string, status: string
watched_episodes_count: number, user_rating: number,
total_episodes_count: number, last_watched: string,
not_aired_episodes_count: number, next_to_watch: string,
show: { watched_episodes_count: number,
title: string, total_episodes_count: number,
poster: string, not_aired_episodes_count: number,
ids: { show: {
simkl: number, title: string,
slug: string, poster: string,
offjp: string, ids: {
tw: string, simkl: number,
ann: string, slug: string,
mal: string, offjp: string,
wikien: string, tw: string,
wikijp: string, ann: string,
allcin: string, mal: string,
imdb: string, wikien: string,
offen: string, wikijp: string,
crunchyroll: string, allcin: string,
tvdbslug: string, imdb: string,
anilist: string, offen: string,
animeplanet: string, crunchyroll: string,
anisearch: string, tvdbslug: string,
kitsu: string, anilist: string,
livechart: string, animeplanet: string,
traktslug: string, anisearch: string,
anidb: string, kitsu: string,
} livechart: string,
}, traktslug: string,
anime_type: string anidb: string,
}] }
},
anime_type: string
} }