@fowgence/api-schema 1.0.1-dev.25282179606.0 → 1.0.1-dev.25625838720.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 +48 -48
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fowgence/api-schema",
3
- "version": "1.0.1-dev.25282179606.0",
3
+ "version": "1.0.1-dev.25625838720.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
@@ -18,7 +18,7 @@ A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date
18
18
  """
19
19
  scalar DateTime
20
20
 
21
- type UserSetting {
21
+ type UserSettingModel {
22
22
  id: ID!
23
23
  createdAt: DateTime
24
24
  updatedAt: DateTime
@@ -112,7 +112,7 @@ enum Privacy {
112
112
  PUBLIC
113
113
  }
114
114
 
115
- type ExternalLink {
115
+ type ExternalLinkModel {
116
116
  id: ID!
117
117
  createdAt: DateTime
118
118
  updatedAt: DateTime
@@ -131,7 +131,7 @@ type GroupModel {
131
131
  description: String
132
132
  privacy: Privacy
133
133
  rank: GroupRank
134
- externalLinks: [ExternalLink]
134
+ externalLinks: [ExternalLinkModel]
135
135
  membersCount: Int
136
136
  followersCount: Int
137
137
  joinRequestsCount: Int
@@ -144,7 +144,7 @@ enum GroupRank {
144
144
  MEDAL
145
145
  }
146
146
 
147
- type Post {
147
+ type PostModel {
148
148
  id: ID!
149
149
  createdAt: DateTime
150
150
  updatedAt: DateTime
@@ -152,9 +152,9 @@ type Post {
152
152
  title: String
153
153
  content: String
154
154
  medias: [Media]
155
- author: User
155
+ author: UserModel
156
156
  group: GroupModel
157
- comments: [Comment!]
157
+ comments: [CommentModel!]
158
158
  tags: [String]
159
159
  commentsCount: Int
160
160
  topComments: [String]
@@ -166,7 +166,7 @@ type Post {
166
166
  isReported: Boolean
167
167
  }
168
168
 
169
- type User {
169
+ type UserModel {
170
170
  id: ID!
171
171
  createdAt: DateTime
172
172
  updatedAt: DateTime
@@ -175,17 +175,17 @@ type User {
175
175
  displayName: String
176
176
  bio: String
177
177
  rank: UserRank
178
- setting: UserSetting
179
- externalLinks: [ExternalLink]
178
+ setting: UserSettingModel
179
+ externalLinks: [ExternalLinkModel]
180
180
  followingsCount: Int
181
181
  followersCount: Int
182
182
  receivedFollowRequestsCount: Int
183
183
  groupsCount: Int
184
184
  followingGroupsCount: Int
185
- posts: [Post]
186
- likes: [Post]
187
- bookmarks: [Post]
188
- sentRewards: [Post]
185
+ posts: [PostModel]
186
+ likes: [PostModel]
187
+ bookmarks: [PostModel]
188
+ sentRewards: [PostModel]
189
189
  availableRewards: Int
190
190
  }
191
191
 
@@ -198,7 +198,7 @@ enum UserRank {
198
198
  PAWN
199
199
  }
200
200
 
201
- type Comment {
201
+ type CommentModel {
202
202
  id: ID!
203
203
  createdAt: DateTime
204
204
  updatedAt: DateTime
@@ -208,9 +208,9 @@ type Comment {
208
208
  authorType: AuthorType
209
209
  score: Float
210
210
  medias: [Media]
211
- author: User
212
- quotingComments: [Comment]
213
- children: [Comment]
211
+ author: UserModel
212
+ quotingComments: [CommentModel]
213
+ children: [CommentModel]
214
214
  childrenCount: Int
215
215
  likesCount: Int
216
216
  isLiked: Boolean
@@ -246,10 +246,10 @@ type Notification {
246
246
  success: Boolean!
247
247
  template: NotificationTemplate
248
248
  readAt: DateTime
249
- user: User
250
- sender: User
249
+ user: UserModel
250
+ sender: UserModel
251
251
  group: GroupModel
252
- post: Post
252
+ post: PostModel
253
253
  }
254
254
 
255
255
  enum NotificationTemplate {
@@ -278,8 +278,8 @@ type Query {
278
278
  followers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
279
279
  followings(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
280
280
  followRequests(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [UserItemModel]
281
- user(name: String!): User
282
- searchUsers(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, term: String!): [User!]
281
+ user(name: String!): UserModel
282
+ searchUsers(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, term: String!): [UserModel!]
283
283
  group(name: String!): GroupModel
284
284
  searchGroups(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, term: String!): [GroupModel!]!
285
285
  myGroups: [GroupModel]
@@ -287,33 +287,33 @@ type Query {
287
287
  groupMembers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [GroupMemberModel]
288
288
  groupFollowers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
289
289
  joinRequests(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
290
- post(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!): Post
291
- suggestPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, term: String!): [Post]
292
- searchPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, term: String!): [Post]
293
- recommendPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [Post]
294
- postsHome(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [Post]
295
- aiPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [Post]
296
- userPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, authorId: ID!): [Post]
297
- groupPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, groupId: ID!): [Post]
298
- likedPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [Post]
299
- bookmarkedPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [Post]
300
- rewardedPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [Post]
301
- postPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Post
290
+ post(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!): PostModel
291
+ suggestPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, term: String!): [PostModel]
292
+ searchPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, term: String!): [PostModel]
293
+ recommendPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [PostModel]
294
+ postsHome(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [PostModel]
295
+ aiPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [PostModel]
296
+ userPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, authorId: ID!): [PostModel]
297
+ groupPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, groupId: ID!): [PostModel]
298
+ likedPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [PostModel]
299
+ bookmarkedPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [PostModel]
300
+ rewardedPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [PostModel]
301
+ postPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): PostModel
302
302
  notifications: [Notification]
303
- rootAiComment(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Comment!
304
- comment(postId: ID!, id: ID!): Comment!
305
- comments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!, excludeIds: [String]): [Comment!]!
306
- userComments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, authorId: ID!): [Comment]
307
- likedComments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [Comment]
308
- bookmarkedComments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [Comment]
309
- rewardedComments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [Comment]
310
- replies(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!, parentId: String!): [Comment!]!
311
- rootAiCommentPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Comment!
303
+ rootAiComment(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): CommentModel!
304
+ comment(postId: ID!, id: ID!): CommentModel!
305
+ comments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!, excludeIds: [String]): [CommentModel!]!
306
+ userComments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, authorId: ID!): [CommentModel]
307
+ likedComments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [CommentModel]
308
+ bookmarkedComments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [CommentModel]
309
+ rewardedComments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [CommentModel]
310
+ replies(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!, parentId: String!): [CommentModel!]!
311
+ rootAiCommentPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): CommentModel!
312
312
  }
313
313
 
314
314
  type Mutation {
315
- createUser(data: CreateUser!): User!
316
- updateUser(data: UpdateUser!): User!
315
+ createUser(data: CreateUser!): UserModel!
316
+ updateUser(data: UpdateUser!): UserModel!
317
317
  updatePrivacy(privacy: Privacy!): Boolean!
318
318
  updateUserSetting(data: UpdateUserSetting!): Boolean!
319
319
  deleteUser: Boolean
@@ -333,14 +333,14 @@ type Mutation {
333
333
  createJoinRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
334
334
  deleteJoinRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
335
335
  acceptJoinRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
336
- createPost(data: CreatePost!): Post!
336
+ createPost(data: CreatePost!): PostModel!
337
337
  deletePost(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!): Boolean!
338
338
  updateNotificationsByIds(data: IdsModel!): Boolean
339
339
  updateGroupNotification(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
340
340
  updatePostNotification(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
341
341
  updateCommentNotification(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
342
- createComment(data: CreateComment!): Comment!
343
- createReply(data: CreateComment!): Comment!
342
+ createComment(data: CreateComment!): CommentModel!
343
+ createReply(data: CreateComment!): CommentModel!
344
344
  deleteComment(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
345
345
  likePost(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!): Boolean
346
346
  unlikePost(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!): Boolean