@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,455 @@
|
|
|
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 IAttribute = {
|
|
29
|
+
name?: Maybe<Scalars['String']>;
|
|
30
|
+
value?: Maybe<Scalars['String']>;
|
|
31
|
+
};
|
|
32
|
+
export type ICollection = {
|
|
33
|
+
collectionId: Scalars['ID'];
|
|
34
|
+
blockchain?: Maybe<Scalars['String']>;
|
|
35
|
+
identifier?: Maybe<Scalars['String']>;
|
|
36
|
+
contractAddress?: Maybe<Scalars['String']>;
|
|
37
|
+
tokenId?: Maybe<Scalars['String']>;
|
|
38
|
+
blockHeight?: Maybe<Scalars['Long']>;
|
|
39
|
+
blockTimestamp?: Maybe<Scalars['Long']>;
|
|
40
|
+
collectionTitle?: Maybe<Scalars['String']>;
|
|
41
|
+
items?: Maybe<Scalars['Int']>;
|
|
42
|
+
owners?: Maybe<Scalars['Int']>;
|
|
43
|
+
floorPrices?: Maybe<Array<Maybe<ICurrencyAmountPair>>>;
|
|
44
|
+
totalVolumes?: Maybe<Array<Maybe<ICurrencyAmountPair>>>;
|
|
45
|
+
collectionMarkets?: Maybe<Array<Maybe<ICollectionMarket>>>;
|
|
46
|
+
creatorsAddresses?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
47
|
+
creatorsProfiles?: Maybe<Array<Maybe<IProfile>>>;
|
|
48
|
+
verified?: Maybe<Scalars['Boolean']>;
|
|
49
|
+
originalUrls?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
50
|
+
medias?: Maybe<Array<Maybe<IMedia>>>;
|
|
51
|
+
likes?: Maybe<Scalars['Int']>;
|
|
52
|
+
liked?: Maybe<Scalars['Boolean']>;
|
|
53
|
+
/** TODO: remove */
|
|
54
|
+
rank?: Maybe<Scalars['Float']>;
|
|
55
|
+
};
|
|
56
|
+
export type ICollectionAsset = {
|
|
57
|
+
collectionId?: Maybe<Scalars['String']>;
|
|
58
|
+
collectionTitle?: Maybe<Scalars['String']>;
|
|
59
|
+
collectionOriginalUrls?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
60
|
+
collectionMedias?: Maybe<Array<Maybe<IMedia>>>;
|
|
61
|
+
assetId?: Maybe<Scalars['String']>;
|
|
62
|
+
blockchain?: Maybe<Scalars['String']>;
|
|
63
|
+
address?: Maybe<Scalars['String']>;
|
|
64
|
+
tokenId?: Maybe<Scalars['String']>;
|
|
65
|
+
id?: Maybe<Scalars['String']>;
|
|
66
|
+
chainId?: Maybe<Scalars['String']>;
|
|
67
|
+
blockHeight?: Maybe<Scalars['Long']>;
|
|
68
|
+
name?: Maybe<Scalars['String']>;
|
|
69
|
+
description?: Maybe<Scalars['String']>;
|
|
70
|
+
originalUrls?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
71
|
+
medias?: Maybe<Array<Maybe<IMedia>>>;
|
|
72
|
+
ownersAddresses?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
73
|
+
ownersProfiles?: Maybe<Array<Maybe<IProfile>>>;
|
|
74
|
+
creatorsAddresses?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
75
|
+
creatorsProfiles?: Maybe<Array<Maybe<IProfile>>>;
|
|
76
|
+
attributes?: Maybe<Array<Maybe<IAttribute>>>;
|
|
77
|
+
likes?: Maybe<Scalars['Int']>;
|
|
78
|
+
liked?: Maybe<Scalars['Boolean']>;
|
|
79
|
+
/** TODO: remove */
|
|
80
|
+
views?: Maybe<Scalars['Int']>;
|
|
81
|
+
visible?: Maybe<Scalars['Boolean']>;
|
|
82
|
+
createdAt?: Maybe<Scalars['Long']>;
|
|
83
|
+
blurred?: Maybe<Scalars['Boolean']>;
|
|
84
|
+
rank?: Maybe<Scalars['Float']>;
|
|
85
|
+
latestPriceBlockHeight?: Maybe<Scalars['Long']>;
|
|
86
|
+
latestPriceCurrency?: Maybe<Scalars['String']>;
|
|
87
|
+
latestPriceAmount?: Maybe<Scalars['Float']>;
|
|
88
|
+
totalVolumes?: Maybe<Array<Maybe<ICurrencyAmountPair>>>;
|
|
89
|
+
};
|
|
90
|
+
export type ICollectionAssetsPage = {
|
|
91
|
+
collectionAssets?: Maybe<Array<Maybe<ICollectionAsset>>>;
|
|
92
|
+
nextPageToken?: Maybe<Scalars['String']>;
|
|
93
|
+
};
|
|
94
|
+
export type ICollectionMarket = {
|
|
95
|
+
marketId?: Maybe<Scalars['String']>;
|
|
96
|
+
marketName?: Maybe<Scalars['String']>;
|
|
97
|
+
marketDomain?: Maybe<Scalars['String']>;
|
|
98
|
+
marketUrl?: Maybe<Scalars['String']>;
|
|
99
|
+
};
|
|
100
|
+
export type ICollectionsPage = {
|
|
101
|
+
collections?: Maybe<Array<Maybe<ICollection>>>;
|
|
102
|
+
nextPageToken?: Maybe<Scalars['String']>;
|
|
103
|
+
};
|
|
104
|
+
export type ICurrencyAmountPair = {
|
|
105
|
+
currency?: Maybe<Scalars['String']>;
|
|
106
|
+
amount?: Maybe<Scalars['Float']>;
|
|
107
|
+
};
|
|
108
|
+
export type IDynamicCollectionDataInput = {
|
|
109
|
+
collectionId: Scalars['String'];
|
|
110
|
+
assetsPageSize?: Maybe<Scalars['Int']>;
|
|
111
|
+
assetsPageToken?: Maybe<Scalars['String']>;
|
|
112
|
+
};
|
|
113
|
+
export type IDynamicCollectionDataV1 = {
|
|
114
|
+
collectionId: Scalars['String'];
|
|
115
|
+
isLikedByUser?: Maybe<Scalars['Boolean']>;
|
|
116
|
+
likesNum?: Maybe<Scalars['Int']>;
|
|
117
|
+
collectionAssetsPage?: Maybe<ICollectionAssetsPage>;
|
|
118
|
+
};
|
|
119
|
+
export type IMedia = {
|
|
120
|
+
blockchain?: Maybe<Scalars['String']>;
|
|
121
|
+
assetId?: Maybe<Scalars['String']>;
|
|
122
|
+
originalUrl?: Maybe<Scalars['String']>;
|
|
123
|
+
url?: Maybe<Scalars['String']>;
|
|
124
|
+
previewUrl?: Maybe<Scalars['String']>;
|
|
125
|
+
mimeType?: Maybe<Scalars['String']>;
|
|
126
|
+
sizeRatio?: Maybe<Scalars['Float']>;
|
|
127
|
+
fileSize?: Maybe<Scalars['Long']>;
|
|
128
|
+
};
|
|
129
|
+
export type IMutation = {
|
|
130
|
+
setDummy: Scalars['String'];
|
|
131
|
+
likeCollection: Scalars['Boolean'];
|
|
132
|
+
dislikeCollection: Scalars['Boolean'];
|
|
133
|
+
};
|
|
134
|
+
export type IMutationLikeCollectionArgs = {
|
|
135
|
+
collectionId: Scalars['String'];
|
|
136
|
+
};
|
|
137
|
+
export type IMutationDislikeCollectionArgs = {
|
|
138
|
+
collectionId: Scalars['String'];
|
|
139
|
+
};
|
|
140
|
+
export type IProfile = {
|
|
141
|
+
profileId?: Maybe<Scalars['String']>;
|
|
142
|
+
wallet?: Maybe<Scalars['String']>;
|
|
143
|
+
username?: Maybe<Scalars['String']>;
|
|
144
|
+
website?: Maybe<Scalars['String']>;
|
|
145
|
+
about?: Maybe<Scalars['String']>;
|
|
146
|
+
userpic?: Maybe<Scalars['String']>;
|
|
147
|
+
visible?: Maybe<Scalars['Boolean']>;
|
|
148
|
+
};
|
|
149
|
+
/** scalar Upload */
|
|
150
|
+
export type IQuery = {
|
|
151
|
+
getDummy: Scalars['String'];
|
|
152
|
+
fetchCollectionV1: ICollection;
|
|
153
|
+
fetchCollections: ICollectionsPage;
|
|
154
|
+
fetchCollectionsByIdsV1: Array<ICollection>;
|
|
155
|
+
fetchDynamicCollectionDataV1: IDynamicCollectionDataV1;
|
|
156
|
+
fetchDynamicCollectionsDataV1: Array<IDynamicCollectionDataV1>;
|
|
157
|
+
};
|
|
158
|
+
/** scalar Upload */
|
|
159
|
+
export type IQueryFetchCollectionV1Args = {
|
|
160
|
+
collectionId: Scalars['String'];
|
|
161
|
+
};
|
|
162
|
+
/** scalar Upload */
|
|
163
|
+
export type IQueryFetchCollectionsArgs = {
|
|
164
|
+
pageSize: Scalars['Int'];
|
|
165
|
+
pageToken?: Maybe<Scalars['String']>;
|
|
166
|
+
};
|
|
167
|
+
/** scalar Upload */
|
|
168
|
+
export type IQueryFetchCollectionsByIdsV1Args = {
|
|
169
|
+
collectionIds: Array<Scalars['String']>;
|
|
170
|
+
};
|
|
171
|
+
/** scalar Upload */
|
|
172
|
+
export type IQueryFetchDynamicCollectionDataV1Args = {
|
|
173
|
+
input: IDynamicCollectionDataInput;
|
|
174
|
+
};
|
|
175
|
+
/** scalar Upload */
|
|
176
|
+
export type IQueryFetchDynamicCollectionsDataV1Args = {
|
|
177
|
+
input: Array<IDynamicCollectionDataInput>;
|
|
178
|
+
};
|
|
179
|
+
export type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
180
|
+
export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
181
|
+
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
|
182
|
+
};
|
|
183
|
+
export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
|
|
184
|
+
export type ResolverFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => Promise<TResult> | TResult;
|
|
185
|
+
export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
|
|
186
|
+
export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
187
|
+
export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
|
|
188
|
+
subscribe: SubscriptionSubscribeFn<{
|
|
189
|
+
[key in TKey]: TResult;
|
|
190
|
+
}, TParent, TContext, TArgs>;
|
|
191
|
+
resolve?: SubscriptionResolveFn<TResult, {
|
|
192
|
+
[key in TKey]: TResult;
|
|
193
|
+
}, TContext, TArgs>;
|
|
194
|
+
}
|
|
195
|
+
export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
|
|
196
|
+
subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
|
|
197
|
+
resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
|
|
198
|
+
}
|
|
199
|
+
export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> = SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs> | SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
|
|
200
|
+
export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> = ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>) | SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
|
|
201
|
+
export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (parent: TParent, context: TContext, info: GraphQLResolveInfo) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
|
|
202
|
+
export type IsTypeOfResolverFn<T = {}, TContext = {}> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
|
|
203
|
+
export type NextResolverFn<T> = () => Promise<T>;
|
|
204
|
+
export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
205
|
+
/** Mapping between all available schema types and the resolvers types */
|
|
206
|
+
export type IResolversTypes = {
|
|
207
|
+
Attribute: ResolverTypeWrapper<IAttribute>;
|
|
208
|
+
String: ResolverTypeWrapper<Scalars['String']>;
|
|
209
|
+
Collection: ResolverTypeWrapper<ICollection>;
|
|
210
|
+
ID: ResolverTypeWrapper<Scalars['ID']>;
|
|
211
|
+
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
212
|
+
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
213
|
+
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
214
|
+
CollectionAsset: ResolverTypeWrapper<ICollectionAsset>;
|
|
215
|
+
CollectionAssetsPage: ResolverTypeWrapper<ICollectionAssetsPage>;
|
|
216
|
+
CollectionMarket: ResolverTypeWrapper<ICollectionMarket>;
|
|
217
|
+
CollectionsPage: ResolverTypeWrapper<ICollectionsPage>;
|
|
218
|
+
CurrencyAmountPair: ResolverTypeWrapper<ICurrencyAmountPair>;
|
|
219
|
+
DynamicCollectionDataInput: IDynamicCollectionDataInput;
|
|
220
|
+
DynamicCollectionDataV1: ResolverTypeWrapper<IDynamicCollectionDataV1>;
|
|
221
|
+
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
222
|
+
Media: ResolverTypeWrapper<IMedia>;
|
|
223
|
+
Mutation: ResolverTypeWrapper<{}>;
|
|
224
|
+
Profile: ResolverTypeWrapper<IProfile>;
|
|
225
|
+
Query: ResolverTypeWrapper<{}>;
|
|
226
|
+
};
|
|
227
|
+
/** Mapping between all available schema types and the resolvers parents */
|
|
228
|
+
export type IResolversParentTypes = {
|
|
229
|
+
Attribute: IAttribute;
|
|
230
|
+
String: Scalars['String'];
|
|
231
|
+
Collection: ICollection;
|
|
232
|
+
ID: Scalars['ID'];
|
|
233
|
+
Int: Scalars['Int'];
|
|
234
|
+
Boolean: Scalars['Boolean'];
|
|
235
|
+
Float: Scalars['Float'];
|
|
236
|
+
CollectionAsset: ICollectionAsset;
|
|
237
|
+
CollectionAssetsPage: ICollectionAssetsPage;
|
|
238
|
+
CollectionMarket: ICollectionMarket;
|
|
239
|
+
CollectionsPage: ICollectionsPage;
|
|
240
|
+
CurrencyAmountPair: ICurrencyAmountPair;
|
|
241
|
+
DynamicCollectionDataInput: IDynamicCollectionDataInput;
|
|
242
|
+
DynamicCollectionDataV1: IDynamicCollectionDataV1;
|
|
243
|
+
Long: Scalars['Long'];
|
|
244
|
+
Media: IMedia;
|
|
245
|
+
Mutation: {};
|
|
246
|
+
Profile: IProfile;
|
|
247
|
+
Query: {};
|
|
248
|
+
};
|
|
249
|
+
export type IOneOfDirectiveArgs = {};
|
|
250
|
+
export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
251
|
+
export type IAttributeResolvers<ContextType = any, ParentType extends IResolversParentTypes['Attribute'] = IResolversParentTypes['Attribute']> = {
|
|
252
|
+
name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
253
|
+
value?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
254
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
255
|
+
};
|
|
256
|
+
export type ICollectionResolvers<ContextType = any, ParentType extends IResolversParentTypes['Collection'] = IResolversParentTypes['Collection']> = {
|
|
257
|
+
collectionId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
258
|
+
blockchain?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
259
|
+
identifier?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
260
|
+
contractAddress?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
261
|
+
tokenId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
262
|
+
blockHeight?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
263
|
+
blockTimestamp?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
264
|
+
collectionTitle?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
265
|
+
items?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
266
|
+
owners?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
267
|
+
floorPrices?: Resolver<Maybe<Array<Maybe<IResolversTypes['CurrencyAmountPair']>>>, ParentType, ContextType>;
|
|
268
|
+
totalVolumes?: Resolver<Maybe<Array<Maybe<IResolversTypes['CurrencyAmountPair']>>>, ParentType, ContextType>;
|
|
269
|
+
collectionMarkets?: Resolver<Maybe<Array<Maybe<IResolversTypes['CollectionMarket']>>>, ParentType, ContextType>;
|
|
270
|
+
creatorsAddresses?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
271
|
+
creatorsProfiles?: Resolver<Maybe<Array<Maybe<IResolversTypes['Profile']>>>, ParentType, ContextType>;
|
|
272
|
+
verified?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
273
|
+
originalUrls?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
274
|
+
medias?: Resolver<Maybe<Array<Maybe<IResolversTypes['Media']>>>, ParentType, ContextType>;
|
|
275
|
+
likes?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
276
|
+
liked?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
277
|
+
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
278
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
279
|
+
};
|
|
280
|
+
export type ICollectionAssetResolvers<ContextType = any, ParentType extends IResolversParentTypes['CollectionAsset'] = IResolversParentTypes['CollectionAsset']> = {
|
|
281
|
+
collectionId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
282
|
+
collectionTitle?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
283
|
+
collectionOriginalUrls?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
284
|
+
collectionMedias?: Resolver<Maybe<Array<Maybe<IResolversTypes['Media']>>>, ParentType, ContextType>;
|
|
285
|
+
assetId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
286
|
+
blockchain?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
287
|
+
address?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
288
|
+
tokenId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
289
|
+
id?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
290
|
+
chainId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
291
|
+
blockHeight?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
292
|
+
name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
293
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
294
|
+
originalUrls?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
295
|
+
medias?: Resolver<Maybe<Array<Maybe<IResolversTypes['Media']>>>, ParentType, ContextType>;
|
|
296
|
+
ownersAddresses?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
297
|
+
ownersProfiles?: Resolver<Maybe<Array<Maybe<IResolversTypes['Profile']>>>, ParentType, ContextType>;
|
|
298
|
+
creatorsAddresses?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
299
|
+
creatorsProfiles?: Resolver<Maybe<Array<Maybe<IResolversTypes['Profile']>>>, ParentType, ContextType>;
|
|
300
|
+
attributes?: Resolver<Maybe<Array<Maybe<IResolversTypes['Attribute']>>>, ParentType, ContextType>;
|
|
301
|
+
likes?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
302
|
+
liked?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
303
|
+
views?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
304
|
+
visible?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
305
|
+
createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
306
|
+
blurred?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
307
|
+
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
308
|
+
latestPriceBlockHeight?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
309
|
+
latestPriceCurrency?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
310
|
+
latestPriceAmount?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
311
|
+
totalVolumes?: Resolver<Maybe<Array<Maybe<IResolversTypes['CurrencyAmountPair']>>>, ParentType, ContextType>;
|
|
312
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
313
|
+
};
|
|
314
|
+
export type ICollectionAssetsPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['CollectionAssetsPage'] = IResolversParentTypes['CollectionAssetsPage']> = {
|
|
315
|
+
collectionAssets?: Resolver<Maybe<Array<Maybe<IResolversTypes['CollectionAsset']>>>, ParentType, ContextType>;
|
|
316
|
+
nextPageToken?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
317
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
318
|
+
};
|
|
319
|
+
export type ICollectionMarketResolvers<ContextType = any, ParentType extends IResolversParentTypes['CollectionMarket'] = IResolversParentTypes['CollectionMarket']> = {
|
|
320
|
+
marketId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
321
|
+
marketName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
322
|
+
marketDomain?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
323
|
+
marketUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
324
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
325
|
+
};
|
|
326
|
+
export type ICollectionsPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['CollectionsPage'] = IResolversParentTypes['CollectionsPage']> = {
|
|
327
|
+
collections?: Resolver<Maybe<Array<Maybe<IResolversTypes['Collection']>>>, ParentType, ContextType>;
|
|
328
|
+
nextPageToken?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
329
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
330
|
+
};
|
|
331
|
+
export type ICurrencyAmountPairResolvers<ContextType = any, ParentType extends IResolversParentTypes['CurrencyAmountPair'] = IResolversParentTypes['CurrencyAmountPair']> = {
|
|
332
|
+
currency?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
333
|
+
amount?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
334
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
335
|
+
};
|
|
336
|
+
export type IDynamicCollectionDataV1Resolvers<ContextType = any, ParentType extends IResolversParentTypes['DynamicCollectionDataV1'] = IResolversParentTypes['DynamicCollectionDataV1']> = {
|
|
337
|
+
collectionId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
338
|
+
isLikedByUser?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
339
|
+
likesNum?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
340
|
+
collectionAssetsPage?: Resolver<Maybe<IResolversTypes['CollectionAssetsPage']>, ParentType, ContextType>;
|
|
341
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
342
|
+
};
|
|
343
|
+
export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
|
|
344
|
+
name: 'Long';
|
|
345
|
+
}
|
|
346
|
+
export type IMediaResolvers<ContextType = any, ParentType extends IResolversParentTypes['Media'] = IResolversParentTypes['Media']> = {
|
|
347
|
+
blockchain?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
348
|
+
assetId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
349
|
+
originalUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
350
|
+
url?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
351
|
+
previewUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
352
|
+
mimeType?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
353
|
+
sizeRatio?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
354
|
+
fileSize?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
355
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
356
|
+
};
|
|
357
|
+
export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
|
|
358
|
+
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
359
|
+
likeCollection?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationLikeCollectionArgs, 'collectionId'>>;
|
|
360
|
+
dislikeCollection?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDislikeCollectionArgs, 'collectionId'>>;
|
|
361
|
+
};
|
|
362
|
+
export type IProfileResolvers<ContextType = any, ParentType extends IResolversParentTypes['Profile'] = IResolversParentTypes['Profile']> = {
|
|
363
|
+
profileId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
364
|
+
wallet?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
365
|
+
username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
366
|
+
website?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
367
|
+
about?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
368
|
+
userpic?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
369
|
+
visible?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
370
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
371
|
+
};
|
|
372
|
+
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
373
|
+
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
374
|
+
fetchCollectionV1?: Resolver<IResolversTypes['Collection'], ParentType, ContextType, RequireFields<IQueryFetchCollectionV1Args, 'collectionId'>>;
|
|
375
|
+
fetchCollections?: Resolver<IResolversTypes['CollectionsPage'], ParentType, ContextType, RequireFields<IQueryFetchCollectionsArgs, 'pageSize'>>;
|
|
376
|
+
fetchCollectionsByIdsV1?: Resolver<Array<IResolversTypes['Collection']>, ParentType, ContextType, RequireFields<IQueryFetchCollectionsByIdsV1Args, 'collectionIds'>>;
|
|
377
|
+
fetchDynamicCollectionDataV1?: Resolver<IResolversTypes['DynamicCollectionDataV1'], ParentType, ContextType, RequireFields<IQueryFetchDynamicCollectionDataV1Args, 'input'>>;
|
|
378
|
+
fetchDynamicCollectionsDataV1?: Resolver<Array<IResolversTypes['DynamicCollectionDataV1']>, ParentType, ContextType, RequireFields<IQueryFetchDynamicCollectionsDataV1Args, 'input'>>;
|
|
379
|
+
};
|
|
380
|
+
export type IResolvers<ContextType = any> = {
|
|
381
|
+
Attribute?: IAttributeResolvers<ContextType>;
|
|
382
|
+
Collection?: ICollectionResolvers<ContextType>;
|
|
383
|
+
CollectionAsset?: ICollectionAssetResolvers<ContextType>;
|
|
384
|
+
CollectionAssetsPage?: ICollectionAssetsPageResolvers<ContextType>;
|
|
385
|
+
CollectionMarket?: ICollectionMarketResolvers<ContextType>;
|
|
386
|
+
CollectionsPage?: ICollectionsPageResolvers<ContextType>;
|
|
387
|
+
CurrencyAmountPair?: ICurrencyAmountPairResolvers<ContextType>;
|
|
388
|
+
DynamicCollectionDataV1?: IDynamicCollectionDataV1Resolvers<ContextType>;
|
|
389
|
+
Long?: GraphQLScalarType;
|
|
390
|
+
Media?: IMediaResolvers<ContextType>;
|
|
391
|
+
Mutation?: IMutationResolvers<ContextType>;
|
|
392
|
+
Profile?: IProfileResolvers<ContextType>;
|
|
393
|
+
Query?: IQueryResolvers<ContextType>;
|
|
394
|
+
};
|
|
395
|
+
export type IDirectiveResolvers<ContextType = any> = {
|
|
396
|
+
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
397
|
+
};
|
|
398
|
+
export type IDislikeCollectionMutationVariables = Exact<{
|
|
399
|
+
collectionId: Scalars['String'];
|
|
400
|
+
}>;
|
|
401
|
+
export type IDislikeCollectionMutation = Pick<IMutation, 'dislikeCollection'>;
|
|
402
|
+
export type ILikeCollectionMutationVariables = Exact<{
|
|
403
|
+
collectionId: Scalars['String'];
|
|
404
|
+
}>;
|
|
405
|
+
export type ILikeCollectionMutation = Pick<IMutation, 'likeCollection'>;
|
|
406
|
+
export declare const DislikeCollectionDocument: Apollo.DocumentNode;
|
|
407
|
+
export type IDislikeCollectionMutationFn = Apollo.MutationFunction<IDislikeCollectionMutation, IDislikeCollectionMutationVariables>;
|
|
408
|
+
/**
|
|
409
|
+
* __useDislikeCollectionMutation__
|
|
410
|
+
*
|
|
411
|
+
* To run a mutation, you first call `useDislikeCollectionMutation` within a React component and pass it any options that fit your needs.
|
|
412
|
+
* When your component renders, `useDislikeCollectionMutation` returns a tuple that includes:
|
|
413
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
414
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
415
|
+
*
|
|
416
|
+
* @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;
|
|
417
|
+
*
|
|
418
|
+
* @example
|
|
419
|
+
* const [dislikeCollectionMutation, { data, loading, error }] = useDislikeCollectionMutation({
|
|
420
|
+
* variables: {
|
|
421
|
+
* collectionId: // value for 'collectionId'
|
|
422
|
+
* },
|
|
423
|
+
* });
|
|
424
|
+
*/
|
|
425
|
+
export declare function useDislikeCollectionMutation(baseOptions?: Apollo.MutationHookOptions<IDislikeCollectionMutation, IDislikeCollectionMutationVariables>): Apollo.MutationTuple<IDislikeCollectionMutation, Exact<{
|
|
426
|
+
collectionId: string;
|
|
427
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
428
|
+
export type DislikeCollectionMutationHookResult = ReturnType<typeof useDislikeCollectionMutation>;
|
|
429
|
+
export type DislikeCollectionMutationResult = Apollo.MutationResult<IDislikeCollectionMutation>;
|
|
430
|
+
export type DislikeCollectionMutationOptions = Apollo.BaseMutationOptions<IDislikeCollectionMutation, IDislikeCollectionMutationVariables>;
|
|
431
|
+
export declare const LikeCollectionDocument: Apollo.DocumentNode;
|
|
432
|
+
export type ILikeCollectionMutationFn = Apollo.MutationFunction<ILikeCollectionMutation, ILikeCollectionMutationVariables>;
|
|
433
|
+
/**
|
|
434
|
+
* __useLikeCollectionMutation__
|
|
435
|
+
*
|
|
436
|
+
* To run a mutation, you first call `useLikeCollectionMutation` within a React component and pass it any options that fit your needs.
|
|
437
|
+
* When your component renders, `useLikeCollectionMutation` returns a tuple that includes:
|
|
438
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
439
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
440
|
+
*
|
|
441
|
+
* @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;
|
|
442
|
+
*
|
|
443
|
+
* @example
|
|
444
|
+
* const [likeCollectionMutation, { data, loading, error }] = useLikeCollectionMutation({
|
|
445
|
+
* variables: {
|
|
446
|
+
* collectionId: // value for 'collectionId'
|
|
447
|
+
* },
|
|
448
|
+
* });
|
|
449
|
+
*/
|
|
450
|
+
export declare function useLikeCollectionMutation(baseOptions?: Apollo.MutationHookOptions<ILikeCollectionMutation, ILikeCollectionMutationVariables>): Apollo.MutationTuple<ILikeCollectionMutation, Exact<{
|
|
451
|
+
collectionId: string;
|
|
452
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
453
|
+
export type LikeCollectionMutationHookResult = ReturnType<typeof useLikeCollectionMutation>;
|
|
454
|
+
export type LikeCollectionMutationResult = Apollo.MutationResult<ILikeCollectionMutation>;
|
|
455
|
+
export type LikeCollectionMutationOptions = Apollo.BaseMutationOptions<ILikeCollectionMutation, ILikeCollectionMutationVariables>;
|
|
@@ -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.useLikeCollectionMutation = exports.LikeCollectionDocument = exports.useDislikeCollectionMutation = exports.DislikeCollectionDocument = void 0;
|
|
27
|
+
const client_1 = require("@apollo/client");
|
|
28
|
+
const Apollo = __importStar(require("@apollo/client"));
|
|
29
|
+
exports.DislikeCollectionDocument = (0, client_1.gql) `
|
|
30
|
+
mutation DislikeCollection($collectionId: String!) {
|
|
31
|
+
dislikeCollection(collectionId: $collectionId)
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
/**
|
|
35
|
+
* __useDislikeCollectionMutation__
|
|
36
|
+
*
|
|
37
|
+
* To run a mutation, you first call `useDislikeCollectionMutation` within a React component and pass it any options that fit your needs.
|
|
38
|
+
* When your component renders, `useDislikeCollectionMutation` 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 [dislikeCollectionMutation, { data, loading, error }] = useDislikeCollectionMutation({
|
|
46
|
+
* variables: {
|
|
47
|
+
* collectionId: // value for 'collectionId'
|
|
48
|
+
* },
|
|
49
|
+
* });
|
|
50
|
+
*/
|
|
51
|
+
function useDislikeCollectionMutation(baseOptions) {
|
|
52
|
+
return Apollo.useMutation(exports.DislikeCollectionDocument, baseOptions);
|
|
53
|
+
}
|
|
54
|
+
exports.useDislikeCollectionMutation = useDislikeCollectionMutation;
|
|
55
|
+
exports.LikeCollectionDocument = (0, client_1.gql) `
|
|
56
|
+
mutation LikeCollection($collectionId: String!) {
|
|
57
|
+
likeCollection(collectionId: $collectionId)
|
|
58
|
+
}
|
|
59
|
+
`;
|
|
60
|
+
/**
|
|
61
|
+
* __useLikeCollectionMutation__
|
|
62
|
+
*
|
|
63
|
+
* To run a mutation, you first call `useLikeCollectionMutation` within a React component and pass it any options that fit your needs.
|
|
64
|
+
* When your component renders, `useLikeCollectionMutation` 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 [likeCollectionMutation, { data, loading, error }] = useLikeCollectionMutation({
|
|
72
|
+
* variables: {
|
|
73
|
+
* collectionId: // value for 'collectionId'
|
|
74
|
+
* },
|
|
75
|
+
* });
|
|
76
|
+
*/
|
|
77
|
+
function useLikeCollectionMutation(baseOptions) {
|
|
78
|
+
return Apollo.useMutation(exports.LikeCollectionDocument, baseOptions);
|
|
79
|
+
}
|
|
80
|
+
exports.useLikeCollectionMutation = useLikeCollectionMutation;
|