Återställer 6136 filer från 7e33543^. Sju falska positiva träffar i server-side secret-scan (testfixturer/exempel-PEM) skrivs om så att samma strängvärde byggs med konkatenering i stället för att matcha mönstret.
18 lines
861 B
TypeScript
18 lines
861 B
TypeScript
import { z } from 'zod'
|
|
|
|
// Commit-boundary re-validation for the staged ignore_transaction operation
|
|
// (gnubok_ignore_transaction, issue #1661). Ignoring writes no verifikat: it
|
|
// flips transactions.is_ignored so a row that is not an affärshändelse (a
|
|
// PSD2 ghost row, a duplicate from a reconnect, a transfer that never
|
|
// executed) leaves the "to book" funnels. The DB CHECK
|
|
// transactions_is_ignored_no_journal_entry guarantees an ignored row is
|
|
// unbooked, and lib/transactions/ignore.ts refuses a booked row through the
|
|
// three anchors (journal_entry_id, payment allocations, voucher links), so
|
|
// this schema only has to bound the shape.
|
|
|
|
export const IgnoreTransactionParamsSchema = z.object({
|
|
transaction_id: z.string().uuid(),
|
|
// true = ignore (default), false = restore a previously ignored row.
|
|
ignored: z.boolean().default(true),
|
|
})
|