@kohost/api-client 4.5.4 → 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 (252) hide show
  1. package/dist/amqpClient.cjs.map +1 -1
  2. package/dist/amqpClient.js +1 -1
  3. package/dist/{chunk-XV3KXIH2.js → chunk-2BGFVTK5.js} +1 -1
  4. package/dist/{chunk-ET6X74DQ.js → chunk-3KZCYHSF.js} +1 -1
  5. package/dist/{chunk-ET6X74DQ.js.map → chunk-3KZCYHSF.js.map} +1 -1
  6. package/dist/{chunk-BRZVBG7Y.js → chunk-4HA37GSM.js} +1 -1
  7. package/dist/{chunk-KJI445LX.js → chunk-6QIZNOTQ.js} +1 -1
  8. package/dist/{chunk-LNRGAGJF.js → chunk-74WBAGSV.js} +1 -1
  9. package/dist/chunk-7ABCCOVA.js +1 -0
  10. package/dist/{chunk-X2PHGWTM.js.map → chunk-7ABCCOVA.js.map} +1 -1
  11. package/dist/{chunk-K4X5REA5.js → chunk-7JLIE2YT.js} +1 -1
  12. package/dist/{chunk-7VS2JHRH.js → chunk-AKBP4ULH.js} +1 -1
  13. package/dist/{chunk-E7DC44YR.js → chunk-AVZIY77R.js} +1 -1
  14. package/dist/{chunk-BAIHVN4F.js → chunk-BW6WOT2G.js} +1 -1
  15. package/dist/{chunk-KD5V4VHT.js → chunk-CAALG6EM.js} +1 -1
  16. package/dist/{chunk-2ZHDK2LA.js → chunk-CBGDQUVP.js} +1 -1
  17. package/dist/{chunk-SIRKWUJR.js → chunk-CIIC5YSI.js} +1 -1
  18. package/dist/{chunk-G4JQYUAC.js → chunk-CL66AXXT.js} +1 -1
  19. package/dist/{chunk-ZR72266G.js → chunk-CQHD5IHT.js} +1 -1
  20. package/dist/chunk-CQHD5IHT.js.map +1 -0
  21. package/dist/{chunk-XORT6HQQ.js → chunk-EEWDLSCT.js} +1 -1
  22. package/dist/{chunk-GJIRL22D.js → chunk-EFVZZ3UR.js} +1 -1
  23. package/dist/{chunk-IP2J33M4.js → chunk-FIY4MTXC.js} +1 -1
  24. package/dist/{chunk-PHUGJKO5.js → chunk-FQWI5UT7.js} +1 -1
  25. package/dist/{chunk-ZARKTUMC.js → chunk-H4J6BULN.js} +1 -1
  26. package/dist/{chunk-ZARKTUMC.js.map → chunk-H4J6BULN.js.map} +1 -1
  27. package/dist/{chunk-EIKLORN2.js → chunk-HNKGUVQT.js} +1 -1
  28. package/dist/{chunk-J6NIJCBP.js → chunk-HQZCMOV5.js} +1 -1
  29. package/dist/{chunk-FJGHDCFU.js → chunk-HVRHXRP6.js} +1 -1
  30. package/dist/{chunk-6U3D7INH.js → chunk-I3T6UG4N.js} +1 -1
  31. package/dist/{chunk-ASUIVB2I.js → chunk-IDKLDYJM.js} +1 -1
  32. package/dist/{chunk-7OSTDOUM.js → chunk-IHVBHK4S.js} +1 -1
  33. package/dist/{chunk-KZGHAUI5.js → chunk-IOFW6KW3.js} +1 -1
  34. package/dist/chunk-J726LZFG.js +1 -0
  35. package/dist/chunk-J726LZFG.js.map +1 -0
  36. package/dist/{chunk-KVGMJRXC.js → chunk-KCHWGYJF.js} +1 -1
  37. package/dist/{chunk-3JKVMXXF.js → chunk-KUKQHDC5.js} +1 -1
  38. package/dist/{chunk-3JKVMXXF.js.map → chunk-KUKQHDC5.js.map} +1 -1
  39. package/dist/{chunk-MG2VQTNN.js → chunk-KW3HNS5S.js} +1 -1
  40. package/dist/{chunk-PBMLITMC.js → chunk-LZDFH4GB.js} +1 -1
  41. package/dist/{chunk-SW7K432L.js → chunk-O42G3HNO.js} +1 -1
  42. package/dist/{chunk-PWFIE4A4.js → chunk-OUOPHOS3.js} +1 -1
  43. package/dist/{chunk-T2E42CQF.js → chunk-PA6CL6LK.js} +1 -1
  44. package/dist/{chunk-XVQXZSHK.js → chunk-QHS6ZPJI.js} +1 -1
  45. package/dist/{chunk-AQVI4C4C.js → chunk-QOLVVEU5.js} +1 -1
  46. package/dist/{chunk-NFBNENWO.js → chunk-UKIG7GFX.js} +1 -1
  47. package/dist/{chunk-QE7MS5GE.js → chunk-UOSPZFQA.js} +1 -1
  48. package/dist/chunk-VLFQ27ZT.js +1 -0
  49. package/dist/chunk-VLFQ27ZT.js.map +1 -0
  50. package/dist/{chunk-P5SXOPMU.js → chunk-WHYNHNWY.js} +1 -1
  51. package/dist/{chunk-IKAINY4Q.js → chunk-WIZSIXXQ.js} +1 -1
  52. package/dist/{chunk-FTA53BGJ.js → chunk-WSBQZHQ5.js} +1 -1
  53. package/dist/{chunk-R2SDRMVZ.js → chunk-X4CIRNUQ.js} +1 -1
  54. package/dist/{chunk-NX5S46FI.js → chunk-XHPL3YQR.js} +1 -1
  55. package/dist/{chunk-UEVK66LP.js → chunk-Y767NEWB.js} +1 -1
  56. package/dist/{chunk-4JO2ZCI2.js → chunk-YAZ6Y4QK.js} +1 -1
  57. package/dist/{chunk-RQEWUMCP.js → chunk-YHALYQGQ.js} +1 -1
  58. package/dist/chunk-ZBNPXH3W.js +1 -0
  59. package/dist/{chunk-MKUF7EIW.js.map → chunk-ZBNPXH3W.js.map} +1 -1
  60. package/dist/commands/index.cjs.map +1 -1
  61. package/dist/commands/index.js +1 -1
  62. package/dist/errors/index.cjs.map +1 -1
  63. package/dist/errors/index.js +1 -1
  64. package/dist/events/index.cjs.map +1 -1
  65. package/dist/events/index.js +1 -1
  66. package/dist/index.cjs +1 -1
  67. package/dist/index.cjs.map +1 -1
  68. package/dist/index.js +1 -1
  69. package/dist/models/alarm.cjs +1 -1
  70. package/dist/models/alarm.cjs.map +1 -1
  71. package/dist/models/alarm.js +1 -1
  72. package/dist/models/announcement.cjs +1 -1
  73. package/dist/models/announcement.cjs.map +1 -1
  74. package/dist/models/announcement.js +1 -1
  75. package/dist/models/automation.cjs +1 -1
  76. package/dist/models/automation.cjs.map +1 -1
  77. package/dist/models/automation.js +1 -1
  78. package/dist/models/camera.cjs +1 -1
  79. package/dist/models/camera.cjs.map +1 -1
  80. package/dist/models/camera.d.cts +7 -0
  81. package/dist/models/camera.d.ts +7 -0
  82. package/dist/models/camera.js +1 -1
  83. package/dist/models/category.cjs +1 -1
  84. package/dist/models/category.cjs.map +1 -1
  85. package/dist/models/category.js +1 -1
  86. package/dist/models/courtesy.cjs +1 -1
  87. package/dist/models/courtesy.cjs.map +1 -1
  88. package/dist/models/courtesy.js +1 -1
  89. package/dist/models/credential.cjs +1 -1
  90. package/dist/models/credential.cjs.map +1 -1
  91. package/dist/models/credential.js +1 -1
  92. package/dist/models/deviceRouter.cjs +1 -1
  93. package/dist/models/deviceRouter.cjs.map +1 -1
  94. package/dist/models/deviceRouter.js +1 -1
  95. package/dist/models/dimmer.cjs +1 -1
  96. package/dist/models/dimmer.cjs.map +1 -1
  97. package/dist/models/dimmer.js +1 -1
  98. package/dist/models/discoveredDevice.cjs +1 -1
  99. package/dist/models/discoveredDevice.cjs.map +1 -1
  100. package/dist/models/discoveredDevice.js +1 -1
  101. package/dist/models/emailMessage.cjs +1 -1
  102. package/dist/models/emailMessage.cjs.map +1 -1
  103. package/dist/models/emailMessage.js +1 -1
  104. package/dist/models/energyReport.cjs +1 -1
  105. package/dist/models/energyReport.cjs.map +1 -1
  106. package/dist/models/energyReport.js +1 -1
  107. package/dist/models/energyReportShard.cjs +1 -1
  108. package/dist/models/energyReportShard.cjs.map +1 -1
  109. package/dist/models/energyReportShard.js +1 -1
  110. package/dist/models/gateway.cjs +1 -1
  111. package/dist/models/gateway.cjs.map +1 -1
  112. package/dist/models/gateway.js +1 -1
  113. package/dist/models/identification.cjs +1 -1
  114. package/dist/models/identification.cjs.map +1 -1
  115. package/dist/models/identification.js +1 -1
  116. package/dist/models/index.cjs +1 -1
  117. package/dist/models/index.cjs.map +1 -1
  118. package/dist/models/index.js +1 -1
  119. package/dist/models/issue.cjs +1 -1
  120. package/dist/models/issue.cjs.map +1 -1
  121. package/dist/models/issue.js +1 -1
  122. package/dist/models/lock.cjs +1 -1
  123. package/dist/models/lock.cjs.map +1 -1
  124. package/dist/models/lock.js +1 -1
  125. package/dist/models/log.cjs +1 -1
  126. package/dist/models/log.cjs.map +1 -1
  127. package/dist/models/log.js +1 -1
  128. package/dist/models/mediaFile.cjs +1 -1
  129. package/dist/models/mediaFile.cjs.map +1 -1
  130. package/dist/models/mediaFile.js +1 -1
  131. package/dist/models/mediaSource.cjs +1 -1
  132. package/dist/models/mediaSource.cjs.map +1 -1
  133. package/dist/models/mediaSource.js +1 -1
  134. package/dist/models/motionSensor.cjs +1 -1
  135. package/dist/models/motionSensor.cjs.map +1 -1
  136. package/dist/models/motionSensor.js +1 -1
  137. package/dist/models/order.cjs +1 -1
  138. package/dist/models/order.cjs.map +1 -1
  139. package/dist/models/order.js +1 -1
  140. package/dist/models/organization.cjs +1 -1
  141. package/dist/models/organization.cjs.map +1 -1
  142. package/dist/models/organization.js +1 -1
  143. package/dist/models/payment.cjs +1 -1
  144. package/dist/models/payment.cjs.map +1 -1
  145. package/dist/models/payment.js +1 -1
  146. package/dist/models/policy.cjs +1 -1
  147. package/dist/models/policy.cjs.map +1 -1
  148. package/dist/models/policy.js +1 -1
  149. package/dist/models/product.cjs +1 -1
  150. package/dist/models/product.cjs.map +1 -1
  151. package/dist/models/product.js +1 -1
  152. package/dist/models/property.cjs +1 -1
  153. package/dist/models/property.cjs.map +1 -1
  154. package/dist/models/property.js +1 -1
  155. package/dist/models/reservation.cjs +1 -1
  156. package/dist/models/reservation.cjs.map +1 -1
  157. package/dist/models/reservation.js +1 -1
  158. package/dist/models/room.cjs +1 -1
  159. package/dist/models/room.cjs.map +1 -1
  160. package/dist/models/room.d.cts +3 -1
  161. package/dist/models/room.d.ts +3 -1
  162. package/dist/models/room.js +1 -1
  163. package/dist/models/scene.cjs +1 -1
  164. package/dist/models/scene.cjs.map +1 -1
  165. package/dist/models/scene.js +1 -1
  166. package/dist/models/shortLink.cjs +1 -1
  167. package/dist/models/shortLink.cjs.map +1 -1
  168. package/dist/models/shortLink.js +1 -1
  169. package/dist/models/smsMessage.cjs +1 -1
  170. package/dist/models/smsMessage.cjs.map +1 -1
  171. package/dist/models/smsMessage.js +1 -1
  172. package/dist/models/space.cjs +1 -1
  173. package/dist/models/space.cjs.map +1 -1
  174. package/dist/models/space.js +1 -1
  175. package/dist/models/switch.cjs +1 -1
  176. package/dist/models/switch.cjs.map +1 -1
  177. package/dist/models/switch.js +1 -1
  178. package/dist/models/systemUser.cjs +1 -1
  179. package/dist/models/systemUser.cjs.map +1 -1
  180. package/dist/models/systemUser.js +1 -1
  181. package/dist/models/thermostat.cjs +1 -1
  182. package/dist/models/thermostat.cjs.map +1 -1
  183. package/dist/models/thermostat.js +1 -1
  184. package/dist/models/ticket.cjs +1 -1
  185. package/dist/models/ticket.cjs.map +1 -1
  186. package/dist/models/ticket.js +1 -1
  187. package/dist/models/timeSheet.cjs +1 -1
  188. package/dist/models/timeSheet.cjs.map +1 -1
  189. package/dist/models/timeSheet.js +1 -1
  190. package/dist/models/user.cjs +1 -1
  191. package/dist/models/user.cjs.map +1 -1
  192. package/dist/models/user.js +1 -1
  193. package/dist/models/vendor.cjs +1 -1
  194. package/dist/models/vendor.cjs.map +1 -1
  195. package/dist/models/vendor.js +1 -1
  196. package/dist/models/windowCovering.cjs +1 -1
  197. package/dist/models/windowCovering.cjs.map +1 -1
  198. package/dist/models/windowCovering.js +1 -1
  199. package/dist/useCases/index.cjs.map +1 -1
  200. package/dist/useCases/index.js +1 -1
  201. package/dist/utils.cjs +1 -1
  202. package/dist/utils.cjs.map +1 -1
  203. package/dist/utils.js +1 -1
  204. package/package.json +1 -1
  205. package/dist/chunk-DGMWQ4PP.js +0 -1
  206. package/dist/chunk-DGMWQ4PP.js.map +0 -1
  207. package/dist/chunk-H4CYVROE.js +0 -1
  208. package/dist/chunk-H4CYVROE.js.map +0 -1
  209. package/dist/chunk-MKUF7EIW.js +0 -1
  210. package/dist/chunk-X2PHGWTM.js +0 -1
  211. package/dist/chunk-ZR72266G.js.map +0 -1
  212. /package/dist/{chunk-XV3KXIH2.js.map → chunk-2BGFVTK5.js.map} +0 -0
  213. /package/dist/{chunk-BRZVBG7Y.js.map → chunk-4HA37GSM.js.map} +0 -0
  214. /package/dist/{chunk-KJI445LX.js.map → chunk-6QIZNOTQ.js.map} +0 -0
  215. /package/dist/{chunk-LNRGAGJF.js.map → chunk-74WBAGSV.js.map} +0 -0
  216. /package/dist/{chunk-K4X5REA5.js.map → chunk-7JLIE2YT.js.map} +0 -0
  217. /package/dist/{chunk-7VS2JHRH.js.map → chunk-AKBP4ULH.js.map} +0 -0
  218. /package/dist/{chunk-E7DC44YR.js.map → chunk-AVZIY77R.js.map} +0 -0
  219. /package/dist/{chunk-BAIHVN4F.js.map → chunk-BW6WOT2G.js.map} +0 -0
  220. /package/dist/{chunk-KD5V4VHT.js.map → chunk-CAALG6EM.js.map} +0 -0
  221. /package/dist/{chunk-2ZHDK2LA.js.map → chunk-CBGDQUVP.js.map} +0 -0
  222. /package/dist/{chunk-SIRKWUJR.js.map → chunk-CIIC5YSI.js.map} +0 -0
  223. /package/dist/{chunk-G4JQYUAC.js.map → chunk-CL66AXXT.js.map} +0 -0
  224. /package/dist/{chunk-XORT6HQQ.js.map → chunk-EEWDLSCT.js.map} +0 -0
  225. /package/dist/{chunk-GJIRL22D.js.map → chunk-EFVZZ3UR.js.map} +0 -0
  226. /package/dist/{chunk-IP2J33M4.js.map → chunk-FIY4MTXC.js.map} +0 -0
  227. /package/dist/{chunk-PHUGJKO5.js.map → chunk-FQWI5UT7.js.map} +0 -0
  228. /package/dist/{chunk-EIKLORN2.js.map → chunk-HNKGUVQT.js.map} +0 -0
  229. /package/dist/{chunk-J6NIJCBP.js.map → chunk-HQZCMOV5.js.map} +0 -0
  230. /package/dist/{chunk-FJGHDCFU.js.map → chunk-HVRHXRP6.js.map} +0 -0
  231. /package/dist/{chunk-6U3D7INH.js.map → chunk-I3T6UG4N.js.map} +0 -0
  232. /package/dist/{chunk-ASUIVB2I.js.map → chunk-IDKLDYJM.js.map} +0 -0
  233. /package/dist/{chunk-7OSTDOUM.js.map → chunk-IHVBHK4S.js.map} +0 -0
  234. /package/dist/{chunk-KZGHAUI5.js.map → chunk-IOFW6KW3.js.map} +0 -0
  235. /package/dist/{chunk-KVGMJRXC.js.map → chunk-KCHWGYJF.js.map} +0 -0
  236. /package/dist/{chunk-MG2VQTNN.js.map → chunk-KW3HNS5S.js.map} +0 -0
  237. /package/dist/{chunk-PBMLITMC.js.map → chunk-LZDFH4GB.js.map} +0 -0
  238. /package/dist/{chunk-SW7K432L.js.map → chunk-O42G3HNO.js.map} +0 -0
  239. /package/dist/{chunk-PWFIE4A4.js.map → chunk-OUOPHOS3.js.map} +0 -0
  240. /package/dist/{chunk-T2E42CQF.js.map → chunk-PA6CL6LK.js.map} +0 -0
  241. /package/dist/{chunk-XVQXZSHK.js.map → chunk-QHS6ZPJI.js.map} +0 -0
  242. /package/dist/{chunk-AQVI4C4C.js.map → chunk-QOLVVEU5.js.map} +0 -0
  243. /package/dist/{chunk-NFBNENWO.js.map → chunk-UKIG7GFX.js.map} +0 -0
  244. /package/dist/{chunk-QE7MS5GE.js.map → chunk-UOSPZFQA.js.map} +0 -0
  245. /package/dist/{chunk-P5SXOPMU.js.map → chunk-WHYNHNWY.js.map} +0 -0
  246. /package/dist/{chunk-IKAINY4Q.js.map → chunk-WIZSIXXQ.js.map} +0 -0
  247. /package/dist/{chunk-FTA53BGJ.js.map → chunk-WSBQZHQ5.js.map} +0 -0
  248. /package/dist/{chunk-R2SDRMVZ.js.map → chunk-X4CIRNUQ.js.map} +0 -0
  249. /package/dist/{chunk-NX5S46FI.js.map → chunk-XHPL3YQR.js.map} +0 -0
  250. /package/dist/{chunk-UEVK66LP.js.map → chunk-Y767NEWB.js.map} +0 -0
  251. /package/dist/{chunk-4JO2ZCI2.js.map → chunk-YAZ6Y4QK.js.map} +0 -0
  252. /package/dist/{chunk-RQEWUMCP.js.map → chunk-YHALYQGQ.js.map} +0 -0
