myio-js-library 0.1.25 → 0.1.26

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 CHANGED
@@ -7677,8 +7677,8 @@ function injectCSS(styles) {
7677
7677
  display: flex;
7678
7678
  align-items: center;
7679
7679
  justify-content: space-between;
7680
- padding: ${styles.spacingLg};
7681
- background: ${styles.primaryColor};
7680
+ padding: ${styles.spacingMd};
7681
+ background: #4A148C;
7682
7682
  color: white;
7683
7683
  }
7684
7684
 
@@ -7890,8 +7890,8 @@ function formatDateTime(date, locale) {
7890
7890
  });
7891
7891
  }
7892
7892
  async function fetchTelemetryData(token, deviceId, startDate, endDate) {
7893
- const startTs = (/* @__PURE__ */ new Date(startDate + "T00:00:00")).getTime();
7894
- const endTs = (/* @__PURE__ */ new Date(endDate + "T23:59:59")).getTime();
7893
+ const startTs = new Date(startDate).getTime();
7894
+ const endTs = new Date(endDate).getTime();
7895
7895
  const url = `/api/plugins/telemetry/DEVICE/${deviceId}/values/timeseries?keys=consumption&startTs=${startTs}&endTs=${endTs}&limit=50000&intervalType=MILLISECONDS&interval=54000000&agg=SUM&orderBy=ASC`;
7896
7896
  const response = await fetch(url, {
7897
7897
  headers: {
package/dist/index.js CHANGED
@@ -7611,8 +7611,8 @@ function injectCSS(styles) {
7611
7611
  display: flex;
7612
7612
  align-items: center;
7613
7613
  justify-content: space-between;
7614
- padding: ${styles.spacingLg};
7615
- background: ${styles.primaryColor};
7614
+ padding: ${styles.spacingMd};
7615
+ background: #4A148C;
7616
7616
  color: white;
7617
7617
  }
7618
7618
 
@@ -7824,8 +7824,8 @@ function formatDateTime(date, locale) {
7824
7824
  });
7825
7825
  }
7826
7826
  async function fetchTelemetryData(token, deviceId, startDate, endDate) {
7827
- const startTs = (/* @__PURE__ */ new Date(startDate + "T00:00:00")).getTime();
7828
- const endTs = (/* @__PURE__ */ new Date(endDate + "T23:59:59")).getTime();
7827
+ const startTs = new Date(startDate).getTime();
7828
+ const endTs = new Date(endDate).getTime();
7829
7829
  const url = `/api/plugins/telemetry/DEVICE/${deviceId}/values/timeseries?keys=consumption&startTs=${startTs}&endTs=${endTs}&limit=50000&intervalType=MILLISECONDS&interval=54000000&agg=SUM&orderBy=ASC`;
7830
7830
  const response = await fetch(url, {
7831
7831
  headers: {
@@ -7605,8 +7605,8 @@
7605
7605
  display: flex;
7606
7606
  align-items: center;
7607
7607
  justify-content: space-between;
7608
- padding: ${styles.spacingLg};
7609
- background: ${styles.primaryColor};
7608
+ padding: ${styles.spacingMd};
7609
+ background: #4A148C;
7610
7610
  color: white;
7611
7611
  }
7612
7612
 
@@ -7818,8 +7818,8 @@
7818
7818
  });
7819
7819
  }
7820
7820
  async function fetchTelemetryData(token, deviceId, startDate, endDate) {
7821
- const startTs = (/* @__PURE__ */ new Date(startDate + "T00:00:00")).getTime();
7822
- const endTs = (/* @__PURE__ */ new Date(endDate + "T23:59:59")).getTime();
7821
+ const startTs = new Date(startDate).getTime();
7822
+ const endTs = new Date(endDate).getTime();
7823
7823
  const url = `/api/plugins/telemetry/DEVICE/${deviceId}/values/timeseries?keys=consumption&startTs=${startTs}&endTs=${endTs}&limit=50000&intervalType=MILLISECONDS&interval=54000000&agg=SUM&orderBy=ASC`;
7824
7824
  const response = await fetch(url, {
7825
7825
  headers: {