@fowgence/api-schema 1.0.1-dev.23196426614.0 → 1.0.1-dev.23441142957.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 +10 -5
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 {
|
|
@@ -445,7 +449,6 @@ input UpdateGroup {
|
|
|
445
449
|
}
|
|
446
450
|
|
|
447
451
|
input CreatePost {
|
|
448
|
-
id: ID!
|
|
449
452
|
lon: Float
|
|
450
453
|
lat: Float
|
|
451
454
|
privacy: Privacy! = PUBLIC
|
|
@@ -483,13 +486,15 @@ input IdsModel {
|
|
|
483
486
|
|
|
484
487
|
input CreateComment {
|
|
485
488
|
postId: ID!
|
|
489
|
+
parentId: String
|
|
490
|
+
privacy: Privacy! = PUBLIC
|
|
486
491
|
content: String!
|
|
487
|
-
medias: [CreateMedia]
|
|
488
492
|
snippets: [CreateSnippet]
|
|
489
493
|
quotedCommentId: String
|
|
490
494
|
quoteType: QuoteType
|
|
491
495
|
quotedText: String
|
|
492
496
|
startIndex: Int
|
|
497
|
+
askAi: Flag! = OFF
|
|
493
498
|
}
|
|
494
499
|
|
|
495
500
|
enum QuoteType {
|
|
@@ -501,5 +506,5 @@ type Subscription {
|
|
|
501
506
|
unreadNotificationsCount: Int!
|
|
502
507
|
unreadNotifications: [Notification!]!
|
|
503
508
|
aiCommentAdded(postId: String!): String!
|
|
504
|
-
|
|
509
|
+
aiReplyAdded(commentId: String!): [String!]!
|
|
505
510
|
}
|