Add anilist plugin (#69)
This commit is contained in:
21
source/plugins/anilist/queries/characters.graphql
Normal file
21
source/plugins/anilist/queries/characters.graphql
Normal file
@@ -0,0 +1,21 @@
|
||||
query FavoritesCharacters ($name: String, $page:Int) {
|
||||
User(name: $name) {
|
||||
favourites {
|
||||
characters(page: $page) {
|
||||
nodes {
|
||||
name {
|
||||
full
|
||||
native
|
||||
}
|
||||
image {
|
||||
medium
|
||||
}
|
||||
}
|
||||
pageInfo {
|
||||
currentPage
|
||||
hasNextPage
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
34
source/plugins/anilist/queries/favorites.graphql
Normal file
34
source/plugins/anilist/queries/favorites.graphql
Normal file
@@ -0,0 +1,34 @@
|
||||
query Favorites ($name: String, $page:Int) {
|
||||
User(name: $name) {
|
||||
favourites {
|
||||
$type(page: $page) {
|
||||
nodes {
|
||||
title {
|
||||
romaji
|
||||
english
|
||||
native
|
||||
}
|
||||
description
|
||||
type
|
||||
status(version: 2)
|
||||
episodes
|
||||
volumes
|
||||
chapters
|
||||
averageScore
|
||||
countryOfOrigin
|
||||
genres
|
||||
coverImage {
|
||||
medium
|
||||
}
|
||||
startDate {
|
||||
year
|
||||
}
|
||||
}
|
||||
pageInfo {
|
||||
currentPage
|
||||
hasNextPage
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
50
source/plugins/anilist/queries/medias.graphql
Normal file
50
source/plugins/anilist/queries/medias.graphql
Normal file
@@ -0,0 +1,50 @@
|
||||
query Medias ($name: String, $type: MediaType) {
|
||||
MediaListCollection(userName: $name, type: $type) {
|
||||
lists {
|
||||
name
|
||||
isCustomList
|
||||
entries {
|
||||
...mediaListEntry
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
fragment mediaListEntry on MediaList {
|
||||
status
|
||||
progress
|
||||
progressVolumes
|
||||
score
|
||||
startedAt {
|
||||
year
|
||||
month
|
||||
day
|
||||
}
|
||||
completedAt {
|
||||
year
|
||||
month
|
||||
day
|
||||
}
|
||||
media {
|
||||
title {
|
||||
romaji
|
||||
english
|
||||
native
|
||||
}
|
||||
description
|
||||
type
|
||||
status(version: 2)
|
||||
episodes
|
||||
volumes
|
||||
chapters
|
||||
averageScore
|
||||
countryOfOrigin
|
||||
genres
|
||||
coverImage {
|
||||
medium
|
||||
}
|
||||
startDate {
|
||||
year
|
||||
}
|
||||
}
|
||||
}
|
||||
25
source/plugins/anilist/queries/statistics.graphql
Normal file
25
source/plugins/anilist/queries/statistics.graphql
Normal file
@@ -0,0 +1,25 @@
|
||||
query Statistics ($name: String) {
|
||||
User(name: $name) {
|
||||
id
|
||||
name
|
||||
about
|
||||
statistics {
|
||||
anime {
|
||||
count
|
||||
minutesWatched
|
||||
episodesWatched
|
||||
genres(limit: 4) {
|
||||
genre
|
||||
}
|
||||
}
|
||||
manga {
|
||||
count
|
||||
chaptersRead
|
||||
volumesRead
|
||||
genres(limit: 4) {
|
||||
genre
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user