-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.gql
459 lines (397 loc) · 9.04 KB
/
schema.gql
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
448
449
450
451
452
453
454
455
456
457
458
459
# ------------------------------------------------------
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
# ------------------------------------------------------
type UserResponse {
id: Float!
email: String!
name: String!
is_admin: Boolean!
token: String!
}
type NewsResponse {
id: Int!
title: String!
member: MemberResponse!
datetime: DateTime!
summary: String!
link: String!
imageUrl: String!
isDisclosed: Boolean!
}
"""
A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
"""
scalar DateTime
type ProjectMemberResponse {
id: Int!
member: MemberResponse!
project: ProjectResponse!
role: ProjectRoleType!
}
enum ProjectRoleType {
TEAM_LEADER
TEAM_MEMBER
}
type ProjectResponse {
id: Int!
period: PeriodResponse!
name: String!
url: [ProjectUrlResponse!]!
summary: String!
imageUrl: String!
members: [ProjectMemberResponse!]!
}
type ProjectUrlResponse {
type: ProjectUrlType!
url: String!
}
enum ProjectUrlType {
MEDIUM
YOUTUBE
WEBSITE
}
type PeriodResponse {
id: Int
generation: Float
members: [PeriodMemberResponse!]
projects: [ProjectResponse!]
}
type PeriodMemberResponse {
id: Int!
role: PeriodRoleType!
member: MemberResponse!
period: PeriodResponse!
}
enum PeriodRoleType {
PRESIDENT
VICE_PRESIDENT
MEDIA_LEAD
MANAGER
MEMBER
MENTOR
}
type ContactResponse {
id: Int!
ownerId: Int
type: ContactType
url: String
}
enum ContactType {
GITHUB
LINKEDIN
MEDIUM
EMAIL
WEBSITE
BLOG
BRUNCH
FACEBOOK
}
type MemberResponse {
id: Int!
name: String!
info: String!
imageUrl: String!
news: [NewsResponse!]
contacts: [ContactResponse!]
periods: [PeriodMemberResponse!]
}
type MediumMemberResponse {
member: MemberResponse!
medium: MediumResponse!
}
type TagResponse {
id: Int!
name: String!
mediums: [MediumTagResponse!]!
}
type MediumTagResponse {
id: Int!
tag: TagResponse!
medium: MediumResponse!
}
type MediumResponse {
id: Int!
title: String!
url: String!
imageUrl: String!
summary: String!
authors: [MediumMemberResponse!]!
tags: [MediumTagResponse!]!
}
type CountResponse {
count: Int!
}
type DeferencePartnerLogoUrlResponse {
id: Int!
name: String!
imageUrl: String!
}
type DeferenceReferenceResponse {
id: Int!
type: String!
link: String!
}
type DeferenceSpeakerResponse {
id: Int!
name: String!
imageUrl: String!
info: String!
}
type DeferenceResponse {
id: Int!
year: Int!
summary: String!
startTime: DateTime!
endTime: DateTime!
participationMethod: String!
contents: String!
audience: String!
host: String!
formLink: String!
mainPosterUrlDesktop: String!
mainPosterUrlMobile: String!
schedulePosterUrlDesktop: String!
schedulePosterUrlMobile: String!
deferenceSpeaker: [DeferenceSpeakerResponse!]
deferenceReference: [DeferenceReferenceResponse!]
deferencePartnerLogoUrl: [DeferencePartnerLogoUrlResponse!]
}
type Query {
signinUser(data: UserSigninInput!): UserResponse!
findUsers(data: UsersFindInput!): [UserResponse!]
findUser(data: UserFindInput!): UserResponse
member(memberUniqueInput: MemberUniqueInput!): MemberResponse!
members(memberFindManyInput: MemberFindManyInput!): [MemberResponse!]!
periodMembers(periodFindInput: PeriodFindInput!): [PeriodMemberResponse!]!
period(periodFindInput: PeriodFindInput!): PeriodResponse!
periods(periodFindInput: PeriodFindInput!): [PeriodResponse!]!
project(projectUniqueInput: ProjectUniqueInput!): ProjectResponse!
projects(projectFindManyInput: ProjectFindManyInput!): [ProjectResponse!]!
getNewsById(id: Float!): NewsResponse
countTotalNews: CountResponse!
getAllNews(FindManyNewsInput: FindManyNewsInput!): [NewsResponse!]!
getDeferenceById(id: Float!): DeferenceResponse
getDeferences: [DeferenceResponse!]!
medium(mediumUniqueInput: MediumUniqueInput!): MediumResponse!
mediums(mediumFindManyInput: MediumFindManyInput!): [MediumResponse!]!
tags: [TagResponse!]!
countTotalMedium(mediumCountInput: MediumCountInput!): CountResponse!
}
input UserSigninInput {
email: String!
password: String!
}
input UsersFindInput {
orderBy: String
}
input UserFindInput {
id: Float!
}
input MemberUniqueInput {
id: Int!
}
input MemberFindManyInput {
orderBy: String
periodId: Int
}
input PeriodFindInput {
id: Int
}
input ProjectUniqueInput {
id: Int!
}
input ProjectFindManyInput {
orderBy: String
}
input FindManyNewsInput {
offset: Int
page: Int
}
input MediumUniqueInput {
id: Int!
}
input MediumFindManyInput {
tagId: Int
offset: Int
page: Int
}
input MediumCountInput {
tagId: Int
}
type Mutation {
signupUser(data: UserSignupInput!): UserResponse!
createMember(memberInput: MemberInput!): MemberResponse!
updateMember(memberUpdateInput: MemberUpdateInput!): MemberResponse!
deleteMember(memberUniqueInput: MemberUniqueInput!): MemberResponse!
createPeriod(periodInput: PeriodInput!): PeriodResponse!
createPeriodMember(periodMemberCreateInput: PeriodMemberInput!): PeriodMemberResponse!
updatePeriodMember(periodMemberUpdateInput: PeriodMemberInput!): PeriodMemberResponse!
deletePeriodMember(periodMemberUniqueInput: PeriodMemberUniqueInput!): PeriodMemberResponse!
createProject(projectInput: ProjectInput!): ProjectResponse!
updateProject(projectUpdateInput: ProjectUpdateInput!): ProjectResponse!
deleteProject(projectUniqueInput: ProjectUniqueInput!): ProjectResponse!
createNews(createNewsInput: CreateNewsInput!): NewsResponse!
updateNews(updateNewsInput: UpdateNewsInput!): NewsResponse!
deleteNews(id: Float!): NewsResponse!
createDeference(createDeferenceInput: CreateDeferenceInput!): DeferenceResponse!
updateDeference(updateDeferenceInput: UpdateDeferenceInput!): DeferenceResponse!
deleteDeference(id: Float!): DeferenceResponse!
createTag(tagCreateInput: TagCreateInput!): TagResponse!
deleteTag(tagUniqueInput: TagUniqueInput!): TagResponse!
createMedium(mediumCreateInput: MediumInput!): MediumResponse!
updateMedium(mediumUpdateInput: MediumUpdateInput!): MediumResponse!
deleteMedium(mediumUniqueInput: MediumUniqueInput!): MediumResponse!
}
input UserSignupInput {
email: String!
name: String!
password: String!
}
input MemberInput {
name: String!
info: String!
imageUrl: String!
contacts: [ContactInput!]!
periods: [PeriodMemberInput!]
}
input ContactInput {
type: ContactType!
url: String!
}
input PeriodMemberInput {
role: PeriodRoleType!
memberId: Int
periodId: Int
}
input MemberUpdateInput {
id: Int!
data: MemberInput!
}
input PeriodInput {
generation: Float!
}
input PeriodMemberUniqueInput {
memberId: Int!
periodId: Int!
}
input ProjectInput {
name: String!
periodId: Int!
url: [ProjectUrlInput!]!
summary: String!
imageUrl: String!
members: [ProjectMemberInput!]!
}
input ProjectUrlInput {
type: ProjectUrlType!
url: String!
}
input ProjectMemberInput {
role: ProjectRoleType!
memberId: Int!
}
input ProjectUpdateInput {
id: Int!
data: ProjectInput
}
input CreateNewsInput {
title: String!
memberId: Int!
summary: String!
link: String!
imageUrl: String!
isDisclosed: Boolean!
}
input UpdateNewsInput {
id: Int!
title: String!
memberId: Int!
summary: String!
link: String!
imageUrl: String!
isDisclosed: Boolean!
}
input CreateDeferenceInput {
year: Int!
summary: String!
startTime: DateTime!
endTime: DateTime!
participationMethod: String!
contents: String!
audience: String!
host: String!
formLink: String!
mainPosterUrlDesktop: String!
mainPosterUrlMobile: String!
schedulePosterUrlDesktop: String!
schedulePosterUrlMobile: String!
deferenceSpeaker: [CreateDeferenceSpeakerInput!]!
deferenceReference: [CreateDeferenceReferenceInput!]!
deferencePartnerLogoUrl: [CreateDeferencePartnerLogoUrlInput!]!
}
input CreateDeferenceSpeakerInput {
name: String!
imageUrl: String!
info: String!
}
input CreateDeferenceReferenceInput {
type: String!
link: String!
}
input CreateDeferencePartnerLogoUrlInput {
name: String!
imageUrl: String!
}
input UpdateDeferenceInput {
id: Int!
year: Int!
summary: String!
startTime: DateTime!
endTime: DateTime!
participationMethod: String!
contents: String!
audience: String!
host: String!
formLink: String!
mainPosterUrlDesktop: String!
mainPosterUrlMobile: String!
schedulePosterUrlDesktop: String!
schedulePosterUrlMobile: String!
deferenceSpeaker: UpdateDeferenceSpeakerInput!
deferenceReference: UpdateDeferenceReferenceInput!
deferencePartnerLogoUrl: UpdateDeferencePartnerLogoUrlInput!
}
input UpdateDeferenceSpeakerInput {
id: Int!
name: String!
imageUrl: String!
info: String!
}
input UpdateDeferenceReferenceInput {
id: Int!
type: String!
link: String!
}
input UpdateDeferencePartnerLogoUrlInput {
id: Int!
name: String!
imageUrl: String!
}
input TagCreateInput {
name: String!
}
input TagUniqueInput {
id: Int!
}
input MediumInput {
title: String!
url: String!
imageUrl: String!
summary: String!
memberIds: [Int!]!
tagIds: [Int!]!
}
input MediumUpdateInput {
id: Int!
data: MediumInput!
}