@fowgence/api-schema 1.0.1-dev.21826775874.0 → 1.0.1-dev.22102951885.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 +111 -26
package/package.json
CHANGED
package/schema.gql
CHANGED
|
@@ -59,6 +59,9 @@ type Media {
|
|
|
59
59
|
createdAt: DateTime
|
|
60
60
|
updatedAt: DateTime
|
|
61
61
|
key: String!
|
|
62
|
+
fileName: String
|
|
63
|
+
mimeType: String
|
|
64
|
+
fileSize: Float
|
|
62
65
|
}
|
|
63
66
|
|
|
64
67
|
type Snippet {
|
|
@@ -70,31 +73,20 @@ type Snippet {
|
|
|
70
73
|
fileName: String
|
|
71
74
|
}
|
|
72
75
|
|
|
73
|
-
type JoinRequest {
|
|
74
|
-
id: ID!
|
|
75
|
-
userId: String!
|
|
76
|
-
}
|
|
77
|
-
|
|
78
76
|
type GroupModel {
|
|
79
77
|
id: ID!
|
|
80
78
|
createdAt: DateTime
|
|
81
79
|
updatedAt: DateTime
|
|
82
80
|
name: String
|
|
83
81
|
displayName: String
|
|
84
|
-
|
|
85
|
-
privacy:
|
|
82
|
+
description: String
|
|
83
|
+
privacy: Privacy
|
|
86
84
|
rank: GroupRank
|
|
87
85
|
externalLinks: [ExternalLink]
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
posts: [Post]
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
enum PrivacyType {
|
|
96
|
-
PUBLIC
|
|
97
|
-
PRIVATE
|
|
86
|
+
membersCount: Int
|
|
87
|
+
followersCount: Int
|
|
88
|
+
joinRequestsCount: Int
|
|
89
|
+
postsCount: Int
|
|
98
90
|
}
|
|
99
91
|
|
|
100
92
|
enum GroupRank {
|
|
@@ -116,7 +108,7 @@ type Post {
|
|
|
116
108
|
updatedAt: DateTime
|
|
117
109
|
title: String
|
|
118
110
|
content: String
|
|
119
|
-
|
|
111
|
+
medias: [Media]
|
|
120
112
|
snippets: [Snippet]
|
|
121
113
|
author: User
|
|
122
114
|
group: GroupModel
|
|
@@ -168,7 +160,6 @@ type User {
|
|
|
168
160
|
bookmarks: [Post]
|
|
169
161
|
sentRewards: [Post]
|
|
170
162
|
availableRewards: Int
|
|
171
|
-
isFollowing: Boolean
|
|
172
163
|
}
|
|
173
164
|
|
|
174
165
|
enum UserRank {
|
|
@@ -180,6 +171,31 @@ enum UserRank {
|
|
|
180
171
|
PAWN
|
|
181
172
|
}
|
|
182
173
|
|
|
174
|
+
type FollowRequestModel {
|
|
175
|
+
id: ID!
|
|
176
|
+
createdAt: DateTime
|
|
177
|
+
updatedAt: DateTime
|
|
178
|
+
userId: String!
|
|
179
|
+
userName: String!
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
type FollowingModel {
|
|
183
|
+
id: ID!
|
|
184
|
+
createdAt: DateTime
|
|
185
|
+
updatedAt: DateTime
|
|
186
|
+
userId: String!
|
|
187
|
+
userName: String!
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
type FollowerModel {
|
|
191
|
+
id: ID!
|
|
192
|
+
createdAt: DateTime
|
|
193
|
+
updatedAt: DateTime
|
|
194
|
+
userId: String!
|
|
195
|
+
userName: String!
|
|
196
|
+
isFollowing: Boolean!
|
|
197
|
+
}
|
|
198
|
+
|
|
183
199
|
type Notification {
|
|
184
200
|
id: ID!
|
|
185
201
|
createdAt: DateTime
|
|
@@ -210,13 +226,52 @@ enum NotificationTemplate {
|
|
|
210
226
|
GROUP_JOIN_REQ
|
|
211
227
|
}
|
|
212
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!
|
|
257
|
+
}
|
|
258
|
+
|
|
213
259
|
type Query {
|
|
214
|
-
followers(id: ID!, limit: Float, lastId: String): [
|
|
215
|
-
followings(id: ID!, limit: Float, lastId: String): [
|
|
216
|
-
followRequests: [
|
|
217
|
-
user(
|
|
260
|
+
followers(id: ID!, limit: Float, lastId: String): [FollowerModel]
|
|
261
|
+
followings(id: ID!, limit: Float, lastId: String): [FollowingModel]
|
|
262
|
+
followRequests: [FollowRequestModel]
|
|
263
|
+
user(name: String!): User
|
|
218
264
|
searchUsers(searchTerm: String!, max: Float): [User!]
|
|
219
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]
|
|
220
275
|
}
|
|
221
276
|
|
|
222
277
|
type Mutation {
|
|
@@ -225,12 +280,22 @@ type Mutation {
|
|
|
225
280
|
deleteUser: Boolean
|
|
226
281
|
followUser(id: ID!, limit: Float, lastId: String): Boolean
|
|
227
282
|
unfollowUser(id: ID!, limit: Float, lastId: String): Boolean
|
|
228
|
-
|
|
229
|
-
|
|
283
|
+
createFollowRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
284
|
+
deleteFollowRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
230
285
|
acceptFollowRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
231
286
|
declineFollowRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
232
287
|
updateNotificationsByIds(data: IdsModel!): Boolean
|
|
233
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
|
|
234
299
|
}
|
|
235
300
|
|
|
236
301
|
input CreateUser {
|
|
@@ -256,8 +321,8 @@ input UpsertExternalLink {
|
|
|
256
321
|
input UpdateUser {
|
|
257
322
|
displayName: String
|
|
258
323
|
bio: String
|
|
259
|
-
setting: UpdateUserSetting
|
|
260
324
|
externalLinks: [UpsertExternalLink!]
|
|
325
|
+
setting: UpdateUserSetting
|
|
261
326
|
}
|
|
262
327
|
|
|
263
328
|
input UpdateUserSetting {
|
|
@@ -286,6 +351,26 @@ input UpdateNotification {
|
|
|
286
351
|
commentId: String
|
|
287
352
|
}
|
|
288
353
|
|
|
354
|
+
input CreateGroup {
|
|
355
|
+
name: String!
|
|
356
|
+
displayName: String!
|
|
357
|
+
description: String
|
|
358
|
+
privacy: Privacy!
|
|
359
|
+
externalLinks: [UpsertExternalLink]
|
|
360
|
+
hostsIds: [String!]!
|
|
361
|
+
membersIds: [String]
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
input UpdateGroup {
|
|
365
|
+
displayName: String
|
|
366
|
+
description: String
|
|
367
|
+
privacy: Privacy
|
|
368
|
+
externalLinks: [UpsertExternalLink!]
|
|
369
|
+
hostsIds: [String!]
|
|
370
|
+
membersIds: [String!]
|
|
371
|
+
id: ID!
|
|
372
|
+
}
|
|
373
|
+
|
|
289
374
|
type Subscription {
|
|
290
375
|
unreadNotificationsCount: Int!
|
|
291
376
|
unreadNotifications: [Notification!]!
|