@@ -6,48 +6,54 @@ export type InputMaybe<T> = Maybe<T>;
6
6
export type Exact < T extends { [ key : string ] : unknown } > = { [ K in keyof T ] : T [ K ] } ;
7
7
export type MakeOptional < T , K extends keyof T > = Omit < T , K > & { [ SubKey in K ] ?: Maybe < T [ SubKey ] > } ;
8
8
export type MakeMaybe < T , K extends keyof T > = Omit < T , K > & { [ SubKey in K ] : Maybe < T [ SubKey ] > } ;
9
+ export type MakeEmpty < T extends { [ key : string ] : unknown } , K extends keyof T > = {
10
+ [ _ in K ] ?: never ;
11
+ } ;
12
+ export type Incremental < T > =
13
+ | T
14
+ | { [ P in keyof T ] ?: P extends ' $fragmentName' | '__typename' ? T [ P ] : never } ;
9
15
export type RequireFields < T , K extends keyof T > = Omit < T , K > & { [ P in K ] -?: NonNullable < T [ P ] > } ;
10
16
/** All built-in and custom scalars, mapped to their actual values */
11
17
export type Scalars = {
12
- ID : string ;
13
- String : string ;
14
- Boolean : boolean ;
15
- Int : number ;
16
- Float : number ;
18
+ ID : { input : string ; output : string } ;
19
+ String : { input : string ; output : string } ;
20
+ Boolean : { input : boolean ; output : boolean } ;
21
+ Int : { input : number ; output : number } ;
22
+ Float : { input : number ; output : number } ;
17
23
} ;
18
24
19
25
export type AuthenticateParamsInput = {
20
- access_token ?: InputMaybe < Scalars [ 'String' ] > ;
21
- access_token_secret ?: InputMaybe < Scalars [ 'String' ] > ;
22
- code ?: InputMaybe < Scalars [ 'String' ] > ;
23
- password ?: InputMaybe < Scalars [ 'String' ] > ;
24
- provider ?: InputMaybe < Scalars [ 'String' ] > ;
25
- token ?: InputMaybe < Scalars [ 'String' ] > ;
26
+ access_token ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
27
+ access_token_secret ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
28
+ code ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
29
+ password ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
30
+ provider ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
31
+ token ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
26
32
user ?: InputMaybe < UserInput > ;
27
33
} ;
28
34
29
35
export type EmailRecord = {
30
36
__typename ?: 'EmailRecord' ;
31
- address ?: Maybe < Scalars [ 'String' ] > ;
32
- verified ?: Maybe < Scalars [ 'Boolean' ] > ;
37
+ address ?: Maybe < Scalars [ 'String' ] [ 'output' ] > ;
38
+ verified ?: Maybe < Scalars [ 'Boolean' ] [ 'output' ] > ;
33
39
} ;
34
40
35
41
export type ImpersonateReturn = {
36
42
__typename ?: 'ImpersonateReturn' ;
37
- authorized ?: Maybe < Scalars [ 'Boolean' ] > ;
43
+ authorized ?: Maybe < Scalars [ 'Boolean' ] [ 'output' ] > ;
38
44
tokens ?: Maybe < Tokens > ;
39
45
user ?: Maybe < User > ;
40
46
} ;
41
47
42
48
export type ImpersonationUserIdentityInput = {
43
- email ?: InputMaybe < Scalars [ 'String' ] > ;
44
- userId ?: InputMaybe < Scalars [ 'String' ] > ;
45
- username ?: InputMaybe < Scalars [ 'String' ] > ;
49
+ email ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
50
+ userId ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
51
+ username ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
46
52
} ;
47
53
48
54
export type LoginResult = {
49
55
__typename ?: 'LoginResult' ;
50
- sessionId ?: Maybe < Scalars [ 'String' ] > ;
56
+ sessionId ?: Maybe < Scalars [ 'String' ] [ 'output' ] > ;
51
57
tokens ?: Maybe < Tokens > ;
52
58
user ?: Maybe < User > ;
53
59
} ;
@@ -56,33 +62,29 @@ export type Mutation = {
56
62
__typename ?: 'Mutation' ;
57
63
authenticate ?: Maybe < LoginResult > ;
58
64
impersonate ?: Maybe < ImpersonateReturn > ;
59
- logout ?: Maybe < Scalars [ 'Boolean' ] > ;
65
+ logout ?: Maybe < Scalars [ 'Boolean' ] [ 'output' ] > ;
60
66
refreshTokens ?: Maybe < LoginResult > ;
61
- verifyAuthentication ?: Maybe < Scalars [ 'Boolean' ] > ;
67
+ verifyAuthentication ?: Maybe < Scalars [ 'Boolean' ] [ 'output' ] > ;
62
68
} ;
63
69
64
-
65
70
export type MutationAuthenticateArgs = {
66
71
params : AuthenticateParamsInput ;
67
- serviceName : Scalars [ 'String' ] ;
72
+ serviceName : Scalars [ 'String' ] [ 'input' ] ;
68
73
} ;
69
74
70
-
71
75
export type MutationImpersonateArgs = {
72
- accessToken : Scalars [ 'String' ] ;
76
+ accessToken : Scalars [ 'String' ] [ 'input' ] ;
73
77
impersonated : ImpersonationUserIdentityInput ;
74
78
} ;
75
79
76
-
77
80
export type MutationRefreshTokensArgs = {
78
- accessToken : Scalars [ 'String' ] ;
79
- refreshToken : Scalars [ 'String' ] ;
81
+ accessToken : Scalars [ 'String' ] [ 'input' ] ;
82
+ refreshToken : Scalars [ 'String' ] [ 'input' ] ;
80
83
} ;
81
84
82
-
83
85
export type MutationVerifyAuthenticationArgs = {
84
86
params : AuthenticateParamsInput ;
85
- serviceName : Scalars [ 'String' ] ;
87
+ serviceName : Scalars [ 'String' ] [ 'input' ] ;
86
88
} ;
87
89
88
90
export type Query = {
@@ -92,28 +94,31 @@ export type Query = {
92
94
93
95
export type Tokens = {
94
96
__typename ?: 'Tokens' ;
95
- accessToken ?: Maybe < Scalars [ 'String' ] > ;
96
- refreshToken ?: Maybe < Scalars [ 'String' ] > ;
97
+ accessToken ?: Maybe < Scalars [ 'String' ] [ 'output' ] > ;
98
+ refreshToken ?: Maybe < Scalars [ 'String' ] [ 'output' ] > ;
97
99
} ;
98
100
99
101
export type User = {
100
102
__typename ?: 'User' ;
101
103
emails ?: Maybe < Array < EmailRecord > > ;
102
- id : Scalars [ 'ID' ] ;
103
- username ?: Maybe < Scalars [ 'String' ] > ;
104
+ id : Scalars [ 'ID' ] [ 'output' ] ;
105
+ username ?: Maybe < Scalars [ 'String' ] [ 'output' ] > ;
104
106
} ;
105
107
106
108
export type UserInput = {
107
- email ?: InputMaybe < Scalars [ 'String' ] > ;
108
- id ?: InputMaybe < Scalars [ 'ID' ] > ;
109
- username ?: InputMaybe < Scalars [ 'String' ] > ;
109
+ email ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
110
+ id ?: InputMaybe < Scalars [ 'ID' ] [ 'input' ] > ;
111
+ username ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
110
112
} ;
111
113
112
-
113
-
114
114
export type ResolverTypeWrapper < T > = Promise < T > | T ;
115
115
116
- export type Resolver < TResult , TParent = { } , TContext = { } , TArgs = { } > = ResolverFn < TResult , TParent , TContext , TArgs > ;
116
+ export type Resolver < TResult , TParent = { } , TContext = { } , TArgs = { } > = ResolverFn <
117
+ TResult ,
118
+ TParent ,
119
+ TContext ,
120
+ TArgs
121
+ > ;
117
122
118
123
export type ResolverFn < TResult , TParent , TContext , TArgs > = (
119
124
parent : TParent ,
@@ -136,7 +141,13 @@ export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (
136
141
info : GraphQLResolveInfo
137
142
) => TResult | Promise < TResult > ;
138
143
139
- export interface SubscriptionSubscriberObject < TResult , TKey extends string , TParent , TContext , TArgs > {
144
+ export interface SubscriptionSubscriberObject <
145
+ TResult ,
146
+ TKey extends string ,
147
+ TParent ,
148
+ TContext ,
149
+ TArgs ,
150
+ > {
140
151
subscribe : SubscriptionSubscribeFn < { [ key in TKey ] : TResult } , TParent , TContext , TArgs > ;
141
152
resolve ?: SubscriptionResolveFn < TResult , { [ key in TKey ] : TResult } , TContext , TArgs > ;
142
153
}
@@ -150,7 +161,13 @@ export type SubscriptionObject<TResult, TKey extends string, TParent, TContext,
150
161
| SubscriptionSubscriberObject < TResult , TKey , TParent , TContext , TArgs >
151
162
| SubscriptionResolverObject < TResult , TParent , TContext , TArgs > ;
152
163
153
- export type SubscriptionResolver < TResult , TKey extends string , TParent = { } , TContext = { } , TArgs = { } > =
164
+ export type SubscriptionResolver <
165
+ TResult ,
166
+ TKey extends string ,
167
+ TParent = { } ,
168
+ TContext = { } ,
169
+ TArgs = { } ,
170
+ > =
154
171
| ( ( ...args : any [ ] ) => SubscriptionObject < TResult , TKey , TParent , TContext , TArgs > )
155
172
| SubscriptionObject < TResult , TKey , TParent , TContext , TArgs > ;
156
173
@@ -160,7 +177,11 @@ export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (
160
177
info : GraphQLResolveInfo
161
178
) => Maybe < TTypes > | Promise < Maybe < TTypes > > ;
162
179
163
- export type IsTypeOfResolverFn < T = { } , TContext = { } > = ( obj : T , context : TContext , info : GraphQLResolveInfo ) => boolean | Promise < boolean > ;
180
+ export type IsTypeOfResolverFn < T = { } , TContext = { } > = (
181
+ obj : T ,
182
+ context : TContext ,
183
+ info : GraphQLResolveInfo
184
+ ) => boolean | Promise < boolean > ;
164
185
165
186
export type NextResolverFn < T > = ( ) => Promise < T > ;
166
187
@@ -172,20 +193,18 @@ export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs
172
193
info : GraphQLResolveInfo
173
194
) => TResult | Promise < TResult > ;
174
195
175
-
176
-
177
196
/** Mapping between all available schema types and the resolvers types */
178
197
export type ResolversTypes = {
179
198
AuthenticateParamsInput : AuthenticateParamsInput ;
180
- Boolean : ResolverTypeWrapper < Scalars [ 'Boolean' ] > ;
199
+ Boolean : ResolverTypeWrapper < Scalars [ 'Boolean' ] [ 'output' ] > ;
181
200
EmailRecord : ResolverTypeWrapper < EmailRecord > ;
182
- ID : ResolverTypeWrapper < Scalars [ 'ID' ] > ;
201
+ ID : ResolverTypeWrapper < Scalars [ 'ID' ] [ 'output' ] > ;
183
202
ImpersonateReturn : ResolverTypeWrapper < ImpersonateReturn > ;
184
203
ImpersonationUserIdentityInput : ImpersonationUserIdentityInput ;
185
204
LoginResult : ResolverTypeWrapper < LoginResult > ;
186
205
Mutation : ResolverTypeWrapper < { } > ;
187
206
Query : ResolverTypeWrapper < { } > ;
188
- String : ResolverTypeWrapper < Scalars [ 'String' ] > ;
207
+ String : ResolverTypeWrapper < Scalars [ 'String' ] [ 'output' ] > ;
189
208
Tokens : ResolverTypeWrapper < Tokens > ;
190
209
User : ResolverTypeWrapper < User > ;
191
210
UserInput : UserInput ;
@@ -194,59 +213,101 @@ export type ResolversTypes = {
194
213
/** Mapping between all available schema types and the resolvers parents */
195
214
export type ResolversParentTypes = {
196
215
AuthenticateParamsInput : AuthenticateParamsInput ;
197
- Boolean : Scalars [ 'Boolean' ] ;
216
+ Boolean : Scalars [ 'Boolean' ] [ 'output' ] ;
198
217
EmailRecord : EmailRecord ;
199
- ID : Scalars [ 'ID' ] ;
218
+ ID : Scalars [ 'ID' ] [ 'output' ] ;
200
219
ImpersonateReturn : ImpersonateReturn ;
201
220
ImpersonationUserIdentityInput : ImpersonationUserIdentityInput ;
202
221
LoginResult : LoginResult ;
203
222
Mutation : { } ;
204
223
Query : { } ;
205
- String : Scalars [ 'String' ] ;
224
+ String : Scalars [ 'String' ] [ 'output' ] ;
206
225
Tokens : Tokens ;
207
226
User : User ;
208
227
UserInput : UserInput ;
209
228
} ;
210
229
211
- export type EmailRecordResolvers < ContextType = AccountsContextGraphQLModules , ParentType extends ResolversParentTypes [ 'EmailRecord' ] = ResolversParentTypes [ 'EmailRecord' ] > = {
230
+ export type EmailRecordResolvers <
231
+ ContextType = AccountsContextGraphQLModules ,
232
+ ParentType extends ResolversParentTypes [ 'EmailRecord' ] = ResolversParentTypes [ 'EmailRecord' ] ,
233
+ > = {
212
234
address ?: Resolver < Maybe < ResolversTypes [ 'String' ] > , ParentType , ContextType > ;
213
235
verified ?: Resolver < Maybe < ResolversTypes [ 'Boolean' ] > , ParentType , ContextType > ;
214
236
__isTypeOf ?: IsTypeOfResolverFn < ParentType , ContextType > ;
215
237
} ;
216
238
217
- export type ImpersonateReturnResolvers < ContextType = AccountsContextGraphQLModules , ParentType extends ResolversParentTypes [ 'ImpersonateReturn' ] = ResolversParentTypes [ 'ImpersonateReturn' ] > = {
239
+ export type ImpersonateReturnResolvers <
240
+ ContextType = AccountsContextGraphQLModules ,
241
+ ParentType extends
242
+ ResolversParentTypes [ 'ImpersonateReturn' ] = ResolversParentTypes [ 'ImpersonateReturn' ] ,
243
+ > = {
218
244
authorized ?: Resolver < Maybe < ResolversTypes [ 'Boolean' ] > , ParentType , ContextType > ;
219
245
tokens ?: Resolver < Maybe < ResolversTypes [ 'Tokens' ] > , ParentType , ContextType > ;
220
246
user ?: Resolver < Maybe < ResolversTypes [ 'User' ] > , ParentType , ContextType > ;
221
247
__isTypeOf ?: IsTypeOfResolverFn < ParentType , ContextType > ;
222
248
} ;
223
249
224
- export type LoginResultResolvers < ContextType = AccountsContextGraphQLModules , ParentType extends ResolversParentTypes [ 'LoginResult' ] = ResolversParentTypes [ 'LoginResult' ] > = {
250
+ export type LoginResultResolvers <
251
+ ContextType = AccountsContextGraphQLModules ,
252
+ ParentType extends ResolversParentTypes [ 'LoginResult' ] = ResolversParentTypes [ 'LoginResult' ] ,
253
+ > = {
225
254
sessionId ?: Resolver < Maybe < ResolversTypes [ 'String' ] > , ParentType , ContextType > ;
226
255
tokens ?: Resolver < Maybe < ResolversTypes [ 'Tokens' ] > , ParentType , ContextType > ;
227
256
user ?: Resolver < Maybe < ResolversTypes [ 'User' ] > , ParentType , ContextType > ;
228
257
__isTypeOf ?: IsTypeOfResolverFn < ParentType , ContextType > ;
229
258
} ;
230
259
231
- export type MutationResolvers < ContextType = AccountsContextGraphQLModules , ParentType extends ResolversParentTypes [ 'Mutation' ] = ResolversParentTypes [ 'Mutation' ] > = {
232
- authenticate ?: Resolver < Maybe < ResolversTypes [ 'LoginResult' ] > , ParentType , ContextType , RequireFields < MutationAuthenticateArgs , 'params' | 'serviceName' > > ;
233
- impersonate ?: Resolver < Maybe < ResolversTypes [ 'ImpersonateReturn' ] > , ParentType , ContextType , RequireFields < MutationImpersonateArgs , 'accessToken' | 'impersonated' > > ;
260
+ export type MutationResolvers <
261
+ ContextType = AccountsContextGraphQLModules ,
262
+ ParentType extends ResolversParentTypes [ 'Mutation' ] = ResolversParentTypes [ 'Mutation' ] ,
263
+ > = {
264
+ authenticate ?: Resolver <
265
+ Maybe < ResolversTypes [ 'LoginResult' ] > ,
266
+ ParentType ,
267
+ ContextType ,
268
+ RequireFields < MutationAuthenticateArgs , 'params' | 'serviceName' >
269
+ > ;
270
+ impersonate ?: Resolver <
271
+ Maybe < ResolversTypes [ 'ImpersonateReturn' ] > ,
272
+ ParentType ,
273
+ ContextType ,
274
+ RequireFields < MutationImpersonateArgs , 'accessToken' | 'impersonated' >
275
+ > ;
234
276
logout ?: Resolver < Maybe < ResolversTypes [ 'Boolean' ] > , ParentType , ContextType > ;
235
- refreshTokens ?: Resolver < Maybe < ResolversTypes [ 'LoginResult' ] > , ParentType , ContextType , RequireFields < MutationRefreshTokensArgs , 'accessToken' | 'refreshToken' > > ;
236
- verifyAuthentication ?: Resolver < Maybe < ResolversTypes [ 'Boolean' ] > , ParentType , ContextType , RequireFields < MutationVerifyAuthenticationArgs , 'params' | 'serviceName' > > ;
277
+ refreshTokens ?: Resolver <
278
+ Maybe < ResolversTypes [ 'LoginResult' ] > ,
279
+ ParentType ,
280
+ ContextType ,
281
+ RequireFields < MutationRefreshTokensArgs , 'accessToken' | 'refreshToken' >
282
+ > ;
283
+ verifyAuthentication ?: Resolver <
284
+ Maybe < ResolversTypes [ 'Boolean' ] > ,
285
+ ParentType ,
286
+ ContextType ,
287
+ RequireFields < MutationVerifyAuthenticationArgs , 'params' | 'serviceName' >
288
+ > ;
237
289
} ;
238
290
239
- export type QueryResolvers < ContextType = AccountsContextGraphQLModules , ParentType extends ResolversParentTypes [ 'Query' ] = ResolversParentTypes [ 'Query' ] > = {
291
+ export type QueryResolvers <
292
+ ContextType = AccountsContextGraphQLModules ,
293
+ ParentType extends ResolversParentTypes [ 'Query' ] = ResolversParentTypes [ 'Query' ] ,
294
+ > = {
240
295
getUser ?: Resolver < Maybe < ResolversTypes [ 'User' ] > , ParentType , ContextType > ;
241
296
} ;
242
297
243
- export type TokensResolvers < ContextType = AccountsContextGraphQLModules , ParentType extends ResolversParentTypes [ 'Tokens' ] = ResolversParentTypes [ 'Tokens' ] > = {
298
+ export type TokensResolvers <
299
+ ContextType = AccountsContextGraphQLModules ,
300
+ ParentType extends ResolversParentTypes [ 'Tokens' ] = ResolversParentTypes [ 'Tokens' ] ,
301
+ > = {
244
302
accessToken ?: Resolver < Maybe < ResolversTypes [ 'String' ] > , ParentType , ContextType > ;
245
303
refreshToken ?: Resolver < Maybe < ResolversTypes [ 'String' ] > , ParentType , ContextType > ;
246
304
__isTypeOf ?: IsTypeOfResolverFn < ParentType , ContextType > ;
247
305
} ;
248
306
249
- export type UserResolvers < ContextType = AccountsContextGraphQLModules , ParentType extends ResolversParentTypes [ 'User' ] = ResolversParentTypes [ 'User' ] > = {
307
+ export type UserResolvers <
308
+ ContextType = AccountsContextGraphQLModules ,
309
+ ParentType extends ResolversParentTypes [ 'User' ] = ResolversParentTypes [ 'User' ] ,
310
+ > = {
250
311
emails ?: Resolver < Maybe < Array < ResolversTypes [ 'EmailRecord' ] > > , ParentType , ContextType > ;
251
312
id ?: Resolver < ResolversTypes [ 'ID' ] , ParentType , ContextType > ;
252
313
username ?: Resolver < Maybe < ResolversTypes [ 'String' ] > , ParentType , ContextType > ;
@@ -262,4 +323,3 @@ export type Resolvers<ContextType = AccountsContextGraphQLModules> = {
262
323
Tokens ?: TokensResolvers < ContextType > ;
263
324
User ?: UserResolvers < ContextType > ;
264
325
} ;
265
-
0 commit comments