@poolzfinance/api4 1.12.9 → 1.13.1

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.
@@ -347,13 +347,18 @@ export type Mutation = {
347
347
  addAutoSignUp: AdminAutoSignUp;
348
348
  addEvmWallet: UserData;
349
349
  addNonEvmWallet: UserData;
350
+ /** @deprecated Will be removed */
350
351
  addUser: AdminUsers;
352
+ /** @deprecated Will be removed */
351
353
  adminAddAction: AdminAction;
354
+ /** @deprecated Will be removed */
352
355
  adminCleanCache: CleanCache;
353
356
  adminCreateAsset: CreateAssetResponse;
354
357
  adminCreatePoolzBackId: AdminCreatePoolzBackId;
358
+ /** @deprecated Will be removed */
355
359
  adminDeleteAction: Scalars['Boolean']['output'];
356
360
  adminDeleteAsset: DeleteAssetResponse;
361
+ /** @deprecated Will be removed */
357
362
  adminUpdateAction: ActionSettings;
358
363
  adminWriteAllocation: Scalars['Int']['output'];
359
364
  createSeasonPass: SeasonPass;
@@ -362,6 +367,7 @@ export type Mutation = {
362
367
  deleteEvmWallet: UserData;
363
368
  deleteNonEvmWallet: UserData;
364
369
  deleteSeasonPass: SeasonPass;
370
+ /** @deprecated Will be removed */
365
371
  deleteUser: AdminUsers;
366
372
  generateSignature: GenerateSignatureResponse;
367
373
  generateTokenFromSignature: GenerateTokenFromSignature;
@@ -375,6 +381,7 @@ export type Mutation = {
375
381
  updateEvmWallet: UserData;
376
382
  updateNonEvmWallet: UserData;
377
383
  updateSeasonPass: SeasonPass;
384
+ /** @deprecated Will be removed */
378
385
  updateUser: AdminUsers;
379
386
  };
380
387
  export type MutationAddAutoSignUpArgs = {
@@ -623,10 +630,12 @@ export type PutMyDataNonEvmWallet = {
623
630
  export type Query = {
624
631
  __typename?: 'Query';
625
632
  adminAutoSignUp: Array<AdminAutoSignUp>;
633
+ /** @deprecated Will be removed */
626
634
  adminGetActions: Array<GetAction>;
627
635
  adminGetAllocation: Array<AdminGetAllocation>;
628
636
  adminKycProxy: Array<AdminKycProxy>;
629
637
  adminListAssets: Array<AdminListAssetsResponse>;
638
+ /** @deprecated Will be removed */
630
639
  adminListOfCollateral: Array<AdminListOfCollateral>;
631
640
  /** Works with a maximum of 100 elements */
632
641
  adminListOfPoolzBackId: Array<AdminListOfPoolzBackId>;
@@ -638,12 +647,14 @@ export type Query = {
638
647
  /** @deprecated Use adminSignUpV3 */
639
648
  adminSignUpV2: Array<AdminSignUpV2>;
640
649
  adminSignUpV3: Array<AdminSignUpV3>;
650
+ /** @deprecated Will be removed */
641
651
  adminUsers: Array<AdminUsers>;
642
652
  approvedContracts: Array<ApprovedContracts>;
643
653
  boostProxy: Array<BoostProxy>;
644
654
  daoSenderHistory: DaoSenderHistoryPage;
645
655
  generateMyInvestSignature: GenerateMyInvestSignature;
646
656
  investedErc20: Array<InvestedErc20>;
657
+ /** @deprecated This endpoint is deprecated. */
647
658
  kolInvestedErc20: Array<KolInvestedErc20>;
648
659
  leaderBoard: Array<LeaderBoard>;
649
660
  myAllocation: MyAllocation;
@@ -679,20 +690,30 @@ export type Query = {
679
690
  signUpList: Array<SignUpList>;
680
691
  /** @deprecated Old system. Please use new endpoints from API4.SignUp. */
681
692
  signUpsTimes: Array<SignUpsTimes>;
693
+ /** @deprecated Will be removed */
682
694
  simpleUrlShortener?: Maybe<SimpleUrlShortener>;
683
695
  splitDataEncoder: Scalars['String']['output'];
696
+ /** @deprecated Will be removed */
684
697
  status: Array<Status>;
685
698
  time: Scalars['Int']['output'];
686
699
  tokenInfo?: Maybe<TokenInfo>;
687
700
  /** @deprecated Old LockDealV2 system. */
688
701
  tokenRefundsLDv2: Array<TokenRefundsLDv2>;
689
- /** # The 'poolId' must be a CollateralProvider */
702
+ /**
703
+ * # The 'poolId' must be a CollateralProvider
704
+ * @deprecated Will be archived in the new endpoint.
705
+ */
690
706
  tokenRefundsNFT: Array<TokenRefundsNft>;
707
+ /** @deprecated Will be updated to LdNftUniqueUsers */
691
708
  uniqueUsers: UniqueUsers;
709
+ /** @deprecated Need to fix */
692
710
  unlocks: Array<Unlocks>;
693
711
  /** @deprecated This endpoint is deprecated. */
694
712
  vaultOut: Array<VaultOut>;
695
- /** The 'fetchBalance' will be deprecated */
713
+ /**
714
+ * The 'fetchBalance' will be deprecated
715
+ * @deprecated Will be updated to vaultsV2
716
+ */
696
717
  vaults: Array<Vaults>;
697
718
  };
698
719
  export type QueryAdminAutoSignUpArgs = {
@@ -1068,30 +1089,6 @@ export type VaultsDataBalance = {
1068
1089
  BalanceOfToken: Scalars['Float']['output'];
1069
1090
  FetchTime: Scalars['Int']['output'];
1070
1091
  };
1071
- export type AdminCleanCacheMutationVariables = Exact<{
1072
- [key: string]: never;
1073
- }>;
1074
- export type AdminCleanCacheMutation = {
1075
- __typename?: 'Mutation';
1076
- adminCleanCache: {
1077
- __typename?: 'CleanCache';
1078
- success: boolean;
1079
- result: {
1080
- __typename?: 'CleanCacheResult';
1081
- id: string;
1082
- };
1083
- messages: Array<{
1084
- __typename?: 'CleanCacheMessage';
1085
- code: number;
1086
- message: string;
1087
- }>;
1088
- errors: Array<{
1089
- __typename?: 'CleanCacheError';
1090
- code: number;
1091
- message: string;
1092
- }>;
1093
- };
1094
- };
1095
1092
  export type AdminCreatePoolzBackIdMutationVariables = Exact<{
1096
1093
  projectId: Scalars['String']['input'];
1097
1094
  poolzBackId: Scalars['Int']['input'];
@@ -1120,22 +1117,6 @@ export type AdminGetAllocationQuery = {
1120
1117
  }> | null;
1121
1118
  }>;
1122
1119
  };
1123
- export type AdminListOfCollateralQueryVariables = Exact<{
1124
- chainId: Scalars['Int']['input'];
1125
- collateralAddress: Scalars['String']['input'];
1126
- limit: Scalars['Int']['input'];
1127
- page: Scalars['Int']['input'];
1128
- }>;
1129
- export type AdminListOfCollateralQuery = {
1130
- __typename?: 'Query';
1131
- adminListOfCollateral: Array<{
1132
- __typename?: 'AdminListOfCollateral';
1133
- PoolId: number;
1134
- TokenAmountInWei: string;
1135
- MainCoinAmountInWei: string;
1136
- FinishTime: number;
1137
- }>;
1138
- };
1139
1120
  export type AdminListOfPoolzBackIdQueryVariables = Exact<{
1140
1121
  projectIDs: Array<Scalars['String']['input']> | Scalars['String']['input'];
1141
1122
  }>;
@@ -1147,6 +1128,33 @@ export type AdminListOfPoolzBackIdQuery = {
1147
1128
  PoolzBackId: number;
1148
1129
  }>;
1149
1130
  };
1131
+ export type AdminReadAssetsQueryVariables = Exact<{
1132
+ request: Array<ReadAssetsRequest> | ReadAssetsRequest;
1133
+ }>;
1134
+ export type AdminReadAssetsQuery = {
1135
+ __typename?: 'Query';
1136
+ adminReadAssets: {
1137
+ __typename?: 'ReadAssetsResponse';
1138
+ Assets: Array<{
1139
+ __typename?: 'ReadAssetResponse_Asset';
1140
+ ChainId: number;
1141
+ PoolId: number;
1142
+ Dispensers: Array<{
1143
+ __typename?: 'ReadAssetResponse_Dispenser';
1144
+ IsTaken: boolean;
1145
+ UserAddress: string;
1146
+ RefundFinishTime?: number | null;
1147
+ Builders: Array<{
1148
+ __typename?: 'ReadAssetResponse_Builder';
1149
+ ProviderAddress: string;
1150
+ WeiAmount: string;
1151
+ StartTime?: number | null;
1152
+ FinishTime?: number | null;
1153
+ }>;
1154
+ }>;
1155
+ }>;
1156
+ };
1157
+ };
1150
1158
  export type AdminWriteAllocationMutationVariables = Exact<{
1151
1159
  input: AdminWriteAllocation;
1152
1160
  }>;
@@ -1165,70 +1173,6 @@ export type GetApprovedContractsQuery = {
1165
1173
  Status: boolean;
1166
1174
  }>;
1167
1175
  };
1168
- export type AdminAutoSignUpQueryVariables = Exact<{
1169
- note?: InputMaybe<Scalars['String']['input']>;
1170
- }>;
1171
- export type AdminAutoSignUpQuery = {
1172
- __typename?: 'Query';
1173
- adminAutoSignUp: Array<{
1174
- __typename?: 'AdminAutoSignUp';
1175
- Address: string;
1176
- PoolzAmount: number;
1177
- Note: string;
1178
- }>;
1179
- };
1180
- export type AdminAutoSignUpAllQueryVariables = Exact<{
1181
- [key: string]: never;
1182
- }>;
1183
- export type AdminAutoSignUpAllQuery = {
1184
- __typename?: 'Query';
1185
- adminAutoSignUp: Array<{
1186
- __typename?: 'AdminAutoSignUp';
1187
- Address: string;
1188
- PoolzAmount: number;
1189
- Note: string;
1190
- }>;
1191
- };
1192
- export type AddAutoSignUpMutationVariables = Exact<{
1193
- address: Scalars['String']['input'];
1194
- poolzAmount: Scalars['Float']['input'];
1195
- note: Scalars['String']['input'];
1196
- }>;
1197
- export type AddAutoSignUpMutation = {
1198
- __typename?: 'Mutation';
1199
- addAutoSignUp: {
1200
- __typename?: 'AdminAutoSignUp';
1201
- Address: string;
1202
- PoolzAmount: number;
1203
- Note: string;
1204
- };
1205
- };
1206
- export type UpdateAutoSignUpMutationVariables = Exact<{
1207
- address: Scalars['String']['input'];
1208
- poolzAmount: Scalars['Float']['input'];
1209
- note: Scalars['String']['input'];
1210
- }>;
1211
- export type UpdateAutoSignUpMutation = {
1212
- __typename?: 'Mutation';
1213
- updateAutoSignUp: {
1214
- __typename?: 'AdminAutoSignUp';
1215
- Address: string;
1216
- PoolzAmount: number;
1217
- Note: string;
1218
- };
1219
- };
1220
- export type DeleteAutoSignUpMutationVariables = Exact<{
1221
- address: Scalars['String']['input'];
1222
- }>;
1223
- export type DeleteAutoSignUpMutation = {
1224
- __typename?: 'Mutation';
1225
- deleteAutoSignUp: {
1226
- __typename?: 'AdminAutoSignUp';
1227
- Address: string;
1228
- PoolzAmount: number;
1229
- Note: string;
1230
- };
1231
- };
1232
1176
  export type BoostProxyDataQueryVariables = Exact<{
1233
1177
  campaignCodes: Array<Scalars['String']['input']> | Scalars['String']['input'];
1234
1178
  }>;
@@ -1400,18 +1344,6 @@ export type GenerateMyInvestSignatureQuery = {
1400
1344
  PoolzBackId: number;
1401
1345
  };
1402
1346
  };
1403
- export type InvestedErc20QueryVariables = Exact<{
1404
- investedErc20Id: Scalars['Int']['input'];
1405
- }>;
1406
- export type InvestedErc20Query = {
1407
- __typename?: 'Query';
1408
- investedErc20: Array<{
1409
- __typename?: 'InvestedErc20';
1410
- Wallet: string;
1411
- AmountIn: number;
1412
- TokenOut: number;
1413
- }>;
1414
- };
1415
1347
  export type GetLeaderboardByAddressQueryVariables = Exact<{
1416
1348
  address?: InputMaybe<Scalars['String']['input']>;
1417
1349
  }>;
@@ -1594,23 +1526,12 @@ export type KycQuery = {
1594
1526
  Status?: string | null;
1595
1527
  };
1596
1528
  };
1597
- export type MyRoleQueryVariables = Exact<{
1529
+ export type MyRolesQueryVariables = Exact<{
1598
1530
  [key: string]: never;
1599
1531
  }>;
1600
- export type MyRoleQuery = {
1532
+ export type MyRolesQuery = {
1601
1533
  __typename?: 'Query';
1602
- myRole: string;
1603
- };
1604
- export type SignUpCheckQueryVariables = Exact<{
1605
- poolIDs: Array<Scalars['Int']['input']> | Scalars['Int']['input'];
1606
- }>;
1607
- export type SignUpCheckQuery = {
1608
- __typename?: 'Query';
1609
- mySignUpCheck: Array<{
1610
- __typename?: 'SignUpCheck';
1611
- PoolId: number;
1612
- SignUp?: boolean | null;
1613
- }>;
1534
+ myRoles: Array<string>;
1614
1535
  };
1615
1536
  export type PoolxPriceQueryVariables = Exact<{
1616
1537
  [key: string]: never;
@@ -1652,100 +1573,6 @@ export type GetPoolxTokenomicsQuery = {
1652
1573
  };
1653
1574
  };
1654
1575
  };
1655
- export type SeasonPassQueryVariables = Exact<{
1656
- [key: string]: never;
1657
- }>;
1658
- export type SeasonPassQuery = {
1659
- __typename?: 'Query';
1660
- seasonPass: Array<{
1661
- __typename?: 'SeasonPass';
1662
- Owner: string;
1663
- Amount: number;
1664
- ValidUntil: number;
1665
- Note: string;
1666
- }>;
1667
- };
1668
- export type CreateSeasonPassMutationVariables = Exact<{
1669
- Owner: Scalars['String']['input'];
1670
- Amount: Scalars['Float']['input'];
1671
- ValidUntil: Scalars['Int']['input'];
1672
- Note: Scalars['String']['input'];
1673
- }>;
1674
- export type CreateSeasonPassMutation = {
1675
- __typename?: 'Mutation';
1676
- createSeasonPass: {
1677
- __typename?: 'SeasonPass';
1678
- Owner: string;
1679
- Amount: number;
1680
- ValidUntil: number;
1681
- Note: string;
1682
- };
1683
- };
1684
- export type UpdateSeasonPassMutationVariables = Exact<{
1685
- Owner: Scalars['String']['input'];
1686
- Amount: Scalars['Float']['input'];
1687
- ValidUntil: Scalars['Int']['input'];
1688
- Note: Scalars['String']['input'];
1689
- }>;
1690
- export type UpdateSeasonPassMutation = {
1691
- __typename?: 'Mutation';
1692
- updateSeasonPass: {
1693
- __typename?: 'SeasonPass';
1694
- Owner: string;
1695
- Amount: number;
1696
- ValidUntil: number;
1697
- Note: string;
1698
- };
1699
- };
1700
- export type DeleteSeasonPassMutationVariables = Exact<{
1701
- owner: Scalars['String']['input'];
1702
- note: Scalars['String']['input'];
1703
- }>;
1704
- export type DeleteSeasonPassMutation = {
1705
- __typename?: 'Mutation';
1706
- deleteSeasonPass: {
1707
- __typename?: 'SeasonPass';
1708
- Owner: string;
1709
- Amount: number;
1710
- ValidUntil: number;
1711
- Note: string;
1712
- };
1713
- };
1714
- export type MySignUpV2QueryVariables = Exact<{
1715
- projectIDs: Array<Scalars['Int']['input']> | Scalars['Int']['input'];
1716
- }>;
1717
- export type MySignUpV2Query = {
1718
- __typename?: 'Query';
1719
- mySignUpV2: Array<{
1720
- __typename?: 'MySignUpV2';
1721
- ProjectId: number;
1722
- SignedUp: boolean;
1723
- }>;
1724
- };
1725
- export type AdminSignUpV2QueryVariables = Exact<{
1726
- projectId: Scalars['Int']['input'];
1727
- minPoolxAmount: Scalars['Int']['input'];
1728
- }>;
1729
- export type AdminSignUpV2Query = {
1730
- __typename?: 'Query';
1731
- adminSignUpV2: Array<{
1732
- __typename?: 'AdminSignUpV2';
1733
- Address: string;
1734
- Amount: number;
1735
- }>;
1736
- };
1737
- export type ProjectSignUpV2MutationVariables = Exact<{
1738
- projectId: Scalars['Int']['input'];
1739
- }>;
1740
- export type ProjectSignUpV2Mutation = {
1741
- __typename?: 'Mutation';
1742
- projectSignUpV2: {
1743
- __typename?: 'ProjectSignUpV2';
1744
- ProjectId: number;
1745
- UserAddress: string;
1746
- JoinedTime: number;
1747
- };
1748
- };
1749
1576
  export type MySignUpV3QueryVariables = Exact<{
1750
1577
  projectIDs: Array<Scalars['String']['input']> | Scalars['String']['input'];
1751
1578
  }>;
@@ -1794,29 +1621,6 @@ export type SimpleUrlShortenerQuery = {
1794
1621
  XPostText: string;
1795
1622
  } | null;
1796
1623
  };
1797
- export type StatusQueryVariables = Exact<{
1798
- [key: string]: never;
1799
- }>;
1800
- export type StatusQuery = {
1801
- __typename?: 'Query';
1802
- status: Array<{
1803
- __typename?: 'Status';
1804
- ChainId: number;
1805
- ChainName: string;
1806
- RpcUrl: string;
1807
- CovalentLastBlock: number;
1808
- SecondsToWarning: number;
1809
- SecondsToError: number;
1810
- BlockPerSecond: number;
1811
- Events: Array<{
1812
- __typename?: 'StatusEvents';
1813
- Active: boolean;
1814
- StartingBlock: number;
1815
- EndingBlock: number;
1816
- ResponseType: string;
1817
- }>;
1818
- }>;
1819
- };
1820
1624
  export type TokenInfoQueryVariables = Exact<{
1821
1625
  hashKey: Scalars['String']['input'];
1822
1626
  }>;
@@ -1832,29 +1636,6 @@ export type TokenInfoQuery = {
1832
1636
  TotalSupply: number;
1833
1637
  } | null;
1834
1638
  };
1835
- export type TokenRefundsNftQueryVariables = Exact<{
1836
- chainId: Scalars['Int']['input'];
1837
- poolId: Scalars['Int']['input'];
1838
- }>;
1839
- export type TokenRefundsNftQuery = {
1840
- __typename?: 'Query';
1841
- tokenRefundsNFT: Array<{
1842
- __typename?: 'TokenRefundsNFT';
1843
- TxHash: string;
1844
- BlockSignedAt: number;
1845
- From: string;
1846
- TokensRefunded: {
1847
- __typename?: 'TokenRefundsNFT_TokensRefunded';
1848
- TokenId: number;
1849
- Amount: number;
1850
- };
1851
- TokenOut: {
1852
- __typename?: 'TokenRefundsNFT_TokenOut';
1853
- TokenId: number;
1854
- Amount: number;
1855
- };
1856
- }>;
1857
- };
1858
1639
  export type DataQueryVariables = Exact<{
1859
1640
  chainId?: InputMaybe<Scalars['Int']['input']>;
1860
1641
  tokenAddress?: InputMaybe<Scalars['String']['input']>;
@@ -1882,18 +1663,12 @@ export type DataQuery = {
1882
1663
  }>;
1883
1664
  }>;
1884
1665
  };
