Skip to content

Add timestamp fields to scoring interface #232

Description

@AbelOsaretin

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

  • IotInput interface includes timestamp field
  • Or: documentation explains why timestamps are excluded
  • No breaking changes

Technical Context

  • src/lib/scoring.ts:1-4IotInput interface
  • src/routes/iot.ts:20,32timestamp in return values
  • src/__tests__/scoring.test.ts — test fixtures don't include timestamps

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programlowCosmetic, minor improvement, code quality, documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions