@ludo.ninja/api 2.5.8 → 2.5.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.5.8",
3
+ "version": "2.5.9",
4
4
  "main": "./build/index.js",
5
5
  "scripts": {
6
6
  "test": "jest",
@@ -2782,6 +2782,18 @@ export type IFetchAdminInvitesPageQuery = { fetchAdminInvitesPage: { invites: Ar
2782
2782
  & { wallet?: Maybe<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>, activeInvites?: Maybe<Array<Pick<IActiveInvite, 'inviteCode' | 'createdAt'>>> }
2783
2783
  )>, nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements' | 'token'>> } };
2784
2784
 
2785
+ export type IFetchAdminUsersPageQueryVariables = Exact<{
2786
+ filter: IUsersFilterInput;
2787
+ sort: IUsersSortInput;
2788
+ page: IAdminPageInput;
2789
+ }>;
2790
+
2791
+
2792
+ export type IFetchAdminUsersPageQuery = { fetchAdminUsersPage: { users: Array<(
2793
+ Pick<IAdminUser, 'userId' | 'username' | 'connectedBlockchains' | 'isActive' | 'createdAt' | 'topInterests' | 'walletsValue' | 'xpLevel' | 'ludoRank' | 'inviterId'>
2794
+ & { wallets?: Maybe<Array<Pick<IWallet, 'address' | 'blockchain' | 'chainId'>>> }
2795
+ )>, nextPage?: Maybe<Pick<IAdminPage, 'num' | 'lastNum' | 'size' | 'elements' | 'token'>> } };
2796
+
2785
2797
  export type IFetchAdminXpPageQueryVariables = Exact<{
2786
2798
  filter: IXpFilterInput;
2787
2799
  sort: IXpSortInput;
@@ -3907,6 +3919,64 @@ export function useFetchAdminInvitesPageLazyQuery(baseOptions?: Apollo.LazyQuery
3907
3919
  export type FetchAdminInvitesPageQueryHookResult = ReturnType<typeof useFetchAdminInvitesPageQuery>;
3908
3920
  export type FetchAdminInvitesPageLazyQueryHookResult = ReturnType<typeof useFetchAdminInvitesPageLazyQuery>;
3909
3921
  export type FetchAdminInvitesPageQueryResult = Apollo.QueryResult<IFetchAdminInvitesPageQuery, IFetchAdminInvitesPageQueryVariables>;
3922
+ export const FetchAdminUsersPageDocument = gql`
3923
+ query fetchAdminUsersPage($filter: UsersFilterInput!, $sort: UsersSortInput!, $page: AdminPageInput!) {
3924
+ fetchAdminUsersPage(filter: $filter, sort: $sort, page: $page) {
3925
+ users {
3926
+ userId
3927
+ username
3928
+ wallets {
3929
+ address
3930
+ blockchain
3931
+ chainId
3932
+ }
3933
+ connectedBlockchains
3934
+ isActive
3935
+ createdAt
3936
+ topInterests
3937
+ walletsValue
3938
+ xpLevel
3939
+ ludoRank
3940
+ inviterId
3941
+ }
3942
+ nextPage {
3943
+ num
3944
+ lastNum
3945
+ size
3946
+ elements
3947
+ token
3948
+ }
3949
+ }
3950
+ }
3951
+ `;
3952
+
3953
+ /**
3954
+ * __useFetchAdminUsersPageQuery__
3955
+ *
3956
+ * To run a query within a React component, call `useFetchAdminUsersPageQuery` and pass it any options that fit your needs.
3957
+ * When your component renders, `useFetchAdminUsersPageQuery` returns an object from Apollo Client that contains loading, error, and data properties
3958
+ * you can use to render your UI.
3959
+ *
3960
+ * @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;
3961
+ *
3962
+ * @example
3963
+ * const { data, loading, error } = useFetchAdminUsersPageQuery({
3964
+ * variables: {
3965
+ * filter: // value for 'filter'
3966
+ * sort: // value for 'sort'
3967
+ * page: // value for 'page'
3968
+ * },
3969
+ * });
3970
+ */
3971
+ export function useFetchAdminUsersPageQuery(baseOptions: Apollo.QueryHookOptions<IFetchAdminUsersPageQuery, IFetchAdminUsersPageQueryVariables>) {
3972
+ return Apollo.useQuery<IFetchAdminUsersPageQuery, IFetchAdminUsersPageQueryVariables>(FetchAdminUsersPageDocument, baseOptions);
3973
+ }
3974
+ export function useFetchAdminUsersPageLazyQuery(baseOptions?: Apollo.LazyQueryHookOptions<IFetchAdminUsersPageQuery, IFetchAdminUsersPageQueryVariables>) {
3975
+ return Apollo.useLazyQuery<IFetchAdminUsersPageQuery, IFetchAdminUsersPageQueryVariables>(FetchAdminUsersPageDocument, baseOptions);
3976
+ }
3977
+ export type FetchAdminUsersPageQueryHookResult = ReturnType<typeof useFetchAdminUsersPageQuery>;
3978
+ export type FetchAdminUsersPageLazyQueryHookResult = ReturnType<typeof useFetchAdminUsersPageLazyQuery>;
3979
+ export type FetchAdminUsersPageQueryResult = Apollo.QueryResult<IFetchAdminUsersPageQuery, IFetchAdminUsersPageQueryVariables>;
3910
3980
  export const FetchAdminXpPageDocument = gql`
3911
3981
  query FetchAdminXpPage($filter: XpFilterInput!, $sort: XpSortInput!, $page: AdminPageInput!) {
3912
3982
  fetchAdminXpPage(filter: $filter, sort: $sort, page: $page) {