@fowgence/api-schema 1.0.1-dev.39690715815.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.
- package/package.json +1 -1
- package/schema.gql +13 -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,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
|
}
|
|
@@ -659,6 +661,8 @@ type Mutation {
|
|
|
659
661
|
unbookmarkPost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
|
|
660
662
|
bookmarkComment(commentId: ID!, postId: String): Boolean
|
|
661
663
|
unbookmarkComment(commentId: ID!, postId: String): Boolean
|
|
664
|
+
rateComment(commentId: ID!, type: RateType!): Boolean
|
|
665
|
+
unrateComment(commentId: ID!, postId: String): Boolean
|
|
662
666
|
rewardPost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
|
|
663
667
|
unrewardPost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
|
|
664
668
|
rewardComment(commentId: ID!, postId: String): Boolean
|
|
@@ -774,6 +778,15 @@ input CreateComment {
|
|
|
774
778
|
askAi: Flag! = OFF
|
|
775
779
|
}
|
|
776
780
|
|
|
781
|
+
enum RateType {
|
|
782
|
+
HELPFUL
|
|
783
|
+
MISINFORMATION
|
|
784
|
+
MISLEADING
|
|
785
|
+
UNCLREA
|
|
786
|
+
IRRELEVANT
|
|
787
|
+
OTHER
|
|
788
|
+
}
|
|
789
|
+
|
|
777
790
|
enum ReportReason {
|
|
778
791
|
SPAM
|
|
779
792
|
SENSITIVE_CONTENT
|