ocpp-standard-schema
Version:
Contains OCPP JSON schemas for validation purposes
32 lines (31 loc) • 991 B
TypeScript
/**
* This contains the current status of the Connector.
*
*/
export declare type ConnectorStatusEnumType = 'Available' | 'Occupied' | 'Reserved' | 'Unavailable' | 'Faulted';
export default interface StatusNotificationRequest {
customData?: CustomDataType;
/**
* The time for which the status is reported. If absent time of receipt of the message will be assumed.
*
*/
timestamp: string;
connectorStatus: ConnectorStatusEnumType;
/**
* The id of the EVSE to which the connector belongs for which the the status is reported.
*
*/
evseId: number;
/**
* The id of the connector within the EVSE for which the status is reported.
*
*/
connectorId: number;
}
/**
* This class does not get 'AdditionalProperties = false' in the schema generation, so it can be extended with arbitrary JSON properties to allow adding custom data.
*/
export interface CustomDataType {
vendorId: string;
[k: string]: unknown;
}