@fowgence/api-schema 1.0.1-dev.23196426614.0 → 1.0.1-dev.23298829854.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 +9 -3
package/package.json
CHANGED
package/schema.gql
CHANGED
|
@@ -215,11 +215,13 @@ type Comment {
|
|
|
215
215
|
title: String
|
|
216
216
|
content: String
|
|
217
217
|
authorType: AuthorType
|
|
218
|
+
score: Float
|
|
218
219
|
medias: [Media]
|
|
219
220
|
snippets: [Snippet]
|
|
220
221
|
author: User
|
|
221
222
|
quotingComments: [Comment]
|
|
222
|
-
|
|
223
|
+
children: [Comment]
|
|
224
|
+
childrenCount: Int
|
|
223
225
|
likesCount: Int
|
|
224
226
|
isLiked: Boolean
|
|
225
227
|
isBookmarked: Boolean
|
|
@@ -340,8 +342,9 @@ type Query {
|
|
|
340
342
|
searchPosts(searchTerm: String!, max: Float): [Post]
|
|
341
343
|
notifications: [Notification]
|
|
342
344
|
rootAiComment(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Comment!
|
|
343
|
-
comment(
|
|
345
|
+
comment(postId: ID!, id: ID!, parentId: String): Comment!
|
|
344
346
|
comments(postId: ID!, limit: Float, lastScore: Float, excludeIds: [String]): [Comment!]!
|
|
347
|
+
replies(postId: ID!, parentId: String!, limit: Float, lastTimestamp: DateTime): [Comment!]!
|
|
345
348
|
rootAiCommentPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Comment!
|
|
346
349
|
}
|
|
347
350
|
|
|
@@ -379,6 +382,7 @@ type Mutation {
|
|
|
379
382
|
updatePostNotification(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
380
383
|
updateCommentNotification(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
381
384
|
createComment(data: CreateComment!): Comment!
|
|
385
|
+
createReply(data: CreateComment!): Comment!
|
|
382
386
|
}
|
|
383
387
|
|
|
384
388
|
input CreateUser {
|
|
@@ -483,13 +487,15 @@ input IdsModel {
|
|
|
483
487
|
|
|
484
488
|
input CreateComment {
|
|
485
489
|
postId: ID!
|
|
490
|
+
parentId: String
|
|
491
|
+
privacy: Privacy! = PUBLIC
|
|
486
492
|
content: String!
|
|
487
|
-
medias: [CreateMedia]
|
|
488
493
|
snippets: [CreateSnippet]
|
|
489
494
|
quotedCommentId: String
|
|
490
495
|
quoteType: QuoteType
|
|
491
496
|
quotedText: String
|
|
492
497
|
startIndex: Int
|
|
498
|
+
askAi: Flag! = OFF
|
|
493
499
|
}
|
|
494
500
|
|
|
495
501
|
enum QuoteType {
|