fireblocks-sdk
Advanced tools
Comparing version 1.14.0 to 2.0.0
@@ -5,4 +5,10 @@ ### Changelog | ||
#### [v1.14.0](https://github.com/fireblocks/fireblocks-sdk-js/compare/v1.9.0...v1.14.0) | ||
### [v2.0.0](https://github.com/fireblocks/fireblocks-sdk-js/compare/v1.14.0...v2.0.0) | ||
> 4 April 2022 | ||
- feat: added pagination to vault_accounts endpoint [`#79`](https://github.com/fireblocks/fireblocks-sdk-js/pull/79) | ||
#### [v1.14.0](https://github.com/fireblocks/fireblocks-sdk-js/compare/v1.13.0...v1.14.0) | ||
> 3 March 2022 | ||
@@ -12,2 +18,37 @@ | ||
#### [v1.13.0](https://github.com/fireblocks/fireblocks-sdk-js/compare/v1.12.0...v1.13.0) | ||
> 17 February 2022 | ||
- added get exchange by asset [`#75`](https://github.com/fireblocks/fireblocks-sdk-js/pull/75) | ||
- Bump follow-redirects from 1.14.7 to 1.14.8 [`#74`](https://github.com/fireblocks/fireblocks-sdk-js/pull/74) | ||
- fix typo in README.md [`#72`](https://github.com/fireblocks/fireblocks-sdk-js/pull/72) | ||
- Bump follow-redirects from 1.14.5 to 1.14.7 [`#73`](https://github.com/fireblocks/fireblocks-sdk-js/pull/73) | ||
#### [v1.12.0](https://github.com/fireblocks/fireblocks-sdk-js/compare/v1.11.1...v1.12.0) | ||
> 4 January 2022 | ||
- add refresh balance to js sdk [`#71`](https://github.com/fireblocks/fireblocks-sdk-js/pull/71) | ||
- Added resend transaction webhooks [`#66`](https://github.com/fireblocks/fireblocks-sdk-js/pull/66) | ||
#### [v1.11.1](https://github.com/fireblocks/fireblocks-sdk-js/compare/v1.11.0...v1.11.1) | ||
> 20 December 2021 | ||
- fix: add missing fields to TransactionResponse [`#69`](https://github.com/fireblocks/fireblocks-sdk-js/pull/69) | ||
#### [v1.11.0](https://github.com/fireblocks/fireblocks-sdk-js/compare/v1.10.0...v1.11.0) | ||
> 9 December 2021 | ||
- Feat added treat as gross amount flag to allocate funds request [`#63`](https://github.com/fireblocks/fireblocks-sdk-js/pull/63) | ||
#### [v1.10.0](https://github.com/fireblocks/fireblocks-sdk-js/compare/v1.9.0...v1.10.0) | ||
> 5 December 2021 | ||
- Add RequestOptions for all post request [`#64`](https://github.com/fireblocks/fireblocks-sdk-js/pull/64) | ||
- add functionality for activate vault asset [`#62`](https://github.com/fireblocks/fireblocks-sdk-js/pull/62) | ||
#### [v1.9.0](https://github.com/fireblocks/fireblocks-sdk-js/compare/v1.8.2...v1.9.0) | ||
@@ -14,0 +55,0 @@ |
import { IAuthProvider } from "./iauth-provider"; | ||
import { VaultAccountResponse, CreateTransactionResponse, TransactionArguments, AssetResponse, ExchangeResponse, TransactionResponse, TransactionFilter, CancelTransactionResponse, WalletContainerResponse, DepositAddressResponse, GenerateAddressResponse, OperationSuccessResponse, NetworkConnectionResponse, FiatAccountResponse, CreateTransferTicketArgs, TransferTicketResponse, TermResponse, ExecuteTermArgs, CreateTransferTicketResponse, EstimateTransactionFeeResponse, EstimateFeeResponse, PublicKeyInfoArgs, PublicKeyInfoForVaultAccountArgs, GasStationInfo, MaxSpendableAmountResponse, VaultAccountsFilter, VaultBalancesFilter, ValidateAddressResponse, VaultAssetResponse, RequestOptions, AllocateFundsRequest, DeallocateFundsRequest, ResendWebhooksResponse, AssetTypeResponse, User, TransactionPageResponse, TransactionPageFilter, InternalWalletAsset, ExternalWalletAsset, OffExchangeEntityResponse } from "./types"; | ||
import { VaultAccountResponse, CreateTransactionResponse, TransactionArguments, AssetResponse, ExchangeResponse, TransactionResponse, TransactionFilter, CancelTransactionResponse, WalletContainerResponse, DepositAddressResponse, GenerateAddressResponse, OperationSuccessResponse, NetworkConnectionResponse, FiatAccountResponse, CreateTransferTicketArgs, TransferTicketResponse, TermResponse, ExecuteTermArgs, CreateTransferTicketResponse, EstimateTransactionFeeResponse, EstimateFeeResponse, PublicKeyInfoArgs, PublicKeyInfoForVaultAccountArgs, GasStationInfo, MaxSpendableAmountResponse, VaultAccountsFilter, VaultBalancesFilter, ValidateAddressResponse, VaultAssetResponse, RequestOptions, AllocateFundsRequest, DeallocateFundsRequest, ResendWebhooksResponse, AssetTypeResponse, User, TransactionPageResponse, TransactionPageFilter, InternalWalletAsset, ExternalWalletAsset, OffExchangeEntityResponse, PagedVaultAccountsResponse, PagedVaultAccountsRequestFilters } from "./types"; | ||
export * from "./types"; | ||
@@ -29,2 +29,7 @@ export interface SDKOptions { | ||
/** | ||
* Gets a list of vault accounts per page matching the given filter or path | ||
* @param pagedVaultAccountsRequestFilters Filters for the first request | ||
*/ | ||
getVaultAccountsWithPageInfo(pagedVaultAccountsRequestFilters: PagedVaultAccountsRequestFilters): Promise<PagedVaultAccountsResponse>; | ||
/** | ||
* @deprecated Replaced by getVaultAccountById. | ||
@@ -31,0 +36,0 @@ * Gets a single vault account |
@@ -64,2 +64,11 @@ "use strict"; | ||
/** | ||
* Gets a list of vault accounts per page matching the given filter or path | ||
* @param pagedVaultAccountsRequestFilters Filters for the first request | ||
*/ | ||
getVaultAccountsWithPageInfo(pagedVaultAccountsRequestFilters) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield this.apiClient.issueGetRequest(`/v1/vault/accounts_paged?${query_string_1.default.stringify(pagedVaultAccountsRequestFilters)}`); | ||
}); | ||
} | ||
/** | ||
* @deprecated Replaced by getVaultAccountById. | ||
@@ -66,0 +75,0 @@ * Gets a single vault account |
@@ -323,11 +323,34 @@ export interface VaultAccountResponse { | ||
id: string; | ||
localChannel: { | ||
networkId: string; | ||
name: string; | ||
}; | ||
remoteChannel: { | ||
networkId: string; | ||
name: string; | ||
}; | ||
status: string; | ||
remoteNetworkId: NetworkId; | ||
localNetworkId: NetworkId; | ||
routingPolicy?: RoutingPolicy; | ||
} | ||
interface NetworkId { | ||
id: string; | ||
name: string; | ||
} | ||
export interface RoutingPolicy { | ||
crypto?: RoutingDest; | ||
sen?: RoutingDest; | ||
signet?: RoutingDest; | ||
sen_test?: RoutingDest; | ||
signet_test?: RoutingDest; | ||
} | ||
export interface RoutingDest { | ||
scheme: Scheme; | ||
dstType: NetworkDestType; | ||
dstId: string; | ||
} | ||
export declare enum Scheme { | ||
AUTO = "AUTO", | ||
DEFAULT = "DEFAULT", | ||
CUSTOM = "CUSTOM" | ||
} | ||
export declare enum NetworkDestType { | ||
VAULT_ACCOUNT = "VAULT", | ||
UNMANAGED_WALLET = "UNMANAGED", | ||
EXCHANGE_ACCOUNT = "EXCHANGE", | ||
FIAT_ACCOUNT = "FIAT_ACCOUNT" | ||
} | ||
export interface TransactionFilter { | ||
@@ -512,2 +535,21 @@ before?: number; | ||
} | ||
export interface PagedVaultAccountsRequestFilters { | ||
namePrefix?: string; | ||
nameSuffix?: string; | ||
minAmountThreshold?: number; | ||
assetId?: string; | ||
orderBy?: "ASC" | "DESC"; | ||
limit?: number; | ||
before?: string; | ||
after?: string; | ||
} | ||
export interface PagedVaultAccountsResponse { | ||
accounts: VaultAccountResponse[]; | ||
paging: { | ||
before: string; | ||
after: string; | ||
}; | ||
previousUrl: string; | ||
nextUrl: string; | ||
} | ||
export interface VaultBalancesFilter { | ||
@@ -557,1 +599,2 @@ accountNamePrefix?: string; | ||
} | ||
export {}; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.TransferTicketTermStatus = exports.TransferTicketStatus = exports.TransactionOperation = exports.VirtualType = exports.PeerType = exports.TransactionStatus = exports.TransactionOrder = exports.FeeLevel = exports.SigningAlgorithm = exports.VaultAssetActivationStatus = exports.VirtualAffiliation = void 0; | ||
exports.TransferTicketTermStatus = exports.TransferTicketStatus = exports.TransactionOperation = exports.VirtualType = exports.PeerType = exports.TransactionStatus = exports.TransactionOrder = exports.NetworkDestType = exports.Scheme = exports.FeeLevel = exports.SigningAlgorithm = exports.VaultAssetActivationStatus = exports.VirtualAffiliation = void 0; | ||
var VirtualAffiliation; | ||
@@ -27,2 +27,15 @@ (function (VirtualAffiliation) { | ||
})(FeeLevel = exports.FeeLevel || (exports.FeeLevel = {})); | ||
var Scheme; | ||
(function (Scheme) { | ||
Scheme["AUTO"] = "AUTO"; | ||
Scheme["DEFAULT"] = "DEFAULT"; | ||
Scheme["CUSTOM"] = "CUSTOM"; | ||
})(Scheme = exports.Scheme || (exports.Scheme = {})); | ||
var NetworkDestType; | ||
(function (NetworkDestType) { | ||
NetworkDestType["VAULT_ACCOUNT"] = "VAULT"; | ||
NetworkDestType["UNMANAGED_WALLET"] = "UNMANAGED"; | ||
NetworkDestType["EXCHANGE_ACCOUNT"] = "EXCHANGE"; | ||
NetworkDestType["FIAT_ACCOUNT"] = "FIAT_ACCOUNT"; | ||
})(NetworkDestType = exports.NetworkDestType || (exports.NetworkDestType = {})); | ||
var TransactionOrder; | ||
@@ -29,0 +42,0 @@ (function (TransactionOrder) { |
{ | ||
"name": "fireblocks-sdk", | ||
"version": "1.14.0", | ||
"version": "2.0.0", | ||
"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
130300
2272