@apocaliss92/nodedreame 1.7.0 → 1.7.2

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
@@ -67,6 +67,7 @@ __export(index_exports, {
67
67
  encodeAiFeatureWrite: () => encodeAiFeatureWrite,
68
68
  getMowerCapabilities: () => getMowerCapabilities,
69
69
  getVacuumCapabilities: () => getVacuumCapabilities,
70
+ isDreameConsumableKey: () => isDreameConsumableKey,
70
71
  renderMowerSvg: () => renderMowerSvg,
71
72
  renderVacuumPng: () => renderVacuumPng,
72
73
  resolveCapabilities: () => resolveCapabilities
@@ -75,7 +76,7 @@ module.exports = __toCommonJS(index_exports);
75
76
 
76
77
  // src/support/version.ts
77
78
  var LIBRARY_NAME = "nodedreame";
78
- var LIBRARY_VERSION = "1.7.0";
79
+ var LIBRARY_VERSION = "1.7.2";
79
80
 
80
81
  // src/transport/errors.ts
81
82
  var DreameError = class extends Error {
@@ -1656,11 +1657,17 @@ var VACUUM_CONSUMABLES = [
1656
1657
  { key: "silver-ion", label: "Silver-ion", life: { siid: 19, piid: 2 }, reset: { siid: 19, aiid: 1 } },
1657
1658
  { key: "detergent", label: "Detergent", life: { siid: 20, piid: 1 }, reset: { siid: 20, aiid: 1 } },
1658
1659
  { key: "squeegee", label: "Squeegee", life: { siid: 24, piid: 1 }, reset: { siid: 24, aiid: 1 } },
1660
+ { key: "deodorizer", label: "Deodorizer", life: { siid: 29, piid: 2 }, reset: { siid: 29, aiid: 1 } },
1661
+ { key: "wheel", label: "Wheel", life: { siid: 30, piid: 2 }, reset: { siid: 30, aiid: 1 } },
1662
+ { key: "scale-inhibitor", label: "Scale Inhibitor", life: { siid: 31, piid: 2 }, reset: { siid: 31, aiid: 1 } },
1659
1663
  { key: "dust-bag", label: "Dust Bag", life: { siid: 27, piid: 17 }, reset: null }
1660
1664
  ];
1661
1665
  function consumableSpec(key2) {
1662
1666
  return VACUUM_CONSUMABLES.find((c) => c.key === key2);
1663
1667
  }
1668
+ function isDreameConsumableKey(key2) {
1669
+ return VACUUM_CONSUMABLES.some((c) => c.key === key2);
1670
+ }
1664
1671
 
1665
1672
  // src/models/vacuum/capabilities.ts
1666
1673
  var X50_AI_FEATURES = [
@@ -4905,6 +4912,7 @@ function createClientDumper(client, options) {
4905
4912
  encodeAiFeatureWrite,
4906
4913
  getMowerCapabilities,
4907
4914
  getVacuumCapabilities,
4915
+ isDreameConsumableKey,
4908
4916
  renderMowerSvg,
4909
4917
  renderVacuumPng,
4910
4918
  resolveCapabilities