@fowgence/api-schema 1.0.1-dev.25628145568.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 -53
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fowgence/api-schema",
3
- "version": "1.0.1-dev.25628145568.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,53 +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
- }
142
-
143
- enum GroupRank {
144
- TROPHY
145
- AWARD
146
- MEDAL
147
- }
148
-
149
- type PostModel {
150
- id: ID!
151
- createdAt: DateTime
152
- updatedAt: DateTime
153
- success: Boolean!
154
- title: String
155
- content: String
156
- medias: [Media]
157
- author: UserModel
158
- group: GroupModel
159
- comments: [CommentModel!]
160
- tags: [String]
161
- commentsCount: Int
162
- topComments: [String]
163
- likesCount: Int
164
- isLiked: Boolean
165
- isBookmarked: Boolean
166
- rewardsCount: Int
167
- isRewarded: Boolean
168
- isReported: Boolean
169
- }
170
-
171
124
  type UserModel {
172
125
  id: ID!
173
126
  createdAt: DateTime
@@ -184,11 +137,8 @@ type UserModel {
184
137
  receivedFollowRequestsCount: Int
185
138
  groupsCount: Int
186
139
  followingGroupsCount: Int
187
- posts: [PostModel]
188
- likes: [PostModel]
189
- bookmarks: [PostModel]
190
- sentRewards: [PostModel]
191
- availableRewards: Int
140
+ remainingRewardsCount: Int
141
+ isFollowing: Boolean
192
142
  }
193
143
 
194
144
  enum UserRank {
@@ -226,6 +176,32 @@ enum AuthorType {
226
176
  USER
227
177
  }
228
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
+
229
205
  type GroupMemberModel {
230
206
  id: ID!
231
207
  createdAt: DateTime
@@ -241,6 +217,28 @@ enum MemberRole {
241
217
  MEMBER
242
218
  }
243
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
+
244
242
  type Notification {
245
243
  id: ID!
246
244
  createdAt: DateTime
@@ -277,10 +275,10 @@ type UserItemModel {
277
275
  }
278
276
 
279
277
  type Query {
278
+ user(name: String!): UserModel
280
279
  followers(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
281
280
  followings(id: ID!, limit: Float, lastId: String, lastTimestamp: Int): [UserItemModel]
282
281
  followRequests(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime): [UserItemModel]
283
- user(name: String!): UserModel
284
282
  searchUsers(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, term: String!): [UserModel!]
285
283
  group(name: String!): GroupModel
286
284
  searchGroups(lastScore: Float, limit: Float! = 20, lastId: String, lastTimestamp: DateTime, term: String!): [GroupModel!]!