1885
- export declare const AdminCleanCacheDocument: DocumentNode<AdminCleanCacheMutation, AdminCleanCacheMutationVariables>;
1886
1666
  export declare const AdminCreatePoolzBackIdDocument: DocumentNode<AdminCreatePoolzBackIdMutation, AdminCreatePoolzBackIdMutationVariables>;
1887
1667
  export declare const AdminGetAllocationDocument: DocumentNode<AdminGetAllocationQuery, AdminGetAllocationQueryVariables>;
1888
- export declare const AdminListOfCollateralDocument: DocumentNode<AdminListOfCollateralQuery, AdminListOfCollateralQueryVariables>;
1889
1668
  export declare const AdminListOfPoolzBackIdDocument: DocumentNode<AdminListOfPoolzBackIdQuery, AdminListOfPoolzBackIdQueryVariables>;
1669
+ export declare const AdminReadAssetsDocument: DocumentNode<AdminReadAssetsQuery, AdminReadAssetsQueryVariables>;
1890
1670
  export declare const AdminWriteAllocationDocument: DocumentNode<AdminWriteAllocationMutation, AdminWriteAllocationMutationVariables>;
1891
1671
  export declare const GetApprovedContractsDocument: DocumentNode<GetApprovedContractsQuery, GetApprovedContractsQueryVariables>;
