ocpp-messages
Version:
TypeScript definitions for Open Charge Point Protocol (OCPP)
92 lines (85 loc) • 1.9 kB
TypeScript
/* eslint-disable */
/**
* This file was automatically generated by json-schema-to-typescript.
* DO NOT MODIFY IT BY HAND. Instead, modify the source JSONSchema file,
* and run json-schema-to-typescript to regenerate this file.
*/
export type ReadingContextEnumType =
| "Interruption.Begin"
| "Interruption.End"
| "Sample.Clock"
| "Sample.Periodic"
| "Transaction.Begin"
| "Transaction.End"
| "Trigger"
| "Other";
export type MeasurandEnumType =
| "Energy.Active.Export.Register"
| "Energy.Active.Import.Register"
| "Energy.Reactive.Export.Register"
| "Energy.Reactive.Import.Register"
| "Energy.Active.Export.Interval"
| "Energy.Active.Import.Interval"
| "Energy.Reactive.Export.Interval"
| "Energy.Reactive.Import.Interval"
| "Power.Active.Export"
| "Power.Active.Import"
| "Power.Offered"
| "Power.Reactive.Export"
| "Power.Reactive.Import"
| "Power.Factor"
| "Current.Import"
| "Current.Export"
| "Current.Offered"
| "Voltage"
| "Frequency"
| "Temperature"
| "SoC"
| "RPM";
export type PhaseEnumType =
| "L1"
| "L2"
| "L3"
| "N"
| "L1-N"
| "L2-N"
| "L3-N"
| "L1-L2"
| "L2-L3"
| "L3-L1";
export type LocationEnumType = "Cable" | "EV" | "Inlet" | "Outlet" | "Body";
export type UnitEnumType =
| "Wh"
| "kWh"
| "varh"
| "kvarh"
| "W"
| "kW"
| "VA"
| "kVA"
| "var"
| "kvar"
| "A"
| "V"
| "K"
| "Celcius"
| "Fahrenheit"
| "Percent";
export interface MeterValuesRequest {
connectorId: number;
transactionId?: number;
meterValue: {
timestamp: string;
sampledValue: {
value: string;
context?: ReadingContextEnumType;
format?: "Raw" | "SignedData";
measurand?: MeasurandEnumType;
phase?: PhaseEnumType;
location?: LocationEnumType;
unit?: UnitEnumType;
[k: string]: unknown;
}[];
[k: string]: unknown;
}[];
}