@zwave-js/cc 14.0.0-beta.4 → 14.0.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 (331) hide show
  1. package/build/cjs/cc/AlarmSensorCC.js +381 -266
  2. package/build/cjs/cc/AlarmSensorCC.js.map +3 -3
  3. package/build/cjs/cc/AssociationCC.js +669 -503
  4. package/build/cjs/cc/AssociationCC.js.map +3 -3
  5. package/build/cjs/cc/AssociationGroupInfoCC.js +633 -492
  6. package/build/cjs/cc/AssociationGroupInfoCC.js.map +3 -3
  7. package/build/cjs/cc/BarrierOperatorCC.js +595 -429
  8. package/build/cjs/cc/BarrierOperatorCC.js.map +3 -3
  9. package/build/cjs/cc/BasicCC.js +354 -260
  10. package/build/cjs/cc/BasicCC.js.map +3 -3
  11. package/build/cjs/cc/BatteryCC.js +427 -345
  12. package/build/cjs/cc/BatteryCC.js.map +3 -3
  13. package/build/cjs/cc/BinarySensorCC.js +391 -276
  14. package/build/cjs/cc/BinarySensorCC.js.map +3 -3
  15. package/build/cjs/cc/BinarySwitchCC.js +347 -253
  16. package/build/cjs/cc/BinarySwitchCC.js.map +3 -3
  17. package/build/cjs/cc/CRC16CC.js +160 -85
  18. package/build/cjs/cc/CRC16CC.js.map +3 -3
  19. package/build/cjs/cc/CentralSceneCC.js +459 -324
  20. package/build/cjs/cc/CentralSceneCC.js.map +3 -3
  21. package/build/cjs/cc/ClimateControlScheduleCC.js +459 -293
  22. package/build/cjs/cc/ClimateControlScheduleCC.js.map +3 -3
  23. package/build/cjs/cc/ClockCC.js +254 -150
  24. package/build/cjs/cc/ClockCC.js.map +3 -3
  25. package/build/cjs/cc/ColorSwitchCC.js +758 -610
  26. package/build/cjs/cc/ColorSwitchCC.js.map +3 -3
  27. package/build/cjs/cc/ConfigurationCC.js +1700 -1453
  28. package/build/cjs/cc/ConfigurationCC.js.map +3 -3
  29. package/build/cjs/cc/DeviceResetLocallyCC.js +125 -49
  30. package/build/cjs/cc/DeviceResetLocallyCC.js.map +3 -3
  31. package/build/cjs/cc/DoorLockCC.js +904 -777
  32. package/build/cjs/cc/DoorLockCC.js.map +3 -3
  33. package/build/cjs/cc/DoorLockLoggingCC.js +321 -206
  34. package/build/cjs/cc/DoorLockLoggingCC.js.map +3 -3
  35. package/build/cjs/cc/EnergyProductionCC.js +249 -160
  36. package/build/cjs/cc/EnergyProductionCC.js.map +3 -3
  37. package/build/cjs/cc/EntryControlCC.js +619 -458
  38. package/build/cjs/cc/EntryControlCC.js.map +3 -3
  39. package/build/cjs/cc/FirmwareUpdateMetaDataCC.js +898 -698
  40. package/build/cjs/cc/FirmwareUpdateMetaDataCC.js.map +3 -3
  41. package/build/cjs/cc/HailCC.js +57 -11
  42. package/build/cjs/cc/HailCC.js.map +2 -2
  43. package/build/cjs/cc/HumidityControlModeCC.js +359 -233
  44. package/build/cjs/cc/HumidityControlModeCC.js.map +3 -3
  45. package/build/cjs/cc/HumidityControlOperatingStateCC.js +189 -103
  46. package/build/cjs/cc/HumidityControlOperatingStateCC.js.map +3 -3
  47. package/build/cjs/cc/HumidityControlSetpointCC.js +682 -495
  48. package/build/cjs/cc/HumidityControlSetpointCC.js.map +3 -3
  49. package/build/cjs/cc/InclusionControllerCC.js +205 -114
  50. package/build/cjs/cc/InclusionControllerCC.js.map +3 -3
  51. package/build/cjs/cc/IndicatorCC.js +897 -736
  52. package/build/cjs/cc/IndicatorCC.js.map +3 -3
  53. package/build/cjs/cc/IrrigationCC.js +1651 -1405
  54. package/build/cjs/cc/IrrigationCC.js.map +3 -3
  55. package/build/cjs/cc/LanguageCC.js +268 -171
  56. package/build/cjs/cc/LanguageCC.js.map +3 -3
  57. package/build/cjs/cc/LockCC.js +254 -154
  58. package/build/cjs/cc/LockCC.js.map +3 -3
  59. package/build/cjs/cc/ManufacturerProprietaryCC.js +189 -129
  60. package/build/cjs/cc/ManufacturerProprietaryCC.js.map +2 -2
  61. package/build/cjs/cc/ManufacturerSpecificCC.js +319 -213
  62. package/build/cjs/cc/ManufacturerSpecificCC.js.map +3 -3
  63. package/build/cjs/cc/MeterCC.js +827 -707
  64. package/build/cjs/cc/MeterCC.js.map +3 -3
  65. package/build/cjs/cc/MultiChannelAssociationCC.js +612 -478
  66. package/build/cjs/cc/MultiChannelAssociationCC.js.map +3 -3
  67. package/build/cjs/cc/MultiChannelCC.js +1037 -819
  68. package/build/cjs/cc/MultiChannelCC.js.map +3 -3
  69. package/build/cjs/cc/MultiCommandCC.js +172 -97
  70. package/build/cjs/cc/MultiCommandCC.js.map +3 -3
  71. package/build/cjs/cc/MultilevelSensorCC.js +589 -449
  72. package/build/cjs/cc/MultilevelSensorCC.js.map +3 -3
  73. package/build/cjs/cc/MultilevelSwitchCC.js +587 -439
  74. package/build/cjs/cc/MultilevelSwitchCC.js.map +3 -3
  75. package/build/cjs/cc/NoOperationCC.js +89 -27
  76. package/build/cjs/cc/NoOperationCC.js.map +2 -2
  77. package/build/cjs/cc/NodeNamingCC.js +417 -277
  78. package/build/cjs/cc/NodeNamingCC.js.map +3 -3
  79. package/build/cjs/cc/NotificationCC.js +972 -818
  80. package/build/cjs/cc/NotificationCC.js.map +3 -3
  81. package/build/cjs/cc/PowerlevelCC.js +450 -303
  82. package/build/cjs/cc/PowerlevelCC.js.map +3 -3
  83. package/build/cjs/cc/ProtectionCC.js +686 -494
  84. package/build/cjs/cc/ProtectionCC.js.map +3 -3
  85. package/build/cjs/cc/SceneActivationCC.js +165 -97
  86. package/build/cjs/cc/SceneActivationCC.js.map +3 -3
  87. package/build/cjs/cc/SceneActuatorConfigurationCC.js +346 -243
  88. package/build/cjs/cc/SceneActuatorConfigurationCC.js.map +3 -3
  89. package/build/cjs/cc/SceneControllerConfigurationCC.js +401 -298
  90. package/build/cjs/cc/SceneControllerConfigurationCC.js.map +3 -3
  91. package/build/cjs/cc/ScheduleEntryLockCC.js +1552 -1272
  92. package/build/cjs/cc/ScheduleEntryLockCC.js.map +3 -3
  93. package/build/cjs/cc/Security2CC.js +1483 -1219
  94. package/build/cjs/cc/Security2CC.js.map +3 -3
  95. package/build/cjs/cc/SecurityCC.js +839 -619
  96. package/build/cjs/cc/SecurityCC.js.map +3 -3
  97. package/build/cjs/cc/SoundSwitchCC.js +707 -515
  98. package/build/cjs/cc/SoundSwitchCC.js.map +3 -3
  99. package/build/cjs/cc/SupervisionCC.js +327 -237
  100. package/build/cjs/cc/SupervisionCC.js.map +3 -3
  101. package/build/cjs/cc/ThermostatFanModeCC.js +386 -263
  102. package/build/cjs/cc/ThermostatFanModeCC.js.map +3 -3
  103. package/build/cjs/cc/ThermostatFanStateCC.js +192 -106
  104. package/build/cjs/cc/ThermostatFanStateCC.js.map +3 -3
  105. package/build/cjs/cc/ThermostatModeCC.js +425 -302
  106. package/build/cjs/cc/ThermostatModeCC.js.map +3 -3
  107. package/build/cjs/cc/ThermostatOperatingStateCC.js +188 -102
  108. package/build/cjs/cc/ThermostatOperatingStateCC.js.map +3 -3
  109. package/build/cjs/cc/ThermostatSetbackCC.js +277 -173
  110. package/build/cjs/cc/ThermostatSetbackCC.js.map +3 -3
  111. package/build/cjs/cc/ThermostatSetpointCC.js +645 -491
  112. package/build/cjs/cc/ThermostatSetpointCC.js.map +3 -3
  113. package/build/cjs/cc/TimeCC.js +515 -353
  114. package/build/cjs/cc/TimeCC.js.map +3 -3
  115. package/build/cjs/cc/TimeParametersCC.js +302 -202
  116. package/build/cjs/cc/TimeParametersCC.js.map +3 -3
  117. package/build/cjs/cc/TransportServiceCC.js +433 -315
  118. package/build/cjs/cc/TransportServiceCC.js.map +3 -3
  119. package/build/cjs/cc/UserCodeCC.js +1385 -1102
  120. package/build/cjs/cc/UserCodeCC.js.map +3 -3
  121. package/build/cjs/cc/VersionCC.js +696 -562
  122. package/build/cjs/cc/VersionCC.js.map +3 -3
  123. package/build/cjs/cc/WakeUpCC.js +499 -346
  124. package/build/cjs/cc/WakeUpCC.js.map +3 -3
  125. package/build/cjs/cc/WindowCoveringCC.js +626 -478
  126. package/build/cjs/cc/WindowCoveringCC.js.map +3 -3
  127. package/build/cjs/cc/ZWaveLongRangeCC.js +57 -10
  128. package/build/cjs/cc/ZWaveLongRangeCC.js.map +2 -2
  129. package/build/cjs/cc/ZWavePlusCC.js +233 -159
  130. package/build/cjs/cc/ZWavePlusCC.js.map +3 -3
  131. package/build/cjs/cc/ZWaveProtocolCC.js +1515 -948
  132. package/build/cjs/cc/ZWaveProtocolCC.js.map +3 -3
  133. package/build/cjs/cc/manufacturerProprietary/Decorators.d.ts +4 -4
  134. package/build/cjs/cc/manufacturerProprietary/Decorators.js.map +1 -1
  135. package/build/cjs/cc/manufacturerProprietary/FibaroCC.js +395 -274
  136. package/build/cjs/cc/manufacturerProprietary/FibaroCC.js.map +3 -3
  137. package/build/cjs/lib/CommandClassDecorators.d.ts +11 -15
  138. package/build/cjs/lib/CommandClassDecorators.js +19 -20
  139. package/build/cjs/lib/CommandClassDecorators.js.map +2 -2
  140. package/build/cjs/lib/Security2/Extension.d.ts +1 -1
  141. package/build/cjs/lib/Security2/Extension.js +217 -126
  142. package/build/cjs/lib/Security2/Extension.js.map +3 -3
  143. package/build/esm/cc/AlarmSensorCC.d.ts.map +1 -1
  144. package/build/esm/cc/AlarmSensorCC.js +389 -291
  145. package/build/esm/cc/AlarmSensorCC.js.map +1 -1
  146. package/build/esm/cc/AssociationCC.d.ts.map +1 -1
  147. package/build/esm/cc/AssociationCC.js +678 -537
  148. package/build/esm/cc/AssociationCC.js.map +1 -1
  149. package/build/esm/cc/AssociationGroupInfoCC.d.ts.map +1 -1
  150. package/build/esm/cc/AssociationGroupInfoCC.js +659 -539
  151. package/build/esm/cc/AssociationGroupInfoCC.js.map +1 -1
  152. package/build/esm/cc/BarrierOperatorCC.d.ts.map +1 -1
  153. package/build/esm/cc/BarrierOperatorCC.js +634 -493
  154. package/build/esm/cc/BarrierOperatorCC.js.map +1 -1
  155. package/build/esm/cc/BasicCC.d.ts.map +1 -1
  156. package/build/esm/cc/BasicCC.js +380 -302
  157. package/build/esm/cc/BasicCC.js.map +1 -1
  158. package/build/esm/cc/BatteryCC.d.ts.map +1 -1
  159. package/build/esm/cc/BatteryCC.js +449 -384
  160. package/build/esm/cc/BatteryCC.js.map +1 -1
  161. package/build/esm/cc/BinarySensorCC.d.ts.map +1 -1
  162. package/build/esm/cc/BinarySensorCC.js +395 -297
  163. package/build/esm/cc/BinarySensorCC.js.map +1 -1
  164. package/build/esm/cc/BinarySwitchCC.d.ts.map +1 -1
  165. package/build/esm/cc/BinarySwitchCC.js +353 -274
  166. package/build/esm/cc/BinarySwitchCC.js.map +1 -1
  167. package/build/esm/cc/CRC16CC.js +162 -98
  168. package/build/esm/cc/CRC16CC.js.map +1 -1
  169. package/build/esm/cc/CentralSceneCC.d.ts.map +1 -1
  170. package/build/esm/cc/CentralSceneCC.js +465 -351
  171. package/build/esm/cc/CentralSceneCC.js.map +1 -1
  172. package/build/esm/cc/ClimateControlScheduleCC.d.ts.map +1 -1
  173. package/build/esm/cc/ClimateControlScheduleCC.js +454 -313
  174. package/build/esm/cc/ClimateControlScheduleCC.js.map +1 -1
  175. package/build/esm/cc/ClockCC.js +248 -159
  176. package/build/esm/cc/ClockCC.js.map +1 -1
  177. package/build/esm/cc/ColorSwitchCC.d.ts.map +1 -1
  178. package/build/esm/cc/ColorSwitchCC.js +802 -677
  179. package/build/esm/cc/ColorSwitchCC.js.map +1 -1
  180. package/build/esm/cc/ConfigurationCC.js +1899 -1687
  181. package/build/esm/cc/ConfigurationCC.js.map +1 -1
  182. package/build/esm/cc/DeviceResetLocallyCC.js +124 -59
  183. package/build/esm/cc/DeviceResetLocallyCC.js.map +1 -1
  184. package/build/esm/cc/DoorLockCC.d.ts.map +1 -1
  185. package/build/esm/cc/DoorLockCC.js +951 -849
  186. package/build/esm/cc/DoorLockCC.js.map +1 -1
  187. package/build/esm/cc/DoorLockLoggingCC.d.ts.map +1 -1
  188. package/build/esm/cc/DoorLockLoggingCC.js +316 -218
  189. package/build/esm/cc/DoorLockLoggingCC.js.map +1 -1
  190. package/build/esm/cc/EnergyProductionCC.js +240 -164
  191. package/build/esm/cc/EnergyProductionCC.js.map +1 -1
  192. package/build/esm/cc/EntryControlCC.d.ts.map +1 -1
  193. package/build/esm/cc/EntryControlCC.js +629 -493
  194. package/build/esm/cc/EntryControlCC.js.map +1 -1
  195. package/build/esm/cc/FirmwareUpdateMetaDataCC.d.ts.map +1 -1
  196. package/build/esm/cc/FirmwareUpdateMetaDataCC.js +938 -769
  197. package/build/esm/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
  198. package/build/esm/cc/HailCC.js +51 -12
  199. package/build/esm/cc/HailCC.js.map +1 -1
  200. package/build/esm/cc/HumidityControlModeCC.d.ts.map +1 -1
  201. package/build/esm/cc/HumidityControlModeCC.js +357 -250
  202. package/build/esm/cc/HumidityControlModeCC.js.map +1 -1
  203. package/build/esm/cc/HumidityControlOperatingStateCC.d.ts.map +1 -1
  204. package/build/esm/cc/HumidityControlOperatingStateCC.js +182 -109
  205. package/build/esm/cc/HumidityControlOperatingStateCC.js.map +1 -1
  206. package/build/esm/cc/HumidityControlSetpointCC.d.ts.map +1 -1
  207. package/build/esm/cc/HumidityControlSetpointCC.js +706 -546
  208. package/build/esm/cc/HumidityControlSetpointCC.js.map +1 -1
  209. package/build/esm/cc/InclusionControllerCC.js +197 -119
  210. package/build/esm/cc/InclusionControllerCC.js.map +1 -1
  211. package/build/esm/cc/IndicatorCC.js +973 -835
  212. package/build/esm/cc/IndicatorCC.js.map +1 -1
  213. package/build/esm/cc/IrrigationCC.d.ts.map +1 -1
  214. package/build/esm/cc/IrrigationCC.js +1697 -1496
  215. package/build/esm/cc/IrrigationCC.js.map +1 -1
  216. package/build/esm/cc/LanguageCC.d.ts.map +1 -1
  217. package/build/esm/cc/LanguageCC.js +266 -184
  218. package/build/esm/cc/LanguageCC.js.map +1 -1
  219. package/build/esm/cc/LockCC.d.ts.map +1 -1
  220. package/build/esm/cc/LockCC.js +247 -162
  221. package/build/esm/cc/LockCC.js.map +1 -1
  222. package/build/esm/cc/ManufacturerProprietaryCC.js +192 -141
  223. package/build/esm/cc/ManufacturerProprietaryCC.js.map +1 -1
  224. package/build/esm/cc/ManufacturerSpecificCC.d.ts.map +1 -1
  225. package/build/esm/cc/ManufacturerSpecificCC.js +312 -223
  226. package/build/esm/cc/ManufacturerSpecificCC.js.map +1 -1
  227. package/build/esm/cc/MeterCC.d.ts.map +1 -1
  228. package/build/esm/cc/MeterCC.js +896 -795
  229. package/build/esm/cc/MeterCC.js.map +1 -1
  230. package/build/esm/cc/MultiChannelAssociationCC.d.ts.map +1 -1
  231. package/build/esm/cc/MultiChannelAssociationCC.js +631 -518
  232. package/build/esm/cc/MultiChannelAssociationCC.js.map +1 -1
  233. package/build/esm/cc/MultiChannelCC.d.ts.map +1 -1
  234. package/build/esm/cc/MultiChannelCC.js +1106 -921
  235. package/build/esm/cc/MultiChannelCC.js.map +1 -1
  236. package/build/esm/cc/MultiCommandCC.js +166 -102
  237. package/build/esm/cc/MultiCommandCC.js.map +1 -1
  238. package/build/esm/cc/MultilevelSensorCC.d.ts.map +1 -1
  239. package/build/esm/cc/MultilevelSensorCC.js +616 -497
  240. package/build/esm/cc/MultilevelSensorCC.js.map +1 -1
  241. package/build/esm/cc/MultilevelSwitchCC.d.ts.map +1 -1
  242. package/build/esm/cc/MultilevelSwitchCC.js +621 -496
  243. package/build/esm/cc/MultilevelSwitchCC.js.map +1 -1
  244. package/build/esm/cc/NoOperationCC.js +82 -29
  245. package/build/esm/cc/NoOperationCC.js.map +1 -1
  246. package/build/esm/cc/NodeNamingCC.d.ts.map +1 -1
  247. package/build/esm/cc/NodeNamingCC.js +413 -294
  248. package/build/esm/cc/NodeNamingCC.js.map +1 -1
  249. package/build/esm/cc/NotificationCC.d.ts.map +1 -1
  250. package/build/esm/cc/NotificationCC.js +1097 -966
  251. package/build/esm/cc/NotificationCC.js.map +1 -1
  252. package/build/esm/cc/PowerlevelCC.js +437 -311
  253. package/build/esm/cc/PowerlevelCC.js.map +1 -1
  254. package/build/esm/cc/ProtectionCC.d.ts.map +1 -1
  255. package/build/esm/cc/ProtectionCC.js +704 -543
  256. package/build/esm/cc/ProtectionCC.js.map +1 -1
  257. package/build/esm/cc/SceneActivationCC.d.ts.map +1 -1
  258. package/build/esm/cc/SceneActivationCC.js +157 -100
  259. package/build/esm/cc/SceneActivationCC.js.map +1 -1
  260. package/build/esm/cc/SceneActuatorConfigurationCC.js +357 -269
  261. package/build/esm/cc/SceneActuatorConfigurationCC.js.map +1 -1
  262. package/build/esm/cc/SceneControllerConfigurationCC.js +434 -346
  263. package/build/esm/cc/SceneControllerConfigurationCC.js.map +1 -1
  264. package/build/esm/cc/ScheduleEntryLockCC.d.ts.map +1 -1
  265. package/build/esm/cc/ScheduleEntryLockCC.js +1596 -1357
  266. package/build/esm/cc/ScheduleEntryLockCC.js.map +1 -1
  267. package/build/esm/cc/Security2CC.js +1633 -1406
  268. package/build/esm/cc/Security2CC.js.map +1 -1
  269. package/build/esm/cc/SecurityCC.js +876 -687
  270. package/build/esm/cc/SecurityCC.js.map +1 -1
  271. package/build/esm/cc/SoundSwitchCC.d.ts.map +1 -1
  272. package/build/esm/cc/SoundSwitchCC.js +689 -526
  273. package/build/esm/cc/SoundSwitchCC.js.map +1 -1
  274. package/build/esm/cc/SupervisionCC.js +349 -272
  275. package/build/esm/cc/SupervisionCC.js.map +1 -1
  276. package/build/esm/cc/ThermostatFanModeCC.d.ts.map +1 -1
  277. package/build/esm/cc/ThermostatFanModeCC.js +388 -284
  278. package/build/esm/cc/ThermostatFanModeCC.js.map +1 -1
  279. package/build/esm/cc/ThermostatFanStateCC.d.ts.map +1 -1
  280. package/build/esm/cc/ThermostatFanStateCC.js +184 -111
  281. package/build/esm/cc/ThermostatFanStateCC.js.map +1 -1
  282. package/build/esm/cc/ThermostatModeCC.d.ts.map +1 -1
  283. package/build/esm/cc/ThermostatModeCC.js +435 -331
  284. package/build/esm/cc/ThermostatModeCC.js.map +1 -1
  285. package/build/esm/cc/ThermostatOperatingStateCC.d.ts.map +1 -1
  286. package/build/esm/cc/ThermostatOperatingStateCC.js +180 -107
  287. package/build/esm/cc/ThermostatOperatingStateCC.js.map +1 -1
  288. package/build/esm/cc/ThermostatSetbackCC.js +274 -185
  289. package/build/esm/cc/ThermostatSetbackCC.js.map +1 -1
  290. package/build/esm/cc/ThermostatSetpointCC.d.ts.map +1 -1
  291. package/build/esm/cc/ThermostatSetpointCC.js +674 -543
  292. package/build/esm/cc/ThermostatSetpointCC.js.map +1 -1
  293. package/build/esm/cc/TimeCC.js +499 -360
  294. package/build/esm/cc/TimeCC.js.map +1 -1
  295. package/build/esm/cc/TimeParametersCC.d.ts.map +1 -1
  296. package/build/esm/cc/TimeParametersCC.js +296 -211
  297. package/build/esm/cc/TimeParametersCC.js.map +1 -1
  298. package/build/esm/cc/TransportServiceCC.js +464 -363
  299. package/build/esm/cc/TransportServiceCC.js.map +1 -1
  300. package/build/esm/cc/UserCodeCC.d.ts.map +1 -1
  301. package/build/esm/cc/UserCodeCC.js +1443 -1205
  302. package/build/esm/cc/UserCodeCC.js.map +1 -1
  303. package/build/esm/cc/VersionCC.d.ts.map +1 -1
  304. package/build/esm/cc/VersionCC.js +744 -635
  305. package/build/esm/cc/VersionCC.js.map +1 -1
  306. package/build/esm/cc/WakeUpCC.d.ts.map +1 -1
  307. package/build/esm/cc/WakeUpCC.js +494 -364
  308. package/build/esm/cc/WakeUpCC.js.map +1 -1
  309. package/build/esm/cc/WindowCoveringCC.d.ts.map +1 -1
  310. package/build/esm/cc/WindowCoveringCC.js +655 -530
  311. package/build/esm/cc/WindowCoveringCC.js.map +1 -1
  312. package/build/esm/cc/ZWaveLongRangeCC.js +51 -11
  313. package/build/esm/cc/ZWaveLongRangeCC.js.map +1 -1
  314. package/build/esm/cc/ZWavePlusCC.d.ts.map +1 -1
  315. package/build/esm/cc/ZWavePlusCC.js +223 -162
  316. package/build/esm/cc/ZWavePlusCC.js.map +1 -1
  317. package/build/esm/cc/ZWaveProtocolCC.js +1443 -953
  318. package/build/esm/cc/ZWaveProtocolCC.js.map +1 -1
  319. package/build/esm/cc/manufacturerProprietary/Decorators.d.ts +4 -4
  320. package/build/esm/cc/manufacturerProprietary/Decorators.d.ts.map +1 -1
  321. package/build/esm/cc/manufacturerProprietary/FibaroCC.js +390 -286
  322. package/build/esm/cc/manufacturerProprietary/FibaroCC.js.map +1 -1
  323. package/build/esm/lib/CommandClassDecorators.d.ts +11 -15
  324. package/build/esm/lib/CommandClassDecorators.d.ts.map +1 -1
  325. package/build/esm/lib/CommandClassDecorators.js +24 -24
  326. package/build/esm/lib/CommandClassDecorators.js.map +1 -1
  327. package/build/esm/lib/Security2/Extension.d.ts +1 -1
  328. package/build/esm/lib/Security2/Extension.d.ts.map +1 -1
  329. package/build/esm/lib/Security2/Extension.js +207 -123
  330. package/build/esm/lib/Security2/Extension.js.map +1 -1
  331. package/package.json +6 -6
