What
getSolarData and getSatelliteData return timestamp fields, but IotInput does not include them. TypeScript allows this due to structural typing, but the interface is incomplete.
Why
If scoring logic ever needs to consider data freshness (staleness check), the timestamp is silently discarded.
Scope
- Add
timestamp to IotInput interface
- Use in scoring logic if needed (e.g., staleness check)
- OR: Document that timestamps are intentionally excluded
Acceptance Criteria
Technical Context
src/lib/scoring.ts:1-4 — IotInput interface
src/routes/iot.ts:20,32 — timestamp in return values
src/__tests__/scoring.test.ts — test fixtures don't include timestamps
What
getSolarDataandgetSatelliteDatareturntimestampfields, butIotInputdoes not include them. TypeScript allows this due to structural typing, but the interface is incomplete.Why
If scoring logic ever needs to consider data freshness (staleness check), the timestamp is silently discarded.
Scope
timestamptoIotInputinterfaceAcceptance Criteria
IotInputinterface includestimestampfieldTechnical Context
src/lib/scoring.ts:1-4—IotInputinterfacesrc/routes/iot.ts:20,32—timestampin return valuessrc/__tests__/scoring.test.ts— test fixtures don't include timestamps