@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.
- package/package.json +1 -1
- package/schema.gql +48 -48
package/package.json
CHANGED
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
|
|
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
|
|
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: [
|
|
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
|
|
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:
|
|
155
|
+
author: UserModel
|
|
156
156
|
group: GroupModel
|
|
157
|
-
comments: [
|
|
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
|
|
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:
|
|
179
|
-
externalLinks: [
|
|
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: [
|
|
186
|
-
likes: [
|
|
187
|
-
bookmarks: [
|
|
188
|
-
sentRewards: [
|
|
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
|
|
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:
|
|
212
|
-
quotingComments: [
|
|
213
|
-
children: [
|
|
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:
|
|
250
|
-
sender:
|
|
249
|
+
user: UserModel
|
|
250
|
+
sender: UserModel
|
|
251
251
|
group: GroupModel
|
|
252
|
-
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!):
|
|
282
|
-
searchUsers(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, term: String!): [
|
|
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!):
|
|
291
|
-
suggestPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, term: String!): [
|
|
292
|
-
searchPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, term: String!): [
|
|
293
|
-
recommendPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [
|
|
294
|
-
postsHome(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [
|
|
295
|
-
aiPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [
|
|
296
|
-
userPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, authorId: ID!): [
|
|
297
|
-
groupPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, groupId: ID!): [
|
|
298
|
-
likedPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [
|
|
299
|
-
bookmarkedPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [
|
|
300
|
-
rewardedPosts(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [
|
|
301
|
-
postPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int):
|
|
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):
|
|
304
|
-
comment(postId: ID!, id: ID!):
|
|
305
|
-
comments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!, excludeIds: [String]): [
|
|
306
|
-
userComments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, authorId: ID!): [
|
|
307
|
-
likedComments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [
|
|
308
|
-
bookmarkedComments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [
|
|
309
|
-
rewardedComments(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [
|
|
310
|
-
replies(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, postId: ID!, parentId: String!): [
|
|
311
|
-
rootAiCommentPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int):
|
|
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!):
|
|
316
|
-
updateUser(data: UpdateUser!):
|
|
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!):
|
|
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!):
|
|
343
|
-
createReply(data: CreateComment!):
|
|
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
|