@fiado/type-kit 1.2.54 → 1.2.56

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.
@@ -0,0 +1,5 @@
1
+ import { RiskFactorCategoryEnum } from "../enums/RiskFactorCategoryEnum";
2
+ export default class UpdateFactorInfo {
3
+ category: RiskFactorCategoryEnum;
4
+ value: any;
5
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class UpdateFactorInfo {
4
+ }
5
+ exports.default = UpdateFactorInfo;
@@ -0,0 +1,5 @@
1
+ import UpdateFactorInfo from "./UpdateFactorInfo";
2
+ export default class UpdateRiskProfileRequest {
3
+ directoryId: string;
4
+ factors: UpdateFactorInfo[];
5
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ class UpdateRiskProfileRequest {
4
+ }
5
+ exports.default = UpdateRiskProfileRequest;
@@ -0,0 +1,14 @@
1
+ export declare enum RiskFactorCategoryEnum {
2
+ TENURE = "TENURE",
3
+ FISCAL = "FISCAL",
4
+ AGE = "AGE",
5
+ GENDER = "GENDER",
6
+ NATIONALITY = "NATIONALITY",
7
+ LOCATION = "LOCATION",
8
+ ACTIVITY = "ACTIVITY",
9
+ TX_VOLUME = "TX_VOLUME",
10
+ FUNDS_SOURCE = "FUNDS_SOURCE",
11
+ SOURCES_COUNT = "SOURCES_COUNT",
12
+ PEP = "PEP",
13
+ INTERNAL_RISK = "INTERNAL_RISK"
14
+ }
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.RiskFactorCategoryEnum = void 0;
4
+ var RiskFactorCategoryEnum;
5
+ (function (RiskFactorCategoryEnum) {
6
+ RiskFactorCategoryEnum["TENURE"] = "TENURE";
7
+ RiskFactorCategoryEnum["FISCAL"] = "FISCAL";
8
+ RiskFactorCategoryEnum["AGE"] = "AGE";
9
+ RiskFactorCategoryEnum["GENDER"] = "GENDER";
10
+ RiskFactorCategoryEnum["NATIONALITY"] = "NATIONALITY";
11
+ RiskFactorCategoryEnum["LOCATION"] = "LOCATION";
12
+ RiskFactorCategoryEnum["ACTIVITY"] = "ACTIVITY";
13
+ RiskFactorCategoryEnum["TX_VOLUME"] = "TX_VOLUME";
14
+ RiskFactorCategoryEnum["FUNDS_SOURCE"] = "FUNDS_SOURCE";
15
+ RiskFactorCategoryEnum["SOURCES_COUNT"] = "SOURCES_COUNT";
16
+ RiskFactorCategoryEnum["PEP"] = "PEP";
17
+ RiskFactorCategoryEnum["INTERNAL_RISK"] = "INTERNAL_RISK";
18
+ })(RiskFactorCategoryEnum || (exports.RiskFactorCategoryEnum = RiskFactorCategoryEnum = {}));
@@ -1,2 +1,5 @@
1
1
  export * from './dtos/CreateRiskProfileRequest';
2
+ export * from './dtos/UpdateFactorInfo';
3
+ export * from './dtos/UpdateRiskProfileRequest';
2
4
  export * from './enums/PepLevelEnum';
5
+ export * from './enums/RiskFactorCategoryEnum';
@@ -15,4 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./dtos/CreateRiskProfileRequest"), exports);
18
+ __exportStar(require("./dtos/UpdateFactorInfo"), exports);
19
+ __exportStar(require("./dtos/UpdateRiskProfileRequest"), exports);
18
20
  __exportStar(require("./enums/PepLevelEnum"), exports);
21
+ __exportStar(require("./enums/RiskFactorCategoryEnum"), exports);
@@ -8,6 +8,7 @@ import { Total } from "./Total";
8
8
  import { Product } from "./Product";
9
9
  import { TransactionStatusEnum } from "../enums/TransactionStatusEnum";
10
10
  export declare class TransactionCreateRequest {
11
+ id: string;
11
12
  transactionNumber: string;
12
13
  directoryId: string;
13
14
  peopleId: string;
@@ -25,6 +25,11 @@ const TransactionStatusEnum_1 = require("../enums/TransactionStatusEnum");
25
25
  class TransactionCreateRequest {
26
26
  }
27
27
  exports.TransactionCreateRequest = TransactionCreateRequest;
28
+ __decorate([
29
+ (0, class_validator_1.IsNotEmpty)(),
30
+ (0, class_validator_1.IsString)(),
31
+ __metadata("design:type", String)
32
+ ], TransactionCreateRequest.prototype, "id", void 0);
28
33
  __decorate([
29
34
  (0, class_validator_1.IsNotEmpty)(),
30
35
  (0, class_validator_1.IsString)(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.2.54",
3
+ "version": "1.2.56",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,6 @@
1
+ import {RiskFactorCategoryEnum} from "../enums/RiskFactorCategoryEnum";
2
+
3
+ export default class UpdateFactorInfo {
4
+ category!: RiskFactorCategoryEnum;
5
+ value: any;
6
+ }
@@ -0,0 +1,6 @@
1
+ import UpdateFactorInfo from "./UpdateFactorInfo";
2
+
3
+ export default class UpdateRiskProfileRequest {
4
+ directoryId!: string;
5
+ factors!: UpdateFactorInfo[];
6
+ }
@@ -0,0 +1,14 @@
1
+ export enum RiskFactorCategoryEnum {
2
+ TENURE = "TENURE",
3
+ FISCAL = "FISCAL",
4
+ AGE = "AGE",
5
+ GENDER = "GENDER",
6
+ NATIONALITY = "NATIONALITY",
7
+ LOCATION = "LOCATION",
8
+ ACTIVITY = "ACTIVITY",
9
+ TX_VOLUME = "TX_VOLUME",
10
+ FUNDS_SOURCE = "FUNDS_SOURCE",
11
+ SOURCES_COUNT = "SOURCES_COUNT",
12
+ PEP = "PEP",
13
+ INTERNAL_RISK = "INTERNAL_RISK",
14
+ }
@@ -1,3 +1,6 @@
1
1
  export * from './dtos/CreateRiskProfileRequest';
2
+ export * from './dtos/UpdateFactorInfo';
3
+ export * from './dtos/UpdateRiskProfileRequest'
2
4
 
3
5
  export * from './enums/PepLevelEnum';
6
+ export * from './enums/RiskFactorCategoryEnum';
@@ -12,6 +12,9 @@ import {Product} from "./Product";
12
12
  import {TransactionStatusEnum} from "../enums/TransactionStatusEnum";
13
13
 
14
14
  export class TransactionCreateRequest {
15
+ @IsNotEmpty()
16
+ @IsString()
17
+ id: string;
15
18
 
16
19
  @IsNotEmpty()
17
20
  @IsString()