Merge pull request #49 from Discours/create-shout

Create shout
This commit is contained in:
Tony
2022-11-30 09:13:34 +03:00
committed by GitHub
4 changed files with 116 additions and 74 deletions

View File

@@ -94,12 +94,13 @@ type ReactionUpdating {
################################### Inputs ###################################
input ShoutInput {
slug: String!
body: String!
community: String!
mainTopic: String
topic_slugs: [String]
slug: String
title: String
body: String!
authors: [String]
topics: [String]
community: Int
mainTopic: String
subtitle: String
versionOf: String
visibleForRoles: [String] # role ids are strings
@@ -164,8 +165,8 @@ type Mutation {
confirmEmail(token: String!): AuthResult!
# shout
createShout(input: ShoutInput!): Result!
updateShout(input: ShoutInput!): Result!
createShout(inp: ShoutInput!): Result!
updateShout(inp: ShoutInput!): Result!
deleteShout(slug: String!): Result!
# user profile
@@ -185,8 +186,9 @@ type Mutation {
deleteReaction(id: Int!): Result!
# collab
inviteAuthor(author: String!, shout: String!): Result!
removeAuthor(author: String!, shout: String!): Result!
inviteCoauthor(author: String!, shout: int!): Result!
removeCouthor(author: String!, shout: Int!): Result!
acceptCoauthor(shout: Int!): Result!
# following
follow(what: FollowingEntity!, slug: String!): Result!
@@ -371,14 +373,6 @@ type User {
oid: String
}
type Collab {
authors: [String]!
invites: [String]
createdAt: DateTime!
title: String
body: String
}
enum ReactionKind {
LIKE
DISLIKE
@@ -525,3 +519,11 @@ type Chat {
unread: Int
private: Boolean
}
type Collab {
authors: [String]!
invites: [String]
shout: Shout
chat: Chat
createdAt: Int!
}