Fix JSON circular reference serialization and use PayloadCMS generated types

- Replace duplicate type definitions with PayloadCMS generated types
- Fix workflow context serialization with safeSerialize() method
- Resolve type mismatches (id: string vs number)
- Update all imports to use PayloadWorkflow type
- Ensure workflow runs are created successfully without serialization errors

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-09-01 18:02:21 +02:00
parent 964b11c0c9
commit 6397250045
13 changed files with 477 additions and 75 deletions

View File

@@ -85,6 +85,7 @@
"react-dom": "19.1.0",
"rimraf": "3.0.2",
"sharp": "0.34.3",
"tsx": "^4.20.5",
"typescript": "5.7.3",
"vitest": "^3.1.2"
},