2020-07-05 01:02:57 +02:00
|
|
|
extend type Mutation {
|
2020-08-01 03:01:14 +02:00
|
|
|
createTask(input: NewTask!):
|
2020-09-11 06:54:55 +02:00
|
|
|
Task! @hasRole(roles: [ADMIN], level: PROJECT, type: TASK_GROUP)
|
2020-08-01 03:01:14 +02:00
|
|
|
deleteTask(input: DeleteTaskInput!):
|
2020-09-11 06:54:55 +02:00
|
|
|
DeleteTaskPayload! @hasRole(roles: [ADMIN], level: PROJECT, type: TASK)
|
2020-07-05 01:02:57 +02:00
|
|
|
|
2020-08-01 03:01:14 +02:00
|
|
|
updateTaskDescription(input: UpdateTaskDescriptionInput!):
|
2020-09-11 06:54:55 +02:00
|
|
|
Task! @hasRole(roles: [ADMIN], level: PROJECT, type: TASK)
|
2020-08-01 03:01:14 +02:00
|
|
|
updateTaskLocation(input: NewTaskLocation!):
|
2020-09-11 06:54:55 +02:00
|
|
|
UpdateTaskLocationPayload! @hasRole(roles: [ADMIN], level: PROJECT, type: TASK)
|
2020-08-01 03:01:14 +02:00
|
|
|
updateTaskName(input: UpdateTaskName!):
|
2020-09-11 06:54:55 +02:00
|
|
|
Task! @hasRole(roles: [ADMIN], level: PROJECT, type: TASK)
|
2020-08-01 03:01:14 +02:00
|
|
|
setTaskComplete(input: SetTaskComplete!):
|
2020-09-11 06:54:55 +02:00
|
|
|
Task! @hasRole(roles: [ADMIN], level: PROJECT, type: TASK)
|
2020-08-01 03:01:14 +02:00
|
|
|
updateTaskDueDate(input: UpdateTaskDueDate!):
|
2020-09-11 06:54:55 +02:00
|
|
|
Task! @hasRole(roles: [ADMIN], level: PROJECT, type: TASK)
|
2020-07-05 01:02:57 +02:00
|
|
|
|
2020-08-01 03:01:14 +02:00
|
|
|
assignTask(input: AssignTaskInput):
|
2020-08-13 03:54:14 +02:00
|
|
|
Task! @hasRole(roles: [ADMIN], level: PROJECT, type: TASK)
|
2020-08-01 03:01:14 +02:00
|
|
|
unassignTask(input: UnassignTaskInput):
|
2020-08-13 03:54:14 +02:00
|
|
|
Task! @hasRole(roles: [ADMIN], level: PROJECT, type: TASK)
|
2020-07-05 01:02:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
input NewTask {
|
2020-09-11 06:54:55 +02:00
|
|
|
taskGroupID: UUID!
|
2020-07-05 01:02:57 +02:00
|
|
|
name: String!
|
|
|
|
position: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
input AssignTaskInput {
|
|
|
|
taskID: UUID!
|
|
|
|
userID: UUID!
|
|
|
|
}
|
|
|
|
|
|
|
|
input UnassignTaskInput {
|
|
|
|
taskID: UUID!
|
|
|
|
userID: UUID!
|
|
|
|
}
|
|
|
|
|
|
|
|
input UpdateTaskDescriptionInput {
|
|
|
|
taskID: UUID!
|
|
|
|
description: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type UpdateTaskLocationPayload {
|
|
|
|
previousTaskGroupID: UUID!
|
|
|
|
task: Task!
|
|
|
|
}
|
|
|
|
|
|
|
|
input UpdateTaskDueDate {
|
|
|
|
taskID: UUID!
|
|
|
|
dueDate: Time
|
|
|
|
}
|
|
|
|
|
|
|
|
input SetTaskComplete {
|
|
|
|
taskID: UUID!
|
|
|
|
complete: Boolean!
|
|
|
|
}
|
|
|
|
|
|
|
|
input NewTaskLocation {
|
|
|
|
taskID: UUID!
|
|
|
|
taskGroupID: UUID!
|
|
|
|
position: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
input DeleteTaskInput {
|
|
|
|
taskID: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteTaskPayload {
|
|
|
|
taskID: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
input UpdateTaskName {
|
|
|
|
taskID: String!
|
|
|
|
name: String!
|
|
|
|
}
|