@fowgence/api-schema 1.0.1-dev.42131439627.0 → 1.0.1-dev.43104152178.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 +6 -21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fowgence/api-schema",
3
- "version": "1.0.1-dev.42131439627.0",
3
+ "version": "1.0.1-dev.43104152178.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
@@ -19,7 +19,6 @@ type UserSettingModel {
19
19
  notificationGroupReply: Flag
20
20
  systemLanguage: Language
21
21
  postsLanguages: [Language!]
22
- privacy: Privacy
23
22
  country: Country
24
23
  }
25
24
 
@@ -97,11 +96,6 @@ enum Language {
97
96
  UNSUPPORTED
98
97
  }
99
98
 
100
- enum Privacy {
101
- PRIVATE
102
- PUBLIC
103
- }
104
-
105
99
  enum Country {
106
100
  ANDORRA
107
101
  UNITED_ARAB_EMIRATES
@@ -426,7 +420,6 @@ type CommentModel {
426
420
  isRatedGood: Boolean
427
421
  isRatedBad: Boolean
428
422
  isReported: Boolean
429
- hasAccess: Boolean
430
423
  }
431
424
 
432
425
  enum AuthorType {
@@ -448,7 +441,6 @@ type GroupModel {
448
441
  name: String
449
442
  displayName: String
450
443
  bio: String
451
- privacy: Privacy
452
444
  rank: GroupRank
453
445
  externalLinks: [ExternalLinkModel]
454
446
  membersCount: Int
@@ -548,8 +540,6 @@ type PostModel {
548
540
  rewardsCount: Int
549
541
  isRewarded: Boolean
550
542
  isReported: Boolean
551
- hasAccess: Boolean
552
- privacy: Privacy
553
543
  }
554
544
 
555
545
  type UserItemModel {
@@ -573,9 +563,9 @@ type Query {
573
563
  userPublic(name: String!): UserModel
574
564
  followersPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
575
565
  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!]
566
+ searchUsers(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!): [UserModel!]
577
567
  groupPublic(name: String!): GroupModel
578
- searchGroups(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!, privacy: Privacy): [GroupModel]
568
+ searchGroups(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!): [GroupModel]
579
569
  groupsPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [GroupMemberModel]
580
570
  groupMembersPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [GroupMemberModel]
581
571
  groupFollowersPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
@@ -589,7 +579,7 @@ type Query {
589
579
  joinRequests(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
590
580
  post(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): PostModel
591
581
  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]
582
+ searchPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!): [PostModel]
593
583
  recommendPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, language: Language): [PostModel]
594
584
  homePosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, language: Language): [PostModel]
595
585
  userPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, authorId: ID!): [PostModel]
@@ -597,10 +587,10 @@ type Query {
597
587
  likedPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, language: Language): [PostModel]
598
588
  bookmarkedPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, language: Language): [PostModel]
599
589
  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]
590
+ suggestPosts(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!): [PostModel]
601
591
  postPublic(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, postId: ID!): PostModel
602
592
  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]
593
+ searchPostsPublic(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, term: String!): [PostModel]
604
594
  recommendPostsPublic(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, language: Language): [PostModel]
605
595
  homePostsPublic(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, language: Language): [PostModel]
606
596
  userPostsPublic(lastScore: Float, limit: Int! = 20, lastId: String, lastTimestamp: DateTime, offset: Int, authorId: ID!): [PostModel]
@@ -626,7 +616,6 @@ type Mutation {
626
616
  createUser(data: CreateUser!): UserModel!
627
617
  updateUser(data: UpdateUser!): UserModel!
628
618
  updateUserIcon(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean!
629
- updatePrivacy(privacy: Privacy!): Boolean!
630
619
  updateUserSetting(data: UpdateUserSetting!): Boolean!
631
620
  deleteUser: Boolean
632
621
  followUser(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
@@ -685,7 +674,6 @@ input CreateUserSetting {
685
674
  theme: Theme
686
675
  systemLanguage: Language!
687
676
  postsLanguages: [Language!]!
688
- privacy: Privacy
689
677
  country: Country!
690
678
  }
691
679
 
@@ -723,7 +711,6 @@ input CreateGroup {
723
711
  name: String!
724
712
  displayName: String!
725
713
  bio: String
726
- privacy: Privacy!
727
714
  externalLinks: [UpsertExternalLink]
728
715
  hostsIds: [String!]!
729
716
  membersIds: [String]
@@ -744,7 +731,6 @@ input CreatePost {
744
731
  id: ID!
745
732
  lon: Float
746
733
  lat: Float
747
- privacy: Privacy! = PUBLIC
748
734
  title: String
749
735
  content: String!
750
736
  medias: [CreateMedia]
@@ -770,7 +756,6 @@ input CreateComment {
770
756
  postId: ID!
771
757
  parentId: String
772
758
  groupId: String
773
- privacy: Privacy! = PUBLIC
774
759
  content: String!
775
760
  quotedCommentId: String
776
761
  quoteType: QuoteType
@@ -784,7 +769,7 @@ enum RateType {
784
769
  HELPFUL
785
770
  MISINFORMATION
786
771
  MISLEADING
787
- UNCLREA
772
+ UNCLREAR
788
773
  IRRELEVANT
789
774
  OTHER
790
775
  }