output: [
{
dir: 'dist',
- format: 'es',
+ format: 'esm',
exports: 'auto',
sourcemap: true,
preserveModules: true,
import { AsyncResource } from 'async_hooks';
-import type { ChargingStation } from './ChargingStation';
-import { ChargingStationUtils } from './ChargingStationUtils';
+import { type ChargingStation, ChargingStationUtils } from './internal';
import { BaseError } from '../exception';
-import { PerformanceStatistics } from '../performance';
+// import { PerformanceStatistics } from '../performance';
+import { PerformanceStatistics } from '../performance/PerformanceStatistics';
import {
AuthorizationStatus,
type AuthorizeRequest,
import chalk from 'chalk';
-import { ChargingStationUtils } from './ChargingStationUtils';
-import { type AbstractUIServer, UIServerFactory } from './internal';
+import { type AbstractUIServer, ChargingStationUtils, UIServerFactory } from './internal';
import { version } from '../../package.json';
import { BaseError } from '../exception';
import { type Storage, StorageFactory } from '../performance';
import merge from 'just-merge';
import WebSocket, { type RawData } from 'ws';
-import { AuthorizedTagsCache } from './AuthorizedTagsCache';
-import { AutomaticTransactionGenerator } from './AutomaticTransactionGenerator';
-import { ChargingStationConfigurationUtils } from './ChargingStationConfigurationUtils';
-import { ChargingStationUtils } from './ChargingStationUtils';
-import { ChargingStationWorkerBroadcastChannel } from './ChargingStationWorkerBroadcastChannel';
-import { MessageChannelUtils } from './MessageChannelUtils';
import {
- OCPP16IncomingRequestService,
+ AuthorizedTagsCache,
+ AutomaticTransactionGenerator,
+ ChargingStationConfigurationUtils,
+ ChargingStationUtils,
+ ChargingStationWorkerBroadcastChannel,
+ MessageChannelUtils,
+ SharedLRUCache,
+} from './internal';
+import {
+ // OCPP16IncomingRequestService,
OCPP16RequestService,
- OCPP16ResponseService,
+ // OCPP16ResponseService,
OCPP16ServiceUtils,
OCPP20IncomingRequestService,
OCPP20RequestService,
- OCPP20ResponseService,
+ // OCPP20ResponseService,
type OCPPIncomingRequestService,
type OCPPRequestService,
- OCPPServiceUtils,
+ // OCPPServiceUtils,
} from './ocpp';
-import { SharedLRUCache } from './SharedLRUCache';
+import { OCPP16IncomingRequestService } from './ocpp/1.6/OCPP16IncomingRequestService';
+import { OCPP16ResponseService } from './ocpp/1.6/OCPP16ResponseService';
+import { OCPP20ResponseService } from './ocpp/2.0/OCPP20ResponseService';
+import { OCPPServiceUtils } from './ocpp/OCPPServiceUtils';
import { BaseError, OCPPError } from '../exception';
-import { PerformanceStatistics } from '../performance';
+// import { PerformanceStatistics } from '../performance';
+import { PerformanceStatistics } from '../performance/PerformanceStatistics';
import {
type AutomaticTransactionGeneratorConfiguration,
AvailabilityType,
-import type { ChargingStation } from './ChargingStation';
+import type { ChargingStation } from './internal';
import type { ConfigurationKey, StandardParametersKey } from '../types';
import { logger } from '../utils/Logger';
import moment from 'moment';
-import type { ChargingStation } from './ChargingStation';
+import type { ChargingStation } from './internal';
import { BaseError } from '../exception';
import {
AmpereUnits,
import { ThreadWorker } from 'poolifier';
-import { ChargingStation } from './ChargingStation';
-import { ChargingStationUtils } from './ChargingStationUtils';
+import { ChargingStation, ChargingStationUtils } from './internal';
import type { ChargingStationWorkerData } from '../types';
import { Utils } from '../utils/Utils';
import { WorkerConstants, type WorkerMessage, WorkerMessageEvents } from '../worker';
-import type { ChargingStation } from './ChargingStation';
-import { ChargingStationConfigurationUtils } from './ChargingStationConfigurationUtils';
+import {
+ type ChargingStation,
+ ChargingStationConfigurationUtils,
+ WorkerBroadcastChannel,
+} from './internal';
import { OCPP16ServiceUtils } from './ocpp';
-import { WorkerBroadcastChannel } from './WorkerBroadcastChannel';
import { BaseError, type OCPPError } from '../exception';
import {
AuthorizationStatus,
-import type { ChargingStation } from './ChargingStation';
+import type { ChargingStation } from './internal';
import {
type ChargingStationData,
type ChargingStationWorkerMessage,
-import type { AbstractUIService } from './internal';
-import { WorkerBroadcastChannel } from './WorkerBroadcastChannel';
+import { type AbstractUIService, WorkerBroadcastChannel } from './internal';
import {
type BroadcastChannelResponse,
type BroadcastChannelResponsePayload,
-export { Bootstrap } from './internal';
+export {
+ Bootstrap,
+ type ChargingStation,
+ ChargingStationConfigurationUtils,
+ ChargingStationUtils,
+ MessageChannelUtils,
+} from './internal';
+export * from './AuthorizedTagsCache';
+export * from './AutomaticTransactionGenerator';
export * from './Bootstrap';
+export * from './ChargingStation';
+export * from './ChargingStationConfigurationUtils';
+export * from './ChargingStationUtils';
+export * from './ChargingStationWorkerBroadcastChannel';
+export * from './MessageChannelUtils';
+export * from './SharedLRUCache';
+export * from './UIServiceWorkerBroadcastChannel';
+export * from './WorkerBroadcastChannel';
export * from './ui-server/AbstractUIServer';
export * from './ui-server/UIHttpServer';
-export * from './ui-server/UIWebSocketServer';
export * from './ui-server/UIServerFactory';
+export * from './ui-server/UIServerUtils';
+export * from './ui-server/UIWebSocketServer';
export * from './ui-server/ui-services/AbstractUIService';
export * from './ui-server/ui-services/UIService001';
export * from './ui-server/ui-services/UIServiceFactory';
import { Client, type FTPResponse } from 'basic-ftp';
import tar from 'tar';
-import { OCPP16ServiceUtils } from './OCPP16ServiceUtils';
+import {
+ type ChargingStation,
+ ChargingStationConfigurationUtils,
+ ChargingStationUtils,
+} from '../../../charging-station';
import { OCPPError } from '../../../exception';
import {
type ChangeAvailabilityRequest,
import { Constants } from '../../../utils/Constants';
import { logger } from '../../../utils/Logger';
import { Utils } from '../../../utils/Utils';
-import type { ChargingStation } from '../../ChargingStation';
-import { ChargingStationConfigurationUtils } from '../../ChargingStationConfigurationUtils';
-import { ChargingStationUtils } from '../../ChargingStationUtils';
-import { OCPPConstants } from '../OCPPConstants';
-import { OCPPIncomingRequestService } from '../OCPPIncomingRequestService';
+import { OCPP16ServiceUtils, OCPPConstants, OCPPIncomingRequestService } from '../internal';
const moduleName = 'OCPP16IncomingRequestService';
import type { JSONSchemaType } from 'ajv';
-import { OCPP16ServiceUtils } from './OCPP16ServiceUtils';
+import type { ChargingStation } from '../../../charging-station';
import { OCPPError } from '../../../exception';
import {
ErrorType,
} from '../../../types';
import { Constants } from '../../../utils/Constants';
import { Utils } from '../../../utils/Utils';
-import type { ChargingStation } from '../../ChargingStation';
-import { OCPPConstants } from '../OCPPConstants';
-import { OCPPRequestService } from '../OCPPRequestService';
-import type { OCPPResponseService } from '../OCPPResponseService';
+import {
+ OCPP16ServiceUtils,
+ OCPPConstants,
+ OCPPRequestService,
+ type OCPPResponseService,
+} from '../internal';
const moduleName = 'OCPP16RequestService';
import type { JSONSchemaType } from 'ajv';
-import { OCPP16ServiceUtils } from './OCPP16ServiceUtils';
+import { type ChargingStation, ChargingStationConfigurationUtils } from '../../../charging-station';
import { OCPPError } from '../../../exception';
import {
type ChangeAvailabilityResponse,
import { Constants } from '../../../utils/Constants';
import { logger } from '../../../utils/Logger';
import { Utils } from '../../../utils/Utils';
-import type { ChargingStation } from '../../ChargingStation';
-import { ChargingStationConfigurationUtils } from '../../ChargingStationConfigurationUtils';
-import { OCPPResponseService } from '../OCPPResponseService';
+import { OCPP16ServiceUtils, OCPPResponseService } from '../internal';
const moduleName = 'OCPP16ResponseService';
import type { JSONSchemaType } from 'ajv';
+import type { ChargingStation } from '../../../charging-station';
import { OCPPError } from '../../../exception';
import {
CurrentType,
import { ACElectricUtils, DCElectricUtils } from '../../../utils/ElectricUtils';
import { logger } from '../../../utils/Logger';
import { Utils } from '../../../utils/Utils';
-import type { ChargingStation } from '../../ChargingStation';
-import { OCPPServiceUtils } from '../OCPPServiceUtils';
+import { OCPPServiceUtils } from '../internal';
export class OCPP16ServiceUtils extends OCPPServiceUtils {
public static checkFeatureProfile(
import type { JSONSchemaType } from 'ajv';
-import { OCPP20ServiceUtils } from './OCPP20ServiceUtils';
+import type { ChargingStation } from '../../../charging-station';
import { OCPPError } from '../../../exception';
import {
ErrorType,
OCPPVersion,
} from '../../../types';
import { logger } from '../../../utils/Logger';
-import type { ChargingStation } from '../../ChargingStation';
-import { OCPPIncomingRequestService } from '../OCPPIncomingRequestService';
+import { OCPP20ServiceUtils, OCPPIncomingRequestService } from '../internal';
const moduleName = 'OCPP20IncomingRequestService';
import type { JSONSchemaType } from 'ajv';
-import { OCPP20ServiceUtils } from './OCPP20ServiceUtils';
+import type { ChargingStation } from '../../../charging-station';
import { OCPPError } from '../../../exception';
import {
ErrorType,
type RequestParams,
} from '../../../types';
import { Utils } from '../../../utils/Utils';
-import type { ChargingStation } from '../../ChargingStation';
-import { OCPPConstants } from '../OCPPConstants';
-import { OCPPRequestService } from '../OCPPRequestService';
-import type { OCPPResponseService } from '../OCPPResponseService';
+import {
+ OCPP20ServiceUtils,
+ OCPPConstants,
+ OCPPRequestService,
+ type OCPPResponseService,
+} from '../internal';
const moduleName = 'OCPP20RequestService';
import type { JSONSchemaType } from 'ajv';
-import { OCPP20ServiceUtils } from './OCPP20ServiceUtils';
+import { type ChargingStation, ChargingStationConfigurationUtils } from '../../../charging-station';
import { OCPPError } from '../../../exception';
import {
ErrorType,
type ResponseHandler,
} from '../../../types';
import { logger } from '../../../utils/Logger';
-import type { ChargingStation } from '../../ChargingStation';
-import { ChargingStationConfigurationUtils } from '../../ChargingStationConfigurationUtils';
-import { OCPPResponseService } from '../OCPPResponseService';
+import { OCPP20ServiceUtils, OCPPResponseService } from '../internal';
const moduleName = 'OCPP20ResponseService';
import type { JSONSchemaType } from 'ajv';
import { type JsonType, OCPPVersion } from '../../../types';
-import { OCPPServiceUtils } from '../OCPPServiceUtils';
+import { OCPPServiceUtils } from '../internal';
export class OCPP20ServiceUtils extends OCPPServiceUtils {
public static parseJsonSchemaFile<T extends JsonType>(
import Ajv, { type JSONSchemaType } from 'ajv';
import ajvFormats from 'ajv-formats';
-import { OCPPConstants } from './OCPPConstants';
-import { OCPPServiceUtils } from './OCPPServiceUtils';
+import { OCPPConstants, OCPPServiceUtils } from './internal';
+import { type ChargingStation, ChargingStationUtils } from '../../charging-station';
import { OCPPError } from '../../exception';
import type {
ClearCacheResponse,
OCPPVersion,
} from '../../types';
import { logger } from '../../utils/Logger';
-import type { ChargingStation } from '../ChargingStation';
-import { ChargingStationUtils } from '../ChargingStationUtils';
const moduleName = 'OCPPIncomingRequestService';
import Ajv, { type JSONSchemaType } from 'ajv';
import ajvFormats from 'ajv-formats';
-import type { OCPPResponseService } from './OCPPResponseService';
-import { OCPPServiceUtils } from './OCPPServiceUtils';
+import { type OCPPResponseService, OCPPServiceUtils } from './internal';
+import type { ChargingStation } from '../../charging-station';
import { OCPPError } from '../../exception';
-import { PerformanceStatistics } from '../../performance';
+// import { PerformanceStatistics } from '../../performance';
+import { PerformanceStatistics } from '../../performance/PerformanceStatistics';
import {
type EmptyObject,
type ErrorCallback,
import { Constants } from '../../utils/Constants';
import { logger } from '../../utils/Logger';
import { Utils } from '../../utils/Utils';
-import type { ChargingStation } from '../ChargingStation';
const moduleName = 'OCPPRequestService';
import Ajv, { type JSONSchemaType } from 'ajv';
import ajvFormats from 'ajv-formats';
-import { OCPPServiceUtils } from './OCPPServiceUtils';
+import { OCPPServiceUtils } from './internal';
+import type { ChargingStation } from '../../charging-station';
import { OCPPError } from '../../exception';
import type {
IncomingRequestCommand,
RequestCommand,
} from '../../types';
import { logger } from '../../utils/Logger';
-import type { ChargingStation } from '../ChargingStation';
const moduleName = 'OCPPResponseService';
import type { DefinedError, ErrorObject, JSONSchemaType } from 'ajv';
+import { type ChargingStation, ChargingStationConfigurationUtils } from '../../charging-station';
import { BaseError } from '../../exception';
import {
ChargePointErrorCode,
import { FileUtils } from '../../utils/FileUtils';
import { logger } from '../../utils/Logger';
import { Utils } from '../../utils/Utils';
-import type { ChargingStation } from '../ChargingStation';
-import { ChargingStationConfigurationUtils } from '../ChargingStationConfigurationUtils';
export class OCPPServiceUtils {
protected constructor() {
-export { OCPPIncomingRequestService } from './OCPPIncomingRequestService';
-export { OCPPRequestService } from './OCPPRequestService';
-export { OCPPServiceUtils } from './OCPPServiceUtils';
-export { OCPP16IncomingRequestService } from './1.6/OCPP16IncomingRequestService';
-export { OCPP16RequestService } from './1.6/OCPP16RequestService';
-export { OCPP16ResponseService } from './1.6/OCPP16ResponseService';
-// FIXME: shall not be exported
-export { OCPP16ServiceUtils } from './1.6/OCPP16ServiceUtils';
-export { OCPP20IncomingRequestService } from './2.0/OCPP20IncomingRequestService';
-export { OCPP20RequestService } from './2.0/OCPP20RequestService';
-export { OCPP20ResponseService } from './2.0/OCPP20ResponseService';
+export {
+ OCPP20ResponseService,
+ OCPP20RequestService,
+ OCPP20IncomingRequestService,
+ // FIXME: shall not be exported
+ OCPP16ServiceUtils,
+ OCPPIncomingRequestService,
+ OCPP16ResponseService,
+ OCPPRequestService,
+ OCPPServiceUtils,
+ OCPP16IncomingRequestService,
+ OCPP16RequestService,
+} from './internal';
--- /dev/null
+export * from './1.6/OCPP16IncomingRequestService';
+export * from './1.6/OCPP16RequestService';
+export * from './1.6/OCPP16ResponseService';
+export * from './1.6/OCPP16ServiceUtils';
+
+export * from './2.0/OCPP20IncomingRequestService';
+export * from './2.0/OCPP20RequestService';
+export * from './2.0/OCPP20ResponseService';
+export * from './2.0/OCPP20ServiceUtils';
+
+export * from './OCPPConstants';
+export * from './OCPPIncomingRequestService';
+export * from './OCPPRequestService';
+export * from './OCPPResponseService';
+export * from './OCPPServiceUtils';
import { StatusCodes } from 'http-status-codes';
-import { UIServerUtils } from './UIServerUtils';
import { BaseError } from '../../exception';
import {
type ProcedureName,
} from '../../types';
import { logger } from '../../utils/Logger';
import { Utils } from '../../utils/Utils';
-import { AbstractUIServer } from '../internal';
+import { AbstractUIServer, UIServerUtils } from '../internal';
const moduleName = 'UIHttpServer';
import chalk from 'chalk';
-import { UIServerUtils } from './UIServerUtils';
import { ApplicationProtocol, type UIServerConfiguration } from '../../types';
import { Configuration } from '../../utils/Configuration';
-import { type AbstractUIServer, UIHttpServer, UIWebSocketServer } from '../internal';
+import { type AbstractUIServer, UIHttpServer, UIServerUtils, UIWebSocketServer } from '../internal';
export class UIServerFactory {
private constructor() {
import { StatusCodes } from 'http-status-codes';
import WebSocket, { type RawData, WebSocketServer } from 'ws';
-import { UIServerUtils } from './UIServerUtils';
import {
type ProtocolRequest,
type ProtocolResponse,
} from '../../types';
import { logger } from '../../utils/Logger';
import { Utils } from '../../utils/Utils';
-import { AbstractUIServer } from '../internal';
+import { AbstractUIServer, UIServerUtils } from '../internal';
const moduleName = 'UIWebSocketServer';
} from '../../../types';
import { logger } from '../../../utils/Logger';
import { Utils } from '../../../utils/Utils';
-import { type AbstractUIServer, Bootstrap } from '../../internal';
-import { UIServiceWorkerBroadcastChannel } from '../../UIServiceWorkerBroadcastChannel';
+import { type AbstractUIServer, Bootstrap, UIServiceWorkerBroadcastChannel } from '../../internal';
const moduleName = 'AbstractUIService';
// Partial Copyright Jerome Benoit. 2021-2023. All Rights Reserved.
-import { BaseError } from './BaseError';
+import { BaseError } from './internal';
import {
ErrorType,
type IncomingRequestCommand,
-export { BaseError } from './BaseError';
-export { OCPPError } from './OCPPError';
+export { BaseError, OCPPError } from './internal';
--- /dev/null
+export * from './BaseError';
+export * from './OCPPError';
import { PerformanceEntry, PerformanceObserver, performance } from 'perf_hooks';
import { parentPort } from 'worker_threads';
-import { MessageChannelUtils } from '../charging-station/MessageChannelUtils';
+import { MessageChannelUtils } from '../charging-station';
import {
type IncomingRequestCommand,
MessageType,
-export { PerformanceStatistics } from './PerformanceStatistics';
-export { Storage } from './storage/Storage';
-export { StorageFactory } from './storage/StorageFactory';
+export { PerformanceStatistics, type Storage, StorageFactory } from './internal';
--- /dev/null
+export * from './storage/JsonFileStorage';
+export * from './storage/MikroOrmStorage';
+export * from './storage/MongoDBStorage';
+export * from './storage/Storage';
+export * from './storage/StorageFactory';
+
+export * from './PerformanceStatistics';
import lockfile from 'proper-lockfile';
-import { Storage } from './Storage';
import { FileType, type Statistics } from '../../types';
import { FileUtils } from '../../utils/FileUtils';
import { Utils } from '../../utils/Utils';
+import { Storage } from '../internal';
export class JsonFileStorage extends Storage {
private fd: number | null = null;
import { Configuration, Connection, IDatabaseDriver, MikroORM, Options } from '@mikro-orm/core';
import { TsMorphMetadataProvider } from '@mikro-orm/reflection';
-import { Storage } from './Storage';
import {
type MikroORMDBType,
PerformanceData,
StorageType,
} from '../../types';
import { Constants } from '../../utils/Constants';
+import { Storage } from '../internal';
export class MikroOrmStorage extends Storage {
private storageType: StorageType;
import { MongoClient } from 'mongodb';
-import { Storage } from './Storage';
import { type Statistics, StorageType } from '../../types';
import { Constants } from '../../utils/Constants';
+import { Storage } from '../internal';
export class MongoDBStorage extends Storage {
private readonly client: MongoClient | null;
// Copyright Jerome Benoit. 2021-2023. All Rights Reserved.
-import { JsonFileStorage } from './JsonFileStorage';
-import { MikroOrmStorage } from './MikroOrmStorage';
-import { MongoDBStorage } from './MongoDBStorage';
-import type { Storage } from './Storage';
import { StorageType } from '../../types';
+import { JsonFileStorage, MikroOrmStorage, MongoDBStorage, type Storage } from '../internal';
export class StorageFactory {
private constructor() {
-import type { ChargingStationAutomaticTransactionGeneratorConfiguration } from './AutomaticTransactionGenerator';
-import type { ChargingStationInfoConfiguration } from './ChargingStationInfo';
-import type { ChargingStationOcppConfiguration } from './ChargingStationOcppConfiguration';
+import type {
+ ChargingStationAutomaticTransactionGeneratorConfiguration,
+ ChargingStationInfoConfiguration,
+ ChargingStationOcppConfiguration,
+} from './internal';
export type ChargingStationConfiguration = ChargingStationInfoConfiguration &
ChargingStationOcppConfiguration &
-import type { ChargingStationTemplate } from './ChargingStationTemplate';
-import type { FirmwareStatus } from './ocpp/Requests';
+import type { ChargingStationTemplate, FirmwareStatus } from './internal';
export type ChargingStationInfo = Omit<
ChargingStationTemplate,
-import type { OCPPConfigurationKey } from './ocpp/Configuration';
+import type { OCPPConfigurationKey } from './internal';
export type ConfigurationKey = OCPPConfigurationKey & {
visible?: boolean;
import type { ClientOptions } from 'ws';
-import type { AutomaticTransactionGeneratorConfiguration } from './AutomaticTransactionGenerator';
-import type { ChargingStationOcppConfiguration } from './ChargingStationOcppConfiguration';
-import type { ConnectorStatus } from './ConnectorStatus';
-import type { OCPPProtocol } from './ocpp/OCPPProtocol';
-import type { OCPPVersion } from './ocpp/OCPPVersion';
import type {
+ AutomaticTransactionGeneratorConfiguration,
+ ChargingStationOcppConfiguration,
+ ConnectorStatus,
FirmwareStatus,
IncomingRequestCommand,
MessageTrigger,
+ OCPPProtocol,
+ OCPPVersion,
RequestCommand,
-} from './ocpp/Requests';
+} from './internal';
export enum CurrentType {
AC = 'AC',
import type { WebSocket } from 'ws';
-import type { ChargingStationAutomaticTransactionGeneratorConfiguration } from './AutomaticTransactionGenerator';
-import type { ChargingStationInfo } from './ChargingStationInfo';
-import type { ConnectorStatus } from './ConnectorStatus';
-import type { JsonObject } from './JsonType';
-import type { BootNotificationResponse } from './ocpp/Responses';
-import type { Statistics } from './Statistics';
+import type {
+ BootNotificationResponse,
+ ChargingStationAutomaticTransactionGeneratorConfiguration,
+ ChargingStationInfo,
+ ConnectorStatus,
+ JsonObject,
+ Statistics,
+} from './internal';
import { type WorkerData, type WorkerMessage, WorkerMessageEvents } from '../worker';
export interface ChargingStationWorkerOptions extends JsonObject {
import type { WorkerChoiceStrategy } from 'poolifier';
-import type { StorageType } from './Storage';
-import type { ApplicationProtocol, AuthenticationType } from './UIProtocol';
+import type { ApplicationProtocol, AuthenticationType, StorageType } from './internal';
import type { WorkerProcessType } from '../worker';
export type ServerOptions = ListenOptions;
-import type { SampledValueTemplate } from './MeasurandPerPhaseSampledValueTemplates';
-import type { ChargingProfile } from './ocpp/ChargingProfile';
-import type { ConnectorStatusEnum } from './ocpp/ConnectorStatusEnum';
-import type { MeterValue } from './ocpp/MeterValues';
-import type { AvailabilityType } from './ocpp/Requests';
+import type {
+ AvailabilityType,
+ ChargingProfile,
+ ConnectorStatusEnum,
+ MeterValue,
+ SampledValueTemplate,
+} from './internal';
export type ConnectorStatus = {
availability: AvailabilityType;
-import type { IncomingRequestCommand, RequestCommand } from './ocpp/Requests';
+import type { IncomingRequestCommand, RequestCommand } from './internal';
import type { CircularArray } from '../utils/CircularArray';
import type { WorkerData } from '../worker';
-import type { JsonObject } from './JsonType';
-import type { BroadcastChannelResponsePayload } from './WorkerBroadcastChannel';
+import type { BroadcastChannelResponsePayload, JsonObject } from './internal';
export enum Protocol {
UI = 'ui',
-import type { RequestPayload, ResponsePayload } from './UIProtocol';
+import type { RequestPayload, ResponsePayload } from './internal';
export type BroadcastChannelRequest = [
string,
-export * from './ocpp/ChargePointErrorCode';
-export * from './ocpp/ChargingProfile';
-export * from './ocpp/Configuration';
-export * from './ocpp/ConnectorStatusEnum';
-export * from './ocpp/ErrorType';
-export * from './ocpp/MessageType';
-export * from './ocpp/MeterValues';
-export * from './ocpp/OCPPProtocol';
-export * from './ocpp/OCPPVersion';
-export * from './ocpp/Requests';
-export * from './ocpp/Responses';
-export * from './ocpp/Transaction';
-export * from './ocpp/1.6/ChargePointErrorCode';
-export * from './ocpp/1.6/ChargePointStatus';
-export * from './ocpp/1.6/ChargingProfile';
-export * from './ocpp/1.6/Configuration';
-export * from './ocpp/1.6/DiagnosticsStatus';
-export * from './ocpp/1.6/MeterValues';
-export * from './ocpp/1.6/Requests';
-export * from './ocpp/1.6/Responses';
-export * from './ocpp/1.6/Transaction';
-export * from './ocpp/2.0/Requests';
-export * from './ocpp/2.0/Responses';
-export * from './ocpp/2.0/Variables';
-export * from './orm/entities/PerformanceData';
-export * from './orm/entities/PerformanceRecord';
-export * from './AutomaticTransactionGenerator';
-export * from './ChargingStationConfiguration';
-export * from './ChargingStationInfo';
-export * from './ChargingStationOcppConfiguration';
-export * from './ChargingStationTemplate';
-export * from './ChargingStationWorker';
-export * from './ConfigurationData';
-export * from './ConnectorStatus';
-export * from './EmptyObject';
-export * from './Error';
-export * from './FileType';
-export * from './JsonType';
-export * from './MeasurandPerPhaseSampledValueTemplates';
-export * from './MeasurandValues';
-export * from './Statistics';
-export * from './Storage';
-export * from './UIProtocol';
-export * from './WebSocket';
-export * from './WorkerBroadcastChannel';
+export * from './internal';
--- /dev/null
+export * from './ocpp/1.6/ChargePointErrorCode';
+export * from './ocpp/1.6/ChargePointStatus';
+export * from './ocpp/1.6/ChargingProfile';
+export * from './ocpp/1.6/Configuration';
+export * from './ocpp/1.6/DiagnosticsStatus';
+export * from './ocpp/1.6/MeterValues';
+export * from './ocpp/1.6/Requests';
+export * from './ocpp/1.6/Responses';
+export * from './ocpp/1.6/Transaction';
+export * from './ocpp/2.0/Requests';
+export * from './ocpp/2.0/Responses';
+export * from './ocpp/2.0/Variables';
+export * from './ocpp/ChargePointErrorCode';
+export * from './ocpp/ChargingProfile';
+export * from './ocpp/Configuration';
+export * from './ocpp/ConnectorStatusEnum';
+export * from './ocpp/ErrorType';
+export * from './ocpp/MessageType';
+export * from './ocpp/MeterValues';
+export * from './ocpp/OCPPProtocol';
+export * from './ocpp/OCPPVersion';
+export * from './ocpp/Requests';
+export * from './ocpp/Responses';
+export * from './ocpp/Transaction';
+export * from './orm/entities/PerformanceData';
+export * from './orm/entities/PerformanceRecord';
+export * from './AutomaticTransactionGenerator';
+export * from './ChargingStationConfiguration';
+export * from './ChargingStationInfo';
+export * from './ChargingStationOcppConfiguration';
+export * from './ChargingStationTemplate';
+export * from './ChargingStationWorker';
+export * from './ConfigurationData';
+export * from './ConnectorStatus';
+export * from './EmptyObject';
+export * from './Error';
+export * from './FileType';
+export * from './JsonType';
+export * from './MeasurandPerPhaseSampledValueTemplates';
+export * from './MeasurandValues';
+export * from './Statistics';
+export * from './Storage';
+export * from './UIProtocol';
+export * from './WebSocket';
+export * from './WorkerBroadcastChannel';
-import type { JsonObject } from '../../JsonType';
+import type { JsonObject } from '../../internal';
export interface OCPP16ChargingProfile extends JsonObject {
chargingProfileId: number;
-import type { EmptyObject } from '../../EmptyObject';
-import type { JsonObject } from '../../JsonType';
+import type { EmptyObject, JsonObject } from '../../internal';
export enum MeterValueUnit {
WATT_HOUR = 'Wh',
-import type { OCPP16ChargePointErrorCode } from './ChargePointErrorCode';
-import type { OCPP16ChargePointStatus } from './ChargePointStatus';
-import type { ChargingProfilePurposeType, OCPP16ChargingProfile } from './ChargingProfile';
-import type { OCPP16StandardParametersKey } from './Configuration';
-import type { OCPP16DiagnosticsStatus } from './DiagnosticsStatus';
-import type { EmptyObject } from '../../EmptyObject';
-import type { JsonObject } from '../../JsonType';
+import type {
+ ChargingProfilePurposeType,
+ EmptyObject,
+ JsonObject,
+ OCPP16ChargePointErrorCode,
+ OCPP16ChargePointStatus,
+ OCPP16ChargingProfile,
+ OCPP16DiagnosticsStatus,
+ OCPP16StandardParametersKey,
+} from '../../internal';
export enum OCPP16RequestCommand {
BOOT_NOTIFICATION = 'BootNotification',
-import type { EmptyObject } from '../../EmptyObject';
-import type { JsonObject } from '../../JsonType';
-import type { OCPPConfigurationKey } from '../Configuration';
-import type { RegistrationStatusEnumType } from '../Responses';
+import type {
+ EmptyObject,
+ JsonObject,
+ OCPPConfigurationKey,
+ RegistrationStatusEnumType,
+} from '../../internal';
export interface OCPP16HeartbeatResponse extends JsonObject {
currentTime: Date;
-import type { OCPP16MeterValue } from './MeterValues';
-import type { JsonObject } from '../../JsonType';
+import type { JsonObject, OCPP16MeterValue } from '../../internal';
export enum OCPP16StopTransactionReason {
NONE = '',
-import type { EmptyObject } from '../../EmptyObject';
-import type { JsonObject } from '../../JsonType';
+import type { EmptyObject, JsonObject } from '../../internal';
export enum OCPP20RequestCommand {
BOOT_NOTIFICATION = 'BootNotification',
-import type { EmptyObject } from '../../EmptyObject';
-import type { JsonObject } from '../../JsonType';
-import type { GenericStatus, RegistrationStatusEnumType } from '../Responses';
+import type {
+ EmptyObject,
+ GenericStatus,
+ JsonObject,
+ RegistrationStatusEnumType,
+} from '../../internal';
export type StatusInfoType = {
reasonCode: string;
-import { OCPP16ChargePointErrorCode } from './1.6/ChargePointErrorCode';
+import { OCPP16ChargePointErrorCode } from '../internal';
export const ChargePointErrorCode = {
...OCPP16ChargePointErrorCode,
type OCPP16ChargingProfile,
OCPP16ChargingRateUnitType,
type OCPP16ChargingSchedulePeriod,
-} from './1.6/ChargingProfile';
+} from '../internal';
export type ChargingProfile = OCPP16ChargingProfile;
import {
+ type JsonObject,
OCPP16StandardParametersKey,
OCPP16SupportedFeatureProfiles,
OCPP16VendorDefaultParametersKey,
-} from './1.6/Configuration';
-import {
OCPP20OptionalVariableName,
OCPP20RequiredVariableName,
OCPP20VendorVariableName,
-} from './2.0/Variables';
-import type { JsonObject } from '../JsonType';
+} from '../internal';
export const StandardParametersKey = {
...OCPP16StandardParametersKey,
-import { OCPP16ChargePointStatus } from './1.6/ChargePointStatus';
-import { OCPP20ConnectorStatusEnumType } from './2.0/Requests';
+import { OCPP16ChargePointStatus, OCPP20ConnectorStatusEnumType } from '../internal';
export const ConnectorStatusEnum = {
...OCPP16ChargePointStatus,
OCPP16MeterValueMeasurand,
OCPP16MeterValuePhase,
type OCPP16SampledValue,
-} from './1.6/MeterValues';
+} from '../internal';
export const MeterValueMeasurand = {
...OCPP16MeterValueMeasurand,
-import { OCPP16DiagnosticsStatus } from './1.6/DiagnosticsStatus';
-import type { OCPP16MeterValuesRequest } from './1.6/MeterValues';
+import type { ChargingStation } from '../../charging-station';
+import type { OCPPError } from '../../exception';
import {
+ type JsonType,
+ type MessageType,
OCPP16AvailabilityType,
type OCPP16BootNotificationRequest,
type OCPP16DataTransferRequest,
+ OCPP16DiagnosticsStatus,
type OCPP16DiagnosticsStatusNotificationRequest,
OCPP16FirmwareStatus,
type OCPP16FirmwareStatusNotificationRequest,
type OCPP16HeartbeatRequest,
OCPP16IncomingRequestCommand,
OCPP16MessageTrigger,
+ type OCPP16MeterValuesRequest,
OCPP16RequestCommand,
type OCPP16StatusNotificationRequest,
-} from './1.6/Requests';
-import {
type OCPP20BootNotificationRequest,
OCPP20IncomingRequestCommand,
OCPP20RequestCommand,
type OCPP20StatusNotificationRequest,
-} from './2.0/Requests';
-import type { MessageType } from './MessageType';
-import type { ChargingStation } from '../../charging-station/ChargingStation';
-import type { OCPPError } from '../../exception';
-import type { JsonType } from '../JsonType';
+} from '../internal';
export const RequestCommand = {
...OCPP16RequestCommand,
-import type { OCPP16MeterValuesResponse } from './1.6/MeterValues';
+import type { ChargingStation } from '../../charging-station';
import {
+ type ErrorType,
+ type JsonType,
+ type MessageType,
OCPP16AvailabilityStatus,
type OCPP16BootNotificationResponse,
OCPP16ChargingProfileStatus,
type OCPP16DiagnosticsStatusNotificationResponse,
type OCPP16FirmwareStatusNotificationResponse,
type OCPP16HeartbeatResponse,
+ type OCPP16MeterValuesResponse,
type OCPP16StatusNotificationResponse,
OCPP16TriggerMessageStatus,
OCPP16UnlockStatus,
-} from './1.6/Responses';
-import type {
- OCPP20BootNotificationResponse,
- OCPP20ClearCacheResponse,
- OCPP20StatusNotificationResponse,
-} from './2.0/Responses';
-import type { ErrorType } from './ErrorType';
-import type { MessageType } from './MessageType';
-import type { ChargingStation } from '../../charging-station/ChargingStation';
-import type { JsonType } from '../JsonType';
+ type OCPP20BootNotificationResponse,
+ type OCPP20ClearCacheResponse,
+ type OCPP20StatusNotificationResponse,
+} from '../internal';
export type Response = [MessageType.CALL_RESULT_MESSAGE, string, JsonType];
OCPP16StopTransactionReason,
type OCPP16StopTransactionRequest,
type OCPP16StopTransactionResponse,
-} from './1.6/Transaction';
+} from '../internal';
export const AuthorizationStatus = {
...OCPP16AuthorizationStatus,
import { Entity, ManyToOne, PrimaryKey, Property } from '@mikro-orm/core';
-import type { PerformanceRecord } from './PerformanceRecord';
+import type { PerformanceRecord } from '../../internal';
@Entity()
export class PerformanceData {
import { Collection, Entity, OneToMany, PrimaryKey, Property } from '@mikro-orm/core';
-import type { PerformanceData } from './PerformanceData';
+import type { PerformanceData } from '../../internal';
@Entity()
export class PerformanceRecord {
-export { WorkerAbstract } from './WorkerAbstract';
+export type { WorkerAbstract } from './WorkerAbstract';
export { WorkerConstants } from './WorkerConstants';
export { WorkerFactory } from './WorkerFactory';
export {
WorkerProcessType,
- WorkerData,
- WorkerMessage,
+ type WorkerData,
+ type WorkerMessage,
WorkerMessageEvents,
- MessageHandler,
+ type MessageHandler,
} from './WorkerTypes';