This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated User.ts query to include deprecated stat fields
- Loading branch information
Showing
17 changed files
with
266 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export interface ActivityHistory { | ||
date: number; | ||
amount: number; | ||
level: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export interface Distribution { | ||
status: string; | ||
amount: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import {Tag} from "./Tag"; | ||
import {Staff} from "./Staff"; | ||
import {Studio} from "./Studio"; | ||
|
||
export interface Favoured { | ||
genre?: string; | ||
amount: number; | ||
meanScore: number; | ||
timeWatched: number; | ||
tag?: Tag; | ||
staff?: Staff; | ||
studio?: Studio; | ||
year?: number; | ||
format?: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export interface ListScores { | ||
meanScore: number; | ||
standardDeviation: number; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import {Stat} from "./Stat"; | ||
|
||
export interface MediaStatistics { | ||
count: number; | ||
meanScore: number; | ||
standardDeviation: number; | ||
minutesWatched?: number; | ||
episodesWatched?: number; | ||
chaptersRead?: number; | ||
volumesRead?: number; | ||
formats: Stat[]; | ||
statuses: Stat[]; | ||
scores: Stat[]; | ||
lengths: Stat[]; | ||
releaseYears: Stat[]; | ||
startYears: Stat[]; | ||
genres: Stat[]; | ||
tags: Stat[]; | ||
countries: Stat[]; | ||
voiceActors?: Stat[]; | ||
staff: Stat[]; | ||
studios: Stat[]; | ||
} |
2 changes: 1 addition & 1 deletion
2
src/apis/anilist/interfaces/Stats.ts → src/apis/anilist/interfaces/MediaStats.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { ScoreDistribution } from './ScoreDistribution' | ||
import { StatusDistribution } from './StatusDistribution' | ||
|
||
export interface Stats { | ||
export interface MediaStats { | ||
scoreDistribution: ScoreDistribution[] | ||
statusDistribution: StatusDistribution[] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,6 @@ export interface Name { | |
last: string | ||
full: string | ||
native: string | ||
alternative: string | ||
userPreferred: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import {Name} from "./Name"; | ||
|
||
export interface Staff { | ||
id: number; | ||
name: Name; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import {Tag} from "./Tag"; | ||
import {Staff} from "./Staff"; | ||
import {Studio} from "./Studio"; | ||
|
||
export interface Stat { | ||
count: number; | ||
meanScore: number; | ||
minutesWatched?: number; | ||
chaptersRead?: number; | ||
mediaIds: number[]; | ||
format?: string; | ||
status?: string; | ||
score?: number; | ||
length?: number; | ||
releaseYear?: number; | ||
startYear?: number; | ||
genre?: string; | ||
tag?: Tag; | ||
country?: string; | ||
voiceActor?: Staff; | ||
characterIds?: number[]; | ||
staff?: Staff; | ||
studio?: Studio; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import {MediaStatistics} from "./MediaStatistics"; | ||
|
||
export interface Statistics { | ||
anime: MediaStatistics; | ||
manga: MediaStatistics; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export interface Studio { | ||
id: number; | ||
name: string; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import {ActivityHistory} from "./ActivityHistory"; | ||
import {Distribution} from "./Distribution"; | ||
import {ScoreDistribution} from "./ScoreDistribution"; | ||
import {ListScores} from "./ListScores"; | ||
import {Favoured} from "./Favoured"; | ||
|
||
export interface UserStats { | ||
watchedTime: number; | ||
chaptersRead: number; | ||
activityHistory: ActivityHistory[]; | ||
animeStatusDistribution: Distribution[]; | ||
mangaStatusDistribution: Distribution[]; | ||
animeScoreDistribution: ScoreDistribution[]; | ||
mangaScoreDistribution: ScoreDistribution[]; | ||
animeListScores: ListScores; | ||
mangaListScores: ListScores; | ||
favouredGenresOverview: Favoured[]; | ||
favouredGenres: Favoured[]; | ||
favouredTags: Favoured[]; | ||
favouredActors: Favoured[]; | ||
favouredStaff: Favoured[]; | ||
favouredStudios: Favoured[]; | ||
favouredYears: Favoured[]; | ||
favouredFormats: Favoured[]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.