refactor: polishing of admin dashboard teams module (#64)

Co-authored-by: Anwarul Islam <anwaarulislaam@gmail.com>
This commit is contained in:
Joel Jacob Stephen
2023-04-04 13:48:02 +05:30
committed by GitHub
parent ea847d7d32
commit e27dc1f7a2
20 changed files with 1097 additions and 1447 deletions

View File

@@ -0,0 +1,13 @@
mutation AddUserToTeamByAdmin(
$userEmail: String!
$role: TeamMemberRole!
$teamID: ID!
) {
addUserToTeamByAdmin(role: $role, userEmail: $userEmail, teamID: $teamID) {
membershipID
role
user {
uid
}
}
}

View File

@@ -0,0 +1,14 @@
mutation ChangeUserRoleInTeamByAdmin(
$userUID: ID!
$teamID: ID!
$newRole: TeamMemberRole!
) {
changeUserRoleInTeamByAdmin(
userUID: $userUID
teamID: $teamID
newRole: $newRole
) {
membershipID
role
}
}

View File

@@ -12,7 +12,6 @@ mutation CreateTeam($userUid: ID!, $name: String!) {
photoURL
}
}
myRole
ownersCount
editorsCount
viewersCount

View File

@@ -1,3 +0,0 @@
mutation RemoveTeamMember($userUid: ID!, $teamID: ID!) {
removeTeamMember(userUid: $userUid, teamID: $teamID)
}

View File

@@ -0,0 +1,3 @@
mutation RemoveUserFromTeamByAdmin($userUid: ID!, $teamID: ID!) {
removeUserFromTeamByAdmin(userUid: $userUid, teamID: $teamID)
}

View File

@@ -1,10 +0,0 @@
mutation UpdateTeamMemberRole(
$newRole: TeamMemberRole!
$userUid: ID!
$teamID: ID!
) {
updateTeamMemberRole(newRole: $newRole, userUid: $userUid, teamID: $teamID) {
membershipID
role
}
}