Updated ServerAction types
MODIFY
src/server/rest/CentralRestServerService.ts
src/server/rest/CentralRestServerService.ts
@@ -106,7 +106,7 @@ class RequestMapper {
this.registerJsonActionsPaths({
[ServerAction.LOGGINGS]: LoggingService.handleGetLoggings.bind(this),
[ServerAction.LOGGING]: LoggingService.handleGetLogging.bind(this),
- [ServerAction.LOGGING_EXPORT]: LoggingService.handleGetLoggingsExport.bind(this),
+ [ServerAction.LOGGINGS_EXPORT]: LoggingService.handleGetLoggingsExport.bind(this),
[ServerAction.CHARGING_STATIONS]: ChargingStationService.handleGetChargingStations.bind(this),
[ServerAction.CAR_CATALOGS]: CarService.handleGetCarCatalogs.bind(this),
[ServerAction.CAR_CATALOG]: CarService.handleGetCarCatalog.bind(this),
@@ -130,7 +130,7 @@ class RequestMapper {
[ServerAction.ASSETS]: AssetService.handleGetAssets.bind(this),
[ServerAction.ASSET]: AssetService.handleGetAsset.bind(this),
[ServerAction.ASSET_IMAGE]: AssetService.handleGetAssetImage.bind(this),
- [ServerAction.ASSET_IN_ERROR]: AssetService.handleGetAssetsInError.bind(this),
+ [ServerAction.ASSETS_IN_ERROR]: AssetService.handleGetAssetsInError.bind(this),
[ServerAction.CHECK_ASSET_CONNECTION]: AssetService.handleCheckAssetConnection.bind(this),
[ServerAction.SITES]: SiteService.handleGetSites.bind(this),
[ServerAction.SITE]: SiteService.handleGetSite.bind(this),
@@ -173,7 +173,7 @@ class RequestMapper {
[ServerAction.TRANSACTION]: TransactionService.handleGetTransaction.bind(this),
[ServerAction.TRANSACTION_CONSUMPTION]: TransactionService.handleGetTransactionConsumption.bind(this),
[ServerAction.CHARGING_STATIONS_OCPP_PARAMETERS]: ChargingStationService.handleGetChargingStationOcppParameters.bind(this),
- [ServerAction.CHARGING_STATION_IN_ERROR]: ChargingStationService.handleGetChargingStationsInError.bind(this),
+ [ServerAction.CHARGING_STATIONS_IN_ERROR]: ChargingStationService.handleGetChargingStationsInError.bind(this),
[ServerAction.SETTINGS]: SettingService.handleGetSettings.bind(this),
[ServerAction.SETTING]: SettingService.handleGetSetting.bind(this),
[ServerAction.CHECK_BILLING_CONNECTION]: BillingService.handleCheckBillingConnection.bind(this),

MODIFY
src/types/Server.ts
src/types/Server.ts
@@ -26,7 +26,7 @@ export enum ServerAction {
CHARGING_STATIONS_OCPP_PARAMS_EXPORT = 'ChargingStationsOCPPParamsExport',
CHARGING_STATION = 'ChargingStation',
CHARGING_STATIONS_OCPP_PARAMETERS = 'ChargingStationOcppParameters',
- CHARGING_STATION_IN_ERROR = 'ChargingStationsInError',
+ CHARGING_STATIONS_IN_ERROR = 'ChargingStationsInError',
CHARGING_STATION_UPDATE_PARAMS = 'ChargingStationUpdateParams',
CHARGING_STATION_LIMIT_POWER = 'ChargingStationLimitPower',
CHARGING_STATION_DELETE = 'ChargingStationDelete',
@@ -51,7 +51,7 @@ export enum ServerAction {
LOGGINGS = 'Loggings',
LOGGING = 'Logging',
- LOGGING_EXPORT = 'LoggingsExport',
+ LOGGINGS_EXPORT = 'LoggingsExport',
CHARGING_STATIONS = 'ChargingStations',
@@ -260,7 +260,7 @@ export enum ServerAction {
ASSETS = 'Assets',
ASSET = 'Asset',
ASSET_IMAGE = 'AssetImage',
- ASSET_IN_ERROR = 'AssetsInError',
+ ASSETS_IN_ERROR = 'AssetsInError',
ASSET_UPDATE = 'AssetUpdate',
ASSET_DELETE = 'AssetDelete',
CHECK_ASSET_CONNECTION = 'CheckAssetConnection',

Updated ServerAction types