@ludo.ninja/api 3.2.42 → 3.2.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +18 -10
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +6 -4
- package/build/graphql_tools/__generated__/searchHost/schema.d.ts +58 -0
- package/build/graphql_tools/__generated__/searchHost/schema.js +54 -2
- package/build/index.d.ts +24 -24
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +26 -10
- package/src/graphql_tools/__generated__/searchHost/schema.ts +74 -0
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -508,6 +508,12 @@ export type IQueryFetchProjectArgs = {
|
|
|
508
508
|
blockchain: Scalars['String'];
|
|
509
509
|
contract: Scalars['String'];
|
|
510
510
|
};
|
|
511
|
+
export type IQueryFetchProjectMonitoringArgs = {
|
|
512
|
+
userId: Scalars['ID'];
|
|
513
|
+
};
|
|
514
|
+
export type IQueryFetchProjectAlertingArgs = {
|
|
515
|
+
userId: Scalars['ID'];
|
|
516
|
+
};
|
|
511
517
|
export declare enum IReactionType {
|
|
512
518
|
Like = "LIKE",
|
|
513
519
|
Dislike = "DISLIKE",
|
|
@@ -947,8 +953,8 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
947
953
|
fetchOpportunityBySlug?: Resolver<IResolversTypes['OpportunityV2'], ParentType, ContextType, RequireFields<IQueryFetchOpportunityBySlugArgs, 'slug'>>;
|
|
948
954
|
fetchProjectBySlug?: Resolver<IResolversTypes['Project'], ParentType, ContextType, RequireFields<IQueryFetchProjectBySlugArgs, 'slug'>>;
|
|
949
955
|
fetchProject?: Resolver<Maybe<IResolversTypes['Project']>, ParentType, ContextType, RequireFields<IQueryFetchProjectArgs, 'blockchain' | 'contract'>>;
|
|
950
|
-
fetchProjectMonitoring?: Resolver<Maybe<IResolversTypes['ProjectMonitoring']>, ParentType, ContextType
|
|
951
|
-
fetchProjectAlerting?: Resolver<Maybe<IResolversTypes['ProjectAlerting']>, ParentType, ContextType
|
|
956
|
+
fetchProjectMonitoring?: Resolver<Maybe<IResolversTypes['ProjectMonitoring']>, ParentType, ContextType, RequireFields<IQueryFetchProjectMonitoringArgs, 'userId'>>;
|
|
957
|
+
fetchProjectAlerting?: Resolver<Maybe<IResolversTypes['ProjectAlerting']>, ParentType, ContextType, RequireFields<IQueryFetchProjectAlertingArgs, 'userId'>>;
|
|
952
958
|
fetchMonitorsCounter?: Resolver<Maybe<IResolversTypes['MonitorsCounter']>, ParentType, ContextType>;
|
|
953
959
|
};
|
|
954
960
|
export type IVotesGeolocationResolvers<ContextType = any, ParentType extends IResolversParentTypes['VotesGeolocation'] = IResolversParentTypes['VotesGeolocation']> = {
|
|
@@ -1137,7 +1143,7 @@ export type IFetchProjectQuery = {
|
|
|
1137
1143
|
})>;
|
|
1138
1144
|
};
|
|
1139
1145
|
export type IFetchProjectAlertingQueryVariables = Exact<{
|
|
1140
|
-
|
|
1146
|
+
userId: Scalars['ID'];
|
|
1141
1147
|
}>;
|
|
1142
1148
|
export type IFetchProjectAlertingQuery = {
|
|
1143
1149
|
fetchProjectAlerting?: Maybe<(Pick<IProjectAlerting, 'userId' | 'slotsFree' | 'slotsLimit' | 'activeUntil'> & {
|
|
@@ -1172,7 +1178,7 @@ export type IFetchProjectBySlugQuery = {
|
|
|
1172
1178
|
});
|
|
1173
1179
|
};
|
|
1174
1180
|
export type IFetchProjectMonitoringQueryVariables = Exact<{
|
|
1175
|
-
|
|
1181
|
+
userId: Scalars['ID'];
|
|
1176
1182
|
}>;
|
|
1177
1183
|
export type IFetchProjectMonitoringQuery = {
|
|
1178
1184
|
fetchProjectMonitoring?: Maybe<(Pick<IProjectMonitoring, 'userId' | 'monitorsFree' | 'monitorsLimit' | 'activeUntil'> & {
|
|
@@ -1864,14 +1870,15 @@ export declare const FetchProjectAlertingDocument: Apollo.DocumentNode;
|
|
|
1864
1870
|
* @example
|
|
1865
1871
|
* const { data, loading, error } = useFetchProjectAlertingQuery({
|
|
1866
1872
|
* variables: {
|
|
1873
|
+
* userId: // value for 'userId'
|
|
1867
1874
|
* },
|
|
1868
1875
|
* });
|
|
1869
1876
|
*/
|
|
1870
|
-
export declare function useFetchProjectAlertingQuery(baseOptions
|
|
1871
|
-
|
|
1877
|
+
export declare function useFetchProjectAlertingQuery(baseOptions: Apollo.QueryHookOptions<IFetchProjectAlertingQuery, IFetchProjectAlertingQueryVariables>): Apollo.QueryResult<IFetchProjectAlertingQuery, Exact<{
|
|
1878
|
+
userId: string;
|
|
1872
1879
|
}>>;
|
|
1873
1880
|
export declare function useFetchProjectAlertingLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProjectAlertingQuery, IFetchProjectAlertingQueryVariables>): Apollo.LazyQueryResultTuple<IFetchProjectAlertingQuery, Exact<{
|
|
1874
|
-
|
|
1881
|
+
userId: string;
|
|
1875
1882
|
}>>;
|
|
1876
1883
|
export type FetchProjectAlertingQueryHookResult = ReturnType<typeof useFetchProjectAlertingQuery>;
|
|
1877
1884
|
export type FetchProjectAlertingLazyQueryHookResult = ReturnType<typeof useFetchProjectAlertingLazyQuery>;
|
|
@@ -1915,14 +1922,15 @@ export declare const FetchProjectMonitoringDocument: Apollo.DocumentNode;
|
|
|
1915
1922
|
* @example
|
|
1916
1923
|
* const { data, loading, error } = useFetchProjectMonitoringQuery({
|
|
1917
1924
|
* variables: {
|
|
1925
|
+
* userId: // value for 'userId'
|
|
1918
1926
|
* },
|
|
1919
1927
|
* });
|
|
1920
1928
|
*/
|
|
1921
|
-
export declare function useFetchProjectMonitoringQuery(baseOptions
|
|
1922
|
-
|
|
1929
|
+
export declare function useFetchProjectMonitoringQuery(baseOptions: Apollo.QueryHookOptions<IFetchProjectMonitoringQuery, IFetchProjectMonitoringQueryVariables>): Apollo.QueryResult<IFetchProjectMonitoringQuery, Exact<{
|
|
1930
|
+
userId: string;
|
|
1923
1931
|
}>>;
|
|
1924
1932
|
export declare function useFetchProjectMonitoringLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProjectMonitoringQuery, IFetchProjectMonitoringQueryVariables>): Apollo.LazyQueryResultTuple<IFetchProjectMonitoringQuery, Exact<{
|
|
1925
|
-
|
|
1933
|
+
userId: string;
|
|
1926
1934
|
}>>;
|
|
1927
1935
|
export type FetchProjectMonitoringQueryHookResult = ReturnType<typeof useFetchProjectMonitoringQuery>;
|
|
1928
1936
|
export type FetchProjectMonitoringLazyQueryHookResult = ReturnType<typeof useFetchProjectMonitoringLazyQuery>;
|
|
@@ -1244,8 +1244,8 @@ function useFetchProjectLazyQuery(baseOptions) {
|
|
|
1244
1244
|
}
|
|
1245
1245
|
exports.useFetchProjectLazyQuery = useFetchProjectLazyQuery;
|
|
1246
1246
|
exports.FetchProjectAlertingDocument = (0, client_1.gql) `
|
|
1247
|
-
query FetchProjectAlerting {
|
|
1248
|
-
fetchProjectAlerting {
|
|
1247
|
+
query FetchProjectAlerting($userId: ID!) {
|
|
1248
|
+
fetchProjectAlerting(userId: $userId) {
|
|
1249
1249
|
userId
|
|
1250
1250
|
slotsFree
|
|
1251
1251
|
slotsLimit
|
|
@@ -1288,6 +1288,7 @@ exports.FetchProjectAlertingDocument = (0, client_1.gql) `
|
|
|
1288
1288
|
* @example
|
|
1289
1289
|
* const { data, loading, error } = useFetchProjectAlertingQuery({
|
|
1290
1290
|
* variables: {
|
|
1291
|
+
* userId: // value for 'userId'
|
|
1291
1292
|
* },
|
|
1292
1293
|
* });
|
|
1293
1294
|
*/
|
|
@@ -1498,8 +1499,8 @@ function useFetchProjectBySlugLazyQuery(baseOptions) {
|
|
|
1498
1499
|
}
|
|
1499
1500
|
exports.useFetchProjectBySlugLazyQuery = useFetchProjectBySlugLazyQuery;
|
|
1500
1501
|
exports.FetchProjectMonitoringDocument = (0, client_1.gql) `
|
|
1501
|
-
query FetchProjectMonitoring {
|
|
1502
|
-
fetchProjectMonitoring {
|
|
1502
|
+
query FetchProjectMonitoring($userId: ID!) {
|
|
1503
|
+
fetchProjectMonitoring(userId: $userId) {
|
|
1503
1504
|
userId
|
|
1504
1505
|
monitorsFree
|
|
1505
1506
|
monitorsLimit
|
|
@@ -1542,6 +1543,7 @@ exports.FetchProjectMonitoringDocument = (0, client_1.gql) `
|
|
|
1542
1543
|
* @example
|
|
1543
1544
|
* const { data, loading, error } = useFetchProjectMonitoringQuery({
|
|
1544
1545
|
* variables: {
|
|
1546
|
+
* userId: // value for 'userId'
|
|
1545
1547
|
* },
|
|
1546
1548
|
* });
|
|
1547
1549
|
*/
|
|
@@ -1196,6 +1196,14 @@ export type IDirectiveResolvers<ContextType = any> = {
|
|
|
1196
1196
|
experimental_disableErrorPropagation?: IExperimental_DisableErrorPropagationDirectiveResolver<any, any, ContextType>;
|
|
1197
1197
|
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
1198
1198
|
};
|
|
1199
|
+
export type IDislikeAssetMutationVariables = Exact<{
|
|
1200
|
+
assetId: Scalars['String'];
|
|
1201
|
+
}>;
|
|
1202
|
+
export type IDislikeAssetMutation = Pick<IMutation, 'dislikeAsset'>;
|
|
1203
|
+
export type ILikeAssetMutationVariables = Exact<{
|
|
1204
|
+
assetId: Scalars['String'];
|
|
1205
|
+
}>;
|
|
1206
|
+
export type ILikeAssetMutation = Pick<IMutation, 'likeAsset'>;
|
|
1199
1207
|
export type IFetchAirdropsLeaderboardQueryVariables = Exact<{
|
|
1200
1208
|
filter: IAirdropsLeaderboardFilterInput;
|
|
1201
1209
|
sort: IAirdropsLeaderboardSortInput;
|
|
@@ -1486,6 +1494,56 @@ export type IFindUserLudoCreationsQuery = {
|
|
|
1486
1494
|
creations: Array<Maybe<Pick<ICreation, 'id' | 'itemType' | 'tokenId' | 'address' | 'itemId' | 'blockchain' | 'rank' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType' | 'likes'>>>;
|
|
1487
1495
|
};
|
|
1488
1496
|
};
|
|
1497
|
+
export declare const DislikeAssetDocument: Apollo.DocumentNode;
|
|
1498
|
+
export type IDislikeAssetMutationFn = Apollo.MutationFunction<IDislikeAssetMutation, IDislikeAssetMutationVariables>;
|
|
1499
|
+
/**
|
|
1500
|
+
* __useDislikeAssetMutation__
|
|
1501
|
+
*
|
|
1502
|
+
* To run a mutation, you first call `useDislikeAssetMutation` within a React component and pass it any options that fit your needs.
|
|
1503
|
+
* When your component renders, `useDislikeAssetMutation` returns a tuple that includes:
|
|
1504
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1505
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1506
|
+
*
|
|
1507
|
+
* @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;
|
|
1508
|
+
*
|
|
1509
|
+
* @example
|
|
1510
|
+
* const [dislikeAssetMutation, { data, loading, error }] = useDislikeAssetMutation({
|
|
1511
|
+
* variables: {
|
|
1512
|
+
* assetId: // value for 'assetId'
|
|
1513
|
+
* },
|
|
1514
|
+
* });
|
|
1515
|
+
*/
|
|
1516
|
+
export declare function useDislikeAssetMutation(baseOptions?: Apollo.MutationHookOptions<IDislikeAssetMutation, IDislikeAssetMutationVariables>): Apollo.MutationTuple<IDislikeAssetMutation, Exact<{
|
|
1517
|
+
assetId: string;
|
|
1518
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1519
|
+
export type DislikeAssetMutationHookResult = ReturnType<typeof useDislikeAssetMutation>;
|
|
1520
|
+
export type DislikeAssetMutationResult = Apollo.MutationResult<IDislikeAssetMutation>;
|
|
1521
|
+
export type DislikeAssetMutationOptions = Apollo.BaseMutationOptions<IDislikeAssetMutation, IDislikeAssetMutationVariables>;
|
|
1522
|
+
export declare const LikeAssetDocument: Apollo.DocumentNode;
|
|
1523
|
+
export type ILikeAssetMutationFn = Apollo.MutationFunction<ILikeAssetMutation, ILikeAssetMutationVariables>;
|
|
1524
|
+
/**
|
|
1525
|
+
* __useLikeAssetMutation__
|
|
1526
|
+
*
|
|
1527
|
+
* To run a mutation, you first call `useLikeAssetMutation` within a React component and pass it any options that fit your needs.
|
|
1528
|
+
* When your component renders, `useLikeAssetMutation` returns a tuple that includes:
|
|
1529
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1530
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1531
|
+
*
|
|
1532
|
+
* @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;
|
|
1533
|
+
*
|
|
1534
|
+
* @example
|
|
1535
|
+
* const [likeAssetMutation, { data, loading, error }] = useLikeAssetMutation({
|
|
1536
|
+
* variables: {
|
|
1537
|
+
* assetId: // value for 'assetId'
|
|
1538
|
+
* },
|
|
1539
|
+
* });
|
|
1540
|
+
*/
|
|
1541
|
+
export declare function useLikeAssetMutation(baseOptions?: Apollo.MutationHookOptions<ILikeAssetMutation, ILikeAssetMutationVariables>): Apollo.MutationTuple<ILikeAssetMutation, Exact<{
|
|
1542
|
+
assetId: string;
|
|
1543
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
1544
|
+
export type LikeAssetMutationHookResult = ReturnType<typeof useLikeAssetMutation>;
|
|
1545
|
+
export type LikeAssetMutationResult = Apollo.MutationResult<ILikeAssetMutation>;
|
|
1546
|
+
export type LikeAssetMutationOptions = Apollo.BaseMutationOptions<ILikeAssetMutation, ILikeAssetMutationVariables>;
|
|
1489
1547
|
export declare const FetchAirdropsLeaderboardDocument: Apollo.DocumentNode;
|
|
1490
1548
|
/**
|
|
1491
1549
|
* __useFetchAirdropsLeaderboardQuery__
|
|
@@ -23,8 +23,8 @@ 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.useFindUserLudoCreationsLazyQuery = exports.useFindUserLudoCreationsQuery = exports.FindUserLudoCreationsDocument = exports.useFindUserCreationsLazyQuery = exports.useFindUserCreationsQuery = exports.FindUserCreationsDocument = exports.useFindProfilesByNameLazyQuery = exports.useFindProfilesByNameQuery = exports.FindProfilesByNameDocument = exports.useFindCreationsLazyQuery = exports.useFindCreationsQuery = exports.FindCreationsDocument = exports.useFetchUserReferralsInfoPageLazyQuery = exports.useFetchUserReferralsInfoPageQuery = exports.FetchUserReferralsInfoPageDocument = exports.useFetchUserReferralsInfoCsvLazyQuery = exports.useFetchUserReferralsInfoCsvQuery = exports.FetchUserReferralsInfoCsvDocument = exports.useFetchUsedForMintingRefCodeLazyQuery = exports.useFetchUsedForMintingRefCodeQuery = exports.FetchUsedForMintingRefCodeDocument = exports.useFetchUsedForMintingDataLazyQuery = exports.useFetchUsedForMintingDataQuery = exports.FetchUsedForMintingDataDocument = exports.useFetchProjectsSlugsLazyQuery = exports.useFetchProjectsSlugsQuery = exports.FetchProjectsSlugsDocument = exports.useFetchProjectsPageLazyQuery = exports.useFetchProjectsPageQuery = exports.FetchProjectsPageDocument = exports.useFetchProjectsLeaderboardLazyQuery = exports.useFetchProjectsLeaderboardQuery = exports.FetchProjectsLeaderboardDocument = exports.useFetchProjectsByTermLazyQuery = exports.useFetchProjectsByTermQuery = exports.FetchProjectsByTermDocument = exports.useFetchUserPortfolioLazyQuery = exports.useFetchUserPortfolioQuery = exports.FetchUserPortfolioDocument = void 0;
|
|
26
|
+
exports.useFindAllTopEntitiesByNameQuery = exports.FindAllTopEntitiesByNameDocument = exports.useFetchDynamicCollectionsDataLazyQuery = exports.useFetchDynamicCollectionsDataQuery = exports.FetchDynamicCollectionsDataDocument = exports.useFetchDynamicCollectionDataLazyQuery = exports.useFetchDynamicCollectionDataQuery = exports.FetchDynamicCollectionDataDocument = exports.useFetchDynamicAssetsLikesLazyQuery = exports.useFetchDynamicAssetsLikesQuery = exports.FetchDynamicAssetsLikesDocument = exports.useFetchDynamicAssetLikesLazyQuery = exports.useFetchDynamicAssetLikesQuery = exports.FetchDynamicAssetLikesDocument = exports.useFetchCreationsByTypeLazyQuery = exports.useFetchCreationsByTypeQuery = exports.FetchCreationsByTypeDocument = exports.useFetchCollectionsByIdsLazyQuery = exports.useFetchCollectionsByIdsQuery = exports.FetchCollectionsByIdsDocument = exports.useFindCollectionsLazyQuery = exports.useFindCollectionsQuery = exports.FindCollectionsDocument = exports.useFetchCollectionLazyQuery = exports.useFetchCollectionQuery = exports.FetchCollectionDocument = exports.useFetchAvailableLeaderboardsLazyQuery = exports.useFetchAvailableLeaderboardsQuery = exports.FetchAvailableLeaderboardsDocument = exports.useFetchAssetsLazyQuery = exports.useFetchAssetsQuery = exports.FetchAssetsDocument = exports.useFetchAssetByBlockchainLazyQuery = exports.useFetchAssetByBlockchainQuery = exports.FetchAssetByBlockchainDocument = exports.useFetchAllCreationsLazyQuery = exports.useFetchAllCreationsQuery = exports.FetchAllCreationsDocument = exports.useFetchAirdropsLeaderboardLazyQuery = exports.useFetchAirdropsLeaderboardQuery = exports.FetchAirdropsLeaderboardDocument = exports.useLikeAssetMutation = exports.LikeAssetDocument = exports.useDislikeAssetMutation = exports.DislikeAssetDocument = exports.ISortDirection = exports.IReftypeColor = exports.IProjectType = exports.ILeaderboardType = exports.IBlockchain = void 0;
|
|
27
|
+
exports.useFindUserLudoCreationsLazyQuery = exports.useFindUserLudoCreationsQuery = exports.FindUserLudoCreationsDocument = exports.useFindUserCreationsLazyQuery = exports.useFindUserCreationsQuery = exports.FindUserCreationsDocument = exports.useFindProfilesByNameLazyQuery = exports.useFindProfilesByNameQuery = exports.FindProfilesByNameDocument = exports.useFindCreationsLazyQuery = exports.useFindCreationsQuery = exports.FindCreationsDocument = exports.useFetchUserReferralsInfoPageLazyQuery = exports.useFetchUserReferralsInfoPageQuery = exports.FetchUserReferralsInfoPageDocument = exports.useFetchUserReferralsInfoCsvLazyQuery = exports.useFetchUserReferralsInfoCsvQuery = exports.FetchUserReferralsInfoCsvDocument = exports.useFetchUsedForMintingRefCodeLazyQuery = exports.useFetchUsedForMintingRefCodeQuery = exports.FetchUsedForMintingRefCodeDocument = exports.useFetchUsedForMintingDataLazyQuery = exports.useFetchUsedForMintingDataQuery = exports.FetchUsedForMintingDataDocument = exports.useFetchProjectsSlugsLazyQuery = exports.useFetchProjectsSlugsQuery = exports.FetchProjectsSlugsDocument = exports.useFetchProjectsPageLazyQuery = exports.useFetchProjectsPageQuery = exports.FetchProjectsPageDocument = exports.useFetchProjectsLeaderboardLazyQuery = exports.useFetchProjectsLeaderboardQuery = exports.FetchProjectsLeaderboardDocument = exports.useFetchProjectsByTermLazyQuery = exports.useFetchProjectsByTermQuery = exports.FetchProjectsByTermDocument = exports.useFetchUserPortfolioLazyQuery = exports.useFetchUserPortfolioQuery = exports.FetchUserPortfolioDocument = exports.useFetchLudoNftsTonPageLazyQuery = exports.useFetchLudoNftsTonPageQuery = exports.FetchLudoNftsTonPageDocument = exports.useFindAllTopEntitiesByNameLazyQuery = void 0;
|
|
28
28
|
const client_1 = require("@apollo/client");
|
|
29
29
|
const Apollo = __importStar(require("@apollo/client"));
|
|
30
30
|
var IBlockchain;
|
|
@@ -84,6 +84,58 @@ var ISortDirection;
|
|
|
84
84
|
ISortDirection["Asc"] = "asc";
|
|
85
85
|
ISortDirection["Desc"] = "desc";
|
|
86
86
|
})(ISortDirection || (exports.ISortDirection = ISortDirection = {}));
|
|
87
|
+
exports.DislikeAssetDocument = (0, client_1.gql) `
|
|
88
|
+
mutation DislikeAsset($assetId: String!) {
|
|
89
|
+
dislikeAsset(assetId: $assetId)
|
|
90
|
+
}
|
|
91
|
+
`;
|
|
92
|
+
/**
|
|
93
|
+
* __useDislikeAssetMutation__
|
|
94
|
+
*
|
|
95
|
+
* To run a mutation, you first call `useDislikeAssetMutation` within a React component and pass it any options that fit your needs.
|
|
96
|
+
* When your component renders, `useDislikeAssetMutation` returns a tuple that includes:
|
|
97
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
98
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
99
|
+
*
|
|
100
|
+
* @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;
|
|
101
|
+
*
|
|
102
|
+
* @example
|
|
103
|
+
* const [dislikeAssetMutation, { data, loading, error }] = useDislikeAssetMutation({
|
|
104
|
+
* variables: {
|
|
105
|
+
* assetId: // value for 'assetId'
|
|
106
|
+
* },
|
|
107
|
+
* });
|
|
108
|
+
*/
|
|
109
|
+
function useDislikeAssetMutation(baseOptions) {
|
|
110
|
+
return Apollo.useMutation(exports.DislikeAssetDocument, baseOptions);
|
|
111
|
+
}
|
|
112
|
+
exports.useDislikeAssetMutation = useDislikeAssetMutation;
|
|
113
|
+
exports.LikeAssetDocument = (0, client_1.gql) `
|
|
114
|
+
mutation LikeAsset($assetId: String!) {
|
|
115
|
+
likeAsset(assetId: $assetId)
|
|
116
|
+
}
|
|
117
|
+
`;
|
|
118
|
+
/**
|
|
119
|
+
* __useLikeAssetMutation__
|
|
120
|
+
*
|
|
121
|
+
* To run a mutation, you first call `useLikeAssetMutation` within a React component and pass it any options that fit your needs.
|
|
122
|
+
* When your component renders, `useLikeAssetMutation` returns a tuple that includes:
|
|
123
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
124
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
125
|
+
*
|
|
126
|
+
* @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;
|
|
127
|
+
*
|
|
128
|
+
* @example
|
|
129
|
+
* const [likeAssetMutation, { data, loading, error }] = useLikeAssetMutation({
|
|
130
|
+
* variables: {
|
|
131
|
+
* assetId: // value for 'assetId'
|
|
132
|
+
* },
|
|
133
|
+
* });
|
|
134
|
+
*/
|
|
135
|
+
function useLikeAssetMutation(baseOptions) {
|
|
136
|
+
return Apollo.useMutation(exports.LikeAssetDocument, baseOptions);
|
|
137
|
+
}
|
|
138
|
+
exports.useLikeAssetMutation = useLikeAssetMutation;
|
|
87
139
|
exports.FetchAirdropsLeaderboardDocument = (0, client_1.gql) `
|
|
88
140
|
query FetchAirdropsLeaderboard($filter: AirdropsLeaderboardFilterInput!, $sort: AirdropsLeaderboardSortInput!, $page: PageInput!) {
|
|
89
141
|
fetchAirdropsLeaderboard(filter: $filter, sort: $sort, page: $page) {
|
package/build/index.d.ts
CHANGED
|
@@ -227,6 +227,16 @@ declare const schema: {
|
|
|
227
227
|
SubmitPartnershipInquiryDocument: import("graphql").DocumentNode;
|
|
228
228
|
SubmitRegistrationInviteDocument: import("graphql").DocumentNode;
|
|
229
229
|
SubmitUserFeedbackDocument: import("graphql").DocumentNode;
|
|
230
|
+
useDislikeAssetMutation(baseOptions?: import("@apollo/client").MutationHookOptions<searchSchema.IDislikeAssetMutation, searchSchema.Exact<{
|
|
231
|
+
assetId: string;
|
|
232
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<searchSchema.IDislikeAssetMutation, searchSchema.Exact<{
|
|
233
|
+
assetId: string;
|
|
234
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
235
|
+
useLikeAssetMutation(baseOptions?: import("@apollo/client").MutationHookOptions<searchSchema.ILikeAssetMutation, searchSchema.Exact<{
|
|
236
|
+
assetId: string;
|
|
237
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<searchSchema.ILikeAssetMutation, searchSchema.Exact<{
|
|
238
|
+
assetId: string;
|
|
239
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
230
240
|
useFetchAirdropsLeaderboardQuery(baseOptions: import("@apollo/client").QueryHookOptions<searchSchema.IFetchAirdropsLeaderboardQuery, searchSchema.Exact<{
|
|
231
241
|
filter: searchSchema.IAirdropsLeaderboardFilterInput;
|
|
232
242
|
sort: searchSchema.IAirdropsLeaderboardSortInput;
|
|
@@ -608,6 +618,8 @@ declare const schema: {
|
|
|
608
618
|
IProjectType: typeof searchSchema.IProjectType;
|
|
609
619
|
IReftypeColor: typeof searchSchema.IReftypeColor;
|
|
610
620
|
ISortDirection: typeof searchSchema.ISortDirection;
|
|
621
|
+
DislikeAssetDocument: import("graphql").DocumentNode;
|
|
622
|
+
LikeAssetDocument: import("graphql").DocumentNode;
|
|
611
623
|
FetchAirdropsLeaderboardDocument: import("graphql").DocumentNode;
|
|
612
624
|
FetchAllCreationsDocument: import("graphql").DocumentNode;
|
|
613
625
|
FetchAssetByBlockchainDocument: import("graphql").DocumentNode;
|
|
@@ -930,15 +942,15 @@ declare const schema: {
|
|
|
930
942
|
blockchain: string;
|
|
931
943
|
contract: string;
|
|
932
944
|
}>>;
|
|
933
|
-
useFetchProjectAlertingQuery(baseOptions
|
|
934
|
-
|
|
935
|
-
}>>
|
|
936
|
-
|
|
945
|
+
useFetchProjectAlertingQuery(baseOptions: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchProjectAlertingQuery, opportunitiesSchema.Exact<{
|
|
946
|
+
userId: string;
|
|
947
|
+
}>>): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchProjectAlertingQuery, opportunitiesSchema.Exact<{
|
|
948
|
+
userId: string;
|
|
937
949
|
}>>;
|
|
938
950
|
useFetchProjectAlertingLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<opportunitiesSchema.IFetchProjectAlertingQuery, opportunitiesSchema.Exact<{
|
|
939
|
-
|
|
951
|
+
userId: string;
|
|
940
952
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchProjectAlertingQuery, opportunitiesSchema.Exact<{
|
|
941
|
-
|
|
953
|
+
userId: string;
|
|
942
954
|
}>>;
|
|
943
955
|
useFetchProjectBySlugQuery(baseOptions: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchProjectBySlugQuery, opportunitiesSchema.Exact<{
|
|
944
956
|
slug: string;
|
|
@@ -950,15 +962,15 @@ declare const schema: {
|
|
|
950
962
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchProjectBySlugQuery, opportunitiesSchema.Exact<{
|
|
951
963
|
slug: string;
|
|
952
964
|
}>>;
|
|
953
|
-
useFetchProjectMonitoringQuery(baseOptions
|
|
954
|
-
|
|
955
|
-
}>>
|
|
956
|
-
|
|
965
|
+
useFetchProjectMonitoringQuery(baseOptions: import("@apollo/client").QueryHookOptions<opportunitiesSchema.IFetchProjectMonitoringQuery, opportunitiesSchema.Exact<{
|
|
966
|
+
userId: string;
|
|
967
|
+
}>>): import("@apollo/client").QueryResult<opportunitiesSchema.IFetchProjectMonitoringQuery, opportunitiesSchema.Exact<{
|
|
968
|
+
userId: string;
|
|
957
969
|
}>>;
|
|
958
970
|
useFetchProjectMonitoringLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<opportunitiesSchema.IFetchProjectMonitoringQuery, opportunitiesSchema.Exact<{
|
|
959
|
-
|
|
971
|
+
userId: string;
|
|
960
972
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<opportunitiesSchema.IFetchProjectMonitoringQuery, opportunitiesSchema.Exact<{
|
|
961
|
-
|
|
973
|
+
userId: string;
|
|
962
974
|
}>>;
|
|
963
975
|
ILinkType: typeof opportunitiesSchema.ILinkType;
|
|
964
976
|
IProjectRegistrationStatus: typeof opportunitiesSchema.IProjectRegistrationStatus;
|
|
@@ -1750,18 +1762,6 @@ declare const schema: {
|
|
|
1750
1762
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1751
1763
|
RefreshTokenDocument: import("graphql").DocumentNode;
|
|
1752
1764
|
RevokeTokenDocument: import("graphql").DocumentNode;
|
|
1753
|
-
useDislikeAssetMutation(baseOptions?: import("@apollo/client").MutationHookOptions<assetSchema.IDislikeAssetMutation, assetSchema.Exact<{
|
|
1754
|
-
assetId: string;
|
|
1755
|
-
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<assetSchema.IDislikeAssetMutation, assetSchema.Exact<{
|
|
1756
|
-
assetId: string;
|
|
1757
|
-
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1758
|
-
useLikeAssetMutation(baseOptions?: import("@apollo/client").MutationHookOptions<assetSchema.ILikeAssetMutation, assetSchema.Exact<{
|
|
1759
|
-
assetId: string;
|
|
1760
|
-
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<assetSchema.ILikeAssetMutation, assetSchema.Exact<{
|
|
1761
|
-
assetId: string;
|
|
1762
|
-
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
1763
|
-
DislikeAssetDocument: import("graphql").DocumentNode;
|
|
1764
|
-
LikeAssetDocument: import("graphql").DocumentNode;
|
|
1765
1765
|
useCreateReferralTypeMutation(baseOptions?: import("@apollo/client").MutationHookOptions<adminSchema.ICreateReferralTypeMutation, adminSchema.Exact<{
|
|
1766
1766
|
input: adminSchema.IReferralTypeInput;
|
|
1767
1767
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<adminSchema.ICreateReferralTypeMutation, adminSchema.Exact<{
|
package/package.json
CHANGED
|
@@ -611,6 +611,16 @@ export type IQueryFetchProjectArgs = {
|
|
|
611
611
|
contract: Scalars['String'];
|
|
612
612
|
};
|
|
613
613
|
|
|
614
|
+
|
|
615
|
+
export type IQueryFetchProjectMonitoringArgs = {
|
|
616
|
+
userId: Scalars['ID'];
|
|
617
|
+
};
|
|
618
|
+
|
|
619
|
+
|
|
620
|
+
export type IQueryFetchProjectAlertingArgs = {
|
|
621
|
+
userId: Scalars['ID'];
|
|
622
|
+
};
|
|
623
|
+
|
|
614
624
|
export enum IReactionType {
|
|
615
625
|
Like = 'LIKE',
|
|
616
626
|
Dislike = 'DISLIKE',
|
|
@@ -1121,8 +1131,8 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
1121
1131
|
fetchOpportunityBySlug?: Resolver<IResolversTypes['OpportunityV2'], ParentType, ContextType, RequireFields<IQueryFetchOpportunityBySlugArgs, 'slug'>>;
|
|
1122
1132
|
fetchProjectBySlug?: Resolver<IResolversTypes['Project'], ParentType, ContextType, RequireFields<IQueryFetchProjectBySlugArgs, 'slug'>>;
|
|
1123
1133
|
fetchProject?: Resolver<Maybe<IResolversTypes['Project']>, ParentType, ContextType, RequireFields<IQueryFetchProjectArgs, 'blockchain' | 'contract'>>;
|
|
1124
|
-
fetchProjectMonitoring?: Resolver<Maybe<IResolversTypes['ProjectMonitoring']>, ParentType, ContextType
|
|
1125
|
-
fetchProjectAlerting?: Resolver<Maybe<IResolversTypes['ProjectAlerting']>, ParentType, ContextType
|
|
1134
|
+
fetchProjectMonitoring?: Resolver<Maybe<IResolversTypes['ProjectMonitoring']>, ParentType, ContextType, RequireFields<IQueryFetchProjectMonitoringArgs, 'userId'>>;
|
|
1135
|
+
fetchProjectAlerting?: Resolver<Maybe<IResolversTypes['ProjectAlerting']>, ParentType, ContextType, RequireFields<IQueryFetchProjectAlertingArgs, 'userId'>>;
|
|
1126
1136
|
fetchMonitorsCounter?: Resolver<Maybe<IResolversTypes['MonitorsCounter']>, ParentType, ContextType>;
|
|
1127
1137
|
};
|
|
1128
1138
|
|
|
@@ -1364,7 +1374,9 @@ export type IFetchProjectQuery = { fetchProject?: Maybe<(
|
|
|
1364
1374
|
& { status?: Maybe<Pick<IProjectStatus, 'monitored' | 'removalReason' | 'removalDate'>> }
|
|
1365
1375
|
)> };
|
|
1366
1376
|
|
|
1367
|
-
export type IFetchProjectAlertingQueryVariables = Exact<{
|
|
1377
|
+
export type IFetchProjectAlertingQueryVariables = Exact<{
|
|
1378
|
+
userId: Scalars['ID'];
|
|
1379
|
+
}>;
|
|
1368
1380
|
|
|
1369
1381
|
|
|
1370
1382
|
export type IFetchProjectAlertingQuery = { fetchProjectAlerting?: Maybe<(
|
|
@@ -1397,7 +1409,9 @@ export type IFetchProjectBySlugQuery = { fetchProjectBySlug: (
|
|
|
1397
1409
|
)>> }
|
|
1398
1410
|
) };
|
|
1399
1411
|
|
|
1400
|
-
export type IFetchProjectMonitoringQueryVariables = Exact<{
|
|
1412
|
+
export type IFetchProjectMonitoringQueryVariables = Exact<{
|
|
1413
|
+
userId: Scalars['ID'];
|
|
1414
|
+
}>;
|
|
1401
1415
|
|
|
1402
1416
|
|
|
1403
1417
|
export type IFetchProjectMonitoringQuery = { fetchProjectMonitoring?: Maybe<(
|
|
@@ -2683,8 +2697,8 @@ export type FetchProjectQueryHookResult = ReturnType<typeof useFetchProjectQuery
|
|
|
2683
2697
|
export type FetchProjectLazyQueryHookResult = ReturnType<typeof useFetchProjectLazyQuery>;
|
|
2684
2698
|
export type FetchProjectQueryResult = Apollo.QueryResult<IFetchProjectQuery, IFetchProjectQueryVariables>;
|
|
2685
2699
|
export const FetchProjectAlertingDocument = gql`
|
|
2686
|
-
query FetchProjectAlerting {
|
|
2687
|
-
fetchProjectAlerting {
|
|
2700
|
+
query FetchProjectAlerting($userId: ID!) {
|
|
2701
|
+
fetchProjectAlerting(userId: $userId) {
|
|
2688
2702
|
userId
|
|
2689
2703
|
slotsFree
|
|
2690
2704
|
slotsLimit
|
|
@@ -2728,10 +2742,11 @@ export const FetchProjectAlertingDocument = gql`
|
|
|
2728
2742
|
* @example
|
|
2729
2743
|
* const { data, loading, error } = useFetchProjectAlertingQuery({
|
|
2730
2744
|
* variables: {
|
|
2745
|
+
* userId: // value for 'userId'
|
|
2731
2746
|
* },
|
|
2732
2747
|
* });
|
|
2733
2748
|
*/
|
|
2734
|
-
export function useFetchProjectAlertingQuery(baseOptions
|
|
2749
|
+
export function useFetchProjectAlertingQuery(baseOptions: Apollo.QueryHookOptions<IFetchProjectAlertingQuery, IFetchProjectAlertingQueryVariables>) {
|
|
2735
2750
|
return Apollo.useQuery<IFetchProjectAlertingQuery, IFetchProjectAlertingQueryVariables>(FetchProjectAlertingDocument, baseOptions);
|
|
2736
2751
|
}
|
|
2737
2752
|
export function useFetchProjectAlertingLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProjectAlertingQuery, IFetchProjectAlertingQueryVariables>) {
|
|
@@ -2941,8 +2956,8 @@ export type FetchProjectBySlugQueryHookResult = ReturnType<typeof useFetchProjec
|
|
|
2941
2956
|
export type FetchProjectBySlugLazyQueryHookResult = ReturnType<typeof useFetchProjectBySlugLazyQuery>;
|
|
2942
2957
|
export type FetchProjectBySlugQueryResult = Apollo.QueryResult<IFetchProjectBySlugQuery, IFetchProjectBySlugQueryVariables>;
|
|
2943
2958
|
export const FetchProjectMonitoringDocument = gql`
|
|
2944
|
-
query FetchProjectMonitoring {
|
|
2945
|
-
fetchProjectMonitoring {
|
|
2959
|
+
query FetchProjectMonitoring($userId: ID!) {
|
|
2960
|
+
fetchProjectMonitoring(userId: $userId) {
|
|
2946
2961
|
userId
|
|
2947
2962
|
monitorsFree
|
|
2948
2963
|
monitorsLimit
|
|
@@ -2986,10 +3001,11 @@ export const FetchProjectMonitoringDocument = gql`
|
|
|
2986
3001
|
* @example
|
|
2987
3002
|
* const { data, loading, error } = useFetchProjectMonitoringQuery({
|
|
2988
3003
|
* variables: {
|
|
3004
|
+
* userId: // value for 'userId'
|
|
2989
3005
|
* },
|
|
2990
3006
|
* });
|
|
2991
3007
|
*/
|
|
2992
|
-
export function useFetchProjectMonitoringQuery(baseOptions
|
|
3008
|
+
export function useFetchProjectMonitoringQuery(baseOptions: Apollo.QueryHookOptions<IFetchProjectMonitoringQuery, IFetchProjectMonitoringQueryVariables>) {
|
|
2993
3009
|
return Apollo.useQuery<IFetchProjectMonitoringQuery, IFetchProjectMonitoringQueryVariables>(FetchProjectMonitoringDocument, baseOptions);
|
|
2994
3010
|
}
|
|
2995
3011
|
export function useFetchProjectMonitoringLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchProjectMonitoringQuery, IFetchProjectMonitoringQueryVariables>) {
|
|
@@ -1396,6 +1396,20 @@ export type IDirectiveResolvers<ContextType = any> = {
|
|
|
1396
1396
|
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
1397
1397
|
};
|
|
1398
1398
|
|
|
1399
|
+
export type IDislikeAssetMutationVariables = Exact<{
|
|
1400
|
+
assetId: Scalars['String'];
|
|
1401
|
+
}>;
|
|
1402
|
+
|
|
1403
|
+
|
|
1404
|
+
export type IDislikeAssetMutation = Pick<IMutation, 'dislikeAsset'>;
|
|
1405
|
+
|
|
1406
|
+
export type ILikeAssetMutationVariables = Exact<{
|
|
1407
|
+
assetId: Scalars['String'];
|
|
1408
|
+
}>;
|
|
1409
|
+
|
|
1410
|
+
|
|
1411
|
+
export type ILikeAssetMutation = Pick<IMutation, 'likeAsset'>;
|
|
1412
|
+
|
|
1399
1413
|
export type IFetchAirdropsLeaderboardQueryVariables = Exact<{
|
|
1400
1414
|
filter: IAirdropsLeaderboardFilterInput;
|
|
1401
1415
|
sort: IAirdropsLeaderboardSortInput;
|
|
@@ -1649,6 +1663,66 @@ export type IFindUserLudoCreationsQueryVariables = Exact<{
|
|
|
1649
1663
|
export type IFindUserLudoCreationsQuery = { findUserLudoCreations: { nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>, creations: Array<Maybe<Pick<ICreation, 'id' | 'itemType' | 'tokenId' | 'address' | 'itemId' | 'blockchain' | 'rank' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType' | 'likes'>>> } };
|
|
1650
1664
|
|
|
1651
1665
|
|
|
1666
|
+
export const DislikeAssetDocument = gql`
|
|
1667
|
+
mutation DislikeAsset($assetId: String!) {
|
|
1668
|
+
dislikeAsset(assetId: $assetId)
|
|
1669
|
+
}
|
|
1670
|
+
`;
|
|
1671
|
+
export type IDislikeAssetMutationFn = Apollo.MutationFunction<IDislikeAssetMutation, IDislikeAssetMutationVariables>;
|
|
1672
|
+
|
|
1673
|
+
/**
|
|
1674
|
+
* __useDislikeAssetMutation__
|
|
1675
|
+
*
|
|
1676
|
+
* To run a mutation, you first call `useDislikeAssetMutation` within a React component and pass it any options that fit your needs.
|
|
1677
|
+
* When your component renders, `useDislikeAssetMutation` returns a tuple that includes:
|
|
1678
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1679
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1680
|
+
*
|
|
1681
|
+
* @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;
|
|
1682
|
+
*
|
|
1683
|
+
* @example
|
|
1684
|
+
* const [dislikeAssetMutation, { data, loading, error }] = useDislikeAssetMutation({
|
|
1685
|
+
* variables: {
|
|
1686
|
+
* assetId: // value for 'assetId'
|
|
1687
|
+
* },
|
|
1688
|
+
* });
|
|
1689
|
+
*/
|
|
1690
|
+
export function useDislikeAssetMutation(baseOptions?: Apollo.MutationHookOptions<IDislikeAssetMutation, IDislikeAssetMutationVariables>) {
|
|
1691
|
+
return Apollo.useMutation<IDislikeAssetMutation, IDislikeAssetMutationVariables>(DislikeAssetDocument, baseOptions);
|
|
1692
|
+
}
|
|
1693
|
+
export type DislikeAssetMutationHookResult = ReturnType<typeof useDislikeAssetMutation>;
|
|
1694
|
+
export type DislikeAssetMutationResult = Apollo.MutationResult<IDislikeAssetMutation>;
|
|
1695
|
+
export type DislikeAssetMutationOptions = Apollo.BaseMutationOptions<IDislikeAssetMutation, IDislikeAssetMutationVariables>;
|
|
1696
|
+
export const LikeAssetDocument = gql`
|
|
1697
|
+
mutation LikeAsset($assetId: String!) {
|
|
1698
|
+
likeAsset(assetId: $assetId)
|
|
1699
|
+
}
|
|
1700
|
+
`;
|
|
1701
|
+
export type ILikeAssetMutationFn = Apollo.MutationFunction<ILikeAssetMutation, ILikeAssetMutationVariables>;
|
|
1702
|
+
|
|
1703
|
+
/**
|
|
1704
|
+
* __useLikeAssetMutation__
|
|
1705
|
+
*
|
|
1706
|
+
* To run a mutation, you first call `useLikeAssetMutation` within a React component and pass it any options that fit your needs.
|
|
1707
|
+
* When your component renders, `useLikeAssetMutation` returns a tuple that includes:
|
|
1708
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
1709
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
1710
|
+
*
|
|
1711
|
+
* @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;
|
|
1712
|
+
*
|
|
1713
|
+
* @example
|
|
1714
|
+
* const [likeAssetMutation, { data, loading, error }] = useLikeAssetMutation({
|
|
1715
|
+
* variables: {
|
|
1716
|
+
* assetId: // value for 'assetId'
|
|
1717
|
+
* },
|
|
1718
|
+
* });
|
|
1719
|
+
*/
|
|
1720
|
+
export function useLikeAssetMutation(baseOptions?: Apollo.MutationHookOptions<ILikeAssetMutation, ILikeAssetMutationVariables>) {
|
|
1721
|
+
return Apollo.useMutation<ILikeAssetMutation, ILikeAssetMutationVariables>(LikeAssetDocument, baseOptions);
|
|
1722
|
+
}
|
|
1723
|
+
export type LikeAssetMutationHookResult = ReturnType<typeof useLikeAssetMutation>;
|
|
1724
|
+
export type LikeAssetMutationResult = Apollo.MutationResult<ILikeAssetMutation>;
|
|
1725
|
+
export type LikeAssetMutationOptions = Apollo.BaseMutationOptions<ILikeAssetMutation, ILikeAssetMutationVariables>;
|
|
1652
1726
|
export const FetchAirdropsLeaderboardDocument = gql`
|
|
1653
1727
|
query FetchAirdropsLeaderboard($filter: AirdropsLeaderboardFilterInput!, $sort: AirdropsLeaderboardSortInput!, $page: PageInput!) {
|
|
1654
1728
|
fetchAirdropsLeaderboard(filter: $filter, sort: $sort, page: $page) {
|