energy-flow-control--types-and-enums 1.0.266 → 1.0.268

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.266",
3
+ "version": "1.0.268",
4
4
  "description": "",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
@@ -240,4 +240,45 @@ export enum EnumTariffPlanState {
240
240
 
241
241
  export enum EnumUserSettingName {
242
242
  MAX_CHARGING_POWER = 'MAX_CHARGING_POWER',
243
+ }
244
+
245
+ export enum EnumMetricTypes {
246
+ LENGTH = 'LENGTH',
247
+ VOLUME = 'VOLUME',
248
+ POWER = 'POWER',
249
+ ENERGY = 'ENERGY',
250
+ TEMPERATURE = 'TEMPERATURE',
251
+ PERCENTAGE = 'PERCENTAGE',
252
+ BINARY = 'BINARY',
253
+ VOLTAGE = 'VOLTAGE',
254
+ CURRENT = 'CURRENT',
255
+ RESISTANCE = 'RESISTANCE'
256
+ }
257
+
258
+ export enum EnumUnit {
259
+ LENGTH_MM = 'LENGTH_MM',
260
+ LENGTH_CM = 'LENGTH_CM',
261
+ LENGTH_M = 'LENGTH_M',
262
+ LENGTH_KM = 'LENGTH_KM',
263
+ VOLUME_MM3 = 'VOLUME_MM3',
264
+ VOLUME_CM3 = 'VOLUME_CM3',
265
+ VOLUME_M3 = 'VOLUME_M3',
266
+ VOLUME_KM3 = 'VOLUME_KM3',
267
+ POWER_W = 'POWER_W',
268
+ POWER_kW = 'POWER_kW',
269
+ ENERGY_Wh = 'ENERGY_Wh',
270
+ ENERGY_kWh = 'ENERGY_kWh',
271
+ ENERGY_MWh = 'ENERGY_MWh',
272
+ TEMPERATURE_CELSIUS = 'TEMPERATURE_CELSIUS',
273
+ TEMPERATURE_FAHRENHEIT = 'TEMPERATURE_FAHRENHEIT',
274
+ PERCENTAGE = 'PERCENTAGE',
275
+ BINARY = 'BINARY',
276
+ VOLTAGE_V = 'VOLTAGE_V',
277
+ VOLTAGE_mV = 'VOLTAGE_mV',
278
+ VOLTAGE_KV = 'VOLTAGE_kV',
279
+ CURRENT_A = 'CURRENT_A',
280
+ CURRENT_mA = 'CURRENT_mA',
281
+ RESISTANCE_Ω = 'RESISTANCE_Ω',
282
+ RESISTANCE_kΩ = 'RESISTANCE_kΩ',
283
+ RESISTANCE_MΩ = 'RESISTANCE_MΩ',
243
284
  }
package/src/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EnumUserSettingName = exports.EnumTariffPlanState = exports.EnumIdentityProvider = exports.EnumExternalMaxPowerIsControllerType = exports.EnumTrippingCharacteristic = exports.EnumPhase = exports.EnumValueReadingSourceType = exports.EnumPriceComponent = exports.EnumNoSupplyReason = exports.EnumUserStatus = exports.EnumSolarForecastApi = exports.EnumAppValueCollectionName = exports.EnumRowSlots = exports.EnumBillingPeriodState = exports.EnumPricingModel = exports.EnumCarOemModel = exports.EnumCarOem = exports.EnumEventSeverity = exports.EnumEventSource = exports.EnumGeneratorSetType = exports.EnumEquipmentType = exports.TimeInterval = exports.EnumCameraModel = exports.EnumCustomerContractState = exports.EnumPvStringState = exports.EnumHttpProtocol = exports.EnumInvoiceTopic = exports.EnumBookingReason = exports.EnumInvoiceState = exports.EnumWallBoxState = exports.EnumTariffConsumptionType = exports.EnumThermometerModel = exports.EnumRemotelyControlledSwitchModel = exports.EnumEnergyMeterModel = exports.EnumProsumerEquipmentType = exports.EnumProsumerModel = exports.EnumProsumerType = exports.EnumEquipmentState = void 0;
3
+ exports.EnumUnit = exports.EnumMetricTypes = exports.EnumUserSettingName = exports.EnumTariffPlanState = exports.EnumIdentityProvider = exports.EnumExternalMaxPowerIsControllerType = exports.EnumTrippingCharacteristic = exports.EnumPhase = exports.EnumValueReadingSourceType = exports.EnumPriceComponent = exports.EnumNoSupplyReason = exports.EnumUserStatus = exports.EnumSolarForecastApi = exports.EnumAppValueCollectionName = exports.EnumRowSlots = exports.EnumBillingPeriodState = exports.EnumPricingModel = exports.EnumCarOemModel = exports.EnumCarOem = exports.EnumEventSeverity = exports.EnumEventSource = exports.EnumGeneratorSetType = exports.EnumEquipmentType = exports.TimeInterval = exports.EnumCameraModel = exports.EnumCustomerContractState = exports.EnumPvStringState = exports.EnumHttpProtocol = exports.EnumInvoiceTopic = exports.EnumBookingReason = exports.EnumInvoiceState = exports.EnumWallBoxState = exports.EnumTariffConsumptionType = exports.EnumThermometerModel = exports.EnumRemotelyControlledSwitchModel = exports.EnumEnergyMeterModel = exports.EnumProsumerEquipmentType = exports.EnumProsumerModel = exports.EnumProsumerType = exports.EnumEquipmentState = void 0;
4
4
  var EnumEquipmentState;
5
5
  (function (EnumEquipmentState) {
6
6
  EnumEquipmentState["ON"] = "ON";
@@ -243,3 +243,44 @@ var EnumUserSettingName;
243
243
  (function (EnumUserSettingName) {
244
244
  EnumUserSettingName["MAX_CHARGING_POWER"] = "MAX_CHARGING_POWER";
245
245
  })(EnumUserSettingName || (exports.EnumUserSettingName = EnumUserSettingName = {}));
246
+ var EnumMetricTypes;
247
+ (function (EnumMetricTypes) {
248
+ EnumMetricTypes["LENGTH"] = "LENGTH";
249
+ EnumMetricTypes["VOLUME"] = "VOLUME";
250
+ EnumMetricTypes["POWER"] = "POWER";
251
+ EnumMetricTypes["ENERGY"] = "ENERGY";
252
+ EnumMetricTypes["TEMPERATURE"] = "TEMPERATURE";
253
+ EnumMetricTypes["PERCENTAGE"] = "PERCENTAGE";
254
+ EnumMetricTypes["BINARY"] = "BINARY";
255
+ EnumMetricTypes["VOLTAGE"] = "VOLTAGE";
256
+ EnumMetricTypes["CURRENT"] = "CURRENT";
257
+ EnumMetricTypes["RESISTANCE"] = "RESISTANCE";
258
+ })(EnumMetricTypes || (exports.EnumMetricTypes = EnumMetricTypes = {}));
259
+ var EnumUnit;
260
+ (function (EnumUnit) {
261
+ EnumUnit["LENGTH_MM"] = "LENGTH_MM";
262
+ EnumUnit["LENGTH_CM"] = "LENGTH_CM";
263
+ EnumUnit["LENGTH_M"] = "LENGTH_M";
264
+ EnumUnit["LENGTH_KM"] = "LENGTH_KM";
265
+ EnumUnit["VOLUME_MM3"] = "VOLUME_MM3";
266
+ EnumUnit["VOLUME_CM3"] = "VOLUME_CM3";
267
+ EnumUnit["VOLUME_M3"] = "VOLUME_M3";
268
+ EnumUnit["VOLUME_KM3"] = "VOLUME_KM3";
269
+ EnumUnit["POWER_W"] = "POWER_W";
270
+ EnumUnit["POWER_kW"] = "POWER_kW";
271
+ EnumUnit["ENERGY_Wh"] = "ENERGY_Wh";
272
+ EnumUnit["ENERGY_kWh"] = "ENERGY_kWh";
273
+ EnumUnit["ENERGY_MWh"] = "ENERGY_MWh";
274
+ EnumUnit["TEMPERATURE_CELSIUS"] = "TEMPERATURE_CELSIUS";
275
+ EnumUnit["TEMPERATURE_FAHRENHEIT"] = "TEMPERATURE_FAHRENHEIT";
276
+ EnumUnit["PERCENTAGE"] = "PERCENTAGE";
277
+ EnumUnit["BINARY"] = "BINARY";
278
+ EnumUnit["VOLTAGE_V"] = "VOLTAGE_V";
279
+ EnumUnit["VOLTAGE_mV"] = "VOLTAGE_mV";
280
+ EnumUnit["VOLTAGE_KV"] = "VOLTAGE_kV";
281
+ EnumUnit["CURRENT_A"] = "CURRENT_A";
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";
286
+ })(EnumUnit || (exports.EnumUnit = EnumUnit = {}));
@@ -11,7 +11,7 @@ import {
11
11
  EnumEventSource,
12
12
  EnumIdentityProvider,
13
13
  EnumInvoiceState,
14
- EnumInvoiceTopic,
14
+ EnumInvoiceTopic, EnumMetricTypes,
15
15
  EnumNoSupplyReason,
16
16
  EnumPhase,
17
17
  EnumPriceComponent,
@@ -25,7 +25,8 @@ import {
25
25
  EnumSolarForecastApi,
26
26
  EnumTariffConsumptionType,
27
27
  EnumTariffPlanState,
28
- EnumThermometerModel, EnumUserSettingName,
28
+ EnumThermometerModel, EnumUnit,
29
+ EnumUserSettingName,
29
30
  EnumUserStatus,
30
31
  EnumValueReadingSourceType,
31
32
  } from '../enums'
@@ -708,4 +709,42 @@ export interface IUserSetting extends ITimeTravelProps {
708
709
  userId: number
709
710
  settingName: EnumUserSettingName
710
711
  value: string | number | null
711
- }
712
+ }
713
+
714
+ export interface ISummarizedBattery {
715
+ 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
+ }
732
+ }
733
+
734
+ export interface IMetric {
735
+ id: number
736
+ prosumerId: number
737
+ channel: string
738
+ type: EnumMetricTypes
739
+ label: string
740
+ }
741
+
742
+ interface IMetricReading {
743
+ id: number
744
+ metricId: number
745
+ unit: EnumUnit,
746
+ firstOccurrence: Date
747
+ latestOccurrence: Date
748
+ value: number
749
+ }
750
+