mirror of
https://github.com/wassname/talk.git
synced 2026-07-22 13:00:29 +08:00
Move previous suspendUser feature to rejectUsername
This commit is contained in:
+22
-3
@@ -679,13 +679,21 @@ input SuspendUserInput {
|
||||
# TODO: should this be required?
|
||||
message: String
|
||||
|
||||
# If set, the user is requested to change its username.
|
||||
mustChangeUsername: Boolean
|
||||
|
||||
# If set, the suspension lasts at least until specified date.
|
||||
until: Date
|
||||
}
|
||||
|
||||
# Input for rejectUsername mutation.
|
||||
input RejectUsernameInput {
|
||||
|
||||
# id of target user.
|
||||
id: ID!
|
||||
|
||||
# message to be sent to the user.
|
||||
# TODO: should this be required?
|
||||
message: String
|
||||
}
|
||||
|
||||
# DeleteActionResponse is the response returned with possibly some errors
|
||||
# relating to the delete action attempt.
|
||||
type DeleteActionResponse implements Response {
|
||||
@@ -710,6 +718,14 @@ type SuspendUserResponse implements Response {
|
||||
errors: [UserError]
|
||||
}
|
||||
|
||||
# RejectUsernameResponse is the response returned with possibly some errors
|
||||
# relating to the reject username action attempt.
|
||||
type RejectUsernameResponse implements Response {
|
||||
|
||||
# An array of errors relating to the mutation that occurred.
|
||||
errors: [UserError]
|
||||
}
|
||||
|
||||
# SetCommentStatusResponse is the response returned with possibly some errors
|
||||
# relating to the delete action attempt.
|
||||
type SetCommentStatusResponse implements Response {
|
||||
@@ -785,6 +801,9 @@ type RootMutation {
|
||||
# Suspends a user. Requires the `ADMIN` role.
|
||||
suspendUser(input: SuspendUserInput!): SuspendUserResponse
|
||||
|
||||
# Suspends a user. Requires the `ADMIN` role.
|
||||
rejectUsername(input: RejectUsernameInput!): RejectUsernameResponse
|
||||
|
||||
# Sets Comment status. Requires the `ADMIN` role.
|
||||
setCommentStatus(id: ID!, status: COMMENT_STATUS!): SetCommentStatusResponse
|
||||
|
||||
|
||||
Reference in New Issue
Block a user