@ludo.ninja/api 2.8.28 → 2.8.30
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/config/index.js +4 -4
- package/build/graphql_tools/__generated__/adminHost/schema.d.ts +1434 -0
- package/build/graphql_tools/__generated__/adminHost/schema.js +688 -0
- package/build/graphql_tools/__generated__/assetsHost/schema.d.ts +392 -0
- package/build/graphql_tools/__generated__/assetsHost/schema.js +80 -0
- package/build/graphql_tools/__generated__/authHost/schema.d.ts +238 -0
- package/build/graphql_tools/__generated__/authHost/schema.js +85 -0
- package/build/graphql_tools/__generated__/collectionsHost/schema.d.ts +455 -0
- package/build/graphql_tools/__generated__/collectionsHost/schema.js +80 -0
- package/build/graphql_tools/__generated__/experiencesHost/schema.d.ts +356 -0
- package/build/graphql_tools/__generated__/experiencesHost/schema.js +191 -0
- package/build/graphql_tools/__generated__/extensionHost/schema.d.ts +808 -0
- package/build/graphql_tools/__generated__/extensionHost/schema.js +449 -0
- package/build/graphql_tools/__generated__/galleriesHost/schema.d.ts +794 -0
- package/build/graphql_tools/__generated__/galleriesHost/schema.js +575 -0
- package/build/graphql_tools/__generated__/identityHost/schema.d.ts +1205 -0
- package/build/graphql_tools/__generated__/identityHost/schema.js +757 -0
- package/build/graphql_tools/__generated__/mediasHost/schema.d.ts +242 -0
- package/build/graphql_tools/__generated__/mediasHost/schema.js +110 -0
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.d.ts +486 -0
- package/build/graphql_tools/__generated__/opportunitiesHost/schema.js +148 -0
- package/build/graphql_tools/__generated__/preferencesHost/schema.d.ts +604 -0
- package/build/graphql_tools/__generated__/preferencesHost/schema.js +411 -0
- package/build/graphql_tools/__generated__/schema.d.ts +1 -0
- package/build/graphql_tools/__generated__/searchHost/schema.d.ts +1304 -0
- package/build/graphql_tools/__generated__/searchHost/schema.js +1191 -0
- package/build/hosts/index.d.ts +0 -3
- package/build/hosts/index.js +1 -4
- package/build/index.d.ts +13 -2
- package/build/index.js +25 -3
- package/package.json +1 -1
- package/src/config/index.ts +50 -50
- package/src/graphql_tools/__generated__/adminHost/schema.ts +1814 -0
- package/src/graphql_tools/__generated__/assetsHost/schema.ts +482 -0
- package/src/graphql_tools/__generated__/authHost/schema.ts +317 -0
- package/src/graphql_tools/__generated__/collectionsHost/schema.ts +554 -0
- package/src/graphql_tools/__generated__/experiencesHost/schema.ts +478 -0
- package/src/graphql_tools/__generated__/extensionHost/schema.ts +1074 -0
- package/src/graphql_tools/__generated__/galleriesHost/schema.ts +1090 -0
- package/src/graphql_tools/__generated__/identityHost/schema.ts +1584 -0
- package/src/graphql_tools/__generated__/mediasHost/schema.ts +333 -0
- package/src/graphql_tools/__generated__/opportunitiesHost/schema.ts +629 -0
- package/src/graphql_tools/__generated__/preferencesHost/schema.ts +772 -0
- package/src/graphql_tools/__generated__/schema.ts +1 -0
- package/src/graphql_tools/__generated__/searchHost/schema.ts +2137 -0
- package/src/hosts/index.ts +0 -6
- package/src/index.ts +29 -2
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,2137 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql';
|
|
3
|
+
import { gql } from '@apollo/client';
|
|
4
|
+
import * as Apollo from '@apollo/client';
|
|
5
|
+
export type Maybe<T> = T | null;
|
|
6
|
+
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
|
|
7
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
|
|
8
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
|
|
9
|
+
export type RequireFields<T, K extends keyof T> = Omit<T, K> & { [P in K]-?: NonNullable<T[P]> };
|
|
10
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
11
|
+
export type Scalars = {
|
|
12
|
+
ID: string;
|
|
13
|
+
String: string;
|
|
14
|
+
Boolean: boolean;
|
|
15
|
+
Int: number;
|
|
16
|
+
Float: number;
|
|
17
|
+
/** scalar Upload */
|
|
18
|
+
Long: any;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
export type IAsset = {
|
|
24
|
+
assetId: Scalars['ID'];
|
|
25
|
+
blockchain?: Maybe<Scalars['String']>;
|
|
26
|
+
blockchainLabel?: Maybe<Scalars['String']>;
|
|
27
|
+
address?: Maybe<Scalars['String']>;
|
|
28
|
+
tokenId?: Maybe<Scalars['String']>;
|
|
29
|
+
collection?: Maybe<Scalars['String']>;
|
|
30
|
+
id?: Maybe<Scalars['String']>;
|
|
31
|
+
chainId?: Maybe<Scalars['String']>;
|
|
32
|
+
blockHeight?: Maybe<Scalars['Long']>;
|
|
33
|
+
blockTimestamp?: Maybe<Scalars['Long']>;
|
|
34
|
+
name?: Maybe<Scalars['String']>;
|
|
35
|
+
description?: Maybe<Scalars['String']>;
|
|
36
|
+
originalUrls?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
37
|
+
medias?: Maybe<Array<Maybe<IMedia>>>;
|
|
38
|
+
ownersAddresses?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
39
|
+
ownersProfiles?: Maybe<Array<Maybe<IProfile>>>;
|
|
40
|
+
creatorsAddresses?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
41
|
+
creatorsProfiles?: Maybe<Array<Maybe<IProfile>>>;
|
|
42
|
+
attributes?: Maybe<Array<Maybe<IAttribute>>>;
|
|
43
|
+
likes?: Maybe<Scalars['Int']>;
|
|
44
|
+
liked?: Maybe<Scalars['Boolean']>;
|
|
45
|
+
views?: Maybe<Scalars['Int']>;
|
|
46
|
+
visible?: Maybe<Scalars['Boolean']>;
|
|
47
|
+
createdAt?: Maybe<Scalars['Long']>;
|
|
48
|
+
blurred?: Maybe<Scalars['Boolean']>;
|
|
49
|
+
rank?: Maybe<Scalars['Float']>;
|
|
50
|
+
trueRank?: Maybe<Scalars['Float']>;
|
|
51
|
+
rankRaw?: Maybe<Scalars['Float']>;
|
|
52
|
+
rankMax?: Maybe<Scalars['Float']>;
|
|
53
|
+
rankUpdatedAt?: Maybe<Scalars['Float']>;
|
|
54
|
+
collectionId?: Maybe<Scalars['String']>;
|
|
55
|
+
collectionTitle?: Maybe<Scalars['String']>;
|
|
56
|
+
collectionOriginalUrls?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
57
|
+
collectionMedias?: Maybe<Array<Maybe<IMedia>>>;
|
|
58
|
+
markets?: Maybe<Array<Maybe<IAssetMarket>>>;
|
|
59
|
+
latestPriceBlockHeight?: Maybe<Scalars['Long']>;
|
|
60
|
+
latestPriceCurrency?: Maybe<Scalars['String']>;
|
|
61
|
+
latestPriceAmount?: Maybe<Scalars['Float']>;
|
|
62
|
+
totalVolumes?: Maybe<Array<Maybe<ICurrencyAmountPair>>>;
|
|
63
|
+
category?: Maybe<Scalars['String']>;
|
|
64
|
+
categoryLabel?: Maybe<Scalars['String']>;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
export type IAssetMarket = {
|
|
68
|
+
marketId?: Maybe<Scalars['String']>;
|
|
69
|
+
marketName?: Maybe<Scalars['String']>;
|
|
70
|
+
marketDomain?: Maybe<Scalars['String']>;
|
|
71
|
+
marketUrl?: Maybe<Scalars['String']>;
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export type IAssetRank = {
|
|
75
|
+
assetId: Scalars['String'];
|
|
76
|
+
rank?: Maybe<Scalars['Float']>;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export type IAssetsPage = {
|
|
80
|
+
assets: Array<Maybe<IAsset>>;
|
|
81
|
+
nextPage?: Maybe<IPage>;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export type IAttribute = {
|
|
85
|
+
name?: Maybe<Scalars['String']>;
|
|
86
|
+
value?: Maybe<Scalars['String']>;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
export type ICollection = {
|
|
90
|
+
collectionId: Scalars['ID'];
|
|
91
|
+
blockchain?: Maybe<Scalars['String']>;
|
|
92
|
+
identifier?: Maybe<Scalars['String']>;
|
|
93
|
+
contractAddress?: Maybe<Scalars['String']>;
|
|
94
|
+
tokenId?: Maybe<Scalars['String']>;
|
|
95
|
+
blockHeight?: Maybe<Scalars['Long']>;
|
|
96
|
+
blockTimestamp?: Maybe<Scalars['Long']>;
|
|
97
|
+
collectionTitle?: Maybe<Scalars['String']>;
|
|
98
|
+
collectionUrl?: Maybe<Scalars['String']>;
|
|
99
|
+
items?: Maybe<Scalars['Int']>;
|
|
100
|
+
owners?: Maybe<Scalars['Int']>;
|
|
101
|
+
floorPrices?: Maybe<Array<Maybe<ICurrencyAmountPair>>>;
|
|
102
|
+
totalVolumes?: Maybe<Array<Maybe<ICurrencyAmountPair>>>;
|
|
103
|
+
collectionMarkets?: Maybe<Array<Maybe<ICollectionMarket>>>;
|
|
104
|
+
creatorsAddresses?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
105
|
+
creatorsProfiles?: Maybe<Array<Maybe<IProfile>>>;
|
|
106
|
+
verified?: Maybe<Scalars['Boolean']>;
|
|
107
|
+
originalUrls?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
108
|
+
medias?: Maybe<Array<Maybe<IMedia>>>;
|
|
109
|
+
nsfw?: Maybe<Scalars['Int']>;
|
|
110
|
+
likes?: Maybe<Scalars['Int']>;
|
|
111
|
+
liked?: Maybe<Scalars['Boolean']>;
|
|
112
|
+
rank?: Maybe<Scalars['Float']>;
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
export type ICollectionFilterInput = {
|
|
116
|
+
blockchain: Scalars['String'];
|
|
117
|
+
category: Scalars['String'];
|
|
118
|
+
time: Scalars['String'];
|
|
119
|
+
status: Scalars['String'];
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export type ICollectionMarket = {
|
|
123
|
+
marketId?: Maybe<Scalars['String']>;
|
|
124
|
+
marketName?: Maybe<Scalars['String']>;
|
|
125
|
+
marketDomain?: Maybe<Scalars['String']>;
|
|
126
|
+
marketUrl?: Maybe<Scalars['String']>;
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
export type ICollectionPage = {
|
|
130
|
+
collections: Array<Maybe<ICollection>>;
|
|
131
|
+
nextPage?: Maybe<IPage>;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
export type ICreation = {
|
|
135
|
+
creationId: Scalars['String'];
|
|
136
|
+
itemType: Scalars['String'];
|
|
137
|
+
itemId: Scalars['String'];
|
|
138
|
+
blockchain: Scalars['String'];
|
|
139
|
+
address?: Maybe<Scalars['String']>;
|
|
140
|
+
tokenId?: Maybe<Scalars['String']>;
|
|
141
|
+
id?: Maybe<Scalars['String']>;
|
|
142
|
+
name?: Maybe<Scalars['String']>;
|
|
143
|
+
creatorsAddresses?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
144
|
+
originalUrls?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
145
|
+
media?: Maybe<Scalars['String']>;
|
|
146
|
+
mediaPreview?: Maybe<Scalars['String']>;
|
|
147
|
+
mimeType?: Maybe<Scalars['String']>;
|
|
148
|
+
likes?: Maybe<Scalars['Int']>;
|
|
149
|
+
liked?: Maybe<Scalars['Boolean']>;
|
|
150
|
+
rank?: Maybe<Scalars['Float']>;
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
export type ICreationFilterInput = {
|
|
154
|
+
type: Scalars['String'];
|
|
155
|
+
blockchain: Scalars['String'];
|
|
156
|
+
category: Scalars['String'];
|
|
157
|
+
time: Scalars['String'];
|
|
158
|
+
status: Scalars['String'];
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
export type ICreationsPage = {
|
|
162
|
+
creations: Array<Maybe<ICreation>>;
|
|
163
|
+
nextPage?: Maybe<IPage>;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
export type ICurrencyAmountPair = {
|
|
167
|
+
currency?: Maybe<Scalars['String']>;
|
|
168
|
+
amount?: Maybe<Scalars['Float']>;
|
|
169
|
+
};
|
|
170
|
+
|
|
171
|
+
export type IDynamicAssetData = {
|
|
172
|
+
assetId: Scalars['String'];
|
|
173
|
+
isLikedByUser?: Maybe<Scalars['Boolean']>;
|
|
174
|
+
likesNum?: Maybe<Scalars['Int']>;
|
|
175
|
+
medias?: Maybe<Array<Maybe<IMedia>>>;
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
export type IDynamicCollectionData = {
|
|
179
|
+
collectionId: Scalars['String'];
|
|
180
|
+
isLikedByUser?: Maybe<Scalars['Boolean']>;
|
|
181
|
+
likesNum?: Maybe<Scalars['Int']>;
|
|
182
|
+
collectionAssetsPage?: Maybe<IAssetsPage>;
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
export type IDynamicCollectionDataInput = {
|
|
186
|
+
collectionId: Scalars['String'];
|
|
187
|
+
page?: Maybe<IPageInput>;
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
export type IMedia = {
|
|
192
|
+
originalUrl?: Maybe<Scalars['String']>;
|
|
193
|
+
url?: Maybe<Scalars['String']>;
|
|
194
|
+
previewUrl?: Maybe<Scalars['String']>;
|
|
195
|
+
mimeType?: Maybe<Scalars['String']>;
|
|
196
|
+
sizeRatio?: Maybe<Scalars['Float']>;
|
|
197
|
+
fileSize?: Maybe<Scalars['Long']>;
|
|
198
|
+
nsfw?: Maybe<Scalars['Int']>;
|
|
199
|
+
originalMime?: Maybe<Scalars['String']>;
|
|
200
|
+
hidden?: Maybe<Scalars['Boolean']>;
|
|
201
|
+
cover?: Maybe<Scalars['Boolean']>;
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
export type IMutation = {
|
|
205
|
+
setDummy: Scalars['String'];
|
|
206
|
+
clearCaches: Scalars['Boolean'];
|
|
207
|
+
};
|
|
208
|
+
|
|
209
|
+
export type IPage = {
|
|
210
|
+
token?: Maybe<Scalars['String']>;
|
|
211
|
+
num?: Maybe<Scalars['Int']>;
|
|
212
|
+
size?: Maybe<Scalars['Int']>;
|
|
213
|
+
elements?: Maybe<Scalars['Long']>;
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
export type IPageInput = {
|
|
217
|
+
token?: Maybe<Scalars['String']>;
|
|
218
|
+
size?: Maybe<Scalars['Int']>;
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
export type IProfile = {
|
|
222
|
+
userId: Scalars['ID'];
|
|
223
|
+
username?: Maybe<Scalars['String']>;
|
|
224
|
+
about?: Maybe<Scalars['String']>;
|
|
225
|
+
userpic?: Maybe<Scalars['String']>;
|
|
226
|
+
followers?: Maybe<Scalars['Int']>;
|
|
227
|
+
followings?: Maybe<Scalars['Int']>;
|
|
228
|
+
createdAt?: Maybe<Scalars['Long']>;
|
|
229
|
+
deletedAt?: Maybe<Scalars['Long']>;
|
|
230
|
+
visible?: Maybe<Scalars['Boolean']>;
|
|
231
|
+
views?: Maybe<Scalars['Int']>;
|
|
232
|
+
deleted?: Maybe<Scalars['Boolean']>;
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
export type IProfilePage = {
|
|
236
|
+
profiles: Array<Maybe<IProfile>>;
|
|
237
|
+
nextPage?: Maybe<IPage>;
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
export type IQuery = {
|
|
241
|
+
getDummy: Scalars['String'];
|
|
242
|
+
fetchUserPortfolio: Array<Maybe<ICurrencyAmountPair>>;
|
|
243
|
+
fetchAssetByBlockchain: IAsset;
|
|
244
|
+
fetchDynamicAssetData: IDynamicAssetData;
|
|
245
|
+
fetchDynamicAssetsData: Array<Maybe<IDynamicAssetData>>;
|
|
246
|
+
fetchAssets: Array<Maybe<IAsset>>;
|
|
247
|
+
fetchAssetRank: IAssetRank;
|
|
248
|
+
fetchAssetRanks: Array<Maybe<IAssetRank>>;
|
|
249
|
+
findCollections: ICollectionPage;
|
|
250
|
+
fetchCollection: ICollection;
|
|
251
|
+
fetchCollectionsByIds: Array<ICollection>;
|
|
252
|
+
fetchDynamicCollectionData: IDynamicCollectionData;
|
|
253
|
+
fetchDynamicCollectionsData: Array<IDynamicCollectionData>;
|
|
254
|
+
findAllTopEntitiesByName: ITopEntitiesPage;
|
|
255
|
+
fetchAllCreations: ICreationsPage;
|
|
256
|
+
fetchCreationsByType: ICreationsPage;
|
|
257
|
+
findCreations: ICreationsPage;
|
|
258
|
+
findUserCreations: ICreationsPage;
|
|
259
|
+
findProfilesByName: IProfilePage;
|
|
260
|
+
};
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
export type IQueryFetchUserPortfolioArgs = {
|
|
264
|
+
ownerId: Scalars['String'];
|
|
265
|
+
};
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
export type IQueryFetchAssetByBlockchainArgs = {
|
|
269
|
+
blockchain: Scalars['String'];
|
|
270
|
+
address?: Maybe<Scalars['String']>;
|
|
271
|
+
tokenId?: Maybe<Scalars['String']>;
|
|
272
|
+
elrondId?: Maybe<Scalars['String']>;
|
|
273
|
+
};
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
export type IQueryFetchDynamicAssetDataArgs = {
|
|
277
|
+
assetId: Scalars['String'];
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
export type IQueryFetchDynamicAssetsDataArgs = {
|
|
282
|
+
assetIds: Array<Scalars['String']>;
|
|
283
|
+
};
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
export type IQueryFetchAssetsArgs = {
|
|
287
|
+
assetIds: Array<Scalars['String']>;
|
|
288
|
+
};
|
|
289
|
+
|
|
290
|
+
|
|
291
|
+
export type IQueryFetchAssetRankArgs = {
|
|
292
|
+
assetId: Scalars['String'];
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
export type IQueryFetchAssetRanksArgs = {
|
|
297
|
+
assetIds: Array<Scalars['String']>;
|
|
298
|
+
};
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
export type IQueryFindCollectionsArgs = {
|
|
302
|
+
term: Scalars['String'];
|
|
303
|
+
input: ICollectionFilterInput;
|
|
304
|
+
page?: Maybe<IPageInput>;
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
export type IQueryFetchCollectionArgs = {
|
|
309
|
+
collectionId: Scalars['String'];
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
export type IQueryFetchCollectionsByIdsArgs = {
|
|
314
|
+
collectionIds: Array<Scalars['String']>;
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
export type IQueryFetchDynamicCollectionDataArgs = {
|
|
319
|
+
input: IDynamicCollectionDataInput;
|
|
320
|
+
};
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
export type IQueryFetchDynamicCollectionsDataArgs = {
|
|
324
|
+
inputs: Array<IDynamicCollectionDataInput>;
|
|
325
|
+
};
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
export type IQueryFindAllTopEntitiesByNameArgs = {
|
|
329
|
+
name: Scalars['String'];
|
|
330
|
+
pageSize: Scalars['Int'];
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
export type IQueryFetchAllCreationsArgs = {
|
|
335
|
+
page?: Maybe<IPageInput>;
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
export type IQueryFetchCreationsByTypeArgs = {
|
|
340
|
+
itemType: Scalars['String'];
|
|
341
|
+
page?: Maybe<IPageInput>;
|
|
342
|
+
};
|
|
343
|
+
|
|
344
|
+
|
|
345
|
+
export type IQueryFindCreationsArgs = {
|
|
346
|
+
term: Scalars['String'];
|
|
347
|
+
input: ICreationFilterInput;
|
|
348
|
+
page?: Maybe<IPageInput>;
|
|
349
|
+
};
|
|
350
|
+
|
|
351
|
+
|
|
352
|
+
export type IQueryFindUserCreationsArgs = {
|
|
353
|
+
ownerId: Scalars['String'];
|
|
354
|
+
input: ICreationFilterInput;
|
|
355
|
+
page?: Maybe<IPageInput>;
|
|
356
|
+
};
|
|
357
|
+
|
|
358
|
+
|
|
359
|
+
export type IQueryFindProfilesByNameArgs = {
|
|
360
|
+
name: Scalars['String'];
|
|
361
|
+
page?: Maybe<IPageInput>;
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
export type ITopEntitiesPage = {
|
|
365
|
+
assets: Array<Maybe<IAsset>>;
|
|
366
|
+
collections: Array<Maybe<ICollection>>;
|
|
367
|
+
profiles: Array<Maybe<IProfile>>;
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
export type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
373
|
+
|
|
374
|
+
|
|
375
|
+
export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
376
|
+
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
|
377
|
+
};
|
|
378
|
+
export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
|
|
379
|
+
|
|
380
|
+
export type ResolverFn<TResult, TParent, TContext, TArgs> = (
|
|
381
|
+
parent: TParent,
|
|
382
|
+
args: TArgs,
|
|
383
|
+
context: TContext,
|
|
384
|
+
info: GraphQLResolveInfo
|
|
385
|
+
) => Promise<TResult> | TResult;
|
|
386
|
+
|
|
387
|
+
export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (
|
|
388
|
+
parent: TParent,
|
|
389
|
+
args: TArgs,
|
|
390
|
+
context: TContext,
|
|
391
|
+
info: GraphQLResolveInfo
|
|
392
|
+
) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
|
|
393
|
+
|
|
394
|
+
export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (
|
|
395
|
+
parent: TParent,
|
|
396
|
+
args: TArgs,
|
|
397
|
+
context: TContext,
|
|
398
|
+
info: GraphQLResolveInfo
|
|
399
|
+
) => TResult | Promise<TResult>;
|
|
400
|
+
|
|
401
|
+
export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
|
|
402
|
+
subscribe: SubscriptionSubscribeFn<{ [key in TKey]: TResult }, TParent, TContext, TArgs>;
|
|
403
|
+
resolve?: SubscriptionResolveFn<TResult, { [key in TKey]: TResult }, TContext, TArgs>;
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
|
|
407
|
+
subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
|
|
408
|
+
resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> =
|
|
412
|
+
| SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs>
|
|
413
|
+
| SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
|
|
414
|
+
|
|
415
|
+
export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> =
|
|
416
|
+
| ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>)
|
|
417
|
+
| SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
|
|
418
|
+
|
|
419
|
+
export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (
|
|
420
|
+
parent: TParent,
|
|
421
|
+
context: TContext,
|
|
422
|
+
info: GraphQLResolveInfo
|
|
423
|
+
) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
|
|
424
|
+
|
|
425
|
+
export type IsTypeOfResolverFn<T = {}, TContext = {}> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
|
|
426
|
+
|
|
427
|
+
export type NextResolverFn<T> = () => Promise<T>;
|
|
428
|
+
|
|
429
|
+
export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (
|
|
430
|
+
next: NextResolverFn<TResult>,
|
|
431
|
+
parent: TParent,
|
|
432
|
+
args: TArgs,
|
|
433
|
+
context: TContext,
|
|
434
|
+
info: GraphQLResolveInfo
|
|
435
|
+
) => TResult | Promise<TResult>;
|
|
436
|
+
|
|
437
|
+
/** Mapping between all available schema types and the resolvers types */
|
|
438
|
+
export type IResolversTypes = {
|
|
439
|
+
Asset: ResolverTypeWrapper<IAsset>;
|
|
440
|
+
ID: ResolverTypeWrapper<Scalars['ID']>;
|
|
441
|
+
String: ResolverTypeWrapper<Scalars['String']>;
|
|
442
|
+
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
443
|
+
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
444
|
+
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
445
|
+
AssetMarket: ResolverTypeWrapper<IAssetMarket>;
|
|
446
|
+
AssetRank: ResolverTypeWrapper<IAssetRank>;
|
|
447
|
+
AssetsPage: ResolverTypeWrapper<IAssetsPage>;
|
|
448
|
+
Attribute: ResolverTypeWrapper<IAttribute>;
|
|
449
|
+
Collection: ResolverTypeWrapper<ICollection>;
|
|
450
|
+
CollectionFilterInput: ICollectionFilterInput;
|
|
451
|
+
CollectionMarket: ResolverTypeWrapper<ICollectionMarket>;
|
|
452
|
+
CollectionPage: ResolverTypeWrapper<ICollectionPage>;
|
|
453
|
+
Creation: ResolverTypeWrapper<ICreation>;
|
|
454
|
+
CreationFilterInput: ICreationFilterInput;
|
|
455
|
+
CreationsPage: ResolverTypeWrapper<ICreationsPage>;
|
|
456
|
+
CurrencyAmountPair: ResolverTypeWrapper<ICurrencyAmountPair>;
|
|
457
|
+
DynamicAssetData: ResolverTypeWrapper<IDynamicAssetData>;
|
|
458
|
+
DynamicCollectionData: ResolverTypeWrapper<IDynamicCollectionData>;
|
|
459
|
+
DynamicCollectionDataInput: IDynamicCollectionDataInput;
|
|
460
|
+
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
461
|
+
Media: ResolverTypeWrapper<IMedia>;
|
|
462
|
+
Mutation: ResolverTypeWrapper<{}>;
|
|
463
|
+
Page: ResolverTypeWrapper<IPage>;
|
|
464
|
+
PageInput: IPageInput;
|
|
465
|
+
Profile: ResolverTypeWrapper<IProfile>;
|
|
466
|
+
ProfilePage: ResolverTypeWrapper<IProfilePage>;
|
|
467
|
+
Query: ResolverTypeWrapper<{}>;
|
|
468
|
+
TopEntitiesPage: ResolverTypeWrapper<ITopEntitiesPage>;
|
|
469
|
+
};
|
|
470
|
+
|
|
471
|
+
/** Mapping between all available schema types and the resolvers parents */
|
|
472
|
+
export type IResolversParentTypes = {
|
|
473
|
+
Asset: IAsset;
|
|
474
|
+
ID: Scalars['ID'];
|
|
475
|
+
String: Scalars['String'];
|
|
476
|
+
Int: Scalars['Int'];
|
|
477
|
+
Boolean: Scalars['Boolean'];
|
|
478
|
+
Float: Scalars['Float'];
|
|
479
|
+
AssetMarket: IAssetMarket;
|
|
480
|
+
AssetRank: IAssetRank;
|
|
481
|
+
AssetsPage: IAssetsPage;
|
|
482
|
+
Attribute: IAttribute;
|
|
483
|
+
Collection: ICollection;
|
|
484
|
+
CollectionFilterInput: ICollectionFilterInput;
|
|
485
|
+
CollectionMarket: ICollectionMarket;
|
|
486
|
+
CollectionPage: ICollectionPage;
|
|
487
|
+
Creation: ICreation;
|
|
488
|
+
CreationFilterInput: ICreationFilterInput;
|
|
489
|
+
CreationsPage: ICreationsPage;
|
|
490
|
+
CurrencyAmountPair: ICurrencyAmountPair;
|
|
491
|
+
DynamicAssetData: IDynamicAssetData;
|
|
492
|
+
DynamicCollectionData: IDynamicCollectionData;
|
|
493
|
+
DynamicCollectionDataInput: IDynamicCollectionDataInput;
|
|
494
|
+
Long: Scalars['Long'];
|
|
495
|
+
Media: IMedia;
|
|
496
|
+
Mutation: {};
|
|
497
|
+
Page: IPage;
|
|
498
|
+
PageInput: IPageInput;
|
|
499
|
+
Profile: IProfile;
|
|
500
|
+
ProfilePage: IProfilePage;
|
|
501
|
+
Query: {};
|
|
502
|
+
TopEntitiesPage: ITopEntitiesPage;
|
|
503
|
+
};
|
|
504
|
+
|
|
505
|
+
export type INotBlankDirectiveArgs = {
|
|
506
|
+
message?: Maybe<Scalars['String']>;
|
|
507
|
+
};
|
|
508
|
+
|
|
509
|
+
export type INotBlankDirectiveResolver<Result, Parent, ContextType = any, Args = INotBlankDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
510
|
+
|
|
511
|
+
export type IOneOfDirectiveArgs = { };
|
|
512
|
+
|
|
513
|
+
export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
514
|
+
|
|
515
|
+
export type IAssetResolvers<ContextType = any, ParentType extends IResolversParentTypes['Asset'] = IResolversParentTypes['Asset']> = {
|
|
516
|
+
assetId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
517
|
+
blockchain?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
518
|
+
blockchainLabel?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
519
|
+
address?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
520
|
+
tokenId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
521
|
+
collection?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
522
|
+
id?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
523
|
+
chainId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
524
|
+
blockHeight?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
525
|
+
blockTimestamp?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
526
|
+
name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
527
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
528
|
+
originalUrls?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
529
|
+
medias?: Resolver<Maybe<Array<Maybe<IResolversTypes['Media']>>>, ParentType, ContextType>;
|
|
530
|
+
ownersAddresses?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
531
|
+
ownersProfiles?: Resolver<Maybe<Array<Maybe<IResolversTypes['Profile']>>>, ParentType, ContextType>;
|
|
532
|
+
creatorsAddresses?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
533
|
+
creatorsProfiles?: Resolver<Maybe<Array<Maybe<IResolversTypes['Profile']>>>, ParentType, ContextType>;
|
|
534
|
+
attributes?: Resolver<Maybe<Array<Maybe<IResolversTypes['Attribute']>>>, ParentType, ContextType>;
|
|
535
|
+
likes?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
536
|
+
liked?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
537
|
+
views?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
538
|
+
visible?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
539
|
+
createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
540
|
+
blurred?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
541
|
+
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
542
|
+
trueRank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
543
|
+
rankRaw?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
544
|
+
rankMax?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
545
|
+
rankUpdatedAt?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
546
|
+
collectionId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
547
|
+
collectionTitle?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
548
|
+
collectionOriginalUrls?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
549
|
+
collectionMedias?: Resolver<Maybe<Array<Maybe<IResolversTypes['Media']>>>, ParentType, ContextType>;
|
|
550
|
+
markets?: Resolver<Maybe<Array<Maybe<IResolversTypes['AssetMarket']>>>, ParentType, ContextType>;
|
|
551
|
+
latestPriceBlockHeight?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
552
|
+
latestPriceCurrency?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
553
|
+
latestPriceAmount?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
554
|
+
totalVolumes?: Resolver<Maybe<Array<Maybe<IResolversTypes['CurrencyAmountPair']>>>, ParentType, ContextType>;
|
|
555
|
+
category?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
556
|
+
categoryLabel?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
557
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
558
|
+
};
|
|
559
|
+
|
|
560
|
+
export type IAssetMarketResolvers<ContextType = any, ParentType extends IResolversParentTypes['AssetMarket'] = IResolversParentTypes['AssetMarket']> = {
|
|
561
|
+
marketId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
562
|
+
marketName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
563
|
+
marketDomain?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
564
|
+
marketUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
565
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
566
|
+
};
|
|
567
|
+
|
|
568
|
+
export type IAssetRankResolvers<ContextType = any, ParentType extends IResolversParentTypes['AssetRank'] = IResolversParentTypes['AssetRank']> = {
|
|
569
|
+
assetId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
570
|
+
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
571
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
572
|
+
};
|
|
573
|
+
|
|
574
|
+
export type IAssetsPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['AssetsPage'] = IResolversParentTypes['AssetsPage']> = {
|
|
575
|
+
assets?: Resolver<Array<Maybe<IResolversTypes['Asset']>>, ParentType, ContextType>;
|
|
576
|
+
nextPage?: Resolver<Maybe<IResolversTypes['Page']>, ParentType, ContextType>;
|
|
577
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
578
|
+
};
|
|
579
|
+
|
|
580
|
+
export type IAttributeResolvers<ContextType = any, ParentType extends IResolversParentTypes['Attribute'] = IResolversParentTypes['Attribute']> = {
|
|
581
|
+
name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
582
|
+
value?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
583
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
export type ICollectionResolvers<ContextType = any, ParentType extends IResolversParentTypes['Collection'] = IResolversParentTypes['Collection']> = {
|
|
587
|
+
collectionId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
588
|
+
blockchain?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
589
|
+
identifier?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
590
|
+
contractAddress?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
591
|
+
tokenId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
592
|
+
blockHeight?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
593
|
+
blockTimestamp?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
594
|
+
collectionTitle?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
595
|
+
collectionUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
596
|
+
items?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
597
|
+
owners?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
598
|
+
floorPrices?: Resolver<Maybe<Array<Maybe<IResolversTypes['CurrencyAmountPair']>>>, ParentType, ContextType>;
|
|
599
|
+
totalVolumes?: Resolver<Maybe<Array<Maybe<IResolversTypes['CurrencyAmountPair']>>>, ParentType, ContextType>;
|
|
600
|
+
collectionMarkets?: Resolver<Maybe<Array<Maybe<IResolversTypes['CollectionMarket']>>>, ParentType, ContextType>;
|
|
601
|
+
creatorsAddresses?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
602
|
+
creatorsProfiles?: Resolver<Maybe<Array<Maybe<IResolversTypes['Profile']>>>, ParentType, ContextType>;
|
|
603
|
+
verified?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
604
|
+
originalUrls?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
605
|
+
medias?: Resolver<Maybe<Array<Maybe<IResolversTypes['Media']>>>, ParentType, ContextType>;
|
|
606
|
+
nsfw?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
607
|
+
likes?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
608
|
+
liked?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
609
|
+
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
610
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
611
|
+
};
|
|
612
|
+
|
|
613
|
+
export type ICollectionMarketResolvers<ContextType = any, ParentType extends IResolversParentTypes['CollectionMarket'] = IResolversParentTypes['CollectionMarket']> = {
|
|
614
|
+
marketId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
615
|
+
marketName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
616
|
+
marketDomain?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
617
|
+
marketUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
618
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
619
|
+
};
|
|
620
|
+
|
|
621
|
+
export type ICollectionPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['CollectionPage'] = IResolversParentTypes['CollectionPage']> = {
|
|
622
|
+
collections?: Resolver<Array<Maybe<IResolversTypes['Collection']>>, ParentType, ContextType>;
|
|
623
|
+
nextPage?: Resolver<Maybe<IResolversTypes['Page']>, ParentType, ContextType>;
|
|
624
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
export type ICreationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Creation'] = IResolversParentTypes['Creation']> = {
|
|
628
|
+
creationId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
629
|
+
itemType?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
630
|
+
itemId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
631
|
+
blockchain?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
632
|
+
address?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
633
|
+
tokenId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
634
|
+
id?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
635
|
+
name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
636
|
+
creatorsAddresses?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
637
|
+
originalUrls?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
638
|
+
media?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
639
|
+
mediaPreview?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
640
|
+
mimeType?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
641
|
+
likes?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
642
|
+
liked?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
643
|
+
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
644
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
645
|
+
};
|
|
646
|
+
|
|
647
|
+
export type ICreationsPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['CreationsPage'] = IResolversParentTypes['CreationsPage']> = {
|
|
648
|
+
creations?: Resolver<Array<Maybe<IResolversTypes['Creation']>>, ParentType, ContextType>;
|
|
649
|
+
nextPage?: Resolver<Maybe<IResolversTypes['Page']>, ParentType, ContextType>;
|
|
650
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
651
|
+
};
|
|
652
|
+
|
|
653
|
+
export type ICurrencyAmountPairResolvers<ContextType = any, ParentType extends IResolversParentTypes['CurrencyAmountPair'] = IResolversParentTypes['CurrencyAmountPair']> = {
|
|
654
|
+
currency?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
655
|
+
amount?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
656
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
657
|
+
};
|
|
658
|
+
|
|
659
|
+
export type IDynamicAssetDataResolvers<ContextType = any, ParentType extends IResolversParentTypes['DynamicAssetData'] = IResolversParentTypes['DynamicAssetData']> = {
|
|
660
|
+
assetId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
661
|
+
isLikedByUser?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
662
|
+
likesNum?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
663
|
+
medias?: Resolver<Maybe<Array<Maybe<IResolversTypes['Media']>>>, ParentType, ContextType>;
|
|
664
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
665
|
+
};
|
|
666
|
+
|
|
667
|
+
export type IDynamicCollectionDataResolvers<ContextType = any, ParentType extends IResolversParentTypes['DynamicCollectionData'] = IResolversParentTypes['DynamicCollectionData']> = {
|
|
668
|
+
collectionId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
669
|
+
isLikedByUser?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
670
|
+
likesNum?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
671
|
+
collectionAssetsPage?: Resolver<Maybe<IResolversTypes['AssetsPage']>, ParentType, ContextType>;
|
|
672
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
673
|
+
};
|
|
674
|
+
|
|
675
|
+
export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
|
|
676
|
+
name: 'Long';
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
export type IMediaResolvers<ContextType = any, ParentType extends IResolversParentTypes['Media'] = IResolversParentTypes['Media']> = {
|
|
680
|
+
originalUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
681
|
+
url?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
682
|
+
previewUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
683
|
+
mimeType?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
684
|
+
sizeRatio?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
685
|
+
fileSize?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
686
|
+
nsfw?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
687
|
+
originalMime?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
688
|
+
hidden?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
689
|
+
cover?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
690
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
691
|
+
};
|
|
692
|
+
|
|
693
|
+
export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
|
|
694
|
+
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
695
|
+
clearCaches?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
|
|
696
|
+
};
|
|
697
|
+
|
|
698
|
+
export type IPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['Page'] = IResolversParentTypes['Page']> = {
|
|
699
|
+
token?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
700
|
+
num?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
701
|
+
size?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
702
|
+
elements?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
703
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
704
|
+
};
|
|
705
|
+
|
|
706
|
+
export type IProfileResolvers<ContextType = any, ParentType extends IResolversParentTypes['Profile'] = IResolversParentTypes['Profile']> = {
|
|
707
|
+
userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
708
|
+
username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
709
|
+
about?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
710
|
+
userpic?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
711
|
+
followers?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
712
|
+
followings?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
713
|
+
createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
714
|
+
deletedAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
715
|
+
visible?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
716
|
+
views?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
717
|
+
deleted?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
718
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
719
|
+
};
|
|
720
|
+
|
|
721
|
+
export type IProfilePageResolvers<ContextType = any, ParentType extends IResolversParentTypes['ProfilePage'] = IResolversParentTypes['ProfilePage']> = {
|
|
722
|
+
profiles?: Resolver<Array<Maybe<IResolversTypes['Profile']>>, ParentType, ContextType>;
|
|
723
|
+
nextPage?: Resolver<Maybe<IResolversTypes['Page']>, ParentType, ContextType>;
|
|
724
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
725
|
+
};
|
|
726
|
+
|
|
727
|
+
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
728
|
+
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
729
|
+
fetchUserPortfolio?: Resolver<Array<Maybe<IResolversTypes['CurrencyAmountPair']>>, ParentType, ContextType, RequireFields<IQueryFetchUserPortfolioArgs, 'ownerId'>>;
|
|
730
|
+
fetchAssetByBlockchain?: Resolver<IResolversTypes['Asset'], ParentType, ContextType, RequireFields<IQueryFetchAssetByBlockchainArgs, 'blockchain'>>;
|
|
731
|
+
fetchDynamicAssetData?: Resolver<IResolversTypes['DynamicAssetData'], ParentType, ContextType, RequireFields<IQueryFetchDynamicAssetDataArgs, 'assetId'>>;
|
|
732
|
+
fetchDynamicAssetsData?: Resolver<Array<Maybe<IResolversTypes['DynamicAssetData']>>, ParentType, ContextType, RequireFields<IQueryFetchDynamicAssetsDataArgs, 'assetIds'>>;
|
|
733
|
+
fetchAssets?: Resolver<Array<Maybe<IResolversTypes['Asset']>>, ParentType, ContextType, RequireFields<IQueryFetchAssetsArgs, 'assetIds'>>;
|
|
734
|
+
fetchAssetRank?: Resolver<IResolversTypes['AssetRank'], ParentType, ContextType, RequireFields<IQueryFetchAssetRankArgs, 'assetId'>>;
|
|
735
|
+
fetchAssetRanks?: Resolver<Array<Maybe<IResolversTypes['AssetRank']>>, ParentType, ContextType, RequireFields<IQueryFetchAssetRanksArgs, 'assetIds'>>;
|
|
736
|
+
findCollections?: Resolver<IResolversTypes['CollectionPage'], ParentType, ContextType, RequireFields<IQueryFindCollectionsArgs, 'term' | 'input'>>;
|
|
737
|
+
fetchCollection?: Resolver<IResolversTypes['Collection'], ParentType, ContextType, RequireFields<IQueryFetchCollectionArgs, 'collectionId'>>;
|
|
738
|
+
fetchCollectionsByIds?: Resolver<Array<IResolversTypes['Collection']>, ParentType, ContextType, RequireFields<IQueryFetchCollectionsByIdsArgs, 'collectionIds'>>;
|
|
739
|
+
fetchDynamicCollectionData?: Resolver<IResolversTypes['DynamicCollectionData'], ParentType, ContextType, RequireFields<IQueryFetchDynamicCollectionDataArgs, 'input'>>;
|
|
740
|
+
fetchDynamicCollectionsData?: Resolver<Array<IResolversTypes['DynamicCollectionData']>, ParentType, ContextType, RequireFields<IQueryFetchDynamicCollectionsDataArgs, 'inputs'>>;
|
|
741
|
+
findAllTopEntitiesByName?: Resolver<IResolversTypes['TopEntitiesPage'], ParentType, ContextType, RequireFields<IQueryFindAllTopEntitiesByNameArgs, 'name' | 'pageSize'>>;
|
|
742
|
+
fetchAllCreations?: Resolver<IResolversTypes['CreationsPage'], ParentType, ContextType, Partial<IQueryFetchAllCreationsArgs>>;
|
|
743
|
+
fetchCreationsByType?: Resolver<IResolversTypes['CreationsPage'], ParentType, ContextType, RequireFields<IQueryFetchCreationsByTypeArgs, 'itemType'>>;
|
|
744
|
+
findCreations?: Resolver<IResolversTypes['CreationsPage'], ParentType, ContextType, RequireFields<IQueryFindCreationsArgs, 'term' | 'input'>>;
|
|
745
|
+
findUserCreations?: Resolver<IResolversTypes['CreationsPage'], ParentType, ContextType, RequireFields<IQueryFindUserCreationsArgs, 'ownerId' | 'input'>>;
|
|
746
|
+
findProfilesByName?: Resolver<IResolversTypes['ProfilePage'], ParentType, ContextType, RequireFields<IQueryFindProfilesByNameArgs, 'name'>>;
|
|
747
|
+
};
|
|
748
|
+
|
|
749
|
+
export type ITopEntitiesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['TopEntitiesPage'] = IResolversParentTypes['TopEntitiesPage']> = {
|
|
750
|
+
assets?: Resolver<Array<Maybe<IResolversTypes['Asset']>>, ParentType, ContextType>;
|
|
751
|
+
collections?: Resolver<Array<Maybe<IResolversTypes['Collection']>>, ParentType, ContextType>;
|
|
752
|
+
profiles?: Resolver<Array<Maybe<IResolversTypes['Profile']>>, ParentType, ContextType>;
|
|
753
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
754
|
+
};
|
|
755
|
+
|
|
756
|
+
export type IResolvers<ContextType = any> = {
|
|
757
|
+
Asset?: IAssetResolvers<ContextType>;
|
|
758
|
+
AssetMarket?: IAssetMarketResolvers<ContextType>;
|
|
759
|
+
AssetRank?: IAssetRankResolvers<ContextType>;
|
|
760
|
+
AssetsPage?: IAssetsPageResolvers<ContextType>;
|
|
761
|
+
Attribute?: IAttributeResolvers<ContextType>;
|
|
762
|
+
Collection?: ICollectionResolvers<ContextType>;
|
|
763
|
+
CollectionMarket?: ICollectionMarketResolvers<ContextType>;
|
|
764
|
+
CollectionPage?: ICollectionPageResolvers<ContextType>;
|
|
765
|
+
Creation?: ICreationResolvers<ContextType>;
|
|
766
|
+
CreationsPage?: ICreationsPageResolvers<ContextType>;
|
|
767
|
+
CurrencyAmountPair?: ICurrencyAmountPairResolvers<ContextType>;
|
|
768
|
+
DynamicAssetData?: IDynamicAssetDataResolvers<ContextType>;
|
|
769
|
+
DynamicCollectionData?: IDynamicCollectionDataResolvers<ContextType>;
|
|
770
|
+
Long?: GraphQLScalarType;
|
|
771
|
+
Media?: IMediaResolvers<ContextType>;
|
|
772
|
+
Mutation?: IMutationResolvers<ContextType>;
|
|
773
|
+
Page?: IPageResolvers<ContextType>;
|
|
774
|
+
Profile?: IProfileResolvers<ContextType>;
|
|
775
|
+
ProfilePage?: IProfilePageResolvers<ContextType>;
|
|
776
|
+
Query?: IQueryResolvers<ContextType>;
|
|
777
|
+
TopEntitiesPage?: ITopEntitiesPageResolvers<ContextType>;
|
|
778
|
+
};
|
|
779
|
+
|
|
780
|
+
export type IDirectiveResolvers<ContextType = any> = {
|
|
781
|
+
NotBlank?: INotBlankDirectiveResolver<any, any, ContextType>;
|
|
782
|
+
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
783
|
+
};
|
|
784
|
+
|
|
785
|
+
export type IFetchAllCreationsQueryVariables = Exact<{
|
|
786
|
+
page?: Maybe<IPageInput>;
|
|
787
|
+
}>;
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
export type IFetchAllCreationsQuery = { fetchAllCreations: { nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>, creations: Array<Maybe<Pick<ICreation, 'id' | 'itemType' | 'itemId' | 'blockchain' | 'rank' | 'address' | 'liked' | 'likes' | 'tokenId' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType'>>> } };
|
|
791
|
+
|
|
792
|
+
export type IFetchAssetByBlockchainQueryVariables = Exact<{
|
|
793
|
+
blockchain: Scalars['String'];
|
|
794
|
+
address?: Maybe<Scalars['String']>;
|
|
795
|
+
tokenId?: Maybe<Scalars['String']>;
|
|
796
|
+
elrondId?: Maybe<Scalars['String']>;
|
|
797
|
+
}>;
|
|
798
|
+
|
|
799
|
+
|
|
800
|
+
export type IFetchAssetByBlockchainQuery = { fetchAssetByBlockchain: (
|
|
801
|
+
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'>
|
|
802
|
+
& { medias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'previewUrl' | 'mimeType' | 'sizeRatio' | 'fileSize' | 'nsfw' | 'originalMime' | 'hidden' | 'cover'>>>>, ownersProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'createdAt' | 'deletedAt' | 'visible' | 'views' | 'deleted'>>>>, creatorsProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'createdAt' | 'deletedAt' | 'visible' | 'views' | 'deleted'>>>>, attributes?: Maybe<Array<Maybe<Pick<IAttribute, 'name' | 'value'>>>>, collectionMedias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'previewUrl' | 'mimeType' | 'sizeRatio' | 'fileSize' | 'nsfw' | 'originalMime' | 'hidden' | 'cover'>>>>, markets?: Maybe<Array<Maybe<Pick<IAssetMarket, 'marketId' | 'marketName' | 'marketDomain' | 'marketUrl'>>>>, totalVolumes?: Maybe<Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>> }
|
|
803
|
+
) };
|
|
804
|
+
|
|
805
|
+
export type IFetchAssetsQueryVariables = Exact<{
|
|
806
|
+
assetIds: Array<Scalars['String']>;
|
|
807
|
+
}>;
|
|
808
|
+
|
|
809
|
+
|
|
810
|
+
export type IFetchAssetsQuery = { fetchAssets: Array<Maybe<(
|
|
811
|
+
Pick<IAsset, 'latestPriceCurrency' | 'latestPriceAmount' | 'collectionId' | 'collectionOriginalUrls' | 'collectionTitle' | 'assetId' | 'blockchain' | 'address' | 'tokenId' | 'name' | 'description' | 'rank' | 'originalUrls' | 'ownersAddresses' | 'creatorsAddresses' | 'views' | 'visible' | 'blurred'>
|
|
812
|
+
& { totalVolumes?: Maybe<Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>>, markets?: Maybe<Array<Maybe<Pick<IAssetMarket, 'marketId' | 'marketName' | 'marketDomain' | 'marketUrl'>>>>, collectionMedias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'previewUrl' | 'mimeType' | 'sizeRatio' | 'fileSize'>>>>, medias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'mimeType' | 'sizeRatio' | 'fileSize' | 'previewUrl'>>>>, ownersProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>, creatorsProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>, attributes?: Maybe<Array<Maybe<Pick<IAttribute, 'name' | 'value'>>>> }
|
|
813
|
+
)>> };
|
|
814
|
+
|
|
815
|
+
export type IFetchCollectionQueryVariables = Exact<{
|
|
816
|
+
collectionId: Scalars['String'];
|
|
817
|
+
}>;
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
export type IFetchCollectionQuery = { fetchCollection: (
|
|
821
|
+
Pick<ICollection, 'collectionId' | 'blockchain' | 'identifier' | 'contractAddress' | 'tokenId' | 'blockHeight' | 'blockTimestamp' | 'collectionTitle' | 'collectionUrl' | 'items' | 'owners' | 'likes' | 'liked' | 'creatorsAddresses' | 'verified' | 'originalUrls' | 'rank' | 'nsfw'>
|
|
822
|
+
& { totalVolumes?: Maybe<Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>>, collectionMarkets?: Maybe<Array<Maybe<Pick<ICollectionMarket, 'marketId' | 'marketName' | 'marketDomain' | 'marketUrl'>>>>, creatorsProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'username' | 'userpic'>>>>, medias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'mimeType' | 'sizeRatio' | 'fileSize'>>>>, floorPrices?: Maybe<Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>> }
|
|
823
|
+
) };
|
|
824
|
+
|
|
825
|
+
export type IFindCollectionsQueryVariables = Exact<{
|
|
826
|
+
term: Scalars['String'];
|
|
827
|
+
input: ICollectionFilterInput;
|
|
828
|
+
page?: Maybe<IPageInput>;
|
|
829
|
+
}>;
|
|
830
|
+
|
|
831
|
+
|
|
832
|
+
export type IFindCollectionsQuery = { findCollections: { collections: Array<Maybe<(
|
|
833
|
+
Pick<ICollection, 'collectionId' | 'collectionTitle' | 'blockchain' | 'tokenId' | 'likes' | 'liked' | 'rank'>
|
|
834
|
+
& { medias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'previewUrl' | 'mimeType' | 'sizeRatio' | 'fileSize'>>>> }
|
|
835
|
+
)>>, nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>> } };
|
|
836
|
+
|
|
837
|
+
export type IFetchCollectionsByIdsQueryVariables = Exact<{
|
|
838
|
+
collectionIds: Array<Scalars['String']>;
|
|
839
|
+
}>;
|
|
840
|
+
|
|
841
|
+
|
|
842
|
+
export type IFetchCollectionsByIdsQuery = { fetchCollectionsByIds: Array<(
|
|
843
|
+
Pick<ICollection, 'collectionId' | 'blockchain' | 'identifier' | 'contractAddress' | 'tokenId' | 'blockHeight' | 'blockTimestamp' | 'collectionTitle' | 'collectionUrl' | 'items' | 'owners' | 'likes' | 'liked' | 'creatorsAddresses' | 'verified' | 'originalUrls' | 'rank' | 'nsfw'>
|
|
844
|
+
& { totalVolumes?: Maybe<Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>>, collectionMarkets?: Maybe<Array<Maybe<Pick<ICollectionMarket, 'marketId' | 'marketName' | 'marketDomain' | 'marketUrl'>>>>, creatorsProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'username' | 'userpic'>>>>, medias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'mimeType' | 'sizeRatio' | 'fileSize'>>>>, floorPrices?: Maybe<Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>> }
|
|
845
|
+
)> };
|
|
846
|
+
|
|
847
|
+
export type IFetchCreationsByTypeQueryVariables = Exact<{
|
|
848
|
+
itemType: Scalars['String'];
|
|
849
|
+
page?: Maybe<IPageInput>;
|
|
850
|
+
}>;
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
export type IFetchCreationsByTypeQuery = { fetchCreationsByType: { nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>, creations: Array<Maybe<Pick<ICreation, 'id' | 'itemType' | 'itemId' | 'blockchain' | 'rank' | 'liked' | 'likes' | 'address' | 'tokenId' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType'>>> } };
|
|
854
|
+
|
|
855
|
+
export type IFetchDynamicAssetLikesQueryVariables = Exact<{
|
|
856
|
+
assetId: Scalars['String'];
|
|
857
|
+
}>;
|
|
858
|
+
|
|
859
|
+
|
|
860
|
+
export type IFetchDynamicAssetLikesQuery = { fetchDynamicAssetData: Pick<IDynamicAssetData, 'isLikedByUser' | 'likesNum'> };
|
|
861
|
+
|
|
862
|
+
export type IFetchDynamicAssetsLikesQueryVariables = Exact<{
|
|
863
|
+
assetIds: Array<Scalars['String']>;
|
|
864
|
+
}>;
|
|
865
|
+
|
|
866
|
+
|
|
867
|
+
export type IFetchDynamicAssetsLikesQuery = { fetchDynamicAssetsData: Array<Maybe<Pick<IDynamicAssetData, 'isLikedByUser' | 'likesNum' | 'assetId'>>> };
|
|
868
|
+
|
|
869
|
+
export type IFetchDynamicCollectionDataQueryVariables = Exact<{
|
|
870
|
+
input: IDynamicCollectionDataInput;
|
|
871
|
+
}>;
|
|
872
|
+
|
|
873
|
+
|
|
874
|
+
export type IFetchDynamicCollectionDataQuery = { fetchDynamicCollectionData: (
|
|
875
|
+
Pick<IDynamicCollectionData, 'isLikedByUser' | 'likesNum' | 'collectionId'>
|
|
876
|
+
& { collectionAssetsPage?: Maybe<{ nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>, assets: Array<Maybe<(
|
|
877
|
+
Pick<IAsset, 'latestPriceCurrency' | 'latestPriceAmount' | 'collectionId' | 'collectionOriginalUrls' | 'collectionTitle' | 'assetId' | 'blockchain' | 'address' | 'tokenId' | 'name' | 'description' | 'rank' | 'originalUrls' | 'ownersAddresses' | 'creatorsAddresses' | 'views' | 'visible' | 'blurred'>
|
|
878
|
+
& { totalVolumes?: Maybe<Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>>, markets?: Maybe<Array<Maybe<Pick<IAssetMarket, 'marketId' | 'marketName' | 'marketDomain' | 'marketUrl'>>>>, collectionMedias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'previewUrl' | 'mimeType' | 'sizeRatio' | 'fileSize'>>>>, medias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'mimeType' | 'sizeRatio' | 'fileSize' | 'previewUrl'>>>>, ownersProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>, creatorsProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>, attributes?: Maybe<Array<Maybe<Pick<IAttribute, 'name' | 'value'>>>> }
|
|
879
|
+
)>> }> }
|
|
880
|
+
) };
|
|
881
|
+
|
|
882
|
+
export type IFetchDynamicCollectionsDataQueryVariables = Exact<{
|
|
883
|
+
input: Array<IDynamicCollectionDataInput>;
|
|
884
|
+
}>;
|
|
885
|
+
|
|
886
|
+
|
|
887
|
+
export type IFetchDynamicCollectionsDataQuery = { fetchDynamicCollectionsData: Array<(
|
|
888
|
+
Pick<IDynamicCollectionData, 'isLikedByUser' | 'likesNum' | 'collectionId'>
|
|
889
|
+
& { collectionAssetsPage?: Maybe<{ nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>, assets: Array<Maybe<(
|
|
890
|
+
Pick<IAsset, 'latestPriceCurrency' | 'latestPriceAmount' | 'collectionId' | 'collectionOriginalUrls' | 'collectionTitle' | 'assetId' | 'blockchain' | 'address' | 'tokenId' | 'name' | 'description' | 'rank' | 'originalUrls' | 'ownersAddresses' | 'creatorsAddresses' | 'views' | 'visible' | 'blurred'>
|
|
891
|
+
& { totalVolumes?: Maybe<Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>>, markets?: Maybe<Array<Maybe<Pick<IAssetMarket, 'marketId' | 'marketName' | 'marketDomain' | 'marketUrl'>>>>, collectionMedias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'previewUrl' | 'mimeType' | 'sizeRatio' | 'fileSize'>>>>, medias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'mimeType' | 'sizeRatio' | 'fileSize' | 'previewUrl'>>>>, ownersProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>, creatorsProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>>>, attributes?: Maybe<Array<Maybe<Pick<IAttribute, 'name' | 'value'>>>> }
|
|
892
|
+
)>> }> }
|
|
893
|
+
)> };
|
|
894
|
+
|
|
895
|
+
export type IFindAllTopEntitiesByNameQueryVariables = Exact<{
|
|
896
|
+
name: Scalars['String'];
|
|
897
|
+
pageSize: Scalars['Int'];
|
|
898
|
+
}>;
|
|
899
|
+
|
|
900
|
+
|
|
901
|
+
export type IFindAllTopEntitiesByNameQuery = { findAllTopEntitiesByName: { assets: Array<Maybe<(
|
|
902
|
+
Pick<IAsset, 'assetId' | 'address' | 'tokenId' | 'blockchain' | 'chainId' | 'blockHeight' | 'blockTimestamp' | 'name' | 'description' | 'originalUrls' | 'ownersAddresses' | 'creatorsAddresses' | 'likes' | 'views' | 'visible' | 'blurred' | 'rank' | 'rankRaw' | 'rankMax' | 'rankUpdatedAt'>
|
|
903
|
+
& { medias?: Maybe<Array<Maybe<Pick<IMedia, 'originalUrl' | 'url' | 'previewUrl' | 'mimeType' | 'sizeRatio' | 'fileSize' | 'nsfw'>>>>, ownersProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'createdAt' | 'deletedAt' | 'visible' | 'views' | 'deleted'>>>>, creatorsProfiles?: Maybe<Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'createdAt' | 'deletedAt' | 'visible' | 'views' | 'deleted'>>>>, attributes?: Maybe<Array<Maybe<Pick<IAttribute, 'name' | 'value'>>>> }
|
|
904
|
+
)>>, collections: Array<Maybe<(
|
|
905
|
+
Pick<ICollection, 'collectionId' | 'blockchain' | 'identifier' | 'contractAddress' | 'tokenId' | 'collectionTitle' | 'likes' | 'liked' | 'verified' | 'rank'>
|
|
906
|
+
& { totalVolumes?: Maybe<Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>>, floorPrices?: Maybe<Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>>> }
|
|
907
|
+
)>>, profiles: Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'createdAt' | 'deletedAt' | 'visible' | 'views' | 'deleted'>>> } };
|
|
908
|
+
|
|
909
|
+
export type IFetchUserPortfolioQueryVariables = Exact<{
|
|
910
|
+
ownerId: Scalars['String'];
|
|
911
|
+
}>;
|
|
912
|
+
|
|
913
|
+
|
|
914
|
+
export type IFetchUserPortfolioQuery = { fetchUserPortfolio: Array<Maybe<Pick<ICurrencyAmountPair, 'currency' | 'amount'>>> };
|
|
915
|
+
|
|
916
|
+
export type IFindCreationsQueryVariables = Exact<{
|
|
917
|
+
term: Scalars['String'];
|
|
918
|
+
input: ICreationFilterInput;
|
|
919
|
+
page?: Maybe<IPageInput>;
|
|
920
|
+
}>;
|
|
921
|
+
|
|
922
|
+
|
|
923
|
+
export type IFindCreationsQuery = { findCreations: { nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>, creations: Array<Maybe<Pick<ICreation, 'id' | 'itemType' | 'address' | 'tokenId' | 'itemId' | 'blockchain' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType' | 'rank' | 'likes' | 'liked'>>> } };
|
|
924
|
+
|
|
925
|
+
export type IFindProfilesByNameQueryVariables = Exact<{
|
|
926
|
+
name: Scalars['String'];
|
|
927
|
+
page?: Maybe<IPageInput>;
|
|
928
|
+
}>;
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
export type IFindProfilesByNameQuery = { findProfilesByName: { nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>, profiles: Array<Maybe<Pick<IProfile, 'userId' | 'username' | 'about' | 'userpic' | 'followers' | 'followings' | 'visible'>>> } };
|
|
932
|
+
|
|
933
|
+
export type IFindUserCreationsQueryVariables = Exact<{
|
|
934
|
+
ownerId: Scalars['String'];
|
|
935
|
+
input: ICreationFilterInput;
|
|
936
|
+
page?: Maybe<IPageInput>;
|
|
937
|
+
}>;
|
|
938
|
+
|
|
939
|
+
|
|
940
|
+
export type IFindUserCreationsQuery = { findUserCreations: { nextPage?: Maybe<Pick<IPage, 'token' | 'num' | 'size' | 'elements'>>, creations: Array<Maybe<Pick<ICreation, 'id' | 'itemType' | 'tokenId' | 'address' | 'itemId' | 'blockchain' | 'rank' | 'name' | 'creatorsAddresses' | 'originalUrls' | 'media' | 'mediaPreview' | 'mimeType' | 'likes'>>> } };
|
|
941
|
+
|
|
942
|
+
|
|
943
|
+
export const FetchAllCreationsDocument = gql`
|
|
944
|
+
query FetchAllCreations($page: PageInput) {
|
|
945
|
+
fetchAllCreations(page: $page) {
|
|
946
|
+
nextPage {
|
|
947
|
+
token
|
|
948
|
+
num
|
|
949
|
+
size
|
|
950
|
+
elements
|
|
951
|
+
}
|
|
952
|
+
creations {
|
|
953
|
+
id
|
|
954
|
+
itemType
|
|
955
|
+
itemId
|
|
956
|
+
blockchain
|
|
957
|
+
rank
|
|
958
|
+
address
|
|
959
|
+
liked
|
|
960
|
+
likes
|
|
961
|
+
tokenId
|
|
962
|
+
name
|
|
963
|
+
creatorsAddresses
|
|
964
|
+
originalUrls
|
|
965
|
+
media
|
|
966
|
+
mediaPreview
|
|
967
|
+
mimeType
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
`;
|
|
972
|
+
|
|
973
|
+
/**
|
|
974
|
+
* __useFetchAllCreationsQuery__
|
|
975
|
+
*
|
|
976
|
+
* To run a query within a React component, call `useFetchAllCreationsQuery` and pass it any options that fit your needs.
|
|
977
|
+
* When your component renders, `useFetchAllCreationsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
978
|
+
* you can use to render your UI.
|
|
979
|
+
*
|
|
980
|
+
* @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;
|
|
981
|
+
*
|
|
982
|
+
* @example
|
|
983
|
+
* const { data, loading, error } = useFetchAllCreationsQuery({
|
|
984
|
+
* variables: {
|
|
985
|
+
* page: // value for 'page'
|
|
986
|
+
* },
|
|
987
|
+
* });
|
|
988
|
+
*/
|
|
989
|
+
export function useFetchAllCreationsQuery(baseOptions?: Apollo.QueryHookOptions<IFetchAllCreationsQuery, IFetchAllCreationsQueryVariables>) {
|
|
990
|
+
return Apollo.useQuery<IFetchAllCreationsQuery, IFetchAllCreationsQueryVariables>(FetchAllCreationsDocument, baseOptions);
|
|
991
|
+
}
|
|
992
|
+
export function useFetchAllCreationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAllCreationsQuery, IFetchAllCreationsQueryVariables>) {
|
|
993
|
+
return Apollo.useLazyQuery<IFetchAllCreationsQuery, IFetchAllCreationsQueryVariables>(FetchAllCreationsDocument, baseOptions);
|
|
994
|
+
}
|
|
995
|
+
export type FetchAllCreationsQueryHookResult = ReturnType<typeof useFetchAllCreationsQuery>;
|
|
996
|
+
export type FetchAllCreationsLazyQueryHookResult = ReturnType<typeof useFetchAllCreationsLazyQuery>;
|
|
997
|
+
export type FetchAllCreationsQueryResult = Apollo.QueryResult<IFetchAllCreationsQuery, IFetchAllCreationsQueryVariables>;
|
|
998
|
+
export const FetchAssetByBlockchainDocument = gql`
|
|
999
|
+
query FetchAssetByBlockchain($blockchain: String!, $address: String, $tokenId: String, $elrondId: String) {
|
|
1000
|
+
fetchAssetByBlockchain(
|
|
1001
|
+
blockchain: $blockchain
|
|
1002
|
+
address: $address
|
|
1003
|
+
tokenId: $tokenId
|
|
1004
|
+
elrondId: $elrondId
|
|
1005
|
+
) {
|
|
1006
|
+
assetId
|
|
1007
|
+
blockchain
|
|
1008
|
+
blockchainLabel
|
|
1009
|
+
address
|
|
1010
|
+
tokenId
|
|
1011
|
+
collection
|
|
1012
|
+
id
|
|
1013
|
+
chainId
|
|
1014
|
+
blockHeight
|
|
1015
|
+
blockTimestamp
|
|
1016
|
+
name
|
|
1017
|
+
description
|
|
1018
|
+
originalUrls
|
|
1019
|
+
medias {
|
|
1020
|
+
originalUrl
|
|
1021
|
+
url
|
|
1022
|
+
previewUrl
|
|
1023
|
+
mimeType
|
|
1024
|
+
sizeRatio
|
|
1025
|
+
fileSize
|
|
1026
|
+
nsfw
|
|
1027
|
+
originalMime
|
|
1028
|
+
hidden
|
|
1029
|
+
cover
|
|
1030
|
+
}
|
|
1031
|
+
ownersAddresses
|
|
1032
|
+
ownersProfiles {
|
|
1033
|
+
userId
|
|
1034
|
+
username
|
|
1035
|
+
about
|
|
1036
|
+
userpic
|
|
1037
|
+
followers
|
|
1038
|
+
followings
|
|
1039
|
+
createdAt
|
|
1040
|
+
deletedAt
|
|
1041
|
+
visible
|
|
1042
|
+
views
|
|
1043
|
+
deleted
|
|
1044
|
+
}
|
|
1045
|
+
creatorsAddresses
|
|
1046
|
+
creatorsProfiles {
|
|
1047
|
+
userId
|
|
1048
|
+
username
|
|
1049
|
+
about
|
|
1050
|
+
userpic
|
|
1051
|
+
followers
|
|
1052
|
+
followings
|
|
1053
|
+
createdAt
|
|
1054
|
+
deletedAt
|
|
1055
|
+
visible
|
|
1056
|
+
views
|
|
1057
|
+
deleted
|
|
1058
|
+
}
|
|
1059
|
+
attributes {
|
|
1060
|
+
name
|
|
1061
|
+
value
|
|
1062
|
+
}
|
|
1063
|
+
likes
|
|
1064
|
+
liked
|
|
1065
|
+
views
|
|
1066
|
+
visible
|
|
1067
|
+
createdAt
|
|
1068
|
+
blurred
|
|
1069
|
+
rank
|
|
1070
|
+
trueRank
|
|
1071
|
+
rankRaw
|
|
1072
|
+
rankMax
|
|
1073
|
+
rankUpdatedAt
|
|
1074
|
+
collectionId
|
|
1075
|
+
collectionTitle
|
|
1076
|
+
collectionOriginalUrls
|
|
1077
|
+
collectionMedias {
|
|
1078
|
+
originalUrl
|
|
1079
|
+
url
|
|
1080
|
+
previewUrl
|
|
1081
|
+
mimeType
|
|
1082
|
+
sizeRatio
|
|
1083
|
+
fileSize
|
|
1084
|
+
nsfw
|
|
1085
|
+
originalMime
|
|
1086
|
+
hidden
|
|
1087
|
+
cover
|
|
1088
|
+
}
|
|
1089
|
+
markets {
|
|
1090
|
+
marketId
|
|
1091
|
+
marketName
|
|
1092
|
+
marketDomain
|
|
1093
|
+
marketUrl
|
|
1094
|
+
}
|
|
1095
|
+
latestPriceBlockHeight
|
|
1096
|
+
latestPriceCurrency
|
|
1097
|
+
latestPriceAmount
|
|
1098
|
+
totalVolumes {
|
|
1099
|
+
currency
|
|
1100
|
+
amount
|
|
1101
|
+
}
|
|
1102
|
+
category
|
|
1103
|
+
categoryLabel
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
`;
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* __useFetchAssetByBlockchainQuery__
|
|
1110
|
+
*
|
|
1111
|
+
* To run a query within a React component, call `useFetchAssetByBlockchainQuery` and pass it any options that fit your needs.
|
|
1112
|
+
* When your component renders, `useFetchAssetByBlockchainQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1113
|
+
* you can use to render your UI.
|
|
1114
|
+
*
|
|
1115
|
+
* @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;
|
|
1116
|
+
*
|
|
1117
|
+
* @example
|
|
1118
|
+
* const { data, loading, error } = useFetchAssetByBlockchainQuery({
|
|
1119
|
+
* variables: {
|
|
1120
|
+
* blockchain: // value for 'blockchain'
|
|
1121
|
+
* address: // value for 'address'
|
|
1122
|
+
* tokenId: // value for 'tokenId'
|
|
1123
|
+
* elrondId: // value for 'elrondId'
|
|
1124
|
+
* },
|
|
1125
|
+
* });
|
|
1126
|
+
*/
|
|
1127
|
+
export function useFetchAssetByBlockchainQuery(baseOptions: Apollo.QueryHookOptions<IFetchAssetByBlockchainQuery, IFetchAssetByBlockchainQueryVariables>) {
|
|
1128
|
+
return Apollo.useQuery<IFetchAssetByBlockchainQuery, IFetchAssetByBlockchainQueryVariables>(FetchAssetByBlockchainDocument, baseOptions);
|
|
1129
|
+
}
|
|
1130
|
+
export function useFetchAssetByBlockchainLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAssetByBlockchainQuery, IFetchAssetByBlockchainQueryVariables>) {
|
|
1131
|
+
return Apollo.useLazyQuery<IFetchAssetByBlockchainQuery, IFetchAssetByBlockchainQueryVariables>(FetchAssetByBlockchainDocument, baseOptions);
|
|
1132
|
+
}
|
|
1133
|
+
export type FetchAssetByBlockchainQueryHookResult = ReturnType<typeof useFetchAssetByBlockchainQuery>;
|
|
1134
|
+
export type FetchAssetByBlockchainLazyQueryHookResult = ReturnType<typeof useFetchAssetByBlockchainLazyQuery>;
|
|
1135
|
+
export type FetchAssetByBlockchainQueryResult = Apollo.QueryResult<IFetchAssetByBlockchainQuery, IFetchAssetByBlockchainQueryVariables>;
|
|
1136
|
+
export const FetchAssetsDocument = gql`
|
|
1137
|
+
query FetchAssets($assetIds: [String!]!) {
|
|
1138
|
+
fetchAssets(assetIds: $assetIds) {
|
|
1139
|
+
latestPriceCurrency
|
|
1140
|
+
latestPriceAmount
|
|
1141
|
+
collectionId
|
|
1142
|
+
collectionOriginalUrls
|
|
1143
|
+
collectionTitle
|
|
1144
|
+
assetId
|
|
1145
|
+
totalVolumes {
|
|
1146
|
+
currency
|
|
1147
|
+
amount
|
|
1148
|
+
}
|
|
1149
|
+
blockchain
|
|
1150
|
+
address
|
|
1151
|
+
tokenId
|
|
1152
|
+
name
|
|
1153
|
+
description
|
|
1154
|
+
rank
|
|
1155
|
+
markets {
|
|
1156
|
+
marketId
|
|
1157
|
+
marketName
|
|
1158
|
+
marketDomain
|
|
1159
|
+
marketUrl
|
|
1160
|
+
}
|
|
1161
|
+
collectionMedias {
|
|
1162
|
+
originalUrl
|
|
1163
|
+
url
|
|
1164
|
+
previewUrl
|
|
1165
|
+
mimeType
|
|
1166
|
+
sizeRatio
|
|
1167
|
+
fileSize
|
|
1168
|
+
}
|
|
1169
|
+
originalUrls
|
|
1170
|
+
medias {
|
|
1171
|
+
originalUrl
|
|
1172
|
+
url
|
|
1173
|
+
mimeType
|
|
1174
|
+
sizeRatio
|
|
1175
|
+
fileSize
|
|
1176
|
+
previewUrl
|
|
1177
|
+
}
|
|
1178
|
+
ownersAddresses
|
|
1179
|
+
ownersProfiles {
|
|
1180
|
+
userId
|
|
1181
|
+
username
|
|
1182
|
+
about
|
|
1183
|
+
userpic
|
|
1184
|
+
followers
|
|
1185
|
+
followings
|
|
1186
|
+
visible
|
|
1187
|
+
}
|
|
1188
|
+
creatorsAddresses
|
|
1189
|
+
creatorsProfiles {
|
|
1190
|
+
userId
|
|
1191
|
+
username
|
|
1192
|
+
about
|
|
1193
|
+
userpic
|
|
1194
|
+
followers
|
|
1195
|
+
followings
|
|
1196
|
+
visible
|
|
1197
|
+
}
|
|
1198
|
+
attributes {
|
|
1199
|
+
name
|
|
1200
|
+
value
|
|
1201
|
+
}
|
|
1202
|
+
views
|
|
1203
|
+
visible
|
|
1204
|
+
blurred
|
|
1205
|
+
medias {
|
|
1206
|
+
originalUrl
|
|
1207
|
+
url
|
|
1208
|
+
previewUrl
|
|
1209
|
+
mimeType
|
|
1210
|
+
}
|
|
1211
|
+
creatorsProfiles {
|
|
1212
|
+
username
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
}
|
|
1216
|
+
`;
|
|
1217
|
+
|
|
1218
|
+
/**
|
|
1219
|
+
* __useFetchAssetsQuery__
|
|
1220
|
+
*
|
|
1221
|
+
* To run a query within a React component, call `useFetchAssetsQuery` and pass it any options that fit your needs.
|
|
1222
|
+
* When your component renders, `useFetchAssetsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1223
|
+
* you can use to render your UI.
|
|
1224
|
+
*
|
|
1225
|
+
* @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;
|
|
1226
|
+
*
|
|
1227
|
+
* @example
|
|
1228
|
+
* const { data, loading, error } = useFetchAssetsQuery({
|
|
1229
|
+
* variables: {
|
|
1230
|
+
* assetIds: // value for 'assetIds'
|
|
1231
|
+
* },
|
|
1232
|
+
* });
|
|
1233
|
+
*/
|
|
1234
|
+
export function useFetchAssetsQuery(baseOptions: Apollo.QueryHookOptions<IFetchAssetsQuery, IFetchAssetsQueryVariables>) {
|
|
1235
|
+
return Apollo.useQuery<IFetchAssetsQuery, IFetchAssetsQueryVariables>(FetchAssetsDocument, baseOptions);
|
|
1236
|
+
}
|
|
1237
|
+
export function useFetchAssetsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAssetsQuery, IFetchAssetsQueryVariables>) {
|
|
1238
|
+
return Apollo.useLazyQuery<IFetchAssetsQuery, IFetchAssetsQueryVariables>(FetchAssetsDocument, baseOptions);
|
|
1239
|
+
}
|
|
1240
|
+
export type FetchAssetsQueryHookResult = ReturnType<typeof useFetchAssetsQuery>;
|
|
1241
|
+
export type FetchAssetsLazyQueryHookResult = ReturnType<typeof useFetchAssetsLazyQuery>;
|
|
1242
|
+
export type FetchAssetsQueryResult = Apollo.QueryResult<IFetchAssetsQuery, IFetchAssetsQueryVariables>;
|
|
1243
|
+
export const FetchCollectionDocument = gql`
|
|
1244
|
+
query fetchCollection($collectionId: String!) {
|
|
1245
|
+
fetchCollection(collectionId: $collectionId) {
|
|
1246
|
+
collectionId
|
|
1247
|
+
blockchain
|
|
1248
|
+
identifier
|
|
1249
|
+
contractAddress
|
|
1250
|
+
tokenId
|
|
1251
|
+
blockHeight
|
|
1252
|
+
blockTimestamp
|
|
1253
|
+
collectionTitle
|
|
1254
|
+
collectionUrl
|
|
1255
|
+
items
|
|
1256
|
+
owners
|
|
1257
|
+
totalVolumes {
|
|
1258
|
+
currency
|
|
1259
|
+
amount
|
|
1260
|
+
}
|
|
1261
|
+
likes
|
|
1262
|
+
liked
|
|
1263
|
+
collectionMarkets {
|
|
1264
|
+
marketId
|
|
1265
|
+
marketName
|
|
1266
|
+
marketDomain
|
|
1267
|
+
marketUrl
|
|
1268
|
+
}
|
|
1269
|
+
creatorsAddresses
|
|
1270
|
+
creatorsProfiles {
|
|
1271
|
+
username
|
|
1272
|
+
userpic
|
|
1273
|
+
}
|
|
1274
|
+
verified
|
|
1275
|
+
originalUrls
|
|
1276
|
+
rank
|
|
1277
|
+
nsfw
|
|
1278
|
+
medias {
|
|
1279
|
+
originalUrl
|
|
1280
|
+
url
|
|
1281
|
+
mimeType
|
|
1282
|
+
sizeRatio
|
|
1283
|
+
fileSize
|
|
1284
|
+
}
|
|
1285
|
+
floorPrices {
|
|
1286
|
+
currency
|
|
1287
|
+
amount
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
`;
|
|
1292
|
+
|
|
1293
|
+
/**
|
|
1294
|
+
* __useFetchCollectionQuery__
|
|
1295
|
+
*
|
|
1296
|
+
* To run a query within a React component, call `useFetchCollectionQuery` and pass it any options that fit your needs.
|
|
1297
|
+
* When your component renders, `useFetchCollectionQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1298
|
+
* you can use to render your UI.
|
|
1299
|
+
*
|
|
1300
|
+
* @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;
|
|
1301
|
+
*
|
|
1302
|
+
* @example
|
|
1303
|
+
* const { data, loading, error } = useFetchCollectionQuery({
|
|
1304
|
+
* variables: {
|
|
1305
|
+
* collectionId: // value for 'collectionId'
|
|
1306
|
+
* },
|
|
1307
|
+
* });
|
|
1308
|
+
*/
|
|
1309
|
+
export function useFetchCollectionQuery(baseOptions: Apollo.QueryHookOptions<IFetchCollectionQuery, IFetchCollectionQueryVariables>) {
|
|
1310
|
+
return Apollo.useQuery<IFetchCollectionQuery, IFetchCollectionQueryVariables>(FetchCollectionDocument, baseOptions);
|
|
1311
|
+
}
|
|
1312
|
+
export function useFetchCollectionLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchCollectionQuery, IFetchCollectionQueryVariables>) {
|
|
1313
|
+
return Apollo.useLazyQuery<IFetchCollectionQuery, IFetchCollectionQueryVariables>(FetchCollectionDocument, baseOptions);
|
|
1314
|
+
}
|
|
1315
|
+
export type FetchCollectionQueryHookResult = ReturnType<typeof useFetchCollectionQuery>;
|
|
1316
|
+
export type FetchCollectionLazyQueryHookResult = ReturnType<typeof useFetchCollectionLazyQuery>;
|
|
1317
|
+
export type FetchCollectionQueryResult = Apollo.QueryResult<IFetchCollectionQuery, IFetchCollectionQueryVariables>;
|
|
1318
|
+
export const FindCollectionsDocument = gql`
|
|
1319
|
+
query FindCollections($term: String!, $input: CollectionFilterInput!, $page: PageInput) {
|
|
1320
|
+
findCollections(term: $term, input: $input, page: $page) {
|
|
1321
|
+
collections {
|
|
1322
|
+
collectionId
|
|
1323
|
+
collectionTitle
|
|
1324
|
+
blockchain
|
|
1325
|
+
tokenId
|
|
1326
|
+
likes
|
|
1327
|
+
liked
|
|
1328
|
+
medias {
|
|
1329
|
+
originalUrl
|
|
1330
|
+
url
|
|
1331
|
+
previewUrl
|
|
1332
|
+
mimeType
|
|
1333
|
+
sizeRatio
|
|
1334
|
+
fileSize
|
|
1335
|
+
}
|
|
1336
|
+
rank
|
|
1337
|
+
}
|
|
1338
|
+
nextPage {
|
|
1339
|
+
token
|
|
1340
|
+
num
|
|
1341
|
+
size
|
|
1342
|
+
elements
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
`;
|
|
1347
|
+
|
|
1348
|
+
/**
|
|
1349
|
+
* __useFindCollectionsQuery__
|
|
1350
|
+
*
|
|
1351
|
+
* To run a query within a React component, call `useFindCollectionsQuery` and pass it any options that fit your needs.
|
|
1352
|
+
* When your component renders, `useFindCollectionsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1353
|
+
* you can use to render your UI.
|
|
1354
|
+
*
|
|
1355
|
+
* @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;
|
|
1356
|
+
*
|
|
1357
|
+
* @example
|
|
1358
|
+
* const { data, loading, error } = useFindCollectionsQuery({
|
|
1359
|
+
* variables: {
|
|
1360
|
+
* term: // value for 'term'
|
|
1361
|
+
* input: // value for 'input'
|
|
1362
|
+
* page: // value for 'page'
|
|
1363
|
+
* },
|
|
1364
|
+
* });
|
|
1365
|
+
*/
|
|
1366
|
+
export function useFindCollectionsQuery(baseOptions: Apollo.QueryHookOptions<IFindCollectionsQuery, IFindCollectionsQueryVariables>) {
|
|
1367
|
+
return Apollo.useQuery<IFindCollectionsQuery, IFindCollectionsQueryVariables>(FindCollectionsDocument, baseOptions);
|
|
1368
|
+
}
|
|
1369
|
+
export function useFindCollectionsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFindCollectionsQuery, IFindCollectionsQueryVariables>) {
|
|
1370
|
+
return Apollo.useLazyQuery<IFindCollectionsQuery, IFindCollectionsQueryVariables>(FindCollectionsDocument, baseOptions);
|
|
1371
|
+
}
|
|
1372
|
+
export type FindCollectionsQueryHookResult = ReturnType<typeof useFindCollectionsQuery>;
|
|
1373
|
+
export type FindCollectionsLazyQueryHookResult = ReturnType<typeof useFindCollectionsLazyQuery>;
|
|
1374
|
+
export type FindCollectionsQueryResult = Apollo.QueryResult<IFindCollectionsQuery, IFindCollectionsQueryVariables>;
|
|
1375
|
+
export const FetchCollectionsByIdsDocument = gql`
|
|
1376
|
+
query FetchCollectionsByIds($collectionIds: [String!]!) {
|
|
1377
|
+
fetchCollectionsByIds(collectionIds: $collectionIds) {
|
|
1378
|
+
collectionId
|
|
1379
|
+
blockchain
|
|
1380
|
+
identifier
|
|
1381
|
+
contractAddress
|
|
1382
|
+
tokenId
|
|
1383
|
+
blockHeight
|
|
1384
|
+
blockTimestamp
|
|
1385
|
+
collectionTitle
|
|
1386
|
+
collectionUrl
|
|
1387
|
+
items
|
|
1388
|
+
owners
|
|
1389
|
+
totalVolumes {
|
|
1390
|
+
currency
|
|
1391
|
+
amount
|
|
1392
|
+
}
|
|
1393
|
+
likes
|
|
1394
|
+
liked
|
|
1395
|
+
collectionMarkets {
|
|
1396
|
+
marketId
|
|
1397
|
+
marketName
|
|
1398
|
+
marketDomain
|
|
1399
|
+
marketUrl
|
|
1400
|
+
}
|
|
1401
|
+
creatorsAddresses
|
|
1402
|
+
creatorsProfiles {
|
|
1403
|
+
username
|
|
1404
|
+
userpic
|
|
1405
|
+
}
|
|
1406
|
+
verified
|
|
1407
|
+
originalUrls
|
|
1408
|
+
rank
|
|
1409
|
+
nsfw
|
|
1410
|
+
medias {
|
|
1411
|
+
originalUrl
|
|
1412
|
+
url
|
|
1413
|
+
mimeType
|
|
1414
|
+
sizeRatio
|
|
1415
|
+
fileSize
|
|
1416
|
+
}
|
|
1417
|
+
floorPrices {
|
|
1418
|
+
currency
|
|
1419
|
+
amount
|
|
1420
|
+
}
|
|
1421
|
+
}
|
|
1422
|
+
}
|
|
1423
|
+
`;
|
|
1424
|
+
|
|
1425
|
+
/**
|
|
1426
|
+
* __useFetchCollectionsByIdsQuery__
|
|
1427
|
+
*
|
|
1428
|
+
* To run a query within a React component, call `useFetchCollectionsByIdsQuery` and pass it any options that fit your needs.
|
|
1429
|
+
* When your component renders, `useFetchCollectionsByIdsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1430
|
+
* you can use to render your UI.
|
|
1431
|
+
*
|
|
1432
|
+
* @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;
|
|
1433
|
+
*
|
|
1434
|
+
* @example
|
|
1435
|
+
* const { data, loading, error } = useFetchCollectionsByIdsQuery({
|
|
1436
|
+
* variables: {
|
|
1437
|
+
* collectionIds: // value for 'collectionIds'
|
|
1438
|
+
* },
|
|
1439
|
+
* });
|
|
1440
|
+
*/
|
|
1441
|
+
export function useFetchCollectionsByIdsQuery(baseOptions: Apollo.QueryHookOptions<IFetchCollectionsByIdsQuery, IFetchCollectionsByIdsQueryVariables>) {
|
|
1442
|
+
return Apollo.useQuery<IFetchCollectionsByIdsQuery, IFetchCollectionsByIdsQueryVariables>(FetchCollectionsByIdsDocument, baseOptions);
|
|
1443
|
+
}
|
|
1444
|
+
export function useFetchCollectionsByIdsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchCollectionsByIdsQuery, IFetchCollectionsByIdsQueryVariables>) {
|
|
1445
|
+
return Apollo.useLazyQuery<IFetchCollectionsByIdsQuery, IFetchCollectionsByIdsQueryVariables>(FetchCollectionsByIdsDocument, baseOptions);
|
|
1446
|
+
}
|
|
1447
|
+
export type FetchCollectionsByIdsQueryHookResult = ReturnType<typeof useFetchCollectionsByIdsQuery>;
|
|
1448
|
+
export type FetchCollectionsByIdsLazyQueryHookResult = ReturnType<typeof useFetchCollectionsByIdsLazyQuery>;
|
|
1449
|
+
export type FetchCollectionsByIdsQueryResult = Apollo.QueryResult<IFetchCollectionsByIdsQuery, IFetchCollectionsByIdsQueryVariables>;
|
|
1450
|
+
export const FetchCreationsByTypeDocument = gql`
|
|
1451
|
+
query FetchCreationsByType($itemType: String!, $page: PageInput) {
|
|
1452
|
+
fetchCreationsByType(itemType: $itemType, page: $page) {
|
|
1453
|
+
nextPage {
|
|
1454
|
+
token
|
|
1455
|
+
num
|
|
1456
|
+
size
|
|
1457
|
+
elements
|
|
1458
|
+
}
|
|
1459
|
+
creations {
|
|
1460
|
+
id
|
|
1461
|
+
itemType
|
|
1462
|
+
itemId
|
|
1463
|
+
blockchain
|
|
1464
|
+
rank
|
|
1465
|
+
liked
|
|
1466
|
+
likes
|
|
1467
|
+
address
|
|
1468
|
+
tokenId
|
|
1469
|
+
name
|
|
1470
|
+
creatorsAddresses
|
|
1471
|
+
originalUrls
|
|
1472
|
+
media
|
|
1473
|
+
mediaPreview
|
|
1474
|
+
mimeType
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
`;
|
|
1479
|
+
|
|
1480
|
+
/**
|
|
1481
|
+
* __useFetchCreationsByTypeQuery__
|
|
1482
|
+
*
|
|
1483
|
+
* To run a query within a React component, call `useFetchCreationsByTypeQuery` and pass it any options that fit your needs.
|
|
1484
|
+
* When your component renders, `useFetchCreationsByTypeQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1485
|
+
* you can use to render your UI.
|
|
1486
|
+
*
|
|
1487
|
+
* @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;
|
|
1488
|
+
*
|
|
1489
|
+
* @example
|
|
1490
|
+
* const { data, loading, error } = useFetchCreationsByTypeQuery({
|
|
1491
|
+
* variables: {
|
|
1492
|
+
* itemType: // value for 'itemType'
|
|
1493
|
+
* page: // value for 'page'
|
|
1494
|
+
* },
|
|
1495
|
+
* });
|
|
1496
|
+
*/
|
|
1497
|
+
export function useFetchCreationsByTypeQuery(baseOptions: Apollo.QueryHookOptions<IFetchCreationsByTypeQuery, IFetchCreationsByTypeQueryVariables>) {
|
|
1498
|
+
return Apollo.useQuery<IFetchCreationsByTypeQuery, IFetchCreationsByTypeQueryVariables>(FetchCreationsByTypeDocument, baseOptions);
|
|
1499
|
+
}
|
|
1500
|
+
export function useFetchCreationsByTypeLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchCreationsByTypeQuery, IFetchCreationsByTypeQueryVariables>) {
|
|
1501
|
+
return Apollo.useLazyQuery<IFetchCreationsByTypeQuery, IFetchCreationsByTypeQueryVariables>(FetchCreationsByTypeDocument, baseOptions);
|
|
1502
|
+
}
|
|
1503
|
+
export type FetchCreationsByTypeQueryHookResult = ReturnType<typeof useFetchCreationsByTypeQuery>;
|
|
1504
|
+
export type FetchCreationsByTypeLazyQueryHookResult = ReturnType<typeof useFetchCreationsByTypeLazyQuery>;
|
|
1505
|
+
export type FetchCreationsByTypeQueryResult = Apollo.QueryResult<IFetchCreationsByTypeQuery, IFetchCreationsByTypeQueryVariables>;
|
|
1506
|
+
export const FetchDynamicAssetLikesDocument = gql`
|
|
1507
|
+
query FetchDynamicAssetLikes($assetId: String!) {
|
|
1508
|
+
fetchDynamicAssetData(assetId: $assetId) {
|
|
1509
|
+
isLikedByUser
|
|
1510
|
+
likesNum
|
|
1511
|
+
}
|
|
1512
|
+
}
|
|
1513
|
+
`;
|
|
1514
|
+
|
|
1515
|
+
/**
|
|
1516
|
+
* __useFetchDynamicAssetLikesQuery__
|
|
1517
|
+
*
|
|
1518
|
+
* To run a query within a React component, call `useFetchDynamicAssetLikesQuery` and pass it any options that fit your needs.
|
|
1519
|
+
* When your component renders, `useFetchDynamicAssetLikesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1520
|
+
* you can use to render your UI.
|
|
1521
|
+
*
|
|
1522
|
+
* @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;
|
|
1523
|
+
*
|
|
1524
|
+
* @example
|
|
1525
|
+
* const { data, loading, error } = useFetchDynamicAssetLikesQuery({
|
|
1526
|
+
* variables: {
|
|
1527
|
+
* assetId: // value for 'assetId'
|
|
1528
|
+
* },
|
|
1529
|
+
* });
|
|
1530
|
+
*/
|
|
1531
|
+
export function useFetchDynamicAssetLikesQuery(baseOptions: Apollo.QueryHookOptions<IFetchDynamicAssetLikesQuery, IFetchDynamicAssetLikesQueryVariables>) {
|
|
1532
|
+
return Apollo.useQuery<IFetchDynamicAssetLikesQuery, IFetchDynamicAssetLikesQueryVariables>(FetchDynamicAssetLikesDocument, baseOptions);
|
|
1533
|
+
}
|
|
1534
|
+
export function useFetchDynamicAssetLikesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchDynamicAssetLikesQuery, IFetchDynamicAssetLikesQueryVariables>) {
|
|
1535
|
+
return Apollo.useLazyQuery<IFetchDynamicAssetLikesQuery, IFetchDynamicAssetLikesQueryVariables>(FetchDynamicAssetLikesDocument, baseOptions);
|
|
1536
|
+
}
|
|
1537
|
+
export type FetchDynamicAssetLikesQueryHookResult = ReturnType<typeof useFetchDynamicAssetLikesQuery>;
|
|
1538
|
+
export type FetchDynamicAssetLikesLazyQueryHookResult = ReturnType<typeof useFetchDynamicAssetLikesLazyQuery>;
|
|
1539
|
+
export type FetchDynamicAssetLikesQueryResult = Apollo.QueryResult<IFetchDynamicAssetLikesQuery, IFetchDynamicAssetLikesQueryVariables>;
|
|
1540
|
+
export const FetchDynamicAssetsLikesDocument = gql`
|
|
1541
|
+
query FetchDynamicAssetsLikes($assetIds: [String!]!) {
|
|
1542
|
+
fetchDynamicAssetsData(assetIds: $assetIds) {
|
|
1543
|
+
isLikedByUser
|
|
1544
|
+
likesNum
|
|
1545
|
+
assetId
|
|
1546
|
+
}
|
|
1547
|
+
}
|
|
1548
|
+
`;
|
|
1549
|
+
|
|
1550
|
+
/**
|
|
1551
|
+
* __useFetchDynamicAssetsLikesQuery__
|
|
1552
|
+
*
|
|
1553
|
+
* To run a query within a React component, call `useFetchDynamicAssetsLikesQuery` and pass it any options that fit your needs.
|
|
1554
|
+
* When your component renders, `useFetchDynamicAssetsLikesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1555
|
+
* you can use to render your UI.
|
|
1556
|
+
*
|
|
1557
|
+
* @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;
|
|
1558
|
+
*
|
|
1559
|
+
* @example
|
|
1560
|
+
* const { data, loading, error } = useFetchDynamicAssetsLikesQuery({
|
|
1561
|
+
* variables: {
|
|
1562
|
+
* assetIds: // value for 'assetIds'
|
|
1563
|
+
* },
|
|
1564
|
+
* });
|
|
1565
|
+
*/
|
|
1566
|
+
export function useFetchDynamicAssetsLikesQuery(baseOptions: Apollo.QueryHookOptions<IFetchDynamicAssetsLikesQuery, IFetchDynamicAssetsLikesQueryVariables>) {
|
|
1567
|
+
return Apollo.useQuery<IFetchDynamicAssetsLikesQuery, IFetchDynamicAssetsLikesQueryVariables>(FetchDynamicAssetsLikesDocument, baseOptions);
|
|
1568
|
+
}
|
|
1569
|
+
export function useFetchDynamicAssetsLikesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchDynamicAssetsLikesQuery, IFetchDynamicAssetsLikesQueryVariables>) {
|
|
1570
|
+
return Apollo.useLazyQuery<IFetchDynamicAssetsLikesQuery, IFetchDynamicAssetsLikesQueryVariables>(FetchDynamicAssetsLikesDocument, baseOptions);
|
|
1571
|
+
}
|
|
1572
|
+
export type FetchDynamicAssetsLikesQueryHookResult = ReturnType<typeof useFetchDynamicAssetsLikesQuery>;
|
|
1573
|
+
export type FetchDynamicAssetsLikesLazyQueryHookResult = ReturnType<typeof useFetchDynamicAssetsLikesLazyQuery>;
|
|
1574
|
+
export type FetchDynamicAssetsLikesQueryResult = Apollo.QueryResult<IFetchDynamicAssetsLikesQuery, IFetchDynamicAssetsLikesQueryVariables>;
|
|
1575
|
+
export const FetchDynamicCollectionDataDocument = gql`
|
|
1576
|
+
query FetchDynamicCollectionData($input: DynamicCollectionDataInput!) {
|
|
1577
|
+
fetchDynamicCollectionData(input: $input) {
|
|
1578
|
+
isLikedByUser
|
|
1579
|
+
likesNum
|
|
1580
|
+
collectionId
|
|
1581
|
+
collectionAssetsPage {
|
|
1582
|
+
nextPage {
|
|
1583
|
+
token
|
|
1584
|
+
num
|
|
1585
|
+
size
|
|
1586
|
+
elements
|
|
1587
|
+
}
|
|
1588
|
+
assets {
|
|
1589
|
+
latestPriceCurrency
|
|
1590
|
+
latestPriceAmount
|
|
1591
|
+
collectionId
|
|
1592
|
+
collectionOriginalUrls
|
|
1593
|
+
collectionTitle
|
|
1594
|
+
assetId
|
|
1595
|
+
totalVolumes {
|
|
1596
|
+
currency
|
|
1597
|
+
amount
|
|
1598
|
+
}
|
|
1599
|
+
blockchain
|
|
1600
|
+
address
|
|
1601
|
+
tokenId
|
|
1602
|
+
name
|
|
1603
|
+
description
|
|
1604
|
+
rank
|
|
1605
|
+
markets {
|
|
1606
|
+
marketId
|
|
1607
|
+
marketName
|
|
1608
|
+
marketDomain
|
|
1609
|
+
marketUrl
|
|
1610
|
+
}
|
|
1611
|
+
collectionMedias {
|
|
1612
|
+
originalUrl
|
|
1613
|
+
url
|
|
1614
|
+
previewUrl
|
|
1615
|
+
mimeType
|
|
1616
|
+
sizeRatio
|
|
1617
|
+
fileSize
|
|
1618
|
+
}
|
|
1619
|
+
originalUrls
|
|
1620
|
+
medias {
|
|
1621
|
+
originalUrl
|
|
1622
|
+
url
|
|
1623
|
+
mimeType
|
|
1624
|
+
sizeRatio
|
|
1625
|
+
fileSize
|
|
1626
|
+
previewUrl
|
|
1627
|
+
}
|
|
1628
|
+
ownersAddresses
|
|
1629
|
+
ownersProfiles {
|
|
1630
|
+
userId
|
|
1631
|
+
username
|
|
1632
|
+
about
|
|
1633
|
+
userpic
|
|
1634
|
+
followers
|
|
1635
|
+
followings
|
|
1636
|
+
visible
|
|
1637
|
+
}
|
|
1638
|
+
creatorsAddresses
|
|
1639
|
+
creatorsProfiles {
|
|
1640
|
+
userId
|
|
1641
|
+
username
|
|
1642
|
+
about
|
|
1643
|
+
userpic
|
|
1644
|
+
followers
|
|
1645
|
+
followings
|
|
1646
|
+
visible
|
|
1647
|
+
}
|
|
1648
|
+
attributes {
|
|
1649
|
+
name
|
|
1650
|
+
value
|
|
1651
|
+
}
|
|
1652
|
+
views
|
|
1653
|
+
visible
|
|
1654
|
+
blurred
|
|
1655
|
+
medias {
|
|
1656
|
+
originalUrl
|
|
1657
|
+
url
|
|
1658
|
+
previewUrl
|
|
1659
|
+
mimeType
|
|
1660
|
+
}
|
|
1661
|
+
creatorsProfiles {
|
|
1662
|
+
username
|
|
1663
|
+
}
|
|
1664
|
+
}
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
`;
|
|
1669
|
+
|
|
1670
|
+
/**
|
|
1671
|
+
* __useFetchDynamicCollectionDataQuery__
|
|
1672
|
+
*
|
|
1673
|
+
* To run a query within a React component, call `useFetchDynamicCollectionDataQuery` and pass it any options that fit your needs.
|
|
1674
|
+
* When your component renders, `useFetchDynamicCollectionDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1675
|
+
* you can use to render your UI.
|
|
1676
|
+
*
|
|
1677
|
+
* @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;
|
|
1678
|
+
*
|
|
1679
|
+
* @example
|
|
1680
|
+
* const { data, loading, error } = useFetchDynamicCollectionDataQuery({
|
|
1681
|
+
* variables: {
|
|
1682
|
+
* input: // value for 'input'
|
|
1683
|
+
* },
|
|
1684
|
+
* });
|
|
1685
|
+
*/
|
|
1686
|
+
export function useFetchDynamicCollectionDataQuery(baseOptions: Apollo.QueryHookOptions<IFetchDynamicCollectionDataQuery, IFetchDynamicCollectionDataQueryVariables>) {
|
|
1687
|
+
return Apollo.useQuery<IFetchDynamicCollectionDataQuery, IFetchDynamicCollectionDataQueryVariables>(FetchDynamicCollectionDataDocument, baseOptions);
|
|
1688
|
+
}
|
|
1689
|
+
export function useFetchDynamicCollectionDataLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchDynamicCollectionDataQuery, IFetchDynamicCollectionDataQueryVariables>) {
|
|
1690
|
+
return Apollo.useLazyQuery<IFetchDynamicCollectionDataQuery, IFetchDynamicCollectionDataQueryVariables>(FetchDynamicCollectionDataDocument, baseOptions);
|
|
1691
|
+
}
|
|
1692
|
+
export type FetchDynamicCollectionDataQueryHookResult = ReturnType<typeof useFetchDynamicCollectionDataQuery>;
|
|
1693
|
+
export type FetchDynamicCollectionDataLazyQueryHookResult = ReturnType<typeof useFetchDynamicCollectionDataLazyQuery>;
|
|
1694
|
+
export type FetchDynamicCollectionDataQueryResult = Apollo.QueryResult<IFetchDynamicCollectionDataQuery, IFetchDynamicCollectionDataQueryVariables>;
|
|
1695
|
+
export const FetchDynamicCollectionsDataDocument = gql`
|
|
1696
|
+
query FetchDynamicCollectionsData($input: [DynamicCollectionDataInput!]!) {
|
|
1697
|
+
fetchDynamicCollectionsData(inputs: $input) {
|
|
1698
|
+
isLikedByUser
|
|
1699
|
+
likesNum
|
|
1700
|
+
collectionId
|
|
1701
|
+
collectionAssetsPage {
|
|
1702
|
+
nextPage {
|
|
1703
|
+
token
|
|
1704
|
+
num
|
|
1705
|
+
size
|
|
1706
|
+
elements
|
|
1707
|
+
}
|
|
1708
|
+
assets {
|
|
1709
|
+
latestPriceCurrency
|
|
1710
|
+
latestPriceAmount
|
|
1711
|
+
collectionId
|
|
1712
|
+
collectionOriginalUrls
|
|
1713
|
+
collectionTitle
|
|
1714
|
+
assetId
|
|
1715
|
+
totalVolumes {
|
|
1716
|
+
currency
|
|
1717
|
+
amount
|
|
1718
|
+
}
|
|
1719
|
+
blockchain
|
|
1720
|
+
address
|
|
1721
|
+
tokenId
|
|
1722
|
+
name
|
|
1723
|
+
description
|
|
1724
|
+
rank
|
|
1725
|
+
markets {
|
|
1726
|
+
marketId
|
|
1727
|
+
marketName
|
|
1728
|
+
marketDomain
|
|
1729
|
+
marketUrl
|
|
1730
|
+
}
|
|
1731
|
+
collectionMedias {
|
|
1732
|
+
originalUrl
|
|
1733
|
+
url
|
|
1734
|
+
previewUrl
|
|
1735
|
+
mimeType
|
|
1736
|
+
sizeRatio
|
|
1737
|
+
fileSize
|
|
1738
|
+
}
|
|
1739
|
+
originalUrls
|
|
1740
|
+
medias {
|
|
1741
|
+
originalUrl
|
|
1742
|
+
url
|
|
1743
|
+
mimeType
|
|
1744
|
+
sizeRatio
|
|
1745
|
+
fileSize
|
|
1746
|
+
previewUrl
|
|
1747
|
+
}
|
|
1748
|
+
ownersAddresses
|
|
1749
|
+
ownersProfiles {
|
|
1750
|
+
userId
|
|
1751
|
+
username
|
|
1752
|
+
about
|
|
1753
|
+
userpic
|
|
1754
|
+
followers
|
|
1755
|
+
followings
|
|
1756
|
+
visible
|
|
1757
|
+
}
|
|
1758
|
+
creatorsAddresses
|
|
1759
|
+
creatorsProfiles {
|
|
1760
|
+
userId
|
|
1761
|
+
username
|
|
1762
|
+
about
|
|
1763
|
+
userpic
|
|
1764
|
+
followers
|
|
1765
|
+
followings
|
|
1766
|
+
visible
|
|
1767
|
+
}
|
|
1768
|
+
attributes {
|
|
1769
|
+
name
|
|
1770
|
+
value
|
|
1771
|
+
}
|
|
1772
|
+
views
|
|
1773
|
+
visible
|
|
1774
|
+
blurred
|
|
1775
|
+
medias {
|
|
1776
|
+
originalUrl
|
|
1777
|
+
url
|
|
1778
|
+
previewUrl
|
|
1779
|
+
mimeType
|
|
1780
|
+
}
|
|
1781
|
+
creatorsProfiles {
|
|
1782
|
+
username
|
|
1783
|
+
}
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
}
|
|
1787
|
+
}
|
|
1788
|
+
`;
|
|
1789
|
+
|
|
1790
|
+
/**
|
|
1791
|
+
* __useFetchDynamicCollectionsDataQuery__
|
|
1792
|
+
*
|
|
1793
|
+
* To run a query within a React component, call `useFetchDynamicCollectionsDataQuery` and pass it any options that fit your needs.
|
|
1794
|
+
* When your component renders, `useFetchDynamicCollectionsDataQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1795
|
+
* you can use to render your UI.
|
|
1796
|
+
*
|
|
1797
|
+
* @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;
|
|
1798
|
+
*
|
|
1799
|
+
* @example
|
|
1800
|
+
* const { data, loading, error } = useFetchDynamicCollectionsDataQuery({
|
|
1801
|
+
* variables: {
|
|
1802
|
+
* input: // value for 'input'
|
|
1803
|
+
* },
|
|
1804
|
+
* });
|
|
1805
|
+
*/
|
|
1806
|
+
export function useFetchDynamicCollectionsDataQuery(baseOptions: Apollo.QueryHookOptions<IFetchDynamicCollectionsDataQuery, IFetchDynamicCollectionsDataQueryVariables>) {
|
|
1807
|
+
return Apollo.useQuery<IFetchDynamicCollectionsDataQuery, IFetchDynamicCollectionsDataQueryVariables>(FetchDynamicCollectionsDataDocument, baseOptions);
|
|
1808
|
+
}
|
|
1809
|
+
export function useFetchDynamicCollectionsDataLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchDynamicCollectionsDataQuery, IFetchDynamicCollectionsDataQueryVariables>) {
|
|
1810
|
+
return Apollo.useLazyQuery<IFetchDynamicCollectionsDataQuery, IFetchDynamicCollectionsDataQueryVariables>(FetchDynamicCollectionsDataDocument, baseOptions);
|
|
1811
|
+
}
|
|
1812
|
+
export type FetchDynamicCollectionsDataQueryHookResult = ReturnType<typeof useFetchDynamicCollectionsDataQuery>;
|
|
1813
|
+
export type FetchDynamicCollectionsDataLazyQueryHookResult = ReturnType<typeof useFetchDynamicCollectionsDataLazyQuery>;
|
|
1814
|
+
export type FetchDynamicCollectionsDataQueryResult = Apollo.QueryResult<IFetchDynamicCollectionsDataQuery, IFetchDynamicCollectionsDataQueryVariables>;
|
|
1815
|
+
export const FindAllTopEntitiesByNameDocument = gql`
|
|
1816
|
+
query FindAllTopEntitiesByName($name: String!, $pageSize: Int!) {
|
|
1817
|
+
findAllTopEntitiesByName(name: $name, pageSize: $pageSize) {
|
|
1818
|
+
assets {
|
|
1819
|
+
assetId
|
|
1820
|
+
address
|
|
1821
|
+
tokenId
|
|
1822
|
+
blockchain
|
|
1823
|
+
chainId
|
|
1824
|
+
blockHeight
|
|
1825
|
+
blockTimestamp
|
|
1826
|
+
name
|
|
1827
|
+
description
|
|
1828
|
+
originalUrls
|
|
1829
|
+
medias {
|
|
1830
|
+
originalUrl
|
|
1831
|
+
url
|
|
1832
|
+
previewUrl
|
|
1833
|
+
mimeType
|
|
1834
|
+
sizeRatio
|
|
1835
|
+
fileSize
|
|
1836
|
+
nsfw
|
|
1837
|
+
}
|
|
1838
|
+
ownersAddresses
|
|
1839
|
+
ownersProfiles {
|
|
1840
|
+
userId
|
|
1841
|
+
username
|
|
1842
|
+
about
|
|
1843
|
+
userpic
|
|
1844
|
+
followers
|
|
1845
|
+
followings
|
|
1846
|
+
createdAt
|
|
1847
|
+
deletedAt
|
|
1848
|
+
visible
|
|
1849
|
+
views
|
|
1850
|
+
deleted
|
|
1851
|
+
}
|
|
1852
|
+
creatorsAddresses
|
|
1853
|
+
creatorsProfiles {
|
|
1854
|
+
userId
|
|
1855
|
+
username
|
|
1856
|
+
about
|
|
1857
|
+
userpic
|
|
1858
|
+
followers
|
|
1859
|
+
followings
|
|
1860
|
+
createdAt
|
|
1861
|
+
deletedAt
|
|
1862
|
+
visible
|
|
1863
|
+
views
|
|
1864
|
+
deleted
|
|
1865
|
+
}
|
|
1866
|
+
attributes {
|
|
1867
|
+
name
|
|
1868
|
+
value
|
|
1869
|
+
}
|
|
1870
|
+
likes
|
|
1871
|
+
views
|
|
1872
|
+
visible
|
|
1873
|
+
blurred
|
|
1874
|
+
rank
|
|
1875
|
+
rankRaw
|
|
1876
|
+
rankMax
|
|
1877
|
+
rankUpdatedAt
|
|
1878
|
+
}
|
|
1879
|
+
collections {
|
|
1880
|
+
collectionId
|
|
1881
|
+
blockchain
|
|
1882
|
+
identifier
|
|
1883
|
+
contractAddress
|
|
1884
|
+
tokenId
|
|
1885
|
+
collectionTitle
|
|
1886
|
+
totalVolumes {
|
|
1887
|
+
currency
|
|
1888
|
+
amount
|
|
1889
|
+
}
|
|
1890
|
+
likes
|
|
1891
|
+
liked
|
|
1892
|
+
verified
|
|
1893
|
+
rank
|
|
1894
|
+
floorPrices {
|
|
1895
|
+
currency
|
|
1896
|
+
amount
|
|
1897
|
+
}
|
|
1898
|
+
}
|
|
1899
|
+
profiles {
|
|
1900
|
+
userId
|
|
1901
|
+
username
|
|
1902
|
+
about
|
|
1903
|
+
userpic
|
|
1904
|
+
followers
|
|
1905
|
+
followings
|
|
1906
|
+
createdAt
|
|
1907
|
+
deletedAt
|
|
1908
|
+
visible
|
|
1909
|
+
views
|
|
1910
|
+
deleted
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
}
|
|
1914
|
+
`;
|
|
1915
|
+
|
|
1916
|
+
/**
|
|
1917
|
+
* __useFindAllTopEntitiesByNameQuery__
|
|
1918
|
+
*
|
|
1919
|
+
* To run a query within a React component, call `useFindAllTopEntitiesByNameQuery` and pass it any options that fit your needs.
|
|
1920
|
+
* When your component renders, `useFindAllTopEntitiesByNameQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1921
|
+
* you can use to render your UI.
|
|
1922
|
+
*
|
|
1923
|
+
* @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;
|
|
1924
|
+
*
|
|
1925
|
+
* @example
|
|
1926
|
+
* const { data, loading, error } = useFindAllTopEntitiesByNameQuery({
|
|
1927
|
+
* variables: {
|
|
1928
|
+
* name: // value for 'name'
|
|
1929
|
+
* pageSize: // value for 'pageSize'
|
|
1930
|
+
* },
|
|
1931
|
+
* });
|
|
1932
|
+
*/
|
|
1933
|
+
export function useFindAllTopEntitiesByNameQuery(baseOptions: Apollo.QueryHookOptions<IFindAllTopEntitiesByNameQuery, IFindAllTopEntitiesByNameQueryVariables>) {
|
|
1934
|
+
return Apollo.useQuery<IFindAllTopEntitiesByNameQuery, IFindAllTopEntitiesByNameQueryVariables>(FindAllTopEntitiesByNameDocument, baseOptions);
|
|
1935
|
+
}
|
|
1936
|
+
export function useFindAllTopEntitiesByNameLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFindAllTopEntitiesByNameQuery, IFindAllTopEntitiesByNameQueryVariables>) {
|
|
1937
|
+
return Apollo.useLazyQuery<IFindAllTopEntitiesByNameQuery, IFindAllTopEntitiesByNameQueryVariables>(FindAllTopEntitiesByNameDocument, baseOptions);
|
|
1938
|
+
}
|
|
1939
|
+
export type FindAllTopEntitiesByNameQueryHookResult = ReturnType<typeof useFindAllTopEntitiesByNameQuery>;
|
|
1940
|
+
export type FindAllTopEntitiesByNameLazyQueryHookResult = ReturnType<typeof useFindAllTopEntitiesByNameLazyQuery>;
|
|
1941
|
+
export type FindAllTopEntitiesByNameQueryResult = Apollo.QueryResult<IFindAllTopEntitiesByNameQuery, IFindAllTopEntitiesByNameQueryVariables>;
|
|
1942
|
+
export const FetchUserPortfolioDocument = gql`
|
|
1943
|
+
query FetchUserPortfolio($ownerId: String!) {
|
|
1944
|
+
fetchUserPortfolio(ownerId: $ownerId) {
|
|
1945
|
+
currency
|
|
1946
|
+
amount
|
|
1947
|
+
}
|
|
1948
|
+
}
|
|
1949
|
+
`;
|
|
1950
|
+
|
|
1951
|
+
/**
|
|
1952
|
+
* __useFetchUserPortfolioQuery__
|
|
1953
|
+
*
|
|
1954
|
+
* To run a query within a React component, call `useFetchUserPortfolioQuery` and pass it any options that fit your needs.
|
|
1955
|
+
* When your component renders, `useFetchUserPortfolioQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1956
|
+
* you can use to render your UI.
|
|
1957
|
+
*
|
|
1958
|
+
* @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;
|
|
1959
|
+
*
|
|
1960
|
+
* @example
|
|
1961
|
+
* const { data, loading, error } = useFetchUserPortfolioQuery({
|
|
1962
|
+
* variables: {
|
|
1963
|
+
* ownerId: // value for 'ownerId'
|
|
1964
|
+
* },
|
|
1965
|
+
* });
|
|
1966
|
+
*/
|
|
1967
|
+
export function useFetchUserPortfolioQuery(baseOptions: Apollo.QueryHookOptions<IFetchUserPortfolioQuery, IFetchUserPortfolioQueryVariables>) {
|
|
1968
|
+
return Apollo.useQuery<IFetchUserPortfolioQuery, IFetchUserPortfolioQueryVariables>(FetchUserPortfolioDocument, baseOptions);
|
|
1969
|
+
}
|
|
1970
|
+
export function useFetchUserPortfolioLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchUserPortfolioQuery, IFetchUserPortfolioQueryVariables>) {
|
|
1971
|
+
return Apollo.useLazyQuery<IFetchUserPortfolioQuery, IFetchUserPortfolioQueryVariables>(FetchUserPortfolioDocument, baseOptions);
|
|
1972
|
+
}
|
|
1973
|
+
export type FetchUserPortfolioQueryHookResult = ReturnType<typeof useFetchUserPortfolioQuery>;
|
|
1974
|
+
export type FetchUserPortfolioLazyQueryHookResult = ReturnType<typeof useFetchUserPortfolioLazyQuery>;
|
|
1975
|
+
export type FetchUserPortfolioQueryResult = Apollo.QueryResult<IFetchUserPortfolioQuery, IFetchUserPortfolioQueryVariables>;
|
|
1976
|
+
export const FindCreationsDocument = gql`
|
|
1977
|
+
query FindCreations($term: String!, $input: CreationFilterInput!, $page: PageInput) {
|
|
1978
|
+
findCreations(term: $term, input: $input, page: $page) {
|
|
1979
|
+
nextPage {
|
|
1980
|
+
token
|
|
1981
|
+
num
|
|
1982
|
+
size
|
|
1983
|
+
elements
|
|
1984
|
+
}
|
|
1985
|
+
creations {
|
|
1986
|
+
id
|
|
1987
|
+
itemType
|
|
1988
|
+
address
|
|
1989
|
+
tokenId
|
|
1990
|
+
itemId
|
|
1991
|
+
blockchain
|
|
1992
|
+
name
|
|
1993
|
+
creatorsAddresses
|
|
1994
|
+
originalUrls
|
|
1995
|
+
media
|
|
1996
|
+
mediaPreview
|
|
1997
|
+
mimeType
|
|
1998
|
+
rank
|
|
1999
|
+
likes
|
|
2000
|
+
liked
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
}
|
|
2004
|
+
`;
|
|
2005
|
+
|
|
2006
|
+
/**
|
|
2007
|
+
* __useFindCreationsQuery__
|
|
2008
|
+
*
|
|
2009
|
+
* To run a query within a React component, call `useFindCreationsQuery` and pass it any options that fit your needs.
|
|
2010
|
+
* When your component renders, `useFindCreationsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2011
|
+
* you can use to render your UI.
|
|
2012
|
+
*
|
|
2013
|
+
* @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;
|
|
2014
|
+
*
|
|
2015
|
+
* @example
|
|
2016
|
+
* const { data, loading, error } = useFindCreationsQuery({
|
|
2017
|
+
* variables: {
|
|
2018
|
+
* term: // value for 'term'
|
|
2019
|
+
* input: // value for 'input'
|
|
2020
|
+
* page: // value for 'page'
|
|
2021
|
+
* },
|
|
2022
|
+
* });
|
|
2023
|
+
*/
|
|
2024
|
+
export function useFindCreationsQuery(baseOptions: Apollo.QueryHookOptions<IFindCreationsQuery, IFindCreationsQueryVariables>) {
|
|
2025
|
+
return Apollo.useQuery<IFindCreationsQuery, IFindCreationsQueryVariables>(FindCreationsDocument, baseOptions);
|
|
2026
|
+
}
|
|
2027
|
+
export function useFindCreationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFindCreationsQuery, IFindCreationsQueryVariables>) {
|
|
2028
|
+
return Apollo.useLazyQuery<IFindCreationsQuery, IFindCreationsQueryVariables>(FindCreationsDocument, baseOptions);
|
|
2029
|
+
}
|
|
2030
|
+
export type FindCreationsQueryHookResult = ReturnType<typeof useFindCreationsQuery>;
|
|
2031
|
+
export type FindCreationsLazyQueryHookResult = ReturnType<typeof useFindCreationsLazyQuery>;
|
|
2032
|
+
export type FindCreationsQueryResult = Apollo.QueryResult<IFindCreationsQuery, IFindCreationsQueryVariables>;
|
|
2033
|
+
export const FindProfilesByNameDocument = gql`
|
|
2034
|
+
query FindProfilesByName($name: String!, $page: PageInput) {
|
|
2035
|
+
findProfilesByName(name: $name, page: $page) {
|
|
2036
|
+
nextPage {
|
|
2037
|
+
token
|
|
2038
|
+
num
|
|
2039
|
+
size
|
|
2040
|
+
elements
|
|
2041
|
+
}
|
|
2042
|
+
profiles {
|
|
2043
|
+
userId
|
|
2044
|
+
username
|
|
2045
|
+
about
|
|
2046
|
+
userpic
|
|
2047
|
+
followers
|
|
2048
|
+
followings
|
|
2049
|
+
visible
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2052
|
+
}
|
|
2053
|
+
`;
|
|
2054
|
+
|
|
2055
|
+
/**
|
|
2056
|
+
* __useFindProfilesByNameQuery__
|
|
2057
|
+
*
|
|
2058
|
+
* To run a query within a React component, call `useFindProfilesByNameQuery` and pass it any options that fit your needs.
|
|
2059
|
+
* When your component renders, `useFindProfilesByNameQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2060
|
+
* you can use to render your UI.
|
|
2061
|
+
*
|
|
2062
|
+
* @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;
|
|
2063
|
+
*
|
|
2064
|
+
* @example
|
|
2065
|
+
* const { data, loading, error } = useFindProfilesByNameQuery({
|
|
2066
|
+
* variables: {
|
|
2067
|
+
* name: // value for 'name'
|
|
2068
|
+
* page: // value for 'page'
|
|
2069
|
+
* },
|
|
2070
|
+
* });
|
|
2071
|
+
*/
|
|
2072
|
+
export function useFindProfilesByNameQuery(baseOptions: Apollo.QueryHookOptions<IFindProfilesByNameQuery, IFindProfilesByNameQueryVariables>) {
|
|
2073
|
+
return Apollo.useQuery<IFindProfilesByNameQuery, IFindProfilesByNameQueryVariables>(FindProfilesByNameDocument, baseOptions);
|
|
2074
|
+
}
|
|
2075
|
+
export function useFindProfilesByNameLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFindProfilesByNameQuery, IFindProfilesByNameQueryVariables>) {
|
|
2076
|
+
return Apollo.useLazyQuery<IFindProfilesByNameQuery, IFindProfilesByNameQueryVariables>(FindProfilesByNameDocument, baseOptions);
|
|
2077
|
+
}
|
|
2078
|
+
export type FindProfilesByNameQueryHookResult = ReturnType<typeof useFindProfilesByNameQuery>;
|
|
2079
|
+
export type FindProfilesByNameLazyQueryHookResult = ReturnType<typeof useFindProfilesByNameLazyQuery>;
|
|
2080
|
+
export type FindProfilesByNameQueryResult = Apollo.QueryResult<IFindProfilesByNameQuery, IFindProfilesByNameQueryVariables>;
|
|
2081
|
+
export const FindUserCreationsDocument = gql`
|
|
2082
|
+
query FindUserCreations($ownerId: String!, $input: CreationFilterInput!, $page: PageInput) {
|
|
2083
|
+
findUserCreations(ownerId: $ownerId, input: $input, page: $page) {
|
|
2084
|
+
nextPage {
|
|
2085
|
+
token
|
|
2086
|
+
num
|
|
2087
|
+
size
|
|
2088
|
+
elements
|
|
2089
|
+
}
|
|
2090
|
+
creations {
|
|
2091
|
+
id
|
|
2092
|
+
id
|
|
2093
|
+
itemType
|
|
2094
|
+
tokenId
|
|
2095
|
+
address
|
|
2096
|
+
itemId
|
|
2097
|
+
blockchain
|
|
2098
|
+
rank
|
|
2099
|
+
name
|
|
2100
|
+
creatorsAddresses
|
|
2101
|
+
originalUrls
|
|
2102
|
+
media
|
|
2103
|
+
mediaPreview
|
|
2104
|
+
mimeType
|
|
2105
|
+
likes
|
|
2106
|
+
}
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
`;
|
|
2110
|
+
|
|
2111
|
+
/**
|
|
2112
|
+
* __useFindUserCreationsQuery__
|
|
2113
|
+
*
|
|
2114
|
+
* To run a query within a React component, call `useFindUserCreationsQuery` and pass it any options that fit your needs.
|
|
2115
|
+
* When your component renders, `useFindUserCreationsQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
2116
|
+
* you can use to render your UI.
|
|
2117
|
+
*
|
|
2118
|
+
* @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;
|
|
2119
|
+
*
|
|
2120
|
+
* @example
|
|
2121
|
+
* const { data, loading, error } = useFindUserCreationsQuery({
|
|
2122
|
+
* variables: {
|
|
2123
|
+
* ownerId: // value for 'ownerId'
|
|
2124
|
+
* input: // value for 'input'
|
|
2125
|
+
* page: // value for 'page'
|
|
2126
|
+
* },
|
|
2127
|
+
* });
|
|
2128
|
+
*/
|
|
2129
|
+
export function useFindUserCreationsQuery(baseOptions: Apollo.QueryHookOptions<IFindUserCreationsQuery, IFindUserCreationsQueryVariables>) {
|
|
2130
|
+
return Apollo.useQuery<IFindUserCreationsQuery, IFindUserCreationsQueryVariables>(FindUserCreationsDocument, baseOptions);
|
|
2131
|
+
}
|
|
2132
|
+
export function useFindUserCreationsLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFindUserCreationsQuery, IFindUserCreationsQueryVariables>) {
|
|
2133
|
+
return Apollo.useLazyQuery<IFindUserCreationsQuery, IFindUserCreationsQueryVariables>(FindUserCreationsDocument, baseOptions);
|
|
2134
|
+
}
|
|
2135
|
+
export type FindUserCreationsQueryHookResult = ReturnType<typeof useFindUserCreationsQuery>;
|
|
2136
|
+
export type FindUserCreationsLazyQueryHookResult = ReturnType<typeof useFindUserCreationsLazyQuery>;
|
|
2137
|
+
export type FindUserCreationsQueryResult = Apollo.QueryResult<IFindUserCreationsQuery, IFindUserCreationsQueryVariables>;
|