@ludo.ninja/api 3.2.44 → 3.2.45
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__/experiencesHost/schema.d.ts +21 -178
- package/build/graphql_tools/__generated__/experiencesHost/schema.js +14 -173
- package/build/index.d.ts +5 -35
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/experiencesHost/schema.ts +32 -250
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -12,9 +12,6 @@ export type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
|
12
12
|
export type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
13
13
|
[SubKey in K]: Maybe<T[SubKey]>;
|
|
14
14
|
};
|
|
15
|
-
export type RequireFields<T, K extends keyof T> = Omit<T, K> & {
|
|
16
|
-
[P in K]-?: NonNullable<T[P]>;
|
|
17
|
-
};
|
|
18
15
|
/** All built-in and custom scalars, mapped to their actual values */
|
|
19
16
|
export type Scalars = {
|
|
20
17
|
ID: string;
|
|
@@ -53,23 +50,6 @@ export type IQuery = {
|
|
|
53
50
|
};
|
|
54
51
|
export type ISubscription = {
|
|
55
52
|
onDummy: Scalars['String'];
|
|
56
|
-
onMyExperienceUpdated: IUserXp;
|
|
57
|
-
onMyExperienceIncremented: IUserXpIncrement;
|
|
58
|
-
onInviteCodeUsed: IUsedInviteCode;
|
|
59
|
-
onCommonOpportunityNotification: IOpportunityNotification;
|
|
60
|
-
onUserOpportunityNotification: IOpportunityNotification;
|
|
61
|
-
};
|
|
62
|
-
export type ISubscriptionOnMyExperienceUpdatedArgs = {
|
|
63
|
-
authToken: Scalars['String'];
|
|
64
|
-
};
|
|
65
|
-
export type ISubscriptionOnMyExperienceIncrementedArgs = {
|
|
66
|
-
authToken: Scalars['String'];
|
|
67
|
-
};
|
|
68
|
-
export type ISubscriptionOnInviteCodeUsedArgs = {
|
|
69
|
-
authToken: Scalars['String'];
|
|
70
|
-
};
|
|
71
|
-
export type ISubscriptionOnUserOpportunityNotificationArgs = {
|
|
72
|
-
authToken: Scalars['String'];
|
|
73
53
|
};
|
|
74
54
|
export type ITask = {
|
|
75
55
|
taskId?: Maybe<Scalars['ID']>;
|
|
@@ -163,6 +143,13 @@ export type IResolversParentTypes = {
|
|
|
163
143
|
UserXP: IUserXp;
|
|
164
144
|
UserXPIncrement: IUserXpIncrement;
|
|
165
145
|
};
|
|
146
|
+
export type IDeferDirectiveArgs = {
|
|
147
|
+
if?: Scalars['Boolean'];
|
|
148
|
+
label?: Maybe<Scalars['String']>;
|
|
149
|
+
};
|
|
150
|
+
export type IDeferDirectiveResolver<Result, Parent, ContextType = any, Args = IDeferDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
151
|
+
export type IExperimental_DisableErrorPropagationDirectiveArgs = {};
|
|
152
|
+
export type IExperimental_DisableErrorPropagationDirectiveResolver<Result, Parent, ContextType = any, Args = IExperimental_DisableErrorPropagationDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
166
153
|
export type IOneOfDirectiveArgs = {};
|
|
167
154
|
export type IOneOfDirectiveResolver<Result, Parent, ContextType = any, Args = IOneOfDirectiveArgs> = DirectiveResolverFn<Result, Parent, ContextType, Args>;
|
|
168
155
|
export type IActivityStreakResolvers<ContextType = any, ParentType extends IResolversParentTypes['ActivityStreak'] = IResolversParentTypes['ActivityStreak']> = {
|
|
@@ -198,11 +185,6 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
|
|
|
198
185
|
};
|
|
199
186
|
export type ISubscriptionResolvers<ContextType = any, ParentType extends IResolversParentTypes['Subscription'] = IResolversParentTypes['Subscription']> = {
|
|
200
187
|
onDummy?: SubscriptionResolver<IResolversTypes['String'], "onDummy", ParentType, ContextType>;
|
|
201
|
-
onMyExperienceUpdated?: SubscriptionResolver<IResolversTypes['UserXP'], "onMyExperienceUpdated", ParentType, ContextType, RequireFields<ISubscriptionOnMyExperienceUpdatedArgs, 'authToken'>>;
|
|
202
|
-
onMyExperienceIncremented?: SubscriptionResolver<IResolversTypes['UserXPIncrement'], "onMyExperienceIncremented", ParentType, ContextType, RequireFields<ISubscriptionOnMyExperienceIncrementedArgs, 'authToken'>>;
|
|
203
|
-
onInviteCodeUsed?: SubscriptionResolver<IResolversTypes['UsedInviteCode'], "onInviteCodeUsed", ParentType, ContextType, RequireFields<ISubscriptionOnInviteCodeUsedArgs, 'authToken'>>;
|
|
204
|
-
onCommonOpportunityNotification?: SubscriptionResolver<IResolversTypes['OpportunityNotification'], "onCommonOpportunityNotification", ParentType, ContextType>;
|
|
205
|
-
onUserOpportunityNotification?: SubscriptionResolver<IResolversTypes['OpportunityNotification'], "onUserOpportunityNotification", ParentType, ContextType, RequireFields<ISubscriptionOnUserOpportunityNotificationArgs, 'authToken'>>;
|
|
206
188
|
};
|
|
207
189
|
export type ITaskResolvers<ContextType = any, ParentType extends IResolversParentTypes['Task'] = IResolversParentTypes['Task']> = {
|
|
208
190
|
taskId?: Resolver<Maybe<IResolversTypes['ID']>, ParentType, ContextType>;
|
|
@@ -253,6 +235,8 @@ export type IResolvers<ContextType = any> = {
|
|
|
253
235
|
UserXPIncrement?: IUserXpIncrementResolvers<ContextType>;
|
|
254
236
|
};
|
|
255
237
|
export type IDirectiveResolvers<ContextType = any> = {
|
|
238
|
+
defer?: IDeferDirectiveResolver<any, any, ContextType>;
|
|
239
|
+
experimental_disableErrorPropagation?: IExperimental_DisableErrorPropagationDirectiveResolver<any, any, ContextType>;
|
|
256
240
|
oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
|
|
257
241
|
};
|
|
258
242
|
export type IFetchMyActivityStreakQueryVariables = Exact<{
|
|
@@ -261,12 +245,10 @@ export type IFetchMyActivityStreakQueryVariables = Exact<{
|
|
|
261
245
|
export type IFetchMyActivityStreakQuery = {
|
|
262
246
|
fetchMyActivityStreak?: Maybe<Pick<IActivityStreak, 'userId' | 'totalDays' | 'nextStreak' | 'nextBonus'>>;
|
|
263
247
|
};
|
|
264
|
-
export type
|
|
248
|
+
export type IFetchMyExperienceQueryVariables = Exact<{
|
|
265
249
|
[key: string]: never;
|
|
266
250
|
}>;
|
|
267
|
-
export type
|
|
268
|
-
fetchMyExperienceV2: Pick<IUserXp, 'xps' | 'level' | 'levelMaxXps' | 'levelMinXps'>;
|
|
269
|
-
};
|
|
251
|
+
export type IFetchMyExperienceQuery = Pick<IQuery, 'fetchMyExperience'>;
|
|
270
252
|
export type IFetchMyMonthReferralsXpsQueryVariables = Exact<{
|
|
271
253
|
[key: string]: never;
|
|
272
254
|
}>;
|
|
@@ -277,36 +259,6 @@ export type IFetchMyTasksQueryVariables = Exact<{
|
|
|
277
259
|
export type IFetchMyTasksQuery = {
|
|
278
260
|
fetchMyTasks: Array<Maybe<Pick<ITask, 'taskId' | 'userId' | 'taskType' | 'name' | 'description' | 'repeatable' | 'maxRepeats' | 'minPointsAward' | 'maxPointsAward' | 'repeatsCompleted'>>>;
|
|
279
261
|
};
|
|
280
|
-
export type IOnCommonOpportunityNotificationSubscriptionVariables = Exact<{
|
|
281
|
-
[key: string]: never;
|
|
282
|
-
}>;
|
|
283
|
-
export type IOnCommonOpportunityNotificationSubscription = {
|
|
284
|
-
onCommonOpportunityNotification: Pick<IOpportunityNotification, 'opportunityId' | 'name' | 'description' | 'notificationType' | 'media' | 'projectUrl'>;
|
|
285
|
-
};
|
|
286
|
-
export type IOnInviteCodeUsedSubscriptionVariables = Exact<{
|
|
287
|
-
authToken: Scalars['String'];
|
|
288
|
-
}>;
|
|
289
|
-
export type IOnInviteCodeUsedSubscription = {
|
|
290
|
-
onInviteCodeUsed: Pick<IUsedInviteCode, 'userId' | 'inviteCode' | 'inviteeId'>;
|
|
291
|
-
};
|
|
292
|
-
export type IOnMyExperienceIncrementedSubscriptionVariables = Exact<{
|
|
293
|
-
authToken: Scalars['String'];
|
|
294
|
-
}>;
|
|
295
|
-
export type IOnMyExperienceIncrementedSubscription = {
|
|
296
|
-
onMyExperienceIncremented: Pick<IUserXpIncrement, 'xpsIncrement' | 'description' | 'xps' | 'level' | 'levelMinXps' | 'levelMaxXps'>;
|
|
297
|
-
};
|
|
298
|
-
export type IOnMyExperienceUpdatedSubscriptionVariables = Exact<{
|
|
299
|
-
authToken: Scalars['String'];
|
|
300
|
-
}>;
|
|
301
|
-
export type IOnMyExperienceUpdatedSubscription = {
|
|
302
|
-
onMyExperienceUpdated: Pick<IUserXp, 'xps' | 'level' | 'levelMinXps' | 'levelMaxXps'>;
|
|
303
|
-
};
|
|
304
|
-
export type IOnUserOpportunityNotificationSubscriptionVariables = Exact<{
|
|
305
|
-
authToken: Scalars['String'];
|
|
306
|
-
}>;
|
|
307
|
-
export type IOnUserOpportunityNotificationSubscription = {
|
|
308
|
-
onUserOpportunityNotification: Pick<IOpportunityNotification, 'opportunityId' | 'name' | 'description' | 'notificationType' | 'media' | 'projectUrl'>;
|
|
309
|
-
};
|
|
310
262
|
export declare const FetchMyActivityStreakDocument: Apollo.DocumentNode;
|
|
311
263
|
/**
|
|
312
264
|
* __useFetchMyActivityStreakQuery__
|
|
@@ -332,31 +284,31 @@ export declare function useFetchMyActivityStreakLazyQuery(baseOptions?: Apollo.L
|
|
|
332
284
|
export type FetchMyActivityStreakQueryHookResult = ReturnType<typeof useFetchMyActivityStreakQuery>;
|
|
333
285
|
export type FetchMyActivityStreakLazyQueryHookResult = ReturnType<typeof useFetchMyActivityStreakLazyQuery>;
|
|
334
286
|
export type FetchMyActivityStreakQueryResult = Apollo.QueryResult<IFetchMyActivityStreakQuery, IFetchMyActivityStreakQueryVariables>;
|
|
335
|
-
export declare const
|
|
287
|
+
export declare const FetchMyExperienceDocument: Apollo.DocumentNode;
|
|
336
288
|
/**
|
|
337
|
-
*
|
|
289
|
+
* __useFetchMyExperienceQuery__
|
|
338
290
|
*
|
|
339
|
-
* To run a query within a React component, call `
|
|
340
|
-
* When your component renders, `
|
|
291
|
+
* To run a query within a React component, call `useFetchMyExperienceQuery` and pass it any options that fit your needs.
|
|
292
|
+
* When your component renders, `useFetchMyExperienceQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
341
293
|
* you can use to render your UI.
|
|
342
294
|
*
|
|
343
295
|
* @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;
|
|
344
296
|
*
|
|
345
297
|
* @example
|
|
346
|
-
* const { data, loading, error } =
|
|
298
|
+
* const { data, loading, error } = useFetchMyExperienceQuery({
|
|
347
299
|
* variables: {
|
|
348
300
|
* },
|
|
349
301
|
* });
|
|
350
302
|
*/
|
|
351
|
-
export declare function
|
|
303
|
+
export declare function useFetchMyExperienceQuery(baseOptions?: Apollo.QueryHookOptions<IFetchMyExperienceQuery, IFetchMyExperienceQueryVariables>): Apollo.QueryResult<IFetchMyExperienceQuery, Exact<{
|
|
352
304
|
[key: string]: never;
|
|
353
305
|
}>>;
|
|
354
|
-
export declare function
|
|
306
|
+
export declare function useFetchMyExperienceLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchMyExperienceQuery, IFetchMyExperienceQueryVariables>): Apollo.LazyQueryResultTuple<IFetchMyExperienceQuery, Exact<{
|
|
355
307
|
[key: string]: never;
|
|
356
308
|
}>>;
|
|
357
|
-
export type
|
|
358
|
-
export type
|
|
359
|
-
export type
|
|
309
|
+
export type FetchMyExperienceQueryHookResult = ReturnType<typeof useFetchMyExperienceQuery>;
|
|
310
|
+
export type FetchMyExperienceLazyQueryHookResult = ReturnType<typeof useFetchMyExperienceLazyQuery>;
|
|
311
|
+
export type FetchMyExperienceQueryResult = Apollo.QueryResult<IFetchMyExperienceQuery, IFetchMyExperienceQueryVariables>;
|
|
360
312
|
export declare const FetchMyMonthReferralsXpsDocument: Apollo.DocumentNode;
|
|
361
313
|
/**
|
|
362
314
|
* __useFetchMyMonthReferralsXpsQuery__
|
|
@@ -407,112 +359,3 @@ export declare function useFetchMyTasksLazyQuery(baseOptions?: Apollo.LazyQueryH
|
|
|
407
359
|
export type FetchMyTasksQueryHookResult = ReturnType<typeof useFetchMyTasksQuery>;
|
|
408
360
|
export type FetchMyTasksLazyQueryHookResult = ReturnType<typeof useFetchMyTasksLazyQuery>;
|
|
409
361
|
export type FetchMyTasksQueryResult = Apollo.QueryResult<IFetchMyTasksQuery, IFetchMyTasksQueryVariables>;
|
|
410
|
-
export declare const OnCommonOpportunityNotificationDocument: Apollo.DocumentNode;
|
|
411
|
-
/**
|
|
412
|
-
* __useOnCommonOpportunityNotificationSubscription__
|
|
413
|
-
*
|
|
414
|
-
* To run a query within a React component, call `useOnCommonOpportunityNotificationSubscription` and pass it any options that fit your needs.
|
|
415
|
-
* When your component renders, `useOnCommonOpportunityNotificationSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
416
|
-
* you can use to render your UI.
|
|
417
|
-
*
|
|
418
|
-
* @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;
|
|
419
|
-
*
|
|
420
|
-
* @example
|
|
421
|
-
* const { data, loading, error } = useOnCommonOpportunityNotificationSubscription({
|
|
422
|
-
* variables: {
|
|
423
|
-
* },
|
|
424
|
-
* });
|
|
425
|
-
*/
|
|
426
|
-
export declare function useOnCommonOpportunityNotificationSubscription(baseOptions?: Apollo.SubscriptionHookOptions<IOnCommonOpportunityNotificationSubscription, IOnCommonOpportunityNotificationSubscriptionVariables>): Apollo.SubscriptionResult<IOnCommonOpportunityNotificationSubscription, Exact<{
|
|
427
|
-
[key: string]: never;
|
|
428
|
-
}>>;
|
|
429
|
-
export type OnCommonOpportunityNotificationSubscriptionHookResult = ReturnType<typeof useOnCommonOpportunityNotificationSubscription>;
|
|
430
|
-
export type OnCommonOpportunityNotificationSubscriptionResult = Apollo.SubscriptionResult<IOnCommonOpportunityNotificationSubscription>;
|
|
431
|
-
export declare const OnInviteCodeUsedDocument: Apollo.DocumentNode;
|
|
432
|
-
/**
|
|
433
|
-
* __useOnInviteCodeUsedSubscription__
|
|
434
|
-
*
|
|
435
|
-
* To run a query within a React component, call `useOnInviteCodeUsedSubscription` and pass it any options that fit your needs.
|
|
436
|
-
* When your component renders, `useOnInviteCodeUsedSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
437
|
-
* you can use to render your UI.
|
|
438
|
-
*
|
|
439
|
-
* @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;
|
|
440
|
-
*
|
|
441
|
-
* @example
|
|
442
|
-
* const { data, loading, error } = useOnInviteCodeUsedSubscription({
|
|
443
|
-
* variables: {
|
|
444
|
-
* authToken: // value for 'authToken'
|
|
445
|
-
* },
|
|
446
|
-
* });
|
|
447
|
-
*/
|
|
448
|
-
export declare function useOnInviteCodeUsedSubscription(baseOptions: Apollo.SubscriptionHookOptions<IOnInviteCodeUsedSubscription, IOnInviteCodeUsedSubscriptionVariables>): Apollo.SubscriptionResult<IOnInviteCodeUsedSubscription, Exact<{
|
|
449
|
-
authToken: string;
|
|
450
|
-
}>>;
|
|
451
|
-
export type OnInviteCodeUsedSubscriptionHookResult = ReturnType<typeof useOnInviteCodeUsedSubscription>;
|
|
452
|
-
export type OnInviteCodeUsedSubscriptionResult = Apollo.SubscriptionResult<IOnInviteCodeUsedSubscription>;
|
|
453
|
-
export declare const OnMyExperienceIncrementedDocument: Apollo.DocumentNode;
|
|
454
|
-
/**
|
|
455
|
-
* __useOnMyExperienceIncrementedSubscription__
|
|
456
|
-
*
|
|
457
|
-
* To run a query within a React component, call `useOnMyExperienceIncrementedSubscription` and pass it any options that fit your needs.
|
|
458
|
-
* When your component renders, `useOnMyExperienceIncrementedSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
459
|
-
* you can use to render your UI.
|
|
460
|
-
*
|
|
461
|
-
* @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;
|
|
462
|
-
*
|
|
463
|
-
* @example
|
|
464
|
-
* const { data, loading, error } = useOnMyExperienceIncrementedSubscription({
|
|
465
|
-
* variables: {
|
|
466
|
-
* authToken: // value for 'authToken'
|
|
467
|
-
* },
|
|
468
|
-
* });
|
|
469
|
-
*/
|
|
470
|
-
export declare function useOnMyExperienceIncrementedSubscription(baseOptions: Apollo.SubscriptionHookOptions<IOnMyExperienceIncrementedSubscription, IOnMyExperienceIncrementedSubscriptionVariables>): Apollo.SubscriptionResult<IOnMyExperienceIncrementedSubscription, Exact<{
|
|
471
|
-
authToken: string;
|
|
472
|
-
}>>;
|
|
473
|
-
export type OnMyExperienceIncrementedSubscriptionHookResult = ReturnType<typeof useOnMyExperienceIncrementedSubscription>;
|
|
474
|
-
export type OnMyExperienceIncrementedSubscriptionResult = Apollo.SubscriptionResult<IOnMyExperienceIncrementedSubscription>;
|
|
475
|
-
export declare const OnMyExperienceUpdatedDocument: Apollo.DocumentNode;
|
|
476
|
-
/**
|
|
477
|
-
* __useOnMyExperienceUpdatedSubscription__
|
|
478
|
-
*
|
|
479
|
-
* To run a query within a React component, call `useOnMyExperienceUpdatedSubscription` and pass it any options that fit your needs.
|
|
480
|
-
* When your component renders, `useOnMyExperienceUpdatedSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
481
|
-
* you can use to render your UI.
|
|
482
|
-
*
|
|
483
|
-
* @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;
|
|
484
|
-
*
|
|
485
|
-
* @example
|
|
486
|
-
* const { data, loading, error } = useOnMyExperienceUpdatedSubscription({
|
|
487
|
-
* variables: {
|
|
488
|
-
* authToken: // value for 'authToken'
|
|
489
|
-
* },
|
|
490
|
-
* });
|
|
491
|
-
*/
|
|
492
|
-
export declare function useOnMyExperienceUpdatedSubscription(baseOptions: Apollo.SubscriptionHookOptions<IOnMyExperienceUpdatedSubscription, IOnMyExperienceUpdatedSubscriptionVariables>): Apollo.SubscriptionResult<IOnMyExperienceUpdatedSubscription, Exact<{
|
|
493
|
-
authToken: string;
|
|
494
|
-
}>>;
|
|
495
|
-
export type OnMyExperienceUpdatedSubscriptionHookResult = ReturnType<typeof useOnMyExperienceUpdatedSubscription>;
|
|
496
|
-
export type OnMyExperienceUpdatedSubscriptionResult = Apollo.SubscriptionResult<IOnMyExperienceUpdatedSubscription>;
|
|
497
|
-
export declare const OnUserOpportunityNotificationDocument: Apollo.DocumentNode;
|
|
498
|
-
/**
|
|
499
|
-
* __useOnUserOpportunityNotificationSubscription__
|
|
500
|
-
*
|
|
501
|
-
* To run a query within a React component, call `useOnUserOpportunityNotificationSubscription` and pass it any options that fit your needs.
|
|
502
|
-
* When your component renders, `useOnUserOpportunityNotificationSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
503
|
-
* you can use to render your UI.
|
|
504
|
-
*
|
|
505
|
-
* @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;
|
|
506
|
-
*
|
|
507
|
-
* @example
|
|
508
|
-
* const { data, loading, error } = useOnUserOpportunityNotificationSubscription({
|
|
509
|
-
* variables: {
|
|
510
|
-
* authToken: // value for 'authToken'
|
|
511
|
-
* },
|
|
512
|
-
* });
|
|
513
|
-
*/
|
|
514
|
-
export declare function useOnUserOpportunityNotificationSubscription(baseOptions: Apollo.SubscriptionHookOptions<IOnUserOpportunityNotificationSubscription, IOnUserOpportunityNotificationSubscriptionVariables>): Apollo.SubscriptionResult<IOnUserOpportunityNotificationSubscription, Exact<{
|
|
515
|
-
authToken: string;
|
|
516
|
-
}>>;
|
|
517
|
-
export type OnUserOpportunityNotificationSubscriptionHookResult = ReturnType<typeof useOnUserOpportunityNotificationSubscription>;
|
|
518
|
-
export type OnUserOpportunityNotificationSubscriptionResult = Apollo.SubscriptionResult<IOnUserOpportunityNotificationSubscription>;
|
|
@@ -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.
|
|
26
|
+
exports.useFetchMyTasksLazyQuery = exports.useFetchMyTasksQuery = exports.FetchMyTasksDocument = exports.useFetchMyMonthReferralsXpsLazyQuery = exports.useFetchMyMonthReferralsXpsQuery = exports.FetchMyMonthReferralsXpsDocument = exports.useFetchMyExperienceLazyQuery = exports.useFetchMyExperienceQuery = exports.FetchMyExperienceDocument = exports.useFetchMyActivityStreakLazyQuery = exports.useFetchMyActivityStreakQuery = exports.FetchMyActivityStreakDocument = void 0;
|
|
27
27
|
const client_1 = require("@apollo/client");
|
|
28
28
|
const Apollo = __importStar(require("@apollo/client"));
|
|
29
29
|
exports.FetchMyActivityStreakDocument = (0, client_1.gql) `
|
|
@@ -59,39 +59,34 @@ function useFetchMyActivityStreakLazyQuery(baseOptions) {
|
|
|
59
59
|
return Apollo.useLazyQuery(exports.FetchMyActivityStreakDocument, baseOptions);
|
|
60
60
|
}
|
|
61
61
|
exports.useFetchMyActivityStreakLazyQuery = useFetchMyActivityStreakLazyQuery;
|
|
62
|
-
exports.
|
|
63
|
-
query
|
|
64
|
-
|
|
65
|
-
xps
|
|
66
|
-
level
|
|
67
|
-
levelMaxXps
|
|
68
|
-
levelMinXps
|
|
69
|
-
}
|
|
62
|
+
exports.FetchMyExperienceDocument = (0, client_1.gql) `
|
|
63
|
+
query FetchMyExperience {
|
|
64
|
+
fetchMyExperience
|
|
70
65
|
}
|
|
71
66
|
`;
|
|
72
67
|
/**
|
|
73
|
-
*
|
|
68
|
+
* __useFetchMyExperienceQuery__
|
|
74
69
|
*
|
|
75
|
-
* To run a query within a React component, call `
|
|
76
|
-
* When your component renders, `
|
|
70
|
+
* To run a query within a React component, call `useFetchMyExperienceQuery` and pass it any options that fit your needs.
|
|
71
|
+
* When your component renders, `useFetchMyExperienceQuery` returns an object from Apollo Client that contains loading, error, and data properties
|
|
77
72
|
* you can use to render your UI.
|
|
78
73
|
*
|
|
79
74
|
* @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;
|
|
80
75
|
*
|
|
81
76
|
* @example
|
|
82
|
-
* const { data, loading, error } =
|
|
77
|
+
* const { data, loading, error } = useFetchMyExperienceQuery({
|
|
83
78
|
* variables: {
|
|
84
79
|
* },
|
|
85
80
|
* });
|
|
86
81
|
*/
|
|
87
|
-
function
|
|
88
|
-
return Apollo.useQuery(exports.
|
|
82
|
+
function useFetchMyExperienceQuery(baseOptions) {
|
|
83
|
+
return Apollo.useQuery(exports.FetchMyExperienceDocument, baseOptions);
|
|
89
84
|
}
|
|
90
|
-
exports.
|
|
91
|
-
function
|
|
92
|
-
return Apollo.useLazyQuery(exports.
|
|
85
|
+
exports.useFetchMyExperienceQuery = useFetchMyExperienceQuery;
|
|
86
|
+
function useFetchMyExperienceLazyQuery(baseOptions) {
|
|
87
|
+
return Apollo.useLazyQuery(exports.FetchMyExperienceDocument, baseOptions);
|
|
93
88
|
}
|
|
94
|
-
exports.
|
|
89
|
+
exports.useFetchMyExperienceLazyQuery = useFetchMyExperienceLazyQuery;
|
|
95
90
|
exports.FetchMyMonthReferralsXpsDocument = (0, client_1.gql) `
|
|
96
91
|
query FetchMyMonthReferralsXps {
|
|
97
92
|
fetchMyMonthReferralsXps
|
|
@@ -159,157 +154,3 @@ function useFetchMyTasksLazyQuery(baseOptions) {
|
|
|
159
154
|
return Apollo.useLazyQuery(exports.FetchMyTasksDocument, baseOptions);
|
|
160
155
|
}
|
|
161
156
|
exports.useFetchMyTasksLazyQuery = useFetchMyTasksLazyQuery;
|
|
162
|
-
exports.OnCommonOpportunityNotificationDocument = (0, client_1.gql) `
|
|
163
|
-
subscription OnCommonOpportunityNotification {
|
|
164
|
-
onCommonOpportunityNotification {
|
|
165
|
-
opportunityId
|
|
166
|
-
name
|
|
167
|
-
description
|
|
168
|
-
notificationType
|
|
169
|
-
media
|
|
170
|
-
projectUrl
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
`;
|
|
174
|
-
/**
|
|
175
|
-
* __useOnCommonOpportunityNotificationSubscription__
|
|
176
|
-
*
|
|
177
|
-
* To run a query within a React component, call `useOnCommonOpportunityNotificationSubscription` and pass it any options that fit your needs.
|
|
178
|
-
* When your component renders, `useOnCommonOpportunityNotificationSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
179
|
-
* you can use to render your UI.
|
|
180
|
-
*
|
|
181
|
-
* @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;
|
|
182
|
-
*
|
|
183
|
-
* @example
|
|
184
|
-
* const { data, loading, error } = useOnCommonOpportunityNotificationSubscription({
|
|
185
|
-
* variables: {
|
|
186
|
-
* },
|
|
187
|
-
* });
|
|
188
|
-
*/
|
|
189
|
-
function useOnCommonOpportunityNotificationSubscription(baseOptions) {
|
|
190
|
-
return Apollo.useSubscription(exports.OnCommonOpportunityNotificationDocument, baseOptions);
|
|
191
|
-
}
|
|
192
|
-
exports.useOnCommonOpportunityNotificationSubscription = useOnCommonOpportunityNotificationSubscription;
|
|
193
|
-
exports.OnInviteCodeUsedDocument = (0, client_1.gql) `
|
|
194
|
-
subscription onInviteCodeUsed($authToken: String!) {
|
|
195
|
-
onInviteCodeUsed(authToken: $authToken) {
|
|
196
|
-
userId
|
|
197
|
-
inviteCode
|
|
198
|
-
inviteeId
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
`;
|
|
202
|
-
/**
|
|
203
|
-
* __useOnInviteCodeUsedSubscription__
|
|
204
|
-
*
|
|
205
|
-
* To run a query within a React component, call `useOnInviteCodeUsedSubscription` and pass it any options that fit your needs.
|
|
206
|
-
* When your component renders, `useOnInviteCodeUsedSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
207
|
-
* you can use to render your UI.
|
|
208
|
-
*
|
|
209
|
-
* @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;
|
|
210
|
-
*
|
|
211
|
-
* @example
|
|
212
|
-
* const { data, loading, error } = useOnInviteCodeUsedSubscription({
|
|
213
|
-
* variables: {
|
|
214
|
-
* authToken: // value for 'authToken'
|
|
215
|
-
* },
|
|
216
|
-
* });
|
|
217
|
-
*/
|
|
218
|
-
function useOnInviteCodeUsedSubscription(baseOptions) {
|
|
219
|
-
return Apollo.useSubscription(exports.OnInviteCodeUsedDocument, baseOptions);
|
|
220
|
-
}
|
|
221
|
-
exports.useOnInviteCodeUsedSubscription = useOnInviteCodeUsedSubscription;
|
|
222
|
-
exports.OnMyExperienceIncrementedDocument = (0, client_1.gql) `
|
|
223
|
-
subscription onMyExperienceIncremented($authToken: String!) {
|
|
224
|
-
onMyExperienceIncremented(authToken: $authToken) {
|
|
225
|
-
xpsIncrement
|
|
226
|
-
description
|
|
227
|
-
xps
|
|
228
|
-
level
|
|
229
|
-
levelMinXps
|
|
230
|
-
levelMaxXps
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
`;
|
|
234
|
-
/**
|
|
235
|
-
* __useOnMyExperienceIncrementedSubscription__
|
|
236
|
-
*
|
|
237
|
-
* To run a query within a React component, call `useOnMyExperienceIncrementedSubscription` and pass it any options that fit your needs.
|
|
238
|
-
* When your component renders, `useOnMyExperienceIncrementedSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
239
|
-
* you can use to render your UI.
|
|
240
|
-
*
|
|
241
|
-
* @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;
|
|
242
|
-
*
|
|
243
|
-
* @example
|
|
244
|
-
* const { data, loading, error } = useOnMyExperienceIncrementedSubscription({
|
|
245
|
-
* variables: {
|
|
246
|
-
* authToken: // value for 'authToken'
|
|
247
|
-
* },
|
|
248
|
-
* });
|
|
249
|
-
*/
|
|
250
|
-
function useOnMyExperienceIncrementedSubscription(baseOptions) {
|
|
251
|
-
return Apollo.useSubscription(exports.OnMyExperienceIncrementedDocument, baseOptions);
|
|
252
|
-
}
|
|
253
|
-
exports.useOnMyExperienceIncrementedSubscription = useOnMyExperienceIncrementedSubscription;
|
|
254
|
-
exports.OnMyExperienceUpdatedDocument = (0, client_1.gql) `
|
|
255
|
-
subscription OnMyExperienceUpdated($authToken: String!) {
|
|
256
|
-
onMyExperienceUpdated(authToken: $authToken) {
|
|
257
|
-
xps
|
|
258
|
-
level
|
|
259
|
-
levelMinXps
|
|
260
|
-
levelMaxXps
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
`;
|
|
264
|
-
/**
|
|
265
|
-
* __useOnMyExperienceUpdatedSubscription__
|
|
266
|
-
*
|
|
267
|
-
* To run a query within a React component, call `useOnMyExperienceUpdatedSubscription` and pass it any options that fit your needs.
|
|
268
|
-
* When your component renders, `useOnMyExperienceUpdatedSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
269
|
-
* you can use to render your UI.
|
|
270
|
-
*
|
|
271
|
-
* @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;
|
|
272
|
-
*
|
|
273
|
-
* @example
|
|
274
|
-
* const { data, loading, error } = useOnMyExperienceUpdatedSubscription({
|
|
275
|
-
* variables: {
|
|
276
|
-
* authToken: // value for 'authToken'
|
|
277
|
-
* },
|
|
278
|
-
* });
|
|
279
|
-
*/
|
|
280
|
-
function useOnMyExperienceUpdatedSubscription(baseOptions) {
|
|
281
|
-
return Apollo.useSubscription(exports.OnMyExperienceUpdatedDocument, baseOptions);
|
|
282
|
-
}
|
|
283
|
-
exports.useOnMyExperienceUpdatedSubscription = useOnMyExperienceUpdatedSubscription;
|
|
284
|
-
exports.OnUserOpportunityNotificationDocument = (0, client_1.gql) `
|
|
285
|
-
subscription OnUserOpportunityNotification($authToken: String!) {
|
|
286
|
-
onUserOpportunityNotification(authToken: $authToken) {
|
|
287
|
-
opportunityId
|
|
288
|
-
name
|
|
289
|
-
description
|
|
290
|
-
notificationType
|
|
291
|
-
media
|
|
292
|
-
projectUrl
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
`;
|
|
296
|
-
/**
|
|
297
|
-
* __useOnUserOpportunityNotificationSubscription__
|
|
298
|
-
*
|
|
299
|
-
* To run a query within a React component, call `useOnUserOpportunityNotificationSubscription` and pass it any options that fit your needs.
|
|
300
|
-
* When your component renders, `useOnUserOpportunityNotificationSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
301
|
-
* you can use to render your UI.
|
|
302
|
-
*
|
|
303
|
-
* @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;
|
|
304
|
-
*
|
|
305
|
-
* @example
|
|
306
|
-
* const { data, loading, error } = useOnUserOpportunityNotificationSubscription({
|
|
307
|
-
* variables: {
|
|
308
|
-
* authToken: // value for 'authToken'
|
|
309
|
-
* },
|
|
310
|
-
* });
|
|
311
|
-
*/
|
|
312
|
-
function useOnUserOpportunityNotificationSubscription(baseOptions) {
|
|
313
|
-
return Apollo.useSubscription(exports.OnUserOpportunityNotificationDocument, baseOptions);
|
|
314
|
-
}
|
|
315
|
-
exports.useOnUserOpportunityNotificationSubscription = useOnUserOpportunityNotificationSubscription;
|
package/build/index.d.ts
CHANGED
|
@@ -1672,14 +1672,14 @@ declare const schema: {
|
|
|
1672
1672
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<experiencesSchema.IFetchMyActivityStreakQuery, experiencesSchema.Exact<{
|
|
1673
1673
|
[key: string]: never;
|
|
1674
1674
|
}>>;
|
|
1675
|
-
|
|
1675
|
+
useFetchMyExperienceQuery(baseOptions?: import("@apollo/client").QueryHookOptions<experiencesSchema.IFetchMyExperienceQuery, experiencesSchema.Exact<{
|
|
1676
1676
|
[key: string]: never;
|
|
1677
|
-
}>> | undefined): import("@apollo/client").QueryResult<experiencesSchema.
|
|
1677
|
+
}>> | undefined): import("@apollo/client").QueryResult<experiencesSchema.IFetchMyExperienceQuery, experiencesSchema.Exact<{
|
|
1678
1678
|
[key: string]: never;
|
|
1679
1679
|
}>>;
|
|
1680
|
-
|
|
1680
|
+
useFetchMyExperienceLazyQuery(baseOptions?: import("@apollo/client").LazyQueryHookOptions<experiencesSchema.IFetchMyExperienceQuery, experiencesSchema.Exact<{
|
|
1681
1681
|
[key: string]: never;
|
|
1682
|
-
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<experiencesSchema.
|
|
1682
|
+
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<experiencesSchema.IFetchMyExperienceQuery, experiencesSchema.Exact<{
|
|
1683
1683
|
[key: string]: never;
|
|
1684
1684
|
}>>;
|
|
1685
1685
|
useFetchMyMonthReferralsXpsQuery(baseOptions?: import("@apollo/client").QueryHookOptions<experiencesSchema.IFetchMyMonthReferralsXpsQuery, experiencesSchema.Exact<{
|
|
@@ -1702,40 +1702,10 @@ declare const schema: {
|
|
|
1702
1702
|
}>> | undefined): import("@apollo/client").LazyQueryResultTuple<experiencesSchema.IFetchMyTasksQuery, experiencesSchema.Exact<{
|
|
1703
1703
|
[key: string]: never;
|
|
1704
1704
|
}>>;
|
|
1705
|
-
useOnCommonOpportunityNotificationSubscription(baseOptions?: import("@apollo/client").SubscriptionHookOptions<experiencesSchema.IOnCommonOpportunityNotificationSubscription, experiencesSchema.Exact<{
|
|
1706
|
-
[key: string]: never;
|
|
1707
|
-
}>> | undefined): import("@apollo/client").SubscriptionResult<experiencesSchema.IOnCommonOpportunityNotificationSubscription, experiencesSchema.Exact<{
|
|
1708
|
-
[key: string]: never;
|
|
1709
|
-
}>>;
|
|
1710
|
-
useOnInviteCodeUsedSubscription(baseOptions: import("@apollo/client").SubscriptionHookOptions<experiencesSchema.IOnInviteCodeUsedSubscription, experiencesSchema.Exact<{
|
|
1711
|
-
authToken: string;
|
|
1712
|
-
}>>): import("@apollo/client").SubscriptionResult<experiencesSchema.IOnInviteCodeUsedSubscription, experiencesSchema.Exact<{
|
|
1713
|
-
authToken: string;
|
|
1714
|
-
}>>;
|
|
1715
|
-
useOnMyExperienceIncrementedSubscription(baseOptions: import("@apollo/client").SubscriptionHookOptions<experiencesSchema.IOnMyExperienceIncrementedSubscription, experiencesSchema.Exact<{
|
|
1716
|
-
authToken: string;
|
|
1717
|
-
}>>): import("@apollo/client").SubscriptionResult<experiencesSchema.IOnMyExperienceIncrementedSubscription, experiencesSchema.Exact<{
|
|
1718
|
-
authToken: string;
|
|
1719
|
-
}>>;
|
|
1720
|
-
useOnMyExperienceUpdatedSubscription(baseOptions: import("@apollo/client").SubscriptionHookOptions<experiencesSchema.IOnMyExperienceUpdatedSubscription, experiencesSchema.Exact<{
|
|
1721
|
-
authToken: string;
|
|
1722
|
-
}>>): import("@apollo/client").SubscriptionResult<experiencesSchema.IOnMyExperienceUpdatedSubscription, experiencesSchema.Exact<{
|
|
1723
|
-
authToken: string;
|
|
1724
|
-
}>>;
|
|
1725
|
-
useOnUserOpportunityNotificationSubscription(baseOptions: import("@apollo/client").SubscriptionHookOptions<experiencesSchema.IOnUserOpportunityNotificationSubscription, experiencesSchema.Exact<{
|
|
1726
|
-
authToken: string;
|
|
1727
|
-
}>>): import("@apollo/client").SubscriptionResult<experiencesSchema.IOnUserOpportunityNotificationSubscription, experiencesSchema.Exact<{
|
|
1728
|
-
authToken: string;
|
|
1729
|
-
}>>;
|
|
1730
1705
|
FetchMyActivityStreakDocument: import("graphql").DocumentNode;
|
|
1731
|
-
|
|
1706
|
+
FetchMyExperienceDocument: import("graphql").DocumentNode;
|
|
1732
1707
|
FetchMyMonthReferralsXpsDocument: import("graphql").DocumentNode;
|
|
1733
1708
|
FetchMyTasksDocument: import("graphql").DocumentNode;
|
|
1734
|
-
OnCommonOpportunityNotificationDocument: import("graphql").DocumentNode;
|
|
1735
|
-
OnInviteCodeUsedDocument: import("graphql").DocumentNode;
|
|
1736
|
-
OnMyExperienceIncrementedDocument: import("graphql").DocumentNode;
|
|
1737
|
-
OnMyExperienceUpdatedDocument: import("graphql").DocumentNode;
|
|
1738
|
-
OnUserOpportunityNotificationDocument: import("graphql").DocumentNode;
|
|
1739
1709
|
useDislikeCollectionMutation(baseOptions?: import("@apollo/client").MutationHookOptions<collectionsSchema.IDislikeCollectionMutation, collectionsSchema.Exact<{
|
|
1740
1710
|
collectionId: string;
|
|
1741
1711
|
}>, import("@apollo/client").DefaultContext, import("@apollo/client").ApolloCache<any>> | undefined): import("@apollo/client").MutationTuple<collectionsSchema.IDislikeCollectionMutation, collectionsSchema.Exact<{
|