-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschema.graphql
438 lines (394 loc) · 9.36 KB
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
# This file was generated based on ".graphqlconfig". Do not edit manually.
schema {
query: Query
mutation: Mutation
subscription: Subscription
}
interface IUserChallenge {
challenge: Challenge!
challengeCompletion: ChallengeCompletion
id: Int!
plan: SeasonPlan!
replaceable: Boolean
}
type Challenge {
content: String!
createdAt: DateTime!
headerImage: WikiImage
id: Int!
isSpare: Boolean!
kategorie: Kategorie!
oberthema: Oberthema!
props: Props!
score: Int
themenWoche: Themenwoche!
tip: String
title: String!
updatedAt: DateTime!
}
type ChallengeCompletion {
createdAt: DateTime!
id: Int
owner: User!
replacementChallenge: ChallengeReplacement
seasonPlanChallenge: SeasonPlanChallenge
updatedAt: DateTime!
}
type ChallengeRejection {
createdAt: DateTime!
id: Int!
owner: User!
seasonPlanChallenge: SeasonPlanChallenge!
updatedAt: DateTime!
}
type ChallengeReplacement implements IUserChallenge {
async: ChallengeCompletion
challenge: Challenge!
challengeCompletion: ChallengeCompletion
completion: ChallengeCompletion
createdAt: DateTime!
id: Int!
owner: User!
plan: SeasonPlan!
replaceable: Boolean
updatedAt: DateTime!
}
type FeedComment {
author: User!
body: String
children: [FeedComment!]
currentUserLikesComment: Boolean!
dateCreated: DateTime!
id: Int!
parent: FeedComment
post: FeedPost!
sentiment: Int!
}
type FeedPost {
author: User!
body: String
commentCount: Int!
comments: [FeedComment!]
currentUserLikesPost: Boolean!
dateCreated: DateTime!
id: Int!
image: Media
isPinned: Boolean!
sentiment: Int!
title: String
ytId: String
}
type FeedPostConnection {
edges: [FeedPostEdge!]!
pageInfo: [FeedPostEdge!]!
}
type FeedPostEdge {
cursor: String!
cursorDecoded: String!
node: FeedPost!
}
type FeedPostPage {
page: FeedPostConnection!
pageData: PageData!
}
type Kategorie {
challenges: [Challenge!]!
createdAt: DateTime!
name: String!
oberthemen: [Oberthema!]!
props: Props!
themenWochen: [Themenwoche!]!
updatedAt: DateTime!
}
type LeaderBoardEntry {
place: Int!
team: Team!
}
type LeaderBoardEntryConnection {
edges: [LeaderBoardEntryEdge!]!
pageInfo: [LeaderBoardEntryEdge!]!
}
type LeaderBoardEntryEdge {
cursor: String!
cursorDecoded: String!
node: Team!
}
type LeaderBoardEntryPage {
page: LeaderBoardEntryConnection!
pageData: PageData!
}
type Media {
encoding: String!
filename: String!
height: Int!
id: Int
mimetype: String!
path: String!
uploadedAt: String!
uploader: User!
width: Int!
}
type Membership {
activationDate: DateTime
dateCreated: DateTime!
id: Int!
isActive: Boolean!
isAdmin: Boolean!
team: Team!
user: User!
}
type Mutation {
addComment(comment: FeedCommentInput!): FeedComment!
addPost(post: FeedPostInput!): FeedPost!
changePassword(newPassword: String!, oldPassword: String!): User!
changeUser(user: UserInput!): User
completeChallenge(challengeId: Int!): ChallengeCompletion
confirmMember(membershipId: Int!): Membership!
createTeam(team: TeamInput!): Team!
delMember(membershipId: Int!): Membership!
delete(mediaId: Int!): Media!
inviteUserToTeam(screenName: String!, teamId: Int!): Membership!
leaveTeam(membershipId: Int!): Membership!
likeComment(commentId: Int!): FeedComment!
likePost(postId: Int!): FeedPost!
modMember(membershipId: Int!): Membership!
rejectChallenge(challengeId: Int!): ChallengeRejection
removeComment(CommentId: Int!): FeedComment!
removeOwnComment(CommentId: Int!): Boolean!
removeOwnPost(postId: Int!): Boolean!
removePost(postId: Int!): FeedPost!
removeSeason(seasonId: Int!): Season
removeSeasonPlan(seasonPlanId: Int!): SeasonPlan
requestJoinTeam(teamId: Int!): Membership!
resetLeaderBoard: [Team!]!
subscribe(pushToken: String!): Subscription
syncWikiData: String!
syncWikiPage(pageId: Float!): String!
testNotification: Boolean
uncompleteChallenge(challengeCompletionId: Int!): ChallengeCompletion
unlikeComment(commentId: Int!): FeedComment!
unlikePost(postId: Int!): FeedPost!
unmodMember(membershipId: Int!): Membership!
unsubscribe: Subscription
updateProfile(avatarId: Int, screenName: String, userName: String): User!
updateSeason(season: SeasonInput!): Season
updateSeasonPlan(seasonPlan: SeasonPlanInput!): SeasonPlan
updateTeam(team: TeamInput!): Team!
upload(file: Upload!, height: Int!, width: Int!): Media!
}
type Oberthema {
challenges: [Challenge!]!
createdAt: DateTime!
kategorie: Kategorie!
name: String!
props: Props!
themenWochen: [Themenwoche!]!
updatedAt: DateTime!
}
type PageData {
count: Int!
limit: Int!
offset: Int!
}
type Props {
createdAt: DateTime!
pageid: Int!
parentid: Int!
revid: Int!
timestamp: DateTime!
updatedAt: DateTime!
user: String!
warnings: WikiWarning!
}
type Quelle {
createdAt: DateTime!
id: Int!
title: String!
updatedAt: DateTime!
url: String!
}
type Query {
allPagesWithWarings: [Props!]
commentsOfPost(postId: Int!): [FeedComment!]
currentChallenges: [IUserChallenge!]
currentSeason: Season
getCurrentUser: User!
getLeaderBoard(connectionArgs: ConnectionArgs!, teamSize: TeamSize!): LeaderBoardEntryPage
getMyTeam(teamId: Int!): Team!
getPageProps(pageId: Int!): Props
getTeam(teamId: Int!): Team!
globalCurrentChallenges: SeasonPlan
isSubscribed: Subscription
kategorie(kategorieId: String!): Kategorie
kategories: [Kategorie!]
myMedia: [Media!]!
myMemberships: [Membership!]!
oberthema(oberthemaId: String!): Oberthema
oberthemas: [Oberthema!]
paginatedPosts(connectionArgs: ConnectionArgs!): FeedPostPage!
post(postId: Int!): FeedPost
posts: [FeedPost!]!
searchTeamsByName(teamName: String!): [Team!]!
season(seasonId: Int!): Season
seasonPlan(seasonId: Int!): SeasonPlan
seasonPlans: [SeasonPlan!]
seasons: [Season!]
themenwoche(themenwocheId: String!): Themenwoche
themenwoches: [Themenwoche!]
user(userId: Int!): User
users: [User!]
}
type Season {
endDate: DateTime!
id: Int!
seasonPlan: [SeasonPlan!]!
startDate: DateTime!
startOffsetDate: DateTime!
title: String!
}
type SeasonPlan {
challenges: [SeasonPlanChallenge!]!
createdAt: DateTime!
duration: Int!
id: Int!
position: Int!
season: Season!
themenwoche: Themenwoche!
updatedAt: DateTime!
}
type SeasonPlanChallenge implements IUserChallenge {
challenge: Challenge!
challengeCompletion: ChallengeCompletion
completions: ChallengeCompletion!
id: Int!
plan: SeasonPlan!
rejections: ChallengeRejection!
replaceable: Boolean
}
type Subscription {
id: Int
pushToken: String
user: User
}
type Team {
avatar: Media
closed: Boolean!
description: String
id: Int!
inviteId: String!
members: [Membership!]
name: String!
place: Int
score: Int!
teamSize: TeamSize!
}
type Themenwoche {
challenges: [Challenge!]
content: String!
createdAt: DateTime!
headerImage: WikiImage
kategorie: Kategorie
oberthema: Oberthema
props: Props!
quellen: Quelle
title: String!
updatedAt: DateTime!
usages: [SeasonPlan!]
}
type User {
avatar: Media
challengeCompletions: [ChallengeCompletion!]
challengeRejections: [ChallengeRejection!]
challengeReplacements: [ChallengeReplacement!]
comments: [FeedComment!]
dateCreated: DateTime!
emailConfirmed: Boolean!
id: Int!
isBanned: Boolean!
media: [Media!]
posts: [FeedPost!]
role: Int!
screenName: String!
userName: String!
}
type WikiImage {
canonicalName: String!
createdAt: DateTime!
details: String!
mimetype: String!
props: Props!
timestamp: DateTime!
updatedAt: DateTime!
uploader: String!
url: String!
}
type WikiWarning {
createdAt: DateTime!
id: Int!
props: Props!
updatedAt: DateTime!
warnings: String!
}
"team size brackets"
enum TeamSize {
DUO
HUGE
LARGE
SMALL
SOLO
}
input ConnectionArgs {
"Paginate after opaque cursor"
after: String
"Paginate before opaque cursor"
before: String
"Paginate first"
first: Float
"Paginate last"
last: Float
}
input FeedCommentInput {
body: String!
parent: Int
post: Int!
}
input FeedPostInput {
body: String!
isPinned: Boolean
mediaId: Int
title: String!
ytId: String
}
input SeasonInput {
endDate: DateTime
id: Int
startDate: DateTime
startOffsetDate: DateTime
title: String
}
input SeasonPlanInput {
duration: Int
id: Int
position: Int
seasonId: Int
themenwocheId: String
}
input TeamInput {
closed: Boolean
id: Int
mediaId: Int
teamDescription: String
teamName: String
}
input UserInput {
avatar: String
emailConfirmed: Boolean
id: Int!
isBanned: Boolean
screenName: String
userName: String
}
"The javascript `Date` as string. Type represents date and time as the ISO Date string."
scalar DateTime
"The `Upload` scalar type represents a file upload."
scalar Upload