-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Expand file tree
/
Copy pathtypes.preResolveTypes.onlyOperationTypes.ts
More file actions
217 lines (181 loc) · 6.77 KB
/
types.preResolveTypes.onlyOperationTypes.ts
File metadata and controls
217 lines (181 loc) · 6.77 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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
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 };
};
/** The input object sent when passing a color */
export type ColorInput = {
blue: Scalars['Int']['input'];
green: Scalars['Int']['input'];
red: Scalars['Int']['input'];
};
/** The episodes in the Star Wars trilogy */
export enum Episode {
/** Star Wars Episode V: The Empire Strikes Back, released in 1980. */
Empire = 'EMPIRE',
/** Star Wars Episode VI: Return of the Jedi, released in 1983. */
Jedi = 'JEDI',
/** Star Wars Episode IV: A New Hope, released in 1977. */
Newhope = 'NEWHOPE',
}
/** Units of height */
export enum LengthUnit {
/** Primarily used in the United States */
Foot = 'FOOT',
/** The standard unit around the world */
Meter = 'METER',
}
/** The input object sent when someone is creating a new review */
export type ReviewInput = {
/** Comment about the movie, optional */
commentary?: InputMaybe<Scalars['String']['input']>;
/** Favorite color, optional */
favoriteColor?: InputMaybe<ColorInput>;
/** 0-5 stars */
stars: Scalars['Int']['input'];
};
export type CreateReviewForEpisodeMutationVariables = Exact<{
episode: Episode;
review: ReviewInput;
}>;
export type CreateReviewForEpisodeMutation = {
__typename?: 'Mutation';
createReview?: { __typename?: 'Review'; stars: number; commentary?: string | null } | null;
};
export type ExcludeQueryAlphaQueryVariables = Exact<{
episode?: Episode | null;
}>;
export type ExcludeQueryAlphaQuery = {
__typename?: 'Query';
hero?: { __typename?: 'Droid'; name: string } | { __typename?: 'Human'; name: string } | null;
};
export type ExcludeQueryBetaQueryVariables = Exact<{
episode?: Episode | null;
}>;
export type ExcludeQueryBetaQuery = {
__typename?: 'Query';
hero?: { __typename?: 'Droid'; name: string } | { __typename?: 'Human'; name: string } | null;
};
export type HeroAndFriendsNamesQueryVariables = Exact<{
episode?: Episode | null;
}>;
export type HeroAndFriendsNamesQuery = {
__typename?: 'Query';
hero?:
| {
__typename?: 'Droid';
name: string;
friends?: Array<{ __typename?: 'Droid'; name: string } | { __typename?: 'Human'; name: string } | null> | null;
}
| {
__typename?: 'Human';
name: string;
friends?: Array<{ __typename?: 'Droid'; name: string } | { __typename?: 'Human'; name: string } | null> | null;
}
| null;
};
export type HeroAppearsInQueryVariables = Exact<{ [key: string]: never }>;
export type HeroAppearsInQuery = {
__typename?: 'Query';
hero?:
| { __typename?: 'Droid'; name: string; appearsIn: Array<Episode | null> }
| { __typename?: 'Human'; name: string; appearsIn: Array<Episode | null> }
| null;
};
export type HeroDetailsQueryVariables = Exact<{
episode?: Episode | null;
}>;
export type HeroDetailsQuery = {
__typename?: 'Query';
hero?:
| { __typename?: 'Droid'; primaryFunction?: string | null; name: string }
| { __typename?: 'Human'; height?: number | null; name: string }
| null;
};
type HeroDetails_Droid_Fragment = { __typename?: 'Droid'; primaryFunction?: string | null; name: string };
type HeroDetails_Human_Fragment = { __typename?: 'Human'; height?: number | null; name: string };
export type HeroDetailsFragment = HeroDetails_Droid_Fragment | HeroDetails_Human_Fragment;
export type HeroDetailsWithFragmentQueryVariables = Exact<{
episode?: Episode | null;
}>;
export type HeroDetailsWithFragmentQuery = {
__typename?: 'Query';
hero?:
| { __typename?: 'Droid'; primaryFunction?: string | null; name: string }
| { __typename?: 'Human'; height?: number | null; name: string }
| null;
};
export type HeroNameQueryVariables = Exact<{
episode?: Episode | null;
}>;
export type HeroNameQuery = {
__typename?: 'Query';
hero?: { __typename?: 'Droid'; name: string } | { __typename?: 'Human'; name: string } | null;
};
export type HeroNameConditionalInclusionQueryVariables = Exact<{
episode?: Episode | null;
includeName: boolean;
}>;
export type HeroNameConditionalInclusionQuery = {
__typename?: 'Query';
hero?: { __typename?: 'Droid'; name?: string } | { __typename?: 'Human'; name?: string } | null;
};
export type HeroNameConditionalExclusionQueryVariables = Exact<{
episode?: Episode | null;
skipName: boolean;
}>;
export type HeroNameConditionalExclusionQuery = {
__typename?: 'Query';
hero?: { __typename?: 'Droid'; name?: string } | { __typename?: 'Human'; name?: string } | null;
};
export type HeroParentTypeDependentFieldQueryVariables = Exact<{
episode?: Episode | null;
}>;
export type HeroParentTypeDependentFieldQuery = {
__typename?: 'Query';
hero?:
| {
__typename?: 'Droid';
name: string;
friends?: Array<
{ __typename?: 'Droid'; name: string } | { __typename?: 'Human'; height?: number | null; name: string } | null
> | null;
}
| {
__typename?: 'Human';
name: string;
friends?: Array<
{ __typename?: 'Droid'; name: string } | { __typename?: 'Human'; height?: number | null; name: string } | null
> | null;
}
| null;
};
export type HeroTypeDependentAliasedFieldQueryVariables = Exact<{
episode?: Episode | null;
}>;
export type HeroTypeDependentAliasedFieldQuery = {
__typename?: 'Query';
hero?: { __typename?: 'Droid'; property?: string | null } | { __typename?: 'Human'; property?: string | null } | null;
};
export type HumanFieldsFragment = { __typename?: 'Human'; name: string; mass?: number | null };
export type HumanWithNullHeightQueryVariables = Exact<{ [key: string]: never }>;
export type HumanWithNullHeightQuery = {
__typename?: 'Query';
human?: { __typename?: 'Human'; name: string; mass?: number | null } | null;
};
export type TwoHeroesQueryVariables = Exact<{ [key: string]: never }>;
export type TwoHeroesQuery = {
__typename?: 'Query';
r2?: { __typename?: 'Droid'; name: string } | { __typename?: 'Human'; name: string } | null;
luke?: { __typename?: 'Droid'; name: string } | { __typename?: 'Human'; name: string } | null;
};