@ludo.ninja/api 2.6.3 → 2.6.5

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.
@@ -39,6 +39,28 @@ export type IAdminInvite = {
39
39
  userXpLevel?: Maybe<Scalars['Int']>;
40
40
  };
41
41
 
42
+ export type IAdminOpportunity = {
43
+ opportunityId: Scalars['ID'];
44
+ name?: Maybe<Scalars['String']>;
45
+ brandName?: Maybe<Scalars['String']>;
46
+ industry?: Maybe<Scalars['String']>;
47
+ category?: Maybe<Scalars['String']>;
48
+ ludoUrl?: Maybe<Scalars['String']>;
49
+ projectUrl?: Maybe<Scalars['String']>;
50
+ pushNotificationsEnabled?: Maybe<Scalars['Boolean']>;
51
+ status?: Maybe<Scalars['String']>;
52
+ activeFrom?: Maybe<Scalars['Long']>;
53
+ activeUntil?: Maybe<Scalars['Long']>;
54
+ minXpLevel?: Maybe<Scalars['Int']>;
55
+ maxXpLevel?: Maybe<Scalars['Int']>;
56
+ minLudoRank?: Maybe<Scalars['Float']>;
57
+ maxLudoRank?: Maybe<Scalars['Float']>;
58
+ minWalletValue?: Maybe<Scalars['Float']>;
59
+ maxWalletValue?: Maybe<Scalars['Float']>;
60
+ clicks?: Maybe<Scalars['Int']>;
61
+ views?: Maybe<Scalars['Int']>;
62
+ };
63
+
42
64
  export type IAdminPage = {
43
65
  num?: Maybe<Scalars['Int']>;
44
66
  lastNum?: Maybe<Scalars['Int']>;
@@ -53,6 +75,14 @@ export type IAdminPageInput = {
53
75
  token?: Maybe<Scalars['String']>;
54
76
  };
55
77
 
78
+ export type IAdminReferral = {
79
+ userId: Scalars['ID'];
80
+ username?: Maybe<Scalars['String']>;
81
+ mainWallet?: Maybe<IWallet>;
82
+ referredUsersNum?: Maybe<Scalars['Int']>;
83
+ referrals?: Maybe<Array<IReferredUsersInfo>>;
84
+ };
85
+
56
86
  export type IAdminUser = {
57
87
  userId: Scalars['ID'];
58
88
  username?: Maybe<Scalars['String']>;
@@ -63,7 +93,7 @@ export type IAdminUser = {
63
93
  topInterests?: Maybe<Array<Scalars['String']>>;
64
94
  walletsValue?: Maybe<Scalars['Float']>;
65
95
  xpLevel?: Maybe<Scalars['Int']>;
66
- ludoRank?: Maybe<Scalars['Int']>;
96
+ ludoRank?: Maybe<Scalars['Float']>;
67
97
  inviterId?: Maybe<Scalars['String']>;
68
98
  };
69
99
 
@@ -756,10 +786,10 @@ export type IInvitesPage = {
756
786
  };
757
787
 
758
788
  export type IInvitesSortInput = {
759
- sortByUsername: ISort;
760
- sortByXpLevel: ISort;
761
- sortByActiveInvites: ISort;
762
- sortByReferredUsers: ISort;
789
+ sortByUsername?: Maybe<ISort>;
790
+ sortByXpLevel?: Maybe<ISort>;
791
+ sortByActiveInvites?: Maybe<ISort>;
792
+ sortByReferredUsers?: Maybe<ISort>;
763
793
  };
764
794
 
765
795
  export type ILogin = {
@@ -1539,11 +1569,47 @@ export type IOffer = {
1539
1569
  status?: Maybe<Scalars['String']>;
1540
1570
  };
1541
1571
 
1572
+ export type IOpportunitiesFilterInput = {
1573
+ opportunityIdTerm?: Maybe<Scalars['String']>;
1574
+ industryTerm?: Maybe<Scalars['String']>;
1575
+ categoryTerm?: Maybe<Scalars['String']>;
1576
+ opportunityLudoUrlTerm?: Maybe<Scalars['String']>;
1577
+ opportunityProjectUrlTerm?: Maybe<Scalars['String']>;
1578
+ arePushNotificationsEnabled?: Maybe<Scalars['Boolean']>;
1579
+ opportunityStatusTerm?: Maybe<Scalars['String']>;
1580
+ activeFromTimestamp?: Maybe<Scalars['Long']>;
1581
+ activeUntilTimestamp?: Maybe<Scalars['Long']>;
1582
+ minXpLevel?: Maybe<Scalars['Int']>;
1583
+ maxXpLevel?: Maybe<Scalars['Int']>;
1584
+ minLudoRank?: Maybe<Scalars['Float']>;
1585
+ maxLudoRank?: Maybe<Scalars['Float']>;
1586
+ minWalletValue?: Maybe<Scalars['Float']>;
1587
+ maxWalletValue?: Maybe<Scalars['Float']>;
1588
+ clicks?: Maybe<Scalars['Int']>;
1589
+ views?: Maybe<Scalars['Int']>;
1590
+ };
1591
+
1592
+ export type IOpportunitiesPage = {
1593
+ opportunities: Array<IAdminOpportunity>;
1594
+ nextPage?: Maybe<IAdminPage>;
1595
+ };
1596
+
1542
1597
  export type IOpportunitiesPageV2 = {
1543
1598
  currentOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
1544
1599
  similarOpportunities?: Maybe<Array<Maybe<IOpportunityV2>>>;
1545
1600
  };
1546
1601
 
1602
+ export type IOpportunitiesSortInput = {
1603
+ sortByOpportunityName?: Maybe<ISort>;
1604
+ sortByBrandName?: Maybe<ISort>;
1605
+ sortByCategory?: Maybe<ISort>;
1606
+ sortByOpportunityStatus?: Maybe<ISort>;
1607
+ sortByActiveFrom?: Maybe<ISort>;
1608
+ sortByActiveUntil?: Maybe<ISort>;
1609
+ sortByMinXpLevel?: Maybe<ISort>;
1610
+ sortByMaxXpLevel?: Maybe<ISort>;
1611
+ };
1612
+
1547
1613
  export type IOpportunity = {
1548
1614
  opportunityId?: Maybe<Scalars['ID']>;
1549
1615
  name?: Maybe<Scalars['String']>;
@@ -1652,6 +1718,8 @@ export type IProfilePage = {
1652
1718
 
1653
1719
  export type IQuery = {
1654
1720
  fetchAdminInvitesPage: IInvitesPage;
1721
+ fetchAdminOpportunitiesPage: IOpportunitiesPage;
1722
+ fetchAdminReferralsPage: IReferralsPage;
1655
1723
  fetchAdminUsersPage: IUsersPage;
1656
1724
  fetchAdminXpPage: IXpPage;
1657
1725
  fetchAllAssets: IAssetsPage;
@@ -1803,6 +1871,20 @@ export type IQueryFetchAdminInvitesPageArgs = {
1803
1871
  };
1804
1872
 
1805
1873
 
1874
+ export type IQueryFetchAdminOpportunitiesPageArgs = {
1875
+ filter: IOpportunitiesFilterInput;
1876
+ sort: IOpportunitiesSortInput;
1877
+ page: IAdminPageInput;
1878
+ };
1879
+
1880
+
1881
+ export type IQueryFetchAdminReferralsPageArgs = {
1882
+ filter: IReferralsFilterInput;
1883
+ sort: IReferralsSortInput;
1884
+ page: IAdminPageInput;
1885
+ };
1886
+
1887
+
1806
1888
  export type IQueryFetchAdminUsersPageArgs = {
1807
1889
  filter: IUsersFilterInput;
1808
1890
  sort: IUsersSortInput;
@@ -2365,6 +2447,31 @@ export type IQuerySetMainWalletArgs = {
2365
2447
  chainId?: Maybe<Scalars['String']>;
2366
2448
  };
2367
2449
 
2450
+ export type IReferralsFilterInput = {
2451
+ userIdTerm?: Maybe<Scalars['String']>;
2452
+ usernameTerm?: Maybe<Scalars['String']>;
2453
+ mainWalletTerm?: Maybe<Scalars['String']>;
2454
+ referredUsersNumTerm?: Maybe<Scalars['String']>;
2455
+ userRefUrlTerm?: Maybe<Scalars['String']>;
2456
+ opportunityUrlTerm?: Maybe<Scalars['String']>;
2457
+ };
2458
+
2459
+ export type IReferralsPage = {
2460
+ adminReferrals: Array<IAdminReferral>;
2461
+ nextPage?: Maybe<IAdminPage>;
2462
+ };
2463
+
2464
+ export type IReferralsSortInput = {
2465
+ sortByUsername?: Maybe<ISort>;
2466
+ sortByReferredUsersNum?: Maybe<ISort>;
2467
+ };
2468
+
2469
+ export type IReferredUsersInfo = {
2470
+ userRefUrl: Scalars['String'];
2471
+ opportunityUrl: Scalars['String'];
2472
+ referredUsersPerUrlNum: Scalars['Int'];
2473
+ };
2474
+
2368
2475
  export type ISearchFilterInput = {
2369
2476
  categories?: Maybe<Array<Maybe<ISelectionInput>>>;
2370
2477
  sort: ISelectionInput;
@@ -2463,8 +2570,8 @@ export type ISort = {
2463
2570
  };
2464
2571
 
2465
2572
  export enum ISortDirection {
2466
- Asc = 'ASC',
2467
- Desc = 'DESC'
2573
+ Asc = 'asc',
2574
+ Desc = 'desc'
2468
2575
  }
2469
2576
 
2470
2577
  export type ISubscription = {
@@ -2688,7 +2795,7 @@ export type IUsersFilterInput = {
2688
2795
  interestTerm?: Maybe<Scalars['String']>;
2689
2796
  walletsValue?: Maybe<Scalars['Float']>;
2690
2797
  xpLevel?: Maybe<Scalars['Int']>;
2691
- ludoRank?: Maybe<Scalars['Int']>;
2798
+ ludoRank?: Maybe<Scalars['Float']>;
2692
2799
  invitedByTerm?: Maybe<Scalars['String']>;
2693
2800
  };
2694
2801
 
@@ -2698,12 +2805,12 @@ export type IUsersPage = {
2698
2805
  };
2699
2806
 
2700
2807
  export type IUsersSortInput = {
2701
- sortByUsername: ISort;
2702
- sortByAccountStatus: ISort;
2703
- sortByCreatedDate: ISort;
2704
- sortByWalletsValue: ISort;
2705
- sortByXpLevel: ISort;
2706
- sortByLudoRank: ISort;
2808
+ sortByUsername?: Maybe<ISort>;
2809
+ sortByAccountStatus?: Maybe<ISort>;
2810
+ sortByCreatedDate?: Maybe<ISort>;
2811
+ sortByWalletsValue?: Maybe<ISort>;
2812
+ sortByXpLevel?: Maybe<ISort>;
2813
+ sortByLudoRank?: Maybe<ISort>;
2707
2814
  };
2708
2815
 
2709
2816
  export type IWallet = {
@@ -2737,14 +2844,14 @@ export type IXpPage = {
2737
2844
  };
2738
2845
 
2739
2846
  export type IXpSortInput = {
2740
- sortByUsername: ISort;
2741
- sortByXpLevel: ISort;
2742
- sortByXpPoints: ISort;
2743
- sortByInvitedUsers: ISort;
2744
- sortByReferredUsersNum: ISort;
2745
- sortByJoinedOpportunities: ISort;
2746
- sortByConnectedWalletsNum: ISort;
2747
- sortBySuggestedOpportunities: ISort;
2847
+ sortByUsername?: Maybe<ISort>;
2848
+ sortByXpLevel?: Maybe<ISort>;
2849
+ sortByXpPoints?: Maybe<ISort>;
2850
+ sortByInvitedUsers?: Maybe<ISort>;
2851
+ sortByReferredUsersNum?: Maybe<ISort>;
2852
+ sortByJoinedOpportunities?: Maybe<ISort>;
2853
+ sortByConnectedWalletsNum?: Maybe<ISort>;
2854
+ sortBySuggestedOpportunities?: Maybe<ISort>;
2748
2855
  };
2749
2856
 
2750
2857
  export type IChangeXpPointsMutationVariables = Exact<{
@@ -2770,6 +2877,14 @@ export type IRemoveInviteCodeMutationVariables = Exact<{
2770
2877
 
2771
2878
  export type IRemoveInviteCodeMutation = Pick<IMutation, 'removeInviteCode'>;
2772
2879
 
2880
+ export type IUpdateProfileStatusMutationVariables = Exact<{
2881
+ userId: Scalars['ID'];
2882
+ isActive: Scalars['Boolean'];
2883
+ }>;
2884
+
2885
+
2886
+ export type IUpdateProfileStatusMutation = Pick<IMutation, 'updateProfileStatus'>;
2887
+
2773
2888
  export type IFetchAdminInvitesPageQueryVariables = Exact<{
2774
2889
  filter: IInvitesFilterInput;
2775
2890
  sort: IInvitesSortInput;
@@ -3863,6 +3978,37 @@ export function useRemoveInviteCodeMutation(baseOptions?: Apollo.MutationHookOpt
3863
3978
  export type RemoveInviteCodeMutationHookResult = ReturnType<typeof useRemoveInviteCodeMutation>;
3864
3979
  export type RemoveInviteCodeMutationResult = Apollo.MutationResult<IRemoveInviteCodeMutation>;
3865
3980
  export type RemoveInviteCodeMutationOptions = Apollo.BaseMutationOptions<IRemoveInviteCodeMutation, IRemoveInviteCodeMutationVariables>;
3981
+ export const UpdateProfileStatusDocument = gql`
3982
+ mutation UpdateProfileStatus($userId: ID!, $isActive: Boolean!) {
3983
+ updateProfileStatus(userId: $userId, isActive: $isActive)
3984
+ }
3985
+ `;
3986
+ export type IUpdateProfileStatusMutationFn = Apollo.MutationFunction<IUpdateProfileStatusMutation, IUpdateProfileStatusMutationVariables>;
3987
+
3988
+ /**
3989
+ * __useUpdateProfileStatusMutation__
3990
+ *
3991
+ * To run a mutation, you first call `useUpdateProfileStatusMutation` within a React component and pass it any options that fit your needs.
3992
+ * When your component renders, `useUpdateProfileStatusMutation` returns a tuple that includes:
3993
+ * - A mutate function that you can call at any time to execute the mutation
3994
+ * - An object with fields that represent the current status of the mutation's execution
3995
+ *
3996
+ * @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;
3997
+ *
3998
+ * @example
3999
+ * const [updateProfileStatusMutation, { data, loading, error }] = useUpdateProfileStatusMutation({
4000
+ * variables: {
4001
+ * userId: // value for 'userId'
4002
+ * isActive: // value for 'isActive'
4003
+ * },
4004
+ * });
4005
+ */
4006
+ export function useUpdateProfileStatusMutation(baseOptions?: Apollo.MutationHookOptions<IUpdateProfileStatusMutation, IUpdateProfileStatusMutationVariables>) {
4007
+ return Apollo.useMutation<IUpdateProfileStatusMutation, IUpdateProfileStatusMutationVariables>(UpdateProfileStatusDocument, baseOptions);
4008
+ }
4009
+ export type UpdateProfileStatusMutationHookResult = ReturnType<typeof useUpdateProfileStatusMutation>;
4010
+ export type UpdateProfileStatusMutationResult = Apollo.MutationResult<IUpdateProfileStatusMutation>;
4011
+ export type UpdateProfileStatusMutationOptions = Apollo.BaseMutationOptions<IUpdateProfileStatusMutation, IUpdateProfileStatusMutationVariables>;
3866
4012
  export const FetchAdminInvitesPageDocument = gql`
3867
4013
  query fetchAdminInvitesPage($filter: InvitesFilterInput!, $sort: InvitesSortInput!, $page: AdminPageInput!) {
3868
4014
  fetchAdminInvitesPage(filter: $filter, sort: $sort, page: $page) {