@@ -1,10 +1,37 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
1
+ var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
2
+ function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
3
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
4
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
5
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
6
+ var _, done = false;
7
+ for (var i = decorators.length - 1; i >= 0; i--) {
8
+ var context = {};
9
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
10
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
11
+ context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
12
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
13
+ if (kind === "accessor") {
14
+ if (result === void 0) continue;
15
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
16
+ if (_ = accept(result.get)) descriptor.get = _;
17
+ if (_ = accept(result.set)) descriptor.set = _;
18
+ if (_ = accept(result.init)) initializers.unshift(_);
19
+ }
20
+ else if (_ = accept(result)) {
21
+ if (kind === "field") initializers.unshift(_);
22
+ else descriptor[key] = _;
23
+ }
24
+ }
25
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
26
+ done = true;
27
+ };
28
+ var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
29
+ var useValue = arguments.length > 2;
30
+ for (var i = 0; i < initializers.length; i++) {
31
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
32
+ }
33
+ return useValue ? value : void 0;
6
34
  };
7
- var ZWaveProtocolCCNodeInformationFrame_1, ZWaveProtocolCCAssignIDs_1, ZWaveProtocolCCFindNodesInRange_1, ZWaveProtocolCCRangeInfo_1, ZWaveProtocolCCCommandComplete_1, ZWaveProtocolCCTransferPresentation_1, ZWaveProtocolCCTransferNodeInformation_1, ZWaveProtocolCCTransferRangeInformation_1, ZWaveProtocolCCTransferEnd_1, ZWaveProtocolCCAssignReturnRoute_1, ZWaveProtocolCCNewNodeRegistered_1, ZWaveProtocolCCNewRangeRegistered_1, ZWaveProtocolCCTransferNewPrimaryControllerComplete_1, ZWaveProtocolCCSUCNodeID_1, ZWaveProtocolCCSetSUC_1, ZWaveProtocolCCSetSUCAck_1, ZWaveProtocolCCStaticRouteRequest_1, ZWaveProtocolCCLost_1, ZWaveProtocolCCAcceptLost_1, ZWaveProtocolCCNOPPower_1, ZWaveProtocolCCReservedIDs_1, ZWaveProtocolCCReserveNodeIDs_1, ZWaveProtocolCCNodesExistReply_1, ZWaveProtocolCCNodesExist_1, ZWaveProtocolCCSetNWIMode_1, ZWaveProtocolCCAssignReturnRoutePriority_1, ZWaveProtocolCCSmartStartIncludedNodeInformation_1;
8
35
  import { CommandClasses, MAX_NODES, MAX_REPEATERS, ZWaveDataRate, ZWaveError, ZWaveErrorCodes, encodeBitMask, encodeNodeInformationFrame, encodeNodeProtocolInfoAndDeviceClass, parseBitMask, parseNodeInformationFrame, parseNodeProtocolInfoAndDeviceClass, validatePayload, } from "@zwave-js/core";
9
36
  import { Bytes } from "@zwave-js/shared/safe";
10
37
  import { CommandClass } from "../lib/CommandClass.js";
@@ -30,1001 +57,1464 @@ function bitmask2DataRate(mask) {
30
57
  ? ZWaveDataRate["40k"]
31
58
  : ZWaveDataRate["9k6"];
32
59
  }
33
- let ZWaveProtocolCC = class ZWaveProtocolCC extends CommandClass {
34
- };
35
- ZWaveProtocolCC = __decorate([
36
- commandClass(CommandClasses["Z-Wave Protocol"]),
37
- implementedVersion(1)
38
- ], ZWaveProtocolCC);
60
+ let ZWaveProtocolCC = (() => {
61
+ let _classDecorators = [commandClass(CommandClasses["Z-Wave Protocol"]), implementedVersion(1)];
62
+ let _classDescriptor;
63
+ let _classExtraInitializers = [];
64
+ let _classThis;
65
+ let _classSuper = CommandClass;
66
+ var ZWaveProtocolCC = class extends _classSuper {
67
+ static { _classThis = this; }
68
+ static {
69
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
70
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
71
+ ZWaveProtocolCC = _classThis = _classDescriptor.value;
72
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
73
+ __runInitializers(_classThis, _classExtraInitializers);
74
+ }
75
+ };
76
+ return ZWaveProtocolCC = _classThis;
77
+ })();
39
78
  export { ZWaveProtocolCC };
40
- let ZWaveProtocolCCNodeInformationFrame = ZWaveProtocolCCNodeInformationFrame_1 = class ZWaveProtocolCCNodeInformationFrame extends ZWaveProtocolCC {
41
- constructor(options) {
42
- super(options);
43
- this.basicDeviceClass = options.basicDeviceClass;
44
- this.genericDeviceClass = options.genericDeviceClass;
45
- this.specificDeviceClass = options.specificDeviceClass;
46
- this.isListening = options.isListening;
47
- this.isFrequentListening = options.isFrequentListening;
48
- this.isRouting = options.isRouting;
49
- this.supportedDataRates = options.supportedDataRates;
50
- this.protocolVersion = options.protocolVersion;
51
- this.optionalFunctionality = options.optionalFunctionality;
52
- this.nodeType = options.nodeType;
53
- this.supportsSecurity = options.supportsSecurity;
54
- this.supportsBeaming = options.supportsBeaming;
55
- this.supportedCCs = options.supportedCCs;
56
- }
57
- static from(raw, ctx) {
58
- const nif = parseNodeInformationFrame(raw.payload);
59
- return new ZWaveProtocolCCNodeInformationFrame_1({
60
- nodeId: ctx.sourceNodeId,
61
- ...nif,
62
- });
63
- }
64
- basicDeviceClass;
65
- genericDeviceClass;
66
- specificDeviceClass;
67
- isListening;
68
- isFrequentListening;
69
- isRouting;
70
- supportedDataRates;
71
- protocolVersion;
72
- optionalFunctionality;
73
- nodeType;
74
- supportsSecurity;
75
- supportsBeaming;
76
- supportedCCs;
77
- serialize(ctx) {
78
- this.payload = encodeNodeInformationFrame(this);
79
- return super.serialize(ctx);
80
- }
81
- };
82
- ZWaveProtocolCCNodeInformationFrame = ZWaveProtocolCCNodeInformationFrame_1 = __decorate([
83
- CCCommand(ZWaveProtocolCommand.NodeInformationFrame)
84
- ], ZWaveProtocolCCNodeInformationFrame);
79
+ let ZWaveProtocolCCNodeInformationFrame = (() => {
80
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.NodeInformationFrame)];
81
+ let _classDescriptor;
82
+ let _classExtraInitializers = [];
83
+ let _classThis;
84
+ let _classSuper = ZWaveProtocolCC;
85
+ var ZWaveProtocolCCNodeInformationFrame = class extends _classSuper {
86
+ static { _classThis = this; }
87
+ static {
88
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
89
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
90
+ ZWaveProtocolCCNodeInformationFrame = _classThis = _classDescriptor.value;
91
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
92
+ __runInitializers(_classThis, _classExtraInitializers);
93
+ }
94
+ constructor(options) {
95
+ super(options);
96
+ this.basicDeviceClass = options.basicDeviceClass;
97
+ this.genericDeviceClass = options.genericDeviceClass;
98
+ this.specificDeviceClass = options.specificDeviceClass;
99
+ this.isListening = options.isListening;
100
+ this.isFrequentListening = options.isFrequentListening;
101
+ this.isRouting = options.isRouting;
102
+ this.supportedDataRates = options.supportedDataRates;
103
+ this.protocolVersion = options.protocolVersion;
104
+ this.optionalFunctionality = options.optionalFunctionality;
105
+ this.nodeType = options.nodeType;
106
+ this.supportsSecurity = options.supportsSecurity;
107
+ this.supportsBeaming = options.supportsBeaming;
108
+ this.supportedCCs = options.supportedCCs;
109
+ }
110
+ static from(raw, ctx) {
111
+ const nif = parseNodeInformationFrame(raw.payload);
112
+ return new this({
113
+ nodeId: ctx.sourceNodeId,
114
+ ...nif,
115
+ });
116
+ }
117
+ basicDeviceClass;
118
+ genericDeviceClass;
119
+ specificDeviceClass;
120
+ isListening;
121
+ isFrequentListening;
122
+ isRouting;
123
+ supportedDataRates;
124
+ protocolVersion;
125
+ optionalFunctionality;
126
+ nodeType;
127
+ supportsSecurity;
128
+ supportsBeaming;
129
+ supportedCCs;
130
+ serialize(ctx) {
131
+ this.payload = encodeNodeInformationFrame(this);
132
+ return super.serialize(ctx);
133
+ }
134
+ };
135
+ return ZWaveProtocolCCNodeInformationFrame = _classThis;
136
+ })();
85
137
  export { ZWaveProtocolCCNodeInformationFrame };
