@swp/ledger-sdk
Advanced tools
Comparing version 0.1.4 to 0.2.0
@@ -14,2 +14,3 @@ import { SwpHttp } from "./http"; | ||
getAllActionBatches(opt?: SearchOptions): Promise<SwpSuccessResponse<ActionBatchDTO[]>>; | ||
getAllActionBatchesFromChild(childId: string, opt?: SearchOptions): Promise<SwpSuccessResponse<ActionBatchDTO[]>>; | ||
getActionBatch(id: string, opt?: SearchOptions): Promise<SwpSuccessResponse<ActionBatchDTO>>; | ||
@@ -16,0 +17,0 @@ newActionBatch(batch: NewActionBatchDTO): Promise<SwpSuccessResponse<ActionBatchDTO>>; |
@@ -91,2 +91,9 @@ "use strict"; | ||
}; | ||
Ledger.prototype.getAllActionBatchesFromChild = function (childId, opt) { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.http.get("/accounts/" + childId + "/action-batches", { searchOptions: opt })]; | ||
}); | ||
}); | ||
}; | ||
Ledger.prototype.getActionBatch = function (id, opt) { | ||
@@ -93,0 +100,0 @@ return __awaiter(this, void 0, void 0, function () { |
{ | ||
"name": "@swp/ledger-sdk", | ||
"version": "0.1.4", | ||
"version": "0.2.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "private": false, |
Sorry, the diff of this file is not supported yet
119222
1854