feat: route user claims by branch and align licence issue dates

Require the damaged party in user flows to select an active insurer branch and preserve branch access rules. Accept older licence issue dates, correct anniversary boundaries, and update Fanavaran audit documentation and regression coverage.
This commit is contained in:
SepehrYahyaee
2026-11-14 12:24:14 +03:30
parent f021793b00
commit a15c54d017
28 changed files with 1403 additions and 42 deletions
@@ -125,7 +125,7 @@ export function toFanavaranHullBaseClaimPayload(
const next: Record<string, unknown> = {};
for (const key of FANAVARAN_HULL_BASE_CLAIM_KEYS) {
if (key === "IsLicenseReplaced") {
// Fanavaran conditional: >10y since issue → 1; else null (never 0).
// Preserve the server's conditional 0 / null / 1 mapping for licence age.
if (
Object.prototype.hasOwnProperty.call(built, key) &&
(built[key] === 1 || built[key] === 0 || built[key] === null)