2021-10-26 00:42:57 +02:00
|
|
|
|
|
|
|
type TaskLabel {
|
|
|
|
id: ID!
|
|
|
|
projectLabel: ProjectLabel!
|
|
|
|
assignedDate: Time!
|
|
|
|
}
|
|
|
|
|
|
|
|
type ChecklistBadge {
|
|
|
|
complete: Int!
|
|
|
|
total: Int!
|
|
|
|
}
|
|
|
|
|
|
|
|
type CommentsBadge {
|
|
|
|
total: Int!
|
|
|
|
unread: Boolean!
|
|
|
|
}
|
|
|
|
|
|
|
|
type TaskBadges {
|
|
|
|
checklist: ChecklistBadge
|
|
|
|
comments: CommentsBadge
|
|
|
|
}
|
|
|
|
|
|
|
|
type Task {
|
|
|
|
id: ID!
|
2021-11-04 19:36:46 +01:00
|
|
|
shortId: String!
|
2021-10-26 00:42:57 +02:00
|
|
|
taskGroup: TaskGroup!
|
|
|
|
createdAt: Time!
|
|
|
|
name: String!
|
|
|
|
position: Float!
|
|
|
|
description: String
|
2021-11-02 20:45:05 +01:00
|
|
|
watched: Boolean!
|
2021-10-26 00:42:57 +02:00
|
|
|
dueDate: Time
|
|
|
|
hasTime: Boolean!
|
|
|
|
complete: Boolean!
|
|
|
|
completedAt: Time
|
|
|
|
assigned: [Member!]!
|
|
|
|
labels: [TaskLabel!]!
|
|
|
|
checklists: [TaskChecklist!]!
|
|
|
|
badges: TaskBadges!
|
|
|
|
activity: [TaskActivity!]!
|
|
|
|
comments: [TaskComment!]!
|
|
|
|
}
|
|
|
|
|
|
|
|
type TaskActivityData {
|
|
|
|
name: String!
|
|
|
|
value: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
enum ActivityType {
|
|
|
|
TASK_ADDED
|
|
|
|
TASK_MOVED
|
|
|
|
TASK_MARKED_COMPLETE
|
|
|
|
TASK_MARKED_INCOMPLETE
|
|
|
|
TASK_DUE_DATE_CHANGED
|
|
|
|
TASK_DUE_DATE_ADDED
|
|
|
|
TASK_DUE_DATE_REMOVED
|
|
|
|
TASK_CHECKLIST_CHANGED
|
|
|
|
TASK_CHECKLIST_ADDED
|
|
|
|
TASK_CHECKLIST_REMOVED
|
|
|
|
}
|
|
|
|
|
|
|
|
type TaskActivity {
|
|
|
|
id: ID!
|
|
|
|
type: ActivityType!
|
|
|
|
data: [TaskActivityData!]!
|
|
|
|
causedBy: CausedBy!
|
|
|
|
createdAt: Time!
|
|
|
|
}
|
|
|
|
|
|
|
|
type CausedBy {
|
|
|
|
id: ID!
|
|
|
|
fullName: String!
|
|
|
|
profileIcon: ProfileIcon
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
type CreatedBy {
|
|
|
|
id: ID!
|
|
|
|
fullName: String!
|
|
|
|
profileIcon: ProfileIcon!
|
|
|
|
}
|
|
|
|
|
|
|
|
type TaskComment {
|
|
|
|
id: ID!
|
|
|
|
createdAt: Time!
|
|
|
|
updatedAt: Time
|
|
|
|
message: String!
|
|
|
|
createdBy: CreatedBy!
|
|
|
|
pinned: Boolean!
|
|
|
|
}
|
|
|
|
|
|
|
|
type TaskChecklistItem {
|
|
|
|
id: ID!
|
|
|
|
name: String!
|
|
|
|
taskChecklistID: UUID!
|
|
|
|
complete: Boolean!
|
|
|
|
position: Float!
|
|
|
|
dueDate: Time!
|
|
|
|
}
|
|
|
|
|
|
|
|
type TaskChecklist {
|
|
|
|
id: ID!
|
|
|
|
name: String!
|
|
|
|
position: Float!
|
|
|
|
items: [TaskChecklistItem!]!
|
|
|
|
}
|
|
|
|
|
|
|
|
extend type Mutation {
|
|
|
|
createTaskChecklist(input: CreateTaskChecklist!):
|
|
|
|
TaskChecklist! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK)
|
|
|
|
deleteTaskChecklist(input: DeleteTaskChecklist!):
|
|
|
|
DeleteTaskChecklistPayload! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK_CHECKLIST)
|
|
|
|
updateTaskChecklistName(input: UpdateTaskChecklistName!):
|
|
|
|
TaskChecklist! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK_CHECKLIST)
|
|
|
|
createTaskChecklistItem(input: CreateTaskChecklistItem!):
|
|
|
|
TaskChecklistItem! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK_CHECKLIST)
|
|
|
|
updateTaskChecklistLocation(input: UpdateTaskChecklistLocation!):
|
|
|
|
UpdateTaskChecklistLocationPayload! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK_CHECKLIST)
|
|
|
|
|
|
|
|
updateTaskChecklistItemName(input: UpdateTaskChecklistItemName!):
|
|
|
|
TaskChecklistItem! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK_CHECKLIST_ITEM)
|
|
|
|
setTaskChecklistItemComplete(input: SetTaskChecklistItemComplete!):
|
|
|
|
TaskChecklistItem! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK_CHECKLIST_ITEM)
|
|
|
|
deleteTaskChecklistItem(input: DeleteTaskChecklistItem!):
|
|
|
|
DeleteTaskChecklistItemPayload! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK_CHECKLIST_ITEM)
|
|
|
|
updateTaskChecklistItemLocation(input: UpdateTaskChecklistItemLocation!):
|
|
|
|
UpdateTaskChecklistItemLocationPayload! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK_CHECKLIST_ITEM)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
input UpdateTaskChecklistItemLocation {
|
|
|
|
taskChecklistID: UUID!
|
|
|
|
taskChecklistItemID: UUID!
|
|
|
|
position: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
type UpdateTaskChecklistItemLocationPayload {
|
|
|
|
taskChecklistID: UUID!
|
|
|
|
prevChecklistID: UUID!
|
|
|
|
checklistItem: TaskChecklistItem!
|
|
|
|
}
|
|
|
|
|
|
|
|
input UpdateTaskChecklistLocation {
|
|
|
|
taskChecklistID: UUID!
|
|
|
|
position: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
type UpdateTaskChecklistLocationPayload {
|
|
|
|
checklist: TaskChecklist!
|
|
|
|
}
|
|
|
|
|
|
|
|
input CreateTaskChecklist {
|
|
|
|
taskID: UUID!
|
|
|
|
name: String!
|
|
|
|
position: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteTaskChecklistItemPayload {
|
|
|
|
ok: Boolean!
|
|
|
|
taskChecklistItem: TaskChecklistItem!
|
|
|
|
}
|
|
|
|
|
|
|
|
input CreateTaskChecklistItem {
|
|
|
|
taskChecklistID: UUID!
|
|
|
|
name: String!
|
|
|
|
position: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
input SetTaskChecklistItemComplete {
|
|
|
|
taskChecklistItemID: UUID!
|
|
|
|
complete: Boolean!
|
|
|
|
}
|
|
|
|
|
|
|
|
input DeleteTaskChecklistItem {
|
|
|
|
taskChecklistItemID: UUID!
|
|
|
|
}
|
|
|
|
|
|
|
|
input UpdateTaskChecklistItemName {
|
|
|
|
taskChecklistItemID: UUID!
|
|
|
|
name: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
input UpdateTaskChecklistName {
|
|
|
|
taskChecklistID: UUID!
|
|
|
|
name: String!
|
|
|
|
}
|
|
|
|
input DeleteTaskChecklist {
|
|
|
|
taskChecklistID: UUID!
|
|
|
|
}
|
|
|
|
type DeleteTaskChecklistPayload {
|
|
|
|
ok: Boolean!
|
|
|
|
taskChecklist: TaskChecklist!
|
|
|
|
}
|
|
|
|
|
|
|
|
extend type Mutation {
|
|
|
|
createTaskComment(input: CreateTaskComment):
|
|
|
|
CreateTaskCommentPayload! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK)
|
|
|
|
deleteTaskComment(input: DeleteTaskComment):
|
|
|
|
DeleteTaskCommentPayload! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK)
|
|
|
|
updateTaskComment(input: UpdateTaskComment):
|
|
|
|
UpdateTaskCommentPayload! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK)
|
|
|
|
}
|
|
|
|
|
|
|
|
input CreateTaskComment {
|
|
|
|
taskID: UUID!
|
|
|
|
message: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type CreateTaskCommentPayload {
|
|
|
|
taskID: UUID!
|
|
|
|
comment: TaskComment!
|
|
|
|
}
|
|
|
|
|
|
|
|
input UpdateTaskComment {
|
|
|
|
commentID: UUID!
|
|
|
|
message: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
type UpdateTaskCommentPayload {
|
|
|
|
taskID: UUID!
|
|
|
|
comment: TaskComment!
|
|
|
|
}
|
|
|
|
|
|
|
|
input DeleteTaskComment {
|
|
|
|
commentID: UUID!
|
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteTaskCommentPayload {
|
|
|
|
taskID: UUID!
|
|
|
|
commentID: UUID!
|
|
|
|
}
|
|
|
|
|
|
|
|
extend type Mutation {
|
|
|
|
createTaskGroup(input: NewTaskGroup!):
|
|
|
|
TaskGroup! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: PROJECT)
|
|
|
|
updateTaskGroupLocation(input: NewTaskGroupLocation!):
|
|
|
|
TaskGroup! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK_GROUP)
|
|
|
|
updateTaskGroupName(input: UpdateTaskGroupName!):
|
|
|
|
TaskGroup! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK_GROUP)
|
|
|
|
deleteTaskGroup(input: DeleteTaskGroupInput!):
|
|
|
|
DeleteTaskGroupPayload! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK_GROUP)
|
|
|
|
duplicateTaskGroup(input: DuplicateTaskGroup!):
|
|
|
|
DuplicateTaskGroupPayload! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK_GROUP)
|
|
|
|
sortTaskGroup(input: SortTaskGroup!):
|
|
|
|
SortTaskGroupPayload! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK_GROUP)
|
|
|
|
deleteTaskGroupTasks(input: DeleteTaskGroupTasks!):
|
|
|
|
DeleteTaskGroupTasksPayload! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK_GROUP)
|
|
|
|
}
|
|
|
|
|
|
|
|
input DeleteTaskGroupTasks {
|
|
|
|
taskGroupID: UUID!
|
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteTaskGroupTasksPayload {
|
|
|
|
taskGroupID: UUID!
|
|
|
|
tasks: [UUID!]!
|
|
|
|
}
|
|
|
|
|
|
|
|
input TaskPositionUpdate {
|
|
|
|
taskID: UUID!
|
|
|
|
position: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
type SortTaskGroupPayload {
|
|
|
|
taskGroupID: UUID!
|
|
|
|
tasks: [Task!]!
|
|
|
|
}
|
|
|
|
|
|
|
|
input SortTaskGroup {
|
|
|
|
taskGroupID: UUID!
|
|
|
|
tasks: [TaskPositionUpdate!]!
|
|
|
|
}
|
|
|
|
|
|
|
|
input DuplicateTaskGroup {
|
|
|
|
projectID: UUID!
|
|
|
|
taskGroupID: UUID!
|
|
|
|
name: String!
|
|
|
|
position: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
type DuplicateTaskGroupPayload {
|
|
|
|
taskGroup: TaskGroup!
|
|
|
|
}
|
|
|
|
|
|
|
|
input NewTaskGroupLocation {
|
|
|
|
taskGroupID: UUID!
|
|
|
|
position: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
input UpdateTaskGroupName {
|
|
|
|
taskGroupID: UUID!
|
|
|
|
name: String!
|
|
|
|
}
|
|
|
|
|
|
|
|
input DeleteTaskGroupInput {
|
|
|
|
taskGroupID: UUID!
|
|
|
|
}
|
|
|
|
|
|
|
|
type DeleteTaskGroupPayload {
|
|
|
|
ok: Boolean!
|
|
|
|
affectedRows: Int!
|
|
|
|
taskGroup: TaskGroup!
|
|
|
|
}
|
|
|
|
|
|
|
|
input NewTaskGroup {
|
|
|
|
projectID: UUID!
|
|
|
|
name: String!
|
|
|
|
position: Float!
|
|
|
|
}
|
|
|
|
|
|
|
|
extend type Mutation {
|
|
|
|
addTaskLabel(input: AddTaskLabelInput):
|
|
|
|
Task! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK)
|
|
|
|
removeTaskLabel(input: RemoveTaskLabelInput):
|
|
|
|
Task! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK)
|
|
|
|
toggleTaskLabel(input: ToggleTaskLabelInput!):
|
|
|
|
ToggleTaskLabelPayload! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
input AddTaskLabelInput {
|
|
|
|
taskID: UUID!
|
|
|
|
projectLabelID: UUID!
|
|
|
|
}
|
|
|
|
|
|
|
|
input RemoveTaskLabelInput {
|
|
|
|
taskID: UUID!
|
|
|
|
taskLabelID: UUID!
|
|
|
|
}
|
|
|
|
|
|
|
|
input ToggleTaskLabelInput {
|
|
|
|
taskID: UUID!
|
|
|
|
projectLabelID: UUID!
|
|
|
|
}
|
|
|
|
|
|
|
|
type ToggleTaskLabelPayload {
|
|
|
|
active: Boolean!
|
|
|
|
task: Task!
|
|
|
|
}
|
|
|
|
|
2021-11-04 19:36:46 +01:00
|
|
|
extend type Query {
|
|
|
|
findTask(input: FindTask!): Task!
|
|
|
|
}
|
|
|
|
|
|
|
|
input FindTask {
|
|
|
|
taskID: UUID
|
|
|
|
taskShortID: String
|
|
|
|
}
|
|
|
|
|
|
|
|
|
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)
|
2021-11-02 20:45:05 +01:00
|
|
|
toggleTaskWatch(input: ToggleTaskWatch!):
|
|
|
|
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
|
|
|
}
|
|
|
|
|
2021-11-02 20:45:05 +01:00
|
|
|
input ToggleTaskWatch {
|
|
|
|
taskID: UUID!
|
|
|
|
}
|
|
|
|
|
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!
|
|
|
|
}
|
2021-10-26 21:42:04 +02:00
|
|
|
|