X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Fcharging-station%2Focpp%2FOCPPRequestService.ts;h=8b5f0cc3aaf1e19aadafcf965d1dd49af4acb234;hb=f5a1ff8ce8f87a149791c2c98fe7c5e8a20b5392;hp=b9a75e5f943388b33b07be80e1654e47acf6cb3c;hpb=05e2446f43d2fb81bfdfe43684186acdeb490085;p=e-mobility-charging-stations-simulator.git diff --git a/src/charging-station/ocpp/OCPPRequestService.ts b/src/charging-station/ocpp/OCPPRequestService.ts index b9a75e5f..8b5f0cc3 100644 --- a/src/charging-station/ocpp/OCPPRequestService.ts +++ b/src/charging-station/ocpp/OCPPRequestService.ts @@ -1,12 +1,12 @@ -import Ajv, { type JSONSchemaType, type ValidateFunction } from 'ajv'; -import ajvFormats from 'ajv-formats'; +import _Ajv, { type JSONSchemaType, type ValidateFunction } from 'ajv'; +import _ajvFormats from 'ajv-formats'; -import { OCPPConstants } from './OCPPConstants'; -import type { OCPPResponseService } from './OCPPResponseService'; -import { OCPPServiceUtils } from './OCPPServiceUtils'; -import type { ChargingStation } from '../../charging-station'; -import { OCPPError } from '../../exception'; -import { PerformanceStatistics } from '../../performance'; +import { OCPPConstants } from './OCPPConstants.js'; +import type { OCPPResponseService } from './OCPPResponseService.js'; +import { OCPPServiceUtils } from './OCPPServiceUtils.js'; +import type { ChargingStation } from '../../charging-station/index.js'; +import { OCPPError } from '../../exception/index.js'; +import { PerformanceStatistics } from '../../performance/index.js'; import { ChargingStationEvents, type ErrorCallback, @@ -22,14 +22,17 @@ import { type Response, type ResponseCallback, type ResponseType, -} from '../../types'; +} from '../../types/index.js'; import { cloneObject, formatDurationMilliSeconds, handleSendMessageError, isNullOrUndefined, logger, -} from '../../utils'; +} from '../../utils/index.js'; +type Ajv = _Ajv.default; +const Ajv = _Ajv.default; +const ajvFormats = _ajvFormats.default; const moduleName = 'OCPPRequestService';