@fowgence/api-schema 1.0.1-dev.42415288476.0 → 1.0.1-dev.43212508244.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 +5 -31
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fowgence/api-schema",
3
- "version": "1.0.1-dev.42415288476.0",
3
+ "version": "1.0.1-dev.43212508244.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
@@ -11,7 +11,6 @@ type UserSettingModel {
11
11
  notificationLike: Flag
12
12
  notificationReward: Flag
13
13
  notificationReply: Flag
14
- notificationFollowRequest: Flag
15
14
  notificationMention: Flag
16
15
  notificationGroupFollowRequest: Flag
17
16
  notificationGroupJoinRequest: Flag
@@ -19,7 +18,6 @@ type UserSettingModel {
19
18
  notificationGroupReply: Flag
20
19
  systemLanguage: Language
21
20
  postsLanguages: [Language!]
22
- privacy: Privacy
23
21
  country: Country
24
22
  }
25
23
 
@@ -97,11 +95,6 @@ enum Language {
97
95
  UNSUPPORTED
98
96
  }
99
97
 
100
- enum Privacy {
101
- PRIVATE
102
- PUBLIC
103
- }
104
-
105
98
  enum Country {
106
99
  ANDORRA
107
100
  UNITED_ARAB_EMIRATES
@@ -378,14 +371,12 @@ type UserModel {
378
371
  externalLinks: [ExternalLinkModel]
379
372
  followingsCount: Int
380
373
  followersCount: Int
381
- receivedFollowRequestsCount: Int
382
374
  groupsCount: Int
383
375
  followingGroupsCount: Int
384
376
  postsCount: Int
385
377
  commentsCount: Int
386
378
  remainingRewardsCount: Int
387
379
  isFollowing: Boolean
388
- isRequesting: Boolean
389
380
  }
390
381
 
391
382
  enum UserRank {
@@ -426,7 +417,6 @@ type CommentModel {
426
417
  isRatedGood: Boolean
427
418
  isRatedBad: Boolean
428
419
  isReported: Boolean
429
- hasAccess: Boolean
430
420
  }
431
421
 
432
422
  enum AuthorType {
@@ -448,7 +438,6 @@ type GroupModel {
448
438
  name: String
449
439
  displayName: String
450
440
  bio: String
451
- privacy: Privacy
452
441
  rank: GroupRank
453
442
  externalLinks: [ExternalLinkModel]
454
443
  membersCount: Int
@@ -519,7 +508,6 @@ enum NotificationTemplate {
519
508
  REPLY
520
509
  REWARD
521
510
  FOLLOW
522
- FOLLOW_REQ
523
511
  GROUP_FOLLOW
524
512
  GROUP_JOIN
525
513
  GROUP_JOIN_REQ
@@ -548,8 +536,6 @@ type PostModel {
548
536
  rewardsCount: Int
549
537
  isRewarded: Boolean
550
538
  isReported: Boolean
551
- hasAccess: Boolean
552
- privacy: Privacy
553
539
  }
554
540
 
555
541
  type UserItemModel {
@@ -562,20 +548,18 @@ type UserItemModel {
562
548
  name: String!
563
549
  displayName: String!
564
550
  isFollowing: Boolean
565
- isRequesting: Boolean
566
551
  }
567
552
 
568
553
  type Query {
569
554
  user(name: String!): UserModel
570
555
  followers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
571
556
  followings(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
572
- followRequests(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int): [UserItemModel]
573
557
  userPublic(name: String!): UserModel
574
558
  followersPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
575
559
  followingsPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
576
- searchUsers(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!, privacy: Privacy): [UserModel!]
560
+ searchUsers(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!): [UserModel!]
577
561
  groupPublic(name: String!): GroupModel
578
- searchGroups(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!, privacy: Privacy): [GroupModel]
562
+ searchGroups(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!): [GroupModel]
579
563
  groupsPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [GroupMemberModel]
580
564
  groupMembersPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [GroupMemberModel]
581
565
  groupFollowersPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
@@ -589,7 +573,7 @@ type Query {
589
573
  joinRequests(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
590
574
  post(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): PostModel
591
575
  aiPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, language: Language): [PostModel]
592
- searchPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!, privacy: Privacy): [PostModel]
576
+ searchPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!): [PostModel]
593
577
  recommendPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, language: Language): [PostModel]
594
578
  homePosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, language: Language): [PostModel]
595
579
  userPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, authorId: ID!): [PostModel]
@@ -597,10 +581,10 @@ type Query {
597
581
  likedPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, language: Language): [PostModel]
598
582
  bookmarkedPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, language: Language): [PostModel]
599
583
  rewardedPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, language: Language): [PostModel]
600
- suggestPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!, privacy: Privacy): [PostModel]
584
+ suggestPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!): [PostModel]
601
585
  postPublic(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): PostModel
602
586
  aiPostsPublic(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, language: Language): [PostModel]
603
- searchPostsPublic(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!, privacy: Privacy): [PostModel]
587
+ searchPostsPublic(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!): [PostModel]
604
588
  recommendPostsPublic(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, language: Language): [PostModel]
605
589
  homePostsPublic(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, language: Language): [PostModel]
606
590
  userPostsPublic(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, authorId: ID!): [PostModel]
@@ -626,16 +610,11 @@ type Mutation {
626
610
  createUser(data: CreateUser!): UserModel!
627
611
  updateUser(data: UpdateUser!): UserModel!
628
612
  updateUserIcon(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean!
629
- updatePrivacy(privacy: Privacy!): Boolean!
630
613
  updateUserSetting(data: UpdateUserSetting!): Boolean!
631
614
  deleteUser: Boolean
632
615
  followUser(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
633
616
  unfollowUser(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
634
617
  blockUser(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
635
- createFollowRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
636
- deleteFollowRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
637
- acceptFollowRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
638
- declineFollowRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
639
618
  createGroup(data: CreateGroup!): GroupModel!
640
619
  updateGroup(data: UpdateGroup!): GroupModel!
641
620
  updateGroupIcon(groupId: ID!, iconId: String!): Boolean!
@@ -685,7 +664,6 @@ input CreateUserSetting {
685
664
  theme: Theme
686
665
  systemLanguage: Language!
687
666
  postsLanguages: [Language!]!
688
- privacy: Privacy
689
667
  country: Country!
690
668
  }
691
669
 
@@ -710,7 +688,6 @@ input UpdateUserSetting {
710
688
  notificationLike: Flag
711
689
  notificationReward: Flag
712
690
  notificationReply: Flag
713
- notificationFollowRequest: Flag
714
691
  notificationMention: Flag
715
692
  notificationGroupFollowRequest: Flag
716
693
  notificationGroupJoinRequest: Flag
@@ -723,7 +700,6 @@ input CreateGroup {
723
700
  name: String!
724
701
  displayName: String!
725
702
  bio: String
726
- privacy: Privacy!
727
703
  externalLinks: [UpsertExternalLink]
728
704
  hostsIds: [String!]!
729
705
  membersIds: [String]
@@ -744,7 +720,6 @@ input CreatePost {
744
720
  id: ID!
745
721
  lon: Float
746
722
  lat: Float
747
- privacy: Privacy! = PUBLIC
748
723
  title: String
749
724
  content: String!
750
725
  medias: [CreateMedia]
@@ -770,7 +745,6 @@ input CreateComment {
770
745
  postId: ID!
771
746
  parentId: String
772
747
  groupId: String
773
- privacy: Privacy! = PUBLIC
774
748
  content: String!
775
749
  quotedCommentId: String
776
750
  quoteType: QuoteType