86
- let ZWaveProtocolCCRequestNodeInformationFrame = class ZWaveProtocolCCRequestNodeInformationFrame extends ZWaveProtocolCC {
87
- };
88
- ZWaveProtocolCCRequestNodeInformationFrame = __decorate([
89
- CCCommand(ZWaveProtocolCommand.RequestNodeInformationFrame),
90
- expectedCCResponse(ZWaveProtocolCCNodeInformationFrame)
91
- ], ZWaveProtocolCCRequestNodeInformationFrame);
138
+ let ZWaveProtocolCCRequestNodeInformationFrame = (() => {
139
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.RequestNodeInformationFrame), expectedCCResponse(ZWaveProtocolCCNodeInformationFrame)];
140
+ let _classDescriptor;
141
+ let _classExtraInitializers = [];
142
+ let _classThis;
143
+ let _classSuper = ZWaveProtocolCC;
144
+ var ZWaveProtocolCCRequestNodeInformationFrame = class extends _classSuper {
145
+ static { _classThis = this; }
146
+ static {
147
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
148
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
149
+ ZWaveProtocolCCRequestNodeInformationFrame = _classThis = _classDescriptor.value;
150
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
151
+ __runInitializers(_classThis, _classExtraInitializers);
152
+ }
153
+ };
154
+ return ZWaveProtocolCCRequestNodeInformationFrame = _classThis;
155
+ })();
92
156
  export { ZWaveProtocolCCRequestNodeInformationFrame };
93
- let ZWaveProtocolCCAssignIDs = ZWaveProtocolCCAssignIDs_1 = class ZWaveProtocolCCAssignIDs extends ZWaveProtocolCC {
94
- constructor(options) {
95
- super(options);
96
- this.assignedNodeId = options.assignedNodeId;
97
- this.homeId = options.homeId;
98
- }
99
- static from(raw, ctx) {
100
- validatePayload(raw.payload.length >= 5);
101
- const assignedNodeId = raw.payload[0];
102
- const homeId = raw.payload.readUInt32BE(1);
103
- return new ZWaveProtocolCCAssignIDs_1({
104
- nodeId: ctx.sourceNodeId,
105
- assignedNodeId,
106
- homeId,
107
- });
108
- }
109
- assignedNodeId;
110
- homeId;
111
- serialize(ctx) {
112
- this.payload = new Bytes(5);
113
- this.payload[0] = this.assignedNodeId;
114
- this.payload.writeUInt32BE(this.homeId, 1);
115
- return super.serialize(ctx);
116
- }
117
- };
118
- ZWaveProtocolCCAssignIDs = ZWaveProtocolCCAssignIDs_1 = __decorate([
119
- CCCommand(ZWaveProtocolCommand.AssignIDs)
120
- ], ZWaveProtocolCCAssignIDs);
157
+ let ZWaveProtocolCCAssignIDs = (() => {
158
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.AssignIDs)];
159
+ let _classDescriptor;
160
+ let _classExtraInitializers = [];
161
+ let _classThis;
162
+ let _classSuper = ZWaveProtocolCC;
163
+ var ZWaveProtocolCCAssignIDs = class extends _classSuper {
164
+ static { _classThis = this; }
165
+ static {
166
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
167
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
168
+ ZWaveProtocolCCAssignIDs = _classThis = _classDescriptor.value;
169
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
170
+ __runInitializers(_classThis, _classExtraInitializers);
171
+ }
172
+ constructor(options) {
173
+ super(options);
174
+ this.assignedNodeId = options.assignedNodeId;
175
+ this.homeId = options.homeId;
176
+ }
177
+ static from(raw, ctx) {
178
+ validatePayload(raw.payload.length >= 5);
179
+ const assignedNodeId = raw.payload[0];
180
+ const homeId = raw.payload.readUInt32BE(1);
181
+ return new this({
182
+ nodeId: ctx.sourceNodeId,
183
+ assignedNodeId,
184
+ homeId,
185
+ });
186
+ }
187
+ assignedNodeId;
188
+ homeId;
189
+ serialize(ctx) {
190
+ this.payload = new Bytes(5);
191
+ this.payload[0] = this.assignedNodeId;
192
+ this.payload.writeUInt32BE(this.homeId, 1);
193
+ return super.serialize(ctx);
194
+ }
195
+ };
196
+ return ZWaveProtocolCCAssignIDs = _classThis;
197
+ })();
121
198
  export { ZWaveProtocolCCAssignIDs };
122
- let ZWaveProtocolCCFindNodesInRange = ZWaveProtocolCCFindNodesInRange_1 = class ZWaveProtocolCCFindNodesInRange extends ZWaveProtocolCC {
123
- constructor(options) {
124
- super(options);
125
- this.candidateNodeIds = options.candidateNodeIds;
126
- this.wakeUpTime = options.wakeUpTime;
127
- this.dataRate = options.dataRate ?? ZWaveDataRate["9k6"];
128
- }
129
- static from(raw, ctx) {
130
- validatePayload(raw.payload.length >= 1);
131
- const speedPresent = raw.payload[0] & 0b1000_0000;
132
- const bitmaskLength = raw.payload[0] & 0b0001_1111;
133
- validatePayload(raw.payload.length >= 1 + bitmaskLength);
134
- const candidateNodeIds = parseBitMask(raw.payload.subarray(1, 1 + bitmaskLength));
135
- const rest = raw.payload.subarray(1 + bitmaskLength);
136
- let dataRate;
137
- let wakeUpTime;
138
- if (speedPresent) {
139
- validatePayload(rest.length >= 1);
140
- if (rest.length === 1) {
141
- dataRate = rest[0] & 0b111;
142
- wakeUpTime = WakeUpTime.None;
199
+ let ZWaveProtocolCCFindNodesInRange = (() => {
200
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.FindNodesInRange)];
201
+ let _classDescriptor;
202
+ let _classExtraInitializers = [];
203
+ let _classThis;
204
+ let _classSuper = ZWaveProtocolCC;
205
+ var ZWaveProtocolCCFindNodesInRange = class extends _classSuper {
206
+ static { _classThis = this; }
207
+ static {
208
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
209
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
210
+ ZWaveProtocolCCFindNodesInRange = _classThis = _classDescriptor.value;
211
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
212
+ __runInitializers(_classThis, _classExtraInitializers);
213
+ }
214
+ constructor(options) {
215
+ super(options);
216
+ this.candidateNodeIds = options.candidateNodeIds;
217
+ this.wakeUpTime = options.wakeUpTime;
218
+ this.dataRate = options.dataRate ?? ZWaveDataRate["9k6"];
219
+ }
220
+ static from(raw, ctx) {
221
+ validatePayload(raw.payload.length >= 1);
222
+ const speedPresent = raw.payload[0] & 0b1000_0000;
223
+ const bitmaskLength = raw.payload[0] & 0b0001_1111;
224
+ validatePayload(raw.payload.length >= 1 + bitmaskLength);
225
+ const candidateNodeIds = parseBitMask(raw.payload.subarray(1, 1 + bitmaskLength));
226
+ const rest = raw.payload.subarray(1 + bitmaskLength);
227
+ let dataRate;
228
+ let wakeUpTime;
229
+ if (speedPresent) {
230
+ validatePayload(rest.length >= 1);
231
+ if (rest.length === 1) {
232
+ dataRate = rest[0] & 0b111;
233
+ wakeUpTime = WakeUpTime.None;
234
+ }
235
+ else if (rest.length === 2) {
236
+ wakeUpTime = parseWakeUpTime(rest[0]);
237
+ dataRate = rest[1] & 0b111;
238
+ }
239
+ else {
240
+ validatePayload.fail("Invalid payload length");
241
+ }
143
242
  }
144
- else if (rest.length === 2) {
243
+ else if (rest.length >= 1) {
145
244
  wakeUpTime = parseWakeUpTime(rest[0]);
146
- dataRate = rest[1] & 0b111;
245
+ dataRate = ZWaveDataRate["9k6"];
147
246
  }
148
247
  else {
149
- validatePayload.fail("Invalid payload length");
248
+ wakeUpTime = WakeUpTime.None;
249
+ dataRate = ZWaveDataRate["9k6"];
150
250
  }
251
+ return new this({
252
+ nodeId: ctx.sourceNodeId,
253
+ candidateNodeIds,
254
+ dataRate,
255
+ wakeUpTime,
256
+ });
151
257
  }
152
- else if (rest.length >= 1) {
153
- wakeUpTime = parseWakeUpTime(rest[0]);
154
- dataRate = ZWaveDataRate["9k6"];
155
- }
156
- else {
157
- wakeUpTime = WakeUpTime.None;
158
- dataRate = ZWaveDataRate["9k6"];
258
+ candidateNodeIds;
259
+ wakeUpTime;
260
+ dataRate;
261
+ serialize(ctx) {
262
+ const nodesBitmask = encodeBitMask(this.candidateNodeIds, MAX_NODES);
263
+ const speedAndLength = 0b1000_0000 | nodesBitmask.length;
264
+ this.payload = Bytes.concat([
265
+ Bytes.from([speedAndLength]),
266
+ nodesBitmask,
267
+ Bytes.from([this.wakeUpTime, this.dataRate]),
268
+ ]);
269
+ return super.serialize(ctx);
159
270
  }
160
- return new ZWaveProtocolCCFindNodesInRange_1({
161
- nodeId: ctx.sourceNodeId,
162
- candidateNodeIds,
163
- dataRate,
164
- wakeUpTime,
165
- });
166
- }
167
- candidateNodeIds;
168
- wakeUpTime;
169
- dataRate;
170
- serialize(ctx) {
171
- const nodesBitmask = encodeBitMask(this.candidateNodeIds, MAX_NODES);
172
- const speedAndLength = 0b1000_0000 | nodesBitmask.length;
173
- this.payload = Bytes.concat([
174
- Bytes.from([speedAndLength]),
175
- nodesBitmask,
176
- Bytes.from([this.wakeUpTime, this.dataRate]),
177
- ]);
178
- return super.serialize(ctx);
179
- }
180
- };
181
- ZWaveProtocolCCFindNodesInRange = ZWaveProtocolCCFindNodesInRange_1 = __decorate([
182
- CCCommand(ZWaveProtocolCommand.FindNodesInRange)
183
- ], ZWaveProtocolCCFindNodesInRange);
271
+ };
272
+ return ZWaveProtocolCCFindNodesInRange = _classThis;
273
+ })();
184
274
  export { ZWaveProtocolCCFindNodesInRange };
185
- let ZWaveProtocolCCRangeInfo = ZWaveProtocolCCRangeInfo_1 = class ZWaveProtocolCCRangeInfo extends ZWaveProtocolCC {
186
- constructor(options) {
187
- super(options);
188
- this.neighborNodeIds = options.neighborNodeIds;
189
- this.wakeUpTime = options.wakeUpTime;
190
- }
191
- static from(raw, ctx) {
192
- validatePayload(raw.payload.length >= 1);
193
- const bitmaskLength = raw.payload[0] & 0b0001_1111;
194
- validatePayload(raw.payload.length >= 1 + bitmaskLength);
195
- const neighborNodeIds = parseBitMask(raw.payload.subarray(1, 1 + bitmaskLength));
196
- let wakeUpTime;
197
- if (raw.payload.length >= 2 + bitmaskLength) {
198
- wakeUpTime = parseWakeUpTime(raw.payload[1 + bitmaskLength]);
199
- }
200
- return new ZWaveProtocolCCRangeInfo_1({
201
- nodeId: ctx.sourceNodeId,
202
- neighborNodeIds,
203
- wakeUpTime,
204
- });
205
- }
206
- neighborNodeIds;
207
- wakeUpTime;
208
- serialize(ctx) {
209
- const nodesBitmask = encodeBitMask(this.neighborNodeIds, MAX_NODES);
210
- this.payload = Bytes.concat([
211
- Bytes.from([nodesBitmask.length]),
212
- nodesBitmask,
213
- this.wakeUpTime != undefined
214
- ? Bytes.from([this.wakeUpTime])
215
- : new Bytes(),
216
- ]);
217
- return super.serialize(ctx);
218
- }
219
- };
220
- ZWaveProtocolCCRangeInfo = ZWaveProtocolCCRangeInfo_1 = __decorate([
221
- CCCommand(ZWaveProtocolCommand.RangeInfo)
222
- ], ZWaveProtocolCCRangeInfo);
275
+ let ZWaveProtocolCCRangeInfo = (() => {
276
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.RangeInfo)];
277
+ let _classDescriptor;
278
+ let _classExtraInitializers = [];
279
+ let _classThis;
280
+ let _classSuper = ZWaveProtocolCC;
281
+ var ZWaveProtocolCCRangeInfo = class extends _classSuper {
282
+ static { _classThis = this; }
283
+ static {
284
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
285
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
286
+ ZWaveProtocolCCRangeInfo = _classThis = _classDescriptor.value;
287
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
288
+ __runInitializers(_classThis, _classExtraInitializers);
289
+ }
290
+ constructor(options) {
291
+ super(options);
292
+ this.neighborNodeIds = options.neighborNodeIds;
293
+ this.wakeUpTime = options.wakeUpTime;
294
+ }
295
+ static from(raw, ctx) {
296
+ validatePayload(raw.payload.length >= 1);
297
+ const bitmaskLength = raw.payload[0] & 0b0001_1111;
298
+ validatePayload(raw.payload.length >= 1 + bitmaskLength);
299
+ const neighborNodeIds = parseBitMask(raw.payload.subarray(1, 1 + bitmaskLength));
300
+ let wakeUpTime;
301
+ if (raw.payload.length >= 2 + bitmaskLength) {
302
+ wakeUpTime = parseWakeUpTime(raw.payload[1 + bitmaskLength]);
303
+ }
304
+ return new this({
305
+ nodeId: ctx.sourceNodeId,
306
+ neighborNodeIds,
307
+ wakeUpTime,
308
+ });
309
+ }
310
+ neighborNodeIds;
311
+ wakeUpTime;
312
+ serialize(ctx) {
313
+ const nodesBitmask = encodeBitMask(this.neighborNodeIds, MAX_NODES);
314
+ this.payload = Bytes.concat([
315
+ Bytes.from([nodesBitmask.length]),
316
+ nodesBitmask,
317
+ this.wakeUpTime != undefined
318
+ ? Bytes.from([this.wakeUpTime])
319
+ : new Bytes(),
320
+ ]);
321
+ return super.serialize(ctx);
322
+ }
323
+ };
324
+ return ZWaveProtocolCCRangeInfo = _classThis;
325
+ })();
223
326
  export { ZWaveProtocolCCRangeInfo };
224
- let ZWaveProtocolCCGetNodesInRange = class ZWaveProtocolCCGetNodesInRange extends ZWaveProtocolCC {
225
- };
226
- ZWaveProtocolCCGetNodesInRange = __decorate([
227
- CCCommand(ZWaveProtocolCommand.GetNodesInRange),
228
- expectedCCResponse(ZWaveProtocolCCRangeInfo)
229
- ], ZWaveProtocolCCGetNodesInRange);
327
+ let ZWaveProtocolCCGetNodesInRange = (() => {
328
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.GetNodesInRange), expectedCCResponse(ZWaveProtocolCCRangeInfo)];
329
+ let _classDescriptor;
330
+ let _classExtraInitializers = [];
331
+ let _classThis;
332
+ let _classSuper = ZWaveProtocolCC;
333
+ var ZWaveProtocolCCGetNodesInRange = class extends _classSuper {
334
+ static { _classThis = this; }
335
+ static {
336
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
337
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
338
+ ZWaveProtocolCCGetNodesInRange = _classThis = _classDescriptor.value;
339
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
340
+ __runInitializers(_classThis, _classExtraInitializers);
341
+ }
342
+ };
343
+ return ZWaveProtocolCCGetNodesInRange = _classThis;
344
+ })();
230
345
  export { ZWaveProtocolCCGetNodesInRange };
