Commit d6efa2a
feat(data): add seed loader protocol with relationship resolution & dependency ordering
Add seed-loader.zod.ts with Zod schemas for:
- ReferenceResolutionSchema: field reference resolution via externalId
- ObjectDependencyNodeSchema/GraphSchema: topological sort for insert order
- ReferenceResolutionErrorSchema: actionable error reporting
- SeedLoaderConfigSchema: dry-run, multi-pass, batch, transaction config
- DatasetLoadResultSchema: per-object load statistics
- SeedLoaderResultSchema: complete load result with summary
- SeedLoaderRequestSchema: request combining datasets + config
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>1 parent 6404084 commit d6efa2a
3 files changed
Lines changed: 1010 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
| |||
0 commit comments