fireblocks-sdk
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -9,2 +9,3 @@ import { IAuthProvider } from "./iauth-provider"; | ||
issuePutRequest(path: string, body: any): Promise<any>; | ||
issueDeleteRequest(path: string): Promise<any>; | ||
} |
@@ -62,4 +62,17 @@ "use strict"; | ||
} | ||
issueDeleteRequest(path) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const token = this.authProvider.signJwt(path); | ||
return yield request_promise_native_1.default.delete({ | ||
uri: this.apiBaseUrl + path, | ||
headers: { | ||
"X-API-Key": this.authProvider.getApiKey(), | ||
"Authorization": `Bearer ${token}` | ||
}, | ||
json: true | ||
}); | ||
}); | ||
} | ||
} | ||
exports.ApiClient = ApiClient; | ||
//# sourceMappingURL=api-client.js.map |
@@ -167,2 +167,24 @@ import { VaultAccountResponse, CreateTransactionResponse, TransactionArguments, AssetResponse, ExchangeResponse, TransactionResponse, TransactionFilter, CancelTransactionResponse, WalletContainerResponse, WalletAssetResponse, DepositAddressResponse, GenerateAddressResponse, OperationSuccessResponse } from "./types"; | ||
createTransaction(options: TransactionArguments): Promise<CreateTransactionResponse>; | ||
/** | ||
* Deletes a single internal wallet | ||
* @param walletId The internal wallet ID | ||
*/ | ||
deleteInternalWallet(walletId: string): Promise<OperationSuccessResponse>; | ||
/** | ||
* Deletes a single internal wallet asset | ||
* @param walletId The internal wallet ID | ||
* @param assetId The asset ID | ||
*/ | ||
deleteInternalWalletAsset(walletId: string, assetId: string): Promise<WalletAssetResponse>; | ||
/** | ||
* Deletes a single external wallet | ||
* @param walletId The external wallet ID | ||
*/ | ||
deleteExternalWallet(walletId: string): Promise<OperationSuccessResponse>; | ||
/** | ||
* Deletes a single external wallet asset | ||
* @param walletId The external wallet ID | ||
* @param assetId The asset ID | ||
*/ | ||
deleteExternalWalletAsset(walletId: string, assetId: string): Promise<WalletAssetResponse>; | ||
} |
@@ -328,4 +328,42 @@ "use strict"; | ||
} | ||
/** | ||
* Deletes a single internal wallet | ||
* @param walletId The internal wallet ID | ||
*/ | ||
deleteInternalWallet(walletId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield this.apiClient.issueDeleteRequest(`/v1/internal_wallets/${walletId}`); | ||
}); | ||
} | ||
/** | ||
* Deletes a single internal wallet asset | ||
* @param walletId The internal wallet ID | ||
* @param assetId The asset ID | ||
*/ | ||
deleteInternalWalletAsset(walletId, assetId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield this.apiClient.issueDeleteRequest(`/v1/internal_wallets/${walletId}/${assetId}`); | ||
}); | ||
} | ||
/** | ||
* Deletes a single external wallet | ||
* @param walletId The external wallet ID | ||
*/ | ||
deleteExternalWallet(walletId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield this.apiClient.issueDeleteRequest(`/v1/external_wallets/${walletId}`); | ||
}); | ||
} | ||
/** | ||
* Deletes a single external wallet asset | ||
* @param walletId The external wallet ID | ||
* @param assetId The asset ID | ||
*/ | ||
deleteExternalWalletAsset(walletId, assetId) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
return yield this.apiClient.issueDeleteRequest(`/v1/external_wallets/${walletId}/${assetId}`); | ||
}); | ||
} | ||
} | ||
exports.FireblocksSDK = FireblocksSDK; | ||
//# sourceMappingURL=fireblocks-sdk.js.map |
{ | ||
"name": "fireblocks-sdk", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
44596
18
853