feat(parsers+api+ui+db): 999 ACK transaction set end-to-end (SP3 P3)

This commit is contained in:
Tyler
2026-06-20 08:03:37 -06:00
parent 7a20f732f2
commit fb2a98fc7a
24 changed files with 2618 additions and 1 deletions
+21
View File
@@ -397,3 +397,24 @@ export interface MatchResponse {
claim: UnmatchedClaim;
match: { id: number; strategy: "auto" | "manual" };
}
// ---------------------------------------------------------------------------
// 999 ACKs (SP3 P3 T16)
// Mirrors the `acks` table (cyclone.db.Ack) and the `/api/acks` response.
// ---------------------------------------------------------------------------
/**
* One persisted 999 ACK row, camelCased for the UI. The backend
* (snake_case) is re-shaped in `src/hooks/useAcks.ts` via the
* `mapAck` helper, so this interface matches what the page actually
* consumes.
*/
export interface Ack {
id: number;
sourceBatchId: string;
acceptedCount: number;
rejectedCount: number;
receivedCount: number;
ackCode: "A" | "E" | "R" | "P";
parsedAt: string;
}