@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,486 @@
|
|
|
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 IBrand = {
|
|
29
|
+
brandId: Scalars['ID'];
|
|
30
|
+
name: Scalars['String'];
|
|
31
|
+
matchingWords?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
32
|
+
description?: Maybe<Scalars['String']>;
|
|
33
|
+
industry?: Maybe<Scalars['String']>;
|
|
34
|
+
link?: Maybe<Scalars['String']>;
|
|
35
|
+
media?: Maybe<Scalars['String']>;
|
|
36
|
+
};
|
|
37
|
+
export type IBrandInput = {
|
|
38
|
+
name: Scalars['String'];
|
|
39
|
+
matchingWords: Array<Maybe<Scalars['String']>>;
|
|
40
|
+
description?: Maybe<Scalars['String']>;
|
|
41
|
+
industry?: Maybe<Scalars['String']>;
|
|
42
|
+
link?: Maybe<Scalars['String']>;
|
|
43
|
+
};
|
|
44
|
+
export type ICategory = {
|
|
45
|
+
categoryId: Scalars['ID'];
|
|
46
|
+
matchingWords?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
47
|
+
name: Scalars['String'];
|
|
48
|
+
};
|
|
49
|
+
export type ICategoryInput = {
|
|
50
|
+
name: Scalars['String'];
|
|
51
|
+
matchingWords: Array<Maybe<Scalars['String']>>;
|
|
52
|
+
};
|
|
53
|
+
export type IMutation = {
|
|
54
|
+
setDummy: Scalars['String'];
|
|
55
|
+
createBrand: Scalars['Boolean'];
|
|
56
|
+
updateBrand: Scalars['Boolean'];
|
|
57
|
+
createCategory: Scalars['Boolean'];
|
|
58
|
+
updateCategory: Scalars['Boolean'];
|
|
59
|
+
openOpportunity: Scalars['Boolean'];
|
|
60
|
+
hideOpportunity: Scalars['Boolean'];
|
|
61
|
+
createOpportunity: Scalars['Boolean'];
|
|
62
|
+
updateOpportunity: Scalars['Boolean'];
|
|
63
|
+
};
|
|
64
|
+
export type IMutationCreateBrandArgs = {
|
|
65
|
+
input: IBrandInput;
|
|
66
|
+
};
|
|
67
|
+
export type IMutationUpdateBrandArgs = {
|
|
68
|
+
brandId: Scalars['ID'];
|
|
69
|
+
input: IBrandInput;
|
|
70
|
+
};
|
|
71
|
+
export type IMutationCreateCategoryArgs = {
|
|
72
|
+
input: ICategoryInput;
|
|
73
|
+
};
|
|
74
|
+
export type IMutationUpdateCategoryArgs = {
|
|
75
|
+
categoryId: Scalars['ID'];
|
|
76
|
+
input: ICategoryInput;
|
|
77
|
+
};
|
|
78
|
+
export type IMutationOpenOpportunityArgs = {
|
|
79
|
+
opportunityId: Scalars['ID'];
|
|
80
|
+
};
|
|
81
|
+
export type IMutationHideOpportunityArgs = {
|
|
82
|
+
opportunityId: Scalars['ID'];
|
|
83
|
+
};
|
|
84
|
+
export type IMutationCreateOpportunityArgs = {
|
|
85
|
+
input: IOpportunityInput;
|
|
86
|
+
};
|
|
87
|
+
export type IMutationUpdateOpportunityArgs = {
|
|
88
|
+
opportunityId: Scalars['ID'];
|
|
89
|
+
input: IOpportunityInput;
|
|
90
|
+
};
|
|
91
|
+
export type IOpportunitiesPage = {
|
|
92
|
+
currentOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
93
|
+
similarOpportunities?: Maybe<Array<Maybe<IOpportunity>>>;
|
|
94
|
+
};
|
|
95
|
+
export type IOpportunity = {
|
|
96
|
+
opportunityId?: Maybe<Scalars['ID']>;
|
|
97
|
+
name?: Maybe<Scalars['String']>;
|
|
98
|
+
description?: Maybe<Scalars['String']>;
|
|
99
|
+
startedAt?: Maybe<Scalars['Long']>;
|
|
100
|
+
endedAt?: Maybe<Scalars['Long']>;
|
|
101
|
+
createdAt?: Maybe<Scalars['Long']>;
|
|
102
|
+
tags?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
103
|
+
category?: Maybe<Scalars['String']>;
|
|
104
|
+
media?: Maybe<Scalars['String']>;
|
|
105
|
+
links?: Maybe<Array<Maybe<Scalars['String']>>>;
|
|
106
|
+
ludoRankRequired?: Maybe<Scalars['Boolean']>;
|
|
107
|
+
ludoRankRequiredMin?: Maybe<Scalars['Int']>;
|
|
108
|
+
ludoRankRequiredMax?: Maybe<Scalars['Int']>;
|
|
109
|
+
rewardType?: Maybe<Scalars['String']>;
|
|
110
|
+
creatorId?: Maybe<Scalars['String']>;
|
|
111
|
+
creatorWallet?: Maybe<Scalars['String']>;
|
|
112
|
+
status?: Maybe<Scalars['String']>;
|
|
113
|
+
shareLink?: Maybe<Scalars['String']>;
|
|
114
|
+
notifiable?: Maybe<Scalars['Boolean']>;
|
|
115
|
+
clicks?: Maybe<Scalars['Int']>;
|
|
116
|
+
views?: Maybe<Scalars['Int']>;
|
|
117
|
+
brandId?: Maybe<Scalars['String']>;
|
|
118
|
+
brandName?: Maybe<Scalars['String']>;
|
|
119
|
+
brandDescription?: Maybe<Scalars['String']>;
|
|
120
|
+
brandIndustry?: Maybe<Scalars['String']>;
|
|
121
|
+
brandLink?: Maybe<Scalars['String']>;
|
|
122
|
+
brandMedia?: Maybe<Scalars['String']>;
|
|
123
|
+
};
|
|
124
|
+
export type IOpportunityInput = {
|
|
125
|
+
brandId: Scalars['String'];
|
|
126
|
+
categoryId: Scalars['String'];
|
|
127
|
+
opportunityStatus: Scalars['String'];
|
|
128
|
+
opportunityType: Scalars['String'];
|
|
129
|
+
notificationType: Scalars['String'];
|
|
130
|
+
name: Scalars['String'];
|
|
131
|
+
description?: Maybe<Scalars['String']>;
|
|
132
|
+
ludoUrl?: Maybe<Scalars['String']>;
|
|
133
|
+
projectUrl?: Maybe<Scalars['String']>;
|
|
134
|
+
activeFrom?: Maybe<Scalars['Long']>;
|
|
135
|
+
activeUntil?: Maybe<Scalars['Long']>;
|
|
136
|
+
minXpLevel?: Maybe<Scalars['Int']>;
|
|
137
|
+
maxXpLevel?: Maybe<Scalars['Int']>;
|
|
138
|
+
minRank?: Maybe<Scalars['Float']>;
|
|
139
|
+
maxRank?: Maybe<Scalars['Float']>;
|
|
140
|
+
reportLink?: Maybe<Scalars['String']>;
|
|
141
|
+
blockchain?: Maybe<Scalars['String']>;
|
|
142
|
+
collection?: Maybe<Scalars['String']>;
|
|
143
|
+
minWalletValue?: Maybe<Scalars['Float']>;
|
|
144
|
+
maxWalletValue?: Maybe<Scalars['Float']>;
|
|
145
|
+
};
|
|
146
|
+
export type IOpportunityV2 = {
|
|
147
|
+
opportunityId: Scalars['ID'];
|
|
148
|
+
brandId: Scalars['String'];
|
|
149
|
+
categoryId: Scalars['String'];
|
|
150
|
+
opportunityStatus: Scalars['String'];
|
|
151
|
+
opportunityType: Scalars['String'];
|
|
152
|
+
notificationType: Scalars['String'];
|
|
153
|
+
name: Scalars['String'];
|
|
154
|
+
description?: Maybe<Scalars['String']>;
|
|
155
|
+
brandName?: Maybe<Scalars['String']>;
|
|
156
|
+
brandDescription?: Maybe<Scalars['String']>;
|
|
157
|
+
brandMedia?: Maybe<Scalars['String']>;
|
|
158
|
+
brandUrl?: Maybe<Scalars['String']>;
|
|
159
|
+
brandIndustry?: Maybe<Scalars['String']>;
|
|
160
|
+
categoryName?: Maybe<Scalars['String']>;
|
|
161
|
+
ludoUrl?: Maybe<Scalars['String']>;
|
|
162
|
+
projectUrl?: Maybe<Scalars['String']>;
|
|
163
|
+
activeFrom?: Maybe<Scalars['Long']>;
|
|
164
|
+
activeUntil?: Maybe<Scalars['Long']>;
|
|
165
|
+
minXpLevel?: Maybe<Scalars['Int']>;
|
|
166
|
+
maxXpLevel?: Maybe<Scalars['Int']>;
|
|
167
|
+
minRank?: Maybe<Scalars['Float']>;
|
|
168
|
+
maxRank?: Maybe<Scalars['Float']>;
|
|
169
|
+
media?: Maybe<Scalars['String']>;
|
|
170
|
+
reportLink?: Maybe<Scalars['String']>;
|
|
171
|
+
clicks?: Maybe<Scalars['Int']>;
|
|
172
|
+
views?: Maybe<Scalars['Int']>;
|
|
173
|
+
blockchain?: Maybe<Scalars['String']>;
|
|
174
|
+
collection?: Maybe<Scalars['String']>;
|
|
175
|
+
createdAt?: Maybe<Scalars['Long']>;
|
|
176
|
+
minWalletValue?: Maybe<Scalars['Float']>;
|
|
177
|
+
maxWalletValue?: Maybe<Scalars['Float']>;
|
|
178
|
+
};
|
|
179
|
+
/** scalar Upload */
|
|
180
|
+
export type IQuery = {
|
|
181
|
+
getDummy: Scalars['String'];
|
|
182
|
+
fetchBrands?: Maybe<Array<Maybe<IBrand>>>;
|
|
183
|
+
fetchBrand: IBrand;
|
|
184
|
+
fetchCategories?: Maybe<Array<Maybe<ICategory>>>;
|
|
185
|
+
fetchCategory: ICategory;
|
|
186
|
+
fetchOpportunities: IOpportunitiesPage;
|
|
187
|
+
fetchOpportunitiesV2?: Maybe<Array<Maybe<IOpportunityV2>>>;
|
|
188
|
+
fetchOpportunity: IOpportunityV2;
|
|
189
|
+
};
|
|
190
|
+
/** scalar Upload */
|
|
191
|
+
export type IQueryFetchBrandArgs = {
|
|
192
|
+
brandId: Scalars['ID'];
|
|
193
|
+
};
|
|
194
|
+
/** scalar Upload */
|
|
195
|
+
export type IQueryFetchCategoryArgs = {
|
|
196
|
+
categoryId: Scalars['ID'];
|
|
197
|
+
};
|
|
198
|
+
/** scalar Upload */
|
|
199
|
+
export type IQueryFetchOpportunitiesArgs = {
|
|
200
|
+
domain?: Maybe<Scalars['String']>;
|
|
201
|
+
};
|
|
202
|
+
/** scalar Upload */
|
|
203
|
+
export type IQueryFetchOpportunityArgs = {
|
|
204
|
+
opportunityId: Scalars['ID'];
|
|
205
|
+
};
|
|
206
|
+
export type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
207
|
+
export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
208
|
+
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
|
209
|
+
};
|
|
210
|
+
export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
|
|
211
|
+
export type ResolverFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => Promise<TResult> | TResult;
|
|
212
|
+
export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
|
|
213
|
+
export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
214
|
+
export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
|
|
215
|
+
subscribe: SubscriptionSubscribeFn<{
|
|
216
|
+
[key in TKey]: TResult;
|
|
217
|
+
}, TParent, TContext, TArgs>;
|
|
218
|
+
resolve?: SubscriptionResolveFn<TResult, {
|
|
219
|
+
[key in TKey]: TResult;
|
|
220
|
+
}, TContext, TArgs>;
|
|
221
|
+
}
|
|
222
|
+
export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
|
|
223
|
+
subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
|
|
224
|
+
resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
|
|
225
|
+
}
|
|
226
|
+
export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> = SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs> | SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
|
|
227
|
+
export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> = ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>) | SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
|
|
228
|
+
export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (parent: TParent, context: TContext, info: GraphQLResolveInfo) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
|
|
229
|
+
export type IsTypeOfResolverFn<T = {}, TContext = {}> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
|
|
230
|
+
export type NextResolverFn<T> = () => Promise<T>;
|
|
231
|
+
export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
232
|
+
/** Mapping between all available schema types and the resolvers types */
|
|
233
|
+
export type IResolversTypes = {
|
|
234
|
+
Brand: ResolverTypeWrapper<IBrand>;
|
|
235
|
+
ID: ResolverTypeWrapper<Scalars['ID']>;
|
|
236
|
+
String: ResolverTypeWrapper<Scalars['String']>;
|
|
237
|
+
BrandInput: IBrandInput;
|
|
238
|
+
Category: ResolverTypeWrapper<ICategory>;
|
|
239
|
+
CategoryInput: ICategoryInput;
|
|
240
|
+
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
241
|
+
Mutation: ResolverTypeWrapper<{}>;
|
|
242
|
+
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
243
|
+
OpportunitiesPage: ResolverTypeWrapper<IOpportunitiesPage>;
|
|
244
|
+
Opportunity: ResolverTypeWrapper<IOpportunity>;
|
|
245
|
+
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
246
|
+
OpportunityInput: IOpportunityInput;
|
|
247
|
+
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
248
|
+
OpportunityV2: ResolverTypeWrapper<IOpportunityV2>;
|
|
249
|
+
Query: ResolverTypeWrapper<{}>;
|
|
250
|
+
};
|
|
251
|
+
/** Mapping between all available schema types and the resolvers parents */
|
|
252
|
+
export type IResolversParentTypes = {
|
|
253
|
+
Brand: IBrand;
|
|
254
|
+
ID: Scalars['ID'];
|
|
255
|
+
String: Scalars['String'];
|
|
256
|
+
BrandInput: IBrandInput;
|
|
257
|
+
Category: ICategory;
|
|
258
|
+
CategoryInput: ICategoryInput;
|
|
259
|
+
Long: Scalars['Long'];
|
|
260
|
+
Mutation: {};
|
|
261
|
+
Boolean: Scalars['Boolean'];
|
|
262
|
+
OpportunitiesPage: IOpportunitiesPage;
|
|
263
|
+
Opportunity: IOpportunity;
|
|
264
|
+
Int: Scalars['Int'];
|
|
265
|
+
OpportunityInput: IOpportunityInput;
|
|
266
|
+
Float: Scalars['Float'];
|
|
267
|
+
OpportunityV2: IOpportunityV2;
|
|
268
|
+
Query: {};
|
|
269
|
+
};
|
|
270
|
+
export type IOneOfDirectiveArgs = {};
|
|
271
|
+
export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
272
|
+
export type IBrandResolvers<ContextType = any, ParentType extends IResolversParentTypes['Brand'] = IResolversParentTypes['Brand']> = {
|
|
273
|
+
brandId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
274
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
275
|
+
matchingWords?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
276
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
277
|
+
industry?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
278
|
+
link?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
279
|
+
media?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
280
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
281
|
+
};
|
|
282
|
+
export type ICategoryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Category'] = IResolversParentTypes['Category']> = {
|
|
283
|
+
categoryId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
284
|
+
matchingWords?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
285
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
286
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
287
|
+
};
|
|
288
|
+
export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
|
|
289
|
+
name: 'Long';
|
|
290
|
+
}
|
|
291
|
+
export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
|
|
292
|
+
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
293
|
+
createBrand?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateBrandArgs, 'input'>>;
|
|
294
|
+
updateBrand?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateBrandArgs, 'brandId' | 'input'>>;
|
|
295
|
+
createCategory?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateCategoryArgs, 'input'>>;
|
|
296
|
+
updateCategory?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateCategoryArgs, 'categoryId' | 'input'>>;
|
|
297
|
+
openOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationOpenOpportunityArgs, 'opportunityId'>>;
|
|
298
|
+
hideOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationHideOpportunityArgs, 'opportunityId'>>;
|
|
299
|
+
createOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateOpportunityArgs, 'input'>>;
|
|
300
|
+
updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'opportunityId' | 'input'>>;
|
|
301
|
+
};
|
|
302
|
+
export type IOpportunitiesPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunitiesPage'] = IResolversParentTypes['OpportunitiesPage']> = {
|
|
303
|
+
currentOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['Opportunity']>>>, ParentType, ContextType>;
|
|
304
|
+
similarOpportunities?: Resolver<Maybe<Array<Maybe<IResolversTypes['Opportunity']>>>, ParentType, ContextType>;
|
|
305
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
306
|
+
};
|
|
307
|
+
export type IOpportunityResolvers<ContextType = any, ParentType extends IResolversParentTypes['Opportunity'] = IResolversParentTypes['Opportunity']> = {
|
|
308
|
+
opportunityId?: Resolver<Maybe<IResolversTypes['ID']>, ParentType, ContextType>;
|
|
309
|
+
name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
310
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
311
|
+
startedAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
312
|
+
endedAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
313
|
+
createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
314
|
+
tags?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
315
|
+
category?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
316
|
+
media?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
317
|
+
links?: Resolver<Maybe<Array<Maybe<IResolversTypes['String']>>>, ParentType, ContextType>;
|
|
318
|
+
ludoRankRequired?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
319
|
+
ludoRankRequiredMin?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
320
|
+
ludoRankRequiredMax?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
321
|
+
rewardType?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
322
|
+
creatorId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
323
|
+
creatorWallet?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
324
|
+
status?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
325
|
+
shareLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
326
|
+
notifiable?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
327
|
+
clicks?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
328
|
+
views?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
329
|
+
brandId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
330
|
+
brandName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
331
|
+
brandDescription?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
332
|
+
brandIndustry?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
333
|
+
brandLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
334
|
+
brandMedia?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
335
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
336
|
+
};
|
|
337
|
+
export type IOpportunityV2Resolvers<ContextType = any, ParentType extends IResolversParentTypes['OpportunityV2'] = IResolversParentTypes['OpportunityV2']> = {
|
|
338
|
+
opportunityId?: Resolver<IResolversTypes['ID'], ParentType, ContextType>;
|
|
339
|
+
brandId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
340
|
+
categoryId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
341
|
+
opportunityStatus?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
342
|
+
opportunityType?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
343
|
+
notificationType?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
344
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
345
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
346
|
+
brandName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
347
|
+
brandDescription?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
348
|
+
brandMedia?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
349
|
+
brandUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
350
|
+
brandIndustry?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
351
|
+
categoryName?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
352
|
+
ludoUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
353
|
+
projectUrl?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
354
|
+
activeFrom?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
355
|
+
activeUntil?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
356
|
+
minXpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
357
|
+
maxXpLevel?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
358
|
+
minRank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
359
|
+
maxRank?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
360
|
+
media?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
361
|
+
reportLink?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
362
|
+
clicks?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
363
|
+
views?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
364
|
+
blockchain?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
365
|
+
collection?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
366
|
+
createdAt?: Resolver<Maybe<IResolversTypes['Long']>, ParentType, ContextType>;
|
|
367
|
+
minWalletValue?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
368
|
+
maxWalletValue?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
|
|
369
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
370
|
+
};
|
|
371
|
+
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
372
|
+
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
373
|
+
fetchBrands?: Resolver<Maybe<Array<Maybe<IResolversTypes['Brand']>>>, ParentType, ContextType>;
|
|
374
|
+
fetchBrand?: Resolver<IResolversTypes['Brand'], ParentType, ContextType, RequireFields<IQueryFetchBrandArgs, 'brandId'>>;
|
|
375
|
+
fetchCategories?: Resolver<Maybe<Array<Maybe<IResolversTypes['Category']>>>, ParentType, ContextType>;
|
|
376
|
+
fetchCategory?: Resolver<IResolversTypes['Category'], ParentType, ContextType, RequireFields<IQueryFetchCategoryArgs, 'categoryId'>>;
|
|
377
|
+
fetchOpportunities?: Resolver<IResolversTypes['OpportunitiesPage'], ParentType, ContextType, Partial<IQueryFetchOpportunitiesArgs>>;
|
|
378
|
+
fetchOpportunitiesV2?: Resolver<Maybe<Array<Maybe<IResolversTypes['OpportunityV2']>>>, ParentType, ContextType>;
|
|
379
|
+
fetchOpportunity?: Resolver<IResolversTypes['OpportunityV2'], ParentType, ContextType, RequireFields<IQueryFetchOpportunityArgs, 'opportunityId'>>;
|
|
380
|
+
};
|
|
381
|
+
export type IResolvers<ContextType = any> = {
|
|
382
|
+
Brand?: IBrandResolvers<ContextType>;
|
|
383
|
+
Category?: ICategoryResolvers<ContextType>;
|
|
384
|
+
Long?: GraphQLScalarType;
|
|
385
|
+
Mutation?: IMutationResolvers<ContextType>;
|
|
386
|
+
OpportunitiesPage?: IOpportunitiesPageResolvers<ContextType>;
|
|
387
|
+
Opportunity?: IOpportunityResolvers<ContextType>;
|
|
388
|
+
OpportunityV2?: IOpportunityV2Resolvers<ContextType>;
|
|
389
|
+
Query?: IQueryResolvers<ContextType>;
|
|
390
|
+
};
|
|
391
|
+
export type IDirectiveResolvers<ContextType = any> = {
|
|
392
|
+
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
393
|
+
};
|
|
394
|
+
export type ICreateOpportunityMutationVariables = Exact<{
|
|
395
|
+
input: IOpportunityInput;
|
|
396
|
+
}>;
|
|
397
|
+
export type ICreateOpportunityMutation = Pick<IMutation, 'createOpportunity'>;
|
|
398
|
+
export type IOpenOpportunityMutationVariables = Exact<{
|
|
399
|
+
opportunityId: Scalars['ID'];
|
|
400
|
+
}>;
|
|
401
|
+
export type IOpenOpportunityMutation = Pick<IMutation, 'openOpportunity'>;
|
|
402
|
+
export type IFetchOpportunitiesQueryVariables = Exact<{
|
|
403
|
+
domain?: Maybe<Scalars['String']>;
|
|
404
|
+
}>;
|
|
405
|
+
export type IFetchOpportunitiesQuery = {
|
|
406
|
+
fetchOpportunities: {
|
|
407
|
+
currentOpportunities?: Maybe<Array<Maybe<Pick<IOpportunity, 'opportunityId' | 'name' | 'description' | 'startedAt' | 'endedAt' | 'createdAt' | 'tags' | 'category' | 'media' | 'links' | 'ludoRankRequired' | 'ludoRankRequiredMin' | 'ludoRankRequiredMax' | 'rewardType' | 'creatorId' | 'creatorWallet' | 'status'>>>>;
|
|
408
|
+
similarOpportunities?: Maybe<Array<Maybe<Pick<IOpportunity, 'opportunityId' | 'name' | 'description' | 'startedAt' | 'endedAt' | 'createdAt' | 'tags' | 'category' | 'media' | 'links' | 'ludoRankRequired' | 'ludoRankRequiredMin' | 'ludoRankRequiredMax' | 'rewardType' | 'creatorId' | 'creatorWallet' | 'status'>>>>;
|
|
409
|
+
};
|
|
410
|
+
};
|
|
411
|
+
export declare const CreateOpportunityDocument: Apollo.DocumentNode;
|
|
412
|
+
export type ICreateOpportunityMutationFn = Apollo.MutationFunction<ICreateOpportunityMutation, ICreateOpportunityMutationVariables>;
|
|
413
|
+
/**
|
|
414
|
+
* __useCreateOpportunityMutation__
|
|
415
|
+
*
|
|
416
|
+
* To run a mutation, you first call `useCreateOpportunityMutation` within a React component and pass it any options that fit your needs.
|
|
417
|
+
* When your component renders, `useCreateOpportunityMutation` returns a tuple that includes:
|
|
418
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
419
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
420
|
+
*
|
|
421
|
+
* @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;
|
|
422
|
+
*
|
|
423
|
+
* @example
|
|
424
|
+
* const [createOpportunityMutation, { data, loading, error }] = useCreateOpportunityMutation({
|
|
425
|
+
* variables: {
|
|
426
|
+
* input: // value for 'input'
|
|
427
|
+
* },
|
|
428
|
+
* });
|
|
429
|
+
*/
|
|
430
|
+
export declare function useCreateOpportunityMutation(baseOptions?: Apollo.MutationHookOptions<ICreateOpportunityMutation, ICreateOpportunityMutationVariables>): Apollo.MutationTuple<ICreateOpportunityMutation, Exact<{
|
|
431
|
+
input: IOpportunityInput;
|
|
432
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
433
|
+
export type CreateOpportunityMutationHookResult = ReturnType<typeof useCreateOpportunityMutation>;
|
|
434
|
+
export type CreateOpportunityMutationResult = Apollo.MutationResult<ICreateOpportunityMutation>;
|
|
435
|
+
export type CreateOpportunityMutationOptions = Apollo.BaseMutationOptions<ICreateOpportunityMutation, ICreateOpportunityMutationVariables>;
|
|
436
|
+
export declare const OpenOpportunityDocument: Apollo.DocumentNode;
|
|
437
|
+
export type IOpenOpportunityMutationFn = Apollo.MutationFunction<IOpenOpportunityMutation, IOpenOpportunityMutationVariables>;
|
|
438
|
+
/**
|
|
439
|
+
* __useOpenOpportunityMutation__
|
|
440
|
+
*
|
|
441
|
+
* To run a mutation, you first call `useOpenOpportunityMutation` within a React component and pass it any options that fit your needs.
|
|
442
|
+
* When your component renders, `useOpenOpportunityMutation` returns a tuple that includes:
|
|
443
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
444
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
445
|
+
*
|
|
446
|
+
* @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;
|
|
447
|
+
*
|
|
448
|
+
* @example
|
|
449
|
+
* const [openOpportunityMutation, { data, loading, error }] = useOpenOpportunityMutation({
|
|
450
|
+
* variables: {
|
|
451
|
+
* opportunityId: // value for 'opportunityId'
|
|
452
|
+
* },
|
|
453
|
+
* });
|
|
454
|
+
*/
|
|
455
|
+
export declare function useOpenOpportunityMutation(baseOptions?: Apollo.MutationHookOptions<IOpenOpportunityMutation, IOpenOpportunityMutationVariables>): Apollo.MutationTuple<IOpenOpportunityMutation, Exact<{
|
|
456
|
+
opportunityId: string;
|
|
457
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
458
|
+
export type OpenOpportunityMutationHookResult = ReturnType<typeof useOpenOpportunityMutation>;
|
|
459
|
+
export type OpenOpportunityMutationResult = Apollo.MutationResult<IOpenOpportunityMutation>;
|
|
460
|
+
export type OpenOpportunityMutationOptions = Apollo.BaseMutationOptions<IOpenOpportunityMutation, IOpenOpportunityMutationVariables>;
|
|
461
|
+
export declare const FetchOpportunitiesDocument: Apollo.DocumentNode;
|
|
462
|
+
/**
|
|
463
|
+
* __useFetchOpportunitiesQuery__
|
|
464
|
+
*
|
|
465
|
+
* To run a query within a React component, call `useFetchOpportunitiesQuery` and pass it any options that fit your needs.
|
|
466
|
+
* When your component renders, `useFetchOpportunitiesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
467
|
+
* you can use to render your UI.
|
|
468
|
+
*
|
|
469
|
+
* @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;
|
|
470
|
+
*
|
|
471
|
+
* @example
|
|
472
|
+
* const { data, loading, error } = useFetchOpportunitiesQuery({
|
|
473
|
+
* variables: {
|
|
474
|
+
* domain: // value for 'domain'
|
|
475
|
+
* },
|
|
476
|
+
* });
|
|
477
|
+
*/
|
|
478
|
+
export declare function useFetchOpportunitiesQuery(baseOptions?: Apollo.QueryHookOptions<IFetchOpportunitiesQuery, IFetchOpportunitiesQueryVariables>): Apollo.QueryResult<IFetchOpportunitiesQuery, Exact<{
|
|
479
|
+
domain?: Maybe<string> | undefined;
|
|
480
|
+
}>>;
|
|
481
|
+
export declare function useFetchOpportunitiesLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchOpportunitiesQuery, IFetchOpportunitiesQueryVariables>): Apollo.LazyQueryResultTuple<IFetchOpportunitiesQuery, Exact<{
|
|
482
|
+
domain?: Maybe<string> | undefined;
|
|
483
|
+
}>>;
|
|
484
|
+
export type FetchOpportunitiesQueryHookResult = ReturnType<typeof useFetchOpportunitiesQuery>;
|
|
485
|
+
export type FetchOpportunitiesLazyQueryHookResult = ReturnType<typeof useFetchOpportunitiesLazyQuery>;
|
|
486
|
+
export type FetchOpportunitiesQueryResult = Apollo.QueryResult<IFetchOpportunitiesQuery, IFetchOpportunitiesQueryVariables>;
|
|
@@ -0,0 +1,148 @@
|
|
|
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.useFetchOpportunitiesLazyQuery = exports.useFetchOpportunitiesQuery = exports.FetchOpportunitiesDocument = exports.useOpenOpportunityMutation = exports.OpenOpportunityDocument = exports.useCreateOpportunityMutation = exports.CreateOpportunityDocument = void 0;
|
|
27
|
+
const client_1 = require("@apollo/client");
|
|
28
|
+
const Apollo = __importStar(require("@apollo/client"));
|
|
29
|
+
exports.CreateOpportunityDocument = (0, client_1.gql) `
|
|
30
|
+
mutation CreateOpportunity($input: OpportunityInput!) {
|
|
31
|
+
createOpportunity(input: $input)
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
/**
|
|
35
|
+
* __useCreateOpportunityMutation__
|
|
36
|
+
*
|
|
37
|
+
* To run a mutation, you first call `useCreateOpportunityMutation` within a React component and pass it any options that fit your needs.
|
|
38
|
+
* When your component renders, `useCreateOpportunityMutation` 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 [createOpportunityMutation, { data, loading, error }] = useCreateOpportunityMutation({
|
|
46
|
+
* variables: {
|
|
47
|
+
* input: // value for 'input'
|
|
48
|
+
* },
|
|
49
|
+
* });
|
|
50
|
+
*/
|
|
51
|
+
function useCreateOpportunityMutation(baseOptions) {
|
|
52
|
+
return Apollo.useMutation(exports.CreateOpportunityDocument, baseOptions);
|
|
53
|
+
}
|
|
54
|
+
exports.useCreateOpportunityMutation = useCreateOpportunityMutation;
|
|
55
|
+
exports.OpenOpportunityDocument = (0, client_1.gql) `
|
|
56
|
+
mutation OpenOpportunity($opportunityId: ID!) {
|
|
57
|
+
openOpportunity(opportunityId: $opportunityId)
|
|
58
|
+
}
|
|
59
|
+
`;
|
|
60
|
+
/**
|
|
61
|
+
* __useOpenOpportunityMutation__
|
|
62
|
+
*
|
|
63
|
+
* To run a mutation, you first call `useOpenOpportunityMutation` within a React component and pass it any options that fit your needs.
|
|
64
|
+
* When your component renders, `useOpenOpportunityMutation` 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 [openOpportunityMutation, { data, loading, error }] = useOpenOpportunityMutation({
|
|
72
|
+
* variables: {
|
|
73
|
+
* opportunityId: // value for 'opportunityId'
|
|
74
|
+
* },
|
|
75
|
+
* });
|
|
76
|
+
*/
|
|
77
|
+
function useOpenOpportunityMutation(baseOptions) {
|
|
78
|
+
return Apollo.useMutation(exports.OpenOpportunityDocument, baseOptions);
|
|
79
|
+
}
|
|
80
|
+
exports.useOpenOpportunityMutation = useOpenOpportunityMutation;
|
|
81
|
+
exports.FetchOpportunitiesDocument = (0, client_1.gql) `
|
|
82
|
+
query FetchOpportunities($domain: String) {
|
|
83
|
+
fetchOpportunities(domain: $domain) {
|
|
84
|
+
currentOpportunities {
|
|
85
|
+
opportunityId
|
|
86
|
+
name
|
|
87
|
+
description
|
|
88
|
+
startedAt
|
|
89
|
+
endedAt
|
|
90
|
+
createdAt
|
|
91
|
+
tags
|
|
92
|
+
category
|
|
93
|
+
media
|
|
94
|
+
links
|
|
95
|
+
ludoRankRequired
|
|
96
|
+
ludoRankRequiredMin
|
|
97
|
+
ludoRankRequiredMax
|
|
98
|
+
rewardType
|
|
99
|
+
creatorId
|
|
100
|
+
creatorWallet
|
|
101
|
+
status
|
|
102
|
+
}
|
|
103
|
+
similarOpportunities {
|
|
104
|
+
opportunityId
|
|
105
|
+
name
|
|
106
|
+
description
|
|
107
|
+
startedAt
|
|
108
|
+
endedAt
|
|
109
|
+
createdAt
|
|
110
|
+
tags
|
|
111
|
+
category
|
|
112
|
+
media
|
|
113
|
+
links
|
|
114
|
+
ludoRankRequired
|
|
115
|
+
ludoRankRequiredMin
|
|
116
|
+
ludoRankRequiredMax
|
|
117
|
+
rewardType
|
|
118
|
+
creatorId
|
|
119
|
+
creatorWallet
|
|
120
|
+
status
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
`;
|
|
125
|
+
/**
|
|
126
|
+
* __useFetchOpportunitiesQuery__
|
|
127
|
+
*
|
|
128
|
+
* To run a query within a React component, call `useFetchOpportunitiesQuery` and pass it any options that fit your needs.
|
|
129
|
+
* When your component renders, `useFetchOpportunitiesQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
130
|
+
* you can use to render your UI.
|
|
131
|
+
*
|
|
132
|
+
* @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;
|
|
133
|
+
*
|
|
134
|
+
* @example
|
|
135
|
+
* const { data, loading, error } = useFetchOpportunitiesQuery({
|
|
136
|
+
* variables: {
|
|
137
|
+
* domain: // value for 'domain'
|
|
138
|
+
* },
|
|
139
|
+
* });
|
|
140
|
+
*/
|
|
141
|
+
function useFetchOpportunitiesQuery(baseOptions) {
|
|
142
|
+
return Apollo.useQuery(exports.FetchOpportunitiesDocument, baseOptions);
|
|
143
|
+
}
|
|
144
|
+
exports.useFetchOpportunitiesQuery = useFetchOpportunitiesQuery;
|
|
145
|
+
function useFetchOpportunitiesLazyQuery(baseOptions) {
|
|
146
|
+
return Apollo.useLazyQuery(exports.FetchOpportunitiesDocument, baseOptions);
|
|
147
|
+
}
|
|
148
|
+
exports.useFetchOpportunitiesLazyQuery = useFetchOpportunitiesLazyQuery;
|