@ludo.ninja/api 3.0.71 → 3.0.73
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 +57 -3
- package/build/graphql_tools/__generated__/adminHost/schema.js +1 -0
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +63 -12
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +75 -1
- package/build/index.d.ts +11 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/adminHost/schema.ts +65 -3
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +118 -10
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -135,6 +135,30 @@ export type IAdminInvite = {
|
|
|
135
135
|
profileLink?: Maybe<IReferralLink>;
|
|
136
136
|
};
|
|
137
137
|
|
|
138
|
+
export type IAdminLeaderboardProject = {
|
|
139
|
+
id: Scalars['String'];
|
|
140
|
+
name?: Maybe<Scalars['String']>;
|
|
141
|
+
rank?: Maybe<Scalars['Float']>;
|
|
142
|
+
rankHourDifference?: Maybe<Scalars['Float']>;
|
|
143
|
+
rankDayDifference?: Maybe<Scalars['Float']>;
|
|
144
|
+
rankWeekDifference?: Maybe<Scalars['Float']>;
|
|
145
|
+
price?: Maybe<Scalars['Float']>;
|
|
146
|
+
hidden?: Maybe<Scalars['Boolean']>;
|
|
147
|
+
};
|
|
148
|
+
|
|
149
|
+
export type IAdminLeaderboardProjectsFilterInput = {
|
|
150
|
+
nameTerm?: Maybe<Scalars['String']>;
|
|
151
|
+
rank?: Maybe<Scalars['Float']>;
|
|
152
|
+
rankDayDifference?: Maybe<Scalars['Float']>;
|
|
153
|
+
rankWeekDifference?: Maybe<Scalars['Float']>;
|
|
154
|
+
price?: Maybe<Scalars['Float']>;
|
|
155
|
+
};
|
|
156
|
+
|
|
157
|
+
export type IAdminLeaderboardProjectsPage = {
|
|
158
|
+
projects: Array<IAdminLeaderboardProject>;
|
|
159
|
+
nextPage?: Maybe<IAdminPage>;
|
|
160
|
+
};
|
|
161
|
+
|
|
138
162
|
export type IAdminOpportunity = {
|
|
139
163
|
opportunityId: Scalars['ID'];
|
|
140
164
|
projectId?: Maybe<Scalars['String']>;
|
|
@@ -173,11 +197,12 @@ export type IAdminOpportunity = {
|
|
|
173
197
|
encodePayload?: Maybe<Scalars['Boolean']>;
|
|
174
198
|
payloadTypes?: Maybe<Array<Maybe<IPayloadType>>>;
|
|
175
199
|
parentOpportunityId?: Maybe<Scalars['String']>;
|
|
200
|
+
slug?: Maybe<Scalars['String']>;
|
|
176
201
|
};
|
|
177
202
|
|
|
178
203
|
export type IAdminOpportunityInput = {
|
|
179
|
-
projectId
|
|
180
|
-
categoryId
|
|
204
|
+
projectId?: Maybe<Scalars['String']>;
|
|
205
|
+
categoryId?: Maybe<Scalars['String']>;
|
|
181
206
|
status: Scalars['String'];
|
|
182
207
|
pushNotificationsEnabled: Scalars['Boolean'];
|
|
183
208
|
name: Scalars['String'];
|
|
@@ -205,6 +230,7 @@ export type IAdminOpportunityInput = {
|
|
|
205
230
|
encodePayload?: Maybe<Scalars['Boolean']>;
|
|
206
231
|
payloadTypes?: Maybe<Array<Maybe<IPayloadType>>>;
|
|
207
232
|
parentOpportunityId?: Maybe<Scalars['String']>;
|
|
233
|
+
slug?: Maybe<Scalars['String']>;
|
|
208
234
|
};
|
|
209
235
|
|
|
210
236
|
export type IAdminPage = {
|
|
@@ -949,6 +975,7 @@ export type IQuery = {
|
|
|
949
975
|
fetchAdminAirdropsPage: IOpportunitiesPage;
|
|
950
976
|
fetchAdminOpportunitiesByType?: Maybe<Array<Maybe<IAdminOpportunity>>>;
|
|
951
977
|
fetchProjectsPage: IAdminProjectsPage;
|
|
978
|
+
fetchLeaderboardProjectsPage: IAdminLeaderboardProjectsPage;
|
|
952
979
|
fetchAdminReferralsPage: IReferralsPage;
|
|
953
980
|
fetchUnarchivedReferralTypes: Array<IReferralType>;
|
|
954
981
|
fetchReferralTypesPage: IReferralTypesPage;
|
|
@@ -1071,6 +1098,12 @@ export type IQueryFetchProjectsPageArgs = {
|
|
|
1071
1098
|
};
|
|
1072
1099
|
|
|
1073
1100
|
|
|
1101
|
+
export type IQueryFetchLeaderboardProjectsPageArgs = {
|
|
1102
|
+
filter: IAdminLeaderboardProjectsFilterInput;
|
|
1103
|
+
page: IAdminPageInput;
|
|
1104
|
+
};
|
|
1105
|
+
|
|
1106
|
+
|
|
1074
1107
|
export type IQueryFetchAdminReferralsPageArgs = {
|
|
1075
1108
|
filter: IReferralsFilterInput;
|
|
1076
1109
|
sort: IReferralsSortInput;
|
|
@@ -1471,6 +1504,9 @@ export type IResolversTypes = {
|
|
|
1471
1504
|
AdminFormOpportunity: ResolverTypeWrapper<IAdminFormOpportunity>;
|
|
1472
1505
|
AdminInvestorInquiry: ResolverTypeWrapper<IAdminInvestorInquiry>;
|
|
1473
1506
|
AdminInvite: ResolverTypeWrapper<IAdminInvite>;
|
|
1507
|
+
AdminLeaderboardProject: ResolverTypeWrapper<IAdminLeaderboardProject>;
|
|
1508
|
+
AdminLeaderboardProjectsFilterInput: IAdminLeaderboardProjectsFilterInput;
|
|
1509
|
+
AdminLeaderboardProjectsPage: ResolverTypeWrapper<IAdminLeaderboardProjectsPage>;
|
|
1474
1510
|
AdminOpportunity: ResolverTypeWrapper<IAdminOpportunity>;
|
|
1475
1511
|
ID: ResolverTypeWrapper<Scalars['ID']>;
|
|
1476
1512
|
AdminOpportunityInput: IAdminOpportunityInput;
|
|
@@ -1592,6 +1628,9 @@ export type IResolversParentTypes = {
|
|
|
1592
1628
|
AdminFormOpportunity: IAdminFormOpportunity;
|
|
1593
1629
|
AdminInvestorInquiry: IAdminInvestorInquiry;
|
|
1594
1630
|
AdminInvite: IAdminInvite;
|
|
1631
|
+
AdminLeaderboardProject: IAdminLeaderboardProject;
|
|
1632
|
+
AdminLeaderboardProjectsFilterInput: IAdminLeaderboardProjectsFilterInput;
|
|
1633
|
+
AdminLeaderboardProjectsPage: IAdminLeaderboardProjectsPage;
|
|
1595
1634
|
AdminOpportunity: IAdminOpportunity;
|
|
1596
1635
|
ID: Scalars['ID'];
|
|
1597
1636
|
AdminOpportunityInput: IAdminOpportunityInput;
|
|
@@ -1808,6 +1847,24 @@ export type IAdminInviteResolvers<ContextType = any, ParentType extends IResolve
|
|
|
1808
1847
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1809
1848
|
};
|
|
1810
1849
|
|
|
1850
|
+
export type IAdminLeaderboardProjectResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminLeaderboardProject'] = IResolversParentTypes['AdminLeaderboardProject']> = {
|
|
1851
|
+
id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1852
|
+
name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1853
|
+
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
1854
|
+
rankHourDifference?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
1855
|
+
rankDayDifference?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
1856
|
+
rankWeekDifference?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
1857
|
+
price?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
1858
|
+
hidden?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
1859
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1860
|
+
};
|
|
1861
|
+
|
|
1862
|
+
export type IAdminLeaderboardProjectsPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminLeaderboardProjectsPage'] = IResolversParentTypes['AdminLeaderboardProjectsPage']> = {
|
|
1863
|
+
projects?: Resolver<Array<IResolversTypes['AdminLeaderboardProject']>, ParentType, ContextType>;
|
|
1864
|
+
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
1865
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1866
|
+
};
|
|
1867
|
+
|
|
1811
1868
|
export type IAdminOpportunityResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminOpportunity'] = IResolversParentTypes['AdminOpportunity']> = {
|
|
1812
1869
|
opportunityId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
1813
1870
|
projectId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -1846,6 +1903,7 @@ export type IAdminOpportunityResolvers<ContextType = any, ParentType extends IRe
|
|
|
1846
1903
|
encodePayload?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
1847
1904
|
payloadTypes?: Resolver<Maybe<Array<Maybe<IResolversTypes['PayloadType']>>>, ParentType, ContextType>;
|
|
1848
1905
|
parentOpportunityId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1906
|
+
slug?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1849
1907
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1850
1908
|
};
|
|
1851
1909
|
|
|
@@ -2112,6 +2170,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
2112
2170
|
fetchAdminAirdropsPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminAirdropsPageArgs, 'filter' | 'page'>>;
|
|
2113
2171
|
fetchAdminOpportunitiesByType?: Resolver<Maybe<Array<Maybe<IResolversTypes['AdminOpportunity']>>>, ParentType, ContextType, RequireFields<IQueryFetchAdminOpportunitiesByTypeArgs, 'type'>>;
|
|
2114
2172
|
fetchProjectsPage?: Resolver<IResolversTypes['AdminProjectsPage'], ParentType, ContextType, RequireFields<IQueryFetchProjectsPageArgs, 'filter' | 'page'>>;
|
|
2173
|
+
fetchLeaderboardProjectsPage?: Resolver<IResolversTypes['AdminLeaderboardProjectsPage'], ParentType, ContextType, RequireFields<IQueryFetchLeaderboardProjectsPageArgs, 'filter' | 'page'>>;
|
|
2115
2174
|
fetchAdminReferralsPage?: Resolver<IResolversTypes['ReferralsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminReferralsPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
2116
2175
|
fetchUnarchivedReferralTypes?: Resolver<Array<IResolversTypes['ReferralType']>, ParentType, ContextType>;
|
|
2117
2176
|
fetchReferralTypesPage?: Resolver<IResolversTypes['ReferralTypesPage'], ParentType, ContextType, RequireFields<IQueryFetchReferralTypesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
@@ -2254,6 +2313,8 @@ export type IResolvers<ContextType = any> = {
|
|
|
2254
2313
|
AdminFormOpportunity?: IAdminFormOpportunityResolvers<ContextType>;
|
|
2255
2314
|
AdminInvestorInquiry?: IAdminInvestorInquiryResolvers<ContextType>;
|
|
2256
2315
|
AdminInvite?: IAdminInviteResolvers<ContextType>;
|
|
2316
|
+
AdminLeaderboardProject?: IAdminLeaderboardProjectResolvers<ContextType>;
|
|
2317
|
+
AdminLeaderboardProjectsPage?: IAdminLeaderboardProjectsPageResolvers<ContextType>;
|
|
2257
2318
|
AdminOpportunity?: IAdminOpportunityResolvers<ContextType>;
|
|
2258
2319
|
AdminPage?: IAdminPageResolvers<ContextType>;
|
|
2259
2320
|
AdminPartnershipInquiry?: IAdminPartnershipInquiryResolvers<ContextType>;
|
|
@@ -2697,7 +2758,7 @@ export type IFetchAdminOpportunitiesPageQueryVariables = Exact<{
|
|
|
2697
2758
|
}>;
|
|
2698
2759
|
|
|
2699
2760
|
|
|
2700
|
-
export type IFetchAdminOpportunitiesPageQuery = { fetchAdminOpportunitiesPage: { opportunities: Array<Pick<IAdminOpportunity, 'opportunityId' | 'name' | 'projectName' | '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' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'encodePayload' | 'payloadTypes' | 'parentOpportunityId'>>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
|
|
2761
|
+
export type IFetchAdminOpportunitiesPageQuery = { fetchAdminOpportunitiesPage: { opportunities: Array<Pick<IAdminOpportunity, 'opportunityId' | 'name' | 'projectName' | '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' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'encodePayload' | 'payloadTypes' | 'parentOpportunityId' | 'slug'>>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
|
|
2701
2762
|
|
|
2702
2763
|
export type IFetchAdminProjectsQueryVariables = Exact<{ [key: string]: never; }>;
|
|
2703
2764
|
|
|
@@ -4643,6 +4704,7 @@ export const FetchAdminOpportunitiesPageDocument = gql`
|
|
|
4643
4704
|
encodePayload
|
|
4644
4705
|
payloadTypes
|
|
4645
4706
|
parentOpportunityId
|
|
4707
|
+
slug
|
|
4646
4708
|
}
|
|
4647
4709
|
nextPage {
|
|
4648
4710
|
elements
|
|
@@ -73,6 +73,8 @@ export type IMutation = {
|
|
|
73
73
|
dislikeOpportunity: Scalars['Boolean'];
|
|
74
74
|
registerForAirdrop: Scalars['Boolean'];
|
|
75
75
|
registerForAirdrop2: Scalars['String'];
|
|
76
|
+
registerForEventAirdrop: Scalars['String'];
|
|
77
|
+
registerForEvent: Scalars['Boolean'];
|
|
76
78
|
copyOpportunityShareLink: Scalars['Boolean'];
|
|
77
79
|
registerNewProject: Scalars['Boolean'];
|
|
78
80
|
reactOnProject: Scalars['Boolean'];
|
|
@@ -146,6 +148,18 @@ export type IMutationRegisterForAirdrop2Args = {
|
|
|
146
148
|
};
|
|
147
149
|
|
|
148
150
|
|
|
151
|
+
export type IMutationRegisterForEventAirdropArgs = {
|
|
152
|
+
opportunityId: Scalars['String'];
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
export type IMutationRegisterForEventArgs = {
|
|
157
|
+
opportunityId: Scalars['String'];
|
|
158
|
+
blockchain: Scalars['String'];
|
|
159
|
+
address: Scalars['String'];
|
|
160
|
+
};
|
|
161
|
+
|
|
162
|
+
|
|
149
163
|
export type IMutationCopyOpportunityShareLinkArgs = {
|
|
150
164
|
opportunityId: Scalars['ID'];
|
|
151
165
|
};
|
|
@@ -228,8 +242,8 @@ export enum IOpportunityType {
|
|
|
228
242
|
|
|
229
243
|
export type IOpportunityV2 = {
|
|
230
244
|
opportunityId: Scalars['ID'];
|
|
231
|
-
projectId
|
|
232
|
-
categoryId
|
|
245
|
+
projectId?: Maybe<Scalars['String']>;
|
|
246
|
+
categoryId?: Maybe<Scalars['String']>;
|
|
233
247
|
opportunityStatus: Scalars['String'];
|
|
234
248
|
opportunityType: IOpportunityType;
|
|
235
249
|
notificationType: Scalars['String'];
|
|
@@ -261,10 +275,11 @@ export type IOpportunityV2 = {
|
|
|
261
275
|
shareLink?: Maybe<Scalars['String']>;
|
|
262
276
|
liked?: Maybe<Scalars['Boolean']>;
|
|
263
277
|
geolocations?: Maybe<Array<Scalars['String']>>;
|
|
264
|
-
project
|
|
278
|
+
project?: Maybe<IProject>;
|
|
265
279
|
subscribed?: Maybe<Scalars['Boolean']>;
|
|
266
280
|
participantsLimit?: Maybe<Scalars['Int']>;
|
|
267
281
|
availablePlacesForAirdrop?: Maybe<Scalars['Int']>;
|
|
282
|
+
slug?: Maybe<Scalars['String']>;
|
|
268
283
|
};
|
|
269
284
|
|
|
270
285
|
export type IProfileOpportunities = {
|
|
@@ -352,6 +367,7 @@ export type IQuery = {
|
|
|
352
367
|
fetchOpportunitiesByIds: Array<IOpportunityV2>;
|
|
353
368
|
fetchOpportunitiesForWallet?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
354
369
|
fetchAirdropRegistrationsCsv: Scalars['String'];
|
|
370
|
+
fetchOpportunityBySlug: IOpportunityV2;
|
|
355
371
|
fetchProjectBySlug: IProject;
|
|
356
372
|
};
|
|
357
373
|
|
|
@@ -397,6 +413,11 @@ export type IQueryFetchAirdropRegistrationsCsvArgs = {
|
|
|
397
413
|
};
|
|
398
414
|
|
|
399
415
|
|
|
416
|
+
export type IQueryFetchOpportunityBySlugArgs = {
|
|
417
|
+
slug: Scalars['String'];
|
|
418
|
+
};
|
|
419
|
+
|
|
420
|
+
|
|
400
421
|
export type IQueryFetchProjectBySlugArgs = {
|
|
401
422
|
slug: Scalars['String'];
|
|
402
423
|
};
|
|
@@ -588,6 +609,8 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
588
609
|
dislikeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDislikeOpportunityArgs, 'opportunityId'>>;
|
|
589
610
|
registerForAirdrop?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRegisterForAirdropArgs, 'opportunityId' | 'blockchain' | 'address'>>;
|
|
590
611
|
registerForAirdrop2?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IMutationRegisterForAirdrop2Args, 'opportunityId' | 'blockchain' | 'address'>>;
|
|
612
|
+
registerForEventAirdrop?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IMutationRegisterForEventAirdropArgs, 'opportunityId'>>;
|
|
613
|
+
registerForEvent?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRegisterForEventArgs, 'opportunityId' | 'blockchain' | 'address'>>;
|
|
591
614
|
copyOpportunityShareLink?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCopyOpportunityShareLinkArgs, 'opportunityId'>>;
|
|
592
615
|
registerNewProject?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRegisterNewProjectArgs, 'input'>>;
|
|
593
616
|
reactOnProject?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationReactOnProjectArgs, 'input'>>;
|
|
@@ -632,8 +655,8 @@ export type IOpportunityResolvers<ContextType = any, ParentType extends IResolve
|
|
|
632
655
|
|
|
633
656
|
export type IOpportunityV2Resolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunityV2'] = IResolversParentTypes['OpportunityV2']> = {
|
|
634
657
|
opportunityId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
635
|
-
projectId?: Resolver<IResolversTypes['String']
|
|
636
|
-
categoryId?: Resolver<IResolversTypes['String']
|
|
658
|
+
projectId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
659
|
+
categoryId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
637
660
|
opportunityStatus?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
638
661
|
opportunityType?: Resolver<IResolversTypes['OpportunityType'], ParentType, ContextType>;
|
|
639
662
|
notificationType?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
@@ -665,10 +688,11 @@ export type IOpportunityV2Resolvers<ContextType = any, ParentType extends IResol
|
|
|
665
688
|
shareLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
666
689
|
liked?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
667
690
|
geolocations?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
|
|
668
|
-
project?: Resolver<IResolversTypes['Project']
|
|
691
|
+
project?: Resolver<Maybe<IResolversTypes['Project']>, ParentType, ContextType>;
|
|
669
692
|
subscribed?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
670
693
|
participantsLimit?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
671
694
|
availablePlacesForAirdrop?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
695
|
+
slug?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
672
696
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
673
697
|
};
|
|
674
698
|
|
|
@@ -751,6 +775,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
751
775
|
fetchOpportunitiesByIds?: Resolver<Array<IResolversTypes['OpportunityV2']>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesByIdsArgs, 'opportunityIds'>>;
|
|
752
776
|
fetchOpportunitiesForWallet?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesForWalletArgs, 'blockchain' | 'wallet'>>;
|
|
753
777
|
fetchAirdropRegistrationsCsv?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IQueryFetchAirdropRegistrationsCsvArgs, 'opportunityId'>>;
|
|
778
|
+
fetchOpportunityBySlug?: Resolver<IResolversTypes['OpportunityV2'], ParentType, ContextType, RequireFields<IQueryFetchOpportunityBySlugArgs, 'slug'>>;
|
|
754
779
|
fetchProjectBySlug?: Resolver<IResolversTypes['Project'], ParentType, ContextType, RequireFields<IQueryFetchProjectBySlugArgs, 'slug'>>;
|
|
755
780
|
};
|
|
756
781
|
|
|
@@ -861,12 +886,12 @@ export type IFetchOpportunitiesByIdsQueryVariables = Exact<{
|
|
|
861
886
|
}>;
|
|
862
887
|
|
|
863
888
|
|
|
864
|
-
export type IFetchOpportunitiesByIdsQuery = { fetchOpportunitiesByIds: Array<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'projectBlockchain' | 'projectContract' | 'projectName' | 'projectSlug' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop'>> };
|
|
889
|
+
export type IFetchOpportunitiesByIdsQuery = { fetchOpportunitiesByIds: Array<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'projectBlockchain' | 'projectContract' | 'projectName' | 'projectSlug' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'slug'>> };
|
|
865
890
|
|
|
866
891
|
export type IFetchOpportunitiesForProfileQueryVariables = Exact<{ [key: string]: never; }>;
|
|
867
892
|
|
|
868
893
|
|
|
869
|
-
export type IFetchOpportunitiesForProfileQuery = { fetchOpportunitiesForProfile: Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'projectBlockchain' | 'projectContract' | 'projectName' | 'projectSlug' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop'>>> };
|
|
894
|
+
export type IFetchOpportunitiesForProfileQuery = { fetchOpportunitiesForProfile: Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'projectBlockchain' | 'projectContract' | 'projectName' | 'projectSlug' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'slug'>>> };
|
|
870
895
|
|
|
871
896
|
export type IFetchBrandBySlugQueryVariables = Exact<{
|
|
872
897
|
slug: Scalars['String'];
|
|
@@ -890,12 +915,19 @@ export type IFetchOpportunityQueryVariables = Exact<{
|
|
|
890
915
|
}>;
|
|
891
916
|
|
|
892
917
|
|
|
893
|
-
export type IFetchOpportunityQuery = { fetchOpportunity: Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'projectBlockchain' | 'projectContract' | 'projectName' | 'projectSlug' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop'> };
|
|
918
|
+
export type IFetchOpportunityQuery = { fetchOpportunity: Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'projectBlockchain' | 'projectContract' | 'projectName' | 'projectSlug' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'slug'> };
|
|
919
|
+
|
|
920
|
+
export type IFetchOpportunityBySlugQueryVariables = Exact<{
|
|
921
|
+
slug: Scalars['String'];
|
|
922
|
+
}>;
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
export type IFetchOpportunityBySlugQuery = { fetchOpportunityBySlug: Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'projectBlockchain' | 'projectContract' | 'projectName' | 'projectSlug' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'slug'> };
|
|
894
926
|
|
|
895
927
|
export type IFetchProfileOpportunitiesQueryVariables = Exact<{ [key: string]: never; }>;
|
|
896
928
|
|
|
897
929
|
|
|
898
|
-
export type IFetchProfileOpportunitiesQuery = { fetchProfileOpportunities: { newOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'projectBlockchain' | 'projectContract' | 'projectName' | 'projectSlug' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop'>>>>, recentOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'projectBlockchain' | 'projectContract' | 'projectName' | 'projectSlug' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop'>>>>, eventOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'projectBlockchain' | 'projectContract' | 'projectName' | 'projectSlug' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop'>>>> } };
|
|
930
|
+
export type IFetchProfileOpportunitiesQuery = { fetchProfileOpportunities: { newOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'projectBlockchain' | 'projectContract' | 'projectName' | 'projectSlug' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'slug'>>>>, recentOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'projectBlockchain' | 'projectContract' | 'projectName' | 'projectSlug' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'slug'>>>>, eventOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'projectId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'projectBlockchain' | 'projectContract' | 'projectName' | 'projectSlug' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations' | 'subscribed' | 'participantsLimit' | 'availablePlacesForAirdrop' | 'slug'>>>> } };
|
|
899
931
|
|
|
900
932
|
export type IFetchProjectBySlugQueryVariables = Exact<{
|
|
901
933
|
slug: Scalars['String'];
|
|
@@ -1261,6 +1293,7 @@ export const FetchOpportunitiesByIdsDocument = gql`
|
|
|
1261
1293
|
subscribed
|
|
1262
1294
|
participantsLimit
|
|
1263
1295
|
availablePlacesForAirdrop
|
|
1296
|
+
slug
|
|
1264
1297
|
}
|
|
1265
1298
|
}
|
|
1266
1299
|
`;
|
|
@@ -1330,6 +1363,7 @@ export const FetchOpportunitiesForProfileDocument = gql`
|
|
|
1330
1363
|
subscribed
|
|
1331
1364
|
participantsLimit
|
|
1332
1365
|
availablePlacesForAirdrop
|
|
1366
|
+
slug
|
|
1333
1367
|
}
|
|
1334
1368
|
}
|
|
1335
1369
|
`;
|
|
@@ -1593,6 +1627,7 @@ export const FetchOpportunityDocument = gql`
|
|
|
1593
1627
|
subscribed
|
|
1594
1628
|
participantsLimit
|
|
1595
1629
|
availablePlacesForAirdrop
|
|
1630
|
+
slug
|
|
1596
1631
|
}
|
|
1597
1632
|
}
|
|
1598
1633
|
`;
|
|
@@ -1622,6 +1657,76 @@ export function useFetchOpportunityLazyQuery(baseOptions?: Apollo.LazyQueryHookO
|
|
|
1622
1657
|
export type FetchOpportunityQueryHookResult = ReturnType<typeof useFetchOpportunityQuery>;
|
|
1623
1658
|
export type FetchOpportunityLazyQueryHookResult = ReturnType<typeof useFetchOpportunityLazyQuery>;
|
|
1624
1659
|
export type FetchOpportunityQueryResult = Apollo.QueryResult<IFetchOpportunityQuery, IFetchOpportunityQueryVariables>;
|
|
1660
|
+
export const FetchOpportunityBySlugDocument = gql`
|
|
1661
|
+
query FetchOpportunityBySlug($slug: String!) {
|
|
1662
|
+
fetchOpportunityBySlug(slug: $slug) {
|
|
1663
|
+
opportunityId
|
|
1664
|
+
projectId
|
|
1665
|
+
categoryId
|
|
1666
|
+
opportunityStatus
|
|
1667
|
+
opportunityType
|
|
1668
|
+
notificationType
|
|
1669
|
+
name
|
|
1670
|
+
description
|
|
1671
|
+
projectBlockchain
|
|
1672
|
+
projectContract
|
|
1673
|
+
projectName
|
|
1674
|
+
projectSlug
|
|
1675
|
+
categoryName
|
|
1676
|
+
ludoUrl
|
|
1677
|
+
projectUrl
|
|
1678
|
+
activeFrom
|
|
1679
|
+
activeUntil
|
|
1680
|
+
minXpLevel
|
|
1681
|
+
maxXpLevel
|
|
1682
|
+
minRank
|
|
1683
|
+
maxRank
|
|
1684
|
+
media
|
|
1685
|
+
reportLink
|
|
1686
|
+
clicks
|
|
1687
|
+
views
|
|
1688
|
+
blockchain
|
|
1689
|
+
blockchains
|
|
1690
|
+
collection
|
|
1691
|
+
createdAt
|
|
1692
|
+
minWalletValue
|
|
1693
|
+
maxWalletValue
|
|
1694
|
+
shareLink
|
|
1695
|
+
liked
|
|
1696
|
+
geolocations
|
|
1697
|
+
subscribed
|
|
1698
|
+
participantsLimit
|
|
1699
|
+
availablePlacesForAirdrop
|
|
1700
|
+
slug
|
|
1701
|
+
}
|
|
1702
|
+
}
|
|
1703
|
+
`;
|
|
1704
|
+
|
|
1705
|
+
/**
|
|
1706
|
+
* __useFetchOpportunityBySlugQuery__
|
|
1707
|
+
*
|
|
1708
|
+
* To run a query within a React component, call `useFetchOpportunityBySlugQuery` and pass it any options that fit your needs.
|
|
1709
|
+
* When your component renders, `useFetchOpportunityBySlugQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1710
|
+
* you can use to render your UI.
|
|
1711
|
+
*
|
|
1712
|
+
* @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;
|
|
1713
|
+
*
|
|
1714
|
+
* @example
|
|
1715
|
+
* const { data, loading, error } = useFetchOpportunityBySlugQuery({
|
|
1716
|
+
* variables: {
|
|
1717
|
+
* slug: // value for 'slug'
|
|
1718
|
+
* },
|
|
1719
|
+
* });
|
|
1720
|
+
*/
|
|
1721
|
+
export function useFetchOpportunityBySlugQuery(baseOptions: Apollo.QueryHookOptions<IFetchOpportunityBySlugQuery, IFetchOpportunityBySlugQueryVariables>) {
|
|
1722
|
+
return Apollo.useQuery<IFetchOpportunityBySlugQuery, IFetchOpportunityBySlugQueryVariables>(FetchOpportunityBySlugDocument, baseOptions);
|
|
1723
|
+
}
|
|
1724
|
+
export function useFetchOpportunityBySlugLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchOpportunityBySlugQuery, IFetchOpportunityBySlugQueryVariables>) {
|
|
1725
|
+
return Apollo.useLazyQuery<IFetchOpportunityBySlugQuery, IFetchOpportunityBySlugQueryVariables>(FetchOpportunityBySlugDocument, baseOptions);
|
|
1726
|
+
}
|
|
1727
|
+
export type FetchOpportunityBySlugQueryHookResult = ReturnType<typeof useFetchOpportunityBySlugQuery>;
|
|
1728
|
+
export type FetchOpportunityBySlugLazyQueryHookResult = ReturnType<typeof useFetchOpportunityBySlugLazyQuery>;
|
|
1729
|
+
export type FetchOpportunityBySlugQueryResult = Apollo.QueryResult<IFetchOpportunityBySlugQuery, IFetchOpportunityBySlugQueryVariables>;
|
|
1625
1730
|
export const FetchProfileOpportunitiesDocument = gql`
|
|
1626
1731
|
query FetchProfileOpportunities {
|
|
1627
1732
|
fetchProfileOpportunities {
|
|
@@ -1663,6 +1768,7 @@ export const FetchProfileOpportunitiesDocument = gql`
|
|
|
1663
1768
|
subscribed
|
|
1664
1769
|
participantsLimit
|
|
1665
1770
|
availablePlacesForAirdrop
|
|
1771
|
+
slug
|
|
1666
1772
|
}
|
|
1667
1773
|
recentOpportunities {
|
|
1668
1774
|
opportunityId
|
|
@@ -1702,6 +1808,7 @@ export const FetchProfileOpportunitiesDocument = gql`
|
|
|
1702
1808
|
subscribed
|
|
1703
1809
|
participantsLimit
|
|
1704
1810
|
availablePlacesForAirdrop
|
|
1811
|
+
slug
|
|
1705
1812
|
}
|
|
1706
1813
|
eventOpportunities {
|
|
1707
1814
|
opportunityId
|
|
@@ -1741,6 +1848,7 @@ export const FetchProfileOpportunitiesDocument = gql`
|
|
|
1741
1848
|
subscribed
|
|
1742
1849
|
participantsLimit
|
|
1743
1850
|
availablePlacesForAirdrop
|
|
1851
|
+
slug
|
|
1744
1852
|
}
|
|
1745
1853
|
}
|
|
1746
1854
|
}
|