@@ -9,7 +9,7 @@ export type Scalars = {
9
9
Int : number ,
10
10
Float : number ,
11
11
DateTime : any ,
12
- Commit : any ,
12
+ Sha1 : any ,
13
13
JSON : any ,
14
14
JSONObject : any ,
15
15
} ;
@@ -19,6 +19,13 @@ export enum CodingLanguage {
19
19
Javascript = 'JAVASCRIPT'
20
20
}
21
21
22
+ /** Commits from a Git Repo */
23
+ export type Commit = {
24
+ __typename ?: 'Commit' ,
25
+ id : Scalars [ 'Sha1' ] ,
26
+ message ?: Maybe < Scalars [ 'String' ] > ,
27
+ username ?: Maybe < Scalars [ 'String' ] > ,
28
+ } ;
22
29
23
30
export type CreateTokenInput = {
24
31
accessToken : Scalars [ 'String' ] ,
@@ -101,18 +108,25 @@ export type Query = {
101
108
tutorial ?: Maybe < Tutorial > ,
102
109
tutorials ?: Maybe < Array < Maybe < Tutorial > > > ,
103
110
viewer ?: Maybe < User > ,
111
+ commits : Array < Maybe < Commit > > ,
104
112
} ;
105
113
106
114
107
115
export type QueryTutorialArgs = {
108
116
id : Scalars [ 'ID' ]
109
117
} ;
110
118
119
+
120
+ export type QueryCommitsArgs = {
121
+ input : TutorialRepoInput
122
+ } ;
123
+
111
124
export enum Role {
112
125
Admin = 'ADMIN' ,
113
126
EditorUser = 'EDITOR_USER'
114
127
}
115
128
129
+
116
130
/** A level task */
117
131
export type Step = {
118
132
__typename ?: 'Step' ,
@@ -128,7 +142,7 @@ export type Step = {
128
142
export type StepActions = {
129
143
__typename ?: 'StepActions' ,
130
144
id : Scalars [ 'ID' ] ,
131
- commits : Array < Scalars [ 'Commit ' ] > ,
145
+ commits : Array < Scalars [ 'Sha1 ' ] > ,
132
146
files ?: Maybe < Array < Scalars [ 'String' ] > > ,
133
147
commands ?: Maybe < Array < Scalars [ 'String' ] > > ,
134
148
} ;
@@ -185,6 +199,11 @@ export type TutorialRepo = {
185
199
owner ?: Maybe < Scalars [ 'String' ] > ,
186
200
} ;
187
201
202
+ export type TutorialRepoInput = {
203
+ uri : Scalars [ 'String' ] ,
204
+ branch : Scalars [ 'String' ] ,
205
+ } ;
206
+
188
207
/** Summary of tutorial used when selecting tutorial */
189
208
export type TutorialSummary = {
190
209
__typename ?: 'TutorialSummary' ,
@@ -312,10 +331,12 @@ export type ResolversTypes = {
312
331
TutorialRepo : ResolverTypeWrapper < TutorialRepo > ,
313
332
TutorialInit : ResolverTypeWrapper < TutorialInit > ,
314
333
StepActions : ResolverTypeWrapper < StepActions > ,
315
- Commit : ResolverTypeWrapper < Scalars [ 'Commit ' ] > ,
334
+ Sha1 : ResolverTypeWrapper < Scalars [ 'Sha1 ' ] > ,
316
335
Level : ResolverTypeWrapper < Level > ,
317
336
Step : ResolverTypeWrapper < Step > ,
318
337
Boolean : ResolverTypeWrapper < Scalars [ 'Boolean' ] > ,
338
+ tutorialRepoInput : TutorialRepoInput ,
339
+ Commit : ResolverTypeWrapper < Commit > ,
319
340
Mutation : ResolverTypeWrapper < { } > ,
320
341
editorLoginInput : EditorLoginInput ,
321
342
Editor : Editor ,
@@ -347,10 +368,12 @@ export type ResolversParentTypes = {
347
368
TutorialRepo : TutorialRepo ,
348
369
TutorialInit : TutorialInit ,
349
370
StepActions : StepActions ,
350
- Commit : Scalars [ 'Commit ' ] ,
371
+ Sha1 : Scalars [ 'Sha1 ' ] ,
351
372
Level : Level ,
352
373
Step : Step ,
353
374
Boolean : Scalars [ 'Boolean' ] ,
375
+ tutorialRepoInput : TutorialRepoInput ,
376
+ Commit : Commit ,
354
377
Mutation : { } ,
355
378
editorLoginInput : EditorLoginInput ,
356
379
Editor : Editor ,
@@ -366,9 +389,11 @@ export type ResolversParentTypes = {
366
389
367
390
export type AuthDirectiveResolver < Result , Parent , ContextType = any , Args = { requires ?: Maybe < Maybe < Role > > } > = DirectiveResolverFn < Result , Parent , ContextType , Args > ;
368
391
369
- export interface CommitScalarConfig extends GraphQLScalarTypeConfig < ResolversTypes [ 'Commit' ] , any > {
370
- name : 'Commit'
371
- }
392
+ export type CommitResolvers < ContextType = any , ParentType extends ResolversParentTypes [ 'Commit' ] = ResolversParentTypes [ 'Commit' ] > = {
393
+ id ?: Resolver < ResolversTypes [ 'Sha1' ] , ParentType , ContextType > ,
394
+ message ?: Resolver < Maybe < ResolversTypes [ 'String' ] > , ParentType , ContextType > ,
395
+ username ?: Resolver < Maybe < ResolversTypes [ 'String' ] > , ParentType , ContextType > ,
396
+ } ;
372
397
373
398
export type CreateTutorialVersionOutputResolvers < ContextType = any , ParentType extends ResolversParentTypes [ 'createTutorialVersionOutput' ] = ResolversParentTypes [ 'createTutorialVersionOutput' ] > = {
374
399
success ?: Resolver < Maybe < ResolversTypes [ 'Boolean' ] > , ParentType , ContextType > ,
@@ -416,8 +441,13 @@ export type QueryResolvers<ContextType = any, ParentType extends ResolversParent
416
441
tutorial ?: Resolver < Maybe < ResolversTypes [ 'Tutorial' ] > , ParentType , ContextType , RequireFields < QueryTutorialArgs , 'id' > > ,
417
442
tutorials ?: Resolver < Maybe < Array < Maybe < ResolversTypes [ 'Tutorial' ] > > > , ParentType , ContextType > ,
418
443
viewer ?: Resolver < Maybe < ResolversTypes [ 'User' ] > , ParentType , ContextType > ,
444
+ commits ?: Resolver < Array < Maybe < ResolversTypes [ 'Commit' ] > > , ParentType , ContextType , RequireFields < QueryCommitsArgs , 'input' > > ,
419
445
} ;
420
446
447
+ export interface Sha1ScalarConfig extends GraphQLScalarTypeConfig < ResolversTypes [ 'Sha1' ] , any > {
448
+ name : 'Sha1'
449
+ }
450
+
421
451
export type StepResolvers < ContextType = any , ParentType extends ResolversParentTypes [ 'Step' ] = ResolversParentTypes [ 'Step' ] > = {
422
452
id ?: Resolver < ResolversTypes [ 'ID' ] , ParentType , ContextType > ,
423
453
title ?: Resolver < ResolversTypes [ 'String' ] , ParentType , ContextType > ,
@@ -428,7 +458,7 @@ export type StepResolvers<ContextType = any, ParentType extends ResolversParentT
428
458
429
459
export type StepActionsResolvers < ContextType = any , ParentType extends ResolversParentTypes [ 'StepActions' ] = ResolversParentTypes [ 'StepActions' ] > = {
430
460
id ?: Resolver < ResolversTypes [ 'ID' ] , ParentType , ContextType > ,
431
- commits ?: Resolver < Array < ResolversTypes [ 'Commit ' ] > , ParentType , ContextType > ,
461
+ commits ?: Resolver < Array < ResolversTypes [ 'Sha1 ' ] > , ParentType , ContextType > ,
432
462
files ?: Resolver < Maybe < Array < ResolversTypes [ 'String' ] > > , ParentType , ContextType > ,
433
463
commands ?: Resolver < Maybe < Array < ResolversTypes [ 'String' ] > > , ParentType , ContextType > ,
434
464
} ;
@@ -496,7 +526,7 @@ export type UserResolvers<ContextType = any, ParentType extends ResolversParentT
496
526
} ;
497
527
498
528
export type Resolvers < ContextType = any > = {
499
- Commit ?: GraphQLScalarType ,
529
+ Commit ?: CommitResolvers < ContextType > ,
500
530
createTutorialVersionOutput ?: CreateTutorialVersionOutputResolvers < ContextType > ,
501
531
DateTime ?: GraphQLScalarType ,
502
532
editorLoginOutput ?: EditorLoginOutputResolvers < ContextType > ,
@@ -506,6 +536,7 @@ export type Resolvers<ContextType = any> = {
506
536
Level ?: LevelResolvers < ContextType > ,
507
537
Mutation ?: MutationResolvers < ContextType > ,
508
538
Query ?: QueryResolvers < ContextType > ,
539
+ Sha1 ?: GraphQLScalarType ,
509
540
Step ?: StepResolvers < ContextType > ,
510
541
StepActions ?: StepActionsResolvers < ContextType > ,
511
542
Tutorial ?: TutorialResolvers < ContextType > ,
0 commit comments