@ludo.ninja/api 2.8.24 → 2.8.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (49) hide show
  1. package/build/config/index.js +4 -4
  2. package/build/graphql_tools/__generated__/schema.d.ts +8936 -0
  3. package/build/graphql_tools/__generated__/schema.js +5431 -0
  4. package/build/hosts/index.d.ts +3 -0
  5. package/build/hosts/index.js +4 -1
  6. package/build/index.d.ts +2 -13
  7. package/build/index.js +3 -25
  8. package/package.json +1 -1
  9. package/src/config/index.ts +50 -50
  10. package/src/graphql_tools/__generated__/schema.ts +12028 -0
  11. package/src/hosts/index.ts +6 -0
  12. package/src/index.ts +2 -29
  13. package/tsconfig.tsbuildinfo +1 -1
  14. package/build/graphql_tools/__generated__/adminHost/schema.d.ts +0 -1406
  15. package/build/graphql_tools/__generated__/adminHost/schema.js +0 -683
  16. package/build/graphql_tools/__generated__/assetsHost/schema.d.ts +0 -392
  17. package/build/graphql_tools/__generated__/assetsHost/schema.js +0 -80
  18. package/build/graphql_tools/__generated__/authHost/schema.d.ts +0 -238
  19. package/build/graphql_tools/__generated__/authHost/schema.js +0 -85
  20. package/build/graphql_tools/__generated__/collectionsHost/schema.d.ts +0 -455
  21. package/build/graphql_tools/__generated__/collectionsHost/schema.js +0 -80
  22. package/build/graphql_tools/__generated__/experiencesHost/schema.d.ts +0 -356
  23. package/build/graphql_tools/__generated__/experiencesHost/schema.js +0 -191
  24. package/build/graphql_tools/__generated__/extensionHost/schema.d.ts +0 -808
  25. package/build/graphql_tools/__generated__/extensionHost/schema.js +0 -449
  26. package/build/graphql_tools/__generated__/galleriesHost/schema.d.ts +0 -794
  27. package/build/graphql_tools/__generated__/galleriesHost/schema.js +0 -575
  28. package/build/graphql_tools/__generated__/identityHost/schema.d.ts +0 -1201
  29. package/build/graphql_tools/__generated__/identityHost/schema.js +0 -757
  30. package/build/graphql_tools/__generated__/mediasHost/schema.d.ts +0 -242
  31. package/build/graphql_tools/__generated__/mediasHost/schema.js +0 -110
  32. package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +0 -486
  33. package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +0 -148
  34. package/build/graphql_tools/__generated__/preferencesHost/schema.d.ts +0 -604
  35. package/build/graphql_tools/__generated__/preferencesHost/schema.js +0 -411
  36. package/build/graphql_tools/__generated__/searchHost/schema.d.ts +0 -1304
  37. package/build/graphql_tools/__generated__/searchHost/schema.js +0 -1191
  38. package/src/graphql_tools/__generated__/adminHost/schema.ts +0 -1777
  39. package/src/graphql_tools/__generated__/assetsHost/schema.ts +0 -482
  40. package/src/graphql_tools/__generated__/authHost/schema.ts +0 -317
  41. package/src/graphql_tools/__generated__/collectionsHost/schema.ts +0 -554
  42. package/src/graphql_tools/__generated__/experiencesHost/schema.ts +0 -478
  43. package/src/graphql_tools/__generated__/extensionHost/schema.ts +0 -1074
  44. package/src/graphql_tools/__generated__/galleriesHost/schema.ts +0 -1090
  45. package/src/graphql_tools/__generated__/identityHost/schema.ts +0 -1580
  46. package/src/graphql_tools/__generated__/mediasHost/schema.ts +0 -333
  47. package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +0 -629
  48. package/src/graphql_tools/__generated__/preferencesHost/schema.ts +0 -772
  49. package/src/graphql_tools/__generated__/searchHost/schema.ts +0 -2137
