schema-fmt
This commit is contained in:
parent
27a358a41f
commit
971b87c0be
|
@ -154,9 +154,19 @@ extend type Query {
|
||||||
adminGetUsers(limit: Int, offset: Int, search: String): AdminUserListResponse!
|
adminGetUsers(limit: Int, offset: Int, search: String): AdminUserListResponse!
|
||||||
adminGetRoles: [Role!]!
|
adminGetRoles: [Role!]!
|
||||||
# Запросы для управления публикациями
|
# Запросы для управления публикациями
|
||||||
adminGetShouts(limit: Int, offset: Int, search: String, status: String): AdminShoutListResponse!
|
adminGetShouts(
|
||||||
|
limit: Int
|
||||||
|
offset: Int
|
||||||
|
search: String
|
||||||
|
status: String
|
||||||
|
): AdminShoutListResponse!
|
||||||
# Запросы для управления приглашениями
|
# Запросы для управления приглашениями
|
||||||
adminGetInvites(limit: Int, offset: Int, search: String, status: String): AdminInviteListResponse!
|
adminGetInvites(
|
||||||
|
limit: Int
|
||||||
|
offset: Int
|
||||||
|
search: String
|
||||||
|
status: String
|
||||||
|
): AdminInviteListResponse!
|
||||||
}
|
}
|
||||||
|
|
||||||
extend type Mutation {
|
extend type Mutation {
|
||||||
|
@ -172,6 +182,10 @@ extend type Mutation {
|
||||||
# Мутации для управления приглашениями
|
# Мутации для управления приглашениями
|
||||||
adminCreateInvite(invite: AdminInviteUpdateInput!): OperationResult!
|
adminCreateInvite(invite: AdminInviteUpdateInput!): OperationResult!
|
||||||
adminUpdateInvite(invite: AdminInviteUpdateInput!): OperationResult!
|
adminUpdateInvite(invite: AdminInviteUpdateInput!): OperationResult!
|
||||||
adminDeleteInvite(inviter_id: Int!, author_id: Int!, shout_id: Int!): OperationResult!
|
adminDeleteInvite(
|
||||||
|
inviter_id: Int!
|
||||||
|
author_id: Int!
|
||||||
|
shout_id: Int!
|
||||||
|
): OperationResult!
|
||||||
adminDeleteInvitesBatch(invites: [AdminInviteIdInput!]!): OperationResult!
|
adminDeleteInvitesBatch(invites: [AdminInviteIdInput!]!): OperationResult!
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,6 @@ enum ShoutsOrderBy {
|
||||||
}
|
}
|
||||||
|
|
||||||
enum ReactionKind {
|
enum ReactionKind {
|
||||||
|
|
||||||
# collabs
|
# collabs
|
||||||
AGREE
|
AGREE
|
||||||
DISAGREE
|
DISAGREE
|
||||||
|
@ -36,7 +35,6 @@ enum ReactionKind {
|
||||||
COMMENT
|
COMMENT
|
||||||
LIKE
|
LIKE
|
||||||
DISLIKE
|
DISLIKE
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
enum FollowingEntity {
|
enum FollowingEntity {
|
||||||
|
|
|
@ -10,7 +10,11 @@ type Mutation {
|
||||||
changePassword(oldPassword: String!, newPassword: String!): AuthSuccess!
|
changePassword(oldPassword: String!, newPassword: String!): AuthSuccess!
|
||||||
resetPassword(token: String!, newPassword: String!): AuthSuccess!
|
resetPassword(token: String!, newPassword: String!): AuthSuccess!
|
||||||
requestPasswordReset(email: String!, lang: String): AuthSuccess!
|
requestPasswordReset(email: String!, lang: String): AuthSuccess!
|
||||||
updateSecurity(email: String, old_password: String, new_password: String): SecurityUpdateResult!
|
updateSecurity(
|
||||||
|
email: String
|
||||||
|
old_password: String
|
||||||
|
new_password: String
|
||||||
|
): SecurityUpdateResult!
|
||||||
confirmEmailChange(token: String!): SecurityUpdateResult!
|
confirmEmailChange(token: String!): SecurityUpdateResult!
|
||||||
cancelEmailChange: SecurityUpdateResult!
|
cancelEmailChange: SecurityUpdateResult!
|
||||||
|
|
||||||
|
|
|
@ -16,12 +16,20 @@ type Query {
|
||||||
# community
|
# community
|
||||||
get_community: Community
|
get_community: Community
|
||||||
get_communities_all: [Community]
|
get_communities_all: [Community]
|
||||||
get_communities_by_author(slug: String, user: String, author_id: Int): [Community]
|
get_communities_by_author(
|
||||||
|
slug: String
|
||||||
|
user: String
|
||||||
|
author_id: Int
|
||||||
|
): [Community]
|
||||||
|
|
||||||
# collection
|
# collection
|
||||||
get_collection(slug: String!): Collection
|
get_collection(slug: String!): Collection
|
||||||
get_collections_all: [Collection]
|
get_collections_all: [Collection]
|
||||||
get_collections_by_author(slug: String, user: String, author_id: Int): [Collection]
|
get_collections_by_author(
|
||||||
|
slug: String
|
||||||
|
user: String
|
||||||
|
author_id: Int
|
||||||
|
): [Collection]
|
||||||
|
|
||||||
# follower
|
# follower
|
||||||
get_shout_followers(slug: String, shout_id: Int): [Author]
|
get_shout_followers(slug: String, shout_id: Int): [Author]
|
||||||
|
@ -30,7 +38,11 @@ type Query {
|
||||||
get_author_followers(slug: String, user: String, author_id: Int): [Author]
|
get_author_followers(slug: String, user: String, author_id: Int): [Author]
|
||||||
get_author_follows(slug: String, user: String, author_id: Int): CommonResult!
|
get_author_follows(slug: String, user: String, author_id: Int): CommonResult!
|
||||||
get_author_follows_topics(slug: String, user: String, author_id: Int): [Topic]
|
get_author_follows_topics(slug: String, user: String, author_id: Int): [Topic]
|
||||||
get_author_follows_authors(slug: String, user: String, author_id: Int): [Author]
|
get_author_follows_authors(
|
||||||
|
slug: String
|
||||||
|
user: String
|
||||||
|
author_id: Int
|
||||||
|
): [Author]
|
||||||
|
|
||||||
# reaction
|
# reaction
|
||||||
load_reactions_by(by: ReactionBy!, limit: Int, offset: Int): [Reaction]
|
load_reactions_by(by: ReactionBy!, limit: Int, offset: Int): [Reaction]
|
||||||
|
@ -39,7 +51,15 @@ type Query {
|
||||||
load_comment_ratings(comment: Int!, limit: Int, offset: Int): [Reaction]
|
load_comment_ratings(comment: Int!, limit: Int, offset: Int): [Reaction]
|
||||||
|
|
||||||
# branched comments pagination
|
# branched comments pagination
|
||||||
load_comments_branch(shout: Int!, parent_id: Int, limit: Int, offset: Int, sort: ReactionSort, children_limit: Int, children_offset: Int): [Reaction]
|
load_comments_branch(
|
||||||
|
shout: Int!
|
||||||
|
parent_id: Int
|
||||||
|
limit: Int
|
||||||
|
offset: Int
|
||||||
|
sort: ReactionSort
|
||||||
|
children_limit: Int
|
||||||
|
children_offset: Int
|
||||||
|
): [Reaction]
|
||||||
|
|
||||||
# reader
|
# reader
|
||||||
get_shout(slug: String, shout_id: Int): Shout
|
get_shout(slug: String, shout_id: Int): Shout
|
||||||
|
|
Loading…
Reference in New Issue
Block a user