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
build: properly workaround Ajv TS type definitions bug
[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 0d9d3263f755d184639bef69d041b10142eca758..e8d14ef9a845f2c0dae2be6add33a66651208468 100644
(file)
--- a/
src/types/ocpp/1.6/MeterValues.ts
+++ b/
src/types/ocpp/1.6/MeterValues.ts
@@
-1,7
+1,7
@@
-import
{ EmptyObject } from '../../EmptyObject
';
-import
{ JsonObject } from '../../JsonType
';
+import
type { EmptyObject } from '../../EmptyObject.js
';
+import
type { JsonObject } from '../../JsonType.js
';
-export enum MeterValueUnit {
+export enum
OCPP16
MeterValueUnit {
WATT_HOUR = 'Wh',
KILO_WATT_HOUR = 'kWh',
VAR_HOUR = 'varh',
WATT_HOUR = 'Wh',
KILO_WATT_HOUR = 'kWh',
VAR_HOUR = 'varh',
@@
-20,7
+20,7
@@
export enum MeterValueUnit {
PERCENT = 'Percent',
}
PERCENT = 'Percent',
}
-export enum MeterValueContext {
+export enum
OCPP16
MeterValueContext {
INTERRUPTION_BEGIN = 'Interruption.Begin',
INTERRUPTION_END = 'Interruption.End',
OTHER = 'Other',
INTERRUPTION_BEGIN = 'Interruption.Begin',
INTERRUPTION_END = 'Interruption.End',
OTHER = 'Other',
@@
-56,7
+56,7
@@
export enum OCPP16MeterValueMeasurand {
VOLTAGE = 'Voltage',
}
VOLTAGE = 'Voltage',
}
-export enum MeterValueLocation {
+export enum
OCPP16
MeterValueLocation {
BODY = 'Body',
CABLE = 'Cable',
EV = 'EV',
BODY = 'Body',
CABLE = 'Cable',
EV = 'EV',
@@
-77,23
+77,23
@@
export enum OCPP16MeterValuePhase {
L3_L1 = 'L3-L1',
}
L3_L1 = 'L3-L1',
}
-e
xport enum
MeterValueFormat {
+e
num OCPP16
MeterValueFormat {
RAW = 'Raw',
SIGNED_DATA = 'SignedData',
}
export interface OCPP16SampledValue extends JsonObject {
value: string;
RAW = 'Raw',
SIGNED_DATA = 'SignedData',
}
export interface OCPP16SampledValue extends JsonObject {
value: string;
- unit?: MeterValueUnit;
- context?: MeterValueContext;
+ unit?:
OCPP16
MeterValueUnit;
+ context?:
OCPP16
MeterValueContext;
measurand?: OCPP16MeterValueMeasurand;
phase?: OCPP16MeterValuePhase;
measurand?: OCPP16MeterValueMeasurand;
phase?: OCPP16MeterValuePhase;
- location?: MeterValueLocation;
- format?: MeterValueFormat;
+ location?:
OCPP16
MeterValueLocation;
+ format?:
OCPP16
MeterValueFormat;
}
export interface OCPP16MeterValue extends JsonObject {
}
export interface OCPP16MeterValue extends JsonObject {
- timestamp:
string
;
+ timestamp:
Date
;
sampledValue: OCPP16SampledValue[];
}
sampledValue: OCPP16SampledValue[];
}