2020-07-05 01:02:57 +02:00
|
|
|
extend type Mutation {
|
|
|
|
createRefreshToken(input: NewRefreshToken!): RefreshToken!
|
|
|
|
createUserAccount(input: NewUserAccount!): UserAccount!
|
|
|
|
deleteUserAccount(input: DeleteUserAccount!): DeleteUserAccountPayload!
|
|
|
|
logoutUser(input: LogoutUser!): Boolean!
|
|
|
|
clearProfileAvatar: UserAccount!
|
2020-07-12 09:06:11 +02:00
|
|
|
|
2020-07-16 01:20:08 +02:00
|
|
|
updateUserPassword(input: UpdateUserPassword!): UpdateUserPasswordPayload!
|
2020-07-12 09:06:11 +02:00
|
|
|
updateUserRole(input: UpdateUserRole!): UpdateUserRolePayload!
|
|
|
|
}
|
|
|
|
|
2020-07-16 01:20:08 +02:00
|
|
|
input UpdateUserPassword {
|
|
|
|
userID: UUID!
|
|
|
|
password: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type UpdateUserPasswordPayload {
|
|
|
|
ok: Boolean!
|
|
|
|
user: UserAccount!
|
|
|
|
}
|
|
|
|
|
2020-07-12 09:06:11 +02:00
|
|
|
input UpdateUserRole {
|
|
|
|
userID: UUID!
|
|
|
|
roleCode: RoleCode!
|
|
|
|
}
|
|
|
|
|
|
|
|
type UpdateUserRolePayload {
|
|
|
|
user: UserAccount!
|
2020-07-05 01:02:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
input NewRefreshToken {
|
|
|
|
userId: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
input NewUserAccount {
|
|
|
|
username: String!
|
|
|
|
email: String!
|
|
|
|
fullName: String!
|
|
|
|
initials: String!
|
|
|
|
password: String!
|
|
|
|
roleCode: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
input LogoutUser {
|
|
|
|
userID: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
input DeleteUserAccount {
|
|
|
|
userID: UUID!
|
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteUserAccountPayload {
|
|
|
|
ok: Boolean!
|
|
|
|
userAccount: UserAccount!
|
|
|
|
}
|