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 {
|
type Embed {
|
||||||
# Get a JWT Token for the given Email and password
|
type: String
|
||||||
login(email: String!, password: String!): String!
|
title: String
|
||||||
changePassword(oldPassword: String!, newPassword: String!): String!
|
author: String
|
||||||
requestPasswordReset(email: String!): Boolean!
|
publisher: String
|
||||||
resetPassword(email: String!, nonce: String!, newPassword: String!): Boolean!
|
date: String
|
||||||
# Shout the given Type and ID
|
description: String
|
||||||
shout(id: ID!, type: ShoutTypeEnum): Boolean!
|
url: String
|
||||||
# Unshout the given Type and ID
|
image: String
|
||||||
unshout(id: ID!, type: ShoutTypeEnum): Boolean!
|
audio: String
|
||||||
followUser(id: ID!): User
|
video: String
|
||||||
unfollowUser(id: ID!): User
|
lang: String
|
||||||
|
html: String
|
||||||
|
sources: [String]
|
||||||
}
|
}
|
||||||
|
|
||||||
enum ShoutTypeEnum {
|
type Query {
|
||||||
Post
|
embed(url: String!): Embed
|
||||||
}
|
|
||||||
|
|
||||||
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
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -207,6 +207,9 @@ type Mutation {
|
|||||||
pinPost(id: ID!): Post
|
pinPost(id: ID!): Post
|
||||||
unpinPost(id: ID!): Post
|
unpinPost(id: ID!): Post
|
||||||
markTeaserAsViewed(id: ID!): Post
|
markTeaserAsViewed(id: ID!): Post
|
||||||
|
|
||||||
|
shout(id: ID!, type: String): Boolean
|
||||||
|
unshout(id: ID!, type: String): Boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
type Query {
|
type Query {
|
||||||
|
|||||||
@ -214,10 +214,20 @@ type Mutation {
|
|||||||
|
|
||||||
muteUser(id: ID!): User
|
muteUser(id: ID!): User
|
||||||
unmuteUser(id: ID!): User
|
unmuteUser(id: ID!): User
|
||||||
|
|
||||||
blockUser(id: ID!): User
|
blockUser(id: ID!): User
|
||||||
unblockUser(id: ID!): User
|
unblockUser(id: ID!): User
|
||||||
|
|
||||||
|
followUser(id: ID!): User
|
||||||
|
unfollowUser(id: ID!): User
|
||||||
|
|
||||||
switchUserRole(role: UserRole!, id: ID!): User
|
switchUserRole(role: UserRole!, id: ID!): User
|
||||||
|
|
||||||
saveCategorySettings(activeCategories: [String]): Boolean
|
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