1892
- export declare const AdminAutoSignUpDocument: DocumentNode<AdminAutoSignUpQuery, AdminAutoSignUpQueryVariables>;
1893
- export declare const AdminAutoSignUpAllDocument: DocumentNode<AdminAutoSignUpAllQuery, AdminAutoSignUpAllQueryVariables>;
1894
- export declare const AddAutoSignUpDocument: DocumentNode<AddAutoSignUpMutation, AddAutoSignUpMutationVariables>;
1895
- export declare const UpdateAutoSignUpDocument: DocumentNode<UpdateAutoSignUpMutation, UpdateAutoSignUpMutationVariables>;
1896
- export declare const DeleteAutoSignUpDocument: DocumentNode<DeleteAutoSignUpMutation, DeleteAutoSignUpMutationVariables>;
1897
1672
  export declare const BoostProxyDataDocument: DocumentNode<BoostProxyDataQuery, BoostProxyDataQueryVariables>;
1898
1673
  export declare const BoostProxyUsersDocument: DocumentNode<BoostProxyUsersQuery, BoostProxyUsersQueryVariables>;
1899
1674
  export declare const DaoSenderHistoryDocument: DocumentNode<DaoSenderHistoryQuery, DaoSenderHistoryQueryVariables>;
@@ -1904,7 +1679,6 @@ export declare const GenerateSignatureDocument: DocumentNode<GenerateSignatureMu
1904
1679
  export declare const MyQueryDocument: DocumentNode<MyQueryQuery, MyQueryQueryVariables>;