231
- let ZWaveProtocolCCCommandComplete = ZWaveProtocolCCCommandComplete_1 = class ZWaveProtocolCCCommandComplete extends ZWaveProtocolCC {
232
- constructor(options) {
233
- super(options);
234
- this.sequenceNumber = options.sequenceNumber;
235
- }
236
- static from(raw, ctx) {
237
- validatePayload(raw.payload.length >= 1);
238
- const sequenceNumber = raw.payload[0];
239
- return new ZWaveProtocolCCCommandComplete_1({
240
- nodeId: ctx.sourceNodeId,
241
- sequenceNumber,
242
- });
243
- }
244
- sequenceNumber;
245
- serialize(ctx) {
246
- this.payload = Bytes.from([this.sequenceNumber]);
247
- return super.serialize(ctx);
248
- }
249
- };
250
- ZWaveProtocolCCCommandComplete = ZWaveProtocolCCCommandComplete_1 = __decorate([
251
- CCCommand(ZWaveProtocolCommand.CommandComplete)
252
- ], ZWaveProtocolCCCommandComplete);
346
+ let ZWaveProtocolCCCommandComplete = (() => {
347
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.CommandComplete)];
348
+ let _classDescriptor;
349
+ let _classExtraInitializers = [];
350
+ let _classThis;
351
+ let _classSuper = ZWaveProtocolCC;
352
+ var ZWaveProtocolCCCommandComplete = class extends _classSuper {
353
+ static { _classThis = this; }
354
+ static {
355
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
356
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
357
+ ZWaveProtocolCCCommandComplete = _classThis = _classDescriptor.value;
358
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
359
+ __runInitializers(_classThis, _classExtraInitializers);
360
+ }
361
+ constructor(options) {
362
+ super(options);
363
+ this.sequenceNumber = options.sequenceNumber;
364
+ }
365
+ static from(raw, ctx) {
366
+ validatePayload(raw.payload.length >= 1);
367
+ const sequenceNumber = raw.payload[0];
368
+ return new this({
369
+ nodeId: ctx.sourceNodeId,
370
+ sequenceNumber,
371
+ });
372
+ }
373
+ sequenceNumber;
374
+ serialize(ctx) {
375
+ this.payload = Bytes.from([this.sequenceNumber]);
376
+ return super.serialize(ctx);
377
+ }
378
+ };
379
+ return ZWaveProtocolCCCommandComplete = _classThis;
380
+ })();
253
381
  export { ZWaveProtocolCCCommandComplete };
254
- let ZWaveProtocolCCTransferPresentation = ZWaveProtocolCCTransferPresentation_1 = class ZWaveProtocolCCTransferPresentation extends ZWaveProtocolCC {
255
- constructor(options) {
256
- super(options);
257
- if (options.includeNode && options.excludeNode) {
258
- throw new ZWaveError(`${this.constructor.name}: the includeNode and excludeNode options cannot both be true`, ZWaveErrorCodes.Argument_Invalid);
259
- }
260
- this.supportsNWI = options.supportsNWI;
261
- this.includeNode = options.includeNode;
262
- this.excludeNode = options.excludeNode;
263
- }
264
- static from(raw, ctx) {
265
- validatePayload(raw.payload.length >= 1);
266
- const option = raw.payload[0];
267
- const supportsNWI = !!(option & 0b0001);
268
- const excludeNode = !!(option & 0b0010);
269
- const includeNode = !!(option & 0b0100);
270
- return new ZWaveProtocolCCTransferPresentation_1({
271
- nodeId: ctx.sourceNodeId,
272
- supportsNWI,
273
- excludeNode,
274
- includeNode,
275
- });
276
- }
277
- supportsNWI;
278
- includeNode;
279
- excludeNode;
280
- serialize(ctx) {
281
- this.payload = Bytes.from([
282
- (this.supportsNWI ? 0b0001 : 0)
283
- | (this.excludeNode ? 0b0010 : 0)
284
- | (this.includeNode ? 0b0100 : 0),
285
- ]);
286
- return super.serialize(ctx);
287
- }
288
- };
289
- ZWaveProtocolCCTransferPresentation = ZWaveProtocolCCTransferPresentation_1 = __decorate([
290
- CCCommand(ZWaveProtocolCommand.TransferPresentation)
291
- ], ZWaveProtocolCCTransferPresentation);
382
+ let ZWaveProtocolCCTransferPresentation = (() => {
383
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.TransferPresentation)];
384
+ let _classDescriptor;
385
+ let _classExtraInitializers = [];
386
+ let _classThis;
387
+ let _classSuper = ZWaveProtocolCC;
388
+ var ZWaveProtocolCCTransferPresentation = class extends _classSuper {
389
+ static { _classThis = this; }
390
+ static {
391
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
392
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
393
+ ZWaveProtocolCCTransferPresentation = _classThis = _classDescriptor.value;
394
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
395
+ __runInitializers(_classThis, _classExtraInitializers);
396
+ }
397
+ constructor(options) {
398
+ super(options);
399
+ if (options.includeNode && options.excludeNode) {
400
+ throw new ZWaveError(`${this.constructor.name}: the includeNode and excludeNode options cannot both be true`, ZWaveErrorCodes.Argument_Invalid);
401
+ }
402
+ this.supportsNWI = options.supportsNWI;
403
+ this.includeNode = options.includeNode;
404
+ this.excludeNode = options.excludeNode;
405
+ }
406
+ static from(raw, ctx) {
407
+ validatePayload(raw.payload.length >= 1);
408
+ const option = raw.payload[0];
409
+ const supportsNWI = !!(option & 0b0001);
410
+ const excludeNode = !!(option & 0b0010);
411
+ const includeNode = !!(option & 0b0100);
412
+ return new this({
413
+ nodeId: ctx.sourceNodeId,
414
+ supportsNWI,
415
+ excludeNode,
416
+ includeNode,
417
+ });
418
+ }
419
+ supportsNWI;
420
+ includeNode;
421
+ excludeNode;
422
+ serialize(ctx) {
423
+ this.payload = Bytes.from([
424
+ (this.supportsNWI ? 0b0001 : 0)
425
+ | (this.excludeNode ? 0b0010 : 0)
426
+ | (this.includeNode ? 0b0100 : 0),
427
+ ]);
428
+ return super.serialize(ctx);
429
+ }
430
+ };
431
+ return ZWaveProtocolCCTransferPresentation = _classThis;
432
+ })();
292
433
  export { ZWaveProtocolCCTransferPresentation };
293
- let ZWaveProtocolCCTransferNodeInformation = ZWaveProtocolCCTransferNodeInformation_1 = class ZWaveProtocolCCTransferNodeInformation extends ZWaveProtocolCC {
294
- constructor(options) {
295
- super(options);
296
- this.sequenceNumber = options.sequenceNumber;
297
- this.sourceNodeId = options.sourceNodeId;
298
- this.basicDeviceClass = options.basicDeviceClass;
299
- this.genericDeviceClass = options.genericDeviceClass;
300
- this.specificDeviceClass = options.specificDeviceClass;
301
- this.isListening = options.isListening;
302
- this.isFrequentListening = options.isFrequentListening;
303
- this.isRouting = options.isRouting;
304
- this.supportedDataRates = options.supportedDataRates;
305
- this.protocolVersion = options.protocolVersion;
306
- this.optionalFunctionality = options.optionalFunctionality;
307
- this.nodeType = options.nodeType;
308
- this.supportsSecurity = options.supportsSecurity;
309
- this.supportsBeaming = options.supportsBeaming;
310
- }
311
- static from(raw, ctx) {
312
- validatePayload(raw.payload.length >= 2);
313
- const sequenceNumber = raw.payload[0];
314
- const sourceNodeId = raw.payload[1];
315
- const { info } = parseNodeProtocolInfoAndDeviceClass(raw.payload.subarray(2));
316
- return new ZWaveProtocolCCTransferNodeInformation_1({
317
- nodeId: ctx.sourceNodeId,
318
- sequenceNumber,
319
- sourceNodeId,
320
- ...info,
321
- });
322
- }
323
- sequenceNumber;
324
- sourceNodeId;
325
- basicDeviceClass;
326
- genericDeviceClass;
327
- specificDeviceClass;
328
- isListening;
329
- isFrequentListening;
330
- isRouting;
331
- supportedDataRates;
332
- protocolVersion;
333
- optionalFunctionality;
334
- nodeType;
335
- supportsSecurity;
336
- supportsBeaming;
337
- serialize(ctx) {
338
- this.payload = Bytes.concat([
339
- Bytes.from([this.sequenceNumber, this.sourceNodeId]),
340
- encodeNodeProtocolInfoAndDeviceClass(this),
341
- ]);
342
- return super.serialize(ctx);
343
- }
344
- };
345
- ZWaveProtocolCCTransferNodeInformation = ZWaveProtocolCCTransferNodeInformation_1 = __decorate([
346
- CCCommand(ZWaveProtocolCommand.TransferNodeInformation)
347
- ], ZWaveProtocolCCTransferNodeInformation);
434
+ let ZWaveProtocolCCTransferNodeInformation = (() => {
435
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.TransferNodeInformation)];
436
+ let _classDescriptor;
437
+ let _classExtraInitializers = [];
438
+ let _classThis;
439
+ let _classSuper = ZWaveProtocolCC;
440
+ var ZWaveProtocolCCTransferNodeInformation = class extends _classSuper {
441
+ static { _classThis = this; }
442
+ static {
443
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
444
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
445
+ ZWaveProtocolCCTransferNodeInformation = _classThis = _classDescriptor.value;
446
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
447
+ __runInitializers(_classThis, _classExtraInitializers);
448
+ }
449
+ constructor(options) {
450
+ super(options);
451
+ this.sequenceNumber = options.sequenceNumber;
452
+ this.sourceNodeId = options.sourceNodeId;
453
+ this.basicDeviceClass = options.basicDeviceClass;
454
+ this.genericDeviceClass = options.genericDeviceClass;
455
+ this.specificDeviceClass = options.specificDeviceClass;
456
+ this.isListening = options.isListening;
457
+ this.isFrequentListening = options.isFrequentListening;
458
+ this.isRouting = options.isRouting;
459
+ this.supportedDataRates = options.supportedDataRates;
460
+ this.protocolVersion = options.protocolVersion;
461
+ this.optionalFunctionality = options.optionalFunctionality;
462
+ this.nodeType = options.nodeType;
463
+ this.supportsSecurity = options.supportsSecurity;
464
+ this.supportsBeaming = options.supportsBeaming;
465
+ }
466
+ static from(raw, ctx) {
467
+ validatePayload(raw.payload.length >= 2);
468
+ const sequenceNumber = raw.payload[0];
469
+ const sourceNodeId = raw.payload[1];
470
+ const { info } = parseNodeProtocolInfoAndDeviceClass(raw.payload.subarray(2));
471
+ return new this({
472
+ nodeId: ctx.sourceNodeId,
473
+ sequenceNumber,
474
+ sourceNodeId,
475
+ ...info,
476
+ });
477
+ }
478
+ sequenceNumber;
479
+ sourceNodeId;
480
+ basicDeviceClass;
481
+ genericDeviceClass;
482
+ specificDeviceClass;
483
+ isListening;
484
+ isFrequentListening;
485
+ isRouting;
486
+ supportedDataRates;
487
+ protocolVersion;
488
+ optionalFunctionality;
489
+ nodeType;
490
+ supportsSecurity;
491
+ supportsBeaming;
492
+ serialize(ctx) {
493
+ this.payload = Bytes.concat([
494
+ Bytes.from([this.sequenceNumber, this.sourceNodeId]),
495
+ encodeNodeProtocolInfoAndDeviceClass(this),
496
+ ]);
497
+ return super.serialize(ctx);
498
+ }
499
+ };
500
+ return ZWaveProtocolCCTransferNodeInformation = _classThis;
501
+ })();
348
502
  export { ZWaveProtocolCCTransferNodeInformation };
349
- let ZWaveProtocolCCTransferRangeInformation = ZWaveProtocolCCTransferRangeInformation_1 = class ZWaveProtocolCCTransferRangeInformation extends ZWaveProtocolCC {
350
- constructor(options) {
351
- super(options);
352
- this.sequenceNumber = options.sequenceNumber;
353
- this.testedNodeId = options.testedNodeId;
354
- this.neighborNodeIds = options.neighborNodeIds;
355
- }
356
- static from(raw, ctx) {
357
- validatePayload(raw.payload.length >= 3);
358
- const sequenceNumber = raw.payload[0];
359
- const testedNodeId = raw.payload[1];
360
- const bitmaskLength = raw.payload[2];
361
- validatePayload(raw.payload.length >= 3 + bitmaskLength);
362
- const neighborNodeIds = parseBitMask(raw.payload.subarray(3, 3 + bitmaskLength));
363
- return new ZWaveProtocolCCTransferRangeInformation_1({
364
- nodeId: ctx.sourceNodeId,
365
- sequenceNumber,
366
- testedNodeId,
367
- neighborNodeIds,
368
- });
369
- }
370
- sequenceNumber;
371
- testedNodeId;
372
- neighborNodeIds;
373
- serialize(ctx) {
374
- const nodesBitmask = encodeBitMask(this.neighborNodeIds, MAX_NODES);
375
- this.payload = Bytes.concat([
376
- Bytes.from([
377
- this.sequenceNumber,
378
- this.testedNodeId,
379
- nodesBitmask.length,
380
- ]),
381
- nodesBitmask,
382
- ]);
383
- return super.serialize(ctx);
384
- }
385
- };
386
- ZWaveProtocolCCTransferRangeInformation = ZWaveProtocolCCTransferRangeInformation_1 = __decorate([
387
- CCCommand(ZWaveProtocolCommand.TransferRangeInformation)
388
- ], ZWaveProtocolCCTransferRangeInformation);
503
+ let ZWaveProtocolCCTransferRangeInformation = (() => {
504
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.TransferRangeInformation)];
505
+ let _classDescriptor;
506
+ let _classExtraInitializers = [];
507
+ let _classThis;
508
+ let _classSuper = ZWaveProtocolCC;
509
+ var ZWaveProtocolCCTransferRangeInformation = class extends _classSuper {
510
+ static { _classThis = this; }
511
+ static {
512
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
513
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
514
+ ZWaveProtocolCCTransferRangeInformation = _classThis = _classDescriptor.value;
515
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
516
+ __runInitializers(_classThis, _classExtraInitializers);
517
+ }
518
+ constructor(options) {
519
+ super(options);
520
+ this.sequenceNumber = options.sequenceNumber;
521
+ this.testedNodeId = options.testedNodeId;
522
+ this.neighborNodeIds = options.neighborNodeIds;
523
+ }
524
+ static from(raw, ctx) {
525
+ validatePayload(raw.payload.length >= 3);
526
+ const sequenceNumber = raw.payload[0];
527
+ const testedNodeId = raw.payload[1];
528
+ const bitmaskLength = raw.payload[2];
529
+ validatePayload(raw.payload.length >= 3 + bitmaskLength);
530
+ const neighborNodeIds = parseBitMask(raw.payload.subarray(3, 3 + bitmaskLength));
531
+ return new this({
532
+ nodeId: ctx.sourceNodeId,
533
+ sequenceNumber,
534
+ testedNodeId,
535
+ neighborNodeIds,
536
+ });
537
+ }
538
+ sequenceNumber;
539
+ testedNodeId;
540
+ neighborNodeIds;
541
+ serialize(ctx) {
542
+ const nodesBitmask = encodeBitMask(this.neighborNodeIds, MAX_NODES);
543
+ this.payload = Bytes.concat([
544
+ Bytes.from([
545
+ this.sequenceNumber,
546
+ this.testedNodeId,
547
+ nodesBitmask.length,
548
+ ]),
549
+ nodesBitmask,
550
+ ]);
551
+ return super.serialize(ctx);
552
+ }
553
+ };
554
+ return ZWaveProtocolCCTransferRangeInformation = _classThis;
555
+ })();
389
556
  export { ZWaveProtocolCCTransferRangeInformation };
390
- let ZWaveProtocolCCTransferEnd = ZWaveProtocolCCTransferEnd_1 = class ZWaveProtocolCCTransferEnd extends ZWaveProtocolCC {
391
- constructor(options) {
392
- super(options);
393
- this.status = options.status;
394
- }
395
- static from(raw, ctx) {
396
- validatePayload(raw.payload.length >= 1);
397
- const status = raw.payload[0];
398
- return new ZWaveProtocolCCTransferEnd_1({
399
- nodeId: ctx.sourceNodeId,
400
- status,
401
- });
402
- }
403
- status;
404
- serialize(ctx) {
405
- this.payload = Bytes.from([this.status]);
406
- return super.serialize(ctx);
407
- }
408
- };
409
- ZWaveProtocolCCTransferEnd = ZWaveProtocolCCTransferEnd_1 = __decorate([
410
- CCCommand(ZWaveProtocolCommand.TransferEnd)
411
- ], ZWaveProtocolCCTransferEnd);
557
+ let ZWaveProtocolCCTransferEnd = (() => {
558
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.TransferEnd)];
559
+ let _classDescriptor;
560
+ let _classExtraInitializers = [];
561
+ let _classThis;
562
+ let _classSuper = ZWaveProtocolCC;
563
+ var ZWaveProtocolCCTransferEnd = class extends _classSuper {
564
+ static { _classThis = this; }
565
+ static {
566
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
567
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
568
+ ZWaveProtocolCCTransferEnd = _classThis = _classDescriptor.value;
569
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
570
+ __runInitializers(_classThis, _classExtraInitializers);
571
+ }
572
+ constructor(options) {
573
+ super(options);
574
+ this.status = options.status;
575
+ }
576
+ static from(raw, ctx) {
577
+ validatePayload(raw.payload.length >= 1);
578
+ const status = raw.payload[0];
579
+ return new this({
580
+ nodeId: ctx.sourceNodeId,
581
+ status,
582
+ });
583
+ }
584
+ status;
585
+ serialize(ctx) {
586
+ this.payload = Bytes.from([this.status]);
587
+ return super.serialize(ctx);
588
+ }
589
+ };
590
+ return ZWaveProtocolCCTransferEnd = _classThis;
591
+ })();
412
592
  export { ZWaveProtocolCCTransferEnd };
