@fowgence/api-schema 1.0.1-dev.21826775874.0 → 1.0.1-dev.21987503868.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 +105 -25
package/package.json
CHANGED
package/schema.gql
CHANGED
|
@@ -70,31 +70,20 @@ type Snippet {
|
|
|
70
70
|
fileName: String
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
type JoinRequest {
|
|
74
|
-
id: ID!
|
|
75
|
-
userId: String!
|
|
76
|
-
}
|
|
77
|
-
|
|
78
73
|
type GroupModel {
|
|
79
74
|
id: ID!
|
|
80
75
|
createdAt: DateTime
|
|
81
76
|
updatedAt: DateTime
|
|
82
77
|
name: String
|
|
83
78
|
displayName: String
|
|
84
|
-
|
|
85
|
-
privacy:
|
|
79
|
+
description: String
|
|
80
|
+
privacy: Privacy
|
|
86
81
|
rank: GroupRank
|
|
87
82
|
externalLinks: [ExternalLink]
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
posts: [Post]
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
enum PrivacyType {
|
|
96
|
-
PUBLIC
|
|
97
|
-
PRIVATE
|
|
83
|
+
membersCount: Int
|
|
84
|
+
followersCount: Int
|
|
85
|
+
joinRequestsCount: Int
|
|
86
|
+
postsCount: Int
|
|
98
87
|
}
|
|
99
88
|
|
|
100
89
|
enum GroupRank {
|
|
@@ -168,7 +157,6 @@ type User {
|
|
|
168
157
|
bookmarks: [Post]
|
|
169
158
|
sentRewards: [Post]
|
|
170
159
|
availableRewards: Int
|
|
171
|
-
isFollowing: Boolean
|
|
172
160
|
}
|
|
173
161
|
|
|
174
162
|
enum UserRank {
|
|
@@ -180,6 +168,31 @@ enum UserRank {
|
|
|
180
168
|
PAWN
|
|
181
169
|
}
|
|
182
170
|
|
|
171
|
+
type FollowRequestModel {
|
|
172
|
+
id: ID!
|
|
173
|
+
createdAt: DateTime
|
|
174
|
+
updatedAt: DateTime
|
|
175
|
+
userId: String!
|
|
176
|
+
userName: String!
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
type FollowingModel {
|
|
180
|
+
id: ID!
|
|
181
|
+
createdAt: DateTime
|
|
182
|
+
updatedAt: DateTime
|
|
183
|
+
userId: String!
|
|
184
|
+
userName: String!
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
type FollowerModel {
|
|
188
|
+
id: ID!
|
|
189
|
+
createdAt: DateTime
|
|
190
|
+
updatedAt: DateTime
|
|
191
|
+
userId: String!
|
|
192
|
+
userName: String!
|
|
193
|
+
isFollowing: Boolean!
|
|
194
|
+
}
|
|
195
|
+
|
|
183
196
|
type Notification {
|
|
184
197
|
id: ID!
|
|
185
198
|
createdAt: DateTime
|
|
@@ -210,13 +223,50 @@ enum NotificationTemplate {
|
|
|
210
223
|
GROUP_JOIN_REQ
|
|
211
224
|
}
|
|
212
225
|
|
|
226
|
+
type GroupFollowerModel {
|
|
227
|
+
id: ID!
|
|
228
|
+
createdAt: DateTime
|
|
229
|
+
updatedAt: DateTime
|
|
230
|
+
userId: String!
|
|
231
|
+
userName: String!
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
type GroupMemberModel {
|
|
235
|
+
id: ID!
|
|
236
|
+
createdAt: DateTime
|
|
237
|
+
updatedAt: DateTime
|
|
238
|
+
userId: String!
|
|
239
|
+
userName: String!
|
|
240
|
+
role: MemberRole!
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
enum MemberRole {
|
|
244
|
+
HOST
|
|
245
|
+
MEMBER
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
type JoinRequestModel {
|
|
249
|
+
id: ID!
|
|
250
|
+
createdAt: DateTime
|
|
251
|
+
updatedAt: DateTime
|
|
252
|
+
userId: String!
|
|
253
|
+
userName: String!
|
|
254
|
+
}
|
|
255
|
+
|
|
213
256
|
type Query {
|
|
214
|
-
followers(id: ID!, limit: Float, lastId: String): [
|
|
215
|
-
followings(id: ID!, limit: Float, lastId: String): [
|
|
216
|
-
followRequests: [
|
|
217
|
-
user(
|
|
257
|
+
followers(id: ID!, limit: Float, lastId: String): [FollowerModel]
|
|
258
|
+
followings(id: ID!, limit: Float, lastId: String): [FollowingModel]
|
|
259
|
+
followRequests: [FollowRequestModel]
|
|
260
|
+
user(name: String!): User
|
|
218
261
|
searchUsers(searchTerm: String!, max: Float): [User!]
|
|
219
262
|
notifications: [Notification]
|
|
263
|
+
group(name: String!): GroupModel
|
|
264
|
+
searchGroups(searchTerm: String!, max: Float): [GroupModel]
|
|
265
|
+
myGroups: [GroupModel]
|
|
266
|
+
groups(id: ID!, limit: Float, lastId: String): [GroupModel]
|
|
267
|
+
groupMembers(id: ID!, limit: Float, lastId: String): [GroupMemberModel]
|
|
268
|
+
groupFollowers(id: ID!, limit: Float, lastId: String): [GroupFollowerModel]
|
|
269
|
+
joinRequests(id: ID!, limit: Float, lastId: String): [JoinRequestModel]
|
|
220
270
|
}
|
|
221
271
|
|
|
222
272
|
type Mutation {
|
|
@@ -225,12 +275,22 @@ type Mutation {
|
|
|
225
275
|
deleteUser: Boolean
|
|
226
276
|
followUser(id: ID!, limit: Float, lastId: String): Boolean
|
|
227
277
|
unfollowUser(id: ID!, limit: Float, lastId: String): Boolean
|
|
228
|
-
|
|
229
|
-
|
|
278
|
+
createFollowRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
279
|
+
deleteFollowRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
230
280
|
acceptFollowRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
231
281
|
declineFollowRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
232
282
|
updateNotificationsByIds(data: IdsModel!): Boolean
|
|
233
283
|
updateNotification(data: UpdateNotification!): Boolean
|
|
284
|
+
createGroup(data: CreateGroup!): GroupModel!
|
|
285
|
+
updateGroup(data: UpdateGroup!): GroupModel!
|
|
286
|
+
deleteGroup(id: ID!, limit: Float, lastId: String): Boolean
|
|
287
|
+
followGroup(id: ID!, limit: Float, lastId: String): Boolean
|
|
288
|
+
unfollowGroup(id: ID!, limit: Float, lastId: String): Boolean
|
|
289
|
+
leaveGroup(id: ID!, limit: Float, lastId: String): Boolean
|
|
290
|
+
joinGroup(id: ID!, limit: Float, lastId: String): Boolean
|
|
291
|
+
createJoinRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
292
|
+
deleteJoinRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
293
|
+
acceptJoinRequest(id: ID!, limit: Float, lastId: String): Boolean
|
|
234
294
|
}
|
|
235
295
|
|
|
236
296
|
input CreateUser {
|
|
@@ -256,8 +316,8 @@ input UpsertExternalLink {
|
|
|
256
316
|
input UpdateUser {
|
|
257
317
|
displayName: String
|
|
258
318
|
bio: String
|
|
259
|
-
setting: UpdateUserSetting
|
|
260
319
|
externalLinks: [UpsertExternalLink!]
|
|
320
|
+
setting: UpdateUserSetting
|
|
261
321
|
}
|
|
262
322
|
|
|
263
323
|
input UpdateUserSetting {
|
|
@@ -286,6 +346,26 @@ input UpdateNotification {
|
|
|
286
346
|
commentId: String
|
|
287
347
|
}
|
|
288
348
|
|
|
349
|
+
input CreateGroup {
|
|
350
|
+
name: String!
|
|
351
|
+
displayName: String!
|
|
352
|
+
description: String
|
|
353
|
+
privacy: Privacy!
|
|
354
|
+
externalLinks: [UpsertExternalLink]
|
|
355
|
+
hostsIds: [String!]!
|
|
356
|
+
membersIds: [String]
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
input UpdateGroup {
|
|
360
|
+
displayName: String
|
|
361
|
+
description: String
|
|
362
|
+
privacy: Privacy
|
|
363
|
+
externalLinks: [UpsertExternalLink!]
|
|
364
|
+
hostsIds: [String!]
|
|
365
|
+
membersIds: [String!]
|
|
366
|
+
id: ID!
|
|
367
|
+
}
|
|
368
|
+
|
|
289
369
|
type Subscription {
|
|
290
370
|
unreadNotificationsCount: Int!
|
|
291
371
|
unreadNotifications: [Notification!]!
|