All files / src/controllers/types userController.types.ts

100% Statements 5/5
100% Branches 2/2
100% Functions 1/1
100% Lines 2/2

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21                              1x 1x        
 
// User controller
export interface changePasswordType {oldPassword: string, confirmPassword: string, password: string}
export interface signupUserForm {leadAssigned?: boolean, closeAgentUID?: string, UID?: string, image?: string, name?: string, roleId?: string, email?: string, password?: string, isUser?: boolean}
export interface passwordConfirmPassword {password: string, confirmPassword?: string}
export type Credentials = {
  email: string;
  password: string;
  confirmPassword?: string
  oldPassword?: string
}
 
 
export type userObjectTypes = {UID?: string, name: string, email: string, image: string, phone: any, roleId: string, password?: string, closeAgentUID: string, leadAssigned: boolean, isVerified: boolean}
 
export enum roleTypes {
  "Admin", "Customer", "Consultant", "Registrar"
}
 
export interface currentUserType {UID: string, name: string, email: string, image: string, phone: any, roleId: string, password?: string, closeAgentUID: string, leadAssigned: boolean, isVerified: boolean, role: {roleType: string, UID: string}}