@fiado/type-kit 1.5.2 → 1.5.4

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,7 +1,7 @@
1
1
  import { TypeOfDirectoryId } from "../../directory";
2
2
  export declare class SignUpRequest {
3
3
  username: string;
4
- password: string;
4
+ password?: string;
5
5
  directoryId: string;
6
6
  typeOfDirectoryId: TypeOfDirectoryId;
7
7
  }
@@ -22,7 +22,7 @@ __decorate([
22
22
  ], SignUpRequest.prototype, "username", void 0);
23
23
  __decorate([
24
24
  (0, class_validator_1.IsString)(),
25
- (0, class_validator_1.IsNotEmpty)(),
25
+ (0, class_validator_1.IsOptional)(),
26
26
  __metadata("design:type", String)
27
27
  ], SignUpRequest.prototype, "password", void 0);
28
28
  __decorate([
@@ -13,5 +13,6 @@ export declare enum TransactionProcessorCodesEnum {
13
13
  TRANSACTION_APPROVED = "TRANSACTION_APPROVED",
14
14
  CREDIT_MINIMAL_AMOUNT_ERROR = "CREDIT_MINIMAL_AMOUNT_ERROR",
15
15
  ACCOUNT_LEVEL_MAX_MONTHLY_AMOUNT_EXCEEDED = "ACCOUNT_LEVEL_MAX_MONTHLY_AMOUNT_EXCEEDED",
16
- ACCOUNT_LEVEL_MAX_AVAILABLE_BALANCE_EXCEEDED = "ACCOUNT_LEVEL_MAX_AVAILABLE_BALANCE_EXCEEDED"
16
+ ACCOUNT_LEVEL_MAX_AVAILABLE_BALANCE_EXCEEDED = "ACCOUNT_LEVEL_MAX_AVAILABLE_BALANCE_EXCEEDED",
17
+ OTP_REQUIRED = "OTP_REQUIRED"
17
18
  }
@@ -18,4 +18,5 @@ var TransactionProcessorCodesEnum;
18
18
  TransactionProcessorCodesEnum["CREDIT_MINIMAL_AMOUNT_ERROR"] = "CREDIT_MINIMAL_AMOUNT_ERROR";
19
19
  TransactionProcessorCodesEnum["ACCOUNT_LEVEL_MAX_MONTHLY_AMOUNT_EXCEEDED"] = "ACCOUNT_LEVEL_MAX_MONTHLY_AMOUNT_EXCEEDED";
20
20
  TransactionProcessorCodesEnum["ACCOUNT_LEVEL_MAX_AVAILABLE_BALANCE_EXCEEDED"] = "ACCOUNT_LEVEL_MAX_AVAILABLE_BALANCE_EXCEEDED";
21
+ TransactionProcessorCodesEnum["OTP_REQUIRED"] = "OTP_REQUIRED";
21
22
  })(TransactionProcessorCodesEnum || (exports.TransactionProcessorCodesEnum = TransactionProcessorCodesEnum = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "1.5.2",
3
+ "version": "1.5.4",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -1,4 +1,4 @@
1
- import { IsNotEmpty, IsString } from "class-validator"
1
+ import { IsNotEmpty, IsOptional, IsString } from "class-validator"
2
2
  import { TypeOfDirectoryId } from "../../directory"
3
3
 
4
4
 
@@ -10,8 +10,8 @@ export class SignUpRequest {
10
10
  username: string
11
11
 
12
12
  @IsString()
13
- @IsNotEmpty()
14
- password: string
13
+ @IsOptional()
14
+ password?: string
15
15
 
16
16
  @IsString()
17
17
  @IsNotEmpty()
@@ -14,4 +14,5 @@ export enum TransactionProcessorCodesEnum {
14
14
  CREDIT_MINIMAL_AMOUNT_ERROR = "CREDIT_MINIMAL_AMOUNT_ERROR",
15
15
  ACCOUNT_LEVEL_MAX_MONTHLY_AMOUNT_EXCEEDED = "ACCOUNT_LEVEL_MAX_MONTHLY_AMOUNT_EXCEEDED",
16
16
  ACCOUNT_LEVEL_MAX_AVAILABLE_BALANCE_EXCEEDED = "ACCOUNT_LEVEL_MAX_AVAILABLE_BALANCE_EXCEEDED",
17
+ OTP_REQUIRED = "OTP_REQUIRED"
17
18
  }