2021-10-26 21:42:04 +02:00
|
|
|
extend type Subscription {
|
|
|
|
notificationAdded: Notified!
|
2021-10-26 00:42:57 +02:00
|
|
|
}
|
|
|
|
|
2021-10-26 21:42:04 +02:00
|
|
|
extend type Query {
|
|
|
|
notifications: [Notified!]!
|
2021-10-26 00:42:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
enum ActionType {
|
|
|
|
TASK_MEMBER_ADDED
|
|
|
|
}
|
|
|
|
|
2021-10-26 21:42:04 +02:00
|
|
|
type NotificationData {
|
|
|
|
key: String!
|
|
|
|
value: String!
|
2021-10-26 00:42:57 +02:00
|
|
|
}
|
|
|
|
|
2021-10-26 21:42:04 +02:00
|
|
|
type NotificationCausedBy {
|
|
|
|
fullname: String!
|
|
|
|
username: String!
|
|
|
|
id: ID!
|
2021-10-26 00:42:57 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
type Notification {
|
|
|
|
id: ID!
|
|
|
|
actionType: ActionType!
|
2021-10-26 21:42:04 +02:00
|
|
|
causedBy: NotificationCausedBy!
|
|
|
|
data: [NotificationData!]!
|
2021-10-26 00:42:57 +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
|
|
|
}
|