@@ -8,57 +8,63 @@ export type InputMaybe<T> = Maybe<T>;
88export type Exact < T extends { [ key : string ] : unknown } > = { [ K in keyof T ] : T [ K ] } ;
99export type MakeOptional < T , K extends keyof T > = Omit < T , K > & { [ SubKey in K ] ?: Maybe < T [ SubKey ] > } ;
1010export type MakeMaybe < T , K extends keyof T > = Omit < T , K > & { [ SubKey in K ] : Maybe < T [ SubKey ] > } ;
11+ export type MakeEmpty < T extends { [ key : string ] : unknown } , K extends keyof T > = {
12+ [ _ in K ] ?: never ;
13+ } ;
14+ export type Incremental < T > =
15+ | T
16+ | { [ P in keyof T ] ?: P extends ' $fragmentName' | '__typename' ? T [ P ] : never } ;
1117/** All built-in and custom scalars, mapped to their actual values */
1218export type Scalars = {
13- ID : string ;
14- String : string ;
15- Boolean : boolean ;
16- Int : number ;
17- Float : number ;
19+ ID : { input : string ; output : string } ;
20+ String : { input : string ; output : string } ;
21+ Boolean : { input : boolean ; output : boolean } ;
22+ Int : { input : number ; output : number } ;
23+ Float : { input : number ; output : number } ;
1824} ;
1925
2026/** A comment about an entry, submitted by a user */
2127export type Comment = {
2228 __typename ?: 'Comment' ;
2329 /** The text of the comment */
24- content : Scalars [ 'String' ] ;
30+ content : Scalars [ 'String' ] [ 'output' ] ;
2531 /** A timestamp of when the comment was posted */
26- createdAt : Scalars [ 'Float' ] ;
32+ createdAt : Scalars [ 'Float' ] [ 'output' ] ;
2733 /** The SQL ID of this entry */
28- id : Scalars [ 'Int' ] ;
34+ id : Scalars [ 'Int' ] [ 'output' ] ;
2935 /** The GitHub user who posted the comment */
3036 postedBy : User ;
3137 /** The repository which this comment is about */
32- repoName : Scalars [ 'String' ] ;
38+ repoName : Scalars [ 'String' ] [ 'output' ] ;
3339} ;
3440
3541/** Information about a GitHub repository submitted to GitHunt */
3642export type Entry = {
3743 __typename ?: 'Entry' ;
3844 /** The number of comments posted about this repository */
39- commentCount : Scalars [ 'Int' ] ;
45+ commentCount : Scalars [ 'Int' ] [ 'output' ] ;
4046 /** Comments posted about this repository */
4147 comments : Array < Maybe < Comment > > ;
4248 /** A timestamp of when the entry was submitted */
43- createdAt : Scalars [ 'Float' ] ;
49+ createdAt : Scalars [ 'Float' ] [ 'output' ] ;
4450 /** The hot score of this repository */
45- hotScore : Scalars [ 'Float' ] ;
51+ hotScore : Scalars [ 'Float' ] [ 'output' ] ;
4652 /** The SQL ID of this entry */
47- id : Scalars [ 'Int' ] ;
53+ id : Scalars [ 'Int' ] [ 'output' ] ;
4854 /** The GitHub user who submitted this entry */
4955 postedBy : User ;
5056 /** Information about the repository from GitHub */
5157 repository : Repository ;
5258 /** The score of this repository, upvotes - downvotes */
53- score : Scalars [ 'Int' ] ;
59+ score : Scalars [ 'Int' ] [ 'output' ] ;
5460 /** XXX to be changed */
5561 vote : Vote ;
5662} ;
5763
5864/** Information about a GitHub repository submitted to GitHunt */
5965export type EntryCommentsArgs = {
60- limit ?: InputMaybe < Scalars [ 'Int' ] > ;
61- offset ?: InputMaybe < Scalars [ 'Int' ] > ;
66+ limit ?: InputMaybe < Scalars [ 'Int' ] [ 'input' ] > ;
67+ offset ?: InputMaybe < Scalars [ 'Int' ] [ 'input' ] > ;
6268} ;
6369
6470/** A list of options for the sort order of the feed */
@@ -82,16 +88,16 @@ export type Mutation = {
8288} ;
8389
8490export type MutationSubmitCommentArgs = {
85- commentContent : Scalars [ 'String' ] ;
86- repoFullName : Scalars [ 'String' ] ;
91+ commentContent : Scalars [ 'String' ] [ 'input' ] ;
92+ repoFullName : Scalars [ 'String' ] [ 'input' ] ;
8793} ;
8894
8995export type MutationSubmitRepositoryArgs = {
90- repoFullName : Scalars [ 'String' ] ;
96+ repoFullName : Scalars [ 'String' ] [ 'input' ] ;
9197} ;
9298
9399export type MutationVoteArgs = {
94- repoFullName : Scalars [ 'String' ] ;
100+ repoFullName : Scalars [ 'String' ] [ 'input' ] ;
95101 type : VoteType ;
96102} ;
97103
@@ -106,12 +112,12 @@ export type Query = {
106112} ;
107113
108114export type QueryEntryArgs = {
109- repoFullName : Scalars [ 'String' ] ;
115+ repoFullName : Scalars [ 'String' ] [ 'input' ] ;
110116} ;
111117
112118export type QueryFeedArgs = {
113- limit ?: InputMaybe < Scalars [ 'Int' ] > ;
114- offset ?: InputMaybe < Scalars [ 'Int' ] > ;
119+ limit ?: InputMaybe < Scalars [ 'Int' ] [ 'input' ] > ;
120+ offset ?: InputMaybe < Scalars [ 'Int' ] [ 'input' ] > ;
115121 type : FeedType ;
116122} ;
117123
@@ -122,19 +128,19 @@ export type QueryFeedArgs = {
122128export type Repository = {
123129 __typename ?: 'Repository' ;
124130 /** The description of the repository */
125- description ?: Maybe < Scalars [ 'String' ] > ;
131+ description ?: Maybe < Scalars [ 'String' ] [ 'output' ] > ;
126132 /** The full name of the repository with the username, e.g. apollostack/GitHunt-API */
127- full_name : Scalars [ 'String' ] ;
133+ full_name : Scalars [ 'String' ] [ 'output' ] ;
128134 /** The link to the repository on GitHub */
129- html_url : Scalars [ 'String' ] ;
135+ html_url : Scalars [ 'String' ] [ 'output' ] ;
130136 /** Just the name of the repository, e.g. GitHunt-API */
131- name : Scalars [ 'String' ] ;
137+ name : Scalars [ 'String' ] [ 'output' ] ;
132138 /** The number of open issues on this repository on GitHub */
133- open_issues_count ?: Maybe < Scalars [ 'Int' ] > ;
139+ open_issues_count ?: Maybe < Scalars [ 'Int' ] [ 'output' ] > ;
134140 /** The owner of this repository on GitHub, e.g. apollostack */
135141 owner ?: Maybe < User > ;
136142 /** The number of people who have starred this repository on GitHub */
137- stargazers_count : Scalars [ 'Int' ] ;
143+ stargazers_count : Scalars [ 'Int' ] [ 'output' ] ;
138144} ;
139145
140146export type Subscription = {
@@ -144,24 +150,24 @@ export type Subscription = {
144150} ;
145151
146152export type SubscriptionCommentAddedArgs = {
147- repoFullName : Scalars [ 'String' ] ;
153+ repoFullName : Scalars [ 'String' ] [ 'input' ] ;
148154} ;
149155
150156/** A user object from the GitHub API. This uses the exact field names returned from the GitHub API. */
151157export type User = {
152158 __typename ?: 'User' ;
153159 /** The URL to a directly embeddable image for this user's avatar */
154- avatar_url : Scalars [ 'String' ] ;
160+ avatar_url : Scalars [ 'String' ] [ 'output' ] ;
155161 /** The URL of this user's GitHub page */
156- html_url : Scalars [ 'String' ] ;
162+ html_url : Scalars [ 'String' ] [ 'output' ] ;
157163 /** The name of the user, e.g. apollostack */
158- login : Scalars [ 'String' ] ;
164+ login : Scalars [ 'String' ] [ 'output' ] ;
159165} ;
160166
161167/** XXX to be removed */
162168export type Vote = {
163169 __typename ?: 'Vote' ;
164- vote_value : Scalars [ 'Int' ] ;
170+ vote_value : Scalars [ 'Int' ] [ 'output' ] ;
165171} ;
166172
167173/** The type of vote to record, when submitting a vote */
0 commit comments