@ludo.ninja/api 3.0.17 → 3.0.18
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__/opportunitiesHost/schema.d.ts +53 -0
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +100 -1
- package/build/index.d.ts +11 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +130 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -205,6 +205,10 @@ export type IOpportunityV2 = {
|
|
|
205
205
|
brand: IBrand;
|
|
206
206
|
subscribed?: Maybe<Scalars['Boolean']>;
|
|
207
207
|
};
|
|
208
|
+
export type IProfileOpportunities = {
|
|
209
|
+
newOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
210
|
+
recentOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
211
|
+
};
|
|
208
212
|
export type IQuery = {
|
|
209
213
|
getDummy: Scalars['String'];
|
|
210
214
|
fetchBrands?: Maybe<Array<Maybe<IBrand>>>;
|
|
@@ -214,9 +218,11 @@ export type IQuery = {
|
|
|
214
218
|
fetchOpportunities: IOpportunitiesPage;
|
|
215
219
|
fetchOpportunitiesV2?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
216
220
|
fetchOpportunitiesForProfile: Array<Maybe<IOpportunityV2>>;
|
|
221
|
+
fetchProfileOpportunities: IProfileOpportunities;
|
|
217
222
|
fetchOpportunity: IOpportunityV2;
|
|
218
223
|
fetchOpportunitiesByIds: Array<IOpportunityV2>;
|
|
219
224
|
fetchOpportunitiesForWallet?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
225
|
+
fetchAirdropRegistrationsCsv: Scalars['String'];
|
|
220
226
|
};
|
|
221
227
|
export type IQueryFetchBrandArgs = {
|
|
222
228
|
brandId: Scalars['ID'];
|
|
@@ -237,6 +243,9 @@ export type IQueryFetchOpportunitiesForWalletArgs = {
|
|
|
237
243
|
blockchain: Scalars['String'];
|
|
238
244
|
wallet: Scalars['String'];
|
|
239
245
|
};
|
|
246
|
+
export type IQueryFetchAirdropRegistrationsCsvArgs = {
|
|
247
|
+
opportunityId: Scalars['ID'];
|
|
248
|
+
};
|
|
240
249
|
export type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
241
250
|
export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
242
251
|
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
|
@@ -280,6 +289,7 @@ export type IResolversTypes = {
|
|
|
280
289
|
OpportunityInput: IOpportunityInput;
|
|
281
290
|
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
282
291
|
OpportunityV2: ResolverTypeWrapper<IOpportunityV2>;
|
|
292
|
+
ProfileOpportunities: ResolverTypeWrapper<IProfileOpportunities>;
|
|
283
293
|
Query: ResolverTypeWrapper<{}>;
|
|
284
294
|
};
|
|
285
295
|
/** Mapping between all available schema types and the resolvers parents */
|
|
@@ -299,6 +309,7 @@ export type IResolversParentTypes = {
|
|
|
299
309
|
OpportunityInput: IOpportunityInput;
|
|
300
310
|
Float: Scalars['Float'];
|
|
301
311
|
OpportunityV2: IOpportunityV2;
|
|
312
|
+
ProfileOpportunities: IProfileOpportunities;
|
|
302
313
|
Query: {};
|
|
303
314
|
};
|
|
304
315
|
export type IOneOfDirectiveArgs = {};
|
|
@@ -419,6 +430,11 @@ export type IOpportunityV2Resolvers<ContextType = any, ParentType extends IResol
|
|
|
419
430
|
subscribed?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
420
431
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
421
432
|
};
|
|
433
|
+
export type IProfileOpportunitiesResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProfileOpportunities'] = IResolversParentTypes['ProfileOpportunities']> = {
|
|
434
|
+
newOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
435
|
+
recentOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
436
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
437
|
+
};
|
|
422
438
|
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
423
439
|
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
424
440
|
fetchBrands?: Resolver<Maybe<Array<Maybe<IResolversTypes['Brand']>>>, ParentType, ContextType>;
|
|
@@ -428,9 +444,11 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
428
444
|
fetchOpportunities?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, Partial<IQueryFetchOpportunitiesArgs>>;
|
|
429
445
|
fetchOpportunitiesV2?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
430
446
|
fetchOpportunitiesForProfile?: Resolver<Array<Maybe<IResolversTypes['OpportunityV2']>>, ParentType, ContextType>;
|
|
447
|
+
fetchProfileOpportunities?: Resolver<IResolversTypes['ProfileOpportunities'], ParentType, ContextType>;
|
|
431
448
|
fetchOpportunity?: Resolver<IResolversTypes['OpportunityV2'], ParentType, ContextType, RequireFields<IQueryFetchOpportunityArgs, 'opportunityId'>>;
|
|
432
449
|
fetchOpportunitiesByIds?: Resolver<Array<IResolversTypes['OpportunityV2']>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesByIdsArgs, 'opportunityIds'>>;
|
|
433
450
|
fetchOpportunitiesForWallet?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesForWalletArgs, 'blockchain' | 'wallet'>>;
|
|
451
|
+
fetchAirdropRegistrationsCsv?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IQueryFetchAirdropRegistrationsCsvArgs, 'opportunityId'>>;
|
|
434
452
|
};
|
|
435
453
|
export type IResolvers<ContextType = any> = {
|
|
436
454
|
Brand?: IBrandResolvers<ContextType>;
|
|
@@ -440,6 +458,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
440
458
|
OpportunitiesPage?: IOpportunitiesPageResolvers<ContextType>;
|
|
441
459
|
Opportunity?: IOpportunityResolvers<ContextType>;
|
|
442
460
|
OpportunityV2?: IOpportunityV2Resolvers<ContextType>;
|
|
461
|
+
ProfileOpportunities?: IProfileOpportunitiesResolvers<ContextType>;
|
|
443
462
|
Query?: IQueryResolvers<ContextType>;
|
|
444
463
|
};
|
|
445
464
|
export type IDirectiveResolvers<ContextType = any> = {
|
|
@@ -496,6 +515,15 @@ export type IFetchOpportunityQuery = {
|
|
|
496
515
|
brand: Pick<IBrand, 'brandId' | 'name' | 'description' | 'industry' | 'link' | 'media' | 'archived' | 'addedBy' | 'matchingWords' | 'discord' | 'telegram' | 'twitter' | 'facebook' | 'linkedin' | 'youtube'>;
|
|
497
516
|
});
|
|
498
517
|
};
|
|
518
|
+
export type IFetchProfileOpportunitiesQueryVariables = Exact<{
|
|
519
|
+
[key: string]: never;
|
|
520
|
+
}>;
|
|
521
|
+
export type IFetchProfileOpportunitiesQuery = {
|
|
522
|
+
fetchProfileOpportunities: {
|
|
523
|
+
newOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked'>>>>;
|
|
524
|
+
recentOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked'>>>>;
|
|
525
|
+
};
|
|
526
|
+
};
|
|
499
527
|
export declare const DislikeOpportunityDocument: Apollo.DocumentNode;
|
|
500
528
|
export type IDislikeOpportunityMutationFn = Apollo.MutationFunction<IDislikeOpportunityMutation, IDislikeOpportunityMutationVariables>;
|
|
501
529
|
/**
|
|
@@ -728,3 +756,28 @@ export declare function useFetchOpportunityLazyQuery(baseOptions?: Apollo.LazyQu
|
|
|
728
756
|
export type FetchOpportunityQueryHookResult = ReturnType<typeof useFetchOpportunityQuery>;
|
|
729
757
|
export type FetchOpportunityLazyQueryHookResult = ReturnType<typeof useFetchOpportunityLazyQuery>;
|
|
730
758
|
export type FetchOpportunityQueryResult = Apollo.QueryResult<IFetchOpportunityQuery, IFetchOpportunityQueryVariables>;
|
|
759
|
+
export declare const FetchProfileOpportunitiesDocument: Apollo.DocumentNode;
|
|
760
|
+
/**
|
|
761
|
+
* __useFetchProfileOpportunitiesQuery__
|
|
762
|
+
*
|
|
763
|
+
* To run a query within a React component, call `useFetchProfileOpportunitiesQuery` and pass it any options that fit your needs.
|
|
764
|
+
* When your component renders, `useFetchProfileOpportunitiesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
765
|
+
* you can use to render your UI.
|
|
766
|
+
*
|
|
767
|
+
* @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;
|
|
768
|
+
*
|
|
769
|
+
* @example
|
|
770
|
+
* const { data, loading, error } = useFetchProfileOpportunitiesQuery({
|
|
771
|
+
* variables: {
|
|
772
|
+
* },
|
|
773
|
+
* });
|
|
774
|
+
*/
|
|
775
|
+
export declare function useFetchProfileOpportunitiesQuery(baseOptions?: Apollo.QueryHookOptions<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>): Apollo.QueryResult<IFetchProfileOpportunitiesQuery, Exact<{
|
|
776
|
+
[key: string]: never;
|
|
777
|
+
}>>;
|
|
778
|
+
export declare function useFetchProfileOpportunitiesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>): Apollo.LazyQueryResultTuple<IFetchProfileOpportunitiesQuery, Exact<{
|
|
779
|
+
[key: string]: never;
|
|
780
|
+
}>>;
|
|
781
|
+
export type FetchProfileOpportunitiesQueryHookResult = ReturnType<typeof useFetchProfileOpportunitiesQuery>;
|
|
782
|
+
export type FetchProfileOpportunitiesLazyQueryHookResult = ReturnType<typeof useFetchProfileOpportunitiesLazyQuery>;
|
|
783
|
+
export type FetchProfileOpportunitiesQueryResult = Apollo.QueryResult<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>;
|
|
@@ -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.useFetchOpportunityLazyQuery = exports.useFetchOpportunityQuery = exports.FetchOpportunityDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useFetchOpportunitiesForProfileLazyQuery = exports.useFetchOpportunitiesForProfileQuery = exports.FetchOpportunitiesForProfileDocument = exports.useFetchOpportunitiesByIdsLazyQuery = exports.useFetchOpportunitiesByIdsQuery = exports.FetchOpportunitiesByIdsDocument = exports.useRegisterForAirdropMutation = exports.RegisterForAirdropDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useLikeOpportunityMutation = exports.LikeOpportunityDocument = exports.useDislikeOpportunityMutation = exports.DislikeOpportunityDocument = void 0;
|
|
26
|
+
exports.useFetchProfileOpportunitiesLazyQuery = exports.useFetchProfileOpportunitiesQuery = exports.FetchProfileOpportunitiesDocument = exports.useFetchOpportunityLazyQuery = exports.useFetchOpportunityQuery = exports.FetchOpportunityDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useFetchOpportunitiesForProfileLazyQuery = exports.useFetchOpportunitiesForProfileQuery = exports.FetchOpportunitiesForProfileDocument = exports.useFetchOpportunitiesByIdsLazyQuery = exports.useFetchOpportunitiesByIdsQuery = exports.FetchOpportunitiesByIdsDocument = exports.useRegisterForAirdropMutation = exports.RegisterForAirdropDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useLikeOpportunityMutation = exports.LikeOpportunityDocument = exports.useDislikeOpportunityMutation = exports.DislikeOpportunityDocument = void 0;
|
|
27
27
|
const client_1 = require("@apollo/client");
|
|
28
28
|
const Apollo = __importStar(require("@apollo/client"));
|
|
29
29
|
exports.DislikeOpportunityDocument = (0, client_1.gql) `
|
|
@@ -438,3 +438,102 @@ function useFetchOpportunityLazyQuery(baseOptions) {
|
|
|
438
438
|
return Apollo.useLazyQuery(exports.FetchOpportunityDocument, baseOptions);
|
|
439
439
|
}
|
|
440
440
|
exports.useFetchOpportunityLazyQuery = useFetchOpportunityLazyQuery;
|
|
441
|
+
exports.FetchProfileOpportunitiesDocument = (0, client_1.gql) `
|
|
442
|
+
query FetchProfileOpportunities {
|
|
443
|
+
fetchProfileOpportunities {
|
|
444
|
+
newOpportunities {
|
|
445
|
+
opportunityId
|
|
446
|
+
brandId
|
|
447
|
+
categoryId
|
|
448
|
+
opportunityStatus
|
|
449
|
+
opportunityType
|
|
450
|
+
notificationType
|
|
451
|
+
name
|
|
452
|
+
description
|
|
453
|
+
brandName
|
|
454
|
+
brandDescription
|
|
455
|
+
brandMedia
|
|
456
|
+
brandUrl
|
|
457
|
+
brandIndustry
|
|
458
|
+
categoryName
|
|
459
|
+
ludoUrl
|
|
460
|
+
projectUrl
|
|
461
|
+
activeFrom
|
|
462
|
+
activeUntil
|
|
463
|
+
minXpLevel
|
|
464
|
+
maxXpLevel
|
|
465
|
+
minRank
|
|
466
|
+
maxRank
|
|
467
|
+
media
|
|
468
|
+
reportLink
|
|
469
|
+
clicks
|
|
470
|
+
views
|
|
471
|
+
blockchain
|
|
472
|
+
collection
|
|
473
|
+
createdAt
|
|
474
|
+
minWalletValue
|
|
475
|
+
maxWalletValue
|
|
476
|
+
shareLink
|
|
477
|
+
liked
|
|
478
|
+
}
|
|
479
|
+
recentOpportunities {
|
|
480
|
+
opportunityId
|
|
481
|
+
brandId
|
|
482
|
+
categoryId
|
|
483
|
+
opportunityStatus
|
|
484
|
+
opportunityType
|
|
485
|
+
notificationType
|
|
486
|
+
name
|
|
487
|
+
description
|
|
488
|
+
brandName
|
|
489
|
+
brandDescription
|
|
490
|
+
brandMedia
|
|
491
|
+
brandUrl
|
|
492
|
+
brandIndustry
|
|
493
|
+
categoryName
|
|
494
|
+
ludoUrl
|
|
495
|
+
projectUrl
|
|
496
|
+
activeFrom
|
|
497
|
+
activeUntil
|
|
498
|
+
minXpLevel
|
|
499
|
+
maxXpLevel
|
|
500
|
+
minRank
|
|
501
|
+
maxRank
|
|
502
|
+
media
|
|
503
|
+
reportLink
|
|
504
|
+
clicks
|
|
505
|
+
views
|
|
506
|
+
blockchain
|
|
507
|
+
collection
|
|
508
|
+
createdAt
|
|
509
|
+
minWalletValue
|
|
510
|
+
maxWalletValue
|
|
511
|
+
shareLink
|
|
512
|
+
liked
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
`;
|
|
517
|
+
/**
|
|
518
|
+
* __useFetchProfileOpportunitiesQuery__
|
|
519
|
+
*
|
|
520
|
+
* To run a query within a React component, call `useFetchProfileOpportunitiesQuery` and pass it any options that fit your needs.
|
|
521
|
+
* When your component renders, `useFetchProfileOpportunitiesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
522
|
+
* you can use to render your UI.
|
|
523
|
+
*
|
|
524
|
+
* @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;
|
|
525
|
+
*
|
|
526
|
+
* @example
|
|
527
|
+
* const { data, loading, error } = useFetchProfileOpportunitiesQuery({
|
|
528
|
+
* variables: {
|
|
529
|
+
* },
|
|
530
|
+
* });
|
|
531
|
+
*/
|
|
532
|
+
function useFetchProfileOpportunitiesQuery(baseOptions) {
|
|
533
|
+
return Apollo.useQuery(exports.FetchProfileOpportunitiesDocument, baseOptions);
|
|
534
|
+
}
|
|
535
|
+
exports.useFetchProfileOpportunitiesQuery = useFetchProfileOpportunitiesQuery;
|
|
536
|
+
function useFetchProfileOpportunitiesLazyQuery(baseOptions) {
|
|
537
|
+
return Apollo.useLazyQuery(exports.FetchProfileOpportunitiesDocument, baseOptions);
|
|
538
|
+
}
|
|
539
|
+
exports.useFetchProfileOpportunitiesLazyQuery = useFetchProfileOpportunitiesLazyQuery;
|
package/build/index.d.ts
CHANGED
|
@@ -614,6 +614,16 @@ declare const schema: {
|
|
|
614
614
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchOpportunityQuery, opportunitiesSchema.Exact<{
|
|
615
615
|
opportunityId: string;
|
|
616
616
|
}>>;
|
|
617
|
+
useFetchProfileOpportunitiesQuery(baseOptions?: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchProfileOpportunitiesQuery, opportunitiesSchema.Exact<{
|
|
618
|
+
[key: string]: never;
|
|
619
|
+
}>> | undefined): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchProfileOpportunitiesQuery, opportunitiesSchema.Exact<{
|
|
620
|
+
[key: string]: never;
|
|
621
|
+
}>>;
|
|
622
|
+
useFetchProfileOpportunitiesLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<opportunitiesSchema.IFetchProfileOpportunitiesQuery, opportunitiesSchema.Exact<{
|
|
623
|
+
[key: string]: never;
|
|
624
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchProfileOpportunitiesQuery, opportunitiesSchema.Exact<{
|
|
625
|
+
[key: string]: never;
|
|
626
|
+
}>>;
|
|
617
627
|
DislikeOpportunityDocument: import("graphql").DocumentNode;
|
|
618
628
|
LikeOpportunityDocument: import("graphql").DocumentNode;
|
|
619
629
|
CreateOpportunityDocument: import("graphql").DocumentNode;
|
|
@@ -623,6 +633,7 @@ declare const schema: {
|
|
|
623
633
|
FetchOpportunitiesForProfileDocument: import("graphql").DocumentNode;
|
|
624
634
|
FetchOpportunitiesDocument: import("graphql").DocumentNode;
|
|
625
635
|
FetchOpportunityDocument: import("graphql").DocumentNode;
|
|
636
|
+
FetchProfileOpportunitiesDocument: import("graphql").DocumentNode;
|
|
626
637
|
useDeleteGalleryBannerMutation(baseOptions?: import("@apollo/client").MutationHookOptions<mediasSchema.IDeleteGalleryBannerMutation, mediasSchema.Exact<{
|
|
627
638
|
galleryId: string;
|
|
628
639
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<mediasSchema.IDeleteGalleryBannerMutation, mediasSchema.Exact<{
|
package/package.json
CHANGED
|
@@ -231,6 +231,11 @@ export type IOpportunityV2 = {
|
|
|
231
231
|
subscribed?: Maybe<Scalars['Boolean']>;
|
|
232
232
|
};
|
|
233
233
|
|
|
234
|
+
export type IProfileOpportunities = {
|
|
235
|
+
newOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
236
|
+
recentOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
237
|
+
};
|
|
238
|
+
|
|
234
239
|
export type IQuery = {
|
|
235
240
|
getDummy: Scalars['String'];
|
|
236
241
|
fetchBrands?: Maybe<Array<Maybe<IBrand>>>;
|
|
@@ -240,9 +245,11 @@ export type IQuery = {
|
|
|
240
245
|
fetchOpportunities: IOpportunitiesPage;
|
|
241
246
|
fetchOpportunitiesV2?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
242
247
|
fetchOpportunitiesForProfile: Array<Maybe<IOpportunityV2>>;
|
|
248
|
+
fetchProfileOpportunities: IProfileOpportunities;
|
|
243
249
|
fetchOpportunity: IOpportunityV2;
|
|
244
250
|
fetchOpportunitiesByIds: Array<IOpportunityV2>;
|
|
245
251
|
fetchOpportunitiesForWallet?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
252
|
+
fetchAirdropRegistrationsCsv: Scalars['String'];
|
|
246
253
|
};
|
|
247
254
|
|
|
248
255
|
|
|
@@ -277,6 +284,11 @@ export type IQueryFetchOpportunitiesForWalletArgs = {
|
|
|
277
284
|
};
|
|
278
285
|
|
|
279
286
|
|
|
287
|
+
export type IQueryFetchAirdropRegistrationsCsvArgs = {
|
|
288
|
+
opportunityId: Scalars['ID'];
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
|
|
280
292
|
|
|
281
293
|
export type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
282
294
|
|
|
@@ -360,6 +372,7 @@ export type IResolversTypes = {
|
|
|
360
372
|
OpportunityInput: IOpportunityInput;
|
|
361
373
|
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
362
374
|
OpportunityV2: ResolverTypeWrapper<IOpportunityV2>;
|
|
375
|
+
ProfileOpportunities: ResolverTypeWrapper<IProfileOpportunities>;
|
|
363
376
|
Query: ResolverTypeWrapper<{}>;
|
|
364
377
|
};
|
|
365
378
|
|
|
@@ -380,6 +393,7 @@ export type IResolversParentTypes = {
|
|
|
380
393
|
OpportunityInput: IOpportunityInput;
|
|
381
394
|
Float: Scalars['Float'];
|
|
382
395
|
OpportunityV2: IOpportunityV2;
|
|
396
|
+
ProfileOpportunities: IProfileOpportunities;
|
|
383
397
|
Query: {};
|
|
384
398
|
};
|
|
385
399
|
|
|
@@ -510,6 +524,12 @@ export type IOpportunityV2Resolvers<ContextType = any, ParentType extends IResol
|
|
|
510
524
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
511
525
|
};
|
|
512
526
|
|
|
527
|
+
export type IProfileOpportunitiesResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProfileOpportunities'] = IResolversParentTypes['ProfileOpportunities']> = {
|
|
528
|
+
newOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
529
|
+
recentOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
530
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
531
|
+
};
|
|
532
|
+
|
|
513
533
|
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
514
534
|
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
515
535
|
fetchBrands?: Resolver<Maybe<Array<Maybe<IResolversTypes['Brand']>>>, ParentType, ContextType>;
|
|
@@ -519,9 +539,11 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
519
539
|
fetchOpportunities?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, Partial<IQueryFetchOpportunitiesArgs>>;
|
|
520
540
|
fetchOpportunitiesV2?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
521
541
|
fetchOpportunitiesForProfile?: Resolver<Array<Maybe<IResolversTypes['OpportunityV2']>>, ParentType, ContextType>;
|
|
542
|
+
fetchProfileOpportunities?: Resolver<IResolversTypes['ProfileOpportunities'], ParentType, ContextType>;
|
|
522
543
|
fetchOpportunity?: Resolver<IResolversTypes['OpportunityV2'], ParentType, ContextType, RequireFields<IQueryFetchOpportunityArgs, 'opportunityId'>>;
|
|
523
544
|
fetchOpportunitiesByIds?: Resolver<Array<IResolversTypes['OpportunityV2']>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesByIdsArgs, 'opportunityIds'>>;
|
|
524
545
|
fetchOpportunitiesForWallet?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType, RequireFields<IQueryFetchOpportunitiesForWalletArgs, 'blockchain' | 'wallet'>>;
|
|
546
|
+
fetchAirdropRegistrationsCsv?: Resolver<IResolversTypes['String'], ParentType, ContextType, RequireFields<IQueryFetchAirdropRegistrationsCsvArgs, 'opportunityId'>>;
|
|
525
547
|
};
|
|
526
548
|
|
|
527
549
|
export type IResolvers<ContextType = any> = {
|
|
@@ -532,6 +554,7 @@ export type IResolvers<ContextType = any> = {
|
|
|
532
554
|
OpportunitiesPage?: IOpportunitiesPageResolvers<ContextType>;
|
|
533
555
|
Opportunity?: IOpportunityResolvers<ContextType>;
|
|
534
556
|
OpportunityV2?: IOpportunityV2Resolvers<ContextType>;
|
|
557
|
+
ProfileOpportunities?: IProfileOpportunitiesResolvers<ContextType>;
|
|
535
558
|
Query?: IQueryResolvers<ContextType>;
|
|
536
559
|
};
|
|
537
560
|
|
|
@@ -605,6 +628,11 @@ export type IFetchOpportunityQuery = { fetchOpportunity: (
|
|
|
605
628
|
& { brand: Pick<IBrand, 'brandId' | 'name' | 'description' | 'industry' | 'link' | 'media' | 'archived' | 'addedBy' | 'matchingWords' | 'discord' | 'telegram' | 'twitter' | 'facebook' | 'linkedin' | 'youtube'> }
|
|
606
629
|
) };
|
|
607
630
|
|
|
631
|
+
export type IFetchProfileOpportunitiesQueryVariables = Exact<{ [key: string]: never; }>;
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
export type IFetchProfileOpportunitiesQuery = { fetchProfileOpportunities: { newOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked'>>>>, recentOpportunities?: Maybe<Array<Maybe<Pick<IOpportunityV2, 'opportunityId' | 'brandId' | 'categoryId' | 'opportunityStatus' | 'opportunityType' | 'notificationType' | 'name' | 'description' | 'brandName' | 'brandDescription' | 'brandMedia' | 'brandUrl' | 'brandIndustry' | 'categoryName' | 'ludoUrl' | 'projectUrl' | 'activeFrom' | 'activeUntil' | 'minXpLevel' | 'maxXpLevel' | 'minRank' | 'maxRank' | 'media' | 'reportLink' | 'clicks' | 'views' | 'blockchain' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked'>>>> } };
|
|
635
|
+
|
|
608
636
|
|
|
609
637
|
export const DislikeOpportunityDocument = gql`
|
|
610
638
|
mutation DislikeOpportunity($opportunityId: String!) {
|
|
@@ -1045,4 +1073,105 @@ export function useFetchOpportunityLazyQuery(baseOptions?: Apollo.LazyQueryHookO
|
|
|
1045
1073
|
}
|
|
1046
1074
|
export type FetchOpportunityQueryHookResult = ReturnType<typeof useFetchOpportunityQuery>;
|
|
1047
1075
|
export type FetchOpportunityLazyQueryHookResult = ReturnType<typeof useFetchOpportunityLazyQuery>;
|
|
1048
|
-
export type FetchOpportunityQueryResult = Apollo.QueryResult<IFetchOpportunityQuery, IFetchOpportunityQueryVariables>;
|
|
1076
|
+
export type FetchOpportunityQueryResult = Apollo.QueryResult<IFetchOpportunityQuery, IFetchOpportunityQueryVariables>;
|
|
1077
|
+
export const FetchProfileOpportunitiesDocument = gql`
|
|
1078
|
+
query FetchProfileOpportunities {
|
|
1079
|
+
fetchProfileOpportunities {
|
|
1080
|
+
newOpportunities {
|
|
1081
|
+
opportunityId
|
|
1082
|
+
brandId
|
|
1083
|
+
categoryId
|
|
1084
|
+
opportunityStatus
|
|
1085
|
+
opportunityType
|
|
1086
|
+
notificationType
|
|
1087
|
+
name
|
|
1088
|
+
description
|
|
1089
|
+
brandName
|
|
1090
|
+
brandDescription
|
|
1091
|
+
brandMedia
|
|
1092
|
+
brandUrl
|
|
1093
|
+
brandIndustry
|
|
1094
|
+
categoryName
|
|
1095
|
+
ludoUrl
|
|
1096
|
+
projectUrl
|
|
1097
|
+
activeFrom
|
|
1098
|
+
activeUntil
|
|
1099
|
+
minXpLevel
|
|
1100
|
+
maxXpLevel
|
|
1101
|
+
minRank
|
|
1102
|
+
maxRank
|
|
1103
|
+
media
|
|
1104
|
+
reportLink
|
|
1105
|
+
clicks
|
|
1106
|
+
views
|
|
1107
|
+
blockchain
|
|
1108
|
+
collection
|
|
1109
|
+
createdAt
|
|
1110
|
+
minWalletValue
|
|
1111
|
+
maxWalletValue
|
|
1112
|
+
shareLink
|
|
1113
|
+
liked
|
|
1114
|
+
}
|
|
1115
|
+
recentOpportunities {
|
|
1116
|
+
opportunityId
|
|
1117
|
+
brandId
|
|
1118
|
+
categoryId
|
|
1119
|
+
opportunityStatus
|
|
1120
|
+
opportunityType
|
|
1121
|
+
notificationType
|
|
1122
|
+
name
|
|
1123
|
+
description
|
|
1124
|
+
brandName
|
|
1125
|
+
brandDescription
|
|
1126
|
+
brandMedia
|
|
1127
|
+
brandUrl
|
|
1128
|
+
brandIndustry
|
|
1129
|
+
categoryName
|
|
1130
|
+
ludoUrl
|
|
1131
|
+
projectUrl
|
|
1132
|
+
activeFrom
|
|
1133
|
+
activeUntil
|
|
1134
|
+
minXpLevel
|
|
1135
|
+
maxXpLevel
|
|
1136
|
+
minRank
|
|
1137
|
+
maxRank
|
|
1138
|
+
media
|
|
1139
|
+
reportLink
|
|
1140
|
+
clicks
|
|
1141
|
+
views
|
|
1142
|
+
blockchain
|
|
1143
|
+
collection
|
|
1144
|
+
createdAt
|
|
1145
|
+
minWalletValue
|
|
1146
|
+
maxWalletValue
|
|
1147
|
+
shareLink
|
|
1148
|
+
liked
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
`;
|
|
1153
|
+
|
|
1154
|
+
/**
|
|
1155
|
+
* __useFetchProfileOpportunitiesQuery__
|
|
1156
|
+
*
|
|
1157
|
+
* To run a query within a React component, call `useFetchProfileOpportunitiesQuery` and pass it any options that fit your needs.
|
|
1158
|
+
* When your component renders, `useFetchProfileOpportunitiesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1159
|
+
* you can use to render your UI.
|
|
1160
|
+
*
|
|
1161
|
+
* @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;
|
|
1162
|
+
*
|
|
1163
|
+
* @example
|
|
1164
|
+
* const { data, loading, error } = useFetchProfileOpportunitiesQuery({
|
|
1165
|
+
* variables: {
|
|
1166
|
+
* },
|
|
1167
|
+
* });
|
|
1168
|
+
*/
|
|
1169
|
+
export function useFetchProfileOpportunitiesQuery(baseOptions?: Apollo.QueryHookOptions<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>) {
|
|
1170
|
+
return Apollo.useQuery<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>(FetchProfileOpportunitiesDocument, baseOptions);
|
|
1171
|
+
}
|
|
1172
|
+
export function useFetchProfileOpportunitiesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>) {
|
|
1173
|
+
return Apollo.useLazyQuery<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>(FetchProfileOpportunitiesDocument, baseOptions);
|
|
1174
|
+
}
|
|
1175
|
+
export type FetchProfileOpportunitiesQueryHookResult = ReturnType<typeof useFetchProfileOpportunitiesQuery>;
|
|
1176
|
+
export type FetchProfileOpportunitiesLazyQueryHookResult = ReturnType<typeof useFetchProfileOpportunitiesLazyQuery>;
|
|
1177
|
+
export type FetchProfileOpportunitiesQueryResult = Apollo.QueryResult<IFetchProfileOpportunitiesQuery, IFetchProfileOpportunitiesQueryVariables>;
|