resurgence-data 1.0.13 → 1.0.14

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.
@@ -18,3 +18,13 @@ export interface ResetPasswordEmailRequest {
18
18
  }
19
19
  export interface NewUserEmailRequest extends ResetPasswordEmailRequest {
20
20
  }
21
+ export interface UpdateAuthenticationModel {
22
+ id: string;
23
+ userId?: string;
24
+ password?: string | null;
25
+ token?: string | null;
26
+ tokenExpiry?: Date | null;
27
+ active?: boolean;
28
+ twoFactorEnabled?: boolean;
29
+ role?: string;
30
+ }
@@ -7,6 +7,7 @@ export interface InviteCreateModel {
7
7
  token: string;
8
8
  status?: string;
9
9
  role: string;
10
+ tokenExpiry?: Date;
10
11
  }
11
12
  export interface InviteUpdateModel extends InviteCreateModel {
12
13
  id: string;
package/dist/user/user.js CHANGED
@@ -23,6 +23,7 @@ __decorate([
23
23
  __metadata("design:type", String)
24
24
  ], CreateUserDTO.prototype, "lastName", void 0);
25
25
  __decorate([
26
+ (0, class_validator_1.IsEmail)(undefined, { message: "Please enter a valid email address" }),
26
27
  (0, class_validator_1.IsString)({ message: "Please enter a valid email address." }),
27
28
  __metadata("design:type", String)
28
29
  ], CreateUserDTO.prototype, "emailAddress", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resurgence-data",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "DTOs and shareable resources",
5
5
  "module": "dist/index.js",
6
6
  "main": "dist/index.js",