@ludo.ninja/api 2.8.3 → 2.8.5
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/cookies/index.d.ts +4 -2
- package/build/cookies/index.js +14 -5
- package/build/graphql_tools/__generated__/schema.d.ts +177 -159
- package/build/graphql_tools/__generated__/schema.js +385 -369
- package/package.json +1 -1
- package/src/cookies/index.ts +14 -4
- package/src/graphql_tools/__generated__/schema.ts +563 -524
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -124,6 +124,7 @@ export type IAsset = {
|
|
|
124
124
|
category?: Maybe<Scalars['String']>;
|
|
125
125
|
categoryLabel?: Maybe<Scalars['String']>;
|
|
126
126
|
chainId?: Maybe<Scalars['String']>;
|
|
127
|
+
collection?: Maybe<Scalars['String']>;
|
|
127
128
|
collectionId?: Maybe<Scalars['String']>;
|
|
128
129
|
collectionMedias?: Maybe<Array<Maybe<IMedia>>>;
|
|
129
130
|
collectionOriginalUrls?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
@@ -134,6 +135,7 @@ export type IAsset = {
|
|
|
134
135
|
creatorsProfiles?: Maybe<Array<Maybe<IProfile>>>;
|
|
135
136
|
description?: Maybe<Scalars['String']>;
|
|
136
137
|
galleries?: Maybe<IGalleries>;
|
|
138
|
+
id?: Maybe<Scalars['String']>;
|
|
137
139
|
lastSoldAt?: Maybe<Scalars['String']>;
|
|
138
140
|
latestPriceAmount?: Maybe<Scalars['Float']>;
|
|
139
141
|
latestPriceBlockHeight?: Maybe<Scalars['Long']>;
|
|
@@ -161,6 +163,7 @@ export type IAsset = {
|
|
|
161
163
|
tokenId?: Maybe<Scalars['String']>;
|
|
162
164
|
totalVolumes?: Maybe<Array<Maybe<ICurrencyAmountPair>>>;
|
|
163
165
|
traits?: Maybe<Array<Maybe<ITrait>>>;
|
|
166
|
+
trueRank?: Maybe<Scalars['Float']>;
|
|
164
167
|
type?: Maybe<Scalars['String']>;
|
|
165
168
|
url?: Maybe<Scalars['String']>;
|
|
166
169
|
views?: Maybe<Scalars['Int']>;
|
|
@@ -178,9 +181,9 @@ export type IAssetGallery = {
|
|
|
178
181
|
};
|
|
179
182
|
|
|
180
183
|
export type IAssetMarket = {
|
|
184
|
+
marketDomain?: Maybe<Scalars['String']>;
|
|
181
185
|
marketId?: Maybe<Scalars['String']>;
|
|
182
186
|
marketName?: Maybe<Scalars['String']>;
|
|
183
|
-
marketDomain?: Maybe<Scalars['String']>;
|
|
184
187
|
marketUrl?: Maybe<Scalars['String']>;
|
|
185
188
|
};
|
|
186
189
|
|
|
@@ -237,6 +240,11 @@ export type IAssetPage = {
|
|
|
237
240
|
nextPageToken?: Maybe<Scalars['String']>;
|
|
238
241
|
};
|
|
239
242
|
|
|
243
|
+
export type IAssetRank = {
|
|
244
|
+
assetId: Scalars['String'];
|
|
245
|
+
rank?: Maybe<Scalars['Float']>;
|
|
246
|
+
};
|
|
247
|
+
|
|
240
248
|
export type IAssetReport = {
|
|
241
249
|
reportId: Scalars['ID'];
|
|
242
250
|
type?: Maybe<Scalars['String']>;
|
|
@@ -483,14 +491,15 @@ export type ICreationsPage = {
|
|
|
483
491
|
};
|
|
484
492
|
|
|
485
493
|
export type ICurrencyAmountPair = {
|
|
486
|
-
currency?: Maybe<Scalars['String']>;
|
|
487
494
|
amount?: Maybe<Scalars['Float']>;
|
|
495
|
+
currency?: Maybe<Scalars['String']>;
|
|
488
496
|
};
|
|
489
497
|
|
|
490
498
|
export type IDynamicAssetData = {
|
|
499
|
+
assetId: Scalars['String'];
|
|
491
500
|
isLikedByUser?: Maybe<Scalars['Boolean']>;
|
|
492
501
|
likesNum?: Maybe<Scalars['Int']>;
|
|
493
|
-
|
|
502
|
+
medias?: Maybe<Array<Maybe<IMedia>>>;
|
|
494
503
|
};
|
|
495
504
|
|
|
496
505
|
export type IDynamicCollectionData = {
|
|
@@ -834,7 +843,9 @@ export type IMarketsPage = {
|
|
|
834
843
|
export type IMedia = {
|
|
835
844
|
assetId?: Maybe<Scalars['String']>;
|
|
836
845
|
blockchain?: Maybe<Scalars['String']>;
|
|
846
|
+
cover?: Maybe<Scalars['Boolean']>;
|
|
837
847
|
fileSize?: Maybe<Scalars['Long']>;
|
|
848
|
+
hidden?: Maybe<Scalars['Boolean']>;
|
|
838
849
|
mimeType?: Maybe<Scalars['String']>;
|
|
839
850
|
nsfw?: Maybe<Scalars['Int']>;
|
|
840
851
|
originalMime?: Maybe<Scalars['String']>;
|
|
@@ -1744,6 +1755,8 @@ export type IQuery = {
|
|
|
1744
1755
|
fetchAssetModerations: IAssetModerationsPage;
|
|
1745
1756
|
/** This query is not connected to the front */
|
|
1746
1757
|
fetchAssetNamesSuggestions: Array<Maybe<Scalars['String']>>;
|
|
1758
|
+
fetchAssetRank: IAssetRank;
|
|
1759
|
+
fetchAssetRanks: Array<Maybe<IAssetRank>>;
|
|
1747
1760
|
fetchAssetReports: IAssetReportsPage;
|
|
1748
1761
|
fetchAssets: Array<Maybe<IAsset>>;
|
|
1749
1762
|
/** This query must be used on the first page */
|
|
@@ -1973,6 +1986,16 @@ export type IQueryFetchAssetNamesSuggestionsArgs = {
|
|
|
1973
1986
|
};
|
|
1974
1987
|
|
|
1975
1988
|
|
|
1989
|
+
export type IQueryFetchAssetRankArgs = {
|
|
1990
|
+
assetId: Scalars['String'];
|
|
1991
|
+
};
|
|
1992
|
+
|
|
1993
|
+
|
|
1994
|
+
export type IQueryFetchAssetRanksArgs = {
|
|
1995
|
+
assetIds: Array<Scalars['String']>;
|
|
1996
|
+
};
|
|
1997
|
+
|
|
1998
|
+
|
|
1976
1999
|
export type IQueryFetchAssetReportsArgs = {
|
|
1977
2000
|
input: IAssetReportFilter;
|
|
1978
2001
|
pageSize: Scalars['Int'];
|
|
@@ -2980,43 +3003,6 @@ export type IFetchAssetQuery = { fetchAsset: (
|
|
|
2980
3003
|
& { totalVolumes?: Maybe<Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>>, markets?: Maybe<Array<Maybe<Pick<IAssetMarket, 'marketId' | 'marketName' | 'marketDomain' | 'marketUrl'>>>>, collectionMedias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'previewUrl' | 'mimeType' | 'sizeRatio' | 'fileSize'>>>>, medias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'mimeType' | 'sizeRatio' | 'fileSize' | 'originalMime' | 'previewUrl'>>>>, ownersProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>, creatorsProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>, attributes?: Maybe<Array<Maybe<Pick<IAttribute, 'name' | 'value'>>>> }
|
|
2981
3004
|
) };
|
|
2982
3005
|
|
|
2983
|
-
export type IFetchAssetByBlockchainQueryVariables = Exact<{
|
|
2984
|
-
blockchain: Scalars['String'];
|
|
2985
|
-
address?: Maybe<Scalars['String']>;
|
|
2986
|
-
tokenId?: Maybe<Scalars['String']>;
|
|
2987
|
-
elrondId?: Maybe<Scalars['String']>;
|
|
2988
|
-
}>;
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
export type IFetchAssetByBlockchainQuery = { fetchAssetByBlockchain: (
|
|
2992
|
-
Pick<IAsset, 'latestPriceCurrency' | 'latestPriceAmount' | 'collectionId' | 'collectionOriginalUrls' | 'collectionTitle' | 'assetId' | 'blockchain' | 'blockchainLabel' | 'address' | 'tokenId' | 'name' | 'description' | 'rank' | 'originalUrls' | 'ownersAddresses' | 'creatorsAddresses' | 'views' | 'visible' | 'blurred' | 'category' | 'categoryLabel'>
|
|
2993
|
-
& { totalVolumes?: Maybe<Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>>, markets?: Maybe<Array<Maybe<Pick<IAssetMarket, 'marketId' | 'marketName' | 'marketDomain' | 'marketUrl'>>>>, collectionMedias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'previewUrl' | 'mimeType' | 'sizeRatio' | 'fileSize'>>>>, medias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'mimeType' | 'originalMime' | 'previewUrl' | 'sizeRatio' | 'fileSize'>>>>, ownersProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>, creatorsProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>, attributes?: Maybe<Array<Maybe<Pick<IAttribute, 'name' | 'value'>>>> }
|
|
2994
|
-
) };
|
|
2995
|
-
|
|
2996
|
-
export type IFetchAssetsQueryVariables = Exact<{
|
|
2997
|
-
assetIds: Array<Scalars['String']>;
|
|
2998
|
-
}>;
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
export type IFetchAssetsQuery = { fetchAssets: Array<Maybe<(
|
|
3002
|
-
Pick<IAsset, 'latestPriceCurrency' | 'latestPriceAmount' | 'collectionId' | 'collectionOriginalUrls' | 'collectionTitle' | 'assetId' | 'blockchain' | 'address' | 'tokenId' | 'name' | 'description' | 'rank' | 'originalUrls' | 'ownersAddresses' | 'creatorsAddresses' | 'views' | 'visible' | 'blurred'>
|
|
3003
|
-
& { totalVolumes?: Maybe<Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>>, markets?: Maybe<Array<Maybe<Pick<IAssetMarket, 'marketId' | 'marketName' | 'marketDomain' | 'marketUrl'>>>>, collectionMedias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'previewUrl' | 'mimeType' | 'sizeRatio' | 'fileSize'>>>>, medias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'mimeType' | 'sizeRatio' | 'fileSize' | 'previewUrl'>>>>, ownersProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>, creatorsProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>, attributes?: Maybe<Array<Maybe<Pick<IAttribute, 'name' | 'value'>>>> }
|
|
3004
|
-
)>> };
|
|
3005
|
-
|
|
3006
|
-
export type IFetchDynamicAssetLikesQueryVariables = Exact<{
|
|
3007
|
-
assetId: Scalars['String'];
|
|
3008
|
-
}>;
|
|
3009
|
-
|
|
3010
|
-
|
|
3011
|
-
export type IFetchDynamicAssetLikesQuery = { fetchDynamicAssetData: Pick<IDynamicAssetData, 'isLikedByUser' | 'likesNum'> };
|
|
3012
|
-
|
|
3013
|
-
export type IFetchDynamicAssetsLikesQueryVariables = Exact<{
|
|
3014
|
-
assetIds: Array<Scalars['String']>;
|
|
3015
|
-
}>;
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
export type IFetchDynamicAssetsLikesQuery = { fetchDynamicAssetsData: Array<Maybe<Pick<IDynamicAssetData, 'isLikedByUser' | 'likesNum' | 'assetId'>>> };
|
|
3019
|
-
|
|
3020
3006
|
export type IFetchLikedQueryVariables = Exact<{
|
|
3021
3007
|
assetId: Scalars['String'];
|
|
3022
3008
|
}>;
|
|
@@ -3829,6 +3815,29 @@ export type IFetchAllCreationsQueryVariables = Exact<{
|
|
|
3829
3815
|
|
|
3830
3816
|
export type IFetchAllCreationsQuery = { fetchAllCreations: { nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>, creations: Array<Maybe<Pick<ICreation, 'id' | 'itemType' | 'itemId' | 'blockchain' | 'rank' | 'address' | 'liked' | 'likes' | 'tokenId' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType'>>> } };
|
|
3831
3817
|
|
|
3818
|
+
export type IFetchAssetByBlockchainQueryVariables = Exact<{
|
|
3819
|
+
blockchain: Scalars['String'];
|
|
3820
|
+
address?: Maybe<Scalars['String']>;
|
|
3821
|
+
tokenId?: Maybe<Scalars['String']>;
|
|
3822
|
+
elrondId?: Maybe<Scalars['String']>;
|
|
3823
|
+
}>;
|
|
3824
|
+
|
|
3825
|
+
|
|
3826
|
+
export type IFetchAssetByBlockchainQuery = { fetchAssetByBlockchain: (
|
|
3827
|
+
Pick<IAsset, 'assetId' | 'blockchain' | 'blockchainLabel' | 'address' | 'tokenId' | 'collection' | 'id' | 'chainId' | 'blockHeight' | 'blockTimestamp' | 'name' | 'description' | 'originalUrls' | 'ownersAddresses' | 'creatorsAddresses' | 'likes' | 'liked' | 'views' | 'visible' | 'createdAt' | 'blurred' | 'rank' | 'trueRank' | 'rankRaw' | 'rankMax' | 'rankUpdatedAt' | 'collectionId' | 'collectionTitle' | 'collectionOriginalUrls' | 'latestPriceBlockHeight' | 'latestPriceCurrency' | 'latestPriceAmount' | 'category' | 'categoryLabel'>
|
|
3828
|
+
& { medias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'previewUrl' | 'mimeType' | 'sizeRatio' | 'fileSize' | 'nsfw' | 'originalMime' | 'hidden' | 'cover'>>>>, ownersProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'createdAt' | 'deletedAt' | 'visible' | 'views' | 'deleted'>>>>, creatorsProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'createdAt' | 'deletedAt' | 'visible' | 'views' | 'deleted'>>>>, attributes?: Maybe<Array<Maybe<Pick<IAttribute, 'name' | 'value'>>>>, collectionMedias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'previewUrl' | 'mimeType' | 'sizeRatio' | 'fileSize' | 'nsfw' | 'originalMime' | 'hidden' | 'cover'>>>>, markets?: Maybe<Array<Maybe<Pick<IAssetMarket, 'marketId' | 'marketName' | 'marketDomain' | 'marketUrl'>>>>, totalVolumes?: Maybe<Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>> }
|
|
3829
|
+
) };
|
|
3830
|
+
|
|
3831
|
+
export type IFetchAssetsQueryVariables = Exact<{
|
|
3832
|
+
assetIds: Array<Scalars['String']>;
|
|
3833
|
+
}>;
|
|
3834
|
+
|
|
3835
|
+
|
|
3836
|
+
export type IFetchAssetsQuery = { fetchAssets: Array<Maybe<(
|
|
3837
|
+
Pick<IAsset, 'latestPriceCurrency' | 'latestPriceAmount' | 'collectionId' | 'collectionOriginalUrls' | 'collectionTitle' | 'assetId' | 'blockchain' | 'address' | 'tokenId' | 'name' | 'description' | 'rank' | 'originalUrls' | 'ownersAddresses' | 'creatorsAddresses' | 'views' | 'visible' | 'blurred'>
|
|
3838
|
+
& { totalVolumes?: Maybe<Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>>, markets?: Maybe<Array<Maybe<Pick<IAssetMarket, 'marketId' | 'marketName' | 'marketDomain' | 'marketUrl'>>>>, collectionMedias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'previewUrl' | 'mimeType' | 'sizeRatio' | 'fileSize'>>>>, medias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'mimeType' | 'sizeRatio' | 'fileSize' | 'previewUrl'>>>>, ownersProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>, creatorsProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>, attributes?: Maybe<Array<Maybe<Pick<IAttribute, 'name' | 'value'>>>> }
|
|
3839
|
+
)>> };
|
|
3840
|
+
|
|
3832
3841
|
export type IFetchAssetsCountQueryVariables = Exact<{ [key: string]: never; }>;
|
|
3833
3842
|
|
|
3834
3843
|
|
|
@@ -3854,6 +3863,20 @@ export type IFetchCreationsByTypeQueryVariables = Exact<{
|
|
|
3854
3863
|
|
|
3855
3864
|
export type IFetchCreationsByTypeQuery = { fetchCreationsByType: { nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>, creations: Array<Maybe<Pick<ICreation, 'id' | 'itemType' | 'itemId' | 'blockchain' | 'rank' | 'liked' | 'likes' | 'address' | 'tokenId' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType'>>> } };
|
|
3856
3865
|
|
|
3866
|
+
export type IFetchDynamicAssetLikesQueryVariables = Exact<{
|
|
3867
|
+
assetId: Scalars['String'];
|
|
3868
|
+
}>;
|
|
3869
|
+
|
|
3870
|
+
|
|
3871
|
+
export type IFetchDynamicAssetLikesQuery = { fetchDynamicAssetData: Pick<IDynamicAssetData, 'isLikedByUser' | 'likesNum'> };
|
|
3872
|
+
|
|
3873
|
+
export type IFetchDynamicAssetsLikesQueryVariables = Exact<{
|
|
3874
|
+
assetIds: Array<Scalars['String']>;
|
|
3875
|
+
}>;
|
|
3876
|
+
|
|
3877
|
+
|
|
3878
|
+
export type IFetchDynamicAssetsLikesQuery = { fetchDynamicAssetsData: Array<Maybe<Pick<IDynamicAssetData, 'isLikedByUser' | 'likesNum' | 'assetId'>>> };
|
|
3879
|
+
|
|
3857
3880
|
export type IFindAllTopEntitiesByNameQueryVariables = Exact<{
|
|
3858
3881
|
name: Scalars['String'];
|
|
3859
3882
|
pageSize: Scalars['Int'];
|
|
@@ -4525,429 +4548,131 @@ export function useFetchAssetLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions
|
|
|
4525
4548
|
export type FetchAssetQueryHookResult = ReturnType<typeof useFetchAssetQuery>;
|
|
4526
4549
|
export type FetchAssetLazyQueryHookResult = ReturnType<typeof useFetchAssetLazyQuery>;
|
|
4527
4550
|
export type FetchAssetQueryResult = Apollo.QueryResult<IFetchAssetQuery, IFetchAssetQueryVariables>;
|
|
4528
|
-
export const
|
|
4529
|
-
query
|
|
4530
|
-
|
|
4531
|
-
|
|
4532
|
-
|
|
4533
|
-
|
|
4534
|
-
|
|
4535
|
-
|
|
4536
|
-
|
|
4537
|
-
|
|
4551
|
+
export const FetchLikedDocument = gql`
|
|
4552
|
+
query FetchLiked($assetId: String!) {
|
|
4553
|
+
fetchLiked(assetId: $assetId)
|
|
4554
|
+
}
|
|
4555
|
+
`;
|
|
4556
|
+
|
|
4557
|
+
/**
|
|
4558
|
+
* __useFetchLikedQuery__
|
|
4559
|
+
*
|
|
4560
|
+
* To run a query within a React component, call `useFetchLikedQuery` and pass it any options that fit your needs.
|
|
4561
|
+
* When your component renders, `useFetchLikedQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4562
|
+
* you can use to render your UI.
|
|
4563
|
+
*
|
|
4564
|
+
* @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;
|
|
4565
|
+
*
|
|
4566
|
+
* @example
|
|
4567
|
+
* const { data, loading, error } = useFetchLikedQuery({
|
|
4568
|
+
* variables: {
|
|
4569
|
+
* assetId: // value for 'assetId'
|
|
4570
|
+
* },
|
|
4571
|
+
* });
|
|
4572
|
+
*/
|
|
4573
|
+
export function useFetchLikedQuery(baseOptions: Apollo.QueryHookOptions<IFetchLikedQuery, IFetchLikedQueryVariables>) {
|
|
4574
|
+
return Apollo.useQuery<IFetchLikedQuery, IFetchLikedQueryVariables>(FetchLikedDocument, baseOptions);
|
|
4575
|
+
}
|
|
4576
|
+
export function useFetchLikedLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchLikedQuery, IFetchLikedQueryVariables>) {
|
|
4577
|
+
return Apollo.useLazyQuery<IFetchLikedQuery, IFetchLikedQueryVariables>(FetchLikedDocument, baseOptions);
|
|
4578
|
+
}
|
|
4579
|
+
export type FetchLikedQueryHookResult = ReturnType<typeof useFetchLikedQuery>;
|
|
4580
|
+
export type FetchLikedLazyQueryHookResult = ReturnType<typeof useFetchLikedLazyQuery>;
|
|
4581
|
+
export type FetchLikedQueryResult = Apollo.QueryResult<IFetchLikedQuery, IFetchLikedQueryVariables>;
|
|
4582
|
+
export const DislikeCollectionDocument = gql`
|
|
4583
|
+
mutation DislikeCollection($collectionId: String!) {
|
|
4584
|
+
dislikeCollection(collectionId: $collectionId)
|
|
4585
|
+
}
|
|
4586
|
+
`;
|
|
4587
|
+
export type IDislikeCollectionMutationFn = Apollo.MutationFunction<IDislikeCollectionMutation, IDislikeCollectionMutationVariables>;
|
|
4588
|
+
|
|
4589
|
+
/**
|
|
4590
|
+
* __useDislikeCollectionMutation__
|
|
4591
|
+
*
|
|
4592
|
+
* To run a mutation, you first call `useDislikeCollectionMutation` within a React component and pass it any options that fit your needs.
|
|
4593
|
+
* When your component renders, `useDislikeCollectionMutation` returns a tuple that includes:
|
|
4594
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
4595
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
4596
|
+
*
|
|
4597
|
+
* @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;
|
|
4598
|
+
*
|
|
4599
|
+
* @example
|
|
4600
|
+
* const [dislikeCollectionMutation, { data, loading, error }] = useDislikeCollectionMutation({
|
|
4601
|
+
* variables: {
|
|
4602
|
+
* collectionId: // value for 'collectionId'
|
|
4603
|
+
* },
|
|
4604
|
+
* });
|
|
4605
|
+
*/
|
|
4606
|
+
export function useDislikeCollectionMutation(baseOptions?: Apollo.MutationHookOptions<IDislikeCollectionMutation, IDislikeCollectionMutationVariables>) {
|
|
4607
|
+
return Apollo.useMutation<IDislikeCollectionMutation, IDislikeCollectionMutationVariables>(DislikeCollectionDocument, baseOptions);
|
|
4608
|
+
}
|
|
4609
|
+
export type DislikeCollectionMutationHookResult = ReturnType<typeof useDislikeCollectionMutation>;
|
|
4610
|
+
export type DislikeCollectionMutationResult = Apollo.MutationResult<IDislikeCollectionMutation>;
|
|
4611
|
+
export type DislikeCollectionMutationOptions = Apollo.BaseMutationOptions<IDislikeCollectionMutation, IDislikeCollectionMutationVariables>;
|
|
4612
|
+
export const LikeCollectionDocument = gql`
|
|
4613
|
+
mutation LikeCollection($collectionId: String!) {
|
|
4614
|
+
likeCollection(collectionId: $collectionId)
|
|
4615
|
+
}
|
|
4616
|
+
`;
|
|
4617
|
+
export type ILikeCollectionMutationFn = Apollo.MutationFunction<ILikeCollectionMutation, ILikeCollectionMutationVariables>;
|
|
4618
|
+
|
|
4619
|
+
/**
|
|
4620
|
+
* __useLikeCollectionMutation__
|
|
4621
|
+
*
|
|
4622
|
+
* To run a mutation, you first call `useLikeCollectionMutation` within a React component and pass it any options that fit your needs.
|
|
4623
|
+
* When your component renders, `useLikeCollectionMutation` returns a tuple that includes:
|
|
4624
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
4625
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
4626
|
+
*
|
|
4627
|
+
* @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;
|
|
4628
|
+
*
|
|
4629
|
+
* @example
|
|
4630
|
+
* const [likeCollectionMutation, { data, loading, error }] = useLikeCollectionMutation({
|
|
4631
|
+
* variables: {
|
|
4632
|
+
* collectionId: // value for 'collectionId'
|
|
4633
|
+
* },
|
|
4634
|
+
* });
|
|
4635
|
+
*/
|
|
4636
|
+
export function useLikeCollectionMutation(baseOptions?: Apollo.MutationHookOptions<ILikeCollectionMutation, ILikeCollectionMutationVariables>) {
|
|
4637
|
+
return Apollo.useMutation<ILikeCollectionMutation, ILikeCollectionMutationVariables>(LikeCollectionDocument, baseOptions);
|
|
4638
|
+
}
|
|
4639
|
+
export type LikeCollectionMutationHookResult = ReturnType<typeof useLikeCollectionMutation>;
|
|
4640
|
+
export type LikeCollectionMutationResult = Apollo.MutationResult<ILikeCollectionMutation>;
|
|
4641
|
+
export type LikeCollectionMutationOptions = Apollo.BaseMutationOptions<ILikeCollectionMutation, ILikeCollectionMutationVariables>;
|
|
4642
|
+
export const FetchCollectionDocument = gql`
|
|
4643
|
+
query fetchCollection($collectionId: String!) {
|
|
4644
|
+
fetchCollection(collectionId: $collectionId) {
|
|
4538
4645
|
collectionId
|
|
4539
|
-
|
|
4646
|
+
blockchain
|
|
4647
|
+
identifier
|
|
4648
|
+
contractAddress
|
|
4649
|
+
tokenId
|
|
4540
4650
|
collectionTitle
|
|
4541
|
-
|
|
4651
|
+
items
|
|
4652
|
+
owners
|
|
4542
4653
|
totalVolumes {
|
|
4543
4654
|
currency
|
|
4544
4655
|
amount
|
|
4545
4656
|
}
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
tokenId
|
|
4550
|
-
name
|
|
4551
|
-
description
|
|
4552
|
-
rank
|
|
4553
|
-
markets {
|
|
4657
|
+
likes
|
|
4658
|
+
liked
|
|
4659
|
+
collectionMarkets {
|
|
4554
4660
|
marketId
|
|
4555
4661
|
marketName
|
|
4556
4662
|
marketDomain
|
|
4557
4663
|
marketUrl
|
|
4558
4664
|
}
|
|
4559
|
-
collectionMedias {
|
|
4560
|
-
originalUrl
|
|
4561
|
-
url
|
|
4562
|
-
previewUrl
|
|
4563
|
-
mimeType
|
|
4564
|
-
sizeRatio
|
|
4565
|
-
fileSize
|
|
4566
|
-
}
|
|
4567
|
-
originalUrls
|
|
4568
|
-
medias {
|
|
4569
|
-
originalUrl
|
|
4570
|
-
url
|
|
4571
|
-
mimeType
|
|
4572
|
-
originalMime
|
|
4573
|
-
previewUrl
|
|
4574
|
-
sizeRatio
|
|
4575
|
-
fileSize
|
|
4576
|
-
}
|
|
4577
|
-
ownersAddresses
|
|
4578
|
-
ownersProfiles {
|
|
4579
|
-
userId
|
|
4580
|
-
username
|
|
4581
|
-
about
|
|
4582
|
-
userpic
|
|
4583
|
-
followers
|
|
4584
|
-
followings
|
|
4585
|
-
visible
|
|
4586
|
-
}
|
|
4587
4665
|
creatorsAddresses
|
|
4588
4666
|
creatorsProfiles {
|
|
4589
|
-
userId
|
|
4590
4667
|
username
|
|
4591
|
-
about
|
|
4592
4668
|
userpic
|
|
4593
|
-
followers
|
|
4594
|
-
followings
|
|
4595
|
-
visible
|
|
4596
4669
|
}
|
|
4597
|
-
|
|
4598
|
-
|
|
4599
|
-
|
|
4600
|
-
|
|
4601
|
-
|
|
4602
|
-
|
|
4603
|
-
blurred
|
|
4604
|
-
medias {
|
|
4605
|
-
originalUrl
|
|
4606
|
-
originalMime
|
|
4607
|
-
url
|
|
4608
|
-
previewUrl
|
|
4609
|
-
mimeType
|
|
4610
|
-
sizeRatio
|
|
4611
|
-
fileSize
|
|
4612
|
-
}
|
|
4613
|
-
creatorsProfiles {
|
|
4614
|
-
username
|
|
4615
|
-
}
|
|
4616
|
-
category
|
|
4617
|
-
categoryLabel
|
|
4618
|
-
}
|
|
4619
|
-
}
|
|
4620
|
-
`;
|
|
4621
|
-
|
|
4622
|
-
/**
|
|
4623
|
-
* __useFetchAssetByBlockchainQuery__
|
|
4624
|
-
*
|
|
4625
|
-
* To run a query within a React component, call `useFetchAssetByBlockchainQuery` and pass it any options that fit your needs.
|
|
4626
|
-
* When your component renders, `useFetchAssetByBlockchainQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4627
|
-
* you can use to render your UI.
|
|
4628
|
-
*
|
|
4629
|
-
* @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;
|
|
4630
|
-
*
|
|
4631
|
-
* @example
|
|
4632
|
-
* const { data, loading, error } = useFetchAssetByBlockchainQuery({
|
|
4633
|
-
* variables: {
|
|
4634
|
-
* blockchain: // value for 'blockchain'
|
|
4635
|
-
* address: // value for 'address'
|
|
4636
|
-
* tokenId: // value for 'tokenId'
|
|
4637
|
-
* elrondId: // value for 'elrondId'
|
|
4638
|
-
* },
|
|
4639
|
-
* });
|
|
4640
|
-
*/
|
|
4641
|
-
export function useFetchAssetByBlockchainQuery(baseOptions: Apollo.QueryHookOptions<IFetchAssetByBlockchainQuery, IFetchAssetByBlockchainQueryVariables>) {
|
|
4642
|
-
return Apollo.useQuery<IFetchAssetByBlockchainQuery, IFetchAssetByBlockchainQueryVariables>(FetchAssetByBlockchainDocument, baseOptions);
|
|
4643
|
-
}
|
|
4644
|
-
export function useFetchAssetByBlockchainLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAssetByBlockchainQuery, IFetchAssetByBlockchainQueryVariables>) {
|
|
4645
|
-
return Apollo.useLazyQuery<IFetchAssetByBlockchainQuery, IFetchAssetByBlockchainQueryVariables>(FetchAssetByBlockchainDocument, baseOptions);
|
|
4646
|
-
}
|
|
4647
|
-
export type FetchAssetByBlockchainQueryHookResult = ReturnType<typeof useFetchAssetByBlockchainQuery>;
|
|
4648
|
-
export type FetchAssetByBlockchainLazyQueryHookResult = ReturnType<typeof useFetchAssetByBlockchainLazyQuery>;
|
|
4649
|
-
export type FetchAssetByBlockchainQueryResult = Apollo.QueryResult<IFetchAssetByBlockchainQuery, IFetchAssetByBlockchainQueryVariables>;
|
|
4650
|
-
export const FetchAssetsDocument = gql`
|
|
4651
|
-
query FetchAssets($assetIds: [String!]!) {
|
|
4652
|
-
fetchAssets(assetIds: $assetIds) {
|
|
4653
|
-
latestPriceCurrency
|
|
4654
|
-
latestPriceAmount
|
|
4655
|
-
collectionId
|
|
4656
|
-
collectionOriginalUrls
|
|
4657
|
-
collectionTitle
|
|
4658
|
-
assetId
|
|
4659
|
-
totalVolumes {
|
|
4660
|
-
currency
|
|
4661
|
-
amount
|
|
4662
|
-
}
|
|
4663
|
-
blockchain
|
|
4664
|
-
address
|
|
4665
|
-
tokenId
|
|
4666
|
-
name
|
|
4667
|
-
description
|
|
4668
|
-
rank
|
|
4669
|
-
markets {
|
|
4670
|
-
marketId
|
|
4671
|
-
marketName
|
|
4672
|
-
marketDomain
|
|
4673
|
-
marketUrl
|
|
4674
|
-
}
|
|
4675
|
-
collectionMedias {
|
|
4676
|
-
originalUrl
|
|
4677
|
-
url
|
|
4678
|
-
previewUrl
|
|
4679
|
-
mimeType
|
|
4680
|
-
sizeRatio
|
|
4681
|
-
fileSize
|
|
4682
|
-
}
|
|
4683
|
-
originalUrls
|
|
4684
|
-
medias {
|
|
4685
|
-
originalUrl
|
|
4686
|
-
url
|
|
4687
|
-
mimeType
|
|
4688
|
-
sizeRatio
|
|
4689
|
-
fileSize
|
|
4690
|
-
previewUrl
|
|
4691
|
-
}
|
|
4692
|
-
ownersAddresses
|
|
4693
|
-
ownersProfiles {
|
|
4694
|
-
userId
|
|
4695
|
-
username
|
|
4696
|
-
about
|
|
4697
|
-
userpic
|
|
4698
|
-
followers
|
|
4699
|
-
followings
|
|
4700
|
-
visible
|
|
4701
|
-
}
|
|
4702
|
-
creatorsAddresses
|
|
4703
|
-
creatorsProfiles {
|
|
4704
|
-
userId
|
|
4705
|
-
username
|
|
4706
|
-
about
|
|
4707
|
-
userpic
|
|
4708
|
-
followers
|
|
4709
|
-
followings
|
|
4710
|
-
visible
|
|
4711
|
-
}
|
|
4712
|
-
attributes {
|
|
4713
|
-
name
|
|
4714
|
-
value
|
|
4715
|
-
}
|
|
4716
|
-
views
|
|
4717
|
-
visible
|
|
4718
|
-
blurred
|
|
4719
|
-
medias {
|
|
4720
|
-
originalUrl
|
|
4721
|
-
url
|
|
4722
|
-
previewUrl
|
|
4723
|
-
mimeType
|
|
4724
|
-
}
|
|
4725
|
-
creatorsProfiles {
|
|
4726
|
-
username
|
|
4727
|
-
}
|
|
4728
|
-
}
|
|
4729
|
-
}
|
|
4730
|
-
`;
|
|
4731
|
-
|
|
4732
|
-
/**
|
|
4733
|
-
* __useFetchAssetsQuery__
|
|
4734
|
-
*
|
|
4735
|
-
* To run a query within a React component, call `useFetchAssetsQuery` and pass it any options that fit your needs.
|
|
4736
|
-
* When your component renders, `useFetchAssetsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4737
|
-
* you can use to render your UI.
|
|
4738
|
-
*
|
|
4739
|
-
* @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;
|
|
4740
|
-
*
|
|
4741
|
-
* @example
|
|
4742
|
-
* const { data, loading, error } = useFetchAssetsQuery({
|
|
4743
|
-
* variables: {
|
|
4744
|
-
* assetIds: // value for 'assetIds'
|
|
4745
|
-
* },
|
|
4746
|
-
* });
|
|
4747
|
-
*/
|
|
4748
|
-
export function useFetchAssetsQuery(baseOptions: Apollo.QueryHookOptions<IFetchAssetsQuery, IFetchAssetsQueryVariables>) {
|
|
4749
|
-
return Apollo.useQuery<IFetchAssetsQuery, IFetchAssetsQueryVariables>(FetchAssetsDocument, baseOptions);
|
|
4750
|
-
}
|
|
4751
|
-
export function useFetchAssetsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAssetsQuery, IFetchAssetsQueryVariables>) {
|
|
4752
|
-
return Apollo.useLazyQuery<IFetchAssetsQuery, IFetchAssetsQueryVariables>(FetchAssetsDocument, baseOptions);
|
|
4753
|
-
}
|
|
4754
|
-
export type FetchAssetsQueryHookResult = ReturnType<typeof useFetchAssetsQuery>;
|
|
4755
|
-
export type FetchAssetsLazyQueryHookResult = ReturnType<typeof useFetchAssetsLazyQuery>;
|
|
4756
|
-
export type FetchAssetsQueryResult = Apollo.QueryResult<IFetchAssetsQuery, IFetchAssetsQueryVariables>;
|
|
4757
|
-
export const FetchDynamicAssetLikesDocument = gql`
|
|
4758
|
-
query FetchDynamicAssetLikes($assetId: String!) {
|
|
4759
|
-
fetchDynamicAssetData(assetId: $assetId) {
|
|
4760
|
-
isLikedByUser
|
|
4761
|
-
likesNum
|
|
4762
|
-
}
|
|
4763
|
-
}
|
|
4764
|
-
`;
|
|
4765
|
-
|
|
4766
|
-
/**
|
|
4767
|
-
* __useFetchDynamicAssetLikesQuery__
|
|
4768
|
-
*
|
|
4769
|
-
* To run a query within a React component, call `useFetchDynamicAssetLikesQuery` and pass it any options that fit your needs.
|
|
4770
|
-
* When your component renders, `useFetchDynamicAssetLikesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4771
|
-
* you can use to render your UI.
|
|
4772
|
-
*
|
|
4773
|
-
* @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;
|
|
4774
|
-
*
|
|
4775
|
-
* @example
|
|
4776
|
-
* const { data, loading, error } = useFetchDynamicAssetLikesQuery({
|
|
4777
|
-
* variables: {
|
|
4778
|
-
* assetId: // value for 'assetId'
|
|
4779
|
-
* },
|
|
4780
|
-
* });
|
|
4781
|
-
*/
|
|
4782
|
-
export function useFetchDynamicAssetLikesQuery(baseOptions: Apollo.QueryHookOptions<IFetchDynamicAssetLikesQuery, IFetchDynamicAssetLikesQueryVariables>) {
|
|
4783
|
-
return Apollo.useQuery<IFetchDynamicAssetLikesQuery, IFetchDynamicAssetLikesQueryVariables>(FetchDynamicAssetLikesDocument, baseOptions);
|
|
4784
|
-
}
|
|
4785
|
-
export function useFetchDynamicAssetLikesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchDynamicAssetLikesQuery, IFetchDynamicAssetLikesQueryVariables>) {
|
|
4786
|
-
return Apollo.useLazyQuery<IFetchDynamicAssetLikesQuery, IFetchDynamicAssetLikesQueryVariables>(FetchDynamicAssetLikesDocument, baseOptions);
|
|
4787
|
-
}
|
|
4788
|
-
export type FetchDynamicAssetLikesQueryHookResult = ReturnType<typeof useFetchDynamicAssetLikesQuery>;
|
|
4789
|
-
export type FetchDynamicAssetLikesLazyQueryHookResult = ReturnType<typeof useFetchDynamicAssetLikesLazyQuery>;
|
|
4790
|
-
export type FetchDynamicAssetLikesQueryResult = Apollo.QueryResult<IFetchDynamicAssetLikesQuery, IFetchDynamicAssetLikesQueryVariables>;
|
|
4791
|
-
export const FetchDynamicAssetsLikesDocument = gql`
|
|
4792
|
-
query FetchDynamicAssetsLikes($assetIds: [String!]!) {
|
|
4793
|
-
fetchDynamicAssetsData(assetIds: $assetIds) {
|
|
4794
|
-
isLikedByUser
|
|
4795
|
-
likesNum
|
|
4796
|
-
assetId
|
|
4797
|
-
}
|
|
4798
|
-
}
|
|
4799
|
-
`;
|
|
4800
|
-
|
|
4801
|
-
/**
|
|
4802
|
-
* __useFetchDynamicAssetsLikesQuery__
|
|
4803
|
-
*
|
|
4804
|
-
* To run a query within a React component, call `useFetchDynamicAssetsLikesQuery` and pass it any options that fit your needs.
|
|
4805
|
-
* When your component renders, `useFetchDynamicAssetsLikesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4806
|
-
* you can use to render your UI.
|
|
4807
|
-
*
|
|
4808
|
-
* @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;
|
|
4809
|
-
*
|
|
4810
|
-
* @example
|
|
4811
|
-
* const { data, loading, error } = useFetchDynamicAssetsLikesQuery({
|
|
4812
|
-
* variables: {
|
|
4813
|
-
* assetIds: // value for 'assetIds'
|
|
4814
|
-
* },
|
|
4815
|
-
* });
|
|
4816
|
-
*/
|
|
4817
|
-
export function useFetchDynamicAssetsLikesQuery(baseOptions: Apollo.QueryHookOptions<IFetchDynamicAssetsLikesQuery, IFetchDynamicAssetsLikesQueryVariables>) {
|
|
4818
|
-
return Apollo.useQuery<IFetchDynamicAssetsLikesQuery, IFetchDynamicAssetsLikesQueryVariables>(FetchDynamicAssetsLikesDocument, baseOptions);
|
|
4819
|
-
}
|
|
4820
|
-
export function useFetchDynamicAssetsLikesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchDynamicAssetsLikesQuery, IFetchDynamicAssetsLikesQueryVariables>) {
|
|
4821
|
-
return Apollo.useLazyQuery<IFetchDynamicAssetsLikesQuery, IFetchDynamicAssetsLikesQueryVariables>(FetchDynamicAssetsLikesDocument, baseOptions);
|
|
4822
|
-
}
|
|
4823
|
-
export type FetchDynamicAssetsLikesQueryHookResult = ReturnType<typeof useFetchDynamicAssetsLikesQuery>;
|
|
4824
|
-
export type FetchDynamicAssetsLikesLazyQueryHookResult = ReturnType<typeof useFetchDynamicAssetsLikesLazyQuery>;
|
|
4825
|
-
export type FetchDynamicAssetsLikesQueryResult = Apollo.QueryResult<IFetchDynamicAssetsLikesQuery, IFetchDynamicAssetsLikesQueryVariables>;
|
|
4826
|
-
export const FetchLikedDocument = gql`
|
|
4827
|
-
query FetchLiked($assetId: String!) {
|
|
4828
|
-
fetchLiked(assetId: $assetId)
|
|
4829
|
-
}
|
|
4830
|
-
`;
|
|
4831
|
-
|
|
4832
|
-
/**
|
|
4833
|
-
* __useFetchLikedQuery__
|
|
4834
|
-
*
|
|
4835
|
-
* To run a query within a React component, call `useFetchLikedQuery` and pass it any options that fit your needs.
|
|
4836
|
-
* When your component renders, `useFetchLikedQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4837
|
-
* you can use to render your UI.
|
|
4838
|
-
*
|
|
4839
|
-
* @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;
|
|
4840
|
-
*
|
|
4841
|
-
* @example
|
|
4842
|
-
* const { data, loading, error } = useFetchLikedQuery({
|
|
4843
|
-
* variables: {
|
|
4844
|
-
* assetId: // value for 'assetId'
|
|
4845
|
-
* },
|
|
4846
|
-
* });
|
|
4847
|
-
*/
|
|
4848
|
-
export function useFetchLikedQuery(baseOptions: Apollo.QueryHookOptions<IFetchLikedQuery, IFetchLikedQueryVariables>) {
|
|
4849
|
-
return Apollo.useQuery<IFetchLikedQuery, IFetchLikedQueryVariables>(FetchLikedDocument, baseOptions);
|
|
4850
|
-
}
|
|
4851
|
-
export function useFetchLikedLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchLikedQuery, IFetchLikedQueryVariables>) {
|
|
4852
|
-
return Apollo.useLazyQuery<IFetchLikedQuery, IFetchLikedQueryVariables>(FetchLikedDocument, baseOptions);
|
|
4853
|
-
}
|
|
4854
|
-
export type FetchLikedQueryHookResult = ReturnType<typeof useFetchLikedQuery>;
|
|
4855
|
-
export type FetchLikedLazyQueryHookResult = ReturnType<typeof useFetchLikedLazyQuery>;
|
|
4856
|
-
export type FetchLikedQueryResult = Apollo.QueryResult<IFetchLikedQuery, IFetchLikedQueryVariables>;
|
|
4857
|
-
export const DislikeCollectionDocument = gql`
|
|
4858
|
-
mutation DislikeCollection($collectionId: String!) {
|
|
4859
|
-
dislikeCollection(collectionId: $collectionId)
|
|
4860
|
-
}
|
|
4861
|
-
`;
|
|
4862
|
-
export type IDislikeCollectionMutationFn = Apollo.MutationFunction<IDislikeCollectionMutation, IDislikeCollectionMutationVariables>;
|
|
4863
|
-
|
|
4864
|
-
/**
|
|
4865
|
-
* __useDislikeCollectionMutation__
|
|
4866
|
-
*
|
|
4867
|
-
* To run a mutation, you first call `useDislikeCollectionMutation` within a React component and pass it any options that fit your needs.
|
|
4868
|
-
* When your component renders, `useDislikeCollectionMutation` returns a tuple that includes:
|
|
4869
|
-
* - A mutate function that you can call at any time to execute the mutation
|
|
4870
|
-
* - An object with fields that represent the current status of the mutation's execution
|
|
4871
|
-
*
|
|
4872
|
-
* @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;
|
|
4873
|
-
*
|
|
4874
|
-
* @example
|
|
4875
|
-
* const [dislikeCollectionMutation, { data, loading, error }] = useDislikeCollectionMutation({
|
|
4876
|
-
* variables: {
|
|
4877
|
-
* collectionId: // value for 'collectionId'
|
|
4878
|
-
* },
|
|
4879
|
-
* });
|
|
4880
|
-
*/
|
|
4881
|
-
export function useDislikeCollectionMutation(baseOptions?: Apollo.MutationHookOptions<IDislikeCollectionMutation, IDislikeCollectionMutationVariables>) {
|
|
4882
|
-
return Apollo.useMutation<IDislikeCollectionMutation, IDislikeCollectionMutationVariables>(DislikeCollectionDocument, baseOptions);
|
|
4883
|
-
}
|
|
4884
|
-
export type DislikeCollectionMutationHookResult = ReturnType<typeof useDislikeCollectionMutation>;
|
|
4885
|
-
export type DislikeCollectionMutationResult = Apollo.MutationResult<IDislikeCollectionMutation>;
|
|
4886
|
-
export type DislikeCollectionMutationOptions = Apollo.BaseMutationOptions<IDislikeCollectionMutation, IDislikeCollectionMutationVariables>;
|
|
4887
|
-
export const LikeCollectionDocument = gql`
|
|
4888
|
-
mutation LikeCollection($collectionId: String!) {
|
|
4889
|
-
likeCollection(collectionId: $collectionId)
|
|
4890
|
-
}
|
|
4891
|
-
`;
|
|
4892
|
-
export type ILikeCollectionMutationFn = Apollo.MutationFunction<ILikeCollectionMutation, ILikeCollectionMutationVariables>;
|
|
4893
|
-
|
|
4894
|
-
/**
|
|
4895
|
-
* __useLikeCollectionMutation__
|
|
4896
|
-
*
|
|
4897
|
-
* To run a mutation, you first call `useLikeCollectionMutation` within a React component and pass it any options that fit your needs.
|
|
4898
|
-
* When your component renders, `useLikeCollectionMutation` returns a tuple that includes:
|
|
4899
|
-
* - A mutate function that you can call at any time to execute the mutation
|
|
4900
|
-
* - An object with fields that represent the current status of the mutation's execution
|
|
4901
|
-
*
|
|
4902
|
-
* @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;
|
|
4903
|
-
*
|
|
4904
|
-
* @example
|
|
4905
|
-
* const [likeCollectionMutation, { data, loading, error }] = useLikeCollectionMutation({
|
|
4906
|
-
* variables: {
|
|
4907
|
-
* collectionId: // value for 'collectionId'
|
|
4908
|
-
* },
|
|
4909
|
-
* });
|
|
4910
|
-
*/
|
|
4911
|
-
export function useLikeCollectionMutation(baseOptions?: Apollo.MutationHookOptions<ILikeCollectionMutation, ILikeCollectionMutationVariables>) {
|
|
4912
|
-
return Apollo.useMutation<ILikeCollectionMutation, ILikeCollectionMutationVariables>(LikeCollectionDocument, baseOptions);
|
|
4913
|
-
}
|
|
4914
|
-
export type LikeCollectionMutationHookResult = ReturnType<typeof useLikeCollectionMutation>;
|
|
4915
|
-
export type LikeCollectionMutationResult = Apollo.MutationResult<ILikeCollectionMutation>;
|
|
4916
|
-
export type LikeCollectionMutationOptions = Apollo.BaseMutationOptions<ILikeCollectionMutation, ILikeCollectionMutationVariables>;
|
|
4917
|
-
export const FetchCollectionDocument = gql`
|
|
4918
|
-
query fetchCollection($collectionId: String!) {
|
|
4919
|
-
fetchCollection(collectionId: $collectionId) {
|
|
4920
|
-
collectionId
|
|
4921
|
-
blockchain
|
|
4922
|
-
identifier
|
|
4923
|
-
contractAddress
|
|
4924
|
-
tokenId
|
|
4925
|
-
collectionTitle
|
|
4926
|
-
items
|
|
4927
|
-
owners
|
|
4928
|
-
totalVolumes {
|
|
4929
|
-
currency
|
|
4930
|
-
amount
|
|
4931
|
-
}
|
|
4932
|
-
likes
|
|
4933
|
-
liked
|
|
4934
|
-
collectionMarkets {
|
|
4935
|
-
marketId
|
|
4936
|
-
marketName
|
|
4937
|
-
marketDomain
|
|
4938
|
-
marketUrl
|
|
4939
|
-
}
|
|
4940
|
-
creatorsAddresses
|
|
4941
|
-
creatorsProfiles {
|
|
4942
|
-
username
|
|
4943
|
-
userpic
|
|
4944
|
-
}
|
|
4945
|
-
verified
|
|
4946
|
-
originalUrls
|
|
4947
|
-
rank
|
|
4948
|
-
floorPrices {
|
|
4949
|
-
currency
|
|
4950
|
-
amount
|
|
4670
|
+
verified
|
|
4671
|
+
originalUrls
|
|
4672
|
+
rank
|
|
4673
|
+
floorPrices {
|
|
4674
|
+
currency
|
|
4675
|
+
amount
|
|
4951
4676
|
}
|
|
4952
4677
|
}
|
|
4953
4678
|
}
|
|
@@ -8492,117 +8217,362 @@ export const FetchSearchResultStatusSelectionsDocument = gql`
|
|
|
8492
8217
|
`;
|
|
8493
8218
|
|
|
8494
8219
|
/**
|
|
8495
|
-
* __useFetchSearchResultStatusSelectionsQuery__
|
|
8220
|
+
* __useFetchSearchResultStatusSelectionsQuery__
|
|
8221
|
+
*
|
|
8222
|
+
* To run a query within a React component, call `useFetchSearchResultStatusSelectionsQuery` and pass it any options that fit your needs.
|
|
8223
|
+
* When your component renders, `useFetchSearchResultStatusSelectionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
8224
|
+
* you can use to render your UI.
|
|
8225
|
+
*
|
|
8226
|
+
* @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;
|
|
8227
|
+
*
|
|
8228
|
+
* @example
|
|
8229
|
+
* const { data, loading, error } = useFetchSearchResultStatusSelectionsQuery({
|
|
8230
|
+
* variables: {
|
|
8231
|
+
* },
|
|
8232
|
+
* });
|
|
8233
|
+
*/
|
|
8234
|
+
export function useFetchSearchResultStatusSelectionsQuery(baseOptions?: Apollo.QueryHookOptions<IFetchSearchResultStatusSelectionsQuery, IFetchSearchResultStatusSelectionsQueryVariables>) {
|
|
8235
|
+
return Apollo.useQuery<IFetchSearchResultStatusSelectionsQuery, IFetchSearchResultStatusSelectionsQueryVariables>(FetchSearchResultStatusSelectionsDocument, baseOptions);
|
|
8236
|
+
}
|
|
8237
|
+
export function useFetchSearchResultStatusSelectionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchSearchResultStatusSelectionsQuery, IFetchSearchResultStatusSelectionsQueryVariables>) {
|
|
8238
|
+
return Apollo.useLazyQuery<IFetchSearchResultStatusSelectionsQuery, IFetchSearchResultStatusSelectionsQueryVariables>(FetchSearchResultStatusSelectionsDocument, baseOptions);
|
|
8239
|
+
}
|
|
8240
|
+
export type FetchSearchResultStatusSelectionsQueryHookResult = ReturnType<typeof useFetchSearchResultStatusSelectionsQuery>;
|
|
8241
|
+
export type FetchSearchResultStatusSelectionsLazyQueryHookResult = ReturnType<typeof useFetchSearchResultStatusSelectionsLazyQuery>;
|
|
8242
|
+
export type FetchSearchResultStatusSelectionsQueryResult = Apollo.QueryResult<IFetchSearchResultStatusSelectionsQuery, IFetchSearchResultStatusSelectionsQueryVariables>;
|
|
8243
|
+
export const FetchSetsSearchResultTypeSelectionsDocument = gql`
|
|
8244
|
+
query FetchSetsSearchResultTypeSelections {
|
|
8245
|
+
fetchSetsSearchResultTypeSelections {
|
|
8246
|
+
name
|
|
8247
|
+
label
|
|
8248
|
+
}
|
|
8249
|
+
}
|
|
8250
|
+
`;
|
|
8251
|
+
|
|
8252
|
+
/**
|
|
8253
|
+
* __useFetchSetsSearchResultTypeSelectionsQuery__
|
|
8254
|
+
*
|
|
8255
|
+
* To run a query within a React component, call `useFetchSetsSearchResultTypeSelectionsQuery` and pass it any options that fit your needs.
|
|
8256
|
+
* When your component renders, `useFetchSetsSearchResultTypeSelectionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
8257
|
+
* you can use to render your UI.
|
|
8258
|
+
*
|
|
8259
|
+
* @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;
|
|
8260
|
+
*
|
|
8261
|
+
* @example
|
|
8262
|
+
* const { data, loading, error } = useFetchSetsSearchResultTypeSelectionsQuery({
|
|
8263
|
+
* variables: {
|
|
8264
|
+
* },
|
|
8265
|
+
* });
|
|
8266
|
+
*/
|
|
8267
|
+
export function useFetchSetsSearchResultTypeSelectionsQuery(baseOptions?: Apollo.QueryHookOptions<IFetchSetsSearchResultTypeSelectionsQuery, IFetchSetsSearchResultTypeSelectionsQueryVariables>) {
|
|
8268
|
+
return Apollo.useQuery<IFetchSetsSearchResultTypeSelectionsQuery, IFetchSetsSearchResultTypeSelectionsQueryVariables>(FetchSetsSearchResultTypeSelectionsDocument, baseOptions);
|
|
8269
|
+
}
|
|
8270
|
+
export function useFetchSetsSearchResultTypeSelectionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchSetsSearchResultTypeSelectionsQuery, IFetchSetsSearchResultTypeSelectionsQueryVariables>) {
|
|
8271
|
+
return Apollo.useLazyQuery<IFetchSetsSearchResultTypeSelectionsQuery, IFetchSetsSearchResultTypeSelectionsQueryVariables>(FetchSetsSearchResultTypeSelectionsDocument, baseOptions);
|
|
8272
|
+
}
|
|
8273
|
+
export type FetchSetsSearchResultTypeSelectionsQueryHookResult = ReturnType<typeof useFetchSetsSearchResultTypeSelectionsQuery>;
|
|
8274
|
+
export type FetchSetsSearchResultTypeSelectionsLazyQueryHookResult = ReturnType<typeof useFetchSetsSearchResultTypeSelectionsLazyQuery>;
|
|
8275
|
+
export type FetchSetsSearchResultTypeSelectionsQueryResult = Apollo.QueryResult<IFetchSetsSearchResultTypeSelectionsQuery, IFetchSetsSearchResultTypeSelectionsQueryVariables>;
|
|
8276
|
+
export const FetchAllCreationsDocument = gql`
|
|
8277
|
+
query FetchAllCreations($page: PageInput) {
|
|
8278
|
+
fetchAllCreations(page: $page) {
|
|
8279
|
+
nextPage {
|
|
8280
|
+
token
|
|
8281
|
+
num
|
|
8282
|
+
size
|
|
8283
|
+
elements
|
|
8284
|
+
}
|
|
8285
|
+
creations {
|
|
8286
|
+
id
|
|
8287
|
+
itemType
|
|
8288
|
+
itemId
|
|
8289
|
+
blockchain
|
|
8290
|
+
rank
|
|
8291
|
+
address
|
|
8292
|
+
liked
|
|
8293
|
+
likes
|
|
8294
|
+
tokenId
|
|
8295
|
+
name
|
|
8296
|
+
creatorsAddresses
|
|
8297
|
+
originalUrls
|
|
8298
|
+
media
|
|
8299
|
+
mediaPreview
|
|
8300
|
+
mimeType
|
|
8301
|
+
}
|
|
8302
|
+
}
|
|
8303
|
+
}
|
|
8304
|
+
`;
|
|
8305
|
+
|
|
8306
|
+
/**
|
|
8307
|
+
* __useFetchAllCreationsQuery__
|
|
8308
|
+
*
|
|
8309
|
+
* To run a query within a React component, call `useFetchAllCreationsQuery` and pass it any options that fit your needs.
|
|
8310
|
+
* When your component renders, `useFetchAllCreationsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
8311
|
+
* you can use to render your UI.
|
|
8312
|
+
*
|
|
8313
|
+
* @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;
|
|
8314
|
+
*
|
|
8315
|
+
* @example
|
|
8316
|
+
* const { data, loading, error } = useFetchAllCreationsQuery({
|
|
8317
|
+
* variables: {
|
|
8318
|
+
* page: // value for 'page'
|
|
8319
|
+
* },
|
|
8320
|
+
* });
|
|
8321
|
+
*/
|
|
8322
|
+
export function useFetchAllCreationsQuery(baseOptions?: Apollo.QueryHookOptions<IFetchAllCreationsQuery, IFetchAllCreationsQueryVariables>) {
|
|
8323
|
+
return Apollo.useQuery<IFetchAllCreationsQuery, IFetchAllCreationsQueryVariables>(FetchAllCreationsDocument, baseOptions);
|
|
8324
|
+
}
|
|
8325
|
+
export function useFetchAllCreationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAllCreationsQuery, IFetchAllCreationsQueryVariables>) {
|
|
8326
|
+
return Apollo.useLazyQuery<IFetchAllCreationsQuery, IFetchAllCreationsQueryVariables>(FetchAllCreationsDocument, baseOptions);
|
|
8327
|
+
}
|
|
8328
|
+
export type FetchAllCreationsQueryHookResult = ReturnType<typeof useFetchAllCreationsQuery>;
|
|
8329
|
+
export type FetchAllCreationsLazyQueryHookResult = ReturnType<typeof useFetchAllCreationsLazyQuery>;
|
|
8330
|
+
export type FetchAllCreationsQueryResult = Apollo.QueryResult<IFetchAllCreationsQuery, IFetchAllCreationsQueryVariables>;
|
|
8331
|
+
export const FetchAssetByBlockchainDocument = gql`
|
|
8332
|
+
query FetchAssetByBlockchain($blockchain: String!, $address: String, $tokenId: String, $elrondId: String) {
|
|
8333
|
+
fetchAssetByBlockchain(
|
|
8334
|
+
blockchain: $blockchain
|
|
8335
|
+
address: $address
|
|
8336
|
+
tokenId: $tokenId
|
|
8337
|
+
elrondId: $elrondId
|
|
8338
|
+
) {
|
|
8339
|
+
assetId
|
|
8340
|
+
blockchain
|
|
8341
|
+
blockchainLabel
|
|
8342
|
+
address
|
|
8343
|
+
tokenId
|
|
8344
|
+
collection
|
|
8345
|
+
id
|
|
8346
|
+
chainId
|
|
8347
|
+
blockHeight
|
|
8348
|
+
blockTimestamp
|
|
8349
|
+
name
|
|
8350
|
+
description
|
|
8351
|
+
originalUrls
|
|
8352
|
+
medias {
|
|
8353
|
+
originalUrl
|
|
8354
|
+
url
|
|
8355
|
+
previewUrl
|
|
8356
|
+
mimeType
|
|
8357
|
+
sizeRatio
|
|
8358
|
+
fileSize
|
|
8359
|
+
nsfw
|
|
8360
|
+
originalMime
|
|
8361
|
+
hidden
|
|
8362
|
+
cover
|
|
8363
|
+
}
|
|
8364
|
+
ownersAddresses
|
|
8365
|
+
ownersProfiles {
|
|
8366
|
+
userId
|
|
8367
|
+
username
|
|
8368
|
+
about
|
|
8369
|
+
userpic
|
|
8370
|
+
followers
|
|
8371
|
+
followings
|
|
8372
|
+
createdAt
|
|
8373
|
+
deletedAt
|
|
8374
|
+
visible
|
|
8375
|
+
views
|
|
8376
|
+
deleted
|
|
8377
|
+
}
|
|
8378
|
+
creatorsAddresses
|
|
8379
|
+
creatorsProfiles {
|
|
8380
|
+
userId
|
|
8381
|
+
username
|
|
8382
|
+
about
|
|
8383
|
+
userpic
|
|
8384
|
+
followers
|
|
8385
|
+
followings
|
|
8386
|
+
createdAt
|
|
8387
|
+
deletedAt
|
|
8388
|
+
visible
|
|
8389
|
+
views
|
|
8390
|
+
deleted
|
|
8391
|
+
}
|
|
8392
|
+
attributes {
|
|
8393
|
+
name
|
|
8394
|
+
value
|
|
8395
|
+
}
|
|
8396
|
+
likes
|
|
8397
|
+
liked
|
|
8398
|
+
views
|
|
8399
|
+
visible
|
|
8400
|
+
createdAt
|
|
8401
|
+
blurred
|
|
8402
|
+
rank
|
|
8403
|
+
trueRank
|
|
8404
|
+
rankRaw
|
|
8405
|
+
rankMax
|
|
8406
|
+
rankUpdatedAt
|
|
8407
|
+
collectionId
|
|
8408
|
+
collectionTitle
|
|
8409
|
+
collectionOriginalUrls
|
|
8410
|
+
collectionMedias {
|
|
8411
|
+
originalUrl
|
|
8412
|
+
url
|
|
8413
|
+
previewUrl
|
|
8414
|
+
mimeType
|
|
8415
|
+
sizeRatio
|
|
8416
|
+
fileSize
|
|
8417
|
+
nsfw
|
|
8418
|
+
originalMime
|
|
8419
|
+
hidden
|
|
8420
|
+
cover
|
|
8421
|
+
}
|
|
8422
|
+
markets {
|
|
8423
|
+
marketId
|
|
8424
|
+
marketName
|
|
8425
|
+
marketDomain
|
|
8426
|
+
marketUrl
|
|
8427
|
+
}
|
|
8428
|
+
latestPriceBlockHeight
|
|
8429
|
+
latestPriceCurrency
|
|
8430
|
+
latestPriceAmount
|
|
8431
|
+
totalVolumes {
|
|
8432
|
+
currency
|
|
8433
|
+
amount
|
|
8434
|
+
}
|
|
8435
|
+
category
|
|
8436
|
+
categoryLabel
|
|
8437
|
+
}
|
|
8438
|
+
}
|
|
8439
|
+
`;
|
|
8440
|
+
|
|
8441
|
+
/**
|
|
8442
|
+
* __useFetchAssetByBlockchainQuery__
|
|
8496
8443
|
*
|
|
8497
|
-
* To run a query within a React component, call `
|
|
8498
|
-
* When your component renders, `
|
|
8444
|
+
* To run a query within a React component, call `useFetchAssetByBlockchainQuery` and pass it any options that fit your needs.
|
|
8445
|
+
* When your component renders, `useFetchAssetByBlockchainQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
8499
8446
|
* you can use to render your UI.
|
|
8500
8447
|
*
|
|
8501
8448
|
* @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;
|
|
8502
8449
|
*
|
|
8503
8450
|
* @example
|
|
8504
|
-
* const { data, loading, error } =
|
|
8451
|
+
* const { data, loading, error } = useFetchAssetByBlockchainQuery({
|
|
8505
8452
|
* variables: {
|
|
8453
|
+
* blockchain: // value for 'blockchain'
|
|
8454
|
+
* address: // value for 'address'
|
|
8455
|
+
* tokenId: // value for 'tokenId'
|
|
8456
|
+
* elrondId: // value for 'elrondId'
|
|
8506
8457
|
* },
|
|
8507
8458
|
* });
|
|
8508
8459
|
*/
|
|
8509
|
-
export function
|
|
8510
|
-
return Apollo.useQuery<
|
|
8460
|
+
export function useFetchAssetByBlockchainQuery(baseOptions: Apollo.QueryHookOptions<IFetchAssetByBlockchainQuery, IFetchAssetByBlockchainQueryVariables>) {
|
|
8461
|
+
return Apollo.useQuery<IFetchAssetByBlockchainQuery, IFetchAssetByBlockchainQueryVariables>(FetchAssetByBlockchainDocument, baseOptions);
|
|
8511
8462
|
}
|
|
8512
|
-
export function
|
|
8513
|
-
return Apollo.useLazyQuery<
|
|
8463
|
+
export function useFetchAssetByBlockchainLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAssetByBlockchainQuery, IFetchAssetByBlockchainQueryVariables>) {
|
|
8464
|
+
return Apollo.useLazyQuery<IFetchAssetByBlockchainQuery, IFetchAssetByBlockchainQueryVariables>(FetchAssetByBlockchainDocument, baseOptions);
|
|
8514
8465
|
}
|
|
8515
|
-
export type
|
|
8516
|
-
export type
|
|
8517
|
-
export type
|
|
8518
|
-
export const
|
|
8519
|
-
query
|
|
8520
|
-
|
|
8466
|
+
export type FetchAssetByBlockchainQueryHookResult = ReturnType<typeof useFetchAssetByBlockchainQuery>;
|
|
8467
|
+
export type FetchAssetByBlockchainLazyQueryHookResult = ReturnType<typeof useFetchAssetByBlockchainLazyQuery>;
|
|
8468
|
+
export type FetchAssetByBlockchainQueryResult = Apollo.QueryResult<IFetchAssetByBlockchainQuery, IFetchAssetByBlockchainQueryVariables>;
|
|
8469
|
+
export const FetchAssetsDocument = gql`
|
|
8470
|
+
query FetchAssets($assetIds: [String!]!) {
|
|
8471
|
+
fetchAssets(assetIds: $assetIds) {
|
|
8472
|
+
latestPriceCurrency
|
|
8473
|
+
latestPriceAmount
|
|
8474
|
+
collectionId
|
|
8475
|
+
collectionOriginalUrls
|
|
8476
|
+
collectionTitle
|
|
8477
|
+
assetId
|
|
8478
|
+
totalVolumes {
|
|
8479
|
+
currency
|
|
8480
|
+
amount
|
|
8481
|
+
}
|
|
8482
|
+
blockchain
|
|
8483
|
+
address
|
|
8484
|
+
tokenId
|
|
8521
8485
|
name
|
|
8522
|
-
|
|
8523
|
-
|
|
8524
|
-
|
|
8525
|
-
|
|
8526
|
-
|
|
8527
|
-
|
|
8528
|
-
|
|
8529
|
-
*
|
|
8530
|
-
* To run a query within a React component, call `useFetchSetsSearchResultTypeSelectionsQuery` and pass it any options that fit your needs.
|
|
8531
|
-
* When your component renders, `useFetchSetsSearchResultTypeSelectionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
8532
|
-
* you can use to render your UI.
|
|
8533
|
-
*
|
|
8534
|
-
* @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;
|
|
8535
|
-
*
|
|
8536
|
-
* @example
|
|
8537
|
-
* const { data, loading, error } = useFetchSetsSearchResultTypeSelectionsQuery({
|
|
8538
|
-
* variables: {
|
|
8539
|
-
* },
|
|
8540
|
-
* });
|
|
8541
|
-
*/
|
|
8542
|
-
export function useFetchSetsSearchResultTypeSelectionsQuery(baseOptions?: Apollo.QueryHookOptions<IFetchSetsSearchResultTypeSelectionsQuery, IFetchSetsSearchResultTypeSelectionsQueryVariables>) {
|
|
8543
|
-
return Apollo.useQuery<IFetchSetsSearchResultTypeSelectionsQuery, IFetchSetsSearchResultTypeSelectionsQueryVariables>(FetchSetsSearchResultTypeSelectionsDocument, baseOptions);
|
|
8544
|
-
}
|
|
8545
|
-
export function useFetchSetsSearchResultTypeSelectionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchSetsSearchResultTypeSelectionsQuery, IFetchSetsSearchResultTypeSelectionsQueryVariables>) {
|
|
8546
|
-
return Apollo.useLazyQuery<IFetchSetsSearchResultTypeSelectionsQuery, IFetchSetsSearchResultTypeSelectionsQueryVariables>(FetchSetsSearchResultTypeSelectionsDocument, baseOptions);
|
|
8547
|
-
}
|
|
8548
|
-
export type FetchSetsSearchResultTypeSelectionsQueryHookResult = ReturnType<typeof useFetchSetsSearchResultTypeSelectionsQuery>;
|
|
8549
|
-
export type FetchSetsSearchResultTypeSelectionsLazyQueryHookResult = ReturnType<typeof useFetchSetsSearchResultTypeSelectionsLazyQuery>;
|
|
8550
|
-
export type FetchSetsSearchResultTypeSelectionsQueryResult = Apollo.QueryResult<IFetchSetsSearchResultTypeSelectionsQuery, IFetchSetsSearchResultTypeSelectionsQueryVariables>;
|
|
8551
|
-
export const FetchAllCreationsDocument = gql`
|
|
8552
|
-
query FetchAllCreations($page: PageInput) {
|
|
8553
|
-
fetchAllCreations(page: $page) {
|
|
8554
|
-
nextPage {
|
|
8555
|
-
token
|
|
8556
|
-
num
|
|
8557
|
-
size
|
|
8558
|
-
elements
|
|
8486
|
+
description
|
|
8487
|
+
rank
|
|
8488
|
+
markets {
|
|
8489
|
+
marketId
|
|
8490
|
+
marketName
|
|
8491
|
+
marketDomain
|
|
8492
|
+
marketUrl
|
|
8559
8493
|
}
|
|
8560
|
-
|
|
8561
|
-
|
|
8562
|
-
|
|
8563
|
-
|
|
8564
|
-
|
|
8565
|
-
|
|
8566
|
-
|
|
8567
|
-
|
|
8568
|
-
|
|
8569
|
-
|
|
8494
|
+
collectionMedias {
|
|
8495
|
+
originalUrl
|
|
8496
|
+
url
|
|
8497
|
+
previewUrl
|
|
8498
|
+
mimeType
|
|
8499
|
+
sizeRatio
|
|
8500
|
+
fileSize
|
|
8501
|
+
}
|
|
8502
|
+
originalUrls
|
|
8503
|
+
medias {
|
|
8504
|
+
originalUrl
|
|
8505
|
+
url
|
|
8506
|
+
mimeType
|
|
8507
|
+
sizeRatio
|
|
8508
|
+
fileSize
|
|
8509
|
+
previewUrl
|
|
8510
|
+
}
|
|
8511
|
+
ownersAddresses
|
|
8512
|
+
ownersProfiles {
|
|
8513
|
+
userId
|
|
8514
|
+
username
|
|
8515
|
+
about
|
|
8516
|
+
userpic
|
|
8517
|
+
followers
|
|
8518
|
+
followings
|
|
8519
|
+
visible
|
|
8520
|
+
}
|
|
8521
|
+
creatorsAddresses
|
|
8522
|
+
creatorsProfiles {
|
|
8523
|
+
userId
|
|
8524
|
+
username
|
|
8525
|
+
about
|
|
8526
|
+
userpic
|
|
8527
|
+
followers
|
|
8528
|
+
followings
|
|
8529
|
+
visible
|
|
8530
|
+
}
|
|
8531
|
+
attributes {
|
|
8570
8532
|
name
|
|
8571
|
-
|
|
8572
|
-
|
|
8573
|
-
|
|
8574
|
-
|
|
8533
|
+
value
|
|
8534
|
+
}
|
|
8535
|
+
views
|
|
8536
|
+
visible
|
|
8537
|
+
blurred
|
|
8538
|
+
medias {
|
|
8539
|
+
originalUrl
|
|
8540
|
+
url
|
|
8541
|
+
previewUrl
|
|
8575
8542
|
mimeType
|
|
8576
8543
|
}
|
|
8544
|
+
creatorsProfiles {
|
|
8545
|
+
username
|
|
8546
|
+
}
|
|
8577
8547
|
}
|
|
8578
8548
|
}
|
|
8579
8549
|
`;
|
|
8580
8550
|
|
|
8581
8551
|
/**
|
|
8582
|
-
*
|
|
8552
|
+
* __useFetchAssetsQuery__
|
|
8583
8553
|
*
|
|
8584
|
-
* To run a query within a React component, call `
|
|
8585
|
-
* When your component renders, `
|
|
8554
|
+
* To run a query within a React component, call `useFetchAssetsQuery` and pass it any options that fit your needs.
|
|
8555
|
+
* When your component renders, `useFetchAssetsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
8586
8556
|
* you can use to render your UI.
|
|
8587
8557
|
*
|
|
8588
8558
|
* @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;
|
|
8589
8559
|
*
|
|
8590
8560
|
* @example
|
|
8591
|
-
* const { data, loading, error } =
|
|
8561
|
+
* const { data, loading, error } = useFetchAssetsQuery({
|
|
8592
8562
|
* variables: {
|
|
8593
|
-
*
|
|
8563
|
+
* assetIds: // value for 'assetIds'
|
|
8594
8564
|
* },
|
|
8595
8565
|
* });
|
|
8596
8566
|
*/
|
|
8597
|
-
export function
|
|
8598
|
-
return Apollo.useQuery<
|
|
8567
|
+
export function useFetchAssetsQuery(baseOptions: Apollo.QueryHookOptions<IFetchAssetsQuery, IFetchAssetsQueryVariables>) {
|
|
8568
|
+
return Apollo.useQuery<IFetchAssetsQuery, IFetchAssetsQueryVariables>(FetchAssetsDocument, baseOptions);
|
|
8599
8569
|
}
|
|
8600
|
-
export function
|
|
8601
|
-
return Apollo.useLazyQuery<
|
|
8570
|
+
export function useFetchAssetsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAssetsQuery, IFetchAssetsQueryVariables>) {
|
|
8571
|
+
return Apollo.useLazyQuery<IFetchAssetsQuery, IFetchAssetsQueryVariables>(FetchAssetsDocument, baseOptions);
|
|
8602
8572
|
}
|
|
8603
|
-
export type
|
|
8604
|
-
export type
|
|
8605
|
-
export type
|
|
8573
|
+
export type FetchAssetsQueryHookResult = ReturnType<typeof useFetchAssetsQuery>;
|
|
8574
|
+
export type FetchAssetsLazyQueryHookResult = ReturnType<typeof useFetchAssetsLazyQuery>;
|
|
8575
|
+
export type FetchAssetsQueryResult = Apollo.QueryResult<IFetchAssetsQuery, IFetchAssetsQueryVariables>;
|
|
8606
8576
|
export const FetchAssetsCountDocument = gql`
|
|
8607
8577
|
query FetchAssetsCount {
|
|
8608
8578
|
fetchAssetsCount
|
|
@@ -8746,6 +8716,75 @@ export function useFetchCreationsByTypeLazyQuery(baseOptions?: Apollo.LazyQueryH
|
|
|
8746
8716
|
export type FetchCreationsByTypeQueryHookResult = ReturnType<typeof useFetchCreationsByTypeQuery>;
|
|
8747
8717
|
export type FetchCreationsByTypeLazyQueryHookResult = ReturnType<typeof useFetchCreationsByTypeLazyQuery>;
|
|
8748
8718
|
export type FetchCreationsByTypeQueryResult = Apollo.QueryResult<IFetchCreationsByTypeQuery, IFetchCreationsByTypeQueryVariables>;
|
|
8719
|
+
export const FetchDynamicAssetLikesDocument = gql`
|
|
8720
|
+
query FetchDynamicAssetLikes($assetId: String!) {
|
|
8721
|
+
fetchDynamicAssetData(assetId: $assetId) {
|
|
8722
|
+
isLikedByUser
|
|
8723
|
+
likesNum
|
|
8724
|
+
}
|
|
8725
|
+
}
|
|
8726
|
+
`;
|
|
8727
|
+
|
|
8728
|
+
/**
|
|
8729
|
+
* __useFetchDynamicAssetLikesQuery__
|
|
8730
|
+
*
|
|
8731
|
+
* To run a query within a React component, call `useFetchDynamicAssetLikesQuery` and pass it any options that fit your needs.
|
|
8732
|
+
* When your component renders, `useFetchDynamicAssetLikesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
8733
|
+
* you can use to render your UI.
|
|
8734
|
+
*
|
|
8735
|
+
* @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;
|
|
8736
|
+
*
|
|
8737
|
+
* @example
|
|
8738
|
+
* const { data, loading, error } = useFetchDynamicAssetLikesQuery({
|
|
8739
|
+
* variables: {
|
|
8740
|
+
* assetId: // value for 'assetId'
|
|
8741
|
+
* },
|
|
8742
|
+
* });
|
|
8743
|
+
*/
|
|
8744
|
+
export function useFetchDynamicAssetLikesQuery(baseOptions: Apollo.QueryHookOptions<IFetchDynamicAssetLikesQuery, IFetchDynamicAssetLikesQueryVariables>) {
|
|
8745
|
+
return Apollo.useQuery<IFetchDynamicAssetLikesQuery, IFetchDynamicAssetLikesQueryVariables>(FetchDynamicAssetLikesDocument, baseOptions);
|
|
8746
|
+
}
|
|
8747
|
+
export function useFetchDynamicAssetLikesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchDynamicAssetLikesQuery, IFetchDynamicAssetLikesQueryVariables>) {
|
|
8748
|
+
return Apollo.useLazyQuery<IFetchDynamicAssetLikesQuery, IFetchDynamicAssetLikesQueryVariables>(FetchDynamicAssetLikesDocument, baseOptions);
|
|
8749
|
+
}
|
|
8750
|
+
export type FetchDynamicAssetLikesQueryHookResult = ReturnType<typeof useFetchDynamicAssetLikesQuery>;
|
|
8751
|
+
export type FetchDynamicAssetLikesLazyQueryHookResult = ReturnType<typeof useFetchDynamicAssetLikesLazyQuery>;
|
|
8752
|
+
export type FetchDynamicAssetLikesQueryResult = Apollo.QueryResult<IFetchDynamicAssetLikesQuery, IFetchDynamicAssetLikesQueryVariables>;
|
|
8753
|
+
export const FetchDynamicAssetsLikesDocument = gql`
|
|
8754
|
+
query FetchDynamicAssetsLikes($assetIds: [String!]!) {
|
|
8755
|
+
fetchDynamicAssetsData(assetIds: $assetIds) {
|
|
8756
|
+
isLikedByUser
|
|
8757
|
+
likesNum
|
|
8758
|
+
assetId
|
|
8759
|
+
}
|
|
8760
|
+
}
|
|
8761
|
+
`;
|
|
8762
|
+
|
|
8763
|
+
/**
|
|
8764
|
+
* __useFetchDynamicAssetsLikesQuery__
|
|
8765
|
+
*
|
|
8766
|
+
* To run a query within a React component, call `useFetchDynamicAssetsLikesQuery` and pass it any options that fit your needs.
|
|
8767
|
+
* When your component renders, `useFetchDynamicAssetsLikesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
8768
|
+
* you can use to render your UI.
|
|
8769
|
+
*
|
|
8770
|
+
* @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;
|
|
8771
|
+
*
|
|
8772
|
+
* @example
|
|
8773
|
+
* const { data, loading, error } = useFetchDynamicAssetsLikesQuery({
|
|
8774
|
+
* variables: {
|
|
8775
|
+
* assetIds: // value for 'assetIds'
|
|
8776
|
+
* },
|
|
8777
|
+
* });
|
|
8778
|
+
*/
|
|
8779
|
+
export function useFetchDynamicAssetsLikesQuery(baseOptions: Apollo.QueryHookOptions<IFetchDynamicAssetsLikesQuery, IFetchDynamicAssetsLikesQueryVariables>) {
|
|
8780
|
+
return Apollo.useQuery<IFetchDynamicAssetsLikesQuery, IFetchDynamicAssetsLikesQueryVariables>(FetchDynamicAssetsLikesDocument, baseOptions);
|
|
8781
|
+
}
|
|
8782
|
+
export function useFetchDynamicAssetsLikesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchDynamicAssetsLikesQuery, IFetchDynamicAssetsLikesQueryVariables>) {
|
|
8783
|
+
return Apollo.useLazyQuery<IFetchDynamicAssetsLikesQuery, IFetchDynamicAssetsLikesQueryVariables>(FetchDynamicAssetsLikesDocument, baseOptions);
|
|
8784
|
+
}
|
|
8785
|
+
export type FetchDynamicAssetsLikesQueryHookResult = ReturnType<typeof useFetchDynamicAssetsLikesQuery>;
|
|
8786
|
+
export type FetchDynamicAssetsLikesLazyQueryHookResult = ReturnType<typeof useFetchDynamicAssetsLikesLazyQuery>;
|
|
8787
|
+
export type FetchDynamicAssetsLikesQueryResult = Apollo.QueryResult<IFetchDynamicAssetsLikesQuery, IFetchDynamicAssetsLikesQueryVariables>;
|
|
8749
8788
|
export const FindAllTopEntitiesByNameDocument = gql`
|
|
8750
8789
|
query FindAllTopEntitiesByName($name: String!, $pageSize: Int!) {
|
|
8751
8790
|
findAllTopEntitiesByName(name: $name, pageSize: $pageSize) {
|