Skip to main content

Function: auditLogCsv()

auditLogCsv(companyId, opts?): Promise<{ csv: string; filename: string; }>

Defined in: src/server/services/audit.ts:127

Audit log as a downloadable CSV. Same window/limit semantics as listAuditLog. Columns: When, Action, Entity, Entity id, Actor, Detail (before→after plus the row's metadata).

Parameters

companyId

string

opts?

AuditListOpts

Returns

Promise<{ csv: string; filename: string; }>