resurgence-data 1.0.9 → 1.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,6 +30,11 @@ export declare class TwoFactorAuthRequestDTO {
30
30
  emailAddress: string;
31
31
  token: string;
32
32
  }
33
+ export declare class TwoFactorCreateDTO {
34
+ emailAddress: string;
35
+ token: string;
36
+ authenticationId: string;
37
+ }
33
38
  export declare class LoginResponseDTO {
34
39
  twoFactorEnabled: boolean;
35
40
  message?: string;
@@ -9,7 +9,7 @@ var __metadata = (this && this.__metadata) || function (k, v) {
9
9
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.LoginResponseDTO = exports.TwoFactorAuthRequestDTO = exports.UpdateAuthenticationDTO = exports.ActivationRequestDTO = exports.SendInviteDTO = exports.RecoverAccountDTO = exports.LoginRequestDTO = exports.SignUpDTO = void 0;
12
+ exports.LoginResponseDTO = exports.TwoFactorCreateDTO = exports.TwoFactorAuthRequestDTO = exports.UpdateAuthenticationDTO = exports.ActivationRequestDTO = exports.SendInviteDTO = exports.RecoverAccountDTO = exports.LoginRequestDTO = exports.SignUpDTO = void 0;
13
13
  const class_validator_1 = require("class-validator");
14
14
  const account_type_1 = require("../types/account.type");
15
15
  const custom_validation_1 = require("../validation/custom-validation");
@@ -99,6 +99,9 @@ __decorate([
99
99
  (0, class_validator_1.Length)(6, 6, { message: "Please enter a 6 character code" }),
100
100
  __metadata("design:type", String)
101
101
  ], TwoFactorAuthRequestDTO.prototype, "token", void 0);
102
+ class TwoFactorCreateDTO {
103
+ }
104
+ exports.TwoFactorCreateDTO = TwoFactorCreateDTO;
102
105
  class LoginResponseDTO {
103
106
  }
104
107
  exports.LoginResponseDTO = LoginResponseDTO;
package/package.json CHANGED
@@ -1,12 +1,19 @@
1
1
  {
2
2
  "name": "resurgence-data",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "DTOs and shareable resources",
5
+ "module": "dist/index.js",
5
6
  "main": "dist/index.js",
6
7
  "types": "dist/index.d.ts",
7
8
  "files": [
8
9
  "dist"
9
10
  ],
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/index.js",
14
+ "require": "./dist/index.js"
15
+ }
16
+ },
10
17
  "scripts": {
11
18
  "build": "tsc",
12
19
  "test": "jest"