correct our schema defintion

This commit is contained in:
Ulf Gebhardt 2023-05-23 01:50:06 +02:00
parent 8ca55f4d6e
commit 1b8e5cc0a3
Signed by: ulfgebhardt
GPG Key ID: DA6B843E748679C9
3 changed files with 29 additions and 27 deletions

View File

@ -1,30 +1,19 @@
type Mutation {
# Get a JWT Token for the given Email and password
login(email: String!, password: String!): String!
changePassword(oldPassword: String!, newPassword: String!): String!
requestPasswordReset(email: String!): Boolean!
resetPassword(email: String!, nonce: String!, newPassword: String!): Boolean!
# Shout the given Type and ID
shout(id: ID!, type: ShoutTypeEnum): Boolean!
# Unshout the given Type and ID
unshout(id: ID!, type: ShoutTypeEnum): Boolean!
followUser(id: ID!): User
unfollowUser(id: ID!): User
type Embed {
type: String
title: String
author: String
publisher: String
date: String
description: String
url: String
image: String
audio: String
video: String
lang: String
html: String
sources: [String]
}
enum ShoutTypeEnum {
Post
}
type Reward {
id: ID!
user: User @relation(name: "REWARDED", direction: "IN")
rewarderId: ID
createdAt: String
badge: Badge @relation(name: "REWARDED", direction: "OUT")
}
type SharedInboxEndpoint {
id: ID!
uri: String
type Query {
embed(url: String!): Embed
}

View File

@ -207,6 +207,9 @@ type Mutation {
pinPost(id: ID!): Post
unpinPost(id: ID!): Post
markTeaserAsViewed(id: ID!): Post
shout(id: ID!, type: String): Boolean
unshout(id: ID!, type: String): Boolean
}
type Query {

View File

@ -214,10 +214,20 @@ type Mutation {
muteUser(id: ID!): User
unmuteUser(id: ID!): User
blockUser(id: ID!): User
unblockUser(id: ID!): User
followUser(id: ID!): User
unfollowUser(id: ID!): User
switchUserRole(role: UserRole!, id: ID!): User
saveCategorySettings(activeCategories: [String]): Boolean
requestPasswordReset(email: String!): Boolean
resetPassword(nonce: String!, email: String!, newPassword: String!): Boolean
changePassword(oldPassword: String!, newPassword: String!): User
login(email: String!, password: String!): User
}