125 lines
1.8 KiB
GraphQL
125 lines
1.8 KiB
GraphQL
enum DueDateNotificationDuration {
|
|
MINUTE
|
|
HOUR
|
|
DAY
|
|
WEEK
|
|
}
|
|
|
|
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 DueDateNotification {
|
|
id: ID!
|
|
period: Int!
|
|
duration: DueDateNotificationDuration!
|
|
}
|
|
|
|
type DueDate {
|
|
at: Time
|
|
notifications: [DueDateNotification!]!
|
|
}
|
|
|
|
|
|
type Task {
|
|
id: ID!
|
|
shortId: String!
|
|
taskGroup: TaskGroup!
|
|
createdAt: Time!
|
|
name: String!
|
|
position: Float!
|
|
description: String
|
|
watched: Boolean!
|
|
dueDate: DueDate!
|
|
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!]!
|
|
}
|