-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.graphql
More file actions
618 lines (523 loc) · 15.1 KB
/
Copy pathschema.graphql
File metadata and controls
618 lines (523 loc) · 15.1 KB
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
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
### This file was generated by Nexus Schema
### Do not make changes to this file directly
"""
A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.
"""
scalar DateTime
type Discipline {
id: Int!
name: String!
tag(after: TagWhereUniqueInput, before: TagWhereUniqueInput, first: Int, last: Int, orderBy: DisciplineTagOrderByInput, skip: Int): [Tag!]!
}
type DisciplineConnection {
"""
https://facebook.github.io/relay/graphql/connections.htm#sec-Edge-Types
"""
edges: [DisciplineEdge]
"""Flattened list of Discipline type"""
nodes: [Discipline]
"""
https://facebook.github.io/relay/graphql/connections.htm#sec-undefined.PageInfo
"""
pageInfo: PageInfo!
}
type DisciplineEdge {
"""https://facebook.github.io/relay/graphql/connections.htm#sec-Cursor"""
cursor: String!
"""https://facebook.github.io/relay/graphql/connections.htm#sec-Node"""
node: Discipline
}
input DisciplineTagOrderByInput {
type: OrderByArg
}
input DisciplineWhereUniqueInput {
id: Int
}
type Event {
date: String
descr: String
id: Int!
notes: String
owner: String
startdate: Int
status: String!
tag(after: TagWhereUniqueInput, before: TagWhereUniqueInput, first: Int, last: Int, orderBy: EventTagOrderByInput, skip: Int): [Tag!]!
timestamp: DateTime
type: String!
}
type EventEdge {
"""https://facebook.github.io/relay/graphql/connections.htm#sec-Cursor"""
cursor: String!
"""https://facebook.github.io/relay/graphql/connections.htm#sec-Node"""
node: Event
}
input EventTagOrderByInput {
type: OrderByArg
}
input EventWhereUniqueInput {
id: Int
}
type Field {
id: Int!
name: String!
thingid: Int!
value: String
}
input FieldWhereUniqueInput {
id: Int
}
type Morpher {
User: User
audio: String
child(after: MorpherWhereUniqueInput, before: MorpherWhereUniqueInput, first: Int, last: Int, orderBy: MorpherChildOrderByInput, skip: Int): [Morpher!]!
createdAt: DateTime
id: Int!
image: String
media: String
medium: String!
name: String!
order: DateTime
parent: Morpher
parentId: Int
status: String!
text: String
type: String
updatedAt: DateTime
}
input MorpherChildOrderByInput {
order: OrderByArg
}
type MorpherEdge {
"""https://facebook.github.io/relay/graphql/connections.htm#sec-Cursor"""
cursor: String!
"""https://facebook.github.io/relay/graphql/connections.htm#sec-Node"""
node: Morpher
}
input MorpherOrderByInput {
name: OrderByArg
order: OrderByArg
time: OrderByArg
}
input MorpherWhereUniqueInput {
id: Int
}
type Mutation {
completeOnboarding: Boolean
createEvent(date: String, descr: String!, id: Int, notes: String, status: String!, tags: String, type: String!): Event
createMorpher(audio: String, image: String, media: String, medium: String!, name: String!, parentId: Int, status: String!, text: String, type: String): Morpher
createStation(image: String, lati: Float!, long: Float!, media: String, name: String!, parentId: Int, status: String!, text: String!, time: Int!, video: String, website: String, wiki: String, wikipedia: String, zoom: Int!): Station
createThing(fields: String!, id: Int, name: String!, status: String!, tags: String!, type: String!): Thing
createTravelpoint(coordinates: String, date: String, descriptionwh: String, descriptionwikipedia: String, name: String!, note: String, officialsiteurl: String, region: String, sitecountry: String, sitetype: String, status: String!, type: String!, videourl: String, wikidataid: String, wikipediaurl: String, wikivoyageurl: String): Travelpoint
deleteAccount(id: Int!): User
deleteEvent(id: Int!): Event
deleteMorpher(id: Int!): Morpher
deleteStation(id: Int!): Station
deleteThing(id: Int!): Thing
deleteTravelpoint(id: Int!): Travelpoint
login(email: String!, password: String!): User
logout: Boolean
requestPasswordReset(email: String!): Boolean
resetPassword(confirmPassword: String, password: String, resetToken: String): User
signup(confirmPassword: String, email: String, name: String, password: String, role: Int, status: Int): User
updateEvent(date: String, descr: String, id: Int!, notes: String, owner: String, status: String, type: String): Event
updateMorpher(audio: String, id: Int!, image: String, lockby: Int, media: String, medium: String, name: String, order: Float, parentId: Int, status: String, text: String, type: String): Morpher
updateStation(id: Int!, image: String, lati: Float, lockby: Int, long: Float, media: String, name: String, order: Float, parentId: Int, status: String, text: String, time: Int, video: String, website: String, wiki: String, wikipedia: String, zoom: Int): Station
updateThing(fields: String, id: Int!, name: String, owner: String, status: String, type: String): Thing
updateTravelpoint(coordinates: String, date: String, descriptionwh: String, descriptionwikipedia: String, id: Int!, lockby: Int, name: String, note: String, officialsiteurl: String, order: Float, region: String, sitecountry: String, sitetype: String, status: String, type: String, videourl: String, wikidataid: String, wikipediaurl: String, wikivoyageurl: String): Travelpoint
updateUser(email: String, id: Int!, image: String, name: String, password: String, role: Int, status: Int): User
}
type Nation {
abbrev: String!
id: Int!
name: String!
}
type NationConnection {
"""
https://facebook.github.io/relay/graphql/connections.htm#sec-Edge-Types
"""
edges: [NationEdge]
"""Flattened list of Nation type"""
nodes: [Nation]
"""
https://facebook.github.io/relay/graphql/connections.htm#sec-undefined.PageInfo
"""
pageInfo: PageInfo!
}
type NationEdge {
"""https://facebook.github.io/relay/graphql/connections.htm#sec-Cursor"""
cursor: String!
"""https://facebook.github.io/relay/graphql/connections.htm#sec-Node"""
node: Nation
}
input NationWhereUniqueInput {
id: Int
}
enum OrderByArg {
asc
desc
}
"""
PageInfo cursor, as defined in https://facebook.github.io/relay/graphql/connections.htm#sec-undefined.PageInfo
"""
type PageInfo {
"""
The cursor corresponding to the last nodes in edges. Null if the connection is empty.
"""
endCursor: String
"""
Used to indicate whether more edges exist following the set defined by the clients arguments.
"""
hasNextPage: Boolean!
"""
Used to indicate whether more edges exist prior to the set defined by the clients arguments.
"""
hasPreviousPage: Boolean!
"""
The cursor corresponding to the first nodes in edges. Null if the connection is empty.
"""
startCursor: String
}
type Query {
disciplines(
"""Returns the elements in the list that come after the specified cursor"""
after: String
"""Returns the first n elements from the list."""
first: Int!
orderBy: QueryUsersOrderByInput
skip: Int
): DisciplineConnection
events(
"""Returns the elements in the list that come after the specified cursor"""
after: String
"""Returns the first n elements from the list."""
first: Int!
nameQuery: String
orderBy: QueryEventsOrderByInput
skip: Int
statusQuery: String
typeQuery: String
where: EventWhereUniqueInput
): QueryEvents_Connection
me: User
morphers(
"""Returns the elements in the list that come after the specified cursor"""
after: String
discountRange: String
"""Returns the first n elements from the list."""
first: Int!
nameQuery: String
orderBy: MorpherOrderByInput
parentIdQuery: Int
skip: Int
statusQuery: String
typeQuery: String
where: MorpherWhereUniqueInput
): QueryMorphers_Connection
nations(
"""Returns the elements in the list that come after the specified cursor"""
after: String
"""Returns the first n elements from the list."""
first: Int!
orderBy: QueryUsersOrderByInput
skip: Int
): NationConnection
stations(
"""Returns the elements in the list that come after the specified cursor"""
after: String
discountRange: String
"""Returns the first n elements from the list."""
first: Int!
nameQuery: String
orderBy: StationOrderByInput
parentIdQuery: Int
skip: Int
statusQuery: String
typeQuery: String
where: StationWhereUniqueInput
): QueryStations_Connection
things(
"""Returns the elements in the list that come after the specified cursor"""
after: String
"""Returns the first n elements from the list."""
first: Int!
mtypeQuery: String
nameQuery: String
orderBy: QueryThingsOrderByInput
skip: Int
statusQuery: String
typeQuery: String
where: ThingWhereUniqueInput
): QueryThings_Connection
travelpoints(
"""Returns the elements in the list that come after the specified cursor"""
after: String
discountRange: String
"""Returns the first n elements from the list."""
first: Int!
nameQuery: String
orderBy: QueryTravelpointsOrderByInput
skip: Int
statusQuery: String
typeQuery: String
where: TravelpointWhereUniqueInput
): QueryTravelpoints_Connection
users(
"""Returns the elements in the list that come after the specified cursor"""
after: String
"""Returns the first n elements from the list."""
first: Int!
nameQuery: String
orderBy: QueryUsersOrderByInput
skip: Int
where: UserWhereUniqueInput
): QueryUsers_Connection
}
input QueryDisciplinesOrderByInput {
name: OrderByArg
}
input QueryEventsOrderByInput {
descr: OrderByArg
timestamp: OrderByArg
}
type QueryEvents_Connection {
"""
https://facebook.github.io/relay/graphql/connections.htm#sec-Edge-Types
"""
edges: [EventEdge]
"""Flattened list of Event type"""
nodes: [Event]
"""
https://facebook.github.io/relay/graphql/connections.htm#sec-undefined.PageInfo
"""
pageInfo: PageInfo!
totalCount: Int
}
input QueryMorphersOrderByInput {
name: OrderByArg
updatedAt: OrderByArg
}
type QueryMorphers_Connection {
"""
https://facebook.github.io/relay/graphql/connections.htm#sec-Edge-Types
"""
edges: [MorpherEdge]
"""Flattened list of Morpher type"""
nodes: [Morpher]
"""
https://facebook.github.io/relay/graphql/connections.htm#sec-undefined.PageInfo
"""
pageInfo: PageInfo!
totalCount: Int
}
input QueryNationsOrderByInput {
name: OrderByArg
}
input QueryStationsOrderByInput {
name: OrderByArg
updatedAt: OrderByArg
}
type QueryStations_Connection {
"""
https://facebook.github.io/relay/graphql/connections.htm#sec-Edge-Types
"""
edges: [StationEdge]
"""Flattened list of Station type"""
nodes: [Station]
"""
https://facebook.github.io/relay/graphql/connections.htm#sec-undefined.PageInfo
"""
pageInfo: PageInfo!
totalCount: Int
}
input QueryThingsOrderByInput {
name: OrderByArg
timestamp: OrderByArg
}
type QueryThings_Connection {
"""
https://facebook.github.io/relay/graphql/connections.htm#sec-Edge-Types
"""
edges: [ThingEdge]
"""Flattened list of Thing type"""
nodes: [Thing]
"""
https://facebook.github.io/relay/graphql/connections.htm#sec-undefined.PageInfo
"""
pageInfo: PageInfo!
totalCount: Int
}
input QueryTravelpointsOrderByInput {
name: OrderByArg
updatedAt: OrderByArg
}
type QueryTravelpoints_Connection {
"""
https://facebook.github.io/relay/graphql/connections.htm#sec-Edge-Types
"""
edges: [TravelpointEdge]
"""Flattened list of Travelpoint type"""
nodes: [Travelpoint]
"""
https://facebook.github.io/relay/graphql/connections.htm#sec-undefined.PageInfo
"""
pageInfo: PageInfo!
totalCount: Int
}
input QueryUsersOrderByInput {
name: OrderByArg
status: OrderByArg
}
type QueryUsers_Connection {
"""
https://facebook.github.io/relay/graphql/connections.htm#sec-Edge-Types
"""
edges: [UserEdge]
"""Flattened list of User type"""
nodes: [User]
"""
https://facebook.github.io/relay/graphql/connections.htm#sec-undefined.PageInfo
"""
pageInfo: PageInfo!
totalCount: Int
}
type Station {
User: User
child(after: StationWhereUniqueInput, before: StationWhereUniqueInput, first: Int, last: Int, orderBy: StationChildOrderByInput, skip: Int): [Station!]!
createdAt: DateTime
id: Int!
image: String
lati: Float!
long: Float!
media: String
name: String!
order: DateTime
parent: Station
parentId: Int
status: String!
text: String!
time: Int!
updatedAt: DateTime
video: String
website: String
wiki: String
wikipedia: String
zoom: Int!
}
input StationChildOrderByInput {
order: OrderByArg
}
type StationEdge {
"""https://facebook.github.io/relay/graphql/connections.htm#sec-Cursor"""
cursor: String!
"""https://facebook.github.io/relay/graphql/connections.htm#sec-Node"""
node: Station
}
input StationOrderByInput {
name: OrderByArg
order: OrderByArg
time: OrderByArg
}
input StationWhereUniqueInput {
id: Int
}
type Tag {
descr: String
discipline: Discipline
event: Event
flavour: String
id: Int!
tagthing: Thing
thing: Thing
type: String!
}
input TagWhereUniqueInput {
id: Int
}
type Thing {
Owner: User
field(after: FieldWhereUniqueInput, before: FieldWhereUniqueInput, first: Int, last: Int, orderBy: ThingFieldOrderByInput, skip: Int): [Field!]!
id: Int!
name: String
searchtext: String
status: String
tag(after: TagWhereUniqueInput, before: TagWhereUniqueInput, first: Int, last: Int, orderBy: ThingTagOrderByInput, skip: Int): [Tag!]!
timestamp: DateTime
type: String!
}
type ThingEdge {
"""https://facebook.github.io/relay/graphql/connections.htm#sec-Cursor"""
cursor: String!
"""https://facebook.github.io/relay/graphql/connections.htm#sec-Node"""
node: Thing
}
input ThingFieldOrderByInput {
name: OrderByArg
}
input ThingTagOrderByInput {
type: OrderByArg
}
input ThingWhereUniqueInput {
id: Int
}
type Travelpoint {
User: User
coordinates: String
createdAt: DateTime
date: String
descriptionwh: String
descriptionwikipedia: String
id: Int!
name: String!
note: String
officialsiteurl: String
order: DateTime
region: String
sitecountry: String
sitetype: String
status: String!
type: String!
updatedAt: DateTime
videourl: String
wikidataid: String
wikipediaurl: String
wikivoyageurl: String
}
type TravelpointEdge {
"""https://facebook.github.io/relay/graphql/connections.htm#sec-Cursor"""
cursor: String!
"""https://facebook.github.io/relay/graphql/connections.htm#sec-Node"""
node: Travelpoint
}
input TravelpointWhereUniqueInput {
id: Int
}
"""The `Upload` scalar type represents a file upload."""
scalar Upload
type User {
Station(after: StationWhereUniqueInput, before: StationWhereUniqueInput, first: Int, last: Int, orderBy: UserStationOrderByInput, skip: Int): [Station!]!
email: String!
hasCompletedOnboarding: Boolean!
hasVerifiedEmail: Boolean
id: Int!
image: String
name: String!
password: String
role: Int
status: Int
token: String
}
type UserEdge {
"""https://facebook.github.io/relay/graphql/connections.htm#sec-Cursor"""
cursor: String!
"""https://facebook.github.io/relay/graphql/connections.htm#sec-Node"""
node: User
}
input UserStationOrderByInput {
createdAt: OrderByArg
}
input UserWhereUniqueInput {
email: String
googleId: String
id: Int
name: String
}