From 54d5932d8a5b05ffed7d5c57e6dc54cdd9798ee2 Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Tue, 30 Jul 2024 20:35:21 -0400 Subject: [PATCH] expanded anilist user type --- AniListTypes.go | 10 ++++++++-- frontend/src/anilist/types/AniListTypes.ts | 6 ++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/AniListTypes.go b/AniListTypes.go index 0bded8d..fac600f 100644 --- a/AniListTypes.go +++ b/AniListTypes.go @@ -10,8 +10,14 @@ type AniListJWT struct { type AniListUser struct { Data struct { Viewer struct { - ID int `json:"id"` - Name string `json:"name"` + ID int `json:"id"` + Name string `json:"name"` + Avatar struct { + Large string `json:"large"` + Medium string `json:"medium"` + } `json:"avatar"` + BannerImage string `json:"bannerImage"` + SiteUrl string `json:"siteUrl"` } `json:"Viewer"` } `json:"data"` } diff --git a/frontend/src/anilist/types/AniListTypes.ts b/frontend/src/anilist/types/AniListTypes.ts index 68e1cdf..5b9b40b 100644 --- a/frontend/src/anilist/types/AniListTypes.ts +++ b/frontend/src/anilist/types/AniListTypes.ts @@ -39,6 +39,12 @@ export interface AniListUser { "Viewer": { id: number, name: string, + avatar: { + large: string, + medium: string, + }, + bannerImage: string, + siteUrl: string, } } }