@fowgence/api-schema 1.0.1-dev.25629017231.0 → 1.0.1-dev.25629600489.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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/schema.gql +51 -54
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fowgence/api-schema",
3
- "version": "1.0.1-dev.25629017231.0",
3
+ "version": "1.0.1-dev.25629600489.0",
4
4
  "description": "Auto-generated GraphQL schema for the Next.js frontend",
5
5
  "main": "schema.gql",
6
6
  "files": [
package/schema.gql CHANGED
@@ -121,54 +121,6 @@ type ExternalLinkModel {
121
121
  url: String
122
122
  }
123
123
 
124
- type GroupModel {
125
- id: ID!
126
- createdAt: DateTime
127
- updatedAt: DateTime
128
- success: Boolean!
129
- name: String
130
- displayName: String
131
- description: String
132
- privacy: Privacy
133
- rank: GroupRank
134
- externalLinks: [ExternalLinkModel]
135
- membersCount: Int
136
- followersCount: Int
137
- joinRequestsCount: Int
138
- postsCount: Int
139
- isHost: Boolean
140
- isMember: Boolean
141
- isFollowing: Boolean
142
- }
143
-
144
- enum GroupRank {
145
- TROPHY
146
- AWARD
147
- MEDAL
148
- }
149
-
150
- type PostModel {
151
- id: ID!
152
- createdAt: DateTime
153
- updatedAt: DateTime
154
- success: Boolean!
155
- title: String
156
- content: String
157
- medias: [Media]
158
- author: UserModel
159
- group: GroupModel
160
- comments: [CommentModel!]
161
- tags: [String]
162
- commentsCount: Int
163
- topComments: [String]
164
- likesCount: Int
165
- isLiked: Boolean
166
- isBookmarked: Boolean
167
- rewardsCount: Int
168
- isRewarded: Boolean
169
- isReported: Boolean
170
- }
171
-
172
124
  type UserModel {
173
125
  id: ID!
174
126
  createdAt: DateTime
@@ -185,11 +137,8 @@ type UserModel {
185
137
  receivedFollowRequestsCount: Int
186
138
  groupsCount: Int
187
139
  followingGroupsCount: Int
188
- posts: [PostModel]
189
- likes: [PostModel]
190
- bookmarks: [PostModel]
191
- sentRewards: [PostModel]
192
- availableRewards: Int
140
+ remainingRewardsCount: Int
141
+ isFollowing: Boolean
193
142
  }
194
143
 
195
144
  enum UserRank {
@@ -227,6 +176,32 @@ enum AuthorType {
227
176
  USER
228
177
  }
229
178
 
179
+ type GroupModel {
180
+ id: ID!
181
+ createdAt: DateTime
182
+ updatedAt: DateTime
183
+ success: Boolean!
184
+ name: String
185
+ displayName: String
186
+ description: String
187
+ privacy: Privacy
188
+ rank: GroupRank
189
+ externalLinks: [ExternalLinkModel]
190
+ membersCount: Int
191
+ followersCount: Int
192
+ joinRequestsCount: Int
193
+ postsCount: Int
194
+ isHost: Boolean
195
+ isMember: Boolean
196
+ isFollowing: Boolean
197
+ }
198
+
199
+ enum GroupRank {
200
+ TROPHY
201
+ AWARD
202
+ MEDAL
203
+ }
204
+
230
205
  type GroupMemberModel {
231
206
  id: ID!
232
207
  createdAt: DateTime
@@ -242,6 +217,28 @@ enum MemberRole {
242
217
  MEMBER
243
218
  }
244
219
 
220
+ type PostModel {
221
+ id: ID!
222
+ createdAt: DateTime
223
+ updatedAt: DateTime
224
+ success: Boolean!
225
+ title: String
226
+ content: String
227
+ medias: [Media]
228
+ author: UserModel
229
+ group: GroupModel
230
+ comments: [CommentModel!]
231
+ tags: [String]
232
+ commentsCount: Int
233
+ topComments: [String]
234
+ likesCount: Int
235
+ isLiked: Boolean
236
+ isBookmarked: Boolean
237
+ rewardsCount: Int
238
+ isRewarded: Boolean
239
+ isReported: Boolean
240
+ }
241
+
245
242
  type Notification {
246
243
  id: ID!
247
244
  createdAt: DateTime
@@ -278,10 +275,10 @@ type UserItemModel {
278
275
  }
279
276
 
280
277
  type Query {
278
+ user(name: String!): UserModel
281
279
  followers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
282
280
  followings(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
283
281
  followRequests(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [UserItemModel]
284
- user(name: String!): UserModel
285
282
  searchUsers(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, term: String!): [UserModel!]
286
283
  group(name: String!): GroupModel
287
284
  searchGroups(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, term: String!): [GroupModel!]!