energy-flow-control--types-and-enums 1.0.268 → 1.0.270
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 +1 -1
- package/src/enums/index.ts +16 -4
- package/src/index.js +16 -4
- package/src/types/index.d.ts +2 -2
package/package.json
CHANGED
package/src/enums/index.ts
CHANGED
|
@@ -278,7 +278,19 @@ export enum EnumUnit {
|
|
|
278
278
|
VOLTAGE_KV = 'VOLTAGE_kV',
|
|
279
279
|
CURRENT_A = 'CURRENT_A',
|
|
280
280
|
CURRENT_mA = 'CURRENT_mA',
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
}
|
|
281
|
+
RESISTANCE_OHM = 'RESISTANCE_OHM',
|
|
282
|
+
RESISTANCE_k_OHM = 'RESISTANCE_k_OHM',
|
|
283
|
+
RESISTANCE_M_OHM = 'RESISTANCE_M_OHM',
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
export enum EnumMetricChannel {
|
|
287
|
+
BATTERY_SOC = 'battery.SoC',
|
|
288
|
+
TEMPERATURE = 'temperature',
|
|
289
|
+
RELAY_1_SWITCH = 'switch.1',
|
|
290
|
+
RELAY_2_SWITCH = 'switch.2',
|
|
291
|
+
RELAY_3_SWITCH = 'switch.3',
|
|
292
|
+
GRID_SETPOINT = 'grid.setpoint',
|
|
293
|
+
ISOLATION_RESISTANCE = 'string.isolationResistance',
|
|
294
|
+
POWER_GRANTED = 'power.charging',
|
|
295
|
+
POWER_MEASURED = 'power.measured',
|
|
296
|
+
}
|
package/src/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
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;
|
|
3
|
+
exports.EnumMetricChannel = 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";
|
|
@@ -280,7 +280,19 @@ 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["
|
|
284
|
-
EnumUnit["
|
|
285
|
-
EnumUnit["
|
|
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
|
+
var EnumMetricChannel;
|
|
288
|
+
(function (EnumMetricChannel) {
|
|
289
|
+
EnumMetricChannel["BATTERY_SOC"] = "battery.SoC";
|
|
290
|
+
EnumMetricChannel["TEMPERATURE"] = "temperature";
|
|
291
|
+
EnumMetricChannel["RELAY_1_SWITCH"] = "switch.1";
|
|
292
|
+
EnumMetricChannel["RELAY_2_SWITCH"] = "switch.2";
|
|
293
|
+
EnumMetricChannel["RELAY_3_SWITCH"] = "switch.3";
|
|
294
|
+
EnumMetricChannel["GRID_SETPOINT"] = "grid.setpoint";
|
|
295
|
+
EnumMetricChannel["ISOLATION_RESISTANCE"] = "string.isolationResistance";
|
|
296
|
+
EnumMetricChannel["POWER_GRANTED"] = "power.charging";
|
|
297
|
+
EnumMetricChannel["POWER_MEASURED"] = "power.measured";
|
|
298
|
+
})(EnumMetricChannel || (exports.EnumMetricChannel = EnumMetricChannel = {}));
|
package/src/types/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
EnumEventSource,
|
|
12
12
|
EnumIdentityProvider,
|
|
13
13
|
EnumInvoiceState,
|
|
14
|
-
EnumInvoiceTopic, EnumMetricTypes,
|
|
14
|
+
EnumInvoiceTopic, EnumMetricChannel, EnumMetricTypes,
|
|
15
15
|
EnumNoSupplyReason,
|
|
16
16
|
EnumPhase,
|
|
17
17
|
EnumPriceComponent,
|
|
@@ -734,7 +734,7 @@ export interface ISummarizedBattery {
|
|
|
734
734
|
export interface IMetric {
|
|
735
735
|
id: number
|
|
736
736
|
prosumerId: number
|
|
737
|
-
channel:
|
|
737
|
+
channel: EnumMetricChannel
|
|
738
738
|
type: EnumMetricTypes
|
|
739
739
|
label: string
|
|
740
740
|
}
|