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