Documentation Index
Fetch the complete documentation index at: https://grantmaster.dev/llms.txt
Use this file to discover all available pages before exploring further.
shared/audit
Central audit logging service. Every significant action in GrantMaster writes an audit trail entry via this module.Module Map
| File | Role |
|---|---|
auditService.ts | logAuditEvent(params) and queryAuditLogs(filters) |
Primary API
AuditLog Schema
AuditAction Enum
Key values (see the owning auth/shared contract modules for the full list):EXPENSE_APPROVED, EXPENSE_REJECTED, JOURNAL_APPROVED, JOURNAL_REJECTED, PROJECT_CREATED, PROJECT_ARCHIVED, ORG_SETTINGS_UPDATED, USER_INVITED, USER_DEACTIVATED, GRANT_WON, GRANT_LOST, COMPLIANCE_RULE_UPDATED
Firestore Collection
auditLogs/{logId} — ordered by timestamp desc. Queried with compound filters (organizationId, timestamp).
Callers
All approval and rejection workflows, settings changes, and entity lifecycle operations write to the audit log:features/admin→applyAdminApprovalActionfeatures/expenses→ approve/rejectfeatures/journals→ approve/rejectfeatures/settings→logSettingsAuditEventfeatures/superadmin→ platform operationsextensions/compliance-vault→AuditTrailService(separate compliance-specific audit trail)