@fowgence/api-schema 1.0.1-dev.30132354559.0 → 1.0.1-dev.30486461811.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/schema.gql +5 -9
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fowgence/api-schema",
3
- "version": "1.0.1-dev.30132354559.0",
3
+ "version": "1.0.1-dev.30486461811.0",
4
4
  "description": "Auto-generated GraphQL schema for the Next.js frontend",
5
5
  "main": "schema.gql",
6
6
  "files": [
package/schema.gql CHANGED
@@ -432,6 +432,7 @@ type CommentModel {
432
432
  isBookmarked: Boolean
433
433
  rewardsCount: Int
434
434
  isRewarded: Boolean
435
+ isReported: Boolean
435
436
  }
436
437
 
437
438
  enum AuthorType {
@@ -578,6 +579,7 @@ type Query {
578
579
  rewardedPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [PostModel]
579
580
  postPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): PostModel
580
581
  notifications(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [NotificationModel]
582
+ unreadCount: Int!
581
583
  rootAiComment(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): CommentModel!
582
584
  comment(postId: ID!, id: ID!): CommentModel!
583
585
  comments(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!, excludeIds: [String]): [CommentModel!]!
@@ -615,10 +617,8 @@ type Mutation {
615
617
  declineJoinRequest(groupId: ID!, memberId: ID!): Boolean
616
618
  createPost(data: CreatePost!): PostModel!
617
619
  deletePost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean!
618
- updateNotificationsByIds(data: IdsModel!): Boolean
619
- updateGroupNotification(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
620
- updatePostNotification(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
621
- updateCommentNotification(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
620
+ updateNotification(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
621
+ updateNotifications(ids: [String!]!): Boolean
622
622
  createComment(data: CreateComment!): CommentModel!
623
623
  createReply(data: CreateComment!): CommentModel!
624
624
  deleteComment(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
@@ -728,10 +728,6 @@ enum MimeType {
728
728
  HEIF
729
729
  }
730
730
 
731
- input IdsModel {
732
- ids: [String!]!
733
- }
734
-
735
731
  input CreateComment {
736
732
  postId: ID!
737
733
  parentId: String
@@ -757,7 +753,7 @@ enum ReportReason {
757
753
 
758
754
  type Subscription {
759
755
  unreadNotificationsCount: Int!
760
- unreadNotifications: [NotificationModel!]!
756
+ unreadNotification: NotificationModel!
761
757
  aiCommentAdded(postId: String!): CommentModel!
762
758
  userCommentAdded(postId: String!): String!
763
759
  aiReplyAdded(commentId: String!): CommentModel!