zwave-js 9.2.1 → 9.3.0

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 (524) hide show
  1. package/build/Controller.d.ts +2 -2
  2. package/build/Controller.d.ts.map +1 -1
  3. package/build/Controller.js +1 -1
  4. package/build/Controller.js.map +1 -1
  5. package/build/Driver.d.ts +3 -4
  6. package/build/Driver.d.ts.map +1 -1
  7. package/build/Driver.js +6 -7
  8. package/build/Driver.js.map +1 -1
  9. package/build/Utils.d.ts +2 -0
  10. package/build/Utils.d.ts.map +1 -1
  11. package/build/Utils.js +5 -1
  12. package/build/Utils.js.map +1 -1
  13. package/build/lib/commandclass/AlarmSensorCC.d.ts +6 -5
  14. package/build/lib/commandclass/AlarmSensorCC.d.ts.map +1 -1
  15. package/build/lib/commandclass/AlarmSensorCC.js +23 -23
  16. package/build/lib/commandclass/AlarmSensorCC.js.map +1 -1
  17. package/build/lib/commandclass/AssociationCC.d.ts +12 -11
  18. package/build/lib/commandclass/AssociationCC.d.ts.map +1 -1
  19. package/build/lib/commandclass/AssociationCC.js +47 -41
  20. package/build/lib/commandclass/AssociationCC.js.map +1 -1
  21. package/build/lib/commandclass/AssociationGroupInfoCC.d.ts +15 -14
  22. package/build/lib/commandclass/AssociationGroupInfoCC.d.ts.map +1 -1
  23. package/build/lib/commandclass/AssociationGroupInfoCC.js +56 -51
  24. package/build/lib/commandclass/AssociationGroupInfoCC.js.map +1 -1
  25. package/build/lib/commandclass/BarrierOperatorCC.d.ts +9 -8
  26. package/build/lib/commandclass/BarrierOperatorCC.d.ts.map +1 -1
  27. package/build/lib/commandclass/BarrierOperatorCC.js +28 -28
  28. package/build/lib/commandclass/BarrierOperatorCC.js.map +1 -1
  29. package/build/lib/commandclass/BasicCC.d.ts +5 -4
  30. package/build/lib/commandclass/BasicCC.d.ts.map +1 -1
  31. package/build/lib/commandclass/BasicCC.js +18 -18
  32. package/build/lib/commandclass/BasicCC.js.map +1 -1
  33. package/build/lib/commandclass/BatteryCC.d.ts +5 -4
  34. package/build/lib/commandclass/BatteryCC.d.ts.map +1 -1
  35. package/build/lib/commandclass/BatteryCC.js +17 -17
  36. package/build/lib/commandclass/BatteryCC.js.map +1 -1
  37. package/build/lib/commandclass/BinarySensorCC.d.ts +6 -5
  38. package/build/lib/commandclass/BinarySensorCC.d.ts.map +1 -1
  39. package/build/lib/commandclass/BinarySensorCC.js +24 -24
  40. package/build/lib/commandclass/BinarySensorCC.js.map +1 -1
  41. package/build/lib/commandclass/BinarySwitchCC.d.ts +5 -4
  42. package/build/lib/commandclass/BinarySwitchCC.d.ts.map +1 -1
  43. package/build/lib/commandclass/BinarySwitchCC.js +15 -15
  44. package/build/lib/commandclass/BinarySwitchCC.js.map +1 -1
  45. package/build/lib/commandclass/CRC16CC.d.ts +3 -3
  46. package/build/lib/commandclass/CRC16CC.d.ts.map +1 -1
  47. package/build/lib/commandclass/CRC16CC.js +5 -5
  48. package/build/lib/commandclass/CRC16CC.js.map +1 -1
  49. package/build/lib/commandclass/CentralSceneCC.d.ts +6 -5
  50. package/build/lib/commandclass/CentralSceneCC.d.ts.map +1 -1
  51. package/build/lib/commandclass/CentralSceneCC.js +23 -25
  52. package/build/lib/commandclass/CentralSceneCC.js.map +1 -1
  53. package/build/lib/commandclass/ClimateControlScheduleCC.d.ts +7 -7
  54. package/build/lib/commandclass/ClimateControlScheduleCC.d.ts.map +1 -1
  55. package/build/lib/commandclass/ClimateControlScheduleCC.js +12 -12
  56. package/build/lib/commandclass/ClimateControlScheduleCC.js.map +1 -1
  57. package/build/lib/commandclass/ClockCC.d.ts +5 -4
  58. package/build/lib/commandclass/ClockCC.d.ts.map +1 -1
  59. package/build/lib/commandclass/ClockCC.js +15 -15
  60. package/build/lib/commandclass/ClockCC.js.map +1 -1
  61. package/build/lib/commandclass/ColorSwitchCC.d.ts +10 -9
  62. package/build/lib/commandclass/ColorSwitchCC.d.ts.map +1 -1
  63. package/build/lib/commandclass/ColorSwitchCC.js +29 -29
  64. package/build/lib/commandclass/ColorSwitchCC.js.map +1 -1
  65. package/build/lib/commandclass/CommandClass.d.ts +17 -10
  66. package/build/lib/commandclass/CommandClass.d.ts.map +1 -1
  67. package/build/lib/commandclass/CommandClass.js +53 -27
  68. package/build/lib/commandclass/CommandClass.js.map +1 -1
  69. package/build/lib/commandclass/ConfigurationCC.d.ts +16 -15
  70. package/build/lib/commandclass/ConfigurationCC.d.ts.map +1 -1
  71. package/build/lib/commandclass/ConfigurationCC.js +66 -59
  72. package/build/lib/commandclass/ConfigurationCC.js.map +1 -1
  73. package/build/lib/commandclass/DoorLockCC.d.ts +8 -7
  74. package/build/lib/commandclass/DoorLockCC.d.ts.map +1 -1
  75. package/build/lib/commandclass/DoorLockCC.js +27 -27
  76. package/build/lib/commandclass/DoorLockCC.js.map +1 -1
  77. package/build/lib/commandclass/DoorLockLoggingCC.d.ts +6 -5
  78. package/build/lib/commandclass/DoorLockLoggingCC.d.ts.map +1 -1
  79. package/build/lib/commandclass/DoorLockLoggingCC.js +18 -18
  80. package/build/lib/commandclass/DoorLockLoggingCC.js.map +1 -1
  81. package/build/lib/commandclass/EntryControlCC.d.ts +8 -7
  82. package/build/lib/commandclass/EntryControlCC.d.ts.map +1 -1
  83. package/build/lib/commandclass/EntryControlCC.js +27 -27
  84. package/build/lib/commandclass/EntryControlCC.js.map +1 -1
  85. package/build/lib/commandclass/FirmwareUpdateMetaDataCC.d.ts +11 -11
  86. package/build/lib/commandclass/FirmwareUpdateMetaDataCC.d.ts.map +1 -1
  87. package/build/lib/commandclass/FirmwareUpdateMetaDataCC.js +20 -20
  88. package/build/lib/commandclass/FirmwareUpdateMetaDataCC.js.map +1 -1
  89. package/build/lib/commandclass/HumidityControlModeCC.d.ts +6 -5
  90. package/build/lib/commandclass/HumidityControlModeCC.d.ts.map +1 -1
  91. package/build/lib/commandclass/HumidityControlModeCC.js +22 -22
  92. package/build/lib/commandclass/HumidityControlModeCC.js.map +1 -1
  93. package/build/lib/commandclass/HumidityControlOperatingStateCC.d.ts +4 -3
  94. package/build/lib/commandclass/HumidityControlOperatingStateCC.d.ts.map +1 -1
  95. package/build/lib/commandclass/HumidityControlOperatingStateCC.js +13 -13
  96. package/build/lib/commandclass/HumidityControlOperatingStateCC.js.map +1 -1
  97. package/build/lib/commandclass/HumidityControlSetpointCC.d.ts +11 -10
  98. package/build/lib/commandclass/HumidityControlSetpointCC.d.ts.map +1 -1
  99. package/build/lib/commandclass/HumidityControlSetpointCC.js +46 -46
  100. package/build/lib/commandclass/HumidityControlSetpointCC.js.map +1 -1
  101. package/build/lib/commandclass/IndicatorCC.d.ts +9 -8
  102. package/build/lib/commandclass/IndicatorCC.d.ts.map +1 -1
  103. package/build/lib/commandclass/IndicatorCC.js +37 -37
  104. package/build/lib/commandclass/IndicatorCC.js.map +1 -1
  105. package/build/lib/commandclass/IrrigationCC.d.ts +18 -17
  106. package/build/lib/commandclass/IrrigationCC.d.ts.map +1 -1
  107. package/build/lib/commandclass/IrrigationCC.js +51 -51
  108. package/build/lib/commandclass/IrrigationCC.js.map +1 -1
  109. package/build/lib/commandclass/LanguageCC.d.ts +5 -4
  110. package/build/lib/commandclass/LanguageCC.d.ts.map +1 -1
  111. package/build/lib/commandclass/LanguageCC.js +15 -15
  112. package/build/lib/commandclass/LanguageCC.js.map +1 -1
  113. package/build/lib/commandclass/LockCC.d.ts +5 -4
  114. package/build/lib/commandclass/LockCC.d.ts.map +1 -1
  115. package/build/lib/commandclass/LockCC.js +15 -15
  116. package/build/lib/commandclass/LockCC.js.map +1 -1
  117. package/build/lib/commandclass/ManufacturerProprietaryCC.d.ts +11 -3
  118. package/build/lib/commandclass/ManufacturerProprietaryCC.d.ts.map +1 -1
  119. package/build/lib/commandclass/ManufacturerProprietaryCC.js +44 -18
  120. package/build/lib/commandclass/ManufacturerProprietaryCC.js.map +1 -1
  121. package/build/lib/commandclass/ManufacturerSpecificCC.d.ts +5 -4
  122. package/build/lib/commandclass/ManufacturerSpecificCC.d.ts.map +1 -1
  123. package/build/lib/commandclass/ManufacturerSpecificCC.js +15 -15
  124. package/build/lib/commandclass/ManufacturerSpecificCC.js.map +1 -1
  125. package/build/lib/commandclass/MeterCC.d.ts +8 -7
  126. package/build/lib/commandclass/MeterCC.d.ts.map +1 -1
  127. package/build/lib/commandclass/MeterCC.js +49 -41
  128. package/build/lib/commandclass/MeterCC.js.map +1 -1
  129. package/build/lib/commandclass/MultiChannelAssociationCC.d.ts +12 -11
  130. package/build/lib/commandclass/MultiChannelAssociationCC.d.ts.map +1 -1
  131. package/build/lib/commandclass/MultiChannelAssociationCC.js +45 -43
  132. package/build/lib/commandclass/MultiChannelAssociationCC.js.map +1 -1
  133. package/build/lib/commandclass/MultiChannelCC.d.ts +15 -14
  134. package/build/lib/commandclass/MultiChannelCC.d.ts.map +1 -1
  135. package/build/lib/commandclass/MultiChannelCC.js +61 -61
  136. package/build/lib/commandclass/MultiChannelCC.js.map +1 -1
  137. package/build/lib/commandclass/MultiCommandCC.d.ts +3 -3
  138. package/build/lib/commandclass/MultiCommandCC.d.ts.map +1 -1
  139. package/build/lib/commandclass/MultiCommandCC.js +5 -5
  140. package/build/lib/commandclass/MultiCommandCC.js.map +1 -1
  141. package/build/lib/commandclass/MultilevelSensorCC.d.ts +8 -7
  142. package/build/lib/commandclass/MultilevelSensorCC.d.ts.map +1 -1
  143. package/build/lib/commandclass/MultilevelSensorCC.js +50 -50
  144. package/build/lib/commandclass/MultilevelSensorCC.js.map +1 -1
  145. package/build/lib/commandclass/MultilevelSwitchCC.d.ts +8 -7
  146. package/build/lib/commandclass/MultilevelSwitchCC.d.ts.map +1 -1
  147. package/build/lib/commandclass/MultilevelSwitchCC.js +31 -31
  148. package/build/lib/commandclass/MultilevelSwitchCC.js.map +1 -1
  149. package/build/lib/commandclass/NoOperationCC.d.ts +1 -1
  150. package/build/lib/commandclass/NoOperationCC.d.ts.map +1 -1
  151. package/build/lib/commandclass/NoOperationCC.js +2 -2
  152. package/build/lib/commandclass/NoOperationCC.js.map +1 -1
  153. package/build/lib/commandclass/NodeNamingCC.d.ts +7 -6
  154. package/build/lib/commandclass/NodeNamingCC.d.ts.map +1 -1
  155. package/build/lib/commandclass/NodeNamingCC.js +21 -21
  156. package/build/lib/commandclass/NodeNamingCC.js.map +1 -1
  157. package/build/lib/commandclass/NotificationCC.d.ts +10 -9
  158. package/build/lib/commandclass/NotificationCC.d.ts.map +1 -1
  159. package/build/lib/commandclass/NotificationCC.js +54 -54
  160. package/build/lib/commandclass/NotificationCC.js.map +1 -1
  161. package/build/lib/commandclass/PowerlevelCC.d.ts +5 -5
  162. package/build/lib/commandclass/PowerlevelCC.d.ts.map +1 -1
  163. package/build/lib/commandclass/PowerlevelCC.js +9 -9
  164. package/build/lib/commandclass/PowerlevelCC.js.map +1 -1
  165. package/build/lib/commandclass/ProtectionCC.d.ts +10 -9
  166. package/build/lib/commandclass/ProtectionCC.d.ts.map +1 -1
  167. package/build/lib/commandclass/ProtectionCC.js +33 -33
  168. package/build/lib/commandclass/ProtectionCC.js.map +1 -1
  169. package/build/lib/commandclass/SceneActivationCC.d.ts +2 -2
  170. package/build/lib/commandclass/SceneActivationCC.d.ts.map +1 -1
  171. package/build/lib/commandclass/SceneActivationCC.js +2 -2
  172. package/build/lib/commandclass/SceneActivationCC.js.map +1 -1
  173. package/build/lib/commandclass/SceneActuatorConfigurationCC.d.ts +5 -4
  174. package/build/lib/commandclass/SceneActuatorConfigurationCC.d.ts.map +1 -1
  175. package/build/lib/commandclass/SceneActuatorConfigurationCC.js +9 -9
  176. package/build/lib/commandclass/SceneActuatorConfigurationCC.js.map +1 -1
  177. package/build/lib/commandclass/SceneControllerConfigurationCC.d.ts +7 -6
  178. package/build/lib/commandclass/SceneControllerConfigurationCC.d.ts.map +1 -1
  179. package/build/lib/commandclass/SceneControllerConfigurationCC.js +32 -28
  180. package/build/lib/commandclass/SceneControllerConfigurationCC.js.map +1 -1
  181. package/build/lib/commandclass/Security2CC.d.ts +17 -26
  182. package/build/lib/commandclass/Security2CC.d.ts.map +1 -1
  183. package/build/lib/commandclass/Security2CC.js +68 -68
  184. package/build/lib/commandclass/Security2CC.js.map +1 -1
  185. package/build/lib/commandclass/SecurityCC.d.ts +11 -14
  186. package/build/lib/commandclass/SecurityCC.d.ts.map +1 -1
  187. package/build/lib/commandclass/SecurityCC.js +41 -41
  188. package/build/lib/commandclass/SecurityCC.js.map +1 -1
  189. package/build/lib/commandclass/SoundSwitchCC.d.ts +9 -8
  190. package/build/lib/commandclass/SoundSwitchCC.d.ts.map +1 -1
  191. package/build/lib/commandclass/SoundSwitchCC.js +27 -27
  192. package/build/lib/commandclass/SoundSwitchCC.js.map +1 -1
  193. package/build/lib/commandclass/SupervisionCC.d.ts +4 -4
  194. package/build/lib/commandclass/SupervisionCC.d.ts.map +1 -1
  195. package/build/lib/commandclass/SupervisionCC.js +9 -9
  196. package/build/lib/commandclass/SupervisionCC.js.map +1 -1
  197. package/build/lib/commandclass/ThermostatFanModeCC.d.ts +6 -5
  198. package/build/lib/commandclass/ThermostatFanModeCC.d.ts.map +1 -1
  199. package/build/lib/commandclass/ThermostatFanModeCC.js +22 -22
  200. package/build/lib/commandclass/ThermostatFanModeCC.js.map +1 -1
  201. package/build/lib/commandclass/ThermostatFanStateCC.d.ts +4 -3
  202. package/build/lib/commandclass/ThermostatFanStateCC.d.ts.map +1 -1
  203. package/build/lib/commandclass/ThermostatFanStateCC.js +13 -13
  204. package/build/lib/commandclass/ThermostatFanStateCC.js.map +1 -1
  205. package/build/lib/commandclass/ThermostatModeCC.d.ts +6 -5
  206. package/build/lib/commandclass/ThermostatModeCC.d.ts.map +1 -1
  207. package/build/lib/commandclass/ThermostatModeCC.js +22 -22
  208. package/build/lib/commandclass/ThermostatModeCC.js.map +1 -1
  209. package/build/lib/commandclass/ThermostatOperatingStateCC.d.ts +4 -3
  210. package/build/lib/commandclass/ThermostatOperatingStateCC.d.ts.map +1 -1
  211. package/build/lib/commandclass/ThermostatOperatingStateCC.js +13 -13
  212. package/build/lib/commandclass/ThermostatOperatingStateCC.js.map +1 -1
  213. package/build/lib/commandclass/ThermostatSetbackCC.d.ts +5 -4
  214. package/build/lib/commandclass/ThermostatSetbackCC.d.ts.map +1 -1
  215. package/build/lib/commandclass/ThermostatSetbackCC.js +15 -15
  216. package/build/lib/commandclass/ThermostatSetbackCC.js.map +1 -1
  217. package/build/lib/commandclass/ThermostatSetpointCC.d.ts +10 -9
  218. package/build/lib/commandclass/ThermostatSetpointCC.d.ts.map +1 -1
  219. package/build/lib/commandclass/ThermostatSetpointCC.js +48 -48
  220. package/build/lib/commandclass/ThermostatSetpointCC.js.map +1 -1
  221. package/build/lib/commandclass/TimeCC.d.ts +6 -5
  222. package/build/lib/commandclass/TimeCC.d.ts.map +1 -1
  223. package/build/lib/commandclass/TimeCC.js +15 -15
  224. package/build/lib/commandclass/TimeCC.js.map +1 -1
  225. package/build/lib/commandclass/TimeParametersCC.d.ts +4 -3
  226. package/build/lib/commandclass/TimeParametersCC.d.ts.map +1 -1
  227. package/build/lib/commandclass/TimeParametersCC.js +11 -11
  228. package/build/lib/commandclass/TimeParametersCC.js.map +1 -1
  229. package/build/lib/commandclass/TransportServiceCC.d.ts +7 -7
  230. package/build/lib/commandclass/TransportServiceCC.d.ts.map +1 -1
  231. package/build/lib/commandclass/TransportServiceCC.js +12 -12
  232. package/build/lib/commandclass/TransportServiceCC.js.map +1 -1
  233. package/build/lib/commandclass/UserCodeCC.d.ts +17 -16
  234. package/build/lib/commandclass/UserCodeCC.d.ts.map +1 -1
  235. package/build/lib/commandclass/UserCodeCC.js +58 -58
  236. package/build/lib/commandclass/UserCodeCC.js.map +1 -1
  237. package/build/lib/commandclass/VersionCC.d.ts +7 -6
  238. package/build/lib/commandclass/VersionCC.d.ts.map +1 -1
  239. package/build/lib/commandclass/VersionCC.js +28 -28
  240. package/build/lib/commandclass/VersionCC.js.map +1 -1
  241. package/build/lib/commandclass/WakeUpCC.d.ts +5 -5
  242. package/build/lib/commandclass/WakeUpCC.d.ts.map +1 -1
  243. package/build/lib/commandclass/WakeUpCC.js +24 -28
  244. package/build/lib/commandclass/WakeUpCC.js.map +1 -1
  245. package/build/lib/commandclass/ZWavePlusCC.d.ts +20 -14
  246. package/build/lib/commandclass/ZWavePlusCC.d.ts.map +1 -1
  247. package/build/lib/commandclass/ZWavePlusCC.js +119 -41
  248. package/build/lib/commandclass/ZWavePlusCC.js.map +1 -1
  249. package/build/lib/commandclass/manufacturerProprietary/Fibaro.d.ts +8 -7
  250. package/build/lib/commandclass/manufacturerProprietary/Fibaro.d.ts.map +1 -1
  251. package/build/lib/commandclass/manufacturerProprietary/Fibaro.js +21 -21
  252. package/build/lib/commandclass/manufacturerProprietary/Fibaro.js.map +1 -1
  253. package/build/lib/controller/Controller.d.ts +21 -14
  254. package/build/lib/controller/Controller.d.ts.map +1 -1
  255. package/build/lib/controller/Controller.js +129 -140
  256. package/build/lib/controller/Controller.js.map +1 -1
  257. package/build/lib/controller/Inclusion.d.ts +1 -1
  258. package/build/lib/controller/Inclusion.d.ts.map +1 -1
  259. package/build/lib/controller/MockControllerBehaviors.d.ts +4 -0
  260. package/build/lib/controller/MockControllerBehaviors.d.ts.map +1 -0
  261. package/build/lib/controller/MockControllerBehaviors.js +161 -0
  262. package/build/lib/controller/MockControllerBehaviors.js.map +1 -0
  263. package/build/lib/controller/NodeInformationFrame.d.ts +9 -0
  264. package/build/lib/controller/NodeInformationFrame.d.ts.map +1 -0
  265. package/build/lib/controller/NodeInformationFrame.js +53 -0
  266. package/build/lib/controller/NodeInformationFrame.js.map +1 -0
  267. package/build/lib/controller/ZWaveChipTypes.d.ts +10 -0
  268. package/build/lib/controller/ZWaveChipTypes.d.ts.map +1 -0
  269. package/build/lib/controller/ZWaveChipTypes.js +32 -0
  270. package/build/lib/controller/ZWaveChipTypes.js.map +1 -0
  271. package/build/lib/controller/utils.d.ts +3 -0
  272. package/build/lib/controller/utils.d.ts.map +1 -0
  273. package/build/lib/controller/utils.js +40 -0
  274. package/build/lib/controller/utils.js.map +1 -0
  275. package/build/lib/driver/CommandQueueMachine.d.ts +1 -1
  276. package/build/lib/driver/CommandQueueMachine.d.ts.map +1 -1
  277. package/build/lib/driver/CommandQueueMachine.js.map +1 -1
  278. package/build/lib/driver/Driver.d.ts +7 -4
  279. package/build/lib/driver/Driver.d.ts.map +1 -1
  280. package/build/lib/driver/Driver.js +89 -67
  281. package/build/lib/driver/Driver.js.map +1 -1
  282. package/build/lib/driver/DriverMock.d.ts +13 -0
  283. package/build/lib/driver/DriverMock.d.ts.map +1 -0
  284. package/build/lib/driver/DriverMock.js +53 -0
  285. package/build/lib/driver/DriverMock.js.map +1 -0
  286. package/build/lib/driver/MessageGenerators.d.ts +1 -1
  287. package/build/lib/driver/MessageGenerators.d.ts.map +1 -1
  288. package/build/lib/driver/MessageGenerators.js.map +1 -1
  289. package/build/lib/driver/NetworkCache.d.ts +1 -1
  290. package/build/lib/driver/NetworkCache.d.ts.map +1 -1
  291. package/build/lib/driver/NetworkCache.js +80 -38
  292. package/build/lib/driver/NetworkCache.js.map +1 -1
  293. package/build/lib/driver/SendThreadMachine.d.ts +2 -2
  294. package/build/lib/driver/SendThreadMachine.d.ts.map +1 -1
  295. package/build/lib/driver/SendThreadMachine.js +4 -4
  296. package/build/lib/driver/SendThreadMachine.js.map +1 -1
  297. package/build/lib/driver/SerialAPICommandMachine.d.ts +1 -1
  298. package/build/lib/driver/SerialAPICommandMachine.d.ts.map +1 -1
  299. package/build/lib/driver/SerialAPICommandMachine.js +6 -7
  300. package/build/lib/driver/SerialAPICommandMachine.js.map +1 -1
  301. package/build/lib/driver/StateMachineShared.d.ts +1 -1
  302. package/build/lib/driver/StateMachineShared.d.ts.map +1 -1
  303. package/build/lib/driver/StateMachineShared.js.map +1 -1
  304. package/build/lib/driver/Transaction.d.ts +2 -2
  305. package/build/lib/driver/Transaction.d.ts.map +1 -1
  306. package/build/lib/driver/Transaction.js +5 -5
  307. package/build/lib/driver/Transaction.js.map +1 -1
  308. package/build/lib/driver/TransactionMachine.d.ts +1 -1
  309. package/build/lib/driver/TransactionMachine.d.ts.map +1 -1
  310. package/build/lib/driver/TransactionMachine.js.map +1 -1
  311. package/build/lib/driver/ZWaveOptions.d.ts +1 -1
  312. package/build/lib/driver/ZWaveOptions.d.ts.map +1 -1
  313. package/build/lib/log/Driver.d.ts +1 -1
  314. package/build/lib/log/Driver.d.ts.map +1 -1
  315. package/build/lib/log/Driver.js +4 -4
  316. package/build/lib/log/Driver.js.map +1 -1
  317. package/build/lib/node/Endpoint.d.ts +3 -2
  318. package/build/lib/node/Endpoint.d.ts.map +1 -1
  319. package/build/lib/node/Endpoint.js +32 -31
  320. package/build/lib/node/Endpoint.js.map +1 -1
  321. package/build/lib/node/Node.d.ts +4 -13
  322. package/build/lib/node/Node.d.ts.map +1 -1
  323. package/build/lib/node/Node.js +64 -150
  324. package/build/lib/node/Node.js.map +1 -1
  325. package/build/lib/node/_Types.d.ts +2 -30
  326. package/build/lib/node/_Types.d.ts.map +1 -1
  327. package/build/lib/node/_Types.js +3 -33
  328. package/build/lib/node/_Types.js.map +1 -1
  329. package/build/lib/node/utils.d.ts +28 -0
  330. package/build/lib/node/utils.d.ts.map +1 -0
  331. package/build/lib/node/utils.js +187 -0
  332. package/build/lib/node/utils.js.map +1 -0
  333. package/build/lib/serialapi/_Types.d.ts +1 -14
  334. package/build/lib/serialapi/_Types.d.ts.map +1 -1
  335. package/build/lib/serialapi/_Types.js +2 -15
  336. package/build/lib/serialapi/_Types.js.map +1 -1
  337. package/build/lib/serialapi/application/ApplicationCommandRequest.d.ts +4 -3
  338. package/build/lib/serialapi/application/ApplicationCommandRequest.d.ts.map +1 -1
  339. package/build/lib/serialapi/application/ApplicationCommandRequest.js +15 -14
  340. package/build/lib/serialapi/application/ApplicationCommandRequest.js.map +1 -1
  341. package/build/lib/serialapi/application/ApplicationUpdateRequest.d.ts +6 -6
  342. package/build/lib/serialapi/application/ApplicationUpdateRequest.d.ts.map +1 -1
  343. package/build/lib/serialapi/application/ApplicationUpdateRequest.js +10 -11
  344. package/build/lib/serialapi/application/ApplicationUpdateRequest.js.map +1 -1
  345. package/build/lib/serialapi/application/BridgeApplicationCommandRequest.d.ts +4 -3
  346. package/build/lib/serialapi/application/BridgeApplicationCommandRequest.d.ts.map +1 -1
  347. package/build/lib/serialapi/application/BridgeApplicationCommandRequest.js +14 -9
  348. package/build/lib/serialapi/application/BridgeApplicationCommandRequest.js.map +1 -1
  349. package/build/lib/serialapi/application/SerialAPIStartedRequest.d.ts +23 -11
  350. package/build/lib/serialapi/application/SerialAPIStartedRequest.d.ts.map +1 -1
  351. package/build/lib/serialapi/application/SerialAPIStartedRequest.js +59 -36
  352. package/build/lib/serialapi/application/SerialAPIStartedRequest.js.map +1 -1
  353. package/build/lib/serialapi/capability/GetControllerCapabilitiesMessages.d.ts +17 -11
  354. package/build/lib/serialapi/capability/GetControllerCapabilitiesMessages.d.ts.map +1 -1
  355. package/build/lib/serialapi/capability/GetControllerCapabilitiesMessages.js +40 -34
  356. package/build/lib/serialapi/capability/GetControllerCapabilitiesMessages.js.map +1 -1
  357. package/build/lib/serialapi/capability/GetControllerVersionMessages.d.ts +11 -9
  358. package/build/lib/serialapi/capability/GetControllerVersionMessages.d.ts.map +1 -1
  359. package/build/lib/serialapi/capability/GetControllerVersionMessages.js +24 -24
  360. package/build/lib/serialapi/capability/GetControllerVersionMessages.js.map +1 -1
  361. package/build/lib/serialapi/capability/GetProtocolVersionMessages.d.ts +3 -3
  362. package/build/lib/serialapi/capability/GetProtocolVersionMessages.d.ts.map +1 -1
  363. package/build/lib/serialapi/capability/GetProtocolVersionMessages.js +9 -10
  364. package/build/lib/serialapi/capability/GetProtocolVersionMessages.js.map +1 -1
  365. package/build/lib/serialapi/capability/GetSerialApiCapabilitiesMessages.d.ts +17 -16
  366. package/build/lib/serialapi/capability/GetSerialApiCapabilitiesMessages.d.ts.map +1 -1
  367. package/build/lib/serialapi/capability/GetSerialApiCapabilitiesMessages.js +39 -42
  368. package/build/lib/serialapi/capability/GetSerialApiCapabilitiesMessages.js.map +1 -1
  369. package/build/lib/serialapi/capability/GetSerialApiInitDataMessages.d.ts +26 -14
  370. package/build/lib/serialapi/capability/GetSerialApiInitDataMessages.d.ts.map +1 -1
  371. package/build/lib/serialapi/capability/GetSerialApiInitDataMessages.js +138 -51
  372. package/build/lib/serialapi/capability/GetSerialApiInitDataMessages.js.map +1 -1
  373. package/build/lib/serialapi/capability/HardResetRequest.d.ts +12 -2
  374. package/build/lib/serialapi/capability/HardResetRequest.d.ts.map +1 -1
  375. package/build/lib/serialapi/capability/HardResetRequest.js +41 -11
  376. package/build/lib/serialapi/capability/HardResetRequest.js.map +1 -1
  377. package/build/lib/serialapi/capability/SerialAPISetupMessages.d.ts +22 -22
  378. package/build/lib/serialapi/capability/SerialAPISetupMessages.d.ts.map +1 -1
  379. package/build/lib/serialapi/capability/SerialAPISetupMessages.js +50 -51
  380. package/build/lib/serialapi/capability/SerialAPISetupMessages.js.map +1 -1
  381. package/build/lib/serialapi/capability/SetApplicationNodeInformationRequest.d.ts +22 -0
  382. package/build/lib/serialapi/capability/SetApplicationNodeInformationRequest.d.ts.map +1 -0
  383. package/build/lib/serialapi/capability/SetApplicationNodeInformationRequest.js +60 -0
  384. package/build/lib/serialapi/capability/SetApplicationNodeInformationRequest.js.map +1 -0
  385. package/build/lib/serialapi/memory/GetControllerIdMessages.d.ts +13 -9
  386. package/build/lib/serialapi/memory/GetControllerIdMessages.d.ts.map +1 -1
  387. package/build/lib/serialapi/memory/GetControllerIdMessages.js +31 -23
  388. package/build/lib/serialapi/memory/GetControllerIdMessages.js.map +1 -1
  389. package/build/lib/serialapi/misc/GetBackgroundRSSIMessages.d.ts +3 -3
  390. package/build/lib/serialapi/misc/GetBackgroundRSSIMessages.d.ts.map +1 -1
  391. package/build/lib/serialapi/misc/GetBackgroundRSSIMessages.js +9 -10
  392. package/build/lib/serialapi/misc/GetBackgroundRSSIMessages.js.map +1 -1
  393. package/build/lib/serialapi/misc/SetRFReceiveModeMessages.d.ts +5 -5
  394. package/build/lib/serialapi/misc/SetRFReceiveModeMessages.d.ts.map +1 -1
  395. package/build/lib/serialapi/misc/SetRFReceiveModeMessages.js +12 -13
  396. package/build/lib/serialapi/misc/SetRFReceiveModeMessages.js.map +1 -1
  397. package/build/lib/serialapi/misc/SetSerialApiTimeoutsMessages.d.ts +4 -4
  398. package/build/lib/serialapi/misc/SetSerialApiTimeoutsMessages.d.ts.map +1 -1
  399. package/build/lib/serialapi/misc/SetSerialApiTimeoutsMessages.js +11 -12
  400. package/build/lib/serialapi/misc/SetSerialApiTimeoutsMessages.js.map +1 -1
  401. package/build/lib/serialapi/misc/SoftResetRequest.d.ts +1 -1
  402. package/build/lib/serialapi/misc/SoftResetRequest.d.ts.map +1 -1
  403. package/build/lib/serialapi/misc/SoftResetRequest.js +4 -5
  404. package/build/lib/serialapi/misc/SoftResetRequest.js.map +1 -1
  405. package/build/lib/serialapi/network-mgmt/AddNodeToNetworkRequest.d.ts +8 -8
  406. package/build/lib/serialapi/network-mgmt/AddNodeToNetworkRequest.d.ts.map +1 -1
  407. package/build/lib/serialapi/network-mgmt/AddNodeToNetworkRequest.js +17 -18
  408. package/build/lib/serialapi/network-mgmt/AddNodeToNetworkRequest.js.map +1 -1
  409. package/build/lib/serialapi/network-mgmt/AssignReturnRouteMessages.d.ts +7 -8
  410. package/build/lib/serialapi/network-mgmt/AssignReturnRouteMessages.d.ts.map +1 -1
  411. package/build/lib/serialapi/network-mgmt/AssignReturnRouteMessages.js +19 -20
  412. package/build/lib/serialapi/network-mgmt/AssignReturnRouteMessages.js.map +1 -1
  413. package/build/lib/serialapi/network-mgmt/AssignSUCReturnRouteMessages.d.ts +7 -8
  414. package/build/lib/serialapi/network-mgmt/AssignSUCReturnRouteMessages.d.ts.map +1 -1
  415. package/build/lib/serialapi/network-mgmt/AssignSUCReturnRouteMessages.js +19 -20
  416. package/build/lib/serialapi/network-mgmt/AssignSUCReturnRouteMessages.js.map +1 -1
  417. package/build/lib/serialapi/network-mgmt/DeleteReturnRouteMessages.d.ts +7 -8
  418. package/build/lib/serialapi/network-mgmt/DeleteReturnRouteMessages.d.ts.map +1 -1
  419. package/build/lib/serialapi/network-mgmt/DeleteReturnRouteMessages.js +19 -20
  420. package/build/lib/serialapi/network-mgmt/DeleteReturnRouteMessages.js.map +1 -1
  421. package/build/lib/serialapi/network-mgmt/DeleteSUCReturnRouteMessages.d.ts +7 -8
  422. package/build/lib/serialapi/network-mgmt/DeleteSUCReturnRouteMessages.d.ts.map +1 -1
  423. package/build/lib/serialapi/network-mgmt/DeleteSUCReturnRouteMessages.js +19 -20
  424. package/build/lib/serialapi/network-mgmt/DeleteSUCReturnRouteMessages.js.map +1 -1
  425. package/build/lib/serialapi/network-mgmt/GetNodeProtocolInfoMessages.d.ts +20 -18
  426. package/build/lib/serialapi/network-mgmt/GetNodeProtocolInfoMessages.d.ts.map +1 -1
  427. package/build/lib/serialapi/network-mgmt/GetNodeProtocolInfoMessages.js +72 -26
  428. package/build/lib/serialapi/network-mgmt/GetNodeProtocolInfoMessages.js.map +1 -1
  429. package/build/lib/serialapi/network-mgmt/GetRoutingInfoMessages.d.ts +4 -4
  430. package/build/lib/serialapi/network-mgmt/GetRoutingInfoMessages.d.ts.map +1 -1
  431. package/build/lib/serialapi/network-mgmt/GetRoutingInfoMessages.js +11 -12
  432. package/build/lib/serialapi/network-mgmt/GetRoutingInfoMessages.js.map +1 -1
  433. package/build/lib/serialapi/network-mgmt/GetSUCNodeIdMessages.d.ts +9 -7
  434. package/build/lib/serialapi/network-mgmt/GetSUCNodeIdMessages.d.ts.map +1 -1
  435. package/build/lib/serialapi/network-mgmt/GetSUCNodeIdMessages.js +18 -19
  436. package/build/lib/serialapi/network-mgmt/GetSUCNodeIdMessages.js.map +1 -1
  437. package/build/lib/serialapi/network-mgmt/IsFailedNodeMessages.d.ts +4 -4
  438. package/build/lib/serialapi/network-mgmt/IsFailedNodeMessages.d.ts.map +1 -1
  439. package/build/lib/serialapi/network-mgmt/IsFailedNodeMessages.js +11 -12
  440. package/build/lib/serialapi/network-mgmt/IsFailedNodeMessages.js.map +1 -1
  441. package/build/lib/serialapi/network-mgmt/RemoveFailedNodeMessages.d.ts +7 -7
  442. package/build/lib/serialapi/network-mgmt/RemoveFailedNodeMessages.d.ts.map +1 -1
  443. package/build/lib/serialapi/network-mgmt/RemoveFailedNodeMessages.js +18 -19
  444. package/build/lib/serialapi/network-mgmt/RemoveFailedNodeMessages.js.map +1 -1
  445. package/build/lib/serialapi/network-mgmt/RemoveNodeFromNetworkRequest.d.ts +6 -6
  446. package/build/lib/serialapi/network-mgmt/RemoveNodeFromNetworkRequest.d.ts.map +1 -1
  447. package/build/lib/serialapi/network-mgmt/RemoveNodeFromNetworkRequest.js +13 -14
  448. package/build/lib/serialapi/network-mgmt/RemoveNodeFromNetworkRequest.js.map +1 -1
  449. package/build/lib/serialapi/network-mgmt/ReplaceFailedNodeRequest.d.ts +7 -7
  450. package/build/lib/serialapi/network-mgmt/ReplaceFailedNodeRequest.d.ts.map +1 -1
  451. package/build/lib/serialapi/network-mgmt/ReplaceFailedNodeRequest.js +17 -18
  452. package/build/lib/serialapi/network-mgmt/ReplaceFailedNodeRequest.js.map +1 -1
  453. package/build/lib/serialapi/network-mgmt/RequestNodeInfoMessages.d.ts +5 -6
  454. package/build/lib/serialapi/network-mgmt/RequestNodeInfoMessages.d.ts.map +1 -1
  455. package/build/lib/serialapi/network-mgmt/RequestNodeInfoMessages.js +12 -13
  456. package/build/lib/serialapi/network-mgmt/RequestNodeInfoMessages.js.map +1 -1
  457. package/build/lib/serialapi/network-mgmt/RequestNodeNeighborUpdateMessages.d.ts +6 -6
  458. package/build/lib/serialapi/network-mgmt/RequestNodeNeighborUpdateMessages.d.ts.map +1 -1
  459. package/build/lib/serialapi/network-mgmt/RequestNodeNeighborUpdateMessages.js +14 -15
  460. package/build/lib/serialapi/network-mgmt/RequestNodeNeighborUpdateMessages.js.map +1 -1
  461. package/build/lib/serialapi/network-mgmt/SetSUCNodeIDMessages.d.ts +7 -7
  462. package/build/lib/serialapi/network-mgmt/SetSUCNodeIDMessages.d.ts.map +1 -1
  463. package/build/lib/serialapi/network-mgmt/SetSUCNodeIDMessages.js +21 -22
  464. package/build/lib/serialapi/network-mgmt/SetSUCNodeIDMessages.js.map +1 -1
  465. package/build/lib/serialapi/nvm/ExtNVMReadLongBufferMessages.d.ts +4 -4
  466. package/build/lib/serialapi/nvm/ExtNVMReadLongBufferMessages.d.ts.map +1 -1
  467. package/build/lib/serialapi/nvm/ExtNVMReadLongBufferMessages.js +12 -13
  468. package/build/lib/serialapi/nvm/ExtNVMReadLongBufferMessages.js.map +1 -1
  469. package/build/lib/serialapi/nvm/ExtNVMReadLongByteMessages.d.ts +4 -4
  470. package/build/lib/serialapi/nvm/ExtNVMReadLongByteMessages.d.ts.map +1 -1
  471. package/build/lib/serialapi/nvm/ExtNVMReadLongByteMessages.js +12 -13
  472. package/build/lib/serialapi/nvm/ExtNVMReadLongByteMessages.js.map +1 -1
  473. package/build/lib/serialapi/nvm/ExtNVMWriteLongBufferMessages.d.ts +4 -4
  474. package/build/lib/serialapi/nvm/ExtNVMWriteLongBufferMessages.d.ts.map +1 -1
  475. package/build/lib/serialapi/nvm/ExtNVMWriteLongBufferMessages.js +12 -13
  476. package/build/lib/serialapi/nvm/ExtNVMWriteLongBufferMessages.js.map +1 -1
  477. package/build/lib/serialapi/nvm/ExtNVMWriteLongByteMessages.d.ts +4 -4
  478. package/build/lib/serialapi/nvm/ExtNVMWriteLongByteMessages.d.ts.map +1 -1
  479. package/build/lib/serialapi/nvm/ExtNVMWriteLongByteMessages.js +12 -13
  480. package/build/lib/serialapi/nvm/ExtNVMWriteLongByteMessages.js.map +1 -1
  481. package/build/lib/serialapi/nvm/GetNVMIdMessages.d.ts +3 -3
  482. package/build/lib/serialapi/nvm/GetNVMIdMessages.d.ts.map +1 -1
  483. package/build/lib/serialapi/nvm/GetNVMIdMessages.js +9 -10
  484. package/build/lib/serialapi/nvm/GetNVMIdMessages.js.map +1 -1
  485. package/build/lib/serialapi/nvm/NVMOperationsMessages.d.ts +8 -8
  486. package/build/lib/serialapi/nvm/NVMOperationsMessages.d.ts.map +1 -1
  487. package/build/lib/serialapi/nvm/NVMOperationsMessages.js +19 -20
  488. package/build/lib/serialapi/nvm/NVMOperationsMessages.js.map +1 -1
  489. package/build/lib/serialapi/transport/SendDataBridgeMessages.d.ts +13 -11
  490. package/build/lib/serialapi/transport/SendDataBridgeMessages.d.ts.map +1 -1
  491. package/build/lib/serialapi/transport/SendDataBridgeMessages.js +48 -44
  492. package/build/lib/serialapi/transport/SendDataBridgeMessages.js.map +1 -1
  493. package/build/lib/serialapi/transport/SendDataMessages.d.ts +13 -11
  494. package/build/lib/serialapi/transport/SendDataMessages.d.ts.map +1 -1
  495. package/build/lib/serialapi/transport/SendDataMessages.js +49 -43
  496. package/build/lib/serialapi/transport/SendDataMessages.js.map +1 -1
  497. package/build/lib/telemetry/deviceConfig.d.ts.map +1 -1
  498. package/build/lib/telemetry/deviceConfig.js +2 -3
  499. package/build/lib/telemetry/deviceConfig.js.map +1 -1
  500. package/package.json +9 -8
  501. package/build/lib/driver/FileSystem.d.ts +0 -11
  502. package/build/lib/driver/FileSystem.d.ts.map +0 -1
  503. package/build/lib/driver/FileSystem.js +0 -3
  504. package/build/lib/driver/FileSystem.js.map +0 -1
  505. package/build/lib/log/Controller.d.ts +0 -68
  506. package/build/lib/log/Controller.d.ts.map +0 -1
  507. package/build/lib/log/Controller.js +0 -221
  508. package/build/lib/log/Controller.js.map +0 -1
  509. package/build/lib/message/Constants.d.ts +0 -150
  510. package/build/lib/message/Constants.d.ts.map +0 -1
  511. package/build/lib/message/Constants.js +0 -176
  512. package/build/lib/message/Constants.js.map +0 -1
  513. package/build/lib/message/Message.d.ts +0 -172
  514. package/build/lib/message/Message.d.ts.map +0 -1
  515. package/build/lib/message/Message.js +0 -465
  516. package/build/lib/message/Message.js.map +0 -1
  517. package/build/lib/message/SuccessIndicator.d.ts +0 -16
  518. package/build/lib/message/SuccessIndicator.d.ts.map +0 -1
  519. package/build/lib/message/SuccessIndicator.js +0 -12
  520. package/build/lib/message/SuccessIndicator.js.map +0 -1
  521. package/build/lib/node/INodeQuery.d.ts +0 -7
  522. package/build/lib/node/INodeQuery.d.ts.map +0 -1
  523. package/build/lib/node/INodeQuery.js +0 -9
  524. package/build/lib/node/INodeQuery.js.map +0 -1
