feat(api): 添加 MeterValue 展示支持,重置 OCPP 认证密钥二次确认
This commit is contained in:
@@ -74,6 +74,22 @@ export type ConnectionsStatus = {
|
||||
|
||||
export type ChargePointConnectionStatus = "online" | "unavailable" | "offline";
|
||||
|
||||
export type MeterSampledValue = {
|
||||
value: string;
|
||||
context?: string;
|
||||
format?: string;
|
||||
measurand?: string;
|
||||
phase?: string;
|
||||
location?: string;
|
||||
unit?: string;
|
||||
};
|
||||
|
||||
export type MeterHistoryPoint = {
|
||||
connectorNumber: number;
|
||||
timestamp: string;
|
||||
sampledValues: MeterSampledValue[];
|
||||
};
|
||||
|
||||
export type ChargePoint = {
|
||||
id: string;
|
||||
chargePointIdentifier: string;
|
||||
@@ -123,6 +139,9 @@ export type ChargePointDetail = {
|
||||
connectors: ConnectorDetail[];
|
||||
chargePointStatus: string | null;
|
||||
chargePointErrorCode: string | null;
|
||||
latestMeterTimestamp: string | null;
|
||||
latestMeterValues: MeterSampledValue[];
|
||||
meterHistory: MeterHistoryPoint[];
|
||||
};
|
||||
|
||||
export type Transaction = {
|
||||
|
||||
Reference in New Issue
Block a user