@poolzfinance/api4 1.11.48 → 1.11.49

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.
@@ -51,6 +51,9 @@ declare const documents: {
51
51
  "\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": DocumentNode<types.DaoSenderHistoryQuery, types.Exact<{
52
52
  page: number;
53
53
  }>>;
54
+ "\n mutation AdminCreateAsset($Request: CreateAssetRequest!) {\n adminCreateAsset(\n request: $Request\n ) {\n StatusCode\n }\n}": DocumentNode<types.AdminCreateAssetMutation, types.Exact<{
55
+ Request: types.CreateAssetRequest;
56
+ }>>;
54
57
  "\n query MyQuery {\n time\n}": DocumentNode<types.MyQueryQuery, types.Exact<{
55
58
  [key: string]: never;
56
59
  }>>;
@@ -244,6 +247,10 @@ export declare function gql(source: "\n query BoostProxyUsers($campaignCodes: [
244
247
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
245
248
  */
246
249
  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"];
250
+ /**
251
+ * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
252
+ */
253
+ export declare function gql(source: "\n mutation AdminCreateAsset($Request: CreateAssetRequest!) {\n adminCreateAsset(\n request: $Request\n ) {\n StatusCode\n }\n}"): (typeof documents)["\n mutation AdminCreateAsset($Request: CreateAssetRequest!) {\n adminCreateAsset(\n request: $Request\n ) {\n StatusCode\n }\n}"];
247
254
  /**
248
255
  * The gql function is used to parse GraphQL queries into a document that can be used by GraphQL clients.
249
256
  */
@@ -182,25 +182,29 @@ export type CreateAssetRequest = {
182
182
  Message: CreateAssetRequest_Message;
183
183
  Signature: Scalars['String']['input'];
184
184
  };
185
- export type CreateAssetRequest_Asset = {
186
- RefundDetails?: InputMaybe<CreateAssetRequest_TransactionDetail>;
187
- UserAddress: Scalars['String']['input'];
188
- WithdrawalDetails: CreateAssetRequest_TransactionDetail;
189
- };
190
- export type CreateAssetRequest_Builder = {
191
- FinishTime?: InputMaybe<Scalars['Int']['input']>;
192
- ProviderAddress: Scalars['String']['input'];
193
- StartTime?: InputMaybe<Scalars['Int']['input']>;
194
- WeiAmount: Scalars['String']['input'];
195
- };
196
185
  export type CreateAssetRequest_Message = {
197
- Assets: Array<CreateAssetRequest_Asset>;
198
- RefundFinishTime: Scalars['String']['input'];
186
+ ChainId: Scalars['Int']['input'];
187
+ PoolId: Scalars['Int']['input'];
188
+ Refund?: InputMaybe<CreateAssetRequest_Refund>;
189
+ Schedules: Array<CreateAssetRequest_Schedule>;
190
+ Users: Array<CreateAssetRequest_User>;
199
191
  };
200
- export type CreateAssetRequest_TransactionDetail = {
201
- Builders: Array<CreateAssetRequest_Builder>;
192
+ export type CreateAssetRequest_Refund = {
202
193
  ChainId: Scalars['Int']['input'];
194
+ DealProvider: Scalars['String']['input'];
195
+ FinishTime: Scalars['Int']['input'];
203
196
  PoolId: Scalars['Int']['input'];
197
+ Ratio: Scalars['Float']['input'];
198
+ };
199
+ export type CreateAssetRequest_Schedule = {
200
+ FinishTime?: InputMaybe<Scalars['Int']['input']>;
201
+ ProviderAddress: Scalars['String']['input'];
202
+ Ratio: Scalars['Float']['input'];
203
+ StartTime: Scalars['Int']['input'];
204
+ };
205
+ export type CreateAssetRequest_User = {
206
+ UserAddress: Scalars['String']['input'];
207
+ WeiAmount: Scalars['String']['input'];
204
208
  };
205
209
  export type CreateAssetResponse = {
206
210
  __typename?: 'CreateAssetResponse';
@@ -748,7 +752,7 @@ export type ReadAssetResponse_Builder = {
748
752
  export type ReadAssetResponse_Dispenser = {
749
753
  __typename?: 'ReadAssetResponse_Dispenser';
750
754
  Builders: Array<ReadAssetResponse_Builder>;
751
- RefundFinishTime: Scalars['String']['output'];
755
+ RefundFinishTime: Scalars['Int']['output'];
752
756
  UserAddress: Scalars['String']['output'];
753
757
  };
754
758
  export type ReadAssetsRequest = {
@@ -1101,6 +1105,16 @@ export type DaoSenderHistoryQuery = {
1101
1105
  }> | null;
1102
1106
  };
1103
1107
  };
1108
+ export type AdminCreateAssetMutationVariables = Exact<{
1109
+ Request: CreateAssetRequest;
1110
+ }>;
1111
+ export type AdminCreateAssetMutation = {
1112
+ __typename?: 'Mutation';
1113
+ adminCreateAsset: {
1114
+ __typename?: 'CreateAssetResponse';
1115
+ StatusCode: number;
1116
+ };
1117
+ };
1104
1118
  export type MyQueryQueryVariables = Exact<{
1105
1119
  [key: string]: never;
1106
1120
  }>;
@@ -1673,6 +1687,9 @@ export declare const BoostProxyUsersDocument: DocumentNode<BoostProxyUsersQuery,
1673
1687
  export declare const DaoSenderHistoryDocument: DocumentNode<DaoSenderHistoryQuery, Exact<{
1674
1688
  page: Scalars['Int']['input'];
1675
1689
  }>>;
1690
+ export declare const AdminCreateAssetDocument: DocumentNode<AdminCreateAssetMutation, Exact<{
1691
+ Request: CreateAssetRequest;
1692
+ }>>;
1676
1693
  export declare const MyQueryDocument: DocumentNode<MyQueryQuery, Exact<{
1677
1694
  [key: string]: never;
1678
1695
  }>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@poolzfinance/api4",
3
- "version": "1.11.48",
3
+ "version": "1.11.49",
4
4
  "description": "Bridge between front and back",
5
5
  "type": "module",
6
6
  "source": "src/index.ts",