notifier/notifier.graphql

38 lines
582 B
GraphQL
Raw Normal View History

2023-11-24 02:45:38 +00:00
enum NotificationAction {
CREATE,
UPDATE,
DELETE,
SEEN
}
enum NotificationEntity {
SHOUT,
REACTION
}
type Notification {
id: Int!
action: NotificationAction!
entity: NotificationEntity!
created_at: Int!
seen: Boolean!
data: String # JSON
occurrences: Int
}
input NotificationsQueryParams {
limit: Int
offset: Int
}
type NotificationsQueryResult {
notifications: [Notification]!
total: Int!
unread: Int!
}
type Query {
loadNotifications(params: NotificationsQueryParams!): NotificationsQueryResult!
}