-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
447 lines (408 loc) · 10.8 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
439
440
441
442
443
444
445
446
447
schema {
query: Query
mutation: Mutation
subscription: Subscription
}
type Issue @aws_api_key @aws_iam {
Answer: String!
Area: String!
Difficult: Int
Points: Int!
Question: String!
SubArea: String!
Theme: String
Type: String
_deleted: Boolean
_lastChangedAt: AWSTimestamp!
_version: Int!
createdAt: AWSDateTime!
id: ID!
updatedAt: AWSDateTime!
userID: ID!
}
type ModelIssueConnection @aws_api_key @aws_iam {
items: [Issue]!
nextToken: String
startedAt: AWSTimestamp
}
type ModelSubjectConnection @aws_api_key @aws_iam {
items: [Subject]!
nextToken: String
startedAt: AWSTimestamp
}
type ModelTaskConnection @aws_api_key @aws_iam {
items: [Task]!
nextToken: String
startedAt: AWSTimestamp
}
type ModelUserConnection @aws_api_key @aws_iam {
items: [User]!
nextToken: String
startedAt: AWSTimestamp
}
type Mutation {
createIssue(condition: ModelIssueConditionInput, input: CreateIssueInput!): Issue @aws_api_key @aws_iam
createSubject(condition: ModelSubjectConditionInput, input: CreateSubjectInput!): Subject @aws_api_key @aws_iam
createTask(condition: ModelTaskConditionInput, input: CreateTaskInput!): Task @aws_api_key @aws_iam
createUser(condition: ModelUserConditionInput, input: CreateUserInput!): User @aws_api_key @aws_iam
deleteIssue(condition: ModelIssueConditionInput, input: DeleteIssueInput!): Issue @aws_api_key @aws_iam
deleteSubject(condition: ModelSubjectConditionInput, input: DeleteSubjectInput!): Subject @aws_api_key @aws_iam
deleteTask(condition: ModelTaskConditionInput, input: DeleteTaskInput!): Task @aws_api_key @aws_iam
deleteUser(condition: ModelUserConditionInput, input: DeleteUserInput!): User @aws_api_key @aws_iam
updateIssue(condition: ModelIssueConditionInput, input: UpdateIssueInput!): Issue @aws_api_key @aws_iam
updateSubject(condition: ModelSubjectConditionInput, input: UpdateSubjectInput!): Subject @aws_api_key @aws_iam
updateTask(condition: ModelTaskConditionInput, input: UpdateTaskInput!): Task @aws_api_key @aws_iam
updateUser(condition: ModelUserConditionInput, input: UpdateUserInput!): User @aws_api_key @aws_iam
}
type Query {
getIssue(id: ID!): Issue @aws_api_key @aws_iam
getSubject(id: ID!): Subject @aws_api_key @aws_iam
getTask(id: ID!): Task @aws_api_key @aws_iam
getUser(id: ID!): User @aws_api_key @aws_iam
listIssues(filter: ModelIssueFilterInput, limit: Int, nextToken: String): ModelIssueConnection @aws_api_key @aws_iam
listSubjects(filter: ModelSubjectFilterInput, limit: Int, nextToken: String): ModelSubjectConnection @aws_api_key @aws_iam
listTasks(filter: ModelTaskFilterInput, limit: Int, nextToken: String): ModelTaskConnection @aws_api_key @aws_iam
listUsers(filter: ModelUserFilterInput, limit: Int, nextToken: String): ModelUserConnection @aws_api_key @aws_iam
syncIssues(filter: ModelIssueFilterInput, lastSync: AWSTimestamp, limit: Int, nextToken: String): ModelIssueConnection @aws_api_key @aws_iam
syncSubjects(filter: ModelSubjectFilterInput, lastSync: AWSTimestamp, limit: Int, nextToken: String): ModelSubjectConnection @aws_api_key @aws_iam
syncTasks(filter: ModelTaskFilterInput, lastSync: AWSTimestamp, limit: Int, nextToken: String): ModelTaskConnection @aws_api_key @aws_iam
syncUsers(filter: ModelUserFilterInput, lastSync: AWSTimestamp, limit: Int, nextToken: String): ModelUserConnection @aws_api_key @aws_iam
}
type Subject @aws_api_key @aws_iam {
Credits: Int!
Days: [String!]
Name: String!
Teacher: String!
Timetable(filter: ModelTaskFilterInput, limit: Int, nextToken: String, sortDirection: ModelSortDirection): ModelTaskConnection
_deleted: Boolean
_lastChangedAt: AWSTimestamp!
_version: Int!
createdAt: AWSDateTime!
id: ID!
updatedAt: AWSDateTime!
userID: ID!
}
type Subscription {
onCreateIssue: Issue @aws_api_key @aws_iam @aws_subscribe(mutations : ["createIssue"])
onCreateSubject: Subject @aws_api_key @aws_iam @aws_subscribe(mutations : ["createSubject"])
onCreateTask: Task @aws_api_key @aws_iam @aws_subscribe(mutations : ["createTask"])
onCreateUser: User @aws_api_key @aws_iam @aws_subscribe(mutations : ["createUser"])
onDeleteIssue: Issue @aws_api_key @aws_iam @aws_subscribe(mutations : ["deleteIssue"])
onDeleteSubject: Subject @aws_api_key @aws_iam @aws_subscribe(mutations : ["deleteSubject"])
onDeleteTask: Task @aws_api_key @aws_iam @aws_subscribe(mutations : ["deleteTask"])
onDeleteUser: User @aws_api_key @aws_iam @aws_subscribe(mutations : ["deleteUser"])
onUpdateIssue: Issue @aws_api_key @aws_iam @aws_subscribe(mutations : ["updateIssue"])
onUpdateSubject: Subject @aws_api_key @aws_iam @aws_subscribe(mutations : ["updateSubject"])
onUpdateTask: Task @aws_api_key @aws_iam @aws_subscribe(mutations : ["updateTask"])
onUpdateUser: User @aws_api_key @aws_iam @aws_subscribe(mutations : ["updateUser"])
}
type Task @aws_api_key @aws_iam {
Description: String!
FinalDate: AWSTimestamp!
StartDate: AWSTimestamp!
_deleted: Boolean
_lastChangedAt: AWSTimestamp!
_version: Int!
createdAt: AWSDateTime!
id: ID!
subjectID: ID!
updatedAt: AWSDateTime!
userID: ID!
}
type User @aws_api_key @aws_iam {
Email: String!
Experience: Float!
Icon: AWSURL
Issues(filter: ModelIssueFilterInput, limit: Int, nextToken: String, sortDirection: ModelSortDirection): ModelIssueConnection
Level: Int!
Name: String!
Password: String!
Subjects(filter: ModelSubjectFilterInput, limit: Int, nextToken: String, sortDirection: ModelSortDirection): ModelSubjectConnection
Tasks(filter: ModelTaskFilterInput, limit: Int, nextToken: String, sortDirection: ModelSortDirection): ModelTaskConnection
Username: String!
_deleted: Boolean
_lastChangedAt: AWSTimestamp!
_version: Int!
createdAt: AWSDateTime!
id: ID!
updatedAt: AWSDateTime!
}
enum ModelAttributeTypes {
_null
binary
binarySet
bool
list
map
number
numberSet
string
stringSet
}
enum ModelSortDirection {
ASC
DESC
}
input CreateIssueInput {
Answer: String!
Area: String!
Difficult: Int
Points: Int!
Question: String!
SubArea: String!
Theme: String
Type: String
_version: Int
id: ID
userID: ID!
}
input CreateSubjectInput {
Credits: Int!
Days: [String!]
Name: String!
Teacher: String!
_version: Int
id: ID
userID: ID!
}
input CreateTaskInput {
Description: String!
FinalDate: AWSTimestamp!
StartDate: AWSTimestamp!
_version: Int
id: ID
subjectID: ID!
userID: ID!
}
input CreateUserInput {
Email: String!
Experience: Float!
Icon: AWSURL
Level: Int!
Name: String!
Password: String!
Username: String!
_version: Int
id: ID
}
input DeleteIssueInput {
_version: Int
id: ID!
}
input DeleteSubjectInput {
_version: Int
id: ID!
}
input DeleteTaskInput {
_version: Int
id: ID!
}
input DeleteUserInput {
_version: Int
id: ID!
}
input ModelBooleanInput {
attributeExists: Boolean
attributeType: ModelAttributeTypes
eq: Boolean
ne: Boolean
}
input ModelFloatInput {
attributeExists: Boolean
attributeType: ModelAttributeTypes
between: [Float]
eq: Float
ge: Float
gt: Float
le: Float
lt: Float
ne: Float
}
input ModelIDInput {
attributeExists: Boolean
attributeType: ModelAttributeTypes
beginsWith: ID
between: [ID]
contains: ID
eq: ID
ge: ID
gt: ID
le: ID
lt: ID
ne: ID
notContains: ID
size: ModelSizeInput
}
input ModelIntInput {
attributeExists: Boolean
attributeType: ModelAttributeTypes
between: [Int]
eq: Int
ge: Int
gt: Int
le: Int
lt: Int
ne: Int
}
input ModelIssueConditionInput {
Answer: ModelStringInput
Area: ModelStringInput
Difficult: ModelIntInput
Points: ModelIntInput
Question: ModelStringInput
SubArea: ModelStringInput
Theme: ModelStringInput
Type: ModelStringInput
and: [ModelIssueConditionInput]
not: ModelIssueConditionInput
or: [ModelIssueConditionInput]
userID: ModelIDInput
}
input ModelIssueFilterInput {
Answer: ModelStringInput
Area: ModelStringInput
Difficult: ModelIntInput
Points: ModelIntInput
Question: ModelStringInput
SubArea: ModelStringInput
Theme: ModelStringInput
Type: ModelStringInput
and: [ModelIssueFilterInput]
id: ModelIDInput
not: ModelIssueFilterInput
or: [ModelIssueFilterInput]
userID: ModelIDInput
}
input ModelSizeInput {
between: [Int]
eq: Int
ge: Int
gt: Int
le: Int
lt: Int
ne: Int
}
input ModelStringInput {
attributeExists: Boolean
attributeType: ModelAttributeTypes
beginsWith: String
between: [String]
contains: String
eq: String
ge: String
gt: String
le: String
lt: String
ne: String
notContains: String
size: ModelSizeInput
}
input ModelSubjectConditionInput {
Credits: ModelIntInput
Days: ModelStringInput
Name: ModelStringInput
Teacher: ModelStringInput
and: [ModelSubjectConditionInput]
not: ModelSubjectConditionInput
or: [ModelSubjectConditionInput]
userID: ModelIDInput
}
input ModelSubjectFilterInput {
Credits: ModelIntInput
Days: ModelStringInput
Name: ModelStringInput
Teacher: ModelStringInput
and: [ModelSubjectFilterInput]
id: ModelIDInput
not: ModelSubjectFilterInput
or: [ModelSubjectFilterInput]
userID: ModelIDInput
}
input ModelTaskConditionInput {
Description: ModelStringInput
FinalDate: ModelIntInput
StartDate: ModelIntInput
and: [ModelTaskConditionInput]
not: ModelTaskConditionInput
or: [ModelTaskConditionInput]
subjectID: ModelIDInput
userID: ModelIDInput
}
input ModelTaskFilterInput {
Description: ModelStringInput
FinalDate: ModelIntInput
StartDate: ModelIntInput
and: [ModelTaskFilterInput]
id: ModelIDInput
not: ModelTaskFilterInput
or: [ModelTaskFilterInput]
subjectID: ModelIDInput
userID: ModelIDInput
}
input ModelUserConditionInput {
Email: ModelStringInput
Experience: ModelFloatInput
Icon: ModelStringInput
Level: ModelIntInput
Name: ModelStringInput
Password: ModelStringInput
Username: ModelStringInput
and: [ModelUserConditionInput]
not: ModelUserConditionInput
or: [ModelUserConditionInput]
}
input ModelUserFilterInput {
Email: ModelStringInput
Experience: ModelFloatInput
Icon: ModelStringInput
Level: ModelIntInput
Name: ModelStringInput
Password: ModelStringInput
Username: ModelStringInput
and: [ModelUserFilterInput]
id: ModelIDInput
not: ModelUserFilterInput
or: [ModelUserFilterInput]
}
input UpdateIssueInput {
Answer: String
Area: String
Difficult: Int
Points: Int
Question: String
SubArea: String
Theme: String
Type: String
_version: Int
id: ID!
userID: ID
}
input UpdateSubjectInput {
Credits: Int
Days: [String!]
Name: String
Teacher: String
_version: Int
id: ID!
userID: ID
}
input UpdateTaskInput {
Description: String
FinalDate: AWSTimestamp
StartDate: AWSTimestamp
_version: Int
id: ID!
subjectID: ID
userID: ID
}
input UpdateUserInput {
Email: String
Experience: Float
Icon: AWSURL
Level: Int
Name: String
Password: String
Username: String
_version: Int
id: ID!
}