@ludo.ninja/api 3.0.8 → 3.0.10
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 +27 -0
- package/build/graphql_tools/__generated__/experiencesHost/schema.d.ts +2 -0
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +65 -4
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +83 -1
- package/build/graphql_tools/__generated__/preferencesHost/schema.d.ts +2 -0
- package/build/index.d.ts +11 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/adminHost/schema.ts +27 -0
- package/src/graphql_tools/__generated__/experiencesHost/schema.ts +2 -0
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +128 -5
- package/src/graphql_tools/__generated__/preferencesHost/schema.ts +2 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -22,11 +22,19 @@ export type Scalars = {
|
|
|
22
22
|
export type IBrand = {
|
|
23
23
|
brandId: Scalars['ID'];
|
|
24
24
|
name: Scalars['String'];
|
|
25
|
-
matchingWords?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
26
25
|
description?: Maybe<Scalars['String']>;
|
|
27
26
|
industry?: Maybe<Scalars['String']>;
|
|
28
27
|
link?: Maybe<Scalars['String']>;
|
|
29
28
|
media?: Maybe<Scalars['String']>;
|
|
29
|
+
archived?: Maybe<Scalars['Boolean']>;
|
|
30
|
+
addedBy?: Maybe<Scalars['String']>;
|
|
31
|
+
matchingWords?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
32
|
+
discord?: Maybe<Scalars['String']>;
|
|
33
|
+
telegram?: Maybe<Scalars['String']>;
|
|
34
|
+
twitter?: Maybe<Scalars['String']>;
|
|
35
|
+
facebook?: Maybe<Scalars['String']>;
|
|
36
|
+
linkedin?: Maybe<Scalars['String']>;
|
|
37
|
+
youtube?: Maybe<Scalars['String']>;
|
|
30
38
|
};
|
|
31
39
|
|
|
32
40
|
export type IBrandInput = {
|
|
@@ -61,6 +69,7 @@ export type IMutation = {
|
|
|
61
69
|
updateOpportunity: Scalars['Boolean'];
|
|
62
70
|
likeOpportunity: Scalars['Boolean'];
|
|
63
71
|
dislikeOpportunity: Scalars['Boolean'];
|
|
72
|
+
registerForAirdrop: Scalars['Boolean'];
|
|
64
73
|
};
|
|
65
74
|
|
|
66
75
|
|
|
@@ -116,6 +125,13 @@ export type IMutationDislikeOpportunityArgs = {
|
|
|
116
125
|
opportunityId: Scalars['String'];
|
|
117
126
|
};
|
|
118
127
|
|
|
128
|
+
|
|
129
|
+
export type IMutationRegisterForAirdropArgs = {
|
|
130
|
+
opportunityId: Scalars['String'];
|
|
131
|
+
blockchain: Scalars['String'];
|
|
132
|
+
address: Scalars['String'];
|
|
133
|
+
};
|
|
134
|
+
|
|
119
135
|
export type IOpportunitiesPage = {
|
|
120
136
|
currentOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
121
137
|
similarOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
@@ -203,6 +219,7 @@ export type IOpportunityV2 = {
|
|
|
203
219
|
clicks?: Maybe<Scalars['Int']>;
|
|
204
220
|
views?: Maybe<Scalars['Int']>;
|
|
205
221
|
blockchain?: Maybe<Scalars['String']>;
|
|
222
|
+
blockchains?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
206
223
|
collection?: Maybe<Scalars['String']>;
|
|
207
224
|
createdAt?: Maybe<Scalars['Long']>;
|
|
208
225
|
minWalletValue?: Maybe<Scalars['Float']>;
|
|
@@ -210,6 +227,7 @@ export type IOpportunityV2 = {
|
|
|
210
227
|
shareLink?: Maybe<Scalars['String']>;
|
|
211
228
|
liked?: Maybe<Scalars['Boolean']>;
|
|
212
229
|
geolocations?: Maybe<Array<Scalars['String']>>;
|
|
230
|
+
brand: IBrand;
|
|
213
231
|
};
|
|
214
232
|
|
|
215
233
|
export type IQuery = {
|
|
@@ -329,12 +347,12 @@ export type IResolversTypes = {
|
|
|
329
347
|
Brand: ResolverTypeWrapper<IBrand>;
|
|
330
348
|
ID: ResolverTypeWrapper<Scalars['ID']>;
|
|
331
349
|
String: ResolverTypeWrapper<Scalars['String']>;
|
|
350
|
+
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
332
351
|
BrandInput: IBrandInput;
|
|
333
352
|
Category: ResolverTypeWrapper<ICategory>;
|
|
334
353
|
CategoryInput: ICategoryInput;
|
|
335
354
|
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
336
355
|
Mutation: ResolverTypeWrapper<{}>;
|
|
337
|
-
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
338
356
|
OpportunitiesPage: ResolverTypeWrapper<IOpportunitiesPage>;
|
|
339
357
|
Opportunity: ResolverTypeWrapper<IOpportunity>;
|
|
340
358
|
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
@@ -349,12 +367,12 @@ export type IResolversParentTypes = {
|
|
|
349
367
|
Brand: IBrand;
|
|
350
368
|
ID: Scalars['ID'];
|
|
351
369
|
String: Scalars['String'];
|
|
370
|
+
Boolean: Scalars['Boolean'];
|
|
352
371
|
BrandInput: IBrandInput;
|
|
353
372
|
Category: ICategory;
|
|
354
373
|
CategoryInput: ICategoryInput;
|
|
355
374
|
Long: Scalars['Long'];
|
|
356
375
|
Mutation: {};
|
|
357
|
-
Boolean: Scalars['Boolean'];
|
|
358
376
|
OpportunitiesPage: IOpportunitiesPage;
|
|
359
377
|
Opportunity: IOpportunity;
|
|
360
378
|
Int: Scalars['Int'];
|
|
@@ -371,11 +389,19 @@ export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IO
|
|
|
371
389
|
export type IBrandResolvers<ContextType = any, ParentType extends IResolversParentTypes['Brand'] = IResolversParentTypes['Brand']> = {
|
|
372
390
|
brandId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
373
391
|
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
374
|
-
matchingWords?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
375
392
|
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
376
393
|
industry?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
377
394
|
link?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
378
395
|
media?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
396
|
+
archived?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
397
|
+
addedBy?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
398
|
+
matchingWords?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
399
|
+
discord?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
400
|
+
telegram?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
401
|
+
twitter?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
402
|
+
facebook?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
403
|
+
linkedin?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
404
|
+
youtube?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
379
405
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
380
406
|
};
|
|
381
407
|
|
|
@@ -402,6 +428,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
402
428
|
updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'opportunityId' | 'input'>>;
|
|
403
429
|
likeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationLikeOpportunityArgs, 'opportunityId'>>;
|
|
404
430
|
dislikeOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDislikeOpportunityArgs, 'opportunityId'>>;
|
|
431
|
+
registerForAirdrop?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRegisterForAirdropArgs, 'opportunityId' | 'blockchain' | 'address'>>;
|
|
405
432
|
};
|
|
406
433
|
|
|
407
434
|
export type IOpportunitiesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunitiesPage'] = IResolversParentTypes['OpportunitiesPage']> = {
|
|
@@ -469,6 +496,7 @@ export type IOpportunityV2Resolvers<ContextType = any, ParentType extends IResol
|
|
|
469
496
|
clicks?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
470
497
|
views?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
471
498
|
blockchain?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
499
|
+
blockchains?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
472
500
|
collection?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
473
501
|
createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
474
502
|
minWalletValue?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
@@ -476,6 +504,7 @@ export type IOpportunityV2Resolvers<ContextType = any, ParentType extends IResol
|
|
|
476
504
|
shareLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
477
505
|
liked?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
478
506
|
geolocations?: Resolver<Maybe<Array<IResolversTypes['String']>>, ParentType, ContextType>;
|
|
507
|
+
brand?: Resolver<IResolversTypes['Brand'], ParentType, ContextType>;
|
|
479
508
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
480
509
|
};
|
|
481
510
|
|
|
@@ -555,6 +584,16 @@ export type IFetchOpportunitiesQueryVariables = Exact<{
|
|
|
555
584
|
|
|
556
585
|
export type IFetchOpportunitiesQuery = { fetchOpportunities: { currentOpportunities?: Maybe<Array<Maybe<Pick<IOpportunity, 'opportunityId' | 'name' | 'description' | 'startedAt' | 'endedAt' | 'createdAt' | 'tags' | 'category' | 'media' | 'links' | 'ludoRankRequired' | 'ludoRankRequiredMin' | 'ludoRankRequiredMax' | 'rewardType' | 'creatorId' | 'creatorWallet' | 'status'>>>>, similarOpportunities?: Maybe<Array<Maybe<Pick<IOpportunity, 'opportunityId' | 'name' | 'description' | 'startedAt' | 'endedAt' | 'createdAt' | 'tags' | 'category' | 'media' | 'links' | 'ludoRankRequired' | 'ludoRankRequiredMin' | 'ludoRankRequiredMax' | 'rewardType' | 'creatorId' | 'creatorWallet' | 'status'>>>> } };
|
|
557
586
|
|
|
587
|
+
export type IFetchOpportunityQueryVariables = Exact<{
|
|
588
|
+
opportunityId: Scalars['ID'];
|
|
589
|
+
}>;
|
|
590
|
+
|
|
591
|
+
|
|
592
|
+
export type IFetchOpportunityQuery = { fetchOpportunity: (
|
|
593
|
+
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' | 'blockchains' | 'collection' | 'createdAt' | 'minWalletValue' | 'maxWalletValue' | 'shareLink' | 'liked' | 'geolocations'>
|
|
594
|
+
& { brand: Pick<IBrand, 'brandId' | 'name' | 'description' | 'industry' | 'link' | 'media' | 'archived' | 'addedBy' | 'matchingWords' | 'discord' | 'telegram' | 'twitter' | 'facebook' | 'linkedin' | 'youtube'> }
|
|
595
|
+
) };
|
|
596
|
+
|
|
558
597
|
|
|
559
598
|
export const DislikeOpportunityDocument = gql`
|
|
560
599
|
mutation DislikeOpportunity($opportunityId: String!) {
|
|
@@ -874,4 +913,88 @@ export function useFetchOpportunitiesLazyQuery(baseOptions?: Apollo.LazyQueryHoo
|
|
|
874
913
|
}
|
|
875
914
|
export type FetchOpportunitiesQueryHookResult = ReturnType<typeof useFetchOpportunitiesQuery>;
|
|
876
915
|
export type FetchOpportunitiesLazyQueryHookResult = ReturnType<typeof useFetchOpportunitiesLazyQuery>;
|
|
877
|
-
export type FetchOpportunitiesQueryResult = Apollo.QueryResult<IFetchOpportunitiesQuery, IFetchOpportunitiesQueryVariables>;
|
|
916
|
+
export type FetchOpportunitiesQueryResult = Apollo.QueryResult<IFetchOpportunitiesQuery, IFetchOpportunitiesQueryVariables>;
|
|
917
|
+
export const FetchOpportunityDocument = gql`
|
|
918
|
+
query FetchOpportunity($opportunityId: ID!) {
|
|
919
|
+
fetchOpportunity(opportunityId: $opportunityId) {
|
|
920
|
+
opportunityId
|
|
921
|
+
brandId
|
|
922
|
+
categoryId
|
|
923
|
+
opportunityStatus
|
|
924
|
+
opportunityType
|
|
925
|
+
notificationType
|
|
926
|
+
name
|
|
927
|
+
description
|
|
928
|
+
brandName
|
|
929
|
+
brandDescription
|
|
930
|
+
brandMedia
|
|
931
|
+
brandUrl
|
|
932
|
+
brandIndustry
|
|
933
|
+
categoryName
|
|
934
|
+
ludoUrl
|
|
935
|
+
projectUrl
|
|
936
|
+
activeFrom
|
|
937
|
+
activeUntil
|
|
938
|
+
minXpLevel
|
|
939
|
+
maxXpLevel
|
|
940
|
+
minRank
|
|
941
|
+
maxRank
|
|
942
|
+
media
|
|
943
|
+
reportLink
|
|
944
|
+
clicks
|
|
945
|
+
views
|
|
946
|
+
blockchain
|
|
947
|
+
blockchains
|
|
948
|
+
collection
|
|
949
|
+
createdAt
|
|
950
|
+
minWalletValue
|
|
951
|
+
maxWalletValue
|
|
952
|
+
shareLink
|
|
953
|
+
liked
|
|
954
|
+
geolocations
|
|
955
|
+
brand {
|
|
956
|
+
brandId
|
|
957
|
+
name
|
|
958
|
+
description
|
|
959
|
+
industry
|
|
960
|
+
link
|
|
961
|
+
media
|
|
962
|
+
archived
|
|
963
|
+
addedBy
|
|
964
|
+
matchingWords
|
|
965
|
+
discord
|
|
966
|
+
telegram
|
|
967
|
+
twitter
|
|
968
|
+
facebook
|
|
969
|
+
linkedin
|
|
970
|
+
youtube
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
`;
|
|
975
|
+
|
|
976
|
+
/**
|
|
977
|
+
* __useFetchOpportunityQuery__
|
|
978
|
+
*
|
|
979
|
+
* To run a query within a React component, call `useFetchOpportunityQuery` and pass it any options that fit your needs.
|
|
980
|
+
* When your component renders, `useFetchOpportunityQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
981
|
+
* you can use to render your UI.
|
|
982
|
+
*
|
|
983
|
+
* @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;
|
|
984
|
+
*
|
|
985
|
+
* @example
|
|
986
|
+
* const { data, loading, error } = useFetchOpportunityQuery({
|
|
987
|
+
* variables: {
|
|
988
|
+
* opportunityId: // value for 'opportunityId'
|
|
989
|
+
* },
|
|
990
|
+
* });
|
|
991
|
+
*/
|
|
992
|
+
export function useFetchOpportunityQuery(baseOptions: Apollo.QueryHookOptions<IFetchOpportunityQuery, IFetchOpportunityQueryVariables>) {
|
|
993
|
+
return Apollo.useQuery<IFetchOpportunityQuery, IFetchOpportunityQueryVariables>(FetchOpportunityDocument, baseOptions);
|
|
994
|
+
}
|
|
995
|
+
export function useFetchOpportunityLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchOpportunityQuery, IFetchOpportunityQueryVariables>) {
|
|
996
|
+
return Apollo.useLazyQuery<IFetchOpportunityQuery, IFetchOpportunityQueryVariables>(FetchOpportunityDocument, baseOptions);
|
|
997
|
+
}
|
|
998
|
+
export type FetchOpportunityQueryHookResult = ReturnType<typeof useFetchOpportunityQuery>;
|
|
999
|
+
export type FetchOpportunityLazyQueryHookResult = ReturnType<typeof useFetchOpportunityLazyQuery>;
|
|
1000
|
+
export type FetchOpportunityQueryResult = Apollo.QueryResult<IFetchOpportunityQuery, IFetchOpportunityQueryVariables>;
|
|
@@ -34,6 +34,7 @@ export type IMutation = {
|
|
|
34
34
|
setDummy: Scalars['String'];
|
|
35
35
|
saveUserInterests: Scalars['Boolean'];
|
|
36
36
|
saveUserExpectations: Scalars['Boolean'];
|
|
37
|
+
clearCaches: Scalars['Boolean'];
|
|
37
38
|
};
|
|
38
39
|
|
|
39
40
|
|
|
@@ -216,6 +217,7 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
|
|
|
216
217
|
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
217
218
|
saveUserInterests?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSaveUserInterestsArgs, 'interests'>>;
|
|
218
219
|
saveUserExpectations?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationSaveUserExpectationsArgs, 'expectations'>>;
|
|
220
|
+
clearCaches?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
|
|
219
221
|
};
|
|
220
222
|
|
|
221
223
|
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|