@fiado/type-kit 1.2.51 → 1.2.53

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/index.d.ts CHANGED
@@ -29,3 +29,4 @@ export * as BankAccount from './bankAccount';
29
29
  export * as Stp from './stpSpei';
30
30
  export * as BBVARst from './bbvaRst';
31
31
  export * as FraudPreventionEngine from './fraudPreventionEngine';
32
+ export * as RiskProfile from './riskProfile';
package/bin/index.js CHANGED
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
23
23
  return result;
24
24
  };
25
25
  Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.FraudPreventionEngine = exports.BBVARst = exports.Stp = exports.BankAccount = exports.P2pContact = exports.CreditContract = exports.Contract = exports.ProductCatalog = exports.ContactInfo = exports.Transaction = exports.TransactionProcessor = exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = exports.ServicePayment = exports.Header = exports.Identity = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Beneficiary = exports.Activity = exports.Account = void 0;
26
+ exports.RiskProfile = exports.FraudPreventionEngine = exports.BBVARst = exports.Stp = exports.BankAccount = exports.P2pContact = exports.CreditContract = exports.Contract = exports.ProductCatalog = exports.ContactInfo = exports.Transaction = exports.TransactionProcessor = exports.GenericMessage = exports.EventBridgeMessage = exports.SessionActivity = exports.NotificationMessages = exports.ServicePayment = exports.Header = exports.Identity = exports.Group = exports.File = exports.ExchangeRate = exports.Directory = exports.Currency = exports.Country = exports.Card = exports.Authentication = exports.App = exports.Address = exports.Beneficiary = exports.Activity = exports.Account = void 0;
27
27
  exports.Account = __importStar(require("./account"));
28
28
  exports.Activity = __importStar(require("./activity"));
29
29
  exports.Beneficiary = __importStar(require("./beneficiary"));
@@ -55,3 +55,4 @@ exports.BankAccount = __importStar(require("./bankAccount"));
55
55
  exports.Stp = __importStar(require("./stpSpei"));
56
56
  exports.BBVARst = __importStar(require("./bbvaRst"));
57
57
  exports.FraudPreventionEngine = __importStar(require("./fraudPreventionEngine"));
