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!]!
|
2020-08-13 03:54:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
enum ActionType {
|
|
|
|
TASK_MEMBER_ADDED
|
|
|
|
}
|
|
|
|
|
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-10-26 21:42:04 +02:00
|
|
|
causedBy: NotificationCausedBy!
|
|
|
|
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!
|
|
|
|
read_at: Time
|
|
|
|
}
|
|
|
|
|