UNPKG

@openevstack/ocpp-rpc

Version:

⚡ A lightweight, production-ready RPC server built with Express and WebSocket for handling OCPP-based EV charger communication. Part of the OpenEVStack ecosystem.

76 lines (75 loc) 2.56 kB
declare class TimeoutError extends Error { } declare class UnexpectedHttpResponse extends Error { code: number; request: any; response: any; constructor(statusMessage: string); } declare class RPCError extends Error { rpcErrorMessage: string; rpcErrorCode: string; } declare class RPCGenericError extends RPCError { rpcErrorMessage: string; rpcErrorCode: string; } declare class RPCNotImplementedError extends RPCError { rpcErrorMessage: string; rpcErrorCode: string; } declare class RPCNotSupportedError extends RPCError { rpcErrorMessage: string; rpcErrorCode: string; } declare class RPCInternalError extends RPCError { rpcErrorMessage: string; rpcErrorCode: string; } declare class RPCProtocolError extends RPCError { rpcErrorMessage: string; rpcErrorCode: string; } declare class RPCSecurityError extends RPCError { rpcErrorMessage: string; rpcErrorCode: string; } declare class RPCFormatViolationError extends RPCError { rpcErrorMessage: string; rpcErrorCode: string; } declare class RPCFormationViolationError extends RPCError { rpcErrorMessage: string; rpcErrorCode: string; } declare class RPCPropertyConstraintViolationError extends RPCError { rpcErrorMessage: string; rpcErrorCode: string; } declare class RPCOccurenceConstraintViolationError extends RPCError { rpcErrorMessage: string; rpcErrorCode: string; } declare class RPCOccurrenceConstraintViolationError extends RPCError { rpcErrorMessage: string; rpcErrorCode: string; } declare class RPCTypeConstraintViolationError extends RPCError { rpcErrorMessage: string; rpcErrorCode: string; } declare class RPCMessageTypeNotSupportedError extends RPCError { rpcErrorMessage: string; rpcErrorCode: string; } declare class RPCFrameworkError extends RPCError { rpcErrorMessage: string; rpcErrorCode: string; } declare class WebsocketUpgradeError extends Error { code: number; constructor(code: number, message: string); } export { WebsocketUpgradeError, TimeoutError, UnexpectedHttpResponse, RPCError, RPCGenericError, RPCNotImplementedError, RPCNotSupportedError, RPCInternalError, RPCProtocolError, RPCSecurityError, RPCFormatViolationError, RPCFormationViolationError, // to allow for mistake in ocpp1.6j spec RPCPropertyConstraintViolationError, RPCOccurrenceConstraintViolationError, RPCOccurenceConstraintViolationError, // to allow for mistake in ocpp1.6j spec RPCTypeConstraintViolationError, RPCMessageTypeNotSupportedError, RPCFrameworkError, };