@ludo.ninja/api 2.4.8 → 2.4.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ludo.ninja/api",
3
- "version": "2.4.8",
3
+ "version": "2.4.9",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -52,8 +52,23 @@ export type IAdminPageInput = {
52
52
  token?: Maybe<Scalars['String']>;
53
53
  };
54
54
 
55
+ export type IAdminUser = {
56
+ userId: Scalars['ID'];
57
+ username?: Maybe<Scalars['String']>;
58
+ wallets?: Maybe<Array<IWallet>>;
59
+ connectedBlockchains?: Maybe<Array<Scalars['String']>>;
60
+ isActive?: Maybe<Scalars['Boolean']>;
61
+ createdAt?: Maybe<Scalars['Long']>;
62
+ topInterests?: Maybe<Array<Scalars['String']>>;
63
+ walletsValue?: Maybe<Scalars['Float']>;
64
+ xpLevel?: Maybe<Scalars['Int']>;
65
+ ludoRank?: Maybe<Scalars['Int']>;
66
+ inviterId?: Maybe<Scalars['String']>;
67
+ };
68
+
55
69
  export type IAdminXp = {
56
70
  userId: Scalars['ID'];
71
+ username?: Maybe<Scalars['String']>;
57
72
  mainWallet?: Maybe<IWallet>;
58
73
  userXpLevel?: Maybe<Scalars['Int']>;
59
74
  userXpPoints?: Maybe<Scalars['Int']>;
@@ -891,6 +906,7 @@ export type IMutation = {
891
906
  unfollowProfile: Scalars['Boolean'];
892
907
  unsubscribeGallery: Scalars['Int'];
893
908
  updateProfile: Scalars['Boolean'];
909
+ updateProfileStatus: Scalars['Boolean'];
894
910
  uploadGalleryBanner: Scalars['String'];
895
911
  uploadUserpic: Scalars['String'];
896
912
  useInviteCode: Scalars['Boolean'];
@@ -1453,6 +1469,12 @@ export type IMutationUpdateProfileArgs = {
1453
1469
  };
1454
1470
 
1455
1471
 
1472
+ export type IMutationUpdateProfileStatusArgs = {
1473
+ userId: Scalars['ID'];
1474
+ isActive: Scalars['Boolean'];
1475
+ };
1476
+
1477
+
1456
1478
  export type IMutationUploadGalleryBannerArgs = {
1457
1479
  galleryId: Scalars['ID'];
1458
1480
  file: Scalars['Upload'];
@@ -1625,6 +1647,7 @@ export type IProfilePage = {
1625
1647
 
1626
1648
  export type IQuery = {
1627
1649
  fetchAdminInvitesPage: IInvitesPage;
1650
+ fetchAdminUsersPage: IUsersPage;
1628
1651
  fetchAdminXpPage: IXpPage;
1629
1652
  fetchAllAssets: IAssetsPage;
1630
1653
  fetchAllBannerAssets: IBannerAssetsPage;
@@ -1775,6 +1798,13 @@ export type IQueryFetchAdminInvitesPageArgs = {
1775
1798
  };
1776
1799
 
1777
1800
 
1801
+ export type IQueryFetchAdminUsersPageArgs = {
1802
+ filter: IUsersFilterInput;
1803
+ sort: IUsersSortInput;
1804
+ page: IAdminPageInput;
1805
+ };
1806
+
1807
+
1778
1808
  export type IQueryFetchAdminXpPageArgs = {
1779
1809
  filter: IXpFilterInput;
1780
1810
  sort: IXpSortInput;
@@ -2643,10 +2673,39 @@ export type IUserXpIncrement = {
2643
2673
  levelMaxXps: Scalars['Int'];
2644
2674
  };
2645
2675
 
2676
+ export type IUsersFilterInput = {
2677
+ userIdTerm?: Maybe<Scalars['String']>;
2678
+ usernameTerm?: Maybe<Scalars['String']>;
2679
+ walletsTerm?: Maybe<Scalars['String']>;
2680
+ connectedBlockchainsTerm?: Maybe<Scalars['String']>;
2681
+ isActiveAccount?: Maybe<Scalars['Boolean']>;
2682
+ createdDateTimestamp?: Maybe<Scalars['Long']>;
2683
+ interestTerm?: Maybe<Scalars['String']>;
2684
+ walletsValue?: Maybe<Scalars['Float']>;
2685
+ xpLevel?: Maybe<Scalars['Int']>;
2686
+ ludoRank?: Maybe<Scalars['Int']>;
2687
+ invitedByTerm?: Maybe<Scalars['String']>;
2688
+ };
2689
+
2690
+ export type IUsersPage = {
2691
+ users: Array<IAdminUser>;
2692
+ nextPage?: Maybe<IAdminPage>;
2693
+ };
2694
+
2695
+ export type IUsersSortInput = {
2696
+ sortByUsername: ISort;
2697
+ sortByAccountStatus: ISort;
2698
+ sortByCreatedDate: ISort;
2699
+ sortByWalletsValue: ISort;
2700
+ sortByXpLevel: ISort;
2701
+ sortByLudoRank: ISort;
2702
+ };
2703
+
2646
2704
  export type IWallet = {
2647
2705
  address: Scalars['String'];
2648
2706
  blockchain: Scalars['String'];
2649
2707
  chainId?: Maybe<Scalars['String']>;
2708
+ isMain?: Maybe<Scalars['Boolean']>;
2650
2709
  mainWallet: Scalars['Boolean'];
2651
2710
  name?: Maybe<Scalars['String']>;
2652
2711
  url?: Maybe<Scalars['String']>;
@@ -2656,6 +2715,7 @@ export type IWallet = {
2656
2715
 
2657
2716
  export type IXpFilterInput = {
2658
2717
  userIdTerm?: Maybe<Scalars['String']>;
2718
+ usernameTerm?: Maybe<Scalars['String']>;
2659
2719
  mainWalletTerm?: Maybe<Scalars['String']>;
2660
2720
  userXpLevelTerm?: Maybe<Scalars['String']>;
2661
2721
  userXpPointsTerm?: Maybe<Scalars['String']>;
@@ -2672,6 +2732,7 @@ export type IXpPage = {
2672
2732
  };
2673
2733
 
2674
2734
  export type IXpSortInput = {
2735
+ sortByUsername: ISort;
2675
2736
  sortByXpLevel: ISort;
2676
2737
  sortByXpPoints: ISort;
2677
2738
  sortByInvitedUsers: ISort;
@@ -2724,7 +2785,7 @@ export type IFetchAdminXpPageQueryVariables = Exact<{
2724
2785
 
2725
2786
 
2726
2787
  export type IFetchAdminXpPageQuery = { fetchAdminXpPage: { xps: Array<(
2727
- Pick<IAdminXp, 'userId' | 'userXpLevel' | 'userXpPoints' | 'referredUsers' | 'referredUsersNum' | 'joinedOpportunityIds' | 'connectedWalletsNum' | 'suggestedOpportunityIds'>
2788
+ Pick<IAdminXp, 'userId' | 'username' | 'userXpLevel' | 'userXpPoints' | 'referredUsers' | 'referredUsersNum' | 'joinedOpportunityIds' | 'connectedWalletsNum' | 'suggestedOpportunityIds'>
2728
2789
  & { mainWallet?: Maybe<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>> }
2729
2790
  )>, nextPage?: Maybe<Pick<IAdminPage, 'elements' | 'lastNum' | 'num' | 'size' | 'token'>> } };
2730
2791
 
@@ -3845,6 +3906,7 @@ export const FetchAdminXpPageDocument = gql`
3845
3906
  fetchAdminXpPage(filter: $filter, sort: $sort, page: $page) {
3846
3907
  xps {
3847
3908
  userId
3909
+ username
3848
3910
  mainWallet {
3849
3911
  address
3850
3912
  blockchain