import { EmployeeTypeEnum } from "../../enums/employee-type.enum"; import { ISAPEmployeeCeco, ISAPEmployeeDepartment, ISAPEmployeeDirection, ISAPEmployeeFunction, ISAPEmployeeManagement, ISAPEmployeePosition } from '../sap/employee.interface'; import { IApplicationModel } from "./application.interface"; import { ISAPEmployeeClassification, ISAPEmployeeRoom } from '../sap/employee.interface'; export interface IJwtPayload { _id: string; username: string; userdomain: string; usersap: string; email: string; phone: string; image: string; firstname: string; lastname: string; type: EmployeeTypeEnum; apps: string[]; roles: string[]; menus: string[]; actions: string[]; rooms: string[]; active: boolean; birthdate?: Date; class?: ISAPEmployeeClassification; room?: ISAPEmployeeRoom; department?: ISAPEmployeeDepartment; management?: ISAPEmployeeManagement; direction?: ISAPEmployeeDirection; position?: ISAPEmployeePosition; function?: ISAPEmployeeFunction; ceco?: ISAPEmployeeCeco; iss?: string; exp?: number; } export interface IOAuth { clients?: { client?: IApplicationModel; secret?: IApplicationModel; }; user?: IJwtPayload; accessToken?: string; expiresAt?: number; }