aeat.application.review._enums module

Closed enumerations for the unified review queue.

Defines the kind, severity, and state taxonomy used by every aeat.application.review.ReviewItem. Reserved --kind tokens are tracked in _RESERVED_KINDS and surfaced to callers via reserved_kind_reason().

class ReviewItemKind(*values)[source]

Bases: StrEnum

Stable identifier for the source of a review item.

The three members below cover every pending source emitted by the review queue. Additional parser tokens can be reserved without becoming emitted item kinds; reserved tokens are rejected with a ReviewKindReservedError that explains the accepted surface.

TRANSACTION
INVOICE
FINDING
class ReviewSeverity(*values)[source]

Bases: StrEnum

Editorial severity of a review item.

Severity is derived per-source by the adapter, not stored on the underlying record. The ranking is fixed: CRITICAL > HIGH > NORMAL > INFO.

CRITICAL
HIGH
NORMAL
INFO
severity_rank(severity)[source]

Return the numeric rank of severity (CRITICAL=3 .. INFO=0).

Return type:

int

Parameters:

severity (ReviewSeverity)

class ReviewState(*values)[source]

Bases: StrEnum

Filter state for the review queue CLI.

PENDING (default) returns only items that want the operator’s attention. ALL uses the same adapter output while every review adapter emits pending items.

PENDING
ALL
class ReviewFormat(*values)[source]

Bases: StrEnum

Output format for the review queue CLI.

TABLE
JSON
reserved_kind_reason(token)[source]

Return the blocking reason for a reserved token, or None.

Return type:

str | None

Parameters:

token (str)