@ludo.ninja/api 2.8.71 → 2.8.73

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.
@@ -404,6 +404,8 @@ export type IMutation = {
404
404
  updateOpportunity: Scalars['Boolean'];
405
405
  triggerOpportunityNotification: Scalars['Boolean'];
406
406
  updateTier: Scalars['Boolean'];
407
+ createTier: Scalars['Boolean'];
408
+ updateTierArchivedStatus: Scalars['Boolean'];
407
409
  updateProfileStatus: Scalars['Boolean'];
408
410
  removeSuggestedOpportunity: Scalars['Boolean'];
409
411
  addSuggestedOpportunity: Scalars['Boolean'];
@@ -495,6 +497,17 @@ export type IMutationUpdateTierArgs = {
495
497
  };
496
498
 
497
499
 
500
+ export type IMutationCreateTierArgs = {
501
+ input: ITierInput;
502
+ };
503
+
504
+
505
+ export type IMutationUpdateTierArchivedStatusArgs = {
506
+ id: Scalars['ID'];
507
+ isArchived: Scalars['Boolean'];
508
+ };
509
+
510
+
498
511
  export type IMutationUpdateProfileStatusArgs = {
499
512
  userId: Scalars['ID'];
500
513
  isActive: Scalars['Boolean'];
@@ -597,6 +610,7 @@ export type IQuery = {
597
610
  fetchBlockchains: Array<Scalars['String']>;
598
611
  fetchAdminReferralsPage: IReferralsPage;
599
612
  fetchTiers: Array<ITier>;
613
+ fetchTiersPage: ITiersPage;
600
614
  fetchAdminUsersPage: IUsersPage;
601
615
  fetchAdminXpPage: IXpPage;
602
616
  };
@@ -691,6 +705,13 @@ export type IQueryFetchAdminReferralsPageArgs = {
691
705
  };
692
706
 
693
707
 
708
+ export type IQueryFetchTiersPageArgs = {
709
+ filter: ITiersFilterInput;
710
+ sort: ITiersSortInput;
711
+ page: IAdminPageInput;
712
+ };
713
+
714
+
694
715
  export type IQueryFetchAdminUsersPageArgs = {
695
716
  filter: IUsersFilterInput;
696
717
  sort: IUsersSortInput;
@@ -767,11 +788,30 @@ export type ITier = {
767
788
  id: Scalars['String'];
768
789
  name: Scalars['String'];
769
790
  description?: Maybe<Scalars['String']>;
791
+ fee?: Maybe<Scalars['Float']>;
792
+ archived?: Maybe<Scalars['Boolean']>;
770
793
  };
771
794
 
772
795
  export type ITierInput = {
773
796
  name: Scalars['String'];
774
797
  description?: Maybe<Scalars['String']>;
798
+ fee?: Maybe<Scalars['Float']>;
799
+ };
800
+
801
+ export type ITiersFilterInput = {
802
+ nameTerm?: Maybe<Scalars['String']>;
803
+ descriptionTerm?: Maybe<Scalars['String']>;
804
+ feeTerm?: Maybe<Scalars['String']>;
805
+ };
806
+
807
+ export type ITiersPage = {
808
+ tiers: Array<ITier>;
809
+ nextPage?: Maybe<IAdminPage>;
810
+ };
811
+
812
+ export type ITiersSortInput = {
813
+ sortByName?: Maybe<ISort>;
814
+ sortByFee?: Maybe<ISort>;
775
815
  };
776
816
 
777
817
 
@@ -1006,6 +1046,9 @@ export type IResolversTypes = {
1006
1046
  SortDirection: ISortDirection;
1007
1047
  Tier: ResolverTypeWrapper<ITier>;
1008
1048
  TierInput: ITierInput;
1049
+ TiersFilterInput: ITiersFilterInput;
1050
+ TiersPage: ResolverTypeWrapper<ITiersPage>;
1051
+ TiersSortInput: ITiersSortInput;
1009
1052
  Upload: ResolverTypeWrapper<Scalars['Upload']>;
1010
1053
  UserFeedback: ResolverTypeWrapper<IUserFeedback>;
1011
1054
  UserFeedbackFilterInput: IUserFeedbackFilterInput;
@@ -1087,6 +1130,9 @@ export type IResolversParentTypes = {
1087
1130
  Sort: ISort;
1088
1131
  Tier: ITier;
1089
1132
  TierInput: ITierInput;
1133
+ TiersFilterInput: ITiersFilterInput;
1134
+ TiersPage: ITiersPage;
1135
+ TiersSortInput: ITiersSortInput;
1090
1136
  Upload: Scalars['Upload'];
1091
1137
  UserFeedback: IUserFeedback;
1092
1138
  UserFeedbackFilterInput: IUserFeedbackFilterInput;
@@ -1370,6 +1416,8 @@ export type IMutationResolvers<ContextType = any, ParentType extends IResolversP
1370
1416
  updateOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateOpportunityArgs, 'id' | 'input'>>;
1371
1417
  triggerOpportunityNotification?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationTriggerOpportunityNotificationArgs, 'opportunityId'>>;
1372
1418
  updateTier?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateTierArgs, 'id' | 'input'>>;
1419
+ createTier?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationCreateTierArgs, 'input'>>;
1420
+ updateTierArchivedStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateTierArchivedStatusArgs, 'id' | 'isArchived'>>;
1373
1421
  updateProfileStatus?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationUpdateProfileStatusArgs, 'userId' | 'isActive'>>;
1374
1422
  removeSuggestedOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationRemoveSuggestedOpportunityArgs, 'userId' | 'opportunityId'>>;
1375
1423
  addSuggestedOpportunity?: Resolver<IResolversTypes['Boolean'], ParentType, ContextType, RequireFields<IMutationAddSuggestedOpportunityArgs, 'userId' | 'opportunityId'>>;
@@ -1407,6 +1455,7 @@ export type IQueryResolvers<ContextType = any, ParentType extends IResolversPare
1407
1455
  fetchBlockchains?: Resolver<Array<IResolversTypes['String']>, ParentType, ContextType>;
1408
1456
  fetchAdminReferralsPage?: Resolver<IResolversTypes['ReferralsPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminReferralsPageArgs, 'filter' | 'sort' | 'page'>>;
1409
1457
  fetchTiers?: Resolver<Array<IResolversTypes['Tier']>, ParentType, ContextType>;
1458
+ fetchTiersPage?: Resolver<IResolversTypes['TiersPage'], ParentType, ContextType, RequireFields<IQueryFetchTiersPageArgs, 'filter' | 'sort' | 'page'>>;
1410
1459
  fetchAdminUsersPage?: Resolver<IResolversTypes['UsersPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminUsersPageArgs, 'filter' | 'sort' | 'page'>>;
1411
1460
  fetchAdminXpPage?: Resolver<IResolversTypes['XpPage'], ParentType, ContextType, RequireFields<IQueryFetchAdminXpPageArgs, 'filter' | 'sort' | 'page'>>;
1412
1461
  };
@@ -1442,6 +1491,14 @@ export type ITierResolvers<ContextType = any, ParentType extends IResolversParen
1442
1491
  id?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
1443
1492
  name?: Resolver<IResolversTypes['String'], ParentType, ContextType>;
1444
1493
  description?: Resolver<Maybe<IResolversTypes['String']>, ParentType, ContextType>;
1494
+ fee?: Resolver<Maybe<IResolversTypes['Float']>, ParentType, ContextType>;
1495
+ archived?: Resolver<Maybe<IResolversTypes['Boolean']>, ParentType, ContextType>;
1496
+ __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1497
+ };
1498
+
1499
+ export type ITiersPageResolvers<ContextType = any, ParentType extends IResolversParentTypes['TiersPage'] = IResolversParentTypes['TiersPage']> = {
1500
+ tiers?: Resolver<Array<IResolversTypes['Tier']>, ParentType, ContextType>;
1501
+ nextPage?: Resolver<Maybe<IResolversTypes['AdminPage']>, ParentType, ContextType>;
1445
1502
  __isTypeOf?: IsTypeOfResolverFn<ParentType, ContextType>;
1446
1503
  };
1447
1504
 
@@ -1521,6 +1578,7 @@ export type IResolvers<ContextType = any> = {
1521
1578
  RegistrationInvite?: IRegistrationInviteResolvers<ContextType>;
1522
1579
  RegistrationInvitePage?: IRegistrationInvitePageResolvers<ContextType>;
1523
1580
  Tier?: ITierResolvers<ContextType>;
1581
+ TiersPage?: ITiersPageResolvers<ContextType>;
1524
1582
  Upload?: GraphQLScalarType;
1525
1583
  UserFeedback?: IUserFeedbackResolvers<ContextType>;
1526
1584
  UserFeedbackPage?: IUserFeedbackPageResolvers<ContextType>;
@@ -1535,6 +1593,13 @@ export type IDirectiveResolvers<ContextType = any> = {
1535
1593
  oneOf?: IOneOfDirectiveResolver<any, any, ContextType>;
1536
1594
  };
1537
1595
 
1596
+ export type ICreateTierMutationVariables = Exact<{
1597
+ input: ITierInput;
1598
+ }>;
1599
+
1600
+
1601
+ export type ICreateTierMutation = Pick<IMutation, 'createTier'>;
1602
+
1538
1603
  export type ITriggerOpportunityNotificationMutationVariables = Exact<{
1539
1604
  opportunityId: Scalars['ID'];
1540
1605
  }>;
@@ -1558,6 +1623,14 @@ export type IUpdateOpportunityPushStatusMutationVariables = Exact<{
1558
1623
 
1559
1624
  export type IUpdateOpportunityPushStatusMutation = Pick<IMutation, 'updateOpportunityPushStatus'>;
1560
1625
 
1626
+ export type IUpdateTierMutationVariables = Exact<{
1627
+ id: Scalars['ID'];
1628
+ input: ITierInput;
1629
+ }>;
1630
+
1631
+
1632
+ export type IUpdateTierMutation = Pick<IMutation, 'updateTier'>;
1633
+
1561
1634
  export type IChangeXpPointsMutationVariables = Exact<{
1562
1635
  userId: Scalars['ID'];
1563
1636
  pointsDiff: Scalars['Int'];
@@ -1716,6 +1789,20 @@ export type IFetchRegistrationInvitePageQueryVariables = Exact<{
1716
1789
 
1717
1790
  export type IFetchRegistrationInvitePageQuery = { fetchRegistrationInvitePage: { registrationInvites: Array<Pick<IRegistrationInvite, 'userId' | 'id' | 'ludoIdOrAddress' | 'reason'>>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
1718
1791
 
1792
+ export type IFetchTiersQueryVariables = Exact<{ [key: string]: never; }>;
1793
+
1794
+
1795
+ export type IFetchTiersQuery = { fetchTiers: Array<Pick<ITier, 'id' | 'name' | 'description' | 'fee'>> };
1796
+
1797
+ export type IFetchTiersPageQueryVariables = Exact<{
1798
+ filter: ITiersFilterInput;
1799
+ sort: ITiersSortInput;
1800
+ page: IAdminPageInput;
1801
+ }>;
1802
+
1803
+
1804
+ export type IFetchTiersPageQuery = { fetchTiersPage: { tiers: Array<Pick<ITier, 'id' | 'name' | 'description' | 'fee'>>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
1805
+
1719
1806
  export type IFetchUserFeedbackPageQueryVariables = Exact<{
1720
1807
  filter: IUserFeedbackFilterInput;
1721
1808
  sort: IUserFeedbackSortInput;
@@ -1816,6 +1903,36 @@ export type IFetchBlockchainsQueryVariables = Exact<{ [key: string]: never; }>;
1816
1903
  export type IFetchBlockchainsQuery = Pick<IQuery, 'fetchBlockchains'>;
1817
1904
 
1818
1905
 
1906
+ export const CreateTierDocument = gql`
1907
+ mutation CreateTier($input: TierInput!) {
1908
+ createTier(input: $input)
1909
+ }
1910
+ `;
1911
+ export type ICreateTierMutationFn = Apollo.MutationFunction<ICreateTierMutation, ICreateTierMutationVariables>;
1912
+
1913
+ /**
1914
+ * __useCreateTierMutation__
1915
+ *
1916
+ * To run a mutation, you first call `useCreateTierMutation` within a React component and pass it any options that fit your needs.
1917
+ * When your component renders, `useCreateTierMutation` returns a tuple that includes:
1918
+ * - A mutate function that you can call at any time to execute the mutation
1919
+ * - An object with fields that represent the current status of the mutation's execution
1920
+ *
1921
+ * @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;
1922
+ *
1923
+ * @example
1924
+ * const [createTierMutation, { data, loading, error }] = useCreateTierMutation({
1925
+ * variables: {
1926
+ * input: // value for 'input'
1927
+ * },
1928
+ * });
1929
+ */
1930
+ export function useCreateTierMutation(baseOptions?: Apollo.MutationHookOptions<ICreateTierMutation, ICreateTierMutationVariables>) {
1931
+ return Apollo.useMutation<ICreateTierMutation, ICreateTierMutationVariables>(CreateTierDocument, baseOptions);
1932
+ }
1933
+ export type CreateTierMutationHookResult = ReturnType<typeof useCreateTierMutation>;
1934
+ export type CreateTierMutationResult = Apollo.MutationResult<ICreateTierMutation>;
1935
+ export type CreateTierMutationOptions = Apollo.BaseMutationOptions<ICreateTierMutation, ICreateTierMutationVariables>;
1819
1936
  export const TriggerOpportunityNotificationDocument = gql`
1820
1937
  mutation TriggerOpportunityNotification($opportunityId: ID!) {
1821
1938
  triggerOpportunityNotification(opportunityId: $opportunityId)
@@ -1908,6 +2025,37 @@ export function useUpdateOpportunityPushStatusMutation(baseOptions?: Apollo.Muta
1908
2025
  export type UpdateOpportunityPushStatusMutationHookResult = ReturnType<typeof useUpdateOpportunityPushStatusMutation>;
1909
2026
  export type UpdateOpportunityPushStatusMutationResult = Apollo.MutationResult<IUpdateOpportunityPushStatusMutation>;
1910
2027
  export type UpdateOpportunityPushStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateOpportunityPushStatusMutation, IUpdateOpportunityPushStatusMutationVariables>;
2028
+ export const UpdateTierDocument = gql`
2029
+ mutation UpdateTier($id: ID!, $input: TierInput!) {
2030
+ updateTier(id: $id, input: $input)
2031
+ }
2032
+ `;
2033
+ export type IUpdateTierMutationFn = Apollo.MutationFunction<IUpdateTierMutation, IUpdateTierMutationVariables>;
2034
+
2035
+ /**
2036
+ * __useUpdateTierMutation__
2037
+ *
2038
+ * To run a mutation, you first call `useUpdateTierMutation` within a React component and pass it any options that fit your needs.
2039
+ * When your component renders, `useUpdateTierMutation` returns a tuple that includes:
2040
+ * - A mutate function that you can call at any time to execute the mutation
2041
+ * - An object with fields that represent the current status of the mutation's execution
2042
+ *
2043
+ * @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;
2044
+ *
2045
+ * @example
2046
+ * const [updateTierMutation, { data, loading, error }] = useUpdateTierMutation({
2047
+ * variables: {
2048
+ * id: // value for 'id'
2049
+ * input: // value for 'input'
2050
+ * },
2051
+ * });
2052
+ */
2053
+ export function useUpdateTierMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateTierMutation, IUpdateTierMutationVariables>) {
2054
+ return Apollo.useMutation<IUpdateTierMutation, IUpdateTierMutationVariables>(UpdateTierDocument, baseOptions);
2055
+ }
2056
+ export type UpdateTierMutationHookResult = ReturnType<typeof useUpdateTierMutation>;
2057
+ export type UpdateTierMutationResult = Apollo.MutationResult<IUpdateTierMutation>;
2058
+ export type UpdateTierMutationOptions = Apollo.BaseMutationOptions<IUpdateTierMutation, IUpdateTierMutationVariables>;
1911
2059
  export const ChangeXpPointsDocument = gql`
1912
2060
  mutation ChangeXpPoints($userId: ID!, $pointsDiff: Int!) {
1913
2061
  changeXpPoints(userId: $userId, pointsDiff: $pointsDiff)
@@ -2623,6 +2771,88 @@ export function useFetchRegistrationInvitePageLazyQuery(baseOptions?: Apollo.Laz
2623
2771
  export type FetchRegistrationInvitePageQueryHookResult = ReturnType<typeof useFetchRegistrationInvitePageQuery>;
2624
2772
  export type FetchRegistrationInvitePageLazyQueryHookResult = ReturnType<typeof useFetchRegistrationInvitePageLazyQuery>;
2625
2773
  export type FetchRegistrationInvitePageQueryResult = Apollo.QueryResult<IFetchRegistrationInvitePageQuery, IFetchRegistrationInvitePageQueryVariables>;
2774
+ export const FetchTiersDocument = gql`
2775
+ query FetchTiers {
2776
+ fetchTiers {
2777
+ id
2778
+ name
2779
+ description
2780
+ fee
2781
+ }
2782
+ }
2783
+ `;
2784
+
2785
+ /**
2786
+ * __useFetchTiersQuery__
2787
+ *
2788
+ * To run a query within a React component, call `useFetchTiersQuery` and pass it any options that fit your needs.
2789
+ * When your component renders, `useFetchTiersQuery` returns an object from Apollo Client that contains loading, error, and data properties
2790
+ * you can use to render your UI.
2791
+ *
2792
+ * @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;
2793
+ *
2794
+ * @example
2795
+ * const { data, loading, error } = useFetchTiersQuery({
2796
+ * variables: {
2797
+ * },
2798
+ * });
2799
+ */
2800
+ export function useFetchTiersQuery(baseOptions?: Apollo.QueryHookOptions<IFetchTiersQuery, IFetchTiersQueryVariables>) {
2801
+ return Apollo.useQuery<IFetchTiersQuery, IFetchTiersQueryVariables>(FetchTiersDocument, baseOptions);
2802
+ }
2803
+ export function useFetchTiersLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchTiersQuery, IFetchTiersQueryVariables>) {
2804
+ return Apollo.useLazyQuery<IFetchTiersQuery, IFetchTiersQueryVariables>(FetchTiersDocument, baseOptions);
2805
+ }
2806
+ export type FetchTiersQueryHookResult = ReturnType<typeof useFetchTiersQuery>;
2807
+ export type FetchTiersLazyQueryHookResult = ReturnType<typeof useFetchTiersLazyQuery>;
2808
+ export type FetchTiersQueryResult = Apollo.QueryResult<IFetchTiersQuery, IFetchTiersQueryVariables>;
2809
+ export const FetchTiersPageDocument = gql`
2810
+ query FetchTiersPage($filter: TiersFilterInput!, $sort: TiersSortInput!, $page: AdminPageInput!) {
2811
+ fetchTiersPage(filter: $filter, sort: $sort, page: $page) {
2812
+ tiers {
2813
+ id
2814
+ name
2815
+ description
2816
+ fee
2817
+ }
2818
+ nextPage {
2819
+ elements
2820
+ lastNum
2821
+ num
2822
+ size
2823
+ token
2824
+ }
2825
+ }
2826
+ }
2827
+ `;
2828
+
2829
+ /**
2830
+ * __useFetchTiersPageQuery__
2831
+ *
2832
+ * To run a query within a React component, call `useFetchTiersPageQuery` and pass it any options that fit your needs.
2833
+ * When your component renders, `useFetchTiersPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
2834
+ * you can use to render your UI.
2835
+ *
2836
+ * @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;
2837
+ *
2838
+ * @example
2839
+ * const { data, loading, error } = useFetchTiersPageQuery({
2840
+ * variables: {
2841
+ * filter: // value for 'filter'
2842
+ * sort: // value for 'sort'
2843
+ * page: // value for 'page'
2844
+ * },
2845
+ * });
2846
+ */
2847
+ export function useFetchTiersPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchTiersPageQuery, IFetchTiersPageQueryVariables>) {
2848
+ return Apollo.useQuery<IFetchTiersPageQuery, IFetchTiersPageQueryVariables>(FetchTiersPageDocument, baseOptions);
2849
+ }
2850
+ export function useFetchTiersPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchTiersPageQuery, IFetchTiersPageQueryVariables>) {
2851
+ return Apollo.useLazyQuery<IFetchTiersPageQuery, IFetchTiersPageQueryVariables>(FetchTiersPageDocument, baseOptions);
2852
+ }
2853
+ export type FetchTiersPageQueryHookResult = ReturnType<typeof useFetchTiersPageQuery>;
2854
+ export type FetchTiersPageLazyQueryHookResult = ReturnType<typeof useFetchTiersPageLazyQuery>;
2855
+ export type FetchTiersPageQueryResult = Apollo.QueryResult<IFetchTiersPageQuery, IFetchTiersPageQueryVariables>;
2626
2856
  export const FetchUserFeedbackPageDocument = gql`
2627
2857
  query FetchUserFeedbackPage($filter: UserFeedbackFilterInput!, $sort: UserFeedbackSortInput!, $page: AdminPageInput!) {
2628
2858
  fetchUserFeedbackPage(filter: $filter, sort: $sort, page: $page) {