From 0b9d81c649626cbc5a7aa94917f3693c81349161 Mon Sep 17 00:00:00 2001 From: arashalaei Date: Fri, 13 Dec 2024 16:23:35 +0330 Subject: [PATCH] fix exports --- dist/cjs/index.d.ts | 3 + dist/cjs/index.d.ts.map | 1 + dist/cjs/index.js | 7 + dist/cjs/index.js.map | 1 + dist/cjs/service/src/apis/AccountsApi.d.ts | 54 ++ .../cjs/service/src/apis/AccountsApi.d.ts.map | 1 + dist/cjs/service/src/apis/AccountsApi.js | 52 ++ dist/cjs/service/src/apis/AccountsApi.js.map | 1 + dist/cjs/service/src/apis/AddressesApi.d.ts | 54 ++ .../service/src/apis/AddressesApi.d.ts.map | 1 + dist/cjs/service/src/apis/AddressesApi.js | 52 ++ dist/cjs/service/src/apis/AddressesApi.js.map | 1 + dist/cjs/service/src/apis/BorrowsApi.d.ts | 60 +++ dist/cjs/service/src/apis/BorrowsApi.d.ts.map | 1 + dist/cjs/service/src/apis/BorrowsApi.js | 61 +++ dist/cjs/service/src/apis/BorrowsApi.js.map | 1 + dist/cjs/service/src/apis/CollectorApi.d.ts | 50 ++ .../service/src/apis/CollectorApi.d.ts.map | 1 + dist/cjs/service/src/apis/CollectorApi.js | 49 ++ dist/cjs/service/src/apis/CollectorApi.js.map | 1 + dist/cjs/service/src/apis/DepositsApi.d.ts | 60 +++ .../cjs/service/src/apis/DepositsApi.d.ts.map | 1 + dist/cjs/service/src/apis/DepositsApi.js | 61 +++ dist/cjs/service/src/apis/DepositsApi.js.map | 1 + dist/cjs/service/src/apis/IlksApi.d.ts | 77 +++ dist/cjs/service/src/apis/IlksApi.d.ts.map | 1 + dist/cjs/service/src/apis/IlksApi.js | 75 +++ dist/cjs/service/src/apis/IlksApi.js.map | 1 + dist/cjs/service/src/apis/LendingPoolApi.d.ts | 255 +++++++++ .../service/src/apis/LendingPoolApi.d.ts.map | 1 + dist/cjs/service/src/apis/LendingPoolApi.js | 262 ++++++++++ .../service/src/apis/LendingPoolApi.js.map | 1 + dist/cjs/service/src/apis/LogsApi.d.ts | 54 ++ dist/cjs/service/src/apis/LogsApi.d.ts.map | 1 + dist/cjs/service/src/apis/LogsApi.js | 52 ++ dist/cjs/service/src/apis/LogsApi.js.map | 1 + dist/cjs/service/src/apis/OrdersApi.d.ts | 119 +++++ dist/cjs/service/src/apis/OrdersApi.d.ts.map | 1 + dist/cjs/service/src/apis/OrdersApi.js | 130 +++++ dist/cjs/service/src/apis/OrdersApi.js.map | 1 + dist/cjs/service/src/apis/PermitApi.d.ts | 56 ++ dist/cjs/service/src/apis/PermitApi.d.ts.map | 1 + dist/cjs/service/src/apis/PermitApi.js | 61 +++ dist/cjs/service/src/apis/PermitApi.js.map | 1 + dist/cjs/service/src/apis/PointsApi.d.ts | 50 ++ dist/cjs/service/src/apis/PointsApi.d.ts.map | 1 + dist/cjs/service/src/apis/PointsApi.js | 49 ++ dist/cjs/service/src/apis/PointsApi.js.map | 1 + dist/cjs/service/src/apis/PricesApi.d.ts | 54 ++ dist/cjs/service/src/apis/PricesApi.d.ts.map | 1 + dist/cjs/service/src/apis/PricesApi.js | 52 ++ dist/cjs/service/src/apis/PricesApi.js.map | 1 + .../service/src/apis/StableCoinSystemApi.d.ts | 481 +++++++++++++++++ .../src/apis/StableCoinSystemApi.d.ts.map | 1 + .../service/src/apis/StableCoinSystemApi.js | 490 ++++++++++++++++++ .../src/apis/StableCoinSystemApi.js.map | 1 + dist/cjs/service/src/apis/StakingApi.d.ts | 166 ++++++ dist/cjs/service/src/apis/StakingApi.d.ts.map | 1 + dist/cjs/service/src/apis/StakingApi.js | 171 ++++++ dist/cjs/service/src/apis/StakingApi.js.map | 1 + dist/cjs/service/src/apis/SwapApi.d.ts | 54 ++ dist/cjs/service/src/apis/SwapApi.d.ts.map | 1 + dist/cjs/service/src/apis/SwapApi.js | 54 ++ dist/cjs/service/src/apis/SwapApi.js.map | 1 + dist/cjs/service/src/apis/VaultsApi.d.ts | 111 ++++ dist/cjs/service/src/apis/VaultsApi.d.ts.map | 1 + dist/cjs/service/src/apis/VaultsApi.js | 110 ++++ dist/cjs/service/src/apis/VaultsApi.js.map | 1 + dist/cjs/service/src/apis/WebsocketApi.d.ts | 49 ++ .../service/src/apis/WebsocketApi.d.ts.map | 1 + dist/cjs/service/src/apis/WebsocketApi.js | 47 ++ dist/cjs/service/src/apis/WebsocketApi.js.map | 1 + dist/cjs/service/src/apis/index.d.ts | 18 + dist/cjs/service/src/apis/index.d.ts.map | 1 + dist/cjs/service/src/apis/index.js | 24 + dist/cjs/service/src/apis/index.js.map | 1 + dist/cjs/service/src/index.d.ts | 4 + dist/cjs/service/src/index.d.ts.map | 1 + dist/cjs/service/src/index.js | 9 + dist/cjs/service/src/index.js.map | 1 + dist/cjs/service/src/models/Account.d.ts | 91 ++++ dist/cjs/service/src/models/Account.d.ts.map | 1 + dist/cjs/service/src/models/Account.js | 87 ++++ dist/cjs/service/src/models/Account.js.map | 1 + .../src/models/AccountLendingpoolSummary.d.ts | 101 ++++ .../models/AccountLendingpoolSummary.d.ts.map | 1 + .../src/models/AccountLendingpoolSummary.js | 91 ++++ .../models/AccountLendingpoolSummary.js.map | 1 + .../AccountStablecoinSystemSummary.d.ts | 49 ++ .../AccountStablecoinSystemSummary.d.ts.map | 1 + .../models/AccountStablecoinSystemSummary.js | 59 +++ .../AccountStablecoinSystemSummary.js.map | 1 + .../src/models/AccountStakingSummary.d.ts | 49 ++ .../src/models/AccountStakingSummary.d.ts.map | 1 + .../src/models/AccountStakingSummary.js | 59 +++ .../src/models/AccountStakingSummary.js.map | 1 + dist/cjs/service/src/models/Address.d.ts | 39 ++ dist/cjs/service/src/models/Address.d.ts.map | 1 + dist/cjs/service/src/models/Address.js | 55 ++ dist/cjs/service/src/models/Address.js.map | 1 + .../service/src/models/AddressResponse.d.ts | 34 ++ .../src/models/AddressResponse.d.ts.map | 1 + .../cjs/service/src/models/AddressResponse.js | 52 ++ .../service/src/models/AddressResponse.js.map | 1 + dist/cjs/service/src/models/Balance.d.ts | 42 ++ dist/cjs/service/src/models/Balance.d.ts.map | 1 + dist/cjs/service/src/models/Balance.js | 56 ++ dist/cjs/service/src/models/Balance.js.map | 1 + dist/cjs/service/src/models/BasicEvent.d.ts | 61 +++ .../service/src/models/BasicEvent.d.ts.map | 1 + dist/cjs/service/src/models/BasicEvent.js | 71 +++ dist/cjs/service/src/models/BasicEvent.js.map | 1 + .../cjs/service/src/models/ChainActivity.d.ts | 46 ++ .../service/src/models/ChainActivity.d.ts.map | 1 + dist/cjs/service/src/models/ChainActivity.js | 60 +++ .../service/src/models/ChainActivity.js.map | 1 + .../service/src/models/ChainActivityStep.d.ts | 49 ++ .../src/models/ChainActivityStep.d.ts.map | 1 + .../service/src/models/ChainActivityStep.js | 65 +++ .../src/models/ChainActivityStep.js.map | 1 + .../src/models/ChainActivityStepData.d.ts | 25 + .../src/models/ChainActivityStepData.d.ts.map | 1 + .../src/models/ChainActivityStepData.js | 59 +++ .../src/models/ChainActivityStepData.js.map | 1 + dist/cjs/service/src/models/DutchAmount.d.ts | 56 ++ .../service/src/models/DutchAmount.d.ts.map | 1 + dist/cjs/service/src/models/DutchAmount.js | 62 +++ .../cjs/service/src/models/DutchAmount.js.map | 1 + .../service/src/models/EIP712SignRequest.d.ts | 46 ++ .../src/models/EIP712SignRequest.d.ts.map | 1 + .../service/src/models/EIP712SignRequest.js | 60 +++ .../src/models/EIP712SignRequest.js.map | 1 + dist/cjs/service/src/models/ErrorMessage.d.ts | 39 ++ .../service/src/models/ErrorMessage.d.ts.map | 1 + dist/cjs/service/src/models/ErrorMessage.js | 55 ++ .../service/src/models/ErrorMessage.js.map | 1 + .../src/models/EventDetailsResponse.d.ts | 34 ++ .../src/models/EventDetailsResponse.d.ts.map | 1 + .../src/models/EventDetailsResponse.js | 52 ++ .../src/models/EventDetailsResponse.js.map | 1 + dist/cjs/service/src/models/EventDomain.d.ts | 28 + .../service/src/models/EventDomain.d.ts.map | 1 + dist/cjs/service/src/models/EventDomain.js | 54 ++ .../cjs/service/src/models/EventDomain.js.map | 1 + dist/cjs/service/src/models/EventName.d.ts | 40 ++ .../cjs/service/src/models/EventName.d.ts.map | 1 + dist/cjs/service/src/models/EventName.js | 66 +++ dist/cjs/service/src/models/EventName.js.map | 1 + dist/cjs/service/src/models/EventType.d.ts | 27 + .../cjs/service/src/models/EventType.d.ts.map | 1 + dist/cjs/service/src/models/EventType.js | 53 ++ dist/cjs/service/src/models/EventType.js.map | 1 + .../cjs/service/src/models/ExtendedEvent.d.ts | 69 +++ .../service/src/models/ExtendedEvent.d.ts.map | 1 + dist/cjs/service/src/models/ExtendedEvent.js | 75 +++ .../service/src/models/ExtendedEvent.js.map | 1 + .../src/models/FormattedReserveData.d.ts | 162 ++++++ .../src/models/FormattedReserveData.d.ts.map | 1 + .../src/models/FormattedReserveData.js | 132 +++++ .../src/models/FormattedReserveData.js.map | 1 + dist/cjs/service/src/models/Ilk.d.ts | 158 ++++++ dist/cjs/service/src/models/Ilk.d.ts.map | 1 + dist/cjs/service/src/models/Ilk.js | 124 +++++ dist/cjs/service/src/models/Ilk.js.map | 1 + dist/cjs/service/src/models/IlksResponse.d.ts | 34 ++ .../service/src/models/IlksResponse.d.ts.map | 1 + dist/cjs/service/src/models/IlksResponse.js | 52 ++ .../service/src/models/IlksResponse.js.map | 1 + .../service/src/models/LendingpoolBorrow.d.ts | 62 +++ .../src/models/LendingpoolBorrow.d.ts.map | 1 + .../service/src/models/LendingpoolBorrow.js | 68 +++ .../src/models/LendingpoolBorrow.js.map | 1 + .../models/LendingpoolBorrowTxRequest.d.ts | 45 ++ .../LendingpoolBorrowTxRequest.d.ts.map | 1 + .../src/models/LendingpoolBorrowTxRequest.js | 57 ++ .../models/LendingpoolBorrowTxRequest.js.map | 1 + .../models/LendingpoolBorrowTxResponse.d.ts | 41 ++ .../LendingpoolBorrowTxResponse.d.ts.map | 1 + .../src/models/LendingpoolBorrowTxResponse.js | 53 ++ .../models/LendingpoolBorrowTxResponse.js.map | 1 + .../src/models/LendingpoolDeposit.d.ts | 60 +++ .../src/models/LendingpoolDeposit.d.ts.map | 1 + .../service/src/models/LendingpoolDeposit.js | 68 +++ .../src/models/LendingpoolDeposit.js.map | 1 + .../models/LendingpoolDepositTxRequest.d.ts | 45 ++ .../LendingpoolDepositTxRequest.d.ts.map | 1 + .../src/models/LendingpoolDepositTxRequest.js | 57 ++ .../models/LendingpoolDepositTxRequest.js.map | 1 + .../models/LendingpoolDepositTxResponse.d.ts | 41 ++ .../LendingpoolDepositTxResponse.d.ts.map | 1 + .../models/LendingpoolDepositTxResponse.js | 53 ++ .../LendingpoolDepositTxResponse.js.map | 1 + .../src/models/LendingpoolRepayTxRequest.d.ts | 45 ++ .../models/LendingpoolRepayTxRequest.d.ts.map | 1 + .../src/models/LendingpoolRepayTxRequest.js | 57 ++ .../models/LendingpoolRepayTxRequest.js.map | 1 + .../models/LendingpoolRepayTxResponse.d.ts | 41 ++ .../LendingpoolRepayTxResponse.d.ts.map | 1 + .../src/models/LendingpoolRepayTxResponse.js | 53 ++ .../models/LendingpoolRepayTxResponse.js.map | 1 + .../service/src/models/LendingpoolStats.d.ts | 45 ++ .../src/models/LendingpoolStats.d.ts.map | 1 + .../service/src/models/LendingpoolStats.js | 59 +++ .../src/models/LendingpoolStats.js.map | 1 + .../src/models/LendingpoolTxResponse.d.ts | 33 ++ .../src/models/LendingpoolTxResponse.d.ts.map | 1 + .../src/models/LendingpoolTxResponse.js | 49 ++ .../src/models/LendingpoolTxResponse.js.map | 1 + ...dingpoolUseAssetAsCollateralTxRequest.d.ts | 45 ++ ...poolUseAssetAsCollateralTxRequest.d.ts.map | 1 + ...endingpoolUseAssetAsCollateralTxRequest.js | 59 +++ ...ngpoolUseAssetAsCollateralTxRequest.js.map | 1 + ...ingpoolUseAssetAsCollateralTxResponse.d.ts | 41 ++ ...oolUseAssetAsCollateralTxResponse.d.ts.map | 1 + ...ndingpoolUseAssetAsCollateralTxResponse.js | 53 ++ ...gpoolUseAssetAsCollateralTxResponse.js.map | 1 + .../models/LendingpoolWithdrawTxRequest.d.ts | 45 ++ .../LendingpoolWithdrawTxRequest.d.ts.map | 1 + .../models/LendingpoolWithdrawTxRequest.js | 57 ++ .../LendingpoolWithdrawTxRequest.js.map | 1 + .../models/LendingpoolWithdrawTxResponse.d.ts | 41 ++ .../LendingpoolWithdrawTxResponse.d.ts.map | 1 + .../models/LendingpoolWithdrawTxResponse.js | 53 ++ .../LendingpoolWithdrawTxResponse.js.map | 1 + dist/cjs/service/src/models/Log.d.ts | 96 ++++ dist/cjs/service/src/models/Log.d.ts.map | 1 + dist/cjs/service/src/models/Log.js | 90 ++++ dist/cjs/service/src/models/Log.js.map | 1 + .../service/src/models/MethodParameters.d.ts | 45 ++ .../src/models/MethodParameters.d.ts.map | 1 + .../service/src/models/MethodParameters.js | 59 +++ .../src/models/MethodParameters.js.map | 1 + dist/cjs/service/src/models/ModelError.d.ts | 39 ++ .../service/src/models/ModelError.d.ts.map | 1 + dist/cjs/service/src/models/ModelError.js | 55 ++ dist/cjs/service/src/models/ModelError.js.map | 1 + dist/cjs/service/src/models/Order.d.ts | 102 ++++ dist/cjs/service/src/models/Order.d.ts.map | 1 + dist/cjs/service/src/models/Order.js | 101 ++++ dist/cjs/service/src/models/Order.js.map | 1 + dist/cjs/service/src/models/OrderInfo.d.ts | 113 ++++ .../cjs/service/src/models/OrderInfo.d.ts.map | 1 + dist/cjs/service/src/models/OrderInfo.js | 105 ++++ dist/cjs/service/src/models/OrderInfo.js.map | 1 + .../cjs/service/src/models/OrderResponse.d.ts | 34 ++ .../service/src/models/OrderResponse.d.ts.map | 1 + dist/cjs/service/src/models/OrderResponse.js | 52 ++ .../service/src/models/OrderResponse.js.map | 1 + dist/cjs/service/src/models/OrderType.d.ts | 26 + .../cjs/service/src/models/OrderType.d.ts.map | 1 + dist/cjs/service/src/models/OrderType.js | 52 ++ dist/cjs/service/src/models/OrderType.js.map | 1 + dist/cjs/service/src/models/PermitSingle.d.ts | 40 ++ .../service/src/models/PermitSingle.d.ts.map | 1 + dist/cjs/service/src/models/PermitSingle.js | 56 ++ .../service/src/models/PermitSingle.js.map | 1 + .../src/models/PersonalSignRequest.d.ts | 33 ++ .../src/models/PersonalSignRequest.d.ts.map | 1 + .../service/src/models/PersonalSignRequest.js | 51 ++ .../src/models/PersonalSignRequest.js.map | 1 + dist/cjs/service/src/models/PreparedTx.d.ts | 62 +++ .../service/src/models/PreparedTx.d.ts.map | 1 + dist/cjs/service/src/models/PreparedTx.js | 68 +++ dist/cjs/service/src/models/PreparedTx.js.map | 1 + dist/cjs/service/src/models/Price.d.ts | 49 ++ dist/cjs/service/src/models/Price.d.ts.map | 1 + dist/cjs/service/src/models/Price.js | 61 +++ dist/cjs/service/src/models/Price.js.map | 1 + .../service/src/models/PriceListResponse.d.ts | 34 ++ .../src/models/PriceListResponse.d.ts.map | 1 + .../service/src/models/PriceListResponse.js | 52 ++ .../src/models/PriceListResponse.js.map | 1 + dist/cjs/service/src/models/QuoteRequest.d.ts | 78 +++ .../service/src/models/QuoteRequest.d.ts.map | 1 + dist/cjs/service/src/models/QuoteRequest.js | 76 +++ .../service/src/models/QuoteRequest.js.map | 1 + .../src/models/QuoteRequestOptions.d.ts | 87 ++++ .../src/models/QuoteRequestOptions.d.ts.map | 1 + .../service/src/models/QuoteRequestOptions.js | 67 +++ .../src/models/QuoteRequestOptions.js.map | 1 + .../cjs/service/src/models/QuoteResponse.d.ts | 138 +++++ .../service/src/models/QuoteResponse.d.ts.map | 1 + dist/cjs/service/src/models/QuoteResponse.js | 108 ++++ .../service/src/models/QuoteResponse.js.map | 1 + .../service/src/models/RawDutchAmount.d.ts | 51 ++ .../src/models/RawDutchAmount.d.ts.map | 1 + dist/cjs/service/src/models/RawDutchAmount.js | 61 +++ .../service/src/models/RawDutchAmount.js.map | 1 + dist/cjs/service/src/models/RouteItem.d.ts | 52 ++ .../cjs/service/src/models/RouteItem.d.ts.map | 1 + dist/cjs/service/src/models/RouteItem.js | 64 +++ dist/cjs/service/src/models/RouteItem.js.map | 1 + dist/cjs/service/src/models/Scoreboard.d.ts | 34 ++ .../service/src/models/Scoreboard.d.ts.map | 1 + dist/cjs/service/src/models/Scoreboard.js | 52 ++ dist/cjs/service/src/models/Scoreboard.js.map | 1 + .../service/src/models/ScoreboardItem.d.ts | 39 ++ .../src/models/ScoreboardItem.d.ts.map | 1 + dist/cjs/service/src/models/ScoreboardItem.js | 55 ++ .../service/src/models/ScoreboardItem.js.map | 1 + .../models/StablecoinSystemBarkTxRequest.d.ts | 39 ++ .../StablecoinSystemBarkTxRequest.d.ts.map | 1 + .../models/StablecoinSystemBarkTxRequest.js | 55 ++ .../StablecoinSystemBarkTxRequest.js.map | 1 + .../StablecoinSystemCreateVaultTxRequest.d.ts | 51 ++ ...blecoinSystemCreateVaultTxRequest.d.ts.map | 1 + .../StablecoinSystemCreateVaultTxRequest.js | 61 +++ ...tablecoinSystemCreateVaultTxRequest.js.map | 1 + ...ecoinSystemDepositCollateralTxRequest.d.ts | 45 ++ ...nSystemDepositCollateralTxRequest.d.ts.map | 1 + ...blecoinSystemDepositCollateralTxRequest.js | 57 ++ ...oinSystemDepositCollateralTxRequest.js.map | 1 + .../StablecoinSystemGemexitTxRequest.d.ts | 45 ++ .../StablecoinSystemGemexitTxRequest.d.ts.map | 1 + .../StablecoinSystemGemexitTxRequest.js | 59 +++ .../StablecoinSystemGemexitTxRequest.js.map | 1 + .../StablecoinSystemMintZarTxRequest.d.ts | 45 ++ .../StablecoinSystemMintZarTxRequest.d.ts.map | 1 + .../StablecoinSystemMintZarTxRequest.js | 57 ++ .../StablecoinSystemMintZarTxRequest.js.map | 1 + .../models/StablecoinSystemRedoTxRequest.d.ts | 45 ++ .../StablecoinSystemRedoTxRequest.d.ts.map | 1 + .../models/StablecoinSystemRedoTxRequest.js | 59 +++ .../StablecoinSystemRedoTxRequest.js.map | 1 + .../StablecoinSystemRepayZarTxRequest.d.ts | 45 ++ ...StablecoinSystemRepayZarTxRequest.d.ts.map | 1 + .../StablecoinSystemRepayZarTxRequest.js | 57 ++ .../StablecoinSystemRepayZarTxRequest.js.map | 1 + .../src/models/StablecoinSystemStats.d.ts | 75 +++ .../src/models/StablecoinSystemStats.d.ts.map | 1 + .../src/models/StablecoinSystemStats.js | 71 +++ .../src/models/StablecoinSystemStats.js.map | 1 + .../models/StablecoinSystemTakeTxRequest.d.ts | 57 ++ .../StablecoinSystemTakeTxRequest.d.ts.map | 1 + .../models/StablecoinSystemTakeTxRequest.js | 67 +++ .../StablecoinSystemTakeTxRequest.js.map | 1 + ...coinSystemWithdrawCollateralTxRequest.d.ts | 45 ++ ...SystemWithdrawCollateralTxRequest.d.ts.map | 1 + ...lecoinSystemWithdrawCollateralTxRequest.js | 57 ++ ...inSystemWithdrawCollateralTxRequest.js.map | 1 + .../StablecoinSystemZarexitTxRequest.d.ts | 39 ++ .../StablecoinSystemZarexitTxRequest.d.ts.map | 1 + .../StablecoinSystemZarexitTxRequest.js | 55 ++ .../StablecoinSystemZarexitTxRequest.js.map | 1 + .../StablecoinSystemZarjoinTxRequest.d.ts | 39 ++ .../StablecoinSystemZarjoinTxRequest.d.ts.map | 1 + .../StablecoinSystemZarjoinTxRequest.js | 55 ++ .../StablecoinSystemZarjoinTxRequest.js.map | 1 + dist/cjs/service/src/models/StakeBalance.d.ts | 27 + .../service/src/models/StakeBalance.d.ts.map | 1 + dist/cjs/service/src/models/StakeBalance.js | 39 ++ .../service/src/models/StakeBalance.js.map | 1 + dist/cjs/service/src/models/StakePlan.d.ts | 65 +++ .../cjs/service/src/models/StakePlan.d.ts.map | 1 + dist/cjs/service/src/models/StakePlan.js | 73 +++ dist/cjs/service/src/models/StakePlan.js.map | 1 + .../src/models/StakePlansResponse.d.ts | 34 ++ .../src/models/StakePlansResponse.d.ts.map | 1 + .../service/src/models/StakePlansResponse.js | 52 ++ .../src/models/StakePlansResponse.js.map | 1 + .../models/StakingCollectRewardTxRequest.d.ts | 39 ++ .../StakingCollectRewardTxRequest.d.ts.map | 1 + .../models/StakingCollectRewardTxRequest.js | 55 ++ .../StakingCollectRewardTxRequest.js.map | 1 + .../StakingCollectRewardTxResponse.d.ts | 34 ++ .../StakingCollectRewardTxResponse.d.ts.map | 1 + .../models/StakingCollectRewardTxResponse.js | 50 ++ .../StakingCollectRewardTxResponse.js.map | 1 + .../src/models/StakingStakeTxRequest.d.ts | 45 ++ .../src/models/StakingStakeTxRequest.d.ts.map | 1 + .../src/models/StakingStakeTxRequest.js | 57 ++ .../src/models/StakingStakeTxRequest.js.map | 1 + .../src/models/StakingStakeTxResponse.d.ts | 34 ++ .../models/StakingStakeTxResponse.d.ts.map | 1 + .../src/models/StakingStakeTxResponse.js | 50 ++ .../src/models/StakingStakeTxResponse.js.map | 1 + .../src/models/StakingWithdrawTxRequest.d.ts | 45 ++ .../models/StakingWithdrawTxRequest.d.ts.map | 1 + .../src/models/StakingWithdrawTxRequest.js | 57 ++ .../models/StakingWithdrawTxRequest.js.map | 1 + .../src/models/StakingWithdrawTxResponse.d.ts | 34 ++ .../models/StakingWithdrawTxResponse.d.ts.map | 1 + .../src/models/StakingWithdrawTxResponse.js | 50 ++ .../models/StakingWithdrawTxResponse.js.map | 1 + dist/cjs/service/src/models/Stats.d.ts | 41 ++ dist/cjs/service/src/models/Stats.d.ts.map | 1 + dist/cjs/service/src/models/Stats.js | 57 ++ dist/cjs/service/src/models/Stats.js.map | 1 + dist/cjs/service/src/models/Symbol.d.ts | 33 ++ dist/cjs/service/src/models/Symbol.d.ts.map | 1 + dist/cjs/service/src/models/Symbol.js | 59 +++ dist/cjs/service/src/models/Symbol.js.map | 1 + .../cjs/service/src/models/SystemBadDebt.d.ts | 27 + .../service/src/models/SystemBadDebt.d.ts.map | 1 + dist/cjs/service/src/models/SystemBadDebt.js | 39 ++ .../service/src/models/SystemBadDebt.js.map | 1 + dist/cjs/service/src/models/SystemDebt.d.ts | 27 + .../service/src/models/SystemDebt.d.ts.map | 1 + dist/cjs/service/src/models/SystemDebt.js | 39 ++ dist/cjs/service/src/models/SystemDebt.js.map | 1 + .../service/src/models/SystemDebtCeiling.d.ts | 27 + .../src/models/SystemDebtCeiling.d.ts.map | 1 + .../service/src/models/SystemDebtCeiling.js | 39 ++ .../src/models/SystemDebtCeiling.js.map | 1 + .../cjs/service/src/models/SystemSurplus.d.ts | 27 + .../service/src/models/SystemSurplus.d.ts.map | 1 + dist/cjs/service/src/models/SystemSurplus.js | 39 ++ .../service/src/models/SystemSurplus.js.map | 1 + .../src/models/SystemSurplusBuffer.d.ts | 27 + .../src/models/SystemSurplusBuffer.d.ts.map | 1 + .../service/src/models/SystemSurplusBuffer.js | 39 ++ .../src/models/SystemSurplusBuffer.js.map | 1 + .../src/models/SystemSurplusLotSize.d.ts | 27 + .../src/models/SystemSurplusLotSize.d.ts.map | 1 + .../src/models/SystemSurplusLotSize.js | 39 ++ .../src/models/SystemSurplusLotSize.js.map | 1 + dist/cjs/service/src/models/TimeRange.d.ts | 39 ++ .../cjs/service/src/models/TimeRange.d.ts.map | 1 + dist/cjs/service/src/models/TimeRange.js | 51 ++ dist/cjs/service/src/models/TimeRange.js.map | 1 + dist/cjs/service/src/models/Timestamp.d.ts | 39 ++ .../cjs/service/src/models/Timestamp.d.ts.map | 1 + dist/cjs/service/src/models/Timestamp.js | 55 ++ dist/cjs/service/src/models/Timestamp.js.map | 1 + dist/cjs/service/src/models/Token.d.ts | 70 +++ dist/cjs/service/src/models/Token.d.ts.map | 1 + dist/cjs/service/src/models/Token.js | 76 +++ dist/cjs/service/src/models/Token.js.map | 1 + dist/cjs/service/src/models/TradeType.d.ts | 26 + .../cjs/service/src/models/TradeType.d.ts.map | 1 + dist/cjs/service/src/models/TradeType.js | 52 ++ dist/cjs/service/src/models/TradeType.js.map | 1 + dist/cjs/service/src/models/Type.d.ts | 39 ++ dist/cjs/service/src/models/Type.d.ts.map | 1 + dist/cjs/service/src/models/Type.js | 55 ++ dist/cjs/service/src/models/Type.js.map | 1 + dist/cjs/service/src/models/TypedData.d.ts | 57 ++ .../cjs/service/src/models/TypedData.d.ts.map | 1 + dist/cjs/service/src/models/TypedData.js | 64 +++ dist/cjs/service/src/models/TypedData.js.map | 1 + .../service/src/models/TypedDataDomain.d.ts | 57 ++ .../src/models/TypedDataDomain.d.ts.map | 1 + .../cjs/service/src/models/TypedDataDomain.js | 63 +++ .../service/src/models/TypedDataDomain.js.map | 1 + .../service/src/models/UnclaimedReward.d.ts | 27 + .../src/models/UnclaimedReward.d.ts.map | 1 + .../cjs/service/src/models/UnclaimedReward.js | 39 ++ .../service/src/models/UnclaimedReward.js.map | 1 + .../src/models/UpdateOrderRequest.d.ts | 33 ++ .../src/models/UpdateOrderRequest.d.ts.map | 1 + .../service/src/models/UpdateOrderRequest.js | 51 ++ .../src/models/UpdateOrderRequest.js.map | 1 + .../src/models/UserBorrowsResponse.d.ts | 34 ++ .../src/models/UserBorrowsResponse.d.ts.map | 1 + .../service/src/models/UserBorrowsResponse.js | 52 ++ .../src/models/UserBorrowsResponse.js.map | 1 + .../src/models/UserDepositsResponse.d.ts | 34 ++ .../src/models/UserDepositsResponse.d.ts.map | 1 + .../src/models/UserDepositsResponse.js | 52 ++ .../src/models/UserDepositsResponse.js.map | 1 + dist/cjs/service/src/models/UserError.d.ts | 42 ++ .../cjs/service/src/models/UserError.d.ts.map | 1 + dist/cjs/service/src/models/UserError.js | 57 ++ dist/cjs/service/src/models/UserError.js.map | 1 + dist/cjs/service/src/models/UserStake.d.ts | 61 +++ .../cjs/service/src/models/UserStake.d.ts.map | 1 + dist/cjs/service/src/models/UserStake.js | 67 +++ dist/cjs/service/src/models/UserStake.js.map | 1 + .../src/models/UserStakesResponse.d.ts | 34 ++ .../src/models/UserStakesResponse.d.ts.map | 1 + .../service/src/models/UserStakesResponse.js | 52 ++ .../src/models/UserStakesResponse.js.map | 1 + .../cjs/service/src/models/V3PoolInRoute.d.ts | 52 ++ .../service/src/models/V3PoolInRoute.d.ts.map | 1 + dist/cjs/service/src/models/V3PoolInRoute.js | 64 +++ .../service/src/models/V3PoolInRoute.js.map | 1 + dist/cjs/service/src/models/Vault.d.ts | 104 ++++ dist/cjs/service/src/models/Vault.d.ts.map | 1 + dist/cjs/service/src/models/Vault.js | 92 ++++ dist/cjs/service/src/models/Vault.js.map | 1 + dist/cjs/service/src/models/VaultEvent.d.ts | 50 ++ .../service/src/models/VaultEvent.d.ts.map | 1 + dist/cjs/service/src/models/VaultEvent.js | 60 +++ dist/cjs/service/src/models/VaultEvent.js.map | 1 + .../src/models/VaultEventExtension.d.ts | 34 ++ .../src/models/VaultEventExtension.d.ts.map | 1 + .../service/src/models/VaultEventExtension.js | 50 ++ .../src/models/VaultEventExtension.js.map | 1 + .../service/src/models/VaultEventItem.d.ts | 68 +++ .../src/models/VaultEventItem.d.ts.map | 1 + dist/cjs/service/src/models/VaultEventItem.js | 74 +++ .../service/src/models/VaultEventItem.js.map | 1 + .../src/models/VaultEventsResponse.d.ts | 34 ++ .../src/models/VaultEventsResponse.d.ts.map | 1 + .../service/src/models/VaultEventsResponse.js | 52 ++ .../src/models/VaultEventsResponse.js.map | 1 + .../service/src/models/VaultsResponse.d.ts | 34 ++ .../src/models/VaultsResponse.d.ts.map | 1 + dist/cjs/service/src/models/VaultsResponse.js | 52 ++ .../service/src/models/VaultsResponse.js.map | 1 + .../cjs/service/src/models/WalletBalance.d.ts | 34 ++ .../service/src/models/WalletBalance.d.ts.map | 1 + dist/cjs/service/src/models/WalletBalance.js | 52 ++ .../service/src/models/WalletBalance.js.map | 1 + dist/cjs/service/src/models/index.d.ts | 107 ++++ dist/cjs/service/src/models/index.d.ts.map | 1 + dist/cjs/service/src/models/index.js | 112 ++++ dist/cjs/service/src/models/index.js.map | 1 + dist/cjs/service/src/runtime.d.ts | 183 +++++++ dist/cjs/service/src/runtime.d.ts.map | 1 + dist/cjs/service/src/runtime.js | 346 +++++++++++++ dist/cjs/service/src/runtime.js.map | 1 + dist/cjs/wallet/src/apis/AuthApi.d.ts | 206 ++++++++ dist/cjs/wallet/src/apis/AuthApi.d.ts.map | 1 + dist/cjs/wallet/src/apis/AuthApi.js | 226 ++++++++ dist/cjs/wallet/src/apis/AuthApi.js.map | 1 + dist/cjs/wallet/src/apis/BalanceApi.d.ts | 77 +++ dist/cjs/wallet/src/apis/BalanceApi.d.ts.map | 1 + dist/cjs/wallet/src/apis/BalanceApi.js | 89 ++++ dist/cjs/wallet/src/apis/BalanceApi.js.map | 1 + dist/cjs/wallet/src/apis/CoinsApi.d.ts | 77 +++ dist/cjs/wallet/src/apis/CoinsApi.d.ts.map | 1 + dist/cjs/wallet/src/apis/CoinsApi.js | 75 +++ dist/cjs/wallet/src/apis/CoinsApi.js.map | 1 + dist/cjs/wallet/src/apis/DepositApi.d.ts | 56 ++ dist/cjs/wallet/src/apis/DepositApi.d.ts.map | 1 + dist/cjs/wallet/src/apis/DepositApi.js | 68 +++ dist/cjs/wallet/src/apis/DepositApi.js.map | 1 + dist/cjs/wallet/src/apis/HealthApi.d.ts | 50 ++ dist/cjs/wallet/src/apis/HealthApi.d.ts.map | 1 + dist/cjs/wallet/src/apis/HealthApi.js | 49 ++ dist/cjs/wallet/src/apis/HealthApi.js.map | 1 + dist/cjs/wallet/src/apis/LoansApi.d.ts | 213 ++++++++ dist/cjs/wallet/src/apis/LoansApi.d.ts.map | 1 + dist/cjs/wallet/src/apis/LoansApi.js | 253 +++++++++ dist/cjs/wallet/src/apis/LoansApi.js.map | 1 + dist/cjs/wallet/src/apis/PaymentApi.d.ts | 54 ++ dist/cjs/wallet/src/apis/PaymentApi.d.ts.map | 1 + dist/cjs/wallet/src/apis/PaymentApi.js | 61 +++ dist/cjs/wallet/src/apis/PaymentApi.js.map | 1 + dist/cjs/wallet/src/apis/PointsApi.d.ts | 50 ++ dist/cjs/wallet/src/apis/PointsApi.d.ts.map | 1 + dist/cjs/wallet/src/apis/PointsApi.js | 56 ++ dist/cjs/wallet/src/apis/PointsApi.js.map | 1 + dist/cjs/wallet/src/apis/RedemptionsApi.d.ts | 147 ++++++ .../wallet/src/apis/RedemptionsApi.d.ts.map | 1 + dist/cjs/wallet/src/apis/RedemptionsApi.js | 174 +++++++ .../cjs/wallet/src/apis/RedemptionsApi.js.map | 1 + dist/cjs/wallet/src/apis/ReferralsApi.d.ts | 135 +++++ .../cjs/wallet/src/apis/ReferralsApi.d.ts.map | 1 + dist/cjs/wallet/src/apis/ReferralsApi.js | 156 ++++++ dist/cjs/wallet/src/apis/ReferralsApi.js.map | 1 + dist/cjs/wallet/src/apis/SwapApi.d.ts | 54 ++ dist/cjs/wallet/src/apis/SwapApi.d.ts.map | 1 + dist/cjs/wallet/src/apis/SwapApi.js | 61 +++ dist/cjs/wallet/src/apis/SwapApi.js.map | 1 + dist/cjs/wallet/src/apis/TasksApi.d.ts | 50 ++ dist/cjs/wallet/src/apis/TasksApi.d.ts.map | 1 + dist/cjs/wallet/src/apis/TasksApi.js | 56 ++ dist/cjs/wallet/src/apis/TasksApi.js.map | 1 + dist/cjs/wallet/src/apis/TransactionsApi.d.ts | 56 ++ .../wallet/src/apis/TransactionsApi.d.ts.map | 1 + dist/cjs/wallet/src/apis/TransactionsApi.js | 62 +++ .../wallet/src/apis/TransactionsApi.js.map | 1 + dist/cjs/wallet/src/apis/UserApi.d.ts | 239 +++++++++ dist/cjs/wallet/src/apis/UserApi.d.ts.map | 1 + dist/cjs/wallet/src/apis/UserApi.js | 299 +++++++++++ dist/cjs/wallet/src/apis/UserApi.js.map | 1 + dist/cjs/wallet/src/apis/WithdrawApi.d.ts | 131 +++++ dist/cjs/wallet/src/apis/WithdrawApi.d.ts.map | 1 + dist/cjs/wallet/src/apis/WithdrawApi.js | 159 ++++++ dist/cjs/wallet/src/apis/WithdrawApi.js.map | 1 + dist/cjs/wallet/src/apis/index.d.ts | 16 + dist/cjs/wallet/src/apis/index.d.ts.map | 1 + dist/cjs/wallet/src/apis/index.js | 22 + dist/cjs/wallet/src/apis/index.js.map | 1 + dist/cjs/wallet/src/index.d.ts | 4 + dist/cjs/wallet/src/index.d.ts.map | 1 + dist/cjs/wallet/src/index.js | 9 + dist/cjs/wallet/src/index.js.map | 1 + .../models/AdminRedemptionUpdateRequest.d.ts | 48 ++ .../AdminRedemptionUpdateRequest.d.ts.map | 1 + .../models/AdminRedemptionUpdateRequest.js | 62 +++ .../AdminRedemptionUpdateRequest.js.map | 1 + .../src/models/AuthTelegramRequest.d.ts | 33 ++ .../src/models/AuthTelegramRequest.d.ts.map | 1 + .../wallet/src/models/AuthTelegramRequest.js | 51 ++ .../src/models/AuthTelegramRequest.js.map | 1 + dist/cjs/wallet/src/models/Balance.d.ts | 47 ++ dist/cjs/wallet/src/models/Balance.d.ts.map | 1 + dist/cjs/wallet/src/models/Balance.js | 61 +++ dist/cjs/wallet/src/models/Balance.js.map | 1 + dist/cjs/wallet/src/models/BankInfo.d.ts | 45 ++ dist/cjs/wallet/src/models/BankInfo.d.ts.map | 1 + dist/cjs/wallet/src/models/BankInfo.js | 59 +++ dist/cjs/wallet/src/models/BankInfo.js.map | 1 + dist/cjs/wallet/src/models/BulletContent.d.ts | 45 ++ .../wallet/src/models/BulletContent.d.ts.map | 1 + dist/cjs/wallet/src/models/BulletContent.js | 59 +++ .../wallet/src/models/BulletContent.js.map | 1 + dist/cjs/wallet/src/models/Coin.d.ts | 75 +++ dist/cjs/wallet/src/models/Coin.d.ts.map | 1 + dist/cjs/wallet/src/models/Coin.js | 79 +++ dist/cjs/wallet/src/models/Coin.js.map | 1 + dist/cjs/wallet/src/models/CoinConfig.d.ts | 55 ++ .../cjs/wallet/src/models/CoinConfig.d.ts.map | 1 + dist/cjs/wallet/src/models/CoinConfig.js | 63 +++ dist/cjs/wallet/src/models/CoinConfig.js.map | 1 + dist/cjs/wallet/src/models/CoinResponse.d.ts | 34 ++ .../wallet/src/models/CoinResponse.d.ts.map | 1 + dist/cjs/wallet/src/models/CoinResponse.js | 52 ++ .../cjs/wallet/src/models/CoinResponse.js.map | 1 + .../src/models/CreateChildUserRequest.d.ts | 33 ++ .../models/CreateChildUserRequest.d.ts.map | 1 + .../src/models/CreateChildUserRequest.js | 51 ++ .../src/models/CreateChildUserRequest.js.map | 1 + dist/cjs/wallet/src/models/Currency.d.ts | 35 ++ dist/cjs/wallet/src/models/Currency.d.ts.map | 1 + dist/cjs/wallet/src/models/Currency.js | 49 ++ dist/cjs/wallet/src/models/Currency.js.map | 1 + .../wallet/src/models/DepositResponse.d.ts | 46 ++ .../src/models/DepositResponse.d.ts.map | 1 + dist/cjs/wallet/src/models/DepositResponse.js | 60 +++ .../wallet/src/models/DepositResponse.js.map | 1 + .../models/DetailedLoanToValueOptions.d.ts | 41 ++ .../DetailedLoanToValueOptions.d.ts.map | 1 + .../src/models/DetailedLoanToValueOptions.js | 55 ++ .../models/DetailedLoanToValueOptions.js.map | 1 + .../src/models/EmailOtpSubmitRequest.d.ts | 33 ++ .../src/models/EmailOtpSubmitRequest.d.ts.map | 1 + .../src/models/EmailOtpSubmitRequest.js | 51 ++ .../src/models/EmailOtpSubmitRequest.js.map | 1 + dist/cjs/wallet/src/models/ErrorDetail.d.ts | 39 ++ .../wallet/src/models/ErrorDetail.d.ts.map | 1 + dist/cjs/wallet/src/models/ErrorDetail.js | 55 ++ dist/cjs/wallet/src/models/ErrorDetail.js.map | 1 + .../src/models/ExternalTransaction.d.ts | 99 ++++ .../src/models/ExternalTransaction.d.ts.map | 1 + .../wallet/src/models/ExternalTransaction.js | 97 ++++ .../src/models/ExternalTransaction.js.map | 1 + dist/cjs/wallet/src/models/FriendPoints.d.ts | 39 ++ .../wallet/src/models/FriendPoints.d.ts.map | 1 + dist/cjs/wallet/src/models/FriendPoints.js | 55 ++ .../cjs/wallet/src/models/FriendPoints.js.map | 1 + .../src/models/FriendPointsResponse.d.ts | 34 ++ .../src/models/FriendPointsResponse.d.ts.map | 1 + .../wallet/src/models/FriendPointsResponse.js | 52 ++ .../src/models/FriendPointsResponse.js.map | 1 + dist/cjs/wallet/src/models/HealthStatus.d.ts | 33 ++ .../wallet/src/models/HealthStatus.d.ts.map | 1 + dist/cjs/wallet/src/models/HealthStatus.js | 49 ++ .../cjs/wallet/src/models/HealthStatus.js.map | 1 + dist/cjs/wallet/src/models/JwtResponse.d.ts | 33 ++ .../wallet/src/models/JwtResponse.d.ts.map | 1 + dist/cjs/wallet/src/models/JwtResponse.js | 51 ++ dist/cjs/wallet/src/models/JwtResponse.js.map | 1 + .../wallet/src/models/KycConfirmRequest.d.ts | 33 ++ .../src/models/KycConfirmRequest.d.ts.map | 1 + .../wallet/src/models/KycConfirmRequest.js | 51 ++ .../src/models/KycConfirmRequest.js.map | 1 + dist/cjs/wallet/src/models/KycRequest.d.ts | 45 ++ .../cjs/wallet/src/models/KycRequest.d.ts.map | 1 + dist/cjs/wallet/src/models/KycRequest.js | 59 +++ dist/cjs/wallet/src/models/KycRequest.js.map | 1 + dist/cjs/wallet/src/models/KycResponse.d.ts | 64 +++ .../wallet/src/models/KycResponse.d.ts.map | 1 + dist/cjs/wallet/src/models/KycResponse.js | 72 +++ dist/cjs/wallet/src/models/KycResponse.js.map | 1 + .../wallet/src/models/LoanCreateRequest.d.ts | 72 +++ .../src/models/LoanCreateRequest.d.ts.map | 1 + .../wallet/src/models/LoanCreateRequest.js | 76 +++ .../src/models/LoanCreateRequest.js.map | 1 + dist/cjs/wallet/src/models/LoanPlan.d.ts | 72 +++ dist/cjs/wallet/src/models/LoanPlan.d.ts.map | 1 + dist/cjs/wallet/src/models/LoanPlan.js | 78 +++ dist/cjs/wallet/src/models/LoanPlan.js.map | 1 + .../wallet/src/models/LoanPlanResponse.d.ts | 34 ++ .../src/models/LoanPlanResponse.d.ts.map | 1 + .../cjs/wallet/src/models/LoanPlanResponse.js | 52 ++ .../wallet/src/models/LoanPlanResponse.js.map | 1 + .../wallet/src/models/LoanToValueOptions.d.ts | 27 + .../src/models/LoanToValueOptions.d.ts.map | 1 + .../wallet/src/models/LoanToValueOptions.js | 53 ++ .../src/models/LoanToValueOptions.js.map | 1 + dist/cjs/wallet/src/models/LoansResponse.d.ts | 116 +++++ .../wallet/src/models/LoansResponse.d.ts.map | 1 + dist/cjs/wallet/src/models/LoansResponse.js | 98 ++++ .../wallet/src/models/LoansResponse.js.map | 1 + .../wallet/src/models/LoansResponseList.d.ts | 34 ++ .../src/models/LoansResponseList.d.ts.map | 1 + .../wallet/src/models/LoansResponseList.js | 52 ++ .../src/models/LoansResponseList.js.map | 1 + dist/cjs/wallet/src/models/LoginRequest.d.ts | 39 ++ .../wallet/src/models/LoginRequest.d.ts.map | 1 + dist/cjs/wallet/src/models/LoginRequest.js | 55 ++ .../cjs/wallet/src/models/LoginRequest.js.map | 1 + dist/cjs/wallet/src/models/ModelError.d.ts | 39 ++ .../cjs/wallet/src/models/ModelError.d.ts.map | 1 + dist/cjs/wallet/src/models/ModelError.js | 55 ++ dist/cjs/wallet/src/models/ModelError.js.map | 1 + dist/cjs/wallet/src/models/Network.d.ts | 41 ++ dist/cjs/wallet/src/models/Network.d.ts.map | 1 + dist/cjs/wallet/src/models/Network.js | 55 ++ dist/cjs/wallet/src/models/Network.js.map | 1 + dist/cjs/wallet/src/models/Payment.d.ts | 63 +++ dist/cjs/wallet/src/models/Payment.d.ts.map | 1 + dist/cjs/wallet/src/models/Payment.js | 71 +++ dist/cjs/wallet/src/models/Payment.js.map | 1 + .../cjs/wallet/src/models/PaymentRequest.d.ts | 33 ++ .../wallet/src/models/PaymentRequest.d.ts.map | 1 + dist/cjs/wallet/src/models/PaymentRequest.js | 51 ++ .../wallet/src/models/PaymentRequest.js.map | 1 + .../src/models/PhoneOtpSubmitRequest.d.ts | 33 ++ .../src/models/PhoneOtpSubmitRequest.d.ts.map | 1 + .../src/models/PhoneOtpSubmitRequest.js | 51 ++ .../src/models/PhoneOtpSubmitRequest.js.map | 1 + .../wallet/src/models/ProfileResponse.d.ts | 54 ++ .../src/models/ProfileResponse.d.ts.map | 1 + dist/cjs/wallet/src/models/ProfileResponse.js | 66 +++ .../wallet/src/models/ProfileResponse.js.map | 1 + dist/cjs/wallet/src/models/Redemption.d.ts | 74 +++ .../cjs/wallet/src/models/Redemption.d.ts.map | 1 + dist/cjs/wallet/src/models/Redemption.js | 74 +++ dist/cjs/wallet/src/models/Redemption.js.map | 1 + .../wallet/src/models/RedemptionRequest.d.ts | 45 ++ .../src/models/RedemptionRequest.d.ts.map | 1 + .../wallet/src/models/RedemptionRequest.js | 59 +++ .../src/models/RedemptionRequest.js.map | 1 + .../wallet/src/models/RedemptionResponse.d.ts | 34 ++ .../src/models/RedemptionResponse.d.ts.map | 1 + .../wallet/src/models/RedemptionResponse.js | 52 ++ .../src/models/RedemptionResponse.js.map | 1 + dist/cjs/wallet/src/models/Referral.d.ts | 76 +++ dist/cjs/wallet/src/models/Referral.d.ts.map | 1 + dist/cjs/wallet/src/models/Referral.js | 74 +++ dist/cjs/wallet/src/models/Referral.js.map | 1 + .../wallet/src/models/ReferralResponse.d.ts | 34 ++ .../src/models/ReferralResponse.d.ts.map | 1 + .../cjs/wallet/src/models/ReferralResponse.js | 52 ++ .../wallet/src/models/ReferralResponse.js.map | 1 + .../wallet/src/models/RepayLoanRequest.d.ts | 47 ++ .../src/models/RepayLoanRequest.d.ts.map | 1 + .../cjs/wallet/src/models/RepayLoanRequest.js | 63 +++ .../wallet/src/models/RepayLoanRequest.js.map | 1 + dist/cjs/wallet/src/models/SignUpRequest.d.ts | 39 ++ .../wallet/src/models/SignUpRequest.d.ts.map | 1 + dist/cjs/wallet/src/models/SignUpRequest.js | 55 ++ .../wallet/src/models/SignUpRequest.js.map | 1 + .../cjs/wallet/src/models/SimpleResponse.d.ts | 35 ++ .../wallet/src/models/SimpleResponse.d.ts.map | 1 + dist/cjs/wallet/src/models/SimpleResponse.js | 51 ++ .../wallet/src/models/SimpleResponse.js.map | 1 + dist/cjs/wallet/src/models/SwapRequest.d.ts | 80 +++ .../wallet/src/models/SwapRequest.d.ts.map | 1 + dist/cjs/wallet/src/models/SwapRequest.js | 77 +++ dist/cjs/wallet/src/models/SwapRequest.js.map | 1 + dist/cjs/wallet/src/models/SwapResponse.d.ts | 116 +++++ .../wallet/src/models/SwapResponse.d.ts.map | 1 + dist/cjs/wallet/src/models/SwapResponse.js | 104 ++++ .../cjs/wallet/src/models/SwapResponse.js.map | 1 + dist/cjs/wallet/src/models/Symbol.d.ts | 33 ++ dist/cjs/wallet/src/models/Symbol.d.ts.map | 1 + dist/cjs/wallet/src/models/Symbol.js | 59 +++ dist/cjs/wallet/src/models/Symbol.js.map | 1 + dist/cjs/wallet/src/models/Task.d.ts | 58 +++ dist/cjs/wallet/src/models/Task.d.ts.map | 1 + dist/cjs/wallet/src/models/Task.js | 66 +++ dist/cjs/wallet/src/models/Task.js.map | 1 + dist/cjs/wallet/src/models/TaskResponse.d.ts | 34 ++ .../wallet/src/models/TaskResponse.d.ts.map | 1 + dist/cjs/wallet/src/models/TaskResponse.js | 52 ++ .../cjs/wallet/src/models/TaskResponse.js.map | 1 + .../wallet/src/models/TelegramProfile.d.ts | 51 ++ .../src/models/TelegramProfile.d.ts.map | 1 + dist/cjs/wallet/src/models/TelegramProfile.js | 57 ++ .../wallet/src/models/TelegramProfile.js.map | 1 + dist/cjs/wallet/src/models/Timestamp.d.ts | 39 ++ dist/cjs/wallet/src/models/Timestamp.d.ts.map | 1 + dist/cjs/wallet/src/models/Timestamp.js | 55 ++ dist/cjs/wallet/src/models/Timestamp.js.map | 1 + dist/cjs/wallet/src/models/Transaction.d.ts | 94 ++++ .../wallet/src/models/Transaction.d.ts.map | 1 + dist/cjs/wallet/src/models/Transaction.js | 94 ++++ dist/cjs/wallet/src/models/Transaction.js.map | 1 + .../src/models/TransactionResponse.d.ts | 34 ++ .../src/models/TransactionResponse.d.ts.map | 1 + .../wallet/src/models/TransactionResponse.js | 52 ++ .../src/models/TransactionResponse.js.map | 1 + .../wallet/src/models/TransactionStatus.d.ts | 27 + .../src/models/TransactionStatus.d.ts.map | 1 + .../wallet/src/models/TransactionStatus.js | 53 ++ .../src/models/TransactionStatus.js.map | 1 + .../wallet/src/models/TransactionType.d.ts | 29 ++ .../src/models/TransactionType.d.ts.map | 1 + dist/cjs/wallet/src/models/TransactionType.js | 55 ++ .../wallet/src/models/TransactionType.js.map | 1 + .../wallet/src/models/UpdateEmailRequest.d.ts | 33 ++ .../src/models/UpdateEmailRequest.d.ts.map | 1 + .../wallet/src/models/UpdateEmailRequest.js | 51 ++ .../src/models/UpdateEmailRequest.js.map | 1 + .../wallet/src/models/UpdatePhoneRequest.d.ts | 33 ++ .../src/models/UpdatePhoneRequest.d.ts.map | 1 + .../wallet/src/models/UpdatePhoneRequest.js | 51 ++ .../src/models/UpdatePhoneRequest.js.map | 1 + dist/cjs/wallet/src/models/User.d.ts | 100 ++++ dist/cjs/wallet/src/models/User.d.ts.map | 1 + dist/cjs/wallet/src/models/User.js | 72 +++ dist/cjs/wallet/src/models/User.js.map | 1 + dist/cjs/wallet/src/models/UserError.d.ts | 36 ++ dist/cjs/wallet/src/models/UserError.d.ts.map | 1 + dist/cjs/wallet/src/models/UserError.js | 53 ++ dist/cjs/wallet/src/models/UserError.js.map | 1 + dist/cjs/wallet/src/models/WalletBalance.d.ts | 41 ++ .../wallet/src/models/WalletBalance.d.ts.map | 1 + dist/cjs/wallet/src/models/WalletBalance.js | 57 ++ .../wallet/src/models/WalletBalance.js.map | 1 + .../wallet/src/models/WithdrawRequest.d.ts | 100 ++++ .../src/models/WithdrawRequest.d.ts.map | 1 + dist/cjs/wallet/src/models/WithdrawRequest.js | 98 ++++ .../wallet/src/models/WithdrawRequest.js.map | 1 + .../src/models/WithdrawRequestBody.d.ts | 57 ++ .../src/models/WithdrawRequestBody.d.ts.map | 1 + .../wallet/src/models/WithdrawRequestBody.js | 65 +++ .../src/models/WithdrawRequestBody.js.map | 1 + .../src/models/WithdrawRequestPreview.d.ts | 66 +++ .../models/WithdrawRequestPreview.d.ts.map | 1 + .../src/models/WithdrawRequestPreview.js | 74 +++ .../src/models/WithdrawRequestPreview.js.map | 1 + .../src/models/WithdrawRequestResponse.d.ts | 34 ++ .../models/WithdrawRequestResponse.d.ts.map | 1 + .../src/models/WithdrawRequestResponse.js | 52 ++ .../src/models/WithdrawRequestResponse.js.map | 1 + .../src/models/WithdrawResponseBody.d.ts | 33 ++ .../src/models/WithdrawResponseBody.d.ts.map | 1 + .../wallet/src/models/WithdrawResponseBody.js | 51 ++ .../src/models/WithdrawResponseBody.js.map | 1 + dist/cjs/wallet/src/models/index.d.ts | 65 +++ dist/cjs/wallet/src/models/index.d.ts.map | 1 + dist/cjs/wallet/src/models/index.js | 70 +++ dist/cjs/wallet/src/models/index.js.map | 1 + dist/cjs/wallet/src/runtime.d.ts | 183 +++++++ dist/cjs/wallet/src/runtime.d.ts.map | 1 + dist/cjs/wallet/src/runtime.js | 346 +++++++++++++ dist/cjs/wallet/src/runtime.js.map | 1 + openapitools.json | 4 +- package.json | 5 +- src/service/README.md | 4 +- src/service/package.json | 2 +- src/wallet/README.md | 4 +- src/wallet/package.json | 2 +- tsconfig.cjs.json | 8 + 851 files changed, 27763 insertions(+), 10 deletions(-) create mode 100644 dist/cjs/index.d.ts create mode 100644 dist/cjs/index.d.ts.map create mode 100644 dist/cjs/index.js create mode 100644 dist/cjs/index.js.map create mode 100644 dist/cjs/service/src/apis/AccountsApi.d.ts create mode 100644 dist/cjs/service/src/apis/AccountsApi.d.ts.map create mode 100644 dist/cjs/service/src/apis/AccountsApi.js create mode 100644 dist/cjs/service/src/apis/AccountsApi.js.map create mode 100644 dist/cjs/service/src/apis/AddressesApi.d.ts create mode 100644 dist/cjs/service/src/apis/AddressesApi.d.ts.map create mode 100644 dist/cjs/service/src/apis/AddressesApi.js create mode 100644 dist/cjs/service/src/apis/AddressesApi.js.map create mode 100644 dist/cjs/service/src/apis/BorrowsApi.d.ts create mode 100644 dist/cjs/service/src/apis/BorrowsApi.d.ts.map create mode 100644 dist/cjs/service/src/apis/BorrowsApi.js create mode 100644 dist/cjs/service/src/apis/BorrowsApi.js.map create mode 100644 dist/cjs/service/src/apis/CollectorApi.d.ts create mode 100644 dist/cjs/service/src/apis/CollectorApi.d.ts.map create mode 100644 dist/cjs/service/src/apis/CollectorApi.js create mode 100644 dist/cjs/service/src/apis/CollectorApi.js.map create mode 100644 dist/cjs/service/src/apis/DepositsApi.d.ts create mode 100644 dist/cjs/service/src/apis/DepositsApi.d.ts.map create mode 100644 dist/cjs/service/src/apis/DepositsApi.js create mode 100644 dist/cjs/service/src/apis/DepositsApi.js.map create mode 100644 dist/cjs/service/src/apis/IlksApi.d.ts create mode 100644 dist/cjs/service/src/apis/IlksApi.d.ts.map create mode 100644 dist/cjs/service/src/apis/IlksApi.js create mode 100644 dist/cjs/service/src/apis/IlksApi.js.map create mode 100644 dist/cjs/service/src/apis/LendingPoolApi.d.ts create mode 100644 dist/cjs/service/src/apis/LendingPoolApi.d.ts.map create mode 100644 dist/cjs/service/src/apis/LendingPoolApi.js create mode 100644 dist/cjs/service/src/apis/LendingPoolApi.js.map create mode 100644 dist/cjs/service/src/apis/LogsApi.d.ts create mode 100644 dist/cjs/service/src/apis/LogsApi.d.ts.map create mode 100644 dist/cjs/service/src/apis/LogsApi.js create mode 100644 dist/cjs/service/src/apis/LogsApi.js.map create mode 100644 dist/cjs/service/src/apis/OrdersApi.d.ts create mode 100644 dist/cjs/service/src/apis/OrdersApi.d.ts.map create mode 100644 dist/cjs/service/src/apis/OrdersApi.js create mode 100644 dist/cjs/service/src/apis/OrdersApi.js.map create mode 100644 dist/cjs/service/src/apis/PermitApi.d.ts create mode 100644 dist/cjs/service/src/apis/PermitApi.d.ts.map create mode 100644 dist/cjs/service/src/apis/PermitApi.js create mode 100644 dist/cjs/service/src/apis/PermitApi.js.map create mode 100644 dist/cjs/service/src/apis/PointsApi.d.ts create mode 100644 dist/cjs/service/src/apis/PointsApi.d.ts.map create mode 100644 dist/cjs/service/src/apis/PointsApi.js create mode 100644 dist/cjs/service/src/apis/PointsApi.js.map create mode 100644 dist/cjs/service/src/apis/PricesApi.d.ts create mode 100644 dist/cjs/service/src/apis/PricesApi.d.ts.map create mode 100644 dist/cjs/service/src/apis/PricesApi.js create mode 100644 dist/cjs/service/src/apis/PricesApi.js.map create mode 100644 dist/cjs/service/src/apis/StableCoinSystemApi.d.ts create mode 100644 dist/cjs/service/src/apis/StableCoinSystemApi.d.ts.map create mode 100644 dist/cjs/service/src/apis/StableCoinSystemApi.js create mode 100644 dist/cjs/service/src/apis/StableCoinSystemApi.js.map create mode 100644 dist/cjs/service/src/apis/StakingApi.d.ts create mode 100644 dist/cjs/service/src/apis/StakingApi.d.ts.map create mode 100644 dist/cjs/service/src/apis/StakingApi.js create mode 100644 dist/cjs/service/src/apis/StakingApi.js.map create mode 100644 dist/cjs/service/src/apis/SwapApi.d.ts create mode 100644 dist/cjs/service/src/apis/SwapApi.d.ts.map create mode 100644 dist/cjs/service/src/apis/SwapApi.js create mode 100644 dist/cjs/service/src/apis/SwapApi.js.map create mode 100644 dist/cjs/service/src/apis/VaultsApi.d.ts create mode 100644 dist/cjs/service/src/apis/VaultsApi.d.ts.map create mode 100644 dist/cjs/service/src/apis/VaultsApi.js create mode 100644 dist/cjs/service/src/apis/VaultsApi.js.map create mode 100644 dist/cjs/service/src/apis/WebsocketApi.d.ts create mode 100644 dist/cjs/service/src/apis/WebsocketApi.d.ts.map create mode 100644 dist/cjs/service/src/apis/WebsocketApi.js create mode 100644 dist/cjs/service/src/apis/WebsocketApi.js.map create mode 100644 dist/cjs/service/src/apis/index.d.ts create mode 100644 dist/cjs/service/src/apis/index.d.ts.map create mode 100644 dist/cjs/service/src/apis/index.js create mode 100644 dist/cjs/service/src/apis/index.js.map create mode 100644 dist/cjs/service/src/index.d.ts create mode 100644 dist/cjs/service/src/index.d.ts.map create mode 100644 dist/cjs/service/src/index.js create mode 100644 dist/cjs/service/src/index.js.map create mode 100644 dist/cjs/service/src/models/Account.d.ts create mode 100644 dist/cjs/service/src/models/Account.d.ts.map create mode 100644 dist/cjs/service/src/models/Account.js create mode 100644 dist/cjs/service/src/models/Account.js.map create mode 100644 dist/cjs/service/src/models/AccountLendingpoolSummary.d.ts create mode 100644 dist/cjs/service/src/models/AccountLendingpoolSummary.d.ts.map create mode 100644 dist/cjs/service/src/models/AccountLendingpoolSummary.js create mode 100644 dist/cjs/service/src/models/AccountLendingpoolSummary.js.map create mode 100644 dist/cjs/service/src/models/AccountStablecoinSystemSummary.d.ts create mode 100644 dist/cjs/service/src/models/AccountStablecoinSystemSummary.d.ts.map create mode 100644 dist/cjs/service/src/models/AccountStablecoinSystemSummary.js create mode 100644 dist/cjs/service/src/models/AccountStablecoinSystemSummary.js.map create mode 100644 dist/cjs/service/src/models/AccountStakingSummary.d.ts create mode 100644 dist/cjs/service/src/models/AccountStakingSummary.d.ts.map create mode 100644 dist/cjs/service/src/models/AccountStakingSummary.js create mode 100644 dist/cjs/service/src/models/AccountStakingSummary.js.map create mode 100644 dist/cjs/service/src/models/Address.d.ts create mode 100644 dist/cjs/service/src/models/Address.d.ts.map create mode 100644 dist/cjs/service/src/models/Address.js create mode 100644 dist/cjs/service/src/models/Address.js.map create mode 100644 dist/cjs/service/src/models/AddressResponse.d.ts create mode 100644 dist/cjs/service/src/models/AddressResponse.d.ts.map create mode 100644 dist/cjs/service/src/models/AddressResponse.js create mode 100644 dist/cjs/service/src/models/AddressResponse.js.map create mode 100644 dist/cjs/service/src/models/Balance.d.ts create mode 100644 dist/cjs/service/src/models/Balance.d.ts.map create mode 100644 dist/cjs/service/src/models/Balance.js create mode 100644 dist/cjs/service/src/models/Balance.js.map create mode 100644 dist/cjs/service/src/models/BasicEvent.d.ts create mode 100644 dist/cjs/service/src/models/BasicEvent.d.ts.map create mode 100644 dist/cjs/service/src/models/BasicEvent.js create mode 100644 dist/cjs/service/src/models/BasicEvent.js.map create mode 100644 dist/cjs/service/src/models/ChainActivity.d.ts create mode 100644 dist/cjs/service/src/models/ChainActivity.d.ts.map create mode 100644 dist/cjs/service/src/models/ChainActivity.js create mode 100644 dist/cjs/service/src/models/ChainActivity.js.map create mode 100644 dist/cjs/service/src/models/ChainActivityStep.d.ts create mode 100644 dist/cjs/service/src/models/ChainActivityStep.d.ts.map create mode 100644 dist/cjs/service/src/models/ChainActivityStep.js create mode 100644 dist/cjs/service/src/models/ChainActivityStep.js.map create mode 100644 dist/cjs/service/src/models/ChainActivityStepData.d.ts create mode 100644 dist/cjs/service/src/models/ChainActivityStepData.d.ts.map create mode 100644 dist/cjs/service/src/models/ChainActivityStepData.js create mode 100644 dist/cjs/service/src/models/ChainActivityStepData.js.map create mode 100644 dist/cjs/service/src/models/DutchAmount.d.ts create mode 100644 dist/cjs/service/src/models/DutchAmount.d.ts.map create mode 100644 dist/cjs/service/src/models/DutchAmount.js create mode 100644 dist/cjs/service/src/models/DutchAmount.js.map create mode 100644 dist/cjs/service/src/models/EIP712SignRequest.d.ts create mode 100644 dist/cjs/service/src/models/EIP712SignRequest.d.ts.map create mode 100644 dist/cjs/service/src/models/EIP712SignRequest.js create mode 100644 dist/cjs/service/src/models/EIP712SignRequest.js.map create mode 100644 dist/cjs/service/src/models/ErrorMessage.d.ts create mode 100644 dist/cjs/service/src/models/ErrorMessage.d.ts.map create mode 100644 dist/cjs/service/src/models/ErrorMessage.js create mode 100644 dist/cjs/service/src/models/ErrorMessage.js.map create mode 100644 dist/cjs/service/src/models/EventDetailsResponse.d.ts create mode 100644 dist/cjs/service/src/models/EventDetailsResponse.d.ts.map create mode 100644 dist/cjs/service/src/models/EventDetailsResponse.js create mode 100644 dist/cjs/service/src/models/EventDetailsResponse.js.map create mode 100644 dist/cjs/service/src/models/EventDomain.d.ts create mode 100644 dist/cjs/service/src/models/EventDomain.d.ts.map create mode 100644 dist/cjs/service/src/models/EventDomain.js create mode 100644 dist/cjs/service/src/models/EventDomain.js.map create mode 100644 dist/cjs/service/src/models/EventName.d.ts create mode 100644 dist/cjs/service/src/models/EventName.d.ts.map create mode 100644 dist/cjs/service/src/models/EventName.js create mode 100644 dist/cjs/service/src/models/EventName.js.map create mode 100644 dist/cjs/service/src/models/EventType.d.ts create mode 100644 dist/cjs/service/src/models/EventType.d.ts.map create mode 100644 dist/cjs/service/src/models/EventType.js create mode 100644 dist/cjs/service/src/models/EventType.js.map create mode 100644 dist/cjs/service/src/models/ExtendedEvent.d.ts create mode 100644 dist/cjs/service/src/models/ExtendedEvent.d.ts.map create mode 100644 dist/cjs/service/src/models/ExtendedEvent.js create mode 100644 dist/cjs/service/src/models/ExtendedEvent.js.map create mode 100644 dist/cjs/service/src/models/FormattedReserveData.d.ts create mode 100644 dist/cjs/service/src/models/FormattedReserveData.d.ts.map create mode 100644 dist/cjs/service/src/models/FormattedReserveData.js create mode 100644 dist/cjs/service/src/models/FormattedReserveData.js.map create mode 100644 dist/cjs/service/src/models/Ilk.d.ts create mode 100644 dist/cjs/service/src/models/Ilk.d.ts.map create mode 100644 dist/cjs/service/src/models/Ilk.js create mode 100644 dist/cjs/service/src/models/Ilk.js.map create mode 100644 dist/cjs/service/src/models/IlksResponse.d.ts create mode 100644 dist/cjs/service/src/models/IlksResponse.d.ts.map create mode 100644 dist/cjs/service/src/models/IlksResponse.js create mode 100644 dist/cjs/service/src/models/IlksResponse.js.map create mode 100644 dist/cjs/service/src/models/LendingpoolBorrow.d.ts create mode 100644 dist/cjs/service/src/models/LendingpoolBorrow.d.ts.map create mode 100644 dist/cjs/service/src/models/LendingpoolBorrow.js create mode 100644 dist/cjs/service/src/models/LendingpoolBorrow.js.map create mode 100644 dist/cjs/service/src/models/LendingpoolBorrowTxRequest.d.ts create mode 100644 dist/cjs/service/src/models/LendingpoolBorrowTxRequest.d.ts.map create mode 100644 dist/cjs/service/src/models/LendingpoolBorrowTxRequest.js create mode 100644 dist/cjs/service/src/models/LendingpoolBorrowTxRequest.js.map create mode 100644 dist/cjs/service/src/models/LendingpoolBorrowTxResponse.d.ts create mode 100644 dist/cjs/service/src/models/LendingpoolBorrowTxResponse.d.ts.map create mode 100644 dist/cjs/service/src/models/LendingpoolBorrowTxResponse.js create mode 100644 dist/cjs/service/src/models/LendingpoolBorrowTxResponse.js.map create mode 100644 dist/cjs/service/src/models/LendingpoolDeposit.d.ts create mode 100644 dist/cjs/service/src/models/LendingpoolDeposit.d.ts.map create mode 100644 dist/cjs/service/src/models/LendingpoolDeposit.js create mode 100644 dist/cjs/service/src/models/LendingpoolDeposit.js.map create mode 100644 dist/cjs/service/src/models/LendingpoolDepositTxRequest.d.ts create mode 100644 dist/cjs/service/src/models/LendingpoolDepositTxRequest.d.ts.map create mode 100644 dist/cjs/service/src/models/LendingpoolDepositTxRequest.js create mode 100644 dist/cjs/service/src/models/LendingpoolDepositTxRequest.js.map create mode 100644 dist/cjs/service/src/models/LendingpoolDepositTxResponse.d.ts create mode 100644 dist/cjs/service/src/models/LendingpoolDepositTxResponse.d.ts.map create mode 100644 dist/cjs/service/src/models/LendingpoolDepositTxResponse.js create mode 100644 dist/cjs/service/src/models/LendingpoolDepositTxResponse.js.map create mode 100644 dist/cjs/service/src/models/LendingpoolRepayTxRequest.d.ts create mode 100644 dist/cjs/service/src/models/LendingpoolRepayTxRequest.d.ts.map create mode 100644 dist/cjs/service/src/models/LendingpoolRepayTxRequest.js create mode 100644 dist/cjs/service/src/models/LendingpoolRepayTxRequest.js.map create mode 100644 dist/cjs/service/src/models/LendingpoolRepayTxResponse.d.ts create mode 100644 dist/cjs/service/src/models/LendingpoolRepayTxResponse.d.ts.map create mode 100644 dist/cjs/service/src/models/LendingpoolRepayTxResponse.js create mode 100644 dist/cjs/service/src/models/LendingpoolRepayTxResponse.js.map create mode 100644 dist/cjs/service/src/models/LendingpoolStats.d.ts create mode 100644 dist/cjs/service/src/models/LendingpoolStats.d.ts.map create mode 100644 dist/cjs/service/src/models/LendingpoolStats.js create mode 100644 dist/cjs/service/src/models/LendingpoolStats.js.map create mode 100644 dist/cjs/service/src/models/LendingpoolTxResponse.d.ts create mode 100644 dist/cjs/service/src/models/LendingpoolTxResponse.d.ts.map create mode 100644 dist/cjs/service/src/models/LendingpoolTxResponse.js create mode 100644 dist/cjs/service/src/models/LendingpoolTxResponse.js.map create mode 100644 dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.d.ts create mode 100644 dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.d.ts.map create mode 100644 dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.js create mode 100644 dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.js.map create mode 100644 dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.d.ts create mode 100644 dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.d.ts.map create mode 100644 dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.js create mode 100644 dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.js.map create mode 100644 dist/cjs/service/src/models/LendingpoolWithdrawTxRequest.d.ts create mode 100644 dist/cjs/service/src/models/LendingpoolWithdrawTxRequest.d.ts.map create mode 100644 dist/cjs/service/src/models/LendingpoolWithdrawTxRequest.js create mode 100644 dist/cjs/service/src/models/LendingpoolWithdrawTxRequest.js.map create mode 100644 dist/cjs/service/src/models/LendingpoolWithdrawTxResponse.d.ts create mode 100644 dist/cjs/service/src/models/LendingpoolWithdrawTxResponse.d.ts.map create mode 100644 dist/cjs/service/src/models/LendingpoolWithdrawTxResponse.js create mode 100644 dist/cjs/service/src/models/LendingpoolWithdrawTxResponse.js.map create mode 100644 dist/cjs/service/src/models/Log.d.ts create mode 100644 dist/cjs/service/src/models/Log.d.ts.map create mode 100644 dist/cjs/service/src/models/Log.js create mode 100644 dist/cjs/service/src/models/Log.js.map create mode 100644 dist/cjs/service/src/models/MethodParameters.d.ts create mode 100644 dist/cjs/service/src/models/MethodParameters.d.ts.map create mode 100644 dist/cjs/service/src/models/MethodParameters.js create mode 100644 dist/cjs/service/src/models/MethodParameters.js.map create mode 100644 dist/cjs/service/src/models/ModelError.d.ts create mode 100644 dist/cjs/service/src/models/ModelError.d.ts.map create mode 100644 dist/cjs/service/src/models/ModelError.js create mode 100644 dist/cjs/service/src/models/ModelError.js.map create mode 100644 dist/cjs/service/src/models/Order.d.ts create mode 100644 dist/cjs/service/src/models/Order.d.ts.map create mode 100644 dist/cjs/service/src/models/Order.js create mode 100644 dist/cjs/service/src/models/Order.js.map create mode 100644 dist/cjs/service/src/models/OrderInfo.d.ts create mode 100644 dist/cjs/service/src/models/OrderInfo.d.ts.map create mode 100644 dist/cjs/service/src/models/OrderInfo.js create mode 100644 dist/cjs/service/src/models/OrderInfo.js.map create mode 100644 dist/cjs/service/src/models/OrderResponse.d.ts create mode 100644 dist/cjs/service/src/models/OrderResponse.d.ts.map create mode 100644 dist/cjs/service/src/models/OrderResponse.js create mode 100644 dist/cjs/service/src/models/OrderResponse.js.map create mode 100644 dist/cjs/service/src/models/OrderType.d.ts create mode 100644 dist/cjs/service/src/models/OrderType.d.ts.map create mode 100644 dist/cjs/service/src/models/OrderType.js create mode 100644 dist/cjs/service/src/models/OrderType.js.map create mode 100644 dist/cjs/service/src/models/PermitSingle.d.ts create mode 100644 dist/cjs/service/src/models/PermitSingle.d.ts.map create mode 100644 dist/cjs/service/src/models/PermitSingle.js create mode 100644 dist/cjs/service/src/models/PermitSingle.js.map create mode 100644 dist/cjs/service/src/models/PersonalSignRequest.d.ts create mode 100644 dist/cjs/service/src/models/PersonalSignRequest.d.ts.map create mode 100644 dist/cjs/service/src/models/PersonalSignRequest.js create mode 100644 dist/cjs/service/src/models/PersonalSignRequest.js.map create mode 100644 dist/cjs/service/src/models/PreparedTx.d.ts create mode 100644 dist/cjs/service/src/models/PreparedTx.d.ts.map create mode 100644 dist/cjs/service/src/models/PreparedTx.js create mode 100644 dist/cjs/service/src/models/PreparedTx.js.map create mode 100644 dist/cjs/service/src/models/Price.d.ts create mode 100644 dist/cjs/service/src/models/Price.d.ts.map create mode 100644 dist/cjs/service/src/models/Price.js create mode 100644 dist/cjs/service/src/models/Price.js.map create mode 100644 dist/cjs/service/src/models/PriceListResponse.d.ts create mode 100644 dist/cjs/service/src/models/PriceListResponse.d.ts.map create mode 100644 dist/cjs/service/src/models/PriceListResponse.js create mode 100644 dist/cjs/service/src/models/PriceListResponse.js.map create mode 100644 dist/cjs/service/src/models/QuoteRequest.d.ts create mode 100644 dist/cjs/service/src/models/QuoteRequest.d.ts.map create mode 100644 dist/cjs/service/src/models/QuoteRequest.js create mode 100644 dist/cjs/service/src/models/QuoteRequest.js.map create mode 100644 dist/cjs/service/src/models/QuoteRequestOptions.d.ts create mode 100644 dist/cjs/service/src/models/QuoteRequestOptions.d.ts.map create mode 100644 dist/cjs/service/src/models/QuoteRequestOptions.js create mode 100644 dist/cjs/service/src/models/QuoteRequestOptions.js.map create mode 100644 dist/cjs/service/src/models/QuoteResponse.d.ts create mode 100644 dist/cjs/service/src/models/QuoteResponse.d.ts.map create mode 100644 dist/cjs/service/src/models/QuoteResponse.js create mode 100644 dist/cjs/service/src/models/QuoteResponse.js.map create mode 100644 dist/cjs/service/src/models/RawDutchAmount.d.ts create mode 100644 dist/cjs/service/src/models/RawDutchAmount.d.ts.map create mode 100644 dist/cjs/service/src/models/RawDutchAmount.js create mode 100644 dist/cjs/service/src/models/RawDutchAmount.js.map create mode 100644 dist/cjs/service/src/models/RouteItem.d.ts create mode 100644 dist/cjs/service/src/models/RouteItem.d.ts.map create mode 100644 dist/cjs/service/src/models/RouteItem.js create mode 100644 dist/cjs/service/src/models/RouteItem.js.map create mode 100644 dist/cjs/service/src/models/Scoreboard.d.ts create mode 100644 dist/cjs/service/src/models/Scoreboard.d.ts.map create mode 100644 dist/cjs/service/src/models/Scoreboard.js create mode 100644 dist/cjs/service/src/models/Scoreboard.js.map create mode 100644 dist/cjs/service/src/models/ScoreboardItem.d.ts create mode 100644 dist/cjs/service/src/models/ScoreboardItem.d.ts.map create mode 100644 dist/cjs/service/src/models/ScoreboardItem.js create mode 100644 dist/cjs/service/src/models/ScoreboardItem.js.map create mode 100644 dist/cjs/service/src/models/StablecoinSystemBarkTxRequest.d.ts create mode 100644 dist/cjs/service/src/models/StablecoinSystemBarkTxRequest.d.ts.map create mode 100644 dist/cjs/service/src/models/StablecoinSystemBarkTxRequest.js create mode 100644 dist/cjs/service/src/models/StablecoinSystemBarkTxRequest.js.map create mode 100644 dist/cjs/service/src/models/StablecoinSystemCreateVaultTxRequest.d.ts create mode 100644 dist/cjs/service/src/models/StablecoinSystemCreateVaultTxRequest.d.ts.map create mode 100644 dist/cjs/service/src/models/StablecoinSystemCreateVaultTxRequest.js create mode 100644 dist/cjs/service/src/models/StablecoinSystemCreateVaultTxRequest.js.map create mode 100644 dist/cjs/service/src/models/StablecoinSystemDepositCollateralTxRequest.d.ts create mode 100644 dist/cjs/service/src/models/StablecoinSystemDepositCollateralTxRequest.d.ts.map create mode 100644 dist/cjs/service/src/models/StablecoinSystemDepositCollateralTxRequest.js create mode 100644 dist/cjs/service/src/models/StablecoinSystemDepositCollateralTxRequest.js.map create mode 100644 dist/cjs/service/src/models/StablecoinSystemGemexitTxRequest.d.ts create mode 100644 dist/cjs/service/src/models/StablecoinSystemGemexitTxRequest.d.ts.map create mode 100644 dist/cjs/service/src/models/StablecoinSystemGemexitTxRequest.js create mode 100644 dist/cjs/service/src/models/StablecoinSystemGemexitTxRequest.js.map create mode 100644 dist/cjs/service/src/models/StablecoinSystemMintZarTxRequest.d.ts create mode 100644 dist/cjs/service/src/models/StablecoinSystemMintZarTxRequest.d.ts.map create mode 100644 dist/cjs/service/src/models/StablecoinSystemMintZarTxRequest.js create mode 100644 dist/cjs/service/src/models/StablecoinSystemMintZarTxRequest.js.map create mode 100644 dist/cjs/service/src/models/StablecoinSystemRedoTxRequest.d.ts create mode 100644 dist/cjs/service/src/models/StablecoinSystemRedoTxRequest.d.ts.map create mode 100644 dist/cjs/service/src/models/StablecoinSystemRedoTxRequest.js create mode 100644 dist/cjs/service/src/models/StablecoinSystemRedoTxRequest.js.map create mode 100644 dist/cjs/service/src/models/StablecoinSystemRepayZarTxRequest.d.ts create mode 100644 dist/cjs/service/src/models/StablecoinSystemRepayZarTxRequest.d.ts.map create mode 100644 dist/cjs/service/src/models/StablecoinSystemRepayZarTxRequest.js create mode 100644 dist/cjs/service/src/models/StablecoinSystemRepayZarTxRequest.js.map create mode 100644 dist/cjs/service/src/models/StablecoinSystemStats.d.ts create mode 100644 dist/cjs/service/src/models/StablecoinSystemStats.d.ts.map create mode 100644 dist/cjs/service/src/models/StablecoinSystemStats.js create mode 100644 dist/cjs/service/src/models/StablecoinSystemStats.js.map create mode 100644 dist/cjs/service/src/models/StablecoinSystemTakeTxRequest.d.ts create mode 100644 dist/cjs/service/src/models/StablecoinSystemTakeTxRequest.d.ts.map create mode 100644 dist/cjs/service/src/models/StablecoinSystemTakeTxRequest.js create mode 100644 dist/cjs/service/src/models/StablecoinSystemTakeTxRequest.js.map create mode 100644 dist/cjs/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.d.ts create mode 100644 dist/cjs/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.d.ts.map create mode 100644 dist/cjs/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.js create mode 100644 dist/cjs/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.js.map create mode 100644 dist/cjs/service/src/models/StablecoinSystemZarexitTxRequest.d.ts create mode 100644 dist/cjs/service/src/models/StablecoinSystemZarexitTxRequest.d.ts.map create mode 100644 dist/cjs/service/src/models/StablecoinSystemZarexitTxRequest.js create mode 100644 dist/cjs/service/src/models/StablecoinSystemZarexitTxRequest.js.map create mode 100644 dist/cjs/service/src/models/StablecoinSystemZarjoinTxRequest.d.ts create mode 100644 dist/cjs/service/src/models/StablecoinSystemZarjoinTxRequest.d.ts.map create mode 100644 dist/cjs/service/src/models/StablecoinSystemZarjoinTxRequest.js create mode 100644 dist/cjs/service/src/models/StablecoinSystemZarjoinTxRequest.js.map create mode 100644 dist/cjs/service/src/models/StakeBalance.d.ts create mode 100644 dist/cjs/service/src/models/StakeBalance.d.ts.map create mode 100644 dist/cjs/service/src/models/StakeBalance.js create mode 100644 dist/cjs/service/src/models/StakeBalance.js.map create mode 100644 dist/cjs/service/src/models/StakePlan.d.ts create mode 100644 dist/cjs/service/src/models/StakePlan.d.ts.map create mode 100644 dist/cjs/service/src/models/StakePlan.js create mode 100644 dist/cjs/service/src/models/StakePlan.js.map create mode 100644 dist/cjs/service/src/models/StakePlansResponse.d.ts create mode 100644 dist/cjs/service/src/models/StakePlansResponse.d.ts.map create mode 100644 dist/cjs/service/src/models/StakePlansResponse.js create mode 100644 dist/cjs/service/src/models/StakePlansResponse.js.map create mode 100644 dist/cjs/service/src/models/StakingCollectRewardTxRequest.d.ts create mode 100644 dist/cjs/service/src/models/StakingCollectRewardTxRequest.d.ts.map create mode 100644 dist/cjs/service/src/models/StakingCollectRewardTxRequest.js create mode 100644 dist/cjs/service/src/models/StakingCollectRewardTxRequest.js.map create mode 100644 dist/cjs/service/src/models/StakingCollectRewardTxResponse.d.ts create mode 100644 dist/cjs/service/src/models/StakingCollectRewardTxResponse.d.ts.map create mode 100644 dist/cjs/service/src/models/StakingCollectRewardTxResponse.js create mode 100644 dist/cjs/service/src/models/StakingCollectRewardTxResponse.js.map create mode 100644 dist/cjs/service/src/models/StakingStakeTxRequest.d.ts create mode 100644 dist/cjs/service/src/models/StakingStakeTxRequest.d.ts.map create mode 100644 dist/cjs/service/src/models/StakingStakeTxRequest.js create mode 100644 dist/cjs/service/src/models/StakingStakeTxRequest.js.map create mode 100644 dist/cjs/service/src/models/StakingStakeTxResponse.d.ts create mode 100644 dist/cjs/service/src/models/StakingStakeTxResponse.d.ts.map create mode 100644 dist/cjs/service/src/models/StakingStakeTxResponse.js create mode 100644 dist/cjs/service/src/models/StakingStakeTxResponse.js.map create mode 100644 dist/cjs/service/src/models/StakingWithdrawTxRequest.d.ts create mode 100644 dist/cjs/service/src/models/StakingWithdrawTxRequest.d.ts.map create mode 100644 dist/cjs/service/src/models/StakingWithdrawTxRequest.js create mode 100644 dist/cjs/service/src/models/StakingWithdrawTxRequest.js.map create mode 100644 dist/cjs/service/src/models/StakingWithdrawTxResponse.d.ts create mode 100644 dist/cjs/service/src/models/StakingWithdrawTxResponse.d.ts.map create mode 100644 dist/cjs/service/src/models/StakingWithdrawTxResponse.js create mode 100644 dist/cjs/service/src/models/StakingWithdrawTxResponse.js.map create mode 100644 dist/cjs/service/src/models/Stats.d.ts create mode 100644 dist/cjs/service/src/models/Stats.d.ts.map create mode 100644 dist/cjs/service/src/models/Stats.js create mode 100644 dist/cjs/service/src/models/Stats.js.map create mode 100644 dist/cjs/service/src/models/Symbol.d.ts create mode 100644 dist/cjs/service/src/models/Symbol.d.ts.map create mode 100644 dist/cjs/service/src/models/Symbol.js create mode 100644 dist/cjs/service/src/models/Symbol.js.map create mode 100644 dist/cjs/service/src/models/SystemBadDebt.d.ts create mode 100644 dist/cjs/service/src/models/SystemBadDebt.d.ts.map create mode 100644 dist/cjs/service/src/models/SystemBadDebt.js create mode 100644 dist/cjs/service/src/models/SystemBadDebt.js.map create mode 100644 dist/cjs/service/src/models/SystemDebt.d.ts create mode 100644 dist/cjs/service/src/models/SystemDebt.d.ts.map create mode 100644 dist/cjs/service/src/models/SystemDebt.js create mode 100644 dist/cjs/service/src/models/SystemDebt.js.map create mode 100644 dist/cjs/service/src/models/SystemDebtCeiling.d.ts create mode 100644 dist/cjs/service/src/models/SystemDebtCeiling.d.ts.map create mode 100644 dist/cjs/service/src/models/SystemDebtCeiling.js create mode 100644 dist/cjs/service/src/models/SystemDebtCeiling.js.map create mode 100644 dist/cjs/service/src/models/SystemSurplus.d.ts create mode 100644 dist/cjs/service/src/models/SystemSurplus.d.ts.map create mode 100644 dist/cjs/service/src/models/SystemSurplus.js create mode 100644 dist/cjs/service/src/models/SystemSurplus.js.map create mode 100644 dist/cjs/service/src/models/SystemSurplusBuffer.d.ts create mode 100644 dist/cjs/service/src/models/SystemSurplusBuffer.d.ts.map create mode 100644 dist/cjs/service/src/models/SystemSurplusBuffer.js create mode 100644 dist/cjs/service/src/models/SystemSurplusBuffer.js.map create mode 100644 dist/cjs/service/src/models/SystemSurplusLotSize.d.ts create mode 100644 dist/cjs/service/src/models/SystemSurplusLotSize.d.ts.map create mode 100644 dist/cjs/service/src/models/SystemSurplusLotSize.js create mode 100644 dist/cjs/service/src/models/SystemSurplusLotSize.js.map create mode 100644 dist/cjs/service/src/models/TimeRange.d.ts create mode 100644 dist/cjs/service/src/models/TimeRange.d.ts.map create mode 100644 dist/cjs/service/src/models/TimeRange.js create mode 100644 dist/cjs/service/src/models/TimeRange.js.map create mode 100644 dist/cjs/service/src/models/Timestamp.d.ts create mode 100644 dist/cjs/service/src/models/Timestamp.d.ts.map create mode 100644 dist/cjs/service/src/models/Timestamp.js create mode 100644 dist/cjs/service/src/models/Timestamp.js.map create mode 100644 dist/cjs/service/src/models/Token.d.ts create mode 100644 dist/cjs/service/src/models/Token.d.ts.map create mode 100644 dist/cjs/service/src/models/Token.js create mode 100644 dist/cjs/service/src/models/Token.js.map create mode 100644 dist/cjs/service/src/models/TradeType.d.ts create mode 100644 dist/cjs/service/src/models/TradeType.d.ts.map create mode 100644 dist/cjs/service/src/models/TradeType.js create mode 100644 dist/cjs/service/src/models/TradeType.js.map create mode 100644 dist/cjs/service/src/models/Type.d.ts create mode 100644 dist/cjs/service/src/models/Type.d.ts.map create mode 100644 dist/cjs/service/src/models/Type.js create mode 100644 dist/cjs/service/src/models/Type.js.map create mode 100644 dist/cjs/service/src/models/TypedData.d.ts create mode 100644 dist/cjs/service/src/models/TypedData.d.ts.map create mode 100644 dist/cjs/service/src/models/TypedData.js create mode 100644 dist/cjs/service/src/models/TypedData.js.map create mode 100644 dist/cjs/service/src/models/TypedDataDomain.d.ts create mode 100644 dist/cjs/service/src/models/TypedDataDomain.d.ts.map create mode 100644 dist/cjs/service/src/models/TypedDataDomain.js create mode 100644 dist/cjs/service/src/models/TypedDataDomain.js.map create mode 100644 dist/cjs/service/src/models/UnclaimedReward.d.ts create mode 100644 dist/cjs/service/src/models/UnclaimedReward.d.ts.map create mode 100644 dist/cjs/service/src/models/UnclaimedReward.js create mode 100644 dist/cjs/service/src/models/UnclaimedReward.js.map create mode 100644 dist/cjs/service/src/models/UpdateOrderRequest.d.ts create mode 100644 dist/cjs/service/src/models/UpdateOrderRequest.d.ts.map create mode 100644 dist/cjs/service/src/models/UpdateOrderRequest.js create mode 100644 dist/cjs/service/src/models/UpdateOrderRequest.js.map create mode 100644 dist/cjs/service/src/models/UserBorrowsResponse.d.ts create mode 100644 dist/cjs/service/src/models/UserBorrowsResponse.d.ts.map create mode 100644 dist/cjs/service/src/models/UserBorrowsResponse.js create mode 100644 dist/cjs/service/src/models/UserBorrowsResponse.js.map create mode 100644 dist/cjs/service/src/models/UserDepositsResponse.d.ts create mode 100644 dist/cjs/service/src/models/UserDepositsResponse.d.ts.map create mode 100644 dist/cjs/service/src/models/UserDepositsResponse.js create mode 100644 dist/cjs/service/src/models/UserDepositsResponse.js.map create mode 100644 dist/cjs/service/src/models/UserError.d.ts create mode 100644 dist/cjs/service/src/models/UserError.d.ts.map create mode 100644 dist/cjs/service/src/models/UserError.js create mode 100644 dist/cjs/service/src/models/UserError.js.map create mode 100644 dist/cjs/service/src/models/UserStake.d.ts create mode 100644 dist/cjs/service/src/models/UserStake.d.ts.map create mode 100644 dist/cjs/service/src/models/UserStake.js create mode 100644 dist/cjs/service/src/models/UserStake.js.map create mode 100644 dist/cjs/service/src/models/UserStakesResponse.d.ts create mode 100644 dist/cjs/service/src/models/UserStakesResponse.d.ts.map create mode 100644 dist/cjs/service/src/models/UserStakesResponse.js create mode 100644 dist/cjs/service/src/models/UserStakesResponse.js.map create mode 100644 dist/cjs/service/src/models/V3PoolInRoute.d.ts create mode 100644 dist/cjs/service/src/models/V3PoolInRoute.d.ts.map create mode 100644 dist/cjs/service/src/models/V3PoolInRoute.js create mode 100644 dist/cjs/service/src/models/V3PoolInRoute.js.map create mode 100644 dist/cjs/service/src/models/Vault.d.ts create mode 100644 dist/cjs/service/src/models/Vault.d.ts.map create mode 100644 dist/cjs/service/src/models/Vault.js create mode 100644 dist/cjs/service/src/models/Vault.js.map create mode 100644 dist/cjs/service/src/models/VaultEvent.d.ts create mode 100644 dist/cjs/service/src/models/VaultEvent.d.ts.map create mode 100644 dist/cjs/service/src/models/VaultEvent.js create mode 100644 dist/cjs/service/src/models/VaultEvent.js.map create mode 100644 dist/cjs/service/src/models/VaultEventExtension.d.ts create mode 100644 dist/cjs/service/src/models/VaultEventExtension.d.ts.map create mode 100644 dist/cjs/service/src/models/VaultEventExtension.js create mode 100644 dist/cjs/service/src/models/VaultEventExtension.js.map create mode 100644 dist/cjs/service/src/models/VaultEventItem.d.ts create mode 100644 dist/cjs/service/src/models/VaultEventItem.d.ts.map create mode 100644 dist/cjs/service/src/models/VaultEventItem.js create mode 100644 dist/cjs/service/src/models/VaultEventItem.js.map create mode 100644 dist/cjs/service/src/models/VaultEventsResponse.d.ts create mode 100644 dist/cjs/service/src/models/VaultEventsResponse.d.ts.map create mode 100644 dist/cjs/service/src/models/VaultEventsResponse.js create mode 100644 dist/cjs/service/src/models/VaultEventsResponse.js.map create mode 100644 dist/cjs/service/src/models/VaultsResponse.d.ts create mode 100644 dist/cjs/service/src/models/VaultsResponse.d.ts.map create mode 100644 dist/cjs/service/src/models/VaultsResponse.js create mode 100644 dist/cjs/service/src/models/VaultsResponse.js.map create mode 100644 dist/cjs/service/src/models/WalletBalance.d.ts create mode 100644 dist/cjs/service/src/models/WalletBalance.d.ts.map create mode 100644 dist/cjs/service/src/models/WalletBalance.js create mode 100644 dist/cjs/service/src/models/WalletBalance.js.map create mode 100644 dist/cjs/service/src/models/index.d.ts create mode 100644 dist/cjs/service/src/models/index.d.ts.map create mode 100644 dist/cjs/service/src/models/index.js create mode 100644 dist/cjs/service/src/models/index.js.map create mode 100644 dist/cjs/service/src/runtime.d.ts create mode 100644 dist/cjs/service/src/runtime.d.ts.map create mode 100644 dist/cjs/service/src/runtime.js create mode 100644 dist/cjs/service/src/runtime.js.map create mode 100644 dist/cjs/wallet/src/apis/AuthApi.d.ts create mode 100644 dist/cjs/wallet/src/apis/AuthApi.d.ts.map create mode 100644 dist/cjs/wallet/src/apis/AuthApi.js create mode 100644 dist/cjs/wallet/src/apis/AuthApi.js.map create mode 100644 dist/cjs/wallet/src/apis/BalanceApi.d.ts create mode 100644 dist/cjs/wallet/src/apis/BalanceApi.d.ts.map create mode 100644 dist/cjs/wallet/src/apis/BalanceApi.js create mode 100644 dist/cjs/wallet/src/apis/BalanceApi.js.map create mode 100644 dist/cjs/wallet/src/apis/CoinsApi.d.ts create mode 100644 dist/cjs/wallet/src/apis/CoinsApi.d.ts.map create mode 100644 dist/cjs/wallet/src/apis/CoinsApi.js create mode 100644 dist/cjs/wallet/src/apis/CoinsApi.js.map create mode 100644 dist/cjs/wallet/src/apis/DepositApi.d.ts create mode 100644 dist/cjs/wallet/src/apis/DepositApi.d.ts.map create mode 100644 dist/cjs/wallet/src/apis/DepositApi.js create mode 100644 dist/cjs/wallet/src/apis/DepositApi.js.map create mode 100644 dist/cjs/wallet/src/apis/HealthApi.d.ts create mode 100644 dist/cjs/wallet/src/apis/HealthApi.d.ts.map create mode 100644 dist/cjs/wallet/src/apis/HealthApi.js create mode 100644 dist/cjs/wallet/src/apis/HealthApi.js.map create mode 100644 dist/cjs/wallet/src/apis/LoansApi.d.ts create mode 100644 dist/cjs/wallet/src/apis/LoansApi.d.ts.map create mode 100644 dist/cjs/wallet/src/apis/LoansApi.js create mode 100644 dist/cjs/wallet/src/apis/LoansApi.js.map create mode 100644 dist/cjs/wallet/src/apis/PaymentApi.d.ts create mode 100644 dist/cjs/wallet/src/apis/PaymentApi.d.ts.map create mode 100644 dist/cjs/wallet/src/apis/PaymentApi.js create mode 100644 dist/cjs/wallet/src/apis/PaymentApi.js.map create mode 100644 dist/cjs/wallet/src/apis/PointsApi.d.ts create mode 100644 dist/cjs/wallet/src/apis/PointsApi.d.ts.map create mode 100644 dist/cjs/wallet/src/apis/PointsApi.js create mode 100644 dist/cjs/wallet/src/apis/PointsApi.js.map create mode 100644 dist/cjs/wallet/src/apis/RedemptionsApi.d.ts create mode 100644 dist/cjs/wallet/src/apis/RedemptionsApi.d.ts.map create mode 100644 dist/cjs/wallet/src/apis/RedemptionsApi.js create mode 100644 dist/cjs/wallet/src/apis/RedemptionsApi.js.map create mode 100644 dist/cjs/wallet/src/apis/ReferralsApi.d.ts create mode 100644 dist/cjs/wallet/src/apis/ReferralsApi.d.ts.map create mode 100644 dist/cjs/wallet/src/apis/ReferralsApi.js create mode 100644 dist/cjs/wallet/src/apis/ReferralsApi.js.map create mode 100644 dist/cjs/wallet/src/apis/SwapApi.d.ts create mode 100644 dist/cjs/wallet/src/apis/SwapApi.d.ts.map create mode 100644 dist/cjs/wallet/src/apis/SwapApi.js create mode 100644 dist/cjs/wallet/src/apis/SwapApi.js.map create mode 100644 dist/cjs/wallet/src/apis/TasksApi.d.ts create mode 100644 dist/cjs/wallet/src/apis/TasksApi.d.ts.map create mode 100644 dist/cjs/wallet/src/apis/TasksApi.js create mode 100644 dist/cjs/wallet/src/apis/TasksApi.js.map create mode 100644 dist/cjs/wallet/src/apis/TransactionsApi.d.ts create mode 100644 dist/cjs/wallet/src/apis/TransactionsApi.d.ts.map create mode 100644 dist/cjs/wallet/src/apis/TransactionsApi.js create mode 100644 dist/cjs/wallet/src/apis/TransactionsApi.js.map create mode 100644 dist/cjs/wallet/src/apis/UserApi.d.ts create mode 100644 dist/cjs/wallet/src/apis/UserApi.d.ts.map create mode 100644 dist/cjs/wallet/src/apis/UserApi.js create mode 100644 dist/cjs/wallet/src/apis/UserApi.js.map create mode 100644 dist/cjs/wallet/src/apis/WithdrawApi.d.ts create mode 100644 dist/cjs/wallet/src/apis/WithdrawApi.d.ts.map create mode 100644 dist/cjs/wallet/src/apis/WithdrawApi.js create mode 100644 dist/cjs/wallet/src/apis/WithdrawApi.js.map create mode 100644 dist/cjs/wallet/src/apis/index.d.ts create mode 100644 dist/cjs/wallet/src/apis/index.d.ts.map create mode 100644 dist/cjs/wallet/src/apis/index.js create mode 100644 dist/cjs/wallet/src/apis/index.js.map create mode 100644 dist/cjs/wallet/src/index.d.ts create mode 100644 dist/cjs/wallet/src/index.d.ts.map create mode 100644 dist/cjs/wallet/src/index.js create mode 100644 dist/cjs/wallet/src/index.js.map create mode 100644 dist/cjs/wallet/src/models/AdminRedemptionUpdateRequest.d.ts create mode 100644 dist/cjs/wallet/src/models/AdminRedemptionUpdateRequest.d.ts.map create mode 100644 dist/cjs/wallet/src/models/AdminRedemptionUpdateRequest.js create mode 100644 dist/cjs/wallet/src/models/AdminRedemptionUpdateRequest.js.map create mode 100644 dist/cjs/wallet/src/models/AuthTelegramRequest.d.ts create mode 100644 dist/cjs/wallet/src/models/AuthTelegramRequest.d.ts.map create mode 100644 dist/cjs/wallet/src/models/AuthTelegramRequest.js create mode 100644 dist/cjs/wallet/src/models/AuthTelegramRequest.js.map create mode 100644 dist/cjs/wallet/src/models/Balance.d.ts create mode 100644 dist/cjs/wallet/src/models/Balance.d.ts.map create mode 100644 dist/cjs/wallet/src/models/Balance.js create mode 100644 dist/cjs/wallet/src/models/Balance.js.map create mode 100644 dist/cjs/wallet/src/models/BankInfo.d.ts create mode 100644 dist/cjs/wallet/src/models/BankInfo.d.ts.map create mode 100644 dist/cjs/wallet/src/models/BankInfo.js create mode 100644 dist/cjs/wallet/src/models/BankInfo.js.map create mode 100644 dist/cjs/wallet/src/models/BulletContent.d.ts create mode 100644 dist/cjs/wallet/src/models/BulletContent.d.ts.map create mode 100644 dist/cjs/wallet/src/models/BulletContent.js create mode 100644 dist/cjs/wallet/src/models/BulletContent.js.map create mode 100644 dist/cjs/wallet/src/models/Coin.d.ts create mode 100644 dist/cjs/wallet/src/models/Coin.d.ts.map create mode 100644 dist/cjs/wallet/src/models/Coin.js create mode 100644 dist/cjs/wallet/src/models/Coin.js.map create mode 100644 dist/cjs/wallet/src/models/CoinConfig.d.ts create mode 100644 dist/cjs/wallet/src/models/CoinConfig.d.ts.map create mode 100644 dist/cjs/wallet/src/models/CoinConfig.js create mode 100644 dist/cjs/wallet/src/models/CoinConfig.js.map create mode 100644 dist/cjs/wallet/src/models/CoinResponse.d.ts create mode 100644 dist/cjs/wallet/src/models/CoinResponse.d.ts.map create mode 100644 dist/cjs/wallet/src/models/CoinResponse.js create mode 100644 dist/cjs/wallet/src/models/CoinResponse.js.map create mode 100644 dist/cjs/wallet/src/models/CreateChildUserRequest.d.ts create mode 100644 dist/cjs/wallet/src/models/CreateChildUserRequest.d.ts.map create mode 100644 dist/cjs/wallet/src/models/CreateChildUserRequest.js create mode 100644 dist/cjs/wallet/src/models/CreateChildUserRequest.js.map create mode 100644 dist/cjs/wallet/src/models/Currency.d.ts create mode 100644 dist/cjs/wallet/src/models/Currency.d.ts.map create mode 100644 dist/cjs/wallet/src/models/Currency.js create mode 100644 dist/cjs/wallet/src/models/Currency.js.map create mode 100644 dist/cjs/wallet/src/models/DepositResponse.d.ts create mode 100644 dist/cjs/wallet/src/models/DepositResponse.d.ts.map create mode 100644 dist/cjs/wallet/src/models/DepositResponse.js create mode 100644 dist/cjs/wallet/src/models/DepositResponse.js.map create mode 100644 dist/cjs/wallet/src/models/DetailedLoanToValueOptions.d.ts create mode 100644 dist/cjs/wallet/src/models/DetailedLoanToValueOptions.d.ts.map create mode 100644 dist/cjs/wallet/src/models/DetailedLoanToValueOptions.js create mode 100644 dist/cjs/wallet/src/models/DetailedLoanToValueOptions.js.map create mode 100644 dist/cjs/wallet/src/models/EmailOtpSubmitRequest.d.ts create mode 100644 dist/cjs/wallet/src/models/EmailOtpSubmitRequest.d.ts.map create mode 100644 dist/cjs/wallet/src/models/EmailOtpSubmitRequest.js create mode 100644 dist/cjs/wallet/src/models/EmailOtpSubmitRequest.js.map create mode 100644 dist/cjs/wallet/src/models/ErrorDetail.d.ts create mode 100644 dist/cjs/wallet/src/models/ErrorDetail.d.ts.map create mode 100644 dist/cjs/wallet/src/models/ErrorDetail.js create mode 100644 dist/cjs/wallet/src/models/ErrorDetail.js.map create mode 100644 dist/cjs/wallet/src/models/ExternalTransaction.d.ts create mode 100644 dist/cjs/wallet/src/models/ExternalTransaction.d.ts.map create mode 100644 dist/cjs/wallet/src/models/ExternalTransaction.js create mode 100644 dist/cjs/wallet/src/models/ExternalTransaction.js.map create mode 100644 dist/cjs/wallet/src/models/FriendPoints.d.ts create mode 100644 dist/cjs/wallet/src/models/FriendPoints.d.ts.map create mode 100644 dist/cjs/wallet/src/models/FriendPoints.js create mode 100644 dist/cjs/wallet/src/models/FriendPoints.js.map create mode 100644 dist/cjs/wallet/src/models/FriendPointsResponse.d.ts create mode 100644 dist/cjs/wallet/src/models/FriendPointsResponse.d.ts.map create mode 100644 dist/cjs/wallet/src/models/FriendPointsResponse.js create mode 100644 dist/cjs/wallet/src/models/FriendPointsResponse.js.map create mode 100644 dist/cjs/wallet/src/models/HealthStatus.d.ts create mode 100644 dist/cjs/wallet/src/models/HealthStatus.d.ts.map create mode 100644 dist/cjs/wallet/src/models/HealthStatus.js create mode 100644 dist/cjs/wallet/src/models/HealthStatus.js.map create mode 100644 dist/cjs/wallet/src/models/JwtResponse.d.ts create mode 100644 dist/cjs/wallet/src/models/JwtResponse.d.ts.map create mode 100644 dist/cjs/wallet/src/models/JwtResponse.js create mode 100644 dist/cjs/wallet/src/models/JwtResponse.js.map create mode 100644 dist/cjs/wallet/src/models/KycConfirmRequest.d.ts create mode 100644 dist/cjs/wallet/src/models/KycConfirmRequest.d.ts.map create mode 100644 dist/cjs/wallet/src/models/KycConfirmRequest.js create mode 100644 dist/cjs/wallet/src/models/KycConfirmRequest.js.map create mode 100644 dist/cjs/wallet/src/models/KycRequest.d.ts create mode 100644 dist/cjs/wallet/src/models/KycRequest.d.ts.map create mode 100644 dist/cjs/wallet/src/models/KycRequest.js create mode 100644 dist/cjs/wallet/src/models/KycRequest.js.map create mode 100644 dist/cjs/wallet/src/models/KycResponse.d.ts create mode 100644 dist/cjs/wallet/src/models/KycResponse.d.ts.map create mode 100644 dist/cjs/wallet/src/models/KycResponse.js create mode 100644 dist/cjs/wallet/src/models/KycResponse.js.map create mode 100644 dist/cjs/wallet/src/models/LoanCreateRequest.d.ts create mode 100644 dist/cjs/wallet/src/models/LoanCreateRequest.d.ts.map create mode 100644 dist/cjs/wallet/src/models/LoanCreateRequest.js create mode 100644 dist/cjs/wallet/src/models/LoanCreateRequest.js.map create mode 100644 dist/cjs/wallet/src/models/LoanPlan.d.ts create mode 100644 dist/cjs/wallet/src/models/LoanPlan.d.ts.map create mode 100644 dist/cjs/wallet/src/models/LoanPlan.js create mode 100644 dist/cjs/wallet/src/models/LoanPlan.js.map create mode 100644 dist/cjs/wallet/src/models/LoanPlanResponse.d.ts create mode 100644 dist/cjs/wallet/src/models/LoanPlanResponse.d.ts.map create mode 100644 dist/cjs/wallet/src/models/LoanPlanResponse.js create mode 100644 dist/cjs/wallet/src/models/LoanPlanResponse.js.map create mode 100644 dist/cjs/wallet/src/models/LoanToValueOptions.d.ts create mode 100644 dist/cjs/wallet/src/models/LoanToValueOptions.d.ts.map create mode 100644 dist/cjs/wallet/src/models/LoanToValueOptions.js create mode 100644 dist/cjs/wallet/src/models/LoanToValueOptions.js.map create mode 100644 dist/cjs/wallet/src/models/LoansResponse.d.ts create mode 100644 dist/cjs/wallet/src/models/LoansResponse.d.ts.map create mode 100644 dist/cjs/wallet/src/models/LoansResponse.js create mode 100644 dist/cjs/wallet/src/models/LoansResponse.js.map create mode 100644 dist/cjs/wallet/src/models/LoansResponseList.d.ts create mode 100644 dist/cjs/wallet/src/models/LoansResponseList.d.ts.map create mode 100644 dist/cjs/wallet/src/models/LoansResponseList.js create mode 100644 dist/cjs/wallet/src/models/LoansResponseList.js.map create mode 100644 dist/cjs/wallet/src/models/LoginRequest.d.ts create mode 100644 dist/cjs/wallet/src/models/LoginRequest.d.ts.map create mode 100644 dist/cjs/wallet/src/models/LoginRequest.js create mode 100644 dist/cjs/wallet/src/models/LoginRequest.js.map create mode 100644 dist/cjs/wallet/src/models/ModelError.d.ts create mode 100644 dist/cjs/wallet/src/models/ModelError.d.ts.map create mode 100644 dist/cjs/wallet/src/models/ModelError.js create mode 100644 dist/cjs/wallet/src/models/ModelError.js.map create mode 100644 dist/cjs/wallet/src/models/Network.d.ts create mode 100644 dist/cjs/wallet/src/models/Network.d.ts.map create mode 100644 dist/cjs/wallet/src/models/Network.js create mode 100644 dist/cjs/wallet/src/models/Network.js.map create mode 100644 dist/cjs/wallet/src/models/Payment.d.ts create mode 100644 dist/cjs/wallet/src/models/Payment.d.ts.map create mode 100644 dist/cjs/wallet/src/models/Payment.js create mode 100644 dist/cjs/wallet/src/models/Payment.js.map create mode 100644 dist/cjs/wallet/src/models/PaymentRequest.d.ts create mode 100644 dist/cjs/wallet/src/models/PaymentRequest.d.ts.map create mode 100644 dist/cjs/wallet/src/models/PaymentRequest.js create mode 100644 dist/cjs/wallet/src/models/PaymentRequest.js.map create mode 100644 dist/cjs/wallet/src/models/PhoneOtpSubmitRequest.d.ts create mode 100644 dist/cjs/wallet/src/models/PhoneOtpSubmitRequest.d.ts.map create mode 100644 dist/cjs/wallet/src/models/PhoneOtpSubmitRequest.js create mode 100644 dist/cjs/wallet/src/models/PhoneOtpSubmitRequest.js.map create mode 100644 dist/cjs/wallet/src/models/ProfileResponse.d.ts create mode 100644 dist/cjs/wallet/src/models/ProfileResponse.d.ts.map create mode 100644 dist/cjs/wallet/src/models/ProfileResponse.js create mode 100644 dist/cjs/wallet/src/models/ProfileResponse.js.map create mode 100644 dist/cjs/wallet/src/models/Redemption.d.ts create mode 100644 dist/cjs/wallet/src/models/Redemption.d.ts.map create mode 100644 dist/cjs/wallet/src/models/Redemption.js create mode 100644 dist/cjs/wallet/src/models/Redemption.js.map create mode 100644 dist/cjs/wallet/src/models/RedemptionRequest.d.ts create mode 100644 dist/cjs/wallet/src/models/RedemptionRequest.d.ts.map create mode 100644 dist/cjs/wallet/src/models/RedemptionRequest.js create mode 100644 dist/cjs/wallet/src/models/RedemptionRequest.js.map create mode 100644 dist/cjs/wallet/src/models/RedemptionResponse.d.ts create mode 100644 dist/cjs/wallet/src/models/RedemptionResponse.d.ts.map create mode 100644 dist/cjs/wallet/src/models/RedemptionResponse.js create mode 100644 dist/cjs/wallet/src/models/RedemptionResponse.js.map create mode 100644 dist/cjs/wallet/src/models/Referral.d.ts create mode 100644 dist/cjs/wallet/src/models/Referral.d.ts.map create mode 100644 dist/cjs/wallet/src/models/Referral.js create mode 100644 dist/cjs/wallet/src/models/Referral.js.map create mode 100644 dist/cjs/wallet/src/models/ReferralResponse.d.ts create mode 100644 dist/cjs/wallet/src/models/ReferralResponse.d.ts.map create mode 100644 dist/cjs/wallet/src/models/ReferralResponse.js create mode 100644 dist/cjs/wallet/src/models/ReferralResponse.js.map create mode 100644 dist/cjs/wallet/src/models/RepayLoanRequest.d.ts create mode 100644 dist/cjs/wallet/src/models/RepayLoanRequest.d.ts.map create mode 100644 dist/cjs/wallet/src/models/RepayLoanRequest.js create mode 100644 dist/cjs/wallet/src/models/RepayLoanRequest.js.map create mode 100644 dist/cjs/wallet/src/models/SignUpRequest.d.ts create mode 100644 dist/cjs/wallet/src/models/SignUpRequest.d.ts.map create mode 100644 dist/cjs/wallet/src/models/SignUpRequest.js create mode 100644 dist/cjs/wallet/src/models/SignUpRequest.js.map create mode 100644 dist/cjs/wallet/src/models/SimpleResponse.d.ts create mode 100644 dist/cjs/wallet/src/models/SimpleResponse.d.ts.map create mode 100644 dist/cjs/wallet/src/models/SimpleResponse.js create mode 100644 dist/cjs/wallet/src/models/SimpleResponse.js.map create mode 100644 dist/cjs/wallet/src/models/SwapRequest.d.ts create mode 100644 dist/cjs/wallet/src/models/SwapRequest.d.ts.map create mode 100644 dist/cjs/wallet/src/models/SwapRequest.js create mode 100644 dist/cjs/wallet/src/models/SwapRequest.js.map create mode 100644 dist/cjs/wallet/src/models/SwapResponse.d.ts create mode 100644 dist/cjs/wallet/src/models/SwapResponse.d.ts.map create mode 100644 dist/cjs/wallet/src/models/SwapResponse.js create mode 100644 dist/cjs/wallet/src/models/SwapResponse.js.map create mode 100644 dist/cjs/wallet/src/models/Symbol.d.ts create mode 100644 dist/cjs/wallet/src/models/Symbol.d.ts.map create mode 100644 dist/cjs/wallet/src/models/Symbol.js create mode 100644 dist/cjs/wallet/src/models/Symbol.js.map create mode 100644 dist/cjs/wallet/src/models/Task.d.ts create mode 100644 dist/cjs/wallet/src/models/Task.d.ts.map create mode 100644 dist/cjs/wallet/src/models/Task.js create mode 100644 dist/cjs/wallet/src/models/Task.js.map create mode 100644 dist/cjs/wallet/src/models/TaskResponse.d.ts create mode 100644 dist/cjs/wallet/src/models/TaskResponse.d.ts.map create mode 100644 dist/cjs/wallet/src/models/TaskResponse.js create mode 100644 dist/cjs/wallet/src/models/TaskResponse.js.map create mode 100644 dist/cjs/wallet/src/models/TelegramProfile.d.ts create mode 100644 dist/cjs/wallet/src/models/TelegramProfile.d.ts.map create mode 100644 dist/cjs/wallet/src/models/TelegramProfile.js create mode 100644 dist/cjs/wallet/src/models/TelegramProfile.js.map create mode 100644 dist/cjs/wallet/src/models/Timestamp.d.ts create mode 100644 dist/cjs/wallet/src/models/Timestamp.d.ts.map create mode 100644 dist/cjs/wallet/src/models/Timestamp.js create mode 100644 dist/cjs/wallet/src/models/Timestamp.js.map create mode 100644 dist/cjs/wallet/src/models/Transaction.d.ts create mode 100644 dist/cjs/wallet/src/models/Transaction.d.ts.map create mode 100644 dist/cjs/wallet/src/models/Transaction.js create mode 100644 dist/cjs/wallet/src/models/Transaction.js.map create mode 100644 dist/cjs/wallet/src/models/TransactionResponse.d.ts create mode 100644 dist/cjs/wallet/src/models/TransactionResponse.d.ts.map create mode 100644 dist/cjs/wallet/src/models/TransactionResponse.js create mode 100644 dist/cjs/wallet/src/models/TransactionResponse.js.map create mode 100644 dist/cjs/wallet/src/models/TransactionStatus.d.ts create mode 100644 dist/cjs/wallet/src/models/TransactionStatus.d.ts.map create mode 100644 dist/cjs/wallet/src/models/TransactionStatus.js create mode 100644 dist/cjs/wallet/src/models/TransactionStatus.js.map create mode 100644 dist/cjs/wallet/src/models/TransactionType.d.ts create mode 100644 dist/cjs/wallet/src/models/TransactionType.d.ts.map create mode 100644 dist/cjs/wallet/src/models/TransactionType.js create mode 100644 dist/cjs/wallet/src/models/TransactionType.js.map create mode 100644 dist/cjs/wallet/src/models/UpdateEmailRequest.d.ts create mode 100644 dist/cjs/wallet/src/models/UpdateEmailRequest.d.ts.map create mode 100644 dist/cjs/wallet/src/models/UpdateEmailRequest.js create mode 100644 dist/cjs/wallet/src/models/UpdateEmailRequest.js.map create mode 100644 dist/cjs/wallet/src/models/UpdatePhoneRequest.d.ts create mode 100644 dist/cjs/wallet/src/models/UpdatePhoneRequest.d.ts.map create mode 100644 dist/cjs/wallet/src/models/UpdatePhoneRequest.js create mode 100644 dist/cjs/wallet/src/models/UpdatePhoneRequest.js.map create mode 100644 dist/cjs/wallet/src/models/User.d.ts create mode 100644 dist/cjs/wallet/src/models/User.d.ts.map create mode 100644 dist/cjs/wallet/src/models/User.js create mode 100644 dist/cjs/wallet/src/models/User.js.map create mode 100644 dist/cjs/wallet/src/models/UserError.d.ts create mode 100644 dist/cjs/wallet/src/models/UserError.d.ts.map create mode 100644 dist/cjs/wallet/src/models/UserError.js create mode 100644 dist/cjs/wallet/src/models/UserError.js.map create mode 100644 dist/cjs/wallet/src/models/WalletBalance.d.ts create mode 100644 dist/cjs/wallet/src/models/WalletBalance.d.ts.map create mode 100644 dist/cjs/wallet/src/models/WalletBalance.js create mode 100644 dist/cjs/wallet/src/models/WalletBalance.js.map create mode 100644 dist/cjs/wallet/src/models/WithdrawRequest.d.ts create mode 100644 dist/cjs/wallet/src/models/WithdrawRequest.d.ts.map create mode 100644 dist/cjs/wallet/src/models/WithdrawRequest.js create mode 100644 dist/cjs/wallet/src/models/WithdrawRequest.js.map create mode 100644 dist/cjs/wallet/src/models/WithdrawRequestBody.d.ts create mode 100644 dist/cjs/wallet/src/models/WithdrawRequestBody.d.ts.map create mode 100644 dist/cjs/wallet/src/models/WithdrawRequestBody.js create mode 100644 dist/cjs/wallet/src/models/WithdrawRequestBody.js.map create mode 100644 dist/cjs/wallet/src/models/WithdrawRequestPreview.d.ts create mode 100644 dist/cjs/wallet/src/models/WithdrawRequestPreview.d.ts.map create mode 100644 dist/cjs/wallet/src/models/WithdrawRequestPreview.js create mode 100644 dist/cjs/wallet/src/models/WithdrawRequestPreview.js.map create mode 100644 dist/cjs/wallet/src/models/WithdrawRequestResponse.d.ts create mode 100644 dist/cjs/wallet/src/models/WithdrawRequestResponse.d.ts.map create mode 100644 dist/cjs/wallet/src/models/WithdrawRequestResponse.js create mode 100644 dist/cjs/wallet/src/models/WithdrawRequestResponse.js.map create mode 100644 dist/cjs/wallet/src/models/WithdrawResponseBody.d.ts create mode 100644 dist/cjs/wallet/src/models/WithdrawResponseBody.d.ts.map create mode 100644 dist/cjs/wallet/src/models/WithdrawResponseBody.js create mode 100644 dist/cjs/wallet/src/models/WithdrawResponseBody.js.map create mode 100644 dist/cjs/wallet/src/models/index.d.ts create mode 100644 dist/cjs/wallet/src/models/index.d.ts.map create mode 100644 dist/cjs/wallet/src/models/index.js create mode 100644 dist/cjs/wallet/src/models/index.js.map create mode 100644 dist/cjs/wallet/src/runtime.d.ts create mode 100644 dist/cjs/wallet/src/runtime.d.ts.map create mode 100644 dist/cjs/wallet/src/runtime.js create mode 100644 dist/cjs/wallet/src/runtime.js.map create mode 100644 tsconfig.cjs.json diff --git a/dist/cjs/index.d.ts b/dist/cjs/index.d.ts new file mode 100644 index 0000000..6db0cf7 --- /dev/null +++ b/dist/cjs/index.d.ts @@ -0,0 +1,3 @@ +export * as Service from "./service/src/index.js"; +export * as Wallet from "./wallet/src/index.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/cjs/index.d.ts.map b/dist/cjs/index.d.ts.map new file mode 100644 index 0000000..258133e --- /dev/null +++ b/dist/cjs/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,wBAAwB,CAAC;AAClD,OAAO,KAAK,MAAM,MAAM,uBAAuB,CAAC"} \ No newline at end of file diff --git a/dist/cjs/index.js b/dist/cjs/index.js new file mode 100644 index 0000000..fbaaf67 --- /dev/null +++ b/dist/cjs/index.js @@ -0,0 +1,7 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Wallet = exports.Service = void 0; +const tslib_1 = require("tslib"); +exports.Service = tslib_1.__importStar(require("./service/src/index.js")); +exports.Wallet = tslib_1.__importStar(require("./wallet/src/index.js")); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/cjs/index.js.map b/dist/cjs/index.js.map new file mode 100644 index 0000000..fe4e21f --- /dev/null +++ b/dist/cjs/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,0EAAkD;AAClD,wEAAgD"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/AccountsApi.d.ts b/dist/cjs/service/src/apis/AccountsApi.d.ts new file mode 100644 index 0000000..7791cc2 --- /dev/null +++ b/dist/cjs/service/src/apis/AccountsApi.d.ts @@ -0,0 +1,54 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { Account } from '../models/index'; +export interface GetAccountByAddressRequest { + address: string; +} +/** + * AccountsApi - interface + * + * @export + * @interface AccountsApiInterface + */ +export interface AccountsApiInterface { + /** + * Get account by address + * @summary Get account by address + * @param {string} address Ethereum address of the account + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AccountsApiInterface + */ + getAccountByAddressRaw(requestParameters: GetAccountByAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get account by address + * Get account by address + */ + getAccountByAddress(requestParameters: GetAccountByAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class AccountsApi extends runtime.BaseAPI implements AccountsApiInterface { + /** + * Get account by address + * Get account by address + */ + getAccountByAddressRaw(requestParameters: GetAccountByAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get account by address + * Get account by address + */ + getAccountByAddress(requestParameters: GetAccountByAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=AccountsApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/AccountsApi.d.ts.map b/dist/cjs/service/src/apis/AccountsApi.d.ts.map new file mode 100644 index 0000000..bdfe3f5 --- /dev/null +++ b/dist/cjs/service/src/apis/AccountsApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"AccountsApi.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/apis/AccountsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,OAAO,EACR,MAAM,iBAAiB,CAAC;AAMzB,MAAM,WAAW,0BAA0B;IACvC,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;;;;OAOG;IACH,sBAAsB,CAAC,iBAAiB,EAAE,0BAA0B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;IAEzK;;;OAGG;IACH,mBAAmB,CAAC,iBAAiB,EAAE,0BAA0B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAEpJ;AAED;;GAEG;AACH,qBAAa,WAAY,SAAQ,OAAO,CAAC,OAAQ,YAAW,oBAAoB;IAE5E;;;OAGG;IACG,sBAAsB,CAAC,iBAAiB,EAAE,0BAA0B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAsB9K;;;OAGG;IACG,mBAAmB,CAAC,iBAAiB,EAAE,0BAA0B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC;CAKzJ"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/AccountsApi.js b/dist/cjs/service/src/apis/AccountsApi.js new file mode 100644 index 0000000..d824156 --- /dev/null +++ b/dist/cjs/service/src/apis/AccountsApi.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AccountsApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class AccountsApi extends runtime.BaseAPI { + /** + * Get account by address + * Get account by address + */ + async getAccountByAddressRaw(requestParameters, initOverrides) { + if (requestParameters['address'] == null) { + throw new runtime.RequiredError('address', 'Required parameter "address" was null or undefined when calling getAccountByAddress().'); + } + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/v2/accounts/{address}`.replace(`{${"address"}}`, encodeURIComponent(String(requestParameters['address']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AccountFromJSON)(jsonValue)); + } + /** + * Get account by address + * Get account by address + */ + async getAccountByAddress(requestParameters, initOverrides) { + const response = await this.getAccountByAddressRaw(requestParameters, initOverrides); + return await response.value(); + } +} +exports.AccountsApi = AccountsApi; +//# sourceMappingURL=AccountsApi.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/AccountsApi.js.map b/dist/cjs/service/src/apis/AccountsApi.js.map new file mode 100644 index 0000000..da3048d --- /dev/null +++ b/dist/cjs/service/src/apis/AccountsApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AccountsApi.js","sourceRoot":"","sources":["../../../../../src/service/src/apis/AccountsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAItC,2CAGyB;AA+BzB;;GAEG;AACH,MAAa,WAAY,SAAQ,OAAO,CAAC,OAAO;IAE5C;;;OAGG;IACH,KAAK,CAAC,sBAAsB,CAAC,iBAA6C,EAAE,aAA0D;QAClI,IAAI,iBAAiB,CAAC,SAAS,CAAC,IAAI,IAAI,EAAE,CAAC;YACvC,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,SAAS,EACT,wFAAwF,CAC3F,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,wBAAwB,CAAC,OAAO,CAAC,IAAI,SAAS,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;YAClH,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,uBAAe,EAAC,SAAS,CAAC,CAAC,CAAC;IAC5F,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,mBAAmB,CAAC,iBAA6C,EAAE,aAA0D;QAC/H,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACrF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AArCD,kCAqCC"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/AddressesApi.d.ts b/dist/cjs/service/src/apis/AddressesApi.d.ts new file mode 100644 index 0000000..ddf30b1 --- /dev/null +++ b/dist/cjs/service/src/apis/AddressesApi.d.ts @@ -0,0 +1,54 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { AddressResponse } from '../models/index'; +export interface GetAllAddressesRequest { + format?: string; +} +/** + * AddressesApi - interface + * + * @export + * @interface AddressesApiInterface + */ +export interface AddressesApiInterface { + /** + * All addresses knows to Zarban. + * @summary Get all addresses + * @param {string} [format] The type of addresses to return + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AddressesApiInterface + */ + getAllAddressesRaw(requestParameters: GetAllAddressesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * All addresses knows to Zarban. + * Get all addresses + */ + getAllAddresses(requestParameters: GetAllAddressesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class AddressesApi extends runtime.BaseAPI implements AddressesApiInterface { + /** + * All addresses knows to Zarban. + * Get all addresses + */ + getAllAddressesRaw(requestParameters: GetAllAddressesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * All addresses knows to Zarban. + * Get all addresses + */ + getAllAddresses(requestParameters?: GetAllAddressesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=AddressesApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/AddressesApi.d.ts.map b/dist/cjs/service/src/apis/AddressesApi.d.ts.map new file mode 100644 index 0000000..5e0610a --- /dev/null +++ b/dist/cjs/service/src/apis/AddressesApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"AddressesApi.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/apis/AddressesApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAMzB,MAAM,WAAW,sBAAsB;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;;;;OAOG;IACH,kBAAkB,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,CAAC;IAEzK;;;OAGG;IACH,eAAe,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;CAEpJ;AAED;;GAEG;AACH,qBAAa,YAAa,SAAQ,OAAO,CAAC,OAAQ,YAAW,qBAAqB;IAE9E;;;OAGG;IACG,kBAAkB,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;IAmB9K;;;OAGG;IACG,eAAe,CAAC,iBAAiB,GAAE,sBAA2B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,eAAe,CAAC;CAK9J"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/AddressesApi.js b/dist/cjs/service/src/apis/AddressesApi.js new file mode 100644 index 0000000..3de6dde --- /dev/null +++ b/dist/cjs/service/src/apis/AddressesApi.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AddressesApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class AddressesApi extends runtime.BaseAPI { + /** + * All addresses knows to Zarban. + * Get all addresses + */ + async getAllAddressesRaw(requestParameters, initOverrides) { + const queryParameters = {}; + if (requestParameters['format'] != null) { + queryParameters['format'] = requestParameters['format']; + } + const headerParameters = {}; + const response = await this.request({ + path: `/v2/addresses`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.AddressResponseFromJSON)(jsonValue)); + } + /** + * All addresses knows to Zarban. + * Get all addresses + */ + async getAllAddresses(requestParameters = {}, initOverrides) { + const response = await this.getAllAddressesRaw(requestParameters, initOverrides); + return await response.value(); + } +} +exports.AddressesApi = AddressesApi; +//# sourceMappingURL=AddressesApi.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/AddressesApi.js.map b/dist/cjs/service/src/apis/AddressesApi.js.map new file mode 100644 index 0000000..9947cd8 --- /dev/null +++ b/dist/cjs/service/src/apis/AddressesApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AddressesApi.js","sourceRoot":"","sources":["../../../../../src/service/src/apis/AddressesApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAItC,2CAGyB;AA+BzB;;GAEG;AACH,MAAa,YAAa,SAAQ,OAAO,CAAC,OAAO;IAE7C;;;OAGG;IACH,KAAK,CAAC,kBAAkB,CAAC,iBAAyC,EAAE,aAA0D;QAC1H,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,IAAI,iBAAiB,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;YACtC,eAAe,CAAC,QAAQ,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QAC5D,CAAC;QAED,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,eAAe;YACrB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,+BAAuB,EAAC,SAAS,CAAC,CAAC,CAAC;IACpG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,eAAe,CAAC,oBAA4C,EAAE,EAAE,aAA0D;QAC5H,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACjF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAlCD,oCAkCC"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/BorrowsApi.d.ts b/dist/cjs/service/src/apis/BorrowsApi.d.ts new file mode 100644 index 0000000..9cc9819 --- /dev/null +++ b/dist/cjs/service/src/apis/BorrowsApi.d.ts @@ -0,0 +1,60 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { UserBorrowsResponse } from '../models/index'; +export interface GetUserBorrowsRequest { + user?: string; + reserve?: string; + cursor?: number; + limit?: number; +} +/** + * BorrowsApi - interface + * + * @export + * @interface BorrowsApiInterface + */ +export interface BorrowsApiInterface { + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BorrowsApiInterface + */ + getUserBorrowsRaw(requestParameters: GetUserBorrowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get user borrows of lendingpool + * Get user borrows of lendingpool + */ + getUserBorrows(requestParameters: GetUserBorrowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class BorrowsApi extends runtime.BaseAPI implements BorrowsApiInterface { + /** + * Get user borrows of lendingpool + * Get user borrows of lendingpool + */ + getUserBorrowsRaw(requestParameters: GetUserBorrowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get user borrows of lendingpool + * Get user borrows of lendingpool + */ + getUserBorrows(requestParameters?: GetUserBorrowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=BorrowsApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/BorrowsApi.d.ts.map b/dist/cjs/service/src/apis/BorrowsApi.d.ts.map new file mode 100644 index 0000000..623b79b --- /dev/null +++ b/dist/cjs/service/src/apis/BorrowsApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"BorrowsApi.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/apis/BorrowsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AAMzB,MAAM,WAAW,qBAAqB;IAClC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;;;;;;;OAUG;IACH,iBAAiB,CAAC,iBAAiB,EAAE,qBAAqB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAE3K;;;OAGG;IACH,cAAc,CAAC,iBAAiB,EAAE,qBAAqB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAEtJ;AAED;;GAEG;AACH,qBAAa,UAAW,SAAQ,OAAO,CAAC,OAAQ,YAAW,mBAAmB;IAE1E;;;OAGG;IACG,iBAAiB,CAAC,iBAAiB,EAAE,qBAAqB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC;IA+BhL;;;OAGG;IACG,cAAc,CAAC,iBAAiB,GAAE,qBAA0B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAKhK"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/BorrowsApi.js b/dist/cjs/service/src/apis/BorrowsApi.js new file mode 100644 index 0000000..e15365b --- /dev/null +++ b/dist/cjs/service/src/apis/BorrowsApi.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BorrowsApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class BorrowsApi extends runtime.BaseAPI { + /** + * Get user borrows of lendingpool + * Get user borrows of lendingpool + */ + async getUserBorrowsRaw(requestParameters, initOverrides) { + const queryParameters = {}; + if (requestParameters['user'] != null) { + queryParameters['user'] = requestParameters['user']; + } + if (requestParameters['reserve'] != null) { + queryParameters['reserve'] = requestParameters['reserve']; + } + if (requestParameters['cursor'] != null) { + queryParameters['cursor'] = requestParameters['cursor']; + } + if (requestParameters['limit'] != null) { + queryParameters['limit'] = requestParameters['limit']; + } + const headerParameters = {}; + const response = await this.request({ + path: `/v2/lendingpool/borrows`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserBorrowsResponseFromJSON)(jsonValue)); + } + /** + * Get user borrows of lendingpool + * Get user borrows of lendingpool + */ + async getUserBorrows(requestParameters = {}, initOverrides) { + const response = await this.getUserBorrowsRaw(requestParameters, initOverrides); + return await response.value(); + } +} +exports.BorrowsApi = BorrowsApi; +//# sourceMappingURL=BorrowsApi.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/BorrowsApi.js.map b/dist/cjs/service/src/apis/BorrowsApi.js.map new file mode 100644 index 0000000..f9a290c --- /dev/null +++ b/dist/cjs/service/src/apis/BorrowsApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BorrowsApi.js","sourceRoot":"","sources":["../../../../../src/service/src/apis/BorrowsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,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M,IAAI,CAAC,iBAAiB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAChF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AA9CD,gCA8CC"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/CollectorApi.d.ts b/dist/cjs/service/src/apis/CollectorApi.d.ts new file mode 100644 index 0000000..21522cd --- /dev/null +++ b/dist/cjs/service/src/apis/CollectorApi.d.ts @@ -0,0 +1,50 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { Stats } from '../models/index'; +/** + * CollectorApi - interface + * + * @export + * @interface CollectorApiInterface + */ +export interface CollectorApiInterface { + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CollectorApiInterface + */ + getCollectorDataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get collector data + * Get collector data + */ + getCollectorData(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class CollectorApi extends runtime.BaseAPI implements CollectorApiInterface { + /** + * Get collector data + * Get collector data + */ + getCollectorDataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get collector data + * Get collector data + */ + getCollectorData(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=CollectorApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/CollectorApi.d.ts.map b/dist/cjs/service/src/apis/CollectorApi.d.ts.map new file mode 100644 index 0000000..97a0407 --- /dev/null +++ b/dist/cjs/service/src/apis/CollectorApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CollectorApi.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/apis/CollectorApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,KAAK,EACN,MAAM,iBAAiB,CAAC;AAMzB;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;;;OAMG;IACH,mBAAmB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;IAErH;;;OAGG;IACH,gBAAgB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;CAEhG;AAED;;GAEG;AACH,qBAAa,YAAa,SAAQ,OAAO,CAAC,OAAQ,YAAW,qBAAqB;IAE9E;;;OAGG;IACG,mBAAmB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAe1H;;;OAGG;IACG,gBAAgB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC;CAKrG"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/CollectorApi.js b/dist/cjs/service/src/apis/CollectorApi.js new file mode 100644 index 0000000..10f4a80 --- /dev/null +++ b/dist/cjs/service/src/apis/CollectorApi.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CollectorApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class CollectorApi extends runtime.BaseAPI { + /** + * Get collector data + * Get collector data + */ + async getCollectorDataRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/v2/stats`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.StatsFromJSON)(jsonValue)); + } + /** + * Get collector data + * Get collector data + */ + async getCollectorData(initOverrides) { + const response = await this.getCollectorDataRaw(initOverrides); + return await response.value(); + } +} +exports.CollectorApi = CollectorApi; +//# sourceMappingURL=CollectorApi.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/CollectorApi.js.map b/dist/cjs/service/src/apis/CollectorApi.js.map new file mode 100644 index 0000000..f1cd116 --- /dev/null +++ b/dist/cjs/service/src/apis/CollectorApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CollectorApi.js","sourceRoot":"","sources":["../../../../../src/service/src/apis/CollectorApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAItC,2CAGyB;AA0BzB;;GAEG;AACH,MAAa,YAAa,SAAQ,OAAO,CAAC,OAAO;IAE7C;;;OAGG;IACH,KAAK,CAAC,mBAAmB,CAAC,aAA0D;QAChF,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,WAAW;YACjB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,qBAAa,EAAC,SAAS,CAAC,CAAC,CAAC;IAC1F,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,gBAAgB,CAAC,aAA0D;QAC7E,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC;QAC/D,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AA9BD,oCA8BC"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/DepositsApi.d.ts b/dist/cjs/service/src/apis/DepositsApi.d.ts new file mode 100644 index 0000000..466a112 --- /dev/null +++ b/dist/cjs/service/src/apis/DepositsApi.d.ts @@ -0,0 +1,60 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { UserDepositsResponse } from '../models/index'; +export interface GetUserDepositsRequest { + user?: string; + reserve?: string; + cursor?: number; + limit?: number; +} +/** + * DepositsApi - interface + * + * @export + * @interface DepositsApiInterface + */ +export interface DepositsApiInterface { + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DepositsApiInterface + */ + getUserDepositsRaw(requestParameters: GetUserDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get user deposits of Lendingpool + * Get user deposits of Lendingpool + */ + getUserDeposits(requestParameters: GetUserDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class DepositsApi extends runtime.BaseAPI implements DepositsApiInterface { + /** + * Get user deposits of Lendingpool + * Get user deposits of Lendingpool + */ + getUserDepositsRaw(requestParameters: GetUserDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get user deposits of Lendingpool + * Get user deposits of Lendingpool + */ + getUserDeposits(requestParameters?: GetUserDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=DepositsApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/DepositsApi.d.ts.map b/dist/cjs/service/src/apis/DepositsApi.d.ts.map new file mode 100644 index 0000000..4f8fc9c --- /dev/null +++ b/dist/cjs/service/src/apis/DepositsApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"DepositsApi.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/apis/DepositsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AAMzB,MAAM,WAAW,sBAAsB;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;;;;;;;OAUG;IACH,kBAAkB,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC,CAAC;IAE9K;;;OAGG;IACH,eAAe,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAEzJ;AAED;;GAEG;AACH,qBAAa,WAAY,SAAQ,OAAO,CAAC,OAAQ,YAAW,oBAAoB;IAE5E;;;OAGG;IACG,kBAAkB,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;IA+BnL;;;OAGG;IACG,eAAe,CAAC,iBAAiB,GAAE,sBAA2B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAKnK"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/DepositsApi.js b/dist/cjs/service/src/apis/DepositsApi.js new file mode 100644 index 0000000..ef794a3 --- /dev/null +++ b/dist/cjs/service/src/apis/DepositsApi.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DepositsApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class DepositsApi extends runtime.BaseAPI { + /** + * Get user deposits of Lendingpool + * Get user deposits of Lendingpool + */ + async getUserDepositsRaw(requestParameters, initOverrides) { + const queryParameters = {}; + if (requestParameters['user'] != null) { + queryParameters['user'] = requestParameters['user']; + } + if (requestParameters['reserve'] != null) { + queryParameters['reserve'] = requestParameters['reserve']; + } + if (requestParameters['cursor'] != null) { + queryParameters['cursor'] = requestParameters['cursor']; + } + if (requestParameters['limit'] != null) { + queryParameters['limit'] = requestParameters['limit']; + } + const headerParameters = {}; + const response = await this.request({ + path: `/v2/lendingpool/deposits`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserDepositsResponseFromJSON)(jsonValue)); + } + /** + * Get user deposits of Lendingpool + * Get user deposits of Lendingpool + */ + async getUserDeposits(requestParameters = {}, initOverrides) { + const response = await this.getUserDepositsRaw(requestParameters, initOverrides); + return await response.value(); + } +} +exports.DepositsApi = DepositsApi; +//# sourceMappingURL=DepositsApi.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/DepositsApi.js.map b/dist/cjs/service/src/apis/DepositsApi.js.map new file mode 100644 index 0000000..04fb068 --- /dev/null +++ b/dist/cjs/service/src/apis/DepositsApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DepositsApi.js","sourceRoot":"","sources":["../../../../../src/service/src/apis/DepositsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAItC,2CAGyB;AAqCzB;;GAEG;AACH,MAAa,WAAY,SAAQ,OAAO,CAAC,OAAO;IAE5C;;;OAGG;IACH,KAAK,CAAC,kBAAkB,CAAC,iBAAyC,EAAE,aAA0D;QAC1H,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,IAAI,iBAAiB,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;YACpC,eAAe,CAAC,MAAM,CAAC,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACxD,CAAC;QAED,IAAI,iBAAiB,CAAC,SAAS,CAAC,IAAI,IAAI,EAAE,CAAC;YACvC,eAAe,CAAC,SAAS,CAAC,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAC;QAC9D,CAAC;QAED,IAAI,iBAAiB,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;YACtC,eAAe,CAAC,QAAQ,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QAC5D,CAAC;QAED,IAAI,iBAAiB,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;YACrC,eAAe,CAAC,OAAO,CAAC,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC1D,CAAC;QAED,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,0BAA0B;YAChC,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,oCAA4B,EAAC,SAAS,CAAC,CAAC,CAAC;IACzG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,eAAe,CAAC,oBAA4C,EAAE,EAAE,aAA0D;QAC5H,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACjF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AA9CD,kCA8CC"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/IlksApi.d.ts b/dist/cjs/service/src/apis/IlksApi.d.ts new file mode 100644 index 0000000..8fbd261 --- /dev/null +++ b/dist/cjs/service/src/apis/IlksApi.d.ts @@ -0,0 +1,77 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { Ilk, IlksResponse } from '../models/index'; +export interface GetIlkByNameRequest { + name: string; +} +/** + * IlksApi - interface + * + * @export + * @interface IlksApiInterface + */ +export interface IlksApiInterface { + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IlksApiInterface + */ + getAllIlksRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Retrieve a list of all available ilks. + * Get all Ilks + */ + getAllIlks(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof IlksApiInterface + */ + getIlkByNameRaw(requestParameters: GetIlkByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Retrieve an Ilk by providing its name. + * Get Ilk by name + */ + getIlkByName(requestParameters: GetIlkByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class IlksApi extends runtime.BaseAPI implements IlksApiInterface { + /** + * Retrieve a list of all available ilks. + * Get all Ilks + */ + getAllIlksRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Retrieve a list of all available ilks. + * Get all Ilks + */ + getAllIlks(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Retrieve an Ilk by providing its name. + * Get Ilk by name + */ + getIlkByNameRaw(requestParameters: GetIlkByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Retrieve an Ilk by providing its name. + * Get Ilk by name + */ + getIlkByName(requestParameters: GetIlkByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=IlksApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/IlksApi.d.ts.map b/dist/cjs/service/src/apis/IlksApi.d.ts.map new file mode 100644 index 0000000..8bece0b --- /dev/null +++ b/dist/cjs/service/src/apis/IlksApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"IlksApi.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/apis/IlksApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,GAAG,EACH,YAAY,EACb,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AC;IAsB5J;;;OAGG;IACG,YAAY,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,GAAG,CAAC;CAKvI"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/IlksApi.js b/dist/cjs/service/src/apis/IlksApi.js new file mode 100644 index 0000000..f3497fa --- /dev/null +++ b/dist/cjs/service/src/apis/IlksApi.js @@ -0,0 +1,75 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.IlksApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class IlksApi extends runtime.BaseAPI { + /** + * Retrieve a list of all available ilks. + * Get all Ilks + */ + async getAllIlksRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/v2/ilks`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IlksResponseFromJSON)(jsonValue)); + } + /** + * Retrieve a list of all available ilks. + * Get all Ilks + */ + async getAllIlks(initOverrides) { + const response = await this.getAllIlksRaw(initOverrides); + return await response.value(); + } + /** + * Retrieve an Ilk by providing its name. + * Get Ilk by name + */ + async getIlkByNameRaw(requestParameters, initOverrides) { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling getIlkByName().'); + } + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/v2/ilks/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IlkFromJSON)(jsonValue)); + } + /** + * Retrieve an Ilk by providing its name. + * Get Ilk by name + */ + async getIlkByName(requestParameters, initOverrides) { + const response = await this.getIlkByNameRaw(requestParameters, initOverrides); + return await response.value(); + } +} +exports.IlksApi = IlksApi; +//# sourceMappingURL=IlksApi.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/IlksApi.js.map b/dist/cjs/service/src/apis/IlksApi.js.map new file mode 100644 index 0000000..8e2eff3 --- /dev/null +++ b/dist/cjs/service/src/apis/IlksApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IlksApi.js","sourceRoot":"","sources":["../../../../../src/service/src/apis/IlksApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAKtC,2CAKyB;AA8CzB;;GAEG;AACH,MAAa,OAAQ,SAAQ,OAAO,CAAC,OAAO;IAExC;;;OAGG;IACH,KAAK,CAAC,aAAa,CAAC,aAA0D;QAC1E,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,UAAU;YAChB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,4BAAoB,EAAC,SAAS,CAAC,CAAC,CAAC;IACjG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,UAAU,CAAC,aAA0D;QACvE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,CAAC;QACzD,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,eAAe,CAAC,iBAAsC,EAAE,aAA0D;QACpH,IAAI,iBAAiB,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;YACpC,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,MAAM,EACN,8EAA8E,CACjF,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,iBAAiB,CAAC,OAAO,CAAC,IAAI,MAAM,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YACrG,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,mBAAW,EAAC,SAAS,CAAC,CAAC,CAAC;IACxF,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,YAAY,CAAC,iBAAsC,EAAE,aAA0D;QACjH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC9E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAjED,0BAiEC"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/LendingPoolApi.d.ts b/dist/cjs/service/src/apis/LendingPoolApi.d.ts new file mode 100644 index 0000000..39331d2 --- /dev/null +++ b/dist/cjs/service/src/apis/LendingPoolApi.d.ts @@ -0,0 +1,255 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { FormattedReserveData, LendingpoolBorrowTxRequest, LendingpoolBorrowTxResponse, LendingpoolDepositTxRequest, LendingpoolDepositTxResponse, LendingpoolRepayTxRequest, LendingpoolRepayTxResponse, LendingpoolUseAssetAsCollateralTxRequest, LendingpoolUseAssetAsCollateralTxResponse, LendingpoolWithdrawTxRequest, LendingpoolWithdrawTxResponse, UserBorrowsResponse, UserDepositsResponse } from '../models/index'; +export interface CreateLendingPoolBorrowRequest { + lendingpoolBorrowTxRequest: LendingpoolBorrowTxRequest; +} +export interface CreateLendingPoolDepositRequest { + lendingpoolDepositTxRequest: LendingpoolDepositTxRequest; +} +export interface CreateLendingPoolRepayRequest { + lendingpoolRepayTxRequest: LendingpoolRepayTxRequest; +} +export interface CreateLendingPoolWithdrawRequest { + lendingpoolWithdrawTxRequest: LendingpoolWithdrawTxRequest; +} +export interface FetchReserveDataByAssetRequest { + asset?: string; +} +export interface GetUserBorrowsRequest { + user?: string; + reserve?: string; + cursor?: number; + limit?: number; +} +export interface GetUserDepositsRequest { + user?: string; + reserve?: string; + cursor?: number; + limit?: number; +} +export interface SetLendingPoolAssetCollateralRequest { + lendingpoolUseAssetAsCollateralTxRequest: LendingpoolUseAssetAsCollateralTxRequest; +} +/** + * LendingPoolApi - interface + * + * @export + * @interface LendingPoolApiInterface + */ +export interface LendingPoolApiInterface { + /** + * Borrow from lending pool + * @summary Borrow from lending pool + * @param {LendingpoolBorrowTxRequest} lendingpoolBorrowTxRequest Borrow transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + createLendingPoolBorrowRaw(requestParameters: CreateLendingPoolBorrowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Borrow from lending pool + * Borrow from lending pool + */ + createLendingPoolBorrow(requestParameters: CreateLendingPoolBorrowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Deposit to lending pool + * @summary Deposit to lending pool + * @param {LendingpoolDepositTxRequest} lendingpoolDepositTxRequest Deposit transaction request, if amount is not provided, it will be calculated based on the token balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + createLendingPoolDepositRaw(requestParameters: CreateLendingPoolDepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Deposit to lending pool + * Deposit to lending pool + */ + createLendingPoolDeposit(requestParameters: CreateLendingPoolDepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Repay to lending pool + * @summary Repay to lending pool + * @param {LendingpoolRepayTxRequest} lendingpoolRepayTxRequest Repay transaction request, if amount is not provided, it will repay the maximum possible amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + createLendingPoolRepayRaw(requestParameters: CreateLendingPoolRepayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Repay to lending pool + * Repay to lending pool + */ + createLendingPoolRepay(requestParameters: CreateLendingPoolRepayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Withdraw from lending pool + * @summary Withdraw from lending pool + * @param {LendingpoolWithdrawTxRequest} lendingpoolWithdrawTxRequest Withdraw transaction request, if amount is not provided, it will be calculated based on the user account status + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + createLendingPoolWithdrawRaw(requestParameters: CreateLendingPoolWithdrawRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Withdraw from lending pool + * Withdraw from lending pool + */ + createLendingPoolWithdraw(requestParameters: CreateLendingPoolWithdrawRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Retrieve data of reserves + * @summary Fetch Reserve Data By Asset + * @param {string} [asset] The asset address in hexadecimal format. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + fetchReserveDataByAssetRaw(requestParameters: FetchReserveDataByAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Retrieve data of reserves + * Fetch Reserve Data By Asset + */ + fetchReserveDataByAsset(requestParameters: FetchReserveDataByAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get user borrows of lendingpool + * @summary Get user borrows of lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + getUserBorrowsRaw(requestParameters: GetUserBorrowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get user borrows of lendingpool + * Get user borrows of lendingpool + */ + getUserBorrows(requestParameters: GetUserBorrowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get user deposits of Lendingpool + * @summary Get user deposits of Lendingpool + * @param {string} [user] Ethereum address of the user + * @param {string} [reserve] Ethereum address of the reserve + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of deposits returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + getUserDepositsRaw(requestParameters: GetUserDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get user deposits of Lendingpool + * Get user deposits of Lendingpool + */ + getUserDeposits(requestParameters: GetUserDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Allows to enable/disable a specific asset as collateral + * @summary Enable/Disable asset as collateral + * @param {LendingpoolUseAssetAsCollateralTxRequest} lendingpoolUseAssetAsCollateralTxRequest UseAssetAsCollateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LendingPoolApiInterface + */ + setLendingPoolAssetCollateralRaw(requestParameters: SetLendingPoolAssetCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Allows to enable/disable a specific asset as collateral + * Enable/Disable asset as collateral + */ + setLendingPoolAssetCollateral(requestParameters: SetLendingPoolAssetCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class LendingPoolApi extends runtime.BaseAPI implements LendingPoolApiInterface { + /** + * Borrow from lending pool + * Borrow from lending pool + */ + createLendingPoolBorrowRaw(requestParameters: CreateLendingPoolBorrowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Borrow from lending pool + * Borrow from lending pool + */ + createLendingPoolBorrow(requestParameters: CreateLendingPoolBorrowRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Deposit to lending pool + * Deposit to lending pool + */ + createLendingPoolDepositRaw(requestParameters: CreateLendingPoolDepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Deposit to lending pool + * Deposit to lending pool + */ + createLendingPoolDeposit(requestParameters: CreateLendingPoolDepositRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Repay to lending pool + * Repay to lending pool + */ + createLendingPoolRepayRaw(requestParameters: CreateLendingPoolRepayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Repay to lending pool + * Repay to lending pool + */ + createLendingPoolRepay(requestParameters: CreateLendingPoolRepayRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Withdraw from lending pool + * Withdraw from lending pool + */ + createLendingPoolWithdrawRaw(requestParameters: CreateLendingPoolWithdrawRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Withdraw from lending pool + * Withdraw from lending pool + */ + createLendingPoolWithdraw(requestParameters: CreateLendingPoolWithdrawRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Retrieve data of reserves + * Fetch Reserve Data By Asset + */ + fetchReserveDataByAssetRaw(requestParameters: FetchReserveDataByAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Retrieve data of reserves + * Fetch Reserve Data By Asset + */ + fetchReserveDataByAsset(requestParameters?: FetchReserveDataByAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get user borrows of lendingpool + * Get user borrows of lendingpool + */ + getUserBorrowsRaw(requestParameters: GetUserBorrowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get user borrows of lendingpool + * Get user borrows of lendingpool + */ + getUserBorrows(requestParameters?: GetUserBorrowsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get user deposits of Lendingpool + * Get user deposits of Lendingpool + */ + getUserDepositsRaw(requestParameters: GetUserDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get user deposits of Lendingpool + * Get user deposits of Lendingpool + */ + getUserDeposits(requestParameters?: GetUserDepositsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Allows to enable/disable a specific asset as collateral + * Enable/Disable asset as collateral + */ + setLendingPoolAssetCollateralRaw(requestParameters: SetLendingPoolAssetCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Allows to enable/disable a specific asset as collateral + * Enable/Disable asset as collateral + */ + setLendingPoolAssetCollateral(requestParameters: SetLendingPoolAssetCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=LendingPoolApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/LendingPoolApi.d.ts.map b/dist/cjs/service/src/apis/LendingPoolApi.d.ts.map new file mode 100644 index 0000000..dc5cf5b --- /dev/null +++ b/dist/cjs/service/src/apis/LendingPoolApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Lending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,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAKhK;;;OAGG;IACG,gCAAgC,CAAC,iBAAiB,EAAE,oCAAoC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,yCAAyC,CAAC,CAAC;IAyBpO;;;OAGG;IACG,6BAA6B,CAAC,iBAAiB,EAAE,oCAAoC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,yCAAyC,CAAC;CAK/M"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/LendingPoolApi.js b/dist/cjs/service/src/apis/LendingPoolApi.js new file mode 100644 index 0000000..2334080 --- /dev/null +++ b/dist/cjs/service/src/apis/LendingPoolApi.js @@ -0,0 +1,262 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LendingPoolApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class LendingPoolApi extends runtime.BaseAPI { + /** + * Borrow from lending pool + * Borrow from lending pool + */ + async createLendingPoolBorrowRaw(requestParameters, initOverrides) { + if (requestParameters['lendingpoolBorrowTxRequest'] == null) { + throw new runtime.RequiredError('lendingpoolBorrowTxRequest', 'Required parameter "lendingpoolBorrowTxRequest" was null or undefined when calling createLendingPoolBorrow().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ + path: `/v2/lendingpool/tx/borrow`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.LendingpoolBorrowTxRequestToJSON)(requestParameters['lendingpoolBorrowTxRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LendingpoolBorrowTxResponseFromJSON)(jsonValue)); + } + /** + * Borrow from lending pool + * Borrow from lending pool + */ + async createLendingPoolBorrow(requestParameters, initOverrides) { + const response = await this.createLendingPoolBorrowRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Deposit to lending pool + * Deposit to lending pool + */ + async createLendingPoolDepositRaw(requestParameters, initOverrides) { + if (requestParameters['lendingpoolDepositTxRequest'] == null) { + throw new runtime.RequiredError('lendingpoolDepositTxRequest', 'Required parameter "lendingpoolDepositTxRequest" was null or undefined when calling createLendingPoolDeposit().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ + path: `/v2/lendingpool/tx/deposit`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.LendingpoolDepositTxRequestToJSON)(requestParameters['lendingpoolDepositTxRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LendingpoolDepositTxResponseFromJSON)(jsonValue)); + } + /** + * Deposit to lending pool + * Deposit to lending pool + */ + async createLendingPoolDeposit(requestParameters, initOverrides) { + const response = await this.createLendingPoolDepositRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Repay to lending pool + * Repay to lending pool + */ + async createLendingPoolRepayRaw(requestParameters, initOverrides) { + if (requestParameters['lendingpoolRepayTxRequest'] == null) { + throw new runtime.RequiredError('lendingpoolRepayTxRequest', 'Required parameter "lendingpoolRepayTxRequest" was null or undefined when calling createLendingPoolRepay().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ + path: `/v2/lendingpool/tx/repay`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.LendingpoolRepayTxRequestToJSON)(requestParameters['lendingpoolRepayTxRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LendingpoolRepayTxResponseFromJSON)(jsonValue)); + } + /** + * Repay to lending pool + * Repay to lending pool + */ + async createLendingPoolRepay(requestParameters, initOverrides) { + const response = await this.createLendingPoolRepayRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Withdraw from lending pool + * Withdraw from lending pool + */ + async createLendingPoolWithdrawRaw(requestParameters, initOverrides) { + if (requestParameters['lendingpoolWithdrawTxRequest'] == null) { + throw new runtime.RequiredError('lendingpoolWithdrawTxRequest', 'Required parameter "lendingpoolWithdrawTxRequest" was null or undefined when calling createLendingPoolWithdraw().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ + path: `/v2/lendingpool/tx/withdraw`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.LendingpoolWithdrawTxRequestToJSON)(requestParameters['lendingpoolWithdrawTxRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LendingpoolWithdrawTxResponseFromJSON)(jsonValue)); + } + /** + * Withdraw from lending pool + * Withdraw from lending pool + */ + async createLendingPoolWithdraw(requestParameters, initOverrides) { + const response = await this.createLendingPoolWithdrawRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Retrieve data of reserves + * Fetch Reserve Data By Asset + */ + async fetchReserveDataByAssetRaw(requestParameters, initOverrides) { + const queryParameters = {}; + if (requestParameters['asset'] != null) { + queryParameters['asset'] = requestParameters['asset']; + } + const headerParameters = {}; + const response = await this.request({ + path: `/v2/lendingpool/reserves`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FormattedReserveDataFromJSON)(jsonValue)); + } + /** + * Retrieve data of reserves + * Fetch Reserve Data By Asset + */ + async fetchReserveDataByAsset(requestParameters = {}, initOverrides) { + const response = await this.fetchReserveDataByAssetRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Get user borrows of lendingpool + * Get user borrows of lendingpool + */ + async getUserBorrowsRaw(requestParameters, initOverrides) { + const queryParameters = {}; + if (requestParameters['user'] != null) { + queryParameters['user'] = requestParameters['user']; + } + if (requestParameters['reserve'] != null) { + queryParameters['reserve'] = requestParameters['reserve']; + } + if (requestParameters['cursor'] != null) { + queryParameters['cursor'] = requestParameters['cursor']; + } + if (requestParameters['limit'] != null) { + queryParameters['limit'] = requestParameters['limit']; + } + const headerParameters = {}; + const response = await this.request({ + path: `/v2/lendingpool/borrows`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserBorrowsResponseFromJSON)(jsonValue)); + } + /** + * Get user borrows of lendingpool + * Get user borrows of lendingpool + */ + async getUserBorrows(requestParameters = {}, initOverrides) { + const response = await this.getUserBorrowsRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Get user deposits of Lendingpool + * Get user deposits of Lendingpool + */ + async getUserDepositsRaw(requestParameters, initOverrides) { + const queryParameters = {}; + if (requestParameters['user'] != null) { + queryParameters['user'] = requestParameters['user']; + } + if (requestParameters['reserve'] != null) { + queryParameters['reserve'] = requestParameters['reserve']; + } + if (requestParameters['cursor'] != null) { + queryParameters['cursor'] = requestParameters['cursor']; + } + if (requestParameters['limit'] != null) { + queryParameters['limit'] = requestParameters['limit']; + } + const headerParameters = {}; + const response = await this.request({ + path: `/v2/lendingpool/deposits`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserDepositsResponseFromJSON)(jsonValue)); + } + /** + * Get user deposits of Lendingpool + * Get user deposits of Lendingpool + */ + async getUserDeposits(requestParameters = {}, initOverrides) { + const response = await this.getUserDepositsRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Allows to enable/disable a specific asset as collateral + * Enable/Disable asset as collateral + */ + async setLendingPoolAssetCollateralRaw(requestParameters, initOverrides) { + if (requestParameters['lendingpoolUseAssetAsCollateralTxRequest'] == null) { + throw new runtime.RequiredError('lendingpoolUseAssetAsCollateralTxRequest', 'Required parameter "lendingpoolUseAssetAsCollateralTxRequest" was null or undefined when calling setLendingPoolAssetCollateral().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ + path: `/v2/lendingpool/tx/useassetascollateral`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.LendingpoolUseAssetAsCollateralTxRequestToJSON)(requestParameters['lendingpoolUseAssetAsCollateralTxRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LendingpoolUseAssetAsCollateralTxResponseFromJSON)(jsonValue)); + } + /** + * Allows to enable/disable a specific asset as collateral + * Enable/Disable asset as collateral + */ + async setLendingPoolAssetCollateral(requestParameters, initOverrides) { + const response = await this.setLendingPoolAssetCollateralRaw(requestParameters, initOverrides); + return await response.value(); + } +} +exports.LendingPoolApi = LendingPoolApi; +//# sourceMappingURL=LendingPoolApi.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/LendingPoolApi.js.map b/dist/cjs/service/src/apis/LendingPoolApi.js.map new file mode 100644 index 0000000..105c958 --- /dev/null +++ b/dist/cjs/service/src/apis/LendingPoolApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingPoolApi.js","sourceRoot":"","sources":["../../../../../src/service/src/apis/LendingPoolApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAiBtC,2CA6ByB;AAuLzB;;GAEG;AACH,MAAa,cAAe,SAAQ,OAAO,CAAC,OAAO;IAE/C;;;OAGG;IACH,KAAK,CAAC,0BAA0B,CAAC,iBAAiD,EAAE,aAA0D;QAC1I,IAAI,iBAAiB,CAAC,4BAA4B,CAAC,IAAI,IAAI,E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AED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;QAEtD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,yCAAyC;YAC/C,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,IAAA,sDAA8C,EAAC,iBAAiB,CAAC,0CAA0C,CAAC,CAAC;SACtH,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,yDAAiD,EAAC,SAAS,CAAC,CAAC,CAAC;IAC9H,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,6BAA6B,CAAC,iBAAuD,EAAE,aAA0D;QACnJ,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gCAAgC,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC/F,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAxTD,wCAwTC"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/LogsApi.d.ts b/dist/cjs/service/src/apis/LogsApi.d.ts new file mode 100644 index 0000000..739c57a --- /dev/null +++ b/dist/cjs/service/src/apis/LogsApi.d.ts @@ -0,0 +1,54 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { EventDetailsResponse } from '../models/index'; +export interface GetLogsByTransactionHashRequest { + txHash: string; +} +/** + * LogsApi - interface + * + * @export + * @interface LogsApiInterface + */ +export interface LogsApiInterface { + /** + * Get raw and decoded logs by transaction hash + * @summary Get raw and decoded logs by transaction hash + * @param {string} txHash Transaction hash + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LogsApiInterface + */ + getLogsByTransactionHashRaw(requestParameters: GetLogsByTransactionHashRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get raw and decoded logs by transaction hash + * Get raw and decoded logs by transaction hash + */ + getLogsByTransactionHash(requestParameters: GetLogsByTransactionHashRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class LogsApi extends runtime.BaseAPI implements LogsApiInterface { + /** + * Get raw and decoded logs by transaction hash + * Get raw and decoded logs by transaction hash + */ + getLogsByTransactionHashRaw(requestParameters: GetLogsByTransactionHashRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get raw and decoded logs by transaction hash + * Get raw and decoded logs by transaction hash + */ + getLogsByTransactionHash(requestParameters: GetLogsByTransactionHashRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=LogsApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/LogsApi.d.ts.map b/dist/cjs/service/src/apis/LogsApi.d.ts.map new file mode 100644 index 0000000..232ed60 --- /dev/null +++ b/dist/cjs/service/src/apis/LogsApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LogsApi.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/apis/LogsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AAMzB,MAAM,WAAW,+BAA+B;IAC5C,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;;;;OAOG;IACH,2BAA2B,CAAC,iBAAiB,EAAE,+BAA+B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC,CAAC;IAEhM;;;OAGG;IACH,wBAAwB,CAAC,iBAAiB,EAAE,+BAA+B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAE3K;AAED;;GAEG;AACH,qBAAa,OAAQ,SAAQ,OAAO,CAAC,OAAQ,YAAW,gBAAgB;IAEpE;;;OAGG;IACG,2BAA2B,CAAC,iBAAiB,EAAE,+BAA+B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;IAsBrM;;;OAGG;IACG,wBAAwB,CAAC,iBAAiB,EAAE,+BAA+B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAKhL"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/LogsApi.js b/dist/cjs/service/src/apis/LogsApi.js new file mode 100644 index 0000000..d42b621 --- /dev/null +++ b/dist/cjs/service/src/apis/LogsApi.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LogsApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class LogsApi extends runtime.BaseAPI { + /** + * Get raw and decoded logs by transaction hash + * Get raw and decoded logs by transaction hash + */ + async getLogsByTransactionHashRaw(requestParameters, initOverrides) { + if (requestParameters['txHash'] == null) { + throw new runtime.RequiredError('txHash', 'Required parameter "txHash" was null or undefined when calling getLogsByTransactionHash().'); + } + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/v2/logs/{txHash}`.replace(`{${"txHash"}}`, encodeURIComponent(String(requestParameters['txHash']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.EventDetailsResponseFromJSON)(jsonValue)); + } + /** + * Get raw and decoded logs by transaction hash + * Get raw and decoded logs by transaction hash + */ + async getLogsByTransactionHash(requestParameters, initOverrides) { + const response = await this.getLogsByTransactionHashRaw(requestParameters, initOverrides); + return await response.value(); + } +} +exports.LogsApi = LogsApi; +//# sourceMappingURL=LogsApi.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/LogsApi.js.map b/dist/cjs/service/src/apis/LogsApi.js.map new file mode 100644 index 0000000..2a5b4f0 --- /dev/null +++ b/dist/cjs/service/src/apis/LogsApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LogsApi.js","sourceRoot":"","sources":["../../../../../src/service/src/apis/LogsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAItC,2CAGyB;AA+BzB;;GAEG;AACH,MAAa,OAAQ,SAAQ,OAAO,CAAC,OAAO;IAExC;;;OAGG;IACH,KAAK,CAAC,2BAA2B,CAAC,iBAAkD,EAAE,aAA0D;QAC5I,IAAI,iBAAiB,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;YACtC,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,QAAQ,EACR,4FAA4F,CAC/F,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,mBAAmB,CAAC,OAAO,CAAC,IAAI,QAAQ,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;YAC3G,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,oCAA4B,EAAC,SAAS,CAAC,CAAC,CAAC;IACzG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,wBAAwB,CAAC,iBAAkD,EAAE,aAA0D;QACzI,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,2BAA2B,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC1F,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AArCD,0BAqCC"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/OrdersApi.d.ts b/dist/cjs/service/src/apis/OrdersApi.d.ts new file mode 100644 index 0000000..bea950f --- /dev/null +++ b/dist/cjs/service/src/apis/OrdersApi.d.ts @@ -0,0 +1,119 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { OrderResponse, TimeRange, UpdateOrderRequest } from '../models/index'; +export interface GetUnfilledOrdersRequest { + type?: GetUnfilledOrdersTypeEnum; + hash?: string; + status?: GetUnfilledOrdersStatusEnum; + offerer?: string; + filler?: string; + decayStartTime?: TimeRange; + decayEndTime?: TimeRange; + deadline?: TimeRange; + cursor?: number; + limit?: number; +} +export interface SyncOrderRequest { + updateOrderRequest: UpdateOrderRequest; +} +/** + * OrdersApi - interface + * + * @export + * @interface OrdersApiInterface + */ +export interface OrdersApiInterface { + /** + * Get a list of unfilled orders filtered by different parameters. + * @summary Fetch Unfilled Orders + * @param {'limit' | 'dutch'} [type] Type of the order + * @param {string} [hash] order hash + * @param {'open' | 'expired' | 'error' | 'cancelled' | 'filled' | 'insufficient-funds'} [status] Status of the order + * @param {string} [offerer] Ethereum address of the offerer + * @param {string} [filler] Ethereum address of the filler + * @param {TimeRange} [decayStartTime] Decay start time + * @param {TimeRange} [decayEndTime] Decay end time + * @param {TimeRange} [deadline] Order deadline + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of orders returned (default is 10) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OrdersApiInterface + */ + getUnfilledOrdersRaw(requestParameters: GetUnfilledOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get a list of unfilled orders filtered by different parameters. + * Fetch Unfilled Orders + */ + getUnfilledOrders(requestParameters: GetUnfilledOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * updates an order entity in database + * @summary Updates Order Entity + * @param {UpdateOrderRequest} updateOrderRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof OrdersApiInterface + */ + syncOrderRaw(requestParameters: SyncOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * updates an order entity in database + * Updates Order Entity + */ + syncOrder(requestParameters: SyncOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class OrdersApi extends runtime.BaseAPI implements OrdersApiInterface { + /** + * Get a list of unfilled orders filtered by different parameters. + * Fetch Unfilled Orders + */ + getUnfilledOrdersRaw(requestParameters: GetUnfilledOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get a list of unfilled orders filtered by different parameters. + * Fetch Unfilled Orders + */ + getUnfilledOrders(requestParameters?: GetUnfilledOrdersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * updates an order entity in database + * Updates Order Entity + */ + syncOrderRaw(requestParameters: SyncOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * updates an order entity in database + * Updates Order Entity + */ + syncOrder(requestParameters: SyncOrderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * @export + */ +export declare const GetUnfilledOrdersTypeEnum: { + readonly LIMIT: "limit"; + readonly DUTCH: "dutch"; +}; +export type GetUnfilledOrdersTypeEnum = typeof GetUnfilledOrdersTypeEnum[keyof typeof GetUnfilledOrdersTypeEnum]; +/** + * @export + */ +export declare const GetUnfilledOrdersStatusEnum: { + readonly OPEN: "open"; + readonly EXPIRED: "expired"; + readonly ERROR: "error"; + readonly CANCELLED: "cancelled"; + readonly FILLED: "filled"; + readonly INSUFFICIENT_FUNDS: "insufficient-funds"; +}; +export type GetUnfilledOrdersStatusEnum = typeof GetUnfilledOrdersStatusEnum[keyof typeof GetUnfilledOrdersStatusEnum]; +//# sourceMappingURL=OrdersApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/OrdersApi.d.ts.map b/dist/cjs/service/src/apis/OrdersApi.d.ts.map new file mode 100644 index 0000000..050130c --- /dev/null +++ b/dist/cjs/service/src/apis/OrdersApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"OrdersApi.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/apis/OrdersApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,aAAa,EACb,SAAS,EACT,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AAUzB,MAAM,WAAW,wBAAwB;IACrC,IAAI,CAAC,EAAE,yBAAyB,CAAC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,2BAA2B,CAAC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AC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAuDhL;;;OAGG;IACG,iBAAiB,CAAC,iBAAiB,GAAE,wBAA6B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC;IAK7J;;;OAGG;IACG,YAAY,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IA6BxJ;;;OAGG;IACG,SAAS,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC;CAKnI;AAED;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;CAG5B,CAAC;AACX,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AACjH;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;CAO9B,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,MAAM,OAAO,2BAA2B,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/OrdersApi.js b/dist/cjs/service/src/apis/OrdersApi.js new file mode 100644 index 0000000..a8a3b24 --- /dev/null +++ b/dist/cjs/service/src/apis/OrdersApi.js @@ -0,0 +1,130 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GetUnfilledOrdersStatusEnum = exports.GetUnfilledOrdersTypeEnum = exports.OrdersApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class OrdersApi extends runtime.BaseAPI { + /** + * Get a list of unfilled orders filtered by different parameters. + * Fetch Unfilled Orders + */ + async getUnfilledOrdersRaw(requestParameters, initOverrides) { + const queryParameters = {}; + if (requestParameters['type'] != null) { + queryParameters['type'] = requestParameters['type']; + } + if (requestParameters['hash'] != null) { + queryParameters['hash'] = requestParameters['hash']; + } + if (requestParameters['status'] != null) { + queryParameters['status'] = requestParameters['status']; + } + if (requestParameters['offerer'] != null) { + queryParameters['offerer'] = requestParameters['offerer']; + } + if (requestParameters['filler'] != null) { + queryParameters['filler'] = requestParameters['filler']; + } + if (requestParameters['decayStartTime'] != null) { + queryParameters['decayStartTime'] = requestParameters['decayStartTime']; + } + if (requestParameters['decayEndTime'] != null) { + queryParameters['decayEndTime'] = requestParameters['decayEndTime']; + } + if (requestParameters['deadline'] != null) { + queryParameters['deadline'] = requestParameters['deadline']; + } + if (requestParameters['cursor'] != null) { + queryParameters['cursor'] = requestParameters['cursor']; + } + if (requestParameters['limit'] != null) { + queryParameters['limit'] = requestParameters['limit']; + } + const headerParameters = {}; + const response = await this.request({ + path: `/v2/orders`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.OrderResponseFromJSON)(jsonValue)); + } + /** + * Get a list of unfilled orders filtered by different parameters. + * Fetch Unfilled Orders + */ + async getUnfilledOrders(requestParameters = {}, initOverrides) { + const response = await this.getUnfilledOrdersRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * updates an order entity in database + * Updates Order Entity + */ + async syncOrderRaw(requestParameters, initOverrides) { + if (requestParameters['updateOrderRequest'] == null) { + throw new runtime.RequiredError('updateOrderRequest', 'Required parameter "updateOrderRequest" was null or undefined when calling syncOrder().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ + path: `/v2/orders/sync`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.UpdateOrderRequestToJSON)(requestParameters['updateOrderRequest']), + }, initOverrides); + if (this.isJsonMime(response.headers.get('content-type'))) { + return new runtime.JSONApiResponse(response); + } + else { + return new runtime.TextApiResponse(response); + } + } + /** + * updates an order entity in database + * Updates Order Entity + */ + async syncOrder(requestParameters, initOverrides) { + const response = await this.syncOrderRaw(requestParameters, initOverrides); + return await response.value(); + } +} +exports.OrdersApi = OrdersApi; +/** + * @export + */ +exports.GetUnfilledOrdersTypeEnum = { + LIMIT: 'limit', + DUTCH: 'dutch' +}; +/** + * @export + */ +exports.GetUnfilledOrdersStatusEnum = { + OPEN: 'open', + EXPIRED: 'expired', + ERROR: 'error', + CANCELLED: 'cancelled', + FILLED: 'filled', + INSUFFICIENT_FUNDS: 'insufficient-funds' +}; +//# sourceMappingURL=OrdersApi.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/OrdersApi.js.map b/dist/cjs/service/src/apis/OrdersApi.js.map new file mode 100644 index 0000000..1c72be4 --- /dev/null +++ b/dist/cjs/service/src/apis/OrdersApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"OrdersApi.js","sourceRoot":"","sources":["../../../../../src/service/src/apis/OrdersApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAMtC,2CAOyB;AAqEzB;;GAEG;AACH,MAAa,SAAU,SAAQ,OAAO,CAAC,OAAO;IAE1C;;;OAGG;IACH,KAAK,CAAC,oBAAoB,CAAC,iBAA2C,EAAE,aAA0D;QAC9H,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,IAAI,iBAAiB,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;YACpC,eAAe,CAAC,MAAM,CAAC,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;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C,oBAAoB,CAAC,CAAC;SAC1E,EAAE,aAAa,CAAC,CAAC;QAElB,IAAI,IAAI,CAAC,UAAU,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC,EAAE,CAAC;YACxD,OAAO,IAAI,OAAO,CAAC,eAAe,CAAQ,QAAQ,CAAC,CAAC;QACxD,CAAC;aAAM,CAAC;YACJ,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAQ,CAAC;QACxD,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,SAAS,CAAC,iBAAmC,EAAE,aAA0D;QAC3G,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC3E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAhHD,8BAgHC;AAED;;GAEG;AACU,QAAA,yBAAyB,GAAG;IACrC,KAAK,EAAE,OAAO;IACd,KAAK,EAAE,OAAO;CACR,CAAC;AAEX;;GAEG;AACU,QAAA,2BAA2B,GAAG;IACvC,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,KAAK,EAAE,OAAO;IACd,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,kBAAkB,EAAE,oBAAoB;CAClC,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/PermitApi.d.ts b/dist/cjs/service/src/apis/PermitApi.d.ts new file mode 100644 index 0000000..1e855a9 --- /dev/null +++ b/dist/cjs/service/src/apis/PermitApi.d.ts @@ -0,0 +1,56 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { PermitSingle } from '../models/index'; +export interface GetSingleTokenPermitRequest { + token: string; + user: string; +} +/** + * PermitApi - interface + * + * @export + * @interface PermitApiInterface + */ +export interface PermitApiInterface { + /** + * Get permit for single token + * @summary Get permit for single token + * @param {string} token Ethereum address of the token + * @param {string} user Ethereum address of the user + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PermitApiInterface + */ + getSingleTokenPermitRaw(requestParameters: GetSingleTokenPermitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get permit for single token + * Get permit for single token + */ + getSingleTokenPermit(requestParameters: GetSingleTokenPermitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class PermitApi extends runtime.BaseAPI implements PermitApiInterface { + /** + * Get permit for single token + * Get permit for single token + */ + getSingleTokenPermitRaw(requestParameters: GetSingleTokenPermitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get permit for single token + * Get permit for single token + */ + getSingleTokenPermit(requestParameters: GetSingleTokenPermitRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=PermitApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/PermitApi.d.ts.map b/dist/cjs/service/src/apis/PermitApi.d.ts.map new file mode 100644 index 0000000..834f5cf --- /dev/null +++ b/dist/cjs/service/src/apis/PermitApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"PermitApi.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/apis/PermitApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,YAAY,EACb,MAAM,iBAAiB,CAAC;AAMzB,MAAM,WAAW,2BAA2B;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;;;;OAQG;IACH,uBAAuB,CAAC,iBAAiB,EAAE,2BAA2B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC;IAEhL;;;OAGG;IACH,oBAAoB,CAAC,iBAAiB,EAAE,2BAA2B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CAE3J;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,OAAO,CAAC,OAAQ,YAAW,kBAAkB;IAExE;;;OAGG;IACG,uBAAuB,CAAC,iBAAiB,EAAE,2BAA2B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAqCrL;;;OAGG;IACG,oBAAoB,CAAC,iBAAiB,EAAE,2BAA2B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC;CAKhK"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/PermitApi.js b/dist/cjs/service/src/apis/PermitApi.js new file mode 100644 index 0000000..c226ade --- /dev/null +++ b/dist/cjs/service/src/apis/PermitApi.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PermitApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class PermitApi extends runtime.BaseAPI { + /** + * Get permit for single token + * Get permit for single token + */ + async getSingleTokenPermitRaw(requestParameters, initOverrides) { + if (requestParameters['token'] == null) { + throw new runtime.RequiredError('token', 'Required parameter "token" was null or undefined when calling getSingleTokenPermit().'); + } + if (requestParameters['user'] == null) { + throw new runtime.RequiredError('user', 'Required parameter "user" was null or undefined when calling getSingleTokenPermit().'); + } + const queryParameters = {}; + if (requestParameters['token'] != null) { + queryParameters['token'] = requestParameters['token']; + } + if (requestParameters['user'] != null) { + queryParameters['user'] = requestParameters['user']; + } + const headerParameters = {}; + const response = await this.request({ + path: `/v2/permit/single`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PermitSingleFromJSON)(jsonValue)); + } + /** + * Get permit for single token + * Get permit for single token + */ + async getSingleTokenPermit(requestParameters, initOverrides) { + const response = await this.getSingleTokenPermitRaw(requestParameters, initOverrides); + return await response.value(); + } +} +exports.PermitApi = PermitApi; +//# sourceMappingURL=PermitApi.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/PermitApi.js.map b/dist/cjs/service/src/apis/PermitApi.js.map new file mode 100644 index 0000000..ded0cd4 --- /dev/null +++ b/dist/cjs/service/src/apis/PermitApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PermitApi.js","sourceRoot":"","sources":["../../../../../src/service/src/apis/PermitApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAItC,2CAGyB;AAiCzB;;GAEG;AACH,MAAa,SAAU,SAAQ,OAAO,CAAC,OAAO;IAE1C;;;OAGG;IACH,KAAK,CAAC,uBAAuB,CAAC,iBAA8C,EAAE,aAA0D;QACpI,IAAI,iBAAiB,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;YACrC,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,OAAO,EACP,uFAAuF,CAC1F,CAAC;QACN,CAAC;QAED,IAAI,iBAAiB,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;YACpC,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,MAAM,EACN,sFAAsF,CACzF,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,IAAI,iBAAiB,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;YACrC,eAAe,CAAC,OAAO,CAAC,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC1D,CAAC;QAED,IAAI,iBAAiB,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,CAAC;YACpC,eAAe,CAAC,MAAM,CAAC,GAAG,iBAAiB,CAAC,MAAM,CAAC,CAAC;QACxD,CAAC;QAED,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,mBAAmB;YACzB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,4BAAoB,EAAC,SAAS,CAAC,CAAC,CAAC;IACjG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,oBAAoB,CAAC,iBAA8C,EAAE,aAA0D;QACjI,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,uBAAuB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACtF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AApDD,8BAoDC"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/PointsApi.d.ts b/dist/cjs/service/src/apis/PointsApi.d.ts new file mode 100644 index 0000000..47b006b --- /dev/null +++ b/dist/cjs/service/src/apis/PointsApi.d.ts @@ -0,0 +1,50 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { Scoreboard } from '../models/index'; +/** + * PointsApi - interface + * + * @export + * @interface PointsApiInterface + */ +export interface PointsApiInterface { + /** + * Get scoreboard + * @summary Get scoreboard + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PointsApiInterface + */ + getScoreboardRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get scoreboard + * Get scoreboard + */ + getScoreboard(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class PointsApi extends runtime.BaseAPI implements PointsApiInterface { + /** + * Get scoreboard + * Get scoreboard + */ + getScoreboardRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get scoreboard + * Get scoreboard + */ + getScoreboard(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=PointsApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/PointsApi.d.ts.map b/dist/cjs/service/src/apis/PointsApi.d.ts.map new file mode 100644 index 0000000..3909ec3 --- /dev/null +++ b/dist/cjs/service/src/apis/PointsApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"PointsApi.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/apis/PointsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,UAAU,EACX,MAAM,iBAAiB,CAAC;AAMzB;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;;OAMG;IACH,gBAAgB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,CAAC;IAEvH;;;OAGG;IACH,aAAa,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;CAElG;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,OAAO,CAAC,OAAQ,YAAW,kBAAkB;IAExE;;;OAGG;IACG,gBAAgB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAe5H;;;OAGG;IACG,aAAa,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC;CAKvG"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/PointsApi.js b/dist/cjs/service/src/apis/PointsApi.js new file mode 100644 index 0000000..91e40f7 --- /dev/null +++ b/dist/cjs/service/src/apis/PointsApi.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PointsApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class PointsApi extends runtime.BaseAPI { + /** + * Get scoreboard + * Get scoreboard + */ + async getScoreboardRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/v2/points/scoreboard`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ScoreboardFromJSON)(jsonValue)); + } + /** + * Get scoreboard + * Get scoreboard + */ + async getScoreboard(initOverrides) { + const response = await this.getScoreboardRaw(initOverrides); + return await response.value(); + } +} +exports.PointsApi = PointsApi; +//# sourceMappingURL=PointsApi.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/PointsApi.js.map b/dist/cjs/service/src/apis/PointsApi.js.map new file mode 100644 index 0000000..50368e9 --- /dev/null +++ b/dist/cjs/service/src/apis/PointsApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PointsApi.js","sourceRoot":"","sources":["../../../../../src/service/src/apis/PointsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAItC,2CAGyB;AA0BzB;;GAEG;AACH,MAAa,SAAU,SAAQ,OAAO,CAAC,OAAO;IAE1C;;;OAGG;IACH,KAAK,CAAC,gBAAgB,CAAC,aAA0D;QAC7E,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,uBAAuB;YAC7B,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,0BAAkB,EAAC,SAAS,CAAC,CAAC,CAAC;IAC/F,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,aAAa,CAAC,aAA0D;QAC1E,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,CAAC;QAC5D,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AA9BD,8BA8BC"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/PricesApi.d.ts b/dist/cjs/service/src/apis/PricesApi.d.ts new file mode 100644 index 0000000..71957ce --- /dev/null +++ b/dist/cjs/service/src/apis/PricesApi.d.ts @@ -0,0 +1,54 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { PriceListResponse } from '../models/index'; +export interface ListPricesRequest { + symbol?: string; +} +/** + * PricesApi - interface + * + * @export + * @interface PricesApiInterface + */ +export interface PricesApiInterface { + /** + * Retrieve a list of price details based on specified query parameters + * @summary List prices based on query parameters + * @param {string} [symbol] Symbol of the price + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PricesApiInterface + */ + listPricesRaw(requestParameters: ListPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Retrieve a list of price details based on specified query parameters + * List prices based on query parameters + */ + listPrices(requestParameters: ListPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class PricesApi extends runtime.BaseAPI implements PricesApiInterface { + /** + * Retrieve a list of price details based on specified query parameters + * List prices based on query parameters + */ + listPricesRaw(requestParameters: ListPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Retrieve a list of price details based on specified query parameters + * List prices based on query parameters + */ + listPrices(requestParameters?: ListPricesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=PricesApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/PricesApi.d.ts.map b/dist/cjs/service/src/apis/PricesApi.d.ts.map new file mode 100644 index 0000000..8867260 --- /dev/null +++ b/dist/cjs/service/src/apis/PricesApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"PricesApi.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/apis/PricesApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,iBAAiB,EAClB,MAAM,iBAAiB,CAAC;AAMzB,MAAM,WAAW,iBAAiB;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;;;OAOG;IACH,aAAa,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC,CAAC;IAEjK;;;OAGG;IACH,UAAU,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;CAE5I;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,OAAO,CAAC,OAAQ,YAAW,kBAAkB;IAExE;;;OAGG;IACG,aAAa,CAAC,iBAAiB,EAAE,iBAAiB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;IAmBtK;;;OAGG;IACG,UAAU,CAAC,iBAAiB,GAAE,iBAAsB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,iBAAiB,CAAC;CAKtJ"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/PricesApi.js b/dist/cjs/service/src/apis/PricesApi.js new file mode 100644 index 0000000..f90d501 --- /dev/null +++ b/dist/cjs/service/src/apis/PricesApi.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PricesApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class PricesApi extends runtime.BaseAPI { + /** + * Retrieve a list of price details based on specified query parameters + * List prices based on query parameters + */ + async listPricesRaw(requestParameters, initOverrides) { + const queryParameters = {}; + if (requestParameters['symbol'] != null) { + queryParameters['symbol'] = requestParameters['symbol']; + } + const headerParameters = {}; + const response = await this.request({ + path: `/v2/prices`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PriceListResponseFromJSON)(jsonValue)); + } + /** + * Retrieve a list of price details based on specified query parameters + * List prices based on query parameters + */ + async listPrices(requestParameters = {}, initOverrides) { + const response = await this.listPricesRaw(requestParameters, initOverrides); + return await response.value(); + } +} +exports.PricesApi = PricesApi; +//# sourceMappingURL=PricesApi.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/PricesApi.js.map b/dist/cjs/service/src/apis/PricesApi.js.map new file mode 100644 index 0000000..f1ac7c4 --- /dev/null +++ b/dist/cjs/service/src/apis/PricesApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PricesApi.js","sourceRoot":"","sources":["../../../../../src/service/src/apis/PricesApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAItC,2CAGyB;AA+BzB;;GAEG;AACH,MAAa,SAAU,SAAQ,OAAO,CAAC,OAAO;IAE1C;;;OAGG;IACH,KAAK,CAAC,aAAa,CAAC,iBAAoC,EAAE,aAA0D;QAChH,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,IAAI,iBAAiB,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;YACtC,eAAe,CAAC,QAAQ,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QAC5D,CAAC;QAED,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,YAAY;YAClB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,iCAAyB,EAAC,SAAS,CAAC,CAAC,CAAC;IACtG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,UAAU,CAAC,oBAAuC,EAAE,EAAE,aAA0D;QAClH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC5E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAlCD,8BAkCC"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/StableCoinSystemApi.d.ts b/dist/cjs/service/src/apis/StableCoinSystemApi.d.ts new file mode 100644 index 0000000..ecf865e --- /dev/null +++ b/dist/cjs/service/src/apis/StableCoinSystemApi.d.ts @@ -0,0 +1,481 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { ChainActivity, Ilk, IlksResponse, StablecoinSystemBarkTxRequest, StablecoinSystemCreateVaultTxRequest, StablecoinSystemDepositCollateralTxRequest, StablecoinSystemGemexitTxRequest, StablecoinSystemMintZarTxRequest, StablecoinSystemRedoTxRequest, StablecoinSystemRepayZarTxRequest, StablecoinSystemTakeTxRequest, StablecoinSystemWithdrawCollateralTxRequest, StablecoinSystemZarexitTxRequest, StablecoinSystemZarjoinTxRequest, Stats, Vault, VaultEventsResponse, VaultsResponse } from '../models/index'; +export interface ApproveAndJoinZarTransactionRequest { + stablecoinSystemZarjoinTxRequest: StablecoinSystemZarjoinTxRequest; +} +export interface CreateStableCoinVaultRequest { + stablecoinSystemCreateVaultTxRequest: StablecoinSystemCreateVaultTxRequest; +} +export interface DepositStableCoinCollateralRequest { + stablecoinSystemDepositCollateralTxRequest: StablecoinSystemDepositCollateralTxRequest; +} +export interface ExitGemTransactionRequest { + stablecoinSystemGemexitTxRequest: StablecoinSystemGemexitTxRequest; +} +export interface ExitZarTransactionRequest { + stablecoinSystemZarexitTxRequest: StablecoinSystemZarexitTxRequest; +} +export interface GetIlkByNameRequest { + name: string; +} +export interface GetVaultByIdRequest { + id: number; +} +export interface GetVaultEventsByIdRequest { + id: number; + type?: GetVaultEventsByIdTypeEnum; +} +export interface GetVaultsByOwnerRequest { + owner?: string; +} +export interface LiquidateVaultTransactionRequest { + stablecoinSystemBarkTxRequest: StablecoinSystemBarkTxRequest; +} +export interface MintZarTransactionRequest { + stablecoinSystemMintZarTxRequest: StablecoinSystemMintZarTxRequest; +} +export interface RepayZarTransactionRequest { + stablecoinSystemRepayZarTxRequest: StablecoinSystemRepayZarTxRequest; +} +export interface ResetAuctionTransactionRequest { + stablecoinSystemRedoTxRequest: StablecoinSystemRedoTxRequest; +} +export interface TakeAuctionTransactionRequest { + stablecoinSystemTakeTxRequest: StablecoinSystemTakeTxRequest; +} +export interface WithdrawCollateralTransactionRequest { + stablecoinSystemWithdrawCollateralTxRequest: StablecoinSystemWithdrawCollateralTxRequest; +} +/** + * StableCoinSystemApi - interface + * + * @export + * @interface StableCoinSystemApiInterface + */ +export interface StableCoinSystemApiInterface { + /** + * approve and join ZAR token into Vat contract + * @summary approve and join ZAR token into Vat contract + * @param {StablecoinSystemZarjoinTxRequest} stablecoinSystemZarjoinTxRequest Approve and join Zar token into Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + approveAndJoinZarTransactionRaw(requestParameters: ApproveAndJoinZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * approve and join ZAR token into Vat contract + * approve and join ZAR token into Vat contract + */ + approveAndJoinZarTransaction(requestParameters: ApproveAndJoinZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Create vault + * @summary Create vault + * @param {StablecoinSystemCreateVaultTxRequest} stablecoinSystemCreateVaultTxRequest Create vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + createStableCoinVaultRaw(requestParameters: CreateStableCoinVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Create vault + * Create vault + */ + createStableCoinVault(requestParameters: CreateStableCoinVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Deposit collateral + * @summary Deposit collateral + * @param {StablecoinSystemDepositCollateralTxRequest} stablecoinSystemDepositCollateralTxRequest Deposit collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + depositStableCoinCollateralRaw(requestParameters: DepositStableCoinCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Deposit collateral + * Deposit collateral + */ + depositStableCoinCollateral(requestParameters: DepositStableCoinCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * exit Gem token (which can be used as collateral) from Vat contract + * @summary exit Gem token (which can be used as collateral) from Vat contract + * @param {StablecoinSystemGemexitTxRequest} stablecoinSystemGemexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + exitGemTransactionRaw(requestParameters: ExitGemTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * exit Gem token (which can be used as collateral) from Vat contract + * exit Gem token (which can be used as collateral) from Vat contract + */ + exitGemTransaction(requestParameters: ExitGemTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * exit ZAR token from Vat contract + * @summary exit ZAR token from Vat contract + * @param {StablecoinSystemZarexitTxRequest} stablecoinSystemZarexitTxRequest exit Zar token from Vat contract transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + exitZarTransactionRaw(requestParameters: ExitZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * exit ZAR token from Vat contract + * exit ZAR token from Vat contract + */ + exitZarTransaction(requestParameters: ExitZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Retrieve a list of all available ilks. + * @summary Get all Ilks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + getAllIlksRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Retrieve a list of all available ilks. + * Get all Ilks + */ + getAllIlks(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get collector data + * @summary Get collector data + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + getCollectorDataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get collector data + * Get collector data + */ + getCollectorData(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Retrieve an Ilk by providing its name. + * @summary Get Ilk by name + * @param {string} name Name of the ILK + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + getIlkByNameRaw(requestParameters: GetIlkByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Retrieve an Ilk by providing its name. + * Get Ilk by name + */ + getIlkByName(requestParameters: GetIlkByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + getVaultByIdRaw(requestParameters: GetVaultByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get a vault by ID + */ + getVaultById(requestParameters: GetVaultByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {'repay' | 'deposit' | 'withdraw' | 'mint'} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + getVaultEventsByIdRaw(requestParameters: GetVaultEventsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get vault events by ID + */ + getVaultEventsById(requestParameters: GetVaultEventsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + getVaultsByOwnerRaw(requestParameters: GetVaultsByOwnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get vaults by owner query + */ + getVaultsByOwner(requestParameters: GetVaultsByOwnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * liquidate a vault + * @summary liquidate a vault + * @param {StablecoinSystemBarkTxRequest} stablecoinSystemBarkTxRequest Liquidate a Vault transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + liquidateVaultTransactionRaw(requestParameters: LiquidateVaultTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * liquidate a vault + * liquidate a vault + */ + liquidateVaultTransaction(requestParameters: LiquidateVaultTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Mint ZAR + * @summary Mint ZAR + * @param {StablecoinSystemMintZarTxRequest} stablecoinSystemMintZarTxRequest Mint ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + mintZarTransactionRaw(requestParameters: MintZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Mint ZAR + * Mint ZAR + */ + mintZarTransaction(requestParameters: MintZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Repay ZAR + * @summary Repay ZAR + * @param {StablecoinSystemRepayZarTxRequest} stablecoinSystemRepayZarTxRequest Repay ZAR transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + repayZarTransactionRaw(requestParameters: RepayZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Repay ZAR + * Repay ZAR + */ + repayZarTransaction(requestParameters: RepayZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * reset a auction + * @summary reset a auction + * @param {StablecoinSystemRedoTxRequest} stablecoinSystemRedoTxRequest Reset a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + resetAuctionTransactionRaw(requestParameters: ResetAuctionTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * reset a auction + * reset a auction + */ + resetAuctionTransaction(requestParameters: ResetAuctionTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * take a auction + * @summary take a auction + * @param {StablecoinSystemTakeTxRequest} stablecoinSystemTakeTxRequest Take a Auction transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + takeAuctionTransactionRaw(requestParameters: TakeAuctionTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * take a auction + * take a auction + */ + takeAuctionTransaction(requestParameters: TakeAuctionTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Withdraw collateral + * @summary Withdraw collateral + * @param {StablecoinSystemWithdrawCollateralTxRequest} stablecoinSystemWithdrawCollateralTxRequest Withdraw collateral transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StableCoinSystemApiInterface + */ + withdrawCollateralTransactionRaw(requestParameters: WithdrawCollateralTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Withdraw collateral + * Withdraw collateral + */ + withdrawCollateralTransaction(requestParameters: WithdrawCollateralTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class StableCoinSystemApi extends runtime.BaseAPI implements StableCoinSystemApiInterface { + /** + * approve and join ZAR token into Vat contract + * approve and join ZAR token into Vat contract + */ + approveAndJoinZarTransactionRaw(requestParameters: ApproveAndJoinZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * approve and join ZAR token into Vat contract + * approve and join ZAR token into Vat contract + */ + approveAndJoinZarTransaction(requestParameters: ApproveAndJoinZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Create vault + * Create vault + */ + createStableCoinVaultRaw(requestParameters: CreateStableCoinVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Create vault + * Create vault + */ + createStableCoinVault(requestParameters: CreateStableCoinVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Deposit collateral + * Deposit collateral + */ + depositStableCoinCollateralRaw(requestParameters: DepositStableCoinCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Deposit collateral + * Deposit collateral + */ + depositStableCoinCollateral(requestParameters: DepositStableCoinCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * exit Gem token (which can be used as collateral) from Vat contract + * exit Gem token (which can be used as collateral) from Vat contract + */ + exitGemTransactionRaw(requestParameters: ExitGemTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * exit Gem token (which can be used as collateral) from Vat contract + * exit Gem token (which can be used as collateral) from Vat contract + */ + exitGemTransaction(requestParameters: ExitGemTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * exit ZAR token from Vat contract + * exit ZAR token from Vat contract + */ + exitZarTransactionRaw(requestParameters: ExitZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * exit ZAR token from Vat contract + * exit ZAR token from Vat contract + */ + exitZarTransaction(requestParameters: ExitZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Retrieve a list of all available ilks. + * Get all Ilks + */ + getAllIlksRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Retrieve a list of all available ilks. + * Get all Ilks + */ + getAllIlks(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get collector data + * Get collector data + */ + getCollectorDataRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get collector data + * Get collector data + */ + getCollectorData(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Retrieve an Ilk by providing its name. + * Get Ilk by name + */ + getIlkByNameRaw(requestParameters: GetIlkByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Retrieve an Ilk by providing its name. + * Get Ilk by name + */ + getIlkByName(requestParameters: GetIlkByNameRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get a vault by ID + */ + getVaultByIdRaw(requestParameters: GetVaultByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get a vault by ID + */ + getVaultById(requestParameters: GetVaultByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get vault events by ID + */ + getVaultEventsByIdRaw(requestParameters: GetVaultEventsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get vault events by ID + */ + getVaultEventsById(requestParameters: GetVaultEventsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get vaults by owner query + */ + getVaultsByOwnerRaw(requestParameters: GetVaultsByOwnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get vaults by owner query + */ + getVaultsByOwner(requestParameters?: GetVaultsByOwnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * liquidate a vault + * liquidate a vault + */ + liquidateVaultTransactionRaw(requestParameters: LiquidateVaultTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * liquidate a vault + * liquidate a vault + */ + liquidateVaultTransaction(requestParameters: LiquidateVaultTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Mint ZAR + * Mint ZAR + */ + mintZarTransactionRaw(requestParameters: MintZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Mint ZAR + * Mint ZAR + */ + mintZarTransaction(requestParameters: MintZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Repay ZAR + * Repay ZAR + */ + repayZarTransactionRaw(requestParameters: RepayZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Repay ZAR + * Repay ZAR + */ + repayZarTransaction(requestParameters: RepayZarTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * reset a auction + * reset a auction + */ + resetAuctionTransactionRaw(requestParameters: ResetAuctionTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * reset a auction + * reset a auction + */ + resetAuctionTransaction(requestParameters: ResetAuctionTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * take a auction + * take a auction + */ + takeAuctionTransactionRaw(requestParameters: TakeAuctionTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * take a auction + * take a auction + */ + takeAuctionTransaction(requestParameters: TakeAuctionTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Withdraw collateral + * Withdraw collateral + */ + withdrawCollateralTransactionRaw(requestParameters: WithdrawCollateralTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Withdraw collateral + * Withdraw collateral + */ + withdrawCollateralTransaction(requestParameters: WithdrawCollateralTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * @export + */ +export declare const GetVaultEventsByIdTypeEnum: { + readonly REPAY: "repay"; + readonly DEPOSIT: "deposit"; + readonly WITHDRAW: "withdraw"; + readonly MINT: "mint"; +}; +export type GetVaultEventsByIdTypeEnum = typeof GetVaultEventsByIdTypeEnum[keyof typeof GetVaultEventsByIdTypeEnum]; +//# sourceMappingURL=StableCoinSystemApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/StableCoinSystemApi.d.ts.map b/dist/cjs/service/src/apis/StableCoinSystemApi.d.ts.map new file mode 100644 index 0000000..7f86ab6 --- /dev/null +++ b/dist/cjs/service/src/apis/StableCoinSystemApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StableCoinSystemApi.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/apis/StableCoinSystemApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,aAAa,EACb,GAAG,EACH,YAAY,EACZ,6BAA6B,EAC7B,oCAAoC,EACpC,0CAA0C,EAC1C,gCAAgC,EAChC,gCAAgC,EAChC,6BAA6B,EAC7B,iCAAiC,EACjC,6BAA6B,EAC7B,2CAA2C,EAC3C,gCAAgC,EAChC,gCAAgC,EAChC,KAAK,EACL,KAAK,EACL,mBAAmB,EACnB,cAAc,EACf,M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C;IAK5J;;;OAGG;IACG,0BAA0B,CAAC,iBAAiB,EAAE,8BAA8B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAyB5L;;;OAGG;IACG,uBAAuB,CAAC,iBAAiB,EAAE,8BAA8B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC;IAKpK;;;OAGG;IACG,yBAAyB,CAAC,iBAAiB,EAAE,6BAA6B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAyB1L;;;OAGG;IACG,sBAAsB,CAAC,iBAAiB,EAAE,6BAA6B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC;IAKlK;;;OAGG;IACG,gCAAgC,CAAC,iBAAiB,EAAE,oCAAoC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAyBxM;;;OAGG;IACG,6BAA6B,CAAC,iBAAiB,EAAE,oCAAoC,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC;CAKnL;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;CAK7B,CAAC;AACX,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/StableCoinSystemApi.js b/dist/cjs/service/src/apis/StableCoinSystemApi.js new file mode 100644 index 0000000..8513292 --- /dev/null +++ b/dist/cjs/service/src/apis/StableCoinSystemApi.js @@ -0,0 +1,490 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GetVaultEventsByIdTypeEnum = exports.StableCoinSystemApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class StableCoinSystemApi extends runtime.BaseAPI { + /** + * approve and join ZAR token into Vat contract + * approve and join ZAR token into Vat contract + */ + async approveAndJoinZarTransactionRaw(requestParameters, initOverrides) { + if (requestParameters['stablecoinSystemZarjoinTxRequest'] == null) { + throw new runtime.RequiredError('stablecoinSystemZarjoinTxRequest', 'Required parameter "stablecoinSystemZarjoinTxRequest" was null or undefined when calling approveAndJoinZarTransaction().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ + path: `/v2/stablecoinsystem/auctions/tx/zarjoin`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.StablecoinSystemZarjoinTxRequestToJSON)(requestParameters['stablecoinSystemZarjoinTxRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChainActivityFromJSON)(jsonValue)); + } + /** + * approve and join ZAR token into Vat contract + * approve and join ZAR token into Vat contract + */ + async approveAndJoinZarTransaction(requestParameters, initOverrides) { + const response = await this.approveAndJoinZarTransactionRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Create vault + * Create vault + */ + async createStableCoinVaultRaw(requestParameters, initOverrides) { + if (requestParameters['stablecoinSystemCreateVaultTxRequest'] == null) { + throw new runtime.RequiredError('stablecoinSystemCreateVaultTxRequest', 'Required parameter "stablecoinSystemCreateVaultTxRequest" was null or undefined when calling createStableCoinVault().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ + path: `/v2/stablecoinsystem/tx/createvault`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.StablecoinSystemCreateVaultTxRequestToJSON)(requestParameters['stablecoinSystemCreateVaultTxRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChainActivityFromJSON)(jsonValue)); + } + /** + * Create vault + * Create vault + */ + async createStableCoinVault(requestParameters, initOverrides) { + const response = await this.createStableCoinVaultRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Deposit collateral + * Deposit collateral + */ + async depositStableCoinCollateralRaw(requestParameters, initOverrides) { + if (requestParameters['stablecoinSystemDepositCollateralTxRequest'] == null) { + throw new runtime.RequiredError('stablecoinSystemDepositCollateralTxRequest', 'Required parameter "stablecoinSystemDepositCollateralTxRequest" was null or undefined when calling depositStableCoinCollateral().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ + path: `/v2/stablecoinsystem/tx/depositcollateral`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.StablecoinSystemDepositCollateralTxRequestToJSON)(requestParameters['stablecoinSystemDepositCollateralTxRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChainActivityFromJSON)(jsonValue)); + } + /** + * Deposit collateral + * Deposit collateral + */ + async depositStableCoinCollateral(requestParameters, initOverrides) { + const response = await this.depositStableCoinCollateralRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * exit Gem token (which can be used as collateral) from Vat contract + * exit Gem token (which can be used as collateral) from Vat contract + */ + async exitGemTransactionRaw(requestParameters, initOverrides) { + if (requestParameters['stablecoinSystemGemexitTxRequest'] == null) { + throw new runtime.RequiredError('stablecoinSystemGemexitTxRequest', 'Required parameter "stablecoinSystemGemexitTxRequest" was null or undefined when calling exitGemTransaction().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ + path: `/v2/stablecoinsystem/auctions/tx/gemexit`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.StablecoinSystemGemexitTxRequestToJSON)(requestParameters['stablecoinSystemGemexitTxRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChainActivityFromJSON)(jsonValue)); + } + /** + * exit Gem token (which can be used as collateral) from Vat contract + * exit Gem token (which can be used as collateral) from Vat contract + */ + async exitGemTransaction(requestParameters, initOverrides) { + const response = await this.exitGemTransactionRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * exit ZAR token from Vat contract + * exit ZAR token from Vat contract + */ + async exitZarTransactionRaw(requestParameters, initOverrides) { + if (requestParameters['stablecoinSystemZarexitTxRequest'] == null) { + throw new runtime.RequiredError('stablecoinSystemZarexitTxRequest', 'Required parameter "stablecoinSystemZarexitTxRequest" was null or undefined when calling exitZarTransaction().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ + path: `/v2/stablecoinsystem/auctions/tx/zarexit`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.StablecoinSystemZarexitTxRequestToJSON)(requestParameters['stablecoinSystemZarexitTxRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChainActivityFromJSON)(jsonValue)); + } + /** + * exit ZAR token from Vat contract + * exit ZAR token from Vat contract + */ + async exitZarTransaction(requestParameters, initOverrides) { + const response = await this.exitZarTransactionRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Retrieve a list of all available ilks. + * Get all Ilks + */ + async getAllIlksRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/v2/ilks`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IlksResponseFromJSON)(jsonValue)); + } + /** + * Retrieve a list of all available ilks. + * Get all Ilks + */ + async getAllIlks(initOverrides) { + const response = await this.getAllIlksRaw(initOverrides); + return await response.value(); + } + /** + * Get collector data + * Get collector data + */ + async getCollectorDataRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/v2/stats`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.StatsFromJSON)(jsonValue)); + } + /** + * Get collector data + * Get collector data + */ + async getCollectorData(initOverrides) { + const response = await this.getCollectorDataRaw(initOverrides); + return await response.value(); + } + /** + * Retrieve an Ilk by providing its name. + * Get Ilk by name + */ + async getIlkByNameRaw(requestParameters, initOverrides) { + if (requestParameters['name'] == null) { + throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling getIlkByName().'); + } + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/v2/ilks/{name}`.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.IlkFromJSON)(jsonValue)); + } + /** + * Retrieve an Ilk by providing its name. + * Get Ilk by name + */ + async getIlkByName(requestParameters, initOverrides) { + const response = await this.getIlkByNameRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Get a vault by ID + */ + async getVaultByIdRaw(requestParameters, initOverrides) { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVaultById().'); + } + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/v2/vaults/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.VaultFromJSON)(jsonValue)); + } + /** + * Get a vault by ID + */ + async getVaultById(requestParameters, initOverrides) { + const response = await this.getVaultByIdRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Get vault events by ID + */ + async getVaultEventsByIdRaw(requestParameters, initOverrides) { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVaultEventsById().'); + } + const queryParameters = {}; + if (requestParameters['type'] != null) { + queryParameters['type'] = requestParameters['type']; + } + const headerParameters = {}; + const response = await this.request({ + path: `/v2/vaults/{id}/events`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.VaultEventsResponseFromJSON)(jsonValue)); + } + /** + * Get vault events by ID + */ + async getVaultEventsById(requestParameters, initOverrides) { + const response = await this.getVaultEventsByIdRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Get vaults by owner query + */ + async getVaultsByOwnerRaw(requestParameters, initOverrides) { + const queryParameters = {}; + if (requestParameters['owner'] != null) { + queryParameters['owner'] = requestParameters['owner']; + } + const headerParameters = {}; + const response = await this.request({ + path: `/v2/vaults`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.VaultsResponseFromJSON)(jsonValue)); + } + /** + * Get vaults by owner query + */ + async getVaultsByOwner(requestParameters = {}, initOverrides) { + const response = await this.getVaultsByOwnerRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * liquidate a vault + * liquidate a vault + */ + async liquidateVaultTransactionRaw(requestParameters, initOverrides) { + if (requestParameters['stablecoinSystemBarkTxRequest'] == null) { + throw new runtime.RequiredError('stablecoinSystemBarkTxRequest', 'Required parameter "stablecoinSystemBarkTxRequest" was null or undefined when calling liquidateVaultTransaction().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ + path: `/v2/stablecoinsystem/tx/bark`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.StablecoinSystemBarkTxRequestToJSON)(requestParameters['stablecoinSystemBarkTxRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChainActivityFromJSON)(jsonValue)); + } + /** + * liquidate a vault + * liquidate a vault + */ + async liquidateVaultTransaction(requestParameters, initOverrides) { + const response = await this.liquidateVaultTransactionRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Mint ZAR + * Mint ZAR + */ + async mintZarTransactionRaw(requestParameters, initOverrides) { + if (requestParameters['stablecoinSystemMintZarTxRequest'] == null) { + throw new runtime.RequiredError('stablecoinSystemMintZarTxRequest', 'Required parameter "stablecoinSystemMintZarTxRequest" was null or undefined when calling mintZarTransaction().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ + path: `/v2/stablecoinsystem/tx/mintzar`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.StablecoinSystemMintZarTxRequestToJSON)(requestParameters['stablecoinSystemMintZarTxRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChainActivityFromJSON)(jsonValue)); + } + /** + * Mint ZAR + * Mint ZAR + */ + async mintZarTransaction(requestParameters, initOverrides) { + const response = await this.mintZarTransactionRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Repay ZAR + * Repay ZAR + */ + async repayZarTransactionRaw(requestParameters, initOverrides) { + if (requestParameters['stablecoinSystemRepayZarTxRequest'] == null) { + throw new runtime.RequiredError('stablecoinSystemRepayZarTxRequest', 'Required parameter "stablecoinSystemRepayZarTxRequest" was null or undefined when calling repayZarTransaction().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ + path: `/v2/stablecoinsystem/tx/repayzar`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.StablecoinSystemRepayZarTxRequestToJSON)(requestParameters['stablecoinSystemRepayZarTxRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChainActivityFromJSON)(jsonValue)); + } + /** + * Repay ZAR + * Repay ZAR + */ + async repayZarTransaction(requestParameters, initOverrides) { + const response = await this.repayZarTransactionRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * reset a auction + * reset a auction + */ + async resetAuctionTransactionRaw(requestParameters, initOverrides) { + if (requestParameters['stablecoinSystemRedoTxRequest'] == null) { + throw new runtime.RequiredError('stablecoinSystemRedoTxRequest', 'Required parameter "stablecoinSystemRedoTxRequest" was null or undefined when calling resetAuctionTransaction().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ + path: `/v2/stablecoinsystem/auctions/tx/redo`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.StablecoinSystemRedoTxRequestToJSON)(requestParameters['stablecoinSystemRedoTxRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChainActivityFromJSON)(jsonValue)); + } + /** + * reset a auction + * reset a auction + */ + async resetAuctionTransaction(requestParameters, initOverrides) { + const response = await this.resetAuctionTransactionRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * take a auction + * take a auction + */ + async takeAuctionTransactionRaw(requestParameters, initOverrides) { + if (requestParameters['stablecoinSystemTakeTxRequest'] == null) { + throw new runtime.RequiredError('stablecoinSystemTakeTxRequest', 'Required parameter "stablecoinSystemTakeTxRequest" was null or undefined when calling takeAuctionTransaction().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ + path: `/v2/stablecoinsystem/auctions/tx/take`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.StablecoinSystemTakeTxRequestToJSON)(requestParameters['stablecoinSystemTakeTxRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChainActivityFromJSON)(jsonValue)); + } + /** + * take a auction + * take a auction + */ + async takeAuctionTransaction(requestParameters, initOverrides) { + const response = await this.takeAuctionTransactionRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Withdraw collateral + * Withdraw collateral + */ + async withdrawCollateralTransactionRaw(requestParameters, initOverrides) { + if (requestParameters['stablecoinSystemWithdrawCollateralTxRequest'] == null) { + throw new runtime.RequiredError('stablecoinSystemWithdrawCollateralTxRequest', 'Required parameter "stablecoinSystemWithdrawCollateralTxRequest" was null or undefined when calling withdrawCollateralTransaction().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ + path: `/v2/stablecoinsystem/tx/withdrawcollateral`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.StablecoinSystemWithdrawCollateralTxRequestToJSON)(requestParameters['stablecoinSystemWithdrawCollateralTxRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ChainActivityFromJSON)(jsonValue)); + } + /** + * Withdraw collateral + * Withdraw collateral + */ + async withdrawCollateralTransaction(requestParameters, initOverrides) { + const response = await this.withdrawCollateralTransactionRaw(requestParameters, initOverrides); + return await response.value(); + } +} +exports.StableCoinSystemApi = StableCoinSystemApi; +/** + * @export + */ +exports.GetVaultEventsByIdTypeEnum = { + REPAY: 'repay', + DEPOSIT: 'deposit', + WITHDRAW: 'withdraw', + MINT: 'mint' +}; +//# sourceMappingURL=StableCoinSystemApi.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/StableCoinSystemApi.js.map b/dist/cjs/service/src/apis/StableCoinSystemApi.js.map new file mode 100644 index 0000000..6049df7 --- /dev/null +++ b/dist/cjs/service/src/apis/StableCoinSystemApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StableCoinSystemApi.js","sourceRoot":"","sources":["../../../../../src/service/src/apis/StableCoinSystemApi.ts"],"names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;;GAEG;AACU,QAAA,0BAA0B,GAAG;IACtC,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;CACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/StakingApi.d.ts b/dist/cjs/service/src/apis/StakingApi.d.ts new file mode 100644 index 0000000..71ff103 --- /dev/null +++ b/dist/cjs/service/src/apis/StakingApi.d.ts @@ -0,0 +1,166 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { StakePlansResponse, StakingCollectRewardTxRequest, StakingCollectRewardTxResponse, StakingStakeTxRequest, StakingStakeTxResponse, StakingWithdrawTxRequest, StakingWithdrawTxResponse, UserStakesResponse } from '../models/index'; +export interface CollectStakingRewardRequest { + stakingCollectRewardTxRequest: StakingCollectRewardTxRequest; +} +export interface GetUserStakingStatsRequest { + user?: string; + address?: string; + active?: boolean; + cursor?: number; + limit?: number; +} +export interface StakeToStakingContractRequest { + stakingStakeTxRequest: StakingStakeTxRequest; +} +export interface WithdrawStakedAssetRequest { + stakingWithdrawTxRequest: StakingWithdrawTxRequest; +} +/** + * StakingApi - interface + * + * @export + * @interface StakingApiInterface + */ +export interface StakingApiInterface { + /** + * Collect staking reward + * @summary Collect staking reward + * @param {StakingCollectRewardTxRequest} stakingCollectRewardTxRequest Collect reward transaction request + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApiInterface + */ + collectStakingRewardRaw(requestParameters: CollectStakingRewardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Collect staking reward + * Collect staking reward + */ + collectStakingReward(requestParameters: CollectStakingRewardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get staking plans + * @summary Get staking plans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApiInterface + */ + getStakingPlansRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get staking plans + * Get staking plans + */ + getStakingPlans(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get user staking stats + * @summary Get user staking stats + * @param {string} [user] Ethereum address of the user + * @param {string} [address] Ethereum address of the staking contract + * @param {boolean} [active] Filter by active stakes + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of stakes returned (default is 50) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApiInterface + */ + getUserStakingStatsRaw(requestParameters: GetUserStakingStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get user staking stats + * Get user staking stats + */ + getUserStakingStats(requestParameters: GetUserStakingStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Stake to staking contract + * @summary Stake to staking contract + * @param {StakingStakeTxRequest} stakingStakeTxRequest Stake transaction request, if amount is not provided, then the whole wallet balance will be used + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApiInterface + */ + stakeToStakingContractRaw(requestParameters: StakeToStakingContractRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Stake to staking contract + * Stake to staking contract + */ + stakeToStakingContract(requestParameters: StakeToStakingContractRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Withdraw staked asset + * @summary Withdraw staked asset + * @param {StakingWithdrawTxRequest} stakingWithdrawTxRequest Withdraw transaction request, if amount is not provided, then the whole staked amount will be withdrawn + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof StakingApiInterface + */ + withdrawStakedAssetRaw(requestParameters: WithdrawStakedAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Withdraw staked asset + * Withdraw staked asset + */ + withdrawStakedAsset(requestParameters: WithdrawStakedAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class StakingApi extends runtime.BaseAPI implements StakingApiInterface { + /** + * Collect staking reward + * Collect staking reward + */ + collectStakingRewardRaw(requestParameters: CollectStakingRewardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Collect staking reward + * Collect staking reward + */ + collectStakingReward(requestParameters: CollectStakingRewardRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get staking plans + * Get staking plans + */ + getStakingPlansRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get staking plans + * Get staking plans + */ + getStakingPlans(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get user staking stats + * Get user staking stats + */ + getUserStakingStatsRaw(requestParameters: GetUserStakingStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get user staking stats + * Get user staking stats + */ + getUserStakingStats(requestParameters?: GetUserStakingStatsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Stake to staking contract + * Stake to staking contract + */ + stakeToStakingContractRaw(requestParameters: StakeToStakingContractRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Stake to staking contract + * Stake to staking contract + */ + stakeToStakingContract(requestParameters: StakeToStakingContractRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Withdraw staked asset + * Withdraw staked asset + */ + withdrawStakedAssetRaw(requestParameters: WithdrawStakedAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Withdraw staked asset + * Withdraw staked asset + */ + withdrawStakedAsset(requestParameters: WithdrawStakedAssetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=StakingApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/StakingApi.d.ts.map b/dist/cjs/service/src/apis/StakingApi.d.ts.map new file mode 100644 index 0000000..08e61b0 --- /dev/null +++ b/dist/cjs/service/src/apis/StakingApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StakingApi.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/apis/StakingApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,kBAAkB,EAClB,6BAA6B,EAC7B,8BAA8B,EAC9B,qBAAqB,EACrB,sBAAsB,EACtB,wBAAwB,EACxB,yBAAyB,EAEzB,kBAAkB,EACnB,MAAM,iBAAiB,CAAC;AAsBzB,MAAM,WAAW,2BAA2B;IACxC,6BAA6B,EAAE,6BAA6B,CAAC;CAChE;AAED,MAAM,WAAW,0BAA0B;IACvC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,6BAA6B;IAC1C,qBAAqB,EAAE,qBAAqB,CAAC;CAChD;AAED,MAAM,WAAW,0BAA0B;IACvC,wBAAwB,EAAE,wBAAwB,CAAC;CACtD;AAED;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;;;;OAOG;IACH,uBAAuB,CAAC,iBAAiB,EAAE,2BAA2B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,8BAA8B,CAAC,CAAC,CAAC;IAElM;;;OAGG;IACH,oBAAoB,CAAC,iBAAiB,EAAE,2BAA2B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;IAE1K;;;;;;OAMG;IACH,kBAAkB,CAAC,aAAa,C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BAAiB,EAAE,6BAA6B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAK3K;;;OAGG;IACG,sBAAsB,CAAC,iBAAiB,EAAE,0BAA0B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,yBAAyB,CAAC,CAAC;IAyBhM;;;OAGG;IACG,mBAAmB,CAAC,iBAAiB,EAAE,0BAA0B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,yBAAyB,CAAC;CAK3K"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/StakingApi.js b/dist/cjs/service/src/apis/StakingApi.js new file mode 100644 index 0000000..b4f20d6 --- /dev/null +++ b/dist/cjs/service/src/apis/StakingApi.js @@ -0,0 +1,171 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.StakingApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class StakingApi extends runtime.BaseAPI { + /** + * Collect staking reward + * Collect staking reward + */ + async collectStakingRewardRaw(requestParameters, initOverrides) { + if (requestParameters['stakingCollectRewardTxRequest'] == null) { + throw new runtime.RequiredError('stakingCollectRewardTxRequest', 'Required parameter "stakingCollectRewardTxRequest" was null or undefined when calling collectStakingReward().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ + path: `/v2/staking/tx/collectreward`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.StakingCollectRewardTxRequestToJSON)(requestParameters['stakingCollectRewardTxRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.StakingCollectRewardTxResponseFromJSON)(jsonValue)); + } + /** + * Collect staking reward + * Collect staking reward + */ + async collectStakingReward(requestParameters, initOverrides) { + const response = await this.collectStakingRewardRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Get staking plans + * Get staking plans + */ + async getStakingPlansRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/v2/staking/plans`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.StakePlansResponseFromJSON)(jsonValue)); + } + /** + * Get staking plans + * Get staking plans + */ + async getStakingPlans(initOverrides) { + const response = await this.getStakingPlansRaw(initOverrides); + return await response.value(); + } + /** + * Get user staking stats + * Get user staking stats + */ + async getUserStakingStatsRaw(requestParameters, initOverrides) { + const queryParameters = {}; + if (requestParameters['user'] != null) { + queryParameters['user'] = requestParameters['user']; + } + if (requestParameters['address'] != null) { + queryParameters['address'] = requestParameters['address']; + } + if (requestParameters['active'] != null) { + queryParameters['active'] = requestParameters['active']; + } + if (requestParameters['cursor'] != null) { + queryParameters['cursor'] = requestParameters['cursor']; + } + if (requestParameters['limit'] != null) { + queryParameters['limit'] = requestParameters['limit']; + } + const headerParameters = {}; + const response = await this.request({ + path: `/v2/staking/stats`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserStakesResponseFromJSON)(jsonValue)); + } + /** + * Get user staking stats + * Get user staking stats + */ + async getUserStakingStats(requestParameters = {}, initOverrides) { + const response = await this.getUserStakingStatsRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Stake to staking contract + * Stake to staking contract + */ + async stakeToStakingContractRaw(requestParameters, initOverrides) { + if (requestParameters['stakingStakeTxRequest'] == null) { + throw new runtime.RequiredError('stakingStakeTxRequest', 'Required parameter "stakingStakeTxRequest" was null or undefined when calling stakeToStakingContract().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ + path: `/v2/staking/tx/stake`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.StakingStakeTxRequestToJSON)(requestParameters['stakingStakeTxRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.StakingStakeTxResponseFromJSON)(jsonValue)); + } + /** + * Stake to staking contract + * Stake to staking contract + */ + async stakeToStakingContract(requestParameters, initOverrides) { + const response = await this.stakeToStakingContractRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Withdraw staked asset + * Withdraw staked asset + */ + async withdrawStakedAssetRaw(requestParameters, initOverrides) { + if (requestParameters['stakingWithdrawTxRequest'] == null) { + throw new runtime.RequiredError('stakingWithdrawTxRequest', 'Required parameter "stakingWithdrawTxRequest" was null or undefined when calling withdrawStakedAsset().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ + path: `/v2/staking/tx/withdraw`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.StakingWithdrawTxRequestToJSON)(requestParameters['stakingWithdrawTxRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.StakingWithdrawTxResponseFromJSON)(jsonValue)); + } + /** + * Withdraw staked asset + * Withdraw staked asset + */ + async withdrawStakedAsset(requestParameters, initOverrides) { + const response = await this.withdrawStakedAssetRaw(requestParameters, initOverrides); + return await response.value(); + } +} +exports.StakingApi = StakingApi; +//# sourceMappingURL=StakingApi.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/StakingApi.js.map b/dist/cjs/service/src/apis/StakingApi.js.map new file mode 100644 index 0000000..b745dda --- /dev/null +++ b/dist/cjs/service/src/apis/StakingApi.js.map @@ -0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SAAS,EAAE,EAAE,CAAC,IAAA,yCAAiC,EAAC,SAAS,CAAC,CAAC,CAAC;IAC9G,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,mBAAmB,CAAC,iBAA6C,EAAE,aAA0D;QAC/H,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACrF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAhMD,gCAgMC"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/SwapApi.d.ts b/dist/cjs/service/src/apis/SwapApi.d.ts new file mode 100644 index 0000000..c276fdb --- /dev/null +++ b/dist/cjs/service/src/apis/SwapApi.d.ts @@ -0,0 +1,54 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { QuoteRequest, QuoteResponse } from '../models/index'; +export interface GetSwapQuoteRequest { + quoteRequest: QuoteRequest; +} +/** + * SwapApi - interface + * + * @export + * @interface SwapApiInterface + */ +export interface SwapApiInterface { + /** + * Get a quote for a swap + * @summary Get a quote for a swap + * @param {QuoteRequest} quoteRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SwapApiInterface + */ + getSwapQuoteRaw(requestParameters: GetSwapQuoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get a quote for a swap + * Get a quote for a swap + */ + getSwapQuote(requestParameters: GetSwapQuoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class SwapApi extends runtime.BaseAPI implements SwapApiInterface { + /** + * Get a quote for a swap + * Get a quote for a swap + */ + getSwapQuoteRaw(requestParameters: GetSwapQuoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get a quote for a swap + * Get a quote for a swap + */ + getSwapQuote(requestParameters: GetSwapQuoteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=SwapApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/SwapApi.d.ts.map b/dist/cjs/service/src/apis/SwapApi.d.ts.map new file mode 100644 index 0000000..b7d9a49 --- /dev/null +++ b/dist/cjs/service/src/apis/SwapApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SwapApi.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/apis/SwapApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,YAAY,EACZ,aAAa,EACd,MAAM,iBAAiB,CAAC;AAQzB,MAAM,WAAW,mBAAmB;IAChC,YAAY,EAAE,YAAY,CAAC;CAC9B;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;;;;OAOG;IACH,eAAe,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC,CAAC;IAEjK;;;OAGG;IACH,YAAY,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;CAE5I;AAED;;GAEG;AACH,qBAAa,OAAQ,SAAQ,OAAO,CAAC,OAAQ,YAAW,gBAAgB;IAEpE;;;OAGG;IACG,eAAe,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAyBtK;;;OAGG;IACG,YAAY,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC;CAKjJ"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/SwapApi.js b/dist/cjs/service/src/apis/SwapApi.js new file mode 100644 index 0000000..59465bf --- /dev/null +++ b/dist/cjs/service/src/apis/SwapApi.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SwapApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class SwapApi extends runtime.BaseAPI { + /** + * Get a quote for a swap + * Get a quote for a swap + */ + async getSwapQuoteRaw(requestParameters, initOverrides) { + if (requestParameters['quoteRequest'] == null) { + throw new runtime.RequiredError('quoteRequest', 'Required parameter "quoteRequest" was null or undefined when calling getSwapQuote().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ + path: `/v2/swap/quote`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.QuoteRequestToJSON)(requestParameters['quoteRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.QuoteResponseFromJSON)(jsonValue)); + } + /** + * Get a quote for a swap + * Get a quote for a swap + */ + async getSwapQuote(requestParameters, initOverrides) { + const response = await this.getSwapQuoteRaw(requestParameters, initOverrides); + return await response.value(); + } +} +exports.SwapApi = SwapApi; +//# sourceMappingURL=SwapApi.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/SwapApi.js.map b/dist/cjs/service/src/apis/SwapApi.js.map new file mode 100644 index 0000000..b35689d --- /dev/null +++ b/dist/cjs/service/src/apis/SwapApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SwapApi.js","sourceRoot":"","sources":["../../../../../src/service/src/apis/SwapApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAKtC,2CAKyB;AA+BzB;;GAEG;AACH,MAAa,OAAQ,SAAQ,OAAO,CAAC,OAAO;IAExC;;;OAGG;IACH,KAAK,CAAC,eAAe,CAAC,iBAAsC,EAAE,aAA0D;QACpH,IAAI,iBAAiB,CAAC,cAAc,CAAC,IAAI,IAAI,EAAE,CAAC;YAC5C,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,cAAc,EACd,sFAAsF,CACzF,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;QAEtD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,gBAAgB;YACtB,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,IAAA,0BAAkB,EAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;SAC9D,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,6BAAqB,EAAC,SAAS,CAAC,CAAC,CAAC;IAClG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,YAAY,CAAC,iBAAsC,EAAE,aAA0D;QACjH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC9E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAxCD,0BAwCC"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/VaultsApi.d.ts b/dist/cjs/service/src/apis/VaultsApi.d.ts new file mode 100644 index 0000000..c5164be --- /dev/null +++ b/dist/cjs/service/src/apis/VaultsApi.d.ts @@ -0,0 +1,111 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { Vault, VaultEventsResponse, VaultsResponse } from '../models/index'; +export interface GetVaultByIdRequest { + id: number; +} +export interface GetVaultEventsByIdRequest { + id: number; + type?: GetVaultEventsByIdTypeEnum; +} +export interface GetVaultsByOwnerRequest { + owner?: string; +} +/** + * VaultsApi - interface + * + * @export + * @interface VaultsApiInterface + */ +export interface VaultsApiInterface { + /** + * + * @summary Get a vault by ID + * @param {number} id Vault ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApiInterface + */ + getVaultByIdRaw(requestParameters: GetVaultByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get a vault by ID + */ + getVaultById(requestParameters: GetVaultByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * @summary Get vault events by ID + * @param {number} id Vault ID + * @param {'repay' | 'deposit' | 'withdraw' | 'mint'} [type] Event type + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApiInterface + */ + getVaultEventsByIdRaw(requestParameters: GetVaultEventsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get vault events by ID + */ + getVaultEventsById(requestParameters: GetVaultEventsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * + * @summary Get vaults by owner query + * @param {string} [owner] Ethereum address of the owner + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof VaultsApiInterface + */ + getVaultsByOwnerRaw(requestParameters: GetVaultsByOwnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get vaults by owner query + */ + getVaultsByOwner(requestParameters: GetVaultsByOwnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class VaultsApi extends runtime.BaseAPI implements VaultsApiInterface { + /** + * Get a vault by ID + */ + getVaultByIdRaw(requestParameters: GetVaultByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get a vault by ID + */ + getVaultById(requestParameters: GetVaultByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get vault events by ID + */ + getVaultEventsByIdRaw(requestParameters: GetVaultEventsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get vault events by ID + */ + getVaultEventsById(requestParameters: GetVaultEventsByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get vaults by owner query + */ + getVaultsByOwnerRaw(requestParameters: GetVaultsByOwnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get vaults by owner query + */ + getVaultsByOwner(requestParameters?: GetVaultsByOwnerRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * @export + */ +export declare const GetVaultEventsByIdTypeEnum: { + readonly REPAY: "repay"; + readonly DEPOSIT: "deposit"; + readonly WITHDRAW: "withdraw"; + readonly MINT: "mint"; +}; +export type GetVaultEventsByIdTypeEnum = typeof GetVaultEventsByIdTypeEnum[keyof typeof GetVaultEventsByIdTypeEnum]; +//# sourceMappingURL=VaultsApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/VaultsApi.d.ts.map b/dist/cjs/service/src/apis/VaultsApi.d.ts.map new file mode 100644 index 0000000..58c3398 --- /dev/null +++ b/dist/cjs/service/src/apis/VaultsApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"VaultsApi.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/apis/VaultsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,KAAK,EACL,mBAAmB,EACnB,cAAc,EACf,MAAM,iBAAiB,CAAC;AAUzB,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,yBAAyB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,0BAA0B,CAAC;CACrC;AAED,MAAM,WAAW,uBAAuB;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;;;OAOG;IACH,eAAe,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;IAEzJ;;OAEG;IACH,YAAY,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAEjI;;;;;;;;OAQG;IACH,qBAAqB,CAAC,iBAAiB,EAAE,yBAAyB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAEnL;;OAEG;IACH,kBAAkB,CAAC,iBAAiB,EAAE,yBAAyB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IAE3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ACG,gBAAgB,CAAC,iBAAiB,GAAE,uBAA4B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,cAAc,CAAC;CAK/J;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;CAK7B,CAAC;AACX,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/VaultsApi.js b/dist/cjs/service/src/apis/VaultsApi.js new file mode 100644 index 0000000..1fc5460 --- /dev/null +++ b/dist/cjs/service/src/apis/VaultsApi.js @@ -0,0 +1,110 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GetVaultEventsByIdTypeEnum = exports.VaultsApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class VaultsApi extends runtime.BaseAPI { + /** + * Get a vault by ID + */ + async getVaultByIdRaw(requestParameters, initOverrides) { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVaultById().'); + } + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/v2/vaults/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.VaultFromJSON)(jsonValue)); + } + /** + * Get a vault by ID + */ + async getVaultById(requestParameters, initOverrides) { + const response = await this.getVaultByIdRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Get vault events by ID + */ + async getVaultEventsByIdRaw(requestParameters, initOverrides) { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getVaultEventsById().'); + } + const queryParameters = {}; + if (requestParameters['type'] != null) { + queryParameters['type'] = requestParameters['type']; + } + const headerParameters = {}; + const response = await this.request({ + path: `/v2/vaults/{id}/events`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.VaultEventsResponseFromJSON)(jsonValue)); + } + /** + * Get vault events by ID + */ + async getVaultEventsById(requestParameters, initOverrides) { + const response = await this.getVaultEventsByIdRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Get vaults by owner query + */ + async getVaultsByOwnerRaw(requestParameters, initOverrides) { + const queryParameters = {}; + if (requestParameters['owner'] != null) { + queryParameters['owner'] = requestParameters['owner']; + } + const headerParameters = {}; + const response = await this.request({ + path: `/v2/vaults`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.VaultsResponseFromJSON)(jsonValue)); + } + /** + * Get vaults by owner query + */ + async getVaultsByOwner(requestParameters = {}, initOverrides) { + const response = await this.getVaultsByOwnerRaw(requestParameters, initOverrides); + return await response.value(); + } +} +exports.VaultsApi = VaultsApi; +/** + * @export + */ +exports.GetVaultEventsByIdTypeEnum = { + REPAY: 'repay', + DEPOSIT: 'deposit', + WITHDRAW: 'withdraw', + MINT: 'mint' +}; +//# sourceMappingURL=VaultsApi.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/VaultsApi.js.map b/dist/cjs/service/src/apis/VaultsApi.js.map new file mode 100644 index 0000000..533d29d --- /dev/null +++ b/dist/cjs/service/src/apis/VaultsApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"VaultsApi.js","sourceRoot":"","sources":["../../../../../src/service/src/apis/VaultsApi.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gB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,YAAY;YAClB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,8BAAsB,EAAC,SAAS,CAAC,CAAC,CAAC;IACnG,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,gBAAgB,CAAC,oBAA6C,EAAE,EAAE,aAA0D;QAC9H,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAClF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAtGD,8BAsGC;AAED;;GAEG;AACU,QAAA,0BAA0B,GAAG;IACtC,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,IAAI,EAAE,MAAM;CACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/WebsocketApi.d.ts b/dist/cjs/service/src/apis/WebsocketApi.d.ts new file mode 100644 index 0000000..4fd0ed9 --- /dev/null +++ b/dist/cjs/service/src/apis/WebsocketApi.d.ts @@ -0,0 +1,49 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +/** + * WebsocketApi - interface + * + * @export + * @interface WebsocketApiInterface + */ +export interface WebsocketApiInterface { + /** + * Upgrade to websocket connection + * @summary Websocket Upgrade + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WebsocketApiInterface + */ + getUnfilledOrdersWebsocketRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Upgrade to websocket connection + * Websocket Upgrade + */ + getUnfilledOrdersWebsocket(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class WebsocketApi extends runtime.BaseAPI implements WebsocketApiInterface { + /** + * Upgrade to websocket connection + * Websocket Upgrade + */ + getUnfilledOrdersWebsocketRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Upgrade to websocket connection + * Websocket Upgrade + */ + getUnfilledOrdersWebsocket(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=WebsocketApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/WebsocketApi.d.ts.map b/dist/cjs/service/src/apis/WebsocketApi.d.ts.map new file mode 100644 index 0000000..d1bc252 --- /dev/null +++ b/dist/cjs/service/src/apis/WebsocketApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"WebsocketApi.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/apis/WebsocketApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AAEtC;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;;;OAMG;IACH,6BAA6B,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC,CAAC;IAE9H;;;OAGG;IACH,0BAA0B,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAEzG;AAED;;GAEG;AACH,qBAAa,YAAa,SAAQ,OAAO,CAAC,OAAQ,YAAW,qBAAqB;IAE9E;;;OAGG;IACG,6BAA6B,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;IAenI;;;OAGG;IACG,0BAA0B,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;CAI9G"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/WebsocketApi.js b/dist/cjs/service/src/apis/WebsocketApi.js new file mode 100644 index 0000000..a7ab338 --- /dev/null +++ b/dist/cjs/service/src/apis/WebsocketApi.js @@ -0,0 +1,47 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WebsocketApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +/** + * + */ +class WebsocketApi extends runtime.BaseAPI { + /** + * Upgrade to websocket connection + * Websocket Upgrade + */ + async getUnfilledOrdersWebsocketRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/v2/ws`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.VoidApiResponse(response); + } + /** + * Upgrade to websocket connection + * Websocket Upgrade + */ + async getUnfilledOrdersWebsocket(initOverrides) { + await this.getUnfilledOrdersWebsocketRaw(initOverrides); + } +} +exports.WebsocketApi = WebsocketApi; +//# sourceMappingURL=WebsocketApi.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/WebsocketApi.js.map b/dist/cjs/service/src/apis/WebsocketApi.js.map new file mode 100644 index 0000000..7f35e7c --- /dev/null +++ b/dist/cjs/service/src/apis/WebsocketApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"WebsocketApi.js","sourceRoot":"","sources":["../../../../../src/service/src/apis/WebsocketApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AA0BtC;;GAEG;AACH,MAAa,YAAa,SAAQ,OAAO,CAAC,OAAO;IAE7C;;;OAGG;IACH,KAAK,CAAC,6BAA6B,CAAC,aAA0D;QAC1F,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,QAAQ;YACd,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,0BAA0B,CAAC,aAA0D;QACvF,MAAM,IAAI,CAAC,6BAA6B,CAAC,aAAa,CAAC,CAAC;IAC5D,CAAC;CAEJ;AA7BD,oCA6BC"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/index.d.ts b/dist/cjs/service/src/apis/index.d.ts new file mode 100644 index 0000000..807f210 --- /dev/null +++ b/dist/cjs/service/src/apis/index.d.ts @@ -0,0 +1,18 @@ +export * as AccountsApi from "./AccountsApi"; +export * as AddressesApi from "./AddressesApi"; +export * as BorrowsApi from "./BorrowsApi"; +export * as CollectorApi from "./CollectorApi"; +export * as DepositsApi from "./DepositsApi"; +export * as IlksApi from "./IlksApi"; +export * as LendingPoolApi from "./LendingPoolApi"; +export * as LogsApi from "./LogsApi"; +export * as OrdersApi from "./OrdersApi"; +export * as PermitApi from "./PermitApi"; +export * as PointsApi from "./PointsApi"; +export * as PricesApi from "./PricesApi"; +export * as StableCoinSystemApi from "./StableCoinSystemApi"; +export * as StakingApi from "./StakingApi"; +export * as SwapApi from "./SwapApi"; +export * as VaultsApi from "./VaultsApi"; +export * as WebsocketApi from "./WebsocketApi"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/index.d.ts.map b/dist/cjs/service/src/apis/index.d.ts.map new file mode 100644 index 0000000..219dad1 --- /dev/null +++ b/dist/cjs/service/src/apis/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/apis/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC;AAC7C,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,mBAAmB,MAAM,uBAAuB,CAAC;AAC7D,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/apis/index.js b/dist/cjs/service/src/apis/index.js new file mode 100644 index 0000000..5f1dac4 --- /dev/null +++ b/dist/cjs/service/src/apis/index.js @@ -0,0 +1,24 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WebsocketApi = exports.VaultsApi = exports.SwapApi = exports.StakingApi = exports.StableCoinSystemApi = exports.PricesApi = exports.PointsApi = exports.PermitApi = exports.OrdersApi = exports.LogsApi = exports.LendingPoolApi = exports.IlksApi = exports.DepositsApi = exports.CollectorApi = exports.BorrowsApi = exports.AddressesApi = exports.AccountsApi = void 0; +const tslib_1 = require("tslib"); +/* tslint:disable */ +/* eslint-disable */ +exports.AccountsApi = tslib_1.__importStar(require("./AccountsApi")); +exports.AddressesApi = tslib_1.__importStar(require("./AddressesApi")); +exports.BorrowsApi = tslib_1.__importStar(require("./BorrowsApi")); +exports.CollectorApi = tslib_1.__importStar(require("./CollectorApi")); +exports.DepositsApi = tslib_1.__importStar(require("./DepositsApi")); +exports.IlksApi = tslib_1.__importStar(require("./IlksApi")); +exports.LendingPoolApi = tslib_1.__importStar(require("./LendingPoolApi")); +exports.LogsApi = tslib_1.__importStar(require("./LogsApi")); +exports.OrdersApi = tslib_1.__importStar(require("./OrdersApi")); +exports.PermitApi = tslib_1.__importStar(require("./PermitApi")); +exports.PointsApi = tslib_1.__importStar(require("./PointsApi")); +exports.PricesApi = tslib_1.__importStar(require("./PricesApi")); +exports.StableCoinSystemApi = tslib_1.__importStar(require("./StableCoinSystemApi")); +exports.StakingApi = tslib_1.__importStar(require("./StakingApi")); +exports.SwapApi = tslib_1.__importStar(require("./SwapApi")); +exports.VaultsApi = tslib_1.__importStar(require("./VaultsApi")); +exports.WebsocketApi = tslib_1.__importStar(require("./WebsocketApi")); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/apis/index.js.map b/dist/cjs/service/src/apis/index.js.map new file mode 100644 index 0000000..f3f13cd --- /dev/null +++ b/dist/cjs/service/src/apis/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/service/src/apis/index.ts"],"names":[],"mappings":";;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,qEAA6C;AAC7C,uEAA+C;AAC/C,mEAA2C;AAC3C,uEAA+C;AAC/C,qEAA6C;AAC7C,6DAAqC;AACrC,2EAAmD;AACnD,6DAAqC;AACrC,iEAAyC;AACzC,iEAAyC;AACzC,iEAAyC;AACzC,iEAAyC;AACzC,qFAA6D;AAC7D,mEAA2C;AAC3C,6DAAqC;AACrC,iEAAyC;AACzC,uEAA+C"} \ No newline at end of file diff --git a/dist/cjs/service/src/index.d.ts b/dist/cjs/service/src/index.d.ts new file mode 100644 index 0000000..eb67a70 --- /dev/null +++ b/dist/cjs/service/src/index.d.ts @@ -0,0 +1,4 @@ +export * from './runtime'; +export * from './apis/index'; +export * from './models/index'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/index.d.ts.map b/dist/cjs/service/src/index.d.ts.map new file mode 100644 index 0000000..6b65610 --- /dev/null +++ b/dist/cjs/service/src/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/service/src/index.ts"],"names":[],"mappings":"AAEA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/index.js b/dist/cjs/service/src/index.js new file mode 100644 index 0000000..a8c073e --- /dev/null +++ b/dist/cjs/service/src/index.js @@ -0,0 +1,9 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +/* tslint:disable */ +/* eslint-disable */ +tslib_1.__exportStar(require("./runtime"), exports); +tslib_1.__exportStar(require("./apis/index"), exports); +tslib_1.__exportStar(require("./models/index"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/index.js.map b/dist/cjs/service/src/index.js.map new file mode 100644 index 0000000..cf68339 --- /dev/null +++ b/dist/cjs/service/src/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/service/src/index.ts"],"names":[],"mappings":";;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,oDAA0B;AAC1B,uDAA6B;AAC7B,yDAA+B"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Account.d.ts b/dist/cjs/service/src/models/Account.d.ts new file mode 100644 index 0000000..bf1cf59 --- /dev/null +++ b/dist/cjs/service/src/models/Account.d.ts @@ -0,0 +1,91 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WalletBalance } from './WalletBalance'; +import type { AccountStakingSummary } from './AccountStakingSummary'; +import type { AccountLendingpoolSummary } from './AccountLendingpoolSummary'; +import type { AccountStablecoinSystemSummary } from './AccountStablecoinSystemSummary'; +/** + * + * @export + * @interface Account + */ +export interface Account { + /** + * The number of points the account has. + * @type {number} + * @memberof Account + */ + points: number; + /** + * Ethereum address of the account + * @type {string} + * @memberof Account + */ + address: string; + /** + * + * @type {WalletBalance} + * @memberof Account + */ + walletBalance: WalletBalance; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Account + */ + netWorth: { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Account + */ + totalDebt: { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Account + */ + totalDeposits: { + [key: string]: string | undefined; + }; + /** + * + * @type {AccountLendingpoolSummary} + * @memberof Account + */ + lendingpoolSummary: AccountLendingpoolSummary; + /** + * + * @type {AccountStablecoinSystemSummary} + * @memberof Account + */ + stabelcoinSystemSummary: AccountStablecoinSystemSummary; + /** + * + * @type {AccountStakingSummary} + * @memberof Account + */ + stakingSummary: AccountStakingSummary; +} +/** + * Check if a given object implements the Account interface. + */ +export declare function instanceOfAccount(value: object): value is Account; +export declare function AccountFromJSON(json: any): Account; +export declare function AccountFromJSONTyped(json: any, ignoreDiscriminator: boolean): Account; +export declare function AccountToJSON(json: any): Account; +export declare function AccountToJSONTyped(value?: Account | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=Account.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Account.d.ts.map b/dist/cjs/service/src/models/Account.d.ts.map new file mode 100644 index 0000000..793df59 --- /dev/null +++ b/dist/cjs/service/src/models/Account.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Account.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/Account.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAOrD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAOrE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAO7E,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAQvF;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,aAAa,EAAE,aAAa,CAAC;IAC7B;;;;OAIG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACjD;;;;OAIG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAClD;;;;OAIG;IACH,aAAa,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACtD;;;;OAIG;IACH,kBAAkB,EAAE,yBAAyB,CAAC;IAC9C;;;;OAIG;IACH,uBAAuB,EAAE,8BAA8B,CAAC;IACxD;;;;OAIG;IACH,cAAc,EAAE,qBAAqB,CAAC;CACzC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,OAAO,CAWjE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAElD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,OAAO,CAgBrF;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAEhD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAiBpG"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Account.js b/dist/cjs/service/src/models/Account.js new file mode 100644 index 0000000..204f3a6 --- /dev/null +++ b/dist/cjs/service/src/models/Account.js @@ -0,0 +1,87 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfAccount = instanceOfAccount; +exports.AccountFromJSON = AccountFromJSON; +exports.AccountFromJSONTyped = AccountFromJSONTyped; +exports.AccountToJSON = AccountToJSON; +exports.AccountToJSONTyped = AccountToJSONTyped; +const WalletBalance_1 = require("./WalletBalance"); +const AccountStakingSummary_1 = require("./AccountStakingSummary"); +const AccountLendingpoolSummary_1 = require("./AccountLendingpoolSummary"); +const AccountStablecoinSystemSummary_1 = require("./AccountStablecoinSystemSummary"); +/** + * Check if a given object implements the Account interface. + */ +function instanceOfAccount(value) { + if (!('points' in value) || value['points'] === undefined) + return false; + if (!('address' in value) || value['address'] === undefined) + return false; + if (!('walletBalance' in value) || value['walletBalance'] === undefined) + return false; + if (!('netWorth' in value) || value['netWorth'] === undefined) + return false; + if (!('totalDebt' in value) || value['totalDebt'] === undefined) + return false; + if (!('totalDeposits' in value) || value['totalDeposits'] === undefined) + return false; + if (!('lendingpoolSummary' in value) || value['lendingpoolSummary'] === undefined) + return false; + if (!('stabelcoinSystemSummary' in value) || value['stabelcoinSystemSummary'] === undefined) + return false; + if (!('stakingSummary' in value) || value['stakingSummary'] === undefined) + return false; + return true; +} +function AccountFromJSON(json) { + return AccountFromJSONTyped(json, false); +} +function AccountFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'points': json['points'], + 'address': json['address'], + 'walletBalance': (0, WalletBalance_1.WalletBalanceFromJSON)(json['walletBalance']), + 'netWorth': json['netWorth'], + 'totalDebt': json['totalDebt'], + 'totalDeposits': json['totalDeposits'], + 'lendingpoolSummary': (0, AccountLendingpoolSummary_1.AccountLendingpoolSummaryFromJSON)(json['lendingpoolSummary']), + 'stabelcoinSystemSummary': (0, AccountStablecoinSystemSummary_1.AccountStablecoinSystemSummaryFromJSON)(json['stabelcoinSystemSummary']), + 'stakingSummary': (0, AccountStakingSummary_1.AccountStakingSummaryFromJSON)(json['stakingSummary']), + }; +} +function AccountToJSON(json) { + return AccountToJSONTyped(json, false); +} +function AccountToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'points': value['points'], + 'address': value['address'], + 'walletBalance': (0, WalletBalance_1.WalletBalanceToJSON)(value['walletBalance']), + 'netWorth': value['netWorth'], + 'totalDebt': value['totalDebt'], + 'totalDeposits': value['totalDeposits'], + 'lendingpoolSummary': (0, AccountLendingpoolSummary_1.AccountLendingpoolSummaryToJSON)(value['lendingpoolSummary']), + 'stabelcoinSystemSummary': (0, AccountStablecoinSystemSummary_1.AccountStablecoinSystemSummaryToJSON)(value['stabelcoinSystemSummary']), + 'stakingSummary': (0, AccountStakingSummary_1.AccountStakingSummaryToJSON)(value['stakingSummary']), + }; +} +//# sourceMappingURL=Account.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Account.js.map b/dist/cjs/service/src/models/Account.js.map new file mode 100644 index 0000000..c0b908d --- /dev/null +++ b/dist/cjs/service/src/models/Account.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Account.js","sourceRoot":"","sources":["../../../../../src/service/src/models/Account.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAiGH,8CAWC;AAED,0CAEC;AAED,oDAgBC;AAED,sCAEC;AAED,gDAiBC;AArJD,mDAKyB;AAEzB,mEAKiC;AAEjC,2EAKqC;AAErC,qFAK0C;AAgE1C;;GAEG;AACH,SAAgB,iBAAiB,CAAC,KAAa;IAC3C,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,eAAe,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,eAAe,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtF,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,IAAI,CAAC,CAAC,eAAe,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,eAAe,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtF,IAAI,CAAC,CAAC,oBAAoB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,oBAAoB,CAAC,KAAK,SAAS;QA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AK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,eAAe,EAAE,IAAA,mCAAmB,EAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QAC5D,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;QAC7B,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,eAAe,EAAE,KAAK,CAAC,eAAe,CAAC;QACvC,oBAAoB,EAAE,IAAA,2DAA+B,EAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;QAClF,yBAAyB,EAAE,IAAA,qEAAoC,EAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;QACjG,gBAAgB,EAAE,IAAA,mDAA2B,EAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;KACzE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/AccountLendingpoolSummary.d.ts b/dist/cjs/service/src/models/AccountLendingpoolSummary.d.ts new file mode 100644 index 0000000..a717879 --- /dev/null +++ b/dist/cjs/service/src/models/AccountLendingpoolSummary.d.ts @@ -0,0 +1,101 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AccountLendingpoolSummary + */ +export interface AccountLendingpoolSummary { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountLendingpoolSummary + */ + totalDebt: { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountLendingpoolSummary + */ + totalDeposits: { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountLendingpoolSummary + */ + totalCollateral: { + [key: string]: string | undefined; + }; + /** + * Health factor in lending pool + * @type {string} + * @memberof AccountLendingpoolSummary + */ + healthFactor: string; + /** + * Net annual percentage yield in lending pool + * @type {string} + * @memberof AccountLendingpoolSummary + */ + netApy: string; + /** + * Total supply rate in lending pool for account + * @type {string} + * @memberof AccountLendingpoolSummary + */ + totalSupplyApy: string; + /** + * Total borrow rate in lending pool for account + * @type {string} + * @memberof AccountLendingpoolSummary + */ + totalBorrowApy: string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountLendingpoolSummary + */ + availableToBorrow: { + [key: string]: string | undefined; + }; + /** + * Borrow power used in lending pool + * @type {string} + * @memberof AccountLendingpoolSummary + */ + borrowPowerUsed: string; + /** + * Current liquidation threshold in lending pool + * @type {string} + * @memberof AccountLendingpoolSummary + */ + currentLiquidationThreshold: string; + /** + * Loan to value in lending pool + * @type {string} + * @memberof AccountLendingpoolSummary + */ + loanToValue: string; +} +/** + * Check if a given object implements the AccountLendingpoolSummary interface. + */ +export declare function instanceOfAccountLendingpoolSummary(value: object): value is AccountLendingpoolSummary; +export declare function AccountLendingpoolSummaryFromJSON(json: any): AccountLendingpoolSummary; +export declare function AccountLendingpoolSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountLendingpoolSummary; +export declare function AccountLendingpoolSummaryToJSON(json: any): AccountLendingpoolSummary; +export declare function AccountLendingpoolSummaryToJSONTyped(value?: AccountLendingpoolSummary | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=AccountLendingpoolSummary.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/AccountLendingpoolSummary.d.ts.map b/dist/cjs/service/src/models/AccountLendingpoolSummary.d.ts.map new file mode 100644 index 0000000..cf07b8a --- /dev/null +++ b/dist/cjs/service/src/models/AccountLendingpoolSummary.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"AccountLendingpoolSummary.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/AccountLendingpoolSummary.ts"],"names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G,GAAG,CAmBxI"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/AccountLendingpoolSummary.js b/dist/cjs/service/src/models/AccountLendingpoolSummary.js new file mode 100644 index 0000000..4850a23 --- /dev/null +++ b/dist/cjs/service/src/models/AccountLendingpoolSummary.js @@ -0,0 +1,91 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfAccountLendingpoolSummary = instanceOfAccountLendingpoolSummary; +exports.AccountLendingpoolSummaryFromJSON = AccountLendingpoolSummaryFromJSON; +exports.AccountLendingpoolSummaryFromJSONTyped = AccountLendingpoolSummaryFromJSONTyped; +exports.AccountLendingpoolSummaryToJSON = AccountLendingpoolSummaryToJSON; +exports.AccountLendingpoolSummaryToJSONTyped = AccountLendingpoolSummaryToJSONTyped; +/** + * Check if a given object implements the AccountLendingpoolSummary interface. + */ +function instanceOfAccountLendingpoolSummary(value) { + if (!('totalDebt' in value) || value['totalDebt'] === undefined) + return false; + if (!('totalDeposits' in value) || value['totalDeposits'] === undefined) + return false; + if (!('totalCollateral' in value) || value['totalCollateral'] === undefined) + return false; + if (!('healthFactor' in value) || value['healthFactor'] === undefined) + return false; + if (!('netApy' in value) || value['netApy'] === undefined) + return false; + if (!('totalSupplyApy' in value) || value['totalSupplyApy'] === undefined) + return false; + if (!('totalBorrowApy' in value) || value['totalBorrowApy'] === undefined) + return false; + if (!('availableToBorrow' in value) || value['availableToBorrow'] === undefined) + return false; + if (!('borrowPowerUsed' in value) || value['borrowPowerUsed'] === undefined) + return false; + if (!('currentLiquidationThreshold' in value) || value['currentLiquidationThreshold'] === undefined) + return false; + if (!('loanToValue' in value) || value['loanToValue'] === undefined) + return false; + return true; +} +function AccountLendingpoolSummaryFromJSON(json) { + return AccountLendingpoolSummaryFromJSONTyped(json, false); +} +function AccountLendingpoolSummaryFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'totalDebt': json['totalDebt'], + 'totalDeposits': json['totalDeposits'], + 'totalCollateral': json['totalCollateral'], + 'healthFactor': json['healthFactor'], + 'netApy': json['netApy'], + 'totalSupplyApy': json['totalSupplyApy'], + 'totalBorrowApy': json['totalBorrowApy'], + 'availableToBorrow': json['availableToBorrow'], + 'borrowPowerUsed': json['borrowPowerUsed'], + 'currentLiquidationThreshold': json['currentLiquidationThreshold'], + 'loanToValue': json['loanToValue'], + }; +} +function AccountLendingpoolSummaryToJSON(json) { + return AccountLendingpoolSummaryToJSONTyped(json, false); +} +function AccountLendingpoolSummaryToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'totalDebt': value['totalDebt'], + 'totalDeposits': value['totalDeposits'], + 'totalCollateral': value['totalCollateral'], + 'healthFactor': value['healthFactor'], + 'netApy': value['netApy'], + 'totalSupplyApy': value['totalSupplyApy'], + 'totalBorrowApy': value['totalBorrowApy'], + 'availableToBorrow': value['availableToBorrow'], + 'borrowPowerUsed': value['borrowPowerUsed'], + 'currentLiquidationThreshold': value['currentLiquidationThreshold'], + 'loanToValue': value['loanToValue'], + }; +} +//# sourceMappingURL=AccountLendingpoolSummary.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/AccountLendingpoolSummary.js.map b/dist/cjs/service/src/models/AccountLendingpoolSummary.js.map new file mode 100644 index 0000000..2acac1f --- /dev/null +++ b/dist/cjs/service/src/models/AccountLendingpoolSummary.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AccountLendingpoolSummary.js","sourceRoot":"","sources":["../../../../../src/service/src/models/AccountLendingpoolSummary.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgFH,kFAaC;AAED,8EAEC;AAED,wFAkBC;AAED,0E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AAK,CAAC,eAAe,CAAC;QACvC,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;QAC3C,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC;QACrC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,CAAC;QACzC,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,CAAC;QACzC,mBAAmB,EAAE,KAAK,CAAC,mBAAmB,CAAC;QAC/C,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;QAC3C,6BAA6B,EAAE,KAAK,CAAC,6BAA6B,CAAC;QACnE,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;KACtC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/AccountStablecoinSystemSummary.d.ts b/dist/cjs/service/src/models/AccountStablecoinSystemSummary.d.ts new file mode 100644 index 0000000..e985572 --- /dev/null +++ b/dist/cjs/service/src/models/AccountStablecoinSystemSummary.d.ts @@ -0,0 +1,49 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AccountStablecoinSystemSummary + */ +export interface AccountStablecoinSystemSummary { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountStablecoinSystemSummary + */ + totalDebt: { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountStablecoinSystemSummary + */ + totalDeposits: { + [key: string]: string | undefined; + }; + /** + * Net annual percentage yield in stablecoin system + * @type {string} + * @memberof AccountStablecoinSystemSummary + */ + netApy: string; +} +/** + * Check if a given object implements the AccountStablecoinSystemSummary interface. + */ +export declare function instanceOfAccountStablecoinSystemSummary(value: object): value is AccountStablecoinSystemSummary; +export declare function AccountStablecoinSystemSummaryFromJSON(json: any): AccountStablecoinSystemSummary; +export declare function AccountStablecoinSystemSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountStablecoinSystemSummary; +export declare function AccountStablecoinSystemSummaryToJSON(json: any): AccountStablecoinSystemSummary; +export declare function AccountStablecoinSystemSummaryToJSONTyped(value?: AccountStablecoinSystemSummary | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=AccountStablecoinSystemSummary.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/AccountStablecoinSystemSummary.d.ts.map b/dist/cjs/service/src/models/AccountStablecoinSystemSummary.d.ts.map new file mode 100644 index 0000000..54f5aef --- /dev/null +++ b/dist/cjs/service/src/models/AccountStablecoinSystemSummary.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"AccountStablecoinSystemSummary.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/AccountStablecoinSystemSummary.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;;;OAIG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAClD;;;;OAIG;IACH,aAAa,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACtD;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,wCAAwC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,8BAA8B,CAK/G;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,GAAG,8BAA8B,CAEhG;AAED,wBAAgB,2CAA2C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,8BAA8B,CAUnI;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,GAAG,8BAA8B,CAE9F;AAED,wBAAgB,yCAAyC,CAAC,KAAK,CAAC,EAAE,8BAA8B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWlJ"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/AccountStablecoinSystemSummary.js b/dist/cjs/service/src/models/AccountStablecoinSystemSummary.js new file mode 100644 index 0000000..72ec4cd --- /dev/null +++ b/dist/cjs/service/src/models/AccountStablecoinSystemSummary.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfAccountStablecoinSystemSummary = instanceOfAccountStablecoinSystemSummary; +exports.AccountStablecoinSystemSummaryFromJSON = AccountStablecoinSystemSummaryFromJSON; +exports.AccountStablecoinSystemSummaryFromJSONTyped = AccountStablecoinSystemSummaryFromJSONTyped; +exports.AccountStablecoinSystemSummaryToJSON = AccountStablecoinSystemSummaryToJSON; +exports.AccountStablecoinSystemSummaryToJSONTyped = AccountStablecoinSystemSummaryToJSONTyped; +/** + * Check if a given object implements the AccountStablecoinSystemSummary interface. + */ +function instanceOfAccountStablecoinSystemSummary(value) { + if (!('totalDebt' in value) || value['totalDebt'] === undefined) + return false; + if (!('totalDeposits' in value) || value['totalDeposits'] === undefined) + return false; + if (!('netApy' in value) || value['netApy'] === undefined) + return false; + return true; +} +function AccountStablecoinSystemSummaryFromJSON(json) { + return AccountStablecoinSystemSummaryFromJSONTyped(json, false); +} +function AccountStablecoinSystemSummaryFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'totalDebt': json['totalDebt'], + 'totalDeposits': json['totalDeposits'], + 'netApy': json['netApy'], + }; +} +function AccountStablecoinSystemSummaryToJSON(json) { + return AccountStablecoinSystemSummaryToJSONTyped(json, false); +} +function AccountStablecoinSystemSummaryToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'totalDebt': value['totalDebt'], + 'totalDeposits': value['totalDeposits'], + 'netApy': value['netApy'], + }; +} +//# sourceMappingURL=AccountStablecoinSystemSummary.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/AccountStablecoinSystemSummary.js.map b/dist/cjs/service/src/models/AccountStablecoinSystemSummary.js.map new file mode 100644 index 0000000..21a34f4 --- /dev/null +++ b/dist/cjs/service/src/models/AccountStablecoinSystemSummary.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AccountStablecoinSystemSummary.js","sourceRoot":"","sources":["../../../../../src/service/src/models/AccountStablecoinSystemSummary.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,4FAKC;AAED,wFAEC;AAED,kGAUC;AAED,oFAEC;AAED,8FAWC;AAzCD;;GAEG;AACH,SAAgB,wCAAwC,CAAC,KAAa;IAClE,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,IAAI,CAAC,CAAC,eAAe,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,eAAe,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtF,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,sCAAsC,CAAC,IAAS;IAC5D,OAAO,2CAA2C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpE,CAAC;AAED,SAAgB,2CAA2C,CAAC,IAAS,EAAE,mBAA4B;IAC/F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;QAC9B,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC;QACtC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;KAC3B,CAAC;AACN,CAAC;AAED,SAAgB,oCAAoC,CAAC,IAAS;IAC1D,OAAO,yCAAyC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClE,CAAC;AAED,SAAgB,yCAAyC,CAAC,KAA6C,EAAE,sBAA+B,KAAK;IACzI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,eAAe,EAAE,KAAK,CAAC,eAAe,CAAC;QACvC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/AccountStakingSummary.d.ts b/dist/cjs/service/src/models/AccountStakingSummary.d.ts new file mode 100644 index 0000000..d297949 --- /dev/null +++ b/dist/cjs/service/src/models/AccountStakingSummary.d.ts @@ -0,0 +1,49 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AccountStakingSummary + */ +export interface AccountStakingSummary { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountStakingSummary + */ + totalStake: { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof AccountStakingSummary + */ + unclaimedReward: { + [key: string]: string | undefined; + }; + /** + * Net annual percentage yield in staking contract + * @type {string} + * @memberof AccountStakingSummary + */ + netApy: string; +} +/** + * Check if a given object implements the AccountStakingSummary interface. + */ +export declare function instanceOfAccountStakingSummary(value: object): value is AccountStakingSummary; +export declare function AccountStakingSummaryFromJSON(json: any): AccountStakingSummary; +export declare function AccountStakingSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountStakingSummary; +export declare function AccountStakingSummaryToJSON(json: any): AccountStakingSummary; +export declare function AccountStakingSummaryToJSONTyped(value?: AccountStakingSummary | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=AccountStakingSummary.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/AccountStakingSummary.d.ts.map b/dist/cjs/service/src/models/AccountStakingSummary.d.ts.map new file mode 100644 index 0000000..05bf844 --- /dev/null +++ b/dist/cjs/service/src/models/AccountStakingSummary.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"AccountStakingSummary.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/AccountStakingSummary.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACnD;;;;OAIG;IACH,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACxD;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAK7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAUjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWhI"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/AccountStakingSummary.js b/dist/cjs/service/src/models/AccountStakingSummary.js new file mode 100644 index 0000000..26fd4b1 --- /dev/null +++ b/dist/cjs/service/src/models/AccountStakingSummary.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfAccountStakingSummary = instanceOfAccountStakingSummary; +exports.AccountStakingSummaryFromJSON = AccountStakingSummaryFromJSON; +exports.AccountStakingSummaryFromJSONTyped = AccountStakingSummaryFromJSONTyped; +exports.AccountStakingSummaryToJSON = AccountStakingSummaryToJSON; +exports.AccountStakingSummaryToJSONTyped = AccountStakingSummaryToJSONTyped; +/** + * Check if a given object implements the AccountStakingSummary interface. + */ +function instanceOfAccountStakingSummary(value) { + if (!('totalStake' in value) || value['totalStake'] === undefined) + return false; + if (!('unclaimedReward' in value) || value['unclaimedReward'] === undefined) + return false; + if (!('netApy' in value) || value['netApy'] === undefined) + return false; + return true; +} +function AccountStakingSummaryFromJSON(json) { + return AccountStakingSummaryFromJSONTyped(json, false); +} +function AccountStakingSummaryFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'totalStake': json['totalStake'], + 'unclaimedReward': json['unclaimedReward'], + 'netApy': json['netApy'], + }; +} +function AccountStakingSummaryToJSON(json) { + return AccountStakingSummaryToJSONTyped(json, false); +} +function AccountStakingSummaryToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'totalStake': value['totalStake'], + 'unclaimedReward': value['unclaimedReward'], + 'netApy': value['netApy'], + }; +} +//# sourceMappingURL=AccountStakingSummary.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/AccountStakingSummary.js.map b/dist/cjs/service/src/models/AccountStakingSummary.js.map new file mode 100644 index 0000000..0ed7e71 --- /dev/null +++ b/dist/cjs/service/src/models/AccountStakingSummary.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AccountStakingSummary.js","sourceRoot":"","sources":["../../../../../src/service/src/models/AccountStakingSummary.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,0EAKC;AAED,sEAEC;AAED,gFAUC;AAED,kEAEC;AAED,4EAWC;AAzCD;;GAEG;AACH,SAAgB,+BAA+B,CAAC,KAAa;IACzD,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChF,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1F,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;QAChC,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,CAAC;QAC1C,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;KAC3B,CAAC;AACN,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,KAAoC,EAAE,sBAA+B,KAAK;IACvH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;QAC3C,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Address.d.ts b/dist/cjs/service/src/models/Address.d.ts new file mode 100644 index 0000000..bfe348d --- /dev/null +++ b/dist/cjs/service/src/models/Address.d.ts @@ -0,0 +1,39 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Address + */ +export interface Address { + /** + * The label of the address. + * @type {string} + * @memberof Address + */ + label: string; + /** + * The Ethereum address. + * @type {string} + * @memberof Address + */ + address: string; +} +/** + * Check if a given object implements the Address interface. + */ +export declare function instanceOfAddress(value: object): value is Address; +export declare function AddressFromJSON(json: any): Address; +export declare function AddressFromJSONTyped(json: any, ignoreDiscriminator: boolean): Address; +export declare function AddressToJSON(json: any): Address; +export declare function AddressToJSONTyped(value?: Address | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=Address.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Address.d.ts.map b/dist/cjs/service/src/models/Address.d.ts.map new file mode 100644 index 0000000..e1f55b1 --- /dev/null +++ b/dist/cjs/service/src/models/Address.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Address.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/Address.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,OAAO,CAIjE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAElD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,OAAO,CASrF;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAEhD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUpG"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Address.js b/dist/cjs/service/src/models/Address.js new file mode 100644 index 0000000..56510ff --- /dev/null +++ b/dist/cjs/service/src/models/Address.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfAddress = instanceOfAddress; +exports.AddressFromJSON = AddressFromJSON; +exports.AddressFromJSONTyped = AddressFromJSONTyped; +exports.AddressToJSON = AddressToJSON; +exports.AddressToJSONTyped = AddressToJSONTyped; +/** + * Check if a given object implements the Address interface. + */ +function instanceOfAddress(value) { + if (!('label' in value) || value['label'] === undefined) + return false; + if (!('address' in value) || value['address'] === undefined) + return false; + return true; +} +function AddressFromJSON(json) { + return AddressFromJSONTyped(json, false); +} +function AddressFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'label': json['label'], + 'address': json['address'], + }; +} +function AddressToJSON(json) { + return AddressToJSONTyped(json, false); +} +function AddressToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'label': value['label'], + 'address': value['address'], + }; +} +//# sourceMappingURL=Address.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Address.js.map b/dist/cjs/service/src/models/Address.js.map new file mode 100644 index 0000000..900f852 --- /dev/null +++ b/dist/cjs/service/src/models/Address.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Address.js","sourceRoot":"","sources":["../../../../../src/service/src/models/Address.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,8CAIC;AAED,0CAEC;AAED,oDASC;AAED,sCAEC;AAED,gDAUC;AAtCD;;GAEG;AACH,SAAgB,iBAAiB,CAAC,KAAa;IAC3C,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,eAAe,CAAC,IAAS;IACrC,OAAO,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS,EAAE,mBAA4B;IACxE,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QACtB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AAED,SAAgB,aAAa,CAAC,IAAS;IACnC,OAAO,kBAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3C,CAAC;AAED,SAAgB,kBAAkB,CAAC,KAAsB,EAAE,sBAA+B,KAAK;IAC3F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/AddressResponse.d.ts b/dist/cjs/service/src/models/AddressResponse.d.ts new file mode 100644 index 0000000..624331e --- /dev/null +++ b/dist/cjs/service/src/models/AddressResponse.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Address } from './Address'; +/** + * + * @export + * @interface AddressResponse + */ +export interface AddressResponse { + /** + * + * @type {Array
} + * @memberof AddressResponse + */ + data: Array
; +} +/** + * Check if a given object implements the AddressResponse interface. + */ +export declare function instanceOfAddressResponse(value: object): value is AddressResponse; +export declare function AddressResponseFromJSON(json: any): AddressResponse; +export declare function AddressResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): AddressResponse; +export declare function AddressResponseToJSON(json: any): AddressResponse; +export declare function AddressResponseToJSONTyped(value?: AddressResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=AddressResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/AddressResponse.d.ts.map b/dist/cjs/service/src/models/AddressResponse.d.ts.map new file mode 100644 index 0000000..1c3d40c --- /dev/null +++ b/dist/cjs/service/src/models/AddressResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"AddressResponse.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/AddressResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQzC;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAGjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAQrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASpH"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/AddressResponse.js b/dist/cjs/service/src/models/AddressResponse.js new file mode 100644 index 0000000..43060f3 --- /dev/null +++ b/dist/cjs/service/src/models/AddressResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfAddressResponse = instanceOfAddressResponse; +exports.AddressResponseFromJSON = AddressResponseFromJSON; +exports.AddressResponseFromJSONTyped = AddressResponseFromJSONTyped; +exports.AddressResponseToJSON = AddressResponseToJSON; +exports.AddressResponseToJSONTyped = AddressResponseToJSONTyped; +const Address_1 = require("./Address"); +/** + * Check if a given object implements the AddressResponse interface. + */ +function instanceOfAddressResponse(value) { + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function AddressResponseFromJSON(json) { + return AddressResponseFromJSONTyped(json, false); +} +function AddressResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': (json['data'].map(Address_1.AddressFromJSON)), + }; +} +function AddressResponseToJSON(json) { + return AddressResponseToJSONTyped(json, false); +} +function AddressResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'data': (value['data'].map(Address_1.AddressToJSON)), + }; +} +//# sourceMappingURL=AddressResponse.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/AddressResponse.js.map b/dist/cjs/service/src/models/AddressResponse.js.map new file mode 100644 index 0000000..bb4696e --- /dev/null +++ b/dist/cjs/service/src/models/AddressResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AddressResponse.js","sourceRoot":"","sources":["../../../../../src/service/src/models/AddressResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,8DAGC;AAED,0DAEC;AAED,oEAQC;AAED,sDAEC;AAED,gEASC;AAxDD,uCAKmB;AAgBnB;;GAEG;AACH,SAAgB,yBAAyB,CAAC,KAAa;IACnD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS,EAAE,mBAA4B;IAChF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,yBAAe,CAAC,CAAC;KAC9D,CAAC;AACN,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,KAA8B,EAAE,sBAA+B,KAAK;IAC3G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,uBAAa,CAAC,CAAC;KAC7D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Balance.d.ts b/dist/cjs/service/src/models/Balance.d.ts new file mode 100644 index 0000000..5994b6a --- /dev/null +++ b/dist/cjs/service/src/models/Balance.d.ts @@ -0,0 +1,42 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Token } from './Token'; +/** + * + * @export + * @interface Balance + */ +export interface Balance { + /** + * + * @type {Token} + * @memberof Balance + */ + token: Token; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Balance + */ + balance: { + [key: string]: string | undefined; + }; +} +/** + * Check if a given object implements the Balance interface. + */ +export declare function instanceOfBalance(value: object): value is Balance; +export declare function BalanceFromJSON(json: any): Balance; +export declare function BalanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Balance; +export declare function BalanceToJSON(json: any): Balance; +export declare function BalanceToJSONTyped(value?: Balance | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=Balance.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Balance.d.ts.map b/dist/cjs/service/src/models/Balance.d.ts.map new file mode 100644 index 0000000..ef4abc8 --- /dev/null +++ b/dist/cjs/service/src/models/Balance.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Balance.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/Balance.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQrC;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAC;IACb;;;;OAIG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CACnD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,OAAO,CAIjE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAElD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,OAAO,CASrF;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAEhD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUpG"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Balance.js b/dist/cjs/service/src/models/Balance.js new file mode 100644 index 0000000..832c10d --- /dev/null +++ b/dist/cjs/service/src/models/Balance.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfBalance = instanceOfBalance; +exports.BalanceFromJSON = BalanceFromJSON; +exports.BalanceFromJSONTyped = BalanceFromJSONTyped; +exports.BalanceToJSON = BalanceToJSON; +exports.BalanceToJSONTyped = BalanceToJSONTyped; +const Token_1 = require("./Token"); +/** + * Check if a given object implements the Balance interface. + */ +function instanceOfBalance(value) { + if (!('token' in value) || value['token'] === undefined) + return false; + if (!('balance' in value) || value['balance'] === undefined) + return false; + return true; +} +function BalanceFromJSON(json) { + return BalanceFromJSONTyped(json, false); +} +function BalanceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'token': (0, Token_1.TokenFromJSON)(json['token']), + 'balance': json['balance'], + }; +} +function BalanceToJSON(json) { + return BalanceToJSONTyped(json, false); +} +function BalanceToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'token': (0, Token_1.TokenToJSON)(value['token']), + 'balance': value['balance'], + }; +} +//# sourceMappingURL=Balance.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Balance.js.map b/dist/cjs/service/src/models/Balance.js.map new file mode 100644 index 0000000..f60ee55 --- /dev/null +++ b/dist/cjs/service/src/models/Balance.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Balance.js","sourceRoot":"","sources":["../../../../../src/service/src/models/Balance.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAkCH,8CAIC;AAED,0CAEC;AAED,oDASC;AAED,sCAEC;AAED,gDAUC;AAjED,mCAKiB;AAsBjB;;GAEG;AACH,SAAgB,iBAAiB,CAAC,KAAa;IAC3C,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,eAAe,CAAC,IAAS;IACrC,OAAO,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS,EAAE,mBAA4B;IACxE,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,IAAA,qBAAa,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACrC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AAED,SAAgB,aAAa,CAAC,IAAS;IACnC,OAAO,kBAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3C,CAAC;AAED,SAAgB,kBAAkB,CAAC,KAAsB,EAAE,sBAA+B,KAAK;IAC3F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,IAAA,mBAAW,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACpC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/BasicEvent.d.ts b/dist/cjs/service/src/models/BasicEvent.d.ts new file mode 100644 index 0000000..7e7e216 --- /dev/null +++ b/dist/cjs/service/src/models/BasicEvent.d.ts @@ -0,0 +1,61 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { EventDomain } from './EventDomain'; +import type { EventType } from './EventType'; +import type { Log } from './Log'; +import type { EventName } from './EventName'; +/** + * + * @export + * @interface BasicEvent + */ +export interface BasicEvent { + /** + * Identifier for the event. + * @type {number} + * @memberof BasicEvent + */ + id: number; + /** + * + * @type {EventName} + * @memberof BasicEvent + */ + name: EventName; + /** + * + * @type {EventType} + * @memberof BasicEvent + */ + type: EventType; + /** + * + * @type {EventDomain} + * @memberof BasicEvent + */ + domain: EventDomain; + /** + * + * @type {Log} + * @memberof BasicEvent + */ + raw: Log; +} +/** + * Check if a given object implements the BasicEvent interface. + */ +export declare function instanceOfBasicEvent(value: object): value is BasicEvent; +export declare function BasicEventFromJSON(json: any): BasicEvent; +export declare function BasicEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): BasicEvent; +export declare function BasicEventToJSON(json: any): BasicEvent; +export declare function BasicEventToJSONTyped(value?: BasicEvent | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=BasicEvent.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/BasicEvent.d.ts.map b/dist/cjs/service/src/models/BasicEvent.d.ts.map new file mode 100644 index 0000000..e6cb00e --- /dev/null +++ b/dist/cjs/service/src/models/BasicEvent.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"BasicEvent.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/BasicEvent.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAOjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAOjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,WAAW,CAAC;IACpB;;;;OAIG;IACH,GAAG,EAAE,GAAG,CAAC;CACZ;AAID;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAOvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAY3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAa1G"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/BasicEvent.js b/dist/cjs/service/src/models/BasicEvent.js new file mode 100644 index 0000000..ad41cac --- /dev/null +++ b/dist/cjs/service/src/models/BasicEvent.js @@ -0,0 +1,71 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfBasicEvent = instanceOfBasicEvent; +exports.BasicEventFromJSON = BasicEventFromJSON; +exports.BasicEventFromJSONTyped = BasicEventFromJSONTyped; +exports.BasicEventToJSON = BasicEventToJSON; +exports.BasicEventToJSONTyped = BasicEventToJSONTyped; +const EventDomain_1 = require("./EventDomain"); +const EventType_1 = require("./EventType"); +const Log_1 = require("./Log"); +const EventName_1 = require("./EventName"); +/** + * Check if a given object implements the BasicEvent interface. + */ +function instanceOfBasicEvent(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + if (!('domain' in value) || value['domain'] === undefined) + return false; + if (!('raw' in value) || value['raw'] === undefined) + return false; + return true; +} +function BasicEventFromJSON(json) { + return BasicEventFromJSONTyped(json, false); +} +function BasicEventFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + 'name': (0, EventName_1.EventNameFromJSON)(json['name']), + 'type': (0, EventType_1.EventTypeFromJSON)(json['type']), + 'domain': (0, EventDomain_1.EventDomainFromJSON)(json['domain']), + 'raw': (0, Log_1.LogFromJSON)(json['raw']), + }; +} +function BasicEventToJSON(json) { + return BasicEventToJSONTyped(json, false); +} +function BasicEventToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': (0, EventName_1.EventNameToJSON)(value['name']), + 'type': (0, EventType_1.EventTypeToJSON)(value['type']), + 'domain': (0, EventDomain_1.EventDomainToJSON)(value['domain']), + 'raw': (0, Log_1.LogToJSON)(value['raw']), + }; +} +//# sourceMappingURL=BasicEvent.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/BasicEvent.js.map b/dist/cjs/service/src/models/BasicEvent.js.map new file mode 100644 index 0000000..9e57e62 --- /dev/null +++ b/dist/cjs/service/src/models/BasicEvent.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BasicEvent.js","sourceRoot":"","sources":["../../../../../src/service/src/models/BasicEvent.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA2EH,oDAOC;AAED,gDAEC;AAED,0DAYC;AAED,4CAEC;AAED,sDAaC;AAnHD,+CAKuB;AAEvB,2CAKqB;AAErB,+BAKe;AAEf,2CAKqB;AA0CrB;;GAEG;AACH,SAAgB,oBAAoB,CAAC,KAAa;IAC9C,IAAI,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAA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;IACjB,CAAC;IAED,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,MAAM,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACtC,MAAM,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACtC,QAAQ,EAAE,IAAA,+BAAiB,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC5C,KAAK,EAAE,IAAA,eAAS,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;KACjC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/ChainActivity.d.ts b/dist/cjs/service/src/models/ChainActivity.d.ts new file mode 100644 index 0000000..d04b4f8 --- /dev/null +++ b/dist/cjs/service/src/models/ChainActivity.d.ts @@ -0,0 +1,46 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivityStep } from './ChainActivityStep'; +/** + * + * @export + * @interface ChainActivity + */ +export interface ChainActivity { + /** + * + * @type {number} + * @memberof ChainActivity + */ + stepNumber: number; + /** + * + * @type {number} + * @memberof ChainActivity + */ + numberOfSteps: number; + /** + * + * @type {Array} + * @memberof ChainActivity + */ + steps: Array; +} +/** + * Check if a given object implements the ChainActivity interface. + */ +export declare function instanceOfChainActivity(value: object): value is ChainActivity; +export declare function ChainActivityFromJSON(json: any): ChainActivity; +export declare function ChainActivityFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChainActivity; +export declare function ChainActivityToJSON(json: any): ChainActivity; +export declare function ChainActivityToJSONTyped(value?: ChainActivity | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=ChainActivity.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/ChainActivity.d.ts.map b/dist/cjs/service/src/models/ChainActivity.d.ts.map new file mode 100644 index 0000000..777893d --- /dev/null +++ b/dist/cjs/service/src/models/ChainActivity.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ChainActivity.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/ChainActivity.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAQ7D;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CACnC;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAK7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAUjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWhH"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/ChainActivity.js b/dist/cjs/service/src/models/ChainActivity.js new file mode 100644 index 0000000..a86100a --- /dev/null +++ b/dist/cjs/service/src/models/ChainActivity.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfChainActivity = instanceOfChainActivity; +exports.ChainActivityFromJSON = ChainActivityFromJSON; +exports.ChainActivityFromJSONTyped = ChainActivityFromJSONTyped; +exports.ChainActivityToJSON = ChainActivityToJSON; +exports.ChainActivityToJSONTyped = ChainActivityToJSONTyped; +const ChainActivityStep_1 = require("./ChainActivityStep"); +/** + * Check if a given object implements the ChainActivity interface. + */ +function instanceOfChainActivity(value) { + if (!('stepNumber' in value) || value['stepNumber'] === undefined) + return false; + if (!('numberOfSteps' in value) || value['numberOfSteps'] === undefined) + return false; + if (!('steps' in value) || value['steps'] === undefined) + return false; + return true; +} +function ChainActivityFromJSON(json) { + return ChainActivityFromJSONTyped(json, false); +} +function ChainActivityFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'stepNumber': json['stepNumber'], + 'numberOfSteps': json['numberOfSteps'], + 'steps': (json['steps'].map(ChainActivityStep_1.ChainActivityStepFromJSON)), + }; +} +function ChainActivityToJSON(json) { + return ChainActivityToJSONTyped(json, false); +} +function ChainActivityToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'stepNumber': value['stepNumber'], + 'numberOfSteps': value['numberOfSteps'], + 'steps': (value['steps'].map(ChainActivityStep_1.ChainActivityStepToJSON)), + }; +} +//# sourceMappingURL=ChainActivity.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/ChainActivity.js.map b/dist/cjs/service/src/models/ChainActivity.js.map new file mode 100644 index 0000000..d450bdb --- /dev/null +++ b/dist/cjs/service/src/models/ChainActivity.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ChainActivity.js","sourceRoot":"","sources":["../../../../../src/service/src/models/ChainActivity.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAwCH,0DAKC;AAED,sDAEC;AAED,gEAUC;AAED,kDAEC;AAED,4DAWC;AA1ED,2DAK6B;AA4B7B;;GAEG;AACH,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AAC,2CAAuB,CAAC,CAAC;KACzE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/ChainActivityStep.d.ts b/dist/cjs/service/src/models/ChainActivityStep.d.ts new file mode 100644 index 0000000..39b9a2b --- /dev/null +++ b/dist/cjs/service/src/models/ChainActivityStep.d.ts @@ -0,0 +1,49 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivityStepData } from './ChainActivityStepData'; +/** + * + * @export + * @interface ChainActivityStep + */ +export interface ChainActivityStep { + /** + * + * @type {string} + * @memberof ChainActivityStep + */ + type: ChainActivityStepTypeEnum; + /** + * + * @type {ChainActivityStepData} + * @memberof ChainActivityStep + */ + data: ChainActivityStepData; +} +/** + * @export + */ +export declare const ChainActivityStepTypeEnum: { + readonly PREPARED_TX: "PreparedTx"; + readonly EIP712_SIGN_REQUEST: "EIP712SignRequest"; + readonly PERSONAL_SIGN_REQUEST: "PersonalSignRequest"; +}; +export type ChainActivityStepTypeEnum = typeof ChainActivityStepTypeEnum[keyof typeof ChainActivityStepTypeEnum]; +/** + * Check if a given object implements the ChainActivityStep interface. + */ +export declare function instanceOfChainActivityStep(value: object): value is ChainActivityStep; +export declare function ChainActivityStepFromJSON(json: any): ChainActivityStep; +export declare function ChainActivityStepFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChainActivityStep; +export declare function ChainActivityStepToJSON(json: any): ChainActivityStep; +export declare function ChainActivityStepToJSONTyped(value?: ChainActivityStep | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=ChainActivityStep.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/ChainActivityStep.d.ts.map b/dist/cjs/service/src/models/ChainActivityStep.d.ts.map new file mode 100644 index 0000000..1770d7e --- /dev/null +++ b/dist/cjs/service/src/models/ChainActivityStep.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ChainActivityStep.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/ChainActivityStep.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAQrE;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,IAAI,EAAE,yBAAyB,CAAC;IAChC;;;;OAIG;IACH,IAAI,EAAE,qBAAqB,CAAC;CAC/B;AAGD;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;CAI5B,CAAC;AACX,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AAGjH;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAIrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CASzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUxH"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/ChainActivityStep.js b/dist/cjs/service/src/models/ChainActivityStep.js new file mode 100644 index 0000000..bac6efd --- /dev/null +++ b/dist/cjs/service/src/models/ChainActivityStep.js @@ -0,0 +1,65 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ChainActivityStepTypeEnum = void 0; +exports.instanceOfChainActivityStep = instanceOfChainActivityStep; +exports.ChainActivityStepFromJSON = ChainActivityStepFromJSON; +exports.ChainActivityStepFromJSONTyped = ChainActivityStepFromJSONTyped; +exports.ChainActivityStepToJSON = ChainActivityStepToJSON; +exports.ChainActivityStepToJSONTyped = ChainActivityStepToJSONTyped; +const ChainActivityStepData_1 = require("./ChainActivityStepData"); +/** + * @export + */ +exports.ChainActivityStepTypeEnum = { + PREPARED_TX: 'PreparedTx', + EIP712_SIGN_REQUEST: 'EIP712SignRequest', + PERSONAL_SIGN_REQUEST: 'PersonalSignRequest' +}; +/** + * Check if a given object implements the ChainActivityStep interface. + */ +function instanceOfChainActivityStep(value) { + if (!('type' in value) || value['type'] === undefined) + return false; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function ChainActivityStepFromJSON(json) { + return ChainActivityStepFromJSONTyped(json, false); +} +function ChainActivityStepFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'type': json['type'], + 'data': (0, ChainActivityStepData_1.ChainActivityStepDataFromJSON)(json['data']), + }; +} +function ChainActivityStepToJSON(json) { + return ChainActivityStepToJSONTyped(json, false); +} +function ChainActivityStepToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'type': value['type'], + 'data': (0, ChainActivityStepData_1.ChainActivityStepDataToJSON)(value['data']), + }; +} +//# sourceMappingURL=ChainActivityStep.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/ChainActivityStep.js.map b/dist/cjs/service/src/models/ChainActivityStep.js.map new file mode 100644 index 0000000..5f1ad22 --- /dev/null +++ b/dist/cjs/service/src/models/ChainActivityStep.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ChainActivityStep.js","sourceRoot":"","sources":["../../../../../src/service/src/models/ChainActivityStep.ts"],"names":[],"mappings":";AAAA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ACrB,MAAM,EAAE,IAAA,mDAA2B,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;KACrD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/ChainActivityStepData.d.ts b/dist/cjs/service/src/models/ChainActivityStepData.d.ts new file mode 100644 index 0000000..ebc7b6d --- /dev/null +++ b/dist/cjs/service/src/models/ChainActivityStepData.d.ts @@ -0,0 +1,25 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { EIP712SignRequest } from './EIP712SignRequest'; +import type { PersonalSignRequest } from './PersonalSignRequest'; +import type { PreparedTx } from './PreparedTx'; +/** + * @type ChainActivityStepData + * + * @export + */ +export type ChainActivityStepData = EIP712SignRequest | PersonalSignRequest | PreparedTx; +export declare function ChainActivityStepDataFromJSON(json: any): ChainActivityStepData; +export declare function ChainActivityStepDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): ChainActivityStepData; +export declare function ChainActivityStepDataToJSON(json: any): any; +export declare function ChainActivityStepDataToJSONTyped(value?: ChainActivityStepData | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=ChainActivityStepData.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/ChainActivityStepData.d.ts.map b/dist/cjs/service/src/models/ChainActivityStepData.d.ts.map new file mode 100644 index 0000000..95af6a6 --- /dev/null +++ b/dist/cjs/service/src/models/ChainActivityStepData.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ChainActivityStepData.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/ChainActivityStepData.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO7D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAOjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAQ/C;;;;GAIG;AACH,MAAM,MAAM,qBAAqB,GAAG,iBAAiB,GAAG,mBAAmB,GAAG,UAAU,CAAC;AAEzF,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAejH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAE1D;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAgBhI"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/ChainActivityStepData.js b/dist/cjs/service/src/models/ChainActivityStepData.js new file mode 100644 index 0000000..815dfa7 --- /dev/null +++ b/dist/cjs/service/src/models/ChainActivityStepData.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ChainActivityStepDataFromJSON = ChainActivityStepDataFromJSON; +exports.ChainActivityStepDataFromJSONTyped = ChainActivityStepDataFromJSONTyped; +exports.ChainActivityStepDataToJSON = ChainActivityStepDataToJSON; +exports.ChainActivityStepDataToJSONTyped = ChainActivityStepDataToJSONTyped; +const EIP712SignRequest_1 = require("./EIP712SignRequest"); +const PersonalSignRequest_1 = require("./PersonalSignRequest"); +const PreparedTx_1 = require("./PreparedTx"); +function ChainActivityStepDataFromJSON(json) { + return ChainActivityStepDataFromJSONTyped(json, false); +} +function ChainActivityStepDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + if ((0, EIP712SignRequest_1.instanceOfEIP712SignRequest)(json)) { + return (0, EIP712SignRequest_1.EIP712SignRequestFromJSONTyped)(json, true); + } + if ((0, PersonalSignRequest_1.instanceOfPersonalSignRequest)(json)) { + return (0, PersonalSignRequest_1.PersonalSignRequestFromJSONTyped)(json, true); + } + if ((0, PreparedTx_1.instanceOfPreparedTx)(json)) { + return (0, PreparedTx_1.PreparedTxFromJSONTyped)(json, true); + } + return {}; +} +function ChainActivityStepDataToJSON(json) { + return ChainActivityStepDataToJSONTyped(json, false); +} +function ChainActivityStepDataToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + if ((0, EIP712SignRequest_1.instanceOfEIP712SignRequest)(value)) { + return (0, EIP712SignRequest_1.EIP712SignRequestToJSON)(value); + } + if ((0, PersonalSignRequest_1.instanceOfPersonalSignRequest)(value)) { + return (0, PersonalSignRequest_1.PersonalSignRequestToJSON)(value); + } + if ((0, PreparedTx_1.instanceOfPreparedTx)(value)) { + return (0, PreparedTx_1.PreparedTxToJSON)(value); + } + return {}; +} +//# sourceMappingURL=ChainActivityStepData.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/ChainActivityStepData.js.map b/dist/cjs/service/src/models/ChainActivityStepData.js.map new file mode 100644 index 0000000..b992193 --- /dev/null +++ b/dist/cjs/service/src/models/ChainActivityStepData.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ChainActivityStepData.js","sourceRoot":"","sources":["../../../../../src/service/src/models/ChainActivityStepData.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA+BH,sEAEC;AAED,gFAeC;AAED,kEAEC;AAED,4EAgBC;AArED,2DAK6B;AAE7B,+DAK+B;AAE/B,6CAKsB;AAStB,SAAgB,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAA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ist/cjs/service/src/models/DutchAmount.d.ts new file mode 100644 index 0000000..d10cbf3 --- /dev/null +++ b/dist/cjs/service/src/models/DutchAmount.d.ts @@ -0,0 +1,56 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Token } from './Token'; +/** + * + * @export + * @interface DutchAmount + */ +export interface DutchAmount { + /** + * + * @type {Token} + * @memberof DutchAmount + */ + token: Token; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof DutchAmount + */ + startAmount: { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof DutchAmount + */ + endAmount: { + [key: string]: string | undefined; + }; + /** + * + * @type {string} + * @memberof DutchAmount + */ + recipient?: string; +} +/** + * Check if a given object implements the DutchAmount interface. + */ +export declare function instanceOfDutchAmount(value: object): value is DutchAmount; +export declare function DutchAmountFromJSON(json: any): DutchAmount; +export declare function DutchAmountFromJSONTyped(json: any, ignoreDiscriminator: boolean): DutchAmount; +export declare function DutchAmountToJSON(json: any): DutchAmount; +export declare function DutchAmountToJSONTyped(value?: DutchAmount | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=DutchAmount.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/DutchAmount.d.ts.map b/dist/cjs/service/src/models/DutchAmount.d.ts.map new file mode 100644 index 0000000..05002cc --- /dev/null +++ b/dist/cjs/service/src/models/DutchAmount.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"DutchAmount.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/DutchAmount.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQrC;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAC;IACb;;;;OAIG;IACH,WAAW,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACpD;;;;OAIG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAClD;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAKzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAW7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAY5G"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/DutchAmount.js b/dist/cjs/service/src/models/DutchAmount.js new file mode 100644 index 0000000..2a851db --- /dev/null +++ b/dist/cjs/service/src/models/DutchAmount.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDutchAmount = instanceOfDutchAmount; +exports.DutchAmountFromJSON = DutchAmountFromJSON; +exports.DutchAmountFromJSONTyped = DutchAmountFromJSONTyped; +exports.DutchAmountToJSON = DutchAmountToJSON; +exports.DutchAmountToJSONTyped = DutchAmountToJSONTyped; +const Token_1 = require("./Token"); +/** + * Check if a given object implements the DutchAmount interface. + */ +function instanceOfDutchAmount(value) { + if (!('token' in value) || value['token'] === undefined) + return false; + if (!('startAmount' in value) || value['startAmount'] === undefined) + return false; + if (!('endAmount' in value) || value['endAmount'] === undefined) + return false; + return true; +} +function DutchAmountFromJSON(json) { + return DutchAmountFromJSONTyped(json, false); +} +function DutchAmountFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'token': (0, Token_1.TokenFromJSON)(json['token']), + 'startAmount': json['startAmount'], + 'endAmount': json['endAmount'], + 'recipient': json['recipient'] == null ? undefined : json['recipient'], + }; +} +function DutchAmountToJSON(json) { + return DutchAmountToJSONTyped(json, false); +} +function DutchAmountToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'token': (0, Token_1.TokenToJSON)(value['token']), + 'startAmount': value['startAmount'], + 'endAmount': value['endAmount'], + 'recipient': value['recipient'], + }; +} +//# sourceMappingURL=DutchAmount.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/DutchAmount.js.map b/dist/cjs/service/src/models/DutchAmount.js.map new file mode 100644 index 0000000..4e16b74 --- /dev/null +++ b/dist/cjs/service/src/models/DutchAmount.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DutchAmount.js","sourceRoot":"","sources":["../../../../../src/service/src/models/DutchAmount.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA8CH,sDAKC;AAED,kDAEC;AAED,4DAWC;AAED,8CAEC;AAED,wDAYC;AAlFD,mCAKiB;AAkCjB;;GAEG;AACH,SAAgB,qBAAqB,CAAC,KAAa;IAC/C,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KA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/service/src/models/EIP712SignRequest.d.ts b/dist/cjs/service/src/models/EIP712SignRequest.d.ts new file mode 100644 index 0000000..aa7fbf9 --- /dev/null +++ b/dist/cjs/service/src/models/EIP712SignRequest.d.ts @@ -0,0 +1,46 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { TypedData } from './TypedData'; +/** + * + * @export + * @interface EIP712SignRequest + */ +export interface EIP712SignRequest { + /** + * The name of the EIP712 signature + * @type {string} + * @memberof EIP712SignRequest + */ + name: string; + /** + * + * @type {TypedData} + * @memberof EIP712SignRequest + */ + typedData: TypedData; + /** + * The hash of the EIP712 signature that needs to be signed + * @type {string} + * @memberof EIP712SignRequest + */ + hash: string; +} +/** + * Check if a given object implements the EIP712SignRequest interface. + */ +export declare function instanceOfEIP712SignRequest(value: object): value is EIP712SignRequest; +export declare function EIP712SignRequestFromJSON(json: any): EIP712SignRequest; +export declare function EIP712SignRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EIP712SignRequest; +export declare function EIP712SignRequestToJSON(json: any): EIP712SignRequest; +export declare function EIP712SignRequestToJSONTyped(value?: EIP712SignRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=EIP712SignRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/EIP712SignRequest.d.ts.map b/dist/cjs/service/src/models/EIP712SignRequest.d.ts.map new file mode 100644 index 0000000..5eb30fd --- /dev/null +++ b/dist/cjs/service/src/models/EIP712SignRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"EIP712SignRequest.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/EIP712SignRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAKrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAUzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWxH"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/EIP712SignRequest.js b/dist/cjs/service/src/models/EIP712SignRequest.js new file mode 100644 index 0000000..017829a --- /dev/null +++ b/dist/cjs/service/src/models/EIP712SignRequest.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfEIP712SignRequest = instanceOfEIP712SignRequest; +exports.EIP712SignRequestFromJSON = EIP712SignRequestFromJSON; +exports.EIP712SignRequestFromJSONTyped = EIP712SignRequestFromJSONTyped; +exports.EIP712SignRequestToJSON = EIP712SignRequestToJSON; +exports.EIP712SignRequestToJSONTyped = EIP712SignRequestToJSONTyped; +const TypedData_1 = require("./TypedData"); +/** + * Check if a given object implements the EIP712SignRequest interface. + */ +function instanceOfEIP712SignRequest(value) { + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('typedData' in value) || value['typedData'] === undefined) + return false; + if (!('hash' in value) || value['hash'] === undefined) + return false; + return true; +} +function EIP712SignRequestFromJSON(json) { + return EIP712SignRequestFromJSONTyped(json, false); +} +function EIP712SignRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'], + 'typedData': (0, TypedData_1.TypedDataFromJSON)(json['typedData']), + 'hash': json['hash'], + }; +} +function EIP712SignRequestToJSON(json) { + return EIP712SignRequestToJSONTyped(json, false); +} +function EIP712SignRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'typedData': (0, TypedData_1.TypedDataToJSON)(value['typedData']), + 'hash': value['hash'], + }; +} +//# sourceMappingURL=EIP712SignRequest.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/EIP712SignRequest.js.map b/dist/cjs/service/src/models/EIP712SignRequest.js.map new file mode 100644 index 0000000..d8a5e91 --- /dev/null +++ b/dist/cjs/service/src/models/EIP712SignRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EIP712SignRequest.js","sourceRoot":"","sources":["../../../../../src/service/src/models/EIP712SignRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAwCH,kEAKC;AAED,8DAEC;AAED,wEAUC;AAED,0DAEC;AAED,oEAWC;AA1ED,2CAKqB;AA4BrB;;GAEG;AACH,SAAgB,2BAA2B,CAAC,KAAa;IACrD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,WAAW,EAAE,IAAA,6BAAiB,EAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACjD,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;KACvB,CAAC;AACN,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,KAAgC,EAAE,sBAA+B,KAAK;IAC/G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,WAAW,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAChD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;KACxB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/ErrorMessage.d.ts b/dist/cjs/service/src/models/ErrorMessage.d.ts new file mode 100644 index 0000000..57b69b4 --- /dev/null +++ b/dist/cjs/service/src/models/ErrorMessage.d.ts @@ -0,0 +1,39 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ErrorMessage + */ +export interface ErrorMessage { + /** + * User-friendly error message + * @type {string} + * @memberof ErrorMessage + */ + userMessage: string; + /** + * + * @type {Array} + * @memberof ErrorMessage + */ + solutions: Array; +} +/** + * Check if a given object implements the ErrorMessage interface. + */ +export declare function instanceOfErrorMessage(value: object): value is ErrorMessage; +export declare function ErrorMessageFromJSON(json: any): ErrorMessage; +export declare function ErrorMessageFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorMessage; +export declare function ErrorMessageToJSON(json: any): ErrorMessage; +export declare function ErrorMessageToJSONTyped(value?: ErrorMessage | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=ErrorMessage.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/ErrorMessage.d.ts.map b/dist/cjs/service/src/models/ErrorMessage.d.ts.map new file mode 100644 index 0000000..61ab44a --- /dev/null +++ b/dist/cjs/service/src/models/ErrorMessage.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ErrorMessage.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/ErrorMessage.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAI3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAS/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU9G"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/ErrorMessage.js b/dist/cjs/service/src/models/ErrorMessage.js new file mode 100644 index 0000000..3aea25b --- /dev/null +++ b/dist/cjs/service/src/models/ErrorMessage.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfErrorMessage = instanceOfErrorMessage; +exports.ErrorMessageFromJSON = ErrorMessageFromJSON; +exports.ErrorMessageFromJSONTyped = ErrorMessageFromJSONTyped; +exports.ErrorMessageToJSON = ErrorMessageToJSON; +exports.ErrorMessageToJSONTyped = ErrorMessageToJSONTyped; +/** + * Check if a given object implements the ErrorMessage interface. + */ +function instanceOfErrorMessage(value) { + if (!('userMessage' in value) || value['userMessage'] === undefined) + return false; + if (!('solutions' in value) || value['solutions'] === undefined) + return false; + return true; +} +function ErrorMessageFromJSON(json) { + return ErrorMessageFromJSONTyped(json, false); +} +function ErrorMessageFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'userMessage': json['userMessage'], + 'solutions': json['solutions'], + }; +} +function ErrorMessageToJSON(json) { + return ErrorMessageToJSONTyped(json, false); +} +function ErrorMessageToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'userMessage': value['userMessage'], + 'solutions': value['solutions'], + }; +} +//# sourceMappingURL=ErrorMessage.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/ErrorMessage.js.map b/dist/cjs/service/src/models/ErrorMessage.js.map new file mode 100644 index 0000000..f9234c0 --- /dev/null +++ b/dist/cjs/service/src/models/ErrorMessage.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ErrorMessage.js","sourceRoot":"","sources":["../../../../../src/service/src/models/ErrorMessage.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,wDAIC;AAED,oDAEC;AAED,8DASC;AAED,gDAEC;AAED,0DAUC;AAtCD;;GAEG;AACH,SAAgB,sBAAsB,CAAC,KAAa;IAChD,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClF,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS,EAAE,mBAA4B;IAC7E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC;QAClC,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;KACjC,CAAC;AACN,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,KAA2B,EAAE,sBAA+B,KAAK;IACrG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;KAClC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/EventDetailsResponse.d.ts b/dist/cjs/service/src/models/EventDetailsResponse.d.ts new file mode 100644 index 0000000..486eb4f --- /dev/null +++ b/dist/cjs/service/src/models/EventDetailsResponse.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Log } from './Log'; +/** + * + * @export + * @interface EventDetailsResponse + */ +export interface EventDetailsResponse { + /** + * + * @type {Array} + * @memberof EventDetailsResponse + */ + data: Array; +} +/** + * Check if a given object implements the EventDetailsResponse interface. + */ +export declare function instanceOfEventDetailsResponse(value: object): value is EventDetailsResponse; +export declare function EventDetailsResponseFromJSON(json: any): EventDetailsResponse; +export declare function EventDetailsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventDetailsResponse; +export declare function EventDetailsResponseToJSON(json: any): EventDetailsResponse; +export declare function EventDetailsResponseToJSONTyped(value?: EventDetailsResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=EventDetailsResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/EventDetailsResponse.d.ts.map b/dist/cjs/service/src/models/EventDetailsResponse.d.ts.map new file mode 100644 index 0000000..bbb2d2b --- /dev/null +++ b/dist/cjs/service/src/models/EventDetailsResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"EventDetailsResponse.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/EventDetailsResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAQjC;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAG3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAQ/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS9H"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/EventDetailsResponse.js b/dist/cjs/service/src/models/EventDetailsResponse.js new file mode 100644 index 0000000..8bba76d --- /dev/null +++ b/dist/cjs/service/src/models/EventDetailsResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfEventDetailsResponse = instanceOfEventDetailsResponse; +exports.EventDetailsResponseFromJSON = EventDetailsResponseFromJSON; +exports.EventDetailsResponseFromJSONTyped = EventDetailsResponseFromJSONTyped; +exports.EventDetailsResponseToJSON = EventDetailsResponseToJSON; +exports.EventDetailsResponseToJSONTyped = EventDetailsResponseToJSONTyped; +const Log_1 = require("./Log"); +/** + * Check if a given object implements the EventDetailsResponse interface. + */ +function instanceOfEventDetailsResponse(value) { + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function EventDetailsResponseFromJSON(json) { + return EventDetailsResponseFromJSONTyped(json, false); +} +function EventDetailsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': (json['data'].map(Log_1.LogFromJSON)), + }; +} +function EventDetailsResponseToJSON(json) { + return EventDetailsResponseToJSONTyped(json, false); +} +function EventDetailsResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'data': (value['data'].map(Log_1.LogToJSON)), + }; +} +//# sourceMappingURL=EventDetailsResponse.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/EventDetailsResponse.js.map b/dist/cjs/service/src/models/EventDetailsResponse.js.map new file mode 100644 index 0000000..fd1abaf --- /dev/null +++ b/dist/cjs/service/src/models/EventDetailsResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EventDetailsResponse.js","sourceRoot":"","sources":["../../../../../src/service/src/models/EventDetailsResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,wEAGC;AAED,oEAEC;AAED,8EAQC;AAED,gEAEC;AAED,0EASC;AAxDD,+BAKe;AAgBf;;GAEG;AACH,SAAgB,8BAA8B,CAAC,KAAa;IACxD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,SAAgB,iCAAiC,CAAC,IAAS,EAAE,mBAA4B;IACrF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,iBAAW,CAAC,CAAC;KAC1D,CAAC;AACN,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,KAAmC,EAAE,sBAA+B,KAAK;IACrH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,eAAS,CAAC,CAAC;KACzD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/EventDomain.d.ts b/dist/cjs/service/src/models/EventDomain.d.ts new file mode 100644 index 0000000..e75aab5 --- /dev/null +++ b/dist/cjs/service/src/models/EventDomain.d.ts @@ -0,0 +1,28 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * The domain of the event. + * @export + */ +export declare const EventDomain: { + readonly STABLE_COIN_SYSTEM: "stableCoinSystem"; + readonly LENDINGPOOL: "lendingpool"; + readonly CHAINLINK: "chainlink"; + readonly UNISWAP_V3: "uniswapV3"; +}; +export type EventDomain = typeof EventDomain[keyof typeof EventDomain]; +export declare function instanceOfEventDomain(value: any): boolean; +export declare function EventDomainFromJSON(json: any): EventDomain; +export declare function EventDomainFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventDomain; +export declare function EventDomainToJSON(value?: EventDomain | null): any; +export declare function EventDomainToJSONTyped(value: any, ignoreDiscriminator: boolean): EventDomain; +//# sourceMappingURL=EventDomain.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/EventDomain.d.ts.map b/dist/cjs/service/src/models/EventDomain.d.ts.map new file mode 100644 index 0000000..6ad9fcd --- /dev/null +++ b/dist/cjs/service/src/models/EventDomain.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"EventDomain.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/EventDomain.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,WAAW;;;;;CAKd,CAAC;AACX,MAAM,MAAM,WAAW,GAAG,OAAO,WAAW,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AAGvE,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASzD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAE7F;AAED,wBAAgB,iBAAiB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,GAAG,GAAG,CAEjE;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAE5F"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/EventDomain.js b/dist/cjs/service/src/models/EventDomain.js new file mode 100644 index 0000000..59149bb --- /dev/null +++ b/dist/cjs/service/src/models/EventDomain.js @@ -0,0 +1,54 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.EventDomain = void 0; +exports.instanceOfEventDomain = instanceOfEventDomain; +exports.EventDomainFromJSON = EventDomainFromJSON; +exports.EventDomainFromJSONTyped = EventDomainFromJSONTyped; +exports.EventDomainToJSON = EventDomainToJSON; +exports.EventDomainToJSONTyped = EventDomainToJSONTyped; +/** + * The domain of the event. + * @export + */ +exports.EventDomain = { + STABLE_COIN_SYSTEM: 'stableCoinSystem', + LENDINGPOOL: 'lendingpool', + CHAINLINK: 'chainlink', + UNISWAP_V3: 'uniswapV3' +}; +function instanceOfEventDomain(value) { + for (const key in exports.EventDomain) { + if (Object.prototype.hasOwnProperty.call(exports.EventDomain, key)) { + if (exports.EventDomain[key] === value) { + return true; + } + } + } + return false; +} +function EventDomainFromJSON(json) { + return EventDomainFromJSONTyped(json, false); +} +function EventDomainFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function EventDomainToJSON(value) { + return value; +} +function EventDomainToJSONTyped(value, ignoreDiscriminator) { + return value; +} +//# sourceMappingURL=EventDomain.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/EventDomain.js.map b/dist/cjs/service/src/models/EventDomain.js.map new file mode 100644 index 0000000..329ad99 --- /dev/null +++ b/dist/cjs/service/src/models/EventDomain.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EventDomain.js","sourceRoot":"","sources":["../../../../../src/service/src/models/EventDomain.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAgBH,sDASC;AAED,kDAEC;AAED,4DAEC;AAED,8CAEC;AAED,wDAEC;AAtCD;;;GAGG;AACU,QAAA,WAAW,GAAG;IACvB,kBAAkB,EAAE,kBAAkB;IACtC,WAAW,EAAE,aAAa;IAC1B,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,WAAW;CACjB,CAAC;AAIX,SAAgB,qBAAqB,CAAC,KAAU;IAC5C,KAAK,MAAM,GAAG,IAAI,mBAAW,EAAE,CAAC;QAC5B,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,mBAAW,EAAE,GAAG,CAAC,EAAE,CAAC;YACzD,IAAI,mBAAW,CAAC,GAA+B,CAAC,KAAK,KAAK,EAAE,CAAC;gBACzD,OAAO,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS,EAAE,mBAA4B;IAC5E,OAAO,IAAmB,CAAC;AAC/B,CAAC;AAED,SAAgB,iBAAiB,CAAC,KAA0B;IACxD,OAAO,KAAY,CAAC;AACxB,CAAC;AAED,SAAgB,sBAAsB,CAAC,KAAU,EAAE,mBAA4B;IAC3E,OAAO,KAAoB,CAAC;AAChC,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/EventName.d.ts b/dist/cjs/service/src/models/EventName.d.ts new file mode 100644 index 0000000..9f2bdc3 --- /dev/null +++ b/dist/cjs/service/src/models/EventName.d.ts @@ -0,0 +1,40 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const EventName: { + readonly VAULTS_REPAY: "VaultsRepay"; + readonly VAULTS_WITHDRAW: "VaultsWithdraw"; + readonly VAULTS_DEPOSIT: "VaultsDeposit"; + readonly VAULTS_MINT: "VaultsMint"; + readonly VAULTS_KICK: "VaultsKick"; + readonly VAULTS_TAKE: "VaultsTake"; + readonly VAULTS_REDO: "VaultsRedo"; + readonly VAULTS_YANK: "VaultsYank"; + readonly LENDINGPOOL_WITHDRAW: "LendingpoolWithdraw"; + readonly LENDINGPOOL_REPAY: "LendingpoolRepay"; + readonly LENDINGPOOL_LIQUIDATION_CALL: "LendingpoolLiquidationCall"; + readonly LENDINGPOOL_BORROW: "LendingpoolBorrow"; + readonly FILE: "File"; + readonly PERMISSION: "Permission"; + readonly MEDIAN: "Median"; + readonly UNKNOWN: "Unknown"; +}; +export type EventName = typeof EventName[keyof typeof EventName]; +export declare function instanceOfEventName(value: any): boolean; +export declare function EventNameFromJSON(json: any): EventName; +export declare function EventNameFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventName; +export declare function EventNameToJSON(value?: EventName | null): any; +export declare function EventNameToJSONTyped(value: any, ignoreDiscriminator: boolean): EventName; +//# sourceMappingURL=EventName.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/EventName.d.ts.map b/dist/cjs/service/src/models/EventName.d.ts.map new file mode 100644 index 0000000..3ad2603 --- /dev/null +++ b/dist/cjs/service/src/models/EventName.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"EventName.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/EventName.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;CAiBZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAGjE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASvD;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAEzF;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,GAAG,CAE7D;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAExF"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/EventName.js b/dist/cjs/service/src/models/EventName.js new file mode 100644 index 0000000..aece71b --- /dev/null +++ b/dist/cjs/service/src/models/EventName.js @@ -0,0 +1,66 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.EventName = void 0; +exports.instanceOfEventName = instanceOfEventName; +exports.EventNameFromJSON = EventNameFromJSON; +exports.EventNameFromJSONTyped = EventNameFromJSONTyped; +exports.EventNameToJSON = EventNameToJSON; +exports.EventNameToJSONTyped = EventNameToJSONTyped; +/** + * + * @export + */ +exports.EventName = { + VAULTS_REPAY: 'VaultsRepay', + VAULTS_WITHDRAW: 'VaultsWithdraw', + VAULTS_DEPOSIT: 'VaultsDeposit', + VAULTS_MINT: 'VaultsMint', + VAULTS_KICK: 'VaultsKick', + VAULTS_TAKE: 'VaultsTake', + VAULTS_REDO: 'VaultsRedo', + VAULTS_YANK: 'VaultsYank', + LENDINGPOOL_WITHDRAW: 'LendingpoolWithdraw', + LENDINGPOOL_REPAY: 'LendingpoolRepay', + LENDINGPOOL_LIQUIDATION_CALL: 'LendingpoolLiquidationCall', + LENDINGPOOL_BORROW: 'LendingpoolBorrow', + FILE: 'File', + PERMISSION: 'Permission', + MEDIAN: 'Median', + UNKNOWN: 'Unknown' +}; +function instanceOfEventName(value) { + for (const key in exports.EventName) { + if (Object.prototype.hasOwnProperty.call(exports.EventName, key)) { + if (exports.EventName[key] === value) { + return true; + } + } + } + return false; +} +function EventNameFromJSON(json) { + return EventNameFromJSONTyped(json, false); +} +function EventNameFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function EventNameToJSON(value) { + return value; +} +function EventNameToJSONTyped(value, ignoreDiscriminator) { + return value; +} +//# sourceMappingURL=EventName.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/EventName.js.map b/dist/cjs/service/src/models/EventName.js.map new file mode 100644 index 0000000..960399b --- /dev/null +++ b/dist/cjs/service/src/models/EventName.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EventName.js","sourceRoot":"","sources":["../../../../../src/service/src/models/EventName.ts"],"names":[],"mappings":";AAAA,oBAA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AC;AAC9B,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/EventType.d.ts b/dist/cjs/service/src/models/EventType.d.ts new file mode 100644 index 0000000..16bff9c --- /dev/null +++ b/dist/cjs/service/src/models/EventType.d.ts @@ -0,0 +1,27 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * The type of the event. who has triggered the event. + * @export + */ +export declare const EventType: { + readonly EXECUTIVE: "executive"; + readonly ORACLE: "oracle"; + readonly USER: "user"; +}; +export type EventType = typeof EventType[keyof typeof EventType]; +export declare function instanceOfEventType(value: any): boolean; +export declare function EventTypeFromJSON(json: any): EventType; +export declare function EventTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): EventType; +export declare function EventTypeToJSON(value?: EventType | null): any; +export declare function EventTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): EventType; +//# sourceMappingURL=EventType.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/EventType.d.ts.map b/dist/cjs/service/src/models/EventType.d.ts.map new file mode 100644 index 0000000..574c47f --- /dev/null +++ b/dist/cjs/service/src/models/EventType.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"EventType.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/EventType.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,SAAS;;;;CAIZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAGjE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASvD;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAEzF;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,GAAG,CAE7D;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAExF"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/EventType.js b/dist/cjs/service/src/models/EventType.js new file mode 100644 index 0000000..e445012 --- /dev/null +++ b/dist/cjs/service/src/models/EventType.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.EventType = void 0; +exports.instanceOfEventType = instanceOfEventType; +exports.EventTypeFromJSON = EventTypeFromJSON; +exports.EventTypeFromJSONTyped = EventTypeFromJSONTyped; +exports.EventTypeToJSON = EventTypeToJSON; +exports.EventTypeToJSONTyped = EventTypeToJSONTyped; +/** + * The type of the event. who has triggered the event. + * @export + */ +exports.EventType = { + EXECUTIVE: 'executive', + ORACLE: 'oracle', + USER: 'user' +}; +function instanceOfEventType(value) { + for (const key in exports.EventType) { + if (Object.prototype.hasOwnProperty.call(exports.EventType, key)) { + if (exports.EventType[key] === value) { + return true; + } + } + } + return false; +} +function EventTypeFromJSON(json) { + return EventTypeFromJSONTyped(json, false); +} +function EventTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function EventTypeToJSON(value) { + return value; +} +function EventTypeToJSONTyped(value, ignoreDiscriminator) { + return value; +} +//# sourceMappingURL=EventType.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/EventType.js.map b/dist/cjs/service/src/models/EventType.js.map new file mode 100644 index 0000000..e4265d1 --- /dev/null +++ b/dist/cjs/service/src/models/EventType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EventType.js","sourceRoot":"","sources":["../../../../../src/service/src/models/EventType.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAeH,kDASC;AAED,8CAEC;AAED,wDAEC;AAED,0CAEC;AAED,oDAEC;AArCD;;;GAGG;AACU,QAAA,SAAS,GAAG;IACrB,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;CACN,CAAC;AAIX,SAAgB,mBAAmB,CAAC,KAAU;IAC1C,KAAK,MAAM,GAAG,IAAI,iBAAS,EAAE,CAAC;QAC1B,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,iBAAS,EAAE,GAAG,CAAC,EAAE,CAAC;YACvD,IAAI,iBAAS,CAAC,GAA6B,CAAC,KAAK,KAAK,EAAE,CAAC;gBACrD,OAAO,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,OAAO,IAAiB,CAAC;AAC7B,CAAC;AAED,SAAgB,eAAe,CAAC,KAAwB;IACpD,OAAO,KAAY,CAAC;AACxB,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAU,EAAE,mBAA4B;IACzE,OAAO,KAAkB,CAAC;AAC9B,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/ExtendedEvent.d.ts b/dist/cjs/service/src/models/ExtendedEvent.d.ts new file mode 100644 index 0000000..29a46d3 --- /dev/null +++ b/dist/cjs/service/src/models/ExtendedEvent.d.ts @@ -0,0 +1,69 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { EventDomain } from './EventDomain'; +import type { EventType } from './EventType'; +import type { Log } from './Log'; +import type { EventName } from './EventName'; +/** + * + * @export + * @interface ExtendedEvent + */ +export interface ExtendedEvent { + /** + * + * @type {EventDomain} + * @memberof ExtendedEvent + */ + domain: EventDomain; + /** + * Identifier for the event. + * @type {number} + * @memberof ExtendedEvent + */ + id: number; + /** + * + * @type {EventName} + * @memberof ExtendedEvent + */ + name: EventName; + /** + * + * @type {Log} + * @memberof ExtendedEvent + */ + raw: Log; + /** + * + * @type {EventType} + * @memberof ExtendedEvent + */ + type: EventType; + /** + * The payload of the event. The payload is a JSON-marshalled + * @type {{ [key: string]: any | undefined; }} + * @memberof ExtendedEvent + */ + payload: { + [key: string]: any | undefined; + }; +} +/** + * Check if a given object implements the ExtendedEvent interface. + */ +export declare function instanceOfExtendedEvent(value: object): value is ExtendedEvent; +export declare function ExtendedEventFromJSON(json: any): ExtendedEvent; +export declare function ExtendedEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExtendedEvent; +export declare function ExtendedEventToJSON(json: any): ExtendedEvent; +export declare function ExtendedEventToJSONTyped(value?: ExtendedEvent | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=ExtendedEvent.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/ExtendedEvent.d.ts.map b/dist/cjs/service/src/models/ExtendedEvent.d.ts.map new file mode 100644 index 0000000..d4750a1 --- /dev/null +++ b/dist/cjs/service/src/models/ExtendedEvent.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ExtendedEvent.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/ExtendedEvent.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAOjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAOjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,MAAM,EAAE,WAAW,CAAC;IACpB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,GAAG,EAAE,GAAG,CAAC;IACT;;;;OAIG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,CAAC;KAAE,CAAC;CAChD;AAID;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAQ7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAajG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAchH"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/ExtendedEvent.js b/dist/cjs/service/src/models/ExtendedEvent.js new file mode 100644 index 0000000..6d83de0 --- /dev/null +++ b/dist/cjs/service/src/models/ExtendedEvent.js @@ -0,0 +1,75 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfExtendedEvent = instanceOfExtendedEvent; +exports.ExtendedEventFromJSON = ExtendedEventFromJSON; +exports.ExtendedEventFromJSONTyped = ExtendedEventFromJSONTyped; +exports.ExtendedEventToJSON = ExtendedEventToJSON; +exports.ExtendedEventToJSONTyped = ExtendedEventToJSONTyped; +const EventDomain_1 = require("./EventDomain"); +const EventType_1 = require("./EventType"); +const Log_1 = require("./Log"); +const EventName_1 = require("./EventName"); +/** + * Check if a given object implements the ExtendedEvent interface. + */ +function instanceOfExtendedEvent(value) { + if (!('domain' in value) || value['domain'] === undefined) + return false; + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('raw' in value) || value['raw'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + if (!('payload' in value) || value['payload'] === undefined) + return false; + return true; +} +function ExtendedEventFromJSON(json) { + return ExtendedEventFromJSONTyped(json, false); +} +function ExtendedEventFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'domain': (0, EventDomain_1.EventDomainFromJSON)(json['domain']), + 'id': json['id'], + 'name': (0, EventName_1.EventNameFromJSON)(json['name']), + 'raw': (0, Log_1.LogFromJSON)(json['raw']), + 'type': (0, EventType_1.EventTypeFromJSON)(json['type']), + 'payload': json['payload'], + }; +} +function ExtendedEventToJSON(json) { + return ExtendedEventToJSONTyped(json, false); +} +function ExtendedEventToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'domain': (0, EventDomain_1.EventDomainToJSON)(value['domain']), + 'id': value['id'], + 'name': (0, EventName_1.EventNameToJSON)(value['name']), + 'raw': (0, Log_1.LogToJSON)(value['raw']), + 'type': (0, EventType_1.EventTypeToJSON)(value['type']), + 'payload': value['payload'], + }; +} +//# sourceMappingURL=ExtendedEvent.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/ExtendedEvent.js.map b/dist/cjs/service/src/models/ExtendedEvent.js.map new file mode 100644 index 0000000..13fa2c9 --- /dev/null +++ b/dist/cjs/service/src/models/ExtendedEvent.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ExtendedEvent.js","sourceRoot":"","sources":["../../../../../src/service/src/models/ExtendedEvent.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAiFH,0DAQC;AAED,sDAEC;AAED,gEAaC;AAED,kDAEC;AAED,4DAcC;AA5HD,+CAKuB;AAEvB,2CAKqB;AAErB,+BAKe;AAEf,2CAKqB;AAgDrB;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IA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git a/dist/cjs/service/src/models/FormattedReserveData.d.ts b/dist/cjs/service/src/models/FormattedReserveData.d.ts new file mode 100644 index 0000000..222fd36 --- /dev/null +++ b/dist/cjs/service/src/models/FormattedReserveData.d.ts @@ -0,0 +1,162 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Token } from './Token'; +/** + * + * @export + * @interface FormattedReserveData + */ +export interface FormattedReserveData { + /** + * Identifier for the reserve data. + * @type {string} + * @memberof FormattedReserveData + */ + id: string; + /** + * + * @type {Token} + * @memberof FormattedReserveData + */ + underlyingAsset: Token; + /** + * Address of the associated zToken contract in hexadecimal format. + * @type {string} + * @memberof FormattedReserveData + */ + zTokenAddress: string; + /** + * Address of the associated variable debt token contract in hexadecimal format. + * @type {string} + * @memberof FormattedReserveData + */ + variableDebtTokenAddress: string; + /** + * + * @type {boolean} + * @memberof FormattedReserveData + */ + borrowingEnabled: boolean; + /** + * + * @type {boolean} + * @memberof FormattedReserveData + */ + isActive: boolean; + /** + * + * @type {boolean} + * @memberof FormattedReserveData + */ + isFrozen: boolean; + /** + * + * @type {boolean} + * @memberof FormattedReserveData + */ + usageAsCollateralEnabled: boolean; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + reserveFactor: string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + baseLTVasCollateral: string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + reserveLiquidationThreshold: string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + reserveLiquidationBonus: string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + utilizationRate: string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof FormattedReserveData + */ + totalDebt: { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof FormattedReserveData + */ + totalLiquidity: { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof FormattedReserveData + */ + availableLiquidity: { + [key: string]: string | undefined; + }; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + supplyAPY: string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + supplyAPR: string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + variableBorrowAPY: string; + /** + * + * @type {string} + * @memberof FormattedReserveData + */ + variableBorrowAPR: string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof FormattedReserveData + */ + price: { + [key: string]: string | undefined; + }; +} +/** + * Check if a given object implements the FormattedReserveData interface. + */ +export declare function instanceOfFormattedReserveData(value: object): value is FormattedReserveData; +export declare function FormattedReserveDataFromJSON(json: any): FormattedReserveData; +export declare function FormattedReserveDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): FormattedReserveData; +export declare function FormattedReserveDataToJSON(json: any): FormattedReserveData; +export declare function FormattedReserveDataToJSONTyped(value?: FormattedReserveData | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=FormattedReserveData.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/FormattedReserveData.d.ts.map b/dist/cjs/service/src/models/FormattedReserveData.d.ts.map new file mode 100644 index 0000000..b2ff887 --- /dev/null +++ b/dist/cjs/service/src/models/FormattedReserveData.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FormattedReserveData.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/FormattedReserveData.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQrC;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,eAAe,EAAE,KAAK,CAAC;IACvB;;;;OAIG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,wBAAwB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CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CA4B/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CA6B9H"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/FormattedReserveData.js b/dist/cjs/service/src/models/FormattedReserveData.js new file mode 100644 index 0000000..b891627 --- /dev/null +++ b/dist/cjs/service/src/models/FormattedReserveData.js @@ -0,0 +1,132 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFormattedReserveData = instanceOfFormattedReserveData; +exports.FormattedReserveDataFromJSON = FormattedReserveDataFromJSON; +exports.FormattedReserveDataFromJSONTyped = FormattedReserveDataFromJSONTyped; +exports.FormattedReserveDataToJSON = FormattedReserveDataToJSON; +exports.FormattedReserveDataToJSONTyped = FormattedReserveDataToJSONTyped; +const Token_1 = require("./Token"); +/** + * Check if a given object implements the FormattedReserveData interface. + */ +function instanceOfFormattedReserveData(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('underlyingAsset' in value) || value['underlyingAsset'] === undefined) + return false; + if (!('zTokenAddress' in value) || value['zTokenAddress'] === undefined) + return false; + if (!('variableDebtTokenAddress' in value) || value['variableDebtTokenAddress'] === undefined) + return false; + if (!('borrowingEnabled' in value) || value['borrowingEnabled'] === undefined) + return false; + if (!('isActive' in value) || value['isActive'] === undefined) + return false; + if (!('isFrozen' in value) || value['isFrozen'] === undefined) + return false; + if (!('usageAsCollateralEnabled' in value) || value['usageAsCollateralEnabled'] === undefined) + return false; + if (!('reserveFactor' in value) || value['reserveFactor'] === undefined) + return false; + if (!('baseLTVasCollateral' in value) || value['baseLTVasCollateral'] === undefined) + return false; + if (!('reserveLiquidationThreshold' in value) || value['reserveLiquidationThreshold'] === undefined) + return false; + if (!('reserveLiquidationBonus' in value) || value['reserveLiquidationBonus'] === undefined) + return false; + if (!('utilizationRate' in value) || value['utilizationRate'] === undefined) + return false; + if (!('totalDebt' in value) || value['totalDebt'] === undefined) + return false; + if (!('totalLiquidity' in value) || value['totalLiquidity'] === undefined) + return false; + if (!('availableLiquidity' in value) || value['availableLiquidity'] === undefined) + return false; + if (!('supplyAPY' in value) || value['supplyAPY'] === undefined) + return false; + if (!('supplyAPR' in value) || value['supplyAPR'] === undefined) + return false; + if (!('variableBorrowAPY' in value) || value['variableBorrowAPY'] === undefined) + return false; + if (!('variableBorrowAPR' in value) || value['variableBorrowAPR'] === undefined) + return false; + if (!('price' in value) || value['price'] === undefined) + return false; + return true; +} +function FormattedReserveDataFromJSON(json) { + return FormattedReserveDataFromJSONTyped(json, false); +} +function FormattedReserveDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + 'underlyingAsset': (0, Token_1.TokenFromJSON)(json['underlyingAsset']), + 'zTokenAddress': json['zTokenAddress'], + 'variableDebtTokenAddress': json['variableDebtTokenAddress'], + 'borrowingEnabled': json['borrowingEnabled'], + 'isActive': json['isActive'], + 'isFrozen': json['isFrozen'], + 'usageAsCollateralEnabled': json['usageAsCollateralEnabled'], + 'reserveFactor': json['reserveFactor'], + 'baseLTVasCollateral': json['baseLTVasCollateral'], + 'reserveLiquidationThreshold': json['reserveLiquidationThreshold'], + 'reserveLiquidationBonus': json['reserveLiquidationBonus'], + 'utilizationRate': json['utilizationRate'], + 'totalDebt': json['totalDebt'], + 'totalLiquidity': json['totalLiquidity'], + 'availableLiquidity': json['availableLiquidity'], + 'supplyAPY': json['supplyAPY'], + 'supplyAPR': json['supplyAPR'], + 'variableBorrowAPY': json['variableBorrowAPY'], + 'variableBorrowAPR': json['variableBorrowAPR'], + 'price': json['price'], + }; +} +function FormattedReserveDataToJSON(json) { + return FormattedReserveDataToJSONTyped(json, false); +} +function FormattedReserveDataToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'underlyingAsset': (0, Token_1.TokenToJSON)(value['underlyingAsset']), + 'zTokenAddress': value['zTokenAddress'], + 'variableDebtTokenAddress': value['variableDebtTokenAddress'], + 'borrowingEnabled': value['borrowingEnabled'], + 'isActive': value['isActive'], + 'isFrozen': value['isFrozen'], + 'usageAsCollateralEnabled': value['usageAsCollateralEnabled'], + 'reserveFactor': value['reserveFactor'], + 'baseLTVasCollateral': value['baseLTVasCollateral'], + 'reserveLiquidationThreshold': value['reserveLiquidationThreshold'], + 'reserveLiquidationBonus': value['reserveLiquidationBonus'], + 'utilizationRate': value['utilizationRate'], + 'totalDebt': value['totalDebt'], + 'totalLiquidity': value['totalLiquidity'], + 'availableLiquidity': value['availableLiquidity'], + 'supplyAPY': value['supplyAPY'], + 'supplyAPR': value['supplyAPR'], + 'variableBorrowAPY': value['variableBorrowAPY'], + 'variableBorrowAPR': value['variableBorrowAPR'], + 'price': value['price'], + }; +} +//# sourceMappingURL=FormattedReserveData.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/FormattedReserveData.js.map b/dist/cjs/service/src/models/FormattedReserveData.js.map new file mode 100644 index 0000000..b9c879d --- /dev/null +++ b/dist/cjs/service/src/models/FormattedReserveData.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FormattedReserveData.js","sourceRoot":"","sources":["../../../../../src/service/src/models/FormattedReserveData.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoJH,wEAuBC;AAED,oEAEC;AAED,8EA4BC;AAED,gEAEC;AAED,0EA6BC;AA5OD,mCAKiB;AAwIjB;;GAE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mBAAmB,EAAE,KAAK,CAAC,mBAAmB,CAAC;QAC/C,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;KAC1B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Ilk.d.ts b/dist/cjs/service/src/models/Ilk.d.ts new file mode 100644 index 0000000..8c2a915 --- /dev/null +++ b/dist/cjs/service/src/models/Ilk.d.ts @@ -0,0 +1,158 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Symbol } from './Symbol'; +/** + * + * @export + * @interface Ilk + */ +export interface Ilk { + /** + * Name of the ILK + * @type {string} + * @memberof Ilk + */ + name: string; + /** + * + * @type {Symbol} + * @memberof Ilk + */ + symbol: Symbol; + /** + * Minimum Collateralization Ratio + * @type {string} + * @memberof Ilk + */ + minimumCollateralizationRatio: string; + /** + * Maximum Loan To Value + * @type {string} + * @memberof Ilk + */ + maximumLoanToValue: string; + /** + * Liquidation Penalty + * @type {string} + * @memberof Ilk + */ + liquidationPenalty: string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + debtCeiling: { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + debt: { + [key: string]: string | undefined; + }; + /** + * Annual Stability Fee + * @type {string} + * @memberof Ilk + */ + annualStabilityFee: string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + dustLimit: { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + price: { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + nextPrice: { + [key: string]: string | undefined; + }; + /** + * Join Address + * @type {string} + * @memberof Ilk + */ + join: string; + /** + * Median Address + * @type {string} + * @memberof Ilk + */ + median: string; + /** + * Gem Address + * @type {string} + * @memberof Ilk + */ + gem: string; + /** + * Clipper Address + * @type {string} + * @memberof Ilk + */ + clipper: string; + /** + * Pip Address + * @type {string} + * @memberof Ilk + */ + pip: string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + hole: { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + dirt: { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Ilk + */ + availableToBorrow: { + [key: string]: string | undefined; + }; +} +/** + * Check if a given object implements the Ilk interface. + */ +export declare function instanceOfIlk(value: object): value is Ilk; +export declare function IlkFromJSON(json: any): Ilk; +export declare function IlkFromJSONTyped(json: any, ignoreDiscriminator: boolean): Ilk; +export declare function IlkToJSON(json: any): Ilk; +export declare function IlkToJSONTyped(value?: Ilk | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=Ilk.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Ilk.d.ts.map b/dist/cjs/service/src/models/Ilk.d.ts.map new file mode 100644 index 0000000..ab472e5 --- /dev/null +++ b/dist/cjs/service/src/models/Ilk.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Ilk.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/Ilk.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQvC;;;;GAIG;AACH,MAAM,WAAW,GAAG;IAChB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,6BAA6B,EAAE,MAAM,CAAC;IACtC;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,WAA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,GAAG,CAE1C;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,GAAG,CA0B7E;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAExC;AAED,wBAAgB,cAAc,CAAC,KAAK,CAAC,EAAE,GAAG,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CA2B5F"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Ilk.js b/dist/cjs/service/src/models/Ilk.js new file mode 100644 index 0000000..7901452 --- /dev/null +++ b/dist/cjs/service/src/models/Ilk.js @@ -0,0 +1,124 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfIlk = instanceOfIlk; +exports.IlkFromJSON = IlkFromJSON; +exports.IlkFromJSONTyped = IlkFromJSONTyped; +exports.IlkToJSON = IlkToJSON; +exports.IlkToJSONTyped = IlkToJSONTyped; +const Symbol_1 = require("./Symbol"); +/** + * Check if a given object implements the Ilk interface. + */ +function instanceOfIlk(value) { + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('symbol' in value) || value['symbol'] === undefined) + return false; + if (!('minimumCollateralizationRatio' in value) || value['minimumCollateralizationRatio'] === undefined) + return false; + if (!('maximumLoanToValue' in value) || value['maximumLoanToValue'] === undefined) + return false; + if (!('liquidationPenalty' in value) || value['liquidationPenalty'] === undefined) + return false; + if (!('debtCeiling' in value) || value['debtCeiling'] === undefined) + return false; + if (!('debt' in value) || value['debt'] === undefined) + return false; + if (!('annualStabilityFee' in value) || value['annualStabilityFee'] === undefined) + return false; + if (!('dustLimit' in value) || value['dustLimit'] === undefined) + return false; + if (!('price' in value) || value['price'] === undefined) + return false; + if (!('nextPrice' in value) || value['nextPrice'] === undefined) + return false; + if (!('join' in value) || value['join'] === undefined) + return false; + if (!('median' in value) || value['median'] === undefined) + return false; + if (!('gem' in value) || value['gem'] === undefined) + return false; + if (!('clipper' in value) || value['clipper'] === undefined) + return false; + if (!('pip' in value) || value['pip'] === undefined) + return false; + if (!('hole' in value) || value['hole'] === undefined) + return false; + if (!('dirt' in value) || value['dirt'] === undefined) + return false; + if (!('availableToBorrow' in value) || value['availableToBorrow'] === undefined) + return false; + return true; +} +function IlkFromJSON(json) { + return IlkFromJSONTyped(json, false); +} +function IlkFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'], + 'symbol': (0, Symbol_1.SymbolFromJSON)(json['symbol']), + 'minimumCollateralizationRatio': json['minimumCollateralizationRatio'], + 'maximumLoanToValue': json['maximumLoanToValue'], + 'liquidationPenalty': json['liquidationPenalty'], + 'debtCeiling': json['debtCeiling'], + 'debt': json['debt'], + 'annualStabilityFee': json['annualStabilityFee'], + 'dustLimit': json['dustLimit'], + 'price': json['price'], + 'nextPrice': json['nextPrice'], + 'join': json['join'], + 'median': json['median'], + 'gem': json['gem'], + 'clipper': json['clipper'], + 'pip': json['pip'], + 'hole': json['hole'], + 'dirt': json['dirt'], + 'availableToBorrow': json['availableToBorrow'], + }; +} +function IlkToJSON(json) { + return IlkToJSONTyped(json, false); +} +function IlkToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'symbol': (0, Symbol_1.SymbolToJSON)(value['symbol']), + 'minimumCollateralizationRatio': value['minimumCollateralizationRatio'], + 'maximumLoanToValue': value['maximumLoanToValue'], + 'liquidationPenalty': value['liquidationPenalty'], + 'debtCeiling': value['debtCeiling'], + 'debt': value['debt'], + 'annualStabilityFee': value['annualStabilityFee'], + 'dustLimit': value['dustLimit'], + 'price': value['price'], + 'nextPrice': value['nextPrice'], + 'join': value['join'], + 'median': value['median'], + 'gem': value['gem'], + 'clipper': value['clipper'], + 'pip': value['pip'], + 'hole': value['hole'], + 'dirt': value['dirt'], + 'availableToBorrow': value['availableToBorrow'], + }; +} +//# sourceMappingURL=Ilk.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Ilk.js.map b/dist/cjs/service/src/models/Ilk.js.map new file mode 100644 index 0000000..315f23a --- /dev/null +++ b/dist/cjs/service/src/models/Ilk.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Ilk.js","sourceRoot":"","sources":["../../../../../src/service/src/models/Ilk.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0IH,sCAqBC;AAED,kCAEC;AAED,4CA0BC;AAED,8BAEC;AAED,wCA2BC;AA5ND,qCAKkB;AA8HlB;;GAEG;AACH,SAAgB,aAAa,CAAC,KAAa;IACvC,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,+BAA+B,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,+BAA+B,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtH,IAAI,CAAC,CAAC,oBAAoB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,oBAAoB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChG,IAAI,CAAC,CAAC,oBAAoB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,oBAAoB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChG,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,O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AAK,CAAC,MAAM,CAAC;QACrB,mBAAmB,EAAE,KAAK,CAAC,mBAAmB,CAAC;KAClD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/IlksResponse.d.ts b/dist/cjs/service/src/models/IlksResponse.d.ts new file mode 100644 index 0000000..2a86e6c --- /dev/null +++ b/dist/cjs/service/src/models/IlksResponse.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Ilk } from './Ilk'; +/** + * + * @export + * @interface IlksResponse + */ +export interface IlksResponse { + /** + * + * @type {Array} + * @memberof IlksResponse + */ + data: Array; +} +/** + * Check if a given object implements the IlksResponse interface. + */ +export declare function instanceOfIlksResponse(value: object): value is IlksResponse; +export declare function IlksResponseFromJSON(json: any): IlksResponse; +export declare function IlksResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): IlksResponse; +export declare function IlksResponseToJSON(json: any): IlksResponse; +export declare function IlksResponseToJSONTyped(value?: IlksResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=IlksResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/IlksResponse.d.ts.map b/dist/cjs/service/src/models/IlksResponse.d.ts.map new file mode 100644 index 0000000..a0712c2 --- /dev/null +++ b/dist/cjs/service/src/models/IlksResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"IlksResponse.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/IlksResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAQjC;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAG3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAQ/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS9G"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/IlksResponse.js b/dist/cjs/service/src/models/IlksResponse.js new file mode 100644 index 0000000..6ce2207 --- /dev/null +++ b/dist/cjs/service/src/models/IlksResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfIlksResponse = instanceOfIlksResponse; +exports.IlksResponseFromJSON = IlksResponseFromJSON; +exports.IlksResponseFromJSONTyped = IlksResponseFromJSONTyped; +exports.IlksResponseToJSON = IlksResponseToJSON; +exports.IlksResponseToJSONTyped = IlksResponseToJSONTyped; +const Ilk_1 = require("./Ilk"); +/** + * Check if a given object implements the IlksResponse interface. + */ +function instanceOfIlksResponse(value) { + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function IlksResponseFromJSON(json) { + return IlksResponseFromJSONTyped(json, false); +} +function IlksResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': (json['data'].map(Ilk_1.IlkFromJSON)), + }; +} +function IlksResponseToJSON(json) { + return IlksResponseToJSONTyped(json, false); +} +function IlksResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'data': (value['data'].map(Ilk_1.IlkToJSON)), + }; +} +//# sourceMappingURL=IlksResponse.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/IlksResponse.js.map b/dist/cjs/service/src/models/IlksResponse.js.map new file mode 100644 index 0000000..7185b6f --- /dev/null +++ b/dist/cjs/service/src/models/IlksResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"IlksResponse.js","sourceRoot":"","sources":["../../../../../src/service/src/models/IlksResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,wDAGC;AAED,oDAEC;AAED,8DAQC;AAED,gDAEC;AAED,0DASC;AAxDD,+BAKe;AAgBf;;GAEG;AACH,SAAgB,sBAAsB,CAAC,KAAa;IAChD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS,EAAE,mBAA4B;IAC7E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,iBAAW,CAAC,CAAC;KAC1D,CAAC;AACN,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,KAA2B,EAAE,sBAA+B,KAAK;IACrG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,eAAS,CAAC,CAAC;KACzD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolBorrow.d.ts b/dist/cjs/service/src/models/LendingpoolBorrow.d.ts new file mode 100644 index 0000000..04be3b4 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolBorrow.d.ts @@ -0,0 +1,62 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Token } from './Token'; +/** + * + * @export + * @interface LendingpoolBorrow + */ +export interface LendingpoolBorrow { + /** + * The Ethereum address of the user. + * @type {string} + * @memberof LendingpoolBorrow + */ + user: string; + /** + * + * @type {Token} + * @memberof LendingpoolBorrow + */ + underlyingAsset: Token; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof LendingpoolBorrow + */ + amount: { + [key: string]: string | undefined; + }; + /** + * The borrow rate. + * @type {string} + * @memberof LendingpoolBorrow + */ + borrowRate: string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof LendingpoolBorrow + */ + maxBorrowAmount: { + [key: string]: string | undefined; + }; +} +/** + * Check if a given object implements the LendingpoolBorrow interface. + */ +export declare function instanceOfLendingpoolBorrow(value: object): value is LendingpoolBorrow; +export declare function LendingpoolBorrowFromJSON(json: any): LendingpoolBorrow; +export declare function LendingpoolBorrowFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolBorrow; +export declare function LendingpoolBorrowToJSON(json: any): LendingpoolBorrow; +export declare function LendingpoolBorrowToJSONTyped(value?: LendingpoolBorrow | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=LendingpoolBorrow.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolBorrow.d.ts.map b/dist/cjs/service/src/models/LendingpoolBorrow.d.ts.map new file mode 100644 index 0000000..6b79a54 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolBorrow.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolBorrow.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolBorrow.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQrC;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,eAAe,EAAE,KAAK,CAAC;IACvB;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC/C;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CAC3D;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAOrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAYzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAaxH"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolBorrow.js b/dist/cjs/service/src/models/LendingpoolBorrow.js new file mode 100644 index 0000000..7373103 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolBorrow.js @@ -0,0 +1,68 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfLendingpoolBorrow = instanceOfLendingpoolBorrow; +exports.LendingpoolBorrowFromJSON = LendingpoolBorrowFromJSON; +exports.LendingpoolBorrowFromJSONTyped = LendingpoolBorrowFromJSONTyped; +exports.LendingpoolBorrowToJSON = LendingpoolBorrowToJSON; +exports.LendingpoolBorrowToJSONTyped = LendingpoolBorrowToJSONTyped; +const Token_1 = require("./Token"); +/** + * Check if a given object implements the LendingpoolBorrow interface. + */ +function instanceOfLendingpoolBorrow(value) { + if (!('user' in value) || value['user'] === undefined) + return false; + if (!('underlyingAsset' in value) || value['underlyingAsset'] === undefined) + return false; + if (!('amount' in value) || value['amount'] === undefined) + return false; + if (!('borrowRate' in value) || value['borrowRate'] === undefined) + return false; + if (!('maxBorrowAmount' in value) || value['maxBorrowAmount'] === undefined) + return false; + return true; +} +function LendingpoolBorrowFromJSON(json) { + return LendingpoolBorrowFromJSONTyped(json, false); +} +function LendingpoolBorrowFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'user': json['user'], + 'underlyingAsset': (0, Token_1.TokenFromJSON)(json['underlyingAsset']), + 'amount': json['amount'], + 'borrowRate': json['borrowRate'], + 'maxBorrowAmount': json['maxBorrowAmount'], + }; +} +function LendingpoolBorrowToJSON(json) { + return LendingpoolBorrowToJSONTyped(json, false); +} +function LendingpoolBorrowToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'user': value['user'], + 'underlyingAsset': (0, Token_1.TokenToJSON)(value['underlyingAsset']), + 'amount': value['amount'], + 'borrowRate': value['borrowRate'], + 'maxBorrowAmount': value['maxBorrowAmount'], + }; +} +//# sourceMappingURL=LendingpoolBorrow.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolBorrow.js.map b/dist/cjs/service/src/models/LendingpoolBorrow.js.map new file mode 100644 index 0000000..ca44c86 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolBorrow.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolBorrow.js","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolBorrow.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoDH,kEAOC;AAED,8DAEC;AAED,wEAYC;AAED,0DAEC;AAED,oEAaC;AA5FD,mCAKiB;AAwCjB;;GAEG;AACH,SAAgB,2BAA2B,CAAC,KAAa;IACrD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1F,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChF,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1F,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,iBAAiB,EAAE,IAAA,qBAAa,EAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC;QACzD,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;QAChC,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,CAAC;KAC7C,CAAC;AACN,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,KAAgC,EAAE,sBAA+B,KAAK;IAC/G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,iBAAiB,EAAE,IAAA,mBAAW,EAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACxD,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;KAC9C,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolBorrowTxRequest.d.ts b/dist/cjs/service/src/models/LendingpoolBorrowTxRequest.d.ts new file mode 100644 index 0000000..e1b883e --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolBorrowTxRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LendingpoolBorrowTxRequest + */ +export interface LendingpoolBorrowTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof LendingpoolBorrowTxRequest + */ + user: string; + /** + * + * @type {string} + * @memberof LendingpoolBorrowTxRequest + */ + symbol: string; + /** + * The amount to borrow in native token units + * @type {string} + * @memberof LendingpoolBorrowTxRequest + */ + amount?: string; +} +/** + * Check if a given object implements the LendingpoolBorrowTxRequest interface. + */ +export declare function instanceOfLendingpoolBorrowTxRequest(value: object): value is LendingpoolBorrowTxRequest; +export declare function LendingpoolBorrowTxRequestFromJSON(json: any): LendingpoolBorrowTxRequest; +export declare function LendingpoolBorrowTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolBorrowTxRequest; +export declare function LendingpoolBorrowTxRequestToJSON(json: any): LendingpoolBorrowTxRequest; +export declare function LendingpoolBorrowTxRequestToJSONTyped(value?: LendingpoolBorrowTxRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=LendingpoolBorrowTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolBorrowTxRequest.d.ts.map b/dist/cjs/service/src/models/LendingpoolBorrowTxRequest.d.ts.map new file mode 100644 index 0000000..a9f6de9 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolBorrowTxRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolBorrowTxRequest.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolBorrowTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,0BAA0B,CAIvG;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAExF;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,0BAA0B,CAU3H;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAEtF;AAED,wBAAgB,qCAAqC,CAAC,KAAK,CAAC,EAAE,0BAA0B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW1I"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolBorrowTxRequest.js b/dist/cjs/service/src/models/LendingpoolBorrowTxRequest.js new file mode 100644 index 0000000..f1ddec1 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolBorrowTxRequest.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfLendingpoolBorrowTxRequest = instanceOfLendingpoolBorrowTxRequest; +exports.LendingpoolBorrowTxRequestFromJSON = LendingpoolBorrowTxRequestFromJSON; +exports.LendingpoolBorrowTxRequestFromJSONTyped = LendingpoolBorrowTxRequestFromJSONTyped; +exports.LendingpoolBorrowTxRequestToJSON = LendingpoolBorrowTxRequestToJSON; +exports.LendingpoolBorrowTxRequestToJSONTyped = LendingpoolBorrowTxRequestToJSONTyped; +/** + * Check if a given object implements the LendingpoolBorrowTxRequest interface. + */ +function instanceOfLendingpoolBorrowTxRequest(value) { + if (!('user' in value) || value['user'] === undefined) + return false; + if (!('symbol' in value) || value['symbol'] === undefined) + return false; + return true; +} +function LendingpoolBorrowTxRequestFromJSON(json) { + return LendingpoolBorrowTxRequestFromJSONTyped(json, false); +} +function LendingpoolBorrowTxRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'user': json['user'], + 'symbol': json['symbol'], + 'amount': json['amount'] == null ? undefined : json['amount'], + }; +} +function LendingpoolBorrowTxRequestToJSON(json) { + return LendingpoolBorrowTxRequestToJSONTyped(json, false); +} +function LendingpoolBorrowTxRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'user': value['user'], + 'symbol': value['symbol'], + 'amount': value['amount'], + }; +} +//# sourceMappingURL=LendingpoolBorrowTxRequest.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolBorrowTxRequest.js.map b/dist/cjs/service/src/models/LendingpoolBorrowTxRequest.js.map new file mode 100644 index 0000000..182c703 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolBorrowTxRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolBorrowTxRequest.js","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolBorrowTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,oFAIC;AAED,gFAEC;AAED,0FAUC;AAED,4EAEC;AAED,sFAWC;AAxCD;;GAEG;AACH,SAAgB,oCAAoC,CAAC,KAAa;IAC9D,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS;IACxD,OAAO,uCAAuC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChE,CAAC;AAED,SAAgB,uCAAuC,CAAC,IAAS,EAAE,mBAA4B;IAC3F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS;IACtD,OAAO,qCAAqC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9D,CAAC;AAED,SAAgB,qCAAqC,CAAC,KAAyC,EAAE,sBAA+B,KAAK;IACjI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolBorrowTxResponse.d.ts b/dist/cjs/service/src/models/LendingpoolBorrowTxResponse.d.ts new file mode 100644 index 0000000..1af9e69 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolBorrowTxResponse.d.ts @@ -0,0 +1,41 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LendingpoolTxResponse } from './LendingpoolTxResponse'; +import type { ChainActivity } from './ChainActivity'; +/** + * + * @export + * @interface LendingpoolBorrowTxResponse + */ +export interface LendingpoolBorrowTxResponse { + /** + * + * @type {ChainActivity} + * @memberof LendingpoolBorrowTxResponse + */ + chainActivity?: ChainActivity; + /** + * + * @type {LendingpoolTxResponse} + * @memberof LendingpoolBorrowTxResponse + */ + response?: LendingpoolTxResponse; +} +/** + * Check if a given object implements the LendingpoolBorrowTxResponse interface. + */ +export declare function instanceOfLendingpoolBorrowTxResponse(value: object): value is LendingpoolBorrowTxResponse; +export declare function LendingpoolBorrowTxResponseFromJSON(json: any): LendingpoolBorrowTxResponse; +export declare function LendingpoolBorrowTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolBorrowTxResponse; +export declare function LendingpoolBorrowTxResponseToJSON(json: any): LendingpoolBorrowTxResponse; +export declare function LendingpoolBorrowTxResponseToJSONTyped(value?: LendingpoolBorrowTxResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=LendingpoolBorrowTxResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolBorrowTxResponse.d.ts.map b/dist/cjs/service/src/models/LendingpoolBorrowTxResponse.d.ts.map new file mode 100644 index 0000000..78c2f3f --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolBorrowTxResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolBorrowTxResponse.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolBorrowTxResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAOrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,qBAAqB,CAAC;CACpC;AAED;;GAEG;AACH,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,2BAA2B,CAEzG;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAE1F;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,2BAA2B,CAS7H;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAExF;AAED,wBAAgB,sCAAsC,CAAC,KAAK,CAAC,EAAE,2BAA2B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU5I"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolBorrowTxResponse.js b/dist/cjs/service/src/models/LendingpoolBorrowTxResponse.js new file mode 100644 index 0000000..5cb3424 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolBorrowTxResponse.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfLendingpoolBorrowTxResponse = instanceOfLendingpoolBorrowTxResponse; +exports.LendingpoolBorrowTxResponseFromJSON = LendingpoolBorrowTxResponseFromJSON; +exports.LendingpoolBorrowTxResponseFromJSONTyped = LendingpoolBorrowTxResponseFromJSONTyped; +exports.LendingpoolBorrowTxResponseToJSON = LendingpoolBorrowTxResponseToJSON; +exports.LendingpoolBorrowTxResponseToJSONTyped = LendingpoolBorrowTxResponseToJSONTyped; +const LendingpoolTxResponse_1 = require("./LendingpoolTxResponse"); +const ChainActivity_1 = require("./ChainActivity"); +/** + * Check if a given object implements the LendingpoolBorrowTxResponse interface. + */ +function instanceOfLendingpoolBorrowTxResponse(value) { + return true; +} +function LendingpoolBorrowTxResponseFromJSON(json) { + return LendingpoolBorrowTxResponseFromJSONTyped(json, false); +} +function LendingpoolBorrowTxResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'chainActivity': json['chainActivity'] == null ? undefined : (0, ChainActivity_1.ChainActivityFromJSON)(json['chainActivity']), + 'response': json['response'] == null ? undefined : (0, LendingpoolTxResponse_1.LendingpoolTxResponseFromJSON)(json['response']), + }; +} +function LendingpoolBorrowTxResponseToJSON(json) { + return LendingpoolBorrowTxResponseToJSONTyped(json, false); +} +function LendingpoolBorrowTxResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'chainActivity': (0, ChainActivity_1.ChainActivityToJSON)(value['chainActivity']), + 'response': (0, LendingpoolTxResponse_1.LendingpoolTxResponseToJSON)(value['response']), + }; +} +//# sourceMappingURL=LendingpoolBorrowTxResponse.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolBorrowTxResponse.js.map b/dist/cjs/service/src/models/LendingpoolBorrowTxResponse.js.map new file mode 100644 index 0000000..4e9f04c --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolBorrowTxResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolBorrowTxResponse.js","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolBorrowTxResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAyCH,sFAEC;AAED,kFAEC;AAED,4FASC;AAED,8EAEC;AAED,wFAUC;AAtED,mEAKiC;AAEjC,mDAKyB;AAsBzB;;GAEG;AACH,SAAgB,qCAAqC,CAAC,KAAa;IAC/D,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,mCAAmC,CAAC,IAAS;IACzD,OAAO,wCAAwC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjE,CAAC;AAED,SAAgB,wCAAwC,CAAC,IAAS,EAAE,mBAA4B;IAC5F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qCAAqB,EAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACzG,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qDAA6B,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACrG,CAAC;AACN,CAAC;AAED,SAAgB,iCAAiC,CAAC,IAAS;IACvD,OAAO,sCAAsC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/D,CAAC;AAED,SAAgB,sCAAsC,CAAC,KAA0C,EAAE,sBAA+B,KAAK;IACnI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,eAAe,EAAE,IAAA,mCAAmB,EAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QAC5D,UAAU,EAAE,IAAA,mDAA2B,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC;KAC7D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolDeposit.d.ts b/dist/cjs/service/src/models/LendingpoolDeposit.d.ts new file mode 100644 index 0000000..b8ad187 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolDeposit.d.ts @@ -0,0 +1,60 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Token } from './Token'; +/** + * + * @export + * @interface LendingpoolDeposit + */ +export interface LendingpoolDeposit { + /** + * The Ethereum address of the user. + * @type {string} + * @memberof LendingpoolDeposit + */ + user: string; + /** + * + * @type {Token} + * @memberof LendingpoolDeposit + */ + underlyingAsset: Token; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof LendingpoolDeposit + */ + amount: { + [key: string]: string | undefined; + }; + /** + * Whether the user has enabled the asset as collateral. + * @type {boolean} + * @memberof LendingpoolDeposit + */ + usageAsCollateralEnabledOnUser: boolean; + /** + * The supply APY. + * @type {string} + * @memberof LendingpoolDeposit + */ + supplyAPY: string; +} +/** + * Check if a given object implements the LendingpoolDeposit interface. + */ +export declare function instanceOfLendingpoolDeposit(value: object): value is LendingpoolDeposit; +export declare function LendingpoolDepositFromJSON(json: any): LendingpoolDeposit; +export declare function LendingpoolDepositFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolDeposit; +export declare function LendingpoolDepositToJSON(json: any): LendingpoolDeposit; +export declare function LendingpoolDepositToJSONTyped(value?: LendingpoolDeposit | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=LendingpoolDeposit.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolDeposit.d.ts.map b/dist/cjs/service/src/models/LendingpoolDeposit.d.ts.map new file mode 100644 index 0000000..fec1252 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolDeposit.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolDeposit.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolDeposit.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQrC;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,eAAe,EAAE,KAAK,CAAC;IACvB;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC/C;;;;OAIG;IACH,8BAA8B,EAAE,OAAO,CAAC;IACxC;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAOvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAY3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAa1H"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolDeposit.js b/dist/cjs/service/src/models/LendingpoolDeposit.js new file mode 100644 index 0000000..cfd44cd --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolDeposit.js @@ -0,0 +1,68 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfLendingpoolDeposit = instanceOfLendingpoolDeposit; +exports.LendingpoolDepositFromJSON = LendingpoolDepositFromJSON; +exports.LendingpoolDepositFromJSONTyped = LendingpoolDepositFromJSONTyped; +exports.LendingpoolDepositToJSON = LendingpoolDepositToJSON; +exports.LendingpoolDepositToJSONTyped = LendingpoolDepositToJSONTyped; +const Token_1 = require("./Token"); +/** + * Check if a given object implements the LendingpoolDeposit interface. + */ +function instanceOfLendingpoolDeposit(value) { + if (!('user' in value) || value['user'] === undefined) + return false; + if (!('underlyingAsset' in value) || value['underlyingAsset'] === undefined) + return false; + if (!('amount' in value) || value['amount'] === undefined) + return false; + if (!('usageAsCollateralEnabledOnUser' in value) || value['usageAsCollateralEnabledOnUser'] === undefined) + return false; + if (!('supplyAPY' in value) || value['supplyAPY'] === undefined) + return false; + return true; +} +function LendingpoolDepositFromJSON(json) { + return LendingpoolDepositFromJSONTyped(json, false); +} +function LendingpoolDepositFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'user': json['user'], + 'underlyingAsset': (0, Token_1.TokenFromJSON)(json['underlyingAsset']), + 'amount': json['amount'], + 'usageAsCollateralEnabledOnUser': json['usageAsCollateralEnabledOnUser'], + 'supplyAPY': json['supplyAPY'], + }; +} +function LendingpoolDepositToJSON(json) { + return LendingpoolDepositToJSONTyped(json, false); +} +function LendingpoolDepositToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'user': value['user'], + 'underlyingAsset': (0, Token_1.TokenToJSON)(value['underlyingAsset']), + 'amount': value['amount'], + 'usageAsCollateralEnabledOnUser': value['usageAsCollateralEnabledOnUser'], + 'supplyAPY': value['supplyAPY'], + }; +} +//# sourceMappingURL=LendingpoolDeposit.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolDeposit.js.map b/dist/cjs/service/src/models/LendingpoolDeposit.js.map new file mode 100644 index 0000000..5f794ba --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolDeposit.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolDeposit.js","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolDeposit.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoDH,oEAOC;AAED,gEAEC;AAED,0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B,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,KAAiC,EAAE,sBAA+B,KAAK;IACjH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,iBAAiB,EAAE,IAAA,mBAAW,EAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;QACxD,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,gCAAgC,EAAE,KAAK,CAAC,gCAAgC,CAAC;QACzE,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;KAClC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolDepositTxRequest.d.ts b/dist/cjs/service/src/models/LendingpoolDepositTxRequest.d.ts new file mode 100644 index 0000000..ad3cae6 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolDepositTxRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LendingpoolDepositTxRequest + */ +export interface LendingpoolDepositTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof LendingpoolDepositTxRequest + */ + user: string; + /** + * + * @type {string} + * @memberof LendingpoolDepositTxRequest + */ + symbol: string; + /** + * The amount to deposit in native token units, if not provided, it will be calculated based on the token balance + * @type {string} + * @memberof LendingpoolDepositTxRequest + */ + amount?: string; +} +/** + * Check if a given object implements the LendingpoolDepositTxRequest interface. + */ +export declare function instanceOfLendingpoolDepositTxRequest(value: object): value is LendingpoolDepositTxRequest; +export declare function LendingpoolDepositTxRequestFromJSON(json: any): LendingpoolDepositTxRequest; +export declare function LendingpoolDepositTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolDepositTxRequest; +export declare function LendingpoolDepositTxRequestToJSON(json: any): LendingpoolDepositTxRequest; +export declare function LendingpoolDepositTxRequestToJSONTyped(value?: LendingpoolDepositTxRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=LendingpoolDepositTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolDepositTxRequest.d.ts.map b/dist/cjs/service/src/models/LendingpoolDepositTxRequest.d.ts.map new file mode 100644 index 0000000..85edf0a --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolDepositTxRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolDepositTxRequest.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolDepositTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,2BAA2B;IACxC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,qCAAqC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,2BAA2B,CAIzG;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAE1F;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,2BAA2B,CAU7H;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,2BAA2B,CAExF;AAED,wBAAgB,sCAAsC,CAAC,KAAK,CAAC,EAAE,2BAA2B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW5I"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolDepositTxRequest.js b/dist/cjs/service/src/models/LendingpoolDepositTxRequest.js new file mode 100644 index 0000000..83fbf08 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolDepositTxRequest.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfLendingpoolDepositTxRequest = instanceOfLendingpoolDepositTxRequest; +exports.LendingpoolDepositTxRequestFromJSON = LendingpoolDepositTxRequestFromJSON; +exports.LendingpoolDepositTxRequestFromJSONTyped = LendingpoolDepositTxRequestFromJSONTyped; +exports.LendingpoolDepositTxRequestToJSON = LendingpoolDepositTxRequestToJSON; +exports.LendingpoolDepositTxRequestToJSONTyped = LendingpoolDepositTxRequestToJSONTyped; +/** + * Check if a given object implements the LendingpoolDepositTxRequest interface. + */ +function instanceOfLendingpoolDepositTxRequest(value) { + if (!('user' in value) || value['user'] === undefined) + return false; + if (!('symbol' in value) || value['symbol'] === undefined) + return false; + return true; +} +function LendingpoolDepositTxRequestFromJSON(json) { + return LendingpoolDepositTxRequestFromJSONTyped(json, false); +} +function LendingpoolDepositTxRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'user': json['user'], + 'symbol': json['symbol'], + 'amount': json['amount'] == null ? undefined : json['amount'], + }; +} +function LendingpoolDepositTxRequestToJSON(json) { + return LendingpoolDepositTxRequestToJSONTyped(json, false); +} +function LendingpoolDepositTxRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'user': value['user'], + 'symbol': value['symbol'], + 'amount': value['amount'], + }; +} +//# sourceMappingURL=LendingpoolDepositTxRequest.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolDepositTxRequest.js.map b/dist/cjs/service/src/models/LendingpoolDepositTxRequest.js.map new file mode 100644 index 0000000..ce05b3a --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolDepositTxRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolDepositTxRequest.js","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolDepositTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,sFAIC;AAED,kFAEC;AAED,4FAUC;AAED,8EAEC;AAED,wFAWC;AAxCD;;GAEG;AACH,SAAgB,qCAAqC,CAAC,KAAa;IAC/D,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,mCAAmC,CAAC,IAAS;IACzD,OAAO,wCAAwC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjE,CAAC;AAED,SAAgB,wCAAwC,CAAC,IAAS,EAAE,mBAA4B;IAC5F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,iCAAiC,CAAC,IAAS;IACvD,OAAO,sCAAsC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/D,CAAC;AAED,SAAgB,sCAAsC,CAAC,KAA0C,EAAE,sBAA+B,KAAK;IACnI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolDepositTxResponse.d.ts b/dist/cjs/service/src/models/LendingpoolDepositTxResponse.d.ts new file mode 100644 index 0000000..6163417 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolDepositTxResponse.d.ts @@ -0,0 +1,41 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LendingpoolTxResponse } from './LendingpoolTxResponse'; +import type { ChainActivity } from './ChainActivity'; +/** + * + * @export + * @interface LendingpoolDepositTxResponse + */ +export interface LendingpoolDepositTxResponse { + /** + * + * @type {ChainActivity} + * @memberof LendingpoolDepositTxResponse + */ + chainActivity?: ChainActivity; + /** + * + * @type {LendingpoolTxResponse} + * @memberof LendingpoolDepositTxResponse + */ + response?: LendingpoolTxResponse; +} +/** + * Check if a given object implements the LendingpoolDepositTxResponse interface. + */ +export declare function instanceOfLendingpoolDepositTxResponse(value: object): value is LendingpoolDepositTxResponse; +export declare function LendingpoolDepositTxResponseFromJSON(json: any): LendingpoolDepositTxResponse; +export declare function LendingpoolDepositTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolDepositTxResponse; +export declare function LendingpoolDepositTxResponseToJSON(json: any): LendingpoolDepositTxResponse; +export declare function LendingpoolDepositTxResponseToJSONTyped(value?: LendingpoolDepositTxResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=LendingpoolDepositTxResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolDepositTxResponse.d.ts.map b/dist/cjs/service/src/models/LendingpoolDepositTxResponse.d.ts.map new file mode 100644 index 0000000..1878716 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolDepositTxResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolDepositTxResponse.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolDepositTxResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAOrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IACzC;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,qBAAqB,CAAC;CACpC;AAED;;GAEG;AACH,wBAAgB,sCAAsC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,4BAA4B,CAE3G;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,GAAG,4BAA4B,CAE5F;AAED,wBAAgB,yCAAyC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,4BAA4B,CAS/H;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,4BAA4B,CAE1F;AAED,wBAAgB,uCAAuC,CAAC,KAAK,CAAC,EAAE,4BAA4B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU9I"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolDepositTxResponse.js b/dist/cjs/service/src/models/LendingpoolDepositTxResponse.js new file mode 100644 index 0000000..aaf8e63 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolDepositTxResponse.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfLendingpoolDepositTxResponse = instanceOfLendingpoolDepositTxResponse; +exports.LendingpoolDepositTxResponseFromJSON = LendingpoolDepositTxResponseFromJSON; +exports.LendingpoolDepositTxResponseFromJSONTyped = LendingpoolDepositTxResponseFromJSONTyped; +exports.LendingpoolDepositTxResponseToJSON = LendingpoolDepositTxResponseToJSON; +exports.LendingpoolDepositTxResponseToJSONTyped = LendingpoolDepositTxResponseToJSONTyped; +const LendingpoolTxResponse_1 = require("./LendingpoolTxResponse"); +const ChainActivity_1 = require("./ChainActivity"); +/** + * Check if a given object implements the LendingpoolDepositTxResponse interface. + */ +function instanceOfLendingpoolDepositTxResponse(value) { + return true; +} +function LendingpoolDepositTxResponseFromJSON(json) { + return LendingpoolDepositTxResponseFromJSONTyped(json, false); +} +function LendingpoolDepositTxResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'chainActivity': json['chainActivity'] == null ? undefined : (0, ChainActivity_1.ChainActivityFromJSON)(json['chainActivity']), + 'response': json['response'] == null ? undefined : (0, LendingpoolTxResponse_1.LendingpoolTxResponseFromJSON)(json['response']), + }; +} +function LendingpoolDepositTxResponseToJSON(json) { + return LendingpoolDepositTxResponseToJSONTyped(json, false); +} +function LendingpoolDepositTxResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'chainActivity': (0, ChainActivity_1.ChainActivityToJSON)(value['chainActivity']), + 'response': (0, LendingpoolTxResponse_1.LendingpoolTxResponseToJSON)(value['response']), + }; +} +//# sourceMappingURL=LendingpoolDepositTxResponse.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolDepositTxResponse.js.map b/dist/cjs/service/src/models/LendingpoolDepositTxResponse.js.map new file mode 100644 index 0000000..258dfe7 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolDepositTxResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolDepositTxResponse.js","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolDepositTxResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAyCH,wFAEC;AAED,oFAEC;AAED,8FASC;AAED,gFAEC;AAED,0FAUC;AAtED,mEAKiC;AAEjC,mDAKyB;AAsBzB;;GAEG;AACH,SAAgB,sCAAsC,CAAC,KAAa;IAChE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,oCAAoC,CAAC,IAAS;IAC1D,OAAO,yCAAyC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClE,CAAC;AAED,SAAgB,yCAAyC,CAAC,IAAS,EAAE,mBAA4B;IAC7F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qCAAqB,EAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACzG,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qDAA6B,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACrG,CAAC;AACN,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS;IACxD,OAAO,uCAAuC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChE,CAAC;AAED,SAAgB,uCAAuC,CAAC,KAA2C,EAAE,sBAA+B,KAAK;IACrI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,eAAe,EAAE,IAAA,mCAAmB,EAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QAC5D,UAAU,EAAE,IAAA,mDAA2B,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC;KAC7D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolRepayTxRequest.d.ts b/dist/cjs/service/src/models/LendingpoolRepayTxRequest.d.ts new file mode 100644 index 0000000..1836346 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolRepayTxRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LendingpoolRepayTxRequest + */ +export interface LendingpoolRepayTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof LendingpoolRepayTxRequest + */ + user: string; + /** + * + * @type {string} + * @memberof LendingpoolRepayTxRequest + */ + symbol: string; + /** + * The amount to repay in native token units, if not provided, it will be calculated based on the borrow balance + * @type {string} + * @memberof LendingpoolRepayTxRequest + */ + amount?: string; +} +/** + * Check if a given object implements the LendingpoolRepayTxRequest interface. + */ +export declare function instanceOfLendingpoolRepayTxRequest(value: object): value is LendingpoolRepayTxRequest; +export declare function LendingpoolRepayTxRequestFromJSON(json: any): LendingpoolRepayTxRequest; +export declare function LendingpoolRepayTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolRepayTxRequest; +export declare function LendingpoolRepayTxRequestToJSON(json: any): LendingpoolRepayTxRequest; +export declare function LendingpoolRepayTxRequestToJSONTyped(value?: LendingpoolRepayTxRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=LendingpoolRepayTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolRepayTxRequest.d.ts.map b/dist/cjs/service/src/models/LendingpoolRepayTxRequest.d.ts.map new file mode 100644 index 0000000..f74374b --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolRepayTxRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolRepayTxRequest.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolRepayTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,yBAAyB,CAIrG;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,yBAAyB,CAEtF;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,yBAAyB,CAUzH;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,yBAAyB,CAEpF;AAED,wBAAgB,oCAAoC,CAAC,KAAK,CAAC,EAAE,yBAAyB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWxI"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolRepayTxRequest.js b/dist/cjs/service/src/models/LendingpoolRepayTxRequest.js new file mode 100644 index 0000000..780e41d --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolRepayTxRequest.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfLendingpoolRepayTxRequest = instanceOfLendingpoolRepayTxRequest; +exports.LendingpoolRepayTxRequestFromJSON = LendingpoolRepayTxRequestFromJSON; +exports.LendingpoolRepayTxRequestFromJSONTyped = LendingpoolRepayTxRequestFromJSONTyped; +exports.LendingpoolRepayTxRequestToJSON = LendingpoolRepayTxRequestToJSON; +exports.LendingpoolRepayTxRequestToJSONTyped = LendingpoolRepayTxRequestToJSONTyped; +/** + * Check if a given object implements the LendingpoolRepayTxRequest interface. + */ +function instanceOfLendingpoolRepayTxRequest(value) { + if (!('user' in value) || value['user'] === undefined) + return false; + if (!('symbol' in value) || value['symbol'] === undefined) + return false; + return true; +} +function LendingpoolRepayTxRequestFromJSON(json) { + return LendingpoolRepayTxRequestFromJSONTyped(json, false); +} +function LendingpoolRepayTxRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'user': json['user'], + 'symbol': json['symbol'], + 'amount': json['amount'] == null ? undefined : json['amount'], + }; +} +function LendingpoolRepayTxRequestToJSON(json) { + return LendingpoolRepayTxRequestToJSONTyped(json, false); +} +function LendingpoolRepayTxRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'user': value['user'], + 'symbol': value['symbol'], + 'amount': value['amount'], + }; +} +//# sourceMappingURL=LendingpoolRepayTxRequest.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolRepayTxRequest.js.map b/dist/cjs/service/src/models/LendingpoolRepayTxRequest.js.map new file mode 100644 index 0000000..d22fb67 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolRepayTxRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolRepayTxRequest.js","sourceRoot":"","sources":["../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AM,CAAC;QACrB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolRepayTxResponse.d.ts b/dist/cjs/service/src/models/LendingpoolRepayTxResponse.d.ts new file mode 100644 index 0000000..0e548ef --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolRepayTxResponse.d.ts @@ -0,0 +1,41 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LendingpoolTxResponse } from './LendingpoolTxResponse'; +import type { ChainActivity } from './ChainActivity'; +/** + * + * @export + * @interface LendingpoolRepayTxResponse + */ +export interface LendingpoolRepayTxResponse { + /** + * + * @type {ChainActivity} + * @memberof LendingpoolRepayTxResponse + */ + chainActivity?: ChainActivity; + /** + * + * @type {LendingpoolTxResponse} + * @memberof LendingpoolRepayTxResponse + */ + response?: LendingpoolTxResponse; +} +/** + * Check if a given object implements the LendingpoolRepayTxResponse interface. + */ +export declare function instanceOfLendingpoolRepayTxResponse(value: object): value is LendingpoolRepayTxResponse; +export declare function LendingpoolRepayTxResponseFromJSON(json: any): LendingpoolRepayTxResponse; +export declare function LendingpoolRepayTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolRepayTxResponse; +export declare function LendingpoolRepayTxResponseToJSON(json: any): LendingpoolRepayTxResponse; +export declare function LendingpoolRepayTxResponseToJSONTyped(value?: LendingpoolRepayTxResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=LendingpoolRepayTxResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolRepayTxResponse.d.ts.map b/dist/cjs/service/src/models/LendingpoolRepayTxResponse.d.ts.map new file mode 100644 index 0000000..9c62a1c --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolRepayTxResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolRepayTxResponse.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolRepayTxResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAOrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,qBAAqB,CAAC;CACpC;AAED;;GAEG;AACH,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,0BAA0B,CAEvG;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAExF;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,0BAA0B,CAS3H;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAEtF;AAED,wBAAgB,qCAAqC,CAAC,KAAK,CAAC,EAAE,0BAA0B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU1I"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolRepayTxResponse.js b/dist/cjs/service/src/models/LendingpoolRepayTxResponse.js new file mode 100644 index 0000000..214430e --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolRepayTxResponse.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfLendingpoolRepayTxResponse = instanceOfLendingpoolRepayTxResponse; +exports.LendingpoolRepayTxResponseFromJSON = LendingpoolRepayTxResponseFromJSON; +exports.LendingpoolRepayTxResponseFromJSONTyped = LendingpoolRepayTxResponseFromJSONTyped; +exports.LendingpoolRepayTxResponseToJSON = LendingpoolRepayTxResponseToJSON; +exports.LendingpoolRepayTxResponseToJSONTyped = LendingpoolRepayTxResponseToJSONTyped; +const LendingpoolTxResponse_1 = require("./LendingpoolTxResponse"); +const ChainActivity_1 = require("./ChainActivity"); +/** + * Check if a given object implements the LendingpoolRepayTxResponse interface. + */ +function instanceOfLendingpoolRepayTxResponse(value) { + return true; +} +function LendingpoolRepayTxResponseFromJSON(json) { + return LendingpoolRepayTxResponseFromJSONTyped(json, false); +} +function LendingpoolRepayTxResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'chainActivity': json['chainActivity'] == null ? undefined : (0, ChainActivity_1.ChainActivityFromJSON)(json['chainActivity']), + 'response': json['response'] == null ? undefined : (0, LendingpoolTxResponse_1.LendingpoolTxResponseFromJSON)(json['response']), + }; +} +function LendingpoolRepayTxResponseToJSON(json) { + return LendingpoolRepayTxResponseToJSONTyped(json, false); +} +function LendingpoolRepayTxResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'chainActivity': (0, ChainActivity_1.ChainActivityToJSON)(value['chainActivity']), + 'response': (0, LendingpoolTxResponse_1.LendingpoolTxResponseToJSON)(value['response']), + }; +} +//# sourceMappingURL=LendingpoolRepayTxResponse.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolRepayTxResponse.js.map b/dist/cjs/service/src/models/LendingpoolRepayTxResponse.js.map new file mode 100644 index 0000000..1f81322 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolRepayTxResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolRepayTxResponse.js","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolRepayTxResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAyCH,oFAEC;AAED,gFAEC;AAED,0FASC;AAED,4EAEC;AAED,sFAUC;AAtED,mEAKiC;AAEjC,mDAKyB;AAsBzB;;GAEG;AACH,SAAgB,oCAAoC,CAAC,KAAa;IAC9D,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS;IACxD,OAAO,uCAAuC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChE,CAAC;AAED,SAAgB,uCAAuC,CAAC,IAAS,EAAE,mBAA4B;IAC3F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qCAAqB,EAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACzG,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qDAA6B,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACrG,CAAC;AACN,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS;IACtD,OAAO,qCAAqC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9D,CAAC;AAED,SAAgB,qCAAqC,CAAC,KAAyC,EAAE,sBAA+B,KAAK;IACjI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,eAAe,EAAE,IAAA,mCAAmB,EAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QAC5D,UAAU,EAAE,IAAA,mDAA2B,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC;KAC7D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolStats.d.ts b/dist/cjs/service/src/models/LendingpoolStats.d.ts new file mode 100644 index 0000000..c763835 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolStats.d.ts @@ -0,0 +1,45 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LendingpoolStats + */ +export interface LendingpoolStats { + /** + * + * @type {any} + * @memberof LendingpoolStats + */ + totalAvailable: any; + /** + * + * @type {any} + * @memberof LendingpoolStats + */ + totalBorrows: any; + /** + * + * @type {any} + * @memberof LendingpoolStats + */ + totalMarketSize: any; +} +/** + * Check if a given object implements the LendingpoolStats interface. + */ +export declare function instanceOfLendingpoolStats(value: object): value is LendingpoolStats; +export declare function LendingpoolStatsFromJSON(json: any): LendingpoolStats; +export declare function LendingpoolStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolStats; +export declare function LendingpoolStatsToJSON(json: any): LendingpoolStats; +export declare function LendingpoolStatsToJSONTyped(value?: LendingpoolStats | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=LendingpoolStats.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolStats.d.ts.map b/dist/cjs/service/src/models/LendingpoolStats.d.ts.map new file mode 100644 index 0000000..929d05d --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolStats.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolStats.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolStats.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,cAAc,EAAE,GAAG,CAAC;IACpB;;;;OAIG;IACH,YAAY,EAAE,GAAG,CAAC;IAClB;;;;OAIG;IACH,eAAe,EAAE,GAAG,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAKnF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAUvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWtH"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolStats.js b/dist/cjs/service/src/models/LendingpoolStats.js new file mode 100644 index 0000000..a0f8299 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolStats.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfLendingpoolStats = instanceOfLendingpoolStats; +exports.LendingpoolStatsFromJSON = LendingpoolStatsFromJSON; +exports.LendingpoolStatsFromJSONTyped = LendingpoolStatsFromJSONTyped; +exports.LendingpoolStatsToJSON = LendingpoolStatsToJSON; +exports.LendingpoolStatsToJSONTyped = LendingpoolStatsToJSONTyped; +/** + * Check if a given object implements the LendingpoolStats interface. + */ +function instanceOfLendingpoolStats(value) { + if (!('totalAvailable' in value) || value['totalAvailable'] === undefined) + return false; + if (!('totalBorrows' in value) || value['totalBorrows'] === undefined) + return false; + if (!('totalMarketSize' in value) || value['totalMarketSize'] === undefined) + return false; + return true; +} +function LendingpoolStatsFromJSON(json) { + return LendingpoolStatsFromJSONTyped(json, false); +} +function LendingpoolStatsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'totalAvailable': json['totalAvailable'], + 'totalBorrows': json['totalBorrows'], + 'totalMarketSize': json['totalMarketSize'], + }; +} +function LendingpoolStatsToJSON(json) { + return LendingpoolStatsToJSONTyped(json, false); +} +function LendingpoolStatsToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'totalAvailable': value['totalAvailable'], + 'totalBorrows': value['totalBorrows'], + 'totalMarketSize': value['totalMarketSize'], + }; +} +//# sourceMappingURL=LendingpoolStats.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolStats.js.map b/dist/cjs/service/src/models/LendingpoolStats.js.map new file mode 100644 index 0000000..c8d0bc4 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolStats.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolStats.js","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolStats.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,gEAKC;AAED,4DAEC;AAED,sEAUC;AAED,wDAEC;AAED,kEAWC;AAzCD;;GAEG;AACH,SAAgB,0BAA0B,CAAC,KAAa;IACpD,IAAI,CAAC,CAAC,gBAAgB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,gBAAgB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxF,IAAI,CAAC,CAAC,cAAc,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,cAAc,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpF,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1F,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS,EAAE,mBAA4B;IACjF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,CAAC;QACxC,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC;QACpC,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,CAAC;KAC7C,CAAC;AACN,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS;IAC5C,OAAO,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,2BAA2B,CAAC,KAA+B,EAAE,sBAA+B,KAAK;IAC7G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,CAAC;QACzC,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC;QACrC,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;KAC9C,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolTxResponse.d.ts b/dist/cjs/service/src/models/LendingpoolTxResponse.d.ts new file mode 100644 index 0000000..2d7dae4 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolTxResponse.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LendingpoolTxResponse + */ +export interface LendingpoolTxResponse { + /** + * The health factor after the deposit + * @type {string} + * @memberof LendingpoolTxResponse + */ + nextHealthFactor?: string; +} +/** + * Check if a given object implements the LendingpoolTxResponse interface. + */ +export declare function instanceOfLendingpoolTxResponse(value: object): value is LendingpoolTxResponse; +export declare function LendingpoolTxResponseFromJSON(json: any): LendingpoolTxResponse; +export declare function LendingpoolTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolTxResponse; +export declare function LendingpoolTxResponseToJSON(json: any): LendingpoolTxResponse; +export declare function LendingpoolTxResponseToJSONTyped(value?: LendingpoolTxResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=LendingpoolTxResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolTxResponse.d.ts.map b/dist/cjs/service/src/models/LendingpoolTxResponse.d.ts.map new file mode 100644 index 0000000..92c4bc3 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolTxResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolTxResponse.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolTxResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAE7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAQjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAShI"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolTxResponse.js b/dist/cjs/service/src/models/LendingpoolTxResponse.js new file mode 100644 index 0000000..109ffcb --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolTxResponse.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfLendingpoolTxResponse = instanceOfLendingpoolTxResponse; +exports.LendingpoolTxResponseFromJSON = LendingpoolTxResponseFromJSON; +exports.LendingpoolTxResponseFromJSONTyped = LendingpoolTxResponseFromJSONTyped; +exports.LendingpoolTxResponseToJSON = LendingpoolTxResponseToJSON; +exports.LendingpoolTxResponseToJSONTyped = LendingpoolTxResponseToJSONTyped; +/** + * Check if a given object implements the LendingpoolTxResponse interface. + */ +function instanceOfLendingpoolTxResponse(value) { + return true; +} +function LendingpoolTxResponseFromJSON(json) { + return LendingpoolTxResponseFromJSONTyped(json, false); +} +function LendingpoolTxResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'nextHealthFactor': json['nextHealthFactor'] == null ? undefined : json['nextHealthFactor'], + }; +} +function LendingpoolTxResponseToJSON(json) { + return LendingpoolTxResponseToJSONTyped(json, false); +} +function LendingpoolTxResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'nextHealthFactor': value['nextHealthFactor'], + }; +} +//# sourceMappingURL=LendingpoolTxResponse.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolTxResponse.js.map b/dist/cjs/service/src/models/LendingpoolTxResponse.js.map new file mode 100644 index 0000000..fe47923 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolTxResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolTxResponse.js","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolTxResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,0EAEC;AAED,sEAEC;AAED,gFAQC;AAED,kEAEC;AAED,4EASC;AAlCD;;GAEG;AACH,SAAgB,+BAA+B,CAAC,KAAa;IACzD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC;KAC9F,CAAC;AACN,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,KAAoC,EAAE,sBAA+B,KAAK;IACvH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,kBAAkB,EAAE,KAAK,CAAC,kBAAkB,CAAC;KAChD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.d.ts b/dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.d.ts new file mode 100644 index 0000000..f21bbd7 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LendingpoolUseAssetAsCollateralTxRequest + */ +export interface LendingpoolUseAssetAsCollateralTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof LendingpoolUseAssetAsCollateralTxRequest + */ + user: string; + /** + * Symbol of asset + * @type {string} + * @memberof LendingpoolUseAssetAsCollateralTxRequest + */ + symbol: string; + /** + * Enable or disable the asset as collateral + * @type {boolean} + * @memberof LendingpoolUseAssetAsCollateralTxRequest + */ + enabled: boolean; +} +/** + * Check if a given object implements the LendingpoolUseAssetAsCollateralTxRequest interface. + */ +export declare function instanceOfLendingpoolUseAssetAsCollateralTxRequest(value: object): value is LendingpoolUseAssetAsCollateralTxRequest; +export declare function LendingpoolUseAssetAsCollateralTxRequestFromJSON(json: any): LendingpoolUseAssetAsCollateralTxRequest; +export declare function LendingpoolUseAssetAsCollateralTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolUseAssetAsCollateralTxRequest; +export declare function LendingpoolUseAssetAsCollateralTxRequestToJSON(json: any): LendingpoolUseAssetAsCollateralTxRequest; +export declare function LendingpoolUseAssetAsCollateralTxRequestToJSONTyped(value?: LendingpoolUseAssetAsCollateralTxRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=LendingpoolUseAssetAsCollateralTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.d.ts.map b/dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.d.ts.map new file mode 100644 index 0000000..e70c65b --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolUseAssetAsCollateralTxRequest.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,wCAAwC;IACrD;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,kDAAkD,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,wCAAwC,CAKnI;AAED,wBAAgB,gDAAgD,CAAC,IAAI,EAAE,GAAG,GAAG,wCAAwC,CAEpH;AAED,wBAAgB,qDAAqD,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,wCAAwC,CAUvJ;AAED,wBAAgB,8CAA8C,CAAC,IAAI,EAAE,GAAG,GAAG,wCAAwC,CAElH;AAED,wBAAgB,mDAAmD,CAAC,KAAK,CAAC,EAAE,wCAAwC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWtK"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.js b/dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.js new file mode 100644 index 0000000..ff59c0e --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfLendingpoolUseAssetAsCollateralTxRequest = instanceOfLendingpoolUseAssetAsCollateralTxRequest; +exports.LendingpoolUseAssetAsCollateralTxRequestFromJSON = LendingpoolUseAssetAsCollateralTxRequestFromJSON; +exports.LendingpoolUseAssetAsCollateralTxRequestFromJSONTyped = LendingpoolUseAssetAsCollateralTxRequestFromJSONTyped; +exports.LendingpoolUseAssetAsCollateralTxRequestToJSON = LendingpoolUseAssetAsCollateralTxRequestToJSON; +exports.LendingpoolUseAssetAsCollateralTxRequestToJSONTyped = LendingpoolUseAssetAsCollateralTxRequestToJSONTyped; +/** + * Check if a given object implements the LendingpoolUseAssetAsCollateralTxRequest interface. + */ +function instanceOfLendingpoolUseAssetAsCollateralTxRequest(value) { + if (!('user' in value) || value['user'] === undefined) + return false; + if (!('symbol' in value) || value['symbol'] === undefined) + return false; + if (!('enabled' in value) || value['enabled'] === undefined) + return false; + return true; +} +function LendingpoolUseAssetAsCollateralTxRequestFromJSON(json) { + return LendingpoolUseAssetAsCollateralTxRequestFromJSONTyped(json, false); +} +function LendingpoolUseAssetAsCollateralTxRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'user': json['user'], + 'symbol': json['symbol'], + 'enabled': json['enabled'], + }; +} +function LendingpoolUseAssetAsCollateralTxRequestToJSON(json) { + return LendingpoolUseAssetAsCollateralTxRequestToJSONTyped(json, false); +} +function LendingpoolUseAssetAsCollateralTxRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'user': value['user'], + 'symbol': value['symbol'], + 'enabled': value['enabled'], + }; +} +//# sourceMappingURL=LendingpoolUseAssetAsCollateralTxRequest.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.js.map b/dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.js.map new file mode 100644 index 0000000..d96f898 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolUseAssetAsCollateralTxRequest.js","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolUseAssetAsCollateralTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,gHAKC;AAED,4GAEC;AAED,sHAUC;AAED,wGAEC;AAED,kHAWC;AAzCD;;GAEG;AACH,SAAgB,kDAAkD,CAAC,KAAa;IAC5E,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,gDAAgD,CAAC,IAAS;IACtE,OAAO,qDAAqD,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED,SAAgB,qDAAqD,CAAC,IAAS,EAAE,mBAA4B;IACzG,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AAED,SAAgB,8CAA8C,CAAC,IAAS;IACpE,OAAO,mDAAmD,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5E,CAAC;AAED,SAAgB,mDAAmD,CAAC,KAAuD,EAAE,sBAA+B,KAAK;IAC7J,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.d.ts b/dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.d.ts new file mode 100644 index 0000000..68bafd2 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.d.ts @@ -0,0 +1,41 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LendingpoolTxResponse } from './LendingpoolTxResponse'; +import type { ChainActivity } from './ChainActivity'; +/** + * + * @export + * @interface LendingpoolUseAssetAsCollateralTxResponse + */ +export interface LendingpoolUseAssetAsCollateralTxResponse { + /** + * + * @type {ChainActivity} + * @memberof LendingpoolUseAssetAsCollateralTxResponse + */ + chainActivity?: ChainActivity; + /** + * + * @type {LendingpoolTxResponse} + * @memberof LendingpoolUseAssetAsCollateralTxResponse + */ + response?: LendingpoolTxResponse; +} +/** + * Check if a given object implements the LendingpoolUseAssetAsCollateralTxResponse interface. + */ +export declare function instanceOfLendingpoolUseAssetAsCollateralTxResponse(value: object): value is LendingpoolUseAssetAsCollateralTxResponse; +export declare function LendingpoolUseAssetAsCollateralTxResponseFromJSON(json: any): LendingpoolUseAssetAsCollateralTxResponse; +export declare function LendingpoolUseAssetAsCollateralTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolUseAssetAsCollateralTxResponse; +export declare function LendingpoolUseAssetAsCollateralTxResponseToJSON(json: any): LendingpoolUseAssetAsCollateralTxResponse; +export declare function LendingpoolUseAssetAsCollateralTxResponseToJSONTyped(value?: LendingpoolUseAssetAsCollateralTxResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=LendingpoolUseAssetAsCollateralTxResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.d.ts.map b/dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.d.ts.map new file mode 100644 index 0000000..fcf2221 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolUseAssetAsCollateralTxResponse.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAOrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,yCAAyC;IACtD;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,qBAAqB,CAAC;CACpC;AAED;;GAEG;AACH,wBAAgB,mDAAmD,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,yCAAyC,CAErI;AAED,wBAAgB,iDAAiD,CAAC,IAAI,EAAE,GAAG,GAAG,yCAAyC,CAEtH;AAED,wBAAgB,sDAAsD,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,yCAAyC,CASzJ;AAED,wBAAgB,+CAA+C,CAAC,IAAI,EAAE,GAAG,GAAG,yCAAyC,CAEpH;AAED,wBAAgB,oDAAoD,CAAC,KAAK,CAAC,EAAE,yCAAyC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUxK"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.js b/dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.js new file mode 100644 index 0000000..918af8b --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfLendingpoolUseAssetAsCollateralTxResponse = instanceOfLendingpoolUseAssetAsCollateralTxResponse; +exports.LendingpoolUseAssetAsCollateralTxResponseFromJSON = LendingpoolUseAssetAsCollateralTxResponseFromJSON; +exports.LendingpoolUseAssetAsCollateralTxResponseFromJSONTyped = LendingpoolUseAssetAsCollateralTxResponseFromJSONTyped; +exports.LendingpoolUseAssetAsCollateralTxResponseToJSON = LendingpoolUseAssetAsCollateralTxResponseToJSON; +exports.LendingpoolUseAssetAsCollateralTxResponseToJSONTyped = LendingpoolUseAssetAsCollateralTxResponseToJSONTyped; +const LendingpoolTxResponse_1 = require("./LendingpoolTxResponse"); +const ChainActivity_1 = require("./ChainActivity"); +/** + * Check if a given object implements the LendingpoolUseAssetAsCollateralTxResponse interface. + */ +function instanceOfLendingpoolUseAssetAsCollateralTxResponse(value) { + return true; +} +function LendingpoolUseAssetAsCollateralTxResponseFromJSON(json) { + return LendingpoolUseAssetAsCollateralTxResponseFromJSONTyped(json, false); +} +function LendingpoolUseAssetAsCollateralTxResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'chainActivity': json['chainActivity'] == null ? undefined : (0, ChainActivity_1.ChainActivityFromJSON)(json['chainActivity']), + 'response': json['response'] == null ? undefined : (0, LendingpoolTxResponse_1.LendingpoolTxResponseFromJSON)(json['response']), + }; +} +function LendingpoolUseAssetAsCollateralTxResponseToJSON(json) { + return LendingpoolUseAssetAsCollateralTxResponseToJSONTyped(json, false); +} +function LendingpoolUseAssetAsCollateralTxResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'chainActivity': (0, ChainActivity_1.ChainActivityToJSON)(value['chainActivity']), + 'response': (0, LendingpoolTxResponse_1.LendingpoolTxResponseToJSON)(value['response']), + }; +} +//# sourceMappingURL=LendingpoolUseAssetAsCollateralTxResponse.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.js.map b/dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.js.map new file mode 100644 index 0000000..e82de4d --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolUseAssetAsCollateralTxResponse.js","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolUseAssetAsCollateralTxResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAyCH,kHAEC;AAED,8GAEC;AAED,wHASC;AAED,0GAEC;AAED,oHAUC;AAtED,mEAKiC;AAEjC,mDAKyB;AAsBzB;;GAEG;AACH,SAAgB,mDAAmD,CAAC,KAAa;IAC7E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,iDAAiD,CAAC,IAAS;IACvE,OAAO,sDAAsD,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/E,CAAC;AAED,SAAgB,sDAAsD,CAAC,IAAS,EAAE,mBAA4B;IAC1G,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qCAAqB,EAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACzG,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qDAA6B,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACrG,CAAC;AACN,CAAC;AAED,SAAgB,+CAA+C,CAAC,IAAS;IACrE,OAAO,oDAAoD,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7E,CAAC;AAED,SAAgB,oDAAoD,CAAC,KAAwD,EAAE,sBAA+B,KAAK;IAC/J,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,eAAe,EAAE,IAAA,mCAAmB,EAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QAC5D,UAAU,EAAE,IAAA,mDAA2B,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC;KAC7D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolWithdrawTxRequest.d.ts b/dist/cjs/service/src/models/LendingpoolWithdrawTxRequest.d.ts new file mode 100644 index 0000000..f5f11ff --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolWithdrawTxRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LendingpoolWithdrawTxRequest + */ +export interface LendingpoolWithdrawTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof LendingpoolWithdrawTxRequest + */ + user: string; + /** + * + * @type {string} + * @memberof LendingpoolWithdrawTxRequest + */ + symbol: string; + /** + * The amount to withdraw in native token units, if not provided, it will be calculated based on the deposit balance + * @type {string} + * @memberof LendingpoolWithdrawTxRequest + */ + amount?: string; +} +/** + * Check if a given object implements the LendingpoolWithdrawTxRequest interface. + */ +export declare function instanceOfLendingpoolWithdrawTxRequest(value: object): value is LendingpoolWithdrawTxRequest; +export declare function LendingpoolWithdrawTxRequestFromJSON(json: any): LendingpoolWithdrawTxRequest; +export declare function LendingpoolWithdrawTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolWithdrawTxRequest; +export declare function LendingpoolWithdrawTxRequestToJSON(json: any): LendingpoolWithdrawTxRequest; +export declare function LendingpoolWithdrawTxRequestToJSONTyped(value?: LendingpoolWithdrawTxRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=LendingpoolWithdrawTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolWithdrawTxRequest.d.ts.map b/dist/cjs/service/src/models/LendingpoolWithdrawTxRequest.d.ts.map new file mode 100644 index 0000000..4c89f6b --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolWithdrawTxRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolWithdrawTxRequest.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolWithdrawTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IACzC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,sCAAsC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,4BAA4B,CAI3G;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,GAAG,4BAA4B,CAE5F;AAED,wBAAgB,yCAAyC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,4BAA4B,CAU/H;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,4BAA4B,CAE1F;AAED,wBAAgB,uCAAuC,CAAC,KAAK,CAAC,EAAE,4BAA4B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW9I"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolWithdrawTxRequest.js b/dist/cjs/service/src/models/LendingpoolWithdrawTxRequest.js new file mode 100644 index 0000000..e9deaec --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolWithdrawTxRequest.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfLendingpoolWithdrawTxRequest = instanceOfLendingpoolWithdrawTxRequest; +exports.LendingpoolWithdrawTxRequestFromJSON = LendingpoolWithdrawTxRequestFromJSON; +exports.LendingpoolWithdrawTxRequestFromJSONTyped = LendingpoolWithdrawTxRequestFromJSONTyped; +exports.LendingpoolWithdrawTxRequestToJSON = LendingpoolWithdrawTxRequestToJSON; +exports.LendingpoolWithdrawTxRequestToJSONTyped = LendingpoolWithdrawTxRequestToJSONTyped; +/** + * Check if a given object implements the LendingpoolWithdrawTxRequest interface. + */ +function instanceOfLendingpoolWithdrawTxRequest(value) { + if (!('user' in value) || value['user'] === undefined) + return false; + if (!('symbol' in value) || value['symbol'] === undefined) + return false; + return true; +} +function LendingpoolWithdrawTxRequestFromJSON(json) { + return LendingpoolWithdrawTxRequestFromJSONTyped(json, false); +} +function LendingpoolWithdrawTxRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'user': json['user'], + 'symbol': json['symbol'], + 'amount': json['amount'] == null ? undefined : json['amount'], + }; +} +function LendingpoolWithdrawTxRequestToJSON(json) { + return LendingpoolWithdrawTxRequestToJSONTyped(json, false); +} +function LendingpoolWithdrawTxRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'user': value['user'], + 'symbol': value['symbol'], + 'amount': value['amount'], + }; +} +//# sourceMappingURL=LendingpoolWithdrawTxRequest.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolWithdrawTxRequest.js.map b/dist/cjs/service/src/models/LendingpoolWithdrawTxRequest.js.map new file mode 100644 index 0000000..81cfb10 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolWithdrawTxRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolWithdrawTxRequest.js","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolWithdrawTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,wFAIC;AAED,oFAEC;AAED,8FAUC;AAED,gFAEC;AAED,0FAWC;AAxCD;;GAEG;AACH,SAAgB,sCAAsC,CAAC,KAAa;IAChE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,oCAAoC,CAAC,IAAS;IAC1D,OAAO,yCAAyC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClE,CAAC;AAED,SAAgB,yCAAyC,CAAC,IAAS,EAAE,mBAA4B;IAC7F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS;IACxD,OAAO,uCAAuC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChE,CAAC;AAED,SAAgB,uCAAuC,CAAC,KAA2C,EAAE,sBAA+B,KAAK;IACrI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolWithdrawTxResponse.d.ts b/dist/cjs/service/src/models/LendingpoolWithdrawTxResponse.d.ts new file mode 100644 index 0000000..9af5c9a --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolWithdrawTxResponse.d.ts @@ -0,0 +1,41 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LendingpoolTxResponse } from './LendingpoolTxResponse'; +import type { ChainActivity } from './ChainActivity'; +/** + * + * @export + * @interface LendingpoolWithdrawTxResponse + */ +export interface LendingpoolWithdrawTxResponse { + /** + * + * @type {ChainActivity} + * @memberof LendingpoolWithdrawTxResponse + */ + chainActivity?: ChainActivity; + /** + * + * @type {LendingpoolTxResponse} + * @memberof LendingpoolWithdrawTxResponse + */ + response?: LendingpoolTxResponse; +} +/** + * Check if a given object implements the LendingpoolWithdrawTxResponse interface. + */ +export declare function instanceOfLendingpoolWithdrawTxResponse(value: object): value is LendingpoolWithdrawTxResponse; +export declare function LendingpoolWithdrawTxResponseFromJSON(json: any): LendingpoolWithdrawTxResponse; +export declare function LendingpoolWithdrawTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LendingpoolWithdrawTxResponse; +export declare function LendingpoolWithdrawTxResponseToJSON(json: any): LendingpoolWithdrawTxResponse; +export declare function LendingpoolWithdrawTxResponseToJSONTyped(value?: LendingpoolWithdrawTxResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=LendingpoolWithdrawTxResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolWithdrawTxResponse.d.ts.map b/dist/cjs/service/src/models/LendingpoolWithdrawTxResponse.d.ts.map new file mode 100644 index 0000000..5c0521b --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolWithdrawTxResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolWithdrawTxResponse.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolWithdrawTxResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAOrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,qBAAqB,CAAC;CACpC;AAED;;GAEG;AACH,wBAAgB,uCAAuC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,6BAA6B,CAE7G;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE9F;AAED,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,6BAA6B,CASjI;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE5F;AAED,wBAAgB,wCAAwC,CAAC,KAAK,CAAC,EAAE,6BAA6B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUhJ"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolWithdrawTxResponse.js b/dist/cjs/service/src/models/LendingpoolWithdrawTxResponse.js new file mode 100644 index 0000000..67eab2d --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolWithdrawTxResponse.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfLendingpoolWithdrawTxResponse = instanceOfLendingpoolWithdrawTxResponse; +exports.LendingpoolWithdrawTxResponseFromJSON = LendingpoolWithdrawTxResponseFromJSON; +exports.LendingpoolWithdrawTxResponseFromJSONTyped = LendingpoolWithdrawTxResponseFromJSONTyped; +exports.LendingpoolWithdrawTxResponseToJSON = LendingpoolWithdrawTxResponseToJSON; +exports.LendingpoolWithdrawTxResponseToJSONTyped = LendingpoolWithdrawTxResponseToJSONTyped; +const LendingpoolTxResponse_1 = require("./LendingpoolTxResponse"); +const ChainActivity_1 = require("./ChainActivity"); +/** + * Check if a given object implements the LendingpoolWithdrawTxResponse interface. + */ +function instanceOfLendingpoolWithdrawTxResponse(value) { + return true; +} +function LendingpoolWithdrawTxResponseFromJSON(json) { + return LendingpoolWithdrawTxResponseFromJSONTyped(json, false); +} +function LendingpoolWithdrawTxResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'chainActivity': json['chainActivity'] == null ? undefined : (0, ChainActivity_1.ChainActivityFromJSON)(json['chainActivity']), + 'response': json['response'] == null ? undefined : (0, LendingpoolTxResponse_1.LendingpoolTxResponseFromJSON)(json['response']), + }; +} +function LendingpoolWithdrawTxResponseToJSON(json) { + return LendingpoolWithdrawTxResponseToJSONTyped(json, false); +} +function LendingpoolWithdrawTxResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'chainActivity': (0, ChainActivity_1.ChainActivityToJSON)(value['chainActivity']), + 'response': (0, LendingpoolTxResponse_1.LendingpoolTxResponseToJSON)(value['response']), + }; +} +//# sourceMappingURL=LendingpoolWithdrawTxResponse.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/LendingpoolWithdrawTxResponse.js.map b/dist/cjs/service/src/models/LendingpoolWithdrawTxResponse.js.map new file mode 100644 index 0000000..f168d41 --- /dev/null +++ b/dist/cjs/service/src/models/LendingpoolWithdrawTxResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LendingpoolWithdrawTxResponse.js","sourceRoot":"","sources":["../../../../../src/service/src/models/LendingpoolWithdrawTxResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAyCH,0FAEC;AAED,sFAEC;AAED,gGASC;AAED,kFAEC;AAED,4FAUC;AAtED,mEAKiC;AAEjC,mDAKyB;AAsBzB;;GAEG;AACH,SAAgB,uCAAuC,CAAC,KAAa;IACjE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qCAAqC,CAAC,IAAS;IAC3D,OAAO,0CAA0C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnE,CAAC;AAED,SAAgB,0CAA0C,CAAC,IAAS,EAAE,mBAA4B;IAC9F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qCAAqB,EAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QACzG,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qDAA6B,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACrG,CAAC;AACN,CAAC;AAED,SAAgB,mCAAmC,CAAC,IAAS;IACzD,OAAO,wCAAwC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjE,CAAC;AAED,SAAgB,wCAAwC,CAAC,KAA4C,EAAE,sBAA+B,KAAK;IACvI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,eAAe,EAAE,IAAA,mCAAmB,EAAC,KAAK,CAAC,eAAe,CAAC,CAAC;QAC5D,UAAU,EAAE,IAAA,mDAA2B,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC;KAC7D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Log.d.ts b/dist/cjs/service/src/models/Log.d.ts new file mode 100644 index 0000000..77c96f2 --- /dev/null +++ b/dist/cjs/service/src/models/Log.d.ts @@ -0,0 +1,96 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Timestamp } from './Timestamp'; +/** + * + * @export + * @interface Log + */ +export interface Log { + /** + * The name of the log + * @type {string} + * @memberof Log + */ + name: string; + /** + * The contract address + * @type {string} + * @memberof Log + */ + contract: string; + /** + * + * @type {Timestamp} + * @memberof Log + */ + timestamp: Timestamp; + /** + * The Ethereum address + * @type {string} + * @memberof Log + */ + address: string; + /** + * The block number + * @type {number} + * @memberof Log + */ + blockNumber: number; + /** + * The transaction hash + * @type {string} + * @memberof Log + */ + txHash: string; + /** + * The block hash + * @type {string} + * @memberof Log + */ + blockHash: string; + /** + * The index + * @type {number} + * @memberof Log + */ + index: number; + /** + * + * @type {Array} + * @memberof Log + */ + topics: Array; + /** + * The data of the log + * @type {string} + * @memberof Log + */ + data: string; + /** + * The decoded log, if available + * @type {{ [key: string]: string | undefined; }} + * @memberof Log + */ + decoded?: { + [key: string]: string | undefined; + }; +} +/** + * Check if a given object implements the Log interface. + */ +export declare function instanceOfLog(value: object): value is Log; +export declare function LogFromJSON(json: any): Log; +export declare function LogFromJSONTyped(json: any, ignoreDiscriminator: boolean): Log; +export declare function LogToJSON(json: any): Log; +export declare function LogToJSONTyped(value?: Log | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=Log.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Log.d.ts.map b/dist/cjs/service/src/models/Log.d.ts.map new file mode 100644 index 0000000..1f6dfbe --- /dev/null +++ b/dist/cjs/service/src/models/Log.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Log.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/Log.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,GAAG;IAChB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CACpD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,GAAG,CAYzD;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAE1C;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,GAAG,CAkB7E;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,GAAG,GAAG,GAAG,CAExC;AAED,wBAAgB,cAAc,CAAC,KAAK,CAAC,EAAE,GAAG,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAmB5F"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Log.js b/dist/cjs/service/src/models/Log.js new file mode 100644 index 0000000..5f3a9ec --- /dev/null +++ b/dist/cjs/service/src/models/Log.js @@ -0,0 +1,90 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfLog = instanceOfLog; +exports.LogFromJSON = LogFromJSON; +exports.LogFromJSONTyped = LogFromJSONTyped; +exports.LogToJSON = LogToJSON; +exports.LogToJSONTyped = LogToJSONTyped; +const Timestamp_1 = require("./Timestamp"); +/** + * Check if a given object implements the Log interface. + */ +function instanceOfLog(value) { + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('contract' in value) || value['contract'] === undefined) + return false; + if (!('timestamp' in value) || value['timestamp'] === undefined) + return false; + if (!('address' in value) || value['address'] === undefined) + return false; + if (!('blockNumber' in value) || value['blockNumber'] === undefined) + return false; + if (!('txHash' in value) || value['txHash'] === undefined) + return false; + if (!('blockHash' in value) || value['blockHash'] === undefined) + return false; + if (!('index' in value) || value['index'] === undefined) + return false; + if (!('topics' in value) || value['topics'] === undefined) + return false; + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function LogFromJSON(json) { + return LogFromJSONTyped(json, false); +} +function LogFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'], + 'contract': json['contract'], + 'timestamp': (0, Timestamp_1.TimestampFromJSON)(json['timestamp']), + 'address': json['address'], + 'blockNumber': json['blockNumber'], + 'txHash': json['txHash'], + 'blockHash': json['blockHash'], + 'index': json['index'], + 'topics': json['topics'], + 'data': json['data'], + 'decoded': json['decoded'] == null ? undefined : json['decoded'], + }; +} +function LogToJSON(json) { + return LogToJSONTyped(json, false); +} +function LogToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'contract': value['contract'], + 'timestamp': (0, Timestamp_1.TimestampToJSON)(value['timestamp']), + 'address': value['address'], + 'blockNumber': value['blockNumber'], + 'txHash': value['txHash'], + 'blockHash': value['blockHash'], + 'index': value['index'], + 'topics': value['topics'], + 'data': value['data'], + 'decoded': value['decoded'], + }; +} +//# sourceMappingURL=Log.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Log.js.map b/dist/cjs/service/src/models/Log.js.map new file mode 100644 index 0000000..d6d4853 --- /dev/null +++ b/dist/cjs/service/src/models/Log.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Log.js","sourceRoot":"","sources":["../../../../../src/service/src/models/Log.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA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AC;QAC7B,WAAW,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAChD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/MethodParameters.d.ts b/dist/cjs/service/src/models/MethodParameters.d.ts new file mode 100644 index 0000000..a199016 --- /dev/null +++ b/dist/cjs/service/src/models/MethodParameters.d.ts @@ -0,0 +1,45 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface MethodParameters + */ +export interface MethodParameters { + /** + * + * @type {string} + * @memberof MethodParameters + */ + to: string; + /** + * + * @type {string} + * @memberof MethodParameters + */ + calldata: string; + /** + * + * @type {string} + * @memberof MethodParameters + */ + value: string; +} +/** + * Check if a given object implements the MethodParameters interface. + */ +export declare function instanceOfMethodParameters(value: object): value is MethodParameters; +export declare function MethodParametersFromJSON(json: any): MethodParameters; +export declare function MethodParametersFromJSONTyped(json: any, ignoreDiscriminator: boolean): MethodParameters; +export declare function MethodParametersToJSON(json: any): MethodParameters; +export declare function MethodParametersToJSONTyped(value?: MethodParameters | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=MethodParameters.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/MethodParameters.d.ts.map b/dist/cjs/service/src/models/MethodParameters.d.ts.map new file mode 100644 index 0000000..fba6fcd --- /dev/null +++ b/dist/cjs/service/src/models/MethodParameters.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"MethodParameters.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/MethodParameters.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAKnF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAUvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWtH"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/MethodParameters.js b/dist/cjs/service/src/models/MethodParameters.js new file mode 100644 index 0000000..0439c64 --- /dev/null +++ b/dist/cjs/service/src/models/MethodParameters.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfMethodParameters = instanceOfMethodParameters; +exports.MethodParametersFromJSON = MethodParametersFromJSON; +exports.MethodParametersFromJSONTyped = MethodParametersFromJSONTyped; +exports.MethodParametersToJSON = MethodParametersToJSON; +exports.MethodParametersToJSONTyped = MethodParametersToJSONTyped; +/** + * Check if a given object implements the MethodParameters interface. + */ +function instanceOfMethodParameters(value) { + if (!('to' in value) || value['to'] === undefined) + return false; + if (!('calldata' in value) || value['calldata'] === undefined) + return false; + if (!('value' in value) || value['value'] === undefined) + return false; + return true; +} +function MethodParametersFromJSON(json) { + return MethodParametersFromJSONTyped(json, false); +} +function MethodParametersFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'to': json['to'], + 'calldata': json['calldata'], + 'value': json['value'], + }; +} +function MethodParametersToJSON(json) { + return MethodParametersToJSONTyped(json, false); +} +function MethodParametersToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'to': value['to'], + 'calldata': value['calldata'], + 'value': value['value'], + }; +} +//# sourceMappingURL=MethodParameters.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/MethodParameters.js.map b/dist/cjs/service/src/models/MethodParameters.js.map new file mode 100644 index 0000000..44a29ec --- /dev/null +++ b/dist/cjs/service/src/models/MethodParameters.js.map @@ -0,0 +1 @@ +{"version":3,"file":"MethodParameters.js","sourceRoot":"","sources":["../../../../../src/service/src/models/MethodParameters.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,gEAKC;AAED,4DAEC;AAED,sEAUC;AAED,wDAEC;AAED,kEAWC;AAzCD;;GAEG;AACH,SAAgB,0BAA0B,CAAC,KAAa;IACpD,IAAI,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChE,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS,EAAE,mBAA4B;IACjF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;QAChB,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;QAC5B,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;KACzB,CAAC;AACN,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS;IAC5C,OAAO,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,2BAA2B,CAAC,KAA+B,EAAE,sBAA+B,KAAK;IAC7G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;QAC7B,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;KAC1B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/ModelError.d.ts b/dist/cjs/service/src/models/ModelError.d.ts new file mode 100644 index 0000000..f25891a --- /dev/null +++ b/dist/cjs/service/src/models/ModelError.d.ts @@ -0,0 +1,39 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ModelError + */ +export interface ModelError { + /** + * Error message + * @type {string} + * @memberof ModelError + */ + msg: string; + /** + * + * @type {Array} + * @memberof ModelError + */ + reasons: Array; +} +/** + * Check if a given object implements the ModelError interface. + */ +export declare function instanceOfModelError(value: object): value is ModelError; +export declare function ModelErrorFromJSON(json: any): ModelError; +export declare function ModelErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelError; +export declare function ModelErrorToJSON(json: any): ModelError; +export declare function ModelErrorToJSONTyped(value?: ModelError | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=ModelError.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/ModelError.d.ts.map b/dist/cjs/service/src/models/ModelError.d.ts.map new file mode 100644 index 0000000..238952f --- /dev/null +++ b/dist/cjs/service/src/models/ModelError.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ModelError.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/ModelError.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAIvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAS3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU1G"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/ModelError.js b/dist/cjs/service/src/models/ModelError.js new file mode 100644 index 0000000..b007721 --- /dev/null +++ b/dist/cjs/service/src/models/ModelError.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfModelError = instanceOfModelError; +exports.ModelErrorFromJSON = ModelErrorFromJSON; +exports.ModelErrorFromJSONTyped = ModelErrorFromJSONTyped; +exports.ModelErrorToJSON = ModelErrorToJSON; +exports.ModelErrorToJSONTyped = ModelErrorToJSONTyped; +/** + * Check if a given object implements the ModelError interface. + */ +function instanceOfModelError(value) { + if (!('msg' in value) || value['msg'] === undefined) + return false; + if (!('reasons' in value) || value['reasons'] === undefined) + return false; + return true; +} +function ModelErrorFromJSON(json) { + return ModelErrorFromJSONTyped(json, false); +} +function ModelErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'msg': json['msg'], + 'reasons': json['reasons'], + }; +} +function ModelErrorToJSON(json) { + return ModelErrorToJSONTyped(json, false); +} +function ModelErrorToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'msg': value['msg'], + 'reasons': value['reasons'], + }; +} +//# sourceMappingURL=ModelError.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/ModelError.js.map b/dist/cjs/service/src/models/ModelError.js.map new file mode 100644 index 0000000..0723c66 --- /dev/null +++ b/dist/cjs/service/src/models/ModelError.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModelError.js","sourceRoot":"","sources":["../../../../../src/service/src/models/ModelError.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,oDAIC;AAED,gDAEC;AAED,0DASC;AAED,4CAEC;AAED,sDAUC;AAtCD;;GAEG;AACH,SAAgB,oBAAoB,CAAC,KAAa;IAC9C,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS,EAAE,mBAA4B;IAC3E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC;QAClB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AAED,SAAgB,gBAAgB,CAAC,IAAS;IACtC,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,qBAAqB,CAAC,KAAyB,EAAE,sBAA+B,KAAK;IACjG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;QACnB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Order.d.ts b/dist/cjs/service/src/models/Order.d.ts new file mode 100644 index 0000000..9a493b5 --- /dev/null +++ b/dist/cjs/service/src/models/Order.d.ts @@ -0,0 +1,102 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { RawDutchAmount } from './RawDutchAmount'; +/** + * + * @export + * @interface Order + */ +export interface Order { + /** + * + * @type {string} + * @memberof Order + */ + quoteId?: string; + /** + * + * @type {Array} + * @memberof Order + */ + outputs: Array; + /** + * + * @type {string} + * @memberof Order + */ + encodedOrder: string; + /** + * + * @type {string} + * @memberof Order + */ + signature: string; + /** + * + * @type {RawDutchAmount} + * @memberof Order + */ + input: RawDutchAmount; + /** + * + * @type {string} + * @memberof Order + */ + orderStatus: OrderOrderStatusEnum; + /** + * + * @type {number} + * @memberof Order + */ + chainId: number; + /** + * + * @type {string} + * @memberof Order + */ + orderHash: string; + /** + * + * @type {string} + * @memberof Order + */ + orderType: OrderOrderTypeEnum; +} +/** + * @export + */ +export declare const OrderOrderStatusEnum: { + readonly OPEN: "open"; + readonly EXPIRED: "expired"; + readonly ERROR: "error"; + readonly CANCELLED: "cancelled"; + readonly FILLED: "filled"; + readonly INSUFFICIENT_FUNDS: "insufficient-funds"; +}; +export type OrderOrderStatusEnum = typeof OrderOrderStatusEnum[keyof typeof OrderOrderStatusEnum]; +/** + * @export + */ +export declare const OrderOrderTypeEnum: { + readonly DUTCH: "dutch"; + readonly LIMIT: "limit"; +}; +export type OrderOrderTypeEnum = typeof OrderOrderTypeEnum[keyof typeof OrderOrderTypeEnum]; +/** + * Check if a given object implements the Order interface. + */ +export declare function instanceOfOrder(value: object): value is Order; +export declare function OrderFromJSON(json: any): Order; +export declare function OrderFromJSONTyped(json: any, ignoreDiscriminator: boolean): Order; +export declare function OrderToJSON(json: any): Order; +export declare function OrderToJSONTyped(value?: Order | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=Order.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Order.d.ts.map b/dist/cjs/service/src/models/Order.d.ts.map new file mode 100644 index 0000000..57300d3 --- /dev/null +++ b/dist/cjs/service/src/models/Order.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Order.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/Order.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAQvD;;;;GAIG;AACH,MAAM,WAAW,KAAK;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;IAC/B;;;;OAIG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,KAAK,EAAE,cAAc,CAAC;IACtB;;;;OAIG;IACH,WAAW,EAAE,oBAAoB,CAAC;IAClC;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,EAAE,kBAAkB,CAAC;CACjC;AAGD;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;CAOvB,CAAC;AACX,MAAM,MAAM,oBAAoB,GAAG,OAAO,oBAAoB,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAElG;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;CAGrB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAG5F;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,KAAK,CAU7D;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,KAAK,CAE9C;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,KAAK,CAgBjF;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,GAAG,GAAG,KAAK,CAE5C;AAED,wBAAgB,gBAAgB,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAiBhG"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Order.js b/dist/cjs/service/src/models/Order.js new file mode 100644 index 0000000..f2ef374 --- /dev/null +++ b/dist/cjs/service/src/models/Order.js @@ -0,0 +1,101 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OrderOrderTypeEnum = exports.OrderOrderStatusEnum = void 0; +exports.instanceOfOrder = instanceOfOrder; +exports.OrderFromJSON = OrderFromJSON; +exports.OrderFromJSONTyped = OrderFromJSONTyped; +exports.OrderToJSON = OrderToJSON; +exports.OrderToJSONTyped = OrderToJSONTyped; +const RawDutchAmount_1 = require("./RawDutchAmount"); +/** + * @export + */ +exports.OrderOrderStatusEnum = { + OPEN: 'open', + EXPIRED: 'expired', + ERROR: 'error', + CANCELLED: 'cancelled', + FILLED: 'filled', + INSUFFICIENT_FUNDS: 'insufficient-funds' +}; +/** + * @export + */ +exports.OrderOrderTypeEnum = { + DUTCH: 'dutch', + LIMIT: 'limit' +}; +/** + * Check if a given object implements the Order interface. + */ +function instanceOfOrder(value) { + if (!('outputs' in value) || value['outputs'] === undefined) + return false; + if (!('encodedOrder' in value) || value['encodedOrder'] === undefined) + return false; + if (!('signature' in value) || value['signature'] === undefined) + return false; + if (!('input' in value) || value['input'] === undefined) + return false; + if (!('orderStatus' in value) || value['orderStatus'] === undefined) + return false; + if (!('chainId' in value) || value['chainId'] === undefined) + return false; + if (!('orderHash' in value) || value['orderHash'] === undefined) + return false; + if (!('orderType' in value) || value['orderType'] === undefined) + return false; + return true; +} +function OrderFromJSON(json) { + return OrderFromJSONTyped(json, false); +} +function OrderFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'quoteId': json['quoteId'] == null ? undefined : json['quoteId'], + 'outputs': (json['outputs'].map(RawDutchAmount_1.RawDutchAmountFromJSON)), + 'encodedOrder': json['encodedOrder'], + 'signature': json['signature'], + 'input': (0, RawDutchAmount_1.RawDutchAmountFromJSON)(json['input']), + 'orderStatus': json['orderStatus'], + 'chainId': json['chainId'], + 'orderHash': json['orderHash'], + 'orderType': json['orderType'], + }; +} +function OrderToJSON(json) { + return OrderToJSONTyped(json, false); +} +function OrderToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'quoteId': value['quoteId'], + 'outputs': (value['outputs'].map(RawDutchAmount_1.RawDutchAmountToJSON)), + 'encodedOrder': value['encodedOrder'], + 'signature': value['signature'], + 'input': (0, RawDutchAmount_1.RawDutchAmountToJSON)(value['input']), + 'orderStatus': value['orderStatus'], + 'chainId': value['chainId'], + 'orderHash': value['orderHash'], + 'orderType': value['orderType'], + }; +} +//# sourceMappingURL=Order.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Order.js.map b/dist/cjs/service/src/models/Order.js.map new file mode 100644 index 0000000..5886097 --- /dev/null +++ b/dist/cjs/service/src/models/Order.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Order.js","sourceRoot":"","sources":["../../../../../src/service/src/models/Order.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAoGH,0CAUC;AAED,sCAEC;AAED,gDAgBC;AAED,kCAEC;AAED,4CAiBC;AAvJD,qDAK0B;AAiE1B;;GAEG;AACU,QAAA,oBAAoB,GAAG;IAChC,IAAI,EAAE,M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KAAK,CAAC,WAAW,CAAC;QAC/B,OAAO,EAAE,IAAA,qCAAoB,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC7C,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;KAClC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/OrderInfo.d.ts b/dist/cjs/service/src/models/OrderInfo.d.ts new file mode 100644 index 0000000..c361831 --- /dev/null +++ b/dist/cjs/service/src/models/OrderInfo.d.ts @@ -0,0 +1,113 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Timestamp } from './Timestamp'; +import type { DutchAmount } from './DutchAmount'; +/** + * + * @export + * @interface OrderInfo + */ +export interface OrderInfo { + /** + * + * @type {number} + * @memberof OrderInfo + */ + chainId: number; + /** + * + * @type {string} + * @memberof OrderInfo + */ + permit2Address: string; + /** + * + * @type {string} + * @memberof OrderInfo + */ + reactor: string; + /** + * + * @type {string} + * @memberof OrderInfo + */ + swapper: string; + /** + * + * @type {string} + * @memberof OrderInfo + */ + nonce: string; + /** + * + * @type {Timestamp} + * @memberof OrderInfo + */ + deadline: Timestamp; + /** + * + * @type {string} + * @memberof OrderInfo + */ + additionalValidationContract: string; + /** + * + * @type {string} + * @memberof OrderInfo + */ + additionalValidationData: string; + /** + * + * @type {Timestamp} + * @memberof OrderInfo + */ + decayStartTime: Timestamp; + /** + * + * @type {Timestamp} + * @memberof OrderInfo + */ + decayEndTime: Timestamp; + /** + * + * @type {string} + * @memberof OrderInfo + */ + exclusiveFiller: string; + /** + * + * @type {number} + * @memberof OrderInfo + */ + exclusivityOverrideBps: number; + /** + * + * @type {DutchAmount} + * @memberof OrderInfo + */ + input: DutchAmount; + /** + * + * @type {Array} + * @memberof OrderInfo + */ + outputs: Array; +} +/** + * Check if a given object implements the OrderInfo interface. + */ +export declare function instanceOfOrderInfo(value: object): value is OrderInfo; +export declare function OrderInfoFromJSON(json: any): OrderInfo; +export declare function OrderInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderInfo; +export declare function OrderInfoToJSON(json: any): OrderInfo; +export declare function OrderInfoToJSONTyped(value?: OrderInfo | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=OrderInfo.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/OrderInfo.d.ts.map b/dist/cjs/service/src/models/OrderInfo.d.ts.map new file mode 100644 index 0000000..43389e7 --- /dev/null +++ b/dist/cjs/service/src/models/OrderInfo.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"OrderInfo.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/OrderInfo.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAQjD;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;;OAIG;IACH,4BAA4B,EAAE,MAAM,CAAC;IACrC;;;;OAIG;IACH,wBAAwB,EAAE,MAAM,CAAC;IACjC;;;;OAIG;IACH,cAAc,EAAE,SAAS,CAAC;IAC1B;;;;OAIG;IACH,YAAY,EAAE,SAAS,CAAC;IACxB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,KAAK,EAAE,WAAW,CAAC;IACnB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;CAC/B;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAgBrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAqBzF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAsBxG"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/OrderInfo.js b/dist/cjs/service/src/models/OrderInfo.js new file mode 100644 index 0000000..adeb01f --- /dev/null +++ b/dist/cjs/service/src/models/OrderInfo.js @@ -0,0 +1,105 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfOrderInfo = instanceOfOrderInfo; +exports.OrderInfoFromJSON = OrderInfoFromJSON; +exports.OrderInfoFromJSONTyped = OrderInfoFromJSONTyped; +exports.OrderInfoToJSON = OrderInfoToJSON; +exports.OrderInfoToJSONTyped = OrderInfoToJSONTyped; +const Timestamp_1 = require("./Timestamp"); +const DutchAmount_1 = require("./DutchAmount"); +/** + * Check if a given object implements the OrderInfo interface. + */ +function instanceOfOrderInfo(value) { + if (!('chainId' in value) || value['chainId'] === undefined) + return false; + if (!('permit2Address' in value) || value['permit2Address'] === undefined) + return false; + if (!('reactor' in value) || value['reactor'] === undefined) + return false; + if (!('swapper' in value) || value['swapper'] === undefined) + return false; + if (!('nonce' in value) || value['nonce'] === undefined) + return false; + if (!('deadline' in value) || value['deadline'] === undefined) + return false; + if (!('additionalValidationContract' in value) || value['additionalValidationContract'] === undefined) + return false; + if (!('additionalValidationData' in value) || value['additionalValidationData'] === undefined) + return false; + if (!('decayStartTime' in value) || value['decayStartTime'] === undefined) + return false; + if (!('decayEndTime' in value) || value['decayEndTime'] === undefined) + return false; + if (!('exclusiveFiller' in value) || value['exclusiveFiller'] === undefined) + return false; + if (!('exclusivityOverrideBps' in value) || value['exclusivityOverrideBps'] === undefined) + return false; + if (!('input' in value) || value['input'] === undefined) + return false; + if (!('outputs' in value) || value['outputs'] === undefined) + return false; + return true; +} +function OrderInfoFromJSON(json) { + return OrderInfoFromJSONTyped(json, false); +} +function OrderInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'chainId': json['chainId'], + 'permit2Address': json['permit2Address'], + 'reactor': json['reactor'], + 'swapper': json['swapper'], + 'nonce': json['nonce'], + 'deadline': (0, Timestamp_1.TimestampFromJSON)(json['deadline']), + 'additionalValidationContract': json['additionalValidationContract'], + 'additionalValidationData': json['additionalValidationData'], + 'decayStartTime': (0, Timestamp_1.TimestampFromJSON)(json['decayStartTime']), + 'decayEndTime': (0, Timestamp_1.TimestampFromJSON)(json['decayEndTime']), + 'exclusiveFiller': json['exclusiveFiller'], + 'exclusivityOverrideBps': json['exclusivityOverrideBps'], + 'input': (0, DutchAmount_1.DutchAmountFromJSON)(json['input']), + 'outputs': (json['outputs'].map(DutchAmount_1.DutchAmountFromJSON)), + }; +} +function OrderInfoToJSON(json) { + return OrderInfoToJSONTyped(json, false); +} +function OrderInfoToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'chainId': value['chainId'], + 'permit2Address': value['permit2Address'], + 'reactor': value['reactor'], + 'swapper': value['swapper'], + 'nonce': value['nonce'], + 'deadline': (0, Timestamp_1.TimestampToJSON)(value['deadline']), + 'additionalValidationContract': value['additionalValidationContract'], + 'additionalValidationData': value['additionalValidationData'], + 'decayStartTime': (0, Timestamp_1.TimestampToJSON)(value['decayStartTime']), + 'decayEndTime': (0, Timestamp_1.TimestampToJSON)(value['decayEndTime']), + 'exclusiveFiller': value['exclusiveFiller'], + 'exclusivityOverrideBps': value['exclusivityOverrideBps'], + 'input': (0, DutchAmount_1.DutchAmountToJSON)(value['input']), + 'outputs': (value['outputs'].map(DutchAmount_1.DutchAmountToJSON)), + }; +} +//# sourceMappingURL=OrderInfo.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/OrderInfo.js.map b/dist/cjs/service/src/models/OrderInfo.js.map new file mode 100644 index 0000000..3e031ea --- /dev/null +++ b/dist/cjs/service/src/models/OrderInfo.js.map @@ -0,0 +1 @@ +{"version":3,"file":"OrderInfo.js","sourceRoot":"","sources":["../../../../../src/service/src/models/OrderInfo.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAiHH,kDAgBC;AAED,8CAEC;AAED,wDAqBC;AAED,0CAEC;AAED,oDAsBC;AApLD,2CAKqB;AAErB,+CAKuB;AA8FvB;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAAa;IAC7C,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,gBAAgB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,gBAAgB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxF,IAAI,CAAC,CAAC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AgB,eAAe,CAAC,IAAS;IACrC,OAAO,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAwB,EAAE,sBAA+B,KAAK;IAC/F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,CAAC;QACzC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,UAAU,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAC9C,8BAA8B,EAAE,KAAK,CAAC,8BAA8B,CAAC;QACrE,0BAA0B,EAAE,KAAK,CAAC,0BAA0B,CAAC;QAC7D,gBAAgB,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,gBAAgB,CAAC,CAAC;QAC1D,cAAc,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,cAAc,CAAC,CAAC;QACtD,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;QAC3C,wBAAwB,EAAE,KAAK,CAAC,wBAAwB,CAAC;QACzD,OAAO,EAAE,IAAA,+BAAiB,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAC1C,SAAS,EAAE,CAAE,KAAK,CAAC,SAAS,CAAgB,CAAC,GAAG,CAAC,+BAAiB,CAAC,CAAC;KACvE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/OrderResponse.d.ts b/dist/cjs/service/src/models/OrderResponse.d.ts new file mode 100644 index 0000000..25daa77 --- /dev/null +++ b/dist/cjs/service/src/models/OrderResponse.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Order } from './Order'; +/** + * + * @export + * @interface OrderResponse + */ +export interface OrderResponse { + /** + * + * @type {Array} + * @memberof OrderResponse + */ + data: Array; +} +/** + * Check if a given object implements the OrderResponse interface. + */ +export declare function instanceOfOrderResponse(value: object): value is OrderResponse; +export declare function OrderResponseFromJSON(json: any): OrderResponse; +export declare function OrderResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderResponse; +export declare function OrderResponseToJSON(json: any): OrderResponse; +export declare function OrderResponseToJSONTyped(value?: OrderResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=OrderResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/OrderResponse.d.ts.map b/dist/cjs/service/src/models/OrderResponse.d.ts.map new file mode 100644 index 0000000..075e26b --- /dev/null +++ b/dist/cjs/service/src/models/OrderResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"OrderResponse.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/OrderResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQrC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAG7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAQjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAShH"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/OrderResponse.js b/dist/cjs/service/src/models/OrderResponse.js new file mode 100644 index 0000000..76ad82f --- /dev/null +++ b/dist/cjs/service/src/models/OrderResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfOrderResponse = instanceOfOrderResponse; +exports.OrderResponseFromJSON = OrderResponseFromJSON; +exports.OrderResponseFromJSONTyped = OrderResponseFromJSONTyped; +exports.OrderResponseToJSON = OrderResponseToJSON; +exports.OrderResponseToJSONTyped = OrderResponseToJSONTyped; +const Order_1 = require("./Order"); +/** + * Check if a given object implements the OrderResponse interface. + */ +function instanceOfOrderResponse(value) { + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function OrderResponseFromJSON(json) { + return OrderResponseFromJSONTyped(json, false); +} +function OrderResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': (json['data'].map(Order_1.OrderFromJSON)), + }; +} +function OrderResponseToJSON(json) { + return OrderResponseToJSONTyped(json, false); +} +function OrderResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'data': (value['data'].map(Order_1.OrderToJSON)), + }; +} +//# sourceMappingURL=OrderResponse.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/OrderResponse.js.map b/dist/cjs/service/src/models/OrderResponse.js.map new file mode 100644 index 0000000..4c1ab92 --- /dev/null +++ b/dist/cjs/service/src/models/OrderResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"OrderResponse.js","sourceRoot":"","sources":["../../../../../src/service/src/models/OrderResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,0DAGC;AAED,sDAEC;AAED,gEAQC;AAED,kDAEC;AAED,4DASC;AAxDD,mCAKiB;AAgBjB;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS,EAAE,mBAA4B;IAC9E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,qBAAa,CAAC,CAAC;KAC5D,CAAC;AACN,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,KAA4B,EAAE,sBAA+B,KAAK;IACvG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,mBAAW,CAAC,CAAC;KAC3D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/OrderType.d.ts b/dist/cjs/service/src/models/OrderType.d.ts new file mode 100644 index 0000000..3697041 --- /dev/null +++ b/dist/cjs/service/src/models/OrderType.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const OrderType: { + readonly CLASSIC: "Classic"; + readonly DUTCH_LIMIT: "DutchLimit"; +}; +export type OrderType = typeof OrderType[keyof typeof OrderType]; +export declare function instanceOfOrderType(value: any): boolean; +export declare function OrderTypeFromJSON(json: any): OrderType; +export declare function OrderTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): OrderType; +export declare function OrderTypeToJSON(value?: OrderType | null): any; +export declare function OrderTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): OrderType; +//# sourceMappingURL=OrderType.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/OrderType.d.ts.map b/dist/cjs/service/src/models/OrderType.d.ts.map new file mode 100644 index 0000000..7d4f6ff --- /dev/null +++ b/dist/cjs/service/src/models/OrderType.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"OrderType.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/OrderType.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,SAAS;;;CAGZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAGjE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASvD;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAEzF;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,GAAG,CAE7D;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAExF"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/OrderType.js b/dist/cjs/service/src/models/OrderType.js new file mode 100644 index 0000000..cdb2193 --- /dev/null +++ b/dist/cjs/service/src/models/OrderType.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.OrderType = void 0; +exports.instanceOfOrderType = instanceOfOrderType; +exports.OrderTypeFromJSON = OrderTypeFromJSON; +exports.OrderTypeFromJSONTyped = OrderTypeFromJSONTyped; +exports.OrderTypeToJSON = OrderTypeToJSON; +exports.OrderTypeToJSONTyped = OrderTypeToJSONTyped; +/** + * + * @export + */ +exports.OrderType = { + CLASSIC: 'Classic', + DUTCH_LIMIT: 'DutchLimit' +}; +function instanceOfOrderType(value) { + for (const key in exports.OrderType) { + if (Object.prototype.hasOwnProperty.call(exports.OrderType, key)) { + if (exports.OrderType[key] === value) { + return true; + } + } + } + return false; +} +function OrderTypeFromJSON(json) { + return OrderTypeFromJSONTyped(json, false); +} +function OrderTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function OrderTypeToJSON(value) { + return value; +} +function OrderTypeToJSONTyped(value, ignoreDiscriminator) { + return value; +} +//# sourceMappingURL=OrderType.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/OrderType.js.map b/dist/cjs/service/src/models/OrderType.js.map new file mode 100644 index 0000000..249eb3c --- /dev/null +++ b/dist/cjs/service/src/models/OrderType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"OrderType.js","sourceRoot":"","sources":["../../../../../src/service/src/models/OrderType.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAcH,kDASC;AAED,8CAEC;AAED,wDAEC;AAED,0CAEC;AAED,oDAEC;AApCD;;;GAGG;AACU,QAAA,SAAS,GAAG;IACrB,OAAO,EAAE,SAAS;IAClB,WAAW,EAAE,YAAY;CACnB,CAAC;AAIX,SAAgB,mBAAmB,CAAC,KAAU;IAC1C,KAAK,MAAM,GAAG,IAAI,iBAAS,EAAE,CAAC;QAC1B,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,iBAAS,EAAE,GAAG,CAAC,EAAE,CAAC;YACvD,IAAI,iBAAS,CAAC,GAA6B,CAAC,KAAK,KAAK,EAAE,CAAC;gBACrD,OAAO,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,OAAO,IAAiB,CAAC;AAC7B,CAAC;AAED,SAAgB,eAAe,CAAC,KAAwB;IACpD,OAAO,KAAY,CAAC;AACxB,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAU,EAAE,mBAA4B;IACzE,OAAO,KAAkB,CAAC;AAC9B,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/PermitSingle.d.ts b/dist/cjs/service/src/models/PermitSingle.d.ts new file mode 100644 index 0000000..92bdeb6 --- /dev/null +++ b/dist/cjs/service/src/models/PermitSingle.d.ts @@ -0,0 +1,40 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { TypedData } from './TypedData'; +/** + * + * @export + * @interface PermitSingle + */ +export interface PermitSingle { + /** + * + * @type {TypedData} + * @memberof PermitSingle + */ + typedData: TypedData; + /** + * The hash of the permit that needs to be signed + * @type {string} + * @memberof PermitSingle + */ + hash: string; +} +/** + * Check if a given object implements the PermitSingle interface. + */ +export declare function instanceOfPermitSingle(value: object): value is PermitSingle; +export declare function PermitSingleFromJSON(json: any): PermitSingle; +export declare function PermitSingleFromJSONTyped(json: any, ignoreDiscriminator: boolean): PermitSingle; +export declare function PermitSingleToJSON(json: any): PermitSingle; +export declare function PermitSingleToJSONTyped(value?: PermitSingle | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=PermitSingle.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/PermitSingle.d.ts.map b/dist/cjs/service/src/models/PermitSingle.d.ts.map new file mode 100644 index 0000000..3c1ad99 --- /dev/null +++ b/dist/cjs/service/src/models/PermitSingle.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"PermitSingle.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/PermitSingle.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAI3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAS/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU9G"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/PermitSingle.js b/dist/cjs/service/src/models/PermitSingle.js new file mode 100644 index 0000000..a0a32f3 --- /dev/null +++ b/dist/cjs/service/src/models/PermitSingle.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPermitSingle = instanceOfPermitSingle; +exports.PermitSingleFromJSON = PermitSingleFromJSON; +exports.PermitSingleFromJSONTyped = PermitSingleFromJSONTyped; +exports.PermitSingleToJSON = PermitSingleToJSON; +exports.PermitSingleToJSONTyped = PermitSingleToJSONTyped; +const TypedData_1 = require("./TypedData"); +/** + * Check if a given object implements the PermitSingle interface. + */ +function instanceOfPermitSingle(value) { + if (!('typedData' in value) || value['typedData'] === undefined) + return false; + if (!('hash' in value) || value['hash'] === undefined) + return false; + return true; +} +function PermitSingleFromJSON(json) { + return PermitSingleFromJSONTyped(json, false); +} +function PermitSingleFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'typedData': (0, TypedData_1.TypedDataFromJSON)(json['typedData']), + 'hash': json['hash'], + }; +} +function PermitSingleToJSON(json) { + return PermitSingleToJSONTyped(json, false); +} +function PermitSingleToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'typedData': (0, TypedData_1.TypedDataToJSON)(value['typedData']), + 'hash': value['hash'], + }; +} +//# sourceMappingURL=PermitSingle.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/PermitSingle.js.map b/dist/cjs/service/src/models/PermitSingle.js.map new file mode 100644 index 0000000..531ae62 --- /dev/null +++ b/dist/cjs/service/src/models/PermitSingle.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PermitSingle.js","sourceRoot":"","sources":["../../../../../src/service/src/models/PermitSingle.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAkCH,wDAIC;AAED,oDAEC;AAED,8DASC;AAED,gDAEC;AAED,0DAUC;AAjED,2CAKqB;AAsBrB;;GAEG;AACH,SAAgB,sBAAsB,CAAC,KAAa;IAChD,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS,EAAE,mBAA4B;IAC7E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,WAAW,EAAE,IAAA,6BAAiB,EAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACjD,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;KACvB,CAAC;AACN,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,KAA2B,EAAE,sBAA+B,KAAK;IACrG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,WAAW,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAChD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;KACxB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/PersonalSignRequest.d.ts b/dist/cjs/service/src/models/PersonalSignRequest.d.ts new file mode 100644 index 0000000..4831d92 --- /dev/null +++ b/dist/cjs/service/src/models/PersonalSignRequest.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PersonalSignRequest + */ +export interface PersonalSignRequest { + /** + * The message that needs to be signed + * @type {string} + * @memberof PersonalSignRequest + */ + message: string; +} +/** + * Check if a given object implements the PersonalSignRequest interface. + */ +export declare function instanceOfPersonalSignRequest(value: object): value is PersonalSignRequest; +export declare function PersonalSignRequestFromJSON(json: any): PersonalSignRequest; +export declare function PersonalSignRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PersonalSignRequest; +export declare function PersonalSignRequestToJSON(json: any): PersonalSignRequest; +export declare function PersonalSignRequestToJSONTyped(value?: PersonalSignRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=PersonalSignRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/PersonalSignRequest.d.ts.map b/dist/cjs/service/src/models/PersonalSignRequest.d.ts.map new file mode 100644 index 0000000..c11c2bd --- /dev/null +++ b/dist/cjs/service/src/models/PersonalSignRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"PersonalSignRequest.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/PersonalSignRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAGzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAQ7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS5H"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/PersonalSignRequest.js b/dist/cjs/service/src/models/PersonalSignRequest.js new file mode 100644 index 0000000..097395a --- /dev/null +++ b/dist/cjs/service/src/models/PersonalSignRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPersonalSignRequest = instanceOfPersonalSignRequest; +exports.PersonalSignRequestFromJSON = PersonalSignRequestFromJSON; +exports.PersonalSignRequestFromJSONTyped = PersonalSignRequestFromJSONTyped; +exports.PersonalSignRequestToJSON = PersonalSignRequestToJSON; +exports.PersonalSignRequestToJSONTyped = PersonalSignRequestToJSONTyped; +/** + * Check if a given object implements the PersonalSignRequest interface. + */ +function instanceOfPersonalSignRequest(value) { + if (!('message' in value) || value['message'] === undefined) + return false; + return true; +} +function PersonalSignRequestFromJSON(json) { + return PersonalSignRequestFromJSONTyped(json, false); +} +function PersonalSignRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'message': json['message'], + }; +} +function PersonalSignRequestToJSON(json) { + return PersonalSignRequestToJSONTyped(json, false); +} +function PersonalSignRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'message': value['message'], + }; +} +//# sourceMappingURL=PersonalSignRequest.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/PersonalSignRequest.js.map b/dist/cjs/service/src/models/PersonalSignRequest.js.map new file mode 100644 index 0000000..a9255c9 --- /dev/null +++ b/dist/cjs/service/src/models/PersonalSignRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PersonalSignRequest.js","sourceRoot":"","sources":["../../../../../src/service/src/models/PersonalSignRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,sEAGC;AAED,kEAEC;AAED,4EAQC;AAED,8DAEC;AAED,wEASC;AAnCD;;GAEG;AACH,SAAgB,6BAA6B,CAAC,KAAa;IACvD,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,KAAkC,EAAE,sBAA+B,KAAK;IACnH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/PreparedTx.d.ts b/dist/cjs/service/src/models/PreparedTx.d.ts new file mode 100644 index 0000000..c7288a1 --- /dev/null +++ b/dist/cjs/service/src/models/PreparedTx.d.ts @@ -0,0 +1,62 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { MethodParameters } from './MethodParameters'; +/** + * + * @export + * @interface PreparedTx + */ +export interface PreparedTx { + /** + * + * @type {string} + * @memberof PreparedTx + */ + type: string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof PreparedTx + */ + label: { + [key: string]: string | undefined; + }; + /** + * + * @type {number} + * @memberof PreparedTx + */ + gasUseEstimate: number; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof PreparedTx + */ + gasFeeEstimate: { + [key: string]: string | undefined; + }; + /** + * + * @type {MethodParameters} + * @memberof PreparedTx + */ + methodParameters: MethodParameters; +} +/** + * Check if a given object implements the PreparedTx interface. + */ +export declare function instanceOfPreparedTx(value: object): value is PreparedTx; +export declare function PreparedTxFromJSON(json: any): PreparedTx; +export declare function PreparedTxFromJSONTyped(json: any, ignoreDiscriminator: boolean): PreparedTx; +export declare function PreparedTxToJSON(json: any): PreparedTx; +export declare function PreparedTxToJSONTyped(value?: PreparedTx | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=PreparedTx.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/PreparedTx.d.ts.map b/dist/cjs/service/src/models/PreparedTx.d.ts.map new file mode 100644 index 0000000..5a03873 --- /dev/null +++ b/dist/cjs/service/src/models/PreparedTx.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"PreparedTx.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/PreparedTx.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAQ3D;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC9C;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,cAAc,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACvD;;;;OAIG;IACH,gBAAgB,EAAE,gBAAgB,CAAC;CACtC;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAOvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAY3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAa1G"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/PreparedTx.js b/dist/cjs/service/src/models/PreparedTx.js new file mode 100644 index 0000000..283a6b5 --- /dev/null +++ b/dist/cjs/service/src/models/PreparedTx.js @@ -0,0 +1,68 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPreparedTx = instanceOfPreparedTx; +exports.PreparedTxFromJSON = PreparedTxFromJSON; +exports.PreparedTxFromJSONTyped = PreparedTxFromJSONTyped; +exports.PreparedTxToJSON = PreparedTxToJSON; +exports.PreparedTxToJSONTyped = PreparedTxToJSONTyped; +const MethodParameters_1 = require("./MethodParameters"); +/** + * Check if a given object implements the PreparedTx interface. + */ +function instanceOfPreparedTx(value) { + if (!('type' in value) || value['type'] === undefined) + return false; + if (!('label' in value) || value['label'] === undefined) + return false; + if (!('gasUseEstimate' in value) || value['gasUseEstimate'] === undefined) + return false; + if (!('gasFeeEstimate' in value) || value['gasFeeEstimate'] === undefined) + return false; + if (!('methodParameters' in value) || value['methodParameters'] === undefined) + return false; + return true; +} +function PreparedTxFromJSON(json) { + return PreparedTxFromJSONTyped(json, false); +} +function PreparedTxFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'type': json['type'], + 'label': json['label'], + 'gasUseEstimate': json['gasUseEstimate'], + 'gasFeeEstimate': json['gasFeeEstimate'], + 'methodParameters': (0, MethodParameters_1.MethodParametersFromJSON)(json['methodParameters']), + }; +} +function PreparedTxToJSON(json) { + return PreparedTxToJSONTyped(json, false); +} +function PreparedTxToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'type': value['type'], + 'label': value['label'], + 'gasUseEstimate': value['gasUseEstimate'], + 'gasFeeEstimate': value['gasFeeEstimate'], + 'methodParameters': (0, MethodParameters_1.MethodParametersToJSON)(value['methodParameters']), + }; +} +//# sourceMappingURL=PreparedTx.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/PreparedTx.js.map b/dist/cjs/service/src/models/PreparedTx.js.map new file mode 100644 index 0000000..392506b --- /dev/null +++ b/dist/cjs/service/src/models/PreparedTx.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PreparedTx.js","sourceRoot":"","sources":["../../../../../src/service/src/models/PreparedTx.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoDH,oDAOC;AAED,gDAEC;AAED,0DAYC;AAED,4CAEC;AAED,sDAaC;AA5FD,yDAK4B;AAwC5B;;GAEG;AACH,SAAgB,oBAAoB,CAAC,KAAa;IAC9C,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,IAAI,CAAC,CAAC,gBAAgB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,gBAAgB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxF,IAAI,CAAC,CAAC,gBAAgB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,gBAAgB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxF,IAAI,CAAC,CAAC,kBAAkB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,kBAAkB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5F,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS,EAAE,mBAA4B;IAC3E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QACtB,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,CAAC;QACxC,gBAAgB,EAAE,IAAI,CAAC,gBAAgB,CAAC;QACxC,kBAAkB,EAAE,IAAA,2CAAwB,EAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;KACzE,CAAC;AACN,CAAC;AAED,SAAgB,gBAAgB,CAAC,IAAS;IACtC,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,qBAAqB,CAAC,KAAyB,EAAE,sBAA+B,KAAK;IACjG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,CAAC;QACzC,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,CAAC;QACzC,kBAAkB,EAAE,IAAA,yCAAsB,EAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;KACxE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Price.d.ts b/dist/cjs/service/src/models/Price.d.ts new file mode 100644 index 0000000..1396306 --- /dev/null +++ b/dist/cjs/service/src/models/Price.d.ts @@ -0,0 +1,49 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Symbol } from './Symbol'; +import type { Timestamp } from './Timestamp'; +/** + * + * @export + * @interface Price + */ +export interface Price { + /** + * + * @type {Symbol} + * @memberof Price + */ + symbol: Symbol; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Price + */ + value: { + [key: string]: string | undefined; + }; + /** + * + * @type {Timestamp} + * @memberof Price + */ + timestamp: Timestamp; +} +/** + * Check if a given object implements the Price interface. + */ +export declare function instanceOfPrice(value: object): value is Price; +export declare function PriceFromJSON(json: any): Price; +export declare function PriceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Price; +export declare function PriceToJSON(json: any): Price; +export declare function PriceToJSONTyped(value?: Price | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=Price.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Price.d.ts.map b/dist/cjs/service/src/models/Price.d.ts.map new file mode 100644 index 0000000..33bdfe1 --- /dev/null +++ b/dist/cjs/service/src/models/Price.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Price.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/Price.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAOvC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,KAAK;IAClB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC9C;;;;OAIG;IACH,SAAS,EAAE,SAAS,CAAC;CACxB;AAID;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,KAAK,CAK7D;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,KAAK,CAE9C;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,KAAK,CAUjF;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,GAAG,GAAG,KAAK,CAE5C;AAED,wBAAgB,gBAAgB,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWhG"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Price.js b/dist/cjs/service/src/models/Price.js new file mode 100644 index 0000000..d47acee --- /dev/null +++ b/dist/cjs/service/src/models/Price.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPrice = instanceOfPrice; +exports.PriceFromJSON = PriceFromJSON; +exports.PriceFromJSONTyped = PriceFromJSONTyped; +exports.PriceToJSON = PriceToJSON; +exports.PriceToJSONTyped = PriceToJSONTyped; +const Symbol_1 = require("./Symbol"); +const Timestamp_1 = require("./Timestamp"); +/** + * Check if a given object implements the Price interface. + */ +function instanceOfPrice(value) { + if (!('symbol' in value) || value['symbol'] === undefined) + return false; + if (!('value' in value) || value['value'] === undefined) + return false; + if (!('timestamp' in value) || value['timestamp'] === undefined) + return false; + return true; +} +function PriceFromJSON(json) { + return PriceFromJSONTyped(json, false); +} +function PriceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'symbol': (0, Symbol_1.SymbolFromJSON)(json['symbol']), + 'value': json['value'], + 'timestamp': (0, Timestamp_1.TimestampFromJSON)(json['timestamp']), + }; +} +function PriceToJSON(json) { + return PriceToJSONTyped(json, false); +} +function PriceToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'symbol': (0, Symbol_1.SymbolToJSON)(value['symbol']), + 'value': value['value'], + 'timestamp': (0, Timestamp_1.TimestampToJSON)(value['timestamp']), + }; +} +//# sourceMappingURL=Price.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Price.js.map b/dist/cjs/service/src/models/Price.js.map new file mode 100644 index 0000000..c2a8ff8 --- /dev/null +++ b/dist/cjs/service/src/models/Price.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Price.js","sourceRoot":"","sources":["../../../../../src/service/src/models/Price.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAiDH,0CAKC;AAED,sCAEC;AAED,gDAUC;AAED,kCAEC;AAED,4CAWC;AAnFD,qCAKkB;AAElB,2CAKqB;AA8BrB;;GAEG;AACH,SAAgB,eAAe,CAAC,KAAa;IACzC,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,aAAa,CAAC,IAAS;IACnC,OAAO,kBAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3C,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS,EAAE,mBAA4B;IACtE,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,IAAA,uBAAc,EAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACxC,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QACtB,WAAW,EAAE,IAAA,6BAAiB,EAAC,IAAI,CAAC,WAAW,CAAC,CAAC;KACpD,CAAC;AACN,CAAC;AAED,SAAgB,WAAW,CAAC,IAAS;IACjC,OAAO,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzC,CAAC;AAED,SAAgB,gBAAgB,CAAC,KAAoB,EAAE,sBAA+B,KAAK;IACvF,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,QAAQ,EAAE,IAAA,qBAAY,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACvC,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,WAAW,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,WAAW,CAAC,CAAC;KACnD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/PriceListResponse.d.ts b/dist/cjs/service/src/models/PriceListResponse.d.ts new file mode 100644 index 0000000..1853f58 --- /dev/null +++ b/dist/cjs/service/src/models/PriceListResponse.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Price } from './Price'; +/** + * + * @export + * @interface PriceListResponse + */ +export interface PriceListResponse { + /** + * + * @type {Array} + * @memberof PriceListResponse + */ + data: Array; +} +/** + * Check if a given object implements the PriceListResponse interface. + */ +export declare function instanceOfPriceListResponse(value: object): value is PriceListResponse; +export declare function PriceListResponseFromJSON(json: any): PriceListResponse; +export declare function PriceListResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): PriceListResponse; +export declare function PriceListResponseToJSON(json: any): PriceListResponse; +export declare function PriceListResponseToJSONTyped(value?: PriceListResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=PriceListResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/PriceListResponse.d.ts.map b/dist/cjs/service/src/models/PriceListResponse.d.ts.map new file mode 100644 index 0000000..a82554a --- /dev/null +++ b/dist/cjs/service/src/models/PriceListResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"PriceListResponse.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/PriceListResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQrC;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAGrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAQzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASxH"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/PriceListResponse.js b/dist/cjs/service/src/models/PriceListResponse.js new file mode 100644 index 0000000..8406171 --- /dev/null +++ b/dist/cjs/service/src/models/PriceListResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPriceListResponse = instanceOfPriceListResponse; +exports.PriceListResponseFromJSON = PriceListResponseFromJSON; +exports.PriceListResponseFromJSONTyped = PriceListResponseFromJSONTyped; +exports.PriceListResponseToJSON = PriceListResponseToJSON; +exports.PriceListResponseToJSONTyped = PriceListResponseToJSONTyped; +const Price_1 = require("./Price"); +/** + * Check if a given object implements the PriceListResponse interface. + */ +function instanceOfPriceListResponse(value) { + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function PriceListResponseFromJSON(json) { + return PriceListResponseFromJSONTyped(json, false); +} +function PriceListResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': (json['data'].map(Price_1.PriceFromJSON)), + }; +} +function PriceListResponseToJSON(json) { + return PriceListResponseToJSONTyped(json, false); +} +function PriceListResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'data': (value['data'].map(Price_1.PriceToJSON)), + }; +} +//# sourceMappingURL=PriceListResponse.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/PriceListResponse.js.map b/dist/cjs/service/src/models/PriceListResponse.js.map new file mode 100644 index 0000000..8c53b55 --- /dev/null +++ b/dist/cjs/service/src/models/PriceListResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PriceListResponse.js","sourceRoot":"","sources":["../../../../../src/service/src/models/PriceListResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,kEAGC;AAED,8DAEC;AAED,wEAQC;AAED,0DAEC;AAED,oEASC;AAxDD,mCAKiB;AAgBjB;;GAEG;AACH,SAAgB,2BAA2B,CAAC,KAAa;IACrD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,qBAAa,CAAC,CAAC;KAC5D,CAAC;AACN,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,KAAgC,EAAE,sBAA+B,KAAK;IAC/G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,mBAAW,CAAC,CAAC;KAC3D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/QuoteRequest.d.ts b/dist/cjs/service/src/models/QuoteRequest.d.ts new file mode 100644 index 0000000..e233c39 --- /dev/null +++ b/dist/cjs/service/src/models/QuoteRequest.d.ts @@ -0,0 +1,78 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { OrderType } from './OrderType'; +import type { QuoteRequestOptions } from './QuoteRequestOptions'; +import type { TradeType } from './TradeType'; +/** + * + * @export + * @interface QuoteRequest + */ +export interface QuoteRequest { + /** + * + * @type {string} + * @memberof QuoteRequest + */ + requestId?: string; + /** + * + * @type {OrderType} + * @memberof QuoteRequest + */ + type?: OrderType; + /** + * + * @type {TradeType} + * @memberof QuoteRequest + */ + tradeType: TradeType; + /** + * + * @type {string} + * @memberof QuoteRequest + */ + inputToken: string; + /** + * + * @type {string} + * @memberof QuoteRequest + */ + outputToken: string; + /** + * + * @type {string} + * @memberof QuoteRequest + */ + amount: string; + /** + * + * @type {string} + * @memberof QuoteRequest + */ + recipient: string; + /** + * + * @type {QuoteRequestOptions} + * @memberof QuoteRequest + */ + options?: QuoteRequestOptions; +} +/** + * Check if a given object implements the QuoteRequest interface. + */ +export declare function instanceOfQuoteRequest(value: object): value is QuoteRequest; +export declare function QuoteRequestFromJSON(json: any): QuoteRequest; +export declare function QuoteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuoteRequest; +export declare function QuoteRequestToJSON(json: any): QuoteRequest; +export declare function QuoteRequestToJSONTyped(value?: QuoteRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=QuoteRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/QuoteRequest.d.ts.map b/dist/cjs/service/src/models/QuoteRequest.d.ts.map new file mode 100644 index 0000000..1f5ecb6 --- /dev/null +++ b/dist/cjs/service/src/models/QuoteRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"QuoteRequest.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/QuoteRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAOjE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,OAAO,CAAC,EAAE,mBAAmB,CAAC;CACjC;AAID;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAO3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAe/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAgB9G"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/QuoteRequest.js b/dist/cjs/service/src/models/QuoteRequest.js new file mode 100644 index 0000000..1a1de65 --- /dev/null +++ b/dist/cjs/service/src/models/QuoteRequest.js @@ -0,0 +1,76 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfQuoteRequest = instanceOfQuoteRequest; +exports.QuoteRequestFromJSON = QuoteRequestFromJSON; +exports.QuoteRequestFromJSONTyped = QuoteRequestFromJSONTyped; +exports.QuoteRequestToJSON = QuoteRequestToJSON; +exports.QuoteRequestToJSONTyped = QuoteRequestToJSONTyped; +const OrderType_1 = require("./OrderType"); +const QuoteRequestOptions_1 = require("./QuoteRequestOptions"); +const TradeType_1 = require("./TradeType"); +/** + * Check if a given object implements the QuoteRequest interface. + */ +function instanceOfQuoteRequest(value) { + if (!('tradeType' in value) || value['tradeType'] === undefined) + return false; + if (!('inputToken' in value) || value['inputToken'] === undefined) + return false; + if (!('outputToken' in value) || value['outputToken'] === undefined) + return false; + if (!('amount' in value) || value['amount'] === undefined) + return false; + if (!('recipient' in value) || value['recipient'] === undefined) + return false; + return true; +} +function QuoteRequestFromJSON(json) { + return QuoteRequestFromJSONTyped(json, false); +} +function QuoteRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'requestId': json['requestId'] == null ? undefined : json['requestId'], + 'type': json['type'] == null ? undefined : (0, OrderType_1.OrderTypeFromJSON)(json['type']), + 'tradeType': (0, TradeType_1.TradeTypeFromJSON)(json['tradeType']), + 'inputToken': json['inputToken'], + 'outputToken': json['outputToken'], + 'amount': json['amount'], + 'recipient': json['recipient'], + 'options': json['options'] == null ? undefined : (0, QuoteRequestOptions_1.QuoteRequestOptionsFromJSON)(json['options']), + }; +} +function QuoteRequestToJSON(json) { + return QuoteRequestToJSONTyped(json, false); +} +function QuoteRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'requestId': value['requestId'], + 'type': (0, OrderType_1.OrderTypeToJSON)(value['type']), + 'tradeType': (0, TradeType_1.TradeTypeToJSON)(value['tradeType']), + 'inputToken': value['inputToken'], + 'outputToken': value['outputToken'], + 'amount': value['amount'], + 'recipient': value['recipient'], + 'options': (0, QuoteRequestOptions_1.QuoteRequestOptionsToJSON)(value['options']), + }; +} +//# sourceMappingURL=QuoteRequest.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/QuoteRequest.js.map b/dist/cjs/service/src/models/QuoteRequest.js.map new file mode 100644 index 0000000..5538874 --- /dev/null +++ b/dist/cjs/service/src/models/QuoteRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"QuoteRequest.js","sourceRoot":"","sources":["../../../../../src/service/src/models/QuoteRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAsFH,wDAOC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AI,CAAC,MAAM,CAAC,CAAC;QAC1E,WAAW,EAAE,IAAA,6BAAiB,EAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACjD,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;QAChC,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC;QAClC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;QAC9B,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,iDAA2B,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KAChG,CAAC;AACN,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,KAA2B,EAAE,sBAA+B,KAAK;IACrG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,MAAM,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACtC,WAAW,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAChD,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,SAAS,EAAE,IAAA,+CAAyB,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;KACzD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/QuoteRequestOptions.d.ts b/dist/cjs/service/src/models/QuoteRequestOptions.d.ts new file mode 100644 index 0000000..6500f7b --- /dev/null +++ b/dist/cjs/service/src/models/QuoteRequestOptions.d.ts @@ -0,0 +1,87 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface QuoteRequestOptions + */ +export interface QuoteRequestOptions { + /** + * + * @type {boolean} + * @memberof QuoteRequestOptions + */ + dryRun?: boolean; + /** + * + * @type {string} + * @memberof QuoteRequestOptions + */ + slippageTolerance?: string; + /** + * + * @type {boolean} + * @memberof QuoteRequestOptions + */ + useSyntheticQuotes?: boolean; + /** + * + * @type {string} + * @memberof QuoteRequestOptions + */ + permitSignature?: string; + /** + * + * @type {string} + * @memberof QuoteRequestOptions + */ + permitNonce?: string; + /** + * + * @type {number} + * @memberof QuoteRequestOptions + */ + permitExpiration?: number; + /** + * + * @type {string} + * @memberof QuoteRequestOptions + */ + permitAmount?: string; + /** + * + * @type {number} + * @memberof QuoteRequestOptions + */ + permitSigDeadline?: number; + /** + * + * @type {string} + * @memberof QuoteRequestOptions + */ + quoteId?: string; + /** + * + * @type {string} + * @memberof QuoteRequestOptions + */ + encodedOrder?: string; +} +/** + * Check if a given object implements the QuoteRequestOptions interface. + */ +export declare function instanceOfQuoteRequestOptions(value: object): value is QuoteRequestOptions; +export declare function QuoteRequestOptionsFromJSON(json: any): QuoteRequestOptions; +export declare function QuoteRequestOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuoteRequestOptions; +export declare function QuoteRequestOptionsToJSON(json: any): QuoteRequestOptions; +export declare function QuoteRequestOptionsToJSONTyped(value?: QuoteRequestOptions | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=QuoteRequestOptions.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/QuoteRequestOptions.d.ts.map b/dist/cjs/service/src/models/QuoteRequestOptions.d.ts.map new file mode 100644 index 0000000..c454f4a --- /dev/null +++ b/dist/cjs/service/src/models/QuoteRequestOptions.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"QuoteRequestOptions.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/QuoteRequestOptions.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAEzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAiB7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAkB5H"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/QuoteRequestOptions.js b/dist/cjs/service/src/models/QuoteRequestOptions.js new file mode 100644 index 0000000..2f1f6bc --- /dev/null +++ b/dist/cjs/service/src/models/QuoteRequestOptions.js @@ -0,0 +1,67 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfQuoteRequestOptions = instanceOfQuoteRequestOptions; +exports.QuoteRequestOptionsFromJSON = QuoteRequestOptionsFromJSON; +exports.QuoteRequestOptionsFromJSONTyped = QuoteRequestOptionsFromJSONTyped; +exports.QuoteRequestOptionsToJSON = QuoteRequestOptionsToJSON; +exports.QuoteRequestOptionsToJSONTyped = QuoteRequestOptionsToJSONTyped; +/** + * Check if a given object implements the QuoteRequestOptions interface. + */ +function instanceOfQuoteRequestOptions(value) { + return true; +} +function QuoteRequestOptionsFromJSON(json) { + return QuoteRequestOptionsFromJSONTyped(json, false); +} +function QuoteRequestOptionsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'dryRun': json['dryRun'] == null ? undefined : json['dryRun'], + 'slippageTolerance': json['slippageTolerance'] == null ? undefined : json['slippageTolerance'], + 'useSyntheticQuotes': json['useSyntheticQuotes'] == null ? undefined : json['useSyntheticQuotes'], + 'permitSignature': json['permitSignature'] == null ? undefined : json['permitSignature'], + 'permitNonce': json['permitNonce'] == null ? undefined : json['permitNonce'], + 'permitExpiration': json['permitExpiration'] == null ? undefined : json['permitExpiration'], + 'permitAmount': json['permitAmount'] == null ? undefined : json['permitAmount'], + 'permitSigDeadline': json['permitSigDeadline'] == null ? undefined : json['permitSigDeadline'], + 'quoteId': json['quoteId'] == null ? undefined : json['quoteId'], + 'encodedOrder': json['encodedOrder'] == null ? undefined : json['encodedOrder'], + }; +} +function QuoteRequestOptionsToJSON(json) { + return QuoteRequestOptionsToJSONTyped(json, false); +} +function QuoteRequestOptionsToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'dryRun': value['dryRun'], + 'slippageTolerance': value['slippageTolerance'], + 'useSyntheticQuotes': value['useSyntheticQuotes'], + 'permitSignature': value['permitSignature'], + 'permitNonce': value['permitNonce'], + 'permitExpiration': value['permitExpiration'], + 'permitAmount': value['permitAmount'], + 'permitSigDeadline': value['permitSigDeadline'], + 'quoteId': value['quoteId'], + 'encodedOrder': value['encodedOrder'], + }; +} +//# sourceMappingURL=QuoteRequestOptions.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/QuoteRequestOptions.js.map b/dist/cjs/service/src/models/QuoteRequestOptions.js.map new file mode 100644 index 0000000..562f4d0 --- /dev/null +++ b/dist/cjs/service/src/models/QuoteRequestOptions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"QuoteRequestOptions.js","sourceRoot":"","sources":["../../../../../src/service/src/models/QuoteRequestOptions.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0EH,sEAEC;AAED,kEAEC;AAED,4EAiBC;AAED,8DAEC;AAED,wEAkBC;AApDD;;GAEG;AACH,SAAgB,6BAA6B,CAAC,KAAa;IACvD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC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C,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,KAAkC,EAAE,sBAA+B,KAAK;IACnH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,mBAAmB,EAAE,KAAK,CAAC,mBAAmB,CAAC;QAC/C,oBAAoB,EAAE,KAAK,CAAC,oBAAoB,CAAC;QACjD,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;QAC3C,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,kBAAkB,EAAE,KAAK,CAAC,kBAAkB,CAAC;QAC7C,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC;QACrC,mBAAmB,EAAE,KAAK,CAAC,mBAAmB,CAAC;QAC/C,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC;KACxC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/QuoteResponse.d.ts b/dist/cjs/service/src/models/QuoteResponse.d.ts new file mode 100644 index 0000000..70b02c5 --- /dev/null +++ b/dist/cjs/service/src/models/QuoteResponse.d.ts @@ -0,0 +1,138 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { OrderType } from './OrderType'; +import type { TypedData } from './TypedData'; +import type { RouteItem } from './RouteItem'; +import type { OrderInfo } from './OrderInfo'; +import type { MethodParameters } from './MethodParameters'; +import type { TradeType } from './TradeType'; +import type { Timestamp } from './Timestamp'; +/** + * + * @export + * @interface QuoteResponse + */ +export interface QuoteResponse { + /** + * + * @type {OrderType} + * @memberof QuoteResponse + */ + type: OrderType; + /** + * + * @type {TradeType} + * @memberof QuoteResponse + */ + tradeType: TradeType; + /** + * + * @type {Timestamp} + * @memberof QuoteResponse + */ + time: Timestamp; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof QuoteResponse + */ + amount: { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof QuoteResponse + */ + quote: { + [key: string]: string | undefined; + }; + /** + * + * @type {string} + * @memberof QuoteResponse + */ + quoteId: string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof QuoteResponse + */ + gasPrice: { + [key: string]: string | undefined; + }; + /** + * + * @type {number} + * @memberof QuoteResponse + */ + gasUseEstimate: number; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof QuoteResponse + */ + gasFeeEstimate: { + [key: string]: string | undefined; + }; + /** + * + * @type {string} + * @memberof QuoteResponse + */ + routeString: string; + /** + * + * @type {MethodParameters} + * @memberof QuoteResponse + */ + methodParameters?: MethodParameters; + /** + * + * @type {Array} + * @memberof QuoteResponse + */ + route: Array; + /** + * + * @type {OrderInfo} + * @memberof QuoteResponse + */ + orderInfo?: OrderInfo; + /** + * + * @type {string} + * @memberof QuoteResponse + */ + encodedOrder?: string; + /** + * + * @type {string} + * @memberof QuoteResponse + */ + orderHash?: string; + /** + * + * @type {TypedData} + * @memberof QuoteResponse + */ + permitData?: TypedData; +} +/** + * Check if a given object implements the QuoteResponse interface. + */ +export declare function instanceOfQuoteResponse(value: object): value is QuoteResponse; +export declare function QuoteResponseFromJSON(json: any): QuoteResponse; +export declare function QuoteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuoteResponse; +export declare function QuoteResponseToJSON(json: any): QuoteResponse; +export declare function QuoteResponseToJSONTyped(value?: QuoteResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=QuoteResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/QuoteResponse.d.ts.map b/dist/cjs/service/src/models/QuoteResponse.d.ts.map new file mode 100644 index 0000000..cdeea00 --- /dev/null +++ b/dist/cjs/service/src/models/QuoteResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"QuoteResponse.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/QuoteResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAO3D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC/C;;;;OAIG;IACH,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC9C;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACjD;;;;OAIG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,cAAc,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACvD;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;CAC1B;AAID;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAa7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAuBjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAwBhH"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/QuoteResponse.js b/dist/cjs/service/src/models/QuoteResponse.js new file mode 100644 index 0000000..313bb94 --- /dev/null +++ b/dist/cjs/service/src/models/QuoteResponse.js @@ -0,0 +1,108 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfQuoteResponse = instanceOfQuoteResponse; +exports.QuoteResponseFromJSON = QuoteResponseFromJSON; +exports.QuoteResponseFromJSONTyped = QuoteResponseFromJSONTyped; +exports.QuoteResponseToJSON = QuoteResponseToJSON; +exports.QuoteResponseToJSONTyped = QuoteResponseToJSONTyped; +const OrderType_1 = require("./OrderType"); +const TypedData_1 = require("./TypedData"); +const RouteItem_1 = require("./RouteItem"); +const OrderInfo_1 = require("./OrderInfo"); +const MethodParameters_1 = require("./MethodParameters"); +const TradeType_1 = require("./TradeType"); +const Timestamp_1 = require("./Timestamp"); +/** + * Check if a given object implements the QuoteResponse interface. + */ +function instanceOfQuoteResponse(value) { + if (!('type' in value) || value['type'] === undefined) + return false; + if (!('tradeType' in value) || value['tradeType'] === undefined) + return false; + if (!('time' in value) || value['time'] === undefined) + return false; + if (!('amount' in value) || value['amount'] === undefined) + return false; + if (!('quote' in value) || value['quote'] === undefined) + return false; + if (!('quoteId' in value) || value['quoteId'] === undefined) + return false; + if (!('gasPrice' in value) || value['gasPrice'] === undefined) + return false; + if (!('gasUseEstimate' in value) || value['gasUseEstimate'] === undefined) + return false; + if (!('gasFeeEstimate' in value) || value['gasFeeEstimate'] === undefined) + return false; + if (!('routeString' in value) || value['routeString'] === undefined) + return false; + if (!('route' in value) || value['route'] === undefined) + return false; + return true; +} +function QuoteResponseFromJSON(json) { + return QuoteResponseFromJSONTyped(json, false); +} +function QuoteResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'type': (0, OrderType_1.OrderTypeFromJSON)(json['type']), + 'tradeType': (0, TradeType_1.TradeTypeFromJSON)(json['tradeType']), + 'time': (0, Timestamp_1.TimestampFromJSON)(json['time']), + 'amount': json['amount'], + 'quote': json['quote'], + 'quoteId': json['quoteId'], + 'gasPrice': json['gasPrice'], + 'gasUseEstimate': json['gasUseEstimate'], + 'gasFeeEstimate': json['gasFeeEstimate'], + 'routeString': json['routeString'], + 'methodParameters': json['methodParameters'] == null ? undefined : (0, MethodParameters_1.MethodParametersFromJSON)(json['methodParameters']), + 'route': (json['route'].map(RouteItem_1.RouteItemFromJSON)), + 'orderInfo': json['orderInfo'] == null ? undefined : (0, OrderInfo_1.OrderInfoFromJSON)(json['orderInfo']), + 'encodedOrder': json['encodedOrder'] == null ? undefined : json['encodedOrder'], + 'orderHash': json['orderHash'] == null ? undefined : json['orderHash'], + 'permitData': json['permitData'] == null ? undefined : (0, TypedData_1.TypedDataFromJSON)(json['permitData']), + }; +} +function QuoteResponseToJSON(json) { + return QuoteResponseToJSONTyped(json, false); +} +function QuoteResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'type': (0, OrderType_1.OrderTypeToJSON)(value['type']), + 'tradeType': (0, TradeType_1.TradeTypeToJSON)(value['tradeType']), + 'time': (0, Timestamp_1.TimestampToJSON)(value['time']), + 'amount': value['amount'], + 'quote': value['quote'], + 'quoteId': value['quoteId'], + 'gasPrice': value['gasPrice'], + 'gasUseEstimate': value['gasUseEstimate'], + 'gasFeeEstimate': value['gasFeeEstimate'], + 'routeString': value['routeString'], + 'methodParameters': (0, MethodParameters_1.MethodParametersToJSON)(value['methodParameters']), + 'route': (value['route'].map(RouteItem_1.RouteItemToJSON)), + 'orderInfo': (0, OrderInfo_1.OrderInfoToJSON)(value['orderInfo']), + 'encodedOrder': value['encodedOrder'], + 'orderHash': value['orderHash'], + 'permitData': (0, TypedData_1.TypedDataToJSON)(value['permitData']), + }; +} +//# sourceMappingURL=QuoteResponse.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/QuoteResponse.js.map b/dist/cjs/service/src/models/QuoteResponse.js.map new file mode 100644 index 0000000..9547d33 --- /dev/null +++ b/dist/cjs/service/src/models/QuoteResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"QuoteResponse.js","sourceRoot":"","sources":["../../../../../src/service/src/models/QuoteResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAkKH,0DAaC;AAED,sDAEC;AAED,gEAuBC;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AAgB,CAAC;QACzC,gBAAgB,EAAE,KAAK,CAAC,gBAAgB,CAAC;QACzC,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,kBAAkB,EAAE,IAAA,yCAAsB,EAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;QACrE,OAAO,EAAE,CAAE,KAAK,CAAC,OAAO,CAAgB,CAAC,GAAG,CAAC,2BAAe,CAAC,CAAC;QAC9D,WAAW,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAChD,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC;QACrC,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,YAAY,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,YAAY,CAAC,CAAC;KACrD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/RawDutchAmount.d.ts b/dist/cjs/service/src/models/RawDutchAmount.d.ts new file mode 100644 index 0000000..12887a8 --- /dev/null +++ b/dist/cjs/service/src/models/RawDutchAmount.d.ts @@ -0,0 +1,51 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface RawDutchAmount + */ +export interface RawDutchAmount { + /** + * + * @type {string} + * @memberof RawDutchAmount + */ + token: string; + /** + * + * @type {string} + * @memberof RawDutchAmount + */ + startAmount: string; + /** + * + * @type {string} + * @memberof RawDutchAmount + */ + endAmount: string; + /** + * + * @type {string} + * @memberof RawDutchAmount + */ + recipient?: string; +} +/** + * Check if a given object implements the RawDutchAmount interface. + */ +export declare function instanceOfRawDutchAmount(value: object): value is RawDutchAmount; +export declare function RawDutchAmountFromJSON(json: any): RawDutchAmount; +export declare function RawDutchAmountFromJSONTyped(json: any, ignoreDiscriminator: boolean): RawDutchAmount; +export declare function RawDutchAmountToJSON(json: any): RawDutchAmount; +export declare function RawDutchAmountToJSONTyped(value?: RawDutchAmount | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=RawDutchAmount.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/RawDutchAmount.d.ts.map b/dist/cjs/service/src/models/RawDutchAmount.d.ts.map new file mode 100644 index 0000000..0e6b1a2 --- /dev/null +++ b/dist/cjs/service/src/models/RawDutchAmount.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"RawDutchAmount.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/RawDutchAmount.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAK/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAWnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYlH"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/RawDutchAmount.js b/dist/cjs/service/src/models/RawDutchAmount.js new file mode 100644 index 0000000..a36fe38 --- /dev/null +++ b/dist/cjs/service/src/models/RawDutchAmount.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRawDutchAmount = instanceOfRawDutchAmount; +exports.RawDutchAmountFromJSON = RawDutchAmountFromJSON; +exports.RawDutchAmountFromJSONTyped = RawDutchAmountFromJSONTyped; +exports.RawDutchAmountToJSON = RawDutchAmountToJSON; +exports.RawDutchAmountToJSONTyped = RawDutchAmountToJSONTyped; +/** + * Check if a given object implements the RawDutchAmount interface. + */ +function instanceOfRawDutchAmount(value) { + if (!('token' in value) || value['token'] === undefined) + return false; + if (!('startAmount' in value) || value['startAmount'] === undefined) + return false; + if (!('endAmount' in value) || value['endAmount'] === undefined) + return false; + return true; +} +function RawDutchAmountFromJSON(json) { + return RawDutchAmountFromJSONTyped(json, false); +} +function RawDutchAmountFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'token': json['token'], + 'startAmount': json['startAmount'], + 'endAmount': json['endAmount'], + 'recipient': json['recipient'] == null ? undefined : json['recipient'], + }; +} +function RawDutchAmountToJSON(json) { + return RawDutchAmountToJSONTyped(json, false); +} +function RawDutchAmountToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'token': value['token'], + 'startAmount': value['startAmount'], + 'endAmount': value['endAmount'], + 'recipient': value['recipient'], + }; +} +//# sourceMappingURL=RawDutchAmount.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/RawDutchAmount.js.map b/dist/cjs/service/src/models/RawDutchAmount.js.map new file mode 100644 index 0000000..843ca59 --- /dev/null +++ b/dist/cjs/service/src/models/RawDutchAmount.js.map @@ -0,0 +1 @@ +{"version":3,"file":"RawDutchAmount.js","sourceRoot":"","sources":["../../../../../src/service/src/models/RawDutchAmount.ts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AI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;KAClC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/RouteItem.d.ts b/dist/cjs/service/src/models/RouteItem.d.ts new file mode 100644 index 0000000..d300551 --- /dev/null +++ b/dist/cjs/service/src/models/RouteItem.d.ts @@ -0,0 +1,52 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Token } from './Token'; +/** + * + * @export + * @interface RouteItem + */ +export interface RouteItem { + /** + * + * @type {string} + * @memberof RouteItem + */ + address: string; + /** + * + * @type {Token} + * @memberof RouteItem + */ + tokenIn: Token; + /** + * + * @type {Token} + * @memberof RouteItem + */ + tokenOut: Token; + /** + * + * @type {string} + * @memberof RouteItem + */ + fee: string; +} +/** + * Check if a given object implements the RouteItem interface. + */ +export declare function instanceOfRouteItem(value: object): value is RouteItem; +export declare function RouteItemFromJSON(json: any): RouteItem; +export declare function RouteItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): RouteItem; +export declare function RouteItemToJSON(json: any): RouteItem; +export declare function RouteItemToJSONTyped(value?: RouteItem | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=RouteItem.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/RouteItem.d.ts.map b/dist/cjs/service/src/models/RouteItem.d.ts.map new file mode 100644 index 0000000..d5bb535 --- /dev/null +++ b/dist/cjs/service/src/models/RouteItem.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"RouteItem.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/RouteItem.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQrC;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC;IAChB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAMrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAWzF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYxG"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/RouteItem.js b/dist/cjs/service/src/models/RouteItem.js new file mode 100644 index 0000000..dbee30c --- /dev/null +++ b/dist/cjs/service/src/models/RouteItem.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRouteItem = instanceOfRouteItem; +exports.RouteItemFromJSON = RouteItemFromJSON; +exports.RouteItemFromJSONTyped = RouteItemFromJSONTyped; +exports.RouteItemToJSON = RouteItemToJSON; +exports.RouteItemToJSONTyped = RouteItemToJSONTyped; +const Token_1 = require("./Token"); +/** + * Check if a given object implements the RouteItem interface. + */ +function instanceOfRouteItem(value) { + if (!('address' in value) || value['address'] === undefined) + return false; + if (!('tokenIn' in value) || value['tokenIn'] === undefined) + return false; + if (!('tokenOut' in value) || value['tokenOut'] === undefined) + return false; + if (!('fee' in value) || value['fee'] === undefined) + return false; + return true; +} +function RouteItemFromJSON(json) { + return RouteItemFromJSONTyped(json, false); +} +function RouteItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'], + 'tokenIn': (0, Token_1.TokenFromJSON)(json['tokenIn']), + 'tokenOut': (0, Token_1.TokenFromJSON)(json['tokenOut']), + 'fee': json['fee'], + }; +} +function RouteItemToJSON(json) { + return RouteItemToJSONTyped(json, false); +} +function RouteItemToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'tokenIn': (0, Token_1.TokenToJSON)(value['tokenIn']), + 'tokenOut': (0, Token_1.TokenToJSON)(value['tokenOut']), + 'fee': value['fee'], + }; +} +//# sourceMappingURL=RouteItem.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/RouteItem.js.map b/dist/cjs/service/src/models/RouteItem.js.map new file mode 100644 index 0000000..933e692 --- /dev/null +++ b/dist/cjs/service/src/models/RouteItem.js.map @@ -0,0 +1 @@ +{"version":3,"file":"RouteItem.js","sourceRoot":"","sources":["../../../../../src/service/src/models/RouteItem.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA8CH,kDAMC;AAED,8CAEC;AAED,wDAWC;AAED,0CAEC;AAED,oDAYC;AAnFD,mCAKiB;AAkCjB;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAAa;IAC7C,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK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SAAS,EAAE,IAAA,mBAAW,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QACxC,UAAU,EAAE,IAAA,mBAAW,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAC1C,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;KACtB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Scoreboard.d.ts b/dist/cjs/service/src/models/Scoreboard.d.ts new file mode 100644 index 0000000..7f593da --- /dev/null +++ b/dist/cjs/service/src/models/Scoreboard.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ScoreboardItem } from './ScoreboardItem'; +/** + * + * @export + * @interface Scoreboard + */ +export interface Scoreboard { + /** + * + * @type {Array} + * @memberof Scoreboard + */ + items: Array; +} +/** + * Check if a given object implements the Scoreboard interface. + */ +export declare function instanceOfScoreboard(value: object): value is Scoreboard; +export declare function ScoreboardFromJSON(json: any): Scoreboard; +export declare function ScoreboardFromJSONTyped(json: any, ignoreDiscriminator: boolean): Scoreboard; +export declare function ScoreboardToJSON(json: any): Scoreboard; +export declare function ScoreboardToJSONTyped(value?: Scoreboard | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=Scoreboard.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Scoreboard.d.ts.map b/dist/cjs/service/src/models/Scoreboard.d.ts.map new file mode 100644 index 0000000..4aa1db8 --- /dev/null +++ b/dist/cjs/service/src/models/Scoreboard.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Scoreboard.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/Scoreboard.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAQvD;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAGvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAQ3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS1G"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Scoreboard.js b/dist/cjs/service/src/models/Scoreboard.js new file mode 100644 index 0000000..66c2ade --- /dev/null +++ b/dist/cjs/service/src/models/Scoreboard.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfScoreboard = instanceOfScoreboard; +exports.ScoreboardFromJSON = ScoreboardFromJSON; +exports.ScoreboardFromJSONTyped = ScoreboardFromJSONTyped; +exports.ScoreboardToJSON = ScoreboardToJSON; +exports.ScoreboardToJSONTyped = ScoreboardToJSONTyped; +const ScoreboardItem_1 = require("./ScoreboardItem"); +/** + * Check if a given object implements the Scoreboard interface. + */ +function instanceOfScoreboard(value) { + if (!('items' in value) || value['items'] === undefined) + return false; + return true; +} +function ScoreboardFromJSON(json) { + return ScoreboardFromJSONTyped(json, false); +} +function ScoreboardFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'items': (json['items'].map(ScoreboardItem_1.ScoreboardItemFromJSON)), + }; +} +function ScoreboardToJSON(json) { + return ScoreboardToJSONTyped(json, false); +} +function ScoreboardToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'items': (value['items'].map(ScoreboardItem_1.ScoreboardItemToJSON)), + }; +} +//# sourceMappingURL=Scoreboard.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Scoreboard.js.map b/dist/cjs/service/src/models/Scoreboard.js.map new file mode 100644 index 0000000..95fa7d6 --- /dev/null +++ b/dist/cjs/service/src/models/Scoreboard.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Scoreboard.js","sourceRoot":"","sources":["../../../../../src/service/src/models/Scoreboard.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,oDAGC;AAED,gDAEC;AAED,0DAQC;AAED,4CAEC;AAED,sDASC;AAxDD,qDAK0B;AAgB1B;;GAEG;AACH,SAAgB,oBAAoB,CAAC,KAAa;IAC9C,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS,EAAE,mBAA4B;IAC3E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,CAAE,IAAI,CAAC,OAAO,CAAgB,CAAC,GAAG,CAAC,uCAAsB,CAAC,CAAC;KACvE,CAAC;AACN,CAAC;AAED,SAAgB,gBAAgB,CAAC,IAAS;IACtC,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,qBAAqB,CAAC,KAAyB,EAAE,sBAA+B,KAAK;IACjG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,CAAE,KAAK,CAAC,OAAO,CAAgB,CAAC,GAAG,CAAC,qCAAoB,CAAC,CAAC;KACtE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/ScoreboardItem.d.ts b/dist/cjs/service/src/models/ScoreboardItem.d.ts new file mode 100644 index 0000000..fe5409c --- /dev/null +++ b/dist/cjs/service/src/models/ScoreboardItem.d.ts @@ -0,0 +1,39 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ScoreboardItem + */ +export interface ScoreboardItem { + /** + * + * @type {string} + * @memberof ScoreboardItem + */ + address: string; + /** + * + * @type {number} + * @memberof ScoreboardItem + */ + points: number; +} +/** + * Check if a given object implements the ScoreboardItem interface. + */ +export declare function instanceOfScoreboardItem(value: object): value is ScoreboardItem; +export declare function ScoreboardItemFromJSON(json: any): ScoreboardItem; +export declare function ScoreboardItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): ScoreboardItem; +export declare function ScoreboardItemToJSON(json: any): ScoreboardItem; +export declare function ScoreboardItemToJSONTyped(value?: ScoreboardItem | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=ScoreboardItem.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/ScoreboardItem.d.ts.map b/dist/cjs/service/src/models/ScoreboardItem.d.ts.map new file mode 100644 index 0000000..1022c85 --- /dev/null +++ b/dist/cjs/service/src/models/ScoreboardItem.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ScoreboardItem.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/ScoreboardItem.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAI/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CASnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUlH"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/ScoreboardItem.js b/dist/cjs/service/src/models/ScoreboardItem.js new file mode 100644 index 0000000..ea59ff8 --- /dev/null +++ b/dist/cjs/service/src/models/ScoreboardItem.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfScoreboardItem = instanceOfScoreboardItem; +exports.ScoreboardItemFromJSON = ScoreboardItemFromJSON; +exports.ScoreboardItemFromJSONTyped = ScoreboardItemFromJSONTyped; +exports.ScoreboardItemToJSON = ScoreboardItemToJSON; +exports.ScoreboardItemToJSONTyped = ScoreboardItemToJSONTyped; +/** + * Check if a given object implements the ScoreboardItem interface. + */ +function instanceOfScoreboardItem(value) { + if (!('address' in value) || value['address'] === undefined) + return false; + if (!('points' in value) || value['points'] === undefined) + return false; + return true; +} +function ScoreboardItemFromJSON(json) { + return ScoreboardItemFromJSONTyped(json, false); +} +function ScoreboardItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'], + 'points': json['points'], + }; +} +function ScoreboardItemToJSON(json) { + return ScoreboardItemToJSONTyped(json, false); +} +function ScoreboardItemToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'points': value['points'], + }; +} +//# sourceMappingURL=ScoreboardItem.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/ScoreboardItem.js.map b/dist/cjs/service/src/models/ScoreboardItem.js.map new file mode 100644 index 0000000..be3e524 --- /dev/null +++ b/dist/cjs/service/src/models/ScoreboardItem.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ScoreboardItem.js","sourceRoot":"","sources":["../../../../../src/service/src/models/ScoreboardItem.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,4DAIC;AAED,wDAEC;AAED,kEASC;AAED,oDAEC;AAED,8DAUC;AAtCD;;GAEG;AACH,SAAgB,wBAAwB,CAAC,KAAa;IAClD,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS;IAC5C,OAAO,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS,EAAE,mBAA4B;IAC/E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;KAC3B,CAAC;AACN,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,KAA6B,EAAE,sBAA+B,KAAK;IACzG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemBarkTxRequest.d.ts b/dist/cjs/service/src/models/StablecoinSystemBarkTxRequest.d.ts new file mode 100644 index 0000000..328310a --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemBarkTxRequest.d.ts @@ -0,0 +1,39 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemBarkTxRequest + */ +export interface StablecoinSystemBarkTxRequest { + /** + * Ethereum address of the user who is liquidating the vault and receiving incentives. + * @type {string} + * @memberof StablecoinSystemBarkTxRequest + */ + user: string; + /** + * The ID of the vault + * @type {number} + * @memberof StablecoinSystemBarkTxRequest + */ + vaultId: number; +} +/** + * Check if a given object implements the StablecoinSystemBarkTxRequest interface. + */ +export declare function instanceOfStablecoinSystemBarkTxRequest(value: object): value is StablecoinSystemBarkTxRequest; +export declare function StablecoinSystemBarkTxRequestFromJSON(json: any): StablecoinSystemBarkTxRequest; +export declare function StablecoinSystemBarkTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemBarkTxRequest; +export declare function StablecoinSystemBarkTxRequestToJSON(json: any): StablecoinSystemBarkTxRequest; +export declare function StablecoinSystemBarkTxRequestToJSONTyped(value?: StablecoinSystemBarkTxRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=StablecoinSystemBarkTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemBarkTxRequest.d.ts.map b/dist/cjs/service/src/models/StablecoinSystemBarkTxRequest.d.ts.map new file mode 100644 index 0000000..91a9647 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemBarkTxRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StablecoinSystemBarkTxRequest.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/StablecoinSystemBarkTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,uCAAuC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,6BAA6B,CAI7G;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE9F;AAED,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,6BAA6B,CASjI;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE5F;AAED,wBAAgB,wCAAwC,CAAC,KAAK,CAAC,EAAE,6BAA6B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUhJ"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemBarkTxRequest.js b/dist/cjs/service/src/models/StablecoinSystemBarkTxRequest.js new file mode 100644 index 0000000..303637a --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemBarkTxRequest.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfStablecoinSystemBarkTxRequest = instanceOfStablecoinSystemBarkTxRequest; +exports.StablecoinSystemBarkTxRequestFromJSON = StablecoinSystemBarkTxRequestFromJSON; +exports.StablecoinSystemBarkTxRequestFromJSONTyped = StablecoinSystemBarkTxRequestFromJSONTyped; +exports.StablecoinSystemBarkTxRequestToJSON = StablecoinSystemBarkTxRequestToJSON; +exports.StablecoinSystemBarkTxRequestToJSONTyped = StablecoinSystemBarkTxRequestToJSONTyped; +/** + * Check if a given object implements the StablecoinSystemBarkTxRequest interface. + */ +function instanceOfStablecoinSystemBarkTxRequest(value) { + if (!('user' in value) || value['user'] === undefined) + return false; + if (!('vaultId' in value) || value['vaultId'] === undefined) + return false; + return true; +} +function StablecoinSystemBarkTxRequestFromJSON(json) { + return StablecoinSystemBarkTxRequestFromJSONTyped(json, false); +} +function StablecoinSystemBarkTxRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'user': json['user'], + 'vaultId': json['vaultId'], + }; +} +function StablecoinSystemBarkTxRequestToJSON(json) { + return StablecoinSystemBarkTxRequestToJSONTyped(json, false); +} +function StablecoinSystemBarkTxRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'user': value['user'], + 'vaultId': value['vaultId'], + }; +} +//# sourceMappingURL=StablecoinSystemBarkTxRequest.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemBarkTxRequest.js.map b/dist/cjs/service/src/models/StablecoinSystemBarkTxRequest.js.map new file mode 100644 index 0000000..82ae35d --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemBarkTxRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StablecoinSystemBarkTxRequest.js","sourceRoot":"","sources":["../../../../../src/service/src/models/StablecoinSystemBarkTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,0FAIC;AAED,sFAEC;AAED,gGASC;AAED,kFAEC;AAED,4FAUC;AAtCD;;GAEG;AACH,SAAgB,uCAAuC,CAAC,KAAa;IACjE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qCAAqC,CAAC,IAAS;IAC3D,OAAO,0CAA0C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnE,CAAC;AAED,SAAgB,0CAA0C,CAAC,IAAS,EAAE,mBAA4B;IAC9F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AAED,SAAgB,mCAAmC,CAAC,IAAS;IACzD,OAAO,wCAAwC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjE,CAAC;AAED,SAAgB,wCAAwC,CAAC,KAA4C,EAAE,sBAA+B,KAAK;IACvI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemCreateVaultTxRequest.d.ts b/dist/cjs/service/src/models/StablecoinSystemCreateVaultTxRequest.d.ts new file mode 100644 index 0000000..b89ba79 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemCreateVaultTxRequest.d.ts @@ -0,0 +1,51 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemCreateVaultTxRequest + */ +export interface StablecoinSystemCreateVaultTxRequest { + /** + * The name of the ilk + * @type {string} + * @memberof StablecoinSystemCreateVaultTxRequest + */ + ilkName: string; + /** + * Ethereum address of the user + * @type {string} + * @memberof StablecoinSystemCreateVaultTxRequest + */ + user: string; + /** + * The amount of collateral to deposit in native token units + * @type {string} + * @memberof StablecoinSystemCreateVaultTxRequest + */ + collateralAmount?: string; + /** + * The amount of stablecoin to mint in native token units + * @type {string} + * @memberof StablecoinSystemCreateVaultTxRequest + */ + mintAmount: string; +} +/** + * Check if a given object implements the StablecoinSystemCreateVaultTxRequest interface. + */ +export declare function instanceOfStablecoinSystemCreateVaultTxRequest(value: object): value is StablecoinSystemCreateVaultTxRequest; +export declare function StablecoinSystemCreateVaultTxRequestFromJSON(json: any): StablecoinSystemCreateVaultTxRequest; +export declare function StablecoinSystemCreateVaultTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemCreateVaultTxRequest; +export declare function StablecoinSystemCreateVaultTxRequestToJSON(json: any): StablecoinSystemCreateVaultTxRequest; +export declare function StablecoinSystemCreateVaultTxRequestToJSONTyped(value?: StablecoinSystemCreateVaultTxRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=StablecoinSystemCreateVaultTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemCreateVaultTxRequest.d.ts.map b/dist/cjs/service/src/models/StablecoinSystemCreateVaultTxRequest.d.ts.map new file mode 100644 index 0000000..371043b --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemCreateVaultTxRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StablecoinSystemCreateVaultTxRequest.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/StablecoinSystemCreateVaultTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,oCAAoC;IACjD;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,8CAA8C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oCAAoC,CAK3H;AAED,wBAAgB,4CAA4C,CAAC,IAAI,EAAE,GAAG,GAAG,oCAAoC,CAE5G;AAED,wBAAgB,iDAAiD,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oCAAoC,CAW/I;AAED,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,GAAG,GAAG,oCAAoC,CAE1G;AAED,wBAAgB,+CAA+C,CAAC,KAAK,CAAC,EAAE,oCAAoC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAY9J"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemCreateVaultTxRequest.js b/dist/cjs/service/src/models/StablecoinSystemCreateVaultTxRequest.js new file mode 100644 index 0000000..e621f06 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemCreateVaultTxRequest.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfStablecoinSystemCreateVaultTxRequest = instanceOfStablecoinSystemCreateVaultTxRequest; +exports.StablecoinSystemCreateVaultTxRequestFromJSON = StablecoinSystemCreateVaultTxRequestFromJSON; +exports.StablecoinSystemCreateVaultTxRequestFromJSONTyped = StablecoinSystemCreateVaultTxRequestFromJSONTyped; +exports.StablecoinSystemCreateVaultTxRequestToJSON = StablecoinSystemCreateVaultTxRequestToJSON; +exports.StablecoinSystemCreateVaultTxRequestToJSONTyped = StablecoinSystemCreateVaultTxRequestToJSONTyped; +/** + * Check if a given object implements the StablecoinSystemCreateVaultTxRequest interface. + */ +function instanceOfStablecoinSystemCreateVaultTxRequest(value) { + if (!('ilkName' in value) || value['ilkName'] === undefined) + return false; + if (!('user' in value) || value['user'] === undefined) + return false; + if (!('mintAmount' in value) || value['mintAmount'] === undefined) + return false; + return true; +} +function StablecoinSystemCreateVaultTxRequestFromJSON(json) { + return StablecoinSystemCreateVaultTxRequestFromJSONTyped(json, false); +} +function StablecoinSystemCreateVaultTxRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'ilkName': json['ilkName'], + 'user': json['user'], + 'collateralAmount': json['collateralAmount'] == null ? undefined : json['collateralAmount'], + 'mintAmount': json['mintAmount'], + }; +} +function StablecoinSystemCreateVaultTxRequestToJSON(json) { + return StablecoinSystemCreateVaultTxRequestToJSONTyped(json, false); +} +function StablecoinSystemCreateVaultTxRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'ilkName': value['ilkName'], + 'user': value['user'], + 'collateralAmount': value['collateralAmount'], + 'mintAmount': value['mintAmount'], + }; +} +//# sourceMappingURL=StablecoinSystemCreateVaultTxRequest.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemCreateVaultTxRequest.js.map b/dist/cjs/service/src/models/StablecoinSystemCreateVaultTxRequest.js.map new file mode 100644 index 0000000..9a3ef8b --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemCreateVaultTxRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StablecoinSystemCreateVaultTxRequest.js","sourceRoot":"","sources":["../../../../../src/service/src/models/StablecoinSystemCreateVaultTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAsCH,wGAKC;AAED,oGAEC;AAED,8GAWC;AAED,gGAEC;AAED,0GAYC;AA3CD;;GAEG;AACH,SAAgB,8CAA8C,CAAC,KAAa;IACxE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,4CAA4C,CAAC,IAAS;IAClE,OAAO,iDAAiD,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1E,CAAC;AAED,SAAgB,iDAAiD,CAAC,IAAS,EAAE,mBAA4B;IACrG,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC;QAC3F,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;KACnC,CAAC;AACN,CAAC;AAED,SAAgB,0CAA0C,CAAC,IAAS;IAChE,OAAO,+CAA+C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxE,CAAC;AAED,SAAgB,+CAA+C,CAAC,KAAmD,EAAE,sBAA+B,KAAK;IACrJ,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,kBAAkB,EAAE,KAAK,CAAC,kBAAkB,CAAC;QAC7C,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;KACpC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemDepositCollateralTxRequest.d.ts b/dist/cjs/service/src/models/StablecoinSystemDepositCollateralTxRequest.d.ts new file mode 100644 index 0000000..e9b5071 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemDepositCollateralTxRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemDepositCollateralTxRequest + */ +export interface StablecoinSystemDepositCollateralTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StablecoinSystemDepositCollateralTxRequest + */ + user: string; + /** + * The ID of the vault + * @type {number} + * @memberof StablecoinSystemDepositCollateralTxRequest + */ + vaultId: number; + /** + * The amount of collateral to deposit in native token units, if not provided, it will be calculated based on the wallet balance + * @type {string} + * @memberof StablecoinSystemDepositCollateralTxRequest + */ + amount?: string; +} +/** + * Check if a given object implements the StablecoinSystemDepositCollateralTxRequest interface. + */ +export declare function instanceOfStablecoinSystemDepositCollateralTxRequest(value: object): value is StablecoinSystemDepositCollateralTxRequest; +export declare function StablecoinSystemDepositCollateralTxRequestFromJSON(json: any): StablecoinSystemDepositCollateralTxRequest; +export declare function StablecoinSystemDepositCollateralTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemDepositCollateralTxRequest; +export declare function StablecoinSystemDepositCollateralTxRequestToJSON(json: any): StablecoinSystemDepositCollateralTxRequest; +export declare function StablecoinSystemDepositCollateralTxRequestToJSONTyped(value?: StablecoinSystemDepositCollateralTxRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=StablecoinSystemDepositCollateralTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemDepositCollateralTxRequest.d.ts.map b/dist/cjs/service/src/models/StablecoinSystemDepositCollateralTxRequest.d.ts.map new file mode 100644 index 0000000..e4a3df6 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemDepositCollateralTxRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StablecoinSystemDepositCollateralTxRequest.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/StablecoinSystemDepositCollateralTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,0CAA0C;IACvD;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,oDAAoD,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,0CAA0C,CAIvI;AAED,wBAAgB,kDAAkD,CAAC,IAAI,EAAE,GAAG,GAAG,0CAA0C,CAExH;AAED,wBAAgB,uDAAuD,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,0CAA0C,CAU3J;AAED,wBAAgB,gDAAgD,CAAC,IAAI,EAAE,GAAG,GAAG,0CAA0C,CAEtH;AAED,wBAAgB,qDAAqD,CAAC,KAAK,CAAC,EAAE,0CAA0C,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW1K"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemDepositCollateralTxRequest.js b/dist/cjs/service/src/models/StablecoinSystemDepositCollateralTxRequest.js new file mode 100644 index 0000000..2228e9e --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemDepositCollateralTxRequest.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfStablecoinSystemDepositCollateralTxRequest = instanceOfStablecoinSystemDepositCollateralTxRequest; +exports.StablecoinSystemDepositCollateralTxRequestFromJSON = StablecoinSystemDepositCollateralTxRequestFromJSON; +exports.StablecoinSystemDepositCollateralTxRequestFromJSONTyped = StablecoinSystemDepositCollateralTxRequestFromJSONTyped; +exports.StablecoinSystemDepositCollateralTxRequestToJSON = StablecoinSystemDepositCollateralTxRequestToJSON; +exports.StablecoinSystemDepositCollateralTxRequestToJSONTyped = StablecoinSystemDepositCollateralTxRequestToJSONTyped; +/** + * Check if a given object implements the StablecoinSystemDepositCollateralTxRequest interface. + */ +function instanceOfStablecoinSystemDepositCollateralTxRequest(value) { + if (!('user' in value) || value['user'] === undefined) + return false; + if (!('vaultId' in value) || value['vaultId'] === undefined) + return false; + return true; +} +function StablecoinSystemDepositCollateralTxRequestFromJSON(json) { + return StablecoinSystemDepositCollateralTxRequestFromJSONTyped(json, false); +} +function StablecoinSystemDepositCollateralTxRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'user': json['user'], + 'vaultId': json['vaultId'], + 'amount': json['amount'] == null ? undefined : json['amount'], + }; +} +function StablecoinSystemDepositCollateralTxRequestToJSON(json) { + return StablecoinSystemDepositCollateralTxRequestToJSONTyped(json, false); +} +function StablecoinSystemDepositCollateralTxRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'user': value['user'], + 'vaultId': value['vaultId'], + 'amount': value['amount'], + }; +} +//# sourceMappingURL=StablecoinSystemDepositCollateralTxRequest.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemDepositCollateralTxRequest.js.map b/dist/cjs/service/src/models/StablecoinSystemDepositCollateralTxRequest.js.map new file mode 100644 index 0000000..2e8a520 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemDepositCollateralTxRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StablecoinSystemDepositCollateralTxRequest.js","sourceRoot":"","sources":["../../../../../src/service/src/models/StablecoinSystemDepositCollateralTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,oHAIC;AAED,gHAEC;AAED,0HAUC;AAED,4GAEC;AAED,sHAWC;AAxCD;;GAEG;AACH,SAAgB,oDAAoD,CAAC,KAAa;IAC9E,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kDAAkD,CAAC,IAAS;IACxE,OAAO,uDAAuD,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChF,CAAC;AAED,SAAgB,uDAAuD,CAAC,IAAS,EAAE,mBAA4B;IAC3G,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,gDAAgD,CAAC,IAAS;IACtE,OAAO,qDAAqD,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED,SAAgB,qDAAqD,CAAC,KAAyD,EAAE,sBAA+B,KAAK;IACjK,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemGemexitTxRequest.d.ts b/dist/cjs/service/src/models/StablecoinSystemGemexitTxRequest.d.ts new file mode 100644 index 0000000..6995865 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemGemexitTxRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemGemexitTxRequest + */ +export interface StablecoinSystemGemexitTxRequest { + /** + * Ethereum address of the user intends to exit gem tokens from the Vat contract and receive them.. + * @type {string} + * @memberof StablecoinSystemGemexitTxRequest + */ + user: string; + /** + * The amount of Gem token to exit from Vat contract + * @type {string} + * @memberof StablecoinSystemGemexitTxRequest + */ + amount: string; + /** + * Name of the ILK + * @type {string} + * @memberof StablecoinSystemGemexitTxRequest + */ + ilk: string; +} +/** + * Check if a given object implements the StablecoinSystemGemexitTxRequest interface. + */ +export declare function instanceOfStablecoinSystemGemexitTxRequest(value: object): value is StablecoinSystemGemexitTxRequest; +export declare function StablecoinSystemGemexitTxRequestFromJSON(json: any): StablecoinSystemGemexitTxRequest; +export declare function StablecoinSystemGemexitTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemGemexitTxRequest; +export declare function StablecoinSystemGemexitTxRequestToJSON(json: any): StablecoinSystemGemexitTxRequest; +export declare function StablecoinSystemGemexitTxRequestToJSONTyped(value?: StablecoinSystemGemexitTxRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=StablecoinSystemGemexitTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemGemexitTxRequest.d.ts.map b/dist/cjs/service/src/models/StablecoinSystemGemexitTxRequest.d.ts.map new file mode 100644 index 0000000..54e6e0e --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemGemexitTxRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StablecoinSystemGemexitTxRequest.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/StablecoinSystemGemexitTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,0CAA0C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gCAAgC,CAKnH;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,GAAG,gCAAgC,CAEpG;AAED,wBAAgB,6CAA6C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gCAAgC,CAUvI;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,GAAG,gCAAgC,CAElG;AAED,wBAAgB,2CAA2C,CAAC,KAAK,CAAC,EAAE,gCAAgC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWtJ"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemGemexitTxRequest.js b/dist/cjs/service/src/models/StablecoinSystemGemexitTxRequest.js new file mode 100644 index 0000000..871f2cf --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemGemexitTxRequest.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfStablecoinSystemGemexitTxRequest = instanceOfStablecoinSystemGemexitTxRequest; +exports.StablecoinSystemGemexitTxRequestFromJSON = StablecoinSystemGemexitTxRequestFromJSON; +exports.StablecoinSystemGemexitTxRequestFromJSONTyped = StablecoinSystemGemexitTxRequestFromJSONTyped; +exports.StablecoinSystemGemexitTxRequestToJSON = StablecoinSystemGemexitTxRequestToJSON; +exports.StablecoinSystemGemexitTxRequestToJSONTyped = StablecoinSystemGemexitTxRequestToJSONTyped; +/** + * Check if a given object implements the StablecoinSystemGemexitTxRequest interface. + */ +function instanceOfStablecoinSystemGemexitTxRequest(value) { + if (!('user' in value) || value['user'] === undefined) + return false; + if (!('amount' in value) || value['amount'] === undefined) + return false; + if (!('ilk' in value) || value['ilk'] === undefined) + return false; + return true; +} +function StablecoinSystemGemexitTxRequestFromJSON(json) { + return StablecoinSystemGemexitTxRequestFromJSONTyped(json, false); +} +function StablecoinSystemGemexitTxRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'user': json['user'], + 'amount': json['amount'], + 'ilk': json['ilk'], + }; +} +function StablecoinSystemGemexitTxRequestToJSON(json) { + return StablecoinSystemGemexitTxRequestToJSONTyped(json, false); +} +function StablecoinSystemGemexitTxRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'user': value['user'], + 'amount': value['amount'], + 'ilk': value['ilk'], + }; +} +//# sourceMappingURL=StablecoinSystemGemexitTxRequest.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemGemexitTxRequest.js.map b/dist/cjs/service/src/models/StablecoinSystemGemexitTxRequest.js.map new file mode 100644 index 0000000..0c6e778 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemGemexitTxRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StablecoinSystemGemexitTxRequest.js","sourceRoot":"","sources":["../../../../../src/service/src/models/StablecoinSystemGemexitTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,gGAKC;AAED,4FAEC;AAED,sGAUC;AAED,wFAEC;AAED,kGAWC;AAzCD;;GAEG;AACH,SAAgB,0CAA0C,CAAC,KAAa;IACpE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js/service/src/models/StablecoinSystemMintZarTxRequest.d.ts new file mode 100644 index 0000000..2bc26b7 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemMintZarTxRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemMintZarTxRequest + */ +export interface StablecoinSystemMintZarTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StablecoinSystemMintZarTxRequest + */ + user: string; + /** + * The ID of the vault + * @type {number} + * @memberof StablecoinSystemMintZarTxRequest + */ + vaultId: number; + /** + * The amount of stablecoin to mint in native token units, if not provided, it will be calculated based on the available to mint amount + * @type {string} + * @memberof StablecoinSystemMintZarTxRequest + */ + amount?: string; +} +/** + * Check if a given object implements the StablecoinSystemMintZarTxRequest interface. + */ +export declare function instanceOfStablecoinSystemMintZarTxRequest(value: object): value is StablecoinSystemMintZarTxRequest; +export declare function StablecoinSystemMintZarTxRequestFromJSON(json: any): StablecoinSystemMintZarTxRequest; +export declare function StablecoinSystemMintZarTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemMintZarTxRequest; +export declare function StablecoinSystemMintZarTxRequestToJSON(json: any): StablecoinSystemMintZarTxRequest; +export declare function StablecoinSystemMintZarTxRequestToJSONTyped(value?: StablecoinSystemMintZarTxRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=StablecoinSystemMintZarTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemMintZarTxRequest.d.ts.map b/dist/cjs/service/src/models/StablecoinSystemMintZarTxRequest.d.ts.map new file mode 100644 index 0000000..f24878b --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemMintZarTxRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StablecoinSystemMintZarTxRequest.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/StablecoinSystemMintZarTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,0CAA0C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gCAAgC,CAInH;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,GAAG,gCAAgC,CAEpG;AAED,wBAAgB,6CAA6C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gCAAgC,CAUvI;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,GAAG,gCAAgC,CAElG;AAED,wBAAgB,2CAA2C,CAAC,KAAK,CAAC,EAAE,gCAAgC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWtJ"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemMintZarTxRequest.js b/dist/cjs/service/src/models/StablecoinSystemMintZarTxRequest.js new file mode 100644 index 0000000..f6cc6c6 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemMintZarTxRequest.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfStablecoinSystemMintZarTxRequest = instanceOfStablecoinSystemMintZarTxRequest; +exports.StablecoinSystemMintZarTxRequestFromJSON = StablecoinSystemMintZarTxRequestFromJSON; +exports.StablecoinSystemMintZarTxRequestFromJSONTyped = StablecoinSystemMintZarTxRequestFromJSONTyped; +exports.StablecoinSystemMintZarTxRequestToJSON = StablecoinSystemMintZarTxRequestToJSON; +exports.StablecoinSystemMintZarTxRequestToJSONTyped = StablecoinSystemMintZarTxRequestToJSONTyped; +/** + * Check if a given object implements the StablecoinSystemMintZarTxRequest interface. + */ +function instanceOfStablecoinSystemMintZarTxRequest(value) { + if (!('user' in value) || value['user'] === undefined) + return false; + if (!('vaultId' in value) || value['vaultId'] === undefined) + return false; + return true; +} +function StablecoinSystemMintZarTxRequestFromJSON(json) { + return StablecoinSystemMintZarTxRequestFromJSONTyped(json, false); +} +function StablecoinSystemMintZarTxRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'user': json['user'], + 'vaultId': json['vaultId'], + 'amount': json['amount'] == null ? undefined : json['amount'], + }; +} +function StablecoinSystemMintZarTxRequestToJSON(json) { + return StablecoinSystemMintZarTxRequestToJSONTyped(json, false); +} +function StablecoinSystemMintZarTxRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'user': value['user'], + 'vaultId': value['vaultId'], + 'amount': value['amount'], + }; +} +//# sourceMappingURL=StablecoinSystemMintZarTxRequest.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemMintZarTxRequest.js.map b/dist/cjs/service/src/models/StablecoinSystemMintZarTxRequest.js.map new file mode 100644 index 0000000..1a93233 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemMintZarTxRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StablecoinSystemMintZarTxRequest.js","sourceRoot":"","sources":["../../../../../src/service/src/models/StablecoinSystemMintZarTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,gGAIC;AAED,4FAEC;AAED,sGAUC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js/service/src/models/StablecoinSystemRedoTxRequest.d.ts b/dist/cjs/service/src/models/StablecoinSystemRedoTxRequest.d.ts new file mode 100644 index 0000000..40ecdc1 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemRedoTxRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemRedoTxRequest + */ +export interface StablecoinSystemRedoTxRequest { + /** + * Ethereum address of the user resetting the auction and receiving incentives. + * @type {string} + * @memberof StablecoinSystemRedoTxRequest + */ + user: string; + /** + * The ID of the auction + * @type {number} + * @memberof StablecoinSystemRedoTxRequest + */ + auctionId: number; + /** + * Name of the ILK + * @type {string} + * @memberof StablecoinSystemRedoTxRequest + */ + ilk: string; +} +/** + * Check if a given object implements the StablecoinSystemRedoTxRequest interface. + */ +export declare function instanceOfStablecoinSystemRedoTxRequest(value: object): value is StablecoinSystemRedoTxRequest; +export declare function StablecoinSystemRedoTxRequestFromJSON(json: any): StablecoinSystemRedoTxRequest; +export declare function StablecoinSystemRedoTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemRedoTxRequest; +export declare function StablecoinSystemRedoTxRequestToJSON(json: any): StablecoinSystemRedoTxRequest; +export declare function StablecoinSystemRedoTxRequestToJSONTyped(value?: StablecoinSystemRedoTxRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=StablecoinSystemRedoTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemRedoTxRequest.d.ts.map b/dist/cjs/service/src/models/StablecoinSystemRedoTxRequest.d.ts.map new file mode 100644 index 0000000..9001ad3 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemRedoTxRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StablecoinSystemRedoTxRequest.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/StablecoinSystemRedoTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,uCAAuC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,6BAA6B,CAK7G;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE9F;AAED,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,6BAA6B,CAUjI;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE5F;AAED,wBAAgB,wCAAwC,CAAC,KAAK,CAAC,EAAE,6BAA6B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWhJ"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemRedoTxRequest.js b/dist/cjs/service/src/models/StablecoinSystemRedoTxRequest.js new file mode 100644 index 0000000..2aff5a6 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemRedoTxRequest.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfStablecoinSystemRedoTxRequest = instanceOfStablecoinSystemRedoTxRequest; +exports.StablecoinSystemRedoTxRequestFromJSON = StablecoinSystemRedoTxRequestFromJSON; +exports.StablecoinSystemRedoTxRequestFromJSONTyped = StablecoinSystemRedoTxRequestFromJSONTyped; +exports.StablecoinSystemRedoTxRequestToJSON = StablecoinSystemRedoTxRequestToJSON; +exports.StablecoinSystemRedoTxRequestToJSONTyped = StablecoinSystemRedoTxRequestToJSONTyped; +/** + * Check if a given object implements the StablecoinSystemRedoTxRequest interface. + */ +function instanceOfStablecoinSystemRedoTxRequest(value) { + if (!('user' in value) || value['user'] === undefined) + return false; + if (!('auctionId' in value) || value['auctionId'] === undefined) + return false; + if (!('ilk' in value) || value['ilk'] === undefined) + return false; + return true; +} +function StablecoinSystemRedoTxRequestFromJSON(json) { + return StablecoinSystemRedoTxRequestFromJSONTyped(json, false); +} +function StablecoinSystemRedoTxRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'user': json['user'], + 'auctionId': json['auctionId'], + 'ilk': json['ilk'], + }; +} +function StablecoinSystemRedoTxRequestToJSON(json) { + return StablecoinSystemRedoTxRequestToJSONTyped(json, false); +} +function StablecoinSystemRedoTxRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'user': value['user'], + 'auctionId': value['auctionId'], + 'ilk': value['ilk'], + }; +} +//# sourceMappingURL=StablecoinSystemRedoTxRequest.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemRedoTxRequest.js.map b/dist/cjs/service/src/models/StablecoinSystemRedoTxRequest.js.map new file mode 100644 index 0000000..537a2ba --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemRedoTxRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StablecoinSystemRedoTxRequest.js","sourceRoot":"","sources":["../../../../../src/service/src/models/StablecoinSystemRedoTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,0FAKC;AAED,sFAEC;AAED,gGAUC;AAED,kFAEC;AAED,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--git a/dist/cjs/service/src/models/StablecoinSystemRepayZarTxRequest.d.ts b/dist/cjs/service/src/models/StablecoinSystemRepayZarTxRequest.d.ts new file mode 100644 index 0000000..e3cbc23 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemRepayZarTxRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemRepayZarTxRequest + */ +export interface StablecoinSystemRepayZarTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StablecoinSystemRepayZarTxRequest + */ + user: string; + /** + * The ID of the vault + * @type {number} + * @memberof StablecoinSystemRepayZarTxRequest + */ + vaultId: number; + /** + * The amount of stablecoin to repay in native token units, if not provided, it will be calculated based on the borrow balance + * @type {string} + * @memberof StablecoinSystemRepayZarTxRequest + */ + amount?: string; +} +/** + * Check if a given object implements the StablecoinSystemRepayZarTxRequest interface. + */ +export declare function instanceOfStablecoinSystemRepayZarTxRequest(value: object): value is StablecoinSystemRepayZarTxRequest; +export declare function StablecoinSystemRepayZarTxRequestFromJSON(json: any): StablecoinSystemRepayZarTxRequest; +export declare function StablecoinSystemRepayZarTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemRepayZarTxRequest; +export declare function StablecoinSystemRepayZarTxRequestToJSON(json: any): StablecoinSystemRepayZarTxRequest; +export declare function StablecoinSystemRepayZarTxRequestToJSONTyped(value?: StablecoinSystemRepayZarTxRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=StablecoinSystemRepayZarTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemRepayZarTxRequest.d.ts.map b/dist/cjs/service/src/models/StablecoinSystemRepayZarTxRequest.d.ts.map new file mode 100644 index 0000000..44bde48 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemRepayZarTxRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StablecoinSystemRepayZarTxRequest.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/StablecoinSystemRepayZarTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IAC9C;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,2CAA2C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iCAAiC,CAIrH;AAED,wBAAgB,yCAAyC,CAAC,IAAI,EAAE,GAAG,GAAG,iCAAiC,CAEtG;AAED,wBAAgB,8CAA8C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iCAAiC,CAUzI;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,GAAG,iCAAiC,CAEpG;AAED,wBAAgB,4CAA4C,CAAC,KAAK,CAAC,EAAE,iCAAiC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWxJ"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemRepayZarTxRequest.js b/dist/cjs/service/src/models/StablecoinSystemRepayZarTxRequest.js new file mode 100644 index 0000000..50bb239 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemRepayZarTxRequest.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfStablecoinSystemRepayZarTxRequest = instanceOfStablecoinSystemRepayZarTxRequest; +exports.StablecoinSystemRepayZarTxRequestFromJSON = StablecoinSystemRepayZarTxRequestFromJSON; +exports.StablecoinSystemRepayZarTxRequestFromJSONTyped = StablecoinSystemRepayZarTxRequestFromJSONTyped; +exports.StablecoinSystemRepayZarTxRequestToJSON = StablecoinSystemRepayZarTxRequestToJSON; +exports.StablecoinSystemRepayZarTxRequestToJSONTyped = StablecoinSystemRepayZarTxRequestToJSONTyped; +/** + * Check if a given object implements the StablecoinSystemRepayZarTxRequest interface. + */ +function instanceOfStablecoinSystemRepayZarTxRequest(value) { + if (!('user' in value) || value['user'] === undefined) + return false; + if (!('vaultId' in value) || value['vaultId'] === undefined) + return false; + return true; +} +function StablecoinSystemRepayZarTxRequestFromJSON(json) { + return StablecoinSystemRepayZarTxRequestFromJSONTyped(json, false); +} +function StablecoinSystemRepayZarTxRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'user': json['user'], + 'vaultId': json['vaultId'], + 'amount': json['amount'] == null ? undefined : json['amount'], + }; +} +function StablecoinSystemRepayZarTxRequestToJSON(json) { + return StablecoinSystemRepayZarTxRequestToJSONTyped(json, false); +} +function StablecoinSystemRepayZarTxRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'user': value['user'], + 'vaultId': value['vaultId'], + 'amount': value['amount'], + }; +} +//# sourceMappingURL=StablecoinSystemRepayZarTxRequest.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemRepayZarTxRequest.js.map b/dist/cjs/service/src/models/StablecoinSystemRepayZarTxRequest.js.map new file mode 100644 index 0000000..d8f7108 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemRepayZarTxRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StablecoinSystemRepayZarTxRequest.js","sourceRoot":"","sources":["../../../../../src/service/src/models/StablecoinSystemRepayZ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AAK,CAAC,SAAS,CAAC;QAC3B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemStats.d.ts b/dist/cjs/service/src/models/StablecoinSystemStats.d.ts new file mode 100644 index 0000000..dc2ab33 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemStats.d.ts @@ -0,0 +1,75 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemStats + */ +export interface StablecoinSystemStats { + /** + * System surplus + * @type {{ [key: string]: string | undefined; }} + * @memberof StablecoinSystemStats + */ + systemSurplus: { + [key: string]: string | undefined; + }; + /** + * System debt + * @type {{ [key: string]: string | undefined; }} + * @memberof StablecoinSystemStats + */ + systemDebt: { + [key: string]: string | undefined; + }; + /** + * System debt ceiling + * @type {{ [key: string]: string | undefined; }} + * @memberof StablecoinSystemStats + */ + systemDebtCeiling: { + [key: string]: string | undefined; + }; + /** + * System surplus buffer + * @type {{ [key: string]: string | undefined; }} + * @memberof StablecoinSystemStats + */ + systemSurplusBuffer: { + [key: string]: string | undefined; + }; + /** + * System bad debt + * @type {{ [key: string]: string | undefined; }} + * @memberof StablecoinSystemStats + */ + systemBadDebt: { + [key: string]: string | undefined; + }; + /** + * System surplus lot size + * @type {{ [key: string]: string | undefined; }} + * @memberof StablecoinSystemStats + */ + systemSurplusLotSize: { + [key: string]: string | undefined; + }; +} +/** + * Check if a given object implements the StablecoinSystemStats interface. + */ +export declare function instanceOfStablecoinSystemStats(value: object): value is StablecoinSystemStats; +export declare function StablecoinSystemStatsFromJSON(json: any): StablecoinSystemStats; +export declare function StablecoinSystemStatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemStats; +export declare function StablecoinSystemStatsToJSON(json: any): StablecoinSystemStats; +export declare function StablecoinSystemStatsToJSONTyped(value?: StablecoinSystemStats | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=StablecoinSystemStats.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemStats.d.ts.map b/dist/cjs/service/src/models/StablecoinSystemStats.d.ts.map new file mode 100644 index 0000000..8d681d1 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemStats.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StablecoinSystemStats.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/StablecoinSystemStats.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,aAAa,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACtD;;;;OAIG;IACH,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACnD;;;;OAIG;IACH,iBAAiB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC1D;;;;OAIG;IACH,mBAAmB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC5D;;;;OAIG;IACH,aAAa,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACtD;;;;OAIG;IACH,oBAAoB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CAChE;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAQ7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAajH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAchI"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemStats.js b/dist/cjs/service/src/models/StablecoinSystemStats.js new file mode 100644 index 0000000..1bc5d70 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemStats.js @@ -0,0 +1,71 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfStablecoinSystemStats = instanceOfStablecoinSystemStats; +exports.StablecoinSystemStatsFromJSON = StablecoinSystemStatsFromJSON; +exports.StablecoinSystemStatsFromJSONTyped = StablecoinSystemStatsFromJSONTyped; +exports.StablecoinSystemStatsToJSON = StablecoinSystemStatsToJSON; +exports.StablecoinSystemStatsToJSONTyped = StablecoinSystemStatsToJSONTyped; +/** + * Check if a given object implements the StablecoinSystemStats interface. + */ +function instanceOfStablecoinSystemStats(value) { + if (!('systemSurplus' in value) || value['systemSurplus'] === undefined) + return false; + if (!('systemDebt' in value) || value['systemDebt'] === undefined) + return false; + if (!('systemDebtCeiling' in value) || value['systemDebtCeiling'] === undefined) + return false; + if (!('systemSurplusBuffer' in value) || value['systemSurplusBuffer'] === undefined) + return false; + if (!('systemBadDebt' in value) || value['systemBadDebt'] === undefined) + return false; + if (!('systemSurplusLotSize' in value) || value['systemSurplusLotSize'] === undefined) + return false; + return true; +} +function StablecoinSystemStatsFromJSON(json) { + return StablecoinSystemStatsFromJSONTyped(json, false); +} +function StablecoinSystemStatsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'systemSurplus': json['systemSurplus'], + 'systemDebt': json['systemDebt'], + 'systemDebtCeiling': json['systemDebtCeiling'], + 'systemSurplusBuffer': json['systemSurplusBuffer'], + 'systemBadDebt': json['systemBadDebt'], + 'systemSurplusLotSize': json['systemSurplusLotSize'], + }; +} +function StablecoinSystemStatsToJSON(json) { + return StablecoinSystemStatsToJSONTyped(json, false); +} +function StablecoinSystemStatsToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'systemSurplus': value['systemSurplus'], + 'systemDebt': value['systemDebt'], + 'systemDebtCeiling': value['systemDebtCeiling'], + 'systemSurplusBuffer': value['systemSurplusBuffer'], + 'systemBadDebt': value['systemBadDebt'], + 'systemSurplusLotSize': value['systemSurplusLotSize'], + }; +} +//# sourceMappingURL=StablecoinSystemStats.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemStats.js.map b/dist/cjs/service/src/models/StablecoinSystemStats.js.map new file mode 100644 index 0000000..4a12a2f --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemStats.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StablecoinSystemStats.js","sourceRoot":"","sources":["../../../../../src/service/src/models/StablecoinSystemStats.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAkDH,0EAQC;AAED,sEAEC;AAED,gFAaC;AAED,kEAEC;AAED,4EAcC;AAlDD;;GAEG;AACH,SAAgB,+BAA+B,CAAC,KAAa;IACzD,IAAI,CAAC,CAAC,eAAe,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,eAAe,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CA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CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,KAAoC,EAAE,sBAA+B,KAAK;IACvH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,eAAe,EAAE,KAAK,CAAC,eAAe,CAAC;QACvC,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,mBAAmB,EAAE,KAAK,CAAC,mBAAmB,CAAC;QAC/C,qBAAqB,EAAE,KAAK,CAAC,qBAAqB,CAAC;QACnD,eAAe,EAAE,KAAK,CAAC,eAAe,CAAC;QACvC,sBAAsB,EAAE,KAAK,CAAC,sBAAsB,CAAC;KACxD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemTakeTxRequest.d.ts b/dist/cjs/service/src/models/StablecoinSystemTakeTxRequest.d.ts new file mode 100644 index 0000000..edb559d --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemTakeTxRequest.d.ts @@ -0,0 +1,57 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemTakeTxRequest + */ +export interface StablecoinSystemTakeTxRequest { + /** + * Ethereum address of the user taking the auction. + * @type {string} + * @memberof StablecoinSystemTakeTxRequest + */ + user: string; + /** + * The ID of the auction + * @type {number} + * @memberof StablecoinSystemTakeTxRequest + */ + auctionId: number; + /** + * Name of the ILK + * @type {string} + * @memberof StablecoinSystemTakeTxRequest + */ + ilk: string; + /** + * upper limit on the amount of collateral to buy [wad] + * @type {string} + * @memberof StablecoinSystemTakeTxRequest + */ + collateralAmountUpperLimit: string; + /** + * Maximum acceptable price (ZAR / collateral) [ray] + * @type {string} + * @memberof StablecoinSystemTakeTxRequest + */ + maxAcceptablePrice: string; +} +/** + * Check if a given object implements the StablecoinSystemTakeTxRequest interface. + */ +export declare function instanceOfStablecoinSystemTakeTxRequest(value: object): value is StablecoinSystemTakeTxRequest; +export declare function StablecoinSystemTakeTxRequestFromJSON(json: any): StablecoinSystemTakeTxRequest; +export declare function StablecoinSystemTakeTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemTakeTxRequest; +export declare function StablecoinSystemTakeTxRequestToJSON(json: any): StablecoinSystemTakeTxRequest; +export declare function StablecoinSystemTakeTxRequestToJSONTyped(value?: StablecoinSystemTakeTxRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=StablecoinSystemTakeTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemTakeTxRequest.d.ts.map b/dist/cjs/service/src/models/StablecoinSystemTakeTxRequest.d.ts.map new file mode 100644 index 0000000..fd8514b --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemTakeTxRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StablecoinSystemTakeTxRequest.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/StablecoinSystemTakeTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,0BAA0B,EAAE,MAAM,CAAC;IACnC;;;;OAIG;IACH,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAED;;GAEG;AACH,wBAAgB,uCAAuC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,6BAA6B,CAO7G;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE9F;AAED,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,6BAA6B,CAYjI;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE5F;AAED,wBAAgB,wCAAwC,CAAC,KAAK,CAAC,EAAE,6BAA6B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAahJ"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemTakeTxRequest.js b/dist/cjs/service/src/models/StablecoinSystemTakeTxRequest.js new file mode 100644 index 0000000..7fe9a25 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemTakeTxRequest.js @@ -0,0 +1,67 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfStablecoinSystemTakeTxRequest = instanceOfStablecoinSystemTakeTxRequest; +exports.StablecoinSystemTakeTxRequestFromJSON = StablecoinSystemTakeTxRequestFromJSON; +exports.StablecoinSystemTakeTxRequestFromJSONTyped = StablecoinSystemTakeTxRequestFromJSONTyped; +exports.StablecoinSystemTakeTxRequestToJSON = StablecoinSystemTakeTxRequestToJSON; +exports.StablecoinSystemTakeTxRequestToJSONTyped = StablecoinSystemTakeTxRequestToJSONTyped; +/** + * Check if a given object implements the StablecoinSystemTakeTxRequest interface. + */ +function instanceOfStablecoinSystemTakeTxRequest(value) { + if (!('user' in value) || value['user'] === undefined) + return false; + if (!('auctionId' in value) || value['auctionId'] === undefined) + return false; + if (!('ilk' in value) || value['ilk'] === undefined) + return false; + if (!('collateralAmountUpperLimit' in value) || value['collateralAmountUpperLimit'] === undefined) + return false; + if (!('maxAcceptablePrice' in value) || value['maxAcceptablePrice'] === undefined) + return false; + return true; +} +function StablecoinSystemTakeTxRequestFromJSON(json) { + return StablecoinSystemTakeTxRequestFromJSONTyped(json, false); +} +function StablecoinSystemTakeTxRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'user': json['user'], + 'auctionId': json['auctionId'], + 'ilk': json['ilk'], + 'collateralAmountUpperLimit': json['collateralAmountUpperLimit'], + 'maxAcceptablePrice': json['maxAcceptablePrice'], + }; +} +function StablecoinSystemTakeTxRequestToJSON(json) { + return StablecoinSystemTakeTxRequestToJSONTyped(json, false); +} +function StablecoinSystemTakeTxRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'user': value['user'], + 'auctionId': value['auctionId'], + 'ilk': value['ilk'], + 'collateralAmountUpperLimit': value['collateralAmountUpperLimit'], + 'maxAcceptablePrice': value['maxAcceptablePrice'], + }; +} +//# sourceMappingURL=StablecoinSystemTakeTxRequest.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemTakeTxRequest.js.map b/dist/cjs/service/src/models/StablecoinSystemTakeTxRequest.js.map new file mode 100644 index 0000000..2c4300d --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemTakeTxRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StablecoinSystemTakeTxRequest.js","sourceRoot":"","sources":["../../../../../src/service/src/models/StablecoinSystemTakeTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4CH,0FAOC;AAED,sFAEC;AAED,gGAYC;AAED,kFAEC;AAED,4FAaC;AA/CD;;GAEG;AACH,SAAgB,uCAAuC,CAAC,KAAa;IACjE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,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AAW,CAAC;QAC/B,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;QACnB,4BAA4B,EAAE,KAAK,CAAC,4BAA4B,CAAC;QACjE,oBAAoB,EAAE,KAAK,CAAC,oBAAoB,CAAC;KACpD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.d.ts b/dist/cjs/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.d.ts new file mode 100644 index 0000000..4f3e915 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemWithdrawCollateralTxRequest + */ +export interface StablecoinSystemWithdrawCollateralTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StablecoinSystemWithdrawCollateralTxRequest + */ + user: string; + /** + * The ID of the vault + * @type {number} + * @memberof StablecoinSystemWithdrawCollateralTxRequest + */ + vaultId: number; + /** + * The amount of collateral to withdraw in native token units, if not provided, it will be calculated based on the withdrawable balance + * @type {string} + * @memberof StablecoinSystemWithdrawCollateralTxRequest + */ + amount?: string; +} +/** + * Check if a given object implements the StablecoinSystemWithdrawCollateralTxRequest interface. + */ +export declare function instanceOfStablecoinSystemWithdrawCollateralTxRequest(value: object): value is StablecoinSystemWithdrawCollateralTxRequest; +export declare function StablecoinSystemWithdrawCollateralTxRequestFromJSON(json: any): StablecoinSystemWithdrawCollateralTxRequest; +export declare function StablecoinSystemWithdrawCollateralTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemWithdrawCollateralTxRequest; +export declare function StablecoinSystemWithdrawCollateralTxRequestToJSON(json: any): StablecoinSystemWithdrawCollateralTxRequest; +export declare function StablecoinSystemWithdrawCollateralTxRequestToJSONTyped(value?: StablecoinSystemWithdrawCollateralTxRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=StablecoinSystemWithdrawCollateralTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.d.ts.map b/dist/cjs/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.d.ts.map new file mode 100644 index 0000000..3a4df8f --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StablecoinSystemWithdrawCollateralTxRequest.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,2CAA2C;IACxD;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,qDAAqD,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,2CAA2C,CAIzI;AAED,wBAAgB,mDAAmD,CAAC,IAAI,EAAE,GAAG,GAAG,2CAA2C,CAE1H;AAED,wBAAgB,wDAAwD,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,2CAA2C,CAU7J;AAED,wBAAgB,iDAAiD,CAAC,IAAI,EAAE,GAAG,GAAG,2CAA2C,CAExH;AAED,wBAAgB,sDAAsD,CAAC,KAAK,CAAC,EAAE,2CAA2C,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW5K"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.js b/dist/cjs/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.js new file mode 100644 index 0000000..af5f08e --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfStablecoinSystemWithdrawCollateralTxRequest = instanceOfStablecoinSystemWithdrawCollateralTxRequest; +exports.StablecoinSystemWithdrawCollateralTxRequestFromJSON = StablecoinSystemWithdrawCollateralTxRequestFromJSON; +exports.StablecoinSystemWithdrawCollateralTxRequestFromJSONTyped = StablecoinSystemWithdrawCollateralTxRequestFromJSONTyped; +exports.StablecoinSystemWithdrawCollateralTxRequestToJSON = StablecoinSystemWithdrawCollateralTxRequestToJSON; +exports.StablecoinSystemWithdrawCollateralTxRequestToJSONTyped = StablecoinSystemWithdrawCollateralTxRequestToJSONTyped; +/** + * Check if a given object implements the StablecoinSystemWithdrawCollateralTxRequest interface. + */ +function instanceOfStablecoinSystemWithdrawCollateralTxRequest(value) { + if (!('user' in value) || value['user'] === undefined) + return false; + if (!('vaultId' in value) || value['vaultId'] === undefined) + return false; + return true; +} +function StablecoinSystemWithdrawCollateralTxRequestFromJSON(json) { + return StablecoinSystemWithdrawCollateralTxRequestFromJSONTyped(json, false); +} +function StablecoinSystemWithdrawCollateralTxRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'user': json['user'], + 'vaultId': json['vaultId'], + 'amount': json['amount'] == null ? undefined : json['amount'], + }; +} +function StablecoinSystemWithdrawCollateralTxRequestToJSON(json) { + return StablecoinSystemWithdrawCollateralTxRequestToJSONTyped(json, false); +} +function StablecoinSystemWithdrawCollateralTxRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'user': value['user'], + 'vaultId': value['vaultId'], + 'amount': value['amount'], + }; +} +//# sourceMappingURL=StablecoinSystemWithdrawCollateralTxRequest.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.js.map b/dist/cjs/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.js.map new file mode 100644 index 0000000..adca8c1 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StablecoinSystemWithdrawCollateralTxRequest.js","sourceRoot":"","sources":["../../../../../src/service/src/models/StablecoinSystemWithdrawCollateralTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,sHAIC;AAED,kHAEC;AAED,4HAUC;AAED,8GAEC;AAED,wHAWC;AAxCD;;GAEG;AACH,SAAgB,qDAAqD,CAAC,KAAa;IAC/E,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,mDAAmD,CAAC,IAAS;IACzE,OAAO,wDAAwD,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjF,CAAC;AAED,SAAgB,wDAAwD,CAAC,IAAS,EAAE,mBAA4B;IAC5G,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,iDAAiD,CAAC,IAAS;IACvE,OAAO,sDAAsD,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/E,CAAC;AAED,SAAgB,sDAAsD,CAAC,KAA0D,EAAE,sBAA+B,KAAK;IACnK,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemZarexitTxRequest.d.ts b/dist/cjs/service/src/models/StablecoinSystemZarexitTxRequest.d.ts new file mode 100644 index 0000000..3eab9f6 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemZarexitTxRequest.d.ts @@ -0,0 +1,39 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemZarexitTxRequest + */ +export interface StablecoinSystemZarexitTxRequest { + /** + * Ethereum address of the user intends to exit zar tokens from the Vat contract and receive them.. + * @type {string} + * @memberof StablecoinSystemZarexitTxRequest + */ + user: string; + /** + * The amount of Zar token to exit from Vat contract + * @type {string} + * @memberof StablecoinSystemZarexitTxRequest + */ + amount: string; +} +/** + * Check if a given object implements the StablecoinSystemZarexitTxRequest interface. + */ +export declare function instanceOfStablecoinSystemZarexitTxRequest(value: object): value is StablecoinSystemZarexitTxRequest; +export declare function StablecoinSystemZarexitTxRequestFromJSON(json: any): StablecoinSystemZarexitTxRequest; +export declare function StablecoinSystemZarexitTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemZarexitTxRequest; +export declare function StablecoinSystemZarexitTxRequestToJSON(json: any): StablecoinSystemZarexitTxRequest; +export declare function StablecoinSystemZarexitTxRequestToJSONTyped(value?: StablecoinSystemZarexitTxRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=StablecoinSystemZarexitTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemZarexitTxRequest.d.ts.map b/dist/cjs/service/src/models/StablecoinSystemZarexitTxRequest.d.ts.map new file mode 100644 index 0000000..d0f6456 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemZarexitTxRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StablecoinSystemZarexitTxRequest.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/StablecoinSystemZarexitTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,0CAA0C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gCAAgC,CAInH;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,GAAG,gCAAgC,CAEpG;AAED,wBAAgB,6CAA6C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gCAAgC,CASvI;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,GAAG,gCAAgC,CAElG;AAED,wBAAgB,2CAA2C,CAAC,KAAK,CAAC,EAAE,gCAAgC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUtJ"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemZarexitTxRequest.js b/dist/cjs/service/src/models/StablecoinSystemZarexitTxRequest.js new file mode 100644 index 0000000..21cdbf7 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemZarexitTxRequest.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfStablecoinSystemZarexitTxRequest = instanceOfStablecoinSystemZarexitTxRequest; +exports.StablecoinSystemZarexitTxRequestFromJSON = StablecoinSystemZarexitTxRequestFromJSON; +exports.StablecoinSystemZarexitTxRequestFromJSONTyped = StablecoinSystemZarexitTxRequestFromJSONTyped; +exports.StablecoinSystemZarexitTxRequestToJSON = StablecoinSystemZarexitTxRequestToJSON; +exports.StablecoinSystemZarexitTxRequestToJSONTyped = StablecoinSystemZarexitTxRequestToJSONTyped; +/** + * Check if a given object implements the StablecoinSystemZarexitTxRequest interface. + */ +function instanceOfStablecoinSystemZarexitTxRequest(value) { + if (!('user' in value) || value['user'] === undefined) + return false; + if (!('amount' in value) || value['amount'] === undefined) + return false; + return true; +} +function StablecoinSystemZarexitTxRequestFromJSON(json) { + return StablecoinSystemZarexitTxRequestFromJSONTyped(json, false); +} +function StablecoinSystemZarexitTxRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'user': json['user'], + 'amount': json['amount'], + }; +} +function StablecoinSystemZarexitTxRequestToJSON(json) { + return StablecoinSystemZarexitTxRequestToJSONTyped(json, false); +} +function StablecoinSystemZarexitTxRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'user': value['user'], + 'amount': value['amount'], + }; +} +//# sourceMappingURL=StablecoinSystemZarexitTxRequest.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemZarexitTxRequest.js.map b/dist/cjs/service/src/models/StablecoinSystemZarexitTxRequest.js.map new file mode 100644 index 0000000..f372158 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemZarexitTxRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StablecoinSystemZarexitTxRequest.js","sourceRoot":"","sources":["../../../../../src/service/src/models/StablecoinSystemZarexitTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,gGAIC;AAED,4FAEC;AAED,sGASC;AAED,wFAEC;AAED,kGAUC;AAtCD;;GAEG;AACH,SAAgB,0CAA0C,CAAC,KAAa;IACpE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,wCAAwC,CAAC,IAAS;IAC9D,OAAO,6CAA6C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtE,CAAC;AAED,SAAgB,6CAA6C,CAAC,IAAS,EAAE,mBAA4B;IACjG,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;KAC3B,CAAC;AACN,CAAC;AAED,SAAgB,sCAAsC,CAAC,IAAS;IAC5D,OAAO,2CAA2C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpE,CAAC;AAED,SAAgB,2CAA2C,CAAC,KAA+C,EAAE,sBAA+B,KAAK;IAC7I,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemZarjoinTxRequest.d.ts b/dist/cjs/service/src/models/StablecoinSystemZarjoinTxRequest.d.ts new file mode 100644 index 0000000..a8c4433 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemZarjoinTxRequest.d.ts @@ -0,0 +1,39 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StablecoinSystemZarjoinTxRequest + */ +export interface StablecoinSystemZarjoinTxRequest { + /** + * Ethereum address of the user intends to join zar tokens into the Vat contract. + * @type {string} + * @memberof StablecoinSystemZarjoinTxRequest + */ + user: string; + /** + * The amount of ZAR to approve and join into Vat contract + * @type {string} + * @memberof StablecoinSystemZarjoinTxRequest + */ + amount: string; +} +/** + * Check if a given object implements the StablecoinSystemZarjoinTxRequest interface. + */ +export declare function instanceOfStablecoinSystemZarjoinTxRequest(value: object): value is StablecoinSystemZarjoinTxRequest; +export declare function StablecoinSystemZarjoinTxRequestFromJSON(json: any): StablecoinSystemZarjoinTxRequest; +export declare function StablecoinSystemZarjoinTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StablecoinSystemZarjoinTxRequest; +export declare function StablecoinSystemZarjoinTxRequestToJSON(json: any): StablecoinSystemZarjoinTxRequest; +export declare function StablecoinSystemZarjoinTxRequestToJSONTyped(value?: StablecoinSystemZarjoinTxRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=StablecoinSystemZarjoinTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemZarjoinTxRequest.d.ts.map b/dist/cjs/service/src/models/StablecoinSystemZarjoinTxRequest.d.ts.map new file mode 100644 index 0000000..e19e53b --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemZarjoinTxRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StablecoinSystemZarjoinTxRequest.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/StablecoinSystemZarjoinTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gCAAgC;IAC7C;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,0CAA0C,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gCAAgC,CAInH;AAED,wBAAgB,wCAAwC,CAAC,IAAI,EAAE,GAAG,GAAG,gCAAgC,CAEpG;AAED,wBAAgB,6CAA6C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gCAAgC,CASvI;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,GAAG,gCAAgC,CAElG;AAED,wBAAgB,2CAA2C,CAAC,KAAK,CAAC,EAAE,gCAAgC,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUtJ"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemZarjoinTxRequest.js b/dist/cjs/service/src/models/StablecoinSystemZarjoinTxRequest.js new file mode 100644 index 0000000..edce8c3 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemZarjoinTxRequest.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfStablecoinSystemZarjoinTxRequest = instanceOfStablecoinSystemZarjoinTxRequest; +exports.StablecoinSystemZarjoinTxRequestFromJSON = StablecoinSystemZarjoinTxRequestFromJSON; +exports.StablecoinSystemZarjoinTxRequestFromJSONTyped = StablecoinSystemZarjoinTxRequestFromJSONTyped; +exports.StablecoinSystemZarjoinTxRequestToJSON = StablecoinSystemZarjoinTxRequestToJSON; +exports.StablecoinSystemZarjoinTxRequestToJSONTyped = StablecoinSystemZarjoinTxRequestToJSONTyped; +/** + * Check if a given object implements the StablecoinSystemZarjoinTxRequest interface. + */ +function instanceOfStablecoinSystemZarjoinTxRequest(value) { + if (!('user' in value) || value['user'] === undefined) + return false; + if (!('amount' in value) || value['amount'] === undefined) + return false; + return true; +} +function StablecoinSystemZarjoinTxRequestFromJSON(json) { + return StablecoinSystemZarjoinTxRequestFromJSONTyped(json, false); +} +function StablecoinSystemZarjoinTxRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'user': json['user'], + 'amount': json['amount'], + }; +} +function StablecoinSystemZarjoinTxRequestToJSON(json) { + return StablecoinSystemZarjoinTxRequestToJSONTyped(json, false); +} +function StablecoinSystemZarjoinTxRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'user': value['user'], + 'amount': value['amount'], + }; +} +//# sourceMappingURL=StablecoinSystemZarjoinTxRequest.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StablecoinSystemZarjoinTxRequest.js.map b/dist/cjs/service/src/models/StablecoinSystemZarjoinTxRequest.js.map new file mode 100644 index 0000000..585fb62 --- /dev/null +++ b/dist/cjs/service/src/models/StablecoinSystemZarjoinTxRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StablecoinSystemZarjoinTxRequest.js","sourceRoot":"","sources":["../../../../../src/service/src/models/StablecoinSystemZarjoinTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,gGAIC;AAED,4FAEC;AAED,sGASC;AAED,wFAEC;AAED,kGAUC;AAtCD;;GAEG;AACH,SAAgB,0CAA0C,CAAC,KAAa;IACpE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,wCAAwC,CAAC,IAAS;IAC9D,OAAO,6CAA6C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtE,CAAC;AAED,SAAgB,6CAA6C,CAAC,IAAS,EAAE,mBAA4B;IACjG,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;KAC3B,CAAC;AACN,CAAC;AAED,SAAgB,sCAAsC,CAAC,IAAS;IAC5D,OAAO,2CAA2C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpE,CAAC;AAED,SAAgB,2CAA2C,CAAC,KAA+C,EAAE,sBAA+B,KAAK;IAC7I,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakeBalance.d.ts b/dist/cjs/service/src/models/StakeBalance.d.ts new file mode 100644 index 0000000..5c4374d --- /dev/null +++ b/dist/cjs/service/src/models/StakeBalance.d.ts @@ -0,0 +1,27 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * The amount of asset staked in native token units + * @export + * @interface StakeBalance + */ +export interface StakeBalance { +} +/** + * Check if a given object implements the StakeBalance interface. + */ +export declare function instanceOfStakeBalance(value: object): value is StakeBalance; +export declare function StakeBalanceFromJSON(json: any): StakeBalance; +export declare function StakeBalanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakeBalance; +export declare function StakeBalanceToJSON(json: any): StakeBalance; +export declare function StakeBalanceToJSONTyped(value?: StakeBalance | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=StakeBalance.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakeBalance.d.ts.map b/dist/cjs/service/src/models/StakeBalance.d.ts.map new file mode 100644 index 0000000..9d0d160 --- /dev/null +++ b/dist/cjs/service/src/models/StakeBalance.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StakeBalance.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/StakeBalance.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,YAAY;CAC5B;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAE3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAE/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAE9G"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakeBalance.js b/dist/cjs/service/src/models/StakeBalance.js new file mode 100644 index 0000000..1bc3159 --- /dev/null +++ b/dist/cjs/service/src/models/StakeBalance.js @@ -0,0 +1,39 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfStakeBalance = instanceOfStakeBalance; +exports.StakeBalanceFromJSON = StakeBalanceFromJSON; +exports.StakeBalanceFromJSONTyped = StakeBalanceFromJSONTyped; +exports.StakeBalanceToJSON = StakeBalanceToJSON; +exports.StakeBalanceToJSONTyped = StakeBalanceToJSONTyped; +/** + * Check if a given object implements the StakeBalance interface. + */ +function instanceOfStakeBalance(value) { + return true; +} +function StakeBalanceFromJSON(json) { + return StakeBalanceFromJSONTyped(json, false); +} +function StakeBalanceFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function StakeBalanceToJSON(json) { + return StakeBalanceToJSONTyped(json, false); +} +function StakeBalanceToJSONTyped(value, ignoreDiscriminator = false) { + return value; +} +//# sourceMappingURL=StakeBalance.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakeBalance.js.map b/dist/cjs/service/src/models/StakeBalance.js.map new file mode 100644 index 0000000..84693a5 --- /dev/null +++ b/dist/cjs/service/src/models/StakeBalance.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StakeBalance.js","sourceRoot":"","sources":["../../../../../src/service/src/models/StakeBalance.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAcH,wDAEC;AAED,oDAEC;AAED,8DAEC;AAED,gDAEC;AAED,0DAEC;AArBD;;GAEG;AACH,SAAgB,sBAAsB,CAAC,KAAa;IAChD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS,EAAE,mBAA4B;IAC7E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,KAA2B,EAAE,sBAA+B,KAAK;IACrG,OAAO,KAAK,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakePlan.d.ts b/dist/cjs/service/src/models/StakePlan.d.ts new file mode 100644 index 0000000..858ad60 --- /dev/null +++ b/dist/cjs/service/src/models/StakePlan.d.ts @@ -0,0 +1,65 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Token } from './Token'; +import type { Timestamp } from './Timestamp'; +/** + * + * @export + * @interface StakePlan + */ +export interface StakePlan { + /** + * Name of staking plan + * @type {string} + * @memberof StakePlan + */ + planName: string; + /** + * Ethereum address of the staking contract + * @type {string} + * @memberof StakePlan + */ + contractAddress: string; + /** + * Annual percentage yield of the staking plan + * @type {string} + * @memberof StakePlan + */ + apy: string; + /** + * + * @type {Token} + * @memberof StakePlan + */ + stakeToken: Token; + /** + * + * @type {Token} + * @memberof StakePlan + */ + rewardToken: Token; + /** + * + * @type {Timestamp} + * @memberof StakePlan + */ + finishAt: Timestamp; +} +/** + * Check if a given object implements the StakePlan interface. + */ +export declare function instanceOfStakePlan(value: object): value is StakePlan; +export declare function StakePlanFromJSON(json: any): StakePlan; +export declare function StakePlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakePlan; +export declare function StakePlanToJSON(json: any): StakePlan; +export declare function StakePlanToJSONTyped(value?: StakePlan | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=StakePlan.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakePlan.d.ts.map b/dist/cjs/service/src/models/StakePlan.d.ts.map new file mode 100644 index 0000000..e61d359 --- /dev/null +++ b/dist/cjs/service/src/models/StakePlan.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StakePlan.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/StakePlan.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAOrC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,UAAU,EAAE,KAAK,CAAC;IAClB;;;;OAIG;IACH,WAAW,EAAE,KAAK,CAAC;IACnB;;;;OAIG;IACH,QAAQ,EAAE,SAAS,CAAC;CACvB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAQrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAazF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAcxG"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakePlan.js b/dist/cjs/service/src/models/StakePlan.js new file mode 100644 index 0000000..9ef4fed --- /dev/null +++ b/dist/cjs/service/src/models/StakePlan.js @@ -0,0 +1,73 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfStakePlan = instanceOfStakePlan; +exports.StakePlanFromJSON = StakePlanFromJSON; +exports.StakePlanFromJSONTyped = StakePlanFromJSONTyped; +exports.StakePlanToJSON = StakePlanToJSON; +exports.StakePlanToJSONTyped = StakePlanToJSONTyped; +const Token_1 = require("./Token"); +const Timestamp_1 = require("./Timestamp"); +/** + * Check if a given object implements the StakePlan interface. + */ +function instanceOfStakePlan(value) { + if (!('planName' in value) || value['planName'] === undefined) + return false; + if (!('contractAddress' in value) || value['contractAddress'] === undefined) + return false; + if (!('apy' in value) || value['apy'] === undefined) + return false; + if (!('stakeToken' in value) || value['stakeToken'] === undefined) + return false; + if (!('rewardToken' in value) || value['rewardToken'] === undefined) + return false; + if (!('finishAt' in value) || value['finishAt'] === undefined) + return false; + return true; +} +function StakePlanFromJSON(json) { + return StakePlanFromJSONTyped(json, false); +} +function StakePlanFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'planName': json['planName'], + 'contractAddress': json['contractAddress'], + 'apy': json['apy'], + 'stakeToken': (0, Token_1.TokenFromJSON)(json['stakeToken']), + 'rewardToken': (0, Token_1.TokenFromJSON)(json['rewardToken']), + 'finishAt': (0, Timestamp_1.TimestampFromJSON)(json['finishAt']), + }; +} +function StakePlanToJSON(json) { + return StakePlanToJSONTyped(json, false); +} +function StakePlanToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'planName': value['planName'], + 'contractAddress': value['contractAddress'], + 'apy': value['apy'], + 'stakeToken': (0, Token_1.TokenToJSON)(value['stakeToken']), + 'rewardToken': (0, Token_1.TokenToJSON)(value['rewardToken']), + 'finishAt': (0, Timestamp_1.TimestampToJSON)(value['finishAt']), + }; +} +//# sourceMappingURL=StakePlan.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakePlan.js.map b/dist/cjs/service/src/models/StakePlan.js.map new file mode 100644 index 0000000..fe5b536 --- /dev/null +++ b/dist/cjs/service/src/models/StakePlan.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StakePlan.js","sourceRoot":"","sources":["../../../../../src/service/src/models/StakePlan.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAiEH,kDAQC;AAED,8CAEC;AAED,wDAaC;AAED,0CAEC;AAED,oDAcC;AA5GD,mCAKiB;AAEjB,2CAKqB;AA8CrB;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAAa;IAC7C,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1F,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClE,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KA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AAK,CAAC,iBAAiB,CAAC;QAC3C,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;QACnB,YAAY,EAAE,IAAA,mBAAW,EAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QAC9C,aAAa,EAAE,IAAA,mBAAW,EAAC,KAAK,CAAC,aAAa,CAAC,CAAC;QAChD,UAAU,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC;KACjD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakePlansResponse.d.ts b/dist/cjs/service/src/models/StakePlansResponse.d.ts new file mode 100644 index 0000000..87e7042 --- /dev/null +++ b/dist/cjs/service/src/models/StakePlansResponse.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { StakePlan } from './StakePlan'; +/** + * + * @export + * @interface StakePlansResponse + */ +export interface StakePlansResponse { + /** + * + * @type {Array} + * @memberof StakePlansResponse + */ + data: Array; +} +/** + * Check if a given object implements the StakePlansResponse interface. + */ +export declare function instanceOfStakePlansResponse(value: object): value is StakePlansResponse; +export declare function StakePlansResponseFromJSON(json: any): StakePlansResponse; +export declare function StakePlansResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakePlansResponse; +export declare function StakePlansResponseToJSON(json: any): StakePlansResponse; +export declare function StakePlansResponseToJSONTyped(value?: StakePlansResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=StakePlansResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakePlansResponse.d.ts.map b/dist/cjs/service/src/models/StakePlansResponse.d.ts.map new file mode 100644 index 0000000..5ae9933 --- /dev/null +++ b/dist/cjs/service/src/models/StakePlansResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StakePlansResponse.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/StakePlansResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAGvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAQ3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS1H"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakePlansResponse.js b/dist/cjs/service/src/models/StakePlansResponse.js new file mode 100644 index 0000000..f30535d --- /dev/null +++ b/dist/cjs/service/src/models/StakePlansResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfStakePlansResponse = instanceOfStakePlansResponse; +exports.StakePlansResponseFromJSON = StakePlansResponseFromJSON; +exports.StakePlansResponseFromJSONTyped = StakePlansResponseFromJSONTyped; +exports.StakePlansResponseToJSON = StakePlansResponseToJSON; +exports.StakePlansResponseToJSONTyped = StakePlansResponseToJSONTyped; +const StakePlan_1 = require("./StakePlan"); +/** + * Check if a given object implements the StakePlansResponse interface. + */ +function instanceOfStakePlansResponse(value) { + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function StakePlansResponseFromJSON(json) { + return StakePlansResponseFromJSONTyped(json, false); +} +function StakePlansResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': (json['data'].map(StakePlan_1.StakePlanFromJSON)), + }; +} +function StakePlansResponseToJSON(json) { + return StakePlansResponseToJSONTyped(json, false); +} +function StakePlansResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'data': (value['data'].map(StakePlan_1.StakePlanToJSON)), + }; +} +//# sourceMappingURL=StakePlansResponse.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakePlansResponse.js.map b/dist/cjs/service/src/models/StakePlansResponse.js.map new file mode 100644 index 0000000..bbab68f --- /dev/null +++ b/dist/cjs/service/src/models/StakePlansResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StakePlansResponse.js","sourceRoot":"","sources":["../../../../../src/service/src/models/StakePlansResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,oEAGC;AAED,gEAEC;AAED,0EAQC;AAED,4DAEC;AAED,sEASC;AAxDD,2CAKqB;AAgBrB;;GAEG;AACH,SAAgB,4BAA4B,CAAC,KAAa;IACtD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,IAAS,EAAE,mBAA4B;IACnF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,6BAAiB,CAAC,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,KAAiC,EAAE,sBAA+B,KAAK;IACjH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,2BAAe,CAAC,CAAC;KAC/D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakingCollectRewardTxRequest.d.ts b/dist/cjs/service/src/models/StakingCollectRewardTxRequest.d.ts new file mode 100644 index 0000000..10e56fe --- /dev/null +++ b/dist/cjs/service/src/models/StakingCollectRewardTxRequest.d.ts @@ -0,0 +1,39 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StakingCollectRewardTxRequest + */ +export interface StakingCollectRewardTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StakingCollectRewardTxRequest + */ + user: string; + /** + * Ethereum address of the staking contract + * @type {string} + * @memberof StakingCollectRewardTxRequest + */ + contractAddress: string; +} +/** + * Check if a given object implements the StakingCollectRewardTxRequest interface. + */ +export declare function instanceOfStakingCollectRewardTxRequest(value: object): value is StakingCollectRewardTxRequest; +export declare function StakingCollectRewardTxRequestFromJSON(json: any): StakingCollectRewardTxRequest; +export declare function StakingCollectRewardTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakingCollectRewardTxRequest; +export declare function StakingCollectRewardTxRequestToJSON(json: any): StakingCollectRewardTxRequest; +export declare function StakingCollectRewardTxRequestToJSONTyped(value?: StakingCollectRewardTxRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=StakingCollectRewardTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakingCollectRewardTxRequest.d.ts.map b/dist/cjs/service/src/models/StakingCollectRewardTxRequest.d.ts.map new file mode 100644 index 0000000..25f8b32 --- /dev/null +++ b/dist/cjs/service/src/models/StakingCollectRewardTxRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StakingCollectRewardTxRequest.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/StakingCollectRewardTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC1C;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,uCAAuC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,6BAA6B,CAI7G;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE9F;AAED,wBAAgB,0CAA0C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,6BAA6B,CASjI;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,GAAG,6BAA6B,CAE5F;AAED,wBAAgB,wCAAwC,CAAC,KAAK,CAAC,EAAE,6BAA6B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUhJ"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakingCollectRewardTxRequest.js b/dist/cjs/service/src/models/StakingCollectRewardTxRequest.js new file mode 100644 index 0000000..eeabaec --- /dev/null +++ b/dist/cjs/service/src/models/StakingCollectRewardTxRequest.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfStakingCollectRewardTxRequest = instanceOfStakingCollectRewardTxRequest; +exports.StakingCollectRewardTxRequestFromJSON = StakingCollectRewardTxRequestFromJSON; +exports.StakingCollectRewardTxRequestFromJSONTyped = StakingCollectRewardTxRequestFromJSONTyped; +exports.StakingCollectRewardTxRequestToJSON = StakingCollectRewardTxRequestToJSON; +exports.StakingCollectRewardTxRequestToJSONTyped = StakingCollectRewardTxRequestToJSONTyped; +/** + * Check if a given object implements the StakingCollectRewardTxRequest interface. + */ +function instanceOfStakingCollectRewardTxRequest(value) { + if (!('user' in value) || value['user'] === undefined) + return false; + if (!('contractAddress' in value) || value['contractAddress'] === undefined) + return false; + return true; +} +function StakingCollectRewardTxRequestFromJSON(json) { + return StakingCollectRewardTxRequestFromJSONTyped(json, false); +} +function StakingCollectRewardTxRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'user': json['user'], + 'contractAddress': json['contractAddress'], + }; +} +function StakingCollectRewardTxRequestToJSON(json) { + return StakingCollectRewardTxRequestToJSONTyped(json, false); +} +function StakingCollectRewardTxRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'user': value['user'], + 'contractAddress': value['contractAddress'], + }; +} +//# sourceMappingURL=StakingCollectRewardTxRequest.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakingCollectRewardTxRequest.js.map b/dist/cjs/service/src/models/StakingCollectRewardTxRequest.js.map new file mode 100644 index 0000000..caa91e3 --- /dev/null +++ b/dist/cjs/service/src/models/StakingCollectRewardTxRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StakingCollectRewardTxRequest.js","sourceRoot":"","sources":["../../../../../src/service/src/models/StakingCollectRewardTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,0FAIC;AAED,sFAEC;AAED,gGASC;AAED,kFAEC;AAED,4FAUC;AAtCD;;GAEG;AACH,SAAgB,uCAAuC,CAAC,KAAa;IACjE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1F,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qCAAqC,CAAC,IAAS;IAC3D,OAAO,0CAA0C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnE,CAAC;AAED,SAAgB,0CAA0C,CAAC,IAAS,EAAE,mBAA4B;IAC9F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,CAAC;KAC7C,CAAC;AACN,CAAC;AAED,SAAgB,mCAAmC,CAAC,IAAS;IACzD,OAAO,wCAAwC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjE,CAAC;AAED,SAAgB,wCAAwC,CAAC,KAA4C,EAAE,sBAA+B,KAAK;IACvI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;KAC9C,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakingCollectRewardTxResponse.d.ts b/dist/cjs/service/src/models/StakingCollectRewardTxResponse.d.ts new file mode 100644 index 0000000..b6a4a46 --- /dev/null +++ b/dist/cjs/service/src/models/StakingCollectRewardTxResponse.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivity } from './ChainActivity'; +/** + * + * @export + * @interface StakingCollectRewardTxResponse + */ +export interface StakingCollectRewardTxResponse { + /** + * + * @type {ChainActivity} + * @memberof StakingCollectRewardTxResponse + */ + chainActivity?: ChainActivity; +} +/** + * Check if a given object implements the StakingCollectRewardTxResponse interface. + */ +export declare function instanceOfStakingCollectRewardTxResponse(value: object): value is StakingCollectRewardTxResponse; +export declare function StakingCollectRewardTxResponseFromJSON(json: any): StakingCollectRewardTxResponse; +export declare function StakingCollectRewardTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakingCollectRewardTxResponse; +export declare function StakingCollectRewardTxResponseToJSON(json: any): StakingCollectRewardTxResponse; +export declare function StakingCollectRewardTxResponseToJSONTyped(value?: StakingCollectRewardTxResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=StakingCollectRewardTxResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakingCollectRewardTxResponse.d.ts.map b/dist/cjs/service/src/models/StakingCollectRewardTxResponse.d.ts.map new file mode 100644 index 0000000..360db90 --- /dev/null +++ b/dist/cjs/service/src/models/StakingCollectRewardTxResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StakingCollectRewardTxResponse.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/StakingCollectRewardTxResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,8BAA8B;IAC3C;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CACjC;AAED;;GAEG;AACH,wBAAgB,wCAAwC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,8BAA8B,CAE/G;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,GAAG,8BAA8B,CAEhG;AAED,wBAAgB,2CAA2C,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,8BAA8B,CAQnI;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,GAAG,8BAA8B,CAE9F;AAED,wBAAgB,yCAAyC,CAAC,KAAK,CAAC,EAAE,8BAA8B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASlJ"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakingCollectRewardTxResponse.js b/dist/cjs/service/src/models/StakingCollectRewardTxResponse.js new file mode 100644 index 0000000..9befa73 --- /dev/null +++ b/dist/cjs/service/src/models/StakingCollectRewardTxResponse.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfStakingCollectRewardTxResponse = instanceOfStakingCollectRewardTxResponse; +exports.StakingCollectRewardTxResponseFromJSON = StakingCollectRewardTxResponseFromJSON; +exports.StakingCollectRewardTxResponseFromJSONTyped = StakingCollectRewardTxResponseFromJSONTyped; +exports.StakingCollectRewardTxResponseToJSON = StakingCollectRewardTxResponseToJSON; +exports.StakingCollectRewardTxResponseToJSONTyped = StakingCollectRewardTxResponseToJSONTyped; +const ChainActivity_1 = require("./ChainActivity"); +/** + * Check if a given object implements the StakingCollectRewardTxResponse interface. + */ +function instanceOfStakingCollectRewardTxResponse(value) { + return true; +} +function StakingCollectRewardTxResponseFromJSON(json) { + return StakingCollectRewardTxResponseFromJSONTyped(json, false); +} +function StakingCollectRewardTxResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'chainActivity': json['chainActivity'] == null ? undefined : (0, ChainActivity_1.ChainActivityFromJSON)(json['chainActivity']), + }; +} +function StakingCollectRewardTxResponseToJSON(json) { + return StakingCollectRewardTxResponseToJSONTyped(json, false); +} +function StakingCollectRewardTxResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'chainActivity': (0, ChainActivity_1.ChainActivityToJSON)(value['chainActivity']), + }; +} +//# sourceMappingURL=StakingCollectRewardTxResponse.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakingCollectRewardTxResponse.js.map b/dist/cjs/service/src/models/StakingCollectRewardTxResponse.js.map new file mode 100644 index 0000000..d0276a8 --- /dev/null +++ b/dist/cjs/service/src/models/StakingCollectRewardTxResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StakingCollectRewardTxResponse.js","sourceRoot":"","sources":["../../../../../src/service/src/models/StakingCollectRewardTxResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,4FAEC;AAED,wFAEC;AAED,kGAQC;AAED,oFAEC;AAED,8FASC;AAvDD,mDAKyB;AAgBzB;;GAEG;AACH,SAAgB,wCAAwC,CAAC,KAAa;IAClE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,sCAAsC,CAAC,IAAS;IAC5D,OAAO,2CAA2C,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpE,CAAC;AAED,SAAgB,2CAA2C,CAAC,IAAS,EAAE,mBAA4B;IAC/F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qCAAqB,EAAC,IAAI,CAAC,eAAe,CAAC,CAAC;KAC5G,CAAC;AACN,CAAC;AAED,SAAgB,oCAAoC,CAAC,IAAS;IAC1D,OAAO,yCAAyC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClE,CAAC;AAED,SAAgB,yCAAyC,CAAC,KAA6C,EAAE,sBAA+B,KAAK;IACzI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,eAAe,EAAE,IAAA,mCAAmB,EAAC,KAAK,CAAC,eAAe,CAAC,CAAC;KAC/D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakingStakeTxRequest.d.ts b/dist/cjs/service/src/models/StakingStakeTxRequest.d.ts new file mode 100644 index 0000000..0f3598c --- /dev/null +++ b/dist/cjs/service/src/models/StakingStakeTxRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StakingStakeTxRequest + */ +export interface StakingStakeTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StakingStakeTxRequest + */ + user: string; + /** + * Ethereum address of the staking contract + * @type {string} + * @memberof StakingStakeTxRequest + */ + contractAddress: string; + /** + * The amount of asset to stake in native token units + * @type {string} + * @memberof StakingStakeTxRequest + */ + amount?: string; +} +/** + * Check if a given object implements the StakingStakeTxRequest interface. + */ +export declare function instanceOfStakingStakeTxRequest(value: object): value is StakingStakeTxRequest; +export declare function StakingStakeTxRequestFromJSON(json: any): StakingStakeTxRequest; +export declare function StakingStakeTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakingStakeTxRequest; +export declare function StakingStakeTxRequestToJSON(json: any): StakingStakeTxRequest; +export declare function StakingStakeTxRequestToJSONTyped(value?: StakingStakeTxRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=StakingStakeTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakingStakeTxRequest.d.ts.map b/dist/cjs/service/src/models/StakingStakeTxRequest.d.ts.map new file mode 100644 index 0000000..e4c059e --- /dev/null +++ b/dist/cjs/service/src/models/StakingStakeTxRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StakingStakeTxRequest.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/StakingStakeTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAI7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAUjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWhI"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakingStakeTxRequest.js b/dist/cjs/service/src/models/StakingStakeTxRequest.js new file mode 100644 index 0000000..264282a --- /dev/null +++ b/dist/cjs/service/src/models/StakingStakeTxRequest.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfStakingStakeTxRequest = instanceOfStakingStakeTxRequest; +exports.StakingStakeTxRequestFromJSON = StakingStakeTxRequestFromJSON; +exports.StakingStakeTxRequestFromJSONTyped = StakingStakeTxRequestFromJSONTyped; +exports.StakingStakeTxRequestToJSON = StakingStakeTxRequestToJSON; +exports.StakingStakeTxRequestToJSONTyped = StakingStakeTxRequestToJSONTyped; +/** + * Check if a given object implements the StakingStakeTxRequest interface. + */ +function instanceOfStakingStakeTxRequest(value) { + if (!('user' in value) || value['user'] === undefined) + return false; + if (!('contractAddress' in value) || value['contractAddress'] === undefined) + return false; + return true; +} +function StakingStakeTxRequestFromJSON(json) { + return StakingStakeTxRequestFromJSONTyped(json, false); +} +function StakingStakeTxRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'user': json['user'], + 'contractAddress': json['contractAddress'], + 'amount': json['amount'] == null ? undefined : json['amount'], + }; +} +function StakingStakeTxRequestToJSON(json) { + return StakingStakeTxRequestToJSONTyped(json, false); +} +function StakingStakeTxRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'user': value['user'], + 'contractAddress': value['contractAddress'], + 'amount': value['amount'], + }; +} +//# sourceMappingURL=StakingStakeTxRequest.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakingStakeTxRequest.js.map b/dist/cjs/service/src/models/StakingStakeTxRequest.js.map new file mode 100644 index 0000000..bad4877 --- /dev/null +++ b/dist/cjs/service/src/models/StakingStakeTxRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StakingStakeTxRequest.js","sourceRoot":"","sources":["../../../../../src/service/src/models/StakingStakeTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,0EAIC;AAED,sEAEC;AAED,gFAUC;AAED,kEAEC;AAED,4EAWC;AAxCD;;GAEG;AACH,SAAgB,+BAA+B,CAAC,KAAa;IACzD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1F,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,CAAC;QAC1C,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,KAAoC,EAAE,sBAA+B,KAAK;IACvH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;QAC3C,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakingStakeTxResponse.d.ts b/dist/cjs/service/src/models/StakingStakeTxResponse.d.ts new file mode 100644 index 0000000..1c0b4a4 --- /dev/null +++ b/dist/cjs/service/src/models/StakingStakeTxResponse.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivity } from './ChainActivity'; +/** + * + * @export + * @interface StakingStakeTxResponse + */ +export interface StakingStakeTxResponse { + /** + * + * @type {ChainActivity} + * @memberof StakingStakeTxResponse + */ + chainActivity?: ChainActivity; +} +/** + * Check if a given object implements the StakingStakeTxResponse interface. + */ +export declare function instanceOfStakingStakeTxResponse(value: object): value is StakingStakeTxResponse; +export declare function StakingStakeTxResponseFromJSON(json: any): StakingStakeTxResponse; +export declare function StakingStakeTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakingStakeTxResponse; +export declare function StakingStakeTxResponseToJSON(json: any): StakingStakeTxResponse; +export declare function StakingStakeTxResponseToJSONTyped(value?: StakingStakeTxResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=StakingStakeTxResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakingStakeTxResponse.d.ts.map b/dist/cjs/service/src/models/StakingStakeTxResponse.d.ts.map new file mode 100644 index 0000000..a14c59e --- /dev/null +++ b/dist/cjs/service/src/models/StakingStakeTxResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StakingStakeTxResponse.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/StakingStakeTxResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CACjC;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,sBAAsB,CAE/F;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAEhF;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,sBAAsB,CAQnH;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAE9E;AAED,wBAAgB,iCAAiC,CAAC,KAAK,CAAC,EAAE,sBAAsB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASlI"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakingStakeTxResponse.js b/dist/cjs/service/src/models/StakingStakeTxResponse.js new file mode 100644 index 0000000..f0f8269 --- /dev/null +++ b/dist/cjs/service/src/models/StakingStakeTxResponse.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfStakingStakeTxResponse = instanceOfStakingStakeTxResponse; +exports.StakingStakeTxResponseFromJSON = StakingStakeTxResponseFromJSON; +exports.StakingStakeTxResponseFromJSONTyped = StakingStakeTxResponseFromJSONTyped; +exports.StakingStakeTxResponseToJSON = StakingStakeTxResponseToJSON; +exports.StakingStakeTxResponseToJSONTyped = StakingStakeTxResponseToJSONTyped; +const ChainActivity_1 = require("./ChainActivity"); +/** + * Check if a given object implements the StakingStakeTxResponse interface. + */ +function instanceOfStakingStakeTxResponse(value) { + return true; +} +function StakingStakeTxResponseFromJSON(json) { + return StakingStakeTxResponseFromJSONTyped(json, false); +} +function StakingStakeTxResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'chainActivity': json['chainActivity'] == null ? undefined : (0, ChainActivity_1.ChainActivityFromJSON)(json['chainActivity']), + }; +} +function StakingStakeTxResponseToJSON(json) { + return StakingStakeTxResponseToJSONTyped(json, false); +} +function StakingStakeTxResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'chainActivity': (0, ChainActivity_1.ChainActivityToJSON)(value['chainActivity']), + }; +} +//# sourceMappingURL=StakingStakeTxResponse.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakingStakeTxResponse.js.map b/dist/cjs/service/src/models/StakingStakeTxResponse.js.map new file mode 100644 index 0000000..aa8b1fb --- /dev/null +++ b/dist/cjs/service/src/models/StakingStakeTxResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StakingStakeTxResponse.js","sourceRoot":"","sources":["../../../../../src/service/src/models/StakingStakeTxResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,4EAEC;AAED,wEAEC;AAED,kFAQC;AAED,oEAEC;AAED,8EASC;AAvDD,mDAKyB;AAgBzB;;GAEG;AACH,SAAgB,gCAAgC,CAAC,KAAa;IAC1D,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS;IACpD,OAAO,mCAAmC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5D,CAAC;AAED,SAAgB,mCAAmC,CAAC,IAAS,EAAE,mBAA4B;IACvF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qCAAqB,EAAC,IAAI,CAAC,eAAe,CAAC,CAAC;KAC5G,CAAC;AACN,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,SAAgB,iCAAiC,CAAC,KAAqC,EAAE,sBAA+B,KAAK;IACzH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,eAAe,EAAE,IAAA,mCAAmB,EAAC,KAAK,CAAC,eAAe,CAAC,CAAC;KAC/D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakingWithdrawTxRequest.d.ts b/dist/cjs/service/src/models/StakingWithdrawTxRequest.d.ts new file mode 100644 index 0000000..04b9941 --- /dev/null +++ b/dist/cjs/service/src/models/StakingWithdrawTxRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface StakingWithdrawTxRequest + */ +export interface StakingWithdrawTxRequest { + /** + * Ethereum address of the user + * @type {string} + * @memberof StakingWithdrawTxRequest + */ + user: string; + /** + * Ethereum address of the staking contract + * @type {string} + * @memberof StakingWithdrawTxRequest + */ + contractAddress: string; + /** + * The amount of asset to withdraw in native token units + * @type {string} + * @memberof StakingWithdrawTxRequest + */ + amount?: string; +} +/** + * Check if a given object implements the StakingWithdrawTxRequest interface. + */ +export declare function instanceOfStakingWithdrawTxRequest(value: object): value is StakingWithdrawTxRequest; +export declare function StakingWithdrawTxRequestFromJSON(json: any): StakingWithdrawTxRequest; +export declare function StakingWithdrawTxRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakingWithdrawTxRequest; +export declare function StakingWithdrawTxRequestToJSON(json: any): StakingWithdrawTxRequest; +export declare function StakingWithdrawTxRequestToJSONTyped(value?: StakingWithdrawTxRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=StakingWithdrawTxRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakingWithdrawTxRequest.d.ts.map b/dist/cjs/service/src/models/StakingWithdrawTxRequest.d.ts.map new file mode 100644 index 0000000..9413f60 --- /dev/null +++ b/dist/cjs/service/src/models/StakingWithdrawTxRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StakingWithdrawTxRequest.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/StakingWithdrawTxRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,kCAAkC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,wBAAwB,CAInG;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,wBAAwB,CAEpF;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,wBAAwB,CAUvH;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,wBAAwB,CAElF;AAED,wBAAgB,mCAAmC,CAAC,KAAK,CAAC,EAAE,wBAAwB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWtI"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakingWithdrawTxRequest.js b/dist/cjs/service/src/models/StakingWithdrawTxRequest.js new file mode 100644 index 0000000..631a7a5 --- /dev/null +++ b/dist/cjs/service/src/models/StakingWithdrawTxRequest.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfStakingWithdrawTxRequest = instanceOfStakingWithdrawTxRequest; +exports.StakingWithdrawTxRequestFromJSON = StakingWithdrawTxRequestFromJSON; +exports.StakingWithdrawTxRequestFromJSONTyped = StakingWithdrawTxRequestFromJSONTyped; +exports.StakingWithdrawTxRequestToJSON = StakingWithdrawTxRequestToJSON; +exports.StakingWithdrawTxRequestToJSONTyped = StakingWithdrawTxRequestToJSONTyped; +/** + * Check if a given object implements the StakingWithdrawTxRequest interface. + */ +function instanceOfStakingWithdrawTxRequest(value) { + if (!('user' in value) || value['user'] === undefined) + return false; + if (!('contractAddress' in value) || value['contractAddress'] === undefined) + return false; + return true; +} +function StakingWithdrawTxRequestFromJSON(json) { + return StakingWithdrawTxRequestFromJSONTyped(json, false); +} +function StakingWithdrawTxRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'user': json['user'], + 'contractAddress': json['contractAddress'], + 'amount': json['amount'] == null ? undefined : json['amount'], + }; +} +function StakingWithdrawTxRequestToJSON(json) { + return StakingWithdrawTxRequestToJSONTyped(json, false); +} +function StakingWithdrawTxRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'user': value['user'], + 'contractAddress': value['contractAddress'], + 'amount': value['amount'], + }; +} +//# sourceMappingURL=StakingWithdrawTxRequest.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakingWithdrawTxRequest.js.map b/dist/cjs/service/src/models/StakingWithdrawTxRequest.js.map new file mode 100644 index 0000000..84d46eb --- /dev/null +++ b/dist/cjs/service/src/models/StakingWithdrawTxRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StakingWithdrawTxRequest.js","sourceRoot":"","sources":["../../../../../src/service/src/models/StakingWithdrawTxRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,gFAIC;AAED,4EAEC;AAED,sFAUC;AAED,wEAEC;AAED,kFAWC;AAxCD;;GAEG;AACH,SAAgB,kCAAkC,CAAC,KAAa;IAC5D,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1F,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS;IACtD,OAAO,qCAAqC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9D,CAAC;AAED,SAAgB,qCAAqC,CAAC,IAAS,EAAE,mBAA4B;IACzF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,CAAC;QAC1C,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS;IACpD,OAAO,mCAAmC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5D,CAAC;AAED,SAAgB,mCAAmC,CAAC,KAAuC,EAAE,sBAA+B,KAAK;IAC7H,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;QAC3C,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakingWithdrawTxResponse.d.ts b/dist/cjs/service/src/models/StakingWithdrawTxResponse.d.ts new file mode 100644 index 0000000..26eec2b --- /dev/null +++ b/dist/cjs/service/src/models/StakingWithdrawTxResponse.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ChainActivity } from './ChainActivity'; +/** + * + * @export + * @interface StakingWithdrawTxResponse + */ +export interface StakingWithdrawTxResponse { + /** + * + * @type {ChainActivity} + * @memberof StakingWithdrawTxResponse + */ + chainActivity?: ChainActivity; +} +/** + * Check if a given object implements the StakingWithdrawTxResponse interface. + */ +export declare function instanceOfStakingWithdrawTxResponse(value: object): value is StakingWithdrawTxResponse; +export declare function StakingWithdrawTxResponseFromJSON(json: any): StakingWithdrawTxResponse; +export declare function StakingWithdrawTxResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): StakingWithdrawTxResponse; +export declare function StakingWithdrawTxResponseToJSON(json: any): StakingWithdrawTxResponse; +export declare function StakingWithdrawTxResponseToJSONTyped(value?: StakingWithdrawTxResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=StakingWithdrawTxResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakingWithdrawTxResponse.d.ts.map b/dist/cjs/service/src/models/StakingWithdrawTxResponse.d.ts.map new file mode 100644 index 0000000..27c8f97 --- /dev/null +++ b/dist/cjs/service/src/models/StakingWithdrawTxResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"StakingWithdrawTxResponse.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/StakingWithdrawTxResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,yBAAyB;IACtC;;;;OAIG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC;CACjC;AAED;;GAEG;AACH,wBAAgB,mCAAmC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,yBAAyB,CAErG;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,GAAG,yBAAyB,CAEtF;AAED,wBAAgB,sCAAsC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,yBAAyB,CAQzH;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,yBAAyB,CAEpF;AAED,wBAAgB,oCAAoC,CAAC,KAAK,CAAC,EAAE,yBAAyB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASxI"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakingWithdrawTxResponse.js b/dist/cjs/service/src/models/StakingWithdrawTxResponse.js new file mode 100644 index 0000000..e2600c4 --- /dev/null +++ b/dist/cjs/service/src/models/StakingWithdrawTxResponse.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfStakingWithdrawTxResponse = instanceOfStakingWithdrawTxResponse; +exports.StakingWithdrawTxResponseFromJSON = StakingWithdrawTxResponseFromJSON; +exports.StakingWithdrawTxResponseFromJSONTyped = StakingWithdrawTxResponseFromJSONTyped; +exports.StakingWithdrawTxResponseToJSON = StakingWithdrawTxResponseToJSON; +exports.StakingWithdrawTxResponseToJSONTyped = StakingWithdrawTxResponseToJSONTyped; +const ChainActivity_1 = require("./ChainActivity"); +/** + * Check if a given object implements the StakingWithdrawTxResponse interface. + */ +function instanceOfStakingWithdrawTxResponse(value) { + return true; +} +function StakingWithdrawTxResponseFromJSON(json) { + return StakingWithdrawTxResponseFromJSONTyped(json, false); +} +function StakingWithdrawTxResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'chainActivity': json['chainActivity'] == null ? undefined : (0, ChainActivity_1.ChainActivityFromJSON)(json['chainActivity']), + }; +} +function StakingWithdrawTxResponseToJSON(json) { + return StakingWithdrawTxResponseToJSONTyped(json, false); +} +function StakingWithdrawTxResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'chainActivity': (0, ChainActivity_1.ChainActivityToJSON)(value['chainActivity']), + }; +} +//# sourceMappingURL=StakingWithdrawTxResponse.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/StakingWithdrawTxResponse.js.map b/dist/cjs/service/src/models/StakingWithdrawTxResponse.js.map new file mode 100644 index 0000000..f6593c8 --- /dev/null +++ b/dist/cjs/service/src/models/StakingWithdrawTxResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"StakingWithdrawTxResponse.js","sourceRoot":"","sources":["../../../../../src/service/src/models/StakingWithdrawTxResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,kFAEC;AAED,8EAEC;AAED,wFAQC;AAED,0EAEC;AAED,oFASC;AAvDD,mDAKyB;AAgBzB;;GAEG;AACH,SAAgB,mCAAmC,CAAC,KAAa;IAC7D,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,iCAAiC,CAAC,IAAS;IACvD,OAAO,sCAAsC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/D,CAAC;AAED,SAAgB,sCAAsC,CAAC,IAAS,EAAE,mBAA4B;IAC1F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,qCAAqB,EAAC,IAAI,CAAC,eAAe,CAAC,CAAC;KAC5G,CAAC;AACN,CAAC;AAED,SAAgB,+BAA+B,CAAC,IAAS;IACrD,OAAO,oCAAoC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7D,CAAC;AAED,SAAgB,oCAAoC,CAAC,KAAwC,EAAE,sBAA+B,KAAK;IAC/H,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,eAAe,EAAE,IAAA,mCAAmB,EAAC,KAAK,CAAC,eAAe,CAAC,CAAC;KAC/D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Stats.d.ts b/dist/cjs/service/src/models/Stats.d.ts new file mode 100644 index 0000000..e3d2df9 --- /dev/null +++ b/dist/cjs/service/src/models/Stats.d.ts @@ -0,0 +1,41 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LendingpoolStats } from './LendingpoolStats'; +import type { StablecoinSystemStats } from './StablecoinSystemStats'; +/** + * + * @export + * @interface Stats + */ +export interface Stats { + /** + * + * @type {StablecoinSystemStats} + * @memberof Stats + */ + stablecoinSystem: StablecoinSystemStats; + /** + * + * @type {LendingpoolStats} + * @memberof Stats + */ + lendingpool: LendingpoolStats; +} +/** + * Check if a given object implements the Stats interface. + */ +export declare function instanceOfStats(value: object): value is Stats; +export declare function StatsFromJSON(json: any): Stats; +export declare function StatsFromJSONTyped(json: any, ignoreDiscriminator: boolean): Stats; +export declare function StatsToJSON(json: any): Stats; +export declare function StatsToJSONTyped(value?: Stats | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=Stats.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Stats.d.ts.map b/dist/cjs/service/src/models/Stats.d.ts.map new file mode 100644 index 0000000..1fa8341 --- /dev/null +++ b/dist/cjs/service/src/models/Stats.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Stats.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/Stats.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAO3D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAQrE;;;;GAIG;AACH,MAAM,WAAW,KAAK;IAClB;;;;OAIG;IACH,gBAAgB,EAAE,qBAAqB,CAAC;IACxC;;;;OAIG;IACH,WAAW,EAAE,gBAAgB,CAAC;CACjC;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,KAAK,CAI7D;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,KAAK,CAE9C;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,KAAK,CASjF;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,GAAG,GAAG,KAAK,CAE5C;AAED,wBAAgB,gBAAgB,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUhG"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Stats.js b/dist/cjs/service/src/models/Stats.js new file mode 100644 index 0000000..5922d76 --- /dev/null +++ b/dist/cjs/service/src/models/Stats.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfStats = instanceOfStats; +exports.StatsFromJSON = StatsFromJSON; +exports.StatsFromJSONTyped = StatsFromJSONTyped; +exports.StatsToJSON = StatsToJSON; +exports.StatsToJSONTyped = StatsToJSONTyped; +const LendingpoolStats_1 = require("./LendingpoolStats"); +const StablecoinSystemStats_1 = require("./StablecoinSystemStats"); +/** + * Check if a given object implements the Stats interface. + */ +function instanceOfStats(value) { + if (!('stablecoinSystem' in value) || value['stablecoinSystem'] === undefined) + return false; + if (!('lendingpool' in value) || value['lendingpool'] === undefined) + return false; + return true; +} +function StatsFromJSON(json) { + return StatsFromJSONTyped(json, false); +} +function StatsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'stablecoinSystem': (0, StablecoinSystemStats_1.StablecoinSystemStatsFromJSON)(json['stablecoinSystem']), + 'lendingpool': (0, LendingpoolStats_1.LendingpoolStatsFromJSON)(json['lendingpool']), + }; +} +function StatsToJSON(json) { + return StatsToJSONTyped(json, false); +} +function StatsToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'stablecoinSystem': (0, StablecoinSystemStats_1.StablecoinSystemStatsToJSON)(value['stablecoinSystem']), + 'lendingpool': (0, LendingpoolStats_1.LendingpoolStatsToJSON)(value['lendingpool']), + }; +} +//# sourceMappingURL=Stats.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Stats.js.map b/dist/cjs/service/src/models/Stats.js.map new file mode 100644 index 0000000..b50a8a0 --- /dev/null +++ b/dist/cjs/service/src/models/Stats.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Stats.js","sourceRoot":"","sources":["../../../../../src/service/src/models/Stats.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAyCH,0CAIC;AAED,sCAEC;AAED,gDASC;AAED,kCAEC;AAED,4CAUC;AAxED,yDAK4B;AAE5B,mEAKiC;AAsBjC;;GAEG;AACH,SAAgB,eAAe,CAAC,KAAa;IACzC,IAAI,CAAC,CAAC,kBAAkB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,kBAAkB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5F,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,aAAa,CAAC,IAAS;IACnC,OAAO,kBAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3C,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS,EAAE,mBAA4B;IACtE,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,kBAAkB,EAAE,IAAA,qDAA6B,EAAC,IAAI,CAAC,kBAAkB,CAAC,CAAC;QAC3E,aAAa,EAAE,IAAA,2CAAwB,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC;KAC/D,CAAC;AACN,CAAC;AAED,SAAgB,WAAW,CAAC,IAAS;IACjC,OAAO,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzC,CAAC;AAED,SAAgB,gBAAgB,CAAC,KAAoB,EAAE,sBAA+B,KAAK;IACvF,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,kBAAkB,EAAE,IAAA,mDAA2B,EAAC,KAAK,CAAC,kBAAkB,CAAC,CAAC;QAC1E,aAAa,EAAE,IAAA,yCAAsB,EAAC,KAAK,CAAC,aAAa,CAAC,CAAC;KAC9D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Symbol.d.ts b/dist/cjs/service/src/models/Symbol.d.ts new file mode 100644 index 0000000..f851850 --- /dev/null +++ b/dist/cjs/service/src/models/Symbol.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Symbol representation + * @export + */ +export declare const Symbol: { + readonly USD: "USD"; + readonly DAI: "DAI"; + readonly USDT: "USDT"; + readonly USDC: "USDC"; + readonly WBTC: "WBTC"; + readonly ETH: "ETH"; + readonly WETH: "WETH"; + readonly ZAR: "ZAR"; + readonly TMN: "TMN"; +}; +export type Symbol = typeof Symbol[keyof typeof Symbol]; +export declare function instanceOfSymbol(value: any): boolean; +export declare function SymbolFromJSON(json: any): Symbol; +export declare function SymbolFromJSONTyped(json: any, ignoreDiscriminator: boolean): Symbol; +export declare function SymbolToJSON(value?: Symbol | null): any; +export declare function SymbolToJSONTyped(value: any, ignoreDiscriminator: boolean): Symbol; +//# sourceMappingURL=Symbol.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Symbol.d.ts.map b/dist/cjs/service/src/models/Symbol.d.ts.map new file mode 100644 index 0000000..9c7c245 --- /dev/null +++ b/dist/cjs/service/src/models/Symbol.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Symbol.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/Symbol.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;CAUT,CAAC;AACX,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC;AAGxD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASpD;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM,CAEhD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,MAAM,CAEnF;AAED,wBAAgB,YAAY,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,GAAG,CAEvD;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,MAAM,CAElF"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Symbol.js b/dist/cjs/service/src/models/Symbol.js new file mode 100644 index 0000000..3496346 --- /dev/null +++ b/dist/cjs/service/src/models/Symbol.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Symbol = void 0; +exports.instanceOfSymbol = instanceOfSymbol; +exports.SymbolFromJSON = SymbolFromJSON; +exports.SymbolFromJSONTyped = SymbolFromJSONTyped; +exports.SymbolToJSON = SymbolToJSON; +exports.SymbolToJSONTyped = SymbolToJSONTyped; +/** + * Symbol representation + * @export + */ +exports.Symbol = { + USD: 'USD', + DAI: 'DAI', + USDT: 'USDT', + USDC: 'USDC', + WBTC: 'WBTC', + ETH: 'ETH', + WETH: 'WETH', + ZAR: 'ZAR', + TMN: 'TMN' +}; +function instanceOfSymbol(value) { + for (const key in exports.Symbol) { + if (Object.prototype.hasOwnProperty.call(exports.Symbol, key)) { + if (exports.Symbol[key] === value) { + return true; + } + } + } + return false; +} +function SymbolFromJSON(json) { + return SymbolFromJSONTyped(json, false); +} +function SymbolFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SymbolToJSON(value) { + return value; +} +function SymbolToJSONTyped(value, ignoreDiscriminator) { + return value; +} +//# sourceMappingURL=Symbol.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Symbol.js.map b/dist/cjs/service/src/models/Symbol.js.map new file mode 100644 index 0000000..d36b993 --- /dev/null +++ b/dist/cjs/service/src/models/Symbol.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Symbol.js","sourceRoot":"","sources":["../../../../../src/service/src/models/Symbol.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAqBH,4CASC;AAED,wCAEC;AAED,kDAEC;AAED,oCAEC;AAED,8CAEC;AA3CD;;;GAGG;AACU,QAAA,MAAM,GAAG;IAClB,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACJ,CAAC;AAIX,SAAgB,gBAAgB,CAAC,KAAU;IACvC,KAAK,MAAM,GAAG,IAAI,cAAM,EAAE,CAAC;QACvB,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,cAAM,EAAE,GAAG,CAAC,EAAE,CAAC;YACpD,IAAI,cAAM,CAAC,GAA0B,CAAC,KAAK,KAAK,EAAE,CAAC;gBAC/C,OAAO,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAgB,cAAc,CAAC,IAAS;IACpC,OAAO,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5C,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS,EAAE,mBAA4B;IACvE,OAAO,IAAc,CAAC;AAC1B,CAAC;AAED,SAAgB,YAAY,CAAC,KAAqB;IAC9C,OAAO,KAAY,CAAC;AACxB,CAAC;AAED,SAAgB,iBAAiB,CAAC,KAAU,EAAE,mBAA4B;IACtE,OAAO,KAAe,CAAC;AAC3B,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/SystemBadDebt.d.ts b/dist/cjs/service/src/models/SystemBadDebt.d.ts new file mode 100644 index 0000000..e8d14ce --- /dev/null +++ b/dist/cjs/service/src/models/SystemBadDebt.d.ts @@ -0,0 +1,27 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * System bad debt + * @export + * @interface SystemBadDebt + */ +export interface SystemBadDebt { +} +/** + * Check if a given object implements the SystemBadDebt interface. + */ +export declare function instanceOfSystemBadDebt(value: object): value is SystemBadDebt; +export declare function SystemBadDebtFromJSON(json: any): SystemBadDebt; +export declare function SystemBadDebtFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemBadDebt; +export declare function SystemBadDebtToJSON(json: any): SystemBadDebt; +export declare function SystemBadDebtToJSONTyped(value?: SystemBadDebt | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=SystemBadDebt.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/SystemBadDebt.d.ts.map b/dist/cjs/service/src/models/SystemBadDebt.d.ts.map new file mode 100644 index 0000000..a4ad1e0 --- /dev/null +++ b/dist/cjs/service/src/models/SystemBadDebt.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SystemBadDebt.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/SystemBadDebt.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,aAAa;CAC7B;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAE7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAEjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAEhH"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/SystemBadDebt.js b/dist/cjs/service/src/models/SystemBadDebt.js new file mode 100644 index 0000000..f581fa0 --- /dev/null +++ b/dist/cjs/service/src/models/SystemBadDebt.js @@ -0,0 +1,39 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSystemBadDebt = instanceOfSystemBadDebt; +exports.SystemBadDebtFromJSON = SystemBadDebtFromJSON; +exports.SystemBadDebtFromJSONTyped = SystemBadDebtFromJSONTyped; +exports.SystemBadDebtToJSON = SystemBadDebtToJSON; +exports.SystemBadDebtToJSONTyped = SystemBadDebtToJSONTyped; +/** + * Check if a given object implements the SystemBadDebt interface. + */ +function instanceOfSystemBadDebt(value) { + return true; +} +function SystemBadDebtFromJSON(json) { + return SystemBadDebtFromJSONTyped(json, false); +} +function SystemBadDebtFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SystemBadDebtToJSON(json) { + return SystemBadDebtToJSONTyped(json, false); +} +function SystemBadDebtToJSONTyped(value, ignoreDiscriminator = false) { + return value; +} +//# sourceMappingURL=SystemBadDebt.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/SystemBadDebt.js.map b/dist/cjs/service/src/models/SystemBadDebt.js.map new file mode 100644 index 0000000..be0748f --- /dev/null +++ b/dist/cjs/service/src/models/SystemBadDebt.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SystemBadDebt.js","sourceRoot":"","sources":["../../../../../src/service/src/models/SystemBadDebt.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAcH,0DAEC;AAED,sDAEC;AAED,gEAEC;AAED,kDAEC;AAED,4DAEC;AArBD;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS,EAAE,mBAA4B;IAC9E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,KAA4B,EAAE,sBAA+B,KAAK;IACvG,OAAO,KAAK,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/SystemDebt.d.ts b/dist/cjs/service/src/models/SystemDebt.d.ts new file mode 100644 index 0000000..7888efc --- /dev/null +++ b/dist/cjs/service/src/models/SystemDebt.d.ts @@ -0,0 +1,27 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * System debt + * @export + * @interface SystemDebt + */ +export interface SystemDebt { +} +/** + * Check if a given object implements the SystemDebt interface. + */ +export declare function instanceOfSystemDebt(value: object): value is SystemDebt; +export declare function SystemDebtFromJSON(json: any): SystemDebt; +export declare function SystemDebtFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemDebt; +export declare function SystemDebtToJSON(json: any): SystemDebt; +export declare function SystemDebtToJSONTyped(value?: SystemDebt | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=SystemDebt.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/SystemDebt.d.ts.map b/dist/cjs/service/src/models/SystemDebt.d.ts.map new file mode 100644 index 0000000..7eb22db --- /dev/null +++ b/dist/cjs/service/src/models/SystemDebt.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SystemDebt.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/SystemDebt.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,UAAU;CAC1B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAEvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAE3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAE1G"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/SystemDebt.js b/dist/cjs/service/src/models/SystemDebt.js new file mode 100644 index 0000000..373fb57 --- /dev/null +++ b/dist/cjs/service/src/models/SystemDebt.js @@ -0,0 +1,39 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSystemDebt = instanceOfSystemDebt; +exports.SystemDebtFromJSON = SystemDebtFromJSON; +exports.SystemDebtFromJSONTyped = SystemDebtFromJSONTyped; +exports.SystemDebtToJSON = SystemDebtToJSON; +exports.SystemDebtToJSONTyped = SystemDebtToJSONTyped; +/** + * Check if a given object implements the SystemDebt interface. + */ +function instanceOfSystemDebt(value) { + return true; +} +function SystemDebtFromJSON(json) { + return SystemDebtFromJSONTyped(json, false); +} +function SystemDebtFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SystemDebtToJSON(json) { + return SystemDebtToJSONTyped(json, false); +} +function SystemDebtToJSONTyped(value, ignoreDiscriminator = false) { + return value; +} +//# sourceMappingURL=SystemDebt.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/SystemDebt.js.map b/dist/cjs/service/src/models/SystemDebt.js.map new file mode 100644 index 0000000..b752f10 --- /dev/null +++ b/dist/cjs/service/src/models/SystemDebt.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SystemDebt.js","sourceRoot":"","sources":["../../../../../src/service/src/models/SystemDebt.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAcH,oDAEC;AAED,gDAEC;AAED,0DAEC;AAED,4CAEC;AAED,sDAEC;AArBD;;GAEG;AACH,SAAgB,oBAAoB,CAAC,KAAa;IAC9C,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS,EAAE,mBAA4B;IAC3E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,gBAAgB,CAAC,IAAS;IACtC,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,qBAAqB,CAAC,KAAyB,EAAE,sBAA+B,KAAK;IACjG,OAAO,KAAK,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/SystemDebtCeiling.d.ts b/dist/cjs/service/src/models/SystemDebtCeiling.d.ts new file mode 100644 index 0000000..033dd02 --- /dev/null +++ b/dist/cjs/service/src/models/SystemDebtCeiling.d.ts @@ -0,0 +1,27 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * System debt ceiling + * @export + * @interface SystemDebtCeiling + */ +export interface SystemDebtCeiling { +} +/** + * Check if a given object implements the SystemDebtCeiling interface. + */ +export declare function instanceOfSystemDebtCeiling(value: object): value is SystemDebtCeiling; +export declare function SystemDebtCeilingFromJSON(json: any): SystemDebtCeiling; +export declare function SystemDebtCeilingFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemDebtCeiling; +export declare function SystemDebtCeilingToJSON(json: any): SystemDebtCeiling; +export declare function SystemDebtCeilingToJSONTyped(value?: SystemDebtCeiling | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=SystemDebtCeiling.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/SystemDebtCeiling.d.ts.map b/dist/cjs/service/src/models/SystemDebtCeiling.d.ts.map new file mode 100644 index 0000000..ebaa570 --- /dev/null +++ b/dist/cjs/service/src/models/SystemDebtCeiling.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SystemDebtCeiling.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/SystemDebtCeiling.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;CACjC;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAErF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAEzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAExH"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/SystemDebtCeiling.js b/dist/cjs/service/src/models/SystemDebtCeiling.js new file mode 100644 index 0000000..225aeea --- /dev/null +++ b/dist/cjs/service/src/models/SystemDebtCeiling.js @@ -0,0 +1,39 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSystemDebtCeiling = instanceOfSystemDebtCeiling; +exports.SystemDebtCeilingFromJSON = SystemDebtCeilingFromJSON; +exports.SystemDebtCeilingFromJSONTyped = SystemDebtCeilingFromJSONTyped; +exports.SystemDebtCeilingToJSON = SystemDebtCeilingToJSON; +exports.SystemDebtCeilingToJSONTyped = SystemDebtCeilingToJSONTyped; +/** + * Check if a given object implements the SystemDebtCeiling interface. + */ +function instanceOfSystemDebtCeiling(value) { + return true; +} +function SystemDebtCeilingFromJSON(json) { + return SystemDebtCeilingFromJSONTyped(json, false); +} +function SystemDebtCeilingFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SystemDebtCeilingToJSON(json) { + return SystemDebtCeilingToJSONTyped(json, false); +} +function SystemDebtCeilingToJSONTyped(value, ignoreDiscriminator = false) { + return value; +} +//# sourceMappingURL=SystemDebtCeiling.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/SystemDebtCeiling.js.map b/dist/cjs/service/src/models/SystemDebtCeiling.js.map new file mode 100644 index 0000000..f495abe --- /dev/null +++ b/dist/cjs/service/src/models/SystemDebtCeiling.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SystemDebtCeiling.js","sourceRoot":"","sources":["../../../../../src/service/src/models/SystemDebtCeiling.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAcH,kEAEC;AAED,8DAEC;AAED,wEAEC;AAED,0DAEC;AAED,oEAEC;AArBD;;GAEG;AACH,SAAgB,2BAA2B,CAAC,KAAa;IACrD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,KAAgC,EAAE,sBAA+B,KAAK;IAC/G,OAAO,KAAK,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/SystemSurplus.d.ts b/dist/cjs/service/src/models/SystemSurplus.d.ts new file mode 100644 index 0000000..0402e7a --- /dev/null +++ b/dist/cjs/service/src/models/SystemSurplus.d.ts @@ -0,0 +1,27 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * System surplus + * @export + * @interface SystemSurplus + */ +export interface SystemSurplus { +} +/** + * Check if a given object implements the SystemSurplus interface. + */ +export declare function instanceOfSystemSurplus(value: object): value is SystemSurplus; +export declare function SystemSurplusFromJSON(json: any): SystemSurplus; +export declare function SystemSurplusFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemSurplus; +export declare function SystemSurplusToJSON(json: any): SystemSurplus; +export declare function SystemSurplusToJSONTyped(value?: SystemSurplus | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=SystemSurplus.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/SystemSurplus.d.ts.map b/dist/cjs/service/src/models/SystemSurplus.d.ts.map new file mode 100644 index 0000000..c2aa857 --- /dev/null +++ b/dist/cjs/service/src/models/SystemSurplus.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SystemSurplus.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/SystemSurplus.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,aAAa;CAC7B;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAE7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAEjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAEhH"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/SystemSurplus.js b/dist/cjs/service/src/models/SystemSurplus.js new file mode 100644 index 0000000..a85191d --- /dev/null +++ b/dist/cjs/service/src/models/SystemSurplus.js @@ -0,0 +1,39 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSystemSurplus = instanceOfSystemSurplus; +exports.SystemSurplusFromJSON = SystemSurplusFromJSON; +exports.SystemSurplusFromJSONTyped = SystemSurplusFromJSONTyped; +exports.SystemSurplusToJSON = SystemSurplusToJSON; +exports.SystemSurplusToJSONTyped = SystemSurplusToJSONTyped; +/** + * Check if a given object implements the SystemSurplus interface. + */ +function instanceOfSystemSurplus(value) { + return true; +} +function SystemSurplusFromJSON(json) { + return SystemSurplusFromJSONTyped(json, false); +} +function SystemSurplusFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SystemSurplusToJSON(json) { + return SystemSurplusToJSONTyped(json, false); +} +function SystemSurplusToJSONTyped(value, ignoreDiscriminator = false) { + return value; +} +//# sourceMappingURL=SystemSurplus.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/SystemSurplus.js.map b/dist/cjs/service/src/models/SystemSurplus.js.map new file mode 100644 index 0000000..05dbc6a --- /dev/null +++ b/dist/cjs/service/src/models/SystemSurplus.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SystemSurplus.js","sourceRoot":"","sources":["../../../../../src/service/src/models/SystemSurplus.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAcH,0DAEC;AAED,sDAEC;AAED,gEAEC;AAED,kDAEC;AAED,4DAEC;AArBD;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS,EAAE,mBAA4B;IAC9E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,KAA4B,EAAE,sBAA+B,KAAK;IACvG,OAAO,KAAK,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/SystemSurplusBuffer.d.ts b/dist/cjs/service/src/models/SystemSurplusBuffer.d.ts new file mode 100644 index 0000000..8f87c51 --- /dev/null +++ b/dist/cjs/service/src/models/SystemSurplusBuffer.d.ts @@ -0,0 +1,27 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * System surplus buffer + * @export + * @interface SystemSurplusBuffer + */ +export interface SystemSurplusBuffer { +} +/** + * Check if a given object implements the SystemSurplusBuffer interface. + */ +export declare function instanceOfSystemSurplusBuffer(value: object): value is SystemSurplusBuffer; +export declare function SystemSurplusBufferFromJSON(json: any): SystemSurplusBuffer; +export declare function SystemSurplusBufferFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemSurplusBuffer; +export declare function SystemSurplusBufferToJSON(json: any): SystemSurplusBuffer; +export declare function SystemSurplusBufferToJSONTyped(value?: SystemSurplusBuffer | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=SystemSurplusBuffer.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/SystemSurplusBuffer.d.ts.map b/dist/cjs/service/src/models/SystemSurplusBuffer.d.ts.map new file mode 100644 index 0000000..f488533 --- /dev/null +++ b/dist/cjs/service/src/models/SystemSurplusBuffer.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SystemSurplusBuffer.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/SystemSurplusBuffer.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;CACnC;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAEzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAE7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAE5H"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/SystemSurplusBuffer.js b/dist/cjs/service/src/models/SystemSurplusBuffer.js new file mode 100644 index 0000000..d5c6973 --- /dev/null +++ b/dist/cjs/service/src/models/SystemSurplusBuffer.js @@ -0,0 +1,39 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSystemSurplusBuffer = instanceOfSystemSurplusBuffer; +exports.SystemSurplusBufferFromJSON = SystemSurplusBufferFromJSON; +exports.SystemSurplusBufferFromJSONTyped = SystemSurplusBufferFromJSONTyped; +exports.SystemSurplusBufferToJSON = SystemSurplusBufferToJSON; +exports.SystemSurplusBufferToJSONTyped = SystemSurplusBufferToJSONTyped; +/** + * Check if a given object implements the SystemSurplusBuffer interface. + */ +function instanceOfSystemSurplusBuffer(value) { + return true; +} +function SystemSurplusBufferFromJSON(json) { + return SystemSurplusBufferFromJSONTyped(json, false); +} +function SystemSurplusBufferFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SystemSurplusBufferToJSON(json) { + return SystemSurplusBufferToJSONTyped(json, false); +} +function SystemSurplusBufferToJSONTyped(value, ignoreDiscriminator = false) { + return value; +} +//# sourceMappingURL=SystemSurplusBuffer.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/SystemSurplusBuffer.js.map b/dist/cjs/service/src/models/SystemSurplusBuffer.js.map new file mode 100644 index 0000000..7d6184e --- /dev/null +++ b/dist/cjs/service/src/models/SystemSurplusBuffer.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SystemSurplusBuffer.js","sourceRoot":"","sources":["../../../../../src/service/src/models/SystemSurplusBuffer.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAcH,sEAEC;AAED,kEAEC;AAED,4EAEC;AAED,8DAEC;AAED,wEAEC;AArBD;;GAEG;AACH,SAAgB,6BAA6B,CAAC,KAAa;IACvD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,KAAkC,EAAE,sBAA+B,KAAK;IACnH,OAAO,KAAK,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/SystemSurplusLotSize.d.ts b/dist/cjs/service/src/models/SystemSurplusLotSize.d.ts new file mode 100644 index 0000000..600fc45 --- /dev/null +++ b/dist/cjs/service/src/models/SystemSurplusLotSize.d.ts @@ -0,0 +1,27 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * System surplus lot size + * @export + * @interface SystemSurplusLotSize + */ +export interface SystemSurplusLotSize { +} +/** + * Check if a given object implements the SystemSurplusLotSize interface. + */ +export declare function instanceOfSystemSurplusLotSize(value: object): value is SystemSurplusLotSize; +export declare function SystemSurplusLotSizeFromJSON(json: any): SystemSurplusLotSize; +export declare function SystemSurplusLotSizeFromJSONTyped(json: any, ignoreDiscriminator: boolean): SystemSurplusLotSize; +export declare function SystemSurplusLotSizeToJSON(json: any): SystemSurplusLotSize; +export declare function SystemSurplusLotSizeToJSONTyped(value?: SystemSurplusLotSize | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=SystemSurplusLotSize.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/SystemSurplusLotSize.d.ts.map b/dist/cjs/service/src/models/SystemSurplusLotSize.d.ts.map new file mode 100644 index 0000000..fa27faf --- /dev/null +++ b/dist/cjs/service/src/models/SystemSurplusLotSize.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SystemSurplusLotSize.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/SystemSurplusLotSize.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;CACpC;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAE3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAE/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAE9H"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/SystemSurplusLotSize.js b/dist/cjs/service/src/models/SystemSurplusLotSize.js new file mode 100644 index 0000000..2c64852 --- /dev/null +++ b/dist/cjs/service/src/models/SystemSurplusLotSize.js @@ -0,0 +1,39 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSystemSurplusLotSize = instanceOfSystemSurplusLotSize; +exports.SystemSurplusLotSizeFromJSON = SystemSurplusLotSizeFromJSON; +exports.SystemSurplusLotSizeFromJSONTyped = SystemSurplusLotSizeFromJSONTyped; +exports.SystemSurplusLotSizeToJSON = SystemSurplusLotSizeToJSON; +exports.SystemSurplusLotSizeToJSONTyped = SystemSurplusLotSizeToJSONTyped; +/** + * Check if a given object implements the SystemSurplusLotSize interface. + */ +function instanceOfSystemSurplusLotSize(value) { + return true; +} +function SystemSurplusLotSizeFromJSON(json) { + return SystemSurplusLotSizeFromJSONTyped(json, false); +} +function SystemSurplusLotSizeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SystemSurplusLotSizeToJSON(json) { + return SystemSurplusLotSizeToJSONTyped(json, false); +} +function SystemSurplusLotSizeToJSONTyped(value, ignoreDiscriminator = false) { + return value; +} +//# sourceMappingURL=SystemSurplusLotSize.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/SystemSurplusLotSize.js.map b/dist/cjs/service/src/models/SystemSurplusLotSize.js.map new file mode 100644 index 0000000..98bad07 --- /dev/null +++ b/dist/cjs/service/src/models/SystemSurplusLotSize.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SystemSurplusLotSize.js","sourceRoot":"","sources":["../../../../../src/service/src/models/SystemSurplusLotSize.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAcH,wEAEC;AAED,oEAEC;AAED,8EAEC;AAED,gEAEC;AAED,0EAEC;AArBD;;GAEG;AACH,SAAgB,8BAA8B,CAAC,KAAa;IACxD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,SAAgB,iCAAiC,CAAC,IAAS,EAAE,mBAA4B;IACrF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,KAAmC,EAAE,sBAA+B,KAAK;IACrH,OAAO,KAAK,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/TimeRange.d.ts b/dist/cjs/service/src/models/TimeRange.d.ts new file mode 100644 index 0000000..dca4f65 --- /dev/null +++ b/dist/cjs/service/src/models/TimeRange.d.ts @@ -0,0 +1,39 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface TimeRange + */ +export interface TimeRange { + /** + * + * @type {Date} + * @memberof TimeRange + */ + from?: Date; + /** + * + * @type {Date} + * @memberof TimeRange + */ + to?: Date; +} +/** + * Check if a given object implements the TimeRange interface. + */ +export declare function instanceOfTimeRange(value: object): value is TimeRange; +export declare function TimeRangeFromJSON(json: any): TimeRange; +export declare function TimeRangeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TimeRange; +export declare function TimeRangeToJSON(json: any): TimeRange; +export declare function TimeRangeToJSONTyped(value?: TimeRange | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=TimeRange.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/TimeRange.d.ts.map b/dist/cjs/service/src/models/TimeRange.d.ts.map new file mode 100644 index 0000000..5d7cd7e --- /dev/null +++ b/dist/cjs/service/src/models/TimeRange.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TimeRange.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/TimeRange.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ;;;;OAIG;IACH,EAAE,CAAC,EAAE,IAAI,CAAC;CACb;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAErE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CASzF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUxG"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/TimeRange.js b/dist/cjs/service/src/models/TimeRange.js new file mode 100644 index 0000000..cdae1a6 --- /dev/null +++ b/dist/cjs/service/src/models/TimeRange.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfTimeRange = instanceOfTimeRange; +exports.TimeRangeFromJSON = TimeRangeFromJSON; +exports.TimeRangeFromJSONTyped = TimeRangeFromJSONTyped; +exports.TimeRangeToJSON = TimeRangeToJSON; +exports.TimeRangeToJSONTyped = TimeRangeToJSONTyped; +/** + * Check if a given object implements the TimeRange interface. + */ +function instanceOfTimeRange(value) { + return true; +} +function TimeRangeFromJSON(json) { + return TimeRangeFromJSONTyped(json, false); +} +function TimeRangeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'from': json['from'] == null ? undefined : (new Date(json['from'])), + 'to': json['to'] == null ? undefined : (new Date(json['to'])), + }; +} +function TimeRangeToJSON(json) { + return TimeRangeToJSONTyped(json, false); +} +function TimeRangeToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'from': value['from'] == null ? undefined : ((value['from']).toISOString()), + 'to': value['to'] == null ? undefined : ((value['to']).toISOString()), + }; +} +//# sourceMappingURL=TimeRange.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/TimeRange.js.map b/dist/cjs/service/src/models/TimeRange.js.map new file mode 100644 index 0000000..bafbd4d --- /dev/null +++ b/dist/cjs/service/src/models/TimeRange.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TimeRange.js","sourceRoot":"","sources":["../../../../../src/service/src/models/TimeRange.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,kDAEC;AAED,8CAEC;AAED,wDASC;AAED,0CAEC;AAED,oDAUC;AApCD;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAAa;IAC7C,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC;QACnE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,eAAe,CAAC,IAAS;IACrC,OAAO,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAwB,EAAE,sBAA+B,KAAK;IAC/F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;QAC3E,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;KACxE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Timestamp.d.ts b/dist/cjs/service/src/models/Timestamp.d.ts new file mode 100644 index 0000000..8d02a2a --- /dev/null +++ b/dist/cjs/service/src/models/Timestamp.d.ts @@ -0,0 +1,39 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Timestamp + */ +export interface Timestamp { + /** + * Jalaali date + * @type {string} + * @memberof Timestamp + */ + jalaali: string; + /** + * Gregorian date + * @type {string} + * @memberof Timestamp + */ + gregorian: string; +} +/** + * Check if a given object implements the Timestamp interface. + */ +export declare function instanceOfTimestamp(value: object): value is Timestamp; +export declare function TimestampFromJSON(json: any): Timestamp; +export declare function TimestampFromJSONTyped(json: any, ignoreDiscriminator: boolean): Timestamp; +export declare function TimestampToJSON(json: any): Timestamp; +export declare function TimestampToJSONTyped(value?: Timestamp | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=Timestamp.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Timestamp.d.ts.map b/dist/cjs/service/src/models/Timestamp.d.ts.map new file mode 100644 index 0000000..df0a59f --- /dev/null +++ b/dist/cjs/service/src/models/Timestamp.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Timestamp.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/Timestamp.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAIrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CASzF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUxG"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Timestamp.js b/dist/cjs/service/src/models/Timestamp.js new file mode 100644 index 0000000..45bc782 --- /dev/null +++ b/dist/cjs/service/src/models/Timestamp.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfTimestamp = instanceOfTimestamp; +exports.TimestampFromJSON = TimestampFromJSON; +exports.TimestampFromJSONTyped = TimestampFromJSONTyped; +exports.TimestampToJSON = TimestampToJSON; +exports.TimestampToJSONTyped = TimestampToJSONTyped; +/** + * Check if a given object implements the Timestamp interface. + */ +function instanceOfTimestamp(value) { + if (!('jalaali' in value) || value['jalaali'] === undefined) + return false; + if (!('gregorian' in value) || value['gregorian'] === undefined) + return false; + return true; +} +function TimestampFromJSON(json) { + return TimestampFromJSONTyped(json, false); +} +function TimestampFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'jalaali': json['jalaali'], + 'gregorian': json['gregorian'], + }; +} +function TimestampToJSON(json) { + return TimestampToJSONTyped(json, false); +} +function TimestampToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'jalaali': value['jalaali'], + 'gregorian': value['gregorian'], + }; +} +//# sourceMappingURL=Timestamp.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Timestamp.js.map b/dist/cjs/service/src/models/Timestamp.js.map new file mode 100644 index 0000000..b611838 --- /dev/null +++ b/dist/cjs/service/src/models/Timestamp.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Timestamp.js","sourceRoot":"","sources":["../../../../../src/service/src/models/Timestamp.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,kDAIC;AAED,8CAEC;AAED,wDASC;AAED,0CAEC;AAED,oDAUC;AAtCD;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAAa;IAC7C,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;KACjC,CAAC;AACN,CAAC;AAED,SAAgB,eAAe,CAAC,IAAS;IACrC,OAAO,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAwB,EAAE,sBAA+B,KAAK;IAC/F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;KAClC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Token.d.ts b/dist/cjs/service/src/models/Token.d.ts new file mode 100644 index 0000000..44b0f4a --- /dev/null +++ b/dist/cjs/service/src/models/Token.d.ts @@ -0,0 +1,70 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Symbol } from './Symbol'; +/** + * + * @export + * @interface Token + */ +export interface Token { + /** + * The name of the token. + * @type {string} + * @memberof Token + */ + name: string; + /** + * + * @type {Symbol} + * @memberof Token + */ + symbol: Symbol; + /** + * The number of decimals for the token. + * @type {number} + * @memberof Token + */ + decimals: number; + /** + * The Ethereum address of the token. + * @type {string} + * @memberof Token + */ + address: string; + /** + * The URI of the token's logo. + * @type {string} + * @memberof Token + */ + logoUri: string; + /** + * The chain ID of the token. + * @type {number} + * @memberof Token + */ + chainId: number; + /** + * The Persian name of the token. + * @type {string} + * @memberof Token + */ + persianName: string; +} +/** + * Check if a given object implements the Token interface. + */ +export declare function instanceOfToken(value: object): value is Token; +export declare function TokenFromJSON(json: any): Token; +export declare function TokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): Token; +export declare function TokenToJSON(json: any): Token; +export declare function TokenToJSONTyped(value?: Token | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=Token.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Token.d.ts.map b/dist/cjs/service/src/models/Token.d.ts.map new file mode 100644 index 0000000..79d0b6d --- /dev/null +++ b/dist/cjs/service/src/models/Token.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Token.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/Token.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAQvC;;;;GAIG;AACH,MAAM,WAAW,KAAK;IAClB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;CACvB;AAID;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,KAAK,CAS7D;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,KAAK,CAE9C;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,KAAK,CAcjF;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,GAAG,GAAG,KAAK,CAE5C;AAED,wBAAgB,gBAAgB,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAehG"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Token.js b/dist/cjs/service/src/models/Token.js new file mode 100644 index 0000000..028f5f9 --- /dev/null +++ b/dist/cjs/service/src/models/Token.js @@ -0,0 +1,76 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfToken = instanceOfToken; +exports.TokenFromJSON = TokenFromJSON; +exports.TokenFromJSONTyped = TokenFromJSONTyped; +exports.TokenToJSON = TokenToJSON; +exports.TokenToJSONTyped = TokenToJSONTyped; +const Symbol_1 = require("./Symbol"); +/** + * Check if a given object implements the Token interface. + */ +function instanceOfToken(value) { + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('symbol' in value) || value['symbol'] === undefined) + return false; + if (!('decimals' in value) || value['decimals'] === undefined) + return false; + if (!('address' in value) || value['address'] === undefined) + return false; + if (!('logoUri' in value) || value['logoUri'] === undefined) + return false; + if (!('chainId' in value) || value['chainId'] === undefined) + return false; + if (!('persianName' in value) || value['persianName'] === undefined) + return false; + return true; +} +function TokenFromJSON(json) { + return TokenFromJSONTyped(json, false); +} +function TokenFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'], + 'symbol': (0, Symbol_1.SymbolFromJSON)(json['symbol']), + 'decimals': json['decimals'], + 'address': json['address'], + 'logoUri': json['logoUri'], + 'chainId': json['chainId'], + 'persianName': json['persianName'], + }; +} +function TokenToJSON(json) { + return TokenToJSONTyped(json, false); +} +function TokenToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'symbol': (0, Symbol_1.SymbolToJSON)(value['symbol']), + 'decimals': value['decimals'], + 'address': value['address'], + 'logoUri': value['logoUri'], + 'chainId': value['chainId'], + 'persianName': value['persianName'], + }; +} +//# sourceMappingURL=Token.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Token.js.map b/dist/cjs/service/src/models/Token.js.map new file mode 100644 index 0000000..7138fc7 --- /dev/null +++ b/dist/cjs/service/src/models/Token.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Token.js","sourceRoot":"","sources":["../../../../../src/service/src/models/Token.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAkEH,0CASC;AAED,sCAEC;AAED,gDAcC;AAED,kCAEC;AAED,4CAeC;AAhHD,qCAKkB;AAsDlB;;GAEG;AACH,SAAgB,eAAe,CAAC,KAAa;IACzC,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,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CAAC,aAAa,CAAC;KACtC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/TradeType.d.ts b/dist/cjs/service/src/models/TradeType.d.ts new file mode 100644 index 0000000..22acee6 --- /dev/null +++ b/dist/cjs/service/src/models/TradeType.d.ts @@ -0,0 +1,26 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const TradeType: { + readonly EXACT_INPUT: "ExactInput"; + readonly EXACT_OUTPUT: "ExactOutput"; +}; +export type TradeType = typeof TradeType[keyof typeof TradeType]; +export declare function instanceOfTradeType(value: any): boolean; +export declare function TradeTypeFromJSON(json: any): TradeType; +export declare function TradeTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TradeType; +export declare function TradeTypeToJSON(value?: TradeType | null): any; +export declare function TradeTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): TradeType; +//# sourceMappingURL=TradeType.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/TradeType.d.ts.map b/dist/cjs/service/src/models/TradeType.d.ts.map new file mode 100644 index 0000000..d9ec2f0 --- /dev/null +++ b/dist/cjs/service/src/models/TradeType.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TradeType.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/TradeType.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,SAAS;;;CAGZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,OAAO,SAAS,CAAC,MAAM,OAAO,SAAS,CAAC,CAAC;AAGjE,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASvD;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAEzF;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,GAAG,CAE7D;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAExF"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/TradeType.js b/dist/cjs/service/src/models/TradeType.js new file mode 100644 index 0000000..0aeee97 --- /dev/null +++ b/dist/cjs/service/src/models/TradeType.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TradeType = void 0; +exports.instanceOfTradeType = instanceOfTradeType; +exports.TradeTypeFromJSON = TradeTypeFromJSON; +exports.TradeTypeFromJSONTyped = TradeTypeFromJSONTyped; +exports.TradeTypeToJSON = TradeTypeToJSON; +exports.TradeTypeToJSONTyped = TradeTypeToJSONTyped; +/** + * + * @export + */ +exports.TradeType = { + EXACT_INPUT: 'ExactInput', + EXACT_OUTPUT: 'ExactOutput' +}; +function instanceOfTradeType(value) { + for (const key in exports.TradeType) { + if (Object.prototype.hasOwnProperty.call(exports.TradeType, key)) { + if (exports.TradeType[key] === value) { + return true; + } + } + } + return false; +} +function TradeTypeFromJSON(json) { + return TradeTypeFromJSONTyped(json, false); +} +function TradeTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function TradeTypeToJSON(value) { + return value; +} +function TradeTypeToJSONTyped(value, ignoreDiscriminator) { + return value; +} +//# sourceMappingURL=TradeType.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/TradeType.js.map b/dist/cjs/service/src/models/TradeType.js.map new file mode 100644 index 0000000..99006d9 --- /dev/null +++ b/dist/cjs/service/src/models/TradeType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TradeType.js","sourceRoot":"","sources":["../../../../../src/service/src/models/TradeType.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAcH,kDASC;AAED,8CAEC;AAED,wDAEC;AAED,0CAEC;AAED,oDAEC;AApCD;;;GAGG;AACU,QAAA,SAAS,GAAG;IACrB,WAAW,EAAE,YAAY;IACzB,YAAY,EAAE,aAAa;CACrB,CAAC;AAIX,SAAgB,mBAAmB,CAAC,KAAU;IAC1C,KAAK,MAAM,GAAG,IAAI,iBAAS,EAAE,CAAC;QAC1B,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,iBAAS,EAAE,GAAG,CAAC,EAAE,CAAC;YACvD,IAAI,iBAAS,CAAC,GAA6B,CAAC,KAAK,KAAK,EAAE,CAAC;gBACrD,OAAO,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,OAAO,IAAiB,CAAC;AAC7B,CAAC;AAED,SAAgB,eAAe,CAAC,KAAwB;IACpD,OAAO,KAAY,CAAC;AACxB,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAU,EAAE,mBAA4B;IACzE,OAAO,KAAkB,CAAC;AAC9B,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Type.d.ts b/dist/cjs/service/src/models/Type.d.ts new file mode 100644 index 0000000..1077d53 --- /dev/null +++ b/dist/cjs/service/src/models/Type.d.ts @@ -0,0 +1,39 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Type + */ +export interface Type { + /** + * + * @type {string} + * @memberof Type + */ + name: string; + /** + * + * @type {string} + * @memberof Type + */ + type: string; +} +/** + * Check if a given object implements the Type interface. + */ +export declare function instanceOfType(value: object): value is Type; +export declare function TypeFromJSON(json: any): Type; +export declare function TypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Type; +export declare function TypeToJSON(json: any): Type; +export declare function TypeToJSONTyped(value?: Type | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=Type.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Type.d.ts.map b/dist/cjs/service/src/models/Type.d.ts.map new file mode 100644 index 0000000..434b2b9 --- /dev/null +++ b/dist/cjs/service/src/models/Type.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Type.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/Type.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACjB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,IAAI,CAI3D;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAE5C;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,IAAI,CAS/E;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAE1C;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU9F"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Type.js b/dist/cjs/service/src/models/Type.js new file mode 100644 index 0000000..e9ddaed --- /dev/null +++ b/dist/cjs/service/src/models/Type.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfType = instanceOfType; +exports.TypeFromJSON = TypeFromJSON; +exports.TypeFromJSONTyped = TypeFromJSONTyped; +exports.TypeToJSON = TypeToJSON; +exports.TypeToJSONTyped = TypeToJSONTyped; +/** + * Check if a given object implements the Type interface. + */ +function instanceOfType(value) { + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + return true; +} +function TypeFromJSON(json) { + return TypeFromJSONTyped(json, false); +} +function TypeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'], + 'type': json['type'], + }; +} +function TypeToJSON(json) { + return TypeToJSONTyped(json, false); +} +function TypeToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'type': value['type'], + }; +} +//# sourceMappingURL=Type.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Type.js.map b/dist/cjs/service/src/models/Type.js.map new file mode 100644 index 0000000..efa66d7 --- /dev/null +++ b/dist/cjs/service/src/models/Type.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Type.js","sourceRoot":"","sources":["../../../../../src/service/src/models/Type.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,wCAIC;AAED,oCAEC;AAED,8CASC;AAED,gCAEC;AAED,0CAUC;AAtCD;;GAEG;AACH,SAAgB,cAAc,CAAC,KAAa;IACxC,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,YAAY,CAAC,IAAS;IAClC,OAAO,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1C,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS,EAAE,mBAA4B;IACrE,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;KACvB,CAAC;AACN,CAAC;AAED,SAAgB,UAAU,CAAC,IAAS;IAChC,OAAO,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxC,CAAC;AAED,SAAgB,eAAe,CAAC,KAAmB,EAAE,sBAA+B,KAAK;IACrF,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;KACxB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/TypedData.d.ts b/dist/cjs/service/src/models/TypedData.d.ts new file mode 100644 index 0000000..5b25e13 --- /dev/null +++ b/dist/cjs/service/src/models/TypedData.d.ts @@ -0,0 +1,57 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Type } from './Type'; +import type { TypedDataDomain } from './TypedDataDomain'; +/** + * + * @export + * @interface TypedData + */ +export interface TypedData { + /** + * A map where each key is a string and each value is a list of Type + * @type {{ [key: string]: Array | undefined; }} + * @memberof TypedData + */ + types: { + [key: string]: Array | undefined; + }; + /** + * + * @type {string} + * @memberof TypedData + */ + primaryType: string; + /** + * + * @type {TypedDataDomain} + * @memberof TypedData + */ + domain: TypedDataDomain; + /** + * + * @type {{ [key: string]: any | undefined; }} + * @memberof TypedData + */ + message: { + [key: string]: any | undefined; + }; +} +/** + * Check if a given object implements the TypedData interface. + */ +export declare function instanceOfTypedData(value: object): value is TypedData; +export declare function TypedDataFromJSON(json: any): TypedData; +export declare function TypedDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedData; +export declare function TypedDataToJSON(json: any): TypedData; +export declare function TypedDataToJSONTyped(value?: TypedData | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=TypedData.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/TypedData.d.ts.map b/dist/cjs/service/src/models/TypedData.d.ts.map new file mode 100644 index 0000000..2ab23e6 --- /dev/null +++ b/dist/cjs/service/src/models/TypedData.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TypedData.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/TypedData.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAOnC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAQzD;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,SAAS,CAAC;KAAE,CAAC;IACnD;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,MAAM,EAAE,eAAe,CAAC;IACxB;;;;OAIG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,GAAG,SAAS,CAAC;KAAE,CAAC;CAChD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAMrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAWzF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYxG"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/TypedData.js b/dist/cjs/service/src/models/TypedData.js new file mode 100644 index 0000000..9555457 --- /dev/null +++ b/dist/cjs/service/src/models/TypedData.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfTypedData = instanceOfTypedData; +exports.TypedDataFromJSON = TypedDataFromJSON; +exports.TypedDataFromJSONTyped = TypedDataFromJSONTyped; +exports.TypedDataToJSON = TypedDataToJSON; +exports.TypedDataToJSONTyped = TypedDataToJSONTyped; +const TypedDataDomain_1 = require("./TypedDataDomain"); +/** + * Check if a given object implements the TypedData interface. + */ +function instanceOfTypedData(value) { + if (!('types' in value) || value['types'] === undefined) + return false; + if (!('primaryType' in value) || value['primaryType'] === undefined) + return false; + if (!('domain' in value) || value['domain'] === undefined) + return false; + if (!('message' in value) || value['message'] === undefined) + return false; + return true; +} +function TypedDataFromJSON(json) { + return TypedDataFromJSONTyped(json, false); +} +function TypedDataFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'types': json['types'], + 'primaryType': json['primaryType'], + 'domain': (0, TypedDataDomain_1.TypedDataDomainFromJSON)(json['domain']), + 'message': json['message'], + }; +} +function TypedDataToJSON(json) { + return TypedDataToJSONTyped(json, false); +} +function TypedDataToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'types': value['types'], + 'primaryType': value['primaryType'], + 'domain': (0, TypedDataDomain_1.TypedDataDomainToJSON)(value['domain']), + 'message': value['message'], + }; +} +//# sourceMappingURL=TypedData.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/TypedData.js.map b/dist/cjs/service/src/models/TypedData.js.map new file mode 100644 index 0000000..bd518e8 --- /dev/null +++ b/dist/cjs/service/src/models/TypedData.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TypedData.js","sourceRoot":"","sources":["../../../../../src/service/src/models/TypedData.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAqDH,kDAMC;AAED,8CAEC;AAED,wDAWC;AAED,0CAEC;AAED,oDAYC;AAnFD,uDAK2B;AAkC3B;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAAa;IAC7C,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClF,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QACtB,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC;QAClC,QAAQ,EAAE,IAAA,yCAAuB,EAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACjD,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AAED,SAAgB,eAAe,CAAC,IAAS;IACrC,OAAO,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAwB,EAAE,sBAA+B,KAAK;IAC/F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,QAAQ,EAAE,IAAA,uCAAqB,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAChD,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/TypedDataDomain.d.ts b/dist/cjs/service/src/models/TypedDataDomain.d.ts new file mode 100644 index 0000000..292e84b --- /dev/null +++ b/dist/cjs/service/src/models/TypedDataDomain.d.ts @@ -0,0 +1,57 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface TypedDataDomain + */ +export interface TypedDataDomain { + /** + * + * @type {string} + * @memberof TypedDataDomain + */ + name: string; + /** + * + * @type {string} + * @memberof TypedDataDomain + */ + version?: string; + /** + * + * @type {string} + * @memberof TypedDataDomain + */ + chainId: string; + /** + * + * @type {string} + * @memberof TypedDataDomain + */ + verifyingContract: string; + /** + * + * @type {string} + * @memberof TypedDataDomain + */ + salt?: string; +} +/** + * Check if a given object implements the TypedDataDomain interface. + */ +export declare function instanceOfTypedDataDomain(value: object): value is TypedDataDomain; +export declare function TypedDataDomainFromJSON(json: any): TypedDataDomain; +export declare function TypedDataDomainFromJSONTyped(json: any, ignoreDiscriminator: boolean): TypedDataDomain; +export declare function TypedDataDomainToJSON(json: any): TypedDataDomain; +export declare function TypedDataDomainToJSONTyped(value?: TypedDataDomain | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=TypedDataDomain.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/TypedDataDomain.d.ts.map b/dist/cjs/service/src/models/TypedDataDomain.d.ts.map new file mode 100644 index 0000000..07883e3 --- /dev/null +++ b/dist/cjs/service/src/models/TypedDataDomain.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TypedDataDomain.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/TypedDataDomain.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAKjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAYrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAapH"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/TypedDataDomain.js b/dist/cjs/service/src/models/TypedDataDomain.js new file mode 100644 index 0000000..0b531eb --- /dev/null +++ b/dist/cjs/service/src/models/TypedDataDomain.js @@ -0,0 +1,63 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfTypedDataDomain = instanceOfTypedDataDomain; +exports.TypedDataDomainFromJSON = TypedDataDomainFromJSON; +exports.TypedDataDomainFromJSONTyped = TypedDataDomainFromJSONTyped; +exports.TypedDataDomainToJSON = TypedDataDomainToJSON; +exports.TypedDataDomainToJSONTyped = TypedDataDomainToJSONTyped; +/** + * Check if a given object implements the TypedDataDomain interface. + */ +function instanceOfTypedDataDomain(value) { + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('chainId' in value) || value['chainId'] === undefined) + return false; + if (!('verifyingContract' in value) || value['verifyingContract'] === undefined) + return false; + return true; +} +function TypedDataDomainFromJSON(json) { + return TypedDataDomainFromJSONTyped(json, false); +} +function TypedDataDomainFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'], + 'version': json['version'] == null ? undefined : json['version'], + 'chainId': json['chainId'], + 'verifyingContract': json['verifyingContract'], + 'salt': json['salt'] == null ? undefined : json['salt'], + }; +} +function TypedDataDomainToJSON(json) { + return TypedDataDomainToJSONTyped(json, false); +} +function TypedDataDomainToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'version': value['version'], + 'chainId': value['chainId'], + 'verifyingContract': value['verifyingContract'], + 'salt': value['salt'], + }; +} +//# sourceMappingURL=TypedDataDomain.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/TypedDataDomain.js.map b/dist/cjs/service/src/models/TypedDataDomain.js.map new file mode 100644 index 0000000..7d1ddf5 --- /dev/null +++ b/dist/cjs/service/src/models/TypedDataDomain.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TypedDataDomain.js","sourceRoot":"","sources":["../../../../../src/service/src/models/TypedDataDomain.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4CH,8DAKC;AAED,0DAEC;AAED,oEAYC;AAED,sDAEC;AAED,gEAaC;AA7CD;;GAEG;AACH,SAAgB,yBAAyB,CAAC,KAAa;IACnD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,mBAAmB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,mBAAmB,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/src/models/UnclaimedReward.d.ts b/dist/cjs/service/src/models/UnclaimedReward.d.ts new file mode 100644 index 0000000..7d628e0 --- /dev/null +++ b/dist/cjs/service/src/models/UnclaimedReward.d.ts @@ -0,0 +1,27 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * The amount of unclaimed reward in native token units + * @export + * @interface UnclaimedReward + */ +export interface UnclaimedReward { +} +/** + * Check if a given object implements the UnclaimedReward interface. + */ +export declare function instanceOfUnclaimedReward(value: object): value is UnclaimedReward; +export declare function UnclaimedRewardFromJSON(json: any): UnclaimedReward; +export declare function UnclaimedRewardFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnclaimedReward; +export declare function UnclaimedRewardToJSON(json: any): UnclaimedReward; +export declare function UnclaimedRewardToJSONTyped(value?: UnclaimedReward | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=UnclaimedReward.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/UnclaimedReward.d.ts.map b/dist/cjs/service/src/models/UnclaimedReward.d.ts.map new file mode 100644 index 0000000..0fc8f95 --- /dev/null +++ b/dist/cjs/service/src/models/UnclaimedReward.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"UnclaimedReward.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/UnclaimedReward.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,eAAe;CAC/B;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAEjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAErG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAEpH"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/UnclaimedReward.js b/dist/cjs/service/src/models/UnclaimedReward.js new file mode 100644 index 0000000..be30db1 --- /dev/null +++ b/dist/cjs/service/src/models/UnclaimedReward.js @@ -0,0 +1,39 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfUnclaimedReward = instanceOfUnclaimedReward; +exports.UnclaimedRewardFromJSON = UnclaimedRewardFromJSON; +exports.UnclaimedRewardFromJSONTyped = UnclaimedRewardFromJSONTyped; +exports.UnclaimedRewardToJSON = UnclaimedRewardToJSON; +exports.UnclaimedRewardToJSONTyped = UnclaimedRewardToJSONTyped; +/** + * Check if a given object implements the UnclaimedReward interface. + */ +function instanceOfUnclaimedReward(value) { + return true; +} +function UnclaimedRewardFromJSON(json) { + return UnclaimedRewardFromJSONTyped(json, false); +} +function UnclaimedRewardFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function UnclaimedRewardToJSON(json) { + return UnclaimedRewardToJSONTyped(json, false); +} +function UnclaimedRewardToJSONTyped(value, ignoreDiscriminator = false) { + return value; +} +//# sourceMappingURL=UnclaimedReward.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/UnclaimedReward.js.map b/dist/cjs/service/src/models/UnclaimedReward.js.map new file mode 100644 index 0000000..59af6a5 --- /dev/null +++ b/dist/cjs/service/src/models/UnclaimedReward.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UnclaimedReward.js","sourceRoot":"","sources":["../../../../../src/service/src/models/UnclaimedReward.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAcH,8DAEC;AAED,0DAEC;AAED,oEAEC;AAED,sDAEC;AAED,gEAEC;AArBD;;GAEG;AACH,SAAgB,yBAAyB,CAAC,KAAa;IACnD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS,EAAE,mBAA4B;IAChF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,KAA8B,EAAE,sBAA+B,KAAK;IAC3G,OAAO,KAAK,CAAC;AACjB,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/UpdateOrderRequest.d.ts b/dist/cjs/service/src/models/UpdateOrderRequest.d.ts new file mode 100644 index 0000000..91ab8e3 --- /dev/null +++ b/dist/cjs/service/src/models/UpdateOrderRequest.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateOrderRequest + */ +export interface UpdateOrderRequest { + /** + * + * @type {string} + * @memberof UpdateOrderRequest + */ + orderHash: string; +} +/** + * Check if a given object implements the UpdateOrderRequest interface. + */ +export declare function instanceOfUpdateOrderRequest(value: object): value is UpdateOrderRequest; +export declare function UpdateOrderRequestFromJSON(json: any): UpdateOrderRequest; +export declare function UpdateOrderRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateOrderRequest; +export declare function UpdateOrderRequestToJSON(json: any): UpdateOrderRequest; +export declare function UpdateOrderRequestToJSONTyped(value?: UpdateOrderRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=UpdateOrderRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/UpdateOrderRequest.d.ts.map b/dist/cjs/service/src/models/UpdateOrderRequest.d.ts.map new file mode 100644 index 0000000..07b97fe --- /dev/null +++ b/dist/cjs/service/src/models/UpdateOrderRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"UpdateOrderRequest.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/UpdateOrderRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAGvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAQ3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS1H"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/UpdateOrderRequest.js b/dist/cjs/service/src/models/UpdateOrderRequest.js new file mode 100644 index 0000000..d5c2a33 --- /dev/null +++ b/dist/cjs/service/src/models/UpdateOrderRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfUpdateOrderRequest = instanceOfUpdateOrderRequest; +exports.UpdateOrderRequestFromJSON = UpdateOrderRequestFromJSON; +exports.UpdateOrderRequestFromJSONTyped = UpdateOrderRequestFromJSONTyped; +exports.UpdateOrderRequestToJSON = UpdateOrderRequestToJSON; +exports.UpdateOrderRequestToJSONTyped = UpdateOrderRequestToJSONTyped; +/** + * Check if a given object implements the UpdateOrderRequest interface. + */ +function instanceOfUpdateOrderRequest(value) { + if (!('orderHash' in value) || value['orderHash'] === undefined) + return false; + return true; +} +function UpdateOrderRequestFromJSON(json) { + return UpdateOrderRequestFromJSONTyped(json, false); +} +function UpdateOrderRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'orderHash': json['orderHash'], + }; +} +function UpdateOrderRequestToJSON(json) { + return UpdateOrderRequestToJSONTyped(json, false); +} +function UpdateOrderRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'orderHash': value['orderHash'], + }; +} +//# sourceMappingURL=UpdateOrderRequest.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/UpdateOrderRequest.js.map b/dist/cjs/service/src/models/UpdateOrderRequest.js.map new file mode 100644 index 0000000..3d3ed57 --- /dev/null +++ b/dist/cjs/service/src/models/UpdateOrderRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UpdateOrderRequest.js","sourceRoot":"","sources":["../../../../../src/service/src/models/UpdateOrderRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,oEAGC;AAED,gEAEC;AAED,0EAQC;AAED,4DAEC;AAED,sEASC;AAnCD;;GAEG;AACH,SAAgB,4BAA4B,CAAC,KAAa;IACtD,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,IAAS,EAAE,mBAA4B;IACnF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;KACjC,CAAC;AACN,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,KAAiC,EAAE,sBAA+B,KAAK;IACjH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;KAClC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/UserBorrowsResponse.d.ts b/dist/cjs/service/src/models/UserBorrowsResponse.d.ts new file mode 100644 index 0000000..bddceeb --- /dev/null +++ b/dist/cjs/service/src/models/UserBorrowsResponse.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LendingpoolBorrow } from './LendingpoolBorrow'; +/** + * + * @export + * @interface UserBorrowsResponse + */ +export interface UserBorrowsResponse { + /** + * + * @type {Array} + * @memberof UserBorrowsResponse + */ + data: Array; +} +/** + * Check if a given object implements the UserBorrowsResponse interface. + */ +export declare function instanceOfUserBorrowsResponse(value: object): value is UserBorrowsResponse; +export declare function UserBorrowsResponseFromJSON(json: any): UserBorrowsResponse; +export declare function UserBorrowsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserBorrowsResponse; +export declare function UserBorrowsResponseToJSON(json: any): UserBorrowsResponse; +export declare function UserBorrowsResponseToJSONTyped(value?: UserBorrowsResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=UserBorrowsResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/UserBorrowsResponse.d.ts.map b/dist/cjs/service/src/models/UserBorrowsResponse.d.ts.map new file mode 100644 index 0000000..f6cf2af --- /dev/null +++ b/dist/cjs/service/src/models/UserBorrowsResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"UserBorrowsResponse.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/UserBorrowsResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAQ7D;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CAClC;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAGzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAQ7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS5H"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/UserBorrowsResponse.js b/dist/cjs/service/src/models/UserBorrowsResponse.js new file mode 100644 index 0000000..3cf94d9 --- /dev/null +++ b/dist/cjs/service/src/models/UserBorrowsResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfUserBorrowsResponse = instanceOfUserBorrowsResponse; +exports.UserBorrowsResponseFromJSON = UserBorrowsResponseFromJSON; +exports.UserBorrowsResponseFromJSONTyped = UserBorrowsResponseFromJSONTyped; +exports.UserBorrowsResponseToJSON = UserBorrowsResponseToJSON; +exports.UserBorrowsResponseToJSONTyped = UserBorrowsResponseToJSONTyped; +const LendingpoolBorrow_1 = require("./LendingpoolBorrow"); +/** + * Check if a given object implements the UserBorrowsResponse interface. + */ +function instanceOfUserBorrowsResponse(value) { + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function UserBorrowsResponseFromJSON(json) { + return UserBorrowsResponseFromJSONTyped(json, false); +} +function UserBorrowsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': (json['data'].map(LendingpoolBorrow_1.LendingpoolBorrowFromJSON)), + }; +} +function UserBorrowsResponseToJSON(json) { + return UserBorrowsResponseToJSONTyped(json, false); +} +function UserBorrowsResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'data': (value['data'].map(LendingpoolBorrow_1.LendingpoolBorrowToJSON)), + }; +} +//# sourceMappingURL=UserBorrowsResponse.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/UserBorrowsResponse.js.map b/dist/cjs/service/src/models/UserBorrowsResponse.js.map new file mode 100644 index 0000000..edef273 --- /dev/null +++ b/dist/cjs/service/src/models/UserBorrowsResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UserBorrowsResponse.js","sourceRoot":"","sources":["../../../../../src/service/src/models/UserBorrowsResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,sEAGC;AAED,kEAEC;AAED,4EAQC;AAED,8DAEC;AAED,wEASC;AAxDD,2DAK6B;AAgB7B;;GAEG;AACH,SAAgB,6BAA6B,CAAC,KAAa;IACvD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,6CAAyB,CAAC,CAAC;KACxE,CAAC;AACN,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,KAAkC,EAAE,sBAA+B,KAAK;IACnH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,2CAAuB,CAAC,CAAC;KACvE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/UserDepositsResponse.d.ts b/dist/cjs/service/src/models/UserDepositsResponse.d.ts new file mode 100644 index 0000000..87738c6 --- /dev/null +++ b/dist/cjs/service/src/models/UserDepositsResponse.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LendingpoolDeposit } from './LendingpoolDeposit'; +/** + * + * @export + * @interface UserDepositsResponse + */ +export interface UserDepositsResponse { + /** + * + * @type {Array} + * @memberof UserDepositsResponse + */ + data: Array; +} +/** + * Check if a given object implements the UserDepositsResponse interface. + */ +export declare function instanceOfUserDepositsResponse(value: object): value is UserDepositsResponse; +export declare function UserDepositsResponseFromJSON(json: any): UserDepositsResponse; +export declare function UserDepositsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserDepositsResponse; +export declare function UserDepositsResponseToJSON(json: any): UserDepositsResponse; +export declare function UserDepositsResponseToJSONTyped(value?: UserDepositsResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=UserDepositsResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/UserDepositsResponse.d.ts.map b/dist/cjs/service/src/models/UserDepositsResponse.d.ts.map new file mode 100644 index 0000000..1909720 --- /dev/null +++ b/dist/cjs/service/src/models/UserDepositsResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"UserDepositsResponse.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/UserDepositsResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAQ/D;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,kBAAkB,CAAC,CAAC;CACnC;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAG3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAQ/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS9H"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/UserDepositsResponse.js b/dist/cjs/service/src/models/UserDepositsResponse.js new file mode 100644 index 0000000..2ef3ed8 --- /dev/null +++ b/dist/cjs/service/src/models/UserDepositsResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfUserDepositsResponse = instanceOfUserDepositsResponse; +exports.UserDepositsResponseFromJSON = UserDepositsResponseFromJSON; +exports.UserDepositsResponseFromJSONTyped = UserDepositsResponseFromJSONTyped; +exports.UserDepositsResponseToJSON = UserDepositsResponseToJSON; +exports.UserDepositsResponseToJSONTyped = UserDepositsResponseToJSONTyped; +const LendingpoolDeposit_1 = require("./LendingpoolDeposit"); +/** + * Check if a given object implements the UserDepositsResponse interface. + */ +function instanceOfUserDepositsResponse(value) { + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function UserDepositsResponseFromJSON(json) { + return UserDepositsResponseFromJSONTyped(json, false); +} +function UserDepositsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': (json['data'].map(LendingpoolDeposit_1.LendingpoolDepositFromJSON)), + }; +} +function UserDepositsResponseToJSON(json) { + return UserDepositsResponseToJSONTyped(json, false); +} +function UserDepositsResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'data': (value['data'].map(LendingpoolDeposit_1.LendingpoolDepositToJSON)), + }; +} +//# sourceMappingURL=UserDepositsResponse.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/UserDepositsResponse.js.map b/dist/cjs/service/src/models/UserDepositsResponse.js.map new file mode 100644 index 0000000..4fe57e9 --- /dev/null +++ b/dist/cjs/service/src/models/UserDepositsResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UserDepositsResponse.js","sourceRoot":"","sources":["../../../../../src/service/src/models/UserDepositsResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,wEAGC;AAED,oEAEC;AAED,8EAQC;AAED,gEAEC;AAED,0EASC;AAxDD,6DAK8B;AAgB9B;;GAEG;AACH,SAAgB,8BAA8B,CAAC,KAAa;IACxD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,SAAgB,iCAAiC,CAAC,IAAS,EAAE,mBAA4B;IACrF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,+CAA0B,CAAC,CAAC;KACzE,CAAC;AACN,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,KAAmC,EAAE,sBAA+B,KAAK;IACrH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,6CAAwB,CAAC,CAAC;KACxE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/UserError.d.ts b/dist/cjs/service/src/models/UserError.d.ts new file mode 100644 index 0000000..136ffc7 --- /dev/null +++ b/dist/cjs/service/src/models/UserError.d.ts @@ -0,0 +1,42 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ErrorMessage } from './ErrorMessage'; +/** + * + * @export + * @interface UserError + */ +export interface UserError { + /** + * Localized error messages + * @type {{ [key: string]: ErrorMessage | undefined; }} + * @memberof UserError + */ + messages: { + [key: string]: ErrorMessage | undefined; + }; + /** + * + * @type {Array} + * @memberof UserError + */ + reasons: Array; +} +/** + * Check if a given object implements the UserError interface. + */ +export declare function instanceOfUserError(value: object): value is UserError; +export declare function UserErrorFromJSON(json: any): UserError; +export declare function UserErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserError; +export declare function UserErrorToJSON(json: any): UserError; +export declare function UserErrorToJSONTyped(value?: UserError | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=UserError.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/UserError.d.ts.map b/dist/cjs/service/src/models/UserError.d.ts.map new file mode 100644 index 0000000..b3a278f --- /dev/null +++ b/dist/cjs/service/src/models/UserError.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"UserError.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/UserError.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAQnD;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,GAAG,SAAS,CAAC;KAAE,CAAC;IACvD;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAIrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CASzF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUxG"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/UserError.js b/dist/cjs/service/src/models/UserError.js new file mode 100644 index 0000000..2c71576 --- /dev/null +++ b/dist/cjs/service/src/models/UserError.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfUserError = instanceOfUserError; +exports.UserErrorFromJSON = UserErrorFromJSON; +exports.UserErrorFromJSONTyped = UserErrorFromJSONTyped; +exports.UserErrorToJSON = UserErrorToJSON; +exports.UserErrorToJSONTyped = UserErrorToJSONTyped; +const runtime_1 = require("../runtime"); +const ErrorMessage_1 = require("./ErrorMessage"); +/** + * Check if a given object implements the UserError interface. + */ +function instanceOfUserError(value) { + if (!('messages' in value) || value['messages'] === undefined) + return false; + if (!('reasons' in value) || value['reasons'] === undefined) + return false; + return true; +} +function UserErrorFromJSON(json) { + return UserErrorFromJSONTyped(json, false); +} +function UserErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'messages': ((0, runtime_1.mapValues)(json['messages'], ErrorMessage_1.ErrorMessageFromJSON)), + 'reasons': json['reasons'], + }; +} +function UserErrorToJSON(json) { + return UserErrorToJSONTyped(json, false); +} +function UserErrorToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'messages': ((0, runtime_1.mapValues)(value['messages'], ErrorMessage_1.ErrorMessageToJSON)), + 'reasons': value['reasons'], + }; +} +//# sourceMappingURL=UserError.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/UserError.js.map b/dist/cjs/service/src/models/UserError.js.map new file mode 100644 index 0000000..3112108 --- /dev/null +++ b/dist/cjs/service/src/models/UserError.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UserError.js","sourceRoot":"","sources":["../../../../../src/service/src/models/UserError.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAkCH,kDAIC;AAED,8CAEC;AAED,wDASC;AAED,0CAEC;AAED,oDAUC;AAnED,wCAAuC;AAEvC,iDAKwB;AAsBxB;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAAa;IAC7C,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,UAAU,EAAE,CAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,UAAU,CAAC,EAAE,mCAAoB,CAAC,CAAC;QAC/D,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AAED,SAAgB,eAAe,CAAC,IAAS;IACrC,OAAO,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAwB,EAAE,sBAA+B,KAAK;IAC/F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,UAAU,EAAE,CAAC,IAAA,mBAAS,EAAC,KAAK,CAAC,UAAU,CAAC,EAAE,iCAAkB,CAAC,CAAC;QAC9D,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/UserStake.d.ts b/dist/cjs/service/src/models/UserStake.d.ts new file mode 100644 index 0000000..6b2ee47 --- /dev/null +++ b/dist/cjs/service/src/models/UserStake.d.ts @@ -0,0 +1,61 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UserStake + */ +export interface UserStake { + /** + * Ethereum address of the user + * @type {string} + * @memberof UserStake + */ + user: string; + /** + * The amount of asset staked in native token units + * @type {{ [key: string]: string | undefined; }} + * @memberof UserStake + */ + balance: { + [key: string]: string | undefined; + }; + /** + * The amount of unclaimed reward in native token units + * @type {{ [key: string]: string | undefined; }} + * @memberof UserStake + */ + unclaimedReward: { + [key: string]: string | undefined; + }; + /** + * Ethereum address of the staking contract + * @type {string} + * @memberof UserStake + */ + contractAddress: string; + /** + * Name of staking plan + * @type {string} + * @memberof UserStake + */ + planName: string; +} +/** + * Check if a given object implements the UserStake interface. + */ +export declare function instanceOfUserStake(value: object): value is UserStake; +export declare function UserStakeFromJSON(json: any): UserStake; +export declare function UserStakeFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserStake; +export declare function UserStakeToJSON(json: any): UserStake; +export declare function UserStakeToJSONTyped(value?: UserStake | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=UserStake.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/UserStake.d.ts.map b/dist/cjs/service/src/models/UserStake.d.ts.map new file mode 100644 index 0000000..5620f8c --- /dev/null +++ b/dist/cjs/service/src/models/UserStake.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"UserStake.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/UserStake.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAChD;;;;OAIG;IACH,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACxD;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAOrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAYzF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAaxG"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/UserStake.js b/dist/cjs/service/src/models/UserStake.js new file mode 100644 index 0000000..addfb27 --- /dev/null +++ b/dist/cjs/service/src/models/UserStake.js @@ -0,0 +1,67 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfUserStake = instanceOfUserStake; +exports.UserStakeFromJSON = UserStakeFromJSON; +exports.UserStakeFromJSONTyped = UserStakeFromJSONTyped; +exports.UserStakeToJSON = UserStakeToJSON; +exports.UserStakeToJSONTyped = UserStakeToJSONTyped; +/** + * Check if a given object implements the UserStake interface. + */ +function instanceOfUserStake(value) { + if (!('user' in value) || value['user'] === undefined) + return false; + if (!('balance' in value) || value['balance'] === undefined) + return false; + if (!('unclaimedReward' in value) || value['unclaimedReward'] === undefined) + return false; + if (!('contractAddress' in value) || value['contractAddress'] === undefined) + return false; + if (!('planName' in value) || value['planName'] === undefined) + return false; + return true; +} +function UserStakeFromJSON(json) { + return UserStakeFromJSONTyped(json, false); +} +function UserStakeFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'user': json['user'], + 'balance': json['balance'], + 'unclaimedReward': json['unclaimedReward'], + 'contractAddress': json['contractAddress'], + 'planName': json['planName'], + }; +} +function UserStakeToJSON(json) { + return UserStakeToJSONTyped(json, false); +} +function UserStakeToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'user': value['user'], + 'balance': value['balance'], + 'unclaimedReward': value['unclaimedReward'], + 'contractAddress': value['contractAddress'], + 'planName': value['planName'], + }; +} +//# sourceMappingURL=UserStake.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/UserStake.js.map b/dist/cjs/service/src/models/UserStake.js.map new file mode 100644 index 0000000..4d3a1c0 --- /dev/null +++ b/dist/cjs/service/src/models/UserStake.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UserStake.js","sourceRoot":"","sources":["../../../../../src/service/src/models/UserStake.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4CH,kDAOC;AAED,8CAEC;AAED,wDAYC;AAED,0CAEC;AAED,oDAaC;AA/CD;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAAa;IAC7C,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1F,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,iBAAiB,C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service/src/models/UserStakesResponse.d.ts new file mode 100644 index 0000000..220e79e --- /dev/null +++ b/dist/cjs/service/src/models/UserStakesResponse.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { UserStake } from './UserStake'; +/** + * + * @export + * @interface UserStakesResponse + */ +export interface UserStakesResponse { + /** + * + * @type {Array} + * @memberof UserStakesResponse + */ + data: Array; +} +/** + * Check if a given object implements the UserStakesResponse interface. + */ +export declare function instanceOfUserStakesResponse(value: object): value is UserStakesResponse; +export declare function UserStakesResponseFromJSON(json: any): UserStakesResponse; +export declare function UserStakesResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserStakesResponse; +export declare function UserStakesResponseToJSON(json: any): UserStakesResponse; +export declare function UserStakesResponseToJSONTyped(value?: UserStakesResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=UserStakesResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/UserStakesResponse.d.ts.map b/dist/cjs/service/src/models/UserStakesResponse.d.ts.map new file mode 100644 index 0000000..7456742 --- /dev/null +++ b/dist/cjs/service/src/models/UserStakesResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"UserStakesResponse.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/UserStakesResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAGvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAQ3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS1H"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/UserStakesResponse.js b/dist/cjs/service/src/models/UserStakesResponse.js new file mode 100644 index 0000000..bc114e7 --- /dev/null +++ b/dist/cjs/service/src/models/UserStakesResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfUserStakesResponse = instanceOfUserStakesResponse; +exports.UserStakesResponseFromJSON = UserStakesResponseFromJSON; +exports.UserStakesResponseFromJSONTyped = UserStakesResponseFromJSONTyped; +exports.UserStakesResponseToJSON = UserStakesResponseToJSON; +exports.UserStakesResponseToJSONTyped = UserStakesResponseToJSONTyped; +const UserStake_1 = require("./UserStake"); +/** + * Check if a given object implements the UserStakesResponse interface. + */ +function instanceOfUserStakesResponse(value) { + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function UserStakesResponseFromJSON(json) { + return UserStakesResponseFromJSONTyped(json, false); +} +function UserStakesResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': (json['data'].map(UserStake_1.UserStakeFromJSON)), + }; +} +function UserStakesResponseToJSON(json) { + return UserStakesResponseToJSONTyped(json, false); +} +function UserStakesResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'data': (value['data'].map(UserStake_1.UserStakeToJSON)), + }; +} +//# sourceMappingURL=UserStakesResponse.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/UserStakesResponse.js.map b/dist/cjs/service/src/models/UserStakesResponse.js.map new file mode 100644 index 0000000..52e6319 --- /dev/null +++ b/dist/cjs/service/src/models/UserStakesResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UserStakesResponse.js","sourceRoot":"","sources":["../../../../../src/service/src/models/UserStakesResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,oEAGC;AAED,gEAEC;AAED,0EAQC;AAED,4DAEC;AAED,sEASC;AAxDD,2CAKqB;AAgBrB;;GAEG;AACH,SAAgB,4BAA4B,CAAC,KAAa;IACtD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,IAAS,EAAE,mBAA4B;IACnF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,6BAAiB,CAAC,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,KAAiC,EAAE,sBAA+B,KAAK;IACjH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,2BAAe,CAAC,CAAC;KAC/D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/V3PoolInRoute.d.ts b/dist/cjs/service/src/models/V3PoolInRoute.d.ts new file mode 100644 index 0000000..7ab27f0 --- /dev/null +++ b/dist/cjs/service/src/models/V3PoolInRoute.d.ts @@ -0,0 +1,52 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Token } from './Token'; +/** + * + * @export + * @interface V3PoolInRoute + */ +export interface V3PoolInRoute { + /** + * + * @type {string} + * @memberof V3PoolInRoute + */ + address: string; + /** + * + * @type {Token} + * @memberof V3PoolInRoute + */ + tokenIn: Token; + /** + * + * @type {Token} + * @memberof V3PoolInRoute + */ + tokenOut: Token; + /** + * + * @type {string} + * @memberof V3PoolInRoute + */ + fee: string; +} +/** + * Check if a given object implements the V3PoolInRoute interface. + */ +export declare function instanceOfV3PoolInRoute(value: object): value is V3PoolInRoute; +export declare function V3PoolInRouteFromJSON(json: any): V3PoolInRoute; +export declare function V3PoolInRouteFromJSONTyped(json: any, ignoreDiscriminator: boolean): V3PoolInRoute; +export declare function V3PoolInRouteToJSON(json: any): V3PoolInRoute; +export declare function V3PoolInRouteToJSONTyped(value?: V3PoolInRoute | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=V3PoolInRoute.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/V3PoolInRoute.d.ts.map b/dist/cjs/service/src/models/V3PoolInRoute.d.ts.map new file mode 100644 index 0000000..9ba5136 --- /dev/null +++ b/dist/cjs/service/src/models/V3PoolInRoute.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"V3PoolInRoute.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/V3PoolInRoute.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQrC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC;IACf;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC;IAChB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAM7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAWjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYhH"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/V3PoolInRoute.js b/dist/cjs/service/src/models/V3PoolInRoute.js new file mode 100644 index 0000000..6ab471a --- /dev/null +++ b/dist/cjs/service/src/models/V3PoolInRoute.js @@ -0,0 +1,64 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfV3PoolInRoute = instanceOfV3PoolInRoute; +exports.V3PoolInRouteFromJSON = V3PoolInRouteFromJSON; +exports.V3PoolInRouteFromJSONTyped = V3PoolInRouteFromJSONTyped; +exports.V3PoolInRouteToJSON = V3PoolInRouteToJSON; +exports.V3PoolInRouteToJSONTyped = V3PoolInRouteToJSONTyped; +const Token_1 = require("./Token"); +/** + * Check if a given object implements the V3PoolInRoute interface. + */ +function instanceOfV3PoolInRoute(value) { + if (!('address' in value) || value['address'] === undefined) + return false; + if (!('tokenIn' in value) || value['tokenIn'] === undefined) + return false; + if (!('tokenOut' in value) || value['tokenOut'] === undefined) + return false; + if (!('fee' in value) || value['fee'] === undefined) + return false; + return true; +} +function V3PoolInRouteFromJSON(json) { + return V3PoolInRouteFromJSONTyped(json, false); +} +function V3PoolInRouteFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'], + 'tokenIn': (0, Token_1.TokenFromJSON)(json['tokenIn']), + 'tokenOut': (0, Token_1.TokenFromJSON)(json['tokenOut']), + 'fee': json['fee'], + }; +} +function V3PoolInRouteToJSON(json) { + return V3PoolInRouteToJSONTyped(json, false); +} +function V3PoolInRouteToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'tokenIn': (0, Token_1.TokenToJSON)(value['tokenIn']), + 'tokenOut': (0, Token_1.TokenToJSON)(value['tokenOut']), + 'fee': value['fee'], + }; +} +//# sourceMappingURL=V3PoolInRoute.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/V3PoolInRoute.js.map b/dist/cjs/service/src/models/V3PoolInRoute.js.map new file mode 100644 index 0000000..1d23520 --- /dev/null +++ b/dist/cjs/service/src/models/V3PoolInRoute.js.map @@ -0,0 +1 @@ +{"version":3,"file":"V3PoolInRoute.js","sourceRoot":"","sources":["../../../../../src/service/src/models/V3PoolInRoute.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;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wB,CAAC,KAA4B,EAAE,sBAA+B,KAAK;IACvG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,SAAS,EAAE,IAAA,mBAAW,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QACxC,UAAU,EAAE,IAAA,mBAAW,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAC1C,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;KACtB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Vault.d.ts b/dist/cjs/service/src/models/Vault.d.ts new file mode 100644 index 0000000..4caf95e --- /dev/null +++ b/dist/cjs/service/src/models/Vault.d.ts @@ -0,0 +1,104 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Ilk } from './Ilk'; +/** + * + * @export + * @interface Vault + */ +export interface Vault { + /** + * Identifier for the vault. + * @type {number} + * @memberof Vault + */ + id: number; + /** + * Ethereum address of the vault owner. + * @type {string} + * @memberof Vault + */ + owner: string; + /** + * Ethereum address of the vault urn. + * @type {string} + * @memberof Vault + */ + urn: string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Vault + */ + liquidationPrice: { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Vault + */ + collateralLocked: { + [key: string]: string | undefined; + }; + /** + * The collateralization ratio of the vault. + * @type {string} + * @memberof Vault + */ + collateralizationRatio: string; + /** + * The loan to value of the vault. + * @type {string} + * @memberof Vault + */ + loanToValue: string; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Vault + */ + debt: { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Vault + */ + availableToWithdraw: { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Vault + */ + availableToMint: { + [key: string]: string | undefined; + }; + /** + * + * @type {Ilk} + * @memberof Vault + */ + ilk: Ilk; +} +/** + * Check if a given object implements the Vault interface. + */ +export declare function instanceOfVault(value: object): value is Vault; +export declare function VaultFromJSON(json: any): Vault; +export declare function VaultFromJSONTyped(json: any, ignoreDiscriminator: boolean): Vault; +export declare function VaultToJSON(json: any): Vault; +export declare function VaultToJSONTyped(value?: Vault | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=Vault.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Vault.d.ts.map b/dist/cjs/service/src/models/Vault.d.ts.map new file mode 100644 index 0000000..1721073 --- /dev/null +++ b/dist/cjs/service/src/models/Vault.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Vault.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/Vault.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAQjC;;;;GAIG;AACH,MAAM,WAAW,KAAK;IAClB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,gBAAgB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACzD;;;;OAIG;IACH,gBAAgB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACzD;;;;OAIG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC7C;;;;OAIG;IACH,mBAAmB,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC5D;;;;OAIG;IACH,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACxD;;;;OAIG;IACH,GAAG,EAAE,GAAG,CAAC;CACZ;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,KAAK,CAa7D;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,KAAK,CAE9C;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,KAAK,CAkBjF;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,GAAG,GAAG,KAAK,CAE5C;AAED,wBAAgB,gBAAgB,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAmBhG"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/Vault.js b/dist/cjs/service/src/models/Vault.js new file mode 100644 index 0000000..a444d84 --- /dev/null +++ b/dist/cjs/service/src/models/Vault.js @@ -0,0 +1,92 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfVault = instanceOfVault; +exports.VaultFromJSON = VaultFromJSON; +exports.VaultFromJSONTyped = VaultFromJSONTyped; +exports.VaultToJSON = VaultToJSON; +exports.VaultToJSONTyped = VaultToJSONTyped; +const Ilk_1 = require("./Ilk"); +/** + * Check if a given object implements the Vault interface. + */ +function instanceOfVault(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('owner' in value) || value['owner'] === undefined) + return false; + if (!('urn' in value) || value['urn'] === undefined) + return false; + if (!('liquidationPrice' in value) || value['liquidationPrice'] === undefined) + return false; + if (!('collateralLocked' in value) || value['collateralLocked'] === undefined) + return false; + if (!('collateralizationRatio' in value) || value['collateralizationRatio'] === undefined) + return false; + if (!('loanToValue' in value) || value['loanToValue'] === undefined) + return false; + if (!('debt' in value) || value['debt'] === undefined) + return false; + if (!('availableToWithdraw' in value) || value['availableToWithdraw'] === undefined) + return false; + if (!('availableToMint' in value) || value['availableToMint'] === undefined) + return false; + if (!('ilk' in value) || value['ilk'] === undefined) + return false; + return true; +} +function VaultFromJSON(json) { + return VaultFromJSONTyped(json, false); +} +function VaultFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + 'owner': json['owner'], + 'urn': json['urn'], + 'liquidationPrice': json['liquidationPrice'], + 'collateralLocked': json['collateralLocked'], + 'collateralizationRatio': json['collateralizationRatio'], + 'loanToValue': json['loanToValue'], + 'debt': json['debt'], + 'availableToWithdraw': json['availableToWithdraw'], + 'availableToMint': json['availableToMint'], + 'ilk': (0, Ilk_1.IlkFromJSON)(json['ilk']), + }; +} +function VaultToJSON(json) { + return VaultToJSONTyped(json, false); +} +function VaultToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'owner': value['owner'], + 'urn': value['urn'], + 'liquidationPrice': value['liquidationPrice'], + 'collateralLocked': value['collateralLocked'], + 'collateralizationRatio': value['collateralizationRatio'], + 'loanToValue': value['loanToValue'], + 'debt': value['debt'], + 'availableToWithdraw': value['availableToWithdraw'], + 'availableToMint': value['availableToMint'], + 'ilk': (0, Ilk_1.IlkToJSON)(value['ilk']), + }; +} +//# sourceMappingURL=Vault.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/Vault.js.map b/dist/cjs/service/src/models/Vault.js.map new file mode 100644 index 0000000..db7606f --- /dev/null +++ b/dist/cjs/service/src/models/Vault.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Vault.js","sourceRoot":"","sources":["../../../../../src/service/src/models/Vault.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAwFH,0CAaC;AAED,sCAEC;AAED,gDAkBC;AAED,kCAEC;AAED,4CAmBC;AAlJD,+BAKe;AA4Ef;;GAEG;AACH,SAAgB,eAAe,CAAC,KAAa;IACzC,IAAI,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChE,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClE,IAAI,CAAC,CAAC,kBAAkB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,kBAAkB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5F,IAAI,CAAC,CAAC,kBAAkB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,kBAAkB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5F,IAAI,CAAC,CAAC,wBAAwB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,wBAAwB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxG,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClF,IAAI,CAAC,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AAC;KAClC,CAAC;AACN,CAAC;AAED,SAAgB,WAAW,CAAC,IAAS;IACjC,OAAO,gBAAgB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzC,CAAC;AAED,SAAgB,gBAAgB,CAAC,KAAoB,EAAE,sBAA+B,KAAK;IACvF,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;QACnB,kBAAkB,EAAE,KAAK,CAAC,kBAAkB,CAAC;QAC7C,kBAAkB,EAAE,KAAK,CAAC,kBAAkB,CAAC;QAC7C,wBAAwB,EAAE,KAAK,CAAC,wBAAwB,CAAC;QACzD,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,qBAAqB,EAAE,KAAK,CAAC,qBAAqB,CAAC;QACnD,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;QAC3C,KAAK,EAAE,IAAA,eAAS,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;KACjC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/VaultEvent.d.ts b/dist/cjs/service/src/models/VaultEvent.d.ts new file mode 100644 index 0000000..c57dee0 --- /dev/null +++ b/dist/cjs/service/src/models/VaultEvent.d.ts @@ -0,0 +1,50 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Ilk } from './Ilk'; +/** + * + * @export + * @interface VaultEvent + */ +export interface VaultEvent { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof VaultEvent + */ + deltaCollateral: { + [key: string]: string | undefined; + }; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof VaultEvent + */ + deltaDebt: { + [key: string]: string | undefined; + }; + /** + * + * @type {Ilk} + * @memberof VaultEvent + */ + ilk: Ilk; +} +/** + * Check if a given object implements the VaultEvent interface. + */ +export declare function instanceOfVaultEvent(value: object): value is VaultEvent; +export declare function VaultEventFromJSON(json: any): VaultEvent; +export declare function VaultEventFromJSONTyped(json: any, ignoreDiscriminator: boolean): VaultEvent; +export declare function VaultEventToJSON(json: any): VaultEvent; +export declare function VaultEventToJSONTyped(value?: VaultEvent | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=VaultEvent.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/VaultEvent.d.ts.map b/dist/cjs/service/src/models/VaultEvent.d.ts.map new file mode 100644 index 0000000..b447b05 --- /dev/null +++ b/dist/cjs/service/src/models/VaultEvent.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"VaultEvent.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/VaultEvent.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAQjC;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,eAAe,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACxD;;;;OAIG;IACH,SAAS,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAClD;;;;OAIG;IACH,GAAG,EAAE,GAAG,CAAC;CACZ;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAKvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAU3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW1G"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/VaultEvent.js b/dist/cjs/service/src/models/VaultEvent.js new file mode 100644 index 0000000..cee81e5 --- /dev/null +++ b/dist/cjs/service/src/models/VaultEvent.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfVaultEvent = instanceOfVaultEvent; +exports.VaultEventFromJSON = VaultEventFromJSON; +exports.VaultEventFromJSONTyped = VaultEventFromJSONTyped; +exports.VaultEventToJSON = VaultEventToJSON; +exports.VaultEventToJSONTyped = VaultEventToJSONTyped; +const Ilk_1 = require("./Ilk"); +/** + * Check if a given object implements the VaultEvent interface. + */ +function instanceOfVaultEvent(value) { + if (!('deltaCollateral' in value) || value['deltaCollateral'] === undefined) + return false; + if (!('deltaDebt' in value) || value['deltaDebt'] === undefined) + return false; + if (!('ilk' in value) || value['ilk'] === undefined) + return false; + return true; +} +function VaultEventFromJSON(json) { + return VaultEventFromJSONTyped(json, false); +} +function VaultEventFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'deltaCollateral': json['deltaCollateral'], + 'deltaDebt': json['deltaDebt'], + 'ilk': (0, Ilk_1.IlkFromJSON)(json['ilk']), + }; +} +function VaultEventToJSON(json) { + return VaultEventToJSONTyped(json, false); +} +function VaultEventToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'deltaCollateral': value['deltaCollateral'], + 'deltaDebt': value['deltaDebt'], + 'ilk': (0, Ilk_1.IlkToJSON)(value['ilk']), + }; +} +//# sourceMappingURL=VaultEvent.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/VaultEvent.js.map b/dist/cjs/service/src/models/VaultEvent.js.map new file mode 100644 index 0000000..ca49867 --- /dev/null +++ b/dist/cjs/service/src/models/VaultEvent.js.map @@ -0,0 +1 @@ +{"version":3,"file":"VaultEvent.js","sourceRoot":"","sources":["../../../../../src/service/src/models/VaultEvent.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAwCH,oDAKC;AAED,gDAEC;AAED,0DAUC;AAED,4CAEC;AAED,sDAWC;AA1ED,+BAKe;AA4Bf;;GAEG;AACH,SAAgB,oBAAoB,CAAC,KAAa;IAC9C,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1F,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS,EAAE,mBAA4B;IAC3E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,CAAC;QAC1C,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;QAC9B,KAAK,EAAE,IAAA,iBAAW,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KAClC,CAAC;AACN,CAAC;AAED,SAAgB,gBAAgB,CAAC,IAAS;IACtC,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,qBAAqB,CAAC,KAAyB,EAAE,sBAA+B,KAAK;IACjG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;QAC3C,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,KAAK,EAAE,IAAA,eAAS,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;KACjC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/VaultEventExtension.d.ts b/dist/cjs/service/src/models/VaultEventExtension.d.ts new file mode 100644 index 0000000..d19b075 --- /dev/null +++ b/dist/cjs/service/src/models/VaultEventExtension.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { VaultEvent } from './VaultEvent'; +/** + * + * @export + * @interface VaultEventExtension + */ +export interface VaultEventExtension { + /** + * + * @type {VaultEvent} + * @memberof VaultEventExtension + */ + payload?: VaultEvent; +} +/** + * Check if a given object implements the VaultEventExtension interface. + */ +export declare function instanceOfVaultEventExtension(value: object): value is VaultEventExtension; +export declare function VaultEventExtensionFromJSON(json: any): VaultEventExtension; +export declare function VaultEventExtensionFromJSONTyped(json: any, ignoreDiscriminator: boolean): VaultEventExtension; +export declare function VaultEventExtensionToJSON(json: any): VaultEventExtension; +export declare function VaultEventExtensionToJSONTyped(value?: VaultEventExtension | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=VaultEventExtension.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/VaultEventExtension.d.ts.map b/dist/cjs/service/src/models/VaultEventExtension.d.ts.map new file mode 100644 index 0000000..7b0b668 --- /dev/null +++ b/dist/cjs/service/src/models/VaultEventExtension.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"VaultEventExtension.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/VaultEventExtension.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAQ/C;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC;CACxB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAEzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAQ7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS5H"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/VaultEventExtension.js b/dist/cjs/service/src/models/VaultEventExtension.js new file mode 100644 index 0000000..778a1ab --- /dev/null +++ b/dist/cjs/service/src/models/VaultEventExtension.js @@ -0,0 +1,50 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfVaultEventExtension = instanceOfVaultEventExtension; +exports.VaultEventExtensionFromJSON = VaultEventExtensionFromJSON; +exports.VaultEventExtensionFromJSONTyped = VaultEventExtensionFromJSONTyped; +exports.VaultEventExtensionToJSON = VaultEventExtensionToJSON; +exports.VaultEventExtensionToJSONTyped = VaultEventExtensionToJSONTyped; +const VaultEvent_1 = require("./VaultEvent"); +/** + * Check if a given object implements the VaultEventExtension interface. + */ +function instanceOfVaultEventExtension(value) { + return true; +} +function VaultEventExtensionFromJSON(json) { + return VaultEventExtensionFromJSONTyped(json, false); +} +function VaultEventExtensionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'payload': json['payload'] == null ? undefined : (0, VaultEvent_1.VaultEventFromJSON)(json['payload']), + }; +} +function VaultEventExtensionToJSON(json) { + return VaultEventExtensionToJSONTyped(json, false); +} +function VaultEventExtensionToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'payload': (0, VaultEvent_1.VaultEventToJSON)(value['payload']), + }; +} +//# sourceMappingURL=VaultEventExtension.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/VaultEventExtension.js.map b/dist/cjs/service/src/models/VaultEventExtension.js.map new file mode 100644 index 0000000..1a7421c --- /dev/null +++ b/dist/cjs/service/src/models/VaultEventExtension.js.map @@ -0,0 +1 @@ +{"version":3,"file":"VaultEventExtension.js","sourceRoot":"","sources":["../../../../../src/service/src/models/VaultEventExtension.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,sEAEC;AAED,kEAEC;AAED,4EAQC;AAED,8DAEC;AAED,wEASC;AAvDD,6CAKsB;AAgBtB;;GAEG;AACH,SAAgB,6BAA6B,CAAC,KAAa;IACvD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,+BAAkB,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KACvF,CAAC;AACN,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,KAAkC,EAAE,sBAA+B,KAAK;IACnH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,SAAS,EAAE,IAAA,6BAAgB,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;KAChD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/VaultEventItem.d.ts b/dist/cjs/service/src/models/VaultEventItem.d.ts new file mode 100644 index 0000000..0b47f27 --- /dev/null +++ b/dist/cjs/service/src/models/VaultEventItem.d.ts @@ -0,0 +1,68 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { VaultEvent } from './VaultEvent'; +import type { EventDomain } from './EventDomain'; +import type { EventType } from './EventType'; +import type { Log } from './Log'; +import type { EventName } from './EventName'; +/** + * + * @export + * @interface VaultEventItem + */ +export interface VaultEventItem { + /** + * Identifier for the event. + * @type {number} + * @memberof VaultEventItem + */ + id: number; + /** + * + * @type {EventName} + * @memberof VaultEventItem + */ + name: EventName; + /** + * + * @type {EventType} + * @memberof VaultEventItem + */ + type: EventType; + /** + * + * @type {EventDomain} + * @memberof VaultEventItem + */ + domain: EventDomain; + /** + * + * @type {Log} + * @memberof VaultEventItem + */ + raw: Log; + /** + * + * @type {VaultEvent} + * @memberof VaultEventItem + */ + payload?: VaultEvent; +} +/** + * Check if a given object implements the VaultEventItem interface. + */ +export declare function instanceOfVaultEventItem(value: object): value is VaultEventItem; +export declare function VaultEventItemFromJSON(json: any): VaultEventItem; +export declare function VaultEventItemFromJSONTyped(json: any, ignoreDiscriminator: boolean): VaultEventItem; +export declare function VaultEventItemToJSON(json: any): VaultEventItem; +export declare function VaultEventItemToJSONTyped(value?: VaultEventItem | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=VaultEventItem.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/VaultEventItem.d.ts.map b/dist/cjs/service/src/models/VaultEventItem.d.ts.map new file mode 100644 index 0000000..18f20e6 --- /dev/null +++ b/dist/cjs/service/src/models/VaultEventItem.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"VaultEventItem.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/VaultEventItem.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAO/C,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAOjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAOjC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,WAAW,CAAC;IACpB;;;;OAIG;IACH,GAAG,EAAE,GAAG,CAAC;IACT;;;;OAIG;IACH,OAAO,CAAC,EAAE,UAAU,CAAC;CACxB;AAID;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAO/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAanG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAclH"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/VaultEventItem.js b/dist/cjs/service/src/models/VaultEventItem.js new file mode 100644 index 0000000..9aaa6f0 --- /dev/null +++ b/dist/cjs/service/src/models/VaultEventItem.js @@ -0,0 +1,74 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfVaultEventItem = instanceOfVaultEventItem; +exports.VaultEventItemFromJSON = VaultEventItemFromJSON; +exports.VaultEventItemFromJSONTyped = VaultEventItemFromJSONTyped; +exports.VaultEventItemToJSON = VaultEventItemToJSON; +exports.VaultEventItemToJSONTyped = VaultEventItemToJSONTyped; +const VaultEvent_1 = require("./VaultEvent"); +const EventDomain_1 = require("./EventDomain"); +const EventType_1 = require("./EventType"); +const Log_1 = require("./Log"); +const EventName_1 = require("./EventName"); +/** + * Check if a given object implements the VaultEventItem interface. + */ +function instanceOfVaultEventItem(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + if (!('domain' in value) || value['domain'] === undefined) + return false; + if (!('raw' in value) || value['raw'] === undefined) + return false; + return true; +} +function VaultEventItemFromJSON(json) { + return VaultEventItemFromJSONTyped(json, false); +} +function VaultEventItemFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + 'name': (0, EventName_1.EventNameFromJSON)(json['name']), + 'type': (0, EventType_1.EventTypeFromJSON)(json['type']), + 'domain': (0, EventDomain_1.EventDomainFromJSON)(json['domain']), + 'raw': (0, Log_1.LogFromJSON)(json['raw']), + 'payload': json['payload'] == null ? undefined : (0, VaultEvent_1.VaultEventFromJSON)(json['payload']), + }; +} +function VaultEventItemToJSON(json) { + return VaultEventItemToJSONTyped(json, false); +} +function VaultEventItemToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'name': (0, EventName_1.EventNameToJSON)(value['name']), + 'type': (0, EventType_1.EventTypeToJSON)(value['type']), + 'domain': (0, EventDomain_1.EventDomainToJSON)(value['domain']), + 'raw': (0, Log_1.LogToJSON)(value['raw']), + 'payload': (0, VaultEvent_1.VaultEventToJSON)(value['payload']), + }; +} +//# sourceMappingURL=VaultEventItem.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/VaultEventItem.js.map b/dist/cjs/service/src/models/VaultEventItem.js.map new file mode 100644 index 0000000..d17dcc7 --- /dev/null +++ b/dist/cjs/service/src/models/VaultEventItem.js.map @@ -0,0 +1 @@ +{"version":3,"file":"VaultEventItem.js","sourceRoot":"","sources":["../../../../../src/service/src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,MAAM,EAAE,IAAA,6BAAiB,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACvC,QAAQ,EAAE,IAAA,iCAAmB,EAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC7C,KAAK,EAAE,IAAA,iBAAW,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QAC/B,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,+BAAkB,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KACvF,CAAC;AACN,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,KAA6B,EAAE,sBAA+B,KAAK;IACzG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,MAAM,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACtC,MAAM,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACtC,QAAQ,EAAE,IAAA,+BAAiB,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC5C,KAAK,EAAE,IAAA,eAAS,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC9B,SAAS,EAAE,IAAA,6BAAgB,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;KAChD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/VaultEventsResponse.d.ts b/dist/cjs/service/src/models/VaultEventsResponse.d.ts new file mode 100644 index 0000000..1ea8a7b --- /dev/null +++ b/dist/cjs/service/src/models/VaultEventsResponse.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ExtendedEvent } from './ExtendedEvent'; +/** + * + * @export + * @interface VaultEventsResponse + */ +export interface VaultEventsResponse { + /** + * + * @type {Array} + * @memberof VaultEventsResponse + */ + data: Array; +} +/** + * Check if a given object implements the VaultEventsResponse interface. + */ +export declare function instanceOfVaultEventsResponse(value: object): value is VaultEventsResponse; +export declare function VaultEventsResponseFromJSON(json: any): VaultEventsResponse; +export declare function VaultEventsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VaultEventsResponse; +export declare function VaultEventsResponseToJSON(json: any): VaultEventsResponse; +export declare function VaultEventsResponseToJSONTyped(value?: VaultEventsResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=VaultEventsResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/VaultEventsResponse.d.ts.map b/dist/cjs/service/src/models/VaultEventsResponse.d.ts.map new file mode 100644 index 0000000..4e9d334 --- /dev/null +++ b/dist/cjs/service/src/models/VaultEventsResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"VaultEventsResponse.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/VaultEventsResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAC9B;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAGzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAQ7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS5H"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/VaultEventsResponse.js b/dist/cjs/service/src/models/VaultEventsResponse.js new file mode 100644 index 0000000..4f78c27 --- /dev/null +++ b/dist/cjs/service/src/models/VaultEventsResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfVaultEventsResponse = instanceOfVaultEventsResponse; +exports.VaultEventsResponseFromJSON = VaultEventsResponseFromJSON; +exports.VaultEventsResponseFromJSONTyped = VaultEventsResponseFromJSONTyped; +exports.VaultEventsResponseToJSON = VaultEventsResponseToJSON; +exports.VaultEventsResponseToJSONTyped = VaultEventsResponseToJSONTyped; +const ExtendedEvent_1 = require("./ExtendedEvent"); +/** + * Check if a given object implements the VaultEventsResponse interface. + */ +function instanceOfVaultEventsResponse(value) { + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function VaultEventsResponseFromJSON(json) { + return VaultEventsResponseFromJSONTyped(json, false); +} +function VaultEventsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': (json['data'].map(ExtendedEvent_1.ExtendedEventFromJSON)), + }; +} +function VaultEventsResponseToJSON(json) { + return VaultEventsResponseToJSONTyped(json, false); +} +function VaultEventsResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'data': (value['data'].map(ExtendedEvent_1.ExtendedEventToJSON)), + }; +} +//# sourceMappingURL=VaultEventsResponse.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/VaultEventsResponse.js.map b/dist/cjs/service/src/models/VaultEventsResponse.js.map new file mode 100644 index 0000000..ab1d186 --- /dev/null +++ b/dist/cjs/service/src/models/VaultEventsResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"VaultEventsResponse.js","sourceRoot":"","sources":["../../../../../src/service/src/models/VaultEventsResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,sEAGC;AAED,kEAEC;AAED,4EAQC;AAED,8DAEC;AAED,wEASC;AAxDD,mDAKyB;AAgBzB;;GAEG;AACH,SAAgB,6BAA6B,CAAC,KAAa;IACvD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,qCAAqB,CAAC,CAAC;KACpE,CAAC;AACN,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,KAAkC,EAAE,sBAA+B,KAAK;IACnH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,mCAAmB,CAAC,CAAC;KACnE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/VaultsResponse.d.ts b/dist/cjs/service/src/models/VaultsResponse.d.ts new file mode 100644 index 0000000..c0f7d37 --- /dev/null +++ b/dist/cjs/service/src/models/VaultsResponse.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Vault } from './Vault'; +/** + * + * @export + * @interface VaultsResponse + */ +export interface VaultsResponse { + /** + * + * @type {Array} + * @memberof VaultsResponse + */ + data: Array; +} +/** + * Check if a given object implements the VaultsResponse interface. + */ +export declare function instanceOfVaultsResponse(value: object): value is VaultsResponse; +export declare function VaultsResponseFromJSON(json: any): VaultsResponse; +export declare function VaultsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): VaultsResponse; +export declare function VaultsResponseToJSON(json: any): VaultsResponse; +export declare function VaultsResponseToJSONTyped(value?: VaultsResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=VaultsResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/VaultsResponse.d.ts.map b/dist/cjs/service/src/models/VaultsResponse.d.ts.map new file mode 100644 index 0000000..703c29b --- /dev/null +++ b/dist/cjs/service/src/models/VaultsResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"VaultsResponse.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/VaultsResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQrC;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAG/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAQnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASlH"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/VaultsResponse.js b/dist/cjs/service/src/models/VaultsResponse.js new file mode 100644 index 0000000..95e3f4d --- /dev/null +++ b/dist/cjs/service/src/models/VaultsResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfVaultsResponse = instanceOfVaultsResponse; +exports.VaultsResponseFromJSON = VaultsResponseFromJSON; +exports.VaultsResponseFromJSONTyped = VaultsResponseFromJSONTyped; +exports.VaultsResponseToJSON = VaultsResponseToJSON; +exports.VaultsResponseToJSONTyped = VaultsResponseToJSONTyped; +const Vault_1 = require("./Vault"); +/** + * Check if a given object implements the VaultsResponse interface. + */ +function instanceOfVaultsResponse(value) { + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function VaultsResponseFromJSON(json) { + return VaultsResponseFromJSONTyped(json, false); +} +function VaultsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': (json['data'].map(Vault_1.VaultFromJSON)), + }; +} +function VaultsResponseToJSON(json) { + return VaultsResponseToJSONTyped(json, false); +} +function VaultsResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'data': (value['data'].map(Vault_1.VaultToJSON)), + }; +} +//# sourceMappingURL=VaultsResponse.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/VaultsResponse.js.map b/dist/cjs/service/src/models/VaultsResponse.js.map new file mode 100644 index 0000000..befa223 --- /dev/null +++ b/dist/cjs/service/src/models/VaultsResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"VaultsResponse.js","sourceRoot":"","sources":["../../../../../src/service/src/models/VaultsResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,4DAGC;AAED,wDAEC;AAED,kEAQC;AAED,oDAEC;AAED,8DASC;AAxDD,mCAKiB;AAgBjB;;GAEG;AACH,SAAgB,wBAAwB,CAAC,KAAa;IAClD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS;IAC5C,OAAO,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS,EAAE,mBAA4B;IAC/E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,qBAAa,CAAC,CAAC;KAC5D,CAAC;AACN,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,KAA6B,EAAE,sBAA+B,KAAK;IACzG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,mBAAW,CAAC,CAAC;KAC3D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/WalletBalance.d.ts b/dist/cjs/service/src/models/WalletBalance.d.ts new file mode 100644 index 0000000..67fedde --- /dev/null +++ b/dist/cjs/service/src/models/WalletBalance.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Balance } from './Balance'; +/** + * + * @export + * @interface WalletBalance + */ +export interface WalletBalance { + /** + * + * @type {Array} + * @memberof WalletBalance + */ + balances: Array; +} +/** + * Check if a given object implements the WalletBalance interface. + */ +export declare function instanceOfWalletBalance(value: object): value is WalletBalance; +export declare function WalletBalanceFromJSON(json: any): WalletBalance; +export declare function WalletBalanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletBalance; +export declare function WalletBalanceToJSON(json: any): WalletBalance; +export declare function WalletBalanceToJSONTyped(value?: WalletBalance | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=WalletBalance.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/WalletBalance.d.ts.map b/dist/cjs/service/src/models/WalletBalance.d.ts.map new file mode 100644 index 0000000..0dc5d50 --- /dev/null +++ b/dist/cjs/service/src/models/WalletBalance.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"WalletBalance.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/WalletBalance.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQzC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAG7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAQjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAShH"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/WalletBalance.js b/dist/cjs/service/src/models/WalletBalance.js new file mode 100644 index 0000000..43e2b4e --- /dev/null +++ b/dist/cjs/service/src/models/WalletBalance.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWalletBalance = instanceOfWalletBalance; +exports.WalletBalanceFromJSON = WalletBalanceFromJSON; +exports.WalletBalanceFromJSONTyped = WalletBalanceFromJSONTyped; +exports.WalletBalanceToJSON = WalletBalanceToJSON; +exports.WalletBalanceToJSONTyped = WalletBalanceToJSONTyped; +const Balance_1 = require("./Balance"); +/** + * Check if a given object implements the WalletBalance interface. + */ +function instanceOfWalletBalance(value) { + if (!('balances' in value) || value['balances'] === undefined) + return false; + return true; +} +function WalletBalanceFromJSON(json) { + return WalletBalanceFromJSONTyped(json, false); +} +function WalletBalanceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'balances': (json['balances'].map(Balance_1.BalanceFromJSON)), + }; +} +function WalletBalanceToJSON(json) { + return WalletBalanceToJSONTyped(json, false); +} +function WalletBalanceToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'balances': (value['balances'].map(Balance_1.BalanceToJSON)), + }; +} +//# sourceMappingURL=WalletBalance.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/WalletBalance.js.map b/dist/cjs/service/src/models/WalletBalance.js.map new file mode 100644 index 0000000..e82b126 --- /dev/null +++ b/dist/cjs/service/src/models/WalletBalance.js.map @@ -0,0 +1 @@ +{"version":3,"file":"WalletBalance.js","sourceRoot":"","sources":["../../../../../src/service/src/models/WalletBalance.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,0DAGC;AAED,sDAEC;AAED,gEAQC;AAED,kDAEC;AAED,4DASC;AAxDD,uCAKmB;AAgBnB;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS,EAAE,mBAA4B;IAC9E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,UAAU,EAAE,CAAE,IAAI,CAAC,UAAU,CAAgB,CAAC,GAAG,CAAC,yBAAe,CAAC,CAAC;KACtE,CAAC;AACN,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,KAA4B,EAAE,sBAA+B,KAAK;IACvG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,UAAU,EAAE,CAAE,KAAK,CAAC,UAAU,CAAgB,CAAC,GAAG,CAAC,uBAAa,CAAC,CAAC;KACrE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/index.d.ts b/dist/cjs/service/src/models/index.d.ts new file mode 100644 index 0000000..e9683e8 --- /dev/null +++ b/dist/cjs/service/src/models/index.d.ts @@ -0,0 +1,107 @@ +export * from './Account'; +export * from './AccountLendingpoolSummary'; +export * from './AccountStablecoinSystemSummary'; +export * from './AccountStakingSummary'; +export * from './Address'; +export * from './AddressResponse'; +export * from './Balance'; +export * from './BasicEvent'; +export * from './ChainActivity'; +export * from './ChainActivityStep'; +export * from './ChainActivityStepData'; +export * from './DutchAmount'; +export * from './EIP712SignRequest'; +export * from './ErrorMessage'; +export * from './EventDetailsResponse'; +export * from './EventDomain'; +export * from './EventName'; +export * from './EventType'; +export * from './ExtendedEvent'; +export * from './FormattedReserveData'; +export * from './Ilk'; +export * from './IlksResponse'; +export * from './LendingpoolBorrow'; +export * from './LendingpoolBorrowTxRequest'; +export * from './LendingpoolBorrowTxResponse'; +export * from './LendingpoolDeposit'; +export * from './LendingpoolDepositTxRequest'; +export * from './LendingpoolDepositTxResponse'; +export * from './LendingpoolRepayTxRequest'; +export * from './LendingpoolRepayTxResponse'; +export * from './LendingpoolStats'; +export * from './LendingpoolTxResponse'; +export * from './LendingpoolUseAssetAsCollateralTxRequest'; +export * from './LendingpoolUseAssetAsCollateralTxResponse'; +export * from './LendingpoolWithdrawTxRequest'; +export * from './LendingpoolWithdrawTxResponse'; +export * from './Log'; +export * from './MethodParameters'; +export * from './ModelError'; +export * from './Order'; +export * from './OrderInfo'; +export * from './OrderResponse'; +export * from './OrderType'; +export * from './PermitSingle'; +export * from './PersonalSignRequest'; +export * from './PreparedTx'; +export * from './Price'; +export * from './PriceListResponse'; +export * from './QuoteRequest'; +export * from './QuoteRequestOptions'; +export * from './QuoteResponse'; +export * from './RawDutchAmount'; +export * from './RouteItem'; +export * from './Scoreboard'; +export * from './ScoreboardItem'; +export * from './StablecoinSystemBarkTxRequest'; +export * from './StablecoinSystemCreateVaultTxRequest'; +export * from './StablecoinSystemDepositCollateralTxRequest'; +export * from './StablecoinSystemGemexitTxRequest'; +export * from './StablecoinSystemMintZarTxRequest'; +export * from './StablecoinSystemRedoTxRequest'; +export * from './StablecoinSystemRepayZarTxRequest'; +export * from './StablecoinSystemStats'; +export * from './StablecoinSystemTakeTxRequest'; +export * from './StablecoinSystemWithdrawCollateralTxRequest'; +export * from './StablecoinSystemZarexitTxRequest'; +export * from './StablecoinSystemZarjoinTxRequest'; +export * from './StakeBalance'; +export * from './StakePlan'; +export * from './StakePlansResponse'; +export * from './StakingCollectRewardTxRequest'; +export * from './StakingCollectRewardTxResponse'; +export * from './StakingStakeTxRequest'; +export * from './StakingStakeTxResponse'; +export * from './StakingWithdrawTxRequest'; +export * from './StakingWithdrawTxResponse'; +export * from './Stats'; +export * from './Symbol'; +export * from './SystemBadDebt'; +export * from './SystemDebt'; +export * from './SystemDebtCeiling'; +export * from './SystemSurplus'; +export * from './SystemSurplusBuffer'; +export * from './SystemSurplusLotSize'; +export * from './TimeRange'; +export * from './Timestamp'; +export * from './Token'; +export * from './TradeType'; +export * from './Type'; +export * from './TypedData'; +export * from './TypedDataDomain'; +export * from './UnclaimedReward'; +export * from './UpdateOrderRequest'; +export * from './UserBorrowsResponse'; +export * from './UserDepositsResponse'; +export * from './UserError'; +export * from './UserStake'; +export * from './UserStakesResponse'; +export * from './V3PoolInRoute'; +export * from './Vault'; +export * from './VaultEvent'; +export * from './VaultEventExtension'; +export * from './VaultEventItem'; +export * from './VaultEventsResponse'; +export * from './VaultsResponse'; +export * from './WalletBalance'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/index.d.ts.map b/dist/cjs/service/src/models/index.d.ts.map new file mode 100644 index 0000000..4ce5617 --- /dev/null +++ b/dist/cjs/service/src/models/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/service/src/models/index.ts"],"names":[],"mappings":"AAEA,cAAc,WAAW,CAAC;AAC1B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,OAAO,CAAC;AACtB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,sBAAsB,CAAC;AACrC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,C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U,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC"} \ No newline at end of file diff --git a/dist/cjs/service/src/models/index.js b/dist/cjs/service/src/models/index.js new file mode 100644 index 0000000..847043b --- /dev/null +++ b/dist/cjs/service/src/models/index.js @@ -0,0 +1,112 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +/* tslint:disable */ +/* eslint-disable */ +tslib_1.__exportStar(require("./Account"), exports); +tslib_1.__exportStar(require("./AccountLendingpoolSummary"), exports); +tslib_1.__exportStar(require("./AccountStablecoinSystemSummary"), exports); +tslib_1.__exportStar(require("./AccountStakingSummary"), exports); +tslib_1.__exportStar(require("./Address"), exports); +tslib_1.__exportStar(require("./AddressResponse"), exports); +tslib_1.__exportStar(require("./Balance"), exports); +tslib_1.__exportStar(require("./BasicEvent"), exports); +tslib_1.__exportStar(require("./ChainActivity"), exports); +tslib_1.__exportStar(require("./ChainActivityStep"), exports); +tslib_1.__exportStar(require("./ChainActivityStepData"), exports); +tslib_1.__exportStar(require("./DutchAmount"), exports); +tslib_1.__exportStar(require("./EIP712SignRequest"), exports); +tslib_1.__exportStar(require("./ErrorMessage"), exports); +tslib_1.__exportStar(require("./EventDetailsResponse"), exports); +tslib_1.__exportStar(require("./EventDomain"), exports); +tslib_1.__exportStar(require("./EventName"), exports); +tslib_1.__exportStar(require("./EventType"), exports); +tslib_1.__exportStar(require("./ExtendedEvent"), exports); +tslib_1.__exportStar(require("./FormattedReserveData"), exports); +tslib_1.__exportStar(require("./Ilk"), exports); +tslib_1.__exportStar(require("./IlksResponse"), exports); +tslib_1.__exportStar(require("./LendingpoolBorrow"), exports); +tslib_1.__exportStar(require("./LendingpoolBorrowTxRequest"), exports); +tslib_1.__exportStar(require("./LendingpoolBorrowTxResponse"), exports); +tslib_1.__exportStar(require("./LendingpoolDeposit"), exports); +tslib_1.__exportStar(require("./LendingpoolDepositTxRequest"), exports); +tslib_1.__exportStar(require("./LendingpoolDepositTxResponse"), exports); +tslib_1.__exportStar(require("./LendingpoolRepayTxRequest"), exports); +tslib_1.__exportStar(require("./LendingpoolRepayTxResponse"), exports); +tslib_1.__exportStar(require("./LendingpoolStats"), exports); +tslib_1.__exportStar(require("./LendingpoolTxResponse"), exports); +tslib_1.__exportStar(require("./LendingpoolUseAssetAsCollateralTxRequest"), exports); +tslib_1.__exportStar(require("./LendingpoolUseAssetAsCollateralTxResponse"), exports); +tslib_1.__exportStar(require("./LendingpoolWithdrawTxRequest"), exports); +tslib_1.__exportStar(require("./LendingpoolWithdrawTxResponse"), exports); +tslib_1.__exportStar(require("./Log"), exports); +tslib_1.__exportStar(require("./MethodParameters"), exports); +tslib_1.__exportStar(require("./ModelError"), exports); +tslib_1.__exportStar(require("./Order"), exports); +tslib_1.__exportStar(require("./OrderInfo"), exports); +tslib_1.__exportStar(require("./OrderResponse"), exports); +tslib_1.__exportStar(require("./OrderType"), exports); +tslib_1.__exportStar(require("./PermitSingle"), exports); +tslib_1.__exportStar(require("./PersonalSignRequest"), exports); +tslib_1.__exportStar(require("./PreparedTx"), exports); +tslib_1.__exportStar(require("./Price"), exports); +tslib_1.__exportStar(require("./PriceListResponse"), exports); +tslib_1.__exportStar(require("./QuoteRequest"), exports); +tslib_1.__exportStar(require("./QuoteRequestOptions"), exports); +tslib_1.__exportStar(require("./QuoteResponse"), exports); +tslib_1.__exportStar(require("./RawDutchAmount"), exports); +tslib_1.__exportStar(require("./RouteItem"), exports); +tslib_1.__exportStar(require("./Scoreboard"), exports); +tslib_1.__exportStar(require("./ScoreboardItem"), exports); +tslib_1.__exportStar(require("./StablecoinSystemBarkTxRequest"), exports); +tslib_1.__exportStar(require("./StablecoinSystemCreateVaultTxRequest"), exports); +tslib_1.__exportStar(require("./StablecoinSystemDepositCollateralTxRequest"), exports); +tslib_1.__exportStar(require("./StablecoinSystemGemexitTxRequest"), exports); +tslib_1.__exportStar(require("./StablecoinSystemMintZarTxRequest"), exports); +tslib_1.__exportStar(require("./StablecoinSystemRedoTxRequest"), exports); +tslib_1.__exportStar(require("./StablecoinSystemRepayZarTxRequest"), exports); +tslib_1.__exportStar(require("./StablecoinSystemStats"), exports); +tslib_1.__exportStar(require("./StablecoinSystemTakeTxRequest"), exports); +tslib_1.__exportStar(require("./StablecoinSystemWithdrawCollateralTxRequest"), exports); +tslib_1.__exportStar(require("./StablecoinSystemZarexitTxRequest"), exports); +tslib_1.__exportStar(require("./StablecoinSystemZarjoinTxRequest"), exports); +tslib_1.__exportStar(require("./StakeBalance"), exports); +tslib_1.__exportStar(require("./StakePlan"), exports); +tslib_1.__exportStar(require("./StakePlansResponse"), exports); +tslib_1.__exportStar(require("./StakingCollectRewardTxRequest"), exports); +tslib_1.__exportStar(require("./StakingCollectRewardTxResponse"), exports); +tslib_1.__exportStar(require("./StakingStakeTxRequest"), exports); +tslib_1.__exportStar(require("./StakingStakeTxResponse"), exports); +tslib_1.__exportStar(require("./StakingWithdrawTxRequest"), exports); +tslib_1.__exportStar(require("./StakingWithdrawTxResponse"), exports); +tslib_1.__exportStar(require("./Stats"), exports); +tslib_1.__exportStar(require("./Symbol"), exports); +tslib_1.__exportStar(require("./SystemBadDebt"), exports); +tslib_1.__exportStar(require("./SystemDebt"), exports); +tslib_1.__exportStar(require("./SystemDebtCeiling"), exports); +tslib_1.__exportStar(require("./SystemSurplus"), exports); +tslib_1.__exportStar(require("./SystemSurplusBuffer"), exports); +tslib_1.__exportStar(require("./SystemSurplusLotSize"), exports); +tslib_1.__exportStar(require("./TimeRange"), exports); +tslib_1.__exportStar(require("./Timestamp"), exports); +tslib_1.__exportStar(require("./Token"), exports); +tslib_1.__exportStar(require("./TradeType"), exports); +tslib_1.__exportStar(require("./Type"), exports); +tslib_1.__exportStar(require("./TypedData"), exports); +tslib_1.__exportStar(require("./TypedDataDomain"), exports); +tslib_1.__exportStar(require("./UnclaimedReward"), exports); +tslib_1.__exportStar(require("./UpdateOrderRequest"), exports); +tslib_1.__exportStar(require("./UserBorrowsResponse"), exports); +tslib_1.__exportStar(require("./UserDepositsResponse"), exports); +tslib_1.__exportStar(require("./UserError"), exports); +tslib_1.__exportStar(require("./UserStake"), exports); +tslib_1.__exportStar(require("./UserStakesResponse"), exports); +tslib_1.__exportStar(require("./V3PoolInRoute"), exports); +tslib_1.__exportStar(require("./Vault"), exports); +tslib_1.__exportStar(require("./VaultEvent"), exports); +tslib_1.__exportStar(require("./VaultEventExtension"), exports); +tslib_1.__exportStar(require("./VaultEventItem"), exports); +tslib_1.__exportStar(require("./VaultEventsResponse"), exports); +tslib_1.__exportStar(require("./VaultsResponse"), exports); +tslib_1.__exportStar(require("./WalletBalance"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/models/index.js.map b/dist/cjs/service/src/models/index.js.map new file mode 100644 index 0000000..ebeb46e --- /dev/null +++ b/dist/cjs/service/src/models/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/service/src/models/index.ts"],"names":[],"mappings":";;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,oDAA0B;AAC1B,sEAA4C;AAC5C,2EAAiD;AACjD,kEAAwC;AACxC,oDAA0B;AAC1B,4DAAkC;AAClC,oDAA0B;AAC1B,uDAA6B;AAC7B,0DAAgC;AAChC,8DAAoC;AACpC,kEAAwC;AACxC,wDAA8B;AAC9B,8DAAoC;AACpC,yDAA+B;AAC/B,iEAAuC;AACvC,wDAA8B;AAC9B,sDAA4B;AAC5B,sDAA4B;AAC5B,0DAAgC;AAChC,iEAAuC;AACvC,gDAAsB;AACtB,yDAA+B;AAC/B,8DAAoC;AACpC,uEAA6C;AAC7C,wEAA8C;AAC9C,+DAAqC;AACrC,wEAA8C;AAC9C,yEAA+C;AAC/C,sEAA4C;AAC5C,uEAA6C;AAC7C,6DAAmC;AACnC,kEAAwC;AACxC,qFAA2D;AAC3D,sFAA4D;AAC5D,yEAA+C;AAC/C,0EAAgD;AAChD,gDAAsB;AACtB,6DAAmC;AACnC,uDAA6B;AAC7B,kDAAwB;AACxB,sDAA4B;AAC5B,0DAAgC;AAChC,sDAA4B;AAC5B,yDAA+B;AAC/B,gEAAsC;AACtC,uDAA6B;AAC7B,kDAAwB;AACxB,8DAAoC;AACpC,yDAA+B;AAC/B,gEAAsC;AACtC,0DAAgC;AAChC,2DAAiC;AACjC,sDAA4B;AAC5B,uDAA6B;AAC7B,2DAAiC;AACjC,0EAAgD;AAChD,iFAAuD;AACvD,uFAA6D;AAC7D,6EAAmD;AACnD,6EAAmD;AACnD,0EAAgD;AAChD,8EAAoD;AACpD,kEAAwC;AACxC,0EAAgD;AAChD,wFAA8D;AAC9D,6EAAmD;AACnD,6EAAmD;AACnD,yDAA+B;AAC/B,sDAA4B;AAC5B,+DAAqC;AACrC,0EAAgD;AAChD,2EAAiD;AACjD,kEAAwC;AACxC,mEAAyC;AACzC,qEAA2C;AAC3C,sEAA4C;AAC5C,kDAAwB;AACxB,mDAAyB;AACzB,0DAAgC;AAChC,uDAA6B;AAC7B,8DAAoC;AACpC,0DAAgC;AAChC,gEAAsC;AACtC,iEAAuC;AACvC,sDAA4B;AAC5B,sDAA4B;AAC5B,kDAAwB;AACxB,sDAA4B;AAC5B,iDAAuB;AACvB,sDAA4B;AAC5B,4DAAkC;AAClC,4DAAkC;AAClC,+DAAqC;AACrC,gEAAsC;AACtC,iEAAuC;AACvC,sDAA4B;AAC5B,sDAA4B;AAC5B,+DAAqC;AACrC,0DAAgC;AAChC,kDAAwB;AACxB,uDAA6B;AAC7B,gEAAsC;AACtC,2DAAiC;AACjC,gEAAsC;AACtC,2DAAiC;AACjC,0DAAgC"} \ No newline at end of file diff --git a/dist/cjs/service/src/runtime.d.ts b/dist/cjs/service/src/runtime.d.ts new file mode 100644 index 0000000..4a4cd6e --- /dev/null +++ b/dist/cjs/service/src/runtime.d.ts @@ -0,0 +1,183 @@ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export declare const BASE_PATH: string; +export interface ConfigurationParameters { + basePath?: string; + fetchApi?: FetchAPI; + middleware?: Middleware[]; + queryParamsStringify?: (params: HTTPQuery) => string; + username?: string; + password?: string; + apiKey?: string | Promise | ((name: string) => string | Promise); + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); + headers?: HTTPHeaders; + credentials?: RequestCredentials; +} +export declare class Configuration { + private configuration; + constructor(configuration?: ConfigurationParameters); + set config(configuration: Configuration); + get basePath(): string; + get fetchApi(): FetchAPI | undefined; + get middleware(): Middleware[]; + get queryParamsStringify(): (params: HTTPQuery) => string; + get username(): string | undefined; + get password(): string | undefined; + get apiKey(): ((name: string) => string | Promise) | undefined; + get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined; + get headers(): HTTPHeaders | undefined; + get credentials(): RequestCredentials | undefined; +} +export declare const DefaultConfig: Configuration; +/** + * This is the base class for all generated API classes. + */ +export declare class BaseAPI { + protected configuration: Configuration; + private static readonly jsonRegex; + private middleware; + constructor(configuration?: Configuration); + withMiddleware(this: T, ...middlewares: Middleware[]): T; + withPreMiddleware(this: T, ...preMiddlewares: Array): T; + withPostMiddleware(this: T, ...postMiddlewares: Array): T; + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + protected isJsonMime(mime: string | null | undefined): boolean; + protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise; + private createFetchParams; + private fetchApi; + /** + * Create a shallow clone of `this` by constructing a new instance + * and then shallow cloning data members. + */ + private clone; +} +export declare class ResponseError extends Error { + response: Response; + name: "ResponseError"; + constructor(response: Response, msg?: string); +} +export declare class FetchError extends Error { + cause: Error; + name: "FetchError"; + constructor(cause: Error, msg?: string); +} +export declare class RequiredError extends Error { + field: string; + name: "RequiredError"; + constructor(field: string, msg?: string); +} +export declare const COLLECTION_FORMATS: { + csv: string; + ssv: string; + tsv: string; + pipes: string; +}; +export type FetchAPI = WindowOrWorkerGlobalScope['fetch']; +export type Json = any; +export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; +export type HTTPHeaders = { + [key: string]: string; +}; +export type HTTPQuery = { + [key: string]: string | number | null | boolean | Array | Set | HTTPQuery; +}; +export type HTTPBody = Json | FormData | URLSearchParams; +export type HTTPRequestInit = { + headers?: HTTPHeaders; + method: HTTPMethod; + credentials?: RequestCredentials; + body?: HTTPBody; +}; +export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; +export type InitOverrideFunction = (requestContext: { + init: HTTPRequestInit; + context: RequestOpts; +}) => Promise; +export interface FetchParams { + url: string; + init: RequestInit; +} +export interface RequestOpts { + path: string; + method: HTTPMethod; + headers: HTTPHeaders; + query?: HTTPQuery; + body?: HTTPBody; +} +export declare function querystring(params: HTTPQuery, prefix?: string): string; +export declare function exists(json: any, key: string): boolean; +export declare function mapValues(data: any, fn: (item: any) => any): {}; +export declare function canConsumeForm(consumes: Consume[]): boolean; +export interface Consume { + contentType: string; +} +export interface RequestContext { + fetch: FetchAPI; + url: string; + init: RequestInit; +} +export interface ResponseContext { + fetch: FetchAPI; + url: string; + init: RequestInit; + response: Response; +} +export interface ErrorContext { + fetch: FetchAPI; + url: string; + init: RequestInit; + error: unknown; + response?: Response; +} +export interface Middleware { + pre?(context: RequestContext): Promise; + post?(context: ResponseContext): Promise; + onError?(context: ErrorContext): Promise; +} +export interface ApiResponse { + raw: Response; + value(): Promise; +} +export interface ResponseTransformer { + (json: any): T; +} +export declare class JSONApiResponse { + raw: Response; + private transformer; + constructor(raw: Response, transformer?: ResponseTransformer); + value(): Promise; +} +export declare class VoidApiResponse { + raw: Response; + constructor(raw: Response); + value(): Promise; +} +export declare class BlobApiResponse { + raw: Response; + constructor(raw: Response); + value(): Promise; +} +export declare class TextApiResponse { + raw: Response; + constructor(raw: Response); + value(): Promise; +} +//# sourceMappingURL=runtime.d.ts.map \ No newline at end of file diff --git a/dist/cjs/service/src/runtime.d.ts.map b/dist/cjs/service/src/runtime.d.ts.map new file mode 100644 index 0000000..a8ffc8b --- /dev/null +++ b/dist/cjs/service/src/runtime.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../../src/service/src/runtime.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,eAAO,MAAM,SAAS,QAA8C,CAAC;AAErE,MAAM,WAAW,uBAAuB;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,UAAU,C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 b/dist/cjs/service/src/runtime.js @@ -0,0 +1,346 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban API + * API for Zarban services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0; +exports.querystring = querystring; +exports.exists = exists; +exports.mapValues = mapValues; +exports.canConsumeForm = canConsumeForm; +exports.BASE_PATH = "https://api.zarban.io".replace(/\/+$/, ""); +class Configuration { + configuration; + constructor(configuration = {}) { + this.configuration = configuration; + } + set config(configuration) { + this.configuration = configuration; + } + get basePath() { + return this.configuration.basePath != null ? this.configuration.basePath : exports.BASE_PATH; + } + get fetchApi() { + return this.configuration.fetchApi; + } + get middleware() { + return this.configuration.middleware || []; + } + get queryParamsStringify() { + return this.configuration.queryParamsStringify || querystring; + } + get username() { + return this.configuration.username; + } + get password() { + return this.configuration.password; + } + get apiKey() { + const apiKey = this.configuration.apiKey; + if (apiKey) { + return typeof apiKey === 'function' ? apiKey : () => apiKey; + } + return undefined; + } + get accessToken() { + const accessToken = this.configuration.accessToken; + if (accessToken) { + return typeof accessToken === 'function' ? accessToken : async () => accessToken; + } + return undefined; + } + get headers() { + return this.configuration.headers; + } + get credentials() { + return this.configuration.credentials; + } +} +exports.Configuration = Configuration; +exports.DefaultConfig = new Configuration(); +/** + * This is the base class for all generated API classes. + */ +class BaseAPI { + configuration; + static jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i'); + middleware; + constructor(configuration = exports.DefaultConfig) { + this.configuration = configuration; + this.middleware = configuration.middleware; + } + withMiddleware(...middlewares) { + const next = this.clone(); + next.middleware = next.middleware.concat(...middlewares); + return next; + } + withPreMiddleware(...preMiddlewares) { + const middlewares = preMiddlewares.map((pre) => ({ pre })); + return this.withMiddleware(...middlewares); + } + withPostMiddleware(...postMiddlewares) { + const middlewares = postMiddlewares.map((post) => ({ post })); + return this.withMiddleware(...middlewares); + } + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + isJsonMime(mime) { + if (!mime) { + return false; + } + return BaseAPI.jsonRegex.test(mime); + } + async request(context, initOverrides) { + const { url, init } = await this.createFetchParams(context, initOverrides); + const response = await this.fetchApi(url, init); + if (response && (response.status >= 200 && response.status < 300)) { + return response; + } + throw new ResponseError(response, 'Response returned an error code'); + } + async createFetchParams(context, initOverrides) { + let url = this.configuration.basePath + context.path; + if (context.query !== undefined && Object.keys(context.query).length !== 0) { + // only add the querystring to the URL if there are query parameters. + // this is done to avoid urls ending with a "?" character which buggy webservers + // do not handle correctly sometimes. + url += '?' + this.configuration.queryParamsStringify(context.query); + } + const headers = Object.assign({}, this.configuration.headers, context.headers); + Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {}); + const initOverrideFn = typeof initOverrides === "function" + ? initOverrides + : async () => initOverrides; + const initParams = { + method: context.method, + headers, + body: context.body, + credentials: this.configuration.credentials, + }; + const overriddenInit = { + ...initParams, + ...(await initOverrideFn({ + init: initParams, + context, + })) + }; + let body; + if (isFormData(overriddenInit.body) + || (overriddenInit.body instanceof URLSearchParams) + || isBlob(overriddenInit.body)) { + body = overriddenInit.body; + } + else if (this.isJsonMime(headers['Content-Type'])) { + body = JSON.stringify(overriddenInit.body); + } + else { + body = overriddenInit.body; + } + const init = { + ...overriddenInit, + body + }; + return { url, init }; + } + fetchApi = async (url, init) => { + let fetchParams = { url, init }; + for (const middleware of this.middleware) { + if (middleware.pre) { + fetchParams = await middleware.pre({ + fetch: this.fetchApi, + ...fetchParams, + }) || fetchParams; + } + } + let response = undefined; + try { + response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init); + } + catch (e) { + for (const middleware of this.middleware) { + if (middleware.onError) { + response = await middleware.onError({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + error: e, + response: response ? response.clone() : undefined, + }) || response; + } + } + if (response === undefined) { + if (e instanceof Error) { + throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); + } + else { + throw e; + } + } + } + for (const middleware of this.middleware) { + if (middleware.post) { + response = await middleware.post({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + response: response.clone(), + }) || response; + } + } + return response; + }; + /** + * Create a shallow clone of `this` by constructing a new instance + * and then shallow cloning data members. + */ + clone() { + const constructor = this.constructor; + const next = new constructor(this.configuration); + next.middleware = this.middleware.slice(); + return next; + } +} +exports.BaseAPI = BaseAPI; +; +function isBlob(value) { + return typeof Blob !== 'undefined' && value instanceof Blob; +} +function isFormData(value) { + return typeof FormData !== "undefined" && value instanceof FormData; +} +class ResponseError extends Error { + response; + name = "ResponseError"; + constructor(response, msg) { + super(msg); + this.response = response; + } +} +exports.ResponseError = ResponseError; +class FetchError extends Error { + cause; + name = "FetchError"; + constructor(cause, msg) { + super(msg); + this.cause = cause; + } +} +exports.FetchError = FetchError; +class RequiredError extends Error { + field; + name = "RequiredError"; + constructor(field, msg) { + super(msg); + this.field = field; + } +} +exports.RequiredError = RequiredError; +exports.COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; +function querystring(params, prefix = '') { + return Object.keys(params) + .map(key => querystringSingleKey(key, params[key], prefix)) + .filter(part => part.length > 0) + .join('&'); +} +function querystringSingleKey(key, value, keyPrefix = '') { + const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key); + if (value instanceof Array) { + const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue))) + .join(`&${encodeURIComponent(fullKey)}=`); + return `${encodeURIComponent(fullKey)}=${multiValue}`; + } + if (value instanceof Set) { + const valueAsArray = Array.from(value); + return querystringSingleKey(key, valueAsArray, keyPrefix); + } + if (value instanceof Date) { + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; + } + if (value instanceof Object) { + return querystring(value, fullKey); + } + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; +} +function exists(json, key) { + const value = json[key]; + return value !== null && value !== undefined; +} +function mapValues(data, fn) { + return Object.keys(data).reduce((acc, key) => ({ ...acc, [key]: fn(data[key]) }), {}); +} +function canConsumeForm(consumes) { + for (const consume of consumes) { + if ('multipart/form-data' === consume.contentType) { + return true; + } + } + return false; +} +class JSONApiResponse { + raw; + transformer; + constructor(raw, transformer = (jsonValue) => jsonValue) { + this.raw = raw; + this.transformer = transformer; + } + async value() { + return this.transformer(await this.raw.json()); + } +} +exports.JSONApiResponse = JSONApiResponse; +class VoidApiResponse { + raw; + constructor(raw) { + this.raw = raw; + } + async value() { + return undefined; + } +} +exports.VoidApiResponse = VoidApiResponse; +class BlobApiResponse { + raw; + constructor(raw) { + this.raw = raw; + } + async value() { + return await this.raw.blob(); + } + ; +} +exports.BlobApiResponse = BlobApiResponse; +class TextApiResponse { + raw; + constructor(raw) { + this.raw = raw; + } + async value() { + return await this.raw.text(); + } + ; +} +exports.TextApiResponse = TextApiResponse; +//# sourceMappingURL=runtime.js.map \ No newline at end of file diff --git a/dist/cjs/service/src/runtime.js.map b/dist/cjs/service/src/runtime.js.map new file mode 100644 index 0000000..3332ff2 --- /dev/null +++ b/dist/cjs/service/src/runtime.js.map @@ -0,0 +1 @@ +{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../../src/service/src/runtime.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AA4SH,kCAKC;AAs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684e --- /dev/null +++ b/dist/cjs/wallet/src/apis/AuthApi.d.ts @@ -0,0 +1,206 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { AuthTelegramRequest, JwtResponse, LoginRequest, SignUpRequest, SimpleResponse } from '../models/index'; +export interface AuthenticateWithTelegramRequest { + authTelegramRequest: AuthTelegramRequest; +} +export interface GenerateJwtTokenRequest { + duration: GenerateJwtTokenDurationEnum; +} +export interface GetOtpRequest { + channel: GetOtpChannelEnum; +} +export interface LoginWithEmailAndPasswordRequest { + loginRequest: LoginRequest; +} +export interface SignupWithEmailAndPasswordRequest { + signUpRequest: SignUpRequest; +} +export interface VerifyUserEmailRequest { + token: string; +} +/** + * AuthApi - interface + * + * @export + * @interface AuthApiInterface + */ +export interface AuthApiInterface { + /** + * Authenticate with Telegram and get a JWT token. + * @summary Authenticate with Telegram + * @param {AuthTelegramRequest} authTelegramRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApiInterface + */ + authenticateWithTelegramRaw(requestParameters: AuthenticateWithTelegramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Authenticate with Telegram and get a JWT token. + * Authenticate with Telegram + */ + authenticateWithTelegram(requestParameters: AuthenticateWithTelegramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Generate a JWT token. + * @summary Generate a JWT token + * @param {7 | 15 | 30 | 90} duration Token duration in days + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApiInterface + */ + generateJwtTokenRaw(requestParameters: GenerateJwtTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Generate a JWT token. + * Generate a JWT token + */ + generateJwtToken(requestParameters: GenerateJwtTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get OTP for the user. + * @summary Get OTP + * @param {'phone'} channel Channel to send OTP + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApiInterface + */ + getOtpRaw(requestParameters: GetOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get OTP for the user. + * Get OTP + */ + getOtp(requestParameters: GetOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Login with email and password and get a JWT token. + * @summary Login with email and password + * @param {LoginRequest} loginRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApiInterface + */ + loginWithEmailAndPasswordRaw(requestParameters: LoginWithEmailAndPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Login with email and password and get a JWT token. + * Login with email and password + */ + loginWithEmailAndPassword(requestParameters: LoginWithEmailAndPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * signup with email and password and get a JWT token. + * @summary signup with email and password + * @param {SignUpRequest} signUpRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApiInterface + */ + signupWithEmailAndPasswordRaw(requestParameters: SignupWithEmailAndPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * signup with email and password and get a JWT token. + * signup with email and password + */ + signupWithEmailAndPassword(requestParameters: SignupWithEmailAndPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Verify the email of the user. + * @summary Verify email + * @param {string} token Verification token + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof AuthApiInterface + */ + verifyUserEmailRaw(requestParameters: VerifyUserEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Verify the email of the user. + * Verify email + */ + verifyUserEmail(requestParameters: VerifyUserEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class AuthApi extends runtime.BaseAPI implements AuthApiInterface { + /** + * Authenticate with Telegram and get a JWT token. + * Authenticate with Telegram + */ + authenticateWithTelegramRaw(requestParameters: AuthenticateWithTelegramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Authenticate with Telegram and get a JWT token. + * Authenticate with Telegram + */ + authenticateWithTelegram(requestParameters: AuthenticateWithTelegramRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Generate a JWT token. + * Generate a JWT token + */ + generateJwtTokenRaw(requestParameters: GenerateJwtTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Generate a JWT token. + * Generate a JWT token + */ + generateJwtToken(requestParameters: GenerateJwtTokenRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get OTP for the user. + * Get OTP + */ + getOtpRaw(requestParameters: GetOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get OTP for the user. + * Get OTP + */ + getOtp(requestParameters: GetOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Login with email and password and get a JWT token. + * Login with email and password + */ + loginWithEmailAndPasswordRaw(requestParameters: LoginWithEmailAndPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Login with email and password and get a JWT token. + * Login with email and password + */ + loginWithEmailAndPassword(requestParameters: LoginWithEmailAndPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * signup with email and password and get a JWT token. + * signup with email and password + */ + signupWithEmailAndPasswordRaw(requestParameters: SignupWithEmailAndPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * signup with email and password and get a JWT token. + * signup with email and password + */ + signupWithEmailAndPassword(requestParameters: SignupWithEmailAndPasswordRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Verify the email of the user. + * Verify email + */ + verifyUserEmailRaw(requestParameters: VerifyUserEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Verify the email of the user. + * Verify email + */ + verifyUserEmail(requestParameters: VerifyUserEmailRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * @export + */ +export declare const GenerateJwtTokenDurationEnum: { + readonly NUMBER_7: 7; + readonly NUMBER_15: 15; + readonly NUMBER_30: 30; + readonly NUMBER_90: 90; +}; +export type GenerateJwtTokenDurationEnum = typeof GenerateJwtTokenDurationEnum[keyof typeof GenerateJwtTokenDurationEnum]; +/** + * @export + */ +export declare const GetOtpChannelEnum: { + readonly PHONE: "phone"; +}; +export type GetOtpChannelEnum = typeof GetOtpChannelEnum[keyof typeof GetOtpChannelEnum]; +//# sourceMappingURL=AuthApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/AuthApi.d.ts.map b/dist/cjs/wallet/src/apis/AuthApi.d.ts.map new file mode 100644 index 0000000..434035e --- /dev/null +++ b/dist/cjs/wallet/src/apis/AuthApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"AuthApi.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/AuthApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,mBAAmB,EACnB,WAAW,EACX,YAAY,EACZ,aAAa,EACb,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAgBzB,MAAM,WAAW,+BAA+B;IAC5C,mBAAmB,EAAE,mBAAmB,CAAC;CAC5C;AAED,MAAM,WAAW,uBAAuB;IACpC,QAAQ,EAAE,4BAA4B,CAAC;CAC1C;AAED,MAAM,WAAW,aAAa;IAC1B,OAAO,EAAE,iBAAiB,CAAC;CAC9B;AAED,MAAM,WAAW,gCAAgC;IAC7C,YAAY,EAAE,YAAY,CAAC;CAC9B;AAED,MAAM,WAAW,iCAAiC;IAC9C,aAAa,EAAE,aAAa,CAAC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,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,cAAc,CAAC;IAK3K;;;OAGG;IACG,kBAAkB,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC;IA0B1K;;;OAGG;IACG,eAAe,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,WAAW,CAAC;CAKrJ;AAED;;GAEG;AACH,eAAO,MAAM,4BAA4B;;;;;CAK/B,CAAC;AACX,MAAM,MAAM,4BAA4B,GAAG,OAAO,4BAA4B,CAAC,MAAM,OAAO,4BAA4B,CAAC,CAAC;AAC1H;;GAEG;AACH,eAAO,MAAM,iBAAiB;;CAEpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/AuthApi.js b/dist/cjs/wallet/src/apis/AuthApi.js new file mode 100644 index 0000000..946d71d --- /dev/null +++ b/dist/cjs/wallet/src/apis/AuthApi.js @@ -0,0 +1,226 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GetOtpChannelEnum = exports.GenerateJwtTokenDurationEnum = exports.AuthApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class AuthApi extends runtime.BaseAPI { + /** + * Authenticate with Telegram and get a JWT token. + * Authenticate with Telegram + */ + async authenticateWithTelegramRaw(requestParameters, initOverrides) { + if (requestParameters['authTelegramRequest'] == null) { + throw new runtime.RequiredError('authTelegramRequest', 'Required parameter "authTelegramRequest" was null or undefined when calling authenticateWithTelegram().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ + path: `/auth/telegram`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.AuthTelegramRequestToJSON)(requestParameters['authTelegramRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.JwtResponseFromJSON)(jsonValue)); + } + /** + * Authenticate with Telegram and get a JWT token. + * Authenticate with Telegram + */ + async authenticateWithTelegram(requestParameters, initOverrides) { + const response = await this.authenticateWithTelegramRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Generate a JWT token. + * Generate a JWT token + */ + async generateJwtTokenRaw(requestParameters, initOverrides) { + if (requestParameters['duration'] == null) { + throw new runtime.RequiredError('duration', 'Required parameter "duration" was null or undefined when calling generateJwtToken().'); + } + const queryParameters = {}; + if (requestParameters['duration'] != null) { + queryParameters['duration'] = requestParameters['duration']; + } + const headerParameters = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/auth/token`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.JwtResponseFromJSON)(jsonValue)); + } + /** + * Generate a JWT token. + * Generate a JWT token + */ + async generateJwtToken(requestParameters, initOverrides) { + const response = await this.generateJwtTokenRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Get OTP for the user. + * Get OTP + */ + async getOtpRaw(requestParameters, initOverrides) { + if (requestParameters['channel'] == null) { + throw new runtime.RequiredError('channel', 'Required parameter "channel" was null or undefined when calling getOtp().'); + } + const queryParameters = {}; + if (requestParameters['channel'] != null) { + queryParameters['channel'] = requestParameters['channel']; + } + const headerParameters = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/auth/otp`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SimpleResponseFromJSON)(jsonValue)); + } + /** + * Get OTP for the user. + * Get OTP + */ + async getOtp(requestParameters, initOverrides) { + const response = await this.getOtpRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Login with email and password and get a JWT token. + * Login with email and password + */ + async loginWithEmailAndPasswordRaw(requestParameters, initOverrides) { + if (requestParameters['loginRequest'] == null) { + throw new runtime.RequiredError('loginRequest', 'Required parameter "loginRequest" was null or undefined when calling loginWithEmailAndPassword().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ + path: `/auth/login`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.LoginRequestToJSON)(requestParameters['loginRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.JwtResponseFromJSON)(jsonValue)); + } + /** + * Login with email and password and get a JWT token. + * Login with email and password + */ + async loginWithEmailAndPassword(requestParameters, initOverrides) { + const response = await this.loginWithEmailAndPasswordRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * signup with email and password and get a JWT token. + * signup with email and password + */ + async signupWithEmailAndPasswordRaw(requestParameters, initOverrides) { + if (requestParameters['signUpRequest'] == null) { + throw new runtime.RequiredError('signUpRequest', 'Required parameter "signUpRequest" was null or undefined when calling signupWithEmailAndPassword().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + const response = await this.request({ + path: `/auth/signup`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.SignUpRequestToJSON)(requestParameters['signUpRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SimpleResponseFromJSON)(jsonValue)); + } + /** + * signup with email and password and get a JWT token. + * signup with email and password + */ + async signupWithEmailAndPassword(requestParameters, initOverrides) { + const response = await this.signupWithEmailAndPasswordRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Verify the email of the user. + * Verify email + */ + async verifyUserEmailRaw(requestParameters, initOverrides) { + if (requestParameters['token'] == null) { + throw new runtime.RequiredError('token', 'Required parameter "token" was null or undefined when calling verifyUserEmail().'); + } + const queryParameters = {}; + if (requestParameters['token'] != null) { + queryParameters['token'] = requestParameters['token']; + } + const headerParameters = {}; + const response = await this.request({ + path: `/verify-email`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.JwtResponseFromJSON)(jsonValue)); + } + /** + * Verify the email of the user. + * Verify email + */ + async verifyUserEmail(requestParameters, initOverrides) { + const response = await this.verifyUserEmailRaw(requestParameters, initOverrides); + return await response.value(); + } +} +exports.AuthApi = AuthApi; +/** + * @export + */ +exports.GenerateJwtTokenDurationEnum = { + NUMBER_7: 7, + NUMBER_15: 15, + NUMBER_30: 30, + NUMBER_90: 90 +}; +/** + * @export + */ +exports.GetOtpChannelEnum = { + PHONE: 'phone' +}; +//# sourceMappingURL=AuthApi.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/AuthApi.js.map b/dist/cjs/wallet/src/apis/AuthApi.js.map new file mode 100644 index 0000000..50c977b --- /dev/null +++ b/dist/cjs/wallet/src/apis/AuthApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AuthApi.js","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/AuthApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAU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gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,2BAAmB,EAAC,SAAS,CAAC,CAAC,CAAC;IAChG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,eAAe,CAAC,iBAAyC,EAAE,aAA0D;QACvH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACjF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAzPD,0BAyPC;AAED;;GAEG;AACU,QAAA,4BAA4B,GAAG;IACxC,QAAQ,EAAE,CAAC;IACX,SAAS,EAAE,EAAE;IACb,SAAS,EAAE,EAAE;IACb,SAAS,EAAE,EAAE;CACP,CAAC;AAEX;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC7B,KAAK,EAAE,OAAO;CACR,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/BalanceApi.d.ts b/dist/cjs/wallet/src/apis/BalanceApi.d.ts new file mode 100644 index 0000000..04a4a91 --- /dev/null +++ b/dist/cjs/wallet/src/apis/BalanceApi.d.ts @@ -0,0 +1,77 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { Balance, Symbol, WalletBalance } from '../models/index'; +export interface GetBalanceBySymbolRequest { + symbol: Symbol; +} +/** + * BalanceApi - interface + * + * @export + * @interface BalanceApiInterface + */ +export interface BalanceApiInterface { + /** + * Get the balance by a symbol. + * @summary Get balance + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BalanceApiInterface + */ + getBalanceBySymbolRaw(requestParameters: GetBalanceBySymbolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get the balance by a symbol. + * Get balance + */ + getBalanceBySymbol(requestParameters: GetBalanceBySymbolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get the balance of the wallet. + * @summary Get wallet balance + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof BalanceApiInterface + */ + getWalletBalanceRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get the balance of the wallet. + * Get wallet balance + */ + getWalletBalance(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class BalanceApi extends runtime.BaseAPI implements BalanceApiInterface { + /** + * Get the balance by a symbol. + * Get balance + */ + getBalanceBySymbolRaw(requestParameters: GetBalanceBySymbolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get the balance by a symbol. + * Get balance + */ + getBalanceBySymbol(requestParameters: GetBalanceBySymbolRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get the balance of the wallet. + * Get wallet balance + */ + getWalletBalanceRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get the balance of the wallet. + * Get wallet balance + */ + getWalletBalance(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=BalanceApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/BalanceApi.d.ts.map b/dist/cjs/wallet/src/apis/BalanceApi.d.ts.map new file mode 100644 index 0000000..7ce1ad5 --- /dev/null +++ b/dist/cjs/wallet/src/apis/BalanceApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"BalanceApi.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/BalanceApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM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CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAuBlI;;;OAGG;IACG,gBAAgB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC;CAK7G"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/BalanceApi.js b/dist/cjs/wallet/src/apis/BalanceApi.js new file mode 100644 index 0000000..bc07404 --- /dev/null +++ b/dist/cjs/wallet/src/apis/BalanceApi.js @@ -0,0 +1,89 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.BalanceApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class BalanceApi extends runtime.BaseAPI { + /** + * Get the balance by a symbol. + * Get balance + */ + async getBalanceBySymbolRaw(requestParameters, initOverrides) { + if (requestParameters['symbol'] == null) { + throw new runtime.RequiredError('symbol', 'Required parameter "symbol" was null or undefined when calling getBalanceBySymbol().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/balance/{symbol}`.replace(`{${"symbol"}}`, encodeURIComponent(String(requestParameters['symbol']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BalanceFromJSON)(jsonValue)); + } + /** + * Get the balance by a symbol. + * Get balance + */ + async getBalanceBySymbol(requestParameters, initOverrides) { + const response = await this.getBalanceBySymbolRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Get the balance of the wallet. + * Get wallet balance + */ + async getWalletBalanceRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/balance`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WalletBalanceFromJSON)(jsonValue)); + } + /** + * Get the balance of the wallet. + * Get wallet balance + */ + async getWalletBalance(initOverrides) { + const response = await this.getWalletBalanceRaw(initOverrides); + return await response.value(); + } +} +exports.BalanceApi = BalanceApi; +//# sourceMappingURL=BalanceApi.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/BalanceApi.js.map b/dist/cjs/wallet/src/apis/BalanceApi.js.map new file mode 100644 index 0000000..5cefd71 --- /dev/null +++ b/dist/cjs/wallet/src/apis/BalanceApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BalanceApi.js","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/BalanceApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAMtC,2CAOyB;AA8CzB;;GAEG;AACH,MAAa,UAAW,SAAQ,OAAO,CAAC,OAAO;IAE3C;;;OAGG;IACH,KAAK,CAAC,qBAAqB,CAAC,iBAA4C,EAAE,aAA0D;QAChI,IAAI,iBAAiB,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;YACtC,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,QAAQ,EACR,sFAAsF,CACzF,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE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AW,EAAE,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YAElD,IAAI,WAAW,EAAE,CAAC;gBACd,gBAAgB,CAAC,eAAe,CAAC,GAAG,UAAU,WAAW,EAAE,CAAC;YAChE,CAAC;QACL,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,UAAU;YAChB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,6BAAqB,EAAC,SAAS,CAAC,CAAC,CAAC;IAClG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,gBAAgB,CAAC,aAA0D;QAC7E,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC;QAC/D,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAjFD,gCAiFC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/CoinsApi.d.ts b/dist/cjs/wallet/src/apis/CoinsApi.d.ts new file mode 100644 index 0000000..e86c613 --- /dev/null +++ b/dist/cjs/wallet/src/apis/CoinsApi.d.ts @@ -0,0 +1,77 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { Coin, CoinResponse, Symbol } from '../models/index'; +export interface GetCoinDetailsRequest { + symbol: Symbol; +} +/** + * CoinsApi - interface + * + * @export + * @interface CoinsApiInterface + */ +export interface CoinsApiInterface { + /** + * Get the details of a coin. + * @summary Get coin + * @param {Symbol} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CoinsApiInterface + */ + getCoinDetailsRaw(requestParameters: GetCoinDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get the details of a coin. + * Get coin + */ + getCoinDetails(requestParameters: GetCoinDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get the list of supported coins. + * @summary Get coins + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof CoinsApiInterface + */ + getSupportedCoinsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get the list of supported coins. + * Get coins + */ + getSupportedCoins(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class CoinsApi extends runtime.BaseAPI implements CoinsApiInterface { + /** + * Get the details of a coin. + * Get coin + */ + getCoinDetailsRaw(requestParameters: GetCoinDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get the details of a coin. + * Get coin + */ + getCoinDetails(requestParameters: GetCoinDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get the list of supported coins. + * Get coins + */ + getSupportedCoinsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get the list of supported coins. + * Get coins + */ + getSupportedCoins(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=CoinsApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/CoinsApi.d.ts.map b/dist/cjs/wallet/src/apis/CoinsApi.d.ts.map new file mode 100644 index 0000000..5bc14d4 --- /dev/null +++ b/dist/cjs/wallet/src/apis/CoinsApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CoinsApi.d.ts","sourceRoot":"","sources":["../../../../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AAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;IAKzI;;;OAGG;IACG,oBAAoB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAelI;;;OAGG;IACG,iBAAiB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC;CAK7G"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/CoinsApi.js b/dist/cjs/wallet/src/apis/CoinsApi.js new file mode 100644 index 0000000..1360bf5 --- /dev/null +++ b/dist/cjs/wallet/src/apis/CoinsApi.js @@ -0,0 +1,75 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.CoinsApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class CoinsApi extends runtime.BaseAPI { + /** + * Get the details of a coin. + * Get coin + */ + async getCoinDetailsRaw(requestParameters, initOverrides) { + if (requestParameters['symbol'] == null) { + throw new runtime.RequiredError('symbol', 'Required parameter "symbol" was null or undefined when calling getCoinDetails().'); + } + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/coins/{symbol}`.replace(`{${"symbol"}}`, encodeURIComponent(String(requestParameters['symbol']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CoinFromJSON)(jsonValue)); + } + /** + * Get the details of a coin. + * Get coin + */ + async getCoinDetails(requestParameters, initOverrides) { + const response = await this.getCoinDetailsRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Get the list of supported coins. + * Get coins + */ + async getSupportedCoinsRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/coins`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CoinResponseFromJSON)(jsonValue)); + } + /** + * Get the list of supported coins. + * Get coins + */ + async getSupportedCoins(initOverrides) { + const response = await this.getSupportedCoinsRaw(initOverrides); + return await response.value(); + } +} +exports.CoinsApi = CoinsApi; +//# sourceMappingURL=CoinsApi.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/CoinsApi.js.map b/dist/cjs/wallet/src/apis/CoinsApi.js.map new file mode 100644 index 0000000..baacb69 --- /dev/null +++ b/dist/cjs/wallet/src/apis/CoinsApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CoinsApi.js","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/CoinsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAMtC,2CAOyB;AA8CzB;;GAEG;AACH,MAAa,QAAS,SAAQ,OAAO,CAAC,OAAO;IAEzC;;;OAGG;IACH,KAAK,CAAC,iBAAiB,CAAC,iBAAwC,EAAE,aAA0D;QACxH,IAAI,iBAAiB,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;YACtC,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,QAAQ,EACR,kFAAkF,CACrF,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,iBAAiB,CAAC,OAAO,CAAC,IAAI,QAAQ,GAAG,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/wallet/src/apis/DepositApi.d.ts b/dist/cjs/wallet/src/apis/DepositApi.d.ts new file mode 100644 index 0000000..39f6ce0 --- /dev/null +++ b/dist/cjs/wallet/src/apis/DepositApi.d.ts @@ -0,0 +1,56 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { DepositResponse } from '../models/index'; +export interface DepositMoneyRequest { + network: string; + symbol: string; +} +/** + * DepositApi - interface + * + * @export + * @interface DepositApiInterface + */ +export interface DepositApiInterface { + /** + * Deposit money to the wallet. + * @summary Deposit money + * @param {string} network Network to deposit + * @param {string} symbol Coin symbol + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DepositApiInterface + */ + depositMoneyRaw(requestParameters: DepositMoneyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Deposit money to the wallet. + * Deposit money + */ + depositMoney(requestParameters: DepositMoneyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class DepositApi extends runtime.BaseAPI implements DepositApiInterface { + /** + * Deposit money to the wallet. + * Deposit money + */ + depositMoneyRaw(requestParameters: DepositMoneyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Deposit money to the wallet. + * Deposit money + */ + depositMoney(requestParameters: DepositMoneyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=DepositApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/DepositApi.d.ts.map b/dist/cjs/wallet/src/apis/DepositApi.d.ts.map new file mode 100644 index 0000000..2e4bdfe --- /dev/null +++ b/dist/cjs/wallet/src/apis/DepositApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"DepositApi.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/DepositApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,eAAe,EAChB,MAAM,iBAAiB,CAAC;AAMzB,MAAM,WAAW,mBAAmB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;;;;;OAQG;IACH,eAAe,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC,CAAC;IAEnK;;;OAGG;IACH,YAAY,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;CAE9I;AAED;;GAEG;AACH,qBAAa,UAAW,SAAQ,OAAO,CAAC,OAAQ,YAAW,mBAAmB;IAE1E;;;OAGG;IACG,eAAe,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,eAAe,CAAC,CAAC;IA6CxK;;;OAGG;IACG,YAAY,CAAC,iBAAiB,EAAE,mBAAmB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,eAAe,CAAC;CAKnJ"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/DepositApi.js b/dist/cjs/wallet/src/apis/DepositApi.js new file mode 100644 index 0000000..52cf572 --- /dev/null +++ b/dist/cjs/wallet/src/apis/DepositApi.js @@ -0,0 +1,68 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.DepositApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class DepositApi extends runtime.BaseAPI { + /** + * Deposit money to the wallet. + * Deposit money + */ + async depositMoneyRaw(requestParameters, initOverrides) { + if (requestParameters['network'] == null) { + throw new runtime.RequiredError('network', 'Required parameter "network" was null or undefined when calling depositMoney().'); + } + if (requestParameters['symbol'] == null) { + throw new runtime.RequiredError('symbol', 'Required parameter "symbol" was null or undefined when calling depositMoney().'); + } + const queryParameters = {}; + if (requestParameters['network'] != null) { + queryParameters['network'] = requestParameters['network']; + } + if (requestParameters['symbol'] != null) { + queryParameters['symbol'] = requestParameters['symbol']; + } + const headerParameters = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/deposit`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.DepositResponseFromJSON)(jsonValue)); + } + /** + * Deposit money to the wallet. + * Deposit money + */ + async depositMoney(requestParameters, initOverrides) { + const response = await this.depositMoneyRaw(requestParameters, initOverrides); + return await response.value(); + } +} +exports.DepositApi = DepositApi; +//# sourceMappingURL=DepositApi.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/DepositApi.js.map b/dist/cjs/wallet/src/apis/DepositApi.js.map new file mode 100644 index 0000000..4c3c3e1 --- /dev/null +++ b/dist/cjs/wallet/src/apis/DepositApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DepositApi.js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,CAAC;YAChE,CAAC;QACL,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,UAAU;YAChB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,+BAAuB,EAAC,SAAS,CAAC,CAAC,CAAC;IACpG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,YAAY,CAAC,iBAAsC,EAAE,aAA0D;QACjH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,eAAe,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC9E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AA5DD,gCA4DC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/HealthApi.d.ts b/dist/cjs/wallet/src/apis/HealthApi.d.ts new file mode 100644 index 0000000..61c6819 --- /dev/null +++ b/dist/cjs/wallet/src/apis/HealthApi.d.ts @@ -0,0 +1,50 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { HealthStatus } from '../models/index'; +/** + * HealthApi - interface + * + * @export + * @interface HealthApiInterface + */ +export interface HealthApiInterface { + /** + * Check the health of the API. + * @summary Health check + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof HealthApiInterface + */ + checkApiHealthRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Check the health of the API. + * Health check + */ + checkApiHealth(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class HealthApi extends runtime.BaseAPI implements HealthApiInterface { + /** + * Check the health of the API. + * Health check + */ + checkApiHealthRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Check the health of the API. + * Health check + */ + checkApiHealth(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=HealthApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/HealthApi.d.ts.map b/dist/cjs/wallet/src/apis/HealthApi.d.ts.map new file mode 100644 index 0000000..d84fe3f --- /dev/null +++ b/dist/cjs/wallet/src/apis/HealthApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"HealthApi.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/HealthApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,YAAY,EACb,MAAM,iBAAiB,CAAC;AAMzB;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;;OAMG;IACH,iBAAiB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC;IAE1H;;;OAGG;IACH,cAAc,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CAErG;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,OAAO,CAAC,OAAQ,YAAW,kBAAkB;IAExE;;;OAGG;IACG,iBAAiB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAe/H;;;OAGG;IACG,cAAc,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC;CAK1G"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/HealthApi.js b/dist/cjs/wallet/src/apis/HealthApi.js new file mode 100644 index 0000000..f81da6f --- /dev/null +++ b/dist/cjs/wallet/src/apis/HealthApi.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.HealthApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class HealthApi extends runtime.BaseAPI { + /** + * Check the health of the API. + * Health check + */ + async checkApiHealthRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/healthz`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.HealthStatusFromJSON)(jsonValue)); + } + /** + * Check the health of the API. + * Health check + */ + async checkApiHealth(initOverrides) { + const response = await this.checkApiHealthRaw(initOverrides); + return await response.value(); + } +} +exports.HealthApi = HealthApi; +//# sourceMappingURL=HealthApi.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/HealthApi.js.map b/dist/cjs/wallet/src/apis/HealthApi.js.map new file mode 100644 index 0000000..eba9ab9 --- /dev/null +++ b/dist/cjs/wallet/src/apis/HealthApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"HealthApi.js","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/HealthApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAItC,2CAGyB;AA0BzB;;GAEG;AACH,MAAa,SAAU,SAAQ,OAAO,CAAC,OAAO;IAE1C;;;OAGG;IACH,KAAK,CAAC,iBAAiB,CAAC,aAA0D;QAC9E,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,UAAU;YAChB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,4BAAoB,EAAC,SAAS,CAAC,CAAC,CAAC;IACjG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,cAAc,CAAC,aAA0D;QAC3E,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC;QAC7D,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AA9BD,8BA8BC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/LoansApi.d.ts b/dist/cjs/wallet/src/apis/LoansApi.d.ts new file mode 100644 index 0000000..c684df1 --- /dev/null +++ b/dist/cjs/wallet/src/apis/LoansApi.d.ts @@ -0,0 +1,213 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { Currency, LoanCreateRequest, LoanPlanResponse, LoanToValueOptions, LoansResponse, LoansResponseList, RepayLoanRequest } from '../models/index'; +export interface CreateLoanVaultRequest { + loanCreateRequest: LoanCreateRequest; +} +export interface EstimateLoanCollateralRequest { + planName: string; + loanToValueOption: LoanToValueOptions; + amount: string; + inputType: EstimateLoanCollateralInputTypeEnum; +} +export interface GetLoanDetailsRequest { + id: string; +} +export interface GetUserLoansRequest { + state?: GetUserLoansStateEnum; + planName?: string; +} +export interface RepayLoanOperationRequest { + repayLoanRequest: RepayLoanRequest; +} +/** + * LoansApi - interface + * + * @export + * @interface LoansApiInterface + */ +export interface LoansApiInterface { + /** + * Create a vault + * @summary Create vault + * @param {LoanCreateRequest} loanCreateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApiInterface + */ + createLoanVaultRaw(requestParameters: CreateLoanVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Create a vault + * Create vault + */ + createLoanVault(requestParameters: CreateLoanVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * @summary Get collateral and loan amount estimation + * @param {string} planName The name of the loan plan + * @param {LoanToValueOptions} loanToValueOption The desired loan to value option + * @param {string} amount Loan/Collateral amount + * @param {'loan' | 'collateral'} inputType The type of the input amount + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApiInterface + */ + estimateLoanCollateralRaw(requestParameters: EstimateLoanCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * Get collateral and loan amount estimation + */ + estimateLoanCollateral(requestParameters: EstimateLoanCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get a list of the available plan loans. + * @summary Get all plan loans + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApiInterface + */ + getAllLoanPlansRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get a list of the available plan loans. + * Get all plan loans + */ + getAllLoanPlans(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get the details of a loan. + * @summary Get loan + * @param {string} id Loan ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApiInterface + */ + getLoanDetailsRaw(requestParameters: GetLoanDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get the details of a loan. + * Get loan + */ + getLoanDetails(requestParameters: GetLoanDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get a list of the user\'s loans. + * @summary Get user loans + * @param {'pending' | 'active' | 'repayment-ongoing' | 'settled' | 'creation-failed' | 'settlement-failed'} [state] loan state + * @param {string} [planName] loan plan name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApiInterface + */ + getUserLoansRaw(requestParameters: GetUserLoansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get a list of the user\'s loans. + * Get user loans + */ + getUserLoans(requestParameters: GetUserLoansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Repay a loan totally + * @summary Repay Loan + * @param {RepayLoanRequest} repayLoanRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof LoansApiInterface + */ + repayLoanRaw(requestParameters: RepayLoanOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Repay a loan totally + * Repay Loan + */ + repayLoan(requestParameters: RepayLoanOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class LoansApi extends runtime.BaseAPI implements LoansApiInterface { + /** + * Create a vault + * Create vault + */ + createLoanVaultRaw(requestParameters: CreateLoanVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Create a vault + * Create vault + */ + createLoanVault(requestParameters: CreateLoanVaultRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * Get collateral and loan amount estimation + */ + estimateLoanCollateralRaw(requestParameters: EstimateLoanCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * Get collateral and loan amount estimation + */ + estimateLoanCollateral(requestParameters: EstimateLoanCollateralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get a list of the available plan loans. + * Get all plan loans + */ + getAllLoanPlansRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get a list of the available plan loans. + * Get all plan loans + */ + getAllLoanPlans(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get the details of a loan. + * Get loan + */ + getLoanDetailsRaw(requestParameters: GetLoanDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get the details of a loan. + * Get loan + */ + getLoanDetails(requestParameters: GetLoanDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get a list of the user\'s loans. + * Get user loans + */ + getUserLoansRaw(requestParameters: GetUserLoansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get a list of the user\'s loans. + * Get user loans + */ + getUserLoans(requestParameters?: GetUserLoansRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Repay a loan totally + * Repay Loan + */ + repayLoanRaw(requestParameters: RepayLoanOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Repay a loan totally + * Repay Loan + */ + repayLoan(requestParameters: RepayLoanOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * @export + */ +export declare const EstimateLoanCollateralInputTypeEnum: { + readonly LOAN: "loan"; + readonly COLLATERAL: "collateral"; +}; +export type EstimateLoanCollateralInputTypeEnum = typeof EstimateLoanCollateralInputTypeEnum[keyof typeof EstimateLoanCollateralInputTypeEnum]; +/** + * @export + */ +export declare const GetUserLoansStateEnum: { + readonly PENDING: "pending"; + readonly ACTIVE: "active"; + readonly REPAYMENT_ONGOING: "repayment-ongoing"; + readonly SETTLED: "settled"; + readonly CREATION_FAILED: "creation-failed"; + readonly SETTLEMENT_FAILED: "settlement-failed"; +}; +export type GetUserLoansStateEnum = typeof GetUserLoansStateEnum[keyof typeof GetUserLoansStateEnum]; +//# sourceMappingURL=LoansApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/LoansApi.d.ts.map b/dist/cjs/wallet/src/apis/LoansApi.d.ts.map new file mode 100644 index 0000000..8c666bf --- /dev/null +++ b/dist/cjs/wallet/src/apis/LoansApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LoansApi.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/LoansApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,QAAQ,EACR,iBAAiB,EACjB,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,iBAAiB,EACjB,gBAAgB,EAEjB,MAAM,iBAAiB,CAAC;AAoBzB,MAAM,WAAW,sBAAsB;IACnC,iBAAiB,EAAE,iBAAiB,CAAC;CACxC;AAED,MAAM,WAAW,6BAA6B;IAC1C,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,kBAAkB,CAAC;IACtC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,mCAAmC,CAAC;CAClD;AAED,MAAM,WAAW,qBAAqB;IAClC,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,mBAAmB;IAChC,KAAK,CAAC,EAAE,qBAAqB,CAAC;IAC9B,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,yBAAyB;IACtC,gBAAgB,EAAE,gBAAgB,CAAC;CACtC;AAED;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;;;;OAOG;IACH,kBAAkB,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oB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aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,aAAa,CAAC;CAKpJ;AAED;;GAEG;AACH,eAAO,MAAM,mCAAmC;;;CAGtC,CAAC;AACX,MAAM,MAAM,mCAAmC,GAAG,OAAO,mCAAmC,CAAC,MAAM,OAAO,mCAAmC,CAAC,CAAC;AAC/I;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;;;;CAOxB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/LoansApi.js b/dist/cjs/wallet/src/apis/LoansApi.js new file mode 100644 index 0000000..eeef9db --- /dev/null +++ b/dist/cjs/wallet/src/apis/LoansApi.js @@ -0,0 +1,253 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GetUserLoansStateEnum = exports.EstimateLoanCollateralInputTypeEnum = exports.LoansApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class LoansApi extends runtime.BaseAPI { + /** + * Create a vault + * Create vault + */ + async createLoanVaultRaw(requestParameters, initOverrides) { + if (requestParameters['loanCreateRequest'] == null) { + throw new runtime.RequiredError('loanCreateRequest', 'Required parameter "loanCreateRequest" was null or undefined when calling createLoanVault().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/loans/create`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.LoanCreateRequestToJSON)(requestParameters['loanCreateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LoansResponseFromJSON)(jsonValue)); + } + /** + * Create a vault + * Create vault + */ + async createLoanVault(requestParameters, initOverrides) { + const response = await this.createLoanVaultRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * Get collateral and loan amount estimation + */ + async estimateLoanCollateralRaw(requestParameters, initOverrides) { + if (requestParameters['planName'] == null) { + throw new runtime.RequiredError('planName', 'Required parameter "planName" was null or undefined when calling estimateLoanCollateral().'); + } + if (requestParameters['loanToValueOption'] == null) { + throw new runtime.RequiredError('loanToValueOption', 'Required parameter "loanToValueOption" was null or undefined when calling estimateLoanCollateral().'); + } + if (requestParameters['amount'] == null) { + throw new runtime.RequiredError('amount', 'Required parameter "amount" was null or undefined when calling estimateLoanCollateral().'); + } + if (requestParameters['inputType'] == null) { + throw new runtime.RequiredError('inputType', 'Required parameter "inputType" was null or undefined when calling estimateLoanCollateral().'); + } + const queryParameters = {}; + if (requestParameters['planName'] != null) { + queryParameters['planName'] = requestParameters['planName']; + } + if (requestParameters['loanToValueOption'] != null) { + queryParameters['loanToValueOption'] = requestParameters['loanToValueOption']; + } + if (requestParameters['amount'] != null) { + queryParameters['amount'] = requestParameters['amount']; + } + if (requestParameters['inputType'] != null) { + queryParameters['inputType'] = requestParameters['inputType']; + } + const headerParameters = {}; + const response = await this.request({ + path: `/loans/estimate`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.CurrencyFromJSON)(jsonValue)); + } + /** + * Get an estimate of required collateral for a specific loan amount, and vice versa. + * Get collateral and loan amount estimation + */ + async estimateLoanCollateral(requestParameters, initOverrides) { + const response = await this.estimateLoanCollateralRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Get a list of the available plan loans. + * Get all plan loans + */ + async getAllLoanPlansRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + const response = await this.request({ + path: `/loans/plans`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LoanPlanResponseFromJSON)(jsonValue)); + } + /** + * Get a list of the available plan loans. + * Get all plan loans + */ + async getAllLoanPlans(initOverrides) { + const response = await this.getAllLoanPlansRaw(initOverrides); + return await response.value(); + } + /** + * Get the details of a loan. + * Get loan + */ + async getLoanDetailsRaw(requestParameters, initOverrides) { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getLoanDetails().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/loans/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LoansResponseFromJSON)(jsonValue)); + } + /** + * Get the details of a loan. + * Get loan + */ + async getLoanDetails(requestParameters, initOverrides) { + const response = await this.getLoanDetailsRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Get a list of the user\'s loans. + * Get user loans + */ + async getUserLoansRaw(requestParameters, initOverrides) { + const queryParameters = {}; + if (requestParameters['state'] != null) { + queryParameters['state'] = requestParameters['state']; + } + if (requestParameters['planName'] != null) { + queryParameters['planName'] = requestParameters['planName']; + } + const headerParameters = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/loans`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LoansResponseListFromJSON)(jsonValue)); + } + /** + * Get a list of the user\'s loans. + * Get user loans + */ + async getUserLoans(requestParameters = {}, initOverrides) { + const response = await this.getUserLoansRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Repay a loan totally + * Repay Loan + */ + async repayLoanRaw(requestParameters, initOverrides) { + if (requestParameters['repayLoanRequest'] == null) { + throw new runtime.RequiredError('repayLoanRequest', 'Required parameter "repayLoanRequest" was null or undefined when calling repayLoan().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/loans/repay`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.RepayLoanRequestToJSON)(requestParameters['repayLoanRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.LoansResponseFromJSON)(jsonValue)); + } + /** + * Repay a loan totally + * Repay Loan + */ + async repayLoan(requestParameters, initOverrides) { + const response = await this.repayLoanRaw(requestParameters, initOverrides); + return await response.value(); + } +} +exports.LoansApi = LoansApi; +/** + * @export + */ +exports.EstimateLoanCollateralInputTypeEnum = { + LOAN: 'loan', + COLLATERAL: 'collateral' +}; +/** + * @export + */ +exports.GetUserLoansStateEnum = { + PENDING: 'pending', + ACTIVE: 'active', + REPAYMENT_ONGOING: 'repayment-ongoing', + SETTLED: 'settled', + CREATION_FAILED: 'creation-failed', + SETTLEMENT_FAILED: 'settlement-failed' +}; +//# sourceMappingURL=LoansApi.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/LoansApi.js.map b/dist/cjs/wallet/src/apis/LoansApi.js.map new file mode 100644 index 0000000..eeaee5b --- /dev/null +++ b/dist/cjs/wallet/src/apis/LoansApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LoansApi.js","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/LoansApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAWtC,2CAiByB;AAsIzB;;GAEG;AACH,MAAa,QAAS,SAAQ,OAAO,CAAC,OAAO;IAEzC;;;OAGG;IACH,KAAK,CAAC,kBAAkB,CAAC,iBAAyC,EAAE,aAA0D;QAC1H,IAAI,iBAAiB,CAAC,mBAAmB,CAAC,IAAI,IAAI,EAAE,CAAC;YACjD,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,mBAAmB,EACnB,8FAA8F,CACjG,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;QAEtD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YAElD,IAAI,WAAW,EAAE,CAAC;gBACd,gBAAgB,CAAC,eAAe,CAAC,GAAG,UAAU,WAAW,EAAE,CAAC;YAChE,CAAC;QACL,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,eAAe;YACrB,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,IAAA,+BAAuB,EAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAAC;SACxE,EAAE,aAAa,CAAC,CAAC;QAElB,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,OAAO,CAAC;YAChC,IAAI,EAAE,cAAc;YACpB,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,IAAA,8BAAsB,EAAC,iBAAiB,CAAC,kBAAkB,CAAC,CAAC;SACtE,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,6BAAqB,EAAC,SAAS,CAAC,CAAC,CAAC;IAClG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,SAAS,CAAC,iBAA4C,EAAE,aAA0D;QACpH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC3E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAzRD,4BAyRC;AAED;;GAEG;AACU,QAAA,mCAAmC,GAAG;IAC/C,IAAI,EAAE,MAAM;IACZ,UAAU,EAAE,YAAY;CAClB,CAAC;AAEX;;GAEG;AACU,QAAA,qBAAqB,GAAG;IACjC,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;IAChB,iBAAiB,EAAE,mBAAmB;IACtC,OAAO,EAAE,SAAS;IAClB,eAAe,EAAE,iBAAiB;IAClC,iBAAiB,EAAE,mBAAmB;CAChC,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/PaymentApi.d.ts b/dist/cjs/wallet/src/apis/PaymentApi.d.ts new file mode 100644 index 0000000..ce70ed2 --- /dev/null +++ b/dist/cjs/wallet/src/apis/PaymentApi.d.ts @@ -0,0 +1,54 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { Payment, PaymentRequest } from '../models/index'; +export interface CreatePaymentRequest { + paymentRequest: PaymentRequest; +} +/** + * PaymentApi - interface + * + * @export + * @interface PaymentApiInterface + */ +export interface PaymentApiInterface { + /** + * Create a new payment. + * @summary Create a payment + * @param {PaymentRequest} paymentRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PaymentApiInterface + */ + createPaymentRaw(requestParameters: CreatePaymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Create a new payment. + * Create a payment + */ + createPayment(requestParameters: CreatePaymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class PaymentApi extends runtime.BaseAPI implements PaymentApiInterface { + /** + * Create a new payment. + * Create a payment + */ + createPaymentRaw(requestParameters: CreatePaymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Create a new payment. + * Create a payment + */ + createPayment(requestParameters: CreatePaymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=PaymentApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/PaymentApi.d.ts.map b/dist/cjs/wallet/src/apis/PaymentApi.d.ts.map new file mode 100644 index 0000000..5bee36b --- /dev/null +++ b/dist/cjs/wallet/src/apis/PaymentApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"PaymentApi.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/PaymentApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,OAAO,EACP,cAAc,EAEf,MAAM,iBAAiB,CAAC;AAUzB,MAAM,WAAW,oBAAoB;IACjC,cAAc,EAAE,cAAc,CAAC;CAClC;AAED;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;;;;OAOG;IACH,gBAAgB,CAAC,iBAAiB,EAAE,oBAAoB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC;IAE7J;;;OAGG;IACH,aAAa,CAAC,iBAAiB,EAAE,oBAAoB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;CAExI;AAED;;GAEG;AACH,qBAAa,UAAW,SAAQ,OAAO,CAAC,OAAQ,YAAW,mBAAmB;IAE1E;;;OAGG;IACG,gBAAgB,CAAC,iBAAiB,EAAE,oBAAoB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;IAiClK;;;OAGG;IACG,aAAa,CAAC,iBAAiB,EAAE,oBAAoB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC;CAK7I"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/PaymentApi.js b/dist/cjs/wallet/src/apis/PaymentApi.js new file mode 100644 index 0000000..66505c2 --- /dev/null +++ b/dist/cjs/wallet/src/apis/PaymentApi.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PaymentApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class PaymentApi extends runtime.BaseAPI { + /** + * Create a new payment. + * Create a payment + */ + async createPaymentRaw(requestParameters, initOverrides) { + if (requestParameters['paymentRequest'] == null) { + throw new runtime.RequiredError('paymentRequest', 'Required parameter "paymentRequest" was null or undefined when calling createPayment().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/payments`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.PaymentRequestToJSON)(requestParameters['paymentRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.PaymentFromJSON)(jsonValue)); + } + /** + * Create a new payment. + * Create a payment + */ + async createPayment(requestParameters, initOverrides) { + const response = await this.createPaymentRaw(requestParameters, initOverrides); + return await response.value(); + } +} +exports.PaymentApi = PaymentApi; +//# sourceMappingURL=PaymentApi.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/PaymentApi.js.map b/dist/cjs/wallet/src/apis/PaymentApi.js.map new file mode 100644 index 0000000..61151e0 --- /dev/null +++ b/dist/cjs/wallet/src/apis/PaymentApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PaymentApi.js","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/PaymentApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAMtC,2CAOyB;AA+BzB;;GAEG;AACH,MAAa,UAAW,SAAQ,OAAO,CAAC,OAAO;IAE3C;;;OAGG;IACH,KAAK,CAAC,gBAAgB,CAAC,iBAAuC,EAAE,aAA0D;QACtH,IAAI,iBAAiB,CAAC,gBAAgB,CAAC,IAAI,IAAI,EAAE,CAAC;YAC9C,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,gBAAgB,EAChB,yFAAyF,CAC5F,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;QAEtD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YAElD,IAAI,WAAW,EAAE,CAAC;gBACd,gBAAgB,CAAC,eAAe,CAAC,GAAG,UAAU,WAAW,EAAE,CAAC;YAChE,CAAC;QACL,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,WAAW;YACjB,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,IAAA,4BAAoB,EAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;SAClE,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,uBAAe,EAAC,SAAS,CAAC,CAAC,CAAC;IAC5F,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,aAAa,CAAC,iBAAuC,EAAE,aAA0D;QACnH,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC/E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAhDD,gCAgDC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/PointsApi.d.ts b/dist/cjs/wallet/src/apis/PointsApi.d.ts new file mode 100644 index 0000000..fa87064 --- /dev/null +++ b/dist/cjs/wallet/src/apis/PointsApi.d.ts @@ -0,0 +1,50 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { FriendPointsResponse } from '../models/index'; +/** + * PointsApi - interface + * + * @export + * @interface PointsApiInterface + */ +export interface PointsApiInterface { + /** + * Get friends points. + * @summary Get friends points. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof PointsApiInterface + */ + getFriendsPointsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get friends points. + * Get friends points. + */ + getFriendsPoints(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class PointsApi extends runtime.BaseAPI implements PointsApiInterface { + /** + * Get friends points. + * Get friends points. + */ + getFriendsPointsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get friends points. + * Get friends points. + */ + getFriendsPoints(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=PointsApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/PointsApi.d.ts.map b/dist/cjs/wallet/src/apis/PointsApi.d.ts.map new file mode 100644 index 0000000..7b6c7ee --- /dev/null +++ b/dist/cjs/wallet/src/apis/PointsApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"PointsApi.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/PointsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AAMzB;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;;;OAMG;IACH,mBAAmB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC,CAAC;IAEpI;;;OAGG;IACH,gBAAgB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;CAE/G;AAED;;GAEG;AACH,qBAAa,SAAU,SAAQ,OAAO,CAAC,OAAQ,YAAW,kBAAkB;IAExE;;;OAGG;IACG,mBAAmB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;IAuBzI;;;OAGG;IACG,gBAAgB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,oBAAoB,CAAC;CAKpH"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/PointsApi.js b/dist/cjs/wallet/src/apis/PointsApi.js new file mode 100644 index 0000000..ac0a4c5 --- /dev/null +++ b/dist/cjs/wallet/src/apis/PointsApi.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.PointsApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class PointsApi extends runtime.BaseAPI { + /** + * Get friends points. + * Get friends points. + */ + async getFriendsPointsRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/points/frineds`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FriendPointsResponseFromJSON)(jsonValue)); + } + /** + * Get friends points. + * Get friends points. + */ + async getFriendsPoints(initOverrides) { + const response = await this.getFriendsPointsRaw(initOverrides); + return await response.value(); + } +} +exports.PointsApi = PointsApi; +//# sourceMappingURL=PointsApi.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/PointsApi.js.map b/dist/cjs/wallet/src/apis/PointsApi.js.map new file mode 100644 index 0000000..563b670 --- /dev/null +++ b/dist/cjs/wallet/src/apis/PointsApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PointsApi.js","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/PointsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAItC,2CAGyB;AA0BzB;;GAEG;AACH,MAAa,SAAU,SAAQ,OAAO,CAAC,OAAO;IAE1C;;;OAGG;IACH,KAAK,CAAC,mBAAmB,CAAC,aAA0D;QAChF,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YAElD,IAAI,WAAW,EAAE,CAAC;gBACd,gBAAgB,CAAC,eAAe,CAAC,GAAG,UAAU,WAAW,EAAE,CAAC;YAChE,CAAC;QACL,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,iBAAiB;YACvB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,oCAA4B,EAAC,SAAS,CAAC,CAAC,CAAC;IACzG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,gBAAgB,CAAC,aAA0D;QAC7E,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAAC,CAAC;QAC/D,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAtCD,8BAsCC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/RedemptionsApi.d.ts b/dist/cjs/wallet/src/apis/RedemptionsApi.d.ts new file mode 100644 index 0000000..3f3394e --- /dev/null +++ b/dist/cjs/wallet/src/apis/RedemptionsApi.d.ts @@ -0,0 +1,147 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { AdminRedemptionUpdateRequest, Redemption, RedemptionRequest, RedemptionResponse } from '../models/index'; +export interface GetAllRedemptionsRequest { + state?: GetAllRedemptionsStateEnum; +} +export interface GetRedemptionDetailsRequest { + id: number; +} +export interface RedeemZarRequest { + redemptionRequest: RedemptionRequest; +} +export interface UpdateRedemptionStatusRequest { + id: string; + adminRedemptionUpdateRequest: AdminRedemptionUpdateRequest; +} +/** + * RedemptionsApi - interface + * + * @export + * @interface RedemptionsApiInterface + */ +export interface RedemptionsApiInterface { + /** + * Get a list of all redemptions. + * @summary Get all redemptions + * @param {'pending' | 'approved' | 'completed' | 'rejected'} [state] Cursor for pagination + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApiInterface + */ + getAllRedemptionsRaw(requestParameters: GetAllRedemptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get a list of all redemptions. + * Get all redemptions + */ + getAllRedemptions(requestParameters: GetAllRedemptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get the details of a redemption. + * @summary Get redemption + * @param {number} id Redemption ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApiInterface + */ + getRedemptionDetailsRaw(requestParameters: GetRedemptionDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get the details of a redemption. + * Get redemption + */ + getRedemptionDetails(requestParameters: GetRedemptionDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Redeem zar + * @summary Redeem zar + * @param {RedemptionRequest} redemptionRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApiInterface + */ + redeemZarRaw(requestParameters: RedeemZarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Redeem zar + * Redeem zar + */ + redeemZar(requestParameters: RedeemZarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Update the status of a redemption. + * @summary Update redemption + * @param {string} id Redemption ID + * @param {AdminRedemptionUpdateRequest} adminRedemptionUpdateRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof RedemptionsApiInterface + */ + updateRedemptionStatusRaw(requestParameters: UpdateRedemptionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Update the status of a redemption. + * Update redemption + */ + updateRedemptionStatus(requestParameters: UpdateRedemptionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class RedemptionsApi extends runtime.BaseAPI implements RedemptionsApiInterface { + /** + * Get a list of all redemptions. + * Get all redemptions + */ + getAllRedemptionsRaw(requestParameters: GetAllRedemptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get a list of all redemptions. + * Get all redemptions + */ + getAllRedemptions(requestParameters?: GetAllRedemptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get the details of a redemption. + * Get redemption + */ + getRedemptionDetailsRaw(requestParameters: GetRedemptionDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get the details of a redemption. + * Get redemption + */ + getRedemptionDetails(requestParameters: GetRedemptionDetailsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Redeem zar + * Redeem zar + */ + redeemZarRaw(requestParameters: RedeemZarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Redeem zar + * Redeem zar + */ + redeemZar(requestParameters: RedeemZarRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Update the status of a redemption. + * Update redemption + */ + updateRedemptionStatusRaw(requestParameters: UpdateRedemptionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Update the status of a redemption. + * Update redemption + */ + updateRedemptionStatus(requestParameters: UpdateRedemptionStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * @export + */ +export declare const GetAllRedemptionsStateEnum: { + readonly PENDING: "pending"; + readonly APPROVED: "approved"; + readonly COMPLETED: "completed"; + readonly REJECTED: "rejected"; +}; +export type GetAllRedemptionsStateEnum = typeof GetAllRedemptionsStateEnum[keyof typeof GetAllRedemptionsStateEnum]; +//# sourceMappingURL=RedemptionsApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/RedemptionsApi.d.ts.map b/dist/cjs/wallet/src/apis/RedemptionsApi.d.ts.map new file mode 100644 index 0000000..4ede15e --- /dev/null +++ b/dist/cjs/wallet/src/apis/RedemptionsApi.d.ts.map @@ -0,0 +1 @@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AO,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IA8BnL;;;OAGG;IACG,oBAAoB,CAAC,iBAAiB,EAAE,2BAA2B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC;IAK3J;;;OAGG;IACG,YAAY,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAiC7J;;;OAGG;IACG,SAAS,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC;IAKrI;;;OAGG;IACG,yBAAyB,CAAC,iBAAiB,EAAE,6BAA6B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;IAwCvL;;;OAGG;IACG,sBAAsB,CAAC,iBAAiB,EAAE,6BAA6B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,UAAU,CAAC;CAKlK;AAED;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;CAK7B,CAAC;AACX,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/RedemptionsApi.js b/dist/cjs/wallet/src/apis/RedemptionsApi.js new file mode 100644 index 0000000..0f19456 --- /dev/null +++ b/dist/cjs/wallet/src/apis/RedemptionsApi.js @@ -0,0 +1,174 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.GetAllRedemptionsStateEnum = exports.RedemptionsApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class RedemptionsApi extends runtime.BaseAPI { + /** + * Get a list of all redemptions. + * Get all redemptions + */ + async getAllRedemptionsRaw(requestParameters, initOverrides) { + const queryParameters = {}; + if (requestParameters['state'] != null) { + queryParameters['state'] = requestParameters['state']; + } + const headerParameters = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/admin/redemptions`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RedemptionResponseFromJSON)(jsonValue)); + } + /** + * Get a list of all redemptions. + * Get all redemptions + */ + async getAllRedemptions(requestParameters = {}, initOverrides) { + const response = await this.getAllRedemptionsRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Get the details of a redemption. + * Get redemption + */ + async getRedemptionDetailsRaw(requestParameters, initOverrides) { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getRedemptionDetails().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/admin/redemptions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RedemptionFromJSON)(jsonValue)); + } + /** + * Get the details of a redemption. + * Get redemption + */ + async getRedemptionDetails(requestParameters, initOverrides) { + const response = await this.getRedemptionDetailsRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Redeem zar + * Redeem zar + */ + async redeemZarRaw(requestParameters, initOverrides) { + if (requestParameters['redemptionRequest'] == null) { + throw new runtime.RequiredError('redemptionRequest', 'Required parameter "redemptionRequest" was null or undefined when calling redeemZar().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/redemptions`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.RedemptionRequestToJSON)(requestParameters['redemptionRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RedemptionFromJSON)(jsonValue)); + } + /** + * Redeem zar + * Redeem zar + */ + async redeemZar(requestParameters, initOverrides) { + const response = await this.redeemZarRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Update the status of a redemption. + * Update redemption + */ + async updateRedemptionStatusRaw(requestParameters, initOverrides) { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling updateRedemptionStatus().'); + } + if (requestParameters['adminRedemptionUpdateRequest'] == null) { + throw new runtime.RequiredError('adminRedemptionUpdateRequest', 'Required parameter "adminRedemptionUpdateRequest" was null or undefined when calling updateRedemptionStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/admin/redemptions/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.AdminRedemptionUpdateRequestToJSON)(requestParameters['adminRedemptionUpdateRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RedemptionFromJSON)(jsonValue)); + } + /** + * Update the status of a redemption. + * Update redemption + */ + async updateRedemptionStatus(requestParameters, initOverrides) { + const response = await this.updateRedemptionStatusRaw(requestParameters, initOverrides); + return await response.value(); + } +} +exports.RedemptionsApi = RedemptionsApi; +/** + * @export + */ +exports.GetAllRedemptionsStateEnum = { + PENDING: 'pending', + APPROVED: 'approved', + COMPLETED: 'completed', + REJECTED: 'rejected' +}; +//# sourceMappingURL=RedemptionsApi.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/RedemptionsApi.js.map b/dist/cjs/wallet/src/apis/RedemptionsApi.js.map new file mode 100644 index 0000000..4e6d07c --- /dev/null +++ b/dist/cjs/wallet/src/apis/RedemptionsApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"RedemptionsApi.js","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/RedemptionsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAQtC,2CAWyB;AA6FzB;;GAEG;AACH,MAAa,cAAe,SAAQ,OAAO,CAAC,OAAO;IAE/C;;;OAGG;IACH,KAAK,CAAC,oBAAoB,CAAC,iBAA2C,EAAE,aAA0D;QAC9H,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,IAAI,iBAAiB,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;YACrC,eAAe,CAAC,OAAO,CAAC,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC1D,CAAC;QAED,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC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K,EAAE,CAAC;IAClC,CAAC;CAEJ;AAxLD,wCAwLC;AAED;;GAEG;AACU,QAAA,0BAA0B,GAAG;IACtC,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,SAAS,EAAE,WAAW;IACtB,QAAQ,EAAE,UAAU;CACd,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/ReferralsApi.d.ts b/dist/cjs/wallet/src/apis/ReferralsApi.d.ts new file mode 100644 index 0000000..1bd946a --- /dev/null +++ b/dist/cjs/wallet/src/apis/ReferralsApi.d.ts @@ -0,0 +1,135 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { Referral, ReferralResponse } from '../models/index'; +export interface GetReferralByIdRequest { + referralId: number; +} +export interface GetReferralsRequest { + name?: string; +} +export interface RedeemReferralRequest { + referralId: number; +} +export interface ValidateReferralRequest { + referralId: number; +} +/** + * ReferralsApi - interface + * + * @export + * @interface ReferralsApiInterface + */ +export interface ReferralsApiInterface { + /** + * Get a referral by its ID. + * @summary Get referral by ID + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApiInterface + */ + getReferralByIdRaw(requestParameters: GetReferralByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get a referral by its ID. + * Get referral by ID + */ + getReferralById(requestParameters: GetReferralByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get referrals by user ID or name. + * @summary Get referrals + * @param {string} [name] Referral name + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApiInterface + */ + getReferralsRaw(requestParameters: GetReferralsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get referrals by user ID or name. + * Get referrals + */ + getReferrals(requestParameters: GetReferralsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Redeem a referral for a user. + * @summary Redeem a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApiInterface + */ + redeemReferralRaw(requestParameters: RedeemReferralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Redeem a referral for a user. + * Redeem a referral + */ + redeemReferral(requestParameters: RedeemReferralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Validate a referral to check if it can be redeemed. + * @summary Validate a referral + * @param {number} referralId Referral ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ReferralsApiInterface + */ + validateReferralRaw(requestParameters: ValidateReferralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Validate a referral to check if it can be redeemed. + * Validate a referral + */ + validateReferral(requestParameters: ValidateReferralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class ReferralsApi extends runtime.BaseAPI implements ReferralsApiInterface { + /** + * Get a referral by its ID. + * Get referral by ID + */ + getReferralByIdRaw(requestParameters: GetReferralByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get a referral by its ID. + * Get referral by ID + */ + getReferralById(requestParameters: GetReferralByIdRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get referrals by user ID or name. + * Get referrals + */ + getReferralsRaw(requestParameters: GetReferralsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get referrals by user ID or name. + * Get referrals + */ + getReferrals(requestParameters?: GetReferralsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Redeem a referral for a user. + * Redeem a referral + */ + redeemReferralRaw(requestParameters: RedeemReferralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Redeem a referral for a user. + * Redeem a referral + */ + redeemReferral(requestParameters: RedeemReferralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Validate a referral to check if it can be redeemed. + * Validate a referral + */ + validateReferralRaw(requestParameters: ValidateReferralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Validate a referral to check if it can be redeemed. + * Validate a referral + */ + validateReferral(requestParameters: ValidateReferralRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=ReferralsApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/ReferralsApi.d.ts.map b/dist/cjs/wallet/src/apis/ReferralsApi.d.ts.map new file mode 100644 index 0000000..6ec9ccf --- /dev/null +++ b/dist/cjs/wallet/src/apis/ReferralsApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ReferralsApi.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/ReferralsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,QAAQ,EACR,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AAQzB,MAAM,WAAW,sBAAsB;IACnC,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,mBAAmB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,qBAAqB;IAClC,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,uBAAuB;IACpC,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;;;;GAKG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;;;;OAOG;IACH,kBAAkB,CAAC,iBAAiB,EAAE,sBAAsB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC,CAA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AO,CAAC,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;CAIhJ"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/ReferralsApi.js b/dist/cjs/wallet/src/apis/ReferralsApi.js new file mode 100644 index 0000000..c3382a3 --- /dev/null +++ b/dist/cjs/wallet/src/apis/ReferralsApi.js @@ -0,0 +1,156 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.ReferralsApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class ReferralsApi extends runtime.BaseAPI { + /** + * Get a referral by its ID. + * Get referral by ID + */ + async getReferralByIdRaw(requestParameters, initOverrides) { + if (requestParameters['referralId'] == null) { + throw new runtime.RequiredError('referralId', 'Required parameter "referralId" was null or undefined when calling getReferralById().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/referrals/{referralId}`.replace(`{${"referralId"}}`, encodeURIComponent(String(requestParameters['referralId']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ReferralFromJSON)(jsonValue)); + } + /** + * Get a referral by its ID. + * Get referral by ID + */ + async getReferralById(requestParameters, initOverrides) { + const response = await this.getReferralByIdRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Get referrals by user ID or name. + * Get referrals + */ + async getReferralsRaw(requestParameters, initOverrides) { + const queryParameters = {}; + if (requestParameters['name'] != null) { + queryParameters['name'] = requestParameters['name']; + } + const headerParameters = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/referrals`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ReferralResponseFromJSON)(jsonValue)); + } + /** + * Get referrals by user ID or name. + * Get referrals + */ + async getReferrals(requestParameters = {}, initOverrides) { + const response = await this.getReferralsRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Redeem a referral for a user. + * Redeem a referral + */ + async redeemReferralRaw(requestParameters, initOverrides) { + if (requestParameters['referralId'] == null) { + throw new runtime.RequiredError('referralId', 'Required parameter "referralId" was null or undefined when calling redeemReferral().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/referrals/{referralId}/redeem`.replace(`{${"referralId"}}`, encodeURIComponent(String(requestParameters['referralId']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.VoidApiResponse(response); + } + /** + * Redeem a referral for a user. + * Redeem a referral + */ + async redeemReferral(requestParameters, initOverrides) { + await this.redeemReferralRaw(requestParameters, initOverrides); + } + /** + * Validate a referral to check if it can be redeemed. + * Validate a referral + */ + async validateReferralRaw(requestParameters, initOverrides) { + if (requestParameters['referralId'] == null) { + throw new runtime.RequiredError('referralId', 'Required parameter "referralId" was null or undefined when calling validateReferral().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/referrals/{referralId}/validate`.replace(`{${"referralId"}}`, encodeURIComponent(String(requestParameters['referralId']))), + method: 'POST', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.VoidApiResponse(response); + } + /** + * Validate a referral to check if it can be redeemed. + * Validate a referral + */ + async validateReferral(requestParameters, initOverrides) { + await this.validateReferralRaw(requestParameters, initOverrides); + } +} +exports.ReferralsApi = ReferralsApi; +//# sourceMappingURL=ReferralsApi.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/ReferralsApi.js.map b/dist/cjs/wallet/src/apis/ReferralsApi.js.map new file mode 100644 index 0000000..9f0966e --- /dev/null +++ b/dist/cjs/wallet/src/apis/ReferralsApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ReferralsApi.js","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/ReferralsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAKtC,2CAKyB;AA2FzB;;GAEG;AACH,MAAa,YAAa,SAAQ,OAAO,CAAC,OAAO;IAE7C;;;OAGG;IACH,KAAK,CAAC,kBAAkB,CAAC,iBAAyC,EAAE,aAA0D;QAC1H,IAAI,iBAAiB,CAAC,YAAY,CAAC,IAAI,IAAI,EAAE,CAAC;YAC1C,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,YAAY,EACZ,uFAAuF,CAC1F,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YAElD,IAAI,WAAW,EAAE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M,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,kCAAkC,CAAC,OAAO,CAAC,IAAI,YAAY,GAAG,EAAE,kBAAkB,CAAC,MAAM,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC;YAClI,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;IACjD,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,gBAAgB,CAAC,iBAA0C,EAAE,aAA0D;QACzH,MAAM,IAAI,CAAC,mBAAmB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;IACrE,CAAC;CAEJ;AAzKD,oCAyKC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/SwapApi.d.ts b/dist/cjs/wallet/src/apis/SwapApi.d.ts new file mode 100644 index 0000000..a4c9813 --- /dev/null +++ b/dist/cjs/wallet/src/apis/SwapApi.d.ts @@ -0,0 +1,54 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { SwapRequest, SwapResponse } from '../models/index'; +export interface SwapCoinsRequest { + swapRequest: SwapRequest; +} +/** + * SwapApi - interface + * + * @export + * @interface SwapApiInterface + */ +export interface SwapApiInterface { + /** + * Swap coins in the wallet. + * @summary Swap coins + * @param {SwapRequest} swapRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof SwapApiInterface + */ + swapCoinsRaw(requestParameters: SwapCoinsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Swap coins in the wallet. + * Swap coins + */ + swapCoins(requestParameters: SwapCoinsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class SwapApi extends runtime.BaseAPI implements SwapApiInterface { + /** + * Swap coins in the wallet. + * Swap coins + */ + swapCoinsRaw(requestParameters: SwapCoinsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Swap coins in the wallet. + * Swap coins + */ + swapCoins(requestParameters: SwapCoinsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=SwapApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/SwapApi.d.ts.map b/dist/cjs/wallet/src/apis/SwapApi.d.ts.map new file mode 100644 index 0000000..75ec0ff --- /dev/null +++ b/dist/cjs/wallet/src/apis/SwapApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SwapApi.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/SwapApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,WAAW,EACX,YAAY,EACb,MAAM,iBAAiB,CAAC;AAQzB,MAAM,WAAW,gBAAgB;IAC7B,WAAW,EAAE,WAAW,CAAC;CAC5B;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;;;;OAOG;IACH,YAAY,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC;IAE1J;;;OAGG;IACH,SAAS,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CAErI;AAED;;GAEG;AACH,qBAAa,OAAQ,SAAQ,OAAO,CAAC,OAAQ,YAAW,gBAAgB;IAEpE;;;OAGG;IACG,YAAY,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAiC/J;;;OAGG;IACG,SAAS,CAAC,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC;CAK1I"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/SwapApi.js b/dist/cjs/wallet/src/apis/SwapApi.js new file mode 100644 index 0000000..2eaa1c8 --- /dev/null +++ b/dist/cjs/wallet/src/apis/SwapApi.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SwapApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class SwapApi extends runtime.BaseAPI { + /** + * Swap coins in the wallet. + * Swap coins + */ + async swapCoinsRaw(requestParameters, initOverrides) { + if (requestParameters['swapRequest'] == null) { + throw new runtime.RequiredError('swapRequest', 'Required parameter "swapRequest" was null or undefined when calling swapCoins().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/swap`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.SwapRequestToJSON)(requestParameters['swapRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SwapResponseFromJSON)(jsonValue)); + } + /** + * Swap coins in the wallet. + * Swap coins + */ + async swapCoins(requestParameters, initOverrides) { + const response = await this.swapCoinsRaw(requestParameters, initOverrides); + return await response.value(); + } +} +exports.SwapApi = SwapApi; +//# sourceMappingURL=SwapApi.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/SwapApi.js.map b/dist/cjs/wallet/src/apis/SwapApi.js.map new file mode 100644 index 0000000..7e3ffb2 --- /dev/null +++ b/dist/cjs/wallet/src/apis/SwapApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SwapApi.js","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/SwapApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAKtC,2CAKyB;AA+BzB;;GAEG;AACH,MAAa,OAAQ,SAAQ,OAAO,CAAC,OAAO;IAExC;;;OAGG;IACH,KAAK,CAAC,YAAY,CAAC,iBAAmC,EAAE,aAA0D;QAC9G,IAAI,iBAAiB,CAAC,aAAa,CAAC,IAAI,IAAI,EAAE,CAAC;YAC3C,MAAM,IAAI,OAAO,CAAC,aAAa,CAC3B,aAAa,EACb,kFAAkF,CACrF,CAAC;QACN,CAAC;QAED,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,gBAAgB,CAAC,cAAc,CAAC,GAAG,kBAAkB,CAAC;QAEtD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YAElD,IAAI,WAAW,EAAE,CAAC;gBACd,gBAAgB,CAAC,eAAe,CAAC,GAAG,UAAU,WAAW,EAAE,CAAC;YAChE,CAAC;QACL,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,OAAO;YACb,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,IAAA,yBAAiB,EAAC,iBAAiB,CAAC,aAAa,CAAC,CAAC;SAC5D,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,4BAAoB,EAAC,SAAS,CAAC,CAAC,CAAC;IACjG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,SAAS,CAAC,iBAAmC,EAAE,aAA0D;QAC3G,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QAC3E,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AAhDD,0BAgDC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/TasksApi.d.ts b/dist/cjs/wallet/src/apis/TasksApi.d.ts new file mode 100644 index 0000000..7fb27c1 --- /dev/null +++ b/dist/cjs/wallet/src/apis/TasksApi.d.ts @@ -0,0 +1,50 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { TaskResponse } from '../models/index'; +/** + * TasksApi - interface + * + * @export + * @interface TasksApiInterface + */ +export interface TasksApiInterface { + /** + * Get the list of tasks. + * @summary Get tasks + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TasksApiInterface + */ + getTasksRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get the list of tasks. + * Get tasks + */ + getTasks(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class TasksApi extends runtime.BaseAPI implements TasksApiInterface { + /** + * Get the list of tasks. + * Get tasks + */ + getTasksRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get the list of tasks. + * Get tasks + */ + getTasks(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=TasksApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/TasksApi.d.ts.map b/dist/cjs/wallet/src/apis/TasksApi.d.ts.map new file mode 100644 index 0000000..e92d184 --- /dev/null +++ b/dist/cjs/wallet/src/apis/TasksApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TasksApi.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/TasksApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,YAAY,EACb,MAAM,iBAAiB,CAAC;AAMzB;;;;;GAKG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;;;OAMG;IACH,WAAW,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC;IAEpH;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CAE/F;AAED;;GAEG;AACH,qBAAa,QAAS,SAAQ,OAAO,CAAC,OAAQ,YAAW,iBAAiB;IAEtE;;;OAGG;IACG,WAAW,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAuBzH;;;OAGG;IACG,QAAQ,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,YAAY,CAAC;CAKpG"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/TasksApi.js b/dist/cjs/wallet/src/apis/TasksApi.js new file mode 100644 index 0000000..f950fa5 --- /dev/null +++ b/dist/cjs/wallet/src/apis/TasksApi.js @@ -0,0 +1,56 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TasksApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class TasksApi extends runtime.BaseAPI { + /** + * Get the list of tasks. + * Get tasks + */ + async getTasksRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/tasks`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TaskResponseFromJSON)(jsonValue)); + } + /** + * Get the list of tasks. + * Get tasks + */ + async getTasks(initOverrides) { + const response = await this.getTasksRaw(initOverrides); + return await response.value(); + } +} +exports.TasksApi = TasksApi; +//# sourceMappingURL=TasksApi.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/TasksApi.js.map b/dist/cjs/wallet/src/apis/TasksApi.js.map new file mode 100644 index 0000000..e7c9d36 --- /dev/null +++ b/dist/c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C;CAEJ;AAtCD,4BAsCC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/TransactionsApi.d.ts b/dist/cjs/wallet/src/apis/TransactionsApi.d.ts new file mode 100644 index 0000000..6456a0e --- /dev/null +++ b/dist/cjs/wallet/src/apis/TransactionsApi.d.ts @@ -0,0 +1,56 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { TransactionResponse } from '../models/index'; +export interface GetUserTransactionsRequest { + cursor?: number; + limit?: number; +} +/** + * TransactionsApi - interface + * + * @export + * @interface TransactionsApiInterface + */ +export interface TransactionsApiInterface { + /** + * Get a list of the recent transactions of the user. + * @summary Get user transactions + * @param {number} [cursor] Cursor for pagination + * @param {number} [limit] Limit the number of transactions returned (default is 100) + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof TransactionsApiInterface + */ + getUserTransactionsRaw(requestParameters: GetUserTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get a list of the recent transactions of the user. + * Get user transactions + */ + getUserTransactions(requestParameters: GetUserTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class TransactionsApi extends runtime.BaseAPI implements TransactionsApiInterface { + /** + * Get a list of the recent transactions of the user. + * Get user transactions + */ + getUserTransactionsRaw(requestParameters: GetUserTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get a list of the recent transactions of the user. + * Get user transactions + */ + getUserTransactions(requestParameters?: GetUserTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=TransactionsApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/TransactionsApi.d.ts.map b/dist/cjs/wallet/src/apis/TransactionsApi.d.ts.map new file mode 100644 index 0000000..fe270a3 --- /dev/null +++ b/dist/cjs/wallet/src/apis/TransactionsApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TransactionsApi.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/TransactionsApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AAMzB,MAAM,WAAW,0BAA0B;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;GAKG;AACH,MAAM,WAAW,wBAAwB;IACrC;;;;;;;;OAQG;IACH,sBAAsB,CAAC,iBAAiB,EAAE,0BAA0B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC,CAAC;IAErL;;;OAGG;IACH,mBAAmB,CAAC,iBAAiB,EAAE,0BAA0B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;CAEhK;AAED;;GAEG;AACH,qBAAa,eAAgB,SAAQ,OAAO,CAAC,OAAQ,YAAW,wBAAwB;IAEpF;;;OAGG;IACG,sBAAsB,CAAC,iBAAiB,EAAE,0BAA0B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC;IA+B1L;;;OAGG;IACG,mBAAmB,CAAC,iBAAiB,GAAE,0BAA+B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC;CAK1K"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/TransactionsApi.js b/dist/cjs/wallet/src/apis/TransactionsApi.js new file mode 100644 index 0000000..e18e8e5 --- /dev/null +++ b/dist/cjs/wallet/src/apis/TransactionsApi.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TransactionsApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class TransactionsApi extends runtime.BaseAPI { + /** + * Get a list of the recent transactions of the user. + * Get user transactions + */ + async getUserTransactionsRaw(requestParameters, initOverrides) { + const queryParameters = {}; + if (requestParameters['cursor'] != null) { + queryParameters['cursor'] = requestParameters['cursor']; + } + if (requestParameters['limit'] != null) { + queryParameters['limit'] = requestParameters['limit']; + } + const headerParameters = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/transactions`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TransactionResponseFromJSON)(jsonValue)); + } + /** + * Get a list of the recent transactions of the user. + * Get user transactions + */ + async getUserTransactions(requestParameters = {}, initOverrides) { + const response = await this.getUserTransactionsRaw(requestParameters, initOverrides); + return await response.value(); + } +} +exports.TransactionsApi = TransactionsApi; +//# sourceMappingURL=TransactionsApi.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/TransactionsApi.js.map b/dist/cjs/wallet/src/apis/TransactionsApi.js.map new file mode 100644 index 0000000..1458e79 --- /dev/null +++ b/dist/cjs/wallet/src/apis/TransactionsApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TransactionsApi.js","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/TransactionsApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAItC,2CAGyB;AAiCzB;;GAEG;AACH,MAAa,eAAgB,SAAQ,OAAO,CAAC,OAAO;IAEhD;;;OAGG;IACH,KAAK,CAAC,sBAAsB,CAAC,iBAA6C,EAAE,aAA0D;QAClI,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,IAAI,iBAAiB,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;YACtC,eAAe,CAAC,QAAQ,CAAC,GAAG,iBAAiB,CAAC,QAAQ,CAAC,CAAC;QAC5D,CAAC;QAED,IAAI,iBAAiB,CAAC,OAAO,CAAC,IAAI,IAAI,EAAE,CAAC;YACrC,eAAe,CAAC,OAAO,CAAC,GAAG,iBAAiB,CAAC,OAAO,CAAC,CAAC;QAC1D,CAAC;QAED,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YAElD,IAAI,WAAW,EAAE,CAAC;gBACd,gBAAgB,CAAC,eAAe,CAAC,GAAG,UAAU,WAAW,EAAE,CAAC;YAChE,CAAC;QACL,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,eAAe;YACrB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;SACzB,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,mCAA2B,EAAC,SAAS,CAAC,CAAC,CAAC;IACxG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,mBAAmB,CAAC,oBAAgD,EAAE,EAAE,aAA0D;QACpI,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,sBAAsB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACrF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AA9CD,0CA8CC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/UserApi.d.ts b/dist/cjs/wallet/src/apis/UserApi.d.ts new file mode 100644 index 0000000..dd6ca73 --- /dev/null +++ b/dist/cjs/wallet/src/apis/UserApi.d.ts @@ -0,0 +1,239 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { CreateChildUserRequest, EmailOtpSubmitRequest, KycConfirmRequest, KycRequest, KycResponse, PhoneOtpSubmitRequest, ProfileResponse, SimpleResponse, UpdateEmailRequest, UpdatePhoneRequest, User } from '../models/index'; +export interface ConfirmKycRequest { + kycConfirmRequest: KycConfirmRequest; +} +export interface ConfirmPhoneNumberRequest { + phoneOtpSubmitRequest: PhoneOtpSubmitRequest; +} +export interface CreateChildUserOperationRequest { + createChildUserRequest: CreateChildUserRequest; +} +export interface SubmitEmailConfirmationOtpRequest { + emailOtpSubmitRequest: EmailOtpSubmitRequest; +} +export interface SubmitKycRequest { + kycRequest: KycRequest; +} +export interface VerifyPhoneNumberRequest { + updatePhoneRequest: UpdatePhoneRequest; +} +export interface VerifyUserEmailAddressRequest { + updateEmailRequest: UpdateEmailRequest; +} +/** + * UserApi - interface + * + * @export + * @interface UserApiInterface + */ +export interface UserApiInterface { + /** + * Confirm KYC for the user. + * @summary Confirm KYC + * @param {KycConfirmRequest} kycConfirmRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + confirmKycRaw(requestParameters: ConfirmKycRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Confirm KYC for the user. + * Confirm KYC + */ + confirmKyc(requestParameters: ConfirmKycRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Confirm the phone number of the user. + * @summary Confirm phone number + * @param {PhoneOtpSubmitRequest} phoneOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + confirmPhoneNumberRaw(requestParameters: ConfirmPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Confirm the phone number of the user. + * Confirm phone number + */ + confirmPhoneNumber(requestParameters: ConfirmPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * create a child user + * @summary create a child user + * @param {CreateChildUserRequest} createChildUserRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + createChildUserRaw(requestParameters: CreateChildUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * create a child user + * create a child user + */ + createChildUser(requestParameters: CreateChildUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get the profile of the user. + * @summary Get profile + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + getUserProfileRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get the profile of the user. + * Get profile + */ + getUserProfile(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Submit email confirmation OTP for the user. + * @summary Submit email confirmation OTP + * @param {EmailOtpSubmitRequest} emailOtpSubmitRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + submitEmailConfirmationOtpRaw(requestParameters: SubmitEmailConfirmationOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Submit email confirmation OTP for the user. + * Submit email confirmation OTP + */ + submitEmailConfirmationOtp(requestParameters: SubmitEmailConfirmationOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Submit KYC for the user. + * @summary Submit KYC + * @param {KycRequest} kycRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + submitKycRaw(requestParameters: SubmitKycRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Submit KYC for the user. + * Submit KYC + */ + submitKyc(requestParameters: SubmitKycRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Verify the phone number of the user. + * @summary Verify phone number + * @param {UpdatePhoneRequest} updatePhoneRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + verifyPhoneNumberRaw(requestParameters: VerifyPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Verify the phone number of the user. + * Verify phone number + */ + verifyPhoneNumber(requestParameters: VerifyPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Verify the email of the user. + * @summary Verify email + * @param {UpdateEmailRequest} updateEmailRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof UserApiInterface + */ + verifyUserEmailAddressRaw(requestParameters: VerifyUserEmailAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Verify the email of the user. + * Verify email + */ + verifyUserEmailAddress(requestParameters: VerifyUserEmailAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class UserApi extends runtime.BaseAPI implements UserApiInterface { + /** + * Confirm KYC for the user. + * Confirm KYC + */ + confirmKycRaw(requestParameters: ConfirmKycRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Confirm KYC for the user. + * Confirm KYC + */ + confirmKyc(requestParameters: ConfirmKycRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Confirm the phone number of the user. + * Confirm phone number + */ + confirmPhoneNumberRaw(requestParameters: ConfirmPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Confirm the phone number of the user. + * Confirm phone number + */ + confirmPhoneNumber(requestParameters: ConfirmPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * create a child user + * create a child user + */ + createChildUserRaw(requestParameters: CreateChildUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * create a child user + * create a child user + */ + createChildUser(requestParameters: CreateChildUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get the profile of the user. + * Get profile + */ + getUserProfileRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get the profile of the user. + * Get profile + */ + getUserProfile(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Submit email confirmation OTP for the user. + * Submit email confirmation OTP + */ + submitEmailConfirmationOtpRaw(requestParameters: SubmitEmailConfirmationOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Submit email confirmation OTP for the user. + * Submit email confirmation OTP + */ + submitEmailConfirmationOtp(requestParameters: SubmitEmailConfirmationOtpRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Submit KYC for the user. + * Submit KYC + */ + submitKycRaw(requestParameters: SubmitKycRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Submit KYC for the user. + * Submit KYC + */ + submitKyc(requestParameters: SubmitKycRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Verify the phone number of the user. + * Verify phone number + */ + verifyPhoneNumberRaw(requestParameters: VerifyPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Verify the phone number of the user. + * Verify phone number + */ + verifyPhoneNumber(requestParameters: VerifyPhoneNumberRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Verify the email of the user. + * Verify email + */ + verifyUserEmailAddressRaw(requestParameters: VerifyUserEmailAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Verify the email of the user. + * Verify email + */ + verifyUserEmailAddress(requestParameters: VerifyUserEmailAddressRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=UserApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/UserApi.d.ts.map b/dist/cjs/wallet/src/apis/UserApi.d.ts.map new file mode 100644 index 0000000..89c4622 --- /dev/null +++ b/dist/cjs/wallet/src/apis/UserApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"UserApi.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/UserApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EACV,sBAAsB,EACtB,qBAAqB,EACrB,iBAAiB,EACjB,UAAU,EACV,WAAW,EACX,qBAAqB,EACrB,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,IAAI,EAEL,MAAM,iBAAiB,CAAC;AA4BzB,MAAM,WAAW,iBAAiB;IAC9B,iBAAiB,EAAE,iBAAiB,CAAC;CACxC;AAED,MAAM,WAAW,yBAAyB;IACtC,qBAAqB,EAAE,qBAAqB,CAAC;CAChD;AAED,MAAM,WAAW,+BAA+B;IAC5C,sBAAsB,EAAE,sBAAsB,CAAC;CAClD;AAED,MAAM,WAAW,iCAAiC;IAC9C,qBAAqB,EAAE,qBAAqB,CAAC;CAChD;AAED,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AAC,IAAI,CAAC,CAAC;IAiCvK;;;OAGG;IACG,iBAAiB,CAAC,iBAAiB,EAAE,wBAAwB,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,IAAI,CAAC;IAI/I;;;OAGG;IACG,yBAAyB,CAAC,iBAAiB,EAAE,6BAA6B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC;IAiC3L;;;OAGG;IACG,sBAAsB,CAAC,iBAAiB,EAAE,6BAA6B,EAAE,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,cAAc,CAAC;CAKtK"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/UserApi.js b/dist/cjs/wallet/src/apis/UserApi.js new file mode 100644 index 0000000..387b02f --- /dev/null +++ b/dist/cjs/wallet/src/apis/UserApi.js @@ -0,0 +1,299 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.UserApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class UserApi extends runtime.BaseAPI { + /** + * Confirm KYC for the user. + * Confirm KYC + */ + async confirmKycRaw(requestParameters, initOverrides) { + if (requestParameters['kycConfirmRequest'] == null) { + throw new runtime.RequiredError('kycConfirmRequest', 'Required parameter "kycConfirmRequest" was null or undefined when calling confirmKyc().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/users/kyc/confirm`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.KycConfirmRequestToJSON)(requestParameters['kycConfirmRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SimpleResponseFromJSON)(jsonValue)); + } + /** + * Confirm KYC for the user. + * Confirm KYC + */ + async confirmKyc(requestParameters, initOverrides) { + const response = await this.confirmKycRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Confirm the phone number of the user. + * Confirm phone number + */ + async confirmPhoneNumberRaw(requestParameters, initOverrides) { + if (requestParameters['phoneOtpSubmitRequest'] == null) { + throw new runtime.RequiredError('phoneOtpSubmitRequest', 'Required parameter "phoneOtpSubmitRequest" was null or undefined when calling confirmPhoneNumber().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/users/phone/confirm`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.PhoneOtpSubmitRequestToJSON)(requestParameters['phoneOtpSubmitRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + } + /** + * Confirm the phone number of the user. + * Confirm phone number + */ + async confirmPhoneNumber(requestParameters, initOverrides) { + await this.confirmPhoneNumberRaw(requestParameters, initOverrides); + } + /** + * create a child user + * create a child user + */ + async createChildUserRaw(requestParameters, initOverrides) { + if (requestParameters['createChildUserRequest'] == null) { + throw new runtime.RequiredError('createChildUserRequest', 'Required parameter "createChildUserRequest" was null or undefined when calling createChildUser().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/users/children`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.CreateChildUserRequestToJSON)(requestParameters['createChildUserRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.UserFromJSON)(jsonValue)); + } + /** + * create a child user + * create a child user + */ + async createChildUser(requestParameters, initOverrides) { + const response = await this.createChildUserRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Get the profile of the user. + * Get profile + */ + async getUserProfileRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/profile`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.ProfileResponseFromJSON)(jsonValue)); + } + /** + * Get the profile of the user. + * Get profile + */ + async getUserProfile(initOverrides) { + const response = await this.getUserProfileRaw(initOverrides); + return await response.value(); + } + /** + * Submit email confirmation OTP for the user. + * Submit email confirmation OTP + */ + async submitEmailConfirmationOtpRaw(requestParameters, initOverrides) { + if (requestParameters['emailOtpSubmitRequest'] == null) { + throw new runtime.RequiredError('emailOtpSubmitRequest', 'Required parameter "emailOtpSubmitRequest" was null or undefined when calling submitEmailConfirmationOtp().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/users/email/confirm`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.EmailOtpSubmitRequestToJSON)(requestParameters['emailOtpSubmitRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SimpleResponseFromJSON)(jsonValue)); + } + /** + * Submit email confirmation OTP for the user. + * Submit email confirmation OTP + */ + async submitEmailConfirmationOtp(requestParameters, initOverrides) { + const response = await this.submitEmailConfirmationOtpRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Submit KYC for the user. + * Submit KYC + */ + async submitKycRaw(requestParameters, initOverrides) { + if (requestParameters['kycRequest'] == null) { + throw new runtime.RequiredError('kycRequest', 'Required parameter "kycRequest" was null or undefined when calling submitKyc().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/users/kyc`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.KycRequestToJSON)(requestParameters['kycRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.KycResponseFromJSON)(jsonValue)); + } + /** + * Submit KYC for the user. + * Submit KYC + */ + async submitKyc(requestParameters, initOverrides) { + const response = await this.submitKycRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Verify the phone number of the user. + * Verify phone number + */ + async verifyPhoneNumberRaw(requestParameters, initOverrides) { + if (requestParameters['updatePhoneRequest'] == null) { + throw new runtime.RequiredError('updatePhoneRequest', 'Required parameter "updatePhoneRequest" was null or undefined when calling verifyPhoneNumber().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/users/phone`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.UpdatePhoneRequestToJSON)(requestParameters['updatePhoneRequest']), + }, initOverrides); + return new runtime.VoidApiResponse(response); + } + /** + * Verify the phone number of the user. + * Verify phone number + */ + async verifyPhoneNumber(requestParameters, initOverrides) { + await this.verifyPhoneNumberRaw(requestParameters, initOverrides); + } + /** + * Verify the email of the user. + * Verify email + */ + async verifyUserEmailAddressRaw(requestParameters, initOverrides) { + if (requestParameters['updateEmailRequest'] == null) { + throw new runtime.RequiredError('updateEmailRequest', 'Required parameter "updateEmailRequest" was null or undefined when calling verifyUserEmailAddress().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/users/email`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.UpdateEmailRequestToJSON)(requestParameters['updateEmailRequest']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SimpleResponseFromJSON)(jsonValue)); + } + /** + * Verify the email of the user. + * Verify email + */ + async verifyUserEmailAddress(requestParameters, initOverrides) { + const response = await this.verifyUserEmailAddressRaw(requestParameters, initOverrides); + return await response.value(); + } +} +exports.UserApi = UserApi; +//# sourceMappingURL=UserApi.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/UserApi.js.map b/dist/cjs/wallet/src/apis/UserApi.js.map new file mode 100644 index 0000000..bf6a0f9 --- /dev/null +++ b/dist/cjs/wallet/src/apis/UserApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UserApi.js","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/UserApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAetC,2CAyByB;AAsKzB;;GAE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dist/cjs/wallet/src/apis/WithdrawApi.d.ts b/dist/cjs/wallet/src/apis/WithdrawApi.d.ts new file mode 100644 index 0000000..46df326 --- /dev/null +++ b/dist/cjs/wallet/src/apis/WithdrawApi.d.ts @@ -0,0 +1,131 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import * as runtime from '../runtime'; +import type { WithdrawRequest, WithdrawRequestBody, WithdrawRequestPreview, WithdrawRequestResponse, WithdrawResponseBody } from '../models/index'; +export interface GetWithdrawalStatusRequest { + id: number; +} +export interface PreviewWithdrawalRequest { + withdrawRequestBody: WithdrawRequestBody; +} +export interface RequestWithdrawalRequest { + withdrawRequestBody: WithdrawRequestBody; +} +/** + * WithdrawApi - interface + * + * @export + * @interface WithdrawApiInterface + */ +export interface WithdrawApiInterface { + /** + * Get user withdraw requests + * @summary Get user withdraw requests + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApiInterface + */ + getUserWithdrawRequestsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get user withdraw requests + * Get user withdraw requests + */ + getUserWithdrawRequests(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get the status of a withdrawal request. + * @summary Get withdrawal status + * @param {number} id Withdrawal request ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApiInterface + */ + getWithdrawalStatusRaw(requestParameters: GetWithdrawalStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get the status of a withdrawal request. + * Get withdrawal status + */ + getWithdrawalStatus(requestParameters: GetWithdrawalStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApiInterface + */ + previewWithdrawalRaw(requestParameters: PreviewWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Request a withdrawal from the wallet. + * Withdraw request + */ + previewWithdrawal(requestParameters: PreviewWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Request a withdrawal from the wallet. + * @summary Withdraw request + * @param {WithdrawRequestBody} withdrawRequestBody + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof WithdrawApiInterface + */ + requestWithdrawalRaw(requestParameters: RequestWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Request a withdrawal from the wallet. + * Withdraw request + */ + requestWithdrawal(requestParameters: RequestWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +/** + * + */ +export declare class WithdrawApi extends runtime.BaseAPI implements WithdrawApiInterface { + /** + * Get user withdraw requests + * Get user withdraw requests + */ + getUserWithdrawRequestsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get user withdraw requests + * Get user withdraw requests + */ + getUserWithdrawRequests(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Get the status of a withdrawal request. + * Get withdrawal status + */ + getWithdrawalStatusRaw(requestParameters: GetWithdrawalStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Get the status of a withdrawal request. + * Get withdrawal status + */ + getWithdrawalStatus(requestParameters: GetWithdrawalStatusRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Request a withdrawal from the wallet. + * Withdraw request + */ + previewWithdrawalRaw(requestParameters: PreviewWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Request a withdrawal from the wallet. + * Withdraw request + */ + previewWithdrawal(requestParameters: PreviewWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; + /** + * Request a withdrawal from the wallet. + * Withdraw request + */ + requestWithdrawalRaw(requestParameters: RequestWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; + /** + * Request a withdrawal from the wallet. + * Withdraw request + */ + requestWithdrawal(requestParameters: RequestWithdrawalRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; +} +//# sourceMappingURL=WithdrawApi.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/WithdrawApi.d.ts.map b/dist/cjs/wallet/src/apis/WithdrawApi.d.ts.map new file mode 100644 index 0000000..ef3dfb7 --- /dev/null +++ b/dist/cjs/wallet/src/apis/WithdrawApi.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"WithdrawApi.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/WithdrawApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAEV,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACrB,MAAM,iBAAiB,CAAC;AAgBzB,MAAM,WAAW,0BAA0B;IACvC,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,wBAAwB;IACrC,mBAAmB,EAAE,mBAAmB,CAAC;CAC5C;AAED,MAAM,WAAW,wBAAwB;IACrC,mBAAmB,EAAE,mBAAmB,CAAC;CAC5C;AAED;;;;;GAKG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;;;OAMG;IACH,0BAA0B,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,OAAO,CAAC,WAAW,CAAC,uBAAuB,CAAC,CAAC,CAAC;IAE9I;;;OAGG;IACH,uBAAuB,CAAC,aAAa,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,oBAAoB,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAA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/cjs/wallet/src/apis/WithdrawApi.js @@ -0,0 +1,159 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WithdrawApi = void 0; +const tslib_1 = require("tslib"); +const runtime = tslib_1.__importStar(require("../runtime")); +const index_1 = require("../models/index"); +/** + * + */ +class WithdrawApi extends runtime.BaseAPI { + /** + * Get user withdraw requests + * Get user withdraw requests + */ + async getUserWithdrawRequestsRaw(initOverrides) { + const queryParameters = {}; + const headerParameters = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/withdraws`, + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WithdrawRequestResponseFromJSON)(jsonValue)); + } + /** + * Get user withdraw requests + * Get user withdraw requests + */ + async getUserWithdrawRequests(initOverrides) { + const response = await this.getUserWithdrawRequestsRaw(initOverrides); + return await response.value(); + } + /** + * Get the status of a withdrawal request. + * Get withdrawal status + */ + async getWithdrawalStatusRaw(requestParameters, initOverrides) { + if (requestParameters['id'] == null) { + throw new runtime.RequiredError('id', 'Required parameter "id" was null or undefined when calling getWithdrawalStatus().'); + } + const queryParameters = {}; + const headerParameters = {}; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/withdraws/{id}`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WithdrawRequestFromJSON)(jsonValue)); + } + /** + * Get the status of a withdrawal request. + * Get withdrawal status + */ + async getWithdrawalStatus(requestParameters, initOverrides) { + const response = await this.getWithdrawalStatusRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Request a withdrawal from the wallet. + * Withdraw request + */ + async previewWithdrawalRaw(requestParameters, initOverrides) { + if (requestParameters['withdrawRequestBody'] == null) { + throw new runtime.RequiredError('withdrawRequestBody', 'Required parameter "withdrawRequestBody" was null or undefined when calling previewWithdrawal().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/withdraws/preview`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.WithdrawRequestBodyToJSON)(requestParameters['withdrawRequestBody']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WithdrawRequestPreviewFromJSON)(jsonValue)); + } + /** + * Request a withdrawal from the wallet. + * Withdraw request + */ + async previewWithdrawal(requestParameters, initOverrides) { + const response = await this.previewWithdrawalRaw(requestParameters, initOverrides); + return await response.value(); + } + /** + * Request a withdrawal from the wallet. + * Withdraw request + */ + async requestWithdrawalRaw(requestParameters, initOverrides) { + if (requestParameters['withdrawRequestBody'] == null) { + throw new runtime.RequiredError('withdrawRequestBody', 'Required parameter "withdrawRequestBody" was null or undefined when calling requestWithdrawal().'); + } + const queryParameters = {}; + const headerParameters = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.accessToken) { + const token = this.configuration.accessToken; + const tokenString = await token("bearerAuth", []); + if (tokenString) { + headerParameters["Authorization"] = `Bearer ${tokenString}`; + } + } + const response = await this.request({ + path: `/withdraws/request`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: (0, index_1.WithdrawRequestBodyToJSON)(requestParameters['withdrawRequestBody']), + }, initOverrides); + return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.WithdrawResponseBodyFromJSON)(jsonValue)); + } + /** + * Request a withdrawal from the wallet. + * Withdraw request + */ + async requestWithdrawal(requestParameters, initOverrides) { + const response = await this.requestWithdrawalRaw(requestParameters, initOverrides); + return await response.value(); + } +} +exports.WithdrawApi = WithdrawApi; +//# sourceMappingURL=WithdrawApi.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/WithdrawApi.js.map b/dist/cjs/wallet/src/apis/WithdrawApi.js.map new file mode 100644 index 0000000..2209407 --- /dev/null +++ b/dist/cjs/wallet/src/apis/WithdrawApi.js.map @@ -0,0 +1 @@ +{"version":3,"file":"WithdrawApi.js","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/WithdrawApi.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;;AAGH,4DAAsC;AAStC,2CAayB;AAsFzB;;GAEG;AACH,MAAa,WAAY,SAAQ,OAAO,CAAC,OAAO;IAE5C;;;OAGG;IACH,KAAK,CAAC,0BAA0B,CAAC,aAA0D;QACvF,MAAM,eAAe,GAAQ,EAAE,CAAC;QAEhC,MAAM,gBAAgB,GAAwB,EAAE,CAAC;QAEjD,IAAI,IAAI,CAAC,aAAa,IAAI,IAAI,CAAC,aAAa,CAAC,WAAW,EAAE,CAAC;YACvD,MAAM,KAAK,GAAG,IAAI,CAAC,aAAa,CAAC,WAAW,CAAC;YAC7C,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,YAAY,EAAE,EAAE,CAAC,CAAC;YAElD,IAAI,WAAW,EAAE,CAAC;gBACd,gBAAgB,CAAC,eAAe,CAAC,GAAG,UAAU,WAAW,EAAE,CAAC;YAChE,CAAC;QACL,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,IA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,UAAU,WAAW,EAAE,CAAC;YAChE,CAAC;QACL,CAAC;QACD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC;YAChC,IAAI,EAAE,oBAAoB;YAC1B,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,gBAAgB;YACzB,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,IAAA,iCAAyB,EAAC,iBAAiB,CAAC,qBAAqB,CAAC,CAAC;SAC5E,EAAE,aAAa,CAAC,CAAC;QAElB,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,SAAS,EAAE,EAAE,CAAC,IAAA,oCAA4B,EAAC,SAAS,CAAC,CAAC,CAAC;IACzG,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,iBAAiB,CAAC,iBAA2C,EAAE,aAA0D;QAC3H,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,EAAE,aAAa,CAAC,CAAC;QACnF,OAAO,MAAM,QAAQ,CAAC,KAAK,EAAE,CAAC;IAClC,CAAC;CAEJ;AA7KD,kCA6KC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/index.d.ts b/dist/cjs/wallet/src/apis/index.d.ts new file mode 100644 index 0000000..750fad5 --- /dev/null +++ b/dist/cjs/wallet/src/apis/index.d.ts @@ -0,0 +1,16 @@ +export * as AuthApi from "./AuthApi"; +export * as BalanceApi from "./BalanceApi"; +export * as CoinsApi from "./CoinsApi"; +export * as DepositApi from "./DepositApi"; +export * as HealthApi from "./HealthApi"; +export * as LoansApi from "./LoansApi"; +export * as PaymentApi from "./PaymentApi"; +export * as PointsApi from "./PointsApi"; +export * as RedemptionsApi from "./RedemptionsApi"; +export * as ReferralsApi from "./ReferralsApi"; +export * as SwapApi from "./SwapApi"; +export * as TasksApi from "./TasksApi"; +export * as TransactionsApi from "./TransactionsApi"; +export * as UserApi from "./UserApi"; +export * as WithdrawApi from "./WithdrawApi"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/index.d.ts.map b/dist/cjs/wallet/src/apis/index.d.ts.map new file mode 100644 index 0000000..7945604 --- /dev/null +++ b/dist/cjs/wallet/src/apis/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,UAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,SAAS,MAAM,aAAa,CAAC;AACzC,OAAO,KAAK,cAAc,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,YAAY,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,QAAQ,MAAM,YAAY,CAAC;AACvC,OAAO,KAAK,eAAe,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AACrC,OAAO,KAAK,WAAW,MAAM,eAAe,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/index.js b/dist/cjs/wallet/src/apis/index.js new file mode 100644 index 0000000..83df74d --- /dev/null +++ b/dist/cjs/wallet/src/apis/index.js @@ -0,0 +1,22 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WithdrawApi = exports.UserApi = exports.TransactionsApi = exports.TasksApi = exports.SwapApi = exports.ReferralsApi = exports.RedemptionsApi = exports.PointsApi = exports.PaymentApi = exports.LoansApi = exports.HealthApi = exports.DepositApi = exports.CoinsApi = exports.BalanceApi = exports.AuthApi = void 0; +const tslib_1 = require("tslib"); +/* tslint:disable */ +/* eslint-disable */ +exports.AuthApi = tslib_1.__importStar(require("./AuthApi")); +exports.BalanceApi = tslib_1.__importStar(require("./BalanceApi")); +exports.CoinsApi = tslib_1.__importStar(require("./CoinsApi")); +exports.DepositApi = tslib_1.__importStar(require("./DepositApi")); +exports.HealthApi = tslib_1.__importStar(require("./HealthApi")); +exports.LoansApi = tslib_1.__importStar(require("./LoansApi")); +exports.PaymentApi = tslib_1.__importStar(require("./PaymentApi")); +exports.PointsApi = tslib_1.__importStar(require("./PointsApi")); +exports.RedemptionsApi = tslib_1.__importStar(require("./RedemptionsApi")); +exports.ReferralsApi = tslib_1.__importStar(require("./ReferralsApi")); +exports.SwapApi = tslib_1.__importStar(require("./SwapApi")); +exports.TasksApi = tslib_1.__importStar(require("./TasksApi")); +exports.TransactionsApi = tslib_1.__importStar(require("./TransactionsApi")); +exports.UserApi = tslib_1.__importStar(require("./UserApi")); +exports.WithdrawApi = tslib_1.__importStar(require("./WithdrawApi")); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/apis/index.js.map b/dist/cjs/wallet/src/apis/index.js.map new file mode 100644 index 0000000..ccb72a4 --- /dev/null +++ b/dist/cjs/wallet/src/apis/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/wallet/src/apis/index.ts"],"names":[],"mappings":";;;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,6DAAqC;AACrC,mEAA2C;AAC3C,+DAAuC;AACvC,mEAA2C;AAC3C,iEAAyC;AACzC,+DAAuC;AACvC,mEAA2C;AAC3C,iEAAyC;AACzC,2EAAmD;AACnD,uEAA+C;AAC/C,6DAAqC;AACrC,+DAAuC;AACvC,6EAAqD;AACrD,6DAAqC;AACrC,qEAA6C"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/index.d.ts b/dist/cjs/wallet/src/index.d.ts new file mode 100644 index 0000000..eb67a70 --- /dev/null +++ b/dist/cjs/wallet/src/index.d.ts @@ -0,0 +1,4 @@ +export * from './runtime'; +export * from './apis/index'; +export * from './models/index'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/index.d.ts.map b/dist/cjs/wallet/src/index.d.ts.map new file mode 100644 index 0000000..0de8834 --- /dev/null +++ b/dist/cjs/wallet/src/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/index.ts"],"names":[],"mappings":"AAEA,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/index.js b/dist/cjs/wallet/src/index.js new file mode 100644 index 0000000..a8c073e --- /dev/null +++ b/dist/cjs/wallet/src/index.js @@ -0,0 +1,9 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +/* tslint:disable */ +/* eslint-disable */ +tslib_1.__exportStar(require("./runtime"), exports); +tslib_1.__exportStar(require("./apis/index"), exports); +tslib_1.__exportStar(require("./models/index"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/index.js.map b/dist/cjs/wallet/src/index.js.map new file mode 100644 index 0000000..6c4310b --- /dev/null +++ b/dist/cjs/wallet/src/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/wallet/src/index.ts"],"names":[],"mappings":";;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,oDAA0B;AAC1B,uDAA6B;AAC7B,yDAA+B"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/AdminRedemptionUpdateRequest.d.ts b/dist/cjs/wallet/src/models/AdminRedemptionUpdateRequest.d.ts new file mode 100644 index 0000000..8784a0e --- /dev/null +++ b/dist/cjs/wallet/src/models/AdminRedemptionUpdateRequest.d.ts @@ -0,0 +1,48 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AdminRedemptionUpdateRequest + */ +export interface AdminRedemptionUpdateRequest { + /** + * The status of the redemption request + * @type {string} + * @memberof AdminRedemptionUpdateRequest + */ + status: AdminRedemptionUpdateRequestStatusEnum; + /** + * The Paya tracking code + * @type {string} + * @memberof AdminRedemptionUpdateRequest + */ + payaTrackingCode?: string; +} +/** + * @export + */ +export declare const AdminRedemptionUpdateRequestStatusEnum: { + readonly APPROVED: "Approved"; + readonly REJECTED: "Rejected"; + readonly COMPLETED: "Completed"; +}; +export type AdminRedemptionUpdateRequestStatusEnum = typeof AdminRedemptionUpdateRequestStatusEnum[keyof typeof AdminRedemptionUpdateRequestStatusEnum]; +/** + * Check if a given object implements the AdminRedemptionUpdateRequest interface. + */ +export declare function instanceOfAdminRedemptionUpdateRequest(value: object): value is AdminRedemptionUpdateRequest; +export declare function AdminRedemptionUpdateRequestFromJSON(json: any): AdminRedemptionUpdateRequest; +export declare function AdminRedemptionUpdateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AdminRedemptionUpdateRequest; +export declare function AdminRedemptionUpdateRequestToJSON(json: any): AdminRedemptionUpdateRequest; +export declare function AdminRedemptionUpdateRequestToJSONTyped(value?: AdminRedemptionUpdateRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=AdminRedemptionUpdateRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/AdminRedemptionUpdateRequest.d.ts.map b/dist/cjs/wallet/src/models/AdminRedemptionUpdateRequest.d.ts.map new file mode 100644 index 0000000..1d3ae2e --- /dev/null +++ b/dist/cjs/wallet/src/models/AdminRedemptionUpdateRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"AdminRedemptionUpdateRequest.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/AdminRedemptionUpdateRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IACzC;;;;OAIG;IACH,MAAM,EAAE,sCAAsC,CAAC;IAC/C;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAGD;;GAEG;AACH,eAAO,MAAM,sCAAsC;;;;CAIzC,CAAC;AACX,MAAM,MAAM,sCAAsC,GAAG,OAAO,sCAAsC,CAAC,MAAM,OAAO,sCAAsC,CAAC,CAAC;AAGxJ;;GAEG;AACH,wBAAgB,sCAAsC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,4BAA4B,CAG3G;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,GAAG,4BAA4B,CAE5F;AAED,wBAAgB,yCAAyC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,4BAA4B,CAS/H;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,4BAA4B,CAE1F;AAED,wBAAgB,uCAAuC,CAAC,KAAK,CAAC,EAAE,4BAA4B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU9I"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/AdminRedemptionUpdateRequest.js b/dist/cjs/wallet/src/models/AdminRedemptionUpdateRequest.js new file mode 100644 index 0000000..645666e --- /dev/null +++ b/dist/cjs/wallet/src/models/AdminRedemptionUpdateRequest.js @@ -0,0 +1,62 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.AdminRedemptionUpdateRequestStatusEnum = void 0; +exports.instanceOfAdminRedemptionUpdateRequest = instanceOfAdminRedemptionUpdateRequest; +exports.AdminRedemptionUpdateRequestFromJSON = AdminRedemptionUpdateRequestFromJSON; +exports.AdminRedemptionUpdateRequestFromJSONTyped = AdminRedemptionUpdateRequestFromJSONTyped; +exports.AdminRedemptionUpdateRequestToJSON = AdminRedemptionUpdateRequestToJSON; +exports.AdminRedemptionUpdateRequestToJSONTyped = AdminRedemptionUpdateRequestToJSONTyped; +/** + * @export + */ +exports.AdminRedemptionUpdateRequestStatusEnum = { + APPROVED: 'Approved', + REJECTED: 'Rejected', + COMPLETED: 'Completed' +}; +/** + * Check if a given object implements the AdminRedemptionUpdateRequest interface. + */ +function instanceOfAdminRedemptionUpdateRequest(value) { + if (!('status' in value) || value['status'] === undefined) + return false; + return true; +} +function AdminRedemptionUpdateRequestFromJSON(json) { + return AdminRedemptionUpdateRequestFromJSONTyped(json, false); +} +function AdminRedemptionUpdateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'status': json['status'], + 'payaTrackingCode': json['payaTrackingCode'] == null ? undefined : json['payaTrackingCode'], + }; +} +function AdminRedemptionUpdateRequestToJSON(json) { + return AdminRedemptionUpdateRequestToJSONTyped(json, false); +} +function AdminRedemptionUpdateRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'status': value['status'], + 'payaTrackingCode': value['payaTrackingCode'], + }; +} +//# sourceMappingURL=AdminRedemptionUpdateRequest.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/AdminRedemptionUpdateRequest.js.map b/dist/cjs/wallet/src/models/AdminRedemptionUpdateRequest.js.map new file mode 100644 index 0000000..3e8a19d --- /dev/null +++ b/dist/cjs/wallet/src/models/AdminRedemptionUpdateRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AdminRedemptionUpdateRequest.js","sourceRoot":"","s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AkB,EAAE,KAAK,CAAC,kBAAkB,CAAC;KAChD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/AuthTelegramRequest.d.ts b/dist/cjs/wallet/src/models/AuthTelegramRequest.d.ts new file mode 100644 index 0000000..406a282 --- /dev/null +++ b/dist/cjs/wallet/src/models/AuthTelegramRequest.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface AuthTelegramRequest + */ +export interface AuthTelegramRequest { + /** + * Telegram init data + * @type {string} + * @memberof AuthTelegramRequest + */ + initdata: string; +} +/** + * Check if a given object implements the AuthTelegramRequest interface. + */ +export declare function instanceOfAuthTelegramRequest(value: object): value is AuthTelegramRequest; +export declare function AuthTelegramRequestFromJSON(json: any): AuthTelegramRequest; +export declare function AuthTelegramRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AuthTelegramRequest; +export declare function AuthTelegramRequestToJSON(json: any): AuthTelegramRequest; +export declare function AuthTelegramRequestToJSONTyped(value?: AuthTelegramRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=AuthTelegramRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/AuthTelegramRequest.d.ts.map b/dist/cjs/wallet/src/models/AuthTelegramRequest.d.ts.map new file mode 100644 index 0000000..cb58c22 --- /dev/null +++ b/dist/cjs/wallet/src/models/AuthTelegramRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"AuthTelegramRequest.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/AuthTelegramRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAGzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAQ7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS5H"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/AuthTelegramRequest.js b/dist/cjs/wallet/src/models/AuthTelegramRequest.js new file mode 100644 index 0000000..6278cdf --- /dev/null +++ b/dist/cjs/wallet/src/models/AuthTelegramRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfAuthTelegramRequest = instanceOfAuthTelegramRequest; +exports.AuthTelegramRequestFromJSON = AuthTelegramRequestFromJSON; +exports.AuthTelegramRequestFromJSONTyped = AuthTelegramRequestFromJSONTyped; +exports.AuthTelegramRequestToJSON = AuthTelegramRequestToJSON; +exports.AuthTelegramRequestToJSONTyped = AuthTelegramRequestToJSONTyped; +/** + * Check if a given object implements the AuthTelegramRequest interface. + */ +function instanceOfAuthTelegramRequest(value) { + if (!('initdata' in value) || value['initdata'] === undefined) + return false; + return true; +} +function AuthTelegramRequestFromJSON(json) { + return AuthTelegramRequestFromJSONTyped(json, false); +} +function AuthTelegramRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'initdata': json['initdata'], + }; +} +function AuthTelegramRequestToJSON(json) { + return AuthTelegramRequestToJSONTyped(json, false); +} +function AuthTelegramRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'initdata': value['initdata'], + }; +} +//# sourceMappingURL=AuthTelegramRequest.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/AuthTelegramRequest.js.map b/dist/cjs/wallet/src/models/AuthTelegramRequest.js.map new file mode 100644 index 0000000..6490ee1 --- /dev/null +++ b/dist/cjs/wallet/src/models/AuthTelegramRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"AuthTelegramRequest.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/AuthTelegramRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,sEAGC;AAED,kEAEC;AAED,4EAQC;AAED,8DAEC;AAED,wEASC;AAnCD;;GAEG;AACH,SAAgB,6BAA6B,CAAC,KAAa;IACvD,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;KAC/B,CAAC;AACN,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,KAAkC,EAAE,sBAA+B,KAAK;IACnH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;KAChC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Balance.d.ts b/dist/cjs/wallet/src/models/Balance.d.ts new file mode 100644 index 0000000..72097ce --- /dev/null +++ b/dist/cjs/wallet/src/models/Balance.d.ts @@ -0,0 +1,47 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Coin } from './Coin'; +import type { Currency } from './Currency'; +/** + * + * @export + * @interface Balance + */ +export interface Balance { + /** + * + * @type {Currency} + * @memberof Balance + */ + locked: Currency; + /** + * + * @type {Coin} + * @memberof Balance + */ + coin: Coin; + /** + * + * @type {Currency} + * @memberof Balance + */ + balance: Currency; +} +/** + * Check if a given object implements the Balance interface. + */ +export declare function instanceOfBalance(value: object): value is Balance; +export declare function BalanceFromJSON(json: any): Balance; +export declare function BalanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): Balance; +export declare function BalanceToJSON(json: any): Balance; +export declare function BalanceToJSONTyped(value?: Balance | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=Balance.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Balance.d.ts.map b/dist/cjs/wallet/src/models/Balance.d.ts.map new file mode 100644 index 0000000..e7f4d86 --- /dev/null +++ b/dist/cjs/wallet/src/models/Balance.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Balance.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/Balance.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAOnC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQ3C;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,MAAM,EAAE,QAAQ,CAAC;IACjB;;;;OAIG;IACH,IAAI,EAAE,IAAI,CAAC;IACX;;;;OAIG;IACH,OAAO,EAAE,QAAQ,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,OAAO,CAKjE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAElD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,OAAO,CAUrF;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAEhD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWpG"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Balance.js b/dist/cjs/wallet/src/models/Balance.js new file mode 100644 index 0000000..5557f9a --- /dev/null +++ b/dist/cjs/wallet/src/models/Balance.js @@ -0,0 +1,61 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfBalance = instanceOfBalance; +exports.BalanceFromJSON = BalanceFromJSON; +exports.BalanceFromJSONTyped = BalanceFromJSONTyped; +exports.BalanceToJSON = BalanceToJSON; +exports.BalanceToJSONTyped = BalanceToJSONTyped; +const Coin_1 = require("./Coin"); +const Currency_1 = require("./Currency"); +/** + * Check if a given object implements the Balance interface. + */ +function instanceOfBalance(value) { + if (!('locked' in value) || value['locked'] === undefined) + return false; + if (!('coin' in value) || value['coin'] === undefined) + return false; + if (!('balance' in value) || value['balance'] === undefined) + return false; + return true; +} +function BalanceFromJSON(json) { + return BalanceFromJSONTyped(json, false); +} +function BalanceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'locked': (0, Currency_1.CurrencyFromJSON)(json['locked']), + 'coin': (0, Coin_1.CoinFromJSON)(json['coin']), + 'balance': (0, Currency_1.CurrencyFromJSON)(json['balance']), + }; +} +function BalanceToJSON(json) { + return BalanceToJSONTyped(json, false); +} +function BalanceToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'locked': (0, Currency_1.CurrencyToJSON)(value['locked']), + 'coin': (0, Coin_1.CoinToJSON)(value['coin']), + 'balance': (0, Currency_1.CurrencyToJSON)(value['balance']), + }; +} +//# sourceMappingURL=Balance.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Balance.js.map b/dist/cjs/wallet/src/models/Balance.js.map new file mode 100644 index 0000000..f3bdeec --- /dev/null +++ b/dist/cjs/wallet/src/models/Balance.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Balance.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/Balance.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA+CH,8CAKC;AAED,0CAEC;AAED,oDAUC;AAED,sCAEC;AAED,gDAWC;AAjFD,iCAKgB;AAEhB,yCAKoB;AA4BpB;;GAEG;AACH,SAAgB,iBAAiB,CAAC,KAAa;IAC3C,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAA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ts b/dist/cjs/wallet/src/models/BankInfo.d.ts new file mode 100644 index 0000000..6533996 --- /dev/null +++ b/dist/cjs/wallet/src/models/BankInfo.d.ts @@ -0,0 +1,45 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface BankInfo + */ +export interface BankInfo { + /** + * Bank name + * @type {string} + * @memberof BankInfo + */ + bankName: string; + /** + * Card number + * @type {string} + * @memberof BankInfo + */ + cardNumber: string; + /** + * IBAN + * @type {string} + * @memberof BankInfo + */ + iban: string; +} +/** + * Check if a given object implements the BankInfo interface. + */ +export declare function instanceOfBankInfo(value: object): value is BankInfo; +export declare function BankInfoFromJSON(json: any): BankInfo; +export declare function BankInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BankInfo; +export declare function BankInfoToJSON(json: any): BankInfo; +export declare function BankInfoToJSONTyped(value?: BankInfo | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=BankInfo.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/BankInfo.d.ts.map b/dist/cjs/wallet/src/models/BankInfo.d.ts.map new file mode 100644 index 0000000..cc6426c --- /dev/null +++ b/dist/cjs/wallet/src/models/BankInfo.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"BankInfo.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/BankInfo.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,QAAQ,CAKnE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAEpD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,QAAQ,CAUvF;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAElD;AAED,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWtG"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/BankInfo.js b/dist/cjs/wallet/src/models/BankInfo.js new file mode 100644 index 0000000..6a8dc95 --- /dev/null +++ b/dist/cjs/wallet/src/models/BankInfo.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfBankInfo = instanceOfBankInfo; +exports.BankInfoFromJSON = BankInfoFromJSON; +exports.BankInfoFromJSONTyped = BankInfoFromJSONTyped; +exports.BankInfoToJSON = BankInfoToJSON; +exports.BankInfoToJSONTyped = BankInfoToJSONTyped; +/** + * Check if a given object implements the BankInfo interface. + */ +function instanceOfBankInfo(value) { + if (!('bankName' in value) || value['bankName'] === undefined) + return false; + if (!('cardNumber' in value) || value['cardNumber'] === undefined) + return false; + if (!('iban' in value) || value['iban'] === undefined) + return false; + return true; +} +function BankInfoFromJSON(json) { + return BankInfoFromJSONTyped(json, false); +} +function BankInfoFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'bankName': json['bankName'], + 'cardNumber': json['cardNumber'], + 'iban': json['iban'], + }; +} +function BankInfoToJSON(json) { + return BankInfoToJSONTyped(json, false); +} +function BankInfoToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'bankName': value['bankName'], + 'cardNumber': value['cardNumber'], + 'iban': value['iban'], + }; +} +//# sourceMappingURL=BankInfo.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/BankInfo.js.map b/dist/cjs/wallet/src/models/BankInfo.js.map new file mode 100644 index 0000000..7d5c963 --- /dev/null +++ b/dist/cjs/wallet/src/models/BankInfo.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BankInfo.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/BankInfo.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,gDAKC;AAED,4CAEC;AAED,sDAUC;AAED,wCAEC;AAED,kDAWC;AAzCD;;GAEG;AACH,SAAgB,kBAAkB,CAAC,KAAa;IAC5C,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChF,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,gBAAgB,CAAC,IAAS;IACtC,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS,EAAE,mBAA4B;IACzE,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;QAC5B,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;QAChC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;KACvB,CAAC;AACN,CAAC;AAED,SAAgB,cAAc,CAAC,IAAS;IACpC,OAAO,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5C,CAAC;AAED,SAAgB,mBAAmB,CAAC,KAAuB,EAAE,sBAA+B,KAAK;IAC7F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;QAC7B,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;KACxB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/BulletContent.d.ts b/dist/cjs/wallet/src/models/BulletContent.d.ts new file mode 100644 index 0000000..b1db34e --- /dev/null +++ b/dist/cjs/wallet/src/models/BulletContent.d.ts @@ -0,0 +1,45 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface BulletContent + */ +export interface BulletContent { + /** + * + * @type {string} + * @memberof BulletContent + */ + title: string; + /** + * + * @type {string} + * @memberof BulletContent + */ + text: string; + /** + * + * @type {Array} + * @memberof BulletContent + */ + bullets: Array; +} +/** + * Check if a given object implements the BulletContent interface. + */ +export declare function instanceOfBulletContent(value: object): value is BulletContent; +export declare function BulletContentFromJSON(json: any): BulletContent; +export declare function BulletContentFromJSONTyped(json: any, ignoreDiscriminator: boolean): BulletContent; +export declare function BulletContentToJSON(json: any): BulletContent; +export declare function BulletContentToJSONTyped(value?: BulletContent | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=BulletContent.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/BulletContent.d.ts.map b/dist/cjs/wallet/src/models/BulletContent.d.ts.map new file mode 100644 index 0000000..d86b8b7 --- /dev/null +++ b/dist/cjs/wallet/src/models/BulletContent.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"BulletContent.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/BulletContent.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAK7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAUjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWhH"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/BulletContent.js b/dist/cjs/wallet/src/models/BulletContent.js new file mode 100644 index 0000000..8753f71 --- /dev/null +++ b/dist/cjs/wallet/src/models/BulletContent.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfBulletContent = instanceOfBulletContent; +exports.BulletContentFromJSON = BulletContentFromJSON; +exports.BulletContentFromJSONTyped = BulletContentFromJSONTyped; +exports.BulletContentToJSON = BulletContentToJSON; +exports.BulletContentToJSONTyped = BulletContentToJSONTyped; +/** + * Check if a given object implements the BulletContent interface. + */ +function instanceOfBulletContent(value) { + if (!('title' in value) || value['title'] === undefined) + return false; + if (!('text' in value) || value['text'] === undefined) + return false; + if (!('bullets' in value) || value['bullets'] === undefined) + return false; + return true; +} +function BulletContentFromJSON(json) { + return BulletContentFromJSONTyped(json, false); +} +function BulletContentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'title': json['title'], + 'text': json['text'], + 'bullets': json['bullets'], + }; +} +function BulletContentToJSON(json) { + return BulletContentToJSONTyped(json, false); +} +function BulletContentToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'title': value['title'], + 'text': value['text'], + 'bullets': value['bullets'], + }; +} +//# sourceMappingURL=BulletContent.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/BulletContent.js.map b/dist/cjs/wallet/src/models/BulletContent.js.map new file mode 100644 index 0000000..e1fcd38 --- /dev/null +++ b/dist/cjs/wallet/src/models/BulletContent.js.map @@ -0,0 +1 @@ +{"version":3,"file":"BulletContent.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/BulletContent.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,0DAKC;AAED,sDAEC;AAED,gEAUC;AAED,kDAEC;AAED,4DAWC;AAzCD;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS,EAAE,mBAA4B;IAC9E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QACtB,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,KAA4B,EAAE,sBAA+B,KAAK;IACvG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Coin.d.ts b/dist/cjs/wallet/src/models/Coin.d.ts new file mode 100644 index 0000000..fba8cb8 --- /dev/null +++ b/dist/cjs/wallet/src/models/Coin.d.ts @@ -0,0 +1,75 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { BulletContent } from './BulletContent'; +import type { CoinConfig } from './CoinConfig'; +import type { Symbol } from './Symbol'; +import type { Network } from './Network'; +/** + * + * @export + * @interface Coin + */ +export interface Coin { + /** + * + * @type {CoinConfig} + * @memberof Coin + */ + config: CoinConfig; + /** + * + * @type {Symbol} + * @memberof Coin + */ + symbol: Symbol; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Coin + */ + name: { + [key: string]: string | undefined; + }; + /** + * + * @type {string} + * @memberof Coin + */ + logoUri: string; + /** + * + * @type {Array} + * @memberof Coin + */ + depositableNetworks: Array; + /** + * + * @type {Array} + * @memberof Coin + */ + withdrawableNetworks: Array; + /** + * + * @type {BulletContent} + * @memberof Coin + */ + content: BulletContent; +} +/** + * Check if a given object implements the Coin interface. + */ +export declare function instanceOfCoin(value: object): value is Coin; +export declare function CoinFromJSON(json: any): Coin; +export declare function CoinFromJSONTyped(json: any, ignoreDiscriminator: boolean): Coin; +export declare function CoinToJSON(json: any): Coin; +export declare function CoinToJSONTyped(value?: Coin | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=Coin.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Coin.d.ts.map b/dist/cjs/wallet/src/models/Coin.d.ts.map new file mode 100644 index 0000000..3db5232 --- /dev/null +++ b/dist/cjs/wallet/src/models/Coin.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Coin.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/Coin.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAOrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAO/C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAOvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQzC;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACjB;;;;OAIG;IACH,MAAM,EAAE,UAAU,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC7C;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,mBAAmB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACpC;;;;OAIG;IACH,oBAAoB,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACrC;;;;OAIG;IACH,OAAO,EAAE,aAAa,CAAC;CAC1B;AAID;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,IAAI,CAS3D;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAE5C;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,IAAI,CAc/E;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAE1C;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAe9F"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Coin.js b/dist/cjs/wallet/src/models/Coin.js new file mode 100644 index 0000000..5825cf1 --- /dev/null +++ b/dist/cjs/wallet/src/models/Coin.js @@ -0,0 +1,79 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCoin = instanceOfCoin; +exports.CoinFromJSON = CoinFromJSON; +exports.CoinFromJSONTyped = CoinFromJSONTyped; +exports.CoinToJSON = CoinToJSON; +exports.CoinToJSONTyped = CoinToJSONTyped; +const BulletContent_1 = require("./BulletContent"); +const CoinConfig_1 = require("./CoinConfig"); +const Symbol_1 = require("./Symbol"); +const Network_1 = require("./Network"); +/** + * Check if a given object implements the Coin interface. + */ +function instanceOfCoin(value) { + if (!('config' in value) || value['config'] === undefined) + return false; + if (!('symbol' in value) || value['symbol'] === undefined) + return false; + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('logoUri' in value) || value['logoUri'] === undefined) + return false; + if (!('depositableNetworks' in value) || value['depositableNetworks'] === undefined) + return false; + if (!('withdrawableNetworks' in value) || value['withdrawableNetworks'] === undefined) + return false; + if (!('content' in value) || value['content'] === undefined) + return false; + return true; +} +function CoinFromJSON(json) { + return CoinFromJSONTyped(json, false); +} +function CoinFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'config': (0, CoinConfig_1.CoinConfigFromJSON)(json['config']), + 'symbol': (0, Symbol_1.SymbolFromJSON)(json['symbol']), + 'name': json['name'], + 'logoUri': json['logoUri'], + 'depositableNetworks': (json['depositableNetworks'].map(Network_1.NetworkFromJSON)), + 'withdrawableNetworks': (json['withdrawableNetworks'].map(Network_1.NetworkFromJSON)), + 'content': (0, BulletContent_1.BulletContentFromJSON)(json['content']), + }; +} +function CoinToJSON(json) { + return CoinToJSONTyped(json, false); +} +function CoinToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'config': (0, CoinConfig_1.CoinConfigToJSON)(value['config']), + 'symbol': (0, Symbol_1.SymbolToJSON)(value['symbol']), + 'name': value['name'], + 'logoUri': value['logoUri'], + 'depositableNetworks': (value['depositableNetworks'].map(Network_1.NetworkToJSON)), + 'withdrawableNetworks': (value['withdrawableNetworks'].map(Network_1.NetworkToJSON)), + 'content': (0, BulletContent_1.BulletContentToJSON)(value['content']), + }; +} +//# sourceMappingURL=Coin.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Coin.js.map b/dist/cjs/wallet/src/models/Coin.js.map new file mode 100644 index 0000000..50d6df6 --- /dev/null +++ b/dist/cjs/wallet/src/models/Coin.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Coin.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/Coin.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAuFH,wCASC;AAED,oCAEC;AAED,8CAcC;AAED,gCAEC;AAED,0CAeC;AArID,mDAKyB;AAEzB,6CAKsB;AAEtB,qCAKkB;AAElB,uCAKmB;AAsDnB;;GAEG;AACH,SAAgB,cAAc,CAAC,KAAa;IACxC,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,qBAAqB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,qBAAqB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClG,IAAI,CAAC,CAAC,sBAAsB,IAA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A,6BAAgB,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QAC3C,QAAQ,EAAE,IAAA,qBAAY,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACvC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,qBAAqB,EAAE,CAAE,KAAK,CAAC,qBAAqB,CAAgB,CAAC,GAAG,CAAC,uBAAa,CAAC,CAAC;QACxF,sBAAsB,EAAE,CAAE,KAAK,CAAC,sBAAsB,CAAgB,CAAC,GAAG,CAAC,uBAAa,CAAC,CAAC;QAC1F,SAAS,EAAE,IAAA,mCAAmB,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;KACnD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/CoinConfig.d.ts b/dist/cjs/wallet/src/models/CoinConfig.d.ts new file mode 100644 index 0000000..9d6769f --- /dev/null +++ b/dist/cjs/wallet/src/models/CoinConfig.d.ts @@ -0,0 +1,55 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CoinConfig + */ +export interface CoinConfig { + /** + * + * @type {boolean} + * @memberof CoinConfig + */ + isTradeable: boolean; + /** + * Map of network to amount + * @type {{ [key: string]: string | undefined; }} + * @memberof CoinConfig + */ + withdrawFees: { + [key: string]: string | undefined; + }; + /** + * Map of network to amount + * @type {{ [key: string]: string | undefined; }} + * @memberof CoinConfig + */ + minWithdrawal: { + [key: string]: string | undefined; + }; + /** + * + * @type {boolean} + * @memberof CoinConfig + */ + needsMemo: boolean; +} +/** + * Check if a given object implements the CoinConfig interface. + */ +export declare function instanceOfCoinConfig(value: object): value is CoinConfig; +export declare function CoinConfigFromJSON(json: any): CoinConfig; +export declare function CoinConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoinConfig; +export declare function CoinConfigToJSON(json: any): CoinConfig; +export declare function CoinConfigToJSONTyped(value?: CoinConfig | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=CoinConfig.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/CoinConfig.d.ts.map b/dist/cjs/wallet/src/models/CoinConfig.d.ts.map new file mode 100644 index 0000000..fa56530 --- /dev/null +++ b/dist/cjs/wallet/src/models/CoinConfig.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CoinConfig.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/CoinConfig.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;;;OAIG;IACH,YAAY,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACrD;;;;OAIG;IACH,aAAa,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IACtD;;;;OAIG;IACH,SAAS,EAAE,OAAO,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAMvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAW3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAY1G"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/CoinConfig.js b/dist/cjs/wallet/src/models/CoinConfig.js new file mode 100644 index 0000000..cc5054f --- /dev/null +++ b/dist/cjs/wallet/src/models/CoinConfig.js @@ -0,0 +1,63 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCoinConfig = instanceOfCoinConfig; +exports.CoinConfigFromJSON = CoinConfigFromJSON; +exports.CoinConfigFromJSONTyped = CoinConfigFromJSONTyped; +exports.CoinConfigToJSON = CoinConfigToJSON; +exports.CoinConfigToJSONTyped = CoinConfigToJSONTyped; +/** + * Check if a given object implements the CoinConfig interface. + */ +function instanceOfCoinConfig(value) { + if (!('isTradeable' in value) || value['isTradeable'] === undefined) + return false; + if (!('withdrawFees' in value) || value['withdrawFees'] === undefined) + return false; + if (!('minWithdrawal' in value) || value['minWithdrawal'] === undefined) + return false; + if (!('needsMemo' in value) || value['needsMemo'] === undefined) + return false; + return true; +} +function CoinConfigFromJSON(json) { + return CoinConfigFromJSONTyped(json, false); +} +function CoinConfigFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'isTradeable': json['isTradeable'], + 'withdrawFees': json['withdrawFees'], + 'minWithdrawal': json['minWithdrawal'], + 'needsMemo': json['needsMemo'], + }; +} +function CoinConfigToJSON(json) { + return CoinConfigToJSONTyped(json, false); +} +function CoinConfigToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'isTradeable': value['isTradeable'], + 'withdrawFees': value['withdrawFees'], + 'minWithdrawal': value['minWithdrawal'], + 'needsMemo': value['needsMemo'], + }; +} +//# sourceMappingURL=CoinConfig.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/CoinConfig.js.map b/dist/cjs/wallet/src/models/CoinConfig.js.map new file mode 100644 index 0000000..6ee47fc --- /dev/null +++ b/dist/cjs/wallet/src/models/CoinConfig.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CoinConfig.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/CoinConfig.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAsCH,oDAMC;AAED,gDAEC;AAED,0DAWC;AAED,4CAEC;AAED,sDAYC;AA5CD;;GAEG;AACH,SAAgB,oBAAoB,CAAC,KAAa;IAC9C,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClF,IAAI,CAAC,CAAC,cAAc,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,cAAc,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpF,IAAI,CAAC,CAAC,eAAe,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,eAAe,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtF,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS,EAAE,mBAA4B;IAC3E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC;QAClC,cAAc,EAAE,IAAI,CAAC,cAAc,CAAC;QACpC,eAAe,EAAE,IAAI,CAAC,eAAe,CAAC;QACtC,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;KACjC,CAAC;AACN,CAAC;AAED,SAAgB,gBAAgB,CAAC,IAAS;IACtC,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,qBAAqB,CAAC,KAAyB,EAAE,sBAA+B,KAAK;IACjG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,cAAc,EAAE,KAAK,CAAC,cAAc,CAAC;QACrC,eAAe,EAAE,KAAK,CAAC,eAAe,CAAC;QACvC,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;KAClC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/CoinResponse.d.ts b/dist/cjs/wallet/src/models/CoinResponse.d.ts new file mode 100644 index 0000000..6d10907 --- /dev/null +++ b/dist/cjs/wallet/src/models/CoinResponse.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Coin } from './Coin'; +/** + * + * @export + * @interface CoinResponse + */ +export interface CoinResponse { + /** + * + * @type {Array} + * @memberof CoinResponse + */ + data: Array; +} +/** + * Check if a given object implements the CoinResponse interface. + */ +export declare function instanceOfCoinResponse(value: object): value is CoinResponse; +export declare function CoinResponseFromJSON(json: any): CoinResponse; +export declare function CoinResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CoinResponse; +export declare function CoinResponseToJSON(json: any): CoinResponse; +export declare function CoinResponseToJSONTyped(value?: CoinResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=CoinResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/CoinResponse.d.ts.map b/dist/cjs/wallet/src/models/CoinResponse.d.ts.map new file mode 100644 index 0000000..bcf7ad0 --- /dev/null +++ b/dist/cjs/wallet/src/models/CoinResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CoinResponse.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/CoinResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAQnC;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAG3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAQ/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS9G"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/CoinResponse.js b/dist/cjs/wallet/src/models/CoinResponse.js new file mode 100644 index 0000000..5e88f46 --- /dev/null +++ b/dist/cjs/wallet/src/models/CoinResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCoinResponse = instanceOfCoinResponse; +exports.CoinResponseFromJSON = CoinResponseFromJSON; +exports.CoinResponseFromJSONTyped = CoinResponseFromJSONTyped; +exports.CoinResponseToJSON = CoinResponseToJSON; +exports.CoinResponseToJSONTyped = CoinResponseToJSONTyped; +const Coin_1 = require("./Coin"); +/** + * Check if a given object implements the CoinResponse interface. + */ +function instanceOfCoinResponse(value) { + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function CoinResponseFromJSON(json) { + return CoinResponseFromJSONTyped(json, false); +} +function CoinResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': (json['data'].map(Coin_1.CoinFromJSON)), + }; +} +function CoinResponseToJSON(json) { + return CoinResponseToJSONTyped(json, false); +} +function CoinResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'data': (value['data'].map(Coin_1.CoinToJSON)), + }; +} +//# sourceMappingURL=CoinResponse.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/CoinResponse.js.map b/dist/cjs/wallet/src/models/CoinResponse.js.map new file mode 100644 index 0000000..edcc11f --- /dev/null +++ b/dist/cjs/wallet/src/models/CoinResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CoinResponse.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/CoinResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,wDAGC;AAED,oDAEC;AAED,8DAQC;AAED,gDAEC;AAED,0DASC;AAxDD,iCAKgB;AAgBhB;;GAEG;AACH,SAAgB,sBAAsB,CAAC,KAAa;IAChD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS,EAAE,mBAA4B;IAC7E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,mBAAY,CAAC,CAAC;KAC3D,CAAC;AACN,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,KAA2B,EAAE,sBAA+B,KAAK;IACrG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,iBAAU,CAAC,CAAC;KAC1D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/CreateChildUserRequest.d.ts b/dist/cjs/wallet/src/models/CreateChildUserRequest.d.ts new file mode 100644 index 0000000..8801606 --- /dev/null +++ b/dist/cjs/wallet/src/models/CreateChildUserRequest.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface CreateChildUserRequest + */ +export interface CreateChildUserRequest { + /** + * the username of the child user + * @type {string} + * @memberof CreateChildUserRequest + */ + username: string; +} +/** + * Check if a given object implements the CreateChildUserRequest interface. + */ +export declare function instanceOfCreateChildUserRequest(value: object): value is CreateChildUserRequest; +export declare function CreateChildUserRequestFromJSON(json: any): CreateChildUserRequest; +export declare function CreateChildUserRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateChildUserRequest; +export declare function CreateChildUserRequestToJSON(json: any): CreateChildUserRequest; +export declare function CreateChildUserRequestToJSONTyped(value?: CreateChildUserRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=CreateChildUserRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/CreateChildUserRequest.d.ts.map b/dist/cjs/wallet/src/models/CreateChildUserRequest.d.ts.map new file mode 100644 index 0000000..4dad7c2 --- /dev/null +++ b/dist/cjs/wallet/src/models/CreateChildUserRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateChildUserRequest.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/CreateChildUserRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,sBAAsB,CAG/F;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAEhF;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,sBAAsB,CAQnH;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAE9E;AAED,wBAAgB,iCAAiC,CAAC,KAAK,CAAC,EAAE,sBAAsB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASlI"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/CreateChildUserRequest.js b/dist/cjs/wallet/src/models/CreateChildUserRequest.js new file mode 100644 index 0000000..b3b5b4c --- /dev/null +++ b/dist/cjs/wallet/src/models/CreateChildUserRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCreateChildUserRequest = instanceOfCreateChildUserRequest; +exports.CreateChildUserRequestFromJSON = CreateChildUserRequestFromJSON; +exports.CreateChildUserRequestFromJSONTyped = CreateChildUserRequestFromJSONTyped; +exports.CreateChildUserRequestToJSON = CreateChildUserRequestToJSON; +exports.CreateChildUserRequestToJSONTyped = CreateChildUserRequestToJSONTyped; +/** + * Check if a given object implements the CreateChildUserRequest interface. + */ +function instanceOfCreateChildUserRequest(value) { + if (!('username' in value) || value['username'] === undefined) + return false; + return true; +} +function CreateChildUserRequestFromJSON(json) { + return CreateChildUserRequestFromJSONTyped(json, false); +} +function CreateChildUserRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'username': json['username'], + }; +} +function CreateChildUserRequestToJSON(json) { + return CreateChildUserRequestToJSONTyped(json, false); +} +function CreateChildUserRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'username': value['username'], + }; +} +//# sourceMappingURL=CreateChildUserRequest.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/CreateChildUserRequest.js.map b/dist/cjs/wallet/src/models/CreateChildUserRequest.js.map new file mode 100644 index 0000000..82d5ac4 --- /dev/null +++ b/dist/cjs/wallet/src/models/CreateChildUserRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CreateChildUserRequest.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/CreateChildUserRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,4EAGC;AAED,wEAEC;AAED,kFAQC;AAED,oEAEC;AAED,8EASC;AAnCD;;GAEG;AACH,SAAgB,gCAAgC,CAAC,KAAa;IAC1D,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS;IACpD,OAAO,mCAAmC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5D,CAAC;AAED,SAAgB,mCAAmC,CAAC,IAAS,EAAE,mBAA4B;IACvF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;KAC/B,CAAC;AACN,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,SAAgB,iCAAiC,CAAC,KAAqC,EAAE,sBAA+B,KAAK;IACzH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;KAChC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Currency.d.ts b/dist/cjs/wallet/src/models/Currency.d.ts new file mode 100644 index 0000000..91b95fd --- /dev/null +++ b/dist/cjs/wallet/src/models/Currency.d.ts @@ -0,0 +1,35 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Currency + */ +export interface Currency { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Currency + */ + values?: { + [key: string]: string | undefined; + }; +} +/** + * Check if a given object implements the Currency interface. + */ +export declare function instanceOfCurrency(value: object): value is Currency; +export declare function CurrencyFromJSON(json: any): Currency; +export declare function CurrencyFromJSONTyped(json: any, ignoreDiscriminator: boolean): Currency; +export declare function CurrencyToJSON(json: any): Currency; +export declare function CurrencyToJSONTyped(value?: Currency | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=Currency.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Currency.d.ts.map b/dist/cjs/wallet/src/models/Currency.d.ts.map new file mode 100644 index 0000000..3151689 --- /dev/null +++ b/dist/cjs/wallet/src/models/Currency.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Currency.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/Currency.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CACnD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,QAAQ,CAEnE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAEpD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,QAAQ,CAQvF;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAElD;AAED,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAStG"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Currency.js b/dist/cjs/wallet/src/models/Currency.js new file mode 100644 index 0000000..20dc9a4 --- /dev/null +++ b/dist/cjs/wallet/src/models/Currency.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfCurrency = instanceOfCurrency; +exports.CurrencyFromJSON = CurrencyFromJSON; +exports.CurrencyFromJSONTyped = CurrencyFromJSONTyped; +exports.CurrencyToJSON = CurrencyToJSON; +exports.CurrencyToJSONTyped = CurrencyToJSONTyped; +/** + * Check if a given object implements the Currency interface. + */ +function instanceOfCurrency(value) { + return true; +} +function CurrencyFromJSON(json) { + return CurrencyFromJSONTyped(json, false); +} +function CurrencyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'values': json['values'] == null ? undefined : json['values'], + }; +} +function CurrencyToJSON(json) { + return CurrencyToJSONTyped(json, false); +} +function CurrencyToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'values': value['values'], + }; +} +//# sourceMappingURL=Currency.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Currency.js.map b/dist/cjs/wallet/src/models/Currency.js.map new file mode 100644 index 0000000..7caf17b --- /dev/null +++ b/dist/cjs/wallet/src/models/Currency.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Currency.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/Currency.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,gDAEC;AAED,4CAEC;AAED,sDAQC;AAED,wCAEC;AAED,kDASC;AAlCD;;GAEG;AACH,SAAgB,kBAAkB,CAAC,KAAa;IAC5C,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,gBAAgB,CAAC,IAAS;IACtC,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS,EAAE,mBAA4B;IACzE,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,cAAc,CAAC,IAAS;IACpC,OAAO,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5C,CAAC;AAED,SAAgB,mBAAmB,CAAC,KAAuB,EAAE,sBAA+B,KAAK;IAC7F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/DepositResponse.d.ts b/dist/cjs/wallet/src/models/DepositResponse.d.ts new file mode 100644 index 0000000..f0d6877 --- /dev/null +++ b/dist/cjs/wallet/src/models/DepositResponse.d.ts @@ -0,0 +1,46 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Network } from './Network'; +/** + * + * @export + * @interface DepositResponse + */ +export interface DepositResponse { + /** + * Deposit address + * @type {string} + * @memberof DepositResponse + */ + address: string; + /** + * + * @type {Network} + * @memberof DepositResponse + */ + network: Network; + /** + * Coin symbol + * @type {string} + * @memberof DepositResponse + */ + symbol: string; +} +/** + * Check if a given object implements the DepositResponse interface. + */ +export declare function instanceOfDepositResponse(value: object): value is DepositResponse; +export declare function DepositResponseFromJSON(json: any): DepositResponse; +export declare function DepositResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DepositResponse; +export declare function DepositResponseToJSON(json: any): DepositResponse; +export declare function DepositResponseToJSONTyped(value?: DepositResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=DepositResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/DepositResponse.d.ts.map b/dist/cjs/wallet/src/models/DepositResponse.d.ts.map new file mode 100644 index 0000000..2ba8236 --- /dev/null +++ b/dist/cjs/wallet/src/models/DepositResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"DepositResponse.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/DepositResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQzC;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAKjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAUrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWpH"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/DepositResponse.js b/dist/cjs/wallet/src/models/DepositResponse.js new file mode 100644 index 0000000..4c0e216 --- /dev/null +++ b/dist/cjs/wallet/src/models/DepositResponse.js @@ -0,0 +1,60 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDepositResponse = instanceOfDepositResponse; +exports.DepositResponseFromJSON = DepositResponseFromJSON; +exports.DepositResponseFromJSONTyped = DepositResponseFromJSONTyped; +exports.DepositResponseToJSON = DepositResponseToJSON; +exports.DepositResponseToJSONTyped = DepositResponseToJSONTyped; +const Network_1 = require("./Network"); +/** + * Check if a given object implements the DepositResponse interface. + */ +function instanceOfDepositResponse(value) { + if (!('address' in value) || value['address'] === undefined) + return false; + if (!('network' in value) || value['network'] === undefined) + return false; + if (!('symbol' in value) || value['symbol'] === undefined) + return false; + return true; +} +function DepositResponseFromJSON(json) { + return DepositResponseFromJSONTyped(json, false); +} +function DepositResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'], + 'network': (0, Network_1.NetworkFromJSON)(json['network']), + 'symbol': json['symbol'], + }; +} +function DepositResponseToJSON(json) { + return DepositResponseToJSONTyped(json, false); +} +function DepositResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'network': (0, Network_1.NetworkToJSON)(value['network']), + 'symbol': value['symbol'], + }; +} +//# sourceMappingURL=DepositResponse.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/DepositResponse.js.map b/dist/cjs/wallet/src/models/DepositResponse.js.map new file mode 100644 index 0000000..3b4f0a6 --- /dev/null +++ b/dist/cjs/wallet/src/models/DepositResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DepositResponse.js","sourceRoot":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QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,SAAS,EAAE,IAAA,uBAAa,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAC1C,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/DetailedLoanToValueOptions.d.ts b/dist/cjs/wallet/src/models/DetailedLoanToValueOptions.d.ts new file mode 100644 index 0000000..1a5d3be --- /dev/null +++ b/dist/cjs/wallet/src/models/DetailedLoanToValueOptions.d.ts @@ -0,0 +1,41 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface DetailedLoanToValueOptions + */ +export interface DetailedLoanToValueOptions { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof DetailedLoanToValueOptions + */ + name: { + [key: string]: string | undefined; + }; + /** + * The loan to value of the vault. + * @type {string} + * @memberof DetailedLoanToValueOptions + */ + value: string; +} +/** + * Check if a given object implements the DetailedLoanToValueOptions interface. + */ +export declare function instanceOfDetailedLoanToValueOptions(value: object): value is DetailedLoanToValueOptions; +export declare function DetailedLoanToValueOptionsFromJSON(json: any): DetailedLoanToValueOptions; +export declare function DetailedLoanToValueOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): DetailedLoanToValueOptions; +export declare function DetailedLoanToValueOptionsToJSON(json: any): DetailedLoanToValueOptions; +export declare function DetailedLoanToValueOptionsToJSONTyped(value?: DetailedLoanToValueOptions | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=DetailedLoanToValueOptions.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/DetailedLoanToValueOptions.d.ts.map b/dist/cjs/wallet/src/models/DetailedLoanToValueOptions.d.ts.map new file mode 100644 index 0000000..d586224 --- /dev/null +++ b/dist/cjs/wallet/src/models/DetailedLoanToValueOptions.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"DetailedLoanToValueOptions.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/DetailedLoanToValueOptions.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC7C;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,0BAA0B,CAIvG;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAExF;AAED,wBAAgB,uCAAuC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,0BAA0B,CAS3H;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,GAAG,0BAA0B,CAEtF;AAED,wBAAgB,qCAAqC,CAAC,KAAK,CAAC,EAAE,0BAA0B,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU1I"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/DetailedLoanToValueOptions.js b/dist/cjs/wallet/src/models/DetailedLoanToValueOptions.js new file mode 100644 index 0000000..04da449 --- /dev/null +++ b/dist/cjs/wallet/src/models/DetailedLoanToValueOptions.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfDetailedLoanToValueOptions = instanceOfDetailedLoanToValueOptions; +exports.DetailedLoanToValueOptionsFromJSON = DetailedLoanToValueOptionsFromJSON; +exports.DetailedLoanToValueOptionsFromJSONTyped = DetailedLoanToValueOptionsFromJSONTyped; +exports.DetailedLoanToValueOptionsToJSON = DetailedLoanToValueOptionsToJSON; +exports.DetailedLoanToValueOptionsToJSONTyped = DetailedLoanToValueOptionsToJSONTyped; +/** + * Check if a given object implements the DetailedLoanToValueOptions interface. + */ +function instanceOfDetailedLoanToValueOptions(value) { + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('value' in value) || value['value'] === undefined) + return false; + return true; +} +function DetailedLoanToValueOptionsFromJSON(json) { + return DetailedLoanToValueOptionsFromJSONTyped(json, false); +} +function DetailedLoanToValueOptionsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'], + 'value': json['value'], + }; +} +function DetailedLoanToValueOptionsToJSON(json) { + return DetailedLoanToValueOptionsToJSONTyped(json, false); +} +function DetailedLoanToValueOptionsToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'value': value['value'], + }; +} +//# sourceMappingURL=DetailedLoanToValueOptions.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/DetailedLoanToValueOptions.js.map b/dist/cjs/wallet/src/models/DetailedLoanToValueOptions.js.map new file mode 100644 index 0000000..64efd6c --- /dev/null +++ b/dist/cjs/wallet/src/models/DetailedLoanToValueOptions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DetailedLoanToValueOptions.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/DetailedLoanToValueOptions.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,oFAIC;AAED,gFAEC;AAED,0FASC;AAED,4EAEC;AAED,sFAUC;AAtCD;;GAEG;AACH,SAAgB,oCAAoC,CAAC,KAAa;IAC9D,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS;IACxD,OAAO,uCAAuC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChE,CAAC;AAED,SAAgB,uCAAuC,CAAC,IAAS,EAAE,mBAA4B;IAC3F,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;KACzB,CAAC;AACN,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS;IACtD,OAAO,qCAAqC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9D,CAAC;AAED,SAAgB,qCAAqC,CAAC,KAAyC,EAAE,sBAA+B,KAAK;IACjI,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;KAC1B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/EmailOtpSubmitRequest.d.ts b/dist/cjs/wallet/src/models/EmailOtpSubmitRequest.d.ts new file mode 100644 index 0000000..f6ad2ba --- /dev/null +++ b/dist/cjs/wallet/src/models/EmailOtpSubmitRequest.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface EmailOtpSubmitRequest + */ +export interface EmailOtpSubmitRequest { + /** + * OTP code + * @type {number} + * @memberof EmailOtpSubmitRequest + */ + code: number; +} +/** + * Check if a given object implements the EmailOtpSubmitRequest interface. + */ +export declare function instanceOfEmailOtpSubmitRequest(value: object): value is EmailOtpSubmitRequest; +export declare function EmailOtpSubmitRequestFromJSON(json: any): EmailOtpSubmitRequest; +export declare function EmailOtpSubmitRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailOtpSubmitRequest; +export declare function EmailOtpSubmitRequestToJSON(json: any): EmailOtpSubmitRequest; +export declare function EmailOtpSubmitRequestToJSONTyped(value?: EmailOtpSubmitRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=EmailOtpSubmitRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/EmailOtpSubmitRequest.d.ts.map b/dist/cjs/wallet/src/models/EmailOtpSubmitRequest.d.ts.map new file mode 100644 index 0000000..a10ffc2 --- /dev/null +++ b/dist/cjs/wallet/src/models/EmailOtpSubmitRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"EmailOtpSubmitRequest.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/EmailOtpSubmitRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAG7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAQjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAShI"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/EmailOtpSubmitRequest.js b/dist/cjs/wallet/src/models/EmailOtpSubmitRequest.js new file mode 100644 index 0000000..7318923 --- /dev/null +++ b/dist/cjs/wallet/src/models/EmailOtpSubmitRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfEmailOtpSubmitRequest = instanceOfEmailOtpSubmitRequest; +exports.EmailOtpSubmitRequestFromJSON = EmailOtpSubmitRequestFromJSON; +exports.EmailOtpSubmitRequestFromJSONTyped = EmailOtpSubmitRequestFromJSONTyped; +exports.EmailOtpSubmitRequestToJSON = EmailOtpSubmitRequestToJSON; +exports.EmailOtpSubmitRequestToJSONTyped = EmailOtpSubmitRequestToJSONTyped; +/** + * Check if a given object implements the EmailOtpSubmitRequest interface. + */ +function instanceOfEmailOtpSubmitRequest(value) { + if (!('code' in value) || value['code'] === undefined) + return false; + return true; +} +function EmailOtpSubmitRequestFromJSON(json) { + return EmailOtpSubmitRequestFromJSONTyped(json, false); +} +function EmailOtpSubmitRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'], + }; +} +function EmailOtpSubmitRequestToJSON(json) { + return EmailOtpSubmitRequestToJSONTyped(json, false); +} +function EmailOtpSubmitRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + }; +} +//# sourceMappingURL=EmailOtpSubmitRequest.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/EmailOtpSubmitRequest.js.map b/dist/cjs/wallet/src/models/EmailOtpSubmitRequest.js.map new file mode 100644 index 0000000..7d30f3e --- /dev/null +++ b/dist/cjs/wallet/src/models/EmailOtpSubmitRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"EmailOtpSubmitRequest.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/EmailOtpSubmitRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,0EAGC;AAED,sEAEC;AAED,gFAQC;AAED,kEAEC;AAED,4EASC;AAnCD;;GAEG;AACH,SAAgB,+BAA+B,CAAC,KAAa;IACzD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;KACvB,CAAC;AACN,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,KAAoC,EAAE,sBAA+B,KAAK;IACvH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;KACxB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/ErrorDetail.d.ts b/dist/cjs/wallet/src/models/ErrorDetail.d.ts new file mode 100644 index 0000000..8e1f81e --- /dev/null +++ b/dist/cjs/wallet/src/models/ErrorDetail.d.ts @@ -0,0 +1,39 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ErrorDetail + */ +export interface ErrorDetail { + /** + * User-friendly error message + * @type {string} + * @memberof ErrorDetail + */ + userMessage: string; + /** + * + * @type {Array} + * @memberof ErrorDetail + */ + solutions: Array; +} +/** + * Check if a given object implements the ErrorDetail interface. + */ +export declare function instanceOfErrorDetail(value: object): value is ErrorDetail; +export declare function ErrorDetailFromJSON(json: any): ErrorDetail; +export declare function ErrorDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorDetail; +export declare function ErrorDetailToJSON(json: any): ErrorDetail; +export declare function ErrorDetailToJSONTyped(value?: ErrorDetail | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=ErrorDetail.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/ErrorDetail.d.ts.map b/dist/cjs/wallet/src/models/ErrorDetail.d.ts.map new file mode 100644 index 0000000..d296713 --- /dev/null +++ b/dist/cjs/wallet/src/models/ErrorDetail.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ErrorDetail.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/ErrorDetail.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAIzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAS7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU5G"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/ErrorDetail.js b/dist/cjs/wallet/src/models/ErrorDetail.js new file mode 100644 index 0000000..9fe08f4 --- /dev/null +++ b/dist/cjs/wallet/src/models/ErrorDetail.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfErrorDetail = instanceOfErrorDetail; +exports.ErrorDetailFromJSON = ErrorDetailFromJSON; +exports.ErrorDetailFromJSONTyped = ErrorDetailFromJSONTyped; +exports.ErrorDetailToJSON = ErrorDetailToJSON; +exports.ErrorDetailToJSONTyped = ErrorDetailToJSONTyped; +/** + * Check if a given object implements the ErrorDetail interface. + */ +function instanceOfErrorDetail(value) { + if (!('userMessage' in value) || value['userMessage'] === undefined) + return false; + if (!('solutions' in value) || value['solutions'] === undefined) + return false; + return true; +} +function ErrorDetailFromJSON(json) { + return ErrorDetailFromJSONTyped(json, false); +} +function ErrorDetailFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'userMessage': json['userMessage'], + 'solutions': json['solutions'], + }; +} +function ErrorDetailToJSON(json) { + return ErrorDetailToJSONTyped(json, false); +} +function ErrorDetailToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'userMessage': value['userMessage'], + 'solutions': value['solutions'], + }; +} +//# sourceMappingURL=ErrorDetail.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/ErrorDetail.js.map b/dist/cjs/wallet/src/models/ErrorDetail.js.map new file mode 100644 index 0000000..31ffe36 --- /dev/null +++ b/dist/cjs/wallet/src/models/ErrorDetail.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ErrorDetail.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/ErrorDetail.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,sDAIC;AAED,kDAEC;AAED,4DASC;AAED,8CAEC;AAED,wDAUC;AAtCD;;GAEG;AACH,SAAgB,qBAAqB,CAAC,KAAa;IAC/C,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClF,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS,EAAE,mBAA4B;IAC5E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC;QAClC,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;KACjC,CAAC;AACN,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,KAA0B,EAAE,sBAA+B,KAAK;IACnG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;KAClC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/ExternalTransaction.d.ts b/dist/cjs/wallet/src/models/ExternalTransaction.d.ts new file mode 100644 index 0000000..3bdb029 --- /dev/null +++ b/dist/cjs/wallet/src/models/ExternalTransaction.d.ts @@ -0,0 +1,99 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { TransactionType } from './TransactionType'; +import type { Symbol } from './Symbol'; +import type { Currency } from './Currency'; +import type { Network } from './Network'; +import type { TransactionStatus } from './TransactionStatus'; +import type { Timestamp } from './Timestamp'; +/** + * + * @export + * @interface ExternalTransaction + */ +export interface ExternalTransaction { + /** + * Unique identifier of the transaction + * @type {number} + * @memberof ExternalTransaction + */ + id: number; + /** + * + * @type {Timestamp} + * @memberof ExternalTransaction + */ + time: Timestamp; + /** + * + * @type {TransactionType} + * @memberof ExternalTransaction + */ + type: TransactionType; + /** + * The hash of the transaction + * @type {string} + * @memberof ExternalTransaction + */ + hash: string; + /** + * The address from which the transaction originated + * @type {string} + * @memberof ExternalTransaction + */ + from: string; + /** + * The address to which the transaction is sent + * @type {string} + * @memberof ExternalTransaction + */ + to: string; + /** + * A comment associated with the transaction + * @type {string} + * @memberof ExternalTransaction + */ + comment: string | null; + /** + * + * @type {Currency} + * @memberof ExternalTransaction + */ + amount: Currency; + /** + * + * @type {Symbol} + * @memberof ExternalTransaction + */ + symbol: Symbol; + /** + * + * @type {Network} + * @memberof ExternalTransaction + */ + network: Network; + /** + * + * @type {TransactionStatus} + * @memberof ExternalTransaction + */ + status: TransactionStatus; +} +/** + * Check if a given object implements the ExternalTransaction interface. + */ +export declare function instanceOfExternalTransaction(value: object): value is ExternalTransaction; +export declare function ExternalTransactionFromJSON(json: any): ExternalTransaction; +export declare function ExternalTransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ExternalTransaction; +export declare function ExternalTransactionToJSON(json: any): ExternalTransaction; +export declare function ExternalTransactionToJSONTyped(value?: ExternalTransaction | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=ExternalTransaction.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/ExternalTransaction.d.ts.map b/dist/cjs/wallet/src/models/ExternalTransaction.d.ts.map new file mode 100644 index 0000000..ce50aac --- /dev/null +++ b/dist/cjs/wallet/src/models/ExternalTransaction.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ExternalTransaction.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/ExternalTransaction.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOzD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAOvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAOzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAO7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,IAAI,EAAE,eAAe,CAAC;IACtB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,MAAM,EAAE,QAAQ,CAAC;IACjB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,MAAM,EAAE,iBAAiB,CAAC;CAC7B;AAID;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAazF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAkB7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAmB5H"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/ExternalTransaction.js b/dist/cjs/wallet/src/models/ExternalTransaction.js new file mode 100644 index 0000000..e76056d --- /dev/null +++ b/dist/cjs/wallet/src/models/ExternalTransaction.js @@ -0,0 +1,97 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfExternalTransaction = instanceOfExternalTransaction; +exports.ExternalTransactionFromJSON = ExternalTransactionFromJSON; +exports.ExternalTransactionFromJSONTyped = ExternalTransactionFromJSONTyped; +exports.ExternalTransactionToJSON = ExternalTransactionToJSON; +exports.ExternalTransactionToJSONTyped = ExternalTransactionToJSONTyped; +const TransactionType_1 = require("./TransactionType"); +const Symbol_1 = require("./Symbol"); +const Currency_1 = require("./Currency"); +const Network_1 = require("./Network"); +const TransactionStatus_1 = require("./TransactionStatus"); +const Timestamp_1 = require("./Timestamp"); +/** + * Check if a given object implements the ExternalTransaction interface. + */ +function instanceOfExternalTransaction(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('time' in value) || value['time'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + if (!('hash' in value) || value['hash'] === undefined) + return false; + if (!('from' in value) || value['from'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + if (!('comment' in value) || value['comment'] === undefined) + return false; + if (!('amount' in value) || value['amount'] === undefined) + return false; + if (!('symbol' in value) || value['symbol'] === undefined) + return false; + if (!('network' in value) || value['network'] === undefined) + return false; + if (!('status' in value) || value['status'] === undefined) + return false; + return true; +} +function ExternalTransactionFromJSON(json) { + return ExternalTransactionFromJSONTyped(json, false); +} +function ExternalTransactionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['Id'], + 'time': (0, Timestamp_1.TimestampFromJSON)(json['Time']), + 'type': (0, TransactionType_1.TransactionTypeFromJSON)(json['Type']), + 'hash': json['Hash'], + 'from': json['From'], + 'to': json['To'], + 'comment': json['Comment'], + 'amount': (0, Currency_1.CurrencyFromJSON)(json['Amount']), + 'symbol': (0, Symbol_1.SymbolFromJSON)(json['Symbol']), + 'network': (0, Network_1.NetworkFromJSON)(json['Network']), + 'status': (0, TransactionStatus_1.TransactionStatusFromJSON)(json['Status']), + }; +} +function ExternalTransactionToJSON(json) { + return ExternalTransactionToJSONTyped(json, false); +} +function ExternalTransactionToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'Id': value['id'], + 'Time': (0, Timestamp_1.TimestampToJSON)(value['time']), + 'Type': (0, TransactionType_1.TransactionTypeToJSON)(value['type']), + 'Hash': value['hash'], + 'From': value['from'], + 'To': value['to'], + 'Comment': value['comment'], + 'Amount': (0, Currency_1.CurrencyToJSON)(value['amount']), + 'Symbol': (0, Symbol_1.SymbolToJSON)(value['symbol']), + 'Network': (0, Network_1.NetworkToJSON)(value['network']), + 'Status': (0, TransactionStatus_1.TransactionStatusToJSON)(value['status']), + }; +} +//# sourceMappingURL=ExternalTransaction.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/ExternalTransaction.js.map b/dist/cjs/wallet/src/models/ExternalTransaction.js.map new file mode 100644 index 0000000..3371393 --- /dev/null +++ b/dist/cjs/wallet/src/models/ExternalTransaction.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ExternalTransaction.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/ExternalTransaction.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA6HH,sEAaC;AAED,kEAEC;AAED,4EAkBC;AAED,8DAEC;AAED,wEAmBC;AAvLD,uDAK2B;AAE3B,qCAKkB;AAElB,yCAKoB;AAEpB,uCAKmB;AAEnB,2DAK6B;AAE7B,2CAKqB;AA8ErB;;GAEG;AACH,SAAgB,6BAA6B,CAAC,KAAa;IACvD,IAAI,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChE,IAAI,CAAC,CAAC,MA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CAAC,CAAC;QAC5C,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,QAAQ,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACzC,QAAQ,EAAE,IAAA,qBAAY,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACvC,SAAS,EAAE,IAAA,uBAAa,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAC1C,QAAQ,EAAE,IAAA,2CAAuB,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;KACrD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/FriendPoints.d.ts b/dist/cjs/wallet/src/models/FriendPoints.d.ts new file mode 100644 index 0000000..b61ee00 --- /dev/null +++ b/dist/cjs/wallet/src/models/FriendPoints.d.ts @@ -0,0 +1,39 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface FriendPoints + */ +export interface FriendPoints { + /** + * the first name of the friend + * @type {string} + * @memberof FriendPoints + */ + firstName: string; + /** + * the points of the friend + * @type {number} + * @memberof FriendPoints + */ + points: number; +} +/** + * Check if a given object implements the FriendPoints interface. + */ +export declare function instanceOfFriendPoints(value: object): value is FriendPoints; +export declare function FriendPointsFromJSON(json: any): FriendPoints; +export declare function FriendPointsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FriendPoints; +export declare function FriendPointsToJSON(json: any): FriendPoints; +export declare function FriendPointsToJSONTyped(value?: FriendPoints | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=FriendPoints.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/FriendPoints.d.ts.map b/dist/cjs/wallet/src/models/FriendPoints.d.ts.map new file mode 100644 index 0000000..f8d8083 --- /dev/null +++ b/dist/cjs/wallet/src/models/FriendPoints.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FriendPoints.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/FriendPoints.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAI3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAS/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU9G"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/FriendPoints.js b/dist/cjs/wallet/src/models/FriendPoints.js new file mode 100644 index 0000000..2cb9a24 --- /dev/null +++ b/dist/cjs/wallet/src/models/FriendPoints.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFriendPoints = instanceOfFriendPoints; +exports.FriendPointsFromJSON = FriendPointsFromJSON; +exports.FriendPointsFromJSONTyped = FriendPointsFromJSONTyped; +exports.FriendPointsToJSON = FriendPointsToJSON; +exports.FriendPointsToJSONTyped = FriendPointsToJSONTyped; +/** + * Check if a given object implements the FriendPoints interface. + */ +function instanceOfFriendPoints(value) { + if (!('firstName' in value) || value['firstName'] === undefined) + return false; + if (!('points' in value) || value['points'] === undefined) + return false; + return true; +} +function FriendPointsFromJSON(json) { + return FriendPointsFromJSONTyped(json, false); +} +function FriendPointsFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'firstName': json['firstName'], + 'points': json['points'], + }; +} +function FriendPointsToJSON(json) { + return FriendPointsToJSONTyped(json, false); +} +function FriendPointsToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'firstName': value['firstName'], + 'points': value['points'], + }; +} +//# sourceMappingURL=FriendPoints.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/FriendPoints.js.map b/dist/cjs/wallet/src/models/FriendPoints.js.map new file mode 100644 index 0000000..1211944 --- /dev/null +++ b/dist/cjs/wallet/src/models/FriendPoints.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FriendPoints.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/FriendPoints.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,wDAIC;AAED,oDAEC;AAED,8DASC;AAED,gDAEC;AAED,0DAUC;AAtCD;;GAEG;AACH,SAAgB,sBAAsB,CAAC,KAAa;IAChD,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS,EAAE,mBAA4B;IAC7E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;QAC9B,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;KAC3B,CAAC;AACN,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,KAA2B,EAAE,sBAA+B,KAAK;IACrG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/FriendPointsResponse.d.ts b/dist/cjs/wallet/src/models/FriendPointsResponse.d.ts new file mode 100644 index 0000000..f9c8361 --- /dev/null +++ b/dist/cjs/wallet/src/models/FriendPointsResponse.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { FriendPoints } from './FriendPoints'; +/** + * + * @export + * @interface FriendPointsResponse + */ +export interface FriendPointsResponse { + /** + * + * @type {Array} + * @memberof FriendPointsResponse + */ + data: Array; +} +/** + * Check if a given object implements the FriendPointsResponse interface. + */ +export declare function instanceOfFriendPointsResponse(value: object): value is FriendPointsResponse; +export declare function FriendPointsResponseFromJSON(json: any): FriendPointsResponse; +export declare function FriendPointsResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FriendPointsResponse; +export declare function FriendPointsResponseToJSON(json: any): FriendPointsResponse; +export declare function FriendPointsResponseToJSONTyped(value?: FriendPointsResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=FriendPointsResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/FriendPointsResponse.d.ts.map b/dist/cjs/wallet/src/models/FriendPointsResponse.d.ts.map new file mode 100644 index 0000000..56c9e0c --- /dev/null +++ b/dist/cjs/wallet/src/models/FriendPointsResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"FriendPointsResponse.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/FriendPointsResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAQnD;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;CAC7B;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAG3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAQ/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS9H"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/FriendPointsResponse.js b/dist/cjs/wallet/src/models/FriendPointsResponse.js new file mode 100644 index 0000000..7ae0fa1 --- /dev/null +++ b/dist/cjs/wallet/src/models/FriendPointsResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfFriendPointsResponse = instanceOfFriendPointsResponse; +exports.FriendPointsResponseFromJSON = FriendPointsResponseFromJSON; +exports.FriendPointsResponseFromJSONTyped = FriendPointsResponseFromJSONTyped; +exports.FriendPointsResponseToJSON = FriendPointsResponseToJSON; +exports.FriendPointsResponseToJSONTyped = FriendPointsResponseToJSONTyped; +const FriendPoints_1 = require("./FriendPoints"); +/** + * Check if a given object implements the FriendPointsResponse interface. + */ +function instanceOfFriendPointsResponse(value) { + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function FriendPointsResponseFromJSON(json) { + return FriendPointsResponseFromJSONTyped(json, false); +} +function FriendPointsResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': (json['data'].map(FriendPoints_1.FriendPointsFromJSON)), + }; +} +function FriendPointsResponseToJSON(json) { + return FriendPointsResponseToJSONTyped(json, false); +} +function FriendPointsResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'data': (value['data'].map(FriendPoints_1.FriendPointsToJSON)), + }; +} +//# sourceMappingURL=FriendPointsResponse.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/FriendPointsResponse.js.map b/dist/cjs/wallet/src/models/FriendPointsResponse.js.map new file mode 100644 index 0000000..b7e630a --- /dev/null +++ b/dist/cjs/wallet/src/models/FriendPointsResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"FriendPointsResponse.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/FriendPointsResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,wEAGC;AAED,oEAEC;AAED,8EAQC;AAED,gEAEC;AAED,0EASC;AAxDD,iDAKwB;AAgBxB;;GAEG;AACH,SAAgB,8BAA8B,CAAC,KAAa;IACxD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,SAAgB,iCAAiC,CAAC,IAAS,EAAE,mBAA4B;IACrF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,mCAAoB,CAAC,CAAC;KACnE,CAAC;AACN,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,KAAmC,EAAE,sBAA+B,KAAK;IACrH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,iCAAkB,CAAC,CAAC;KAClE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/HealthStatus.d.ts b/dist/cjs/wallet/src/models/HealthStatus.d.ts new file mode 100644 index 0000000..99a7fa9 --- /dev/null +++ b/dist/cjs/wallet/src/models/HealthStatus.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface HealthStatus + */ +export interface HealthStatus { + /** + * + * @type {string} + * @memberof HealthStatus + */ + status?: string; +} +/** + * Check if a given object implements the HealthStatus interface. + */ +export declare function instanceOfHealthStatus(value: object): value is HealthStatus; +export declare function HealthStatusFromJSON(json: any): HealthStatus; +export declare function HealthStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): HealthStatus; +export declare function HealthStatusToJSON(json: any): HealthStatus; +export declare function HealthStatusToJSONTyped(value?: HealthStatus | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=HealthStatus.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/HealthStatus.d.ts.map b/dist/cjs/wallet/src/models/HealthStatus.d.ts.map new file mode 100644 index 0000000..2d74adf --- /dev/null +++ b/dist/cjs/wallet/src/models/HealthStatus.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"HealthStatus.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/HealthStatus.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAE3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAQ/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS9G"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/HealthStatus.js b/dist/cjs/wallet/src/models/HealthStatus.js new file mode 100644 index 0000000..fa18a3c --- /dev/null +++ b/dist/cjs/wallet/src/models/HealthStatus.js @@ -0,0 +1,49 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfHealthStatus = instanceOfHealthStatus; +exports.HealthStatusFromJSON = HealthStatusFromJSON; +exports.HealthStatusFromJSONTyped = HealthStatusFromJSONTyped; +exports.HealthStatusToJSON = HealthStatusToJSON; +exports.HealthStatusToJSONTyped = HealthStatusToJSONTyped; +/** + * Check if a given object implements the HealthStatus interface. + */ +function instanceOfHealthStatus(value) { + return true; +} +function HealthStatusFromJSON(json) { + return HealthStatusFromJSONTyped(json, false); +} +function HealthStatusFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'status': json['status'] == null ? undefined : json['status'], + }; +} +function HealthStatusToJSON(json) { + return HealthStatusToJSONTyped(json, false); +} +function HealthStatusToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'status': value['status'], + }; +} +//# sourceMappingURL=HealthStatus.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/HealthStatus.js.map b/dist/cjs/wallet/src/models/HealthStatus.js.map new file mode 100644 index 0000000..832a5de --- /dev/null +++ b/dist/cjs/wallet/src/models/HealthStatus.js.map @@ -0,0 +1 @@ +{"version":3,"file":"HealthStatus.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/HealthStatus.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,wDAEC;AAED,oDAEC;AAED,8DAQC;AAED,gDAEC;AAED,0DASC;AAlCD;;GAEG;AACH,SAAgB,sBAAsB,CAAC,KAAa;IAChD,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS,EAAE,mBAA4B;IAC7E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC;KAChE,CAAC;AACN,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,KAA2B,EAAE,sBAA+B,KAAK;IACrG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/JwtResponse.d.ts b/dist/cjs/wallet/src/models/JwtResponse.d.ts new file mode 100644 index 0000000..7fcabe0 --- /dev/null +++ b/dist/cjs/wallet/src/models/JwtResponse.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface JwtResponse + */ +export interface JwtResponse { + /** + * JWT token + * @type {string} + * @memberof JwtResponse + */ + token: string; +} +/** + * Check if a given object implements the JwtResponse interface. + */ +export declare function instanceOfJwtResponse(value: object): value is JwtResponse; +export declare function JwtResponseFromJSON(json: any): JwtResponse; +export declare function JwtResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): JwtResponse; +export declare function JwtResponseToJSON(json: any): JwtResponse; +export declare function JwtResponseToJSONTyped(value?: JwtResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=JwtResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/JwtResponse.d.ts.map b/dist/cjs/wallet/src/models/JwtResponse.d.ts.map new file mode 100644 index 0000000..9088e63 --- /dev/null +++ b/dist/cjs/wallet/src/models/JwtResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"JwtResponse.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/JwtResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAGzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAQ7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS5G"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/JwtResponse.js b/dist/cjs/wallet/src/models/JwtResponse.js new file mode 100644 index 0000000..edf6608 --- /dev/null +++ b/dist/cjs/wallet/src/models/JwtResponse.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfJwtResponse = instanceOfJwtResponse; +exports.JwtResponseFromJSON = JwtResponseFromJSON; +exports.JwtResponseFromJSONTyped = JwtResponseFromJSONTyped; +exports.JwtResponseToJSON = JwtResponseToJSON; +exports.JwtResponseToJSONTyped = JwtResponseToJSONTyped; +/** + * Check if a given object implements the JwtResponse interface. + */ +function instanceOfJwtResponse(value) { + if (!('token' in value) || value['token'] === undefined) + return false; + return true; +} +function JwtResponseFromJSON(json) { + return JwtResponseFromJSONTyped(json, false); +} +function JwtResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'token': json['token'], + }; +} +function JwtResponseToJSON(json) { + return JwtResponseToJSONTyped(json, false); +} +function JwtResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'token': value['token'], + }; +} +//# sourceMappingURL=JwtResponse.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/JwtResponse.js.map b/dist/cjs/wallet/src/models/JwtResponse.js.map new file mode 100644 index 0000000..6462437 --- /dev/null +++ b/dist/cjs/wallet/src/models/JwtResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"JwtResponse.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/JwtResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,sDAGC;AAED,kDAEC;AAED,4DAQC;AAED,8CAEC;AAED,wDASC;AAnCD;;GAEG;AACH,SAAgB,qBAAqB,CAAC,KAAa;IAC/C,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS,EAAE,mBAA4B;IAC5E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;KACzB,CAAC;AACN,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,KAA0B,EAAE,sBAA+B,KAAK;IACnG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;KAC1B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/KycConfirmRequest.d.ts b/dist/cjs/wallet/src/models/KycConfirmRequest.d.ts new file mode 100644 index 0000000..07781eb --- /dev/null +++ b/dist/cjs/wallet/src/models/KycConfirmRequest.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface KycConfirmRequest + */ +export interface KycConfirmRequest { + /** + * KYC request ID + * @type {string} + * @memberof KycConfirmRequest + */ + id: string; +} +/** + * Check if a given object implements the KycConfirmRequest interface. + */ +export declare function instanceOfKycConfirmRequest(value: object): value is KycConfirmRequest; +export declare function KycConfirmRequestFromJSON(json: any): KycConfirmRequest; +export declare function KycConfirmRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): KycConfirmRequest; +export declare function KycConfirmRequestToJSON(json: any): KycConfirmRequest; +export declare function KycConfirmRequestToJSONTyped(value?: KycConfirmRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=KycConfirmRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/KycConfirmRequest.d.ts.map b/dist/cjs/wallet/src/models/KycConfirmRequest.d.ts.map new file mode 100644 index 0000000..d9e24aa --- /dev/null +++ b/dist/cjs/wallet/src/models/KycConfirmRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"KycConfirmRequest.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/KycConfirmRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAGrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAQzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASxH"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/KycConfirmRequest.js b/dist/cjs/wallet/src/models/KycConfirmRequest.js new file mode 100644 index 0000000..6159dcb --- /dev/null +++ b/dist/cjs/wallet/src/models/KycConfirmRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfKycConfirmRequest = instanceOfKycConfirmRequest; +exports.KycConfirmRequestFromJSON = KycConfirmRequestFromJSON; +exports.KycConfirmRequestFromJSONTyped = KycConfirmRequestFromJSONTyped; +exports.KycConfirmRequestToJSON = KycConfirmRequestToJSON; +exports.KycConfirmRequestToJSONTyped = KycConfirmRequestToJSONTyped; +/** + * Check if a given object implements the KycConfirmRequest interface. + */ +function instanceOfKycConfirmRequest(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + return true; +} +function KycConfirmRequestFromJSON(json) { + return KycConfirmRequestFromJSONTyped(json, false); +} +function KycConfirmRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + }; +} +function KycConfirmRequestToJSON(json) { + return KycConfirmRequestToJSONTyped(json, false); +} +function KycConfirmRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + }; +} +//# sourceMappingURL=KycConfirmRequest.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/KycConfirmRequest.js.map b/dist/cjs/wallet/src/models/KycConfirmRequest.js.map new file mode 100644 index 0000000..f170132 --- /dev/null +++ b/dist/cjs/wallet/src/models/KycConfirmRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"KycConfirmRequest.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/KycConfirmRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,kEAGC;AAED,8DAEC;AAED,wEAQC;AAED,0DAEC;AAED,oEASC;AAnCD;;GAEG;AACH,SAAgB,2BAA2B,CAAC,KAAa;IACrD,IAAI,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;KACnB,CAAC;AACN,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,KAAgC,EAAE,sBAA+B,KAAK;IAC/G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;KACpB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/KycRequest.d.ts b/dist/cjs/wallet/src/models/KycRequest.d.ts new file mode 100644 index 0000000..118b8aa --- /dev/null +++ b/dist/cjs/wallet/src/models/KycRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface KycRequest + */ +export interface KycRequest { + /** + * National ID + * @type {string} + * @memberof KycRequest + */ + nationalId: string; + /** + * Date of birth + * @type {string} + * @memberof KycRequest + */ + dateOfBirth: string; + /** + * Card number + * @type {string} + * @memberof KycRequest + */ + cardNumber: string; +} +/** + * Check if a given object implements the KycRequest interface. + */ +export declare function instanceOfKycRequest(value: object): value is KycRequest; +export declare function KycRequestFromJSON(json: any): KycRequest; +export declare function KycRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): KycRequest; +export declare function KycRequestToJSON(json: any): KycRequest; +export declare function KycRequestToJSONTyped(value?: KycRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=KycRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/KycRequest.d.ts.map b/dist/cjs/wallet/src/models/KycRequest.d.ts.map new file mode 100644 index 0000000..44414c1 --- /dev/null +++ b/dist/cjs/wallet/src/models/KycRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"KycRequest.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/KycRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAKvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAU3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAW1G"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/KycRequest.js b/dist/cjs/wallet/src/models/KycRequest.js new file mode 100644 index 0000000..e95ae88 --- /dev/null +++ b/dist/cjs/wallet/src/models/KycRequest.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfKycRequest = instanceOfKycRequest; +exports.KycRequestFromJSON = KycRequestFromJSON; +exports.KycRequestFromJSONTyped = KycRequestFromJSONTyped; +exports.KycRequestToJSON = KycRequestToJSON; +exports.KycRequestToJSONTyped = KycRequestToJSONTyped; +/** + * Check if a given object implements the KycRequest interface. + */ +function instanceOfKycRequest(value) { + if (!('nationalId' in value) || value['nationalId'] === undefined) + return false; + if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined) + return false; + if (!('cardNumber' in value) || value['cardNumber'] === undefined) + return false; + return true; +} +function KycRequestFromJSON(json) { + return KycRequestFromJSONTyped(json, false); +} +function KycRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'nationalId': json['nationalId'], + 'dateOfBirth': json['dateOfBirth'], + 'cardNumber': json['cardNumber'], + }; +} +function KycRequestToJSON(json) { + return KycRequestToJSONTyped(json, false); +} +function KycRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'nationalId': value['nationalId'], + 'dateOfBirth': value['dateOfBirth'], + 'cardNumber': value['cardNumber'], + }; +} +//# sourceMappingURL=KycRequest.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/KycRequest.js.map b/dist/cjs/wallet/src/models/KycRequest.js.map new file mode 100644 index 0000000..9645afa --- /dev/null +++ b/dist/cjs/wallet/src/models/KycRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"KycRequest.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/KycRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,oDAKC;AAED,gDAEC;AAED,0DAUC;AAED,4CAEC;AAED,sDAWC;AAzCD;;GAEG;AACH,SAAgB,oBAAoB,CAAC,KAAa;IAC9C,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChF,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClF,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChF,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS,EAAE,mBAA4B;IAC3E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;QAChC,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC;QAClC,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;KACnC,CAAC;AACN,CAAC;AAED,SAAgB,gBAAgB,CAAC,IAAS;IACtC,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,qBAAqB,CAAC,KAAyB,EAAE,sBAA+B,KAAK;IACjG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;KACpC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/KycResponse.d.ts b/dist/cjs/wallet/src/models/KycResponse.d.ts new file mode 100644 index 0000000..18a4907 --- /dev/null +++ b/dist/cjs/wallet/src/models/KycResponse.d.ts @@ -0,0 +1,64 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { BankInfo } from './BankInfo'; +/** + * + * @export + * @interface KycResponse + */ +export interface KycResponse { + /** + * KYC request ID + * @type {string} + * @memberof KycResponse + */ + id: string; + /** + * First name + * @type {string} + * @memberof KycResponse + */ + firstName: string; + /** + * Last name + * @type {string} + * @memberof KycResponse + */ + lastName: string; + /** + * National code + * @type {string} + * @memberof KycResponse + */ + nationalId: string; + /** + * Date of birth + * @type {string} + * @memberof KycResponse + */ + dateOfBirth: string; + /** + * + * @type {BankInfo} + * @memberof KycResponse + */ + bankInfo: BankInfo; +} +/** + * Check if a given object implements the KycResponse interface. + */ +export declare function instanceOfKycResponse(value: object): value is KycResponse; +export declare function KycResponseFromJSON(json: any): KycResponse; +export declare function KycResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): KycResponse; +export declare function KycResponseToJSON(json: any): KycResponse; +export declare function KycResponseToJSONTyped(value?: KycResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=KycResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/KycResponse.d.ts.map b/dist/cjs/wallet/src/models/KycResponse.d.ts.map new file mode 100644 index 0000000..54483b7 --- /dev/null +++ b/dist/cjs/wallet/src/models/KycResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"KycResponse.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/KycResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQ3C;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC;CACtB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAQzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAa7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAc5G"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/KycResponse.js b/dist/cjs/wallet/src/models/KycResponse.js new file mode 100644 index 0000000..97d1ddc --- /dev/null +++ b/dist/cjs/wallet/src/models/KycResponse.js @@ -0,0 +1,72 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfKycResponse = instanceOfKycResponse; +exports.KycResponseFromJSON = KycResponseFromJSON; +exports.KycResponseFromJSONTyped = KycResponseFromJSONTyped; +exports.KycResponseToJSON = KycResponseToJSON; +exports.KycResponseToJSONTyped = KycResponseToJSONTyped; +const BankInfo_1 = require("./BankInfo"); +/** + * Check if a given object implements the KycResponse interface. + */ +function instanceOfKycResponse(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('firstName' in value) || value['firstName'] === undefined) + return false; + if (!('lastName' in value) || value['lastName'] === undefined) + return false; + if (!('nationalId' in value) || value['nationalId'] === undefined) + return false; + if (!('dateOfBirth' in value) || value['dateOfBirth'] === undefined) + return false; + if (!('bankInfo' in value) || value['bankInfo'] === undefined) + return false; + return true; +} +function KycResponseFromJSON(json) { + return KycResponseFromJSONTyped(json, false); +} +function KycResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + 'firstName': json['firstName'], + 'lastName': json['lastName'], + 'nationalId': json['nationalId'], + 'dateOfBirth': json['dateOfBirth'], + 'bankInfo': (0, BankInfo_1.BankInfoFromJSON)(json['bankInfo']), + }; +} +function KycResponseToJSON(json) { + return KycResponseToJSONTyped(json, false); +} +function KycResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'firstName': value['firstName'], + 'lastName': value['lastName'], + 'nationalId': value['nationalId'], + 'dateOfBirth': value['dateOfBirth'], + 'bankInfo': (0, BankInfo_1.BankInfoToJSON)(value['bankInfo']), + }; +} +//# sourceMappingURL=KycResponse.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/KycResponse.js.map b/dist/cjs/wallet/src/models/KycResponse.js.map new file mode 100644 index 0000000..3f599ce --- /dev/null +++ b/dist/cjs/wallet/src/models/KycResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"KycResponse.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/KycResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0DH,sDAQC;AAED,kDAEC;AAED,4DAaC;AAED,8CAEC;AAED,wDAcC;AArGD,yCAKoB;AA8CpB;;GAEG;AACH,SAAgB,qBAAqB,CAAC,KAAa;IAC/C,IAAI,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChE,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,IAAI,CAAC,CAAC,YAAY,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,YAAY,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChF,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClF,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS,EAAE,mBAA4B;IAC5E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;QAChB,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;QAC9B,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;QAC5B,YAAY,EAAE,IAAI,CAAC,YAAY,CAAC;QAChC,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC;QAClC,UAAU,EAAE,IAAA,2BAAgB,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KACjD,CAAC;AACN,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,KAA0B,EAAE,sBAA+B,KAAK;IACnG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;QAC7B,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,UAAU,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC;KAChD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoanCreateRequest.d.ts b/dist/cjs/wallet/src/models/LoanCreateRequest.d.ts new file mode 100644 index 0000000..7d3a031 --- /dev/null +++ b/dist/cjs/wallet/src/models/LoanCreateRequest.d.ts @@ -0,0 +1,72 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LoanToValueOptions } from './LoanToValueOptions'; +/** + * + * @export + * @interface LoanCreateRequest + */ +export interface LoanCreateRequest { + /** + * Intent to create a vault + * @type {string} + * @memberof LoanCreateRequest + */ + intent: LoanCreateRequestIntentEnum; + /** + * The name of the loan plan + * @type {string} + * @memberof LoanCreateRequest + */ + planName: string; + /** + * Collateral amount + * @type {string} + * @memberof LoanCreateRequest + */ + collateral?: string; + /** + * Debt amount + * @type {string} + * @memberof LoanCreateRequest + */ + debt?: string; + /** + * Coin symbol + * @type {string} + * @memberof LoanCreateRequest + */ + symbol: string; + /** + * + * @type {LoanToValueOptions} + * @memberof LoanCreateRequest + */ + loanToValueOption: LoanToValueOptions; +} +/** + * @export + */ +export declare const LoanCreateRequestIntentEnum: { + readonly CREATE: "create"; + readonly PREVIEW: "preview"; +}; +export type LoanCreateRequestIntentEnum = typeof LoanCreateRequestIntentEnum[keyof typeof LoanCreateRequestIntentEnum]; +/** + * Check if a given object implements the LoanCreateRequest interface. + */ +export declare function instanceOfLoanCreateRequest(value: object): value is LoanCreateRequest; +export declare function LoanCreateRequestFromJSON(json: any): LoanCreateRequest; +export declare function LoanCreateRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoanCreateRequest; +export declare function LoanCreateRequestToJSON(json: any): LoanCreateRequest; +export declare function LoanCreateRequestToJSONTyped(value?: LoanCreateRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=LoanCreateRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoanCreateRequest.d.ts.map b/dist/cjs/wallet/src/models/LoanCreateRequest.d.ts.map new file mode 100644 index 0000000..8ea27bb --- /dev/null +++ b/dist/cjs/wallet/src/models/LoanCreateRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LoanCreateRequest.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/LoanCreateRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAQ/D;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,MAAM,EAAE,2BAA2B,CAAC;IACpC;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,iBAAiB,EAAE,kBAAkB,CAAC;CACzC;AAGD;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;CAG9B,CAAC;AACX,MAAM,MAAM,2BAA2B,GAAG,OAAO,2BAA2B,CAAC,MAAM,OAAO,2BAA2B,CAAC,CAAC;AAGvH;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAMrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAazG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAcxH"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoanCreateRequest.js b/dist/cjs/wallet/src/models/LoanCreateRequest.js new file mode 100644 index 0000000..4f8ae7c --- /dev/null +++ b/dist/cjs/wallet/src/models/LoanCreateRequest.js @@ -0,0 +1,76 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LoanCreateRequestIntentEnum = void 0; +exports.instanceOfLoanCreateRequest = instanceOfLoanCreateRequest; +exports.LoanCreateRequestFromJSON = LoanCreateRequestFromJSON; +exports.LoanCreateRequestFromJSONTyped = LoanCreateRequestFromJSONTyped; +exports.LoanCreateRequestToJSON = LoanCreateRequestToJSON; +exports.LoanCreateRequestToJSONTyped = LoanCreateRequestToJSONTyped; +const LoanToValueOptions_1 = require("./LoanToValueOptions"); +/** + * @export + */ +exports.LoanCreateRequestIntentEnum = { + CREATE: 'create', + PREVIEW: 'preview' +}; +/** + * Check if a given object implements the LoanCreateRequest interface. + */ +function instanceOfLoanCreateRequest(value) { + if (!('intent' in value) || value['intent'] === undefined) + return false; + if (!('planName' in value) || value['planName'] === undefined) + return false; + if (!('symbol' in value) || value['symbol'] === undefined) + return false; + if (!('loanToValueOption' in value) || value['loanToValueOption'] === undefined) + return false; + return true; +} +function LoanCreateRequestFromJSON(json) { + return LoanCreateRequestFromJSONTyped(json, false); +} +function LoanCreateRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'intent': json['intent'], + 'planName': json['planName'], + 'collateral': json['collateral'] == null ? undefined : json['collateral'], + 'debt': json['debt'] == null ? undefined : json['debt'], + 'symbol': json['symbol'], + 'loanToValueOption': (0, LoanToValueOptions_1.LoanToValueOptionsFromJSON)(json['loanToValueOption']), + }; +} +function LoanCreateRequestToJSON(json) { + return LoanCreateRequestToJSONTyped(json, false); +} +function LoanCreateRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'intent': value['intent'], + 'planName': value['planName'], + 'collateral': value['collateral'], + 'debt': value['debt'], + 'symbol': value['symbol'], + 'loanToValueOption': (0, LoanToValueOptions_1.LoanToValueOptionsToJSON)(value['loanToValueOption']), + }; +} +//# sourceMappingURL=LoanCreateRequest.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoanCreateRequest.js.map b/dist/cjs/wallet/src/models/LoanCreateRequest.js.map new file mode 100644 index 0000000..0702eb9 --- /dev/null +++ b/dist/cjs/wallet/src/models/LoanCreateRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LoanCreateRequest.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/LoanCreateRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAqEH,kEAMC;AAED,8DAEC;AAED,wEAaC;AAED,0DAEC;AAED,oEAcC;AA9GD,6DAK8B;AA+C9B;;GAEG;AACU,QAAA,2BAA2B,GAAG;IACvC,MAAM,EAAE,QAAQ;IAChB,OAAO,EAAE,SAAS;CACZ,CAAC;AAIX;;GAEG;AACH,SAAgB,2BAA2B,CAAC,KAAa;IACrD,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,mBAAmB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,mBAAmB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9F,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,yBAAyB,C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AC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoanPlan.d.ts b/dist/cjs/wallet/src/models/LoanPlan.d.ts new file mode 100644 index 0000000..0ae8590 --- /dev/null +++ b/dist/cjs/wallet/src/models/LoanPlan.d.ts @@ -0,0 +1,72 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Coin } from './Coin'; +import type { Currency } from './Currency'; +import type { DetailedLoanToValueOptions } from './DetailedLoanToValueOptions'; +/** + * + * @export + * @interface LoanPlan + */ +export interface LoanPlan { + /** + * The name of the loan plan + * @type {string} + * @memberof LoanPlan + */ + name: string; + /** + * The minimum collateralization ratio of the loan plan + * @type {string} + * @memberof LoanPlan + */ + minCollateralizationRatio: string; + /** + * + * @type {Array} + * @memberof LoanPlan + */ + acceptableCoins: Array; + /** + * The annual fee of the loan plan + * @type {string} + * @memberof LoanPlan + */ + fee: string; + /** + * + * @type {Currency} + * @memberof LoanPlan + */ + maxDebt: Currency; + /** + * + * @type {Currency} + * @memberof LoanPlan + */ + minDebt: Currency; + /** + * + * @type {Array} + * @memberof LoanPlan + */ + loanToValueOptions: Array; +} +/** + * Check if a given object implements the LoanPlan interface. + */ +export declare function instanceOfLoanPlan(value: object): value is LoanPlan; +export declare function LoanPlanFromJSON(json: any): LoanPlan; +export declare function LoanPlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoanPlan; +export declare function LoanPlanToJSON(json: any): LoanPlan; +export declare function LoanPlanToJSONTyped(value?: LoanPlan | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=LoanPlan.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoanPlan.d.ts.map b/dist/cjs/wallet/src/models/LoanPlan.d.ts.map new file mode 100644 index 0000000..2240700 --- /dev/null +++ b/dist/cjs/wallet/src/models/LoanPlan.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LoanPlan.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/LoanPlan.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAOnC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAQ/E;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,yBAAyB,EAAE,MAAM,CAAC;IAClC;;;;OAIG;IACH,eAAe,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;IAC7B;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,OAAO,EAAE,QAAQ,CAAC;IAClB;;;;OAIG;IACH,OAAO,EAAE,QAAQ,CAAC;IAClB;;;;OAIG;IACH,kBAAkB,EAAE,KAAK,CAAC,0BAA0B,CAAC,CAAC;CACzD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,QAAQ,CASnE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAEpD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,QAAQ,CAcvF;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAElD;AAED,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAetG"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoanPlan.js b/dist/cjs/wallet/src/models/LoanPlan.js new file mode 100644 index 0000000..f4bda7f --- /dev/null +++ b/dist/cjs/wallet/src/models/LoanPlan.js @@ -0,0 +1,78 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfLoanPlan = instanceOfLoanPlan; +exports.LoanPlanFromJSON = LoanPlanFromJSON; +exports.LoanPlanFromJSONTyped = LoanPlanFromJSONTyped; +exports.LoanPlanToJSON = LoanPlanToJSON; +exports.LoanPlanToJSONTyped = LoanPlanToJSONTyped; +const Coin_1 = require("./Coin"); +const Currency_1 = require("./Currency"); +const DetailedLoanToValueOptions_1 = require("./DetailedLoanToValueOptions"); +/** + * Check if a given object implements the LoanPlan interface. + */ +function instanceOfLoanPlan(value) { + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('minCollateralizationRatio' in value) || value['minCollateralizationRatio'] === undefined) + return false; + if (!('acceptableCoins' in value) || value['acceptableCoins'] === undefined) + return false; + if (!('fee' in value) || value['fee'] === undefined) + return false; + if (!('maxDebt' in value) || value['maxDebt'] === undefined) + return false; + if (!('minDebt' in value) || value['minDebt'] === undefined) + return false; + if (!('loanToValueOptions' in value) || value['loanToValueOptions'] === undefined) + return false; + return true; +} +function LoanPlanFromJSON(json) { + return LoanPlanFromJSONTyped(json, false); +} +function LoanPlanFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'], + 'minCollateralizationRatio': json['minCollateralizationRatio'], + 'acceptableCoins': (json['acceptableCoins'].map(Coin_1.CoinFromJSON)), + 'fee': json['fee'], + 'maxDebt': (0, Currency_1.CurrencyFromJSON)(json['maxDebt']), + 'minDebt': (0, Currency_1.CurrencyFromJSON)(json['minDebt']), + 'loanToValueOptions': (json['loanToValueOptions'].map(DetailedLoanToValueOptions_1.DetailedLoanToValueOptionsFromJSON)), + }; +} +function LoanPlanToJSON(json) { + return LoanPlanToJSONTyped(json, false); +} +function LoanPlanToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'minCollateralizationRatio': value['minCollateralizationRatio'], + 'acceptableCoins': (value['acceptableCoins'].map(Coin_1.CoinToJSON)), + 'fee': value['fee'], + 'maxDebt': (0, Currency_1.CurrencyToJSON)(value['maxDebt']), + 'minDebt': (0, Currency_1.CurrencyToJSON)(value['minDebt']), + 'loanToValueOptions': (value['loanToValueOptions'].map(DetailedLoanToValueOptions_1.DetailedLoanToValueOptionsToJSON)), + }; +} +//# sourceMappingURL=LoanPlan.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoanPlan.js.map b/dist/cjs/wallet/src/models/LoanPlan.js.map new file mode 100644 index 0000000..43a1185 --- /dev/null +++ b/dist/cjs/wallet/src/models/LoanPlan.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LoanPlan.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/LoanPlan.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA8EH,gDASC;AAED,4CAEC;AAED,sDAcC;AAED,wCAEC;AAED,kDAeC;AA5HD,iCAKgB;AAEhB,yCAKoB;AAEpB,6EAKsC;AAoDtC;;GAEG;AACH,SAAgB,kBAAkB,CAAC,KAAa;IAC5C,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,2BAA2B,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,2BAA2B,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9G,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI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,CAAC,+DAAkC,CAAC,CAAC;KAC7G,CAAC;AACN,CAAC;AAED,SAAgB,cAAc,CAAC,IAAS;IACpC,OAAO,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5C,CAAC;AAED,SAAgB,mBAAmB,CAAC,KAAuB,EAAE,sBAA+B,KAAK;IAC7F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,2BAA2B,EAAE,KAAK,CAAC,2BAA2B,CAAC;QAC/D,iBAAiB,EAAE,CAAE,KAAK,CAAC,iBAAiB,CAAgB,CAAC,GAAG,CAAC,iBAAU,CAAC,CAAC;QAC7E,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;QACnB,SAAS,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAC3C,SAAS,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAC3C,oBAAoB,EAAE,CAAE,KAAK,CAAC,oBAAoB,CAAgB,CAAC,GAAG,CAAC,6DAAgC,CAAC,CAAC;KAC5G,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoanPlanResponse.d.ts b/dist/cjs/wallet/src/models/LoanPlanResponse.d.ts new file mode 100644 index 0000000..6a76030 --- /dev/null +++ b/dist/cjs/wallet/src/models/LoanPlanResponse.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LoanPlan } from './LoanPlan'; +/** + * + * @export + * @interface LoanPlanResponse + */ +export interface LoanPlanResponse { + /** + * + * @type {Array} + * @memberof LoanPlanResponse + */ + data: Array; +} +/** + * Check if a given object implements the LoanPlanResponse interface. + */ +export declare function instanceOfLoanPlanResponse(value: object): value is LoanPlanResponse; +export declare function LoanPlanResponseFromJSON(json: any): LoanPlanResponse; +export declare function LoanPlanResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoanPlanResponse; +export declare function LoanPlanResponseToJSON(json: any): LoanPlanResponse; +export declare function LoanPlanResponseToJSONTyped(value?: LoanPlanResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=LoanPlanResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoanPlanResponse.d.ts.map b/dist/cjs/wallet/src/models/LoanPlanResponse.d.ts.map new file mode 100644 index 0000000..a8623b3 --- /dev/null +++ b/dist/cjs/wallet/src/models/LoanPlanResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LoanPlanResponse.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/LoanPlanResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQ3C;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CACzB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAGnF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAQvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAStH"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoanPlanResponse.js b/dist/cjs/wallet/src/models/LoanPlanResponse.js new file mode 100644 index 0000000..873122d --- /dev/null +++ b/dist/cjs/wallet/src/models/LoanPlanResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfLoanPlanResponse = instanceOfLoanPlanResponse; +exports.LoanPlanResponseFromJSON = LoanPlanResponseFromJSON; +exports.LoanPlanResponseFromJSONTyped = LoanPlanResponseFromJSONTyped; +exports.LoanPlanResponseToJSON = LoanPlanResponseToJSON; +exports.LoanPlanResponseToJSONTyped = LoanPlanResponseToJSONTyped; +const LoanPlan_1 = require("./LoanPlan"); +/** + * Check if a given object implements the LoanPlanResponse interface. + */ +function instanceOfLoanPlanResponse(value) { + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function LoanPlanResponseFromJSON(json) { + return LoanPlanResponseFromJSONTyped(json, false); +} +function LoanPlanResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': (json['data'].map(LoanPlan_1.LoanPlanFromJSON)), + }; +} +function LoanPlanResponseToJSON(json) { + return LoanPlanResponseToJSONTyped(json, false); +} +function LoanPlanResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'data': (value['data'].map(LoanPlan_1.LoanPlanToJSON)), + }; +} +//# sourceMappingURL=LoanPlanResponse.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoanPlanResponse.js.map b/dist/cjs/wallet/src/models/LoanPlanResponse.js.map new file mode 100644 index 0000000..23d6557 --- /dev/null +++ b/dist/cjs/wallet/src/models/LoanPlanResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LoanPlanResponse.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/LoanPlanResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,gEAGC;AAED,4DAEC;AAED,sEAQC;AAED,wDAEC;AAED,kEASC;AAxDD,yCAKoB;AAgBpB;;GAEG;AACH,SAAgB,0BAA0B,CAAC,KAAa;IACpD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS,EAAE,mBAA4B;IACjF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,2BAAgB,CAAC,CAAC;KAC/D,CAAC;AACN,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS;IAC5C,OAAO,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,2BAA2B,CAAC,KAA+B,EAAE,sBAA+B,KAAK;IAC7G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,yBAAc,CAAC,CAAC;KAC9D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoanToValueOptions.d.ts b/dist/cjs/wallet/src/models/LoanToValueOptions.d.ts new file mode 100644 index 0000000..3a91883 --- /dev/null +++ b/dist/cjs/wallet/src/models/LoanToValueOptions.d.ts @@ -0,0 +1,27 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * The loan to value percentage options + * @export + */ +export declare const LoanToValueOptions: { + readonly RISKY: "Risky"; + readonly NORMAL: "Normal"; + readonly SAFE: "Safe"; +}; +export type LoanToValueOptions = typeof LoanToValueOptions[keyof typeof LoanToValueOptions]; +export declare function instanceOfLoanToValueOptions(value: any): boolean; +export declare function LoanToValueOptionsFromJSON(json: any): LoanToValueOptions; +export declare function LoanToValueOptionsFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoanToValueOptions; +export declare function LoanToValueOptionsToJSON(value?: LoanToValueOptions | null): any; +export declare function LoanToValueOptionsToJSONTyped(value: any, ignoreDiscriminator: boolean): LoanToValueOptions; +//# sourceMappingURL=LoanToValueOptions.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoanToValueOptions.d.ts.map b/dist/cjs/wallet/src/models/LoanToValueOptions.d.ts.map new file mode 100644 index 0000000..75bc32c --- /dev/null +++ b/dist/cjs/wallet/src/models/LoanToValueOptions.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LoanToValueOptions.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/LoanToValueOptions.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;CAIrB,CAAC;AACX,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAG5F,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAShE;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAE3G;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,GAAG,GAAG,CAE/E;AAED,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAE1G"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoanToValueOptions.js b/dist/cjs/wallet/src/models/LoanToValueOptions.js new file mode 100644 index 0000000..f83c16a --- /dev/null +++ b/dist/cjs/wallet/src/models/LoanToValueOptions.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.LoanToValueOptions = void 0; +exports.instanceOfLoanToValueOptions = instanceOfLoanToValueOptions; +exports.LoanToValueOptionsFromJSON = LoanToValueOptionsFromJSON; +exports.LoanToValueOptionsFromJSONTyped = LoanToValueOptionsFromJSONTyped; +exports.LoanToValueOptionsToJSON = LoanToValueOptionsToJSON; +exports.LoanToValueOptionsToJSONTyped = LoanToValueOptionsToJSONTyped; +/** + * The loan to value percentage options + * @export + */ +exports.LoanToValueOptions = { + RISKY: 'Risky', + NORMAL: 'Normal', + SAFE: 'Safe' +}; +function instanceOfLoanToValueOptions(value) { + for (const key in exports.LoanToValueOptions) { + if (Object.prototype.hasOwnProperty.call(exports.LoanToValueOptions, key)) { + if (exports.LoanToValueOptions[key] === value) { + return true; + } + } + } + return false; +} +function LoanToValueOptionsFromJSON(json) { + return LoanToValueOptionsFromJSONTyped(json, false); +} +function LoanToValueOptionsFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function LoanToValueOptionsToJSON(value) { + return value; +} +function LoanToValueOptionsToJSONTyped(value, ignoreDiscriminator) { + return value; +} +//# sourceMappingURL=LoanToValueOptions.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoanToValueOptions.js.map b/dist/cjs/wallet/src/models/LoanToValueOptions.js.map new file mode 100644 index 0000000..6beb523 --- /dev/null +++ b/dist/cjs/wallet/src/models/LoanToValueOptions.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LoanToValueOptions.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/LoanToValueOptions.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAeH,oEASC;AAED,gEAEC;AAED,0EAEC;AAED,4DAEC;AAED,sEAEC;AArCD;;;GAGG;AACU,QAAA,kBAAkB,GAAG;IAC9B,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,QAAQ;IAChB,IAAI,EAAE,MAAM;CACN,CAAC;AAIX,SAAgB,4BAA4B,CAAC,KAAU;IACnD,KAAK,MAAM,GAAG,IAAI,0BAAkB,EAAE,CAAC;QACnC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,0BAAkB,EAAE,GAAG,CAAC,EAAE,CAAC;YAChE,IAAI,0BAAkB,CAAC,GAAsC,CAAC,KAAK,KAAK,EAAE,CAAC;gBACvE,OAAO,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,IAAS,EAAE,mBAA4B;IACnF,OAAO,IAA0B,CAAC;AACtC,CAAC;AAED,SAAgB,wBAAwB,CAAC,KAAiC;IACtE,OAAO,KAAY,CAAC;AACxB,CAAC;AAED,SAAgB,6BAA6B,CAAC,KAAU,EAAE,mBAA4B;IAClF,OAAO,KAA2B,CAAC;AACvC,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoansResponse.d.ts b/dist/cjs/wallet/src/models/LoansResponse.d.ts new file mode 100644 index 0000000..6d483de --- /dev/null +++ b/dist/cjs/wallet/src/models/LoansResponse.d.ts @@ -0,0 +1,116 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { BulletContent } from './BulletContent'; +import type { Currency } from './Currency'; +import type { LoanPlan } from './LoanPlan'; +/** + * + * @export + * @interface LoansResponse + */ +export interface LoansResponse { + /** + * Identifier for the vault. + * @type {string} + * @memberof LoansResponse + */ + id?: string; + /** + * Identifier for the user. + * @type {number} + * @memberof LoansResponse + */ + userId: number; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + liquidationPrice: Currency; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + collateral: Currency; + /** + * The collateralization ratio of the vault. + * @type {string} + * @memberof LoansResponse + */ + collateralizationRatio: string; + /** + * The loan to value of the vault. + * @type {string} + * @memberof LoansResponse + */ + loanToValue: string; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + debt: Currency; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + principal: Currency; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + scaledDebt: Currency; + /** + * + * @type {LoanPlan} + * @memberof LoansResponse + */ + plan: LoanPlan; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof LoansResponse + */ + state: { + [key: string]: string | undefined; + }; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + updatedCollateralTokenBalance?: Currency; + /** + * + * @type {Currency} + * @memberof LoansResponse + */ + updatedDebtTokenBalance?: Currency; + /** + * + * @type {BulletContent} + * @memberof LoansResponse + */ + termsAndConditions?: BulletContent; +} +/** + * Check if a given object implements the LoansResponse interface. + */ +export declare function instanceOfLoansResponse(value: object): value is LoansResponse; +export declare function LoansResponseFromJSON(json: any): LoansResponse; +export declare function LoansResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoansResponse; +export declare function LoansResponseToJSON(json: any): LoansResponse; +export declare function LoansResponseToJSONTyped(value?: LoansResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=LoansResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoansResponse.d.ts.map b/dist/cjs/wallet/src/models/LoansResponse.d.ts.map new file mode 100644 index 0000000..4bebe3a --- /dev/null +++ b/dist/cjs/wallet/src/models/LoansResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LoansResponse.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/LoansResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAOrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQ3C;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,gBAAgB,EAAE,QAAQ,CAAC;IAC3B;;;;OAIG;IACH,UAAU,EAAE,QAAQ,CAAC;IACrB;;;;OAIG;IACH,sBAAsB,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,IAAI,EAAE,QAAQ,CAAC;IACf;;;;OAIG;IACH,SAAS,EAAE,QAAQ,CAAC;IACpB;;;;OAIG;IACH,UAAU,EAAE,QAAQ,CAAC;IACrB;;;;OAIG;IACH,IAAI,EAAE,QAAQ,CAAC;IACf;;;;OAIG;IACH,KAAK,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC9C;;;;OAIG;IACH,6BAA6B,CAAC,EAAE,QAAQ,CAAC;IACzC;;;;OAIG;IACH,uBAAuB,CAAC,EAAE,QAAQ,CAAC;IACnC;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,aAAa,CAAC;CACtC;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAY7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CAqBjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAsBhH"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoansResponse.js b/dist/cjs/wallet/src/models/LoansResponse.js new file mode 100644 index 0000000..69ee698 --- /dev/null +++ b/dist/cjs/wallet/src/models/LoansResponse.js @@ -0,0 +1,98 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfLoansResponse = instanceOfLoansResponse; +exports.LoansResponseFromJSON = LoansResponseFromJSON; +exports.LoansResponseFromJSONTyped = LoansResponseFromJSONTyped; +exports.LoansResponseToJSON = LoansResponseToJSON; +exports.LoansResponseToJSONTyped = LoansResponseToJSONTyped; +const BulletContent_1 = require("./BulletContent"); +const Currency_1 = require("./Currency"); +const LoanPlan_1 = require("./LoanPlan"); +/** + * Check if a given object implements the LoansResponse interface. + */ +function instanceOfLoansResponse(value) { + if (!('userId' in value) || value['userId'] === undefined) + return false; + if (!('liquidationPrice' in value) || value['liquidationPrice'] === undefined) + return false; + if (!('collateral' in value) || value['collateral'] === undefined) + return false; + if (!('collateralizationRatio' in value) || value['collateralizationRatio'] === undefined) + return false; + if (!('loanToValue' in value) || value['loanToValue'] === undefined) + return false; + if (!('debt' in value) || value['debt'] === undefined) + return false; + if (!('principal' in value) || value['principal'] === undefined) + return false; + if (!('scaledDebt' in value) || value['scaledDebt'] === undefined) + return false; + if (!('plan' in value) || value['plan'] === undefined) + return false; + if (!('state' in value) || value['state'] === undefined) + return false; + return true; +} +function LoansResponseFromJSON(json) { + return LoansResponseFromJSONTyped(json, false); +} +function LoansResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'] == null ? undefined : json['id'], + 'userId': json['userId'], + 'liquidationPrice': (0, Currency_1.CurrencyFromJSON)(json['liquidationPrice']), + 'collateral': (0, Currency_1.CurrencyFromJSON)(json['collateral']), + 'collateralizationRatio': json['collateralizationRatio'], + 'loanToValue': json['loanToValue'], + 'debt': (0, Currency_1.CurrencyFromJSON)(json['debt']), + 'principal': (0, Currency_1.CurrencyFromJSON)(json['principal']), + 'scaledDebt': (0, Currency_1.CurrencyFromJSON)(json['scaledDebt']), + 'plan': (0, LoanPlan_1.LoanPlanFromJSON)(json['plan']), + 'state': json['state'], + 'updatedCollateralTokenBalance': json['updatedCollateralTokenBalance'] == null ? undefined : (0, Currency_1.CurrencyFromJSON)(json['updatedCollateralTokenBalance']), + 'updatedDebtTokenBalance': json['updatedDebtTokenBalance'] == null ? undefined : (0, Currency_1.CurrencyFromJSON)(json['updatedDebtTokenBalance']), + 'termsAndConditions': json['termsAndConditions'] == null ? undefined : (0, BulletContent_1.BulletContentFromJSON)(json['termsAndConditions']), + }; +} +function LoansResponseToJSON(json) { + return LoansResponseToJSONTyped(json, false); +} +function LoansResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'userId': value['userId'], + 'liquidationPrice': (0, Currency_1.CurrencyToJSON)(value['liquidationPrice']), + 'collateral': (0, Currency_1.CurrencyToJSON)(value['collateral']), + 'collateralizationRatio': value['collateralizationRatio'], + 'loanToValue': value['loanToValue'], + 'debt': (0, Currency_1.CurrencyToJSON)(value['debt']), + 'principal': (0, Currency_1.CurrencyToJSON)(value['principal']), + 'scaledDebt': (0, Currency_1.CurrencyToJSON)(value['scaledDebt']), + 'plan': (0, LoanPlan_1.LoanPlanToJSON)(value['plan']), + 'state': value['state'], + 'updatedCollateralTokenBalance': (0, Currency_1.CurrencyToJSON)(value['updatedCollateralTokenBalance']), + 'updatedDebtTokenBalance': (0, Currency_1.CurrencyToJSON)(value['updatedDebtTokenBalance']), + 'termsAndConditions': (0, BulletContent_1.BulletContentToJSON)(value['termsAndConditions']), + }; +} +//# sourceMappingURL=LoansResponse.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoansResponse.js.map b/dist/cjs/wallet/src/models/LoansResponse.js.map new file mode 100644 index 0000000..354e855 --- /dev/null +++ b/dist/cjs/wallet/src/models/LoansResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LoansResponse.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/LoansResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAwHH,0DAYC;AAED,sDAEC;AAED,gEAqBC;AAED,kDAEC;AAED,4DAsBC;AAvLD,mDAKyB;AAEzB,yCAKoB;AAEpB,yCAKoB;AA8FpB;;GAEG;AACH,SAAgB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AA,mCAAmB,EAAC,KAAK,CAAC,oBAAoB,CAAC,CAAC;KACzE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoansResponseList.d.ts b/dist/cjs/wallet/src/models/LoansResponseList.d.ts new file mode 100644 index 0000000..02f269b --- /dev/null +++ b/dist/cjs/wallet/src/models/LoansResponseList.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { LoansResponse } from './LoansResponse'; +/** + * + * @export + * @interface LoansResponseList + */ +export interface LoansResponseList { + /** + * + * @type {Array} + * @memberof LoansResponseList + */ + data: Array; +} +/** + * Check if a given object implements the LoansResponseList interface. + */ +export declare function instanceOfLoansResponseList(value: object): value is LoansResponseList; +export declare function LoansResponseListFromJSON(json: any): LoansResponseList; +export declare function LoansResponseListFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoansResponseList; +export declare function LoansResponseListToJSON(json: any): LoansResponseList; +export declare function LoansResponseListToJSONTyped(value?: LoansResponseList | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=LoansResponseList.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoansResponseList.d.ts.map b/dist/cjs/wallet/src/models/LoansResponseList.d.ts.map new file mode 100644 index 0000000..3fdcf8b --- /dev/null +++ b/dist/cjs/wallet/src/models/LoansResponseList.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LoansResponseList.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/LoansResponseList.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAQrD;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,aAAa,CAAC,CAAC;CAC9B;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAGrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAQzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASxH"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoansResponseList.js b/dist/cjs/wallet/src/models/LoansResponseList.js new file mode 100644 index 0000000..2a8481a --- /dev/null +++ b/dist/cjs/wallet/src/models/LoansResponseList.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfLoansResponseList = instanceOfLoansResponseList; +exports.LoansResponseListFromJSON = LoansResponseListFromJSON; +exports.LoansResponseListFromJSONTyped = LoansResponseListFromJSONTyped; +exports.LoansResponseListToJSON = LoansResponseListToJSON; +exports.LoansResponseListToJSONTyped = LoansResponseListToJSONTyped; +const LoansResponse_1 = require("./LoansResponse"); +/** + * Check if a given object implements the LoansResponseList interface. + */ +function instanceOfLoansResponseList(value) { + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function LoansResponseListFromJSON(json) { + return LoansResponseListFromJSONTyped(json, false); +} +function LoansResponseListFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': (json['data'].map(LoansResponse_1.LoansResponseFromJSON)), + }; +} +function LoansResponseListToJSON(json) { + return LoansResponseListToJSONTyped(json, false); +} +function LoansResponseListToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'data': (value['data'].map(LoansResponse_1.LoansResponseToJSON)), + }; +} +//# sourceMappingURL=LoansResponseList.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoansResponseList.js.map b/dist/cjs/wallet/src/models/LoansResponseList.js.map new file mode 100644 index 0000000..566a2c9 --- /dev/null +++ b/dist/cjs/wallet/src/models/LoansResponseList.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LoansResponseList.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/LoansResponseList.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,kEAGC;AAED,8DAEC;AAED,wEAQC;AAED,0DAEC;AAED,oEASC;AAxDD,mDAKyB;AAgBzB;;GAEG;AACH,SAAgB,2BAA2B,CAAC,KAAa;IACrD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,qCAAqB,CAAC,CAAC;KACpE,CAAC;AACN,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,KAAgC,EAAE,sBAA+B,KAAK;IAC/G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,mCAAmB,CAAC,CAAC;KACnE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoginRequest.d.ts b/dist/cjs/wallet/src/models/LoginRequest.d.ts new file mode 100644 index 0000000..0f113d7 --- /dev/null +++ b/dist/cjs/wallet/src/models/LoginRequest.d.ts @@ -0,0 +1,39 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface LoginRequest + */ +export interface LoginRequest { + /** + * user's email + * @type {string} + * @memberof LoginRequest + */ + email: string; + /** + * user's password + * @type {string} + * @memberof LoginRequest + */ + password: string; +} +/** + * Check if a given object implements the LoginRequest interface. + */ +export declare function instanceOfLoginRequest(value: object): value is LoginRequest; +export declare function LoginRequestFromJSON(json: any): LoginRequest; +export declare function LoginRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): LoginRequest; +export declare function LoginRequestToJSON(json: any): LoginRequest; +export declare function LoginRequestToJSONTyped(value?: LoginRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=LoginRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoginRequest.d.ts.map b/dist/cjs/wallet/src/models/LoginRequest.d.ts.map new file mode 100644 index 0000000..19787c0 --- /dev/null +++ b/dist/cjs/wallet/src/models/LoginRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"LoginRequest.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/LoginRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAI3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAS/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU9G"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoginRequest.js b/dist/cjs/wallet/src/models/LoginRequest.js new file mode 100644 index 0000000..a1499a0 --- /dev/null +++ b/dist/cjs/wallet/src/models/LoginRequest.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfLoginRequest = instanceOfLoginRequest; +exports.LoginRequestFromJSON = LoginRequestFromJSON; +exports.LoginRequestFromJSONTyped = LoginRequestFromJSONTyped; +exports.LoginRequestToJSON = LoginRequestToJSON; +exports.LoginRequestToJSONTyped = LoginRequestToJSONTyped; +/** + * Check if a given object implements the LoginRequest interface. + */ +function instanceOfLoginRequest(value) { + if (!('email' in value) || value['email'] === undefined) + return false; + if (!('password' in value) || value['password'] === undefined) + return false; + return true; +} +function LoginRequestFromJSON(json) { + return LoginRequestFromJSONTyped(json, false); +} +function LoginRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'email': json['email'], + 'password': json['password'], + }; +} +function LoginRequestToJSON(json) { + return LoginRequestToJSONTyped(json, false); +} +function LoginRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'email': value['email'], + 'password': value['password'], + }; +} +//# sourceMappingURL=LoginRequest.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/LoginRequest.js.map b/dist/cjs/wallet/src/models/LoginRequest.js.map new file mode 100644 index 0000000..49da100 --- /dev/null +++ b/dist/cjs/wallet/src/models/LoginRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"LoginRequest.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/LoginRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,wDAIC;AAED,oDAEC;AAED,8DASC;AAED,gDAEC;AAED,0DAUC;AAtCD;;GAEG;AACH,SAAgB,sBAAsB,CAAC,KAAa;IAChD,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS,EAAE,mBAA4B;IAC7E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QACtB,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;KAC/B,CAAC;AACN,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,KAA2B,EAAE,sBAA+B,KAAK;IACrG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;KAChC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/ModelError.d.ts b/dist/cjs/wallet/src/models/ModelError.d.ts new file mode 100644 index 0000000..69d43fa --- /dev/null +++ b/dist/cjs/wallet/src/models/ModelError.d.ts @@ -0,0 +1,39 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface ModelError + */ +export interface ModelError { + /** + * Error message + * @type {string} + * @memberof ModelError + */ + msg: string; + /** + * + * @type {Array} + * @memberof ModelError + */ + reasons: Array; +} +/** + * Check if a given object implements the ModelError interface. + */ +export declare function instanceOfModelError(value: object): value is ModelError; +export declare function ModelErrorFromJSON(json: any): ModelError; +export declare function ModelErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelError; +export declare function ModelErrorToJSON(json: any): ModelError; +export declare function ModelErrorToJSONTyped(value?: ModelError | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=ModelError.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/ModelError.d.ts.map b/dist/cjs/wallet/src/models/ModelError.d.ts.map new file mode 100644 index 0000000..b839f50 --- /dev/null +++ b/dist/cjs/wallet/src/models/ModelError.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ModelError.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/ModelError.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC1B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAIvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAS3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAU1G"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/ModelError.js b/dist/cjs/wallet/src/models/ModelError.js new file mode 100644 index 0000000..1ebe618 --- /dev/null +++ b/dist/cjs/wallet/src/models/ModelError.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfModelError = instanceOfModelError; +exports.ModelErrorFromJSON = ModelErrorFromJSON; +exports.ModelErrorFromJSONTyped = ModelErrorFromJSONTyped; +exports.ModelErrorToJSON = ModelErrorToJSON; +exports.ModelErrorToJSONTyped = ModelErrorToJSONTyped; +/** + * Check if a given object implements the ModelError interface. + */ +function instanceOfModelError(value) { + if (!('msg' in value) || value['msg'] === undefined) + return false; + if (!('reasons' in value) || value['reasons'] === undefined) + return false; + return true; +} +function ModelErrorFromJSON(json) { + return ModelErrorFromJSONTyped(json, false); +} +function ModelErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'msg': json['msg'], + 'reasons': json['reasons'], + }; +} +function ModelErrorToJSON(json) { + return ModelErrorToJSONTyped(json, false); +} +function ModelErrorToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'msg': value['msg'], + 'reasons': value['reasons'], + }; +} +//# sourceMappingURL=ModelError.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/ModelError.js.map b/dist/cjs/wallet/src/models/ModelError.js.map new file mode 100644 index 0000000..bf59dd9 --- /dev/null +++ b/dist/cjs/wallet/src/models/ModelError.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ModelError.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/ModelError.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,oDAIC;AAED,gDAEC;AAED,0DASC;AAED,4CAEC;AAED,sDAUC;AAtCD;;GAEG;AACH,SAAgB,oBAAoB,CAAC,KAAa;IAC9C,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS,EAAE,mBAA4B;IAC3E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC;QAClB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AAED,SAAgB,gBAAgB,CAAC,IAAS;IACtC,OAAO,qBAAqB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC9C,CAAC;AAED,SAAgB,qBAAqB,CAAC,KAAyB,EAAE,sBAA+B,KAAK;IACjG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;QACnB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Network.d.ts b/dist/cjs/wallet/src/models/Network.d.ts new file mode 100644 index 0000000..bd6ce63 --- /dev/null +++ b/dist/cjs/wallet/src/models/Network.d.ts @@ -0,0 +1,41 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Network + */ +export interface Network { + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Network + */ + name: { + [key: string]: string | undefined; + }; + /** + * + * @type {string} + * @memberof Network + */ + logoUri: string; +} +/** + * Check if a given object implements the Network interface. + */ +export declare function instanceOfNetwork(value: object): value is Network; +export declare function NetworkFromJSON(json: any): Network; +export declare function NetworkFromJSONTyped(json: any, ignoreDiscriminator: boolean): Network; +export declare function NetworkToJSON(json: any): Network; +export declare function NetworkToJSONTyped(value?: Network | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=Network.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Network.d.ts.map b/dist/cjs/wallet/src/models/Network.d.ts.map new file mode 100644 index 0000000..e8931db --- /dev/null +++ b/dist/cjs/wallet/src/models/Network.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Network.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/Network.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,IAAI,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC7C;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;CACnB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,OAAO,CAIjE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAElD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,OAAO,CASrF;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAEhD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUpG"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Network.js b/dist/cjs/wallet/src/models/Network.js new file mode 100644 index 0000000..8f0760e --- /dev/null +++ b/dist/cjs/wallet/src/models/Network.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfNetwork = instanceOfNetwork; +exports.NetworkFromJSON = NetworkFromJSON; +exports.NetworkFromJSONTyped = NetworkFromJSONTyped; +exports.NetworkToJSON = NetworkToJSON; +exports.NetworkToJSONTyped = NetworkToJSONTyped; +/** + * Check if a given object implements the Network interface. + */ +function instanceOfNetwork(value) { + if (!('name' in value) || value['name'] === undefined) + return false; + if (!('logoUri' in value) || value['logoUri'] === undefined) + return false; + return true; +} +function NetworkFromJSON(json) { + return NetworkFromJSONTyped(json, false); +} +function NetworkFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'name': json['name'], + 'logoUri': json['logoUri'], + }; +} +function NetworkToJSON(json) { + return NetworkToJSONTyped(json, false); +} +function NetworkToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'name': value['name'], + 'logoUri': value['logoUri'], + }; +} +//# sourceMappingURL=Network.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Network.js.map b/dist/cjs/wallet/src/models/Network.js.map new file mode 100644 index 0000000..7269be5 --- /dev/null +++ b/dist/cjs/wallet/src/models/Network.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Network.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/Network.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,8CAIC;AAED,0CAEC;AAED,oDASC;AAED,sCAEC;AAED,gDAUC;AAtCD;;GAEG;AACH,SAAgB,iBAAiB,CAAC,KAAa;IAC3C,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,eAAe,CAAC,IAAS;IACrC,OAAO,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS,EAAE,mBAA4B;IACxE,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;QACpB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;KAC7B,CAAC;AACN,CAAC;AAED,SAAgB,aAAa,CAAC,IAAS;IACnC,OAAO,kBAAkB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3C,CAAC;AAED,SAAgB,kBAAkB,CAAC,KAAsB,EAAE,sBAA+B,KAAK;IAC3F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Payment.d.ts b/dist/cjs/wallet/src/models/Payment.d.ts new file mode 100644 index 0000000..1969f93 --- /dev/null +++ b/dist/cjs/wallet/src/models/Payment.d.ts @@ -0,0 +1,63 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Payment + */ +export interface Payment { + /** + * Payment amount + * @type {string} + * @memberof Payment + */ + amount: string; + /** + * Payment hash + * @type {string} + * @memberof Payment + */ + hash: string; + /** + * Payment URL + * @type {string} + * @memberof Payment + */ + url: string; + /** + * Sender first name + * @type {string} + * @memberof Payment + */ + senderFirstName: string; + /** + * Payment text + * @type {string} + * @memberof Payment + */ + text: string; + /** + * Share URL + * @type {string} + * @memberof Payment + */ + shareUrl: string; +} +/** + * Check if a given object implements the Payment interface. + */ +export declare function instanceOfPayment(value: object): value is Payment; +export declare function PaymentFromJSON(json: any): Payment; +export declare function PaymentFromJSONTyped(json: any, ignoreDiscriminator: boolean): Payment; +export declare function PaymentToJSON(json: any): Payment; +export declare function PaymentToJSONTyped(value?: Payment | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=Payment.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Payment.d.ts.map b/dist/cjs/wallet/src/models/Payment.d.ts.map new file mode 100644 index 0000000..6acf9bd --- /dev/null +++ b/dist/cjs/wallet/src/models/Payment.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Payment.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/Payment.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACpB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,OAAO,CAQjE;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAElD;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,OAAO,CAarF;AAED,wBAAgB,aAAa,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAEhD;AAED,wBAAgB,kBAAkB,CAAC,KAAK,CAAC,EAAE,OAAO,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAcpG"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Payment.js b/dist/cjs/wallet/src/models/Payment.js new file mode 100644 index 0000000..e1c4033 --- /dev/null +++ b/dist/cjs/wallet/src/models/Payment.js @@ -0,0 +1,71 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPayment = instanceOfPayment; +exports.PaymentFromJSON = PaymentFromJSON; +exports.PaymentFromJSONTyped = PaymentFromJSONTyped; +exports.PaymentToJSON = PaymentToJSON; +exports.PaymentToJSONTyped = PaymentToJSONTyped; +/** + * Check if a given object implements the Payment interface. + */ +function instanceOfPayment(value) { + if (!('amount' in value) || value['amount'] === undefined) + return false; + if (!('hash' in value) || value['hash'] === undefined) + return false; + if (!('url' in value) || value['url'] === undefined) + return false; + if (!('senderFirstName' in value) || value['senderFirstName'] === undefined) + return false; + if (!('text' in value) || value['text'] === undefined) + return false; + if (!('shareUrl' in value) || value['shareUrl'] === undefined) + return false; + return true; +} +function PaymentFromJSON(json) { + return PaymentFromJSONTyped(json, false); +} +function PaymentFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'], + 'hash': json['hash'], + 'url': json['url'], + 'senderFirstName': json['senderFirstName'], + 'text': json['text'], + 'shareUrl': json['shareUrl'], + }; +} +function PaymentToJSON(json) { + return PaymentToJSONTyped(json, false); +} +function PaymentToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'hash': value['hash'], + 'url': value['url'], + 'senderFirstName': value['senderFirstName'], + 'text': value['text'], + 'shareUrl': value['shareUrl'], + }; +} +//# sourceMappingURL=Payment.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Payment.js.map b/dist/cjs/wallet/src/models/Payment.js.map new file mode 100644 index 0000000..a1e0f12 --- /dev/null +++ b/dist/cjs/wallet/src/models/Payment.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Payment.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/Payment.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAkDH,8CAQC;AAED,0CAEC;AAED,oDAaC;AAED,sCAEC;AAED,gDAcC;AAlDD;;GAEG;AACH,SAAgB,iBAAiB,CAAC,KAAa;IAC3C,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClE,IAAI,CAAC,CAAC,iBAAiB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,iBAAiB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1F,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC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/src/models/PaymentRequest.d.ts b/dist/cjs/wallet/src/models/PaymentRequest.d.ts new file mode 100644 index 0000000..905dd2a --- /dev/null +++ b/dist/cjs/wallet/src/models/PaymentRequest.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PaymentRequest + */ +export interface PaymentRequest { + /** + * Payment amount + * @type {string} + * @memberof PaymentRequest + */ + amount: string; +} +/** + * Check if a given object implements the PaymentRequest interface. + */ +export declare function instanceOfPaymentRequest(value: object): value is PaymentRequest; +export declare function PaymentRequestFromJSON(json: any): PaymentRequest; +export declare function PaymentRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaymentRequest; +export declare function PaymentRequestToJSON(json: any): PaymentRequest; +export declare function PaymentRequestToJSONTyped(value?: PaymentRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=PaymentRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/PaymentRequest.d.ts.map b/dist/cjs/wallet/src/models/PaymentRequest.d.ts.map new file mode 100644 index 0000000..f842858 --- /dev/null +++ b/dist/cjs/wallet/src/models/PaymentRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"PaymentRequest.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/PaymentRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAG/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAQnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASlH"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/PaymentRequest.js b/dist/cjs/wallet/src/models/PaymentRequest.js new file mode 100644 index 0000000..0808456 --- /dev/null +++ b/dist/cjs/wallet/src/models/PaymentRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPaymentRequest = instanceOfPaymentRequest; +exports.PaymentRequestFromJSON = PaymentRequestFromJSON; +exports.PaymentRequestFromJSONTyped = PaymentRequestFromJSONTyped; +exports.PaymentRequestToJSON = PaymentRequestToJSON; +exports.PaymentRequestToJSONTyped = PaymentRequestToJSONTyped; +/** + * Check if a given object implements the PaymentRequest interface. + */ +function instanceOfPaymentRequest(value) { + if (!('amount' in value) || value['amount'] === undefined) + return false; + return true; +} +function PaymentRequestFromJSON(json) { + return PaymentRequestFromJSONTyped(json, false); +} +function PaymentRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'], + }; +} +function PaymentRequestToJSON(json) { + return PaymentRequestToJSONTyped(json, false); +} +function PaymentRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + }; +} +//# sourceMappingURL=PaymentRequest.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/PaymentRequest.js.map b/dist/cjs/wallet/src/models/PaymentRequest.js.map new file mode 100644 index 0000000..892e596 --- /dev/null +++ b/dist/cjs/wallet/src/models/PaymentRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PaymentRequest.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/PaymentRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,4DAGC;AAED,wDAEC;AAED,kEAQC;AAED,oDAEC;AAED,8DASC;AAnCD;;GAEG;AACH,SAAgB,wBAAwB,CAAC,KAAa;IAClD,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS;IAC5C,OAAO,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS,EAAE,mBAA4B;IAC/E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;KAC3B,CAAC;AACN,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,KAA6B,EAAE,sBAA+B,KAAK;IACzG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/PhoneOtpSubmitRequest.d.ts b/dist/cjs/wallet/src/models/PhoneOtpSubmitRequest.d.ts new file mode 100644 index 0000000..f061a2c --- /dev/null +++ b/dist/cjs/wallet/src/models/PhoneOtpSubmitRequest.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface PhoneOtpSubmitRequest + */ +export interface PhoneOtpSubmitRequest { + /** + * Confirmation code + * @type {number} + * @memberof PhoneOtpSubmitRequest + */ + code: number; +} +/** + * Check if a given object implements the PhoneOtpSubmitRequest interface. + */ +export declare function instanceOfPhoneOtpSubmitRequest(value: object): value is PhoneOtpSubmitRequest; +export declare function PhoneOtpSubmitRequestFromJSON(json: any): PhoneOtpSubmitRequest; +export declare function PhoneOtpSubmitRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): PhoneOtpSubmitRequest; +export declare function PhoneOtpSubmitRequestToJSON(json: any): PhoneOtpSubmitRequest; +export declare function PhoneOtpSubmitRequestToJSONTyped(value?: PhoneOtpSubmitRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=PhoneOtpSubmitRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/PhoneOtpSubmitRequest.d.ts.map b/dist/cjs/wallet/src/models/PhoneOtpSubmitRequest.d.ts.map new file mode 100644 index 0000000..32f6ec8 --- /dev/null +++ b/dist/cjs/wallet/src/models/PhoneOtpSubmitRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"PhoneOtpSubmitRequest.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/PhoneOtpSubmitRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IAClC;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,wBAAgB,+BAA+B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAG7F;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE9E;AAED,wBAAgB,kCAAkC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,qBAAqB,CAQjH;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,qBAAqB,CAE5E;AAED,wBAAgB,gCAAgC,CAAC,KAAK,CAAC,EAAE,qBAAqB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAShI"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/PhoneOtpSubmitRequest.js b/dist/cjs/wallet/src/models/PhoneOtpSubmitRequest.js new file mode 100644 index 0000000..46e6bc4 --- /dev/null +++ b/dist/cjs/wallet/src/models/PhoneOtpSubmitRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfPhoneOtpSubmitRequest = instanceOfPhoneOtpSubmitRequest; +exports.PhoneOtpSubmitRequestFromJSON = PhoneOtpSubmitRequestFromJSON; +exports.PhoneOtpSubmitRequestFromJSONTyped = PhoneOtpSubmitRequestFromJSONTyped; +exports.PhoneOtpSubmitRequestToJSON = PhoneOtpSubmitRequestToJSON; +exports.PhoneOtpSubmitRequestToJSONTyped = PhoneOtpSubmitRequestToJSONTyped; +/** + * Check if a given object implements the PhoneOtpSubmitRequest interface. + */ +function instanceOfPhoneOtpSubmitRequest(value) { + if (!('code' in value) || value['code'] === undefined) + return false; + return true; +} +function PhoneOtpSubmitRequestFromJSON(json) { + return PhoneOtpSubmitRequestFromJSONTyped(json, false); +} +function PhoneOtpSubmitRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'code': json['code'], + }; +} +function PhoneOtpSubmitRequestToJSON(json) { + return PhoneOtpSubmitRequestToJSONTyped(json, false); +} +function PhoneOtpSubmitRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'code': value['code'], + }; +} +//# sourceMappingURL=PhoneOtpSubmitRequest.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/PhoneOtpSubmitRequest.js.map b/dist/cjs/wallet/src/models/PhoneOtpSubmitRequest.js.map new file mode 100644 index 0000000..34c40b6 --- /dev/null +++ b/dist/cjs/wallet/src/models/PhoneOtpSubmitRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"PhoneOtpSubmitRequest.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/PhoneOtpSubmitRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,0EAGC;AAED,sEAEC;AAED,gFAQC;AAED,kEAEC;AAED,4EASC;AAnCD;;GAEG;AACH,SAAgB,+BAA+B,CAAC,KAAa;IACzD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,SAAgB,kCAAkC,CAAC,IAAS,EAAE,mBAA4B;IACtF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC;KACvB,CAAC;AACN,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,KAAoC,EAAE,sBAA+B,KAAK;IACvH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;KACxB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/ProfileResponse.d.ts b/dist/cjs/wallet/src/models/ProfileResponse.d.ts new file mode 100644 index 0000000..be885aa --- /dev/null +++ b/dist/cjs/wallet/src/models/ProfileResponse.d.ts @@ -0,0 +1,54 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { User } from './User'; +import type { Referral } from './Referral'; +import type { BankInfo } from './BankInfo'; +/** + * + * @export + * @interface ProfileResponse + */ +export interface ProfileResponse { + /** + * + * @type {Referral} + * @memberof ProfileResponse + */ + referral: Referral; + /** + * + * @type {number} + * @memberof ProfileResponse + */ + points: number; + /** + * + * @type {User} + * @memberof ProfileResponse + */ + user: User; + /** + * + * @type {Array} + * @memberof ProfileResponse + */ + bankInfo: Array; +} +/** + * Check if a given object implements the ProfileResponse interface. + */ +export declare function instanceOfProfileResponse(value: object): value is ProfileResponse; +export declare function ProfileResponseFromJSON(json: any): ProfileResponse; +export declare function ProfileResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ProfileResponse; +export declare function ProfileResponseToJSON(json: any): ProfileResponse; +export declare function ProfileResponseToJSONTyped(value?: ProfileResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=ProfileResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/ProfileResponse.d.ts.map b/dist/cjs/wallet/src/models/ProfileResponse.d.ts.map new file mode 100644 index 0000000..8d84e70 --- /dev/null +++ b/dist/cjs/wallet/src/models/ProfileResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ProfileResponse.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/ProfileResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAOnC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQ3C;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,QAAQ,EAAE,QAAQ,CAAC;IACnB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,EAAE,IAAI,CAAC;IACX;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CAC7B;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAMjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAWrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYpH"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/ProfileResponse.js b/dist/cjs/wallet/src/models/ProfileResponse.js new file mode 100644 index 0000000..c7b8974 --- /dev/null +++ b/dist/cjs/wallet/src/models/ProfileResponse.js @@ -0,0 +1,66 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfProfileResponse = instanceOfProfileResponse; +exports.ProfileResponseFromJSON = ProfileResponseFromJSON; +exports.ProfileResponseFromJSONTyped = ProfileResponseFromJSONTyped; +exports.ProfileResponseToJSON = ProfileResponseToJSON; +exports.ProfileResponseToJSONTyped = ProfileResponseToJSONTyped; +const User_1 = require("./User"); +const Referral_1 = require("./Referral"); +const BankInfo_1 = require("./BankInfo"); +/** + * Check if a given object implements the ProfileResponse interface. + */ +function instanceOfProfileResponse(value) { + if (!('referral' in value) || value['referral'] === undefined) + return false; + if (!('points' in value) || value['points'] === undefined) + return false; + if (!('user' in value) || value['user'] === undefined) + return false; + if (!('bankInfo' in value) || value['bankInfo'] === undefined) + return false; + return true; +} +function ProfileResponseFromJSON(json) { + return ProfileResponseFromJSONTyped(json, false); +} +function ProfileResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'referral': (0, Referral_1.ReferralFromJSON)(json['referral']), + 'points': json['points'], + 'user': (0, User_1.UserFromJSON)(json['user']), + 'bankInfo': (json['bankInfo'].map(BankInfo_1.BankInfoFromJSON)), + }; +} +function ProfileResponseToJSON(json) { + return ProfileResponseToJSONTyped(json, false); +} +function ProfileResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'referral': (0, Referral_1.ReferralToJSON)(value['referral']), + 'points': value['points'], + 'user': (0, User_1.UserToJSON)(value['user']), + 'bankInfo': (value['bankInfo'].map(BankInfo_1.BankInfoToJSON)), + }; +} +//# sourceMappingURL=ProfileResponse.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/ProfileResponse.js.map b/dist/cjs/wallet/src/models/ProfileResponse.js.map new file mode 100644 index 0000000..d3dbd97 --- /dev/null +++ b/dist/cjs/wallet/src/models/ProfileResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ProfileResponse.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/ProfileResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4DH,8DAMC;AAED,0DAEC;AAED,oEAWC;AAED,sDAEC;AAED,gEAYC;AAjGD,iCAKgB;AAEhB,yCAKoB;AAEpB,yCAKoB;AAkCpB;;GAEG;AACH,SAAgB,yBAAyB,CAAC,KAAa;IACnD,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS,EAAE,mBAA4B;IAChF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,UAAU,EAAE,IAAA,2BAAgB,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC9C,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,MAAM,EAAE,IAAA,mBAAY,EAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QAClC,UAAU,EAAE,CAAE,IAAI,CAAC,UAAU,CAAgB,CAAC,GAAG,CAAC,2BAAgB,CAAC,CAAC;KACvE,CAAC;AACN,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,KAA8B,EAAE,sBAA+B,KAAK;IAC3G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,UAAU,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAC7C,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,MAAM,EAAE,IAAA,iBAAU,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACjC,UAAU,EAAE,CAAE,KAAK,CAAC,UAAU,CAAgB,CAAC,GAAG,CAAC,yBAAc,CAAC,CAAC;KACtE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Redemption.d.ts b/dist/cjs/wallet/src/models/Redemption.d.ts new file mode 100644 index 0000000..ac7e286 --- /dev/null +++ b/dist/cjs/wallet/src/models/Redemption.d.ts @@ -0,0 +1,74 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Currency } from './Currency'; +import type { Timestamp } from './Timestamp'; +import type { BankInfo } from './BankInfo'; +/** + * + * @export + * @interface Redemption + */ +export interface Redemption { + /** + * + * @type {Currency} + * @memberof Redemption + */ + amount: Currency; + /** + * + * @type {BankInfo} + * @memberof Redemption + */ + destinationBankInfo: BankInfo; + /** + * + * @type {{ [key: string]: string | undefined; }} + * @memberof Redemption + */ + status: { + [key: string]: string | undefined; + }; + /** + * The ID of the redemption request + * @type {string} + * @memberof Redemption + */ + id: string; + /** + * + * @type {Timestamp} + * @memberof Redemption + */ + createdAt: Timestamp; + /** + * + * @type {Timestamp} + * @memberof Redemption + */ + updatedAt?: Timestamp; + /** + * The Paya tracking code + * @type {string} + * @memberof Redemption + */ + payaTrackingCode?: string; +} +/** + * Check if a given object implements the Redemption interface. + */ +export declare function instanceOfRedemption(value: object): value is Redemption; +export declare function RedemptionFromJSON(json: any): Redemption; +export declare function RedemptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Redemption; +export declare function RedemptionToJSON(json: any): Redemption; +export declare function RedemptionToJSONTyped(value?: Redemption | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=Redemption.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Redemption.d.ts.map b/dist/cjs/wallet/src/models/Redemption.d.ts.map new file mode 100644 index 0000000..650be87 --- /dev/null +++ b/dist/cjs/wallet/src/models/Redemption.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Redemption.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/Redemption.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAO7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQ3C;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACvB;;;;OAIG;IACH,MAAM,EAAE,QAAQ,CAAC;IACjB;;;;OAIG;IACH,mBAAmB,EAAE,QAAQ,CAAC;IAC9B;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;IAC/C;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,UAAU,CAOvE;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAExD;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,UAAU,CAc3F;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,UAAU,CAEtD;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,UAAU,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAe1G"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Redemption.js b/dist/cjs/wallet/src/models/Redemption.js new file mode 100644 index 0000000..439d9c6 --- /dev/null +++ b/dist/cjs/wallet/src/models/Redemption.js @@ -0,0 +1,74 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRedemption = instanceOfRedemption; +exports.RedemptionFromJSON = RedemptionFromJSON; +exports.RedemptionFromJSONTyped = RedemptionFromJSONTyped; +exports.RedemptionToJSON = RedemptionToJSON; +exports.RedemptionToJSONTyped = RedemptionToJSONTyped; +const Currency_1 = require("./Currency"); +const Timestamp_1 = require("./Timestamp"); +const BankInfo_1 = require("./BankInfo"); +/** + * Check if a given object implements the Redemption interface. + */ +function instanceOfRedemption(value) { + if (!('amount' in value) || value['amount'] === undefined) + return false; + if (!('destinationBankInfo' in value) || value['destinationBankInfo'] === undefined) + return false; + if (!('status' in value) || value['status'] === undefined) + return false; + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('createdAt' in value) || value['createdAt'] === undefined) + return false; + return true; +} +function RedemptionFromJSON(json) { + return RedemptionFromJSONTyped(json, false); +} +function RedemptionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': (0, Currency_1.CurrencyFromJSON)(json['amount']), + 'destinationBankInfo': (0, BankInfo_1.BankInfoFromJSON)(json['destinationBankInfo']), + 'status': json['status'], + 'id': json['id'], + 'createdAt': (0, Timestamp_1.TimestampFromJSON)(json['createdAt']), + 'updatedAt': json['updatedAt'] == null ? undefined : (0, Timestamp_1.TimestampFromJSON)(json['updatedAt']), + 'payaTrackingCode': json['payaTrackingCode'] == null ? undefined : json['payaTrackingCode'], + }; +} +function RedemptionToJSON(json) { + return RedemptionToJSONTyped(json, false); +} +function RedemptionToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'amount': (0, Currency_1.CurrencyToJSON)(value['amount']), + 'destinationBankInfo': (0, BankInfo_1.BankInfoToJSON)(value['destinationBankInfo']), + 'status': value['status'], + 'id': value['id'], + 'createdAt': (0, Timestamp_1.TimestampToJSON)(value['createdAt']), + 'updatedAt': (0, Timestamp_1.TimestampToJSON)(value['updatedAt']), + 'payaTrackingCode': value['payaTrackingCode'], + }; +} +//# sourceMappingURL=Redemption.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Redemption.js.map b/dist/cjs/wallet/src/models/Redemption.js.map new file mode 100644 index 0000000..e2bff08 --- /dev/null +++ b/dist/cjs/wallet/src/models/Redemption.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Redemption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cjs/wallet/src/models/RedemptionRequest.d.ts new file mode 100644 index 0000000..a450ba4 --- /dev/null +++ b/dist/cjs/wallet/src/models/RedemptionRequest.d.ts @@ -0,0 +1,45 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface RedemptionRequest + */ +export interface RedemptionRequest { + /** + * The amount to be redeemed in ZAR + * @type {string} + * @memberof RedemptionRequest + */ + amount: string; + /** + * The card number to which the redemption amount will be transferred + * @type {string} + * @memberof RedemptionRequest + */ + destinationCardNumber: string; + /** + * The SMS OTP code + * @type {number} + * @memberof RedemptionRequest + */ + smsOtp: number; +} +/** + * Check if a given object implements the RedemptionRequest interface. + */ +export declare function instanceOfRedemptionRequest(value: object): value is RedemptionRequest; +export declare function RedemptionRequestFromJSON(json: any): RedemptionRequest; +export declare function RedemptionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedemptionRequest; +export declare function RedemptionRequestToJSON(json: any): RedemptionRequest; +export declare function RedemptionRequestToJSONTyped(value?: RedemptionRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=RedemptionRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/RedemptionRequest.d.ts.map b/dist/cjs/wallet/src/models/RedemptionRequest.d.ts.map new file mode 100644 index 0000000..7fb494e --- /dev/null +++ b/dist/cjs/wallet/src/models/RedemptionRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"RedemptionRequest.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/RedemptionRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAC9B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAC9B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAKrF;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAUzG;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,4BAA4B,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAWxH"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/RedemptionRequest.js b/dist/cjs/wallet/src/models/RedemptionRequest.js new file mode 100644 index 0000000..c9c5985 --- /dev/null +++ b/dist/cjs/wallet/src/models/RedemptionRequest.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRedemptionRequest = instanceOfRedemptionRequest; +exports.RedemptionRequestFromJSON = RedemptionRequestFromJSON; +exports.RedemptionRequestFromJSONTyped = RedemptionRequestFromJSONTyped; +exports.RedemptionRequestToJSON = RedemptionRequestToJSON; +exports.RedemptionRequestToJSONTyped = RedemptionRequestToJSONTyped; +/** + * Check if a given object implements the RedemptionRequest interface. + */ +function instanceOfRedemptionRequest(value) { + if (!('amount' in value) || value['amount'] === undefined) + return false; + if (!('destinationCardNumber' in value) || value['destinationCardNumber'] === undefined) + return false; + if (!('smsOtp' in value) || value['smsOtp'] === undefined) + return false; + return true; +} +function RedemptionRequestFromJSON(json) { + return RedemptionRequestFromJSONTyped(json, false); +} +function RedemptionRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'amount': json['amount'], + 'destinationCardNumber': json['destinationCardNumber'], + 'smsOtp': json['SmsOtp'], + }; +} +function RedemptionRequestToJSON(json) { + return RedemptionRequestToJSONTyped(json, false); +} +function RedemptionRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'amount': value['amount'], + 'destinationCardNumber': value['destinationCardNumber'], + 'SmsOtp': value['smsOtp'], + }; +} +//# sourceMappingURL=RedemptionRequest.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/RedemptionRequest.js.map b/dist/cjs/wallet/src/models/RedemptionRequest.js.map new file mode 100644 index 0000000..8e090be --- /dev/null +++ b/dist/cjs/wallet/src/models/RedemptionRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"RedemptionRequest.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/RedemptionRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAgCH,kEAKC;AAED,8DAEC;AAED,wEAUC;AAED,0DAEC;AAED,oEAWC;AAzCD;;GAEG;AACH,SAAgB,2BAA2B,CAAC,KAAa;IACrD,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,uBAAuB,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,uBAAuB,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtG,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,uBAAuB,EAAE,IAAI,CAAC,uBAAuB,CAAC;QACtD,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;KAC3B,CAAC;AACN,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,KAAgC,EAAE,sBAA+B,KAAK;IAC/G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,uBAAuB,EAAE,KAAK,CAAC,uBAAuB,CAAC;QACvD,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/RedemptionResponse.d.ts b/dist/cjs/wallet/src/models/RedemptionResponse.d.ts new file mode 100644 index 0000000..7d43188 --- /dev/null +++ b/dist/cjs/wallet/src/models/RedemptionResponse.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Redemption } from './Redemption'; +/** + * + * @export + * @interface RedemptionResponse + */ +export interface RedemptionResponse { + /** + * + * @type {Array} + * @memberof RedemptionResponse + */ + data: Array; +} +/** + * Check if a given object implements the RedemptionResponse interface. + */ +export declare function instanceOfRedemptionResponse(value: object): value is RedemptionResponse; +export declare function RedemptionResponseFromJSON(json: any): RedemptionResponse; +export declare function RedemptionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RedemptionResponse; +export declare function RedemptionResponseToJSON(json: any): RedemptionResponse; +export declare function RedemptionResponseToJSONTyped(value?: RedemptionResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=RedemptionResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/RedemptionResponse.d.ts.map b/dist/cjs/wallet/src/models/RedemptionResponse.d.ts.map new file mode 100644 index 0000000..7671ef0 --- /dev/null +++ b/dist/cjs/wallet/src/models/RedemptionResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"RedemptionResponse.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/RedemptionResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAQ/C;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAGvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAQ3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS1H"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/RedemptionResponse.js b/dist/cjs/wallet/src/models/RedemptionResponse.js new file mode 100644 index 0000000..7f09792 --- /dev/null +++ b/dist/cjs/wallet/src/models/RedemptionResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfRedemptionResponse = instanceOfRedemptionResponse; +exports.RedemptionResponseFromJSON = RedemptionResponseFromJSON; +exports.RedemptionResponseFromJSONTyped = RedemptionResponseFromJSONTyped; +exports.RedemptionResponseToJSON = RedemptionResponseToJSON; +exports.RedemptionResponseToJSONTyped = RedemptionResponseToJSONTyped; +const Redemption_1 = require("./Redemption"); +/** + * Check if a given object implements the RedemptionResponse interface. + */ +function instanceOfRedemptionResponse(value) { + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function RedemptionResponseFromJSON(json) { + return RedemptionResponseFromJSONTyped(json, false); +} +function RedemptionResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': (json['data'].map(Redemption_1.RedemptionFromJSON)), + }; +} +function RedemptionResponseToJSON(json) { + return RedemptionResponseToJSONTyped(json, false); +} +function RedemptionResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'data': (value['data'].map(Redemption_1.RedemptionToJSON)), + }; +} +//# sourceMappingURL=RedemptionResponse.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/RedemptionResponse.js.map b/dist/cjs/wallet/src/models/RedemptionResponse.js.map new file mode 100644 index 0000000..3c7f73b --- /dev/null +++ b/dist/cjs/wallet/src/models/RedemptionResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"RedemptionResponse.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/RedemptionResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,oEAGC;AAED,gEAEC;AAED,0EAQC;AAED,4DAEC;AAED,sEASC;AAxDD,6CAKsB;AAgBtB;;GAEG;AACH,SAAgB,4BAA4B,CAAC,KAAa;IACtD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,IAAS,EAAE,mBAA4B;IACnF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,+BAAkB,CAAC,CAAC;KACjE,CAAC;AACN,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,KAAiC,EAAE,sBAA+B,KAAK;IACjH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,6BAAgB,CAAC,CAAC;KAChE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Referral.d.ts b/dist/cjs/wallet/src/models/Referral.d.ts new file mode 100644 index 0000000..7eddf9c --- /dev/null +++ b/dist/cjs/wallet/src/models/Referral.d.ts @@ -0,0 +1,76 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Timestamp } from './Timestamp'; +/** + * + * @export + * @interface Referral + */ +export interface Referral { + /** + * + * @type {number} + * @memberof Referral + */ + id: number; + /** + * + * @type {number} + * @memberof Referral + */ + referrerId: number; + /** + * + * @type {string} + * @memberof Referral + */ + name?: string | null; + /** + * + * @type {number} + * @memberof Referral + */ + usageLimit: number; + /** + * + * @type {number} + * @memberof Referral + */ + usageCount: number; + /** + * + * @type {Timestamp} + * @memberof Referral + */ + createdAt: Timestamp; + /** + * + * @type {string} + * @memberof Referral + */ + link?: string | null; + /** + * + * @type {string} + * @memberof Referral + */ + shareUrl?: string; +} +/** + * Check if a given object implements the Referral interface. + */ +export declare function instanceOfReferral(value: object): value is Referral; +export declare function ReferralFromJSON(json: any): Referral; +export declare function ReferralFromJSONTyped(json: any, ignoreDiscriminator: boolean): Referral; +export declare function ReferralToJSON(json: any): Referral; +export declare function ReferralToJSONTyped(value?: Referral | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=Referral.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Referral.d.ts.map b/dist/cjs/wallet/src/models/Referral.d.ts.map new file mode 100644 index 0000000..e3fd49f --- /dev/null +++ b/dist/cjs/wallet/src/models/Referral.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Referral.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/Referral.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,QAAQ;IACrB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,QAAQ,CAOnE;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAEpD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,QAAQ,CAevF;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,QAAQ,CAElD;AAED,wBAAgB,mBAAmB,CAAC,KAAK,CAAC,EAAE,QAAQ,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAgBtG"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Referral.js b/dist/cjs/wallet/src/models/Referral.js new file mode 100644 index 0000000..e0e4fbc --- /dev/null +++ b/dist/cjs/wallet/src/models/Referral.js @@ -0,0 +1,74 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReferral = instanceOfReferral; +exports.ReferralFromJSON = ReferralFromJSON; +exports.ReferralFromJSONTyped = ReferralFromJSONTyped; +exports.ReferralToJSON = ReferralToJSON; +exports.ReferralToJSONTyped = ReferralToJSONTyped; +const Timestamp_1 = require("./Timestamp"); +/** + * Check if a given object implements the Referral interface. + */ +function instanceOfReferral(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('referrerId' in value) || value['referrerId'] === undefined) + return false; + if (!('usageLimit' in value) || value['usageLimit'] === undefined) + return false; + if (!('usageCount' in value) || value['usageCount'] === undefined) + return false; + if (!('createdAt' in value) || value['createdAt'] === undefined) + return false; + return true; +} +function ReferralFromJSON(json) { + return ReferralFromJSONTyped(json, false); +} +function ReferralFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + 'referrerId': json['referrerId'], + 'name': json['name'] == null ? undefined : json['name'], + 'usageLimit': json['usageLimit'], + 'usageCount': json['usageCount'], + 'createdAt': (0, Timestamp_1.TimestampFromJSON)(json['createdAt']), + 'link': json['link'] == null ? undefined : json['link'], + 'shareUrl': json['shareUrl'] == null ? undefined : json['shareUrl'], + }; +} +function ReferralToJSON(json) { + return ReferralToJSONTyped(json, false); +} +function ReferralToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'referrerId': value['referrerId'], + 'name': value['name'], + 'usageLimit': value['usageLimit'], + 'usageCount': value['usageCount'], + 'createdAt': (0, Timestamp_1.TimestampToJSON)(value['createdAt']), + 'link': value['link'], + 'shareUrl': value['shareUrl'], + }; +} +//# sourceMappingURL=Referral.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Referral.js.map b/dist/cjs/wallet/src/models/Referral.js.map new file mode 100644 index 0000000..2ffef27 --- /dev/null +++ b/dist/cjs/wallet/src/models/Referral.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Referral.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/Referral.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG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Y,EAAE,IAAI,CAAC,YAAY,CAAC;QAChC,WAAW,EAAE,IAAA,6BAAiB,EAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QACjD,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC;QACvD,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;KACtE,CAAC;AACN,CAAC;AAED,SAAgB,cAAc,CAAC,IAAS;IACpC,OAAO,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5C,CAAC;AAED,SAAgB,mBAAmB,CAAC,KAAuB,EAAE,sBAA+B,KAAK;IAC7F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,YAAY,EAAE,KAAK,CAAC,YAAY,CAAC;QACjC,WAAW,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAChD,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;KAChC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/ReferralResponse.d.ts b/dist/cjs/wallet/src/models/ReferralResponse.d.ts new file mode 100644 index 0000000..81ecbfc --- /dev/null +++ b/dist/cjs/wallet/src/models/ReferralResponse.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Referral } from './Referral'; +/** + * + * @export + * @interface ReferralResponse + */ +export interface ReferralResponse { + /** + * + * @type {Array} + * @memberof ReferralResponse + */ + data: Array; +} +/** + * Check if a given object implements the ReferralResponse interface. + */ +export declare function instanceOfReferralResponse(value: object): value is ReferralResponse; +export declare function ReferralResponseFromJSON(json: any): ReferralResponse; +export declare function ReferralResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ReferralResponse; +export declare function ReferralResponseToJSON(json: any): ReferralResponse; +export declare function ReferralResponseToJSONTyped(value?: ReferralResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=ReferralResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/ReferralResponse.d.ts.map b/dist/cjs/wallet/src/models/ReferralResponse.d.ts.map new file mode 100644 index 0000000..61c34e1 --- /dev/null +++ b/dist/cjs/wallet/src/models/ReferralResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ReferralResponse.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/ReferralResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAQ3C;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CACzB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAGnF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CAQvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAStH"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/ReferralResponse.js b/dist/cjs/wallet/src/models/ReferralResponse.js new file mode 100644 index 0000000..e13f9bf --- /dev/null +++ b/dist/cjs/wallet/src/models/ReferralResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfReferralResponse = instanceOfReferralResponse; +exports.ReferralResponseFromJSON = ReferralResponseFromJSON; +exports.ReferralResponseFromJSONTyped = ReferralResponseFromJSONTyped; +exports.ReferralResponseToJSON = ReferralResponseToJSON; +exports.ReferralResponseToJSONTyped = ReferralResponseToJSONTyped; +const Referral_1 = require("./Referral"); +/** + * Check if a given object implements the ReferralResponse interface. + */ +function instanceOfReferralResponse(value) { + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function ReferralResponseFromJSON(json) { + return ReferralResponseFromJSONTyped(json, false); +} +function ReferralResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': (json['data'].map(Referral_1.ReferralFromJSON)), + }; +} +function ReferralResponseToJSON(json) { + return ReferralResponseToJSONTyped(json, false); +} +function ReferralResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'data': (value['data'].map(Referral_1.ReferralToJSON)), + }; +} +//# sourceMappingURL=ReferralResponse.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/ReferralResponse.js.map b/dist/cjs/wallet/src/models/ReferralResponse.js.map new file mode 100644 index 0000000..3c0394c --- /dev/null +++ b/dist/cjs/wallet/src/models/ReferralResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"ReferralResponse.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/ReferralResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,gEAGC;AAED,4DAEC;AAED,sEAQC;AAED,wDAEC;AAED,kEASC;AAxDD,yCAKoB;AAgBpB;;GAEG;AACH,SAAgB,0BAA0B,CAAC,KAAa;IACpD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS,EAAE,mBAA4B;IACjF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,2BAAgB,CAAC,CAAC;KAC/D,CAAC;AACN,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS;IAC5C,OAAO,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,2BAA2B,CAAC,KAA+B,EAAE,sBAA+B,KAAK;IAC7G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,yBAAc,CAAC,CAAC;KAC9D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/RepayLoanRequest.d.ts b/dist/cjs/wallet/src/models/RepayLoanRequest.d.ts new file mode 100644 index 0000000..360fadf --- /dev/null +++ b/dist/cjs/wallet/src/models/RepayLoanRequest.d.ts @@ -0,0 +1,47 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface RepayLoanRequest + */ +export interface RepayLoanRequest { + /** + * Intent to repay a loan + * @type {string} + * @memberof RepayLoanRequest + */ + intent: RepayLoanRequestIntentEnum; + /** + * The id of a loan + * @type {string} + * @memberof RepayLoanRequest + */ + loanId: string; +} +/** + * @export + */ +export declare const RepayLoanRequestIntentEnum: { + readonly REPAY: "Repay"; + readonly PREVIEW: "Preview"; +}; +export type RepayLoanRequestIntentEnum = typeof RepayLoanRequestIntentEnum[keyof typeof RepayLoanRequestIntentEnum]; +/** + * Check if a given object implements the RepayLoanRequest interface. + */ +export declare function instanceOfRepayLoanRequest(value: object): value is RepayLoanRequest; +export declare function RepayLoanRequestFromJSON(json: any): RepayLoanRequest; +export declare function RepayLoanRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RepayLoanRequest; +export declare function RepayLoanRequestToJSON(json: any): RepayLoanRequest; +export declare function RepayLoanRequestToJSONTyped(value?: RepayLoanRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=RepayLoanRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/RepayLoanRequest.d.ts.map b/dist/cjs/wallet/src/models/RepayLoanRequest.d.ts.map new file mode 100644 index 0000000..c3ffc1d --- /dev/null +++ b/dist/cjs/wallet/src/models/RepayLoanRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"RepayLoanRequest.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/RepayLoanRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC7B;;;;OAIG;IACH,MAAM,EAAE,0BAA0B,CAAC;IACnC;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAGD;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;CAG7B,CAAC;AACX,MAAM,MAAM,0BAA0B,GAAG,OAAO,0BAA0B,CAAC,MAAM,OAAO,0BAA0B,CAAC,CAAC;AAGpH;;GAEG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,gBAAgB,CAInF;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAEpE;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,gBAAgB,CASvG;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,gBAAgB,CAElE;AAED,wBAAgB,2BAA2B,CAAC,KAAK,CAAC,EAAE,gBAAgB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUtH"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/RepayLoanRequest.js b/dist/cjs/wallet/src/models/RepayLoanRequest.js new file mode 100644 index 0000000..36e4c13 --- /dev/null +++ b/dist/cjs/wallet/src/models/RepayLoanRequest.js @@ -0,0 +1,63 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.RepayLoanRequestIntentEnum = void 0; +exports.instanceOfRepayLoanRequest = instanceOfRepayLoanRequest; +exports.RepayLoanRequestFromJSON = RepayLoanRequestFromJSON; +exports.RepayLoanRequestFromJSONTyped = RepayLoanRequestFromJSONTyped; +exports.RepayLoanRequestToJSON = RepayLoanRequestToJSON; +exports.RepayLoanRequestToJSONTyped = RepayLoanRequestToJSONTyped; +/** + * @export + */ +exports.RepayLoanRequestIntentEnum = { + REPAY: 'Repay', + PREVIEW: 'Preview' +}; +/** + * Check if a given object implements the RepayLoanRequest interface. + */ +function instanceOfRepayLoanRequest(value) { + if (!('intent' in value) || value['intent'] === undefined) + return false; + if (!('loanId' in value) || value['loanId'] === undefined) + return false; + return true; +} +function RepayLoanRequestFromJSON(json) { + return RepayLoanRequestFromJSONTyped(json, false); +} +function RepayLoanRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'intent': json['intent'], + 'loanId': json['loanId'], + }; +} +function RepayLoanRequestToJSON(json) { + return RepayLoanRequestToJSONTyped(json, false); +} +function RepayLoanRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'intent': value['intent'], + 'loanId': value['loanId'], + }; +} +//# sourceMappingURL=RepayLoanRequest.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/RepayLoanRequest.js.map b/dist/cjs/wallet/src/models/RepayLoanRequest.js.map new file mode 100644 index 0000000..d3e8303 --- /dev/null +++ b/dist/cjs/wallet/src/models/RepayLoanRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"RepayLoanRequest.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/RepayLoanRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAqCH,gEAIC;AAED,4DAEC;AAED,sEASC;AAED,wDAEC;AAED,kEAUC;AAhDD;;GAEG;AACU,QAAA,0BAA0B,GAAG;IACtC,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;CACZ,CAAC;AAIX;;GAEG;AACH,SAAgB,0BAA0B,CAAC,KAAa;IACpD,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS,EAAE,mBAA4B;IACjF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;KAC3B,CAAC;AACN,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS;IAC5C,OAAO,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,2BAA2B,CAAC,KAA+B,EAAE,sBAA+B,KAAK;IAC7G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/SignUpRequest.d.ts b/dist/cjs/wallet/src/models/SignUpRequest.d.ts new file mode 100644 index 0000000..926c1fa --- /dev/null +++ b/dist/cjs/wallet/src/models/SignUpRequest.d.ts @@ -0,0 +1,39 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SignUpRequest + */ +export interface SignUpRequest { + /** + * user's email + * @type {string} + * @memberof SignUpRequest + */ + email: string; + /** + * user's password + * @type {string} + * @memberof SignUpRequest + */ + password: string; +} +/** + * Check if a given object implements the SignUpRequest interface. + */ +export declare function instanceOfSignUpRequest(value: object): value is SignUpRequest; +export declare function SignUpRequestFromJSON(json: any): SignUpRequest; +export declare function SignUpRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SignUpRequest; +export declare function SignUpRequestToJSON(json: any): SignUpRequest; +export declare function SignUpRequestToJSONTyped(value?: SignUpRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=SignUpRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/SignUpRequest.d.ts.map b/dist/cjs/wallet/src/models/SignUpRequest.d.ts.map new file mode 100644 index 0000000..e688ce4 --- /dev/null +++ b/dist/cjs/wallet/src/models/SignUpRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SignUpRequest.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/SignUpRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAI7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CASjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUhH"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/SignUpRequest.js b/dist/cjs/wallet/src/models/SignUpRequest.js new file mode 100644 index 0000000..bbec2f5 --- /dev/null +++ b/dist/cjs/wallet/src/models/SignUpRequest.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSignUpRequest = instanceOfSignUpRequest; +exports.SignUpRequestFromJSON = SignUpRequestFromJSON; +exports.SignUpRequestFromJSONTyped = SignUpRequestFromJSONTyped; +exports.SignUpRequestToJSON = SignUpRequestToJSON; +exports.SignUpRequestToJSONTyped = SignUpRequestToJSONTyped; +/** + * Check if a given object implements the SignUpRequest interface. + */ +function instanceOfSignUpRequest(value) { + if (!('email' in value) || value['email'] === undefined) + return false; + if (!('password' in value) || value['password'] === undefined) + return false; + return true; +} +function SignUpRequestFromJSON(json) { + return SignUpRequestFromJSONTyped(json, false); +} +function SignUpRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'email': json['email'], + 'password': json['password'], + }; +} +function SignUpRequestToJSON(json) { + return SignUpRequestToJSONTyped(json, false); +} +function SignUpRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'email': value['email'], + 'password': value['password'], + }; +} +//# sourceMappingURL=SignUpRequest.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/SignUpRequest.js.map b/dist/cjs/wallet/src/models/SignUpRequest.js.map new file mode 100644 index 0000000..4a4e5b0 --- /dev/null +++ b/dist/cjs/wallet/src/models/SignUpRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SignUpRequest.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/SignUpRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,0DAIC;AAED,sDAEC;AAED,gEASC;AAED,kDAEC;AAED,4DAUC;AAtCD;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS,EAAE,mBAA4B;IAC9E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QACtB,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;KAC/B,CAAC;AACN,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,KAA4B,EAAE,sBAA+B,KAAK;IACvG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;KAChC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/SimpleResponse.d.ts b/dist/cjs/wallet/src/models/SimpleResponse.d.ts new file mode 100644 index 0000000..5c3db78 --- /dev/null +++ b/dist/cjs/wallet/src/models/SimpleResponse.d.ts @@ -0,0 +1,35 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SimpleResponse + */ +export interface SimpleResponse { + /** + * Localized messages + * @type {{ [key: string]: string | undefined; }} + * @memberof SimpleResponse + */ + messages: { + [key: string]: string | undefined; + }; +} +/** + * Check if a given object implements the SimpleResponse interface. + */ +export declare function instanceOfSimpleResponse(value: object): value is SimpleResponse; +export declare function SimpleResponseFromJSON(json: any): SimpleResponse; +export declare function SimpleResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SimpleResponse; +export declare function SimpleResponseToJSON(json: any): SimpleResponse; +export declare function SimpleResponseToJSONTyped(value?: SimpleResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=SimpleResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/SimpleResponse.d.ts.map b/dist/cjs/wallet/src/models/SimpleResponse.d.ts.map new file mode 100644 index 0000000..8752bca --- /dev/null +++ b/dist/cjs/wallet/src/models/SimpleResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SimpleResponse.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/SimpleResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC3B;;;;OAIG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC;KAAE,CAAC;CACpD;AAED;;GAEG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,cAAc,CAG/E;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAEhE;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,cAAc,CAQnG;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,cAAc,CAE9D;AAED,wBAAgB,yBAAyB,CAAC,KAAK,CAAC,EAAE,cAAc,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASlH"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/SimpleResponse.js b/dist/cjs/wallet/src/models/SimpleResponse.js new file mode 100644 index 0000000..cb1c036 --- /dev/null +++ b/dist/cjs/wallet/src/models/SimpleResponse.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfSimpleResponse = instanceOfSimpleResponse; +exports.SimpleResponseFromJSON = SimpleResponseFromJSON; +exports.SimpleResponseFromJSONTyped = SimpleResponseFromJSONTyped; +exports.SimpleResponseToJSON = SimpleResponseToJSON; +exports.SimpleResponseToJSONTyped = SimpleResponseToJSONTyped; +/** + * Check if a given object implements the SimpleResponse interface. + */ +function instanceOfSimpleResponse(value) { + if (!('messages' in value) || value['messages'] === undefined) + return false; + return true; +} +function SimpleResponseFromJSON(json) { + return SimpleResponseFromJSONTyped(json, false); +} +function SimpleResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'messages': json['messages'], + }; +} +function SimpleResponseToJSON(json) { + return SimpleResponseToJSONTyped(json, false); +} +function SimpleResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'messages': value['messages'], + }; +} +//# sourceMappingURL=SimpleResponse.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/SimpleResponse.js.map b/dist/cjs/wallet/src/models/SimpleResponse.js.map new file mode 100644 index 0000000..235f875 --- /dev/null +++ b/dist/cjs/wallet/src/models/SimpleResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SimpleResponse.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/SimpleResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,4DAGC;AAED,wDAEC;AAED,kEAQC;AAED,oDAEC;AAED,8DASC;AAnCD;;GAEG;AACH,SAAgB,wBAAwB,CAAC,KAAa;IAClD,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS;IAC5C,OAAO,2BAA2B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACpD,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS,EAAE,mBAA4B;IAC/E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC;KAC/B,CAAC;AACN,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,KAA6B,EAAE,sBAA+B,KAAK;IACzG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;KAChC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/SwapRequest.d.ts b/dist/cjs/wallet/src/models/SwapRequest.d.ts new file mode 100644 index 0000000..b4e9c19 --- /dev/null +++ b/dist/cjs/wallet/src/models/SwapRequest.d.ts @@ -0,0 +1,80 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface SwapRequest + */ +export interface SwapRequest { + /** + * Intent to swap + * @type {string} + * @memberof SwapRequest + */ + intent: SwapRequestIntentEnum; + /** + * Quote ID, required if intent is Swap + * @type {string} + * @memberof SwapRequest + */ + quoteId?: string; + /** + * Trade type + * @type {string} + * @memberof SwapRequest + */ + tradeType?: SwapRequestTradeTypeEnum; + /** + * Coin symbol to swap from + * @type {string} + * @memberof SwapRequest + */ + _in?: string; + /** + * Coin symbol to swap to + * @type {string} + * @memberof SwapRequest + */ + out?: string; + /** + * Amount to swap + * @type {string} + * @memberof SwapRequest + */ + amount?: string; +} +/** + * @export + */ +export declare const SwapRequestIntentEnum: { + readonly SWAP: "Swap"; + readonly QUOTE: "Quote"; + readonly PREVIEW: "Preview"; +}; +export type SwapRequestIntentEnum = typeof SwapRequestIntentEnum[keyof typeof SwapRequestIntentEnum]; +/** + * @export + */ +export declare const SwapRequestTradeTypeEnum: { + readonly EXACT_INPUT: "ExactInput"; + readonly EXACT_OUTPUT: "ExactOutput"; +}; +export type SwapRequestTradeTypeEnum = typeof SwapRequestTradeTypeEnum[keyof typeof SwapRequestTradeTypeEnum]; +/** + * Check if a given object implements the SwapRequest interface. + */ +export declare function instanceOfSwapRequest(value: object): value is SwapRequest; +export declare function SwapRequestFromJSON(json: any): SwapRequest; +export declare function SwapRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapRequest; +export declare function SwapRequestToJSON(json: any): SwapRequest; +export declare function SwapRequestToJSONTyped(value?: SwapRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=SwapRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/SwapRequest.d.ts.map b/dist/cjs/wallet/src/models/SwapRequest.d.ts.map new file mode 100644 index 0000000..bb3afc3 --- /dev/null +++ b/dist/cjs/wallet/src/models/SwapRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SwapRequest.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/SwapRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,MAAM,EAAE,qBAAqB,CAAC;IAC9B;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,wBAAwB,CAAC;IACrC;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAGD;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;;CAIxB,CAAC;AACX,MAAM,MAAM,qBAAqB,GAAG,OAAO,qBAAqB,CAAC,MAAM,OAAO,qBAAqB,CAAC,CAAC;AAErG;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;CAG3B,CAAC;AACX,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC;AAG9G;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAGzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAa7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAc5G"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/SwapRequest.js b/dist/cjs/wallet/src/models/SwapRequest.js new file mode 100644 index 0000000..fd95561 --- /dev/null +++ b/dist/cjs/wallet/src/models/SwapRequest.js @@ -0,0 +1,77 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SwapRequestTradeTypeEnum = exports.SwapRequestIntentEnum = void 0; +exports.instanceOfSwapRequest = instanceOfSwapRequest; +exports.SwapRequestFromJSON = SwapRequestFromJSON; +exports.SwapRequestFromJSONTyped = SwapRequestFromJSONTyped; +exports.SwapRequestToJSON = SwapRequestToJSON; +exports.SwapRequestToJSONTyped = SwapRequestToJSONTyped; +/** + * @export + */ +exports.SwapRequestIntentEnum = { + SWAP: 'Swap', + QUOTE: 'Quote', + PREVIEW: 'Preview' +}; +/** + * @export + */ +exports.SwapRequestTradeTypeEnum = { + EXACT_INPUT: 'ExactInput', + EXACT_OUTPUT: 'ExactOutput' +}; +/** + * Check if a given object implements the SwapRequest interface. + */ +function instanceOfSwapRequest(value) { + if (!('intent' in value) || value['intent'] === undefined) + return false; + return true; +} +function SwapRequestFromJSON(json) { + return SwapRequestFromJSONTyped(json, false); +} +function SwapRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'intent': json['intent'], + 'quoteId': json['quoteId'] == null ? undefined : json['quoteId'], + 'tradeType': json['tradeType'] == null ? undefined : json['tradeType'], + '_in': json['in'] == null ? undefined : json['in'], + 'out': json['out'] == null ? undefined : json['out'], + 'amount': json['amount'] == null ? undefined : json['amount'], + }; +} +function SwapRequestToJSON(json) { + return SwapRequestToJSONTyped(json, false); +} +function SwapRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'intent': value['intent'], + 'quoteId': value['quoteId'], + 'tradeType': value['tradeType'], + 'in': value['_in'], + 'out': value['out'], + 'amount': value['amount'], + }; +} +//# sourceMappingURL=SwapRequest.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/SwapRequest.js.map b/dist/cjs/wallet/src/models/SwapRequest.js.map new file mode 100644 index 0000000..5f0d716 --- /dev/null +++ b/dist/cjs/wallet/src/models/SwapRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SwapRequest.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/SwapRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAuEH,sDAGC;AAED,kDAEC;AAED,4DAaC;AAED,8CAEC;AAED,wDAcC;AAjED;;GAEG;AACU,QAAA,qBAAqB,GAAG;IACjC,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;CACZ,CAAC;AAGX;;GAEG;AACU,QAAA,wBAAwB,GAAG;IACpC,WAAW,EAAE,YAAY;IACzB,YAAY,EAAE,aAAa;CACrB,CAAC;AAIX;;GAEG;AACH,SAAgB,qBAAqB,CAAC,KAAa;IAC/C,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,C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E,KAAK,CAAC,SAAS,CAAC;QAC3B,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC;QAClB,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC;QACnB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/SwapResponse.d.ts b/dist/cjs/wallet/src/models/SwapResponse.d.ts new file mode 100644 index 0000000..3263fc5 --- /dev/null +++ b/dist/cjs/wallet/src/models/SwapResponse.d.ts @@ -0,0 +1,116 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Symbol } from './Symbol'; +import type { Currency } from './Currency'; +import type { Timestamp } from './Timestamp'; +/** + * + * @export + * @interface SwapResponse + */ +export interface SwapResponse { + /** + * + * @type {string} + * @memberof SwapResponse + */ + id: string; + /** + * + * @type {string} + * @memberof SwapResponse + */ + tradeType: SwapResponseTradeTypeEnum; + /** + * + * @type {Symbol} + * @memberof SwapResponse + */ + _in: Symbol; + /** + * + * @type {Symbol} + * @memberof SwapResponse + */ + out: Symbol; + /** + * + * @type {string} + * @memberof SwapResponse + */ + amount: string; + /** + * + * @type {string} + * @memberof SwapResponse + */ + quote: string; + /** + * + * @type {string} + * @memberof SwapResponse + */ + rate: string; + /** + * + * @type {string} + * @memberof SwapResponse + */ + inputBalanceAfterSwap?: string; + /** + * + * @type {string} + * @memberof SwapResponse + */ + outputBalanceAfterSwap?: string; + /** + * + * @type {Timestamp} + * @memberof SwapResponse + */ + createdAt: Timestamp; + /** + * + * @type {Timestamp} + * @memberof SwapResponse + */ + expiresAt: Timestamp; + /** + * + * @type {Timestamp} + * @memberof SwapResponse + */ + executedAt?: Timestamp; + /** + * + * @type {Currency} + * @memberof SwapResponse + */ + value: Currency; +} +/** + * @export + */ +export declare const SwapResponseTradeTypeEnum: { + readonly EXACT_INPUT: "ExactInput"; + readonly EXACT_OUTPUT: "ExactOutput"; +}; +export type SwapResponseTradeTypeEnum = typeof SwapResponseTradeTypeEnum[keyof typeof SwapResponseTradeTypeEnum]; +/** + * Check if a given object implements the SwapResponse interface. + */ +export declare function instanceOfSwapResponse(value: object): value is SwapResponse; +export declare function SwapResponseFromJSON(json: any): SwapResponse; +export declare function SwapResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapResponse; +export declare function SwapResponseToJSON(json: any): SwapResponse; +export declare function SwapResponseToJSONTyped(value?: SwapResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=SwapResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/SwapResponse.d.ts.map b/dist/cjs/wallet/src/models/SwapResponse.d.ts.map new file mode 100644 index 0000000..8f2ccd3 --- /dev/null +++ b/dist/cjs/wallet/src/models/SwapResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"SwapResponse.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/SwapResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAOvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,SAAS,EAAE,yBAAyB,CAAC;IACrC;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B;;;;OAIG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;;;OAIG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,SAAS,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB;;;;OAIG;IACH,KAAK,EAAE,QAAQ,CAAC;CACnB;AAGD;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;CAG5B,CAAC;AACX,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AAGjH;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAY3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAoB/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAqB9G"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/SwapResponse.js b/dist/cjs/wallet/src/models/SwapResponse.js new file mode 100644 index 0000000..6f6a731 --- /dev/null +++ b/dist/cjs/wallet/src/models/SwapResponse.js @@ -0,0 +1,104 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.SwapResponseTradeTypeEnum = void 0; +exports.instanceOfSwapResponse = instanceOfSwapResponse; +exports.SwapResponseFromJSON = SwapResponseFromJSON; +exports.SwapResponseFromJSONTyped = SwapResponseFromJSONTyped; +exports.SwapResponseToJSON = SwapResponseToJSON; +exports.SwapResponseToJSONTyped = SwapResponseToJSONTyped; +const Symbol_1 = require("./Symbol"); +const Currency_1 = require("./Currency"); +const Timestamp_1 = require("./Timestamp"); +/** + * @export + */ +exports.SwapResponseTradeTypeEnum = { + EXACT_INPUT: 'ExactInput', + EXACT_OUTPUT: 'ExactOutput' +}; +/** + * Check if a given object implements the SwapResponse interface. + */ +function instanceOfSwapResponse(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('tradeType' in value) || value['tradeType'] === undefined) + return false; + if (!('_in' in value) || value['_in'] === undefined) + return false; + if (!('out' in value) || value['out'] === undefined) + return false; + if (!('amount' in value) || value['amount'] === undefined) + return false; + if (!('quote' in value) || value['quote'] === undefined) + return false; + if (!('rate' in value) || value['rate'] === undefined) + return false; + if (!('createdAt' in value) || value['createdAt'] === undefined) + return false; + if (!('expiresAt' in value) || value['expiresAt'] === undefined) + return false; + if (!('value' in value) || value['value'] === undefined) + return false; + return true; +} +function SwapResponseFromJSON(json) { + return SwapResponseFromJSONTyped(json, false); +} +function SwapResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + 'tradeType': json['tradeType'], + '_in': (0, Symbol_1.SymbolFromJSON)(json['in']), + 'out': (0, Symbol_1.SymbolFromJSON)(json['out']), + 'amount': json['amount'], + 'quote': json['quote'], + 'rate': json['rate'], + 'inputBalanceAfterSwap': json['inputBalanceAfterSwap'] == null ? undefined : json['inputBalanceAfterSwap'], + 'outputBalanceAfterSwap': json['outputBalanceAfterSwap'] == null ? undefined : json['outputBalanceAfterSwap'], + 'createdAt': (0, Timestamp_1.TimestampFromJSON)(json['createdAt']), + 'expiresAt': (0, Timestamp_1.TimestampFromJSON)(json['expiresAt']), + 'executedAt': json['executedAt'] == null ? undefined : (0, Timestamp_1.TimestampFromJSON)(json['executedAt']), + 'value': (0, Currency_1.CurrencyFromJSON)(json['value']), + }; +} +function SwapResponseToJSON(json) { + return SwapResponseToJSONTyped(json, false); +} +function SwapResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'tradeType': value['tradeType'], + 'in': (0, Symbol_1.SymbolToJSON)(value['_in']), + 'out': (0, Symbol_1.SymbolToJSON)(value['out']), + 'amount': value['amount'], + 'quote': value['quote'], + 'rate': value['rate'], + 'inputBalanceAfterSwap': value['inputBalanceAfterSwap'], + 'outputBalanceAfterSwap': value['outputBalanceAfterSwap'], + 'createdAt': (0, Timestamp_1.TimestampToJSON)(value['createdAt']), + 'expiresAt': (0, Timestamp_1.TimestampToJSON)(value['expiresAt']), + 'executedAt': (0, Timestamp_1.TimestampToJSON)(value['executedAt']), + 'value': (0, Currency_1.CurrencyToJSON)(value['value']), + }; +} +//# sourceMappingURL=SwapResponse.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/SwapResponse.js.map b/dist/cjs/wallet/src/models/SwapResponse.js.map new file mode 100644 index 0000000..79ca848 --- /dev/null +++ b/dist/cjs/wallet/src/models/SwapResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"SwapResponse.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/SwapResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AA6HH,wDAYC;AAED,oDAEC;AAED,8DAoBC;AAED,gDAEC;AAED,0DAqBC;AA1LD,qCAKkB;AAElB,yCAKoB;AAEpB,2CAKqB;AAyFrB;;GAEG;AACU,QAAA,yBAAyB,GAAG;IACrC,WAAW,EAAE,YAAY;IACzB,YAAY,EAAE,aA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AAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,KAA2B,EAAE,sBAA+B,KAAK;IACrG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,IAAI,EAAE,IAAA,qBAAY,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAChC,KAAK,EAAE,IAAA,qBAAY,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACjC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,uBAAuB,EAAE,KAAK,CAAC,uBAAuB,CAAC;QACvD,wBAAwB,EAAE,KAAK,CAAC,wBAAwB,CAAC;QACzD,WAAW,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAChD,WAAW,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAChD,YAAY,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,YAAY,CAAC,CAAC;QAClD,OAAO,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;KAC1C,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Symbol.d.ts b/dist/cjs/wallet/src/models/Symbol.d.ts new file mode 100644 index 0000000..bddb649 --- /dev/null +++ b/dist/cjs/wallet/src/models/Symbol.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * Symbol representation + * @export + */ +export declare const Symbol: { + readonly USD: "USD"; + readonly DAI: "DAI"; + readonly USDT: "USDT"; + readonly USDC: "USDC"; + readonly WBTC: "WBTC"; + readonly ETH: "ETH"; + readonly WETH: "WETH"; + readonly ZAR: "ZAR"; + readonly TMN: "TMN"; +}; +export type Symbol = typeof Symbol[keyof typeof Symbol]; +export declare function instanceOfSymbol(value: any): boolean; +export declare function SymbolFromJSON(json: any): Symbol; +export declare function SymbolFromJSONTyped(json: any, ignoreDiscriminator: boolean): Symbol; +export declare function SymbolToJSON(value?: Symbol | null): any; +export declare function SymbolToJSONTyped(value: any, ignoreDiscriminator: boolean): Symbol; +//# sourceMappingURL=Symbol.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Symbol.d.ts.map b/dist/cjs/wallet/src/models/Symbol.d.ts.map new file mode 100644 index 0000000..b5d7a7c --- /dev/null +++ b/dist/cjs/wallet/src/models/Symbol.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Symbol.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/Symbol.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;CAUT,CAAC;AACX,MAAM,MAAM,MAAM,GAAG,OAAO,MAAM,CAAC,MAAM,OAAO,MAAM,CAAC,CAAC;AAGxD,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CASpD;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,GAAG,GAAG,MAAM,CAEhD;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,MAAM,CAEnF;AAED,wBAAgB,YAAY,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,GAAG,CAEvD;AAED,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,MAAM,CAElF"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Symbol.js b/dist/cjs/wallet/src/models/Symbol.js new file mode 100644 index 0000000..fec2431 --- /dev/null +++ b/dist/cjs/wallet/src/models/Symbol.js @@ -0,0 +1,59 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.Symbol = void 0; +exports.instanceOfSymbol = instanceOfSymbol; +exports.SymbolFromJSON = SymbolFromJSON; +exports.SymbolFromJSONTyped = SymbolFromJSONTyped; +exports.SymbolToJSON = SymbolToJSON; +exports.SymbolToJSONTyped = SymbolToJSONTyped; +/** + * Symbol representation + * @export + */ +exports.Symbol = { + USD: 'USD', + DAI: 'DAI', + USDT: 'USDT', + USDC: 'USDC', + WBTC: 'WBTC', + ETH: 'ETH', + WETH: 'WETH', + ZAR: 'ZAR', + TMN: 'TMN' +}; +function instanceOfSymbol(value) { + for (const key in exports.Symbol) { + if (Object.prototype.hasOwnProperty.call(exports.Symbol, key)) { + if (exports.Symbol[key] === value) { + return true; + } + } + } + return false; +} +function SymbolFromJSON(json) { + return SymbolFromJSONTyped(json, false); +} +function SymbolFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function SymbolToJSON(value) { + return value; +} +function SymbolToJSONTyped(value, ignoreDiscriminator) { + return value; +} +//# sourceMappingURL=Symbol.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Symbol.js.map b/dist/cjs/wallet/src/models/Symbol.js.map new file mode 100644 index 0000000..5c6809a --- /dev/null +++ b/dist/cjs/wallet/src/models/Symbol.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Symbol.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/Symbol.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAqBH,4CASC;AAED,wCAEC;AAED,kDAEC;AAED,oCAEC;AAED,8CAEC;AA3CD;;;GAGG;AACU,QAAA,MAAM,GAAG;IAClB,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;IACZ,GAAG,EAAE,KAAK;IACV,GAAG,EAAE,KAAK;CACJ,CAAC;AAIX,SAAgB,gBAAgB,CAAC,KAAU;IACvC,KAAK,MAAM,GAAG,IAAI,cAAM,EAAE,CAAC;QACvB,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,cAAM,EAAE,GAAG,CAAC,EAAE,CAAC;YACpD,IAAI,cAAM,CAAC,GAA0B,CAAC,KAAK,KAAK,EAAE,CAAC;gBAC/C,OAAO,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAgB,cAAc,CAAC,IAAS;IACpC,OAAO,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5C,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS,EAAE,mBAA4B;IACvE,OAAO,IAAc,CAAC;AAC1B,CAAC;AAED,SAAgB,YAAY,CAAC,KAAqB;IAC9C,OAAO,KAAY,CAAC;AACxB,CAAC;AAED,SAAgB,iBAAiB,CAAC,KAAU,EAAE,mBAA4B;IACtE,OAAO,KAAe,CAAC;AAC3B,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Task.d.ts b/dist/cjs/wallet/src/models/Task.d.ts new file mode 100644 index 0000000..afd65cf --- /dev/null +++ b/dist/cjs/wallet/src/models/Task.d.ts @@ -0,0 +1,58 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Timestamp } from './Timestamp'; +/** + * + * @export + * @interface Task + */ +export interface Task { + /** + * Task ID + * @type {string} + * @memberof Task + */ + id: string; + /** + * Task description + * @type {string} + * @memberof Task + */ + description: string; + /** + * Task reward + * @type {number} + * @memberof Task + */ + points: number; + /** + * Task status. Possible values "Pending", "Completed" + * @type {string} + * @memberof Task + */ + status: string; + /** + * + * @type {Timestamp} + * @memberof Task + */ + completedAt?: Timestamp; +} +/** + * Check if a given object implements the Task interface. + */ +export declare function instanceOfTask(value: object): value is Task; +export declare function TaskFromJSON(json: any): Task; +export declare function TaskFromJSONTyped(json: any, ignoreDiscriminator: boolean): Task; +export declare function TaskToJSON(json: any): Task; +export declare function TaskToJSONTyped(value?: Task | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=Task.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Task.d.ts.map b/dist/cjs/wallet/src/models/Task.d.ts.map new file mode 100644 index 0000000..8cca12a --- /dev/null +++ b/dist/cjs/wallet/src/models/Task.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Task.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/Task.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACjB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,IAAI,CAM3D;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAE5C;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,IAAI,CAY/E;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAE1C;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAa9F"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Task.js b/dist/cjs/wallet/src/models/Task.js new file mode 100644 index 0000000..e257c4c --- /dev/null +++ b/dist/cjs/wallet/src/models/Task.js @@ -0,0 +1,66 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfTask = instanceOfTask; +exports.TaskFromJSON = TaskFromJSON; +exports.TaskFromJSONTyped = TaskFromJSONTyped; +exports.TaskToJSON = TaskToJSON; +exports.TaskToJSONTyped = TaskToJSONTyped; +const Timestamp_1 = require("./Timestamp"); +/** + * Check if a given object implements the Task interface. + */ +function instanceOfTask(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('description' in value) || value['description'] === undefined) + return false; + if (!('points' in value) || value['points'] === undefined) + return false; + if (!('status' in value) || value['status'] === undefined) + return false; + return true; +} +function TaskFromJSON(json) { + return TaskFromJSONTyped(json, false); +} +function TaskFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + 'description': json['description'], + 'points': json['points'], + 'status': json['status'], + 'completedAt': json['completedAt'] == null ? undefined : (0, Timestamp_1.TimestampFromJSON)(json['completedAt']), + }; +} +function TaskToJSON(json) { + return TaskToJSONTyped(json, false); +} +function TaskToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'description': value['description'], + 'points': value['points'], + 'status': value['status'], + 'completedAt': (0, Timestamp_1.TimestampToJSON)(value['completedAt']), + }; +} +//# sourceMappingURL=Task.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Task.js.map b/dist/cjs/wallet/src/models/Task.js.map new file mode 100644 index 0000000..ee8f167 --- /dev/null +++ b/dist/cjs/wallet/src/models/Task.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Task.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/Task.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoDH,wCAMC;AAED,oCAEC;AAED,8CAYC;AAED,gCAEC;AAED,0CAaC;AA3FD,2CAKqB;AAwCrB;;GAEG;AACH,SAAgB,cAAc,CAAC,KAAa;IACxC,IAAI,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChE,IAAI,CAAC,CAAC,aAAa,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,aAAa,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAClF,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,YAAY,CAAC,IAAS;IAClC,OAAO,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1C,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS,EAAE,mBAA4B;IACrE,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;QAChB,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC;QAClC,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAA,6BAAiB,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC;KAClG,CAAC;AACN,CAAC;AAED,SAAgB,UAAU,CAAC,IAAS;IAChC,OAAO,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxC,CAAC;AAED,SAAgB,eAAe,CAAC,KAAmB,EAAE,sBAA+B,KAAK;IACrF,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,aAAa,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,aAAa,CAAC,CAAC;KACvD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/TaskResponse.d.ts b/dist/cjs/wallet/src/models/TaskResponse.d.ts new file mode 100644 index 0000000..f7bee70 --- /dev/null +++ b/dist/cjs/wallet/src/models/TaskResponse.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Task } from './Task'; +/** + * + * @export + * @interface TaskResponse + */ +export interface TaskResponse { + /** + * + * @type {Array} + * @memberof TaskResponse + */ + data: Array; +} +/** + * Check if a given object implements the TaskResponse interface. + */ +export declare function instanceOfTaskResponse(value: object): value is TaskResponse; +export declare function TaskResponseFromJSON(json: any): TaskResponse; +export declare function TaskResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TaskResponse; +export declare function TaskResponseToJSON(json: any): TaskResponse; +export declare function TaskResponseToJSONTyped(value?: TaskResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=TaskResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/TaskResponse.d.ts.map b/dist/cjs/wallet/src/models/TaskResponse.d.ts.map new file mode 100644 index 0000000..aa5ff9f --- /dev/null +++ b/dist/cjs/wallet/src/models/TaskResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TaskResponse.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/TaskResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAQnC;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,YAAY,CAG3E;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE5D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,YAAY,CAQ/F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,GAAG,GAAG,YAAY,CAE1D;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,YAAY,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS9G"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/TaskResponse.js b/dist/cjs/wallet/src/models/TaskResponse.js new file mode 100644 index 0000000..6341ef4 --- /dev/null +++ b/dist/cjs/wallet/src/models/TaskResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfTaskResponse = instanceOfTaskResponse; +exports.TaskResponseFromJSON = TaskResponseFromJSON; +exports.TaskResponseFromJSONTyped = TaskResponseFromJSONTyped; +exports.TaskResponseToJSON = TaskResponseToJSON; +exports.TaskResponseToJSONTyped = TaskResponseToJSONTyped; +const Task_1 = require("./Task"); +/** + * Check if a given object implements the TaskResponse interface. + */ +function instanceOfTaskResponse(value) { + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function TaskResponseFromJSON(json) { + return TaskResponseFromJSONTyped(json, false); +} +function TaskResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': (json['data'].map(Task_1.TaskFromJSON)), + }; +} +function TaskResponseToJSON(json) { + return TaskResponseToJSONTyped(json, false); +} +function TaskResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'data': (value['data'].map(Task_1.TaskToJSON)), + }; +} +//# sourceMappingURL=TaskResponse.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/TaskResponse.js.map b/dist/cjs/wallet/src/models/TaskResponse.js.map new file mode 100644 index 0000000..101e516 --- /dev/null +++ b/dist/cjs/wallet/src/models/TaskResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TaskResponse.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/TaskResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,wDAGC;AAED,oDAEC;AAED,8DAQC;AAED,gDAEC;AAED,0DASC;AAxDD,iCAKgB;AAgBhB;;GAEG;AACH,SAAgB,sBAAsB,CAAC,KAAa;IAChD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,oBAAoB,CAAC,IAAS;IAC1C,OAAO,yBAAyB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAClD,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS,EAAE,mBAA4B;IAC7E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,mBAAY,CAAC,CAAC;KAC3D,CAAC;AACN,CAAC;AAED,SAAgB,kBAAkB,CAAC,IAAS;IACxC,OAAO,uBAAuB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAChD,CAAC;AAED,SAAgB,uBAAuB,CAAC,KAA2B,EAAE,sBAA+B,KAAK;IACrG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,iBAAU,CAAC,CAAC;KAC1D,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/TelegramProfile.d.ts b/dist/cjs/wallet/src/models/TelegramProfile.d.ts new file mode 100644 index 0000000..3303137 --- /dev/null +++ b/dist/cjs/wallet/src/models/TelegramProfile.d.ts @@ -0,0 +1,51 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface TelegramProfile + */ +export interface TelegramProfile { + /** + * + * @type {string} + * @memberof TelegramProfile + */ + username?: string | null; + /** + * + * @type {string} + * @memberof TelegramProfile + */ + firstName: string; + /** + * + * @type {string} + * @memberof TelegramProfile + */ + lastName?: string | null; + /** + * + * @type {string} + * @memberof TelegramProfile + */ + photoUrl?: string | null; +} +/** + * Check if a given object implements the TelegramProfile interface. + */ +export declare function instanceOfTelegramProfile(value: object): value is TelegramProfile; +export declare function TelegramProfileFromJSON(json: any): TelegramProfile; +export declare function TelegramProfileFromJSONTyped(json: any, ignoreDiscriminator: boolean): TelegramProfile; +export declare function TelegramProfileToJSON(json: any): TelegramProfile; +export declare function TelegramProfileToJSONTyped(value?: TelegramProfile | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=TelegramProfile.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/TelegramProfile.d.ts.map b/dist/cjs/wallet/src/models/TelegramProfile.d.ts.map new file mode 100644 index 0000000..92c5eb5 --- /dev/null +++ b/dist/cjs/wallet/src/models/TelegramProfile.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TelegramProfile.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/TelegramProfile.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAGjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAWrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAYpH"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/TelegramProfile.js b/dist/cjs/wallet/src/models/TelegramProfile.js new file mode 100644 index 0000000..705696a --- /dev/null +++ b/dist/cjs/wallet/src/models/TelegramProfile.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfTelegramProfile = instanceOfTelegramProfile; +exports.TelegramProfileFromJSON = TelegramProfileFromJSON; +exports.TelegramProfileFromJSONTyped = TelegramProfileFromJSONTyped; +exports.TelegramProfileToJSON = TelegramProfileToJSON; +exports.TelegramProfileToJSONTyped = TelegramProfileToJSONTyped; +/** + * Check if a given object implements the TelegramProfile interface. + */ +function instanceOfTelegramProfile(value) { + if (!('firstName' in value) || value['firstName'] === undefined) + return false; + return true; +} +function TelegramProfileFromJSON(json) { + return TelegramProfileFromJSONTyped(json, false); +} +function TelegramProfileFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'username': json['username'] == null ? undefined : json['username'], + 'firstName': json['firstName'], + 'lastName': json['lastName'] == null ? undefined : json['lastName'], + 'photoUrl': json['photoUrl'] == null ? undefined : json['photoUrl'], + }; +} +function TelegramProfileToJSON(json) { + return TelegramProfileToJSONTyped(json, false); +} +function TelegramProfileToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'username': value['username'], + 'firstName': value['firstName'], + 'lastName': value['lastName'], + 'photoUrl': value['photoUrl'], + }; +} +//# sourceMappingURL=TelegramProfile.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/TelegramProfile.js.map b/dist/cjs/wallet/src/models/TelegramProfile.js.map new file mode 100644 index 0000000..741575f --- /dev/null +++ b/dist/cjs/wallet/src/models/TelegramProfile.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TelegramProfile.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/TelegramProfile.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAsCH,8DAGC;AAED,0DAEC;AAED,oEAWC;AAED,sDAEC;AAED,gEAYC;AAzCD;;GAEG;AACH,SAAgB,yBAAyB,CAAC,KAAa;IACnD,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS,EAAE,mBAA4B;IAChF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;QACnE,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;QAC9B,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;QACnE,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC;KACtE,CAAC;AACN,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,KAA8B,EAAE,sBAA+B,KAAK;IAC3G,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;QAC7B,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;QAC7B,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;KAChC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Timestamp.d.ts b/dist/cjs/wallet/src/models/Timestamp.d.ts new file mode 100644 index 0000000..4f65f31 --- /dev/null +++ b/dist/cjs/wallet/src/models/Timestamp.d.ts @@ -0,0 +1,39 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface Timestamp + */ +export interface Timestamp { + /** + * Jalaali date + * @type {string} + * @memberof Timestamp + */ + jalaali: string; + /** + * Gregorian date + * @type {string} + * @memberof Timestamp + */ + gregorian: string; +} +/** + * Check if a given object implements the Timestamp interface. + */ +export declare function instanceOfTimestamp(value: object): value is Timestamp; +export declare function TimestampFromJSON(json: any): Timestamp; +export declare function TimestampFromJSONTyped(json: any, ignoreDiscriminator: boolean): Timestamp; +export declare function TimestampToJSON(json: any): Timestamp; +export declare function TimestampToJSONTyped(value?: Timestamp | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=Timestamp.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Timestamp.d.ts.map b/dist/cjs/wallet/src/models/Timestamp.d.ts.map new file mode 100644 index 0000000..7d9a253 --- /dev/null +++ b/dist/cjs/wallet/src/models/Timestamp.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Timestamp.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/Timestamp.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;CACrB;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAIrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CASzF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUxG"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Timestamp.js b/dist/cjs/wallet/src/models/Timestamp.js new file mode 100644 index 0000000..f4dbd6e --- /dev/null +++ b/dist/cjs/wallet/src/models/Timestamp.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfTimestamp = instanceOfTimestamp; +exports.TimestampFromJSON = TimestampFromJSON; +exports.TimestampFromJSONTyped = TimestampFromJSONTyped; +exports.TimestampToJSON = TimestampToJSON; +exports.TimestampToJSONTyped = TimestampToJSONTyped; +/** + * Check if a given object implements the Timestamp interface. + */ +function instanceOfTimestamp(value) { + if (!('jalaali' in value) || value['jalaali'] === undefined) + return false; + if (!('gregorian' in value) || value['gregorian'] === undefined) + return false; + return true; +} +function TimestampFromJSON(json) { + return TimestampFromJSONTyped(json, false); +} +function TimestampFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'jalaali': json['jalaali'], + 'gregorian': json['gregorian'], + }; +} +function TimestampToJSON(json) { + return TimestampToJSONTyped(json, false); +} +function TimestampToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'jalaali': value['jalaali'], + 'gregorian': value['gregorian'], + }; +} +//# sourceMappingURL=Timestamp.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Timestamp.js.map b/dist/cjs/wallet/src/models/Timestamp.js.map new file mode 100644 index 0000000..cd35b10 --- /dev/null +++ b/dist/cjs/wallet/src/models/Timestamp.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Timestamp.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/Timestamp.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA0BH,kDAIC;AAED,8CAEC;AAED,wDASC;AAED,0CAEC;AAED,oDAUC;AAtCD;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAAa;IAC7C,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,WAAW,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC9E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC;KACjC,CAAC;AACN,CAAC;AAED,SAAgB,eAAe,CAAC,IAAS;IACrC,OAAO,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAwB,EAAE,sBAA+B,KAAK;IAC/F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;KAClC,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Transaction.d.ts b/dist/cjs/wallet/src/models/Transaction.d.ts new file mode 100644 index 0000000..08a7bab --- /dev/null +++ b/dist/cjs/wallet/src/models/Transaction.d.ts @@ -0,0 +1,94 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { TransactionType } from './TransactionType'; +import type { ExternalTransaction } from './ExternalTransaction'; +import type { Symbol } from './Symbol'; +import type { Currency } from './Currency'; +import type { Timestamp } from './Timestamp'; +/** + * + * @export + * @interface Transaction + */ +export interface Transaction { + /** + * Unique identifier of the transaction + * @type {number} + * @memberof Transaction + */ + id: number; + /** + * + * @type {Timestamp} + * @memberof Transaction + */ + time: Timestamp; + /** + * + * @type {TransactionType} + * @memberof Transaction + */ + type: TransactionType; + /** + * The ID of the user from whom the transaction originated + * @type {string} + * @memberof Transaction + */ + from: string; + /** + * The ID of the user to whom the transaction is directed + * @type {string} + * @memberof Transaction + */ + to: string; + /** + * + * @type {Symbol} + * @memberof Transaction + */ + symbol: Symbol; + /** + * + * @type {Currency} + * @memberof Transaction + */ + amount: Currency; + /** + * Equal to "Inbound" if the transaction is directed to the user, and "Outbound" if the transaction is directed from the user. + * @type {string} + * @memberof Transaction + */ + direction: TransactionDirectionEnum; + /** + * + * @type {ExternalTransaction} + * @memberof Transaction + */ + externalTransaction?: ExternalTransaction; +} +/** + * @export + */ +export declare const TransactionDirectionEnum: { + readonly INBOUND: "Inbound"; + readonly OUTBOUND: "Outbound"; +}; +export type TransactionDirectionEnum = typeof TransactionDirectionEnum[keyof typeof TransactionDirectionEnum]; +/** + * Check if a given object implements the Transaction interface. + */ +export declare function instanceOfTransaction(value: object): value is Transaction; +export declare function TransactionFromJSON(json: any): Transaction; +export declare function TransactionFromJSONTyped(json: any, ignoreDiscriminator: boolean): Transaction; +export declare function TransactionToJSON(json: any): Transaction; +export declare function TransactionToJSONTyped(value?: Transaction | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=Transaction.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Transaction.d.ts.map b/dist/cjs/wallet/src/models/Transaction.d.ts.map new file mode 100644 index 0000000..d1bda86 --- /dev/null +++ b/dist/cjs/wallet/src/models/Transaction.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"Transaction.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/Transaction.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAOzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAOjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAOvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAQ7C;;;;GAIG;AACH,MAAM,WAAW,WAAW;IACxB;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;;;OAIG;IACH,IAAI,EAAE,eAAe,CAAC;IACtB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,EAAE,QAAQ,CAAC;IACjB;;;;OAIG;IACH,SAAS,EAAE,wBAAwB,CAAC;IACpC;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,mBAAmB,CAAC;CAC7C;AAGD;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;CAG3B,CAAC;AACX,MAAM,MAAM,wBAAwB,GAAG,OAAO,wBAAwB,CAAC,MAAM,OAAO,wBAAwB,CAAC,CAAC;AAG9G;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,WAAW,CAUzE;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAE1D;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,WAAW,CAgB7F;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,WAAW,CAExD;AAED,wBAAgB,sBAAsB,CAAC,KAAK,CAAC,EAAE,WAAW,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAiB5G"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Transaction.js b/dist/cjs/wallet/src/models/Transaction.js new file mode 100644 index 0000000..6b2f8f0 --- /dev/null +++ b/dist/cjs/wallet/src/models/Transaction.js @@ -0,0 +1,94 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TransactionDirectionEnum = void 0; +exports.instanceOfTransaction = instanceOfTransaction; +exports.TransactionFromJSON = TransactionFromJSON; +exports.TransactionFromJSONTyped = TransactionFromJSONTyped; +exports.TransactionToJSON = TransactionToJSON; +exports.TransactionToJSONTyped = TransactionToJSONTyped; +const TransactionType_1 = require("./TransactionType"); +const ExternalTransaction_1 = require("./ExternalTransaction"); +const Symbol_1 = require("./Symbol"); +const Currency_1 = require("./Currency"); +const Timestamp_1 = require("./Timestamp"); +/** + * @export + */ +exports.TransactionDirectionEnum = { + INBOUND: 'Inbound', + OUTBOUND: 'Outbound' +}; +/** + * Check if a given object implements the Transaction interface. + */ +function instanceOfTransaction(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('time' in value) || value['time'] === undefined) + return false; + if (!('type' in value) || value['type'] === undefined) + return false; + if (!('from' in value) || value['from'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + if (!('symbol' in value) || value['symbol'] === undefined) + return false; + if (!('amount' in value) || value['amount'] === undefined) + return false; + if (!('direction' in value) || value['direction'] === undefined) + return false; + return true; +} +function TransactionFromJSON(json) { + return TransactionFromJSONTyped(json, false); +} +function TransactionFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + 'time': (0, Timestamp_1.TimestampFromJSON)(json['time']), + 'type': (0, TransactionType_1.TransactionTypeFromJSON)(json['type']), + 'from': json['from'], + 'to': json['to'], + 'symbol': (0, Symbol_1.SymbolFromJSON)(json['symbol']), + 'amount': (0, Currency_1.CurrencyFromJSON)(json['amount']), + 'direction': json['direction'], + 'externalTransaction': json['externalTransaction'] == null ? undefined : (0, ExternalTransaction_1.ExternalTransactionFromJSON)(json['externalTransaction']), + }; +} +function TransactionToJSON(json) { + return TransactionToJSONTyped(json, false); +} +function TransactionToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'time': (0, Timestamp_1.TimestampToJSON)(value['time']), + 'type': (0, TransactionType_1.TransactionTypeToJSON)(value['type']), + 'from': value['from'], + 'to': value['to'], + 'symbol': (0, Symbol_1.SymbolToJSON)(value['symbol']), + 'amount': (0, Currency_1.CurrencyToJSON)(value['amount']), + 'direction': value['direction'], + 'externalTransaction': (0, ExternalTransaction_1.ExternalTransactionToJSON)(value['externalTransaction']), + }; +} +//# sourceMappingURL=Transaction.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/Transaction.js.map b/dist/cjs/wallet/src/models/Transaction.js.map new file mode 100644 index 0000000..b7aabc7 --- /dev/null +++ b/dist/cjs/wallet/src/models/Transaction.js.map @@ -0,0 +1 @@ +{"version":3,"file":"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IAED,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,MAAM,EAAE,IAAA,2BAAe,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QACtC,MAAM,EAAE,IAAA,uCAAqB,EAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC5C,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC;QACrB,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,QAAQ,EAAE,IAAA,qBAAY,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACvC,QAAQ,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACzC,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,qBAAqB,EAAE,IAAA,+CAAyB,EAAC,KAAK,CAAC,qBAAqB,CAAC,CAAC;KACjF,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/TransactionResponse.d.ts b/dist/cjs/wallet/src/models/TransactionResponse.d.ts new file mode 100644 index 0000000..367e9a7 --- /dev/null +++ b/dist/cjs/wallet/src/models/TransactionResponse.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Transaction } from './Transaction'; +/** + * + * @export + * @interface TransactionResponse + */ +export interface TransactionResponse { + /** + * + * @type {Array} + * @memberof TransactionResponse + */ + data: Array; +} +/** + * Check if a given object implements the TransactionResponse interface. + */ +export declare function instanceOfTransactionResponse(value: object): value is TransactionResponse; +export declare function TransactionResponseFromJSON(json: any): TransactionResponse; +export declare function TransactionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionResponse; +export declare function TransactionResponseToJSON(json: any): TransactionResponse; +export declare function TransactionResponseToJSONTyped(value?: TransactionResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=TransactionResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/TransactionResponse.d.ts.map b/dist/cjs/wallet/src/models/TransactionResponse.d.ts.map new file mode 100644 index 0000000..aaa34aa --- /dev/null +++ b/dist/cjs/wallet/src/models/TransactionResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TransactionResponse.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/TransactionResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAQjD;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAGzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAQ7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS5H"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/TransactionResponse.js b/dist/cjs/wallet/src/models/TransactionResponse.js new file mode 100644 index 0000000..b1350e5 --- /dev/null +++ b/dist/cjs/wallet/src/models/TransactionResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfTransactionResponse = instanceOfTransactionResponse; +exports.TransactionResponseFromJSON = TransactionResponseFromJSON; +exports.TransactionResponseFromJSONTyped = TransactionResponseFromJSONTyped; +exports.TransactionResponseToJSON = TransactionResponseToJSON; +exports.TransactionResponseToJSONTyped = TransactionResponseToJSONTyped; +const Transaction_1 = require("./Transaction"); +/** + * Check if a given object implements the TransactionResponse interface. + */ +function instanceOfTransactionResponse(value) { + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function TransactionResponseFromJSON(json) { + return TransactionResponseFromJSONTyped(json, false); +} +function TransactionResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': (json['data'].map(Transaction_1.TransactionFromJSON)), + }; +} +function TransactionResponseToJSON(json) { + return TransactionResponseToJSONTyped(json, false); +} +function TransactionResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'data': (value['data'].map(Transaction_1.TransactionToJSON)), + }; +} +//# sourceMappingURL=TransactionResponse.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/TransactionResponse.js.map b/dist/cjs/wallet/src/models/TransactionResponse.js.map new file mode 100644 index 0000000..82b62fd --- /dev/null +++ b/dist/cjs/wallet/src/models/TransactionResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TransactionResponse.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/TransactionResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,sEAGC;AAED,kEAEC;AAED,4EAQC;AAED,8DAEC;AAED,wEASC;AAxDD,+CAKuB;AAgBvB;;GAEG;AACH,SAAgB,6BAA6B,CAAC,KAAa;IACvD,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,iCAAmB,CAAC,CAAC;KAClE,CAAC;AACN,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,KAAkC,EAAE,sBAA+B,KAAK;IACnH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,+BAAiB,CAAC,CAAC;KACjE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/TransactionStatus.d.ts b/dist/cjs/wallet/src/models/TransactionStatus.d.ts new file mode 100644 index 0000000..86c276f --- /dev/null +++ b/dist/cjs/wallet/src/models/TransactionStatus.d.ts @@ -0,0 +1,27 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const TransactionStatus: { + readonly SENT: "Sent"; + readonly SUCCESS: "Success"; + readonly FAILED: "Failed"; +}; +export type TransactionStatus = typeof TransactionStatus[keyof typeof TransactionStatus]; +export declare function instanceOfTransactionStatus(value: any): boolean; +export declare function TransactionStatusFromJSON(json: any): TransactionStatus; +export declare function TransactionStatusFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionStatus; +export declare function TransactionStatusToJSON(value?: TransactionStatus | null): any; +export declare function TransactionStatusToJSONTyped(value: any, ignoreDiscriminator: boolean): TransactionStatus; +//# sourceMappingURL=TransactionStatus.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/TransactionStatus.d.ts.map b/dist/cjs/wallet/src/models/TransactionStatus.d.ts.map new file mode 100644 index 0000000..495c94b --- /dev/null +++ b/dist/cjs/wallet/src/models/TransactionStatus.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TransactionStatus.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/TransactionStatus.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AACX,MAAM,MAAM,iBAAiB,GAAG,OAAO,iBAAiB,CAAC,MAAM,OAAO,iBAAiB,CAAC,CAAC;AAGzF,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAS/D;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,iBAAiB,CAEtE;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAEzG;AAED,wBAAgB,uBAAuB,CAAC,KAAK,CAAC,EAAE,iBAAiB,GAAG,IAAI,GAAG,GAAG,CAE7E;AAED,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,iBAAiB,CAExG"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/TransactionStatus.js b/dist/cjs/wallet/src/models/TransactionStatus.js new file mode 100644 index 0000000..6bc544a --- /dev/null +++ b/dist/cjs/wallet/src/models/TransactionStatus.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TransactionStatus = void 0; +exports.instanceOfTransactionStatus = instanceOfTransactionStatus; +exports.TransactionStatusFromJSON = TransactionStatusFromJSON; +exports.TransactionStatusFromJSONTyped = TransactionStatusFromJSONTyped; +exports.TransactionStatusToJSON = TransactionStatusToJSON; +exports.TransactionStatusToJSONTyped = TransactionStatusToJSONTyped; +/** + * + * @export + */ +exports.TransactionStatus = { + SENT: 'Sent', + SUCCESS: 'Success', + FAILED: 'Failed' +}; +function instanceOfTransactionStatus(value) { + for (const key in exports.TransactionStatus) { + if (Object.prototype.hasOwnProperty.call(exports.TransactionStatus, key)) { + if (exports.TransactionStatus[key] === value) { + return true; + } + } + } + return false; +} +function TransactionStatusFromJSON(json) { + return TransactionStatusFromJSONTyped(json, false); +} +function TransactionStatusFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function TransactionStatusToJSON(value) { + return value; +} +function TransactionStatusToJSONTyped(value, ignoreDiscriminator) { + return value; +} +//# sourceMappingURL=TransactionStatus.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/TransactionStatus.js.map b/dist/cjs/wallet/src/models/TransactionStatus.js.map new file mode 100644 index 0000000..84b06b4 --- /dev/null +++ b/dist/cjs/wallet/src/models/TransactionStatus.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TransactionStatus.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/TransactionStatus.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAeH,kEASC;AAED,8DAEC;AAED,wEAEC;AAED,0DAEC;AAED,oEAEC;AArCD;;;GAGG;AACU,QAAA,iBAAiB,GAAG;IAC7B,IAAI,EAAE,MAAM;IACZ,OAAO,EAAE,SAAS;IAClB,MAAM,EAAE,QAAQ;CACV,CAAC;AAIX,SAAgB,2BAA2B,CAAC,KAAU;IAClD,KAAK,MAAM,GAAG,IAAI,yBAAiB,EAAE,CAAC;QAClC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,yBAAiB,EAAE,GAAG,CAAC,EAAE,CAAC;YAC/D,IAAI,yBAAiB,CAAC,GAAqC,CAAC,KAAK,KAAK,EAAE,CAAC;gBACrE,OAAO,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS,EAAE,mBAA4B;IAClF,OAAO,IAAyB,CAAC;AACrC,CAAC;AAED,SAAgB,uBAAuB,CAAC,KAAgC;IACpE,OAAO,KAAY,CAAC;AACxB,CAAC;AAED,SAAgB,4BAA4B,CAAC,KAAU,EAAE,mBAA4B;IACjF,OAAO,KAA0B,CAAC;AACtC,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/TransactionType.d.ts b/dist/cjs/wallet/src/models/TransactionType.d.ts new file mode 100644 index 0000000..db290a1 --- /dev/null +++ b/dist/cjs/wallet/src/models/TransactionType.d.ts @@ -0,0 +1,29 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + */ +export declare const TransactionType: { + readonly CREDIT: "Credit"; + readonly DEBIT: "Debit"; + readonly TRANSFER: "Transfer"; + readonly DEPOSIT: "Deposit"; + readonly WITHDRAW: "Withdraw"; +}; +export type TransactionType = typeof TransactionType[keyof typeof TransactionType]; +export declare function instanceOfTransactionType(value: any): boolean; +export declare function TransactionTypeFromJSON(json: any): TransactionType; +export declare function TransactionTypeFromJSONTyped(json: any, ignoreDiscriminator: boolean): TransactionType; +export declare function TransactionTypeToJSON(value?: TransactionType | null): any; +export declare function TransactionTypeToJSONTyped(value: any, ignoreDiscriminator: boolean): TransactionType; +//# sourceMappingURL=TransactionType.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/TransactionType.d.ts.map b/dist/cjs/wallet/src/models/TransactionType.d.ts.map new file mode 100644 index 0000000..31fd7da --- /dev/null +++ b/dist/cjs/wallet/src/models/TransactionType.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"TransactionType.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/TransactionType.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;GAGG;AACH,eAAO,MAAM,eAAe;;;;;;CAMlB,CAAC;AACX,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC;AAGnF,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,GAAG,GAAG,OAAO,CAS7D;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAErG;AAED,wBAAgB,qBAAqB,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,GAAG,GAAG,CAEzE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAEpG"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/TransactionType.js b/dist/cjs/wallet/src/models/TransactionType.js new file mode 100644 index 0000000..109dec9 --- /dev/null +++ b/dist/cjs/wallet/src/models/TransactionType.js @@ -0,0 +1,55 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TransactionType = void 0; +exports.instanceOfTransactionType = instanceOfTransactionType; +exports.TransactionTypeFromJSON = TransactionTypeFromJSON; +exports.TransactionTypeFromJSONTyped = TransactionTypeFromJSONTyped; +exports.TransactionTypeToJSON = TransactionTypeToJSON; +exports.TransactionTypeToJSONTyped = TransactionTypeToJSONTyped; +/** + * + * @export + */ +exports.TransactionType = { + CREDIT: 'Credit', + DEBIT: 'Debit', + TRANSFER: 'Transfer', + DEPOSIT: 'Deposit', + WITHDRAW: 'Withdraw' +}; +function instanceOfTransactionType(value) { + for (const key in exports.TransactionType) { + if (Object.prototype.hasOwnProperty.call(exports.TransactionType, key)) { + if (exports.TransactionType[key] === value) { + return true; + } + } + } + return false; +} +function TransactionTypeFromJSON(json) { + return TransactionTypeFromJSONTyped(json, false); +} +function TransactionTypeFromJSONTyped(json, ignoreDiscriminator) { + return json; +} +function TransactionTypeToJSON(value) { + return value; +} +function TransactionTypeToJSONTyped(value, ignoreDiscriminator) { + return value; +} +//# sourceMappingURL=TransactionType.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/TransactionType.js.map b/dist/cjs/wallet/src/models/TransactionType.js.map new file mode 100644 index 0000000..d4d3aad --- /dev/null +++ b/dist/cjs/wallet/src/models/TransactionType.js.map @@ -0,0 +1 @@ +{"version":3,"file":"TransactionType.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/TransactionType.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AAiBH,8DASC;AAED,0DAEC;AAED,oEAEC;AAED,sDAEC;AAED,gEAEC;AAvCD;;;GAGG;AACU,QAAA,eAAe,GAAG;IAC3B,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;CACd,CAAC;AAIX,SAAgB,yBAAyB,CAAC,KAAU;IAChD,KAAK,MAAM,GAAG,IAAI,uBAAe,EAAE,CAAC;QAChC,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,uBAAe,EAAE,GAAG,CAAC,EAAE,CAAC;YAC7D,IAAI,uBAAe,CAAC,GAAmC,CAAC,KAAK,KAAK,EAAE,CAAC;gBACjE,OAAO,IAAI,CAAC;YAChB,CAAC;QACL,CAAC;IACL,CAAC;IACD,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAgB,uBAAuB,CAAC,IAAS;IAC7C,OAAO,4BAA4B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACrD,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS,EAAE,mBAA4B;IAChF,OAAO,IAAuB,CAAC;AACnC,CAAC;AAED,SAAgB,qBAAqB,CAAC,KAA8B;IAChE,OAAO,KAAY,CAAC;AACxB,CAAC;AAED,SAAgB,0BAA0B,CAAC,KAAU,EAAE,mBAA4B;IAC/E,OAAO,KAAwB,CAAC;AACpC,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/UpdateEmailRequest.d.ts b/dist/cjs/wallet/src/models/UpdateEmailRequest.d.ts new file mode 100644 index 0000000..bac2234 --- /dev/null +++ b/dist/cjs/wallet/src/models/UpdateEmailRequest.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdateEmailRequest + */ +export interface UpdateEmailRequest { + /** + * Email address + * @type {string} + * @memberof UpdateEmailRequest + */ + email: string; +} +/** + * Check if a given object implements the UpdateEmailRequest interface. + */ +export declare function instanceOfUpdateEmailRequest(value: object): value is UpdateEmailRequest; +export declare function UpdateEmailRequestFromJSON(json: any): UpdateEmailRequest; +export declare function UpdateEmailRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateEmailRequest; +export declare function UpdateEmailRequestToJSON(json: any): UpdateEmailRequest; +export declare function UpdateEmailRequestToJSONTyped(value?: UpdateEmailRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=UpdateEmailRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/UpdateEmailRequest.d.ts.map b/dist/cjs/wallet/src/models/UpdateEmailRequest.d.ts.map new file mode 100644 index 0000000..4e5a7ab --- /dev/null +++ b/dist/cjs/wallet/src/models/UpdateEmailRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"UpdateEmailRequest.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/UpdateEmailRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,KAAK,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAGvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAQ3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS1H"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/UpdateEmailRequest.js b/dist/cjs/wallet/src/models/UpdateEmailRequest.js new file mode 100644 index 0000000..044640e --- /dev/null +++ b/dist/cjs/wallet/src/models/UpdateEmailRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfUpdateEmailRequest = instanceOfUpdateEmailRequest; +exports.UpdateEmailRequestFromJSON = UpdateEmailRequestFromJSON; +exports.UpdateEmailRequestFromJSONTyped = UpdateEmailRequestFromJSONTyped; +exports.UpdateEmailRequestToJSON = UpdateEmailRequestToJSON; +exports.UpdateEmailRequestToJSONTyped = UpdateEmailRequestToJSONTyped; +/** + * Check if a given object implements the UpdateEmailRequest interface. + */ +function instanceOfUpdateEmailRequest(value) { + if (!('email' in value) || value['email'] === undefined) + return false; + return true; +} +function UpdateEmailRequestFromJSON(json) { + return UpdateEmailRequestFromJSONTyped(json, false); +} +function UpdateEmailRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'email': json['email'], + }; +} +function UpdateEmailRequestToJSON(json) { + return UpdateEmailRequestToJSONTyped(json, false); +} +function UpdateEmailRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'email': value['email'], + }; +} +//# sourceMappingURL=UpdateEmailRequest.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/UpdateEmailRequest.js.map b/dist/cjs/wallet/src/models/UpdateEmailRequest.js.map new file mode 100644 index 0000000..b412f0e --- /dev/null +++ b/dist/cjs/wallet/src/models/UpdateEmailRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UpdateEmailRequest.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/UpdateEmailRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,oEAGC;AAED,gEAEC;AAED,0EAQC;AAED,4DAEC;AAED,sEASC;AAnCD;;GAEG;AACH,SAAgB,4BAA4B,CAAC,KAAa;IACtD,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,IAAS,EAAE,mBAA4B;IACnF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;KACzB,CAAC;AACN,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,KAAiC,EAAE,sBAA+B,KAAK;IACjH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;KAC1B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/UpdatePhoneRequest.d.ts b/dist/cjs/wallet/src/models/UpdatePhoneRequest.d.ts new file mode 100644 index 0000000..7e986b2 --- /dev/null +++ b/dist/cjs/wallet/src/models/UpdatePhoneRequest.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface UpdatePhoneRequest + */ +export interface UpdatePhoneRequest { + /** + * Phone number + * @type {string} + * @memberof UpdatePhoneRequest + */ + number: string; +} +/** + * Check if a given object implements the UpdatePhoneRequest interface. + */ +export declare function instanceOfUpdatePhoneRequest(value: object): value is UpdatePhoneRequest; +export declare function UpdatePhoneRequestFromJSON(json: any): UpdatePhoneRequest; +export declare function UpdatePhoneRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdatePhoneRequest; +export declare function UpdatePhoneRequestToJSON(json: any): UpdatePhoneRequest; +export declare function UpdatePhoneRequestToJSONTyped(value?: UpdatePhoneRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=UpdatePhoneRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/UpdatePhoneRequest.d.ts.map b/dist/cjs/wallet/src/models/UpdatePhoneRequest.d.ts.map new file mode 100644 index 0000000..7ea7ddf --- /dev/null +++ b/dist/cjs/wallet/src/models/UpdatePhoneRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"UpdatePhoneRequest.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/UpdatePhoneRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,kBAAkB,CAGvF;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAExE;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,kBAAkB,CAQ3G;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,GAAG,GAAG,kBAAkB,CAEtE;AAED,wBAAgB,6BAA6B,CAAC,KAAK,CAAC,EAAE,kBAAkB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS1H"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/UpdatePhoneRequest.js b/dist/cjs/wallet/src/models/UpdatePhoneRequest.js new file mode 100644 index 0000000..b4d09ae --- /dev/null +++ b/dist/cjs/wallet/src/models/UpdatePhoneRequest.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfUpdatePhoneRequest = instanceOfUpdatePhoneRequest; +exports.UpdatePhoneRequestFromJSON = UpdatePhoneRequestFromJSON; +exports.UpdatePhoneRequestFromJSONTyped = UpdatePhoneRequestFromJSONTyped; +exports.UpdatePhoneRequestToJSON = UpdatePhoneRequestToJSON; +exports.UpdatePhoneRequestToJSONTyped = UpdatePhoneRequestToJSONTyped; +/** + * Check if a given object implements the UpdatePhoneRequest interface. + */ +function instanceOfUpdatePhoneRequest(value) { + if (!('number' in value) || value['number'] === undefined) + return false; + return true; +} +function UpdatePhoneRequestFromJSON(json) { + return UpdatePhoneRequestFromJSONTyped(json, false); +} +function UpdatePhoneRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'number': json['number'], + }; +} +function UpdatePhoneRequestToJSON(json) { + return UpdatePhoneRequestToJSONTyped(json, false); +} +function UpdatePhoneRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'number': value['number'], + }; +} +//# sourceMappingURL=UpdatePhoneRequest.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/UpdatePhoneRequest.js.map b/dist/cjs/wallet/src/models/UpdatePhoneRequest.js.map new file mode 100644 index 0000000..8b722c8 --- /dev/null +++ b/dist/cjs/wallet/src/models/UpdatePhoneRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UpdatePhoneRequest.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/UpdatePhoneRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,oEAGC;AAED,gEAEC;AAED,0EAQC;AAED,4DAEC;AAED,sEASC;AAnCD;;GAEG;AACH,SAAgB,4BAA4B,CAAC,KAAa;IACtD,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,IAAS,EAAE,mBAA4B;IACnF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;KAC3B,CAAC;AACN,CAAC;AAED,SAAgB,wBAAwB,CAAC,IAAS;IAC9C,OAAO,6BAA6B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACtD,CAAC;AAED,SAAgB,6BAA6B,CAAC,KAAiC,EAAE,sBAA+B,KAAK;IACjH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;KAC5B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/User.d.ts b/dist/cjs/wallet/src/models/User.d.ts new file mode 100644 index 0000000..082ec99 --- /dev/null +++ b/dist/cjs/wallet/src/models/User.d.ts @@ -0,0 +1,100 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { TelegramProfile } from './TelegramProfile'; +/** + * + * @export + * @interface User + */ +export interface User { + /** + * User's first name + * @type {string} + * @memberof User + */ + firstName?: string; + /** + * User's last name + * @type {string} + * @memberof User + */ + lastName?: string; + /** + * + * @type {string} + * @memberof User + */ + email?: string; + /** + * + * @type {string} + * @memberof User + */ + username?: string; + /** + * + * @type {string} + * @memberof User + */ + phone?: string; + /** + * + * @type {boolean} + * @memberof User + */ + isEmailVerified?: boolean; + /** + * + * @type {boolean} + * @memberof User + */ + isPhoneVerified?: boolean; + /** + * + * @type {boolean} + * @memberof User + */ + isKycVerified?: boolean; + /** + * + * @type {boolean} + * @memberof User + */ + isChild?: boolean; + /** + * + * @type {boolean} + * @memberof User + */ + isSuperUser?: boolean; + /** + * + * @type {boolean} + * @memberof User + */ + isAdmin?: boolean; + /** + * + * @type {TelegramProfile} + * @memberof User + */ + telegram?: TelegramProfile; +} +/** + * Check if a given object implements the User interface. + */ +export declare function instanceOfUser(value: object): value is User; +export declare function UserFromJSON(json: any): User; +export declare function UserFromJSONTyped(json: any, ignoreDiscriminator: boolean): User; +export declare function UserToJSON(json: any): User; +export declare function UserToJSONTyped(value?: User | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=User.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/User.d.ts.map b/dist/cjs/wallet/src/models/User.d.ts.map new file mode 100644 index 0000000..7bfdbe3 --- /dev/null +++ b/dist/cjs/wallet/src/models/User.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"User.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/User.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAQzD;;;;GAIG;AACH,MAAM,WAAW,IAAI;IACjB;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,eAAe,CAAC;CAC9B;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,IAAI,CAE3D;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAE5C;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,IAAI,CAmB/E;AAED,wBAAgB,UAAU,CAAC,IAAI,EAAE,GAAG,GAAG,IAAI,CAE1C;AAED,wBAAgB,eAAe,CAAC,KAAK,CAAC,EAAE,IAAI,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAoB9F"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/User.js b/dist/cjs/wallet/src/models/User.js new file mode 100644 index 0000000..c0e1724 --- /dev/null +++ b/dist/cjs/wallet/src/models/User.js @@ -0,0 +1,72 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfUser = instanceOfUser; +exports.UserFromJSON = UserFromJSON; +exports.UserFromJSONTyped = UserFromJSONTyped; +exports.UserToJSON = UserToJSON; +exports.UserToJSONTyped = UserToJSONTyped; +const TelegramProfile_1 = require("./TelegramProfile"); +/** + * Check if a given object implements the User interface. + */ +function instanceOfUser(value) { + return true; +} +function UserFromJSON(json) { + return UserFromJSONTyped(json, false); +} +function UserFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'firstName': json['firstName'] == null ? undefined : json['firstName'], + 'lastName': json['lastName'] == null ? undefined : json['lastName'], + 'email': json['email'] == null ? undefined : json['email'], + 'username': json['username'] == null ? undefined : json['username'], + 'phone': json['phone'] == null ? undefined : json['phone'], + 'isEmailVerified': json['isEmailVerified'] == null ? undefined : json['isEmailVerified'], + 'isPhoneVerified': json['isPhoneVerified'] == null ? undefined : json['isPhoneVerified'], + 'isKycVerified': json['isKycVerified'] == null ? undefined : json['isKycVerified'], + 'isChild': json['isChild'] == null ? undefined : json['isChild'], + 'isSuperUser': json['isSuperUser'] == null ? undefined : json['isSuperUser'], + 'isAdmin': json['isAdmin'] == null ? undefined : json['isAdmin'], + 'telegram': json['telegram'] == null ? undefined : (0, TelegramProfile_1.TelegramProfileFromJSON)(json['telegram']), + }; +} +function UserToJSON(json) { + return UserToJSONTyped(json, false); +} +function UserToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'firstName': value['firstName'], + 'lastName': value['lastName'], + 'email': value['email'], + 'username': value['username'], + 'phone': value['phone'], + 'isEmailVerified': value['isEmailVerified'], + 'isPhoneVerified': value['isPhoneVerified'], + 'isKycVerified': value['isKycVerified'], + 'isChild': value['isChild'], + 'isSuperUser': value['isSuperUser'], + 'isAdmin': value['isAdmin'], + 'telegram': (0, TelegramProfile_1.TelegramProfileToJSON)(value['telegram']), + }; +} +//# sourceMappingURL=User.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/User.js.map b/dist/cjs/wallet/src/models/User.js.map new file mode 100644 index 0000000..9db49cd --- /dev/null +++ b/dist/cjs/wallet/src/models/User.js.map @@ -0,0 +1 @@ +{"version":3,"file":"User.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/User.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA8FH,wCAEC;AAED,oCAEC;AAED,8CAmBC;AAED,gCAEC;AAED,0CAoBC;AA/ID,uDAK2B;AAkF3B;;GAEG;AACH,SAAgB,cAAc,CAAC,KAAa;IACxC,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,YAAY,CAAC,IAAS;IAClC,OAAO,iBAAiB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1C,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS,EAAE,mBAA4B;IACrE,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,WAAW,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC;QACtE,UAAU,EAAE,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC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A,yCAAuB,EAAC,IAAI,CAAC,UAAU,CAAC,CAAC;KAC/F,CAAC;AACN,CAAC;AAED,SAAgB,UAAU,CAAC,IAAS;IAChC,OAAO,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxC,CAAC;AAED,SAAgB,eAAe,CAAC,KAAmB,EAAE,sBAA+B,KAAK;IACrF,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,WAAW,EAAE,KAAK,CAAC,WAAW,CAAC;QAC/B,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;QAC7B,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,UAAU,EAAE,KAAK,CAAC,UAAU,CAAC;QAC7B,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC;QACvB,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;QAC3C,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,CAAC;QAC3C,eAAe,EAAE,KAAK,CAAC,eAAe,CAAC;QACvC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,aAAa,EAAE,KAAK,CAAC,aAAa,CAAC;QACnC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,UAAU,EAAE,IAAA,uCAAqB,EAAC,KAAK,CAAC,UAAU,CAAC,CAAC;KACvD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/UserError.d.ts b/dist/cjs/wallet/src/models/UserError.d.ts new file mode 100644 index 0000000..aedb765 --- /dev/null +++ b/dist/cjs/wallet/src/models/UserError.d.ts @@ -0,0 +1,36 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { ErrorDetail } from './ErrorDetail'; +/** + * + * @export + * @interface UserError + */ +export interface UserError { + /** + * Localized error messages + * @type {{ [key: string]: ErrorDetail | undefined; }} + * @memberof UserError + */ + messages: { + [key: string]: ErrorDetail | undefined; + }; +} +/** + * Check if a given object implements the UserError interface. + */ +export declare function instanceOfUserError(value: object): value is UserError; +export declare function UserErrorFromJSON(json: any): UserError; +export declare function UserErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): UserError; +export declare function UserErrorToJSON(json: any): UserError; +export declare function UserErrorToJSONTyped(value?: UserError | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=UserError.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/UserError.d.ts.map b/dist/cjs/wallet/src/models/UserError.d.ts.map new file mode 100644 index 0000000..2042a0f --- /dev/null +++ b/dist/cjs/wallet/src/models/UserError.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"UserError.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/UserError.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAQjD;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACtB;;;;OAIG;IACH,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAAC;KAAE,CAAC;CACzD;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,SAAS,CAGrE;AAED,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEtD;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,SAAS,CAQzF;AAED,wBAAgB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,SAAS,CAEpD;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASxG"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/UserError.js b/dist/cjs/wallet/src/models/UserError.js new file mode 100644 index 0000000..0ba55ef --- /dev/null +++ b/dist/cjs/wallet/src/models/UserError.js @@ -0,0 +1,53 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfUserError = instanceOfUserError; +exports.UserErrorFromJSON = UserErrorFromJSON; +exports.UserErrorFromJSONTyped = UserErrorFromJSONTyped; +exports.UserErrorToJSON = UserErrorToJSON; +exports.UserErrorToJSONTyped = UserErrorToJSONTyped; +const runtime_1 = require("../runtime"); +const ErrorDetail_1 = require("./ErrorDetail"); +/** + * Check if a given object implements the UserError interface. + */ +function instanceOfUserError(value) { + if (!('messages' in value) || value['messages'] === undefined) + return false; + return true; +} +function UserErrorFromJSON(json) { + return UserErrorFromJSONTyped(json, false); +} +function UserErrorFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'messages': ((0, runtime_1.mapValues)(json['messages'], ErrorDetail_1.ErrorDetailFromJSON)), + }; +} +function UserErrorToJSON(json) { + return UserErrorToJSONTyped(json, false); +} +function UserErrorToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'messages': ((0, runtime_1.mapValues)(value['messages'], ErrorDetail_1.ErrorDetailToJSON)), + }; +} +//# sourceMappingURL=UserError.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/UserError.js.map b/dist/cjs/wallet/src/models/UserError.js.map new file mode 100644 index 0000000..1cecf52 --- /dev/null +++ b/dist/cjs/wallet/src/models/UserError.js.map @@ -0,0 +1 @@ +{"version":3,"file":"UserError.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/UserError.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,kDAGC;AAED,8CAEC;AAED,wDAQC;AAED,0CAEC;AAED,oDASC;AA1DD,wCAAuC;AAEvC,+CAKuB;AAgBvB;;GAEG;AACH,SAAgB,mBAAmB,CAAC,KAAa;IAC7C,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,iBAAiB,CAAC,IAAS;IACvC,OAAO,sBAAsB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC/C,CAAC;AAED,SAAgB,sBAAsB,CAAC,IAAS,EAAE,mBAA4B;IAC1E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,UAAU,EAAE,CAAC,IAAA,mBAAS,EAAC,IAAI,CAAC,UAAU,CAAC,EAAE,iCAAmB,CAAC,CAAC;KACjE,CAAC;AACN,CAAC;AAED,SAAgB,eAAe,CAAC,IAAS;IACrC,OAAO,oBAAoB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7C,CAAC;AAED,SAAgB,oBAAoB,CAAC,KAAwB,EAAE,sBAA+B,KAAK;IAC/F,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,UAAU,EAAE,CAAC,IAAA,mBAAS,EAAC,KAAK,CAAC,UAAU,CAAC,EAAE,+BAAiB,CAAC,CAAC;KAChE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/WalletBalance.d.ts b/dist/cjs/wallet/src/models/WalletBalance.d.ts new file mode 100644 index 0000000..881d312 --- /dev/null +++ b/dist/cjs/wallet/src/models/WalletBalance.d.ts @@ -0,0 +1,41 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Currency } from './Currency'; +import type { Balance } from './Balance'; +/** + * + * @export + * @interface WalletBalance + */ +export interface WalletBalance { + /** + * + * @type {Currency} + * @memberof WalletBalance + */ + total: Currency; + /** + * + * @type {Array} + * @memberof WalletBalance + */ + balances: Array; +} +/** + * Check if a given object implements the WalletBalance interface. + */ +export declare function instanceOfWalletBalance(value: object): value is WalletBalance; +export declare function WalletBalanceFromJSON(json: any): WalletBalance; +export declare function WalletBalanceFromJSONTyped(json: any, ignoreDiscriminator: boolean): WalletBalance; +export declare function WalletBalanceToJSON(json: any): WalletBalance; +export declare function WalletBalanceToJSONTyped(value?: WalletBalance | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=WalletBalance.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/WalletBalance.d.ts.map b/dist/cjs/wallet/src/models/WalletBalance.d.ts.map new file mode 100644 index 0000000..62aa1c8 --- /dev/null +++ b/dist/cjs/wallet/src/models/WalletBalance.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"WalletBalance.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/WalletBalance.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQzC;;;;GAIG;AACH,MAAM,WAAW,aAAa;IAC1B;;;;OAIG;IACH,KAAK,EAAE,QAAQ,CAAC;IAChB;;;;OAIG;IACH,QAAQ,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;CAC5B;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAI7E;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE9D;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,aAAa,CASjG;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,GAAG,GAAG,aAAa,CAE5D;AAED,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,aAAa,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUhH"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/WalletBalance.js b/dist/cjs/wallet/src/models/WalletBalance.js new file mode 100644 index 0000000..33535da --- /dev/null +++ b/dist/cjs/wallet/src/models/WalletBalance.js @@ -0,0 +1,57 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWalletBalance = instanceOfWalletBalance; +exports.WalletBalanceFromJSON = WalletBalanceFromJSON; +exports.WalletBalanceFromJSONTyped = WalletBalanceFromJSONTyped; +exports.WalletBalanceToJSON = WalletBalanceToJSON; +exports.WalletBalanceToJSONTyped = WalletBalanceToJSONTyped; +const Currency_1 = require("./Currency"); +const Balance_1 = require("./Balance"); +/** + * Check if a given object implements the WalletBalance interface. + */ +function instanceOfWalletBalance(value) { + if (!('total' in value) || value['total'] === undefined) + return false; + if (!('balances' in value) || value['balances'] === undefined) + return false; + return true; +} +function WalletBalanceFromJSON(json) { + return WalletBalanceFromJSONTyped(json, false); +} +function WalletBalanceFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'total': (0, Currency_1.CurrencyFromJSON)(json['total']), + 'balances': (json['balances'].map(Balance_1.BalanceFromJSON)), + }; +} +function WalletBalanceToJSON(json) { + return WalletBalanceToJSONTyped(json, false); +} +function WalletBalanceToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'total': (0, Currency_1.CurrencyToJSON)(value['total']), + 'balances': (value['balances'].map(Balance_1.BalanceToJSON)), + }; +} +//# sourceMappingURL=WalletBalance.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/WalletBalance.js.map b/dist/cjs/wallet/src/models/WalletBalance.js.map new file mode 100644 index 0000000..626972e --- /dev/null +++ b/dist/cjs/wallet/src/models/WalletBalance.js.map @@ -0,0 +1 @@ +{"version":3,"file":"WalletBalance.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/WalletBalance.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAyCH,0DAIC;AAED,sDAEC;AAED,gEASC;AAED,kDAEC;AAED,4DAUC;AAxED,yCAKoB;AAEpB,uCAKmB;AAsBnB;;GAEG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACjD,IAAI,CAAC,CAAC,OAAO,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACtE,IAAI,CAAC,CAAC,UAAU,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,UAAU,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC5E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,qBAAqB,CAAC,IAAS;IAC3C,OAAO,0BAA0B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACnD,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS,EAAE,mBAA4B;IAC9E,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,OAAO,EAAE,IAAA,2BAAgB,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACxC,UAAU,EAAE,CAAE,IAAI,CAAC,UAAU,CAAgB,CAAC,GAAG,CAAC,yBAAe,CAAC,CAAC;KACtE,CAAC;AACN,CAAC;AAED,SAAgB,mBAAmB,CAAC,IAAS;IACzC,OAAO,wBAAwB,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjD,CAAC;AAED,SAAgB,wBAAwB,CAAC,KAA4B,EAAE,sBAA+B,KAAK;IACvG,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,OAAO,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACvC,UAAU,EAAE,CAAE,KAAK,CAAC,UAAU,CAAgB,CAAC,GAAG,CAAC,uBAAa,CAAC,CAAC;KACrE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/WithdrawRequest.d.ts b/dist/cjs/wallet/src/models/WithdrawRequest.d.ts new file mode 100644 index 0000000..9f1ce97 --- /dev/null +++ b/dist/cjs/wallet/src/models/WithdrawRequest.d.ts @@ -0,0 +1,100 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Symbol } from './Symbol'; +import type { Network } from './Network'; +import type { Timestamp } from './Timestamp'; +/** + * + * @export + * @interface WithdrawRequest + */ +export interface WithdrawRequest { + /** + * + * @type {number} + * @memberof WithdrawRequest + */ + id: number; + /** + * + * @type {Timestamp} + * @memberof WithdrawRequest + */ + timeCreated: Timestamp; + /** + * + * @type {Network} + * @memberof WithdrawRequest + */ + network: Network; + /** + * + * @type {Symbol} + * @memberof WithdrawRequest + */ + symbol: Symbol; + /** + * + * @type {string} + * @memberof WithdrawRequest + */ + amount: string; + /** + * + * @type {string} + * @memberof WithdrawRequest + */ + to: string; + /** + * + * @type {string} + * @memberof WithdrawRequest + */ + comment?: string | null; + /** + * + * @type {string} + * @memberof WithdrawRequest + */ + status: WithdrawRequestStatusEnum; + /** + * + * @type {string} + * @memberof WithdrawRequest + */ + blockExplorerUrl?: string | null; +} +/** + * @export + */ +export declare const WithdrawRequestStatusEnum: { + readonly PENDING: "Pending"; + readonly CANCELED: "Canceled"; + readonly APPROVED: "Approved"; + readonly REJECTED: "Rejected"; + readonly PROCCESSING: "Proccessing"; + readonly FAILED: "Failed"; + readonly SENT: "Sent"; + readonly ACCOUNT_DEBITED: "AccountDebited"; + readonly ACCOUNT_BALANCE_UNLOCKED: "AccountBalanceUnlocked"; + readonly COMPLETED: "Completed"; +}; +export type WithdrawRequestStatusEnum = typeof WithdrawRequestStatusEnum[keyof typeof WithdrawRequestStatusEnum]; +/** + * Check if a given object implements the WithdrawRequest interface. + */ +export declare function instanceOfWithdrawRequest(value: object): value is WithdrawRequest; +export declare function WithdrawRequestFromJSON(json: any): WithdrawRequest; +export declare function WithdrawRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawRequest; +export declare function WithdrawRequestToJSON(json: any): WithdrawRequest; +export declare function WithdrawRequestToJSONTyped(value?: WithdrawRequest | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=WithdrawRequest.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/WithdrawRequest.d.ts.map b/dist/cjs/wallet/src/models/WithdrawRequest.d.ts.map new file mode 100644 index 0000000..cd47694 --- /dev/null +++ b/dist/cjs/wallet/src/models/WithdrawRequest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"WithdrawRequest.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/WithdrawRequest.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KA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/wallet/src/models/WithdrawRequest.js b/dist/cjs/wallet/src/models/WithdrawRequest.js new file mode 100644 index 0000000..fb60dc3 --- /dev/null +++ b/dist/cjs/wallet/src/models/WithdrawRequest.js @@ -0,0 +1,98 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.WithdrawRequestStatusEnum = void 0; +exports.instanceOfWithdrawRequest = instanceOfWithdrawRequest; +exports.WithdrawRequestFromJSON = WithdrawRequestFromJSON; +exports.WithdrawRequestFromJSONTyped = WithdrawRequestFromJSONTyped; +exports.WithdrawRequestToJSON = WithdrawRequestToJSON; +exports.WithdrawRequestToJSONTyped = WithdrawRequestToJSONTyped; +const Symbol_1 = require("./Symbol"); +const Network_1 = require("./Network"); +const Timestamp_1 = require("./Timestamp"); +/** + * @export + */ +exports.WithdrawRequestStatusEnum = { + PENDING: 'Pending', + CANCELED: 'Canceled', + APPROVED: 'Approved', + REJECTED: 'Rejected', + PROCCESSING: 'Proccessing', + FAILED: 'Failed', + SENT: 'Sent', + ACCOUNT_DEBITED: 'AccountDebited', + ACCOUNT_BALANCE_UNLOCKED: 'AccountBalanceUnlocked', + COMPLETED: 'Completed' +}; +/** + * Check if a given object implements the WithdrawRequest interface. + */ +function instanceOfWithdrawRequest(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + if (!('timeCreated' in value) || value['timeCreated'] === undefined) + return false; + if (!('network' in value) || value['network'] === undefined) + return false; + if (!('symbol' in value) || value['symbol'] === undefined) + return false; + if (!('amount' in value) || value['amount'] === undefined) + return false; + if (!('to' in value) || value['to'] === undefined) + return false; + if (!('status' in value) || value['status'] === undefined) + return false; + return true; +} +function WithdrawRequestFromJSON(json) { + return WithdrawRequestFromJSONTyped(json, false); +} +function WithdrawRequestFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + 'timeCreated': (0, Timestamp_1.TimestampFromJSON)(json['timeCreated']), + 'network': (0, Network_1.NetworkFromJSON)(json['network']), + 'symbol': (0, Symbol_1.SymbolFromJSON)(json['symbol']), + 'amount': json['amount'], + 'to': json['to'], + 'comment': json['comment'] == null ? undefined : json['comment'], + 'status': json['status'], + 'blockExplorerUrl': json['blockExplorerUrl'] == null ? undefined : json['blockExplorerUrl'], + }; +} +function WithdrawRequestToJSON(json) { + return WithdrawRequestToJSONTyped(json, false); +} +function WithdrawRequestToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + 'timeCreated': (0, Timestamp_1.TimestampToJSON)(value['timeCreated']), + 'network': (0, Network_1.NetworkToJSON)(value['network']), + 'symbol': (0, Symbol_1.SymbolToJSON)(value['symbol']), + 'amount': value['amount'], + 'to': value['to'], + 'comment': value['comment'], + 'status': value['status'], + 'blockExplorerUrl': value['blockExplorerUrl'], + }; +} +//# sourceMappingURL=WithdrawRequest.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/WithdrawRequest.js.map b/dist/cjs/wallet/src/models/WithdrawRequest.js.map new file mode 100644 index 0000000..c89f4ff --- /dev/null +++ b/dist/cjs/wallet/src/models/WithdrawRequest.js.map @@ -0,0 +1 @@ +{"version":3,"file":"WithdrawRequest.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/WithdrawRequest.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AA6GH,8DASC;AAED,0DAEC;AAED,oEAgBC;AAED,sDAEC;AAED,gEAiBC;AA/JD,qCAKkB;AAElB,uCAKmB;AAEnB,2CAKqB;AAiErB;;GAEG;AACU,QAAA,yBAAyB,GAAG;IACrC,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;IACpB,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,QAAQ,CAAC,CAAC;QACvC,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;QACjB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,kBAAkB,EAAE,KAAK,CAAC,kBAAkB,CAAC;KAChD,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/WithdrawRequestBody.d.ts b/dist/cjs/wallet/src/models/WithdrawRequestBody.d.ts new file mode 100644 index 0000000..d1cc002 --- /dev/null +++ b/dist/cjs/wallet/src/models/WithdrawRequestBody.d.ts @@ -0,0 +1,57 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface WithdrawRequestBody + */ +export interface WithdrawRequestBody { + /** + * Network to withdraw + * @type {string} + * @memberof WithdrawRequestBody + */ + network: string; + /** + * Coin symbol + * @type {string} + * @memberof WithdrawRequestBody + */ + symbol: string; + /** + * Amount to withdraw + * @type {string} + * @memberof WithdrawRequestBody + */ + amount: string; + /** + * Withdrawal address + * @type {string} + * @memberof WithdrawRequestBody + */ + address: string; + /** + * + * @type {string} + * @memberof WithdrawRequestBody + */ + comment?: string | null; +} +/** + * Check if a given object implements the WithdrawRequestBody interface. + */ +export declare function instanceOfWithdrawRequestBody(value: object): value is WithdrawRequestBody; +export declare function WithdrawRequestBodyFromJSON(json: any): WithdrawRequestBody; +export declare function WithdrawRequestBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawRequestBody; +export declare function WithdrawRequestBodyToJSON(json: any): WithdrawRequestBody; +export declare function WithdrawRequestBodyToJSONTyped(value?: WithdrawRequestBody | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=WithdrawRequestBody.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/WithdrawRequestBody.d.ts.map b/dist/cjs/wallet/src/models/WithdrawRequestBody.d.ts.map new file mode 100644 index 0000000..5b31921 --- /dev/null +++ b/dist/cjs/wallet/src/models/WithdrawRequestBody.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"WithdrawRequestBody.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/WithdrawRequestBody.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC3B;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,mBAAmB,CAMzF;AAED,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAE1E;AAED,wBAAgB,gCAAgC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,mBAAmB,CAY7G;AAED,wBAAgB,yBAAyB,CAAC,IAAI,EAAE,GAAG,GAAG,mBAAmB,CAExE;AAED,wBAAgB,8BAA8B,CAAC,KAAK,CAAC,EAAE,mBAAmB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAa5H"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/WithdrawRequestBody.js b/dist/cjs/wallet/src/models/WithdrawRequestBody.js new file mode 100644 index 0000000..483f9b4 --- /dev/null +++ b/dist/cjs/wallet/src/models/WithdrawRequestBody.js @@ -0,0 +1,65 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWithdrawRequestBody = instanceOfWithdrawRequestBody; +exports.WithdrawRequestBodyFromJSON = WithdrawRequestBodyFromJSON; +exports.WithdrawRequestBodyFromJSONTyped = WithdrawRequestBodyFromJSONTyped; +exports.WithdrawRequestBodyToJSON = WithdrawRequestBodyToJSON; +exports.WithdrawRequestBodyToJSONTyped = WithdrawRequestBodyToJSONTyped; +/** + * Check if a given object implements the WithdrawRequestBody interface. + */ +function instanceOfWithdrawRequestBody(value) { + if (!('network' in value) || value['network'] === undefined) + return false; + if (!('symbol' in value) || value['symbol'] === undefined) + return false; + if (!('amount' in value) || value['amount'] === undefined) + return false; + if (!('address' in value) || value['address'] === undefined) + return false; + return true; +} +function WithdrawRequestBodyFromJSON(json) { + return WithdrawRequestBodyFromJSONTyped(json, false); +} +function WithdrawRequestBodyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'network': json['network'], + 'symbol': json['symbol'], + 'amount': json['amount'], + 'address': json['address'], + 'comment': json['comment'] == null ? undefined : json['comment'], + }; +} +function WithdrawRequestBodyToJSON(json) { + return WithdrawRequestBodyToJSONTyped(json, false); +} +function WithdrawRequestBodyToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'network': value['network'], + 'symbol': value['symbol'], + 'amount': value['amount'], + 'address': value['address'], + 'comment': value['comment'], + }; +} +//# sourceMappingURL=WithdrawRequestBody.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/WithdrawRequestBody.js.map b/dist/cjs/wallet/src/models/WithdrawRequestBody.js.map new file mode 100644 index 0000000..c954e1a --- /dev/null +++ b/dist/cjs/wallet/src/models/WithdrawRequestBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"WithdrawRequestBody.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/WithdrawRequestBody.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4CH,sEAMC;AAED,kEAEC;AAED,4EAYC;AAED,8DAEC;AAED,wEAaC;AA9CD;;GAEG;AACH,SAAgB,6BAA6B,CAAC,KAAa;IACvD,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,QAAQ,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACxE,IAAI,CAAC,CAAC,SAAS,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAC1E,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,2BAA2B,CAAC,IAAS;IACjD,OAAO,gCAAgC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACzD,CAAC;AAED,SAAgB,gCAAgC,CAAC,IAAS,EAAE,mBAA4B;IACpF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC;QACxB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC;KACnE,CAAC;AACN,CAAC;AAED,SAAgB,yBAAyB,CAAC,IAAS;IAC/C,OAAO,8BAA8B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACvD,CAAC;AAED,SAAgB,8BAA8B,CAAC,KAAkC,EAAE,sBAA+B,KAAK;IACnH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC;QACzB,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;KAC9B,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/WithdrawRequestPreview.d.ts b/dist/cjs/wallet/src/models/WithdrawRequestPreview.d.ts new file mode 100644 index 0000000..48e2e5e --- /dev/null +++ b/dist/cjs/wallet/src/models/WithdrawRequestPreview.d.ts @@ -0,0 +1,66 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { Symbol } from './Symbol'; +import type { Currency } from './Currency'; +import type { Network } from './Network'; +/** + * + * @export + * @interface WithdrawRequestPreview + */ +export interface WithdrawRequestPreview { + /** + * Withdrawal address + * @type {string} + * @memberof WithdrawRequestPreview + */ + address: string; + /** + * + * @type {Network} + * @memberof WithdrawRequestPreview + */ + network: Network; + /** + * + * @type {Symbol} + * @memberof WithdrawRequestPreview + */ + symbol: Symbol; + /** + * + * @type {Currency} + * @memberof WithdrawRequestPreview + */ + amount: Currency; + /** + * + * @type {Currency} + * @memberof WithdrawRequestPreview + */ + fee: Currency; + /** + * + * @type {Currency} + * @memberof WithdrawRequestPreview + */ + balanceAfterWithdraw: Currency; +} +/** + * Check if a given object implements the WithdrawRequestPreview interface. + */ +export declare function instanceOfWithdrawRequestPreview(value: object): value is WithdrawRequestPreview; +export declare function WithdrawRequestPreviewFromJSON(json: any): WithdrawRequestPreview; +export declare function WithdrawRequestPreviewFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawRequestPreview; +export declare function WithdrawRequestPreviewToJSON(json: any): WithdrawRequestPreview; +export declare function WithdrawRequestPreviewToJSONTyped(value?: WithdrawRequestPreview | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=WithdrawRequestPreview.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/WithdrawRequestPreview.d.ts.map b/dist/cjs/wallet/src/models/WithdrawRequestPreview.d.ts.map new file mode 100644 index 0000000..82ea50b --- /dev/null +++ b/dist/cjs/wallet/src/models/WithdrawRequestPreview.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"WithdrawRequestPreview.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/WithdrawRequestPreview.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAOvC,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAO3C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAQzC;;;;GAIG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;OAIG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;;;OAIG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,MAAM,EAAE,QAAQ,CAAC;IACjB;;;;OAIG;IACH,GAAG,EAAE,QAAQ,CAAC;IACd;;;;OAIG;IACH,oBAAoB,EAAE,QAAQ,CAAC;CAClC;AAID;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,sBAAsB,CAQ/F;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAEhF;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,sBAAsB,CAanH;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAE9E;AAED,wBAAgB,iCAAiC,CAAC,KAAK,CAAC,EAAE,sBAAsB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAclI"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/WithdrawRequestPreview.js b/dist/cjs/wallet/src/models/WithdrawRequestPreview.js new file mode 100644 index 0000000..9e5fb0e --- /dev/null +++ b/dist/cjs/wallet/src/models/WithdrawRequestPreview.js @@ -0,0 +1,74 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWithdrawRequestPreview = instanceOfWithdrawRequestPreview; +exports.WithdrawRequestPreviewFromJSON = WithdrawRequestPreviewFromJSON; +exports.WithdrawRequestPreviewFromJSONTyped = WithdrawRequestPreviewFromJSONTyped; +exports.WithdrawRequestPreviewToJSON = WithdrawRequestPreviewToJSON; +exports.WithdrawRequestPreviewToJSONTyped = WithdrawRequestPreviewToJSONTyped; +const Symbol_1 = require("./Symbol"); +const Currency_1 = require("./Currency"); +const Network_1 = require("./Network"); +/** + * Check if a given object implements the WithdrawRequestPreview interface. + */ +function instanceOfWithdrawRequestPreview(value) { + if (!('address' in value) || value['address'] === undefined) + return false; + if (!('network' in value) || value['network'] === undefined) + return false; + if (!('symbol' in value) || value['symbol'] === undefined) + return false; + if (!('amount' in value) || value['amount'] === undefined) + return false; + if (!('fee' in value) || value['fee'] === undefined) + return false; + if (!('balanceAfterWithdraw' in value) || value['balanceAfterWithdraw'] === undefined) + return false; + return true; +} +function WithdrawRequestPreviewFromJSON(json) { + return WithdrawRequestPreviewFromJSONTyped(json, false); +} +function WithdrawRequestPreviewFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'address': json['address'], + 'network': (0, Network_1.NetworkFromJSON)(json['network']), + 'symbol': (0, Symbol_1.SymbolFromJSON)(json['symbol']), + 'amount': (0, Currency_1.CurrencyFromJSON)(json['amount']), + 'fee': (0, Currency_1.CurrencyFromJSON)(json['fee']), + 'balanceAfterWithdraw': (0, Currency_1.CurrencyFromJSON)(json['balanceAfterWithdraw']), + }; +} +function WithdrawRequestPreviewToJSON(json) { + return WithdrawRequestPreviewToJSONTyped(json, false); +} +function WithdrawRequestPreviewToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'address': value['address'], + 'network': (0, Network_1.NetworkToJSON)(value['network']), + 'symbol': (0, Symbol_1.SymbolToJSON)(value['symbol']), + 'amount': (0, Currency_1.CurrencyToJSON)(value['amount']), + 'fee': (0, Currency_1.CurrencyToJSON)(value['fee']), + 'balanceAfterWithdraw': (0, Currency_1.CurrencyToJSON)(value['balanceAfterWithdraw']), + }; +} +//# sourceMappingURL=WithdrawRequestPreview.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/WithdrawRequestPreview.js.map b/dist/cjs/wallet/src/models/WithdrawRequestPreview.js.map new file mode 100644 index 0000000..4ca0088 --- /dev/null +++ b/dist/cjs/wallet/src/models/WithdrawRequestPreview.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Withdraw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C;IAChB,CAAC;IACD,OAAO;QAEH,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAC1B,SAAS,EAAE,IAAA,yBAAe,EAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC3C,QAAQ,EAAE,IAAA,uBAAc,EAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QACxC,QAAQ,EAAE,IAAA,2BAAgB,EAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAC1C,KAAK,EAAE,IAAA,2BAAgB,EAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACpC,sBAAsB,EAAE,IAAA,2BAAgB,EAAC,IAAI,CAAC,sBAAsB,CAAC,CAAC;KACzE,CAAC;AACN,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,SAAgB,iCAAiC,CAAC,KAAqC,EAAE,sBAA+B,KAAK;IACzH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC;QAC3B,SAAS,EAAE,IAAA,uBAAa,EAAC,KAAK,CAAC,SAAS,CAAC,CAAC;QAC1C,QAAQ,EAAE,IAAA,qBAAY,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACvC,QAAQ,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;QACzC,KAAK,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACnC,sBAAsB,EAAE,IAAA,yBAAc,EAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;KACxE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/WithdrawRequestResponse.d.ts b/dist/cjs/wallet/src/models/WithdrawRequestResponse.d.ts new file mode 100644 index 0000000..b4578bc --- /dev/null +++ b/dist/cjs/wallet/src/models/WithdrawRequestResponse.d.ts @@ -0,0 +1,34 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +import type { WithdrawRequest } from './WithdrawRequest'; +/** + * + * @export + * @interface WithdrawRequestResponse + */ +export interface WithdrawRequestResponse { + /** + * + * @type {Array} + * @memberof WithdrawRequestResponse + */ + data: Array; +} +/** + * Check if a given object implements the WithdrawRequestResponse interface. + */ +export declare function instanceOfWithdrawRequestResponse(value: object): value is WithdrawRequestResponse; +export declare function WithdrawRequestResponseFromJSON(json: any): WithdrawRequestResponse; +export declare function WithdrawRequestResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawRequestResponse; +export declare function WithdrawRequestResponseToJSON(json: any): WithdrawRequestResponse; +export declare function WithdrawRequestResponseToJSONTyped(value?: WithdrawRequestResponse | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=WithdrawRequestResponse.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/WithdrawRequestResponse.d.ts.map b/dist/cjs/wallet/src/models/WithdrawRequestResponse.d.ts.map new file mode 100644 index 0000000..28058cc --- /dev/null +++ b/dist/cjs/wallet/src/models/WithdrawRequestResponse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"WithdrawRequestResponse.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/WithdrawRequestResponse.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAQzD;;;;GAIG;AACH,MAAM,WAAW,uBAAuB;IACpC;;;;OAIG;IACH,IAAI,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC;CAChC;AAED;;GAEG;AACH,wBAAgB,iCAAiC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,uBAAuB,CAGjG;AAED,wBAAgB,+BAA+B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAElF;AAED,wBAAgB,oCAAoC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,uBAAuB,CAQrH;AAED,wBAAgB,6BAA6B,CAAC,IAAI,EAAE,GAAG,GAAG,uBAAuB,CAEhF;AAED,wBAAgB,kCAAkC,CAAC,KAAK,CAAC,EAAE,uBAAuB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CASpI"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/WithdrawRequestResponse.js b/dist/cjs/wallet/src/models/WithdrawRequestResponse.js new file mode 100644 index 0000000..ca459fa --- /dev/null +++ b/dist/cjs/wallet/src/models/WithdrawRequestResponse.js @@ -0,0 +1,52 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWithdrawRequestResponse = instanceOfWithdrawRequestResponse; +exports.WithdrawRequestResponseFromJSON = WithdrawRequestResponseFromJSON; +exports.WithdrawRequestResponseFromJSONTyped = WithdrawRequestResponseFromJSONTyped; +exports.WithdrawRequestResponseToJSON = WithdrawRequestResponseToJSON; +exports.WithdrawRequestResponseToJSONTyped = WithdrawRequestResponseToJSONTyped; +const WithdrawRequest_1 = require("./WithdrawRequest"); +/** + * Check if a given object implements the WithdrawRequestResponse interface. + */ +function instanceOfWithdrawRequestResponse(value) { + if (!('data' in value) || value['data'] === undefined) + return false; + return true; +} +function WithdrawRequestResponseFromJSON(json) { + return WithdrawRequestResponseFromJSONTyped(json, false); +} +function WithdrawRequestResponseFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'data': (json['data'].map(WithdrawRequest_1.WithdrawRequestFromJSON)), + }; +} +function WithdrawRequestResponseToJSON(json) { + return WithdrawRequestResponseToJSONTyped(json, false); +} +function WithdrawRequestResponseToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'data': (value['data'].map(WithdrawRequest_1.WithdrawRequestToJSON)), + }; +} +//# sourceMappingURL=WithdrawRequestResponse.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/WithdrawRequestResponse.js.map b/dist/cjs/wallet/src/models/WithdrawRequestResponse.js.map new file mode 100644 index 0000000..508e2c2 --- /dev/null +++ b/dist/cjs/wallet/src/models/WithdrawRequestResponse.js.map @@ -0,0 +1 @@ +{"version":3,"file":"WithdrawRequestResponse.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/WithdrawRequestResponse.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AA4BH,8EAGC;AAED,0EAEC;AAED,oFAQC;AAED,sEAEC;AAED,gFASC;AAxDD,uDAK2B;AAgB3B;;GAEG;AACH,SAAgB,iCAAiC,CAAC,KAAa;IAC3D,IAAI,CAAC,CAAC,MAAM,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IACpE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,+BAA+B,CAAC,IAAS;IACrD,OAAO,oCAAoC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC7D,CAAC;AAED,SAAgB,oCAAoC,CAAC,IAAS,EAAE,mBAA4B;IACxF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,MAAM,EAAE,CAAE,IAAI,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,yCAAuB,CAAC,CAAC;KACtE,CAAC;AACN,CAAC;AAED,SAAgB,6BAA6B,CAAC,IAAS;IACnD,OAAO,kCAAkC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC3D,CAAC;AAED,SAAgB,kCAAkC,CAAC,KAAsC,EAAE,sBAA+B,KAAK;IAC3H,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,MAAM,EAAE,CAAE,KAAK,CAAC,MAAM,CAAgB,CAAC,GAAG,CAAC,uCAAqB,CAAC,CAAC;KACrE,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/WithdrawResponseBody.d.ts b/dist/cjs/wallet/src/models/WithdrawResponseBody.d.ts new file mode 100644 index 0000000..b3055f0 --- /dev/null +++ b/dist/cjs/wallet/src/models/WithdrawResponseBody.d.ts @@ -0,0 +1,33 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +/** + * + * @export + * @interface WithdrawResponseBody + */ +export interface WithdrawResponseBody { + /** + * Withdrawal request ID + * @type {number} + * @memberof WithdrawResponseBody + */ + id: number; +} +/** + * Check if a given object implements the WithdrawResponseBody interface. + */ +export declare function instanceOfWithdrawResponseBody(value: object): value is WithdrawResponseBody; +export declare function WithdrawResponseBodyFromJSON(json: any): WithdrawResponseBody; +export declare function WithdrawResponseBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): WithdrawResponseBody; +export declare function WithdrawResponseBodyToJSON(json: any): WithdrawResponseBody; +export declare function WithdrawResponseBodyToJSONTyped(value?: WithdrawResponseBody | null, ignoreDiscriminator?: boolean): any; +//# sourceMappingURL=WithdrawResponseBody.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/WithdrawResponseBody.d.ts.map b/dist/cjs/wallet/src/models/WithdrawResponseBody.d.ts.map new file mode 100644 index 0000000..5abdd01 --- /dev/null +++ b/dist/cjs/wallet/src/models/WithdrawResponseBody.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"WithdrawResponseBody.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/WithdrawResponseBody.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,oBAAoB;IACjC;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;CACd;AAED;;GAEG;AACH,wBAAgB,8BAA8B,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,oBAAoB,CAG3F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE5E;AAED,wBAAgB,iCAAiC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,oBAAoB,CAQ/G;AAED,wBAAgB,0BAA0B,CAAC,IAAI,EAAE,GAAG,GAAG,oBAAoB,CAE1E;AAED,wBAAgB,+BAA+B,CAAC,KAAK,CAAC,EAAE,oBAAoB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAS9H"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/WithdrawResponseBody.js b/dist/cjs/wallet/src/models/WithdrawResponseBody.js new file mode 100644 index 0000000..8aece2b --- /dev/null +++ b/dist/cjs/wallet/src/models/WithdrawResponseBody.js @@ -0,0 +1,51 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.instanceOfWithdrawResponseBody = instanceOfWithdrawResponseBody; +exports.WithdrawResponseBodyFromJSON = WithdrawResponseBodyFromJSON; +exports.WithdrawResponseBodyFromJSONTyped = WithdrawResponseBodyFromJSONTyped; +exports.WithdrawResponseBodyToJSON = WithdrawResponseBodyToJSON; +exports.WithdrawResponseBodyToJSONTyped = WithdrawResponseBodyToJSONTyped; +/** + * Check if a given object implements the WithdrawResponseBody interface. + */ +function instanceOfWithdrawResponseBody(value) { + if (!('id' in value) || value['id'] === undefined) + return false; + return true; +} +function WithdrawResponseBodyFromJSON(json) { + return WithdrawResponseBodyFromJSONTyped(json, false); +} +function WithdrawResponseBodyFromJSONTyped(json, ignoreDiscriminator) { + if (json == null) { + return json; + } + return { + 'id': json['id'], + }; +} +function WithdrawResponseBodyToJSON(json) { + return WithdrawResponseBodyToJSONTyped(json, false); +} +function WithdrawResponseBodyToJSONTyped(value, ignoreDiscriminator = false) { + if (value == null) { + return value; + } + return { + 'id': value['id'], + }; +} +//# sourceMappingURL=WithdrawResponseBody.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/WithdrawResponseBody.js.map b/dist/cjs/wallet/src/models/WithdrawResponseBody.js.map new file mode 100644 index 0000000..7daa983 --- /dev/null +++ b/dist/cjs/wallet/src/models/WithdrawResponseBody.js.map @@ -0,0 +1 @@ +{"version":3,"file":"WithdrawResponseBody.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/WithdrawResponseBody.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoBH,wEAGC;AAED,oEAEC;AAED,8EAQC;AAED,gEAEC;AAED,0EASC;AAnCD;;GAEG;AACH,SAAgB,8BAA8B,CAAC,KAAa;IACxD,IAAI,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,KAAK,SAAS;QAAE,OAAO,KAAK,CAAC;IAChE,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,SAAgB,iCAAiC,CAAC,IAAS,EAAE,mBAA4B;IACrF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC;KACnB,CAAC;AACN,CAAC;AAED,SAAgB,0BAA0B,CAAC,IAAS;IAChD,OAAO,+BAA+B,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACxD,CAAC;AAED,SAAgB,+BAA+B,CAAC,KAAmC,EAAE,sBAA+B,KAAK;IACrH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC;KACpB,CAAC;AACN,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/index.d.ts b/dist/cjs/wallet/src/models/index.d.ts new file mode 100644 index 0000000..a9df4f9 --- /dev/null +++ b/dist/cjs/wallet/src/models/index.d.ts @@ -0,0 +1,65 @@ +export * from './AdminRedemptionUpdateRequest'; +export * from './AuthTelegramRequest'; +export * from './Balance'; +export * from './BankInfo'; +export * from './BulletContent'; +export * from './Coin'; +export * from './CoinConfig'; +export * from './CoinResponse'; +export * from './CreateChildUserRequest'; +export * from './Currency'; +export * from './DepositResponse'; +export * from './DetailedLoanToValueOptions'; +export * from './EmailOtpSubmitRequest'; +export * from './ErrorDetail'; +export * from './ExternalTransaction'; +export * from './FriendPoints'; +export * from './FriendPointsResponse'; +export * from './HealthStatus'; +export * from './JwtResponse'; +export * from './KycConfirmRequest'; +export * from './KycRequest'; +export * from './KycResponse'; +export * from './LoanCreateRequest'; +export * from './LoanPlan'; +export * from './LoanPlanResponse'; +export * from './LoanToValueOptions'; +export * from './LoansResponse'; +export * from './LoansResponseList'; +export * from './LoginRequest'; +export * from './ModelError'; +export * from './Network'; +export * from './Payment'; +export * from './PaymentRequest'; +export * from './PhoneOtpSubmitRequest'; +export * from './ProfileResponse'; +export * from './Redemption'; +export * from './RedemptionRequest'; +export * from './RedemptionResponse'; +export * from './Referral'; +export * from './ReferralResponse'; +export * from './RepayLoanRequest'; +export * from './SignUpRequest'; +export * from './SimpleResponse'; +export * from './SwapRequest'; +export * from './SwapResponse'; +export * from './Symbol'; +export * from './Task'; +export * from './TaskResponse'; +export * from './TelegramProfile'; +export * from './Timestamp'; +export * from './Transaction'; +export * from './TransactionResponse'; +export * from './TransactionStatus'; +export * from './TransactionType'; +export * from './UpdateEmailRequest'; +export * from './UpdatePhoneRequest'; +export * from './User'; +export * from './UserError'; +export * from './WalletBalance'; +export * from './WithdrawRequest'; +export * from './WithdrawRequestBody'; +export * from './WithdrawRequestPreview'; +export * from './WithdrawRequestResponse'; +export * from './WithdrawResponseBody'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/index.d.ts.map b/dist/cjs/wallet/src/models/index.d.ts.map new file mode 100644 index 0000000..e79a324 --- /dev/null +++ b/dist/cjs/wallet/src/models/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/wallet/src/models/index.ts"],"names":[],"mappings":"AAEA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,YAAY,CAAC;AAC3B,cAAc,mBAAmB,CAAC;AAClC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,yBAAyB,CAAC;AACxC,cAAc,eAAe,CAAC;AAC9B,cAAc,uBAAuB,CAAC;AACtC,cAAc,gBAAgB,CAAC;A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1C,cAAc,wBAAwB,CAAC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/index.js b/dist/cjs/wallet/src/models/index.js new file mode 100644 index 0000000..8e23727 --- /dev/null +++ b/dist/cjs/wallet/src/models/index.js @@ -0,0 +1,70 @@ +"use strict"; +Object.defineProperty(exports, "__esModule", { value: true }); +const tslib_1 = require("tslib"); +/* tslint:disable */ +/* eslint-disable */ +tslib_1.__exportStar(require("./AdminRedemptionUpdateRequest"), exports); +tslib_1.__exportStar(require("./AuthTelegramRequest"), exports); +tslib_1.__exportStar(require("./Balance"), exports); +tslib_1.__exportStar(require("./BankInfo"), exports); +tslib_1.__exportStar(require("./BulletContent"), exports); +tslib_1.__exportStar(require("./Coin"), exports); +tslib_1.__exportStar(require("./CoinConfig"), exports); +tslib_1.__exportStar(require("./CoinResponse"), exports); +tslib_1.__exportStar(require("./CreateChildUserRequest"), exports); +tslib_1.__exportStar(require("./Currency"), exports); +tslib_1.__exportStar(require("./DepositResponse"), exports); +tslib_1.__exportStar(require("./DetailedLoanToValueOptions"), exports); +tslib_1.__exportStar(require("./EmailOtpSubmitRequest"), exports); +tslib_1.__exportStar(require("./ErrorDetail"), exports); +tslib_1.__exportStar(require("./ExternalTransaction"), exports); +tslib_1.__exportStar(require("./FriendPoints"), exports); +tslib_1.__exportStar(require("./FriendPointsResponse"), exports); +tslib_1.__exportStar(require("./HealthStatus"), exports); +tslib_1.__exportStar(require("./JwtResponse"), exports); +tslib_1.__exportStar(require("./KycConfirmRequest"), exports); +tslib_1.__exportStar(require("./KycRequest"), exports); +tslib_1.__exportStar(require("./KycResponse"), exports); +tslib_1.__exportStar(require("./LoanCreateRequest"), exports); +tslib_1.__exportStar(require("./LoanPlan"), exports); +tslib_1.__exportStar(require("./LoanPlanResponse"), exports); +tslib_1.__exportStar(require("./LoanToValueOptions"), exports); +tslib_1.__exportStar(require("./LoansResponse"), exports); +tslib_1.__exportStar(require("./LoansResponseList"), exports); +tslib_1.__exportStar(require("./LoginRequest"), exports); +tslib_1.__exportStar(require("./ModelError"), exports); +tslib_1.__exportStar(require("./Network"), exports); +tslib_1.__exportStar(require("./Payment"), exports); +tslib_1.__exportStar(require("./PaymentRequest"), exports); +tslib_1.__exportStar(require("./PhoneOtpSubmitRequest"), exports); +tslib_1.__exportStar(require("./ProfileResponse"), exports); +tslib_1.__exportStar(require("./Redemption"), exports); +tslib_1.__exportStar(require("./RedemptionRequest"), exports); +tslib_1.__exportStar(require("./RedemptionResponse"), exports); +tslib_1.__exportStar(require("./Referral"), exports); +tslib_1.__exportStar(require("./ReferralResponse"), exports); +tslib_1.__exportStar(require("./RepayLoanRequest"), exports); +tslib_1.__exportStar(require("./SignUpRequest"), exports); +tslib_1.__exportStar(require("./SimpleResponse"), exports); +tslib_1.__exportStar(require("./SwapRequest"), exports); +tslib_1.__exportStar(require("./SwapResponse"), exports); +tslib_1.__exportStar(require("./Symbol"), exports); +tslib_1.__exportStar(require("./Task"), exports); +tslib_1.__exportStar(require("./TaskResponse"), exports); +tslib_1.__exportStar(require("./TelegramProfile"), exports); +tslib_1.__exportStar(require("./Timestamp"), exports); +tslib_1.__exportStar(require("./Transaction"), exports); +tslib_1.__exportStar(require("./TransactionResponse"), exports); +tslib_1.__exportStar(require("./TransactionStatus"), exports); +tslib_1.__exportStar(require("./TransactionType"), exports); +tslib_1.__exportStar(require("./UpdateEmailRequest"), exports); +tslib_1.__exportStar(require("./UpdatePhoneRequest"), exports); +tslib_1.__exportStar(require("./User"), exports); +tslib_1.__exportStar(require("./UserError"), exports); +tslib_1.__exportStar(require("./WalletBalance"), exports); +tslib_1.__exportStar(require("./WithdrawRequest"), exports); +tslib_1.__exportStar(require("./WithdrawRequestBody"), exports); +tslib_1.__exportStar(require("./WithdrawRequestPreview"), exports); +tslib_1.__exportStar(require("./WithdrawRequestResponse"), exports); +tslib_1.__exportStar(require("./WithdrawResponseBody"), exports); +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/models/index.js.map b/dist/cjs/wallet/src/models/index.js.map new file mode 100644 index 0000000..ebc1dde --- /dev/null +++ b/dist/cjs/wallet/src/models/index.js.map @@ -0,0 +1 @@ +{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/wallet/src/models/index.ts"],"names":[],"mappings":";;;AAAA,oBAAoB;AACpB,oBAAoB;AACpB,yEAA+C;AAC/C,gEAAsC;AACtC,oDAA0B;AAC1B,qDAA2B;AAC3B,0DAAgC;AAChC,iDAAuB;AACvB,uDAA6B;AAC7B,yDAA+B;AAC/B,mEAAyC;AACzC,qDAA2B;AAC3B,4DAAkC;AAClC,uEAA6C;AAC7C,kEAAwC;AACxC,wDAA8B;AAC9B,gEAAsC;AACtC,yDAA+B;AAC/B,iEAAuC;AACvC,yDAA+B;AAC/B,wDAA8B;AAC9B,8DAAoC;AACpC,uDAA6B;AAC7B,wDAA8B;AAC9B,8DAAoC;AACpC,qDAA2B;AAC3B,6DAAmC;AACnC,+DAAqC;AACrC,0DAAgC;AAChC,8DAAoC;AACpC,yDAA+B;AAC/B,uDAA6B;AAC7B,oDAA0B;AAC1B,oDAA0B;AAC1B,2DAAiC;AACjC,kEAAwC;AACxC,4DAAkC;AAClC,uDAA6B;AAC7B,8DAAoC;AACpC,+DAAqC;AACrC,qDAA2B;AAC3B,6DAAmC;AACnC,6DAAmC;AACnC,0DAAgC;AAChC,2DAAiC;AACjC,wDAA8B;AAC9B,yDAA+B;AAC/B,mDAAyB;AACzB,iDAAuB;AACvB,yDAA+B;AAC/B,4DAAkC;AAClC,sDAA4B;AAC5B,wDAA8B;AAC9B,gEAAsC;AACtC,8DAAoC;AACpC,4DAAkC;AAClC,+DAAqC;AACrC,+DAAqC;AACrC,iDAAuB;AACvB,sDAA4B;AAC5B,0DAAgC;AAChC,4DAAkC;AAClC,gEAAsC;AACtC,mEAAyC;AACzC,oEAA0C;AAC1C,iEAAuC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/runtime.d.ts b/dist/cjs/wallet/src/runtime.d.ts new file mode 100644 index 0000000..6bb0eb7 --- /dev/null +++ b/dist/cjs/wallet/src/runtime.d.ts @@ -0,0 +1,183 @@ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +export declare const BASE_PATH: string; +export interface ConfigurationParameters { + basePath?: string; + fetchApi?: FetchAPI; + middleware?: Middleware[]; + queryParamsStringify?: (params: HTTPQuery) => string; + username?: string; + password?: string; + apiKey?: string | Promise | ((name: string) => string | Promise); + accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string | Promise); + headers?: HTTPHeaders; + credentials?: RequestCredentials; +} +export declare class Configuration { + private configuration; + constructor(configuration?: ConfigurationParameters); + set config(configuration: Configuration); + get basePath(): string; + get fetchApi(): FetchAPI | undefined; + get middleware(): Middleware[]; + get queryParamsStringify(): (params: HTTPQuery) => string; + get username(): string | undefined; + get password(): string | undefined; + get apiKey(): ((name: string) => string | Promise) | undefined; + get accessToken(): ((name?: string, scopes?: string[]) => string | Promise) | undefined; + get headers(): HTTPHeaders | undefined; + get credentials(): RequestCredentials | undefined; +} +export declare const DefaultConfig: Configuration; +/** + * This is the base class for all generated API classes. + */ +export declare class BaseAPI { + protected configuration: Configuration; + private static readonly jsonRegex; + private middleware; + constructor(configuration?: Configuration); + withMiddleware(this: T, ...middlewares: Middleware[]): T; + withPreMiddleware(this: T, ...preMiddlewares: Array): T; + withPostMiddleware(this: T, ...postMiddlewares: Array): T; + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + protected isJsonMime(mime: string | null | undefined): boolean; + protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise; + private createFetchParams; + private fetchApi; + /** + * Create a shallow clone of `this` by constructing a new instance + * and then shallow cloning data members. + */ + private clone; +} +export declare class ResponseError extends Error { + response: Response; + name: "ResponseError"; + constructor(response: Response, msg?: string); +} +export declare class FetchError extends Error { + cause: Error; + name: "FetchError"; + constructor(cause: Error, msg?: string); +} +export declare class RequiredError extends Error { + field: string; + name: "RequiredError"; + constructor(field: string, msg?: string); +} +export declare const COLLECTION_FORMATS: { + csv: string; + ssv: string; + tsv: string; + pipes: string; +}; +export type FetchAPI = WindowOrWorkerGlobalScope['fetch']; +export type Json = any; +export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD'; +export type HTTPHeaders = { + [key: string]: string; +}; +export type HTTPQuery = { + [key: string]: string | number | null | boolean | Array | Set | HTTPQuery; +}; +export type HTTPBody = Json | FormData | URLSearchParams; +export type HTTPRequestInit = { + headers?: HTTPHeaders; + method: HTTPMethod; + credentials?: RequestCredentials; + body?: HTTPBody; +}; +export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original'; +export type InitOverrideFunction = (requestContext: { + init: HTTPRequestInit; + context: RequestOpts; +}) => Promise; +export interface FetchParams { + url: string; + init: RequestInit; +} +export interface RequestOpts { + path: string; + method: HTTPMethod; + headers: HTTPHeaders; + query?: HTTPQuery; + body?: HTTPBody; +} +export declare function querystring(params: HTTPQuery, prefix?: string): string; +export declare function exists(json: any, key: string): boolean; +export declare function mapValues(data: any, fn: (item: any) => any): {}; +export declare function canConsumeForm(consumes: Consume[]): boolean; +export interface Consume { + contentType: string; +} +export interface RequestContext { + fetch: FetchAPI; + url: string; + init: RequestInit; +} +export interface ResponseContext { + fetch: FetchAPI; + url: string; + init: RequestInit; + response: Response; +} +export interface ErrorContext { + fetch: FetchAPI; + url: string; + init: RequestInit; + error: unknown; + response?: Response; +} +export interface Middleware { + pre?(context: RequestContext): Promise; + post?(context: ResponseContext): Promise; + onError?(context: ErrorContext): Promise; +} +export interface ApiResponse { + raw: Response; + value(): Promise; +} +export interface ResponseTransformer { + (json: any): T; +} +export declare class JSONApiResponse { + raw: Response; + private transformer; + constructor(raw: Response, transformer?: ResponseTransformer); + value(): Promise; +} +export declare class VoidApiResponse { + raw: Response; + constructor(raw: Response); + value(): Promise; +} +export declare class BlobApiResponse { + raw: Response; + constructor(raw: Response); + value(): Promise; +} +export declare class TextApiResponse { + raw: Response; + constructor(raw: Response); + value(): Promise; +} +//# sourceMappingURL=runtime.d.ts.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/runtime.d.ts.map b/dist/cjs/wallet/src/runtime.d.ts.map new file mode 100644 index 0000000..eee1b54 --- /dev/null +++ b/dist/cjs/wallet/src/runtime.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"runtime.d.ts","sourceRoot":"","sources":["../../../../src/wallet/src/runtime.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,eAAO,MAAM,SAAS,QAA+C,CAAC;AAEtE,MAAM,WAAW,uBAAuB;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,UAAU,CAAC,EAAE,UAAU,EAAE,CAAC;IAC1B,oBAAoB,CAAC,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,MAAM,CAAC;IACrD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IACjF,WAAW,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,KAAK,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,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mBAAmB,CAAC,CAAC;IAClC,CAAC,IAAI,EAAE,GAAG,GAAG,CAAC,CAAC;CAClB;AAED,qBAAa,eAAe,CAAC,CAAC;IACP,GAAG,EAAE,QAAQ;IAAE,OAAO,CAAC,WAAW;gBAAlC,GAAG,EAAE,QAAQ,EAAU,WAAW,GAAE,mBAAmB,CAAC,CAAC,CAAiC;IAEvG,KAAK,IAAI,OAAO,CAAC,CAAC,CAAC;CAG5B;AAED,qBAAa,eAAe;IACL,GAAG,EAAE,QAAQ;gBAAb,GAAG,EAAE,QAAQ;IAE1B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAG/B;AAED,qBAAa,eAAe;IACL,GAAG,EAAE,QAAQ;gBAAb,GAAG,EAAE,QAAQ;IAE1B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAG/B;AAED,qBAAa,eAAe;IACL,GAAG,EAAE,QAAQ;gBAAb,GAAG,EAAE,QAAQ;IAE1B,KAAK,IAAI,OAAO,CAAC,MAAM,CAAC;CAGjC"} \ No newline at end of file diff --git a/dist/cjs/wallet/src/runtime.js b/dist/cjs/wallet/src/runtime.js new file mode 100644 index 0000000..05f31e0 --- /dev/null +++ b/dist/cjs/wallet/src/runtime.js @@ -0,0 +1,346 @@ +"use strict"; +/* tslint:disable */ +/* eslint-disable */ +/** + * Zarban Wallet API + * API for Zarban wallet services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: info@zarban.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ +Object.defineProperty(exports, "__esModule", { value: true }); +exports.TextApiResponse = exports.BlobApiResponse = exports.VoidApiResponse = exports.JSONApiResponse = exports.COLLECTION_FORMATS = exports.RequiredError = exports.FetchError = exports.ResponseError = exports.BaseAPI = exports.DefaultConfig = exports.Configuration = exports.BASE_PATH = void 0; +exports.querystring = querystring; +exports.exists = exists; +exports.mapValues = mapValues; +exports.canConsumeForm = canConsumeForm; +exports.BASE_PATH = "https://wapi.zarban.io".replace(/\/+$/, ""); +class Configuration { + configuration; + constructor(configuration = {}) { + this.configuration = configuration; + } + set config(configuration) { + this.configuration = configuration; + } + get basePath() { + return this.configuration.basePath != null ? this.configuration.basePath : exports.BASE_PATH; + } + get fetchApi() { + return this.configuration.fetchApi; + } + get middleware() { + return this.configuration.middleware || []; + } + get queryParamsStringify() { + return this.configuration.queryParamsStringify || querystring; + } + get username() { + return this.configuration.username; + } + get password() { + return this.configuration.password; + } + get apiKey() { + const apiKey = this.configuration.apiKey; + if (apiKey) { + return typeof apiKey === 'function' ? apiKey : () => apiKey; + } + return undefined; + } + get accessToken() { + const accessToken = this.configuration.accessToken; + if (accessToken) { + return typeof accessToken === 'function' ? accessToken : async () => accessToken; + } + return undefined; + } + get headers() { + return this.configuration.headers; + } + get credentials() { + return this.configuration.credentials; + } +} +exports.Configuration = Configuration; +exports.DefaultConfig = new Configuration(); +/** + * This is the base class for all generated API classes. + */ +class BaseAPI { + configuration; + static jsonRegex = new RegExp('^(:?application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(:?;.*)?$', 'i'); + middleware; + constructor(configuration = exports.DefaultConfig) { + this.configuration = configuration; + this.middleware = configuration.middleware; + } + withMiddleware(...middlewares) { + const next = this.clone(); + next.middleware = next.middleware.concat(...middlewares); + return next; + } + withPreMiddleware(...preMiddlewares) { + const middlewares = preMiddlewares.map((pre) => ({ pre })); + return this.withMiddleware(...middlewares); + } + withPostMiddleware(...postMiddlewares) { + const middlewares = postMiddlewares.map((post) => ({ post })); + return this.withMiddleware(...middlewares); + } + /** + * Check if the given MIME is a JSON MIME. + * JSON MIME examples: + * application/json + * application/json; charset=UTF8 + * APPLICATION/JSON + * application/vnd.company+json + * @param mime - MIME (Multipurpose Internet Mail Extensions) + * @return True if the given MIME is JSON, false otherwise. + */ + isJsonMime(mime) { + if (!mime) { + return false; + } + return BaseAPI.jsonRegex.test(mime); + } + async request(context, initOverrides) { + const { url, init } = await this.createFetchParams(context, initOverrides); + const response = await this.fetchApi(url, init); + if (response && (response.status >= 200 && response.status < 300)) { + return response; + } + throw new ResponseError(response, 'Response returned an error code'); + } + async createFetchParams(context, initOverrides) { + let url = this.configuration.basePath + context.path; + if (context.query !== undefined && Object.keys(context.query).length !== 0) { + // only add the querystring to the URL if there are query parameters. + // this is done to avoid urls ending with a "?" character which buggy webservers + // do not handle correctly sometimes. + url += '?' + this.configuration.queryParamsStringify(context.query); + } + const headers = Object.assign({}, this.configuration.headers, context.headers); + Object.keys(headers).forEach(key => headers[key] === undefined ? delete headers[key] : {}); + const initOverrideFn = typeof initOverrides === "function" + ? initOverrides + : async () => initOverrides; + const initParams = { + method: context.method, + headers, + body: context.body, + credentials: this.configuration.credentials, + }; + const overriddenInit = { + ...initParams, + ...(await initOverrideFn({ + init: initParams, + context, + })) + }; + let body; + if (isFormData(overriddenInit.body) + || (overriddenInit.body instanceof URLSearchParams) + || isBlob(overriddenInit.body)) { + body = overriddenInit.body; + } + else if (this.isJsonMime(headers['Content-Type'])) { + body = JSON.stringify(overriddenInit.body); + } + else { + body = overriddenInit.body; + } + const init = { + ...overriddenInit, + body + }; + return { url, init }; + } + fetchApi = async (url, init) => { + let fetchParams = { url, init }; + for (const middleware of this.middleware) { + if (middleware.pre) { + fetchParams = await middleware.pre({ + fetch: this.fetchApi, + ...fetchParams, + }) || fetchParams; + } + } + let response = undefined; + try { + response = await (this.configuration.fetchApi || fetch)(fetchParams.url, fetchParams.init); + } + catch (e) { + for (const middleware of this.middleware) { + if (middleware.onError) { + response = await middleware.onError({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + error: e, + response: response ? response.clone() : undefined, + }) || response; + } + } + if (response === undefined) { + if (e instanceof Error) { + throw new FetchError(e, 'The request failed and the interceptors did not return an alternative response'); + } + else { + throw e; + } + } + } + for (const middleware of this.middleware) { + if (middleware.post) { + response = await middleware.post({ + fetch: this.fetchApi, + url: fetchParams.url, + init: fetchParams.init, + response: response.clone(), + }) || response; + } + } + return response; + }; + /** + * Create a shallow clone of `this` by constructing a new instance + * and then shallow cloning data members. + */ + clone() { + const constructor = this.constructor; + const next = new constructor(this.configuration); + next.middleware = this.middleware.slice(); + return next; + } +} +exports.BaseAPI = BaseAPI; +; +function isBlob(value) { + return typeof Blob !== 'undefined' && value instanceof Blob; +} +function isFormData(value) { + return typeof FormData !== "undefined" && value instanceof FormData; +} +class ResponseError extends Error { + response; + name = "ResponseError"; + constructor(response, msg) { + super(msg); + this.response = response; + } +} +exports.ResponseError = ResponseError; +class FetchError extends Error { + cause; + name = "FetchError"; + constructor(cause, msg) { + super(msg); + this.cause = cause; + } +} +exports.FetchError = FetchError; +class RequiredError extends Error { + field; + name = "RequiredError"; + constructor(field, msg) { + super(msg); + this.field = field; + } +} +exports.RequiredError = RequiredError; +exports.COLLECTION_FORMATS = { + csv: ",", + ssv: " ", + tsv: "\t", + pipes: "|", +}; +function querystring(params, prefix = '') { + return Object.keys(params) + .map(key => querystringSingleKey(key, params[key], prefix)) + .filter(part => part.length > 0) + .join('&'); +} +function querystringSingleKey(key, value, keyPrefix = '') { + const fullKey = keyPrefix + (keyPrefix.length ? `[${key}]` : key); + if (value instanceof Array) { + const multiValue = value.map(singleValue => encodeURIComponent(String(singleValue))) + .join(`&${encodeURIComponent(fullKey)}=`); + return `${encodeURIComponent(fullKey)}=${multiValue}`; + } + if (value instanceof Set) { + const valueAsArray = Array.from(value); + return querystringSingleKey(key, valueAsArray, keyPrefix); + } + if (value instanceof Date) { + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(value.toISOString())}`; + } + if (value instanceof Object) { + return querystring(value, fullKey); + } + return `${encodeURIComponent(fullKey)}=${encodeURIComponent(String(value))}`; +} +function exists(json, key) { + const value = json[key]; + return value !== null && value !== undefined; +} +function mapValues(data, fn) { + return Object.keys(data).reduce((acc, key) => ({ ...acc, [key]: fn(data[key]) }), {}); +} +function canConsumeForm(consumes) { + for (const consume of consumes) { + if ('multipart/form-data' === consume.contentType) { + return true; + } + } + return false; +} +class JSONApiResponse { + raw; + transformer; + constructor(raw, transformer = (jsonValue) => jsonValue) { + this.raw = raw; + this.transformer = transformer; + } + async value() { + return this.transformer(await this.raw.json()); + } +} +exports.JSONApiResponse = JSONApiResponse; +class VoidApiResponse { + raw; + constructor(raw) { + this.raw = raw; + } + async value() { + return undefined; + } +} +exports.VoidApiResponse = VoidApiResponse; +class BlobApiResponse { + raw; + constructor(raw) { + this.raw = raw; + } + async value() { + return await this.raw.blob(); + } + ; +} +exports.BlobApiResponse = BlobApiResponse; +class TextApiResponse { + raw; + constructor(raw) { + this.raw = raw; + } + async value() { + return await this.raw.text(); + } + ; +} +exports.TextApiResponse = TextApiResponse; +//# sourceMappingURL=runtime.js.map \ No newline at end of file diff --git a/dist/cjs/wallet/src/runtime.js.map b/dist/cjs/wallet/src/runtime.js.map new file mode 100644 index 0000000..b69ac33 --- /dev/null +++ b/dist/cjs/wallet/src/runtime.js.map @@ -0,0 +1 @@ +{"version":3,"file":"runtime.js","sourceRoot":"","sources":["../../../../src/wallet/src/runtime.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;AA4SH,kCAKC;AAsBD,wBAGC;AAED,8BAKC;AAED,wCAOC;AAvVY,QAAA,SAAS,GAAG,wBAAwB,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAetE,MAAa,aAAa;IACF;IAApB,YAAoB,gBAAyC,EAAE;QAA3C,kBAAa,GAAb,aAAa,CAA8B;IAAG,CAAC;IAEnE,IAAI,MAAM,CAAC,aAA4B;QACnC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;IACvC,CAAC;IAED,IAAI,QAAQ;QACR,OAAO,IAAI,CAAC,aAAa,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,iBAAS,CAAC;IACzF,CAAC;IAED,IAAI,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AAC,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC;IACnD,CAAC;CACJ;AAND,0CAMC;AAED,MAAa,eAAe;IACL;IAAnB,YAAmB,GAAa;QAAb,QAAG,GAAH,GAAG,CAAU;IAAG,CAAC;IAEpC,KAAK,CAAC,KAAK;QACP,OAAO,SAAS,CAAC;IACrB,CAAC;CACJ;AAND,0CAMC;AAED,MAAa,eAAe;IACL;IAAnB,YAAmB,GAAa;QAAb,QAAG,GAAH,GAAG,CAAU;IAAG,CAAC;IAEpC,KAAK,CAAC,KAAK;QACP,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IACjC,CAAC;IAAA,CAAC;CACL;AAND,0CAMC;AAED,MAAa,eAAe;IACL;IAAnB,YAAmB,GAAa;QAAb,QAAG,GAAH,GAAG,CAAU;IAAG,CAAC;IAEpC,KAAK,CAAC,KAAK;QACP,OAAO,MAAM,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IACjC,CAAC;IAAA,CAAC;CACL;AAND,0CAMC"} \ No newline at end of file diff --git a/openapitools.json b/openapitools.json index 747d4e3..2ad1687 100644 --- a/openapitools.json +++ b/openapitools.json @@ -16,7 +16,7 @@ "apiPackage": "api", "modelPackage": "model", "npmName": "zarban", - "npmVersion": "0.1.5", + "npmVersion": "0.1.6", "modelPropertyNaming": "camelCase", "enumPropertyNaming": "UPPERCASE", "nullSafeAdditionalProps": true @@ -40,7 +40,7 @@ "apiPackage": "api", "modelPackage": "model", "npmName": "zarban", - "npmVersion": "0.1.5", + "npmVersion": "0.1.6", "modelPropertyNaming": "camelCase", "enumPropertyNaming": "UPPERCASE", "nullSafeAdditionalProps": true diff --git a/package.json b/package.json index 2a341bc..29045c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "zarban", - "version": "0.1.5", + "version": "0.1.6", "description": "Zarban - A TypeScript SDK", "type": "module", "main": "dist/index.js", @@ -9,6 +9,7 @@ "exports": { ".": { "import": "./dist/index.js", + "require": "./dist/cjs/index.js", "types": "./dist/index.d.ts" } }, @@ -20,7 +21,7 @@ "clean": "rimraf dist && rimraf src/service && rimraf src/wallet && rimraf docs", "generate": "npx openapi-generator-cli generate", "post-generate": "node fix-exports.cjs", - "build": "npm run clean && npm run generate && npm run post-generate && tsc", + "build": "npm run clean && npm run generate && npm run post-generate && tsc && tsc --project tsconfig.cjs.json", "prepublishOnly": "npm run build", "test": "jest", "lint": "eslint . --ext .ts", diff --git a/src/service/README.md b/src/service/README.md index 688a323..affc054 100644 --- a/src/service/README.md +++ b/src/service/README.md @@ -1,4 +1,4 @@ -## zarban@0.1.5 +## zarban@0.1.6 This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments: @@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co _published:_ ``` -npm install zarban@0.1.5 --save +npm install zarban@0.1.6 --save ``` _unPublished (not recommended):_ diff --git a/src/service/package.json b/src/service/package.json index 23dc4ef..f59ff54 100644 --- a/src/service/package.json +++ b/src/service/package.json @@ -1,6 +1,6 @@ { "name": "zarban", - "version": "0.1.5", + "version": "0.1.6", "description": "OpenAPI client for zarban", "author": "OpenAPI-Generator", "repository": { diff --git a/src/wallet/README.md b/src/wallet/README.md index 688a323..affc054 100644 --- a/src/wallet/README.md +++ b/src/wallet/README.md @@ -1,4 +1,4 @@ -## zarban@0.1.5 +## zarban@0.1.6 This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments: @@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co _published:_ ``` -npm install zarban@0.1.5 --save +npm install zarban@0.1.6 --save ``` _unPublished (not recommended):_ diff --git a/src/wallet/package.json b/src/wallet/package.json index 23dc4ef..f59ff54 100644 --- a/src/wallet/package.json +++ b/src/wallet/package.json @@ -1,6 +1,6 @@ { "name": "zarban", - "version": "0.1.5", + "version": "0.1.6", "description": "OpenAPI client for zarban", "author": "OpenAPI-Generator", "repository": { diff --git a/tsconfig.cjs.json b/tsconfig.cjs.json new file mode 100644 index 0000000..47037f4 --- /dev/null +++ b/tsconfig.cjs.json @@ -0,0 +1,8 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "moduleResolution": "Node", + "module": "CommonJS", + "outDir": "./dist/cjs" + } +} \ No newline at end of file