@fowgence/api-schema 1.0.1-dev.30099910224.0 → 1.0.1-dev.30178479065.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 +6 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fowgence/api-schema",
3
- "version": "1.0.1-dev.30099910224.0",
3
+ "version": "1.0.1-dev.30178479065.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
@@ -497,7 +497,7 @@ type NotificationModel {
497
497
  success: Boolean
498
498
  template: NotificationTemplate
499
499
  readAt: DateTime
500
- user: UserModel
500
+ receiver: UserModel
501
501
  sender: UserModel
502
502
  group: GroupModel
503
503
  postId: String
@@ -577,7 +577,8 @@ type Query {
577
577
  bookmarkedPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [PostModel]
578
578
  rewardedPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [PostModel]
579
579
  postPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): PostModel
580
- notifications: [NotificationModel]
580
+ notifications(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [NotificationModel]
581
+ unreadCount: Int!
581
582
  rootAiComment(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): CommentModel!
582
583
  comment(postId: ID!, id: ID!): CommentModel!
583
584
  comments(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!, excludeIds: [String]): [CommentModel!]!
@@ -615,10 +616,8 @@ type Mutation {
615
616
  declineJoinRequest(groupId: ID!, memberId: ID!): Boolean
616
617
  createPost(data: CreatePost!): PostModel!
617
618
  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
619
+ updateNotification(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
620
+ updateNotifications(ids: [String!]!): Boolean
622
621
  createComment(data: CreateComment!): CommentModel!
623
622
  createReply(data: CreateComment!): CommentModel!
624
623
  deleteComment(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
@@ -728,10 +727,6 @@ enum MimeType {
728
727
  HEIF
729
728
  }
730
729
 
731
- input IdsModel {
732
- ids: [String!]!
733
- }
734
-
735
730
  input CreateComment {
736
731
  postId: ID!
737
732
  parentId: String
@@ -757,7 +752,7 @@ enum ReportReason {
757
752
 
758
753
  type Subscription {
759
754
  unreadNotificationsCount: Int!
760
- unreadNotifications: [NotificationModel!]!
755
+ unreadNotification: NotificationModel!
761
756
  aiCommentAdded(postId: String!): CommentModel!
762
757
  userCommentAdded(postId: String!): String!
763
758
  aiReplyAdded(commentId: String!): CommentModel!