notifier-integration
Some checks failed
Deploy on push / deploy (push) Failing after 19s

This commit is contained in:
2024-03-04 10:35:33 +03:00
parent ad0dc98bc9
commit 3016a75332
8 changed files with 386 additions and 0 deletions

View File

@@ -79,3 +79,8 @@ input ReactionBy {
after: Int
sort: ReactionSort
}
input NotificationSeenInput {
notifications: [Int]
thread: Int
}

View File

@@ -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!
}

View File

@@ -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!
}

View File

@@ -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
}