413
- let ZWaveProtocolCCAssignReturnRoute = ZWaveProtocolCCAssignReturnRoute_1 = class ZWaveProtocolCCAssignReturnRoute extends ZWaveProtocolCC {
414
- constructor(options) {
415
- super(options);
416
- if (options.repeaters.length > MAX_REPEATERS) {
417
- throw new ZWaveError(`${this.constructor.name}: too many repeaters`, ZWaveErrorCodes.Argument_Invalid);
418
- }
419
- this.destinationNodeId = options.destinationNodeId;
420
- this.routeIndex = options.routeIndex;
421
- this.repeaters = options.repeaters;
422
- this.destinationWakeUp = options.destinationWakeUp;
423
- this.destinationSpeed = options.destinationSpeed;
424
- }
425
- static from(raw, ctx) {
426
- validatePayload(raw.payload.length >= 7);
427
- const destinationNodeId = raw.payload[0];
428
- const routeIndex = raw.payload[1] >>> 4;
429
- const numRepeaters = raw.payload[1] & 0b1111;
430
- const repeaters = [...raw.payload.subarray(2, 2 + numRepeaters)];
431
- const speedAndWakeup = raw.payload[2 + numRepeaters];
432
- const destinationSpeed = bitmask2DataRate((speedAndWakeup >>> 3) & 0b111);
433
- const destinationWakeUp = (speedAndWakeup >>> 1) & 0b11;
434
- return new ZWaveProtocolCCAssignReturnRoute_1({
435
- nodeId: ctx.sourceNodeId,
436
- destinationNodeId,
437
- routeIndex,
438
- repeaters,
439
- destinationSpeed,
440
- destinationWakeUp,
441
- });
442
- }
443
- destinationNodeId;
444
- routeIndex;
445
- repeaters;
446
- destinationWakeUp;
447
- destinationSpeed;
448
- serialize(ctx) {
449
- const routeByte = (this.routeIndex << 4) | this.repeaters.length;
450
- const speedMask = dataRate2Bitmask(this.destinationSpeed);
451
- const speedByte = (speedMask << 3) | (this.destinationWakeUp << 1);
452
- this.payload = Bytes.from([
453
- this.destinationNodeId,
454
- routeByte,
455
- ...this.repeaters,
456
- speedByte,
457
- ]);
458
- return super.serialize(ctx);
459
- }
460
- };
461
- ZWaveProtocolCCAssignReturnRoute = ZWaveProtocolCCAssignReturnRoute_1 = __decorate([
462
- CCCommand(ZWaveProtocolCommand.AssignReturnRoute)
463
- ], ZWaveProtocolCCAssignReturnRoute);
593
+ let ZWaveProtocolCCAssignReturnRoute = (() => {
594
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.AssignReturnRoute)];
595
+ let _classDescriptor;
596
+ let _classExtraInitializers = [];
597
+ let _classThis;
598
+ let _classSuper = ZWaveProtocolCC;
599
+ var ZWaveProtocolCCAssignReturnRoute = class extends _classSuper {
600
+ static { _classThis = this; }
601
+ static {
602
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
603
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
604
+ ZWaveProtocolCCAssignReturnRoute = _classThis = _classDescriptor.value;
605
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
606
+ __runInitializers(_classThis, _classExtraInitializers);
607
+ }
608
+ constructor(options) {
609
+ super(options);
610
+ if (options.repeaters.length > MAX_REPEATERS) {
611
+ throw new ZWaveError(`${this.constructor.name}: too many repeaters`, ZWaveErrorCodes.Argument_Invalid);
612
+ }
613
+ this.destinationNodeId = options.destinationNodeId;
614
+ this.routeIndex = options.routeIndex;
615
+ this.repeaters = options.repeaters;
616
+ this.destinationWakeUp = options.destinationWakeUp;
617
+ this.destinationSpeed = options.destinationSpeed;
618
+ }
619
+ static from(raw, ctx) {
620
+ validatePayload(raw.payload.length >= 7);
621
+ const destinationNodeId = raw.payload[0];
622
+ const routeIndex = raw.payload[1] >>> 4;
623
+ const numRepeaters = raw.payload[1] & 0b1111;
624
+ const repeaters = [...raw.payload.subarray(2, 2 + numRepeaters)];
625
+ const speedAndWakeup = raw.payload[2 + numRepeaters];
626
+ const destinationSpeed = bitmask2DataRate((speedAndWakeup >>> 3) & 0b111);
627
+ const destinationWakeUp = (speedAndWakeup >>> 1) & 0b11;
628
+ return new this({
629
+ nodeId: ctx.sourceNodeId,
630
+ destinationNodeId,
631
+ routeIndex,
632
+ repeaters,
633
+ destinationSpeed,
634
+ destinationWakeUp,
635
+ });
636
+ }
637
+ destinationNodeId;
638
+ routeIndex;
639
+ repeaters;
640
+ destinationWakeUp;
641
+ destinationSpeed;
642
+ serialize(ctx) {
643
+ const routeByte = (this.routeIndex << 4) | this.repeaters.length;
644
+ const speedMask = dataRate2Bitmask(this.destinationSpeed);
645
+ const speedByte = (speedMask << 3) | (this.destinationWakeUp << 1);
646
+ this.payload = Bytes.from([
647
+ this.destinationNodeId,
648
+ routeByte,
649
+ ...this.repeaters,
650
+ speedByte,
651
+ ]);
652
+ return super.serialize(ctx);
653
+ }
654
+ };
655
+ return ZWaveProtocolCCAssignReturnRoute = _classThis;
656
+ })();
464
657
  export { ZWaveProtocolCCAssignReturnRoute };
465
- let ZWaveProtocolCCNewNodeRegistered = ZWaveProtocolCCNewNodeRegistered_1 = class ZWaveProtocolCCNewNodeRegistered extends ZWaveProtocolCC {
466
- constructor(options) {
467
- super(options);
468
- this.newNodeId = options.newNodeId;
469
- this.basicDeviceClass = options.basicDeviceClass;
470
- this.genericDeviceClass = options.genericDeviceClass;
471
- this.specificDeviceClass = options.specificDeviceClass;
472
- this.isListening = options.isListening;
473
- this.isFrequentListening = options.isFrequentListening;
474
- this.isRouting = options.isRouting;
475
- this.supportedDataRates = options.supportedDataRates;
476
- this.protocolVersion = options.protocolVersion;
477
- this.optionalFunctionality = options.optionalFunctionality;
478
- this.nodeType = options.nodeType;
479
- this.supportsSecurity = options.supportsSecurity;
480
- this.supportsBeaming = options.supportsBeaming;
481
- this.supportedCCs = options.supportedCCs;
482
- }
483
- static from(raw, ctx) {
484
- validatePayload(raw.payload.length >= 1);
485
- const newNodeId = raw.payload[0];
486
- const nif = parseNodeInformationFrame(raw.payload.subarray(1));
487
- return new ZWaveProtocolCCNewNodeRegistered_1({
488
- nodeId: ctx.sourceNodeId,
489
- newNodeId,
490
- ...nif,
491
- });
492
- }
493
- newNodeId;
494
- basicDeviceClass;
495
- genericDeviceClass;
496
- specificDeviceClass;
497
- isListening;
498
- isFrequentListening;
499
- isRouting;
500
- supportedDataRates;
501
- protocolVersion;
502
- optionalFunctionality;
503
- nodeType;
504
- supportsSecurity;
505
- supportsBeaming;
506
- supportedCCs;
507
- serialize(ctx) {
508
- this.payload = Bytes.concat([
509
- Bytes.from([this.newNodeId]),
510
- encodeNodeInformationFrame(this),
511
- ]);
512
- return super.serialize(ctx);
513
- }
514
- };
515
- ZWaveProtocolCCNewNodeRegistered = ZWaveProtocolCCNewNodeRegistered_1 = __decorate([
516
- CCCommand(ZWaveProtocolCommand.NewNodeRegistered)
517
- ], ZWaveProtocolCCNewNodeRegistered);
658
+ let ZWaveProtocolCCNewNodeRegistered = (() => {
659
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.NewNodeRegistered)];
660
+ let _classDescriptor;
661
+ let _classExtraInitializers = [];
662
+ let _classThis;
663
+ let _classSuper = ZWaveProtocolCC;
664
+ var ZWaveProtocolCCNewNodeRegistered = class extends _classSuper {
665
+ static { _classThis = this; }
666
+ static {
667
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
668
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
669
+ ZWaveProtocolCCNewNodeRegistered = _classThis = _classDescriptor.value;
670
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
671
+ __runInitializers(_classThis, _classExtraInitializers);
672
+ }
673
+ constructor(options) {
674
+ super(options);
675
+ this.newNodeId = options.newNodeId;
676
+ this.basicDeviceClass = options.basicDeviceClass;
677
+ this.genericDeviceClass = options.genericDeviceClass;
678
+ this.specificDeviceClass = options.specificDeviceClass;
679
+ this.isListening = options.isListening;
680
+ this.isFrequentListening = options.isFrequentListening;
681
+ this.isRouting = options.isRouting;
682
+ this.supportedDataRates = options.supportedDataRates;
683
+ this.protocolVersion = options.protocolVersion;
684
+ this.optionalFunctionality = options.optionalFunctionality;
685
+ this.nodeType = options.nodeType;
686
+ this.supportsSecurity = options.supportsSecurity;
687
+ this.supportsBeaming = options.supportsBeaming;
688
+ this.supportedCCs = options.supportedCCs;
689
+ }
690
+ static from(raw, ctx) {
691
+ validatePayload(raw.payload.length >= 1);
692
+ const newNodeId = raw.payload[0];
693
+ const nif = parseNodeInformationFrame(raw.payload.subarray(1));
694
+ return new this({
695
+ nodeId: ctx.sourceNodeId,
696
+ newNodeId,
697
+ ...nif,
698
+ });
699
+ }
700
+ newNodeId;
701
+ basicDeviceClass;
702
+ genericDeviceClass;
703
+ specificDeviceClass;
704
+ isListening;
705
+ isFrequentListening;
706
+ isRouting;
707
+ supportedDataRates;
708
+ protocolVersion;
709
+ optionalFunctionality;
710
+ nodeType;
711
+ supportsSecurity;
712
+ supportsBeaming;
713
+ supportedCCs;
714
+ serialize(ctx) {
715
+ this.payload = Bytes.concat([
716
+ Bytes.from([this.newNodeId]),
717
+ encodeNodeInformationFrame(this),
718
+ ]);
719
+ return super.serialize(ctx);
720
+ }
721
+ };
722
+ return ZWaveProtocolCCNewNodeRegistered = _classThis;
723
+ })();
518
724
  export { ZWaveProtocolCCNewNodeRegistered };
519
- let ZWaveProtocolCCNewRangeRegistered = ZWaveProtocolCCNewRangeRegistered_1 = class ZWaveProtocolCCNewRangeRegistered extends ZWaveProtocolCC {
520
- constructor(options) {
521
- super(options);
522
- this.testedNodeId = options.testedNodeId;
523
- this.neighborNodeIds = options.neighborNodeIds;
524
- }
525
- static from(raw, ctx) {
526
- validatePayload(raw.payload.length >= 2);
527
- const testedNodeId = raw.payload[0];
528
- const numNeighbors = raw.payload[1];
529
- const neighborNodeIds = [
530
- ...raw.payload.subarray(2, 2 + numNeighbors),
531
- ];
532
- return new ZWaveProtocolCCNewRangeRegistered_1({
533
- nodeId: ctx.sourceNodeId,
534
- testedNodeId,
535
- neighborNodeIds,
536
- });
537
- }
538
- testedNodeId;
539
- neighborNodeIds;
540
- serialize(ctx) {
541
- const nodesBitmask = encodeBitMask(this.neighborNodeIds, MAX_NODES);
542
- this.payload = Bytes.concat([
543
- Bytes.from([this.testedNodeId, nodesBitmask.length]),
544
- nodesBitmask,
545
- ]);
546
- return super.serialize(ctx);
547
- }
548
- };
549
- ZWaveProtocolCCNewRangeRegistered = ZWaveProtocolCCNewRangeRegistered_1 = __decorate([
550
- CCCommand(ZWaveProtocolCommand.NewRangeRegistered)
551
- ], ZWaveProtocolCCNewRangeRegistered);
725
+ let ZWaveProtocolCCNewRangeRegistered = (() => {
726
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.NewRangeRegistered)];
727
+ let _classDescriptor;
728
+ let _classExtraInitializers = [];
729
+ let _classThis;
730
+ let _classSuper = ZWaveProtocolCC;
731
+ var ZWaveProtocolCCNewRangeRegistered = class extends _classSuper {
732
+ static { _classThis = this; }
733
+ static {
734
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
735
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
736
+ ZWaveProtocolCCNewRangeRegistered = _classThis = _classDescriptor.value;
737
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
738
+ __runInitializers(_classThis, _classExtraInitializers);
739
+ }
740
+ constructor(options) {
741
+ super(options);
742
+ this.testedNodeId = options.testedNodeId;
743
+ this.neighborNodeIds = options.neighborNodeIds;
744
+ }
745
+ static from(raw, ctx) {
746
+ validatePayload(raw.payload.length >= 2);
747
+ const testedNodeId = raw.payload[0];
748
+ const numNeighbors = raw.payload[1];
749
+ const neighborNodeIds = [
750
+ ...raw.payload.subarray(2, 2 + numNeighbors),
751
+ ];
752
+ return new this({
753
+ nodeId: ctx.sourceNodeId,
754
+ testedNodeId,
755
+ neighborNodeIds,
756
+ });
757
+ }
758
+ testedNodeId;
759
+ neighborNodeIds;
760
+ serialize(ctx) {
761
+ const nodesBitmask = encodeBitMask(this.neighborNodeIds, MAX_NODES);
762
+ this.payload = Bytes.concat([
763
+ Bytes.from([this.testedNodeId, nodesBitmask.length]),
764
+ nodesBitmask,
765
+ ]);
766
+ return super.serialize(ctx);
767
+ }
768
+ };
769
+ return ZWaveProtocolCCNewRangeRegistered = _classThis;
770
+ })();
552
771
  export { ZWaveProtocolCCNewRangeRegistered };
553
- let ZWaveProtocolCCTransferNewPrimaryControllerComplete = ZWaveProtocolCCTransferNewPrimaryControllerComplete_1 = class ZWaveProtocolCCTransferNewPrimaryControllerComplete extends ZWaveProtocolCC {
554
- constructor(options) {
555
- super(options);
556
- this.genericDeviceClass = options.genericDeviceClass;
557
- }
558
- static from(raw, ctx) {
559
- validatePayload(raw.payload.length >= 1);
560
- const genericDeviceClass = raw.payload[0];
561
- return new ZWaveProtocolCCTransferNewPrimaryControllerComplete_1({
562
- nodeId: ctx.sourceNodeId,
563
- genericDeviceClass,
564
- });
565
- }
566
- genericDeviceClass;
567
- serialize(ctx) {
568
- this.payload = Bytes.from([this.genericDeviceClass]);
569
- return super.serialize(ctx);
570
- }
571
- };
572
- ZWaveProtocolCCTransferNewPrimaryControllerComplete = ZWaveProtocolCCTransferNewPrimaryControllerComplete_1 = __decorate([
573
- CCCommand(ZWaveProtocolCommand.TransferNewPrimaryControllerComplete)
574
- ], ZWaveProtocolCCTransferNewPrimaryControllerComplete);
772
+ let ZWaveProtocolCCTransferNewPrimaryControllerComplete = (() => {
773
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.TransferNewPrimaryControllerComplete)];
774
+ let _classDescriptor;
775
+ let _classExtraInitializers = [];
776
+ let _classThis;
777
+ let _classSuper = ZWaveProtocolCC;
778
+ var ZWaveProtocolCCTransferNewPrimaryControllerComplete = class extends _classSuper {
779
+ static { _classThis = this; }
780
+ static {
781
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
782
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
783
+ ZWaveProtocolCCTransferNewPrimaryControllerComplete = _classThis = _classDescriptor.value;
784
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
785
+ __runInitializers(_classThis, _classExtraInitializers);
786
+ }
787
+ constructor(options) {
788
+ super(options);
789
+ this.genericDeviceClass = options.genericDeviceClass;
790
+ }
791
+ static from(raw, ctx) {
792
+ validatePayload(raw.payload.length >= 1);
793
+ const genericDeviceClass = raw.payload[0];
794
+ return new this({
795
+ nodeId: ctx.sourceNodeId,
796
+ genericDeviceClass,
797
+ });
798
+ }
799
+ genericDeviceClass;
800
+ serialize(ctx) {
801
+ this.payload = Bytes.from([this.genericDeviceClass]);
802
+ return super.serialize(ctx);
803
+ }
804
+ };
805
+ return ZWaveProtocolCCTransferNewPrimaryControllerComplete = _classThis;
806
+ })();
575
807
  export { ZWaveProtocolCCTransferNewPrimaryControllerComplete };
