Workflow-App/Workflow/app/api
sjcoetzeesj-coder 21db4d0e64 fix: resolve all 7 type errors that broke the production build
next build runs 'Linting and checking validity of types' and fails on
the first type error, so the Coolify image build died at
app/api/cipc/search/route.ts:640. These errors were pre-existing but
only surface on next build (npm run dev does not type check).

- cipc/search/route.ts: coerce spawnSync stdout/stderr with toString();
  result is typed as the un-overloaded return, so they are string|Buffer
- group-report pdf+email: use fetchCollection<YsterbaardGroup> instead of
  an invalid cast; normalise description null -> undefined for ReportData
- CipcExplorer (cipc + cipc-2): split the state ternary into two returns;
  the RowState union correlates state with differs, so 'diff' | 'match'
  matched neither variant
- ComplianceTreeGrid: ar_non_compliance_date is optional; the API omits it
  and this component never reads it

Verified: tsc --noEmit 0 errors, next build exit 0, standalone output ok.
2026-10-18 15:48:50 +02:00
..
appointments feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
bizportal/search feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
bizportal-2 feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
cipc fix: resolve all 7 type errors that broke the production build 2026-10-18 15:48:50 +02:00
companies/list feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
compliance feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
directors/list feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
documents feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
group-report/[id] fix: resolve all 7 type errors that broke the production build 2026-10-18 15:48:50 +02:00
mail-health feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
notes feat(notes): add PATCH + DELETE /api/notes/[id] handlers 2026-09-16 14:30:46 +02:00
onboarding feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
pb/records feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
register feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
report/[type]/[id] feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
resignations feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
resolutions feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
sars-login/run feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
sars-returns feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
shareholder-changes feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00
tasks feat: commit Workflow app source; move CIPC credentials to env 2026-10-18 15:21:45 +02:00