@ludo.ninja/api 3.0.47 → 3.0.49
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.js +1 -1
- package/build/graphql_tools/__generated__/searchHost/schema.d.ts +94 -5
- package/build/graphql_tools/__generated__/searchHost/schema.js +53 -2
- package/build/index.d.ts +15 -0
- package/package.json +1 -1
- package/src/cookies/index.ts +48 -32
- package/src/graphql_tools/__generated__/searchHost/schema.ts +124 -5
- package/tsconfig.tsbuildinfo +1 -1
package/build/cookies/index.js
CHANGED
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getCookies = exports.destroyCookies = exports.refreshCookies = exports.assignCookies = void 0;
|
|
4
4
|
const nookies_1 = require("nookies");
|
|
5
5
|
// handle change version when update cookies structure
|
|
6
|
-
const cookiesVersion = '1.0.
|
|
6
|
+
const cookiesVersion = '1.0.4';
|
|
7
7
|
const addVersionCookies = (domain) => {
|
|
8
8
|
(0, nookies_1.setCookie)(null, "versionAuth", cookiesVersion, {
|
|
9
9
|
maxAge: 2629800000,
|
|
@@ -192,6 +192,24 @@ export declare enum ILeaderboardType {
|
|
|
192
192
|
Airdrops = "AIRDROPS",
|
|
193
193
|
Projects = "PROJECTS"
|
|
194
194
|
}
|
|
195
|
+
export type ILudoNftTon = {
|
|
196
|
+
id: Scalars['ID'];
|
|
197
|
+
name?: Maybe<Scalars['String']>;
|
|
198
|
+
description?: Maybe<Scalars['String']>;
|
|
199
|
+
address: Scalars['String'];
|
|
200
|
+
tokenId: Scalars['String'];
|
|
201
|
+
nftIndexInCollection: Scalars['Int'];
|
|
202
|
+
creationDate?: Maybe<Scalars['Long']>;
|
|
203
|
+
rank?: Maybe<Scalars['Float']>;
|
|
204
|
+
userId: Scalars['String'];
|
|
205
|
+
ownersAddresses: Array<Scalars['String']>;
|
|
206
|
+
creatorsAddresses: Array<Scalars['String']>;
|
|
207
|
+
originalUrls: Array<Scalars['String']>;
|
|
208
|
+
};
|
|
209
|
+
export type ILudoNftsTonPage = {
|
|
210
|
+
ludoNftsTon: Array<ILudoNftTon>;
|
|
211
|
+
nextPage?: Maybe<IPage>;
|
|
212
|
+
};
|
|
195
213
|
export type IMedia = {
|
|
196
214
|
originalUrl?: Maybe<Scalars['String']>;
|
|
197
215
|
url?: Maybe<Scalars['String']>;
|
|
@@ -292,8 +310,6 @@ export type IProject = {
|
|
|
292
310
|
vcBackers?: Maybe<Scalars['Int']>;
|
|
293
311
|
securityScore?: Maybe<Scalars['Int']>;
|
|
294
312
|
types: Array<IProjectType>;
|
|
295
|
-
hidden?: Maybe<Scalars['Boolean']>;
|
|
296
|
-
showcase?: Maybe<Scalars['Boolean']>;
|
|
297
313
|
};
|
|
298
314
|
export declare enum IProjectType {
|
|
299
315
|
MemeCoins = "MEME_COINS",
|
|
@@ -309,7 +325,6 @@ export type IProjectsLeaderboardFilterInput = {
|
|
|
309
325
|
vcBackers?: Maybe<Scalars['Int']>;
|
|
310
326
|
securityScore?: Maybe<Scalars['Int']>;
|
|
311
327
|
type?: Maybe<IProjectType>;
|
|
312
|
-
hidden?: Maybe<Scalars['Boolean']>;
|
|
313
328
|
};
|
|
314
329
|
export type IProjectsLeaderboardSortInput = {
|
|
315
330
|
sortByMarketCap?: Maybe<ISort>;
|
|
@@ -341,6 +356,8 @@ export type IQuery = {
|
|
|
341
356
|
findUserCreations: ICreationsPage;
|
|
342
357
|
findUserLudoCreations: ICreationsPage;
|
|
343
358
|
fetchAvailableLeaderboards?: Maybe<Array<Maybe<ILeaderboardType>>>;
|
|
359
|
+
fetchMyLudoNftsTonPage: ILudoNftsTonPage;
|
|
360
|
+
fetchLudoNftsTonPage: ILudoNftsTonPage;
|
|
344
361
|
fetchAirdropsLeaderboard: IOpportunitiesPage;
|
|
345
362
|
findProfilesByName: IProfilePage;
|
|
346
363
|
fetchUserReferralsInfoPage: IUserReferralsInfoPage;
|
|
@@ -413,6 +430,13 @@ export type IQueryFindUserLudoCreationsArgs = {
|
|
|
413
430
|
ownerId: Scalars['String'];
|
|
414
431
|
page?: Maybe<IPageInput>;
|
|
415
432
|
};
|
|
433
|
+
export type IQueryFetchMyLudoNftsTonPageArgs = {
|
|
434
|
+
page: IPageInput;
|
|
435
|
+
};
|
|
436
|
+
export type IQueryFetchLudoNftsTonPageArgs = {
|
|
437
|
+
userId: Scalars['ID'];
|
|
438
|
+
page: IPageInput;
|
|
439
|
+
};
|
|
416
440
|
export type IQueryFetchAirdropsLeaderboardArgs = {
|
|
417
441
|
filter: IAirdropsLeaderboardFilterInput;
|
|
418
442
|
sort: IAirdropsLeaderboardSortInput;
|
|
@@ -545,6 +569,8 @@ export type IResolversTypes = {
|
|
|
545
569
|
DynamicCollectionDataInput: IDynamicCollectionDataInput;
|
|
546
570
|
LeaderboardType: ILeaderboardType;
|
|
547
571
|
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
572
|
+
LudoNftTon: ResolverTypeWrapper<ILudoNftTon>;
|
|
573
|
+
LudoNftsTonPage: ResolverTypeWrapper<ILudoNftsTonPage>;
|
|
548
574
|
Media: ResolverTypeWrapper<IMedia>;
|
|
549
575
|
Mutation: ResolverTypeWrapper<{}>;
|
|
550
576
|
OpportunitiesPage: ResolverTypeWrapper<IOpportunitiesPage>;
|
|
@@ -594,6 +620,8 @@ export type IResolversParentTypes = {
|
|
|
594
620
|
DynamicCollectionData: IDynamicCollectionData;
|
|
595
621
|
DynamicCollectionDataInput: IDynamicCollectionDataInput;
|
|
596
622
|
Long: Scalars['Long'];
|
|
623
|
+
LudoNftTon: ILudoNftTon;
|
|
624
|
+
LudoNftsTonPage: ILudoNftsTonPage;
|
|
597
625
|
Media: IMedia;
|
|
598
626
|
Mutation: {};
|
|
599
627
|
OpportunitiesPage: IOpportunitiesPage;
|
|
@@ -771,6 +799,26 @@ export type IDynamicCollectionDataResolvers<ContextType = any, ParentType extend
|
|
|
771
799
|
export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
|
|
772
800
|
name: 'Long';
|
|
773
801
|
}
|
|
802
|
+
export type ILudoNftTonResolvers<ContextType = any, ParentType extends IResolversParentTypes['LudoNftTon'] = IResolversParentTypes['LudoNftTon']> = {
|
|
803
|
+
id?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
804
|
+
name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
805
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
806
|
+
address?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
807
|
+
tokenId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
808
|
+
nftIndexInCollection?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
809
|
+
creationDate?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
810
|
+
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
811
|
+
userId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
812
|
+
ownersAddresses?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
|
|
813
|
+
creatorsAddresses?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
|
|
814
|
+
originalUrls?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
|
|
815
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
816
|
+
};
|
|
817
|
+
export type ILudoNftsTonPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['LudoNftsTonPage'] = IResolversParentTypes['LudoNftsTonPage']> = {
|
|
818
|
+
ludoNftsTon?: Resolver<Array<IResolversTypes['LudoNftTon']>, ParentType, ContextType>;
|
|
819
|
+
nextPage?: Resolver<Maybe<IResolversTypes['Page']>, ParentType, ContextType>;
|
|
820
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
821
|
+
};
|
|
774
822
|
export type IMediaResolvers<ContextType = any, ParentType extends IResolversParentTypes['Media'] = IResolversParentTypes['Media']> = {
|
|
775
823
|
originalUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
776
824
|
url?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -860,8 +908,6 @@ export type IProjectResolvers<ContextType = any, ParentType extends IResolversPa
|
|
|
860
908
|
vcBackers?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
861
909
|
securityScore?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
862
910
|
types?: Resolver<Array<IResolversTypes['ProjectType']>, ParentType, ContextType>;
|
|
863
|
-
hidden?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
864
|
-
showcase?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
865
911
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
866
912
|
};
|
|
867
913
|
export type IProjectsPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProjectsPage'] = IResolversParentTypes['ProjectsPage']> = {
|
|
@@ -890,6 +936,8 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
890
936
|
findUserCreations?: Resolver<IResolversTypes['CreationsPage'], ParentType, ContextType, RequireFields<IQueryFindUserCreationsArgs, 'ownerId' | 'input'>>;
|
|
891
937
|
findUserLudoCreations?: Resolver<IResolversTypes['CreationsPage'], ParentType, ContextType, RequireFields<IQueryFindUserLudoCreationsArgs, 'ownerId'>>;
|
|
892
938
|
fetchAvailableLeaderboards?: Resolver<Maybe<Array<Maybe<IResolversTypes['LeaderboardType']>>>, ParentType, ContextType>;
|
|
939
|
+
fetchMyLudoNftsTonPage?: Resolver<IResolversTypes['LudoNftsTonPage'], ParentType, ContextType, RequireFields<IQueryFetchMyLudoNftsTonPageArgs, 'page'>>;
|
|
940
|
+
fetchLudoNftsTonPage?: Resolver<IResolversTypes['LudoNftsTonPage'], ParentType, ContextType, RequireFields<IQueryFetchLudoNftsTonPageArgs, 'userId' | 'page'>>;
|
|
893
941
|
fetchAirdropsLeaderboard?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAirdropsLeaderboardArgs, 'filter' | 'sort' | 'page'>>;
|
|
894
942
|
findProfilesByName?: Resolver<IResolversTypes['ProfilePage'], ParentType, ContextType, RequireFields<IQueryFindProfilesByNameArgs, 'name'>>;
|
|
895
943
|
fetchUserReferralsInfoPage?: Resolver<IResolversTypes['UserReferralsInfoPage'], ParentType, ContextType, RequireFields<IQueryFetchUserReferralsInfoPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
@@ -936,6 +984,8 @@ export type IResolvers<ContextType = any> = {
|
|
|
936
984
|
DynamicAssetData?: IDynamicAssetDataResolvers<ContextType>;
|
|
937
985
|
DynamicCollectionData?: IDynamicCollectionDataResolvers<ContextType>;
|
|
938
986
|
Long?: GraphQLScalarType;
|
|
987
|
+
LudoNftTon?: ILudoNftTonResolvers<ContextType>;
|
|
988
|
+
LudoNftsTonPage?: ILudoNftsTonPageResolvers<ContextType>;
|
|
939
989
|
Media?: IMediaResolvers<ContextType>;
|
|
940
990
|
Mutation?: IMutationResolvers<ContextType>;
|
|
941
991
|
OpportunitiesPage?: IOpportunitiesPageResolvers<ContextType>;
|
|
@@ -1125,6 +1175,16 @@ export type IFindAllTopEntitiesByNameQuery = {
|
|
|
1125
1175
|
profiles: Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'createdAt' | 'deletedAt' | 'visible' | 'views' | 'deleted' | 'referralTypeName' | 'referralTypeColor'>>>;
|
|
1126
1176
|
};
|
|
1127
1177
|
};
|
|
1178
|
+
export type IFetchLudoNftsTonPageQueryVariables = Exact<{
|
|
1179
|
+
userId: Scalars['ID'];
|
|
1180
|
+
page: IPageInput;
|
|
1181
|
+
}>;
|
|
1182
|
+
export type IFetchLudoNftsTonPageQuery = {
|
|
1183
|
+
fetchLudoNftsTonPage: {
|
|
1184
|
+
nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>;
|
|
1185
|
+
ludoNftsTon: Array<Pick<ILudoNftTon, 'id' | 'name' | 'description' | 'address' | 'tokenId' | 'nftIndexInCollection' | 'creationDate' | 'rank' | 'userId' | 'ownersAddresses' | 'creatorsAddresses' | 'originalUrls'>>;
|
|
1186
|
+
};
|
|
1187
|
+
};
|
|
1128
1188
|
export type IFetchUserPortfolioQueryVariables = Exact<{
|
|
1129
1189
|
ownerId: Scalars['String'];
|
|
1130
1190
|
}>;
|
|
@@ -1589,6 +1649,35 @@ export declare function useFindAllTopEntitiesByNameLazyQuery(baseOptions?: Apoll
|
|
|
1589
1649
|
export type FindAllTopEntitiesByNameQueryHookResult = ReturnType<typeof useFindAllTopEntitiesByNameQuery>;
|
|
1590
1650
|
export type FindAllTopEntitiesByNameLazyQueryHookResult = ReturnType<typeof useFindAllTopEntitiesByNameLazyQuery>;
|
|
1591
1651
|
export type FindAllTopEntitiesByNameQueryResult = Apollo.QueryResult<IFindAllTopEntitiesByNameQuery, IFindAllTopEntitiesByNameQueryVariables>;
|
|
1652
|
+
export declare const FetchLudoNftsTonPageDocument: Apollo.DocumentNode;
|
|
1653
|
+
/**
|
|
1654
|
+
* __useFetchLudoNftsTonPageQuery__
|
|
1655
|
+
*
|
|
1656
|
+
* To run a query within a React component, call `useFetchLudoNftsTonPageQuery` and pass it any options that fit your needs.
|
|
1657
|
+
* When your component renders, `useFetchLudoNftsTonPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1658
|
+
* you can use to render your UI.
|
|
1659
|
+
*
|
|
1660
|
+
* @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;
|
|
1661
|
+
*
|
|
1662
|
+
* @example
|
|
1663
|
+
* const { data, loading, error } = useFetchLudoNftsTonPageQuery({
|
|
1664
|
+
* variables: {
|
|
1665
|
+
* userId: // value for 'userId'
|
|
1666
|
+
* page: // value for 'page'
|
|
1667
|
+
* },
|
|
1668
|
+
* });
|
|
1669
|
+
*/
|
|
1670
|
+
export declare function useFetchLudoNftsTonPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchLudoNftsTonPageQuery, IFetchLudoNftsTonPageQueryVariables>): Apollo.QueryResult<IFetchLudoNftsTonPageQuery, Exact<{
|
|
1671
|
+
userId: string;
|
|
1672
|
+
page: IPageInput;
|
|
1673
|
+
}>>;
|
|
1674
|
+
export declare function useFetchLudoNftsTonPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchLudoNftsTonPageQuery, IFetchLudoNftsTonPageQueryVariables>): Apollo.LazyQueryResultTuple<IFetchLudoNftsTonPageQuery, Exact<{
|
|
1675
|
+
userId: string;
|
|
1676
|
+
page: IPageInput;
|
|
1677
|
+
}>>;
|
|
1678
|
+
export type FetchLudoNftsTonPageQueryHookResult = ReturnType<typeof useFetchLudoNftsTonPageQuery>;
|
|
1679
|
+
export type FetchLudoNftsTonPageLazyQueryHookResult = ReturnType<typeof useFetchLudoNftsTonPageLazyQuery>;
|
|
1680
|
+
export type FetchLudoNftsTonPageQueryResult = Apollo.QueryResult<IFetchLudoNftsTonPageQuery, IFetchLudoNftsTonPageQueryVariables>;
|
|
1592
1681
|
export declare const FetchUserPortfolioDocument: Apollo.DocumentNode;
|
|
1593
1682
|
/**
|
|
1594
1683
|
* __useFetchUserPortfolioQuery__
|
|
@@ -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.useFetchProjectsLeaderboardLazyQuery = exports.useFetchProjectsLeaderboardQuery = void 0;
|
|
26
|
+
exports.FetchUserPortfolioDocument = exports.useFetchLudoNftsTonPageLazyQuery = exports.useFetchLudoNftsTonPageQuery = exports.FetchLudoNftsTonPageDocument = exports.useFindAllTopEntitiesByNameLazyQuery = 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.ISortDirection = exports.IReftypeColor = exports.IProjectType = exports.ILeaderboardType = 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.useFetchProjectsLeaderboardLazyQuery = exports.useFetchProjectsLeaderboardQuery = exports.FetchProjectsLeaderboardDocument = exports.useFetchUserPortfolioLazyQuery = exports.useFetchUserPortfolioQuery = void 0;
|
|
28
28
|
const client_1 = require("@apollo/client");
|
|
29
29
|
const Apollo = __importStar(require("@apollo/client"));
|
|
30
30
|
var ILeaderboardType;
|
|
@@ -1123,6 +1123,57 @@ function useFindAllTopEntitiesByNameLazyQuery(baseOptions) {
|
|
|
1123
1123
|
return Apollo.useLazyQuery(exports.FindAllTopEntitiesByNameDocument, baseOptions);
|
|
1124
1124
|
}
|
|
1125
1125
|
exports.useFindAllTopEntitiesByNameLazyQuery = useFindAllTopEntitiesByNameLazyQuery;
|
|
1126
|
+
exports.FetchLudoNftsTonPageDocument = (0, client_1.gql) `
|
|
1127
|
+
query FetchLudoNftsTonPage($userId: ID!, $page: PageInput!) {
|
|
1128
|
+
fetchLudoNftsTonPage(userId: $userId, page: $page) {
|
|
1129
|
+
nextPage {
|
|
1130
|
+
token
|
|
1131
|
+
num
|
|
1132
|
+
size
|
|
1133
|
+
elements
|
|
1134
|
+
}
|
|
1135
|
+
ludoNftsTon {
|
|
1136
|
+
id
|
|
1137
|
+
name
|
|
1138
|
+
description
|
|
1139
|
+
address
|
|
1140
|
+
tokenId
|
|
1141
|
+
nftIndexInCollection
|
|
1142
|
+
creationDate
|
|
1143
|
+
rank
|
|
1144
|
+
userId
|
|
1145
|
+
ownersAddresses
|
|
1146
|
+
creatorsAddresses
|
|
1147
|
+
originalUrls
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
}
|
|
1151
|
+
`;
|
|
1152
|
+
/**
|
|
1153
|
+
* __useFetchLudoNftsTonPageQuery__
|
|
1154
|
+
*
|
|
1155
|
+
* To run a query within a React component, call `useFetchLudoNftsTonPageQuery` and pass it any options that fit your needs.
|
|
1156
|
+
* When your component renders, `useFetchLudoNftsTonPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1157
|
+
* you can use to render your UI.
|
|
1158
|
+
*
|
|
1159
|
+
* @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;
|
|
1160
|
+
*
|
|
1161
|
+
* @example
|
|
1162
|
+
* const { data, loading, error } = useFetchLudoNftsTonPageQuery({
|
|
1163
|
+
* variables: {
|
|
1164
|
+
* userId: // value for 'userId'
|
|
1165
|
+
* page: // value for 'page'
|
|
1166
|
+
* },
|
|
1167
|
+
* });
|
|
1168
|
+
*/
|
|
1169
|
+
function useFetchLudoNftsTonPageQuery(baseOptions) {
|
|
1170
|
+
return Apollo.useQuery(exports.FetchLudoNftsTonPageDocument, baseOptions);
|
|
1171
|
+
}
|
|
1172
|
+
exports.useFetchLudoNftsTonPageQuery = useFetchLudoNftsTonPageQuery;
|
|
1173
|
+
function useFetchLudoNftsTonPageLazyQuery(baseOptions) {
|
|
1174
|
+
return Apollo.useLazyQuery(exports.FetchLudoNftsTonPageDocument, baseOptions);
|
|
1175
|
+
}
|
|
1176
|
+
exports.useFetchLudoNftsTonPageLazyQuery = useFetchLudoNftsTonPageLazyQuery;
|
|
1126
1177
|
exports.FetchUserPortfolioDocument = (0, client_1.gql) `
|
|
1127
1178
|
query FetchUserPortfolio($ownerId: String!) {
|
|
1128
1179
|
fetchUserPortfolio(ownerId: $ownerId) {
|
package/build/index.d.ts
CHANGED
|
@@ -382,6 +382,20 @@ declare const schema: {
|
|
|
382
382
|
name: string;
|
|
383
383
|
pageSize: number;
|
|
384
384
|
}>>;
|
|
385
|
+
useFetchLudoNftsTonPageQuery(baseOptions: import("@apollo/client").QueryHookOptions<searchSchema.IFetchLudoNftsTonPageQuery, searchSchema.Exact<{
|
|
386
|
+
userId: string;
|
|
387
|
+
page: searchSchema.IPageInput;
|
|
388
|
+
}>>): import("@apollo/client").QueryResult<searchSchema.IFetchLudoNftsTonPageQuery, searchSchema.Exact<{
|
|
389
|
+
userId: string;
|
|
390
|
+
page: searchSchema.IPageInput;
|
|
391
|
+
}>>;
|
|
392
|
+
useFetchLudoNftsTonPageLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<searchSchema.IFetchLudoNftsTonPageQuery, searchSchema.Exact<{
|
|
393
|
+
userId: string;
|
|
394
|
+
page: searchSchema.IPageInput;
|
|
395
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<searchSchema.IFetchLudoNftsTonPageQuery, searchSchema.Exact<{
|
|
396
|
+
userId: string;
|
|
397
|
+
page: searchSchema.IPageInput;
|
|
398
|
+
}>>;
|
|
385
399
|
useFetchUserPortfolioQuery(baseOptions: import("@apollo/client").QueryHookOptions<searchSchema.IFetchUserPortfolioQuery, searchSchema.Exact<{
|
|
386
400
|
ownerId: string;
|
|
387
401
|
}>>): import("@apollo/client").QueryResult<searchSchema.IFetchUserPortfolioQuery, searchSchema.Exact<{
|
|
@@ -520,6 +534,7 @@ declare const schema: {
|
|
|
520
534
|
FetchDynamicCollectionDataDocument: import("graphql").DocumentNode;
|
|
521
535
|
FetchDynamicCollectionsDataDocument: import("graphql").DocumentNode;
|
|
522
536
|
FindAllTopEntitiesByNameDocument: import("graphql").DocumentNode;
|
|
537
|
+
FetchLudoNftsTonPageDocument: import("graphql").DocumentNode;
|
|
523
538
|
FetchUserPortfolioDocument: import("graphql").DocumentNode;
|
|
524
539
|
FetchProjectsLeaderboardDocument: import("graphql").DocumentNode;
|
|
525
540
|
FetchUserReferralsInfoCsvDocument: import("graphql").DocumentNode;
|
package/package.json
CHANGED
package/src/cookies/index.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {destroyCookie, parseCookies, setCookie} from "nookies";
|
|
2
1
|
import * as express from "express";
|
|
3
|
-
import * as next from
|
|
2
|
+
import * as next from "next";
|
|
3
|
+
import { destroyCookie, parseCookies, setCookie } from "nookies";
|
|
4
4
|
|
|
5
5
|
// handle change version when update cookies structure
|
|
6
|
-
const cookiesVersion =
|
|
6
|
+
const cookiesVersion = "1.0.4";
|
|
7
7
|
|
|
8
|
-
const addVersionCookies = (domain?: string
|
|
8
|
+
const addVersionCookies = (domain?: string) => {
|
|
9
9
|
setCookie(null, "versionAuth", cookiesVersion, {
|
|
10
10
|
maxAge: 2629800000,
|
|
11
11
|
path: "/",
|
|
12
12
|
domain,
|
|
13
13
|
});
|
|
14
|
-
}
|
|
14
|
+
};
|
|
15
15
|
|
|
16
|
-
const validationVersion = (version: string) => version === cookiesVersion
|
|
16
|
+
const validationVersion = (version: string) => version === cookiesVersion;
|
|
17
17
|
|
|
18
18
|
const assignCookies = (
|
|
19
19
|
userId: string,
|
|
@@ -25,8 +25,8 @@ const assignCookies = (
|
|
|
25
25
|
role: string,
|
|
26
26
|
domain?: string,
|
|
27
27
|
) => {
|
|
28
|
-
addVersionCookies(domain)
|
|
29
|
-
if (userId) setCookie(null, "userId", userId, {maxAge: 2629800000, path: "/", domain});
|
|
28
|
+
addVersionCookies(domain);
|
|
29
|
+
if (userId) setCookie(null, "userId", userId, { maxAge: 2629800000, path: "/", domain });
|
|
30
30
|
if (wallets)
|
|
31
31
|
setCookie(null, "wallets", JSON.stringify(wallets), {
|
|
32
32
|
maxAge: 2629800000,
|
|
@@ -80,12 +80,19 @@ const refreshCookies = (authToken: string, refreshToken: string, domain?: string
|
|
|
80
80
|
});
|
|
81
81
|
};
|
|
82
82
|
|
|
83
|
-
const getCookies = (
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
83
|
+
const getCookies = (
|
|
84
|
+
ctx?:
|
|
85
|
+
| Pick<next.NextPageContext, "req">
|
|
86
|
+
| {
|
|
87
|
+
req: next.NextApiRequest;
|
|
88
|
+
}
|
|
89
|
+
| {
|
|
90
|
+
req: express.Request;
|
|
91
|
+
}
|
|
92
|
+
| null
|
|
93
|
+
| undefined,
|
|
94
|
+
) => {
|
|
95
|
+
const { authToken, refreshToken, userId, wallets, newUser, inviteCode, role, versionAuth } = parseCookies(ctx);
|
|
89
96
|
|
|
90
97
|
const nullResult = {
|
|
91
98
|
authToken: null,
|
|
@@ -94,19 +101,28 @@ const getCookies = (ctx?: Pick<next.NextPageContext, 'req'> | {
|
|
|
94
101
|
wallets: null,
|
|
95
102
|
newUser: null,
|
|
96
103
|
inviteCode: null,
|
|
97
|
-
role: null
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
if (authToken && refreshToken && userId && wallets && newUser && inviteCode && versionAuth && role && validationVersion(versionAuth)) {
|
|
104
|
+
role: null,
|
|
105
|
+
};
|
|
101
106
|
|
|
102
|
-
|
|
107
|
+
if (
|
|
108
|
+
authToken &&
|
|
109
|
+
refreshToken &&
|
|
110
|
+
userId &&
|
|
111
|
+
wallets &&
|
|
112
|
+
newUser &&
|
|
113
|
+
inviteCode &&
|
|
114
|
+
versionAuth &&
|
|
115
|
+
role &&
|
|
116
|
+
validationVersion(versionAuth)
|
|
117
|
+
) {
|
|
118
|
+
let walletsParsed: string[];
|
|
103
119
|
try {
|
|
104
|
-
walletsParsed = JSON.parse(wallets)
|
|
120
|
+
walletsParsed = JSON.parse(wallets);
|
|
105
121
|
if (!Array.isArray(walletsParsed)) {
|
|
106
|
-
return nullResult
|
|
122
|
+
return nullResult;
|
|
107
123
|
}
|
|
108
124
|
} catch (e) {
|
|
109
|
-
return nullResult
|
|
125
|
+
return nullResult;
|
|
110
126
|
}
|
|
111
127
|
|
|
112
128
|
return {
|
|
@@ -116,21 +132,21 @@ const getCookies = (ctx?: Pick<next.NextPageContext, 'req'> | {
|
|
|
116
132
|
wallets: walletsParsed,
|
|
117
133
|
newUser,
|
|
118
134
|
inviteCode,
|
|
119
|
-
role
|
|
135
|
+
role,
|
|
120
136
|
};
|
|
121
137
|
}
|
|
122
138
|
|
|
123
|
-
return nullResult
|
|
139
|
+
return nullResult;
|
|
124
140
|
};
|
|
125
141
|
|
|
126
142
|
const destroyCookies = (domain?: string, role?: string) => {
|
|
127
|
-
destroyCookie(null, "userId", {path: "/", domain});
|
|
128
|
-
destroyCookie(null, "wallets", {path: "/", domain});
|
|
129
|
-
destroyCookie(null, "authToken", {path: "/", domain});
|
|
130
|
-
destroyCookie(null, "refreshToken", {path: "/", domain});
|
|
131
|
-
destroyCookie(null, "newUser", {path: "/", domain});
|
|
132
|
-
destroyCookie(null, "inviteCode", {path: "/", domain});
|
|
133
|
-
destroyCookie(null, "role", {path: "/", domain});
|
|
143
|
+
destroyCookie(null, "userId", { path: "/", domain });
|
|
144
|
+
destroyCookie(null, "wallets", { path: "/", domain });
|
|
145
|
+
destroyCookie(null, "authToken", { path: "/", domain });
|
|
146
|
+
destroyCookie(null, "refreshToken", { path: "/", domain });
|
|
147
|
+
destroyCookie(null, "newUser", { path: "/", domain });
|
|
148
|
+
destroyCookie(null, "inviteCode", { path: "/", domain });
|
|
149
|
+
destroyCookie(null, "role", { path: "/", domain });
|
|
134
150
|
};
|
|
135
151
|
|
|
136
|
-
export {assignCookies, refreshCookies, destroyCookies, getCookies};
|
|
152
|
+
export { assignCookies, refreshCookies, destroyCookies, getCookies };
|
|
@@ -207,6 +207,26 @@ export enum ILeaderboardType {
|
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
|
|
210
|
+
export type ILudoNftTon = {
|
|
211
|
+
id: Scalars['ID'];
|
|
212
|
+
name?: Maybe<Scalars['String']>;
|
|
213
|
+
description?: Maybe<Scalars['String']>;
|
|
214
|
+
address: Scalars['String'];
|
|
215
|
+
tokenId: Scalars['String'];
|
|
216
|
+
nftIndexInCollection: Scalars['Int'];
|
|
217
|
+
creationDate?: Maybe<Scalars['Long']>;
|
|
218
|
+
rank?: Maybe<Scalars['Float']>;
|
|
219
|
+
userId: Scalars['String'];
|
|
220
|
+
ownersAddresses: Array<Scalars['String']>;
|
|
221
|
+
creatorsAddresses: Array<Scalars['String']>;
|
|
222
|
+
originalUrls: Array<Scalars['String']>;
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
export type ILudoNftsTonPage = {
|
|
226
|
+
ludoNftsTon: Array<ILudoNftTon>;
|
|
227
|
+
nextPage?: Maybe<IPage>;
|
|
228
|
+
};
|
|
229
|
+
|
|
210
230
|
export type IMedia = {
|
|
211
231
|
originalUrl?: Maybe<Scalars['String']>;
|
|
212
232
|
url?: Maybe<Scalars['String']>;
|
|
@@ -323,8 +343,6 @@ export type IProject = {
|
|
|
323
343
|
vcBackers?: Maybe<Scalars['Int']>;
|
|
324
344
|
securityScore?: Maybe<Scalars['Int']>;
|
|
325
345
|
types: Array<IProjectType>;
|
|
326
|
-
hidden?: Maybe<Scalars['Boolean']>;
|
|
327
|
-
showcase?: Maybe<Scalars['Boolean']>;
|
|
328
346
|
};
|
|
329
347
|
|
|
330
348
|
export enum IProjectType {
|
|
@@ -342,7 +360,6 @@ export type IProjectsLeaderboardFilterInput = {
|
|
|
342
360
|
vcBackers?: Maybe<Scalars['Int']>;
|
|
343
361
|
securityScore?: Maybe<Scalars['Int']>;
|
|
344
362
|
type?: Maybe<IProjectType>;
|
|
345
|
-
hidden?: Maybe<Scalars['Boolean']>;
|
|
346
363
|
};
|
|
347
364
|
|
|
348
365
|
export type IProjectsLeaderboardSortInput = {
|
|
@@ -377,6 +394,8 @@ export type IQuery = {
|
|
|
377
394
|
findUserCreations: ICreationsPage;
|
|
378
395
|
findUserLudoCreations: ICreationsPage;
|
|
379
396
|
fetchAvailableLeaderboards?: Maybe<Array<Maybe<ILeaderboardType>>>;
|
|
397
|
+
fetchMyLudoNftsTonPage: ILudoNftsTonPage;
|
|
398
|
+
fetchLudoNftsTonPage: ILudoNftsTonPage;
|
|
380
399
|
fetchAirdropsLeaderboard: IOpportunitiesPage;
|
|
381
400
|
findProfilesByName: IProfilePage;
|
|
382
401
|
fetchUserReferralsInfoPage: IUserReferralsInfoPage;
|
|
@@ -487,6 +506,17 @@ export type IQueryFindUserLudoCreationsArgs = {
|
|
|
487
506
|
};
|
|
488
507
|
|
|
489
508
|
|
|
509
|
+
export type IQueryFetchMyLudoNftsTonPageArgs = {
|
|
510
|
+
page: IPageInput;
|
|
511
|
+
};
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
export type IQueryFetchLudoNftsTonPageArgs = {
|
|
515
|
+
userId: Scalars['ID'];
|
|
516
|
+
page: IPageInput;
|
|
517
|
+
};
|
|
518
|
+
|
|
519
|
+
|
|
490
520
|
export type IQueryFetchAirdropsLeaderboardArgs = {
|
|
491
521
|
filter: IAirdropsLeaderboardFilterInput;
|
|
492
522
|
sort: IAirdropsLeaderboardSortInput;
|
|
@@ -675,6 +705,8 @@ export type IResolversTypes = {
|
|
|
675
705
|
DynamicCollectionDataInput: IDynamicCollectionDataInput;
|
|
676
706
|
LeaderboardType: ILeaderboardType;
|
|
677
707
|
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
708
|
+
LudoNftTon: ResolverTypeWrapper<ILudoNftTon>;
|
|
709
|
+
LudoNftsTonPage: ResolverTypeWrapper<ILudoNftsTonPage>;
|
|
678
710
|
Media: ResolverTypeWrapper<IMedia>;
|
|
679
711
|
Mutation: ResolverTypeWrapper<{}>;
|
|
680
712
|
OpportunitiesPage: ResolverTypeWrapper<IOpportunitiesPage>;
|
|
@@ -725,6 +757,8 @@ export type IResolversParentTypes = {
|
|
|
725
757
|
DynamicCollectionData: IDynamicCollectionData;
|
|
726
758
|
DynamicCollectionDataInput: IDynamicCollectionDataInput;
|
|
727
759
|
Long: Scalars['Long'];
|
|
760
|
+
LudoNftTon: ILudoNftTon;
|
|
761
|
+
LudoNftsTonPage: ILudoNftsTonPage;
|
|
728
762
|
Media: IMedia;
|
|
729
763
|
Mutation: {};
|
|
730
764
|
OpportunitiesPage: IOpportunitiesPage;
|
|
@@ -921,6 +955,28 @@ export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTyp
|
|
|
921
955
|
name: 'Long';
|
|
922
956
|
}
|
|
923
957
|
|
|
958
|
+
export type ILudoNftTonResolvers<ContextType = any, ParentType extends IResolversParentTypes['LudoNftTon'] = IResolversParentTypes['LudoNftTon']> = {
|
|
959
|
+
id?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
960
|
+
name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
961
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
962
|
+
address?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
963
|
+
tokenId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
964
|
+
nftIndexInCollection?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
965
|
+
creationDate?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
966
|
+
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
967
|
+
userId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
968
|
+
ownersAddresses?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
|
|
969
|
+
creatorsAddresses?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
|
|
970
|
+
originalUrls?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
|
|
971
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
972
|
+
};
|
|
973
|
+
|
|
974
|
+
export type ILudoNftsTonPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['LudoNftsTonPage'] = IResolversParentTypes['LudoNftsTonPage']> = {
|
|
975
|
+
ludoNftsTon?: Resolver<Array<IResolversTypes['LudoNftTon']>, ParentType, ContextType>;
|
|
976
|
+
nextPage?: Resolver<Maybe<IResolversTypes['Page']>, ParentType, ContextType>;
|
|
977
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
978
|
+
};
|
|
979
|
+
|
|
924
980
|
export type IMediaResolvers<ContextType = any, ParentType extends IResolversParentTypes['Media'] = IResolversParentTypes['Media']> = {
|
|
925
981
|
originalUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
926
982
|
url?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
@@ -1017,8 +1073,6 @@ export type IProjectResolvers<ContextType = any, ParentType extends IResolversPa
|
|
|
1017
1073
|
vcBackers?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
1018
1074
|
securityScore?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
1019
1075
|
types?: Resolver<Array<IResolversTypes['ProjectType']>, ParentType, ContextType>;
|
|
1020
|
-
hidden?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
1021
|
-
showcase?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
1022
1076
|
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
1023
1077
|
};
|
|
1024
1078
|
|
|
@@ -1049,6 +1103,8 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
1049
1103
|
findUserCreations?: Resolver<IResolversTypes['CreationsPage'], ParentType, ContextType, RequireFields<IQueryFindUserCreationsArgs, 'ownerId' | 'input'>>;
|
|
1050
1104
|
findUserLudoCreations?: Resolver<IResolversTypes['CreationsPage'], ParentType, ContextType, RequireFields<IQueryFindUserLudoCreationsArgs, 'ownerId'>>;
|
|
1051
1105
|
fetchAvailableLeaderboards?: Resolver<Maybe<Array<Maybe<IResolversTypes['LeaderboardType']>>>, ParentType, ContextType>;
|
|
1106
|
+
fetchMyLudoNftsTonPage?: Resolver<IResolversTypes['LudoNftsTonPage'], ParentType, ContextType, RequireFields<IQueryFetchMyLudoNftsTonPageArgs, 'page'>>;
|
|
1107
|
+
fetchLudoNftsTonPage?: Resolver<IResolversTypes['LudoNftsTonPage'], ParentType, ContextType, RequireFields<IQueryFetchLudoNftsTonPageArgs, 'userId' | 'page'>>;
|
|
1052
1108
|
fetchAirdropsLeaderboard?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, RequireFields<IQueryFetchAirdropsLeaderboardArgs, 'filter' | 'sort' | 'page'>>;
|
|
1053
1109
|
findProfilesByName?: Resolver<IResolversTypes['ProfilePage'], ParentType, ContextType, RequireFields<IQueryFindProfilesByNameArgs, 'name'>>;
|
|
1054
1110
|
fetchUserReferralsInfoPage?: Resolver<IResolversTypes['UserReferralsInfoPage'], ParentType, ContextType, RequireFields<IQueryFetchUserReferralsInfoPageArgs, 'filter' | 'sort' | 'page'>>;
|
|
@@ -1099,6 +1155,8 @@ export type IResolvers<ContextType = any> = {
|
|
|
1099
1155
|
DynamicAssetData?: IDynamicAssetDataResolvers<ContextType>;
|
|
1100
1156
|
DynamicCollectionData?: IDynamicCollectionDataResolvers<ContextType>;
|
|
1101
1157
|
Long?: GraphQLScalarType;
|
|
1158
|
+
LudoNftTon?: ILudoNftTonResolvers<ContextType>;
|
|
1159
|
+
LudoNftsTonPage?: ILudoNftsTonPageResolvers<ContextType>;
|
|
1102
1160
|
Media?: IMediaResolvers<ContextType>;
|
|
1103
1161
|
Mutation?: IMutationResolvers<ContextType>;
|
|
1104
1162
|
OpportunitiesPage?: IOpportunitiesPageResolvers<ContextType>;
|
|
@@ -1257,6 +1315,14 @@ export type IFindAllTopEntitiesByNameQuery = { findAllTopEntitiesByName: { asset
|
|
|
1257
1315
|
& { totalVolumes?: Maybe<Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>>, floorPrices?: Maybe<Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>> }
|
|
1258
1316
|
)>>, profiles: Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'createdAt' | 'deletedAt' | 'visible' | 'views' | 'deleted' | 'referralTypeName' | 'referralTypeColor'>>> } };
|
|
1259
1317
|
|
|
1318
|
+
export type IFetchLudoNftsTonPageQueryVariables = Exact<{
|
|
1319
|
+
userId: Scalars['ID'];
|
|
1320
|
+
page: IPageInput;
|
|
1321
|
+
}>;
|
|
1322
|
+
|
|
1323
|
+
|
|
1324
|
+
export type IFetchLudoNftsTonPageQuery = { fetchLudoNftsTonPage: { nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>, ludoNftsTon: Array<Pick<ILudoNftTon, 'id' | 'name' | 'description' | 'address' | 'tokenId' | 'nftIndexInCollection' | 'creationDate' | 'rank' | 'userId' | 'ownersAddresses' | 'creatorsAddresses' | 'originalUrls'>> } };
|
|
1325
|
+
|
|
1260
1326
|
export type IFetchUserPortfolioQueryVariables = Exact<{
|
|
1261
1327
|
ownerId: Scalars['String'];
|
|
1262
1328
|
}>;
|
|
@@ -2416,6 +2482,59 @@ export function useFindAllTopEntitiesByNameLazyQuery(baseOptions?: Apollo.LazyQu
|
|
|
2416
2482
|
export type FindAllTopEntitiesByNameQueryHookResult = ReturnType<typeof useFindAllTopEntitiesByNameQuery>;
|
|
2417
2483
|
export type FindAllTopEntitiesByNameLazyQueryHookResult = ReturnType<typeof useFindAllTopEntitiesByNameLazyQuery>;
|
|
2418
2484
|
export type FindAllTopEntitiesByNameQueryResult = Apollo.QueryResult<IFindAllTopEntitiesByNameQuery, IFindAllTopEntitiesByNameQueryVariables>;
|
|
2485
|
+
export const FetchLudoNftsTonPageDocument = gql`
|
|
2486
|
+
query FetchLudoNftsTonPage($userId: ID!, $page: PageInput!) {
|
|
2487
|
+
fetchLudoNftsTonPage(userId: $userId, page: $page) {
|
|
2488
|
+
nextPage {
|
|
2489
|
+
token
|
|
2490
|
+
num
|
|
2491
|
+
size
|
|
2492
|
+
elements
|
|
2493
|
+
}
|
|
2494
|
+
ludoNftsTon {
|
|
2495
|
+
id
|
|
2496
|
+
name
|
|
2497
|
+
description
|
|
2498
|
+
address
|
|
2499
|
+
tokenId
|
|
2500
|
+
nftIndexInCollection
|
|
2501
|
+
creationDate
|
|
2502
|
+
rank
|
|
2503
|
+
userId
|
|
2504
|
+
ownersAddresses
|
|
2505
|
+
creatorsAddresses
|
|
2506
|
+
originalUrls
|
|
2507
|
+
}
|
|
2508
|
+
}
|
|
2509
|
+
}
|
|
2510
|
+
`;
|
|
2511
|
+
|
|
2512
|
+
/**
|
|
2513
|
+
* __useFetchLudoNftsTonPageQuery__
|
|
2514
|
+
*
|
|
2515
|
+
* To run a query within a React component, call `useFetchLudoNftsTonPageQuery` and pass it any options that fit your needs.
|
|
2516
|
+
* When your component renders, `useFetchLudoNftsTonPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2517
|
+
* you can use to render your UI.
|
|
2518
|
+
*
|
|
2519
|
+
* @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;
|
|
2520
|
+
*
|
|
2521
|
+
* @example
|
|
2522
|
+
* const { data, loading, error } = useFetchLudoNftsTonPageQuery({
|
|
2523
|
+
* variables: {
|
|
2524
|
+
* userId: // value for 'userId'
|
|
2525
|
+
* page: // value for 'page'
|
|
2526
|
+
* },
|
|
2527
|
+
* });
|
|
2528
|
+
*/
|
|
2529
|
+
export function useFetchLudoNftsTonPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchLudoNftsTonPageQuery, IFetchLudoNftsTonPageQueryVariables>) {
|
|
2530
|
+
return Apollo.useQuery<IFetchLudoNftsTonPageQuery, IFetchLudoNftsTonPageQueryVariables>(FetchLudoNftsTonPageDocument, baseOptions);
|
|
2531
|
+
}
|
|
2532
|
+
export function useFetchLudoNftsTonPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchLudoNftsTonPageQuery, IFetchLudoNftsTonPageQueryVariables>) {
|
|
2533
|
+
return Apollo.useLazyQuery<IFetchLudoNftsTonPageQuery, IFetchLudoNftsTonPageQueryVariables>(FetchLudoNftsTonPageDocument, baseOptions);
|
|
2534
|
+
}
|
|
2535
|
+
export type FetchLudoNftsTonPageQueryHookResult = ReturnType<typeof useFetchLudoNftsTonPageQuery>;
|
|
2536
|
+
export type FetchLudoNftsTonPageLazyQueryHookResult = ReturnType<typeof useFetchLudoNftsTonPageLazyQuery>;
|
|
2537
|
+
export type FetchLudoNftsTonPageQueryResult = Apollo.QueryResult<IFetchLudoNftsTonPageQuery, IFetchLudoNftsTonPageQueryVariables>;
|
|
2419
2538
|
export const FetchUserPortfolioDocument = gql`
|
|
2420
2539
|
query FetchUserPortfolio($ownerId: String!) {
|
|
2421
2540
|
fetchUserPortfolio(ownerId: $ownerId) {
|