@swp/ledger-sdk
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -13,1 +13,2 @@ export declare const HTTP: { | ||
}; | ||
export declare const ActionBatchMaxSize = 10; |
@@ -15,2 +15,3 @@ "use strict"; | ||
}; | ||
exports.ActionBatchMaxSize = 10; | ||
//# sourceMappingURL=constants.js.map |
@@ -16,2 +16,3 @@ import { ErrorCode, SubError, SwpError, SwpResponse } from "./dto"; | ||
export declare const newNotFound: () => SwpError; | ||
export declare const newBatchLimitExceeded: () => SwpError; | ||
export declare const wrapError: (error: SwpError) => SwpResponse<undefined>; |
@@ -5,2 +5,3 @@ "use strict"; | ||
var codes_1 = require("./codes"); | ||
var constants_1 = require("../constants"); | ||
function isSwpError(e) { | ||
@@ -100,2 +101,8 @@ return e && !!e.code; | ||
}; | ||
exports.newBatchLimitExceeded = function () { | ||
return exports.newValidationError([{ | ||
code: dto_1.SubErrorCode.BatchLimitExceeded, | ||
msg: "O limite m\u00E1ximo de A\u00E7\u00F5es em um Lote \u00E9 de " + constants_1.ActionBatchMaxSize | ||
}]); | ||
}; | ||
exports.wrapError = function (error) { | ||
@@ -102,0 +109,0 @@ var status; |
@@ -14,2 +14,3 @@ import { SearchOptions } from "./http"; | ||
constructor(options: LedgerOptions); | ||
hello(): Promise<SwpResponse<string>>; | ||
getOrganization(): Promise<SwpResponse<OrgDTO>>; | ||
@@ -16,0 +17,0 @@ getAllAccounts(opt?: SearchOptions): Promise<SwpResponse<AccountDTO[]>>; |
@@ -43,2 +43,9 @@ "use strict"; | ||
} | ||
Ledger.prototype.hello = function () { | ||
return __awaiter(this, void 0, void 0, function () { | ||
return __generator(this, function (_a) { | ||
return [2 /*return*/, this.http.get("/")]; | ||
}); | ||
}); | ||
}; | ||
Ledger.prototype.getOrganization = function () { | ||
@@ -45,0 +52,0 @@ return __awaiter(this, void 0, void 0, function () { |
{ | ||
"name": "@swp/ledger-sdk", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "private": false, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
82567
1272
1