@@ -1 +1 @@
1
- import{validateCredential}from"./chunk-H4CYVROE.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-UEVK66LP.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
@@ -1 +1 @@
1
- import{validateCategory}from"./chunk-H4CYVROE.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-4JO2ZCI2.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
@@ -1 +1 @@
1
- import{validateAutomation}from"./chunk-H4CYVROE.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-RQEWUMCP.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-17T21:50:38.417Z\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-17T21:50:38.419Z\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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AA,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
+ {"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;AAA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Y,EAAE,IAAI,GAAG,KAAK,GAAG;AAC3B,UAAM,EAAE,IAAI,GAAG,KAAK,CAAC;AAAA,EACvB;AAAA,EAEA,IAAI,OAAO;AACT,WAAO;AAAA,EACT;AACF;;;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-3JKVMXXF.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-17T21:50:38.418Z\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;;;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;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
+ {"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":";;;;;;;;;;;;;;;;;;;;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,SAAS,OAAO;AACtB,SAAK,aAAa;AAClB,SAAK,OAAO;AACZ,WAAO,eAAe,MAAM,qBAAoB,SAAS;AAAA,EAC3D;AACF;;;ACPO,IAAM,qBAAN,MAAM,4BAA2B,SAAS;AAAA,EAFjD,OAEiD;AAAA;AAAA;AAAA,EAC/C,YAAY,UAAU,uBAAuB,UAAU,CAAC,GAAG;AACzD,UAAM,SAAS,OAAO;AACtB,SAAK,aAAa;AAClB,SAAK,OAAO;AACZ,WAAO,eAAe,MAAM,oBAAmB,SAAS;AAAA,EAC1D;AACF;;;ACPO,IAAM,gBAAN,MAAM,uBAAsB,SAAS;AAAA,EAF5C,OAE4C;AAAA;AAAA;AAAA,EAC1C,YAAY,UAAU,eAAe,UAAU,CAAC,GAAG;AACjD,UAAM,SAAS,OAAO;AACtB,SAAK,aAAa;AAClB,SAAK,OAAO;AACZ,WAAO,eAAe,MAAM,eAAc,SAAS;AAAA,EACrD;AACF;;;AC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AAAA,EAFhD,OAEgD;AAAA;AAAA;AAAA,EAC9C,YAAY,UAAU,iBAAiB,UAAU,CAAC,GAAG;AACnD,UAAM,SAAS,OAAO;AACtB,SAAK,aAAa;AAClB,SAAK,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-ZARKTUMC.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-17T21:50:38.417Z\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,wB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AC5B,UAAM,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
+ {"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;A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A,EACT;AAAA,EAEA,WAAW,SAAS;AAClB,WAAO;AAAA,EACT;AACF;;;ACZO,IAAM,sBAAN,cAAkC,MAAM;AAAA,EAC7C,YAAY,SAAS,SAAS;AAC5B,UAAM,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-MKUF7EIW.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