1905
1680
  export declare const GenerateTokenFromSignatureDocument: DocumentNode<GenerateTokenFromSignatureMutation, GenerateTokenFromSignatureMutationVariables>;
1906
1681
  export declare const GenerateMyInvestSignatureDocument: DocumentNode<GenerateMyInvestSignatureQuery, GenerateMyInvestSignatureQueryVariables>;
1907
- export declare const InvestedErc20Document: DocumentNode<InvestedErc20Query, InvestedErc20QueryVariables>;
1908
1682
  export declare const GetLeaderboardByAddressDocument: DocumentNode<GetLeaderboardByAddressQuery, GetLeaderboardByAddressQueryVariables>;
1909
1683
  export declare const GetLeaderboardDocument: DocumentNode<GetLeaderboardQuery, GetLeaderboardQueryVariables>;
1910
1684
  export declare const LogoutDocument: DocumentNode<LogoutMutation, LogoutMutationVariables>;
@@ -1919,22 +1693,12 @@ export declare const DeleteNonEvmWalletDocument: DocumentNode<DeleteNonEvmWallet
1919
1693
  export declare const UpdateNonEvmWalletDocument: DocumentNode<UpdateNonEvmWalletMutation, UpdateNonEvmWalletMutationVariables>;
1920
1694
  export declare const MyInvestedDocument: DocumentNode<MyInvestedQuery, MyInvestedQueryVariables>;
