Initial commit
This commit is contained in:
16
src/types.ts
Normal file
16
src/types.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
export interface ChargingSession {
|
||||
id: string;
|
||||
startedAt: string; // ISO timestamp
|
||||
endedAt: string; // ISO timestamp
|
||||
sohStart: number; // e.g. 94.3 (%)
|
||||
sohEnd: number; // e.g. 94.1 (%)
|
||||
socStart?: number; // %
|
||||
socEnd?: number; // %
|
||||
energyAddedKWh?: number;
|
||||
avgTempC?: number;
|
||||
locationName?: string;
|
||||
}
|
||||
|
||||
export interface SessionsResponse {
|
||||
sessions: ChargingSession[];
|
||||
}
|
||||
Reference in New Issue
Block a user