type ChangeAvailabilityResponse,
type ChangeConfigurationRequest,
type ChangeConfigurationResponse,
- ChargingProfilePurposeType,
type ClearChargingProfileRequest,
type ClearChargingProfileResponse,
ErrorType,
OCPP16ChargePointErrorCode,
OCPP16ChargePointStatus,
type OCPP16ChargingProfile,
+ OCPP16ChargingProfilePurposeType,
type OCPP16ClearCacheRequest,
type OCPP16DataTransferRequest,
type OCPP16DataTransferResponse,
}
if (
commandPayload.csChargingProfiles.chargingProfilePurpose ===
- ChargingProfilePurposeType.CHARGE_POINT_MAX_PROFILE &&
+ OCPP16ChargingProfilePurposeType.CHARGE_POINT_MAX_PROFILE &&
commandPayload.connectorId !== 0
) {
return OCPPConstants.OCPP_SET_CHARGING_PROFILE_RESPONSE_REJECTED;
}
if (
commandPayload.csChargingProfiles.chargingProfilePurpose ===
- ChargingProfilePurposeType.TX_PROFILE &&
+ OCPP16ChargingProfilePurposeType.TX_PROFILE &&
(commandPayload.connectorId === 0 ||
chargingStation.getConnectorStatus(commandPayload.connectorId)?.transactionStarted ===
false)
connectorId: number,
cp: OCPP16ChargingProfile
): boolean {
- if (cp && cp.chargingProfilePurpose === ChargingProfilePurposeType.TX_PROFILE) {
+ if (cp && cp.chargingProfilePurpose === OCPP16ChargingProfilePurposeType.TX_PROFILE) {
OCPP16ServiceUtils.setChargingProfile(chargingStation, connectorId, cp);
logger.debug(
`${chargingStation.logPrefix()} Charging profile(s) set at remote start transaction on connector id ${connectorId}: %j`,
cp
);
return true;
- } else if (cp && cp.chargingProfilePurpose !== ChargingProfilePurposeType.TX_PROFILE) {
+ } else if (cp && cp.chargingProfilePurpose !== OCPP16ChargingProfilePurposeType.TX_PROFILE) {
logger.warn(
`${chargingStation.logPrefix()} Not allowed to set ${
cp.chargingProfilePurpose
-export * from './internal';
+export {
+ AmpereUnits,
+ ApplicationProtocol,
+ AuthenticationType,
+ AuthorizationStatus,
+ type AuthorizeRequest,
+ type AuthorizeResponse,
+ type AutomaticTransactionGeneratorConfiguration,
+ AvailabilityStatus,
+ AvailabilityType,
+ type BootNotificationRequest,
+ type BootNotificationResponse,
+ BootReasonEnumType,
+ BroadcastChannelProcedureName,
+ type BroadcastChannelRequest,
+ type BroadcastChannelRequestPayload,
+ type BroadcastChannelResponse,
+ type BroadcastChannelResponsePayload,
+ type CachedRequest,
+ type ChangeAvailabilityRequest,
+ type ChangeAvailabilityResponse,
+ type ChangeConfigurationRequest,
+ type ChangeConfigurationResponse,
+ ChargePointErrorCode,
+ type ChargingProfile,
+ ChargingProfileKindType,
+ ChargingProfileStatus,
+ ChargingRateUnitType,
+ type ChargingSchedulePeriod,
+ type ChargingStationConfiguration,
+ type ChargingStationData,
+ type ChargingStationInfo,
+ type ChargingStationOcppConfiguration,
+ type ChargingStationTemplate,
+ type ChargingStationWorkerData,
+ type ChargingStationWorkerMessage,
+ type ChargingStationWorkerMessageData,
+ ChargingStationWorkerMessageEvents,
+ type ClearCacheResponse,
+ type ClearChargingProfileRequest,
+ type ClearChargingProfileResponse,
+ ClearChargingProfileStatus,
+ type ConfigurationData,
+ type ConfigurationKey,
+ ConfigurationStatus,
+ ConnectorPhaseRotation,
+ ConnectorStatus,
+ ConnectorStatusEnum,
+ CurrentType,
+ DBName,
+ type DataTransferRequest,
+ type DataTransferResponse,
+ DataTransferStatus,
+ type DiagnosticsStatusNotificationRequest,
+ type DiagnosticsStatusNotificationResponse,
+ type EmptyObject,
+ type ErrorCallback,
+ type ErrorResponse,
+ ErrorType,
+ FileType,
+ FirmwareStatus,
+ type FirmwareStatusNotificationRequest,
+ type FirmwareStatusNotificationResponse,
+ type FirmwareUpgrade,
+ type GenericResponse,
+ GenericStatus,
+ type GetConfigurationRequest,
+ type GetConfigurationResponse,
+ type GetDiagnosticsRequest,
+ type GetDiagnosticsResponse,
+ type HandleErrorParams,
+ type HeartbeatRequest,
+ type HeartbeatResponse,
+ IdTagDistribution,
+ type IncomingRequest,
+ IncomingRequestCommand,
+ type IncomingRequestHandler,
+ type JsonObject,
+ type JsonType,
+ type MeasurandPerPhaseSampledValueTemplates,
+ type MeasurandValues,
+ type MessageEvent,
+ MessageTrigger,
+ MessageType,
+ type MeterValue,
+ MeterValueContext,
+ MeterValueLocation,
+ MeterValueMeasurand,
+ type MeterValuePhase,
+ MeterValueUnit,
+ type MeterValuesRequest,
+ type MeterValuesResponse,
+ type MikroORMDBType,
+ OCPP16AuthorizationStatus,
+ type OCPP16AuthorizeRequest,
+ type OCPP16AuthorizeResponse,
+ OCPP16AvailabilityType,
+ type OCPP16BootNotificationRequest,
+ type OCPP16BootNotificationResponse,
+ OCPP16ChargePointErrorCode,
+ OCPP16ChargePointStatus,
+ type OCPP16ChargingProfile,
+ OCPP16ChargingProfilePurposeType,
+ type OCPP16ClearCacheRequest,
+ type OCPP16DataTransferRequest,
+ type OCPP16DataTransferResponse,
+ OCPP16DataTransferStatus,
+ OCPP16DataTransferVendorId,
+ OCPP16DiagnosticsStatus,
+ type OCPP16DiagnosticsStatusNotificationRequest,
+ type OCPP16DiagnosticsStatusNotificationResponse,
+ OCPP16FirmwareStatus,
+ type OCPP16FirmwareStatusNotificationRequest,
+ type OCPP16FirmwareStatusNotificationResponse,
+ type OCPP16HeartbeatRequest,
+ type OCPP16HeartbeatResponse,
+ OCPP16IncomingRequestCommand,
+ OCPP16MessageTrigger,
+ type OCPP16MeterValue,
+ OCPP16MeterValueMeasurand,
+ OCPP16MeterValuePhase,
+ type OCPP16MeterValuesRequest,
+ type OCPP16MeterValuesResponse,
+ OCPP16RequestCommand,
+ type OCPP16SampledValue,
+ OCPP16StandardParametersKey,
+ type OCPP16StartTransactionRequest,
+ type OCPP16StartTransactionResponse,
+ type OCPP16StatusNotificationRequest,
+ type OCPP16StatusNotificationResponse,
+ OCPP16StopTransactionReason,
+ type OCPP16StopTransactionRequest,
+ type OCPP16StopTransactionResponse,
+ OCPP16SupportedFeatureProfiles,
+ type OCPP16TriggerMessageRequest,
+ type OCPP16TriggerMessageResponse,
+ type OCPP16UpdateFirmwareRequest,
+ type OCPP16UpdateFirmwareResponse,
+ type OCPP20BootNotificationRequest,
+ type OCPP20BootNotificationResponse,
+ type OCPP20ClearCacheRequest,
+ type OCPP20ClearCacheResponse,
+ type OCPP20HeartbeatRequest,
+ type OCPP20HeartbeatResponse,
+ OCPP20IncomingRequestCommand,
+ OCPP20OptionalVariableName,
+ OCPP20RequestCommand,
+ type OCPP20StatusNotificationRequest,
+ type OCPP20StatusNotificationResponse,
+ type OCPPConfigurationKey,
+ OCPPVersion,
+ type OutgoingRequest,
+ PerformanceData,
+ PerformanceRecord,
+ PowerUnits,
+ ProcedureName,
+ Protocol,
+ type ProtocolRequest,
+ type ProtocolRequestHandler,
+ type ProtocolResponse,
+ ProtocolVersion,
+ RecurrencyKindType,
+ RegistrationStatusEnumType,
+ type RemoteStartTransactionRequest,
+ type RemoteStopTransactionRequest,
+ RequestCommand,
+ type RequestParams,
+ type RequestPayload,
+ type ResetRequest,
+ type Response,
+ type ResponseCallback,
+ type ResponseHandler,
+ type ResponsePayload,
+ ResponseStatus,
+ type ResponseType,
+ type SampledValueTemplate,
+ type SetChargingProfileRequest,
+ type SetChargingProfileResponse,
+ StandardParametersKey,
+ type StartTransactionRequest,
+ type StartTransactionResponse,
+ type StationTemplateUrl,
+ type Statistics,
+ type Status,
+ type StatusNotificationRequest,
+ type StatusNotificationResponse,
+ StopTransactionReason,
+ type StopTransactionRequest,
+ type StopTransactionResponse,
+ type StorageConfiguration,
+ StorageType,
+ SupervisionUrlDistribution,
+ SupportedFeatureProfiles,
+ type TimeSeries,
+ TriggerMessageStatus,
+ type UIServerConfiguration,
+ type UnlockConnectorRequest,
+ type UnlockConnectorResponse,
+ UnlockStatus,
+ VendorDefaultParametersKey,
+ Voltage,
+ type WSError,
+ WebSocketCloseEventStatusCode,
+ WebSocketCloseEventStatusString,
+ type WorkerConfiguration,
+ type WsOptions,
+} from './internal';