Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
Showing only changes of commit 0029dd2fb8 - Show all commits

View File

@ -241,6 +241,8 @@ type Account implements WithTimestamps {
ratingSystem: RatingSystemEnum!
"Whether Not Safe For Work content is accessible"
sfwFilter: Boolean
"The site-wide permissions this user has access to"
sitePermissions: [SitePermissionEnum!]!
"Time zone of the account"
timeZone: String
"Preferred language for media titles"
@ -921,6 +923,8 @@ type Library {
last: Int,
mediaType: MediaTypeEnum!
): LibraryEntryConnection!
"Random anime or manga from this library"
randomMedia(mediaType: MediaTypeEnum!, status: [LibraryEntryStatusEnum!]!): Media
}
"Information about a specific media entry for a user"
@ -1143,6 +1147,13 @@ type LibraryEventEdge {
node: LibraryEvent
}
"Autogenerated return type of LockPost"
type LockPostPayload {
"Graphql Errors"
errors: [Generic!]
post: Post
}
type Manga implements Media & WithTimestamps {
"The recommended minimum age group for this media"
ageRating: AgeRatingEnum
@ -1581,6 +1592,7 @@ type Mutation {
episode: EpisodeMutation
libraryEntry: LibraryEntryMutation
mapping: MappingMutation
post: PostMutation
pro: ProMutation!
}
@ -1684,6 +1696,12 @@ type Post implements WithTimestamps {
"Returns the last _n_ elements from the list."
last: Int
): ProfileConnection!
"When this post was locked."
lockedAt: ISO8601DateTime
"The user who locked this post."
lockedBy: Profile
"The reason why this post was locked."
lockedReason: LockedReasonEnum
"The media tagged in this post."
media: Media
updatedAt: ISO8601DateTime!
@ -1709,6 +1727,19 @@ type PostEdge {
node: Post
}
type PostMutation {
"Lock a Post."
lock(
"Lock a Post."
input: LockInput!
): LockPostPayload
"Unlock a Post."
unlock(
"Unlock a Post."
input: UnlockInput!
): UnlockPostPayload
}
type ProMutation {
"Set the user's discord tag"
setDiscord(
@ -2055,6 +2086,8 @@ type Query {
"Returns the last _n_ elements from the list."
last: Int
): ProfileConnection!
"Random anime or manga"
randomMedia(ageRatings: [AgeRatingEnum!]!, mediaType: MediaTypeEnum!): Media!
"Search for Anime by title using Algolia. The most relevant results will be at the top."
searchAnimeByTitle(
"Returns the elements in the list that come after the specified cursor."
@ -2091,6 +2124,18 @@ type Query {
last: Int,
title: String!
): MediaConnection!
"Search for User by username using Algolia. The most relevant results will be at the top."
searchProfileByUsername(
"Returns the elements in the list that come after the specified cursor."
after: String,
"Returns the elements in the list that come before the specified cursor."
before: String,
"Returns the first _n_ elements from the list."
first: Int,
"Returns the last _n_ elements from the list."
last: Int,
username: String!
): ProfileConnection
"Get your current session info"
session: Session!
}
@ -2302,6 +2347,13 @@ type TitlesList {
localized(locales: [String!]): Map!
}
"Autogenerated return type of UnlockPost"
type UnlockPostPayload {
"Graphql Errors"
errors: [Generic!]
post: Post
}
"Autogenerated return type of Unsubscribe"
type UnsubscribePayload {
"Graphql Errors"
@ -2436,6 +2488,12 @@ enum LibraryEventKindEnum {
UPDATED
}
enum LockedReasonEnum {
CLOSED
SPAM
TOO_HEATED
}
enum MangaSubtypeEnum {
"Self published work."
DOUJIN
@ -2542,6 +2600,15 @@ enum ReleaseStatusEnum {
UPCOMING
}
enum SitePermissionEnum {
"Administrator/staff member of Kitsu"
ADMIN
"Moderator of community behavior"
COMMUNITY_MOD
"Maintainer of the Kitsu media database"
DATABASE_MOD
}
enum TitleLanguagePreferenceEnum {
"Prefer the most commonly-used title for media"
CANONICAL
@ -2672,6 +2739,11 @@ input LibraryEntryUpdateStatusByMediaInput {
status: LibraryEntryStatusEnum!
}
input LockInput {
id: ID!
lockedReason: LockedReasonEnum!
}
input MappingCreateInput {
externalId: ID!
externalSite: MappingExternalSiteEnum!
@ -2693,6 +2765,10 @@ input TitlesListInput {
localized: Map
}
input UnlockInput {
id: ID!
}
"A date, expressed as an ISO8601 string"
scalar Date