@@ -1,1580 +0,0 @@
1
- /* eslint-disable */
2
- import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql';
3
- import { gql } from '@apollo/client';
4
- import * as Apollo from '@apollo/client';
5
- export type Maybe<T> = T | null;
6
- export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
7
- export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
8
- export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
9
- export type RequireFields<T, K extends keyof T> = Omit<T, K> & { [P in K]-?: NonNullable<T[P]> };
10
- /** All built-in and custom scalars, mapped to their actual values */
11
- export type Scalars = {
12
- ID: string;
13
- String: string;
14
- Boolean: boolean;
15
- Int: number;
16
- Float: number;
17
- /** A 64-bit signed integer */
18
- Long: any;
19
- };
20
-
21
-
22
-
23
-
24
-
25
-
26
- export type IFollowingStatus = {
27
- userId: Scalars['ID'];
28
- following: Scalars['Boolean'];
29
- };
30
-
31
- export type IIdentity = {
32
- userId: Scalars['ID'];
33
- wallets: Array<Maybe<Scalars['String']>>;
34
- authToken: Scalars['String'];
35
- refreshToken: Scalars['String'];
36
- tokens: ITokenPairs;
37
- role: IRole;
38
- newUser?: Maybe<Scalars['Boolean']>;
39
- inviteCode?: Maybe<Scalars['String']>;
40
- };
41
-
42
- export type IInputProfile = {
43
- username?: Maybe<Scalars['String']>;
44
- about?: Maybe<Scalars['String']>;
45
- social?: Maybe<IInputSocial>;
46
- showNsfw?: Maybe<Scalars['Boolean']>;
47
- };
48
-
49
- export type IInputSocial = {
50
- facebook?: Maybe<Scalars['String']>;
51
- twitter?: Maybe<Scalars['String']>;
52
- instagram?: Maybe<Scalars['String']>;
53
- website?: Maybe<Scalars['String']>;
54
- };
55
-
56
-
57
- export type IMutation = {
58
- setDummy: Scalars['String'];
59
- createNonce: Scalars['String'];
60
- signInAdminMetamask: IIdentity;
61
- signInMetamask: IIdentity;
62
- signInTezos: IIdentity;
63
- signInSolana: IIdentity;
64
- signInElrond: IIdentity;
65
- signInFlow: IIdentity;
66
- addWalletMetamask: Scalars['Boolean'];
67
- addWalletTezos: Scalars['Boolean'];
68
- addWalletSolana: Scalars['Boolean'];
69
- addWalletElrond: Scalars['Boolean'];
70
- addWalletFlow: Scalars['Boolean'];
71
- removeWallet: Scalars['Boolean'];
72
- setMainWallet: Scalars['Boolean'];
73
- generateNewInviteCodes: Array<IUserInviteCode>;
74
- saveEmailOfJoiner: Scalars['Boolean'];
75
- useInviteCode: Scalars['Boolean'];
76
- updateProfile: Scalars['Boolean'];
77
- followProfile: Scalars['Boolean'];
78
- unfollowProfile: Scalars['Boolean'];
79
- };
80
-
81
-
82
- export type IMutationCreateNonceArgs = {
83
- address: Scalars['String'];
84
- blockchain: Scalars['String'];
85
- chainId?: Maybe<Scalars['String']>;
86
- };
87
-
88
-
89
- export type IMutationSignInAdminMetamaskArgs = {
90
- signature: Scalars['String'];
91
- address: Scalars['String'];
92
- chainId: Scalars['String'];
93
- };
94
-
95
-
96
- export type IMutationSignInMetamaskArgs = {
97
- signature: Scalars['String'];
98
- address: Scalars['String'];
99
- chainId: Scalars['String'];
100
- restore?: Maybe<Scalars['Boolean']>;
101
- inviteCode?: Maybe<Scalars['String']>;
102
- };
103
-
104
-
105
- export type IMutationSignInTezosArgs = {
106
- signature: Scalars['String'];
107
- pubkey: Scalars['String'];
108
- restore?: Maybe<Scalars['Boolean']>;
109
- inviteCode?: Maybe<Scalars['String']>;
110
- };
111
-
112
-
113
- export type IMutationSignInSolanaArgs = {
114
- signature: Scalars['String'];
115
- pubkey: Scalars['String'];
116
- restore?: Maybe<Scalars['Boolean']>;
117
- inviteCode?: Maybe<Scalars['String']>;
118
- };
119
-
120
-
121
- export type IMutationSignInElrondArgs = {
122
- signature: Scalars['String'];
123
- address: Scalars['String'];
124
- restore?: Maybe<Scalars['Boolean']>;
125
- inviteCode?: Maybe<Scalars['String']>;
126
- };
127
-
128
-
129
- export type IMutationSignInFlowArgs = {
130
- signature: Scalars['String'];
131
- address: Scalars['String'];
132
- restore?: Maybe<Scalars['Boolean']>;
133
- inviteCode?: Maybe<Scalars['String']>;
134
- };
135
-
136
-
137
- export type IMutationAddWalletMetamaskArgs = {
138
- signature: Scalars['String'];
139
- address: Scalars['String'];
140
- chainId: Scalars['String'];
141
- };
142
-
143
-
144
- export type IMutationAddWalletTezosArgs = {
145
- signature: Scalars['String'];
146
- pubkey: Scalars['String'];
147
- };
148
-
149
-
150
- export type IMutationAddWalletSolanaArgs = {
151
- signature: Scalars['String'];
152
- pubkey: Scalars['String'];
153
- };
154
-
155
-
156
- export type IMutationAddWalletElrondArgs = {
157
- signature: Scalars['String'];
158
- address: Scalars['String'];
159
- };
160
-
161
-
162
- export type IMutationAddWalletFlowArgs = {
163
- signature: Scalars['String'];
164
- address: Scalars['String'];
165
- };
166
-
167
-
168
- export type IMutationRemoveWalletArgs = {
169
- blockchain: Scalars['String'];
170
- address: Scalars['String'];
171
- chainId?: Maybe<Scalars['String']>;
172
- };
173
-
174
-
175
- export type IMutationSetMainWalletArgs = {
176
- blockchain: Scalars['String'];
177
- address: Scalars['String'];
178
- chainId?: Maybe<Scalars['String']>;
179
- };
180
-
181
-
182
- export type IMutationGenerateNewInviteCodesArgs = {
183
- codesNum: Scalars['Int'];
184
- };
185
-
186
-
187
- export type IMutationSaveEmailOfJoinerArgs = {
188
- email: Scalars['String'];
189
- isSubscribed: Scalars['Boolean'];
190
- };
191
-
192
-
193
- export type IMutationUseInviteCodeArgs = {
194
- inviteCode: Scalars['String'];
195
- };
196
-
197
-
198
- export type IMutationUpdateProfileArgs = {
199
- profile?: Maybe<IInputProfile>;
200
- };
201
-
202
-
203
- export type IMutationFollowProfileArgs = {
204
- followingUserId: Scalars['ID'];
205
- };
206
-
207
-
208
- export type IMutationUnfollowProfileArgs = {
209
- followingUserId: Scalars['ID'];
210
- };
211
-
212
- export type IProfile = {
213
- userId: Scalars['ID'];
214
- username?: Maybe<Scalars['String']>;
215
- about?: Maybe<Scalars['String']>;
216
- userpic?: Maybe<Scalars['String']>;
217
- following?: Maybe<Scalars['Boolean']>;
218
- followings?: Maybe<Scalars['Int']>;
219
- followers?: Maybe<Scalars['Int']>;
220
- social?: Maybe<ISocial>;
221
- views?: Maybe<Scalars['Int']>;
222
- createdAt?: Maybe<Scalars['Long']>;
223
- deletedAt?: Maybe<Scalars['Long']>;
224
- visible?: Maybe<Scalars['Boolean']>;
225
- deleted?: Maybe<Scalars['Boolean']>;
226
- showNsfw?: Maybe<Scalars['Boolean']>;
227
- rank?: Maybe<Scalars['Float']>;
228
- wallets?: Maybe<Array<Maybe<IWallet>>>;
229
- };
230
-
231
- export type IQuery = {
232
- getDummy: Scalars['String'];
233
- fetchUserWallets: Array<Maybe<IWallet>>;
234
- isInviteCodeAvailable: Scalars['Boolean'];
235
- getMyInviteCodes: Array<IUserInviteCode>;
236
- fetchProfile: IProfile;
237
- fetchFollowingStatus: IFollowingStatus;
238
- fetchFollowingStatuses: Array<Maybe<IFollowingStatus>>;
239
- };
240
-
241
-
242
- export type IQueryFetchUserWalletsArgs = {
243
- userId: Scalars['ID'];
244
- };
245
-
246
-
247
- export type IQueryIsInviteCodeAvailableArgs = {
248
- inviteCode: Scalars['String'];
249
- };
250
-
251
-
252
- export type IQueryFetchProfileArgs = {
253
- userId: Scalars['ID'];
254
- };
255
-
256
-
257
- export type IQueryFetchFollowingStatusArgs = {
258
- userId: Scalars['ID'];
259
- };
260
-
261
-
262
- export type IQueryFetchFollowingStatusesArgs = {
263
- userIds: Array<Scalars['ID']>;
264
- };
265
-
266
- export enum IRole {
267
- Admin = 'admin',
268
- Plain = 'plain'
269
- }
270
-
271
- export type ISocial = {
272
- facebook?: Maybe<Scalars['String']>;
273
- twitter?: Maybe<Scalars['String']>;
274
- instagram?: Maybe<Scalars['String']>;
275
- website?: Maybe<Scalars['String']>;
276
- };
277
-
278
- export type ITokenPair = {
279
- authToken: Scalars['String'];
280
- refreshToken: Scalars['String'];
281
- };
282
-
283
- export type ITokenPairs = {
284
- portalTokenPair: ITokenPair;
285
- extensionTokenPair: ITokenPair;
286
- };
287
-
288
- export type IUserInviteCode = {
289
- inviteCode: Scalars['String'];
290
- inviteeId?: Maybe<Scalars['ID']>;
291
- isUsed: Scalars['Boolean'];
292
- usedAt?: Maybe<Scalars['Long']>;
293
- };
294
-
295
- export type IWallet = {
296
- userId: Scalars['ID'];
297
- address: Scalars['String'];
298
- walletName: Scalars['String'];
299
- blockchain: Scalars['String'];
300
- chainId?: Maybe<Scalars['String']>;
301
- mainWallet: Scalars['Boolean'];
302
- };
303
-
304
-
305
-
306
- export type ResolverTypeWrapper<T> = Promise<T> | T;
307
-
308
-
309
- export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
310
- resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
311
- };
312
- export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
313
-
314
- export type ResolverFn<TResult, TParent, TContext, TArgs> = (
315
- parent: TParent,
316
- args: TArgs,
317
- context: TContext,
318
- info: GraphQLResolveInfo
319
- ) => Promise<TResult> | TResult;
320
-
321
- export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (
322
- parent: TParent,
323
- args: TArgs,
324
- context: TContext,
325
- info: GraphQLResolveInfo
326
- ) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
327
-
328
- export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (
329
- parent: TParent,
330
- args: TArgs,
331
- context: TContext,
332
- info: GraphQLResolveInfo
333
- ) => TResult | Promise<TResult>;
334
-
335
- export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
336
- subscribe: SubscriptionSubscribeFn<{ [key in TKey]: TResult }, TParent, TContext, TArgs>;
337
- resolve?: SubscriptionResolveFn<TResult, { [key in TKey]: TResult }, TContext, TArgs>;
338
- }
339
-
340
- export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
341
- subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
342
- resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
343
- }
344
-
345
- export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> =
346
- | SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs>
347
- | SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
348
-
349
- export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> =
350
- | ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>)
351
- | SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
352
-
353
- export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (
354
- parent: TParent,
355
- context: TContext,
356
- info: GraphQLResolveInfo
357
- ) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
358
-
359
- export type IsTypeOfResolverFn<T = {}, TContext = {}> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
360
-
361
- export type NextResolverFn<T> = () => Promise<T>;
362
-
363
- export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (
364
- next: NextResolverFn<TResult>,
365
- parent: TParent,
366
- args: TArgs,
367
- context: TContext,
368
- info: GraphQLResolveInfo
369
- ) => TResult | Promise<TResult>;
370
-
371
- /** Mapping between all available schema types and the resolvers types */
372
- export type IResolversTypes = {
373
- FollowingStatus: ResolverTypeWrapper<IFollowingStatus>;
374
- ID: ResolverTypeWrapper<Scalars['ID']>;
375
- Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
376
- Identity: ResolverTypeWrapper<IIdentity>;
377
- String: ResolverTypeWrapper<Scalars['String']>;
378
- InputProfile: IInputProfile;
379
- InputSocial: IInputSocial;
380
- Long: ResolverTypeWrapper<Scalars['Long']>;
381
- Mutation: ResolverTypeWrapper<{}>;
382
- Int: ResolverTypeWrapper<Scalars['Int']>;
383
- Profile: ResolverTypeWrapper<IProfile>;
384
- Float: ResolverTypeWrapper<Scalars['Float']>;
385
- Query: ResolverTypeWrapper<{}>;
386
- Role: IRole;
387
- Social: ResolverTypeWrapper<ISocial>;
388
- TokenPair: ResolverTypeWrapper<ITokenPair>;
389
- TokenPairs: ResolverTypeWrapper<ITokenPairs>;
390
- UserInviteCode: ResolverTypeWrapper<IUserInviteCode>;
391
- Wallet: ResolverTypeWrapper<IWallet>;
392
- };
393
-
394
- /** Mapping between all available schema types and the resolvers parents */
395
- export type IResolversParentTypes = {
396
- FollowingStatus: IFollowingStatus;
397
- ID: Scalars['ID'];
398
- Boolean: Scalars['Boolean'];
399
- Identity: IIdentity;
400
- String: Scalars['String'];
401
- InputProfile: IInputProfile;
402
- InputSocial: IInputSocial;
403
- Long: Scalars['Long'];
404
- Mutation: {};
405
- Int: Scalars['Int'];
406
- Profile: IProfile;
407
- Float: Scalars['Float'];
408
- Query: {};
409
- Social: ISocial;
410
- TokenPair: ITokenPair;
411
- TokenPairs: ITokenPairs;
412
- UserInviteCode: IUserInviteCode;
413
- Wallet: IWallet;
414
- };
415
-
416
- export type IPatternDirectiveArgs = {
417
- regexp: Scalars['String'];
418
- message?: Maybe<Scalars['String']>;
419
- };
420
-
421
- export type IPatternDirectiveResolver<Result, Parent, ContextType = any, Args = IPatternDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
422
-
423
- export type IRangeDirectiveArgs = {
424
- min?: Maybe<Scalars['Int']>;
425
- max?: Maybe<Scalars['Int']>;
426
- message?: Maybe<Scalars['String']>;
427
- };
428
-
429
- export type IRangeDirectiveResolver<Result, Parent, ContextType = any, Args = IRangeDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
430
-
431
- export type ISizeDirectiveArgs = {
432
- min?: Maybe<Scalars['Int']>;
433
- max?: Maybe<Scalars['Int']>;
434
- message?: Maybe<Scalars['String']>;
435
- };
436
-
437
- export type ISizeDirectiveResolver<Result, Parent, ContextType = any, Args = ISizeDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
438
-
439
- export type IConnectionDirectiveArgs = {
440
- for: Scalars['String'];
441
- };
442
-
443
- export type IConnectionDirectiveResolver<Result, Parent, ContextType = any, Args = IConnectionDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
444
-
445
- export type IOneOfDirectiveArgs = { };
446
-
447
- export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
448
-
449
- export type IFollowingStatusResolvers<ContextType = any, ParentType extends IResolversParentTypes['FollowingStatus'] = IResolversParentTypes['FollowingStatus']> = {
450
- userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
451
- following?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
452
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
453
- };
454
-
455
- export type IIdentityResolvers<ContextType = any, ParentType extends IResolversParentTypes['Identity'] = IResolversParentTypes['Identity']> = {
456
- userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
457
- wallets?: Resolver<Array<Maybe<IResolversTypes['String']>>, ParentType, ContextType>;
458
- authToken?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
459
- refreshToken?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
460
- tokens?: Resolver<IResolversTypes['TokenPairs'], ParentType, ContextType>;
461
- role?: Resolver<IResolversTypes['Role'], ParentType, ContextType>;
462
- newUser?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
463
- inviteCode?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
464
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
465
- };
466
-
467
- export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
468
- name: 'Long';
469
- }
470
-
471
- export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
472
- setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
473
- createNonce?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IMutationCreateNonceArgs, 'address' | 'blockchain'>>;
474
- signInAdminMetamask?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInAdminMetamaskArgs, 'signature' | 'address' | 'chainId'>>;
475
- signInMetamask?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInMetamaskArgs, 'signature' | 'address' | 'chainId'>>;
476
- signInTezos?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInTezosArgs, 'signature' | 'pubkey'>>;
477
- signInSolana?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInSolanaArgs, 'signature' | 'pubkey'>>;
478
- signInElrond?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInElrondArgs, 'signature' | 'address'>>;
479
- signInFlow?: Resolver<IResolversTypes['Identity'], ParentType, ContextType, RequireFields<IMutationSignInFlowArgs, 'signature' | 'address'>>;
480
- addWalletMetamask?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletMetamaskArgs, 'signature' | 'address' | 'chainId'>>;
481
- addWalletTezos?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletTezosArgs, 'signature' | 'pubkey'>>;
482
- addWalletSolana?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletSolanaArgs, 'signature' | 'pubkey'>>;
483
- addWalletElrond?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletElrondArgs, 'signature' | 'address'>>;
484
- addWalletFlow?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddWalletFlowArgs, 'signature' | 'address'>>;
485
- removeWallet?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveWalletArgs, 'blockchain' | 'address'>>;
486
- setMainWallet?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSetMainWalletArgs, 'blockchain' | 'address'>>;
487
- generateNewInviteCodes?: Resolver<Array<IResolversTypes['UserInviteCode']>, ParentType, ContextType, RequireFields<IMutationGenerateNewInviteCodesArgs, 'codesNum'>>;
488
- saveEmailOfJoiner?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSaveEmailOfJoinerArgs, 'email' | 'isSubscribed'>>;
489
- useInviteCode?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUseInviteCodeArgs, 'inviteCode'>>;
490
- updateProfile?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, Partial<IMutationUpdateProfileArgs>>;
491
- followProfile?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationFollowProfileArgs, 'followingUserId'>>;
492
- unfollowProfile?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUnfollowProfileArgs, 'followingUserId'>>;
493
- };
494
-
495
- export type IProfileResolvers<ContextType = any, ParentType extends IResolversParentTypes['Profile'] = IResolversParentTypes['Profile']> = {
496
- userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
497
- username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
498
- about?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
499
- userpic?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
500
- following?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
501
- followings?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
502
- followers?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
503
- social?: Resolver<Maybe<IResolversTypes['Social']>, ParentType, ContextType>;
504
- views?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
505
- createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
506
- deletedAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
507
- visible?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
508
- deleted?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
509
- showNsfw?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
510
- rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
511
- wallets?: Resolver<Maybe<Array<Maybe<IResolversTypes['Wallet']>>>, ParentType, ContextType>;
512
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
513
- };
514
-
515
- export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
516
- getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
517
- fetchUserWallets?: Resolver<Array<Maybe<IResolversTypes['Wallet']>>, ParentType, ContextType, RequireFields<IQueryFetchUserWalletsArgs, 'userId'>>;
518
- isInviteCodeAvailable?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IQueryIsInviteCodeAvailableArgs, 'inviteCode'>>;
519
- getMyInviteCodes?: Resolver<Array<IResolversTypes['UserInviteCode']>, ParentType, ContextType>;
520
- fetchProfile?: Resolver<IResolversTypes['Profile'], ParentType, ContextType, RequireFields<IQueryFetchProfileArgs, 'userId'>>;
521
- fetchFollowingStatus?: Resolver<IResolversTypes['FollowingStatus'], ParentType, ContextType, RequireFields<IQueryFetchFollowingStatusArgs, 'userId'>>;
522
- fetchFollowingStatuses?: Resolver<Array<Maybe<IResolversTypes['FollowingStatus']>>, ParentType, ContextType, RequireFields<IQueryFetchFollowingStatusesArgs, 'userIds'>>;
523
- };
524
-
525
- export type ISocialResolvers<ContextType = any, ParentType extends IResolversParentTypes['Social'] = IResolversParentTypes['Social']> = {
526
- facebook?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
527
- twitter?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
528
- instagram?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
529
- website?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
530
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
531
- };
532
-
533
- export type ITokenPairResolvers<ContextType = any, ParentType extends IResolversParentTypes['TokenPair'] = IResolversParentTypes['TokenPair']> = {
534
- authToken?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
535
- refreshToken?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
536
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
537
- };
538
-
539
- export type ITokenPairsResolvers<ContextType = any, ParentType extends IResolversParentTypes['TokenPairs'] = IResolversParentTypes['TokenPairs']> = {
540
- portalTokenPair?: Resolver<IResolversTypes['TokenPair'], ParentType, ContextType>;
541
- extensionTokenPair?: Resolver<IResolversTypes['TokenPair'], ParentType, ContextType>;
542
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
543
- };
544
-
545
- export type IUserInviteCodeResolvers<ContextType = any, ParentType extends IResolversParentTypes['UserInviteCode'] = IResolversParentTypes['UserInviteCode']> = {
546
- inviteCode?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
547
- inviteeId?: Resolver<Maybe<IResolversTypes['ID']>, ParentType, ContextType>;
548
- isUsed?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
549
- usedAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
550
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
551
- };
552
-
553
- export type IWalletResolvers<ContextType = any, ParentType extends IResolversParentTypes['Wallet'] = IResolversParentTypes['Wallet']> = {
554
- userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
555
- address?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
556
- walletName?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
557
- blockchain?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
558
- chainId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
559
- mainWallet?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
560
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
561
- };
562
-
563
- export type IResolvers<ContextType = any> = {
564
- FollowingStatus?: IFollowingStatusResolvers<ContextType>;
565
- Identity?: IIdentityResolvers<ContextType>;
566
- Long?: GraphQLScalarType;
567
- Mutation?: IMutationResolvers<ContextType>;
568
- Profile?: IProfileResolvers<ContextType>;
569
- Query?: IQueryResolvers<ContextType>;
570
- Social?: ISocialResolvers<ContextType>;
571
- TokenPair?: ITokenPairResolvers<ContextType>;
572
- TokenPairs?: ITokenPairsResolvers<ContextType>;
573
- UserInviteCode?: IUserInviteCodeResolvers<ContextType>;
574
- Wallet?: IWalletResolvers<ContextType>;
575
- };
576
-
577
- export type IDirectiveResolvers<ContextType = any> = {
578
- Pattern?: IPatternDirectiveResolver<any, any, ContextType>;
579
- Range?: IRangeDirectiveResolver<any, any, ContextType>;
580
- Size?: ISizeDirectiveResolver<any, any, ContextType>;
581
- connection?: IConnectionDirectiveResolver<any, any, ContextType>;
582
- oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
583
- };
584
-
585
- export type IAddWalletElrondMutationVariables = Exact<{
586
- signature: Scalars['String'];
587
- address: Scalars['String'];
588
- }>;
589
-
590
-
591
- export type IAddWalletElrondMutation = Pick<IMutation, 'addWalletElrond'>;
592
-
593
- export type IAddWalletFlowMutationVariables = Exact<{
594
- signature: Scalars['String'];
595
- address: Scalars['String'];
596
- }>;
597
-
598
-
599
- export type IAddWalletFlowMutation = Pick<IMutation, 'addWalletFlow'>;
600
-
601
- export type IAddWalletMetamaskMutationVariables = Exact<{
602
- signature: Scalars['String'];
603
- address: Scalars['String'];
604
- chainId: Scalars['String'];
605
- }>;
606
-
607
-
608
- export type IAddWalletMetamaskMutation = Pick<IMutation, 'addWalletMetamask'>;
609
-
610
- export type IAddWalletSolanaMutationVariables = Exact<{
611
- signature: Scalars['String'];
612
- pubkey: Scalars['String'];
613
- }>;
614
-
615
-
616
- export type IAddWalletSolanaMutation = Pick<IMutation, 'addWalletSolana'>;
617
-
618
- export type IAddWalletTezosMutationVariables = Exact<{
619
- signature: Scalars['String'];
620
- pubkey: Scalars['String'];
621
- }>;
622
-
623
-
624
- export type IAddWalletTezosMutation = Pick<IMutation, 'addWalletTezos'>;
625
-
626
- export type ICreateNonceMutationVariables = Exact<{
627
- address: Scalars['String'];
628
- blockchain: Scalars['String'];
629
- chainId?: Maybe<Scalars['String']>;
630
- }>;
631
-
632
-
633
- export type ICreateNonceMutation = Pick<IMutation, 'createNonce'>;
634
-
635
- export type IGenerateNewInviteCodesMutationVariables = Exact<{
636
- codesNum: Scalars['Int'];
637
- }>;
638
-
639
-
640
- export type IGenerateNewInviteCodesMutation = { generateNewInviteCodes: Array<Pick<IUserInviteCode, 'inviteCode' | 'inviteeId' | 'isUsed' | 'usedAt'>> };
641
-
642
- export type IUseInviteCodeMutationVariables = Exact<{
643
- inviteCode: Scalars['String'];
644
- }>;
645
-
646
-
647
- export type IUseInviteCodeMutation = Pick<IMutation, 'useInviteCode'>;
648
-
649
- export type IRemoveWalletMutationVariables = Exact<{
650
- blockchain: Scalars['String'];
651
- address: Scalars['String'];
652
- chainId?: Maybe<Scalars['String']>;
653
- }>;
654
-
655
-
656
- export type IRemoveWalletMutation = Pick<IMutation, 'removeWallet'>;
657
-
658
- export type ISaveEmailOfJoinerMutationVariables = Exact<{
659
- email: Scalars['String'];
660
- isSubscribed: Scalars['Boolean'];
661
- }>;
662
-
663
-
664
- export type ISaveEmailOfJoinerMutation = Pick<IMutation, 'saveEmailOfJoiner'>;
665
-
666
- export type ISetMainWalletMutationVariables = Exact<{
667
- blockchain: Scalars['String'];
668
- address: Scalars['String'];
669
- chainId?: Maybe<Scalars['String']>;
670
- }>;
671
-
672
-
673
- export type ISetMainWalletMutation = Pick<IMutation, 'setMainWallet'>;
674
-
675
- export type ISignInAdminMetamaskMutationVariables = Exact<{
676
- signature: Scalars['String'];
677
- address: Scalars['String'];
678
- chainId: Scalars['String'];
679
- }>;
680
-
681
-
682
- export type ISignInAdminMetamaskMutation = { signInAdminMetamask: (
683
- Pick<IIdentity, 'userId' | 'wallets' | 'newUser' | 'inviteCode' | 'role'>
684
- & { tokens: { portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>, extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'> } }
685
- ) };
686
-
687
- export type ISignInElrondMutationVariables = Exact<{
688
- signature: Scalars['String'];
689
- address: Scalars['String'];
690
- }>;
691
-
692
-
693
- export type ISignInElrondMutation = { signInElrond: (
694
- Pick<IIdentity, 'userId' | 'wallets' | 'newUser' | 'inviteCode' | 'role'>
695
- & { tokens: { portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>, extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'> } }
696
- ) };
697
-
698
- export type ISignInFlowMutationVariables = Exact<{
699
- signature: Scalars['String'];
700
- address: Scalars['String'];
701
- }>;
702
-
703
-
704
- export type ISignInFlowMutation = { signInFlow: (
705
- Pick<IIdentity, 'userId' | 'wallets' | 'newUser' | 'inviteCode' | 'role'>
706
- & { tokens: { portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>, extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'> } }
707
- ) };
708
-
709
- export type ISignInMetamaskMutationVariables = Exact<{
710
- signature: Scalars['String'];
711
- address: Scalars['String'];
712
- chainId: Scalars['String'];
713
- }>;
714
-
715
-
716
- export type ISignInMetamaskMutation = { signInMetamask: (
717
- Pick<IIdentity, 'userId' | 'wallets' | 'newUser' | 'inviteCode' | 'role'>
718
- & { tokens: { portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>, extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'> } }
719
- ) };
720
-
721
- export type ISignInSolanaMutationVariables = Exact<{
722
- signature: Scalars['String'];
723
- pubkey: Scalars['String'];
724
- }>;
725
-
726
-
727
- export type ISignInSolanaMutation = { signInSolana: (
728
- Pick<IIdentity, 'userId' | 'wallets' | 'newUser' | 'inviteCode' | 'role'>
729
- & { tokens: { portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>, extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'> } }
730
- ) };
731
-
732
- export type ISignInTezosMutationVariables = Exact<{
733
- signature: Scalars['String'];
734
- pubkey: Scalars['String'];
735
- }>;
736
-
737
-
738
- export type ISignInTezosMutation = { signInTezos: (
739
- Pick<IIdentity, 'userId' | 'wallets' | 'newUser' | 'inviteCode' | 'role'>
740
- & { tokens: { portalTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'>, extensionTokenPair: Pick<ITokenPair, 'authToken' | 'refreshToken'> } }
741
- ) };
742
-
743
- export type IUpdateProfileMutationVariables = Exact<{
744
- username?: Maybe<Scalars['String']>;
745
- about?: Maybe<Scalars['String']>;
746
- facebook?: Maybe<Scalars['String']>;
747
- twitter?: Maybe<Scalars['String']>;
748
- instagram?: Maybe<Scalars['String']>;
749
- website?: Maybe<Scalars['String']>;
750
- showNsfw?: Maybe<Scalars['Boolean']>;
751
- }>;
752
-
753
-
754
- export type IUpdateProfileMutation = Pick<IMutation, 'updateProfile'>;
755
-
756
- export type IFetchProfileQueryVariables = Exact<{
757
- userId: Scalars['ID'];
758
- }>;
759
-
760
-
761
- export type IFetchProfileQuery = { fetchProfile: (
762
- Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'following' | 'followings' | 'followers' | 'rank' | 'views' | 'createdAt' | 'deletedAt' | 'visible' | 'deleted' | 'showNsfw'>
763
- & { social?: Maybe<Pick<ISocial, 'facebook' | 'twitter' | 'instagram' | 'website'>>, wallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId'>>>> }
764
- ) };
765
-
766
- export type IFetchUserWalletsQueryVariables = Exact<{
767
- userId: Scalars['ID'];
768
- }>;
769
-
770
-
771
- export type IFetchUserWalletsQuery = { fetchUserWallets: Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId' | 'mainWallet'>>> };
772
-
773
- export type IGetMyInviteCodesQueryVariables = Exact<{ [key: string]: never; }>;
774
-
775
-
776
- export type IGetMyInviteCodesQuery = { getMyInviteCodes: Array<Pick<IUserInviteCode, 'inviteCode' | 'inviteeId' | 'isUsed' | 'usedAt'>> };
777
-
778
-
779
- export const AddWalletElrondDocument = gql`
780
- mutation AddWalletElrond($signature: String!, $address: String!) {
781
- addWalletElrond(signature: $signature, address: $address)
782
- }
783
- `;
784
- export type IAddWalletElrondMutationFn = Apollo.MutationFunction<IAddWalletElrondMutation, IAddWalletElrondMutationVariables>;
785
-
786
- /**
787
- * __useAddWalletElrondMutation__
788
- *
789
- * To run a mutation, you first call `useAddWalletElrondMutation` within a React component and pass it any options that fit your needs.
790
- * When your component renders, `useAddWalletElrondMutation` returns a tuple that includes:
791
- * - A mutate function that you can call at any time to execute the mutation
792
- * - An object with fields that represent the current status of the mutation's execution
793
- *
794
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
795
- *
796
- * @example
797
- * const [addWalletElrondMutation, { data, loading, error }] = useAddWalletElrondMutation({
798
- * variables: {
799
- * signature: // value for 'signature'
800
- * address: // value for 'address'
801
- * },
802
- * });
803
- */
804
- export function useAddWalletElrondMutation(baseOptions?: Apollo.MutationHookOptions<IAddWalletElrondMutation, IAddWalletElrondMutationVariables>) {
805
- return Apollo.useMutation<IAddWalletElrondMutation, IAddWalletElrondMutationVariables>(AddWalletElrondDocument, baseOptions);
806
- }
807
- export type AddWalletElrondMutationHookResult = ReturnType<typeof useAddWalletElrondMutation>;
808
- export type AddWalletElrondMutationResult = Apollo.MutationResult<IAddWalletElrondMutation>;
809
- export type AddWalletElrondMutationOptions = Apollo.BaseMutationOptions<IAddWalletElrondMutation, IAddWalletElrondMutationVariables>;
810
- export const AddWalletFlowDocument = gql`
811
- mutation AddWalletFlow($signature: String!, $address: String!) {
812
- addWalletFlow(signature: $signature, address: $address)
813
- }
814
- `;
815
- export type IAddWalletFlowMutationFn = Apollo.MutationFunction<IAddWalletFlowMutation, IAddWalletFlowMutationVariables>;
816
-
817
- /**
818
- * __useAddWalletFlowMutation__
819
- *
820
- * To run a mutation, you first call `useAddWalletFlowMutation` within a React component and pass it any options that fit your needs.
821
- * When your component renders, `useAddWalletFlowMutation` returns a tuple that includes:
822
- * - A mutate function that you can call at any time to execute the mutation
823
- * - An object with fields that represent the current status of the mutation's execution
824
- *
825
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
826
- *
827
- * @example
828
- * const [addWalletFlowMutation, { data, loading, error }] = useAddWalletFlowMutation({
829
- * variables: {
830
- * signature: // value for 'signature'
831
- * address: // value for 'address'
832
- * },
833
- * });
834
- */
835
- export function useAddWalletFlowMutation(baseOptions?: Apollo.MutationHookOptions<IAddWalletFlowMutation, IAddWalletFlowMutationVariables>) {
836
- return Apollo.useMutation<IAddWalletFlowMutation, IAddWalletFlowMutationVariables>(AddWalletFlowDocument, baseOptions);
837
- }
838
- export type AddWalletFlowMutationHookResult = ReturnType<typeof useAddWalletFlowMutation>;
839
- export type AddWalletFlowMutationResult = Apollo.MutationResult<IAddWalletFlowMutation>;
840
- export type AddWalletFlowMutationOptions = Apollo.BaseMutationOptions<IAddWalletFlowMutation, IAddWalletFlowMutationVariables>;
841
- export const AddWalletMetamaskDocument = gql`
842
- mutation AddWalletMetamask($signature: String!, $address: String!, $chainId: String!) {
843
- addWalletMetamask(signature: $signature, address: $address, chainId: $chainId)
844
- }
845
- `;
846
- export type IAddWalletMetamaskMutationFn = Apollo.MutationFunction<IAddWalletMetamaskMutation, IAddWalletMetamaskMutationVariables>;
847
-
848
- /**
849
- * __useAddWalletMetamaskMutation__
850
- *
851
- * To run a mutation, you first call `useAddWalletMetamaskMutation` within a React component and pass it any options that fit your needs.
852
- * When your component renders, `useAddWalletMetamaskMutation` returns a tuple that includes:
853
- * - A mutate function that you can call at any time to execute the mutation
854
- * - An object with fields that represent the current status of the mutation's execution
855
- *
856
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
857
- *
858
- * @example
859
- * const [addWalletMetamaskMutation, { data, loading, error }] = useAddWalletMetamaskMutation({
860
- * variables: {
861
- * signature: // value for 'signature'
862
- * address: // value for 'address'
863
- * chainId: // value for 'chainId'
864
- * },
865
- * });
866
- */
867
- export function useAddWalletMetamaskMutation(baseOptions?: Apollo.MutationHookOptions<IAddWalletMetamaskMutation, IAddWalletMetamaskMutationVariables>) {
868
- return Apollo.useMutation<IAddWalletMetamaskMutation, IAddWalletMetamaskMutationVariables>(AddWalletMetamaskDocument, baseOptions);
869
- }
870
- export type AddWalletMetamaskMutationHookResult = ReturnType<typeof useAddWalletMetamaskMutation>;
871
- export type AddWalletMetamaskMutationResult = Apollo.MutationResult<IAddWalletMetamaskMutation>;
872
- export type AddWalletMetamaskMutationOptions = Apollo.BaseMutationOptions<IAddWalletMetamaskMutation, IAddWalletMetamaskMutationVariables>;
873
- export const AddWalletSolanaDocument = gql`
874
- mutation AddWalletSolana($signature: String!, $pubkey: String!) {
875
- addWalletSolana(signature: $signature, pubkey: $pubkey)
876
- }
877
- `;
878
- export type IAddWalletSolanaMutationFn = Apollo.MutationFunction<IAddWalletSolanaMutation, IAddWalletSolanaMutationVariables>;
879
-
880
- /**
881
- * __useAddWalletSolanaMutation__
882
- *
883
- * To run a mutation, you first call `useAddWalletSolanaMutation` within a React component and pass it any options that fit your needs.
884
- * When your component renders, `useAddWalletSolanaMutation` returns a tuple that includes:
885
- * - A mutate function that you can call at any time to execute the mutation
886
- * - An object with fields that represent the current status of the mutation's execution
887
- *
888
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
889
- *
890
- * @example
891
- * const [addWalletSolanaMutation, { data, loading, error }] = useAddWalletSolanaMutation({
892
- * variables: {
893
- * signature: // value for 'signature'
894
- * pubkey: // value for 'pubkey'
895
- * },
896
- * });
897
- */
898
- export function useAddWalletSolanaMutation(baseOptions?: Apollo.MutationHookOptions<IAddWalletSolanaMutation, IAddWalletSolanaMutationVariables>) {
899
- return Apollo.useMutation<IAddWalletSolanaMutation, IAddWalletSolanaMutationVariables>(AddWalletSolanaDocument, baseOptions);
900
- }
901
- export type AddWalletSolanaMutationHookResult = ReturnType<typeof useAddWalletSolanaMutation>;
902
- export type AddWalletSolanaMutationResult = Apollo.MutationResult<IAddWalletSolanaMutation>;
903
- export type AddWalletSolanaMutationOptions = Apollo.BaseMutationOptions<IAddWalletSolanaMutation, IAddWalletSolanaMutationVariables>;
904
- export const AddWalletTezosDocument = gql`
905
- mutation AddWalletTezos($signature: String!, $pubkey: String!) {
906
- addWalletTezos(signature: $signature, pubkey: $pubkey)
907
- }
908
- `;
909
- export type IAddWalletTezosMutationFn = Apollo.MutationFunction<IAddWalletTezosMutation, IAddWalletTezosMutationVariables>;
910
-
911
- /**
912
- * __useAddWalletTezosMutation__
913
- *
914
- * To run a mutation, you first call `useAddWalletTezosMutation` within a React component and pass it any options that fit your needs.
915
- * When your component renders, `useAddWalletTezosMutation` returns a tuple that includes:
916
- * - A mutate function that you can call at any time to execute the mutation
917
- * - An object with fields that represent the current status of the mutation's execution
918
- *
919
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
920
- *
921
- * @example
922
- * const [addWalletTezosMutation, { data, loading, error }] = useAddWalletTezosMutation({
923
- * variables: {
924
- * signature: // value for 'signature'
925
- * pubkey: // value for 'pubkey'
926
- * },
927
- * });
928
- */
929
- export function useAddWalletTezosMutation(baseOptions?: Apollo.MutationHookOptions<IAddWalletTezosMutation, IAddWalletTezosMutationVariables>) {
930
- return Apollo.useMutation<IAddWalletTezosMutation, IAddWalletTezosMutationVariables>(AddWalletTezosDocument, baseOptions);
931
- }
932
- export type AddWalletTezosMutationHookResult = ReturnType<typeof useAddWalletTezosMutation>;
933
- export type AddWalletTezosMutationResult = Apollo.MutationResult<IAddWalletTezosMutation>;
934
- export type AddWalletTezosMutationOptions = Apollo.BaseMutationOptions<IAddWalletTezosMutation, IAddWalletTezosMutationVariables>;
935
- export const CreateNonceDocument = gql`
936
- mutation CreateNonce($address: String!, $blockchain: String!, $chainId: String) {
937
- createNonce(address: $address, blockchain: $blockchain, chainId: $chainId)
938
- }
939
- `;
940
- export type ICreateNonceMutationFn = Apollo.MutationFunction<ICreateNonceMutation, ICreateNonceMutationVariables>;
941
-
942
- /**
943
- * __useCreateNonceMutation__
944
- *
945
- * To run a mutation, you first call `useCreateNonceMutation` within a React component and pass it any options that fit your needs.
946
- * When your component renders, `useCreateNonceMutation` returns a tuple that includes:
947
- * - A mutate function that you can call at any time to execute the mutation
948
- * - An object with fields that represent the current status of the mutation's execution
949
- *
950
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
951
- *
952
- * @example
953
- * const [createNonceMutation, { data, loading, error }] = useCreateNonceMutation({
954
- * variables: {
955
- * address: // value for 'address'
956
- * blockchain: // value for 'blockchain'
957
- * chainId: // value for 'chainId'
958
- * },
959
- * });
960
- */
961
- export function useCreateNonceMutation(baseOptions?: Apollo.MutationHookOptions<ICreateNonceMutation, ICreateNonceMutationVariables>) {
962
- return Apollo.useMutation<ICreateNonceMutation, ICreateNonceMutationVariables>(CreateNonceDocument, baseOptions);
963
- }
964
- export type CreateNonceMutationHookResult = ReturnType<typeof useCreateNonceMutation>;
965
- export type CreateNonceMutationResult = Apollo.MutationResult<ICreateNonceMutation>;
966
- export type CreateNonceMutationOptions = Apollo.BaseMutationOptions<ICreateNonceMutation, ICreateNonceMutationVariables>;
967
- export const GenerateNewInviteCodesDocument = gql`
968
- mutation GenerateNewInviteCodes($codesNum: Int!) {
969
- generateNewInviteCodes(codesNum: $codesNum) {
970
- inviteCode
971
- inviteeId
972
- isUsed
973
- usedAt
974
- }
975
- }
976
- `;
977
- export type IGenerateNewInviteCodesMutationFn = Apollo.MutationFunction<IGenerateNewInviteCodesMutation, IGenerateNewInviteCodesMutationVariables>;
978
-
979
- /**
980
- * __useGenerateNewInviteCodesMutation__
981
- *
982
- * To run a mutation, you first call `useGenerateNewInviteCodesMutation` within a React component and pass it any options that fit your needs.
983
- * When your component renders, `useGenerateNewInviteCodesMutation` returns a tuple that includes:
984
- * - A mutate function that you can call at any time to execute the mutation
985
- * - An object with fields that represent the current status of the mutation's execution
986
- *
987
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
988
- *
989
- * @example
990
- * const [generateNewInviteCodesMutation, { data, loading, error }] = useGenerateNewInviteCodesMutation({
991
- * variables: {
992
- * codesNum: // value for 'codesNum'
993
- * },
994
- * });
995
- */
996
- export function useGenerateNewInviteCodesMutation(baseOptions?: Apollo.MutationHookOptions<IGenerateNewInviteCodesMutation, IGenerateNewInviteCodesMutationVariables>) {
997
- return Apollo.useMutation<IGenerateNewInviteCodesMutation, IGenerateNewInviteCodesMutationVariables>(GenerateNewInviteCodesDocument, baseOptions);
998
- }
999
- export type GenerateNewInviteCodesMutationHookResult = ReturnType<typeof useGenerateNewInviteCodesMutation>;
1000
- export type GenerateNewInviteCodesMutationResult = Apollo.MutationResult<IGenerateNewInviteCodesMutation>;
1001
- export type GenerateNewInviteCodesMutationOptions = Apollo.BaseMutationOptions<IGenerateNewInviteCodesMutation, IGenerateNewInviteCodesMutationVariables>;
1002
- export const UseInviteCodeDocument = gql`
1003
- mutation UseInviteCode($inviteCode: String!) {
1004
- useInviteCode(inviteCode: $inviteCode)
1005
- }
1006
- `;
1007
- export type IUseInviteCodeMutationFn = Apollo.MutationFunction<IUseInviteCodeMutation, IUseInviteCodeMutationVariables>;
1008
-
1009
- /**
1010
- * __useUseInviteCodeMutation__
1011
- *
1012
- * To run a mutation, you first call `useUseInviteCodeMutation` within a React component and pass it any options that fit your needs.
1013
- * When your component renders, `useUseInviteCodeMutation` returns a tuple that includes:
1014
- * - A mutate function that you can call at any time to execute the mutation
1015
- * - An object with fields that represent the current status of the mutation's execution
1016
- *
1017
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1018
- *
1019
- * @example
1020
- * const [useInviteCodeMutation, { data, loading, error }] = useUseInviteCodeMutation({
1021
- * variables: {
1022
- * inviteCode: // value for 'inviteCode'
1023
- * },
1024
- * });
1025
- */
1026
- export function useUseInviteCodeMutation(baseOptions?: Apollo.MutationHookOptions<IUseInviteCodeMutation, IUseInviteCodeMutationVariables>) {
1027
- return Apollo.useMutation<IUseInviteCodeMutation, IUseInviteCodeMutationVariables>(UseInviteCodeDocument, baseOptions);
1028
- }
1029
- export type UseInviteCodeMutationHookResult = ReturnType<typeof useUseInviteCodeMutation>;
1030
- export type UseInviteCodeMutationResult = Apollo.MutationResult<IUseInviteCodeMutation>;
1031
- export type UseInviteCodeMutationOptions = Apollo.BaseMutationOptions<IUseInviteCodeMutation, IUseInviteCodeMutationVariables>;
1032
- export const RemoveWalletDocument = gql`
1033
- mutation RemoveWallet($blockchain: String!, $address: String!, $chainId: String) {
1034
- removeWallet(blockchain: $blockchain, address: $address, chainId: $chainId)
1035
- }
1036
- `;
1037
- export type IRemoveWalletMutationFn = Apollo.MutationFunction<IRemoveWalletMutation, IRemoveWalletMutationVariables>;
1038
-
1039
- /**
1040
- * __useRemoveWalletMutation__
1041
- *
1042
- * To run a mutation, you first call `useRemoveWalletMutation` within a React component and pass it any options that fit your needs.
1043
- * When your component renders, `useRemoveWalletMutation` returns a tuple that includes:
1044
- * - A mutate function that you can call at any time to execute the mutation
1045
- * - An object with fields that represent the current status of the mutation's execution
1046
- *
1047
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1048
- *
1049
- * @example
1050
- * const [removeWalletMutation, { data, loading, error }] = useRemoveWalletMutation({
1051
- * variables: {
1052
- * blockchain: // value for 'blockchain'
1053
- * address: // value for 'address'
1054
- * chainId: // value for 'chainId'
1055
- * },
1056
- * });
1057
- */
1058
- export function useRemoveWalletMutation(baseOptions?: Apollo.MutationHookOptions<IRemoveWalletMutation, IRemoveWalletMutationVariables>) {
1059
- return Apollo.useMutation<IRemoveWalletMutation, IRemoveWalletMutationVariables>(RemoveWalletDocument, baseOptions);
1060
- }
1061
- export type RemoveWalletMutationHookResult = ReturnType<typeof useRemoveWalletMutation>;
1062
- export type RemoveWalletMutationResult = Apollo.MutationResult<IRemoveWalletMutation>;
1063
- export type RemoveWalletMutationOptions = Apollo.BaseMutationOptions<IRemoveWalletMutation, IRemoveWalletMutationVariables>;
1064
- export const SaveEmailOfJoinerDocument = gql`
1065
- mutation SaveEmailOfJoiner($email: String!, $isSubscribed: Boolean!) {
1066
- saveEmailOfJoiner(email: $email, isSubscribed: $isSubscribed)
1067
- }
1068
- `;
1069
- export type ISaveEmailOfJoinerMutationFn = Apollo.MutationFunction<ISaveEmailOfJoinerMutation, ISaveEmailOfJoinerMutationVariables>;
1070
-
1071
- /**
1072
- * __useSaveEmailOfJoinerMutation__
1073
- *
1074
- * To run a mutation, you first call `useSaveEmailOfJoinerMutation` within a React component and pass it any options that fit your needs.
1075
- * When your component renders, `useSaveEmailOfJoinerMutation` returns a tuple that includes:
1076
- * - A mutate function that you can call at any time to execute the mutation
1077
- * - An object with fields that represent the current status of the mutation's execution
1078
- *
1079
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1080
- *
1081
- * @example
1082
- * const [saveEmailOfJoinerMutation, { data, loading, error }] = useSaveEmailOfJoinerMutation({
1083
- * variables: {
1084
- * email: // value for 'email'
1085
- * isSubscribed: // value for 'isSubscribed'
1086
- * },
1087
- * });
1088
- */
1089
- export function useSaveEmailOfJoinerMutation(baseOptions?: Apollo.MutationHookOptions<ISaveEmailOfJoinerMutation, ISaveEmailOfJoinerMutationVariables>) {
1090
- return Apollo.useMutation<ISaveEmailOfJoinerMutation, ISaveEmailOfJoinerMutationVariables>(SaveEmailOfJoinerDocument, baseOptions);
1091
- }
1092
- export type SaveEmailOfJoinerMutationHookResult = ReturnType<typeof useSaveEmailOfJoinerMutation>;
1093
- export type SaveEmailOfJoinerMutationResult = Apollo.MutationResult<ISaveEmailOfJoinerMutation>;
1094
- export type SaveEmailOfJoinerMutationOptions = Apollo.BaseMutationOptions<ISaveEmailOfJoinerMutation, ISaveEmailOfJoinerMutationVariables>;
1095
- export const SetMainWalletDocument = gql`
1096
- mutation SetMainWallet($blockchain: String!, $address: String!, $chainId: String) {
1097
- setMainWallet(blockchain: $blockchain, address: $address, chainId: $chainId)
1098
- }
1099
- `;
1100
- export type ISetMainWalletMutationFn = Apollo.MutationFunction<ISetMainWalletMutation, ISetMainWalletMutationVariables>;
1101
-
1102
- /**
1103
- * __useSetMainWalletMutation__
1104
- *
1105
- * To run a mutation, you first call `useSetMainWalletMutation` within a React component and pass it any options that fit your needs.
1106
- * When your component renders, `useSetMainWalletMutation` returns a tuple that includes:
1107
- * - A mutate function that you can call at any time to execute the mutation
1108
- * - An object with fields that represent the current status of the mutation's execution
1109
- *
1110
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1111
- *
1112
- * @example
1113
- * const [setMainWalletMutation, { data, loading, error }] = useSetMainWalletMutation({
1114
- * variables: {
1115
- * blockchain: // value for 'blockchain'
1116
- * address: // value for 'address'
1117
- * chainId: // value for 'chainId'
1118
- * },
1119
- * });
1120
- */
1121
- export function useSetMainWalletMutation(baseOptions?: Apollo.MutationHookOptions<ISetMainWalletMutation, ISetMainWalletMutationVariables>) {
1122
- return Apollo.useMutation<ISetMainWalletMutation, ISetMainWalletMutationVariables>(SetMainWalletDocument, baseOptions);
1123
- }
1124
- export type SetMainWalletMutationHookResult = ReturnType<typeof useSetMainWalletMutation>;
1125
- export type SetMainWalletMutationResult = Apollo.MutationResult<ISetMainWalletMutation>;
1126
- export type SetMainWalletMutationOptions = Apollo.BaseMutationOptions<ISetMainWalletMutation, ISetMainWalletMutationVariables>;
1127
- export const SignInAdminMetamaskDocument = gql`
1128
- mutation SignInAdminMetamask($signature: String!, $address: String!, $chainId: String!) {
1129
- signInAdminMetamask(signature: $signature, address: $address, chainId: $chainId) {
1130
- userId
1131
- wallets
1132
- tokens {
1133
- portalTokenPair {
1134
- authToken
1135
- refreshToken
1136
- }
1137
- extensionTokenPair {
1138
- authToken
1139
- refreshToken
1140
- }
1141
- }
1142
- newUser
1143
- inviteCode
1144
- role
1145
- }
1146
- }
1147
- `;
1148
- export type ISignInAdminMetamaskMutationFn = Apollo.MutationFunction<ISignInAdminMetamaskMutation, ISignInAdminMetamaskMutationVariables>;
1149
-
1150
- /**
1151
- * __useSignInAdminMetamaskMutation__
1152
- *
1153
- * To run a mutation, you first call `useSignInAdminMetamaskMutation` within a React component and pass it any options that fit your needs.
1154
- * When your component renders, `useSignInAdminMetamaskMutation` returns a tuple that includes:
1155
- * - A mutate function that you can call at any time to execute the mutation
1156
- * - An object with fields that represent the current status of the mutation's execution
1157
- *
1158
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1159
- *
1160
- * @example
1161
- * const [signInAdminMetamaskMutation, { data, loading, error }] = useSignInAdminMetamaskMutation({
1162
- * variables: {
1163
- * signature: // value for 'signature'
1164
- * address: // value for 'address'
1165
- * chainId: // value for 'chainId'
1166
- * },
1167
- * });
1168
- */
1169
- export function useSignInAdminMetamaskMutation(baseOptions?: Apollo.MutationHookOptions<ISignInAdminMetamaskMutation, ISignInAdminMetamaskMutationVariables>) {
1170
- return Apollo.useMutation<ISignInAdminMetamaskMutation, ISignInAdminMetamaskMutationVariables>(SignInAdminMetamaskDocument, baseOptions);
1171
- }
1172
- export type SignInAdminMetamaskMutationHookResult = ReturnType<typeof useSignInAdminMetamaskMutation>;
1173
- export type SignInAdminMetamaskMutationResult = Apollo.MutationResult<ISignInAdminMetamaskMutation>;
1174
- export type SignInAdminMetamaskMutationOptions = Apollo.BaseMutationOptions<ISignInAdminMetamaskMutation, ISignInAdminMetamaskMutationVariables>;
1175
- export const SignInElrondDocument = gql`
1176
- mutation SignInElrond($signature: String!, $address: String!) {
1177
- signInElrond(signature: $signature, address: $address) {
1178
- userId
1179
- wallets
1180
- tokens {
1181
- portalTokenPair {
1182
- authToken
1183
- refreshToken
1184
- }
1185
- extensionTokenPair {
1186
- authToken
1187
- refreshToken
1188
- }
1189
- }
1190
- newUser
1191
- inviteCode
1192
- role
1193
- }
1194
- }
1195
- `;
1196
- export type ISignInElrondMutationFn = Apollo.MutationFunction<ISignInElrondMutation, ISignInElrondMutationVariables>;
1197
-
1198
- /**
1199
- * __useSignInElrondMutation__
1200
- *
1201
- * To run a mutation, you first call `useSignInElrondMutation` within a React component and pass it any options that fit your needs.
1202
- * When your component renders, `useSignInElrondMutation` returns a tuple that includes:
1203
- * - A mutate function that you can call at any time to execute the mutation
1204
- * - An object with fields that represent the current status of the mutation's execution
1205
- *
1206
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1207
- *
1208
- * @example
1209
- * const [signInElrondMutation, { data, loading, error }] = useSignInElrondMutation({
1210
- * variables: {
1211
- * signature: // value for 'signature'
1212
- * address: // value for 'address'
1213
- * },
1214
- * });
1215
- */
1216
- export function useSignInElrondMutation(baseOptions?: Apollo.MutationHookOptions<ISignInElrondMutation, ISignInElrondMutationVariables>) {
1217
- return Apollo.useMutation<ISignInElrondMutation, ISignInElrondMutationVariables>(SignInElrondDocument, baseOptions);
1218
- }
1219
- export type SignInElrondMutationHookResult = ReturnType<typeof useSignInElrondMutation>;
1220
- export type SignInElrondMutationResult = Apollo.MutationResult<ISignInElrondMutation>;
1221
- export type SignInElrondMutationOptions = Apollo.BaseMutationOptions<ISignInElrondMutation, ISignInElrondMutationVariables>;
1222
- export const SignInFlowDocument = gql`
1223
- mutation SignInFlow($signature: String!, $address: String!) {
1224
- signInFlow(signature: $signature, address: $address) {
1225
- userId
1226
- wallets
1227
- tokens {
1228
- portalTokenPair {
1229
- authToken
1230
- refreshToken
1231
- }
1232
- extensionTokenPair {
1233
- authToken
1234
- refreshToken
1235
- }
1236
- }
1237
- newUser
1238
- inviteCode
1239
- role
1240
- }
1241
- }
1242
- `;
1243
- export type ISignInFlowMutationFn = Apollo.MutationFunction<ISignInFlowMutation, ISignInFlowMutationVariables>;
1244
-
1245
- /**
1246
- * __useSignInFlowMutation__
1247
- *
1248
- * To run a mutation, you first call `useSignInFlowMutation` within a React component and pass it any options that fit your needs.
1249
- * When your component renders, `useSignInFlowMutation` returns a tuple that includes:
1250
- * - A mutate function that you can call at any time to execute the mutation
1251
- * - An object with fields that represent the current status of the mutation's execution
1252
- *
1253
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1254
- *
1255
- * @example
1256
- * const [signInFlowMutation, { data, loading, error }] = useSignInFlowMutation({
1257
- * variables: {
1258
- * signature: // value for 'signature'
1259
- * address: // value for 'address'
1260
- * },
1261
- * });
1262
- */
1263
- export function useSignInFlowMutation(baseOptions?: Apollo.MutationHookOptions<ISignInFlowMutation, ISignInFlowMutationVariables>) {
1264
- return Apollo.useMutation<ISignInFlowMutation, ISignInFlowMutationVariables>(SignInFlowDocument, baseOptions);
1265
- }
1266
- export type SignInFlowMutationHookResult = ReturnType<typeof useSignInFlowMutation>;
1267
- export type SignInFlowMutationResult = Apollo.MutationResult<ISignInFlowMutation>;
1268
- export type SignInFlowMutationOptions = Apollo.BaseMutationOptions<ISignInFlowMutation, ISignInFlowMutationVariables>;
1269
- export const SignInMetamaskDocument = gql`
1270
- mutation SignInMetamask($signature: String!, $address: String!, $chainId: String!) {
1271
- signInMetamask(signature: $signature, address: $address, chainId: $chainId) {
1272
- userId
1273
- wallets
1274
- tokens {
1275
- portalTokenPair {
1276
- authToken
1277
- refreshToken
1278
- }
1279
- extensionTokenPair {
1280
- authToken
1281
- refreshToken
1282
- }
1283
- }
1284
- newUser
1285
- inviteCode
1286
- role
1287
- }
1288
- }
1289
- `;
1290
- export type ISignInMetamaskMutationFn = Apollo.MutationFunction<ISignInMetamaskMutation, ISignInMetamaskMutationVariables>;
1291
-
1292
- /**
1293
- * __useSignInMetamaskMutation__
1294
- *
1295
- * To run a mutation, you first call `useSignInMetamaskMutation` within a React component and pass it any options that fit your needs.
1296
- * When your component renders, `useSignInMetamaskMutation` returns a tuple that includes:
1297
- * - A mutate function that you can call at any time to execute the mutation
1298
- * - An object with fields that represent the current status of the mutation's execution
1299
- *
1300
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1301
- *
1302
- * @example
1303
- * const [signInMetamaskMutation, { data, loading, error }] = useSignInMetamaskMutation({
1304
- * variables: {
1305
- * signature: // value for 'signature'
1306
- * address: // value for 'address'
1307
- * chainId: // value for 'chainId'
1308
- * },
1309
- * });
1310
- */
1311
- export function useSignInMetamaskMutation(baseOptions?: Apollo.MutationHookOptions<ISignInMetamaskMutation, ISignInMetamaskMutationVariables>) {
1312
- return Apollo.useMutation<ISignInMetamaskMutation, ISignInMetamaskMutationVariables>(SignInMetamaskDocument, baseOptions);
1313
- }
1314
- export type SignInMetamaskMutationHookResult = ReturnType<typeof useSignInMetamaskMutation>;
1315
- export type SignInMetamaskMutationResult = Apollo.MutationResult<ISignInMetamaskMutation>;
1316
- export type SignInMetamaskMutationOptions = Apollo.BaseMutationOptions<ISignInMetamaskMutation, ISignInMetamaskMutationVariables>;
1317
- export const SignInSolanaDocument = gql`
1318
- mutation SignInSolana($signature: String!, $pubkey: String!) {
1319
- signInSolana(signature: $signature, pubkey: $pubkey) {
1320
- userId
1321
- wallets
1322
- tokens {
1323
- portalTokenPair {
1324
- authToken
1325
- refreshToken
1326
- }
1327
- extensionTokenPair {
1328
- authToken
1329
- refreshToken
1330
- }
1331
- }
1332
- newUser
1333
- inviteCode
1334
- role
1335
- }
1336
- }
1337
- `;
1338
- export type ISignInSolanaMutationFn = Apollo.MutationFunction<ISignInSolanaMutation, ISignInSolanaMutationVariables>;
1339
-
1340
- /**
1341
- * __useSignInSolanaMutation__
1342
- *
1343
- * To run a mutation, you first call `useSignInSolanaMutation` within a React component and pass it any options that fit your needs.
1344
- * When your component renders, `useSignInSolanaMutation` returns a tuple that includes:
1345
- * - A mutate function that you can call at any time to execute the mutation
1346
- * - An object with fields that represent the current status of the mutation's execution
1347
- *
1348
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1349
- *
1350
- * @example
1351
- * const [signInSolanaMutation, { data, loading, error }] = useSignInSolanaMutation({
1352
- * variables: {
1353
- * signature: // value for 'signature'
1354
- * pubkey: // value for 'pubkey'
1355
- * },
1356
- * });
1357
- */
1358
- export function useSignInSolanaMutation(baseOptions?: Apollo.MutationHookOptions<ISignInSolanaMutation, ISignInSolanaMutationVariables>) {
1359
- return Apollo.useMutation<ISignInSolanaMutation, ISignInSolanaMutationVariables>(SignInSolanaDocument, baseOptions);
1360
- }
1361
- export type SignInSolanaMutationHookResult = ReturnType<typeof useSignInSolanaMutation>;
1362
- export type SignInSolanaMutationResult = Apollo.MutationResult<ISignInSolanaMutation>;
1363
- export type SignInSolanaMutationOptions = Apollo.BaseMutationOptions<ISignInSolanaMutation, ISignInSolanaMutationVariables>;
1364
- export const SignInTezosDocument = gql`
1365
- mutation SignInTezos($signature: String!, $pubkey: String!) {
1366
- signInTezos(signature: $signature, pubkey: $pubkey) {
1367
- userId
1368
- wallets
1369
- tokens {
1370
- portalTokenPair {
1371
- authToken
1372
- refreshToken
1373
- }
1374
- extensionTokenPair {
1375
- authToken
1376
- refreshToken
1377
- }
1378
- }
1379
- newUser
1380
- inviteCode
1381
- role
1382
- }
1383
- }
1384
- `;
1385
- export type ISignInTezosMutationFn = Apollo.MutationFunction<ISignInTezosMutation, ISignInTezosMutationVariables>;
1386
-
1387
- /**
1388
- * __useSignInTezosMutation__
1389
- *
1390
- * To run a mutation, you first call `useSignInTezosMutation` within a React component and pass it any options that fit your needs.
1391
- * When your component renders, `useSignInTezosMutation` returns a tuple that includes:
1392
- * - A mutate function that you can call at any time to execute the mutation
1393
- * - An object with fields that represent the current status of the mutation's execution
1394
- *
1395
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1396
- *
1397
- * @example
1398
- * const [signInTezosMutation, { data, loading, error }] = useSignInTezosMutation({
1399
- * variables: {
1400
- * signature: // value for 'signature'
1401
- * pubkey: // value for 'pubkey'
1402
- * },
1403
- * });
1404
- */
1405
- export function useSignInTezosMutation(baseOptions?: Apollo.MutationHookOptions<ISignInTezosMutation, ISignInTezosMutationVariables>) {
1406
- return Apollo.useMutation<ISignInTezosMutation, ISignInTezosMutationVariables>(SignInTezosDocument, baseOptions);
1407
- }
1408
- export type SignInTezosMutationHookResult = ReturnType<typeof useSignInTezosMutation>;
1409
- export type SignInTezosMutationResult = Apollo.MutationResult<ISignInTezosMutation>;
1410
- export type SignInTezosMutationOptions = Apollo.BaseMutationOptions<ISignInTezosMutation, ISignInTezosMutationVariables>;
1411
- export const UpdateProfileDocument = gql`
1412
- mutation UpdateProfile($username: String, $about: String, $facebook: String, $twitter: String, $instagram: String, $website: String, $showNsfw: Boolean) {
1413
- updateProfile(
1414
- profile: {username: $username, about: $about, showNsfw: $showNsfw, social: {facebook: $facebook, twitter: $twitter, instagram: $instagram, website: $website}}
1415
- )
1416
- }
1417
- `;
1418
- export type IUpdateProfileMutationFn = Apollo.MutationFunction<IUpdateProfileMutation, IUpdateProfileMutationVariables>;
1419
-
1420
- /**
1421
- * __useUpdateProfileMutation__
1422
- *
1423
- * To run a mutation, you first call `useUpdateProfileMutation` within a React component and pass it any options that fit your needs.
1424
- * When your component renders, `useUpdateProfileMutation` returns a tuple that includes:
1425
- * - A mutate function that you can call at any time to execute the mutation
1426
- * - An object with fields that represent the current status of the mutation's execution
1427
- *
1428
- * @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
1429
- *
1430
- * @example
1431
- * const [updateProfileMutation, { data, loading, error }] = useUpdateProfileMutation({
1432
- * variables: {
1433
- * username: // value for 'username'
1434
- * about: // value for 'about'
1435
- * facebook: // value for 'facebook'
1436
- * twitter: // value for 'twitter'
1437
- * instagram: // value for 'instagram'
1438
- * website: // value for 'website'
1439
- * showNsfw: // value for 'showNsfw'
1440
- * },
1441
- * });
1442
- */
1443
- export function useUpdateProfileMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateProfileMutation, IUpdateProfileMutationVariables>) {
1444
- return Apollo.useMutation<IUpdateProfileMutation, IUpdateProfileMutationVariables>(UpdateProfileDocument, baseOptions);
1445
- }
1446
- export type UpdateProfileMutationHookResult = ReturnType<typeof useUpdateProfileMutation>;
1447
- export type UpdateProfileMutationResult = Apollo.MutationResult<IUpdateProfileMutation>;
1448
- export type UpdateProfileMutationOptions = Apollo.BaseMutationOptions<IUpdateProfileMutation, IUpdateProfileMutationVariables>;
1449
- export const FetchProfileDocument = gql`
1450
- query FetchProfile($userId: ID!) {
1451
- fetchProfile(userId: $userId) {
1452
- userId
1453
- username
1454
- about
1455
- userpic
1456
- following
1457
- followings
1458
- followers
1459
- rank
1460
- social {
1461
- facebook
1462
- twitter
1463
- instagram
1464
- website
1465
- }
1466
- views
1467
- createdAt
1468
- deletedAt
1469
- visible
1470
- deleted
1471
- showNsfw
1472
- wallets {
1473
- userId
1474
- address
1475
- walletName
1476
- blockchain
1477
- chainId
1478
- }
1479
- }
1480
- }
1481
- `;
1482
-
1483
- /**
1484
- * __useFetchProfileQuery__
1485
- *
1486
- * To run a query within a React component, call `useFetchProfileQuery` and pass it any options that fit your needs.
1487
- * When your component renders, `useFetchProfileQuery` returns an object from Apollo Client that contains loading, error, and data properties
1488
- * you can use to render your UI.
1489
- *
1490
- * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
1491
- *
1492
- * @example
1493
- * const { data, loading, error } = useFetchProfileQuery({
1494
- * variables: {
1495
- * userId: // value for 'userId'
1496
- * },
1497
- * });
1498
- */
1499
- export function useFetchProfileQuery(baseOptions: Apollo.QueryHookOptions<IFetchProfileQuery, IFetchProfileQueryVariables>) {
1500
- return Apollo.useQuery<IFetchProfileQuery, IFetchProfileQueryVariables>(FetchProfileDocument, baseOptions);
1501
- }
1502
- export function useFetchProfileLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProfileQuery, IFetchProfileQueryVariables>) {
1503
- return Apollo.useLazyQuery<IFetchProfileQuery, IFetchProfileQueryVariables>(FetchProfileDocument, baseOptions);
1504
- }
1505
- export type FetchProfileQueryHookResult = ReturnType<typeof useFetchProfileQuery>;
1506
- export type FetchProfileLazyQueryHookResult = ReturnType<typeof useFetchProfileLazyQuery>;
1507
- export type FetchProfileQueryResult = Apollo.QueryResult<IFetchProfileQuery, IFetchProfileQueryVariables>;
1508
- export const FetchUserWalletsDocument = gql`
1509
- query FetchUserWallets($userId: ID!) {
1510
- fetchUserWallets(userId: $userId) {
1511
- userId
1512
- address
1513
- walletName
1514
- blockchain
1515
- chainId
1516
- mainWallet
1517
- }
1518
- }
1519
- `;
1520
-
1521
- /**
1522
- * __useFetchUserWalletsQuery__
1523
- *
1524
- * To run a query within a React component, call `useFetchUserWalletsQuery` and pass it any options that fit your needs.
1525
- * When your component renders, `useFetchUserWalletsQuery` returns an object from Apollo Client that contains loading, error, and data properties
1526
- * you can use to render your UI.
1527
- *
1528
- * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
1529
- *
1530
- * @example
1531
- * const { data, loading, error } = useFetchUserWalletsQuery({
1532
- * variables: {
1533
- * userId: // value for 'userId'
1534
- * },
1535
- * });
1536
- */
1537
- export function useFetchUserWalletsQuery(baseOptions: Apollo.QueryHookOptions<IFetchUserWalletsQuery, IFetchUserWalletsQueryVariables>) {
1538
- return Apollo.useQuery<IFetchUserWalletsQuery, IFetchUserWalletsQueryVariables>(FetchUserWalletsDocument, baseOptions);
1539
- }
1540
- export function useFetchUserWalletsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchUserWalletsQuery, IFetchUserWalletsQueryVariables>) {
1541
- return Apollo.useLazyQuery<IFetchUserWalletsQuery, IFetchUserWalletsQueryVariables>(FetchUserWalletsDocument, baseOptions);
1542
- }
1543
- export type FetchUserWalletsQueryHookResult = ReturnType<typeof useFetchUserWalletsQuery>;
1544
- export type FetchUserWalletsLazyQueryHookResult = ReturnType<typeof useFetchUserWalletsLazyQuery>;
1545
- export type FetchUserWalletsQueryResult = Apollo.QueryResult<IFetchUserWalletsQuery, IFetchUserWalletsQueryVariables>;
1546
- export const GetMyInviteCodesDocument = gql`
1547
- query GetMyInviteCodes {
1548
- getMyInviteCodes {
1549
- inviteCode
1550
- inviteeId
1551
- isUsed
1552
- usedAt
1553
- }
1554
- }
1555
- `;
1556
-
1557
- /**
1558
- * __useGetMyInviteCodesQuery__
1559
- *
1560
- * To run a query within a React component, call `useGetMyInviteCodesQuery` and pass it any options that fit your needs.
1561
- * When your component renders, `useGetMyInviteCodesQuery` returns an object from Apollo Client that contains loading, error, and data properties
1562
- * you can use to render your UI.
1563
- *
1564
- * @param baseOptions options that will be passed into the query, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
1565
- *
1566
- * @example
1567
- * const { data, loading, error } = useGetMyInviteCodesQuery({
1568
- * variables: {
1569
- * },
1570
- * });
1571
- */
1572
- export function useGetMyInviteCodesQuery(baseOptions?: Apollo.QueryHookOptions<IGetMyInviteCodesQuery, IGetMyInviteCodesQueryVariables>) {
1573
- return Apollo.useQuery<IGetMyInviteCodesQuery, IGetMyInviteCodesQueryVariables>(GetMyInviteCodesDocument, baseOptions);
1574
- }
1575
- export function useGetMyInviteCodesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IGetMyInviteCodesQuery, IGetMyInviteCodesQueryVariables>) {
1576
- return Apollo.useLazyQuery<IGetMyInviteCodesQuery, IGetMyInviteCodesQueryVariables>(GetMyInviteCodesDocument, baseOptions);
1577
- }
1578
- export type GetMyInviteCodesQueryHookResult = ReturnType<typeof useGetMyInviteCodesQuery>;
1579
- export type GetMyInviteCodesLazyQueryHookResult = ReturnType<typeof useGetMyInviteCodesLazyQuery>;
1580
- export type GetMyInviteCodesQueryResult = Apollo.QueryResult<IGetMyInviteCodesQuery, IGetMyInviteCodesQueryVariables>;