import { BaseObject } from '../Basic/baseObject'; /** One successful login (dbo.UserLoginInfo), as returned by api/Authentication/getUserAuditTrail. */ export class UserLogInInfo extends BaseObject { userID: number; loginTime: Date; logoutTime?: Date; logoutType?: number; pcNumber: string; ipAddress: string; /** Mobile / tab device id; null for a browser login. */ deviceId: string; loginID: string; userName: string; constructor() { super(); this.userID = 0; this.loginTime = undefined; this.logoutTime = undefined; this.logoutType = undefined; this.pcNumber = ''; this.ipAddress = ''; this.deviceId = ''; this.loginID = ''; this.userName = ''; } } /** One failed login (dbo.BadLoginAttemptInfo), as returned by api/Authentication/getBadLoginAuditTrail. */ export class BadLoginAttemptInfo extends BaseObject { userID: number; attemptTime: Date; pcNumber: string; ipAddress: string; /** Mobile / tab device id; null for a browser login. */ deviceId: string; loginID: string; userName: string; constructor() { super(); this.userID = 0; this.attemptTime = undefined; this.pcNumber = ''; this.ipAddress = ''; this.deviceId = ''; this.loginID = ''; this.userName = ''; } } /** Which change history the System Audit Log page asks for (HRM.BO EnumSystemAuditHistory). */ export enum EnumSystemAuditHistory { Role = 1, RolePermission = 2, User = 3, UserRole = 4, UserAccessType = 5 } /** One row of a page's change history (Z_ table), as returned by api/Authentication/getSystemAuditHistory. */ export interface SystemAuditHistory { auditType: string; auditDate: Date; loginID: string; name: string; code: string; userType: string; roleName: string; roleType: string; menuKey: string; menuName: string; accessType: string; activities: string; actionBy: number; actionByLoginID: string; actionByName: string; }