fireblocks-sdk
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -173,5 +173,16 @@ import { VaultAccountResponse, CreateTransactionResponse, TransactionArguments, AssetResponse, ExchangeResponse, TransactionResponse, TransactionFilter, CancelTransactionResponse, WalletContainerResponse, WalletAssetResponse, DepositAddressResponse, GenerateAddressResponse, OperationSuccessResponse, NetworkConnectionResponse, FiatAccountResponse } from "./types"; | ||
* @param name A name for the new vault account | ||
* @param hiddenOnUI If true, the created account and all related transactions will not be shown on Fireblocks console | ||
*/ | ||
createVaultAccount(name: string): Promise<VaultAccountResponse>; | ||
createVaultAccount(name: string, hiddenOnUI?: boolean): Promise<VaultAccountResponse>; | ||
/** | ||
* Hides a vault account in Fireblocks console | ||
* @param vaultAccountId The vault account ID | ||
*/ | ||
hideVaultAccount(vaultAccountId: string): Promise<VaultAccountResponse>; | ||
/** | ||
* Reveals a hidden vault account in Fireblocks console | ||
* @param vaultAccountId The vault account ID | ||
*/ | ||
unhideVaultAccount(vaultAccountId: string): Promise<VaultAccountResponse>; | ||
/** | ||
* Updates a vault account | ||
@@ -178,0 +189,0 @@ * @param name A new name for the vault account |
@@ -321,7 +321,9 @@ "use strict"; | ||
* @param name A name for the new vault account | ||
* @param hiddenOnUI If true, the created account and all related transactions will not be shown on Fireblocks console | ||
*/ | ||
createVaultAccount(name) { | ||
createVaultAccount(name, hiddenOnUI) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const body = { | ||
name: name | ||
name: name, | ||
hiddenOnUI: hiddenOnUI || false | ||
}; | ||
@@ -332,2 +334,20 @@ return yield this.apiClient.issuePostRequest("/v1/vault/accounts", body); | ||
/** | ||
* Hides a vault account in Fireblocks console | ||
* @param vaultAccountId The vault account ID | ||
*/ | ||
hideVaultAccount(vaultAccountId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield this.apiClient.issuePostRequest(`/v1/vault/accounts/${vaultAccountId}/hide`, {}); | ||
}); | ||
} | ||
/** | ||
* Reveals a hidden vault account in Fireblocks console | ||
* @param vaultAccountId The vault account ID | ||
*/ | ||
unhideVaultAccount(vaultAccountId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield this.apiClient.issuePostRequest(`/v1/vault/accounts/${vaultAccountId}/unhide`, {}); | ||
}); | ||
} | ||
/** | ||
* Updates a vault account | ||
@@ -334,0 +354,0 @@ * @param name A new name for the vault account |
export interface VaultAccountResponse { | ||
id: string; | ||
name: string; | ||
hiddenOnUI: boolean; | ||
assets: AssetResponse[]; | ||
@@ -5,0 +6,0 @@ } |
{ | ||
"name": "fireblocks-sdk", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"main": "dist/fireblocks-sdk.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/fireblocks-sdk.d.ts", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
55598
1110