@turndown/library 0.1.9 → 0.1.16

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 { AuthTokenResponse } from "..";
2
2
  import { AccountType, DeviceInfo } from "../user";
3
3
  import { GetUserResponse } from "../user/routes";
4
- export interface SignupRequest {
4
+ export interface RegisterRequest {
5
5
  email: string;
6
6
  password: string;
7
7
  firstName: string;
@@ -9,14 +9,14 @@ export interface SignupRequest {
9
9
  accountType: AccountType;
10
10
  deviceInfo?: DeviceInfo;
11
11
  }
12
- export interface SignupResponse extends AuthTokenResponse {
12
+ export interface RegisterResponse extends AuthTokenResponse {
13
13
  }
14
- export interface SigninRequest {
14
+ export interface LoginRequest {
15
15
  email: string;
16
16
  password: string;
17
17
  deviceInfo?: DeviceInfo;
18
18
  }
19
- export interface SigninResponse extends AuthTokenResponse {
19
+ export interface LoginResponse extends AuthTokenResponse {
20
20
  passwordResetRequired?: boolean;
21
21
  }
22
22
  export interface RefreshRequest {
@@ -25,16 +25,16 @@ export interface RefreshRequest {
25
25
  }
26
26
  export interface RefreshResponse extends AuthTokenResponse {
27
27
  }
28
- export interface SignoutRequest {
28
+ export interface LogoutRequest {
29
29
  refreshToken: string;
30
30
  }
31
- export interface SignoutResponse {
31
+ export interface LogoutResponse {
32
32
  message: string;
33
33
  }
34
- export interface SignoutAllRequest {
34
+ export interface LogoutAllRequest {
35
35
  userId: string;
36
36
  }
37
- export interface SignoutAllResponse {
37
+ export interface LogoutAllResponse {
38
38
  message: string;
39
39
  }
40
40
  export interface GetMeRequest {
@@ -67,9 +67,9 @@ export interface ForgotPasswordRequest {
67
67
  export interface ForgotPasswordResponse {
68
68
  message: string;
69
69
  }
70
- export interface GetSignInHistoryRequest {
70
+ export interface GetLoginHistoryRequest {
71
71
  }
72
- export interface GetSignInHistoryResponse {
72
+ export interface GetLoginHistoryResponse {
73
73
  id: string;
74
74
  email: string;
75
75
  ipAddress: string;
@@ -91,14 +91,14 @@ export interface ValidateInvitationResponse {
91
91
  expiresAt: string;
92
92
  userExists: boolean;
93
93
  }
94
- export interface SignupWithInvitationRequest {
94
+ export interface RegisterWithInvitationRequest {
95
95
  token: string;
96
96
  password: string;
97
97
  firstName: string;
98
98
  lastName?: string;
99
99
  deviceInfo?: DeviceInfo;
100
100
  }
101
- export interface SignupWithInvitationResponse extends AuthTokenResponse {
101
+ export interface RegisterWithInvitationResponse extends AuthTokenResponse {
102
102
  }
103
103
  export interface AcceptInvitationRequest {
104
104
  userId: string;
@@ -9,11 +9,11 @@ export interface User extends MetaData {
9
9
  email: string;
10
10
  profilePhoto?: string;
11
11
  passwordHash?: string;
12
- signinAttempts?: number;
12
+ loginAttempts?: number;
13
13
  locked?: boolean;
14
14
  passwordLastReset?: string;
15
15
  passwordResetRequired?: boolean;
16
- lastSignin?: string;
16
+ lastLogin?: string;
17
17
  accountType: AccountType;
18
18
  status: AccountStatus;
19
19
  phoneNumber?: string;
@@ -22,7 +22,7 @@ export interface User extends MetaData {
22
22
  companyId?: string;
23
23
  biometrics?: string;
24
24
  }
25
- export interface UserSafe extends Omit<User, "passwordHash" | "signinAttempts" | "biometrics"> {
25
+ export interface UserSafe extends Omit<User, "passwordHash" | "loginAttempts" | "biometrics"> {
26
26
  }
27
27
  export declare const ACCOUNT_TYPE: {
28
28
  readonly TURNDOWN_ADMIN: "TURNDOWN_ADMIN";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turndown/library",
3
- "version": "0.1.9",
3
+ "version": "0.1.16",
4
4
  "description": "Shared TypeScript library for the Turndown suite.",
5
5
  "keywords": [
6
6
  "types",