@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,392 @@
|
|
|
1
|
+
import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql';
|
|
2
|
+
import * as Apollo from '@apollo/client';
|
|
3
|
+
export type Maybe<T> = T | null;
|
|
4
|
+
export type Exact<T extends {
|
|
5
|
+
[key: string]: unknown;
|
|
6
|
+
}> = {
|
|
7
|
+
[K in keyof T]: T[K];
|
|
8
|
+
};
|
|
9
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
10
|
+
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
11
|
+
};
|
|
12
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
13
|
+
[SubKey in K]: Maybe<T[SubKey]>;
|
|
14
|
+
};
|
|
15
|
+
export type RequireFields<T, K extends keyof T> = Omit<T, K> & {
|
|
16
|
+
[P in K]-?: NonNullable<T[P]>;
|
|
17
|
+
};
|
|
18
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
19
|
+
export type Scalars = {
|
|
20
|
+
ID: string;
|
|
21
|
+
String: string;
|
|
22
|
+
Boolean: boolean;
|
|
23
|
+
Int: number;
|
|
24
|
+
Float: number;
|
|
25
|
+
/** A 64-bit signed integer */
|
|
26
|
+
Long: any;
|
|
27
|
+
};
|
|
28
|
+
export type IAsset = {
|
|
29
|
+
assetId: Scalars['ID'];
|
|
30
|
+
blockchain?: Maybe<Scalars['String']>;
|
|
31
|
+
blockchainLabel?: Maybe<Scalars['String']>;
|
|
32
|
+
address?: Maybe<Scalars['String']>;
|
|
33
|
+
tokenId?: Maybe<Scalars['String']>;
|
|
34
|
+
collection?: Maybe<Scalars['String']>;
|
|
35
|
+
id?: Maybe<Scalars['String']>;
|
|
36
|
+
chainId?: Maybe<Scalars['String']>;
|
|
37
|
+
blockHeight?: Maybe<Scalars['Long']>;
|
|
38
|
+
blockTimestamp?: Maybe<Scalars['Long']>;
|
|
39
|
+
name?: Maybe<Scalars['String']>;
|
|
40
|
+
description?: Maybe<Scalars['String']>;
|
|
41
|
+
originalUrls?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
42
|
+
medias?: Maybe<Array<Maybe<IMedia>>>;
|
|
43
|
+
ownersAddresses?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
44
|
+
ownersProfiles?: Maybe<Array<Maybe<IProfile>>>;
|
|
45
|
+
creatorsAddresses?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
46
|
+
creatorsProfiles?: Maybe<Array<Maybe<IProfile>>>;
|
|
47
|
+
attributes?: Maybe<Array<Maybe<IAttribute>>>;
|
|
48
|
+
likes?: Maybe<Scalars['Int']>;
|
|
49
|
+
views?: Maybe<Scalars['Int']>;
|
|
50
|
+
visible?: Maybe<Scalars['Boolean']>;
|
|
51
|
+
createdAt?: Maybe<Scalars['Long']>;
|
|
52
|
+
blurred?: Maybe<Scalars['Boolean']>;
|
|
53
|
+
rank?: Maybe<Scalars['Float']>;
|
|
54
|
+
trueRank?: Maybe<Scalars['Float']>;
|
|
55
|
+
collectionId?: Maybe<Scalars['String']>;
|
|
56
|
+
collectionTitle?: Maybe<Scalars['String']>;
|
|
57
|
+
collectionOriginalUrls?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
58
|
+
collectionMedias?: Maybe<Array<Maybe<IMedia>>>;
|
|
59
|
+
markets?: Maybe<Array<Maybe<IAssetMarket>>>;
|
|
60
|
+
latestPriceBlockHeight?: Maybe<Scalars['Long']>;
|
|
61
|
+
latestPriceCurrency?: Maybe<Scalars['String']>;
|
|
62
|
+
latestPriceAmount?: Maybe<Scalars['Float']>;
|
|
63
|
+
totalVolumes?: Maybe<Array<Maybe<ICurrencyAmountPair>>>;
|
|
64
|
+
category?: Maybe<Scalars['String']>;
|
|
65
|
+
categoryLabel?: Maybe<Scalars['String']>;
|
|
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
|
+
export type IAttribute = {
|
|
74
|
+
name?: Maybe<Scalars['String']>;
|
|
75
|
+
value?: Maybe<Scalars['String']>;
|
|
76
|
+
};
|
|
77
|
+
export type ICurrencyAmountPair = {
|
|
78
|
+
currency?: Maybe<Scalars['String']>;
|
|
79
|
+
amount?: Maybe<Scalars['Float']>;
|
|
80
|
+
};
|
|
81
|
+
export type IDynamicAssetData = {
|
|
82
|
+
assetId: Scalars['String'];
|
|
83
|
+
isLikedByUser?: Maybe<Scalars['Boolean']>;
|
|
84
|
+
likesNum?: Maybe<Scalars['Int']>;
|
|
85
|
+
medias?: Maybe<Array<Maybe<IMedia>>>;
|
|
86
|
+
};
|
|
87
|
+
export type IMedia = {
|
|
88
|
+
originalUrl?: Maybe<Scalars['String']>;
|
|
89
|
+
url?: Maybe<Scalars['String']>;
|
|
90
|
+
previewUrl?: Maybe<Scalars['String']>;
|
|
91
|
+
mimeType?: Maybe<Scalars['String']>;
|
|
92
|
+
sizeRatio?: Maybe<Scalars['Float']>;
|
|
93
|
+
fileSize?: Maybe<Scalars['Long']>;
|
|
94
|
+
nsfw?: Maybe<Scalars['Int']>;
|
|
95
|
+
originalMime?: Maybe<Scalars['String']>;
|
|
96
|
+
hidden?: Maybe<Scalars['Boolean']>;
|
|
97
|
+
cover?: Maybe<Scalars['Boolean']>;
|
|
98
|
+
};
|
|
99
|
+
export type IMutation = {
|
|
100
|
+
setDummy: Scalars['String'];
|
|
101
|
+
likeAsset: Scalars['Boolean'];
|
|
102
|
+
dislikeAsset: Scalars['Boolean'];
|
|
103
|
+
};
|
|
104
|
+
export type IMutationLikeAssetArgs = {
|
|
105
|
+
assetId: Scalars['String'];
|
|
106
|
+
};
|
|
107
|
+
export type IMutationDislikeAssetArgs = {
|
|
108
|
+
assetId: Scalars['String'];
|
|
109
|
+
};
|
|
110
|
+
export type IProfile = {
|
|
111
|
+
userId: Scalars['ID'];
|
|
112
|
+
username?: Maybe<Scalars['String']>;
|
|
113
|
+
about?: Maybe<Scalars['String']>;
|
|
114
|
+
userpic?: Maybe<Scalars['String']>;
|
|
115
|
+
followers?: Maybe<Scalars['Int']>;
|
|
116
|
+
followings?: Maybe<Scalars['Int']>;
|
|
117
|
+
createdAt?: Maybe<Scalars['Long']>;
|
|
118
|
+
deletedAt?: Maybe<Scalars['Long']>;
|
|
119
|
+
visible?: Maybe<Scalars['Boolean']>;
|
|
120
|
+
views?: Maybe<Scalars['Int']>;
|
|
121
|
+
deleted?: Maybe<Scalars['Boolean']>;
|
|
122
|
+
};
|
|
123
|
+
/** scalar Upload */
|
|
124
|
+
export type IQuery = {
|
|
125
|
+
getDummy: Scalars['String'];
|
|
126
|
+
fetchAssetByBlockchain: IAsset;
|
|
127
|
+
fetchDynamicAssetData: IDynamicAssetData;
|
|
128
|
+
fetchDynamicAssetsData: Array<Maybe<IDynamicAssetData>>;
|
|
129
|
+
fetchAssets: Array<Maybe<IAsset>>;
|
|
130
|
+
};
|
|
131
|
+
/** scalar Upload */
|
|
132
|
+
export type IQueryFetchAssetByBlockchainArgs = {
|
|
133
|
+
blockchain: Scalars['String'];
|
|
134
|
+
address?: Maybe<Scalars['String']>;
|
|
135
|
+
tokenId?: Maybe<Scalars['String']>;
|
|
136
|
+
elrondId?: Maybe<Scalars['String']>;
|
|
137
|
+
};
|
|
138
|
+
/** scalar Upload */
|
|
139
|
+
export type IQueryFetchDynamicAssetDataArgs = {
|
|
140
|
+
assetId: Scalars['String'];
|
|
141
|
+
};
|
|
142
|
+
/** scalar Upload */
|
|
143
|
+
export type IQueryFetchDynamicAssetsDataArgs = {
|
|
144
|
+
assetIds: Array<Scalars['String']>;
|
|
145
|
+
};
|
|
146
|
+
/** scalar Upload */
|
|
147
|
+
export type IQueryFetchAssetsArgs = {
|
|
148
|
+
assetIds: Array<Scalars['String']>;
|
|
149
|
+
};
|
|
150
|
+
export type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
151
|
+
export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
152
|
+
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
|
153
|
+
};
|
|
154
|
+
export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
|
|
155
|
+
export type ResolverFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => Promise<TResult> | TResult;
|
|
156
|
+
export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
|
|
157
|
+
export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
158
|
+
export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
|
|
159
|
+
subscribe: SubscriptionSubscribeFn<{
|
|
160
|
+
[key in TKey]: TResult;
|
|
161
|
+
}, TParent, TContext, TArgs>;
|
|
162
|
+
resolve?: SubscriptionResolveFn<TResult, {
|
|
163
|
+
[key in TKey]: TResult;
|
|
164
|
+
}, TContext, TArgs>;
|
|
165
|
+
}
|
|
166
|
+
export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
|
|
167
|
+
subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
|
|
168
|
+
resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
|
|
169
|
+
}
|
|
170
|
+
export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> = SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs> | SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
|
|
171
|
+
export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> = ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>) | SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
|
|
172
|
+
export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (parent: TParent, context: TContext, info: GraphQLResolveInfo) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
|
|
173
|
+
export type IsTypeOfResolverFn<T = {}, TContext = {}> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
|
|
174
|
+
export type NextResolverFn<T> = () => Promise<T>;
|
|
175
|
+
export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
176
|
+
/** Mapping between all available schema types and the resolvers types */
|
|
177
|
+
export type IResolversTypes = {
|
|
178
|
+
Asset: ResolverTypeWrapper<IAsset>;
|
|
179
|
+
ID: ResolverTypeWrapper<Scalars['ID']>;
|
|
180
|
+
String: ResolverTypeWrapper<Scalars['String']>;
|
|
181
|
+
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
182
|
+
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
183
|
+
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
184
|
+
AssetMarket: ResolverTypeWrapper<IAssetMarket>;
|
|
185
|
+
Attribute: ResolverTypeWrapper<IAttribute>;
|
|
186
|
+
CurrencyAmountPair: ResolverTypeWrapper<ICurrencyAmountPair>;
|
|
187
|
+
DynamicAssetData: ResolverTypeWrapper<IDynamicAssetData>;
|
|
188
|
+
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
189
|
+
Media: ResolverTypeWrapper<IMedia>;
|
|
190
|
+
Mutation: ResolverTypeWrapper<{}>;
|
|
191
|
+
Profile: ResolverTypeWrapper<IProfile>;
|
|
192
|
+
Query: ResolverTypeWrapper<{}>;
|
|
193
|
+
};
|
|
194
|
+
/** Mapping between all available schema types and the resolvers parents */
|
|
195
|
+
export type IResolversParentTypes = {
|
|
196
|
+
Asset: IAsset;
|
|
197
|
+
ID: Scalars['ID'];
|
|
198
|
+
String: Scalars['String'];
|
|
199
|
+
Int: Scalars['Int'];
|
|
200
|
+
Boolean: Scalars['Boolean'];
|
|
201
|
+
Float: Scalars['Float'];
|
|
202
|
+
AssetMarket: IAssetMarket;
|
|
203
|
+
Attribute: IAttribute;
|
|
204
|
+
CurrencyAmountPair: ICurrencyAmountPair;
|
|
205
|
+
DynamicAssetData: IDynamicAssetData;
|
|
206
|
+
Long: Scalars['Long'];
|
|
207
|
+
Media: IMedia;
|
|
208
|
+
Mutation: {};
|
|
209
|
+
Profile: IProfile;
|
|
210
|
+
Query: {};
|
|
211
|
+
};
|
|
212
|
+
export type IOneOfDirectiveArgs = {};
|
|
213
|
+
export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
214
|
+
export type IAssetResolvers<ContextType = any, ParentType extends IResolversParentTypes['Asset'] = IResolversParentTypes['Asset']> = {
|
|
215
|
+
assetId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
216
|
+
blockchain?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
217
|
+
blockchainLabel?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
218
|
+
address?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
219
|
+
tokenId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
220
|
+
collection?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
221
|
+
id?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
222
|
+
chainId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
223
|
+
blockHeight?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
224
|
+
blockTimestamp?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
225
|
+
name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
226
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
227
|
+
originalUrls?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
228
|
+
medias?: Resolver<Maybe<Array<Maybe<IResolversTypes['Media']>>>, ParentType, ContextType>;
|
|
229
|
+
ownersAddresses?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
230
|
+
ownersProfiles?: Resolver<Maybe<Array<Maybe<IResolversTypes['Profile']>>>, ParentType, ContextType>;
|
|
231
|
+
creatorsAddresses?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
232
|
+
creatorsProfiles?: Resolver<Maybe<Array<Maybe<IResolversTypes['Profile']>>>, ParentType, ContextType>;
|
|
233
|
+
attributes?: Resolver<Maybe<Array<Maybe<IResolversTypes['Attribute']>>>, ParentType, ContextType>;
|
|
234
|
+
likes?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
235
|
+
views?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
236
|
+
visible?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
237
|
+
createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
238
|
+
blurred?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
239
|
+
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
240
|
+
trueRank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
241
|
+
collectionId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
242
|
+
collectionTitle?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
243
|
+
collectionOriginalUrls?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
244
|
+
collectionMedias?: Resolver<Maybe<Array<Maybe<IResolversTypes['Media']>>>, ParentType, ContextType>;
|
|
245
|
+
markets?: Resolver<Maybe<Array<Maybe<IResolversTypes['AssetMarket']>>>, ParentType, ContextType>;
|
|
246
|
+
latestPriceBlockHeight?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
247
|
+
latestPriceCurrency?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
248
|
+
latestPriceAmount?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
249
|
+
totalVolumes?: Resolver<Maybe<Array<Maybe<IResolversTypes['CurrencyAmountPair']>>>, ParentType, ContextType>;
|
|
250
|
+
category?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
251
|
+
categoryLabel?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
252
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
253
|
+
};
|
|
254
|
+
export type IAssetMarketResolvers<ContextType = any, ParentType extends IResolversParentTypes['AssetMarket'] = IResolversParentTypes['AssetMarket']> = {
|
|
255
|
+
marketId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
256
|
+
marketName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
257
|
+
marketDomain?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
258
|
+
marketUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
259
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
260
|
+
};
|
|
261
|
+
export type IAttributeResolvers<ContextType = any, ParentType extends IResolversParentTypes['Attribute'] = IResolversParentTypes['Attribute']> = {
|
|
262
|
+
name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
263
|
+
value?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
264
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
265
|
+
};
|
|
266
|
+
export type ICurrencyAmountPairResolvers<ContextType = any, ParentType extends IResolversParentTypes['CurrencyAmountPair'] = IResolversParentTypes['CurrencyAmountPair']> = {
|
|
267
|
+
currency?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
268
|
+
amount?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
269
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
270
|
+
};
|
|
271
|
+
export type IDynamicAssetDataResolvers<ContextType = any, ParentType extends IResolversParentTypes['DynamicAssetData'] = IResolversParentTypes['DynamicAssetData']> = {
|
|
272
|
+
assetId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
273
|
+
isLikedByUser?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
274
|
+
likesNum?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
275
|
+
medias?: Resolver<Maybe<Array<Maybe<IResolversTypes['Media']>>>, ParentType, ContextType>;
|
|
276
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
277
|
+
};
|
|
278
|
+
export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
|
|
279
|
+
name: 'Long';
|
|
280
|
+
}
|
|
281
|
+
export type IMediaResolvers<ContextType = any, ParentType extends IResolversParentTypes['Media'] = IResolversParentTypes['Media']> = {
|
|
282
|
+
originalUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
283
|
+
url?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
284
|
+
previewUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
285
|
+
mimeType?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
286
|
+
sizeRatio?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
287
|
+
fileSize?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
288
|
+
nsfw?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
289
|
+
originalMime?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
290
|
+
hidden?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
291
|
+
cover?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
292
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
293
|
+
};
|
|
294
|
+
export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
|
|
295
|
+
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
296
|
+
likeAsset?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationLikeAssetArgs, 'assetId'>>;
|
|
297
|
+
dislikeAsset?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDislikeAssetArgs, 'assetId'>>;
|
|
298
|
+
};
|
|
299
|
+
export type IProfileResolvers<ContextType = any, ParentType extends IResolversParentTypes['Profile'] = IResolversParentTypes['Profile']> = {
|
|
300
|
+
userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
301
|
+
username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
302
|
+
about?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
303
|
+
userpic?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
304
|
+
followers?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
305
|
+
followings?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
306
|
+
createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
307
|
+
deletedAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
308
|
+
visible?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
309
|
+
views?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
310
|
+
deleted?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
311
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
312
|
+
};
|
|
313
|
+
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
314
|
+
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
315
|
+
fetchAssetByBlockchain?: Resolver<IResolversTypes['Asset'], ParentType, ContextType, RequireFields<IQueryFetchAssetByBlockchainArgs, 'blockchain'>>;
|
|
316
|
+
fetchDynamicAssetData?: Resolver<IResolversTypes['DynamicAssetData'], ParentType, ContextType, RequireFields<IQueryFetchDynamicAssetDataArgs, 'assetId'>>;
|
|
317
|
+
fetchDynamicAssetsData?: Resolver<Array<Maybe<IResolversTypes['DynamicAssetData']>>, ParentType, ContextType, RequireFields<IQueryFetchDynamicAssetsDataArgs, 'assetIds'>>;
|
|
318
|
+
fetchAssets?: Resolver<Array<Maybe<IResolversTypes['Asset']>>, ParentType, ContextType, RequireFields<IQueryFetchAssetsArgs, 'assetIds'>>;
|
|
319
|
+
};
|
|
320
|
+
export type IResolvers<ContextType = any> = {
|
|
321
|
+
Asset?: IAssetResolvers<ContextType>;
|
|
322
|
+
AssetMarket?: IAssetMarketResolvers<ContextType>;
|
|
323
|
+
Attribute?: IAttributeResolvers<ContextType>;
|
|
324
|
+
CurrencyAmountPair?: ICurrencyAmountPairResolvers<ContextType>;
|
|
325
|
+
DynamicAssetData?: IDynamicAssetDataResolvers<ContextType>;
|
|
326
|
+
Long?: GraphQLScalarType;
|
|
327
|
+
Media?: IMediaResolvers<ContextType>;
|
|
328
|
+
Mutation?: IMutationResolvers<ContextType>;
|
|
329
|
+
Profile?: IProfileResolvers<ContextType>;
|
|
330
|
+
Query?: IQueryResolvers<ContextType>;
|
|
331
|
+
};
|
|
332
|
+
export type IDirectiveResolvers<ContextType = any> = {
|
|
333
|
+
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
334
|
+
};
|
|
335
|
+
export type IDislikeAssetMutationVariables = Exact<{
|
|
336
|
+
assetId: Scalars['String'];
|
|
337
|
+
}>;
|
|
338
|
+
export type IDislikeAssetMutation = Pick<IMutation, 'dislikeAsset'>;
|
|
339
|
+
export type ILikeAssetMutationVariables = Exact<{
|
|
340
|
+
assetId: Scalars['String'];
|
|
341
|
+
}>;
|
|
342
|
+
export type ILikeAssetMutation = Pick<IMutation, 'likeAsset'>;
|
|
343
|
+
export declare const DislikeAssetDocument: Apollo.DocumentNode;
|
|
344
|
+
export type IDislikeAssetMutationFn = Apollo.MutationFunction<IDislikeAssetMutation, IDislikeAssetMutationVariables>;
|
|
345
|
+
/**
|
|
346
|
+
* __useDislikeAssetMutation__
|
|
347
|
+
*
|
|
348
|
+
* To run a mutation, you first call `useDislikeAssetMutation` within a React component and pass it any options that fit your needs.
|
|
349
|
+
* When your component renders, `useDislikeAssetMutation` returns a tuple that includes:
|
|
350
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
351
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
352
|
+
*
|
|
353
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
354
|
+
*
|
|
355
|
+
* @example
|
|
356
|
+
* const [dislikeAssetMutation, { data, loading, error }] = useDislikeAssetMutation({
|
|
357
|
+
* variables: {
|
|
358
|
+
* assetId: // value for 'assetId'
|
|
359
|
+
* },
|
|
360
|
+
* });
|
|
361
|
+
*/
|
|
362
|
+
export declare function useDislikeAssetMutation(baseOptions?: Apollo.MutationHookOptions<IDislikeAssetMutation, IDislikeAssetMutationVariables>): Apollo.MutationTuple<IDislikeAssetMutation, Exact<{
|
|
363
|
+
assetId: string;
|
|
364
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
365
|
+
export type DislikeAssetMutationHookResult = ReturnType<typeof useDislikeAssetMutation>;
|
|
366
|
+
export type DislikeAssetMutationResult = Apollo.MutationResult<IDislikeAssetMutation>;
|
|
367
|
+
export type DislikeAssetMutationOptions = Apollo.BaseMutationOptions<IDislikeAssetMutation, IDislikeAssetMutationVariables>;
|
|
368
|
+
export declare const LikeAssetDocument: Apollo.DocumentNode;
|
|
369
|
+
export type ILikeAssetMutationFn = Apollo.MutationFunction<ILikeAssetMutation, ILikeAssetMutationVariables>;
|
|
370
|
+
/**
|
|
371
|
+
* __useLikeAssetMutation__
|
|
372
|
+
*
|
|
373
|
+
* To run a mutation, you first call `useLikeAssetMutation` within a React component and pass it any options that fit your needs.
|
|
374
|
+
* When your component renders, `useLikeAssetMutation` returns a tuple that includes:
|
|
375
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
376
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
377
|
+
*
|
|
378
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
379
|
+
*
|
|
380
|
+
* @example
|
|
381
|
+
* const [likeAssetMutation, { data, loading, error }] = useLikeAssetMutation({
|
|
382
|
+
* variables: {
|
|
383
|
+
* assetId: // value for 'assetId'
|
|
384
|
+
* },
|
|
385
|
+
* });
|
|
386
|
+
*/
|
|
387
|
+
export declare function useLikeAssetMutation(baseOptions?: Apollo.MutationHookOptions<ILikeAssetMutation, ILikeAssetMutationVariables>): Apollo.MutationTuple<ILikeAssetMutation, Exact<{
|
|
388
|
+
assetId: string;
|
|
389
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
390
|
+
export type LikeAssetMutationHookResult = ReturnType<typeof useLikeAssetMutation>;
|
|
391
|
+
export type LikeAssetMutationResult = Apollo.MutationResult<ILikeAssetMutation>;
|
|
392
|
+
export type LikeAssetMutationOptions = Apollo.BaseMutationOptions<ILikeAssetMutation, ILikeAssetMutationVariables>;
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.useLikeAssetMutation = exports.LikeAssetDocument = exports.useDislikeAssetMutation = exports.DislikeAssetDocument = void 0;
|
|
27
|
+
const client_1 = require("@apollo/client");
|
|
28
|
+
const Apollo = __importStar(require("@apollo/client"));
|
|
29
|
+
exports.DislikeAssetDocument = (0, client_1.gql) `
|
|
30
|
+
mutation DislikeAsset($assetId: String!) {
|
|
31
|
+
dislikeAsset(assetId: $assetId)
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
/**
|
|
35
|
+
* __useDislikeAssetMutation__
|
|
36
|
+
*
|
|
37
|
+
* To run a mutation, you first call `useDislikeAssetMutation` within a React component and pass it any options that fit your needs.
|
|
38
|
+
* When your component renders, `useDislikeAssetMutation` returns a tuple that includes:
|
|
39
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
40
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
41
|
+
*
|
|
42
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* const [dislikeAssetMutation, { data, loading, error }] = useDislikeAssetMutation({
|
|
46
|
+
* variables: {
|
|
47
|
+
* assetId: // value for 'assetId'
|
|
48
|
+
* },
|
|
49
|
+
* });
|
|
50
|
+
*/
|
|
51
|
+
function useDislikeAssetMutation(baseOptions) {
|
|
52
|
+
return Apollo.useMutation(exports.DislikeAssetDocument, baseOptions);
|
|
53
|
+
}
|
|
54
|
+
exports.useDislikeAssetMutation = useDislikeAssetMutation;
|
|
55
|
+
exports.LikeAssetDocument = (0, client_1.gql) `
|
|
56
|
+
mutation LikeAsset($assetId: String!) {
|
|
57
|
+
likeAsset(assetId: $assetId)
|
|
58
|
+
}
|
|
59
|
+
`;
|
|
60
|
+
/**
|
|
61
|
+
* __useLikeAssetMutation__
|
|
62
|
+
*
|
|
63
|
+
* To run a mutation, you first call `useLikeAssetMutation` within a React component and pass it any options that fit your needs.
|
|
64
|
+
* When your component renders, `useLikeAssetMutation` returns a tuple that includes:
|
|
65
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
66
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
67
|
+
*
|
|
68
|
+
* @param baseOptions options that will be passed into the mutation, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options-2;
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* const [likeAssetMutation, { data, loading, error }] = useLikeAssetMutation({
|
|
72
|
+
* variables: {
|
|
73
|
+
* assetId: // value for 'assetId'
|
|
74
|
+
* },
|
|
75
|
+
* });
|
|
76
|
+
*/
|
|
77
|
+
function useLikeAssetMutation(baseOptions) {
|
|
78
|
+
return Apollo.useMutation(exports.LikeAssetDocument, baseOptions);
|
|
79
|
+
}
|
|
80
|
+
exports.useLikeAssetMutation = useLikeAssetMutation;
|