576
- let ZWaveProtocolCCAutomaticControllerUpdateStart = class ZWaveProtocolCCAutomaticControllerUpdateStart extends ZWaveProtocolCC {
577
- };
578
- ZWaveProtocolCCAutomaticControllerUpdateStart = __decorate([
579
- CCCommand(ZWaveProtocolCommand.AutomaticControllerUpdateStart)
580
- ], ZWaveProtocolCCAutomaticControllerUpdateStart);
808
+ let ZWaveProtocolCCAutomaticControllerUpdateStart = (() => {
809
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.AutomaticControllerUpdateStart)];
810
+ let _classDescriptor;
811
+ let _classExtraInitializers = [];
812
+ let _classThis;
813
+ let _classSuper = ZWaveProtocolCC;
814
+ var ZWaveProtocolCCAutomaticControllerUpdateStart = class extends _classSuper {
815
+ static { _classThis = this; }
816
+ static {
817
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
818
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
819
+ ZWaveProtocolCCAutomaticControllerUpdateStart = _classThis = _classDescriptor.value;
820
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
821
+ __runInitializers(_classThis, _classExtraInitializers);
822
+ }
823
+ };
824
+ return ZWaveProtocolCCAutomaticControllerUpdateStart = _classThis;
825
+ })();
581
826
  export { ZWaveProtocolCCAutomaticControllerUpdateStart };
582
- let ZWaveProtocolCCSUCNodeID = ZWaveProtocolCCSUCNodeID_1 = class ZWaveProtocolCCSUCNodeID extends ZWaveProtocolCC {
583
- constructor(options) {
584
- super(options);
585
- this.sucNodeId = options.sucNodeId;
586
- this.isSIS = options.isSIS;
587
- }
588
- static from(raw, ctx) {
589
- validatePayload(raw.payload.length >= 1);
590
- const sucNodeId = raw.payload[0];
591
- const capabilities = raw.payload[1] ?? 0;
592
- const isSIS = !!(capabilities & 0b1);
593
- return new ZWaveProtocolCCSUCNodeID_1({
594
- nodeId: ctx.sourceNodeId,
595
- sucNodeId,
596
- isSIS,
597
- });
598
- }
599
- sucNodeId;
600
- isSIS;
601
- serialize(ctx) {
602
- this.payload = Bytes.from([this.sucNodeId, this.isSIS ? 0b1 : 0]);
603
- return super.serialize(ctx);
604
- }
605
- };
606
- ZWaveProtocolCCSUCNodeID = ZWaveProtocolCCSUCNodeID_1 = __decorate([
607
- CCCommand(ZWaveProtocolCommand.SUCNodeID)
608
- ], ZWaveProtocolCCSUCNodeID);
827
+ let ZWaveProtocolCCSUCNodeID = (() => {
828
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.SUCNodeID)];
829
+ let _classDescriptor;
830
+ let _classExtraInitializers = [];
831
+ let _classThis;
832
+ let _classSuper = ZWaveProtocolCC;
833
+ var ZWaveProtocolCCSUCNodeID = class extends _classSuper {
834
+ static { _classThis = this; }
835
+ static {
836
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
837
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
838
+ ZWaveProtocolCCSUCNodeID = _classThis = _classDescriptor.value;
839
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
840
+ __runInitializers(_classThis, _classExtraInitializers);
841
+ }
842
+ constructor(options) {
843
+ super(options);
844
+ this.sucNodeId = options.sucNodeId;
845
+ this.isSIS = options.isSIS;
846
+ }
847
+ static from(raw, ctx) {
848
+ validatePayload(raw.payload.length >= 1);
849
+ const sucNodeId = raw.payload[0];
850
+ const capabilities = raw.payload[1] ?? 0;
851
+ const isSIS = !!(capabilities & 0b1);
852
+ return new this({
853
+ nodeId: ctx.sourceNodeId,
854
+ sucNodeId,
855
+ isSIS,
856
+ });
857
+ }
858
+ sucNodeId;
859
+ isSIS;
860
+ serialize(ctx) {
861
+ this.payload = Bytes.from([this.sucNodeId, this.isSIS ? 0b1 : 0]);
862
+ return super.serialize(ctx);
863
+ }
864
+ };
865
+ return ZWaveProtocolCCSUCNodeID = _classThis;
866
+ })();
609
867
  export { ZWaveProtocolCCSUCNodeID };
610
- let ZWaveProtocolCCSetSUC = ZWaveProtocolCCSetSUC_1 = class ZWaveProtocolCCSetSUC extends ZWaveProtocolCC {
611
- constructor(options) {
612
- super(options);
613
- this.enableSIS = options.enableSIS;
614
- }
615
- static from(raw, ctx) {
616
- validatePayload(raw.payload.length >= 2);
617
- // Byte 0 must be 0x01 or ignored
618
- const capabilities = raw.payload[1] ?? 0;
619
- const enableSIS = !!(capabilities & 0b1);
620
- return new ZWaveProtocolCCSetSUC_1({
621
- nodeId: ctx.sourceNodeId,
622
- enableSIS,
623
- });
624
- }
625
- enableSIS;
626
- serialize(ctx) {
627
- this.payload = Bytes.from([0x01, this.enableSIS ? 0b1 : 0]);
628
- return super.serialize(ctx);
629
- }
630
- };
631
- ZWaveProtocolCCSetSUC = ZWaveProtocolCCSetSUC_1 = __decorate([
632
- CCCommand(ZWaveProtocolCommand.SetSUC)
633
- ], ZWaveProtocolCCSetSUC);
868
+ let ZWaveProtocolCCSetSUC = (() => {
869
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.SetSUC)];
870
+ let _classDescriptor;
871
+ let _classExtraInitializers = [];
872
+ let _classThis;
873
+ let _classSuper = ZWaveProtocolCC;
874
+ var ZWaveProtocolCCSetSUC = class extends _classSuper {
875
+ static { _classThis = this; }
876
+ static {
877
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
878
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
879
+ ZWaveProtocolCCSetSUC = _classThis = _classDescriptor.value;
880
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
881
+ __runInitializers(_classThis, _classExtraInitializers);
882
+ }
883
+ constructor(options) {
884
+ super(options);
885
+ this.enableSIS = options.enableSIS;
886
+ }
887
+ static from(raw, ctx) {
888
+ validatePayload(raw.payload.length >= 2);
889
+ // Byte 0 must be 0x01 or ignored
890
+ const capabilities = raw.payload[1] ?? 0;
891
+ const enableSIS = !!(capabilities & 0b1);
892
+ return new this({
893
+ nodeId: ctx.sourceNodeId,
894
+ enableSIS,
895
+ });
896
+ }
897
+ enableSIS;
898
+ serialize(ctx) {
899
+ this.payload = Bytes.from([0x01, this.enableSIS ? 0b1 : 0]);
900
+ return super.serialize(ctx);
901
+ }
902
+ };
903
+ return ZWaveProtocolCCSetSUC = _classThis;
904
+ })();
634
905
  export { ZWaveProtocolCCSetSUC };
635
- let ZWaveProtocolCCSetSUCAck = ZWaveProtocolCCSetSUCAck_1 = class ZWaveProtocolCCSetSUCAck extends ZWaveProtocolCC {
636
- constructor(options) {
637
- super(options);
638
- this.accepted = options.accepted;
639
- this.isSIS = options.isSIS;
640
- }
641
- static from(raw, ctx) {
642
- validatePayload(raw.payload.length >= 2);
643
- const accepted = raw.payload[0] === 0x01;
644
- const capabilities = raw.payload[1] ?? 0;
645
- const isSIS = !!(capabilities & 0b1);
646
- return new ZWaveProtocolCCSetSUCAck_1({
647
- nodeId: ctx.sourceNodeId,
648
- accepted,
649
- isSIS,
650
- });
651
- }
652
- accepted;
653
- isSIS;
654
- serialize(ctx) {
655
- this.payload = Bytes.from([
656
- this.accepted ? 0x01 : 0x00,
657
- this.isSIS ? 0b1 : 0,
658
- ]);
659
- return super.serialize(ctx);
660
- }
661
- };
662
- ZWaveProtocolCCSetSUCAck = ZWaveProtocolCCSetSUCAck_1 = __decorate([
663
- CCCommand(ZWaveProtocolCommand.SetSUCAck)
664
- ], ZWaveProtocolCCSetSUCAck);
906
+ let ZWaveProtocolCCSetSUCAck = (() => {
907
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.SetSUCAck)];
908
+ let _classDescriptor;
909
+ let _classExtraInitializers = [];
910
+ let _classThis;
911
+ let _classSuper = ZWaveProtocolCC;
912
+ var ZWaveProtocolCCSetSUCAck = class extends _classSuper {
913
+ static { _classThis = this; }
914
+ static {
915
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
916
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
917
+ ZWaveProtocolCCSetSUCAck = _classThis = _classDescriptor.value;
918
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
919
+ __runInitializers(_classThis, _classExtraInitializers);
920
+ }
921
+ constructor(options) {
922
+ super(options);
923
+ this.accepted = options.accepted;
924
+ this.isSIS = options.isSIS;
925
+ }
926
+ static from(raw, ctx) {
927
+ validatePayload(raw.payload.length >= 2);
928
+ const accepted = raw.payload[0] === 0x01;
929
+ const capabilities = raw.payload[1] ?? 0;
930
+ const isSIS = !!(capabilities & 0b1);
931
+ return new this({
932
+ nodeId: ctx.sourceNodeId,
933
+ accepted,
934
+ isSIS,
935
+ });
936
+ }
937
+ accepted;
938
+ isSIS;
939
+ serialize(ctx) {
940
+ this.payload = Bytes.from([
941
+ this.accepted ? 0x01 : 0x00,
942
+ this.isSIS ? 0b1 : 0,
943
+ ]);
944
+ return super.serialize(ctx);
945
+ }
946
+ };
947
+ return ZWaveProtocolCCSetSUCAck = _classThis;
948
+ })();
665
949
  export { ZWaveProtocolCCSetSUCAck };
666
- let ZWaveProtocolCCAssignSUCReturnRoute = class ZWaveProtocolCCAssignSUCReturnRoute extends ZWaveProtocolCCAssignReturnRoute {
667
- };
668
- ZWaveProtocolCCAssignSUCReturnRoute = __decorate([
669
- CCCommand(ZWaveProtocolCommand.AssignSUCReturnRoute)
670
- ], ZWaveProtocolCCAssignSUCReturnRoute);
950
+ let ZWaveProtocolCCAssignSUCReturnRoute = (() => {
951
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.AssignSUCReturnRoute)];
952
+ let _classDescriptor;
953
+ let _classExtraInitializers = [];
954
+ let _classThis;
955
+ let _classSuper = ZWaveProtocolCCAssignReturnRoute;
956
+ var ZWaveProtocolCCAssignSUCReturnRoute = class extends _classSuper {
957
+ static { _classThis = this; }
958
+ static {
959
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
960
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
961
+ ZWaveProtocolCCAssignSUCReturnRoute = _classThis = _classDescriptor.value;
962
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
963
+ __runInitializers(_classThis, _classExtraInitializers);
964
+ }
965
+ };
966
+ return ZWaveProtocolCCAssignSUCReturnRoute = _classThis;
967
+ })();
671
968
  export { ZWaveProtocolCCAssignSUCReturnRoute };
672
- let ZWaveProtocolCCStaticRouteRequest = ZWaveProtocolCCStaticRouteRequest_1 = class ZWaveProtocolCCStaticRouteRequest extends ZWaveProtocolCC {
673
- constructor(options) {
674
- super(options);
675
- if (options.nodeIds.some((n) => n < 1 || n > MAX_NODES)) {
676
- throw new ZWaveError(`All node IDs must be between 1 and ${MAX_NODES}!`, ZWaveErrorCodes.Argument_Invalid);
969
+ let ZWaveProtocolCCStaticRouteRequest = (() => {
970
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.StaticRouteRequest)];
971
+ let _classDescriptor;
972
+ let _classExtraInitializers = [];
973
+ let _classThis;
974
+ let _classSuper = ZWaveProtocolCC;
975
+ var ZWaveProtocolCCStaticRouteRequest = class extends _classSuper {
976
+ static { _classThis = this; }
977
+ static {
978
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
979
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
980
+ ZWaveProtocolCCStaticRouteRequest = _classThis = _classDescriptor.value;
981
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
982
+ __runInitializers(_classThis, _classExtraInitializers);
677
983
  }
678
- this.nodeIds = options.nodeIds;
679
- }
680
- static from(raw, ctx) {
681
- validatePayload(raw.payload.length >= 5);
682
- const nodeIds = [...raw.payload.subarray(0, 5)].filter((id) => id > 0 && id <= MAX_NODES);
683
- return new ZWaveProtocolCCStaticRouteRequest_1({
684
- nodeId: ctx.sourceNodeId,
685
- nodeIds,
686
- });
687
- }
688
- nodeIds;
689
- serialize(ctx) {
690
- this.payload = Bytes.alloc(5, 0);
691
- for (let i = 0; i < this.nodeIds.length && i < 5; i++) {
692
- this.payload[i] = this.nodeIds[i];
984
+ constructor(options) {
985
+ super(options);
986
+ if (options.nodeIds.some((n) => n < 1 || n > MAX_NODES)) {
987
+ throw new ZWaveError(`All node IDs must be between 1 and ${MAX_NODES}!`, ZWaveErrorCodes.Argument_Invalid);
988
+ }
989
+ this.nodeIds = options.nodeIds;
693
990
  }
694
- return super.serialize(ctx);
695
- }
696
- };
697
- ZWaveProtocolCCStaticRouteRequest = ZWaveProtocolCCStaticRouteRequest_1 = __decorate([
698
- CCCommand(ZWaveProtocolCommand.StaticRouteRequest)
699
- ], ZWaveProtocolCCStaticRouteRequest);
991
+ static from(raw, ctx) {
992
+ validatePayload(raw.payload.length >= 5);
993
+ const nodeIds = [...raw.payload.subarray(0, 5)].filter((id) => id > 0 && id <= MAX_NODES);
994
+ return new this({
995
+ nodeId: ctx.sourceNodeId,
996
+ nodeIds,
997
+ });
998
+ }
999
+ nodeIds;
1000
+ serialize(ctx) {
1001
+ this.payload = Bytes.alloc(5, 0);
1002
+ for (let i = 0; i < this.nodeIds.length && i < 5; i++) {
1003
+ this.payload[i] = this.nodeIds[i];
1004
+ }
1005
+ return super.serialize(ctx);
1006
+ }
1007
+ };
1008
+ return ZWaveProtocolCCStaticRouteRequest = _classThis;
1009
+ })();
700
1010
  export { ZWaveProtocolCCStaticRouteRequest };
701
- let ZWaveProtocolCCLost = ZWaveProtocolCCLost_1 = class ZWaveProtocolCCLost extends ZWaveProtocolCC {
702
- constructor(options) {
703
- super(options);
704
- this.lostNodeId = options.lostNodeId;
705
- }
706
- static from(raw, ctx) {
707
- validatePayload(raw.payload.length >= 1);
708
- const lostNodeId = raw.payload[0];
709
- return new ZWaveProtocolCCLost_1({
710
- nodeId: ctx.sourceNodeId,
711
- lostNodeId,
712
- });
713
- }
714
- lostNodeId;
715
- serialize(ctx) {
716
- this.payload = Bytes.from([this.lostNodeId]);
717
- return super.serialize(ctx);
718
- }
719
- };
720
- ZWaveProtocolCCLost = ZWaveProtocolCCLost_1 = __decorate([
721
- CCCommand(ZWaveProtocolCommand.Lost)
722
- ], ZWaveProtocolCCLost);
1011
+ let ZWaveProtocolCCLost = (() => {
1012
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.Lost)];
1013
+ let _classDescriptor;
1014
+ let _classExtraInitializers = [];
1015
+ let _classThis;
1016
+ let _classSuper = ZWaveProtocolCC;
1017
+ var ZWaveProtocolCCLost = class extends _classSuper {
1018
+ static { _classThis = this; }
1019
+ static {
1020
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1021
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1022
+ ZWaveProtocolCCLost = _classThis = _classDescriptor.value;
1023
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
1024
+ __runInitializers(_classThis, _classExtraInitializers);
1025
+ }
1026
+ constructor(options) {
1027
+ super(options);
1028
+ this.lostNodeId = options.lostNodeId;
1029
+ }
1030
+ static from(raw, ctx) {
1031
+ validatePayload(raw.payload.length >= 1);
1032
+ const lostNodeId = raw.payload[0];
1033
+ return new this({
1034
+ nodeId: ctx.sourceNodeId,
1035
+ lostNodeId,
1036
+ });
1037
+ }
1038
+ lostNodeId;
1039
+ serialize(ctx) {
1040
+ this.payload = Bytes.from([this.lostNodeId]);
1041
+ return super.serialize(ctx);
1042
+ }
1043
+ };
1044
+ return ZWaveProtocolCCLost = _classThis;
1045
+ })();
723
1046
  export { ZWaveProtocolCCLost };
