@kohost/api-client 4.1.0 → 4.1.1

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 (251) hide show
  1. package/dist/amqpClient.cjs.map +1 -1
  2. package/dist/amqpClient.js +1 -1
  3. package/dist/amqpClient.js.map +1 -1
  4. package/dist/chunk-2E7UEQEH.js +2 -0
  5. package/dist/{chunk-7SHYEVWE.js.map → chunk-2E7UEQEH.js.map} +1 -1
  6. package/dist/{chunk-5ZYQ36YL.js → chunk-2JNABCJ2.js} +2 -2
  7. package/dist/chunk-2SJNXX23.js +2 -0
  8. package/dist/chunk-2SJNXX23.js.map +1 -0
  9. package/dist/{chunk-CVDZUMXJ.js → chunk-3CZKHJ7N.js} +2 -2
  10. package/dist/{chunk-VC2V3PHC.js → chunk-3DU6K767.js} +2 -2
  11. package/dist/{chunk-PETOLFLX.js → chunk-4C5OBWVN.js} +2 -2
  12. package/dist/chunk-524YZXLK.js +2 -0
  13. package/dist/chunk-5JGCTR5Z.js +2 -0
  14. package/dist/chunk-5JGCTR5Z.js.map +1 -0
  15. package/dist/{chunk-37FIKXHX.js → chunk-6KRXD5CY.js} +2 -2
  16. package/dist/{chunk-GJIPDIFZ.js → chunk-6LMPRNFF.js} +2 -2
  17. package/dist/{chunk-YOL5XPE3.js → chunk-6O7ZX4X7.js} +2 -2
  18. package/dist/{chunk-O7PXQJJY.js → chunk-6U2OIFXY.js} +2 -2
  19. package/dist/chunk-7ELLKGO7.js +2 -0
  20. package/dist/{chunk-SX2W4GPS.js → chunk-7KMQJALP.js} +2 -2
  21. package/dist/{chunk-CQUOFTLG.js → chunk-AEJWGUVQ.js} +2 -2
  22. package/dist/{chunk-ZWOYQQAT.js → chunk-B3OCXT23.js} +2 -2
  23. package/dist/chunk-BO2PBAU5.js +2 -0
  24. package/dist/chunk-BO2PBAU5.js.map +1 -0
  25. package/dist/{chunk-C3TN4CYW.js → chunk-BRGOPL7L.js} +2 -2
  26. package/dist/chunk-BX6CQJFM.js +2 -0
  27. package/dist/{chunk-4E6BCEWY.js → chunk-BZQFOBXL.js} +2 -2
  28. package/dist/{chunk-SVVXKGUR.js → chunk-CG24PJRP.js} +2 -2
  29. package/dist/chunk-CHMXZOUA.js +2 -0
  30. package/dist/{chunk-C3RBREGQ.js → chunk-CODHXSP5.js} +2 -2
  31. package/dist/{chunk-BTZP2NFI.js → chunk-CYDIODNO.js} +2 -2
  32. package/dist/{chunk-SAJDTYRL.js → chunk-D2HMXQ5V.js} +2 -2
  33. package/dist/{chunk-RA6P4LQT.js → chunk-E4B7EMQY.js} +2 -2
  34. package/dist/{chunk-4W5Z6ODP.js → chunk-EJBOTV7Z.js} +2 -2
  35. package/dist/{chunk-MXG5WD7W.js → chunk-EYE772SL.js} +2 -2
  36. package/dist/{chunk-CMC5MQ6R.js → chunk-EZM6YTSB.js} +2 -2
  37. package/dist/{chunk-TVARHVM6.js → chunk-GEJHO6ZQ.js} +2 -2
  38. package/dist/{chunk-X74FEMWH.js → chunk-HDBSURJM.js} +2 -2
  39. package/dist/{chunk-CNI7RI6U.js → chunk-HYGHX2PI.js} +2 -2
  40. package/dist/{chunk-KOUQIZGQ.js → chunk-JBVTGWXB.js} +2 -2
  41. package/dist/{chunk-YLHF2LO4.js → chunk-JJ4LIFB7.js} +2 -2
  42. package/dist/{chunk-GCUILL6R.js → chunk-JOOKSEVZ.js} +2 -2
  43. package/dist/{chunk-2QP6XL3A.js → chunk-KAULYRJQ.js} +2 -2
  44. package/dist/{chunk-RLR3YOGQ.js → chunk-KTTIUDWK.js} +2 -2
  45. package/dist/{chunk-YHUK77T4.js → chunk-L7CPV7YE.js} +2 -2
  46. package/dist/chunk-LGN6JXN7.js +2 -0
  47. package/dist/chunk-LGN6JXN7.js.map +1 -0
  48. package/dist/{chunk-QASGY3Q2.js → chunk-LSQQWTMD.js} +2 -2
  49. package/dist/{chunk-5GGHD7FY.js → chunk-MGBD5X35.js} +2 -2
  50. package/dist/{chunk-LABRQJP2.js → chunk-MORNYRJW.js} +2 -2
  51. package/dist/{chunk-6Z3UQS6E.js → chunk-MQ7WEN2S.js} +2 -2
  52. package/dist/{chunk-7LB4ISYU.js → chunk-N3CMDBJP.js} +2 -2
  53. package/dist/{chunk-ONETIQAT.js → chunk-N4NBQDBE.js} +2 -2
  54. package/dist/{chunk-5MWETEB7.js → chunk-NERQSYRV.js} +2 -2
  55. package/dist/{chunk-OH2O7TRF.js → chunk-O4IOWXAT.js} +2 -2
  56. package/dist/{chunk-OIBIACJH.js → chunk-OK4G4APE.js} +2 -2
  57. package/dist/{chunk-NXZ7ARCN.js → chunk-PLSUJCGV.js} +2 -2
  58. package/dist/chunk-QKXT5OPD.js +2 -0
  59. package/dist/chunk-QKXT5OPD.js.map +1 -0
  60. package/dist/{chunk-2MIWI6DI.js → chunk-QNSNR2JT.js} +2 -2
  61. package/dist/{chunk-KAX6G7NS.js → chunk-RAKSUYSJ.js} +2 -2
  62. package/dist/chunk-RY4K6ZF3.js +2 -0
  63. package/dist/chunk-RY4K6ZF3.js.map +1 -0
  64. package/dist/{chunk-Z7AM4NZY.js → chunk-S7IER5PA.js} +2 -2
  65. package/dist/chunk-S7LNLVGN.js +2 -0
  66. package/dist/{chunk-F5ZVXIDJ.js.map → chunk-S7LNLVGN.js.map} +1 -1
  67. package/dist/{chunk-3VWLUTOA.js → chunk-SBTJP7Z2.js} +2 -2
  68. package/dist/chunk-SXMLEY5A.js +2 -0
  69. package/dist/{chunk-R2DTSCEX.js.map → chunk-SXMLEY5A.js.map} +1 -1
  70. package/dist/{chunk-AW4RTCUR.js → chunk-T3BUZPJU.js} +2 -2
  71. package/dist/{chunk-DUJGKEG7.js → chunk-UC6WZNNN.js} +2 -2
  72. package/dist/chunk-UI5GTCXQ.js +2 -0
  73. package/dist/chunk-UI5GTCXQ.js.map +1 -0
  74. package/dist/chunk-VX4GAFTX.js +2 -0
  75. package/dist/{chunk-2B6KTWLF.js → chunk-W3XUK7GU.js} +2 -2
  76. package/dist/{chunk-WJTBALCJ.js → chunk-WARDPDUE.js} +2 -2
  77. package/dist/{chunk-L2JBBTJI.js → chunk-WQMI4TKM.js} +2 -2
  78. package/dist/{chunk-5HWB2RZE.js → chunk-WRGQFX3L.js} +2 -2
  79. package/dist/{chunk-QRCVQOOU.js → chunk-Y6QFETPF.js} +2 -2
  80. package/dist/{chunk-4SFW2QVD.js → chunk-YBVTOOAO.js} +2 -2
  81. package/dist/{chunk-L2X57ZPQ.js → chunk-YHE3YBCX.js} +2 -2
  82. package/dist/commands/checkInReservation.js +1 -1
  83. package/dist/commands/checkOutReservation.js +1 -1
  84. package/dist/commands/command.js +1 -1
  85. package/dist/commands/createImageUploadEndpoint.js +1 -1
  86. package/dist/commands/createShortLink.js +1 -1
  87. package/dist/commands/getCategories.js +1 -1
  88. package/dist/commands/getMobileKey.js +1 -1
  89. package/dist/commands/getProducts.js +1 -1
  90. package/dist/commands/getReservationSpaceCategoryAvailabilities.js +1 -1
  91. package/dist/commands/getReservations.js +1 -1
  92. package/dist/commands/getRooms.js +1 -1
  93. package/dist/commands/getUsers.js +1 -1
  94. package/dist/commands/index.cjs.map +1 -1
  95. package/dist/commands/index.js +1 -1
  96. package/dist/commands/ocrDocument.js +1 -1
  97. package/dist/commands/sellProducts.js +1 -1
  98. package/dist/commands/sendEmail.js +1 -1
  99. package/dist/commands/sendSMS.js +1 -1
  100. package/dist/commands/setAlarm.js +1 -1
  101. package/dist/commands/setCourtesy.js +1 -1
  102. package/dist/commands/setDimmer.js +1 -1
  103. package/dist/commands/setLock.js +1 -1
  104. package/dist/commands/setMedia.js +1 -1
  105. package/dist/commands/setScene.js +1 -1
  106. package/dist/commands/setSwitch.js +1 -1
  107. package/dist/commands/setThermostat.js +1 -1
  108. package/dist/commands/setWindowCovering.js +1 -1
  109. package/dist/commands/updateReservation.js +1 -1
  110. package/dist/commands/updateUser.js +1 -1
  111. package/dist/commands/uploadImage.js +1 -1
  112. package/dist/defs-dQNiu_Sz.d.cts +68 -0
  113. package/dist/defs-dQNiu_Sz.d.ts +68 -0
  114. package/dist/defs.d.cts +1 -62
  115. package/dist/defs.d.ts +1 -62
  116. package/dist/defs.js +1 -1
  117. package/dist/errors/index.cjs.map +1 -1
  118. package/dist/errors/index.js +1 -1
  119. package/dist/events/applicationInUse.js +1 -1
  120. package/dist/events/applicationOutOfUse.js +1 -1
  121. package/dist/events/emailEvent.js +1 -1
  122. package/dist/events/event.js +1 -1
  123. package/dist/events/index.cjs.map +1 -1
  124. package/dist/events/index.js +1 -1
  125. package/dist/events/reservationCheckedIn.js +1 -1
  126. package/dist/events/reservationCheckedOut.js +1 -1
  127. package/dist/events/reservationSpaceChanged.js +1 -1
  128. package/dist/events/sceneSet.js +1 -1
  129. package/dist/events/shortLinkCreated.js +1 -1
  130. package/dist/events/smsEvent.js +1 -1
  131. package/dist/events/systemAlarmUpdated.js +1 -1
  132. package/dist/events/systemCameraUpdated.js +1 -1
  133. package/dist/events/systemCategoryUpdated.js +1 -1
  134. package/dist/events/systemCourtesyUpdated.js +1 -1
  135. package/dist/events/systemCredentialUpdated.js +1 -1
  136. package/dist/events/systemDimmerUpdated.js +1 -1
  137. package/dist/events/systemEntityDeleted.js +1 -1
  138. package/dist/events/systemGatewayUpdated.js +1 -1
  139. package/dist/events/systemLockUpdated.js +1 -1
  140. package/dist/events/systemMediaSourceUpdated.js +1 -1
  141. package/dist/events/systemMotionSensorUpdated.js +1 -1
  142. package/dist/events/systemOrganizationUpdated.js +1 -1
  143. package/dist/events/systemProductUpdated.js +1 -1
  144. package/dist/events/systemPropertyUpdated.js +1 -1
  145. package/dist/events/systemReservationUpdated.js +1 -1
  146. package/dist/events/systemSpaceUpdated.js +1 -1
  147. package/dist/events/systemSwitchUpdated.js +1 -1
  148. package/dist/events/systemThermostatUpdated.js +1 -1
  149. package/dist/events/systemUserUpdated.js +1 -1
  150. package/dist/events/systemWindowCoveringUpdated.js +1 -1
  151. package/dist/httpClient.js +1 -1
  152. package/dist/httpClient.js.map +1 -1
  153. package/dist/index-1wlt3uo2.d.ts +66 -0
  154. package/dist/index-7k9xaBaL.d.ts +30 -0
  155. package/dist/index-CCxWpmgi.d.cts +128 -0
  156. package/dist/index-DWIfTpkT.d.ts +62 -0
  157. package/dist/index-DXQ1T_T1.d.cts +30 -0
  158. package/dist/index-DZhiQtZE.d.cts +434 -0
  159. package/dist/index-DrrP0Vfc.d.cts +66 -0
  160. package/dist/index-FoJsC_G_.d.ts +128 -0
  161. package/dist/index-Z1u-INfc.d.ts +434 -0
  162. package/dist/index-x2QgAlTf.d.cts +62 -0
  163. package/dist/index.cjs +16 -0
  164. package/dist/index.cjs.map +1 -0
  165. package/dist/index.d.cts +338 -0
  166. package/dist/index.d.ts +338 -0
  167. package/dist/index.js +2 -0
  168. package/dist/models/index.cjs.map +1 -1
  169. package/dist/models/index.js +1 -1
  170. package/dist/models/property.d.cts +1 -1
  171. package/dist/models/property.d.ts +1 -1
  172. package/dist/socketIoClient.js +1 -1
  173. package/dist/socketIoClient.js.map +1 -1
  174. package/dist/useCases/index.cjs.map +1 -1
  175. package/dist/useCases/index.js +1 -1
  176. package/dist/utils-D0wFMkFl.d.ts +83 -0
  177. package/dist/utils-W1Wvt2rJ.d.cts +83 -0
  178. package/dist/utils.cjs.map +1 -1
  179. package/dist/utils.d.cts +71 -76
  180. package/dist/utils.d.ts +71 -76
  181. package/dist/utils.js +1 -1
  182. package/dist/utils.js.map +1 -1
  183. package/package.json +1 -1
  184. package/dist/chunk-7SHYEVWE.js +0 -2
  185. package/dist/chunk-AJSKEHVL.js +0 -2
  186. package/dist/chunk-CU6A4JQE.js +0 -2
  187. package/dist/chunk-F5ZVXIDJ.js +0 -2
  188. package/dist/chunk-GH2DDBTB.js +0 -2
  189. package/dist/chunk-PLRLELBM.js +0 -2
  190. package/dist/chunk-PUGUYK7E.js +0 -1
  191. package/dist/chunk-R2DTSCEX.js +0 -2
  192. package/dist/chunk-UUJFTUN6.js +0 -2
  193. /package/dist/{chunk-5ZYQ36YL.js.map → chunk-2JNABCJ2.js.map} +0 -0
  194. /package/dist/{chunk-CVDZUMXJ.js.map → chunk-3CZKHJ7N.js.map} +0 -0
  195. /package/dist/{chunk-VC2V3PHC.js.map → chunk-3DU6K767.js.map} +0 -0
  196. /package/dist/{chunk-PETOLFLX.js.map → chunk-4C5OBWVN.js.map} +0 -0
  197. /package/dist/{chunk-AJSKEHVL.js.map → chunk-524YZXLK.js.map} +0 -0
  198. /package/dist/{chunk-37FIKXHX.js.map → chunk-6KRXD5CY.js.map} +0 -0
  199. /package/dist/{chunk-GJIPDIFZ.js.map → chunk-6LMPRNFF.js.map} +0 -0
  200. /package/dist/{chunk-YOL5XPE3.js.map → chunk-6O7ZX4X7.js.map} +0 -0
  201. /package/dist/{chunk-O7PXQJJY.js.map → chunk-6U2OIFXY.js.map} +0 -0
  202. /package/dist/{chunk-CU6A4JQE.js.map → chunk-7ELLKGO7.js.map} +0 -0
  203. /package/dist/{chunk-SX2W4GPS.js.map → chunk-7KMQJALP.js.map} +0 -0
  204. /package/dist/{chunk-CQUOFTLG.js.map → chunk-AEJWGUVQ.js.map} +0 -0
  205. /package/dist/{chunk-ZWOYQQAT.js.map → chunk-B3OCXT23.js.map} +0 -0
  206. /package/dist/{chunk-C3TN4CYW.js.map → chunk-BRGOPL7L.js.map} +0 -0
  207. /package/dist/{chunk-GH2DDBTB.js.map → chunk-BX6CQJFM.js.map} +0 -0
  208. /package/dist/{chunk-4E6BCEWY.js.map → chunk-BZQFOBXL.js.map} +0 -0
  209. /package/dist/{chunk-SVVXKGUR.js.map → chunk-CG24PJRP.js.map} +0 -0
  210. /package/dist/{chunk-UUJFTUN6.js.map → chunk-CHMXZOUA.js.map} +0 -0
  211. /package/dist/{chunk-C3RBREGQ.js.map → chunk-CODHXSP5.js.map} +0 -0
  212. /package/dist/{chunk-BTZP2NFI.js.map → chunk-CYDIODNO.js.map} +0 -0
  213. /package/dist/{chunk-SAJDTYRL.js.map → chunk-D2HMXQ5V.js.map} +0 -0
  214. /package/dist/{chunk-RA6P4LQT.js.map → chunk-E4B7EMQY.js.map} +0 -0
  215. /package/dist/{chunk-4W5Z6ODP.js.map → chunk-EJBOTV7Z.js.map} +0 -0
  216. /package/dist/{chunk-MXG5WD7W.js.map → chunk-EYE772SL.js.map} +0 -0
  217. /package/dist/{chunk-CMC5MQ6R.js.map → chunk-EZM6YTSB.js.map} +0 -0
  218. /package/dist/{chunk-TVARHVM6.js.map → chunk-GEJHO6ZQ.js.map} +0 -0
  219. /package/dist/{chunk-X74FEMWH.js.map → chunk-HDBSURJM.js.map} +0 -0
  220. /package/dist/{chunk-CNI7RI6U.js.map → chunk-HYGHX2PI.js.map} +0 -0
  221. /package/dist/{chunk-KOUQIZGQ.js.map → chunk-JBVTGWXB.js.map} +0 -0
  222. /package/dist/{chunk-YLHF2LO4.js.map → chunk-JJ4LIFB7.js.map} +0 -0
  223. /package/dist/{chunk-GCUILL6R.js.map → chunk-JOOKSEVZ.js.map} +0 -0
  224. /package/dist/{chunk-2QP6XL3A.js.map → chunk-KAULYRJQ.js.map} +0 -0
  225. /package/dist/{chunk-RLR3YOGQ.js.map → chunk-KTTIUDWK.js.map} +0 -0
  226. /package/dist/{chunk-YHUK77T4.js.map → chunk-L7CPV7YE.js.map} +0 -0
  227. /package/dist/{chunk-QASGY3Q2.js.map → chunk-LSQQWTMD.js.map} +0 -0
  228. /package/dist/{chunk-5GGHD7FY.js.map → chunk-MGBD5X35.js.map} +0 -0
  229. /package/dist/{chunk-LABRQJP2.js.map → chunk-MORNYRJW.js.map} +0 -0
  230. /package/dist/{chunk-6Z3UQS6E.js.map → chunk-MQ7WEN2S.js.map} +0 -0
  231. /package/dist/{chunk-7LB4ISYU.js.map → chunk-N3CMDBJP.js.map} +0 -0
  232. /package/dist/{chunk-ONETIQAT.js.map → chunk-N4NBQDBE.js.map} +0 -0
  233. /package/dist/{chunk-5MWETEB7.js.map → chunk-NERQSYRV.js.map} +0 -0
  234. /package/dist/{chunk-OH2O7TRF.js.map → chunk-O4IOWXAT.js.map} +0 -0
  235. /package/dist/{chunk-OIBIACJH.js.map → chunk-OK4G4APE.js.map} +0 -0
  236. /package/dist/{chunk-NXZ7ARCN.js.map → chunk-PLSUJCGV.js.map} +0 -0
  237. /package/dist/{chunk-2MIWI6DI.js.map → chunk-QNSNR2JT.js.map} +0 -0
  238. /package/dist/{chunk-KAX6G7NS.js.map → chunk-RAKSUYSJ.js.map} +0 -0
  239. /package/dist/{chunk-Z7AM4NZY.js.map → chunk-S7IER5PA.js.map} +0 -0
  240. /package/dist/{chunk-3VWLUTOA.js.map → chunk-SBTJP7Z2.js.map} +0 -0
  241. /package/dist/{chunk-AW4RTCUR.js.map → chunk-T3BUZPJU.js.map} +0 -0
  242. /package/dist/{chunk-DUJGKEG7.js.map → chunk-UC6WZNNN.js.map} +0 -0
  243. /package/dist/{chunk-PLRLELBM.js.map → chunk-VX4GAFTX.js.map} +0 -0
  244. /package/dist/{chunk-2B6KTWLF.js.map → chunk-W3XUK7GU.js.map} +0 -0
  245. /package/dist/{chunk-WJTBALCJ.js.map → chunk-WARDPDUE.js.map} +0 -0
  246. /package/dist/{chunk-L2JBBTJI.js.map → chunk-WQMI4TKM.js.map} +0 -0
  247. /package/dist/{chunk-5HWB2RZE.js.map → chunk-WRGQFX3L.js.map} +0 -0
  248. /package/dist/{chunk-QRCVQOOU.js.map → chunk-Y6QFETPF.js.map} +0 -0
  249. /package/dist/{chunk-4SFW2QVD.js.map → chunk-YBVTOOAO.js.map} +0 -0
  250. /package/dist/{chunk-L2X57ZPQ.js.map → chunk-YHE3YBCX.js.map} +0 -0
  251. /package/dist/{chunk-PUGUYK7E.js.map → index.js.map} +0 -0
