@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,478 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
import { GraphQLResolveInfo, GraphQLScalarType, GraphQLScalarTypeConfig } from 'graphql';
|
|
3
|
+
import { gql } from '@apollo/client';
|
|
4
|
+
import * as Apollo from '@apollo/client';
|
|
5
|
+
export type Maybe<T> = T | null;
|
|
6
|
+
export type Exact<T extends { [key: string]: unknown }> = { [K in keyof T]: T[K] };
|
|
7
|
+
export type MakeOptional<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]?: Maybe<T[SubKey]> };
|
|
8
|
+
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & { [SubKey in K]: Maybe<T[SubKey]> };
|
|
9
|
+
export type RequireFields<T, K extends keyof T> = Omit<T, K> & { [P in K]-?: NonNullable<T[P]> };
|
|
10
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
11
|
+
export type Scalars = {
|
|
12
|
+
ID: string;
|
|
13
|
+
String: string;
|
|
14
|
+
Boolean: boolean;
|
|
15
|
+
Int: number;
|
|
16
|
+
Float: number;
|
|
17
|
+
/** A 64-bit signed integer */
|
|
18
|
+
Long: any;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
export type IMutation = {
|
|
24
|
+
setDummy: Scalars['String'];
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export type IQuery = {
|
|
28
|
+
getDummy: Scalars['String'];
|
|
29
|
+
fetchMyExperience: Scalars['Int'];
|
|
30
|
+
fetchMyExperienceV2: IUserXp;
|
|
31
|
+
fetchMyTasks: Array<Maybe<ITask>>;
|
|
32
|
+
fetchMyLatestExperienceIncrement?: Maybe<IUserXpIncrement>;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
export type ISubscription = {
|
|
36
|
+
onDummy: Scalars['String'];
|
|
37
|
+
onMyExperienceUpdated: IUserXp;
|
|
38
|
+
onMyExperienceIncremented: IUserXpIncrement;
|
|
39
|
+
onInviteCodeUsed: IUsedInviteCode;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
export type ISubscriptionOnMyExperienceUpdatedArgs = {
|
|
44
|
+
authToken: Scalars['String'];
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
export type ISubscriptionOnMyExperienceIncrementedArgs = {
|
|
49
|
+
authToken: Scalars['String'];
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
export type ISubscriptionOnInviteCodeUsedArgs = {
|
|
54
|
+
authToken: Scalars['String'];
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
export type ITask = {
|
|
58
|
+
taskId?: Maybe<Scalars['ID']>;
|
|
59
|
+
userId?: Maybe<Scalars['ID']>;
|
|
60
|
+
taskType?: Maybe<Scalars['String']>;
|
|
61
|
+
name?: Maybe<Scalars['String']>;
|
|
62
|
+
description?: Maybe<Scalars['String']>;
|
|
63
|
+
repeatable?: Maybe<Scalars['Boolean']>;
|
|
64
|
+
maxRepeats?: Maybe<Scalars['Int']>;
|
|
65
|
+
minPointsAward?: Maybe<Scalars['Int']>;
|
|
66
|
+
maxPointsAward?: Maybe<Scalars['Int']>;
|
|
67
|
+
repeatsCompleted?: Maybe<Scalars['Int']>;
|
|
68
|
+
xpPointsEarned?: Maybe<Scalars['Int']>;
|
|
69
|
+
};
|
|
70
|
+
|
|
71
|
+
export type IUsedInviteCode = {
|
|
72
|
+
userId?: Maybe<Scalars['String']>;
|
|
73
|
+
inviteCode?: Maybe<Scalars['String']>;
|
|
74
|
+
inviteeId?: Maybe<Scalars['String']>;
|
|
75
|
+
};
|
|
76
|
+
|
|
77
|
+
export type IUserXp = {
|
|
78
|
+
xps: Scalars['Int'];
|
|
79
|
+
level: Scalars['Int'];
|
|
80
|
+
levelMinXps: Scalars['Int'];
|
|
81
|
+
levelMaxXps: Scalars['Int'];
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export type IUserXpIncrement = {
|
|
85
|
+
xpsIncrement: Scalars['Int'];
|
|
86
|
+
description?: Maybe<Scalars['String']>;
|
|
87
|
+
xps: Scalars['Int'];
|
|
88
|
+
level: Scalars['Int'];
|
|
89
|
+
levelMinXps: Scalars['Int'];
|
|
90
|
+
levelMaxXps: Scalars['Int'];
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
export type ResolverTypeWrapper<T> = Promise<T> | T;
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
export type ResolverWithResolve<TResult, TParent, TContext, TArgs> = {
|
|
99
|
+
resolve: ResolverFn<TResult, TParent, TContext, TArgs>;
|
|
100
|
+
};
|
|
101
|
+
export type Resolver<TResult, TParent = {}, TContext = {}, TArgs = {}> = ResolverFn<TResult, TParent, TContext, TArgs> | ResolverWithResolve<TResult, TParent, TContext, TArgs>;
|
|
102
|
+
|
|
103
|
+
export type ResolverFn<TResult, TParent, TContext, TArgs> = (
|
|
104
|
+
parent: TParent,
|
|
105
|
+
args: TArgs,
|
|
106
|
+
context: TContext,
|
|
107
|
+
info: GraphQLResolveInfo
|
|
108
|
+
) => Promise<TResult> | TResult;
|
|
109
|
+
|
|
110
|
+
export type SubscriptionSubscribeFn<TResult, TParent, TContext, TArgs> = (
|
|
111
|
+
parent: TParent,
|
|
112
|
+
args: TArgs,
|
|
113
|
+
context: TContext,
|
|
114
|
+
info: GraphQLResolveInfo
|
|
115
|
+
) => AsyncIterable<TResult> | Promise<AsyncIterable<TResult>>;
|
|
116
|
+
|
|
117
|
+
export type SubscriptionResolveFn<TResult, TParent, TContext, TArgs> = (
|
|
118
|
+
parent: TParent,
|
|
119
|
+
args: TArgs,
|
|
120
|
+
context: TContext,
|
|
121
|
+
info: GraphQLResolveInfo
|
|
122
|
+
) => TResult | Promise<TResult>;
|
|
123
|
+
|
|
124
|
+
export interface SubscriptionSubscriberObject<TResult, TKey extends string, TParent, TContext, TArgs> {
|
|
125
|
+
subscribe: SubscriptionSubscribeFn<{ [key in TKey]: TResult }, TParent, TContext, TArgs>;
|
|
126
|
+
resolve?: SubscriptionResolveFn<TResult, { [key in TKey]: TResult }, TContext, TArgs>;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export interface SubscriptionResolverObject<TResult, TParent, TContext, TArgs> {
|
|
130
|
+
subscribe: SubscriptionSubscribeFn<any, TParent, TContext, TArgs>;
|
|
131
|
+
resolve: SubscriptionResolveFn<TResult, any, TContext, TArgs>;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export type SubscriptionObject<TResult, TKey extends string, TParent, TContext, TArgs> =
|
|
135
|
+
| SubscriptionSubscriberObject<TResult, TKey, TParent, TContext, TArgs>
|
|
136
|
+
| SubscriptionResolverObject<TResult, TParent, TContext, TArgs>;
|
|
137
|
+
|
|
138
|
+
export type SubscriptionResolver<TResult, TKey extends string, TParent = {}, TContext = {}, TArgs = {}> =
|
|
139
|
+
| ((...args: any[]) => SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>)
|
|
140
|
+
| SubscriptionObject<TResult, TKey, TParent, TContext, TArgs>;
|
|
141
|
+
|
|
142
|
+
export type TypeResolveFn<TTypes, TParent = {}, TContext = {}> = (
|
|
143
|
+
parent: TParent,
|
|
144
|
+
context: TContext,
|
|
145
|
+
info: GraphQLResolveInfo
|
|
146
|
+
) => Maybe<TTypes> | Promise<Maybe<TTypes>>;
|
|
147
|
+
|
|
148
|
+
export type IsTypeOfResolverFn<T = {}, TContext = {}> = (obj: T, context: TContext, info: GraphQLResolveInfo) => boolean | Promise<boolean>;
|
|
149
|
+
|
|
150
|
+
export type NextResolverFn<T> = () => Promise<T>;
|
|
151
|
+
|
|
152
|
+
export type DirectiveResolverFn<TResult = {}, TParent = {}, TContext = {}, TArgs = {}> = (
|
|
153
|
+
next: NextResolverFn<TResult>,
|
|
154
|
+
parent: TParent,
|
|
155
|
+
args: TArgs,
|
|
156
|
+
context: TContext,
|
|
157
|
+
info: GraphQLResolveInfo
|
|
158
|
+
) => TResult | Promise<TResult>;
|
|
159
|
+
|
|
160
|
+
/** Mapping between all available schema types and the resolvers types */
|
|
161
|
+
export type IResolversTypes = {
|
|
162
|
+
Long: ResolverTypeWrapper<Scalars['Long']>;
|
|
163
|
+
Mutation: ResolverTypeWrapper<{}>;
|
|
164
|
+
String: ResolverTypeWrapper<Scalars['String']>;
|
|
165
|
+
Query: ResolverTypeWrapper<{}>;
|
|
166
|
+
Int: ResolverTypeWrapper<Scalars['Int']>;
|
|
167
|
+
Subscription: ResolverTypeWrapper<{}>;
|
|
168
|
+
Task: ResolverTypeWrapper<ITask>;
|
|
169
|
+
ID: ResolverTypeWrapper<Scalars['ID']>;
|
|
170
|
+
Boolean: ResolverTypeWrapper<Scalars['Boolean']>;
|
|
171
|
+
UsedInviteCode: ResolverTypeWrapper<IUsedInviteCode>;
|
|
172
|
+
UserXP: ResolverTypeWrapper<IUserXp>;
|
|
173
|
+
UserXPIncrement: ResolverTypeWrapper<IUserXpIncrement>;
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
/** Mapping between all available schema types and the resolvers parents */
|
|
177
|
+
export type IResolversParentTypes = {
|
|
178
|
+
Long: Scalars['Long'];
|
|
179
|
+
Mutation: {};
|
|
180
|
+
String: Scalars['String'];
|
|
181
|
+
Query: {};
|
|
182
|
+
Int: Scalars['Int'];
|
|
183
|
+
Subscription: {};
|
|
184
|
+
Task: ITask;
|
|
185
|
+
ID: Scalars['ID'];
|
|
186
|
+
Boolean: Scalars['Boolean'];
|
|
187
|
+
UsedInviteCode: IUsedInviteCode;
|
|
188
|
+
UserXP: IUserXp;
|
|
189
|
+
UserXPIncrement: IUserXpIncrement;
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
export type IOneOfDirectiveArgs = { };
|
|
193
|
+
|
|
194
|
+
export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
195
|
+
|
|
196
|
+
export interface ILongScalarConfig extends GraphQLScalarTypeConfig<IResolversTypes['Long'], any> {
|
|
197
|
+
name: 'Long';
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export type IMutationResolvers<ContextType = any, ParentType extends IResolversParentTypes['Mutation'] = IResolversParentTypes['Mutation']> = {
|
|
201
|
+
setDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
export type IQueryResolvers<ContextType = any, ParentType extends IResolversParentTypes['Query'] = IResolversParentTypes['Query']> = {
|
|
205
|
+
getDummy?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
|
|
206
|
+
fetchMyExperience?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
207
|
+
fetchMyExperienceV2?: Resolver<IResolversTypes['UserXP'], ParentType, ContextType>;
|
|
208
|
+
fetchMyTasks?: Resolver<Array<Maybe<IResolversTypes['Task']>>, ParentType, ContextType>;
|
|
209
|
+
fetchMyLatestExperienceIncrement?: Resolver<Maybe<IResolversTypes['UserXPIncrement']>, ParentType, ContextType>;
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolversParentTypes['Subscription'] = IResolversParentTypes['Subscription']> = {
|
|
213
|
+
onDummy?: SubscriptionResolver<IResolversTypes['String'], "onDummy", ParentType, ContextType>;
|
|
214
|
+
onMyExperienceUpdated?: SubscriptionResolver<IResolversTypes['UserXP'], "onMyExperienceUpdated", ParentType, ContextType, RequireFields<ISubscriptionOnMyExperienceUpdatedArgs, 'authToken'>>;
|
|
215
|
+
onMyExperienceIncremented?: SubscriptionResolver<IResolversTypes['UserXPIncrement'], "onMyExperienceIncremented", ParentType, ContextType, RequireFields<ISubscriptionOnMyExperienceIncrementedArgs, 'authToken'>>;
|
|
216
|
+
onInviteCodeUsed?: SubscriptionResolver<IResolversTypes['UsedInviteCode'], "onInviteCodeUsed", ParentType, ContextType, RequireFields<ISubscriptionOnInviteCodeUsedArgs, 'authToken'>>;
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
export type ITaskResolvers<ContextType = any, ParentType extends IResolversParentTypes['Task'] = IResolversParentTypes['Task']> = {
|
|
220
|
+
taskId?: Resolver<Maybe<IResolversTypes['ID']>, ParentType, ContextType>;
|
|
221
|
+
userId?: Resolver<Maybe<IResolversTypes['ID']>, ParentType, ContextType>;
|
|
222
|
+
taskType?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
223
|
+
name?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
224
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
225
|
+
repeatable?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
|
|
226
|
+
maxRepeats?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
227
|
+
minPointsAward?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
228
|
+
maxPointsAward?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
229
|
+
repeatsCompleted?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
230
|
+
xpPointsEarned?: Resolver<Maybe<IResolversTypes['Int']>, ParentType, ContextType>;
|
|
231
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
export type IUsedInviteCodeResolvers<ContextType = any, ParentType extends IResolversParentTypes['UsedInviteCode'] = IResolversParentTypes['UsedInviteCode']> = {
|
|
235
|
+
userId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
236
|
+
inviteCode?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
237
|
+
inviteeId?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
238
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
export type IUserXpResolvers<ContextType = any, ParentType extends IResolversParentTypes['UserXP'] = IResolversParentTypes['UserXP']> = {
|
|
242
|
+
xps?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
243
|
+
level?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
244
|
+
levelMinXps?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
245
|
+
levelMaxXps?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
246
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
export type IUserXpIncrementResolvers<ContextType = any, ParentType extends IResolversParentTypes['UserXPIncrement'] = IResolversParentTypes['UserXPIncrement']> = {
|
|
250
|
+
xpsIncrement?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
251
|
+
description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
|
|
252
|
+
xps?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
253
|
+
level?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
254
|
+
levelMinXps?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
255
|
+
levelMaxXps?: Resolver<IResolversTypes['Int'], ParentType, ContextType>;
|
|
256
|
+
__isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
|
|
257
|
+
};
|
|
258
|
+
|
|
259
|
+
export type IResolvers<ContextType = any> = {
|
|
260
|
+
Long?: GraphQLScalarType;
|
|
261
|
+
Mutation?: IMutationResolvers<ContextType>;
|
|
262
|
+
Query?: IQueryResolvers<ContextType>;
|
|
263
|
+
Subscription?: ISubscriptionResolvers<ContextType>;
|
|
264
|
+
Task?: ITaskResolvers<ContextType>;
|
|
265
|
+
UsedInviteCode?: IUsedInviteCodeResolvers<ContextType>;
|
|
266
|
+
UserXP?: IUserXpResolvers<ContextType>;
|
|
267
|
+
UserXPIncrement?: IUserXpIncrementResolvers<ContextType>;
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
export type IDirectiveResolvers<ContextType = any> = {
|
|
271
|
+
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
272
|
+
};
|
|
273
|
+
|
|
274
|
+
export type IFetchMyExperienceV2QueryVariables = Exact<{ [key: string]: never; }>;
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
export type IFetchMyExperienceV2Query = { fetchMyExperienceV2: Pick<IUserXp, 'xps' | 'level' | 'levelMaxXps' | 'levelMinXps'> };
|
|
278
|
+
|
|
279
|
+
export type IFetchMyTasksQueryVariables = Exact<{ [key: string]: never; }>;
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
export type IFetchMyTasksQuery = { fetchMyTasks: Array<Maybe<Pick<ITask, 'taskId' | 'userId' | 'taskType' | 'name' | 'description' | 'repeatable' | 'maxRepeats' | 'minPointsAward' | 'maxPointsAward' | 'repeatsCompleted'>>> };
|
|
283
|
+
|
|
284
|
+
export type IOnInviteCodeUsedSubscriptionVariables = Exact<{
|
|
285
|
+
authToken: Scalars['String'];
|
|
286
|
+
}>;
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
export type IOnInviteCodeUsedSubscription = { onInviteCodeUsed: Pick<IUsedInviteCode, 'userId' | 'inviteCode' | 'inviteeId'> };
|
|
290
|
+
|
|
291
|
+
export type IOnMyExperienceIncrementedSubscriptionVariables = Exact<{
|
|
292
|
+
authToken: Scalars['String'];
|
|
293
|
+
}>;
|
|
294
|
+
|
|
295
|
+
|
|
296
|
+
export type IOnMyExperienceIncrementedSubscription = { onMyExperienceIncremented: Pick<IUserXpIncrement, 'xpsIncrement' | 'description' | 'xps' | 'level' | 'levelMinXps' | 'levelMaxXps'> };
|
|
297
|
+
|
|
298
|
+
export type IOnMyExperienceUpdatedSubscriptionVariables = Exact<{
|
|
299
|
+
authToken: Scalars['String'];
|
|
300
|
+
}>;
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
export type IOnMyExperienceUpdatedSubscription = { onMyExperienceUpdated: Pick<IUserXp, 'xps' | 'level' | 'levelMinXps' | 'levelMaxXps'> };
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
export const FetchMyExperienceV2Document = gql`
|
|
307
|
+
query FetchMyExperienceV2 {
|
|
308
|
+
fetchMyExperienceV2 {
|
|
309
|
+
xps
|
|
310
|
+
level
|
|
311
|
+
levelMaxXps
|
|
312
|
+
levelMinXps
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
`;
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* __useFetchMyExperienceV2Query__
|
|
319
|
+
*
|
|
320
|
+
* To run a query within a React component, call `useFetchMyExperienceV2Query` and pass it any options that fit your needs.
|
|
321
|
+
* When your component renders, `useFetchMyExperienceV2Query` returns an object from Apollo Client that contains loading, error, and data properties
|
|
322
|
+
* you can use to render your UI.
|
|
323
|
+
*
|
|
324
|
+
* @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;
|
|
325
|
+
*
|
|
326
|
+
* @example
|
|
327
|
+
* const { data, loading, error } = useFetchMyExperienceV2Query({
|
|
328
|
+
* variables: {
|
|
329
|
+
* },
|
|
330
|
+
* });
|
|
331
|
+
*/
|
|
332
|
+
export function useFetchMyExperienceV2Query(baseOptions?: Apollo.QueryHookOptions<IFetchMyExperienceV2Query, IFetchMyExperienceV2QueryVariables>) {
|
|
333
|
+
return Apollo.useQuery<IFetchMyExperienceV2Query, IFetchMyExperienceV2QueryVariables>(FetchMyExperienceV2Document, baseOptions);
|
|
334
|
+
}
|
|
335
|
+
export function useFetchMyExperienceV2LazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchMyExperienceV2Query, IFetchMyExperienceV2QueryVariables>) {
|
|
336
|
+
return Apollo.useLazyQuery<IFetchMyExperienceV2Query, IFetchMyExperienceV2QueryVariables>(FetchMyExperienceV2Document, baseOptions);
|
|
337
|
+
}
|
|
338
|
+
export type FetchMyExperienceV2QueryHookResult = ReturnType<typeof useFetchMyExperienceV2Query>;
|
|
339
|
+
export type FetchMyExperienceV2LazyQueryHookResult = ReturnType<typeof useFetchMyExperienceV2LazyQuery>;
|
|
340
|
+
export type FetchMyExperienceV2QueryResult = Apollo.QueryResult<IFetchMyExperienceV2Query, IFetchMyExperienceV2QueryVariables>;
|
|
341
|
+
export const FetchMyTasksDocument = gql`
|
|
342
|
+
query FetchMyTasks {
|
|
343
|
+
fetchMyTasks {
|
|
344
|
+
taskId
|
|
345
|
+
userId
|
|
346
|
+
taskType
|
|
347
|
+
name
|
|
348
|
+
description
|
|
349
|
+
repeatable
|
|
350
|
+
maxRepeats
|
|
351
|
+
minPointsAward
|
|
352
|
+
maxPointsAward
|
|
353
|
+
repeatsCompleted
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
`;
|
|
357
|
+
|
|
358
|
+
/**
|
|
359
|
+
* __useFetchMyTasksQuery__
|
|
360
|
+
*
|
|
361
|
+
* To run a query within a React component, call `useFetchMyTasksQuery` and pass it any options that fit your needs.
|
|
362
|
+
* When your component renders, `useFetchMyTasksQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
363
|
+
* you can use to render your UI.
|
|
364
|
+
*
|
|
365
|
+
* @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;
|
|
366
|
+
*
|
|
367
|
+
* @example
|
|
368
|
+
* const { data, loading, error } = useFetchMyTasksQuery({
|
|
369
|
+
* variables: {
|
|
370
|
+
* },
|
|
371
|
+
* });
|
|
372
|
+
*/
|
|
373
|
+
export function useFetchMyTasksQuery(baseOptions?: Apollo.QueryHookOptions<IFetchMyTasksQuery, IFetchMyTasksQueryVariables>) {
|
|
374
|
+
return Apollo.useQuery<IFetchMyTasksQuery, IFetchMyTasksQueryVariables>(FetchMyTasksDocument, baseOptions);
|
|
375
|
+
}
|
|
376
|
+
export function useFetchMyTasksLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchMyTasksQuery, IFetchMyTasksQueryVariables>) {
|
|
377
|
+
return Apollo.useLazyQuery<IFetchMyTasksQuery, IFetchMyTasksQueryVariables>(FetchMyTasksDocument, baseOptions);
|
|
378
|
+
}
|
|
379
|
+
export type FetchMyTasksQueryHookResult = ReturnType<typeof useFetchMyTasksQuery>;
|
|
380
|
+
export type FetchMyTasksLazyQueryHookResult = ReturnType<typeof useFetchMyTasksLazyQuery>;
|
|
381
|
+
export type FetchMyTasksQueryResult = Apollo.QueryResult<IFetchMyTasksQuery, IFetchMyTasksQueryVariables>;
|
|
382
|
+
export const OnInviteCodeUsedDocument = gql`
|
|
383
|
+
subscription onInviteCodeUsed($authToken: String!) {
|
|
384
|
+
onInviteCodeUsed(authToken: $authToken) {
|
|
385
|
+
userId
|
|
386
|
+
inviteCode
|
|
387
|
+
inviteeId
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
`;
|
|
391
|
+
|
|
392
|
+
/**
|
|
393
|
+
* __useOnInviteCodeUsedSubscription__
|
|
394
|
+
*
|
|
395
|
+
* To run a query within a React component, call `useOnInviteCodeUsedSubscription` and pass it any options that fit your needs.
|
|
396
|
+
* When your component renders, `useOnInviteCodeUsedSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
397
|
+
* you can use to render your UI.
|
|
398
|
+
*
|
|
399
|
+
* @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
400
|
+
*
|
|
401
|
+
* @example
|
|
402
|
+
* const { data, loading, error } = useOnInviteCodeUsedSubscription({
|
|
403
|
+
* variables: {
|
|
404
|
+
* authToken: // value for 'authToken'
|
|
405
|
+
* },
|
|
406
|
+
* });
|
|
407
|
+
*/
|
|
408
|
+
export function useOnInviteCodeUsedSubscription(baseOptions: Apollo.SubscriptionHookOptions<IOnInviteCodeUsedSubscription, IOnInviteCodeUsedSubscriptionVariables>) {
|
|
409
|
+
return Apollo.useSubscription<IOnInviteCodeUsedSubscription, IOnInviteCodeUsedSubscriptionVariables>(OnInviteCodeUsedDocument, baseOptions);
|
|
410
|
+
}
|
|
411
|
+
export type OnInviteCodeUsedSubscriptionHookResult = ReturnType<typeof useOnInviteCodeUsedSubscription>;
|
|
412
|
+
export type OnInviteCodeUsedSubscriptionResult = Apollo.SubscriptionResult<IOnInviteCodeUsedSubscription>;
|
|
413
|
+
export const OnMyExperienceIncrementedDocument = gql`
|
|
414
|
+
subscription onMyExperienceIncremented($authToken: String!) {
|
|
415
|
+
onMyExperienceIncremented(authToken: $authToken) {
|
|
416
|
+
xpsIncrement
|
|
417
|
+
description
|
|
418
|
+
xps
|
|
419
|
+
level
|
|
420
|
+
levelMinXps
|
|
421
|
+
levelMaxXps
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
`;
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* __useOnMyExperienceIncrementedSubscription__
|
|
428
|
+
*
|
|
429
|
+
* To run a query within a React component, call `useOnMyExperienceIncrementedSubscription` and pass it any options that fit your needs.
|
|
430
|
+
* When your component renders, `useOnMyExperienceIncrementedSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
431
|
+
* you can use to render your UI.
|
|
432
|
+
*
|
|
433
|
+
* @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
434
|
+
*
|
|
435
|
+
* @example
|
|
436
|
+
* const { data, loading, error } = useOnMyExperienceIncrementedSubscription({
|
|
437
|
+
* variables: {
|
|
438
|
+
* authToken: // value for 'authToken'
|
|
439
|
+
* },
|
|
440
|
+
* });
|
|
441
|
+
*/
|
|
442
|
+
export function useOnMyExperienceIncrementedSubscription(baseOptions: Apollo.SubscriptionHookOptions<IOnMyExperienceIncrementedSubscription, IOnMyExperienceIncrementedSubscriptionVariables>) {
|
|
443
|
+
return Apollo.useSubscription<IOnMyExperienceIncrementedSubscription, IOnMyExperienceIncrementedSubscriptionVariables>(OnMyExperienceIncrementedDocument, baseOptions);
|
|
444
|
+
}
|
|
445
|
+
export type OnMyExperienceIncrementedSubscriptionHookResult = ReturnType<typeof useOnMyExperienceIncrementedSubscription>;
|
|
446
|
+
export type OnMyExperienceIncrementedSubscriptionResult = Apollo.SubscriptionResult<IOnMyExperienceIncrementedSubscription>;
|
|
447
|
+
export const OnMyExperienceUpdatedDocument = gql`
|
|
448
|
+
subscription OnMyExperienceUpdated($authToken: String!) {
|
|
449
|
+
onMyExperienceUpdated(authToken: $authToken) {
|
|
450
|
+
xps
|
|
451
|
+
level
|
|
452
|
+
levelMinXps
|
|
453
|
+
levelMaxXps
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
`;
|
|
457
|
+
|
|
458
|
+
/**
|
|
459
|
+
* __useOnMyExperienceUpdatedSubscription__
|
|
460
|
+
*
|
|
461
|
+
* To run a query within a React component, call `useOnMyExperienceUpdatedSubscription` and pass it any options that fit your needs.
|
|
462
|
+
* When your component renders, `useOnMyExperienceUpdatedSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
463
|
+
* you can use to render your UI.
|
|
464
|
+
*
|
|
465
|
+
* @param baseOptions options that will be passed into the subscription, supported options are listed on: https://www.apollographql.com/docs/react/api/react-hooks/#options;
|
|
466
|
+
*
|
|
467
|
+
* @example
|
|
468
|
+
* const { data, loading, error } = useOnMyExperienceUpdatedSubscription({
|
|
469
|
+
* variables: {
|
|
470
|
+
* authToken: // value for 'authToken'
|
|
471
|
+
* },
|
|
472
|
+
* });
|
|
473
|
+
*/
|
|
474
|
+
export function useOnMyExperienceUpdatedSubscription(baseOptions: Apollo.SubscriptionHookOptions<IOnMyExperienceUpdatedSubscription, IOnMyExperienceUpdatedSubscriptionVariables>) {
|
|
475
|
+
return Apollo.useSubscription<IOnMyExperienceUpdatedSubscription, IOnMyExperienceUpdatedSubscriptionVariables>(OnMyExperienceUpdatedDocument, baseOptions);
|
|
476
|
+
}
|
|
477
|
+
export type OnMyExperienceUpdatedSubscriptionHookResult = ReturnType<typeof useOnMyExperienceUpdatedSubscription>;
|
|
478
|
+
export type OnMyExperienceUpdatedSubscriptionResult = Apollo.SubscriptionResult<IOnMyExperienceUpdatedSubscription>;
|