@ludo.ninja/api 3.0.34 → 3.0.36

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.
@@ -26,6 +26,10 @@ export type Scalars = {
26
26
  Long: any;
27
27
  Upload: any;
28
28
  };
29
+ export declare enum IAccessType {
30
+ Public = "PUBLIC",
31
+ Restricted = "RESTRICTED"
32
+ }
29
33
  export type IActiveInvite = {
30
34
  inviteCode?: Maybe<Scalars['String']>;
31
35
  createdAt?: Maybe<Scalars['Long']>;
@@ -35,6 +39,17 @@ export type IActiveInvite = {
35
39
  reftypeName?: Maybe<Scalars['String']>;
36
40
  reftypeColor?: Maybe<IReftypeColor>;
37
41
  };
42
+ export type IAdminAirdropInput = {
43
+ name: Scalars['String'];
44
+ minLudoRank?: Maybe<Scalars['Float']>;
45
+ maxLudoRank?: Maybe<Scalars['Float']>;
46
+ minXpLevel?: Maybe<Scalars['Int']>;
47
+ maxXpLevel?: Maybe<Scalars['Int']>;
48
+ geolocations?: Maybe<Array<Scalars['String']>>;
49
+ activeFrom?: Maybe<Scalars['Long']>;
50
+ activeUntil?: Maybe<Scalars['Long']>;
51
+ hidden?: Maybe<Scalars['Boolean']>;
52
+ };
38
53
  export type IAdminBrand = {
39
54
  id: Scalars['String'];
40
55
  name: Scalars['String'];
@@ -142,6 +157,8 @@ export type IAdminOpportunity = {
142
157
  notificationDestinations?: Maybe<Array<INotificationDestination>>;
143
158
  type: IOpportunityType;
144
159
  devicePlatforms?: Maybe<Array<IDevicePlatform>>;
160
+ participants?: Maybe<Scalars['Int']>;
161
+ hidden?: Maybe<Scalars['Boolean']>;
145
162
  };
146
163
  export type IAdminOpportunityInput = {
147
164
  brandId: Scalars['String'];
@@ -216,6 +233,7 @@ export type IAdminUser = {
216
233
  location?: Maybe<Scalars['String']>;
217
234
  userLanguage?: Maybe<Scalars['String']>;
218
235
  devicePlatform?: Maybe<IDevicePlatform>;
236
+ firstVisitSource?: Maybe<ILoginSource>;
219
237
  };
220
238
  export type IAdminXp = {
221
239
  userId: Scalars['ID'];
@@ -229,6 +247,19 @@ export type IAdminXp = {
229
247
  connectedWalletsNum?: Maybe<Scalars['Int']>;
230
248
  suggestedOpportunityIds?: Maybe<Array<Scalars['String']>>;
231
249
  };
250
+ export type IAirdropsLeaderboardFilterInput = {
251
+ nameTerm?: Maybe<Scalars['String']>;
252
+ userRank?: Maybe<Scalars['Int']>;
253
+ xpLevel?: Maybe<Scalars['Int']>;
254
+ geolocationTerm?: Maybe<Scalars['String']>;
255
+ activeUntilTimestamp?: Maybe<Scalars['Long']>;
256
+ activeFromTimestamp?: Maybe<Scalars['Long']>;
257
+ hidden?: Maybe<Scalars['Boolean']>;
258
+ };
259
+ export type IAirdropsLeaderboardSortInput = {
260
+ sortByDate?: Maybe<ISort>;
261
+ sortByParticipants?: Maybe<ISort>;
262
+ };
232
263
  export type IBrandInput = {
233
264
  name: Scalars['String'];
234
265
  matchingWords: Array<Scalars['String']>;
@@ -393,6 +424,28 @@ export type IInvitesSortInput = {
393
424
  sortByActiveInvites?: Maybe<ISort>;
394
425
  sortByReferredUsers?: Maybe<ISort>;
395
426
  };
427
+ export type ILeaderboard = {
428
+ type: ILeaderboardType;
429
+ accessType: IAccessType;
430
+ minRank?: Maybe<Scalars['Float']>;
431
+ maxRank?: Maybe<Scalars['Float']>;
432
+ minXpLevel?: Maybe<Scalars['Int']>;
433
+ maxXpLevel?: Maybe<Scalars['Int']>;
434
+ geolocations?: Maybe<Array<Maybe<Scalars['String']>>>;
435
+ hidden: Scalars['Boolean'];
436
+ };
437
+ export type ILeaderboardInput = {
438
+ accessType: IAccessType;
439
+ minRank?: Maybe<Scalars['Float']>;
440
+ maxRank?: Maybe<Scalars['Float']>;
441
+ minXpLevel?: Maybe<Scalars['Int']>;
442
+ maxXpLevel?: Maybe<Scalars['Int']>;
443
+ geolocations?: Maybe<Array<Maybe<Scalars['String']>>>;
444
+ hidden: Scalars['Boolean'];
445
+ };
446
+ export declare enum ILeaderboardType {
447
+ Airdrops = "AIRDROPS"
448
+ }
396
449
  export type ILocation = {
397
450
  name: Scalars['String'];
398
451
  type: ILocationType;
@@ -401,11 +454,20 @@ export declare enum ILocationType {
401
454
  Continent = "CONTINENT",
402
455
  Country = "COUNTRY"
403
456
  }
457
+ /** Please sync with ApplicationType.java */
458
+ export declare enum ILoginSource {
459
+ Portal = "PORTAL",
460
+ Extension = "EXTENSION",
461
+ TgMiniApp = "TG_MINI_APP",
462
+ Backoffice = "BACKOFFICE",
463
+ Unknown = "UNKNOWN"
464
+ }
404
465
  export type IMutation = {
405
466
  setDummy: Scalars['String'];
406
467
  removeInviteCode: Scalars['Boolean'];
407
468
  addInviteCodes: Scalars['Boolean'];
408
469
  updateInviteCodeUsagesLimit: Scalars['Boolean'];
470
+ updateLeaderboard: Scalars['Boolean'];
409
471
  updateOpportunityPushStatus: Scalars['Boolean'];
410
472
  createBrand: Scalars['Boolean'];
411
473
  updateBrand: Scalars['Boolean'];
@@ -417,6 +479,7 @@ export type IMutation = {
417
479
  updateOpportunity: Scalars['Boolean'];
418
480
  updateOpportunityArchivedStatus: Scalars['Boolean'];
419
481
  triggerOpportunityNotification: Scalars['Boolean'];
482
+ updateAirdrop: Scalars['Boolean'];
420
483
  createReferralType?: Maybe<Scalars['Boolean']>;
421
484
  updateReferralType: Scalars['Boolean'];
422
485
  updateReferralTypeArchivedStatus: Scalars['Boolean'];
@@ -440,6 +503,10 @@ export type IMutationUpdateInviteCodeUsagesLimitArgs = {
440
503
  code: Scalars['String'];
441
504
  usagesLimit: Scalars['Int'];
442
505
  };
506
+ export type IMutationUpdateLeaderboardArgs = {
507
+ type: ILeaderboardType;
508
+ input: ILeaderboardInput;
509
+ };
443
510
  export type IMutationUpdateOpportunityPushStatusArgs = {
444
511
  opportunityId: Scalars['ID'];
445
512
  isActive: Scalars['Boolean'];
@@ -485,6 +552,11 @@ export type IMutationUpdateOpportunityArchivedStatusArgs = {
485
552
  export type IMutationTriggerOpportunityNotificationArgs = {
486
553
  opportunityId: Scalars['ID'];
487
554
  };
555
+ export type IMutationUpdateAirdropArgs = {
556
+ id: Scalars['ID'];
557
+ input: IAdminAirdropInput;
558
+ file?: Maybe<Scalars['Upload']>;
559
+ };
488
560
  export type IMutationCreateReferralTypeArgs = {
489
561
  input: IReferralTypeInput;
490
562
  };
@@ -606,6 +678,7 @@ export type IQuery = {
606
678
  fetchRegistrationInvitePage: IRegistrationInvitePage;
607
679
  fetchAdminInvitesPage: IInvitesPage;
608
680
  checkInviteCode: ICheckInviteCodeData;
681
+ fetchLeaderboard: ILeaderboard;
609
682
  fetchLocations?: Maybe<Array<Maybe<ILocation>>>;
610
683
  fetchAllCountries: Array<ICountry>;
611
684
  fetchAdminOpportunitiesPage: IOpportunitiesPage;
@@ -614,6 +687,7 @@ export type IQuery = {
614
687
  fetchAdminBrands: Array<IAdminBrand>;
615
688
  fetchAdminBrandsPage: IBrandsPage;
616
689
  fetchBlockchains: Array<Scalars['String']>;
690
+ fetchAdminAirdropsPage: IOpportunitiesPage;
617
691
  fetchAdminReferralsPage: IReferralsPage;
618
692
  fetchUnarchivedReferralTypes: Array<IReferralType>;
619
693
  fetchReferralTypesPage: IReferralTypesPage;
@@ -665,6 +739,9 @@ export type IQueryFetchAdminInvitesPageArgs = {
665
739
  export type IQueryCheckInviteCodeArgs = {
666
740
  code: Scalars['String'];
667
741
  };
742
+ export type IQueryFetchLeaderboardArgs = {
743
+ type: ILeaderboardType;
744
+ };
668
745
  export type IQueryFetchLocationsArgs = {
669
746
  term: Scalars['String'];
670
747
  };
@@ -683,6 +760,11 @@ export type IQueryFetchAdminBrandsPageArgs = {
683
760
  sort: IBrandsSortInput;
684
761
  page: IAdminPageInput;
685
762
  };
763
+ export type IQueryFetchAdminAirdropsPageArgs = {
764
+ filter: IAirdropsLeaderboardFilterInput;
765
+ sort?: Maybe<IAirdropsLeaderboardSortInput>;
766
+ page: IAdminPageInput;
767
+ };
686
768
  export type IQueryFetchAdminReferralsPageArgs = {
687
769
  filter: IReferralsFilterInput;
688
770
  sort: IReferralsSortInput;
@@ -873,6 +955,7 @@ export type IUsersFilterInput = {
873
955
  ludoRank?: Maybe<Scalars['Float']>;
874
956
  invitedByTerm?: Maybe<Scalars['String']>;
875
957
  devicePlatformTerm?: Maybe<Scalars['String']>;
958
+ firstVisitSourceTerm?: Maybe<Scalars['String']>;
876
959
  };
877
960
  export type IUsersPage = {
878
961
  users: Array<IAdminUser>;
@@ -886,6 +969,7 @@ export type IUsersSortInput = {
886
969
  sortByXpLevel?: Maybe<ISort>;
887
970
  sortByLudoRank?: Maybe<ISort>;
888
971
  sortByDevicePlatform?: Maybe<ISort>;
972
+ sortByFirstVisitSource?: Maybe<ISort>;
889
973
  };
890
974
  export type IWallet = {
891
975
  address: Scalars['String'];
@@ -947,17 +1031,19 @@ export type NextResolverFn<T> = () => Promise<T>;
947
1031
  export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
948
1032
  /** Mapping between all available schema types and the resolvers types */
949
1033
  export type IResolversTypes = {
1034
+ AccessType: IAccessType;
950
1035
  ActiveInvite: ResolverTypeWrapper<IActiveInvite>;
951
1036
  String: ResolverTypeWrapper<Scalars['String']>;
952
1037
  Int: ResolverTypeWrapper<Scalars['Int']>;
953
- AdminBrand: ResolverTypeWrapper<IAdminBrand>;
1038
+ AdminAirdropInput: IAdminAirdropInput;
1039
+ Float: ResolverTypeWrapper<Scalars['Float']>;
954
1040
  Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
1041
+ AdminBrand: ResolverTypeWrapper<IAdminBrand>;
955
1042
  AdminCategory: ResolverTypeWrapper<IAdminCategory>;
956
1043
  AdminContactSupport: ResolverTypeWrapper<IAdminContactSupport>;
957
1044
  AdminContentReport: ResolverTypeWrapper<IAdminContentReport>;
958
1045
  AdminFormOpportunity: ResolverTypeWrapper<IAdminFormOpportunity>;
959
1046
  AdminInvestorInquiry: ResolverTypeWrapper<IAdminInvestorInquiry>;
960
- Float: ResolverTypeWrapper<Scalars['Float']>;
961
1047
  AdminInvite: ResolverTypeWrapper<IAdminInvite>;
962
1048
  AdminOpportunity: ResolverTypeWrapper<IAdminOpportunity>;
963
1049
  ID: ResolverTypeWrapper<Scalars['ID']>;
@@ -968,6 +1054,8 @@ export type IResolversTypes = {
968
1054
  AdminReferral: ResolverTypeWrapper<IAdminReferral>;
969
1055
  AdminUser: ResolverTypeWrapper<IAdminUser>;
970
1056
  AdminXp: ResolverTypeWrapper<IAdminXp>;
1057
+ AirdropsLeaderboardFilterInput: IAirdropsLeaderboardFilterInput;
1058
+ AirdropsLeaderboardSortInput: IAirdropsLeaderboardSortInput;
971
1059
  BrandInput: IBrandInput;
972
1060
  BrandsFilterInput: IBrandsFilterInput;
973
1061
  BrandsPage: ResolverTypeWrapper<IBrandsPage>;
@@ -994,8 +1082,12 @@ export type IResolversTypes = {
994
1082
  InvitesFilterInput: IInvitesFilterInput;
995
1083
  InvitesPage: ResolverTypeWrapper<IInvitesPage>;
996
1084
  InvitesSortInput: IInvitesSortInput;
1085
+ Leaderboard: ResolverTypeWrapper<ILeaderboard>;
1086
+ LeaderboardInput: ILeaderboardInput;
1087
+ LeaderboardType: ILeaderboardType;
997
1088
  Location: ResolverTypeWrapper<ILocation>;
998
1089
  LocationType: ILocationType;
1090
+ LoginSource: ILoginSource;
999
1091
  Long: ResolverTypeWrapper<Scalars['Long']>;
1000
1092
  Mutation: ResolverTypeWrapper<{}>;
1001
1093
  NotificationDestination: INotificationDestination;
@@ -1048,14 +1140,15 @@ export type IResolversParentTypes = {
1048
1140
  ActiveInvite: IActiveInvite;
1049
1141
  String: Scalars['String'];
1050
1142
  Int: Scalars['Int'];
1051
- AdminBrand: IAdminBrand;
1143
+ AdminAirdropInput: IAdminAirdropInput;
1144
+ Float: Scalars['Float'];
1052
1145
  Boolean: Scalars['Boolean'];
1146
+ AdminBrand: IAdminBrand;
1053
1147
  AdminCategory: IAdminCategory;
1054
1148
  AdminContactSupport: IAdminContactSupport;
1055
1149
  AdminContentReport: IAdminContentReport;
1056
1150
  AdminFormOpportunity: IAdminFormOpportunity;
1057
1151
  AdminInvestorInquiry: IAdminInvestorInquiry;
1058
- Float: Scalars['Float'];
1059
1152
  AdminInvite: IAdminInvite;
1060
1153
  AdminOpportunity: IAdminOpportunity;
1061
1154
  ID: Scalars['ID'];
@@ -1066,6 +1159,8 @@ export type IResolversParentTypes = {
1066
1159
  AdminReferral: IAdminReferral;
1067
1160
  AdminUser: IAdminUser;
1068
1161
  AdminXp: IAdminXp;
1162
+ AirdropsLeaderboardFilterInput: IAirdropsLeaderboardFilterInput;
1163
+ AirdropsLeaderboardSortInput: IAirdropsLeaderboardSortInput;
1069
1164
  BrandInput: IBrandInput;
1070
1165
  BrandsFilterInput: IBrandsFilterInput;
1071
1166
  BrandsPage: IBrandsPage;
@@ -1091,6 +1186,8 @@ export type IResolversParentTypes = {
1091
1186
  InvitesFilterInput: IInvitesFilterInput;
1092
1187
  InvitesPage: IInvitesPage;
1093
1188
  InvitesSortInput: IInvitesSortInput;
1189
+ Leaderboard: ILeaderboard;
1190
+ LeaderboardInput: ILeaderboardInput;
1094
1191
  Location: ILocation;
1095
1192
  Long: Scalars['Long'];
1096
1193
  Mutation: {};
@@ -1272,6 +1369,8 @@ export type IAdminOpportunityResolvers<ContextType = any, ParentType extends IRe
1272
1369
  notificationDestinations?: Resolver<Maybe<Array<IResolversTypes['NotificationDestination']>>, ParentType, ContextType>;
1273
1370
  type?: Resolver<IResolversTypes['OpportunityType'], ParentType, ContextType>;
1274
1371
  devicePlatforms?: Resolver<Maybe<Array<IResolversTypes['DevicePlatform']>>, ParentType, ContextType>;
1372
+ participants?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1373
+ hidden?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
1275
1374
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1276
1375
  };
1277
1376
  export type IAdminPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminPage'] = IResolversParentTypes['AdminPage']> = {
@@ -1318,6 +1417,7 @@ export type IAdminUserResolvers<ContextType = any, ParentType extends IResolvers
1318
1417
  location?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1319
1418
  userLanguage?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1320
1419
  devicePlatform?: Resolver<Maybe<IResolversTypes['DevicePlatform']>, ParentType, ContextType>;
1420
+ firstVisitSource?: Resolver<Maybe<IResolversTypes['LoginSource']>, ParentType, ContextType>;
1321
1421
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1322
1422
  };
1323
1423
  export type IAdminXpResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminXp'] = IResolversParentTypes['AdminXp']> = {
@@ -1380,6 +1480,17 @@ export type IInvitesPageResolvers<ContextType = any, ParentType extends IResolve
1380
1480
  nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
1381
1481
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1382
1482
  };
1483
+ export type ILeaderboardResolvers<ContextType = any, ParentType extends IResolversParentTypes['Leaderboard'] = IResolversParentTypes['Leaderboard']> = {
1484
+ type?: Resolver<IResolversTypes['LeaderboardType'], ParentType, ContextType>;
1485
+ accessType?: Resolver<IResolversTypes['AccessType'], ParentType, ContextType>;
1486
+ minRank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
1487
+ maxRank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
1488
+ minXpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1489
+ maxXpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1490
+ geolocations?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
1491
+ hidden?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
1492
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1493
+ };
1383
1494
  export type ILocationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Location'] = IResolversParentTypes['Location']> = {
1384
1495
  name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
1385
1496
  type?: Resolver<IResolversTypes['LocationType'], ParentType, ContextType>;
@@ -1393,6 +1504,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
1393
1504
  removeInviteCode?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveInviteCodeArgs, 'inviteCode'>>;
1394
1505
  addInviteCodes?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddInviteCodesArgs, 'userId' | 'codesNum'>>;
1395
1506
  updateInviteCodeUsagesLimit?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateInviteCodeUsagesLimitArgs, 'code' | 'usagesLimit'>>;
1507
+ updateLeaderboard?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateLeaderboardArgs, 'type' | 'input'>>;
1396
1508
  updateOpportunityPushStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityPushStatusArgs, 'opportunityId' | 'isActive'>>;
1397
1509
  createBrand?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateBrandArgs, 'brand'>>;
1398
1510
  updateBrand?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateBrandArgs, 'id' | 'input'>>;
@@ -1404,6 +1516,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
1404
1516
  updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'id' | 'input'>>;
1405
1517
  updateOpportunityArchivedStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArchivedStatusArgs, 'id' | 'isArchived'>>;
1406
1518
  triggerOpportunityNotification?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationTriggerOpportunityNotificationArgs, 'opportunityId'>>;
1519
+ updateAirdrop?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateAirdropArgs, 'id' | 'input'>>;
1407
1520
  createReferralType?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType, RequireFields<IMutationCreateReferralTypeArgs, 'input'>>;
1408
1521
  updateReferralType?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateReferralTypeArgs, 'id' | 'input'>>;
1409
1522
  updateReferralTypeArchivedStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateReferralTypeArchivedStatusArgs, 'id' | 'archived'>>;
@@ -1436,6 +1549,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
1436
1549
  fetchRegistrationInvitePage?: Resolver<IResolversTypes['RegistrationInvitePage'], ParentType, ContextType, RequireFields<IQueryFetchRegistrationInvitePageArgs, 'filter' | 'sort' | 'page'>>;
1437
1550
  fetchAdminInvitesPage?: Resolver<IResolversTypes['InvitesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminInvitesPageArgs, 'filter' | 'sort' | 'page'>>;
1438
1551
  checkInviteCode?: Resolver<IResolversTypes['CheckInviteCodeData'], ParentType, ContextType, RequireFields<IQueryCheckInviteCodeArgs, 'code'>>;
1552
+ fetchLeaderboard?: Resolver<IResolversTypes['Leaderboard'], ParentType, ContextType, RequireFields<IQueryFetchLeaderboardArgs, 'type'>>;
1439
1553
  fetchLocations?: Resolver<Maybe<Array<Maybe<IResolversTypes['Location']>>>, ParentType, ContextType, RequireFields<IQueryFetchLocationsArgs, 'term'>>;
1440
1554
  fetchAllCountries?: Resolver<Array<IResolversTypes['Country']>, ParentType, ContextType>;
1441
1555
  fetchAdminOpportunitiesPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminOpportunitiesPageArgs, 'filter' | 'sort' | 'page'>>;
@@ -1444,6 +1558,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
1444
1558
  fetchAdminBrands?: Resolver<Array<IResolversTypes['AdminBrand']>, ParentType, ContextType>;
1445
1559
  fetchAdminBrandsPage?: Resolver<IResolversTypes['BrandsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminBrandsPageArgs, 'filter' | 'sort' | 'page'>>;
1446
1560
  fetchBlockchains?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
1561
+ fetchAdminAirdropsPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminAirdropsPageArgs, 'filter' | 'page'>>;
1447
1562
  fetchAdminReferralsPage?: Resolver<IResolversTypes['ReferralsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminReferralsPageArgs, 'filter' | 'sort' | 'page'>>;
1448
1563
  fetchUnarchivedReferralTypes?: Resolver<Array<IResolversTypes['ReferralType']>, ParentType, ContextType>;
1449
1564
  fetchReferralTypesPage?: Resolver<IResolversTypes['ReferralTypesPage'], ParentType, ContextType, RequireFields<IQueryFetchReferralTypesPageArgs, 'filter' | 'sort' | 'page'>>;
@@ -1574,6 +1689,7 @@ export type IResolvers<ContextType = any> = {
1574
1689
  FormOpportunityPage?: IFormOpportunityPageResolvers<ContextType>;
1575
1690
  InvestorInquiryPage?: IInvestorInquiryPageResolvers<ContextType>;
1576
1691
  InvitesPage?: IInvitesPageResolvers<ContextType>;
1692
+ Leaderboard?: ILeaderboardResolvers<ContextType>;
1577
1693
  Location?: ILocationResolvers<ContextType>;
1578
1694
  Long?: GraphQLScalarType;
1579
1695
  Mutation?: IMutationResolvers<ContextType>;
@@ -1673,6 +1789,12 @@ export type IRemoveInviteCodeMutationVariables = Exact<{
1673
1789
  inviteCode: Scalars['String'];
1674
1790
  }>;
1675
1791
  export type IRemoveInviteCodeMutation = Pick<IMutation, 'removeInviteCode'>;
1792
+ export type IUpdateAirdropMutationVariables = Exact<{
1793
+ id: Scalars['ID'];
1794
+ input: IAdminAirdropInput;
1795
+ file?: Maybe<Scalars['Upload']>;
1796
+ }>;
1797
+ export type IUpdateAirdropMutation = Pick<IMutation, 'updateAirdrop'>;
1676
1798
  export type IUpdateBrandMutationVariables = Exact<{
1677
1799
  id: Scalars['ID'];
1678
1800
  input: IBrandInput;
@@ -1694,6 +1816,11 @@ export type IUpdateCategoryArchivedStatusMutationVariables = Exact<{
1694
1816
  isArchived: Scalars['Boolean'];
1695
1817
  }>;
1696
1818
  export type IUpdateCategoryArchivedStatusMutation = Pick<IMutation, 'updateCategoryArchivedStatus'>;
1819
+ export type IUpdateLeaderboardMutationVariables = Exact<{
1820
+ type: ILeaderboardType;
1821
+ input: ILeaderboardInput;
1822
+ }>;
1823
+ export type IUpdateLeaderboardMutation = Pick<IMutation, 'updateLeaderboard'>;
1697
1824
  export type IUpdateOpportunityMutationVariables = Exact<{
1698
1825
  id: Scalars['ID'];
1699
1826
  input: IAdminOpportunityInput;
@@ -1827,6 +1954,17 @@ export type IFetchUserFeedbackPageQuery = {
1827
1954
  nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>>;
1828
1955
  };
1829
1956
  };
1957
+ export type IFetchAdminAirdropsPageQueryVariables = Exact<{
1958
+ filter: IAirdropsLeaderboardFilterInput;
1959
+ sort: IAirdropsLeaderboardSortInput;
1960
+ page: IAdminPageInput;
1961
+ }>;
1962
+ export type IFetchAdminAirdropsPageQuery = {
1963
+ fetchAdminAirdropsPage: {
1964
+ 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' | 'addedBy' | 'archived' | 'blockchains' | 'geolocations' | 'notificationDestinations' | 'type' | 'devicePlatforms' | 'participants' | 'hidden'>>;
1965
+ nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>>;
1966
+ };
1967
+ };
1830
1968
  export type IFetchAdminBrandsQueryVariables = Exact<{
1831
1969
  [key: string]: never;
1832
1970
  }>;
@@ -1910,7 +2048,7 @@ export type IFetchAdminUsersPageQueryVariables = Exact<{
1910
2048
  }>;
1911
2049
  export type IFetchAdminUsersPageQuery = {
1912
2050
  fetchAdminUsersPage: {
1913
- users: Array<(Pick<IAdminUser, 'userId' | 'username' | 'connectedBlockchains' | 'isActive' | 'createdAt' | 'topInterests' | 'walletsValue' | 'xpLevel' | 'ludoRank' | 'inviterId' | 'ip' | 'location' | 'userLanguage' | 'devicePlatform'> & {
2051
+ users: Array<(Pick<IAdminUser, 'userId' | 'username' | 'connectedBlockchains' | 'isActive' | 'createdAt' | 'topInterests' | 'walletsValue' | 'xpLevel' | 'ludoRank' | 'inviterId' | 'ip' | 'location' | 'userLanguage' | 'devicePlatform' | 'firstVisitSource'> & {
1914
2052
  wallets?: Maybe<Array<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>>;
1915
2053
  })>;
1916
2054
  nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements' | 'token'>>;
@@ -1939,6 +2077,12 @@ export type IFetchBlockchainsQueryVariables = Exact<{
1939
2077
  [key: string]: never;
1940
2078
  }>;
1941
2079
  export type IFetchBlockchainsQuery = Pick<IQuery, 'fetchBlockchains'>;
2080
+ export type IFetchLeaderboardQueryVariables = Exact<{
2081
+ type: ILeaderboardType;
2082
+ }>;
2083
+ export type IFetchLeaderboardQuery = {
2084
+ fetchLeaderboard: Pick<ILeaderboard, 'type' | 'accessType' | 'minRank' | 'maxRank' | 'minXpLevel' | 'maxXpLevel' | 'geolocations' | 'hidden'>;
2085
+ };
1942
2086
  export declare const CreateReferralTypeDocument: Apollo.DocumentNode;
1943
2087
  export type ICreateReferralTypeMutationFn = Apollo.MutationFunction<ICreateReferralTypeMutation, ICreateReferralTypeMutationVariables>;
1944
2088
  /**
@@ -2338,6 +2482,35 @@ export declare function useRemoveInviteCodeMutation(baseOptions?: Apollo.Mutatio
2338
2482
  export type RemoveInviteCodeMutationHookResult = ReturnType<typeof useRemoveInviteCodeMutation>;
2339
2483
  export type RemoveInviteCodeMutationResult = Apollo.MutationResult<IRemoveInviteCodeMutation>;
2340
2484
  export type RemoveInviteCodeMutationOptions = Apollo.BaseMutationOptions<IRemoveInviteCodeMutation, IRemoveInviteCodeMutationVariables>;
2485
+ export declare const UpdateAirdropDocument: Apollo.DocumentNode;
2486
+ export type IUpdateAirdropMutationFn = Apollo.MutationFunction<IUpdateAirdropMutation, IUpdateAirdropMutationVariables>;
2487
+ /**
2488
+ * __useUpdateAirdropMutation__
2489
+ *
2490
+ * To run a mutation, you first call `useUpdateAirdropMutation` within a React component and pass it any options that fit your needs.
2491
+ * When your component renders, `useUpdateAirdropMutation` returns a tuple that includes:
2492
+ * - A mutate function that you can call at any time to execute the mutation
2493
+ * - An object with fields that represent the current status of the mutation's execution
2494
+ *
2495
+ * @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;
2496
+ *
2497
+ * @example
2498
+ * const [updateAirdropMutation, { data, loading, error }] = useUpdateAirdropMutation({
2499
+ * variables: {
2500
+ * id: // value for 'id'
2501
+ * input: // value for 'input'
2502
+ * file: // value for 'file'
2503
+ * },
2504
+ * });
2505
+ */
2506
+ export declare function useUpdateAirdropMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateAirdropMutation, IUpdateAirdropMutationVariables>): Apollo.MutationTuple<IUpdateAirdropMutation, Exact<{
2507
+ id: string;
2508
+ input: IAdminAirdropInput;
2509
+ file?: any;
2510
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2511
+ export type UpdateAirdropMutationHookResult = ReturnType<typeof useUpdateAirdropMutation>;
2512
+ export type UpdateAirdropMutationResult = Apollo.MutationResult<IUpdateAirdropMutation>;
2513
+ export type UpdateAirdropMutationOptions = Apollo.BaseMutationOptions<IUpdateAirdropMutation, IUpdateAirdropMutationVariables>;
2341
2514
  export declare const UpdateBrandDocument: Apollo.DocumentNode;
2342
2515
  export type IUpdateBrandMutationFn = Apollo.MutationFunction<IUpdateBrandMutation, IUpdateBrandMutationVariables>;
2343
2516
  /**
@@ -2448,6 +2621,33 @@ export declare function useUpdateCategoryArchivedStatusMutation(baseOptions?: Ap
2448
2621
  export type UpdateCategoryArchivedStatusMutationHookResult = ReturnType<typeof useUpdateCategoryArchivedStatusMutation>;
2449
2622
  export type UpdateCategoryArchivedStatusMutationResult = Apollo.MutationResult<IUpdateCategoryArchivedStatusMutation>;
2450
2623
  export type UpdateCategoryArchivedStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateCategoryArchivedStatusMutation, IUpdateCategoryArchivedStatusMutationVariables>;
2624
+ export declare const UpdateLeaderboardDocument: Apollo.DocumentNode;
2625
+ export type IUpdateLeaderboardMutationFn = Apollo.MutationFunction<IUpdateLeaderboardMutation, IUpdateLeaderboardMutationVariables>;
2626
+ /**
2627
+ * __useUpdateLeaderboardMutation__
2628
+ *
2629
+ * To run a mutation, you first call `useUpdateLeaderboardMutation` within a React component and pass it any options that fit your needs.
2630
+ * When your component renders, `useUpdateLeaderboardMutation` returns a tuple that includes:
2631
+ * - A mutate function that you can call at any time to execute the mutation
2632
+ * - An object with fields that represent the current status of the mutation's execution
2633
+ *
2634
+ * @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;
2635
+ *
2636
+ * @example
2637
+ * const [updateLeaderboardMutation, { data, loading, error }] = useUpdateLeaderboardMutation({
2638
+ * variables: {
2639
+ * type: // value for 'type'
2640
+ * input: // value for 'input'
2641
+ * },
2642
+ * });
2643
+ */
2644
+ export declare function useUpdateLeaderboardMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateLeaderboardMutation, IUpdateLeaderboardMutationVariables>): Apollo.MutationTuple<IUpdateLeaderboardMutation, Exact<{
2645
+ type: ILeaderboardType;
2646
+ input: ILeaderboardInput;
2647
+ }>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
2648
+ export type UpdateLeaderboardMutationHookResult = ReturnType<typeof useUpdateLeaderboardMutation>;
2649
+ export type UpdateLeaderboardMutationResult = Apollo.MutationResult<IUpdateLeaderboardMutation>;
2650
+ export type UpdateLeaderboardMutationOptions = Apollo.BaseMutationOptions<IUpdateLeaderboardMutation, IUpdateLeaderboardMutationVariables>;
2451
2651
  export declare const UpdateOpportunityDocument: Apollo.DocumentNode;
2452
2652
  export type IUpdateOpportunityMutationFn = Apollo.MutationFunction<IUpdateOpportunityMutation, IUpdateOpportunityMutationVariables>;
2453
2653
  /**
@@ -2895,6 +3095,38 @@ export declare function useFetchUserFeedbackPageLazyQuery(baseOptions?: Apollo.L
2895
3095
  export type FetchUserFeedbackPageQueryHookResult = ReturnType<typeof useFetchUserFeedbackPageQuery>;
2896
3096
  export type FetchUserFeedbackPageLazyQueryHookResult = ReturnType<typeof useFetchUserFeedbackPageLazyQuery>;
2897
3097
  export type FetchUserFeedbackPageQueryResult = Apollo.QueryResult<IFetchUserFeedbackPageQuery, IFetchUserFeedbackPageQueryVariables>;
3098
+ export declare const FetchAdminAirdropsPageDocument: Apollo.DocumentNode;
3099
+ /**
3100
+ * __useFetchAdminAirdropsPageQuery__
3101
+ *
3102
+ * To run a query within a React component, call `useFetchAdminAirdropsPageQuery` and pass it any options that fit your needs.
3103
+ * When your component renders, `useFetchAdminAirdropsPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
3104
+ * you can use to render your UI.
3105
+ *
3106
+ * @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;
3107
+ *
3108
+ * @example
3109
+ * const { data, loading, error } = useFetchAdminAirdropsPageQuery({
3110
+ * variables: {
3111
+ * filter: // value for 'filter'
3112
+ * sort: // value for 'sort'
3113
+ * page: // value for 'page'
3114
+ * },
3115
+ * });
3116
+ */
3117
+ export declare function useFetchAdminAirdropsPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchAdminAirdropsPageQuery, IFetchAdminAirdropsPageQueryVariables>): Apollo.QueryResult<IFetchAdminAirdropsPageQuery, Exact<{
3118
+ filter: IAirdropsLeaderboardFilterInput;
3119
+ sort: IAirdropsLeaderboardSortInput;
3120
+ page: IAdminPageInput;
3121
+ }>>;
3122
+ export declare function useFetchAdminAirdropsPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminAirdropsPageQuery, IFetchAdminAirdropsPageQueryVariables>): Apollo.LazyQueryResultTuple<IFetchAdminAirdropsPageQuery, Exact<{
3123
+ filter: IAirdropsLeaderboardFilterInput;
3124
+ sort: IAirdropsLeaderboardSortInput;
3125
+ page: IAdminPageInput;
3126
+ }>>;
3127
+ export type FetchAdminAirdropsPageQueryHookResult = ReturnType<typeof useFetchAdminAirdropsPageQuery>;
3128
+ export type FetchAdminAirdropsPageLazyQueryHookResult = ReturnType<typeof useFetchAdminAirdropsPageLazyQuery>;
3129
+ export type FetchAdminAirdropsPageQueryResult = Apollo.QueryResult<IFetchAdminAirdropsPageQuery, IFetchAdminAirdropsPageQueryVariables>;
2898
3130
  export declare const FetchAdminBrandsDocument: Apollo.DocumentNode;
2899
3131
  /**
2900
3132
  * __useFetchAdminBrandsQuery__
@@ -3219,3 +3451,29 @@ export declare function useFetchBlockchainsLazyQuery(baseOptions?: Apollo.LazyQu
3219
3451
  export type FetchBlockchainsQueryHookResult = ReturnType<typeof useFetchBlockchainsQuery>;
3220
3452
  export type FetchBlockchainsLazyQueryHookResult = ReturnType<typeof useFetchBlockchainsLazyQuery>;
3221
3453
  export type FetchBlockchainsQueryResult = Apollo.QueryResult<IFetchBlockchainsQuery, IFetchBlockchainsQueryVariables>;
3454
+ export declare const FetchLeaderboardDocument: Apollo.DocumentNode;
3455
+ /**
3456
+ * __useFetchLeaderboardQuery__
3457
+ *
3458
+ * To run a query within a React component, call `useFetchLeaderboardQuery` and pass it any options that fit your needs.
3459
+ * When your component renders, `useFetchLeaderboardQuery` returns an object from Apollo Client that contains loading, error, and data properties
3460
+ * you can use to render your UI.
3461
+ *
3462
+ * @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;
3463
+ *
3464
+ * @example
3465
+ * const { data, loading, error } = useFetchLeaderboardQuery({
3466
+ * variables: {
3467
+ * type: // value for 'type'
3468
+ * },
3469
+ * });
3470
+ */
3471
+ export declare function useFetchLeaderboardQuery(baseOptions: Apollo.QueryHookOptions<IFetchLeaderboardQuery, IFetchLeaderboardQueryVariables>): Apollo.QueryResult<IFetchLeaderboardQuery, Exact<{
3472
+ type: ILeaderboardType;
3473
+ }>>;
3474
+ export declare function useFetchLeaderboardLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchLeaderboardQuery, IFetchLeaderboardQueryVariables>): Apollo.LazyQueryResultTuple<IFetchLeaderboardQuery, Exact<{
3475
+ type: ILeaderboardType;
3476
+ }>>;
3477
+ export type FetchLeaderboardQueryHookResult = ReturnType<typeof useFetchLeaderboardQuery>;
3478
+ export type FetchLeaderboardLazyQueryHookResult = ReturnType<typeof useFetchLeaderboardLazyQuery>;
3479
+ export type FetchLeaderboardQueryResult = Apollo.QueryResult<IFetchLeaderboardQuery, IFetchLeaderboardQueryVariables>;