@ludo.ninja/api 3.0.35 → 3.0.37

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.
@@ -22,6 +22,11 @@ export type Scalars = {
22
22
 
23
23
 
24
24
 
25
+ export enum IAccessType {
26
+ Public = 'PUBLIC',
27
+ Restricted = 'RESTRICTED'
28
+ }
29
+
25
30
  export type IActiveInvite = {
26
31
  inviteCode?: Maybe<Scalars['String']>;
27
32
  createdAt?: Maybe<Scalars['Long']>;
@@ -32,6 +37,18 @@ export type IActiveInvite = {
32
37
  reftypeColor?: Maybe<IReftypeColor>;
33
38
  };
34
39
 
40
+ export type IAdminAirdropInput = {
41
+ name: Scalars['String'];
42
+ minLudoRank?: Maybe<Scalars['Float']>;
43
+ maxLudoRank?: Maybe<Scalars['Float']>;
44
+ minXpLevel?: Maybe<Scalars['Int']>;
45
+ maxXpLevel?: Maybe<Scalars['Int']>;
46
+ geolocations?: Maybe<Array<Scalars['String']>>;
47
+ activeFrom?: Maybe<Scalars['Long']>;
48
+ activeUntil?: Maybe<Scalars['Long']>;
49
+ hidden?: Maybe<Scalars['Boolean']>;
50
+ };
51
+
35
52
  export type IAdminBrand = {
36
53
  id: Scalars['String'];
37
54
  name: Scalars['String'];
@@ -146,6 +163,8 @@ export type IAdminOpportunity = {
146
163
  notificationDestinations?: Maybe<Array<INotificationDestination>>;
147
164
  type: IOpportunityType;
148
165
  devicePlatforms?: Maybe<Array<IDevicePlatform>>;
166
+ participants?: Maybe<Scalars['Int']>;
167
+ hidden?: Maybe<Scalars['Boolean']>;
149
168
  };
150
169
 
151
170
  export type IAdminOpportunityInput = {
@@ -242,6 +261,21 @@ export type IAdminXp = {
242
261
  suggestedOpportunityIds?: Maybe<Array<Scalars['String']>>;
243
262
  };
244
263
 
264
+ export type IAirdropsLeaderboardFilterInput = {
265
+ nameTerm?: Maybe<Scalars['String']>;
266
+ userRank?: Maybe<Scalars['Int']>;
267
+ xpLevel?: Maybe<Scalars['Int']>;
268
+ geolocationTerm?: Maybe<Scalars['String']>;
269
+ activeUntilTimestamp?: Maybe<Scalars['Long']>;
270
+ activeFromTimestamp?: Maybe<Scalars['Long']>;
271
+ hidden?: Maybe<Scalars['Boolean']>;
272
+ };
273
+
274
+ export type IAirdropsLeaderboardSortInput = {
275
+ sortByDate?: Maybe<ISort>;
276
+ sortByParticipants?: Maybe<ISort>;
277
+ };
278
+
245
279
  export type IBrandInput = {
246
280
  name: Scalars['String'];
247
281
  matchingWords: Array<Scalars['String']>;
@@ -432,6 +466,31 @@ export type IInvitesSortInput = {
432
466
  sortByReferredUsers?: Maybe<ISort>;
433
467
  };
434
468
 
469
+ export type ILeaderboard = {
470
+ type: ILeaderboardType;
471
+ accessType: IAccessType;
472
+ minRank?: Maybe<Scalars['Float']>;
473
+ maxRank?: Maybe<Scalars['Float']>;
474
+ minXpLevel?: Maybe<Scalars['Int']>;
475
+ maxXpLevel?: Maybe<Scalars['Int']>;
476
+ geolocations?: Maybe<Array<Maybe<Scalars['String']>>>;
477
+ hidden: Scalars['Boolean'];
478
+ };
479
+
480
+ export type ILeaderboardInput = {
481
+ accessType: IAccessType;
482
+ minRank?: Maybe<Scalars['Float']>;
483
+ maxRank?: Maybe<Scalars['Float']>;
484
+ minXpLevel?: Maybe<Scalars['Int']>;
485
+ maxXpLevel?: Maybe<Scalars['Int']>;
486
+ geolocations?: Maybe<Array<Maybe<Scalars['String']>>>;
487
+ hidden: Scalars['Boolean'];
488
+ };
489
+
490
+ export enum ILeaderboardType {
491
+ Airdrops = 'AIRDROPS'
492
+ }
493
+
435
494
  export type ILocation = {
436
495
  name: Scalars['String'];
437
496
  type: ILocationType;
@@ -457,6 +516,7 @@ export type IMutation = {
457
516
  removeInviteCode: Scalars['Boolean'];
458
517
  addInviteCodes: Scalars['Boolean'];
459
518
  updateInviteCodeUsagesLimit: Scalars['Boolean'];
519
+ updateLeaderboard: Scalars['Boolean'];
460
520
  updateOpportunityPushStatus: Scalars['Boolean'];
461
521
  createBrand: Scalars['Boolean'];
462
522
  updateBrand: Scalars['Boolean'];
@@ -468,6 +528,7 @@ export type IMutation = {
468
528
  updateOpportunity: Scalars['Boolean'];
469
529
  updateOpportunityArchivedStatus: Scalars['Boolean'];
470
530
  triggerOpportunityNotification: Scalars['Boolean'];
531
+ updateAirdrop: Scalars['Boolean'];
471
532
  createReferralType?: Maybe<Scalars['Boolean']>;
472
533
  updateReferralType: Scalars['Boolean'];
473
534
  updateReferralTypeArchivedStatus: Scalars['Boolean'];
@@ -499,6 +560,12 @@ export type IMutationUpdateInviteCodeUsagesLimitArgs = {
499
560
  };
500
561
 
501
562
 
563
+ export type IMutationUpdateLeaderboardArgs = {
564
+ type: ILeaderboardType;
565
+ input: ILeaderboardInput;
566
+ };
567
+
568
+
502
569
  export type IMutationUpdateOpportunityPushStatusArgs = {
503
570
  opportunityId: Scalars['ID'];
504
571
  isActive: Scalars['Boolean'];
@@ -566,6 +633,13 @@ export type IMutationTriggerOpportunityNotificationArgs = {
566
633
  };
567
634
 
568
635
 
636
+ export type IMutationUpdateAirdropArgs = {
637
+ id: Scalars['ID'];
638
+ input: IAdminAirdropInput;
639
+ file?: Maybe<Scalars['Upload']>;
640
+ };
641
+
642
+
569
643
  export type IMutationCreateReferralTypeArgs = {
570
644
  input: IReferralTypeInput;
571
645
  };
@@ -715,6 +789,7 @@ export type IQuery = {
715
789
  fetchRegistrationInvitePage: IRegistrationInvitePage;
716
790
  fetchAdminInvitesPage: IInvitesPage;
717
791
  checkInviteCode: ICheckInviteCodeData;
792
+ fetchLeaderboard: ILeaderboard;
718
793
  fetchLocations?: Maybe<Array<Maybe<ILocation>>>;
719
794
  fetchAllCountries: Array<ICountry>;
720
795
  fetchAdminOpportunitiesPage: IOpportunitiesPage;
@@ -723,6 +798,7 @@ export type IQuery = {
723
798
  fetchAdminBrands: Array<IAdminBrand>;
724
799
  fetchAdminBrandsPage: IBrandsPage;
725
800
  fetchBlockchains: Array<Scalars['String']>;
801
+ fetchAdminAirdropsPage: IOpportunitiesPage;
726
802
  fetchAdminReferralsPage: IReferralsPage;
727
803
  fetchUnarchivedReferralTypes: Array<IReferralType>;
728
804
  fetchReferralTypesPage: IReferralTypesPage;
@@ -794,6 +870,11 @@ export type IQueryCheckInviteCodeArgs = {
794
870
  };
795
871
 
796
872
 
873
+ export type IQueryFetchLeaderboardArgs = {
874
+ type: ILeaderboardType;
875
+ };
876
+
877
+
797
878
  export type IQueryFetchLocationsArgs = {
798
879
  term: Scalars['String'];
799
880
  };
@@ -820,6 +901,13 @@ export type IQueryFetchAdminBrandsPageArgs = {
820
901
  };
821
902
 
822
903
 
904
+ export type IQueryFetchAdminAirdropsPageArgs = {
905
+ filter: IAirdropsLeaderboardFilterInput;
906
+ sort?: Maybe<IAirdropsLeaderboardSortInput>;
907
+ page: IAdminPageInput;
908
+ };
909
+
910
+
823
911
  export type IQueryFetchAdminReferralsPageArgs = {
824
912
  filter: IReferralsFilterInput;
825
913
  sort: IReferralsSortInput;
@@ -1170,17 +1258,19 @@ export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs
1170
1258
 
1171
1259
  /** Mapping between all available schema types and the resolvers types */
1172
1260
  export type IResolversTypes = {
1261
+ AccessType: IAccessType;
1173
1262
  ActiveInvite: ResolverTypeWrapper<IActiveInvite>;
1174
1263
  String: ResolverTypeWrapper<Scalars['String']>;
1175
1264
  Int: ResolverTypeWrapper<Scalars['Int']>;
1176
- AdminBrand: ResolverTypeWrapper<IAdminBrand>;
1265
+ AdminAirdropInput: IAdminAirdropInput;
1266
+ Float: ResolverTypeWrapper<Scalars['Float']>;
1177
1267
  Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
1268
+ AdminBrand: ResolverTypeWrapper<IAdminBrand>;
1178
1269
  AdminCategory: ResolverTypeWrapper<IAdminCategory>;
1179
1270
  AdminContactSupport: ResolverTypeWrapper<IAdminContactSupport>;
1180
1271
  AdminContentReport: ResolverTypeWrapper<IAdminContentReport>;
1181
1272
  AdminFormOpportunity: ResolverTypeWrapper<IAdminFormOpportunity>;
1182
1273
  AdminInvestorInquiry: ResolverTypeWrapper<IAdminInvestorInquiry>;
1183
- Float: ResolverTypeWrapper<Scalars['Float']>;
1184
1274
  AdminInvite: ResolverTypeWrapper<IAdminInvite>;
1185
1275
  AdminOpportunity: ResolverTypeWrapper<IAdminOpportunity>;
1186
1276
  ID: ResolverTypeWrapper<Scalars['ID']>;
@@ -1191,6 +1281,8 @@ export type IResolversTypes = {
1191
1281
  AdminReferral: ResolverTypeWrapper<IAdminReferral>;
1192
1282
  AdminUser: ResolverTypeWrapper<IAdminUser>;
1193
1283
  AdminXp: ResolverTypeWrapper<IAdminXp>;
1284
+ AirdropsLeaderboardFilterInput: IAirdropsLeaderboardFilterInput;
1285
+ AirdropsLeaderboardSortInput: IAirdropsLeaderboardSortInput;
1194
1286
  BrandInput: IBrandInput;
1195
1287
  BrandsFilterInput: IBrandsFilterInput;
1196
1288
  BrandsPage: ResolverTypeWrapper<IBrandsPage>;
@@ -1217,6 +1309,9 @@ export type IResolversTypes = {
1217
1309
  InvitesFilterInput: IInvitesFilterInput;
1218
1310
  InvitesPage: ResolverTypeWrapper<IInvitesPage>;
1219
1311
  InvitesSortInput: IInvitesSortInput;
1312
+ Leaderboard: ResolverTypeWrapper<ILeaderboard>;
1313
+ LeaderboardInput: ILeaderboardInput;
1314
+ LeaderboardType: ILeaderboardType;
1220
1315
  Location: ResolverTypeWrapper<ILocation>;
1221
1316
  LocationType: ILocationType;
1222
1317
  LoginSource: ILoginSource;
@@ -1273,14 +1368,15 @@ export type IResolversParentTypes = {
1273
1368
  ActiveInvite: IActiveInvite;
1274
1369
  String: Scalars['String'];
1275
1370
  Int: Scalars['Int'];
1276
- AdminBrand: IAdminBrand;
1371
+ AdminAirdropInput: IAdminAirdropInput;
1372
+ Float: Scalars['Float'];
1277
1373
  Boolean: Scalars['Boolean'];
1374
+ AdminBrand: IAdminBrand;
1278
1375
  AdminCategory: IAdminCategory;
1279
1376
  AdminContactSupport: IAdminContactSupport;
1280
1377
  AdminContentReport: IAdminContentReport;
1281
1378
  AdminFormOpportunity: IAdminFormOpportunity;
1282
1379
  AdminInvestorInquiry: IAdminInvestorInquiry;
1283
- Float: Scalars['Float'];
1284
1380
  AdminInvite: IAdminInvite;
1285
1381
  AdminOpportunity: IAdminOpportunity;
1286
1382
  ID: Scalars['ID'];
@@ -1291,6 +1387,8 @@ export type IResolversParentTypes = {
1291
1387
  AdminReferral: IAdminReferral;
1292
1388
  AdminUser: IAdminUser;
1293
1389
  AdminXp: IAdminXp;
1390
+ AirdropsLeaderboardFilterInput: IAirdropsLeaderboardFilterInput;
1391
+ AirdropsLeaderboardSortInput: IAirdropsLeaderboardSortInput;
1294
1392
  BrandInput: IBrandInput;
1295
1393
  BrandsFilterInput: IBrandsFilterInput;
1296
1394
  BrandsPage: IBrandsPage;
@@ -1316,6 +1414,8 @@ export type IResolversParentTypes = {
1316
1414
  InvitesFilterInput: IInvitesFilterInput;
1317
1415
  InvitesPage: IInvitesPage;
1318
1416
  InvitesSortInput: IInvitesSortInput;
1417
+ Leaderboard: ILeaderboard;
1418
+ LeaderboardInput: ILeaderboardInput;
1319
1419
  Location: ILocation;
1320
1420
  Long: Scalars['Long'];
1321
1421
  Mutation: {};
@@ -1512,6 +1612,8 @@ export type IAdminOpportunityResolvers<ContextType = any, ParentType extends IRe
1512
1612
  notificationDestinations?: Resolver<Maybe<Array<IResolversTypes['NotificationDestination']>>, ParentType, ContextType>;
1513
1613
  type?: Resolver<IResolversTypes['OpportunityType'], ParentType, ContextType>;
1514
1614
  devicePlatforms?: Resolver<Maybe<Array<IResolversTypes['DevicePlatform']>>, ParentType, ContextType>;
1615
+ participants?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1616
+ hidden?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
1515
1617
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1516
1618
  };
1517
1619
 
@@ -1636,6 +1738,18 @@ export type IInvitesPageResolvers<ContextType = any, ParentType extends IResolve
1636
1738
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1637
1739
  };
1638
1740
 
1741
+ export type ILeaderboardResolvers<ContextType = any, ParentType extends IResolversParentTypes['Leaderboard'] = IResolversParentTypes['Leaderboard']> = {
1742
+ type?: Resolver<IResolversTypes['LeaderboardType'], ParentType, ContextType>;
1743
+ accessType?: Resolver<IResolversTypes['AccessType'], ParentType, ContextType>;
1744
+ minRank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
1745
+ maxRank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
1746
+ minXpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1747
+ maxXpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
1748
+ geolocations?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
1749
+ hidden?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
1750
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1751
+ };
1752
+
1639
1753
  export type ILocationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Location'] = IResolversParentTypes['Location']> = {
1640
1754
  name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
1641
1755
  type?: Resolver<IResolversTypes['LocationType'], ParentType, ContextType>;
@@ -1651,6 +1765,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
1651
1765
  removeInviteCode?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveInviteCodeArgs, 'inviteCode'>>;
1652
1766
  addInviteCodes?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddInviteCodesArgs, 'userId' | 'codesNum'>>;
1653
1767
  updateInviteCodeUsagesLimit?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateInviteCodeUsagesLimitArgs, 'code' | 'usagesLimit'>>;
1768
+ updateLeaderboard?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateLeaderboardArgs, 'type' | 'input'>>;
1654
1769
  updateOpportunityPushStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityPushStatusArgs, 'opportunityId' | 'isActive'>>;
1655
1770
  createBrand?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateBrandArgs, 'brand'>>;
1656
1771
  updateBrand?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateBrandArgs, 'id' | 'input'>>;
@@ -1662,6 +1777,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
1662
1777
  updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'id' | 'input'>>;
1663
1778
  updateOpportunityArchivedStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArchivedStatusArgs, 'id' | 'isArchived'>>;
1664
1779
  triggerOpportunityNotification?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationTriggerOpportunityNotificationArgs, 'opportunityId'>>;
1780
+ updateAirdrop?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateAirdropArgs, 'id' | 'input'>>;
1665
1781
  createReferralType?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType, RequireFields<IMutationCreateReferralTypeArgs, 'input'>>;
1666
1782
  updateReferralType?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateReferralTypeArgs, 'id' | 'input'>>;
1667
1783
  updateReferralTypeArchivedStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateReferralTypeArchivedStatusArgs, 'id' | 'archived'>>;
@@ -1697,6 +1813,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
1697
1813
  fetchRegistrationInvitePage?: Resolver<IResolversTypes['RegistrationInvitePage'], ParentType, ContextType, RequireFields<IQueryFetchRegistrationInvitePageArgs, 'filter' | 'sort' | 'page'>>;
1698
1814
  fetchAdminInvitesPage?: Resolver<IResolversTypes['InvitesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminInvitesPageArgs, 'filter' | 'sort' | 'page'>>;
1699
1815
  checkInviteCode?: Resolver<IResolversTypes['CheckInviteCodeData'], ParentType, ContextType, RequireFields<IQueryCheckInviteCodeArgs, 'code'>>;
1816
+ fetchLeaderboard?: Resolver<IResolversTypes['Leaderboard'], ParentType, ContextType, RequireFields<IQueryFetchLeaderboardArgs, 'type'>>;
1700
1817
  fetchLocations?: Resolver<Maybe<Array<Maybe<IResolversTypes['Location']>>>, ParentType, ContextType, RequireFields<IQueryFetchLocationsArgs, 'term'>>;
1701
1818
  fetchAllCountries?: Resolver<Array<IResolversTypes['Country']>, ParentType, ContextType>;
1702
1819
  fetchAdminOpportunitiesPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminOpportunitiesPageArgs, 'filter' | 'sort' | 'page'>>;
@@ -1705,6 +1822,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
1705
1822
  fetchAdminBrands?: Resolver<Array<IResolversTypes['AdminBrand']>, ParentType, ContextType>;
1706
1823
  fetchAdminBrandsPage?: Resolver<IResolversTypes['BrandsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminBrandsPageArgs, 'filter' | 'sort' | 'page'>>;
1707
1824
  fetchBlockchains?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
1825
+ fetchAdminAirdropsPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminAirdropsPageArgs, 'filter' | 'page'>>;
1708
1826
  fetchAdminReferralsPage?: Resolver<IResolversTypes['ReferralsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminReferralsPageArgs, 'filter' | 'sort' | 'page'>>;
1709
1827
  fetchUnarchivedReferralTypes?: Resolver<Array<IResolversTypes['ReferralType']>, ParentType, ContextType>;
1710
1828
  fetchReferralTypesPage?: Resolver<IResolversTypes['ReferralTypesPage'], ParentType, ContextType, RequireFields<IQueryFetchReferralTypesPageArgs, 'filter' | 'sort' | 'page'>>;
@@ -1851,6 +1969,7 @@ export type IResolvers<ContextType = any> = {
1851
1969
  FormOpportunityPage?: IFormOpportunityPageResolvers<ContextType>;
1852
1970
  InvestorInquiryPage?: IInvestorInquiryPageResolvers<ContextType>;
1853
1971
  InvitesPage?: IInvitesPageResolvers<ContextType>;
1972
+ Leaderboard?: ILeaderboardResolvers<ContextType>;
1854
1973
  Location?: ILocationResolvers<ContextType>;
1855
1974
  Long?: GraphQLScalarType;
1856
1975
  Mutation?: IMutationResolvers<ContextType>;
@@ -1997,6 +2116,15 @@ export type IRemoveInviteCodeMutationVariables = Exact<{
1997
2116
 
1998
2117
  export type IRemoveInviteCodeMutation = Pick<IMutation, 'removeInviteCode'>;
1999
2118
 
2119
+ export type IUpdateAirdropMutationVariables = Exact<{
2120
+ id: Scalars['ID'];
2121
+ input: IAdminAirdropInput;
2122
+ file?: Maybe<Scalars['Upload']>;
2123
+ }>;
2124
+
2125
+
2126
+ export type IUpdateAirdropMutation = Pick<IMutation, 'updateAirdrop'>;
2127
+
2000
2128
  export type IUpdateBrandMutationVariables = Exact<{
2001
2129
  id: Scalars['ID'];
2002
2130
  input: IBrandInput;
@@ -2030,6 +2158,14 @@ export type IUpdateCategoryArchivedStatusMutationVariables = Exact<{
2030
2158
 
2031
2159
  export type IUpdateCategoryArchivedStatusMutation = Pick<IMutation, 'updateCategoryArchivedStatus'>;
2032
2160
 
2161
+ export type IUpdateLeaderboardMutationVariables = Exact<{
2162
+ type: ILeaderboardType;
2163
+ input: ILeaderboardInput;
2164
+ }>;
2165
+
2166
+
2167
+ export type IUpdateLeaderboardMutation = Pick<IMutation, 'updateLeaderboard'>;
2168
+
2033
2169
  export type IUpdateOpportunityMutationVariables = Exact<{
2034
2170
  id: Scalars['ID'];
2035
2171
  input: IAdminOpportunityInput;
@@ -2153,6 +2289,15 @@ export type IFetchUserFeedbackPageQueryVariables = Exact<{
2153
2289
 
2154
2290
  export type IFetchUserFeedbackPageQuery = { fetchUserFeedbackPage: { userFeedbacks: Array<Pick<IUserFeedback, 'userId' | 'id' | 'email' | 'satisfactionScore' | 'missedFeature' | 'howEasyToUseScore' | 'performanceScore' | 'whatToImprove' | 'comments'>>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
2155
2291
 
2292
+ export type IFetchAdminAirdropsPageQueryVariables = Exact<{
2293
+ filter: IAirdropsLeaderboardFilterInput;
2294
+ sort: IAirdropsLeaderboardSortInput;
2295
+ page: IAdminPageInput;
2296
+ }>;
2297
+
2298
+
2299
+ export type IFetchAdminAirdropsPageQuery = { fetchAdminAirdropsPage: { 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'>>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
2300
+
2156
2301
  export type IFetchAdminBrandsQueryVariables = Exact<{ [key: string]: never; }>;
2157
2302
 
2158
2303
 
@@ -2251,6 +2396,13 @@ export type IFetchBlockchainsQueryVariables = Exact<{ [key: string]: never; }>;
2251
2396
 
2252
2397
  export type IFetchBlockchainsQuery = Pick<IQuery, 'fetchBlockchains'>;
2253
2398
 
2399
+ export type IFetchLeaderboardQueryVariables = Exact<{
2400
+ type: ILeaderboardType;
2401
+ }>;
2402
+
2403
+
2404
+ export type IFetchLeaderboardQuery = { fetchLeaderboard: Pick<ILeaderboard, 'type' | 'accessType' | 'minRank' | 'maxRank' | 'minXpLevel' | 'maxXpLevel' | 'geolocations' | 'hidden'> };
2405
+
2254
2406
 
2255
2407
  export const CreateReferralTypeDocument = gql`
2256
2408
  mutation CreateReferralType($input: ReferralTypeInput!) {
@@ -2714,6 +2866,38 @@ export function useRemoveInviteCodeMutation(baseOptions?: Apollo.MutationHookOpt
2714
2866
  export type RemoveInviteCodeMutationHookResult = ReturnType<typeof useRemoveInviteCodeMutation>;
2715
2867
  export type RemoveInviteCodeMutationResult = Apollo.MutationResult<IRemoveInviteCodeMutation>;
2716
2868
  export type RemoveInviteCodeMutationOptions = Apollo.BaseMutationOptions<IRemoveInviteCodeMutation, IRemoveInviteCodeMutationVariables>;
2869
+ export const UpdateAirdropDocument = gql`
2870
+ mutation UpdateAirdrop($id: ID!, $input: AdminAirdropInput!, $file: Upload) {
2871
+ updateAirdrop(id: $id, file: $file, input: $input)
2872
+ }
2873
+ `;
2874
+ export type IUpdateAirdropMutationFn = Apollo.MutationFunction<IUpdateAirdropMutation, IUpdateAirdropMutationVariables>;
2875
+
2876
+ /**
2877
+ * __useUpdateAirdropMutation__
2878
+ *
2879
+ * To run a mutation, you first call `useUpdateAirdropMutation` within a React component and pass it any options that fit your needs.
2880
+ * When your component renders, `useUpdateAirdropMutation` returns a tuple that includes:
2881
+ * - A mutate function that you can call at any time to execute the mutation
2882
+ * - An object with fields that represent the current status of the mutation's execution
2883
+ *
2884
+ * @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;
2885
+ *
2886
+ * @example
2887
+ * const [updateAirdropMutation, { data, loading, error }] = useUpdateAirdropMutation({
2888
+ * variables: {
2889
+ * id: // value for 'id'
2890
+ * input: // value for 'input'
2891
+ * file: // value for 'file'
2892
+ * },
2893
+ * });
2894
+ */
2895
+ export function useUpdateAirdropMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateAirdropMutation, IUpdateAirdropMutationVariables>) {
2896
+ return Apollo.useMutation<IUpdateAirdropMutation, IUpdateAirdropMutationVariables>(UpdateAirdropDocument, baseOptions);
2897
+ }
2898
+ export type UpdateAirdropMutationHookResult = ReturnType<typeof useUpdateAirdropMutation>;
2899
+ export type UpdateAirdropMutationResult = Apollo.MutationResult<IUpdateAirdropMutation>;
2900
+ export type UpdateAirdropMutationOptions = Apollo.BaseMutationOptions<IUpdateAirdropMutation, IUpdateAirdropMutationVariables>;
2717
2901
  export const UpdateBrandDocument = gql`
2718
2902
  mutation updateBrand($id: ID!, $input: BrandInput!, $file: Upload) {
2719
2903
  updateBrand(id: $id, file: $file, input: $input)
@@ -2839,6 +3023,37 @@ export function useUpdateCategoryArchivedStatusMutation(baseOptions?: Apollo.Mut
2839
3023
  export type UpdateCategoryArchivedStatusMutationHookResult = ReturnType<typeof useUpdateCategoryArchivedStatusMutation>;
2840
3024
  export type UpdateCategoryArchivedStatusMutationResult = Apollo.MutationResult<IUpdateCategoryArchivedStatusMutation>;
2841
3025
  export type UpdateCategoryArchivedStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateCategoryArchivedStatusMutation, IUpdateCategoryArchivedStatusMutationVariables>;
3026
+ export const UpdateLeaderboardDocument = gql`
3027
+ mutation UpdateLeaderboard($type: LeaderboardType!, $input: LeaderboardInput!) {
3028
+ updateLeaderboard(type: $type, input: $input)
3029
+ }
3030
+ `;
3031
+ export type IUpdateLeaderboardMutationFn = Apollo.MutationFunction<IUpdateLeaderboardMutation, IUpdateLeaderboardMutationVariables>;
3032
+
3033
+ /**
3034
+ * __useUpdateLeaderboardMutation__
3035
+ *
3036
+ * To run a mutation, you first call `useUpdateLeaderboardMutation` within a React component and pass it any options that fit your needs.
3037
+ * When your component renders, `useUpdateLeaderboardMutation` returns a tuple that includes:
3038
+ * - A mutate function that you can call at any time to execute the mutation
3039
+ * - An object with fields that represent the current status of the mutation's execution
3040
+ *
3041
+ * @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;
3042
+ *
3043
+ * @example
3044
+ * const [updateLeaderboardMutation, { data, loading, error }] = useUpdateLeaderboardMutation({
3045
+ * variables: {
3046
+ * type: // value for 'type'
3047
+ * input: // value for 'input'
3048
+ * },
3049
+ * });
3050
+ */
3051
+ export function useUpdateLeaderboardMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateLeaderboardMutation, IUpdateLeaderboardMutationVariables>) {
3052
+ return Apollo.useMutation<IUpdateLeaderboardMutation, IUpdateLeaderboardMutationVariables>(UpdateLeaderboardDocument, baseOptions);
3053
+ }
3054
+ export type UpdateLeaderboardMutationHookResult = ReturnType<typeof useUpdateLeaderboardMutation>;
3055
+ export type UpdateLeaderboardMutationResult = Apollo.MutationResult<IUpdateLeaderboardMutation>;
3056
+ export type UpdateLeaderboardMutationOptions = Apollo.BaseMutationOptions<IUpdateLeaderboardMutation, IUpdateLeaderboardMutationVariables>;
2842
3057
  export const UpdateOpportunityDocument = gql`
2843
3058
  mutation updateOpportunity($id: ID!, $input: AdminOpportunityInput!, $file: Upload) {
2844
3059
  updateOpportunity(id: $id, file: $file, input: $input)
@@ -3497,6 +3712,79 @@ export function useFetchUserFeedbackPageLazyQuery(baseOptions?: Apollo.LazyQuery
3497
3712
  export type FetchUserFeedbackPageQueryHookResult = ReturnType<typeof useFetchUserFeedbackPageQuery>;
3498
3713
  export type FetchUserFeedbackPageLazyQueryHookResult = ReturnType<typeof useFetchUserFeedbackPageLazyQuery>;
3499
3714
  export type FetchUserFeedbackPageQueryResult = Apollo.QueryResult<IFetchUserFeedbackPageQuery, IFetchUserFeedbackPageQueryVariables>;
3715
+ export const FetchAdminAirdropsPageDocument = gql`
3716
+ query FetchAdminAirdropsPage($filter: AirdropsLeaderboardFilterInput!, $sort: AirdropsLeaderboardSortInput!, $page: AdminPageInput!) {
3717
+ fetchAdminAirdropsPage(filter: $filter, sort: $sort, page: $page) {
3718
+ opportunities {
3719
+ opportunityId
3720
+ name
3721
+ brandName
3722
+ industry
3723
+ category
3724
+ ludoUrl
3725
+ projectUrl
3726
+ pushNotificationsEnabled
3727
+ status
3728
+ media
3729
+ description
3730
+ activeFrom
3731
+ activeUntil
3732
+ minXpLevel
3733
+ maxXpLevel
3734
+ minLudoRank
3735
+ maxLudoRank
3736
+ minWalletValue
3737
+ maxWalletValue
3738
+ clicks
3739
+ views
3740
+ addedBy
3741
+ archived
3742
+ blockchains
3743
+ geolocations
3744
+ notificationDestinations
3745
+ type
3746
+ devicePlatforms
3747
+ participants
3748
+ hidden
3749
+ }
3750
+ nextPage {
3751
+ elements
3752
+ lastNum
3753
+ num
3754
+ size
3755
+ token
3756
+ }
3757
+ }
3758
+ }
3759
+ `;
3760
+
3761
+ /**
3762
+ * __useFetchAdminAirdropsPageQuery__
3763
+ *
3764
+ * To run a query within a React component, call `useFetchAdminAirdropsPageQuery` and pass it any options that fit your needs.
3765
+ * When your component renders, `useFetchAdminAirdropsPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
3766
+ * you can use to render your UI.
3767
+ *
3768
+ * @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;
3769
+ *
3770
+ * @example
3771
+ * const { data, loading, error } = useFetchAdminAirdropsPageQuery({
3772
+ * variables: {
3773
+ * filter: // value for 'filter'
3774
+ * sort: // value for 'sort'
3775
+ * page: // value for 'page'
3776
+ * },
3777
+ * });
3778
+ */
3779
+ export function useFetchAdminAirdropsPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchAdminAirdropsPageQuery, IFetchAdminAirdropsPageQueryVariables>) {
3780
+ return Apollo.useQuery<IFetchAdminAirdropsPageQuery, IFetchAdminAirdropsPageQueryVariables>(FetchAdminAirdropsPageDocument, baseOptions);
3781
+ }
3782
+ export function useFetchAdminAirdropsPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminAirdropsPageQuery, IFetchAdminAirdropsPageQueryVariables>) {
3783
+ return Apollo.useLazyQuery<IFetchAdminAirdropsPageQuery, IFetchAdminAirdropsPageQueryVariables>(FetchAdminAirdropsPageDocument, baseOptions);
3784
+ }
3785
+ export type FetchAdminAirdropsPageQueryHookResult = ReturnType<typeof useFetchAdminAirdropsPageQuery>;
3786
+ export type FetchAdminAirdropsPageLazyQueryHookResult = ReturnType<typeof useFetchAdminAirdropsPageLazyQuery>;
3787
+ export type FetchAdminAirdropsPageQueryResult = Apollo.QueryResult<IFetchAdminAirdropsPageQuery, IFetchAdminAirdropsPageQueryVariables>;
3500
3788
  export const FetchAdminBrandsDocument = gql`
3501
3789
  query FetchAdminBrands {
3502
3790
  fetchAdminBrands {
@@ -4058,4 +4346,44 @@ export function useFetchBlockchainsLazyQuery(baseOptions?: Apollo.LazyQueryHookO
4058
4346
  }
4059
4347
  export type FetchBlockchainsQueryHookResult = ReturnType<typeof useFetchBlockchainsQuery>;
4060
4348
  export type FetchBlockchainsLazyQueryHookResult = ReturnType<typeof useFetchBlockchainsLazyQuery>;
4061
- export type FetchBlockchainsQueryResult = Apollo.QueryResult<IFetchBlockchainsQuery, IFetchBlockchainsQueryVariables>;
4349
+ export type FetchBlockchainsQueryResult = Apollo.QueryResult<IFetchBlockchainsQuery, IFetchBlockchainsQueryVariables>;
4350
+ export const FetchLeaderboardDocument = gql`
4351
+ query FetchLeaderboard($type: LeaderboardType!) {
4352
+ fetchLeaderboard(type: $type) {
4353
+ type
4354
+ accessType
4355
+ minRank
4356
+ maxRank
4357
+ minXpLevel
4358
+ maxXpLevel
4359
+ geolocations
4360
+ hidden
4361
+ }
4362
+ }
4363
+ `;
4364
+
4365
+ /**
4366
+ * __useFetchLeaderboardQuery__
4367
+ *
4368
+ * To run a query within a React component, call `useFetchLeaderboardQuery` and pass it any options that fit your needs.
4369
+ * When your component renders, `useFetchLeaderboardQuery` returns an object from Apollo Client that contains loading, error, and data properties
4370
+ * you can use to render your UI.
4371
+ *
4372
+ * @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;
4373
+ *
4374
+ * @example
4375
+ * const { data, loading, error } = useFetchLeaderboardQuery({
4376
+ * variables: {
4377
+ * type: // value for 'type'
4378
+ * },
4379
+ * });
4380
+ */
4381
+ export function useFetchLeaderboardQuery(baseOptions: Apollo.QueryHookOptions<IFetchLeaderboardQuery, IFetchLeaderboardQueryVariables>) {
4382
+ return Apollo.useQuery<IFetchLeaderboardQuery, IFetchLeaderboardQueryVariables>(FetchLeaderboardDocument, baseOptions);
4383
+ }
4384
+ export function useFetchLeaderboardLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchLeaderboardQuery, IFetchLeaderboardQueryVariables>) {
4385
+ return Apollo.useLazyQuery<IFetchLeaderboardQuery, IFetchLeaderboardQueryVariables>(FetchLeaderboardDocument, baseOptions);
4386
+ }
4387
+ export type FetchLeaderboardQueryHookResult = ReturnType<typeof useFetchLeaderboardQuery>;
4388
+ export type FetchLeaderboardLazyQueryHookResult = ReturnType<typeof useFetchLeaderboardLazyQuery>;
4389
+ export type FetchLeaderboardQueryResult = Apollo.QueryResult<IFetchLeaderboardQuery, IFetchLeaderboardQueryVariables>;