@fowgence/api-schema 1.0.1-dev.30638123863.0 → 1.0.1-dev.30671150189.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 +23 -25
package/package.json
CHANGED
package/schema.gql
CHANGED
|
@@ -2,22 +2,6 @@
|
|
|
2
2
|
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
|
|
3
3
|
# ------------------------------------------------------
|
|
4
4
|
|
|
5
|
-
type Media {
|
|
6
|
-
id: ID!
|
|
7
|
-
createdAt: DateTime
|
|
8
|
-
updatedAt: DateTime
|
|
9
|
-
success: Boolean
|
|
10
|
-
key: String!
|
|
11
|
-
fileName: String
|
|
12
|
-
mimeType: String
|
|
13
|
-
fileSize: Float
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
"""
|
|
17
|
-
A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
|
|
18
|
-
"""
|
|
19
|
-
scalar DateTime
|
|
20
|
-
|
|
21
5
|
type UserSettingModel {
|
|
22
6
|
id: ID!
|
|
23
7
|
createdAt: DateTime
|
|
@@ -39,6 +23,11 @@ type UserSettingModel {
|
|
|
39
23
|
country: Country
|
|
40
24
|
}
|
|
41
25
|
|
|
26
|
+
"""
|
|
27
|
+
A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
|
|
28
|
+
"""
|
|
29
|
+
scalar DateTime
|
|
30
|
+
|
|
42
31
|
enum Theme {
|
|
43
32
|
LIGHT
|
|
44
33
|
DARK
|
|
@@ -413,11 +402,9 @@ type CommentModel {
|
|
|
413
402
|
success: Boolean
|
|
414
403
|
postId: String
|
|
415
404
|
parentId: String
|
|
416
|
-
title: String
|
|
417
405
|
content: String
|
|
418
406
|
authorType: AuthorType
|
|
419
407
|
score: Float
|
|
420
|
-
medias: [Media]
|
|
421
408
|
author: UserModel
|
|
422
409
|
quotingComments: [CommentModel]
|
|
423
410
|
quotedCommentId: String
|
|
@@ -492,6 +479,17 @@ enum MemberRole {
|
|
|
492
479
|
MEMBER
|
|
493
480
|
}
|
|
494
481
|
|
|
482
|
+
type Media {
|
|
483
|
+
id: ID!
|
|
484
|
+
createdAt: DateTime
|
|
485
|
+
updatedAt: DateTime
|
|
486
|
+
success: Boolean
|
|
487
|
+
key: String!
|
|
488
|
+
fileName: String
|
|
489
|
+
mimeType: String
|
|
490
|
+
fileSize: Float
|
|
491
|
+
}
|
|
492
|
+
|
|
495
493
|
type NotificationModel {
|
|
496
494
|
id: ID!
|
|
497
495
|
createdAt: DateTime
|
|
@@ -624,19 +622,19 @@ type Mutation {
|
|
|
624
622
|
updateNotifications(ids: [String!]!): Boolean
|
|
625
623
|
createComment(data: CreateComment!): CommentModel!
|
|
626
624
|
createReply(data: CreateComment!): CommentModel!
|
|
627
|
-
deleteComment(
|
|
625
|
+
deleteComment(commentId: ID!, postId: String!): Boolean
|
|
628
626
|
likePost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
|
|
629
627
|
unlikePost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
|
|
630
|
-
likeComment(commentId: ID!): Boolean
|
|
631
|
-
unlikeComment(commentId: ID!): Boolean
|
|
628
|
+
likeComment(commentId: ID!, postId: String!): Boolean
|
|
629
|
+
unlikeComment(commentId: ID!, postId: String!): Boolean
|
|
632
630
|
bookmarkPost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
|
|
633
631
|
unbookmarkPost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
|
|
634
|
-
bookmarkComment(commentId: ID!): Boolean
|
|
635
|
-
unbookmarkComment(commentId: ID!): Boolean
|
|
632
|
+
bookmarkComment(commentId: ID!, postId: String!): Boolean
|
|
633
|
+
unbookmarkComment(commentId: ID!, postId: String!): Boolean
|
|
636
634
|
rewardPost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
|
|
637
635
|
unrewardPost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
|
|
638
|
-
rewardComment(commentId: ID!): Boolean
|
|
639
|
-
unrewardComment(commentId: ID!): Boolean
|
|
636
|
+
rewardComment(commentId: ID!, postId: String!): Boolean
|
|
637
|
+
unrewardComment(commentId: ID!, postId: String!): Boolean
|
|
640
638
|
reportPost(postId: ID!, reason: ReportReason!): Boolean
|
|
641
639
|
reportComment(commentId: ID!, reason: ReportReason!): Boolean
|
|
642
640
|
}
|