@fiado/type-kit 1.2.24 → 1.2.25

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,11 @@
1
+ import { AccountEntityStatusEnum } from "../enums/AccountEntityStatusEnum";
2
+ import { AccountLevelEnum } from "../enums/AccountLevelEnum";
3
+ export declare class AccountUpdateRequest {
4
+ status: AccountEntityStatusEnum;
5
+ accountLevel: AccountLevelEnum;
6
+ externalAccountId: string;
7
+ isPrincipal: boolean;
8
+ isHost: boolean;
9
+ accountNumber: string;
10
+ routingNumber: string;
11
+ }
@@ -0,0 +1,53 @@
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.AccountUpdateRequest = void 0;
13
+ const class_validator_1 = require("class-validator");
14
+ const AccountEntityStatusEnum_1 = require("../enums/AccountEntityStatusEnum");
15
+ const AccountLevelEnum_1 = require("../enums/AccountLevelEnum");
16
+ class AccountUpdateRequest {
17
+ }
18
+ exports.AccountUpdateRequest = AccountUpdateRequest;
19
+ __decorate([
20
+ (0, class_validator_1.IsOptional)(),
21
+ (0, class_validator_1.IsEnum)(AccountEntityStatusEnum_1.AccountEntityStatusEnum),
22
+ __metadata("design:type", String)
23
+ ], AccountUpdateRequest.prototype, "status", void 0);
24
+ __decorate([
25
+ (0, class_validator_1.IsOptional)(),
26
+ (0, class_validator_1.IsEnum)(AccountLevelEnum_1.AccountLevelEnum),
27
+ __metadata("design:type", String)
28
+ ], AccountUpdateRequest.prototype, "accountLevel", void 0);
29
+ __decorate([
30
+ (0, class_validator_1.IsOptional)(),
31
+ (0, class_validator_1.IsString)(),
32
+ __metadata("design:type", String)
33
+ ], AccountUpdateRequest.prototype, "externalAccountId", void 0);
34
+ __decorate([
35
+ (0, class_validator_1.IsOptional)(),
36
+ (0, class_validator_1.IsBoolean)(),
37
+ __metadata("design:type", Boolean)
38
+ ], AccountUpdateRequest.prototype, "isPrincipal", void 0);
39
+ __decorate([
40
+ (0, class_validator_1.IsOptional)(),
41
+ (0, class_validator_1.IsBoolean)(),
42
+ __metadata("design:type", Boolean)
43
+ ], AccountUpdateRequest.prototype, "isHost", void 0);
44
+ __decorate([
45
+ (0, class_validator_1.IsOptional)(),
46
+ (0, class_validator_1.IsString)(),
47
+ __metadata("design:type", String)
48
+ ], AccountUpdateRequest.prototype, "accountNumber", void 0);
49
+ __decorate([
50
+ (0, class_validator_1.IsOptional)(),
51
+ (0, class_validator_1.IsString)(),
52
+ __metadata("design:type", String)
53
+ ], AccountUpdateRequest.prototype, "routingNumber", void 0);
@@ -26,6 +26,7 @@ export * from './dtos/UpdateBalanceOperation';
26
26
  export * from './dtos/BankAccountP2pTransferRequest';
27
27
  export * from './dtos/ExecutePocketOperationRequest';
28
28
  export * from './dtos/ExecuteP2pOperationRequest';
29
+ export * from './dtos/AccountUpdateRequest';
29
30
  export * from './entities/AccountEntityBase';
30
31
  export * from './enums/AccountEntityStatusEnum';
31
32
  export * from './enums/BankAccountTypeEnum';
@@ -43,6 +43,7 @@ __exportStar(require("./dtos/UpdateBalanceOperation"), exports);
43
43
  __exportStar(require("./dtos/BankAccountP2pTransferRequest"), exports);
44
44
  __exportStar(require("./dtos/ExecutePocketOperationRequest"), exports);
45
45
  __exportStar(require("./dtos/ExecuteP2pOperationRequest"), exports);
46
+ __exportStar(require("./dtos/AccountUpdateRequest"), exports);
46
47
  //Entities
47
48
  __exportStar(require("./entities/AccountEntityBase"), exports);
48
49
  //Enums
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.2.24",
3
+ "version": "1.2.25",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -0,0 +1,37 @@
1
+ import { IsBoolean, IsEnum, IsOptional, IsString } from "class-validator";
2
+ import { AccountEntityStatusEnum } from "../enums/AccountEntityStatusEnum";
3
+ import { AccountLevelEnum } from "../enums/AccountLevelEnum";
4
+
5
+
6
+
7
+ export class AccountUpdateRequest {
8
+
9
+ @IsOptional()
10
+ @IsEnum(AccountEntityStatusEnum)
11
+ status: AccountEntityStatusEnum;
12
+
13
+ @IsOptional()
14
+ @IsEnum(AccountLevelEnum)
15
+ accountLevel:AccountLevelEnum;
16
+
17
+ @IsOptional()
18
+ @IsString()
19
+ externalAccountId: string;
20
+
21
+ @IsOptional()
22
+ @IsBoolean()
23
+ isPrincipal: boolean;
24
+
25
+ @IsOptional()
26
+ @IsBoolean()
27
+ isHost: boolean;
28
+
29
+ @IsOptional()
30
+ @IsString()
31
+ accountNumber: string;
32
+
33
+ @IsOptional()
34
+ @IsString()
35
+ routingNumber: string;
36
+
37
+ }
@@ -28,6 +28,7 @@ export * from './dtos/UpdateBalanceOperation';
28
28
  export * from './dtos/BankAccountP2pTransferRequest';
29
29
  export * from './dtos/ExecutePocketOperationRequest';
30
30
  export * from './dtos/ExecuteP2pOperationRequest';
31
+ export * from './dtos/AccountUpdateRequest';
31
32
 
32
33
  //Entities
33
34
  export * from './entities/AccountEntityBase';