@fowgence/api-schema 1.0.1-dev.29940636211.0 → 1.0.1-dev.30099910224.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 +56 -54
package/package.json
CHANGED
package/schema.gql
CHANGED
|
@@ -490,6 +490,32 @@ enum MemberRole {
|
|
|
490
490
|
MEMBER
|
|
491
491
|
}
|
|
492
492
|
|
|
493
|
+
type NotificationModel {
|
|
494
|
+
id: ID!
|
|
495
|
+
createdAt: DateTime
|
|
496
|
+
updatedAt: DateTime
|
|
497
|
+
success: Boolean
|
|
498
|
+
template: NotificationTemplate
|
|
499
|
+
readAt: DateTime
|
|
500
|
+
user: UserModel
|
|
501
|
+
sender: UserModel
|
|
502
|
+
group: GroupModel
|
|
503
|
+
postId: String
|
|
504
|
+
commentId: String
|
|
505
|
+
parentId: String
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
enum NotificationTemplate {
|
|
509
|
+
LIKE
|
|
510
|
+
REPLY
|
|
511
|
+
REWARD
|
|
512
|
+
FOLLOW
|
|
513
|
+
FOLLOW_REQ
|
|
514
|
+
GROUP_FOLLOW
|
|
515
|
+
GROUP_JOIN
|
|
516
|
+
GROUP_JOIN_REQ
|
|
517
|
+
}
|
|
518
|
+
|
|
493
519
|
type PostModel {
|
|
494
520
|
id: ID!
|
|
495
521
|
createdAt: DateTime
|
|
@@ -514,30 +540,6 @@ type PostModel {
|
|
|
514
540
|
isReported: Boolean
|
|
515
541
|
}
|
|
516
542
|
|
|
517
|
-
type Notification {
|
|
518
|
-
id: ID!
|
|
519
|
-
createdAt: DateTime
|
|
520
|
-
updatedAt: DateTime
|
|
521
|
-
success: Boolean
|
|
522
|
-
template: NotificationTemplate
|
|
523
|
-
readAt: DateTime
|
|
524
|
-
user: UserModel
|
|
525
|
-
sender: UserModel
|
|
526
|
-
group: GroupModel
|
|
527
|
-
post: PostModel
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
enum NotificationTemplate {
|
|
531
|
-
LIKE
|
|
532
|
-
REPLY
|
|
533
|
-
REWARD
|
|
534
|
-
FOLLOW
|
|
535
|
-
FOLLOW_REQ
|
|
536
|
-
GROUP_FOLLOW
|
|
537
|
-
GROUP_JOIN
|
|
538
|
-
GROUP_JOIN_REQ
|
|
539
|
-
}
|
|
540
|
-
|
|
541
543
|
type UserItemModel {
|
|
542
544
|
id: ID!
|
|
543
545
|
createdAt: DateTime
|
|
@@ -553,37 +555,37 @@ type Query {
|
|
|
553
555
|
user(name: String!): UserModel
|
|
554
556
|
followers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
|
|
555
557
|
followings(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
|
|
556
|
-
followRequests(lastScore: Float, limit:
|
|
558
|
+
followRequests(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [UserItemModel]
|
|
557
559
|
publicUser(name: String!): UserModel
|
|
558
|
-
searchUsers(lastScore: Float, limit:
|
|
560
|
+
searchUsers(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!): [UserModel!]
|
|
559
561
|
group(name: String!): GroupModel
|
|
560
|
-
searchGroups(lastScore: Float, limit:
|
|
562
|
+
searchGroups(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!): [GroupModel!]!
|
|
561
563
|
myGroups: [GroupModel]
|
|
562
564
|
groups(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [GroupMemberModel]
|
|
563
565
|
groupMembers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [GroupMemberModel]
|
|
564
566
|
groupFollowers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
|
|
565
567
|
joinRequests(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
|
|
566
|
-
post(lastScore: Float, limit:
|
|
567
|
-
suggestPosts(lastScore: Float, limit:
|
|
568
|
-
searchPosts(lastScore: Float, limit:
|
|
569
|
-
recommendPosts(lastScore: Float, limit:
|
|
570
|
-
postsHome(lastScore: Float, limit:
|
|
571
|
-
aiPosts(lastScore: Float, limit:
|
|
572
|
-
userPosts(lastScore: Float, limit:
|
|
573
|
-
groupPosts(lastScore: Float, limit:
|
|
574
|
-
likedPosts(lastScore: Float, limit:
|
|
575
|
-
bookmarkedPosts(lastScore: Float, limit:
|
|
576
|
-
rewardedPosts(lastScore: Float, limit:
|
|
568
|
+
post(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): PostModel
|
|
569
|
+
suggestPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!): [PostModel]
|
|
570
|
+
searchPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!): [PostModel]
|
|
571
|
+
recommendPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [PostModel]
|
|
572
|
+
postsHome(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [PostModel]
|
|
573
|
+
aiPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [PostModel]
|
|
574
|
+
userPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, authorId: ID!): [PostModel]
|
|
575
|
+
groupPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, groupId: ID!): [PostModel]
|
|
576
|
+
likedPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [PostModel]
|
|
577
|
+
bookmarkedPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [PostModel]
|
|
578
|
+
rewardedPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [PostModel]
|
|
577
579
|
postPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): PostModel
|
|
578
|
-
notifications: [
|
|
579
|
-
rootAiComment(lastScore: Float, limit:
|
|
580
|
+
notifications: [NotificationModel]
|
|
581
|
+
rootAiComment(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): CommentModel!
|
|
580
582
|
comment(postId: ID!, id: ID!): CommentModel!
|
|
581
|
-
comments(lastScore: Float, limit:
|
|
582
|
-
userComments(lastScore: Float, limit:
|
|
583
|
-
likedComments(lastScore: Float, limit:
|
|
584
|
-
bookmarkedComments(lastScore: Float, limit:
|
|
585
|
-
rewardedComments(lastScore: Float, limit:
|
|
586
|
-
replies(lastScore: Float, limit:
|
|
583
|
+
comments(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!, excludeIds: [String]): [CommentModel!]!
|
|
584
|
+
userComments(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, authorId: ID!): [CommentModel]
|
|
585
|
+
likedComments(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [CommentModel]
|
|
586
|
+
bookmarkedComments(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [CommentModel]
|
|
587
|
+
rewardedComments(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [CommentModel]
|
|
588
|
+
replies(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!, parentId: String!): [CommentModel!]!
|
|
587
589
|
rootAiCommentPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): CommentModel!
|
|
588
590
|
}
|
|
589
591
|
|
|
@@ -612,7 +614,7 @@ type Mutation {
|
|
|
612
614
|
acceptJoinRequest(groupId: ID!, memberId: ID!): Boolean
|
|
613
615
|
declineJoinRequest(groupId: ID!, memberId: ID!): Boolean
|
|
614
616
|
createPost(data: CreatePost!): PostModel!
|
|
615
|
-
deletePost(lastScore: Float, limit:
|
|
617
|
+
deletePost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean!
|
|
616
618
|
updateNotificationsByIds(data: IdsModel!): Boolean
|
|
617
619
|
updateGroupNotification(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
618
620
|
updatePostNotification(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
@@ -620,16 +622,16 @@ type Mutation {
|
|
|
620
622
|
createComment(data: CreateComment!): CommentModel!
|
|
621
623
|
createReply(data: CreateComment!): CommentModel!
|
|
622
624
|
deleteComment(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
623
|
-
likePost(lastScore: Float, limit:
|
|
624
|
-
unlikePost(lastScore: Float, limit:
|
|
625
|
+
likePost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
|
|
626
|
+
unlikePost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
|
|
625
627
|
likeComment(commentId: ID!): Boolean
|
|
626
628
|
unlikeComment(commentId: ID!): Boolean
|
|
627
|
-
bookmarkPost(lastScore: Float, limit:
|
|
628
|
-
unbookmarkPost(lastScore: Float, limit:
|
|
629
|
+
bookmarkPost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
|
|
630
|
+
unbookmarkPost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
|
|
629
631
|
bookmarkComment(commentId: ID!): Boolean
|
|
630
632
|
unbookmarkComment(commentId: ID!): Boolean
|
|
631
|
-
rewardPost(lastScore: Float, limit:
|
|
632
|
-
unrewardPost(lastScore: Float, limit:
|
|
633
|
+
rewardPost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
|
|
634
|
+
unrewardPost(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): Boolean
|
|
633
635
|
rewardComment(commentId: ID!): Boolean
|
|
634
636
|
unrewardComment(commentId: ID!): Boolean
|
|
635
637
|
reportPost(postId: ID!, reason: ReportReason!): Boolean
|
|
@@ -755,7 +757,7 @@ enum ReportReason {
|
|
|
755
757
|
|
|
756
758
|
type Subscription {
|
|
757
759
|
unreadNotificationsCount: Int!
|
|
758
|
-
unreadNotifications: [
|
|
760
|
+
unreadNotifications: [NotificationModel!]!
|
|
759
761
|
aiCommentAdded(postId: String!): CommentModel!
|
|
760
762
|
userCommentAdded(postId: String!): String!
|
|
761
763
|
aiReplyAdded(commentId: String!): CommentModel!
|