@fowgence/api-schema 1.0.1-dev.30053331020.0 → 1.0.1-dev.30132354559.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 +28 -26
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fowgence/api-schema",
3
- "version": "1.0.1-dev.30053331020.0",
3
+ "version": "1.0.1-dev.30132354559.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
@@ -490,6 +490,32 @@ enum MemberRole {
490
490
  MEMBER
491
491
  }
492
492
 
493
+ type NotificationModel {
494
+ id: ID!
495
+ createdAt: DateTime
496
+ updatedAt: DateTime
497
+ success: Boolean
498
+ template: NotificationTemplate
499
+ readAt: DateTime
500
+ receiver: UserModel
501
+ sender: UserModel
502
+ group: GroupModel
503
+ postId: String
504
+ commentId: String
505
+ parentId: String
506
+ }
507
+
508
+ enum NotificationTemplate {
509
+ LIKE
510
+ REPLY
511
+ REWARD
512
+ FOLLOW
513
+ FOLLOW_REQ
514
+ GROUP_FOLLOW
515
+ GROUP_JOIN
516
+ GROUP_JOIN_REQ
517
+ }
518
+
493
519
  type PostModel {
494
520
  id: ID!
495
521
  createdAt: DateTime
@@ -514,30 +540,6 @@ type PostModel {
514
540
  isReported: Boolean
515
541
  }
516
542
 
517
- type Notification {
518
- id: ID!
519
- createdAt: DateTime
520
- updatedAt: DateTime
521
- success: Boolean
522
- template: NotificationTemplate
523
- readAt: DateTime
524
- user: UserModel
525
- sender: UserModel
526
- group: GroupModel
527
- post: PostModel
528
- }
529
-
530
- enum NotificationTemplate {
531
- LIKE
532
- REPLY
533
- REWARD
534
- FOLLOW
535
- FOLLOW_REQ
536
- GROUP_FOLLOW
537
- GROUP_JOIN
538
- GROUP_JOIN_REQ
539
- }
540
-
541
543
  type UserItemModel {
542
544
  id: ID!
543
545
  createdAt: DateTime
@@ -575,7 +577,7 @@ type Query {
575
577
  bookmarkedPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [PostModel]
576
578
  rewardedPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [PostModel]
577
579
  postPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): PostModel
578
- notifications: [Notification]
580
+ notifications(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [NotificationModel]
579
581
  rootAiComment(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): CommentModel!
580
582
  comment(postId: ID!, id: ID!): CommentModel!
581
583
  comments(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!, excludeIds: [String]): [CommentModel!]!
@@ -755,7 +757,7 @@ enum ReportReason {
755
757
 
756
758
  type Subscription {
757
759
  unreadNotificationsCount: Int!
758
- unreadNotifications: [Notification!]!
760
+ unreadNotifications: [NotificationModel!]!
759
761
  aiCommentAdded(postId: String!): CommentModel!
760
762
  userCommentAdded(postId: String!): String!
761
763
  aiReplyAdded(commentId: String!): CommentModel!