724
- let ZWaveProtocolCCAcceptLost = ZWaveProtocolCCAcceptLost_1 = class ZWaveProtocolCCAcceptLost extends ZWaveProtocolCC {
725
- constructor(options) {
726
- super(options);
727
- this.accepted = options.accepted;
728
- }
729
- static from(raw, ctx) {
730
- validatePayload(raw.payload.length >= 1);
731
- validatePayload(raw.payload[0] === 0x04 || raw.payload[0] === 0x05);
732
- const accepted = raw.payload[0] === 0x05;
733
- return new ZWaveProtocolCCAcceptLost_1({
734
- nodeId: ctx.sourceNodeId,
735
- accepted,
736
- });
737
- }
738
- accepted;
739
- serialize(ctx) {
740
- this.payload = Bytes.from([this.accepted ? 0x05 : 0x04]);
741
- return super.serialize(ctx);
742
- }
743
- };
744
- ZWaveProtocolCCAcceptLost = ZWaveProtocolCCAcceptLost_1 = __decorate([
745
- CCCommand(ZWaveProtocolCommand.AcceptLost)
746
- ], ZWaveProtocolCCAcceptLost);
1047
+ let ZWaveProtocolCCAcceptLost = (() => {
1048
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.AcceptLost)];
1049
+ let _classDescriptor;
1050
+ let _classExtraInitializers = [];
1051
+ let _classThis;
1052
+ let _classSuper = ZWaveProtocolCC;
1053
+ var ZWaveProtocolCCAcceptLost = class extends _classSuper {
1054
+ static { _classThis = this; }
1055
+ static {
1056
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1057
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1058
+ ZWaveProtocolCCAcceptLost = _classThis = _classDescriptor.value;
1059
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
1060
+ __runInitializers(_classThis, _classExtraInitializers);
1061
+ }
1062
+ constructor(options) {
1063
+ super(options);
1064
+ this.accepted = options.accepted;
1065
+ }
1066
+ static from(raw, ctx) {
1067
+ validatePayload(raw.payload.length >= 1);
1068
+ validatePayload(raw.payload[0] === 0x04 || raw.payload[0] === 0x05);
1069
+ const accepted = raw.payload[0] === 0x05;
1070
+ return new this({
1071
+ nodeId: ctx.sourceNodeId,
1072
+ accepted,
1073
+ });
1074
+ }
1075
+ accepted;
1076
+ serialize(ctx) {
1077
+ this.payload = Bytes.from([this.accepted ? 0x05 : 0x04]);
1078
+ return super.serialize(ctx);
1079
+ }
1080
+ };
1081
+ return ZWaveProtocolCCAcceptLost = _classThis;
1082
+ })();
747
1083
  export { ZWaveProtocolCCAcceptLost };
748
- let ZWaveProtocolCCNOPPower = ZWaveProtocolCCNOPPower_1 = class ZWaveProtocolCCNOPPower extends ZWaveProtocolCC {
749
- constructor(options) {
750
- super(options);
751
- if (options.powerDampening < 0 || options.powerDampening > 14) {
752
- throw new ZWaveError(`${this.constructor.name}: power dampening must be between 0 and 14 dBm!`, ZWaveErrorCodes.Argument_Invalid);
1084
+ let ZWaveProtocolCCNOPPower = (() => {
1085
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.NOPPower)];
1086
+ let _classDescriptor;
1087
+ let _classExtraInitializers = [];
1088
+ let _classThis;
1089
+ let _classSuper = ZWaveProtocolCC;
1090
+ var ZWaveProtocolCCNOPPower = class extends _classSuper {
1091
+ static { _classThis = this; }
1092
+ static {
1093
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1094
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1095
+ ZWaveProtocolCCNOPPower = _classThis = _classDescriptor.value;
1096
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
1097
+ __runInitializers(_classThis, _classExtraInitializers);
753
1098
  }
754
- this.powerDampening = options.powerDampening;
755
- }
756
- static from(raw, ctx) {
757
- let powerDampening;
758
- if (raw.payload.length >= 2) {
759
- // Ignore byte 0
760
- powerDampening = raw.payload[1];
761
- }
762
- else if (raw.payload.length === 1) {
763
- powerDampening = [
764
- 0xf0,
765
- 0xc8,
766
- 0xa7,
767
- 0x91,
768
- 0x77,
769
- 0x67,
770
- 0x60,
771
- 0x46,
772
- 0x38,
773
- 0x35,
774
- 0x32,
775
- 0x30,
776
- 0x24,
777
- 0x22,
778
- 0x20,
779
- ].indexOf(raw.payload[0]);
780
- if (powerDampening === -1)
781
- powerDampening = 0;
782
- }
783
- else {
784
- validatePayload.fail("Invalid payload length!");
785
- }
786
- return new ZWaveProtocolCCNOPPower_1({
787
- nodeId: ctx.sourceNodeId,
788
- powerDampening,
789
- });
790
- }
791
- // Power dampening in (negative) dBm. A value of 2 means -2 dBm.
792
- powerDampening;
793
- serialize(ctx) {
794
- this.payload = Bytes.from([0, this.powerDampening]);
795
- return super.serialize(ctx);
796
- }
797
- };
798
- ZWaveProtocolCCNOPPower = ZWaveProtocolCCNOPPower_1 = __decorate([
799
- CCCommand(ZWaveProtocolCommand.NOPPower)
800
- ], ZWaveProtocolCCNOPPower);
1099
+ constructor(options) {
1100
+ super(options);
1101
+ if (options.powerDampening < 0 || options.powerDampening > 14) {
1102
+ throw new ZWaveError(`${this.constructor.name}: power dampening must be between 0 and 14 dBm!`, ZWaveErrorCodes.Argument_Invalid);
1103
+ }
1104
+ this.powerDampening = options.powerDampening;
1105
+ }
1106
+ static from(raw, ctx) {
1107
+ let powerDampening;
1108
+ if (raw.payload.length >= 2) {
1109
+ // Ignore byte 0
1110
+ powerDampening = raw.payload[1];
1111
+ }
1112
+ else if (raw.payload.length === 1) {
1113
+ powerDampening = [
1114
+ 0xf0,
1115
+ 0xc8,
1116
+ 0xa7,
1117
+ 0x91,
1118
+ 0x77,
1119
+ 0x67,
1120
+ 0x60,
1121
+ 0x46,
1122
+ 0x38,
1123
+ 0x35,
1124
+ 0x32,
1125
+ 0x30,
1126
+ 0x24,
1127
+ 0x22,
1128
+ 0x20,
1129
+ ].indexOf(raw.payload[0]);
1130
+ if (powerDampening === -1)
1131
+ powerDampening = 0;
1132
+ }
1133
+ else {
1134
+ validatePayload.fail("Invalid payload length!");
1135
+ }
1136
+ return new this({
1137
+ nodeId: ctx.sourceNodeId,
1138
+ powerDampening,
1139
+ });
1140
+ }
1141
+ // Power dampening in (negative) dBm. A value of 2 means -2 dBm.
1142
+ powerDampening;
1143
+ serialize(ctx) {
1144
+ this.payload = Bytes.from([0, this.powerDampening]);
1145
+ return super.serialize(ctx);
1146
+ }
1147
+ };
1148
+ return ZWaveProtocolCCNOPPower = _classThis;
1149
+ })();
801
1150
  export { ZWaveProtocolCCNOPPower };
802
- let ZWaveProtocolCCReservedIDs = ZWaveProtocolCCReservedIDs_1 = class ZWaveProtocolCCReservedIDs extends ZWaveProtocolCC {
803
- constructor(options) {
804
- super(options);
805
- this.reservedNodeIDs = options.reservedNodeIDs;
806
- }
807
- static from(raw, ctx) {
808
- validatePayload(raw.payload.length >= 1);
809
- const numNodeIDs = raw.payload[0];
810
- validatePayload(raw.payload.length >= 1 + numNodeIDs);
811
- const reservedNodeIDs = [
812
- ...raw.payload.subarray(1, 1 + numNodeIDs),
813
- ];
814
- return new ZWaveProtocolCCReservedIDs_1({
815
- nodeId: ctx.sourceNodeId,
816
- reservedNodeIDs,
817
- });
818
- }
819
- reservedNodeIDs;
820
- serialize(ctx) {
821
- this.payload = Bytes.from([
822
- this.reservedNodeIDs.length,
823
- ...this.reservedNodeIDs,
824
- ]);
825
- return super.serialize(ctx);
826
- }
827
- };
828
- ZWaveProtocolCCReservedIDs = ZWaveProtocolCCReservedIDs_1 = __decorate([
829
- CCCommand(ZWaveProtocolCommand.ReservedIDs)
830
- ], ZWaveProtocolCCReservedIDs);
1151
+ let ZWaveProtocolCCReservedIDs = (() => {
1152
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.ReservedIDs)];
1153
+ let _classDescriptor;
1154
+ let _classExtraInitializers = [];
1155
+ let _classThis;
1156
+ let _classSuper = ZWaveProtocolCC;
1157
+ var ZWaveProtocolCCReservedIDs = class extends _classSuper {
1158
+ static { _classThis = this; }
1159
+ static {
1160
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1161
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1162
+ ZWaveProtocolCCReservedIDs = _classThis = _classDescriptor.value;
1163
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
1164
+ __runInitializers(_classThis, _classExtraInitializers);
1165
+ }
1166
+ constructor(options) {
1167
+ super(options);
1168
+ this.reservedNodeIDs = options.reservedNodeIDs;
1169
+ }
1170
+ static from(raw, ctx) {
1171
+ validatePayload(raw.payload.length >= 1);
1172
+ const numNodeIDs = raw.payload[0];
1173
+ validatePayload(raw.payload.length >= 1 + numNodeIDs);
1174
+ const reservedNodeIDs = [
1175
+ ...raw.payload.subarray(1, 1 + numNodeIDs),
1176
+ ];
1177
+ return new this({
1178
+ nodeId: ctx.sourceNodeId,
1179
+ reservedNodeIDs,
1180
+ });
1181
+ }
1182
+ reservedNodeIDs;
1183
+ serialize(ctx) {
1184
+ this.payload = Bytes.from([
1185
+ this.reservedNodeIDs.length,
1186
+ ...this.reservedNodeIDs,
1187
+ ]);
1188
+ return super.serialize(ctx);
1189
+ }
1190
+ };
1191
+ return ZWaveProtocolCCReservedIDs = _classThis;
1192
+ })();
831
1193
  export { ZWaveProtocolCCReservedIDs };
832
- let ZWaveProtocolCCReserveNodeIDs = ZWaveProtocolCCReserveNodeIDs_1 = class ZWaveProtocolCCReserveNodeIDs extends ZWaveProtocolCC {
833
- constructor(options) {
834
- super(options);
835
- this.numNodeIDs = options.numNodeIDs;
836
- }
837
- static from(raw, ctx) {
838
- validatePayload(raw.payload.length >= 1);
839
- const numNodeIDs = raw.payload[0];
840
- return new ZWaveProtocolCCReserveNodeIDs_1({
841
- nodeId: ctx.sourceNodeId,
842
- numNodeIDs,
843
- });
844
- }
845
- numNodeIDs;
846
- serialize(ctx) {
847
- this.payload = Bytes.from([this.numNodeIDs]);
848
- return super.serialize(ctx);
849
- }
850
- };
851
- ZWaveProtocolCCReserveNodeIDs = ZWaveProtocolCCReserveNodeIDs_1 = __decorate([
852
- CCCommand(ZWaveProtocolCommand.ReserveNodeIDs),
853
- expectedCCResponse(ZWaveProtocolCCReservedIDs)
854
- ], ZWaveProtocolCCReserveNodeIDs);
1194
+ let ZWaveProtocolCCReserveNodeIDs = (() => {
1195
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.ReserveNodeIDs), expectedCCResponse(ZWaveProtocolCCReservedIDs)];
1196
+ let _classDescriptor;
1197
+ let _classExtraInitializers = [];
1198
+ let _classThis;
1199
+ let _classSuper = ZWaveProtocolCC;
1200
+ var ZWaveProtocolCCReserveNodeIDs = class extends _classSuper {
1201
+ static { _classThis = this; }
1202
+ static {
1203
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1204
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1205
+ ZWaveProtocolCCReserveNodeIDs = _classThis = _classDescriptor.value;
1206
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
1207
+ __runInitializers(_classThis, _classExtraInitializers);
1208
+ }
1209
+ constructor(options) {
1210
+ super(options);
1211
+ this.numNodeIDs = options.numNodeIDs;
1212
+ }
1213
+ static from(raw, ctx) {
1214
+ validatePayload(raw.payload.length >= 1);
1215
+ const numNodeIDs = raw.payload[0];
1216
+ return new this({
1217
+ nodeId: ctx.sourceNodeId,
1218
+ numNodeIDs,
1219
+ });
1220
+ }
1221
+ numNodeIDs;
1222
+ serialize(ctx) {
1223
+ this.payload = Bytes.from([this.numNodeIDs]);
1224
+ return super.serialize(ctx);
1225
+ }
1226
+ };
1227
+ return ZWaveProtocolCCReserveNodeIDs = _classThis;
1228
+ })();
855
1229
  export { ZWaveProtocolCCReserveNodeIDs };
856
- let ZWaveProtocolCCNodesExistReply = ZWaveProtocolCCNodesExistReply_1 = class ZWaveProtocolCCNodesExistReply extends ZWaveProtocolCC {
857
- constructor(options) {
858
- super(options);
859
- this.nodeMaskType = options.nodeMaskType;
860
- this.nodeListUpdated = options.nodeListUpdated;
861
- }
862
- static from(raw, ctx) {
863
- validatePayload(raw.payload.length >= 2);
864
- const nodeMaskType = raw.payload[0];
865
- const nodeListUpdated = raw.payload[1] === 0x01;
866
- return new ZWaveProtocolCCNodesExistReply_1({
867
- nodeId: ctx.sourceNodeId,
868
- nodeMaskType,
869
- nodeListUpdated,
870
- });
871
- }
872
- nodeMaskType;
873
- nodeListUpdated;
874
- serialize(ctx) {
875
- this.payload = Bytes.from([
876
- this.nodeMaskType,
877
- this.nodeListUpdated ? 0x01 : 0x00,
878
- ]);
879
- return super.serialize(ctx);
880
- }
881
- };
882
- ZWaveProtocolCCNodesExistReply = ZWaveProtocolCCNodesExistReply_1 = __decorate([
883
- CCCommand(ZWaveProtocolCommand.NodesExistReply)
884
- ], ZWaveProtocolCCNodesExistReply);
1230
+ let ZWaveProtocolCCNodesExistReply = (() => {
1231
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.NodesExistReply)];
1232
+ let _classDescriptor;
1233
+ let _classExtraInitializers = [];
1234
+ let _classThis;
1235
+ let _classSuper = ZWaveProtocolCC;
1236
+ var ZWaveProtocolCCNodesExistReply = class extends _classSuper {
1237
+ static { _classThis = this; }
1238
+ static {
1239
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1240
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1241
+ ZWaveProtocolCCNodesExistReply = _classThis = _classDescriptor.value;
1242
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
1243
+ __runInitializers(_classThis, _classExtraInitializers);
1244
+ }
1245
+ constructor(options) {
1246
+ super(options);
1247
+ this.nodeMaskType = options.nodeMaskType;
1248
+ this.nodeListUpdated = options.nodeListUpdated;
1249
+ }
1250
+ static from(raw, ctx) {
1251
+ validatePayload(raw.payload.length >= 2);
1252
+ const nodeMaskType = raw.payload[0];
1253
+ const nodeListUpdated = raw.payload[1] === 0x01;
1254
+ return new this({
1255
+ nodeId: ctx.sourceNodeId,
1256
+ nodeMaskType,
1257
+ nodeListUpdated,
1258
+ });
1259
+ }
1260
+ nodeMaskType;
1261
+ nodeListUpdated;
1262
+ serialize(ctx) {
1263
+ this.payload = Bytes.from([
1264
+ this.nodeMaskType,
1265
+ this.nodeListUpdated ? 0x01 : 0x00,
1266
+ ]);
1267
+ return super.serialize(ctx);
1268
+ }
1269
+ };
1270
+ return ZWaveProtocolCCNodesExistReply = _classThis;
1271
+ })();
885
1272
  export { ZWaveProtocolCCNodesExistReply };
886
1273
  function testResponseForZWaveProtocolNodesExist(sent, received) {
887
1274
  return received.nodeMaskType === sent.nodeMaskType;
888
1275
  }
