grm-shared-library 1.0.224 → 1.0.226

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);
@@ -6,3 +6,5 @@ export * from './dtos/forgot-password.dto';
6
6
  export * from './dtos/verify-otp.dto';
7
7
  export * from './dtos/resend-otp.dto';
8
8
  export * from './dtos/refresh-token.dto';
9
+ export * from './interfaces/register-response';
10
+ export * from './interfaces/login-response';
@@ -14,6 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ // dtos
17
18
  __exportStar(require("./dtos/register.dto"), exports);
18
19
  __exportStar(require("./dtos/login.dto"), exports);
19
20
  __exportStar(require("./dtos/reset-password.dto"), exports);
@@ -22,3 +23,6 @@ __exportStar(require("./dtos/forgot-password.dto"), exports);
22
23
  __exportStar(require("./dtos/verify-otp.dto"), exports);
23
24
  __exportStar(require("./dtos/resend-otp.dto"), exports);
24
25
  __exportStar(require("./dtos/refresh-token.dto"), exports);
26
+ // Interfaces
27
+ __exportStar(require("./interfaces/register-response"), exports);
28
+ __exportStar(require("./interfaces/login-response"), exports);
@@ -0,0 +1,5 @@
1
+ import { User } from "../../user";
2
+ export interface LoginResponse {
3
+ accessToken: string;
4
+ user: User;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface RegisterResponse {
2
+ verificationToken: string;
3
+ action: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
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.226",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "files": [