repositories
/
e-mobility-charging-stations-simulator.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Factor out JSON schemas parsing with per OCPP stack version
[e-mobility-charging-stations-simulator.git]
/
src
/
charging-station
/
ocpp
/
OCPPConstants.ts
diff --git
a/src/charging-station/ocpp/OCPPConstants.ts
b/src/charging-station/ocpp/OCPPConstants.ts
index f2f36cec2a280f75f01c1bf36be861abaa28361d..a0b0d70a317a9e4089f03ca9f8055c28a14922a4 100644
(file)
--- a/
src/charging-station/ocpp/OCPPConstants.ts
+++ b/
src/charging-station/ocpp/OCPPConstants.ts
@@
-4,15
+4,16
@@
import {
ClearChargingProfileStatus,
ConfigurationStatus,
DataTransferStatus,
ClearChargingProfileStatus,
ConfigurationStatus,
DataTransferStatus,
-
Default
Status,
+
Generic
Status,
TriggerMessageStatus,
UnlockStatus,
} from '../../types/ocpp/Responses';
export default class OCPPConstants {
TriggerMessageStatus,
UnlockStatus,
} from '../../types/ocpp/Responses';
export default class OCPPConstants {
+ static readonly OCPP_REQUEST_EMPTY = Object.freeze({});
static readonly OCPP_RESPONSE_EMPTY = Object.freeze({});
static readonly OCPP_RESPONSE_EMPTY = Object.freeze({});
- static readonly OCPP_RESPONSE_ACCEPTED = Object.freeze({ status:
Default
Status.ACCEPTED });
- static readonly OCPP_RESPONSE_REJECTED = Object.freeze({ status:
Default
Status.REJECTED });
+ static readonly OCPP_RESPONSE_ACCEPTED = Object.freeze({ status:
Generic
Status.ACCEPTED });
+ static readonly OCPP_RESPONSE_REJECTED = Object.freeze({ status:
Generic
Status.REJECTED });
static readonly OCPP_CONFIGURATION_RESPONSE_ACCEPTED = Object.freeze({
status: ConfigurationStatus.ACCEPTED,
static readonly OCPP_CONFIGURATION_RESPONSE_ACCEPTED = Object.freeze({
status: ConfigurationStatus.ACCEPTED,