@ludo.ninja/api 2.8.3 → 2.8.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import * as express from "express";
2
2
  import * as next from 'next';
3
- declare const assignCookies: (userId: string, wallets: Array<string>, authToken: string, refreshToken: string, newUser: string, inviteCode: string, domain?: string) => void;
3
+ declare const assignCookies: (userId: string, wallets: Array<string>, authToken: string, refreshToken: string, newUser: string, inviteCode: string, role: string, domain?: string) => void;
4
4
  declare const refreshCookies: (authToken: string, refreshToken: string, domain?: string) => void;
5
5
  declare const getCookies: (ctx?: Pick<next.NextPageContext, 'req'> | {
6
6
  req: next.NextApiRequest;
@@ -13,6 +13,7 @@ declare const getCookies: (ctx?: Pick<next.NextPageContext, 'req'> | {
13
13
  wallets: null;
14
14
  newUser: null;
15
15
  inviteCode: null;
16
+ role: null;
16
17
  } | {
17
18
  authToken: string;
18
19
  refreshToken: string;
@@ -20,6 +21,7 @@ declare const getCookies: (ctx?: Pick<next.NextPageContext, 'req'> | {
20
21
  wallets: string[];
21
22
  newUser: string;
22
23
  inviteCode: string;
24
+ role: string;
23
25
  };
24
- declare const destroyCookies: (domain?: string) => void;
26
+ declare const destroyCookies: (domain?: string, role?: string) => void;
25
27
  export { assignCookies, refreshCookies, destroyCookies, getCookies };
@@ -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.2';
6
+ const cookiesVersion = '1.0.3';
7
7
  const addVersionCookies = (domain) => {
8
8
  (0, nookies_1.setCookie)(null, "versionAuth", cookiesVersion, {
9
9
  maxAge: 2629800000,
@@ -12,7 +12,7 @@ const addVersionCookies = (domain) => {
12
12
  });
13
13
  };
14
14
  const validationVersion = (version) => version === cookiesVersion;
15
- const assignCookies = (userId, wallets, authToken, refreshToken, newUser, inviteCode, domain) => {
15
+ const assignCookies = (userId, wallets, authToken, refreshToken, newUser, inviteCode, role, domain) => {
16
16
  addVersionCookies(domain);
17
17
  if (userId)
18
18
  (0, nookies_1.setCookie)(null, "userId", userId, { maxAge: 2629800000, path: "/", domain });
@@ -46,6 +46,12 @@ const assignCookies = (userId, wallets, authToken, refreshToken, newUser, invite
46
46
  path: "/",
47
47
  domain,
48
48
  });
49
+ if (inviteCode)
50
+ (0, nookies_1.setCookie)(null, "role", role, {
51
+ maxAge: 2629800000,
52
+ path: "/",
53
+ domain,
54
+ });
49
55
  };
50
56
  exports.assignCookies = assignCookies;
51
57
  const refreshCookies = (authToken, refreshToken, domain) => {
@@ -64,7 +70,7 @@ const refreshCookies = (authToken, refreshToken, domain) => {
64
70
  };
65
71
  exports.refreshCookies = refreshCookies;
66
72
  const getCookies = (ctx) => {
67
- const { authToken, refreshToken, userId, wallets, newUser, inviteCode, versionAuth } = (0, nookies_1.parseCookies)(ctx);
73
+ const { authToken, refreshToken, userId, wallets, newUser, inviteCode, role, versionAuth } = (0, nookies_1.parseCookies)(ctx);
68
74
  const nullResult = {
69
75
  authToken: null,
70
76
  refreshToken: null,
@@ -72,8 +78,9 @@ const getCookies = (ctx) => {
72
78
  wallets: null,
73
79
  newUser: null,
74
80
  inviteCode: null,
81
+ role: null
75
82
  };
76
- if (authToken && refreshToken && userId && wallets && newUser && inviteCode && versionAuth && validationVersion(versionAuth)) {
83
+ if (authToken && refreshToken && userId && wallets && newUser && inviteCode && versionAuth && role && validationVersion(versionAuth)) {
77
84
  let walletsParsed;
78
85
  try {
79
86
  walletsParsed = JSON.parse(wallets);
@@ -91,17 +98,19 @@ const getCookies = (ctx) => {
91
98
  wallets: walletsParsed,
92
99
  newUser,
93
100
  inviteCode,
101
+ role
94
102
  };
95
103
  }
96
104
  return nullResult;
97
105
  };
98
106
  exports.getCookies = getCookies;
99
- const destroyCookies = (domain) => {
107
+ const destroyCookies = (domain, role) => {
100
108
  (0, nookies_1.destroyCookie)(null, "userId", { path: "/", domain });
101
109
  (0, nookies_1.destroyCookie)(null, "wallets", { path: "/", domain });
102
110
  (0, nookies_1.destroyCookie)(null, "authToken", { path: "/", domain });
103
111
  (0, nookies_1.destroyCookie)(null, "refreshToken", { path: "/", domain });
104
112
  (0, nookies_1.destroyCookie)(null, "newUser", { path: "/", domain });
105
113
  (0, nookies_1.destroyCookie)(null, "inviteCode", { path: "/", domain });
114
+ (0, nookies_1.destroyCookie)(null, "role", { path: "/", domain });
106
115
  };
107
116
  exports.destroyCookies = destroyCookies;
@@ -116,6 +116,7 @@ export type IAsset = {
116
116
  category?: Maybe<Scalars['String']>;
117
117
  categoryLabel?: Maybe<Scalars['String']>;
118
118
  chainId?: Maybe<Scalars['String']>;
119
+ collection?: Maybe<Scalars['String']>;
119
120
  collectionId?: Maybe<Scalars['String']>;
120
121
  collectionMedias?: Maybe<Array<Maybe<IMedia>>>;
121
122
  collectionOriginalUrls?: Maybe<Array<Maybe<Scalars['String']>>>;
@@ -126,6 +127,7 @@ export type IAsset = {
126
127
  creatorsProfiles?: Maybe<Array<Maybe<IProfile>>>;
127
128
  description?: Maybe<Scalars['String']>;
128
129
  galleries?: Maybe<IGalleries>;
130
+ id?: Maybe<Scalars['String']>;
129
131
  lastSoldAt?: Maybe<Scalars['String']>;
130
132
  latestPriceAmount?: Maybe<Scalars['Float']>;
131
133
  latestPriceBlockHeight?: Maybe<Scalars['Long']>;
@@ -153,6 +155,7 @@ export type IAsset = {
153
155
  tokenId?: Maybe<Scalars['String']>;
154
156
  totalVolumes?: Maybe<Array<Maybe<ICurrencyAmountPair>>>;
155
157
  traits?: Maybe<Array<Maybe<ITrait>>>;
158
+ trueRank?: Maybe<Scalars['Float']>;
156
159
  type?: Maybe<Scalars['String']>;
157
160
  url?: Maybe<Scalars['String']>;
158
161
  views?: Maybe<Scalars['Int']>;
@@ -167,9 +170,9 @@ export type IAssetGallery = {
167
170
  galleryName: Scalars['String'];
168
171
  };
169
172
  export type IAssetMarket = {
173
+ marketDomain?: Maybe<Scalars['String']>;
170
174
  marketId?: Maybe<Scalars['String']>;
171
175
  marketName?: Maybe<Scalars['String']>;
172
- marketDomain?: Maybe<Scalars['String']>;
173
176
  marketUrl?: Maybe<Scalars['String']>;
174
177
  };
175
178
  export type IAssetModeration = {
@@ -221,6 +224,10 @@ export type IAssetPage = {
221
224
  assets: Array<Maybe<IAsset>>;
222
225
  nextPageToken?: Maybe<Scalars['String']>;
223
226
  };
227
+ export type IAssetRank = {
228
+ assetId: Scalars['String'];
229
+ rank?: Maybe<Scalars['Float']>;
230
+ };
224
231
  export type IAssetReport = {
225
232
  reportId: Scalars['ID'];
226
233
  type?: Maybe<Scalars['String']>;
@@ -444,13 +451,14 @@ export type ICreationsPage = {
444
451
  nextPage?: Maybe<IPage>;
445
452
  };
446
453
  export type ICurrencyAmountPair = {
447
- currency?: Maybe<Scalars['String']>;
448
454
  amount?: Maybe<Scalars['Float']>;
455
+ currency?: Maybe<Scalars['String']>;
449
456
  };
450
457
  export type IDynamicAssetData = {
458
+ assetId: Scalars['String'];
451
459
  isLikedByUser?: Maybe<Scalars['Boolean']>;
452
460
  likesNum?: Maybe<Scalars['Int']>;
453
- assetId?: Maybe<Scalars['String']>;
461
+ medias?: Maybe<Array<Maybe<IMedia>>>;
454
462
  };
455
463
  export type IDynamicCollectionData = {
456
464
  isLikedByUser?: Maybe<Scalars['Boolean']>;
@@ -755,7 +763,9 @@ export type IMarketsPage = {
755
763
  export type IMedia = {
756
764
  assetId?: Maybe<Scalars['String']>;
757
765
  blockchain?: Maybe<Scalars['String']>;
766
+ cover?: Maybe<Scalars['Boolean']>;
758
767
  fileSize?: Maybe<Scalars['Long']>;
768
+ hidden?: Maybe<Scalars['Boolean']>;
759
769
  mimeType?: Maybe<Scalars['String']>;
760
770
  nsfw?: Maybe<Scalars['Int']>;
761
771
  originalMime?: Maybe<Scalars['String']>;
@@ -1447,6 +1457,8 @@ export type IQuery = {
1447
1457
  fetchAssetModerations: IAssetModerationsPage;
1448
1458
  /** This query is not connected to the front */
1449
1459
  fetchAssetNamesSuggestions: Array<Maybe<Scalars['String']>>;
1460
+ fetchAssetRank: IAssetRank;
1461
+ fetchAssetRanks: Array<Maybe<IAssetRank>>;
1450
1462
  fetchAssetReports: IAssetReportsPage;
1451
1463
  fetchAssets: Array<Maybe<IAsset>>;
1452
1464
  /** This query must be used on the first page */
@@ -1642,6 +1654,12 @@ export type IQueryFetchAssetModerationsArgs = {
1642
1654
  export type IQueryFetchAssetNamesSuggestionsArgs = {
1643
1655
  term: Scalars['String'];
1644
1656
  };
1657
+ export type IQueryFetchAssetRankArgs = {
1658
+ assetId: Scalars['String'];
1659
+ };
1660
+ export type IQueryFetchAssetRanksArgs = {
1661
+ assetIds: Array<Scalars['String']>;
1662
+ };
1645
1663
  export type IQueryFetchAssetReportsArgs = {
1646
1664
  input: IAssetReportFilter;
1647
1665
  pageSize: Scalars['Int'];
@@ -2432,49 +2450,6 @@ export type IFetchAssetQuery = {
2432
2450
  attributes?: Maybe<Array<Maybe<Pick<IAttribute, 'name' | 'value'>>>>;
2433
2451
  });
2434
2452
  };
2435
- export type IFetchAssetByBlockchainQueryVariables = Exact<{
2436
- blockchain: Scalars['String'];
2437
- address?: Maybe<Scalars['String']>;
2438
- tokenId?: Maybe<Scalars['String']>;
2439
- elrondId?: Maybe<Scalars['String']>;
2440
- }>;
2441
- export type IFetchAssetByBlockchainQuery = {
2442
- fetchAssetByBlockchain: (Pick<IAsset, 'latestPriceCurrency' | 'latestPriceAmount' | 'collectionId' | 'collectionOriginalUrls' | 'collectionTitle' | 'assetId' | 'blockchain' | 'blockchainLabel' | 'address' | 'tokenId' | 'name' | 'description' | 'rank' | 'originalUrls' | 'ownersAddresses' | 'creatorsAddresses' | 'views' | 'visible' | 'blurred' | 'category' | 'categoryLabel'> & {
2443
- totalVolumes?: Maybe<Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>>;
2444
- markets?: Maybe<Array<Maybe<Pick<IAssetMarket, 'marketId' | 'marketName' | 'marketDomain' | 'marketUrl'>>>>;
2445
- collectionMedias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'previewUrl' | 'mimeType' | 'sizeRatio' | 'fileSize'>>>>;
2446
- medias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'mimeType' | 'originalMime' | 'previewUrl' | 'sizeRatio' | 'fileSize'>>>>;
2447
- ownersProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>;
2448
- creatorsProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>;
2449
- attributes?: Maybe<Array<Maybe<Pick<IAttribute, 'name' | 'value'>>>>;
2450
- });
2451
- };
2452
- export type IFetchAssetsQueryVariables = Exact<{
2453
- assetIds: Array<Scalars['String']>;
2454
- }>;
2455
- export type IFetchAssetsQuery = {
2456
- fetchAssets: Array<Maybe<(Pick<IAsset, 'latestPriceCurrency' | 'latestPriceAmount' | 'collectionId' | 'collectionOriginalUrls' | 'collectionTitle' | 'assetId' | 'blockchain' | 'address' | 'tokenId' | 'name' | 'description' | 'rank' | 'originalUrls' | 'ownersAddresses' | 'creatorsAddresses' | 'views' | 'visible' | 'blurred'> & {
2457
- totalVolumes?: Maybe<Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>>;
2458
- markets?: Maybe<Array<Maybe<Pick<IAssetMarket, 'marketId' | 'marketName' | 'marketDomain' | 'marketUrl'>>>>;
2459
- collectionMedias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'previewUrl' | 'mimeType' | 'sizeRatio' | 'fileSize'>>>>;
2460
- medias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'mimeType' | 'sizeRatio' | 'fileSize' | 'previewUrl'>>>>;
2461
- ownersProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>;
2462
- creatorsProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>;
2463
- attributes?: Maybe<Array<Maybe<Pick<IAttribute, 'name' | 'value'>>>>;
2464
- })>>;
2465
- };
2466
- export type IFetchDynamicAssetLikesQueryVariables = Exact<{
2467
- assetId: Scalars['String'];
2468
- }>;
2469
- export type IFetchDynamicAssetLikesQuery = {
2470
- fetchDynamicAssetData: Pick<IDynamicAssetData, 'isLikedByUser' | 'likesNum'>;
2471
- };
2472
- export type IFetchDynamicAssetsLikesQueryVariables = Exact<{
2473
- assetIds: Array<Scalars['String']>;
2474
- }>;
2475
- export type IFetchDynamicAssetsLikesQuery = {
2476
- fetchDynamicAssetsData: Array<Maybe<Pick<IDynamicAssetData, 'isLikedByUser' | 'likesNum' | 'assetId'>>>;
2477
- };
2478
2453
  export type IFetchLikedQueryVariables = Exact<{
2479
2454
  assetId: Scalars['String'];
2480
2455
  }>;
@@ -3146,6 +3121,37 @@ export type IFetchAllCreationsQuery = {
3146
3121
  creations: Array<Maybe<Pick<ICreation, 'id' | 'itemType' | 'itemId' | 'blockchain' | 'rank' | 'address' | 'liked' | 'likes' | 'tokenId' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType'>>>;
3147
3122
  };
3148
3123
  };
3124
+ export type IFetchAssetByBlockchainQueryVariables = Exact<{
3125
+ blockchain: Scalars['String'];
3126
+ address?: Maybe<Scalars['String']>;
3127
+ tokenId?: Maybe<Scalars['String']>;
3128
+ elrondId?: Maybe<Scalars['String']>;
3129
+ }>;
3130
+ export type IFetchAssetByBlockchainQuery = {
3131
+ fetchAssetByBlockchain: (Pick<IAsset, 'assetId' | 'blockchain' | 'blockchainLabel' | 'address' | 'tokenId' | 'collection' | 'id' | 'chainId' | 'blockHeight' | 'blockTimestamp' | 'name' | 'description' | 'originalUrls' | 'ownersAddresses' | 'creatorsAddresses' | 'likes' | 'liked' | 'views' | 'visible' | 'createdAt' | 'blurred' | 'rank' | 'trueRank' | 'rankRaw' | 'rankMax' | 'rankUpdatedAt' | 'collectionId' | 'collectionTitle' | 'collectionOriginalUrls' | 'latestPriceBlockHeight' | 'latestPriceCurrency' | 'latestPriceAmount' | 'category' | 'categoryLabel'> & {
3132
+ medias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'previewUrl' | 'mimeType' | 'sizeRatio' | 'fileSize' | 'nsfw' | 'originalMime' | 'hidden' | 'cover'>>>>;
3133
+ ownersProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'createdAt' | 'deletedAt' | 'visible' | 'views' | 'deleted'>>>>;
3134
+ creatorsProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'createdAt' | 'deletedAt' | 'visible' | 'views' | 'deleted'>>>>;
3135
+ attributes?: Maybe<Array<Maybe<Pick<IAttribute, 'name' | 'value'>>>>;
3136
+ collectionMedias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'previewUrl' | 'mimeType' | 'sizeRatio' | 'fileSize' | 'nsfw' | 'originalMime' | 'hidden' | 'cover'>>>>;
3137
+ markets?: Maybe<Array<Maybe<Pick<IAssetMarket, 'marketId' | 'marketName' | 'marketDomain' | 'marketUrl'>>>>;
3138
+ totalVolumes?: Maybe<Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>>;
3139
+ });
3140
+ };
3141
+ export type IFetchAssetsQueryVariables = Exact<{
3142
+ assetIds: Array<Scalars['String']>;
3143
+ }>;
3144
+ export type IFetchAssetsQuery = {
3145
+ fetchAssets: Array<Maybe<(Pick<IAsset, 'latestPriceCurrency' | 'latestPriceAmount' | 'collectionId' | 'collectionOriginalUrls' | 'collectionTitle' | 'assetId' | 'blockchain' | 'address' | 'tokenId' | 'name' | 'description' | 'rank' | 'originalUrls' | 'ownersAddresses' | 'creatorsAddresses' | 'views' | 'visible' | 'blurred'> & {
3146
+ totalVolumes?: Maybe<Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>>;
3147
+ markets?: Maybe<Array<Maybe<Pick<IAssetMarket, 'marketId' | 'marketName' | 'marketDomain' | 'marketUrl'>>>>;
3148
+ collectionMedias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'previewUrl' | 'mimeType' | 'sizeRatio' | 'fileSize'>>>>;
3149
+ medias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'mimeType' | 'sizeRatio' | 'fileSize' | 'previewUrl'>>>>;
3150
+ ownersProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>;
3151
+ creatorsProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>;
3152
+ attributes?: Maybe<Array<Maybe<Pick<IAttribute, 'name' | 'value'>>>>;
3153
+ })>>;
3154
+ };
3149
3155
  export type IFetchAssetsCountQueryVariables = Exact<{
3150
3156
  [key: string]: never;
3151
3157
  }>;
@@ -3173,6 +3179,18 @@ export type IFetchCreationsByTypeQuery = {
3173
3179
  creations: Array<Maybe<Pick<ICreation, 'id' | 'itemType' | 'itemId' | 'blockchain' | 'rank' | 'liked' | 'likes' | 'address' | 'tokenId' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType'>>>;
3174
3180
  };
3175
3181
  };
3182
+ export type IFetchDynamicAssetLikesQueryVariables = Exact<{
3183
+ assetId: Scalars['String'];
3184
+ }>;
3185
+ export type IFetchDynamicAssetLikesQuery = {
3186
+ fetchDynamicAssetData: Pick<IDynamicAssetData, 'isLikedByUser' | 'likesNum'>;
3187
+ };
3188
+ export type IFetchDynamicAssetsLikesQueryVariables = Exact<{
3189
+ assetIds: Array<Scalars['String']>;
3190
+ }>;
3191
+ export type IFetchDynamicAssetsLikesQuery = {
3192
+ fetchDynamicAssetsData: Array<Maybe<Pick<IDynamicAssetData, 'isLikedByUser' | 'likesNum' | 'assetId'>>>;
3193
+ };
3176
3194
  export type IFindAllTopEntitiesByNameQueryVariables = Exact<{
3177
3195
  name: Scalars['String'];
3178
3196
  pageSize: Scalars['Int'];
@@ -3605,119 +3623,6 @@ export declare function useFetchAssetLazyQuery(baseOptions?: Apollo.LazyQueryHoo
3605
3623
  export type FetchAssetQueryHookResult = ReturnType<typeof useFetchAssetQuery>;
3606
3624
  export type FetchAssetLazyQueryHookResult = ReturnType<typeof useFetchAssetLazyQuery>;
3607
3625
  export type FetchAssetQueryResult = Apollo.QueryResult<IFetchAssetQuery, IFetchAssetQueryVariables>;
3608
- export declare const FetchAssetByBlockchainDocument: Apollo.DocumentNode;
3609
- /**
3610
- * __useFetchAssetByBlockchainQuery__
3611
- *
3612
- * To run a query within a React component, call `useFetchAssetByBlockchainQuery` and pass it any options that fit your needs.
3613
- * When your component renders, `useFetchAssetByBlockchainQuery` returns an object from Apollo Client that contains loading, error, and data properties
3614
- * you can use to render your UI.
3615
- *
3616
- * @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;
3617
- *
3618
- * @example
3619
- * const { data, loading, error } = useFetchAssetByBlockchainQuery({
3620
- * variables: {
3621
- * blockchain: // value for 'blockchain'
3622
- * address: // value for 'address'
3623
- * tokenId: // value for 'tokenId'
3624
- * elrondId: // value for 'elrondId'
3625
- * },
3626
- * });
3627
- */
3628
- export declare function useFetchAssetByBlockchainQuery(baseOptions: Apollo.QueryHookOptions<IFetchAssetByBlockchainQuery, IFetchAssetByBlockchainQueryVariables>): Apollo.QueryResult<IFetchAssetByBlockchainQuery, Exact<{
3629
- blockchain: string;
3630
- address?: Maybe<string> | undefined;
3631
- tokenId?: Maybe<string> | undefined;
3632
- elrondId?: Maybe<string> | undefined;
3633
- }>>;
3634
- export declare function useFetchAssetByBlockchainLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAssetByBlockchainQuery, IFetchAssetByBlockchainQueryVariables>): Apollo.LazyQueryResultTuple<IFetchAssetByBlockchainQuery, Exact<{
3635
- blockchain: string;
3636
- address?: Maybe<string> | undefined;
3637
- tokenId?: Maybe<string> | undefined;
3638
- elrondId?: Maybe<string> | undefined;
3639
- }>>;
3640
- export type FetchAssetByBlockchainQueryHookResult = ReturnType<typeof useFetchAssetByBlockchainQuery>;
3641
- export type FetchAssetByBlockchainLazyQueryHookResult = ReturnType<typeof useFetchAssetByBlockchainLazyQuery>;
3642
- export type FetchAssetByBlockchainQueryResult = Apollo.QueryResult<IFetchAssetByBlockchainQuery, IFetchAssetByBlockchainQueryVariables>;
3643
- export declare const FetchAssetsDocument: Apollo.DocumentNode;
3644
- /**
3645
- * __useFetchAssetsQuery__
3646
- *
3647
- * To run a query within a React component, call `useFetchAssetsQuery` and pass it any options that fit your needs.
3648
- * When your component renders, `useFetchAssetsQuery` returns an object from Apollo Client that contains loading, error, and data properties
3649
- * you can use to render your UI.
3650
- *
3651
- * @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;
3652
- *
3653
- * @example
3654
- * const { data, loading, error } = useFetchAssetsQuery({
3655
- * variables: {
3656
- * assetIds: // value for 'assetIds'
3657
- * },
3658
- * });
3659
- */
3660
- export declare function useFetchAssetsQuery(baseOptions: Apollo.QueryHookOptions<IFetchAssetsQuery, IFetchAssetsQueryVariables>): Apollo.QueryResult<IFetchAssetsQuery, Exact<{
3661
- assetIds: string[];
3662
- }>>;
3663
- export declare function useFetchAssetsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAssetsQuery, IFetchAssetsQueryVariables>): Apollo.LazyQueryResultTuple<IFetchAssetsQuery, Exact<{
3664
- assetIds: string[];
3665
- }>>;
3666
- export type FetchAssetsQueryHookResult = ReturnType<typeof useFetchAssetsQuery>;
3667
- export type FetchAssetsLazyQueryHookResult = ReturnType<typeof useFetchAssetsLazyQuery>;
3668
- export type FetchAssetsQueryResult = Apollo.QueryResult<IFetchAssetsQuery, IFetchAssetsQueryVariables>;
3669
- export declare const FetchDynamicAssetLikesDocument: Apollo.DocumentNode;
3670
- /**
3671
- * __useFetchDynamicAssetLikesQuery__
3672
- *
3673
- * To run a query within a React component, call `useFetchDynamicAssetLikesQuery` and pass it any options that fit your needs.
3674
- * When your component renders, `useFetchDynamicAssetLikesQuery` returns an object from Apollo Client that contains loading, error, and data properties
3675
- * you can use to render your UI.
3676
- *
3677
- * @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;
3678
- *
3679
- * @example
3680
- * const { data, loading, error } = useFetchDynamicAssetLikesQuery({
3681
- * variables: {
3682
- * assetId: // value for 'assetId'
3683
- * },
3684
- * });
3685
- */
3686
- export declare function useFetchDynamicAssetLikesQuery(baseOptions: Apollo.QueryHookOptions<IFetchDynamicAssetLikesQuery, IFetchDynamicAssetLikesQueryVariables>): Apollo.QueryResult<IFetchDynamicAssetLikesQuery, Exact<{
3687
- assetId: string;
3688
- }>>;
3689
- export declare function useFetchDynamicAssetLikesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchDynamicAssetLikesQuery, IFetchDynamicAssetLikesQueryVariables>): Apollo.LazyQueryResultTuple<IFetchDynamicAssetLikesQuery, Exact<{
3690
- assetId: string;
3691
- }>>;
3692
- export type FetchDynamicAssetLikesQueryHookResult = ReturnType<typeof useFetchDynamicAssetLikesQuery>;
3693
- export type FetchDynamicAssetLikesLazyQueryHookResult = ReturnType<typeof useFetchDynamicAssetLikesLazyQuery>;
3694
- export type FetchDynamicAssetLikesQueryResult = Apollo.QueryResult<IFetchDynamicAssetLikesQuery, IFetchDynamicAssetLikesQueryVariables>;
3695
- export declare const FetchDynamicAssetsLikesDocument: Apollo.DocumentNode;
3696
- /**
3697
- * __useFetchDynamicAssetsLikesQuery__
3698
- *
3699
- * To run a query within a React component, call `useFetchDynamicAssetsLikesQuery` and pass it any options that fit your needs.
3700
- * When your component renders, `useFetchDynamicAssetsLikesQuery` returns an object from Apollo Client that contains loading, error, and data properties
3701
- * you can use to render your UI.
3702
- *
3703
- * @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;
3704
- *
3705
- * @example
3706
- * const { data, loading, error } = useFetchDynamicAssetsLikesQuery({
3707
- * variables: {
3708
- * assetIds: // value for 'assetIds'
3709
- * },
3710
- * });
3711
- */
3712
- export declare function useFetchDynamicAssetsLikesQuery(baseOptions: Apollo.QueryHookOptions<IFetchDynamicAssetsLikesQuery, IFetchDynamicAssetsLikesQueryVariables>): Apollo.QueryResult<IFetchDynamicAssetsLikesQuery, Exact<{
3713
- assetIds: string[];
3714
- }>>;
3715
- export declare function useFetchDynamicAssetsLikesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchDynamicAssetsLikesQuery, IFetchDynamicAssetsLikesQueryVariables>): Apollo.LazyQueryResultTuple<IFetchDynamicAssetsLikesQuery, Exact<{
3716
- assetIds: string[];
3717
- }>>;
3718
- export type FetchDynamicAssetsLikesQueryHookResult = ReturnType<typeof useFetchDynamicAssetsLikesQuery>;
3719
- export type FetchDynamicAssetsLikesLazyQueryHookResult = ReturnType<typeof useFetchDynamicAssetsLikesLazyQuery>;
3720
- export type FetchDynamicAssetsLikesQueryResult = Apollo.QueryResult<IFetchDynamicAssetsLikesQuery, IFetchDynamicAssetsLikesQueryVariables>;
3721
3626
  export declare const FetchLikedDocument: Apollo.DocumentNode;
3722
3627
  /**
3723
3628
  * __useFetchLikedQuery__
@@ -6213,6 +6118,67 @@ export declare function useFetchAllCreationsLazyQuery(baseOptions?: Apollo.LazyQ
6213
6118
  export type FetchAllCreationsQueryHookResult = ReturnType<typeof useFetchAllCreationsQuery>;
6214
6119
  export type FetchAllCreationsLazyQueryHookResult = ReturnType<typeof useFetchAllCreationsLazyQuery>;
6215
6120
  export type FetchAllCreationsQueryResult = Apollo.QueryResult<IFetchAllCreationsQuery, IFetchAllCreationsQueryVariables>;
6121
+ export declare const FetchAssetByBlockchainDocument: Apollo.DocumentNode;
6122
+ /**
6123
+ * __useFetchAssetByBlockchainQuery__
6124
+ *
6125
+ * To run a query within a React component, call `useFetchAssetByBlockchainQuery` and pass it any options that fit your needs.
6126
+ * When your component renders, `useFetchAssetByBlockchainQuery` returns an object from Apollo Client that contains loading, error, and data properties
6127
+ * you can use to render your UI.
6128
+ *
6129
+ * @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;
6130
+ *
6131
+ * @example
6132
+ * const { data, loading, error } = useFetchAssetByBlockchainQuery({
6133
+ * variables: {
6134
+ * blockchain: // value for 'blockchain'
6135
+ * address: // value for 'address'
6136
+ * tokenId: // value for 'tokenId'
6137
+ * elrondId: // value for 'elrondId'
6138
+ * },
6139
+ * });
6140
+ */
6141
+ export declare function useFetchAssetByBlockchainQuery(baseOptions: Apollo.QueryHookOptions<IFetchAssetByBlockchainQuery, IFetchAssetByBlockchainQueryVariables>): Apollo.QueryResult<IFetchAssetByBlockchainQuery, Exact<{
6142
+ blockchain: string;
6143
+ address?: Maybe<string> | undefined;
6144
+ tokenId?: Maybe<string> | undefined;
6145
+ elrondId?: Maybe<string> | undefined;
6146
+ }>>;
6147
+ export declare function useFetchAssetByBlockchainLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAssetByBlockchainQuery, IFetchAssetByBlockchainQueryVariables>): Apollo.LazyQueryResultTuple<IFetchAssetByBlockchainQuery, Exact<{
6148
+ blockchain: string;
6149
+ address?: Maybe<string> | undefined;
6150
+ tokenId?: Maybe<string> | undefined;
6151
+ elrondId?: Maybe<string> | undefined;
6152
+ }>>;
6153
+ export type FetchAssetByBlockchainQueryHookResult = ReturnType<typeof useFetchAssetByBlockchainQuery>;
6154
+ export type FetchAssetByBlockchainLazyQueryHookResult = ReturnType<typeof useFetchAssetByBlockchainLazyQuery>;
6155
+ export type FetchAssetByBlockchainQueryResult = Apollo.QueryResult<IFetchAssetByBlockchainQuery, IFetchAssetByBlockchainQueryVariables>;
6156
+ export declare const FetchAssetsDocument: Apollo.DocumentNode;
6157
+ /**
6158
+ * __useFetchAssetsQuery__
6159
+ *
6160
+ * To run a query within a React component, call `useFetchAssetsQuery` and pass it any options that fit your needs.
6161
+ * When your component renders, `useFetchAssetsQuery` returns an object from Apollo Client that contains loading, error, and data properties
6162
+ * you can use to render your UI.
6163
+ *
6164
+ * @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;
6165
+ *
6166
+ * @example
6167
+ * const { data, loading, error } = useFetchAssetsQuery({
6168
+ * variables: {
6169
+ * assetIds: // value for 'assetIds'
6170
+ * },
6171
+ * });
6172
+ */
6173
+ export declare function useFetchAssetsQuery(baseOptions: Apollo.QueryHookOptions<IFetchAssetsQuery, IFetchAssetsQueryVariables>): Apollo.QueryResult<IFetchAssetsQuery, Exact<{
6174
+ assetIds: string[];
6175
+ }>>;
6176
+ export declare function useFetchAssetsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAssetsQuery, IFetchAssetsQueryVariables>): Apollo.LazyQueryResultTuple<IFetchAssetsQuery, Exact<{
6177
+ assetIds: string[];
6178
+ }>>;
6179
+ export type FetchAssetsQueryHookResult = ReturnType<typeof useFetchAssetsQuery>;
6180
+ export type FetchAssetsLazyQueryHookResult = ReturnType<typeof useFetchAssetsLazyQuery>;
6181
+ export type FetchAssetsQueryResult = Apollo.QueryResult<IFetchAssetsQuery, IFetchAssetsQueryVariables>;
6216
6182
  export declare const FetchAssetsCountDocument: Apollo.DocumentNode;
6217
6183
  /**
6218
6184
  * __useFetchAssetsCountQuery__
@@ -6299,6 +6265,58 @@ export declare function useFetchCreationsByTypeLazyQuery(baseOptions?: Apollo.La
6299
6265
  export type FetchCreationsByTypeQueryHookResult = ReturnType<typeof useFetchCreationsByTypeQuery>;
6300
6266
  export type FetchCreationsByTypeLazyQueryHookResult = ReturnType<typeof useFetchCreationsByTypeLazyQuery>;
6301
6267
  export type FetchCreationsByTypeQueryResult = Apollo.QueryResult<IFetchCreationsByTypeQuery, IFetchCreationsByTypeQueryVariables>;
6268
+ export declare const FetchDynamicAssetLikesDocument: Apollo.DocumentNode;
6269
+ /**
6270
+ * __useFetchDynamicAssetLikesQuery__
6271
+ *
6272
+ * To run a query within a React component, call `useFetchDynamicAssetLikesQuery` and pass it any options that fit your needs.
6273
+ * When your component renders, `useFetchDynamicAssetLikesQuery` returns an object from Apollo Client that contains loading, error, and data properties
6274
+ * you can use to render your UI.
6275
+ *
6276
+ * @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;
6277
+ *
6278
+ * @example
6279
+ * const { data, loading, error } = useFetchDynamicAssetLikesQuery({
6280
+ * variables: {
6281
+ * assetId: // value for 'assetId'
6282
+ * },
6283
+ * });
6284
+ */
6285
+ export declare function useFetchDynamicAssetLikesQuery(baseOptions: Apollo.QueryHookOptions<IFetchDynamicAssetLikesQuery, IFetchDynamicAssetLikesQueryVariables>): Apollo.QueryResult<IFetchDynamicAssetLikesQuery, Exact<{
6286
+ assetId: string;
6287
+ }>>;
6288
+ export declare function useFetchDynamicAssetLikesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchDynamicAssetLikesQuery, IFetchDynamicAssetLikesQueryVariables>): Apollo.LazyQueryResultTuple<IFetchDynamicAssetLikesQuery, Exact<{
6289
+ assetId: string;
6290
+ }>>;
6291
+ export type FetchDynamicAssetLikesQueryHookResult = ReturnType<typeof useFetchDynamicAssetLikesQuery>;
6292
+ export type FetchDynamicAssetLikesLazyQueryHookResult = ReturnType<typeof useFetchDynamicAssetLikesLazyQuery>;
6293
+ export type FetchDynamicAssetLikesQueryResult = Apollo.QueryResult<IFetchDynamicAssetLikesQuery, IFetchDynamicAssetLikesQueryVariables>;
6294
+ export declare const FetchDynamicAssetsLikesDocument: Apollo.DocumentNode;
6295
+ /**
6296
+ * __useFetchDynamicAssetsLikesQuery__
6297
+ *
6298
+ * To run a query within a React component, call `useFetchDynamicAssetsLikesQuery` and pass it any options that fit your needs.
6299
+ * When your component renders, `useFetchDynamicAssetsLikesQuery` returns an object from Apollo Client that contains loading, error, and data properties
6300
+ * you can use to render your UI.
6301
+ *
6302
+ * @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;
6303
+ *
6304
+ * @example
6305
+ * const { data, loading, error } = useFetchDynamicAssetsLikesQuery({
6306
+ * variables: {
6307
+ * assetIds: // value for 'assetIds'
6308
+ * },
6309
+ * });
6310
+ */
6311
+ export declare function useFetchDynamicAssetsLikesQuery(baseOptions: Apollo.QueryHookOptions<IFetchDynamicAssetsLikesQuery, IFetchDynamicAssetsLikesQueryVariables>): Apollo.QueryResult<IFetchDynamicAssetsLikesQuery, Exact<{
6312
+ assetIds: string[];
6313
+ }>>;
6314
+ export declare function useFetchDynamicAssetsLikesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchDynamicAssetsLikesQuery, IFetchDynamicAssetsLikesQueryVariables>): Apollo.LazyQueryResultTuple<IFetchDynamicAssetsLikesQuery, Exact<{
6315
+ assetIds: string[];
6316
+ }>>;
6317
+ export type FetchDynamicAssetsLikesQueryHookResult = ReturnType<typeof useFetchDynamicAssetsLikesQuery>;
6318
+ export type FetchDynamicAssetsLikesLazyQueryHookResult = ReturnType<typeof useFetchDynamicAssetsLikesLazyQuery>;
6319
+ export type FetchDynamicAssetsLikesQueryResult = Apollo.QueryResult<IFetchDynamicAssetsLikesQuery, IFetchDynamicAssetsLikesQueryVariables>;
6302
6320
  export declare const FindAllTopEntitiesByNameDocument: Apollo.DocumentNode;
6303
6321
  /**
6304
6322
  * __useFindAllTopEntitiesByNameQuery__