@@ -9,7 +9,7 @@ export type Scalars = {
99 Int : number ,
1010 Float : number ,
1111 DateTime : any ,
12- Commit : any ,
12+ Sha1 : any ,
1313 JSON : any ,
1414 JSONObject : any ,
1515} ;
@@ -19,6 +19,13 @@ export enum CodingLanguage {
1919 Javascript = '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 = {
2431 accessToken : Scalars [ 'String' ] ,
@@ -101,18 +108,25 @@ export type Query = {
101108 tutorial ?: Maybe < Tutorial > ,
102109 tutorials ?: Maybe < Array < Maybe < Tutorial > > > ,
103110 viewer ?: Maybe < User > ,
111+ commits : Array < Maybe < Commit > > ,
104112} ;
105113
106114
107115export type QueryTutorialArgs = {
108116 id : Scalars [ 'ID' ]
109117} ;
110118
119+
120+ export type QueryCommitsArgs = {
121+ input : TutorialRepoInput
122+ } ;
123+
111124export enum Role {
112125 Admin = 'ADMIN' ,
113126 EditorUser = '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' ,
130144 id : Scalars [ 'ID' ] ,
131- commits : Array < Scalars [ 'Commit ' ] > ,
145+ commits : Array < Scalars [ 'Sha1 ' ] > ,
132146 files ?: Maybe < Array < Scalars [ 'String' ] > > ,
133147 commands ?: Maybe < Array < Scalars [ 'String' ] > > ,
134148} ;
@@ -185,6 +199,11 @@ export type TutorialRepo = {
185199 owner ?: 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 = {
312331 TutorialRepo : ResolverTypeWrapper < TutorialRepo > ,
313332 TutorialInit : ResolverTypeWrapper < TutorialInit > ,
314333 StepActions : ResolverTypeWrapper < StepActions > ,
315- Commit : ResolverTypeWrapper < Scalars [ 'Commit ' ] > ,
334+ Sha1 : ResolverTypeWrapper < Scalars [ 'Sha1 ' ] > ,
316335 Level : ResolverTypeWrapper < Level > ,
317336 Step : ResolverTypeWrapper < Step > ,
318337 Boolean : ResolverTypeWrapper < Scalars [ 'Boolean' ] > ,
338+ tutorialRepoInput : TutorialRepoInput ,
339+ Commit : ResolverTypeWrapper < Commit > ,
319340 Mutation : ResolverTypeWrapper < { } > ,
320341 editorLoginInput : EditorLoginInput ,
321342 Editor : Editor ,
@@ -347,10 +368,12 @@ export type ResolversParentTypes = {
347368 TutorialRepo : TutorialRepo ,
348369 TutorialInit : TutorialInit ,
349370 StepActions : StepActions ,
350- Commit : Scalars [ 'Commit ' ] ,
371+ Sha1 : Scalars [ 'Sha1 ' ] ,
351372 Level : Level ,
352373 Step : Step ,
353374 Boolean : Scalars [ 'Boolean' ] ,
375+ tutorialRepoInput : TutorialRepoInput ,
376+ Commit : Commit ,
354377 Mutation : { } ,
355378 editorLoginInput : EditorLoginInput ,
356379 Editor : 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' ] > = {
374399 success ?: Resolver < Maybe < ResolversTypes [ 'Boolean' ] > , ParentType , ContextType > ,
@@ -416,8 +441,13 @@ export type QueryResolvers<ContextType = any, ParentType extends ResolversParent
416441 tutorial ?: Resolver < Maybe < ResolversTypes [ 'Tutorial' ] > , ParentType , ContextType , RequireFields < QueryTutorialArgs , 'id' > > ,
417442 tutorials ?: Resolver < Maybe < Array < Maybe < ResolversTypes [ 'Tutorial' ] > > > , ParentType , ContextType > ,
418443 viewer ?: 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' ] > = {
422452 id ?: Resolver < ResolversTypes [ 'ID' ] , ParentType , ContextType > ,
423453 title ?: 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' ] > = {
430460 id ?: Resolver < ResolversTypes [ 'ID' ] , ParentType , ContextType > ,
431- commits ?: Resolver < Array < ResolversTypes [ 'Commit ' ] > , ParentType , ContextType > ,
461+ commits ?: Resolver < Array < ResolversTypes [ 'Sha1 ' ] > , ParentType , ContextType > ,
432462 files ?: Resolver < Maybe < Array < ResolversTypes [ 'String' ] > > , ParentType , ContextType > ,
433463 commands ?: 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 > ,
500530 createTutorialVersionOutput ?: CreateTutorialVersionOutputResolvers < ContextType > ,
501531 DateTime ?: GraphQLScalarType ,
502532 editorLoginOutput ?: EditorLoginOutputResolvers < ContextType > ,
@@ -506,6 +536,7 @@ export type Resolvers<ContextType = any> = {
506536 Level ?: LevelResolvers < ContextType > ,
507537 Mutation ?: MutationResolvers < ContextType > ,
508538 Query ?: QueryResolvers < ContextType > ,
539+ Sha1 ?: GraphQLScalarType ,
509540 Step ?: StepResolvers < ContextType > ,
510541 StepActions ?: StepActionsResolvers < ContextType > ,
511542 Tutorial ?: TutorialResolvers < ContextType > ,
0 commit comments