import { RegisterCode } from './RegisterCode'; export type RegisterFormat = 'numeric' | 'text' | 'time' | 'date' | 'weekday' | 'bitfield' | 'datetime'; export type UnitOfMeasure = | 'kWh' | 'kVArh' | 'kW' | 'kVAr' | 'A' | 'V' | 'VA' | 'days' | 'hours' | 'seconds' | 'Hz'; export interface ReadRegister { record_code: RegisterCode; value_read: string | null; unit_of_measurement: UnitOfMeasure | null; } export interface RegisterModel { code: RegisterCode; format: RegisterFormat; unitOfMeasure?: UnitOfMeasure; } export const createReadRegister = (registerModel: RegisterModel, value: string | null): ReadRegister => { return { record_code: registerModel.code, value_read: value, unit_of_measurement: registerModel.unitOfMeasure ?? null, }; }; export const SerialNumberModel: RegisterModel = { code: RegisterCode.SerialNumber, format: 'numeric', }; export const TimeNowModel: RegisterModel = { code: RegisterCode.TimeNow, format: 'time', }; export const DateNowModel: RegisterModel = { code: RegisterCode.DateNow, format: 'date', }; export const DateTimeNowModel: RegisterModel = { code: RegisterCode.DateTimeNow, format: 'datetime', }; export const MeterModelModel: RegisterModel = { code: RegisterCode.MeterModel, format: 'text', }; export const PowerFailCounterModel: RegisterModel = { code: RegisterCode.PowerFailCounter, format: 'numeric', }; export const PhaseAPowerFailCounterModel: RegisterModel = { code: RegisterCode.PhaseAPowerFailCounter, format: 'numeric', }; export const PhaseBPowerFailCounterModel: RegisterModel = { code: RegisterCode.PhaseBPowerFailCounter, format: 'numeric', }; export const PhaseCPowerFailCounterModel: RegisterModel = { code: RegisterCode.PhaseCPowerFailCounter, format: 'numeric', }; export const MainCoverOpeningCounterModel: RegisterModel = { code: RegisterCode.MainCoverOpeningCounter, format: 'numeric', }; export const MagneticFieldDetectionCounterModel: RegisterModel = { code: RegisterCode.MagneticFieldDetectionCounter, format: 'numeric', }; export const ParametersChangeCounterModel: RegisterModel = { code: RegisterCode.ParametersChangeCounter, format: 'numeric', }; export const BatteryPercentageModel: RegisterModel = { code: RegisterCode.BatteryPercentage, format: 'numeric', }; export const FraudFlagsModel: RegisterModel = { code: RegisterCode.FraudFlags, format: 'bitfield', }; export const EarthFaultEnergyModel: RegisterModel = { code: RegisterCode.EarthFaultEnergy, format: 'numeric', }; export const ReverseEnergyCountModel: RegisterModel = { code: RegisterCode.ReverseEnergyCount, format: 'numeric', }; export const FreeTextModel: RegisterModel = { code: RegisterCode.FreeText, format: 'text', }; export const DeviceEventCounterModel: RegisterModel = { code: RegisterCode.DeviceEventCounter, format: 'numeric', }; export const CalibrationReferenceVoltageModel: RegisterModel = { code: RegisterCode.CalibrationReferenceVoltage, format: 'numeric', unitOfMeasure: 'V', }; export const EventCounter98_01_05Model: RegisterModel = { code: RegisterCode.EventCounter98_01_05, format: 'numeric', }; export const EventCounter98_01_06Model: RegisterModel = { code: RegisterCode.EventCounter98_01_06, format: 'numeric', }; export const EventCounter96_62_05Model: RegisterModel = { code: RegisterCode.EventCounter96_62_05, format: 'numeric', }; export const EventCounter96_62_06Model: RegisterModel = { code: RegisterCode.EventCounter96_62_06, format: 'numeric', }; export const EventCounter96_62_07Model: RegisterModel = { code: RegisterCode.EventCounter96_62_07, format: 'numeric', }; export const TamperEventCounterModel: RegisterModel = { code: RegisterCode.TamperEventCounter, format: 'numeric', }; export const BatteryEventCounterModel: RegisterModel = { code: RegisterCode.BatteryEventCounter, format: 'numeric', }; export const LineQualityEventCounterModel: RegisterModel = { code: RegisterCode.LineQualityEventCounter, format: 'numeric', }; export const ConfigurationNumberModel: RegisterModel = { code: RegisterCode.ConfigurationNumber, format: 'numeric', }; export const TotalActiveEnergyImportModel: RegisterModel = { code: RegisterCode.TotalActiveEnergyImport, format: 'numeric', unitOfMeasure: 'kWh', }; export const TotalActiveEnergyExportModel: RegisterModel = { code: RegisterCode.TotalActiveEnergyExport, format: 'numeric', unitOfMeasure: 'kWh', }; export const TotalActiveEnergyImportPreviousModel: RegisterModel = { code: RegisterCode.TotalActiveEnergyImportPrevious, format: 'numeric', unitOfMeasure: 'kWh', }; export const FrequencyModel: RegisterModel = { code: RegisterCode.Frequency, format: 'numeric', unitOfMeasure: 'Hz', }; export const TotalActiveEnergyExportPreviousModel: RegisterModel = { code: RegisterCode.TotalActiveEnergyExportPrevious, format: 'numeric', unitOfMeasure: 'kWh', }; export const TimeToNextDemandAutoResetModel: RegisterModel = { code: RegisterCode.TimeToNextDemandAutoReset, format: 'numeric', unitOfMeasure: 'seconds', }; export const TotalActiveEnergyAbsoluteModel: RegisterModel = { code: RegisterCode.TotalActiveEnergyAbsolute, format: 'numeric', unitOfMeasure: 'kWh', }; export const TotalActiveEnergyAbsolutePreviousModel: RegisterModel = { code: RegisterCode.TotalActiveEnergyAbsolutePrevious, format: 'numeric', unitOfMeasure: 'kWh', }; export const Tariff1ActiveEnergyImportModel: RegisterModel = { code: RegisterCode.Tariff1ActiveEnergyImport, format: 'numeric', unitOfMeasure: 'kWh', }; export const Tariff2ActiveEnergyImportModel: RegisterModel = { code: RegisterCode.Tariff2ActiveEnergyImport, format: 'numeric', unitOfMeasure: 'kWh', }; export const Tariff3ActiveEnergyImportModel: RegisterModel = { code: RegisterCode.Tariff3ActiveEnergyImport, format: 'numeric', unitOfMeasure: 'kWh', }; export const Tariff1ActiveEnergyAbsoluteModel: RegisterModel = { code: RegisterCode.Tariff1ActiveEnergyAbsolute, format: 'numeric', unitOfMeasure: 'kWh', }; export const Tariff2ActiveEnergyAbsoluteModel: RegisterModel = { code: RegisterCode.Tariff2ActiveEnergyAbsolute, format: 'numeric', unitOfMeasure: 'kWh', }; export const Tariff3ActiveEnergyAbsoluteModel: RegisterModel = { code: RegisterCode.Tariff3ActiveEnergyAbsolute, format: 'numeric', unitOfMeasure: 'kWh', }; export const TotalInductiveReactiveEnergyImportModel: RegisterModel = { code: RegisterCode.TotalInductiveReactiveEnergyImport, format: 'numeric', unitOfMeasure: 'kVArh', }; export const TotalInductiveReactiveEnergyImportPreviousModel: RegisterModel = { code: RegisterCode.TotalInductiveReactiveEnergyImportPrevious, format: 'numeric', unitOfMeasure: 'kVArh', }; export const TotalInductiveReactiveEnergyExportPreviousModel: RegisterModel = { code: RegisterCode.TotalInductiveReactiveEnergyExportPrevious, format: 'numeric', unitOfMeasure: 'kVArh', }; export const TotalInductiveReactiveEnergyExportModel: RegisterModel = { code: RegisterCode.TotalInductiveReactiveEnergyExport, format: 'numeric', unitOfMeasure: 'kVArh', }; export const TotalInductiveReactiveEnergyAbsoluteModel: RegisterModel = { code: RegisterCode.TotalInductiveReactiveEnergyAbsolute, format: 'numeric', unitOfMeasure: 'kVArh', }; export const Tariff1InductiveReactiveEnergyImportModel: RegisterModel = { code: RegisterCode.Tariff1InductiveReactiveEnergyImport, format: 'numeric', unitOfMeasure: 'kVArh', }; export const Tariff2InductiveReactiveEnergyImportModel: RegisterModel = { code: RegisterCode.Tariff2InductiveReactiveEnergyImport, format: 'numeric', unitOfMeasure: 'kVArh', }; export const Tariff3InductiveReactiveEnergyImportModel: RegisterModel = { code: RegisterCode.Tariff3InductiveReactiveEnergyImport, format: 'numeric', unitOfMeasure: 'kVArh', }; export const Tariff1InductiveReactiveEnergyAbsoluteModel: RegisterModel = { code: RegisterCode.Tariff1InductiveReactiveEnergyAbsolute, format: 'numeric', unitOfMeasure: 'kVArh', }; export const Tariff1CapacitiveReactiveEnergyAbsoluteModel: RegisterModel = { code: RegisterCode.Tariff1CapacitiveReactiveEnergyAbsolute, format: 'numeric', unitOfMeasure: 'kVArh', }; export const Tariff2InductiveReactiveEnergyAbsoluteModel: RegisterModel = { code: RegisterCode.Tariff2InductiveReactiveEnergyAbsolute, format: 'numeric', unitOfMeasure: 'kVArh', }; export const Tariff2CapacitiveReactiveEnergyAbsoluteModel: RegisterModel = { code: RegisterCode.Tariff2CapacitiveReactiveEnergyAbsolute, format: 'numeric', unitOfMeasure: 'kVArh', }; export const StatusFlags1Model: RegisterModel = { code: RegisterCode.StatusFlags1, format: 'bitfield', }; export const StatusFlags2Model: RegisterModel = { code: RegisterCode.StatusFlags2, format: 'bitfield', }; export const NoLoadTimeModel: RegisterModel = { code: RegisterCode.NoLoadTime, format: 'numeric', unitOfMeasure: 'hours', }; export const ErrorFlagsModel: RegisterModel = { code: RegisterCode.ErrorFlags, format: 'bitfield', }; export const TotalServiceTimeModel: RegisterModel = { code: RegisterCode.TotalServiceTime, format: 'numeric', unitOfMeasure: 'hours', }; export const TotalReactiveEnergyExportModel: RegisterModel = { code: RegisterCode.TotalReactiveEnergyExport, format: 'numeric', unitOfMeasure: 'kVArh', }; export const TotalReactiveEnergyImportModel: RegisterModel = { code: RegisterCode.TotalReactiveEnergyImport, format: 'numeric', unitOfMeasure: 'kVArh', }; export const TotalCapacitiveReactiveEnergyAbsoluteModel: RegisterModel = { code: RegisterCode.TotalCapacitiveReactiveEnergyAbsolute, format: 'numeric', unitOfMeasure: 'kVArh', }; export const TotalCapacitiveReactiveEnergyImportModel: RegisterModel = { code: RegisterCode.TotalCapacitiveReactiveEnergyImport, format: 'numeric', unitOfMeasure: 'kVArh', }; export const TotalCapacitiveReactiveEnergyExportModel: RegisterModel = { code: RegisterCode.TotalCapacitiveReactiveEnergyExport, format: 'numeric', unitOfMeasure: 'kVArh', }; export const TotalAbsoluteReactiveEnergyModel: RegisterModel = { code: RegisterCode.TotalAbsoluteReactiveEnergy, format: 'numeric', unitOfMeasure: 'kVArh', }; export const EarthFaultsCounter: RegisterModel = { code: RegisterCode.EarthFaultsCounter, format: 'numeric', }; export const TotalReactiveEnergyExportPreviousModel: RegisterModel = { code: RegisterCode.TotalReactiveEnergyExportPrevious, format: 'numeric', unitOfMeasure: 'kVArh', }; export const TotalReactiveEnergyImportPreviousModel: RegisterModel = { code: RegisterCode.TotalReactiveEnergyImportPrevious, format: 'numeric', unitOfMeasure: 'kVArh', }; export const Tariff1ReactiveEnergyExportModel: RegisterModel = { code: RegisterCode.Tariff1ReactiveEnergyExport, format: 'numeric', unitOfMeasure: 'kVArh', }; export const PowerFactorModel: RegisterModel = { code: RegisterCode.PowerFactor, format: 'numeric', }; export const PhaseAPowerFactorModel: RegisterModel = { code: RegisterCode.PhaseAPowerFactor, format: 'numeric', }; export const PhaseBPowerFactorModel: RegisterModel = { code: RegisterCode.PhaseBPowerFactor, format: 'numeric', }; export const PhaseCPowerFactorModel: RegisterModel = { code: RegisterCode.PhaseCPowerFactor, format: 'numeric', }; export const CurrentPhaseAModel: RegisterModel = { code: RegisterCode.CurrentPhaseA, format: 'numeric', unitOfMeasure: 'A', }; export const NeutralCurrentModel: RegisterModel = { code: RegisterCode.NeutralCurrent, format: 'numeric', unitOfMeasure: 'A', }; export const CurrentPhaseBModel: RegisterModel = { code: RegisterCode.CurrentPhaseB, format: 'numeric', unitOfMeasure: 'A', }; export const CurrentPhaseCModel: RegisterModel = { code: RegisterCode.CurrentPhaseC, format: 'numeric', unitOfMeasure: 'A', }; export const VoltagePhaseAModel: RegisterModel = { code: RegisterCode.VoltagePhaseA, format: 'numeric', unitOfMeasure: 'V', }; export const VoltagePhaseBModel: RegisterModel = { code: RegisterCode.VoltagePhaseB, format: 'numeric', unitOfMeasure: 'V', }; export const VoltagePhaseCModel: RegisterModel = { code: RegisterCode.VoltagePhaseC, format: 'numeric', unitOfMeasure: 'V', }; export const ApparentPowerPhaseAModel: RegisterModel = { code: RegisterCode.ApparentPowerPhaseA, format: 'numeric', unitOfMeasure: 'VA', }; export const ApparentPowerPhaseBModel: RegisterModel = { code: RegisterCode.ApparentPowerPhaseB, format: 'numeric', unitOfMeasure: 'VA', }; export const ApparentPowerPhaseCModel: RegisterModel = { code: RegisterCode.ApparentPowerPhaseC, format: 'numeric', unitOfMeasure: 'VA', }; export const AntiCreepTimeModel: RegisterModel = { code: RegisterCode.AntiCreepTime, format: 'numeric', unitOfMeasure: 'hours', }; export const DemandResetCounterModel: RegisterModel = { code: RegisterCode.DemandResetCounter, format: 'numeric', }; export const DemandIntervalModel: RegisterModel = { code: RegisterCode.DemandInterval, format: 'numeric', unitOfMeasure: 'seconds', }; export const DemandAutoResetPeriodModel: RegisterModel = { code: RegisterCode.DemandAutoResetPeriod, format: 'numeric', unitOfMeasure: 'days', }; export const OverCurrentCounterModel: RegisterModel = { code: RegisterCode.OverCurrentCounter, format: 'numeric', }; export const PhaseAReverseCountModel: RegisterModel = { code: RegisterCode.PhaseAReverseCount, format: 'numeric', }; export const PhaseBReverseCountModel: RegisterModel = { code: RegisterCode.PhaseBReverseCount, format: 'numeric', }; export const PhaseCReverseCountModel: RegisterModel = { code: RegisterCode.PhaseCReverseCount, format: 'numeric', }; export const PhaseFailCounterModel: RegisterModel = { code: RegisterCode.PhaseFailCounter, format: 'numeric', }; export const RegisterResetCounterModel: RegisterModel = { code: RegisterCode.RegisterResetCounter, format: 'numeric', }; export const PresentIntervalDemandImportModel: RegisterModel = { code: RegisterCode.PresentIntervalDemandImport, format: 'numeric', unitOfMeasure: 'kW', }; export const PresentIntervalDemandExportModel: RegisterModel = { code: RegisterCode.PresentIntervalDemandExport, format: 'numeric', unitOfMeasure: 'kW', }; export const PresentIntervalReactiveDemandImportModel: RegisterModel = { code: RegisterCode.PresentIntervalReactiveDemandImport, format: 'numeric', unitOfMeasure: 'kVAr', }; export const PresentIntervalReactiveDemandExportModel: RegisterModel = { code: RegisterCode.PresentIntervalReactiveDemandExport, format: 'numeric', unitOfMeasure: 'kVAr', }; export const LastIntervalDemandImportModel: RegisterModel = { code: RegisterCode.LastIntervalDemandImport, format: 'numeric', unitOfMeasure: 'kVAr', }; export const LastIntervalDemandExportModel: RegisterModel = { code: RegisterCode.LastIntervalDemandExport, format: 'numeric', unitOfMeasure: 'kVAr', }; export const LastIntervalReactiveDemandImportModel: RegisterModel = { code: RegisterCode.LastIntervalReactiveDemandImport, format: 'numeric', unitOfMeasure: 'kVAr', }; export const LastIntervalReactiveDemandExportModel: RegisterModel = { code: RegisterCode.LastIntervalReactiveDemandExport, format: 'numeric', unitOfMeasure: 'kVAr', }; export const TotalMaximumDemandImportPreviousModel: RegisterModel = { code: RegisterCode.TotalMaximumDemandImportPrevious, format: 'numeric', unitOfMeasure: 'kW', }; export const TotalMaximumDemandAbsolutePreviousModel: RegisterModel = { code: RegisterCode.TotalMaximumDemandAbsolutePrevious, format: 'numeric', unitOfMeasure: 'kW', }; export const TotalMaximumDemandAbsoluteModel: RegisterModel = { code: RegisterCode.TotalMaximumDemandAbsolute, format: 'numeric', unitOfMeasure: 'kW', }; export const TotalMaximumDemandExportPreviousModel: RegisterModel = { code: RegisterCode.TotalMaximumDemandExportPrevious, format: 'numeric', unitOfMeasure: 'kW', }; export const TotalCumulativeMaximumDemandImportModel: RegisterModel = { code: RegisterCode.TotalCumulativeMaximumDemandImport, format: 'numeric', unitOfMeasure: 'kW', }; export const TotalCumulativeMaximumDemandAbsoluteModel: RegisterModel = { code: RegisterCode.TotalCumulativeMaximumDemandAbsolute, format: 'numeric', unitOfMeasure: 'kW', }; export const TotalCumulativeMaximumDemandExportModel: RegisterModel = { code: RegisterCode.TotalCumulativeMaximumDemandExport, format: 'numeric', unitOfMeasure: 'kW', }; export const TotalCumulativeMaximumDemandImportPreviousModel: RegisterModel = { code: RegisterCode.TotalCumulativeMaximumDemandImportPrevious, format: 'numeric', unitOfMeasure: 'kW', }; export const TotalCumulativeMaximumDemandExportPreviousModel: RegisterModel = { code: RegisterCode.TotalCumulativeMaximumDemandExportPrevious, format: 'numeric', unitOfMeasure: 'kW', }; export const TotalCumulativeMaximumReactiveDemandImportModel: RegisterModel = { code: RegisterCode.TotalCumulativeMaximumReactiveDemandImport, format: 'numeric', unitOfMeasure: 'kVAr', }; export const TotalCumulativeMaximumReactiveDemandExportModel: RegisterModel = { code: RegisterCode.TotalCumulativeMaximumReactiveDemandExport, format: 'numeric', unitOfMeasure: 'kVAr', }; export const TotalCumulativeMaximumReactiveDemandImportPreviousModel: RegisterModel = { code: RegisterCode.TotalCumulativeMaximumReactiveDemandImportPrevious, format: 'numeric', unitOfMeasure: 'kVAr', }; export const TotalCumulativeMaximumReactiveDemandExportPreviousModel: RegisterModel = { code: RegisterCode.TotalCumulativeMaximumReactiveDemandExportPrevious, format: 'numeric', unitOfMeasure: 'kVAr', }; export const TotalMaximumDemandImportModel: RegisterModel = { code: RegisterCode.TotalMaximumDemandImport, format: 'numeric', unitOfMeasure: 'kW', }; export const TotalMaximumDemandExportModel: RegisterModel = { code: RegisterCode.TotalMaximumDemandExport, format: 'numeric', unitOfMeasure: 'kW', }; export const TotalMaximumReactiveDemandImportModel: RegisterModel = { code: RegisterCode.TotalMaximumReactiveDemandImport, format: 'numeric', unitOfMeasure: 'kVAr', }; export const TotalMaximumReactiveDemandExportModel: RegisterModel = { code: RegisterCode.TotalMaximumReactiveDemandExport, format: 'numeric', unitOfMeasure: 'kVAr', }; export const TotalMaximumReactiveDemandImportPreviousModel: RegisterModel = { code: RegisterCode.TotalMaximumReactiveDemandImportPrevious, format: 'numeric', unitOfMeasure: 'kVAr', }; export const TotalMaximumReactiveDemandExportPreviousModel: RegisterModel = { code: RegisterCode.TotalMaximumReactiveDemandExportPrevious, format: 'numeric', unitOfMeasure: 'kVAr', }; export const FirmwareVersionModel: RegisterModel = { code: RegisterCode.FirmwareVersion, format: 'text', }; export const ManufacturingSerialNumberModel: RegisterModel = { code: RegisterCode.ManufacturingSerialNumber, format: 'numeric', }; export const PowerOnTimeModel: RegisterModel = { code: RegisterCode.PowerOnTime, format: 'numeric', unitOfMeasure: 'hours', }; export const PowerOffTime: RegisterModel = { code: RegisterCode.PowerOffTime, format: 'numeric', unitOfMeasure: 'hours', }; export const WatchdogCounterModel: RegisterModel = { code: RegisterCode.WatchdogCounter, format: 'numeric', }; export const TerminalCoverOpeningCounter: RegisterModel = { code: RegisterCode.TerminalCoverOpeningCounter, format: 'numeric', }; export const BatteryVoltageModel: RegisterModel = { code: RegisterCode.BatteryVoltage, format: 'numeric', unitOfMeasure: 'V', }; export const MemoryFailCounterModel: RegisterModel = { code: RegisterCode.MemoryFailCounter, format: 'numeric', }; export const HexPayloadModel: RegisterModel = { code: RegisterCode.HexPayload, format: 'text', }; export const ReadAtModel: RegisterModel = { code: RegisterCode.ReadAt, format: 'text', }; export const WeekdayNowModel: RegisterModel = { code: RegisterCode.WeekdayNow, format: 'text', }; export const KhModel: RegisterModel = { code: RegisterCode.Kh, format: 'text', }; export const Tariff1ActiveEnergyImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff1ActiveEnergyImportPrevious, format: 'numeric', unitOfMeasure: 'kWh', }; export const Tariff2ActiveEnergyImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff2ActiveEnergyImportPrevious, format: 'numeric', unitOfMeasure: 'kWh', }; export const Tariff3ActiveEnergyImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff3ActiveEnergyImportPrevious, format: 'numeric', unitOfMeasure: 'kWh', }; export const Tariff4ActiveEnergyImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff4ActiveEnergyImportPrevious, format: 'numeric', unitOfMeasure: 'kWh', }; export const Tariff4ActiveEnergyImportModel: RegisterModel = { code: RegisterCode.Tariff4ActiveEnergyImport, format: 'numeric', unitOfMeasure: 'kWh', }; export const Tariff1MaximumDemandImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff1MaximumDemandImportPrevious, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff2MaximumDemandImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff2MaximumDemandImportPrevious, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff3MaximumDemandImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff3MaximumDemandImportPrevious, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff4MaximumDemandImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff4MaximumDemandImportPrevious, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff4MaximumDemandImportModel: RegisterModel = { code: RegisterCode.Tariff4MaximumDemandImport, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff1CumulativeMaximumDemandImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff1CumulativeMaximumDemandImportPrevious, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff2CumulativeMaximumDemandImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff2CumulativeMaximumDemandImportPrevious, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff3CumulativeMaximumDemandImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff3CumulativeMaximumDemandImportPrevious, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff4CumulativeMaximumDemandImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff4CumulativeMaximumDemandImportPrevious, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff4CumulativeMaximumDemandImportModel: RegisterModel = { code: RegisterCode.Tariff4CumulativeMaximumDemandImport, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff1CumulativeReactiveMaximumDemandImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff1CumulativeReactiveMaximumDemandImportPrevious, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff1CumulativeReactiveMaximumDemandImportModel: RegisterModel = { code: RegisterCode.Tariff1CumulativeReactiveMaximumDemandImport, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff2CumulativeReactiveMaximumDemandImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff2CumulativeReactiveMaximumDemandImportPrevious, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff2CumulativeReactiveMaximumDemandImportModel: RegisterModel = { code: RegisterCode.Tariff2CumulativeReactiveMaximumDemandImport, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff3CumulativeReactiveMaximumDemandImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff3CumulativeReactiveMaximumDemandImportPrevious, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff3CumulativeReactiveMaximumDemandImportModel: RegisterModel = { code: RegisterCode.Tariff3CumulativeReactiveMaximumDemandImport, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff4CumulativeReactiveMaximumDemandImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff4CumulativeReactiveMaximumDemandImportPrevious, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff4CumulativeReactiveMaximumDemandImportModel: RegisterModel = { code: RegisterCode.Tariff4CumulativeReactiveMaximumDemandImport, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff1MaximumDemandImportDatePreviousModel: RegisterModel = { code: RegisterCode.Tariff1MaximumDemandImportDatePrevious, format: 'date', }; export const Tariff1MaximumDemandImportDateModel: RegisterModel = { code: RegisterCode.Tariff1MaximumDemandImportDate, format: 'date', }; export const Tariff2MaximumDemandImportDatePreviousModel: RegisterModel = { code: RegisterCode.Tariff2MaximumDemandImportDatePrevious, format: 'date', }; export const Tariff2MaximumDemandImportDateModel: RegisterModel = { code: RegisterCode.Tariff2MaximumDemandImportDate, format: 'date', }; export const Tariff3MaximumDemandImportDatePreviousModel: RegisterModel = { code: RegisterCode.Tariff3MaximumDemandImportDatePrevious, format: 'date', }; export const Tariff3MaximumDemandImportDateModel: RegisterModel = { code: RegisterCode.Tariff3MaximumDemandImportDate, format: 'date', }; export const Tariff4MaximumDemandImportDatePreviousModel: RegisterModel = { code: RegisterCode.Tariff4MaximumDemandImportDatePrevious, format: 'date', }; export const Tariff4MaximumDemandImportDateModel: RegisterModel = { code: RegisterCode.Tariff4MaximumDemandImportDate, format: 'date', }; export const Tariff1MaximumDemandImportTimePreviousModel: RegisterModel = { code: RegisterCode.Tariff1MaximumDemandImportTimePrevious, format: 'time', }; export const Tariff1MaximumDemandImportTimeModel: RegisterModel = { code: RegisterCode.Tariff1MaximumDemandImportTime, format: 'time', }; export const Tariff2MaximumDemandImportTimePreviousModel: RegisterModel = { code: RegisterCode.Tariff2MaximumDemandImportTimePrevious, format: 'time', }; export const Tariff2MaximumDemandImportTimeModel: RegisterModel = { code: RegisterCode.Tariff2MaximumDemandImportTime, format: 'time', }; export const Tariff3MaximumDemandImportTimePreviousModel: RegisterModel = { code: RegisterCode.Tariff3MaximumDemandImportTimePrevious, format: 'time', }; export const Tariff3MaximumDemandImportTimeModel: RegisterModel = { code: RegisterCode.Tariff3MaximumDemandImportTime, format: 'time', }; export const Tariff4MaximumDemandImportTimePreviousModel: RegisterModel = { code: RegisterCode.Tariff4MaximumDemandImportTimePrevious, format: 'time', }; export const Tariff4MaximumDemandImportTimeModel: RegisterModel = { code: RegisterCode.Tariff4MaximumDemandImportTime, format: 'time', }; export const Tariff1ReactiveEnergyImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff1ReactiveEnergyImportPrevious, format: 'numeric', unitOfMeasure: 'kVArh', }; export const Tariff1ReactiveEnergyImportModel: RegisterModel = { code: RegisterCode.Tariff1ReactiveEnergyImport, format: 'numeric', unitOfMeasure: 'kVArh', }; export const Tariff2ReactiveEnergyImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff2ReactiveEnergyImportPrevious, format: 'numeric', unitOfMeasure: 'kVArh', }; export const Tariff2ReactiveEnergyImportModel: RegisterModel = { code: RegisterCode.Tariff2ReactiveEnergyImport, format: 'numeric', unitOfMeasure: 'kVArh', }; export const Tariff3ReactiveEnergyImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff3ReactiveEnergyImportPrevious, format: 'numeric', unitOfMeasure: 'kVArh', }; export const Tariff3ReactiveEnergyImportModel: RegisterModel = { code: RegisterCode.Tariff3ReactiveEnergyImport, format: 'numeric', unitOfMeasure: 'kVArh', }; export const Tariff4ReactiveEnergyImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff4ReactiveEnergyImportPrevious, format: 'numeric', unitOfMeasure: 'kVArh', }; export const Tariff4ReactiveEnergyImportModel: RegisterModel = { code: RegisterCode.Tariff4ReactiveEnergyImport, format: 'numeric', unitOfMeasure: 'kVArh', }; export const Tariff1ReactiveMaximumDemandImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff1ReactiveMaximumDemandImportPrevious, format: 'numeric', unitOfMeasure: 'kVAr', }; export const Tariff1ReactiveMaximumDemandImportModel: RegisterModel = { code: RegisterCode.Tariff1ReactiveMaximumDemandImport, format: 'numeric', unitOfMeasure: 'kVAr', }; export const Tariff2ReactiveMaximumDemandImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff2ReactiveMaximumDemandImportPrevious, format: 'numeric', unitOfMeasure: 'kVAr', }; export const Tariff2ReactiveMaximumDemandImportModel: RegisterModel = { code: RegisterCode.Tariff2ReactiveMaximumDemandImport, format: 'numeric', unitOfMeasure: 'kVAr', }; export const Tariff3ReactiveMaximumDemandImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff3ReactiveMaximumDemandImportPrevious, format: 'numeric', unitOfMeasure: 'kVAr', }; export const Tariff3ReactiveMaximumDemandImportModel: RegisterModel = { code: RegisterCode.Tariff3ReactiveMaximumDemandImport, format: 'numeric', unitOfMeasure: 'kVAr', }; export const Tariff4ReactiveMaximumDemandImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff4ReactiveMaximumDemandImportPrevious, format: 'numeric', unitOfMeasure: 'kVAr', }; export const Tariff4ReactiveMaximumDemandImportModel: RegisterModel = { code: RegisterCode.Tariff4ReactiveMaximumDemandImport, format: 'numeric', unitOfMeasure: 'kVAr', }; export const Tariff1MaximumReactiveDemandImportDatePreviousModel: RegisterModel = { code: RegisterCode.Tariff1MaximumReactiveDemandImportDatePrevious, format: 'date', }; export const Tariff1MaximumReactiveDemandImportDateModel: RegisterModel = { code: RegisterCode.Tariff1MaximumReactiveDemandImportDate, format: 'date', }; export const Tariff2MaximumReactiveDemandImportDatePreviousModel: RegisterModel = { code: RegisterCode.Tariff2MaximumReactiveDemandImportDatePrevious, format: 'date', }; export const Tariff2MaximumReactiveDemandImportDateModel: RegisterModel = { code: RegisterCode.Tariff2MaximumReactiveDemandImportDate, format: 'date', }; export const Tariff3MaximumReactiveDemandImportDatePreviousModel: RegisterModel = { code: RegisterCode.Tariff3MaximumReactiveDemandImportDatePrevious, format: 'date', }; export const Tariff3MaximumReactiveDemandImportDateModel: RegisterModel = { code: RegisterCode.Tariff3MaximumReactiveDemandImportDate, format: 'date', }; export const Tariff4MaximumReactiveDemandImportDatePreviousModel: RegisterModel = { code: RegisterCode.Tariff4MaximumReactiveDemandImportDatePrevious, format: 'date', }; export const Tariff4MaximumReactiveDemandImportDateModel: RegisterModel = { code: RegisterCode.Tariff4MaximumReactiveDemandImportDate, format: 'date', }; export const Tariff1MaximumReactiveDemandImportTimePreviousModel: RegisterModel = { code: RegisterCode.Tariff1MaximumReactiveDemandImportTimePrevious, format: 'time', }; export const Tariff1MaximumReactiveDemandImportTimeModel: RegisterModel = { code: RegisterCode.Tariff1MaximumReactiveDemandImportTime, format: 'time', }; export const Tariff2MaximumReactiveDemandImportTimePreviousModel: RegisterModel = { code: RegisterCode.Tariff2MaximumReactiveDemandImportTimePrevious, format: 'time', }; export const Tariff2MaximumReactiveDemandImportTimeModel: RegisterModel = { code: RegisterCode.Tariff2MaximumReactiveDemandImportTime, format: 'time', }; export const Tariff3MaximumReactiveDemandImportTimePreviousModel: RegisterModel = { code: RegisterCode.Tariff3MaximumReactiveDemandImportTimePrevious, format: 'time', }; export const Tariff3MaximumReactiveDemandImportTimeModel: RegisterModel = { code: RegisterCode.Tariff3MaximumReactiveDemandImportTime, format: 'time', }; export const Tariff4MaximumReactiveDemandImportTimePreviousModel: RegisterModel = { code: RegisterCode.Tariff4MaximumReactiveDemandImportTimePrevious, format: 'time', }; export const Tariff4MaximumReactiveDemandImportTimeModel: RegisterModel = { code: RegisterCode.Tariff4MaximumReactiveDemandImportTime, format: 'time', }; export const Tariff1ReactiveCumulativeMaximumDemandImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff1ReactiveCumulativeMaximumDemandImportPrevious, format: 'numeric', unitOfMeasure: 'kVAr', }; export const Tariff1ReactiveCumulativeMaximumDemandImportModel: RegisterModel = { code: RegisterCode.Tariff1ReactiveCumulativeMaximumDemandImport, format: 'numeric', unitOfMeasure: 'kVAr', }; export const Tariff2ReactiveCumulativeMaximumDemandImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff2ReactiveCumulativeMaximumDemandImportPrevious, format: 'numeric', unitOfMeasure: 'kVAr', }; export const Tariff2ReactiveCumulativeMaximumDemandImportModel: RegisterModel = { code: RegisterCode.Tariff2ReactiveCumulativeMaximumDemandImport, format: 'numeric', unitOfMeasure: 'kVAr', }; export const Tariff3ReactiveCumulativeMaximumDemandImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff3ReactiveCumulativeMaximumDemandImportPrevious, format: 'numeric', unitOfMeasure: 'kVAr', }; export const Tariff3ReactiveCumulativeMaximumDemandImportModel: RegisterModel = { code: RegisterCode.Tariff3ReactiveCumulativeMaximumDemandImport, format: 'numeric', unitOfMeasure: 'kVAr', }; export const Tariff4ReactiveCumulativeMaximumDemandImportPreviousModel: RegisterModel = { code: RegisterCode.Tariff4ReactiveCumulativeMaximumDemandImportPrevious, format: 'numeric', unitOfMeasure: 'kVAr', }; export const Tariff4ReactiveCumulativeMaximumDemandImportModel: RegisterModel = { code: RegisterCode.Tariff4ReactiveCumulativeMaximumDemandImport, format: 'numeric', unitOfMeasure: 'kVAr', }; export const TotalCapacitiveReactiveEnergyExportPreviousModel: RegisterModel = { code: RegisterCode.TotalCapacitiveReactiveEnergyExportPrevious, format: 'numeric', unitOfMeasure: 'kVArh', }; export const TotalCapacitiveReactiveEnergyImportPreviousModel: RegisterModel = { code: RegisterCode.TotalCapacitiveReactiveEnergyImportPrevious, format: 'numeric', unitOfMeasure: 'kVArh', }; export const PowerFactorPreviousModel: RegisterModel = { code: RegisterCode.PowerFactorPrevious, format: 'numeric', }; export const DemandResetDateModel: RegisterModel = { code: RegisterCode.DemandResetDate, format: 'date', }; export const DemandResetTimeModel: RegisterModel = { code: RegisterCode.DemandResetTime, format: 'time', }; export const DemandResetSeasonModel: RegisterModel = { code: RegisterCode.DemandResetSeason, format: 'numeric', }; export const TotalActiveEnergyImportDatePreviousModel: RegisterModel = { code: RegisterCode.TotalActiveEnergyImportDatePrevious, format: 'date', }; export const TotalActiveEnergyImportDateModel: RegisterModel = { code: RegisterCode.TotalActiveEnergyImportDate, format: 'date', }; export const TotalActiveEnergyImportTimePreviousModel: RegisterModel = { code: RegisterCode.TotalActiveEnergyImportTimePrevious, format: 'time', }; export const TotalActiveEnergyImportTimeModel: RegisterModel = { code: RegisterCode.TotalActiveEnergyImportTime, format: 'time', }; export const TotalReactiveEnergyImportDatePreviousModel: RegisterModel = { code: RegisterCode.TotalReactiveEnergyImportDatePrevious, format: 'date', }; export const TotalReactiveEnergyImportDateModel: RegisterModel = { code: RegisterCode.TotalReactiveEnergyImportDate, format: 'date', }; export const TotalReactiveEnergyImportTimePreviousModel: RegisterModel = { code: RegisterCode.TotalReactiveEnergyImportTimePrevious, format: 'time', }; export const TotalReactiveEnergyImportTimeModel: RegisterModel = { code: RegisterCode.TotalReactiveEnergyImportTime, format: 'time', }; export const Tariff1PowerFactorPreviousModel: RegisterModel = { code: RegisterCode.Tariff1PowerFactorPrevious, format: 'numeric', }; export const Tariff1PowerFactorModel: RegisterModel = { code: RegisterCode.Tariff1PowerFactor, format: 'numeric', }; export const Tariff1ActiveEnergyImportDatePreviousModel: RegisterModel = { code: RegisterCode.Tariff1ActiveEnergyImportDatePrevious, format: 'date', }; export const Tariff1ActiveEnergyImportDateModel: RegisterModel = { code: RegisterCode.Tariff1ActiveEnergyImportDate, format: 'date', }; export const Tariff1ActiveEnergyImportTimePreviousModel: RegisterModel = { code: RegisterCode.Tariff1ActiveEnergyImportTimePrevious, format: 'time', }; export const Tariff1ActiveEnergyImportTimeModel: RegisterModel = { code: RegisterCode.Tariff1ActiveEnergyImportTime, format: 'time', }; export const Tariff1ReactiveEnergyImportDatePreviousModel: RegisterModel = { code: RegisterCode.Tariff1ReactiveEnergyImportDatePrevious, format: 'date', }; export const Tariff1ReactiveEnergyImportDateModel: RegisterModel = { code: RegisterCode.Tariff1ReactiveEnergyImportDate, format: 'date', }; export const Tariff1ReactiveEnergyImportTimePreviousModel: RegisterModel = { code: RegisterCode.Tariff1ReactiveEnergyImportTimePrevious, format: 'time', }; export const Tariff1ReactiveEnergyImportTimeModel: RegisterModel = { code: RegisterCode.Tariff1ReactiveEnergyImportTime, format: 'time', }; export const Tariff2PowerFactorPreviousModel: RegisterModel = { code: RegisterCode.Tariff2PowerFactorPrevious, format: 'numeric', }; export const Tariff2PowerFactorModel: RegisterModel = { code: RegisterCode.Tariff2PowerFactor, format: 'numeric', }; export const Tariff2ActiveEnergyImportDatePreviousModel: RegisterModel = { code: RegisterCode.Tariff2ActiveEnergyImportDatePrevious, format: 'date', }; export const Tariff2ActiveEnergyImportDateModel: RegisterModel = { code: RegisterCode.Tariff2ActiveEnergyImportDate, format: 'date', }; export const Tariff2ActiveEnergyImportTimePreviousModel: RegisterModel = { code: RegisterCode.Tariff2ActiveEnergyImportTimePrevious, format: 'time', }; export const Tariff2ActiveEnergyImportTimeModel: RegisterModel = { code: RegisterCode.Tariff2ActiveEnergyImportTime, format: 'time', }; export const Tariff2ReactiveEnergyImportDatePreviousModel: RegisterModel = { code: RegisterCode.Tariff2ReactiveEnergyImportDatePrevious, format: 'date', }; export const Tariff2ReactiveEnergyImportDateModel: RegisterModel = { code: RegisterCode.Tariff2ReactiveEnergyImportDate, format: 'date', }; export const Tariff2ReactiveEnergyImportTimePreviousModel: RegisterModel = { code: RegisterCode.Tariff2ReactiveEnergyImportTimePrevious, format: 'time', }; export const Tariff2ReactiveEnergyImportTimeModel: RegisterModel = { code: RegisterCode.Tariff2ReactiveEnergyImportTime, format: 'time', }; export const Tariff3PowerFactorPreviousModel: RegisterModel = { code: RegisterCode.Tariff3PowerFactorPrevious, format: 'numeric', }; export const Tariff3PowerFactorModel: RegisterModel = { code: RegisterCode.Tariff3PowerFactor, format: 'numeric', }; export const Tariff3ActiveEnergyImportDatePreviousModel: RegisterModel = { code: RegisterCode.Tariff3ActiveEnergyImportDatePrevious, format: 'date', }; export const Tariff3ActiveEnergyImportDateModel: RegisterModel = { code: RegisterCode.Tariff3ActiveEnergyImportDate, format: 'date', }; export const Tariff3ActiveEnergyImportTimePreviousModel: RegisterModel = { code: RegisterCode.Tariff3ActiveEnergyImportTimePrevious, format: 'time', }; export const Tariff3ActiveEnergyImportTimeModel: RegisterModel = { code: RegisterCode.Tariff3ActiveEnergyImportTime, format: 'time', }; export const Tariff3ReactiveEnergyImportDatePreviousModel: RegisterModel = { code: RegisterCode.Tariff3ReactiveEnergyImportDatePrevious, format: 'date', }; export const Tariff3ReactiveEnergyImportDateModel: RegisterModel = { code: RegisterCode.Tariff3ReactiveEnergyImportDate, format: 'date', }; export const Tariff3ReactiveEnergyImportTimePreviousModel: RegisterModel = { code: RegisterCode.Tariff3ReactiveEnergyImportTimePrevious, format: 'time', }; export const Tariff3ReactiveEnergyImportTimeModel: RegisterModel = { code: RegisterCode.Tariff3ReactiveEnergyImportTime, format: 'time', }; export const Tariff4PowerFactorPreviousModel: RegisterModel = { code: RegisterCode.Tariff4PowerFactorPrevious, format: 'numeric', }; export const Tariff4PowerFactorModel: RegisterModel = { code: RegisterCode.Tariff4PowerFactor, format: 'numeric', }; export const Tariff4ActiveEnergyImportDatePreviousModel: RegisterModel = { code: RegisterCode.Tariff4ActiveEnergyImportDatePrevious, format: 'date', }; export const Tariff4ActiveEnergyImportDateModel: RegisterModel = { code: RegisterCode.Tariff4ActiveEnergyImportDate, format: 'date', }; export const Tariff4ActiveEnergyImportTimePreviousModel: RegisterModel = { code: RegisterCode.Tariff4ActiveEnergyImportTimePrevious, format: 'time', }; export const Tariff4ActiveEnergyImportTimeModel: RegisterModel = { code: RegisterCode.Tariff4ActiveEnergyImportTime, format: 'time', }; export const Tariff4ReactiveEnergyImportDatePreviousModel: RegisterModel = { code: RegisterCode.Tariff4ReactiveEnergyImportDatePrevious, format: 'date', }; export const Tariff4ReactiveEnergyImportDateModel: RegisterModel = { code: RegisterCode.Tariff4ReactiveEnergyImportDate, format: 'date', }; export const Tariff4ReactiveEnergyImportTimePreviousModel: RegisterModel = { code: RegisterCode.Tariff4ReactiveEnergyImportTimePrevious, format: 'time', }; export const Tariff4ReactiveEnergyImportTimeModel: RegisterModel = { code: RegisterCode.Tariff4ReactiveEnergyImportTime, format: 'time', }; export const CurrentNumeratorModel: RegisterModel = { code: RegisterCode.CurrentNumerator, format: 'numeric', }; export const CurrentDenominatorModel: RegisterModel = { code: RegisterCode.CurrentDenominator, format: 'numeric', }; export const VoltageNumeratorModel: RegisterModel = { code: RegisterCode.VoltageNumerator, format: 'numeric', }; export const VoltageDenominatorModel: RegisterModel = { code: RegisterCode.VoltageDenominator, format: 'numeric', }; export const Tariff1CumulativeMaximumDemandExportModel: RegisterModel = { code: RegisterCode.Tariff1CumulativeMaximumDemandExport, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff2CumulativeMaximumDemandExportModel: RegisterModel = { code: RegisterCode.Tariff2CumulativeMaximumDemandExport, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff3CumulativeMaximumDemandExportModel: RegisterModel = { code: RegisterCode.Tariff3CumulativeMaximumDemandExport, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff1MaximumDemandExportModel: RegisterModel = { code: RegisterCode.Tariff1MaximumDemandExport, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff2MaximumDemandExportModel: RegisterModel = { code: RegisterCode.Tariff2MaximumDemandExport, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff3MaximumDemandExportModel: RegisterModel = { code: RegisterCode.Tariff3MaximumDemandExport, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff1ActiveEnergyExportModel: RegisterModel = { code: RegisterCode.Tariff1ActiveEnergyExport, format: 'numeric', unitOfMeasure: 'kWh', }; export const Tariff2ActiveEnergyExportModel: RegisterModel = { code: RegisterCode.Tariff2ActiveEnergyExport, format: 'numeric', unitOfMeasure: 'kWh', }; export const Tariff3ActiveEnergyExportModel: RegisterModel = { code: RegisterCode.Tariff3ActiveEnergyExport, format: 'numeric', unitOfMeasure: 'kWh', }; export const Tariff1CumulativeMaximumDemandImportModel: RegisterModel = { code: RegisterCode.Tariff1CumulativeMaximumDemandImport, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff2CumulativeMaximumDemandImportModel: RegisterModel = { code: RegisterCode.Tariff2CumulativeMaximumDemandImport, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff3CumulativeMaximumDemandImportModel: RegisterModel = { code: RegisterCode.Tariff3CumulativeMaximumDemandImport, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff1MaximumDemandImportModel: RegisterModel = { code: RegisterCode.Tariff1MaximumDemandImport, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff2MaximumDemandImportModel: RegisterModel = { code: RegisterCode.Tariff2MaximumDemandImport, format: 'numeric', unitOfMeasure: 'kW', }; export const Tariff3MaximumDemandImportModel: RegisterModel = { code: RegisterCode.Tariff3MaximumDemandImport, format: 'numeric', unitOfMeasure: 'kW', };