@fowgence/api-schema 1.0.1-dev.22142481340.0 → 1.0.1-dev.23196426614.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 +240 -120
package/package.json
CHANGED
package/schema.gql
CHANGED
|
@@ -2,10 +2,37 @@
|
|
|
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
|
+
success: Boolean!
|
|
10
|
+
key: String!
|
|
11
|
+
fileName: String
|
|
12
|
+
mimeType: String
|
|
13
|
+
fileSize: Float
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
"""
|
|
17
|
+
A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
|
|
18
|
+
"""
|
|
19
|
+
scalar DateTime
|
|
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
|
+
|
|
5
31
|
type UserSetting {
|
|
6
32
|
id: ID!
|
|
7
33
|
createdAt: DateTime
|
|
8
34
|
updatedAt: DateTime
|
|
35
|
+
success: Boolean!
|
|
9
36
|
theme: Theme
|
|
10
37
|
notificationLike: Flag
|
|
11
38
|
notificationReward: Flag
|
|
@@ -21,11 +48,6 @@ type UserSetting {
|
|
|
21
48
|
privacy: Privacy
|
|
22
49
|
}
|
|
23
50
|
|
|
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
51
|
enum Theme {
|
|
30
52
|
LIGHT
|
|
31
53
|
DARK
|
|
@@ -37,8 +59,62 @@ enum Flag {
|
|
|
37
59
|
}
|
|
38
60
|
|
|
39
61
|
enum Language {
|
|
62
|
+
AFRIKAANS
|
|
63
|
+
ARABIC
|
|
64
|
+
BULGARIAN
|
|
65
|
+
BENGALI
|
|
66
|
+
CATALAN
|
|
67
|
+
CZECH
|
|
68
|
+
WELSH
|
|
69
|
+
DANISH
|
|
70
|
+
GERMAN
|
|
71
|
+
GREEK
|
|
40
72
|
ENGLISH
|
|
73
|
+
SPANISH
|
|
74
|
+
ESTONIAN
|
|
75
|
+
PERSIAN
|
|
76
|
+
FINNISH
|
|
77
|
+
FRENCH
|
|
78
|
+
GUJARATI
|
|
79
|
+
HEBREW
|
|
80
|
+
HINDI
|
|
81
|
+
CROATIAN
|
|
82
|
+
HUNGARIAN
|
|
83
|
+
INDONESIAN
|
|
84
|
+
ITALIAN
|
|
41
85
|
JAPANESE
|
|
86
|
+
KANNADA
|
|
87
|
+
KOREAN
|
|
88
|
+
LITHUANIAN
|
|
89
|
+
LATVIAN
|
|
90
|
+
MACEDONIAN
|
|
91
|
+
MALAYALAM
|
|
92
|
+
MARATHI
|
|
93
|
+
NEPALI
|
|
94
|
+
DUTCH
|
|
95
|
+
NORWEGIAN
|
|
96
|
+
PUNJABI
|
|
97
|
+
POLISH
|
|
98
|
+
PORTUGUESE
|
|
99
|
+
ROMANIAN
|
|
100
|
+
RUSSIAN
|
|
101
|
+
SLOVAK
|
|
102
|
+
SLOVENIAN
|
|
103
|
+
SOMALI
|
|
104
|
+
ALBANIAN
|
|
105
|
+
SWEDISH
|
|
106
|
+
SWAHILI
|
|
107
|
+
TAMIL
|
|
108
|
+
TELUGU
|
|
109
|
+
THAI
|
|
110
|
+
TAGALOG
|
|
111
|
+
TURKISH
|
|
112
|
+
UKRAINIAN
|
|
113
|
+
URDU
|
|
114
|
+
VIETNAMESE
|
|
115
|
+
CHINESE_SIMPLIFIED
|
|
116
|
+
CHINESE_TRADITIONAL
|
|
117
|
+
UNSUPPORTED
|
|
42
118
|
}
|
|
43
119
|
|
|
44
120
|
enum Privacy {
|
|
@@ -50,33 +126,16 @@ type ExternalLink {
|
|
|
50
126
|
id: ID!
|
|
51
127
|
createdAt: DateTime
|
|
52
128
|
updatedAt: DateTime
|
|
129
|
+
success: Boolean!
|
|
53
130
|
name: String
|
|
54
131
|
url: String
|
|
55
132
|
}
|
|
56
133
|
|
|
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
134
|
type GroupModel {
|
|
77
135
|
id: ID!
|
|
78
136
|
createdAt: DateTime
|
|
79
137
|
updatedAt: DateTime
|
|
138
|
+
success: Boolean!
|
|
80
139
|
name: String
|
|
81
140
|
displayName: String
|
|
82
141
|
description: String
|
|
@@ -95,24 +154,20 @@ enum GroupRank {
|
|
|
95
154
|
MEDAL
|
|
96
155
|
}
|
|
97
156
|
|
|
98
|
-
type Tag {
|
|
99
|
-
id: ID!
|
|
100
|
-
createdAt: DateTime
|
|
101
|
-
updatedAt: DateTime
|
|
102
|
-
name: String!
|
|
103
|
-
}
|
|
104
|
-
|
|
105
157
|
type Post {
|
|
106
158
|
id: ID!
|
|
107
159
|
createdAt: DateTime
|
|
108
160
|
updatedAt: DateTime
|
|
161
|
+
success: Boolean!
|
|
109
162
|
title: String
|
|
110
163
|
content: String
|
|
111
164
|
medias: [Media]
|
|
112
165
|
snippets: [Snippet]
|
|
113
166
|
author: User
|
|
114
167
|
group: GroupModel
|
|
115
|
-
|
|
168
|
+
comments: [Comment!]
|
|
169
|
+
tags: [String]
|
|
170
|
+
commentsCount: Int
|
|
116
171
|
likesCount: Int
|
|
117
172
|
isLiked: Boolean
|
|
118
173
|
isBookmarked: Boolean
|
|
@@ -120,29 +175,11 @@ type Post {
|
|
|
120
175
|
isRewarded: Boolean
|
|
121
176
|
}
|
|
122
177
|
|
|
123
|
-
type Comment {
|
|
124
|
-
id: ID!
|
|
125
|
-
createdAt: DateTime
|
|
126
|
-
updatedAt: DateTime
|
|
127
|
-
content: String
|
|
128
|
-
authorType: AuthorType
|
|
129
|
-
quotedText: String
|
|
130
|
-
startIndex: Int
|
|
131
|
-
images: [Media]
|
|
132
|
-
snippets: [Snippet]
|
|
133
|
-
comments: [Comment]
|
|
134
|
-
author: User
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
enum AuthorType {
|
|
138
|
-
AI
|
|
139
|
-
USER
|
|
140
|
-
}
|
|
141
|
-
|
|
142
178
|
type User {
|
|
143
179
|
id: ID!
|
|
144
180
|
createdAt: DateTime
|
|
145
181
|
updatedAt: DateTime
|
|
182
|
+
success: Boolean!
|
|
146
183
|
name: String
|
|
147
184
|
displayName: String
|
|
148
185
|
bio: String
|
|
@@ -155,7 +192,6 @@ type User {
|
|
|
155
192
|
groupsCount: Int
|
|
156
193
|
followingGroupsCount: Int
|
|
157
194
|
posts: [Post]
|
|
158
|
-
comments: [Comment]
|
|
159
195
|
likes: [Post]
|
|
160
196
|
bookmarks: [Post]
|
|
161
197
|
sentRewards: [Post]
|
|
@@ -171,18 +207,36 @@ enum UserRank {
|
|
|
171
207
|
PAWN
|
|
172
208
|
}
|
|
173
209
|
|
|
174
|
-
type
|
|
210
|
+
type Comment {
|
|
175
211
|
id: ID!
|
|
176
212
|
createdAt: DateTime
|
|
177
213
|
updatedAt: DateTime
|
|
178
|
-
|
|
179
|
-
|
|
214
|
+
success: Boolean!
|
|
215
|
+
title: String
|
|
216
|
+
content: String
|
|
217
|
+
authorType: AuthorType
|
|
218
|
+
medias: [Media]
|
|
219
|
+
snippets: [Snippet]
|
|
220
|
+
author: User
|
|
221
|
+
quotingComments: [Comment]
|
|
222
|
+
commentsCount: Int
|
|
223
|
+
likesCount: Int
|
|
224
|
+
isLiked: Boolean
|
|
225
|
+
isBookmarked: Boolean
|
|
226
|
+
rewardsCount: Int
|
|
227
|
+
isRewarded: Boolean
|
|
180
228
|
}
|
|
181
229
|
|
|
182
|
-
|
|
230
|
+
enum AuthorType {
|
|
231
|
+
AI
|
|
232
|
+
USER
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
type FollowRequestModel {
|
|
183
236
|
id: ID!
|
|
184
237
|
createdAt: DateTime
|
|
185
238
|
updatedAt: DateTime
|
|
239
|
+
success: Boolean!
|
|
186
240
|
userId: String!
|
|
187
241
|
userName: String!
|
|
188
242
|
}
|
|
@@ -191,45 +245,26 @@ type FollowerModel {
|
|
|
191
245
|
id: ID!
|
|
192
246
|
createdAt: DateTime
|
|
193
247
|
updatedAt: DateTime
|
|
248
|
+
success: Boolean!
|
|
194
249
|
userId: String!
|
|
195
250
|
userName: String!
|
|
196
251
|
isFollowing: Boolean!
|
|
197
252
|
}
|
|
198
253
|
|
|
199
|
-
type
|
|
254
|
+
type FollowingModel {
|
|
200
255
|
id: ID!
|
|
201
256
|
createdAt: DateTime
|
|
202
257
|
updatedAt: DateTime
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
sender: User
|
|
207
|
-
group: GroupModel
|
|
208
|
-
post: Post
|
|
209
|
-
comment: Comment
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
enum NotificationTemplate {
|
|
213
|
-
LIKE
|
|
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
|
|
258
|
+
success: Boolean!
|
|
259
|
+
userId: String!
|
|
260
|
+
userName: String!
|
|
227
261
|
}
|
|
228
262
|
|
|
229
263
|
type GroupFollowerModel {
|
|
230
264
|
id: ID!
|
|
231
265
|
createdAt: DateTime
|
|
232
266
|
updatedAt: DateTime
|
|
267
|
+
success: Boolean!
|
|
233
268
|
userId: String!
|
|
234
269
|
userName: String!
|
|
235
270
|
}
|
|
@@ -238,6 +273,7 @@ type GroupMemberModel {
|
|
|
238
273
|
id: ID!
|
|
239
274
|
createdAt: DateTime
|
|
240
275
|
updatedAt: DateTime
|
|
276
|
+
success: Boolean!
|
|
241
277
|
userId: String!
|
|
242
278
|
userName: String!
|
|
243
279
|
role: MemberRole!
|
|
@@ -252,32 +288,67 @@ type JoinRequestModel {
|
|
|
252
288
|
id: ID!
|
|
253
289
|
createdAt: DateTime
|
|
254
290
|
updatedAt: DateTime
|
|
291
|
+
success: Boolean!
|
|
255
292
|
userId: String!
|
|
256
293
|
userName: String!
|
|
257
294
|
}
|
|
258
295
|
|
|
296
|
+
type Notification {
|
|
297
|
+
id: ID!
|
|
298
|
+
createdAt: DateTime
|
|
299
|
+
updatedAt: DateTime
|
|
300
|
+
success: Boolean!
|
|
301
|
+
template: NotificationTemplate
|
|
302
|
+
readAt: DateTime
|
|
303
|
+
user: User
|
|
304
|
+
sender: User
|
|
305
|
+
group: GroupModel
|
|
306
|
+
post: Post
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
enum NotificationTemplate {
|
|
310
|
+
LIKE
|
|
311
|
+
REPLY
|
|
312
|
+
REWARD
|
|
313
|
+
FOLLOW
|
|
314
|
+
FOLLOW_REQ
|
|
315
|
+
GROUP_LIKE
|
|
316
|
+
GROUP_REPLY
|
|
317
|
+
GROUP_REWARD
|
|
318
|
+
GROUP_FOLLOW
|
|
319
|
+
GROUP_JOIN
|
|
320
|
+
GROUP_JOIN_REQ
|
|
321
|
+
}
|
|
322
|
+
|
|
259
323
|
type Query {
|
|
260
|
-
followers(id: ID!, limit: Float, lastId: String): [FollowerModel]
|
|
261
|
-
followings(id: ID!, limit: Float, lastId: String): [FollowingModel]
|
|
324
|
+
followers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [FollowerModel]
|
|
325
|
+
followings(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [FollowingModel]
|
|
262
326
|
followRequests: [FollowRequestModel]
|
|
263
327
|
user(name: String!): User
|
|
264
328
|
searchUsers(searchTerm: String!, max: Float): [User!]
|
|
265
|
-
notifications: [Notification]
|
|
266
329
|
group(name: String!): GroupModel
|
|
267
330
|
searchGroups(searchTerm: String!, max: Float): [GroupModel]
|
|
268
331
|
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
|
-
|
|
332
|
+
groups(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [GroupModel]
|
|
333
|
+
groupMembers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [GroupMemberModel]
|
|
334
|
+
groupFollowers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [GroupFollowerModel]
|
|
335
|
+
joinRequests(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [JoinRequestModel]
|
|
336
|
+
post(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Post
|
|
337
|
+
postsRecommendation(data: QueryPostsFeedModel!): [Post]
|
|
338
|
+
postPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Post
|
|
339
|
+
postsRecommendationPublic(data: QueryPostsFeedModel!): [Post]
|
|
340
|
+
searchPosts(searchTerm: String!, max: Float): [Post]
|
|
341
|
+
notifications: [Notification]
|
|
342
|
+
rootAiComment(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Comment!
|
|
343
|
+
comment(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Comment!
|
|
344
|
+
comments(postId: ID!, limit: Float, lastScore: Float, excludeIds: [String]): [Comment!]!
|
|
345
|
+
rootAiCommentPublic(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Comment!
|
|
275
346
|
}
|
|
276
347
|
|
|
277
|
-
input
|
|
348
|
+
input QueryPostsFeedModel {
|
|
278
349
|
languages: [Language]
|
|
279
|
-
lat: Float!
|
|
280
350
|
lon: Float!
|
|
351
|
+
lat: Float!
|
|
281
352
|
page: Int
|
|
282
353
|
limit: Int
|
|
283
354
|
}
|
|
@@ -286,24 +357,28 @@ type Mutation {
|
|
|
286
357
|
createUser(data: CreateUser!): User!
|
|
287
358
|
updateUser(data: UpdateUser!): User!
|
|
288
359
|
deleteUser: Boolean
|
|
289
|
-
followUser(id: ID!, limit: Float, lastId: String): Boolean
|
|
290
|
-
unfollowUser(id: ID!, limit: Float, lastId: String): Boolean
|
|
291
|
-
createFollowRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
292
|
-
deleteFollowRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
293
|
-
acceptFollowRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
294
|
-
declineFollowRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
295
|
-
updateNotificationsByIds(data: IdsModel!): Boolean
|
|
296
|
-
updateNotification(data: UpdateNotification!): Boolean
|
|
360
|
+
followUser(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
361
|
+
unfollowUser(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
362
|
+
createFollowRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
363
|
+
deleteFollowRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
364
|
+
acceptFollowRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
365
|
+
declineFollowRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
297
366
|
createGroup(data: CreateGroup!): GroupModel!
|
|
298
367
|
updateGroup(data: UpdateGroup!): GroupModel!
|
|
299
|
-
deleteGroup(id: ID!, limit: Float, lastId: String): Boolean
|
|
300
|
-
followGroup(id: ID!, limit: Float, lastId: String): Boolean
|
|
301
|
-
unfollowGroup(id: ID!, limit: Float, lastId: String): Boolean
|
|
302
|
-
leaveGroup(id: ID!, limit: Float, lastId: String): Boolean
|
|
303
|
-
joinGroup(id: ID!, limit: Float, lastId: String): Boolean
|
|
304
|
-
createJoinRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
305
|
-
deleteJoinRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
306
|
-
acceptJoinRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
368
|
+
deleteGroup(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
369
|
+
followGroup(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
370
|
+
unfollowGroup(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
371
|
+
leaveGroup(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
372
|
+
joinGroup(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
373
|
+
createJoinRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
374
|
+
deleteJoinRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
375
|
+
acceptJoinRequest(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
376
|
+
createPost(data: CreatePost!): Post!
|
|
377
|
+
updateNotificationsByIds(data: IdsModel!): Boolean
|
|
378
|
+
updateGroupNotification(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
379
|
+
updatePostNotification(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
380
|
+
updateCommentNotification(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): Boolean
|
|
381
|
+
createComment(data: CreateComment!): Comment!
|
|
307
382
|
}
|
|
308
383
|
|
|
309
384
|
input CreateUser {
|
|
@@ -317,7 +392,7 @@ input CreateUserSetting {
|
|
|
317
392
|
theme: Theme!
|
|
318
393
|
systemLanguage: Language!
|
|
319
394
|
postsLanguages: [Language!]!
|
|
320
|
-
privacy: Privacy!
|
|
395
|
+
privacy: Privacy! = PUBLIC
|
|
321
396
|
}
|
|
322
397
|
|
|
323
398
|
input UpsertExternalLink {
|
|
@@ -337,7 +412,7 @@ input UpdateUserSetting {
|
|
|
337
412
|
theme: Theme
|
|
338
413
|
systemLanguage: Language
|
|
339
414
|
postsLanguages: [Language!]
|
|
340
|
-
privacy: Privacy
|
|
415
|
+
privacy: Privacy = PUBLIC
|
|
341
416
|
notificationLike: Flag
|
|
342
417
|
notificationReward: Flag
|
|
343
418
|
notificationReply: Flag
|
|
@@ -349,16 +424,6 @@ input UpdateUserSetting {
|
|
|
349
424
|
notificationGroupReply: Flag
|
|
350
425
|
}
|
|
351
426
|
|
|
352
|
-
input IdsModel {
|
|
353
|
-
ids: [String!]!
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
input UpdateNotification {
|
|
357
|
-
groupId: String
|
|
358
|
-
postId: String
|
|
359
|
-
commentId: String
|
|
360
|
-
}
|
|
361
|
-
|
|
362
427
|
input CreateGroup {
|
|
363
428
|
name: String!
|
|
364
429
|
displayName: String!
|
|
@@ -379,7 +444,62 @@ input UpdateGroup {
|
|
|
379
444
|
id: ID!
|
|
380
445
|
}
|
|
381
446
|
|
|
447
|
+
input CreatePost {
|
|
448
|
+
id: ID!
|
|
449
|
+
lon: Float
|
|
450
|
+
lat: Float
|
|
451
|
+
privacy: Privacy! = PUBLIC
|
|
452
|
+
title: String
|
|
453
|
+
content: String!
|
|
454
|
+
medias: [CreateMedia]
|
|
455
|
+
snippets: [CreateSnippet]
|
|
456
|
+
groupId: String
|
|
457
|
+
tags: [String]
|
|
458
|
+
askAi: Flag! = OFF
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
input CreateMedia {
|
|
462
|
+
key: String!
|
|
463
|
+
mimeType: MimeType!
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
enum MimeType {
|
|
467
|
+
PNG
|
|
468
|
+
JPEG
|
|
469
|
+
WEBP
|
|
470
|
+
HEIC
|
|
471
|
+
HEIF
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
input CreateSnippet {
|
|
475
|
+
code: String!
|
|
476
|
+
language: String
|
|
477
|
+
fileName: String
|
|
478
|
+
}
|
|
479
|
+
|
|
480
|
+
input IdsModel {
|
|
481
|
+
ids: [String!]!
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
input CreateComment {
|
|
485
|
+
postId: ID!
|
|
486
|
+
content: String!
|
|
487
|
+
medias: [CreateMedia]
|
|
488
|
+
snippets: [CreateSnippet]
|
|
489
|
+
quotedCommentId: String
|
|
490
|
+
quoteType: QuoteType
|
|
491
|
+
quotedText: String
|
|
492
|
+
startIndex: Int
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
enum QuoteType {
|
|
496
|
+
QUOTE
|
|
497
|
+
CORRECT
|
|
498
|
+
}
|
|
499
|
+
|
|
382
500
|
type Subscription {
|
|
383
501
|
unreadNotificationsCount: Int!
|
|
384
502
|
unreadNotifications: [Notification!]!
|
|
503
|
+
aiCommentAdded(postId: String!): String!
|
|
504
|
+
commentAdded: [String!]!
|
|
385
505
|
}
|