@ludo.ninja/api 3.2.32 → 3.2.34
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/graphql_tools/__generated__/featuresHost/schema.d.ts +274 -0
- package/build/graphql_tools/__generated__/featuresHost/schema.js +104 -0
- package/build/graphql_tools/__generated__/searchHost/schema.d.ts +10 -0
- package/build/index.d.ts +20 -1
- package/build/index.js +5 -2
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/featuresHost/schema.ts +354 -0
- package/src/graphql_tools/__generated__/searchHost/schema.ts +16 -0
- package/src/index.ts +5 -2
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -0,0 +1,354 @@
|
|
|
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 JSON scalar */
|
|
18
|
+
JSON: any;
|
|
19
|
+
/** A 64-bit signed integer */
|
|
20
|
+
Long: any;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
export type IFeature = {
|
|
25
|
+
featureId: Scalars['Int'];
|
|
26
|
+
name: Scalars['String'];
|
|
27
|
+
description?: Maybe<Scalars['String']>;
|
|
28
|
+
parameterized: Scalars['Boolean'];
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export type IFeaturePack = {
|
|
32
|
+
featurePackId: Scalars['String'];
|
|
33
|
+
name: Scalars['String'];
|
|
34
|
+
price: Scalars['Float'];
|
|
35
|
+
basic: Scalars['Boolean'];
|
|
36
|
+
daysPeriod: Scalars['Int'];
|
|
37
|
+
packedFeatures?: Maybe<Array<IPackedFeature>>;
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
export type IMutation = {
|
|
43
|
+
setDummy: Scalars['String'];
|
|
44
|
+
buyFeaturePackForXp: Scalars['Boolean'];
|
|
45
|
+
buyProjectMonitorForXp: Scalars['Boolean'];
|
|
46
|
+
buyProjectAlertForXp: Scalars['Boolean'];
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
export type IMutationBuyFeaturePackForXpArgs = {
|
|
51
|
+
featurePackId: Scalars['String'];
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
export type IPackedFeature = {
|
|
55
|
+
featurePackId: Scalars['String'];
|
|
56
|
+
featureId: Scalars['String'];
|
|
57
|
+
name: Scalars['String'];
|
|
58
|
+
description?: Maybe<Scalars['String']>;
|
|
59
|
+
param?: Maybe<Scalars['Int']>;
|
|
60
|
+
usageLimit?: Maybe<Scalars['Int']>;
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export type IQuery = {
|
|
64
|
+
getDummy: Scalars['String'];
|
|
65
|
+
fetchFeatures?: Maybe<Array<IFeature>>;
|
|
66
|
+
fetchFeaturePacks?: Maybe<Array<IFeaturePack>>;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export type IUserFeaturePack = {
|
|
70
|
+
userId: Scalars['String'];
|
|
71
|
+
featurePackId: Scalars['String'];
|
|
72
|
+
acquiredAt: Scalars['Long'];
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
export type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
81
|
+
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
|
82
|
+
};
|
|
83
|
+
export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
|
|
84
|
+
|
|
85
|
+
export type ResolverFn<TResult, TParent, TContext, TArgs> = (
|
|
86
|
+
parent: TParent,
|
|
87
|
+
args: TArgs,
|
|
88
|
+
context: TContext,
|
|
89
|
+
info: GraphQLResolveInfo
|
|
90
|
+
) => Promise<TResult> | TResult;
|
|
91
|
+
|
|
92
|
+
export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (
|
|
93
|
+
parent: TParent,
|
|
94
|
+
args: TArgs,
|
|
95
|
+
context: TContext,
|
|
96
|
+
info: GraphQLResolveInfo
|
|
97
|
+
) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
|
|
98
|
+
|
|
99
|
+
export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (
|
|
100
|
+
parent: TParent,
|
|
101
|
+
args: TArgs,
|
|
102
|
+
context: TContext,
|
|
103
|
+
info: GraphQLResolveInfo
|
|
104
|
+
) => TResult | Promise<TResult>;
|
|
105
|
+
|
|
106
|
+
export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
|
|
107
|
+
subscribe: SubscriptionSubscribeFn<{ [key in TKey]: TResult }, TParent, TContext, TArgs>;
|
|
108
|
+
resolve?: SubscriptionResolveFn<TResult, { [key in TKey]: TResult }, TContext, TArgs>;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
|
|
112
|
+
subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
|
|
113
|
+
resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> =
|
|
117
|
+
| SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs>
|
|
118
|
+
| SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
|
|
119
|
+
|
|
120
|
+
export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> =
|
|
121
|
+
| ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>)
|
|
122
|
+
| SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
|
|
123
|
+
|
|
124
|
+
export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (
|
|
125
|
+
parent: TParent,
|
|
126
|
+
context: TContext,
|
|
127
|
+
info: GraphQLResolveInfo
|
|
128
|
+
) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
|
|
129
|
+
|
|
130
|
+
export type IsTypeOfResolverFn<T = {}, TContext = {}> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
|
|
131
|
+
|
|
132
|
+
export type NextResolverFn<T> = () => Promise<T>;
|
|
133
|
+
|
|
134
|
+
export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (
|
|
135
|
+
next: NextResolverFn<TResult>,
|
|
136
|
+
parent: TParent,
|
|
137
|
+
args: TArgs,
|
|
138
|
+
context: TContext,
|
|
139
|
+
info: GraphQLResolveInfo
|
|
140
|
+
) => TResult | Promise<TResult>;
|
|
141
|
+
|
|
142
|
+
/** Mapping between all available schema types and the resolvers types */
|
|
143
|
+
export type IResolversTypes = {
|
|
144
|
+
Feature: ResolverTypeWrapper<IFeature>;
|
|
145
|
+
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
146
|
+
String: ResolverTypeWrapper<Scalars['String']>;
|
|
147
|
+
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
148
|
+
FeaturePack: ResolverTypeWrapper<IFeaturePack>;
|
|
149
|
+
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
150
|
+
JSON: ResolverTypeWrapper<Scalars['JSON']>;
|
|
151
|
+
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
152
|
+
Mutation: ResolverTypeWrapper<{}>;
|
|
153
|
+
PackedFeature: ResolverTypeWrapper<IPackedFeature>;
|
|
154
|
+
Query: ResolverTypeWrapper<{}>;
|
|
155
|
+
UserFeaturePack: ResolverTypeWrapper<IUserFeaturePack>;
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
/** Mapping between all available schema types and the resolvers parents */
|
|
159
|
+
export type IResolversParentTypes = {
|
|
160
|
+
Feature: IFeature;
|
|
161
|
+
Int: Scalars['Int'];
|
|
162
|
+
String: Scalars['String'];
|
|
163
|
+
Boolean: Scalars['Boolean'];
|
|
164
|
+
FeaturePack: IFeaturePack;
|
|
165
|
+
Float: Scalars['Float'];
|
|
166
|
+
JSON: Scalars['JSON'];
|
|
167
|
+
Long: Scalars['Long'];
|
|
168
|
+
Mutation: {};
|
|
169
|
+
PackedFeature: IPackedFeature;
|
|
170
|
+
Query: {};
|
|
171
|
+
UserFeaturePack: IUserFeaturePack;
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
export type IOneOfDirectiveArgs = { };
|
|
175
|
+
|
|
176
|
+
export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
177
|
+
|
|
178
|
+
export type IFeatureResolvers<ContextType = any, ParentType extends IResolversParentTypes['Feature'] = IResolversParentTypes['Feature']> = {
|
|
179
|
+
featureId?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
180
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
181
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
182
|
+
parameterized?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
|
|
183
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
export type IFeaturePackResolvers<ContextType = any, ParentType extends IResolversParentTypes['FeaturePack'] = IResolversParentTypes['FeaturePack']> = {
|
|
187
|
+
featurePackId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
188
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
189
|
+
price?: Resolver<IResolversTypes['Float'], ParentType, ContextType>;
|
|
190
|
+
basic?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
|
|
191
|
+
daysPeriod?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
192
|
+
packedFeatures?: Resolver<Maybe<Array<IResolversTypes['PackedFeature']>>, ParentType, ContextType>;
|
|
193
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
export interface IJsonScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['JSON'], any> {
|
|
197
|
+
name: 'JSON';
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
|
|
201
|
+
name: 'Long';
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
|
|
205
|
+
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
206
|
+
buyFeaturePackForXp?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationBuyFeaturePackForXpArgs, 'featurePackId'>>;
|
|
207
|
+
buyProjectMonitorForXp?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
|
|
208
|
+
buyProjectAlertForXp?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
|
|
209
|
+
};
|
|
210
|
+
|
|
211
|
+
export type IPackedFeatureResolvers<ContextType = any, ParentType extends IResolversParentTypes['PackedFeature'] = IResolversParentTypes['PackedFeature']> = {
|
|
212
|
+
featurePackId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
213
|
+
featureId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
214
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
215
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
216
|
+
param?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
217
|
+
usageLimit?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
218
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
222
|
+
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
223
|
+
fetchFeatures?: Resolver<Maybe<Array<IResolversTypes['Feature']>>, ParentType, ContextType>;
|
|
224
|
+
fetchFeaturePacks?: Resolver<Maybe<Array<IResolversTypes['FeaturePack']>>, ParentType, ContextType>;
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
export type IUserFeaturePackResolvers<ContextType = any, ParentType extends IResolversParentTypes['UserFeaturePack'] = IResolversParentTypes['UserFeaturePack']> = {
|
|
228
|
+
userId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
229
|
+
featurePackId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
230
|
+
acquiredAt?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
|
|
231
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
export type IResolvers<ContextType = any> = {
|
|
235
|
+
Feature?: IFeatureResolvers<ContextType>;
|
|
236
|
+
FeaturePack?: IFeaturePackResolvers<ContextType>;
|
|
237
|
+
JSON?: GraphQLScalarType;
|
|
238
|
+
Long?: GraphQLScalarType;
|
|
239
|
+
Mutation?: IMutationResolvers<ContextType>;
|
|
240
|
+
PackedFeature?: IPackedFeatureResolvers<ContextType>;
|
|
241
|
+
Query?: IQueryResolvers<ContextType>;
|
|
242
|
+
UserFeaturePack?: IUserFeaturePackResolvers<ContextType>;
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
export type IDirectiveResolvers<ContextType = any> = {
|
|
246
|
+
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
export type IBuyFeaturePackForXpMutationVariables = Exact<{
|
|
250
|
+
featurePackId: Scalars['String'];
|
|
251
|
+
}>;
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
export type IBuyFeaturePackForXpMutation = Pick<IMutation, 'buyFeaturePackForXp'>;
|
|
255
|
+
|
|
256
|
+
export type IBuyProjectAlertForXpMutationVariables = Exact<{ [key: string]: never; }>;
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
export type IBuyProjectAlertForXpMutation = Pick<IMutation, 'buyProjectAlertForXp'>;
|
|
260
|
+
|
|
261
|
+
export type IBuyProjectMonitorForXpMutationVariables = Exact<{ [key: string]: never; }>;
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
export type IBuyProjectMonitorForXpMutation = Pick<IMutation, 'buyProjectMonitorForXp'>;
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
export const BuyFeaturePackForXpDocument = gql`
|
|
268
|
+
mutation BuyFeaturePackForXp($featurePackId: String!) {
|
|
269
|
+
buyFeaturePackForXp(featurePackId: $featurePackId)
|
|
270
|
+
}
|
|
271
|
+
`;
|
|
272
|
+
export type IBuyFeaturePackForXpMutationFn = Apollo.MutationFunction<IBuyFeaturePackForXpMutation, IBuyFeaturePackForXpMutationVariables>;
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* __useBuyFeaturePackForXpMutation__
|
|
276
|
+
*
|
|
277
|
+
* To run a mutation, you first call `useBuyFeaturePackForXpMutation` within a React component and pass it any options that fit your needs.
|
|
278
|
+
* When your component renders, `useBuyFeaturePackForXpMutation` returns a tuple that includes:
|
|
279
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
280
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
281
|
+
*
|
|
282
|
+
* @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;
|
|
283
|
+
*
|
|
284
|
+
* @example
|
|
285
|
+
* const [buyFeaturePackForXpMutation, { data, loading, error }] = useBuyFeaturePackForXpMutation({
|
|
286
|
+
* variables: {
|
|
287
|
+
* featurePackId: // value for 'featurePackId'
|
|
288
|
+
* },
|
|
289
|
+
* });
|
|
290
|
+
*/
|
|
291
|
+
export function useBuyFeaturePackForXpMutation(baseOptions?: Apollo.MutationHookOptions<IBuyFeaturePackForXpMutation, IBuyFeaturePackForXpMutationVariables>) {
|
|
292
|
+
return Apollo.useMutation<IBuyFeaturePackForXpMutation, IBuyFeaturePackForXpMutationVariables>(BuyFeaturePackForXpDocument, baseOptions);
|
|
293
|
+
}
|
|
294
|
+
export type BuyFeaturePackForXpMutationHookResult = ReturnType<typeof useBuyFeaturePackForXpMutation>;
|
|
295
|
+
export type BuyFeaturePackForXpMutationResult = Apollo.MutationResult<IBuyFeaturePackForXpMutation>;
|
|
296
|
+
export type BuyFeaturePackForXpMutationOptions = Apollo.BaseMutationOptions<IBuyFeaturePackForXpMutation, IBuyFeaturePackForXpMutationVariables>;
|
|
297
|
+
export const BuyProjectAlertForXpDocument = gql`
|
|
298
|
+
mutation BuyProjectAlertForXp {
|
|
299
|
+
buyProjectAlertForXp
|
|
300
|
+
}
|
|
301
|
+
`;
|
|
302
|
+
export type IBuyProjectAlertForXpMutationFn = Apollo.MutationFunction<IBuyProjectAlertForXpMutation, IBuyProjectAlertForXpMutationVariables>;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* __useBuyProjectAlertForXpMutation__
|
|
306
|
+
*
|
|
307
|
+
* To run a mutation, you first call `useBuyProjectAlertForXpMutation` within a React component and pass it any options that fit your needs.
|
|
308
|
+
* When your component renders, `useBuyProjectAlertForXpMutation` returns a tuple that includes:
|
|
309
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
310
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
311
|
+
*
|
|
312
|
+
* @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;
|
|
313
|
+
*
|
|
314
|
+
* @example
|
|
315
|
+
* const [buyProjectAlertForXpMutation, { data, loading, error }] = useBuyProjectAlertForXpMutation({
|
|
316
|
+
* variables: {
|
|
317
|
+
* },
|
|
318
|
+
* });
|
|
319
|
+
*/
|
|
320
|
+
export function useBuyProjectAlertForXpMutation(baseOptions?: Apollo.MutationHookOptions<IBuyProjectAlertForXpMutation, IBuyProjectAlertForXpMutationVariables>) {
|
|
321
|
+
return Apollo.useMutation<IBuyProjectAlertForXpMutation, IBuyProjectAlertForXpMutationVariables>(BuyProjectAlertForXpDocument, baseOptions);
|
|
322
|
+
}
|
|
323
|
+
export type BuyProjectAlertForXpMutationHookResult = ReturnType<typeof useBuyProjectAlertForXpMutation>;
|
|
324
|
+
export type BuyProjectAlertForXpMutationResult = Apollo.MutationResult<IBuyProjectAlertForXpMutation>;
|
|
325
|
+
export type BuyProjectAlertForXpMutationOptions = Apollo.BaseMutationOptions<IBuyProjectAlertForXpMutation, IBuyProjectAlertForXpMutationVariables>;
|
|
326
|
+
export const BuyProjectMonitorForXpDocument = gql`
|
|
327
|
+
mutation BuyProjectMonitorForXp {
|
|
328
|
+
buyProjectMonitorForXp
|
|
329
|
+
}
|
|
330
|
+
`;
|
|
331
|
+
export type IBuyProjectMonitorForXpMutationFn = Apollo.MutationFunction<IBuyProjectMonitorForXpMutation, IBuyProjectMonitorForXpMutationVariables>;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* __useBuyProjectMonitorForXpMutation__
|
|
335
|
+
*
|
|
336
|
+
* To run a mutation, you first call `useBuyProjectMonitorForXpMutation` within a React component and pass it any options that fit your needs.
|
|
337
|
+
* When your component renders, `useBuyProjectMonitorForXpMutation` returns a tuple that includes:
|
|
338
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
339
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
340
|
+
*
|
|
341
|
+
* @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;
|
|
342
|
+
*
|
|
343
|
+
* @example
|
|
344
|
+
* const [buyProjectMonitorForXpMutation, { data, loading, error }] = useBuyProjectMonitorForXpMutation({
|
|
345
|
+
* variables: {
|
|
346
|
+
* },
|
|
347
|
+
* });
|
|
348
|
+
*/
|
|
349
|
+
export function useBuyProjectMonitorForXpMutation(baseOptions?: Apollo.MutationHookOptions<IBuyProjectMonitorForXpMutation, IBuyProjectMonitorForXpMutationVariables>) {
|
|
350
|
+
return Apollo.useMutation<IBuyProjectMonitorForXpMutation, IBuyProjectMonitorForXpMutationVariables>(BuyProjectMonitorForXpDocument, baseOptions);
|
|
351
|
+
}
|
|
352
|
+
export type BuyProjectMonitorForXpMutationHookResult = ReturnType<typeof useBuyProjectMonitorForXpMutation>;
|
|
353
|
+
export type BuyProjectMonitorForXpMutationResult = Apollo.MutationResult<IBuyProjectMonitorForXpMutation>;
|
|
354
|
+
export type BuyProjectMonitorForXpMutationOptions = Apollo.BaseMutationOptions<IBuyProjectMonitorForXpMutation, IBuyProjectMonitorForXpMutationVariables>;
|
|
@@ -21,6 +21,8 @@ export type Scalars = {
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
+
|
|
25
|
+
|
|
24
26
|
export type IAirdropsLeaderboardFilterInput = {
|
|
25
27
|
userRank?: Maybe<Scalars['Int']>;
|
|
26
28
|
geolocationTerm?: Maybe<Scalars['String']>;
|
|
@@ -453,6 +455,7 @@ export type IProjectsLeaderboardSortInput = {
|
|
|
453
455
|
sortByLudoRankDayDifference?: Maybe<ISort>;
|
|
454
456
|
sortByLudoRankWeekDifference?: Maybe<ISort>;
|
|
455
457
|
sortByInvestors?: Maybe<ISort>;
|
|
458
|
+
sortByFetchedAt?: Maybe<ISort>;
|
|
456
459
|
};
|
|
457
460
|
|
|
458
461
|
export type IProjectsPage = {
|
|
@@ -940,6 +943,17 @@ export type IRangeDirectiveArgs = {
|
|
|
940
943
|
|
|
941
944
|
export type IRangeDirectiveResolver<Result, Parent, ContextType = any, Args = IRangeDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
942
945
|
|
|
946
|
+
export type IDeferDirectiveArgs = {
|
|
947
|
+
if?: Scalars['Boolean'];
|
|
948
|
+
label?: Maybe<Scalars['String']>;
|
|
949
|
+
};
|
|
950
|
+
|
|
951
|
+
export type IDeferDirectiveResolver<Result, Parent, ContextType = any, Args = IDeferDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
952
|
+
|
|
953
|
+
export type IExperimental_DisableErrorPropagationDirectiveArgs = { };
|
|
954
|
+
|
|
955
|
+
export type IExperimental_DisableErrorPropagationDirectiveResolver<Result, Parent, ContextType = any, Args = IExperimental_DisableErrorPropagationDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
956
|
+
|
|
943
957
|
export type IOneOfDirectiveArgs = { };
|
|
944
958
|
|
|
945
959
|
export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
@@ -1377,6 +1391,8 @@ export type IResolvers<ContextType = any> = {
|
|
|
1377
1391
|
export type IDirectiveResolvers<ContextType = any> = {
|
|
1378
1392
|
NotBlank?: INotBlankDirectiveResolver<any, any, ContextType>;
|
|
1379
1393
|
Range?: IRangeDirectiveResolver<any, any, ContextType>;
|
|
1394
|
+
defer?: IDeferDirectiveResolver<any, any, ContextType>;
|
|
1395
|
+
experimental_disableErrorPropagation?: IExperimental_DisableErrorPropagationDirectiveResolver<any, any, ContextType>;
|
|
1380
1396
|
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
1381
1397
|
};
|
|
1382
1398
|
|
package/src/index.ts
CHANGED
|
@@ -14,6 +14,7 @@ import * as mintInfoSchema from "./graphql_tools/__generated__/mintInfoHost/sche
|
|
|
14
14
|
import * as opportunitiesSchema from "./graphql_tools/__generated__/opportunitiesHost/schema";
|
|
15
15
|
import * as preferencesSchema from "./graphql_tools/__generated__/preferencesHost/schema";
|
|
16
16
|
import * as searchSchema from "./graphql_tools/__generated__/searchHost/schema";
|
|
17
|
+
import * as featuresSchema from "./graphql_tools/__generated__/featuresHost/schema";
|
|
17
18
|
import * as formsSchema from "./graphql_tools/__generated__/formsHost/schema";
|
|
18
19
|
import * as tapsSchema from "./graphql_tools/__generated__/tapHost/schema";
|
|
19
20
|
import * as notificationsSchema from "./graphql_tools/__generated__/notificationsHost/schema";
|
|
@@ -34,7 +35,8 @@ const schema = {
|
|
|
34
35
|
...formsSchema,
|
|
35
36
|
...tapsSchema,
|
|
36
37
|
...notificationsSchema,
|
|
37
|
-
...mintInfoSchema
|
|
38
|
+
...mintInfoSchema,
|
|
39
|
+
...featuresSchema
|
|
38
40
|
};
|
|
39
41
|
|
|
40
42
|
export {
|
|
@@ -57,5 +59,6 @@ export {
|
|
|
57
59
|
formsSchema,
|
|
58
60
|
tapsSchema,
|
|
59
61
|
notificationsSchema,
|
|
60
|
-
mintInfoSchema
|
|
62
|
+
mintInfoSchema,
|
|
63
|
+
featuresSchema
|
|
61
64
|
};
|