-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy pathtypes.preResolveTypes.onlyOperationTypes.ts
More file actions
196 lines (176 loc) · 5.44 KB
/
types.preResolveTypes.onlyOperationTypes.ts
File metadata and controls
196 lines (176 loc) · 5.44 KB
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
export type Maybe<T> = T | null;
export type InputMaybe<T> = Maybe<T>;
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
export type MakeEmpty<T extends { [key: string]: unknown }, K extends keyof T> = { [_ in K]?: never };
export type Incremental<T> = T | { [P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never };
type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
/** All built-in and custom scalars, mapped to their actual values */
export type Scalars = {
ID: { input: string; output: string };
String: { input: string; output: string };
Boolean: { input: boolean; output: boolean };
Int: { input: number; output: number };
Float: { input: number; output: number };
};
/** A list of options for the sort order of the feed */
export enum FeedType {
/** Sort by a combination of freshness and score, using Reddit's algorithm */
Hot = 'HOT',
/** Newest entries first */
New = 'NEW',
/** Highest score entries first */
Top = 'TOP',
}
/** The type of vote to record, when submitting a vote */
export enum VoteType {
Cancel = 'CANCEL',
Down = 'DOWN',
Up = 'UP',
}
export type OnCommentAddedSubscriptionVariables = Exact<{
repoFullName: string;
}>;
export type OnCommentAddedSubscription = {
__typename?: 'Subscription';
commentAdded?: {
__typename?: 'Comment';
id: number;
createdAt: number;
content: string;
postedBy: { __typename?: 'User'; login: string; html_url: string };
} | null;
};
export type CommentQueryVariables = Exact<{
repoFullName: string;
limit?: number | null;
offset?: number | null;
}>;
export type CommentQuery = {
__typename?: 'Query';
currentUser?: { __typename?: 'User'; login: string; html_url: string } | null;
entry?: {
__typename?: 'Entry';
id: number;
createdAt: number;
commentCount: number;
postedBy: { __typename?: 'User'; login: string; html_url: string };
comments: Array<{
__typename?: 'Comment';
id: number;
createdAt: number;
content: string;
postedBy: { __typename?: 'User'; login: string; html_url: string };
} | null>;
repository: {
__typename?: 'Repository';
description?: string | null;
open_issues_count?: number | null;
stargazers_count: number;
full_name: string;
html_url: string;
};
} | null;
};
export type CommentsPageCommentFragment = {
__typename?: 'Comment';
id: number;
createdAt: number;
content: string;
postedBy: { __typename?: 'User'; login: string; html_url: string };
};
export type CurrentUserForProfileQueryVariables = Exact<{ [key: string]: never }>;
export type CurrentUserForProfileQuery = {
__typename?: 'Query';
currentUser?: { __typename?: 'User'; login: string; avatar_url: string } | null;
};
export type FeedEntryFragment = {
__typename?: 'Entry';
id: number;
commentCount: number;
score: number;
createdAt: number;
repository: {
__typename?: 'Repository';
full_name: string;
html_url: string;
description?: string | null;
stargazers_count: number;
open_issues_count?: number | null;
owner?: { __typename?: 'User'; avatar_url: string } | null;
};
vote: { __typename?: 'Vote'; vote_value: number };
postedBy: { __typename?: 'User'; html_url: string; login: string };
};
export type FeedQueryVariables = Exact<{
type: FeedType;
offset?: number | null;
limit?: number | null;
}>;
export type FeedQuery = {
__typename?: 'Query';
currentUser?: { __typename?: 'User'; login: string } | null;
feed?: Array<{
__typename?: 'Entry';
id: number;
commentCount: number;
score: number;
createdAt: number;
repository: {
__typename?: 'Repository';
full_name: string;
html_url: string;
description?: string | null;
stargazers_count: number;
open_issues_count?: number | null;
owner?: { __typename?: 'User'; avatar_url: string } | null;
};
vote: { __typename?: 'Vote'; vote_value: number };
postedBy: { __typename?: 'User'; html_url: string; login: string };
} | null> | null;
};
export type SubmitRepositoryMutationVariables = Exact<{
repoFullName: string;
}>;
export type SubmitRepositoryMutation = {
__typename?: 'Mutation';
submitRepository?: { __typename?: 'Entry'; createdAt: number } | null;
};
export type RepoInfoFragment = {
__typename?: 'Entry';
createdAt: number;
repository: {
__typename?: 'Repository';
description?: string | null;
stargazers_count: number;
open_issues_count?: number | null;
};
postedBy: { __typename?: 'User'; html_url: string; login: string };
};
export type SubmitCommentMutationVariables = Exact<{
repoFullName: string;
commentContent: string;
}>;
export type SubmitCommentMutation = {
__typename?: 'Mutation';
submitComment?: {
__typename?: 'Comment';
id: number;
createdAt: number;
content: string;
postedBy: { __typename?: 'User'; login: string; html_url: string };
} | null;
};
export type VoteButtonsFragment = {
__typename?: 'Entry';
score: number;
vote: { __typename?: 'Vote'; vote_value: number };
};
export type VoteMutationVariables = Exact<{
repoFullName: string;
type: VoteType;
}>;
export type VoteMutation = {
__typename?: 'Mutation';
vote?: { __typename?: 'Entry'; score: number; id: number; vote: { __typename?: 'Vote'; vote_value: number } } | null;
};