1921
1695
  export declare const KycDocument: DocumentNode<KycQuery, KycQueryVariables>;
1922
- export declare const MyRoleDocument: DocumentNode<MyRoleQuery, MyRoleQueryVariables>;
1923
- export declare const SignUpCheckDocument: DocumentNode<SignUpCheckQuery, SignUpCheckQueryVariables>;
1696
+ export declare const MyRolesDocument: DocumentNode<MyRolesQuery, MyRolesQueryVariables>;
1924
1697
  export declare const PoolxPriceDocument: DocumentNode<PoolxPriceQuery, PoolxPriceQueryVariables>;
1925
1698
  export declare const GetPoolxTokenomicsDocument: DocumentNode<GetPoolxTokenomicsQuery, GetPoolxTokenomicsQueryVariables>;
1926
- export declare const SeasonPassDocument: DocumentNode<SeasonPassQuery, SeasonPassQueryVariables>;
1927
- export declare const CreateSeasonPassDocument: DocumentNode<CreateSeasonPassMutation, CreateSeasonPassMutationVariables>;
1928
- export declare const UpdateSeasonPassDocument: DocumentNode<UpdateSeasonPassMutation, UpdateSeasonPassMutationVariables>;
1929
- export declare const DeleteSeasonPassDocument: DocumentNode<DeleteSeasonPassMutation, DeleteSeasonPassMutationVariables>;
1930
- export declare const MySignUpV2Document: DocumentNode<MySignUpV2Query, MySignUpV2QueryVariables>;
1931
- export declare const AdminSignUpV2Document: DocumentNode<AdminSignUpV2Query, AdminSignUpV2QueryVariables>;
1932
- export declare const ProjectSignUpV2Document: DocumentNode<ProjectSignUpV2Mutation, ProjectSignUpV2MutationVariables>;
1933
1699
  export declare const MySignUpV3Document: DocumentNode<MySignUpV3Query, MySignUpV3QueryVariables>;
