2020-07-05 01:02:57 +02:00
|
|
|
extend type Mutation {
|
|
|
|
setTeamOwner(input: SetTeamOwner!): SetTeamOwnerPayload!
|
|
|
|
createTeamMember(input: CreateTeamMember!): CreateTeamMemberPayload!
|
|
|
|
updateTeamMemberRole(input: UpdateTeamMemberRole!): UpdateTeamMemberRolePayload!
|
|
|
|
deleteTeamMember(input: DeleteTeamMember!): DeleteTeamMemberPayload!
|
|
|
|
}
|
|
|
|
|
|
|
|
input DeleteTeamMember {
|
|
|
|
teamID: UUID!
|
|
|
|
userID: UUID!
|
2020-07-12 09:06:11 +02:00
|
|
|
newOwnerID: UUID
|
2020-07-05 01:02:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteTeamMemberPayload {
|
|
|
|
teamID: UUID!
|
|
|
|
userID: UUID!
|
2020-07-12 09:06:11 +02:00
|
|
|
affectedProjects: [Project!]!
|
2020-07-05 01:02:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
input CreateTeamMember {
|
|
|
|
userID: UUID!
|
|
|
|
teamID: UUID!
|
|
|
|
}
|
|
|
|
|
|
|
|
type CreateTeamMemberPayload {
|
|
|
|
team: Team!
|
|
|
|
teamMember: Member!
|
|
|
|
}
|
|
|
|
|
|
|
|
input UpdateTeamMemberRole {
|
|
|
|
teamID: UUID!
|
|
|
|
userID: UUID!
|
|
|
|
roleCode: RoleCode!
|
|
|
|
}
|
|
|
|
|
|
|
|
type UpdateTeamMemberRolePayload {
|
|
|
|
ok: Boolean!
|
|
|
|
member: Member!
|
|
|
|
}
|
|
|
|
|
|
|
|
input SetTeamOwner {
|
|
|
|
teamID: UUID!
|
|
|
|
userID: UUID!
|
|
|
|
}
|
|
|
|
|
|
|
|
type SetTeamOwnerPayload {
|
|
|
|
ok: Boolean!
|
|
|
|
prevOwner: Member!
|
|
|
|
newOwner: Member!
|
|
|
|
}
|