repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: add missing type definition file
[e-mobility-charging-stations-simulator.git]
/
src
/
types
/
ocpp
/
1.6
/
MeterValues.ts
diff --git
a/src/types/ocpp/1.6/MeterValues.ts
b/src/types/ocpp/1.6/MeterValues.ts
index f8137c36782b2f704c0ea5ab20200e163d392ac1..5a59230c15f08615608c3e5f7d840f4895873aba 100644
(file)
--- a/
src/types/ocpp/1.6/MeterValues.ts
+++ b/
src/types/ocpp/1.6/MeterValues.ts
@@
-1,5
+1,4
@@
-import { EmptyObject } from '../../EmptyObject';
-import { JsonObject } from '../../JsonType';
+import type { EmptyObject, JsonObject } from '../../internal';
export enum MeterValueUnit {
WATT_HOUR = 'Wh',
export enum MeterValueUnit {
WATT_HOUR = 'Wh',
@@
-77,13
+76,13
@@
export enum OCPP16MeterValuePhase {
L3_L1 = 'L3-L1',
}
L3_L1 = 'L3-L1',
}
-e
xport e
num MeterValueFormat {
+enum MeterValueFormat {
RAW = 'Raw',
SIGNED_DATA = 'SignedData',
}
export interface OCPP16SampledValue extends JsonObject {
RAW = 'Raw',
SIGNED_DATA = 'SignedData',
}
export interface OCPP16SampledValue extends JsonObject {
- value
?
: string;
+ value: string;
unit?: MeterValueUnit;
context?: MeterValueContext;
measurand?: OCPP16MeterValueMeasurand;
unit?: MeterValueUnit;
context?: MeterValueContext;
measurand?: OCPP16MeterValueMeasurand;
@@
-93,7
+92,7
@@
export interface OCPP16SampledValue extends JsonObject {
}
export interface OCPP16MeterValue extends JsonObject {
}
export interface OCPP16MeterValue extends JsonObject {
- timestamp:
string
;
+ timestamp:
Date
;
sampledValue: OCPP16SampledValue[];
}
sampledValue: OCPP16SampledValue[];
}