@ludo.ninja/api 1.0.17 → 1.0.19
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__/schema.d.ts +212 -0
- package/build/graphql_tools/__generated__/schema.js +160 -5
- package/build/hosts/index.d.ts +2 -0
- package/build/hosts/index.js +3 -1
- package/package.json +1 -1
- package/src/documents/server-extension/queries/useFetchNFTData/FetchNFTData.graphql +22 -0
- package/src/documents/server-identities/queries/useIsInviteCodeAvailable/IsInviteCodeAvailable.graphql +1 -1
- package/src/documents/server-opportunities/mutations/useCreateOpportunity//320/241reateOpportunity.graphql +3 -0
- package/src/documents/server-opportunities/mutations/useOpenOpportunity/OpenOpportunity.graphql +3 -0
- package/src/documents/server-opportunities/queries/useFetchOpportunities/FetchOpportunities.graphql +21 -0
- package/src/graphql_tools/__generated__/schema.graphql +65 -0
- package/src/graphql_tools/__generated__/schema.ts +289 -0
- package/src/graphql_tools/schemas/extension/query.graphqls +3 -0
- package/src/graphql_tools/schemas/extension/scalars.graphqls +1 -0
- package/src/graphql_tools/schemas/extension/schema.graphqls +12 -0
- package/src/graphql_tools/schemas/extension/type/assetData.graphqls +4 -0
- package/src/graphql_tools/schemas/extension/type/collectionData.graphqls +9 -0
- package/src/graphql_tools/schemas/extension/type/nftData.graphqls +9 -0
- package/src/graphql_tools/schemas/opportunities/opportunity/input/opportunity.graphqls +15 -0
- package/src/graphql_tools/schemas/opportunities/opportunity/mutation.graphqls +4 -0
- package/src/graphql_tools/schemas/opportunities/opportunity/query.graphqls +3 -0
- package/src/graphql_tools/schemas/opportunities/opportunity/type/opportunity.graphqls +19 -0
- package/src/graphql_tools/schemas/opportunities/scalars.graphqls +1 -0
- package/src/graphql_tools/schemas/opportunities/schema.graphqls +12 -0
- package/src/hosts/index.ts +4 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -78,6 +78,10 @@ export type IAsset = {
|
|
|
78
78
|
views?: Maybe<Scalars['Int']>;
|
|
79
79
|
visible?: Maybe<Scalars['Boolean']>;
|
|
80
80
|
};
|
|
81
|
+
export type IAssetData = {
|
|
82
|
+
assetId: Scalars['String'];
|
|
83
|
+
rank?: Maybe<Scalars['Float']>;
|
|
84
|
+
};
|
|
81
85
|
export type IAssetGallery = {
|
|
82
86
|
galleryId: Scalars['ID'];
|
|
83
87
|
galleryName: Scalars['String'];
|
|
@@ -271,6 +275,15 @@ export type ICollectionAssetsPage = {
|
|
|
271
275
|
collectionAssets?: Maybe<Array<Maybe<ICollectionAsset>>>;
|
|
272
276
|
nextPageToken?: Maybe<Scalars['String']>;
|
|
273
277
|
};
|
|
278
|
+
export type ICollectionData = {
|
|
279
|
+
collectionId: Scalars['String'];
|
|
280
|
+
title?: Maybe<Scalars['String']>;
|
|
281
|
+
rank?: Maybe<Scalars['Float']>;
|
|
282
|
+
createdAt?: Maybe<Scalars['Long']>;
|
|
283
|
+
itemsNum?: Maybe<Scalars['String']>;
|
|
284
|
+
holdersNum?: Maybe<Scalars['String']>;
|
|
285
|
+
floorPrice?: Maybe<Scalars['Float']>;
|
|
286
|
+
};
|
|
274
287
|
export type ICollectionFilterInput = {
|
|
275
288
|
blockchain: Scalars['String'];
|
|
276
289
|
category: Scalars['String'];
|
|
@@ -659,6 +672,7 @@ export type IMutation = {
|
|
|
659
672
|
createGallery: Scalars['ID'];
|
|
660
673
|
createGalleryV2: Scalars['ID'];
|
|
661
674
|
createNonce: Scalars['String'];
|
|
675
|
+
createOpportunity: Scalars['Boolean'];
|
|
662
676
|
deleteGallery: Scalars['Boolean'];
|
|
663
677
|
deleteGalleryBanner: Scalars['Boolean'];
|
|
664
678
|
deleteIdentity: Scalars['Boolean'];
|
|
@@ -674,6 +688,7 @@ export type IMutation = {
|
|
|
674
688
|
hideShowcaseAsset: Scalars['Boolean'];
|
|
675
689
|
likeAsset: Scalars['Boolean'];
|
|
676
690
|
likeCollection: Scalars['Boolean'];
|
|
691
|
+
openOpportunity: Scalars['Boolean'];
|
|
677
692
|
refreshToken: ITokenPair;
|
|
678
693
|
rejectAssetReport: Scalars['Boolean'];
|
|
679
694
|
rejectAssetReports: Scalars['Boolean'];
|
|
@@ -833,6 +848,9 @@ export type IMutationCreateNonceArgs = {
|
|
|
833
848
|
blockchain: Scalars['String'];
|
|
834
849
|
chainId?: Maybe<Scalars['String']>;
|
|
835
850
|
};
|
|
851
|
+
export type IMutationCreateOpportunityArgs = {
|
|
852
|
+
input: IOpportunityInput;
|
|
853
|
+
};
|
|
836
854
|
export type IMutationDeleteGalleryArgs = {
|
|
837
855
|
galleryId: Scalars['ID'];
|
|
838
856
|
};
|
|
@@ -881,6 +899,9 @@ export type IMutationLikeAssetArgs = {
|
|
|
881
899
|
export type IMutationLikeCollectionArgs = {
|
|
882
900
|
collectionId: Scalars['String'];
|
|
883
901
|
};
|
|
902
|
+
export type IMutationOpenOpportunityArgs = {
|
|
903
|
+
opportunityId: Scalars['ID'];
|
|
904
|
+
};
|
|
884
905
|
export type IMutationRefreshTokenArgs = {
|
|
885
906
|
refreshToken: Scalars['String'];
|
|
886
907
|
};
|
|
@@ -1054,6 +1075,15 @@ export type IMutationUploadGalleryBannerArgs = {
|
|
|
1054
1075
|
export type IMutationUploadUserpicArgs = {
|
|
1055
1076
|
file: Scalars['Upload'];
|
|
1056
1077
|
};
|
|
1078
|
+
export type INftData = {
|
|
1079
|
+
blockchain: Scalars['String'];
|
|
1080
|
+
contractAddress?: Maybe<Scalars['String']>;
|
|
1081
|
+
tokenId?: Maybe<Scalars['String']>;
|
|
1082
|
+
elrondId?: Maybe<Scalars['String']>;
|
|
1083
|
+
collectionData?: Maybe<ICollectionData>;
|
|
1084
|
+
assetData?: Maybe<IAssetData>;
|
|
1085
|
+
userRank?: Maybe<Scalars['Float']>;
|
|
1086
|
+
};
|
|
1057
1087
|
export type IOffer = {
|
|
1058
1088
|
floorDifference?: Maybe<Scalars['Float']>;
|
|
1059
1089
|
from?: Maybe<IWallet>;
|
|
@@ -1062,6 +1092,40 @@ export type IOffer = {
|
|
|
1062
1092
|
price?: Maybe<Scalars['Float']>;
|
|
1063
1093
|
status?: Maybe<Scalars['String']>;
|
|
1064
1094
|
};
|
|
1095
|
+
export type IOpportunity = {
|
|
1096
|
+
opportunityId?: Maybe<Scalars['ID']>;
|
|
1097
|
+
name?: Maybe<Scalars['String']>;
|
|
1098
|
+
description?: Maybe<Scalars['String']>;
|
|
1099
|
+
startedAt?: Maybe<Scalars['Long']>;
|
|
1100
|
+
endedAt?: Maybe<Scalars['Long']>;
|
|
1101
|
+
createdAt?: Maybe<Scalars['Long']>;
|
|
1102
|
+
tags?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
1103
|
+
category?: Maybe<Scalars['String']>;
|
|
1104
|
+
media?: Maybe<Scalars['String']>;
|
|
1105
|
+
links?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
1106
|
+
ludoRankRequired?: Maybe<Scalars['Boolean']>;
|
|
1107
|
+
ludoRankRequiredMin?: Maybe<Scalars['Int']>;
|
|
1108
|
+
ludoRankRequiredMax?: Maybe<Scalars['Int']>;
|
|
1109
|
+
rewardType?: Maybe<Scalars['String']>;
|
|
1110
|
+
creatorId?: Maybe<Scalars['String']>;
|
|
1111
|
+
creatorWallet?: Maybe<Scalars['String']>;
|
|
1112
|
+
status?: Maybe<Scalars['String']>;
|
|
1113
|
+
};
|
|
1114
|
+
export type IOpportunityInput = {
|
|
1115
|
+
name: Scalars['String'];
|
|
1116
|
+
description: Scalars['String'];
|
|
1117
|
+
startedAt: Scalars['Long'];
|
|
1118
|
+
endedAt: Scalars['Long'];
|
|
1119
|
+
tags?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
1120
|
+
category?: Maybe<Scalars['String']>;
|
|
1121
|
+
links?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
1122
|
+
ludoRankRequired?: Maybe<Scalars['Boolean']>;
|
|
1123
|
+
ludoRankRequiredMax?: Maybe<Scalars['Int']>;
|
|
1124
|
+
ludoRankRequiredMin?: Maybe<Scalars['Int']>;
|
|
1125
|
+
rewardType?: Maybe<Scalars['String']>;
|
|
1126
|
+
creatorWallet?: Maybe<Scalars['String']>;
|
|
1127
|
+
status?: Maybe<Scalars['String']>;
|
|
1128
|
+
};
|
|
1065
1129
|
export type IProfile = {
|
|
1066
1130
|
about?: Maybe<Scalars['String']>;
|
|
1067
1131
|
createdAt?: Maybe<Scalars['Long']>;
|
|
@@ -1139,7 +1203,9 @@ export type IQuery = {
|
|
|
1139
1203
|
fetchMyFavoritesV2: IGalleriesPageV2;
|
|
1140
1204
|
fetchMyGalleries: IGalleriesPage;
|
|
1141
1205
|
fetchMyGalleriesV2: IGalleriesPageV2;
|
|
1206
|
+
fetchNFTData: INftData;
|
|
1142
1207
|
fetchOffers: Array<Maybe<IOffer>>;
|
|
1208
|
+
fetchOpportunities: Array<Maybe<IOpportunity>>;
|
|
1143
1209
|
fetchPlaceSelections: Array<Maybe<ISelection>>;
|
|
1144
1210
|
fetchProfile: IProfile;
|
|
1145
1211
|
fetchProfileDeleteSelections: Array<Maybe<ISelection>>;
|
|
@@ -1380,6 +1446,15 @@ export type IQueryFetchMyGalleriesV2Args = {
|
|
|
1380
1446
|
pageSize: Scalars['Int'];
|
|
1381
1447
|
pageToken?: Maybe<Scalars['String']>;
|
|
1382
1448
|
};
|
|
1449
|
+
export type IQueryFetchNftDataArgs = {
|
|
1450
|
+
blockchain: Scalars['String'];
|
|
1451
|
+
contractAddress?: Maybe<Scalars['String']>;
|
|
1452
|
+
tokenId?: Maybe<Scalars['String']>;
|
|
1453
|
+
elrondId?: Maybe<Scalars['String']>;
|
|
1454
|
+
};
|
|
1455
|
+
export type IQueryFetchOpportunitiesArgs = {
|
|
1456
|
+
domain?: Maybe<Scalars['String']>;
|
|
1457
|
+
};
|
|
1383
1458
|
export type IQueryFetchProfileArgs = {
|
|
1384
1459
|
userId: Scalars['ID'];
|
|
1385
1460
|
};
|
|
@@ -1920,6 +1995,18 @@ export type IFetchDynamicCollectionsDataQuery = {
|
|
|
1920
1995
|
})>;
|
|
1921
1996
|
})>;
|
|
1922
1997
|
};
|
|
1998
|
+
export type IFetchNftDataQueryVariables = Exact<{
|
|
1999
|
+
blockchain: Scalars['String'];
|
|
2000
|
+
contractAddress?: Maybe<Scalars['String']>;
|
|
2001
|
+
tokenId?: Maybe<Scalars['String']>;
|
|
2002
|
+
elrondId?: Maybe<Scalars['String']>;
|
|
2003
|
+
}>;
|
|
2004
|
+
export type IFetchNftDataQuery = {
|
|
2005
|
+
fetchNFTData: (Pick<INftData, 'blockchain' | 'contractAddress' | 'tokenId' | 'elrondId' | 'userRank'> & {
|
|
2006
|
+
collectionData?: Maybe<Pick<ICollectionData, 'collectionId' | 'title' | 'rank' | 'createdAt' | 'itemsNum' | 'holdersNum' | 'floorPrice'>>;
|
|
2007
|
+
assetData?: Maybe<Pick<IAssetData, 'assetId' | 'rank'>>;
|
|
2008
|
+
});
|
|
2009
|
+
};
|
|
1923
2010
|
export type IAddAssetsToGalleryMutationVariables = Exact<{
|
|
1924
2011
|
galleryId: Scalars['ID'];
|
|
1925
2012
|
assetIds: Array<Scalars['String']>;
|
|
@@ -2259,6 +2346,20 @@ export type IFetchUserpicQueryVariables = Exact<{
|
|
|
2259
2346
|
userId: Scalars['ID'];
|
|
2260
2347
|
}>;
|
|
2261
2348
|
export type IFetchUserpicQuery = Pick<IQuery, 'fetchUserpic'>;
|
|
2349
|
+
export type ICreateOpportunityMutationVariables = Exact<{
|
|
2350
|
+
input: IOpportunityInput;
|
|
2351
|
+
}>;
|
|
2352
|
+
export type ICreateOpportunityMutation = Pick<IMutation, 'createOpportunity'>;
|
|
2353
|
+
export type IOpenOpportunityMutationVariables = Exact<{
|
|
2354
|
+
opportunityId: Scalars['ID'];
|
|
2355
|
+
}>;
|
|
2356
|
+
export type IOpenOpportunityMutation = Pick<IMutation, 'openOpportunity'>;
|
|
2357
|
+
export type IFetchOpportunitiesQueryVariables = Exact<{
|
|
2358
|
+
domain?: Maybe<Scalars['String']>;
|
|
2359
|
+
}>;
|
|
2360
|
+
export type IFetchOpportunitiesQuery = {
|
|
2361
|
+
fetchOpportunities: Array<Maybe<Pick<IOpportunity, 'opportunityId' | 'name' | 'description' | 'startedAt' | 'endedAt' | 'createdAt' | 'tags' | 'category' | 'media' | 'links' | 'ludoRankRequired' | 'ludoRankRequiredMin' | 'ludoRankRequiredMax' | 'rewardType' | 'creatorId' | 'creatorWallet' | 'status'>>>;
|
|
2362
|
+
};
|
|
2262
2363
|
export type ISaveUserExpectationsMutationVariables = Exact<{
|
|
2263
2364
|
expectations: Array<Maybe<Scalars['String']>>;
|
|
2264
2365
|
}>;
|
|
@@ -2860,6 +2961,41 @@ export declare function useFetchDynamicCollectionsDataLazyQuery(baseOptions?: Ap
|
|
|
2860
2961
|
export type FetchDynamicCollectionsDataQueryHookResult = ReturnType<typeof useFetchDynamicCollectionsDataQuery>;
|
|
2861
2962
|
export type FetchDynamicCollectionsDataLazyQueryHookResult = ReturnType<typeof useFetchDynamicCollectionsDataLazyQuery>;
|
|
2862
2963
|
export type FetchDynamicCollectionsDataQueryResult = Apollo.QueryResult<IFetchDynamicCollectionsDataQuery, IFetchDynamicCollectionsDataQueryVariables>;
|
|
2964
|
+
export declare const FetchNftDataDocument: Apollo.DocumentNode;
|
|
2965
|
+
/**
|
|
2966
|
+
* __useFetchNftDataQuery__
|
|
2967
|
+
*
|
|
2968
|
+
* To run a query within a React component, call `useFetchNftDataQuery` and pass it any options that fit your needs.
|
|
2969
|
+
* When your component renders, `useFetchNftDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2970
|
+
* you can use to render your UI.
|
|
2971
|
+
*
|
|
2972
|
+
* @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;
|
|
2973
|
+
*
|
|
2974
|
+
* @example
|
|
2975
|
+
* const { data, loading, error } = useFetchNftDataQuery({
|
|
2976
|
+
* variables: {
|
|
2977
|
+
* blockchain: // value for 'blockchain'
|
|
2978
|
+
* contractAddress: // value for 'contractAddress'
|
|
2979
|
+
* tokenId: // value for 'tokenId'
|
|
2980
|
+
* elrondId: // value for 'elrondId'
|
|
2981
|
+
* },
|
|
2982
|
+
* });
|
|
2983
|
+
*/
|
|
2984
|
+
export declare function useFetchNftDataQuery(baseOptions: Apollo.QueryHookOptions<IFetchNftDataQuery, IFetchNftDataQueryVariables>): Apollo.QueryResult<IFetchNftDataQuery, Exact<{
|
|
2985
|
+
blockchain: string;
|
|
2986
|
+
contractAddress?: Maybe<string> | undefined;
|
|
2987
|
+
tokenId?: Maybe<string> | undefined;
|
|
2988
|
+
elrondId?: Maybe<string> | undefined;
|
|
2989
|
+
}>>;
|
|
2990
|
+
export declare function useFetchNftDataLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchNftDataQuery, IFetchNftDataQueryVariables>): Apollo.LazyQueryResultTuple<IFetchNftDataQuery, Exact<{
|
|
2991
|
+
blockchain: string;
|
|
2992
|
+
contractAddress?: Maybe<string> | undefined;
|
|
2993
|
+
tokenId?: Maybe<string> | undefined;
|
|
2994
|
+
elrondId?: Maybe<string> | undefined;
|
|
2995
|
+
}>>;
|
|
2996
|
+
export type FetchNftDataQueryHookResult = ReturnType<typeof useFetchNftDataQuery>;
|
|
2997
|
+
export type FetchNftDataLazyQueryHookResult = ReturnType<typeof useFetchNftDataLazyQuery>;
|
|
2998
|
+
export type FetchNftDataQueryResult = Apollo.QueryResult<IFetchNftDataQuery, IFetchNftDataQueryVariables>;
|
|
2863
2999
|
export declare const AddAssetsToGalleryDocument: Apollo.DocumentNode;
|
|
2864
3000
|
export type IAddAssetsToGalleryMutationFn = Apollo.MutationFunction<IAddAssetsToGalleryMutation, IAddAssetsToGalleryMutationVariables>;
|
|
2865
3001
|
/**
|
|
@@ -4256,6 +4392,82 @@ export declare function useFetchUserpicLazyQuery(baseOptions?: Apollo.LazyQueryH
|
|
|
4256
4392
|
export type FetchUserpicQueryHookResult = ReturnType<typeof useFetchUserpicQuery>;
|
|
4257
4393
|
export type FetchUserpicLazyQueryHookResult = ReturnType<typeof useFetchUserpicLazyQuery>;
|
|
4258
4394
|
export type FetchUserpicQueryResult = Apollo.QueryResult<IFetchUserpicQuery, IFetchUserpicQueryVariables>;
|
|
4395
|
+
export declare const CreateOpportunityDocument: Apollo.DocumentNode;
|
|
4396
|
+
export type ICreateOpportunityMutationFn = Apollo.MutationFunction<ICreateOpportunityMutation, ICreateOpportunityMutationVariables>;
|
|
4397
|
+
/**
|
|
4398
|
+
* __useCreateOpportunityMutation__
|
|
4399
|
+
*
|
|
4400
|
+
* To run a mutation, you first call `useCreateOpportunityMutation` within a React component and pass it any options that fit your needs.
|
|
4401
|
+
* When your component renders, `useCreateOpportunityMutation` returns a tuple that includes:
|
|
4402
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
4403
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
4404
|
+
*
|
|
4405
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
4406
|
+
*
|
|
4407
|
+
* @example
|
|
4408
|
+
* const [createOpportunityMutation, { data, loading, error }] = useCreateOpportunityMutation({
|
|
4409
|
+
* variables: {
|
|
4410
|
+
* input: // value for 'input'
|
|
4411
|
+
* },
|
|
4412
|
+
* });
|
|
4413
|
+
*/
|
|
4414
|
+
export declare function useCreateOpportunityMutation(baseOptions?: Apollo.MutationHookOptions<ICreateOpportunityMutation, ICreateOpportunityMutationVariables>): Apollo.MutationTuple<ICreateOpportunityMutation, Exact<{
|
|
4415
|
+
input: IOpportunityInput;
|
|
4416
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
4417
|
+
export type CreateOpportunityMutationHookResult = ReturnType<typeof useCreateOpportunityMutation>;
|
|
4418
|
+
export type CreateOpportunityMutationResult = Apollo.MutationResult<ICreateOpportunityMutation>;
|
|
4419
|
+
export type CreateOpportunityMutationOptions = Apollo.BaseMutationOptions<ICreateOpportunityMutation, ICreateOpportunityMutationVariables>;
|
|
4420
|
+
export declare const OpenOpportunityDocument: Apollo.DocumentNode;
|
|
4421
|
+
export type IOpenOpportunityMutationFn = Apollo.MutationFunction<IOpenOpportunityMutation, IOpenOpportunityMutationVariables>;
|
|
4422
|
+
/**
|
|
4423
|
+
* __useOpenOpportunityMutation__
|
|
4424
|
+
*
|
|
4425
|
+
* To run a mutation, you first call `useOpenOpportunityMutation` within a React component and pass it any options that fit your needs.
|
|
4426
|
+
* When your component renders, `useOpenOpportunityMutation` returns a tuple that includes:
|
|
4427
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
4428
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
4429
|
+
*
|
|
4430
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
4431
|
+
*
|
|
4432
|
+
* @example
|
|
4433
|
+
* const [openOpportunityMutation, { data, loading, error }] = useOpenOpportunityMutation({
|
|
4434
|
+
* variables: {
|
|
4435
|
+
* opportunityId: // value for 'opportunityId'
|
|
4436
|
+
* },
|
|
4437
|
+
* });
|
|
4438
|
+
*/
|
|
4439
|
+
export declare function useOpenOpportunityMutation(baseOptions?: Apollo.MutationHookOptions<IOpenOpportunityMutation, IOpenOpportunityMutationVariables>): Apollo.MutationTuple<IOpenOpportunityMutation, Exact<{
|
|
4440
|
+
opportunityId: string;
|
|
4441
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
4442
|
+
export type OpenOpportunityMutationHookResult = ReturnType<typeof useOpenOpportunityMutation>;
|
|
4443
|
+
export type OpenOpportunityMutationResult = Apollo.MutationResult<IOpenOpportunityMutation>;
|
|
4444
|
+
export type OpenOpportunityMutationOptions = Apollo.BaseMutationOptions<IOpenOpportunityMutation, IOpenOpportunityMutationVariables>;
|
|
4445
|
+
export declare const FetchOpportunitiesDocument: Apollo.DocumentNode;
|
|
4446
|
+
/**
|
|
4447
|
+
* __useFetchOpportunitiesQuery__
|
|
4448
|
+
*
|
|
4449
|
+
* To run a query within a React component, call `useFetchOpportunitiesQuery` and pass it any options that fit your needs.
|
|
4450
|
+
* When your component renders, `useFetchOpportunitiesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4451
|
+
* you can use to render your UI.
|
|
4452
|
+
*
|
|
4453
|
+
* @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;
|
|
4454
|
+
*
|
|
4455
|
+
* @example
|
|
4456
|
+
* const { data, loading, error } = useFetchOpportunitiesQuery({
|
|
4457
|
+
* variables: {
|
|
4458
|
+
* domain: // value for 'domain'
|
|
4459
|
+
* },
|
|
4460
|
+
* });
|
|
4461
|
+
*/
|
|
4462
|
+
export declare function useFetchOpportunitiesQuery(baseOptions?: Apollo.QueryHookOptions<IFetchOpportunitiesQuery, IFetchOpportunitiesQueryVariables>): Apollo.QueryResult<IFetchOpportunitiesQuery, Exact<{
|
|
4463
|
+
domain?: Maybe<string> | undefined;
|
|
4464
|
+
}>>;
|
|
4465
|
+
export declare function useFetchOpportunitiesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchOpportunitiesQuery, IFetchOpportunitiesQueryVariables>): Apollo.LazyQueryResultTuple<IFetchOpportunitiesQuery, Exact<{
|
|
4466
|
+
domain?: Maybe<string> | undefined;
|
|
4467
|
+
}>>;
|
|
4468
|
+
export type FetchOpportunitiesQueryHookResult = ReturnType<typeof useFetchOpportunitiesQuery>;
|
|
4469
|
+
export type FetchOpportunitiesLazyQueryHookResult = ReturnType<typeof useFetchOpportunitiesLazyQuery>;
|
|
4470
|
+
export type FetchOpportunitiesQueryResult = Apollo.QueryResult<IFetchOpportunitiesQuery, IFetchOpportunitiesQueryVariables>;
|
|
4259
4471
|
export declare const SaveUserExpectationsDocument: Apollo.DocumentNode;
|
|
4260
4472
|
export type ISaveUserExpectationsMutationFn = Apollo.MutationFunction<ISaveUserExpectationsMutation, ISaveUserExpectationsMutationVariables>;
|
|
4261
4473
|
/**
|
|
@@ -23,11 +23,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.useFindUserShowcaseItemsLazyQuery = exports.useFindUserShowcaseItemsQuery = exports.FindUserShowcaseItemsDocument = exports.useFindUserCreationsLazyQuery = exports.useFindUserCreationsQuery = exports.FindUserCreationsDocument = exports.useFindShowcaseItemsLazyQuery = exports.useFindShowcaseItemsQuery = exports.FindShowcaseItemsDocument = exports.useFindSetsLazyQuery = exports.useFindSetsQuery = exports.FindSetsDocument = exports.useFindProfilesByNameLazyQuery = exports.useFindProfilesByNameQuery = exports.FindProfilesByNameDocument = exports.useFindCreationsLazyQuery = exports.useFindCreationsQuery = exports.FindCreationsDocument = exports.useFetchUserPortfolioLazyQuery = exports.useFetchUserPortfolioQuery = exports.FetchUserPortfolioDocument = exports.useFindAllTopEntitiesByNameLazyQuery = exports.useFindAllTopEntitiesByNameQuery = void 0;
|
|
26
|
+
exports.useUploadGalleryBannerMutation = exports.UploadGalleryBannerDocument = exports.useAddAssetsToGalleryV2Mutation = exports.AddAssetsToGalleryV2Document = exports.useAddAssetsToGalleryMutation = exports.AddAssetsToGalleryDocument = exports.useFetchNftDataLazyQuery = exports.useFetchNftDataQuery = exports.FetchNftDataDocument = exports.useFetchDynamicCollectionsDataLazyQuery = exports.useFetchDynamicCollectionsDataQuery = exports.FetchDynamicCollectionsDataDocument = exports.useFetchDynamicCollectionDataLazyQuery = exports.useFetchDynamicCollectionDataQuery = exports.FetchDynamicCollectionDataDocument = exports.useFetchCollectionsByIdsLazyQuery = exports.useFetchCollectionsByIdsQuery = exports.FetchCollectionsByIdsDocument = exports.useFetchCollectionsLazyQuery = exports.useFetchCollectionsQuery = exports.FetchCollectionsDocument = exports.useFetchCollectionLazyQuery = exports.useFetchCollectionQuery = exports.FetchCollectionDocument = exports.useLikeCollectionMutation = exports.LikeCollectionDocument = exports.useDislikeCollectionMutation = exports.DislikeCollectionDocument = exports.useFetchLikedLazyQuery = exports.useFetchLikedQuery = exports.FetchLikedDocument = exports.useFetchDynamicAssetsLikesLazyQuery = exports.useFetchDynamicAssetsLikesQuery = exports.FetchDynamicAssetsLikesDocument = exports.useFetchDynamicAssetLikesLazyQuery = exports.useFetchDynamicAssetLikesQuery = exports.FetchDynamicAssetLikesDocument = exports.useFetchAssetsLazyQuery = exports.useFetchAssetsQuery = exports.FetchAssetsDocument = exports.useFetchAssetByBlockchainLazyQuery = exports.useFetchAssetByBlockchainQuery = exports.FetchAssetByBlockchainDocument = exports.useFetchAssetLazyQuery = exports.useFetchAssetQuery = exports.FetchAssetDocument = exports.useLikeAssetMutation = exports.LikeAssetDocument = exports.useDislikeAssetMutation = exports.DislikeAssetDocument = void 0;
|
|
27
|
+
exports.FetchMyGalleriesV2Document = exports.useFetchMyFavoritesV2LazyQuery = exports.useFetchMyFavoritesV2Query = exports.FetchMyFavoritesV2Document = exports.useFetchMyFavoritesLazyQuery = exports.useFetchMyFavoritesQuery = exports.FetchMyFavoritesDocument = exports.useFetchGalleryV2LazyQuery = exports.useFetchGalleryV2Query = exports.FetchGalleryV2Document = exports.useFetchGalleryCreationsLazyQuery = exports.useFetchGalleryCreationsQuery = exports.FetchGalleryCreationsDocument = exports.useFetchGalleryLazyQuery = exports.useFetchGalleryQuery = exports.FetchGalleryDocument = exports.useRemoveCreationFromGalleryV2Mutation = exports.RemoveCreationFromGalleryV2Document = exports.useRemoveCreationFromGalleryMutation = exports.RemoveCreationFromGalleryDocument = exports.useRemoveCollectionFromGalleryV2Mutation = exports.RemoveCollectionFromGalleryV2Document = exports.useRemoveCollectionFromGalleryMutation = exports.RemoveCollectionFromGalleryDocument = exports.useRemoveAssetFromGalleryV2Mutation = exports.RemoveAssetFromGalleryV2Document = exports.useRemoveAssetFromGalleryMutation = exports.RemoveAssetFromGalleryDocument = exports.useEditGalleryMutation = exports.EditGalleryDocument = exports.useDeleteGalleryBannerMutation = exports.DeleteGalleryBannerDocument = exports.useDeleteGalleryMutation = exports.DeleteGalleryDocument = exports.useCreateGalleryV2Mutation = exports.CreateGalleryV2Document = exports.useCreateGalleryMutation = exports.CreateGalleryDocument = exports.useCreateFavoritesMutation = exports.CreateFavoritesDocument = exports.useCreateFavoriteListV2Mutation = exports.CreateFavoriteListV2Document = exports.useAddCreationsToGalleryV2Mutation = exports.AddCreationsToGalleryV2Document = exports.useAddCreationsToGalleryMutation = exports.AddCreationsToGalleryDocument = exports.useAddCollectionsToGalleryV2Mutation = exports.AddCollectionsToGalleryV2Document = exports.useAddCollectionsToGalleryMutation = exports.AddCollectionsToGalleryDocument = void 0;
|
|
28
|
+
exports.useFetchUserWalletsLazyQuery = exports.useFetchUserWalletsQuery = exports.FetchUserWalletsDocument = exports.useFetchProfileLazyQuery = exports.useFetchProfileQuery = exports.FetchProfileDocument = exports.useUpdateProfileMutation = exports.UpdateProfileDocument = exports.useSignInTezosMutation = exports.SignInTezosDocument = exports.useSignInSolanaMutation = exports.SignInSolanaDocument = exports.useSignInFlowMutation = exports.SignInFlowDocument = exports.useSignInElrondMutation = exports.SignInElrondDocument = exports.useRevokeTokenMutation = exports.RevokeTokenDocument = exports.useRefreshTokenMutation = exports.RefreshTokenDocument = exports.useGenerateNewInviteCodesMutation = exports.GenerateNewInviteCodesDocument = exports.useCreateNonceMutation = exports.CreateNonceDocument = exports.useAddWalletTezosMutation = exports.AddWalletTezosDocument = exports.useAddWalletSolanaMutation = exports.AddWalletSolanaDocument = exports.useAddWalletMetamaskMutation = exports.AddWalletMetamaskDocument = exports.useAddWalletFlowMutation = exports.AddWalletFlowDocument = exports.useAddWalletElrondMutation = exports.AddWalletElrondDocument = exports.useSignInMetamaskMutation = exports.SignInMetamaskDocument = exports.useFetchUserGalleriesV2LazyQuery = exports.useFetchUserGalleriesV2Query = exports.FetchUserGalleriesV2Document = exports.useFetchUserGalleriesLazyQuery = exports.useFetchUserGalleriesQuery = exports.FetchUserGalleriesDocument = exports.useFetchUserFavoritesV2LazyQuery = exports.useFetchUserFavoritesV2Query = exports.FetchUserFavoritesV2Document = exports.useFetchUserFavoritesLazyQuery = exports.useFetchUserFavoritesQuery = exports.FetchUserFavoritesDocument = exports.useFetchMyGalleriesV2LazyQuery = exports.useFetchMyGalleriesV2Query = void 0;
|
|
29
|
+
exports.useFetchAssetsCountLazyQuery = exports.useFetchAssetsCountQuery = exports.FetchAssetsCountDocument = exports.useFetchSetsSearchResultTypeSelectionsLazyQuery = exports.useFetchSetsSearchResultTypeSelectionsQuery = exports.FetchSetsSearchResultTypeSelectionsDocument = exports.useFetchSearchResultStatusSelectionsLazyQuery = exports.useFetchSearchResultStatusSelectionsQuery = exports.FetchSearchResultStatusSelectionsDocument = exports.useFetchSearchResultCategorySelectionsLazyQuery = exports.useFetchSearchResultCategorySelectionsQuery = exports.FetchSearchResultCategorySelectionsDocument = exports.useFetchSearchResultBlockchainSelectionsLazyQuery = exports.useFetchSearchResultBlockchainSelectionsQuery = exports.FetchSearchResultBlockchainSelectionsDocument = exports.useFetchUserInterestsLazyQuery = exports.useFetchUserInterestsQuery = exports.FetchUserInterestsDocument = exports.useFetchUserExpectationsLazyQuery = exports.useFetchUserExpectationsQuery = exports.FetchUserExpectationsDocument = exports.useFetchSearchResultTimeSelectionsLazyQuery = exports.useFetchSearchResultTimeSelectionsQuery = exports.FetchSearchResultTimeSelectionsDocument = exports.useFetchInterestsLazyQuery = exports.useFetchInterestsQuery = exports.FetchInterestsDocument = exports.useFetchExpectationsLazyQuery = exports.useFetchExpectationsQuery = exports.FetchExpectationsDocument = exports.useSaveUserInterestsMutation = exports.SaveUserInterestsDocument = exports.useSaveUserExpectationsMutation = exports.SaveUserExpectationsDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useFetchUserpicLazyQuery = exports.useFetchUserpicQuery = exports.FetchUserpicDocument = exports.useIsInviteCodeAvailableLazyQuery = exports.useIsInviteCodeAvailableQuery = exports.IsInviteCodeAvailableDocument = exports.useGetMyInviteCodesLazyQuery = exports.useGetMyInviteCodesQuery = exports.GetMyInviteCodesDocument = void 0;
|
|
30
|
+
exports.useFindUserShowcaseItemsLazyQuery = exports.useFindUserShowcaseItemsQuery = exports.FindUserShowcaseItemsDocument = exports.useFindUserCreationsLazyQuery = exports.useFindUserCreationsQuery = exports.FindUserCreationsDocument = exports.useFindShowcaseItemsLazyQuery = exports.useFindShowcaseItemsQuery = exports.FindShowcaseItemsDocument = exports.useFindSetsLazyQuery = exports.useFindSetsQuery = exports.FindSetsDocument = exports.useFindProfilesByNameLazyQuery = exports.useFindProfilesByNameQuery = exports.FindProfilesByNameDocument = exports.useFindCreationsLazyQuery = exports.useFindCreationsQuery = exports.FindCreationsDocument = exports.useFetchUserPortfolioLazyQuery = exports.useFetchUserPortfolioQuery = exports.FetchUserPortfolioDocument = exports.useFindAllTopEntitiesByNameLazyQuery = exports.useFindAllTopEntitiesByNameQuery = exports.FindAllTopEntitiesByNameDocument = exports.useFetchCreationsByItemTypeLazyQuery = exports.useFetchCreationsByItemTypeQuery = exports.FetchCreationsByItemTypeDocument = exports.useFetchCreationsLazyQuery = exports.useFetchCreationsQuery = exports.FetchCreationsDocument = exports.useFindCollectionsLazyQuery = exports.useFindCollectionsQuery = exports.FindCollectionsDocument = void 0;
|
|
31
31
|
/* eslint-disable */
|
|
32
32
|
const client_1 = require("@apollo/client");
|
|
33
33
|
const Apollo = __importStar(require("@apollo/client"));
|
|
@@ -872,6 +872,62 @@ function useFetchDynamicCollectionsDataLazyQuery(baseOptions) {
|
|
|
872
872
|
return Apollo.useLazyQuery(exports.FetchDynamicCollectionsDataDocument, baseOptions);
|
|
873
873
|
}
|
|
874
874
|
exports.useFetchDynamicCollectionsDataLazyQuery = useFetchDynamicCollectionsDataLazyQuery;
|
|
875
|
+
exports.FetchNftDataDocument = (0, client_1.gql) `
|
|
876
|
+
query FetchNFTData($blockchain: String!, $contractAddress: String, $tokenId: String, $elrondId: String) {
|
|
877
|
+
fetchNFTData(
|
|
878
|
+
blockchain: $blockchain
|
|
879
|
+
contractAddress: $contractAddress
|
|
880
|
+
tokenId: $tokenId
|
|
881
|
+
elrondId: $elrondId
|
|
882
|
+
) {
|
|
883
|
+
blockchain
|
|
884
|
+
contractAddress
|
|
885
|
+
tokenId
|
|
886
|
+
elrondId
|
|
887
|
+
collectionData {
|
|
888
|
+
collectionId
|
|
889
|
+
title
|
|
890
|
+
rank
|
|
891
|
+
createdAt
|
|
892
|
+
itemsNum
|
|
893
|
+
holdersNum
|
|
894
|
+
floorPrice
|
|
895
|
+
}
|
|
896
|
+
assetData {
|
|
897
|
+
assetId
|
|
898
|
+
rank
|
|
899
|
+
}
|
|
900
|
+
userRank
|
|
901
|
+
}
|
|
902
|
+
}
|
|
903
|
+
`;
|
|
904
|
+
/**
|
|
905
|
+
* __useFetchNftDataQuery__
|
|
906
|
+
*
|
|
907
|
+
* To run a query within a React component, call `useFetchNftDataQuery` and pass it any options that fit your needs.
|
|
908
|
+
* When your component renders, `useFetchNftDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
909
|
+
* you can use to render your UI.
|
|
910
|
+
*
|
|
911
|
+
* @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;
|
|
912
|
+
*
|
|
913
|
+
* @example
|
|
914
|
+
* const { data, loading, error } = useFetchNftDataQuery({
|
|
915
|
+
* variables: {
|
|
916
|
+
* blockchain: // value for 'blockchain'
|
|
917
|
+
* contractAddress: // value for 'contractAddress'
|
|
918
|
+
* tokenId: // value for 'tokenId'
|
|
919
|
+
* elrondId: // value for 'elrondId'
|
|
920
|
+
* },
|
|
921
|
+
* });
|
|
922
|
+
*/
|
|
923
|
+
function useFetchNftDataQuery(baseOptions) {
|
|
924
|
+
return Apollo.useQuery(exports.FetchNftDataDocument, baseOptions);
|
|
925
|
+
}
|
|
926
|
+
exports.useFetchNftDataQuery = useFetchNftDataQuery;
|
|
927
|
+
function useFetchNftDataLazyQuery(baseOptions) {
|
|
928
|
+
return Apollo.useLazyQuery(exports.FetchNftDataDocument, baseOptions);
|
|
929
|
+
}
|
|
930
|
+
exports.useFetchNftDataLazyQuery = useFetchNftDataLazyQuery;
|
|
875
931
|
exports.AddAssetsToGalleryDocument = (0, client_1.gql) `
|
|
876
932
|
mutation AddAssetsToGallery($galleryId: ID!, $assetIds: [String!]!) {
|
|
877
933
|
addAssetsToGallery(galleryId: $galleryId, assetIds: $assetIds)
|
|
@@ -2686,6 +2742,105 @@ function useFetchUserpicLazyQuery(baseOptions) {
|
|
|
2686
2742
|
return Apollo.useLazyQuery(exports.FetchUserpicDocument, baseOptions);
|
|
2687
2743
|
}
|
|
2688
2744
|
exports.useFetchUserpicLazyQuery = useFetchUserpicLazyQuery;
|
|
2745
|
+
exports.CreateOpportunityDocument = (0, client_1.gql) `
|
|
2746
|
+
mutation CreateOpportunity($input: OpportunityInput!) {
|
|
2747
|
+
createOpportunity(input: $input)
|
|
2748
|
+
}
|
|
2749
|
+
`;
|
|
2750
|
+
/**
|
|
2751
|
+
* __useCreateOpportunityMutation__
|
|
2752
|
+
*
|
|
2753
|
+
* To run a mutation, you first call `useCreateOpportunityMutation` within a React component and pass it any options that fit your needs.
|
|
2754
|
+
* When your component renders, `useCreateOpportunityMutation` returns a tuple that includes:
|
|
2755
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
2756
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
2757
|
+
*
|
|
2758
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
2759
|
+
*
|
|
2760
|
+
* @example
|
|
2761
|
+
* const [createOpportunityMutation, { data, loading, error }] = useCreateOpportunityMutation({
|
|
2762
|
+
* variables: {
|
|
2763
|
+
* input: // value for 'input'
|
|
2764
|
+
* },
|
|
2765
|
+
* });
|
|
2766
|
+
*/
|
|
2767
|
+
function useCreateOpportunityMutation(baseOptions) {
|
|
2768
|
+
return Apollo.useMutation(exports.CreateOpportunityDocument, baseOptions);
|
|
2769
|
+
}
|
|
2770
|
+
exports.useCreateOpportunityMutation = useCreateOpportunityMutation;
|
|
2771
|
+
exports.OpenOpportunityDocument = (0, client_1.gql) `
|
|
2772
|
+
mutation OpenOpportunity($opportunityId: ID!) {
|
|
2773
|
+
openOpportunity(opportunityId: $opportunityId)
|
|
2774
|
+
}
|
|
2775
|
+
`;
|
|
2776
|
+
/**
|
|
2777
|
+
* __useOpenOpportunityMutation__
|
|
2778
|
+
*
|
|
2779
|
+
* To run a mutation, you first call `useOpenOpportunityMutation` within a React component and pass it any options that fit your needs.
|
|
2780
|
+
* When your component renders, `useOpenOpportunityMutation` returns a tuple that includes:
|
|
2781
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
2782
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
2783
|
+
*
|
|
2784
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
2785
|
+
*
|
|
2786
|
+
* @example
|
|
2787
|
+
* const [openOpportunityMutation, { data, loading, error }] = useOpenOpportunityMutation({
|
|
2788
|
+
* variables: {
|
|
2789
|
+
* opportunityId: // value for 'opportunityId'
|
|
2790
|
+
* },
|
|
2791
|
+
* });
|
|
2792
|
+
*/
|
|
2793
|
+
function useOpenOpportunityMutation(baseOptions) {
|
|
2794
|
+
return Apollo.useMutation(exports.OpenOpportunityDocument, baseOptions);
|
|
2795
|
+
}
|
|
2796
|
+
exports.useOpenOpportunityMutation = useOpenOpportunityMutation;
|
|
2797
|
+
exports.FetchOpportunitiesDocument = (0, client_1.gql) `
|
|
2798
|
+
query FetchOpportunities($domain: String) {
|
|
2799
|
+
fetchOpportunities(domain: $domain) {
|
|
2800
|
+
opportunityId
|
|
2801
|
+
name
|
|
2802
|
+
description
|
|
2803
|
+
startedAt
|
|
2804
|
+
endedAt
|
|
2805
|
+
createdAt
|
|
2806
|
+
tags
|
|
2807
|
+
category
|
|
2808
|
+
media
|
|
2809
|
+
links
|
|
2810
|
+
ludoRankRequired
|
|
2811
|
+
ludoRankRequiredMin
|
|
2812
|
+
ludoRankRequiredMax
|
|
2813
|
+
rewardType
|
|
2814
|
+
creatorId
|
|
2815
|
+
creatorWallet
|
|
2816
|
+
status
|
|
2817
|
+
}
|
|
2818
|
+
}
|
|
2819
|
+
`;
|
|
2820
|
+
/**
|
|
2821
|
+
* __useFetchOpportunitiesQuery__
|
|
2822
|
+
*
|
|
2823
|
+
* To run a query within a React component, call `useFetchOpportunitiesQuery` and pass it any options that fit your needs.
|
|
2824
|
+
* When your component renders, `useFetchOpportunitiesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2825
|
+
* you can use to render your UI.
|
|
2826
|
+
*
|
|
2827
|
+
* @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;
|
|
2828
|
+
*
|
|
2829
|
+
* @example
|
|
2830
|
+
* const { data, loading, error } = useFetchOpportunitiesQuery({
|
|
2831
|
+
* variables: {
|
|
2832
|
+
* domain: // value for 'domain'
|
|
2833
|
+
* },
|
|
2834
|
+
* });
|
|
2835
|
+
*/
|
|
2836
|
+
function useFetchOpportunitiesQuery(baseOptions) {
|
|
2837
|
+
return Apollo.useQuery(exports.FetchOpportunitiesDocument, baseOptions);
|
|
2838
|
+
}
|
|
2839
|
+
exports.useFetchOpportunitiesQuery = useFetchOpportunitiesQuery;
|
|
2840
|
+
function useFetchOpportunitiesLazyQuery(baseOptions) {
|
|
2841
|
+
return Apollo.useLazyQuery(exports.FetchOpportunitiesDocument, baseOptions);
|
|
2842
|
+
}
|
|
2843
|
+
exports.useFetchOpportunitiesLazyQuery = useFetchOpportunitiesLazyQuery;
|
|
2689
2844
|
exports.SaveUserExpectationsDocument = (0, client_1.gql) `
|
|
2690
2845
|
mutation SaveUserExpectations($expectations: [String]!) {
|
|
2691
2846
|
saveUserExpectations(expectations: $expectations)
|
package/build/hosts/index.d.ts
CHANGED
|
@@ -20,3 +20,5 @@ export declare const searchHostSSR = "https://ssr-search.ludo.ninja:8091/graphql
|
|
|
20
20
|
export declare const serverPreferencesHost = "http://server-preferences.istio.svc.k8s.local:8090/graphql";
|
|
21
21
|
export declare const ethereumHost = "https://ethereum.ludo.ninja:8545";
|
|
22
22
|
export declare const eventsHost = "wss://events.ludo.ninja:8090/subscriptions";
|
|
23
|
+
export declare const opportunitiesHost = "https://opportunities.ludo.ninja:8090/graphql";
|
|
24
|
+
export declare const extensionHost = "https://chrome.ludo.ninja:8092/graphql";
|
package/build/hosts/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.eventsHost = exports.ethereumHost = exports.serverPreferencesHost = exports.searchHostSSR = exports.preferencesHostSSR = exports.preferencesHost = exports.serverSearchHost = exports.serverShowCaseHost = exports.showCaseHostSSR = exports.showCaseHost = exports.searchHost = exports.serverImagesHost = exports.mediasHost = exports.serverGalleriesHost = exports.galleriesHost = exports.serverIdentityHost = exports.serverCollectionsHost = exports.serverAssetsHost = exports.collectionsHost = exports.assetsHost = exports.identityHost = exports.authHost = void 0;
|
|
3
|
+
exports.extensionHost = exports.opportunitiesHost = exports.eventsHost = exports.ethereumHost = exports.serverPreferencesHost = exports.searchHostSSR = exports.preferencesHostSSR = exports.preferencesHost = exports.serverSearchHost = exports.serverShowCaseHost = exports.showCaseHostSSR = exports.showCaseHost = exports.searchHost = exports.serverImagesHost = exports.mediasHost = exports.serverGalleriesHost = exports.galleriesHost = exports.serverIdentityHost = exports.serverCollectionsHost = exports.serverAssetsHost = exports.collectionsHost = exports.assetsHost = exports.identityHost = exports.authHost = void 0;
|
|
4
4
|
exports.authHost = "https://auth.ludo.ninja:8080/graphql";
|
|
5
5
|
exports.identityHost = "https://identities.ludo.ninja:8090/graphql";
|
|
6
6
|
exports.assetsHost = "https://assets.ludo.ninja:8090/graphql";
|
|
@@ -23,3 +23,5 @@ exports.searchHostSSR = "https://ssr-search.ludo.ninja:8091/graphql";
|
|
|
23
23
|
exports.serverPreferencesHost = "http://server-preferences.istio.svc.k8s.local:8090/graphql";
|
|
24
24
|
exports.ethereumHost = "https://ethereum.ludo.ninja:8545";
|
|
25
25
|
exports.eventsHost = `wss://events.ludo.ninja:8090/subscriptions`;
|
|
26
|
+
exports.opportunitiesHost = "https://opportunities.ludo.ninja:8090/graphql";
|
|
27
|
+
exports.extensionHost = "https://chrome.ludo.ninja:8092/graphql";
|
package/package.json
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
query FetchNFTData($blockchain: String!, $contractAddress: String, $tokenId: String, $elrondId: String) {
|
|
2
|
+
fetchNFTData(blockchain: $blockchain, contractAddress: $contractAddress, tokenId: $tokenId, elrondId: $elrondId) {
|
|
3
|
+
blockchain
|
|
4
|
+
contractAddress
|
|
5
|
+
tokenId
|
|
6
|
+
elrondId
|
|
7
|
+
collectionData {
|
|
8
|
+
collectionId
|
|
9
|
+
title
|
|
10
|
+
rank
|
|
11
|
+
createdAt
|
|
12
|
+
itemsNum
|
|
13
|
+
holdersNum
|
|
14
|
+
floorPrice
|
|
15
|
+
}
|
|
16
|
+
assetData {
|
|
17
|
+
assetId
|
|
18
|
+
rank
|
|
19
|
+
}
|
|
20
|
+
userRank
|
|
21
|
+
}
|
|
22
|
+
}
|
package/src/documents/server-opportunities/queries/useFetchOpportunities/FetchOpportunities.graphql
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
query FetchOpportunities($domain: String) {
|
|
2
|
+
fetchOpportunities(domain: $domain) {
|
|
3
|
+
opportunityId
|
|
4
|
+
name
|
|
5
|
+
description
|
|
6
|
+
startedAt
|
|
7
|
+
endedAt
|
|
8
|
+
createdAt
|
|
9
|
+
tags
|
|
10
|
+
category
|
|
11
|
+
media
|
|
12
|
+
links
|
|
13
|
+
ludoRankRequired
|
|
14
|
+
ludoRankRequiredMin
|
|
15
|
+
ludoRankRequiredMax
|
|
16
|
+
rewardType
|
|
17
|
+
creatorId
|
|
18
|
+
creatorWallet
|
|
19
|
+
status
|
|
20
|
+
}
|
|
21
|
+
}
|