From f7e829eb455f31e44269ef55b037aab8bd1af169 Mon Sep 17 00:00:00 2001 From: Jerko J <83344666+JJ-Cro@users.noreply.github.com> Date: Tue, 15 Oct 2024 12:36:33 +0200 Subject: [PATCH] chore(): fixed types --- src/rest-client-v5.ts | 28 ++++++++++++---------------- src/types/request/index.ts | 1 + src/types/response/index.ts | 1 + 3 files changed, 14 insertions(+), 16 deletions(-) diff --git a/src/rest-client-v5.ts b/src/rest-client-v5.ts index 487e3123..d0ab3fa3 100644 --- a/src/rest-client-v5.ts +++ b/src/rest-client-v5.ts @@ -2,6 +2,7 @@ import { APIResponseV3, APIResponseV3WithTime, + AccountBorrowCollateralLimitV5, AccountCoinBalanceV5, AccountInfoV5, AccountMarginModeV5, @@ -22,6 +23,7 @@ import { BatchCreateOrderResultV5, BatchOrderParamsV5, BatchOrdersResponseV5, + BorrowCryptoLoanParamsV5, BorrowHistoryRecordV5, BrokerIssuedVoucherV5, BrokerVoucherSpecV5, @@ -36,6 +38,7 @@ import { CoinGreeksV5, CoinInfoV5, CollateralInfoV5, + CompletedLoanOrderV5, ConfirmNewRiskLimitParamsV5, ConvertCoinSpecV5, ConvertCoinsParamsV5, @@ -72,6 +75,7 @@ import { GetClassicTransactionLogsParamsV5, GetClosedPnLParamsV5, GetCoinExchangeRecordParamsV5, + GetCompletedLoanOrderHistoryParamsV5, GetConvertHistoryParamsV5, GetDeliveryPriceParamsV5, GetDeliveryRecordParamsV5, @@ -87,6 +91,7 @@ import { GetInternalDepositRecordParamsV5, GetInternalTransferParamsV5, GetKlineParamsV5, + GetLoanLTVAdjustmentHistoryParamsV5, GetLongShortRatioParamsV5, GetMarkPriceKlineParamsV5, GetMovePositionHistoryParamsV5, @@ -101,6 +106,7 @@ import { GetPreUpgradeUSDCSessionParamsV5, GetPremiumIndexPriceKlineParamsV5, GetPublicTradingHistoryParamsV5, + GetRepaymentHistoryParamsV5, GetRiskLimitParamsV5, GetSettlementRecordParamsV5, GetSpotLeveragedTokenOrderHistoryParamsV5, @@ -109,6 +115,7 @@ import { GetTickersParamsV5, GetTransactionLogParamsV5, GetUniversalTransferRecordsParamsV5, + GetUnpaidLoanOrdersParamsV5, GetVIPMarginDataParamsV5, GetWalletBalanceParamsV5, GetWithdrawalRecordsParamsV5, @@ -120,6 +127,7 @@ import { IssueVoucherParamsV5, LeverageTokenInfoV5, LeveragedTokenMarketResultV5, + LoanLTVAdjustmentHistoryV5, LongShortRatioV5, MMPModifyParamsV5, MMPStateV5, @@ -146,6 +154,7 @@ import { RedeemSpotLeveragedTokenResultV5, RepayLiabilityParamsV5, RepayLiabilityResultV5, + RepaymentHistoryV5, RequestConvertQuoteParamsV5, RiskLimitV5, SetAutoAddMarginParamsV5, @@ -171,30 +180,17 @@ import { UnifiedAccountUpgradeResultV5, UniversalTransferParamsV5, UniversalTransferRecordV5, + UnpaidLoanOrderV5, UpdateApiKeyParamsV5, UpdateApiKeyResultV5, VIPMarginDataV5, VaspEntityV5, + VipBorrowableCoinListV5, + VipCollateralCoinListV5, WalletBalanceV5, WithdrawParamsV5, WithdrawalRecordV5, } from './types'; -import { - BorrowCryptoLoanParamsV5, - GetCompletedLoanOrderHistoryParamsV5, - GetLoanLTVAdjustmentHistoryParamsV5, - GetRepaymentHistoryParamsV5, - GetUnpaidLoanOrdersParamsV5, -} from './types/request/v5-crypto-loan'; -import { - AccountBorrowCollateralLimitV5, - CompletedLoanOrderV5, - LoanLTVAdjustmentHistoryV5, - RepaymentHistoryV5, - UnpaidLoanOrderV5, - VipBorrowableCoinListV5, - VipCollateralCoinListV5, -} from './types/response/v5-crypto-loan'; import { REST_CLIENT_TYPE_ENUM } from './util'; import BaseRestClient from './util/BaseRestClient'; diff --git a/src/types/request/index.ts b/src/types/request/index.ts index 4c8cfdc3..40bd9841 100644 --- a/src/types/request/index.ts +++ b/src/types/request/index.ts @@ -17,3 +17,4 @@ export * from './v5-trade'; export * from './v5-user'; export * from './v5-spot-leverage-token'; export * from './v5-broker'; +export * from './v5-crypto-loan'; diff --git a/src/types/response/index.ts b/src/types/response/index.ts index 7d289b77..ca2cf2ab 100644 --- a/src/types/response/index.ts +++ b/src/types/response/index.ts @@ -13,3 +13,4 @@ export * from './v5-user'; export * from './v5-spot-leverage-token'; export * from './v5-broker'; export * from './v5-preupgrade'; +export * from './v5-crypto-loan';