@@ -6,20 +6,16 @@ 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
+ export type MakeEmpty < T extends { [ key : string ] : unknown } , K extends keyof T > = { [ _ in K ] ?: never } ;
10
+ export type Incremental < T > = T | { [ P in keyof T ] ?: P extends ' $fragmentName' | '__typename' ? T [ P ] : never } ;
15
11
export type RequireFields < T , K extends keyof T > = Omit < T , K > & { [ P in K ] -?: NonNullable < T [ P ] > } ;
16
12
/** All built-in and custom scalars, mapped to their actual values */
17
13
export type Scalars = {
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 } ;
14
+ ID : { input : string ; output : string ; }
15
+ String : { input : string ; output : string ; }
16
+ Boolean : { input : boolean ; output : boolean ; }
17
+ Int : { input : number ; output : number ; }
18
+ Float : { input : number ; output : number ; }
23
19
} ;
24
20
25
21
export type AuthenticateParamsInput = {
@@ -67,21 +63,25 @@ export type Mutation = {
67
63
verifyAuthentication ?: Maybe < Scalars [ 'Boolean' ] [ 'output' ] > ;
68
64
} ;
69
65
66
+
70
67
export type MutationAuthenticateArgs = {
71
68
params : AuthenticateParamsInput ;
72
69
serviceName : Scalars [ 'String' ] [ 'input' ] ;
73
70
} ;
74
71
72
+
75
73
export type MutationImpersonateArgs = {
76
74
accessToken : Scalars [ 'String' ] [ 'input' ] ;
77
75
impersonated : ImpersonationUserIdentityInput ;
78
76
} ;
79
77
78
+
80
79
export type MutationRefreshTokensArgs = {
81
80
accessToken : Scalars [ 'String' ] [ 'input' ] ;
82
81
refreshToken : Scalars [ 'String' ] [ 'input' ] ;
83
82
} ;
84
83
84
+
85
85
export type MutationVerifyAuthenticationArgs = {
86
86
params : AuthenticateParamsInput ;
87
87
serviceName : Scalars [ 'String' ] [ 'input' ] ;
@@ -111,14 +111,11 @@ export type UserInput = {
111
111
username ?: InputMaybe < Scalars [ 'String' ] [ 'input' ] > ;
112
112
} ;
113
113
114
+
115
+
114
116
export type ResolverTypeWrapper < T > = Promise < T > | T ;
115
117
116
- export type Resolver < TResult , TParent = { } , TContext = { } , TArgs = { } > = ResolverFn <
117
- TResult ,
118
- TParent ,
119
- TContext ,
120
- TArgs
121
- > ;
118
+ export type Resolver < TResult , TParent = { } , TContext = { } , TArgs = { } > = ResolverFn < TResult , TParent , TContext , TArgs > ;
122
119
123
120
export type ResolverFn < TResult , TParent , TContext , TArgs > = (
124
121
parent : TParent ,
@@ -141,13 +138,7 @@ export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (
141
138
info : GraphQLResolveInfo
142
139
) => TResult | Promise < TResult > ;
143
140
144
- export interface SubscriptionSubscriberObject <
145
- TResult ,
146
- TKey extends string ,
147
- TParent ,
148
- TContext ,
149
- TArgs ,
150
- > {
141
+ export interface SubscriptionSubscriberObject < TResult , TKey extends string , TParent , TContext , TArgs > {
151
142
subscribe : SubscriptionSubscribeFn < { [ key in TKey ] : TResult } , TParent , TContext , TArgs > ;
152
143
resolve ?: SubscriptionResolveFn < TResult , { [ key in TKey ] : TResult } , TContext , TArgs > ;
153
144
}
@@ -161,13 +152,7 @@ export type SubscriptionObject<TResult, TKey extends string, TParent, TContext,
161
152
| SubscriptionSubscriberObject < TResult , TKey , TParent , TContext , TArgs >
162
153
| SubscriptionResolverObject < TResult , TParent , TContext , TArgs > ;
163
154
164
- export type SubscriptionResolver <
165
- TResult ,
166
- TKey extends string ,
167
- TParent = { } ,
168
- TContext = { } ,
169
- TArgs = { } ,
170
- > =
155
+ export type SubscriptionResolver < TResult , TKey extends string , TParent = { } , TContext = { } , TArgs = { } > =
171
156
| ( ( ...args : any [ ] ) => SubscriptionObject < TResult , TKey , TParent , TContext , TArgs > )
172
157
| SubscriptionObject < TResult , TKey , TParent , TContext , TArgs > ;
173
158
@@ -177,11 +162,7 @@ export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (
177
162
info : GraphQLResolveInfo
178
163
) => Maybe < TTypes > | Promise < Maybe < TTypes > > ;
179
164
180
- export type IsTypeOfResolverFn < T = { } , TContext = { } > = (
181
- obj : T ,
182
- context : TContext ,
183
- info : GraphQLResolveInfo
184
- ) => boolean | Promise < boolean > ;
165
+ export type IsTypeOfResolverFn < T = { } , TContext = { } > = ( obj : T , context : TContext , info : GraphQLResolveInfo ) => boolean | Promise < boolean > ;
185
166
186
167
export type NextResolverFn < T > = ( ) => Promise < T > ;
187
168
@@ -193,6 +174,8 @@ export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs
193
174
info : GraphQLResolveInfo
194
175
) => TResult | Promise < TResult > ;
195
176
177
+
178
+
196
179
/** Mapping between all available schema types and the resolvers types */
197
180
export type ResolversTypes = {
198
181
AuthenticateParamsInput : AuthenticateParamsInput ;
@@ -227,87 +210,45 @@ export type ResolversParentTypes = {
227
210
UserInput : UserInput ;
228
211
} ;
229
212
230
- export type EmailRecordResolvers <
231
- ContextType = AccountsContextGraphQLModules ,
232
- ParentType extends ResolversParentTypes [ 'EmailRecord' ] = ResolversParentTypes [ 'EmailRecord' ] ,
233
- > = {
213
+ export type EmailRecordResolvers < ContextType = AccountsContextGraphQLModules , ParentType extends ResolversParentTypes [ 'EmailRecord' ] = ResolversParentTypes [ 'EmailRecord' ] > = {
234
214
address ?: Resolver < Maybe < ResolversTypes [ 'String' ] > , ParentType , ContextType > ;
235
215
verified ?: Resolver < Maybe < ResolversTypes [ 'Boolean' ] > , ParentType , ContextType > ;
236
216
__isTypeOf ?: IsTypeOfResolverFn < ParentType , ContextType > ;
237
217
} ;
238
218
239
- export type ImpersonateReturnResolvers <
240
- ContextType = AccountsContextGraphQLModules ,
241
- ParentType extends
242
- ResolversParentTypes [ 'ImpersonateReturn' ] = ResolversParentTypes [ 'ImpersonateReturn' ] ,
243
- > = {
219
+ export type ImpersonateReturnResolvers < ContextType = AccountsContextGraphQLModules , ParentType extends ResolversParentTypes [ 'ImpersonateReturn' ] = ResolversParentTypes [ 'ImpersonateReturn' ] > = {
244
220
authorized ?: Resolver < Maybe < ResolversTypes [ 'Boolean' ] > , ParentType , ContextType > ;
245
221
tokens ?: Resolver < Maybe < ResolversTypes [ 'Tokens' ] > , ParentType , ContextType > ;
246
222
user ?: Resolver < Maybe < ResolversTypes [ 'User' ] > , ParentType , ContextType > ;
247
223
__isTypeOf ?: IsTypeOfResolverFn < ParentType , ContextType > ;
248
224
} ;
249
225
250
- export type LoginResultResolvers <
251
- ContextType = AccountsContextGraphQLModules ,
252
- ParentType extends ResolversParentTypes [ 'LoginResult' ] = ResolversParentTypes [ 'LoginResult' ] ,
253
- > = {
226
+ export type LoginResultResolvers < ContextType = AccountsContextGraphQLModules , ParentType extends ResolversParentTypes [ 'LoginResult' ] = ResolversParentTypes [ 'LoginResult' ] > = {
254
227
sessionId ?: Resolver < Maybe < ResolversTypes [ 'String' ] > , ParentType , ContextType > ;
255
228
tokens ?: Resolver < Maybe < ResolversTypes [ 'Tokens' ] > , ParentType , ContextType > ;
256
229
user ?: Resolver < Maybe < ResolversTypes [ 'User' ] > , ParentType , ContextType > ;
257
230
__isTypeOf ?: IsTypeOfResolverFn < ParentType , ContextType > ;
258
231
} ;
259
232
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
- > ;
233
+ export type MutationResolvers < ContextType = AccountsContextGraphQLModules , ParentType extends ResolversParentTypes [ 'Mutation' ] = ResolversParentTypes [ 'Mutation' ] > = {
234
+ authenticate ?: Resolver < Maybe < ResolversTypes [ 'LoginResult' ] > , ParentType , ContextType , RequireFields < MutationAuthenticateArgs , 'params' | 'serviceName' > > ;
235
+ impersonate ?: Resolver < Maybe < ResolversTypes [ 'ImpersonateReturn' ] > , ParentType , ContextType , RequireFields < MutationImpersonateArgs , 'accessToken' | 'impersonated' > > ;
276
236
logout ?: Resolver < Maybe < ResolversTypes [ 'Boolean' ] > , ParentType , ContextType > ;
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
+ refreshTokens ?: Resolver < Maybe < ResolversTypes [ 'LoginResult' ] > , ParentType , ContextType , RequireFields < MutationRefreshTokensArgs , 'accessToken' | 'refreshToken' > > ;
238
+ verifyAuthentication ?: Resolver < Maybe < ResolversTypes [ 'Boolean' ] > , ParentType , ContextType , RequireFields < MutationVerifyAuthenticationArgs , 'params' | 'serviceName' > > ;
289
239
} ;
290
240
291
- export type QueryResolvers <
292
- ContextType = AccountsContextGraphQLModules ,
293
- ParentType extends ResolversParentTypes [ 'Query' ] = ResolversParentTypes [ 'Query' ] ,
294
- > = {
241
+ export type QueryResolvers < ContextType = AccountsContextGraphQLModules , ParentType extends ResolversParentTypes [ 'Query' ] = ResolversParentTypes [ 'Query' ] > = {
295
242
getUser ?: Resolver < Maybe < ResolversTypes [ 'User' ] > , ParentType , ContextType > ;
296
243
} ;
297
244
298
- export type TokensResolvers <
299
- ContextType = AccountsContextGraphQLModules ,
300
- ParentType extends ResolversParentTypes [ 'Tokens' ] = ResolversParentTypes [ 'Tokens' ] ,
301
- > = {
245
+ export type TokensResolvers < ContextType = AccountsContextGraphQLModules , ParentType extends ResolversParentTypes [ 'Tokens' ] = ResolversParentTypes [ 'Tokens' ] > = {
302
246
accessToken ?: Resolver < Maybe < ResolversTypes [ 'String' ] > , ParentType , ContextType > ;
303
247
refreshToken ?: Resolver < Maybe < ResolversTypes [ 'String' ] > , ParentType , ContextType > ;
304
248
__isTypeOf ?: IsTypeOfResolverFn < ParentType , ContextType > ;
305
249
} ;
306
250
307
- export type UserResolvers <
308
- ContextType = AccountsContextGraphQLModules ,
309
- ParentType extends ResolversParentTypes [ 'User' ] = ResolversParentTypes [ 'User' ] ,
310
- > = {
251
+ export type UserResolvers < ContextType = AccountsContextGraphQLModules , ParentType extends ResolversParentTypes [ 'User' ] = ResolversParentTypes [ 'User' ] > = {
311
252
emails ?: Resolver < Maybe < Array < ResolversTypes [ 'EmailRecord' ] > > , ParentType , ContextType > ;
312
253
id ?: Resolver < ResolversTypes [ 'ID' ] , ParentType , ContextType > ;
313
254
username ?: Resolver < Maybe < ResolversTypes [ 'String' ] > , ParentType , ContextType > ;
@@ -323,3 +264,4 @@ export type Resolvers<ContextType = AccountsContextGraphQLModules> = {
323
264
Tokens ?: TokensResolvers < ContextType > ;
324
265
User ?: UserResolvers < ContextType > ;
325
266
} ;
267
+
0 commit comments