energy-flow-control--types-and-enums 1.0.269 → 1.0.271

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "energy-flow-control--types-and-enums",
3
- "version": "1.0.269",
3
+ "version": "1.0.271",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -278,9 +278,9 @@ export enum EnumUnit {
278
278
  VOLTAGE_KV = 'VOLTAGE_kV',
279
279
  CURRENT_A = 'CURRENT_A',
280
280
  CURRENT_mA = 'CURRENT_mA',
281
- RESISTANCE_Ω = 'RESISTANCE_Ω',
282
- RESISTANCE_kΩ = 'RESISTANCE_kΩ',
283
- RESISTANCE_MΩ = 'RESISTANCE_MΩ',
281
+ RESISTANCE_OHM = 'RESISTANCE_OHM',
282
+ RESISTANCE_k_OHM = 'RESISTANCE_k_OHM',
283
+ RESISTANCE_M_OHM = 'RESISTANCE_M_OHM',
284
284
  }
285
285
 
286
286
  export enum EnumMetricChannel {
@@ -291,4 +291,6 @@ export enum EnumMetricChannel {
291
291
  RELAY_3_SWITCH = 'switch.3',
292
292
  GRID_SETPOINT = 'grid.setpoint',
293
293
  ISOLATION_RESISTANCE = 'string.isolationResistance',
294
+ POWER_GRANTED = 'power.charging',
295
+ POWER_MEASURED = 'power.measured',
294
296
  }
package/src/index.js CHANGED
@@ -280,9 +280,9 @@ var EnumUnit;
280
280
  EnumUnit["VOLTAGE_KV"] = "VOLTAGE_kV";
281
281
  EnumUnit["CURRENT_A"] = "CURRENT_A";
282
282
  EnumUnit["CURRENT_mA"] = "CURRENT_mA";
283
- EnumUnit["RESISTANCE_\u03A9"] = "RESISTANCE_\u03A9";
284
- EnumUnit["RESISTANCE_k\u03A9"] = "RESISTANCE_k\u03A9";
285
- EnumUnit["RESISTANCE_M\u03A9"] = "RESISTANCE_M\u03A9";
283
+ EnumUnit["RESISTANCE_OHM"] = "RESISTANCE_OHM";
284
+ EnumUnit["RESISTANCE_k_OHM"] = "RESISTANCE_k_OHM";
285
+ EnumUnit["RESISTANCE_M_OHM"] = "RESISTANCE_M_OHM";
286
286
  })(EnumUnit || (exports.EnumUnit = EnumUnit = {}));
287
287
  var EnumMetricChannel;
288
288
  (function (EnumMetricChannel) {
@@ -293,4 +293,6 @@ var EnumMetricChannel;
293
293
  EnumMetricChannel["RELAY_3_SWITCH"] = "switch.3";
294
294
  EnumMetricChannel["GRID_SETPOINT"] = "grid.setpoint";
295
295
  EnumMetricChannel["ISOLATION_RESISTANCE"] = "string.isolationResistance";
296
+ EnumMetricChannel["POWER_GRANTED"] = "power.charging";
297
+ EnumMetricChannel["POWER_MEASURED"] = "power.measured";
296
298
  })(EnumMetricChannel || (exports.EnumMetricChannel = EnumMetricChannel = {}));
@@ -11,7 +11,9 @@ import {
11
11
  EnumEventSource,
12
12
  EnumIdentityProvider,
13
13
  EnumInvoiceState,
14
- EnumInvoiceTopic, EnumMetricChannel, EnumMetricTypes,
14
+ EnumInvoiceTopic,
15
+ EnumMetricChannel,
16
+ EnumMetricTypes,
15
17
  EnumNoSupplyReason,
16
18
  EnumPhase,
17
19
  EnumPriceComponent,
@@ -25,7 +27,8 @@ import {
25
27
  EnumSolarForecastApi,
26
28
  EnumTariffConsumptionType,
27
29
  EnumTariffPlanState,
28
- EnumThermometerModel, EnumUnit,
30
+ EnumThermometerModel,
31
+ EnumUnit,
29
32
  EnumUserSettingName,
30
33
  EnumUserStatus,
31
34
  EnumValueReadingSourceType,
@@ -711,24 +714,23 @@ export interface IUserSetting extends ITimeTravelProps {
711
714
  value: string | number | null
712
715
  }
713
716
 
717
+ export interface IBatteryValue {
718
+ inKwh: number
719
+ inPercent: number
720
+ }
721
+
714
722
  export interface ISummarizedBattery {
715
723
  capacityInKwh: number
716
- soc: {
717
- inKwh: {
718
- actual: number
719
- min: number
720
- max: number
721
- reservedAboveMin: number
722
- freelyAvailable: number
723
- }
724
- inPercent: {
725
- actual: number
726
- min: number
727
- max: number
728
- reservedAboveMin: number
729
- freelyAvailable: number
730
- }
731
- }
724
+ actual: IBatteryValue
725
+ min: IBatteryValue
726
+ max: IBatteryValue
727
+ }
728
+
729
+ export interface ISummarizedBatteries {
730
+ usable: ISummarizedBattery
731
+ unusable: ISummarizedBattery
732
+ reservedAboveMin: IBatteryValue
733
+ freelyAvailable: IBatteryValue
732
734
  }
733
735
 
734
736
  export interface IMetric {