@turndown/library 0.0.30 → 0.0.32
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,7 +3,7 @@ export type TurndownObject<T = GenericTurndownObject> = Record<string, T> | T |
|
|
|
3
3
|
export type ObjectValues<T> = T[keyof T];
|
|
4
4
|
export type ObjectKeys<T> = [keyof T];
|
|
5
5
|
export interface MetaData {
|
|
6
|
-
companyId
|
|
6
|
+
companyId?: string;
|
|
7
7
|
deleted: boolean;
|
|
8
8
|
updatedBy: string;
|
|
9
9
|
createdBy: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export interface User
|
|
1
|
+
import { ObjectValues } from "@/types";
|
|
2
|
+
export interface User {
|
|
3
3
|
id: string;
|
|
4
4
|
firstName: string;
|
|
5
5
|
lastName?: string | null;
|
|
@@ -18,8 +18,14 @@ export interface User extends MetaData {
|
|
|
18
18
|
phoneNumber?: string | null;
|
|
19
19
|
phoneFormat?: string | null;
|
|
20
20
|
preferredLanguage?: Language;
|
|
21
|
+
companyId?: string;
|
|
22
|
+
deleted: boolean;
|
|
23
|
+
createdAt: Date;
|
|
24
|
+
updatedAt: Date;
|
|
21
25
|
biometrics?: string | null;
|
|
22
26
|
}
|
|
27
|
+
export interface UserSafe extends Omit<User, "passwordHash" | "signinAttempts" | "locked" | "biometrics"> {
|
|
28
|
+
}
|
|
23
29
|
export declare const ACCOUNT_TYPE: {
|
|
24
30
|
readonly TURNDOWN_ADMIN: "TURNDOWN_ADMIN";
|
|
25
31
|
readonly OWNER: "OWNER";
|