@@ -9,7 +9,7 @@ export type Scalars = {
99Int :number ,
1010Float :number ,
1111DateTime :any ,
12- Commit :any ,
12+ Sha1 :any ,
1313JSON :any ,
1414JSONObject :any ,
1515} ;
@@ -19,6 +19,13 @@ export enum CodingLanguage {
1919Javascript = 'JAVASCRIPT'
2020}
2121
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+ } ;
2229
2330export type CreateTokenInput = {
2431accessToken :Scalars [ 'String' ] ,
@@ -101,18 +108,25 @@ export type Query = {
101108tutorial ?:Maybe < Tutorial > ,
102109tutorials ?:Maybe < Array < Maybe < Tutorial > > > ,
103110viewer ?:Maybe < User > ,
111+ commits :Array < Maybe < Commit > > ,
104112} ;
105113
106114
107115export type QueryTutorialArgs = {
108116id :Scalars [ 'ID' ]
109117} ;
110118
119+
120+ export type QueryCommitsArgs = {
121+ input :TutorialRepoInput
122+ } ;
123+
111124export enum Role {
112125Admin = 'ADMIN' ,
113126EditorUser = 'EDITOR_USER'
114127}
115128
129+
116130/** A level task */
117131export type Step = {
118132__typename ?:'Step' ,
@@ -128,7 +142,7 @@ export type Step = {
128142export type StepActions = {
129143__typename ?:'StepActions' ,
130144id :Scalars [ 'ID' ] ,
131- commits :Array < Scalars [ 'Commit ' ] > ,
145+ commits :Array < Scalars [ 'Sha1 ' ] > ,
132146files ?:Maybe < Array < Scalars [ 'String' ] > > ,
133147commands ?:Maybe < Array < Scalars [ 'String' ] > > ,
134148} ;
@@ -185,6 +199,11 @@ export type TutorialRepo = {
185199owner ?:Maybe < Scalars [ 'String' ] > ,
186200} ;
187201
202+ export type TutorialRepoInput = {
203+ uri :Scalars [ 'String' ] ,
204+ branch :Scalars [ 'String' ] ,
205+ } ;
206+
188207/** Summary of tutorial used when selecting tutorial */
189208export type TutorialSummary = {
190209__typename ?:'TutorialSummary' ,
@@ -312,10 +331,12 @@ export type ResolversTypes = {
312331TutorialRepo :ResolverTypeWrapper < TutorialRepo > ,
313332TutorialInit :ResolverTypeWrapper < TutorialInit > ,
314333StepActions :ResolverTypeWrapper < StepActions > ,
315- Commit :ResolverTypeWrapper < Scalars [ 'Commit ' ] > ,
334+ Sha1 :ResolverTypeWrapper < Scalars [ 'Sha1 ' ] > ,
316335Level :ResolverTypeWrapper < Level > ,
317336Step :ResolverTypeWrapper < Step > ,
318337Boolean :ResolverTypeWrapper < Scalars [ 'Boolean' ] > ,
338+ tutorialRepoInput :TutorialRepoInput ,
339+ Commit :ResolverTypeWrapper < Commit > ,
319340Mutation :ResolverTypeWrapper < { } > ,
320341editorLoginInput :EditorLoginInput ,
321342Editor :Editor ,
@@ -347,10 +368,12 @@ export type ResolversParentTypes = {
347368TutorialRepo :TutorialRepo ,
348369TutorialInit :TutorialInit ,
349370StepActions :StepActions ,
350- Commit :Scalars [ 'Commit ' ] ,
371+ Sha1 :Scalars [ 'Sha1 ' ] ,
351372Level :Level ,
352373Step :Step ,
353374Boolean :Scalars [ 'Boolean' ] ,
375+ tutorialRepoInput :TutorialRepoInput ,
376+ Commit :Commit ,
354377Mutation :{ } ,
355378editorLoginInput :EditorLoginInput ,
356379Editor :Editor ,
@@ -366,9 +389,11 @@ export type ResolversParentTypes = {
366389
367390export type AuthDirectiveResolver < Result , Parent , ContextType = any , Args = { requires ?:Maybe < Maybe < Role > > } > = DirectiveResolverFn < Result , Parent , ContextType , Args > ;
368391
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+ } ;
372397
373398export type CreateTutorialVersionOutputResolvers < ContextType = any , ParentType extends ResolversParentTypes [ 'createTutorialVersionOutput' ] = ResolversParentTypes [ 'createTutorialVersionOutput' ] > = {
374399success ?:Resolver < Maybe < ResolversTypes [ 'Boolean' ] > , ParentType , ContextType > ,
@@ -416,8 +441,13 @@ export type QueryResolvers<ContextType = any, ParentType extends ResolversParent
416441tutorial ?:Resolver < Maybe < ResolversTypes [ 'Tutorial' ] > , ParentType , ContextType , RequireFields < QueryTutorialArgs , 'id' > > ,
417442tutorials ?:Resolver < Maybe < Array < Maybe < ResolversTypes [ 'Tutorial' ] > > > , ParentType , ContextType > ,
418443viewer ?:Resolver < Maybe < ResolversTypes [ 'User' ] > , ParentType , ContextType > ,
444+ commits ?:Resolver < Array < Maybe < ResolversTypes [ 'Commit' ] > > , ParentType , ContextType , RequireFields < QueryCommitsArgs , 'input' > > ,
419445} ;
420446
447+ export interface Sha1ScalarConfig extends GraphQLScalarTypeConfig < ResolversTypes [ 'Sha1' ] , any > {
448+ name :'Sha1'
449+ }
450+
421451export type StepResolvers < ContextType = any , ParentType extends ResolversParentTypes [ 'Step' ] = ResolversParentTypes [ 'Step' ] > = {
422452id ?:Resolver < ResolversTypes [ 'ID' ] , ParentType , ContextType > ,
423453title ?:Resolver < ResolversTypes [ 'String' ] , ParentType , ContextType > ,
@@ -428,7 +458,7 @@ export type StepResolvers<ContextType = any, ParentType extends ResolversParentT
428458
429459export type StepActionsResolvers < ContextType = any , ParentType extends ResolversParentTypes [ 'StepActions' ] = ResolversParentTypes [ 'StepActions' ] > = {
430460id ?:Resolver < ResolversTypes [ 'ID' ] , ParentType , ContextType > ,
431- commits ?:Resolver < Array < ResolversTypes [ 'Commit ' ] > , ParentType , ContextType > ,
461+ commits ?:Resolver < Array < ResolversTypes [ 'Sha1 ' ] > , ParentType , ContextType > ,
432462files ?:Resolver < Maybe < Array < ResolversTypes [ 'String' ] > > , ParentType , ContextType > ,
433463commands ?:Resolver < Maybe < Array < ResolversTypes [ 'String' ] > > , ParentType , ContextType > ,
434464} ;
@@ -496,7 +526,7 @@ export type UserResolvers<ContextType = any, ParentType extends ResolversParentT
496526} ;
497527
498528export type Resolvers < ContextType = any > = {
499- Commit ?:GraphQLScalarType ,
529+ Commit ?:CommitResolvers < ContextType > ,
500530createTutorialVersionOutput ?:CreateTutorialVersionOutputResolvers < ContextType > ,
501531DateTime ?:GraphQLScalarType ,
502532editorLoginOutput ?:EditorLoginOutputResolvers < ContextType > ,
@@ -506,6 +536,7 @@ export type Resolvers<ContextType = any> = {
506536Level ?:LevelResolvers < ContextType > ,
507537Mutation ?:MutationResolvers < ContextType > ,
508538Query ?:QueryResolvers < ContextType > ,
539+ Sha1 ?:GraphQLScalarType ,
509540Step ?:StepResolvers < ContextType > ,
510541StepActions ?:StepActionsResolvers < ContextType > ,
511542Tutorial ?:TutorialResolvers < ContextType > ,