@fowgence/api-schema 1.0.1-dev.39690715815.0 → 1.0.1-dev.41532381896.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.
- package/package.json +1 -1
- package/schema.gql +14 -0
package/package.json
CHANGED
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,8 @@ type CommentModel {
|
|
|
421
422
|
isBookmarked: Boolean
|
|
422
423
|
rewardsCount: Int
|
|
423
424
|
isRewarded: Boolean
|
|
425
|
+
isRatedGood: Boolean
|
|
426
|
+
isRatedBad: Boolean
|
|
424
427
|
isReported: Boolean
|
|
425
428
|
hasAccess: Boolean
|
|
426
429
|
}
|
|
@@ -659,6 +662,8 @@ type Mutation {
|
|
|
659
662
|
unbookmarkPost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
|
|
660
663
|
bookmarkComment(commentId: ID!, postId: String): Boolean
|
|
661
664
|
unbookmarkComment(commentId: ID!, postId: String): Boolean
|
|
665
|
+
rateComment(commentId: ID!, type: RateType!): Boolean
|
|
666
|
+
unrateComment(commentId: ID!, postId: String): Boolean
|
|
662
667
|
rewardPost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
|
|
663
668
|
unrewardPost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
|
|
664
669
|
rewardComment(commentId: ID!, postId: String): Boolean
|
|
@@ -774,6 +779,15 @@ input CreateComment {
|
|
|
774
779
|
askAi: Flag! = OFF
|
|
775
780
|
}
|
|
776
781
|
|
|
782
|
+
enum RateType {
|
|
783
|
+
HELPFUL
|
|
784
|
+
MISINFORMATION
|
|
785
|
+
MISLEADING
|
|
786
|
+
UNCLREA
|
|
787
|
+
IRRELEVANT
|
|
788
|
+
OTHER
|
|
789
|
+
}
|
|
790
|
+
|
|
777
791
|
enum ReportReason {
|
|
778
792
|
SPAM
|
|
779
793
|
SENSITIVE_CONTENT
|