@ludo.ninja/api 2.8.69 → 2.8.71
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__/adminHost/schema.d.ts +57 -0
- package/build/graphql_tools/__generated__/adminHost/schema.js +28 -2
- package/build/graphql_tools/__generated__/experiencesHost/schema.d.ts +67 -0
- package/build/graphql_tools/__generated__/experiencesHost/schema.js +64 -1
- package/build/index.d.ts +30 -0
- package/package.json +1 -1
- package/src/graphql_tools/__generated__/adminHost/schema.ts +70 -0
- package/src/graphql_tools/__generated__/experiencesHost/schema.ts +80 -1
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -312,6 +312,11 @@ export type IFetchMyTasksQueryVariables = Exact<{ [key: string]: never; }>;
|
|
|
312
312
|
|
|
313
313
|
export type IFetchMyTasksQuery = { fetchMyTasks: Array<Maybe<Pick<ITask, 'taskId' | 'userId' | 'taskType' | 'name' | 'description' | 'repeatable' | 'maxRepeats' | 'minPointsAward' | 'maxPointsAward' | 'repeatsCompleted'>>> };
|
|
314
314
|
|
|
315
|
+
export type IOnCommonOpportunityNotificationSubscriptionVariables = Exact<{ [key: string]: never; }>;
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
export type IOnCommonOpportunityNotificationSubscription = { onCommonOpportunityNotification: Pick<IOpportunityNotification, 'opportunityId' | 'name' | 'description' | 'notificationType' | 'media' | 'projectUrl'> };
|
|
319
|
+
|
|
315
320
|
export type IOnInviteCodeUsedSubscriptionVariables = Exact<{
|
|
316
321
|
authToken: Scalars['String'];
|
|
317
322
|
}>;
|
|
@@ -333,6 +338,13 @@ export type IOnMyExperienceUpdatedSubscriptionVariables = Exact<{
|
|
|
333
338
|
|
|
334
339
|
export type IOnMyExperienceUpdatedSubscription = { onMyExperienceUpdated: Pick<IUserXp, 'xps' | 'level' | 'levelMinXps' | 'levelMaxXps'> };
|
|
335
340
|
|
|
341
|
+
export type IOnUserOpportunityNotificationSubscriptionVariables = Exact<{
|
|
342
|
+
authToken: Scalars['String'];
|
|
343
|
+
}>;
|
|
344
|
+
|
|
345
|
+
|
|
346
|
+
export type IOnUserOpportunityNotificationSubscription = { onUserOpportunityNotification: Pick<IOpportunityNotification, 'opportunityId' | 'name' | 'description' | 'notificationType' | 'media' | 'projectUrl'> };
|
|
347
|
+
|
|
336
348
|
|
|
337
349
|
export const FetchMyExperienceV2Document = gql`
|
|
338
350
|
query FetchMyExperienceV2 {
|
|
@@ -410,6 +422,39 @@ export function useFetchMyTasksLazyQuery(baseOptions?: Apollo.LazyQueryHookOptio
|
|
|
410
422
|
export type FetchMyTasksQueryHookResult = ReturnType<typeof useFetchMyTasksQuery>;
|
|
411
423
|
export type FetchMyTasksLazyQueryHookResult = ReturnType<typeof useFetchMyTasksLazyQuery>;
|
|
412
424
|
export type FetchMyTasksQueryResult = Apollo.QueryResult<IFetchMyTasksQuery, IFetchMyTasksQueryVariables>;
|
|
425
|
+
export const OnCommonOpportunityNotificationDocument = gql`
|
|
426
|
+
subscription OnCommonOpportunityNotification {
|
|
427
|
+
onCommonOpportunityNotification {
|
|
428
|
+
opportunityId
|
|
429
|
+
name
|
|
430
|
+
description
|
|
431
|
+
notificationType
|
|
432
|
+
media
|
|
433
|
+
projectUrl
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
`;
|
|
437
|
+
|
|
438
|
+
/**
|
|
439
|
+
* __useOnCommonOpportunityNotificationSubscription__
|
|
440
|
+
*
|
|
441
|
+
* To run a query within a React component, call `useOnCommonOpportunityNotificationSubscription` and pass it any options that fit your needs.
|
|
442
|
+
* When your component renders, `useOnCommonOpportunityNotificationSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
443
|
+
* you can use to render your UI.
|
|
444
|
+
*
|
|
445
|
+
* @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;
|
|
446
|
+
*
|
|
447
|
+
* @example
|
|
448
|
+
* const { data, loading, error } = useOnCommonOpportunityNotificationSubscription({
|
|
449
|
+
* variables: {
|
|
450
|
+
* },
|
|
451
|
+
* });
|
|
452
|
+
*/
|
|
453
|
+
export function useOnCommonOpportunityNotificationSubscription(baseOptions?: Apollo.SubscriptionHookOptions<IOnCommonOpportunityNotificationSubscription, IOnCommonOpportunityNotificationSubscriptionVariables>) {
|
|
454
|
+
return Apollo.useSubscription<IOnCommonOpportunityNotificationSubscription, IOnCommonOpportunityNotificationSubscriptionVariables>(OnCommonOpportunityNotificationDocument, baseOptions);
|
|
455
|
+
}
|
|
456
|
+
export type OnCommonOpportunityNotificationSubscriptionHookResult = ReturnType<typeof useOnCommonOpportunityNotificationSubscription>;
|
|
457
|
+
export type OnCommonOpportunityNotificationSubscriptionResult = Apollo.SubscriptionResult<IOnCommonOpportunityNotificationSubscription>;
|
|
413
458
|
export const OnInviteCodeUsedDocument = gql`
|
|
414
459
|
subscription onInviteCodeUsed($authToken: String!) {
|
|
415
460
|
onInviteCodeUsed(authToken: $authToken) {
|
|
@@ -506,4 +551,38 @@ export function useOnMyExperienceUpdatedSubscription(baseOptions: Apollo.Subscri
|
|
|
506
551
|
return Apollo.useSubscription<IOnMyExperienceUpdatedSubscription, IOnMyExperienceUpdatedSubscriptionVariables>(OnMyExperienceUpdatedDocument, baseOptions);
|
|
507
552
|
}
|
|
508
553
|
export type OnMyExperienceUpdatedSubscriptionHookResult = ReturnType<typeof useOnMyExperienceUpdatedSubscription>;
|
|
509
|
-
export type OnMyExperienceUpdatedSubscriptionResult = Apollo.SubscriptionResult<IOnMyExperienceUpdatedSubscription>;
|
|
554
|
+
export type OnMyExperienceUpdatedSubscriptionResult = Apollo.SubscriptionResult<IOnMyExperienceUpdatedSubscription>;
|
|
555
|
+
export const OnUserOpportunityNotificationDocument = gql`
|
|
556
|
+
subscription OnUserOpportunityNotification($authToken: String!) {
|
|
557
|
+
onUserOpportunityNotification(authToken: $authToken) {
|
|
558
|
+
opportunityId
|
|
559
|
+
name
|
|
560
|
+
description
|
|
561
|
+
notificationType
|
|
562
|
+
media
|
|
563
|
+
projectUrl
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
`;
|
|
567
|
+
|
|
568
|
+
/**
|
|
569
|
+
* __useOnUserOpportunityNotificationSubscription__
|
|
570
|
+
*
|
|
571
|
+
* To run a query within a React component, call `useOnUserOpportunityNotificationSubscription` and pass it any options that fit your needs.
|
|
572
|
+
* When your component renders, `useOnUserOpportunityNotificationSubscription` returns an object from Apollo Client that contains loading, error, and data properties
|
|
573
|
+
* you can use to render your UI.
|
|
574
|
+
*
|
|
575
|
+
* @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;
|
|
576
|
+
*
|
|
577
|
+
* @example
|
|
578
|
+
* const { data, loading, error } = useOnUserOpportunityNotificationSubscription({
|
|
579
|
+
* variables: {
|
|
580
|
+
* authToken: // value for 'authToken'
|
|
581
|
+
* },
|
|
582
|
+
* });
|
|
583
|
+
*/
|
|
584
|
+
export function useOnUserOpportunityNotificationSubscription(baseOptions: Apollo.SubscriptionHookOptions<IOnUserOpportunityNotificationSubscription, IOnUserOpportunityNotificationSubscriptionVariables>) {
|
|
585
|
+
return Apollo.useSubscription<IOnUserOpportunityNotificationSubscription, IOnUserOpportunityNotificationSubscriptionVariables>(OnUserOpportunityNotificationDocument, baseOptions);
|
|
586
|
+
}
|
|
587
|
+
export type OnUserOpportunityNotificationSubscriptionHookResult = ReturnType<typeof useOnUserOpportunityNotificationSubscription>;
|
|
588
|
+
export type OnUserOpportunityNotificationSubscriptionResult = Apollo.SubscriptionResult<IOnUserOpportunityNotificationSubscription>;
|