@turndown/library 0.0.29 → 0.0.31
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Authentication Types
|
|
3
3
|
* Request/Response types for authentication endpoints
|
|
4
4
|
*/
|
|
5
|
-
import { User, AccountType, DeviceInfo } from "../user";
|
|
5
|
+
import { User, AccountType, DeviceInfo, UserSafe } from "../user";
|
|
6
6
|
/**
|
|
7
7
|
* Token Payload
|
|
8
8
|
* JWT token payload structure
|
|
@@ -17,7 +17,7 @@ export interface TokenPayload {
|
|
|
17
17
|
* Standard structure for authentication responses with tokens
|
|
18
18
|
*/
|
|
19
19
|
export interface AuthTokenResponse {
|
|
20
|
-
user:
|
|
20
|
+
user: UserSafe;
|
|
21
21
|
accessToken: string;
|
|
22
22
|
refreshToken: string;
|
|
23
23
|
expiresAt: string;
|
|
@@ -3,8 +3,24 @@ export interface User extends MetaData {
|
|
|
3
3
|
id: string;
|
|
4
4
|
firstName: string;
|
|
5
5
|
lastName?: string | null;
|
|
6
|
+
mi?: string | null;
|
|
7
|
+
username?: string | null;
|
|
6
8
|
email: string;
|
|
9
|
+
profilePhoto: string | null;
|
|
10
|
+
passwordHash?: string;
|
|
11
|
+
signinAttempts?: number;
|
|
12
|
+
locked?: boolean;
|
|
13
|
+
passwordLastReset?: string;
|
|
14
|
+
passwordResetRequired?: boolean;
|
|
15
|
+
lastSignin?: string | null;
|
|
7
16
|
accountType: AccountType;
|
|
17
|
+
status: AccountStatus;
|
|
18
|
+
phoneNumber?: string | null;
|
|
19
|
+
phoneFormat?: string | null;
|
|
20
|
+
preferredLanguage?: Language;
|
|
21
|
+
biometrics?: string | null;
|
|
22
|
+
}
|
|
23
|
+
export interface UserSafe extends Omit<User, "passwordHash" | "signinAttempts" | "locked" | "biometrics"> {
|
|
8
24
|
}
|
|
9
25
|
export declare const ACCOUNT_TYPE: {
|
|
10
26
|
readonly TURNDOWN_ADMIN: "TURNDOWN_ADMIN";
|
|
@@ -15,6 +31,13 @@ export declare const ACCOUNT_TYPE: {
|
|
|
15
31
|
readonly GUEST: "GUEST";
|
|
16
32
|
};
|
|
17
33
|
export type AccountType = ObjectValues<typeof ACCOUNT_TYPE>;
|
|
34
|
+
export declare const ACCOUNT_STATUS: {
|
|
35
|
+
readonly ACTIVE: "ACTIVE";
|
|
36
|
+
readonly INACTIVE: "INACTIVE";
|
|
37
|
+
readonly SUSPENDED: "SUSPENDED";
|
|
38
|
+
readonly PENDING: "PENDING";
|
|
39
|
+
};
|
|
40
|
+
export type AccountStatus = ObjectValues<typeof ACCOUNT_STATUS>;
|
|
18
41
|
export declare const LANGUAGE: {
|
|
19
42
|
readonly ENGLISH: "ENGLISH";
|
|
20
43
|
readonly FRENCH: "FRENCH";
|
package/dist/types/user/index.js
CHANGED
|
@@ -6,6 +6,12 @@ export const ACCOUNT_TYPE = {
|
|
|
6
6
|
CLEANER: "CLEANER",
|
|
7
7
|
GUEST: "GUEST",
|
|
8
8
|
};
|
|
9
|
+
export const ACCOUNT_STATUS = {
|
|
10
|
+
ACTIVE: "ACTIVE",
|
|
11
|
+
INACTIVE: "INACTIVE",
|
|
12
|
+
SUSPENDED: "SUSPENDED",
|
|
13
|
+
PENDING: "PENDING",
|
|
14
|
+
};
|
|
9
15
|
export const LANGUAGE = {
|
|
10
16
|
ENGLISH: "ENGLISH",
|
|
11
17
|
FRENCH: "FRENCH",
|