@fowgence/api-schema 1.0.1-dev.23496316375.0 → 1.0.1-dev.24786495077.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 +63 -93
package/package.json
CHANGED
package/schema.gql
CHANGED
|
@@ -18,16 +18,6 @@ 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 Snippet {
|
|
22
|
-
id: ID!
|
|
23
|
-
createdAt: DateTime
|
|
24
|
-
updatedAt: DateTime
|
|
25
|
-
success: Boolean!
|
|
26
|
-
code: String
|
|
27
|
-
language: String
|
|
28
|
-
fileName: String
|
|
29
|
-
}
|
|
30
|
-
|
|
31
21
|
type UserSetting {
|
|
32
22
|
id: ID!
|
|
33
23
|
createdAt: DateTime
|
|
@@ -162,7 +152,6 @@ type Post {
|
|
|
162
152
|
title: String
|
|
163
153
|
content: String
|
|
164
154
|
medias: [Media]
|
|
165
|
-
snippets: [Snippet]
|
|
166
155
|
author: User
|
|
167
156
|
group: GroupModel
|
|
168
157
|
comments: [Comment!]
|
|
@@ -173,6 +162,7 @@ type Post {
|
|
|
173
162
|
isBookmarked: Boolean
|
|
174
163
|
rewardsCount: Int
|
|
175
164
|
isRewarded: Boolean
|
|
165
|
+
isReported: Boolean
|
|
176
166
|
}
|
|
177
167
|
|
|
178
168
|
type User {
|
|
@@ -217,7 +207,6 @@ type Comment {
|
|
|
217
207
|
authorType: AuthorType
|
|
218
208
|
score: Float
|
|
219
209
|
medias: [Media]
|
|
220
|
-
snippets: [Snippet]
|
|
221
210
|
author: User
|
|
222
211
|
quotingComments: [Comment]
|
|
223
212
|
children: [Comment]
|
|
@@ -234,43 +223,6 @@ enum AuthorType {
|
|
|
234
223
|
USER
|
|
235
224
|
}
|
|
236
225
|
|
|
237
|
-
type FollowRequestModel {
|
|
238
|
-
id: ID!
|
|
239
|
-
createdAt: DateTime
|
|
240
|
-
updatedAt: DateTime
|
|
241
|
-
success: Boolean!
|
|
242
|
-
userId: String!
|
|
243
|
-
userName: String!
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
type FollowerModel {
|
|
247
|
-
id: ID!
|
|
248
|
-
createdAt: DateTime
|
|
249
|
-
updatedAt: DateTime
|
|
250
|
-
success: Boolean!
|
|
251
|
-
userId: String!
|
|
252
|
-
userName: String!
|
|
253
|
-
isFollowing: Boolean!
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
type FollowingModel {
|
|
257
|
-
id: ID!
|
|
258
|
-
createdAt: DateTime
|
|
259
|
-
updatedAt: DateTime
|
|
260
|
-
success: Boolean!
|
|
261
|
-
userId: String!
|
|
262
|
-
userName: String!
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
type GroupFollowerModel {
|
|
266
|
-
id: ID!
|
|
267
|
-
createdAt: DateTime
|
|
268
|
-
updatedAt: DateTime
|
|
269
|
-
success: Boolean!
|
|
270
|
-
userId: String!
|
|
271
|
-
userName: String!
|
|
272
|
-
}
|
|
273
|
-
|
|
274
226
|
type GroupMemberModel {
|
|
275
227
|
id: ID!
|
|
276
228
|
createdAt: DateTime
|
|
@@ -286,15 +238,6 @@ enum MemberRole {
|
|
|
286
238
|
MEMBER
|
|
287
239
|
}
|
|
288
240
|
|
|
289
|
-
type JoinRequestModel {
|
|
290
|
-
id: ID!
|
|
291
|
-
createdAt: DateTime
|
|
292
|
-
updatedAt: DateTime
|
|
293
|
-
success: Boolean!
|
|
294
|
-
userId: String!
|
|
295
|
-
userName: String!
|
|
296
|
-
}
|
|
297
|
-
|
|
298
241
|
type Notification {
|
|
299
242
|
id: ID!
|
|
300
243
|
createdAt: DateTime
|
|
@@ -322,49 +265,61 @@ enum NotificationTemplate {
|
|
|
322
265
|
GROUP_JOIN_REQ
|
|
323
266
|
}
|
|
324
267
|
|
|
268
|
+
type UserItemModel {
|
|
269
|
+
id: ID!
|
|
270
|
+
createdAt: DateTime
|
|
271
|
+
updatedAt: DateTime
|
|
272
|
+
success: Boolean!
|
|
273
|
+
userId: String!
|
|
274
|
+
name: String!
|
|
275
|
+
displayName: String!
|
|
276
|
+
isFollowing: Boolean
|
|
277
|
+
}
|
|
278
|
+
|
|
325
279
|
type Query {
|
|
326
|
-
followers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [
|
|
327
|
-
followings(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [
|
|
328
|
-
followRequests: [
|
|
280
|
+
followers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
|
|
281
|
+
followings(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
|
|
282
|
+
followRequests(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [UserItemModel]
|
|
329
283
|
user(name: String!): User
|
|
330
|
-
searchUsers(
|
|
284
|
+
searchUsers(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, term: String!): [User!]
|
|
331
285
|
group(name: String!): GroupModel
|
|
332
|
-
searchGroups(
|
|
286
|
+
searchGroups(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, term: String!): [GroupModel!]!
|
|
333
287
|
myGroups: [GroupModel]
|
|
334
288
|
groups(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [GroupModel]
|
|
335
289
|
groupMembers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [GroupMemberModel]
|
|
336
|
-
groupFollowers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [
|
|
337
|
-
joinRequests(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [
|
|
338
|
-
post(
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
290
|
+
groupFollowers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
|
|
291
|
+
joinRequests(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
|
|
292
|
+
post(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!): Post
|
|
293
|
+
suggestPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, term: String!): [Post]
|
|
294
|
+
searchPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, term: String!): [Post]
|
|
295
|
+
recommendPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [Post]
|
|
296
|
+
postsHome(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [Post]
|
|
297
|
+
userPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, authorId: ID!): [Post]
|
|
298
|
+
groupPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, groupId: ID!): [Post]
|
|
299
|
+
likedPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [Post]
|
|
300
|
+
bookmarkedPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [Post]
|
|
301
|
+
rewardedPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [Post]
|
|
343
302
|
postPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Post
|
|
344
|
-
postsRecommendationPublic(data: QueryPostsFeedModel!): [Post]
|
|
345
|
-
searchPosts(searchTerm: String!, max: Float): [Post]
|
|
346
303
|
notifications: [Notification]
|
|
347
304
|
rootAiComment(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Comment!
|
|
348
305
|
comment(postId: ID!, id: ID!, parentId: String): Comment!
|
|
349
|
-
comments(
|
|
350
|
-
|
|
306
|
+
comments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!, excludeIds: [String]): [Comment!]!
|
|
307
|
+
userComments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, authorId: ID!): [Comment]
|
|
308
|
+
likedComments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [Comment]
|
|
309
|
+
bookmarkedComments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [Comment]
|
|
310
|
+
rewardedComments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [Comment]
|
|
311
|
+
replies(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!, parentId: String!): [Comment!]!
|
|
351
312
|
rootAiCommentPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Comment!
|
|
352
313
|
}
|
|
353
314
|
|
|
354
|
-
input QueryPostsFeedModel {
|
|
355
|
-
languages: [Language]
|
|
356
|
-
lon: Float!
|
|
357
|
-
lat: Float!
|
|
358
|
-
page: Int
|
|
359
|
-
limit: Int
|
|
360
|
-
}
|
|
361
|
-
|
|
362
315
|
type Mutation {
|
|
363
316
|
createUser(data: CreateUser!): User!
|
|
364
317
|
updateUser(data: UpdateUser!): User!
|
|
318
|
+
updatePrivacy(privacy: Privacy!): Boolean!
|
|
365
319
|
deleteUser: Boolean
|
|
366
320
|
followUser(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
367
321
|
unfollowUser(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
322
|
+
blockUser(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
368
323
|
createFollowRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
369
324
|
deleteFollowRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
370
325
|
acceptFollowRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
@@ -375,17 +330,32 @@ type Mutation {
|
|
|
375
330
|
followGroup(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
376
331
|
unfollowGroup(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
377
332
|
leaveGroup(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
378
|
-
joinGroup(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
379
333
|
createJoinRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
380
334
|
deleteJoinRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
381
335
|
acceptJoinRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
382
336
|
createPost(data: CreatePost!): Post!
|
|
337
|
+
deletePost(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!): Boolean!
|
|
383
338
|
updateNotificationsByIds(data: IdsModel!): Boolean
|
|
384
339
|
updateGroupNotification(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
385
340
|
updatePostNotification(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
386
341
|
updateCommentNotification(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
387
342
|
createComment(data: CreateComment!): Comment!
|
|
388
343
|
createReply(data: CreateComment!): Comment!
|
|
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
|
|
389
359
|
}
|
|
390
360
|
|
|
391
361
|
input CreateUser {
|
|
@@ -419,7 +389,6 @@ input UpdateUserSetting {
|
|
|
419
389
|
theme: Theme
|
|
420
390
|
systemLanguage: Language
|
|
421
391
|
postsLanguages: [Language!]
|
|
422
|
-
privacy: Privacy = PUBLIC
|
|
423
392
|
notificationLike: Flag
|
|
424
393
|
notificationReward: Flag
|
|
425
394
|
notificationReply: Flag
|
|
@@ -444,7 +413,6 @@ input CreateGroup {
|
|
|
444
413
|
input UpdateGroup {
|
|
445
414
|
displayName: String
|
|
446
415
|
description: String
|
|
447
|
-
privacy: Privacy
|
|
448
416
|
externalLinks: [UpsertExternalLink!]
|
|
449
417
|
hostsIds: [String!]
|
|
450
418
|
membersIds: [String!]
|
|
@@ -458,7 +426,6 @@ input CreatePost {
|
|
|
458
426
|
title: String
|
|
459
427
|
content: String!
|
|
460
428
|
medias: [CreateMedia]
|
|
461
|
-
snippets: [CreateSnippet]
|
|
462
429
|
groupId: String
|
|
463
430
|
tags: [String]
|
|
464
431
|
askAi: Flag! = OFF
|
|
@@ -477,12 +444,6 @@ enum MimeType {
|
|
|
477
444
|
HEIF
|
|
478
445
|
}
|
|
479
446
|
|
|
480
|
-
input CreateSnippet {
|
|
481
|
-
code: String!
|
|
482
|
-
language: String
|
|
483
|
-
fileName: String
|
|
484
|
-
}
|
|
485
|
-
|
|
486
447
|
input IdsModel {
|
|
487
448
|
ids: [String!]!
|
|
488
449
|
}
|
|
@@ -490,9 +451,9 @@ input IdsModel {
|
|
|
490
451
|
input CreateComment {
|
|
491
452
|
postId: ID!
|
|
492
453
|
parentId: String
|
|
454
|
+
groupId: String
|
|
493
455
|
privacy: Privacy! = PUBLIC
|
|
494
456
|
content: String!
|
|
495
|
-
snippets: [CreateSnippet]
|
|
496
457
|
quotedCommentId: String
|
|
497
458
|
quoteType: QuoteType
|
|
498
459
|
quotedText: String
|
|
@@ -505,6 +466,15 @@ enum QuoteType {
|
|
|
505
466
|
CORRECT
|
|
506
467
|
}
|
|
507
468
|
|
|
469
|
+
enum ReportReason {
|
|
470
|
+
SPAM
|
|
471
|
+
SENSITIVE_CONTENT
|
|
472
|
+
MISINFORMATION
|
|
473
|
+
HARASSMENT
|
|
474
|
+
HATE_SPEECH
|
|
475
|
+
VIOLENCE
|
|
476
|
+
}
|
|
477
|
+
|
|
508
478
|
type Subscription {
|
|
509
479
|
unreadNotificationsCount: Int!
|
|
510
480
|
unreadNotifications: [Notification!]!
|