@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,1777 +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
- /** A file part in a multipart request */
20
- Upload: any;
21
- };
22
-
23
-
24
-
25
-
26
- export type IActiveInvite = {
27
- inviteCode?: Maybe<Scalars['String']>;
28
- createdAt?: Maybe<Scalars['Long']>;
29
- };
30
-
31
- export type IAdminBrand = {
32
- id: Scalars['String'];
33
- name: Scalars['String'];
34
- matchingWords: Array<Scalars['String']>;
35
- description: Scalars['String'];
36
- industry?: Maybe<Scalars['String']>;
37
- link?: Maybe<Scalars['String']>;
38
- media?: Maybe<Scalars['String']>;
39
- };
40
-
41
- export type IAdminCategory = {
42
- id: Scalars['String'];
43
- name: Scalars['String'];
44
- matchingWords: Array<Scalars['String']>;
45
- };
46
-
47
- export type IAdminInvite = {
48
- userId: Scalars['String'];
49
- username?: Maybe<Scalars['String']>;
50
- wallet?: Maybe<IWallet>;
51
- activeInvites?: Maybe<Array<IActiveInvite>>;
52
- referredUsers?: Maybe<Array<Scalars['String']>>;
53
- userXpLevel?: Maybe<Scalars['Int']>;
54
- };
55
-
56
- export type IAdminOpportunity = {
57
- opportunityId: Scalars['ID'];
58
- name?: Maybe<Scalars['String']>;
59
- description?: Maybe<Scalars['String']>;
60
- brandName?: Maybe<Scalars['String']>;
61
- industry?: Maybe<Scalars['String']>;
62
- category?: Maybe<Scalars['String']>;
63
- ludoUrl?: Maybe<Scalars['String']>;
64
- projectUrl?: Maybe<Scalars['String']>;
65
- pushNotificationsEnabled?: Maybe<Scalars['Boolean']>;
66
- status?: Maybe<Scalars['String']>;
67
- activeFrom?: Maybe<Scalars['Long']>;
68
- activeUntil?: Maybe<Scalars['Long']>;
69
- minXpLevel?: Maybe<Scalars['Int']>;
70
- maxXpLevel?: Maybe<Scalars['Int']>;
71
- minLudoRank?: Maybe<Scalars['Float']>;
72
- maxLudoRank?: Maybe<Scalars['Float']>;
73
- media?: Maybe<Scalars['String']>;
74
- minWalletValue?: Maybe<Scalars['Float']>;
75
- maxWalletValue?: Maybe<Scalars['Float']>;
76
- clicks?: Maybe<Scalars['Int']>;
77
- views?: Maybe<Scalars['Int']>;
78
- };
79
-
80
- export type IAdminOpportunityInput = {
81
- brandId: Scalars['String'];
82
- categoryId: Scalars['String'];
83
- status: Scalars['String'];
84
- pushNotificationsEnabled: Scalars['Boolean'];
85
- name: Scalars['String'];
86
- description?: Maybe<Scalars['String']>;
87
- ludoUrl?: Maybe<Scalars['String']>;
88
- projectUrl?: Maybe<Scalars['String']>;
89
- activeFrom?: Maybe<Scalars['Long']>;
90
- activeUntil?: Maybe<Scalars['Long']>;
91
- minXpLevel?: Maybe<Scalars['Int']>;
92
- maxXpLevel?: Maybe<Scalars['Int']>;
93
- minLudoRank?: Maybe<Scalars['Float']>;
94
- maxLudoRank?: Maybe<Scalars['Float']>;
95
- minWalletValue?: Maybe<Scalars['Float']>;
96
- maxWalletValue?: Maybe<Scalars['Float']>;
97
- blockchain?: Maybe<Scalars['String']>;
98
- collection?: Maybe<Scalars['String']>;
99
- media?: Maybe<Scalars['String']>;
100
- };
101
-
102
- export type IAdminPage = {
103
- num?: Maybe<Scalars['Int']>;
104
- lastNum?: Maybe<Scalars['Int']>;
105
- size?: Maybe<Scalars['Int']>;
106
- elements?: Maybe<Scalars['Long']>;
107
- token?: Maybe<Scalars['String']>;
108
- };
109
-
110
- export type IAdminPageInput = {
111
- num: Scalars['Int'];
112
- size: Scalars['Int'];
113
- token?: Maybe<Scalars['String']>;
114
- };
115
-
116
- export type IAdminReferral = {
117
- userId: Scalars['ID'];
118
- username?: Maybe<Scalars['String']>;
119
- mainWallet?: Maybe<IWallet>;
120
- referredUsersNum?: Maybe<Scalars['Int']>;
121
- referrals?: Maybe<Array<IReferredUsersInfo>>;
122
- };
123
-
124
- export type IAdminUser = {
125
- userId: Scalars['ID'];
126
- username?: Maybe<Scalars['String']>;
127
- wallets?: Maybe<Array<IWallet>>;
128
- connectedBlockchains?: Maybe<Array<Scalars['String']>>;
129
- isActive?: Maybe<Scalars['Boolean']>;
130
- createdAt?: Maybe<Scalars['Long']>;
131
- topInterests?: Maybe<Array<Scalars['String']>>;
132
- walletsValue?: Maybe<Scalars['Float']>;
133
- xpLevel?: Maybe<Scalars['Int']>;
134
- ludoRank?: Maybe<Scalars['Float']>;
135
- inviterId?: Maybe<Scalars['String']>;
136
- };
137
-
138
- export type IAdminXp = {
139
- userId: Scalars['ID'];
140
- username?: Maybe<Scalars['String']>;
141
- mainWallet?: Maybe<IWallet>;
142
- userXpLevel?: Maybe<Scalars['Int']>;
143
- userXpPoints?: Maybe<Scalars['Int']>;
144
- referredUsers?: Maybe<Array<Scalars['ID']>>;
145
- referredUsersNum?: Maybe<Scalars['Int']>;
146
- joinedOpportunityIds?: Maybe<Array<Scalars['String']>>;
147
- connectedWalletsNum?: Maybe<Scalars['Int']>;
148
- suggestedOpportunityIds?: Maybe<Array<Scalars['String']>>;
149
- };
150
-
151
- export type IBrandInput = {
152
- name: Scalars['String'];
153
- matchingWords: Array<Scalars['String']>;
154
- description: Scalars['String'];
155
- industry?: Maybe<Scalars['String']>;
156
- link?: Maybe<Scalars['String']>;
157
- media?: Maybe<Scalars['String']>;
158
- };
159
-
160
- export type IBrandsFilterInput = {
161
- nameTerm?: Maybe<Scalars['String']>;
162
- descriptionTerm?: Maybe<Scalars['String']>;
163
- industryTerm?: Maybe<Scalars['String']>;
164
- linkTerm?: Maybe<Scalars['String']>;
165
- matchingWordsTerm?: Maybe<Scalars['String']>;
166
- };
167
-
168
- export type IBrandsPage = {
169
- brands: Array<IAdminBrand>;
170
- nextPage?: Maybe<IAdminPage>;
171
- };
172
-
173
- export type IBrandsSortInput = {
174
- sortByName?: Maybe<ISort>;
175
- sortByIndustry?: Maybe<ISort>;
176
- };
177
-
178
- export type ICategoriesFilterInput = {
179
- nameTerm?: Maybe<Scalars['String']>;
180
- matchingWordsTerm?: Maybe<Scalars['String']>;
181
- };
182
-
183
- export type ICategoriesPage = {
184
- categories: Array<IAdminCategory>;
185
- nextPage?: Maybe<IAdminPage>;
186
- };
187
-
188
- export type ICategoriesSortInput = {
189
- sortByName?: Maybe<ISort>;
190
- };
191
-
192
- export type ICategoryInput = {
193
- name: Scalars['String'];
194
- matchingWords: Array<Scalars['String']>;
195
- };
196
-
197
- export type IInvitesFilterInput = {
198
- userIdTerm?: Maybe<Scalars['String']>;
199
- usernameTerm?: Maybe<Scalars['String']>;
200
- mainWalletTerm?: Maybe<Scalars['String']>;
201
- userXpLevelTerm?: Maybe<Scalars['String']>;
202
- activeInviteTerm?: Maybe<Scalars['String']>;
203
- referredUserTerm?: Maybe<Scalars['String']>;
204
- };
205
-
206
- export type IInvitesPage = {
207
- invites: Array<IAdminInvite>;
208
- nextPage?: Maybe<IAdminPage>;
209
- };
210
-
211
- export type IInvitesSortInput = {
212
- sortByUsername?: Maybe<ISort>;
213
- sortByXpLevel?: Maybe<ISort>;
214
- sortByActiveInvites?: Maybe<ISort>;
215
- sortByReferredUsers?: Maybe<ISort>;
216
- };
217
-
218
-
219
- export type IMutation = {
220
- setDummy: Scalars['String'];
221
- removeInviteCode: Scalars['Boolean'];
222
- addInviteCodes: Scalars['Boolean'];
223
- updateOpportunityPushStatus: Scalars['Boolean'];
224
- createBrand: Scalars['Boolean'];
225
- updateBrand: Scalars['Boolean'];
226
- createCategory: Scalars['Boolean'];
227
- updateCategory: Scalars['Boolean'];
228
- createAdminOpportunity: Scalars['Boolean'];
229
- updateOpportunity: Scalars['Boolean'];
230
- updateProfileStatus: Scalars['Boolean'];
231
- removeSuggestedOpportunity: Scalars['Boolean'];
232
- addSuggestedOpportunity: Scalars['Boolean'];
233
- changeXpPoints: Scalars['Boolean'];
234
- };
235
-
236
-
237
- export type IMutationRemoveInviteCodeArgs = {
238
- inviteCode: Scalars['String'];
239
- };
240
-
241
-
242
- export type IMutationAddInviteCodesArgs = {
243
- userId: Scalars['String'];
244
- codesNum: Scalars['Int'];
245
- };
246
-
247
-
248
- export type IMutationUpdateOpportunityPushStatusArgs = {
249
- opportunityId: Scalars['ID'];
250
- isActive: Scalars['Boolean'];
251
- };
252
-
253
-
254
- export type IMutationCreateBrandArgs = {
255
- brand: IBrandInput;
256
- file?: Maybe<Scalars['Upload']>;
257
- };
258
-
259
-
260
- export type IMutationUpdateBrandArgs = {
261
- id: Scalars['ID'];
262
- input: IBrandInput;
263
- file?: Maybe<Scalars['Upload']>;
264
- };
265
-
266
-
267
- export type IMutationCreateCategoryArgs = {
268
- name: Scalars['String'];
269
- matchingWords: Array<Scalars['String']>;
270
- };
271
-
272
-
273
- export type IMutationUpdateCategoryArgs = {
274
- id: Scalars['ID'];
275
- input: ICategoryInput;
276
- };
277
-
278
-
279
- export type IMutationCreateAdminOpportunityArgs = {
280
- input: IAdminOpportunityInput;
281
- file?: Maybe<Scalars['Upload']>;
282
- };
283
-
284
-
285
- export type IMutationUpdateOpportunityArgs = {
286
- id: Scalars['ID'];
287
- input: IAdminOpportunityInput;
288
- file?: Maybe<Scalars['Upload']>;
289
- };
290
-
291
-
292
- export type IMutationUpdateProfileStatusArgs = {
293
- userId: Scalars['ID'];
294
- isActive: Scalars['Boolean'];
295
- };
296
-
297
-
298
- export type IMutationRemoveSuggestedOpportunityArgs = {
299
- userId: Scalars['ID'];
300
- opportunityId: Scalars['String'];
301
- };
302
-
303
-
304
- export type IMutationAddSuggestedOpportunityArgs = {
305
- userId: Scalars['ID'];
306
- opportunityId: Scalars['String'];
307
- };
308
-
309
-
310
- export type IMutationChangeXpPointsArgs = {
311
- userId: Scalars['ID'];
312
- pointsDiff: Scalars['Int'];
313
- };
314
-
315
- export type IOpportunitiesFilterInput = {
316
- opportunityIdTerm?: Maybe<Scalars['String']>;
317
- industryTerm?: Maybe<Scalars['String']>;
318
- categoryTerm?: Maybe<Scalars['String']>;
319
- opportunityLudoUrlTerm?: Maybe<Scalars['String']>;
320
- opportunityProjectUrlTerm?: Maybe<Scalars['String']>;
321
- arePushNotificationsEnabled?: Maybe<Scalars['Boolean']>;
322
- opportunityStatusTerm?: Maybe<Scalars['String']>;
323
- activeFromTimestamp?: Maybe<Scalars['Long']>;
324
- activeUntilTimestamp?: Maybe<Scalars['Long']>;
325
- minXpLevel?: Maybe<Scalars['Int']>;
326
- maxXpLevel?: Maybe<Scalars['Int']>;
327
- minLudoRank?: Maybe<Scalars['Float']>;
328
- maxLudoRank?: Maybe<Scalars['Float']>;
329
- minWalletValue?: Maybe<Scalars['Float']>;
330
- maxWalletValue?: Maybe<Scalars['Float']>;
331
- clicks?: Maybe<Scalars['Int']>;
332
- views?: Maybe<Scalars['Int']>;
333
- };
334
-
335
- export type IOpportunitiesPage = {
336
- opportunities: Array<IAdminOpportunity>;
337
- nextPage?: Maybe<IAdminPage>;
338
- };
339
-
340
- export type IOpportunitiesSortInput = {
341
- sortByOpportunityName?: Maybe<ISort>;
342
- sortByBrandName?: Maybe<ISort>;
343
- sortByCategory?: Maybe<ISort>;
344
- sortByOpportunityStatus?: Maybe<ISort>;
345
- sortByActiveFrom?: Maybe<ISort>;
346
- sortByActiveUntil?: Maybe<ISort>;
347
- sortByMinXpLevel?: Maybe<ISort>;
348
- sortByMaxXpLevel?: Maybe<ISort>;
349
- };
350
-
351
- export type IQuery = {
352
- getDummy: Scalars['String'];
353
- fetchAdminInvitesPage: IInvitesPage;
354
- fetchAdminOpportunitiesPage: IOpportunitiesPage;
355
- fetchAdminCategories: Array<IAdminCategory>;
356
- fetchAdminCategoriesPage: ICategoriesPage;
357
- fetchAdminBrands: Array<IAdminBrand>;
358
- fetchAdminBrandsPage: IBrandsPage;
359
- fetchBlockchains: Array<Scalars['String']>;
360
- fetchAdminReferralsPage: IReferralsPage;
361
- fetchAdminUsersPage: IUsersPage;
362
- fetchAdminXpPage: IXpPage;
363
- };
364
-
365
-
366
- export type IQueryFetchAdminInvitesPageArgs = {
367
- filter: IInvitesFilterInput;
368
- sort: IInvitesSortInput;
369
- page: IAdminPageInput;
370
- };
371
-
372
-
373
- export type IQueryFetchAdminOpportunitiesPageArgs = {
374
- filter: IOpportunitiesFilterInput;
375
- sort: IOpportunitiesSortInput;
376
- page: IAdminPageInput;
377
- };
378
-
379
-
380
- export type IQueryFetchAdminCategoriesPageArgs = {
381
- filter: ICategoriesFilterInput;
382
- sort: ICategoriesSortInput;
383
- page: IAdminPageInput;
384
- };
385
-
386
-
387
- export type IQueryFetchAdminBrandsPageArgs = {
388
- filter: IBrandsFilterInput;
389
- sort: IBrandsSortInput;
390
- page: IAdminPageInput;
391
- };
392
-
393
-
394
- export type IQueryFetchAdminReferralsPageArgs = {
395
- filter: IReferralsFilterInput;
396
- sort: IReferralsSortInput;
397
- page: IAdminPageInput;
398
- };
399
-
400
-
401
- export type IQueryFetchAdminUsersPageArgs = {
402
- filter: IUsersFilterInput;
403
- sort: IUsersSortInput;
404
- page: IAdminPageInput;
405
- };
406
-
407
-
408
- export type IQueryFetchAdminXpPageArgs = {
409
- filter: IXpFilterInput;
410
- sort: IXpSortInput;
411
- page: IAdminPageInput;
412
- };
413
-
414
- export type IReferralsFilterInput = {
415
- userIdTerm?: Maybe<Scalars['String']>;
416
- usernameTerm?: Maybe<Scalars['String']>;
417
- mainWalletTerm?: Maybe<Scalars['String']>;
418
- referredUsersNumTerm?: Maybe<Scalars['String']>;
419
- userRefUrlTerm?: Maybe<Scalars['String']>;
420
- opportunityUrlTerm?: Maybe<Scalars['String']>;
421
- };
422
-
423
- export type IReferralsPage = {
424
- adminReferrals: Array<IAdminReferral>;
425
- nextPage?: Maybe<IAdminPage>;
426
- };
427
-
428
- export type IReferralsSortInput = {
429
- sortByUsername?: Maybe<ISort>;
430
- sortByReferredUsersNum?: Maybe<ISort>;
431
- };
432
-
433
- export type IReferredUsersInfo = {
434
- userRefUrl: Scalars['String'];
435
- opportunityUrl: Scalars['String'];
436
- referredUsersPerUrlNum: Scalars['Int'];
437
- };
438
-
439
- export type ISort = {
440
- enabled: Scalars['Boolean'];
441
- direction?: Maybe<ISortDirection>;
442
- };
443
-
444
- /** front-end asked for lower case values */
445
- export enum ISortDirection {
446
- Asc = 'asc',
447
- Desc = 'desc'
448
- }
449
-
450
-
451
- export type IUsersFilterInput = {
452
- userIdTerm?: Maybe<Scalars['String']>;
453
- usernameTerm?: Maybe<Scalars['String']>;
454
- walletsTerm?: Maybe<Scalars['String']>;
455
- connectedBlockchainsTerm?: Maybe<Scalars['String']>;
456
- isActiveAccount?: Maybe<Scalars['Boolean']>;
457
- createdDateTimestamp?: Maybe<Scalars['Long']>;
458
- interestTerm?: Maybe<Scalars['String']>;
459
- walletsValue?: Maybe<Scalars['Float']>;
460
- xpLevel?: Maybe<Scalars['Int']>;
461
- ludoRank?: Maybe<Scalars['Float']>;
462
- invitedByTerm?: Maybe<Scalars['String']>;
463
- };
464
-
465
- export type IUsersPage = {
466
- users: Array<IAdminUser>;
467
- nextPage?: Maybe<IAdminPage>;
468
- };
469
-
470
- export type IUsersSortInput = {
471
- sortByUsername?: Maybe<ISort>;
472
- sortByAccountStatus?: Maybe<ISort>;
473
- sortByCreatedDate?: Maybe<ISort>;
474
- sortByWalletsValue?: Maybe<ISort>;
475
- sortByXpLevel?: Maybe<ISort>;
476
- sortByLudoRank?: Maybe<ISort>;
477
- };
478
-
479
- export type IWallet = {
480
- address: Scalars['String'];
481
- blockchain: Scalars['String'];
482
- chainId?: Maybe<Scalars['String']>;
483
- isMain?: Maybe<Scalars['Boolean']>;
484
- };
485
-
486
- export type IXpFilterInput = {
487
- userIdTerm?: Maybe<Scalars['String']>;
488
- usernameTerm?: Maybe<Scalars['String']>;
489
- mainWalletTerm?: Maybe<Scalars['String']>;
490
- userXpLevelTerm?: Maybe<Scalars['String']>;
491
- userXpPointsTerm?: Maybe<Scalars['String']>;
492
- invitedUserTerm?: Maybe<Scalars['String']>;
493
- referredUsersNumTerm?: Maybe<Scalars['String']>;
494
- joinedOpportunityTerm?: Maybe<Scalars['String']>;
495
- connectedWalletsNumTerm?: Maybe<Scalars['String']>;
496
- suggestedOpportunityTerm?: Maybe<Scalars['String']>;
497
- };
498
-
499
- export type IXpPage = {
500
- xps: Array<IAdminXp>;
501
- nextPage?: Maybe<IAdminPage>;
502
- };
503
-
504
- export type IXpSortInput = {
505
- sortByUsername?: Maybe<ISort>;
506
- sortByXpLevel?: Maybe<ISort>;
507
- sortByXpPoints?: Maybe<ISort>;
508
- sortByInvitedUsers?: Maybe<ISort>;
509
- sortByReferredUsersNum?: Maybe<ISort>;
510
- sortByJoinedOpportunities?: Maybe<ISort>;
511
- sortByConnectedWalletsNum?: Maybe<ISort>;
512
- sortBySuggestedOpportunities?: Maybe<ISort>;
513
- };
514
-
515
-
516
-
517
- export type ResolverTypeWrapper<T> = Promise<T> | T;
518
-
519
-
520
- export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
521
- resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
522
- };
523
- export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
524
-
525
- export type ResolverFn<TResult, TParent, TContext, TArgs> = (
526
- parent: TParent,
527
- args: TArgs,
528
- context: TContext,
529
- info: GraphQLResolveInfo
530
- ) => Promise<TResult> | TResult;
531
-
532
- export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (
533
- parent: TParent,
534
- args: TArgs,
535
- context: TContext,
536
- info: GraphQLResolveInfo
537
- ) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
538
-
539
- export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (
540
- parent: TParent,
541
- args: TArgs,
542
- context: TContext,
543
- info: GraphQLResolveInfo
544
- ) => TResult | Promise<TResult>;
545
-
546
- export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
547
- subscribe: SubscriptionSubscribeFn<{ [key in TKey]: TResult }, TParent, TContext, TArgs>;
548
- resolve?: SubscriptionResolveFn<TResult, { [key in TKey]: TResult }, TContext, TArgs>;
549
- }
550
-
551
- export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
552
- subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
553
- resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
554
- }
555
-
556
- export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> =
557
- | SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs>
558
- | SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
559
-
560
- export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> =
561
- | ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>)
562
- | SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
563
-
564
- export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (
565
- parent: TParent,
566
- context: TContext,
567
- info: GraphQLResolveInfo
568
- ) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
569
-
570
- export type IsTypeOfResolverFn<T = {}, TContext = {}> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
571
-
572
- export type NextResolverFn<T> = () => Promise<T>;
573
-
574
- export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (
575
- next: NextResolverFn<TResult>,
576
- parent: TParent,
577
- args: TArgs,
578
- context: TContext,
579
- info: GraphQLResolveInfo
580
- ) => TResult | Promise<TResult>;
581
-
582
- /** Mapping between all available schema types and the resolvers types */
583
- export type IResolversTypes = {
584
- ActiveInvite: ResolverTypeWrapper<IActiveInvite>;
585
- String: ResolverTypeWrapper<Scalars['String']>;
586
- AdminBrand: ResolverTypeWrapper<IAdminBrand>;
587
- AdminCategory: ResolverTypeWrapper<IAdminCategory>;
588
- AdminInvite: ResolverTypeWrapper<IAdminInvite>;
589
- Int: ResolverTypeWrapper<Scalars['Int']>;
590
- AdminOpportunity: ResolverTypeWrapper<IAdminOpportunity>;
591
- ID: ResolverTypeWrapper<Scalars['ID']>;
592
- Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
593
- Float: ResolverTypeWrapper<Scalars['Float']>;
594
- AdminOpportunityInput: IAdminOpportunityInput;
595
- AdminPage: ResolverTypeWrapper<IAdminPage>;
596
- AdminPageInput: IAdminPageInput;
597
- AdminReferral: ResolverTypeWrapper<IAdminReferral>;
598
- AdminUser: ResolverTypeWrapper<IAdminUser>;
599
- AdminXp: ResolverTypeWrapper<IAdminXp>;
600
- BrandInput: IBrandInput;
601
- BrandsFilterInput: IBrandsFilterInput;
602
- BrandsPage: ResolverTypeWrapper<IBrandsPage>;
603
- BrandsSortInput: IBrandsSortInput;
604
- CategoriesFilterInput: ICategoriesFilterInput;
605
- CategoriesPage: ResolverTypeWrapper<ICategoriesPage>;
606
- CategoriesSortInput: ICategoriesSortInput;
607
- CategoryInput: ICategoryInput;
608
- InvitesFilterInput: IInvitesFilterInput;
609
- InvitesPage: ResolverTypeWrapper<IInvitesPage>;
610
- InvitesSortInput: IInvitesSortInput;
611
- Long: ResolverTypeWrapper<Scalars['Long']>;
612
- Mutation: ResolverTypeWrapper<{}>;
613
- OpportunitiesFilterInput: IOpportunitiesFilterInput;
614
- OpportunitiesPage: ResolverTypeWrapper<IOpportunitiesPage>;
615
- OpportunitiesSortInput: IOpportunitiesSortInput;
616
- Query: ResolverTypeWrapper<{}>;
617
- ReferralsFilterInput: IReferralsFilterInput;
618
- ReferralsPage: ResolverTypeWrapper<IReferralsPage>;
619
- ReferralsSortInput: IReferralsSortInput;
620
- ReferredUsersInfo: ResolverTypeWrapper<IReferredUsersInfo>;
621
- Sort: ISort;
622
- SortDirection: ISortDirection;
623
- Upload: ResolverTypeWrapper<Scalars['Upload']>;
624
- UsersFilterInput: IUsersFilterInput;
625
- UsersPage: ResolverTypeWrapper<IUsersPage>;
626
- UsersSortInput: IUsersSortInput;
627
- Wallet: ResolverTypeWrapper<IWallet>;
628
- XpFilterInput: IXpFilterInput;
629
- XpPage: ResolverTypeWrapper<IXpPage>;
630
- XpSortInput: IXpSortInput;
631
- };
632
-
633
- /** Mapping between all available schema types and the resolvers parents */
634
- export type IResolversParentTypes = {
635
- ActiveInvite: IActiveInvite;
636
- String: Scalars['String'];
637
- AdminBrand: IAdminBrand;
638
- AdminCategory: IAdminCategory;
639
- AdminInvite: IAdminInvite;
640
- Int: Scalars['Int'];
641
- AdminOpportunity: IAdminOpportunity;
642
- ID: Scalars['ID'];
643
- Boolean: Scalars['Boolean'];
644
- Float: Scalars['Float'];
645
- AdminOpportunityInput: IAdminOpportunityInput;
646
- AdminPage: IAdminPage;
647
- AdminPageInput: IAdminPageInput;
648
- AdminReferral: IAdminReferral;
649
- AdminUser: IAdminUser;
650
- AdminXp: IAdminXp;
651
- BrandInput: IBrandInput;
652
- BrandsFilterInput: IBrandsFilterInput;
653
- BrandsPage: IBrandsPage;
654
- BrandsSortInput: IBrandsSortInput;
655
- CategoriesFilterInput: ICategoriesFilterInput;
656
- CategoriesPage: ICategoriesPage;
657
- CategoriesSortInput: ICategoriesSortInput;
658
- CategoryInput: ICategoryInput;
659
- InvitesFilterInput: IInvitesFilterInput;
660
- InvitesPage: IInvitesPage;
661
- InvitesSortInput: IInvitesSortInput;
662
- Long: Scalars['Long'];
663
- Mutation: {};
664
- OpportunitiesFilterInput: IOpportunitiesFilterInput;
665
- OpportunitiesPage: IOpportunitiesPage;
666
- OpportunitiesSortInput: IOpportunitiesSortInput;
667
- Query: {};
668
- ReferralsFilterInput: IReferralsFilterInput;
669
- ReferralsPage: IReferralsPage;
670
- ReferralsSortInput: IReferralsSortInput;
671
- ReferredUsersInfo: IReferredUsersInfo;
672
- Sort: ISort;
673
- Upload: Scalars['Upload'];
674
- UsersFilterInput: IUsersFilterInput;
675
- UsersPage: IUsersPage;
676
- UsersSortInput: IUsersSortInput;
677
- Wallet: IWallet;
678
- XpFilterInput: IXpFilterInput;
679
- XpPage: IXpPage;
680
- XpSortInput: IXpSortInput;
681
- };
682
-
683
- export type IMinDirectiveArgs = {
684
- value?: Maybe<Scalars['Int']>;
685
- message?: Maybe<Scalars['String']>;
686
- };
687
-
688
- export type IMinDirectiveResolver<Result, Parent, ContextType = any, Args = IMinDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
689
-
690
- export type IRangeDirectiveArgs = {
691
- min?: Maybe<Scalars['Int']>;
692
- max?: Maybe<Scalars['Int']>;
693
- message?: Maybe<Scalars['String']>;
694
- };
695
-
696
- export type IRangeDirectiveResolver<Result, Parent, ContextType = any, Args = IRangeDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
697
-
698
- export type IOneOfDirectiveArgs = { };
699
-
700
- export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
701
-
702
- export type IActiveInviteResolvers<ContextType = any, ParentType extends IResolversParentTypes['ActiveInvite'] = IResolversParentTypes['ActiveInvite']> = {
703
- inviteCode?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
704
- createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
705
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
706
- };
707
-
708
- export type IAdminBrandResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminBrand'] = IResolversParentTypes['AdminBrand']> = {
709
- id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
710
- name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
711
- matchingWords?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
712
- description?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
713
- industry?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
714
- link?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
715
- media?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
716
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
717
- };
718
-
719
- export type IAdminCategoryResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminCategory'] = IResolversParentTypes['AdminCategory']> = {
720
- id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
721
- name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
722
- matchingWords?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
723
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
724
- };
725
-
726
- export type IAdminInviteResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminInvite'] = IResolversParentTypes['AdminInvite']> = {
727
- userId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
728
- username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
729
- wallet?: Resolver<Maybe<IResolversTypes['Wallet']>, ParentType, ContextType>;
730
- activeInvites?: Resolver<Maybe<Array<IResolversTypes['ActiveInvite']>>, ParentType, ContextType>;
731
- referredUsers?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
732
- userXpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
733
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
734
- };
735
-
736
- export type IAdminOpportunityResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminOpportunity'] = IResolversParentTypes['AdminOpportunity']> = {
737
- opportunityId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
738
- name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
739
- description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
740
- brandName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
741
- industry?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
742
- category?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
743
- ludoUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
744
- projectUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
745
- pushNotificationsEnabled?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
746
- status?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
747
- activeFrom?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
748
- activeUntil?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
749
- minXpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
750
- maxXpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
751
- minLudoRank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
752
- maxLudoRank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
753
- media?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
754
- minWalletValue?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
755
- maxWalletValue?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
756
- clicks?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
757
- views?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
758
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
759
- };
760
-
761
- export type IAdminPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminPage'] = IResolversParentTypes['AdminPage']> = {
762
- num?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
763
- lastNum?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
764
- size?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
765
- elements?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
766
- token?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
767
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
768
- };
769
-
770
- export type IAdminReferralResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminReferral'] = IResolversParentTypes['AdminReferral']> = {
771
- userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
772
- username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
773
- mainWallet?: Resolver<Maybe<IResolversTypes['Wallet']>, ParentType, ContextType>;
774
- referredUsersNum?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
775
- referrals?: Resolver<Maybe<Array<IResolversTypes['ReferredUsersInfo']>>, ParentType, ContextType>;
776
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
777
- };
778
-
779
- export type IAdminUserResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminUser'] = IResolversParentTypes['AdminUser']> = {
780
- userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
781
- username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
782
- wallets?: Resolver<Maybe<Array<IResolversTypes['Wallet']>>, ParentType, ContextType>;
783
- connectedBlockchains?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
784
- isActive?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
785
- createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
786
- topInterests?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
787
- walletsValue?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
788
- xpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
789
- ludoRank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
790
- inviterId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
791
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
792
- };
793
-
794
- export type IAdminXpResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminXp'] = IResolversParentTypes['AdminXp']> = {
795
- userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
796
- username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
797
- mainWallet?: Resolver<Maybe<IResolversTypes['Wallet']>, ParentType, ContextType>;
798
- userXpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
799
- userXpPoints?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
800
- referredUsers?: Resolver<Maybe<Array<IResolversTypes['ID']>>, ParentType, ContextType>;
801
- referredUsersNum?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
802
- joinedOpportunityIds?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
803
- connectedWalletsNum?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
804
- suggestedOpportunityIds?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
805
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
806
- };
807
-
808
- export type IBrandsPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['BrandsPage'] = IResolversParentTypes['BrandsPage']> = {
809
- brands?: Resolver<Array<IResolversTypes['AdminBrand']>, ParentType, ContextType>;
810
- nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
811
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
812
- };
813
-
814
- export type ICategoriesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['CategoriesPage'] = IResolversParentTypes['CategoriesPage']> = {
815
- categories?: Resolver<Array<IResolversTypes['AdminCategory']>, ParentType, ContextType>;
816
- nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
817
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
818
- };
819
-
820
- export type IInvitesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['InvitesPage'] = IResolversParentTypes['InvitesPage']> = {
821
- invites?: Resolver<Array<IResolversTypes['AdminInvite']>, ParentType, ContextType>;
822
- nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
823
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
824
- };
825
-
826
- export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
827
- name: 'Long';
828
- }
829
-
830
- export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
831
- setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
832
- removeInviteCode?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveInviteCodeArgs, 'inviteCode'>>;
833
- addInviteCodes?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddInviteCodesArgs, 'userId' | 'codesNum'>>;
834
- updateOpportunityPushStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityPushStatusArgs, 'opportunityId' | 'isActive'>>;
835
- createBrand?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateBrandArgs, 'brand'>>;
836
- updateBrand?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateBrandArgs, 'id' | 'input'>>;
837
- createCategory?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateCategoryArgs, 'name' | 'matchingWords'>>;
838
- updateCategory?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateCategoryArgs, 'id' | 'input'>>;
839
- createAdminOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateAdminOpportunityArgs, 'input'>>;
840
- updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'id' | 'input'>>;
841
- updateProfileStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateProfileStatusArgs, 'userId' | 'isActive'>>;
842
- removeSuggestedOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveSuggestedOpportunityArgs, 'userId' | 'opportunityId'>>;
843
- addSuggestedOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddSuggestedOpportunityArgs, 'userId' | 'opportunityId'>>;
844
- changeXpPoints?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationChangeXpPointsArgs, 'userId' | 'pointsDiff'>>;
845
- };
846
-
847
- export type IOpportunitiesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunitiesPage'] = IResolversParentTypes['OpportunitiesPage']> = {
848
- opportunities?: Resolver<Array<IResolversTypes['AdminOpportunity']>, ParentType, ContextType>;
849
- nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
850
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
851
- };
852
-
853
- export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
854
- getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
855
- fetchAdminInvitesPage?: Resolver<IResolversTypes['InvitesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminInvitesPageArgs, 'filter' | 'sort' | 'page'>>;
856
- fetchAdminOpportunitiesPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminOpportunitiesPageArgs, 'filter' | 'sort' | 'page'>>;
857
- fetchAdminCategories?: Resolver<Array<IResolversTypes['AdminCategory']>, ParentType, ContextType>;
858
- fetchAdminCategoriesPage?: Resolver<IResolversTypes['CategoriesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminCategoriesPageArgs, 'filter' | 'sort' | 'page'>>;
859
- fetchAdminBrands?: Resolver<Array<IResolversTypes['AdminBrand']>, ParentType, ContextType>;
860
- fetchAdminBrandsPage?: Resolver<IResolversTypes['BrandsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminBrandsPageArgs, 'filter' | 'sort' | 'page'>>;
861
- fetchBlockchains?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
862
- fetchAdminReferralsPage?: Resolver<IResolversTypes['ReferralsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminReferralsPageArgs, 'filter' | 'sort' | 'page'>>;
863
- fetchAdminUsersPage?: Resolver<IResolversTypes['UsersPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminUsersPageArgs, 'filter' | 'sort' | 'page'>>;
864
- fetchAdminXpPage?: Resolver<IResolversTypes['XpPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminXpPageArgs, 'filter' | 'sort' | 'page'>>;
865
- };
866
-
867
- export type IReferralsPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['ReferralsPage'] = IResolversParentTypes['ReferralsPage']> = {
868
- adminReferrals?: Resolver<Array<IResolversTypes['AdminReferral']>, ParentType, ContextType>;
869
- nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
870
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
871
- };
872
-
873
- export type IReferredUsersInfoResolvers<ContextType = any, ParentType extends IResolversParentTypes['ReferredUsersInfo'] = IResolversParentTypes['ReferredUsersInfo']> = {
874
- userRefUrl?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
875
- opportunityUrl?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
876
- referredUsersPerUrlNum?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
877
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
878
- };
879
-
880
- export interface IUploadScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Upload'], any> {
881
- name: 'Upload';
882
- }
883
-
884
- export type IUsersPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['UsersPage'] = IResolversParentTypes['UsersPage']> = {
885
- users?: Resolver<Array<IResolversTypes['AdminUser']>, ParentType, ContextType>;
886
- nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
887
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
888
- };
889
-
890
- export type IWalletResolvers<ContextType = any, ParentType extends IResolversParentTypes['Wallet'] = IResolversParentTypes['Wallet']> = {
891
- address?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
892
- blockchain?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
893
- chainId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
894
- isMain?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
895
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
896
- };
897
-
898
- export type IXpPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['XpPage'] = IResolversParentTypes['XpPage']> = {
899
- xps?: Resolver<Array<IResolversTypes['AdminXp']>, ParentType, ContextType>;
900
- nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
901
- __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
902
- };
903
-
904
- export type IResolvers<ContextType = any> = {
905
- ActiveInvite?: IActiveInviteResolvers<ContextType>;
906
- AdminBrand?: IAdminBrandResolvers<ContextType>;
907
- AdminCategory?: IAdminCategoryResolvers<ContextType>;
908
- AdminInvite?: IAdminInviteResolvers<ContextType>;
909
- AdminOpportunity?: IAdminOpportunityResolvers<ContextType>;
910
- AdminPage?: IAdminPageResolvers<ContextType>;
911
- AdminReferral?: IAdminReferralResolvers<ContextType>;
912
- AdminUser?: IAdminUserResolvers<ContextType>;
913
- AdminXp?: IAdminXpResolvers<ContextType>;
914
- BrandsPage?: IBrandsPageResolvers<ContextType>;
915
- CategoriesPage?: ICategoriesPageResolvers<ContextType>;
916
- InvitesPage?: IInvitesPageResolvers<ContextType>;
917
- Long?: GraphQLScalarType;
918
- Mutation?: IMutationResolvers<ContextType>;
919
- OpportunitiesPage?: IOpportunitiesPageResolvers<ContextType>;
920
- Query?: IQueryResolvers<ContextType>;
921
- ReferralsPage?: IReferralsPageResolvers<ContextType>;
922
- ReferredUsersInfo?: IReferredUsersInfoResolvers<ContextType>;
923
- Upload?: GraphQLScalarType;
924
- UsersPage?: IUsersPageResolvers<ContextType>;
925
- Wallet?: IWalletResolvers<ContextType>;
926
- XpPage?: IXpPageResolvers<ContextType>;
927
- };
928
-
929
- export type IDirectiveResolvers<ContextType = any> = {
930
- Min?: IMinDirectiveResolver<any, any, ContextType>;
931
- Range?: IRangeDirectiveResolver<any, any, ContextType>;
932
- oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
933
- };
934
-
935
- export type IChangeXpPointsMutationVariables = Exact<{
936
- userId: Scalars['ID'];
937
- pointsDiff: Scalars['Int'];
938
- }>;
939
-
940
-
941
- export type IChangeXpPointsMutation = Pick<IMutation, 'changeXpPoints'>;
942
-
943
- export type ICreateCategoryMutationVariables = Exact<{
944
- name: Scalars['String'];
945
- matchingWords: Array<Scalars['String']>;
946
- }>;
947
-
948
-
949
- export type ICreateCategoryMutation = Pick<IMutation, 'createCategory'>;
950
-
951
- export type ICreateBrandMutationVariables = Exact<{
952
- brand: IBrandInput;
953
- file?: Maybe<Scalars['Upload']>;
954
- }>;
955
-
956
-
957
- export type ICreateBrandMutation = Pick<IMutation, 'createBrand'>;
958
-
959
- export type ICreateAdminOpportunityMutationVariables = Exact<{
960
- file?: Maybe<Scalars['Upload']>;
961
- input: IAdminOpportunityInput;
962
- }>;
963
-
964
-
965
- export type ICreateAdminOpportunityMutation = Pick<IMutation, 'createAdminOpportunity'>;
966
-
967
- export type IAddInviteCodesMutationVariables = Exact<{
968
- userId: Scalars['String'];
969
- codesNum: Scalars['Int'];
970
- }>;
971
-
972
-
973
- export type IAddInviteCodesMutation = Pick<IMutation, 'addInviteCodes'>;
974
-
975
- export type IRemoveInviteCodeMutationVariables = Exact<{
976
- inviteCode: Scalars['String'];
977
- }>;
978
-
979
-
980
- export type IRemoveInviteCodeMutation = Pick<IMutation, 'removeInviteCode'>;
981
-
982
- export type IUpdateProfileStatusMutationVariables = Exact<{
983
- userId: Scalars['ID'];
984
- isActive: Scalars['Boolean'];
985
- }>;
986
-
987
-
988
- export type IUpdateProfileStatusMutation = Pick<IMutation, 'updateProfileStatus'>;
989
-
990
- export type IFetchAdminBrandsQueryVariables = Exact<{ [key: string]: never; }>;
991
-
992
-
993
- export type IFetchAdminBrandsQuery = { fetchAdminBrands: Array<Pick<IAdminBrand, 'id' | 'name'>> };
994
-
995
- export type IFetchAdminBrandsPageQueryVariables = Exact<{
996
- filter: IBrandsFilterInput;
997
- sort: IBrandsSortInput;
998
- page: IAdminPageInput;
999
- }>;
1000
-
1001
-
1002
- export type IFetchAdminBrandsPageQuery = { fetchAdminBrandsPage: { brands: Array<Pick<IAdminBrand, 'description' | 'id' | 'industry' | 'link' | 'matchingWords' | 'media' | 'name'>>, nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements'>> } };
1003
-
1004
- export type IFetchAdminCategoriesQueryVariables = Exact<{ [key: string]: never; }>;
1005
-
1006
-
1007
- export type IFetchAdminCategoriesQuery = { fetchAdminCategories: Array<Pick<IAdminCategory, 'id' | 'name'>> };
1008
-
1009
- export type IFetchAdminCategoriesPageQueryVariables = Exact<{
1010
- filter: ICategoriesFilterInput;
1011
- sort: ICategoriesSortInput;
1012
- page: IAdminPageInput;
1013
- }>;
1014
-
1015
-
1016
- export type IFetchAdminCategoriesPageQuery = { fetchAdminCategoriesPage: { categories: Array<Pick<IAdminCategory, 'id' | 'name' | 'matchingWords'>>, nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements'>> } };
1017
-
1018
- export type IFetchAdminInvitesPageQueryVariables = Exact<{
1019
- filter: IInvitesFilterInput;
1020
- sort: IInvitesSortInput;
1021
- page: IAdminPageInput;
1022
- }>;
1023
-
1024
-
1025
- export type IFetchAdminInvitesPageQuery = { fetchAdminInvitesPage: { invites: Array<(
1026
- Pick<IAdminInvite, 'userId' | 'username' | 'referredUsers' | 'userXpLevel'>
1027
- & { wallet?: Maybe<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>, activeInvites?: Maybe<Array<Pick<IActiveInvite, 'inviteCode' | 'createdAt'>>> }
1028
- )>, nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements' | 'token'>> } };
1029
-
1030
- export type IFetchAdminOpportunitiesPageQueryVariables = Exact<{
1031
- filter: IOpportunitiesFilterInput;
1032
- sort: IOpportunitiesSortInput;
1033
- page: IAdminPageInput;
1034
- }>;
1035
-
1036
-
1037
- export type IFetchAdminOpportunitiesPageQuery = { fetchAdminOpportunitiesPage: { opportunities: Array<Pick<IAdminOpportunity, 'opportunityId' | 'name' | 'brandName' | 'industry' | 'category' | 'ludoUrl' | 'projectUrl' | 'pushNotificationsEnabled' | 'status' | 'media' | 'description' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minLudoRank' | 'maxLudoRank' | 'minWalletValue' | 'maxWalletValue' | 'clicks' | 'views'>>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
1038
-
1039
- export type IFetchAdminReferralsPageQueryVariables = Exact<{
1040
- filter: IReferralsFilterInput;
1041
- sort: IReferralsSortInput;
1042
- page: IAdminPageInput;
1043
- }>;
1044
-
1045
-
1046
- export type IFetchAdminReferralsPageQuery = { fetchAdminReferralsPage: { adminReferrals: Array<(
1047
- Pick<IAdminReferral, 'userId' | 'username' | 'referredUsersNum'>
1048
- & { mainWallet?: Maybe<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>, referrals?: Maybe<Array<Pick<IReferredUsersInfo, 'userRefUrl' | 'opportunityUrl' | 'referredUsersPerUrlNum'>>> }
1049
- )>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
1050
-
1051
- export type IFetchAdminUsersPageQueryVariables = Exact<{
1052
- filter: IUsersFilterInput;
1053
- sort: IUsersSortInput;
1054
- page: IAdminPageInput;
1055
- }>;
1056
-
1057
-
1058
- export type IFetchAdminUsersPageQuery = { fetchAdminUsersPage: { users: Array<(
1059
- Pick<IAdminUser, 'userId' | 'username' | 'connectedBlockchains' | 'isActive' | 'createdAt' | 'topInterests' | 'walletsValue' | 'xpLevel' | 'ludoRank' | 'inviterId'>
1060
- & { wallets?: Maybe<Array<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>> }
1061
- )>, nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements' | 'token'>> } };
1062
-
1063
- export type IFetchAdminXpPageQueryVariables = Exact<{
1064
- filter: IXpFilterInput;
1065
- sort: IXpSortInput;
1066
- page: IAdminPageInput;
1067
- }>;
1068
-
1069
-
1070
- export type IFetchAdminXpPageQuery = { fetchAdminXpPage: { xps: Array<(
1071
- Pick<IAdminXp, 'userId' | 'username' | 'userXpLevel' | 'userXpPoints' | 'referredUsers' | 'referredUsersNum' | 'joinedOpportunityIds' | 'connectedWalletsNum' | 'suggestedOpportunityIds'>
1072
- & { mainWallet?: Maybe<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>> }
1073
- )>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
1074
-
1075
- export type IFetchBlockchainsQueryVariables = Exact<{ [key: string]: never; }>;
1076
-
1077
-
1078
- export type IFetchBlockchainsQuery = Pick<IQuery, 'fetchBlockchains'>;
1079
-
1080
-
1081
- export const ChangeXpPointsDocument = gql`
1082
- mutation ChangeXpPoints($userId: ID!, $pointsDiff: Int!) {
1083
- changeXpPoints(userId: $userId, pointsDiff: $pointsDiff)
1084
- }
1085
- `;
1086
- export type IChangeXpPointsMutationFn = Apollo.MutationFunction<IChangeXpPointsMutation, IChangeXpPointsMutationVariables>;
1087
-
1088
- /**
1089
- * __useChangeXpPointsMutation__
1090
- *
1091
- * To run a mutation, you first call `useChangeXpPointsMutation` within a React component and pass it any options that fit your needs.
1092
- * When your component renders, `useChangeXpPointsMutation` returns a tuple that includes:
1093
- * - A mutate function that you can call at any time to execute the mutation
1094
- * - An object with fields that represent the current status of the mutation's execution
1095
- *
1096
- * @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;
1097
- *
1098
- * @example
1099
- * const [changeXpPointsMutation, { data, loading, error }] = useChangeXpPointsMutation({
1100
- * variables: {
1101
- * userId: // value for 'userId'
1102
- * pointsDiff: // value for 'pointsDiff'
1103
- * },
1104
- * });
1105
- */
1106
- export function useChangeXpPointsMutation(baseOptions?: Apollo.MutationHookOptions<IChangeXpPointsMutation, IChangeXpPointsMutationVariables>) {
1107
- return Apollo.useMutation<IChangeXpPointsMutation, IChangeXpPointsMutationVariables>(ChangeXpPointsDocument, baseOptions);
1108
- }
1109
- export type ChangeXpPointsMutationHookResult = ReturnType<typeof useChangeXpPointsMutation>;
1110
- export type ChangeXpPointsMutationResult = Apollo.MutationResult<IChangeXpPointsMutation>;
1111
- export type ChangeXpPointsMutationOptions = Apollo.BaseMutationOptions<IChangeXpPointsMutation, IChangeXpPointsMutationVariables>;
1112
- export const CreateCategoryDocument = gql`
1113
- mutation CreateCategory($name: String!, $matchingWords: [String!]!) {
1114
- createCategory(name: $name, matchingWords: $matchingWords)
1115
- }
1116
- `;
1117
- export type ICreateCategoryMutationFn = Apollo.MutationFunction<ICreateCategoryMutation, ICreateCategoryMutationVariables>;
1118
-
1119
- /**
1120
- * __useCreateCategoryMutation__
1121
- *
1122
- * To run a mutation, you first call `useCreateCategoryMutation` within a React component and pass it any options that fit your needs.
1123
- * When your component renders, `useCreateCategoryMutation` returns a tuple that includes:
1124
- * - A mutate function that you can call at any time to execute the mutation
1125
- * - An object with fields that represent the current status of the mutation's execution
1126
- *
1127
- * @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;
1128
- *
1129
- * @example
1130
- * const [createCategoryMutation, { data, loading, error }] = useCreateCategoryMutation({
1131
- * variables: {
1132
- * name: // value for 'name'
1133
- * matchingWords: // value for 'matchingWords'
1134
- * },
1135
- * });
1136
- */
1137
- export function useCreateCategoryMutation(baseOptions?: Apollo.MutationHookOptions<ICreateCategoryMutation, ICreateCategoryMutationVariables>) {
1138
- return Apollo.useMutation<ICreateCategoryMutation, ICreateCategoryMutationVariables>(CreateCategoryDocument, baseOptions);
1139
- }
1140
- export type CreateCategoryMutationHookResult = ReturnType<typeof useCreateCategoryMutation>;
1141
- export type CreateCategoryMutationResult = Apollo.MutationResult<ICreateCategoryMutation>;
1142
- export type CreateCategoryMutationOptions = Apollo.BaseMutationOptions<ICreateCategoryMutation, ICreateCategoryMutationVariables>;
1143
- export const CreateBrandDocument = gql`
1144
- mutation CreateBrand($brand: BrandInput!, $file: Upload) {
1145
- createBrand(brand: $brand, file: $file)
1146
- }
1147
- `;
1148
- export type ICreateBrandMutationFn = Apollo.MutationFunction<ICreateBrandMutation, ICreateBrandMutationVariables>;
1149
-
1150
- /**
1151
- * __useCreateBrandMutation__
1152
- *
1153
- * To run a mutation, you first call `useCreateBrandMutation` within a React component and pass it any options that fit your needs.
1154
- * When your component renders, `useCreateBrandMutation` 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 [createBrandMutation, { data, loading, error }] = useCreateBrandMutation({
1162
- * variables: {
1163
- * brand: // value for 'brand'
1164
- * file: // value for 'file'
1165
- * },
1166
- * });
1167
- */
1168
- export function useCreateBrandMutation(baseOptions?: Apollo.MutationHookOptions<ICreateBrandMutation, ICreateBrandMutationVariables>) {
1169
- return Apollo.useMutation<ICreateBrandMutation, ICreateBrandMutationVariables>(CreateBrandDocument, baseOptions);
1170
- }
1171
- export type CreateBrandMutationHookResult = ReturnType<typeof useCreateBrandMutation>;
1172
- export type CreateBrandMutationResult = Apollo.MutationResult<ICreateBrandMutation>;
1173
- export type CreateBrandMutationOptions = Apollo.BaseMutationOptions<ICreateBrandMutation, ICreateBrandMutationVariables>;
1174
- export const CreateAdminOpportunityDocument = gql`
1175
- mutation createAdminOpportunity($file: Upload, $input: AdminOpportunityInput!) {
1176
- createAdminOpportunity(file: $file, input: $input)
1177
- }
1178
- `;
1179
- export type ICreateAdminOpportunityMutationFn = Apollo.MutationFunction<ICreateAdminOpportunityMutation, ICreateAdminOpportunityMutationVariables>;
1180
-
1181
- /**
1182
- * __useCreateAdminOpportunityMutation__
1183
- *
1184
- * To run a mutation, you first call `useCreateAdminOpportunityMutation` within a React component and pass it any options that fit your needs.
1185
- * When your component renders, `useCreateAdminOpportunityMutation` returns a tuple that includes:
1186
- * - A mutate function that you can call at any time to execute the mutation
1187
- * - An object with fields that represent the current status of the mutation's execution
1188
- *
1189
- * @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;
1190
- *
1191
- * @example
1192
- * const [createAdminOpportunityMutation, { data, loading, error }] = useCreateAdminOpportunityMutation({
1193
- * variables: {
1194
- * file: // value for 'file'
1195
- * input: // value for 'input'
1196
- * },
1197
- * });
1198
- */
1199
- export function useCreateAdminOpportunityMutation(baseOptions?: Apollo.MutationHookOptions<ICreateAdminOpportunityMutation, ICreateAdminOpportunityMutationVariables>) {
1200
- return Apollo.useMutation<ICreateAdminOpportunityMutation, ICreateAdminOpportunityMutationVariables>(CreateAdminOpportunityDocument, baseOptions);
1201
- }
1202
- export type CreateAdminOpportunityMutationHookResult = ReturnType<typeof useCreateAdminOpportunityMutation>;
1203
- export type CreateAdminOpportunityMutationResult = Apollo.MutationResult<ICreateAdminOpportunityMutation>;
1204
- export type CreateAdminOpportunityMutationOptions = Apollo.BaseMutationOptions<ICreateAdminOpportunityMutation, ICreateAdminOpportunityMutationVariables>;
1205
- export const AddInviteCodesDocument = gql`
1206
- mutation AddInviteCodes($userId: String!, $codesNum: Int!) {
1207
- addInviteCodes(userId: $userId, codesNum: $codesNum)
1208
- }
1209
- `;
1210
- export type IAddInviteCodesMutationFn = Apollo.MutationFunction<IAddInviteCodesMutation, IAddInviteCodesMutationVariables>;
1211
-
1212
- /**
1213
- * __useAddInviteCodesMutation__
1214
- *
1215
- * To run a mutation, you first call `useAddInviteCodesMutation` within a React component and pass it any options that fit your needs.
1216
- * When your component renders, `useAddInviteCodesMutation` returns a tuple that includes:
1217
- * - A mutate function that you can call at any time to execute the mutation
1218
- * - An object with fields that represent the current status of the mutation's execution
1219
- *
1220
- * @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;
1221
- *
1222
- * @example
1223
- * const [addInviteCodesMutation, { data, loading, error }] = useAddInviteCodesMutation({
1224
- * variables: {
1225
- * userId: // value for 'userId'
1226
- * codesNum: // value for 'codesNum'
1227
- * },
1228
- * });
1229
- */
1230
- export function useAddInviteCodesMutation(baseOptions?: Apollo.MutationHookOptions<IAddInviteCodesMutation, IAddInviteCodesMutationVariables>) {
1231
- return Apollo.useMutation<IAddInviteCodesMutation, IAddInviteCodesMutationVariables>(AddInviteCodesDocument, baseOptions);
1232
- }
1233
- export type AddInviteCodesMutationHookResult = ReturnType<typeof useAddInviteCodesMutation>;
1234
- export type AddInviteCodesMutationResult = Apollo.MutationResult<IAddInviteCodesMutation>;
1235
- export type AddInviteCodesMutationOptions = Apollo.BaseMutationOptions<IAddInviteCodesMutation, IAddInviteCodesMutationVariables>;
1236
- export const RemoveInviteCodeDocument = gql`
1237
- mutation RemoveInviteCode($inviteCode: String!) {
1238
- removeInviteCode(inviteCode: $inviteCode)
1239
- }
1240
- `;
1241
- export type IRemoveInviteCodeMutationFn = Apollo.MutationFunction<IRemoveInviteCodeMutation, IRemoveInviteCodeMutationVariables>;
1242
-
1243
- /**
1244
- * __useRemoveInviteCodeMutation__
1245
- *
1246
- * To run a mutation, you first call `useRemoveInviteCodeMutation` within a React component and pass it any options that fit your needs.
1247
- * When your component renders, `useRemoveInviteCodeMutation` returns a tuple that includes:
1248
- * - A mutate function that you can call at any time to execute the mutation
1249
- * - An object with fields that represent the current status of the mutation's execution
1250
- *
1251
- * @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;
1252
- *
1253
- * @example
1254
- * const [removeInviteCodeMutation, { data, loading, error }] = useRemoveInviteCodeMutation({
1255
- * variables: {
1256
- * inviteCode: // value for 'inviteCode'
1257
- * },
1258
- * });
1259
- */
1260
- export function useRemoveInviteCodeMutation(baseOptions?: Apollo.MutationHookOptions<IRemoveInviteCodeMutation, IRemoveInviteCodeMutationVariables>) {
1261
- return Apollo.useMutation<IRemoveInviteCodeMutation, IRemoveInviteCodeMutationVariables>(RemoveInviteCodeDocument, baseOptions);
1262
- }
1263
- export type RemoveInviteCodeMutationHookResult = ReturnType<typeof useRemoveInviteCodeMutation>;
1264
- export type RemoveInviteCodeMutationResult = Apollo.MutationResult<IRemoveInviteCodeMutation>;
1265
- export type RemoveInviteCodeMutationOptions = Apollo.BaseMutationOptions<IRemoveInviteCodeMutation, IRemoveInviteCodeMutationVariables>;
1266
- export const UpdateProfileStatusDocument = gql`
1267
- mutation UpdateProfileStatus($userId: ID!, $isActive: Boolean!) {
1268
- updateProfileStatus(userId: $userId, isActive: $isActive)
1269
- }
1270
- `;
1271
- export type IUpdateProfileStatusMutationFn = Apollo.MutationFunction<IUpdateProfileStatusMutation, IUpdateProfileStatusMutationVariables>;
1272
-
1273
- /**
1274
- * __useUpdateProfileStatusMutation__
1275
- *
1276
- * To run a mutation, you first call `useUpdateProfileStatusMutation` within a React component and pass it any options that fit your needs.
1277
- * When your component renders, `useUpdateProfileStatusMutation` returns a tuple that includes:
1278
- * - A mutate function that you can call at any time to execute the mutation
1279
- * - An object with fields that represent the current status of the mutation's execution
1280
- *
1281
- * @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;
1282
- *
1283
- * @example
1284
- * const [updateProfileStatusMutation, { data, loading, error }] = useUpdateProfileStatusMutation({
1285
- * variables: {
1286
- * userId: // value for 'userId'
1287
- * isActive: // value for 'isActive'
1288
- * },
1289
- * });
1290
- */
1291
- export function useUpdateProfileStatusMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateProfileStatusMutation, IUpdateProfileStatusMutationVariables>) {
1292
- return Apollo.useMutation<IUpdateProfileStatusMutation, IUpdateProfileStatusMutationVariables>(UpdateProfileStatusDocument, baseOptions);
1293
- }
1294
- export type UpdateProfileStatusMutationHookResult = ReturnType<typeof useUpdateProfileStatusMutation>;
1295
- export type UpdateProfileStatusMutationResult = Apollo.MutationResult<IUpdateProfileStatusMutation>;
1296
- export type UpdateProfileStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateProfileStatusMutation, IUpdateProfileStatusMutationVariables>;
1297
- export const FetchAdminBrandsDocument = gql`
1298
- query FetchAdminBrands {
1299
- fetchAdminBrands {
1300
- id
1301
- name
1302
- }
1303
- }
1304
- `;
1305
-
1306
- /**
1307
- * __useFetchAdminBrandsQuery__
1308
- *
1309
- * To run a query within a React component, call `useFetchAdminBrandsQuery` and pass it any options that fit your needs.
1310
- * When your component renders, `useFetchAdminBrandsQuery` returns an object from Apollo Client that contains loading, error, and data properties
1311
- * you can use to render your UI.
1312
- *
1313
- * @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;
1314
- *
1315
- * @example
1316
- * const { data, loading, error } = useFetchAdminBrandsQuery({
1317
- * variables: {
1318
- * },
1319
- * });
1320
- */
1321
- export function useFetchAdminBrandsQuery(baseOptions?: Apollo.QueryHookOptions<IFetchAdminBrandsQuery, IFetchAdminBrandsQueryVariables>) {
1322
- return Apollo.useQuery<IFetchAdminBrandsQuery, IFetchAdminBrandsQueryVariables>(FetchAdminBrandsDocument, baseOptions);
1323
- }
1324
- export function useFetchAdminBrandsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminBrandsQuery, IFetchAdminBrandsQueryVariables>) {
1325
- return Apollo.useLazyQuery<IFetchAdminBrandsQuery, IFetchAdminBrandsQueryVariables>(FetchAdminBrandsDocument, baseOptions);
1326
- }
1327
- export type FetchAdminBrandsQueryHookResult = ReturnType<typeof useFetchAdminBrandsQuery>;
1328
- export type FetchAdminBrandsLazyQueryHookResult = ReturnType<typeof useFetchAdminBrandsLazyQuery>;
1329
- export type FetchAdminBrandsQueryResult = Apollo.QueryResult<IFetchAdminBrandsQuery, IFetchAdminBrandsQueryVariables>;
1330
- export const FetchAdminBrandsPageDocument = gql`
1331
- query FetchAdminBrandsPage($filter: BrandsFilterInput!, $sort: BrandsSortInput!, $page: AdminPageInput!) {
1332
- fetchAdminBrandsPage(filter: $filter, sort: $sort, page: $page) {
1333
- brands {
1334
- description
1335
- id
1336
- industry
1337
- link
1338
- matchingWords
1339
- media
1340
- name
1341
- }
1342
- nextPage {
1343
- num
1344
- lastNum
1345
- size
1346
- elements
1347
- }
1348
- }
1349
- }
1350
- `;
1351
-
1352
- /**
1353
- * __useFetchAdminBrandsPageQuery__
1354
- *
1355
- * To run a query within a React component, call `useFetchAdminBrandsPageQuery` and pass it any options that fit your needs.
1356
- * When your component renders, `useFetchAdminBrandsPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
1357
- * you can use to render your UI.
1358
- *
1359
- * @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;
1360
- *
1361
- * @example
1362
- * const { data, loading, error } = useFetchAdminBrandsPageQuery({
1363
- * variables: {
1364
- * filter: // value for 'filter'
1365
- * sort: // value for 'sort'
1366
- * page: // value for 'page'
1367
- * },
1368
- * });
1369
- */
1370
- export function useFetchAdminBrandsPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchAdminBrandsPageQuery, IFetchAdminBrandsPageQueryVariables>) {
1371
- return Apollo.useQuery<IFetchAdminBrandsPageQuery, IFetchAdminBrandsPageQueryVariables>(FetchAdminBrandsPageDocument, baseOptions);
1372
- }
1373
- export function useFetchAdminBrandsPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminBrandsPageQuery, IFetchAdminBrandsPageQueryVariables>) {
1374
- return Apollo.useLazyQuery<IFetchAdminBrandsPageQuery, IFetchAdminBrandsPageQueryVariables>(FetchAdminBrandsPageDocument, baseOptions);
1375
- }
1376
- export type FetchAdminBrandsPageQueryHookResult = ReturnType<typeof useFetchAdminBrandsPageQuery>;
1377
- export type FetchAdminBrandsPageLazyQueryHookResult = ReturnType<typeof useFetchAdminBrandsPageLazyQuery>;
1378
- export type FetchAdminBrandsPageQueryResult = Apollo.QueryResult<IFetchAdminBrandsPageQuery, IFetchAdminBrandsPageQueryVariables>;
1379
- export const FetchAdminCategoriesDocument = gql`
1380
- query FetchAdminCategories {
1381
- fetchAdminCategories {
1382
- id
1383
- name
1384
- }
1385
- }
1386
- `;
1387
-
1388
- /**
1389
- * __useFetchAdminCategoriesQuery__
1390
- *
1391
- * To run a query within a React component, call `useFetchAdminCategoriesQuery` and pass it any options that fit your needs.
1392
- * When your component renders, `useFetchAdminCategoriesQuery` returns an object from Apollo Client that contains loading, error, and data properties
1393
- * you can use to render your UI.
1394
- *
1395
- * @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;
1396
- *
1397
- * @example
1398
- * const { data, loading, error } = useFetchAdminCategoriesQuery({
1399
- * variables: {
1400
- * },
1401
- * });
1402
- */
1403
- export function useFetchAdminCategoriesQuery(baseOptions?: Apollo.QueryHookOptions<IFetchAdminCategoriesQuery, IFetchAdminCategoriesQueryVariables>) {
1404
- return Apollo.useQuery<IFetchAdminCategoriesQuery, IFetchAdminCategoriesQueryVariables>(FetchAdminCategoriesDocument, baseOptions);
1405
- }
1406
- export function useFetchAdminCategoriesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminCategoriesQuery, IFetchAdminCategoriesQueryVariables>) {
1407
- return Apollo.useLazyQuery<IFetchAdminCategoriesQuery, IFetchAdminCategoriesQueryVariables>(FetchAdminCategoriesDocument, baseOptions);
1408
- }
1409
- export type FetchAdminCategoriesQueryHookResult = ReturnType<typeof useFetchAdminCategoriesQuery>;
1410
- export type FetchAdminCategoriesLazyQueryHookResult = ReturnType<typeof useFetchAdminCategoriesLazyQuery>;
1411
- export type FetchAdminCategoriesQueryResult = Apollo.QueryResult<IFetchAdminCategoriesQuery, IFetchAdminCategoriesQueryVariables>;
1412
- export const FetchAdminCategoriesPageDocument = gql`
1413
- query FetchAdminCategoriesPage($filter: CategoriesFilterInput!, $sort: CategoriesSortInput!, $page: AdminPageInput!) {
1414
- fetchAdminCategoriesPage(filter: $filter, sort: $sort, page: $page) {
1415
- categories {
1416
- id
1417
- name
1418
- matchingWords
1419
- }
1420
- nextPage {
1421
- num
1422
- lastNum
1423
- size
1424
- elements
1425
- }
1426
- }
1427
- }
1428
- `;
1429
-
1430
- /**
1431
- * __useFetchAdminCategoriesPageQuery__
1432
- *
1433
- * To run a query within a React component, call `useFetchAdminCategoriesPageQuery` and pass it any options that fit your needs.
1434
- * When your component renders, `useFetchAdminCategoriesPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
1435
- * you can use to render your UI.
1436
- *
1437
- * @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;
1438
- *
1439
- * @example
1440
- * const { data, loading, error } = useFetchAdminCategoriesPageQuery({
1441
- * variables: {
1442
- * filter: // value for 'filter'
1443
- * sort: // value for 'sort'
1444
- * page: // value for 'page'
1445
- * },
1446
- * });
1447
- */
1448
- export function useFetchAdminCategoriesPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchAdminCategoriesPageQuery, IFetchAdminCategoriesPageQueryVariables>) {
1449
- return Apollo.useQuery<IFetchAdminCategoriesPageQuery, IFetchAdminCategoriesPageQueryVariables>(FetchAdminCategoriesPageDocument, baseOptions);
1450
- }
1451
- export function useFetchAdminCategoriesPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminCategoriesPageQuery, IFetchAdminCategoriesPageQueryVariables>) {
1452
- return Apollo.useLazyQuery<IFetchAdminCategoriesPageQuery, IFetchAdminCategoriesPageQueryVariables>(FetchAdminCategoriesPageDocument, baseOptions);
1453
- }
1454
- export type FetchAdminCategoriesPageQueryHookResult = ReturnType<typeof useFetchAdminCategoriesPageQuery>;
1455
- export type FetchAdminCategoriesPageLazyQueryHookResult = ReturnType<typeof useFetchAdminCategoriesPageLazyQuery>;
1456
- export type FetchAdminCategoriesPageQueryResult = Apollo.QueryResult<IFetchAdminCategoriesPageQuery, IFetchAdminCategoriesPageQueryVariables>;
1457
- export const FetchAdminInvitesPageDocument = gql`
1458
- query fetchAdminInvitesPage($filter: InvitesFilterInput!, $sort: InvitesSortInput!, $page: AdminPageInput!) {
1459
- fetchAdminInvitesPage(filter: $filter, sort: $sort, page: $page) {
1460
- invites {
1461
- userId
1462
- username
1463
- wallet {
1464
- address
1465
- blockchain
1466
- chainId
1467
- }
1468
- activeInvites {
1469
- inviteCode
1470
- createdAt
1471
- }
1472
- referredUsers
1473
- userXpLevel
1474
- }
1475
- nextPage {
1476
- num
1477
- lastNum
1478
- size
1479
- elements
1480
- token
1481
- }
1482
- }
1483
- }
1484
- `;
1485
-
1486
- /**
1487
- * __useFetchAdminInvitesPageQuery__
1488
- *
1489
- * To run a query within a React component, call `useFetchAdminInvitesPageQuery` and pass it any options that fit your needs.
1490
- * When your component renders, `useFetchAdminInvitesPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
1491
- * you can use to render your UI.
1492
- *
1493
- * @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;
1494
- *
1495
- * @example
1496
- * const { data, loading, error } = useFetchAdminInvitesPageQuery({
1497
- * variables: {
1498
- * filter: // value for 'filter'
1499
- * sort: // value for 'sort'
1500
- * page: // value for 'page'
1501
- * },
1502
- * });
1503
- */
1504
- export function useFetchAdminInvitesPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchAdminInvitesPageQuery, IFetchAdminInvitesPageQueryVariables>) {
1505
- return Apollo.useQuery<IFetchAdminInvitesPageQuery, IFetchAdminInvitesPageQueryVariables>(FetchAdminInvitesPageDocument, baseOptions);
1506
- }
1507
- export function useFetchAdminInvitesPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminInvitesPageQuery, IFetchAdminInvitesPageQueryVariables>) {
1508
- return Apollo.useLazyQuery<IFetchAdminInvitesPageQuery, IFetchAdminInvitesPageQueryVariables>(FetchAdminInvitesPageDocument, baseOptions);
1509
- }
1510
- export type FetchAdminInvitesPageQueryHookResult = ReturnType<typeof useFetchAdminInvitesPageQuery>;
1511
- export type FetchAdminInvitesPageLazyQueryHookResult = ReturnType<typeof useFetchAdminInvitesPageLazyQuery>;
1512
- export type FetchAdminInvitesPageQueryResult = Apollo.QueryResult<IFetchAdminInvitesPageQuery, IFetchAdminInvitesPageQueryVariables>;
1513
- export const FetchAdminOpportunitiesPageDocument = gql`
1514
- query FetchAdminOpportunitiesPage($filter: OpportunitiesFilterInput!, $sort: OpportunitiesSortInput!, $page: AdminPageInput!) {
1515
- fetchAdminOpportunitiesPage(filter: $filter, sort: $sort, page: $page) {
1516
- opportunities {
1517
- opportunityId
1518
- name
1519
- brandName
1520
- industry
1521
- category
1522
- ludoUrl
1523
- projectUrl
1524
- pushNotificationsEnabled
1525
- status
1526
- media
1527
- description
1528
- activeFrom
1529
- activeUntil
1530
- minXpLevel
1531
- maxXpLevel
1532
- minLudoRank
1533
- maxLudoRank
1534
- minWalletValue
1535
- maxWalletValue
1536
- clicks
1537
- views
1538
- }
1539
- nextPage {
1540
- elements
1541
- lastNum
1542
- num
1543
- size
1544
- token
1545
- }
1546
- }
1547
- }
1548
- `;
1549
-
1550
- /**
1551
- * __useFetchAdminOpportunitiesPageQuery__
1552
- *
1553
- * To run a query within a React component, call `useFetchAdminOpportunitiesPageQuery` and pass it any options that fit your needs.
1554
- * When your component renders, `useFetchAdminOpportunitiesPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
1555
- * you can use to render your UI.
1556
- *
1557
- * @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;
1558
- *
1559
- * @example
1560
- * const { data, loading, error } = useFetchAdminOpportunitiesPageQuery({
1561
- * variables: {
1562
- * filter: // value for 'filter'
1563
- * sort: // value for 'sort'
1564
- * page: // value for 'page'
1565
- * },
1566
- * });
1567
- */
1568
- export function useFetchAdminOpportunitiesPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchAdminOpportunitiesPageQuery, IFetchAdminOpportunitiesPageQueryVariables>) {
1569
- return Apollo.useQuery<IFetchAdminOpportunitiesPageQuery, IFetchAdminOpportunitiesPageQueryVariables>(FetchAdminOpportunitiesPageDocument, baseOptions);
1570
- }
1571
- export function useFetchAdminOpportunitiesPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminOpportunitiesPageQuery, IFetchAdminOpportunitiesPageQueryVariables>) {
1572
- return Apollo.useLazyQuery<IFetchAdminOpportunitiesPageQuery, IFetchAdminOpportunitiesPageQueryVariables>(FetchAdminOpportunitiesPageDocument, baseOptions);
1573
- }
1574
- export type FetchAdminOpportunitiesPageQueryHookResult = ReturnType<typeof useFetchAdminOpportunitiesPageQuery>;
1575
- export type FetchAdminOpportunitiesPageLazyQueryHookResult = ReturnType<typeof useFetchAdminOpportunitiesPageLazyQuery>;
1576
- export type FetchAdminOpportunitiesPageQueryResult = Apollo.QueryResult<IFetchAdminOpportunitiesPageQuery, IFetchAdminOpportunitiesPageQueryVariables>;
1577
- export const FetchAdminReferralsPageDocument = gql`
1578
- query FetchAdminReferralsPage($filter: ReferralsFilterInput!, $sort: ReferralsSortInput!, $page: AdminPageInput!) {
1579
- fetchAdminReferralsPage(filter: $filter, sort: $sort, page: $page) {
1580
- adminReferrals {
1581
- userId
1582
- username
1583
- mainWallet {
1584
- address
1585
- blockchain
1586
- chainId
1587
- }
1588
- referredUsersNum
1589
- referrals {
1590
- userRefUrl
1591
- opportunityUrl
1592
- referredUsersPerUrlNum
1593
- }
1594
- }
1595
- nextPage {
1596
- elements
1597
- lastNum
1598
- num
1599
- size
1600
- token
1601
- }
1602
- }
1603
- }
1604
- `;
1605
-
1606
- /**
1607
- * __useFetchAdminReferralsPageQuery__
1608
- *
1609
- * To run a query within a React component, call `useFetchAdminReferralsPageQuery` and pass it any options that fit your needs.
1610
- * When your component renders, `useFetchAdminReferralsPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
1611
- * you can use to render your UI.
1612
- *
1613
- * @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;
1614
- *
1615
- * @example
1616
- * const { data, loading, error } = useFetchAdminReferralsPageQuery({
1617
- * variables: {
1618
- * filter: // value for 'filter'
1619
- * sort: // value for 'sort'
1620
- * page: // value for 'page'
1621
- * },
1622
- * });
1623
- */
1624
- export function useFetchAdminReferralsPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchAdminReferralsPageQuery, IFetchAdminReferralsPageQueryVariables>) {
1625
- return Apollo.useQuery<IFetchAdminReferralsPageQuery, IFetchAdminReferralsPageQueryVariables>(FetchAdminReferralsPageDocument, baseOptions);
1626
- }
1627
- export function useFetchAdminReferralsPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminReferralsPageQuery, IFetchAdminReferralsPageQueryVariables>) {
1628
- return Apollo.useLazyQuery<IFetchAdminReferralsPageQuery, IFetchAdminReferralsPageQueryVariables>(FetchAdminReferralsPageDocument, baseOptions);
1629
- }
1630
- export type FetchAdminReferralsPageQueryHookResult = ReturnType<typeof useFetchAdminReferralsPageQuery>;
1631
- export type FetchAdminReferralsPageLazyQueryHookResult = ReturnType<typeof useFetchAdminReferralsPageLazyQuery>;
1632
- export type FetchAdminReferralsPageQueryResult = Apollo.QueryResult<IFetchAdminReferralsPageQuery, IFetchAdminReferralsPageQueryVariables>;
1633
- export const FetchAdminUsersPageDocument = gql`
1634
- query fetchAdminUsersPage($filter: UsersFilterInput!, $sort: UsersSortInput!, $page: AdminPageInput!) {
1635
- fetchAdminUsersPage(filter: $filter, sort: $sort, page: $page) {
1636
- users {
1637
- userId
1638
- username
1639
- wallets {
1640
- address
1641
- blockchain
1642
- chainId
1643
- }
1644
- connectedBlockchains
1645
- isActive
1646
- createdAt
1647
- topInterests
1648
- walletsValue
1649
- xpLevel
1650
- ludoRank
1651
- inviterId
1652
- }
1653
- nextPage {
1654
- num
1655
- lastNum
1656
- size
1657
- elements
1658
- token
1659
- }
1660
- }
1661
- }
1662
- `;
1663
-
1664
- /**
1665
- * __useFetchAdminUsersPageQuery__
1666
- *
1667
- * To run a query within a React component, call `useFetchAdminUsersPageQuery` and pass it any options that fit your needs.
1668
- * When your component renders, `useFetchAdminUsersPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
1669
- * you can use to render your UI.
1670
- *
1671
- * @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;
1672
- *
1673
- * @example
1674
- * const { data, loading, error } = useFetchAdminUsersPageQuery({
1675
- * variables: {
1676
- * filter: // value for 'filter'
1677
- * sort: // value for 'sort'
1678
- * page: // value for 'page'
1679
- * },
1680
- * });
1681
- */
1682
- export function useFetchAdminUsersPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchAdminUsersPageQuery, IFetchAdminUsersPageQueryVariables>) {
1683
- return Apollo.useQuery<IFetchAdminUsersPageQuery, IFetchAdminUsersPageQueryVariables>(FetchAdminUsersPageDocument, baseOptions);
1684
- }
1685
- export function useFetchAdminUsersPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminUsersPageQuery, IFetchAdminUsersPageQueryVariables>) {
1686
- return Apollo.useLazyQuery<IFetchAdminUsersPageQuery, IFetchAdminUsersPageQueryVariables>(FetchAdminUsersPageDocument, baseOptions);
1687
- }
1688
- export type FetchAdminUsersPageQueryHookResult = ReturnType<typeof useFetchAdminUsersPageQuery>;
1689
- export type FetchAdminUsersPageLazyQueryHookResult = ReturnType<typeof useFetchAdminUsersPageLazyQuery>;
1690
- export type FetchAdminUsersPageQueryResult = Apollo.QueryResult<IFetchAdminUsersPageQuery, IFetchAdminUsersPageQueryVariables>;
1691
- export const FetchAdminXpPageDocument = gql`
1692
- query FetchAdminXpPage($filter: XpFilterInput!, $sort: XpSortInput!, $page: AdminPageInput!) {
1693
- fetchAdminXpPage(filter: $filter, sort: $sort, page: $page) {
1694
- xps {
1695
- userId
1696
- username
1697
- mainWallet {
1698
- address
1699
- blockchain
1700
- chainId
1701
- }
1702
- userXpLevel
1703
- userXpPoints
1704
- referredUsers
1705
- referredUsersNum
1706
- joinedOpportunityIds
1707
- connectedWalletsNum
1708
- suggestedOpportunityIds
1709
- }
1710
- nextPage {
1711
- elements
1712
- lastNum
1713
- num
1714
- size
1715
- token
1716
- }
1717
- }
1718
- }
1719
- `;
1720
-
1721
- /**
1722
- * __useFetchAdminXpPageQuery__
1723
- *
1724
- * To run a query within a React component, call `useFetchAdminXpPageQuery` and pass it any options that fit your needs.
1725
- * When your component renders, `useFetchAdminXpPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
1726
- * you can use to render your UI.
1727
- *
1728
- * @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;
1729
- *
1730
- * @example
1731
- * const { data, loading, error } = useFetchAdminXpPageQuery({
1732
- * variables: {
1733
- * filter: // value for 'filter'
1734
- * sort: // value for 'sort'
1735
- * page: // value for 'page'
1736
- * },
1737
- * });
1738
- */
1739
- export function useFetchAdminXpPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchAdminXpPageQuery, IFetchAdminXpPageQueryVariables>) {
1740
- return Apollo.useQuery<IFetchAdminXpPageQuery, IFetchAdminXpPageQueryVariables>(FetchAdminXpPageDocument, baseOptions);
1741
- }
1742
- export function useFetchAdminXpPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminXpPageQuery, IFetchAdminXpPageQueryVariables>) {
1743
- return Apollo.useLazyQuery<IFetchAdminXpPageQuery, IFetchAdminXpPageQueryVariables>(FetchAdminXpPageDocument, baseOptions);
1744
- }
1745
- export type FetchAdminXpPageQueryHookResult = ReturnType<typeof useFetchAdminXpPageQuery>;
1746
- export type FetchAdminXpPageLazyQueryHookResult = ReturnType<typeof useFetchAdminXpPageLazyQuery>;
1747
- export type FetchAdminXpPageQueryResult = Apollo.QueryResult<IFetchAdminXpPageQuery, IFetchAdminXpPageQueryVariables>;
1748
- export const FetchBlockchainsDocument = gql`
1749
- query FetchBlockchains {
1750
- fetchBlockchains
1751
- }
1752
- `;
1753
-
1754
- /**
1755
- * __useFetchBlockchainsQuery__
1756
- *
1757
- * To run a query within a React component, call `useFetchBlockchainsQuery` and pass it any options that fit your needs.
1758
- * When your component renders, `useFetchBlockchainsQuery` returns an object from Apollo Client that contains loading, error, and data properties
1759
- * you can use to render your UI.
1760
- *
1761
- * @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;
1762
- *
1763
- * @example
1764
- * const { data, loading, error } = useFetchBlockchainsQuery({
1765
- * variables: {
1766
- * },
1767
- * });
1768
- */
1769
- export function useFetchBlockchainsQuery(baseOptions?: Apollo.QueryHookOptions<IFetchBlockchainsQuery, IFetchBlockchainsQueryVariables>) {
1770
- return Apollo.useQuery<IFetchBlockchainsQuery, IFetchBlockchainsQueryVariables>(FetchBlockchainsDocument, baseOptions);
1771
- }
1772
- export function useFetchBlockchainsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchBlockchainsQuery, IFetchBlockchainsQueryVariables>) {
1773
- return Apollo.useLazyQuery<IFetchBlockchainsQuery, IFetchBlockchainsQueryVariables>(FetchBlockchainsDocument, baseOptions);
1774
- }
1775
- export type FetchBlockchainsQueryHookResult = ReturnType<typeof useFetchBlockchainsQuery>;
1776
- export type FetchBlockchainsLazyQueryHookResult = ReturnType<typeof useFetchBlockchainsLazyQuery>;
1777
- export type FetchBlockchainsQueryResult = Apollo.QueryResult<IFetchBlockchainsQuery, IFetchBlockchainsQueryVariables>;