@fiado/type-kit 1.0.56 → 1.0.57

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.
@@ -1,5 +1,6 @@
1
1
  import { AddressResponse } from "../../address/dtos/AddressResponse";
2
2
  import { Country } from "../../country/enums/Country";
3
+ import { SexDocument } from '../../identity';
3
4
  export declare class AccountCreateRequest {
4
5
  directoryId: string;
5
6
  typeOfDirectoryId: string;
@@ -10,5 +11,9 @@ export declare class AccountCreateRequest {
10
11
  email: string;
11
12
  dob: string;
12
13
  documentNumber: string;
14
+ documentType: string;
15
+ gender: SexDocument;
16
+ externalClientId: string;
17
+ externalUserId: string;
13
18
  countryId: Country;
14
19
  }
@@ -16,6 +16,7 @@ const Country_1 = require("../../country/enums/Country");
16
16
  const regex_1 = require("../../helpers/constans/regex");
17
17
  const TypeOfDirectoryId_1 = require("../../directory/enums/TypeOfDirectoryId");
18
18
  const IsPhoneNumberConstraint_1 = require("../../card/validations/IsPhoneNumberConstraint");
19
+ const identity_1 = require("../../identity");
19
20
  class AccountCreateRequest {
20
21
  }
21
22
  exports.AccountCreateRequest = AccountCreateRequest;
@@ -59,6 +60,23 @@ __decorate([
59
60
  (0, class_validator_1.Length)(1, 30),
60
61
  __metadata("design:type", String)
61
62
  ], AccountCreateRequest.prototype, "documentNumber", void 0);
63
+ __decorate([
64
+ (0, class_validator_1.IsString)(),
65
+ (0, class_validator_1.Length)(1, 30),
66
+ __metadata("design:type", String)
67
+ ], AccountCreateRequest.prototype, "documentType", void 0);
68
+ __decorate([
69
+ (0, class_validator_1.IsEnum)(identity_1.SexDocument),
70
+ __metadata("design:type", String)
71
+ ], AccountCreateRequest.prototype, "gender", void 0);
72
+ __decorate([
73
+ (0, class_validator_1.IsString)(),
74
+ __metadata("design:type", String)
75
+ ], AccountCreateRequest.prototype, "externalClientId", void 0);
76
+ __decorate([
77
+ (0, class_validator_1.IsString)(),
78
+ __metadata("design:type", String)
79
+ ], AccountCreateRequest.prototype, "externalUserId", void 0);
62
80
  __decorate([
63
81
  (0, class_validator_1.IsEnum)(Country_1.Country),
64
82
  __metadata("design:type", String)
@@ -1,3 +1,8 @@
1
- import { AccountResponse } from "./AccountResponse";
2
- export declare class AccountCreateResponse extends AccountResponse {
1
+ export declare class AccountCreateResponse {
2
+ id: string;
3
+ externalId: string;
4
+ externalUserId: string;
5
+ directoryId: string;
6
+ typeOfDirectoryId: string;
7
+ countryId: string;
3
8
  }
@@ -1,7 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.AccountCreateResponse = void 0;
4
- const AccountResponse_1 = require("./AccountResponse");
5
- class AccountCreateResponse extends AccountResponse_1.AccountResponse {
4
+ class AccountCreateResponse {
6
5
  }
7
6
  exports.AccountCreateResponse = AccountCreateResponse;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.0.56",
3
+ "version": "1.0.57",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -4,6 +4,7 @@ import { Country } from "../../country/enums/Country";
4
4
  import { regexUuidV4 } from '../../helpers/constans/regex';
5
5
  import { TypeOfDirectoryId } from '../../directory/enums/TypeOfDirectoryId';
6
6
  import { IsPhoneNumberFiado } from '../../card/validations/IsPhoneNumberConstraint';
7
+ import { SexDocument } from '../../identity';
7
8
 
8
9
  export class AccountCreateRequest {
9
10
 
@@ -21,7 +22,6 @@ export class AccountCreateRequest {
21
22
  firstName: string;
22
23
 
23
24
  @IsString()
24
-
25
25
  lastName: string;
26
26
 
27
27
  @IsPhoneNumberFiado()
@@ -40,6 +40,19 @@ export class AccountCreateRequest {
40
40
  @Length(1, 30)
41
41
  documentNumber: string;
42
42
 
43
+ @IsString()
44
+ @Length(1, 30)
45
+ documentType: string;
46
+
47
+ @IsEnum(SexDocument)
48
+ gender: SexDocument;
49
+
50
+ @IsString()
51
+ externalClientId: string;
52
+
53
+ @IsString()
54
+ externalUserId: string;
55
+
43
56
  @IsEnum(Country)
44
57
  countryId: Country;
45
- }
58
+ }
@@ -1,6 +1,8 @@
1
- import { AccountResponse } from "./AccountResponse";
2
-
3
-
4
- export class AccountCreateResponse extends AccountResponse {
5
-
1
+ export class AccountCreateResponse{
2
+ id: string;
3
+ externalId: string;
4
+ externalUserId: string;
5
+ directoryId:string;
6
+ typeOfDirectoryId:string
7
+ countryId:string
6
8
  }
@@ -1,3 +0,0 @@
1
- export declare class GroupDirectoryRetationsUpdateRequest {
2
- agent: string;
3
- }
@@ -1,22 +0,0 @@
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.GroupDirectoryRetationsUpdateRequest = void 0;
13
- const class_validator_1 = require("class-validator");
14
- class GroupDirectoryRetationsUpdateRequest {
15
- }
16
- exports.GroupDirectoryRetationsUpdateRequest = GroupDirectoryRetationsUpdateRequest;
17
- __decorate([
18
- (0, class_validator_1.IsOptional)(),
19
- (0, class_validator_1.IsString)(),
20
- (0, class_validator_1.Length)(1, 20),
21
- __metadata("design:type", String)
22
- ], GroupDirectoryRetationsUpdateRequest.prototype, "agent", void 0);
@@ -1,26 +0,0 @@
1
-
2
-
3
- import { Provider } from '../../provider/enums/Provider';
4
- import { Country } from '../../country/enums/Country';
5
- import { AccountStatus } from '../enums/AccountStatus';
6
- import { TypeOfDirectoryId } from '../../directory/enums/TypeOfDirectoryId';
7
-
8
- export class AccountResponse {
9
-
10
- id: string;
11
- typeOfAccountId: string;
12
- externalAccountId: string;
13
- externalSubAccountId: string | null;
14
- provider: Provider;
15
- directoryId: string;
16
- typeOfDirectoryId: TypeOfDirectoryId;
17
- currentBalance: number;
18
- balanceLock: number;
19
- countryId: Country;
20
- createDate: string;
21
- lastUpdateDate: string;
22
- accountNumber: string
23
- routingNumber: string;
24
- status: AccountStatus;
25
-
26
- }
@@ -1,19 +0,0 @@
1
- import { IsString, Matches } from "class-validator";
2
- import { regexUuidV4 } from "../../helpers/constans/regex";
3
-
4
- export class PocketCreateRequest {
5
-
6
- @IsString()
7
- @Matches(regexUuidV4,
8
- {
9
- message: 'beneficiaryDirectoryId must be a valid UUID v4',
10
- })
11
- beneficiaryDirectoryId?: string;
12
-
13
- @IsString()
14
- @Matches(regexUuidV4,
15
- {
16
- message: 'accountId must be a valid UUID v4',
17
- })
18
- accountId: string;
19
- }
@@ -1,5 +0,0 @@
1
-
2
-
3
- export class PocketCreateResponse {
4
-
5
- }