@ludo.ninja/api 3.0.71 → 3.0.72
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 +61 -10
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +73 -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 +116 -10
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -129,6 +129,27 @@ export type IAdminInvite = {
|
|
|
129
129
|
userXpLevel?: Maybe<Scalars['Int']>;
|
|
130
130
|
profileLink?: Maybe<IReferralLink>;
|
|
131
131
|
};
|
|
132
|
+
export type IAdminLeaderboardProject = {
|
|
133
|
+
id: Scalars['String'];
|
|
134
|
+
name?: Maybe<Scalars['String']>;
|
|
135
|
+
rank?: Maybe<Scalars['Float']>;
|
|
136
|
+
rankHourDifference?: Maybe<Scalars['Float']>;
|
|
137
|
+
rankDayDifference?: Maybe<Scalars['Float']>;
|
|
138
|
+
rankWeekDifference?: Maybe<Scalars['Float']>;
|
|
139
|
+
price?: Maybe<Scalars['Float']>;
|
|
140
|
+
hidden?: Maybe<Scalars['Boolean']>;
|
|
141
|
+
};
|
|
142
|
+
export type IAdminLeaderboardProjectsFilterInput = {
|
|
143
|
+
nameTerm?: Maybe<Scalars['String']>;
|
|
144
|
+
rank?: Maybe<Scalars['Float']>;
|
|
145
|
+
rankDayDifference?: Maybe<Scalars['Float']>;
|
|
146
|
+
rankWeekDifference?: Maybe<Scalars['Float']>;
|
|
147
|
+
price?: Maybe<Scalars['Float']>;
|
|
148
|
+
};
|
|
149
|
+
export type IAdminLeaderboardProjectsPage = {
|
|
150
|
+
projects: Array<IAdminLeaderboardProject>;
|
|
151
|
+
nextPage?: Maybe<IAdminPage>;
|
|
152
|
+
};
|
|
132
153
|
export type IAdminOpportunity = {
|
|
133
154
|
opportunityId: Scalars['ID'];
|
|
134
155
|
projectId?: Maybe<Scalars['String']>;
|
|
@@ -167,10 +188,11 @@ export type IAdminOpportunity = {
|
|
|
167
188
|
encodePayload?: Maybe<Scalars['Boolean']>;
|
|
168
189
|
payloadTypes?: Maybe<Array<Maybe<IPayloadType>>>;
|
|
169
190
|
parentOpportunityId?: Maybe<Scalars['String']>;
|
|
191
|
+
slug?: Maybe<Scalars['String']>;
|
|
170
192
|
};
|
|
171
193
|
export type IAdminOpportunityInput = {
|
|
172
|
-
projectId
|
|
173
|
-
categoryId
|
|
194
|
+
projectId?: Maybe<Scalars['String']>;
|
|
195
|
+
categoryId?: Maybe<Scalars['String']>;
|
|
174
196
|
status: Scalars['String'];
|
|
175
197
|
pushNotificationsEnabled: Scalars['Boolean'];
|
|
176
198
|
name: Scalars['String'];
|
|
@@ -198,6 +220,7 @@ export type IAdminOpportunityInput = {
|
|
|
198
220
|
encodePayload?: Maybe<Scalars['Boolean']>;
|
|
199
221
|
payloadTypes?: Maybe<Array<Maybe<IPayloadType>>>;
|
|
200
222
|
parentOpportunityId?: Maybe<Scalars['String']>;
|
|
223
|
+
slug?: Maybe<Scalars['String']>;
|
|
201
224
|
};
|
|
202
225
|
export type IAdminPage = {
|
|
203
226
|
num?: Maybe<Scalars['Int']>;
|
|
@@ -816,6 +839,7 @@ export type IQuery = {
|
|
|
816
839
|
fetchAdminAirdropsPage: IOpportunitiesPage;
|
|
817
840
|
fetchAdminOpportunitiesByType?: Maybe<Array<Maybe<IAdminOpportunity>>>;
|
|
818
841
|
fetchProjectsPage: IAdminProjectsPage;
|
|
842
|
+
fetchLeaderboardProjectsPage: IAdminLeaderboardProjectsPage;
|
|
819
843
|
fetchAdminReferralsPage: IReferralsPage;
|
|
820
844
|
fetchUnarchivedReferralTypes: Array<IReferralType>;
|
|
821
845
|
fetchReferralTypesPage: IReferralTypesPage;
|
|
@@ -902,6 +926,10 @@ export type IQueryFetchProjectsPageArgs = {
|
|
|
902
926
|
filter: IAdminProjectsFilterInput;
|
|
903
927
|
page: IAdminPageInput;
|
|
904
928
|
};
|
|
929
|
+
export type IQueryFetchLeaderboardProjectsPageArgs = {
|
|
930
|
+
filter: IAdminLeaderboardProjectsFilterInput;
|
|
931
|
+
page: IAdminPageInput;
|
|
932
|
+
};
|
|
905
933
|
export type IQueryFetchAdminReferralsPageArgs = {
|
|
906
934
|
filter: IReferralsFilterInput;
|
|
907
935
|
sort: IReferralsSortInput;
|
|
@@ -1211,6 +1239,9 @@ export type IResolversTypes = {
|
|
|
1211
1239
|
AdminFormOpportunity: ResolverTypeWrapper<IAdminFormOpportunity>;
|
|
1212
1240
|
AdminInvestorInquiry: ResolverTypeWrapper<IAdminInvestorInquiry>;
|
|
1213
1241
|
AdminInvite: ResolverTypeWrapper<IAdminInvite>;
|
|
1242
|
+
AdminLeaderboardProject: ResolverTypeWrapper<IAdminLeaderboardProject>;
|
|
1243
|
+
AdminLeaderboardProjectsFilterInput: IAdminLeaderboardProjectsFilterInput;
|
|
1244
|
+
AdminLeaderboardProjectsPage: ResolverTypeWrapper<IAdminLeaderboardProjectsPage>;
|
|
1214
1245
|
AdminOpportunity: ResolverTypeWrapper<IAdminOpportunity>;
|
|
1215
1246
|
ID: ResolverTypeWrapper<Scalars['ID']>;
|
|
1216
1247
|
AdminOpportunityInput: IAdminOpportunityInput;
|
|
@@ -1331,6 +1362,9 @@ export type IResolversParentTypes = {
|
|
|
1331
1362
|
AdminFormOpportunity: IAdminFormOpportunity;
|
|
1332
1363
|
AdminInvestorInquiry: IAdminInvestorInquiry;
|
|
1333
1364
|
AdminInvite: IAdminInvite;
|
|
1365
|
+
AdminLeaderboardProject: IAdminLeaderboardProject;
|
|
1366
|
+
AdminLeaderboardProjectsFilterInput: IAdminLeaderboardProjectsFilterInput;
|
|
1367
|
+
AdminLeaderboardProjectsPage: IAdminLeaderboardProjectsPage;
|
|
1334
1368
|
AdminOpportunity: IAdminOpportunity;
|
|
1335
1369
|
ID: Scalars['ID'];
|
|
1336
1370
|
AdminOpportunityInput: IAdminOpportunityInput;
|
|
@@ -1532,6 +1566,22 @@ export type IAdminInviteResolvers<ContextType = any, ParentType extends IResolve
|
|
|
1532
1566
|
profileLink?: Resolver<Maybe<IResolversTypes['ReferralLink']>, ParentType, ContextType>;
|
|
1533
1567
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1534
1568
|
};
|
|
1569
|
+
export type IAdminLeaderboardProjectResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminLeaderboardProject'] = IResolversParentTypes['AdminLeaderboardProject']> = {
|
|
1570
|
+
id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
1571
|
+
name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1572
|
+
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
1573
|
+
rankHourDifference?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
1574
|
+
rankDayDifference?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
1575
|
+
rankWeekDifference?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
1576
|
+
price?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
1577
|
+
hidden?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
1578
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1579
|
+
};
|
|
1580
|
+
export type IAdminLeaderboardProjectsPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminLeaderboardProjectsPage'] = IResolversParentTypes['AdminLeaderboardProjectsPage']> = {
|
|
1581
|
+
projects?: Resolver<Array<IResolversTypes['AdminLeaderboardProject']>, ParentType, ContextType>;
|
|
1582
|
+
nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
|
|
1583
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1584
|
+
};
|
|
1535
1585
|
export type IAdminOpportunityResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminOpportunity'] = IResolversParentTypes['AdminOpportunity']> = {
|
|
1536
1586
|
opportunityId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
1537
1587
|
projectId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -1570,6 +1620,7 @@ export type IAdminOpportunityResolvers<ContextType = any, ParentType extends IRe
|
|
|
1570
1620
|
encodePayload?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
1571
1621
|
payloadTypes?: Resolver<Maybe<Array<Maybe<IResolversTypes['PayloadType']>>>, ParentType, ContextType>;
|
|
1572
1622
|
parentOpportunityId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1623
|
+
slug?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
1573
1624
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1574
1625
|
};
|
|
1575
1626
|
export type IAdminPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['AdminPage'] = IResolversParentTypes['AdminPage']> = {
|
|
@@ -1811,6 +1862,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
1811
1862
|
fetchAdminAirdropsPage?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminAirdropsPageArgs, 'filter' | 'page'>>;
|
|
1812
1863
|
fetchAdminOpportunitiesByType?: Resolver<Maybe<Array<Maybe<IResolversTypes['AdminOpportunity']>>>, ParentType, ContextType, RequireFields<IQueryFetchAdminOpportunitiesByTypeArgs, 'type'>>;
|
|
1813
1864
|
fetchProjectsPage?: Resolver<IResolversTypes['AdminProjectsPage'], ParentType, ContextType, RequireFields<IQueryFetchProjectsPageArgs, 'filter' | 'page'>>;
|
|
1865
|
+
fetchLeaderboardProjectsPage?: Resolver<IResolversTypes['AdminLeaderboardProjectsPage'], ParentType, ContextType, RequireFields<IQueryFetchLeaderboardProjectsPageArgs, 'filter' | 'page'>>;
|
|
1814
1866
|
fetchAdminReferralsPage?: Resolver<IResolversTypes['ReferralsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminReferralsPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
1815
1867
|
fetchUnarchivedReferralTypes?: Resolver<Array<IResolversTypes['ReferralType']>, ParentType, ContextType>;
|
|
1816
1868
|
fetchReferralTypesPage?: Resolver<IResolversTypes['ReferralTypesPage'], ParentType, ContextType, RequireFields<IQueryFetchReferralTypesPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
@@ -1936,6 +1988,8 @@ export type IResolvers<ContextType = any> = {
|
|
|
1936
1988
|
AdminFormOpportunity?: IAdminFormOpportunityResolvers<ContextType>;
|
|
1937
1989
|
AdminInvestorInquiry?: IAdminInvestorInquiryResolvers<ContextType>;
|
|
1938
1990
|
AdminInvite?: IAdminInviteResolvers<ContextType>;
|
|
1991
|
+
AdminLeaderboardProject?: IAdminLeaderboardProjectResolvers<ContextType>;
|
|
1992
|
+
AdminLeaderboardProjectsPage?: IAdminLeaderboardProjectsPageResolvers<ContextType>;
|
|
1939
1993
|
AdminOpportunity?: IAdminOpportunityResolvers<ContextType>;
|
|
1940
1994
|
AdminPage?: IAdminPageResolvers<ContextType>;
|
|
1941
1995
|
AdminPartnershipInquiry?: IAdminPartnershipInquiryResolvers<ContextType>;
|
|
@@ -2318,7 +2372,7 @@ export type IFetchAdminOpportunitiesPageQueryVariables = Exact<{
|
|
|
2318
2372
|
}>;
|
|
2319
2373
|
export type IFetchAdminOpportunitiesPageQuery = {
|
|
2320
2374
|
fetchAdminOpportunitiesPage: {
|
|
2321
|
-
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'>>;
|
|
2375
|
+
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'>>;
|
|
2322
2376
|
nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>>;
|
|
2323
2377
|
};
|
|
2324
2378
|
};
|
|
@@ -74,6 +74,8 @@ export type IMutation = {
|
|
|
74
74
|
dislikeOpportunity: Scalars['Boolean'];
|
|
75
75
|
registerForAirdrop: Scalars['Boolean'];
|
|
76
76
|
registerForAirdrop2: Scalars['String'];
|
|
77
|
+
registerForEventAirdrop: Scalars['String'];
|
|
78
|
+
registerForEvent: Scalars['Boolean'];
|
|
77
79
|
copyOpportunityShareLink: Scalars['Boolean'];
|
|
78
80
|
registerNewProject: Scalars['Boolean'];
|
|
79
81
|
reactOnProject: Scalars['Boolean'];
|
|
@@ -121,6 +123,14 @@ export type IMutationRegisterForAirdrop2Args = {
|
|
|
121
123
|
blockchain: Scalars['String'];
|
|
122
124
|
address: Scalars['String'];
|
|
123
125
|
};
|
|
126
|
+
export type IMutationRegisterForEventAirdropArgs = {
|
|
127
|
+
opportunityId: Scalars['String'];
|
|
128
|
+
};
|
|
129
|
+
export type IMutationRegisterForEventArgs = {
|
|
130
|
+
opportunityId: Scalars['String'];
|
|
131
|
+
blockchain: Scalars['String'];
|
|
132
|
+
address: Scalars['String'];
|
|
133
|
+
};
|
|
124
134
|
export type IMutationCopyOpportunityShareLinkArgs = {
|
|
125
135
|
opportunityId: Scalars['ID'];
|
|
126
136
|
};
|
|
@@ -194,8 +204,8 @@ export declare enum IOpportunityType {
|
|
|
194
204
|
}
|
|
195
205
|
export type IOpportunityV2 = {
|
|
196
206
|
opportunityId: Scalars['ID'];
|
|
197
|
-
projectId
|
|
198
|
-
categoryId
|
|
207
|
+
projectId?: Maybe<Scalars['String']>;
|
|
208
|
+
categoryId?: Maybe<Scalars['String']>;
|
|
199
209
|
opportunityStatus: Scalars['String'];
|
|
200
210
|
opportunityType: IOpportunityType;
|
|
201
211
|
notificationType: Scalars['String'];
|
|
@@ -227,10 +237,11 @@ export type IOpportunityV2 = {
|
|
|
227
237
|
shareLink?: Maybe<Scalars['String']>;
|
|
228
238
|
liked?: Maybe<Scalars['Boolean']>;
|
|
229
239
|
geolocations?: Maybe<Array<Scalars['String']>>;
|
|
230
|
-
project
|
|
240
|
+
project?: Maybe<IProject>;
|
|
231
241
|
subscribed?: Maybe<Scalars['Boolean']>;
|
|
232
242
|
participantsLimit?: Maybe<Scalars['Int']>;
|
|
233
243
|
availablePlacesForAirdrop?: Maybe<Scalars['Int']>;
|
|
244
|
+
slug?: Maybe<Scalars['String']>;
|
|
234
245
|
};
|
|
235
246
|
export type IProfileOpportunities = {
|
|
236
247
|
eventOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
@@ -310,6 +321,7 @@ export type IQuery = {
|
|
|
310
321
|
fetchOpportunitiesByIds: Array<IOpportunityV2>;
|
|
311
322
|
fetchOpportunitiesForWallet?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
312
323
|
fetchAirdropRegistrationsCsv: Scalars['String'];
|
|
324
|
+
fetchOpportunityBySlug: IOpportunityV2;
|
|
313
325
|
fetchProjectBySlug: IProject;
|
|
314
326
|
};
|
|
315
327
|
export type IQueryFetchBrandArgs = {
|
|
@@ -337,6 +349,9 @@ export type IQueryFetchOpportunitiesForWalletArgs = {
|
|
|
337
349
|
export type IQueryFetchAirdropRegistrationsCsvArgs = {
|
|
338
350
|
opportunityId: Scalars['ID'];
|
|
339
351
|
};
|
|
352
|
+
export type IQueryFetchOpportunityBySlugArgs = {
|
|
353
|
+
slug: Scalars['String'];
|
|
354
|
+
};
|
|
340
355
|
export type IQueryFetchProjectBySlugArgs = {
|
|
341
356
|
slug: Scalars['String'];
|
|
342
357
|
};
|
|
@@ -477,6 +492,8 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
477
492
|
dislikeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDislikeOpportunityArgs, 'opportunityId'>>;
|
|
478
493
|
registerForAirdrop?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRegisterForAirdropArgs, 'opportunityId' | 'blockchain' | 'address'>>;
|
|
479
494
|
registerForAirdrop2?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IMutationRegisterForAirdrop2Args, 'opportunityId' | 'blockchain' | 'address'>>;
|
|
495
|
+
registerForEventAirdrop?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IMutationRegisterForEventAirdropArgs, 'opportunityId'>>;
|
|
496
|
+
registerForEvent?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRegisterForEventArgs, 'opportunityId' | 'blockchain' | 'address'>>;
|
|
480
497
|
copyOpportunityShareLink?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCopyOpportunityShareLinkArgs, 'opportunityId'>>;
|
|
481
498
|
registerNewProject?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRegisterNewProjectArgs, 'input'>>;
|
|
482
499
|
reactOnProject?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationReactOnProjectArgs, 'input'>>;
|
|
@@ -518,8 +535,8 @@ export type IOpportunityResolvers<ContextType = any, ParentType extends IResolve
|
|
|
518
535
|
};
|
|
519
536
|
export type IOpportunityV2Resolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunityV2'] = IResolversParentTypes['OpportunityV2']> = {
|
|
520
537
|
opportunityId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
521
|
-
projectId?: Resolver<IResolversTypes['String']
|
|
522
|
-
categoryId?: Resolver<IResolversTypes['String']
|
|
538
|
+
projectId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
539
|
+
categoryId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
523
540
|
opportunityStatus?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
524
541
|
opportunityType?: Resolver<IResolversTypes['OpportunityType'], ParentType, ContextType>;
|
|
525
542
|
notificationType?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
@@ -551,10 +568,11 @@ export type IOpportunityV2Resolvers<ContextType = any, ParentType extends IResol
|
|
|
551
568
|
shareLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
552
569
|
liked?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
553
570
|
geolocations?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
|
|
554
|
-
project?: Resolver<IResolversTypes['Project']
|
|
571
|
+
project?: Resolver<Maybe<IResolversTypes['Project']>, ParentType, ContextType>;
|
|
555
572
|
subscribed?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
556
573
|
participantsLimit?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
557
574
|
availablePlacesForAirdrop?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
575
|
+
slug?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
558
576
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
559
577
|
};
|
|
560
578
|
export type IProfileOpportunitiesResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProfileOpportunities'] = IResolversParentTypes['ProfileOpportunities']> = {
|
|
@@ -631,6 +649,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
631
649
|
fetchOpportunitiesByIds?: Resolver<Array<IResolversTypes['OpportunityV2']>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesByIdsArgs, 'opportunityIds'>>;
|
|
632
650
|
fetchOpportunitiesForWallet?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesForWalletArgs, 'blockchain' | 'wallet'>>;
|
|
633
651
|
fetchAirdropRegistrationsCsv?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IQueryFetchAirdropRegistrationsCsvArgs, 'opportunityId'>>;
|
|
652
|
+
fetchOpportunityBySlug?: Resolver<IResolversTypes['OpportunityV2'], ParentType, ContextType, RequireFields<IQueryFetchOpportunityBySlugArgs, 'slug'>>;
|
|
634
653
|
fetchProjectBySlug?: Resolver<IResolversTypes['Project'], ParentType, ContextType, RequireFields<IQueryFetchProjectBySlugArgs, 'slug'>>;
|
|
635
654
|
};
|
|
636
655
|
export type IVotesGeolocationResolvers<ContextType = any, ParentType extends IResolversParentTypes['VotesGeolocation'] = IResolversParentTypes['VotesGeolocation']> = {
|
|
@@ -706,13 +725,13 @@ export type IFetchOpportunitiesByIdsQueryVariables = Exact<{
|
|
|
706
725
|
opportunityIds: Array<Scalars['ID']>;
|
|
707
726
|
}>;
|
|
708
727
|
export type IFetchOpportunitiesByIdsQuery = {
|
|
709
|
-
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'>>;
|
|
728
|
+
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'>>;
|
|
710
729
|
};
|
|
711
730
|
export type IFetchOpportunitiesForProfileQueryVariables = Exact<{
|
|
712
731
|
[key: string]: never;
|
|
713
732
|
}>;
|
|
714
733
|
export type IFetchOpportunitiesForProfileQuery = {
|
|
715
|
-
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'>>>;
|
|
734
|
+
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'>>>;
|
|
716
735
|
};
|
|
717
736
|
export type IFetchBrandBySlugQueryVariables = Exact<{
|
|
718
737
|
slug: Scalars['String'];
|
|
@@ -736,7 +755,13 @@ export type IFetchOpportunityQueryVariables = Exact<{
|
|
|
736
755
|
opportunityId: Scalars['ID'];
|
|
737
756
|
}>;
|
|
738
757
|
export type IFetchOpportunityQuery = {
|
|
739
|
-
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'>;
|
|
758
|
+
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'>;
|
|
759
|
+
};
|
|
760
|
+
export type IFetchOpportunityBySlugQueryVariables = Exact<{
|
|
761
|
+
slug: Scalars['String'];
|
|
762
|
+
}>;
|
|
763
|
+
export type IFetchOpportunityBySlugQuery = {
|
|
764
|
+
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'>;
|
|
740
765
|
};
|
|
741
766
|
export type IFetchProfileOpportunitiesQueryVariables = Exact<{
|
|
742
767
|
[key: string]: never;
|
|
@@ -745,7 +770,7 @@ export type IFetchProfileOpportunitiesQuery = {
|
|
|
745
770
|
fetchProfileOpportunities: {
|
|
746
771
|
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'>>>>;
|
|
747
772
|
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'>>>>;
|
|
748
|
-
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'>>>>;
|
|
773
|
+
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'>>>>;
|
|
749
774
|
};
|
|
750
775
|
};
|
|
751
776
|
export type IFetchProjectBySlugQueryVariables = Exact<{
|
|
@@ -1149,6 +1174,32 @@ export declare function useFetchOpportunityLazyQuery(baseOptions?: Apollo.LazyQu
|
|
|
1149
1174
|
export type FetchOpportunityQueryHookResult = ReturnType<typeof useFetchOpportunityQuery>;
|
|
1150
1175
|
export type FetchOpportunityLazyQueryHookResult = ReturnType<typeof useFetchOpportunityLazyQuery>;
|
|
1151
1176
|
export type FetchOpportunityQueryResult = Apollo.QueryResult<IFetchOpportunityQuery, IFetchOpportunityQueryVariables>;
|
|
1177
|
+
export declare const FetchOpportunityBySlugDocument: Apollo.DocumentNode;
|
|
1178
|
+
/**
|
|
1179
|
+
* __useFetchOpportunityBySlugQuery__
|
|
1180
|
+
*
|
|
1181
|
+
* To run a query within a React component, call `useFetchOpportunityBySlugQuery` and pass it any options that fit your needs.
|
|
1182
|
+
* When your component renders, `useFetchOpportunityBySlugQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1183
|
+
* you can use to render your UI.
|
|
1184
|
+
*
|
|
1185
|
+
* @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;
|
|
1186
|
+
*
|
|
1187
|
+
* @example
|
|
1188
|
+
* const { data, loading, error } = useFetchOpportunityBySlugQuery({
|
|
1189
|
+
* variables: {
|
|
1190
|
+
* slug: // value for 'slug'
|
|
1191
|
+
* },
|
|
1192
|
+
* });
|
|
1193
|
+
*/
|
|
1194
|
+
export declare function useFetchOpportunityBySlugQuery(baseOptions: Apollo.QueryHookOptions<IFetchOpportunityBySlugQuery, IFetchOpportunityBySlugQueryVariables>): Apollo.QueryResult<IFetchOpportunityBySlugQuery, Exact<{
|
|
1195
|
+
slug: string;
|
|
1196
|
+
}>>;
|
|
1197
|
+
export declare function useFetchOpportunityBySlugLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchOpportunityBySlugQuery, IFetchOpportunityBySlugQueryVariables>): Apollo.LazyQueryResultTuple<IFetchOpportunityBySlugQuery, Exact<{
|
|
1198
|
+
slug: string;
|
|
1199
|
+
}>>;
|
|
1200
|
+
export type FetchOpportunityBySlugQueryHookResult = ReturnType<typeof useFetchOpportunityBySlugQuery>;
|
|
1201
|
+
export type FetchOpportunityBySlugLazyQueryHookResult = ReturnType<typeof useFetchOpportunityBySlugLazyQuery>;
|
|
1202
|
+
export type FetchOpportunityBySlugQueryResult = Apollo.QueryResult<IFetchOpportunityBySlugQuery, IFetchOpportunityBySlugQueryVariables>;
|
|
1152
1203
|
export declare const FetchProfileOpportunitiesDocument: Apollo.DocumentNode;
|
|
1153
1204
|
/**
|
|
1154
1205
|
* __useFetchProfileOpportunitiesQuery__
|
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.useFetchProjectBySlugLazyQuery = exports.useFetchProjectBySlugQuery = exports.FetchProjectBySlugDocument = exports.useFetchProfileOpportunitiesLazyQuery = exports.useFetchProfileOpportunitiesQuery = exports.FetchProfileOpportunitiesDocument = exports.useFetchOpportunityLazyQuery = exports.useFetchOpportunityQuery = exports.FetchOpportunityDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useFetchBrandBySlugLazyQuery = exports.useFetchBrandBySlugQuery = exports.FetchBrandBySlugDocument = exports.useFetchOpportunitiesForProfileLazyQuery = exports.useFetchOpportunitiesForProfileQuery = exports.FetchOpportunitiesForProfileDocument = exports.useFetchOpportunitiesByIdsLazyQuery = exports.useFetchOpportunitiesByIdsQuery = exports.FetchOpportunitiesByIdsDocument = exports.useFetchAirdropRegistrationsCsvLazyQuery = exports.useFetchAirdropRegistrationsCsvQuery = exports.FetchAirdropRegistrationsCsvDocument = exports.useRegisterNewProjectMutation = exports.RegisterNewProjectDocument = exports.useRegisterForAirdrop2Mutation = exports.RegisterForAirdrop2Document = exports.useRegisterForAirdropMutation = exports.RegisterForAirdropDocument = exports.useReactOnProjectMutation = exports.ReactOnProjectDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useCopyOpportunityShareLinkMutation = exports.CopyOpportunityShareLinkDocument = exports.useLikeOpportunityMutation = exports.LikeOpportunityDocument = exports.useDislikeOpportunityMutation = exports.DislikeOpportunityDocument = exports.IReactionType = exports.IOpportunityType = void 0;
|
|
26
|
+
exports.useFetchProjectBySlugLazyQuery = exports.useFetchProjectBySlugQuery = exports.FetchProjectBySlugDocument = exports.useFetchProfileOpportunitiesLazyQuery = exports.useFetchProfileOpportunitiesQuery = exports.FetchProfileOpportunitiesDocument = exports.useFetchOpportunityBySlugLazyQuery = exports.useFetchOpportunityBySlugQuery = exports.FetchOpportunityBySlugDocument = exports.useFetchOpportunityLazyQuery = exports.useFetchOpportunityQuery = exports.FetchOpportunityDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useFetchBrandBySlugLazyQuery = exports.useFetchBrandBySlugQuery = exports.FetchBrandBySlugDocument = exports.useFetchOpportunitiesForProfileLazyQuery = exports.useFetchOpportunitiesForProfileQuery = exports.FetchOpportunitiesForProfileDocument = exports.useFetchOpportunitiesByIdsLazyQuery = exports.useFetchOpportunitiesByIdsQuery = exports.FetchOpportunitiesByIdsDocument = exports.useFetchAirdropRegistrationsCsvLazyQuery = exports.useFetchAirdropRegistrationsCsvQuery = exports.FetchAirdropRegistrationsCsvDocument = exports.useRegisterNewProjectMutation = exports.RegisterNewProjectDocument = exports.useRegisterForAirdrop2Mutation = exports.RegisterForAirdrop2Document = exports.useRegisterForAirdropMutation = exports.RegisterForAirdropDocument = exports.useReactOnProjectMutation = exports.ReactOnProjectDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useCopyOpportunityShareLinkMutation = exports.CopyOpportunityShareLinkDocument = exports.useLikeOpportunityMutation = exports.LikeOpportunityDocument = exports.useDislikeOpportunityMutation = exports.DislikeOpportunityDocument = exports.IReactionType = exports.IOpportunityType = void 0;
|
|
27
27
|
const client_1 = require("@apollo/client");
|
|
28
28
|
const Apollo = __importStar(require("@apollo/client"));
|
|
29
29
|
var IOpportunityType;
|
|
@@ -354,6 +354,7 @@ exports.FetchOpportunitiesByIdsDocument = (0, client_1.gql) `
|
|
|
354
354
|
subscribed
|
|
355
355
|
participantsLimit
|
|
356
356
|
availablePlacesForAirdrop
|
|
357
|
+
slug
|
|
357
358
|
}
|
|
358
359
|
}
|
|
359
360
|
`;
|
|
@@ -421,6 +422,7 @@ exports.FetchOpportunitiesForProfileDocument = (0, client_1.gql) `
|
|
|
421
422
|
subscribed
|
|
422
423
|
participantsLimit
|
|
423
424
|
availablePlacesForAirdrop
|
|
425
|
+
slug
|
|
424
426
|
}
|
|
425
427
|
}
|
|
426
428
|
`;
|
|
@@ -678,6 +680,7 @@ exports.FetchOpportunityDocument = (0, client_1.gql) `
|
|
|
678
680
|
subscribed
|
|
679
681
|
participantsLimit
|
|
680
682
|
availablePlacesForAirdrop
|
|
683
|
+
slug
|
|
681
684
|
}
|
|
682
685
|
}
|
|
683
686
|
`;
|
|
@@ -705,6 +708,74 @@ function useFetchOpportunityLazyQuery(baseOptions) {
|
|
|
705
708
|
return Apollo.useLazyQuery(exports.FetchOpportunityDocument, baseOptions);
|
|
706
709
|
}
|
|
707
710
|
exports.useFetchOpportunityLazyQuery = useFetchOpportunityLazyQuery;
|
|
711
|
+
exports.FetchOpportunityBySlugDocument = (0, client_1.gql) `
|
|
712
|
+
query FetchOpportunityBySlug($slug: String!) {
|
|
713
|
+
fetchOpportunityBySlug(slug: $slug) {
|
|
714
|
+
opportunityId
|
|
715
|
+
projectId
|
|
716
|
+
categoryId
|
|
717
|
+
opportunityStatus
|
|
718
|
+
opportunityType
|
|
719
|
+
notificationType
|
|
720
|
+
name
|
|
721
|
+
description
|
|
722
|
+
projectBlockchain
|
|
723
|
+
projectContract
|
|
724
|
+
projectName
|
|
725
|
+
projectSlug
|
|
726
|
+
categoryName
|
|
727
|
+
ludoUrl
|
|
728
|
+
projectUrl
|
|
729
|
+
activeFrom
|
|
730
|
+
activeUntil
|
|
731
|
+
minXpLevel
|
|
732
|
+
maxXpLevel
|
|
733
|
+
minRank
|
|
734
|
+
maxRank
|
|
735
|
+
media
|
|
736
|
+
reportLink
|
|
737
|
+
clicks
|
|
738
|
+
views
|
|
739
|
+
blockchain
|
|
740
|
+
blockchains
|
|
741
|
+
collection
|
|
742
|
+
createdAt
|
|
743
|
+
minWalletValue
|
|
744
|
+
maxWalletValue
|
|
745
|
+
shareLink
|
|
746
|
+
liked
|
|
747
|
+
geolocations
|
|
748
|
+
subscribed
|
|
749
|
+
participantsLimit
|
|
750
|
+
availablePlacesForAirdrop
|
|
751
|
+
slug
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
`;
|
|
755
|
+
/**
|
|
756
|
+
* __useFetchOpportunityBySlugQuery__
|
|
757
|
+
*
|
|
758
|
+
* To run a query within a React component, call `useFetchOpportunityBySlugQuery` and pass it any options that fit your needs.
|
|
759
|
+
* When your component renders, `useFetchOpportunityBySlugQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
760
|
+
* you can use to render your UI.
|
|
761
|
+
*
|
|
762
|
+
* @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;
|
|
763
|
+
*
|
|
764
|
+
* @example
|
|
765
|
+
* const { data, loading, error } = useFetchOpportunityBySlugQuery({
|
|
766
|
+
* variables: {
|
|
767
|
+
* slug: // value for 'slug'
|
|
768
|
+
* },
|
|
769
|
+
* });
|
|
770
|
+
*/
|
|
771
|
+
function useFetchOpportunityBySlugQuery(baseOptions) {
|
|
772
|
+
return Apollo.useQuery(exports.FetchOpportunityBySlugDocument, baseOptions);
|
|
773
|
+
}
|
|
774
|
+
exports.useFetchOpportunityBySlugQuery = useFetchOpportunityBySlugQuery;
|
|
775
|
+
function useFetchOpportunityBySlugLazyQuery(baseOptions) {
|
|
776
|
+
return Apollo.useLazyQuery(exports.FetchOpportunityBySlugDocument, baseOptions);
|
|
777
|
+
}
|
|
778
|
+
exports.useFetchOpportunityBySlugLazyQuery = useFetchOpportunityBySlugLazyQuery;
|
|
708
779
|
exports.FetchProfileOpportunitiesDocument = (0, client_1.gql) `
|
|
709
780
|
query FetchProfileOpportunities {
|
|
710
781
|
fetchProfileOpportunities {
|
|
@@ -824,6 +895,7 @@ exports.FetchProfileOpportunitiesDocument = (0, client_1.gql) `
|
|
|
824
895
|
subscribed
|
|
825
896
|
participantsLimit
|
|
826
897
|
availablePlacesForAirdrop
|
|
898
|
+
slug
|
|
827
899
|
}
|
|
828
900
|
}
|
|
829
901
|
}
|
package/build/index.d.ts
CHANGED
|
@@ -790,6 +790,16 @@ declare const schema: {
|
|
|
790
790
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchOpportunityQuery, opportunitiesSchema.Exact<{
|
|
791
791
|
opportunityId: string;
|
|
792
792
|
}>>;
|
|
793
|
+
useFetchOpportunityBySlugQuery(baseOptions: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchOpportunityBySlugQuery, opportunitiesSchema.Exact<{
|
|
794
|
+
slug: string;
|
|
795
|
+
}>>): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchOpportunityBySlugQuery, opportunitiesSchema.Exact<{
|
|
796
|
+
slug: string;
|
|
797
|
+
}>>;
|
|
798
|
+
useFetchOpportunityBySlugLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<opportunitiesSchema.IFetchOpportunityBySlugQuery, opportunitiesSchema.Exact<{
|
|
799
|
+
slug: string;
|
|
800
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchOpportunityBySlugQuery, opportunitiesSchema.Exact<{
|
|
801
|
+
slug: string;
|
|
802
|
+
}>>;
|
|
793
803
|
useFetchProjectBySlugQuery(baseOptions: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchProjectBySlugQuery, opportunitiesSchema.Exact<{
|
|
794
804
|
slug: string;
|
|
795
805
|
}>>): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchProjectBySlugQuery, opportunitiesSchema.Exact<{
|
|
@@ -816,6 +826,7 @@ declare const schema: {
|
|
|
816
826
|
FetchOpportunitiesForProfileDocument: import("graphql").DocumentNode;
|
|
817
827
|
FetchBrandBySlugDocument: import("graphql").DocumentNode;
|
|
818
828
|
FetchOpportunityDocument: import("graphql").DocumentNode;
|
|
829
|
+
FetchOpportunityBySlugDocument: import("graphql").DocumentNode;
|
|
819
830
|
FetchProjectBySlugDocument: import("graphql").DocumentNode;
|
|
820
831
|
useDeleteGalleryBannerMutation(baseOptions?: import("@apollo/client").MutationHookOptions<mediasSchema.IDeleteGalleryBannerMutation, mediasSchema.Exact<{
|
|
821
832
|
galleryId: string;
|