Skip to content

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 AuditQueryParams
  • export type AuditLogEntry
  • export interface AuditQueryResult
  • export interface AuditActorOption
  • export interface AuditFilterOptions
  • export class AdminService
  • export const adminService

Imports ​

  • ../../adapters/db
  • ../../config
  • ../../lib/errors
  • ../../lib/logger
  • ../../lib/pagination
  • ./admin.schema
  • @clerk/backend
  • @prisma/client

Imported by ​

Heritage Community Hub — Internal. Access restricted via Cloudflare Access + Entra ID.