/** * @description type for system logs * @typedef {string} log_type * @property {string} log_type - type of log, can be 'TRACE', 'SECURITY', 'APPLICATION_ERROR' * 'TRACE' - for general tracing of actions like login, logout, page access, * 'SECURITY' - for security related events like unauthorized access, password reset, etc. * 'APPLICATION_ERROR' - for application errors LIKE database connection failure, email service failure, internal server errors */ export type log_type = 'TRACE' | 'SECURITY' | 'APPLICATION_ERROR'; /** * @description type for diagnostic codes * @typedef {string} diagnostic_code * @property {string} diagnostic_code - code for specific application errors, e.g., 'APPLICATION_ERROR_500' * to understand falure type read statusCode from type.helper.ts */ export type diagnostic_code = "APPLICATION_ERR_200" | "APPLICATION_ERR_500" | "APPLICATION_ERR_201" | "APPLICATION_ERR_401" | "APPLICATION_ERR_400" | "APPLICATION_ERR_427" | "APPLICATION_ERR_783" | "APPLICATION_ERR_430" | "APPLICATION_ERR_449" | "APPLICATION_ERR_419" | "APPLICATION_ERR_403" | "APPLICATION_ERR_404" | "APPLICATION_ERR_409"; declare class ICoreSylog { _id?: string; sylog_id_user?: string | null; sylog_id_logses?: string | null; sylog_log_type?: log_type; sylog_action?: string; sylog_id_sypg?: string; sylog_security_event?: string; sylog_previous_data?: object; sylog_updated_data?: object; sylog_diagnostic_code?: diagnostic_code; sylog_ip_address?: string; sylog_message?: string; sylog_timestamp?: Date; sylog_method?: string; sylog_route?: string; sylog_request?: object; sylog_monitor_type?: string; sylog_monitor_value?: number; sylog_config_data?: object; sylog_isactive?: boolean; } export { ICoreSylog };