Update GraphQL reference schemas

This commit is contained in:
Timothy Warren 2021-04-23 19:00:44 -04:00
parent 5346ce7d89
commit 4293a501ed
2 changed files with 170 additions and 16 deletions

View File

@ -187,7 +187,7 @@ type AiringProgression {
watching: Int watching: Int
} }
"Media Airing Schedule" "Media Airing Schedule. NOTE: We only aim to guarantee that FUTURE airing data is present and accurate."
type AiringSchedule { type AiringSchedule {
"The time the episode airs at" "The time the episode airs at"
airingAt: Int! airingAt: Int!
@ -225,6 +225,10 @@ type AniChartUser {
"A character that features in an anime or manga" "A character that features in an anime or manga"
type Character { type Character {
"The character's age. Note this is a string, not an int, it may contain further text and additional ages."
age: String
"The character's birth date"
dateOfBirth: FuzzyDate
"A general description of the character" "A general description of the character"
description( description(
"Return the string in pre-parsed html instead of markdown" "Return the string in pre-parsed html instead of markdown"
@ -232,12 +236,16 @@ type Character {
): String ): String
"The amount of user's who have favourited the character" "The amount of user's who have favourited the character"
favourites: Int favourites: Int
"The character's gender. Usually Male, Female, or Non-binary but can be any string."
gender: String
"The id of the character" "The id of the character"
id: Int! id: Int!
"Character images" "Character images"
image: CharacterImage image: CharacterImage
"If the character is marked as favourite by the currently authenticated user" "If the character is marked as favourite by the currently authenticated user"
isFavourite: Boolean! isFavourite: Boolean!
"If the character is blocked from being added to favourites"
isFavouriteBlocked: Boolean!
"Media that includes the character" "Media that includes the character"
media( media(
onList: Boolean, onList: Boolean,
@ -272,9 +280,13 @@ type CharacterEdge {
id: Int id: Int
"The media the character is in" "The media the character is in"
media: [Media] media: [Media]
"Media specific character name"
name: String
node: Character node: Character
"The characters role in the media" "The characters role in the media"
role: CharacterRole role: CharacterRole
"The voice actors of the character with role date"
voiceActorRoles(language: StaffLanguage, sort: [StaffSort]): [StaffRoleType]
"The voice actors of the character" "The voice actors of the character"
voiceActors(language: StaffLanguage, sort: [StaffSort]): [Staff] voiceActors(language: StaffLanguage, sort: [StaffSort]): [Staff]
} }
@ -290,12 +302,16 @@ type CharacterImage {
type CharacterName { type CharacterName {
"Other names the character might be referred to as" "Other names the character might be referred to as"
alternative: [String] alternative: [String]
"Other names the character might be referred to as but are spoilers"
alternativeSpoiler: [String]
"The character's given name" "The character's given name"
first: String first: String
"The character's full name" "The character's first and last name"
full: String full: String
"The character's surname" "The character's surname"
last: String last: String
"The character's middle name"
middle: String
"The character's full name in their native language" "The character's full name in their native language"
native: String native: String
} }
@ -544,6 +560,8 @@ type InternalPage {
id_not: Int, id_not: Int,
"Filter by character id" "Filter by character id"
id_not_in: [Int], id_not_in: [Int],
"Filter by character by if its their birthday today"
isBirthday: Boolean,
"Filter by search query" "Filter by search query"
search: String, search: String,
"The order the results will be returned in" "The order the results will be returned in"
@ -880,6 +898,8 @@ type InternalPage {
id_not: Int, id_not: Int,
"Filter by the staff id" "Filter by the staff id"
id_not_in: [Int], id_not_in: [Int],
"Filter by staff by if its their birthday today"
isBirthday: Boolean,
"Filter by search query" "Filter by search query"
search: String, search: String,
"The order the results will be returned in" "The order the results will be returned in"
@ -1155,10 +1175,14 @@ type Media {
type MediaCharacter { type MediaCharacter {
"The characters in the media voiced by the parent actor" "The characters in the media voiced by the parent actor"
character: Character character: Character
"Media specific character name"
characterName: String
dubGroup: String
"The id of the connection" "The id of the connection"
id: Int id: Int
"The characters role in the media" "The characters role in the media"
role: CharacterRole role: CharacterRole
roleNotes: String
"The voice actor of the character" "The voice actor of the character"
voiceActor: Staff voiceActor: Staff
} }
@ -1183,10 +1207,14 @@ type MediaCoverImage {
"Media connection edge" "Media connection edge"
type MediaEdge { type MediaEdge {
"Media specific character name"
characterName: String
"The characters role in the media" "The characters role in the media"
characterRole: CharacterRole characterRole: CharacterRole
"The characters in the media voiced by the parent actor" "The characters in the media voiced by the parent actor"
characters: [Character] characters: [Character]
"Used for grouping roles where multiple dubs exist for the same language. Either dubbing company name or language variant."
dubGroup: String
"The order the media should be displayed from the users favourites" "The order the media should be displayed from the users favourites"
favouriteOrder: Int favouriteOrder: Int
"The id of the connection" "The id of the connection"
@ -1199,8 +1227,12 @@ type MediaEdge {
"Provide 2 to use new version 2 of relation enum" "Provide 2 to use new version 2 of relation enum"
version: Int version: Int
): MediaRelation ): MediaRelation
"Notes regarding the VA's role for the character"
roleNotes: String
"The role of the staff member in the production of the media" "The role of the staff member in the production of the media"
staffRole: String staffRole: String
"The voice actors of the character with role date"
voiceActorRoles(language: StaffLanguage, sort: [StaffSort]): [StaffRoleType]
"The voice actors of the character" "The voice actors of the character"
voiceActors(language: StaffLanguage, sort: [StaffSort]): [Staff] voiceActors(language: StaffLanguage, sort: [StaffSort]): [Staff]
} }
@ -1391,12 +1423,15 @@ type MediaSubmissionComparison {
type MediaSubmissionEdge { type MediaSubmissionEdge {
character: Character character: Character
characterName: String
characterRole: CharacterRole characterRole: CharacterRole
characterSubmission: Character characterSubmission: Character
dubGroup: String
"The id of the direct submission" "The id of the direct submission"
id: Int id: Int
isMain: Boolean isMain: Boolean
media: Media media: Media
roleNotes: String
staff: Staff staff: Staff
staffRole: String staffRole: String
staffSubmission: Staff staffSubmission: Staff
@ -1817,6 +1852,8 @@ type Mutation {
UpdateUser( UpdateUser(
"User's about/bio text" "User's about/bio text"
about: String, about: String,
"Minutes between activity for them to be merged together. 0 is Never, Above 2 weeks (20160 mins) is Always."
activityMergeTime: Int,
"If the user should get notifications when a show they are watching aires" "If the user should get notifications when a show they are watching aires"
airingNotifications: Boolean, airingNotifications: Boolean,
"The user's anime list options" "The user's anime list options"
@ -1963,6 +2000,8 @@ type Page {
id_not: Int, id_not: Int,
"Filter by character id" "Filter by character id"
id_not_in: [Int], id_not_in: [Int],
"Filter by character by if its their birthday today"
isBirthday: Boolean,
"Filter by search query" "Filter by search query"
search: String, search: String,
"The order the results will be returned in" "The order the results will be returned in"
@ -2275,6 +2314,8 @@ type Page {
id_not: Int, id_not: Int,
"Filter by the staff id" "Filter by the staff id"
id_not_in: [Int], id_not_in: [Int],
"Filter by staff by if its their birthday today"
isBirthday: Boolean,
"Filter by search query" "Filter by search query"
search: String, search: String,
"The order the results will be returned in" "The order the results will be returned in"
@ -2472,6 +2513,8 @@ type Query {
id_not: Int, id_not: Int,
"Filter by character id" "Filter by character id"
id_not_in: [Int], id_not_in: [Int],
"Filter by character by if its their birthday today"
isBirthday: Boolean,
"Filter by search query" "Filter by search query"
search: String, search: String,
"The order the results will be returned in" "The order the results will be returned in"
@ -2857,6 +2900,8 @@ type Query {
id_not: Int, id_not: Int,
"Filter by the staff id" "Filter by the staff id"
id_not_in: [Int], id_not_in: [Int],
"Filter by staff by if its their birthday today"
isBirthday: Boolean,
"Filter by search query" "Filter by search query"
search: String, search: String,
"The order the results will be returned in" "The order the results will be returned in"
@ -3132,6 +3177,8 @@ type SiteTrendEdge {
"Voice actors or production staff" "Voice actors or production staff"
type Staff { type Staff {
"The person's age in years"
age: Int
"Media the actor voiced characters in. (Same data as characters with media as node instead of characters)" "Media the actor voiced characters in. (Same data as characters with media as node instead of characters)"
characterMedia( characterMedia(
onList: Boolean, onList: Boolean,
@ -3149,6 +3196,8 @@ type Staff {
perPage: Int, perPage: Int,
sort: [CharacterSort] sort: [CharacterSort]
): CharacterConnection ): CharacterConnection
dateOfBirth: FuzzyDate
dateOfDeath: FuzzyDate
"A general description of the staff member" "A general description of the staff member"
description( description(
"Return the string in pre-parsed html instead of markdown" "Return the string in pre-parsed html instead of markdown"
@ -3156,18 +3205,28 @@ type Staff {
): String ): String
"The amount of user's who have favourited the staff member" "The amount of user's who have favourited the staff member"
favourites: Int favourites: Int
"The staff's gender. Usually Male, Female, or Non-binary but can be any string."
gender: String
"The persons birthplace or hometown"
homeTown: String
"The id of the staff member" "The id of the staff member"
id: Int! id: Int!
"The staff images" "The staff images"
image: StaffImage image: StaffImage
"If the staff member is marked as favourite by the currently authenticated user" "If the staff member is marked as favourite by the currently authenticated user"
isFavourite: Boolean! isFavourite: Boolean!
"The primary language of the staff member" "If the staff member is blocked from being added to favourites"
language: StaffLanguage isFavouriteBlocked: Boolean!
"The primary language the staff member dub's in"
language: StaffLanguage @deprecated(reason : "Replaced with languageV2")
"The primary language of the staff member. Current values: Japanese, English, Korean, Italian, Spanish, Portuguese, French, German, Hebrew, Hungarian, Chinese, Arabic, Filipino, Catalan"
languageV2: String
"Notes for site moderators" "Notes for site moderators"
modNotes: String modNotes: String
"The names of the staff member" "The names of the staff member"
name: StaffName name: StaffName
"The person's primary occupations"
primaryOccupations: [String]
"The url for the staff page on the AniList website" "The url for the staff page on the AniList website"
siteUrl: String siteUrl: String
"Staff member that the submission is referencing" "Staff member that the submission is referencing"
@ -3189,6 +3248,8 @@ type Staff {
"Submitter for the submission" "Submitter for the submission"
submitter: User submitter: User
updatedAt: Int @deprecated(reason : "No data available") updatedAt: Int @deprecated(reason : "No data available")
"[startYear, endYear] (If the 2nd value is not present staff is still active)"
yearsActive: [Int]
} }
type StaffConnection { type StaffConnection {
@ -3222,14 +3283,26 @@ type StaffName {
alternative: [String] alternative: [String]
"The person's given name" "The person's given name"
first: String first: String
"The person's full name" "The person's first and last name"
full: String full: String
"The person's surname" "The person's surname"
last: String last: String
"The person's middle name"
middle: String
"The person's full name in their native language" "The person's full name in their native language"
native: String native: String
} }
"Voice actor role for a character"
type StaffRoleType {
"Used for grouping roles where multiple dubs exist for the same language. Either dubbing company name or language variant."
dubGroup: String
"Notes regarding the VA's role for the character"
roleNotes: String
"The voice actors of the character"
voiceActor: Staff
}
"User's staff statistics" "User's staff statistics"
type StaffStats { type StaffStats {
amount: Int amount: Int
@ -3679,6 +3752,8 @@ type UserModData {
"A user's general options" "A user's general options"
type UserOptions { type UserOptions {
"Minutes between activity for them to be merged together. 0 is Never, Above 2 weeks (20160 mins) is Always."
activityMergeTime: Int
"Whether the user receives notifications when a show they are watching aires" "Whether the user receives notifications when a show they are watching aires"
airingNotifications: Boolean airingNotifications: Boolean
"Whether the user has enabled viewing of 18+ content" "Whether the user has enabled viewing of 18+ content"
@ -3871,6 +3946,8 @@ enum CharacterSort {
FAVOURITES_DESC FAVOURITES_DESC
ID ID
ID_DESC ID_DESC
"Order manually decided by moderators"
RELEVANCE
ROLE ROLE
ROLE_DESC ROLE_DESC
SEARCH_MATCH SEARCH_MATCH
@ -4251,6 +4328,8 @@ enum StaffSort {
ID_DESC ID_DESC
LANGUAGE LANGUAGE
LANGUAGE_DESC LANGUAGE_DESC
"Order manually decided by moderators"
RELEVANCE
ROLE ROLE
ROLE_DESC ROLE_DESC
SEARCH_MATCH SEARCH_MATCH
@ -4363,10 +4442,14 @@ input AniChartHighlightInput {
input CharacterNameInput { input CharacterNameInput {
"Other names the character might be referred by" "Other names the character might be referred by"
alternative: [String] alternative: [String]
"Other names the character might be referred to as but are spoilers"
alternativeSpoiler: [String]
"The character's given name" "The character's given name"
first: String first: String
"The character's surname" "The character's surname"
last: String last: String
"The character's middle name"
middle: String
"The character's full name in their native language" "The character's full name in their native language"
native: String native: String
} }
@ -4433,6 +4516,8 @@ input StaffNameInput {
first: String first: String
"The person's surname" "The person's surname"
last: String last: String
"The person's middle name"
middle: String
"The person's full name in their native language" "The person's full name in their native language"
native: String native: String
} }

View File

@ -117,6 +117,8 @@ interface Media {
): MappingConnection! ): MappingConnection!
"The time of the next release of this media" "The time of the next release of this media"
nextRelease: ISO8601DateTime nextRelease: ISO8601DateTime
"The country in which the media was primarily produced"
originalLocale: String
"The poster image of this media" "The poster image of this media"
posterImage: Image! posterImage: Image!
"The companies which helped to produce this media" "The companies which helped to produce this media"
@ -318,6 +320,8 @@ type Anime implements Episodic & Media & WithTimestamps {
): MappingConnection! ): MappingConnection!
"The time of the next release of this media" "The time of the next release of this media"
nextRelease: ISO8601DateTime nextRelease: ISO8601DateTime
"The country in which the media was primarily produced"
originalLocale: String
"The poster image of this media" "The poster image of this media"
posterImage: Image! posterImage: Image!
"The companies which helped to produce this media" "The companies which helped to produce this media"
@ -648,7 +652,7 @@ type Comment implements WithTimestamps {
contentFormatted: String! contentFormatted: String!
createdAt: ISO8601DateTime! createdAt: ISO8601DateTime!
id: ID! id: ID!
"Users who liked this comment." "Users who liked this comment"
likes( likes(
"Returns the elements in the list that come after the specified cursor." "Returns the elements in the list that come after the specified cursor."
after: String, after: String,
@ -657,13 +661,14 @@ type Comment implements WithTimestamps {
"Returns the first _n_ elements from the list." "Returns the first _n_ elements from the list."
first: Int, first: Int,
"Returns the last _n_ elements from the list." "Returns the last _n_ elements from the list."
last: Int last: Int,
sort: [CommentLikeSortOption]
): ProfileConnection! ): ProfileConnection!
"The parent comment if this comment was a reply to another." "The parent comment if this comment was a reply to another."
parent: Comment parent: Comment
"The post that this comment is attached to." "The post that this comment is attached to."
post: Post! post: Post!
"All replies to a specific comment." "Replies to this comment"
replies( replies(
"Returns the elements in the list that come after the specified cursor." "Returns the elements in the list that come after the specified cursor."
after: String, after: String,
@ -672,7 +677,8 @@ type Comment implements WithTimestamps {
"Returns the first _n_ elements from the list." "Returns the first _n_ elements from the list."
first: Int, first: Int,
"Returns the last _n_ elements from the list." "Returns the last _n_ elements from the list."
last: Int last: Int,
sort: [CommentSortOption]
): CommentConnection! ): CommentConnection!
updatedAt: ISO8601DateTime! updatedAt: ISO8601DateTime!
} }
@ -1197,6 +1203,8 @@ type Manga implements Media & WithTimestamps {
): MappingConnection! ): MappingConnection!
"The time of the next release of this media" "The time of the next release of this media"
nextRelease: ISO8601DateTime nextRelease: ISO8601DateTime
"The country in which the media was primarily produced"
originalLocale: String
"The poster image of this media" "The poster image of this media"
posterImage: Image! posterImage: Image!
"The companies which helped to produce this media" "The companies which helped to produce this media"
@ -1624,7 +1632,7 @@ type Person implements WithTimestamps {
type Post implements WithTimestamps { type Post implements WithTimestamps {
"The user who created this post." "The user who created this post."
author: Profile! author: Profile!
"All comments related to this post." "All comments on this post"
comments( comments(
"Returns the elements in the list that come after the specified cursor." "Returns the elements in the list that come after the specified cursor."
after: String, after: String,
@ -1633,7 +1641,8 @@ type Post implements WithTimestamps {
"Returns the first _n_ elements from the list." "Returns the first _n_ elements from the list."
first: Int, first: Int,
"Returns the last _n_ elements from the list." "Returns the last _n_ elements from the list."
last: Int last: Int,
sort: [CommentSortOption]
): CommentConnection! ): CommentConnection!
"Unmodified content." "Unmodified content."
content: String! content: String!
@ -1656,7 +1665,7 @@ type Post implements WithTimestamps {
isNsfw: Boolean! isNsfw: Boolean!
"If this post spoils the tagged media." "If this post spoils the tagged media."
isSpoiler: Boolean! isSpoiler: Boolean!
"Users that have liked this post." "Users that have liked this post"
likes( likes(
"Returns the elements in the list that come after the specified cursor." "Returns the elements in the list that come after the specified cursor."
after: String, after: String,
@ -1665,7 +1674,8 @@ type Post implements WithTimestamps {
"Returns the first _n_ elements from the list." "Returns the first _n_ elements from the list."
first: Int, first: Int,
"Returns the last _n_ elements from the list." "Returns the last _n_ elements from the list."
last: Int last: Int,
sort: [PostLikeSortOption]
): ProfileConnection! ): ProfileConnection!
"When this post was locked." "When this post was locked."
lockedAt: ISO8601DateTime lockedAt: ISO8601DateTime
@ -1816,7 +1826,8 @@ type Profile implements WithTimestamps {
"Returns the first _n_ elements from the list." "Returns the first _n_ elements from the list."
first: Int, first: Int,
"Returns the last _n_ elements from the list." "Returns the last _n_ elements from the list."
last: Int last: Int,
sort: [FollowSortOption]
): ProfileConnection! ): ProfileConnection!
"People the user is following" "People the user is following"
following( following(
@ -1827,7 +1838,8 @@ type Profile implements WithTimestamps {
"Returns the first _n_ elements from the list." "Returns the first _n_ elements from the list."
first: Int, first: Int,
"Returns the last _n_ elements from the list." "Returns the last _n_ elements from the list."
last: Int last: Int,
sort: [FollowSortOption]
): ProfileConnection! ): ProfileConnection!
"What the user identifies as" "What the user identifies as"
gender: String gender: String
@ -1872,7 +1884,8 @@ type Profile implements WithTimestamps {
"Returns the first _n_ elements from the list." "Returns the first _n_ elements from the list."
first: Int, first: Int,
"Returns the last _n_ elements from the list." "Returns the last _n_ elements from the list."
last: Int last: Int,
sort: [PostSortOption]
): PostConnection! ): PostConnection!
"The message this user has submitted to the Hall of Fame" "The message this user has submitted to the Hall of Fame"
proMessage: String proMessage: String
@ -2438,6 +2451,23 @@ enum CharacterRoleEnum {
RECURRING RECURRING
} }
enum CommentLikeSortEnum {
CREATED_AT
FOLLOWING
}
enum CommentSortEnum {
CREATED_AT
FOLLOWING
LIKES_COUNT
}
enum FollowSortEnum {
CREATED_AT
FOLLOWING_FOLLOWED
FOLLOWING_FOLLOWER
}
enum LibraryEntryStatusEnum { enum LibraryEntryStatusEnum {
"The user completed this media." "The user completed this media."
COMPLETED COMPLETED
@ -2528,6 +2558,15 @@ enum MediaTypeEnum {
MANGA MANGA
} }
enum PostLikeSortEnum {
CREATED_AT
FOLLOWING
}
enum PostSortEnum {
CREATED_AT
}
enum ProTierEnum { enum ProTierEnum {
"Aozora Pro (only hides ads)" "Aozora Pro (only hides ads)"
AO_PRO @deprecated(reason : "No longer for sale") AO_PRO @deprecated(reason : "No longer for sale")
@ -2592,6 +2631,11 @@ enum SitePermissionEnum {
DATABASE_MOD DATABASE_MOD
} }
enum SortDirection {
ASCENDING
DESCENDING
}
enum TitleLanguagePreferenceEnum { enum TitleLanguagePreferenceEnum {
"Prefer the most commonly-used title for media" "Prefer the most commonly-used title for media"
CANONICAL CANONICAL
@ -2632,6 +2676,16 @@ input AnimeUpdateInput {
youtubeTrailerVideoId: String youtubeTrailerVideoId: String
} }
input CommentLikeSortOption {
direction: SortDirection!
on: CommentLikeSortEnum!
}
input CommentSortOption {
direction: SortDirection!
on: CommentSortEnum!
}
input EpisodeCreateInput { input EpisodeCreateInput {
description: Map description: Map
length: Int length: Int
@ -2653,6 +2707,11 @@ input EpisodeUpdateInput {
titles: TitlesListInput titles: TitlesListInput
} }
input FollowSortOption {
direction: SortDirection!
on: FollowSortEnum!
}
input GenericDeleteInput { input GenericDeleteInput {
id: ID! id: ID!
} }
@ -2742,6 +2801,16 @@ input MappingUpdateInput {
itemType: MappingItemEnum itemType: MappingItemEnum
} }
input PostLikeSortOption {
direction: SortDirection!
on: PostLikeSortEnum!
}
input PostSortOption {
direction: SortDirection!
on: PostSortEnum!
}
input TitlesListInput { input TitlesListInput {
alternatives: [String!] alternatives: [String!]
canonical: String canonical: String