-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocumentation.json
556 lines (556 loc) · 19.5 KB
/
documentation.json
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
[
{
"name": "Swapi.Query",
"comment": " The top-level query for the GraphQL endoint which you can explore at\n[graphqelm.herokuapp.com](https://graphqelm.herokuapp.com)\n@docs selection, droid, hero, heroUnion, human, greet\n",
"aliases": [],
"types": [],
"values": [
{
"name": "droid",
"comment": "\n\n - id - ID of the droid.\n\n",
"type": "{ id : Swapi.Scalar.Id } -> Graphqelm.SelectionSet.SelectionSet decodesTo Swapi.Object.Droid -> Graphqelm.Field.Field (Maybe.Maybe decodesTo) Graphqelm.Operation.RootQuery"
},
{
"name": "greet",
"comment": "\n\n - input - input arguments\n\n",
"type": "{ input : Swapi.InputObject.Greeting.Greeting } -> Graphqelm.Field.Field String Graphqelm.Operation.RootQuery"
},
{
"name": "hero",
"comment": "\n\n - episode - If omitted, returns the hero of the whole saga. If provided, returns the hero of that particular episode.\n\n",
"type": "({ episode : Graphqelm.OptionalArgument.OptionalArgument Swapi.Enum.Episode.Episode } -> { episode : Graphqelm.OptionalArgument.OptionalArgument Swapi.Enum.Episode.Episode }) -> Graphqelm.SelectionSet.SelectionSet decodesTo Swapi.Interface.Character -> Graphqelm.Field.Field decodesTo Graphqelm.Operation.RootQuery"
},
{
"name": "heroUnion",
"comment": "\n\n - episode - If omitted, returns the hero of the whole saga. If provided, returns the hero of that particular episode.\n\n",
"type": "({ episode : Graphqelm.OptionalArgument.OptionalArgument Swapi.Enum.Episode.Episode } -> { episode : Graphqelm.OptionalArgument.OptionalArgument Swapi.Enum.Episode.Episode }) -> Graphqelm.SelectionSet.SelectionSet decodesTo Swapi.Union.CharacterUnion -> Graphqelm.Field.Field (Maybe.Maybe decodesTo) Graphqelm.Operation.RootQuery"
},
{
"name": "human",
"comment": "\n\n - id - ID of the human.\n\n",
"type": "{ id : Swapi.Scalar.Id } -> Graphqelm.SelectionSet.SelectionSet decodesTo Swapi.Object.Human -> Graphqelm.Field.Field (Maybe.Maybe decodesTo) Graphqelm.Operation.RootQuery"
},
{
"name": "selection",
"comment": " Select fields to build up a top-level query. The request can be sent with\nfunctions from `Graphqelm.Http`.\n",
"type": "(a -> constructor) -> Graphqelm.SelectionSet.SelectionSet (a -> constructor) Graphqelm.Operation.RootQuery"
}
],
"generated-with-elm-version": "0.18.0"
},
{
"name": "Swapi.InputObject.Greeting",
"comment": "\n\n@docs Greeting, encode\n\n",
"aliases": [
{
"name": "Greeting",
"comment": " Type for the Greeting input object.\n",
"args": [],
"type": "{ language : Graphqelm.OptionalArgument.OptionalArgument Swapi.Enum.Language.Language , name : String , options : Graphqelm.OptionalArgument.OptionalArgument Swapi.InputObject.GreetingOptions.GreetingOptions }"
}
],
"types": [],
"values": [
{
"name": "encode",
"comment": " Encode a Greeting into a value that can be used as an argument.\n",
"type": "Swapi.InputObject.Greeting.Greeting -> Graphqelm.Internal.Encode.Value"
}
],
"generated-with-elm-version": "0.18.0"
},
{
"name": "Swapi.Object.ChatMessage",
"comment": " Chat messages for subscriptions demo\n\n@docs selection, character, phrase\n\n",
"aliases": [],
"types": [],
"values": [
{
"name": "character",
"comment": " The character who sent the message.\n",
"type": "Graphqelm.SelectionSet.SelectionSet decodesTo Swapi.Interface.Character -> Graphqelm.Field.Field (Maybe.Maybe decodesTo) Swapi.Object.ChatMessage"
},
{
"name": "phrase",
"comment": " The phrase that was sent as the message.\n",
"type": "Graphqelm.Field.Field Swapi.Enum.Phrase.Phrase Swapi.Object.ChatMessage"
},
{
"name": "selection",
"comment": " Select fields to build up a SelectionSet for this object.\n",
"type": "(a -> constructor) -> Graphqelm.SelectionSet.SelectionSet (a -> constructor) Swapi.Object.ChatMessage"
}
],
"generated-with-elm-version": "0.18.0"
},
{
"name": "Swapi.Mutation",
"comment": " Declarations for mutations.\n@docs selection, sendMessage\n",
"aliases": [],
"types": [],
"values": [
{
"name": "selection",
"comment": " Select fields to build up a top-level mutation. The request can be sent with\nfunctions from `Graphqelm.Http`.\n",
"type": "(a -> constructor) -> Graphqelm.SelectionSet.SelectionSet (a -> constructor) Graphqelm.Operation.RootMutation"
},
{
"name": "sendMessage",
"comment": " send a message for the realtime subscriptions to see.\n",
"type": "{ characterId : Swapi.Scalar.Id, phrase : Swapi.Enum.Phrase.Phrase } -> Graphqelm.SelectionSet.SelectionSet decodesTo Swapi.Object.ChatMessage -> Graphqelm.Field.Field (Maybe.Maybe decodesTo) Graphqelm.Operation.RootMutation"
}
],
"generated-with-elm-version": "0.18.0"
},
{
"name": "Swapi.Interface.Character",
"comment": " Code for retrieving fields from a Character in a type-safe way.\n@docs selection, commonSelection, onDroid, onHuman, appearsIn, friends, id, name, avatarUrl\n",
"aliases": [],
"types": [],
"values": [
{
"name": "appearsIn",
"comment": " Which movies they appear in.\n",
"type": "Graphqelm.Field.Field (List Swapi.Enum.Episode.Episode) Swapi.Interface.Character"
},
{
"name": "avatarUrl",
"comment": " Url to a profile picture for the character.\n",
"type": "Graphqelm.Field.Field String Swapi.Interface.Character"
},
{
"name": "commonSelection",
"comment": " Select only common fields from the interface.\n",
"type": "(a -> constructor) -> Graphqelm.SelectionSet.SelectionSet (a -> constructor) Swapi.Interface.Character"
},
{
"name": "friends",
"comment": " The friends of the character, or an empty list if they have none.\n",
"type": "Graphqelm.SelectionSet.SelectionSet decodesTo Swapi.Interface.Character -> Graphqelm.Field.Field (List decodesTo) Swapi.Interface.Character"
},
{
"name": "id",
"comment": " The ID of the character.\n",
"type": "Graphqelm.Field.Field Swapi.Scalar.Id Swapi.Interface.Character"
},
{
"name": "name",
"comment": " The name of the character.\n",
"type": "Graphqelm.Field.Field String Swapi.Interface.Character"
},
{
"name": "onDroid",
"comment": " Select the fields to use when the type is Droid.\n",
"type": "Graphqelm.SelectionSet.SelectionSet decodesTo Swapi.Object.Droid -> Graphqelm.SelectionSet.FragmentSelectionSet decodesTo Swapi.Interface.Character"
},
{
"name": "onHuman",
"comment": " Select the fields to use when the type is Human.\n",
"type": "Graphqelm.SelectionSet.SelectionSet decodesTo Swapi.Object.Human -> Graphqelm.SelectionSet.FragmentSelectionSet decodesTo Swapi.Interface.Character"
},
{
"name": "selection",
"comment": " Select both common and type-specific fields from the interface.\n",
"type": "(Maybe.Maybe typeSpecific -> a -> constructor) -> List (Graphqelm.SelectionSet.FragmentSelectionSet typeSpecific Swapi.Interface.Character) -> Graphqelm.SelectionSet.SelectionSet (a -> constructor) Swapi.Interface.Character"
}
],
"generated-with-elm-version": "0.18.0"
},
{
"name": "Swapi.Union.CharacterUnion",
"comment": " Code for retrieving fields from a CharacterUnion in a type-safe way.\n@docs selection, onHuman, onDroid\n",
"aliases": [],
"types": [],
"values": [
{
"name": "onDroid",
"comment": " Select fields to use when the type is Droid.\n",
"type": "Graphqelm.SelectionSet.SelectionSet decodesTo Swapi.Object.Droid -> Graphqelm.SelectionSet.FragmentSelectionSet decodesTo Swapi.Union.CharacterUnion"
},
{
"name": "onHuman",
"comment": " Select the fields to use when the type is Human.\n",
"type": "Graphqelm.SelectionSet.SelectionSet decodesTo Swapi.Object.Human -> Graphqelm.SelectionSet.FragmentSelectionSet decodesTo Swapi.Union.CharacterUnion"
},
{
"name": "selection",
"comment": " Specify fields to use for the object.\n",
"type": "(Maybe.Maybe typeSpecific -> constructor) -> List (Graphqelm.SelectionSet.FragmentSelectionSet typeSpecific Swapi.Union.CharacterUnion) -> Graphqelm.SelectionSet.SelectionSet constructor Swapi.Union.CharacterUnion"
}
],
"generated-with-elm-version": "0.18.0"
},
{
"name": "Swapi.Subscription",
"comment": "\n\n@docs selection, newMessage\n\n",
"aliases": [],
"types": [],
"values": [
{
"name": "newMessage",
"comment": " Listen for new messages that are published.\n",
"type": "Graphqelm.SelectionSet.SelectionSet decodesTo Swapi.Object.ChatMessage -> Graphqelm.Field.Field decodesTo Graphqelm.Operation.RootSubscription"
},
{
"name": "selection",
"comment": " Select fields to build up a top-level mutation. The request can be sent with\nfunctions from `Graphqelm.Http`.\n",
"type": "(a -> constructor) -> Graphqelm.SelectionSet.SelectionSet (a -> constructor) Graphqelm.Operation.RootSubscription"
}
],
"generated-with-elm-version": "0.18.0"
},
{
"name": "Swapi.Object.Human",
"comment": " Code for retrieving fields from a Human in a type-safe way.\n@docs selection, appearsIn, friends, id, name, homePlanet, avatarUrl\n",
"aliases": [],
"types": [],
"values": [
{
"name": "appearsIn",
"comment": " Which movies they appear in.\n",
"type": "Graphqelm.Field.Field (List Swapi.Enum.Episode.Episode) Swapi.Object.Human"
},
{
"name": "avatarUrl",
"comment": " Url to a profile picture for the character.\n",
"type": "Graphqelm.Field.Field String Swapi.Object.Human"
},
{
"name": "friends",
"comment": " The friends of the human, or an empty list if they have none.\n",
"type": "Graphqelm.SelectionSet.SelectionSet decodesTo Swapi.Interface.Character -> Graphqelm.Field.Field (List decodesTo) Swapi.Object.Human"
},
{
"name": "homePlanet",
"comment": " The home planet of the human, or null if unknown.\n",
"type": "Graphqelm.Field.Field (Maybe.Maybe String) Swapi.Object.Human"
},
{
"name": "id",
"comment": " The ID of the human.\n",
"type": "Graphqelm.Field.Field Swapi.Scalar.Id Swapi.Object.Human"
},
{
"name": "name",
"comment": " The name of the human.\n",
"type": "Graphqelm.Field.Field String Swapi.Object.Human"
},
{
"name": "selection",
"comment": " Select fields to build up a SelectionSet for this object.\n",
"type": "(a -> constructor) -> Graphqelm.SelectionSet.SelectionSet (a -> constructor) Swapi.Object.Human"
}
],
"generated-with-elm-version": "0.18.0"
},
{
"name": "Swapi.InputObject.GreetingOptions",
"comment": "\n\n@docs GreetingOptions, encode\n\n",
"aliases": [
{
"name": "GreetingOptions",
"comment": " Type for the GreetingOptions input object.\n",
"args": [],
"type": "{ prefix : Graphqelm.OptionalArgument.OptionalArgument String }"
}
],
"types": [],
"values": [
{
"name": "encode",
"comment": " Encode a GreetingOptions into a value that can be used as an argument.\n",
"type": "Swapi.InputObject.GreetingOptions.GreetingOptions -> Graphqelm.Internal.Encode.Value"
}
],
"generated-with-elm-version": "0.18.0"
},
{
"name": "Swapi.Object.Droid",
"comment": " Code for retrieving fields from a Character in a type-safe way.\n@docs selection, appearsIn, friends, id, name, primaryFunction, avatarUrl\n",
"aliases": [],
"types": [],
"values": [
{
"name": "appearsIn",
"comment": " Which movies they appear in.\n",
"type": "Graphqelm.Field.Field (List Swapi.Enum.Episode.Episode) Swapi.Object.Droid"
},
{
"name": "avatarUrl",
"comment": " Url to a profile picture for the character.\n",
"type": "Graphqelm.Field.Field String Swapi.Object.Droid"
},
{
"name": "friends",
"comment": " The friends of the droid, or an empty list if they have none.\n",
"type": "Graphqelm.SelectionSet.SelectionSet decodesTo Swapi.Interface.Character -> Graphqelm.Field.Field (List decodesTo) Swapi.Object.Droid"
},
{
"name": "id",
"comment": " The ID of the droid.\n",
"type": "Graphqelm.Field.Field Swapi.Scalar.Id Swapi.Object.Droid"
},
{
"name": "name",
"comment": " The name of the droid.\n",
"type": "Graphqelm.Field.Field String Swapi.Object.Droid"
},
{
"name": "primaryFunction",
"comment": " The primary function of the droid.\n",
"type": "Graphqelm.Field.Field (Maybe.Maybe String) Swapi.Object.Droid"
},
{
"name": "selection",
"comment": " Select fields to build up a SelectionSet for this object.\n",
"type": "(a -> constructor) -> Graphqelm.SelectionSet.SelectionSet (a -> constructor) Swapi.Object.Droid"
}
],
"generated-with-elm-version": "0.18.0"
},
{
"name": "Swapi.Enum.Phrase",
"comment": " Phrases for chat subscriptions demo.\n@docs Phrase, decoder, toString\n",
"aliases": [],
"types": [
{
"name": "Phrase",
"comment": " Phrases for StarChat\n\n - BadFeeling - Originally said by Han Solo\n - Droids - Originally said by Obi-Wan\n - Faith - Originally said by Vader.\n - Father - Originally said by Vader.\n - Help - Originally said by Leia.\n - TheForce - Originally said by Obi-Wan.\n - Traitor - Originally said by Vader\n - Trap - Originally said by Admiral Ackbar\n - Try - Originally said by Yoda.\n\n",
"args": [],
"cases": [
[
"BadFeeling",
[]
],
[
"Droids",
[]
],
[
"Faith",
[]
],
[
"Father",
[]
],
[
"Help",
[]
],
[
"TheForce",
[]
],
[
"Traitor",
[]
],
[
"Trap",
[]
],
[
"Try",
[]
]
]
}
],
"values": [
{
"name": "decoder",
"comment": " decoder\n",
"type": "Json.Decode.Decoder Swapi.Enum.Phrase.Phrase"
},
{
"name": "toString",
"comment": " Convert from the union type representating the Enum to a string that the GraphQL server will recognize.\n",
"type": "Swapi.Enum.Phrase.Phrase -> String"
}
],
"generated-with-elm-version": "0.18.0"
},
{
"name": "Swapi.Union",
"comment": " Type declarations used to give you type-safety so you only access types\nfrom the appropriate union.\n@docs CharacterUnion\n",
"aliases": [],
"types": [
{
"name": "CharacterUnion",
"comment": " CharacterUnion\n",
"args": [],
"cases": [
[
"CharacterUnion",
[]
]
]
}
],
"values": [],
"generated-with-elm-version": "0.18.0"
},
{
"name": "Swapi.Scalar",
"comment": " Type constructors to build scalars. These data types are just wrappers\naround strings, but their types carry semantic information from the server.\n@docs Id\n",
"aliases": [],
"types": [
{
"name": "Id",
"comment": " Id scalar\n",
"args": [],
"cases": [
[
"Id",
[
"String"
]
]
]
}
],
"values": [],
"generated-with-elm-version": "0.18.0"
},
{
"name": "Swapi.Object",
"comment": " Type declarations used to give you type-safety so you only access types\nfrom the appropriate object.\n@docs Droid, Human, ChatMessage\n",
"aliases": [],
"types": [
{
"name": "ChatMessage",
"comment": " ChatMessage\n",
"args": [],
"cases": [
[
"ChatMessage",
[]
]
]
},
{
"name": "Droid",
"comment": " Droid\n",
"args": [],
"cases": [
[
"Droid",
[]
]
]
},
{
"name": "Human",
"comment": " Human\n",
"args": [],
"cases": [
[
"Human",
[]
]
]
}
],
"values": [],
"generated-with-elm-version": "0.18.0"
},
{
"name": "Swapi.Enum.Language",
"comment": " Enum for languages for greetings.\n@docs Language, decoder, toString\n",
"aliases": [],
"types": [
{
"name": "Language",
"comment": "\n\n - En - English\n - Es - Spanish\n - No - Norwegian\n\n",
"args": [],
"cases": [
[
"En",
[]
],
[
"Es",
[]
],
[
"No",
[]
]
]
}
],
"values": [
{
"name": "decoder",
"comment": " Decode a string from the GraphQL server into the Language union.\n",
"type": "Json.Decode.Decoder Swapi.Enum.Language.Language"
},
{
"name": "toString",
"comment": " Convert from the union type representating the Enum to a string that the GraphQL server will recognize.\n",
"type": "Swapi.Enum.Language.Language -> String"
}
],
"generated-with-elm-version": "0.18.0"
},
{
"name": "Swapi.Interface",
"comment": " Type declarations used to give you type-safety so you only access types\nfrom the appropriate interface.\n@docs Character\n",
"aliases": [],
"types": [
{
"name": "Character",
"comment": " Character\n",
"args": [],
"cases": [
[
"Character",
[]
]
]
}
],
"values": [],
"generated-with-elm-version": "0.18.0"
},
{
"name": "Swapi.Enum.Episode",
"comment": " Enum for all episodes that the API has in its system.\n@docs Episode, decoder, toString\n",
"aliases": [],
"types": [
{
"name": "Episode",
"comment": " One of the films in the Star Wars Trilogy\n\n - Empire - Released in 1980.\n - Jedi - Released in 1983.\n - Newhope - Released in 1977.\n\n",
"args": [],
"cases": [
[
"Empire",
[]
],
[
"Jedi",
[]
],
[
"Newhope",
[]
]
]
}
],
"values": [
{
"name": "decoder",
"comment": " Decode an Episode from the GraphQL endpoint.\n",
"type": "Json.Decode.Decoder Swapi.Enum.Episode.Episode"
},
{
"name": "toString",
"comment": " Convert from the union type representating the Enum to a string that the GraphQL server will recognize.\n",
"type": "Swapi.Enum.Episode.Episode -> String"
}
],
"generated-with-elm-version": "0.18.0"
}
]