feat(api): expose demand pipeline explainability

This commit is contained in:
2026-03-31 23:24:14 +02:00
parent 92e94f43a7
commit fc12a5739e
4 changed files with 57 additions and 1 deletions
@@ -202,7 +202,16 @@ describe("dashboard procedure support", () => {
requiredFTEs: 3,
resourceCount: 1,
allocatedHours: 80,
derivation: { calendarLocations: [{ countryCode: "DE", countryName: "Germany" }] },
derivation: {
periodStart: "2026-03-01",
periodEnd: "2026-06-30",
periodWorkingHoursBase: 672,
requiredHours: 2016,
requiredFTEs: 3,
fillPct: 40,
demandSource: "DEMAND_REQUIREMENTS",
calendarLocations: [{ countryCode: "DE", countryName: "Germany" }],
},
},
]);
@@ -251,6 +260,15 @@ describe("dashboard procedure support", () => {
allocatedResources: 1,
allocatedHours: 80,
calendarLocations: [{ countryCode: "DE", countryName: "Germany" }],
explainability: {
periodStart: "2026-03-01",
periodEnd: "2026-06-30",
periodWorkingHoursBase: 672,
requiredHours: 2016,
fillPct: 40,
demandSource: "DEMAND_REQUIREMENTS",
calendarContextCount: 1,
},
},
],
chargeabilityByChapter: [