@ludo.ninja/api 3.0.35 → 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.
- package/build/graphql_tools/__generated__/adminHost/schema.d.ts +249 -4
- package/build/graphql_tools/__generated__/adminHost/schema.js +176 -3
- package/build/index.d.ts +49 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/adminHost/schema.ts +333 -5
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -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'];
|
|
@@ -230,6 +247,19 @@ export type IAdminXp = {
|
|
|
230
247
|
connectedWalletsNum?: Maybe<Scalars['Int']>;
|
|
231
248
|
suggestedOpportunityIds?: Maybe<Array<Scalars['String']>>;
|
|
232
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
|
+
};
|
|
233
263
|
export type IBrandInput = {
|
|
234
264
|
name: Scalars['String'];
|
|
235
265
|
matchingWords: Array<Scalars['String']>;
|
|
@@ -394,6 +424,28 @@ export type IInvitesSortInput = {
|
|
|
394
424
|
sortByActiveInvites?: Maybe<ISort>;
|
|
395
425
|
sortByReferredUsers?: Maybe<ISort>;
|
|
396
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
|
+
}
|
|
397
449
|
export type ILocation = {
|
|
398
450
|
name: Scalars['String'];
|
|
399
451
|
type: ILocationType;
|
|
@@ -415,6 +467,7 @@ export type IMutation = {
|
|
|
415
467
|
removeInviteCode: Scalars['Boolean'];
|
|
416
468
|
addInviteCodes: Scalars['Boolean'];
|
|
417
469
|
updateInviteCodeUsagesLimit: Scalars['Boolean'];
|
|
470
|
+
updateLeaderboard: Scalars['Boolean'];
|
|
418
471
|
updateOpportunityPushStatus: Scalars['Boolean'];
|
|
419
472
|
createBrand: Scalars['Boolean'];
|
|
420
473
|
updateBrand: Scalars['Boolean'];
|
|
@@ -426,6 +479,7 @@ export type IMutation = {
|
|
|
426
479
|
updateOpportunity: Scalars['Boolean'];
|
|
427
480
|
updateOpportunityArchivedStatus: Scalars['Boolean'];
|
|
428
481
|
triggerOpportunityNotification: Scalars['Boolean'];
|
|
482
|
+
updateAirdrop: Scalars['Boolean'];
|
|
429
483
|
createReferralType?: Maybe<Scalars['Boolean']>;
|
|
430
484
|
updateReferralType: Scalars['Boolean'];
|
|
431
485
|
updateReferralTypeArchivedStatus: Scalars['Boolean'];
|
|
@@ -449,6 +503,10 @@ export type IMutationUpdateInviteCodeUsagesLimitArgs = {
|
|
|
449
503
|
code: Scalars['String'];
|
|
450
504
|
usagesLimit: Scalars['Int'];
|
|
451
505
|
};
|
|
506
|
+
export type IMutationUpdateLeaderboardArgs = {
|
|
507
|
+
type: ILeaderboardType;
|
|
508
|
+
input: ILeaderboardInput;
|
|
509
|
+
};
|
|
452
510
|
export type IMutationUpdateOpportunityPushStatusArgs = {
|
|
453
511
|
opportunityId: Scalars['ID'];
|
|
454
512
|
isActive: Scalars['Boolean'];
|
|
@@ -494,6 +552,11 @@ export type IMutationUpdateOpportunityArchivedStatusArgs = {
|
|
|
494
552
|
export type IMutationTriggerOpportunityNotificationArgs = {
|
|
495
553
|
opportunityId: Scalars['ID'];
|
|
496
554
|
};
|
|
555
|
+
export type IMutationUpdateAirdropArgs = {
|
|
556
|
+
id: Scalars['ID'];
|
|
557
|
+
input: IAdminAirdropInput;
|
|
558
|
+
file?: Maybe<Scalars['Upload']>;
|
|
559
|
+
};
|
|
497
560
|
export type IMutationCreateReferralTypeArgs = {
|
|
498
561
|
input: IReferralTypeInput;
|
|
499
562
|
};
|
|
@@ -615,6 +678,7 @@ export type IQuery = {
|
|
|
615
678
|
fetchRegistrationInvitePage: IRegistrationInvitePage;
|
|
616
679
|
fetchAdminInvitesPage: IInvitesPage;
|
|
617
680
|
checkInviteCode: ICheckInviteCodeData;
|
|
681
|
+
fetchLeaderboard: ILeaderboard;
|
|
618
682
|
fetchLocations?: Maybe<Array<Maybe<ILocation>>>;
|
|
619
683
|
fetchAllCountries: Array<ICountry>;
|
|
620
684
|
fetchAdminOpportunitiesPage: IOpportunitiesPage;
|
|
@@ -623,6 +687,7 @@ export type IQuery = {
|
|
|
623
687
|
fetchAdminBrands: Array<IAdminBrand>;
|
|
624
688
|
fetchAdminBrandsPage: IBrandsPage;
|
|
625
689
|
fetchBlockchains: Array<Scalars['String']>;
|
|
690
|
+
fetchAdminAirdropsPage: IOpportunitiesPage;
|
|
626
691
|
fetchAdminReferralsPage: IReferralsPage;
|
|
627
692
|
fetchUnarchivedReferralTypes: Array<IReferralType>;
|
|
628
693
|
fetchReferralTypesPage: IReferralTypesPage;
|
|
@@ -674,6 +739,9 @@ export type IQueryFetchAdminInvitesPageArgs = {
|
|
|
674
739
|
export type IQueryCheckInviteCodeArgs = {
|
|
675
740
|
code: Scalars['String'];
|
|
676
741
|
};
|
|
742
|
+
export type IQueryFetchLeaderboardArgs = {
|
|
743
|
+
type: ILeaderboardType;
|
|
744
|
+
};
|
|
677
745
|
export type IQueryFetchLocationsArgs = {
|
|
678
746
|
term: Scalars['String'];
|
|
679
747
|
};
|
|
@@ -692,6 +760,11 @@ export type IQueryFetchAdminBrandsPageArgs = {
|
|
|
692
760
|
sort: IBrandsSortInput;
|
|
693
761
|
page: IAdminPageInput;
|
|
694
762
|
};
|
|
763
|
+
export type IQueryFetchAdminAirdropsPageArgs = {
|
|
764
|
+
filter: IAirdropsLeaderboardFilterInput;
|
|
765
|
+
sort?: Maybe<IAirdropsLeaderboardSortInput>;
|
|
766
|
+
page: IAdminPageInput;
|
|
767
|
+
};
|
|
695
768
|
export type IQueryFetchAdminReferralsPageArgs = {
|
|
696
769
|
filter: IReferralsFilterInput;
|
|
697
770
|
sort: IReferralsSortInput;
|
|
@@ -958,17 +1031,19 @@ export type NextResolverFn<T> = () => Promise<T>;
|
|
|
958
1031
|
export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
959
1032
|
/** Mapping between all available schema types and the resolvers types */
|
|
960
1033
|
export type IResolversTypes = {
|
|
1034
|
+
AccessType: IAccessType;
|
|
961
1035
|
ActiveInvite: ResolverTypeWrapper<IActiveInvite>;
|
|
962
1036
|
String: ResolverTypeWrapper<Scalars['String']>;
|
|
963
1037
|
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
964
|
-
|
|
1038
|
+
AdminAirdropInput: IAdminAirdropInput;
|
|
1039
|
+
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
965
1040
|
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
1041
|
+
AdminBrand: ResolverTypeWrapper<IAdminBrand>;
|
|
966
1042
|
AdminCategory: ResolverTypeWrapper<IAdminCategory>;
|
|
967
1043
|
AdminContactSupport: ResolverTypeWrapper<IAdminContactSupport>;
|
|
968
1044
|
AdminContentReport: ResolverTypeWrapper<IAdminContentReport>;
|
|
969
1045
|
AdminFormOpportunity: ResolverTypeWrapper<IAdminFormOpportunity>;
|
|
970
1046
|
AdminInvestorInquiry: ResolverTypeWrapper<IAdminInvestorInquiry>;
|
|
971
|
-
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
972
1047
|
AdminInvite: ResolverTypeWrapper<IAdminInvite>;
|
|
973
1048
|
AdminOpportunity: ResolverTypeWrapper<IAdminOpportunity>;
|
|
974
1049
|
ID: ResolverTypeWrapper<Scalars['ID']>;
|
|
@@ -979,6 +1054,8 @@ export type IResolversTypes = {
|
|
|
979
1054
|
AdminReferral: ResolverTypeWrapper<IAdminReferral>;
|
|
980
1055
|
AdminUser: ResolverTypeWrapper<IAdminUser>;
|
|
981
1056
|
AdminXp: ResolverTypeWrapper<IAdminXp>;
|
|
1057
|
+
AirdropsLeaderboardFilterInput: IAirdropsLeaderboardFilterInput;
|
|
1058
|
+
AirdropsLeaderboardSortInput: IAirdropsLeaderboardSortInput;
|
|
982
1059
|
BrandInput: IBrandInput;
|
|
983
1060
|
BrandsFilterInput: IBrandsFilterInput;
|
|
984
1061
|
BrandsPage: ResolverTypeWrapper<IBrandsPage>;
|
|
@@ -1005,6 +1082,9 @@ export type IResolversTypes = {
|
|
|
1005
1082
|
InvitesFilterInput: IInvitesFilterInput;
|
|
1006
1083
|
InvitesPage: ResolverTypeWrapper<IInvitesPage>;
|
|
1007
1084
|
InvitesSortInput: IInvitesSortInput;
|
|
1085
|
+
Leaderboard: ResolverTypeWrapper<ILeaderboard>;
|
|
1086
|
+
LeaderboardInput: ILeaderboardInput;
|
|
1087
|
+
LeaderboardType: ILeaderboardType;
|
|
1008
1088
|
Location: ResolverTypeWrapper<ILocation>;
|
|
1009
1089
|
LocationType: ILocationType;
|
|
1010
1090
|
LoginSource: ILoginSource;
|
|
@@ -1060,14 +1140,15 @@ export type IResolversParentTypes = {
|
|
|
1060
1140
|
ActiveInvite: IActiveInvite;
|
|
1061
1141
|
String: Scalars['String'];
|
|
1062
1142
|
Int: Scalars['Int'];
|
|
1063
|
-
|
|
1143
|
+
AdminAirdropInput: IAdminAirdropInput;
|
|
1144
|
+
Float: Scalars['Float'];
|
|
1064
1145
|
Boolean: Scalars['Boolean'];
|
|
1146
|
+
AdminBrand: IAdminBrand;
|
|
1065
1147
|
AdminCategory: IAdminCategory;
|
|
1066
1148
|
AdminContactSupport: IAdminContactSupport;
|
|
1067
1149
|
AdminContentReport: IAdminContentReport;
|
|
1068
1150
|
AdminFormOpportunity: IAdminFormOpportunity;
|
|
1069
1151
|
AdminInvestorInquiry: IAdminInvestorInquiry;
|
|
1070
|
-
Float: Scalars['Float'];
|
|
1071
1152
|
AdminInvite: IAdminInvite;
|
|
1072
1153
|
AdminOpportunity: IAdminOpportunity;
|
|
1073
1154
|
ID: Scalars['ID'];
|
|
@@ -1078,6 +1159,8 @@ export type IResolversParentTypes = {
|
|
|
1078
1159
|
AdminReferral: IAdminReferral;
|
|
1079
1160
|
AdminUser: IAdminUser;
|
|
1080
1161
|
AdminXp: IAdminXp;
|
|
1162
|
+
AirdropsLeaderboardFilterInput: IAirdropsLeaderboardFilterInput;
|
|
1163
|
+
AirdropsLeaderboardSortInput: IAirdropsLeaderboardSortInput;
|
|
1081
1164
|
BrandInput: IBrandInput;
|
|
1082
1165
|
BrandsFilterInput: IBrandsFilterInput;
|
|
1083
1166
|
BrandsPage: IBrandsPage;
|
|
@@ -1103,6 +1186,8 @@ export type IResolversParentTypes = {
|
|
|
1103
1186
|
InvitesFilterInput: IInvitesFilterInput;
|
|
1104
1187
|
InvitesPage: IInvitesPage;
|
|
1105
1188
|
InvitesSortInput: IInvitesSortInput;
|
|
1189
|
+
Leaderboard: ILeaderboard;
|
|
1190
|
+
LeaderboardInput: ILeaderboardInput;
|
|
1106
1191
|
Location: ILocation;
|
|
1107
1192
|
Long: Scalars['Long'];
|
|
1108
1193
|
Mutation: {};
|
|
@@ -1284,6 +1369,8 @@ export type IAdminOpportunityResolvers<ContextType = any, ParentType extends IRe
|
|
|
1284
1369
|
notificationDestinations?: Resolver<Maybe<Array<IResolversTypes['NotificationDestination']>>, ParentType, ContextType>;
|
|
1285
1370
|
type?: Resolver<IResolversTypes['OpportunityType'], ParentType, ContextType>;
|
|
1286
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>;
|
|
1287
1374
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1288
1375
|
};
|
|
1289
1376
|
export type IAdminPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminPage'] = IResolversParentTypes['AdminPage']> = {
|
|
@@ -1393,6 +1480,17 @@ export type IInvitesPageResolvers<ContextType = any, ParentType extends IResolve
|
|
|
1393
1480
|
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
1394
1481
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1395
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
|
+
};
|
|
1396
1494
|
export type ILocationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Location'] = IResolversParentTypes['Location']> = {
|
|
1397
1495
|
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1398
1496
|
type?: Resolver<IResolversTypes['LocationType'], ParentType, ContextType>;
|
|
@@ -1406,6 +1504,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
1406
1504
|
removeInviteCode?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveInviteCodeArgs, 'inviteCode'>>;
|
|
1407
1505
|
addInviteCodes?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddInviteCodesArgs, 'userId' | 'codesNum'>>;
|
|
1408
1506
|
updateInviteCodeUsagesLimit?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateInviteCodeUsagesLimitArgs, 'code' | 'usagesLimit'>>;
|
|
1507
|
+
updateLeaderboard?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateLeaderboardArgs, 'type' | 'input'>>;
|
|
1409
1508
|
updateOpportunityPushStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityPushStatusArgs, 'opportunityId' | 'isActive'>>;
|
|
1410
1509
|
createBrand?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateBrandArgs, 'brand'>>;
|
|
1411
1510
|
updateBrand?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateBrandArgs, 'id' | 'input'>>;
|
|
@@ -1417,6 +1516,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
1417
1516
|
updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'id' | 'input'>>;
|
|
1418
1517
|
updateOpportunityArchivedStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArchivedStatusArgs, 'id' | 'isArchived'>>;
|
|
1419
1518
|
triggerOpportunityNotification?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationTriggerOpportunityNotificationArgs, 'opportunityId'>>;
|
|
1519
|
+
updateAirdrop?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateAirdropArgs, 'id' | 'input'>>;
|
|
1420
1520
|
createReferralType?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType, RequireFields<IMutationCreateReferralTypeArgs, 'input'>>;
|
|
1421
1521
|
updateReferralType?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateReferralTypeArgs, 'id' | 'input'>>;
|
|
1422
1522
|
updateReferralTypeArchivedStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateReferralTypeArchivedStatusArgs, 'id' | 'archived'>>;
|
|
@@ -1449,6 +1549,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
1449
1549
|
fetchRegistrationInvitePage?: Resolver<IResolversTypes['RegistrationInvitePage'], ParentType, ContextType, RequireFields<IQueryFetchRegistrationInvitePageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1450
1550
|
fetchAdminInvitesPage?: Resolver<IResolversTypes['InvitesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminInvitesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1451
1551
|
checkInviteCode?: Resolver<IResolversTypes['CheckInviteCodeData'], ParentType, ContextType, RequireFields<IQueryCheckInviteCodeArgs, 'code'>>;
|
|
1552
|
+
fetchLeaderboard?: Resolver<IResolversTypes['Leaderboard'], ParentType, ContextType, RequireFields<IQueryFetchLeaderboardArgs, 'type'>>;
|
|
1452
1553
|
fetchLocations?: Resolver<Maybe<Array<Maybe<IResolversTypes['Location']>>>, ParentType, ContextType, RequireFields<IQueryFetchLocationsArgs, 'term'>>;
|
|
1453
1554
|
fetchAllCountries?: Resolver<Array<IResolversTypes['Country']>, ParentType, ContextType>;
|
|
1454
1555
|
fetchAdminOpportunitiesPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminOpportunitiesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
@@ -1457,6 +1558,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
1457
1558
|
fetchAdminBrands?: Resolver<Array<IResolversTypes['AdminBrand']>, ParentType, ContextType>;
|
|
1458
1559
|
fetchAdminBrandsPage?: Resolver<IResolversTypes['BrandsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminBrandsPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1459
1560
|
fetchBlockchains?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1561
|
+
fetchAdminAirdropsPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminAirdropsPageArgs, 'filter' | 'page'>>;
|
|
1460
1562
|
fetchAdminReferralsPage?: Resolver<IResolversTypes['ReferralsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminReferralsPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1461
1563
|
fetchUnarchivedReferralTypes?: Resolver<Array<IResolversTypes['ReferralType']>, ParentType, ContextType>;
|
|
1462
1564
|
fetchReferralTypesPage?: Resolver<IResolversTypes['ReferralTypesPage'], ParentType, ContextType, RequireFields<IQueryFetchReferralTypesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
@@ -1587,6 +1689,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
1587
1689
|
FormOpportunityPage?: IFormOpportunityPageResolvers<ContextType>;
|
|
1588
1690
|
InvestorInquiryPage?: IInvestorInquiryPageResolvers<ContextType>;
|
|
1589
1691
|
InvitesPage?: IInvitesPageResolvers<ContextType>;
|
|
1692
|
+
Leaderboard?: ILeaderboardResolvers<ContextType>;
|
|
1590
1693
|
Location?: ILocationResolvers<ContextType>;
|
|
1591
1694
|
Long?: GraphQLScalarType;
|
|
1592
1695
|
Mutation?: IMutationResolvers<ContextType>;
|
|
@@ -1686,6 +1789,12 @@ export type IRemoveInviteCodeMutationVariables = Exact<{
|
|
|
1686
1789
|
inviteCode: Scalars['String'];
|
|
1687
1790
|
}>;
|
|
1688
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'>;
|
|
1689
1798
|
export type IUpdateBrandMutationVariables = Exact<{
|
|
1690
1799
|
id: Scalars['ID'];
|
|
1691
1800
|
input: IBrandInput;
|
|
@@ -1707,6 +1816,11 @@ export type IUpdateCategoryArchivedStatusMutationVariables = Exact<{
|
|
|
1707
1816
|
isArchived: Scalars['Boolean'];
|
|
1708
1817
|
}>;
|
|
1709
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'>;
|
|
1710
1824
|
export type IUpdateOpportunityMutationVariables = Exact<{
|
|
1711
1825
|
id: Scalars['ID'];
|
|
1712
1826
|
input: IAdminOpportunityInput;
|
|
@@ -1840,6 +1954,17 @@ export type IFetchUserFeedbackPageQuery = {
|
|
|
1840
1954
|
nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>>;
|
|
1841
1955
|
};
|
|
1842
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
|
+
};
|
|
1843
1968
|
export type IFetchAdminBrandsQueryVariables = Exact<{
|
|
1844
1969
|
[key: string]: never;
|
|
1845
1970
|
}>;
|
|
@@ -1952,6 +2077,12 @@ export type IFetchBlockchainsQueryVariables = Exact<{
|
|
|
1952
2077
|
[key: string]: never;
|
|
1953
2078
|
}>;
|
|
1954
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
|
+
};
|
|
1955
2086
|
export declare const CreateReferralTypeDocument: Apollo.DocumentNode;
|
|
1956
2087
|
export type ICreateReferralTypeMutationFn = Apollo.MutationFunction<ICreateReferralTypeMutation, ICreateReferralTypeMutationVariables>;
|
|
1957
2088
|
/**
|
|
@@ -2351,6 +2482,35 @@ export declare function useRemoveInviteCodeMutation(baseOptions?: Apollo.Mutatio
|
|
|
2351
2482
|
export type RemoveInviteCodeMutationHookResult = ReturnType<typeof useRemoveInviteCodeMutation>;
|
|
2352
2483
|
export type RemoveInviteCodeMutationResult = Apollo.MutationResult<IRemoveInviteCodeMutation>;
|
|
2353
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>;
|
|
2354
2514
|
export declare const UpdateBrandDocument: Apollo.DocumentNode;
|
|
2355
2515
|
export type IUpdateBrandMutationFn = Apollo.MutationFunction<IUpdateBrandMutation, IUpdateBrandMutationVariables>;
|
|
2356
2516
|
/**
|
|
@@ -2461,6 +2621,33 @@ export declare function useUpdateCategoryArchivedStatusMutation(baseOptions?: Ap
|
|
|
2461
2621
|
export type UpdateCategoryArchivedStatusMutationHookResult = ReturnType<typeof useUpdateCategoryArchivedStatusMutation>;
|
|
2462
2622
|
export type UpdateCategoryArchivedStatusMutationResult = Apollo.MutationResult<IUpdateCategoryArchivedStatusMutation>;
|
|
2463
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>;
|
|
2464
2651
|
export declare const UpdateOpportunityDocument: Apollo.DocumentNode;
|
|
2465
2652
|
export type IUpdateOpportunityMutationFn = Apollo.MutationFunction<IUpdateOpportunityMutation, IUpdateOpportunityMutationVariables>;
|
|
2466
2653
|
/**
|
|
@@ -2908,6 +3095,38 @@ export declare function useFetchUserFeedbackPageLazyQuery(baseOptions?: Apollo.L
|
|
|
2908
3095
|
export type FetchUserFeedbackPageQueryHookResult = ReturnType<typeof useFetchUserFeedbackPageQuery>;
|
|
2909
3096
|
export type FetchUserFeedbackPageLazyQueryHookResult = ReturnType<typeof useFetchUserFeedbackPageLazyQuery>;
|
|
2910
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>;
|
|
2911
3130
|
export declare const FetchAdminBrandsDocument: Apollo.DocumentNode;
|
|
2912
3131
|
/**
|
|
2913
3132
|
* __useFetchAdminBrandsQuery__
|
|
@@ -3232,3 +3451,29 @@ export declare function useFetchBlockchainsLazyQuery(baseOptions?: Apollo.LazyQu
|
|
|
3232
3451
|
export type FetchBlockchainsQueryHookResult = ReturnType<typeof useFetchBlockchainsQuery>;
|
|
3233
3452
|
export type FetchBlockchainsLazyQueryHookResult = ReturnType<typeof useFetchBlockchainsLazyQuery>;
|
|
3234
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>;
|