UNPKG

@szegedsw/lib-node

Version:

A little framework published by Szeged Software Zrt. in order to enhance api endpoint security and create reuseable code. Email module, Logging system, and much more. Further improvements are expected.

21 lines 656 B
import { Request } from "express"; import { Middleware } from "../interfaces/interfaces"; export interface IAuditLog { req: Request; sessionId: string; url: string; method: string; requestBody: Record<string, unknown>; status: number; responseBody: Record<string, unknown>; } export interface ISystemLog { req: Request; sessionId: string; url: string; method: string; type: string; msec: number; } export declare const systemAuditLog: (auditLogCb: (auditLog: IAuditLog) => Promise<void>, systemLogCb: (systemLog: ISystemLog) => Promise<void>) => Middleware; //# sourceMappingURL=system.audit.log.d.ts.map