UNPKG

phx-react

Version:

PHX REACT

21 lines (20 loc) 614 B
export interface AuditLogRaw { created_at: string; message: string; } export interface AuditLogChild { created_at: string; description: string; } export interface AuditLogGroup { date: string; childs: AuditLogChild[]; } export declare const PHXUseAuditLog: (url: string, moduleCode: string) => { insertAuditLog: (message: string | Array<string>, action?: string, customMessage?: string | Array<string>) => Promise<void>; fetchAuditLogs: () => Promise<any>; dataAuditLog: AuditLogRaw[]; loadingFetch: boolean; loadingInsert: boolean; groupedLogs: AuditLogGroup[]; };