X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2FConfiguration.ts;h=5aa96818854d02fcff2373345c5fb7f15c4ddf07;hb=f3a490e6bd184709de4377d81a459bf49242cae1;hp=b13a24ba2be17c6c04f5c65f10eef3b5c2ed4828;hpb=c3ee95af4edd541595e3873c8aa4c93d38e59474;p=e-mobility-charging-stations-simulator.git diff --git a/src/types/ocpp/Configuration.ts b/src/types/ocpp/Configuration.ts index b13a24ba..5aa96818 100644 --- a/src/types/ocpp/Configuration.ts +++ b/src/types/ocpp/Configuration.ts @@ -1,23 +1,27 @@ -import { OCPP16StandardParametersKey, OCPP16SupportedFeatureProfiles, OCPP16VendorDefaultParametersKey } from './1.6/Configuration'; +import { + OCPP16StandardParametersKey, + OCPP16SupportedFeatureProfiles, + OCPP16VendorDefaultParametersKey, +} from './1.6/Configuration'; -import { JsonType } from '../JsonType'; +import { JsonObject } from '../JsonType'; export type StandardParametersKey = OCPP16StandardParametersKey; export const StandardParametersKey = { - ...OCPP16StandardParametersKey + ...OCPP16StandardParametersKey, }; export type VendorDefaultParametersKey = OCPP16VendorDefaultParametersKey; export const VendorDefaultParametersKey = { - ...OCPP16VendorDefaultParametersKey + ...OCPP16VendorDefaultParametersKey, }; export type SupportedFeatureProfiles = OCPP16SupportedFeatureProfiles; export const SupportedFeatureProfiles = { - ...OCPP16SupportedFeatureProfiles + ...OCPP16SupportedFeatureProfiles, }; export enum ConnectorPhaseRotation { @@ -28,10 +32,10 @@ export enum ConnectorPhaseRotation { SRT = 'SRT', STR = 'STR', TRS = 'TRS', - TSR = 'TSR' + TSR = 'TSR', } -export interface OCPPConfigurationKey extends JsonType { +export interface OCPPConfigurationKey extends JsonObject { key: string | StandardParametersKey; readonly: boolean; value?: string;