@@ -0,0 +1,2 @@
1
+ import{a as l}from"./chunk-42RR255M.js";import{a as f}from"./chunk-ZBF5DOJH.js";var y=class d{static{f(this,"KohostHTTPClient")}#e;#r;constructor(e={url:"",propertyId:"",organizationId:"",apiKey:"",headers:new Headers({}),onSuccess:f(r=>r,"onSuccess"),onError:f(r=>r,"onError")}){if(!e.url)throw new Error("options.url is required");this.options=e,this.isAuthTokenRenewalActive=!1,this.baseUrl=new URL(e.url),this.headers=new Headers({"Content-Type":"application/json",Accept:"application/json",...e.headers}),e.apiKey&&this.headers.set(d.defs.apiKeyHeader,e.apiKey),e.propertyId&&(this.propertyId=e.propertyId),e.organizationId&&(this.organizationId=e.organizationId),this.#e=e.onSuccess?e.onSuccess:r=>r,this.#r=e.onError?e.onError:r=>r,this.callbacks={}}on(e,r){if(typeof r!="function")throw new Error("Callback must be a function");this.callbacks[e]||(this.callbacks[e]=[]),this.callbacks[e].push(r)}emit(e,...r){this.callbacks[e]&&this.callbacks[e].forEach(a=>a(...r))}set organizationId(e){let r=d.defs.organizationHeader;this.headers.set(r,e)}get organizationId(){let e=d.defs.organizationHeader;return this.headers.get(e)}set propertyId(e){let r=d.defs.propertyHeader;this.headers.set(r,e)}get propertyId(){let e=d.defs.propertyHeader;return this.headers.get(e)}static get defs(){return{apiKeyHeader:"X-Api-Key",propertyHeader:"X-Property-Id",organizationHeader:"X-Organization-Id"}}async send(e){let r=e.config,a=this.createRequest(r),o=await fetch(a),h=o.headers.get("Content-Type")?.includes("application/json")||!1?await o.json():o.body;if(!o.ok){let c=h?.error||new Error(o.statusText),t=o.status,n=h.error?.type,i=h?.error?.message;try{let s=t>=400&&t<500,p=s&&n==="TokenExpiredError";if(s&&i==="Phone Verification is required")return this.#t(),Promise.reject(c);if(s&&i==="Login Required")return this.#s(),Promise.reject(c);if(s&&i==="No auth header or cookie provided")return this.#s(),Promise.reject(c);if(s&&p)for(;!this.isAuthTokenRenewalActive;)return this.isAuthTokenRenewalActive=!0,this.send(new l({})).then(()=>(this.isAuthTokenRenewalActive=!1,this.send(e))).catch(m=>(this.isAuthTokenRenewalActive=!1,Promise.reject(m)))}catch(s){console.error(s)}return c=this.#r(c),Promise.reject(c)}return this.#e(h)}#s(){this.emit("LoginRequired")}#t(){this.emit("PhoneVerificationRequired")}createRequest(e){typeof e.headers!="object"&&(e.headers={});let r=e.url;r.startsWith("/")&&(r=`.${r}`);let a=new URL(r,this.baseUrl),o=e.method.toUpperCase()||"GET";e.params&&typeof e.params=="object"&&Object.entries(e.params).forEach(([t,n])=>{Array.isArray(n)?n.forEach(i=>{typeof i=="object"&&i!==null?Object.entries(i).forEach(([s,p])=>{a.searchParams.append(`${t}[][${s}]`,p)}):a.searchParams.append(`${t}[]`,i)}):n==null?a.searchParams.append(t,""):typeof n=="object"?Object.entries(n).forEach(([i,s])=>{Array.isArray(s)?s.forEach(p=>{a.searchParams.append(`${t}[${i}][]`,p)}):a.searchParams.append(`${t}[${i}]`,s)}):a.searchParams.append(t,n)});let u=new Headers(this.headers);e.headers&&Object.keys(e.headers).forEach(t=>{u.set(t,e.headers[t])});let h=e.data!==null&&["POST","PUT","PATCH"].includes(o)?u.get("Content-Type")==="application/json"?JSON.stringify(e.data):e.data:void 0;return new Request(a,{method:o,headers:u,credentials:"include",body:h})}};export{y as a};
2
+ //# sourceMappingURL=chunk-LGN6JXN7.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/httpClient.js"],"sourcesContent":["import { RefreshTokenCommand } from \"./useCases/refreshToken\";\n\nexport class KohostHTTPClient {\n #onSuccess;\n #onError;\n\n /** \n @param {Object} options - The options to create the client\n @param {String} options.organizationId - The organization ID\n @param {String} options.propertyId - The property ID\n @param {String | URL} options.url - The base URL for the API endpint\n @param {String} options.apiKey - The API key to use for requests\n @param {Headers} options.headers - Additional headers to send with each request\n @param {Function} options.onSuccess - A callback to handle successful responses\n @param {Function} options.onError - A callback to handle errors\n */\n constructor(\n options = {\n url: \"\",\n propertyId: \"\",\n organizationId: \"\",\n apiKey: \"\",\n headers: new Headers({}),\n onSuccess: (response) => response,\n onError: (error) => error,\n },\n ) {\n if (!options.url) throw new Error(\"options.url is required\");\n this.options = options;\n\n this.isAuthTokenRenewalActive = false;\n\n this.baseUrl = new URL(options.url);\n this.headers = new Headers({\n \"Content-Type\": \"application/json\",\n Accept: \"application/json\",\n ...options.headers,\n });\n\n if (options.apiKey) {\n this.headers.set(KohostHTTPClient.defs.apiKeyHeader, options.apiKey);\n }\n\n if (options.propertyId) {\n this.propertyId = options.propertyId;\n }\n\n if (options.organizationId) {\n this.organizationId = options.organizationId;\n }\n\n this.#onSuccess = options.onSuccess\n ? options.onSuccess\n : (response) => response;\n\n this.#onError = options.onError ? options.onError : (error) => error;\n\n this.callbacks = {};\n }\n\n /**\n *\n * @param {\"LoginRequired\" | \"PhoneVerificationRequired\"} event\n * @param {Function} callback\n */\n on(event, callback) {\n if (typeof callback !== \"function\") {\n throw new Error(\"Callback must be a function\");\n }\n if (!this.callbacks[event]) {\n this.callbacks[event] = [];\n }\n this.callbacks[event].push(callback);\n }\n\n emit(event, ...args) {\n if (this.callbacks[event]) {\n this.callbacks[event].forEach((callback) => callback(...args));\n }\n }\n\n /**\n * @param {string} orgId\n * @returns {void}\n * @memberof KohostApiClient\n * @example\n * client.organizationId = \"1234\";\n */\n set organizationId(orgId) {\n const key = KohostHTTPClient.defs.organizationHeader;\n this.headers.set(key, orgId);\n }\n\n get organizationId() {\n const key = KohostHTTPClient.defs.organizationHeader;\n return this.headers.get(key);\n }\n\n /**\n * @param {string} propertyId\n * @returns {void}\n * @memberof KohostApiClient\n * @example\n * client.propertyId = \"1234\";\n */\n\n set propertyId(propertyId) {\n const key = KohostHTTPClient.defs.propertyHeader;\n this.headers.set(key, propertyId);\n }\n\n get propertyId() {\n const key = KohostHTTPClient.defs.propertyHeader;\n return this.headers.get(key);\n }\n\n static get defs() {\n return {\n apiKeyHeader: \"X-Api-Key\",\n propertyHeader: \"X-Property-Id\",\n organizationHeader: \"X-Organization-Id\",\n };\n }\n\n /**\n * @typedef {keyof typeof import('./useCases')} CommandName\n * @typedef {import('./useCases')[CommandName]} Command\n *\n * @param {Command} command\n */\n async send(command) {\n const commandConfig = command.config;\n const request = this.createRequest(commandConfig);\n const response = await fetch(request);\n\n const isJsonResponse =\n response.headers.get(\"Content-Type\")?.includes(\"application/json\") ||\n false;\n\n const responseData = isJsonResponse ? await response.json() : response.body;\n\n if (!response.ok) {\n let error = responseData?.error || new Error(response.statusText);\n\n const status = response.status;\n const errorType = responseData.error?.type;\n const errorMessage = responseData?.error?.message;\n\n try {\n const expectedError = status >= 400 && status < 500;\n const newTokensNeeded =\n expectedError && errorType === \"TokenExpiredError\";\n\n if (\n expectedError &&\n errorMessage === \"Phone Verification is required\"\n ) {\n this.#onPhoneVerificationRequired();\n return Promise.reject(error);\n }\n\n if (expectedError && errorMessage === \"Login Required\") {\n this.#onLoginRequired();\n return Promise.reject(error);\n }\n\n if (\n expectedError &&\n errorMessage === \"No auth header or cookie provided\"\n ) {\n this.#onLoginRequired();\n return Promise.reject(error);\n }\n\n if (expectedError && newTokensNeeded) {\n while (!this.isAuthTokenRenewalActive) {\n this.isAuthTokenRenewalActive = true;\n return this.send(new RefreshTokenCommand({}))\n .then(() => {\n // retry the original request with the new token\n this.isAuthTokenRenewalActive = false;\n return this.send(command);\n })\n .catch((err) => {\n this.isAuthTokenRenewalActive = false;\n return Promise.reject(err);\n });\n }\n }\n } catch (error) {\n console.error(error);\n }\n\n error = this.#onError(error);\n\n return Promise.reject(error);\n }\n\n return this.#onSuccess(responseData);\n }\n\n #onLoginRequired() {\n this.emit(\"LoginRequired\");\n }\n\n #onPhoneVerificationRequired() {\n this.emit(\"PhoneVerificationRequired\");\n }\n\n /**\n * @param {Command} config\n * @returns {Request}\n */\n createRequest(config) {\n if (typeof config.headers !== \"object\") {\n config.headers = {};\n }\n\n let apiPath = config.url;\n\n if (apiPath.startsWith(\"/\")) {\n apiPath = `.${apiPath}`;\n }\n const url = new URL(apiPath, this.baseUrl);\n const method = config.method.toUpperCase() || \"GET\";\n\n // Add parameters to URL if they exist\n if (config.params && typeof config.params === \"object\") {\n Object.entries(config.params).forEach(([key, value]) => {\n // Handle array values\n if (Array.isArray(value)) {\n value.forEach((item) => {\n if (typeof item === \"object\" && item !== null) {\n Object.entries(item).forEach(([itemKey, itemValue]) => {\n url.searchParams.append(`${key}[][${itemKey}]`, itemValue);\n });\n } else {\n url.searchParams.append(`${key}[]`, item);\n }\n });\n }\n // Handle null/undefined\n else if (value === null || value === undefined) {\n url.searchParams.append(key, \"\");\n }\n // Handle nested objects\n else if (typeof value === \"object\") {\n Object.entries(value).forEach(([nestedKey, nestedValue]) => {\n if (Array.isArray(nestedValue)) {\n nestedValue.forEach((item) => {\n url.searchParams.append(`${key}[${nestedKey}][]`, item);\n });\n } else {\n url.searchParams.append(`${key}[${nestedKey}]`, nestedValue);\n }\n });\n }\n // Handle primitive values\n else {\n url.searchParams.append(key, value);\n }\n });\n }\n\n const headers = new Headers(this.headers);\n // Add any additional headers\n if (config.headers) {\n Object.keys(config.headers).forEach((key) => {\n headers.set(key, config.headers[key]);\n });\n }\n\n const body =\n config.data !== null && [\"POST\", \"PUT\", \"PATCH\"].includes(method)\n ? headers.get(\"Content-Type\") === \"application/json\"\n ? JSON.stringify(config.data)\n : config.data\n : undefined;\n\n const request = new Request(url, {\n method: method,\n headers: headers,\n credentials: \"include\",\n body: body,\n });\n\n return request;\n }\n}\n"],"mappings":"gFAEO,IAAMA,EAAN,MAAMC,CAAiB,CAF9B,MAE8B,CAAAC,EAAA,yBAC5BC,GACAC,GAYA,YACEC,EAAU,CACR,IAAK,GACL,WAAY,GACZ,eAAgB,GAChB,OAAQ,GACR,QAAS,IAAI,QAAQ,CAAC,CAAC,EACvB,UAAWH,EAACI,GAAaA,EAAd,aACX,QAASJ,EAACK,GAAUA,EAAX,UACX,EACA,CACA,GAAI,CAACF,EAAQ,IAAK,MAAM,IAAI,MAAM,yBAAyB,EAC3D,KAAK,QAAUA,EAEf,KAAK,yBAA2B,GAEhC,KAAK,QAAU,IAAI,IAAIA,EAAQ,GAAG,EAClC,KAAK,QAAU,IAAI,QAAQ,CACzB,eAAgB,mBAChB,OAAQ,mBACR,GAAGA,EAAQ,OACb,CAAC,EAEGA,EAAQ,QACV,KAAK,QAAQ,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,IAAI,EAC1BA,EAAO,KACT,OASN,OAPgB,IAAI,QAAQE,EAAK,CAC/B,OAAQC,EACR,QAASO,EACT,YAAa,UACb,KAAMC,CACR,CAAC,CAGH,CACF","names":["KohostHTTPClient","_KohostHTTPClient","__name","#onSuccess","#onError","options","response","error","event","callback","args","orgId","key","propertyId","command","commandConfig","request","responseData","status","errorType","errorMessage","expectedError","newTokensNeeded","#onPhoneVerificationRequired","#onLoginRequired","RefreshTokenCommand","err","config","apiPath","url","method","value","item","itemKey","itemValue","nestedKey","nestedValue","headers","body"]}
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-WJTBALCJ.js";var e=class extends t{constructor(r,n){super(r,n)}static get name(){return"SceneSet"}static get entity(){return"scene"}};export{e as a};
2
- //# sourceMappingURL=chunk-QASGY3Q2.js.map
1
+ import{a as t}from"./chunk-WARDPDUE.js";var e=class extends t{constructor(r,n){super(r,n)}static get name(){return"SceneSet"}static get entity(){return"scene"}};export{e as a};
2
+ //# sourceMappingURL=chunk-LSQQWTMD.js.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-WJTBALCJ.js";var e=class extends t{constructor(r,n){super(r,n)}static get name(){return"SystemDimmerUpdated"}static get entity(){return"dimmer"}};export{e as a};
2
- //# sourceMappingURL=chunk-5GGHD7FY.js.map
1
+ import{a as t}from"./chunk-WARDPDUE.js";var e=class extends t{constructor(r,n){super(r,n)}static get name(){return"SystemDimmerUpdated"}static get entity(){return"dimmer"}};export{e as a};
2
+ //# sourceMappingURL=chunk-MGBD5X35.js.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-SX2W4GPS.js";import{a as r}from"./chunk-ZBF5DOJH.js";var t=class extends e{static{r(this,"SendSMS")}constructor({id:o,body:m,to:n,from:s,media:a,...c}){super({id:o,body:m,to:n,from:s,media:a,...c})}get name(){return"SendSMS"}};export{t as a};
2
- //# sourceMappingURL=chunk-LABRQJP2.js.map
1
+ import{a as e}from"./chunk-7KMQJALP.js";import{a as r}from"./chunk-ZBF5DOJH.js";var t=class extends e{static{r(this,"SendSMS")}constructor({id:o,body:m,to:n,from:s,media:a,...c}){super({id:o,body:m,to:n,from:s,media:a,...c})}get name(){return"SendSMS"}};export{t as a};
2
+ //# sourceMappingURL=chunk-MORNYRJW.js.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-WJTBALCJ.js";var e=class extends t{constructor(r,s){super(r,s)}static get name(){return"SystemThermostatUpdated"}static get entity(){return"thermostat"}};export{e as a};
2
- //# sourceMappingURL=chunk-6Z3UQS6E.js.map
1
+ import{a as t}from"./chunk-WARDPDUE.js";var e=class extends t{constructor(r,s){super(r,s)}static get name(){return"SystemThermostatUpdated"}static get entity(){return"thermostat"}};export{e as a};
2
+ //# sourceMappingURL=chunk-MQ7WEN2S.js.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-SX2W4GPS.js";import{a as r}from"./chunk-ZBF5DOJH.js";var e=class extends t{static{r(this,"GetReservationSpaceCategoryAvailabilities")}constructor(o){let{id:s,...n}=o;super({id:s,...n})}get name(){return"GetReservationSpaceCategoryAvailabilities"}};export{e as a};
2
- //# sourceMappingURL=chunk-7LB4ISYU.js.map
1
+ import{a as t}from"./chunk-7KMQJALP.js";import{a as r}from"./chunk-ZBF5DOJH.js";var e=class extends t{static{r(this,"GetReservationSpaceCategoryAvailabilities")}constructor(o){let{id:s,...n}=o;super({id:s,...n})}get name(){return"GetReservationSpaceCategoryAvailabilities"}};export{e as a};
2
+ //# sourceMappingURL=chunk-N3CMDBJP.js.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-SX2W4GPS.js";import{a as r}from"./chunk-ZBF5DOJH.js";var t=class extends e{static{r(this,"SetMedia")}constructor({id:o,command:m,...n}){super({id:o,command:m,...n})}get name(){return"SetMedia"}};export{t as a};
2
- //# sourceMappingURL=chunk-ONETIQAT.js.map
1
+ import{a as e}from"./chunk-7KMQJALP.js";import{a as r}from"./chunk-ZBF5DOJH.js";var t=class extends e{static{r(this,"SetMedia")}constructor({id:o,command:m,...n}){super({id:o,command:m,...n})}get name(){return"SetMedia"}};export{t as a};
2
+ //# sourceMappingURL=chunk-N4NBQDBE.js.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-SX2W4GPS.js";import{a as r}from"./chunk-ZBF5DOJH.js";var t=class extends e{static{r(this,"GetUsers")}constructor({id:o,...m}){super({id:o,...m})}get name(){return"GetUsers"}};export{t as a};
2
- //# sourceMappingURL=chunk-5MWETEB7.js.map
1
+ import{a as e}from"./chunk-7KMQJALP.js";import{a as r}from"./chunk-ZBF5DOJH.js";var t=class extends e{static{r(this,"GetUsers")}constructor({id:o,...m}){super({id:o,...m})}get name(){return"GetUsers"}};export{t as a};
2
+ //# sourceMappingURL=chunk-NERQSYRV.js.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-SX2W4GPS.js";import{a as r}from"./chunk-ZBF5DOJH.js";var t=class extends e{static{r(this,"SellProducts")}constructor({reservationId:o,userId:m,products:n,...s}){super({reservationId:o,userId:m,products:n,...s})}get name(){return"SellProducts"}};export{t as a};
2
- //# sourceMappingURL=chunk-OH2O7TRF.js.map
1
+ import{a as e}from"./chunk-7KMQJALP.js";import{a as r}from"./chunk-ZBF5DOJH.js";var t=class extends e{static{r(this,"SellProducts")}constructor({reservationId:o,userId:m,products:n,...s}){super({reservationId:o,userId:m,products:n,...s})}get name(){return"SellProducts"}};export{t as a};
2
+ //# sourceMappingURL=chunk-O4IOWXAT.js.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-SX2W4GPS.js";import{a as r}from"./chunk-ZBF5DOJH.js";var t=class extends e{static{r(this,"UploadImage")}constructor({id:o,url:m,file:n,...s}){super({id:o,url:m,file:n,...s})}get name(){return"UploadImage"}};export{t as a};
2
- //# sourceMappingURL=chunk-OIBIACJH.js.map
1
+ import{a as e}from"./chunk-7KMQJALP.js";import{a as r}from"./chunk-ZBF5DOJH.js";var t=class extends e{static{r(this,"UploadImage")}constructor({id:o,url:m,file:n,...s}){super({id:o,url:m,file:n,...s})}get name(){return"UploadImage"}};export{t as a};
2
+ //# sourceMappingURL=chunk-OK4G4APE.js.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-SX2W4GPS.js";import{a as r}from"./chunk-ZBF5DOJH.js";var t=class extends e{static{r(this,"SetScene")}constructor({id:o,devices:m,...n}){super({id:o,devices:m,...n})}get name(){return"SetScene"}};export{t as a};
2
- //# sourceMappingURL=chunk-NXZ7ARCN.js.map
1
+ import{a as e}from"./chunk-7KMQJALP.js";import{a as r}from"./chunk-ZBF5DOJH.js";var t=class extends e{static{r(this,"SetScene")}constructor({id:o,devices:m,...n}){super({id:o,devices:m,...n})}get name(){return"SetScene"}};export{t as a};
2
+ //# sourceMappingURL=chunk-PLSUJCGV.js.map
@@ -0,0 +1,2 @@
1
+ import{a as O}from"./chunk-JYIAYM6A.js";import{a as P}from"./chunk-6U2GUK3S.js";import{a as G}from"./chunk-ROADAVNY.js";import{a as H}from"./chunk-ZWN23T2E.js";import{a as I}from"./chunk-WTK6WUXM.js";import{a as J}from"./chunk-OBRZM34R.js";import{a as K}from"./chunk-RA3J5UX7.js";import{a as L}from"./chunk-4VM2EG2U.js";import{a as M}from"./chunk-EAXVAWZG.js";import{a as N}from"./chunk-6QDWJ6QX.js";import{a as y}from"./chunk-G7RHBMHN.js";import{a as z}from"./chunk-GSBVQZKX.js";import{a as A}from"./chunk-WNUI5H3C.js";import{a as B}from"./chunk-K57VCVC4.js";import{a as C}from"./chunk-E5IUNMSS.js";import{a as D}from"./chunk-NIIYUHV4.js";import{a as E}from"./chunk-QJ3YZDCC.js";import{a as F}from"./chunk-W6C2AKV3.js";import{a as k}from"./chunk-7VB6BBM5.js";import{a as l}from"./chunk-S6JE7M4E.js";import{a as n}from"./chunk-TDJNGATI.js";import{a as q}from"./chunk-GX6CEQPJ.js";import{a as s}from"./chunk-KEPWZGCC.js";import{a as u}from"./chunk-JQNBV2NR.js";import{a as v}from"./chunk-MIONHG3S.js";import{a as w}from"./chunk-F5IDKCI7.js";import{a as c}from"./chunk-QQ6M4LEU.js";import{a as d}from"./chunk-BY4MMW2J.js";import{a as g}from"./chunk-ZMGW5WLA.js";import{a as h}from"./chunk-ZZ7MAYZW.js";import{a as i}from"./chunk-RHYBIYIP.js";import{a as j}from"./chunk-3444MVQS.js";import{a as e}from"./chunk-L56VQHUU.js";import{a as f}from"./chunk-5377SSMK.js";import{a as m}from"./chunk-ECGBJCIE.js";import{a as p}from"./chunk-HNG6BG3U.js";import{a as t}from"./chunk-MLTXPQGI.js";import{a as x}from"./chunk-SQOZU6GE.js";import{a}from"./chunk-DWN5QCZV.js";import{a as b}from"./chunk-D3DMUSJV.js";import{a as r}from"./chunk-IXRTOLAY.js";import{c as o}from"./chunk-ZBF5DOJH.js";var Q={};o(Q,{Alarm:()=>e,Announcement:()=>f,Camera:()=>m,Category:()=>p,Courtesy:()=>t,Credential:()=>x,DeviceRouter:()=>a,Dimmer:()=>b,DiscoveredDevice:()=>c,EmailMessage:()=>d,EnergyReport:()=>g,EnergyReportShard:()=>h,Entity:()=>r,Gateway:()=>i,Identification:()=>j,Issue:()=>k,Lock:()=>l,Log:()=>n,MediaFile:()=>q,MediaSource:()=>s,MotionSensor:()=>u,Order:()=>v,Organization:()=>w,Payment:()=>y,Policy:()=>z,Product:()=>A,Property:()=>B,Reservation:()=>C,Room:()=>D,Scene:()=>E,ShortLink:()=>F,SmsMessage:()=>G,Space:()=>H,Switch:()=>I,SystemUser:()=>J,Thermostat:()=>K,Ticket:()=>L,TimeSheet:()=>M,User:()=>N,Vendor:()=>O,WindowCovering:()=>P});export{Q as a};
2
+ //# sourceMappingURL=chunk-QKXT5OPD.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/models/index.js"],"sourcesContent":["// This file is auto-generated. Do not edit this file manually.\n// Generated on: 2025-02-01T17:31:50.363Z\n\nexport * from \"./alarm\";\nexport * from \"./announcement\";\nexport * from \"./camera\";\nexport * from \"./category\";\nexport * from \"./courtesy\";\nexport * from \"./credential\";\nexport * from \"./deviceRouter\";\nexport * from \"./dimmer\";\nexport * from \"./discoveredDevice\";\nexport * from \"./emailMessage\";\nexport * from \"./energyReport\";\nexport * from \"./energyReportShard\";\nexport * from \"./entity\";\nexport * from \"./gateway\";\nexport * from \"./identification\";\nexport * from \"./issue\";\nexport * from \"./lock\";\nexport * from \"./log\";\nexport * from \"./mediaFile\";\nexport * from \"./mediaSource\";\nexport * from \"./motionSensor\";\nexport * from \"./order\";\nexport * from \"./organization\";\nexport * from \"./payment\";\nexport * from \"./policy\";\nexport * from \"./product\";\nexport * from \"./property\";\nexport * from \"./reservation\";\nexport * from \"./room\";\nexport * from \"./scene\";\nexport * from \"./shortLink\";\nexport * from \"./smsMessage\";\nexport * from \"./space\";\nexport * from \"./switch\";\nexport * from \"./systemUser\";\nexport * from \"./thermostat\";\nexport * from \"./ticket\";\nexport * from \"./timeSheet\";\nexport * from \"./user\";\nexport * from \"./vendor\";\nexport * from \"./windowCovering\";"],"mappings":"2oDAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,WAAAE,EAAA,iBAAAC,EAAA,WAAAC,EAAA,aAAAC,EAAA,aAAAC,EAAA,eAAAC,EAAA,iBAAAC,EAAA,WAAAC,EAAA,qBAAAC,EAAA,iBAAAC,EAAA,iBAAAC,EAAA,sBAAAC,EAAA,WAAAC,EAAA,YAAAC,EAAA,mBAAAC,EAAA,UAAAC,EAAA,SAAAC,EAAA,QAAAC,EAAA,cAAAC,EAAA,gBAAAC,EAAA,iBAAAC,EAAA,UAAAC,EAAA,iBAAAC,EAAA,YAAAC,EAAA,WAAAC,EAAA,YAAAC,EAAA,aAAAC,EAAA,gBAAAC,EAAA,SAAAC,EAAA,UAAAC,EAAA,cAAAC,EAAA,eAAAC,EAAA,UAAAC,EAAA,WAAAC,EAAA,eAAAC,EAAA,eAAAC,EAAA,WAAAC,EAAA,cAAAC,EAAA,SAAAC,EAAA,WAAAC,EAAA,mBAAAC","names":["models_exports","__export","Alarm","Announcement","Camera","Category","Courtesy","Credential","DeviceRouter","Dimmer","DiscoveredDevice","EmailMessage","EnergyReport","EnergyReportShard","Entity","Gateway","Identification","Issue","Lock","Log","MediaFile","MediaSource","MotionSensor","Order","Organization","Payment","Policy","Product","Property","Reservation","Room","Scene","ShortLink","SmsMessage","Space","Switch","SystemUser","Thermostat","Ticket","TimeSheet","User","Vendor","WindowCovering"]}
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-SX2W4GPS.js";import{a as r}from"./chunk-ZBF5DOJH.js";var t=class extends e{static{r(this,"SetThermostat")}constructor({id:o,setpoints:m,hvacMode:n,fanMode:s,...a}){super({id:o,setpoints:m,hvacMode:n,fanMode:s,...a})}get name(){return"SetThermostat"}};export{t as a};
2
- //# sourceMappingURL=chunk-2MIWI6DI.js.map
1
+ import{a as e}from"./chunk-7KMQJALP.js";import{a as r}from"./chunk-ZBF5DOJH.js";var t=class extends e{static{r(this,"SetThermostat")}constructor({id:o,setpoints:m,hvacMode:n,fanMode:s,...a}){super({id:o,setpoints:m,hvacMode:n,fanMode:s,...a})}get name(){return"SetThermostat"}};export{t as a};
2
+ //# sourceMappingURL=chunk-QNSNR2JT.js.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-SX2W4GPS.js";import{a as t}from"./chunk-ZBF5DOJH.js";var r=class extends e{static{t(this,"GetReservations")}constructor(s){let{id:a,startDate:n,endDate:o,status:m,...c}=s;super({id:a,startDate:n,endDate:o,status:m,...c})}get name(){return"GetReservations"}};export{r as a};
2
- //# sourceMappingURL=chunk-KAX6G7NS.js.map
1
+ import{a as e}from"./chunk-7KMQJALP.js";import{a as t}from"./chunk-ZBF5DOJH.js";var r=class extends e{static{t(this,"GetReservations")}constructor(s){let{id:a,startDate:n,endDate:o,status:m,...c}=s;super({id:a,startDate:n,endDate:o,status:m,...c})}get name(){return"GetReservations"}};export{r as a};
2
+ //# sourceMappingURL=chunk-RAKSUYSJ.js.map
@@ -0,0 +1,2 @@
1
+ import{a as l}from"./chunk-SXMLEY5A.js";import{a as m}from"./chunk-2E7UEQEH.js";import{a as d}from"./chunk-ZBF5DOJH.js";import{connect as R}from"amqplib";import{isFatalError as H}from"amqplib/lib/connection";import T from"debug";import{Buffer as v}from"node:buffer";import*as _ from"node:crypto";var A=_.randomUUID,E=T("kohost:amqp-client"),w="X-Organization-Id",x="X-Property-Id",I="X-Driver",C="X-Command-Name",K="X-Event-Name",b=class{static{d(this,"KohostAMQPClient")}static get Message(){return c}static get exchanges(){return m}static generateCorrelationId(){return A()}static validateMessage(t){if(!t)throw new Error("Message is required")}static parseError(t){let e,r,n={};if(t.message&&t.type){let{message:o,type:a,...p}=t;e=a,r=o,n=p}else r=t.message||"Unknown Error";return E("parseError",e,r,n),e&&l[e]?new l[e](r,n):new Error(r,n)}static parseMessage(t){let e=null,r={},n={},o={},a={},p=t?.properties?.type==="Command",N=t?.properties?.type==="Event",y=t?.properties?.headers||{},g=y[C]||null,f=y[K]||null;if(t.content)try{let i=t.properties?.contentType==="application/json"?JSON.parse(t.content.toString()):t.content.toString();r=i?.data||{},e=i?.error,n=i?.query||{},o=i?.context||{}}catch(i){E("error parsing content",i),r=t.content.toString()}if(t?.properties?.headers){let i=t.properties.headers[w],h=t.properties.headers[x],u=t.properties.headers[I];i&&(o.organizationId=i,a[w]=i),h&&(o.propertyId=h,a[x]=h),u&&(o.driver=u,a[I]=u)}let s={};return e&&(s.error=this.parseError(e)),s.data=r,s.query=n,s.context=o,s.headers=a,N&&f?s.event=f:p&&g&&(s.command=g),E("amqp parsed %o",s),s}static getMessage(t){return t?.content?JSON.parse(t.content.toString())?.data:null}static isFatalError(t){return H(t)}async createConnection(t,e={}){return await R(t,e)}static createMessage(t){return new c(t)}async createChannel(t){return await t.createChannel()}async assertExchange(t,{exchange:e,type:r,options:n}){return await t.assertExchange(e,r,n)}async assertQueue(t,{queue:e,options:r}){return await t.assertQueue(e,r)}async bindQueue(t,{queue:e,exchange:r,routingKey:n,args:o}){return await t.bindQueue(e,r,n,o)}async bindExchange(t,{source:e,destination:r,routingKey:n,args:o}){return await t.bindExchange(r,e,n,o)}async subscribeToQueue(t,{queue:e,cb:r,options:n}){return await t.consume(e,r,n)}publishToExchange(t,{exchange:e,routingKey:r,content:n,options:o}){return t.publish(e,r,n,o)}},c=class{static{d(this,"Message")}constructor(t){this.toExchange=null,this.content=t,this.options={contentType:"application/json",timestamp:Date.now()},this.routingKey=""}get correlationId(){return this.options.correlationId||null}to({exchange:t}){if(typeof t>"u")throw new Error("Exchange is required");return this.toExchange=t,this}withType(t){return this.options.type=t,this}withRoutingKey(t){return this.routingKey=t,this}withHeaders(t){return this.options.headers||(this.options.headers={}),this.options.headers={...this.options.headers,...t},this}withContext(t){for(let e in t)this.withHeaders({[e]:t[e]});return this}withCorrelationId(t){return this.options.correlationId=t,this}withReplyTo(t){return this.options.replyTo=t,this}build(){let t=this.content;return t.build&&typeof t.build=="function"&&(t=t.build()),{exchange:this.toExchange,content:v.from(JSON.stringify(t)),options:this.options,routingKey:this.routingKey}}};export{b as a};
2
+ //# sourceMappingURL=chunk-RY4K6ZF3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/amqpClient.js"],"sourcesContent":["import { connect } from \"amqplib\";\nimport { isFatalError } from \"amqplib/lib/connection\";\nimport dbg from \"debug\";\nimport { Buffer } from \"node:buffer\";\nimport * as crypto from \"node:crypto\";\nimport { amqpExchanges as exchanges } from \"./defs\";\nimport * as Errors from \"./errors\";\n\nconst randomUUID = crypto.randomUUID;\n\nconst debug = dbg(\"kohost:amqp-client\");\n\nconst HEADER_KEY_ORGANIZATION_ID = \"X-Organization-Id\";\nconst HEADER_KEY_PROPERTY_ID = \"X-Property-Id\";\nconst HEADER_KEY_DRIVER = \"X-Driver\";\nconst HEADER_KEY_COMMAND_NAME = \"X-Command-Name\";\nconst HEADER_KEY_EVENT_NAME = \"X-Event-Name\";\n\nexport class KohostAMQPClient {\n static get Message() {\n return Message;\n }\n\n static get exchanges() {\n return exchanges;\n }\n static generateCorrelationId() {\n return randomUUID();\n }\n\n static validateMessage(message) {\n if (!message) throw new Error(\"Message is required\");\n }\n\n static parseError(err) {\n let type;\n let message;\n let options = {};\n if (err.message && err.type) {\n const { message: errMessage, type: errType, ...rest } = err;\n type = errType;\n message = errMessage;\n options = rest;\n } else {\n message = err.message || \"Unknown Error\";\n }\n\n debug(\"parseError\", type, message, options);\n\n if (type && Errors[type]) {\n return new Errors[type](message, options);\n }\n\n return new Error(message, options);\n }\n\n static parseMessage(message) {\n let error = null;\n let data = {};\n let query = {};\n let context = {};\n let headers = {};\n\n const isCommand = message?.properties?.type === \"Command\";\n const isEvent = message?.properties?.type === \"Event\";\n\n const messageHeaders = message?.properties?.headers || {};\n\n const commandName = messageHeaders[HEADER_KEY_COMMAND_NAME] || null;\n const eventName = messageHeaders[HEADER_KEY_EVENT_NAME] || null;\n\n if (message.content) {\n try {\n const payload =\n message.properties?.contentType === \"application/json\"\n ? JSON.parse(message.content.toString())\n : message.content.toString();\n data = payload?.data || {};\n error = payload?.error;\n query = payload?.query || {};\n context = payload?.context || {};\n } catch (error) {\n debug(\"error parsing content\", error);\n data = message.content.toString();\n }\n }\n\n if (message?.properties?.headers) {\n const orgHeader = message.properties.headers[HEADER_KEY_ORGANIZATION_ID];\n const propertyHeader = message.properties.headers[HEADER_KEY_PROPERTY_ID];\n const driverHeader = message.properties.headers[HEADER_KEY_DRIVER];\n\n if (orgHeader) {\n context.organizationId = orgHeader;\n headers[HEADER_KEY_ORGANIZATION_ID] = orgHeader;\n }\n\n if (propertyHeader) {\n context.propertyId = propertyHeader;\n headers[HEADER_KEY_PROPERTY_ID] = propertyHeader;\n }\n\n if (driverHeader) {\n context.driver = driverHeader;\n headers[HEADER_KEY_DRIVER] = driverHeader;\n }\n }\n\n const parsed = {};\n\n if (error) parsed.error = this.parseError(error);\n\n parsed.data = data;\n parsed.query = query;\n parsed.context = context;\n parsed.headers = headers;\n\n if (isEvent && eventName) parsed.event = eventName;\n else if (isCommand && commandName) parsed.command = commandName;\n\n debug(\"amqp parsed %o\", parsed);\n\n return parsed;\n }\n\n static getMessage(message) {\n if (!message?.content) return null;\n const payload = JSON.parse(message.content.toString());\n const data = payload?.data;\n return data;\n }\n\n static isFatalError(err) {\n return isFatalError(err);\n }\n\n async createConnection(connection, options = {}) {\n return await connect(connection, options);\n }\n\n static createMessage(content) {\n return new Message(content);\n }\n\n async createChannel(connection) {\n const channel = await connection.createChannel();\n return channel;\n }\n\n async assertExchange(channel, { exchange, type, options }) {\n return await channel.assertExchange(exchange, type, options);\n }\n\n async assertQueue(channel, { queue, options }) {\n return await channel.assertQueue(queue, options);\n }\n\n async bindQueue(channel, { queue, exchange, routingKey, args }) {\n return await channel.bindQueue(queue, exchange, routingKey, args);\n }\n\n async bindExchange(channel, { source, destination, routingKey, args }) {\n return await channel.bindExchange(destination, source, routingKey, args);\n }\n\n async subscribeToQueue(channel, { queue, cb, options }) {\n return await channel.consume(queue, cb, options);\n }\n\n publishToExchange(channel, { exchange, routingKey, content, options }) {\n return channel.publish(exchange, routingKey, content, options);\n }\n}\n\nclass Message {\n constructor(content) {\n this.toExchange = null;\n this.content = content;\n this.options = {\n contentType: \"application/json\",\n timestamp: Date.now(),\n };\n this.routingKey = \"\";\n }\n\n get correlationId() {\n return this.options.correlationId || null;\n }\n\n to({ exchange }) {\n if (typeof exchange === \"undefined\")\n throw new Error(\"Exchange is required\");\n this.toExchange = exchange;\n return this;\n }\n\n withType(type) {\n this.options.type = type;\n return this;\n }\n\n withRoutingKey(routingKey) {\n this.routingKey = routingKey;\n return this;\n }\n\n withHeaders(headers) {\n if (!this.options.headers) this.options.headers = {};\n this.options.headers = { ...this.options.headers, ...headers };\n return this;\n }\n\n withContext(context) {\n for (let key in context) {\n this.withHeaders({ [key]: context[key] });\n }\n return this;\n }\n\n withCorrelationId(correlationId) {\n this.options.correlationId = correlationId;\n return this;\n }\n\n withReplyTo(queue) {\n this.options.replyTo = queue;\n return this;\n }\n\n build() {\n let content = this.content;\n if (content.build && typeof content.build === \"function\")\n content = content.build();\n\n return {\n exchange: this.toExchange,\n content: Buffer.from(JSON.stringify(content)),\n options: this.options,\n routingKey: this.routingKey,\n };\n }\n}\n"],"mappings":"wHAAA,OAAS,WAAAA,MAAe,UACxB,OAAS,gBAAAC,MAAoB,yBAC7B,OAAOC,MAAS,QAChB,OAAS,UAAAC,MAAc,cACvB,UAAYC,MAAY,cAIxB,IAAMC,EAAoB,aAEpBC,EAAQC,EAAI,oBAAoB,EAEhCC,EAA6B,oBAC7BC,EAAyB,gBACzBC,EAAoB,WACpBC,EAA0B,iBAC1BC,EAAwB,eAEjBC,EAAN,KAAuB,CAlB9B,MAkB8B,CAAAC,EAAA,yBAC5B,WAAW,SAAU,CACnB,OAAOC,CACT,CAEA,WAAW,WAAY,CACrB,OAAOC,CACT,CACA,OAAO,uBAAwB,CAC7B,OAAOX,EAAW,CACpB,CAEA,OAAO,gBAAgBY,EAAS,CAC9B,GAAI,CAACA,EAAS,MAAM,IAAI,MAAM,qBAAqB,CACrD,CAEA,OAAO,WAAWC,EAAK,CACrB,IAAIC,EACAF,EACAG,EAAU,CAAC,EACf,GAAIF,EAAI,SAAWA,EAAI,KAAM,CAC3B,GAAM,CAAE,QAASG,EAAY,KAAMC,EAAS,GAAGC,CAAK,EAAIL,EACxDC,EAAOG,EACPL,EAAUI,EACVD,EAAUG,CACZ,MACEN,EAAUC,EAAI,SAAW,gBAK3B,OAFAZ,EAAM,aAAca,EAAMF,EAASG,CAAO,EAEtCD,GAAQK,EAAOL,CAAI,EACd,IAAIK,EAAOL,CAAI,EAAEF,EAASG,CAAO,EAGnC,IAAI,MAAMH,EAASG,CAAO,CACnC,CAEA,OAAO,aAAaH,EAAS,CAC3B,IAAIQ,EAAQ,KACRC,EAAO,CAAC,EACRC,EAAQ,CAAC,EACTC,EAAU,CAAC,EACXC,EAAU,CAAC,EAETC,EAAYb,GAAS,YAAY,OAAS,UAC1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kd,MA8Kc,CAAAD,EAAA,gBACZ,YAAY6B,EAAS,CACnB,KAAK,WAAa,KAClB,KAAK,QAAUA,EACf,KAAK,QAAU,CACb,YAAa,mBACb,UAAW,KAAK,IAAI,CACtB,EACA,KAAK,WAAa,EACpB,CAEA,IAAI,eAAgB,CAClB,OAAO,KAAK,QAAQ,eAAiB,IACvC,CAEA,GAAG,CAAE,SAAAE,CAAS,EAAG,CACf,GAAI,OAAOA,EAAa,IACtB,MAAM,IAAI,MAAM,sBAAsB,EACxC,YAAK,WAAaA,EACX,IACT,CAEA,SAAS1B,EAAM,CACb,YAAK,QAAQ,KAAOA,EACb,IACT,CAEA,eAAe4B,EAAY,CACzB,YAAK,WAAaA,EACX,IACT,CAEA,YAAYlB,EAAS,CACnB,OAAK,KAAK,QAAQ,UAAS,KAAK,QAAQ,QAAU,CAAC,GACnD,KAAK,QAAQ,QAAU,CAAE,GAAG,KAAK,QAAQ,QAAS,GAAGA,CAAQ,EACtD,IACT,CAEA,YAAYD,EAAS,CACnB,QAASwB,KAAOxB,EACd,KAAK,YAAY,CAAE,CAACwB,CAAG,EAAGxB,EAAQwB,CAAG,CAAE,CAAC,EAE1C,OAAO,IACT,CAEA,kBAAkBC,EAAe,CAC/B,YAAK,QAAQ,cAAgBA,EACtB,IACT,CAEA,YAAYP,EAAO,CACjB,YAAK,QAAQ,QAAUA,EAChB,IACT,CAEA,OAAQ,CACN,IAAIH,EAAU,KAAK,QACnB,OAAIA,EAAQ,OAAS,OAAOA,EAAQ,OAAU,aAC5CA,EAAUA,EAAQ,MAAM,GAEnB,CACL,SAAU,KAAK,WACf,QAASW,EAAO,KAAK,KAAK,UAAUX,CAAO,CAAC,EAC5C,QAAS,KAAK,QACd,WAAY,KAAK,UACnB,CACF,CACF","names":["connect","isFatalError","dbg","Buffer","crypto","randomUUID","debug","dbg","HEADER_KEY_ORGANIZATION_ID","HEADER_KEY_PROPERTY_ID","HEADER_KEY_DRIVER","HEADER_KEY_COMMAND_NAME","HEADER_KEY_EVENT_NAME","KohostAMQPClient","__name","Message","amqpExchanges","message","err","type","options","errMessage","errType","rest","errors_exports","error","data","query","context","headers","isCommand","isEvent","messageHeaders","commandName","eventName","payload","orgHeader","propertyHeader","driverHeader","parsed","isFatalError","connection","connect","content","channel","exchange","queue","routingKey","args","source","destination","cb","key","correlationId","Buffer"]}
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-WJTBALCJ.js";var e=class extends t{constructor(r,n){super(r,n)}static get name(){return"SystemMotionSensorUpdated"}static get entity(){return"motionSensor"}};export{e as a};
2
- //# sourceMappingURL=chunk-Z7AM4NZY.js.map
1
+ import{a as t}from"./chunk-WARDPDUE.js";var e=class extends t{constructor(r,n){super(r,n)}static get name(){return"SystemMotionSensorUpdated"}static get entity(){return"motionSensor"}};export{e as a};
2
+ //# sourceMappingURL=chunk-S7IER5PA.js.map
@@ -0,0 +1,2 @@
1
+ import{a as w}from"./chunk-JJ4LIFB7.js";import{a as y}from"./chunk-CYDIODNO.js";import{a as z}from"./chunk-CODHXSP5.js";import{a as A}from"./chunk-W3XUK7GU.js";import{a as B}from"./chunk-L7CPV7YE.js";import{a as C}from"./chunk-MQ7WEN2S.js";import{a as D}from"./chunk-2JNABCJ2.js";import{a as E}from"./chunk-JBVTGWXB.js";import{a as j}from"./chunk-EJBOTV7Z.js";import{a as k}from"./chunk-MGBD5X35.js";import{a as l}from"./chunk-6O7ZX4X7.js";import{a as n}from"./chunk-3CZKHJ7N.js";import{a as q}from"./chunk-WRGQFX3L.js";import{a as s}from"./chunk-UC6WZNNN.js";import{a as u}from"./chunk-S7IER5PA.js";import{a as v}from"./chunk-HYGHX2PI.js";import{a as x}from"./chunk-BX6CQJFM.js";import{a}from"./chunk-LSQQWTMD.js";import{a as b}from"./chunk-E4B7EMQY.js";import{a as c}from"./chunk-BZQFOBXL.js";import{a as d}from"./chunk-YBVTOOAO.js";import{a as g}from"./chunk-B3OCXT23.js";import{a as h}from"./chunk-GEJHO6ZQ.js";import{a as i}from"./chunk-CG24PJRP.js";import{a as e}from"./chunk-524YZXLK.js";import{a as f}from"./chunk-CHMXZOUA.js";import{a as m}from"./chunk-EZM6YTSB.js";import{a as p}from"./chunk-VX4GAFTX.js";import{a as t}from"./chunk-7ELLKGO7.js";import{a as r}from"./chunk-WARDPDUE.js";import{c as o}from"./chunk-ZBF5DOJH.js";var F={};o(F,{ApplicationInUse:()=>e,ApplicationOutOfUse:()=>f,EmailEvent:()=>m,Event:()=>r,ReservationCheckedIn:()=>p,ReservationCheckedOut:()=>t,ReservationSpaceChanged:()=>x,SMSEvent:()=>c,SceneSet:()=>a,ShortLinkCreated:()=>b,SystemAlarmUpdated:()=>d,SystemCameraUpdated:()=>g,SystemCategoryUpdated:()=>h,SystemCourtesyUpdated:()=>i,SystemCredentialUpdated:()=>j,SystemDimmerUpdated:()=>k,SystemEntityDeleted:()=>l,SystemGatewayUpdated:()=>n,SystemLockUpdated:()=>q,SystemMediaSourceUpdated:()=>s,SystemMotionSensorUpdated:()=>u,SystemOrganizationUpdated:()=>v,SystemProductUpdated:()=>w,SystemPropertyUpdated:()=>y,SystemReservationUpdated:()=>z,SystemSpaceUpdate:()=>A,SystemSwitchUpdated:()=>B,SystemThermostatUpdated:()=>C,SystemUserUpdated:()=>D,SystemWindowCoveringUpdated:()=>E});export{F as a};
2
+ //# sourceMappingURL=chunk-S7LNLVGN.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-01-31T23:20:41.105Z\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":"mtCAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,sBAAAE,EAAA,wBAAAC,EAAA,eAAAC,EAAA,UAAAC,EAAA,yBAAAC,EAAA,0BAAAC,EAAA,4BAAAC,EAAA,aAAAC,EAAA,aAAAC,EAAA,qBAAAC,EAAA,uBAAAC,EAAA,wBAAAC,EAAA,0BAAAC,EAAA,0BAAAC,EAAA,4BAAAC,EAAA,wBAAAC,EAAA,wBAAAC,EAAA,yBAAAC,EAAA,sBAAAC,EAAA,6BAAAC,EAAA,8BAAAC,EAAA,8BAAAC,EAAA,yBAAAC,EAAA,0BAAAC,EAAA,6BAAAC,EAAA,sBAAAC,EAAA,wBAAAC,EAAA,4BAAAC,EAAA,sBAAAC,EAAA,gCAAAC","names":["events_exports","__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","SystemSpaceUpdate","SystemSwitchUpdated","SystemThermostatUpdated","SystemUserUpdated","SystemWindowCoveringUpdated"]}
1
+ {"version":3,"sources":["../src/events/index.js"],"sourcesContent":["// This file is auto-generated. Do not edit this file manually.\n// Generated on: 2025-02-01T17:31:50.364Z\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":"mtCAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,sBAAAE,EAAA,wBAAAC,EAAA,eAAAC,EAAA,UAAAC,EAAA,yBAAAC,EAAA,0BAAAC,EAAA,4BAAAC,EAAA,aAAAC,EAAA,aAAAC,EAAA,qBAAAC,EAAA,uBAAAC,EAAA,wBAAAC,EAAA,0BAAAC,EAAA,0BAAAC,EAAA,4BAAAC,EAAA,wBAAAC,EAAA,wBAAAC,EAAA,yBAAAC,EAAA,sBAAAC,EAAA,6BAAAC,EAAA,8BAAAC,EAAA,8BAAAC,EAAA,yBAAAC,EAAA,0BAAAC,EAAA,6BAAAC,EAAA,sBAAAC,EAAA,wBAAAC,EAAA,4BAAAC,EAAA,sBAAAC,EAAA,gCAAAC","names":["events_exports","__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","SystemSpaceUpdate","SystemSwitchUpdated","SystemThermostatUpdated","SystemUserUpdated","SystemWindowCoveringUpdated"]}
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-SX2W4GPS.js";import{a as r}from"./chunk-ZBF5DOJH.js";var t=class extends e{static{r(this,"CreateImageUploadEndpoint")}constructor({id:o,expires:m,...n}){super({id:o,expires:m,...n})}get name(){return"CreateImageUploadEndpoint"}};export{t as a};
2
- //# sourceMappingURL=chunk-3VWLUTOA.js.map
1
+ import{a as e}from"./chunk-7KMQJALP.js";import{a as r}from"./chunk-ZBF5DOJH.js";var t=class extends e{static{r(this,"CreateImageUploadEndpoint")}constructor({id:o,expires:m,...n}){super({id:o,expires:m,...n})}get name(){return"CreateImageUploadEndpoint"}};export{t as a};
2
+ //# sourceMappingURL=chunk-SBTJP7Z2.js.map
@@ -0,0 +1,2 @@
1
+ import{a as g}from"./chunk-EM2KTHPQ.js";import{a as p}from"./chunk-2HN2UJV4.js";import{a as t}from"./chunk-F7QFKBF6.js";import{a as x}from"./chunk-YLREFLRL.js";import{a}from"./chunk-HUIF2CNV.js";import{a as b}from"./chunk-C7ZB7GNG.js";import{a as c}from"./chunk-VIQXARVR.js";import{a as d}from"./chunk-P45VDF4X.js";import{a as e}from"./chunk-NVJ4BTON.js";import{a as f}from"./chunk-IQ32UCNT.js";import{a as m}from"./chunk-5JSCSVMX.js";import{a as r}from"./chunk-KZXKWSWJ.js";import{c as o}from"./chunk-ZBF5DOJH.js";var h={};o(h,{AppError:()=>r,AuthenticationError:()=>e,AuthorizationError:()=>f,ConflictError:()=>m,DeviceCommError:()=>p,LoginError:()=>t,NotFoundError:()=>x,RequestError:()=>a,SystemCommError:()=>b,TokenExpiredError:()=>c,UnprocessableRequestError:()=>d,ValidationError:()=>g});export{h as a};
2
+ //# sourceMappingURL=chunk-SXMLEY5A.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/errors/index.js"],"sourcesContent":["// This file is auto-generated. Do not edit this file manually.\n// Generated on: 2025-01-31T23:20:41.106Z\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\";"],"mappings":"mgBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,cAAAE,EAAA,wBAAAC,EAAA,uBAAAC,EAAA,kBAAAC,EAAA,oBAAAC,EAAA,eAAAC,EAAA,kBAAAC,EAAA,iBAAAC,EAAA,oBAAAC,EAAA,sBAAAC,EAAA,8BAAAC,EAAA,oBAAAC","names":["errors_exports","__export","AppError","AuthenticationError","AuthorizationError","ConflictError","DeviceCommError","LoginError","NotFoundError","RequestError","SystemCommError","TokenExpiredError","UnprocessableRequestError","ValidationError"]}
1
+ {"version":3,"sources":["../src/errors/index.js"],"sourcesContent":["// This file is auto-generated. Do not edit this file manually.\n// Generated on: 2025-02-01T17:31:50.365Z\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\";"],"mappings":"mgBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,cAAAE,EAAA,wBAAAC,EAAA,uBAAAC,EAAA,kBAAAC,EAAA,oBAAAC,EAAA,eAAAC,EAAA,kBAAAC,EAAA,iBAAAC,EAAA,oBAAAC,EAAA,sBAAAC,EAAA,8BAAAC,EAAA,oBAAAC","names":["errors_exports","__export","AppError","AuthenticationError","AuthorizationError","ConflictError","DeviceCommError","LoginError","NotFoundError","RequestError","SystemCommError","TokenExpiredError","UnprocessableRequestError","ValidationError"]}
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-SX2W4GPS.js";import{a as r}from"./chunk-ZBF5DOJH.js";var t=class extends e{static{r(this,"CheckInReservation")}constructor({id:o,...m}){super({id:o,...m})}get name(){return"CheckInReservation"}};export{t as a};
2
- //# sourceMappingURL=chunk-AW4RTCUR.js.map
1
+ import{a as e}from"./chunk-7KMQJALP.js";import{a as r}from"./chunk-ZBF5DOJH.js";var t=class extends e{static{r(this,"CheckInReservation")}constructor({id:o,...m}){super({id:o,...m})}get name(){return"CheckInReservation"}};export{t as a};
2
+ //# sourceMappingURL=chunk-T3BUZPJU.js.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-WJTBALCJ.js";var e=class extends t{constructor(r,n){super(r,n)}static get name(){return"SystemMediaSourceUpdated"}static get entity(){return"mediaSource"}};export{e as a};
2
- //# sourceMappingURL=chunk-DUJGKEG7.js.map
1
+ import{a as t}from"./chunk-WARDPDUE.js";var e=class extends t{constructor(r,n){super(r,n)}static get name(){return"SystemMediaSourceUpdated"}static get entity(){return"mediaSource"}};export{e as a};
2
+ //# sourceMappingURL=chunk-UC6WZNNN.js.map
@@ -0,0 +1,2 @@
1
+ import{a as z}from"./chunk-6U2OIFXY.js";import{a as A}from"./chunk-WQMI4TKM.js";import{a as B}from"./chunk-6LMPRNFF.js";import{a as C}from"./chunk-OK4G4APE.js";import{a as l}from"./chunk-3DU6K767.js";import{a as n}from"./chunk-D2HMXQ5V.js";import{a as q}from"./chunk-AEJWGUVQ.js";import{a as s}from"./chunk-BRGOPL7L.js";import{a as u}from"./chunk-N4NBQDBE.js";import{a as v}from"./chunk-PLSUJCGV.js";import{a as w}from"./chunk-Y6QFETPF.js";import{a as y}from"./chunk-QNSNR2JT.js";import{a as c}from"./chunk-RAKSUYSJ.js";import{a as d}from"./chunk-EYE772SL.js";import{a as g}from"./chunk-NERQSYRV.js";import{a as h}from"./chunk-4C5OBWVN.js";import{a as i}from"./chunk-O4IOWXAT.js";import{a as j}from"./chunk-KTTIUDWK.js";import{a as k}from"./chunk-MORNYRJW.js";import{a as f}from"./chunk-KAULYRJQ.js";import{a as m}from"./chunk-SBTJP7Z2.js";import{a as p}from"./chunk-YHE3YBCX.js";import{a as t}from"./chunk-HDBSURJM.js";import{a as x}from"./chunk-JOOKSEVZ.js";import{a}from"./chunk-6KRXD5CY.js";import{a as b}from"./chunk-N3CMDBJP.js";import{a as e}from"./chunk-T3BUZPJU.js";import{a as r}from"./chunk-7KMQJALP.js";import{c as o}from"./chunk-ZBF5DOJH.js";var D={};o(D,{CheckInReservation:()=>e,CheckOutReservation:()=>f,Command:()=>r,CreateImageUploadEndpoint:()=>m,CreateShortLink:()=>p,GetCategories:()=>t,GetMobileKey:()=>x,GetProducts:()=>a,GetReservationSpaceCategoryAvailabilities:()=>b,GetReservations:()=>c,GetRooms:()=>d,GetUsers:()=>g,OCRDocument:()=>h,SellProducts:()=>i,SendEmail:()=>j,SendSMS:()=>k,SetAlarm:()=>l,SetCourtesy:()=>n,SetDimmer:()=>q,SetLock:()=>s,SetMedia:()=>u,SetScene:()=>v,SetSwitch:()=>w,SetThermostat:()=>y,SetWindowCovering:()=>z,UpdateReservation:()=>A,UpdateUser:()=>B,UploadImage:()=>C});export{D as a};
2
+ //# sourceMappingURL=chunk-UI5GTCXQ.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/commands/index.js"],"sourcesContent":["// This file is auto-generated. Do not edit this file manually.\n// Generated on: 2025-02-01T17:31:50.366Z\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\";"],"mappings":"moCAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,wBAAAE,EAAA,wBAAAC,EAAA,YAAAC,EAAA,8BAAAC,EAAA,oBAAAC,EAAA,kBAAAC,EAAA,iBAAAC,EAAA,gBAAAC,EAAA,8CAAAC,EAAA,oBAAAC,EAAA,aAAAC,EAAA,aAAAC,EAAA,gBAAAC,EAAA,iBAAAC,EAAA,cAAAC,EAAA,YAAAC,EAAA,aAAAC,EAAA,gBAAAC,EAAA,cAAAC,EAAA,YAAAC,EAAA,aAAAC,EAAA,aAAAC,EAAA,cAAAC,EAAA,kBAAAC,EAAA,sBAAAC,EAAA,sBAAAC,EAAA,eAAAC,EAAA,gBAAAC","names":["commands_exports","__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"]}
@@ -0,0 +1,2 @@
1
+ import{a as e}from"./chunk-WARDPDUE.js";import{a as t}from"./chunk-2E7UEQEH.js";var r=class extends e{constructor(n,s){super(n,s)}static get name(){return"ReservationCheckedIn"}static get entity(){return"reservation"}static get exchange(){return t.AppEvents.name}};export{r as a};
2
+ //# sourceMappingURL=chunk-VX4GAFTX.js.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-WJTBALCJ.js";var e=class extends t{constructor(r,s){super(r,s)}static get name(){return"SystemSpaceUpdated"}static get entity(){return"space"}};export{e as a};
2
- //# sourceMappingURL=chunk-2B6KTWLF.js.map
1
+ import{a as t}from"./chunk-WARDPDUE.js";var e=class extends t{constructor(r,s){super(r,s)}static get name(){return"SystemSpaceUpdated"}static get entity(){return"space"}};export{e as a};
2
+ //# sourceMappingURL=chunk-W3XUK7GU.js.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-7SHYEVWE.js";import{a as r}from"./chunk-ZBF5DOJH.js";var i=class{static{r(this,"Event")}constructor(t,n={}){if(this.data=[],this.context=n,!t)throw new Error("Event data is required");if(typeof t!="object"&&!Array.isArray(t))throw new Error("Event data must be an object or array");Array.isArray(t)?this.data=t:this.data=[t]}get organizationId(){return this.context.organizationId||"*"}get propertyId(){return this.context.propertyId||"*"}static get type(){return"Event"}static get exchange(){return e.DriverEvents.name}static get entity(){return""}build(){return{data:{...this.data}}}get routingKey(){return`${this.organizationId}.${this.propertyId}.${this.constructor.entity}.${this.constructor.name}`}};export{i as a};
2
- //# sourceMappingURL=chunk-WJTBALCJ.js.map
1
+ import{a as e}from"./chunk-2E7UEQEH.js";import{a as r}from"./chunk-ZBF5DOJH.js";var i=class{static{r(this,"Event")}constructor(t,n={}){if(this.data=[],this.context=n,!t)throw new Error("Event data is required");if(typeof t!="object"&&!Array.isArray(t))throw new Error("Event data must be an object or array");Array.isArray(t)?this.data=t:this.data=[t]}get organizationId(){return this.context.organizationId||"*"}get propertyId(){return this.context.propertyId||"*"}static get type(){return"Event"}static get exchange(){return e.DriverEvents.name}static get entity(){return""}build(){return{data:{...this.data}}}get routingKey(){return`${this.organizationId}.${this.propertyId}.${this.constructor.entity}.${this.constructor.name}`}};export{i as a};
2
+ //# sourceMappingURL=chunk-WARDPDUE.js.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-SX2W4GPS.js";import{a as r}from"./chunk-ZBF5DOJH.js";var t=class extends e{static{r(this,"UpdateReservation")}constructor({id:o,...m}){super({id:o,...m})}get name(){return"UpdateReservation"}};export{t as a};
2
- //# sourceMappingURL=chunk-L2JBBTJI.js.map
1
+ import{a as e}from"./chunk-7KMQJALP.js";import{a as r}from"./chunk-ZBF5DOJH.js";var t=class extends e{static{r(this,"UpdateReservation")}constructor({id:o,...m}){super({id:o,...m})}get name(){return"UpdateReservation"}};export{t as a};
2
+ //# sourceMappingURL=chunk-WQMI4TKM.js.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-WJTBALCJ.js";var e=class extends t{constructor(r,n){super(r,n)}static get name(){return"SystemLockUpdated"}static get entity(){return"lock"}};export{e as a};
2
- //# sourceMappingURL=chunk-5HWB2RZE.js.map
1
+ import{a as t}from"./chunk-WARDPDUE.js";var e=class extends t{constructor(r,n){super(r,n)}static get name(){return"SystemLockUpdated"}static get entity(){return"lock"}};export{e as a};
2
+ //# sourceMappingURL=chunk-WRGQFX3L.js.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-SX2W4GPS.js";import{a as r}from"./chunk-ZBF5DOJH.js";var t=class extends e{static{r(this,"SetSwitch")}constructor({id:o,state:m,...n}){super({id:o,state:m,...n})}get name(){return"SetSwitch"}};export{t as a};
2
- //# sourceMappingURL=chunk-QRCVQOOU.js.map
1
+ import{a as e}from"./chunk-7KMQJALP.js";import{a as r}from"./chunk-ZBF5DOJH.js";var t=class extends e{static{r(this,"SetSwitch")}constructor({id:o,state:m,...n}){super({id:o,state:m,...n})}get name(){return"SetSwitch"}};export{t as a};
2
+ //# sourceMappingURL=chunk-Y6QFETPF.js.map
@@ -1,2 +1,2 @@
1
- import{a as t}from"./chunk-WJTBALCJ.js";var e=class extends t{constructor(r,n){super(r,n)}static get name(){return"SystemAlarmUpdated"}static get entity(){return"alarm"}};export{e as a};
2
- //# sourceMappingURL=chunk-4SFW2QVD.js.map
1
+ import{a as t}from"./chunk-WARDPDUE.js";var e=class extends t{constructor(r,n){super(r,n)}static get name(){return"SystemAlarmUpdated"}static get entity(){return"alarm"}};export{e as a};
2
+ //# sourceMappingURL=chunk-YBVTOOAO.js.map
@@ -1,2 +1,2 @@
1
- import{a as e}from"./chunk-SX2W4GPS.js";import{a as r}from"./chunk-ZBF5DOJH.js";var t=class extends e{static{r(this,"CreateShortLink")}constructor({title:o,destination:m,...n}){super({title:o,destination:m,...n})}get name(){return"CreateShortLink"}};export{t as a};
2
- //# sourceMappingURL=chunk-L2X57ZPQ.js.map
1
+ import{a as e}from"./chunk-7KMQJALP.js";import{a as r}from"./chunk-ZBF5DOJH.js";var t=class extends e{static{r(this,"CreateShortLink")}constructor({title:o,destination:m,...n}){super({title:o,destination:m,...n})}get name(){return"CreateShortLink"}};export{t as a};
2
+ //# sourceMappingURL=chunk-YHE3YBCX.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-AW4RTCUR.js";import"../chunk-SX2W4GPS.js";import"../chunk-7SHYEVWE.js";import"../chunk-ZBF5DOJH.js";export{a as CheckInReservation};
1
+ import{a}from"../chunk-T3BUZPJU.js";import"../chunk-7KMQJALP.js";import"../chunk-2E7UEQEH.js";import"../chunk-ZBF5DOJH.js";export{a as CheckInReservation};
2
2
  //# sourceMappingURL=checkInReservation.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-2QP6XL3A.js";import"../chunk-SX2W4GPS.js";import"../chunk-7SHYEVWE.js";import"../chunk-ZBF5DOJH.js";export{a as CheckOutReservation};
1
+ import{a}from"../chunk-KAULYRJQ.js";import"../chunk-7KMQJALP.js";import"../chunk-2E7UEQEH.js";import"../chunk-ZBF5DOJH.js";export{a as CheckOutReservation};
2
2
  //# sourceMappingURL=checkOutReservation.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-SX2W4GPS.js";import"../chunk-7SHYEVWE.js";import"../chunk-ZBF5DOJH.js";export{a as Command};
1
+ import{a}from"../chunk-7KMQJALP.js";import"../chunk-2E7UEQEH.js";import"../chunk-ZBF5DOJH.js";export{a as Command};
2
2
  //# sourceMappingURL=command.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-3VWLUTOA.js";import"../chunk-SX2W4GPS.js";import"../chunk-7SHYEVWE.js";import"../chunk-ZBF5DOJH.js";export{a as CreateImageUploadEndpoint};
1
+ import{a}from"../chunk-SBTJP7Z2.js";import"../chunk-7KMQJALP.js";import"../chunk-2E7UEQEH.js";import"../chunk-ZBF5DOJH.js";export{a as CreateImageUploadEndpoint};
2
2
  //# sourceMappingURL=createImageUploadEndpoint.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-L2X57ZPQ.js";import"../chunk-SX2W4GPS.js";import"../chunk-7SHYEVWE.js";import"../chunk-ZBF5DOJH.js";export{a as CreateShortLink};
1
+ import{a}from"../chunk-YHE3YBCX.js";import"../chunk-7KMQJALP.js";import"../chunk-2E7UEQEH.js";import"../chunk-ZBF5DOJH.js";export{a as CreateShortLink};
2
2
  //# sourceMappingURL=createShortLink.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-X74FEMWH.js";import"../chunk-SX2W4GPS.js";import"../chunk-7SHYEVWE.js";import"../chunk-ZBF5DOJH.js";export{a as GetCategories};
1
+ import{a}from"../chunk-HDBSURJM.js";import"../chunk-7KMQJALP.js";import"../chunk-2E7UEQEH.js";import"../chunk-ZBF5DOJH.js";export{a as GetCategories};
2
2
  //# sourceMappingURL=getCategories.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-GCUILL6R.js";import"../chunk-SX2W4GPS.js";import"../chunk-7SHYEVWE.js";import"../chunk-ZBF5DOJH.js";export{a as GetMobileKey};
1
+ import{a}from"../chunk-JOOKSEVZ.js";import"../chunk-7KMQJALP.js";import"../chunk-2E7UEQEH.js";import"../chunk-ZBF5DOJH.js";export{a as GetMobileKey};
2
2
  //# sourceMappingURL=getMobileKey.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-37FIKXHX.js";import"../chunk-SX2W4GPS.js";import"../chunk-7SHYEVWE.js";import"../chunk-ZBF5DOJH.js";export{a as GetProducts};
1
+ import{a}from"../chunk-6KRXD5CY.js";import"../chunk-7KMQJALP.js";import"../chunk-2E7UEQEH.js";import"../chunk-ZBF5DOJH.js";export{a as GetProducts};
2
2
  //# sourceMappingURL=getProducts.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-7LB4ISYU.js";import"../chunk-SX2W4GPS.js";import"../chunk-7SHYEVWE.js";import"../chunk-ZBF5DOJH.js";export{a as GetReservationSpaceCategoryAvailabilities};
1
+ import{a}from"../chunk-N3CMDBJP.js";import"../chunk-7KMQJALP.js";import"../chunk-2E7UEQEH.js";import"../chunk-ZBF5DOJH.js";export{a as GetReservationSpaceCategoryAvailabilities};
2
2
  //# sourceMappingURL=getReservationSpaceCategoryAvailabilities.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-KAX6G7NS.js";import"../chunk-SX2W4GPS.js";import"../chunk-7SHYEVWE.js";import"../chunk-ZBF5DOJH.js";export{a as GetReservations};
1
+ import{a}from"../chunk-RAKSUYSJ.js";import"../chunk-7KMQJALP.js";import"../chunk-2E7UEQEH.js";import"../chunk-ZBF5DOJH.js";export{a as GetReservations};
2
2
  //# sourceMappingURL=getReservations.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-MXG5WD7W.js";import"../chunk-SX2W4GPS.js";import"../chunk-7SHYEVWE.js";import"../chunk-ZBF5DOJH.js";export{a as GetRooms};
1
+ import{a}from"../chunk-EYE772SL.js";import"../chunk-7KMQJALP.js";import"../chunk-2E7UEQEH.js";import"../chunk-ZBF5DOJH.js";export{a as GetRooms};
2
2
  //# sourceMappingURL=getRooms.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-5MWETEB7.js";import"../chunk-SX2W4GPS.js";import"../chunk-7SHYEVWE.js";import"../chunk-ZBF5DOJH.js";export{a as GetUsers};
1
+ import{a}from"../chunk-NERQSYRV.js";import"../chunk-7KMQJALP.js";import"../chunk-2E7UEQEH.js";import"../chunk-ZBF5DOJH.js";export{a as GetUsers};
2
2
  //# sourceMappingURL=getUsers.js.map
@@ -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-01-31T23:20:41.107Z\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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,CAAE,GAAAC,EAAI,SAAAC,EAAU,GAAGC,CAAK,EAAG,CACrC,MAAM,CAAE,GAAAF,EAAI,SAAAC,EAAU,GAAGC,CAAK,CAAC,CACjC,CAEA,IAAI,MAAO,CACT,MAAO,mBACT,CACF,ECRO,IAAMC,EAAN,cAAgCC,CAAQ,CAF/C,MAE+C,CAAAC,EAAA,0BAC7C,YAAY,CAAE,GAAAC,EAAI,GAAGC,CAAK,EAAG,CAC3B,MAAM,CAAE,GAAAD,EAAI,GAAGC,CAAK,CAAC,CACvB,CAEA,IAAI,MAAO,CACT,MAAO,mBACT,CACF,ECRO,IAAMC,EAAN,cAAyBC,CAAQ,CAFxC,MAEwC,CAAAC,EAAA,mBACtC,YAAY,CACV,GAAAC,EACA,MAAAC,EACA,MAAAC,EACA,eAAAC,EACA,QAAAC,EACA,KAAAC,EACA,YAAAC,EACA,KAAAC,EACA,QAAAC,EACA,GAAGC,CACL,EAAG,CACD,MAAM,CACJ,GAAAT,EACA,MAAAC,EACA,MAAAC,EACA,eAAAC,EACA,QAAAC,EACA,KAAAC,EACA,YAAAC,EACA,KAAAC,EACA,QAAAC,EACA,GAAGC,CACL,CAAC,CACH,CAEA,IAAI,MAAO,CACT,MAAO,YACT,CACF,EC9BO,IAAMC,EAAN,cAA0BC,CAAQ,CAFzC,MAEyC,CAAAC,EAAA,oBACvC,YAAY,CAAE,GAAAC,EAAI,IAAAC,EAAK,KAAAC,EAAM,GAAGC,CAAK,EAAG,CACtC,MAAM,CAAE,GAAAH,EAAI,IAAAC,EAAK,KAAAC,EAAM,GAAGC,CAAK,CAAC,CAClC,CAEA,IAAI,MAAO,CACT,MAAO,aACT,CACF","names":["commands_exports","__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","__toCommonJS","amqpExchanges","Commands","amqpExchanges","Command","__name","data","key","CheckInReservation","Command","__name","id","rest","CheckOutReservation","Command","__name","reservationId","userId","rest","CreateImageUploadEndpoint","Command","__name","id","expires","rest","CreateShortLink","Command","__name","title","destination","rest","GetCategories","Command","__name","id","rest","GetMobileKey","Command","__name","id","phone","beginDateTime","endDateTime","keyToReplace","rest","GetProducts","Command","__name","id","externalSystemId","rest","GetReservationSpaceCategoryAvailabilities","Command","__name","options","id","rest","GetReservations","Command","__name","options","id","startDate","endDate","status","rest","GetRooms","Command","__name","id","types","categories","startDate","endDate","serviceStatus","housekeepingStatus","rest","GetUsers","Command","__name","id","rest","OCRDocument","Command","__name","type","image","rest","SellProducts","Command","__name","reservationId","userId","products","rest","SendEmail","Command","__name","text","html","to","from","subject","rest","SendSMS","Command","__name","id","body","to","from","media","rest","SetAlarm","Command","__name","id","zones","areas","code","rest","SetCourtesy","Command","__name","id","state","rest","SetDimmer","Command","__name","id","level","rest","SetLock","Command","__name","id","state","rest","SetMedia","Command","__name","id","command","rest","SetScene","Command","__name","id","devices","rest","SetSwitch","Command","__name","id","state","rest","SetThermostat","Command","__name","id","setpoints","hvacMode","fanMode","rest","SetWindowCovering","Command","__name","id","position","rest","UpdateReservation","Command","__name","id","rest","UpdateUser","Command","__name","id","email","phone","identification","address","note","nationality","file","payment","rest","UploadImage","Command","__name","id","url","file","rest"]}
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-02-01T17:31:50.366Z\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":"+cAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,wBAAAE,EAAA,wBAAAC,EAAA,YAAAC,EAAA,8BAAAC,EAAA,oBAAAC,EAAA,kBAAAC,EAAA,iBAAAC,EAAA,gBAAAC,EAAA,8CAAAC,EAAA,oBAAAC,EAAA,aAAAC,EAAA,aAAAC,EAAA,gBAAAC,EAAA,iBAAAC,EAAA,cAAAC,EAAA,YAAAC,EAAA,aAAAC,EAAA,gBAAAC,EAAA,cAAAC,EAAA,YAAAC,EAAA,aAAAC,EAAA,aAAAC,EAAA,cAAAC,EAAA,kBAAAC,EAAA,sBAAAC,EAAA,sBAAAC,EAAA,eAAAC,EAAA,gBAAAC,IAAA,eAAAC,EAAA9B,GCAO,IAAM+B,EAAgB,CAE3B,SAAU,CACR,KAAM,kBACN,KAAM,UACN,QAAS,CACP,QAAS,EACX,CACF,EACA,iBAAkB,CAChB,KAAM,0BACN,KAAM,QACN,QAAS,CACP,QAAS,EACX,CACF,EAEA,aAAc,CACZ,KAAM,wBACN,KAAM,QACN,QAAS,CACP,QAAS,EACX,CACF,EACA,UAAW,CACT,KAAM,oBACN,KAAM,QACN,QAAS,CACP,QAAS,EACX,CACF,EACA,OAAQ,CACN,KAAM,gBACN,KAAM,SACN,QAAS,CACP,QAAS,EACX,CACF,EAEA,IAAK,CACH,KAAM,aACN,KAAM,QACR,CACF,ECz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AAAC,EAAM,GAAGC,CAAK,EAAG,CACtC,MAAM,CAAE,GAAAH,EAAI,IAAAC,EAAK,KAAAC,EAAM,GAAGC,CAAK,CAAC,CAClC,CAEA,IAAI,MAAO,CACT,MAAO,aACT,CACF","names":["commands_exports","__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","__toCommonJS","amqpExchanges","Commands","amqpExchanges","Command","__name","data","key","CheckInReservation","Command","__name","id","rest","CheckOutReservation","Command","__name","reservationId","userId","rest","CreateImageUploadEndpoint","Command","__name","id","expires","rest","CreateShortLink","Command","__name","title","destination","rest","GetCategories","Command","__name","id","rest","GetMobileKey","Command","__name","id","phone","beginDateTime","endDateTime","keyToReplace","rest","GetProducts","Command","__name","id","externalSystemId","rest","GetReservationSpaceCategoryAvailabilities","Command","__name","options","id","rest","GetReservations","Command","__name","options","id","startDate","endDate","status","rest","GetRooms","Command","__name","id","types","categories","startDate","endDate","serviceStatus","housekeepingStatus","rest","GetUsers","Command","__name","id","rest","OCRDocument","Command","__name","type","image","rest","SellProducts","Command","__name","reservationId","userId","products","rest","SendEmail","Command","__name","text","html","to","from","subject","rest","SendSMS","Command","__name","id","body","to","from","media","rest","SetAlarm","Command","__name","id","zones","areas","code","rest","SetCourtesy","Command","__name","id","state","rest","SetDimmer","Command","__name","id","level","rest","SetLock","Command","__name","id","state","rest","SetMedia","Command","__name","id","command","rest","SetScene","Command","__name","id","devices","rest","SetSwitch","Command","__name","id","state","rest","SetThermostat","Command","__name","id","setpoints","hvacMode","fanMode","rest","SetWindowCovering","Command","__name","id","position","rest","UpdateReservation","Command","__name","id","rest","UpdateUser","Command","__name","id","email","phone","identification","address","note","nationality","file","payment","rest","UploadImage","Command","__name","id","url","file","rest"]}
@@ -1,2 +1,2 @@
1
- import{a as z}from"../chunk-L2JBBTJI.js";import{a as A}from"../chunk-GJIPDIFZ.js";import{a as B}from"../chunk-OIBIACJH.js";import{a as l}from"../chunk-SAJDTYRL.js";import{a as n}from"../chunk-CQUOFTLG.js";import{a as q}from"../chunk-C3TN4CYW.js";import{a as s}from"../chunk-ONETIQAT.js";import{a as u}from"../chunk-NXZ7ARCN.js";import{a as v}from"../chunk-QRCVQOOU.js";import{a as w}from"../chunk-2MIWI6DI.js";import{a as y}from"../chunk-O7PXQJJY.js";import{a as c}from"../chunk-MXG5WD7W.js";import{a as d}from"../chunk-5MWETEB7.js";import{a as g}from"../chunk-PETOLFLX.js";import{a as h}from"../chunk-OH2O7TRF.js";import{a as i}from"../chunk-RLR3YOGQ.js";import{a as j}from"../chunk-LABRQJP2.js";import{a as k}from"../chunk-VC2V3PHC.js";import{a as f}from"../chunk-3VWLUTOA.js";import{a as m}from"../chunk-L2X57ZPQ.js";import{a as p}from"../chunk-X74FEMWH.js";import{a as t}from"../chunk-GCUILL6R.js";import{a as x}from"../chunk-37FIKXHX.js";import{a}from"../chunk-7LB4ISYU.js";import{a as b}from"../chunk-KAX6G7NS.js";import{a as r}from"../chunk-AW4RTCUR.js";import{a as e}from"../chunk-2QP6XL3A.js";import{a as o}from"../chunk-SX2W4GPS.js";import"../chunk-7SHYEVWE.js";import"../chunk-ZBF5DOJH.js";export{r as CheckInReservation,e as CheckOutReservation,o as Command,f as CreateImageUploadEndpoint,m as CreateShortLink,p as GetCategories,t as GetMobileKey,x as GetProducts,a as GetReservationSpaceCategoryAvailabilities,b as GetReservations,c as GetRooms,d as GetUsers,g as OCRDocument,h as SellProducts,i as SendEmail,j as SendSMS,k as SetAlarm,l as SetCourtesy,n as SetDimmer,q as SetLock,s as SetMedia,u as SetScene,v as SetSwitch,w as SetThermostat,y as SetWindowCovering,z as UpdateReservation,A as UpdateUser,B as UploadImage};
1
+ import"../chunk-UI5GTCXQ.js";import{a as y}from"../chunk-6U2OIFXY.js";import{a as z}from"../chunk-WQMI4TKM.js";import{a as A}from"../chunk-6LMPRNFF.js";import{a as B}from"../chunk-OK4G4APE.js";import{a as q}from"../chunk-3DU6K767.js";import{a as r}from"../chunk-D2HMXQ5V.js";import{a as s}from"../chunk-AEJWGUVQ.js";import{a as t}from"../chunk-BRGOPL7L.js";import{a as u}from"../chunk-N4NBQDBE.js";import{a as v}from"../chunk-PLSUJCGV.js";import{a as w}from"../chunk-Y6QFETPF.js";import{a as x}from"../chunk-QNSNR2JT.js";import{a as j}from"../chunk-RAKSUYSJ.js";import{a as k}from"../chunk-EYE772SL.js";import{a as l}from"../chunk-NERQSYRV.js";import{a as m}from"../chunk-4C5OBWVN.js";import{a as n}from"../chunk-O4IOWXAT.js";import{a as o}from"../chunk-KTTIUDWK.js";import{a as p}from"../chunk-MORNYRJW.js";import{a as c}from"../chunk-KAULYRJQ.js";import{a as d}from"../chunk-SBTJP7Z2.js";import{a as e}from"../chunk-YHE3YBCX.js";import{a as f}from"../chunk-HDBSURJM.js";import{a as g}from"../chunk-JOOKSEVZ.js";import{a as h}from"../chunk-6KRXD5CY.js";import{a as i}from"../chunk-N3CMDBJP.js";import{a as b}from"../chunk-T3BUZPJU.js";import{a}from"../chunk-7KMQJALP.js";import"../chunk-2E7UEQEH.js";import"../chunk-ZBF5DOJH.js";export{b as CheckInReservation,c as CheckOutReservation,a as Command,d as CreateImageUploadEndpoint,e as CreateShortLink,f as GetCategories,g as GetMobileKey,h as GetProducts,i as GetReservationSpaceCategoryAvailabilities,j as GetReservations,k as GetRooms,l as GetUsers,m as OCRDocument,n as SellProducts,o as SendEmail,p as SendSMS,q as SetAlarm,r as SetCourtesy,s as SetDimmer,t as SetLock,u as SetMedia,v as SetScene,w as SetSwitch,x as SetThermostat,y as SetWindowCovering,z as UpdateReservation,A as UpdateUser,B as UploadImage};
2
2
  //# sourceMappingURL=index.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-PETOLFLX.js";import"../chunk-SX2W4GPS.js";import"../chunk-7SHYEVWE.js";import"../chunk-ZBF5DOJH.js";export{a as OCRDocument};
1
+ import{a}from"../chunk-4C5OBWVN.js";import"../chunk-7KMQJALP.js";import"../chunk-2E7UEQEH.js";import"../chunk-ZBF5DOJH.js";export{a as OCRDocument};
2
2
  //# sourceMappingURL=ocrDocument.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-OH2O7TRF.js";import"../chunk-SX2W4GPS.js";import"../chunk-7SHYEVWE.js";import"../chunk-ZBF5DOJH.js";export{a as SellProducts};
1
+ import{a}from"../chunk-O4IOWXAT.js";import"../chunk-7KMQJALP.js";import"../chunk-2E7UEQEH.js";import"../chunk-ZBF5DOJH.js";export{a as SellProducts};
2
2
  //# sourceMappingURL=sellProducts.js.map
@@ -1,2 +1,2 @@
1
- import{a}from"../chunk-RLR3YOGQ.js";import"../chunk-SX2W4GPS.js";import"../chunk-7SHYEVWE.js";import"../chunk-ZBF5DOJH.js";export{a as SendEmail};
1
+ import{a}from"../chunk-KTTIUDWK.js";import"../chunk-7KMQJALP.js";import"../chunk-2E7UEQEH.js";import"../chunk-ZBF5DOJH.js";export{a as SendEmail};
2
2
  //# sourceMappingURL=sendEmail.js.map