mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
correct our schema defintion
This commit is contained in:
parent
8ca55f4d6e
commit
1b8e5cc0a3
@ -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
|
||||
}
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user