@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,1090 @@
|
|
|
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
|
+
/** A 64-bit signed integer */
|
|
18
|
+
Long: any;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
export type IGalleriesPageV2 = {
|
|
23
|
+
galleries?: Maybe<Array<Maybe<IGalleryV2>>>;
|
|
24
|
+
nextPageToken?: Maybe<Scalars['String']>;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export type IGalleryV2 = {
|
|
28
|
+
galleryId: Scalars['ID'];
|
|
29
|
+
galleryType: Scalars['String'];
|
|
30
|
+
name: Scalars['String'];
|
|
31
|
+
description?: Maybe<Scalars['String']>;
|
|
32
|
+
userId: Scalars['ID'];
|
|
33
|
+
username?: Maybe<Scalars['String']>;
|
|
34
|
+
userpic?: Maybe<Scalars['String']>;
|
|
35
|
+
userWallets?: Maybe<Array<Maybe<IWallet>>>;
|
|
36
|
+
banner?: Maybe<Scalars['String']>;
|
|
37
|
+
createdAt?: Maybe<Scalars['Long']>;
|
|
38
|
+
items?: Maybe<Scalars['Int']>;
|
|
39
|
+
views?: Maybe<Scalars['Int']>;
|
|
40
|
+
publiclyAccessible?: Maybe<Scalars['Boolean']>;
|
|
41
|
+
nsfw?: Maybe<Scalars['Int']>;
|
|
42
|
+
rank?: Maybe<Scalars['Float']>;
|
|
43
|
+
creationIds?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
export type IMutation = {
|
|
48
|
+
setDummy: Scalars['String'];
|
|
49
|
+
createGalleryV2: Scalars['ID'];
|
|
50
|
+
createFavoriteListV2: Scalars['ID'];
|
|
51
|
+
addCreationsToGalleryV2: Scalars['Boolean'];
|
|
52
|
+
addAssetsToGalleryV2: Scalars['Boolean'];
|
|
53
|
+
addCollectionsToGalleryV2: Scalars['Boolean'];
|
|
54
|
+
removeCreationFromGalleryV2: Scalars['Boolean'];
|
|
55
|
+
removeAssetFromGalleryV2: Scalars['Boolean'];
|
|
56
|
+
removeCollectionFromGalleryV2: Scalars['Boolean'];
|
|
57
|
+
editGallery: Scalars['Boolean'];
|
|
58
|
+
deleteGallery: Scalars['Boolean'];
|
|
59
|
+
};
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
export type IMutationCreateGalleryV2Args = {
|
|
63
|
+
name: Scalars['String'];
|
|
64
|
+
description?: Maybe<Scalars['String']>;
|
|
65
|
+
publicAccessible?: Maybe<Scalars['Boolean']>;
|
|
66
|
+
creationIds?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
export type IMutationCreateFavoriteListV2Args = {
|
|
71
|
+
name: Scalars['String'];
|
|
72
|
+
description?: Maybe<Scalars['String']>;
|
|
73
|
+
publicAccessible?: Maybe<Scalars['Boolean']>;
|
|
74
|
+
creationIds?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
export type IMutationAddCreationsToGalleryV2Args = {
|
|
79
|
+
galleryId: Scalars['ID'];
|
|
80
|
+
creationIds: Array<Scalars['String']>;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
export type IMutationAddAssetsToGalleryV2Args = {
|
|
85
|
+
galleryId: Scalars['ID'];
|
|
86
|
+
assetIds: Array<Scalars['String']>;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
export type IMutationAddCollectionsToGalleryV2Args = {
|
|
91
|
+
galleryId: Scalars['ID'];
|
|
92
|
+
collectionIds: Array<Scalars['String']>;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
export type IMutationRemoveCreationFromGalleryV2Args = {
|
|
97
|
+
galleryId: Scalars['ID'];
|
|
98
|
+
creationId: Scalars['String'];
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
export type IMutationRemoveAssetFromGalleryV2Args = {
|
|
103
|
+
galleryId: Scalars['ID'];
|
|
104
|
+
assetId: Scalars['String'];
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
export type IMutationRemoveCollectionFromGalleryV2Args = {
|
|
109
|
+
galleryId: Scalars['ID'];
|
|
110
|
+
collectionId: Scalars['String'];
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
export type IMutationEditGalleryArgs = {
|
|
115
|
+
galleryId: Scalars['ID'];
|
|
116
|
+
name?: Maybe<Scalars['String']>;
|
|
117
|
+
description?: Maybe<Scalars['String']>;
|
|
118
|
+
publiclyAccessible?: Maybe<Scalars['Boolean']>;
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
export type IMutationDeleteGalleryArgs = {
|
|
123
|
+
galleryId: Scalars['ID'];
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
export type IQuery = {
|
|
127
|
+
getDummy: Scalars['String'];
|
|
128
|
+
fetchGalleryV2: IGalleryV2;
|
|
129
|
+
fetchUserGalleriesV2: IGalleriesPageV2;
|
|
130
|
+
fetchUserFavoritesV2: IGalleriesPageV2;
|
|
131
|
+
fetchMyGalleriesV2: IGalleriesPageV2;
|
|
132
|
+
fetchMyFavoritesV2: IGalleriesPageV2;
|
|
133
|
+
};
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
export type IQueryFetchGalleryV2Args = {
|
|
137
|
+
galleryId: Scalars['String'];
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
export type IQueryFetchUserGalleriesV2Args = {
|
|
142
|
+
userId: Scalars['ID'];
|
|
143
|
+
pageSize: Scalars['Int'];
|
|
144
|
+
pageToken?: Maybe<Scalars['String']>;
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
export type IQueryFetchUserFavoritesV2Args = {
|
|
149
|
+
userId: Scalars['ID'];
|
|
150
|
+
pageSize: Scalars['Int'];
|
|
151
|
+
pageToken?: Maybe<Scalars['String']>;
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
export type IQueryFetchMyGalleriesV2Args = {
|
|
156
|
+
pageSize: Scalars['Int'];
|
|
157
|
+
pageToken?: Maybe<Scalars['String']>;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
export type IQueryFetchMyFavoritesV2Args = {
|
|
162
|
+
pageSize: Scalars['Int'];
|
|
163
|
+
pageToken?: Maybe<Scalars['String']>;
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
export type IWallet = {
|
|
167
|
+
userId: Scalars['ID'];
|
|
168
|
+
address: Scalars['String'];
|
|
169
|
+
walletName: Scalars['String'];
|
|
170
|
+
blockchain: Scalars['String'];
|
|
171
|
+
chainId?: Maybe<Scalars['String']>;
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
export type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
180
|
+
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
|
181
|
+
};
|
|
182
|
+
export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
|
|
183
|
+
|
|
184
|
+
export type ResolverFn<TResult, TParent, TContext, TArgs> = (
|
|
185
|
+
parent: TParent,
|
|
186
|
+
args: TArgs,
|
|
187
|
+
context: TContext,
|
|
188
|
+
info: GraphQLResolveInfo
|
|
189
|
+
) => Promise<TResult> | TResult;
|
|
190
|
+
|
|
191
|
+
export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (
|
|
192
|
+
parent: TParent,
|
|
193
|
+
args: TArgs,
|
|
194
|
+
context: TContext,
|
|
195
|
+
info: GraphQLResolveInfo
|
|
196
|
+
) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
|
|
197
|
+
|
|
198
|
+
export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (
|
|
199
|
+
parent: TParent,
|
|
200
|
+
args: TArgs,
|
|
201
|
+
context: TContext,
|
|
202
|
+
info: GraphQLResolveInfo
|
|
203
|
+
) => TResult | Promise<TResult>;
|
|
204
|
+
|
|
205
|
+
export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
|
|
206
|
+
subscribe: SubscriptionSubscribeFn<{ [key in TKey]: TResult }, TParent, TContext, TArgs>;
|
|
207
|
+
resolve?: SubscriptionResolveFn<TResult, { [key in TKey]: TResult }, TContext, TArgs>;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
|
|
211
|
+
subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
|
|
212
|
+
resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> =
|
|
216
|
+
| SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs>
|
|
217
|
+
| SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
|
|
218
|
+
|
|
219
|
+
export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> =
|
|
220
|
+
| ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>)
|
|
221
|
+
| SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
|
|
222
|
+
|
|
223
|
+
export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (
|
|
224
|
+
parent: TParent,
|
|
225
|
+
context: TContext,
|
|
226
|
+
info: GraphQLResolveInfo
|
|
227
|
+
) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
|
|
228
|
+
|
|
229
|
+
export type IsTypeOfResolverFn<T = {}, TContext = {}> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
|
|
230
|
+
|
|
231
|
+
export type NextResolverFn<T> = () => Promise<T>;
|
|
232
|
+
|
|
233
|
+
export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (
|
|
234
|
+
next: NextResolverFn<TResult>,
|
|
235
|
+
parent: TParent,
|
|
236
|
+
args: TArgs,
|
|
237
|
+
context: TContext,
|
|
238
|
+
info: GraphQLResolveInfo
|
|
239
|
+
) => TResult | Promise<TResult>;
|
|
240
|
+
|
|
241
|
+
/** Mapping between all available schema types and the resolvers types */
|
|
242
|
+
export type IResolversTypes = {
|
|
243
|
+
GalleriesPageV2: ResolverTypeWrapper<IGalleriesPageV2>;
|
|
244
|
+
String: ResolverTypeWrapper<Scalars['String']>;
|
|
245
|
+
GalleryV2: ResolverTypeWrapper<IGalleryV2>;
|
|
246
|
+
ID: ResolverTypeWrapper<Scalars['ID']>;
|
|
247
|
+
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
248
|
+
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
249
|
+
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
250
|
+
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
251
|
+
Mutation: ResolverTypeWrapper<{}>;
|
|
252
|
+
Query: ResolverTypeWrapper<{}>;
|
|
253
|
+
Wallet: ResolverTypeWrapper<IWallet>;
|
|
254
|
+
};
|
|
255
|
+
|
|
256
|
+
/** Mapping between all available schema types and the resolvers parents */
|
|
257
|
+
export type IResolversParentTypes = {
|
|
258
|
+
GalleriesPageV2: IGalleriesPageV2;
|
|
259
|
+
String: Scalars['String'];
|
|
260
|
+
GalleryV2: IGalleryV2;
|
|
261
|
+
ID: Scalars['ID'];
|
|
262
|
+
Int: Scalars['Int'];
|
|
263
|
+
Boolean: Scalars['Boolean'];
|
|
264
|
+
Float: Scalars['Float'];
|
|
265
|
+
Long: Scalars['Long'];
|
|
266
|
+
Mutation: {};
|
|
267
|
+
Query: {};
|
|
268
|
+
Wallet: IWallet;
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
export type IOneOfDirectiveArgs = { };
|
|
272
|
+
|
|
273
|
+
export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
274
|
+
|
|
275
|
+
export type IGalleriesPageV2Resolvers<ContextType = any, ParentType extends IResolversParentTypes['GalleriesPageV2'] = IResolversParentTypes['GalleriesPageV2']> = {
|
|
276
|
+
galleries?: Resolver<Maybe<Array<Maybe<IResolversTypes['GalleryV2']>>>, ParentType, ContextType>;
|
|
277
|
+
nextPageToken?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
278
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
export type IGalleryV2Resolvers<ContextType = any, ParentType extends IResolversParentTypes['GalleryV2'] = IResolversParentTypes['GalleryV2']> = {
|
|
282
|
+
galleryId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
283
|
+
galleryType?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
284
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
285
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
286
|
+
userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
287
|
+
username?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
288
|
+
userpic?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
289
|
+
userWallets?: Resolver<Maybe<Array<Maybe<IResolversTypes['Wallet']>>>, ParentType, ContextType>;
|
|
290
|
+
banner?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
291
|
+
createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
292
|
+
items?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
293
|
+
views?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
294
|
+
publiclyAccessible?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
295
|
+
nsfw?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
296
|
+
rank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
297
|
+
creationIds?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
298
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
299
|
+
};
|
|
300
|
+
|
|
301
|
+
export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
|
|
302
|
+
name: 'Long';
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
|
|
306
|
+
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
307
|
+
createGalleryV2?: Resolver<IResolversTypes['ID'], ParentType, ContextType, RequireFields<IMutationCreateGalleryV2Args, 'name'>>;
|
|
308
|
+
createFavoriteListV2?: Resolver<IResolversTypes['ID'], ParentType, ContextType, RequireFields<IMutationCreateFavoriteListV2Args, 'name'>>;
|
|
309
|
+
addCreationsToGalleryV2?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddCreationsToGalleryV2Args, 'galleryId' | 'creationIds'>>;
|
|
310
|
+
addAssetsToGalleryV2?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddAssetsToGalleryV2Args, 'galleryId' | 'assetIds'>>;
|
|
311
|
+
addCollectionsToGalleryV2?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddCollectionsToGalleryV2Args, 'galleryId' | 'collectionIds'>>;
|
|
312
|
+
removeCreationFromGalleryV2?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveCreationFromGalleryV2Args, 'galleryId' | 'creationId'>>;
|
|
313
|
+
removeAssetFromGalleryV2?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveAssetFromGalleryV2Args, 'galleryId' | 'assetId'>>;
|
|
314
|
+
removeCollectionFromGalleryV2?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveCollectionFromGalleryV2Args, 'galleryId' | 'collectionId'>>;
|
|
315
|
+
editGallery?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationEditGalleryArgs, 'galleryId'>>;
|
|
316
|
+
deleteGallery?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationDeleteGalleryArgs, 'galleryId'>>;
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
320
|
+
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
321
|
+
fetchGalleryV2?: Resolver<IResolversTypes['GalleryV2'], ParentType, ContextType, RequireFields<IQueryFetchGalleryV2Args, 'galleryId'>>;
|
|
322
|
+
fetchUserGalleriesV2?: Resolver<IResolversTypes['GalleriesPageV2'], ParentType, ContextType, RequireFields<IQueryFetchUserGalleriesV2Args, 'userId' | 'pageSize'>>;
|
|
323
|
+
fetchUserFavoritesV2?: Resolver<IResolversTypes['GalleriesPageV2'], ParentType, ContextType, RequireFields<IQueryFetchUserFavoritesV2Args, 'userId' | 'pageSize'>>;
|
|
324
|
+
fetchMyGalleriesV2?: Resolver<IResolversTypes['GalleriesPageV2'], ParentType, ContextType, RequireFields<IQueryFetchMyGalleriesV2Args, 'pageSize'>>;
|
|
325
|
+
fetchMyFavoritesV2?: Resolver<IResolversTypes['GalleriesPageV2'], ParentType, ContextType, RequireFields<IQueryFetchMyFavoritesV2Args, 'pageSize'>>;
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
export type IWalletResolvers<ContextType = any, ParentType extends IResolversParentTypes['Wallet'] = IResolversParentTypes['Wallet']> = {
|
|
329
|
+
userId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
330
|
+
address?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
331
|
+
walletName?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
332
|
+
blockchain?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
333
|
+
chainId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
334
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
335
|
+
};
|
|
336
|
+
|
|
337
|
+
export type IResolvers<ContextType = any> = {
|
|
338
|
+
GalleriesPageV2?: IGalleriesPageV2Resolvers<ContextType>;
|
|
339
|
+
GalleryV2?: IGalleryV2Resolvers<ContextType>;
|
|
340
|
+
Long?: GraphQLScalarType;
|
|
341
|
+
Mutation?: IMutationResolvers<ContextType>;
|
|
342
|
+
Query?: IQueryResolvers<ContextType>;
|
|
343
|
+
Wallet?: IWalletResolvers<ContextType>;
|
|
344
|
+
};
|
|
345
|
+
|
|
346
|
+
export type IDirectiveResolvers<ContextType = any> = {
|
|
347
|
+
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
348
|
+
};
|
|
349
|
+
|
|
350
|
+
export type IAddAssetsToGalleryV2MutationVariables = Exact<{
|
|
351
|
+
galleryId: Scalars['ID'];
|
|
352
|
+
assetIds: Array<Scalars['String']>;
|
|
353
|
+
}>;
|
|
354
|
+
|
|
355
|
+
|
|
356
|
+
export type IAddAssetsToGalleryV2Mutation = Pick<IMutation, 'addAssetsToGalleryV2'>;
|
|
357
|
+
|
|
358
|
+
export type IAddCollectionsToGalleryV2MutationVariables = Exact<{
|
|
359
|
+
galleryId: Scalars['ID'];
|
|
360
|
+
collectionIds: Array<Scalars['String']>;
|
|
361
|
+
}>;
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
export type IAddCollectionsToGalleryV2Mutation = Pick<IMutation, 'addCollectionsToGalleryV2'>;
|
|
365
|
+
|
|
366
|
+
export type IAddCreationsToGalleryV2MutationVariables = Exact<{
|
|
367
|
+
galleryId: Scalars['ID'];
|
|
368
|
+
creationIds: Array<Scalars['String']>;
|
|
369
|
+
}>;
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
export type IAddCreationsToGalleryV2Mutation = Pick<IMutation, 'addCreationsToGalleryV2'>;
|
|
373
|
+
|
|
374
|
+
export type ICreateFavoriteListV2MutationVariables = Exact<{
|
|
375
|
+
name: Scalars['String'];
|
|
376
|
+
description?: Maybe<Scalars['String']>;
|
|
377
|
+
publicAccessible?: Maybe<Scalars['Boolean']>;
|
|
378
|
+
creationIds?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
379
|
+
}>;
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
export type ICreateFavoriteListV2Mutation = Pick<IMutation, 'createFavoriteListV2'>;
|
|
383
|
+
|
|
384
|
+
export type ICreateGalleryV2MutationVariables = Exact<{
|
|
385
|
+
name: Scalars['String'];
|
|
386
|
+
description?: Maybe<Scalars['String']>;
|
|
387
|
+
publicAccessible?: Maybe<Scalars['Boolean']>;
|
|
388
|
+
creationIds?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
389
|
+
}>;
|
|
390
|
+
|
|
391
|
+
|
|
392
|
+
export type ICreateGalleryV2Mutation = Pick<IMutation, 'createGalleryV2'>;
|
|
393
|
+
|
|
394
|
+
export type IDeleteGalleryMutationVariables = Exact<{
|
|
395
|
+
galleryId: Scalars['ID'];
|
|
396
|
+
}>;
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
export type IDeleteGalleryMutation = Pick<IMutation, 'deleteGallery'>;
|
|
400
|
+
|
|
401
|
+
export type IEditGalleryMutationVariables = Exact<{
|
|
402
|
+
galleryId: Scalars['ID'];
|
|
403
|
+
name?: Maybe<Scalars['String']>;
|
|
404
|
+
description?: Maybe<Scalars['String']>;
|
|
405
|
+
}>;
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
export type IEditGalleryMutation = Pick<IMutation, 'editGallery'>;
|
|
409
|
+
|
|
410
|
+
export type IRemoveAssetFromGalleryV2MutationVariables = Exact<{
|
|
411
|
+
galleryId: Scalars['ID'];
|
|
412
|
+
assetId: Scalars['String'];
|
|
413
|
+
}>;
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
export type IRemoveAssetFromGalleryV2Mutation = Pick<IMutation, 'removeAssetFromGalleryV2'>;
|
|
417
|
+
|
|
418
|
+
export type IRemoveCollectionFromGalleryV2MutationVariables = Exact<{
|
|
419
|
+
galleryId: Scalars['ID'];
|
|
420
|
+
collectionId: Scalars['String'];
|
|
421
|
+
}>;
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
export type IRemoveCollectionFromGalleryV2Mutation = Pick<IMutation, 'removeCollectionFromGalleryV2'>;
|
|
425
|
+
|
|
426
|
+
export type IRemoveCreationFromGalleryV2MutationVariables = Exact<{
|
|
427
|
+
galleryId: Scalars['ID'];
|
|
428
|
+
creationId: Scalars['String'];
|
|
429
|
+
}>;
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
export type IRemoveCreationFromGalleryV2Mutation = Pick<IMutation, 'removeCreationFromGalleryV2'>;
|
|
433
|
+
|
|
434
|
+
export type IFetchGalleryV2QueryVariables = Exact<{
|
|
435
|
+
galleryId: Scalars['String'];
|
|
436
|
+
}>;
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
export type IFetchGalleryV2Query = { fetchGalleryV2: Pick<IGalleryV2, 'galleryId' | 'galleryType' | 'name' | 'description' | 'userId' | 'username' | 'userpic' | 'banner' | 'createdAt' | 'items' | 'views' | 'publiclyAccessible' | 'nsfw' | 'creationIds'> };
|
|
440
|
+
|
|
441
|
+
export type IFetchMyFavoritesV2QueryVariables = Exact<{
|
|
442
|
+
pageSize: Scalars['Int'];
|
|
443
|
+
pageToken?: Maybe<Scalars['String']>;
|
|
444
|
+
}>;
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
export type IFetchMyFavoritesV2Query = { fetchMyFavoritesV2: (
|
|
448
|
+
Pick<IGalleriesPageV2, 'nextPageToken'>
|
|
449
|
+
& { galleries?: Maybe<Array<Maybe<Pick<IGalleryV2, 'galleryId' | 'galleryType' | 'name' | 'description' | 'userId' | 'username' | 'userpic' | 'banner' | 'createdAt' | 'items' | 'views' | 'publiclyAccessible' | 'nsfw' | 'creationIds'>>>> }
|
|
450
|
+
) };
|
|
451
|
+
|
|
452
|
+
export type IFetchMyGalleriesV2QueryVariables = Exact<{
|
|
453
|
+
pageSize: Scalars['Int'];
|
|
454
|
+
pageToken?: Maybe<Scalars['String']>;
|
|
455
|
+
}>;
|
|
456
|
+
|
|
457
|
+
|
|
458
|
+
export type IFetchMyGalleriesV2Query = { fetchMyGalleriesV2: (
|
|
459
|
+
Pick<IGalleriesPageV2, 'nextPageToken'>
|
|
460
|
+
& { galleries?: Maybe<Array<Maybe<Pick<IGalleryV2, 'galleryId' | 'galleryType' | 'name' | 'description' | 'userId' | 'username' | 'userpic' | 'banner' | 'createdAt' | 'items' | 'views' | 'publiclyAccessible' | 'nsfw' | 'creationIds'>>>> }
|
|
461
|
+
) };
|
|
462
|
+
|
|
463
|
+
export type IFetchUserFavoritesV2QueryVariables = Exact<{
|
|
464
|
+
userId: Scalars['ID'];
|
|
465
|
+
pageSize: Scalars['Int'];
|
|
466
|
+
pageToken?: Maybe<Scalars['String']>;
|
|
467
|
+
}>;
|
|
468
|
+
|
|
469
|
+
|
|
470
|
+
export type IFetchUserFavoritesV2Query = { fetchUserFavoritesV2: (
|
|
471
|
+
Pick<IGalleriesPageV2, 'nextPageToken'>
|
|
472
|
+
& { galleries?: Maybe<Array<Maybe<(
|
|
473
|
+
Pick<IGalleryV2, 'galleryId' | 'galleryType' | 'name' | 'description' | 'userId' | 'username' | 'userpic' | 'banner' | 'createdAt' | 'items' | 'views' | 'publiclyAccessible' | 'nsfw' | 'creationIds'>
|
|
474
|
+
& { userWallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId'>>>> }
|
|
475
|
+
)>>> }
|
|
476
|
+
) };
|
|
477
|
+
|
|
478
|
+
export type IFetchUserGalleriesV2QueryVariables = Exact<{
|
|
479
|
+
userId: Scalars['ID'];
|
|
480
|
+
pageSize: Scalars['Int'];
|
|
481
|
+
pageToken?: Maybe<Scalars['String']>;
|
|
482
|
+
}>;
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
export type IFetchUserGalleriesV2Query = { fetchUserGalleriesV2: (
|
|
486
|
+
Pick<IGalleriesPageV2, 'nextPageToken'>
|
|
487
|
+
& { galleries?: Maybe<Array<Maybe<(
|
|
488
|
+
Pick<IGalleryV2, 'galleryId' | 'galleryType' | 'name' | 'description' | 'userId' | 'username' | 'userpic' | 'banner' | 'createdAt' | 'items' | 'views' | 'publiclyAccessible' | 'nsfw' | 'creationIds'>
|
|
489
|
+
& { userWallets?: Maybe<Array<Maybe<Pick<IWallet, 'userId' | 'address' | 'walletName' | 'blockchain' | 'chainId'>>>> }
|
|
490
|
+
)>>> }
|
|
491
|
+
) };
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
export const AddAssetsToGalleryV2Document = gql`
|
|
495
|
+
mutation AddAssetsToGalleryV2($galleryId: ID!, $assetIds: [String!]!) {
|
|
496
|
+
addAssetsToGalleryV2(galleryId: $galleryId, assetIds: $assetIds)
|
|
497
|
+
}
|
|
498
|
+
`;
|
|
499
|
+
export type IAddAssetsToGalleryV2MutationFn = Apollo.MutationFunction<IAddAssetsToGalleryV2Mutation, IAddAssetsToGalleryV2MutationVariables>;
|
|
500
|
+
|
|
501
|
+
/**
|
|
502
|
+
* __useAddAssetsToGalleryV2Mutation__
|
|
503
|
+
*
|
|
504
|
+
* To run a mutation, you first call `useAddAssetsToGalleryV2Mutation` within a React component and pass it any options that fit your needs.
|
|
505
|
+
* When your component renders, `useAddAssetsToGalleryV2Mutation` returns a tuple that includes:
|
|
506
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
507
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
508
|
+
*
|
|
509
|
+
* @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;
|
|
510
|
+
*
|
|
511
|
+
* @example
|
|
512
|
+
* const [addAssetsToGalleryV2Mutation, { data, loading, error }] = useAddAssetsToGalleryV2Mutation({
|
|
513
|
+
* variables: {
|
|
514
|
+
* galleryId: // value for 'galleryId'
|
|
515
|
+
* assetIds: // value for 'assetIds'
|
|
516
|
+
* },
|
|
517
|
+
* });
|
|
518
|
+
*/
|
|
519
|
+
export function useAddAssetsToGalleryV2Mutation(baseOptions?: Apollo.MutationHookOptions<IAddAssetsToGalleryV2Mutation, IAddAssetsToGalleryV2MutationVariables>) {
|
|
520
|
+
return Apollo.useMutation<IAddAssetsToGalleryV2Mutation, IAddAssetsToGalleryV2MutationVariables>(AddAssetsToGalleryV2Document, baseOptions);
|
|
521
|
+
}
|
|
522
|
+
export type AddAssetsToGalleryV2MutationHookResult = ReturnType<typeof useAddAssetsToGalleryV2Mutation>;
|
|
523
|
+
export type AddAssetsToGalleryV2MutationResult = Apollo.MutationResult<IAddAssetsToGalleryV2Mutation>;
|
|
524
|
+
export type AddAssetsToGalleryV2MutationOptions = Apollo.BaseMutationOptions<IAddAssetsToGalleryV2Mutation, IAddAssetsToGalleryV2MutationVariables>;
|
|
525
|
+
export const AddCollectionsToGalleryV2Document = gql`
|
|
526
|
+
mutation AddCollectionsToGalleryV2($galleryId: ID!, $collectionIds: [String!]!) {
|
|
527
|
+
addCollectionsToGalleryV2(galleryId: $galleryId, collectionIds: $collectionIds)
|
|
528
|
+
}
|
|
529
|
+
`;
|
|
530
|
+
export type IAddCollectionsToGalleryV2MutationFn = Apollo.MutationFunction<IAddCollectionsToGalleryV2Mutation, IAddCollectionsToGalleryV2MutationVariables>;
|
|
531
|
+
|
|
532
|
+
/**
|
|
533
|
+
* __useAddCollectionsToGalleryV2Mutation__
|
|
534
|
+
*
|
|
535
|
+
* To run a mutation, you first call `useAddCollectionsToGalleryV2Mutation` within a React component and pass it any options that fit your needs.
|
|
536
|
+
* When your component renders, `useAddCollectionsToGalleryV2Mutation` returns a tuple that includes:
|
|
537
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
538
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
539
|
+
*
|
|
540
|
+
* @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;
|
|
541
|
+
*
|
|
542
|
+
* @example
|
|
543
|
+
* const [addCollectionsToGalleryV2Mutation, { data, loading, error }] = useAddCollectionsToGalleryV2Mutation({
|
|
544
|
+
* variables: {
|
|
545
|
+
* galleryId: // value for 'galleryId'
|
|
546
|
+
* collectionIds: // value for 'collectionIds'
|
|
547
|
+
* },
|
|
548
|
+
* });
|
|
549
|
+
*/
|
|
550
|
+
export function useAddCollectionsToGalleryV2Mutation(baseOptions?: Apollo.MutationHookOptions<IAddCollectionsToGalleryV2Mutation, IAddCollectionsToGalleryV2MutationVariables>) {
|
|
551
|
+
return Apollo.useMutation<IAddCollectionsToGalleryV2Mutation, IAddCollectionsToGalleryV2MutationVariables>(AddCollectionsToGalleryV2Document, baseOptions);
|
|
552
|
+
}
|
|
553
|
+
export type AddCollectionsToGalleryV2MutationHookResult = ReturnType<typeof useAddCollectionsToGalleryV2Mutation>;
|
|
554
|
+
export type AddCollectionsToGalleryV2MutationResult = Apollo.MutationResult<IAddCollectionsToGalleryV2Mutation>;
|
|
555
|
+
export type AddCollectionsToGalleryV2MutationOptions = Apollo.BaseMutationOptions<IAddCollectionsToGalleryV2Mutation, IAddCollectionsToGalleryV2MutationVariables>;
|
|
556
|
+
export const AddCreationsToGalleryV2Document = gql`
|
|
557
|
+
mutation AddCreationsToGalleryV2($galleryId: ID!, $creationIds: [String!]!) {
|
|
558
|
+
addCreationsToGalleryV2(galleryId: $galleryId, creationIds: $creationIds)
|
|
559
|
+
}
|
|
560
|
+
`;
|
|
561
|
+
export type IAddCreationsToGalleryV2MutationFn = Apollo.MutationFunction<IAddCreationsToGalleryV2Mutation, IAddCreationsToGalleryV2MutationVariables>;
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* __useAddCreationsToGalleryV2Mutation__
|
|
565
|
+
*
|
|
566
|
+
* To run a mutation, you first call `useAddCreationsToGalleryV2Mutation` within a React component and pass it any options that fit your needs.
|
|
567
|
+
* When your component renders, `useAddCreationsToGalleryV2Mutation` returns a tuple that includes:
|
|
568
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
569
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
570
|
+
*
|
|
571
|
+
* @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;
|
|
572
|
+
*
|
|
573
|
+
* @example
|
|
574
|
+
* const [addCreationsToGalleryV2Mutation, { data, loading, error }] = useAddCreationsToGalleryV2Mutation({
|
|
575
|
+
* variables: {
|
|
576
|
+
* galleryId: // value for 'galleryId'
|
|
577
|
+
* creationIds: // value for 'creationIds'
|
|
578
|
+
* },
|
|
579
|
+
* });
|
|
580
|
+
*/
|
|
581
|
+
export function useAddCreationsToGalleryV2Mutation(baseOptions?: Apollo.MutationHookOptions<IAddCreationsToGalleryV2Mutation, IAddCreationsToGalleryV2MutationVariables>) {
|
|
582
|
+
return Apollo.useMutation<IAddCreationsToGalleryV2Mutation, IAddCreationsToGalleryV2MutationVariables>(AddCreationsToGalleryV2Document, baseOptions);
|
|
583
|
+
}
|
|
584
|
+
export type AddCreationsToGalleryV2MutationHookResult = ReturnType<typeof useAddCreationsToGalleryV2Mutation>;
|
|
585
|
+
export type AddCreationsToGalleryV2MutationResult = Apollo.MutationResult<IAddCreationsToGalleryV2Mutation>;
|
|
586
|
+
export type AddCreationsToGalleryV2MutationOptions = Apollo.BaseMutationOptions<IAddCreationsToGalleryV2Mutation, IAddCreationsToGalleryV2MutationVariables>;
|
|
587
|
+
export const CreateFavoriteListV2Document = gql`
|
|
588
|
+
mutation CreateFavoriteListV2($name: String!, $description: String, $publicAccessible: Boolean, $creationIds: [String]) {
|
|
589
|
+
createFavoriteListV2(
|
|
590
|
+
name: $name
|
|
591
|
+
description: $description
|
|
592
|
+
publicAccessible: $publicAccessible
|
|
593
|
+
creationIds: $creationIds
|
|
594
|
+
)
|
|
595
|
+
}
|
|
596
|
+
`;
|
|
597
|
+
export type ICreateFavoriteListV2MutationFn = Apollo.MutationFunction<ICreateFavoriteListV2Mutation, ICreateFavoriteListV2MutationVariables>;
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* __useCreateFavoriteListV2Mutation__
|
|
601
|
+
*
|
|
602
|
+
* To run a mutation, you first call `useCreateFavoriteListV2Mutation` within a React component and pass it any options that fit your needs.
|
|
603
|
+
* When your component renders, `useCreateFavoriteListV2Mutation` returns a tuple that includes:
|
|
604
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
605
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
606
|
+
*
|
|
607
|
+
* @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;
|
|
608
|
+
*
|
|
609
|
+
* @example
|
|
610
|
+
* const [createFavoriteListV2Mutation, { data, loading, error }] = useCreateFavoriteListV2Mutation({
|
|
611
|
+
* variables: {
|
|
612
|
+
* name: // value for 'name'
|
|
613
|
+
* description: // value for 'description'
|
|
614
|
+
* publicAccessible: // value for 'publicAccessible'
|
|
615
|
+
* creationIds: // value for 'creationIds'
|
|
616
|
+
* },
|
|
617
|
+
* });
|
|
618
|
+
*/
|
|
619
|
+
export function useCreateFavoriteListV2Mutation(baseOptions?: Apollo.MutationHookOptions<ICreateFavoriteListV2Mutation, ICreateFavoriteListV2MutationVariables>) {
|
|
620
|
+
return Apollo.useMutation<ICreateFavoriteListV2Mutation, ICreateFavoriteListV2MutationVariables>(CreateFavoriteListV2Document, baseOptions);
|
|
621
|
+
}
|
|
622
|
+
export type CreateFavoriteListV2MutationHookResult = ReturnType<typeof useCreateFavoriteListV2Mutation>;
|
|
623
|
+
export type CreateFavoriteListV2MutationResult = Apollo.MutationResult<ICreateFavoriteListV2Mutation>;
|
|
624
|
+
export type CreateFavoriteListV2MutationOptions = Apollo.BaseMutationOptions<ICreateFavoriteListV2Mutation, ICreateFavoriteListV2MutationVariables>;
|
|
625
|
+
export const CreateGalleryV2Document = gql`
|
|
626
|
+
mutation CreateGalleryV2($name: String!, $description: String, $publicAccessible: Boolean, $creationIds: [String]) {
|
|
627
|
+
createGalleryV2(
|
|
628
|
+
name: $name
|
|
629
|
+
description: $description
|
|
630
|
+
publicAccessible: $publicAccessible
|
|
631
|
+
creationIds: $creationIds
|
|
632
|
+
)
|
|
633
|
+
}
|
|
634
|
+
`;
|
|
635
|
+
export type ICreateGalleryV2MutationFn = Apollo.MutationFunction<ICreateGalleryV2Mutation, ICreateGalleryV2MutationVariables>;
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* __useCreateGalleryV2Mutation__
|
|
639
|
+
*
|
|
640
|
+
* To run a mutation, you first call `useCreateGalleryV2Mutation` within a React component and pass it any options that fit your needs.
|
|
641
|
+
* When your component renders, `useCreateGalleryV2Mutation` returns a tuple that includes:
|
|
642
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
643
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
644
|
+
*
|
|
645
|
+
* @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;
|
|
646
|
+
*
|
|
647
|
+
* @example
|
|
648
|
+
* const [createGalleryV2Mutation, { data, loading, error }] = useCreateGalleryV2Mutation({
|
|
649
|
+
* variables: {
|
|
650
|
+
* name: // value for 'name'
|
|
651
|
+
* description: // value for 'description'
|
|
652
|
+
* publicAccessible: // value for 'publicAccessible'
|
|
653
|
+
* creationIds: // value for 'creationIds'
|
|
654
|
+
* },
|
|
655
|
+
* });
|
|
656
|
+
*/
|
|
657
|
+
export function useCreateGalleryV2Mutation(baseOptions?: Apollo.MutationHookOptions<ICreateGalleryV2Mutation, ICreateGalleryV2MutationVariables>) {
|
|
658
|
+
return Apollo.useMutation<ICreateGalleryV2Mutation, ICreateGalleryV2MutationVariables>(CreateGalleryV2Document, baseOptions);
|
|
659
|
+
}
|
|
660
|
+
export type CreateGalleryV2MutationHookResult = ReturnType<typeof useCreateGalleryV2Mutation>;
|
|
661
|
+
export type CreateGalleryV2MutationResult = Apollo.MutationResult<ICreateGalleryV2Mutation>;
|
|
662
|
+
export type CreateGalleryV2MutationOptions = Apollo.BaseMutationOptions<ICreateGalleryV2Mutation, ICreateGalleryV2MutationVariables>;
|
|
663
|
+
export const DeleteGalleryDocument = gql`
|
|
664
|
+
mutation DeleteGallery($galleryId: ID!) {
|
|
665
|
+
deleteGallery(galleryId: $galleryId)
|
|
666
|
+
}
|
|
667
|
+
`;
|
|
668
|
+
export type IDeleteGalleryMutationFn = Apollo.MutationFunction<IDeleteGalleryMutation, IDeleteGalleryMutationVariables>;
|
|
669
|
+
|
|
670
|
+
/**
|
|
671
|
+
* __useDeleteGalleryMutation__
|
|
672
|
+
*
|
|
673
|
+
* To run a mutation, you first call `useDeleteGalleryMutation` within a React component and pass it any options that fit your needs.
|
|
674
|
+
* When your component renders, `useDeleteGalleryMutation` returns a tuple that includes:
|
|
675
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
676
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
677
|
+
*
|
|
678
|
+
* @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;
|
|
679
|
+
*
|
|
680
|
+
* @example
|
|
681
|
+
* const [deleteGalleryMutation, { data, loading, error }] = useDeleteGalleryMutation({
|
|
682
|
+
* variables: {
|
|
683
|
+
* galleryId: // value for 'galleryId'
|
|
684
|
+
* },
|
|
685
|
+
* });
|
|
686
|
+
*/
|
|
687
|
+
export function useDeleteGalleryMutation(baseOptions?: Apollo.MutationHookOptions<IDeleteGalleryMutation, IDeleteGalleryMutationVariables>) {
|
|
688
|
+
return Apollo.useMutation<IDeleteGalleryMutation, IDeleteGalleryMutationVariables>(DeleteGalleryDocument, baseOptions);
|
|
689
|
+
}
|
|
690
|
+
export type DeleteGalleryMutationHookResult = ReturnType<typeof useDeleteGalleryMutation>;
|
|
691
|
+
export type DeleteGalleryMutationResult = Apollo.MutationResult<IDeleteGalleryMutation>;
|
|
692
|
+
export type DeleteGalleryMutationOptions = Apollo.BaseMutationOptions<IDeleteGalleryMutation, IDeleteGalleryMutationVariables>;
|
|
693
|
+
export const EditGalleryDocument = gql`
|
|
694
|
+
mutation EditGallery($galleryId: ID!, $name: String, $description: String) {
|
|
695
|
+
editGallery(galleryId: $galleryId, name: $name, description: $description)
|
|
696
|
+
}
|
|
697
|
+
`;
|
|
698
|
+
export type IEditGalleryMutationFn = Apollo.MutationFunction<IEditGalleryMutation, IEditGalleryMutationVariables>;
|
|
699
|
+
|
|
700
|
+
/**
|
|
701
|
+
* __useEditGalleryMutation__
|
|
702
|
+
*
|
|
703
|
+
* To run a mutation, you first call `useEditGalleryMutation` within a React component and pass it any options that fit your needs.
|
|
704
|
+
* When your component renders, `useEditGalleryMutation` returns a tuple that includes:
|
|
705
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
706
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
707
|
+
*
|
|
708
|
+
* @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;
|
|
709
|
+
*
|
|
710
|
+
* @example
|
|
711
|
+
* const [editGalleryMutation, { data, loading, error }] = useEditGalleryMutation({
|
|
712
|
+
* variables: {
|
|
713
|
+
* galleryId: // value for 'galleryId'
|
|
714
|
+
* name: // value for 'name'
|
|
715
|
+
* description: // value for 'description'
|
|
716
|
+
* },
|
|
717
|
+
* });
|
|
718
|
+
*/
|
|
719
|
+
export function useEditGalleryMutation(baseOptions?: Apollo.MutationHookOptions<IEditGalleryMutation, IEditGalleryMutationVariables>) {
|
|
720
|
+
return Apollo.useMutation<IEditGalleryMutation, IEditGalleryMutationVariables>(EditGalleryDocument, baseOptions);
|
|
721
|
+
}
|
|
722
|
+
export type EditGalleryMutationHookResult = ReturnType<typeof useEditGalleryMutation>;
|
|
723
|
+
export type EditGalleryMutationResult = Apollo.MutationResult<IEditGalleryMutation>;
|
|
724
|
+
export type EditGalleryMutationOptions = Apollo.BaseMutationOptions<IEditGalleryMutation, IEditGalleryMutationVariables>;
|
|
725
|
+
export const RemoveAssetFromGalleryV2Document = gql`
|
|
726
|
+
mutation RemoveAssetFromGalleryV2($galleryId: ID!, $assetId: String!) {
|
|
727
|
+
removeAssetFromGalleryV2(galleryId: $galleryId, assetId: $assetId)
|
|
728
|
+
}
|
|
729
|
+
`;
|
|
730
|
+
export type IRemoveAssetFromGalleryV2MutationFn = Apollo.MutationFunction<IRemoveAssetFromGalleryV2Mutation, IRemoveAssetFromGalleryV2MutationVariables>;
|
|
731
|
+
|
|
732
|
+
/**
|
|
733
|
+
* __useRemoveAssetFromGalleryV2Mutation__
|
|
734
|
+
*
|
|
735
|
+
* To run a mutation, you first call `useRemoveAssetFromGalleryV2Mutation` within a React component and pass it any options that fit your needs.
|
|
736
|
+
* When your component renders, `useRemoveAssetFromGalleryV2Mutation` returns a tuple that includes:
|
|
737
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
738
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
739
|
+
*
|
|
740
|
+
* @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;
|
|
741
|
+
*
|
|
742
|
+
* @example
|
|
743
|
+
* const [removeAssetFromGalleryV2Mutation, { data, loading, error }] = useRemoveAssetFromGalleryV2Mutation({
|
|
744
|
+
* variables: {
|
|
745
|
+
* galleryId: // value for 'galleryId'
|
|
746
|
+
* assetId: // value for 'assetId'
|
|
747
|
+
* },
|
|
748
|
+
* });
|
|
749
|
+
*/
|
|
750
|
+
export function useRemoveAssetFromGalleryV2Mutation(baseOptions?: Apollo.MutationHookOptions<IRemoveAssetFromGalleryV2Mutation, IRemoveAssetFromGalleryV2MutationVariables>) {
|
|
751
|
+
return Apollo.useMutation<IRemoveAssetFromGalleryV2Mutation, IRemoveAssetFromGalleryV2MutationVariables>(RemoveAssetFromGalleryV2Document, baseOptions);
|
|
752
|
+
}
|
|
753
|
+
export type RemoveAssetFromGalleryV2MutationHookResult = ReturnType<typeof useRemoveAssetFromGalleryV2Mutation>;
|
|
754
|
+
export type RemoveAssetFromGalleryV2MutationResult = Apollo.MutationResult<IRemoveAssetFromGalleryV2Mutation>;
|
|
755
|
+
export type RemoveAssetFromGalleryV2MutationOptions = Apollo.BaseMutationOptions<IRemoveAssetFromGalleryV2Mutation, IRemoveAssetFromGalleryV2MutationVariables>;
|
|
756
|
+
export const RemoveCollectionFromGalleryV2Document = gql`
|
|
757
|
+
mutation RemoveCollectionFromGalleryV2($galleryId: ID!, $collectionId: String!) {
|
|
758
|
+
removeCollectionFromGalleryV2(
|
|
759
|
+
galleryId: $galleryId
|
|
760
|
+
collectionId: $collectionId
|
|
761
|
+
)
|
|
762
|
+
}
|
|
763
|
+
`;
|
|
764
|
+
export type IRemoveCollectionFromGalleryV2MutationFn = Apollo.MutationFunction<IRemoveCollectionFromGalleryV2Mutation, IRemoveCollectionFromGalleryV2MutationVariables>;
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* __useRemoveCollectionFromGalleryV2Mutation__
|
|
768
|
+
*
|
|
769
|
+
* To run a mutation, you first call `useRemoveCollectionFromGalleryV2Mutation` within a React component and pass it any options that fit your needs.
|
|
770
|
+
* When your component renders, `useRemoveCollectionFromGalleryV2Mutation` returns a tuple that includes:
|
|
771
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
772
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
773
|
+
*
|
|
774
|
+
* @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;
|
|
775
|
+
*
|
|
776
|
+
* @example
|
|
777
|
+
* const [removeCollectionFromGalleryV2Mutation, { data, loading, error }] = useRemoveCollectionFromGalleryV2Mutation({
|
|
778
|
+
* variables: {
|
|
779
|
+
* galleryId: // value for 'galleryId'
|
|
780
|
+
* collectionId: // value for 'collectionId'
|
|
781
|
+
* },
|
|
782
|
+
* });
|
|
783
|
+
*/
|
|
784
|
+
export function useRemoveCollectionFromGalleryV2Mutation(baseOptions?: Apollo.MutationHookOptions<IRemoveCollectionFromGalleryV2Mutation, IRemoveCollectionFromGalleryV2MutationVariables>) {
|
|
785
|
+
return Apollo.useMutation<IRemoveCollectionFromGalleryV2Mutation, IRemoveCollectionFromGalleryV2MutationVariables>(RemoveCollectionFromGalleryV2Document, baseOptions);
|
|
786
|
+
}
|
|
787
|
+
export type RemoveCollectionFromGalleryV2MutationHookResult = ReturnType<typeof useRemoveCollectionFromGalleryV2Mutation>;
|
|
788
|
+
export type RemoveCollectionFromGalleryV2MutationResult = Apollo.MutationResult<IRemoveCollectionFromGalleryV2Mutation>;
|
|
789
|
+
export type RemoveCollectionFromGalleryV2MutationOptions = Apollo.BaseMutationOptions<IRemoveCollectionFromGalleryV2Mutation, IRemoveCollectionFromGalleryV2MutationVariables>;
|
|
790
|
+
export const RemoveCreationFromGalleryV2Document = gql`
|
|
791
|
+
mutation RemoveCreationFromGalleryV2($galleryId: ID!, $creationId: String!) {
|
|
792
|
+
removeCreationFromGalleryV2(galleryId: $galleryId, creationId: $creationId)
|
|
793
|
+
}
|
|
794
|
+
`;
|
|
795
|
+
export type IRemoveCreationFromGalleryV2MutationFn = Apollo.MutationFunction<IRemoveCreationFromGalleryV2Mutation, IRemoveCreationFromGalleryV2MutationVariables>;
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* __useRemoveCreationFromGalleryV2Mutation__
|
|
799
|
+
*
|
|
800
|
+
* To run a mutation, you first call `useRemoveCreationFromGalleryV2Mutation` within a React component and pass it any options that fit your needs.
|
|
801
|
+
* When your component renders, `useRemoveCreationFromGalleryV2Mutation` returns a tuple that includes:
|
|
802
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
803
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
804
|
+
*
|
|
805
|
+
* @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;
|
|
806
|
+
*
|
|
807
|
+
* @example
|
|
808
|
+
* const [removeCreationFromGalleryV2Mutation, { data, loading, error }] = useRemoveCreationFromGalleryV2Mutation({
|
|
809
|
+
* variables: {
|
|
810
|
+
* galleryId: // value for 'galleryId'
|
|
811
|
+
* creationId: // value for 'creationId'
|
|
812
|
+
* },
|
|
813
|
+
* });
|
|
814
|
+
*/
|
|
815
|
+
export function useRemoveCreationFromGalleryV2Mutation(baseOptions?: Apollo.MutationHookOptions<IRemoveCreationFromGalleryV2Mutation, IRemoveCreationFromGalleryV2MutationVariables>) {
|
|
816
|
+
return Apollo.useMutation<IRemoveCreationFromGalleryV2Mutation, IRemoveCreationFromGalleryV2MutationVariables>(RemoveCreationFromGalleryV2Document, baseOptions);
|
|
817
|
+
}
|
|
818
|
+
export type RemoveCreationFromGalleryV2MutationHookResult = ReturnType<typeof useRemoveCreationFromGalleryV2Mutation>;
|
|
819
|
+
export type RemoveCreationFromGalleryV2MutationResult = Apollo.MutationResult<IRemoveCreationFromGalleryV2Mutation>;
|
|
820
|
+
export type RemoveCreationFromGalleryV2MutationOptions = Apollo.BaseMutationOptions<IRemoveCreationFromGalleryV2Mutation, IRemoveCreationFromGalleryV2MutationVariables>;
|
|
821
|
+
export const FetchGalleryV2Document = gql`
|
|
822
|
+
query FetchGalleryV2($galleryId: String!) {
|
|
823
|
+
fetchGalleryV2(galleryId: $galleryId) {
|
|
824
|
+
galleryId
|
|
825
|
+
galleryType
|
|
826
|
+
name
|
|
827
|
+
description
|
|
828
|
+
userId
|
|
829
|
+
username
|
|
830
|
+
userpic
|
|
831
|
+
banner
|
|
832
|
+
createdAt
|
|
833
|
+
items
|
|
834
|
+
views
|
|
835
|
+
publiclyAccessible
|
|
836
|
+
nsfw
|
|
837
|
+
creationIds
|
|
838
|
+
}
|
|
839
|
+
}
|
|
840
|
+
`;
|
|
841
|
+
|
|
842
|
+
/**
|
|
843
|
+
* __useFetchGalleryV2Query__
|
|
844
|
+
*
|
|
845
|
+
* To run a query within a React component, call `useFetchGalleryV2Query` and pass it any options that fit your needs.
|
|
846
|
+
* When your component renders, `useFetchGalleryV2Query` returns an object from Apollo Client that contains loading, error, and data properties
|
|
847
|
+
* you can use to render your UI.
|
|
848
|
+
*
|
|
849
|
+
* @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;
|
|
850
|
+
*
|
|
851
|
+
* @example
|
|
852
|
+
* const { data, loading, error } = useFetchGalleryV2Query({
|
|
853
|
+
* variables: {
|
|
854
|
+
* galleryId: // value for 'galleryId'
|
|
855
|
+
* },
|
|
856
|
+
* });
|
|
857
|
+
*/
|
|
858
|
+
export function useFetchGalleryV2Query(baseOptions: Apollo.QueryHookOptions<IFetchGalleryV2Query, IFetchGalleryV2QueryVariables>) {
|
|
859
|
+
return Apollo.useQuery<IFetchGalleryV2Query, IFetchGalleryV2QueryVariables>(FetchGalleryV2Document, baseOptions);
|
|
860
|
+
}
|
|
861
|
+
export function useFetchGalleryV2LazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchGalleryV2Query, IFetchGalleryV2QueryVariables>) {
|
|
862
|
+
return Apollo.useLazyQuery<IFetchGalleryV2Query, IFetchGalleryV2QueryVariables>(FetchGalleryV2Document, baseOptions);
|
|
863
|
+
}
|
|
864
|
+
export type FetchGalleryV2QueryHookResult = ReturnType<typeof useFetchGalleryV2Query>;
|
|
865
|
+
export type FetchGalleryV2LazyQueryHookResult = ReturnType<typeof useFetchGalleryV2LazyQuery>;
|
|
866
|
+
export type FetchGalleryV2QueryResult = Apollo.QueryResult<IFetchGalleryV2Query, IFetchGalleryV2QueryVariables>;
|
|
867
|
+
export const FetchMyFavoritesV2Document = gql`
|
|
868
|
+
query FetchMyFavoritesV2($pageSize: Int!, $pageToken: String) {
|
|
869
|
+
fetchMyFavoritesV2(pageSize: $pageSize, pageToken: $pageToken) {
|
|
870
|
+
nextPageToken
|
|
871
|
+
galleries {
|
|
872
|
+
galleryId
|
|
873
|
+
galleryType
|
|
874
|
+
name
|
|
875
|
+
description
|
|
876
|
+
userId
|
|
877
|
+
username
|
|
878
|
+
userpic
|
|
879
|
+
banner
|
|
880
|
+
createdAt
|
|
881
|
+
items
|
|
882
|
+
views
|
|
883
|
+
publiclyAccessible
|
|
884
|
+
nsfw
|
|
885
|
+
creationIds
|
|
886
|
+
}
|
|
887
|
+
}
|
|
888
|
+
}
|
|
889
|
+
`;
|
|
890
|
+
|
|
891
|
+
/**
|
|
892
|
+
* __useFetchMyFavoritesV2Query__
|
|
893
|
+
*
|
|
894
|
+
* To run a query within a React component, call `useFetchMyFavoritesV2Query` and pass it any options that fit your needs.
|
|
895
|
+
* When your component renders, `useFetchMyFavoritesV2Query` returns an object from Apollo Client that contains loading, error, and data properties
|
|
896
|
+
* you can use to render your UI.
|
|
897
|
+
*
|
|
898
|
+
* @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;
|
|
899
|
+
*
|
|
900
|
+
* @example
|
|
901
|
+
* const { data, loading, error } = useFetchMyFavoritesV2Query({
|
|
902
|
+
* variables: {
|
|
903
|
+
* pageSize: // value for 'pageSize'
|
|
904
|
+
* pageToken: // value for 'pageToken'
|
|
905
|
+
* },
|
|
906
|
+
* });
|
|
907
|
+
*/
|
|
908
|
+
export function useFetchMyFavoritesV2Query(baseOptions: Apollo.QueryHookOptions<IFetchMyFavoritesV2Query, IFetchMyFavoritesV2QueryVariables>) {
|
|
909
|
+
return Apollo.useQuery<IFetchMyFavoritesV2Query, IFetchMyFavoritesV2QueryVariables>(FetchMyFavoritesV2Document, baseOptions);
|
|
910
|
+
}
|
|
911
|
+
export function useFetchMyFavoritesV2LazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchMyFavoritesV2Query, IFetchMyFavoritesV2QueryVariables>) {
|
|
912
|
+
return Apollo.useLazyQuery<IFetchMyFavoritesV2Query, IFetchMyFavoritesV2QueryVariables>(FetchMyFavoritesV2Document, baseOptions);
|
|
913
|
+
}
|
|
914
|
+
export type FetchMyFavoritesV2QueryHookResult = ReturnType<typeof useFetchMyFavoritesV2Query>;
|
|
915
|
+
export type FetchMyFavoritesV2LazyQueryHookResult = ReturnType<typeof useFetchMyFavoritesV2LazyQuery>;
|
|
916
|
+
export type FetchMyFavoritesV2QueryResult = Apollo.QueryResult<IFetchMyFavoritesV2Query, IFetchMyFavoritesV2QueryVariables>;
|
|
917
|
+
export const FetchMyGalleriesV2Document = gql`
|
|
918
|
+
query FetchMyGalleriesV2($pageSize: Int!, $pageToken: String) {
|
|
919
|
+
fetchMyGalleriesV2(pageSize: $pageSize, pageToken: $pageToken) {
|
|
920
|
+
nextPageToken
|
|
921
|
+
galleries {
|
|
922
|
+
galleryId
|
|
923
|
+
galleryType
|
|
924
|
+
name
|
|
925
|
+
description
|
|
926
|
+
userId
|
|
927
|
+
username
|
|
928
|
+
userpic
|
|
929
|
+
banner
|
|
930
|
+
createdAt
|
|
931
|
+
items
|
|
932
|
+
views
|
|
933
|
+
publiclyAccessible
|
|
934
|
+
nsfw
|
|
935
|
+
creationIds
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
}
|
|
939
|
+
`;
|
|
940
|
+
|
|
941
|
+
/**
|
|
942
|
+
* __useFetchMyGalleriesV2Query__
|
|
943
|
+
*
|
|
944
|
+
* To run a query within a React component, call `useFetchMyGalleriesV2Query` and pass it any options that fit your needs.
|
|
945
|
+
* When your component renders, `useFetchMyGalleriesV2Query` returns an object from Apollo Client that contains loading, error, and data properties
|
|
946
|
+
* you can use to render your UI.
|
|
947
|
+
*
|
|
948
|
+
* @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;
|
|
949
|
+
*
|
|
950
|
+
* @example
|
|
951
|
+
* const { data, loading, error } = useFetchMyGalleriesV2Query({
|
|
952
|
+
* variables: {
|
|
953
|
+
* pageSize: // value for 'pageSize'
|
|
954
|
+
* pageToken: // value for 'pageToken'
|
|
955
|
+
* },
|
|
956
|
+
* });
|
|
957
|
+
*/
|
|
958
|
+
export function useFetchMyGalleriesV2Query(baseOptions: Apollo.QueryHookOptions<IFetchMyGalleriesV2Query, IFetchMyGalleriesV2QueryVariables>) {
|
|
959
|
+
return Apollo.useQuery<IFetchMyGalleriesV2Query, IFetchMyGalleriesV2QueryVariables>(FetchMyGalleriesV2Document, baseOptions);
|
|
960
|
+
}
|
|
961
|
+
export function useFetchMyGalleriesV2LazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchMyGalleriesV2Query, IFetchMyGalleriesV2QueryVariables>) {
|
|
962
|
+
return Apollo.useLazyQuery<IFetchMyGalleriesV2Query, IFetchMyGalleriesV2QueryVariables>(FetchMyGalleriesV2Document, baseOptions);
|
|
963
|
+
}
|
|
964
|
+
export type FetchMyGalleriesV2QueryHookResult = ReturnType<typeof useFetchMyGalleriesV2Query>;
|
|
965
|
+
export type FetchMyGalleriesV2LazyQueryHookResult = ReturnType<typeof useFetchMyGalleriesV2LazyQuery>;
|
|
966
|
+
export type FetchMyGalleriesV2QueryResult = Apollo.QueryResult<IFetchMyGalleriesV2Query, IFetchMyGalleriesV2QueryVariables>;
|
|
967
|
+
export const FetchUserFavoritesV2Document = gql`
|
|
968
|
+
query FetchUserFavoritesV2($userId: ID!, $pageSize: Int!, $pageToken: String) {
|
|
969
|
+
fetchUserFavoritesV2(
|
|
970
|
+
userId: $userId
|
|
971
|
+
pageSize: $pageSize
|
|
972
|
+
pageToken: $pageToken
|
|
973
|
+
) {
|
|
974
|
+
nextPageToken
|
|
975
|
+
galleries {
|
|
976
|
+
galleryId
|
|
977
|
+
galleryType
|
|
978
|
+
name
|
|
979
|
+
description
|
|
980
|
+
userId
|
|
981
|
+
username
|
|
982
|
+
userpic
|
|
983
|
+
userWallets {
|
|
984
|
+
userId
|
|
985
|
+
address
|
|
986
|
+
walletName
|
|
987
|
+
blockchain
|
|
988
|
+
chainId
|
|
989
|
+
}
|
|
990
|
+
banner
|
|
991
|
+
createdAt
|
|
992
|
+
items
|
|
993
|
+
views
|
|
994
|
+
publiclyAccessible
|
|
995
|
+
nsfw
|
|
996
|
+
creationIds
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
`;
|
|
1001
|
+
|
|
1002
|
+
/**
|
|
1003
|
+
* __useFetchUserFavoritesV2Query__
|
|
1004
|
+
*
|
|
1005
|
+
* To run a query within a React component, call `useFetchUserFavoritesV2Query` and pass it any options that fit your needs.
|
|
1006
|
+
* When your component renders, `useFetchUserFavoritesV2Query` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1007
|
+
* you can use to render your UI.
|
|
1008
|
+
*
|
|
1009
|
+
* @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;
|
|
1010
|
+
*
|
|
1011
|
+
* @example
|
|
1012
|
+
* const { data, loading, error } = useFetchUserFavoritesV2Query({
|
|
1013
|
+
* variables: {
|
|
1014
|
+
* userId: // value for 'userId'
|
|
1015
|
+
* pageSize: // value for 'pageSize'
|
|
1016
|
+
* pageToken: // value for 'pageToken'
|
|
1017
|
+
* },
|
|
1018
|
+
* });
|
|
1019
|
+
*/
|
|
1020
|
+
export function useFetchUserFavoritesV2Query(baseOptions: Apollo.QueryHookOptions<IFetchUserFavoritesV2Query, IFetchUserFavoritesV2QueryVariables>) {
|
|
1021
|
+
return Apollo.useQuery<IFetchUserFavoritesV2Query, IFetchUserFavoritesV2QueryVariables>(FetchUserFavoritesV2Document, baseOptions);
|
|
1022
|
+
}
|
|
1023
|
+
export function useFetchUserFavoritesV2LazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchUserFavoritesV2Query, IFetchUserFavoritesV2QueryVariables>) {
|
|
1024
|
+
return Apollo.useLazyQuery<IFetchUserFavoritesV2Query, IFetchUserFavoritesV2QueryVariables>(FetchUserFavoritesV2Document, baseOptions);
|
|
1025
|
+
}
|
|
1026
|
+
export type FetchUserFavoritesV2QueryHookResult = ReturnType<typeof useFetchUserFavoritesV2Query>;
|
|
1027
|
+
export type FetchUserFavoritesV2LazyQueryHookResult = ReturnType<typeof useFetchUserFavoritesV2LazyQuery>;
|
|
1028
|
+
export type FetchUserFavoritesV2QueryResult = Apollo.QueryResult<IFetchUserFavoritesV2Query, IFetchUserFavoritesV2QueryVariables>;
|
|
1029
|
+
export const FetchUserGalleriesV2Document = gql`
|
|
1030
|
+
query fetchUserGalleriesV2($userId: ID!, $pageSize: Int!, $pageToken: String) {
|
|
1031
|
+
fetchUserGalleriesV2(
|
|
1032
|
+
userId: $userId
|
|
1033
|
+
pageSize: $pageSize
|
|
1034
|
+
pageToken: $pageToken
|
|
1035
|
+
) {
|
|
1036
|
+
nextPageToken
|
|
1037
|
+
galleries {
|
|
1038
|
+
galleryId
|
|
1039
|
+
galleryType
|
|
1040
|
+
name
|
|
1041
|
+
description
|
|
1042
|
+
userId
|
|
1043
|
+
username
|
|
1044
|
+
userpic
|
|
1045
|
+
userWallets {
|
|
1046
|
+
userId
|
|
1047
|
+
address
|
|
1048
|
+
walletName
|
|
1049
|
+
blockchain
|
|
1050
|
+
chainId
|
|
1051
|
+
}
|
|
1052
|
+
banner
|
|
1053
|
+
createdAt
|
|
1054
|
+
items
|
|
1055
|
+
views
|
|
1056
|
+
publiclyAccessible
|
|
1057
|
+
nsfw
|
|
1058
|
+
creationIds
|
|
1059
|
+
}
|
|
1060
|
+
}
|
|
1061
|
+
}
|
|
1062
|
+
`;
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* __useFetchUserGalleriesV2Query__
|
|
1066
|
+
*
|
|
1067
|
+
* To run a query within a React component, call `useFetchUserGalleriesV2Query` and pass it any options that fit your needs.
|
|
1068
|
+
* When your component renders, `useFetchUserGalleriesV2Query` returns an object from Apollo Client that contains loading, error, and data properties
|
|
1069
|
+
* you can use to render your UI.
|
|
1070
|
+
*
|
|
1071
|
+
* @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;
|
|
1072
|
+
*
|
|
1073
|
+
* @example
|
|
1074
|
+
* const { data, loading, error } = useFetchUserGalleriesV2Query({
|
|
1075
|
+
* variables: {
|
|
1076
|
+
* userId: // value for 'userId'
|
|
1077
|
+
* pageSize: // value for 'pageSize'
|
|
1078
|
+
* pageToken: // value for 'pageToken'
|
|
1079
|
+
* },
|
|
1080
|
+
* });
|
|
1081
|
+
*/
|
|
1082
|
+
export function useFetchUserGalleriesV2Query(baseOptions: Apollo.QueryHookOptions<IFetchUserGalleriesV2Query, IFetchUserGalleriesV2QueryVariables>) {
|
|
1083
|
+
return Apollo.useQuery<IFetchUserGalleriesV2Query, IFetchUserGalleriesV2QueryVariables>(FetchUserGalleriesV2Document, baseOptions);
|
|
1084
|
+
}
|
|
1085
|
+
export function useFetchUserGalleriesV2LazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchUserGalleriesV2Query, IFetchUserGalleriesV2QueryVariables>) {
|
|
1086
|
+
return Apollo.useLazyQuery<IFetchUserGalleriesV2Query, IFetchUserGalleriesV2QueryVariables>(FetchUserGalleriesV2Document, baseOptions);
|
|
1087
|
+
}
|
|
1088
|
+
export type FetchUserGalleriesV2QueryHookResult = ReturnType<typeof useFetchUserGalleriesV2Query>;
|
|
1089
|
+
export type FetchUserGalleriesV2LazyQueryHookResult = ReturnType<typeof useFetchUserGalleriesV2LazyQuery>;
|
|
1090
|
+
export type FetchUserGalleriesV2QueryResult = Apollo.QueryResult<IFetchUserGalleriesV2Query, IFetchUserGalleriesV2QueryVariables>;
|