8 error categories fixed across 11 files: - TenderStatus enum: added CANCELLED (real bug — order cancel crashed for tenders) - creatorId→createdById: 6 sites in copilot engagement tools (real bug — ownership checks always false) - Order.constructor Prisma 5 clash: removed select constraints in estimates+labor-report - Prisma Json null: DbNull for Json? fields, InputJsonValue for Record<string,unknown> - Anthropic SDK ContentBlock: TextBlock→TextBlockParam, ToolUseBlock→ToolUseBlockParam - Role[] vs Role: estimates.service approveFinancial+delete accept union type - ActionValueClass: string→enum in discharge-kpi CatalogEntry - SendEmailOptions: added required html field in claim-draft Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| migrations | ||
| seeds | ||
| sql | ||
| schema.prisma | ||