zwave-js 9.0.4 → 9.0.7

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.
Files changed (267) hide show
  1. package/build/CommandClass_safe.d.ts.map +1 -1
  2. package/build/CommandClass_safe.js +1 -0
  3. package/build/CommandClass_safe.js.map +1 -1
  4. package/build/Utils_safe.d.ts +1 -1
  5. package/build/Utils_safe.d.ts.map +1 -1
  6. package/build/Utils_safe.js +13 -6
  7. package/build/Utils_safe.js.map +1 -1
  8. package/build/Values.d.ts +2 -2
  9. package/build/Values.d.ts.map +1 -1
  10. package/build/Values.js +2 -1
  11. package/build/Values.js.map +1 -1
  12. package/build/lib/commandclass/AlarmSensorCC.d.ts +3 -25
  13. package/build/lib/commandclass/AlarmSensorCC.d.ts.map +1 -1
  14. package/build/lib/commandclass/AlarmSensorCC.js +26 -44
  15. package/build/lib/commandclass/AlarmSensorCC.js.map +1 -1
  16. package/build/lib/commandclass/AssociationCC.d.ts +1 -9
  17. package/build/lib/commandclass/AssociationCC.d.ts.map +1 -1
  18. package/build/lib/commandclass/AssociationCC.js +17 -38
  19. package/build/lib/commandclass/AssociationCC.js.map +1 -1
  20. package/build/lib/commandclass/AssociationGroupInfoCC.d.ts +1 -203
  21. package/build/lib/commandclass/AssociationGroupInfoCC.d.ts.map +1 -1
  22. package/build/lib/commandclass/AssociationGroupInfoCC.js +15 -204
  23. package/build/lib/commandclass/AssociationGroupInfoCC.js.map +1 -1
  24. package/build/lib/commandclass/BarrierOperatorCC.d.ts +1 -28
  25. package/build/lib/commandclass/BarrierOperatorCC.d.ts.map +1 -1
  26. package/build/lib/commandclass/BarrierOperatorCC.js +53 -84
  27. package/build/lib/commandclass/BarrierOperatorCC.js.map +1 -1
  28. package/build/lib/commandclass/BasicCC.d.ts +2 -6
  29. package/build/lib/commandclass/BasicCC.d.ts.map +1 -1
  30. package/build/lib/commandclass/BasicCC.js +9 -14
  31. package/build/lib/commandclass/BasicCC.js.map +1 -1
  32. package/build/lib/commandclass/BatteryCC.d.ts +1 -22
  33. package/build/lib/commandclass/BatteryCC.d.ts.map +1 -1
  34. package/build/lib/commandclass/BatteryCC.js +19 -43
  35. package/build/lib/commandclass/BatteryCC.js.map +1 -1
  36. package/build/lib/commandclass/BinarySensorCC.d.ts +2 -34
  37. package/build/lib/commandclass/BinarySensorCC.d.ts.map +1 -1
  38. package/build/lib/commandclass/BinarySensorCC.js +28 -55
  39. package/build/lib/commandclass/BinarySensorCC.js.map +1 -1
  40. package/build/lib/commandclass/BinarySwitchCC.d.ts +1 -5
  41. package/build/lib/commandclass/BinarySwitchCC.d.ts.map +1 -1
  42. package/build/lib/commandclass/BinarySwitchCC.js +9 -18
  43. package/build/lib/commandclass/BinarySwitchCC.js.map +1 -1
  44. package/build/lib/commandclass/CRC16CC.d.ts +1 -3
  45. package/build/lib/commandclass/CRC16CC.d.ts.map +1 -1
  46. package/build/lib/commandclass/CRC16CC.js +4 -8
  47. package/build/lib/commandclass/CRC16CC.js.map +1 -1
  48. package/build/lib/commandclass/CentralSceneCC.d.ts +1 -20
  49. package/build/lib/commandclass/CentralSceneCC.d.ts.map +1 -1
  50. package/build/lib/commandclass/CentralSceneCC.js +20 -41
  51. package/build/lib/commandclass/CentralSceneCC.js.map +1 -1
  52. package/build/lib/commandclass/ClimateControlScheduleCC.d.ts +1 -19
  53. package/build/lib/commandclass/ClimateControlScheduleCC.d.ts.map +1 -1
  54. package/build/lib/commandclass/ClimateControlScheduleCC.js +38 -52
  55. package/build/lib/commandclass/ClimateControlScheduleCC.js.map +1 -1
  56. package/build/lib/commandclass/ClockCC.d.ts +1 -18
  57. package/build/lib/commandclass/ClockCC.d.ts.map +1 -1
  58. package/build/lib/commandclass/ClockCC.js +22 -42
  59. package/build/lib/commandclass/ClockCC.js.map +1 -1
  60. package/build/lib/commandclass/ColorSwitchCC.d.ts +2 -41
  61. package/build/lib/commandclass/ColorSwitchCC.d.ts.map +1 -1
  62. package/build/lib/commandclass/ColorSwitchCC.js +66 -141
  63. package/build/lib/commandclass/ColorSwitchCC.js.map +1 -1
  64. package/build/lib/commandclass/ConfigurationCC.d.ts +1 -17
  65. package/build/lib/commandclass/ConfigurationCC.d.ts.map +1 -1
  66. package/build/lib/commandclass/ConfigurationCC.js +35 -80
  67. package/build/lib/commandclass/ConfigurationCC.js.map +1 -1
  68. package/build/lib/commandclass/DeviceResetLocallyCC.d.ts +1 -3
  69. package/build/lib/commandclass/DeviceResetLocallyCC.d.ts.map +1 -1
  70. package/build/lib/commandclass/DeviceResetLocallyCC.js +3 -6
  71. package/build/lib/commandclass/DeviceResetLocallyCC.js.map +1 -1
  72. package/build/lib/commandclass/DoorLockCC.d.ts +1 -25
  73. package/build/lib/commandclass/DoorLockCC.d.ts.map +1 -1
  74. package/build/lib/commandclass/DoorLockCC.js +46 -78
  75. package/build/lib/commandclass/DoorLockCC.js.map +1 -1
  76. package/build/lib/commandclass/DoorLockLoggingCC.d.ts +1 -51
  77. package/build/lib/commandclass/DoorLockLoggingCC.d.ts.map +1 -1
  78. package/build/lib/commandclass/DoorLockLoggingCC.js +14 -63
  79. package/build/lib/commandclass/DoorLockLoggingCC.js.map +1 -1
  80. package/build/lib/commandclass/EntryControlCC.d.ts +1 -11
  81. package/build/lib/commandclass/EntryControlCC.d.ts.map +1 -1
  82. package/build/lib/commandclass/EntryControlCC.js +17 -29
  83. package/build/lib/commandclass/EntryControlCC.js.map +1 -1
  84. package/build/lib/commandclass/FirmwareUpdateMetaDataCC.d.ts +1 -64
  85. package/build/lib/commandclass/FirmwareUpdateMetaDataCC.d.ts.map +1 -1
  86. package/build/lib/commandclass/FirmwareUpdateMetaDataCC.js +27 -93
  87. package/build/lib/commandclass/FirmwareUpdateMetaDataCC.js.map +1 -1
  88. package/build/lib/commandclass/HailCC.d.ts +1 -3
  89. package/build/lib/commandclass/HailCC.d.ts.map +1 -1
  90. package/build/lib/commandclass/HailCC.js +3 -6
  91. package/build/lib/commandclass/HailCC.js.map +1 -1
  92. package/build/lib/commandclass/HumidityControlModeCC.d.ts +1 -13
  93. package/build/lib/commandclass/HumidityControlModeCC.d.ts.map +1 -1
  94. package/build/lib/commandclass/HumidityControlModeCC.js +28 -43
  95. package/build/lib/commandclass/HumidityControlModeCC.js.map +1 -1
  96. package/build/lib/commandclass/HumidityControlOperatingStateCC.d.ts +1 -9
  97. package/build/lib/commandclass/HumidityControlOperatingStateCC.d.ts.map +1 -1
  98. package/build/lib/commandclass/HumidityControlOperatingStateCC.js +9 -20
  99. package/build/lib/commandclass/HumidityControlOperatingStateCC.js.map +1 -1
  100. package/build/lib/commandclass/HumidityControlSetpointCC.d.ts +2 -36
  101. package/build/lib/commandclass/HumidityControlSetpointCC.d.ts.map +1 -1
  102. package/build/lib/commandclass/HumidityControlSetpointCC.js +33 -52
  103. package/build/lib/commandclass/HumidityControlSetpointCC.js.map +1 -1
  104. package/build/lib/commandclass/IndicatorCC.d.ts +2 -17
  105. package/build/lib/commandclass/IndicatorCC.d.ts.map +1 -1
  106. package/build/lib/commandclass/IndicatorCC.js +13 -24
  107. package/build/lib/commandclass/IndicatorCC.js.map +1 -1
  108. package/build/lib/commandclass/IrrigationCC.d.ts +1 -33
  109. package/build/lib/commandclass/IrrigationCC.d.ts.map +1 -1
  110. package/build/lib/commandclass/IrrigationCC.js +56 -110
  111. package/build/lib/commandclass/IrrigationCC.js.map +1 -1
  112. package/build/lib/commandclass/LanguageCC.d.ts +1 -5
  113. package/build/lib/commandclass/LanguageCC.d.ts.map +1 -1
  114. package/build/lib/commandclass/LanguageCC.js +9 -14
  115. package/build/lib/commandclass/LanguageCC.js.map +1 -1
  116. package/build/lib/commandclass/LockCC.d.ts +1 -5
  117. package/build/lib/commandclass/LockCC.d.ts.map +1 -1
  118. package/build/lib/commandclass/LockCC.js +9 -15
  119. package/build/lib/commandclass/LockCC.js.map +1 -1
  120. package/build/lib/commandclass/ManufacturerSpecificCC.d.ts +1 -14
  121. package/build/lib/commandclass/ManufacturerSpecificCC.d.ts.map +1 -1
  122. package/build/lib/commandclass/ManufacturerSpecificCC.js +13 -28
  123. package/build/lib/commandclass/ManufacturerSpecificCC.js.map +1 -1
  124. package/build/lib/commandclass/MeterCC.d.ts +2 -26
  125. package/build/lib/commandclass/MeterCC.d.ts.map +1 -1
  126. package/build/lib/commandclass/MeterCC.js +24 -59
  127. package/build/lib/commandclass/MeterCC.js.map +1 -1
  128. package/build/lib/commandclass/MultiChannelAssociationCC.d.ts +1 -24
  129. package/build/lib/commandclass/MultiChannelAssociationCC.d.ts.map +1 -1
  130. package/build/lib/commandclass/MultiChannelAssociationCC.js +16 -31
  131. package/build/lib/commandclass/MultiChannelAssociationCC.js.map +1 -1
  132. package/build/lib/commandclass/MultiChannelCC.d.ts +1 -14
  133. package/build/lib/commandclass/MultiChannelCC.d.ts.map +1 -1
  134. package/build/lib/commandclass/MultiChannelCC.js +29 -45
  135. package/build/lib/commandclass/MultiChannelCC.js.map +1 -1
  136. package/build/lib/commandclass/MultiCommandCC.d.ts +1 -3
  137. package/build/lib/commandclass/MultiCommandCC.d.ts.map +1 -1
  138. package/build/lib/commandclass/MultiCommandCC.js +4 -7
  139. package/build/lib/commandclass/MultiCommandCC.js.map +1 -1
  140. package/build/lib/commandclass/MultilevelSensorCC.d.ts +2 -25
  141. package/build/lib/commandclass/MultilevelSensorCC.d.ts.map +1 -1
  142. package/build/lib/commandclass/MultilevelSensorCC.js +16 -27
  143. package/build/lib/commandclass/MultilevelSensorCC.js.map +1 -1
  144. package/build/lib/commandclass/MultilevelSwitchCC.d.ts +3 -31
  145. package/build/lib/commandclass/MultilevelSwitchCC.d.ts.map +1 -1
  146. package/build/lib/commandclass/MultilevelSwitchCC.js +15 -45
  147. package/build/lib/commandclass/MultilevelSwitchCC.js.map +1 -1
  148. package/build/lib/commandclass/NodeNamingCC.d.ts +1 -8
  149. package/build/lib/commandclass/NodeNamingCC.d.ts.map +1 -1
  150. package/build/lib/commandclass/NodeNamingCC.js +14 -23
  151. package/build/lib/commandclass/NodeNamingCC.js.map +1 -1
  152. package/build/lib/commandclass/NotificationCC.d.ts +3 -19
  153. package/build/lib/commandclass/NotificationCC.d.ts.map +1 -1
  154. package/build/lib/commandclass/NotificationCC.js +21 -38
  155. package/build/lib/commandclass/NotificationCC.js.map +1 -1
  156. package/build/lib/commandclass/PowerlevelCC.d.ts +1 -9
  157. package/build/lib/commandclass/PowerlevelCC.d.ts.map +1 -1
  158. package/build/lib/commandclass/PowerlevelCC.js +17 -63
  159. package/build/lib/commandclass/PowerlevelCC.js.map +1 -1
  160. package/build/lib/commandclass/ProtectionCC.d.ts +1 -23
  161. package/build/lib/commandclass/ProtectionCC.d.ts.map +1 -1
  162. package/build/lib/commandclass/ProtectionCC.js +46 -104
  163. package/build/lib/commandclass/ProtectionCC.js.map +1 -1
  164. package/build/lib/commandclass/SceneActivationCC.d.ts +1 -3
  165. package/build/lib/commandclass/SceneActivationCC.d.ts.map +1 -1
  166. package/build/lib/commandclass/SceneActivationCC.js +4 -11
  167. package/build/lib/commandclass/SceneActivationCC.js.map +1 -1
  168. package/build/lib/commandclass/SceneActuatorConfigurationCC.d.ts +1 -5
  169. package/build/lib/commandclass/SceneActuatorConfigurationCC.d.ts.map +1 -1
  170. package/build/lib/commandclass/SceneActuatorConfigurationCC.js +10 -16
  171. package/build/lib/commandclass/SceneActuatorConfigurationCC.js.map +1 -1
  172. package/build/lib/commandclass/SceneControllerConfigurationCC.d.ts +1 -5
  173. package/build/lib/commandclass/SceneControllerConfigurationCC.d.ts.map +1 -1
  174. package/build/lib/commandclass/SceneControllerConfigurationCC.js +11 -17
  175. package/build/lib/commandclass/SceneControllerConfigurationCC.js.map +1 -1
  176. package/build/lib/commandclass/Security2CC.d.ts +1 -16
  177. package/build/lib/commandclass/Security2CC.d.ts.map +1 -1
  178. package/build/lib/commandclass/Security2CC.js +34 -51
  179. package/build/lib/commandclass/Security2CC.js.map +1 -1
  180. package/build/lib/commandclass/SecurityCC.d.ts +1 -13
  181. package/build/lib/commandclass/SecurityCC.d.ts.map +1 -1
  182. package/build/lib/commandclass/SecurityCC.js +21 -35
  183. package/build/lib/commandclass/SecurityCC.js.map +1 -1
  184. package/build/lib/commandclass/SoundSwitchCC.d.ts +1 -16
  185. package/build/lib/commandclass/SoundSwitchCC.d.ts.map +1 -1
  186. package/build/lib/commandclass/SoundSwitchCC.js +25 -44
  187. package/build/lib/commandclass/SoundSwitchCC.js.map +1 -1
  188. package/build/lib/commandclass/SupervisionCC.d.ts +1 -16
  189. package/build/lib/commandclass/SupervisionCC.d.ts.map +1 -1
  190. package/build/lib/commandclass/SupervisionCC.js +11 -24
  191. package/build/lib/commandclass/SupervisionCC.js.map +1 -1
  192. package/build/lib/commandclass/ThermostatFanModeCC.d.ts +1 -24
  193. package/build/lib/commandclass/ThermostatFanModeCC.d.ts.map +1 -1
  194. package/build/lib/commandclass/ThermostatFanModeCC.js +22 -90
  195. package/build/lib/commandclass/ThermostatFanModeCC.js.map +1 -1
  196. package/build/lib/commandclass/ThermostatFanStateCC.d.ts +1 -15
  197. package/build/lib/commandclass/ThermostatFanStateCC.d.ts.map +1 -1
  198. package/build/lib/commandclass/ThermostatFanStateCC.js +9 -26
  199. package/build/lib/commandclass/ThermostatFanStateCC.js.map +1 -1
  200. package/build/lib/commandclass/ThermostatModeCC.d.ts +1 -28
  201. package/build/lib/commandclass/ThermostatModeCC.d.ts.map +1 -1
  202. package/build/lib/commandclass/ThermostatModeCC.js +25 -109
  203. package/build/lib/commandclass/ThermostatModeCC.js.map +1 -1
  204. package/build/lib/commandclass/ThermostatOperatingStateCC.d.ts +1 -21
  205. package/build/lib/commandclass/ThermostatOperatingStateCC.d.ts.map +1 -1
  206. package/build/lib/commandclass/ThermostatOperatingStateCC.js +9 -37
  207. package/build/lib/commandclass/ThermostatOperatingStateCC.js.map +1 -1
  208. package/build/lib/commandclass/ThermostatSetbackCC.d.ts +1 -13
  209. package/build/lib/commandclass/ThermostatSetbackCC.d.ts.map +1 -1
  210. package/build/lib/commandclass/ThermostatSetbackCC.js +12 -26
  211. package/build/lib/commandclass/ThermostatSetbackCC.js.map +1 -1
  212. package/build/lib/commandclass/ThermostatSetpointCC.d.ts +2 -45
  213. package/build/lib/commandclass/ThermostatSetpointCC.d.ts.map +1 -1
  214. package/build/lib/commandclass/ThermostatSetpointCC.js +33 -109
  215. package/build/lib/commandclass/ThermostatSetpointCC.js.map +1 -1
  216. package/build/lib/commandclass/TimeCC.d.ts +1 -9
  217. package/build/lib/commandclass/TimeCC.d.ts.map +1 -1
  218. package/build/lib/commandclass/TimeCC.js +17 -27
  219. package/build/lib/commandclass/TimeCC.js.map +1 -1
  220. package/build/lib/commandclass/TimeParametersCC.d.ts +1 -5
  221. package/build/lib/commandclass/TimeParametersCC.d.ts.map +1 -1
  222. package/build/lib/commandclass/TimeParametersCC.js +9 -15
  223. package/build/lib/commandclass/TimeParametersCC.js.map +1 -1
  224. package/build/lib/commandclass/TransportServiceCC.d.ts +1 -7
  225. package/build/lib/commandclass/TransportServiceCC.d.ts.map +1 -1
  226. package/build/lib/commandclass/TransportServiceCC.js +9 -17
  227. package/build/lib/commandclass/TransportServiceCC.js.map +1 -1
  228. package/build/lib/commandclass/UserCodeCC.d.ts +1 -34
  229. package/build/lib/commandclass/UserCodeCC.d.ts.map +1 -1
  230. package/build/lib/commandclass/UserCodeCC.js +78 -142
  231. package/build/lib/commandclass/UserCodeCC.js.map +1 -1
  232. package/build/lib/commandclass/VersionCC.d.ts +1 -10
  233. package/build/lib/commandclass/VersionCC.d.ts.map +1 -1
  234. package/build/lib/commandclass/VersionCC.js +18 -28
  235. package/build/lib/commandclass/VersionCC.js.map +1 -1
  236. package/build/lib/commandclass/WakeUpCC.d.ts +1 -9
  237. package/build/lib/commandclass/WakeUpCC.d.ts.map +1 -1
  238. package/build/lib/commandclass/WakeUpCC.js +17 -26
  239. package/build/lib/commandclass/WakeUpCC.js.map +1 -1
  240. package/build/lib/commandclass/ZWavePlusCC.d.ts +1 -24
  241. package/build/lib/commandclass/ZWavePlusCC.d.ts.map +1 -1
  242. package/build/lib/commandclass/ZWavePlusCC.js +10 -36
  243. package/build/lib/commandclass/ZWavePlusCC.js.map +1 -1
  244. package/build/lib/commandclass/_Types.d.ts +1235 -1
  245. package/build/lib/commandclass/_Types.d.ts.map +1 -1
  246. package/build/lib/commandclass/_Types.js +1203 -1
  247. package/build/lib/commandclass/_Types.js.map +1 -1
  248. package/build/lib/commandclass/index.d.ts +30 -45
  249. package/build/lib/commandclass/index.d.ts.map +1 -1
  250. package/build/lib/commandclass/index.js +55 -49
  251. package/build/lib/commandclass/index.js.map +1 -1
  252. package/build/lib/controller/Controller.d.ts +1 -2
  253. package/build/lib/controller/Controller.d.ts.map +1 -1
  254. package/build/lib/controller/Controller.js.map +1 -1
  255. package/build/lib/driver/Driver.d.ts +2 -1
  256. package/build/lib/driver/Driver.d.ts.map +1 -1
  257. package/build/lib/driver/Driver.js +25 -24
  258. package/build/lib/driver/Driver.js.map +1 -1
  259. package/build/lib/node/Endpoint.d.ts.map +1 -1
  260. package/build/lib/node/Endpoint.js.map +1 -1
  261. package/build/lib/node/Node.d.ts +1 -3
  262. package/build/lib/node/Node.d.ts.map +1 -1
  263. package/build/lib/node/Node.js +54 -44
  264. package/build/lib/node/Node.js.map +1 -1
  265. package/build/lib/node/_Types.d.ts +1 -2
  266. package/build/lib/node/_Types.d.ts.map +1 -1
  267. package/package.json +8 -8
