2021-10-26 21:42:04 +02:00
|
|
|
extend type Subscription {
|
|
|
|
notificationAdded: Notified!
|
2020-08-13 03:54:14 +02:00
|
|
|
}
|
|
|
|
|
2021-10-26 21:42:04 +02:00
|
|
|
extend type Query {
|
|
|
|
notifications: [Notified!]!
|
2021-11-02 20:45:05 +01:00
|
|
|
notified(input: NotifiedInput!): NotifiedResult!
|
|
|
|
hasUnreadNotifications: HasUnreadNotificationsResult!
|
|
|
|
}
|
|
|
|
|
|
|
|
extend type Mutation {
|
|
|
|
notificationToggleRead(input: NotificationToggleReadInput!): Notified!
|
|
|
|
}
|
|
|
|
|
|
|
|
type HasUnreadNotificationsResult {
|
|
|
|
unread: Boolean!
|
|
|
|
}
|
|
|
|
input NotificationToggleReadInput {
|
|
|
|
notifiedID: UUID!
|
|
|
|
}
|
|
|
|
|
|
|
|
input NotifiedInput {
|
|
|
|
limit: Int!
|
|
|
|
cursor: String
|
|
|
|
filter: NotificationFilter!
|
|
|
|
}
|
|
|
|
|
|
|
|
type PageInfo {
|
|
|
|
endCursor: String!
|
|
|
|
hasNextPage: Boolean!
|
|
|
|
}
|
|
|
|
|
|
|
|
type NotifiedResult {
|
|
|
|
totalCount: Int!
|
|
|
|
notified: [Notified!]!
|
|
|
|
pageInfo: PageInfo!
|
2020-08-13 03:54:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
enum ActionType {
|
2021-11-02 20:45:05 +01:00
|
|
|
TEAM_ADDED
|
|
|
|
TEAM_REMOVED
|
|
|
|
PROJECT_ADDED
|
|
|
|
PROJECT_REMOVED
|
|
|
|
PROJECT_ARCHIVED
|
|
|
|
DUE_DATE_ADDED
|
|
|
|
DUE_DATE_REMOVED
|
|
|
|
DUE_DATE_CHANGED
|
|
|
|
TASK_ASSIGNED
|
|
|
|
TASK_MOVED
|
|
|
|
TASK_ARCHIVED
|
|
|
|
TASK_ATTACHMENT_UPLOADED
|
|
|
|
COMMENT_MENTIONED
|
|
|
|
COMMENT_OTHER
|
|
|
|
}
|
|
|
|
|
|
|
|
enum NotificationFilter {
|
|
|
|
ALL
|
|
|
|
UNREAD
|
|
|
|
ASSIGNED
|
|
|
|
MENTIONED
|
2020-08-13 03:54:14 +02:00
|
|
|
}
|
|
|
|
|
2021-10-26 21:42:04 +02:00
|
|
|
type NotificationData {
|
|
|
|
key: String!
|
|
|
|
value: String!
|
2020-08-13 03:54:14 +02:00
|
|
|
}
|
|
|
|
|
2021-10-26 21:42:04 +02:00
|
|
|
type NotificationCausedBy {
|
|
|
|
fullname: String!
|
|
|
|
username: String!
|
|
|
|
id: ID!
|
2020-08-13 03:54:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type Notification {
|
|
|
|
id: ID!
|
|
|
|
actionType: ActionType!
|
2021-11-02 20:45:05 +01:00
|
|
|
causedBy: NotificationCausedBy
|
2021-10-26 21:42:04 +02:00
|
|
|
data: [NotificationData!]!
|
2020-08-13 03:54:14 +02:00
|
|
|
createdAt: Time!
|
|
|
|
}
|
2021-10-26 21:42:04 +02:00
|
|
|
|
|
|
|
type Notified {
|
|
|
|
id: ID!
|
|
|
|
notification: Notification!
|
|
|
|
read: Boolean!
|
2021-10-31 00:20:41 +02:00
|
|
|
readAt: Time
|
2021-10-26 21:42:04 +02:00
|
|
|
}
|
|
|
|
|