@fowgence/api-schema 1.0.1-dev.28060425593.0 → 1.0.1-dev.28385621733.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/schema.gql +12 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fowgence/api-schema",
3
- "version": "1.0.1-dev.28060425593.0",
3
+ "version": "1.0.1-dev.28385621733.0",
4
4
  "description": "Auto-generated GraphQL schema for the Next.js frontend",
5
5
  "main": "schema.gql",
6
6
  "files": [
package/schema.gql CHANGED
@@ -415,6 +415,11 @@ type CommentModel {
415
415
  medias: [Media]
416
416
  author: UserModel
417
417
  quotingComments: [CommentModel]
418
+ quotedCommentId: String
419
+ quoteType: QuoteType
420
+ quotedText: String
421
+ startIndex: Int
422
+ endIndex: Int
418
423
  children: [CommentModel]
419
424
  childrenCount: Int
420
425
  likesCount: Int
@@ -429,6 +434,11 @@ enum AuthorType {
429
434
  USER
430
435
  }
431
436
 
437
+ enum QuoteType {
438
+ QUOTE
439
+ CORRECT
440
+ }
441
+
432
442
  type GroupModel {
433
443
  id: ID!
434
444
  createdAt: DateTime
@@ -554,7 +564,7 @@ type Query {
554
564
  rewardedPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [PostModel]
555
565
  postPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): PostModel
556
566
  notifications: [Notification]
557
- rootAiComment(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): CommentModel!
567
+ rootAiComment(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!): CommentModel!
558
568
  comment(postId: ID!, id: ID!): CommentModel!
559
569
  comments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!, excludeIds: [String]): [CommentModel!]!
560
570
  userComments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, authorId: ID!): [CommentModel]
@@ -715,14 +725,10 @@ input CreateComment {
715
725
  quoteType: QuoteType
716
726
  quotedText: String
717
727
  startIndex: Int
728
+ endIndex: Int
718
729
  askAi: Flag! = OFF
719
730
  }
720
731
 
721
- enum QuoteType {
722
- QUOTE
723
- CORRECT
724
- }
725
-
726
732
  enum ReportReason {
727
733
  SPAM
728
734
  SENSITIVE_CONTENT