add delete account mutation to schema.ts
This commit is contained in:
@ -189,6 +189,22 @@ const schema = gql`
|
||||
message: String
|
||||
}
|
||||
|
||||
enum DeleteAccountErrorCode {
|
||||
USER_NOT_FOUND
|
||||
UNAUTHORIZED
|
||||
FORBIDDEN
|
||||
}
|
||||
|
||||
type DeleteAccountError {
|
||||
errorCodes: [DeleteAccountErrorCode!]!
|
||||
}
|
||||
|
||||
type DeleteAccountSuccess {
|
||||
userID: ID!
|
||||
}
|
||||
|
||||
union DeleteAccountResult = DeleteAccountSuccess | DeleteAccountError
|
||||
|
||||
union UpdateUserResult = UpdateUserSuccess | UpdateUserError
|
||||
input UpdateUserInput {
|
||||
name: String! @sanitize(maxLength: 50)
|
||||
@ -1752,6 +1768,7 @@ const schema = gql`
|
||||
googleLogin(input: GoogleLoginInput!): LoginResult!
|
||||
googleSignup(input: GoogleSignupInput!): GoogleSignupResult!
|
||||
logOut: LogOutResult!
|
||||
deleteAccount(userID: ID!): DeleteAccountResult!
|
||||
updateUser(input: UpdateUserInput!): UpdateUserResult!
|
||||
updateUserProfile(input: UpdateUserProfileInput!): UpdateUserProfileResult!
|
||||
createArticle(input: CreateArticleInput!): CreateArticleResult!
|
||||
|
||||
Reference in New Issue
Block a user