@ludo.ninja/api 2.3.7 → 2.3.9
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.
|
@@ -37,6 +37,18 @@ export type IAdminInvite = {
|
|
|
37
37
|
referredUsers?: Maybe<Array<Scalars['String']>>;
|
|
38
38
|
userXpLevel?: Maybe<Scalars['Int']>;
|
|
39
39
|
};
|
|
40
|
+
export type IAdminPage = {
|
|
41
|
+
num?: Maybe<Scalars['Int']>;
|
|
42
|
+
lastNum?: Maybe<Scalars['Int']>;
|
|
43
|
+
size?: Maybe<Scalars['Int']>;
|
|
44
|
+
elements?: Maybe<Scalars['Long']>;
|
|
45
|
+
token?: Maybe<Scalars['String']>;
|
|
46
|
+
};
|
|
47
|
+
export type IAdminPageInput = {
|
|
48
|
+
num: Scalars['Int'];
|
|
49
|
+
size: Scalars['Int'];
|
|
50
|
+
token?: Maybe<Scalars['String']>;
|
|
51
|
+
};
|
|
40
52
|
export type IAdminXp = {
|
|
41
53
|
userId: Scalars['ID'];
|
|
42
54
|
mainWallet?: Maybe<IWallet>;
|
|
@@ -315,6 +327,13 @@ export type ICollectionFilterInput = {
|
|
|
315
327
|
time: Scalars['String'];
|
|
316
328
|
status: Scalars['String'];
|
|
317
329
|
};
|
|
330
|
+
export type ICollectionKey = {
|
|
331
|
+
blockchain: Scalars['String'];
|
|
332
|
+
contractAddress?: Maybe<Scalars['String']>;
|
|
333
|
+
tokenId?: Maybe<Scalars['String']>;
|
|
334
|
+
elrondId?: Maybe<Scalars['String']>;
|
|
335
|
+
collectionTitle?: Maybe<Scalars['String']>;
|
|
336
|
+
};
|
|
318
337
|
export type ICollectionMarket = {
|
|
319
338
|
marketId?: Maybe<Scalars['String']>;
|
|
320
339
|
marketName?: Maybe<Scalars['String']>;
|
|
@@ -325,6 +344,14 @@ export type ICollectionPage = {
|
|
|
325
344
|
collections: Array<Maybe<ICollection>>;
|
|
326
345
|
nextPage?: Maybe<IPage>;
|
|
327
346
|
};
|
|
347
|
+
export type ICollectionRank = {
|
|
348
|
+
blockchain: Scalars['String'];
|
|
349
|
+
address?: Maybe<Scalars['String']>;
|
|
350
|
+
tokenId?: Maybe<Scalars['String']>;
|
|
351
|
+
id?: Maybe<Scalars['String']>;
|
|
352
|
+
collectionTitle?: Maybe<Scalars['String']>;
|
|
353
|
+
rank?: Maybe<Scalars['Float']>;
|
|
354
|
+
};
|
|
328
355
|
export type ICollectionsPage = {
|
|
329
356
|
collections?: Maybe<Array<Maybe<ICollection>>>;
|
|
330
357
|
nextPageToken?: Maybe<Scalars['String']>;
|
|
@@ -625,7 +652,7 @@ export type IInvitesFilterInput = {
|
|
|
625
652
|
};
|
|
626
653
|
export type IInvitesPage = {
|
|
627
654
|
invites: Array<IAdminInvite>;
|
|
628
|
-
nextPage?: Maybe<
|
|
655
|
+
nextPage?: Maybe<IAdminPage>;
|
|
629
656
|
};
|
|
630
657
|
export type IInvitesSortInput = {
|
|
631
658
|
sortByXpLevel: ISort;
|
|
@@ -1216,11 +1243,10 @@ export type IOpportunityPage = {
|
|
|
1216
1243
|
similarOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
1217
1244
|
};
|
|
1218
1245
|
export type IPage = {
|
|
1219
|
-
|
|
1220
|
-
lastNum?: Maybe<Scalars['Int']>;
|
|
1246
|
+
token?: Maybe<Scalars['String']>;
|
|
1221
1247
|
num?: Maybe<Scalars['Int']>;
|
|
1222
1248
|
size?: Maybe<Scalars['Int']>;
|
|
1223
|
-
|
|
1249
|
+
elements?: Maybe<Scalars['Long']>;
|
|
1224
1250
|
};
|
|
1225
1251
|
export type IPageInput = {
|
|
1226
1252
|
token?: Maybe<Scalars['String']>;
|
|
@@ -1278,6 +1304,7 @@ export type IQuery = {
|
|
|
1278
1304
|
fetchCategorySelections: Array<Maybe<ISelection>>;
|
|
1279
1305
|
fetchCollection: ICollection;
|
|
1280
1306
|
fetchCollectionAssets: ICollectionAssetsPage;
|
|
1307
|
+
fetchCollectionRanks: Array<ICollectionRank>;
|
|
1281
1308
|
fetchCollections: ICollectionsPage;
|
|
1282
1309
|
fetchCollectionsByIds: Array<ICollection>;
|
|
1283
1310
|
fetchCreation: ICreation;
|
|
@@ -1395,12 +1422,12 @@ export type IQuery = {
|
|
|
1395
1422
|
export type IQueryFetchAdminInvitesPageArgs = {
|
|
1396
1423
|
filter: IInvitesFilterInput;
|
|
1397
1424
|
sort: IInvitesSortInput;
|
|
1398
|
-
page:
|
|
1425
|
+
page: IAdminPageInput;
|
|
1399
1426
|
};
|
|
1400
1427
|
export type IQueryFetchAdminXpPageArgs = {
|
|
1401
1428
|
filter: IXpFilterInput;
|
|
1402
1429
|
sort: IXpSortInput;
|
|
1403
|
-
page:
|
|
1430
|
+
page: IAdminPageInput;
|
|
1404
1431
|
};
|
|
1405
1432
|
export type IQueryFetchAllAssetsArgs = {
|
|
1406
1433
|
pageSize: Scalars['Int'];
|
|
@@ -1464,6 +1491,9 @@ export type IQueryFetchCollectionAssetsArgs = {
|
|
|
1464
1491
|
pageSize: Scalars['Int'];
|
|
1465
1492
|
pageToken?: Maybe<Scalars['String']>;
|
|
1466
1493
|
};
|
|
1494
|
+
export type IQueryFetchCollectionRanksArgs = {
|
|
1495
|
+
collectionKeys: Array<ICollectionKey>;
|
|
1496
|
+
};
|
|
1467
1497
|
export type IQueryFetchCollectionsArgs = {
|
|
1468
1498
|
pageSize: Scalars['Int'];
|
|
1469
1499
|
pageToken?: Maybe<Scalars['String']>;
|
|
@@ -2057,7 +2087,7 @@ export type IXpFilterInput = {
|
|
|
2057
2087
|
};
|
|
2058
2088
|
export type IXpPage = {
|
|
2059
2089
|
xps: Array<IAdminXp>;
|
|
2060
|
-
nextPage?: Maybe<
|
|
2090
|
+
nextPage?: Maybe<IAdminPage>;
|
|
2061
2091
|
};
|
|
2062
2092
|
export type IXpSortInput = {
|
|
2063
2093
|
sortByXpLevel: ISort;
|
|
@@ -2071,14 +2101,14 @@ export type IXpSortInput = {
|
|
|
2071
2101
|
export type IFetchAdminXpPageQueryVariables = Exact<{
|
|
2072
2102
|
filter: IXpFilterInput;
|
|
2073
2103
|
sort: IXpSortInput;
|
|
2074
|
-
page:
|
|
2104
|
+
page: IAdminPageInput;
|
|
2075
2105
|
}>;
|
|
2076
2106
|
export type IFetchAdminXpPageQuery = {
|
|
2077
2107
|
fetchAdminXpPage: {
|
|
2078
2108
|
xps: Array<(Pick<IAdminXp, 'userId' | 'userXpLevel' | 'userXpPoints' | 'referredUsers' | 'referredUsersNum' | 'joinedOpportunityIds' | 'connectedWalletsNum' | 'suggestedOpportunityIds'> & {
|
|
2079
2109
|
mainWallet?: Maybe<Pick<IWallet, 'address' | 'blockchain' | 'chainId' | 'mainWallet' | 'name' | 'url' | 'userId' | 'walletName'>>;
|
|
2080
2110
|
})>;
|
|
2081
|
-
nextPage?: Maybe<Pick<
|
|
2111
|
+
nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>>;
|
|
2082
2112
|
};
|
|
2083
2113
|
};
|
|
2084
2114
|
export type IDislikeAssetMutationVariables = Exact<{
|
|
@@ -2246,6 +2276,12 @@ export type IOnMyExperienceUpdatedSubscriptionVariables = Exact<{
|
|
|
2246
2276
|
export type IOnMyExperienceUpdatedSubscription = {
|
|
2247
2277
|
onMyExperienceUpdated: Pick<IUserXp, 'xps' | 'level' | 'levelMinXps' | 'levelMaxXps'>;
|
|
2248
2278
|
};
|
|
2279
|
+
export type IFetchCollectionRanksQueryVariables = Exact<{
|
|
2280
|
+
collectionKeys: Array<ICollectionKey>;
|
|
2281
|
+
}>;
|
|
2282
|
+
export type IFetchCollectionRanksQuery = {
|
|
2283
|
+
fetchCollectionRanks: Array<Pick<ICollectionRank, 'blockchain' | 'address' | 'tokenId' | 'id' | 'collectionTitle' | 'rank'>>;
|
|
2284
|
+
};
|
|
2249
2285
|
export type IFetchNftDataQueryVariables = Exact<{
|
|
2250
2286
|
blockchain: Scalars['String'];
|
|
2251
2287
|
contractAddress?: Maybe<Scalars['String']>;
|
|
@@ -2890,12 +2926,12 @@ export declare const FetchAdminXpPageDocument: Apollo.DocumentNode;
|
|
|
2890
2926
|
export declare function useFetchAdminXpPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchAdminXpPageQuery, IFetchAdminXpPageQueryVariables>): Apollo.QueryResult<IFetchAdminXpPageQuery, Exact<{
|
|
2891
2927
|
filter: IXpFilterInput;
|
|
2892
2928
|
sort: IXpSortInput;
|
|
2893
|
-
page:
|
|
2929
|
+
page: IAdminPageInput;
|
|
2894
2930
|
}>>;
|
|
2895
2931
|
export declare function useFetchAdminXpPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminXpPageQuery, IFetchAdminXpPageQueryVariables>): Apollo.LazyQueryResultTuple<IFetchAdminXpPageQuery, Exact<{
|
|
2896
2932
|
filter: IXpFilterInput;
|
|
2897
2933
|
sort: IXpSortInput;
|
|
2898
|
-
page:
|
|
2934
|
+
page: IAdminPageInput;
|
|
2899
2935
|
}>>;
|
|
2900
2936
|
export type FetchAdminXpPageQueryHookResult = ReturnType<typeof useFetchAdminXpPageQuery>;
|
|
2901
2937
|
export type FetchAdminXpPageLazyQueryHookResult = ReturnType<typeof useFetchAdminXpPageLazyQuery>;
|
|
@@ -3417,6 +3453,32 @@ export declare function useOnMyExperienceUpdatedSubscription(baseOptions: Apollo
|
|
|
3417
3453
|
}>>;
|
|
3418
3454
|
export type OnMyExperienceUpdatedSubscriptionHookResult = ReturnType<typeof useOnMyExperienceUpdatedSubscription>;
|
|
3419
3455
|
export type OnMyExperienceUpdatedSubscriptionResult = Apollo.SubscriptionResult<IOnMyExperienceUpdatedSubscription>;
|
|
3456
|
+
export declare const FetchCollectionRanksDocument: Apollo.DocumentNode;
|
|
3457
|
+
/**
|
|
3458
|
+
* __useFetchCollectionRanksQuery__
|
|
3459
|
+
*
|
|
3460
|
+
* To run a query within a React component, call `useFetchCollectionRanksQuery` and pass it any options that fit your needs.
|
|
3461
|
+
* When your component renders, `useFetchCollectionRanksQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
3462
|
+
* you can use to render your UI.
|
|
3463
|
+
*
|
|
3464
|
+
* @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;
|
|
3465
|
+
*
|
|
3466
|
+
* @example
|
|
3467
|
+
* const { data, loading, error } = useFetchCollectionRanksQuery({
|
|
3468
|
+
* variables: {
|
|
3469
|
+
* collectionKeys: // value for 'collectionKeys'
|
|
3470
|
+
* },
|
|
3471
|
+
* });
|
|
3472
|
+
*/
|
|
3473
|
+
export declare function useFetchCollectionRanksQuery(baseOptions: Apollo.QueryHookOptions<IFetchCollectionRanksQuery, IFetchCollectionRanksQueryVariables>): Apollo.QueryResult<IFetchCollectionRanksQuery, Exact<{
|
|
3474
|
+
collectionKeys: ICollectionKey[];
|
|
3475
|
+
}>>;
|
|
3476
|
+
export declare function useFetchCollectionRanksLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchCollectionRanksQuery, IFetchCollectionRanksQueryVariables>): Apollo.LazyQueryResultTuple<IFetchCollectionRanksQuery, Exact<{
|
|
3477
|
+
collectionKeys: ICollectionKey[];
|
|
3478
|
+
}>>;
|
|
3479
|
+
export type FetchCollectionRanksQueryHookResult = ReturnType<typeof useFetchCollectionRanksQuery>;
|
|
3480
|
+
export type FetchCollectionRanksLazyQueryHookResult = ReturnType<typeof useFetchCollectionRanksLazyQuery>;
|
|
3481
|
+
export type FetchCollectionRanksQueryResult = Apollo.QueryResult<IFetchCollectionRanksQuery, IFetchCollectionRanksQueryVariables>;
|
|
3420
3482
|
export declare const FetchNftDataDocument: Apollo.DocumentNode;
|
|
3421
3483
|
/**
|
|
3422
3484
|
* __useFetchNftDataQuery__
|
|
@@ -24,11 +24,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.useFetchMyTasksQuery = exports.FetchMyTasksDocument = exports.useFetchMyExperienceV2LazyQuery = exports.useFetchMyExperienceV2Query = exports.FetchMyExperienceV2Document = exports.useFetchDynamicCollectionsDataLazyQuery = exports.useFetchDynamicCollectionsDataQuery = exports.FetchDynamicCollectionsDataDocument = exports.useFetchDynamicCollectionDataLazyQuery = exports.useFetchDynamicCollectionDataQuery = exports.FetchDynamicCollectionDataDocument = exports.useFetchCollectionsByIdsLazyQuery = exports.useFetchCollectionsByIdsQuery = exports.FetchCollectionsByIdsDocument = exports.useFetchCollectionsLazyQuery = exports.useFetchCollectionsQuery = exports.FetchCollectionsDocument = exports.useFetchCollectionLazyQuery = exports.useFetchCollectionQuery = exports.FetchCollectionDocument = exports.useLikeCollectionMutation = exports.LikeCollectionDocument = exports.useDislikeCollectionMutation = exports.DislikeCollectionDocument = exports.useFetchLikedLazyQuery = exports.useFetchLikedQuery = exports.FetchLikedDocument = exports.useFetchDynamicAssetsLikesLazyQuery = exports.useFetchDynamicAssetsLikesQuery = exports.FetchDynamicAssetsLikesDocument = exports.useFetchDynamicAssetLikesLazyQuery = exports.useFetchDynamicAssetLikesQuery = exports.FetchDynamicAssetLikesDocument = exports.useFetchAssetsLazyQuery = exports.useFetchAssetsQuery = exports.FetchAssetsDocument = exports.useFetchAssetByBlockchainLazyQuery = exports.useFetchAssetByBlockchainQuery = exports.FetchAssetByBlockchainDocument = exports.useFetchAssetLazyQuery = exports.useFetchAssetQuery = exports.FetchAssetDocument = exports.useLikeAssetMutation = exports.LikeAssetDocument = exports.useDislikeAssetMutation = exports.DislikeAssetDocument = exports.useFetchAdminXpPageLazyQuery = exports.useFetchAdminXpPageQuery = exports.FetchAdminXpPageDocument = exports.ISortDirection = void 0;
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.useFindUserShowcaseItemsLazyQuery = exports.useFindUserShowcaseItemsQuery = exports.FindUserShowcaseItemsDocument = exports.useFindUserCreationsLazyQuery = exports.useFindUserCreationsQuery = exports.FindUserCreationsDocument = exports.useFindShowcaseItemsLazyQuery = exports.useFindShowcaseItemsQuery = void 0;
|
|
27
|
+
exports.useRemoveCollectionFromGalleryMutation = exports.RemoveCollectionFromGalleryDocument = exports.useRemoveAssetFromGalleryV2Mutation = exports.RemoveAssetFromGalleryV2Document = exports.useRemoveAssetFromGalleryMutation = exports.RemoveAssetFromGalleryDocument = exports.useEditGalleryMutation = exports.EditGalleryDocument = exports.useDeleteGalleryBannerMutation = exports.DeleteGalleryBannerDocument = exports.useDeleteGalleryMutation = exports.DeleteGalleryDocument = exports.useCreateGalleryV2Mutation = exports.CreateGalleryV2Document = exports.useCreateGalleryMutation = exports.CreateGalleryDocument = exports.useCreateFavoritesMutation = exports.CreateFavoritesDocument = exports.useCreateFavoriteListV2Mutation = exports.CreateFavoriteListV2Document = exports.useAddCreationsToGalleryV2Mutation = exports.AddCreationsToGalleryV2Document = exports.useAddCreationsToGalleryMutation = exports.AddCreationsToGalleryDocument = exports.useAddCollectionsToGalleryV2Mutation = exports.AddCollectionsToGalleryV2Document = exports.useAddCollectionsToGalleryMutation = exports.AddCollectionsToGalleryDocument = exports.useUploadGalleryBannerMutation = exports.UploadGalleryBannerDocument = exports.useAddAssetsToGalleryV2Mutation = exports.AddAssetsToGalleryV2Document = exports.useAddAssetsToGalleryMutation = exports.AddAssetsToGalleryDocument = exports.useFetchNftRanksLazyQuery = exports.useFetchNftRanksQuery = exports.FetchNftRanksDocument = exports.useFetchNftDataLazyQuery = exports.useFetchNftDataQuery = exports.FetchNftDataDocument = exports.useFetchCollectionRanksLazyQuery = exports.useFetchCollectionRanksQuery = exports.FetchCollectionRanksDocument = exports.useOnMyExperienceUpdatedSubscription = exports.OnMyExperienceUpdatedDocument = exports.useOnMyExperienceIncrementedSubscription = exports.OnMyExperienceIncrementedDocument = exports.useOnInviteCodeUsedSubscription = exports.OnInviteCodeUsedDocument = exports.useFetchMyTasksLazyQuery = void 0;
|
|
28
|
+
exports.useGenerateNewInviteCodesMutation = exports.GenerateNewInviteCodesDocument = exports.useCreateNonceMutation = exports.CreateNonceDocument = exports.useAddWalletTezosMutation = exports.AddWalletTezosDocument = exports.useAddWalletSolanaMutation = exports.AddWalletSolanaDocument = exports.useAddWalletMetamaskMutation = exports.AddWalletMetamaskDocument = exports.useAddWalletFlowMutation = exports.AddWalletFlowDocument = exports.useAddWalletElrondMutation = exports.AddWalletElrondDocument = exports.useFetchUserGalleriesV2LazyQuery = exports.useFetchUserGalleriesV2Query = exports.FetchUserGalleriesV2Document = exports.useFetchUserGalleriesLazyQuery = exports.useFetchUserGalleriesQuery = exports.FetchUserGalleriesDocument = exports.useFetchUserFavoritesV2LazyQuery = exports.useFetchUserFavoritesV2Query = exports.FetchUserFavoritesV2Document = exports.useFetchUserFavoritesLazyQuery = exports.useFetchUserFavoritesQuery = exports.FetchUserFavoritesDocument = exports.useFetchMyGalleriesV2LazyQuery = exports.useFetchMyGalleriesV2Query = exports.FetchMyGalleriesV2Document = exports.useFetchMyFavoritesV2LazyQuery = exports.useFetchMyFavoritesV2Query = exports.FetchMyFavoritesV2Document = exports.useFetchMyFavoritesLazyQuery = exports.useFetchMyFavoritesQuery = exports.FetchMyFavoritesDocument = exports.useFetchGalleryV2LazyQuery = exports.useFetchGalleryV2Query = exports.FetchGalleryV2Document = exports.useFetchGalleryCreationsLazyQuery = exports.useFetchGalleryCreationsQuery = exports.FetchGalleryCreationsDocument = exports.useFetchGalleryLazyQuery = exports.useFetchGalleryQuery = exports.FetchGalleryDocument = exports.useRemoveCreationFromGalleryV2Mutation = exports.RemoveCreationFromGalleryV2Document = exports.useRemoveCreationFromGalleryMutation = exports.RemoveCreationFromGalleryDocument = exports.useRemoveCollectionFromGalleryV2Mutation = exports.RemoveCollectionFromGalleryV2Document = void 0;
|
|
29
|
+
exports.useFetchInterestsQuery = exports.FetchInterestsDocument = exports.useFetchExpectationsLazyQuery = exports.useFetchExpectationsQuery = exports.FetchExpectationsDocument = exports.useSaveUserInterestsMutation = exports.SaveUserInterestsDocument = exports.useSaveUserExpectationsMutation = exports.SaveUserExpectationsDocument = exports.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = exports.useFetchUserpicLazyQuery = exports.useFetchUserpicQuery = exports.FetchUserpicDocument = exports.useGetMyInviteCodesLazyQuery = exports.useGetMyInviteCodesQuery = exports.GetMyInviteCodesDocument = exports.useFetchUserWalletsLazyQuery = exports.useFetchUserWalletsQuery = exports.FetchUserWalletsDocument = exports.useFetchProfileLazyQuery = exports.useFetchProfileQuery = exports.FetchProfileDocument = exports.useUpdateProfileMutation = exports.UpdateProfileDocument = exports.useSignInTezosMutation = exports.SignInTezosDocument = exports.useSignInSolanaMutation = exports.SignInSolanaDocument = exports.useSignInMetamaskMutation = exports.SignInMetamaskDocument = exports.useSignInFlowMutation = exports.SignInFlowDocument = exports.useSignInElrondMutation = exports.SignInElrondDocument = exports.useSetMainWalletMutation = exports.SetMainWalletDocument = exports.useRevokeTokenMutation = exports.RevokeTokenDocument = exports.useRemoveWalletMutation = exports.RemoveWalletDocument = exports.useRefreshTokenMutation = exports.RefreshTokenDocument = exports.useUseInviteCodeMutation = exports.UseInviteCodeDocument = void 0;
|
|
30
|
+
exports.FindSetsDocument = exports.useFindProfilesByNameLazyQuery = exports.useFindProfilesByNameQuery = exports.FindProfilesByNameDocument = exports.useFindCreationsLazyQuery = exports.useFindCreationsQuery = exports.FindCreationsDocument = exports.useFetchUserPortfolioLazyQuery = exports.useFetchUserPortfolioQuery = exports.FetchUserPortfolioDocument = exports.useFindAllTopEntitiesByNameLazyQuery = exports.useFindAllTopEntitiesByNameQuery = exports.FindAllTopEntitiesByNameDocument = exports.useFetchCreationsByTypeLazyQuery = exports.useFetchCreationsByTypeQuery = exports.FetchCreationsByTypeDocument = exports.useFindCollectionsLazyQuery = exports.useFindCollectionsQuery = exports.FindCollectionsDocument = exports.useFetchAssetsCountLazyQuery = exports.useFetchAssetsCountQuery = exports.FetchAssetsCountDocument = exports.useFetchAllCreationsLazyQuery = exports.useFetchAllCreationsQuery = exports.FetchAllCreationsDocument = exports.useFetchSetsSearchResultTypeSelectionsLazyQuery = exports.useFetchSetsSearchResultTypeSelectionsQuery = exports.FetchSetsSearchResultTypeSelectionsDocument = exports.useFetchSearchResultStatusSelectionsLazyQuery = exports.useFetchSearchResultStatusSelectionsQuery = exports.FetchSearchResultStatusSelectionsDocument = exports.useFetchSearchResultCategorySelectionsLazyQuery = exports.useFetchSearchResultCategorySelectionsQuery = exports.FetchSearchResultCategorySelectionsDocument = exports.useFetchSearchResultBlockchainSelectionsLazyQuery = exports.useFetchSearchResultBlockchainSelectionsQuery = exports.FetchSearchResultBlockchainSelectionsDocument = exports.useFetchUserInterestsLazyQuery = exports.useFetchUserInterestsQuery = exports.FetchUserInterestsDocument = exports.useFetchUserExpectationsLazyQuery = exports.useFetchUserExpectationsQuery = exports.FetchUserExpectationsDocument = exports.useFetchSearchResultTimeSelectionsLazyQuery = exports.useFetchSearchResultTimeSelectionsQuery = exports.FetchSearchResultTimeSelectionsDocument = exports.useFetchSearchResultSelectionsLazyQuery = exports.useFetchSearchResultSelectionsQuery = exports.FetchSearchResultSelectionsDocument = exports.useFetchInterestsLazyQuery = void 0;
|
|
31
|
+
exports.useFindUserShowcaseItemsLazyQuery = exports.useFindUserShowcaseItemsQuery = exports.FindUserShowcaseItemsDocument = exports.useFindUserCreationsLazyQuery = exports.useFindUserCreationsQuery = exports.FindUserCreationsDocument = exports.useFindShowcaseItemsLazyQuery = exports.useFindShowcaseItemsQuery = exports.FindShowcaseItemsDocument = exports.useFindSetsLazyQuery = exports.useFindSetsQuery = void 0;
|
|
32
32
|
/* eslint-disable */
|
|
33
33
|
const client_1 = require("@apollo/client");
|
|
34
34
|
const Apollo = __importStar(require("@apollo/client"));
|
|
@@ -38,7 +38,7 @@ var ISortDirection;
|
|
|
38
38
|
ISortDirection["Desc"] = "DESC";
|
|
39
39
|
})(ISortDirection || (exports.ISortDirection = ISortDirection = {}));
|
|
40
40
|
exports.FetchAdminXpPageDocument = (0, client_1.gql) `
|
|
41
|
-
query FetchAdminXpPage($filter: XpFilterInput!, $sort: XpSortInput!, $page:
|
|
41
|
+
query FetchAdminXpPage($filter: XpFilterInput!, $sort: XpSortInput!, $page: AdminPageInput!) {
|
|
42
42
|
fetchAdminXpPage(filter: $filter, sort: $sort, page: $page) {
|
|
43
43
|
xps {
|
|
44
44
|
userId
|
|
@@ -1108,6 +1108,42 @@ function useOnMyExperienceUpdatedSubscription(baseOptions) {
|
|
|
1108
1108
|
return Apollo.useSubscription(exports.OnMyExperienceUpdatedDocument, baseOptions);
|
|
1109
1109
|
}
|
|
1110
1110
|
exports.useOnMyExperienceUpdatedSubscription = useOnMyExperienceUpdatedSubscription;
|
|
1111
|
+
exports.FetchCollectionRanksDocument = (0, client_1.gql) `
|
|
1112
|
+
query FetchCollectionRanks($collectionKeys: [CollectionKey!]!) {
|
|
1113
|
+
fetchCollectionRanks(collectionKeys: $collectionKeys) {
|
|
1114
|
+
blockchain
|
|
1115
|
+
address
|
|
1116
|
+
tokenId
|
|
1117
|
+
id
|
|
1118
|
+
collectionTitle
|
|
1119
|
+
rank
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
`;
|
|
1123
|
+
/**
|
|
1124
|
+
* __useFetchCollectionRanksQuery__
|
|
1125
|
+
*
|
|
1126
|
+
* To run a query within a React component, call `useFetchCollectionRanksQuery` and pass it any options that fit your needs.
|
|
1127
|
+
* When your component renders, `useFetchCollectionRanksQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1128
|
+
* you can use to render your UI.
|
|
1129
|
+
*
|
|
1130
|
+
* @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;
|
|
1131
|
+
*
|
|
1132
|
+
* @example
|
|
1133
|
+
* const { data, loading, error } = useFetchCollectionRanksQuery({
|
|
1134
|
+
* variables: {
|
|
1135
|
+
* collectionKeys: // value for 'collectionKeys'
|
|
1136
|
+
* },
|
|
1137
|
+
* });
|
|
1138
|
+
*/
|
|
1139
|
+
function useFetchCollectionRanksQuery(baseOptions) {
|
|
1140
|
+
return Apollo.useQuery(exports.FetchCollectionRanksDocument, baseOptions);
|
|
1141
|
+
}
|
|
1142
|
+
exports.useFetchCollectionRanksQuery = useFetchCollectionRanksQuery;
|
|
1143
|
+
function useFetchCollectionRanksLazyQuery(baseOptions) {
|
|
1144
|
+
return Apollo.useLazyQuery(exports.FetchCollectionRanksDocument, baseOptions);
|
|
1145
|
+
}
|
|
1146
|
+
exports.useFetchCollectionRanksLazyQuery = useFetchCollectionRanksLazyQuery;
|
|
1111
1147
|
exports.FetchNftDataDocument = (0, client_1.gql) `
|
|
1112
1148
|
query FetchNFTData($blockchain: String!, $contractAddress: String, $tokenId: String, $elrondId: String) {
|
|
1113
1149
|
fetchNFTData(
|
package/package.json
CHANGED
|
@@ -38,6 +38,20 @@ export type IAdminInvite = {
|
|
|
38
38
|
userXpLevel?: Maybe<Scalars['Int']>;
|
|
39
39
|
};
|
|
40
40
|
|
|
41
|
+
export type IAdminPage = {
|
|
42
|
+
num?: Maybe<Scalars['Int']>;
|
|
43
|
+
lastNum?: Maybe<Scalars['Int']>;
|
|
44
|
+
size?: Maybe<Scalars['Int']>;
|
|
45
|
+
elements?: Maybe<Scalars['Long']>;
|
|
46
|
+
token?: Maybe<Scalars['String']>;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
export type IAdminPageInput = {
|
|
50
|
+
num: Scalars['Int'];
|
|
51
|
+
size: Scalars['Int'];
|
|
52
|
+
token?: Maybe<Scalars['String']>;
|
|
53
|
+
};
|
|
54
|
+
|
|
41
55
|
export type IAdminXp = {
|
|
42
56
|
userId: Scalars['ID'];
|
|
43
57
|
mainWallet?: Maybe<IWallet>;
|
|
@@ -338,6 +352,14 @@ export type ICollectionFilterInput = {
|
|
|
338
352
|
status: Scalars['String'];
|
|
339
353
|
};
|
|
340
354
|
|
|
355
|
+
export type ICollectionKey = {
|
|
356
|
+
blockchain: Scalars['String'];
|
|
357
|
+
contractAddress?: Maybe<Scalars['String']>;
|
|
358
|
+
tokenId?: Maybe<Scalars['String']>;
|
|
359
|
+
elrondId?: Maybe<Scalars['String']>;
|
|
360
|
+
collectionTitle?: Maybe<Scalars['String']>;
|
|
361
|
+
};
|
|
362
|
+
|
|
341
363
|
export type ICollectionMarket = {
|
|
342
364
|
marketId?: Maybe<Scalars['String']>;
|
|
343
365
|
marketName?: Maybe<Scalars['String']>;
|
|
@@ -350,6 +372,15 @@ export type ICollectionPage = {
|
|
|
350
372
|
nextPage?: Maybe<IPage>;
|
|
351
373
|
};
|
|
352
374
|
|
|
375
|
+
export type ICollectionRank = {
|
|
376
|
+
blockchain: Scalars['String'];
|
|
377
|
+
address?: Maybe<Scalars['String']>;
|
|
378
|
+
tokenId?: Maybe<Scalars['String']>;
|
|
379
|
+
id?: Maybe<Scalars['String']>;
|
|
380
|
+
collectionTitle?: Maybe<Scalars['String']>;
|
|
381
|
+
rank?: Maybe<Scalars['Float']>;
|
|
382
|
+
};
|
|
383
|
+
|
|
353
384
|
export type ICollectionsPage = {
|
|
354
385
|
collections?: Maybe<Array<Maybe<ICollection>>>;
|
|
355
386
|
nextPageToken?: Maybe<Scalars['String']>;
|
|
@@ -686,7 +717,7 @@ export type IInvitesFilterInput = {
|
|
|
686
717
|
|
|
687
718
|
export type IInvitesPage = {
|
|
688
719
|
invites: Array<IAdminInvite>;
|
|
689
|
-
nextPage?: Maybe<
|
|
720
|
+
nextPage?: Maybe<IAdminPage>;
|
|
690
721
|
};
|
|
691
722
|
|
|
692
723
|
export type IInvitesSortInput = {
|
|
@@ -1484,11 +1515,10 @@ export type IOpportunityPage = {
|
|
|
1484
1515
|
};
|
|
1485
1516
|
|
|
1486
1517
|
export type IPage = {
|
|
1487
|
-
|
|
1488
|
-
lastNum?: Maybe<Scalars['Int']>;
|
|
1518
|
+
token?: Maybe<Scalars['String']>;
|
|
1489
1519
|
num?: Maybe<Scalars['Int']>;
|
|
1490
1520
|
size?: Maybe<Scalars['Int']>;
|
|
1491
|
-
|
|
1521
|
+
elements?: Maybe<Scalars['Long']>;
|
|
1492
1522
|
};
|
|
1493
1523
|
|
|
1494
1524
|
export type IPageInput = {
|
|
@@ -1550,6 +1580,7 @@ export type IQuery = {
|
|
|
1550
1580
|
fetchCategorySelections: Array<Maybe<ISelection>>;
|
|
1551
1581
|
fetchCollection: ICollection;
|
|
1552
1582
|
fetchCollectionAssets: ICollectionAssetsPage;
|
|
1583
|
+
fetchCollectionRanks: Array<ICollectionRank>;
|
|
1553
1584
|
fetchCollections: ICollectionsPage;
|
|
1554
1585
|
fetchCollectionsByIds: Array<ICollection>;
|
|
1555
1586
|
fetchCreation: ICreation;
|
|
@@ -1669,14 +1700,14 @@ export type IQuery = {
|
|
|
1669
1700
|
export type IQueryFetchAdminInvitesPageArgs = {
|
|
1670
1701
|
filter: IInvitesFilterInput;
|
|
1671
1702
|
sort: IInvitesSortInput;
|
|
1672
|
-
page:
|
|
1703
|
+
page: IAdminPageInput;
|
|
1673
1704
|
};
|
|
1674
1705
|
|
|
1675
1706
|
|
|
1676
1707
|
export type IQueryFetchAdminXpPageArgs = {
|
|
1677
1708
|
filter: IXpFilterInput;
|
|
1678
1709
|
sort: IXpSortInput;
|
|
1679
|
-
page:
|
|
1710
|
+
page: IAdminPageInput;
|
|
1680
1711
|
};
|
|
1681
1712
|
|
|
1682
1713
|
|
|
@@ -1774,6 +1805,11 @@ export type IQueryFetchCollectionAssetsArgs = {
|
|
|
1774
1805
|
};
|
|
1775
1806
|
|
|
1776
1807
|
|
|
1808
|
+
export type IQueryFetchCollectionRanksArgs = {
|
|
1809
|
+
collectionKeys: Array<ICollectionKey>;
|
|
1810
|
+
};
|
|
1811
|
+
|
|
1812
|
+
|
|
1777
1813
|
export type IQueryFetchCollectionsArgs = {
|
|
1778
1814
|
pageSize: Scalars['Int'];
|
|
1779
1815
|
pageToken?: Maybe<Scalars['String']>;
|
|
@@ -2554,7 +2590,7 @@ export type IXpFilterInput = {
|
|
|
2554
2590
|
|
|
2555
2591
|
export type IXpPage = {
|
|
2556
2592
|
xps: Array<IAdminXp>;
|
|
2557
|
-
nextPage?: Maybe<
|
|
2593
|
+
nextPage?: Maybe<IAdminPage>;
|
|
2558
2594
|
};
|
|
2559
2595
|
|
|
2560
2596
|
export type IXpSortInput = {
|
|
@@ -2570,14 +2606,14 @@ export type IXpSortInput = {
|
|
|
2570
2606
|
export type IFetchAdminXpPageQueryVariables = Exact<{
|
|
2571
2607
|
filter: IXpFilterInput;
|
|
2572
2608
|
sort: IXpSortInput;
|
|
2573
|
-
page:
|
|
2609
|
+
page: IAdminPageInput;
|
|
2574
2610
|
}>;
|
|
2575
2611
|
|
|
2576
2612
|
|
|
2577
2613
|
export type IFetchAdminXpPageQuery = { fetchAdminXpPage: { xps: Array<(
|
|
2578
2614
|
Pick<IAdminXp, 'userId' | 'userXpLevel' | 'userXpPoints' | 'referredUsers' | 'referredUsersNum' | 'joinedOpportunityIds' | 'connectedWalletsNum' | 'suggestedOpportunityIds'>
|
|
2579
2615
|
& { mainWallet?: Maybe<Pick<IWallet, 'address' | 'blockchain' | 'chainId' | 'mainWallet' | 'name' | 'url' | 'userId' | 'walletName'>> }
|
|
2580
|
-
)>, nextPage?: Maybe<Pick<
|
|
2616
|
+
)>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
|
|
2581
2617
|
|
|
2582
2618
|
export type IDislikeAssetMutationVariables = Exact<{
|
|
2583
2619
|
assetId: Scalars['String'];
|
|
@@ -2759,6 +2795,13 @@ export type IOnMyExperienceUpdatedSubscriptionVariables = Exact<{
|
|
|
2759
2795
|
|
|
2760
2796
|
export type IOnMyExperienceUpdatedSubscription = { onMyExperienceUpdated: Pick<IUserXp, 'xps' | 'level' | 'levelMinXps' | 'levelMaxXps'> };
|
|
2761
2797
|
|
|
2798
|
+
export type IFetchCollectionRanksQueryVariables = Exact<{
|
|
2799
|
+
collectionKeys: Array<ICollectionKey>;
|
|
2800
|
+
}>;
|
|
2801
|
+
|
|
2802
|
+
|
|
2803
|
+
export type IFetchCollectionRanksQuery = { fetchCollectionRanks: Array<Pick<ICollectionRank, 'blockchain' | 'address' | 'tokenId' | 'id' | 'collectionTitle' | 'rank'>> };
|
|
2804
|
+
|
|
2762
2805
|
export type IFetchNftDataQueryVariables = Exact<{
|
|
2763
2806
|
blockchain: Scalars['String'];
|
|
2764
2807
|
contractAddress?: Maybe<Scalars['String']>;
|
|
@@ -3493,7 +3536,7 @@ export type IFindUserShowcaseItemsQuery = { findUserShowcaseItems: (
|
|
|
3493
3536
|
|
|
3494
3537
|
|
|
3495
3538
|
export const FetchAdminXpPageDocument = gql`
|
|
3496
|
-
query FetchAdminXpPage($filter: XpFilterInput!, $sort: XpSortInput!, $page:
|
|
3539
|
+
query FetchAdminXpPage($filter: XpFilterInput!, $sort: XpSortInput!, $page: AdminPageInput!) {
|
|
3497
3540
|
fetchAdminXpPage(filter: $filter, sort: $sort, page: $page) {
|
|
3498
3541
|
xps {
|
|
3499
3542
|
userId
|
|
@@ -4613,6 +4656,44 @@ export function useOnMyExperienceUpdatedSubscription(baseOptions: Apollo.Subscri
|
|
|
4613
4656
|
}
|
|
4614
4657
|
export type OnMyExperienceUpdatedSubscriptionHookResult = ReturnType<typeof useOnMyExperienceUpdatedSubscription>;
|
|
4615
4658
|
export type OnMyExperienceUpdatedSubscriptionResult = Apollo.SubscriptionResult<IOnMyExperienceUpdatedSubscription>;
|
|
4659
|
+
export const FetchCollectionRanksDocument = gql`
|
|
4660
|
+
query FetchCollectionRanks($collectionKeys: [CollectionKey!]!) {
|
|
4661
|
+
fetchCollectionRanks(collectionKeys: $collectionKeys) {
|
|
4662
|
+
blockchain
|
|
4663
|
+
address
|
|
4664
|
+
tokenId
|
|
4665
|
+
id
|
|
4666
|
+
collectionTitle
|
|
4667
|
+
rank
|
|
4668
|
+
}
|
|
4669
|
+
}
|
|
4670
|
+
`;
|
|
4671
|
+
|
|
4672
|
+
/**
|
|
4673
|
+
* __useFetchCollectionRanksQuery__
|
|
4674
|
+
*
|
|
4675
|
+
* To run a query within a React component, call `useFetchCollectionRanksQuery` and pass it any options that fit your needs.
|
|
4676
|
+
* When your component renders, `useFetchCollectionRanksQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
4677
|
+
* you can use to render your UI.
|
|
4678
|
+
*
|
|
4679
|
+
* @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;
|
|
4680
|
+
*
|
|
4681
|
+
* @example
|
|
4682
|
+
* const { data, loading, error } = useFetchCollectionRanksQuery({
|
|
4683
|
+
* variables: {
|
|
4684
|
+
* collectionKeys: // value for 'collectionKeys'
|
|
4685
|
+
* },
|
|
4686
|
+
* });
|
|
4687
|
+
*/
|
|
4688
|
+
export function useFetchCollectionRanksQuery(baseOptions: Apollo.QueryHookOptions<IFetchCollectionRanksQuery, IFetchCollectionRanksQueryVariables>) {
|
|
4689
|
+
return Apollo.useQuery<IFetchCollectionRanksQuery, IFetchCollectionRanksQueryVariables>(FetchCollectionRanksDocument, baseOptions);
|
|
4690
|
+
}
|
|
4691
|
+
export function useFetchCollectionRanksLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchCollectionRanksQuery, IFetchCollectionRanksQueryVariables>) {
|
|
4692
|
+
return Apollo.useLazyQuery<IFetchCollectionRanksQuery, IFetchCollectionRanksQueryVariables>(FetchCollectionRanksDocument, baseOptions);
|
|
4693
|
+
}
|
|
4694
|
+
export type FetchCollectionRanksQueryHookResult = ReturnType<typeof useFetchCollectionRanksQuery>;
|
|
4695
|
+
export type FetchCollectionRanksLazyQueryHookResult = ReturnType<typeof useFetchCollectionRanksLazyQuery>;
|
|
4696
|
+
export type FetchCollectionRanksQueryResult = Apollo.QueryResult<IFetchCollectionRanksQuery, IFetchCollectionRanksQueryVariables>;
|
|
4616
4697
|
export const FetchNftDataDocument = gql`
|
|
4617
4698
|
query FetchNFTData($blockchain: String!, $contractAddress: String, $tokenId: String, $elrondId: String) {
|
|
4618
4699
|
fetchNFTData(
|