Chimeway.Admin (chimeway v1.1.1)

Copy Markdown View Source

Admin-safe read models for operator UI surfaces.

This module returns small DTO maps instead of raw Ecto schemas so UI packages do not accidentally render payloads, render snapshots, provider responses, or other sensitive fields.

Summary

Functions

Returns compact command-center facts for the operator admin home.

Lists persisted notification definitions inferred from durable rows.

Lists per-recipient notification feed facts for operator debugging.

Returns outcome totals suitable for status cards.

Lists recent deliveries in problem terminal states.

Lists recoverable events and deliveries as redaction-ready DTOs.

Functions

command_center(opts \\ [])

@spec command_center(keyword()) :: map()

Returns compact command-center facts for the operator admin home.

definitions(opts \\ [])

@spec definitions(keyword()) :: [map()]

Lists persisted notification definitions inferred from durable rows.

Code-defined notifier registry/skew detection can be layered on later; this first pass is deliberately based on the local database source of truth.

feed(opts \\ [])

@spec feed(keyword()) :: [map()]

Lists per-recipient notification feed facts for operator debugging.

outcome_totals(opts \\ [])

@spec outcome_totals(keyword()) :: map()

Returns outcome totals suitable for status cards.

recent_problem_deliveries(opts \\ [])

@spec recent_problem_deliveries(keyword()) :: [map()]

Lists recent deliveries in problem terminal states.

recovery_candidates(opts \\ [])

@spec recovery_candidates(keyword()) :: [map()]

Lists recoverable events and deliveries as redaction-ready DTOs.