separated our current watchlist types
This commit is contained in:
parent
dcf7322b0c
commit
64def1a763
@ -0,0 +1,88 @@
|
|||||||
|
export interface AniListCurrentUserWatchList {
|
||||||
|
data: Data
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Data {
|
||||||
|
Page: Page
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Page {
|
||||||
|
pageInfo: PageInfo
|
||||||
|
mediaList: MediaList[]
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface PageInfo {
|
||||||
|
total: number
|
||||||
|
perPage: number
|
||||||
|
currentPage: number
|
||||||
|
lastPage: number
|
||||||
|
hasNextPage: boolean
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface MediaList {
|
||||||
|
id: number
|
||||||
|
mediaId: number
|
||||||
|
userId: number
|
||||||
|
media: Media
|
||||||
|
status: string
|
||||||
|
notes?: string
|
||||||
|
progress: number
|
||||||
|
score: number
|
||||||
|
repeat: number
|
||||||
|
user: User
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Media {
|
||||||
|
id: number
|
||||||
|
idMal: number
|
||||||
|
title: Title
|
||||||
|
description: string
|
||||||
|
coverImage: CoverImage
|
||||||
|
season: string
|
||||||
|
seasonYear: number
|
||||||
|
status: string
|
||||||
|
episodes?: number
|
||||||
|
nextAiringEpisode?: NextAiringEpisode
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Title {
|
||||||
|
romaji: string
|
||||||
|
english?: string
|
||||||
|
native: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface CoverImage {
|
||||||
|
large: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface NextAiringEpisode {
|
||||||
|
airingAt: number
|
||||||
|
timeUntilAiring: number
|
||||||
|
episode: number
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface User {
|
||||||
|
id: number
|
||||||
|
name: string
|
||||||
|
avatar: Avatar
|
||||||
|
statistics: Statistics
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Avatar {
|
||||||
|
large: string
|
||||||
|
medium: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Statistics {
|
||||||
|
anime: Anime
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Anime {
|
||||||
|
count: number
|
||||||
|
statuses: Status[]
|
||||||
|
}
|
||||||
|
|
||||||
|
export interface Status {
|
||||||
|
status: string
|
||||||
|
count: number
|
||||||
|
}
|
@ -64,84 +64,35 @@ export interface AniListUser {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface AniListCurrentUserWatchList {
|
export enum MediaListSort {
|
||||||
data: Data;
|
MediaId = "MEDIA_ID",
|
||||||
}
|
MediaIdDesc = "MEDIA_ID_DESC",
|
||||||
|
Score = "SCORE",
|
||||||
export interface Data {
|
ScoreDesc = "SCORE_DESC",
|
||||||
Page: Page;
|
Status = "STATUS",
|
||||||
}
|
StatusDesc = "STATUS_DESC",
|
||||||
|
Progress = "PROGRESS",
|
||||||
export interface Page {
|
ProgressDesc = "PROGRESS_DESC",
|
||||||
pageInfo: PageInfo;
|
ProgressVolumes = "PROGRESS_VOLUMES",
|
||||||
mediaList: MediaList[];
|
ProgressVolumesDesc = "PROGRESS_VOLUMES_DESC",
|
||||||
}
|
Repeat = "REPEAT",
|
||||||
|
RepeatDesc = "REPEAT_DESC",
|
||||||
export interface MediaList {
|
Priority = "PRIORITY",
|
||||||
id: number;
|
PriorityDesc = "PRIORITY_DESC",
|
||||||
mediaId: number;
|
StartedOn = "STARTED_ON",
|
||||||
userId: number;
|
StartedOnDesc = "STARTED_ON_DESC",
|
||||||
media: Media;
|
FinishedOn = "FINISHED_ON",
|
||||||
status: StatusEnum;
|
FinishedOnDesc = "FINISHED_ON_DESC",
|
||||||
notes: string | null;
|
AddedTime = "ADDED_TIME",
|
||||||
progress: number;
|
AddedTimeDesc = "ADDED_TIME_DESC",
|
||||||
score: number;
|
UpdatedTime = "UPDATED_TIME",
|
||||||
repeat: number;
|
UpdatedTimeDesc = "UPDATED_TIME_DESC",
|
||||||
user: User;
|
MediaTitleRomaji = "MEDIA_TITLE_ROMAJI",
|
||||||
}
|
MediaTitleRomajiDesc = "MEDIA_TITLE_ROMAJI_DESC",
|
||||||
|
MediaTitleEnglish = "MEDIA_TITLE_ENGLISH",
|
||||||
export interface Media {
|
MediaTitleEnglishDesc = "MEDIA_TITLE_ENGLISH_DESC",
|
||||||
id: number;
|
MediaTitleNative = "MEDIA_TITLE_NATIVE",
|
||||||
idMal: number;
|
MediaTitleNativeDesc = "MEDIA_TITLE_NATIVE_DESC",
|
||||||
title: Title;
|
MediaPopularity = "MEDIA_POPULARITY",
|
||||||
description: string;
|
MediaPopularityDesc = "MEDIA_POPULARITY_DESC"
|
||||||
coverImage: CoverImage;
|
}
|
||||||
season: string;
|
|
||||||
seasonYear: number;
|
|
||||||
episodes: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface CoverImage {
|
|
||||||
large: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface Title {
|
|
||||||
romaji: string | null;
|
|
||||||
english: string | null;
|
|
||||||
native: string;
|
|
||||||
}
|
|
||||||
|
|
||||||
export enum StatusEnum {
|
|
||||||
Completed = "COMPLETED",
|
|
||||||
Current = "CURRENT",
|
|
||||||
Dropped = "DROPPED",
|
|
||||||
Planning = "PLANNING",
|
|
||||||
Repeating = "REPEATING",
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface User {
|
|
||||||
id: number;
|
|
||||||
statistics: Statistics;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface Statistics {
|
|
||||||
anime: Anime;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface Anime {
|
|
||||||
count: number;
|
|
||||||
statuses: StatusElement[];
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface StatusElement {
|
|
||||||
status: StatusEnum;
|
|
||||||
count: number;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface PageInfo {
|
|
||||||
total: number;
|
|
||||||
perPage: number;
|
|
||||||
currentPage: number;
|
|
||||||
lastPage: number;
|
|
||||||
hasNextPage: boolean;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user