mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
add delete account mutation to schema.ts
This commit is contained in:
parent
620ace93d1
commit
d595bfb7f1
1 changed files with 17 additions and 0 deletions
|
|
@ -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!
|
||||
|
|
|
|||
Loading…
Reference in a new issue