@fiado/type-kit 1.1.31 → 1.1.32
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/bin/creditContract/dtos/CreditContractCreateRequest.d.ts +2 -2
- package/bin/creditContract/dtos/CreditContractCreateRequest.js +2 -2
- package/bin/productCatalog/enums/ProductTypeEnum.d.ts +2 -2
- package/bin/productCatalog/enums/ProductTypeEnum.js +2 -2
- package/bin/transaction/dtos/TransactionCreateRequest.d.ts +1 -0
- package/bin/transaction/dtos/TransactionCreateRequest.js +5 -3
- package/package.json +1 -1
- package/src/creditContract/dtos/CreditContractCreateRequest.ts +3 -3
- package/src/productCatalog/enums/ProductTypeEnum.ts +2 -2
- package/src/transaction/dtos/TransactionCreateRequest.ts +4 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CountryId } from "../../country";
|
|
2
|
-
import {
|
|
2
|
+
import { ProductTypeEnum } from "../../productCatalog";
|
|
3
3
|
export default class CreditContractCreateRequest {
|
|
4
4
|
directoryUserId: string;
|
|
5
5
|
relatedTransaction: string;
|
|
@@ -9,7 +9,7 @@ export default class CreditContractCreateRequest {
|
|
|
9
9
|
creditFee: number;
|
|
10
10
|
creditTax: number;
|
|
11
11
|
creditTotal: number;
|
|
12
|
-
instrument:
|
|
12
|
+
instrument: ProductTypeEnum;
|
|
13
13
|
amountBlocked: number;
|
|
14
14
|
relatedPocketId: string;
|
|
15
15
|
}
|
|
@@ -11,7 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
const class_validator_1 = require("class-validator");
|
|
13
13
|
const country_1 = require("../../country");
|
|
14
|
-
const
|
|
14
|
+
const productCatalog_1 = require("../../productCatalog");
|
|
15
15
|
class CreditContractCreateRequest {
|
|
16
16
|
}
|
|
17
17
|
exports.default = CreditContractCreateRequest;
|
|
@@ -56,7 +56,7 @@ __decorate([
|
|
|
56
56
|
__metadata("design:type", Number)
|
|
57
57
|
], CreditContractCreateRequest.prototype, "creditTotal", void 0);
|
|
58
58
|
__decorate([
|
|
59
|
-
(0, class_validator_1.IsEnum)(
|
|
59
|
+
(0, class_validator_1.IsEnum)(productCatalog_1.ProductTypeEnum),
|
|
60
60
|
(0, class_validator_1.IsNotEmpty)(),
|
|
61
61
|
__metadata("design:type", String)
|
|
62
62
|
], CreditContractCreateRequest.prototype, "instrument", void 0);
|
|
@@ -4,8 +4,8 @@ exports.ProductTypeEnum = void 0;
|
|
|
4
4
|
var ProductTypeEnum;
|
|
5
5
|
(function (ProductTypeEnum) {
|
|
6
6
|
ProductTypeEnum["INTERNAL"] = "INTERNAL";
|
|
7
|
-
ProductTypeEnum["CREDIT_CARD"] = "
|
|
8
|
-
ProductTypeEnum["DEBIT_CARD"] = "
|
|
7
|
+
ProductTypeEnum["CREDIT_CARD"] = "TdC";
|
|
8
|
+
ProductTypeEnum["DEBIT_CARD"] = "TdD";
|
|
9
9
|
ProductTypeEnum["ATM"] = "ATM";
|
|
10
10
|
ProductTypeEnum["P2P"] = "P2P";
|
|
11
11
|
ProductTypeEnum["BANK_TRANSFER"] = "TRF";
|
|
@@ -49,11 +49,13 @@ __decorate([
|
|
|
49
49
|
__decorate([
|
|
50
50
|
(0, class_validator_1.IsNotEmpty)(),
|
|
51
51
|
(0, class_validator_1.IsString)(),
|
|
52
|
-
(0, class_validator_1.Matches)(regex_1.regexUuidV4, {
|
|
53
|
-
message: 'accountId must be a valid UUID v4',
|
|
54
|
-
}),
|
|
55
52
|
__metadata("design:type", String)
|
|
56
53
|
], TransactionCreateRequest.prototype, "accountId", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, class_validator_1.IsNotEmpty)(),
|
|
56
|
+
(0, class_validator_1.IsString)(),
|
|
57
|
+
__metadata("design:type", String)
|
|
58
|
+
], TransactionCreateRequest.prototype, "pocketId", void 0);
|
|
57
59
|
__decorate([
|
|
58
60
|
(0, class_validator_1.IsNotEmpty)(),
|
|
59
61
|
(0, class_validator_1.IsString)(),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IsEnum, IsNotEmpty, IsNumber, IsString } from "class-validator";
|
|
2
2
|
import { CountryId } from "../../country";
|
|
3
|
-
import {
|
|
3
|
+
import { ProductTypeEnum } from "../../productCatalog";
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
export default class CreditContractCreateRequest {
|
|
@@ -37,9 +37,9 @@ export default class CreditContractCreateRequest {
|
|
|
37
37
|
@IsNotEmpty()
|
|
38
38
|
creditTotal: number;
|
|
39
39
|
|
|
40
|
-
@IsEnum(
|
|
40
|
+
@IsEnum(ProductTypeEnum)
|
|
41
41
|
@IsNotEmpty()
|
|
42
|
-
instrument:
|
|
42
|
+
instrument: ProductTypeEnum;
|
|
43
43
|
|
|
44
44
|
@IsNumber()
|
|
45
45
|
@IsNotEmpty()
|
|
@@ -35,12 +35,12 @@ export class TransactionCreateRequest {
|
|
|
35
35
|
|
|
36
36
|
@IsNotEmpty()
|
|
37
37
|
@IsString()
|
|
38
|
-
@Matches(regexUuidV4,
|
|
39
|
-
{
|
|
40
|
-
message: 'accountId must be a valid UUID v4',
|
|
41
|
-
})
|
|
42
38
|
accountId: string;
|
|
43
39
|
|
|
40
|
+
@IsNotEmpty()
|
|
41
|
+
@IsString()
|
|
42
|
+
pocketId: string;
|
|
43
|
+
|
|
44
44
|
@IsNotEmpty()
|
|
45
45
|
@IsString()
|
|
46
46
|
@Matches(regexUuidV4,
|