@fowgence/api-schema 1.0.1-dev.25646252752.0 → 1.0.1-dev.26217559367.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 +266 -265
package/package.json
CHANGED
package/schema.gql
CHANGED
|
@@ -6,7 +6,7 @@ type Media {
|
|
|
6
6
|
id: ID!
|
|
7
7
|
createdAt: DateTime
|
|
8
8
|
updatedAt: DateTime
|
|
9
|
-
success: Boolean
|
|
9
|
+
success: Boolean
|
|
10
10
|
key: String!
|
|
11
11
|
fileName: String
|
|
12
12
|
mimeType: String
|
|
@@ -22,7 +22,7 @@ type UserSettingModel {
|
|
|
22
22
|
id: ID!
|
|
23
23
|
createdAt: DateTime
|
|
24
24
|
updatedAt: DateTime
|
|
25
|
-
success: Boolean
|
|
25
|
+
success: Boolean
|
|
26
26
|
theme: Theme
|
|
27
27
|
notificationLike: Flag
|
|
28
28
|
notificationReward: Flag
|
|
@@ -34,8 +34,9 @@ type UserSettingModel {
|
|
|
34
34
|
notificationGroupNewPost: Flag
|
|
35
35
|
notificationGroupReply: Flag
|
|
36
36
|
systemLanguage: Language
|
|
37
|
-
|
|
37
|
+
postsLanguages: [Language!]
|
|
38
38
|
privacy: Privacy
|
|
39
|
+
country: Country
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
enum Theme {
|
|
@@ -112,267 +113,6 @@ enum Privacy {
|
|
|
112
113
|
PUBLIC
|
|
113
114
|
}
|
|
114
115
|
|
|
115
|
-
type ExternalLinkModel {
|
|
116
|
-
id: ID!
|
|
117
|
-
createdAt: DateTime
|
|
118
|
-
updatedAt: DateTime
|
|
119
|
-
success: Boolean!
|
|
120
|
-
name: String
|
|
121
|
-
url: String
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
type UserModel {
|
|
125
|
-
id: ID!
|
|
126
|
-
createdAt: DateTime
|
|
127
|
-
updatedAt: DateTime
|
|
128
|
-
success: Boolean!
|
|
129
|
-
name: String
|
|
130
|
-
displayName: String
|
|
131
|
-
bio: String
|
|
132
|
-
rank: UserRank
|
|
133
|
-
setting: UserSettingModel
|
|
134
|
-
externalLinks: [ExternalLinkModel]
|
|
135
|
-
followingsCount: Int
|
|
136
|
-
followersCount: Int
|
|
137
|
-
receivedFollowRequestsCount: Int
|
|
138
|
-
groupsCount: Int
|
|
139
|
-
followingGroupsCount: Int
|
|
140
|
-
remainingRewardsCount: Int
|
|
141
|
-
isFollowing: Boolean
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
enum UserRank {
|
|
145
|
-
KING
|
|
146
|
-
QUEEN
|
|
147
|
-
ROOK
|
|
148
|
-
BISHOP
|
|
149
|
-
KNIGHT
|
|
150
|
-
PAWN
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
type CommentModel {
|
|
154
|
-
id: ID!
|
|
155
|
-
createdAt: DateTime
|
|
156
|
-
updatedAt: DateTime
|
|
157
|
-
success: Boolean!
|
|
158
|
-
title: String
|
|
159
|
-
content: String
|
|
160
|
-
authorType: AuthorType
|
|
161
|
-
score: Float
|
|
162
|
-
medias: [Media]
|
|
163
|
-
author: UserModel
|
|
164
|
-
quotingComments: [CommentModel]
|
|
165
|
-
children: [CommentModel]
|
|
166
|
-
childrenCount: Int
|
|
167
|
-
likesCount: Int
|
|
168
|
-
isLiked: Boolean
|
|
169
|
-
isBookmarked: Boolean
|
|
170
|
-
rewardsCount: Int
|
|
171
|
-
isRewarded: Boolean
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
enum AuthorType {
|
|
175
|
-
AI
|
|
176
|
-
USER
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
type GroupModel {
|
|
180
|
-
id: ID!
|
|
181
|
-
createdAt: DateTime
|
|
182
|
-
updatedAt: DateTime
|
|
183
|
-
success: Boolean!
|
|
184
|
-
name: String
|
|
185
|
-
displayName: String
|
|
186
|
-
bio: String
|
|
187
|
-
privacy: Privacy
|
|
188
|
-
rank: GroupRank
|
|
189
|
-
externalLinks: [ExternalLinkModel]
|
|
190
|
-
membersCount: Int
|
|
191
|
-
followersCount: Int
|
|
192
|
-
joinRequestsCount: Int
|
|
193
|
-
postsCount: Int
|
|
194
|
-
isHost: Boolean
|
|
195
|
-
isMember: Boolean
|
|
196
|
-
isFollowing: Boolean
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
enum GroupRank {
|
|
200
|
-
TROPHY
|
|
201
|
-
AWARD
|
|
202
|
-
MEDAL
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
type GroupMemberModel {
|
|
206
|
-
id: ID!
|
|
207
|
-
createdAt: DateTime
|
|
208
|
-
updatedAt: DateTime
|
|
209
|
-
success: Boolean!
|
|
210
|
-
userId: String!
|
|
211
|
-
userName: String!
|
|
212
|
-
role: MemberRole!
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
enum MemberRole {
|
|
216
|
-
HOST
|
|
217
|
-
MEMBER
|
|
218
|
-
}
|
|
219
|
-
|
|
220
|
-
type PostModel {
|
|
221
|
-
id: ID!
|
|
222
|
-
createdAt: DateTime
|
|
223
|
-
updatedAt: DateTime
|
|
224
|
-
success: Boolean!
|
|
225
|
-
title: String
|
|
226
|
-
content: String
|
|
227
|
-
medias: [Media]
|
|
228
|
-
author: UserModel
|
|
229
|
-
group: GroupModel
|
|
230
|
-
comments: [CommentModel!]
|
|
231
|
-
tags: [String]
|
|
232
|
-
commentsCount: Int
|
|
233
|
-
topComments: [String]
|
|
234
|
-
likesCount: Int
|
|
235
|
-
isLiked: Boolean
|
|
236
|
-
isBookmarked: Boolean
|
|
237
|
-
rewardsCount: Int
|
|
238
|
-
isRewarded: Boolean
|
|
239
|
-
isReported: Boolean
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
type Notification {
|
|
243
|
-
id: ID!
|
|
244
|
-
createdAt: DateTime
|
|
245
|
-
updatedAt: DateTime
|
|
246
|
-
success: Boolean!
|
|
247
|
-
template: NotificationTemplate
|
|
248
|
-
readAt: DateTime
|
|
249
|
-
user: UserModel
|
|
250
|
-
sender: UserModel
|
|
251
|
-
group: GroupModel
|
|
252
|
-
post: PostModel
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
enum NotificationTemplate {
|
|
256
|
-
LIKE
|
|
257
|
-
REPLY
|
|
258
|
-
REWARD
|
|
259
|
-
FOLLOW
|
|
260
|
-
FOLLOW_REQ
|
|
261
|
-
GROUP_FOLLOW
|
|
262
|
-
GROUP_JOIN
|
|
263
|
-
GROUP_JOIN_REQ
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
type UserItemModel {
|
|
267
|
-
id: ID!
|
|
268
|
-
createdAt: DateTime
|
|
269
|
-
updatedAt: DateTime
|
|
270
|
-
success: Boolean!
|
|
271
|
-
userId: String!
|
|
272
|
-
name: String!
|
|
273
|
-
displayName: String!
|
|
274
|
-
isFollowing: Boolean
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
type Query {
|
|
278
|
-
user(name: String!): UserModel
|
|
279
|
-
followers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
|
|
280
|
-
followings(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
|
|
281
|
-
followRequests(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [UserItemModel]
|
|
282
|
-
searchUsers(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, term: String!): [UserModel!]
|
|
283
|
-
group(name: String!): GroupModel
|
|
284
|
-
searchGroups(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, term: String!): [GroupModel!]!
|
|
285
|
-
myGroups: [GroupModel]
|
|
286
|
-
groups(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [GroupModel]
|
|
287
|
-
groupMembers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [GroupMemberModel]
|
|
288
|
-
groupFollowers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
|
|
289
|
-
joinRequests(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
|
|
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
|
-
notifications: [Notification]
|
|
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
|
-
}
|
|
313
|
-
|
|
314
|
-
type Mutation {
|
|
315
|
-
createUser(data: CreateUser!): UserModel!
|
|
316
|
-
updateUser(data: UpdateUser!): UserModel!
|
|
317
|
-
updatePrivacy(privacy: Privacy!): Boolean!
|
|
318
|
-
updateUserSetting(data: UpdateUserSetting!): Boolean!
|
|
319
|
-
deleteUser: Boolean
|
|
320
|
-
followUser(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
321
|
-
unfollowUser(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
322
|
-
blockUser(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
323
|
-
createFollowRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
324
|
-
deleteFollowRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
325
|
-
acceptFollowRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
326
|
-
declineFollowRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
327
|
-
createGroup(data: CreateGroup!): GroupModel!
|
|
328
|
-
updateGroup(data: UpdateGroup!): GroupModel!
|
|
329
|
-
deleteGroup(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
330
|
-
followGroup(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
331
|
-
unfollowGroup(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
332
|
-
leaveGroup(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
333
|
-
createJoinRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
334
|
-
deleteJoinRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
335
|
-
acceptJoinRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
336
|
-
createPost(data: CreatePost!): PostModel!
|
|
337
|
-
deletePost(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!): Boolean!
|
|
338
|
-
updateNotificationsByIds(data: IdsModel!): Boolean
|
|
339
|
-
updateGroupNotification(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
340
|
-
updatePostNotification(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
341
|
-
updateCommentNotification(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
342
|
-
createComment(data: CreateComment!): CommentModel!
|
|
343
|
-
createReply(data: CreateComment!): CommentModel!
|
|
344
|
-
deleteComment(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
345
|
-
likePost(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!): Boolean
|
|
346
|
-
unlikePost(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!): Boolean
|
|
347
|
-
likeComment(commentId: ID!): Boolean
|
|
348
|
-
unlikeComment(commentId: ID!): Boolean
|
|
349
|
-
bookmarkPost(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!): Boolean
|
|
350
|
-
unbookmarkPost(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!): Boolean
|
|
351
|
-
bookmarkComment(commentId: ID!): Boolean
|
|
352
|
-
unbookmarkComment(commentId: ID!): Boolean
|
|
353
|
-
rewardPost(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!): Boolean
|
|
354
|
-
unrewardPost(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!): Boolean
|
|
355
|
-
rewardComment(commentId: ID!): Boolean
|
|
356
|
-
unrewardComment(commentId: ID!): Boolean
|
|
357
|
-
reportPost(postId: ID!, reason: ReportReason!): Boolean
|
|
358
|
-
reportComment(commentId: ID!, reason: ReportReason!): Boolean
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
input CreateUser {
|
|
362
|
-
displayName: String!
|
|
363
|
-
bio: String
|
|
364
|
-
setting: CreateUserSetting!
|
|
365
|
-
externalLinks: [UpsertExternalLink]
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
input CreateUserSetting {
|
|
369
|
-
theme: Theme!
|
|
370
|
-
systemLanguage: Language!
|
|
371
|
-
postsLanguages: [Language!]!
|
|
372
|
-
privacy: Privacy! = PUBLIC
|
|
373
|
-
country: Country!
|
|
374
|
-
}
|
|
375
|
-
|
|
376
116
|
enum Country {
|
|
377
117
|
ANDORRA
|
|
378
118
|
UNITED_ARAB_EMIRATES
|
|
@@ -625,6 +365,267 @@ enum Country {
|
|
|
625
365
|
ZIMBABWE
|
|
626
366
|
}
|
|
627
367
|
|
|
368
|
+
type ExternalLinkModel {
|
|
369
|
+
id: ID!
|
|
370
|
+
createdAt: DateTime
|
|
371
|
+
updatedAt: DateTime
|
|
372
|
+
success: Boolean
|
|
373
|
+
name: String
|
|
374
|
+
url: String
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
type UserModel {
|
|
378
|
+
id: ID!
|
|
379
|
+
createdAt: DateTime
|
|
380
|
+
updatedAt: DateTime
|
|
381
|
+
success: Boolean
|
|
382
|
+
name: String
|
|
383
|
+
displayName: String
|
|
384
|
+
bio: String
|
|
385
|
+
rank: UserRank
|
|
386
|
+
setting: UserSettingModel
|
|
387
|
+
externalLinks: [ExternalLinkModel]
|
|
388
|
+
followingsCount: Int
|
|
389
|
+
followersCount: Int
|
|
390
|
+
receivedFollowRequestsCount: Int
|
|
391
|
+
groupsCount: Int
|
|
392
|
+
followingGroupsCount: Int
|
|
393
|
+
remainingRewardsCount: Int
|
|
394
|
+
isFollowing: Boolean
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
enum UserRank {
|
|
398
|
+
KING
|
|
399
|
+
QUEEN
|
|
400
|
+
ROOK
|
|
401
|
+
BISHOP
|
|
402
|
+
KNIGHT
|
|
403
|
+
PAWN
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
type CommentModel {
|
|
407
|
+
id: ID!
|
|
408
|
+
createdAt: DateTime
|
|
409
|
+
updatedAt: DateTime
|
|
410
|
+
success: Boolean
|
|
411
|
+
title: String
|
|
412
|
+
content: String
|
|
413
|
+
authorType: AuthorType
|
|
414
|
+
score: Float
|
|
415
|
+
medias: [Media]
|
|
416
|
+
author: UserModel
|
|
417
|
+
quotingComments: [CommentModel]
|
|
418
|
+
children: [CommentModel]
|
|
419
|
+
childrenCount: Int
|
|
420
|
+
likesCount: Int
|
|
421
|
+
isLiked: Boolean
|
|
422
|
+
isBookmarked: Boolean
|
|
423
|
+
rewardsCount: Int
|
|
424
|
+
isRewarded: Boolean
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
enum AuthorType {
|
|
428
|
+
AI
|
|
429
|
+
USER
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
type GroupModel {
|
|
433
|
+
id: ID!
|
|
434
|
+
createdAt: DateTime
|
|
435
|
+
updatedAt: DateTime
|
|
436
|
+
success: Boolean
|
|
437
|
+
name: String
|
|
438
|
+
displayName: String
|
|
439
|
+
bio: String
|
|
440
|
+
privacy: Privacy
|
|
441
|
+
rank: GroupRank
|
|
442
|
+
externalLinks: [ExternalLinkModel]
|
|
443
|
+
membersCount: Int
|
|
444
|
+
followersCount: Int
|
|
445
|
+
joinRequestsCount: Int
|
|
446
|
+
postsCount: Int
|
|
447
|
+
isHost: Boolean
|
|
448
|
+
isMember: Boolean
|
|
449
|
+
isFollowing: Boolean
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
enum GroupRank {
|
|
453
|
+
TROPHY
|
|
454
|
+
AWARD
|
|
455
|
+
MEDAL
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
type GroupMemberModel {
|
|
459
|
+
id: ID!
|
|
460
|
+
createdAt: DateTime
|
|
461
|
+
updatedAt: DateTime
|
|
462
|
+
success: Boolean
|
|
463
|
+
userId: String!
|
|
464
|
+
userName: String!
|
|
465
|
+
role: MemberRole!
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
enum MemberRole {
|
|
469
|
+
HOST
|
|
470
|
+
MEMBER
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
type PostModel {
|
|
474
|
+
id: ID!
|
|
475
|
+
createdAt: DateTime
|
|
476
|
+
updatedAt: DateTime
|
|
477
|
+
success: Boolean
|
|
478
|
+
title: String
|
|
479
|
+
content: String
|
|
480
|
+
medias: [Media]
|
|
481
|
+
author: UserModel
|
|
482
|
+
group: GroupModel
|
|
483
|
+
comments: [CommentModel!]
|
|
484
|
+
tags: [String]
|
|
485
|
+
commentsCount: Int
|
|
486
|
+
topComments: [String]
|
|
487
|
+
likesCount: Int
|
|
488
|
+
isLiked: Boolean
|
|
489
|
+
isBookmarked: Boolean
|
|
490
|
+
rewardsCount: Int
|
|
491
|
+
isRewarded: Boolean
|
|
492
|
+
isReported: Boolean
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
type Notification {
|
|
496
|
+
id: ID!
|
|
497
|
+
createdAt: DateTime
|
|
498
|
+
updatedAt: DateTime
|
|
499
|
+
success: Boolean
|
|
500
|
+
template: NotificationTemplate
|
|
501
|
+
readAt: DateTime
|
|
502
|
+
user: UserModel
|
|
503
|
+
sender: UserModel
|
|
504
|
+
group: GroupModel
|
|
505
|
+
post: PostModel
|
|
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
|
+
|
|
519
|
+
type UserItemModel {
|
|
520
|
+
id: ID!
|
|
521
|
+
createdAt: DateTime
|
|
522
|
+
updatedAt: DateTime
|
|
523
|
+
success: Boolean
|
|
524
|
+
userId: String!
|
|
525
|
+
name: String!
|
|
526
|
+
displayName: String!
|
|
527
|
+
isFollowing: Boolean
|
|
528
|
+
}
|
|
529
|
+
|
|
530
|
+
type Query {
|
|
531
|
+
user(name: String!): UserModel
|
|
532
|
+
followers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
|
|
533
|
+
followings(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
|
|
534
|
+
followRequests(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [UserItemModel]
|
|
535
|
+
searchUsers(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, term: String!): [UserModel!]
|
|
536
|
+
group(name: String!): GroupModel
|
|
537
|
+
searchGroups(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, term: String!): [GroupModel!]!
|
|
538
|
+
myGroups: [GroupModel]
|
|
539
|
+
groups(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [GroupModel]
|
|
540
|
+
groupMembers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [GroupMemberModel]
|
|
541
|
+
groupFollowers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
|
|
542
|
+
joinRequests(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
|
|
543
|
+
post(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!): PostModel
|
|
544
|
+
suggestPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, term: String!): [PostModel]
|
|
545
|
+
searchPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, term: String!): [PostModel]
|
|
546
|
+
recommendPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [PostModel]
|
|
547
|
+
postsHome(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [PostModel]
|
|
548
|
+
aiPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [PostModel]
|
|
549
|
+
userPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, authorId: ID!): [PostModel]
|
|
550
|
+
groupPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, groupId: ID!): [PostModel]
|
|
551
|
+
likedPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [PostModel]
|
|
552
|
+
bookmarkedPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [PostModel]
|
|
553
|
+
rewardedPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [PostModel]
|
|
554
|
+
postPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): PostModel
|
|
555
|
+
notifications: [Notification]
|
|
556
|
+
rootAiComment(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): CommentModel!
|
|
557
|
+
comment(postId: ID!, id: ID!): CommentModel!
|
|
558
|
+
comments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!, excludeIds: [String]): [CommentModel!]!
|
|
559
|
+
userComments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, authorId: ID!): [CommentModel]
|
|
560
|
+
likedComments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [CommentModel]
|
|
561
|
+
bookmarkedComments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [CommentModel]
|
|
562
|
+
rewardedComments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [CommentModel]
|
|
563
|
+
replies(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!, parentId: String!): [CommentModel!]!
|
|
564
|
+
rootAiCommentPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): CommentModel!
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
type Mutation {
|
|
568
|
+
createUser(data: CreateUser!): UserModel!
|
|
569
|
+
updateUser(data: UpdateUser!): UserModel!
|
|
570
|
+
updatePrivacy(privacy: Privacy!): Boolean!
|
|
571
|
+
updateUserSetting(data: UpdateUserSetting!): Boolean!
|
|
572
|
+
deleteUser: Boolean
|
|
573
|
+
followUser(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
574
|
+
unfollowUser(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
575
|
+
blockUser(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
576
|
+
createFollowRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
577
|
+
deleteFollowRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
578
|
+
acceptFollowRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
579
|
+
declineFollowRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
580
|
+
createGroup(data: CreateGroup!): GroupModel!
|
|
581
|
+
updateGroup(data: UpdateGroup!): GroupModel!
|
|
582
|
+
deleteGroup(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
583
|
+
followGroup(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
584
|
+
unfollowGroup(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
585
|
+
leaveGroup(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
586
|
+
createJoinRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
587
|
+
deleteJoinRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
588
|
+
acceptJoinRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
589
|
+
createPost(data: CreatePost!): PostModel!
|
|
590
|
+
deletePost(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!): Boolean!
|
|
591
|
+
updateNotificationsByIds(data: IdsModel!): Boolean
|
|
592
|
+
updateGroupNotification(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
593
|
+
updatePostNotification(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
594
|
+
updateCommentNotification(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
595
|
+
createComment(data: CreateComment!): CommentModel!
|
|
596
|
+
createReply(data: CreateComment!): CommentModel!
|
|
597
|
+
deleteComment(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
598
|
+
likePost(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!): Boolean
|
|
599
|
+
unlikePost(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!): Boolean
|
|
600
|
+
likeComment(commentId: ID!): Boolean
|
|
601
|
+
unlikeComment(commentId: ID!): Boolean
|
|
602
|
+
bookmarkPost(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!): Boolean
|
|
603
|
+
unbookmarkPost(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!): Boolean
|
|
604
|
+
bookmarkComment(commentId: ID!): Boolean
|
|
605
|
+
unbookmarkComment(commentId: ID!): Boolean
|
|
606
|
+
rewardPost(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!): Boolean
|
|
607
|
+
unrewardPost(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!): Boolean
|
|
608
|
+
rewardComment(commentId: ID!): Boolean
|
|
609
|
+
unrewardComment(commentId: ID!): Boolean
|
|
610
|
+
reportPost(postId: ID!, reason: ReportReason!): Boolean
|
|
611
|
+
reportComment(commentId: ID!, reason: ReportReason!): Boolean
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
input CreateUser {
|
|
615
|
+
displayName: String!
|
|
616
|
+
bio: String
|
|
617
|
+
setting: CreateUserSetting!
|
|
618
|
+
externalLinks: [UpsertExternalLink]
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
input CreateUserSetting {
|
|
622
|
+
theme: Theme = LIGHT
|
|
623
|
+
systemLanguage: Language!
|
|
624
|
+
postsLanguages: [Language!]!
|
|
625
|
+
privacy: Privacy = PUBLIC
|
|
626
|
+
country: Country!
|
|
627
|
+
}
|
|
628
|
+
|
|
628
629
|
input UpsertExternalLink {
|
|
629
630
|
id: ID
|
|
630
631
|
name: String!
|
|
@@ -639,7 +640,7 @@ input UpdateUser {
|
|
|
639
640
|
}
|
|
640
641
|
|
|
641
642
|
input UpdateUserSetting {
|
|
642
|
-
theme: Theme
|
|
643
|
+
theme: Theme = LIGHT
|
|
643
644
|
systemLanguage: Language
|
|
644
645
|
postsLanguages: [Language!]
|
|
645
646
|
country: Country
|