@kohost/api-client 4.5.3 → 4.5.5

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 (303) hide show
  1. package/dist/amqpClient.cjs.map +1 -1
  2. package/dist/amqpClient.js +1 -1
  3. package/dist/{chunk-6VPU637U.js → chunk-2BGFVTK5.js} +1 -1
  4. package/dist/chunk-2BGFVTK5.js.map +1 -0
  5. package/dist/{chunk-4W6JII6E.js → chunk-3KZCYHSF.js} +1 -1
  6. package/dist/{chunk-4W6JII6E.js.map → chunk-3KZCYHSF.js.map} +1 -1
  7. package/dist/{chunk-CAQ76IFU.js → chunk-4HA37GSM.js} +1 -1
  8. package/dist/{chunk-TOF7KO6L.js → chunk-6QIZNOTQ.js} +1 -1
  9. package/dist/{chunk-YTKXZUMB.js → chunk-74WBAGSV.js} +1 -1
  10. package/dist/chunk-7ABCCOVA.js +1 -0
  11. package/dist/{chunk-FYZDWPFY.js.map → chunk-7ABCCOVA.js.map} +1 -1
  12. package/dist/{chunk-UW7FP5S6.js → chunk-7JLIE2YT.js} +1 -1
  13. package/dist/chunk-7JLIE2YT.js.map +1 -0
  14. package/dist/{chunk-QYOZLIPR.js → chunk-AKBP4ULH.js} +1 -1
  15. package/dist/chunk-AKBP4ULH.js.map +1 -0
  16. package/dist/{chunk-2ZCAJFR6.js → chunk-AVZIY77R.js} +1 -1
  17. package/dist/chunk-AVZIY77R.js.map +1 -0
  18. package/dist/{chunk-AMDG4VWD.js → chunk-BW6WOT2G.js} +1 -1
  19. package/dist/chunk-BW6WOT2G.js.map +1 -0
  20. package/dist/{chunk-SPUECDEK.js → chunk-CAALG6EM.js} +1 -1
  21. package/dist/{chunk-3FKDV3W4.js → chunk-CBGDQUVP.js} +1 -1
  22. package/dist/{chunk-MA2VFACS.js → chunk-CIIC5YSI.js} +1 -1
  23. package/dist/{chunk-O6GKAYC6.js → chunk-CL66AXXT.js} +1 -1
  24. package/dist/chunk-CL66AXXT.js.map +1 -0
  25. package/dist/{chunk-DYQSQZVT.js → chunk-CQHD5IHT.js} +1 -1
  26. package/dist/chunk-CQHD5IHT.js.map +1 -0
  27. package/dist/{chunk-H5OAPB2Y.js → chunk-EEWDLSCT.js} +1 -1
  28. package/dist/{chunk-J5HVSLP7.js → chunk-EFVZZ3UR.js} +1 -1
  29. package/dist/{chunk-VHWAG4ZM.js → chunk-FIY4MTXC.js} +1 -1
  30. package/dist/{chunk-VIOFNSO2.js → chunk-FQWI5UT7.js} +1 -1
  31. package/dist/chunk-FQWI5UT7.js.map +1 -0
  32. package/dist/{chunk-MFC2JUHY.js → chunk-H4J6BULN.js} +1 -1
  33. package/dist/{chunk-MFC2JUHY.js.map → chunk-H4J6BULN.js.map} +1 -1
  34. package/dist/{chunk-PKWJFH57.js → chunk-HNKGUVQT.js} +1 -1
  35. package/dist/{chunk-5LFNNWB4.js → chunk-HQZCMOV5.js} +1 -1
  36. package/dist/{chunk-JRY5TCUM.js → chunk-HVRHXRP6.js} +1 -1
  37. package/dist/{chunk-VLR3CPYE.js → chunk-I3T6UG4N.js} +1 -1
  38. package/dist/chunk-I3T6UG4N.js.map +1 -0
  39. package/dist/{chunk-SBXJHZAY.js → chunk-IDKLDYJM.js} +1 -1
  40. package/dist/{chunk-NXQ5HVAF.js → chunk-IHVBHK4S.js} +1 -1
  41. package/dist/chunk-IHVBHK4S.js.map +1 -0
  42. package/dist/{chunk-6EUTKLZA.js → chunk-IOFW6KW3.js} +1 -1
  43. package/dist/chunk-J726LZFG.js +1 -0
  44. package/dist/chunk-J726LZFG.js.map +1 -0
  45. package/dist/{chunk-K2OFGN44.js → chunk-KCHWGYJF.js} +1 -1
  46. package/dist/{chunk-MWTYSIRS.js → chunk-KUKQHDC5.js} +1 -1
  47. package/dist/{chunk-MWTYSIRS.js.map → chunk-KUKQHDC5.js.map} +1 -1
  48. package/dist/{chunk-6GG7FCXY.js → chunk-KW3HNS5S.js} +1 -1
  49. package/dist/{chunk-3RWMCGZU.js → chunk-LZDFH4GB.js} +1 -1
  50. package/dist/{chunk-BXA5EVPM.js → chunk-O42G3HNO.js} +1 -1
  51. package/dist/{chunk-RT4BGIIF.js → chunk-OUOPHOS3.js} +1 -1
  52. package/dist/{chunk-RPHZUN3P.js → chunk-PA6CL6LK.js} +1 -1
  53. package/dist/{chunk-4NFVHN5G.js → chunk-QHS6ZPJI.js} +1 -1
  54. package/dist/chunk-QHS6ZPJI.js.map +1 -0
  55. package/dist/{chunk-CDUIG4WQ.js → chunk-QOLVVEU5.js} +1 -1
  56. package/dist/chunk-QOLVVEU5.js.map +1 -0
  57. package/dist/{chunk-7MNN27JF.js → chunk-UKIG7GFX.js} +1 -1
  58. package/dist/{chunk-RB5HY3XD.js → chunk-UOSPZFQA.js} +1 -1
  59. package/dist/chunk-VLFQ27ZT.js +1 -0
  60. package/dist/chunk-VLFQ27ZT.js.map +1 -0
  61. package/dist/{chunk-DYMBTM73.js → chunk-WHYNHNWY.js} +1 -1
  62. package/dist/chunk-WHYNHNWY.js.map +1 -0
  63. package/dist/{chunk-JG2H6XAB.js → chunk-WIZSIXXQ.js} +1 -1
  64. package/dist/{chunk-7T43HWEL.js → chunk-WSBQZHQ5.js} +1 -1
  65. package/dist/chunk-WSBQZHQ5.js.map +1 -0
  66. package/dist/{chunk-YU7HOW3Q.js → chunk-X4CIRNUQ.js} +1 -1
  67. package/dist/chunk-X4CIRNUQ.js.map +1 -0
  68. package/dist/{chunk-7FQ7Z3RO.js → chunk-XHPL3YQR.js} +1 -1
  69. package/dist/chunk-XHPL3YQR.js.map +1 -0
  70. package/dist/{chunk-CY5V5W5V.js → chunk-Y767NEWB.js} +1 -1
  71. package/dist/chunk-Y767NEWB.js.map +1 -0
  72. package/dist/{chunk-2WENKTKS.js → chunk-YAZ6Y4QK.js} +1 -1
  73. package/dist/chunk-YAZ6Y4QK.js.map +1 -0
  74. package/dist/{chunk-FDRRHETK.js → chunk-YHALYQGQ.js} +1 -1
  75. package/dist/chunk-ZBNPXH3W.js +1 -0
  76. package/dist/{chunk-HPW3XWUB.js.map → chunk-ZBNPXH3W.js.map} +1 -1
  77. package/dist/commands/index.cjs.map +1 -1
  78. package/dist/commands/index.js +1 -1
  79. package/dist/errors/index.cjs.map +1 -1
  80. package/dist/errors/index.js +1 -1
  81. package/dist/events/index.cjs.map +1 -1
  82. package/dist/events/index.js +1 -1
  83. package/dist/index.cjs +1 -1
  84. package/dist/index.cjs.map +1 -1
  85. package/dist/index.js +1 -1
  86. package/dist/models/alarm.cjs +1 -1
  87. package/dist/models/alarm.cjs.map +1 -1
  88. package/dist/models/alarm.d.cts +3 -3
  89. package/dist/models/alarm.d.ts +3 -3
  90. package/dist/models/alarm.js +1 -1
  91. package/dist/models/announcement.cjs +1 -1
  92. package/dist/models/announcement.cjs.map +1 -1
  93. package/dist/models/announcement.js +1 -1
  94. package/dist/models/automation.cjs +1 -1
  95. package/dist/models/automation.cjs.map +1 -1
  96. package/dist/models/automation.js +1 -1
  97. package/dist/models/camera.cjs +1 -1
  98. package/dist/models/camera.cjs.map +1 -1
  99. package/dist/models/camera.d.cts +10 -3
  100. package/dist/models/camera.d.ts +10 -3
  101. package/dist/models/camera.js +1 -1
  102. package/dist/models/category.cjs +1 -1
  103. package/dist/models/category.cjs.map +1 -1
  104. package/dist/models/category.d.cts +3 -3
  105. package/dist/models/category.d.ts +3 -3
  106. package/dist/models/category.js +1 -1
  107. package/dist/models/courtesy.cjs +1 -1
  108. package/dist/models/courtesy.cjs.map +1 -1
  109. package/dist/models/courtesy.d.cts +3 -3
  110. package/dist/models/courtesy.d.ts +3 -3
  111. package/dist/models/courtesy.js +1 -1
  112. package/dist/models/credential.cjs +1 -1
  113. package/dist/models/credential.cjs.map +1 -1
  114. package/dist/models/credential.d.cts +3 -3
  115. package/dist/models/credential.d.ts +3 -3
  116. package/dist/models/credential.js +1 -1
  117. package/dist/models/deviceRouter.cjs +1 -1
  118. package/dist/models/deviceRouter.cjs.map +1 -1
  119. package/dist/models/deviceRouter.js +1 -1
  120. package/dist/models/dimmer.cjs +1 -1
  121. package/dist/models/dimmer.cjs.map +1 -1
  122. package/dist/models/dimmer.d.cts +3 -3
  123. package/dist/models/dimmer.d.ts +3 -3
  124. package/dist/models/dimmer.js +1 -1
  125. package/dist/models/discoveredDevice.cjs +1 -1
  126. package/dist/models/discoveredDevice.cjs.map +1 -1
  127. package/dist/models/discoveredDevice.js +1 -1
  128. package/dist/models/emailMessage.cjs +1 -1
  129. package/dist/models/emailMessage.cjs.map +1 -1
  130. package/dist/models/emailMessage.js +1 -1
  131. package/dist/models/energyReport.cjs +1 -1
  132. package/dist/models/energyReport.cjs.map +1 -1
  133. package/dist/models/energyReport.js +1 -1
  134. package/dist/models/energyReportShard.cjs +1 -1
  135. package/dist/models/energyReportShard.cjs.map +1 -1
  136. package/dist/models/energyReportShard.js +1 -1
  137. package/dist/models/gateway.cjs +1 -1
  138. package/dist/models/gateway.cjs.map +1 -1
  139. package/dist/models/gateway.d.cts +3 -3
  140. package/dist/models/gateway.d.ts +3 -3
  141. package/dist/models/gateway.js +1 -1
  142. package/dist/models/identification.cjs +1 -1
  143. package/dist/models/identification.cjs.map +1 -1
  144. package/dist/models/identification.js +1 -1
  145. package/dist/models/index.cjs +1 -1
  146. package/dist/models/index.cjs.map +1 -1
  147. package/dist/models/index.js +1 -1
  148. package/dist/models/issue.cjs +1 -1
  149. package/dist/models/issue.cjs.map +1 -1
  150. package/dist/models/issue.js +1 -1
  151. package/dist/models/lock.cjs +1 -1
  152. package/dist/models/lock.cjs.map +1 -1
  153. package/dist/models/lock.d.cts +3 -3
  154. package/dist/models/lock.d.ts +3 -3
  155. package/dist/models/lock.js +1 -1
  156. package/dist/models/log.cjs +1 -1
  157. package/dist/models/log.cjs.map +1 -1
  158. package/dist/models/log.d.cts +3 -3
  159. package/dist/models/log.d.ts +3 -3
  160. package/dist/models/log.js +1 -1
  161. package/dist/models/mediaFile.cjs +1 -1
  162. package/dist/models/mediaFile.cjs.map +1 -1
  163. package/dist/models/mediaFile.js +1 -1
  164. package/dist/models/mediaSource.cjs +1 -1
  165. package/dist/models/mediaSource.cjs.map +1 -1
  166. package/dist/models/mediaSource.d.cts +3 -3
  167. package/dist/models/mediaSource.d.ts +3 -3
  168. package/dist/models/mediaSource.js +1 -1
  169. package/dist/models/motionSensor.cjs +1 -1
  170. package/dist/models/motionSensor.cjs.map +1 -1
  171. package/dist/models/motionSensor.d.cts +3 -3
  172. package/dist/models/motionSensor.d.ts +3 -3
  173. package/dist/models/motionSensor.js +1 -1
  174. package/dist/models/order.cjs +1 -1
  175. package/dist/models/order.cjs.map +1 -1
  176. package/dist/models/order.js +1 -1
  177. package/dist/models/organization.cjs +1 -1
  178. package/dist/models/organization.cjs.map +1 -1
  179. package/dist/models/organization.js +1 -1
  180. package/dist/models/payment.cjs +1 -1
  181. package/dist/models/payment.cjs.map +1 -1
  182. package/dist/models/payment.js +1 -1
  183. package/dist/models/policy.cjs +1 -1
  184. package/dist/models/policy.cjs.map +1 -1
  185. package/dist/models/policy.js +1 -1
  186. package/dist/models/product.cjs +1 -1
  187. package/dist/models/product.cjs.map +1 -1
  188. package/dist/models/product.d.cts +3 -3
  189. package/dist/models/product.d.ts +3 -3
  190. package/dist/models/product.js +1 -1
  191. package/dist/models/property.cjs +1 -1
  192. package/dist/models/property.cjs.map +1 -1
  193. package/dist/models/property.js +1 -1
  194. package/dist/models/reservation.cjs +1 -1
  195. package/dist/models/reservation.cjs.map +1 -1
  196. package/dist/models/reservation.d.cts +3 -3
  197. package/dist/models/reservation.d.ts +3 -3
  198. package/dist/models/reservation.js +1 -1
  199. package/dist/models/room.cjs +1 -1
  200. package/dist/models/room.cjs.map +1 -1
  201. package/dist/models/room.d.cts +3 -1
  202. package/dist/models/room.d.ts +3 -1
  203. package/dist/models/room.js +1 -1
  204. package/dist/models/scene.cjs +1 -1
  205. package/dist/models/scene.cjs.map +1 -1
  206. package/dist/models/scene.js +1 -1
  207. package/dist/models/shortLink.cjs +1 -1
  208. package/dist/models/shortLink.cjs.map +1 -1
  209. package/dist/models/shortLink.js +1 -1
  210. package/dist/models/smsMessage.cjs +1 -1
  211. package/dist/models/smsMessage.cjs.map +1 -1
  212. package/dist/models/smsMessage.js +1 -1
  213. package/dist/models/space.cjs +1 -1
  214. package/dist/models/space.cjs.map +1 -1
  215. package/dist/models/space.d.cts +3 -3
  216. package/dist/models/space.d.ts +3 -3
  217. package/dist/models/space.js +1 -1
  218. package/dist/models/switch.cjs +1 -1
  219. package/dist/models/switch.cjs.map +1 -1
  220. package/dist/models/switch.d.cts +3 -3
  221. package/dist/models/switch.d.ts +3 -3
  222. package/dist/models/switch.js +1 -1
  223. package/dist/models/systemUser.cjs +1 -1
  224. package/dist/models/systemUser.cjs.map +1 -1
  225. package/dist/models/systemUser.d.cts +3 -3
  226. package/dist/models/systemUser.d.ts +3 -3
  227. package/dist/models/systemUser.js +1 -1
  228. package/dist/models/thermostat.cjs +1 -1
  229. package/dist/models/thermostat.cjs.map +1 -1
  230. package/dist/models/thermostat.d.cts +3 -3
  231. package/dist/models/thermostat.d.ts +3 -3
  232. package/dist/models/thermostat.js +1 -1
  233. package/dist/models/ticket.cjs +1 -1
  234. package/dist/models/ticket.cjs.map +1 -1
  235. package/dist/models/ticket.js +1 -1
  236. package/dist/models/timeSheet.cjs +1 -1
  237. package/dist/models/timeSheet.cjs.map +1 -1
  238. package/dist/models/timeSheet.js +1 -1
  239. package/dist/models/user.cjs +1 -1
  240. package/dist/models/user.cjs.map +1 -1
  241. package/dist/models/user.js +1 -1
  242. package/dist/models/vendor.cjs +1 -1
  243. package/dist/models/vendor.cjs.map +1 -1
  244. package/dist/models/vendor.js +1 -1
  245. package/dist/models/windowCovering.cjs +1 -1
  246. package/dist/models/windowCovering.cjs.map +1 -1
  247. package/dist/models/windowCovering.d.cts +3 -3
  248. package/dist/models/windowCovering.d.ts +3 -3
  249. package/dist/models/windowCovering.js +1 -1
  250. package/dist/useCases/index.cjs.map +1 -1
  251. package/dist/useCases/index.js +1 -1
  252. package/dist/utils.cjs +1 -1
  253. package/dist/utils.cjs.map +1 -1
  254. package/dist/utils.js +1 -1
  255. package/package.json +1 -1
  256. package/dist/chunk-2WENKTKS.js.map +0 -1
  257. package/dist/chunk-2ZCAJFR6.js.map +0 -1
  258. package/dist/chunk-4NFVHN5G.js.map +0 -1
  259. package/dist/chunk-6VPU637U.js.map +0 -1
  260. package/dist/chunk-7FQ7Z3RO.js.map +0 -1
  261. package/dist/chunk-7T43HWEL.js.map +0 -1
  262. package/dist/chunk-AMDG4VWD.js.map +0 -1
  263. package/dist/chunk-CDUIG4WQ.js.map +0 -1
  264. package/dist/chunk-CY5V5W5V.js.map +0 -1
  265. package/dist/chunk-D66JCFTT.js +0 -1
  266. package/dist/chunk-D66JCFTT.js.map +0 -1
  267. package/dist/chunk-DYMBTM73.js.map +0 -1
  268. package/dist/chunk-DYQSQZVT.js.map +0 -1
  269. package/dist/chunk-FYZDWPFY.js +0 -1
  270. package/dist/chunk-HB4EGDYH.js +0 -1
  271. package/dist/chunk-HB4EGDYH.js.map +0 -1
  272. package/dist/chunk-HPW3XWUB.js +0 -1
  273. package/dist/chunk-NXQ5HVAF.js.map +0 -1
  274. package/dist/chunk-O6GKAYC6.js.map +0 -1
  275. package/dist/chunk-QYOZLIPR.js.map +0 -1
  276. package/dist/chunk-UW7FP5S6.js.map +0 -1
  277. package/dist/chunk-VIOFNSO2.js.map +0 -1
  278. package/dist/chunk-VLR3CPYE.js.map +0 -1
  279. package/dist/chunk-YU7HOW3Q.js.map +0 -1
  280. /package/dist/{chunk-CAQ76IFU.js.map → chunk-4HA37GSM.js.map} +0 -0
  281. /package/dist/{chunk-TOF7KO6L.js.map → chunk-6QIZNOTQ.js.map} +0 -0
  282. /package/dist/{chunk-YTKXZUMB.js.map → chunk-74WBAGSV.js.map} +0 -0
  283. /package/dist/{chunk-SPUECDEK.js.map → chunk-CAALG6EM.js.map} +0 -0
  284. /package/dist/{chunk-3FKDV3W4.js.map → chunk-CBGDQUVP.js.map} +0 -0
  285. /package/dist/{chunk-MA2VFACS.js.map → chunk-CIIC5YSI.js.map} +0 -0
  286. /package/dist/{chunk-H5OAPB2Y.js.map → chunk-EEWDLSCT.js.map} +0 -0
  287. /package/dist/{chunk-J5HVSLP7.js.map → chunk-EFVZZ3UR.js.map} +0 -0
  288. /package/dist/{chunk-VHWAG4ZM.js.map → chunk-FIY4MTXC.js.map} +0 -0
  289. /package/dist/{chunk-PKWJFH57.js.map → chunk-HNKGUVQT.js.map} +0 -0
  290. /package/dist/{chunk-5LFNNWB4.js.map → chunk-HQZCMOV5.js.map} +0 -0
  291. /package/dist/{chunk-JRY5TCUM.js.map → chunk-HVRHXRP6.js.map} +0 -0
  292. /package/dist/{chunk-SBXJHZAY.js.map → chunk-IDKLDYJM.js.map} +0 -0
  293. /package/dist/{chunk-6EUTKLZA.js.map → chunk-IOFW6KW3.js.map} +0 -0
  294. /package/dist/{chunk-K2OFGN44.js.map → chunk-KCHWGYJF.js.map} +0 -0
  295. /package/dist/{chunk-6GG7FCXY.js.map → chunk-KW3HNS5S.js.map} +0 -0
  296. /package/dist/{chunk-3RWMCGZU.js.map → chunk-LZDFH4GB.js.map} +0 -0
  297. /package/dist/{chunk-BXA5EVPM.js.map → chunk-O42G3HNO.js.map} +0 -0
  298. /package/dist/{chunk-RT4BGIIF.js.map → chunk-OUOPHOS3.js.map} +0 -0
  299. /package/dist/{chunk-RPHZUN3P.js.map → chunk-PA6CL6LK.js.map} +0 -0
  300. /package/dist/{chunk-7MNN27JF.js.map → chunk-UKIG7GFX.js.map} +0 -0
  301. /package/dist/{chunk-RB5HY3XD.js.map → chunk-UOSPZFQA.js.map} +0 -0
  302. /package/dist/{chunk-JG2H6XAB.js.map → chunk-WIZSIXXQ.js.map} +0 -0
  303. /package/dist/{chunk-FDRRHETK.js.map → chunk-YHALYQGQ.js.map} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/models/motionSensor.js"],"sourcesContent":["/* @ts-nocheck */\n/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity\";\nimport { validateMotionSensor as validate } from \"../validate\";\n\n/**\n * @typedef {Object} MotionSensorData Any smart motion sensor\n * @property {string} id - Identifier of the object.\n * @property {string} [name]\n * @property {(\"alarm\"|\"dimmer\"|\"switch\"|\"motionSensor\"|\"windowCovering\"|\"camera\"|\"mediaSource\"|\"thermostat\"|\"lock\"|\"courtesy\"|\"gateway\"|\"tv\"|\"dvr\"|\"appleTv\"|\"discPlayer\"|\"mediaPlayer\"|\"uncontrolledDevice\")} type\n * @property {boolean} [offline]\n * @property {(\"adlink\"|\"aws-kinesis\"|\"bacnet\"|\"butler\"|\"comelit\"|\"crestron\"|\"dell\"|\"digital-watchdog\"|\"distech\"|\"dmp\"|\"doorbird\"|\"dormakaba\"|\"dsc\"|\"ecobee\"|\"epson\"|\"geovision-rs\"|\"geovision-as-manager\"|\"honeywell-vista\"|\"igor\"|\"inncom\"|\"isapi\"|\"kohost-k7\"|\"kohost\"|\"lg\"|\"lg-webos\"|\"lapi\"|\"lirc\"|\"mews\"|\"mht\"|\"paxton\"|\"pelican-wireless\"|\"power-shades\"|\"rachio\"|\"rebrandly\"|\"relay\"|\"rtsp\"|\"salto\"|\"salto-irn\"|\"samsung\"|\"se\"|\"sendgrid\"|\"sonifi\"|\"stay-n-touch\"|\"storable\"|\"twilio\"|\"unifi\"|\"valcom\"|\"vivotek\"|\"vizio\"|\"wisenet\"|\"cloudflare-images\"|\"cloudflare-stream\"|\"insperia-privacy\")} driver - Driver used to communicate with the object.\n * @property {string} [systemId] - Identifier of the object, directly related to the system.\n * @property {(\"button 1\"|\"button 2\"|\"button 3\"|\"button 4\"|\"button 5\"|\"idle\"|\"powerHasBeedApplied\"|\"acMainsDisconnected\"|\"acMainsReconnected\"|\"replaceBatterySoon\"|\"replaceBatteryNow\"|\"batteryOk\"|\"hardwareFailure\"|\"softwareFailure\"|\"hardwareFailureWithCode\"|\"softwareFailureWithCode\"|\"motionDetection\"|\"airFilterNeedsCleaned\"|\"airFilterNeedsReplaced\"|\"smokeDetected\"|\"outsideSafeTemperatureRange\"|\"outsideSafeHumidityRange\"|\"scheduleMaintenance\"|\"doorAjar\"|\"communicationFailure\"|\"communicationOk\"|\"burglarAlarm\"|\"fireAlarm\")[]} [supportedNotifications]\n * @property {{name?: string, timestamp?: number, description?: string}} [notification]\n * @property {number} [watts]\n * @property {string} [icon]\n * @property {string} [modelNumber]\n * @property {string} [serialNumber]\n * @property {string} [firmwareVersion]\n */\n\n/**\n * Any smart motion sensor\n * @class MotionSensor\n * @extends {Entity}\n */\nexport class MotionSensor extends Entity {\n /**\n * @constructor\n * @param {MotionSensorData} data - The data to initialize the MotionSensor with\n */\n constructor(data) {\n super(data);\n this.id = data.id;\n if (data.name !== undefined) this.name = data.name;\n this.type = data.type;\n if (data.offline !== undefined) this.offline = data.offline;\n this.driver = data.driver;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n if (data.supportedNotifications !== undefined)\n this.supportedNotifications = data.supportedNotifications;\n if (data.notification !== undefined) this.notification = data.notification;\n if (data.watts !== undefined) this.watts = data.watts;\n if (data.icon !== undefined) this.icon = data.icon;\n if (data.modelNumber !== undefined) this.modelNumber = data.modelNumber;\n if (data.serialNumber !== undefined) this.serialNumber = data.serialNumber;\n if (data.firmwareVersion !== undefined)\n this.firmwareVersion = data.firmwareVersion;\n }\n}\n\nObject.defineProperty(MotionSensor.prototype, \"schema\", {\n value: {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"motionSensor.json\",\n title: \"Motion Sensor\",\n description: \"Any smart motion sensor\",\n type: \"object\",\n required: [\"id\", \"type\", \"driver\"],\n additionalProperties: false,\n properties: {\n id: { $ref: \"definitions.json#/definitions/id\" },\n name: { type: \"string\" },\n type: { $ref: \"definitions.json#/definitions/type\" },\n offline: { type: \"boolean\" },\n driver: { $ref: \"definitions.json#/definitions/driver\" },\n systemId: { $ref: \"definitions.json#/definitions/systemId\" },\n supportedNotifications: {\n $ref: \"definitions.json#/definitions/supportedNotifications\",\n },\n notification: { $ref: \"definitions.json#/definitions/notification\" },\n watts: { $ref: \"definitions.json#/definitions/watts\" },\n icon: { type: \"string\" },\n modelNumber: { type: \"string\" },\n serialNumber: { type: \"string\" },\n firmwareVersion: { type: \"string\" },\n },\n },\n});\n\nObject.defineProperty(MotionSensor.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;;;;;;;;AA4BO,IAAM,eAAN,cAA2B,OAAO;AAAA,EA5BzC,OA4ByC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAKvC,YAAY,MAAM;AAChB,UAAM,IAAI;AACV,SAAK,KAAK,KAAK;AACf,QAAI,KAAK,SAAS,OAAW,MAAK,OAAO,KAAK;AAC9C,SAAK,OAAO,KAAK;AACjB,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,SAAK,SAAS,KAAK;AACnB,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,2BAA2B;AAClC,WAAK,yBAAyB,KAAK;AACrC,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,QAAI,KAAK,UAAU,OAAW,MAAK,QAAQ,KAAK;AAChD,QAAI,KAAK,SAAS,OAAW,MAAK,OAAO,KAAK;AAC9C,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAC5D,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,QAAI,KAAK,oBAAoB;AAC3B,WAAK,kBAAkB,KAAK;AAAA,EAChC;AACF;AAEA,OAAO,eAAe,aAAa,WAAW,UAAU;AAAA,EACtD,OAAO;AAAA,IACL,SAAS;AAAA,IACT,KAAK;AAAA,IACL,OAAO;AAAA,IACP,aAAa;AAAA,IACb,MAAM;AAAA,IACN,UAAU,CAAC,MAAM,QAAQ,QAAQ;AAAA,IACjC,sBAAsB;AAAA,IACtB,YAAY;AAAA,MACV,IAAI,EAAE,MAAM,mCAAmC;AAAA,MAC/C,MAAM,EAAE,MAAM,SAAS;AAAA,MACvB,MAAM,EAAE,MAAM,qCAAqC;AAAA,MACnD,SAAS,EAAE,MAAM,UAAU;AAAA,MAC3B,QAAQ,EAAE,MAAM,uCAAuC;AAAA,MACvD,UAAU,EAAE,MAAM,yCAAyC;AAAA,MAC3D,wBAAwB;AAAA,QACtB,MAAM;AAAA,MACR;AAAA,MACA,cAAc,EAAE,MAAM,6CAA6C;AAAA,MACnE,OAAO,EAAE,MAAM,sCAAsC;AAAA,MACrD,MAAM,EAAE,MAAM,SAAS;AAAA,MACvB,aAAa,EAAE,MAAM,SAAS;AAAA,MAC9B,cAAc,EAAE,MAAM,SAAS;AAAA,MAC/B,iBAAiB,EAAE,MAAM,SAAS;AAAA,IACpC;AAAA,EACF;AACF,CAAC;AAED,OAAO,eAAe,aAAa,WAAW,aAAa;AAAA,EACzD,KAAK,kCAAY;AACf,WAAO;AAAA,EACT,GAFK;AAGP,CAAC;","names":[]}
