myio-js-library 0.1.173 → 0.1.177
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/dist/index.cjs +334 -117
- package/dist/index.d.cts +22 -18
- package/dist/index.js +334 -117
- package/dist/myio-js-library.umd.js +334 -117
- package/dist/myio-js-library.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1672,6 +1672,7 @@ declare function openDashboardPopupWaterTank(options: OpenDashboardPopupWaterTan
|
|
|
1672
1672
|
}>;
|
|
1673
1673
|
|
|
1674
1674
|
type DeviceStatusName = 'standBy' | 'normal' | 'alert' | 'failure';
|
|
1675
|
+
type Domain$1 = 'energy' | 'water' | 'temperature';
|
|
1675
1676
|
interface StatusLimits {
|
|
1676
1677
|
deviceStatusName: DeviceStatusName;
|
|
1677
1678
|
limitsValues: {
|
|
@@ -1696,6 +1697,7 @@ interface InstantaneousPowerLimits {
|
|
|
1696
1697
|
interface PowerLimitsFormData {
|
|
1697
1698
|
deviceType: string;
|
|
1698
1699
|
telemetryType: string;
|
|
1700
|
+
domain: Domain$1;
|
|
1699
1701
|
standby: {
|
|
1700
1702
|
baseValue: number | null;
|
|
1701
1703
|
topValue: number | null;
|
|
@@ -1734,6 +1736,7 @@ interface PowerLimitsModalParams {
|
|
|
1734
1736
|
tbBaseUrl?: string;
|
|
1735
1737
|
deviceType?: string;
|
|
1736
1738
|
telemetryType?: string;
|
|
1739
|
+
domain?: Domain$1;
|
|
1737
1740
|
existingMapPower?: InstantaneousPowerLimits | null;
|
|
1738
1741
|
container?: HTMLElement | string;
|
|
1739
1742
|
onSave?: (json: InstantaneousPowerLimits) => void;
|
|
@@ -1754,22 +1757,22 @@ interface PowerLimitsError {
|
|
|
1754
1757
|
}
|
|
1755
1758
|
declare const DEVICE_TYPES: readonly [{
|
|
1756
1759
|
readonly value: "ELEVADOR";
|
|
1757
|
-
readonly label: "
|
|
1760
|
+
readonly label: "Elevador";
|
|
1758
1761
|
}, {
|
|
1759
1762
|
readonly value: "ESCADA_ROLANTE";
|
|
1760
|
-
readonly label: "
|
|
1763
|
+
readonly label: "Escada Rolante";
|
|
1761
1764
|
}, {
|
|
1762
1765
|
readonly value: "MOTOR";
|
|
1763
1766
|
readonly label: "Motor";
|
|
1764
1767
|
}, {
|
|
1765
1768
|
readonly value: "BOMBA";
|
|
1766
|
-
readonly label: "
|
|
1769
|
+
readonly label: "Bomba";
|
|
1767
1770
|
}, {
|
|
1768
1771
|
readonly value: "CHILLER";
|
|
1769
1772
|
readonly label: "Chiller";
|
|
1770
1773
|
}, {
|
|
1771
1774
|
readonly value: "AR_CONDICIONADO";
|
|
1772
|
-
readonly label: "
|
|
1775
|
+
readonly label: "Ar Condicionado";
|
|
1773
1776
|
}, {
|
|
1774
1777
|
readonly value: "HVAC";
|
|
1775
1778
|
readonly label: "HVAC";
|
|
@@ -1778,51 +1781,51 @@ declare const DEVICE_TYPES: readonly [{
|
|
|
1778
1781
|
readonly label: "Fancoil";
|
|
1779
1782
|
}, {
|
|
1780
1783
|
readonly value: "3F_MEDIDOR";
|
|
1781
|
-
readonly label: "
|
|
1784
|
+
readonly label: "Medidor Trifásico";
|
|
1782
1785
|
}];
|
|
1783
1786
|
declare const TELEMETRY_TYPES: readonly [{
|
|
1784
1787
|
readonly value: "consumption";
|
|
1785
|
-
readonly label: "
|
|
1788
|
+
readonly label: "Potência (kW)";
|
|
1786
1789
|
readonly unit: "kW";
|
|
1787
1790
|
}, {
|
|
1788
1791
|
readonly value: "voltage_a";
|
|
1789
|
-
readonly label: "
|
|
1792
|
+
readonly label: "Tensão A (V)";
|
|
1790
1793
|
readonly unit: "V";
|
|
1791
1794
|
}, {
|
|
1792
1795
|
readonly value: "voltage_b";
|
|
1793
|
-
readonly label: "
|
|
1796
|
+
readonly label: "Tensão B (V)";
|
|
1794
1797
|
readonly unit: "V";
|
|
1795
1798
|
}, {
|
|
1796
1799
|
readonly value: "voltage_c";
|
|
1797
|
-
readonly label: "
|
|
1800
|
+
readonly label: "Tensão C (V)";
|
|
1798
1801
|
readonly unit: "V";
|
|
1799
1802
|
}, {
|
|
1800
1803
|
readonly value: "current_a";
|
|
1801
|
-
readonly label: "
|
|
1804
|
+
readonly label: "Corrente A (A)";
|
|
1802
1805
|
readonly unit: "A";
|
|
1803
1806
|
}, {
|
|
1804
1807
|
readonly value: "current_b";
|
|
1805
|
-
readonly label: "
|
|
1808
|
+
readonly label: "Corrente B (A)";
|
|
1806
1809
|
readonly unit: "A";
|
|
1807
1810
|
}, {
|
|
1808
1811
|
readonly value: "current_c";
|
|
1809
|
-
readonly label: "
|
|
1812
|
+
readonly label: "Corrente C (A)";
|
|
1810
1813
|
readonly unit: "A";
|
|
1811
1814
|
}, {
|
|
1812
1815
|
readonly value: "total_current";
|
|
1813
|
-
readonly label: "Total
|
|
1816
|
+
readonly label: "Corrente Total (A)";
|
|
1814
1817
|
readonly unit: "A";
|
|
1815
1818
|
}, {
|
|
1816
1819
|
readonly value: "fp_a";
|
|
1817
|
-
readonly label: "
|
|
1820
|
+
readonly label: "Fator de Potência A";
|
|
1818
1821
|
readonly unit: "";
|
|
1819
1822
|
}, {
|
|
1820
1823
|
readonly value: "fp_b";
|
|
1821
|
-
readonly label: "
|
|
1824
|
+
readonly label: "Fator de Potência B";
|
|
1822
1825
|
readonly unit: "";
|
|
1823
1826
|
}, {
|
|
1824
1827
|
readonly value: "fp_c";
|
|
1825
|
-
readonly label: "
|
|
1828
|
+
readonly label: "Fator de Potência C";
|
|
1826
1829
|
readonly unit: "";
|
|
1827
1830
|
}];
|
|
1828
1831
|
declare const STATUS_CONFIG: {
|
|
@@ -1837,12 +1840,12 @@ declare const STATUS_CONFIG: {
|
|
|
1837
1840
|
readonly bgColor: "rgba(59, 130, 246, 0.1)";
|
|
1838
1841
|
};
|
|
1839
1842
|
readonly alert: {
|
|
1840
|
-
readonly label: "
|
|
1843
|
+
readonly label: "Alerta";
|
|
1841
1844
|
readonly color: "#f59e0b";
|
|
1842
1845
|
readonly bgColor: "rgba(245, 158, 11, 0.1)";
|
|
1843
1846
|
};
|
|
1844
1847
|
readonly failure: {
|
|
1845
|
-
readonly label: "
|
|
1848
|
+
readonly label: "Falha";
|
|
1846
1849
|
readonly color: "#ef4444";
|
|
1847
1850
|
readonly bgColor: "rgba(239, 68, 68, 0.1)";
|
|
1848
1851
|
};
|
|
@@ -1859,6 +1862,7 @@ declare const STATUS_CONFIG: {
|
|
|
1859
1862
|
* tbBaseUrl: 'https://tb.myio-bas.com',
|
|
1860
1863
|
* deviceType: 'ELEVADOR',
|
|
1861
1864
|
* telemetryType: 'consumption',
|
|
1865
|
+
* domain: 'energy', // 'energy' | 'water' | 'temperature'
|
|
1862
1866
|
* onSave: (json) => console.log('Saved:', json),
|
|
1863
1867
|
* onClose: () => console.log('Modal closed')
|
|
1864
1868
|
* });
|