1934
1700
  export declare const AdminSignUpV3Document: DocumentNode<AdminSignUpV3Query, AdminSignUpV3QueryVariables>;
1935
1701
  export declare const ProjectSignUpV3Document: DocumentNode<ProjectSignUpV3Mutation, ProjectSignUpV3MutationVariables>;
1936
1702
  export declare const SimpleUrlShortenerDocument: DocumentNode<SimpleUrlShortenerQuery, SimpleUrlShortenerQueryVariables>;
1937
- export declare const StatusDocument: DocumentNode<StatusQuery, StatusQueryVariables>;
1938
1703
  export declare const TokenInfoDocument: DocumentNode<TokenInfoQuery, TokenInfoQueryVariables>;
1939
- export declare const TokenRefundsNftDocument: DocumentNode<TokenRefundsNftQuery, TokenRefundsNftQueryVariables>;
1940
1704
  export declare const DataDocument: DocumentNode<DataQuery, DataQueryVariables>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poolzfinance/api4",
3
- "version": "1.12.9",
3
+ "version": "1.13.1",
4
4
  "description": "Bridge between front and back",
5
5
  "type": "module",
6
6
  "source": "src/index.ts",
@@ -33,31 +33,36 @@
33
33
  "bracketSameLine": true
34
34
  },
