import type { ConfigurationKey } from '../types/ChargingStationOcppConfiguration';
import type { StandardParametersKey } from '../types/ocpp/Configuration';
import logger from '../utils/Logger';
import type { ConfigurationKey } from '../types/ChargingStationOcppConfiguration';
import type { StandardParametersKey } from '../types/ocpp/Configuration';
import logger from '../utils/Logger';
-import type ChargingStation from './ChargingStation';
+
+type ConfigurationKeyOptions = { readonly?: boolean; visible?: boolean; reboot?: boolean };
+type DeleteConfigurationKeyParams = { save?: boolean; caseInsensitive?: boolean };
+type AddConfigurationKeyParams = { overwrite?: boolean; save?: boolean };
key: string | StandardParametersKey,
caseInsensitive = false
): ConfigurationKey | undefined {
key: string | StandardParametersKey,
caseInsensitive = false
): ConfigurationKey | undefined {
chargingStation: ChargingStation,
key: string | StandardParametersKey,
value: string,
chargingStation: ChargingStation,
key: string | StandardParametersKey,
value: string,
options.readonly = options?.readonly ?? false;
options.visible = options?.visible ?? true;
options.reboot = options?.reboot ?? false;
options.readonly = options?.readonly ?? false;
options.visible = options?.visible ?? true;
options.reboot = options?.reboot ?? false;
public static deleteConfigurationKey(
chargingStation: ChargingStation,
key: string | StandardParametersKey,
public static deleteConfigurationKey(
chargingStation: ChargingStation,
key: string | StandardParametersKey,
- params: { save?: boolean; caseInsensitive?: boolean } = { save: true, caseInsensitive: false }
- ): ConfigurationKey[] {
+ params: DeleteConfigurationKeyParams = { save: true, caseInsensitive: false }
+ ): ConfigurationKey[] | undefined {