@fiado/type-kit 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import AccountInfo from "./AccountInfo";
|
|
1
2
|
export declare class GetAccountBalanceResponse {
|
|
2
3
|
id: string;
|
|
3
4
|
directoryId: string;
|
|
@@ -6,4 +7,5 @@ export declare class GetAccountBalanceResponse {
|
|
|
6
7
|
availableBalance: number;
|
|
7
8
|
lockedBalance: number;
|
|
8
9
|
unsettledBalance: number;
|
|
10
|
+
accountInfo: AccountInfo;
|
|
9
11
|
}
|
|
@@ -8,10 +8,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
11
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
15
|
exports.GetAccountBalanceResponse = void 0;
|
|
13
16
|
const class_validator_1 = require("class-validator");
|
|
14
17
|
const regex_1 = require("../../helpers/constans/regex");
|
|
18
|
+
const AccountInfo_1 = __importDefault(require("./AccountInfo"));
|
|
15
19
|
class GetAccountBalanceResponse {
|
|
16
20
|
}
|
|
17
21
|
exports.GetAccountBalanceResponse = GetAccountBalanceResponse;
|
|
@@ -49,3 +53,7 @@ __decorate([
|
|
|
49
53
|
(0, class_validator_1.IsNumber)(),
|
|
50
54
|
__metadata("design:type", Number)
|
|
51
55
|
], GetAccountBalanceResponse.prototype, "unsettledBalance", void 0);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, class_validator_1.ValidateNested)(),
|
|
58
|
+
__metadata("design:type", AccountInfo_1.default)
|
|
59
|
+
], GetAccountBalanceResponse.prototype, "accountInfo", void 0);
|
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {IsNumber, IsString, Matches} from "class-validator";
|
|
1
|
+
import {IsNumber, IsString, Matches, ValidateNested} from "class-validator";
|
|
2
2
|
import {regexUuidV4} from "../../helpers/constans/regex";
|
|
3
|
+
import AccountInfo from "./AccountInfo";
|
|
3
4
|
|
|
4
5
|
export class GetAccountBalanceResponse {
|
|
5
6
|
@IsString()
|
|
@@ -30,4 +31,7 @@ export class GetAccountBalanceResponse {
|
|
|
30
31
|
|
|
31
32
|
@IsNumber()
|
|
32
33
|
unsettledBalance: number;
|
|
34
|
+
|
|
35
|
+
@ValidateNested()
|
|
36
|
+
accountInfo: AccountInfo;
|
|
33
37
|
}
|