@zwave-js/cc 15.21.0 → 15.22.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 (419) hide show
  1. package/build/cjs/cc/AlarmSensorCC.d.ts +2 -2
  2. package/build/cjs/cc/AlarmSensorCC.js +18 -57
  3. package/build/cjs/cc/AlarmSensorCC.js.map +2 -2
  4. package/build/cjs/cc/ApplicationStatusCC.js +9 -48
  5. package/build/cjs/cc/ApplicationStatusCC.js.map +1 -1
  6. package/build/cjs/cc/AssociationCC.d.ts +2 -2
  7. package/build/cjs/cc/AssociationCC.js +32 -71
  8. package/build/cjs/cc/AssociationCC.js.map +2 -2
  9. package/build/cjs/cc/AssociationGroupInfoCC.d.ts +2 -2
  10. package/build/cjs/cc/AssociationGroupInfoCC.js +28 -65
  11. package/build/cjs/cc/AssociationGroupInfoCC.js.map +2 -2
  12. package/build/cjs/cc/BarrierOperatorCC.d.ts +2 -2
  13. package/build/cjs/cc/BarrierOperatorCC.js +28 -67
  14. package/build/cjs/cc/BarrierOperatorCC.js.map +2 -2
  15. package/build/cjs/cc/BasicCC.d.ts +2 -2
  16. package/build/cjs/cc/BasicCC.js +15 -54
  17. package/build/cjs/cc/BasicCC.js.map +2 -2
  18. package/build/cjs/cc/BasicWindowCoveringCC.js +12 -51
  19. package/build/cjs/cc/BasicWindowCoveringCC.js.map +1 -1
  20. package/build/cjs/cc/BatteryCC.d.ts +2 -2
  21. package/build/cjs/cc/BatteryCC.js +15 -54
  22. package/build/cjs/cc/BatteryCC.js.map +2 -2
  23. package/build/cjs/cc/BinarySensorCC.d.ts +2 -2
  24. package/build/cjs/cc/BinarySensorCC.js +19 -58
  25. package/build/cjs/cc/BinarySensorCC.js.map +2 -2
  26. package/build/cjs/cc/BinarySwitchCC.d.ts +2 -2
  27. package/build/cjs/cc/BinarySwitchCC.js +15 -54
  28. package/build/cjs/cc/BinarySwitchCC.js.map +2 -2
  29. package/build/cjs/cc/CRC16CC.js +7 -46
  30. package/build/cjs/cc/CRC16CC.js.map +1 -1
  31. package/build/cjs/cc/CentralSceneCC.js +19 -58
  32. package/build/cjs/cc/CentralSceneCC.js.map +1 -1
  33. package/build/cjs/cc/ClimateControlScheduleCC.js +25 -64
  34. package/build/cjs/cc/ClimateControlScheduleCC.js.map +1 -1
  35. package/build/cjs/cc/ClockCC.d.ts +2 -2
  36. package/build/cjs/cc/ClockCC.js +15 -54
  37. package/build/cjs/cc/ClockCC.js.map +2 -2
  38. package/build/cjs/cc/ColorSwitchCC.d.ts +2 -2
  39. package/build/cjs/cc/ColorSwitchCC.js +26 -65
  40. package/build/cjs/cc/ColorSwitchCC.js.map +2 -2
  41. package/build/cjs/cc/ConfigurationCC.d.ts +2 -2
  42. package/build/cjs/cc/ConfigurationCC.js +43 -82
  43. package/build/cjs/cc/ConfigurationCC.js.map +2 -2
  44. package/build/cjs/cc/DeviceResetLocallyCC.js +7 -46
  45. package/build/cjs/cc/DeviceResetLocallyCC.js.map +1 -1
  46. package/build/cjs/cc/DoorLockCC.d.ts +2 -2
  47. package/build/cjs/cc/DoorLockCC.js +26 -65
  48. package/build/cjs/cc/DoorLockCC.js.map +2 -2
  49. package/build/cjs/cc/DoorLockLoggingCC.d.ts +2 -2
  50. package/build/cjs/cc/DoorLockLoggingCC.js +17 -56
  51. package/build/cjs/cc/DoorLockLoggingCC.js.map +2 -2
  52. package/build/cjs/cc/EnergyProductionCC.d.ts +2 -2
  53. package/build/cjs/cc/EnergyProductionCC.js +13 -52
  54. package/build/cjs/cc/EnergyProductionCC.js.map +2 -2
  55. package/build/cjs/cc/EntryControlCC.d.ts +2 -2
  56. package/build/cjs/cc/EntryControlCC.js +25 -64
  57. package/build/cjs/cc/EntryControlCC.js.map +2 -2
  58. package/build/cjs/cc/FirmwareUpdateMetaDataCC.js +34 -73
  59. package/build/cjs/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
  60. package/build/cjs/cc/HailCC.js +3 -42
  61. package/build/cjs/cc/HailCC.js.map +1 -1
  62. package/build/cjs/cc/HumidityControlModeCC.d.ts +2 -2
  63. package/build/cjs/cc/HumidityControlModeCC.js +19 -58
  64. package/build/cjs/cc/HumidityControlModeCC.js.map +2 -2
  65. package/build/cjs/cc/HumidityControlOperatingStateCC.d.ts +2 -2
  66. package/build/cjs/cc/HumidityControlOperatingStateCC.js +11 -50
  67. package/build/cjs/cc/HumidityControlOperatingStateCC.js.map +2 -2
  68. package/build/cjs/cc/HumidityControlSetpointCC.d.ts +2 -2
  69. package/build/cjs/cc/HumidityControlSetpointCC.js +30 -69
  70. package/build/cjs/cc/HumidityControlSetpointCC.js.map +2 -2
  71. package/build/cjs/cc/InclusionControllerCC.js +9 -48
  72. package/build/cjs/cc/InclusionControllerCC.js.map +1 -1
  73. package/build/cjs/cc/IndicatorCC.d.ts +2 -2
  74. package/build/cjs/cc/IndicatorCC.js +31 -70
  75. package/build/cjs/cc/IndicatorCC.js.map +2 -2
  76. package/build/cjs/cc/IrrigationCC.d.ts +2 -2
  77. package/build/cjs/cc/IrrigationCC.js +54 -93
  78. package/build/cjs/cc/IrrigationCC.js.map +2 -2
  79. package/build/cjs/cc/LanguageCC.d.ts +2 -2
  80. package/build/cjs/cc/LanguageCC.js +15 -54
  81. package/build/cjs/cc/LanguageCC.js.map +2 -2
  82. package/build/cjs/cc/LockCC.d.ts +2 -2
  83. package/build/cjs/cc/LockCC.js +15 -54
  84. package/build/cjs/cc/LockCC.js.map +2 -2
  85. package/build/cjs/cc/ManufacturerProprietaryCC.d.ts +2 -2
  86. package/build/cjs/cc/ManufacturerProprietaryCC.js +10 -49
  87. package/build/cjs/cc/ManufacturerProprietaryCC.js.map +2 -2
  88. package/build/cjs/cc/ManufacturerSpecificCC.js +16 -55
  89. package/build/cjs/cc/ManufacturerSpecificCC.js.map +1 -1
  90. package/build/cjs/cc/MeterCC.d.ts +2 -2
  91. package/build/cjs/cc/MeterCC.js +23 -62
  92. package/build/cjs/cc/MeterCC.js.map +2 -2
  93. package/build/cjs/cc/MultiChannelAssociationCC.d.ts +2 -2
  94. package/build/cjs/cc/MultiChannelAssociationCC.js +26 -65
  95. package/build/cjs/cc/MultiChannelAssociationCC.js.map +2 -2
  96. package/build/cjs/cc/MultiChannelCC.js +34 -73
  97. package/build/cjs/cc/MultiChannelCC.js.map +1 -1
  98. package/build/cjs/cc/MultiCommandCC.js +9 -48
  99. package/build/cjs/cc/MultiCommandCC.js.map +1 -1
  100. package/build/cjs/cc/MultilevelSensorCC.d.ts +2 -2
  101. package/build/cjs/cc/MultilevelSensorCC.js +23 -62
  102. package/build/cjs/cc/MultilevelSensorCC.js.map +2 -2
  103. package/build/cjs/cc/MultilevelSwitchCC.d.ts +2 -2
  104. package/build/cjs/cc/MultilevelSwitchCC.js +24 -63
  105. package/build/cjs/cc/MultilevelSwitchCC.js.map +2 -2
  106. package/build/cjs/cc/NoOperationCC.js +5 -44
  107. package/build/cjs/cc/NoOperationCC.js.map +1 -1
  108. package/build/cjs/cc/NodeNamingCC.d.ts +6 -4
  109. package/build/cjs/cc/NodeNamingCC.js +70 -85
  110. package/build/cjs/cc/NodeNamingCC.js.map +2 -2
  111. package/build/cjs/cc/NotificationCC.d.ts +20 -3
  112. package/build/cjs/cc/NotificationCC.js +141 -104
  113. package/build/cjs/cc/NotificationCC.js.map +2 -2
  114. package/build/cjs/cc/PowerlevelCC.js +22 -61
  115. package/build/cjs/cc/PowerlevelCC.js.map +1 -1
  116. package/build/cjs/cc/ProtectionCC.d.ts +2 -2
  117. package/build/cjs/cc/ProtectionCC.js +33 -72
  118. package/build/cjs/cc/ProtectionCC.js.map +2 -2
  119. package/build/cjs/cc/SceneActivationCC.js +9 -48
  120. package/build/cjs/cc/SceneActivationCC.js.map +1 -1
  121. package/build/cjs/cc/SceneActuatorConfigurationCC.js +14 -53
  122. package/build/cjs/cc/SceneActuatorConfigurationCC.js.map +1 -1
  123. package/build/cjs/cc/SceneControllerConfigurationCC.d.ts +2 -2
  124. package/build/cjs/cc/SceneControllerConfigurationCC.js +17 -56
  125. package/build/cjs/cc/SceneControllerConfigurationCC.js.map +2 -2
  126. package/build/cjs/cc/ScheduleEntryLockCC.js +46 -85
  127. package/build/cjs/cc/ScheduleEntryLockCC.js.map +1 -1
  128. package/build/cjs/cc/Security2CC.js +33 -72
  129. package/build/cjs/cc/Security2CC.js.map +1 -1
  130. package/build/cjs/cc/SecurityCC.js +27 -66
  131. package/build/cjs/cc/SecurityCC.js.map +1 -1
  132. package/build/cjs/cc/SoundSwitchCC.js +29 -68
  133. package/build/cjs/cc/SoundSwitchCC.js.map +1 -1
  134. package/build/cjs/cc/SupervisionCC.js +9 -48
  135. package/build/cjs/cc/SupervisionCC.js.map +1 -1
  136. package/build/cjs/cc/ThermostatFanModeCC.d.ts +2 -2
  137. package/build/cjs/cc/ThermostatFanModeCC.js +19 -58
  138. package/build/cjs/cc/ThermostatFanModeCC.js.map +2 -2
  139. package/build/cjs/cc/ThermostatFanStateCC.d.ts +2 -2
  140. package/build/cjs/cc/ThermostatFanStateCC.js +11 -50
  141. package/build/cjs/cc/ThermostatFanStateCC.js.map +2 -2
  142. package/build/cjs/cc/ThermostatModeCC.d.ts +2 -2
  143. package/build/cjs/cc/ThermostatModeCC.js +19 -58
  144. package/build/cjs/cc/ThermostatModeCC.js.map +2 -2
  145. package/build/cjs/cc/ThermostatOperatingStateCC.d.ts +2 -2
  146. package/build/cjs/cc/ThermostatOperatingStateCC.js +11 -50
  147. package/build/cjs/cc/ThermostatOperatingStateCC.js.map +2 -2
  148. package/build/cjs/cc/ThermostatSetbackCC.d.ts +2 -2
  149. package/build/cjs/cc/ThermostatSetbackCC.js +15 -54
  150. package/build/cjs/cc/ThermostatSetbackCC.js.map +2 -2
  151. package/build/cjs/cc/ThermostatSetpointCC.d.ts +2 -2
  152. package/build/cjs/cc/ThermostatSetpointCC.js +25 -64
  153. package/build/cjs/cc/ThermostatSetpointCC.js.map +2 -2
  154. package/build/cjs/cc/TimeCC.js +24 -63
  155. package/build/cjs/cc/TimeCC.js.map +1 -1
  156. package/build/cjs/cc/TimeParametersCC.js +13 -52
  157. package/build/cjs/cc/TimeParametersCC.js.map +1 -1
  158. package/build/cjs/cc/TransportServiceCC.js +13 -52
  159. package/build/cjs/cc/TransportServiceCC.js.map +1 -1
  160. package/build/cjs/cc/UserCodeCC.d.ts +6 -4
  161. package/build/cjs/cc/UserCodeCC.js +89 -98
  162. package/build/cjs/cc/UserCodeCC.js.map +2 -2
  163. package/build/cjs/cc/VersionCC.js +25 -64
  164. package/build/cjs/cc/VersionCC.js.map +1 -1
  165. package/build/cjs/cc/WakeUpCC.js +21 -60
  166. package/build/cjs/cc/WakeUpCC.js.map +1 -1
  167. package/build/cjs/cc/WindowCoveringCC.d.ts +2 -2
  168. package/build/cjs/cc/WindowCoveringCC.js +26 -65
  169. package/build/cjs/cc/WindowCoveringCC.js.map +2 -2
  170. package/build/cjs/cc/ZWaveLongRangeCC.js +3 -42
  171. package/build/cjs/cc/ZWaveLongRangeCC.js.map +1 -1
  172. package/build/cjs/cc/ZWavePlusCC.js +11 -50
  173. package/build/cjs/cc/ZWavePlusCC.js.map +1 -1
  174. package/build/cjs/cc/ZWaveProtocolCC.js +73 -112
  175. package/build/cjs/cc/ZWaveProtocolCC.js.map +1 -1
  176. package/build/cjs/cc/_CCValues.generated.d.ts +131 -7
  177. package/build/cjs/cc/_CCValues.generated.js +68 -5
  178. package/build/cjs/cc/_CCValues.generated.js.map +2 -2
  179. package/build/cjs/cc/manufacturerProprietary/FibaroCC.d.ts +3 -3
  180. package/build/cjs/cc/manufacturerProprietary/FibaroCC.js +22 -59
  181. package/build/cjs/cc/manufacturerProprietary/FibaroCC.js.map +2 -2
  182. package/build/cjs/lib/CommandClass.d.ts +6 -2
  183. package/build/cjs/lib/CommandClass.js +1 -1
  184. package/build/cjs/lib/CommandClass.js.map +2 -2
  185. package/build/cjs/lib/Security2/Extension.js +9 -48
  186. package/build/cjs/lib/Security2/Extension.js.map +1 -1
  187. package/build/cjs/lib/Values.d.ts +1 -1
  188. package/build/cjs/lib/Values.js.map +1 -1
  189. package/build/esm/cc/AlarmSensorCC.d.ts +2 -2
  190. package/build/esm/cc/AlarmSensorCC.d.ts.map +1 -1
  191. package/build/esm/cc/AlarmSensorCC.js +9 -38
  192. package/build/esm/cc/AlarmSensorCC.js.map +1 -1
  193. package/build/esm/cc/ApplicationStatusCC.js +1 -34
  194. package/build/esm/cc/ApplicationStatusCC.js.map +1 -1
  195. package/build/esm/cc/AssociationCC.d.ts +2 -2
  196. package/build/esm/cc/AssociationCC.d.ts.map +1 -1
  197. package/build/esm/cc/AssociationCC.js +3 -36
  198. package/build/esm/cc/AssociationCC.js.map +1 -1
  199. package/build/esm/cc/AssociationGroupInfoCC.d.ts +2 -2
  200. package/build/esm/cc/AssociationGroupInfoCC.d.ts.map +1 -1
  201. package/build/esm/cc/AssociationGroupInfoCC.js +5 -36
  202. package/build/esm/cc/AssociationGroupInfoCC.js.map +1 -1
  203. package/build/esm/cc/BarrierOperatorCC.d.ts +2 -2
  204. package/build/esm/cc/BarrierOperatorCC.d.ts.map +1 -1
  205. package/build/esm/cc/BarrierOperatorCC.js +3 -36
  206. package/build/esm/cc/BarrierOperatorCC.js.map +1 -1
  207. package/build/esm/cc/BasicCC.d.ts +2 -2
  208. package/build/esm/cc/BasicCC.d.ts.map +1 -1
  209. package/build/esm/cc/BasicCC.js +3 -36
  210. package/build/esm/cc/BasicCC.js.map +1 -1
  211. package/build/esm/cc/BasicWindowCoveringCC.js +1 -34
  212. package/build/esm/cc/BasicWindowCoveringCC.js.map +1 -1
  213. package/build/esm/cc/BatteryCC.d.ts +2 -2
  214. package/build/esm/cc/BatteryCC.d.ts.map +1 -1
  215. package/build/esm/cc/BatteryCC.js +3 -36
  216. package/build/esm/cc/BatteryCC.js.map +1 -1
  217. package/build/esm/cc/BinarySensorCC.d.ts +2 -2
  218. package/build/esm/cc/BinarySensorCC.d.ts.map +1 -1
  219. package/build/esm/cc/BinarySensorCC.js +3 -36
  220. package/build/esm/cc/BinarySensorCC.js.map +1 -1
  221. package/build/esm/cc/BinarySwitchCC.d.ts +2 -2
  222. package/build/esm/cc/BinarySwitchCC.d.ts.map +1 -1
  223. package/build/esm/cc/BinarySwitchCC.js +3 -36
  224. package/build/esm/cc/BinarySwitchCC.js.map +1 -1
  225. package/build/esm/cc/CRC16CC.js +1 -34
  226. package/build/esm/cc/CRC16CC.js.map +1 -1
  227. package/build/esm/cc/CentralSceneCC.js +1 -34
  228. package/build/esm/cc/CentralSceneCC.js.map +1 -1
  229. package/build/esm/cc/ClimateControlScheduleCC.js +1 -34
  230. package/build/esm/cc/ClimateControlScheduleCC.js.map +1 -1
  231. package/build/esm/cc/ClockCC.d.ts +2 -2
  232. package/build/esm/cc/ClockCC.d.ts.map +1 -1
  233. package/build/esm/cc/ClockCC.js +3 -36
  234. package/build/esm/cc/ClockCC.js.map +1 -1
  235. package/build/esm/cc/ColorSwitchCC.d.ts +2 -2
  236. package/build/esm/cc/ColorSwitchCC.d.ts.map +1 -1
  237. package/build/esm/cc/ColorSwitchCC.js +3 -36
  238. package/build/esm/cc/ColorSwitchCC.js.map +1 -1
  239. package/build/esm/cc/ConfigurationCC.d.ts +2 -2
  240. package/build/esm/cc/ConfigurationCC.d.ts.map +1 -1
  241. package/build/esm/cc/ConfigurationCC.js +3 -36
  242. package/build/esm/cc/ConfigurationCC.js.map +1 -1
  243. package/build/esm/cc/DeviceResetLocallyCC.js +1 -34
  244. package/build/esm/cc/DeviceResetLocallyCC.js.map +1 -1
  245. package/build/esm/cc/DoorLockCC.d.ts +2 -2
  246. package/build/esm/cc/DoorLockCC.d.ts.map +1 -1
  247. package/build/esm/cc/DoorLockCC.js +3 -36
  248. package/build/esm/cc/DoorLockCC.js.map +1 -1
  249. package/build/esm/cc/DoorLockLoggingCC.d.ts +2 -2
  250. package/build/esm/cc/DoorLockLoggingCC.d.ts.map +1 -1
  251. package/build/esm/cc/DoorLockLoggingCC.js +3 -36
  252. package/build/esm/cc/DoorLockLoggingCC.js.map +1 -1
  253. package/build/esm/cc/EnergyProductionCC.d.ts +2 -2
  254. package/build/esm/cc/EnergyProductionCC.d.ts.map +1 -1
  255. package/build/esm/cc/EnergyProductionCC.js +3 -36
  256. package/build/esm/cc/EnergyProductionCC.js.map +1 -1
  257. package/build/esm/cc/EntryControlCC.d.ts +2 -2
  258. package/build/esm/cc/EntryControlCC.d.ts.map +1 -1
  259. package/build/esm/cc/EntryControlCC.js +3 -36
  260. package/build/esm/cc/EntryControlCC.js.map +1 -1
  261. package/build/esm/cc/FirmwareUpdateMetaDataCC.js +1 -34
  262. package/build/esm/cc/FirmwareUpdateMetaDataCC.js.map +1 -1
  263. package/build/esm/cc/HailCC.js +1 -34
  264. package/build/esm/cc/HailCC.js.map +1 -1
  265. package/build/esm/cc/HumidityControlModeCC.d.ts +2 -2
  266. package/build/esm/cc/HumidityControlModeCC.d.ts.map +1 -1
  267. package/build/esm/cc/HumidityControlModeCC.js +3 -36
  268. package/build/esm/cc/HumidityControlModeCC.js.map +1 -1
  269. package/build/esm/cc/HumidityControlOperatingStateCC.d.ts +2 -2
  270. package/build/esm/cc/HumidityControlOperatingStateCC.d.ts.map +1 -1
  271. package/build/esm/cc/HumidityControlOperatingStateCC.js +3 -36
  272. package/build/esm/cc/HumidityControlOperatingStateCC.js.map +1 -1
  273. package/build/esm/cc/HumidityControlSetpointCC.d.ts +2 -2
  274. package/build/esm/cc/HumidityControlSetpointCC.d.ts.map +1 -1
  275. package/build/esm/cc/HumidityControlSetpointCC.js +3 -36
  276. package/build/esm/cc/HumidityControlSetpointCC.js.map +1 -1
  277. package/build/esm/cc/InclusionControllerCC.js +1 -34
  278. package/build/esm/cc/InclusionControllerCC.js.map +1 -1
  279. package/build/esm/cc/IndicatorCC.d.ts +2 -2
  280. package/build/esm/cc/IndicatorCC.d.ts.map +1 -1
  281. package/build/esm/cc/IndicatorCC.js +3 -36
  282. package/build/esm/cc/IndicatorCC.js.map +1 -1
  283. package/build/esm/cc/IrrigationCC.d.ts +2 -2
  284. package/build/esm/cc/IrrigationCC.d.ts.map +1 -1
  285. package/build/esm/cc/IrrigationCC.js +3 -36
  286. package/build/esm/cc/IrrigationCC.js.map +1 -1
  287. package/build/esm/cc/LanguageCC.d.ts +2 -2
  288. package/build/esm/cc/LanguageCC.d.ts.map +1 -1
  289. package/build/esm/cc/LanguageCC.js +3 -36
  290. package/build/esm/cc/LanguageCC.js.map +1 -1
  291. package/build/esm/cc/LockCC.d.ts +2 -2
  292. package/build/esm/cc/LockCC.d.ts.map +1 -1
  293. package/build/esm/cc/LockCC.js +3 -36
  294. package/build/esm/cc/LockCC.js.map +1 -1
  295. package/build/esm/cc/ManufacturerProprietaryCC.d.ts +2 -2
  296. package/build/esm/cc/ManufacturerProprietaryCC.d.ts.map +1 -1
  297. package/build/esm/cc/ManufacturerProprietaryCC.js +3 -36
  298. package/build/esm/cc/ManufacturerProprietaryCC.js.map +1 -1
  299. package/build/esm/cc/ManufacturerSpecificCC.js +1 -34
  300. package/build/esm/cc/ManufacturerSpecificCC.js.map +1 -1
  301. package/build/esm/cc/MeterCC.d.ts +2 -2
  302. package/build/esm/cc/MeterCC.d.ts.map +1 -1
  303. package/build/esm/cc/MeterCC.js +3 -36
  304. package/build/esm/cc/MeterCC.js.map +1 -1
  305. package/build/esm/cc/MultiChannelAssociationCC.d.ts +2 -2
  306. package/build/esm/cc/MultiChannelAssociationCC.d.ts.map +1 -1
  307. package/build/esm/cc/MultiChannelAssociationCC.js +4 -37
  308. package/build/esm/cc/MultiChannelAssociationCC.js.map +1 -1
  309. package/build/esm/cc/MultiChannelCC.js +1 -34
  310. package/build/esm/cc/MultiChannelCC.js.map +1 -1
  311. package/build/esm/cc/MultiCommandCC.js +1 -34
  312. package/build/esm/cc/MultiCommandCC.js.map +1 -1
  313. package/build/esm/cc/MultilevelSensorCC.d.ts +2 -2
  314. package/build/esm/cc/MultilevelSensorCC.d.ts.map +1 -1
  315. package/build/esm/cc/MultilevelSensorCC.js +3 -36
  316. package/build/esm/cc/MultilevelSensorCC.js.map +1 -1
  317. package/build/esm/cc/MultilevelSwitchCC.d.ts +2 -2
  318. package/build/esm/cc/MultilevelSwitchCC.d.ts.map +1 -1
  319. package/build/esm/cc/MultilevelSwitchCC.js +3 -36
  320. package/build/esm/cc/MultilevelSwitchCC.js.map +1 -1
  321. package/build/esm/cc/NoOperationCC.js +1 -34
  322. package/build/esm/cc/NoOperationCC.js.map +1 -1
  323. package/build/esm/cc/NodeNamingCC.d.ts +6 -4
  324. package/build/esm/cc/NodeNamingCC.d.ts.map +1 -1
  325. package/build/esm/cc/NodeNamingCC.js +52 -73
  326. package/build/esm/cc/NodeNamingCC.js.map +1 -1
  327. package/build/esm/cc/NotificationCC.d.ts +20 -3
  328. package/build/esm/cc/NotificationCC.d.ts.map +1 -1
  329. package/build/esm/cc/NotificationCC.js +143 -89
  330. package/build/esm/cc/NotificationCC.js.map +1 -1
  331. package/build/esm/cc/PowerlevelCC.js +1 -34
  332. package/build/esm/cc/PowerlevelCC.js.map +1 -1
  333. package/build/esm/cc/ProtectionCC.d.ts +2 -2
  334. package/build/esm/cc/ProtectionCC.d.ts.map +1 -1
  335. package/build/esm/cc/ProtectionCC.js +3 -36
  336. package/build/esm/cc/ProtectionCC.js.map +1 -1
  337. package/build/esm/cc/SceneActivationCC.js +1 -34
  338. package/build/esm/cc/SceneActivationCC.js.map +1 -1
  339. package/build/esm/cc/SceneActuatorConfigurationCC.js +1 -34
  340. package/build/esm/cc/SceneActuatorConfigurationCC.js.map +1 -1
  341. package/build/esm/cc/SceneControllerConfigurationCC.d.ts +2 -2
  342. package/build/esm/cc/SceneControllerConfigurationCC.d.ts.map +1 -1
  343. package/build/esm/cc/SceneControllerConfigurationCC.js +3 -36
  344. package/build/esm/cc/SceneControllerConfigurationCC.js.map +1 -1
  345. package/build/esm/cc/ScheduleEntryLockCC.js +1 -34
  346. package/build/esm/cc/ScheduleEntryLockCC.js.map +1 -1
  347. package/build/esm/cc/Security2CC.js +1 -34
  348. package/build/esm/cc/Security2CC.js.map +1 -1
  349. package/build/esm/cc/SecurityCC.js +1 -34
  350. package/build/esm/cc/SecurityCC.js.map +1 -1
  351. package/build/esm/cc/SoundSwitchCC.js +1 -34
  352. package/build/esm/cc/SoundSwitchCC.js.map +1 -1
  353. package/build/esm/cc/SupervisionCC.js +1 -34
  354. package/build/esm/cc/SupervisionCC.js.map +1 -1
  355. package/build/esm/cc/ThermostatFanModeCC.d.ts +2 -2
  356. package/build/esm/cc/ThermostatFanModeCC.d.ts.map +1 -1
  357. package/build/esm/cc/ThermostatFanModeCC.js +3 -36
  358. package/build/esm/cc/ThermostatFanModeCC.js.map +1 -1
  359. package/build/esm/cc/ThermostatFanStateCC.d.ts +2 -2
  360. package/build/esm/cc/ThermostatFanStateCC.d.ts.map +1 -1
  361. package/build/esm/cc/ThermostatFanStateCC.js +3 -36
  362. package/build/esm/cc/ThermostatFanStateCC.js.map +1 -1
  363. package/build/esm/cc/ThermostatModeCC.d.ts +2 -2
  364. package/build/esm/cc/ThermostatModeCC.d.ts.map +1 -1
  365. package/build/esm/cc/ThermostatModeCC.js +3 -36
  366. package/build/esm/cc/ThermostatModeCC.js.map +1 -1
  367. package/build/esm/cc/ThermostatOperatingStateCC.d.ts +2 -2
  368. package/build/esm/cc/ThermostatOperatingStateCC.d.ts.map +1 -1
  369. package/build/esm/cc/ThermostatOperatingStateCC.js +3 -36
  370. package/build/esm/cc/ThermostatOperatingStateCC.js.map +1 -1
  371. package/build/esm/cc/ThermostatSetbackCC.d.ts +2 -2
  372. package/build/esm/cc/ThermostatSetbackCC.d.ts.map +1 -1
  373. package/build/esm/cc/ThermostatSetbackCC.js +3 -36
  374. package/build/esm/cc/ThermostatSetbackCC.js.map +1 -1
  375. package/build/esm/cc/ThermostatSetpointCC.d.ts +2 -2
  376. package/build/esm/cc/ThermostatSetpointCC.d.ts.map +1 -1
  377. package/build/esm/cc/ThermostatSetpointCC.js +3 -36
  378. package/build/esm/cc/ThermostatSetpointCC.js.map +1 -1
  379. package/build/esm/cc/TimeCC.js +1 -34
  380. package/build/esm/cc/TimeCC.js.map +1 -1
  381. package/build/esm/cc/TimeParametersCC.js +1 -34
  382. package/build/esm/cc/TimeParametersCC.js.map +1 -1
  383. package/build/esm/cc/TransportServiceCC.js +1 -34
  384. package/build/esm/cc/TransportServiceCC.js.map +1 -1
  385. package/build/esm/cc/UserCodeCC.d.ts +6 -4
  386. package/build/esm/cc/UserCodeCC.d.ts.map +1 -1
  387. package/build/esm/cc/UserCodeCC.js +55 -48
  388. package/build/esm/cc/UserCodeCC.js.map +1 -1
  389. package/build/esm/cc/VersionCC.js +1 -34
  390. package/build/esm/cc/VersionCC.js.map +1 -1
  391. package/build/esm/cc/WakeUpCC.js +1 -34
  392. package/build/esm/cc/WakeUpCC.js.map +1 -1
  393. package/build/esm/cc/WindowCoveringCC.d.ts +2 -2
  394. package/build/esm/cc/WindowCoveringCC.d.ts.map +1 -1
  395. package/build/esm/cc/WindowCoveringCC.js +3 -36
  396. package/build/esm/cc/WindowCoveringCC.js.map +1 -1
  397. package/build/esm/cc/ZWaveLongRangeCC.js +1 -34
  398. package/build/esm/cc/ZWaveLongRangeCC.js.map +1 -1
  399. package/build/esm/cc/ZWavePlusCC.js +1 -34
  400. package/build/esm/cc/ZWavePlusCC.js.map +1 -1
  401. package/build/esm/cc/ZWaveProtocolCC.js +1 -34
  402. package/build/esm/cc/ZWaveProtocolCC.js.map +1 -1
  403. package/build/esm/cc/_CCValues.generated.d.ts +131 -7
  404. package/build/esm/cc/_CCValues.generated.d.ts.map +1 -1
  405. package/build/esm/cc/_CCValues.generated.js +71 -4
  406. package/build/esm/cc/_CCValues.generated.js.map +1 -1
  407. package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts +3 -3
  408. package/build/esm/cc/manufacturerProprietary/FibaroCC.d.ts.map +1 -1
  409. package/build/esm/cc/manufacturerProprietary/FibaroCC.js +7 -38
  410. package/build/esm/cc/manufacturerProprietary/FibaroCC.js.map +1 -1
  411. package/build/esm/lib/CommandClass.d.ts +6 -2
  412. package/build/esm/lib/CommandClass.d.ts.map +1 -1
  413. package/build/esm/lib/CommandClass.js +1 -1
  414. package/build/esm/lib/CommandClass.js.map +1 -1
  415. package/build/esm/lib/Security2/Extension.js +1 -34
  416. package/build/esm/lib/Security2/Extension.js.map +1 -1
  417. package/build/esm/lib/Values.d.ts +1 -1
  418. package/build/esm/lib/Values.d.ts.map +1 -1
  419. package/package.json +9 -8
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../src_gen/cc/SceneControllerConfigurationCC.ts"],
4
- "sourcesContent": ["import * as __validateArgs from \"./SceneControllerConfigurationCC._validateArgs.js\";\nconst { validateArgs_SceneControllerConfigurationCCAPI_disable, validateArgs_SceneControllerConfigurationCCAPI_set, validateArgs_SceneControllerConfigurationCCAPI_get } = __validateArgs;\nimport type { GetDeviceConfig } from \"@zwave-js/config\";\nimport { CommandClasses, Duration, type EndpointId, type GetValueDB, type MaybeNotKnown, type MessageOrCCLogEntry, MessagePriority, type SupervisionResult, ValueMetadata, type WithAddress, ZWaveError, ZWaveErrorCodes, getCCName, validatePayload, } from \"@zwave-js/core\";\nimport { Bytes, pick } from \"@zwave-js/shared\";\nimport { CCAPI, POLL_VALUE, type PollValueImplementation, SET_VALUE, type SetValueImplementation, throwMissingPropertyKey, throwUnsupportedProperty, throwUnsupportedPropertyKey, throwWrongValueType, } from \"../lib/API.js\";\nimport { type CCRaw, CommandClass, type InterviewContext, type PersistValuesContext, type RefreshValuesContext, } from \"../lib/CommandClass.js\";\nimport { API, CCCommand, ccValues, commandClass, expectedCCResponse, implementedVersion, useSupervision, } from \"../lib/CommandClassDecorators.js\";\nimport { V } from \"../lib/Values.js\";\nimport { SceneControllerConfigurationCommand } from \"../lib/_Types.js\";\nimport type { CCEncodingContext, CCParsingContext } from \"../lib/traits.js\";\nimport { AssociationCC } from \"./AssociationCC.js\";\nimport { SceneControllerConfigurationCCValues } from \"./_CCValues.generated.js\";\nexport { SceneControllerConfigurationCCValues };\n@API(CommandClasses[\"Scene Controller Configuration\"])\nexport class SceneControllerConfigurationCCAPI extends CCAPI {\n public supportsCommand(cmd: SceneControllerConfigurationCommand): MaybeNotKnown<boolean> {\n switch (cmd) {\n case SceneControllerConfigurationCommand.Get:\n return this.isSinglecast();\n case SceneControllerConfigurationCommand.Set:\n return true; // This is mandatory\n }\n return super.supportsCommand(cmd);\n }\n protected override get [SET_VALUE](): SetValueImplementation {\n return async function (this: SceneControllerConfigurationCCAPI, { property, propertyKey }, value, options) {\n if (propertyKey == undefined) {\n throwMissingPropertyKey(this.ccId, property);\n }\n else if (typeof propertyKey !== \"number\") {\n throwUnsupportedPropertyKey(this.ccId, property, propertyKey);\n }\n if (property === \"sceneId\") {\n if (typeof value !== \"number\") {\n throwWrongValueType(this.ccId, property, \"number\", typeof value);\n }\n if (value === 0) {\n // Disable Group ID / Scene ID\n return this.disable(propertyKey);\n }\n else {\n // We need to set the dimming duration along with the scene ID\n // Dimming duration is chosen with the following precedence:\n // 1. options.transitionDuration\n // 2. current stored value\n // 3. default value\n const dimmingDuration = Duration.from(options?.transitionDuration)\n ?? this.tryGetValueDB()?.getValue<Duration>(SceneControllerConfigurationCCValues\n .dimmingDuration(propertyKey).endpoint(this.endpoint.index))\n ?? Duration.default();\n return this.set(propertyKey, value, dimmingDuration);\n }\n }\n else if (property === \"dimmingDuration\") {\n if (typeof value !== \"string\" && !Duration.isDuration(value)) {\n throwWrongValueType(this.ccId, property, \"duration\", typeof value);\n }\n const dimmingDuration = Duration.from(value);\n if (dimmingDuration == undefined) {\n throw new ZWaveError(`${getCCName(this.ccId)}: \"${property}\" could not be set. ${JSON.stringify(value)} is not a valid duration.`, ZWaveErrorCodes.Argument_Invalid);\n }\n const valueDB = this.tryGetValueDB();\n const sceneId = valueDB?.getValue<number>(SceneControllerConfigurationCCValues.sceneId(propertyKey).endpoint(this.endpoint.index));\n if (sceneId == undefined || sceneId === 0) {\n if (valueDB) {\n // Can't actually send dimmingDuration without valid sceneId\n // So we save it in the valueDB without sending it to the node\n const dimmingDurationValueId = SceneControllerConfigurationCCValues\n .dimmingDuration(propertyKey).endpoint(this.endpoint.index);\n valueDB.setValue(dimmingDurationValueId, dimmingDuration);\n }\n return;\n }\n return this.set(propertyKey, sceneId, dimmingDuration);\n }\n else {\n throwUnsupportedProperty(this.ccId, property);\n }\n };\n }\n protected get [POLL_VALUE](): PollValueImplementation {\n return async function (this: SceneControllerConfigurationCCAPI, { property, propertyKey }) {\n switch (property) {\n case \"sceneId\":\n case \"dimmingDuration\": {\n if (propertyKey == undefined) {\n throwMissingPropertyKey(this.ccId, property);\n }\n else if (typeof propertyKey !== \"number\") {\n throwUnsupportedPropertyKey(this.ccId, property, propertyKey);\n }\n return (await this.get(propertyKey))?.[property];\n }\n default:\n throwUnsupportedProperty(this.ccId, property);\n }\n };\n }\n @validateArgs_SceneControllerConfigurationCCAPI_disable()\n public async disable(groupId: number): Promise<SupervisionResult | undefined> {\n this.assertSupportsCommand(SceneControllerConfigurationCommand, SceneControllerConfigurationCommand.Set);\n return this.set(groupId, 0, new Duration(0, \"seconds\"));\n }\n @validateArgs_SceneControllerConfigurationCCAPI_set()\n public async set(groupId: number, sceneId: number, dimmingDuration?: Duration | string): Promise<SupervisionResult | undefined> {\n this.assertSupportsCommand(SceneControllerConfigurationCommand, SceneControllerConfigurationCommand.Set);\n if (!this.endpoint.virtual) {\n const groupCount = SceneControllerConfigurationCC\n .getGroupCountCached(this.host, this.endpoint);\n // The client SHOULD NOT specify group 1 (the life-line group).\n // We don't block it here, because the specs don't forbid it,\n // and it may be needed for some devices.\n if (groupId < 1 || groupId > groupCount) {\n throw new ZWaveError(`${this.constructor.name}: The group ID must be between 1 and the number of supported groups ${groupCount}.`, ZWaveErrorCodes.Argument_Invalid);\n }\n }\n else if (groupId < 1) {\n throw new ZWaveError(`The group ID must be greater than 0.`, ZWaveErrorCodes.Argument_Invalid);\n }\n const cc = new SceneControllerConfigurationCCSet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n groupId,\n sceneId,\n dimmingDuration,\n });\n return this.host.sendCommand(cc, this.commandOptions);\n }\n public async getLastActivated(): Promise<MaybeNotKnown<Pick<SceneControllerConfigurationCCReport, \"groupId\" | \"sceneId\" | \"dimmingDuration\">>> {\n this.assertSupportsCommand(SceneControllerConfigurationCommand, SceneControllerConfigurationCommand.Get);\n const cc = new SceneControllerConfigurationCCGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n groupId: 0,\n });\n const response = await this.host.sendCommand<SceneControllerConfigurationCCReport>(cc, this.commandOptions);\n // Return value includes \"groupId\", because\n // the returned report will include the actual groupId of the\n // last activated groupId / sceneId\n if (response) {\n return pick(response, [\"groupId\", \"sceneId\", \"dimmingDuration\"]);\n }\n }\n @validateArgs_SceneControllerConfigurationCCAPI_get()\n public async get(groupId: number): Promise<MaybeNotKnown<Pick<SceneControllerConfigurationCCReport, \"sceneId\" | \"dimmingDuration\">>> {\n this.assertSupportsCommand(SceneControllerConfigurationCommand, SceneControllerConfigurationCommand.Get);\n if (groupId === 0) {\n throw new ZWaveError(`Invalid group ID 0. To get the last activated group / scene, use getLastActivated() instead.`, ZWaveErrorCodes.Argument_Invalid);\n }\n else if (groupId < 0) {\n throw new ZWaveError(`The group ID must be greater than 0.`, ZWaveErrorCodes.Argument_Invalid);\n }\n const cc = new SceneControllerConfigurationCCGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n groupId,\n });\n const response = await this.host.sendCommand<SceneControllerConfigurationCCReport>(cc, this.commandOptions);\n // Since groupId is not allowed to be 0, only Reports with\n // groupId equal to the requested groupId will be accepted,\n // so we can omit groupId from the return.\n if (response) {\n return pick(response, [\"sceneId\", \"dimmingDuration\"]);\n }\n }\n}\n@commandClass(CommandClasses[\"Scene Controller Configuration\"])\n@implementedVersion(1)\n@ccValues(SceneControllerConfigurationCCValues)\nexport class SceneControllerConfigurationCC extends CommandClass {\n declare ccCommand: SceneControllerConfigurationCommand;\n public determineRequiredCCInterviews(): readonly CommandClasses[] {\n // AssociationCC is required and MUST be interviewed\n // before SceneControllerConfigurationCC to supply groupCount\n return [\n ...super.determineRequiredCCInterviews(),\n CommandClasses.Association,\n ];\n }\n public async interview(ctx: InterviewContext): Promise<void> {\n const node = this.getNode(ctx)!;\n const endpoint = this.getEndpoint(ctx)!;\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: `Interviewing ${this.ccName}...`,\n direction: \"none\",\n });\n const groupCount = SceneControllerConfigurationCC.getGroupCountCached(ctx, endpoint);\n if (groupCount === 0) {\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: `skipping Scene Controller Configuration interview because Association group count is unknown`,\n direction: \"none\",\n level: \"warn\",\n });\n return;\n }\n // Create metadata for each scene, but don't query their actual configuration\n // since some devices only support setting scenes\n for (let groupId = 1; groupId <= groupCount; groupId++) {\n const sceneIdValue = SceneControllerConfigurationCCValues.sceneId(groupId);\n this.ensureMetadata(ctx, sceneIdValue);\n const dimmingDurationValue = SceneControllerConfigurationCCValues\n .dimmingDuration(groupId);\n this.ensureMetadata(ctx, dimmingDurationValue);\n }\n // Remember that the interview is complete\n this.setInterviewComplete(ctx, true);\n }\n public async refreshValues(ctx: RefreshValuesContext): Promise<void> {\n const node = this.getNode(ctx)!;\n const endpoint = this.getEndpoint(ctx)!;\n const api = CCAPI.create(CommandClasses[\"Scene Controller Configuration\"], ctx, endpoint).withOptions({\n priority: MessagePriority.NodeQuery,\n });\n const groupCount = SceneControllerConfigurationCC.getGroupCountCached(ctx, endpoint);\n ctx.logNode(node.id, {\n message: \"querying all scene controller configurations...\",\n direction: \"outbound\",\n });\n for (let groupId = 1; groupId <= groupCount; groupId++) {\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: `querying scene configuration for group #${groupId}...`,\n direction: \"outbound\",\n });\n const group = await api.get(groupId);\n if (group != undefined) {\n const logMessage = `received scene configuration for group #${groupId}:\nscene ID: ${group.sceneId}\ndimming duration: ${group.dimmingDuration.toString()}`;\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: logMessage,\n direction: \"inbound\",\n });\n }\n }\n }\n /**\n * Returns the number of association groups reported by the node.\n * This only works AFTER the node has been interviewed by this CC\n * or the AssociationCC.\n */\n public static getGroupCountCached(ctx: GetValueDB & GetDeviceConfig, endpoint: EndpointId): number {\n return ctx.getDeviceConfig?.(endpoint.nodeId)?.compat\n ?.forceSceneControllerGroupCount\n ?? AssociationCC.getGroupCountCached(ctx, endpoint)\n ?? 0;\n }\n}\n// @publicAPI\nexport interface SceneControllerConfigurationCCSetOptions {\n groupId: number;\n sceneId: number;\n dimmingDuration?: Duration | string;\n}\n@CCCommand(SceneControllerConfigurationCommand.Set)\n@useSupervision()\nexport class SceneControllerConfigurationCCSet extends SceneControllerConfigurationCC {\n public constructor(options: WithAddress<SceneControllerConfigurationCCSetOptions>) {\n super(options);\n this.groupId = options.groupId;\n this.sceneId = options.sceneId;\n // if dimmingDuration was missing, use default duration.\n this.dimmingDuration = Duration.from(options.dimmingDuration)\n ?? Duration.default();\n }\n public static from(_raw: CCRaw, _ctx: CCParsingContext): SceneControllerConfigurationCCSet {\n // TODO: Deserialize payload\n throw new ZWaveError(`${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented);\n // return new SceneControllerConfigurationCCSet({\n // \tnodeId: ctx.sourceNodeId,\n // });\n }\n public groupId: number;\n public sceneId: number;\n public dimmingDuration: Duration;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([\n this.groupId,\n this.sceneId,\n this.dimmingDuration.serializeSet(),\n ]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n \"group id\": this.groupId,\n \"scene id\": this.sceneId,\n \"dimming duration\": this.dimmingDuration.toString(),\n },\n };\n }\n}\n// @publicAPI\nexport interface SceneControllerConfigurationCCReportOptions {\n groupId: number;\n sceneId: number;\n dimmingDuration: Duration;\n}\n@CCCommand(SceneControllerConfigurationCommand.Report)\nexport class SceneControllerConfigurationCCReport extends SceneControllerConfigurationCC {\n public constructor(options: WithAddress<SceneControllerConfigurationCCReportOptions>) {\n super(options);\n // TODO: Check implementation:\n this.groupId = options.groupId;\n this.sceneId = options.sceneId;\n this.dimmingDuration = options.dimmingDuration;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): SceneControllerConfigurationCCReport {\n validatePayload(raw.payload.length >= 3);\n const groupId = raw.payload[0];\n const sceneId = raw.payload[1];\n const dimmingDuration: Duration = Duration.parseReport(raw.payload[2])\n ?? Duration.unknown();\n return new this({\n nodeId: ctx.sourceNodeId,\n groupId,\n sceneId,\n dimmingDuration,\n });\n }\n public readonly groupId: number;\n public readonly sceneId: number;\n public readonly dimmingDuration: Duration;\n public persistValues(ctx: PersistValuesContext): boolean {\n if (!super.persistValues(ctx))\n return false;\n // If groupId = 0, values are meaningless\n if (this.groupId === 0)\n return false;\n const sceneIdValue = SceneControllerConfigurationCCValues.sceneId(this.groupId);\n this.ensureMetadata(ctx, sceneIdValue);\n const dimmingDurationValue = SceneControllerConfigurationCCValues\n .dimmingDuration(this.groupId);\n this.ensureMetadata(ctx, dimmingDurationValue);\n this.setValue(ctx, sceneIdValue, this.sceneId);\n this.setValue(ctx, dimmingDurationValue, this.dimmingDuration);\n return true;\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n \"group id\": this.groupId,\n \"scene id\": this.sceneId,\n \"dimming duration\": this.dimmingDuration.toString(),\n },\n };\n }\n}\nfunction testResponseForSceneControllerConfigurationGet(sent: SceneControllerConfigurationCCGet, received: SceneControllerConfigurationCCReport) {\n // We expect a Scene Controller Configuration Report that matches\n // the requested groupId, unless groupId 0 was requested\n return sent.groupId === 0 || received.groupId === sent.groupId;\n}\n// @publicAPI\nexport interface SceneControllerConfigurationCCGetOptions {\n groupId: number;\n}\n@CCCommand(SceneControllerConfigurationCommand.Get)\n@expectedCCResponse(SceneControllerConfigurationCCReport, testResponseForSceneControllerConfigurationGet)\nexport class SceneControllerConfigurationCCGet extends SceneControllerConfigurationCC {\n public constructor(options: WithAddress<SceneControllerConfigurationCCGetOptions>) {\n super(options);\n this.groupId = options.groupId;\n }\n public static from(_raw: CCRaw, _ctx: CCParsingContext): SceneControllerConfigurationCCGet {\n // TODO: Deserialize payload\n throw new ZWaveError(`${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented);\n // return new SceneControllerConfigurationCCGet({\n // \tnodeId: ctx.sourceNodeId,\n // });\n }\n public groupId: number;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([this.groupId]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: { \"group id\": this.groupId },\n };\n }\n}\n"],
5
- "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAgC;AAGhC,kBAA6P;AAC7P,oBAA4B;AAC5B,iBAA8M;AAC9M,0BAAuH;AACvH,oCAAgH;AAEhH,mBAAoD;AAEpD,2BAA8B;AAC9B,gCAAqD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAXrD,MAAM,EAAE,wDAAwD,oDAAoD,mDAAkD,IAAK;IAc9J,qCAAiC,MAAA;8BAD7C,mCAAI,2BAAe,gCAAgC,CAAC,CAAC;;;;oBACC;;;;;yDAAA,YAAK;WAAA;;;;;;;;6BAoFvD,uDAAsD,CAAE;yBAKxD,mDAAkD,CAAE;yBAwCpD,mDAAkD,CAAE;AA5CrD,mBAAA,MAAA,MAAA,qBAAA,EAAA,MAAA,UAAA,MAAA,WAAA,QAAA,OAAA,SAAA,OAAA,QAAA,EAAA,KAAA,gCAAA,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B,SAAS,EAAE,YAAY,KAAK,QAAO;;IAE3C;;;;",
4
+ "sourcesContent": ["import * as __validateArgs from \"./SceneControllerConfigurationCC._validateArgs.js\";\nconst { validateArgs_SceneControllerConfigurationCCAPI_disable, validateArgs_SceneControllerConfigurationCCAPI_set, validateArgs_SceneControllerConfigurationCCAPI_get } = __validateArgs;\nimport type { GetDeviceConfig } from \"@zwave-js/config\";\nimport { CommandClasses, Duration, type EndpointId, type GetValueDB, type MaybeNotKnown, type MessageOrCCLogEntry, MessagePriority, type SupervisionResult, ValueMetadata, type WithAddress, ZWaveError, ZWaveErrorCodes, getCCName, validatePayload, } from \"@zwave-js/core\";\nimport { Bytes, pick } from \"@zwave-js/shared\";\nimport { CCAPI, POLL_VALUE, type PollValueImplementation, SET_VALUE, type SetValueImplementation, throwMissingPropertyKey, throwUnsupportedProperty, throwUnsupportedPropertyKey, throwWrongValueType, } from \"../lib/API.js\";\nimport { type CCRaw, CommandClass, type InterviewContext, type PersistValuesContext, type RefreshValuesContext, type RefreshValuesOptions, } from \"../lib/CommandClass.js\";\nimport { API, CCCommand, ccValues, commandClass, expectedCCResponse, implementedVersion, useSupervision, } from \"../lib/CommandClassDecorators.js\";\nimport { V } from \"../lib/Values.js\";\nimport { SceneControllerConfigurationCommand } from \"../lib/_Types.js\";\nimport type { CCEncodingContext, CCParsingContext } from \"../lib/traits.js\";\nimport { AssociationCC } from \"./AssociationCC.js\";\nimport { SceneControllerConfigurationCCValues } from \"./_CCValues.generated.js\";\nexport { SceneControllerConfigurationCCValues };\n@API(CommandClasses[\"Scene Controller Configuration\"])\nexport class SceneControllerConfigurationCCAPI extends CCAPI {\n public supportsCommand(cmd: SceneControllerConfigurationCommand): MaybeNotKnown<boolean> {\n switch (cmd) {\n case SceneControllerConfigurationCommand.Get:\n return this.isSinglecast();\n case SceneControllerConfigurationCommand.Set:\n return true; // This is mandatory\n }\n return super.supportsCommand(cmd);\n }\n protected override get [SET_VALUE](): SetValueImplementation {\n return async function (this: SceneControllerConfigurationCCAPI, { property, propertyKey }, value, options) {\n if (propertyKey == undefined) {\n throwMissingPropertyKey(this.ccId, property);\n }\n else if (typeof propertyKey !== \"number\") {\n throwUnsupportedPropertyKey(this.ccId, property, propertyKey);\n }\n if (property === \"sceneId\") {\n if (typeof value !== \"number\") {\n throwWrongValueType(this.ccId, property, \"number\", typeof value);\n }\n if (value === 0) {\n // Disable Group ID / Scene ID\n return this.disable(propertyKey);\n }\n else {\n // We need to set the dimming duration along with the scene ID\n // Dimming duration is chosen with the following precedence:\n // 1. options.transitionDuration\n // 2. current stored value\n // 3. default value\n const dimmingDuration = Duration.from(options?.transitionDuration)\n ?? this.tryGetValueDB()?.getValue<Duration>(SceneControllerConfigurationCCValues\n .dimmingDuration(propertyKey).endpoint(this.endpoint.index))\n ?? Duration.default();\n return this.set(propertyKey, value, dimmingDuration);\n }\n }\n else if (property === \"dimmingDuration\") {\n if (typeof value !== \"string\" && !Duration.isDuration(value)) {\n throwWrongValueType(this.ccId, property, \"duration\", typeof value);\n }\n const dimmingDuration = Duration.from(value);\n if (dimmingDuration == undefined) {\n throw new ZWaveError(`${getCCName(this.ccId)}: \"${property}\" could not be set. ${JSON.stringify(value)} is not a valid duration.`, ZWaveErrorCodes.Argument_Invalid);\n }\n const valueDB = this.tryGetValueDB();\n const sceneId = valueDB?.getValue<number>(SceneControllerConfigurationCCValues.sceneId(propertyKey).endpoint(this.endpoint.index));\n if (sceneId == undefined || sceneId === 0) {\n if (valueDB) {\n // Can't actually send dimmingDuration without valid sceneId\n // So we save it in the valueDB without sending it to the node\n const dimmingDurationValueId = SceneControllerConfigurationCCValues\n .dimmingDuration(propertyKey).endpoint(this.endpoint.index);\n valueDB.setValue(dimmingDurationValueId, dimmingDuration);\n }\n return;\n }\n return this.set(propertyKey, sceneId, dimmingDuration);\n }\n else {\n throwUnsupportedProperty(this.ccId, property);\n }\n };\n }\n protected get [POLL_VALUE](): PollValueImplementation {\n return async function (this: SceneControllerConfigurationCCAPI, { property, propertyKey }) {\n switch (property) {\n case \"sceneId\":\n case \"dimmingDuration\": {\n if (propertyKey == undefined) {\n throwMissingPropertyKey(this.ccId, property);\n }\n else if (typeof propertyKey !== \"number\") {\n throwUnsupportedPropertyKey(this.ccId, property, propertyKey);\n }\n return (await this.get(propertyKey))?.[property];\n }\n default:\n throwUnsupportedProperty(this.ccId, property);\n }\n };\n }\n @validateArgs_SceneControllerConfigurationCCAPI_disable()\n public async disable(groupId: number): Promise<SupervisionResult | undefined> {\n this.assertSupportsCommand(SceneControllerConfigurationCommand, SceneControllerConfigurationCommand.Set);\n return this.set(groupId, 0, new Duration(0, \"seconds\"));\n }\n @validateArgs_SceneControllerConfigurationCCAPI_set()\n public async set(groupId: number, sceneId: number, dimmingDuration?: Duration | string): Promise<SupervisionResult | undefined> {\n this.assertSupportsCommand(SceneControllerConfigurationCommand, SceneControllerConfigurationCommand.Set);\n if (!this.endpoint.virtual) {\n const groupCount = SceneControllerConfigurationCC\n .getGroupCountCached(this.host, this.endpoint);\n // The client SHOULD NOT specify group 1 (the life-line group).\n // We don't block it here, because the specs don't forbid it,\n // and it may be needed for some devices.\n if (groupId < 1 || groupId > groupCount) {\n throw new ZWaveError(`${this.constructor.name}: The group ID must be between 1 and the number of supported groups ${groupCount}.`, ZWaveErrorCodes.Argument_Invalid);\n }\n }\n else if (groupId < 1) {\n throw new ZWaveError(`The group ID must be greater than 0.`, ZWaveErrorCodes.Argument_Invalid);\n }\n const cc = new SceneControllerConfigurationCCSet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n groupId,\n sceneId,\n dimmingDuration,\n });\n return this.host.sendCommand(cc, this.commandOptions);\n }\n public async getLastActivated(): Promise<MaybeNotKnown<Pick<SceneControllerConfigurationCCReport, \"groupId\" | \"sceneId\" | \"dimmingDuration\">>> {\n this.assertSupportsCommand(SceneControllerConfigurationCommand, SceneControllerConfigurationCommand.Get);\n const cc = new SceneControllerConfigurationCCGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n groupId: 0,\n });\n const response = await this.host.sendCommand<SceneControllerConfigurationCCReport>(cc, this.commandOptions);\n // Return value includes \"groupId\", because\n // the returned report will include the actual groupId of the\n // last activated groupId / sceneId\n if (response) {\n return pick(response, [\"groupId\", \"sceneId\", \"dimmingDuration\"]);\n }\n }\n @validateArgs_SceneControllerConfigurationCCAPI_get()\n public async get(groupId: number): Promise<MaybeNotKnown<Pick<SceneControllerConfigurationCCReport, \"sceneId\" | \"dimmingDuration\">>> {\n this.assertSupportsCommand(SceneControllerConfigurationCommand, SceneControllerConfigurationCommand.Get);\n if (groupId === 0) {\n throw new ZWaveError(`Invalid group ID 0. To get the last activated group / scene, use getLastActivated() instead.`, ZWaveErrorCodes.Argument_Invalid);\n }\n else if (groupId < 0) {\n throw new ZWaveError(`The group ID must be greater than 0.`, ZWaveErrorCodes.Argument_Invalid);\n }\n const cc = new SceneControllerConfigurationCCGet({\n nodeId: this.endpoint.nodeId,\n endpointIndex: this.endpoint.index,\n groupId,\n });\n const response = await this.host.sendCommand<SceneControllerConfigurationCCReport>(cc, this.commandOptions);\n // Since groupId is not allowed to be 0, only Reports with\n // groupId equal to the requested groupId will be accepted,\n // so we can omit groupId from the return.\n if (response) {\n return pick(response, [\"sceneId\", \"dimmingDuration\"]);\n }\n }\n}\n@commandClass(CommandClasses[\"Scene Controller Configuration\"])\n@implementedVersion(1)\n@ccValues(SceneControllerConfigurationCCValues)\nexport class SceneControllerConfigurationCC extends CommandClass {\n declare ccCommand: SceneControllerConfigurationCommand;\n public determineRequiredCCInterviews(): readonly CommandClasses[] {\n // AssociationCC is required and MUST be interviewed\n // before SceneControllerConfigurationCC to supply groupCount\n return [\n ...super.determineRequiredCCInterviews(),\n CommandClasses.Association,\n ];\n }\n public async interview(ctx: InterviewContext): Promise<void> {\n const node = this.getNode(ctx)!;\n const endpoint = this.getEndpoint(ctx)!;\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: `Interviewing ${this.ccName}...`,\n direction: \"none\",\n });\n const groupCount = SceneControllerConfigurationCC.getGroupCountCached(ctx, endpoint);\n if (groupCount === 0) {\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: `skipping Scene Controller Configuration interview because Association group count is unknown`,\n direction: \"none\",\n level: \"warn\",\n });\n return;\n }\n // Create metadata for each scene, but don't query their actual configuration\n // since some devices only support setting scenes\n for (let groupId = 1; groupId <= groupCount; groupId++) {\n const sceneIdValue = SceneControllerConfigurationCCValues.sceneId(groupId);\n this.ensureMetadata(ctx, sceneIdValue);\n const dimmingDurationValue = SceneControllerConfigurationCCValues\n .dimmingDuration(groupId);\n this.ensureMetadata(ctx, dimmingDurationValue);\n }\n // Remember that the interview is complete\n this.setInterviewComplete(ctx, true);\n }\n public async refreshValues(ctx: RefreshValuesContext, options?: RefreshValuesOptions): Promise<void> {\n const node = this.getNode(ctx)!;\n const endpoint = this.getEndpoint(ctx)!;\n const api = CCAPI.create(CommandClasses[\"Scene Controller Configuration\"], ctx, endpoint).withOptions({\n priority: options?.priority ?? MessagePriority.NodeQuery,\n });\n const groupCount = SceneControllerConfigurationCC.getGroupCountCached(ctx, endpoint);\n ctx.logNode(node.id, {\n message: \"querying all scene controller configurations...\",\n direction: \"outbound\",\n });\n for (let groupId = 1; groupId <= groupCount; groupId++) {\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: `querying scene configuration for group #${groupId}...`,\n direction: \"outbound\",\n });\n const group = await api.get(groupId);\n if (group != undefined) {\n const logMessage = `received scene configuration for group #${groupId}:\nscene ID: ${group.sceneId}\ndimming duration: ${group.dimmingDuration.toString()}`;\n ctx.logNode(node.id, {\n endpoint: this.endpointIndex,\n message: logMessage,\n direction: \"inbound\",\n });\n }\n }\n }\n /**\n * Returns the number of association groups reported by the node.\n * This only works AFTER the node has been interviewed by this CC\n * or the AssociationCC.\n */\n public static getGroupCountCached(ctx: GetValueDB & GetDeviceConfig, endpoint: EndpointId): number {\n return ctx.getDeviceConfig?.(endpoint.nodeId)?.compat\n ?.forceSceneControllerGroupCount\n ?? AssociationCC.getGroupCountCached(ctx, endpoint)\n ?? 0;\n }\n}\n// @publicAPI\nexport interface SceneControllerConfigurationCCSetOptions {\n groupId: number;\n sceneId: number;\n dimmingDuration?: Duration | string;\n}\n@CCCommand(SceneControllerConfigurationCommand.Set)\n@useSupervision()\nexport class SceneControllerConfigurationCCSet extends SceneControllerConfigurationCC {\n public constructor(options: WithAddress<SceneControllerConfigurationCCSetOptions>) {\n super(options);\n this.groupId = options.groupId;\n this.sceneId = options.sceneId;\n // if dimmingDuration was missing, use default duration.\n this.dimmingDuration = Duration.from(options.dimmingDuration)\n ?? Duration.default();\n }\n public static from(_raw: CCRaw, _ctx: CCParsingContext): SceneControllerConfigurationCCSet {\n // TODO: Deserialize payload\n throw new ZWaveError(`${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented);\n // return new SceneControllerConfigurationCCSet({\n // \tnodeId: ctx.sourceNodeId,\n // });\n }\n public groupId: number;\n public sceneId: number;\n public dimmingDuration: Duration;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([\n this.groupId,\n this.sceneId,\n this.dimmingDuration.serializeSet(),\n ]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n \"group id\": this.groupId,\n \"scene id\": this.sceneId,\n \"dimming duration\": this.dimmingDuration.toString(),\n },\n };\n }\n}\n// @publicAPI\nexport interface SceneControllerConfigurationCCReportOptions {\n groupId: number;\n sceneId: number;\n dimmingDuration: Duration;\n}\n@CCCommand(SceneControllerConfigurationCommand.Report)\nexport class SceneControllerConfigurationCCReport extends SceneControllerConfigurationCC {\n public constructor(options: WithAddress<SceneControllerConfigurationCCReportOptions>) {\n super(options);\n // TODO: Check implementation:\n this.groupId = options.groupId;\n this.sceneId = options.sceneId;\n this.dimmingDuration = options.dimmingDuration;\n }\n public static from(raw: CCRaw, ctx: CCParsingContext): SceneControllerConfigurationCCReport {\n validatePayload(raw.payload.length >= 3);\n const groupId = raw.payload[0];\n const sceneId = raw.payload[1];\n const dimmingDuration: Duration = Duration.parseReport(raw.payload[2])\n ?? Duration.unknown();\n return new this({\n nodeId: ctx.sourceNodeId,\n groupId,\n sceneId,\n dimmingDuration,\n });\n }\n public readonly groupId: number;\n public readonly sceneId: number;\n public readonly dimmingDuration: Duration;\n public persistValues(ctx: PersistValuesContext): boolean {\n if (!super.persistValues(ctx))\n return false;\n // If groupId = 0, values are meaningless\n if (this.groupId === 0)\n return false;\n const sceneIdValue = SceneControllerConfigurationCCValues.sceneId(this.groupId);\n this.ensureMetadata(ctx, sceneIdValue);\n const dimmingDurationValue = SceneControllerConfigurationCCValues\n .dimmingDuration(this.groupId);\n this.ensureMetadata(ctx, dimmingDurationValue);\n this.setValue(ctx, sceneIdValue, this.sceneId);\n this.setValue(ctx, dimmingDurationValue, this.dimmingDuration);\n return true;\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: {\n \"group id\": this.groupId,\n \"scene id\": this.sceneId,\n \"dimming duration\": this.dimmingDuration.toString(),\n },\n };\n }\n}\nfunction testResponseForSceneControllerConfigurationGet(sent: SceneControllerConfigurationCCGet, received: SceneControllerConfigurationCCReport) {\n // We expect a Scene Controller Configuration Report that matches\n // the requested groupId, unless groupId 0 was requested\n return sent.groupId === 0 || received.groupId === sent.groupId;\n}\n// @publicAPI\nexport interface SceneControllerConfigurationCCGetOptions {\n groupId: number;\n}\n@CCCommand(SceneControllerConfigurationCommand.Get)\n@expectedCCResponse(SceneControllerConfigurationCCReport, testResponseForSceneControllerConfigurationGet)\nexport class SceneControllerConfigurationCCGet extends SceneControllerConfigurationCC {\n public constructor(options: WithAddress<SceneControllerConfigurationCCGetOptions>) {\n super(options);\n this.groupId = options.groupId;\n }\n public static from(_raw: CCRaw, _ctx: CCParsingContext): SceneControllerConfigurationCCGet {\n // TODO: Deserialize payload\n throw new ZWaveError(`${this.name}: deserialization not implemented`, ZWaveErrorCodes.Deserialization_NotImplemented);\n // return new SceneControllerConfigurationCCGet({\n // \tnodeId: ctx.sourceNodeId,\n // });\n }\n public groupId: number;\n public serialize(ctx: CCEncodingContext): Promise<Bytes> {\n this.payload = Bytes.from([this.groupId]);\n return super.serialize(ctx);\n }\n public toLogEntry(ctx?: GetValueDB): MessageOrCCLogEntry {\n return {\n ...super.toLogEntry(ctx),\n message: { \"group id\": this.groupId },\n };\n }\n}\n"],
5
+ "mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qBAAgC;AAGhC,kBAA6P;AAC7P,oBAA4B;AAC5B,iBAA8M;AAC9M,0BAAkJ;AAClJ,oCAAgH;AAEhH,mBAAoD;AAEpD,2BAA8B;AAC9B,gCAAqD;AAXrD,MAAM,EAAE,wDAAwD,oDAAoD,mDAAkD,IAAK;IAc9J,qCAAiC,MAAA;8BAD7C,mCAAI,2BAAe,gCAAgC,CAAC,CAAC;;;;oBACC;;;;;yDAAA,YAAK;WAAA;;;;;;;;6BAoFvD,uDAAsD,CAAE;yBAKxD,mDAAkD,CAAE;yBAwCpD,mDAAkD,CAAE;AA5CrD,qCAAA,MAAA,MAAA,qBAAA,EAAA,MAAA,UAAA,MAAA,WAAA,QAAA,OAAA,SAAA,OAAA,QAAA,EAAA,KAAA,gCAAA,aAAA,KAAA,QAAA,KAAA,gCAAA,IAAa,SAAb,OAAoB,GAAA,UAAA,UAAA,GAAA,MAAA,0BAAA;AAKpB,qCAAA,MAAA,MAAA,iBAAA,EAAA,MAAA,UAAA,MAAA,OAAA,QAAA,OAAA,SAAA,OAAA,QAAA,EAAA,KAAA,gCAAA,SAAA,KAAA,QAAA,KAAA,gCAAA,IAAa,KAAb,OAAgB,GAAA,UAAA,UAAA,GAAA,MAAA,0BAAA;AAwChB,qCAAA,MAAA,MAAA,iBAAA,EAAA,MAAA,UA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e;AAC7D,aAAO;IACX;IACO,WAAW,KAAgB;AAC9B,aAAO;QACH,GAAG,MAAM,WAAW,GAAG;QACvB,SAAS;UACL,YAAY,KAAK;UACjB,YAAY,KAAK;UACjB,oBAAoB,KAAK,gBAAgB,SAAQ;;;IAG7D;;;;AAEJ,SAAS,+CAA+C,MAAyC,UAA8C;AAG3I,SAAO,KAAK,YAAY,KAAK,SAAS,YAAY,KAAK;AAC3D;AAJS;IAWI,qCAAiC,MAAA;8BAF7C,yCAAU,iDAAoC,GAAG,OACjD,kDAAmB,sCAAsC,8CAA8C,CAAC;;;;oBAClD;yDAAA,YAA8B;WAAA;;;;;;;;AAArF,qCAAA,MAAA,mBAAA,EAAA,OAAA,WAAA,GAAA,kBAAA,EAAA,MAAA,SAAA,MAAA,WAAA,MAAA,UAAA,UAAA,GAAA,MAAA,uBAAA;;;AAAa,0CAAA,YAAA,uBAAA;;IACT,YAAmB,SAA8D;AAC7E,YAAM,OAAO;AACb,WAAK,UAAU,QAAQ;IAC3B;IACO,OAAO,KAAK,MAAa,MAAsB;AAElD,YAAM,IAAI,uBAAW,GAAG,KAAK,IAAI,qCAAqC,4BAAgB,8BAA8B;IAIxH;IACO;IACA,UAAU,KAAsB;AACnC,WAAK,UAAU,oBAAM,KAAK,CAAC,KAAK,OAAO,CAAC;AACxC,aAAO,MAAM,UAAU,GAAG;IAC9B;IACO,WAAW,KAAgB;AAC9B,aAAO;QACH,GAAG,MAAM,WAAW,GAAG;QACvB,SAAS,EAAE,YAAY,KAAK,QAAO;;IAE3C;;;;",
6
6
  "names": ["SceneControllerConfigurationCC"]
