This commit is contained in:
2023-01-13 14:04:45 +03:00
parent 92b1eae932
commit 2017be82ee
5 changed files with 122 additions and 80 deletions

View File

@@ -128,6 +128,17 @@ input TopicInput {
# parents: [String]
}
input DraftInput {
slug: String
topics: [Int]
authors: [Int]
title: String
subtitle: String
body: String
cover: String
}
input ReactionInput {
kind: ReactionKind!
shout: Int!
@@ -189,10 +200,12 @@ type Mutation {
updateReaction(reaction: ReactionInput!): Result!
deleteReaction(reaction: Int!): Result!
# collab
inviteCoauthor(author: String!, shout: Int!): Result!
removeCoauthor(author: String!, shout: Int!): Result!
acceptCoauthor(shout: Int!): Result!
# draft / collab
createDraft(draft: DraftInput!): Result!
updateDraft(draft: DraftInput!): Result!
deleteDraft(draft: Int!): Result!
inviteAccept(draft: Int!): Result!
inviteAuthor(draft: Int!, author: Int!): Result!
# following
follow(what: FollowingEntity!, slug: String!): Result!
@@ -289,8 +302,8 @@ type Query {
authorsAll: [Author]!
getAuthor(slug: String!): User
# collab
getCollabs: [Collab]!
# draft/collab
loadDrafts: [DraftCollab]!
# migrate
markdownBody(body: String!): String!