Appearance
apps/api/src/features/admin/admin.service.ts ​
Auto-generated by
scripts/generate-file-docs.ts. Do not edit — overwritten on every run.
Purpose ​
AdminService — Section 11 of the API contracts (Admin & Ministry Portal, ADR 0021). Provides: - audit log read access - role and status assignment - per-author communications scope CRUD (ADR 0023) Role assignment to COMMS_AUTHOR is forbidden through this endpoint per the task brief — that role is provisioned through a separate scope-assignment flow and must include an explicit scope row before any draft can be saved. /
Exports ​
export interface AuditQueryParamsexport type AuditLogEntryexport interface AuditQueryResultexport interface AuditActorOptionexport interface AuditFilterOptionsexport class AdminServiceexport const adminService
Imports ​
../../adapters/db../../config../../lib/errors../../lib/logger../../lib/pagination./admin.schema@clerk/backend@prisma/client