UNPKG

@indicafix/types

Version:

useful package for type sharing in different services.

27 lines (26 loc) 658 B
import { commonUser, UserStatus } from "./common-user"; export interface User extends commonUser { createdAt: Date; updatedAt: Date; companyId: string; password: string; sessions: Session[]; lastSession: Session; resetPasswordAccessToken: string; resetPasswordExpiresIn: Date; emailVerifiedAt: Date; emailVerified: boolean; topics: string[]; challenges: string[]; twoFactorAuthentication: boolean; blockedPaths: string[]; status: UserStatus; } export declare type Session = { id: string; accessToken: string; ip: string; createdAt: Date; updatedAt: Date; device: string; };