2020-07-05 01:02:57 +02:00
|
|
|
extend type Mutation {
|
|
|
|
createRefreshToken(input: NewRefreshToken!): RefreshToken!
|
2020-08-01 03:01:14 +02:00
|
|
|
createUserAccount(input: NewUserAccount!):
|
|
|
|
UserAccount! @hasRole(roles: [ADMIN], level: ORG, type: ORG)
|
|
|
|
deleteUserAccount(input: DeleteUserAccount!):
|
|
|
|
DeleteUserAccountPayload! @hasRole(roles: [ADMIN], level: ORG, type: ORG)
|
|
|
|
|
2020-07-05 01:02:57 +02:00
|
|
|
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-08-01 03:01:14 +02:00
|
|
|
updateUserRole(input: UpdateUserRole!):
|
|
|
|
UpdateUserRolePayload! @hasRole(roles: [ADMIN], level: ORG, type: ORG)
|
2020-09-11 20:54:43 +02:00
|
|
|
updateUserInfo(input: UpdateUserInfo!):
|
|
|
|
UpdateUserInfoPayload! @hasRole(roles: [ADMIN], level: ORG, type: ORG)
|
|
|
|
}
|
|
|
|
|
2020-09-22 04:43:56 +02:00
|
|
|
extend type Query {
|
|
|
|
searchMembers(input: MemberSearchFilter!): [MemberSearchResult!]!
|
|
|
|
}
|
|
|
|
|
|
|
|
input MemberSearchFilter {
|
|
|
|
SearchFilter: String!
|
|
|
|
projectID: UUID
|
|
|
|
}
|
|
|
|
|
|
|
|
type MemberSearchResult {
|
|
|
|
id: UUID!
|
|
|
|
similarity: Int!
|
|
|
|
username: String!
|
|
|
|
fullName: String!
|
|
|
|
confirmed: Boolean!
|
|
|
|
joined: Boolean!
|
|
|
|
}
|
|
|
|
|
2020-09-11 20:54:43 +02:00
|
|
|
type UpdateUserInfoPayload {
|
|
|
|
user: UserAccount!
|
|
|
|
}
|
|
|
|
|
|
|
|
input UpdateUserInfo {
|
|
|
|
name: String!
|
|
|
|
initials: String!
|
|
|
|
email: String!
|
|
|
|
bio: String!
|
2020-07-12 09:06:11 +02:00
|
|
|
}
|
|
|
|
|
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 {
|
2020-09-20 00:26:02 +02:00
|
|
|
userID: UUID!
|
2020-07-05 01:02:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
input NewUserAccount {
|
|
|
|
username: String!
|
|
|
|
email: String!
|
|
|
|
fullName: String!
|
|
|
|
initials: String!
|
|
|
|
password: String!
|
|
|
|
roleCode: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
input LogoutUser {
|
2020-09-20 00:26:02 +02:00
|
|
|
userID: UUID!
|
2020-07-05 01:02:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
input DeleteUserAccount {
|
|
|
|
userID: UUID!
|
2020-07-18 04:55:38 +02:00
|
|
|
newOwnerID: UUID
|
2020-07-05 01:02:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteUserAccountPayload {
|
|
|
|
ok: Boolean!
|
|
|
|
userAccount: UserAccount!
|
|
|
|
}
|