@fowgence/api-schema 1.0.1-dev.30638123863.0 → 1.0.1-dev.30956725487.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 +43 -30
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fowgence/api-schema",
3
- "version": "1.0.1-dev.30638123863.0",
3
+ "version": "1.0.1-dev.30956725487.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
@@ -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
@@ -560,17 +558,22 @@ type Query {
560
558
  followers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
561
559
  followings(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
562
560
  followRequests(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [UserItemModel]
563
- publicUser(name: String!): UserModel
561
+ userPublic(name: String!): UserModel
562
+ followersPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
563
+ followingsPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
564
564
  searchUsers(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!, privacy: Privacy): [UserModel!]
565
+ groupPublic(name: String!): GroupModel
566
+ searchGroups(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!, privacy: Privacy): [GroupModel]
567
+ groupsPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [GroupMemberModel]
568
+ groupMembersPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [GroupMemberModel]
569
+ groupFollowersPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
565
570
  group(name: String!): GroupModel
566
- searchGroups(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!, privacy: Privacy): [GroupModel!]!
567
571
  myGroups: [GroupModel]
568
572
  groups(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [GroupMemberModel]
569
573
  groupMembers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [GroupMemberModel]
570
574
  groupFollowers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
571
575
  joinRequests(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
572
576
  post(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): PostModel
573
- suggestPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!, privacy: Privacy): [PostModel]
574
577
  searchPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!, privacy: Privacy): [PostModel]
575
578
  recommendPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [PostModel]
576
579
  postsHome(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [PostModel]
@@ -580,7 +583,13 @@ type Query {
580
583
  likedPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [PostModel]
581
584
  bookmarkedPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [PostModel]
582
585
  rewardedPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [PostModel]
583
- postPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): PostModel
586
+ aiPostsPublic(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [PostModel]
587
+ postPublic(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): PostModel
588
+ suggestPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!, privacy: Privacy): [PostModel]
589
+ searchPostsPublic(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!, privacy: Privacy): [PostModel]
590
+ recommendPostsPublic(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [PostModel]
591
+ userPostsPublic(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, authorId: ID!): [PostModel]
592
+ groupPostsPublic(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, groupId: ID!): [PostModel]
584
593
  notifications(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [NotificationModel]
585
594
  unreadCount: Int!
586
595
  rootAiComment(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): CommentModel!
@@ -591,7 +600,11 @@ type Query {
591
600
  bookmarkedComments(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [CommentModel]
592
601
  rewardedComments(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [CommentModel]
593
602
  replies(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!, parentId: String!): [CommentModel!]!
594
- rootAiCommentPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): CommentModel!
603
+ rootAiCommentPublic(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): CommentModel!
604
+ commentsPublic(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!, excludeIds: [String]): [CommentModel!]!
605
+ repliesPublic(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!, parentId: String!): [CommentModel!]!
606
+ commentPublic(postId: ID!, id: ID!): CommentModel!
607
+ userCommentsPublic(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, authorId: ID!): [CommentModel]
595
608
  }
596
609
 
597
610
  type Mutation {
@@ -624,19 +637,19 @@ type Mutation {
624
637
  updateNotifications(ids: [String!]!): Boolean
625
638
  createComment(data: CreateComment!): CommentModel!
626
639
  createReply(data: CreateComment!): CommentModel!
627
- deleteComment(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
640
+ deleteComment(commentId: ID!, postId: String!): Boolean
628
641
  likePost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
629
642
  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
643
+ likeComment(commentId: ID!, postId: String!): Boolean
644
+ unlikeComment(commentId: ID!, postId: String!): Boolean
632
645
  bookmarkPost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
633
646
  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
647
+ bookmarkComment(commentId: ID!, postId: String!): Boolean
648
+ unbookmarkComment(commentId: ID!, postId: String!): Boolean
636
649
  rewardPost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
637
650
  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
651
+ rewardComment(commentId: ID!, postId: String!): Boolean
652
+ unrewardComment(commentId: ID!, postId: String!): Boolean
640
653
  reportPost(postId: ID!, reason: ReportReason!): Boolean
641
654
  reportComment(commentId: ID!, reason: ReportReason!): Boolean
642
655
  }