@fiado/type-kit 1.8.83 → 1.8.85

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,3 +1,6 @@
1
+ import { PocketOperationTypeEnum } from "../enums/PocketOperationTypeEnum";
1
2
  export declare class ExecutePocketOperationRequest {
2
3
  amount: number;
4
+ isPreAuth?: boolean;
5
+ operationType: PocketOperationTypeEnum;
3
6
  }
@@ -11,6 +11,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ExecutePocketOperationRequest = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
+ const PocketOperationTypeEnum_1 = require("../enums/PocketOperationTypeEnum");
14
15
  class ExecutePocketOperationRequest {
15
16
  }
16
17
  exports.ExecutePocketOperationRequest = ExecutePocketOperationRequest;
@@ -18,3 +19,12 @@ __decorate([
18
19
  (0, class_validator_1.IsNumber)(),
19
20
  __metadata("design:type", Number)
20
21
  ], ExecutePocketOperationRequest.prototype, "amount", void 0);
22
+ __decorate([
23
+ (0, class_validator_1.IsBoolean)(),
24
+ (0, class_validator_1.IsOptional)(),
25
+ __metadata("design:type", Boolean)
26
+ ], ExecutePocketOperationRequest.prototype, "isPreAuth", void 0);
27
+ __decorate([
28
+ (0, class_validator_1.IsEnum)(PocketOperationTypeEnum_1.PocketOperationTypeEnum),
29
+ __metadata("design:type", String)
30
+ ], ExecutePocketOperationRequest.prototype, "operationType", void 0);
@@ -0,0 +1,6 @@
1
+ export declare enum PocketOperationTypeEnum {
2
+ PRE_AUTH = "PRE_AUTH",
3
+ COLLECTOR = "COLLECTOR",
4
+ ACCOUNT_TO_POCKET = "ACCOUNT_TO_POCKET",
5
+ POCKET_TO_ACCOUNT = "POCKET_TO_ACCOUNT"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PocketOperationTypeEnum = void 0;
4
+ var PocketOperationTypeEnum;
5
+ (function (PocketOperationTypeEnum) {
6
+ PocketOperationTypeEnum["PRE_AUTH"] = "PRE_AUTH";
7
+ PocketOperationTypeEnum["COLLECTOR"] = "COLLECTOR";
8
+ PocketOperationTypeEnum["ACCOUNT_TO_POCKET"] = "ACCOUNT_TO_POCKET";
9
+ PocketOperationTypeEnum["POCKET_TO_ACCOUNT"] = "POCKET_TO_ACCOUNT";
10
+ })(PocketOperationTypeEnum || (exports.PocketOperationTypeEnum = PocketOperationTypeEnum = {}));
@@ -45,3 +45,4 @@ export * from './enums/AccountLevelEnum';
45
45
  export * from './enums/BankAccountP2pTransferType';
46
46
  export * from './enums/SpeiTransferStatusEnum';
47
47
  export * from './enums/CreateBankAccountUserStatusEnum';
48
+ export * from './enums/PocketOperationTypeEnum';
@@ -64,3 +64,4 @@ __exportStar(require("./enums/AccountLevelEnum"), exports);
64
64
  __exportStar(require("./enums/BankAccountP2pTransferType"), exports);
65
65
  __exportStar(require("./enums/SpeiTransferStatusEnum"), exports);
66
66
  __exportStar(require("./enums/CreateBankAccountUserStatusEnum"), exports);
67
+ __exportStar(require("./enums/PocketOperationTypeEnum"), exports);
@@ -18,4 +18,5 @@ export declare class IdentificationDocument {
18
18
  verificationId: string | null;
19
19
  curp: string | null;
20
20
  status: IdentificationDocumentStatus;
21
+ state?: string | null;
21
22
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.8.83",
3
+ "version": "1.8.85",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -1,6 +1,14 @@
1
- import {IsNumber} from "class-validator";
1
+ import { IsBoolean, IsEnum, IsNumber, IsOptional } from "class-validator";
2
+ import { PocketOperationTypeEnum } from "../enums/PocketOperationTypeEnum";
2
3
 
3
4
  export class ExecutePocketOperationRequest {
4
5
  @IsNumber()
5
6
  amount: number;
7
+
8
+ @IsBoolean()
9
+ @IsOptional()
10
+ isPreAuth?: boolean;
11
+
12
+ @IsEnum(PocketOperationTypeEnum)
13
+ operationType: PocketOperationTypeEnum;
6
14
  }
@@ -0,0 +1,7 @@
1
+ export enum PocketOperationTypeEnum {
2
+ PRE_AUTH = 'PRE_AUTH',
3
+ COLLECTOR = 'COLLECTOR',
4
+ ACCOUNT_TO_POCKET = 'ACCOUNT_TO_POCKET',
5
+ POCKET_TO_ACCOUNT = 'POCKET_TO_ACCOUNT',
6
+ }
7
+
@@ -51,4 +51,5 @@ export * from './enums/AccountLevelEnum';
51
51
  export * from './enums/BankAccountP2pTransferType';
52
52
  export * from './enums/SpeiTransferStatusEnum';
53
53
  export * from './enums/CreateBankAccountUserStatusEnum';
54
+ export * from './enums/PocketOperationTypeEnum';
54
55
 
@@ -20,4 +20,5 @@ export class IdentificationDocument {
20
20
  verificationId: string | null;
21
21
  curp: string | null;
22
22
  status: IdentificationDocumentStatus;
23
+ state?: string | null;
23
24
  }