7
7
  }
@@ -50,6 +50,7 @@ __export(ScheduleEntryLockCC_exports, {
50
50
  ScheduleEntryLockCCYearDayScheduleSet: () => ScheduleEntryLockCCYearDayScheduleSet
51
51
  });
52
52
  module.exports = __toCommonJS(ScheduleEntryLockCC_exports);
53
+ var import_tslib = require("tslib");
53
54
  var __validateArgs = __toESM(require("./ScheduleEntryLockCC._validateArgs.js"), 1);
54
55
  var import_core = require("@zwave-js/core");
55
56
  var import_shared = require("@zwave-js/shared");
@@ -60,46 +61,6 @@ var import_Types = require("../lib/_Types.js");
60
61
  var import_serializers = require("../lib/serializers.js");
61
62
  var import_UserCodeCC = require("./UserCodeCC.js");
62
63
  var import_CCValues_generated = require("./_CCValues.generated.js");
63
- var __runInitializers = function(thisArg, initializers, value) {
64
- var useValue = arguments.length > 2;
65
- for (var i = 0; i < initializers.length; i++) {
66
- value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
67
- }
68
- return useValue ? value : void 0;
69
- };
70
- var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
71
- function accept(f) {
72
- if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
73
- return f;
74
- }
75
- __name(accept, "accept");
76
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
77
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
78
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
79
- var _, done = false;
80
- for (var i = decorators.length - 1; i >= 0; i--) {
81
- var context = {};
82
- for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
83
- for (var p in contextIn.access) context.access[p] = contextIn.access[p];
84
- context.addInitializer = function(f) {
85
- if (done) throw new TypeError("Cannot add initializers after decoration has completed");
86
- extraInitializers.push(accept(f || null));
87
- };
88
- var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
89
- if (kind === "accessor") {
90
- if (result === void 0) continue;
91
- if (result === null || typeof result !== "object") throw new TypeError("Object expected");
92
- if (_ = accept(result.get)) descriptor.get = _;
93
- if (_ = accept(result.set)) descriptor.set = _;
94
- if (_ = accept(result.init)) initializers.unshift(_);
95
- } else if (_ = accept(result)) {
96
- if (kind === "field") initializers.unshift(_);
97
- else descriptor[key] = _;
98
- }
99
- }
100
- if (target) Object.defineProperty(target, contextIn.name, descriptor);
101
- done = true;
102
- };
103
64
  const { validateArgs_ScheduleEntryLockCCAPI_setEnabled, validateArgs_ScheduleEntryLockCCAPI_setWeekDaySchedule, validateArgs_ScheduleEntryLockCCAPI_getWeekDaySchedule, validateArgs_ScheduleEntryLockCCAPI_setYearDaySchedule, validateArgs_ScheduleEntryLockCCAPI_getYearDaySchedule, validateArgs_ScheduleEntryLockCCAPI_setDailyRepeatingSchedule, validateArgs_ScheduleEntryLockCCAPI_getDailyRepeatingSchedule, validateArgs_ScheduleEntryLockCCAPI_setTimezone } = __validateArgs;
