@fiado/type-kit 1.0.81 → 1.0.84

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.
@@ -2,10 +2,12 @@ import { AddressResponse } from "../../address";
2
2
  import { CountryId } from "../../country";
3
3
  import { SexDocument } from '../../identity';
4
4
  import { Profile } from "../../directory/enums/Profile";
5
+ import { AccountLevelEnum } from "../enums/AccountLevelEnum";
5
6
  export declare class AccountCreateRequest {
6
7
  directoryId: string;
7
8
  ownerDirectoryId: string;
8
9
  peopleId: string;
10
+ accountLevel: AccountLevelEnum;
9
11
  typeOfDirectoryId: string;
10
12
  firstName: string;
11
13
  lastName: string;
@@ -18,6 +18,7 @@ const directory_1 = require("../../directory");
18
18
  const IsPhoneNumberConstraint_1 = require("../../card/validations/IsPhoneNumberConstraint");
19
19
  const identity_1 = require("../../identity");
20
20
  const Profile_1 = require("../../directory/enums/Profile");
21
+ const AccountLevelEnum_1 = require("../enums/AccountLevelEnum");
21
22
  class AccountCreateRequest {
22
23
  }
23
24
  exports.AccountCreateRequest = AccountCreateRequest;
@@ -42,6 +43,10 @@ __decorate([
42
43
  }),
43
44
  __metadata("design:type", String)
44
45
  ], AccountCreateRequest.prototype, "peopleId", void 0);
46
+ __decorate([
47
+ (0, class_validator_1.IsEnum)(AccountLevelEnum_1.AccountLevelEnum),
48
+ __metadata("design:type", String)
49
+ ], AccountCreateRequest.prototype, "accountLevel", void 0);
45
50
  __decorate([
46
51
  (0, class_validator_1.IsEnum)(directory_1.TypeOfDirectoryId),
47
52
  __metadata("design:type", String)
@@ -1,4 +1,4 @@
1
- export declare class GetBankAccountSensitiveInformationInput {
1
+ export declare class GetBankAccountSensitiveInformationRequest {
2
2
  externalCardId: string;
3
3
  externalAccountId?: string;
4
4
  externalUserId?: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetBankAccountSensitiveInformationInput = void 0;
4
- class GetBankAccountSensitiveInformationInput {
3
+ exports.GetBankAccountSensitiveInformationRequest = void 0;
4
+ class GetBankAccountSensitiveInformationRequest {
5
5
  }
6
- exports.GetBankAccountSensitiveInformationInput = GetBankAccountSensitiveInformationInput;
6
+ exports.GetBankAccountSensitiveInformationRequest = GetBankAccountSensitiveInformationRequest;
@@ -1,4 +1,4 @@
1
- export declare class GetBankAccountSensitiveInformationOutput {
1
+ export declare class GetBankAccountSensitiveInformationResponse {
2
2
  name: string;
3
3
  cvv: string;
4
4
  expirationYear: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.GetBankAccountSensitiveInformationOutput = void 0;
4
- class GetBankAccountSensitiveInformationOutput {
3
+ exports.GetBankAccountSensitiveInformationResponse = void 0;
4
+ class GetBankAccountSensitiveInformationResponse {
5
5
  }
6
- exports.GetBankAccountSensitiveInformationOutput = GetBankAccountSensitiveInformationOutput;
6
+ exports.GetBankAccountSensitiveInformationResponse = GetBankAccountSensitiveInformationResponse;
@@ -0,0 +1,6 @@
1
+ export declare enum AccountLevelEnum {
2
+ LEVEL_1 = "1",
3
+ LEVEL_2 = "2",
4
+ LEVEL_3 = "3",
5
+ LEVEL_4 = "4"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AccountLevelEnum = void 0;
4
+ var AccountLevelEnum;
5
+ (function (AccountLevelEnum) {
6
+ AccountLevelEnum["LEVEL_1"] = "1";
7
+ AccountLevelEnum["LEVEL_2"] = "2";
8
+ AccountLevelEnum["LEVEL_3"] = "3";
9
+ AccountLevelEnum["LEVEL_4"] = "4";
10
+ })(AccountLevelEnum || (exports.AccountLevelEnum = AccountLevelEnum = {}));
@@ -17,3 +17,4 @@ export * from './entities/AccountEntityBase';
17
17
  export * from './enums/AccountEntityStatusEnum';
18
18
  export * from './enums/BankAccountTypeEnum';
19
19
  export * from './enums/UserEntityStatusEnum';
20
+ export * from './enums/AccountLevelEnum';
@@ -36,3 +36,4 @@ __exportStar(require("./entities/AccountEntityBase"), exports);
36
36
  __exportStar(require("./enums/AccountEntityStatusEnum"), exports);
37
37
  __exportStar(require("./enums/BankAccountTypeEnum"), exports);
38
38
  __exportStar(require("./enums/UserEntityStatusEnum"), exports);
39
+ __exportStar(require("./enums/AccountLevelEnum"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.0.81",
3
+ "version": "1.0.84",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -6,6 +6,7 @@ import { TypeOfDirectoryId } from '../../directory';
6
6
  import { IsPhoneNumberFiado } from '../../card/validations/IsPhoneNumberConstraint';
7
7
  import { SexDocument } from '../../identity';
8
8
  import { Profile } from "../../directory/enums/Profile";
9
+ import {AccountLevelEnum} from "../enums/AccountLevelEnum";
9
10
 
10
11
  export class AccountCreateRequest {
11
12
 
@@ -31,6 +32,9 @@ export class AccountCreateRequest {
31
32
  })
32
33
  peopleId: string;
33
34
 
35
+ @IsEnum(AccountLevelEnum)
36
+ accountLevel: AccountLevelEnum;
37
+
34
38
  @IsEnum(TypeOfDirectoryId)
35
39
  typeOfDirectoryId: string;
36
40
 
@@ -1,5 +1,5 @@
1
1
 
2
- export class GetBankAccountSensitiveInformationInput {
2
+ export class GetBankAccountSensitiveInformationRequest {
3
3
  externalCardId: string;
4
4
  externalAccountId?: string;
5
5
  externalUserId?: string;
@@ -1,5 +1,5 @@
1
1
 
2
- export class GetBankAccountSensitiveInformationOutput {
2
+ export class GetBankAccountSensitiveInformationResponse {
3
3
  name:string
4
4
  cvv :string
5
5
  expirationYear:string
@@ -0,0 +1,6 @@
1
+ export enum AccountLevelEnum {
2
+ LEVEL_1 = "1",
3
+ LEVEL_2 = "2",
4
+ LEVEL_3 = "3",
5
+ LEVEL_4 = "4",
6
+ }
@@ -21,3 +21,4 @@ export * from './entities/AccountEntityBase';
21
21
  export * from './enums/AccountEntityStatusEnum';
22
22
  export * from './enums/BankAccountTypeEnum';
23
23
  export * from './enums/UserEntityStatusEnum';
24
+ export * from './enums/AccountLevelEnum';