@fiado/type-kit 1.6.39 → 1.6.40

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,9 @@
1
+ export declare class CreateBlockedPersonRequest {
2
+ fullName: string;
3
+ yearOfBirth?: string;
4
+ dateOfBirth?: string;
5
+ curp?: string;
6
+ SSN_ITIN?: string;
7
+ countryOfBirth?: string;
8
+ activationReason: string;
9
+ }
@@ -0,0 +1,49 @@
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.CreateBlockedPersonRequest = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class CreateBlockedPersonRequest {
16
+ }
17
+ exports.CreateBlockedPersonRequest = CreateBlockedPersonRequest;
18
+ __decorate([
19
+ (0, class_transformer_1.Expose)({ name: 'fullName' }),
20
+ (0, class_validator_1.IsString)(),
21
+ (0, class_validator_1.IsNotEmpty)(),
22
+ __metadata("design:type", String)
23
+ ], CreateBlockedPersonRequest.prototype, "fullName", void 0);
24
+ __decorate([
25
+ (0, class_transformer_1.Expose)({ name: 'yearOfBirth' }),
26
+ __metadata("design:type", String)
27
+ ], CreateBlockedPersonRequest.prototype, "yearOfBirth", void 0);
28
+ __decorate([
29
+ (0, class_transformer_1.Expose)({ name: 'dateOfBirth' }),
30
+ __metadata("design:type", String)
31
+ ], CreateBlockedPersonRequest.prototype, "dateOfBirth", void 0);
32
+ __decorate([
33
+ (0, class_transformer_1.Expose)({ name: 'curp' }),
34
+ __metadata("design:type", String)
35
+ ], CreateBlockedPersonRequest.prototype, "curp", void 0);
36
+ __decorate([
37
+ (0, class_transformer_1.Expose)({ name: 'SSN_ITIN' }),
38
+ __metadata("design:type", String)
39
+ ], CreateBlockedPersonRequest.prototype, "SSN_ITIN", void 0);
40
+ __decorate([
41
+ (0, class_transformer_1.Expose)({ name: 'countryOfBirth' }),
42
+ __metadata("design:type", String)
43
+ ], CreateBlockedPersonRequest.prototype, "countryOfBirth", void 0);
44
+ __decorate([
45
+ (0, class_transformer_1.Expose)({ name: 'activationReason' }),
46
+ (0, class_validator_1.IsString)(),
47
+ (0, class_validator_1.IsNotEmpty)(),
48
+ __metadata("design:type", String)
49
+ ], CreateBlockedPersonRequest.prototype, "activationReason", void 0);
@@ -0,0 +1,11 @@
1
+ export declare class UpdateBlockedPersonRequest {
2
+ fullName?: string;
3
+ yearOfBirth?: string;
4
+ dateOfBirth?: string;
5
+ curp?: string;
6
+ SSN_ITIN?: string;
7
+ countryOfBirth?: string;
8
+ activationReason?: string;
9
+ inactivationReason?: string;
10
+ status?: string;
11
+ }
@@ -0,0 +1,61 @@
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.UpdateBlockedPersonRequest = void 0;
13
+ const class_transformer_1 = require("class-transformer");
14
+ const class_validator_1 = require("class-validator");
15
+ class UpdateBlockedPersonRequest {
16
+ }
17
+ exports.UpdateBlockedPersonRequest = UpdateBlockedPersonRequest;
18
+ __decorate([
19
+ (0, class_transformer_1.Expose)({ name: 'fullName' }),
20
+ (0, class_validator_1.IsString)(),
21
+ (0, class_validator_1.IsNotEmpty)(),
22
+ __metadata("design:type", String)
23
+ ], UpdateBlockedPersonRequest.prototype, "fullName", void 0);
24
+ __decorate([
25
+ (0, class_transformer_1.Expose)({ name: 'yearOfBirth' }),
26
+ __metadata("design:type", String)
27
+ ], UpdateBlockedPersonRequest.prototype, "yearOfBirth", void 0);
28
+ __decorate([
29
+ (0, class_transformer_1.Expose)({ name: 'dateOfBirth' }),
30
+ __metadata("design:type", String)
31
+ ], UpdateBlockedPersonRequest.prototype, "dateOfBirth", void 0);
32
+ __decorate([
33
+ (0, class_transformer_1.Expose)({ name: 'curp' }),
34
+ __metadata("design:type", String)
35
+ ], UpdateBlockedPersonRequest.prototype, "curp", void 0);
36
+ __decorate([
37
+ (0, class_transformer_1.Expose)({ name: 'SSN_ITIN' }),
38
+ __metadata("design:type", String)
39
+ ], UpdateBlockedPersonRequest.prototype, "SSN_ITIN", void 0);
40
+ __decorate([
41
+ (0, class_transformer_1.Expose)({ name: 'countryOfBirth' }),
42
+ __metadata("design:type", String)
43
+ ], UpdateBlockedPersonRequest.prototype, "countryOfBirth", void 0);
44
+ __decorate([
45
+ (0, class_transformer_1.Expose)({ name: 'activationReason' }),
46
+ (0, class_validator_1.IsString)(),
47
+ (0, class_validator_1.IsNotEmpty)(),
48
+ __metadata("design:type", String)
49
+ ], UpdateBlockedPersonRequest.prototype, "activationReason", void 0);
50
+ __decorate([
51
+ (0, class_transformer_1.Expose)({ name: 'inactivationReason' }),
52
+ (0, class_validator_1.IsString)(),
53
+ (0, class_validator_1.IsNotEmpty)(),
54
+ __metadata("design:type", String)
55
+ ], UpdateBlockedPersonRequest.prototype, "inactivationReason", void 0);
56
+ __decorate([
57
+ (0, class_transformer_1.Expose)({ name: 'status' }),
58
+ (0, class_validator_1.IsString)(),
59
+ (0, class_validator_1.IsNotEmpty)(),
60
+ __metadata("design:type", String)
61
+ ], UpdateBlockedPersonRequest.prototype, "status", void 0);
@@ -1,2 +1,4 @@
1
1
  export * from './dtos/GetBlockedPersonsResponse';