@@ -7,7 +7,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
7
7
  };
8
8
  var _a, _b;
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.UserCodeCCExtendedUserCodeGet = exports.UserCodeCCExtendedUserCodeReport = exports.UserCodeCCExtendedUserCodeSet = exports.UserCodeCCUserCodeChecksumGet = exports.UserCodeCCUserCodeChecksumReport = exports.UserCodeCCMasterCodeGet = exports.UserCodeCCMasterCodeReport = exports.UserCodeCCMasterCodeSet = exports.UserCodeCCKeypadModeGet = exports.UserCodeCCKeypadModeReport = exports.UserCodeCCKeypadModeSet = exports.UserCodeCCCapabilitiesGet = exports.UserCodeCCCapabilitiesReport = exports.UserCodeCCUsersNumberGet = exports.UserCodeCCUsersNumberReport = exports.UserCodeCCGet = exports.UserCodeCCReport = exports.UserCodeCCSet = exports.UserCodeCC = exports.UserCodeCCAPI = exports.userCodeToLogString = exports.getSupportsMultipleUserCodeSetValueID = exports.getSupportedASCIICharsValueID = exports.getKeypadModeValueID = exports.getSupportedKeypadModesValueID = exports.getSupportedUserIDStatusesValueID = exports.getSupportsUserCodeChecksumValueID = exports.getSupportsMasterCodeDeactivationValueID = exports.getSupportsMasterCodeValueID = exports.getUserCodeChecksumValueID = exports.getUserCodeValueID = exports.getUserIdStatusValueID = exports.getSupportedUsersValueID = exports.KeypadMode = exports.UserIDStatus = exports.UserCodeCommand = void 0;
10
+ exports.UserCodeCCExtendedUserCodeGet = exports.UserCodeCCExtendedUserCodeReport = exports.UserCodeCCExtendedUserCodeSet = exports.UserCodeCCUserCodeChecksumGet = exports.UserCodeCCUserCodeChecksumReport = exports.UserCodeCCMasterCodeGet = exports.UserCodeCCMasterCodeReport = exports.UserCodeCCMasterCodeSet = exports.UserCodeCCKeypadModeGet = exports.UserCodeCCKeypadModeReport = exports.UserCodeCCKeypadModeSet = exports.UserCodeCCCapabilitiesGet = exports.UserCodeCCCapabilitiesReport = exports.UserCodeCCUsersNumberGet = exports.UserCodeCCUsersNumberReport = exports.UserCodeCCGet = exports.UserCodeCCReport = exports.UserCodeCCSet = exports.UserCodeCC = exports.UserCodeCCAPI = exports.userCodeToLogString = exports.getSupportsMultipleUserCodeSetValueID = exports.getSupportedASCIICharsValueID = exports.getKeypadModeValueID = exports.getSupportedKeypadModesValueID = exports.getSupportedUserIDStatusesValueID = exports.getSupportsUserCodeChecksumValueID = exports.getSupportsMasterCodeDeactivationValueID = exports.getSupportsMasterCodeValueID = exports.getUserCodeChecksumValueID = exports.getUserCodeValueID = exports.getUserIdStatusValueID = exports.getSupportedUsersValueID = void 0;
11
11
  function __assertType(argName, typeName, boundHasError) {
12
12
  const { ZWaveError, ZWaveErrorCodes } = require("@zwave-js/core");
13
13
  if (boundHasError()) {
@@ -65,9 +65,6 @@ const __assertType__su__string__buffer_eu = $o => {
65
65
  function _buffer($o) {
66
66
  return !Buffer.isBuffer($o) ? {} : null;
67
67
  }
68
- function _null($o) {
69
- return $o !== null ? {} : null;
70
- }
71
68
  function su__string__buffer_eu($o) {
72
69
  const conditions = [_string, _buffer];
73
70
  for (const condition of conditions) {
@@ -167,9 +164,6 @@ const __assertType__sa_su__3__4__5_eu_ea_2 = $o => {
167
164
  function _buffer($o) {
168
165
  return !Buffer.isBuffer($o) ? {} : null;
169
166
  }
170
- function _null($o) {
171
- return $o !== null ? {} : null;
172
- }
173
167
  function su__string__buffer_eu($o) {
174
168
  const conditions = [_string, _buffer];
175
169
  for (const condition of conditions) {
@@ -241,26 +235,8 @@ const __assertType__optional_number = $o => {
241
235
  return optional__number($o);
242
236
  };
243
237
  const __assertType__KeypadMode = $o => {
244
- function _1($o) {
245
- return $o !== 0 ? {} : null;
246
- }
247
- function _2($o) {
248
- return $o !== 1 ? {} : null;
249
- }
250
- function _3($o) {
251
- return $o !== 2 ? {} : null;
252
- }
253
- function _4($o) {
254
- return $o !== 3 ? {} : null;
255
- }
256
238
  function su__1__2__3__4_eu($o) {
257
- const conditions = [_1, _2, _3, _4];
258
- for (const condition of conditions) {
259
- const error = condition($o);
260
- if (!error)
261
- return null;
262
- }
263
- return {};
239
+ return ![0, 1, 2, 3].includes($o) ? {} : null;
264
240
  }
265
241
  return su__1__2__3__4_eu($o);
266
242
  };
@@ -275,47 +251,7 @@ const shared_1 = require("@zwave-js/shared");
275
251
  const API_1 = require("../commandclass/API");
276
252
  const Constants_1 = require("../message/Constants");
277
253
  const CommandClass_1 = require("./CommandClass");
278
- // All the supported commands
279
- var UserCodeCommand;
280
- (function (UserCodeCommand) {
281
- UserCodeCommand[UserCodeCommand["Set"] = 1] = "Set";
282
- UserCodeCommand[UserCodeCommand["Get"] = 2] = "Get";
283
- UserCodeCommand[UserCodeCommand["Report"] = 3] = "Report";
284
- // V2+
285
- UserCodeCommand[UserCodeCommand["UsersNumberGet"] = 4] = "UsersNumberGet";
286
- UserCodeCommand[UserCodeCommand["UsersNumberReport"] = 5] = "UsersNumberReport";
287
- UserCodeCommand[UserCodeCommand["CapabilitiesGet"] = 6] = "CapabilitiesGet";
288
- UserCodeCommand[UserCodeCommand["CapabilitiesReport"] = 7] = "CapabilitiesReport";
289
- UserCodeCommand[UserCodeCommand["KeypadModeSet"] = 8] = "KeypadModeSet";
290
- UserCodeCommand[UserCodeCommand["KeypadModeGet"] = 9] = "KeypadModeGet";
291
- UserCodeCommand[UserCodeCommand["KeypadModeReport"] = 10] = "KeypadModeReport";
292
- UserCodeCommand[UserCodeCommand["ExtendedUserCodeSet"] = 11] = "ExtendedUserCodeSet";
293
- UserCodeCommand[UserCodeCommand["ExtendedUserCodeGet"] = 12] = "ExtendedUserCodeGet";
294
- UserCodeCommand[UserCodeCommand["ExtendedUserCodeReport"] = 13] = "ExtendedUserCodeReport";
295
- UserCodeCommand[UserCodeCommand["MasterCodeSet"] = 14] = "MasterCodeSet";
296
- UserCodeCommand[UserCodeCommand["MasterCodeGet"] = 15] = "MasterCodeGet";
297
- UserCodeCommand[UserCodeCommand["MasterCodeReport"] = 16] = "MasterCodeReport";
298
- UserCodeCommand[UserCodeCommand["UserCodeChecksumGet"] = 17] = "UserCodeChecksumGet";
299
- UserCodeCommand[UserCodeCommand["UserCodeChecksumReport"] = 18] = "UserCodeChecksumReport";
300
- })(UserCodeCommand = exports.UserCodeCommand || (exports.UserCodeCommand = {}));
301
- // @publicAPI
302
- var UserIDStatus;
303
- (function (UserIDStatus) {
304
- UserIDStatus[UserIDStatus["Available"] = 0] = "Available";
305
- UserIDStatus[UserIDStatus["Enabled"] = 1] = "Enabled";
306
- UserIDStatus[UserIDStatus["Disabled"] = 2] = "Disabled";
307
- UserIDStatus[UserIDStatus["Messaging"] = 3] = "Messaging";
308
- UserIDStatus[UserIDStatus["PassageMode"] = 4] = "PassageMode";
309
- UserIDStatus[UserIDStatus["StatusNotAvailable"] = 254] = "StatusNotAvailable";
310
- })(UserIDStatus = exports.UserIDStatus || (exports.UserIDStatus = {}));
311
- // @publicAPI
312
- var KeypadMode;
313
- (function (KeypadMode) {
314
- KeypadMode[KeypadMode["Normal"] = 0] = "Normal";
315
- KeypadMode[KeypadMode["Vacation"] = 1] = "Vacation";
316
- KeypadMode[KeypadMode["Privacy"] = 2] = "Privacy";
317
- KeypadMode[KeypadMode["LockedOut"] = 3] = "LockedOut";
318
- })(KeypadMode = exports.KeypadMode || (exports.KeypadMode = {}));
254
+ const _Types_1 = require("./_Types");
319
255
  function getSupportedUsersValueID(endpoint) {
320
256
  return {
321
257
  commandClass: core_1.CommandClasses["User Code"],
@@ -442,22 +378,22 @@ function setUserCodeMetadata(userId, userCode) {
442
378
  const codeValueId = getUserCodeValueID(this.endpointIndex, userId);
443
379
  const supportedUserIDStatuses = (_c = valueDB.getValue(getSupportedUserIDStatusesValueID(this.endpointIndex))) !== null && _c !== void 0 ? _c : (this.version === 1
444
380
  ? [
445
- UserIDStatus.Available,
446
- UserIDStatus.Enabled,
447
- UserIDStatus.Disabled,
381
+ _Types_1.UserIDStatus.Available,
382
+ _Types_1.UserIDStatus.Enabled,
383
+ _Types_1.UserIDStatus.Disabled,
448
384
  ]
449
385
  : [
450
- UserIDStatus.Available,
451
- UserIDStatus.Enabled,
452
- UserIDStatus.Disabled,
453
- UserIDStatus.Messaging,
454
- UserIDStatus.PassageMode,
386
+ _Types_1.UserIDStatus.Available,
387
+ _Types_1.UserIDStatus.Enabled,
388
+ _Types_1.UserIDStatus.Disabled,
389
+ _Types_1.UserIDStatus.Messaging,
390
+ _Types_1.UserIDStatus.PassageMode,
455
391
  ]);
456
392
  if (!valueDB.hasMetadata(statusValueId)) {
457
393
  valueDB.setMetadata(statusValueId, {
458
394
  ...core_1.ValueMetadata.Number,
459
395
  label: `User ID status (${userId})`,
460
- states: (0, core_1.enumValuesToMetadataStates)(UserIDStatus, supportedUserIDStatuses),
396
+ states: (0, core_1.enumValuesToMetadataStates)(_Types_1.UserIDStatus, supportedUserIDStatuses),
461
397
  });
462
398
  }
463
399
  const codeMetadata = {
@@ -477,7 +413,7 @@ function persistUserCode(userId, userIdStatus, userCode) {
477
413
  const codeValueId = getUserCodeValueID(this.endpointIndex, userId);
478
414
  const valueDB = this.getValueDB();
479
415
  // Check if this code is supported
480
- if (userIdStatus === UserIDStatus.StatusNotAvailable) {
416
+ if (userIdStatus === _Types_1.UserIDStatus.StatusNotAvailable) {
481
417
  // It is not, remove all values if any exist
482
418
  valueDB.removeValue(statusValueId);
483
419
  valueDB.removeValue(codeValueId);
@@ -525,7 +461,7 @@ let UserCodeCCAPI = class UserCodeCCAPI extends API_1.PhysicalCCAPI {
525
461
  if (typeof value !== "number") {
526
462
  (0, API_1.throwWrongValueType)(this.ccId, property, "number", typeof value);
527
463
  }
528
- if (value === UserIDStatus.Available) {
464
+ if (value === _Types_1.UserIDStatus.Available) {
529
465
  // Clear Code
530
466
  await this.clear(propertyKey);
531
467
  }
@@ -549,9 +485,9 @@ let UserCodeCCAPI = class UserCodeCCAPI extends API_1.PhysicalCCAPI {
549
485
  // We need to set the user id status along with the code
550
486
  const node = this.endpoint.getNodeUnsafe();
551
487
  let userIdStatus = node.getValue(getUserIdStatusValueID(this.endpoint.index, propertyKey));
552
- if (userIdStatus === UserIDStatus.Available ||
488
+ if (userIdStatus === _Types_1.UserIDStatus.Available ||
553
489
  userIdStatus == undefined) {
554
- userIdStatus = UserIDStatus.Enabled;
490
+ userIdStatus = _Types_1.UserIDStatus.Enabled;
555
491
  }
556
492
  await this.set(propertyKey, userIdStatus, value);
557
493
  }
@@ -586,25 +522,25 @@ let UserCodeCCAPI = class UserCodeCCAPI extends API_1.PhysicalCCAPI {
586
522
  supportsCommand(cmd) {
587
523
  var _c, _d;
588
524
  switch (cmd) {
589
- case UserCodeCommand.Get:
590
- case UserCodeCommand.Set:
591
- case UserCodeCommand.UsersNumberGet:
525
+ case _Types_1.UserCodeCommand.Get:
526
+ case _Types_1.UserCodeCommand.Set:
527
+ case _Types_1.UserCodeCommand.UsersNumberGet:
592
528
  return true; // This is mandatory
593
- case UserCodeCommand.CapabilitiesGet:
594
- case UserCodeCommand.KeypadModeSet:
595
- case UserCodeCommand.KeypadModeGet:
596
- case UserCodeCommand.ExtendedUserCodeSet:
597
- case UserCodeCommand.ExtendedUserCodeGet:
529
+ case _Types_1.UserCodeCommand.CapabilitiesGet:
530
+ case _Types_1.UserCodeCommand.KeypadModeSet:
531
+ case _Types_1.UserCodeCommand.KeypadModeGet:
532
+ case _Types_1.UserCodeCommand.ExtendedUserCodeSet:
533
+ case _Types_1.UserCodeCommand.ExtendedUserCodeGet:
598
534
  return this.version >= 2;
599
- case UserCodeCommand.MasterCodeSet:
600
- case UserCodeCommand.MasterCodeGet: {
535
+ case _Types_1.UserCodeCommand.MasterCodeSet:
536
+ case _Types_1.UserCodeCommand.MasterCodeGet: {
601
537
  if (this.version < 2)
602
538
  return false;
603
539
  const node = this.endpoint.getNodeUnsafe();
604
540
  const ret = (_c = node.getValue(getSupportsMasterCodeValueID(this.endpoint.index))) !== null && _c !== void 0 ? _c : core_1.unknownBoolean;
605
541
  return ret;
606
542
  }
607
- case UserCodeCommand.UserCodeChecksumGet: {
543
+ case _Types_1.UserCodeCommand.UserCodeChecksumGet: {
608
544
  if (this.version < 2)
609
545
  return false;
610
546
  const node = this.endpoint.getNodeUnsafe();
@@ -615,7 +551,7 @@ let UserCodeCCAPI = class UserCodeCCAPI extends API_1.PhysicalCCAPI {
615
551
  return super.supportsCommand(cmd);
616
552
  }
617
553
  async getUsersCount() {
618
- this.assertSupportsCommand(UserCodeCommand, UserCodeCommand.UsersNumberGet);
554
+ this.assertSupportsCommand(_Types_1.UserCodeCommand, _Types_1.UserCodeCommand.UsersNumberGet);
619
555
  const cc = new UserCodeCCUsersNumberGet(this.driver, {
620
556
  nodeId: this.endpoint.nodeId,
621
557
  endpoint: this.endpoint.index,
@@ -627,7 +563,7 @@ let UserCodeCCAPI = class UserCodeCCAPI extends API_1.PhysicalCCAPI {
627
563
  __assertType("userId", "number", __assertType__number.bind(void 0, userId));
628
564
  __assertType("multiple", "(optional) boolean", __assertType__optional_boolean.bind(void 0, multiple));
629
565
  if (userId > 255 || multiple) {
630
- this.assertSupportsCommand(UserCodeCommand, UserCodeCommand.ExtendedUserCodeGet);
566
+ this.assertSupportsCommand(_Types_1.UserCodeCommand, _Types_1.UserCodeCommand.ExtendedUserCodeGet);
631
567
  const cc = new UserCodeCCExtendedUserCodeGet(this.driver, {
632
568
  nodeId: this.endpoint.nodeId,
633
569
  endpoint: this.endpoint.index,
@@ -649,7 +585,7 @@ let UserCodeCCAPI = class UserCodeCCAPI extends API_1.PhysicalCCAPI {
649
585
  }
650
586
  }
651
587
  else {
652
- this.assertSupportsCommand(UserCodeCommand, UserCodeCommand.Get);
588
+ this.assertSupportsCommand(_Types_1.UserCodeCommand, _Types_1.UserCodeCommand.Get);
653
589
  const cc = new UserCodeCCGet(this.driver, {
654
590
  nodeId: this.endpoint.nodeId,
655
591
  endpoint: this.endpoint.index,
@@ -668,7 +604,7 @@ let UserCodeCCAPI = class UserCodeCCAPI extends API_1.PhysicalCCAPI {
668
604
  if (this.version > 1 || userId > 255) {
669
605
  return this.setMany([{ userId, userIdStatus, userCode }]);
670
606
  }
671
- this.assertSupportsCommand(UserCodeCommand, UserCodeCommand.Set);
607
+ this.assertSupportsCommand(_Types_1.UserCodeCommand, _Types_1.UserCodeCommand.Set);
672
608
  const cc = new UserCodeCCSet(this.driver, {
673
609
  nodeId: this.endpoint.nodeId,
674
610
  endpoint: this.endpoint.index,
@@ -681,7 +617,7 @@ let UserCodeCCAPI = class UserCodeCCAPI extends API_1.PhysicalCCAPI {
681
617
  /** Configures multiple user codes */
682
618
  async setMany(codes) {
683
619
  __assertType("codes", undefined, __assertType__sa_su__3__4__5_eu_ea_2.bind(void 0, codes));
684
- this.assertSupportsCommand(UserCodeCommand, UserCodeCommand.ExtendedUserCodeSet);
620
+ this.assertSupportsCommand(_Types_1.UserCodeCommand, _Types_1.UserCodeCommand.ExtendedUserCodeSet);
685
621
  const cc = new UserCodeCCExtendedUserCodeSet(this.driver, {
686
622
  nodeId: this.endpoint.nodeId,
687
623
  endpoint: this.endpoint.index,
@@ -697,23 +633,23 @@ let UserCodeCCAPI = class UserCodeCCAPI extends API_1.PhysicalCCAPI {
697
633
  __assertType("userId", "(optional) number", __assertType__optional_number.bind(void 0, userId));
698
634
  if (this.version > 1 || userId > 255) {
699
635
  await this.setMany([
700
- { userId, userIdStatus: UserIDStatus.Available },
636
+ { userId, userIdStatus: _Types_1.UserIDStatus.Available },
701
637
  ]);
702
638
  }
703
639
  else {
704
- this.assertSupportsCommand(UserCodeCommand, UserCodeCommand.Set);
640
+ this.assertSupportsCommand(_Types_1.UserCodeCommand, _Types_1.UserCodeCommand.Set);
705
641
  const cc = new UserCodeCCSet(this.driver, {
706
642
  nodeId: this.endpoint.nodeId,
707
643
  endpoint: this.endpoint.index,
708
644
  userId,
709
- userIdStatus: UserIDStatus.Available,
645
+ userIdStatus: _Types_1.UserIDStatus.Available,
710
646
  });
711
647
  await this.driver.sendCommand(cc, this.commandOptions);
712
648
  }
713
649
  }
714
650
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
715
651
  async getCapabilities() {
716
- this.assertSupportsCommand(UserCodeCommand, UserCodeCommand.CapabilitiesGet);
652
+ this.assertSupportsCommand(_Types_1.UserCodeCommand, _Types_1.UserCodeCommand.CapabilitiesGet);
717
653
  const cc = new UserCodeCCCapabilitiesGet(this.driver, {
718
654
  nodeId: this.endpoint.nodeId,
719
655
  endpoint: this.endpoint.index,
@@ -733,7 +669,7 @@ let UserCodeCCAPI = class UserCodeCCAPI extends API_1.PhysicalCCAPI {
733
669
  }
734
670
  }
735
671
  async getKeypadMode() {
736
- this.assertSupportsCommand(UserCodeCommand, UserCodeCommand.KeypadModeGet);
672
+ this.assertSupportsCommand(_Types_1.UserCodeCommand, _Types_1.UserCodeCommand.KeypadModeGet);
737
673
  const cc = new UserCodeCCKeypadModeGet(this.driver, {
738
674
  nodeId: this.endpoint.nodeId,
739
675
  endpoint: this.endpoint.index,
@@ -743,7 +679,7 @@ let UserCodeCCAPI = class UserCodeCCAPI extends API_1.PhysicalCCAPI {
743
679
  }
744
680
  async setKeypadMode(keypadMode) {
745
681
  __assertType("keypadMode", "KeypadMode", __assertType__KeypadMode.bind(void 0, keypadMode));
746
- this.assertSupportsCommand(UserCodeCommand, UserCodeCommand.KeypadModeSet);
682
+ this.assertSupportsCommand(_Types_1.UserCodeCommand, _Types_1.UserCodeCommand.KeypadModeSet);
747
683
  const cc = new UserCodeCCKeypadModeSet(this.driver, {
748
684
  nodeId: this.endpoint.nodeId,
749
685
  endpoint: this.endpoint.index,
@@ -752,7 +688,7 @@ let UserCodeCCAPI = class UserCodeCCAPI extends API_1.PhysicalCCAPI {
752
688
  await this.driver.sendCommand(cc, this.commandOptions);
753
689
  }
754
690
  async getMasterCode() {
755
- this.assertSupportsCommand(UserCodeCommand, UserCodeCommand.MasterCodeGet);
691
+ this.assertSupportsCommand(_Types_1.UserCodeCommand, _Types_1.UserCodeCommand.MasterCodeGet);
756
692
  const cc = new UserCodeCCMasterCodeGet(this.driver, {
757
693
  nodeId: this.endpoint.nodeId,
758
694
  endpoint: this.endpoint.index,
@@ -762,7 +698,7 @@ let UserCodeCCAPI = class UserCodeCCAPI extends API_1.PhysicalCCAPI {
762
698
  }
763
699
  async setMasterCode(masterCode) {
764
700
  __assertType("masterCode", "string", __assertType__string.bind(void 0, masterCode));
765
- this.assertSupportsCommand(UserCodeCommand, UserCodeCommand.MasterCodeSet);
701
+ this.assertSupportsCommand(_Types_1.UserCodeCommand, _Types_1.UserCodeCommand.MasterCodeSet);
766
702
  const cc = new UserCodeCCMasterCodeSet(this.driver, {
767
703
  nodeId: this.endpoint.nodeId,
768
704
  endpoint: this.endpoint.index,
@@ -771,7 +707,7 @@ let UserCodeCCAPI = class UserCodeCCAPI extends API_1.PhysicalCCAPI {
771
707
  await this.driver.sendCommand(cc, this.commandOptions);
772
708
  }
773
709
  async getUserCodeChecksum() {
774
- this.assertSupportsCommand(UserCodeCommand, UserCodeCommand.UserCodeChecksumGet);
710
+ this.assertSupportsCommand(_Types_1.UserCodeCommand, _Types_1.UserCodeCommand.UserCodeChecksumGet);
775
711
  const cc = new UserCodeCCUserCodeChecksumGet(this.driver, {
776
712
  nodeId: this.endpoint.nodeId,
777
713
  endpoint: this.endpoint.index,
@@ -929,10 +865,10 @@ let UserCodeCCSet = class UserCodeCCSet extends UserCodeCC {
929
865
  throw new core_1.ZWaveError(`${this.constructor.name}: The user ID must be between 0 and the number of supported users ${numUsers}.`, core_1.ZWaveErrorCodes.Argument_Invalid);
930
866
  }
931
867
  else if (this.userId === 0 &&
932
- this.userIdStatus !== UserIDStatus.Available) {
868
+ this.userIdStatus !== _Types_1.UserIDStatus.Available) {
933
869
  throw new core_1.ZWaveError(`${this.constructor.name}: User ID 0 may only be used to clear all user codes`, core_1.ZWaveErrorCodes.Argument_Invalid);
934
870
  }
935
- else if (this.userIdStatus === UserIDStatus.Available) {
871
+ else if (this.userIdStatus === _Types_1.UserIDStatus.Available) {
936
872
  this.userCode = "\0".repeat(4);
937
873
  }
938
874
  else {
@@ -960,14 +896,14 @@ let UserCodeCCSet = class UserCodeCCSet extends UserCodeCC {
960
896
  ...super.toLogEntry(),
961
897
  message: {
962
898
  "user id": this.userId,
963
- "id status": (0, shared_1.getEnumMemberName)(UserIDStatus, this.userIdStatus),
899
+ "id status": (0, shared_1.getEnumMemberName)(_Types_1.UserIDStatus, this.userIdStatus),
964
900
  "user code": userCodeToLogString(this.userCode),
965
901
  },
966
902
  };
967
903
  }
968
904
  };
969
905
  UserCodeCCSet = __decorate([
970
- (0, CommandClass_1.CCCommand)(UserCodeCommand.Set)
906
+ (0, CommandClass_1.CCCommand)(_Types_1.UserCodeCommand.Set)
971
907
  ], UserCodeCCSet);
972
908
  exports.UserCodeCCSet = UserCodeCCSet;
973
909
  let UserCodeCCReport = class UserCodeCCReport extends UserCodeCC {
@@ -977,8 +913,8 @@ let UserCodeCCReport = class UserCodeCCReport extends UserCodeCC {
977
913
  this.userId = this.payload[0];
978
914
  this.userIdStatus = this.payload[1];
979
915
  if (this.payload.length === 2 &&
980
- (this.userIdStatus === UserIDStatus.Available ||
981
- this.userIdStatus === UserIDStatus.StatusNotAvailable)) {
916
+ (this.userIdStatus === _Types_1.UserIDStatus.Available ||
917
+ this.userIdStatus === _Types_1.UserIDStatus.StatusNotAvailable)) {
982
918
  // The user code is not set or not available and this report contains no user code
983
919
  this.userCode = "";
984
920
  }
@@ -1018,7 +954,7 @@ let UserCodeCCReport = class UserCodeCCReport extends UserCodeCC {
1018
954
  ...super.toLogEntry(),
1019
955
  message: {
1020
956
  "user id": this.userId,
1021
- "id status": (0, shared_1.getEnumMemberName)(UserIDStatus, this.userIdStatus),
957
+ "id status": (0, shared_1.getEnumMemberName)(_Types_1.UserIDStatus, this.userIdStatus),
1022
958
  "user code": userCodeToLogString(this.userCode),
1023
959
  },
1024
960
  };
@@ -1029,7 +965,7 @@ let UserCodeCCReport = class UserCodeCCReport extends UserCodeCC {
1029
965
  }
1030
966
  };
1031
967
  UserCodeCCReport = __decorate([
1032
- (0, CommandClass_1.CCCommand)(UserCodeCommand.Report)
968
+ (0, CommandClass_1.CCCommand)(_Types_1.UserCodeCommand.Report)
1033
969
  ], UserCodeCCReport);
1034
970
  exports.UserCodeCCReport = UserCodeCCReport;
1035
971
  let UserCodeCCGet = class UserCodeCCGet extends UserCodeCC {
@@ -1055,7 +991,7 @@ let UserCodeCCGet = class UserCodeCCGet extends UserCodeCC {
1055
991
  }
1056
992
  };
1057
993
  UserCodeCCGet = __decorate([
1058
- (0, CommandClass_1.CCCommand)(UserCodeCommand.Get),
994
+ (0, CommandClass_1.CCCommand)(_Types_1.UserCodeCommand.Get),
1059
995
  (0, CommandClass_1.expectedCCResponse)(UserCodeCCReport)
1060
996
  ], UserCodeCCGet);
1061
997
  exports.UserCodeCCGet = UserCodeCCGet;
@@ -1084,13 +1020,13 @@ __decorate([
1084
1020
  (0, CommandClass_1.ccValue)({ internal: true })
1085
1021
  ], UserCodeCCUsersNumberReport.prototype, "supportedUsers", void 0);
1086
1022
  UserCodeCCUsersNumberReport = __decorate([
1087
- (0, CommandClass_1.CCCommand)(UserCodeCommand.UsersNumberReport)
1023
+ (0, CommandClass_1.CCCommand)(_Types_1.UserCodeCommand.UsersNumberReport)
1088
1024
  ], UserCodeCCUsersNumberReport);
1089
1025
  exports.UserCodeCCUsersNumberReport = UserCodeCCUsersNumberReport;
1090
1026
  let UserCodeCCUsersNumberGet = class UserCodeCCUsersNumberGet extends UserCodeCC {
1091
1027
  };
1092
1028
  UserCodeCCUsersNumberGet = __decorate([
1093
- (0, CommandClass_1.CCCommand)(UserCodeCommand.UsersNumberGet),
1029
+ (0, CommandClass_1.CCCommand)(_Types_1.UserCodeCommand.UsersNumberGet),
1094
1030
  (0, CommandClass_1.expectedCCResponse)(UserCodeCCUsersNumberReport)
1095
1031
  ], UserCodeCCUsersNumberGet);
1096
1032
  exports.UserCodeCCUsersNumberGet = UserCodeCCUsersNumberGet;
@@ -1104,7 +1040,7 @@ let UserCodeCCCapabilitiesReport = class UserCodeCCCapabilitiesReport extends Us
1104
1040
  const statusBitMaskLength = this.payload[offset] & 31;
1105
1041
  offset += 1;
1106
1042
  (0, core_1.validatePayload)(this.payload.length >= offset + statusBitMaskLength + 1);
1107
- this.supportedUserIDStatuses = (0, core_1.parseBitMask)(this.payload.slice(offset, offset + statusBitMaskLength), UserIDStatus.Available);
1043
+ this.supportedUserIDStatuses = (0, core_1.parseBitMask)(this.payload.slice(offset, offset + statusBitMaskLength), _Types_1.UserIDStatus.Available);
1108
1044
  offset += statusBitMaskLength;
1109
1045
  this.supportsUserCodeChecksum = !!(this.payload[offset] & 128);
1110
1046
  this.supportsMultipleUserCodeReport = !!(this.payload[offset] & 64);
@@ -1112,7 +1048,7 @@ let UserCodeCCCapabilitiesReport = class UserCodeCCCapabilitiesReport extends Us
1112
1048
  const keypadModesBitMaskLength = this.payload[offset] & 31;
1113
1049
  offset += 1;
1114
1050
  (0, core_1.validatePayload)(this.payload.length >= offset + keypadModesBitMaskLength + 1);
1115
- this.supportedKeypadModes = (0, core_1.parseBitMask)(this.payload.slice(offset, offset + keypadModesBitMaskLength), KeypadMode.Normal);
1051
+ this.supportedKeypadModes = (0, core_1.parseBitMask)(this.payload.slice(offset, offset + keypadModesBitMaskLength), _Types_1.KeypadMode.Normal);
1116
1052
  offset += keypadModesBitMaskLength;
1117
1053
  const keysBitMaskLength = this.payload[offset] & 31;
1118
1054
  offset += 1;
@@ -1130,10 +1066,10 @@ let UserCodeCCCapabilitiesReport = class UserCodeCCCapabilitiesReport extends Us
1130
1066
  "supports multiple codes in report": this.supportsMultipleUserCodeReport,
1131
1067
  "supports multiple codes in set": this.supportsMultipleUserCodeSet,
1132
1068
  "supported user id statuses": this.supportedUserIDStatuses
1133
- .map((status) => `\n· ${(0, shared_1.getEnumMemberName)(UserIDStatus, status)}`)
1069
+ .map((status) => `\n· ${(0, shared_1.getEnumMemberName)(_Types_1.UserIDStatus, status)}`)
1134
1070
  .join(""),
1135
1071
  "supported keypad modes": this.supportedKeypadModes
1136
- .map((mode) => `\n· ${(0, shared_1.getEnumMemberName)(KeypadMode, mode)}`)
1072
+ .map((mode) => `\n· ${(0, shared_1.getEnumMemberName)(_Types_1.KeypadMode, mode)}`)
1137
1073
  .join(""),
1138
1074
  "supported ASCII chars": this.supportedASCIIChars,
1139
1075
  },
@@ -1165,13 +1101,13 @@ __decorate([
1165
1101
  (0, CommandClass_1.ccValue)({ internal: true })
1166
1102
  ], UserCodeCCCapabilitiesReport.prototype, "supportedASCIIChars", void 0);
1167
1103
  UserCodeCCCapabilitiesReport = __decorate([
1168
- (0, CommandClass_1.CCCommand)(UserCodeCommand.CapabilitiesReport)
1104
+ (0, CommandClass_1.CCCommand)(_Types_1.UserCodeCommand.CapabilitiesReport)
1169
1105
  ], UserCodeCCCapabilitiesReport);
1170
1106
  exports.UserCodeCCCapabilitiesReport = UserCodeCCCapabilitiesReport;
1171
1107
  let UserCodeCCCapabilitiesGet = class UserCodeCCCapabilitiesGet extends UserCodeCC {
1172
1108
  };
1173
1109
  UserCodeCCCapabilitiesGet = __decorate([
1174
- (0, CommandClass_1.CCCommand)(UserCodeCommand.CapabilitiesGet),
1110
+ (0, CommandClass_1.CCCommand)(_Types_1.UserCodeCommand.CapabilitiesGet),
1175
1111
  (0, CommandClass_1.expectedCCResponse)(UserCodeCCCapabilitiesReport)
1176
1112
  ], UserCodeCCCapabilitiesGet);
1177
1113
  exports.UserCodeCCCapabilitiesGet = UserCodeCCCapabilitiesGet;
@@ -1190,7 +1126,7 @@ let UserCodeCCKeypadModeSet = class UserCodeCCKeypadModeSet extends UserCodeCC {
1190
1126
  this.keypadMode = options.keypadMode;
1191
1127
  const supportedModes = (_d = (_c = this.getNode()) === null || _c === void 0 ? void 0 : _c.getValue(getSupportedKeypadModesValueID(this.endpointIndex))) !== null && _d !== void 0 ? _d : [];
1192
1128
  if (!supportedModes.includes(this.keypadMode)) {
1193
- throw new core_1.ZWaveError(`${this.constructor.name}: The keypad mode ${(0, shared_1.getEnumMemberName)(KeypadMode, this.keypadMode)} is not supported by the node!`, core_1.ZWaveErrorCodes.Argument_Invalid);
1129
+ throw new core_1.ZWaveError(`${this.constructor.name}: The keypad mode ${(0, shared_1.getEnumMemberName)(_Types_1.KeypadMode, this.keypadMode)} is not supported by the node!`, core_1.ZWaveErrorCodes.Argument_Invalid);
1194
1130
  }
1195
1131
  }
1196
1132
  }
@@ -1201,12 +1137,12 @@ let UserCodeCCKeypadModeSet = class UserCodeCCKeypadModeSet extends UserCodeCC {
1201
1137
  toLogEntry() {
1202
1138
  return {
1203
1139
  ...super.toLogEntry(),
1204
- message: { mode: (0, shared_1.getEnumMemberName)(KeypadMode, this.keypadMode) },
1140
+ message: { mode: (0, shared_1.getEnumMemberName)(_Types_1.KeypadMode, this.keypadMode) },
1205
1141
  };
1206
1142
  }
1207
1143
  };
1208
1144
  UserCodeCCKeypadModeSet = __decorate([
1209
- (0, CommandClass_1.CCCommand)(UserCodeCommand.KeypadModeSet)
1145
+ (0, CommandClass_1.CCCommand)(_Types_1.UserCodeCommand.KeypadModeSet)
1210
1146
  ], UserCodeCCKeypadModeSet);
1211
1147
  exports.UserCodeCCKeypadModeSet = UserCodeCCKeypadModeSet;
1212
1148
  let UserCodeCCKeypadModeReport = class UserCodeCCKeypadModeReport extends UserCodeCC {
@@ -1226,7 +1162,7 @@ let UserCodeCCKeypadModeReport = class UserCodeCCKeypadModeReport extends UserCo
1226
1162
  this.getValueDB().setMetadata(valueId, {
1227
1163
  ...core_1.ValueMetadata.ReadOnlyNumber,
1228
1164
  label: "Keypad Mode",
1229
- states: (0, core_1.enumValuesToMetadataStates)(KeypadMode, supportedKeypadModes),
1165
+ states: (0, core_1.enumValuesToMetadataStates)(_Types_1.KeypadMode, supportedKeypadModes),
1230
1166
  });
1231
1167
  return true;
1232
1168
  }
@@ -1234,7 +1170,7 @@ let UserCodeCCKeypadModeReport = class UserCodeCCKeypadModeReport extends UserCo
1234
1170
  return {
1235
1171
  ...super.toLogEntry(),
1236
1172
  message: {
1237
- keypadMode: (0, shared_1.getEnumMemberName)(KeypadMode, this.keypadMode),
1173
+ keypadMode: (0, shared_1.getEnumMemberName)(_Types_1.KeypadMode, this.keypadMode),
1238
1174
  },
1239
1175
  };
1240
1176
  }
@@ -1243,13 +1179,13 @@ __decorate([
1243
1179
  (0, CommandClass_1.ccValue)({ minVersion: 2 })
1244
1180
  ], UserCodeCCKeypadModeReport.prototype, "keypadMode", void 0);
1245
1181
  UserCodeCCKeypadModeReport = __decorate([
1246
- (0, CommandClass_1.CCCommand)(UserCodeCommand.KeypadModeReport)
1182
+ (0, CommandClass_1.CCCommand)(_Types_1.UserCodeCommand.KeypadModeReport)
1247
1183
  ], UserCodeCCKeypadModeReport);
1248
1184
  exports.UserCodeCCKeypadModeReport = UserCodeCCKeypadModeReport;
1249
1185
  let UserCodeCCKeypadModeGet = class UserCodeCCKeypadModeGet extends UserCodeCC {
1250
1186
  };
1251
1187
  UserCodeCCKeypadModeGet = __decorate([
1252
- (0, CommandClass_1.CCCommand)(UserCodeCommand.KeypadModeGet),
1188
+ (0, CommandClass_1.CCCommand)(_Types_1.UserCodeCommand.KeypadModeGet),
1253
1189
  (0, CommandClass_1.expectedCCResponse)(UserCodeCCKeypadModeReport)
1254
1190
  ], UserCodeCCKeypadModeGet);
1255
1191
  exports.UserCodeCCKeypadModeGet = UserCodeCCKeypadModeGet;
@@ -1294,7 +1230,7 @@ let UserCodeCCMasterCodeSet = class UserCodeCCMasterCodeSet extends UserCodeCC {
1294
1230
  }
1295
1231
  };
1296
1232
  UserCodeCCMasterCodeSet = __decorate([
1297
- (0, CommandClass_1.CCCommand)(UserCodeCommand.MasterCodeSet)
1233
+ (0, CommandClass_1.CCCommand)(_Types_1.UserCodeCommand.MasterCodeSet)
1298
1234
  ], UserCodeCCMasterCodeSet);
1299
1235
  exports.UserCodeCCMasterCodeSet = UserCodeCCMasterCodeSet;
1300
1236
  let UserCodeCCMasterCodeReport = class UserCodeCCMasterCodeReport extends UserCodeCC {
@@ -1325,13 +1261,13 @@ __decorate([
1325
1261
  })
1326
1262
  ], UserCodeCCMasterCodeReport.prototype, "masterCode", void 0);
1327
1263
  UserCodeCCMasterCodeReport = __decorate([
1328
- (0, CommandClass_1.CCCommand)(UserCodeCommand.MasterCodeReport)
1264
+ (0, CommandClass_1.CCCommand)(_Types_1.UserCodeCommand.MasterCodeReport)
1329
1265
  ], UserCodeCCMasterCodeReport);
1330
1266
  exports.UserCodeCCMasterCodeReport = UserCodeCCMasterCodeReport;
1331
1267
  let UserCodeCCMasterCodeGet = class UserCodeCCMasterCodeGet extends UserCodeCC {
1332
1268
  };
1333
1269
  UserCodeCCMasterCodeGet = __decorate([
1334
- (0, CommandClass_1.CCCommand)(UserCodeCommand.MasterCodeGet),
1270
+ (0, CommandClass_1.CCCommand)(_Types_1.UserCodeCommand.MasterCodeGet),
1335
1271
  (0, CommandClass_1.expectedCCResponse)(UserCodeCCMasterCodeReport)
1336
1272
  ], UserCodeCCMasterCodeGet);
1337
1273
  exports.UserCodeCCMasterCodeGet = UserCodeCCMasterCodeGet;
@@ -1353,13 +1289,13 @@ __decorate([
1353
1289
  (0, CommandClass_1.ccValue)({ internal: true })
1354
1290
  ], UserCodeCCUserCodeChecksumReport.prototype, "userCodeChecksum", void 0);
1355
1291
  UserCodeCCUserCodeChecksumReport = __decorate([
1356
- (0, CommandClass_1.CCCommand)(UserCodeCommand.UserCodeChecksumReport)
1292
+ (0, CommandClass_1.CCCommand)(_Types_1.UserCodeCommand.UserCodeChecksumReport)
1357
1293
  ], UserCodeCCUserCodeChecksumReport);
1358
1294
  exports.UserCodeCCUserCodeChecksumReport = UserCodeCCUserCodeChecksumReport;
1359
1295
  let UserCodeCCUserCodeChecksumGet = class UserCodeCCUserCodeChecksumGet extends UserCodeCC {
1360
1296
  };
1361
1297
  UserCodeCCUserCodeChecksumGet = __decorate([
1362
- (0, CommandClass_1.CCCommand)(UserCodeCommand.UserCodeChecksumGet),
1298
+ (0, CommandClass_1.CCCommand)(_Types_1.UserCodeCommand.UserCodeChecksumGet),
1363
1299
  (0, CommandClass_1.expectedCCResponse)(UserCodeCCUserCodeChecksumReport)
1364
1300
  ], UserCodeCCUserCodeChecksumGet);
1365
1301
  exports.UserCodeCCUserCodeChecksumGet = UserCodeCCUserCodeChecksumGet;
@@ -1389,7 +1325,7 @@ let UserCodeCCExtendedUserCodeSet = class UserCodeCCExtendedUserCodeSet extends
1389
1325
  throw new core_1.ZWaveError(`${this.constructor.name}: If user ID 0 is used, only one code may be set`, core_1.ZWaveErrorCodes.Argument_Invalid);
1390
1326
  }
1391
1327
  else if (this.userCodes.some((code) => code.userId === 0 &&
1392
- code.userIdStatus !== UserIDStatus.Available)) {
1328
+ code.userIdStatus !== _Types_1.UserIDStatus.Available)) {
1393
1329
  throw new core_1.ZWaveError(`${this.constructor.name}: User ID 0 may only be used to clear all user codes`, core_1.ZWaveErrorCodes.Argument_Invalid);
1394
1330
  }
1395
1331
  else if (this.userCodes.length > 1 &&
@@ -1398,9 +1334,9 @@ let UserCodeCCExtendedUserCodeSet = class UserCodeCCExtendedUserCodeSet extends
1398
1334
  }
1399
1335
  for (const code of this.userCodes) {
1400
1336
  if (!supportedStatuses.includes(code.userIdStatus)) {
1401
- throw new core_1.ZWaveError(`${this.constructor.name}: The user ID status ${(0, shared_1.getEnumMemberName)(UserIDStatus, code.userIdStatus)} is not supported by the node`, core_1.ZWaveErrorCodes.Argument_Invalid);
1337
+ throw new core_1.ZWaveError(`${this.constructor.name}: The user ID status ${(0, shared_1.getEnumMemberName)(_Types_1.UserIDStatus, code.userIdStatus)} is not supported by the node`, core_1.ZWaveErrorCodes.Argument_Invalid);
1402
1338
  }
1403
- else if (code.userIdStatus === UserIDStatus.Available) {
1339
+ else if (code.userIdStatus === _Types_1.UserIDStatus.Available) {
1404
1340
  code.userCode = "";
1405
1341
  }
1406
1342
  else {
@@ -1429,7 +1365,7 @@ let UserCodeCCExtendedUserCodeSet = class UserCodeCCExtendedUserCodeSet extends
1429
1365
  toLogEntry() {
1430
1366
  const message = {};
1431
1367
  for (const { userId, userIdStatus, userCode } of this.userCodes) {
1432
- message[`code #${userId}`] = `${userCodeToLogString(userCode)} (status: ${(0, shared_1.getEnumMemberName)(UserIDStatus, userIdStatus)})`;
1368
+ message[`code #${userId}`] = `${userCodeToLogString(userCode)} (status: ${(0, shared_1.getEnumMemberName)(_Types_1.UserIDStatus, userIdStatus)})`;
1433
1369
  }
1434
1370
  return {
1435
1371
  ...super.toLogEntry(),
@@ -1438,7 +1374,7 @@ let UserCodeCCExtendedUserCodeSet = class UserCodeCCExtendedUserCodeSet extends
1438
1374
  }
1439
1375
  };
1440
1376
  UserCodeCCExtendedUserCodeSet = __decorate([
1441
- (0, CommandClass_1.CCCommand)(UserCodeCommand.ExtendedUserCodeSet)
1377
+ (0, CommandClass_1.CCCommand)(_Types_1.UserCodeCommand.ExtendedUserCodeSet)
1442
1378
  ], UserCodeCCExtendedUserCodeSet);
1443
1379
  exports.UserCodeCCExtendedUserCodeSet = UserCodeCCExtendedUserCodeSet;
1444
1380
  let UserCodeCCExtendedUserCodeReport = class UserCodeCCExtendedUserCodeReport extends UserCodeCC {
@@ -1468,7 +1404,7 @@ let UserCodeCCExtendedUserCodeReport = class UserCodeCCExtendedUserCodeReport ex
1468
1404
  toLogEntry() {
1469
1405
  const message = {};
1470
1406
  for (const { userId, userIdStatus, userCode } of this.userCodes) {
1471
- message[`code #${userId}`] = `${userCodeToLogString(userCode)} (status: ${(0, shared_1.getEnumMemberName)(UserIDStatus, userIdStatus)})`;
1407
+ message[`code #${userId}`] = `${userCodeToLogString(userCode)} (status: ${(0, shared_1.getEnumMemberName)(_Types_1.UserIDStatus, userIdStatus)})`;
1472
1408
  }
1473
1409
  message["next user id"] = this.nextUserId;
1474
1410
  return {
@@ -1478,7 +1414,7 @@ let UserCodeCCExtendedUserCodeReport = class UserCodeCCExtendedUserCodeReport ex
1478
1414
  }
1479
1415
  };
1480
1416
  UserCodeCCExtendedUserCodeReport = __decorate([
1481
- (0, CommandClass_1.CCCommand)(UserCodeCommand.ExtendedUserCodeReport)
1417
+ (0, CommandClass_1.CCCommand)(_Types_1.UserCodeCommand.ExtendedUserCodeReport)
1482
1418
  ], UserCodeCCExtendedUserCodeReport);
1483
1419
  exports.UserCodeCCExtendedUserCodeReport = UserCodeCCExtendedUserCodeReport;
1484
1420
  let UserCodeCCExtendedUserCodeGet = class UserCodeCCExtendedUserCodeGet extends UserCodeCC {
@@ -1509,7 +1445,7 @@ let UserCodeCCExtendedUserCodeGet = class UserCodeCCExtendedUserCodeGet extends
1509
1445
  }
1510
1446
  };
1511
1447
  UserCodeCCExtendedUserCodeGet = __decorate([
1512
- (0, CommandClass_1.CCCommand)(UserCodeCommand.ExtendedUserCodeGet),
1448
+ (0, CommandClass_1.CCCommand)(_Types_1.UserCodeCommand.ExtendedUserCodeGet),
1513
1449
  (0, CommandClass_1.expectedCCResponse)(UserCodeCCExtendedUserCodeReport)
1514
1450
  ], UserCodeCCExtendedUserCodeGet);
1515
1451
  exports.UserCodeCCExtendedUserCodeGet = UserCodeCCExtendedUserCodeGet;