@poolzfinance/api4 1.15.7 → 1.15.8

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.
@@ -22,6 +22,7 @@ type Documents = {
22
22
  "\n query BoostProxyData($campaignCodes: [String!]!) {\n boostProxy(campaignCodes: $campaignCodes) {\n Actions\n Participants\n TotalUsers\n DataKey\n CampaignName\n TotalEntries\n CampaignCode\n }\n}": typeof types.BoostProxyDataDocument;
23
23
  "\n query BoostProxyUsers($campaignCodes: [String!]!) {\n boostProxy(campaignCodes: $campaignCodes) {\n Actions\n Participants\n TotalUsers\n CampaignName\n TotalEntries\n CampaignCode\n DataKey\n Users {\n Address\n Entries\n }\n }\n}": typeof types.BoostProxyUsersDocument;
24
24
  "\n query DaoSenderHistory($page: Int!) {\n daoSenderHistory(page: $page) {\n items {\n ChainId\n TxHash\n Token\n UserCount\n TotalAmount\n }\n currentPage\n totalPages\n }\n }\n": typeof types.DaoSenderHistoryDocument;
25
+ "\n query DaoSenderHistoryV2($limit: Int!, $nextToken: String) {\n daoSenderHistoryV2(limit: $limit, nextToken: $nextToken) {\n nextToken\n items {\n ChainId\n TxHash\n Token\n UserCount\n TotalAmount\n TokenObject {\n Address\n Decimals\n Name\n Symbol\n }\n }\n }\n }\n": typeof types.DaoSenderHistoryV2Document;
25
26
  "\n mutation AdminCreateAsset($Request: CreateAssetRequest!) {\n adminCreateAsset(\n request: $Request\n ) {\n StatusCode\n }\n}": typeof types.AdminCreateAssetDocument;
26
27
  "\n query MyAssets($limit: Int!, $page: Int!) {\n myAssets(limit: $limit, page: $page) {\n TotalAssets\n Assets {\n UserAddress\n RefundFinishTime\n WithdrawalDetail {\n ChainId\n PoolId\n Builders {\n ProviderAddress\n WeiAmount\n StartTime\n FinishTime\n }\n }\n RefundDetail {\n ChainId\n PoolId\n Builders {\n ProviderAddress\n WeiAmount\n StartTime\n FinishTime\n }\n }\n }\n }\n}": typeof types.MyAssetsDocument;
27
28
  "\n query RetrieveSignature($request: RetrieveSignatureRequest!) {\n retrieveSignature(request: $request) {\n ValidUntil\n Receiver\n ChainId\n PoolId\n Signature\n IsRefund\n Builders {\n ProviderAddress\n WeiAmount\n StartTime\n FinishTime\n }\n }\n}": typeof types.RetrieveSignatureDocument;
@@ -109,6 +110,10 @@ export declare function gql(source: "\n query BoostProxyUsers($campaignCodes: [
109
110
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
110
111
  */
111
112
  export declare function gql(source: "\n query DaoSenderHistory($page: Int!) {\n daoSenderHistory(page: $page) {\n items {\n ChainId\n TxHash\n Token\n UserCount\n TotalAmount\n }\n currentPage\n totalPages\n }\n }\n"): (typeof documents)["\n query DaoSenderHistory($page: Int!) {\n daoSenderHistory(page: $page) {\n items {\n ChainId\n TxHash\n Token\n UserCount\n TotalAmount\n }\n currentPage\n totalPages\n }\n }\n"];
113
+ /**
114
+ * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
115
+ */
116
+ export declare function gql(source: "\n query DaoSenderHistoryV2($limit: Int!, $nextToken: String) {\n daoSenderHistoryV2(limit: $limit, nextToken: $nextToken) {\n nextToken\n items {\n ChainId\n TxHash\n Token\n UserCount\n TotalAmount\n TokenObject {\n Address\n Decimals\n Name\n Symbol\n }\n }\n }\n }\n"): (typeof documents)["\n query DaoSenderHistoryV2($limit: Int!, $nextToken: String) {\n daoSenderHistoryV2(limit: $limit, nextToken: $nextToken) {\n nextToken\n items {\n ChainId\n TxHash\n Token\n UserCount\n TotalAmount\n TokenObject {\n Address\n Decimals\n Name\n Symbol\n }\n }\n }\n }\n"];
112
117
  /**
113
118
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
114
119
  */
@@ -187,6 +187,27 @@ export type DaoSenderHistoryPage = {
187
187
  items?: Maybe<Array<DaoSenderHistory>>;
188
188
  totalPages: Scalars['Int']['output'];
189
189
  };
190
+ export type DaoSenderHistoryV2 = {
191
+ __typename?: 'DaoSenderHistoryV2';
192
+ items: Array<DaoSenderHistoryV2_Item>;
193
+ nextToken?: Maybe<Scalars['String']['output']>;
194
+ };
195
+ export type DaoSenderHistoryV2_Item = {
196
+ __typename?: 'DaoSenderHistoryV2_Item';
197
+ ChainId: Scalars['Int']['output'];
198
+ Token: Scalars['String']['output'];
199
+ TokenObject: DaoSenderHistoryV2_Token;
200
+ TotalAmount: Scalars['Float']['output'];
201
+ TxHash: Scalars['String']['output'];
202
+ UserCount: Scalars['Int']['output'];
203
+ };
204
+ export type DaoSenderHistoryV2_Token = {
205
+ __typename?: 'DaoSenderHistoryV2_Token';
206
+ Address: Scalars['String']['output'];
207
+ Decimals: Scalars['Int']['output'];
208
+ Name: Scalars['String']['output'];
209
+ Symbol: Scalars['String']['output'];
210
+ };
190
211
  export type DeleteAssetRequest = {
191
212
  Message: DeleteAssetRequest_Message;
192
213
  Signature: Scalars['String']['input'];
@@ -445,8 +466,12 @@ export type Query = {
445
466
  adminUsersTotalSpents: Array<AdminUsersTotalSpents>;
446
467
  approvedContractsV2: Array<ApprovedContractsV2>;
447
468
  boostProxy: Array<BoostProxy>;
448
- /** Will be updated in new endoint. */
469
+ /**
470
+ * Will be updated in new endoint.
471
+ * @deprecated Use new 'daoSenderHistoryV2' endpoint.
472
+ */
449
473
  daoSenderHistory: DaoSenderHistoryPage;
474
+ daoSenderHistoryV2: DaoSenderHistoryV2;
450
475
  generateMyInvestSignature: GenerateMyInvestSignature;
451
476
  getTokenBalances?: Maybe<TokenBalances>;
452
477
  leaderBoard: Array<LeaderBoard>;
@@ -516,6 +541,11 @@ export type QueryDaoSenderHistoryArgs = {
516
541
  page: Scalars['Int']['input'];
517
542
  };
518
543
  /** --- your entry point --- */
544
+ export type QueryDaoSenderHistoryV2Args = {
545
+ limit?: InputMaybe<Scalars['Int']['input']>;
546
+ nextToken?: InputMaybe<Scalars['String']['input']>;
547
+ };
548
+ /** --- your entry point --- */
519
549
  export type QueryGenerateMyInvestSignatureArgs = {
520
550
  projectId: Scalars['String']['input'];
521
551
  weiAmount: Scalars['String']['input'];
@@ -847,6 +877,32 @@ export type DaoSenderHistoryQuery = {
847
877
  }> | null;
848
878
  };
849
879
  };
880
+ export type DaoSenderHistoryV2QueryVariables = Exact<{
881
+ limit: Scalars['Int']['input'];
882
+ nextToken?: InputMaybe<Scalars['String']['input']>;
883
+ }>;
884
+ export type DaoSenderHistoryV2Query = {
885
+ __typename?: 'Query';
886
+ daoSenderHistoryV2: {
887
+ __typename?: 'DaoSenderHistoryV2';
888
+ nextToken?: string | null;
889
+ items: Array<{
890
+ __typename?: 'DaoSenderHistoryV2_Item';
891
+ ChainId: number;
892
+ TxHash: string;
893
+ Token: string;
894
+ UserCount: number;
895
+ TotalAmount: number;
896
+ TokenObject: {
897
+ __typename?: 'DaoSenderHistoryV2_Token';
898
+ Address: string;
899
+ Decimals: number;
900
+ Name: string;
901
+ Symbol: string;
902
+ };
903
+ }>;
904
+ };
905
+ };
850
906
  export type AdminCreateAssetMutationVariables = Exact<{
851
907
  Request: CreateAssetRequest;
852
908
  }>;
@@ -1298,6 +1354,7 @@ export declare const GetApprovedContractsV2Document: DocumentNode<GetApprovedCon
1298
1354
  export declare const BoostProxyDataDocument: DocumentNode<BoostProxyDataQuery, BoostProxyDataQueryVariables>;
1299
1355
  export declare const BoostProxyUsersDocument: DocumentNode<BoostProxyUsersQuery, BoostProxyUsersQueryVariables>;
1300
1356
  export declare const DaoSenderHistoryDocument: DocumentNode<DaoSenderHistoryQuery, DaoSenderHistoryQueryVariables>;
1357
+ export declare const DaoSenderHistoryV2Document: DocumentNode<DaoSenderHistoryV2Query, DaoSenderHistoryV2QueryVariables>;
1301
1358
  export declare const AdminCreateAssetDocument: DocumentNode<AdminCreateAssetMutation, AdminCreateAssetMutationVariables>;
1302
1359
  export declare const MyAssetsDocument: DocumentNode<MyAssetsQuery, MyAssetsQueryVariables>;
1303
1360
  export declare const RetrieveSignatureDocument: DocumentNode<RetrieveSignatureQuery, RetrieveSignatureQueryVariables>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poolzfinance/api4",
3
- "version": "1.15.7",
3
+ "version": "1.15.8",
4
4
  "description": "Bridge between front and back",
5
5
  "type": "module",
6
6
  "source": "src/index.ts",