@@ -8,58 +8,55 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.GetSerialApiCapabilitiesResponse = exports.GetSerialApiCapabilitiesRequest = void 0;
10
10
  const core_1 = require("@zwave-js/core");
11
- const shared_1 = require("@zwave-js/shared");
12
- const Constants_1 = require("../../message/Constants");
13
- const Message_1 = require("../../message/Message");
11
+ const serial_1 = require("@zwave-js/serial");
14
12
  const NUM_FUNCTIONS = 256;
15
13
  const NUM_FUNCTION_BYTES = NUM_FUNCTIONS / 8;
16
- let GetSerialApiCapabilitiesRequest = class GetSerialApiCapabilitiesRequest extends Message_1.Message {
14
+ let GetSerialApiCapabilitiesRequest = class GetSerialApiCapabilitiesRequest extends serial_1.Message {
17
15
  };
18
16
  GetSerialApiCapabilitiesRequest = __decorate([
19
- (0, Message_1.messageTypes)(Constants_1.MessageType.Request, Constants_1.FunctionType.GetSerialApiCapabilities),
20
- (0, Message_1.expectedResponse)(Constants_1.FunctionType.GetSerialApiCapabilities),
21
- (0, Message_1.priority)(Constants_1.MessagePriority.Controller)
17
+ (0, serial_1.messageTypes)(serial_1.MessageType.Request, serial_1.FunctionType.GetSerialApiCapabilities),
18
+ (0, serial_1.expectedResponse)(serial_1.FunctionType.GetSerialApiCapabilities),
19
+ (0, serial_1.priority)(serial_1.MessagePriority.Controller)
22
20
  ], GetSerialApiCapabilitiesRequest);
23
21
  exports.GetSerialApiCapabilitiesRequest = GetSerialApiCapabilitiesRequest;
24
- let GetSerialApiCapabilitiesResponse = class GetSerialApiCapabilitiesResponse extends Message_1.Message {
25
- constructor(driver, options) {
26
- super(driver, options);
27
- // The first 8 bytes are the api version, manufacturer id, product type and product id
28
- this._firmwareVersion = `${this.payload[0]}.${this.payload[1]}`;
29
- this._manufacturerId = this.payload.readUInt16BE(2);
30
- this._productType = this.payload.readUInt16BE(4);
31
- this._productId = this.payload.readUInt16BE(6);
32
- // then a 256bit bitmask for the supported command classes follows
33
- const functionBitMask = this.payload.slice(8, 8 + NUM_FUNCTION_BYTES);
34
- this._supportedFunctionTypes = (0, core_1.parseBitMask)(functionBitMask);
22
+ let GetSerialApiCapabilitiesResponse = class GetSerialApiCapabilitiesResponse extends serial_1.Message {
23
+ constructor(host, options) {
24
+ super(host, options);
25
+ if ((0, serial_1.gotDeserializationOptions)(options)) {
26
+ // The first 8 bytes are the api version, manufacturer id, product type and product id
27
+ this.firmwareVersion = `${this.payload[0]}.${this.payload[1]}`;
28
+ this.manufacturerId = this.payload.readUInt16BE(2);
29
+ this.productType = this.payload.readUInt16BE(4);
30
+ this.productId = this.payload.readUInt16BE(6);
31
+ // then a 256bit bitmask for the supported command classes follows
32
+ const functionBitMask = this.payload.slice(8, 8 + NUM_FUNCTION_BYTES);
33
+ this.supportedFunctionTypes = (0, core_1.parseBitMask)(functionBitMask);
34
+ }
35
+ else {
36
+ this.firmwareVersion = options.firmwareVersion;
37
+ this.manufacturerId = options.manufacturerId;
38
+ this.productType = options.productType;
39
+ this.productId = options.productId;
40
+ this.supportedFunctionTypes = options.supportedFunctionTypes;
41
+ }
35
42
  }
36
- get firmwareVersion() {
37
- return this._firmwareVersion;
38
- }
39
- get manufacturerId() {
40
- return this._manufacturerId;
41
- }
42
- get productType() {
43
- return this._productType;
44
- }
45
- get productId() {
46
- return this._productId;
47
- }
48
- get supportedFunctionTypes() {
49
- return this._supportedFunctionTypes;
50
- }
51
- toJSON() {
52
- return super.toJSONInherited({
53
- firmwareVersion: this.firmwareVersion,
54
- manufacturerId: this.manufacturerId,
55
- productType: this.productType,
56
- productId: this.productId,
57
- supportedFunctionTypes: this.supportedFunctionTypes.map((type) => type in Constants_1.FunctionType ? Constants_1.FunctionType[type] : (0, shared_1.num2hex)(type)),
58
- });
43
+ serialize() {
44
+ this.payload = Buffer.allocUnsafe(8 + NUM_FUNCTION_BYTES);
45
+ const firmwareBytes = this.firmwareVersion
46
+ .split(".", 2)
47
+ .map((str) => parseInt(str));
48
+ this.payload[0] = firmwareBytes[0];
49
+ this.payload[1] = firmwareBytes[1];
50
+ this.payload.writeUInt16BE(this.manufacturerId, 2);
51
+ this.payload.writeUInt16BE(this.productType, 4);
52
+ this.payload.writeUInt16BE(this.productId, 6);
53
+ const functionBitMask = (0, core_1.encodeBitMask)(this.supportedFunctionTypes, NUM_FUNCTIONS);
54
+ functionBitMask.copy(this.payload, 8);
55
+ return super.serialize();
59
56
  }
60
57
  };
61
58
  GetSerialApiCapabilitiesResponse = __decorate([
62
- (0, Message_1.messageTypes)(Constants_1.MessageType.Response, Constants_1.FunctionType.GetSerialApiCapabilities)
59
+ (0, serial_1.messageTypes)(serial_1.MessageType.Response, serial_1.FunctionType.GetSerialApiCapabilities)
63
60
  ], GetSerialApiCapabilitiesResponse);
64
61
  exports.GetSerialApiCapabilitiesResponse = GetSerialApiCapabilitiesResponse;
65
62
  //# sourceMappingURL=GetSerialApiCapabilitiesMessages.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GetSerialApiCapabilitiesMessages.js","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetSerialApiCapabilitiesMessages.ts"],"names":[],"mappings":";;;;;;;;;AAAA,yCAA8C;AAE9C,6CAA2C;AAE3C,uDAIiC;AACjC,mDAM+B;AAE/B,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,kBAAkB,GAAG,aAAa,GAAG,CAAC,CAAC;AAK7C,IAAa,+BAA+B,GAA5C,MAAa,+BAAgC,SAAQ,iBAAO;CAAG,CAAA;AAAlD,+BAA+B;IAH3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D,IAAW,sBAAsB;QAChC,OAAO,IAAI,CAAC,uBAAuB,CAAC;IACrC,CAAC;IAEM,MAAM;QACZ,OAAO,KAAK,CAAC,eAAe,CAAC;YAC5B,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAChE,IAAI,IAAI,wBAAY,CAAC,CAAC,CAAC,wBAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAA,gBAAO,EAAC,IAAI,CAAC,CACzD;SACD,CAAC,CAAC;IACJ,CAAC;CACD,CAAA;AAlDY,gCAAgC;IAD5C,IAAA,sBAAY,EAAC,uBAAW,CAAC,QAAQ,EAAE,wBAAY,CAAC,wBAAwB,CAAC;GAC7D,gCAAgC,CAkD5C;AAlDY,4EAAgC"}
1
+ {"version":3,"file":"GetSerialApiCapabilitiesMessages.js","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetSerialApiCapabilitiesMessages.ts"],"names":[],"mappings":";;;;;;;;;AAAA,yCAA6D;AAE7D,6CAW0B;AAE1B,MAAM,aAAa,GAAG,GAAG,CAAC;AAC1B,MAAM,kBAAkB,GAAG,aAAa,GAAG,CAAC,CAAC;AAK7C,IAAa,+BAA+B,GAA5C,MAAa,+BAAgC,SAAQ,gBAAO;CAAG,CAAA;AAAlD,+BAA+B;IAH3C,IAAA,qBAAY,EAAC,oBAAW,CAAC,OAAO,EAAE,qBAAY,CAAC,wBAAwB,CAAC;IACxE,IAAA,yBAAgB,EAAC,qBAAY,CAAC,wBAAwB,CAAC;IACvD,IAAA,iBAAQ,EAAC,wBAAe,CAAC,UAAU,CAAC;GACxB,+BAA+B,CAAmB;AAAlD,0EAA+B;AAY5C,IAAa,gCAAgC,GAA7C,MA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b,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;QAC9B,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;QACnC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC,CAAC,CAAC;QAEnC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,CAAC,CAAC;QACnD,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC;QAChD,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC;QAE9C,MAAM,eAAe,GAAG,IAAA,oBAAa,EACpC,IAAI,CAAC,sBAAsB,EAC3B,aAAa,CACb,CAAC;QACF,eAAe,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;QAEtC,OAAO,KAAK,CAAC,SAAS,EAAE,CAAC;IAC1B,CAAC;CACD,CAAA;AAzDY,gCAAgC;IAD5C,IAAA,qBAAY,EAAC,oBAAW,CAAC,QAAQ,EAAE,qBAAY,CAAC,wBAAwB,CAAC;GAC7D,gCAAgC,CAyD5C;AAzDY,4EAAgC"}
@@ -1,19 +1,31 @@
1
- import type { JSONObject } from "@zwave-js/shared";
2
- import type { Driver } from "../../driver/Driver";
3
- import { Message, MessageDeserializationOptions } from "../../message/Message";
1
+ /// <reference types="node" />
2
+ import { NodeType } from "@zwave-js/core";
3
+ import type { ZWaveHost } from "@zwave-js/host";
4
+ import { Message, MessageBaseOptions, MessageDeserializationOptions } from "@zwave-js/serial";
5
+ import { UnknownZWaveChipType } from "../../controller/ZWaveChipTypes";
6
+ import type { ZWaveApiVersion } from "../_Types";
4
7
  export declare class GetSerialApiInitDataRequest extends Message {
5
8
  }
9
+ export interface GetSerialApiInitDataResponseOptions extends MessageBaseOptions {
10
+ zwaveApiVersion: ZWaveApiVersion;
11
+ isPrimary: boolean;
12
+ nodeType: NodeType;
13
+ supportsTimers: boolean;
14
+ isSIS: boolean;
15
+ nodeIds: number[];
16
+ zwaveChipType?: string | UnknownZWaveChipType;
17
+ }
6
18
  export declare class GetSerialApiInitDataResponse extends Message {
7
- constructor(driver: Driver, options: MessageDeserializationOptions);
8
- private _initVersion;
9
- get initVersion(): number;
10
- private _initCaps;
11
- get isSlave(): boolean;
12
- get supportsTimers(): boolean;
13
- get isSecondary(): boolean;
14
- get isStaticUpdateController(): boolean;
15
- private _nodeIds;
16
- get nodeIds(): number[];
17
- toJSON(): JSONObject;
19
+ constructor(host: ZWaveHost, options: MessageDeserializationOptions | GetSerialApiInitDataResponseOptions);
20
+ /** @deprecated use {@link zwaveApiVersion} instead */
21
+ readonly initVersion: number;
22
+ zwaveApiVersion: ZWaveApiVersion;
23
+ isPrimary: boolean;
24
+ nodeType: NodeType;
25
+ supportsTimers: boolean;
26
+ isSIS: boolean;
27
+ nodeIds: readonly number[];
28
+ zwaveChipType?: string | UnknownZWaveChipType;
29
+ serialize(): Buffer;
18
30
  }
19
31
  //# sourceMappingURL=GetSerialApiInitDataMessages.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"GetSerialApiInitDataMessages.d.ts","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetSerialApiInitDataMessages.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAMlD,OAAO,EAEN,OAAO,EACP,6BAA6B,EAG7B,MAAM,uBAAuB,CAAC;AAS/B,qBAGa,2BAA4B,SAAQ,OAAO;CAAG;AAE3D,qBACa,4BAA6B,SAAQ,OAAO;gBACrC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,6BAA6B;IAazE,OAAO,CAAC,YAAY,CAAS;IAC7B,IAAW,WAAW,IAAI,MAAM,CAE/B;IAED,OAAO,CAAC,SAAS,CAAS;IAC1B,IAAW,OAAO,IAAI,OAAO,CAE5B;IACD,IAAW,cAAc,IAAI,OAAO,CAEnC;IACD,IAAW,WAAW,IAAI,OAAO,CAEhC;IACD,IAAW,wBAAwB,IAAI,OAAO,CAE7C;IAED,OAAO,CAAC,QAAQ,CAAW;IAC3B,IAAW,OAAO,IAAI,MAAM,EAAE,CAE7B;IAEM,MAAM,IAAI,UAAU;CAU3B"}
1
+ {"version":3,"file":"GetSerialApiInitDataMessages.d.ts","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetSerialApiInitDataMessages.ts"],"names":[],"mappings":";AAAA,OAAO,EAGN,QAAQ,EAER,MAAM,gBAAgB,CAAC;AACxB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAIN,OAAO,EACP,kBAAkB,EAClB,6BAA6B,EAK7B,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAGN,oBAAoB,EACpB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAEjD,qBAGa,2BAA4B,SAAQ,OAAO;CAAG;AAE3D,MAAM,WAAW,mCAChB,SAAQ,kBAAkB;IAC1B,eAAe,EAAE,eAAe,CAAC;IACjC,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,QAAQ,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,GAAG,oBAAoB,CAAC;CAC9C;AAED,qBACa,4BAA6B,SAAQ,OAAO;gBAEvD,IAAI,EAAE,SAAS,EACf,OAAO,EACJ,6BAA6B,GAC7B,mCAAmC;IA4EvC,sDAAsD;IACtD,SAAgB,WAAW,EAAE,MAAM,CAAC;IAC7B,eAAe,EAAE,eAAe,CAAC;IAEjC,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,QAAQ,CAAC;IACnB,cAAc,EAAE,OAAO,CAAC;IACxB,KAAK,EAAE,OAAO,CAAC;IAEf,OAAO,EAAE,SAAS,MAAM,EAAE,CAAC;IAE3B,aAAa,CAAC,EAAE,MAAM,GAAG,oBAAoB,CAAC;IAE9C,SAAS,IAAI,MAAM;CA4D1B"}
@@ -8,67 +8,154 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.GetSerialApiInitDataResponse = exports.GetSerialApiInitDataRequest = void 0;
10
10
  const core_1 = require("@zwave-js/core");
11
+ const serial_1 = require("@zwave-js/serial");
11
12
  const NodeBitMask_1 = require("../../controller/NodeBitMask");
12
- const Constants_1 = require("../../message/Constants");
13
- const Message_1 = require("../../message/Message");
14
- var InitCapabilityFlags;
15
- (function (InitCapabilityFlags) {
16
- InitCapabilityFlags[InitCapabilityFlags["Slave"] = 1] = "Slave";
17
- InitCapabilityFlags[InitCapabilityFlags["SupportsTimers"] = 2] = "SupportsTimers";
18
- InitCapabilityFlags[InitCapabilityFlags["Secondary"] = 4] = "Secondary";
19
- InitCapabilityFlags[InitCapabilityFlags["SUC"] = 8] = "SUC";
20
- })(InitCapabilityFlags || (InitCapabilityFlags = {}));
21
- let GetSerialApiInitDataRequest = class GetSerialApiInitDataRequest extends Message_1.Message {
13
+ const ZWaveChipTypes_1 = require("../../controller/ZWaveChipTypes");
14
+ let GetSerialApiInitDataRequest = class GetSerialApiInitDataRequest extends serial_1.Message {
22
15
  };
23
16
  GetSerialApiInitDataRequest = __decorate([
24
- (0, Message_1.messageTypes)(Constants_1.MessageType.Request, Constants_1.FunctionType.GetSerialApiInitData),
25
- (0, Message_1.expectedResponse)(Constants_1.FunctionType.GetSerialApiInitData),
26
- (0, Message_1.priority)(Constants_1.MessagePriority.Controller)
17
+ (0, serial_1.messageTypes)(serial_1.MessageType.Request, serial_1.FunctionType.GetSerialApiInitData),
18
+ (0, serial_1.expectedResponse)(serial_1.FunctionType.GetSerialApiInitData),
19
+ (0, serial_1.priority)(serial_1.MessagePriority.Controller)
27
20
  ], GetSerialApiInitDataRequest);
28
21
  exports.GetSerialApiInitDataRequest = GetSerialApiInitDataRequest;
29
- let GetSerialApiInitDataResponse = class GetSerialApiInitDataResponse extends Message_1.Message {
30
- constructor(driver, options) {
31
- super(driver, options);
32
- this._initVersion = this.payload[0];
33
- this._initCaps = this.payload[1];
34
- this._nodeIds = [];
35
- if (this.payload.length > 2 && this.payload[2] === core_1.NUM_NODEMASK_BYTES) {
36
- // the payload contains a bit mask of all existing nodes
37
- const nodeBitMask = this.payload.slice(3, 3 + core_1.NUM_NODEMASK_BYTES);
38
- this._nodeIds = (0, NodeBitMask_1.parseNodeBitMask)(nodeBitMask);
22
+ let GetSerialApiInitDataResponse = class GetSerialApiInitDataResponse extends serial_1.Message {
23
+ constructor(host, options) {
24
+ super(host, options);
25
+ if ((0, serial_1.gotDeserializationOptions)(options)) {
26
+ const apiVersion = this.payload[0];
27
+ if (apiVersion < 10) {
28
+ this.zwaveApiVersion = {
29
+ kind: "legacy",
30
+ version: apiVersion,
31
+ };
32
+ }
33
+ else {
34
+ // this module uses the officially specified Host API
35
+ this.zwaveApiVersion = {
36
+ kind: "official",
37
+ version: apiVersion - 9,
38
+ };
39
+ }
40
+ this.initVersion = apiVersion;
41
+ const capabilities = this.payload[1];
42
+ if (this.zwaveApiVersion.kind === "official") {
43
+ // The new "official" Host API specs sneakily switched the meaning of some flags
44
+ this.nodeType =
45
+ capabilities & 0b0001
46
+ ? core_1.NodeType.Controller
47
+ : core_1.NodeType["End Node"];
48
+ this.supportsTimers = !!(capabilities & 0b0010);
49
+ this.isPrimary = !!(capabilities & 0b0100);
50
+ this.isSIS = !!(capabilities & 0b1000);
51
+ }
52
+ else {
53
+ this.nodeType =
54
+ capabilities & 0b0001
55
+ ? core_1.NodeType["End Node"]
56
+ : core_1.NodeType.Controller;
57
+ this.supportsTimers = !!(capabilities & 0b0010);
58
+ this.isPrimary = !(capabilities & 0b0100);
59
+ this.isSIS = !!(capabilities & 0b1000);
60
+ }
61
+ let offset = 2;
62
+ this.nodeIds = [];
63
+ if (this.payload.length > offset) {
64
+ const nodeListLength = this.payload[offset];
65
+ // Controller Nodes MUST set this field to 29
66
+ if (nodeListLength === core_1.NUM_NODEMASK_BYTES &&
67
+ this.payload.length >= offset + 1 + nodeListLength) {
68
+ const nodeBitMask = this.payload.slice(offset + 1, offset + 1 + nodeListLength);
69
+ this.nodeIds = (0, NodeBitMask_1.parseNodeBitMask)(nodeBitMask);
70
+ }
71
+ offset += 1 + nodeListLength;
72
+ }
73
+ // these might not be present:
74
+ const chipType = this.payload[offset];
75
+ const chipVersion = this.payload[offset + 1];
76
+ if (chipType != undefined && chipVersion != undefined) {
77
+ this.zwaveChipType = (0, ZWaveChipTypes_1.getZWaveChipType)(chipType, chipVersion);
78
+ }
79
+ }
80
+ else {
81
+ this.zwaveApiVersion = options.zwaveApiVersion;
82
+ this.initVersion = 0; // unused
83
+ this.isPrimary = options.isPrimary;
84
+ this.nodeType = options.nodeType;
85
+ this.supportsTimers = options.supportsTimers;
86
+ this.isSIS = options.isSIS;
87
+ this.nodeIds = options.nodeIds;
88
+ this.zwaveChipType = options.zwaveChipType;
39
89
  }
40
90
  }
41
- get initVersion() {
42
- return this._initVersion;
43
- }
44
- get isSlave() {
45
- return !!(this._initCaps & InitCapabilityFlags.Slave);
46
- }
47
- get supportsTimers() {
48
- return !!(this._initCaps & InitCapabilityFlags.SupportsTimers);
49
- }
50
- get isSecondary() {
51
- return !!(this._initCaps & InitCapabilityFlags.Secondary);
52
- }
53
- get isStaticUpdateController() {
54
- return !!(this._initCaps & InitCapabilityFlags.SUC);
55
- }
56
- get nodeIds() {
57
- return this._nodeIds;
58
- }
59
- toJSON() {
60
- return super.toJSONInherited({
61
- initVersion: this.initVersion,
62
- isSlave: this.isSlave,
63
- supportsTimers: this.supportsTimers,
64
- isSecondary: this.isSecondary,
65
- isStaticUpdateController: this.isStaticUpdateController,
66
- nodeIds: this.nodeIds,
67
- });
91
+ serialize() {
92
+ let chipType;
93
+ if (typeof this.zwaveChipType === "string") {
94
+ chipType = (0, ZWaveChipTypes_1.getChipTypeAndVersion)(this.zwaveChipType);
95
+ }
96
+ else {
97
+ chipType = this.zwaveChipType;
98
+ }
99
+ this.payload = Buffer.allocUnsafe(3 + core_1.NUM_NODEMASK_BYTES + (chipType ? 2 : 0));
100
+ let capabilities = 0;
101
+ if (this.supportsTimers)
102
+ capabilities |= 0b0010;
103
+ if (this.isSIS)
104
+ capabilities |= 0b1000;
105
+ if (this.zwaveApiVersion.kind === "legacy") {
106
+ this.payload[0] = this.zwaveApiVersion.version;
107
+ if (this.nodeType === core_1.NodeType["End Node"])
108
+ capabilities |= 0b0001;
109
+ if (!this.isPrimary)
110
+ capabilities |= 0b0100;
111
+ }
112
+ else {
113
+ this.payload[0] = this.zwaveApiVersion.version + 9;
114
+ if (this.nodeType === core_1.NodeType.Controller)
115
+ capabilities |= 0b0001;
116
+ if (this.isPrimary)
117
+ capabilities |= 0b0100;
118
+ }
119
+ this.payload[1] = capabilities;
120
+ this.payload[2] = core_1.NUM_NODEMASK_BYTES;
121
+ const nodeBitMask = (0, core_1.encodeBitMask)(this.nodeIds, core_1.MAX_NODES);
122
+ nodeBitMask.copy(this.payload, 3);
123
+ if (chipType) {
124
+ this.payload[3 + core_1.NUM_NODEMASK_BYTES] = chipType.type;
125
+ this.payload[3 + core_1.NUM_NODEMASK_BYTES + 1] = chipType.version;
126
+ }
127
+ return super.serialize();
68
128
  }
69
129
  };
70
130
  GetSerialApiInitDataResponse = __decorate([
71
- (0, Message_1.messageTypes)(Constants_1.MessageType.Response, Constants_1.FunctionType.GetSerialApiInitData)
131
+ (0, serial_1.messageTypes)(serial_1.MessageType.Response, serial_1.FunctionType.GetSerialApiInitData)
72
132
  ], GetSerialApiInitDataResponse);
73
133
  exports.GetSerialApiInitDataResponse = GetSerialApiInitDataResponse;
134
+ // Z-Stick 7, 7.15
135
+ // 12:15:28.505 DRIVER « [RES] [GetSerialApiInitData]
136
+ // Z-Wave API Version: 9 (proprietary)
137
+ // node type: controller
138
+ // supports timers: false
139
+ // is secondary: false
140
+ // is SUC: true
141
+ // chip type: 7
142
+ // chip version: 0
143
+ // ACC-UZB3
144
+ // 12:21:11.141 DRIVER « [RES] [GetSerialApiInitData]
145
+ // Z-Wave API Version: 8 (proprietary)
146
+ // node type: controller
147
+ // supports timers: false
148
+ // is secondary: false
149
+ // is SUC: true
150
+ // chip type: 5
151
+ // chip version: 0
152
+ // UZB7, 7.11
153
+ // 12:33:14.211 DRIVER « [RES] [GetSerialApiInitData]
154
+ // Z-Wave API Version: 8 (proprietary)
155
+ // node type: controller
156
+ // supports timers: false
157
+ // is secondary: false
158
+ // is SUC: true
159
+ // chip type: 7
160
+ // chip version: 0
74
161
  //# sourceMappingURL=GetSerialApiInitDataMessages.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GetSerialApiInitDataMessages.js","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetSerialApiInitDataMessages.ts"],"names":[],"mappings":";;;;;;;;;AAAA,yCAAoD;AAEpD,8DAAgE;AAEhE,uDAIiC;AACjC,mDAM+B;AAE/B,IAAK,mBAKJ;AALD,WAAK,mBAAmB;IACvB,+DAAc,CAAA;IACd,iFAAuB,CAAA;IACvB,uEAAkB,CAAA;IAClB,2DAAY,CAAA;AACb,CAAC,EALI,mBAAmB,KAAnB,mBAAmB,QAKvB;AAKD,IAAa,2BAA2B,GAAxC,MAAa,2BAA4B,SAAQ,iBAAO;CAAG,CAAA;AAA9C,2BAA2B;IAHvC,IAAA,sBAAY,EAAC,uBAAW,CAAC,OAAO,EAAE,wBAAY,CAAC,oBAAoB,CAAC;IACpE,IAAA,0BAAgB,EAAC,wBAAY,CAAC,oBAAoB,CAAC;IACnD,IAAA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,GAAG,CAAC,CAAC;IACrD,CAAC;IAGD,IAAW,OAAO;QACjB,OAAO,IAAI,CAAC,QAAQ,CAAC;IACtB,CAAC;IAEM,MAAM;QACZ,OAAO,KAAK,CAAC,eAAe,CAAC;YAC5B,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,wBAAwB,EAAE,IAAI,CAAC,wBAAwB;YACvD,OAAO,EAAE,IAAI,CAAC,OAAO;SACrB,CAAC,CAAC;IACJ,CAAC;CACD,CAAA;AAhDY,4BAA4B;IADxC,IAAA,sBAAY,EAAC,uBAAW,CAAC,QAAQ,EAAE,wBAAY,CAAC,oBAAoB,CAAC;GACzD,4BAA4B,CAgDxC;AAhDY,oEAA4B"}
1
+ {"version":3,"file":"GetSerialApiInitDataMessages.js","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/GetSerialApiInitDataMessages.ts"],"names":[],"mappings":";;;;;;;;;AAAA,yCAKwB;AAExB,6CAW0B;AAC1B,8DAAgE;AAChE,oEAIyC;AAMzC,IAAa,2BAA2B,GAAxC,MAAa,2BAA4B,SAAQ,gBAAO;CAAG,CAAA;AAA9C,2BAA2B;IAHvC,IAAA,qBAAY,EAAC,oBAAW,CAAC,OAAO,EAAE,qBAAY,CAAC,oBAAoB,CAAC;IACpE,IAAA,yBAAgB,EAAC,qBAAY,CAAC,oBAAoB,CAAC;IACnD,IAAA,iBAAQ,EAAC,wBAAe,CAAC,UAAU,CAAC;GACxB,2BAA2B,CAAmB;AAA9C,kEAA2B;AAcxC,IAAa,4BAA4B,GAAzC,MAAa,4BAA6B,SAAQ,gBAAO;IACxD,YACC,IAAe,EACf,OAEsC;QAEtC,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAErB,IAAI,IAAA,kCAAyB,EAAC,OAAO,CAAC,EAAE;YACvC,MAAM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are class HardResetRequest extends Message {
2
+ import type { MessageOrCCLogEntry } from "@zwave-js/core";
3
+ import type { ZWaveHost } from "@zwave-js/host";
4
+ import { Message, MessageDeserializationOptions, MessageOptions } from "@zwave-js/serial";
5
+ export declare class HardResetRequestBase extends Message {
6
+ constructor(host: ZWaveHost, options?: MessageOptions);
7
+ }
8
+ export declare class HardResetRequest extends HardResetRequestBase {
4
9
  serialize(): Buffer;
10
+ toLogEntry(): MessageOrCCLogEntry;
11
+ }
12
+ export declare class HardResetCallback extends HardResetRequestBase {
13
+ constructor(host: ZWaveHost, options: MessageDeserializationOptions);
14
+ toLogEntry(): MessageOrCCLogEntry;
5
15
  }
6
16
  //# sourceMappingURL=HardResetRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"HardResetRequest.d.ts","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/HardResetRequest.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,OAAO,EAA0B,MAAM,uBAAuB,CAAC;AAExE,qBAGa,gBAAiB,SAAQ,OAAO;IAKrC,SAAS,IAAI,MAAM;CAI1B"}
1
+ {"version":3,"file":"HardResetRequest.d.ts","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/HardResetRequest.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAIN,OAAO,EACP,6BAA6B,EAC7B,cAAc,EAKd,MAAM,kBAAkB,CAAC;AAE1B,qBAEa,oBAAqB,SAAQ,OAAO;gBAC7B,IAAI,EAAE,SAAS,EAAE,OAAO,CAAC,EAAE,cAAc;CAS5D;AAED,qBACa,gBAAiB,SAAQ,oBAAoB;IAClD,SAAS,IAAI,MAAM;IAKnB,UAAU,IAAI,mBAAmB;CAQxC;AAED,qBAAa,iBAAkB,SAAQ,oBAAoB;gBAEzD,IAAI,EAAE,SAAS,EACf,OAAO,EAAE,6BAA6B;IAMhC,UAAU,IAAI,mBAAmB;CAQxC"}
@@ -6,23 +6,53 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
6
6
  return c > 3 && r && Object.defineProperty(target, key, r), r;
7
7
  };
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.HardResetRequest = void 0;
10
- const Constants_1 = require("../../message/Constants");
11
- const Message_1 = require("../../message/Message");
12
- let HardResetRequest = class HardResetRequest extends Message_1.Message {
13
- // the response "request" contains one payload byte
14
- // it was 0xc1 in our case (0b1100_0001), but we don't know what it means
15
- // ^-- TODO: Is that the callbackId?
9
+ exports.HardResetCallback = exports.HardResetRequest = exports.HardResetRequestBase = void 0;
10
+ const serial_1 = require("@zwave-js/serial");
11
+ let HardResetRequestBase = class HardResetRequestBase extends serial_1.Message {
12
+ constructor(host, options) {
13
+ if ((0, serial_1.gotDeserializationOptions)(options) &&
14
+ new.target !== HardResetCallback) {
15
+ return new HardResetCallback(host, options);
16
+ }
17
+ super(host, options);
18
+ }
19
+ };
20
+ HardResetRequestBase = __decorate([
21
+ (0, serial_1.messageTypes)(serial_1.MessageType.Request, serial_1.FunctionType.HardReset),
22
+ (0, serial_1.priority)(serial_1.MessagePriority.Controller)
23
+ ], HardResetRequestBase);
24
+ exports.HardResetRequestBase = HardResetRequestBase;
25
+ let HardResetRequest = class HardResetRequest extends HardResetRequestBase {
16
26
  serialize() {
17
27
  this.payload = Buffer.from([this.callbackId]);
18
28
  return super.serialize();
19
29
  }
30
+ toLogEntry() {
31
+ return {
32
+ ...super.toLogEntry(),
33
+ message: {
34
+ "callback id": this.callbackId,
35
+ },
36
+ };
37
+ }
20
38
  };
21
39
  HardResetRequest = __decorate([
22
- (0, Message_1.messageTypes)(Constants_1.MessageType.Request, Constants_1.FunctionType.HardReset)
23
- // This will be responded to with a HardResetRequest
24
- ,
25
- (0, Message_1.priority)(Constants_1.MessagePriority.Controller)
40
+ (0, serial_1.expectedCallback)(serial_1.FunctionType.HardReset)
26
41
  ], HardResetRequest);
27
42
  exports.HardResetRequest = HardResetRequest;
43
+ class HardResetCallback extends HardResetRequestBase {
44
+ constructor(host, options) {
45
+ super(host, options);
46
+ this.callbackId = this.payload[0];
47
+ }
48
+ toLogEntry() {
49
+ return {
50
+ ...super.toLogEntry(),
51
+ message: {
52
+ "callback id": this.callbackId,
53
+ },
54
+ };
55
+ }
56
+ }
57
+ exports.HardResetCallback = HardResetCallback;
28
58
  //# sourceMappingURL=HardResetRequest.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"HardResetRequest.js","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/HardResetRequest.ts"],"names":[],"mappings":";;;;;;;;;AAAA,uDAIiC;AACjC,mDAAwE;AAKxE,IAAa,gBAAgB,GAA7B,MAAa,gBAAiB,SAAQ,iBAAO;IAC5C,mDAAmD;IACnD,yEAAyE;IACzE,oCAAoC;IAE7B,SAAS;QACf,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;QAC9C,OAAO,KAAK,CAAC,SAAS,EAAE,CAAC;IAC1B,CAAC;CACD,CAAA;AATY,gBAAgB;IAH5B,IAAA,sBAAY,EAAC,uBAAW,CAAC,OAAO,EAAE,wBAAY,CAAC,SAAS,CAAC;IAC1D,oDAAoD;;IACnD,IAAA,kBAAQ,EAAC,2BAAe,CAAC,UAAU,CAAC;GACxB,gBAAgB,CAS5B;AATY,4CAAgB"}
1
+ {"version":3,"file":"HardResetRequest.js","sourceRoot":"","sources":["../../../../src/lib/serialapi/capability/HardResetRequest.ts"],"names":[],"mappings":";;;;;;;;;AAEA,6CAW0B;AAI1B,IAAa,oBAAoB,GAAjC,MAAa,oBAAqB,SAAQ,gBAAO;IAChD,YAAmB,IAAe,EAAE,OAAwB;QAC3D,IACC,IAAA,kCAAyB,EAAC,OAAO,CAAC;YACjC,GAAG,CAAC,MAAc,KAAK,iBAAiB,EACxC;YACD,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