chore: project cleanup and bugfixes
This commit is contained in:
@ -0,0 +1,19 @@
|
||||
import gql from 'graphql-tag';
|
||||
|
||||
const UPDATE_TASK_CHECKLIST_ITEM_LOCATION_MUTATION = gql`
|
||||
mutation updateTaskChecklistItemLocation($checklistID: UUID!, $checklistItemID: UUID!, $position: Float!) {
|
||||
updateTaskChecklistItemLocation(
|
||||
input: { checklistID: $checklistID, checklistItemID: $checklistItemID, position: $position }
|
||||
) {
|
||||
checklistID
|
||||
prevChecklistID
|
||||
checklistItem {
|
||||
id
|
||||
taskChecklistID
|
||||
position
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export default UPDATE_TASK_CHECKLIST_ITEM_LOCATION_MUTATION;
|
@ -0,0 +1,14 @@
|
||||
import gql from 'graphql-tag';
|
||||
|
||||
const UPDATE_TASK_CHECKLIST_LOCATION_MUTATION = gql`
|
||||
mutation updateTaskChecklistLocation($checklistID: UUID!, $position: Float!) {
|
||||
updateTaskChecklistLocation(input: { checklistID: $checklistID, position: $position }) {
|
||||
checklist {
|
||||
id
|
||||
position
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export default UPDATE_TASK_CHECKLIST_LOCATION_MUTATION;
|
@ -1,8 +1,8 @@
|
||||
import gql from 'graphql-tag';
|
||||
|
||||
export const DELETE_TEAM_MEMBER_MUTATION = gql`
|
||||
mutation deleteTeamMember($teamID: UUID!, $userID: UUID!) {
|
||||
deleteTeamMember(input: { teamID: $teamID, userID: $userID }) {
|
||||
mutation deleteTeamMember($teamID: UUID!, $userID: UUID!, $newOwnerID: UUID) {
|
||||
deleteTeamMember(input: { teamID: $teamID, userID: $userID, newOwnerID: $newOwnerID }) {
|
||||
teamID
|
||||
userID
|
||||
}
|
||||
|
@ -14,6 +14,10 @@ export const GET_TEAM_QUERY = gql`
|
||||
code
|
||||
name
|
||||
}
|
||||
owned {
|
||||
projects
|
||||
teams
|
||||
}
|
||||
profileIcon {
|
||||
url
|
||||
initials
|
||||
|
17
frontend/src/shared/graphql/user/updateUserRole.ts
Normal file
17
frontend/src/shared/graphql/user/updateUserRole.ts
Normal file
@ -0,0 +1,17 @@
|
||||
import gql from 'graphql-tag';
|
||||
|
||||
export const UPDATE_USER_ROLE_MUTATION = gql`
|
||||
mutation updateUserRole($userID: UUID!, $roleCode: RoleCode!) {
|
||||
updateUserRole(input:{userID: $userID, roleCode:$roleCode}) {
|
||||
user {
|
||||
id
|
||||
role {
|
||||
code
|
||||
name
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
`;
|
||||
|
||||
export default UPDATE_USER_ROLE_MUTATION;
|
Reference in New Issue
Block a user