2020-07-05 01:02:57 +02:00
|
|
|
extend type Mutation {
|
2020-08-01 03:01:14 +02:00
|
|
|
createTask(input: NewTask!):
|
2020-09-20 00:26:02 +02:00
|
|
|
Task! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK_GROUP)
|
2020-08-01 03:01:14 +02:00
|
|
|
deleteTask(input: DeleteTaskInput!):
|
2020-09-20 00:26:02 +02:00
|
|
|
DeleteTaskPayload! @hasRole(roles: [ADMIN, MEMBER], 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-20 00:26:02 +02:00
|
|
|
Task! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK)
|
2020-08-01 03:01:14 +02:00
|
|
|
updateTaskLocation(input: NewTaskLocation!):
|
2020-09-20 00:26:02 +02:00
|
|
|
UpdateTaskLocationPayload! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK)
|
2020-08-01 03:01:14 +02:00
|
|
|
updateTaskName(input: UpdateTaskName!):
|
2020-09-20 00:26:02 +02:00
|
|
|
Task! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK)
|
2020-08-01 03:01:14 +02:00
|
|
|
setTaskComplete(input: SetTaskComplete!):
|
2020-09-20 00:26:02 +02:00
|
|
|
Task! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK)
|
2020-08-01 03:01:14 +02:00
|
|
|
updateTaskDueDate(input: UpdateTaskDueDate!):
|
2020-09-20 00:26:02 +02:00
|
|
|
Task! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK)
|
2020-07-05 01:02:57 +02:00
|
|
|
|
2020-08-01 03:01:14 +02:00
|
|
|
assignTask(input: AssignTaskInput):
|
2020-09-20 00:26:02 +02:00
|
|
|
Task! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK)
|
2020-08-01 03:01:14 +02:00
|
|
|
unassignTask(input: UnassignTaskInput):
|
2020-09-20 00:26:02 +02:00
|
|
|
Task! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK)
|
2020-07-05 01:02:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
input NewTask {
|
2020-09-20 00:26:02 +02:00
|
|
|
taskGroupID: UUID!
|
2020-07-05 01:02:57 +02:00
|
|
|
name: String!
|
|
|
|
position: Float!
|
2020-12-31 03:56:59 +01:00
|
|
|
assigned: [UUID!]
|
2020-07-05 01:02:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
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!
|
2021-01-01 21:51:40 +01:00
|
|
|
hasTime: Boolean!
|
2020-07-05 01:02:57 +02:00
|
|
|
dueDate: Time
|
|
|
|
}
|
|
|
|
|
|
|
|
input SetTaskComplete {
|
|
|
|
taskID: UUID!
|
|
|
|
complete: Boolean!
|
|
|
|
}
|
|
|
|
|
|
|
|
input NewTaskLocation {
|
|
|
|
taskID: UUID!
|
|
|
|
taskGroupID: UUID!
|
|
|
|
position: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
input DeleteTaskInput {
|
2020-09-20 00:26:02 +02:00
|
|
|
taskID: UUID!
|
2020-07-05 01:02:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteTaskPayload {
|
2020-09-20 00:26:02 +02:00
|
|
|
taskID: UUID!
|
2020-07-05 01:02:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
input UpdateTaskName {
|
2020-09-20 00:26:02 +02:00
|
|
|
taskID: UUID!
|
2020-07-05 01:02:57 +02:00
|
|
|
name: String!
|
|
|
|
}
|