@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.
- 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,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
|