104
65
  function persistSchedule(ctx, scheduleKind, userId, slotId, schedule) {
105
66
  const scheduleValue = import_CCValues_generated.ScheduleEntryLockCCValues.schedule(scheduleKind, userId, slotId);
@@ -160,18 +121,18 @@ let ScheduleEntryLockCCAPI = (() => {
160
121
  _setDailyRepeatingSchedule_decorators = [validateArgs_ScheduleEntryLockCCAPI_setDailyRepeatingSchedule()];
161
122
  _getDailyRepeatingSchedule_decorators = [validateArgs_ScheduleEntryLockCCAPI_getDailyRepeatingSchedule()];
162
123
  _setTimezone_decorators = [validateArgs_ScheduleEntryLockCCAPI_setTimezone()];
163
- __esDecorate(this, null, _setEnabled_decorators, { kind: "method", name: "setEnabled", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "setEnabled" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.setEnabled, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
164
- __esDecorate(this, null, _setWeekDaySchedule_decorators, { kind: "method", name: "setWeekDaySchedule", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "setWeekDaySchedule" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.setWeekDaySchedule, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
165
- __esDecorate(this, null, _getWeekDaySchedule_decorators, { kind: "method", name: "getWeekDaySchedule", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "getWeekDaySchedule" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.getWeekDaySchedule, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
166
- __esDecorate(this, null, _setYearDaySchedule_decorators, { kind: "method", name: "setYearDaySchedule", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "setYearDaySchedule" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.setYearDaySchedule, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
167
- __esDecorate(this, null, _getYearDaySchedule_decorators, { kind: "method", name: "getYearDaySchedule", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "getYearDaySchedule" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.getYearDaySchedule, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
168
- __esDecorate(this, null, _setDailyRepeatingSchedule_decorators, { kind: "method", name: "setDailyRepeatingSchedule", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "setDailyRepeatingSchedule" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.setDailyRepeatingSchedule, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
169
- __esDecorate(this, null, _getDailyRepeatingSchedule_decorators, { kind: "method", name: "getDailyRepeatingSchedule", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "getDailyRepeatingSchedule" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.getDailyRepeatingSchedule, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
170
- __esDecorate(this, null, _setTimezone_decorators, { kind: "method", name: "setTimezone", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "setTimezone" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.setTimezone, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
171
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
124
+ (0, import_tslib.__esDecorate)(this, null, _setEnabled_decorators, { kind: "method", name: "setEnabled", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "setEnabled" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.setEnabled, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
125
+ (0, import_tslib.__esDecorate)(this, null, _setWeekDaySchedule_decorators, { kind: "method", name: "setWeekDaySchedule", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "setWeekDaySchedule" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.setWeekDaySchedule, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
126
+ (0, import_tslib.__esDecorate)(this, null, _getWeekDaySchedule_decorators, { kind: "method", name: "getWeekDaySchedule", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "getWeekDaySchedule" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.getWeekDaySchedule, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
127
+ (0, import_tslib.__esDecorate)(this, null, _setYearDaySchedule_decorators, { kind: "method", name: "setYearDaySchedule", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "setYearDaySchedule" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.setYearDaySchedule, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
128
+ (0, import_tslib.__esDecorate)(this, null, _getYearDaySchedule_decorators, { kind: "method", name: "getYearDaySchedule", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "getYearDaySchedule" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.getYearDaySchedule, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
129
+ (0, import_tslib.__esDecorate)(this, null, _setDailyRepeatingSchedule_decorators, { kind: "method", name: "setDailyRepeatingSchedule", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "setDailyRepeatingSchedule" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.setDailyRepeatingSchedule, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
130
+ (0, import_tslib.__esDecorate)(this, null, _getDailyRepeatingSchedule_decorators, { kind: "method", name: "getDailyRepeatingSchedule", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "getDailyRepeatingSchedule" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.getDailyRepeatingSchedule, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
131
+ (0, import_tslib.__esDecorate)(this, null, _setTimezone_decorators, { kind: "method", name: "setTimezone", static: false, private: false, access: { has: /* @__PURE__ */ __name((obj) => "setTimezone" in obj, "has"), get: /* @__PURE__ */ __name((obj) => obj.setTimezone, "get") }, metadata: _metadata }, null, _instanceExtraInitializers);
132
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
172
133
  ScheduleEntryLockCCAPI2 = _classThis = _classDescriptor.value;
173
134
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
174
- __runInitializers(_classThis, _classExtraInitializers);
135
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
175
136
  }
176
137
  supportsCommand(cmd) {
177
138
  switch (cmd) {
@@ -419,7 +380,7 @@ let ScheduleEntryLockCCAPI = (() => {
419
380
  }
420
381
  constructor() {
421
382
  super(...arguments);
422
- __runInitializers(this, _instanceExtraInitializers);
383
+ (0, import_tslib.__runInitializers)(this, _instanceExtraInitializers);
423
384
  }
424
385
  };
425
386
  return ScheduleEntryLockCCAPI2 = _classThis;
@@ -439,10 +400,10 @@ let ScheduleEntryLockCC = (() => {
439
400
  }
440
401
  static {
441
402
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
442
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
403
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
443
404
  ScheduleEntryLockCC2 = _classThis = _classDescriptor.value;
444
405
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
445
- __runInitializers(_classThis, _classExtraInitializers);
406
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
446
407
  }
447
408
  async interview(ctx) {
448
409
  const node = this.getNode(ctx);
@@ -558,10 +519,10 @@ let ScheduleEntryLockCCEnableSet = (() => {
558
519
  }
559
520
  static {
560
521
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
561
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
522
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
562
523
  ScheduleEntryLockCCEnableSet2 = _classThis = _classDescriptor.value;
563
524
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
564
- __runInitializers(_classThis, _classExtraInitializers);
525
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
565
526
  }
566
527
  constructor(options) {
567
528
  super(options);
@@ -611,10 +572,10 @@ let ScheduleEntryLockCCEnableAllSet = (() => {
611
572
  }
612
573
  static {
613
574
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
614
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
575
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
615
576
  ScheduleEntryLockCCEnableAllSet2 = _classThis = _classDescriptor.value;
616
577
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
617
- __runInitializers(_classThis, _classExtraInitializers);
578
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
618
579
  }
619
580
  constructor(options) {
620
581
  super(options);
@@ -659,10 +620,10 @@ let ScheduleEntryLockCCSupportedReport = (() => {
659
620
  }
660
621
  static {
661
622
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
662
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
623
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
663
624
  ScheduleEntryLockCCSupportedReport2 = _classThis = _classDescriptor.value;
664
625
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
665
- __runInitializers(_classThis, _classExtraInitializers);
626
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
666
627
  }
667
628
  constructor(options) {
668
629
  super(options);
@@ -727,10 +688,10 @@ let ScheduleEntryLockCCSupportedGet = (() => {
727
688
  }
728
689
  static {
729
690
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
730
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
691
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
731
692
  ScheduleEntryLockCCSupportedGet2 = _classThis = _classDescriptor.value;
732
693
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
733
- __runInitializers(_classThis, _classExtraInitializers);
694
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
734
695
  }
735
696
  };
736
697
  return ScheduleEntryLockCCSupportedGet2 = _classThis;
@@ -750,10 +711,10 @@ let ScheduleEntryLockCCWeekDayScheduleSet = (() => {
750
711
  }
751
712
  static {
752
713
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
753
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
714
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
754
715
  ScheduleEntryLockCCWeekDayScheduleSet2 = _classThis = _classDescriptor.value;
755
716
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
756
- __runInitializers(_classThis, _classExtraInitializers);
717
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
757
718
  }
758
719
  constructor(options) {
759
720
  super(options);
@@ -865,10 +826,10 @@ let ScheduleEntryLockCCWeekDayScheduleReport = (() => {
865
826
  }
866
827
  static {
867
828
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
868
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
829
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
869
830
  ScheduleEntryLockCCWeekDayScheduleReport2 = _classThis = _classDescriptor.value;
870
831
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
871
- __runInitializers(_classThis, _classExtraInitializers);
832
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
872
833
  }
873
834
  constructor(options) {
874
835
  super(options);
@@ -996,10 +957,10 @@ let ScheduleEntryLockCCWeekDayScheduleGet = (() => {
996
957
  }
997
958
  static {
998
959
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
999
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
960
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1000
961
  ScheduleEntryLockCCWeekDayScheduleGet2 = _classThis = _classDescriptor.value;
1001
962
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
1002
- __runInitializers(_classThis, _classExtraInitializers);
963
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
1003
964
  }
1004
965
  constructor(options) {
1005
966
  super(options);
@@ -1049,10 +1010,10 @@ let ScheduleEntryLockCCYearDayScheduleSet = (() => {
1049
1010
  }
1050
1011
  static {
1051
1012
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1052
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1013
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1053
1014
  ScheduleEntryLockCCYearDayScheduleSet2 = _classThis = _classDescriptor.value;
1054
1015
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
1055
- __runInitializers(_classThis, _classExtraInitializers);
1016
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
1056
1017
  }
1057
1018
  constructor(options) {
1058
1019
  super(options);
@@ -1188,10 +1149,10 @@ let ScheduleEntryLockCCYearDayScheduleReport = (() => {
1188
1149
  }
1189
1150
  static {
1190
1151
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1191
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1152
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1192
1153
  ScheduleEntryLockCCYearDayScheduleReport2 = _classThis = _classDescriptor.value;
1193
1154
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
1194
- __runInitializers(_classThis, _classExtraInitializers);
1155
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
1195
1156
  }
1196
1157
  constructor(options) {
1197
1158
  super(options);
@@ -1364,10 +1325,10 @@ let ScheduleEntryLockCCYearDayScheduleGet = (() => {
1364
1325
  }
1365
1326
  static {
1366
1327
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1367
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1328
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1368
1329
  ScheduleEntryLockCCYearDayScheduleGet2 = _classThis = _classDescriptor.value;
1369
1330
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
1370
- __runInitializers(_classThis, _classExtraInitializers);
1331
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
1371
1332
  }
1372
1333
  constructor(options) {
1373
1334
  super(options);
@@ -1417,10 +1378,10 @@ let ScheduleEntryLockCCTimeOffsetSet = (() => {
1417
1378
  }
1418
1379
  static {
1419
1380
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1420
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1381
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1421
1382
  ScheduleEntryLockCCTimeOffsetSet2 = _classThis = _classDescriptor.value;
1422
1383
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
1423
- __runInitializers(_classThis, _classExtraInitializers);
1384
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
1424
1385
  }
1425
1386
  constructor(options) {
1426
1387
  super(options);
@@ -1471,10 +1432,10 @@ let ScheduleEntryLockCCTimeOffsetReport = (() => {
1471
1432
  }
1472
1433
  static {
1473
1434
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1474
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1435
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1475
1436
  ScheduleEntryLockCCTimeOffsetReport2 = _classThis = _classDescriptor.value;
1476
1437
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
1477
- __runInitializers(_classThis, _classExtraInitializers);
1438
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
1478
1439
  }
1479
1440
  constructor(options) {
1480
1441
  super(options);
@@ -1525,10 +1486,10 @@ let ScheduleEntryLockCCTimeOffsetGet = (() => {
1525
1486
  }
1526
1487
  static {
1527
1488
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1528
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1489
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1529
1490
  ScheduleEntryLockCCTimeOffsetGet2 = _classThis = _classDescriptor.value;
1530
1491
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
1531
- __runInitializers(_classThis, _classExtraInitializers);
1492
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
1532
1493
  }
1533
1494
  };
1534
1495
  return ScheduleEntryLockCCTimeOffsetGet2 = _classThis;
@@ -1548,10 +1509,10 @@ let ScheduleEntryLockCCDailyRepeatingScheduleSet = (() => {
1548
1509
  }
1549
1510
  static {
1550
1511
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1551
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1512
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1552
1513
  ScheduleEntryLockCCDailyRepeatingScheduleSet2 = _classThis = _classDescriptor.value;
1553
1514
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
1554
- __runInitializers(_classThis, _classExtraInitializers);
1515
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
1555
1516
  }
1556
1517
  constructor(options) {
1557
1518
  super(options);
@@ -1665,10 +1626,10 @@ let ScheduleEntryLockCCDailyRepeatingScheduleReport = (() => {
1665
1626
  }
1666
1627
  static {
1667
1628
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1668
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1629
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1669
1630
  ScheduleEntryLockCCDailyRepeatingScheduleReport2 = _classThis = _classDescriptor.value;
1670
1631
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
1671
- __runInitializers(_classThis, _classExtraInitializers);
1632
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
1672
1633
  }
1673
1634
  constructor(options) {
1674
1635
  super(options);
@@ -1786,10 +1747,10 @@ let ScheduleEntryLockCCDailyRepeatingScheduleGet = (() => {
1786
1747
  }
1787
1748
  static {
1788
1749
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1789
- __esDecorate(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1750
+ (0, import_tslib.__esDecorate)(null, _classDescriptor = { value: _classThis }, _classDecorators, { kind: "class", name: _classThis.name, metadata: _metadata }, null, _classExtraInitializers);
1790
1751
  ScheduleEntryLockCCDailyRepeatingScheduleGet2 = _classThis = _classDescriptor.value;
1791
1752
  if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
1792
- __runInitializers(_classThis, _classExtraInitializers);
1753
+ (0, import_tslib.__runInitializers)(_classThis, _classExtraInitializers);
1793
1754
  }
1794
1755
  constructor(options) {
1795
1756
  super(options);