@fiado/type-kit 1.0.91 → 1.0.92
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.
- package/.idea/sonarlint/issuestore/8/1/81c76302465b6fb29ef101681712a023c52c8f00 +0 -0
- package/.idea/sonarlint/issuestore/9/4/94f646fcac8f4172c6e6958abd9f455b3c79995f +0 -0
- package/.idea/sonarlint/issuestore/index.pb +5 -1
- package/.idea/sonarlint/securityhotspotstore/8/1/81c76302465b6fb29ef101681712a023c52c8f00 +0 -0
- package/.idea/sonarlint/securityhotspotstore/9/4/94f646fcac8f4172c6e6958abd9f455b3c79995f +0 -0
- package/.idea/sonarlint/securityhotspotstore/index.pb +5 -1
- package/bin/account/dtos/GetAccountResponse.d.ts +20 -0
- package/bin/account/dtos/GetAccountResponse.js +89 -0
- package/bin/account/index.d.ts +1 -0
- package/bin/account/index.js +2 -1
- package/package.json +1 -1
- package/src/account/dtos/GetAccountResponse.ts +63 -0
- package/src/account/dtos/PocketItem.ts +1 -1
- package/src/account/index.ts +2 -0
|
File without changes
|
|
File without changes
|
|
@@ -97,4 +97,8 @@ I
|
|
|
97
97
|
src/exchangeRate/index.ts,b/c/bc5b896ed63da1497d081036364d9f2384f2ea37
|
|
98
98
|
:
|
|
99
99
|
|
|
100
|
-
.gitignore,a/5/a5cc2925ca8258af241be7e5b0381edf30266302
|
|
100
|
+
.gitignore,a/5/a5cc2925ca8258af241be7e5b0381edf30266302
|
|
101
|
+
U
|
|
102
|
+
%src/account/dtos/PocketBalanceItem.ts,9/4/94f646fcac8f4172c6e6958abd9f455b3c79995f
|
|
103
|
+
V
|
|
104
|
+
&src/account/dtos/GetAccountResponse.ts,8/1/81c76302465b6fb29ef101681712a023c52c8f00
|
|
File without changes
|
|
File without changes
|
|
@@ -97,4 +97,8 @@ I
|
|
|
97
97
|
src/exchangeRate/index.ts,b/c/bc5b896ed63da1497d081036364d9f2384f2ea37
|
|
98
98
|
:
|
|
99
99
|
|
|
100
|
-
.gitignore,a/5/a5cc2925ca8258af241be7e5b0381edf30266302
|
|
100
|
+
.gitignore,a/5/a5cc2925ca8258af241be7e5b0381edf30266302
|
|
101
|
+
U
|
|
102
|
+
%src/account/dtos/PocketBalanceItem.ts,9/4/94f646fcac8f4172c6e6958abd9f455b3c79995f
|
|
103
|
+
V
|
|
104
|
+
&src/account/dtos/GetAccountResponse.ts,8/1/81c76302465b6fb29ef101681712a023c52c8f00
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { AccountEntityStatusEnum } from "../enums/AccountEntityStatusEnum";
|
|
2
|
+
import { AccountLevelEnum } from "../enums/AccountLevelEnum";
|
|
3
|
+
export declare class GetAccountResponse {
|
|
4
|
+
id: string;
|
|
5
|
+
directoryId: string;
|
|
6
|
+
currencyId: string;
|
|
7
|
+
status: AccountEntityStatusEnum;
|
|
8
|
+
accountLevel: AccountLevelEnum;
|
|
9
|
+
isPrincipal: boolean;
|
|
10
|
+
isHost: boolean;
|
|
11
|
+
externalAccountId: string;
|
|
12
|
+
totalBalance: number;
|
|
13
|
+
availableBalance: number;
|
|
14
|
+
lockedBalance: number;
|
|
15
|
+
unsettledBalance: number;
|
|
16
|
+
typeOfDirectoryId: string;
|
|
17
|
+
accountNumber: string;
|
|
18
|
+
routingNumber: string;
|
|
19
|
+
createdAt: string;
|
|
20
|
+
}
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.GetAccountResponse = void 0;
|
|
13
|
+
const AccountEntityStatusEnum_1 = require("../enums/AccountEntityStatusEnum");
|
|
14
|
+
const AccountLevelEnum_1 = require("../enums/AccountLevelEnum");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const regex_1 = require("../../helpers/constans/regex");
|
|
17
|
+
class GetAccountResponse {
|
|
18
|
+
}
|
|
19
|
+
exports.GetAccountResponse = GetAccountResponse;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, class_validator_1.IsString)(),
|
|
22
|
+
(0, class_validator_1.Matches)(regex_1.regexUuidV4, {
|
|
23
|
+
message: 'directoryId must be a valid UUID v4',
|
|
24
|
+
}),
|
|
25
|
+
__metadata("design:type", String)
|
|
26
|
+
], GetAccountResponse.prototype, "id", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, class_validator_1.IsString)(),
|
|
29
|
+
(0, class_validator_1.Matches)(regex_1.regexUuidV4, {
|
|
30
|
+
message: 'directoryId must be a valid UUID v4',
|
|
31
|
+
}),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], GetAccountResponse.prototype, "directoryId", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], GetAccountResponse.prototype, "currencyId", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, class_validator_1.IsEnum)(AccountEntityStatusEnum_1.AccountEntityStatusEnum),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], GetAccountResponse.prototype, "status", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, class_validator_1.IsEnum)(AccountLevelEnum_1.AccountLevelEnum),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], GetAccountResponse.prototype, "accountLevel", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, class_validator_1.IsBoolean)(),
|
|
48
|
+
__metadata("design:type", Boolean)
|
|
49
|
+
], GetAccountResponse.prototype, "isPrincipal", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, class_validator_1.IsBoolean)(),
|
|
52
|
+
__metadata("design:type", Boolean)
|
|
53
|
+
], GetAccountResponse.prototype, "isHost", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsString)(),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], GetAccountResponse.prototype, "externalAccountId", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, class_validator_1.IsNumber)(),
|
|
60
|
+
__metadata("design:type", Number)
|
|
61
|
+
], GetAccountResponse.prototype, "totalBalance", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, class_validator_1.IsNumber)(),
|
|
64
|
+
__metadata("design:type", Number)
|
|
65
|
+
], GetAccountResponse.prototype, "availableBalance", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, class_validator_1.IsNumber)(),
|
|
68
|
+
__metadata("design:type", Number)
|
|
69
|
+
], GetAccountResponse.prototype, "lockedBalance", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, class_validator_1.IsNumber)(),
|
|
72
|
+
__metadata("design:type", Number)
|
|
73
|
+
], GetAccountResponse.prototype, "unsettledBalance", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, class_validator_1.IsString)(),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], GetAccountResponse.prototype, "typeOfDirectoryId", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, class_validator_1.IsString)(),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], GetAccountResponse.prototype, "accountNumber", void 0);
|
|
82
|
+
__decorate([
|
|
83
|
+
(0, class_validator_1.IsString)(),
|
|
84
|
+
__metadata("design:type", String)
|
|
85
|
+
], GetAccountResponse.prototype, "routingNumber", void 0);
|
|
86
|
+
__decorate([
|
|
87
|
+
(0, class_validator_1.IsString)(),
|
|
88
|
+
__metadata("design:type", String)
|
|
89
|
+
], GetAccountResponse.prototype, "createdAt", void 0);
|
package/bin/account/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export * from './dtos/GetPocketBalanceResponse';
|
|
|
20
20
|
export * from './dtos/GetPocketResponse';
|
|
21
21
|
export * from './dtos/PocketItem';
|
|
22
22
|
export * from './dtos/PocketBalanceItem';
|
|
23
|
+
export * from './dtos/GetAccountResponse';
|
|
23
24
|
export * from './entities/AccountEntityBase';
|
|
24
25
|
export * from './enums/AccountEntityStatusEnum';
|
|
25
26
|
export * from './enums/BankAccountTypeEnum';
|
package/bin/account/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
//dtos
|
|
2
3
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
4
|
if (k2 === undefined) k2 = k;
|
|
4
5
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -14,7 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
15
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
16
|
};
|
|
16
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
//dtos
|
|
18
18
|
__exportStar(require("./dtos/AccountCreateRequest"), exports);
|
|
19
19
|
__exportStar(require("./dtos/AccountCreateResponse"), exports);
|
|
20
20
|
__exportStar(require("./dtos/BankAccountExternalAddress"), exports);
|
|
@@ -37,6 +37,7 @@ __exportStar(require("./dtos/GetPocketBalanceResponse"), exports);
|
|
|
37
37
|
__exportStar(require("./dtos/GetPocketResponse"), exports);
|
|
38
38
|
__exportStar(require("./dtos/PocketItem"), exports);
|
|
39
39
|
__exportStar(require("./dtos/PocketBalanceItem"), exports);
|
|
40
|
+
__exportStar(require("./dtos/GetAccountResponse"), exports);
|
|
40
41
|
//Entities
|
|
41
42
|
__exportStar(require("./entities/AccountEntityBase"), exports);
|
|
42
43
|
//Enums
|
package/package.json
CHANGED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import {AccountEntityStatusEnum} from "../enums/AccountEntityStatusEnum";
|
|
2
|
+
import {AccountLevelEnum} from "../enums/AccountLevelEnum";
|
|
3
|
+
import {IsBoolean, IsEnum, IsNumber, IsString, Matches} from "class-validator";
|
|
4
|
+
import {regexUuidV4} from "../../helpers/constans/regex";
|
|
5
|
+
|
|
6
|
+
export class GetAccountResponse {
|
|
7
|
+
@IsString()
|
|
8
|
+
@Matches(regexUuidV4,
|
|
9
|
+
{
|
|
10
|
+
message: 'directoryId must be a valid UUID v4',
|
|
11
|
+
})
|
|
12
|
+
id: string;
|
|
13
|
+
|
|
14
|
+
@IsString()
|
|
15
|
+
@Matches(regexUuidV4,
|
|
16
|
+
{
|
|
17
|
+
message: 'directoryId must be a valid UUID v4',
|
|
18
|
+
})
|
|
19
|
+
directoryId: string;
|
|
20
|
+
|
|
21
|
+
@IsString()
|
|
22
|
+
currencyId: string;
|
|
23
|
+
|
|
24
|
+
@IsEnum(AccountEntityStatusEnum)
|
|
25
|
+
status: AccountEntityStatusEnum;
|
|
26
|
+
|
|
27
|
+
@IsEnum(AccountLevelEnum)
|
|
28
|
+
accountLevel: AccountLevelEnum;
|
|
29
|
+
|
|
30
|
+
@IsBoolean()
|
|
31
|
+
isPrincipal: boolean;
|
|
32
|
+
|
|
33
|
+
@IsBoolean()
|
|
34
|
+
isHost: boolean;
|
|
35
|
+
|
|
36
|
+
@IsString()
|
|
37
|
+
externalAccountId: string;
|
|
38
|
+
|
|
39
|
+
@IsNumber()
|
|
40
|
+
totalBalance: number;
|
|
41
|
+
|
|
42
|
+
@IsNumber()
|
|
43
|
+
availableBalance: number;
|
|
44
|
+
|
|
45
|
+
@IsNumber()
|
|
46
|
+
lockedBalance: number;
|
|
47
|
+
|
|
48
|
+
@IsNumber()
|
|
49
|
+
unsettledBalance: number;
|
|
50
|
+
|
|
51
|
+
@IsString()
|
|
52
|
+
typeOfDirectoryId: string;
|
|
53
|
+
|
|
54
|
+
@IsString()
|
|
55
|
+
accountNumber: string;
|
|
56
|
+
|
|
57
|
+
@IsString()
|
|
58
|
+
routingNumber: string;
|
|
59
|
+
|
|
60
|
+
@IsString()
|
|
61
|
+
createdAt: string;
|
|
62
|
+
|
|
63
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {IsBoolean,
|
|
1
|
+
import {IsBoolean, IsString, Matches, ValidateNested} from "class-validator";
|
|
2
2
|
import {regexUuidV4} from "../../helpers/constans/regex";
|
|
3
3
|
import {PocketBalanceItem} from "./PocketBalanceItem";
|
|
4
4
|
|
package/src/account/index.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
//dtos
|
|
2
|
+
|
|
2
3
|
export * from './dtos/AccountCreateRequest';
|
|
3
4
|
export * from './dtos/AccountCreateResponse';
|
|
4
5
|
export * from './dtos/BankAccountExternalAddress';
|
|
@@ -21,6 +22,7 @@ export * from './dtos/GetPocketBalanceResponse';
|
|
|
21
22
|
export * from './dtos/GetPocketResponse';
|
|
22
23
|
export * from './dtos/PocketItem';
|
|
23
24
|
export * from './dtos/PocketBalanceItem';
|
|
25
|
+
export * from './dtos/GetAccountResponse';
|
|
24
26
|
|
|
25
27
|
//Entities
|
|
26
28
|
export * from './entities/AccountEntityBase';
|