@fowgence/api-schema 1.0.1-dev.22102951885.0 → 1.0.1-dev.22581445048.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 +76 -247
package/package.json
CHANGED
package/schema.gql
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
|
|
3
3
|
# ------------------------------------------------------
|
|
4
4
|
|
|
5
|
+
type Media {
|
|
6
|
+
id: ID!
|
|
7
|
+
createdAt: DateTime
|
|
8
|
+
updatedAt: DateTime
|
|
9
|
+
key: String!
|
|
10
|
+
fileName: String
|
|
11
|
+
mimeType: String
|
|
12
|
+
fileSize: Float
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
"""
|
|
16
|
+
A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
|
|
17
|
+
"""
|
|
18
|
+
scalar DateTime
|
|
19
|
+
|
|
20
|
+
type Snippet {
|
|
21
|
+
id: ID!
|
|
22
|
+
createdAt: DateTime
|
|
23
|
+
updatedAt: DateTime
|
|
24
|
+
code: String
|
|
25
|
+
language: String
|
|
26
|
+
fileName: String
|
|
27
|
+
}
|
|
28
|
+
|
|
5
29
|
type UserSetting {
|
|
6
30
|
id: ID!
|
|
7
31
|
createdAt: DateTime
|
|
@@ -21,11 +45,6 @@ type UserSetting {
|
|
|
21
45
|
privacy: Privacy
|
|
22
46
|
}
|
|
23
47
|
|
|
24
|
-
"""
|
|
25
|
-
A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
|
|
26
|
-
"""
|
|
27
|
-
scalar DateTime
|
|
28
|
-
|
|
29
48
|
enum Theme {
|
|
30
49
|
LIGHT
|
|
31
50
|
DARK
|
|
@@ -54,72 +73,6 @@ type ExternalLink {
|
|
|
54
73
|
url: String
|
|
55
74
|
}
|
|
56
75
|
|
|
57
|
-
type Media {
|
|
58
|
-
id: ID!
|
|
59
|
-
createdAt: DateTime
|
|
60
|
-
updatedAt: DateTime
|
|
61
|
-
key: String!
|
|
62
|
-
fileName: String
|
|
63
|
-
mimeType: String
|
|
64
|
-
fileSize: Float
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
type Snippet {
|
|
68
|
-
id: ID!
|
|
69
|
-
createdAt: DateTime
|
|
70
|
-
updatedAt: DateTime
|
|
71
|
-
code: String
|
|
72
|
-
language: String
|
|
73
|
-
fileName: String
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
type GroupModel {
|
|
77
|
-
id: ID!
|
|
78
|
-
createdAt: DateTime
|
|
79
|
-
updatedAt: DateTime
|
|
80
|
-
name: String
|
|
81
|
-
displayName: String
|
|
82
|
-
description: String
|
|
83
|
-
privacy: Privacy
|
|
84
|
-
rank: GroupRank
|
|
85
|
-
externalLinks: [ExternalLink]
|
|
86
|
-
membersCount: Int
|
|
87
|
-
followersCount: Int
|
|
88
|
-
joinRequestsCount: Int
|
|
89
|
-
postsCount: Int
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
enum GroupRank {
|
|
93
|
-
TROPHY
|
|
94
|
-
AWARD
|
|
95
|
-
MEDAL
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
type Tag {
|
|
99
|
-
id: ID!
|
|
100
|
-
createdAt: DateTime
|
|
101
|
-
updatedAt: DateTime
|
|
102
|
-
name: String!
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
type Post {
|
|
106
|
-
id: ID!
|
|
107
|
-
createdAt: DateTime
|
|
108
|
-
updatedAt: DateTime
|
|
109
|
-
title: String
|
|
110
|
-
content: String
|
|
111
|
-
medias: [Media]
|
|
112
|
-
snippets: [Snippet]
|
|
113
|
-
author: User
|
|
114
|
-
group: GroupModel
|
|
115
|
-
tags: [Tag]
|
|
116
|
-
likesCount: Int
|
|
117
|
-
isLiked: Boolean
|
|
118
|
-
isBookmarked: Boolean
|
|
119
|
-
rewardsCount: Int
|
|
120
|
-
isRewarded: Boolean
|
|
121
|
-
}
|
|
122
|
-
|
|
123
76
|
type Comment {
|
|
124
77
|
id: ID!
|
|
125
78
|
createdAt: DateTime
|
|
@@ -171,207 +124,83 @@ enum UserRank {
|
|
|
171
124
|
PAWN
|
|
172
125
|
}
|
|
173
126
|
|
|
174
|
-
type
|
|
175
|
-
id: ID!
|
|
176
|
-
createdAt: DateTime
|
|
177
|
-
updatedAt: DateTime
|
|
178
|
-
userId: String!
|
|
179
|
-
userName: String!
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
type FollowingModel {
|
|
127
|
+
type GroupModel {
|
|
183
128
|
id: ID!
|
|
184
129
|
createdAt: DateTime
|
|
185
130
|
updatedAt: DateTime
|
|
186
|
-
|
|
187
|
-
|
|
131
|
+
name: String
|
|
132
|
+
displayName: String
|
|
133
|
+
description: String
|
|
134
|
+
privacy: Privacy
|
|
135
|
+
rank: GroupRank
|
|
136
|
+
externalLinks: [ExternalLink]
|
|
137
|
+
membersCount: Int
|
|
138
|
+
followersCount: Int
|
|
139
|
+
joinRequestsCount: Int
|
|
140
|
+
postsCount: Int
|
|
188
141
|
}
|
|
189
142
|
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
userId: String!
|
|
195
|
-
userName: String!
|
|
196
|
-
isFollowing: Boolean!
|
|
143
|
+
enum GroupRank {
|
|
144
|
+
TROPHY
|
|
145
|
+
AWARD
|
|
146
|
+
MEDAL
|
|
197
147
|
}
|
|
198
148
|
|
|
199
|
-
type
|
|
149
|
+
type Post {
|
|
200
150
|
id: ID!
|
|
201
151
|
createdAt: DateTime
|
|
202
152
|
updatedAt: DateTime
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
153
|
+
title: String
|
|
154
|
+
content: String
|
|
155
|
+
medias: [Media]
|
|
156
|
+
snippets: [Snippet]
|
|
157
|
+
author: User
|
|
207
158
|
group: GroupModel
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
REPLY
|
|
215
|
-
REWARD
|
|
216
|
-
MENTION
|
|
217
|
-
FOLLOW
|
|
218
|
-
FOLLOW_REQ
|
|
219
|
-
GROUP_LIKE
|
|
220
|
-
GROUP_REPLY
|
|
221
|
-
GROUP_REWARD
|
|
222
|
-
GROUP_NEW_POST
|
|
223
|
-
GROUP_MENTION
|
|
224
|
-
GROUP_FOLLOW
|
|
225
|
-
GROUP_JOIN
|
|
226
|
-
GROUP_JOIN_REQ
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
type GroupFollowerModel {
|
|
230
|
-
id: ID!
|
|
231
|
-
createdAt: DateTime
|
|
232
|
-
updatedAt: DateTime
|
|
233
|
-
userId: String!
|
|
234
|
-
userName: String!
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
type GroupMemberModel {
|
|
238
|
-
id: ID!
|
|
239
|
-
createdAt: DateTime
|
|
240
|
-
updatedAt: DateTime
|
|
241
|
-
userId: String!
|
|
242
|
-
userName: String!
|
|
243
|
-
role: MemberRole!
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
enum MemberRole {
|
|
247
|
-
HOST
|
|
248
|
-
MEMBER
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
type JoinRequestModel {
|
|
252
|
-
id: ID!
|
|
253
|
-
createdAt: DateTime
|
|
254
|
-
updatedAt: DateTime
|
|
255
|
-
userId: String!
|
|
256
|
-
userName: String!
|
|
159
|
+
tags: [String]
|
|
160
|
+
likesCount: Int
|
|
161
|
+
isLiked: Boolean
|
|
162
|
+
isBookmarked: Boolean
|
|
163
|
+
rewardsCount: Int
|
|
164
|
+
isRewarded: Boolean
|
|
257
165
|
}
|
|
258
166
|
|
|
259
167
|
type Query {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
user(name: String!): User
|
|
264
|
-
searchUsers(searchTerm: String!, max: Float): [User!]
|
|
265
|
-
notifications: [Notification]
|
|
266
|
-
group(name: String!): GroupModel
|
|
267
|
-
searchGroups(searchTerm: String!, max: Float): [GroupModel]
|
|
268
|
-
myGroups: [GroupModel]
|
|
269
|
-
groups(id: ID!, limit: Float, lastId: String): [GroupModel]
|
|
270
|
-
groupMembers(id: ID!, limit: Float, lastId: String): [GroupMemberModel]
|
|
271
|
-
groupFollowers(id: ID!, limit: Float, lastId: String): [GroupFollowerModel]
|
|
272
|
-
joinRequests(id: ID!, limit: Float, lastId: String): [JoinRequestModel]
|
|
273
|
-
post(id: ID!, limit: Float, lastId: String): Post
|
|
274
|
-
posts: [Post]
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
type Mutation {
|
|
278
|
-
createUser(data: CreateUser!): User!
|
|
279
|
-
updateUser(data: UpdateUser!): User!
|
|
280
|
-
deleteUser: Boolean
|
|
281
|
-
followUser(id: ID!, limit: Float, lastId: String): Boolean
|
|
282
|
-
unfollowUser(id: ID!, limit: Float, lastId: String): Boolean
|
|
283
|
-
createFollowRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
284
|
-
deleteFollowRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
285
|
-
acceptFollowRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
286
|
-
declineFollowRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
287
|
-
updateNotificationsByIds(data: IdsModel!): Boolean
|
|
288
|
-
updateNotification(data: UpdateNotification!): Boolean
|
|
289
|
-
createGroup(data: CreateGroup!): GroupModel!
|
|
290
|
-
updateGroup(data: UpdateGroup!): GroupModel!
|
|
291
|
-
deleteGroup(id: ID!, limit: Float, lastId: String): Boolean
|
|
292
|
-
followGroup(id: ID!, limit: Float, lastId: String): Boolean
|
|
293
|
-
unfollowGroup(id: ID!, limit: Float, lastId: String): Boolean
|
|
294
|
-
leaveGroup(id: ID!, limit: Float, lastId: String): Boolean
|
|
295
|
-
joinGroup(id: ID!, limit: Float, lastId: String): Boolean
|
|
296
|
-
createJoinRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
297
|
-
deleteJoinRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
298
|
-
acceptJoinRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
168
|
+
postsRecommendation(data: PostsFeedQueryModel!): [Post]
|
|
169
|
+
postsRecommendationPublic(data: PostsFeedQueryModel!): [Post]
|
|
170
|
+
searchPosts(searchTerm: String!, max: Float): [Post]
|
|
299
171
|
}
|
|
300
172
|
|
|
301
|
-
input
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
input CreateUserSetting {
|
|
309
|
-
theme: Theme!
|
|
310
|
-
systemLanguage: Language!
|
|
311
|
-
postsLanguages: [Language!]!
|
|
312
|
-
privacy: Privacy!
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
input UpsertExternalLink {
|
|
316
|
-
id: ID
|
|
317
|
-
name: String!
|
|
318
|
-
url: String!
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
input UpdateUser {
|
|
322
|
-
displayName: String
|
|
323
|
-
bio: String
|
|
324
|
-
externalLinks: [UpsertExternalLink!]
|
|
325
|
-
setting: UpdateUserSetting
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
input UpdateUserSetting {
|
|
329
|
-
theme: Theme
|
|
330
|
-
systemLanguage: Language
|
|
331
|
-
postsLanguages: [Language!]
|
|
332
|
-
privacy: Privacy
|
|
333
|
-
notificationLike: Flag
|
|
334
|
-
notificationReward: Flag
|
|
335
|
-
notificationReply: Flag
|
|
336
|
-
notificationFollowRequest: Flag
|
|
337
|
-
notificationMention: Flag
|
|
338
|
-
notificationGroupFollowRequest: Flag
|
|
339
|
-
notificationGroupJoinRequest: Flag
|
|
340
|
-
notificationGroupNewPost: Flag
|
|
341
|
-
notificationGroupReply: Flag
|
|
173
|
+
input PostsFeedQueryModel {
|
|
174
|
+
languages: [Language]
|
|
175
|
+
lat: Float!
|
|
176
|
+
lon: Float!
|
|
177
|
+
page: Int
|
|
178
|
+
limit: Int
|
|
342
179
|
}
|
|
343
180
|
|
|
344
|
-
|
|
345
|
-
|
|
181
|
+
type Mutation {
|
|
182
|
+
createPost(data: CreatePost!): Post!
|
|
346
183
|
}
|
|
347
184
|
|
|
348
|
-
input
|
|
185
|
+
input CreatePost {
|
|
186
|
+
title: String
|
|
187
|
+
content: String!
|
|
188
|
+
images: [CreateMedia]
|
|
189
|
+
snippets: [CreateSnippet]
|
|
349
190
|
groupId: String
|
|
350
|
-
|
|
351
|
-
commentId: String
|
|
191
|
+
tags: [CreateTag]
|
|
352
192
|
}
|
|
353
193
|
|
|
354
|
-
input
|
|
355
|
-
|
|
356
|
-
displayName: String!
|
|
357
|
-
description: String
|
|
358
|
-
privacy: Privacy!
|
|
359
|
-
externalLinks: [UpsertExternalLink]
|
|
360
|
-
hostsIds: [String!]!
|
|
361
|
-
membersIds: [String]
|
|
194
|
+
input CreateMedia {
|
|
195
|
+
key: String!
|
|
362
196
|
}
|
|
363
197
|
|
|
364
|
-
input
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
externalLinks: [UpsertExternalLink!]
|
|
369
|
-
hostsIds: [String!]
|
|
370
|
-
membersIds: [String!]
|
|
371
|
-
id: ID!
|
|
198
|
+
input CreateSnippet {
|
|
199
|
+
code: String!
|
|
200
|
+
language: String
|
|
201
|
+
fileName: String
|
|
372
202
|
}
|
|
373
203
|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
unreadNotifications: [Notification!]!
|
|
204
|
+
input CreateTag {
|
|
205
|
+
name: String!
|
|
377
206
|
}
|