35
35
  "devDependencies": {
36
- "@graphql-codegen/cli": "^5.0.5",
37
- "@graphql-codegen/client-preset": "^4.8.0",
36
+ "@graphql-codegen/cli": "^5.0.7",
37
+ "@graphql-codegen/client-preset": "^4.8.2",
38
38
  "@graphql-typed-document-node/core": "^3.2.0",
39
+ "@testing-library/react": "^16.3.0",
40
+ "@testing-library/react-hooks": "^8.0.1",
39
41
  "@types/crypto-js": "^4.2.2",
40
- "@types/jest": "^29.5.2",
41
- "@types/node": "^20.3.1",
42
- "@types/react": "^18.2.14",
43
- "jest": "^29.5.0",
42
+ "@types/jest": "^29.5.14",
43
+ "@types/node": "^20.19.1",
44
+ "@types/react": "^18.3.23",
45
+ "@types/react-dom": "^19.1.6",
46
+ "jest": "^29.7.0",
47
+ "jest-environment-jsdom": "^30.0.2",
44
48
  "microbundle": "^0.15.1",
45
- "rimraf": "^5.0.5",
46
- "ts-jest": "^29.1.0",
47
- "ts-node": "^10.9.1",
49
+ "react-dom": "^18.3.1",
50
+ "rimraf": "^5.0.10",
51
+ "ts-jest": "^29.4.0",
52
+ "ts-node": "^10.9.2",
48
53
  "typescript": "^5.8.3"
49
54
  },
50
55
  "dependencies": {
51
- "@apollo/client": "^3.7.16",
56
+ "@apollo/client": "^3.13.8",
52
57
  "crypto-js": "^4.2.0",
53
58
  "graphql": "^16.11.0",
54
- "react": "^18.2.0"
59
+ "react": "^18.3.1"
55
60
  },
56
61
  "scripts": {
57
62
  "prebuild": "pnpm clean",
58
63
  "build": "pnpm prebuild && microbundle --jsx React.createElement",
59
64
  "clean": "rm -rf dist",
60
65
  "compile": "rimraf src/types/graphql && graphql-codegen",
61
- "test": "jest"
66
+ "test": "jest --coverage"
62
67
  }
63
68
  }
