43 lines
969 B
GraphQL
43 lines
969 B
GraphQL
extend type Mutation {
|
|
# TODO: rename to inviteProjectMember
|
|
inviteProjectMember(input: InviteProjectMember!):
|
|
InviteProjectMemberPayload! @hasRole(roles: [ADMIN], level: PROJECT, type: PROJECT)
|
|
deleteProjectMember(input: DeleteProjectMember!):
|
|
DeleteProjectMemberPayload! @hasRole(roles: [ADMIN], level: PROJECT, type: PROJECT)
|
|
updateProjectMemberRole(input: UpdateProjectMemberRole!):
|
|
UpdateProjectMemberRolePayload! @hasRole(roles: [ADMIN], level: PROJECT, type: PROJECT)
|
|
}
|
|
|
|
input InviteProjectMember {
|
|
projectID: UUID!
|
|
userID: UUID
|
|
email: String
|
|
}
|
|
|
|
type InviteProjectMemberPayload {
|
|
ok: Boolean!
|
|
member: Member!
|
|
}
|
|
|
|
input DeleteProjectMember {
|
|
projectID: UUID!
|
|
userID: UUID!
|
|
}
|
|
|
|
type DeleteProjectMemberPayload {
|
|
ok: Boolean!
|
|
member: Member!
|
|
projectID: UUID!
|
|
}
|
|
|
|
input UpdateProjectMemberRole {
|
|
projectID: UUID!
|
|
userID: UUID!
|
|
roleCode: RoleCode!
|
|
}
|
|
|
|
type UpdateProjectMemberRolePayload {
|
|
ok: Boolean!
|
|
member: Member!
|
|
}
|