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:
StrEnumStable 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
ReviewKindReservedErrorthat explains the accepted surface.- TRANSACTION¶
- INVOICE¶
- FINDING¶
- class ReviewSeverity(*values)[source]¶
Bases:
StrEnumEditorial 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:
- Parameters:
severity (ReviewSeverity)
- class ReviewState(*values)[source]¶
Bases:
StrEnumFilter state for the review queue CLI.
PENDING(default) returns only items that want the operator’s attention.ALLuses the same adapter output while every review adapter emits pending items.- PENDING¶
- ALL¶