@@ -1 +1 @@
1
- import{validateDimmer}from"./chunk-HB4EGDYH.js";import{Entity}from"./chunk-YPJMXYGL.js";import{__name}from"./chunk-XE4OXN2W.js";var Dimmer=class extends Entity{static{__name(this,"Dimmer")}constructor(data){super(data),this.id=data.id,void 0!==data.name&&(this.name=data.name),this.type=data.type,void 0!==data.supportedNotifications&&(this.supportedNotifications=data.supportedNotifications),void 0!==data.notification&&(this.notification=data.notification),this.driver=data.driver,void 0!==data.offline&&(this.offline=data.offline),this.level=data.level,void 0!==data.systemId&&(this.systemId=data.systemId),void 0!==data.watts&&(this.watts=data.watts),void 0!==data.icon&&(this.icon=data.icon),void 0!==data.modelNumber&&(this.modelNumber=data.modelNumber),void 0!==data.serialNumber&&(this.serialNumber=data.serialNumber),void 0!==data.firmwareVersion&&(this.firmwareVersion=data.firmwareVersion)}};Object.defineProperty(Dimmer.prototype,"schema",{value:{$schema:"http://json-schema.org/draft-07/schema",$id:"dimmer.json",title:"Dimmer",description:"Any smart dimmer",type:"object",properties:{id:{$ref:"definitions.json#/definitions/id"},name:{type:"string"},type:{$ref:"definitions.json#/definitions/type"},supportedNotifications:{$ref:"definitions.json#/definitions/supportedNotifications"},notification:{$ref:"definitions.json#/definitions/notification"},driver:{$ref:"definitions.json#/definitions/driver"},offline:{type:"boolean"},level:{type:["number","null"],minimum:0,maximum:100},systemId:{$ref:"definitions.json#/definitions/systemId"},watts:{$ref:"definitions.json#/definitions/watts"},icon:{type:"string"},modelNumber:{type:"string"},serialNumber:{type:"string"},firmwareVersion:{type:"string"}},required:["id","type","level","driver"]}}),Object.defineProperty(Dimmer.prototype,"validator",{get:__name((function(){return validateDimmer}),"get")});export{Dimmer};//# sourceMappingURL=chunk-YU7HOW3Q.js.map
1
+ import{validateDimmer}from"./chunk-VLFQ27ZT.js";import{Entity}from"./chunk-YPJMXYGL.js";import{__name}from"./chunk-XE4OXN2W.js";var Dimmer=class extends Entity{static{__name(this,"Dimmer")}constructor(data){super(data),this.id=data.id,void 0!==data.name&&(this.name=data.name),this.type=data.type,void 0!==data.supportedNotifications&&(this.supportedNotifications=data.supportedNotifications),void 0!==data.notification&&(this.notification=data.notification),this.driver=data.driver,void 0!==data.offline&&(this.offline=data.offline),this.level=data.level,void 0!==data.systemId&&(this.systemId=data.systemId),void 0!==data.watts&&(this.watts=data.watts),void 0!==data.icon&&(this.icon=data.icon),void 0!==data.modelNumber&&(this.modelNumber=data.modelNumber),void 0!==data.serialNumber&&(this.serialNumber=data.serialNumber),void 0!==data.firmwareVersion&&(this.firmwareVersion=data.firmwareVersion)}};Object.defineProperty(Dimmer.prototype,"schema",{value:{$schema:"http://json-schema.org/draft-07/schema",$id:"dimmer.json",title:"Dimmer",description:"Any smart dimmer",type:"object",properties:{id:{$ref:"definitions.json#/definitions/id"},name:{type:"string"},type:{$ref:"definitions.json#/definitions/type"},supportedNotifications:{$ref:"definitions.json#/definitions/supportedNotifications"},notification:{$ref:"definitions.json#/definitions/notification"},driver:{$ref:"definitions.json#/definitions/driver"},offline:{type:"boolean"},level:{type:["number","null"],minimum:0,maximum:100},systemId:{$ref:"definitions.json#/definitions/systemId"},watts:{$ref:"definitions.json#/definitions/watts"},icon:{type:"string"},modelNumber:{type:"string"},serialNumber:{type:"string"},firmwareVersion:{type:"string"}},required:["id","type","level","driver"]}}),Object.defineProperty(Dimmer.prototype,"validator",{get:__name((function(){return validateDimmer}),"get")});export{Dimmer};//# sourceMappingURL=chunk-X4CIRNUQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/models/dimmer.js"],"sourcesContent":["/* @ts-nocheck */\n/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity\";\nimport { validateDimmer as validate } from \"../validate\";\n\n/**\n * @typedef {Object} DimmerData Any smart dimmer\n * @property {string} id - Identifier of the object.\n * @property {string} [name]\n * @property {(\"alarm\"|\"dimmer\"|\"switch\"|\"motionSensor\"|\"windowCovering\"|\"camera\"|\"mediaSource\"|\"thermostat\"|\"lock\"|\"courtesy\"|\"gateway\"|\"tv\"|\"dvr\"|\"appleTv\"|\"discPlayer\"|\"mediaPlayer\"|\"uncontrolledDevice\")} type\n * @property {(\"button 1\"|\"button 2\"|\"button 3\"|\"button 4\"|\"button 5\"|\"idle\"|\"powerHasBeedApplied\"|\"acMainsDisconnected\"|\"acMainsReconnected\"|\"replaceBatterySoon\"|\"replaceBatteryNow\"|\"batteryOk\"|\"hardwareFailure\"|\"softwareFailure\"|\"hardwareFailureWithCode\"|\"softwareFailureWithCode\"|\"motionDetection\"|\"airFilterNeedsCleaned\"|\"airFilterNeedsReplaced\"|\"smokeDetected\"|\"outsideSafeTemperatureRange\"|\"outsideSafeHumidityRange\"|\"scheduleMaintenance\"|\"doorAjar\"|\"communicationFailure\"|\"communicationOk\"|\"burglarAlarm\"|\"fireAlarm\")[]} [supportedNotifications]\n * @property {{name?: string, timestamp?: number, description?: string}} [notification]\n * @property {(\"adlink\"|\"aws-kinesis\"|\"bacnet\"|\"butler\"|\"comelit\"|\"crestron\"|\"dell\"|\"digital-watchdog\"|\"distech\"|\"dmp\"|\"doorbird\"|\"dormakaba\"|\"dsc\"|\"ecobee\"|\"epson\"|\"geovision-rs\"|\"geovision-as-manager\"|\"honeywell-vista\"|\"igor\"|\"inncom\"|\"isapi\"|\"kohost-k7\"|\"kohost\"|\"lg\"|\"lg-webos\"|\"lapi\"|\"lirc\"|\"mews\"|\"mht\"|\"paxton\"|\"pelican-wireless\"|\"power-shades\"|\"rachio\"|\"rebrandly\"|\"relay\"|\"rtsp\"|\"salto\"|\"salto-irn\"|\"samsung\"|\"se\"|\"sendgrid\"|\"sonifi\"|\"stay-n-touch\"|\"storable\"|\"twilio\"|\"unifi\"|\"valcom\"|\"vivotek\"|\"vizio\"|\"wisenet\"|\"cloudflare-images\"|\"cloudflare-stream\"|\"insperia-privacy\")} driver - Driver used to communicate with the object.\n * @property {boolean} [offline]\n * @property {number} level\n * @property {string} [systemId] - Identifier of the object, directly related to the system.\n * @property {number} [watts]\n * @property {string} [icon]\n * @property {string} [modelNumber]\n * @property {string} [serialNumber]\n * @property {string} [firmwareVersion]\n */\n\n/**\n * Any smart dimmer\n * @class Dimmer\n * @extends {Entity}\n */\nexport class Dimmer extends Entity {\n /**\n * @constructor\n * @param {DimmerData} data - The data to initialize the Dimmer with\n */\n constructor(data) {\n super(data);\n this.id = data.id;\n if (data.name !== undefined) this.name = data.name;\n this.type = data.type;\n if (data.supportedNotifications !== undefined)\n this.supportedNotifications = data.supportedNotifications;\n if (data.notification !== undefined) this.notification = data.notification;\n this.driver = data.driver;\n if (data.offline !== undefined) this.offline = data.offline;\n this.level = data.level;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n if (data.watts !== undefined) this.watts = data.watts;\n if (data.icon !== undefined) this.icon = data.icon;\n if (data.modelNumber !== undefined) this.modelNumber = data.modelNumber;\n if (data.serialNumber !== undefined) this.serialNumber = data.serialNumber;\n if (data.firmwareVersion !== undefined)\n this.firmwareVersion = data.firmwareVersion;\n }\n}\n\nObject.defineProperty(Dimmer.prototype, \"schema\", {\n value: {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"dimmer.json\",\n title: \"Dimmer\",\n description: \"Any smart dimmer\",\n type: \"object\",\n properties: {\n id: { $ref: \"definitions.json#/definitions/id\" },\n name: { type: \"string\" },\n type: { $ref: \"definitions.json#/definitions/type\" },\n supportedNotifications: {\n $ref: \"definitions.json#/definitions/supportedNotifications\",\n },\n notification: { $ref: \"definitions.json#/definitions/notification\" },\n driver: { $ref: \"definitions.json#/definitions/driver\" },\n offline: { type: \"boolean\" },\n level: { type: [\"number\", \"null\"], minimum: 0, maximum: 100 },\n systemId: { $ref: \"definitions.json#/definitions/systemId\" },\n watts: { $ref: \"definitions.json#/definitions/watts\" },\n icon: { type: \"string\" },\n modelNumber: { type: \"string\" },\n serialNumber: { type: \"string\" },\n firmwareVersion: { type: \"string\" },\n },\n required: [\"id\", \"type\", \"level\", \"driver\"],\n },\n});\n\nObject.defineProperty(Dimmer.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;;;;;;;;AA6BO,IAAM,SAAN,cAAqB,OAAO;AAAA,EA7BnC,OA6BmC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAKjC,YAAY,MAAM;AAChB,UAAM,IAAI;AACV,SAAK,KAAK,KAAK;AACf,QAAI,KAAK,SAAS,OAAW,MAAK,OAAO,KAAK;AAC9C,SAAK,OAAO,KAAK;AACjB,QAAI,KAAK,2BAA2B;AAClC,WAAK,yBAAyB,KAAK;AACrC,QAAI,KAAK,iBAAiB,OAAW,MAAK,eAAe,KAAK;AAC9D,SAAK,SAAS,KAAK;AACnB,QAAI,KAAK,YAAY,OAAW,MAAK,UAAU,KAAK;AACpD,SAAK,QAAQ,KAAK;AAClB,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,UAAU,OAAW,MAAK,QAAQ,KAAK;AAChD,QAAI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./chunk-XE4OXN2W.js";var Product=class extends Entity{static{__name(this,"Product")}constructor(data){super(data),void 0!==data.id&&(this.id=data.id),void 0!==data.type&&(this.type=data.type),this.name=data.name,this.driver=data.driver,void 0!==data.description&&(this.description=data.description),this.price=data.price,void 0!==data.tax&&(this.tax=data.tax),void 0!==data.image&&(this.image=data.image),void 0!==data.category&&(this.category=data.category),void 0!==data.imageUrl&&(this.imageUrl=data.imageUrl),void 0!==data.systemId&&(this.systemId=data.systemId)}};Object.defineProperty(Product.prototype,"schema",{value:{$schema:"http://json-schema.org/draft-07/schema",$id:"product.json",title:"Product",type:"object",required:["name","price","driver"],properties:{id:{$ref:"definitions.json#/definitions/id"},type:{type:"string",default:"product",enum:["product"]},name:{type:"string"},driver:{$ref:"definitions.json#/definitions/driver"},description:{type:"string"},price:{type:"number"},tax:{type:["number","null"]},image:{$ref:"mediaFile.json"},category:{type:"string"},imageUrl:{type:"string",format:"uri",pattern:"^https?://"},systemId:{$ref:"definitions.json#/definitions/systemId"}}}}),Object.defineProperty(Product.prototype,"validator",{get:__name((function(){return validateProduct}),"get")});export{Product};//# sourceMappingURL=chunk-7FQ7Z3RO.js.map
1
+ import{validateProduct}from"./chunk-VLFQ27ZT.js";import{Entity}from"./chunk-YPJMXYGL.js";import{__name}from"./chunk-XE4OXN2W.js";var Product=class extends Entity{static{__name(this,"Product")}constructor(data){super(data),void 0!==data.id&&(this.id=data.id),void 0!==data.type&&(this.type=data.type),this.name=data.name,this.driver=data.driver,void 0!==data.description&&(this.description=data.description),this.price=data.price,void 0!==data.tax&&(this.tax=data.tax),void 0!==data.image&&(this.image=data.image),void 0!==data.category&&(this.category=data.category),void 0!==data.imageUrl&&(this.imageUrl=data.imageUrl),void 0!==data.systemId&&(this.systemId=data.systemId)}};Object.defineProperty(Product.prototype,"schema",{value:{$schema:"http://json-schema.org/draft-07/schema",$id:"product.json",title:"Product",type:"object",required:["name","price","driver"],properties:{id:{$ref:"definitions.json#/definitions/id"},type:{type:"string",default:"product",enum:["product"]},name:{type:"string"},driver:{$ref:"definitions.json#/definitions/driver"},description:{type:"string"},price:{type:"number"},tax:{type:["number","null"]},image:{$ref:"mediaFile.json"},category:{type:"string"},imageUrl:{type:"string",format:"uri",pattern:"^https?://"},systemId:{$ref:"definitions.json#/definitions/systemId"}}}}),Object.defineProperty(Product.prototype,"validator",{get:__name((function(){return validateProduct}),"get")});export{Product};//# sourceMappingURL=chunk-XHPL3YQR.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/models/product.js"],"sourcesContent":["/* @ts-nocheck */\n/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity\";\nimport { validateProduct as validate } from \"../validate\";\n\n/**\n * @typedef {Object} ProductData\n * @property {string} [id] - Identifier of the object.\n * @property {\"product\"} [type] - Default: \"product\"\n * @property {string} name\n * @property {(\"adlink\"|\"aws-kinesis\"|\"bacnet\"|\"butler\"|\"comelit\"|\"crestron\"|\"dell\"|\"digital-watchdog\"|\"distech\"|\"dmp\"|\"doorbird\"|\"dormakaba\"|\"dsc\"|\"ecobee\"|\"epson\"|\"geovision-rs\"|\"geovision-as-manager\"|\"honeywell-vista\"|\"igor\"|\"inncom\"|\"isapi\"|\"kohost-k7\"|\"kohost\"|\"lg\"|\"lg-webos\"|\"lapi\"|\"lirc\"|\"mews\"|\"mht\"|\"paxton\"|\"pelican-wireless\"|\"power-shades\"|\"rachio\"|\"rebrandly\"|\"relay\"|\"rtsp\"|\"salto\"|\"salto-irn\"|\"samsung\"|\"se\"|\"sendgrid\"|\"sonifi\"|\"stay-n-touch\"|\"storable\"|\"twilio\"|\"unifi\"|\"valcom\"|\"vivotek\"|\"vizio\"|\"wisenet\"|\"cloudflare-images\"|\"cloudflare-stream\"|\"insperia-privacy\")} driver - Driver used to communicate with the object.\n * @property {string} [description]\n * @property {number} price\n * @property {number} [tax]\n * @property {{id?: any, type: \"mediaFile\", name?: string, fileHash?: string, category?: string, mimeType?: (\"image/*\"|\"image/jpeg\"|\"image/png\"|\"image/gif\"|\"image/webp\"|\"image/avif\"|\"image/svg+xml\"|\"application/pdf\"), data?: string, url?: string, width?: number, height?: number, size?: number, uploadUrl?: string, uploadUrlExpires?: any, createdBy?: string, systemId?: any}} [image] - Any media file\n * @property {string} [category]\n * @property {string} [imageUrl]\n * @property {string} [systemId] - Identifier of the object, directly related to the system.\n */\n\n/**\n *\n * @class Product\n * @extends {Entity}\n */\nexport class Product extends Entity {\n /**\n * @constructor\n * @param {ProductData} data - The data to initialize the Product with\n */\n constructor(data) {\n super(data);\n if (data.id !== undefined) this.id = data.id;\n if (data.type !== undefined) this.type = data.type;\n this.name = data.name;\n this.driver = data.driver;\n if (data.description !== undefined) this.description = data.description;\n this.price = data.price;\n if (data.tax !== undefined) this.tax = data.tax;\n if (data.image !== undefined) this.image = data.image;\n if (data.category !== undefined) this.category = data.category;\n if (data.imageUrl !== undefined) this.imageUrl = data.imageUrl;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n }\n}\n\nObject.defineProperty(Product.prototype, \"schema\", {\n value: {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"product.json\",\n title: \"Product\",\n type: \"object\",\n required: [\"name\", \"price\", \"driver\"],\n properties: {\n id: { $ref: \"definitions.json#/definitions/id\" },\n type: { type: \"string\", default: \"product\", enum: [\"product\"] },\n name: { type: \"string\" },\n driver: { $ref: \"definitions.json#/definitions/driver\" },\n description: { type: \"string\" },\n price: { type: \"number\" },\n tax: { type: [\"number\", \"null\"] },\n image: { $ref: \"mediaFile.json\" },\n category: { type: \"string\" },\n imageUrl: { type: \"string\", format: \"uri\", pattern: \"^https?://\" },\n systemId: { $ref: \"definitions.json#/definitions/systemId\" },\n },\n },\n});\n\nObject.defineProperty(Product.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;;;;;;;;AA0BO,IAAM,UAAN,cAAsB,OAAO;AAAA,EA1BpC,OA0BoC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAA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;AAED,OAAO,eAAe,QAAQ,WAAW,aAAa;AAAA,EACpD,KAAK,kCAAY;AACf,WAAO;AAAA,EACT,GAFK;AAGP,CAAC;","names":[]}
@@ -1 +1 @@
1
- import{validateCredential}from"./chunk-HB4EGDYH.js";import{Entity}from"./chunk-YPJMXYGL.js";import{__name}from"./chunk-XE4OXN2W.js";var Credential=class extends Entity{static{__name(this,"Credential")}constructor(data){super(data),void 0!==data.id&&(this.id=data.id),this.type=data.type,void 0!==data.driver&&(this.driver=data.driver),void 0!==data.discriminator&&(this.discriminator=data.discriminator),this.credential=data.credential,void 0!==data.userId&&(this.userId=data.userId),void 0!==data.organizationId&&(this.organizationId=data.organizationId),void 0!==data.propertyId&&(this.propertyId=data.propertyId),void 0!==data.deviceId&&(this.deviceId=data.deviceId),void 0!==data.userAgent&&(this.userAgent=data.userAgent),this.expires=data.expires,void 0!==data.systemId&&(this.systemId=data.systemId)}};Object.defineProperty(Credential.prototype,"schema",{value:{$schema:"http://json-schema.org/draft-07/schema",$id:"credential.json",title:"Credential",type:"object",required:["type","credential","expires"],properties:{id:{$ref:"definitions.json#/definitions/id"},type:{type:"string",default:"credential"},driver:{$ref:"definitions.json#/definitions/driver"},discriminator:{type:"string",enum:["verificationCode","token","mobileKey","pin","publicKey","passkeyChallenge"]},credential:{type:"string"},userId:{type:"string"},organizationId:{type:"string"},propertyId:{type:"string"},deviceId:{type:"string"},userAgent:{type:"string"},expires:{type:["string","object","null"]},systemId:{$ref:"definitions.json#/definitions/systemId"}}}}),Object.defineProperty(Credential.prototype,"validator",{get:__name((function(){return validateCredential}),"get")});export{Credential};//# sourceMappingURL=chunk-CY5V5W5V.js.map
1
+ import{validateCredential}from"./chunk-VLFQ27ZT.js";import{Entity}from"./chunk-YPJMXYGL.js";import{__name}from"./chunk-XE4OXN2W.js";var Credential=class extends Entity{static{__name(this,"Credential")}constructor(data){super(data),void 0!==data.id&&(this.id=data.id),this.type=data.type,void 0!==data.driver&&(this.driver=data.driver),void 0!==data.discriminator&&(this.discriminator=data.discriminator),this.credential=data.credential,void 0!==data.userId&&(this.userId=data.userId),void 0!==data.organizationId&&(this.organizationId=data.organizationId),void 0!==data.propertyId&&(this.propertyId=data.propertyId),void 0!==data.deviceId&&(this.deviceId=data.deviceId),void 0!==data.userAgent&&(this.userAgent=data.userAgent),this.expires=data.expires,void 0!==data.systemId&&(this.systemId=data.systemId)}};Object.defineProperty(Credential.prototype,"schema",{value:{$schema:"http://json-schema.org/draft-07/schema",$id:"credential.json",title:"Credential",type:"object",required:["type","credential","expires"],properties:{id:{$ref:"definitions.json#/definitions/id"},type:{type:"string",default:"credential"},driver:{$ref:"definitions.json#/definitions/driver"},discriminator:{type:"string",enum:["verificationCode","token","mobileKey","pin","publicKey","passkeyChallenge"]},credential:{type:"string"},userId:{type:"string"},organizationId:{type:"string"},propertyId:{type:"string"},deviceId:{type:"string"},userAgent:{type:"string"},expires:{type:["string","object","null"]},systemId:{$ref:"definitions.json#/definitions/systemId"}}}}),Object.defineProperty(Credential.prototype,"validator",{get:__name((function(){return validateCredential}),"get")});export{Credential};//# sourceMappingURL=chunk-Y767NEWB.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/models/credential.js"],"sourcesContent":["/* @ts-nocheck */\n/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity\";\nimport { validateCredential as validate } from \"../validate\";\n\n/**\n * @typedef {Object} CredentialData\n * @property {string} [id] - Identifier of the object.\n * @property {string} type - Default: \"credential\"\n * @property {(\"adlink\"|\"aws-kinesis\"|\"bacnet\"|\"butler\"|\"comelit\"|\"crestron\"|\"dell\"|\"digital-watchdog\"|\"distech\"|\"dmp\"|\"doorbird\"|\"dormakaba\"|\"dsc\"|\"ecobee\"|\"epson\"|\"geovision-rs\"|\"geovision-as-manager\"|\"honeywell-vista\"|\"igor\"|\"inncom\"|\"isapi\"|\"kohost-k7\"|\"kohost\"|\"lg\"|\"lg-webos\"|\"lapi\"|\"lirc\"|\"mews\"|\"mht\"|\"paxton\"|\"pelican-wireless\"|\"power-shades\"|\"rachio\"|\"rebrandly\"|\"relay\"|\"rtsp\"|\"salto\"|\"salto-irn\"|\"samsung\"|\"se\"|\"sendgrid\"|\"sonifi\"|\"stay-n-touch\"|\"storable\"|\"twilio\"|\"unifi\"|\"valcom\"|\"vivotek\"|\"vizio\"|\"wisenet\"|\"cloudflare-images\"|\"cloudflare-stream\"|\"insperia-privacy\")} [driver] - Driver used to communicate with the object.\n * @property {(\"verificationCode\"|\"token\"|\"mobileKey\"|\"pin\"|\"publicKey\"|\"passkeyChallenge\")} [discriminator]\n * @property {string} credential\n * @property {string} [userId]\n * @property {string} [organizationId]\n * @property {string} [propertyId]\n * @property {string} [deviceId]\n * @property {string} [userAgent]\n * @property {(string|object)} expires\n * @property {string} [systemId] - Identifier of the object, directly related to the system.\n */\n\n/**\n *\n * @class Credential\n * @extends {Entity}\n */\nexport class Credential extends Entity {\n /**\n * @constructor\n * @param {CredentialData} data - The data to initialize the Credential with\n */\n constructor(data) {\n super(data);\n if (data.id !== undefined) this.id = data.id;\n this.type = data.type;\n if (data.driver !== undefined) this.driver = data.driver;\n if (data.discriminator !== undefined)\n this.discriminator = data.discriminator;\n this.credential = data.credential;\n if (data.userId !== undefined) this.userId = data.userId;\n if (data.organizationId !== undefined)\n this.organizationId = data.organizationId;\n if (data.propertyId !== undefined) this.propertyId = data.propertyId;\n if (data.deviceId !== undefined) this.deviceId = data.deviceId;\n if (data.userAgent !== undefined) this.userAgent = data.userAgent;\n this.expires = data.expires;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n }\n}\n\nObject.defineProperty(Credential.prototype, \"schema\", {\n value: {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"credential.json\",\n title: \"Credential\",\n type: \"object\",\n required: [\"type\", \"credential\", \"expires\"],\n properties: {\n id: { $ref: \"definitions.json#/definitions/id\" },\n type: { type: \"string\", default: \"credential\" },\n driver: { $ref: \"definitions.json#/definitions/driver\" },\n discriminator: {\n type: \"string\",\n enum: [\n \"verificationCode\",\n \"token\",\n \"mobileKey\",\n \"pin\",\n \"publicKey\",\n \"passkeyChallenge\",\n ],\n },\n credential: { type: \"string\" },\n userId: { type: \"string\" },\n organizationId: { type: \"string\" },\n propertyId: { type: \"string\" },\n deviceId: { type: \"string\" },\n userAgent: { type: \"string\" },\n expires: { type: [\"string\", \"object\", \"null\"] },\n systemId: { $ref: \"definitions.json#/definitions/systemId\" },\n },\n },\n});\n\nObject.defineProperty(Credential.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;;;;;;;;AA2BO,IAAM,aAAN,cAAyB,OAAO;AAAA,EA3BvC,OA2BuC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAKrC,YAAY,MAAM;AAChB,UAAM,IAAI;AACV,QAAI,KAAK,OAAO,OAAW,MAAK,KAAK,KAAK;AAC1C,SAAK,OAAO,KAAK;AACjB,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,kBAAkB;AACzB,WAAK,gBAAgB,KAAK;AAC5B,SAAK,aAAa,KAAK;AACvB,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,mBAAmB;AAC1B,WAAK,iBAAiB,KAAK;AAC7B,QAAI,KAAK,eAAe,OAAW,MAAK,aAAa,KAAK;AAC1D,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AACtD,QAAI,KAAK,cAAc,OAAW,MAAK,YAAY,KAAK;AACxD,SAAK,UAAU,KAAK;AACpB,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AAAA,EACxD;AACF;AAEA,OAAO,eAAe,WAAW,WAAW,UAAU;AAAA,EACpD,OAAO;AAAA,IACL,SAAS;AAAA,IACT,KAAK;AAAA,IACL,OAAO;AAAA,IACP,MAAM;AAAA,IACN,UAAU,CAAC,QAAQ,cAAc,SAAS;AAAA,IAC1C,YAAY;AAAA,MACV,IAAI,EAAE,MAAM,mCAAmC;AAAA,MAC/C,MAAM,EAAE,MAAM,UAAU,SAAS,aAAa;AAAA,MAC9C,QAAQ,EAAE,MAAM,uCAAuC;AAAA,MACvD,eAAe;AAAA,QACb,MAAM;AAAA,QACN,MAAM;AAAA,UACJ;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,UACA;AAAA,QACF;AAAA,MACF;AAAA,MACA,YAAY,EAAE,MAAM,SAAS;AAAA,MAC7B,QAAQ,EAAE,MAAM,SAAS;AAAA,MACzB,gBAAgB,EAAE,MAAM,SAAS;AAAA,MACjC,YAAY,EAAE,MAAM,SAAS;AAAA,MAC7B,UAAU,EAAE,MAAM,SAAS;AAAA,MAC3B,WAAW,EAAE,MAAM,SAAS;AAAA,MAC5B,SAAS,EAAE,MAAM,CAAC,UAAU,UAAU,MAAM,EAAE;AAAA,MAC9C,UAAU,EAAE,MAAM,yCAAyC;AAAA,IAC7D;AAAA,EACF;AACF,CAAC;AAED,OAAO,eAAe,WAAW,WAAW,aAAa;AAAA,EACvD,KAAK,kCAAY;AACf,WAAO;AAAA,EACT,GAFK;AAGP,CAAC;","names":[]}
@@ -1 +1 @@
1
- import{validateCategory}from"./chunk-HB4EGDYH.js";import{Entity}from"./chunk-YPJMXYGL.js";import{__name}from"./chunk-XE4OXN2W.js";var Category=class extends Entity{static{__name(this,"Category")}constructor(data){super(data),this.id=data.id,this.type=data.type,void 0!==data.name&&(this.name=data.name),void 0!==data.driver&&(this.driver=data.driver),void 0!==data.description&&(this.description=data.description),void 0!==data.image&&(this.image=data.image),void 0!==data.rating&&(this.rating=data.rating),this.discriminator=data.discriminator,void 0!==data.systemId&&(this.systemId=data.systemId)}};Object.defineProperty(Category.prototype,"schema",{value:{$schema:"http://json-schema.org/draft-07/schema",$id:"category.json",title:"Category",type:"object",required:["id","type","discriminator"],properties:{id:{$ref:"definitions.json#/definitions/id"},type:{type:"string",enum:["category"],default:"category"},name:{type:"string",minLength:1},driver:{$ref:"definitions.json#/definitions/driver"},description:{type:"string"},image:{$ref:"mediaFile.json"},rating:{type:"number",minimum:0,maximum:10,default:9},discriminator:{type:"string",enum:["space","product","mediaFile"]},systemId:{$ref:"definitions.json#/definitions/systemId"}}}}),Object.defineProperty(Category.prototype,"validator",{get:__name((function(){return validateCategory}),"get")});export{Category};//# sourceMappingURL=chunk-2WENKTKS.js.map
1
+ import{validateCategory}from"./chunk-VLFQ27ZT.js";import{Entity}from"./chunk-YPJMXYGL.js";import{__name}from"./chunk-XE4OXN2W.js";var Category=class extends Entity{static{__name(this,"Category")}constructor(data){super(data),this.id=data.id,this.type=data.type,void 0!==data.name&&(this.name=data.name),void 0!==data.driver&&(this.driver=data.driver),void 0!==data.description&&(this.description=data.description),void 0!==data.image&&(this.image=data.image),void 0!==data.rating&&(this.rating=data.rating),this.discriminator=data.discriminator,void 0!==data.systemId&&(this.systemId=data.systemId)}};Object.defineProperty(Category.prototype,"schema",{value:{$schema:"http://json-schema.org/draft-07/schema",$id:"category.json",title:"Category",type:"object",required:["id","type","discriminator"],properties:{id:{$ref:"definitions.json#/definitions/id"},type:{type:"string",enum:["category"],default:"category"},name:{type:"string",minLength:1},driver:{$ref:"definitions.json#/definitions/driver"},description:{type:"string"},image:{$ref:"mediaFile.json"},rating:{type:"number",minimum:0,maximum:10,default:9},discriminator:{type:"string",enum:["space","product","mediaFile"]},systemId:{$ref:"definitions.json#/definitions/systemId"}}}}),Object.defineProperty(Category.prototype,"validator",{get:__name((function(){return validateCategory}),"get")});export{Category};//# sourceMappingURL=chunk-YAZ6Y4QK.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/models/category.js"],"sourcesContent":["/* @ts-nocheck */\n/* This file is automatically generated. Do not modify it manually. */\n\nimport { Entity } from \"./entity\";\nimport { validateCategory as validate } from \"../validate\";\n\n/**\n * @typedef {Object} CategoryData\n * @property {string} id - Identifier of the object.\n * @property {\"category\"} type - Default: \"category\"\n * @property {string} [name]\n * @property {(\"adlink\"|\"aws-kinesis\"|\"bacnet\"|\"butler\"|\"comelit\"|\"crestron\"|\"dell\"|\"digital-watchdog\"|\"distech\"|\"dmp\"|\"doorbird\"|\"dormakaba\"|\"dsc\"|\"ecobee\"|\"epson\"|\"geovision-rs\"|\"geovision-as-manager\"|\"honeywell-vista\"|\"igor\"|\"inncom\"|\"isapi\"|\"kohost-k7\"|\"kohost\"|\"lg\"|\"lg-webos\"|\"lapi\"|\"lirc\"|\"mews\"|\"mht\"|\"paxton\"|\"pelican-wireless\"|\"power-shades\"|\"rachio\"|\"rebrandly\"|\"relay\"|\"rtsp\"|\"salto\"|\"salto-irn\"|\"samsung\"|\"se\"|\"sendgrid\"|\"sonifi\"|\"stay-n-touch\"|\"storable\"|\"twilio\"|\"unifi\"|\"valcom\"|\"vivotek\"|\"vizio\"|\"wisenet\"|\"cloudflare-images\"|\"cloudflare-stream\"|\"insperia-privacy\")} [driver] - Driver used to communicate with the object.\n * @property {string} [description]\n * @property {{id?: any, type: \"mediaFile\", name?: string, fileHash?: string, category?: string, mimeType?: (\"image/*\"|\"image/jpeg\"|\"image/png\"|\"image/gif\"|\"image/webp\"|\"image/avif\"|\"image/svg+xml\"|\"application/pdf\"), data?: string, url?: string, width?: number, height?: number, size?: number, uploadUrl?: string, uploadUrlExpires?: any, createdBy?: string, systemId?: any}} [image] - Any media file\n * @property {number} [rating] - Default: 9\n * @property {(\"space\"|\"product\"|\"mediaFile\")} discriminator\n * @property {string} [systemId] - Identifier of the object, directly related to the system.\n */\n\n/**\n *\n * @class Category\n * @extends {Entity}\n */\nexport class Category extends Entity {\n /**\n * @constructor\n * @param {CategoryData} data - The data to initialize the Category with\n */\n constructor(data) {\n super(data);\n this.id = data.id;\n this.type = data.type;\n if (data.name !== undefined) this.name = data.name;\n if (data.driver !== undefined) this.driver = data.driver;\n if (data.description !== undefined) this.description = data.description;\n if (data.image !== undefined) this.image = data.image;\n if (data.rating !== undefined) this.rating = data.rating;\n this.discriminator = data.discriminator;\n if (data.systemId !== undefined) this.systemId = data.systemId;\n }\n}\n\nObject.defineProperty(Category.prototype, \"schema\", {\n value: {\n $schema: \"http://json-schema.org/draft-07/schema\",\n $id: \"category.json\",\n title: \"Category\",\n type: \"object\",\n required: [\"id\", \"type\", \"discriminator\"],\n properties: {\n id: { $ref: \"definitions.json#/definitions/id\" },\n type: { type: \"string\", enum: [\"category\"], default: \"category\" },\n name: { type: \"string\", minLength: 1 },\n driver: { $ref: \"definitions.json#/definitions/driver\" },\n description: { type: \"string\" },\n image: { $ref: \"mediaFile.json\" },\n rating: { type: \"number\", minimum: 0, maximum: 10, default: 9 },\n discriminator: {\n type: \"string\",\n enum: [\"space\", \"product\", \"mediaFile\"],\n },\n systemId: { $ref: \"definitions.json#/definitions/systemId\" },\n },\n },\n});\n\nObject.defineProperty(Category.prototype, \"validator\", {\n get: function () {\n return validate;\n },\n});\n"],"mappings":";;;;;;;;;;;AAwBO,IAAM,WAAN,cAAuB,OAAO;AAAA,EAxBrC,OAwBqC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAKnC,YAAY,MAAM;AAChB,UAAM,IAAI;AACV,SAAK,KAAK,KAAK;AACf,SAAK,OAAO,KAAK;AACjB,QAAI,KAAK,SAAS,OAAW,MAAK,OAAO,KAAK;AAC9C,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,QAAI,KAAK,gBAAgB,OAAW,MAAK,cAAc,KAAK;AAC5D,QAAI,KAAK,UAAU,OAAW,MAAK,QAAQ,KAAK;AAChD,QAAI,KAAK,WAAW,OAAW,MAAK,SAAS,KAAK;AAClD,SAAK,gBAAgB,KAAK;AAC1B,QAAI,KAAK,aAAa,OAAW,MAAK,WAAW,KAAK;AAAA,EACxD;AACF;AAEA,OAAO,eAAe,SAAS,WAAW,UAAU;AAAA,EAClD,OAAO;AAAA,IACL,SAAS;AAAA,IACT,KAAK;AAAA,IACL,OAAO;AAAA,IACP,MAAM;AAAA,IACN,UAAU,CAAC,MAAM,QAAQ,eAAe;AAAA,IACxC,YAAY;AAAA,MACV,IAAI,EAAE,MAAM,mCAAmC;AAAA,MAC/C,MAAM,EAAE,MAAM,UAAU,MAAM,CAAC,UAAU,GAAG,SAAS,WAAW;AAAA,MAChE,MAAM,EAAE,MAAM,UAAU,WAAW,EAAE;AAAA,MACrC,QAAQ,EAAE,MAAM,uCAAuC;AAAA,MACvD,aAAa,EAAE,MAAM,SAAS;AAAA,MAC9B,OAAO,EAAE,MAAM,iBAAiB;AAAA,MAChC,QAAQ,EAAE,MAAM,UAAU,SAAS,GAAG,SAAS,IAAI,SAAS,EAAE;AAAA,MAC9D,eAAe;AAAA,QACb,MAAM;AAAA,QACN,MAAM,CAAC,SAAS,WAAW,WAAW;AAAA,MACxC;AAAA,MACA,UAAU,EAAE,MAAM,yCAAyC;AAAA,IAC7D;AAAA,EACF;AACF,CAAC;AAED,OAAO,eAAe,SAAS,WAAW,aAAa;AAAA,EACrD,KAAK,kCAAY;AACf,WAAO;AAAA,EACT,GAFK;AAGP,CAAC;","names":[]}
@@ -1 +1 @@
1
- import{validateAutomation}from"./chunk-HB4EGDYH.js";import{Entity}from"./chunk-YPJMXYGL.js";import{__name}from"./chunk-XE4OXN2W.js";var Automation=class extends Entity{static{__name(this,"Automation")}constructor(data){super(data),this.id=data.id,void 0!==data.name&&(this.name=data.name),this.type=data.type,void 0!==data.isEnabled&&(this.isEnabled=data.isEnabled),this.trigger=data.trigger,this.actions=data.actions,void 0!==data.createdAt&&(this.createdAt=data.createdAt),void 0!==data.updatedAt&&(this.updatedAt=data.updatedAt),void 0!==data.lastTriggeredAt&&(this.lastTriggeredAt=data.lastTriggeredAt)}get isTimeBased(){return"time"===this.discriminator||this.trigger&&"time"===this.trigger.type}get isDeviceBased(){return"device"===this.discriminator||this.trigger&&"time"!==this.trigger.type}get isRepeating(){return this.isTimeBased()&&!1!==this.trigger?.schedule?.repeat}};Object.defineProperty(Automation.prototype,"schema",{value:{$schema:"http://json-schema.org/draft-07/schema",$id:"automation.json",title:"Automation",description:"An automation is a collection of triggers and actions",type:"object",required:["id","type","trigger","actions"],properties:{id:{$ref:"definitions.json#/definitions/id"},name:{type:"string",description:"The friendly name of the automation"},type:{type:"string",enum:["automation"],default:"automation"},isEnabled:{type:"boolean",description:"Whether the automation is currently enabled",default:!0},trigger:{type:"object",description:"The trigger that initiates the automation",required:["discriminator","schedule"],properties:{discriminator:{type:"string",enum:["time"],description:"Type of trigger"},schedule:{type:"object",description:"Schedule for time-based triggers",required:["days","time","timezone"],properties:{days:{type:"array",description:"Days of the week (0 = Sunday, 6 = Saturday)",items:{type:"integer",minimum:0,maximum:6}},time:{type:"string",description:"Time of day to trigger the automation"},timeOffsetSeconds:{type:"integer",description:"Offset in seconds from the scheduled time",default:0},repeat:{type:"boolean",description:"Whether the schedule repeats",default:!0},timezone:{type:"string",description:"Timezone for the schedule (IANA timezone format)"}}}}},actions:{type:"array",description:"Actions to perform when the trigger conditions are met",items:{type:"object",required:["deviceId","roomId","discriminator","state"],properties:{deviceId:{type:"string",description:"ID of the device to control"},roomId:{type:"string",description:"ID of the room containing the device"},discriminator:{type:"string",description:"Type discriminator for the device (e.g., 'windowCovering', 'switch')"},duration:{type:"integer",description:"Duration in seconds to keep the device in the configured state",minimum:0},state:{type:"array",items:{type:"object",required:["property","value"],properties:{property:{type:"string",description:"Property to set (e.g., 'state', 'level', 'setpoint')"},value:{type:["string","number","boolean"],description:"Value to set the property to"}}}}}},minItems:1},createdAt:{$ref:"definitions.json#/definitions/createdAt"},updatedAt:{$ref:"definitions.json#/definitions/updatedAt"},lastTriggeredAt:{$ref:"definitions.json#/definitions/date",description:"When the automation was last triggered"}},additionalProperties:!1}}),Object.defineProperty(Automation.prototype,"validator",{get:__name((function(){return validateAutomation}),"get")});export{Automation};//# sourceMappingURL=chunk-FDRRHETK.js.map
1
+ import{validateAutomation}from"./chunk-VLFQ27ZT.js";import{Entity}from"./chunk-YPJMXYGL.js";import{__name}from"./chunk-XE4OXN2W.js";var Automation=class extends Entity{static{__name(this,"Automation")}constructor(data){super(data),this.id=data.id,void 0!==data.name&&(this.name=data.name),this.type=data.type,void 0!==data.isEnabled&&(this.isEnabled=data.isEnabled),this.trigger=data.trigger,this.actions=data.actions,void 0!==data.createdAt&&(this.createdAt=data.createdAt),void 0!==data.updatedAt&&(this.updatedAt=data.updatedAt),void 0!==data.lastTriggeredAt&&(this.lastTriggeredAt=data.lastTriggeredAt)}get isTimeBased(){return"time"===this.discriminator||this.trigger&&"time"===this.trigger.type}get isDeviceBased(){return"device"===this.discriminator||this.trigger&&"time"!==this.trigger.type}get isRepeating(){return this.isTimeBased()&&!1!==this.trigger?.schedule?.repeat}};Object.defineProperty(Automation.prototype,"schema",{value:{$schema:"http://json-schema.org/draft-07/schema",$id:"automation.json",title:"Automation",description:"An automation is a collection of triggers and actions",type:"object",required:["id","type","trigger","actions"],properties:{id:{$ref:"definitions.json#/definitions/id"},name:{type:"string",description:"The friendly name of the automation"},type:{type:"string",enum:["automation"],default:"automation"},isEnabled:{type:"boolean",description:"Whether the automation is currently enabled",default:!0},trigger:{type:"object",description:"The trigger that initiates the automation",required:["discriminator","schedule"],properties:{discriminator:{type:"string",enum:["time"],description:"Type of trigger"},schedule:{type:"object",description:"Schedule for time-based triggers",required:["days","time","timezone"],properties:{days:{type:"array",description:"Days of the week (0 = Sunday, 6 = Saturday)",items:{type:"integer",minimum:0,maximum:6}},time:{type:"string",description:"Time of day to trigger the automation"},timeOffsetSeconds:{type:"integer",description:"Offset in seconds from the scheduled time",default:0},repeat:{type:"boolean",description:"Whether the schedule repeats",default:!0},timezone:{type:"string",description:"Timezone for the schedule (IANA timezone format)"}}}}},actions:{type:"array",description:"Actions to perform when the trigger conditions are met",items:{type:"object",required:["deviceId","roomId","discriminator","state"],properties:{deviceId:{type:"string",description:"ID of the device to control"},roomId:{type:"string",description:"ID of the room containing the device"},discriminator:{type:"string",description:"Type discriminator for the device (e.g., 'windowCovering', 'switch')"},duration:{type:"integer",description:"Duration in seconds to keep the device in the configured state",minimum:0},state:{type:"array",items:{type:"object",required:["property","value"],properties:{property:{type:"string",description:"Property to set (e.g., 'state', 'level', 'setpoint')"},value:{type:["string","number","boolean"],description:"Value to set the property to"}}}}}},minItems:1},createdAt:{$ref:"definitions.json#/definitions/createdAt"},updatedAt:{$ref:"definitions.json#/definitions/updatedAt"},lastTriggeredAt:{$ref:"definitions.json#/definitions/date",description:"When the automation was last triggered"}},additionalProperties:!1}}),Object.defineProperty(Automation.prototype,"validator",{get:__name((function(){return validateAutomation}),"get")});export{Automation};//# sourceMappingURL=chunk-YHALYQGQ.js.map
@@ -0,0 +1 @@
1
+ import{SystemUserUpdated}from"./chunk-LL7JQZ22.js";import{SystemWindowCoveringUpdated}from"./chunk-3EFKTRVA.js";import{SystemMotionSensorUpdated}from"./chunk-QA3JZFE6.js";import{SystemOrganizationUpdated}from"./chunk-XGMNXP5O.js";import{SystemProductUpdated}from"./chunk-2RWKPJ7X.js";import{SystemPropertyUpdated}from"./chunk-TXM6UAL7.js";import{SystemReservationUpdated}from"./chunk-IAAWIPRL.js";import{SystemSpaceUpdated}from"./chunk-XJTVR2N6.js";import{SystemSwitchUpdated}from"./chunk-Q6DULDGC.js";import{SystemThermostatUpdated}from"./chunk-6WMLZZ2S.js";import{SystemCategoryUpdated}from"./chunk-UPJNM24X.js";import{SystemCourtesyUpdated}from"./chunk-F3OYDT5G.js";import{SystemCredentialUpdated}from"./chunk-OTCZ5EYP.js";import{SystemDimmerUpdated}from"./chunk-WTHRQ7HY.js";import{SystemEntityDeleted}from"./chunk-3FWQCAHI.js";import{SystemGatewayUpdated}from"./chunk-WN55GEEA.js";import{SystemLockUpdated}from"./chunk-NPU3HOLY.js";import{SystemMediaSourceUpdated}from"./chunk-77ZRNQNC.js";import{ReservationCheckedIn}from"./chunk-DKN6VMLC.js";import{ReservationCheckedOut}from"./chunk-ASWG7NGL.js";import{ReservationSpaceChanged}from"./chunk-YV5A37JB.js";import{SceneSet}from"./chunk-AFFBNWED.js";import{ShortLinkCreated}from"./chunk-RDORBZXU.js";import{SMSEvent}from"./chunk-PDC7GVYH.js";import{SystemAlarmUpdated}from"./chunk-MXEHDVPA.js";import{SystemCameraUpdated}from"./chunk-UGU6VADU.js";import{ApplicationInUse}from"./chunk-77HBMMF6.js";import{ApplicationOutOfUse}from"./chunk-2QUVPJGQ.js";import{EmailEvent}from"./chunk-WIOEN43A.js";import{Event}from"./chunk-OJ3NRGG4.js";import{__export}from"./chunk-XE4OXN2W.js";var events_exports={};__export(events_exports,{ApplicationInUse:()=>ApplicationInUse,ApplicationOutOfUse:()=>ApplicationOutOfUse,EmailEvent:()=>EmailEvent,Event:()=>Event,ReservationCheckedIn:()=>ReservationCheckedIn,ReservationCheckedOut:()=>ReservationCheckedOut,ReservationSpaceChanged:()=>ReservationSpaceChanged,SMSEvent:()=>SMSEvent,SceneSet:()=>SceneSet,ShortLinkCreated:()=>ShortLinkCreated,SystemAlarmUpdated:()=>SystemAlarmUpdated,SystemCameraUpdated:()=>SystemCameraUpdated,SystemCategoryUpdated:()=>SystemCategoryUpdated,SystemCourtesyUpdated:()=>SystemCourtesyUpdated,SystemCredentialUpdated:()=>SystemCredentialUpdated,SystemDimmerUpdated:()=>SystemDimmerUpdated,SystemEntityDeleted:()=>SystemEntityDeleted,SystemGatewayUpdated:()=>SystemGatewayUpdated,SystemLockUpdated:()=>SystemLockUpdated,SystemMediaSourceUpdated:()=>SystemMediaSourceUpdated,SystemMotionSensorUpdated:()=>SystemMotionSensorUpdated,SystemOrganizationUpdated:()=>SystemOrganizationUpdated,SystemProductUpdated:()=>SystemProductUpdated,SystemPropertyUpdated:()=>SystemPropertyUpdated,SystemReservationUpdated:()=>SystemReservationUpdated,SystemSpaceUpdated:()=>SystemSpaceUpdated,SystemSwitchUpdated:()=>SystemSwitchUpdated,SystemThermostatUpdated:()=>SystemThermostatUpdated,SystemUserUpdated:()=>SystemUserUpdated,SystemWindowCoveringUpdated:()=>SystemWindowCoveringUpdated});export{events_exports};//# sourceMappingURL=chunk-ZBNPXH3W.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/events/index.js"],"sourcesContent":["// This file is auto-generated. Do not edit this file manually.\n// Generated on: 2025-03-13T20:36:28.617Z\n\nexport * from \"./applicationInUse\";\nexport * from \"./applicationOutOfUse\";\nexport * from \"./emailEvent\";\nexport * from \"./event\";\nexport * from \"./reservationCheckedIn\";\nexport * from \"./reservationCheckedOut\";\nexport * from \"./reservationSpaceChanged\";\nexport * from \"./sceneSet\";\nexport * from \"./shortLinkCreated\";\nexport * from \"./smsEvent\";\nexport * from \"./systemAlarmUpdated\";\nexport * from \"./systemCameraUpdated\";\nexport * from \"./systemCategoryUpdated\";\nexport * from \"./systemCourtesyUpdated\";\nexport * from \"./systemCredentialUpdated\";\nexport * from \"./systemDimmerUpdated\";\nexport * from \"./systemEntityDeleted\";\nexport * from \"./systemGatewayUpdated\";\nexport * from \"./systemLockUpdated\";\nexport * from \"./systemMediaSourceUpdated\";\nexport * from \"./systemMotionSensorUpdated\";\nexport * from \"./systemOrganizationUpdated\";\nexport * from \"./systemProductUpdated\";\nexport * from \"./systemPropertyUpdated\";\nexport * from \"./systemReservationUpdated\";\nexport * from \"./systemSpaceUpdated\";\nexport * from \"./systemSwitchUpdated\";\nexport * from \"./systemThermostatUpdated\";\nexport * from \"./systemUserUpdated\";\nexport * from \"./systemWindowCoveringUpdated\";"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../src/events/index.js"],"sourcesContent":["// This file is auto-generated. Do not edit this file manually.\n// Generated on: 2025-03-20T14:07:48.531Z\n\nexport * from \"./applicationInUse\";\nexport * from \"./applicationOutOfUse\";\nexport * from \"./emailEvent\";\nexport * from \"./event\";\nexport * from \"./reservationCheckedIn\";\nexport * from \"./reservationCheckedOut\";\nexport * from \"./reservationSpaceChanged\";\nexport * from \"./sceneSet\";\nexport * from \"./shortLinkCreated\";\nexport * from \"./smsEvent\";\nexport * from \"./systemAlarmUpdated\";\nexport * from \"./systemCameraUpdated\";\nexport * from \"./systemCategoryUpdated\";\nexport * from \"./systemCourtesyUpdated\";\nexport * from \"./systemCredentialUpdated\";\nexport * from \"./systemDimmerUpdated\";\nexport * from \"./systemEntityDeleted\";\nexport * from \"./systemGatewayUpdated\";\nexport * from \"./systemLockUpdated\";\nexport * from \"./systemMediaSourceUpdated\";\nexport * from \"./systemMotionSensorUpdated\";\nexport * from \"./systemOrganizationUpdated\";\nexport * from \"./systemProductUpdated\";\nexport * from \"./systemPropertyUpdated\";\nexport * from \"./systemReservationUpdated\";\nexport * from \"./systemSpaceUpdated\";\nexport * from \"./systemSwitchUpdated\";\nexport * from \"./systemThermostatUpdated\";\nexport * from \"./systemUserUpdated\";\nexport * from \"./systemWindowCoveringUpdated\";"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/commands/index.js","../../src/defs.js","../../src/commands/command.js","../../src/commands/checkInReservation.js","../../src/commands/checkOutReservation.js","../../src/commands/createImageUploadEndpoint.js","../../src/commands/createShortLink.js","../../src/commands/getCategories.js","../../src/commands/getMobileKey.js","../../src/commands/getProducts.js","../../src/commands/getReservationSpaceCategoryAvailabilities.js","../../src/commands/getReservations.js","../../src/commands/getRooms.js","../../src/commands/getUsers.js","../../src/commands/ocrDocument.js","../../src/commands/sellProducts.js","../../src/commands/sendEmail.js","../../src/commands/sendSMS.js","../../src/commands/setAlarm.js","../../src/commands/setCourtesy.js","../../src/commands/setDimmer.js","../../src/commands/setLock.js","../../src/commands/setMedia.js","../../src/commands/setScene.js","../../src/commands/setSwitch.js","../../src/commands/setThermostat.js","../../src/commands/setWindowCovering.js","../../src/commands/updateReservation.js","../../src/commands/updateUser.js","../../src/commands/uploadImage.js"],"sourcesContent":["// This file is auto-generated. Do not edit this file manually.\n// Generated on: 2025-03-13T20:36:28.618Z\n\nexport * from \"./checkInReservation\";\nexport * from \"./checkOutReservation\";\nexport * from \"./command\";\nexport * from \"./createImageUploadEndpoint\";\nexport * from \"./createShortLink\";\nexport * from \"./getCategories\";\nexport * from \"./getMobileKey\";\nexport * from \"./getProducts\";\nexport * from \"./getReservationSpaceCategoryAvailabilities\";\nexport * from \"./getReservations\";\nexport * from \"./getRooms\";\nexport * from \"./getUsers\";\nexport * from \"./ocrDocument\";\nexport * from \"./sellProducts\";\nexport * from \"./sendEmail\";\nexport * from \"./sendSMS\";\nexport * from \"./setAlarm\";\nexport * from \"./setCourtesy\";\nexport * from \"./setDimmer\";\nexport * from \"./setLock\";\nexport * from \"./setMedia\";\nexport * from \"./setScene\";\nexport * from \"./setSwitch\";\nexport * from \"./setThermostat\";\nexport * from \"./setWindowCovering\";\nexport * from \"./updateReservation\";\nexport * from \"./updateUser\";\nexport * from \"./uploadImage\";","export const amqpExchanges = {\n // routes commands based on `command-name` header and in many cases `property-id` header\n Commands: {\n name: \"kohost.commands\",\n type: \"headers\",\n options: {\n durable: true,\n },\n },\n CommandResponses: {\n name: \"kohost.commandResponses\",\n type: \"topic\",\n options: {\n durable: true,\n },\n },\n // routes events based on routing keys\n DriverEvents: {\n name: \"kohost.events.drivers\",\n type: \"topic\",\n options: {\n durable: true,\n },\n },\n AppEvents: {\n name: \"kohost.events.app\",\n type: \"topic\",\n options: {\n durable: true,\n },\n },\n Direct: {\n name: \"kohost.direct\",\n type: \"direct\",\n options: {\n durable: true,\n },\n },\n // dead letter exchange\n dlx: {\n name: \"kohost.dlx\",\n type: \"direct\",\n },\n};\n\nexport const deviceTypes = [\n \"dimmer\",\n \"switch\",\n \"thermostat\",\n \"lock\",\n \"windowCovering\",\n \"courtesy\",\n \"alarm\",\n \"camera\",\n \"mediaSource\",\n \"motionSensor\",\n \"gateway\",\n];\n","import { amqpExchanges } from \"../defs\";\n\nconst Commands = amqpExchanges.Commands;\n\nexport class Command {\n constructor(data) {\n this.data = {};\n if (!data) throw new Error(\"Command data is required\");\n if (typeof data !== \"object\")\n throw new Error(\"Command data must be an object\");\n\n for (const key in data) {\n this.data[key] = data[key];\n }\n }\n\n get name() {\n throw new Error(\"Command name is required\");\n }\n\n static get type() {\n return \"Command\";\n }\n\n static get exchange() {\n return Commands.name;\n }\n\n build() {\n return { data: { ...this.data } };\n }\n}\n","import { Command } from \"./command\";\n\nexport class CheckInReservation extends Command {\n constructor({ id, ...rest }) {\n super({ id, ...rest });\n }\n\n get name() {\n return \"CheckInReservation\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class CheckOutReservation extends Command {\n constructor({ reservationId, userId, ...rest }) {\n super({ reservationId, userId, ...rest });\n }\n\n get name() {\n return \"CheckOutReservation\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class CreateImageUploadEndpoint extends Command {\n constructor({ id, expires, ...rest }) {\n super({ id, expires, ...rest });\n }\n\n get name() {\n return \"CreateImageUploadEndpoint\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class CreateShortLink extends Command {\n constructor({ title, destination, ...rest }) {\n super({ title, destination, ...rest });\n }\n\n get name() {\n return \"CreateShortLink\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetCategories extends Command {\n constructor({ id, ...rest }) {\n super({ id, ...rest });\n }\n\n get name() {\n return \"GetCategories\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetMobileKey extends Command {\n constructor({\n id,\n phone,\n beginDateTime,\n endDateTime,\n keyToReplace,\n ...rest\n }) {\n super({ id, phone, beginDateTime, endDateTime, keyToReplace, ...rest });\n }\n\n get name() {\n return \"GetMobileKey\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetProducts extends Command {\n constructor({ id, externalSystemId, ...rest }) {\n super({ id, externalSystemId, ...rest });\n }\n\n get name() {\n return \"GetProducts\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetReservationSpaceCategoryAvailabilities extends Command {\n constructor(options) {\n const { id, ...rest } = options;\n super({ id, ...rest });\n }\n\n get name() {\n return \"GetReservationSpaceCategoryAvailabilities\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetReservations extends Command {\n constructor(options) {\n const { id, startDate, endDate, status, ...rest } = options;\n super({ id, startDate, endDate, status, ...rest });\n }\n\n get name() {\n return \"GetReservations\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetRooms extends Command {\n constructor({\n id,\n types,\n categories,\n startDate,\n endDate,\n serviceStatus,\n housekeepingStatus,\n ...rest\n }) {\n super({\n id,\n types,\n categories,\n startDate,\n endDate,\n serviceStatus,\n housekeepingStatus,\n ...rest,\n });\n }\n\n get name() {\n return \"GetRooms\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetUsers extends Command {\n constructor({ id, ...rest }) {\n super({ id, ...rest });\n }\n\n get name() {\n return \"GetUsers\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class OCRDocument extends Command {\n constructor({ type, image, ...rest }) {\n super({ type, image, ...rest });\n }\n\n get name() {\n return \"OCRDocument\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SellProducts extends Command {\n constructor({ reservationId, userId, products, ...rest }) {\n super({ reservationId, userId, products, ...rest });\n }\n\n get name() {\n return \"SellProducts\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SendEmail extends Command {\n constructor({ text, html, to, from, subject, ...rest }) {\n super({ text, html, to, from, subject, ...rest });\n }\n\n get name() {\n return \"SendEmail\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SendSMS extends Command {\n constructor({ id, body, to, from, media, ...rest }) {\n super({ id, body, to, from, media, ...rest });\n }\n\n get name() {\n return \"SendSMS\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetAlarm extends Command {\n constructor({ id, zones, areas, code, ...rest }) {\n super({ id, zones, areas, code, ...rest });\n }\n\n get name() {\n return \"SetAlarm\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetCourtesy extends Command {\n constructor({ id, state, ...rest }) {\n super({ id, state, ...rest });\n }\n\n get name() {\n return \"SetCourtesy\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetDimmer extends Command {\n constructor({ id, level, ...rest }) {\n super({ id, level, ...rest });\n }\n\n get name() {\n return \"SetDimmer\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetLock extends Command {\n constructor({ id, state, ...rest }) {\n super({ id, state, ...rest });\n }\n\n get name() {\n return \"SetLock\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetMedia extends Command {\n constructor({ id, command, ...rest }) {\n super({ id, command, ...rest });\n }\n\n get name() {\n return \"SetMedia\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetScene extends Command {\n constructor({ id, devices, ...rest }) {\n super({ id, devices, ...rest });\n }\n\n get name() {\n return \"SetScene\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetSwitch extends Command {\n constructor({ id, state, ...rest }) {\n super({ id, state, ...rest });\n }\n\n get name() {\n return \"SetSwitch\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetThermostat extends Command {\n constructor({ id, setpoints, hvacMode, fanMode, ...rest }) {\n super({ id, setpoints, hvacMode, fanMode, ...rest });\n }\n\n get name() {\n return \"SetThermostat\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetWindowCovering extends Command {\n constructor({ id, position, ...rest }) {\n super({ id, position, ...rest });\n }\n\n get name() {\n return \"SetWindowCovering\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class UpdateReservation extends Command {\n constructor({ id, ...rest }) {\n super({ id, ...rest });\n }\n\n get name() {\n return \"UpdateReservation\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class UpdateUser extends Command {\n constructor({\n id,\n email,\n phone,\n identification,\n address,\n note,\n nationality,\n file,\n payment,\n ...rest\n }) {\n super({\n id,\n email,\n phone,\n identification,\n address,\n note,\n nationality,\n file,\n payment,\n ...rest,\n });\n }\n\n get name() {\n return \"UpdateUser\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class UploadImage extends Command {\n constructor({ id, url, file, ...rest }) {\n super({ id, url, file, ...rest });\n }\n\n get name() {\n return \"UploadImage\";\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,gBAAgB;AAAA;AAAA,EAE3B,UAAU;AAAA,IACR,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,MACP,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,kBAAkB;AAAA,IAChB,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,MACP,SAAS;AAAA,IACX;AAAA,EACF;AAAA;AAAA,EAEA,cAAc;AAAA,IACZ,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,MACP,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,WAAW;AAAA,IACT,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,M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AAO;AACT,WAAO;AAAA,EACT;AACF;;;AC9BO,IAAM,cAAN,cAA0B,QAAQ;AAAA,EAFzC,OAEyC;AAAA;AAAA;AAAA,EACvC,YAAY,EAAE,IAAI,KAAK,MAAM,GAAG,KAAK,GAAG;AACtC,UAAM,EAAE,IAAI,KAAK,MAAM,GAAG,KAAK,CAAC;AAAA,EAClC;AAAA,EAEA,IAAI,OAAO;AACT,WAAO;AAAA,EACT;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/commands/index.js","../../src/defs.js","../../src/commands/command.js","../../src/commands/checkInReservation.js","../../src/commands/checkOutReservation.js","../../src/commands/createImageUploadEndpoint.js","../../src/commands/createShortLink.js","../../src/commands/getCategories.js","../../src/commands/getMobileKey.js","../../src/commands/getProducts.js","../../src/commands/getReservationSpaceCategoryAvailabilities.js","../../src/commands/getReservations.js","../../src/commands/getRooms.js","../../src/commands/getUsers.js","../../src/commands/ocrDocument.js","../../src/commands/sellProducts.js","../../src/commands/sendEmail.js","../../src/commands/sendSMS.js","../../src/commands/setAlarm.js","../../src/commands/setCourtesy.js","../../src/commands/setDimmer.js","../../src/commands/setLock.js","../../src/commands/setMedia.js","../../src/commands/setScene.js","../../src/commands/setSwitch.js","../../src/commands/setThermostat.js","../../src/commands/setWindowCovering.js","../../src/commands/updateReservation.js","../../src/commands/updateUser.js","../../src/commands/uploadImage.js"],"sourcesContent":["// This file is auto-generated. Do not edit this file manually.\n// Generated on: 2025-03-20T14:07:48.532Z\n\nexport * from \"./checkInReservation\";\nexport * from \"./checkOutReservation\";\nexport * from \"./command\";\nexport * from \"./createImageUploadEndpoint\";\nexport * from \"./createShortLink\";\nexport * from \"./getCategories\";\nexport * from \"./getMobileKey\";\nexport * from \"./getProducts\";\nexport * from \"./getReservationSpaceCategoryAvailabilities\";\nexport * from \"./getReservations\";\nexport * from \"./getRooms\";\nexport * from \"./getUsers\";\nexport * from \"./ocrDocument\";\nexport * from \"./sellProducts\";\nexport * from \"./sendEmail\";\nexport * from \"./sendSMS\";\nexport * from \"./setAlarm\";\nexport * from \"./setCourtesy\";\nexport * from \"./setDimmer\";\nexport * from \"./setLock\";\nexport * from \"./setMedia\";\nexport * from \"./setScene\";\nexport * from \"./setSwitch\";\nexport * from \"./setThermostat\";\nexport * from \"./setWindowCovering\";\nexport * from \"./updateReservation\";\nexport * from \"./updateUser\";\nexport * from \"./uploadImage\";","export const amqpExchanges = {\n // routes commands based on `command-name` header and in many cases `property-id` header\n Commands: {\n name: \"kohost.commands\",\n type: \"headers\",\n options: {\n durable: true,\n },\n },\n CommandResponses: {\n name: \"kohost.commandResponses\",\n type: \"topic\",\n options: {\n durable: true,\n },\n },\n // routes events based on routing keys\n DriverEvents: {\n name: \"kohost.events.drivers\",\n type: \"topic\",\n options: {\n durable: true,\n },\n },\n AppEvents: {\n name: \"kohost.events.app\",\n type: \"topic\",\n options: {\n durable: true,\n },\n },\n Direct: {\n name: \"kohost.direct\",\n type: \"direct\",\n options: {\n durable: true,\n },\n },\n // dead letter exchange\n dlx: {\n name: \"kohost.dlx\",\n type: \"direct\",\n },\n};\n\nexport const deviceTypes = [\n \"dimmer\",\n \"switch\",\n \"thermostat\",\n \"lock\",\n \"windowCovering\",\n \"courtesy\",\n \"alarm\",\n \"camera\",\n \"mediaSource\",\n \"motionSensor\",\n \"gateway\",\n];\n","import { amqpExchanges } from \"../defs\";\n\nconst Commands = amqpExchanges.Commands;\n\nexport class Command {\n constructor(data) {\n this.data = {};\n if (!data) throw new Error(\"Command data is required\");\n if (typeof data !== \"object\")\n throw new Error(\"Command data must be an object\");\n\n for (const key in data) {\n this.data[key] = data[key];\n }\n }\n\n get name() {\n throw new Error(\"Command name is required\");\n }\n\n static get type() {\n return \"Command\";\n }\n\n static get exchange() {\n return Commands.name;\n }\n\n build() {\n return { data: { ...this.data } };\n }\n}\n","import { Command } from \"./command\";\n\nexport class CheckInReservation extends Command {\n constructor({ id, ...rest }) {\n super({ id, ...rest });\n }\n\n get name() {\n return \"CheckInReservation\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class CheckOutReservation extends Command {\n constructor({ reservationId, userId, ...rest }) {\n super({ reservationId, userId, ...rest });\n }\n\n get name() {\n return \"CheckOutReservation\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class CreateImageUploadEndpoint extends Command {\n constructor({ id, expires, ...rest }) {\n super({ id, expires, ...rest });\n }\n\n get name() {\n return \"CreateImageUploadEndpoint\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class CreateShortLink extends Command {\n constructor({ title, destination, ...rest }) {\n super({ title, destination, ...rest });\n }\n\n get name() {\n return \"CreateShortLink\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetCategories extends Command {\n constructor({ id, ...rest }) {\n super({ id, ...rest });\n }\n\n get name() {\n return \"GetCategories\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetMobileKey extends Command {\n constructor({\n id,\n phone,\n beginDateTime,\n endDateTime,\n keyToReplace,\n ...rest\n }) {\n super({ id, phone, beginDateTime, endDateTime, keyToReplace, ...rest });\n }\n\n get name() {\n return \"GetMobileKey\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetProducts extends Command {\n constructor({ id, externalSystemId, ...rest }) {\n super({ id, externalSystemId, ...rest });\n }\n\n get name() {\n return \"GetProducts\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetReservationSpaceCategoryAvailabilities extends Command {\n constructor(options) {\n const { id, ...rest } = options;\n super({ id, ...rest });\n }\n\n get name() {\n return \"GetReservationSpaceCategoryAvailabilities\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetReservations extends Command {\n constructor(options) {\n const { id, startDate, endDate, status, ...rest } = options;\n super({ id, startDate, endDate, status, ...rest });\n }\n\n get name() {\n return \"GetReservations\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetRooms extends Command {\n constructor({\n id,\n types,\n categories,\n startDate,\n endDate,\n serviceStatus,\n housekeepingStatus,\n ...rest\n }) {\n super({\n id,\n types,\n categories,\n startDate,\n endDate,\n serviceStatus,\n housekeepingStatus,\n ...rest,\n });\n }\n\n get name() {\n return \"GetRooms\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class GetUsers extends Command {\n constructor({ id, ...rest }) {\n super({ id, ...rest });\n }\n\n get name() {\n return \"GetUsers\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class OCRDocument extends Command {\n constructor({ type, image, ...rest }) {\n super({ type, image, ...rest });\n }\n\n get name() {\n return \"OCRDocument\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SellProducts extends Command {\n constructor({ reservationId, userId, products, ...rest }) {\n super({ reservationId, userId, products, ...rest });\n }\n\n get name() {\n return \"SellProducts\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SendEmail extends Command {\n constructor({ text, html, to, from, subject, ...rest }) {\n super({ text, html, to, from, subject, ...rest });\n }\n\n get name() {\n return \"SendEmail\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SendSMS extends Command {\n constructor({ id, body, to, from, media, ...rest }) {\n super({ id, body, to, from, media, ...rest });\n }\n\n get name() {\n return \"SendSMS\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetAlarm extends Command {\n constructor({ id, zones, areas, code, ...rest }) {\n super({ id, zones, areas, code, ...rest });\n }\n\n get name() {\n return \"SetAlarm\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetCourtesy extends Command {\n constructor({ id, state, ...rest }) {\n super({ id, state, ...rest });\n }\n\n get name() {\n return \"SetCourtesy\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetDimmer extends Command {\n constructor({ id, level, ...rest }) {\n super({ id, level, ...rest });\n }\n\n get name() {\n return \"SetDimmer\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetLock extends Command {\n constructor({ id, state, ...rest }) {\n super({ id, state, ...rest });\n }\n\n get name() {\n return \"SetLock\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetMedia extends Command {\n constructor({ id, command, ...rest }) {\n super({ id, command, ...rest });\n }\n\n get name() {\n return \"SetMedia\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetScene extends Command {\n constructor({ id, devices, ...rest }) {\n super({ id, devices, ...rest });\n }\n\n get name() {\n return \"SetScene\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetSwitch extends Command {\n constructor({ id, state, ...rest }) {\n super({ id, state, ...rest });\n }\n\n get name() {\n return \"SetSwitch\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetThermostat extends Command {\n constructor({ id, setpoints, hvacMode, fanMode, ...rest }) {\n super({ id, setpoints, hvacMode, fanMode, ...rest });\n }\n\n get name() {\n return \"SetThermostat\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class SetWindowCovering extends Command {\n constructor({ id, position, ...rest }) {\n super({ id, position, ...rest });\n }\n\n get name() {\n return \"SetWindowCovering\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class UpdateReservation extends Command {\n constructor({ id, ...rest }) {\n super({ id, ...rest });\n }\n\n get name() {\n return \"UpdateReservation\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class UpdateUser extends Command {\n constructor({\n id,\n email,\n phone,\n identification,\n address,\n note,\n nationality,\n file,\n payment,\n ...rest\n }) {\n super({\n id,\n email,\n phone,\n identification,\n address,\n note,\n nationality,\n file,\n payment,\n ...rest,\n });\n }\n\n get name() {\n return \"UpdateUser\";\n }\n}\n","import { Command } from \"./command\";\n\nexport class UploadImage extends Command {\n constructor({ id, url, file, ...rest }) {\n super({ id, url, file, ...rest });\n }\n\n get name() {\n return \"UploadImage\";\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,gBAAgB;AAAA;AAAA,EAE3B,UA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;;;ACRO,IAAM,aAAN,cAAyB,QAAQ;AAAA,EAFxC,OAEwC;AAAA;AAAA;AAAA,EACtC,YAAY;AAAA,IACV;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,IACA,GAAG;AAAA,EACL,GAAG;AACD,UAAM;AAAA,MACJ;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,MACA,GAAG;AAAA,IACL,CAAC;AAAA,EACH;AAAA,EAEA,IAAI,OAAO;AACT,WAAO;AAAA,EACT;AACF;;;AC9BO,IAAM,cAAN,cAA0B,QAAQ;AAAA,EAFzC,OAEyC;AAAA;AAAA;AAAA,EACvC,YAAY,EAAE,IAAI,KAAK,MAAM,GAAG,KAAK,GAAG;AACtC,UAAM,EAAE,IAAI,KAAK,MAAM,GAAG,KAAK,CAAC;AAAA,EAClC;AAAA,EAEA,IAAI,OAAO;AACT,WAAO;AAAA,EACT;AACF;","names":[]}
@@ -1 +1 @@
1
- import"../chunk-MWTYSIRS.js";import{UpdateReservation}from"../chunk-FTCH2YVK.js";import{UpdateUser}from"../chunk-25TS7WQK.js";import{UploadImage}from"../chunk-BHG5VJNQ.js";import{SetCourtesy}from"../chunk-JKB4GVXZ.js";import{SetDimmer}from"../chunk-PVVJAJ2U.js";import{SetLock}from"../chunk-ANEFCLND.js";import{SetMedia}from"../chunk-F7RJAXJ3.js";import{SetScene}from"../chunk-HQAVS73L.js";import{SetSwitch}from"../chunk-AXJW3S5W.js";import{SetThermostat}from"../chunk-4PPJAXMZ.js";import{SetWindowCovering}from"../chunk-XYE4QWAL.js";import{GetRooms}from"../chunk-QGACPW7L.js";import{GetUsers}from"../chunk-RP66PVLU.js";import{OCRDocument}from"../chunk-2YCWOIUR.js";import{SellProducts}from"../chunk-DOX5ZOSZ.js";import{SendEmail}from"../chunk-RBVPAANY.js";import{SendSMS}from"../chunk-RMDNQAV4.js";import{SetAlarm}from"../chunk-XURK32UQ.js";import{CreateImageUploadEndpoint}from"../chunk-K3ERMR2X.js";import{CreateShortLink}from"../chunk-2C6SKQY6.js";import{GetCategories}from"../chunk-XFXENMXN.js";import{GetMobileKey}from"../chunk-J3KAHJ7Z.js";import{GetProducts}from"../chunk-5Z3DQU4I.js";import{GetReservationSpaceCategoryAvailabilities}from"../chunk-VE45ITDQ.js";import{GetReservations}from"../chunk-6D6FRQCU.js";import{CheckInReservation}from"../chunk-RIWQUPNT.js";import{CheckOutReservation}from"../chunk-HF3F4KLM.js";import{Command}from"../chunk-4FR6LYG3.js";import"../chunk-THXOWLL3.js";import"../chunk-XE4OXN2W.js";export{CheckInReservation,CheckOutReservation,Command,CreateImageUploadEndpoint,CreateShortLink,GetCategories,GetMobileKey,GetProducts,GetReservationSpaceCategoryAvailabilities,GetReservations,GetRooms,GetUsers,OCRDocument,SellProducts,SendEmail,SendSMS,SetAlarm,SetCourtesy,SetDimmer,SetLock,SetMedia,SetScene,SetSwitch,SetThermostat,SetWindowCovering,UpdateReservation,UpdateUser,UploadImage};//# sourceMappingURL=index.js.map
1
+ import"../chunk-KUKQHDC5.js";import{UpdateReservation}from"../chunk-FTCH2YVK.js";import{UpdateUser}from"../chunk-25TS7WQK.js";import{UploadImage}from"../chunk-BHG5VJNQ.js";import{SetCourtesy}from"../chunk-JKB4GVXZ.js";import{SetDimmer}from"../chunk-PVVJAJ2U.js";import{SetLock}from"../chunk-ANEFCLND.js";import{SetMedia}from"../chunk-F7RJAXJ3.js";import{SetScene}from"../chunk-HQAVS73L.js";import{SetSwitch}from"../chunk-AXJW3S5W.js";import{SetThermostat}from"../chunk-4PPJAXMZ.js";import{SetWindowCovering}from"../chunk-XYE4QWAL.js";import{GetRooms}from"../chunk-QGACPW7L.js";import{GetUsers}from"../chunk-RP66PVLU.js";import{OCRDocument}from"../chunk-2YCWOIUR.js";import{SellProducts}from"../chunk-DOX5ZOSZ.js";import{SendEmail}from"../chunk-RBVPAANY.js";import{SendSMS}from"../chunk-RMDNQAV4.js";import{SetAlarm}from"../chunk-XURK32UQ.js";import{CreateImageUploadEndpoint}from"../chunk-K3ERMR2X.js";import{CreateShortLink}from"../chunk-2C6SKQY6.js";import{GetCategories}from"../chunk-XFXENMXN.js";import{GetMobileKey}from"../chunk-J3KAHJ7Z.js";import{GetProducts}from"../chunk-5Z3DQU4I.js";import{GetReservationSpaceCategoryAvailabilities}from"../chunk-VE45ITDQ.js";import{GetReservations}from"../chunk-6D6FRQCU.js";import{CheckInReservation}from"../chunk-RIWQUPNT.js";import{CheckOutReservation}from"../chunk-HF3F4KLM.js";import{Command}from"../chunk-4FR6LYG3.js";import"../chunk-THXOWLL3.js";import"../chunk-XE4OXN2W.js";export{CheckInReservation,CheckOutReservation,Command,CreateImageUploadEndpoint,CreateShortLink,GetCategories,GetMobileKey,GetProducts,GetReservationSpaceCategoryAvailabilities,GetReservations,GetRooms,GetUsers,OCRDocument,SellProducts,SendEmail,SendSMS,SetAlarm,SetCourtesy,SetDimmer,SetLock,SetMedia,SetScene,SetSwitch,SetThermostat,SetWindowCovering,UpdateReservation,UpdateUser,UploadImage};//# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/errors/index.js","../../src/errors/appError.js","../../src/errors/authenticationError.js","../../src/errors/authorizationError.js","../../src/errors/conflictError.js","../../src/errors/deviceCommError.js","../../src/errors/loginError.js","../../src/errors/notFoundError.js","../../src/errors/requestError.js","../../src/errors/systemCommError.js","../../src/errors/tokenExpiredError.js","../../src/errors/unprocessableRequestError.js","../../src/errors/validationError.js"],"sourcesContent":["// This file is auto-generated. Do not edit this file manually.\n// Generated on: 2025-03-13T20:36:28.617Z\n\nexport * from \"./appError\";\nexport * from \"./authenticationError\";\nexport * from \"./authorizationError\";\nexport * from \"./conflictError\";\nexport * from \"./deviceCommError\";\nexport * from \"./loginError\";\nexport * from \"./notFoundError\";\nexport * from \"./requestError\";\nexport * from \"./systemCommError\";\nexport * from \"./tokenExpiredError\";\nexport * from \"./unprocessableRequestError\";\nexport * from \"./validationError\";","export class AppError extends Error {\n constructor(message = \"Internal Server Error\", options) {\n super(message, options);\n this.type = this.constructor.name;\n this.statusCode = 500;\n this.name = \"AppError\";\n Object.setPrototypeOf(this, AppError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class AuthenticationError extends AppError {\n constructor(message = \"Authentication Error\", options = {}) {\n super(message, options);\n this.statusCode = 401;\n this.name = \"AuthenticationError\";\n Object.setPrototypeOf(this, AuthenticationError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class AuthorizationError extends AppError {\n constructor(message = \"Authorization Error\", options = {}) {\n super(message, options);\n this.statusCode = 403;\n this.name = \"AuthorizationError\";\n Object.setPrototypeOf(this, AuthorizationError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class ConflictError extends AppError {\n constructor(message = \"Bad Request\", options = {}) {\n super(message, options);\n this.statusCode = 409;\n this.name = \"ConflictError\";\n Object.setPrototypeOf(this, ConflictError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class DeviceCommError extends AppError {\n constructor(message = \"Device Communication Error\", options = {}) {\n super(message, options);\n this.statusCode = 503;\n this.name = \"DeviceCommError\";\n Object.setPrototypeOf(this, DeviceCommError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class LoginError extends AppError {\n constructor(message = \"Invalid Login information provided\", options = {}) {\n super(message, options);\n this.statusCode = 401;\n this.name = \"LoginError\";\n Object.setPrototypeOf(this, LoginError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class NotFoundError extends AppError {\n constructor(message = \"Resource Not Found\", options = {}) {\n super(message, options);\n this.statusCode = 404;\n this.name = \"NotFoundError\";\n Object.setPrototypeOf(this, NotFoundError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class RequestError extends AppError {\n constructor(message = \"Bad Request\", options = {}) {\n super(message, options);\n this.statusCode = 400;\n this.name = \"RequestError\";\n Object.setPrototypeOf(this, RequestError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class SystemCommError extends AppError {\n constructor(message = \"System Communication Error\", options = {}) {\n super(message, options);\n this.statusCode = 503;\n this.name = \"SystemCommError\";\n Object.setPrototypeOf(this, SystemCommError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class TokenExpiredError extends AppError {\n constructor(message = \"Token Expired\", options = {}) {\n super(message, options);\n this.statusCode = 401;\n this.name = \"TokenExpiredError\";\n Object.setPrototypeOf(this, TokenExpiredError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class UnprocessableRequestError extends AppError {\n constructor(message = \"Unprocessable Request Error\", options = {}) {\n super(message, options);\n this.statusCode = 422;\n this.name = \"UnprocessableRequestError\";\n Object.setPrototypeOf(this, UnprocessableRequestError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class ValidationError extends AppError {\n constructor(message = \"Validation Error\", options = {}) {\n super(message, options);\n this.statusCode = 400;\n this.name = \"ValidationError\";\n Object.setPrototypeOf(this, ValidationError.prototype);\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,WAAN,MAAM,kBAAiB,MAAM;AAAA,EAApC,OAAoC;AAAA;AAAA;AAAA,EAClC,YAAY,UAAU,yBAAyB,SAAS;AACtD,UAAM,SAAS,OAAO;AACtB,SAAK,OAAO,KAAK,YAAY;AAC7B,SAAK,aAAa;AAClB,SAAK,OAAO;AACZ,WAAO,eAAe,MAAM,UAAS,SAAS;AAAA,EAChD;AACF;;;ACNO,IAAM,sBAAN,MAAM,6BAA4B,SAAS;AAAA,EAFlD,OAEkD;AAAA;AAAA;AAAA,EAChD,YAAY,UAAU,wBAAwB,UAAU,CAAC,GAAG;AAC1D,UAAM,SA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MAAM,iBAAgB,SAAS;AAAA,EACvD;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/errors/index.js","../../src/errors/appError.js","../../src/errors/authenticationError.js","../../src/errors/authorizationError.js","../../src/errors/conflictError.js","../../src/errors/deviceCommError.js","../../src/errors/loginError.js","../../src/errors/notFoundError.js","../../src/errors/requestError.js","../../src/errors/systemCommError.js","../../src/errors/tokenExpiredError.js","../../src/errors/unprocessableRequestError.js","../../src/errors/validationError.js"],"sourcesContent":["// This file is auto-generated. Do not edit this file manually.\n// Generated on: 2025-03-20T14:07:48.531Z\n\nexport * from \"./appError\";\nexport * from \"./authenticationError\";\nexport * from \"./authorizationError\";\nexport * from \"./conflictError\";\nexport * from \"./deviceCommError\";\nexport * from \"./loginError\";\nexport * from \"./notFoundError\";\nexport * from \"./requestError\";\nexport * from \"./systemCommError\";\nexport * from \"./tokenExpiredError\";\nexport * from \"./unprocessableRequestError\";\nexport * from \"./validationError\";","export class AppError extends Error {\n constructor(message = \"Internal Server Error\", options) {\n super(message, options);\n this.type = this.constructor.name;\n this.statusCode = 500;\n this.name = \"AppError\";\n Object.setPrototypeOf(this, AppError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class AuthenticationError extends AppError {\n constructor(message = \"Authentication Error\", options = {}) {\n super(message, options);\n this.statusCode = 401;\n this.name = \"AuthenticationError\";\n Object.setPrototypeOf(this, AuthenticationError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class AuthorizationError extends AppError {\n constructor(message = \"Authorization Error\", options = {}) {\n super(message, options);\n this.statusCode = 403;\n this.name = \"AuthorizationError\";\n Object.setPrototypeOf(this, AuthorizationError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class ConflictError extends AppError {\n constructor(message = \"Bad Request\", options = {}) {\n super(message, options);\n this.statusCode = 409;\n this.name = \"ConflictError\";\n Object.setPrototypeOf(this, ConflictError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class DeviceCommError extends AppError {\n constructor(message = \"Device Communication Error\", options = {}) {\n super(message, options);\n this.statusCode = 503;\n this.name = \"DeviceCommError\";\n Object.setPrototypeOf(this, DeviceCommError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class LoginError extends AppError {\n constructor(message = \"Invalid Login information provided\", options = {}) {\n super(message, options);\n this.statusCode = 401;\n this.name = \"LoginError\";\n Object.setPrototypeOf(this, LoginError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class NotFoundError extends AppError {\n constructor(message = \"Resource Not Found\", options = {}) {\n super(message, options);\n this.statusCode = 404;\n this.name = \"NotFoundError\";\n Object.setPrototypeOf(this, NotFoundError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class RequestError extends AppError {\n constructor(message = \"Bad Request\", options = {}) {\n super(message, options);\n this.statusCode = 400;\n this.name = \"RequestError\";\n Object.setPrototypeOf(this, RequestError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class SystemCommError extends AppError {\n constructor(message = \"System Communication Error\", options = {}) {\n super(message, options);\n this.statusCode = 503;\n this.name = \"SystemCommError\";\n Object.setPrototypeOf(this, SystemCommError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class TokenExpiredError extends AppError {\n constructor(message = \"Token Expired\", options = {}) {\n super(message, options);\n this.statusCode = 401;\n this.name = \"TokenExpiredError\";\n Object.setPrototypeOf(this, TokenExpiredError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class UnprocessableRequestError extends AppError {\n constructor(message = \"Unprocessable Request Error\", options = {}) {\n super(message, options);\n this.statusCode = 422;\n this.name = \"UnprocessableRequestError\";\n Object.setPrototypeOf(this, UnprocessableRequestError.prototype);\n }\n}\n","import { AppError } from \"./appError\";\n\nexport class ValidationError extends AppError {\n constructor(message = \"Validation Error\", options = {}) {\n super(message, options);\n this.statusCode = 400;\n this.name = \"ValidationError\";\n Object.setPrototypeOf(this, ValidationError.prototype);\n }\n}\n"],"mappings":";;;;;;;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,OAAO;AACZ,WAAO,eAAe,MAAM,mBAAkB,SAAS;AAAA,EACzD;AACF;;;ACPO,IAAM,4BAAN,MAAM,mCAAkC,SAAS;AAAA,EAFxD,OAEwD;AAAA;AAAA;AAAA,EACtD,YAAY,UAAU,+BAA+B,UAAU,CAAC,GAAG;AACjE,UAAM,SAAS,OAAO;AACtB,SAAK,aAAa;AAClB,SAAK,OAAO;AACZ,WAAO,eAAe,MAAM,2BAA0B,SAAS;AAAA,EACjE;AACF;;;ACPO,IAAM,kBAAN,MAAM,yBAAwB,SAAS;AAAA,EAF9C,OAE8C;AAAA;AAAA;AAAA,EAC5C,YAAY,UAAU,oBAAoB,UAAU,CAAC,GAAG;AACtD,UAAM,SAAS,OAAO;AACtB,SAAK,aAAa;AAClB,SAAK,OAAO;AACZ,WAAO,eAAe,MAAM,iBAAgB,SAAS;AAAA,EACvD;AACF;","names":[]}
@@ -1 +1 @@
1
- import"../chunk-MFC2JUHY.js";import{LoginError}from"../chunk-FU3MLFEZ.js";import{NotFoundError}from"../chunk-S3LGXCUW.js";import{RequestError}from"../chunk-R36FVWOK.js";import{SystemCommError}from"../chunk-J3IXW2RX.js";import{TokenExpiredError}from"../chunk-ELAUVDF4.js";import{UnprocessableRequestError}from"../chunk-ZXW3Q5ZK.js";import{ValidationError}from"../chunk-5FSWHSBF.js";import{AuthenticationError}from"../chunk-FWQABD55.js";import{AuthorizationError}from"../chunk-WN4Z5JJD.js";import{ConflictError}from"../chunk-7GGLCJ6I.js";import{DeviceCommError}from"../chunk-3AE3KSKI.js";import{AppError}from"../chunk-P3ZPJTJ2.js";import"../chunk-XE4OXN2W.js";export{AppError,AuthenticationError,AuthorizationError,ConflictError,DeviceCommError,LoginError,NotFoundError,RequestError,SystemCommError,TokenExpiredError,UnprocessableRequestError,ValidationError};//# sourceMappingURL=index.js.map
1
+ import"../chunk-H4J6BULN.js";import{LoginError}from"../chunk-FU3MLFEZ.js";import{NotFoundError}from"../chunk-S3LGXCUW.js";import{RequestError}from"../chunk-R36FVWOK.js";import{SystemCommError}from"../chunk-J3IXW2RX.js";import{TokenExpiredError}from"../chunk-ELAUVDF4.js";import{UnprocessableRequestError}from"../chunk-ZXW3Q5ZK.js";import{ValidationError}from"../chunk-5FSWHSBF.js";import{AuthenticationError}from"../chunk-FWQABD55.js";import{AuthorizationError}from"../chunk-WN4Z5JJD.js";import{ConflictError}from"../chunk-7GGLCJ6I.js";import{DeviceCommError}from"../chunk-3AE3KSKI.js";import{AppError}from"../chunk-P3ZPJTJ2.js";import"../chunk-XE4OXN2W.js";export{AppError,AuthenticationError,AuthorizationError,ConflictError,DeviceCommError,LoginError,NotFoundError,RequestError,SystemCommError,TokenExpiredError,UnprocessableRequestError,ValidationError};//# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/events/index.js","../../src/defs.js","../../src/events/event.js","../../src/events/applicationInUse.js","../../src/events/applicationOutOfUse.js","../../src/events/emailEvent.js","../../src/events/reservationCheckedIn.js","../../src/events/reservationCheckedOut.js","../../src/events/reservationSpaceChanged.js","../../src/events/sceneSet.js","../../src/events/shortLinkCreated.js","../../src/events/smsEvent.js","../../src/events/systemAlarmUpdated.js","../../src/events/systemCameraUpdated.js","../../src/events/systemCategoryUpdated.js","../../src/events/systemCourtesyUpdated.js","../../src/events/systemCredentialUpdated.js","../../src/events/systemDimmerUpdated.js","../../src/events/systemEntityDeleted.js","../../src/events/systemGatewayUpdated.js","../../src/events/systemLockUpdated.js","../../src/events/systemMediaSourceUpdated.js","../../src/events/systemMotionSensorUpdated.js","../../src/events/systemOrganizationUpdated.js","../../src/events/systemProductUpdated.js","../../src/events/systemPropertyUpdated.js","../../src/events/systemReservationUpdated.js","../../src/events/systemSpaceUpdated.js","../../src/events/systemSwitchUpdated.js","../../src/events/systemThermostatUpdated.js","../../src/events/systemUserUpdated.js","../../src/events/systemWindowCoveringUpdated.js"],"sourcesContent":["// This file is auto-generated. Do not edit this file manually.\n// Generated on: 2025-03-13T20:36:28.617Z\n\nexport * from \"./applicationInUse\";\nexport * from \"./applicationOutOfUse\";\nexport * from \"./emailEvent\";\nexport * from \"./event\";\nexport * from \"./reservationCheckedIn\";\nexport * from \"./reservationCheckedOut\";\nexport * from \"./reservationSpaceChanged\";\nexport * from \"./sceneSet\";\nexport * from \"./shortLinkCreated\";\nexport * from \"./smsEvent\";\nexport * from \"./systemAlarmUpdated\";\nexport * from \"./systemCameraUpdated\";\nexport * from \"./systemCategoryUpdated\";\nexport * from \"./systemCourtesyUpdated\";\nexport * from \"./systemCredentialUpdated\";\nexport * from \"./systemDimmerUpdated\";\nexport * from \"./systemEntityDeleted\";\nexport * from \"./systemGatewayUpdated\";\nexport * from \"./systemLockUpdated\";\nexport * from \"./systemMediaSourceUpdated\";\nexport * from \"./systemMotionSensorUpdated\";\nexport * from \"./systemOrganizationUpdated\";\nexport * from \"./systemProductUpdated\";\nexport * from \"./systemPropertyUpdated\";\nexport * from \"./systemReservationUpdated\";\nexport * from \"./systemSpaceUpdated\";\nexport * from \"./systemSwitchUpdated\";\nexport * from \"./systemThermostatUpdated\";\nexport * from \"./systemUserUpdated\";\nexport * from \"./systemWindowCoveringUpdated\";","export const amqpExchanges = {\n // routes commands based on `command-name` header and in many cases `property-id` header\n Commands: {\n name: \"kohost.commands\",\n type: \"headers\",\n options: {\n durable: true,\n },\n },\n CommandResponses: {\n name: \"kohost.commandResponses\",\n type: \"topic\",\n options: {\n durable: true,\n },\n },\n // routes events based on routing keys\n DriverEvents: {\n name: \"kohost.events.drivers\",\n type: \"topic\",\n options: {\n durable: true,\n },\n },\n AppEvents: {\n name: \"kohost.events.app\",\n type: \"topic\",\n options: {\n durable: true,\n },\n },\n Direct: {\n name: \"kohost.direct\",\n type: \"direct\",\n options: {\n durable: true,\n },\n },\n // dead letter exchange\n dlx: {\n name: \"kohost.dlx\",\n type: \"direct\",\n },\n};\n\nexport const deviceTypes = [\n \"dimmer\",\n \"switch\",\n \"thermostat\",\n \"lock\",\n \"windowCovering\",\n \"courtesy\",\n \"alarm\",\n \"camera\",\n \"mediaSource\",\n \"motionSensor\",\n \"gateway\",\n];\n","import { amqpExchanges } from \"../defs\";\n\nexport class Event {\n constructor(data, context = {}) {\n this.data = [];\n this.context = context;\n if (!data) throw new Error(\"Event data is required\");\n if (typeof data !== \"object\" && !Array.isArray(data))\n throw new Error(\"Event data must be an object or array\");\n\n if (!Array.isArray(data)) this.data = [data];\n else this.data = data;\n }\n\n get organizationId() {\n return this.context.organizationId || \"*\";\n }\n\n get propertyId() {\n return this.context.propertyId || \"*\";\n }\n\n static get type() {\n return \"Event\";\n }\n\n static get exchange() {\n return amqpExchanges.DriverEvents.name;\n }\n\n static get entity() {\n return \"\";\n }\n\n build() {\n return { data: { ...this.data } };\n }\n\n get routingKey() {\n return `${this.organizationId}.${this.propertyId}.${this.constructor.entity}.${this.constructor.name}`;\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ApplicationInUse extends Event {\n constructor(data = {}, context) {\n super(data, context);\n }\n\n static get name() {\n return \"ApplicationInUse\";\n }\n\n static get entity() {\n return \"app\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ApplicationOutOfUse extends Event {\n constructor(data = {}, context = {}) {\n super(data, context);\n }\n\n static get name() {\n return \"ApplicationOutOfUse\";\n }\n\n static get entity() {\n return \"app\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { Event } from \"./event\";\n\nexport class EmailEvent extends Event {\n constructor(email, context) {\n super(email, context);\n }\n\n static get name() {\n return \"EmailEvent\";\n }\n\n static get entity() {\n return \"emailMessage\";\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ReservationCheckedIn extends Event {\n constructor(reservation, context) {\n super(reservation, context);\n }\n\n static get name() {\n return \"ReservationCheckedIn\";\n }\n\n static get entity() {\n return \"reservation\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ReservationCheckedOut extends Event {\n constructor(reservation, context) {\n super(reservation, context);\n }\n\n static get name() {\n return \"ReservationCheckedOut\";\n }\n\n static get entity() {\n return \"reservation\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ReservationSpaceChanged extends Event {\n constructor(reservation, context) {\n super(reservation, context);\n }\n\n static get name() {\n return \"ReservationSpaceChanged\";\n }\n\n static get entity() {\n return \"reservation\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { Event } from \"./event\";\n\nexport class SceneSet extends Event {\n constructor(scene, context) {\n super(scene, context);\n }\n\n static get name() {\n return \"SceneSet\";\n }\n\n static get entity() {\n return \"scene\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class ShortLinkCreated extends Event {\n constructor(shortLink, context) {\n super(shortLink, context);\n }\n\n static get name() {\n return \"ShortLinkCreated\";\n }\n\n static get entity() {\n return \"shortLink\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SMSEvent extends Event {\n constructor(sms, context) {\n super(sms, context);\n }\n\n static get name() {\n return \"SMSEvent\";\n }\n\n static get entity() {\n return \"smsMessage\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemAlarmUpdated extends Event {\n constructor(alarm, context) {\n super(alarm, context);\n }\n\n static get name() {\n return \"SystemAlarmUpdated\";\n }\n\n static get entity() {\n return \"alarm\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemCameraUpdated extends Event {\n constructor(camera, context) {\n super(camera, context);\n }\n\n static get name() {\n return \"SystemCameraUpdated\";\n }\n\n static get entity() {\n return \"camera\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemCategoryUpdated extends Event {\n constructor(category, context) {\n super(category, context);\n }\n\n static get name() {\n return \"SystemCategoryUpdated\";\n }\n\n static get entity() {\n return \"category\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemCourtesyUpdated extends Event {\n constructor(courtesy, context) {\n super(courtesy, context);\n }\n\n static get name() {\n return \"SystemCourtesyUpdated\";\n }\n\n static get entity() {\n return \"courtesy\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemCredentialUpdated extends Event {\n constructor(cred, context) {\n super(cred, context);\n }\n\n static get name() {\n return \"SystemCredentialUpdated\";\n }\n\n static get entity() {\n return \"credential\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemDimmerUpdated extends Event {\n constructor(dimmer, context) {\n super(dimmer, context);\n }\n\n static get name() {\n return \"SystemDimmerUpdated\";\n }\n\n static get entity() {\n return \"dimmer\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemEntityDeleted extends Event {\n constructor(data, context) {\n super(data, context);\n }\n\n static get name() {\n return \"SystemEntityDeleted\";\n }\n\n static get entity() {\n return \"entity\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemGatewayUpdated extends Event {\n constructor(gateway, context) {\n super(gateway, context);\n }\n\n static get name() {\n return \"SystemGatewayUpdated\";\n }\n\n static get entity() {\n return \"gateway\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemLockUpdated extends Event {\n constructor(lock, context) {\n super(lock, context);\n }\n\n static get name() {\n return \"SystemLockUpdated\";\n }\n\n static get entity() {\n return \"lock\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemMediaSourceUpdated extends Event {\n constructor(mediaSource, context) {\n super(mediaSource, context);\n }\n\n static get name() {\n return \"SystemMediaSourceUpdated\";\n }\n\n static get entity() {\n return \"mediaSource\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemMotionSensorUpdated extends Event {\n constructor(motion, context) {\n super(motion, context);\n }\n\n static get name() {\n return \"SystemMotionSensorUpdated\";\n }\n\n static get entity() {\n return \"motionSensor\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemOrganizationUpdated extends Event {\n constructor(organization, context) {\n super(organization, context);\n }\n\n static get name() {\n return \"SystemOrganizationUpdated\";\n }\n\n static get entity() {\n return \"organization\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemProductUpdated extends Event {\n constructor(product, context) {\n super(product, context);\n }\n\n static get name() {\n return \"SystemProductUpdated\";\n }\n\n static get entity() {\n return \"product\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemPropertyUpdated extends Event {\n constructor(property, context) {\n super(property, context);\n }\n\n static get name() {\n return \"SystemPropertyUpdated\";\n }\n\n static get entity() {\n return \"property\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemReservationUpdated extends Event {\n constructor(reservation, context) {\n super(reservation, context);\n }\n\n static get name() {\n return \"SystemReservationUpdated\";\n }\n\n static get entity() {\n return \"reservation\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemSpaceUpdated extends Event {\n constructor(space, context) {\n super(space, context);\n }\n\n static get name() {\n return \"SystemSpaceUpdated\";\n }\n\n static get entity() {\n return \"space\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemSwitchUpdated extends Event {\n constructor(_switch, context) {\n super(_switch, context);\n }\n\n static get name() {\n return \"SystemSwitchUpdated\";\n }\n\n static get entity() {\n return \"switch\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemThermostatUpdated extends Event {\n constructor(thermostat, context) {\n super(thermostat, context);\n }\n\n static get name() {\n return \"SystemThermostatUpdated\";\n }\n\n static get entity() {\n return \"thermostat\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemUserUpdated extends Event {\n constructor(user, context) {\n super(user, context);\n }\n\n static get name() {\n return \"SystemUserUpdated\";\n }\n\n static get entity() {\n return \"user\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemWindowCoveringUpdated extends Event {\n constructor(wc, context) {\n super(wc, context);\n }\n\n static get name() {\n return \"SystemWindowCoveringUpdated\";\n }\n\n static get entity() {\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ACZO,IAAM,0BAAN,cAAsC,MAAM;AAAA,EACjD,YAAY,YAAY,SAAS;AAC/B,UAAM,YAAY,OAAO;AAAA,EAC3B;AAAA,EAEA,WAAW,OAAO;AAChB,WAAO;AAAA,EACT;AAAA,EAEA,WAAW,SAAS;AAClB,WAAO;AAAA,EACT;AACF;;;ACZO,IAAM,oBAAN,cAAgC,MAAM;AAAA,EAC3C,YAAY,MAAM,SAAS;AACzB,UAAM,MAAM,OAAO;AAAA,EACrB;AAAA,EAEA,WAAW,OAAO;AAChB,WAAO;AAAA,EACT;AAAA,EAEA,WAAW,SAAS;AAClB,WAAO;AAAA,EACT;AACF;;;ACZO,IAAM,8BAAN,cAA0C,MAAM;AAAA,EACrD,YAAY,IAAI,SAAS;AACvB,UAAM,IAAI,OAAO;AAAA,EACnB;AAAA,EAEA,WAAW,OAAO;AAChB,WAAO;AAAA,EACT;AAAA,EAEA,WAAW,SAAS;AAClB,WAAO;AAAA,EACT;AACF;","names":[]}
1
+ {"version":3,"sources":["../../src/events/index.js","../../src/defs.js","../../src/events/event.js","../../src/events/applicationInUse.js","../../src/events/applicationOutOfUse.js","../../src/events/emailEvent.js","../../src/events/reservationCheckedIn.js","../../src/events/reservationCheckedOut.js","../../src/events/reservationSpaceChanged.js","../../src/events/sceneSet.js","../../src/events/shortLinkCreated.js","../../src/events/smsEvent.js","../../src/events/systemAlarmUpdated.js","../../src/events/systemCameraUpdated.js","../../src/events/systemCategoryUpdated.js","../../src/events/systemCourtesyUpdated.js","../../src/events/systemCredentialUpdated.js","../../src/events/systemDimmerUpdated.js","../../src/events/systemEntityDeleted.js","../../src/events/systemGatewayUpdated.js","../../src/events/systemLockUpdated.js","../../src/events/systemMediaSourceUpdated.js","../../src/events/systemMotionSensorUpdated.js","../../src/events/systemOrganizationUpdated.js","../../src/events/systemProductUpdated.js","../../src/events/systemPropertyUpdated.js","../../src/events/systemReservationUpdated.js","../../src/events/systemSpaceUpdated.js","../../src/events/systemSwitchUpdated.js","../../src/events/systemThermostatUpdated.js","../../src/events/systemUserUpdated.js","../../src/events/systemWindowCoveringUpdated.js"],"sourcesContent":["// This file is auto-generated. Do not edit this file manually.\n// Generated on: 2025-03-20T14:07:48.531Z\n\nexport * from \"./applicationInUse\";\nexport * from \"./applicationOutOfUse\";\nexport * from \"./emailEvent\";\nexport * from \"./event\";\nexport * from \"./reservationCheckedIn\";\nexport * from \"./reservationCheckedOut\";\nexport * from \"./reservationSpaceChanged\";\nexport * from \"./sceneSet\";\nexport * from \"./shortLinkCreated\";\nexport * from \"./smsEvent\";\nexport * from \"./systemAlarmUpdated\";\nexport * from \"./systemCameraUpdated\";\nexport * from \"./systemCategoryUpdated\";\nexport * from \"./systemCourtesyUpdated\";\nexport * from \"./systemCredentialUpdated\";\nexport * from \"./systemDimmerUpdated\";\nexport * from \"./systemEntityDeleted\";\nexport * from \"./systemGatewayUpdated\";\nexport * from \"./systemLockUpdated\";\nexport * from \"./systemMediaSourceUpdated\";\nexport * from \"./systemMotionSensorUpdated\";\nexport * from \"./systemOrganizationUpdated\";\nexport * from \"./systemProductUpdated\";\nexport * from \"./systemPropertyUpdated\";\nexport * from \"./systemReservationUpdated\";\nexport * from \"./systemSpaceUpdated\";\nexport * from \"./systemSwitchUpdated\";\nexport * from \"./systemThermostatUpdated\";\nexport * from \"./systemUserUpdated\";\nexport * from \"./systemWindowCoveringUpdated\";","export const amqpExchanges = {\n // routes commands based on `command-name` header and in many cases `property-id` header\n Commands: {\n name: \"kohost.commands\",\n type: \"headers\",\n options: {\n durable: true,\n },\n },\n CommandResponses: {\n name: \"kohost.commandResponses\",\n type: \"topic\",\n options: {\n durable: true,\n },\n },\n // routes events based on routing keys\n DriverEvents: {\n name: \"kohost.events.drivers\",\n type: \"topic\",\n options: {\n durable: true,\n },\n },\n AppEvents: {\n name: \"kohost.events.app\",\n type: \"topic\",\n options: {\n durable: true,\n },\n },\n Direct: {\n name: \"kohost.direct\",\n type: \"direct\",\n options: {\n durable: true,\n },\n },\n // dead letter exchange\n dlx: {\n name: \"kohost.dlx\",\n type: \"direct\",\n },\n};\n\nexport const deviceTypes = [\n \"dimmer\",\n \"switch\",\n \"thermostat\",\n \"lock\",\n \"windowCovering\",\n \"courtesy\",\n \"alarm\",\n \"camera\",\n \"mediaSource\",\n \"motionSensor\",\n \"gateway\",\n];\n","import { amqpExchanges } from \"../defs\";\n\nexport class Event {\n constructor(data, context = {}) {\n this.data = [];\n this.context = context;\n if (!data) throw new Error(\"Event data is required\");\n if (typeof data !== \"object\" && !Array.isArray(data))\n throw new Error(\"Event data must be an object or array\");\n\n if (!Array.isArray(data)) this.data = [data];\n else this.data = data;\n }\n\n get organizationId() {\n return this.context.organizationId || \"*\";\n }\n\n get propertyId() {\n return this.context.propertyId || \"*\";\n }\n\n static get type() {\n return \"Event\";\n }\n\n static get exchange() {\n return amqpExchanges.DriverEvents.name;\n }\n\n static get entity() {\n return \"\";\n }\n\n build() {\n return { data: { ...this.data } };\n }\n\n get routingKey() {\n return `${this.organizationId}.${this.propertyId}.${this.constructor.entity}.${this.constructor.name}`;\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ApplicationInUse extends Event {\n constructor(data = {}, context) {\n super(data, context);\n }\n\n static get name() {\n return \"ApplicationInUse\";\n }\n\n static get entity() {\n return \"app\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ApplicationOutOfUse extends Event {\n constructor(data = {}, context = {}) {\n super(data, context);\n }\n\n static get name() {\n return \"ApplicationOutOfUse\";\n }\n\n static get entity() {\n return \"app\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { Event } from \"./event\";\n\nexport class EmailEvent extends Event {\n constructor(email, context) {\n super(email, context);\n }\n\n static get name() {\n return \"EmailEvent\";\n }\n\n static get entity() {\n return \"emailMessage\";\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ReservationCheckedIn extends Event {\n constructor(reservation, context) {\n super(reservation, context);\n }\n\n static get name() {\n return \"ReservationCheckedIn\";\n }\n\n static get entity() {\n return \"reservation\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ReservationCheckedOut extends Event {\n constructor(reservation, context) {\n super(reservation, context);\n }\n\n static get name() {\n return \"ReservationCheckedOut\";\n }\n\n static get entity() {\n return \"reservation\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { amqpExchanges } from \"../defs\";\nimport { Event } from \"./event\";\n\nexport class ReservationSpaceChanged extends Event {\n constructor(reservation, context) {\n super(reservation, context);\n }\n\n static get name() {\n return \"ReservationSpaceChanged\";\n }\n\n static get entity() {\n return \"reservation\";\n }\n\n static get exchange() {\n return amqpExchanges.AppEvents.name;\n }\n}\n","import { Event } from \"./event\";\n\nexport class SceneSet extends Event {\n constructor(scene, context) {\n super(scene, context);\n }\n\n static get name() {\n return \"SceneSet\";\n }\n\n static get entity() {\n return \"scene\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class ShortLinkCreated extends Event {\n constructor(shortLink, context) {\n super(shortLink, context);\n }\n\n static get name() {\n return \"ShortLinkCreated\";\n }\n\n static get entity() {\n return \"shortLink\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SMSEvent extends Event {\n constructor(sms, context) {\n super(sms, context);\n }\n\n static get name() {\n return \"SMSEvent\";\n }\n\n static get entity() {\n return \"smsMessage\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemAlarmUpdated extends Event {\n constructor(alarm, context) {\n super(alarm, context);\n }\n\n static get name() {\n return \"SystemAlarmUpdated\";\n }\n\n static get entity() {\n return \"alarm\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemCameraUpdated extends Event {\n constructor(camera, context) {\n super(camera, context);\n }\n\n static get name() {\n return \"SystemCameraUpdated\";\n }\n\n static get entity() {\n return \"camera\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemCategoryUpdated extends Event {\n constructor(category, context) {\n super(category, context);\n }\n\n static get name() {\n return \"SystemCategoryUpdated\";\n }\n\n static get entity() {\n return \"category\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemCourtesyUpdated extends Event {\n constructor(courtesy, context) {\n super(courtesy, context);\n }\n\n static get name() {\n return \"SystemCourtesyUpdated\";\n }\n\n static get entity() {\n return \"courtesy\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemCredentialUpdated extends Event {\n constructor(cred, context) {\n super(cred, context);\n }\n\n static get name() {\n return \"SystemCredentialUpdated\";\n }\n\n static get entity() {\n return \"credential\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemDimmerUpdated extends Event {\n constructor(dimmer, context) {\n super(dimmer, context);\n }\n\n static get name() {\n return \"SystemDimmerUpdated\";\n }\n\n static get entity() {\n return \"dimmer\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemEntityDeleted extends Event {\n constructor(data, context) {\n super(data, context);\n }\n\n static get name() {\n return \"SystemEntityDeleted\";\n }\n\n static get entity() {\n return \"entity\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemGatewayUpdated extends Event {\n constructor(gateway, context) {\n super(gateway, context);\n }\n\n static get name() {\n return \"SystemGatewayUpdated\";\n }\n\n static get entity() {\n return \"gateway\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemLockUpdated extends Event {\n constructor(lock, context) {\n super(lock, context);\n }\n\n static get name() {\n return \"SystemLockUpdated\";\n }\n\n static get entity() {\n return \"lock\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemMediaSourceUpdated extends Event {\n constructor(mediaSource, context) {\n super(mediaSource, context);\n }\n\n static get name() {\n return \"SystemMediaSourceUpdated\";\n }\n\n static get entity() {\n return \"mediaSource\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemMotionSensorUpdated extends Event {\n constructor(motion, context) {\n super(motion, context);\n }\n\n static get name() {\n return \"SystemMotionSensorUpdated\";\n }\n\n static get entity() {\n return \"motionSensor\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemOrganizationUpdated extends Event {\n constructor(organization, context) {\n super(organization, context);\n }\n\n static get name() {\n return \"SystemOrganizationUpdated\";\n }\n\n static get entity() {\n return \"organization\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemProductUpdated extends Event {\n constructor(product, context) {\n super(product, context);\n }\n\n static get name() {\n return \"SystemProductUpdated\";\n }\n\n static get entity() {\n return \"product\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemPropertyUpdated extends Event {\n constructor(property, context) {\n super(property, context);\n }\n\n static get name() {\n return \"SystemPropertyUpdated\";\n }\n\n static get entity() {\n return \"property\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemReservationUpdated extends Event {\n constructor(reservation, context) {\n super(reservation, context);\n }\n\n static get name() {\n return \"SystemReservationUpdated\";\n }\n\n static get entity() {\n return \"reservation\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemSpaceUpdated extends Event {\n constructor(space, context) {\n super(space, context);\n }\n\n static get name() {\n return \"SystemSpaceUpdated\";\n }\n\n static get entity() {\n return \"space\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemSwitchUpdated extends Event {\n constructor(_switch, context) {\n super(_switch, context);\n }\n\n static get name() {\n return \"SystemSwitchUpdated\";\n }\n\n static get entity() {\n return \"switch\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemThermostatUpdated extends Event {\n constructor(thermostat, context) {\n super(thermostat, context);\n }\n\n static get name() {\n return \"SystemThermostatUpdated\";\n }\n\n static get entity() {\n return \"thermostat\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemUserUpdated extends Event {\n constructor(user, context) {\n super(user, context);\n }\n\n static get name() {\n return \"SystemUserUpdated\";\n }\n\n static get entity() {\n return \"user\";\n }\n}\n","import { Event } from \"./event\";\n\nexport class SystemWindowCoveringUpdated extends Event {\n constructor(wc, context) {\n super(wc, context);\n }\n\n static get name() {\n return \"SystemWindowCoveringUpdated\";\n }\n\n static get entity() {\n return \"windowCovering\";\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAO,IAAM,gBAAgB;AAAA;AAAA,EAE3B,UAAU;AAAA,IACR,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,MACP,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,kBAAkB;AAAA,IAChB,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,MACP,SAAS;AAAA,IACX;AAAA,EACF;AAAA;AAAA,EAEA,cAAc;AAAA,IACZ,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,MACP,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,WAAW;AAAA,IACT,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,MACP,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,MAAM;AAAA,IACN,SAAS;AAAA,MACP,SAAS;AAAA,IACX;AAAA,EACF;AAAA;AAAA,EAEA,KAAK;AAAA,IACH,MAAM;AAAA,IACN,MAAM;AAAA,EACR;AACF;;;ACzCO,IAAM,QAAN,MAAY;AAAA,EAFnB,OAEmB;AAAA;AAAA;AAAA,EACjB,YAAY,MAAM,UAAU,CAAC,GAAG;AAC9B,SAAK,OAAO,CAAC;AACb,SAAK,UAAU;AACf,QAAI,CAAC,KAAM,OAAM,IAAI,MAAM,wBAAwB;AACnD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,SAAS,OAAO;AAAA,EACxB;AAAA,EAEA,WAAW,OAAO;AAChB,WAAO;AAAA,EACT;AAAA,EAEA,WAAW,SAAS;AAClB,WAAO;AAAA,EACT;AACF;;;ACZO,IAAM,0BAAN,cAAsC,MAAM;AAAA,EACjD,YAAY,YAAY,SAAS;AAC/B,UAAM,YAAY,OAAO;AAAA,EAC3B;AAAA,EAEA,WAAW,OAAO;AAChB,WAAO;AAAA,EACT;AAAA,EAEA,WAAW,SAAS;AAClB,WAAO;AAAA,EACT;AACF;;;ACZO,IAAM,oBAAN,cAAgC,MAAM;AAAA,EAC3C,YAAY,MAAM,SAAS;AACzB,UAAM,MAAM,OAAO;AAAA,EACrB;AAAA,EAEA,WAAW,OAAO;AAChB,WAAO;AAAA,EACT;AAAA,EAEA,WAAW,SAAS;AAClB,WAAO;AAAA,EACT;AACF;;;ACZO,IAAM,8BAAN,cAA0C,MAAM;AAAA,EACrD,YAAY,IAAI,SAAS;AACvB,UAAM,IAAI,OAAO;AAAA,EACnB;AAAA,EAEA,WAAW,OAAO;AAChB,WAAO;AAAA,EACT;AAAA,EAEA,WAAW,SAAS;AAClB,WAAO;AAAA,EACT;AACF;","names":[]}
@@ -1 +1 @@
1
- import"../chunk-HPW3XWUB.js";import{SystemPropertyUpdated}from"../chunk-TXM6UAL7.js";import{SystemReservationUpdated}from"../chunk-IAAWIPRL.js";import{SystemSpaceUpdated}from"../chunk-XJTVR2N6.js";import{SystemSwitchUpdated}from"../chunk-Q6DULDGC.js";import{SystemThermostatUpdated}from"../chunk-6WMLZZ2S.js";import{SystemUserUpdated}from"../chunk-LL7JQZ22.js";import{SystemWindowCoveringUpdated}from"../chunk-3EFKTRVA.js";import{SystemDimmerUpdated}from"../chunk-WTHRQ7HY.js";import{SystemEntityDeleted}from"../chunk-3FWQCAHI.js";import{SystemGatewayUpdated}from"../chunk-WN55GEEA.js";import{SystemLockUpdated}from"../chunk-NPU3HOLY.js";import{SystemMediaSourceUpdated}from"../chunk-77ZRNQNC.js";import{SystemMotionSensorUpdated}from"../chunk-QA3JZFE6.js";import{SystemOrganizationUpdated}from"../chunk-XGMNXP5O.js";import{SystemProductUpdated}from"../chunk-2RWKPJ7X.js";import{SceneSet}from"../chunk-AFFBNWED.js";import{ShortLinkCreated}from"../chunk-RDORBZXU.js";import{SMSEvent}from"../chunk-PDC7GVYH.js";import{SystemAlarmUpdated}from"../chunk-MXEHDVPA.js";import{SystemCameraUpdated}from"../chunk-UGU6VADU.js";import{SystemCategoryUpdated}from"../chunk-UPJNM24X.js";import{SystemCourtesyUpdated}from"../chunk-F3OYDT5G.js";import{SystemCredentialUpdated}from"../chunk-OTCZ5EYP.js";import{ApplicationInUse}from"../chunk-77HBMMF6.js";import{ApplicationOutOfUse}from"../chunk-2QUVPJGQ.js";import{EmailEvent}from"../chunk-WIOEN43A.js";import{ReservationCheckedIn}from"../chunk-DKN6VMLC.js";import{ReservationCheckedOut}from"../chunk-ASWG7NGL.js";import{ReservationSpaceChanged}from"../chunk-YV5A37JB.js";import{Event}from"../chunk-OJ3NRGG4.js";import"../chunk-THXOWLL3.js";import"../chunk-XE4OXN2W.js";export{ApplicationInUse,ApplicationOutOfUse,EmailEvent,Event,ReservationCheckedIn,ReservationCheckedOut,ReservationSpaceChanged,SMSEvent,SceneSet,ShortLinkCreated,SystemAlarmUpdated,SystemCameraUpdated,SystemCategoryUpdated,SystemCourtesyUpdated,SystemCredentialUpdated,SystemDimmerUpdated,SystemEntityDeleted,SystemGatewayUpdated,SystemLockUpdated,SystemMediaSourceUpdated,SystemMotionSensorUpdated,SystemOrganizationUpdated,SystemProductUpdated,SystemPropertyUpdated,SystemReservationUpdated,SystemSpaceUpdated,SystemSwitchUpdated,SystemThermostatUpdated,SystemUserUpdated,SystemWindowCoveringUpdated};//# sourceMappingURL=index.js.map
1
+ import"../chunk-ZBNPXH3W.js";import{SystemUserUpdated}from"../chunk-LL7JQZ22.js";import{SystemWindowCoveringUpdated}from"../chunk-3EFKTRVA.js";import{SystemMotionSensorUpdated}from"../chunk-QA3JZFE6.js";import{SystemOrganizationUpdated}from"../chunk-XGMNXP5O.js";import{SystemProductUpdated}from"../chunk-2RWKPJ7X.js";import{SystemPropertyUpdated}from"../chunk-TXM6UAL7.js";import{SystemReservationUpdated}from"../chunk-IAAWIPRL.js";import{SystemSpaceUpdated}from"../chunk-XJTVR2N6.js";import{SystemSwitchUpdated}from"../chunk-Q6DULDGC.js";import{SystemThermostatUpdated}from"../chunk-6WMLZZ2S.js";import{SystemCategoryUpdated}from"../chunk-UPJNM24X.js";import{SystemCourtesyUpdated}from"../chunk-F3OYDT5G.js";import{SystemCredentialUpdated}from"../chunk-OTCZ5EYP.js";import{SystemDimmerUpdated}from"../chunk-WTHRQ7HY.js";import{SystemEntityDeleted}from"../chunk-3FWQCAHI.js";import{SystemGatewayUpdated}from"../chunk-WN55GEEA.js";import{SystemLockUpdated}from"../chunk-NPU3HOLY.js";import{SystemMediaSourceUpdated}from"../chunk-77ZRNQNC.js";import{ReservationCheckedIn}from"../chunk-DKN6VMLC.js";import{ReservationCheckedOut}from"../chunk-ASWG7NGL.js";import{ReservationSpaceChanged}from"../chunk-YV5A37JB.js";import{SceneSet}from"../chunk-AFFBNWED.js";import{ShortLinkCreated}from"../chunk-RDORBZXU.js";import{SMSEvent}from"../chunk-PDC7GVYH.js";import{SystemAlarmUpdated}from"../chunk-MXEHDVPA.js";import{SystemCameraUpdated}from"../chunk-UGU6VADU.js";import{ApplicationInUse}from"../chunk-77HBMMF6.js";import{ApplicationOutOfUse}from"../chunk-2QUVPJGQ.js";import{EmailEvent}from"../chunk-WIOEN43A.js";import{Event}from"../chunk-OJ3NRGG4.js";import"../chunk-THXOWLL3.js";import"../chunk-XE4OXN2W.js";export{ApplicationInUse,ApplicationOutOfUse,EmailEvent,Event,ReservationCheckedIn,ReservationCheckedOut,ReservationSpaceChanged,SMSEvent,SceneSet,ShortLinkCreated,SystemAlarmUpdated,SystemCameraUpdated,SystemCategoryUpdated,SystemCourtesyUpdated,SystemCredentialUpdated,SystemDimmerUpdated,SystemEntityDeleted,SystemGatewayUpdated,SystemLockUpdated,SystemMediaSourceUpdated,SystemMotionSensorUpdated,SystemOrganizationUpdated,SystemProductUpdated,SystemPropertyUpdated,SystemReservationUpdated,SystemSpaceUpdated,SystemSwitchUpdated,SystemThermostatUpdated,SystemUserUpdated,SystemWindowCoveringUpdated};//# sourceMappingURL=index.js.map