import type { JSONSchemaType } from 'ajv';
+import { OCPP16ServiceUtils } from './OCPP16ServiceUtils';
import OCPPError from '../../../exception/OCPPError';
import type { JsonObject, JsonType } from '../../../types/JsonType';
import { OCPP16ChargePointErrorCode } from '../../../types/ocpp/1.6/ChargePointErrorCode';
import { ErrorType } from '../../../types/ocpp/ErrorType';
import { OCPPVersion } from '../../../types/ocpp/OCPPVersion';
import {
- type DefaultResponse,
+ type GenericResponse,
RegistrationStatusEnumType,
type ResponseHandler,
} from '../../../types/ocpp/Responses';
import type ChargingStation from '../../ChargingStation';
import { ChargingStationConfigurationUtils } from '../../ChargingStationConfigurationUtils';
import OCPPResponseService from '../OCPPResponseService';
-import { OCPP16ServiceUtils } from './OCPP16ServiceUtils';
const moduleName = 'OCPP16ResponseService';
this.jsonIncomingRequestResponseSchemas = new Map([
[
OCPP16IncomingRequestCommand.RESET,
- this.parseJsonSchemaFile<DefaultResponse>(
+ this.parseJsonSchemaFile<GenericResponse>(
'../../../assets/json-schemas/ocpp/1.6/ResetResponse.json'
),
],
[
OCPP16IncomingRequestCommand.CLEAR_CACHE,
- this.parseJsonSchemaFile<DefaultResponse>(
+ this.parseJsonSchemaFile<GenericResponse>(
'../../../assets/json-schemas/ocpp/1.6/ClearCacheResponse.json'
),
],
],
[
OCPP16IncomingRequestCommand.REMOTE_START_TRANSACTION,
- this.parseJsonSchemaFile<DefaultResponse>(
+ this.parseJsonSchemaFile<GenericResponse>(
'../../../assets/json-schemas/ocpp/1.6/RemoteStartTransactionResponse.json'
),
],
[
OCPP16IncomingRequestCommand.REMOTE_STOP_TRANSACTION,
- this.parseJsonSchemaFile<DefaultResponse>(
+ this.parseJsonSchemaFile<GenericResponse>(
'../../../assets/json-schemas/ocpp/1.6/RemoteStopTransactionResponse.json'
),
],