import { OCPP16ChargePointErrorCode } from './1.6/ChargePointErrorCode';
-export type ChargePointErrorCode = OCPP16ChargePointErrorCode;
+export type ChargePointErrorCode = typeof ChargePointErrorCode;
+
+export const ChargePointErrorCode = {
+ ...OCPP16ChargePointErrorCode
+};
import { OCPP16ChargePointStatus } from './1.6/ChargePointStatus';
-export type ChargePointStatus = OCPP16ChargePointStatus;
+export type ChargePointStatus = typeof ChargePointStatus;
export const ChargePointStatus = {
...OCPP16ChargePointStatus
import { OCPP16StandardParametersKey } from './1.6/Configuration';
-export type StandardParametersKey = OCPP16StandardParametersKey;
+export type StandardParametersKey = typeof StandardParametersKey;
export const StandardParametersKey = {
...OCPP16StandardParametersKey
import { OCPP16MeterValueMeasurand, OCPP16SampledValue } from './1.6/MeterValues';
-export type MeterValueMeasurand = OCPP16MeterValueMeasurand;
+export type MeterValueMeasurand = typeof MeterValueMeasurand;
export const MeterValueMeasurand = {
...OCPP16MeterValueMeasurand
export type BootNotificationRequest = OCPP16BootNotificationRequest;
-export type AvailabilityType = OCPP16AvailabilityType;
+export type AvailabilityType = typeof AvailabilityType;
export const AvailabilityType = {
...OCPP16AvailabilityType
};
-export type RequestCommand = OCPP16RequestCommand;
+export type RequestCommand = typeof RequestCommand;
export const RequestCommand = {
...OCPP16RequestCommand
};
-export type IncomingRequestCommand = OCPP16IncomingRequestCommand;
+export type IncomingRequestCommand = typeof IncomingRequestCommand;
+
+export const IncomingRequestCommand = {
+ ...OCPP16IncomingRequestCommand
+};
export type Request = [(payload?: Record<string, unknown>, requestPayload?: Record<string, unknown>) => void, (error?: OCPPError) => void, Record<string, unknown>];
export type BootNotificationResponse = OCPP16BootNotificationResponse;
-export type RegistrationStatus = OCPP16RegistrationStatus;
+export type RegistrationStatus = typeof RegistrationStatus;
export const RegistrationStatus = {
...OCPP16RegistrationStatus
import { OCPP16AuthorizationStatus, OCPP16AuthorizeResponse, OCPP16StartTransactionResponse, OCPP16StopTransactionReason, OCPP16StopTransactionResponse } from './1.6/Transaction';
-export type AuthorizationStatus = OCPP16AuthorizationStatus;
+export type AuthorizationStatus = typeof AuthorizationStatus;
export const AuthorizationStatus = {
...OCPP16AuthorizationStatus,
export type AuthorizeResponse = OCPP16AuthorizeResponse;
-export type StopTransactionReason = OCPP16StopTransactionReason;
+export type StopTransactionReason = typeof StopTransactionReason;
export const StopTransactionReason = {
...OCPP16StopTransactionReason,