grm-shared-library 1.0.224 → 1.0.225

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,4 +1,5 @@
1
+ import { OtpAction } from "../enums/otp-action";
1
2
  export declare class ResendOTPDto {
2
- action: string;
3
+ action: OtpAction;
3
4
  verificationToken: string;
4
5
  }
@@ -11,11 +11,12 @@ var __metadata = (this && this.__metadata) || function (k, v) {
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.ResendOTPDto = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
+ const otp_action_1 = require("../enums/otp-action");
14
15
  class ResendOTPDto {
15
16
  }
16
17
  exports.ResendOTPDto = ResendOTPDto;
17
18
  __decorate([
18
- (0, class_validator_1.IsString)(),
19
+ (0, class_validator_1.IsEnum)(otp_action_1.OtpAction),
19
20
  (0, class_validator_1.IsNotEmpty)(),
20
21
  __metadata("design:type", String)
21
22
  ], ResendOTPDto.prototype, "action", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "grm-shared-library",
3
- "version": "1.0.224",
3
+ "version": "1.0.225",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [