This commit is contained in:
@@ -79,3 +79,8 @@ input ReactionBy {
|
||||
after: Int
|
||||
sort: ReactionSort
|
||||
}
|
||||
|
||||
input NotificationSeenInput {
|
||||
notifications: [Int]
|
||||
thread: Int
|
||||
}
|
||||
|
@@ -28,4 +28,9 @@ type Mutation {
|
||||
remove_invite(invite_id: Int!): CommonResult!
|
||||
accept_invite(invite_id: Int!): CommonResult!
|
||||
reject_invite(invite_id: Int!): CommonResult!
|
||||
|
||||
# notifier
|
||||
notification_mark_seen(notification_id: Int!, seen: Boolean): CommonResult!
|
||||
notifications_seen_after(after: Int!, seen: Boolean): CommonResult!
|
||||
notifications_seen_thread(thread_id: String!, seen: Boolean): CommonResult!
|
||||
}
|
||||
|
@@ -41,4 +41,7 @@ type Query {
|
||||
get_topics_random(amount: Int): [Topic]
|
||||
get_topics_by_author(slug: String, user: String, author_id: Int): [Topic]
|
||||
get_topics_by_community(slug: String, community_id: Int): [Topic]
|
||||
|
||||
# notifier
|
||||
get_notifications: NotificationsResult!
|
||||
}
|
||||
|
@@ -178,3 +178,34 @@ type AuthorFollows {
|
||||
# shouts: [Shout]
|
||||
communities: [Community]
|
||||
}
|
||||
|
||||
type Notification {
|
||||
id: Int!
|
||||
action: String!
|
||||
entity: String!
|
||||
created_at: Int!
|
||||
payload: String!
|
||||
seen: [Author]
|
||||
}
|
||||
|
||||
type NotificationSeenResult {
|
||||
error: String
|
||||
}
|
||||
|
||||
type NotificationGroup {
|
||||
id: Int!
|
||||
authors: [Author]
|
||||
updated_at: Int!
|
||||
entity: String!
|
||||
action: String
|
||||
shout: Shout
|
||||
reactions: [Reaction]
|
||||
seen: Boolean
|
||||
}
|
||||
|
||||
type NotificationsResult {
|
||||
notifications: [NotificationGroup!]!
|
||||
unread: Int!
|
||||
total: Int!
|
||||
error: String
|
||||
}
|
||||
|
Reference in New Issue
Block a user