889
- let ZWaveProtocolCCNodesExist = ZWaveProtocolCCNodesExist_1 = class ZWaveProtocolCCNodesExist extends ZWaveProtocolCC {
890
- constructor(options) {
891
- super(options);
892
- this.nodeMaskType = options.nodeMaskType;
893
- this.nodeIDs = options.nodeIDs;
894
- }
895
- static from(raw, ctx) {
896
- validatePayload(raw.payload.length >= 2);
897
- const nodeMaskType = raw.payload[0];
898
- const numNodeIDs = raw.payload[1];
899
- validatePayload(raw.payload.length >= 2 + numNodeIDs);
900
- const nodeIDs = [...raw.payload.subarray(2, 2 + numNodeIDs)];
901
- return new ZWaveProtocolCCNodesExist_1({
902
- nodeId: ctx.sourceNodeId,
903
- nodeMaskType,
904
- nodeIDs,
905
- });
906
- }
907
- nodeMaskType;
908
- nodeIDs;
909
- serialize(ctx) {
910
- this.payload = Bytes.from([
911
- this.nodeMaskType,
912
- this.nodeIDs.length,
913
- ...this.nodeIDs,
914
- ]);
915
- return super.serialize(ctx);
916
- }
917
- };
918
- ZWaveProtocolCCNodesExist = ZWaveProtocolCCNodesExist_1 = __decorate([
919
- CCCommand(ZWaveProtocolCommand.NodesExist),
920
- expectedCCResponse(ZWaveProtocolCCNodesExistReply, testResponseForZWaveProtocolNodesExist)
921
- ], ZWaveProtocolCCNodesExist);
1276
+ let ZWaveProtocolCCNodesExist = (() => {
1277
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.NodesExist), expectedCCResponse(ZWaveProtocolCCNodesExistReply, testResponseForZWaveProtocolNodesExist)];
1278
+ let _classDescriptor;
1279
+ let _classExtraInitializers = [];
1280
+ let _classThis;
1281
+ let _classSuper = ZWaveProtocolCC;
1282
+ var ZWaveProtocolCCNodesExist = class extends _classSuper {
1283
+ static { _classThis = this; }
1284
+ static {
1285
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1286
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1287
+ ZWaveProtocolCCNodesExist = _classThis = _classDescriptor.value;
1288
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
1289
+ __runInitializers(_classThis, _classExtraInitializers);
1290
+ }
1291
+ constructor(options) {
1292
+ super(options);
1293
+ this.nodeMaskType = options.nodeMaskType;
1294
+ this.nodeIDs = options.nodeIDs;
1295
+ }
1296
+ static from(raw, ctx) {
1297
+ validatePayload(raw.payload.length >= 2);
1298
+ const nodeMaskType = raw.payload[0];
1299
+ const numNodeIDs = raw.payload[1];
1300
+ validatePayload(raw.payload.length >= 2 + numNodeIDs);
1301
+ const nodeIDs = [...raw.payload.subarray(2, 2 + numNodeIDs)];
1302
+ return new this({
1303
+ nodeId: ctx.sourceNodeId,
1304
+ nodeMaskType,
1305
+ nodeIDs,
1306
+ });
1307
+ }
1308
+ nodeMaskType;
1309
+ nodeIDs;
1310
+ serialize(ctx) {
1311
+ this.payload = Bytes.from([
1312
+ this.nodeMaskType,
1313
+ this.nodeIDs.length,
1314
+ ...this.nodeIDs,
1315
+ ]);
1316
+ return super.serialize(ctx);
1317
+ }
1318
+ };
1319
+ return ZWaveProtocolCCNodesExist = _classThis;
1320
+ })();
922
1321
  export { ZWaveProtocolCCNodesExist };
923
- let ZWaveProtocolCCSetNWIMode = ZWaveProtocolCCSetNWIMode_1 = class ZWaveProtocolCCSetNWIMode extends ZWaveProtocolCC {
924
- constructor(options) {
925
- super(options);
926
- this.enabled = options.enabled;
927
- this.timeoutMinutes = options.timeoutMinutes;
928
- }
929
- static from(raw, ctx) {
930
- validatePayload(raw.payload.length >= 2);
931
- const enabled = raw.payload[0] === 0x01;
932
- const timeoutMinutes = raw.payload[1] || undefined;
933
- return new ZWaveProtocolCCSetNWIMode_1({
934
- nodeId: ctx.sourceNodeId,
935
- enabled,
936
- timeoutMinutes,
937
- });
938
- }
939
- enabled;
940
- timeoutMinutes;
941
- serialize(ctx) {
942
- this.payload = Bytes.from([
943
- this.enabled ? 0x01 : 0x00,
944
- this.timeoutMinutes ?? 0x00,
945
- ]);
946
- return super.serialize(ctx);
947
- }
948
- };
949
- ZWaveProtocolCCSetNWIMode = ZWaveProtocolCCSetNWIMode_1 = __decorate([
950
- CCCommand(ZWaveProtocolCommand.SetNWIMode)
951
- ], ZWaveProtocolCCSetNWIMode);
1322
+ let ZWaveProtocolCCSetNWIMode = (() => {
1323
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.SetNWIMode)];
1324
+ let _classDescriptor;
1325
+ let _classExtraInitializers = [];
1326
+ let _classThis;
1327
+ let _classSuper = ZWaveProtocolCC;
1328
+ var ZWaveProtocolCCSetNWIMode = class extends _classSuper {
1329
+ static { _classThis = this; }
1330
+ static {
1331
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1332
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1333
+ ZWaveProtocolCCSetNWIMode = _classThis = _classDescriptor.value;
1334
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
1335
+ __runInitializers(_classThis, _classExtraInitializers);
1336
+ }
1337
+ constructor(options) {
1338
+ super(options);
1339
+ this.enabled = options.enabled;
1340
+ this.timeoutMinutes = options.timeoutMinutes;
1341
+ }
1342
+ static from(raw, ctx) {
1343
+ validatePayload(raw.payload.length >= 2);
1344
+ const enabled = raw.payload[0] === 0x01;
1345
+ const timeoutMinutes = raw.payload[1] || undefined;
1346
+ return new this({
1347
+ nodeId: ctx.sourceNodeId,
1348
+ enabled,
1349
+ timeoutMinutes,
1350
+ });
1351
+ }
1352
+ enabled;
1353
+ timeoutMinutes;
1354
+ serialize(ctx) {
1355
+ this.payload = Bytes.from([
1356
+ this.enabled ? 0x01 : 0x00,
1357
+ this.timeoutMinutes ?? 0x00,
1358
+ ]);
1359
+ return super.serialize(ctx);
1360
+ }
1361
+ };
1362
+ return ZWaveProtocolCCSetNWIMode = _classThis;
1363
+ })();
952
1364
  export { ZWaveProtocolCCSetNWIMode };
953
- let ZWaveProtocolCCExcludeRequest = class ZWaveProtocolCCExcludeRequest extends ZWaveProtocolCCNodeInformationFrame {
954
- };
955
- ZWaveProtocolCCExcludeRequest = __decorate([
956
- CCCommand(ZWaveProtocolCommand.ExcludeRequest)
957
- ], ZWaveProtocolCCExcludeRequest);
1365
+ let ZWaveProtocolCCExcludeRequest = (() => {
1366
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.ExcludeRequest)];
1367
+ let _classDescriptor;
1368
+ let _classExtraInitializers = [];
1369
+ let _classThis;
1370
+ let _classSuper = ZWaveProtocolCCNodeInformationFrame;
1371
+ var ZWaveProtocolCCExcludeRequest = class extends _classSuper {
1372
+ static { _classThis = this; }
1373
+ static {
1374
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1375
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1376
+ ZWaveProtocolCCExcludeRequest = _classThis = _classDescriptor.value;
1377
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
1378
+ __runInitializers(_classThis, _classExtraInitializers);
1379
+ }
1380
+ };
1381
+ return ZWaveProtocolCCExcludeRequest = _classThis;
1382
+ })();
958
1383
  export { ZWaveProtocolCCExcludeRequest };
959
- let ZWaveProtocolCCAssignReturnRoutePriority = ZWaveProtocolCCAssignReturnRoutePriority_1 = class ZWaveProtocolCCAssignReturnRoutePriority extends ZWaveProtocolCC {
960
- constructor(options) {
961
- super(options);
962
- this.targetNodeId = options.targetNodeId;
963
- this.routeNumber = options.routeNumber;
964
- }
965
- static from(raw, ctx) {
966
- validatePayload(raw.payload.length >= 2);
967
- const targetNodeId = raw.payload[0];
968
- const routeNumber = raw.payload[1];
969
- return new ZWaveProtocolCCAssignReturnRoutePriority_1({
970
- nodeId: ctx.sourceNodeId,
971
- targetNodeId,
972
- routeNumber,
973
- });
974
- }
975
- targetNodeId;
976
- routeNumber;
977
- serialize(ctx) {
978
- this.payload = Bytes.from([this.targetNodeId, this.routeNumber]);
979
- return super.serialize(ctx);
980
- }
981
- };
982
- ZWaveProtocolCCAssignReturnRoutePriority = ZWaveProtocolCCAssignReturnRoutePriority_1 = __decorate([
983
- CCCommand(ZWaveProtocolCommand.AssignReturnRoutePriority)
984
- ], ZWaveProtocolCCAssignReturnRoutePriority);
1384
+ let ZWaveProtocolCCAssignReturnRoutePriority = (() => {
1385
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.AssignReturnRoutePriority)];
1386
+ let _classDescriptor;
1387
+ let _classExtraInitializers = [];
1388
+ let _classThis;
1389
+ let _classSuper = ZWaveProtocolCC;
1390
+ var ZWaveProtocolCCAssignReturnRoutePriority = class extends _classSuper {
1391
+ static { _classThis = this; }
1392
+ static {
1393
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1394
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1395
+ ZWaveProtocolCCAssignReturnRoutePriority = _classThis = _classDescriptor.value;
1396
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
1397
+ __runInitializers(_classThis, _classExtraInitializers);
1398
+ }
1399
+ constructor(options) {
1400
+ super(options);
1401
+ this.targetNodeId = options.targetNodeId;
1402
+ this.routeNumber = options.routeNumber;
1403
+ }
1404
+ static from(raw, ctx) {
1405
+ validatePayload(raw.payload.length >= 2);
1406
+ const targetNodeId = raw.payload[0];
1407
+ const routeNumber = raw.payload[1];
1408
+ return new this({
1409
+ nodeId: ctx.sourceNodeId,
1410
+ targetNodeId,
1411
+ routeNumber,
1412
+ });
1413
+ }
1414
+ targetNodeId;
1415
+ routeNumber;
1416
+ serialize(ctx) {
1417
+ this.payload = Bytes.from([this.targetNodeId, this.routeNumber]);
1418
+ return super.serialize(ctx);
1419
+ }
1420
+ };
1421
+ return ZWaveProtocolCCAssignReturnRoutePriority = _classThis;
1422
+ })();
985
1423
  export { ZWaveProtocolCCAssignReturnRoutePriority };
986
- let ZWaveProtocolCCAssignSUCReturnRoutePriority = class ZWaveProtocolCCAssignSUCReturnRoutePriority extends ZWaveProtocolCCAssignReturnRoutePriority {
987
- };
988
- ZWaveProtocolCCAssignSUCReturnRoutePriority = __decorate([
989
- CCCommand(ZWaveProtocolCommand.AssignSUCReturnRoutePriority)
990
- ], ZWaveProtocolCCAssignSUCReturnRoutePriority);
1424
+ let ZWaveProtocolCCAssignSUCReturnRoutePriority = (() => {
1425
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.AssignSUCReturnRoutePriority)];
1426
+ let _classDescriptor;
1427
+ let _classExtraInitializers = [];
1428
+ let _classThis;
1429
+ let _classSuper = ZWaveProtocolCCAssignReturnRoutePriority;
1430
+ var ZWaveProtocolCCAssignSUCReturnRoutePriority = class extends _classSuper {
1431
+ static { _classThis = this; }
1432
+ static {
1433
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1434
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1435
+ ZWaveProtocolCCAssignSUCReturnRoutePriority = _classThis = _classDescriptor.value;
1436
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
1437
+ __runInitializers(_classThis, _classExtraInitializers);
1438
+ }
1439
+ };
1440
+ return ZWaveProtocolCCAssignSUCReturnRoutePriority = _classThis;
1441
+ })();
991
1442
  export { ZWaveProtocolCCAssignSUCReturnRoutePriority };
992
- let ZWaveProtocolCCSmartStartIncludedNodeInformation = ZWaveProtocolCCSmartStartIncludedNodeInformation_1 = class ZWaveProtocolCCSmartStartIncludedNodeInformation extends ZWaveProtocolCC {
993
- constructor(options) {
994
- super(options);
995
- if (options.nwiHomeId.length !== 4) {
996
- throw new ZWaveError(`nwiHomeId must have length 4`, ZWaveErrorCodes.Argument_Invalid);
1443
+ let ZWaveProtocolCCSmartStartIncludedNodeInformation = (() => {
1444
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.SmartStartIncludedNodeInformation)];
1445
+ let _classDescriptor;
1446
+ let _classExtraInitializers = [];
1447
+ let _classThis;
1448
+ let _classSuper = ZWaveProtocolCC;
1449
+ var ZWaveProtocolCCSmartStartIncludedNodeInformation = class extends _classSuper {
1450
+ static { _classThis = this; }
1451
+ static {
1452
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1453
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1454
+ ZWaveProtocolCCSmartStartIncludedNodeInformation = _classThis = _classDescriptor.value;
1455
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
1456
+ __runInitializers(_classThis, _classExtraInitializers);
997
1457
  }
998
- this.nwiHomeId = options.nwiHomeId;
999
- }
1000
- static from(raw, ctx) {
1001
- validatePayload(raw.payload.length >= 4);
1002
- const nwiHomeId = raw.payload.subarray(0, 4);
1003
- return new ZWaveProtocolCCSmartStartIncludedNodeInformation_1({
1004
- nodeId: ctx.sourceNodeId,
1005
- nwiHomeId,
1006
- });
1007
- }
1008
- nwiHomeId;
1009
- serialize(ctx) {
1010
- this.payload = Bytes.from(this.nwiHomeId);
1011
- return super.serialize(ctx);
1012
- }
1013
- };
1014
- ZWaveProtocolCCSmartStartIncludedNodeInformation = ZWaveProtocolCCSmartStartIncludedNodeInformation_1 = __decorate([
1015
- CCCommand(ZWaveProtocolCommand.SmartStartIncludedNodeInformation)
1016
- ], ZWaveProtocolCCSmartStartIncludedNodeInformation);
1458
+ constructor(options) {
1459
+ super(options);
1460
+ if (options.nwiHomeId.length !== 4) {
1461
+ throw new ZWaveError(`nwiHomeId must have length 4`, ZWaveErrorCodes.Argument_Invalid);
1462
+ }
1463
+ this.nwiHomeId = options.nwiHomeId;
1464
+ }
1465
+ static from(raw, ctx) {
1466
+ validatePayload(raw.payload.length >= 4);
1467
+ const nwiHomeId = raw.payload.subarray(0, 4);
1468
+ return new this({
1469
+ nodeId: ctx.sourceNodeId,
1470
+ nwiHomeId,
1471
+ });
1472
+ }
1473
+ nwiHomeId;
1474
+ serialize(ctx) {
1475
+ this.payload = Bytes.from(this.nwiHomeId);
1476
+ return super.serialize(ctx);
1477
+ }
1478
+ };
1479
+ return ZWaveProtocolCCSmartStartIncludedNodeInformation = _classThis;
1480
+ })();
1017
1481
  export { ZWaveProtocolCCSmartStartIncludedNodeInformation };
1018
- let ZWaveProtocolCCSmartStartPrime = class ZWaveProtocolCCSmartStartPrime extends ZWaveProtocolCCNodeInformationFrame {
1019
- };
1020
- ZWaveProtocolCCSmartStartPrime = __decorate([
1021
- CCCommand(ZWaveProtocolCommand.SmartStartPrime)
1022
- ], ZWaveProtocolCCSmartStartPrime);
1482
+ let ZWaveProtocolCCSmartStartPrime = (() => {
1483
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.SmartStartPrime)];
1484
+ let _classDescriptor;
1485
+ let _classExtraInitializers = [];
1486
+ let _classThis;
1487
+ let _classSuper = ZWaveProtocolCCNodeInformationFrame;
1488
+ var ZWaveProtocolCCSmartStartPrime = class extends _classSuper {
1489
+ static { _classThis = this; }
1490
+ static {
1491
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1492
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1493
+ ZWaveProtocolCCSmartStartPrime = _classThis = _classDescriptor.value;
1494
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
1495
+ __runInitializers(_classThis, _classExtraInitializers);
1496
+ }
1497
+ };
1498
+ return ZWaveProtocolCCSmartStartPrime = _classThis;
1499
+ })();
1023
1500
  export { ZWaveProtocolCCSmartStartPrime };
1024
- let ZWaveProtocolCCSmartStartInclusionRequest = class ZWaveProtocolCCSmartStartInclusionRequest extends ZWaveProtocolCCNodeInformationFrame {
1025
- };
1026
- ZWaveProtocolCCSmartStartInclusionRequest = __decorate([
1027
- CCCommand(ZWaveProtocolCommand.SmartStartInclusionRequest)
1028
- ], ZWaveProtocolCCSmartStartInclusionRequest);
1501
+ let ZWaveProtocolCCSmartStartInclusionRequest = (() => {
1502
+ let _classDecorators = [CCCommand(ZWaveProtocolCommand.SmartStartInclusionRequest)];
1503
+ let _classDescriptor;
1504
+ let _classExtraInitializers = [];
1505
+ let _classThis;
1506
+ let _classSuper = ZWaveProtocolCCNodeInformationFrame;
1507
+ var ZWaveProtocolCCSmartStartInclusionRequest = class extends _classSuper {
1508
+ static { _classThis = this; }
1509
+ static {
1510
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1511
+ __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1512
+ ZWaveProtocolCCSmartStartInclusionRequest = _classThis = _classDescriptor.value;
1513
+ if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
1514
+ __runInitializers(_classThis, _classExtraInitializers);
1515
+ }
1516
+ };
1517
+ return ZWaveProtocolCCSmartStartInclusionRequest = _classThis;
1518
+ })();
1029
1519
  export { ZWaveProtocolCCSmartStartInclusionRequest };
1030
1520
  //# sourceMappingURL=ZWaveProtocolCC.js.map