UNPKG

ocpp-messages

Version:

TypeScript definitions for Open Charge Point Protocol (OCPP)

158 lines (155 loc) 5.06 kB
/* tslint: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. */ /** * Status is OK if a value could be returned. Otherwise this will indicate the reason why a value could not be returned. * */ export type SetMonitoringStatusEnumType = | "Accepted" | "UnknownComponent" | "UnknownVariable" | "UnsupportedMonitorType" | "Rejected" | "Duplicate"; /** * The type of this monitor, e.g. a threshold, delta or periodic monitor. * * */ export type MonitorEnumType = "UpperThreshold" | "LowerThreshold" | "Delta" | "Periodic" | "PeriodicClockAligned"; export interface UrnOCPPCp220203SetVariableMonitoringResponse { customData?: CustomDataType; /** * @minItems 1 */ setMonitoringResult: [SetMonitoringResultType, ...SetMonitoringResultType[]]; } /** * 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; } /** * Class to hold result of SetVariableMonitoring request. * */ export interface SetMonitoringResultType { customData?: CustomDataType; /** * Id given to the VariableMonitor by the Charging Station. The Id is only returned when status is accepted. Installed VariableMonitors should have unique id's but the id's of removed Installed monitors should have unique id's but the id's of removed monitors MAY be reused. * */ id?: number; statusInfo?: StatusInfoType; status: SetMonitoringStatusEnumType; type: MonitorEnumType; component: ComponentType; variable: VariableType; /** * The severity that will be assigned to an event that is triggered by this monitor. The severity range is 0-9, with 0 as the highest and 9 as the lowest severity level. * * The severity levels have the following meaning: + * *0-Danger* + * Indicates lives are potentially in danger. Urgent attention is needed and action should be taken immediately. + * *1-Hardware Failure* + * Indicates that the Charging Station is unable to continue regular operations due to Hardware issues. Action is required. + * *2-System Failure* + * Indicates that the Charging Station is unable to continue regular operations due to software or minor hardware issues. Action is required. + * *3-Critical* + * Indicates a critical error. Action is required. + * *4-Error* + * Indicates a non-urgent error. Action is required. + * *5-Alert* + * Indicates an alert event. Default severity for any type of monitoring event. + * *6-Warning* + * Indicates a warning event. Action may be required. + * *7-Notice* + * Indicates an unusual event. No immediate action is required. + * *8-Informational* + * Indicates a regular operational event. May be used for reporting, measuring throughput, etc. No action is required. + * *9-Debug* + * Indicates information useful to developers for debugging, not useful during operations. * * */ severity: number; } /** * Element providing more information about the status. * */ export interface StatusInfoType { customData?: CustomDataType; /** * A predefined code for the reason why the status is returned in this response. The string is case-insensitive. * */ reasonCode: string; /** * Additional text to provide detailed information. * */ additionalInfo?: string; } /** * A physical or logical component * */ export interface ComponentType { customData?: CustomDataType; evse?: EVSEType; /** * Name of the component. Name should be taken from the list of standardized component names whenever possible. Case Insensitive. strongly advised to use Camel Case. * */ name: string; /** * Name of instance in case the component exists as multiple instances. Case Insensitive. strongly advised to use Camel Case. * */ instance?: string; } /** * EVSE * urn:x-oca:ocpp:uid:2:233123 * Electric Vehicle Supply Equipment * */ export interface EVSEType { customData?: CustomDataType; /** * Identified_ Object. MRID. Numeric_ Identifier * urn:x-enexis:ecdm:uid:1:569198 * EVSE Identifier. This contains a number (> 0) designating an EVSE of the Charging Station. * */ id: number; /** * An id to designate a specific connector (on an EVSE) by connector index number. * */ connectorId?: number; } /** * Reference key to a component-variable. * */ export interface VariableType { customData?: CustomDataType; /** * Name of the variable. Name should be taken from the list of standardized variable names whenever possible. Case Insensitive. strongly advised to use Camel Case. * */ name: string; /** * Name of instance in case the variable exists as multiple instances. Case Insensitive. strongly advised to use Camel Case. * */ instance?: string; }