X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Ftypes%2Focpp%2FConfiguration.ts;h=f60c4f1c06712188ffdcc8bff47dc801e6c3a19f;hb=dbd54e98c369aa3032a76a066c9ff9828ef5a742;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..f60c4f1c 100644 --- a/src/types/ocpp/Configuration.ts +++ b/src/types/ocpp/Configuration.ts @@ -1,23 +1,26 @@ -import { OCPP16StandardParametersKey, OCPP16SupportedFeatureProfiles, OCPP16VendorDefaultParametersKey } from './1.6/Configuration'; - -import { JsonType } from '../JsonType'; +import type { JsonObject } from '../JsonType'; +import { + OCPP16StandardParametersKey, + OCPP16SupportedFeatureProfiles, + OCPP16VendorDefaultParametersKey, +} from './1.6/Configuration'; 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 +31,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;