@fiado/type-kit 1.6.37 → 1.6.39

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,18 @@
1
+ export declare class GetBlockedPersonsResponse {
2
+ id: string;
3
+ fullName: string;
4
+ yearOfBirth: string;
5
+ dateOfBirth: string;
6
+ curp: string;
7
+ SSN_ITIN: string;
8
+ countryOfBirth: string;
9
+ createdBy: string;
10
+ updatedBy: string;
11
+ status: string;
12
+ activationReason: string;
13
+ inactivationReason: string;
14
+ inactivatedBy: string;
15
+ activatedBy: string;
16
+ tenantId: string;
17
+ matchPercentage: number;
18
+ }
@@ -0,0 +1,111 @@
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.GetBlockedPersonsResponse = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class GetBlockedPersonsResponse {
16
+ }
17
+ exports.GetBlockedPersonsResponse = GetBlockedPersonsResponse;
18
+ __decorate([
19
+ (0, class_transformer_1.Expose)({ name: 'id' }),
20
+ (0, class_validator_1.IsString)(),
21
+ (0, class_validator_1.IsNotEmpty)(),
22
+ __metadata("design:type", String)
23
+ ], GetBlockedPersonsResponse.prototype, "id", void 0);
24
+ __decorate([
25
+ (0, class_transformer_1.Expose)({ name: 'fullName' }),
26
+ (0, class_validator_1.IsString)(),
27
+ (0, class_validator_1.IsNotEmpty)(),
28
+ __metadata("design:type", String)
29
+ ], GetBlockedPersonsResponse.prototype, "fullName", void 0);
30
+ __decorate([
31
+ (0, class_transformer_1.Expose)({ name: 'yearOfBirth' }),
32
+ (0, class_validator_1.IsString)(),
33
+ (0, class_validator_1.IsNotEmpty)(),
34
+ __metadata("design:type", String)
35
+ ], GetBlockedPersonsResponse.prototype, "yearOfBirth", void 0);
36
+ __decorate([
37
+ (0, class_transformer_1.Expose)({ name: 'dateOfBirth' }),
38
+ (0, class_validator_1.IsString)(),
39
+ (0, class_validator_1.IsNotEmpty)(),
40
+ __metadata("design:type", String)
41
+ ], GetBlockedPersonsResponse.prototype, "dateOfBirth", void 0);
42
+ __decorate([
43
+ (0, class_transformer_1.Expose)({ name: 'curp' }),
44
+ (0, class_validator_1.IsString)(),
45
+ (0, class_validator_1.IsNotEmpty)(),
46
+ __metadata("design:type", String)
47
+ ], GetBlockedPersonsResponse.prototype, "curp", void 0);
48
+ __decorate([
49
+ (0, class_transformer_1.Expose)({ name: 'SSN_ITIN' }),
50
+ (0, class_validator_1.IsString)(),
51
+ (0, class_validator_1.IsNotEmpty)(),
52
+ __metadata("design:type", String)
53
+ ], GetBlockedPersonsResponse.prototype, "SSN_ITIN", void 0);
54
+ __decorate([
55
+ (0, class_transformer_1.Expose)({ name: 'countryOfBirth' }),
56
+ (0, class_validator_1.IsString)(),
57
+ (0, class_validator_1.IsNotEmpty)(),
58
+ __metadata("design:type", String)
59
+ ], GetBlockedPersonsResponse.prototype, "countryOfBirth", void 0);
60
+ __decorate([
61
+ (0, class_transformer_1.Expose)({ name: 'createdBy' }),
62
+ (0, class_validator_1.IsString)(),
63
+ (0, class_validator_1.IsNotEmpty)(),
64
+ __metadata("design:type", String)
65
+ ], GetBlockedPersonsResponse.prototype, "createdBy", void 0);
66
+ __decorate([
67
+ (0, class_transformer_1.Expose)({ name: 'updatedBy' }),
68
+ (0, class_validator_1.IsString)(),
69
+ (0, class_validator_1.IsNotEmpty)(),
70
+ __metadata("design:type", String)
71
+ ], GetBlockedPersonsResponse.prototype, "updatedBy", void 0);
72
+ __decorate([
73
+ (0, class_transformer_1.Expose)({ name: 'status' }),
74
+ (0, class_validator_1.IsEnum)(['ACTIVE', 'INACTIVE']),
75
+ (0, class_validator_1.IsNotEmpty)(),
76
+ __metadata("design:type", String)
77
+ ], GetBlockedPersonsResponse.prototype, "status", void 0);
78
+ __decorate([
79
+ (0, class_transformer_1.Expose)({ name: 'activationReason' }),
80
+ (0, class_validator_1.IsString)(),
81
+ (0, class_validator_1.IsNotEmpty)(),
82
+ __metadata("design:type", String)
83
+ ], GetBlockedPersonsResponse.prototype, "activationReason", void 0);
84
+ __decorate([
85
+ (0, class_transformer_1.Expose)({ name: 'inactivationReason' }),
86
+ (0, class_validator_1.IsString)(),
87
+ (0, class_validator_1.IsNotEmpty)(),
88
+ __metadata("design:type", String)
89
+ ], GetBlockedPersonsResponse.prototype, "inactivationReason", void 0);
90
+ __decorate([
91
+ (0, class_transformer_1.Expose)({ name: 'inactivatedBy' }),
92
+ (0, class_validator_1.IsString)(),
93
+ (0, class_validator_1.IsNotEmpty)(),
94
+ __metadata("design:type", String)
95
+ ], GetBlockedPersonsResponse.prototype, "inactivatedBy", void 0);
96
+ __decorate([
97
+ (0, class_transformer_1.Expose)({ name: 'activatedBy' }),
98
+ (0, class_validator_1.IsString)(),
99
+ (0, class_validator_1.IsNotEmpty)(),
100
+ __metadata("design:type", String)
101
+ ], GetBlockedPersonsResponse.prototype, "activatedBy", void 0);
102
+ __decorate([
103
+ (0, class_transformer_1.Expose)({ name: 'tenantId' }),
104
+ (0, class_validator_1.IsString)(),
105
+ (0, class_validator_1.IsNotEmpty)(),
106
+ __metadata("design:type", String)
107
+ ], GetBlockedPersonsResponse.prototype, "tenantId", void 0);
108
+ __decorate([
109
+ (0, class_transformer_1.Expose)({ name: 'matchPercentage' }),
110
+ __metadata("design:type", Number)
111
+ ], GetBlockedPersonsResponse.prototype, "matchPercentage", void 0);
@@ -1,6 +1,5 @@
1
1
  export declare enum IdentificationParameter {
2
2
  CURP = "CURP",
3
- SSN = "SSN",
4
- ITIN = "ITIN",
3
+ ITIN_SSN = "ITIN",
5
4
  FULL_NAME = "FULLNAME"
6
5
  }