2
+ export * from './dtos/CreateBlockedPersonRequest';
3
+ export * from './dtos/UpdateBlockedPersonRequest';
2
4
  export * from './enums/IdentificationParameter';
@@ -16,5 +16,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  //dtos
18
18
  __exportStar(require("./dtos/GetBlockedPersonsResponse"), exports);
19
+ __exportStar(require("./dtos/CreateBlockedPersonRequest"), exports);
20
+ __exportStar(require("./dtos/UpdateBlockedPersonRequest"), exports);
19
21
  //enums
20
22
  __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.39",
3
+ "version": "1.6.40",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,32 @@
1
+
2
+ import { Expose } from 'class-transformer';
3
+ import { IsNotEmpty, IsString } from 'class-validator';
4
+
5
+ export class CreateBlockedPersonRequest {
6
+
7
+ @Expose({ name: 'fullName' })
8
+ @IsString()
9
+ @IsNotEmpty()
10
+ fullName: string;
11
+
12
+ @Expose({ name: 'yearOfBirth' })
13
+ yearOfBirth?: string;
14
+
15
+ @Expose({ name: 'dateOfBirth' })
16
+ dateOfBirth?: string;
17
+
18
+ @Expose({ name: 'curp' })
19
+ curp?: string;
20
+
21
+ @Expose({ name: 'SSN_ITIN' })
22
+ SSN_ITIN?: string;
23
+
24
+ @Expose({ name: 'countryOfBirth' })
25
+ countryOfBirth?: string;
26
+
27
+ @Expose({ name: 'activationReason' })
28
+ @IsString()
29
+ @IsNotEmpty()
30
+ activationReason: string;
31
+
32
+ }
@@ -0,0 +1,42 @@
1
+
2
+ import { Expose } from 'class-transformer';
3
+ import { IsNotEmpty, IsString } from 'class-validator';
4
+
5
+ export class UpdateBlockedPersonRequest {
6
+
7
+ @Expose({ name: 'fullName' })
8
+ @IsString()
9
+ @IsNotEmpty()
10
+ fullName?: string;
11
+
12
+ @Expose({ name: 'yearOfBirth' })
13
+ yearOfBirth?: string;
14
+
15
+ @Expose({ name: 'dateOfBirth' })
16
+ dateOfBirth?: string;
17
+
18
+ @Expose({ name: 'curp' })
19
+ curp?: string;
20
+
21
+ @Expose({ name: 'SSN_ITIN' })
22
+ SSN_ITIN?: string;
23
+
24
+ @Expose({ name: 'countryOfBirth' })
25
+ countryOfBirth?: string;
26
+
27
+ @Expose({ name: 'activationReason' })
28
+ @IsString()
29
+ @IsNotEmpty()
30
+ activationReason?: string;
31
+
32
+ @Expose({ name: 'inactivationReason' })
33
+ @IsString()
34
+ @IsNotEmpty()
35
+ inactivationReason?: string;
36
+
37
+ @Expose({ name: 'status' })
38
+ @IsString()
39
+ @IsNotEmpty()
40
+ status?: string;
41
+
42
+ }
@@ -1,6 +1,8 @@
1
1
 
2
2
  //dtos
3
3
  export * from './dtos/GetBlockedPersonsResponse';
4
+ export * from './dtos/CreateBlockedPersonRequest';
5
+ export * from './dtos/UpdateBlockedPersonRequest';
4
6
 
5
7
  //enums
6
8
  export * from './enums/IdentificationParameter';