58
+ exports.RiskProfile = __importStar(require("./riskProfile"));
@@ -0,0 +1,11 @@
1
+ export declare class CreateRiskProfileRequest {
2
+ private directoryId;
3
+ private peopleId;
4
+ private sex;
5
+ private dob;
6
+ private countryOfBirth;
7
+ private countryOfResidence;
8
+ private stateOfResidence;
9
+ private activity;
10
+ private pepLevel;
11
+ }
@@ -0,0 +1,63 @@
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.CreateRiskProfileRequest = void 0;
13
+ const identity_1 = require("../../identity");
14
+ const PepLevelEnum_1 = require("../enums/PepLevelEnum");
15
+ const class_validator_1 = require("class-validator");
16
+ class CreateRiskProfileRequest {
17
+ }
18
+ exports.CreateRiskProfileRequest = CreateRiskProfileRequest;
19
+ __decorate([
20
+ (0, class_validator_1.IsString)(),
21
+ (0, class_validator_1.IsNotEmpty)(),
22
+ __metadata("design:type", String)
23
+ ], CreateRiskProfileRequest.prototype, "directoryId", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsString)(),
26
+ (0, class_validator_1.IsNotEmpty)(),
27
+ __metadata("design:type", String)
28
+ ], CreateRiskProfileRequest.prototype, "peopleId", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsEnum)(identity_1.SexDocument),
31
+ (0, class_validator_1.IsNotEmpty)(),
32
+ __metadata("design:type", String)
33
+ ], CreateRiskProfileRequest.prototype, "sex", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsString)(),
36
+ (0, class_validator_1.IsNotEmpty)(),
37
+ __metadata("design:type", String)
38
+ ], CreateRiskProfileRequest.prototype, "dob", void 0);
39
+ __decorate([
40
+ (0, class_validator_1.IsString)(),
41
+ (0, class_validator_1.IsNotEmpty)(),
42
+ __metadata("design:type", String)
43
+ ], CreateRiskProfileRequest.prototype, "countryOfBirth", void 0);
44
+ __decorate([
45
+ (0, class_validator_1.IsString)(),
46
+ (0, class_validator_1.IsNotEmpty)(),
47
+ __metadata("design:type", String)
48
+ ], CreateRiskProfileRequest.prototype, "countryOfResidence", void 0);
49
+ __decorate([
50
+ (0, class_validator_1.IsString)(),
51
+ (0, class_validator_1.IsNotEmpty)(),
52
+ __metadata("design:type", String)
53
+ ], CreateRiskProfileRequest.prototype, "stateOfResidence", void 0);
54
+ __decorate([
55
+ (0, class_validator_1.IsString)(),
56
+ (0, class_validator_1.IsNotEmpty)(),
57
+ __metadata("design:type", String)
58
+ ], CreateRiskProfileRequest.prototype, "activity", void 0);
59
+ __decorate([
60
+ (0, class_validator_1.IsEnum)(PepLevelEnum_1.PepLevelEnum),
61
+ (0, class_validator_1.IsNotEmpty)(),
62
+ __metadata("design:type", String)
63
+ ], CreateRiskProfileRequest.prototype, "pepLevel", void 0);
@@ -0,0 +1,7 @@
1
+ export declare enum PepLevelEnum {
2
+ NO_PEP = "NO_PEP",
3
+ PEP4 = "PEP4",
4
+ PEP3 = "PEP3",
5
+ PEP2 = "PEP2",
6
+ PEP1 = "PEP1"
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PepLevelEnum = void 0;
4
+ var PepLevelEnum;
5
+ (function (PepLevelEnum) {
6
+ PepLevelEnum["NO_PEP"] = "NO_PEP";
7
+ PepLevelEnum["PEP4"] = "PEP4";
8
+ PepLevelEnum["PEP3"] = "PEP3";
9
+ PepLevelEnum["PEP2"] = "PEP2";
10
+ PepLevelEnum["PEP1"] = "PEP1";
11
+ })(PepLevelEnum || (exports.PepLevelEnum = PepLevelEnum = {}));
@@ -0,0 +1,2 @@
1
+ export * from './dtos/CreateRiskProfileRequest';
2
+ export * from './enums/PepLevelEnum';
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./dtos/CreateRiskProfileRequest"), exports);
18
+ __exportStar(require("./enums/PepLevelEnum"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.2.51",
3
+ "version": "1.2.53",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
package/src/index.ts CHANGED
@@ -29,7 +29,7 @@ export * as BankAccount from './bankAccount';
29
29
  export * as Stp from './stpSpei';
30
30
  export * as BBVARst from './bbvaRst';
31
31
  export * as FraudPreventionEngine from './fraudPreventionEngine';
32
-
32
+ export * as RiskProfile from './riskProfile';
33
33
 
34
34
 
35
35
 
@@ -0,0 +1,41 @@
1
+ import {SexDocument} from "../../identity";
2
+ import {PepLevelEnum} from "../enums/PepLevelEnum";
3
+ import {IsEnum, IsNotEmpty, IsString} from "class-validator";
4
+
5
+ export class CreateRiskProfileRequest {
6
+ @IsString()
7
+ @IsNotEmpty()
8
+ private directoryId!: string;
9
+
10
+ @IsString()
11
+ @IsNotEmpty()
12
+ private peopleId!: string;
13
+
14
+ @IsEnum(SexDocument)
15
+ @IsNotEmpty()
16
+ private sex!: SexDocument;
17
+
18
+ @IsString()
19
+ @IsNotEmpty()
20
+ private dob!: string;
21
+
22
+ @IsString()
23
+ @IsNotEmpty()
24
+ private countryOfBirth!: string;
25
+
26
+ @IsString()
27
+ @IsNotEmpty()
28
+ private countryOfResidence!: string;
29
+
30
+ @IsString()
31
+ @IsNotEmpty()
32
+ private stateOfResidence!: string;
33
+
34
+ @IsString()
35
+ @IsNotEmpty()
36
+ private activity!: string;
37
+
38
+ @IsEnum(PepLevelEnum)
39
+ @IsNotEmpty()
40
+ private pepLevel!: PepLevelEnum;
41
+ }
@@ -0,0 +1,7 @@
1
+ export enum PepLevelEnum {
2
+ NO_PEP = "NO_PEP",
3
+ PEP4 = "PEP4",
4
+ PEP3 = "PEP3",
5
+ PEP2 = "PEP2",
6
+ PEP1 = "PEP1"
7
+ }
@@ -0,0 +1,3 @@
1
+ export * from './dtos/CreateRiskProfileRequest';
2
+
3
+ export * from './enums/PepLevelEnum';