@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,274 @@
|
|
|
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 JSON scalar */
|
|
26
|
+
JSON: any;
|
|
27
|
+
/** A 64-bit signed integer */
|
|
28
|
+
Long: any;
|
|
29
|
+
};
|
|
30
|
+
export type IFeature = {
|
|
31
|
+
featureId: Scalars['Int'];
|
|
32
|
+
name: Scalars['String'];
|
|
33
|
+
description?: Maybe<Scalars['String']>;
|
|
34
|
+
parameterized: Scalars['Boolean'];
|
|
35
|
+
};
|
|
36
|
+
export type IFeaturePack = {
|
|
37
|
+
featurePackId: Scalars['String'];
|
|
38
|
+
name: Scalars['String'];
|
|
39
|
+
price: Scalars['Float'];
|
|
40
|
+
basic: Scalars['Boolean'];
|
|
41
|
+
daysPeriod: Scalars['Int'];
|
|
42
|
+
packedFeatures?: Maybe<Array<IPackedFeature>>;
|
|
43
|
+
};
|
|
44
|
+
export type IMutation = {
|
|
45
|
+
setDummy: Scalars['String'];
|
|
46
|
+
buyFeaturePackForXp: Scalars['Boolean'];
|
|
47
|
+
buyProjectMonitorForXp: Scalars['Boolean'];
|
|
48
|
+
buyProjectAlertForXp: Scalars['Boolean'];
|
|
49
|
+
};
|
|
50
|
+
export type IMutationBuyFeaturePackForXpArgs = {
|
|
51
|
+
featurePackId: Scalars['String'];
|
|
52
|
+
};
|
|
53
|
+
export type IPackedFeature = {
|
|
54
|
+
featurePackId: Scalars['String'];
|
|
55
|
+
featureId: Scalars['String'];
|
|
56
|
+
name: Scalars['String'];
|
|
57
|
+
description?: Maybe<Scalars['String']>;
|
|
58
|
+
param?: Maybe<Scalars['Int']>;
|
|
59
|
+
usageLimit?: Maybe<Scalars['Int']>;
|
|
60
|
+
};
|
|
61
|
+
export type IQuery = {
|
|
62
|
+
getDummy: Scalars['String'];
|
|
63
|
+
fetchFeatures?: Maybe<Array<IFeature>>;
|
|
64
|
+
fetchFeaturePacks?: Maybe<Array<IFeaturePack>>;
|
|
65
|
+
};
|
|
66
|
+
export type IUserFeaturePack = {
|
|
67
|
+
userId: Scalars['String'];
|
|
68
|
+
featurePackId: Scalars['String'];
|
|
69
|
+
acquiredAt: Scalars['Long'];
|
|
70
|
+
};
|
|
71
|
+
export type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
72
|
+
export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
73
|
+
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
|
74
|
+
};
|
|
75
|
+
export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
|
|
76
|
+
export type ResolverFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => Promise<TResult> | TResult;
|
|
77
|
+
export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
|
|
78
|
+
export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
79
|
+
export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
|
|
80
|
+
subscribe: SubscriptionSubscribeFn<{
|
|
81
|
+
[key in TKey]: TResult;
|
|
82
|
+
}, TParent, TContext, TArgs>;
|
|
83
|
+
resolve?: SubscriptionResolveFn<TResult, {
|
|
84
|
+
[key in TKey]: TResult;
|
|
85
|
+
}, TContext, TArgs>;
|
|
86
|
+
}
|
|
87
|
+
export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
|
|
88
|
+
subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
|
|
89
|
+
resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
|
|
90
|
+
}
|
|
91
|
+
export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> = SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs> | SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
|
|
92
|
+
export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> = ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>) | SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
|
|
93
|
+
export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (parent: TParent, context: TContext, info: GraphQLResolveInfo) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
|
|
94
|
+
export type IsTypeOfResolverFn<T = {}, TContext = {}> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
|
|
95
|
+
export type NextResolverFn<T> = () => Promise<T>;
|
|
96
|
+
export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (next: NextResolverFn<TResult>, parent: TParent, args: TArgs, context: TContext, info: GraphQLResolveInfo) => TResult | Promise<TResult>;
|
|
97
|
+
/** Mapping between all available schema types and the resolvers types */
|
|
98
|
+
export type IResolversTypes = {
|
|
99
|
+
Feature: ResolverTypeWrapper<IFeature>;
|
|
100
|
+
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
101
|
+
String: ResolverTypeWrapper<Scalars['String']>;
|
|
102
|
+
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
103
|
+
FeaturePack: ResolverTypeWrapper<IFeaturePack>;
|
|
104
|
+
Float: ResolverTypeWrapper<Scalars['Float']>;
|
|
105
|
+
JSON: ResolverTypeWrapper<Scalars['JSON']>;
|
|
106
|
+
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
107
|
+
Mutation: ResolverTypeWrapper<{}>;
|
|
108
|
+
PackedFeature: ResolverTypeWrapper<IPackedFeature>;
|
|
109
|
+
Query: ResolverTypeWrapper<{}>;
|
|
110
|
+
UserFeaturePack: ResolverTypeWrapper<IUserFeaturePack>;
|
|
111
|
+
};
|
|
112
|
+
/** Mapping between all available schema types and the resolvers parents */
|
|
113
|
+
export type IResolversParentTypes = {
|
|
114
|
+
Feature: IFeature;
|
|
115
|
+
Int: Scalars['Int'];
|
|
116
|
+
String: Scalars['String'];
|
|
117
|
+
Boolean: Scalars['Boolean'];
|
|
118
|
+
FeaturePack: IFeaturePack;
|
|
119
|
+
Float: Scalars['Float'];
|
|
120
|
+
JSON: Scalars['JSON'];
|
|
121
|
+
Long: Scalars['Long'];
|
|
122
|
+
Mutation: {};
|
|
123
|
+
PackedFeature: IPackedFeature;
|
|
124
|
+
Query: {};
|
|
125
|
+
UserFeaturePack: IUserFeaturePack;
|
|
126
|
+
};
|
|
127
|
+
export type IOneOfDirectiveArgs = {};
|
|
128
|
+
export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
129
|
+
export type IFeatureResolvers<ContextType = any, ParentType extends IResolversParentTypes['Feature'] = IResolversParentTypes['Feature']> = {
|
|
130
|
+
featureId?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
131
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
132
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
133
|
+
parameterized?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
|
|
134
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
135
|
+
};
|
|
136
|
+
export type IFeaturePackResolvers<ContextType = any, ParentType extends IResolversParentTypes['FeaturePack'] = IResolversParentTypes['FeaturePack']> = {
|
|
137
|
+
featurePackId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
138
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
139
|
+
price?: Resolver<IResolversTypes['Float'], ParentType, ContextType>;
|
|
140
|
+
basic?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
|
|
141
|
+
daysPeriod?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
142
|
+
packedFeatures?: Resolver<Maybe<Array<IResolversTypes['PackedFeature']>>, ParentType, ContextType>;
|
|
143
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
144
|
+
};
|
|
145
|
+
export interface IJsonScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['JSON'], any> {
|
|
146
|
+
name: 'JSON';
|
|
147
|
+
}
|
|
148
|
+
export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
|
|
149
|
+
name: 'Long';
|
|
150
|
+
}
|
|
151
|
+
export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
|
|
152
|
+
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
153
|
+
buyFeaturePackForXp?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationBuyFeaturePackForXpArgs, 'featurePackId'>>;
|
|
154
|
+
buyProjectMonitorForXp?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
|
|
155
|
+
buyProjectAlertForXp?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType>;
|
|
156
|
+
};
|
|
157
|
+
export type IPackedFeatureResolvers<ContextType = any, ParentType extends IResolversParentTypes['PackedFeature'] = IResolversParentTypes['PackedFeature']> = {
|
|
158
|
+
featurePackId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
159
|
+
featureId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
160
|
+
name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
161
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
162
|
+
param?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
163
|
+
usageLimit?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
164
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
165
|
+
};
|
|
166
|
+
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
167
|
+
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
168
|
+
fetchFeatures?: Resolver<Maybe<Array<IResolversTypes['Feature']>>, ParentType, ContextType>;
|
|
169
|
+
fetchFeaturePacks?: Resolver<Maybe<Array<IResolversTypes['FeaturePack']>>, ParentType, ContextType>;
|
|
170
|
+
};
|
|
171
|
+
export type IUserFeaturePackResolvers<ContextType = any, ParentType extends IResolversParentTypes['UserFeaturePack'] = IResolversParentTypes['UserFeaturePack']> = {
|
|
172
|
+
userId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
173
|
+
featurePackId?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
174
|
+
acquiredAt?: Resolver<IResolversTypes['Long'], ParentType, ContextType>;
|
|
175
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
176
|
+
};
|
|
177
|
+
export type IResolvers<ContextType = any> = {
|
|
178
|
+
Feature?: IFeatureResolvers<ContextType>;
|
|
179
|
+
FeaturePack?: IFeaturePackResolvers<ContextType>;
|
|
180
|
+
JSON?: GraphQLScalarType;
|
|
181
|
+
Long?: GraphQLScalarType;
|
|
182
|
+
Mutation?: IMutationResolvers<ContextType>;
|
|
183
|
+
PackedFeature?: IPackedFeatureResolvers<ContextType>;
|
|
184
|
+
Query?: IQueryResolvers<ContextType>;
|
|
185
|
+
UserFeaturePack?: IUserFeaturePackResolvers<ContextType>;
|
|
186
|
+
};
|
|
187
|
+
export type IDirectiveResolvers<ContextType = any> = {
|
|
188
|
+
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
189
|
+
};
|
|
190
|
+
export type IBuyFeaturePackForXpMutationVariables = Exact<{
|
|
191
|
+
featurePackId: Scalars['String'];
|
|
192
|
+
}>;
|
|
193
|
+
export type IBuyFeaturePackForXpMutation = Pick<IMutation, 'buyFeaturePackForXp'>;
|
|
194
|
+
export type IBuyProjectAlertForXpMutationVariables = Exact<{
|
|
195
|
+
[key: string]: never;
|
|
196
|
+
}>;
|
|
197
|
+
export type IBuyProjectAlertForXpMutation = Pick<IMutation, 'buyProjectAlertForXp'>;
|
|
198
|
+
export type IBuyProjectMonitorForXpMutationVariables = Exact<{
|
|
199
|
+
[key: string]: never;
|
|
200
|
+
}>;
|
|
201
|
+
export type IBuyProjectMonitorForXpMutation = Pick<IMutation, 'buyProjectMonitorForXp'>;
|
|
202
|
+
export declare const BuyFeaturePackForXpDocument: Apollo.DocumentNode;
|
|
203
|
+
export type IBuyFeaturePackForXpMutationFn = Apollo.MutationFunction<IBuyFeaturePackForXpMutation, IBuyFeaturePackForXpMutationVariables>;
|
|
204
|
+
/**
|
|
205
|
+
* __useBuyFeaturePackForXpMutation__
|
|
206
|
+
*
|
|
207
|
+
* To run a mutation, you first call `useBuyFeaturePackForXpMutation` within a React component and pass it any options that fit your needs.
|
|
208
|
+
* When your component renders, `useBuyFeaturePackForXpMutation` returns a tuple that includes:
|
|
209
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
210
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
211
|
+
*
|
|
212
|
+
* @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;
|
|
213
|
+
*
|
|
214
|
+
* @example
|
|
215
|
+
* const [buyFeaturePackForXpMutation, { data, loading, error }] = useBuyFeaturePackForXpMutation({
|
|
216
|
+
* variables: {
|
|
217
|
+
* featurePackId: // value for 'featurePackId'
|
|
218
|
+
* },
|
|
219
|
+
* });
|
|
220
|
+
*/
|
|
221
|
+
export declare function useBuyFeaturePackForXpMutation(baseOptions?: Apollo.MutationHookOptions<IBuyFeaturePackForXpMutation, IBuyFeaturePackForXpMutationVariables>): Apollo.MutationTuple<IBuyFeaturePackForXpMutation, Exact<{
|
|
222
|
+
featurePackId: string;
|
|
223
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
224
|
+
export type BuyFeaturePackForXpMutationHookResult = ReturnType<typeof useBuyFeaturePackForXpMutation>;
|
|
225
|
+
export type BuyFeaturePackForXpMutationResult = Apollo.MutationResult<IBuyFeaturePackForXpMutation>;
|
|
226
|
+
export type BuyFeaturePackForXpMutationOptions = Apollo.BaseMutationOptions<IBuyFeaturePackForXpMutation, IBuyFeaturePackForXpMutationVariables>;
|
|
227
|
+
export declare const BuyProjectAlertForXpDocument: Apollo.DocumentNode;
|
|
228
|
+
export type IBuyProjectAlertForXpMutationFn = Apollo.MutationFunction<IBuyProjectAlertForXpMutation, IBuyProjectAlertForXpMutationVariables>;
|
|
229
|
+
/**
|
|
230
|
+
* __useBuyProjectAlertForXpMutation__
|
|
231
|
+
*
|
|
232
|
+
* To run a mutation, you first call `useBuyProjectAlertForXpMutation` within a React component and pass it any options that fit your needs.
|
|
233
|
+
* When your component renders, `useBuyProjectAlertForXpMutation` returns a tuple that includes:
|
|
234
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
235
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
236
|
+
*
|
|
237
|
+
* @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;
|
|
238
|
+
*
|
|
239
|
+
* @example
|
|
240
|
+
* const [buyProjectAlertForXpMutation, { data, loading, error }] = useBuyProjectAlertForXpMutation({
|
|
241
|
+
* variables: {
|
|
242
|
+
* },
|
|
243
|
+
* });
|
|
244
|
+
*/
|
|
245
|
+
export declare function useBuyProjectAlertForXpMutation(baseOptions?: Apollo.MutationHookOptions<IBuyProjectAlertForXpMutation, IBuyProjectAlertForXpMutationVariables>): Apollo.MutationTuple<IBuyProjectAlertForXpMutation, Exact<{
|
|
246
|
+
[key: string]: never;
|
|
247
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
248
|
+
export type BuyProjectAlertForXpMutationHookResult = ReturnType<typeof useBuyProjectAlertForXpMutation>;
|
|
249
|
+
export type BuyProjectAlertForXpMutationResult = Apollo.MutationResult<IBuyProjectAlertForXpMutation>;
|
|
250
|
+
export type BuyProjectAlertForXpMutationOptions = Apollo.BaseMutationOptions<IBuyProjectAlertForXpMutation, IBuyProjectAlertForXpMutationVariables>;
|
|
251
|
+
export declare const BuyProjectMonitorForXpDocument: Apollo.DocumentNode;
|
|
252
|
+
export type IBuyProjectMonitorForXpMutationFn = Apollo.MutationFunction<IBuyProjectMonitorForXpMutation, IBuyProjectMonitorForXpMutationVariables>;
|
|
253
|
+
/**
|
|
254
|
+
* __useBuyProjectMonitorForXpMutation__
|
|
255
|
+
*
|
|
256
|
+
* To run a mutation, you first call `useBuyProjectMonitorForXpMutation` within a React component and pass it any options that fit your needs.
|
|
257
|
+
* When your component renders, `useBuyProjectMonitorForXpMutation` returns a tuple that includes:
|
|
258
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
259
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
260
|
+
*
|
|
261
|
+
* @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;
|
|
262
|
+
*
|
|
263
|
+
* @example
|
|
264
|
+
* const [buyProjectMonitorForXpMutation, { data, loading, error }] = useBuyProjectMonitorForXpMutation({
|
|
265
|
+
* variables: {
|
|
266
|
+
* },
|
|
267
|
+
* });
|
|
268
|
+
*/
|
|
269
|
+
export declare function useBuyProjectMonitorForXpMutation(baseOptions?: Apollo.MutationHookOptions<IBuyProjectMonitorForXpMutation, IBuyProjectMonitorForXpMutationVariables>): Apollo.MutationTuple<IBuyProjectMonitorForXpMutation, Exact<{
|
|
270
|
+
[key: string]: never;
|
|
271
|
+
}>, Apollo.DefaultContext, Apollo.ApolloCache<any>>;
|
|
272
|
+
export type BuyProjectMonitorForXpMutationHookResult = ReturnType<typeof useBuyProjectMonitorForXpMutation>;
|
|
273
|
+
export type BuyProjectMonitorForXpMutationResult = Apollo.MutationResult<IBuyProjectMonitorForXpMutation>;
|
|
274
|
+
export type BuyProjectMonitorForXpMutationOptions = Apollo.BaseMutationOptions<IBuyProjectMonitorForXpMutation, IBuyProjectMonitorForXpMutationVariables>;
|
|
@@ -0,0 +1,104 @@
|
|
|
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.useBuyProjectMonitorForXpMutation = exports.BuyProjectMonitorForXpDocument = exports.useBuyProjectAlertForXpMutation = exports.BuyProjectAlertForXpDocument = exports.useBuyFeaturePackForXpMutation = exports.BuyFeaturePackForXpDocument = void 0;
|
|
27
|
+
const client_1 = require("@apollo/client");
|
|
28
|
+
const Apollo = __importStar(require("@apollo/client"));
|
|
29
|
+
exports.BuyFeaturePackForXpDocument = (0, client_1.gql) `
|
|
30
|
+
mutation BuyFeaturePackForXp($featurePackId: String!) {
|
|
31
|
+
buyFeaturePackForXp(featurePackId: $featurePackId)
|
|
32
|
+
}
|
|
33
|
+
`;
|
|
34
|
+
/**
|
|
35
|
+
* __useBuyFeaturePackForXpMutation__
|
|
36
|
+
*
|
|
37
|
+
* To run a mutation, you first call `useBuyFeaturePackForXpMutation` within a React component and pass it any options that fit your needs.
|
|
38
|
+
* When your component renders, `useBuyFeaturePackForXpMutation` 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 [buyFeaturePackForXpMutation, { data, loading, error }] = useBuyFeaturePackForXpMutation({
|
|
46
|
+
* variables: {
|
|
47
|
+
* featurePackId: // value for 'featurePackId'
|
|
48
|
+
* },
|
|
49
|
+
* });
|
|
50
|
+
*/
|
|
51
|
+
function useBuyFeaturePackForXpMutation(baseOptions) {
|
|
52
|
+
return Apollo.useMutation(exports.BuyFeaturePackForXpDocument, baseOptions);
|
|
53
|
+
}
|
|
54
|
+
exports.useBuyFeaturePackForXpMutation = useBuyFeaturePackForXpMutation;
|
|
55
|
+
exports.BuyProjectAlertForXpDocument = (0, client_1.gql) `
|
|
56
|
+
mutation BuyProjectAlertForXp {
|
|
57
|
+
buyProjectAlertForXp
|
|
58
|
+
}
|
|
59
|
+
`;
|
|
60
|
+
/**
|
|
61
|
+
* __useBuyProjectAlertForXpMutation__
|
|
62
|
+
*
|
|
63
|
+
* To run a mutation, you first call `useBuyProjectAlertForXpMutation` within a React component and pass it any options that fit your needs.
|
|
64
|
+
* When your component renders, `useBuyProjectAlertForXpMutation` 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 [buyProjectAlertForXpMutation, { data, loading, error }] = useBuyProjectAlertForXpMutation({
|
|
72
|
+
* variables: {
|
|
73
|
+
* },
|
|
74
|
+
* });
|
|
75
|
+
*/
|
|
76
|
+
function useBuyProjectAlertForXpMutation(baseOptions) {
|
|
77
|
+
return Apollo.useMutation(exports.BuyProjectAlertForXpDocument, baseOptions);
|
|
78
|
+
}
|
|
79
|
+
exports.useBuyProjectAlertForXpMutation = useBuyProjectAlertForXpMutation;
|
|
80
|
+
exports.BuyProjectMonitorForXpDocument = (0, client_1.gql) `
|
|
81
|
+
mutation BuyProjectMonitorForXp {
|
|
82
|
+
buyProjectMonitorForXp
|
|
83
|
+
}
|
|
84
|
+
`;
|
|
85
|
+
/**
|
|
86
|
+
* __useBuyProjectMonitorForXpMutation__
|
|
87
|
+
*
|
|
88
|
+
* To run a mutation, you first call `useBuyProjectMonitorForXpMutation` within a React component and pass it any options that fit your needs.
|
|
89
|
+
* When your component renders, `useBuyProjectMonitorForXpMutation` returns a tuple that includes:
|
|
90
|
+
* - A mutate function that you can call at any time to execute the mutation
|
|
91
|
+
* - An object with fields that represent the current status of the mutation's execution
|
|
92
|
+
*
|
|
93
|
+
* @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;
|
|
94
|
+
*
|
|
95
|
+
* @example
|
|
96
|
+
* const [buyProjectMonitorForXpMutation, { data, loading, error }] = useBuyProjectMonitorForXpMutation({
|
|
97
|
+
* variables: {
|
|
98
|
+
* },
|
|
99
|
+
* });
|
|
100
|
+
*/
|
|
101
|
+
function useBuyProjectMonitorForXpMutation(baseOptions) {
|
|
102
|
+
return Apollo.useMutation(exports.BuyProjectMonitorForXpDocument, baseOptions);
|
|
103
|
+
}
|
|
104
|
+
exports.useBuyProjectMonitorForXpMutation = useBuyProjectMonitorForXpMutation;
|
|
@@ -412,6 +412,7 @@ export type IProjectsLeaderboardSortInput = {
|
|
|
412
412
|
sortByLudoRankDayDifference?: Maybe<ISort>;
|
|
413
413
|
sortByLudoRankWeekDifference?: Maybe<ISort>;
|
|
414
414
|
sortByInvestors?: Maybe<ISort>;
|
|
415
|
+
sortByFetchedAt?: Maybe<ISort>;
|
|
415
416
|
};
|
|
416
417
|
export type IProjectsPage = {
|
|
417
418
|
projects: Array<IProject>;
|
|
@@ -781,6 +782,13 @@ export type IRangeDirectiveArgs = {
|
|
|
781
782
|
message?: Maybe<Scalars['String']>;
|
|
782
783
|
};
|
|
783
784
|
export type IRangeDirectiveResolver<Result, Parent, ContextType = any, Args = IRangeDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
785
|
+
export type IDeferDirectiveArgs = {
|
|
786
|
+
if?: Scalars['Boolean'];
|
|
787
|
+
label?: Maybe<Scalars['String']>;
|
|
788
|
+
};
|
|
789
|
+
export type IDeferDirectiveResolver<Result, Parent, ContextType = any, Args = IDeferDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
790
|
+
export type IExperimental_DisableErrorPropagationDirectiveArgs = {};
|
|
791
|
+
export type IExperimental_DisableErrorPropagationDirectiveResolver<Result, Parent, ContextType = any, Args = IExperimental_DisableErrorPropagationDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
784
792
|
export type IOneOfDirectiveArgs = {};
|
|
785
793
|
export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
786
794
|
export type IAssetResolvers<ContextType = any, ParentType extends IResolversParentTypes['Asset'] = IResolversParentTypes['Asset']> = {
|
|
@@ -1184,6 +1192,8 @@ export type IResolvers<ContextType = any> = {
|
|
|
1184
1192
|
export type IDirectiveResolvers<ContextType = any> = {
|
|
1185
1193
|
NotBlank?: INotBlankDirectiveResolver<any, any, ContextType>;
|
|
1186
1194
|
Range?: IRangeDirectiveResolver<any, any, ContextType>;
|
|
1195
|
+
defer?: IDeferDirectiveResolver<any, any, ContextType>;
|
|
1196
|
+
experimental_disableErrorPropagation?: IExperimental_DisableErrorPropagationDirectiveResolver<any, any, ContextType>;
|
|
1187
1197
|
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
1188
1198
|
};
|
|
1189
1199
|
export type IFetchAirdropsLeaderboardQueryVariables = Exact<{
|
package/build/index.d.ts
CHANGED
|
@@ -14,10 +14,29 @@ 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";
|
|
20
21
|
declare const schema: {
|
|
22
|
+
useBuyFeaturePackForXpMutation(baseOptions?: import("@apollo/client").MutationHookOptions<featuresSchema.IBuyFeaturePackForXpMutation, featuresSchema.Exact<{
|
|
23
|
+
featurePackId: string;
|
|
24
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<featuresSchema.IBuyFeaturePackForXpMutation, featuresSchema.Exact<{
|
|
25
|
+
featurePackId: string;
|
|
26
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
27
|
+
useBuyProjectAlertForXpMutation(baseOptions?: import("@apollo/client").MutationHookOptions<featuresSchema.IBuyProjectAlertForXpMutation, featuresSchema.Exact<{
|
|
28
|
+
[key: string]: never;
|
|
29
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<featuresSchema.IBuyProjectAlertForXpMutation, featuresSchema.Exact<{
|
|
30
|
+
[key: string]: never;
|
|
31
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
32
|
+
useBuyProjectMonitorForXpMutation(baseOptions?: import("@apollo/client").MutationHookOptions<featuresSchema.IBuyProjectMonitorForXpMutation, featuresSchema.Exact<{
|
|
33
|
+
[key: string]: never;
|
|
34
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<featuresSchema.IBuyProjectMonitorForXpMutation, featuresSchema.Exact<{
|
|
35
|
+
[key: string]: never;
|
|
36
|
+
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>>;
|
|
37
|
+
BuyFeaturePackForXpDocument: import("graphql").DocumentNode;
|
|
38
|
+
BuyProjectAlertForXpDocument: import("graphql").DocumentNode;
|
|
39
|
+
BuyProjectMonitorForXpDocument: import("graphql").DocumentNode;
|
|
21
40
|
useFetchMintingInfoQuery(baseOptions: import("@apollo/client").QueryHookOptions<mintInfoSchema.IFetchMintingInfoQuery, mintInfoSchema.Exact<{
|
|
22
41
|
input: mintInfoSchema.IMintingInput;
|
|
23
42
|
}>>): import("@apollo/client").QueryResult<mintInfoSchema.IFetchMintingInfoQuery, mintInfoSchema.Exact<{
|
|
@@ -2578,4 +2597,4 @@ declare const schema: {
|
|
|
2578
2597
|
FetchProjectLinksClicksInfoCsvDocument: import("graphql").DocumentNode;
|
|
2579
2598
|
FetchProjectReactionsInfoCsvDocument: import("graphql").DocumentNode;
|
|
2580
2599
|
};
|
|
2581
|
-
export { hosts, schema, graphqlConfig, authCookies, adminSchema, assetSchema, authSchema, collectionsSchema, experiencesSchema, extensionSchema, galleriesSchema, identitySchema, mediasSchema, opportunitiesSchema, preferencesSchema, searchSchema, formsSchema, tapsSchema, notificationsSchema, mintInfoSchema };
|
|
2600
|
+
export { hosts, schema, graphqlConfig, authCookies, adminSchema, assetSchema, authSchema, collectionsSchema, experiencesSchema, extensionSchema, galleriesSchema, identitySchema, mediasSchema, opportunitiesSchema, preferencesSchema, searchSchema, formsSchema, tapsSchema, notificationsSchema, mintInfoSchema, featuresSchema };
|
package/build/index.js
CHANGED
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.mintInfoSchema = exports.notificationsSchema = exports.tapsSchema = exports.formsSchema = exports.searchSchema = exports.preferencesSchema = exports.opportunitiesSchema = exports.mediasSchema = exports.identitySchema = exports.galleriesSchema = exports.extensionSchema = exports.experiencesSchema = exports.collectionsSchema = exports.authSchema = exports.assetSchema = exports.adminSchema = exports.authCookies = exports.graphqlConfig = exports.schema = exports.hosts = void 0;
|
|
26
|
+
exports.featuresSchema = exports.mintInfoSchema = exports.notificationsSchema = exports.tapsSchema = exports.formsSchema = exports.searchSchema = exports.preferencesSchema = exports.opportunitiesSchema = exports.mediasSchema = exports.identitySchema = exports.galleriesSchema = exports.extensionSchema = exports.experiencesSchema = exports.collectionsSchema = exports.authSchema = exports.assetSchema = exports.adminSchema = exports.authCookies = exports.graphqlConfig = exports.schema = exports.hosts = void 0;
|
|
27
27
|
const hosts = __importStar(require("./hosts"));
|
|
28
28
|
exports.hosts = hosts;
|
|
29
29
|
const graphqlConfig = __importStar(require("./config"));
|
|
@@ -56,6 +56,8 @@ const preferencesSchema = __importStar(require("./graphql_tools/__generated__/pr
|
|
|
56
56
|
exports.preferencesSchema = preferencesSchema;
|
|
57
57
|
const searchSchema = __importStar(require("./graphql_tools/__generated__/searchHost/schema"));
|
|
58
58
|
exports.searchSchema = searchSchema;
|
|
59
|
+
const featuresSchema = __importStar(require("./graphql_tools/__generated__/featuresHost/schema"));
|
|
60
|
+
exports.featuresSchema = featuresSchema;
|
|
59
61
|
const formsSchema = __importStar(require("./graphql_tools/__generated__/formsHost/schema"));
|
|
60
62
|
exports.formsSchema = formsSchema;
|
|
61
63
|
const tapsSchema = __importStar(require("./graphql_tools/__generated__/tapHost/schema"));
|
|
@@ -78,6 +80,7 @@ const schema = {
|
|
|
78
80
|
...formsSchema,
|
|
79
81
|
...tapsSchema,
|
|
80
82
|
...notificationsSchema,
|
|
81
|
-
...mintInfoSchema
|
|
83
|
+
...mintInfoSchema,
|
|
84
|
+
...featuresSchema
|
|
82
85
|
};
|
|
83
86
|
exports.schema = schema;
|