@@ -1,7 +0,0 @@
1
- export declare const useAdminCleanCache: () => import("@apollo/client").MutationTuple<import("../types/graphql/graphql").AdminCleanCacheMutation, import("../types/graphql/graphql").Exact<{
2
- [key: string]: never;
3
- }>, {
4
- headers: {
5
- Authorization: string | null;
6
- };
7
- }, import("@apollo/client").ApolloCache<any>>;
@@ -1,6 +0,0 @@
1
- export declare const useLazyAdminListOfCollateral: () => import("@apollo/client").LazyQueryResultTuple<import("../types/graphql/graphql").AdminListOfCollateralQuery, import("../types/graphql/graphql").Exact<{
2
- chainId: import("../types/graphql/graphql").Scalars["Int"]["input"];
3
- collateralAddress: import("../types/graphql/graphql").Scalars["String"]["input"];
4
- limit: import("../types/graphql/graphql").Scalars["Int"]["input"];
5
- page: import("../types/graphql/graphql").Scalars["Int"]["input"];
6
- }>>;
@@ -1,31 +0,0 @@
1
- export declare const useGetAutoSignUp: (note: string) => import("@apollo/client").QueryResult<import("../types/graphql/graphql").AdminAutoSignUpQuery, {
2
- note: string;
3
- }>;
4
- export declare const useGetAutoSignUpAll: () => import("@apollo/client").QueryResult<import("../types/graphql/graphql").AdminAutoSignUpAllQuery, import("../types/graphql/graphql").Exact<{
5
- [key: string]: never;
6
- }>>;
7
- export declare const useAddAutoSignUp: (address: string, poolzAmount: number, note: string) => import("@apollo/client").MutationTuple<import("../types/graphql/graphql").AddAutoSignUpMutation, {
8
- address: string;
9
- poolzAmount: number;
10
- note: string;
11
- }, {
12
- headers: {
13
- Authorization: string | null;
14
- };
15
- }, import("@apollo/client").ApolloCache<any>>;
16
- export declare const useUpdateAutoSignUp: (address: string, poolzAmount: number, note: string) => import("@apollo/client").MutationTuple<import("../types/graphql/graphql").UpdateAutoSignUpMutation, {
17
- address: string;
18
- poolzAmount: number;
19
- note: string;
20
- }, {
21
- headers: {
22
- Authorization: string | null;
23
- };
24
- }, import("@apollo/client").ApolloCache<any>>;
25
- export declare const useDeleteAutoSignUp: (address: string) => import("@apollo/client").MutationTuple<import("../types/graphql/graphql").DeleteAutoSignUpMutation, {
26
- address: string;
27
- }, {
28
- headers: {
29
- Authorization: string | null;
30
- };
31
- }, import("@apollo/client").ApolloCache<any>>;
File without changes
@@ -1,6 +0,0 @@
1
- export declare const useInvestedERC20: (investedErc20Id: number) => import("@apollo/client").QueryResult<import("../types/graphql/graphql").InvestedErc20Query, {
2
- investedErc20Id: number;
3
- }>;
4
- export declare const useLazyInvestedERC20: () => import("@apollo/client").LazyQueryResultTuple<import("../types/graphql/graphql").InvestedErc20Query, import("../types/graphql/graphql").Exact<{
5
- investedErc20Id: import("../types/graphql/graphql").Scalars["Int"]["input"];
6
- }>>;
@@ -1,6 +0,0 @@
1
- export declare const useMyRole: () => import("@apollo/client").QueryResult<import("../types/graphql/graphql").MyRoleQuery, import("../types/graphql/graphql").Exact<{
2
- [key: string]: never;
3
- }>>;
4
- export declare const useLazyMyRole: () => import("@apollo/client").LazyQueryResultTuple<import("../types/graphql/graphql").MyRoleQuery, import("../types/graphql/graphql").Exact<{
5
- [key: string]: never;
6
- }>>;
@@ -1,3 +0,0 @@
1
- export declare const useMySignUpCheck: (poolIDs: number[]) => import("@apollo/client").QueryResult<import("../types/graphql/graphql").SignUpCheckQuery, {
2
- poolIDs: number[];
3
- }>;
@@ -1,31 +0,0 @@
1
- export declare const useGetSeasonPass: () => import("@apollo/client").QueryResult<import("../types/graphql/graphql").SeasonPassQuery, import("../types/graphql/graphql").Exact<{
2
- [key: string]: never;
3
- }>>;
4
- export declare const useCreateSeasonPass: () => import("@apollo/client").MutationTuple<import("../types/graphql/graphql").CreateSeasonPassMutation, import("../types/graphql/graphql").Exact<{
5
- Owner: import("../types/graphql/graphql").Scalars["String"]["input"];
6
- Amount: import("../types/graphql/graphql").Scalars["Float"]["input"];
7
- ValidUntil: import("../types/graphql/graphql").Scalars["Int"]["input"];
8
- Note: import("../types/graphql/graphql").Scalars["String"]["input"];
9
- }>, {
10
- headers: {
11
- Authorization: string | null | undefined;
12
- };
13
- }, import("@apollo/client").ApolloCache<any>>;
14
- export declare const useUpdateSeasonPass: () => import("@apollo/client").MutationTuple<import("../types/graphql/graphql").UpdateSeasonPassMutation, import("../types/graphql/graphql").Exact<{
15
- Owner: import("../types/graphql/graphql").Scalars["String"]["input"];
16
- Amount: import("../types/graphql/graphql").Scalars["Float"]["input"];
17
- ValidUntil: import("../types/graphql/graphql").Scalars["Int"]["input"];
18
- Note: import("../types/graphql/graphql").Scalars["String"]["input"];
19
- }>, {
20
- headers: {
21
- Authorization: string | null | undefined;
22
- };
23
- }, import("@apollo/client").ApolloCache<any>>;
24
- export declare const useDeleteSeasonPass: () => import("@apollo/client").MutationTuple<import("../types/graphql/graphql").DeleteSeasonPassMutation, import("../types/graphql/graphql").Exact<{
25
- owner: import("../types/graphql/graphql").Scalars["String"]["input"];
26
- note: import("../types/graphql/graphql").Scalars["String"]["input"];
27
- }>, {
28
- headers: {
29
- Authorization: string | null | undefined;
30
- };
31
- }, import("@apollo/client").ApolloCache<any>>;