feat: redesign due date manager
This commit is contained in:
@ -1,3 +1,9 @@
|
||||
enum DueDateNotificationDuration {
|
||||
MINUTE
|
||||
HOUR
|
||||
DAY
|
||||
WEEK
|
||||
}
|
||||
|
||||
type TaskLabel {
|
||||
id: ID!
|
||||
@ -20,6 +26,18 @@ type TaskBadges {
|
||||
comments: CommentsBadge
|
||||
}
|
||||
|
||||
type DueDateNotification {
|
||||
id: ID!
|
||||
period: Int!
|
||||
duration: DueDateNotificationDuration!
|
||||
}
|
||||
|
||||
type DueDate {
|
||||
at: Time
|
||||
notifications: [DueDateNotification!]!
|
||||
}
|
||||
|
||||
|
||||
type Task {
|
||||
id: ID!
|
||||
shortId: String!
|
||||
@ -29,7 +47,7 @@ type Task {
|
||||
position: Float!
|
||||
description: String
|
||||
watched: Boolean!
|
||||
dueDate: Time
|
||||
dueDate: DueDate!
|
||||
hasTime: Boolean!
|
||||
complete: Boolean!
|
||||
completedAt: Time
|
||||
@ -371,8 +389,45 @@ extend type Mutation {
|
||||
Task! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK)
|
||||
unassignTask(input: UnassignTaskInput):
|
||||
Task! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK)
|
||||
|
||||
|
||||
createTaskDueDateNotifications(input: [CreateTaskDueDateNotification!]!):
|
||||
CreateTaskDueDateNotificationsResult!
|
||||
updateTaskDueDateNotifications(input: [UpdateTaskDueDateNotification!]!):
|
||||
UpdateTaskDueDateNotificationsResult!
|
||||
deleteTaskDueDateNotifications(input: [DeleteTaskDueDateNotification!]!):
|
||||
DeleteTaskDueDateNotificationsResult!
|
||||
}
|
||||
|
||||
input DeleteTaskDueDateNotification {
|
||||
id: UUID!
|
||||
}
|
||||
|
||||
type DeleteTaskDueDateNotificationsResult {
|
||||
notifications: [UUID!]!
|
||||
}
|
||||
|
||||
input UpdateTaskDueDateNotification {
|
||||
id: UUID!
|
||||
period: Int!
|
||||
duration: DueDateNotificationDuration!
|
||||
}
|
||||
|
||||
type UpdateTaskDueDateNotificationsResult {
|
||||
notifications: [DueDateNotification!]!
|
||||
}
|
||||
|
||||
input CreateTaskDueDateNotification {
|
||||
taskID: UUID!
|
||||
period: Int!
|
||||
duration: DueDateNotificationDuration!
|
||||
}
|
||||
|
||||
type CreateTaskDueDateNotificationsResult {
|
||||
notifications: [DueDateNotification!]!
|
||||
}
|
||||
|
||||
|
||||
input ToggleTaskWatch {
|
||||
taskID: UUID!
|
||||
}
|
||||
|
@ -1,3 +1,9 @@
|
||||
enum DueDateNotificationDuration {
|
||||
MINUTE
|
||||
HOUR
|
||||
DAY
|
||||
WEEK
|
||||
}
|
||||
|
||||
type TaskLabel {
|
||||
id: ID!
|
||||
@ -20,6 +26,18 @@ type TaskBadges {
|
||||
comments: CommentsBadge
|
||||
}
|
||||
|
||||
type DueDateNotification {
|
||||
id: ID!
|
||||
period: Int!
|
||||
duration: DueDateNotificationDuration!
|
||||
}
|
||||
|
||||
type DueDate {
|
||||
at: Time
|
||||
notifications: [DueDateNotification!]!
|
||||
}
|
||||
|
||||
|
||||
type Task {
|
||||
id: ID!
|
||||
shortId: String!
|
||||
@ -29,7 +47,7 @@ type Task {
|
||||
position: Float!
|
||||
description: String
|
||||
watched: Boolean!
|
||||
dueDate: Time
|
||||
dueDate: DueDate!
|
||||
hasTime: Boolean!
|
||||
complete: Boolean!
|
||||
completedAt: Time
|
||||
|
@ -31,8 +31,45 @@ extend type Mutation {
|
||||
Task! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK)
|
||||
unassignTask(input: UnassignTaskInput):
|
||||
Task! @hasRole(roles: [ADMIN, MEMBER], level: PROJECT, type: TASK)
|
||||
|
||||
|
||||
createTaskDueDateNotifications(input: [CreateTaskDueDateNotification!]!):
|
||||
CreateTaskDueDateNotificationsResult!
|
||||
updateTaskDueDateNotifications(input: [UpdateTaskDueDateNotification!]!):
|
||||
UpdateTaskDueDateNotificationsResult!
|
||||
deleteTaskDueDateNotifications(input: [DeleteTaskDueDateNotification!]!):
|
||||
DeleteTaskDueDateNotificationsResult!
|
||||
}
|
||||
|
||||
input DeleteTaskDueDateNotification {
|
||||
id: UUID!
|
||||
}
|
||||
|
||||
type DeleteTaskDueDateNotificationsResult {
|
||||
notifications: [UUID!]!
|
||||
}
|
||||
|
||||
input UpdateTaskDueDateNotification {
|
||||
id: UUID!
|
||||
period: Int!
|
||||
duration: DueDateNotificationDuration!
|
||||
}
|
||||
|
||||
type UpdateTaskDueDateNotificationsResult {
|
||||
notifications: [DueDateNotification!]!
|
||||
}
|
||||
|
||||
input CreateTaskDueDateNotification {
|
||||
taskID: UUID!
|
||||
period: Int!
|
||||
duration: DueDateNotificationDuration!
|
||||
}
|
||||
|
||||
type CreateTaskDueDateNotificationsResult {
|
||||
notifications: [DueDateNotification!]!
|
||||
}
|
||||
|
||||
|
||||
input ToggleTaskWatch {
|
||||
taskID: UUID!
|
||||
}
|
||||
|
Reference in New Issue
Block a user