@@ -4,7 +4,6 @@ exports.IdentificationParameter = void 0;
4
4
  var IdentificationParameter;
5
5
  (function (IdentificationParameter) {
6
6
  IdentificationParameter["CURP"] = "CURP";
7
- IdentificationParameter["SSN"] = "SSN";
8
- IdentificationParameter["ITIN"] = "ITIN";
7
+ IdentificationParameter["ITIN_SSN"] = "ITIN";
9
8
  IdentificationParameter["FULL_NAME"] = "FULLNAME";
10
9
  })(IdentificationParameter || (exports.IdentificationParameter = IdentificationParameter = {}));
@@ -1 +1,2 @@
1
+ export * from './dtos/GetBlockedPersonsResponse';
1
2
  export * from './enums/IdentificationParameter';
@@ -14,4 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ //dtos
18
+ __exportStar(require("./dtos/GetBlockedPersonsResponse"), exports);
19
+ //enums
17
20
  __exportStar(require("./enums/IdentificationParameter"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.6.37",
3
+ "version": "1.6.39",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,84 @@
1
+
2
+ import { Expose } from 'class-transformer';
3
+ import { IsEnum, IsNotEmpty, IsString } from 'class-validator';
4
+
5
+ export class GetBlockedPersonsResponse {
6
+
7
+ @Expose({ name: 'id' })
8
+ @IsString()
9
+ @IsNotEmpty()
10
+ id: string;
11
+
12
+ @Expose({ name: 'fullName' })
13
+ @IsString()
14
+ @IsNotEmpty()
15
+ fullName: string;
16
+
17
+ @Expose({ name: 'yearOfBirth' })
18
+ @IsString()
19
+ @IsNotEmpty()
20
+ yearOfBirth: string;
21
+
22
+ @Expose({ name: 'dateOfBirth' })
23
+ @IsString()
24
+ @IsNotEmpty()
25
+ dateOfBirth: string;
26
+
27
+ @Expose({ name: 'curp' })
28
+ @IsString()
29
+ @IsNotEmpty()
30
+ curp: string;
31
+
32
+ @Expose({ name: 'SSN_ITIN' })
33
+ @IsString()
34
+ @IsNotEmpty()
35
+ SSN_ITIN: string;
36
+
37
+ @Expose({ name: 'countryOfBirth' })
38
+ @IsString()
39
+ @IsNotEmpty()
40
+ countryOfBirth: string;
41
+
42
+ @Expose({ name: 'createdBy' })
43
+ @IsString()
44
+ @IsNotEmpty()
45
+ createdBy: string;
46
+
47
+ @Expose({ name: 'updatedBy' })
48
+ @IsString()
49
+ @IsNotEmpty()
50
+ updatedBy: string;
51
+
52
+ @Expose({ name: 'status' })
53
+ @IsEnum(['ACTIVE', 'INACTIVE'])
54
+ @IsNotEmpty()
55
+ status: string;
56
+
57
+ @Expose({ name: 'activationReason' })
58
+ @IsString()
59
+ @IsNotEmpty()
60
+ activationReason: string;
61
+
62
+ @Expose({ name: 'inactivationReason' })
63
+ @IsString()
64
+ @IsNotEmpty()
65
+ inactivationReason: string;
66
+
67
+ @Expose({ name: 'inactivatedBy' })
68
+ @IsString()
69
+ @IsNotEmpty()
70
+ inactivatedBy: string;
71
+
72
+ @Expose({ name: 'activatedBy' })
73
+ @IsString()
74
+ @IsNotEmpty()
75
+ activatedBy: string;
76
+
77
+ @Expose({ name: 'tenantId' })
78
+ @IsString()
79
+ @IsNotEmpty()
80
+ tenantId: string;
81
+
82
+ @Expose({ name: 'matchPercentage' })
83
+ matchPercentage: number;
84
+ }
@@ -1,6 +1,5 @@
1
1
  export enum IdentificationParameter {
2
2
  CURP = "CURP",
3
- SSN = "SSN",
4
- ITIN = "ITIN",
3
+ ITIN_SSN = "ITIN",
5
4
  FULL_NAME = "FULLNAME",
6
5
  }
@@ -1 +1,6 @@
1
+
2
+ //dtos
3
+ export * from './dtos/GetBlockedPersonsResponse';
4
+
5
+ //enums
1
6
  export * from './enums/IdentificationParameter';