@fowgence/api-schema 1.0.1-dev.38095436092.0 → 1.0.1-dev.41137597669.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 +14 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fowgence/api-schema",
3
- "version": "1.0.1-dev.38095436092.0",
3
+ "version": "1.0.1-dev.41137597669.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
@@ -407,6 +407,7 @@ type CommentModel {
407
407
  content: String
408
408
  authorType: AuthorType
409
409
  score: Float
410
+ rateScore: Float
410
411
  author: UserModel
411
412
  quotingComments: [CommentModel]
412
413
  quotedCommentId: String
@@ -421,6 +422,7 @@ type CommentModel {
421
422
  isBookmarked: Boolean
422
423
  rewardsCount: Int
423
424
  isRewarded: Boolean
425
+ isRated: Boolean
424
426
  isReported: Boolean
425
427
  hasAccess: Boolean
426
428
  }
@@ -526,6 +528,7 @@ type PostModel {
526
528
  createdAt: DateTime
527
529
  updatedAt: DateTime
528
530
  success: Boolean
531
+ thumbnailId: String
529
532
  title: String
530
533
  content: String
531
534
  medias: [Media]
@@ -658,6 +661,8 @@ type Mutation {
658
661
  unbookmarkPost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
659
662
  bookmarkComment(commentId: ID!, postId: String): Boolean
660
663
  unbookmarkComment(commentId: ID!, postId: String): Boolean
664
+ rateComment(commentId: ID!, type: RateType!): Boolean
665
+ unrateComment(commentId: ID!, postId: String): Boolean
661
666
  rewardPost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
662
667
  unrewardPost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
663
668
  rewardComment(commentId: ID!, postId: String): Boolean
@@ -773,6 +778,15 @@ input CreateComment {
773
778
  askAi: Flag! = OFF
774
779
  }
775
780
 
781
+ enum RateType {
782
+ HELPFUL
783
+ MISINFORMATION
784
+ MISLEADING
785
+ UNCLREA
786
+ IRRELEVANT
787
+ OTHER
788
+ }
789
+
776
790
  enum ReportReason {
777
791
  SPAM
778
792
  SENSITIVE_CONTENT